PageSourceSearch

https://brand.influencity.com/_next/static/chunks/7064-10f0eb35ab106fec.js

js influencity.com collected 2026-09-24 08:43:49 UTC 59,083 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8e93d1fc-1ef6-4f6e-b742-b023975de6a2",e._sentryDebugIdIdentifier="sentry-dbid-8e93d1fc-1ef6-4f6e-b742-b023975de6a2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7064],{86736:function(e,n,t){"use strict";t.d(n,{F:function(){return d}});var l=t(60738),r=t(26959),i=t(14568),o=t(67317),s=t(59428),a=t(89341);let d=e=>{let n=(0,r.useRouter)(),{title:t,subtitle:d,src:c,width:u,hasButton:p=!0}=e,{t:m}=(0,a.q)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.SubNavbar,{children:(0,l.jsx)(o.T,{src:"https://s3.eu-west-2.amazonaws.com/influencity-upload-media/influencity.png"})}),(0,l.jsxs)(i.Flex,{column:!0,align:"center",justify:"center",grow:"1",children:[(0,l.jsx)(i.Spacing,{size:"100"}),!p&&(0,l.jsx)(i.Spacing,{size:"100"}),(0,l.jsx)(i.Image,{width:u,src:c}),(0,l.jsx)(i.Spacing,{size:"48"}),(0,l.jsx)(i.Text,{center:!0,bold:!0,color:"primary.dark",size:"20",children:t}),(0,l.jsx)(i.Spacing,{size:"8"}),(0,l.jsx)(i.Flex,{styles:"max-width: 480px;",children:(0,l.jsx)(i.Text,{center:!0,color:"primary.light3",size:"14",children:d})}),(0,l.jsx)(i.Spacing,{size:"32"}),p&&(0,l.jsx)(i.Button,{size:"l",onClick:()=>{(0,s.Z)(),n.push("/")},children:m("commons.button.backToLogin")})]})]})}},67317:function(e,n,t){"use strict";t.d(n,{T:function(){return l}});let l=t(11516).default.img.withConfig({displayName:"styles__Logo",componentId:"sc-f3c612b2-0"})(["\n  max-width: 127px;\n  max-height: 45px;\n  &:hover {\n    cursor: ",";\n  }\n"],e=>e.onClick?"pointer":"auto")},29984:function(e,n,t){"use strict";t.d(n,{l:function(){return d}});var l=t(60738),r=t(14568),i=t(10890);let o=(0,t(11516).css)(["\n  display: flex;\n  align-items: center;\n  gap: 5px;\n  padding-left: 17px;\n  background: ",";\n  width: max-content;\n  min-width: 117px;\n  color: ",";\n  :hover {\n    color: ",";\n    font-weight: 500;\n    background: ",";\n  }\n  :disabled {\n    color: ",";\n    font-weight: 300;\n    background: ",";\n  }\n  :focus {\n    color: ",";\n    font-weight: 500;\n    background: ",";\n  }\n  height: 100%;\n  cursor: ",";\n"],e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{theme:n}=e;return n.colors.primary.light3},e=>{let{theme:n}=e;return n.colors.primary.dark},e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{theme:n}=e;return n.colors.primary.light2},e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{theme:n}=e;return n.colors.primary.dark},e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{disabled:n}=e;return n?"not-allowed":"pointer"}),s=e=>{let{openLinkProfile:n}=e,{t}=(0,i.qM)();return(0,l.jsxs)(r.Button,{styles:o,onClick:n,children:[(0,l.jsx)(r.Icon,{color:"inherit",name:"plus"}),(0,l.jsx)(r.Text,{variant:"span",color:"inherit",name:"Button-Add-Profile",children:t("commons.button.associateProfiles")})]})};var a=t(79066);let d=e=>{let{tabsHeaderRef:n,showCarousel:t,isShared:i=!1,showAddProfileButton:o=!1,openLinkProfile:d=()=>{},children:c}=e;return(0,l.jsx)(a.r2,{styles:a.bp,children:(0,l.jsxs)(r.TabsHeaderCarousel,{isCarousel:t,carouselStyles:a.d,justify:"flex-start",ref:n,children:[c,!i&&o&&(0,l.jsx)(r.Tab,{children:(0,l.jsx)(s,{openLinkProfile:d})})]})})}},79066:function(e,n,t){"use strict";t.d(n,{bp:function(){return o},d:function(){return r},ic:function(){return s},r2:function(){return i}});var l=t(11516);let r=(0,l.css)(["\n  background-color: ",";\n  padding-top: 24px;\n  border-top-right-radius: 8px;\n  max-width: fit-content;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),i=l.default.div.withConfig({displayName:"styles__InsightsHeaderContainer",componentId:"sc-4cae6a82-0"})(["\n  background-color: ",";\n  border-top-right-radius: 8px;\n  & > div:first-child {\n    border-top-right-radius: 8px;\n  }\n  ","\n"],e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{styles:n}=e;return n||""}),o=(0,l.css)(["\n  border-bottom: 1px solid ",";\n"],e=>{let{theme:n}=e;return n.colors.primary.light5}),s=(0,l.css)(["\n  padding: 8px 17px;\n  align-items: center;\n"]);(0,l.css)(["\n  padding-left: 24px;\n"])},21560:function(e,n,t){"use strict";t.d(n,{c:function(){return ew}});
1var l=t(60738),r=t(60737),i=t(84223),o=t.n(i),s=t(14568),a=t(94248),d=t(35584),c=t(72842),u=t(39231),p=t(81939),m=t(26959),f=t(11516);let h=(0,f.css)(["\n  background-color: ",";\n  border: 1px solid ",";\n  border-top-right-radius: 8px;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  min-height: 0;\n  overflow: hidden;\n"],e=>{let{theme:n}=e;return n.colors.primary.light6},e=>{let{theme:n}=e;return n.colors.primary.light4}),x=(0,f.css)(["\n  background-color: ",";\n  border: 1px solid ",";\n  border-top-right-radius: 8px;\n  & > div:first-child {\n    border-top-right-radius: 8px;\n  }\n  height: 100%;\n  ","\n"],e=>{let{theme:n}=e;return n.colors.neutral.white},e=>{let{theme:n}=e;return n.colors.primary.light4},e=>{let{overflowAuto:n}=e;return n&&"overflow: auto;"}),g=f.default.div.withConfig({displayName:"styles__ContentWrapper",componentId:"sc-a454254a-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  min-height: 0;\n  flex-grow: 1;\n  padding: 32px 24px 0px 0;\n  background-color: ",";\n  box-sizing: border-box;\n  overflow: hidden;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),v={METRICS:"metrics",SENTIMENT:"sentiment",CONTENT_TRACKINGS:"contentTrackings",NOTES:"notes",EMAILS:"emails",LISTS:"lists",PROGRAMS:"programs",CAMPAIGNS:"campaigns",PRICES:"prices"},y="influencers";var j=t(72001),b=t(56470),I=t(10812),C=t(32196),w=t(39834);let T=f.default.div.withConfig({displayName:"styles__ListsContainer",componentId:"sc-43a9b558-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  flex: 1;\n"]);
1var S=t(29984),k=t(79066),N=t(89341),_=t(49186),P=t(45068);let E=e=>{let{openLinkList:n}=e,{t}=(0,N.q)();return(0,l.jsx)(P.dR,{column:!0,center:!0,grow:"1",children:(0,l.jsx)(s.EmptyState,{stateType:"notLinkedInfluencers",imageUrl:"/static/img/irm/influencers/no_lists_linked.svg",titleText:t("influencer.lists.status.empty.titleHeader1"),subtitleText:t("influencer.lists.status.empty.titleParagraph1"),children:(0,l.jsx)(s.Button,{size:"l",onClick:n,children:t("commons.button.addToList")})})})};var A=t(45450),F=t(48443);let O=e=>{var n;let{influencer:t,fromInfluencer:i}=e,o=null==t?void 0:t._id,{isDeleteInfluencerFromListModalOpen:a,closeDeleteInfluencerFromListModal:d,openLinkInfluencersToListsModal:c}=(0,r.useContext)(F.Z),u=(null==t?void 0:null===(n=t.irmLists)||void 0===n?void 0:n.length)>0;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)(A.p,{isOpen:null==a?void 0:a.isOpen,onClose:d,influencerId:o,listId:null==a?void 0:a.listId}),(0,l.jsx)(s.FiltersTableProvider,{children:(0,l.jsx)(s.TableContextProvider,{initialState:{count:void 0,pages:void 0,columnName:"id",selectedRows:[],isSingleSelect:!1},children:u?(0,l.jsx)(_.M,{fromInfluencer:i,openLinkList:()=>c([o])}):(0,l.jsx)(E,{openLinkList:()=>c([o])})})})]})},M=(0,f.css)(["\n  padding: 0px 17px;\n  align-items: center;\n"]),L=(0,f.css)(["\n  width: max-content;\n"]),R=e=>{let{influencer:n,profilesFromInfluencer:t,openLinkProfile:i}=e,{activeTab:o}=(0,r.useContext)(s.TabsContext),{t:a}=(0,N.q)(),{_id:d,_type:c,username:p}=(0,r.useMemo)(()=>t.find(e=>{let{_id:n}=e;return n===o})||{},[o,t]),[m,h]=(0,r.useState)(!1),{handleShowCarouselForContainer:x,handleShowCarouselForTabs:g}=(0,u.yt)(h),v=(0,s.useNewResizeObserver)(x),j=(0,s.useNewResizeObserver)(g);return(0,l.jsxs)(T,{ref:v,children:[(0,l.jsxs)(S.l,{openLinkProfile:i,tabsHeaderRef:j,showCarousel:m,showAddProfileButton:!0,children:[(0,l.jsx)(s.Tab,{styles:M,id:y,title:a("commons.nav.tab.lists.influencerLists.label"),textStyles:L},y),t.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(s.Tab,{styles:k.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})]}),(0,l.jsx)(s.TabContent,{id:y,styles:(0,f.css)(["\n          height: 100%;\n        "]),children:(0,l.jsx)(O,{fromInfluencer:!0,influencer:n})}),d&&(0,l.jsx)(s.TabContent,{id:d,styles:(0,f.css)(["\n            height: 100%;\n          "]),children:(0,l.jsx)(w.i,{profileData:{_id:d,network:c,username:p},profileId:d})})]})};var z=t(35715);let B=f.default.div.withConfig({displayName:"styles__PricesComponentContainer",componentId:"sc-738dc4a2-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  flex: 1;\n"]),q=e=>{let{profilesFromInfluencer:n,openLinkProfile:t}=e,{activeTab:i}=(0,r.useContext)(s.TabsContext),{_id:o,_type:a,username:d}=(0,r.useMemo)(()=>n.find(e=>{let{_id:n}=e;return n===i}),[i,n]),[c,p]=(0,r.useState)(!1),{handleShowCarouselForContainer:m,handleShowCarouselForTabs:h}=(0,u.yt)(p),x=(0,s.useNewResizeObserver)(m),g=(0,s.useNewResizeObserver)(h);return(0,l.jsxs)(B,{ref:x,children:[(0,l.jsx)(S.l,{openLinkProfile:t,tabsHeaderRef:g,showCarousel:c,showAddProfileButton:!0,children:n.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(s.Tab,{styles:k.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})}),(0,l.jsx)(s.TabContent,{id:o,styles:(0,f.css)(["\n          height: 100%;\n        "]),children:(0,l.jsx)(z.P,{profileData:{_id:o,network:a,username:d},isLoadingMetrics:!1,hasErrorOnMetricsRequest:!1,profileId:o})})]})};var D=t(82270);let H=(0,f.css)(["\n  position: absolute;\n  z-index: 10;\n  backdrop-filter: blur(5px);\n  display: flex;\n  height: 80vh;\n  width: 99vw;\n  margin-top: -1px;\n  align-items: center;\n  justify-content: center;\n"]),W=e=>{let{profileId:n,handleAddToCampaign:t}=e;return n?(0,l.jsx)(s.FiltersTableProvider,{children:(0,l.jsx)(s.TableContextProvider,{children:(0,l.jsx)(D.j,{profileId:n,handleAddToCampaign:t})})}):(0,l.jsx)(s.Loader,{"data-cy":"loading-results",styles:H})},G=f.default.div.withConfig({displayName:"Campaigns__ComponentContainer",componentId:"sc-1239bc0d-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  flex: 1;\n"]),V=e=>{let{profilesFromInfluencer:n,openLinkProfile:t}=e,{activeTab:i,setActiveTab:o}=(0,r.useContext)(s.TabsContext),{_id:a}=(0,r.useMemo)(()=>{var e;return null!==(e=n.find(e=>{let{_id:n}=e;return n===i}))&&void 0!==e?e:{}},[n,i]),[d,c]=(0,r.useState)(!1),{handleShowCarouselForContainer:p,handleShowCarouselForTabs:m}=(0,u.yt)(c),f=(0,s.useNewResizeObserver)(p),h=(0,s.useNewResizeObserver)(m);return(0,r.useEffect)(()=>{var e;a||o(null===(e=n[0])||void 0===e?void 0:e._id)},[i,a]),(0,l.jsxs)(G,{ref:f,children:[(0,l.jsx)(S.l,{tabsHeaderRef:h,showCarousel:d,openLinkProfile:t,showAddProfileButton:!0,children:n.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(s.Tab,{styles:k.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})}),(0,l.jsx)(s.TabContent,{id:a,styles:{height:"100%"},children:(0,l.jsx)(W,{profileId:a,handleAddToCampaign:t},a)})]})},U=(0,f.css)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-right-radius: 8px;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),K=(0,f.css)(["\n  margin-top: -20px;\n"]),Q=e=>{var n,t;let{handleAssociate:i}=e,{t:o}
1=(0,N.q)(),{influencer:a}=(0,r.useContext)(d.S),c=(null==a?void 0:null===(n=a.emails)||void 0===n?void 0:n.length)>0&&(null==a?void 0:null===(t=a.emails)||void 0===t?void 0:t.some(e=>{let{deleted:n}=e;return!n}));return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.EmptyState,{stateType:"notLinkedProfiles",styles:U,imageUrl:"/static/img/irm/influencers/no_profiles_linked.svg",titleText:o("influencer.programs.status.empty.titleHeader1"),children:(0,l.jsxs)(s.Flex,{styles:K,column:!0,justify:"center",align:"center",gap:"15px",children:[(0,l.jsx)(s.Flex,{column:!0,justify:"center",align:"center",gap:"2px",children:(0,l.jsx)(s.Text,{color:"primary.light3",size:"14",children:o("influencer.programs.status.empty.titleParagraph1")})}),c?(0,l.jsx)(s.Button,{name:"emptyStateAssociateProfile",onClick:i,children:o("commons.button.addToProgram")}):(0,l.jsx)(s.Tooltip,{place:"top",text:o("commons.button.addToProgram.tooltip.warning.influencerWithoutEmail"),width:"fit-content",type:"dark",color:"neutral.white",children:(0,l.jsx)(s.Button,{name:"emptyStateAssociateProfile",onClick:()=>{},disabled:!c,children:o("commons.button.addToProgram")})})]})})})};var Z=t(34098),$=t(35351);let J=e=>{let{influencer:n,openLinkProgram:t}=e,i=null==n?void 0:n._id,[o,a]=(0,r.useState)({isOpen:!1,programId:null,influencerId:null});return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)($.I,{isOpen:null==o?void 0:o.isOpen,programId:null==o?void 0:o.programId,influencerId:null==o?void 0:o.influencerId,onClose:()=>{a({isOpen:!1,programId:null,influencerId:null})},fromInfluencer:!0}),(0,l.jsx)(s.FiltersTableProvider,{children:(0,l.jsx)(s.TableContextProvider,{initialState:{count:void 0,pages:void 0,columnName:"id",selectedRows:[],isSingleSelect:!1},children:(0,l.jsx)(Z.U,{tableId:"program",influencerId:null==n?void 0:n._id,handleRemoveProgram:e=>{a({isOpen:!0,programId:e.original.id,influencerId:i})},openLinkProgram:t,fromInfluencer:!0})})})]})},X=(0,f.css)(["\n  display: flex !important;\n  flex-direction: column !important;\n  flex: 1;\n  height: calc(100% - 100px);\n"]),Y=f.default.div.withConfig({displayName:"styles__InfluencerProfileContentTrackingsContainer",componentId:"sc-386a8b5b-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n"]);var ee=t(81629);let en=e=>{var n,t;let{influencerData:i,profilesFromInfluencer:o,openLinkProfile:a}=e,{activeTab:d,setActiveTab:c}=(0,r.useContext)(s.TabsContext),{profiles:p}=i;(0,r.useEffect)(()=>{(null==o?void 0:o.length)&&!o.some(e=>{let{_id:n}=e;return n===d})&&c(o[0]._id)},[o]);let[m,f]=(0,r.useState)(!1),{handleShowCarouselForContainer:h,handleShowCarouselForTabs:x}=(0,u.yt)(f),g=(0,s.useNewResizeObserver)(h),v=(0,s.useNewResizeObserver)(x);return(0,l.jsxs)(Y,{ref:g,children:[(0,l.jsx)(S.l,{openLinkProfile:a,tabsHeaderRef:v,showCarousel:m,showAddProfileButton:!0,children:o.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(s.Tab,{styles:k.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})}),(0,l.jsx)(s.TabContent,{styles:X,id:d,children:(0,l.jsx)(ee.n,{profileId:d,network:null==p?void 0:null===(t=p.filter(e=>{let{_id:n}=e;return n===d}))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n._type,fromInfluencer:!0})})]})},et=(0,f.css)(["\n  display: flex !important;\n  flex-direction: column !important;\n  flex: 1;\n  height: calc(100% - 100px);\n"]),el=f.default.div.withConfig({displayName:"styles__InfluencerProfileSentimentContainer",componentId:"sc-7b07a8b9-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n"]);var er=t(601),ei=t(31094);let eo=e=>{var n,t;let{influencerData:i,profilesFromInfluencer:o,openLinkProfile:a}=e,{activeTab:d,setActiveTab:c}=(0,r.useContext)(s.TabsContext),{profiles:p}=i;(0,r.useEffect)(()=>{(null==o?void 0:o.length)&&!o.some(e=>{let{_id:n}=e;return n===d})&&c(o[0]._id)},[o]);let[m,f]=(0,r.useState)(!1),{handleShowCarouselForContainer:h,handleShowCarouselForTabs:x}=(0,u.yt)(f),g=(0,s.useNewResizeObserver)(h),v=(0,s.useNewResizeObserver)(x);return(0,l.jsxs)(el,{ref:g,children:[(0,l.jsx)(S.l,{openLinkProfile:a,tabsHeaderRef:v,showCarousel:m,showAddProfileButton:!0,children:o.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(s.Tab,{styles:k.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})}),(0,l.jsx)(s.TabContent,{styles:[et,ei.aZ],id:d,children:(0,l.jsx)(er.p,{profileId:d,network:null==p?void 0:null===(t=p.filter(e=>{let{_id:n}=e;return n===d}))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n._type})})]})},es=e=>{var n,t,i,o,a,d;let{influencer:c,isShared:u,openLinkProfile:p,openLinkProgram:m}=e,{activeTab:f}=(0,r.useContext)(s.TabsNavContext);return(0,l.jsxs)(l.Fragment,{children:[f===v.METRICS&&(0,l.jsx)(s.TabNavContent,{id:v.METRICS,styles:h,children:(null==c?void 0:c.profiles.length)?(0,l.jsx)(s.Tabs,{initialTab:null==c?void 0:null===(n=c.profiles[0])||void 0===n?void 0:n._id,children:(0,l.jsx)(I.u,{profilesFromInfluencer:null==c?void 0:c.profiles,openLinkProfile:p,isShared:u})}):(0,l.jsx)(j.d,{handleAssociate:p})}),f===v.SENTIMENT&&(0,l.jsx)(s.TabNavContent,{id:v.SENTIMENT,styles:x,children:(null==c?void 0:c.profiles.length)?(0,l.jsx)(s.Tabs,{initialTab:null==c?void 0:null===(t=c.profiles[0])||void 0===t?void 0:t._id,children:(0,l.jsx)(eo,{influencerData:c,profilesFromInfluencer:null==c?void 0:c.profiles,openLinkProfile:p})}):(0,l.jsx)(j.d,{handleAssociate:p})}),f===v.CONTENT_TRACKINGS&&(0,l.jsx)(s.TabNavContent,{id:v.CONTENT_TRACKINGS,styles:x,children:(null==c?void 0:c.profiles.length)?(0,l.jsx)(s.Tabs,{initialTab:null==c?void 0:null===(i=c.profiles[0])||void 0===i?void 0:i._id,children:(0,l.jsx)(en,{influencerData:c,profilesFromInfluencer:null==c?void 0:c.profiles,openLinkProfile:p})}):(0,l.jsx)(j.d,{handleAssociate:p})}),f===v.NOTES&&(0,l.jsx)(s.TabNavContent,{id:v.NOTES,styles:x,children:(0,l.jsx)(C.Q,{})}),f===v.EMAILS&&(0,l.jsx)(s.TabNavContent,{id:v.EMAILS,styles:x,children:(0,l.jsx)(b.N,{emailsFromInfluencer:null==c?void 0:c.emails},v.EMAILS)}),f===v.LISTS&&(0,l.jsx)(s.TabNavContent,{id:v.LISTS,styles:x,children:(0,l.jsx)(s.Tabs,{initialTab:y,children:(0,l.jsx)(R,{openLinkProfile:p,profilesFromInfluencer:null==c?void 0:c.profiles,influencer:c})})}),f===v.PROGRAMS&&(0,l.jsx)(s.TabNavContent,{id:v.PROGRAMS,styles:x,overflowAuto:!0,children:(null==c?void 0:null===(o=c.programsV2)||void 0===o?void 0:o.length)?(0,l.jsx)(J,{influencer:c,openLinkProgram:m}):(0,l.jsx)(Q,{handleAssociate:m})}),f===v.CAMPAIGNS&&(0,l.jsx)(s.TabNavContent,{id:v.CAMPAIGNS,styles:x,children:(null==c?void 0:c.profiles.length)?(0,l.jsx)(s.Tabs,{initialTab:null==c?void 0:null===(a=c.profiles[0])||void 0===a?void 0:a._id,children:(0,l.jsx)(V,{openLinkProfile:p,profilesFromInfluencer:null==c?void 0:c.profiles})}):(0,l.jsx)(j.d,{handleAssociate:p})}),f===v.PRICES&&(0,l.jsx)(s.TabNavContent,{id:v.PRICES,styles:x,children:(null==c?void 0:c.profiles.length)?(0,l.jsx)(s.Tabs,{initialTab:null==c?void 0:null===(d=c.profiles[0])||void 0===d?void 0:d._id,children:(0,l.jsx)(q,{openLinkProfile:p,profilesFromInfluencer:null==c?void 0:c.profiles})}):(0,l.jsx)(j.d,{handleAssociate:p})})]})};var ea=t(10890);let ed=e=>{let{isShared:n}=e,{t}=(0,ea.qM)();return(0,l.jsxs)(s.TabsNavHeader,{justify:"flex-start",border:"none",children:[(0,l.jsx)(s.TabNav,{id:v.METRICS,title:t("influencers.influencerInfoWrapper.stats.tabName"),level:"second",position:"left",state:"default"}),!n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.TabNav,{id:v.SENTIMENT,title:t("commons.nav.tab.brandSafety.label"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.CONTENT_TRACKINGS,title:t("commons.nav.tab.content.label"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.NOTES,title:t("influencers.influencerInfoWrapper.notes.tabName"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.EMAILS,title:t("influencers.influencerInfoWrapper.emails.tabName"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.LISTS,title:t("commons.nav.tab.lists.label"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.PROGRAMS,title:t("commons.nav.tab.programs.label"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.CAMPAIGNS,title:t("commons.nav.tab.campaigns.label"),level:"second",position:"middle",state:"default"}),(0,l.jsx)(s.TabNav,{id:v.PRICES,title:t("influencers.influencerInfoWrapper.prices.tabName"),level:"second",position:"right",state:"default"})]})]})},ec=e=>{let{influencer:n,isShared:t,openLinkProfile:r,openLinkProgram:i}=e;return(0,l.jsx)(g,{children:(0,l.jsxs)(s.TabsNav,{initialTab:"metrics",children:[(0,l.jsx)(ed,{isShared:t}),(0,l.jsx)(es,{influencer:n,isShared:t,openLinkProfile:r,openLinkProgram:i})]})})};var eu=t(95183),ep=t(86736),em=t(25910),ef=t(66593),eh=t(14598),ex=t(85054),eg=t(57395),ev=t(19320),ey=t(98781),ej=t(75478),eb=t(88501),eI=t(14216),eC=t(85523);let ew=e=>{let{sharedId:n,setBrandLogo:t}=e,i=!!n,[f,h]=(0,r.useState)(!1),[x,g]=(0,r.useState)(),[v,y]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[I,C]=(0,r.useState)(!1),[w,T]=(0,r.useState)(!1),{t:S}=(0,ea.qM)(),k=(0,m.useRouter)(),{influencerId:N,brandId:_}=o()(k,"query",{}),{loadingInfluencers:P}=(0,p.KK)(),{influencer:E,setInfluencer:A}=(0,r.useContext)(d.S),{isNewListModalOpen:F,setNewListModalOpen:O}=(0,r.useContext)(eg.Z),{openLinkProgramModal:M,closeLinkProgramModal:L}=(0,r.useContext)(ev.O)||{},{data:R,loading:z,error:B}=(0,u.hj)({variables:{influencerId:N,sharedId:n,brandId:_}}),q=!E||P||z,{state:D,dispatch:H}=(0,r.useContext)(ef.kr),{profileId:W,showPreviewProfile:G}=D;(0,r.useEffect)(()=>{R&&(A(R),t&&t(R.brandLogo))},[R]);let V=()=>y(!0);return B?(0,l.jsx)(ep.F,{title:"404"===B.message?S("common.page.error.404.titleHeader1"):"",subt
1itle:S("common.page.error.404.titleParagraph1"),src:"/static/img/profile/Something_wrong.svg",width:"300",hasButton:!1}):q?(0,l.jsx)(s.Loader,{fillSpace:!0}):(0,l.jsxs)(s.Flex,{styles:{height:"100%"},children:[(0,l.jsx)(eu.f,{influencer:E,shareModalOpen:f,sharedUrl:x,setShareModalOpen:h,isOpenRefreshModal:w,setIsOpenRefreshModal:T}),(0,l.jsx)(em.A,{isOpen:G,activeId:W,onClose:()=>H({type:"closePreviewProfile"})},"".concat(W,"previewProfile")),(0,l.jsx)(eh.a,{originIdName:"influencerIds",originId:[N],onCloseLinkProgram:L,addProgramOpened:I,openAddProgram:()=>C(!0),closeAddProgram:()=>C(!1)}),(0,l.jsx)(ex.a,{originIdName:"influencerIds",originId:[N],addListOpened:F,openAddList:()=>O(!0),closeAddList:()=>O(!1)}),(0,l.jsx)(c.O,{originIdName:"influencerId",originId:N,alreadyHaveCountProfiles:o()(E,"profiles.length"),linkProfilesOpen:v,addProfileOpened:j,openAddProfile:()=>b(!0),closeAddProfile:()=>b(!1),onCloseLinkProfile:()=>y(!1)}),(0,l.jsxs)(s.CreateEditProvider,{useValidations:eI.X,children:[(0,l.jsx)(ey.p,{}),(0,l.jsx)(ej.e,{})]}),(0,l.jsx)(eb.y,{}),(0,l.jsx)(eC.F,{}),(0,l.jsx)(a._d,{influencer:E,openLinkProfile:V,setShareModalOpen:h,setSharedUrl:g,isShared:i,sharedId:n,setIsOpenRefreshModal:T}),(0,l.jsx)(ec,{isShared:n,influencer:E,openLinkProfile:V,openLinkProgram:()=>M([N])})]})}},95183:function(e,n,t){"use strict";t.d(n,{f:function(){return S}});var l=t(60738),r=t(60737),i=t(84223),o=t.n(i),s=t(14568),a=t(862),d=t(10890),c=t(82209),u=t(35584),p=t(48248),m=t(26959),f=t(69273),h=t.n(f),x=t(53862),g=t(89341),v=t(11516);(0,v.css)(["\n  margin-left: -32px;\n  margin-right: -32px;\n  width: auto;\n"]);let y=(0,v.css)(["\n  border-radius: 8px 8px 0 0;\n"]),j=(0,v.css)(["\n  border-radius: 8px;\n"]);var b=t(78850);let I=v.default.a.withConfig({displayName:"DeleteInfluencerModal__StyledLink",componentId:"sc-2c7a1128-0"})(["\n  ",";\n  text-decoration: underline !important;\n  &:hover {\n    font-weight: 500 !important;\n    ",";\n  }\n"],e=>{let{theme:n,color:t}=e;return(0,s.mapColorsToCss)("color",t||n.colors.primary.light2)},e=>{let{theme:n,color:t}=e;return(0,s.mapColorsToCss)("color",t||n.colors.primary.light2)}),C=e=>{let{title:n,influencerId:t,isOpen:i,onDelete:o=()=>{},onClose:a}=e,{t:d}=(0,g.q)(),{publicRuntimeConfig:c}=h()(),{influInfoEmail:u}=c,{loadingInfluencers:p,deleteIrmInfluencers:m,loadingDeleteIrmInfluencers:f}=(0,x.K)(),[v,C]=(0,r.useState)(!0),w=async()=>{if(!f){var e;let n=await m([t]);(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.deleteIrmInfluencers.success)?(o(),a(!0)):12622===n&&C(!1)}},T=()=>{a(!0),setTimeout(()=>{C(!0)},1e3)};return(0,l.jsx)(s.Modal,{name:"deleteInfluencer",color:"state.dangerDefault",headerStyles:y,wrapperStyles:j,onClose:T,isOpen:i,title:v?n:d("modal.imposibleDeleteInfluencer.header"),height:v?"250":"320",width:"550",children:v?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Flex,{column:!0,grow:"1",children:[(0,l.jsx)(s.Text,{color:"primary.dark",size:"14",children:d("modal.deleteInfluencer.titleHeader1")}),(0,l.jsx)(s.Text,{color:"primary.light2",size:"14",children:d("modal.deleteInfluencer.titleParagraph1")})]}),(0,l.jsxs)(s.Flex,{children:[(0,l.jsx)(s.StateButton,{name:"deleteProfile",color:"danger",loading:f||p,onClick:w,children:d("commons.button.delete")}),(0,l.jsx)(s.Spacing,{size:"16",vertical:!0}),(0,l.jsx)(s.Button,{name:"canceldeleteProfile",color:"secondary",variant:"flat",onClick:a,children:d("commons.button.cancel")})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Flex,{column:!0,grow:"1",children:[(0,l.jsx)(s.Text,{color:"primary.dark",size:"16",bold:!0,children:d("modal.imposibleDeleteInfluencer.paragraph1")}),(0,l.jsx)(s.Spacing,{size:"8"}),(0,l.jsx)(s.Text,{color:"primary.light2",size:"14",children:d("modal.imposibleDeleteInfluencers.allOutreach.paragraph")}),(0,l.jsx)(s.Text,{color:"primary.light2",size:"14",children:d("modal.imposibleDeleteInfluencers.allPrograms.paragraph")}),(0,l.jsx)(s.Text,{color:"primary.light2",size:"14",children:d("modal.imposibleDeleteInfluencers.allCampaignsV3.paragraph")}),(0,l.jsx)(s.Spacing,{size:"8"}),(0,l.jsx)(s.Text,{color:"primary.light2",size:"14",children:(0,l.jsx)(b.Z,{id:"modal.imposibleDeleteInfluencer.paragraph3",values:{a:e=>e&&(0,l.jsx)(I,{rel:"noopener",target:"_blank",color:"inherit",href:"mailto:".concat(u,"?Subject=Cannot delete an influencer"),children:u})}})})]}),(0,l.jsx)(s.Flex,{children:(0,l.jsx)(s.Button,{name:"canceldeleteProfile",color:"primary",variant:"outline",onClick:T,children:d("commons.button.close")})})]})})};var w=t(32521),T=t(14216);let S=e=>{let{influencer:n,setShareModalOpen:t,shareModalOpen:i,sharedUrl:f,isOpenRefreshModal:h,setIsOpenRefreshModal:x=()=>{}}=e,{t:g}=(0,d.qM)(),v=(0,m.useRouter)(),{influencerId:y,brandId:j}=o()(v,"query",{}),{isInfluencerDeleteModalOpen:b,setInfluencerDeleteModalOpen:I}=(0,r.useContext)(u.S),{showEditIrmInfluencer:S,resetShareModal:k,handleCloseEditModal:N}=(0,c.u)({influencer:n,setShareModalOpen:t,setIsOpenRefreshModal:x}),_=null==n?void 0:n.profiles.map(e=>{let{_id:n}=e;return n});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C,{title:g("modal.deleteInfluencer.header"),isOpen:b,influencerId:y||(null==n?void 0:n._id),onDelete:()=>v.push(a.RouterHelper.getRoute("irmInfluencers",{brandId:j})),onClose:()=>I(!1),canDelete:null==n?void 0:n.canDelete}),(0,l.jsx)(s.CreateEditProvider,{useValidations:T.X,children:(0,l.jsx)(w.q,{isOpen:S,onClose:N,influencerId:y||(null==n?void 0:n._id),from:w.r.OVERVIEW})}),(0,l.jsx)(p.V8,{isOpen:i,title:g("influencers.modal.shareInfluencer.header"),url:f,onClose:k,type:"influencer"}),(0,l.jsx)(p.bs,{isOpen:h,onClose:()=>x(!1),isMassiveAction:!0,profileIds:n&&n.profiles.length&&_})]})}},56470:function(e,n,t){"use strict";t.d(n,{N:function(){return e_}});
1var l=t(60738),r=t(60737),i=t(35799),o=t(26959),s=t(84223),a=t.n(s),d=t(14568),c=t(11516);let u=(0,c.css)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-right-radius: 8px;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),p=(0,c.css)(["\n  margin-top: -20px;\n"]),m=(0,c.css)(["\n  position: unset;\n"]),f=(0,c.default)(d.Flex).withConfig({displayName:"styles__StyledContainer",componentId:"sc-7a793c18-0"})(["\n  background-color: ",";\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  flex: 1;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white});var h=t(66593);let x=(0,c.css)(["\n  cursor: pointer;\n  :hover {\n    background: ",";\n  }\n"],e=>{let{theme:n}=e;return n.colors.primary.light5}),g=e=>{let{emails:n,isOpen:t,setEmailOpen:i,styles:s,emailsAlignment:c="left"}=e,{dispatch:u}=(0,r.useContext)(h.kr),p=(0,o.useRouter)(),m=a()(p,"query.influencerId"),f=e=>{u({type:"toggleSendEmailIrmInfluencer",influencers:[{_id:m,email:e}],useEmails:!0})};return(0,l.jsx)(d.Dropdown,{isOpen:t,setOpen:i,onMouseLeave:()=>{i(!1)},styles:s,align:c,width:"auto",children:n&&n.map(e=>(0,l.jsx)(d.DropdownOptionItem,{styles:x,onClick:()=>f(e),children:(0,l.jsx)(d.Text,{color:"primary.dark",ellipsis:!0,children:e})},e))})};var v=t(12416),y=t.n(v),j=t(89341);let b=e=>{let{emails:n,styles:t,emailsAlignment:i="left",disabled:o=!1}=e,{t:s}=(0,j.q)(),[a,c]=(0,r.useState)(!1),u=o||y()(n);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Button,{onClick:()=>{u||c(!0)},disabled:u,children:s("influencers.influencerInfoWrapper.emails.button.newMessage")}),(0,l.jsx)(g,{emails:n,isOpen:a,setEmailOpen:c,styles:t,emailsAlignment:i})]})},I={title:"influencers.influencerInfoWrapper.emails.empty.titleHeader1",firstSubtitle:"influencers.influencerInfoWrapper.emails.empty.titleParagraph1"},C=e=>{let{emails:n}=e,{title:t,firstSubtitle:r}=I,{t:i}=(0,j.q)();return(0,l.jsx)(d.EmptyState,{stateType:"noEmails",styles:u,imageUrl:"/static/img/irm/influencers/no_emails.svg",titleText:i(t),children:(0,l.jsxs)(d.Flex,{styles:p,column:!0,justify:"center",align:"center",gap:"15px",children:[(0,l.jsx)(d.Flex,{column:!0,justify:"center",align:"center",gap:"2px",children:(0,l.jsx)(d.Text,{color:"primary.light3",size:"14",children:i(r)})}),(0,l.jsx)(b,{emails:n,styles:m,disabled:!0})]})})},w=(0,c.css)(["\n  right: 0;\n"]),T=c.default.div.withConfig({displayName:"TopNewMessageButton__StyledDiv",componentId:"sc-d7750b30-0"})(["\n  position: relative;\n  margin-bottom: 8px;\n"]),S=e=>{let{emails:n}=e;return(0,l.jsx)(d.Flex,{justify:"flex-end",styles:!0,children:(0,l.jsx)(T,{children:(0,l.jsx)(b,{emails:n,styles:w,disabled:!0})})})},k=e=>{let{emails:n}=e;return(0,l.jsx)(d.Flex,{align:"center",justify:"flex-end",children:(0,l.jsx)(S,{emails:n})})};var N=t(74425);let _=(0,c.default)(d.Flex).withConfig({displayName:"ThreadHeader__StyledFlex",componentId:"sc-facc579-0"})(["\n  margin-left: 10px;\n"]),P=(0,c.default)(d.Text).withConfig({displayName:"ThreadHeader__StyledText",componentId:"sc-facc579-1"})(["\n  margin-left: 4px;\n"]),E=(0,c.css)(["\n  max-width: 183px;\n  width: unset;\n"]),A=e=>{let{subject:n,emailCount:t,isExpandable:r}=e,{t:i}=(0,j.q)(),o=(0,l.jsx)(d.Text,{bold:!0,color:"primary.dark",children:n}),s=(0,l.jsx)(_,{children:(0,l.jsx)(d.Tooltip,{text:i("influencers.influencerInfoWrapper.emails.tooltip.messageInThread",{messagesNumber:t}),type:"dark",color:"neutral.white",place:"top",backgroundColor:"primary",backgroundColorOption:"light1",styles:E,children:(0,l.jsxs)(d.Flex,{children:[(0,l.jsx)(d.Icon,{name:"mail",color:"primary.light3"}),(0,l.jsx)(P,{bold:!0,color:"primary.light3",children:t})]})})});return r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.AccordionHeader,{children:o}),s]}):(0,l.jsxs)(l.Fragment,{children:[o,s]})},F=(0,r.createContext)({value:{}}),O=e=>{let[n,t]=(0,r.useState)({});return(0,l.jsx)(F.Provider,{value:{action:n,setAction:t},children:e.children})},M=(0,c.default)(d.Flex).withConfig({displayName:"ThreadSubject__SubjectContainer",componentId:"sc-a3c8e0b8-0"})(["\n  padding: 4px 14px;\n  height: 32px;\n"]),L=(0,c.default)(d.Flex).withConfig({displayName:"ThreadSubject__StyledThread",componentId:"sc-a3c8e0b8-1"})(["\n  margin-right: auto;\n"]),R=(0,c.default)(d.Button).withConfig({displayName:"ThreadSubject__CollapseButton",componentId:"sc-a3c8e0b8-2"})(["\n  margin: 0 10px 0 16px;\n  font-size: 12px;\n  padding: 0;\n"]),z=e=>{let{subject:n,emailCount:t,isExpandable:i}=e,{t:o}=(0,j.q)(),{isOpen:s,setOpen:a}=(0,r.useContext)(d.AccordionContext),{setAction:c}=(0,r.useContext)(F);return(0,l.jsxs)(M,{justify:"flex-end",align:"center",children:[(0,l.jsx)(L,{children:(0,l.jsx)(A,{subject:n,emailCount:t,isExpandable:i})}),i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(R,{bold:!0,color:"secondary",variant:"flat",disabled:!s,onClick:()=>{a(!1),c({type:"collapseAll"})},children:o("influencers.influencerInfoWrapper.emails.emailBlock.button.collapseAll")}),(0,l.jsx)(R,{bold:!0,color:"secondary",variant:"flat",disabled:s,onClick:()=>
1{a(!0),c({type:"expandAll"})},children:o("influencers.influencerInfoWrapper.emails.emailBlock.button.expandAll")})]})]})},B=(0,c.default)(d.Flex).withConfig({displayName:"ThreadFooter__StyledFlex",componentId:"sc-a4898a7e-0"})(["\n  height: 40px;\n  border-top: 1px solid ",";\n"],e=>{let{theme:n}=e;return n.colors.primary.light5}),q=(0,c.default)(d.Text).withConfig({displayName:"ThreadFooter__CollapseText",componentId:"sc-a4898a7e-1"})(["\n  margin-left: -2px;\n  :hover {\n    color: ",";\n  }\n"],e=>{let{theme:n}=e;return n.colors.primary.dark}),D=()=>{let{t:e}=(0,j.q)(),{isOpen:n}=(0,r.useContext)(d.AccordionContext),t=e(n?"influencers.influencerInfoWrapper.emails.emailBlock.button.collapseThread":"influencers.influencerInfoWrapper.emails.emailBlock.button.expandThread");return(0,l.jsx)(B,{center:!0,children:(0,l.jsx)(d.AccordionHeader,{color:"primary.light3",children:(0,l.jsx)(q,{bold:!0,color:"primary.light3",children:t})})})};var H=t(35584);let W=e=>{let{messageId:n,Button:t}=e,{t:i}=(0,j.q)(),{setMessage:o,setDeleteMessageModalOpen:s}=(0,r.useContext)(H.S);return(0,l.jsx)(t,{variant:"flat",onClick:()=>{s(!0),o(n)},children:i("commons.button.delete")})},G=(0,c.default)(d.Flex).withConfig({displayName:"EmailActions__StyledFlex",componentId:"sc-6a9b9a23-0"})(["\n  transition: opacity 0.2s ease-out;\n"]),V=(0,c.default)(d.Button).withConfig({displayName:"EmailActions__StyledButton",componentId:"sc-6a9b9a23-1"})(["\n  :not(:first-child) {\n    margin-left: 12px;\n  }\n  font-size: 12px;\n  padding: 0;\n"]),U=e=>{let{influencerId:n,email:t,subject:r,threadFrom:i}=e;return(0,l.jsx)(G,{justify:"flex-end",children:(0,l.jsx)(W,{messageId:t.messageId,Button:V})})},K=(0,c.default)(d.Flex).withConfig({displayName:"EmailHeader__StyledFlex",componentId:"sc-16a845d8-0"})(["\n  padding: 4px 0 16px 0;\n"]),Q=(0,c.default)(d.Image).withConfig({displayName:"EmailHeader__StyledImage",componentId:"sc-16a845d8-1"})(["\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  margin-right: 4px;\n"]),Z=(0,c.default)(d.Text).withConfig({displayName:"EmailHeader__StyledText",componentId:"sc-16a845d8-2"})(["\n  text-align: end;\n"]),$=e=>{let{influencerId:n,email:t,subject:r,threadFrom:i}=e,{t:o}=(0,j.q)(),s=a()(t,"from.address",""),c=(a()(t,"to")||[]).map(e=>{let{address:n}=e;return n}).join(", "),u=(a()(t,"cc")||[]).map(e=>{let{address:n}=e;return n}).join(", "),p=(a()(t,"bcc")||[]).map(e=>{let{address:n}=e;return n}).join(", "),m=o("influencers.influencerInfoWrapper.emails.emailBlock.to.label",{addressees:"".concat(c).concat(u?"; cc: ".concat(u):"").concat(p?"; bcc: ".concat(p):"")});return(0,l.jsxs)(K,{align:"center",justify:"space-between",children:[(0,l.jsxs)(d.Flex,{align:"center",children:[(0,l.jsx)(Q,{src:"",alt:"fromImage",placeholder:"/static/img/placeholders/avatarPlaceholder.png"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(d.Text,{bold:!0,color:"primary.dark",children:s}),(0,l.jsx)(d.Text,{color:"primary.light2",children:m})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(Z,{color:"primary.light3",children:(0,l.jsx)(d.Date,{format:(0,d.InfluDateFormat)().LLLL,children:t.date})}),(0,l.jsx)(U,{influencerId:n,email:t,subject:r,threadFrom:i})]})]})};var J=t(41823),X=t(76118),Y=t(7456);function ee(){let e=(0,X._)(["\n  query getInfluencerEmails($influencerId: String!) {\n    getInfluencerEmails(influencerId: $influencerId) {\n      success\n      threads {\n        threadId\n        subject\n        emails {\n          to {\n            address\n          }\n          cc {\n            address\n          }\n          bcc {\n            address\n          }\n          from {\n            address\n          }\n          html\n          status\n          messageId\n          messageIdForReplies\n          attachments {\n            attachmentId\n            encodedSize\n            filename\n            inline\n            contentId\n          }\n          date\n        }\n      }\n    }\n  }\n"]);return ee=function(){return e},e}function en(){let e=(0,X._)(["\n  query getEmailAttachment($attachmentId: String!) {\n    getEmailAttachment(attachmentId: $attachmentId) {\n      success\n      filename\n      mimetype\n      content\n    }\n  }\n"]);return en=function(){return e},e}let et=(0,Y.Ps)(ee()),el=(0,Y.Ps)(en());var er=t(10890),ei=t(91051);let eo=(0,c.default)(d.Flex).withConfig({displayName:"EmailAttachment__StyledFlex",componentId:"sc-e8ea3fa5-0"})(["\n  background: ",";\n  border-radius: 12px;\n  height: 24px;\n  padding: 0 8px;\n  margin-top: 8px;\n  margin-right: 8px;\n  display: inline-flex;\n"],e=>{let{theme:n}=e;return n.colors.primary.light5}),es=(0,c.default)(d.Button).withConfig({displayName:"EmailAttachment__FileButton",componentId:"sc-e8ea3fa5-1"})(["\n  padding: 0;\n  text-decoration: underline;\n  font-size: 12px;\n  line-height: 14px;\n  margin-right: 4px;\n"]),ea=(0,c.default)(d.Text).withConfig({displayName:"EmailAttachment__SizeText",componentId:"sc-e8ea3fa5-2"})(["\n  line-height: 20px;\n"]),ed=e=>{let{attachmentId:n,filename:t,encodedSize:r,emailAttachments:i,setEmailAttachments:o}=e,s=(0,er.yi)(el),c=async()=>{let{data:e}=await s({attachmentId:n}),t=a()(e,"getEmailAttachment");
1if(t){let e=document.createElement("a"),n=(0,ei.M)(t.content,t.mimetype),l=URL.createObjectURL(n);e.setAttribute("href",l),e.setAttribute("download",t.filename),document.body.appendChild(e),o([...i,t]),e.click()}};return(0,l.jsxs)(eo,{align:"center",children:[(0,l.jsx)(es,{bold:!0,variant:"flat",onClick:c,children:t}),!!r&&(0,l.jsxs)(ea,{color:"primary.dark",children:["(",(0,l.jsx)(d.Number,{humanized:!0,decimals:0,children:r}),")"]})]})},ec=c.default.div.withConfig({displayName:"EmailAttachments__StyledDiv",componentId:"sc-93a3deb3-0"})(["\n  margin-top: 16px;\n"]),eu=e=>{let{attachments:n,emailAttachments:t,setEmailAttachments:r}=e,{t:i}=(0,j.q)();return!!n.length&&(0,l.jsxs)(ec,{children:[(0,l.jsx)(d.Text,{bold:!0,color:"primary.dark",children:i("influencers.influencerInfoWrapper.emails.emailBlock.attachedFiles.label")}),n.map((e,n)=>(0,l.jsx)(ed,{...e,emailAttachments:t,setEmailAttachments:r},n))]})};var ep=t(68701);let em=e=>{let{attachmentId:n,contentId:t,setEmailBody:l,emailAttachments:o,setEmailAttachments:s}=e,{data:d}=(0,i.aM)(el,{variables:{attachmentId:n},skip:!n});return(0,r.useEffect)(()=>{let e=a()(d,"getEmailAttachment.content");e&&(l(n=>n.replace("cid:".concat((0,ep.rf)(t)),"data:image/png;base64,".concat(e))),s([...o,d.getEmailAttachment]))},[d]),null},ef=(0,c.default)(d.Text).withConfig({displayName:"EmailBody__StyledText",componentId:"sc-b978cca8-0"})(["\n  overflow: hidden;\n  ",";\n"],e=>{let{theme:n,showMore:t}=e;return t?"\n  ":"\n    text-overflow: ellipsis;\n    display: -webkit-box;\n    max-height: 80px;\n    -webkit-box-orient: vertical;\n    background: -webkit-linear-gradient(".concat(n.colors.primary.dark,", rgba(255, 255, 255, 0.8))};\n    -webkit-background-clip: text;\n    -webkit-text-fill-color: transparent;\n  ")}),eh=(0,c.default)(d.Button).withConfig({displayName:"EmailBody__ShowMoreButton",componentId:"sc-b978cca8-1"})(["\n  padding: 0;\n  margin-top: 12px;\n  text-decoration: underline;\n  font-size: 12px;\n"]),ex=e=>{let{body:n,attachments:t=[],inlineAttachments:i=[]}=e,{t:o}=(0,j.q)(),{setRecalculateHeight:s}=(0,r.useContext)(d.AccordionContext),{action:c}=(0,r.useContext)(F),[u,p]=(0,r.useState)(!1),[m,f]=(0,r.useState)(n),[h,x]=(0,r.useState)([]),{rawhtml:g}=(0,J.g)({subject:"",html:m,attachments:h},!1),v=null==g?void 0:g.replace(/<em class="quill-token(.*?)<\/em>/gi,e=>{var n;return null==e?void 0:null===(n=e.replace("<em ","<span "))||void 0===n?void 0:n.replace("</em>","</span>")});(0,r.useEffect)(()=>{let e=a()(c,"type");"collapseAll"===e?p(!1):"expandAll"===e&&(p(!0),s({recalculate:!0}))},[c]);let y=o(u?"influencers.influencerInfoWrapper.emails.emailBlock.button.showLess":"influencers.influencerInfoWrapper.emails.emailBlock.button.showMore");return(0,l.jsxs)("div",{children:[i.map(e=>(0,l.jsx)(em,{...e,setEmailBody:f,emailAttachments:h,setEmailAttachments:x},e.contentId)),(0,l.jsx)(ef,{showMore:u,dangerouslySetInnerHTML:{__html:v}}),(0,l.jsx)(eh,{bold:!0,variant:"flat",onClick:()=>{p(e=>!e),s({recalculate:!0})},children:y}),(0,l.jsx)(eu,{attachments:t,emailAttachments:h,setEmailAttachments:x})]})};var eg=t(85525),ev=t.n(eg),ey=t(94390),ej=t.n(ey);let eb=c.default.div.withConfig({displayName:"Email__EmailContainer",componentId:"sc-c0e14e36-0"})(["\n  padding: 16px 16px 24px 16px;\n  border-top: 1px solid ",";\n"],e=>{let{theme:n}=e;return n.colors.primary.light5}),eI=e=>{let{influencerId:n,email:t,subject:r,threadFrom:i}=e,o=ev()(a()(t,"attachments")||[]),s=ej()(o,e=>{let{inline:n}=e;return n});return(0,l.jsxs)(eb,{children:[(0,l.jsx)($,{influencerId:n,subject:r,email:t,threadFrom:i}),(0,l.jsx)(ex,{body:t.html,attachments:o,inlineAttachments:s})]})},eC=c.default.div.withConfig({displayName:"Thread__ThreadContainer",componentId:"sc-d7b769ec-0"})(["\n  background: ",";\n  border-radius: 4px;\n  ",";\n  :not(:last-child) {\n    margin-bottom: 16px;\n  }\n  :last-child {\n    margin-bottom: 41px;\n  }\n"],e=>{let{theme:n}=e;return n.colors.neutral.white},N.Z),ew=e=>{let{influencerId:n,thread:t}=e,r=t.emails.length>1,i=a()(t,"emails[0].from.address");return(0,l.jsx)(eC,{children:(0,l.jsx)(O,{children:(0,l.jsxs)(d.Accordion,{children:[(0,l.jsx)(z,{subject:t.subject,emailCount:t.emails.length,isExpandable:r}),(0,l.jsx)(d.AccordionContent,{children:t.emails.slice(0,-1).map(e=>(0,l.jsx)(eI,{influencerId:n,email:e,subject:t.subject,threadFrom:i},e.messageId))}),(0,l.jsx)(eI,{email:t.emails[t.emails.length-1],influencerId:n,subject:t.subject,threadFrom:i}),r&&(0,l.jsx)(D,{})]})})})},eT=c.default.div.withConfig({displayName:"ThreadList__ListContainer",componentId:"sc-3902e72c-0"})(["\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n  height: 100%;\n  padding: 24px;\n  height: 100%;
1\n  overflow-y: scroll;\n  gap: 8px;\n"]),eS=e=>{let{influencerId:n,threadList:t,emails:r}=e;return(0,l.jsxs)(eT,{children:[(0,l.jsx)(k,{emails:r}),t.map(e=>(0,l.jsx)(ew,{influencerId:n,thread:e},e.threadId))]})};var ek=t(69818),eN=t(82345);let e_=e=>{let{emailsFromInfluencer:n}=e,{communicationAction:t,setCommunicationAction:s}=(0,r.useContext)(ek.l9),c=(0,o.useRouter)(),u=a()(c,"query.influencerId"),p=(null==n?void 0:n.flatMap(e=>e.deleted?[]:e.value))||[],{data:m,loading:h,refetch:x}=(0,i.aM)(et,{variables:{influencerId:u},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,skip:!u});(0,r.useEffect)(()=>{t&&[eN.aM.newMessageSent,eN.aM.newMessageReceived,eN.aM.messageDeleted].indexOf(t.type)>-1&&(s(void 0),x())},[t]);let g=a()(m,"getInfluencerEmails.threads")||[],v=g.length?(0,l.jsx)(eS,{emails:p,influencerId:u,threadList:g}):(0,l.jsx)(C,{emails:p});return(0,l.jsx)(f,{children:h?(0,l.jsx)(d.Loader,{fillSpace:!0}):v})}},32196:function(e,n,t){"use strict";t.d(n,{Q:function(){return P}});var l=t(60738),r=t(60737),i=t(14568),o=t(26959),s=t(84223),a=t.n(s),d=t(35799),c=t(21761),u=t(72583),p=t(73754),m=t(62372),f=t(11516);let h=f.default.span.withConfig({displayName:"styles__LabelSeparator",componentId:"sc-9a2fef1a-0"})(["\n  height: 40px;\n  width: 100%;\n  h2 {\n    font-family: Rubik;\n    font-size: 18px;\n    font-weight: normal;\n    font-style: normal;\n    font-stretch: normal;\n    line-height: normal;\n    letter-spacing: normal;\n    color: #270038;\n    margin: 0;\n    height: 40px;\n    display: flex;\n    align-items: center;\n  }\n"]);f.default.span.withConfig({displayName:"styles__EmptyNoteMessage",componentId:"sc-9a2fef1a-1"})(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 68vh;\n  width: 100%;\n"]);let x=(0,f.css)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-right-radius: 8px;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),g=(0,f.css)(["\n  margin-top: -20px;\n"]),v=(0,f.default)(i.Flex).withConfig({displayName:"styles__StyledContainer",componentId:"sc-9a2fef1a-2"})(["\n  background-color: ",";\n  flex-direction: column;\n  height: 100%;\n  border-top-right-radius: 8px;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),y=(0,f.default)(i.Flex).withConfig({displayName:"styles__StyledFlex",componentId:"sc-9a2fef1a-3"})(["\n  height: 100%;\n  justify-content: ",";\n  ",";\n  border-top-right-radius: 8px;\n"],e=>{let{hasNotes:n}=e;return n?"flex-start":"center"},e=>{let{hasNotes:n}=e;return n?"padding: 24px":""}),j=f.default.div.withConfig({displayName:"styles__StyledNote",componentId:"sc-9a2fef1a-4"})(["\n  > div {\n    box-shadow: 0 5px 5px 0 rgb(124 113 148 / 7%) !important;\n  }\n"]);var b=t(89341);let I={title:"influencers.influencerInfoWrapper.notes.empty.titleHeader1",firstSubtitle:"influencers.influencerInfoWrapper.notes.empty.titleParagraph1",buttonText:"influencers.influencerInfoWrapper.notes.button.createNote"},C=e=>{let{onCreate:n}=e,{title:t,firstSubtitle:r,buttonText:o}=I,{t:s}=(0,b.q)();return(0,l.jsx)(i.EmptyState,{stateType:"notLinkedProfiles",styles:x,imageUrl:"/static/img/irm/influencers/no_notes.svg",titleText:s(t),children:(0,l.jsxs)(i.Flex,{styles:g,column:!0,justify:"center",align:"center",gap:"15px",children:[(0,l.jsx)(i.Flex,{column:!0,justify:"center",align:"center",gap:"2px",children:(0,l.jsx)(i.Text,{color:"primary.light3",size:"14",children:s(r)})}),(0,l.jsx)(i.Button,{onClick:n,children:s(o)})]})})};var w=t(66320),T=t.n(w),S=t(54599),k=t(56541),N=t(35584),_=t(16858);let P=()=>{var e;let{t:n}=(0,b.q)(),{locale:t}=(0,S.Qg)(),s=(0,o.useRouter)(),f=a()(s,"query.influencerId"),{data:x,loading:g,fetchMore:I}=(0,d.aM)(u.i,{variables:{influencerId:f,limit:m.NI,skip:!f},fetchPolicy:"network-only"}),w={},[P,E]=(0,r.useState)([]),A=null==x?void 0:null===(e=x.influencerNotes)||void 0===e?void 0:e.totalCount,F=A>0,[O,M]=(0,r.useState)(!1),[L,R]=(0,r.useState)(null),{setNewNoteModalOpen:z}=(0,r.useContext)(N.S),[B,q]=(0,r.useState)(1);(0,r.useEffect)(()=>{var e,n;(null==x?void 0:null===(e=x.influencerNotes)||void 0===e?void 0:e.edges)&&E([...null==x?void 0:null===(n=x.influencerNotes)||void 0===n?void 0:n.edges])},[x]);let[D]=(0,c.D)(p.S),H=async(e,n)=>{try{await D({variables:{_id:n,text:e}})}catch(e){(0,_.Tb)("Error trying to edit a note",e)}},W=e=>{let{date:n,labels:r}=e;return!r[n.month()]&&(r[n.month()]=!0,(0,l.jsx)(h,{children:(0,l.jsx)("h2",{children:"".concat(n.locale(t).format((0,i.InfluDateFormat)().MM))})}))},G=F?(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)(i.Button,{style:{alignSelf:"flex-end"},size:"m",onClick:()=>z(!0),children:n("influencers.influencerInfoWrapper.notes.button.createNote")}),(0,l.jsx)(i.Spacing,{size:8}),(0,l.jsx)(i.ScrollableContainer,{height:(null==P?void 0:P.length)?"100%":"
10",onHitBottom:()=>{B>=A%m.NI||A<=m.NI||I({variables:{influencerId:f,limit:m.NI,page:B+1}}).then(e=>{var n,t;E([...P,...null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.influencerNotes)||void 0===n?void 0:n.edges]),q(B+1)})},styles:{paddingBottom:"84px"},children:null==P?void 0:P.map((e,r)=>{let o=T()(parseInt(e.createdAt));return(0,l.jsxs)(l.Fragment,{children:[W({date:o,labels:w}),(0,l.jsx)(j,{children:(0,l.jsx)(i.Note,{profile:e.author,updateUser:e.updateUser,content:e.text,defaultAvatar:"/static/img/placeholders/avatarPlaceholder.png",date:o.locale(t).format((0,i.InfluDateFormat)(n).MMMM),canEdit:e.hasUpdatePermission,onSave:n=>H(n,e.id),onDelete:()=>{R(e),M(!0)}},"notes".concat(e.inluencerId,"-").concat(r))}),(0,l.jsx)(i.Spacing,{size:8})]})})})]}):(0,l.jsx)(C,{onCreate:()=>z(!0)});return(0,l.jsxs)(v,{children:[(0,l.jsx)(k.h,{isOpen:O,onClose:()=>M(!1),note:L}),g?(0,l.jsx)(i.Loader,{fillSpace:!0}):(0,l.jsx)(y,{column:!0,hasNotes:F,children:G})]})}},72001:function(e,n,t){"use strict";t.d(n,{d:function(){return u}});
1var l=t(60738),r=t(14568),i=t(11516);let o=(0,i.css)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-right-radius: 8px;\n"],e=>{let{theme:n}=e;return n.colors.neutral.white}),s=(0,i.css)(["\n  margin-top: -20px;\n"]);var a=t(89341);let d={title:"entity.influencer.empty.noProfiles.titleHeaderOne",firstSubtitle:"entity.influencer.empty.noProfiles.titleHeaderTwo",buttonText:"commons.button.associateProfiles"},c={title:"entity.list.empty.noProfiles.titleHeaderOne",firstSubtitle:"entity.list.empty.noProfiles.titleHeaderTwo",buttonText:"commons.button.associateProfiles"},u=e=>{let{handleAssociate:n,isList:t}=e,{title:i,firstSubtitle:u,buttonText:p}=t?c:d,{t:m}=(0,a.q)();return(0,l.jsx)(r.EmptyState,{stateType:"notLinkedProfiles",styles:o,imageUrl:"/static/img/irm/influencers/no_profiles_linked.svg",titleText:m(i),children:(0,l.jsxs)(r.Flex,{styles:s,column:!0,justify:"center",align:"center",gap:"15px",children:[(0,l.jsx)(r.Flex,{column:!0,justify:"center",align:"center",gap:"2px",children:(0,l.jsx)(r.Text,{color:"primary.light3",size:"14",children:m(u)})}),n&&(0,l.jsx)(r.Button,{name:"emptyStateAssociateProfile",onClick:n,children:m(p)})]})})}},98781:function(e,n,t){"use strict";t.d(n,{p:function(){return g}});var l=t(60738),r=t(60737),i=t(16858),o=t(14568),s=t(84223),a=t.n(s),d=t(12416),c=t.n(d),u=t(54599),p=t(81939),m=t(35584),f=t(26959),h=t(37844),x=t(21078);let g=()=>{var e;let{locale:n}=(0,u.Qg)(),{getCreateForm:t,values:s,getConditionalForm:d,onCloseForm:g}=(0,o.useCreateEditForm)(),{addIrmAddress:v,loadingAddIrmAddress:y}=(0,p.Jm)(),{influencer:j,isAddAddressModalOpen:b,setAddAddressModalOpen:I}=(0,r.useContext)(m.S),C=c()(null==j?void 0:j.irmAddresses),w=(0,f.useRouter)(),T=a()(w,"query.brandId"),S=w&&w.pathname&&w.pathname.includes("public"),[k]=(0,h.t)(x.H),N=()=>{t(k,{requiredVariables:{formId:"address",brandId:T,locale:n},formProcessingFunction:_,conditionalOptions:[{conditional:!0,conditionalKey:"country",isDirty:!1}]})},_=e=>{var n;if(c()(null==e?void 0:e.inputGroups))return;let t={...e,inputGroups:[]};return null==e||null===(n=e.inputGroups)||void 0===n||n.map(e=>{var n;let l={...e,inputs:[]};return null==e||null===(n=e.inputs)||void 0===n||n.map(e=>{if((null==e?void 0:e.id)==="primary"){let n={...e,value:C,disabled:C};l.inputs.push(n)}else l.inputs.push(e);return null}),t.inputGroups.push(l),null}),t},P=()=>{I(!1),g()},E=async()=>{try{let e=await v({influencerId:null==j?void 0:j._id}),n=a()(e,"data.addIrmAddress");if(null==n?void 0:n.success)return P(),!0;return!1}catch(e){return(0,i.Tb)("Error adding irmAddress",e),!1}};return(0,r.useEffect)(()=>{b&&!S&&N()},[b]),(0,r.useEffect)(()=>{var e,n;b&&(null==s?void 0:null===(e=s.country)||void 0===e?void 0:e.value)&&d({conditionalOptions:[{conditional:!0,conditionalKey:"country",conditionalValue:null==s?void 0:null===(n=s.country)||void 0===n?void 0:n.value,isDirty:!0}],formProcessingFunction:_})},[null==s?void 0:null===(e=s.country)||void 0===e?void 0:e.value]),(0,l.jsx)(o.CreateEditModal,{name:"addIrmAddress",isOpened:b,onClose:P,handleSendForm:E,loading:y,locale:n})}},88501:function(e,n,t){"use strict";t.d(n,{y:function(){return p}});var l=t(60738),r=t(60737),i=t(14568),o=t(89341),s=t(11516),a=t(81939),d=t(35584);let c=(0,s.css)(["\n  border-radius: 8px 8px 0 0;\n"]),u=(0,s.css)(["\n  border-radius: 8px;\n"]),p=()=>{let{t:e}=(0,o.q)(),{deleteIrmAddresses:n,loadingDeleteIrmAddresses:t}=(0,a.Jm)(),{address:s,isDeleteAddressModalOpen:p,setDeleteAddressModalOpen:m}=(0,r.useContext)(d.S),f=async()=>{t||(await n([s._id]),m(!1))};return(0,l.jsxs)(i.Modal,{name:"deleteAddress",color:"state.dangerDefault",headerStyles:c,wrapperStyles:u,onClose:()=>m(!1),isOpen:p,title:e("modal.deletePostalAddress.header"),height:"250",width:"500",children:[(0,l.jsxs)(i.Flex,{column:!0,grow:"1",children:[(0,l.jsx)(i.Text,{color:"primary.dark",size:"14",children:e("modal.deletePostalAddress.titleHeader1")}),(0,l.jsx)(i.Text,{color:"primary.light2",size:"14",children:e("modal.deletePostalAddress.titleParagraph1")})]}),(0,l.jsxs)(i.Flex,{children:[(0,l.jsx)(i.StateButton,{name:"deleteAddress",color:"danger",loading:t,onClick:f,children:e("commons.button.delete")}),(0,l.jsx)(i.Spacing,{size:"16",vertical:!0}),(0,l.jsx)(i.Button,{name:"cancelDeleteAddress",color:"secondary",variant:"flat",onClick:()=>m(!1),children:e("commons.button.cancel")})]})]})}},75478:function(e,n,t){"use strict";t.d(n,{e:function(){return f}});
1var l=t(60738),r=t(60737),i=t(14568),o=t(84223),s=t.n(o),a=t(37844),d=t(54599),c=t(81939),u=t(35584),p=t(21206),m=t(26959);let f=()=>{var e,n;let{locale:t}=(0,d.Qg)(),[o]=(0,a.t)(p.D),{getEditForm:f,values:h,getConditionalForm:x,onCloseForm:g}=(0,i.useCreateEditForm)(),{editIrmAddress:v,loadingEditIrmAddress:y}=(0,c.Jm)(),{address:j,isEditAddressModalOpen:b,setEditAddressModalOpen:I}=(0,r.useContext)(u.S),C=(0,m.useRouter)(),w=null==C?void 0:null===(e=C.query)||void 0===e?void 0:e.brandId,T=()=>{let e=[{conditional:!0,conditionalKey:"country",conditionalValue:null==j?void 0:j.country,isDirty:!1}];f(o,"getIrmAddressFormForEdition",j._id,{conditionalOptions:e,requiredVariables:{brandId:w,locale:t}})},S=async()=>{try{let e=await v(j._id),n=s()(e,"data.editIrmAddress");if(null==n?void 0:n.success)return I(!1),!0;return!1}catch(e){return!1}};return(0,r.useEffect)(()=>{b&&j&&T()},[b]),(0,r.useEffect)(()=>{var e,n;b&&(null==h?void 0:null===(e=h.country)||void 0===e?void 0:e.value)&&x({conditionalOptions:[{conditional:!0,conditionalKey:"country",conditionalValue:null==h?void 0:null===(n=h.country)||void 0===n?void 0:n.value,isDirty:!0}]})},[null==h?void 0:null===(n=h.country)||void 0===n?void 0:n.value]),(0,l.jsx)(i.CreateEditModal,{name:"editIrmAddress",editing:!0,isOpened:b,onClose:()=>{I(!1),g()},handleSendForm:S,loading:y,locale:t})}},32521:function(e,n,t){"use strict";t.d(n,{q:function(){return p},r:function(){return u}});
1var l=t(60738),r=t(60737),i=t(14568),o=t(53862),s=t(70926),a=t(37844),d=t(89341),c=t(54599);let u={TABLE:"table",OVERVIEW:"overview"},p=e=>{let{isOpen:n,onClose:t,influencerId:p,from:m=u.TABLE}=e,{locale:f}=(0,c.Qg)(),{t:h}=(0,d.q)(),{showSnackbar:x}=(0,r.useContext)(i.SnackbarContext),[g]=(0,a.t)(s.t),{getEditForm:v,onCloseForm:y}=(0,i.useCreateEditForm)(),{editIrmInfluencer:j,loadingEditIrmInfluencer:b,handleDuplicatedIrmInfluencer:I,loadingBrandData:C}=(0,o.K)(),w=()=>{v(g,"getInfluencerFormForEdition",p)},T=async()=>{let e=await j(p);return e?e.success?(x("success",h(e.message)),!0):("snackbarError"===e.type&&x("error",h(e.message||"commons.snackbar.error.somethingWentWrong")),!1):(x("error",h("commons.snackbar.error.somethingWentWrong")),!1)};return(0,r.useEffect)(()=>{n&&w()},[n]),(0,l.jsx)(i.CreateEditModal,{name:"editIrmInfluencer",isOpened:n,onClose:()=>{y(),t()},handleSendForm:T,loading:b||C,handleDuplicated:I,editing:!0,locale:f})}},35351:function(e,n,t){"use strict";t.d(n,{I:function(){return c}});
1var l=t(60738),r=t(60737),i=t(14568),o=t(89341),s=t(56867),a=t(87938),d=t(16858);let c=e=>{let{programId:n,influencerId:t,isOpen:c,onClose:u}=e,{t:p}=(0,o.q)(),{showSnackbar:m}=(0,r.useContext)(i.SnackbarContext),{loadingInfluencersInProgram:f,removeInfluencers:h,loadingRemoveInfluencers:x}=(0,s.b)(),g=async()=>{try{await h([n],Array.isArray(t)?t:[t])}catch(e){m("error",p("commons.snackbar.error.somethingWentWrong")),(0,d.Tb)(e)}u()};return(0,l.jsxs)(i.Modal,{name:"deleteInfluencerAndProgram",color:"state.dangerDefault",headerStyles:a.FR,wrapperStyles:a.eZ,onClose:u,isOpen:c,title:p("modal.removeInfluencerFromProgram.header"),height:"264",width:"600",children:[(0,l.jsxs)(i.Flex,{column:!0,grow:"1",children:[(0,l.jsx)(i.Text,{color:"primary.dark",size:"14",styles:a.sY,children:p("modal.removeInfluencerFromProgram.titleHeader1")}),(0,l.jsxs)(i.Text,{color:"primary.light2",size:"14",children:["\xb7 ",p("modal.removeInfluencerFromProgram.bulletPoint1")]}),(0,l.jsxs)(i.Text,{color:"primary.light2",size:"14",children:["\xb7 ",p("modal.removeInfluencerFromProgram.bulletPoint2")]}),(0,l.jsxs)(i.Text,{color:"primary.light2",size:"14",children:["\xb7 ",p("modal.removeInfluencerFromProgram.bulletPoint3")]})]}),(0,l.jsxs)(i.Flex,{children:[(0,l.jsx)(i.StateButton,{name:"deleteInfluencerFromProgram",color:"danger",disabled:f||x,onClick:g,loading:x,children:p("commons.button.remove")}),(0,l.jsx)(i.Spacing,{size:"16",vertical:!0}),(0,l.jsx)(i.Button,{name:"canceldeleteInfluencerFromProgram",color:"secondary",variant:"flat",onClick:u,children:p("commons.button.cancel")})]})]})}},10812:function(e,n,t){"use strict";t.d(n,{u:function(){return j}});var l=t(60738),r=t(60737),i=t(14568),o=t(51101),s=t(12416),a=t.n(s),d=t(85690),c=t(11516);(0,c.css)(["\n  position: sticky;\n  top: 0px;\n  z-index: 99;\n"]);let u=c.default.div.withConfig({displayName:"styles__MetricsOnInfluencerContainer",componentId:"sc-84cdd4d6-0"})(["\n  display: flex;\n  flex: 1;\n  min-height: 0;\n  padding: 24px 20px;\n  overflow: auto;\n  @media print {\n    overflow: visible;\n  }\n"]),p=e=>
1{let{profileId:n,profileData:t,loading:r,error:i,isShared:s,showOnlyRefresh:c,hideRemove:p,fromCampaignV3:m}=e;return!a()(t)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P,{isPublic:s,profile:t,loading:r,error:i,isInfluencer:!0,showOnlyRefresh:c,hideRemove:p,fromCampaignV3:m}),(0,l.jsx)(u,{children:(0,l.jsx)(o.T0,{addMarginAtBottom:"65",profileData:t,isLoadingMetrics:r,hasErrorOnMetricsRequest:i,profileId:n})})]})},m=(0,c.css)(["\n  display: flex !important;\n  flex-direction: column !important;\n  flex: 1;\n  min-height: 0;\n"]),f=c.default.div.withConfig({displayName:"styles__InsightsContainer",componentId:"sc-f175968-0"})(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  min-height: 0;\n  overflow: hidden;\n"]);var h=t(39231),x=t(26959),g=t(54599),v=t(29984),y=t(79066);let j=e=>{let{profilesFromInfluencer:n,openLinkProfile:t,isShared:o,showAddProfileButton:s=!0,showOnlyRefresh:a=!1,hideRemove:d=!1,fromCampaignV3:c=!1}=e,{sharedId:u}=(0,x.useRouter)().query,{locale:j}=(0,g.Qg)(),{activeTab:b,setActiveTab:I}=(0,r.useContext)(i.TabsContext),{data:C,loading:w,error:T}=(0,h.R)({variables:{profileId:b,locale:j,sharedId:u,...u&&{type:"influencer"}},skip:!b});(0,r.useEffect)(()=>{(null==n?void 0:n.length)&&!n.some(e=>{let{_id:n}=e;return n===b})&&I(n[0]._id)},[n]);let[S,k]=(0,r.useState)(!1),{handleShowCarouselForContainer:N,handleShowCarouselForTabs:_}=(0,h.yt)(k),P=(0,i.useNewResizeObserver)(N),E=(0,i.useNewResizeObserver)(_);return(0,l.jsxs)(f,{ref:P,children:[(0,l.jsx)(v.l,{openLinkProfile:t,isShared:o,tabsHeaderRef:E,showCarousel:S,showAddProfileButton:s,children:n.map(e=>{let{_id:n,_type:t,username:r}=e;return(0,l.jsx)(i.Tab,{styles:y.ic,id:n,title:"@".concat(r),hasIcon:!0,iconName:t,iconPosition:"start"},n)})}),w?(0,l.jsx)(i.Loader,{fillSpace:!0}):(0,l.jsx)(i.TabContent,{styles:m,id:b,children:(0,l.jsx)(p,{profileId:b,profileData:C,loading:w,error:T,isShared:o,showOnlyRefresh:a,hideRemove:d,fromCampaignV3:c})})]})}},39672:function(e,n,t){var l=t(80602),r=t(99223),i=Array.prototype.splice;e.exports=function(e,n){for(var t=e?n.length:0,o=t-1;t--;){var s=n[t];if(t==o||s!==a){var a=s;r(s)?i.call(e,s,1):l(e,s)}}return e}},74950:function(e){e.exports=function(e){return null===e}},94390:function(e,n,t){var l=t(81035),r=t(39672);e.exports=function(e,n){var t=[];if(!(e&&e.length))return t;var i=-1,o=[],s=e.length;for(n=l(n,3);++i<s;){var a=e[i];n(a,i,e)&&(t.push(a),o.push(i))}return r(e,o),t}}}]);
2//# sourceMappingURL=7064-10f0eb35ab106fec.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.