PageSourceSearch

https://theright.fit/1426.12f356d61b809b78.js

js theright.fit collected 2026-09-24 11:53:08 UTC 172,615 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[1426],{81367(e,a,t){t.d(a,{A:()=>f,z:()=>g});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.808 2.12a.667.667 0 0 0-.94.003l-.914.913a5.35 5.35 0 0 1 3.014 3.02l.933-.917a.667.667 0 0 0 .001-.95zm1.51 5.462 1.517-1.491a2 2 0 0 0 .004-2.85l-2.094-2.07a2 2 0 0 0-2.82.009L8.42 2.683Q8.212 2.667 8 2.667a5.333 5.333 0 0 0-5.317 5.75L1.159 9.916a2 2 0 0 0-.013 2.84l2.106 2.107a2 2 0 0 0 2.829 0l1.542-1.542q.186.013.377.013a5.333 5.333 0 0 0 5.317-5.75M6.08 12.977a5.35 5.35 0 0 1-3.048-3.033l-.939.922a.667.667 0 0 0-.004.947l2.106 2.106c.26.26.683.26.943 0zM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8m1.805 2.195c.26.26.26.683 0 .943L8.943 8l.862.862a.667.667 0 0 1-.943.943L7.529 8.47a.667.667 0 0 1 0-.942l1.333-1.334c.26-.26.682-.26.943 0",clipRule:"evenodd"}))),i||(i=s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))};t.p;var r=t(13838),c=t(1806),d=t(53303),u=t(43253),m=t(69479),h=t(95375),p=t(99513);const g=e=>{if(!e)return"Active recently";try{const a=(0,c.A)(e),t=new Date,n=(0,d.A)(t,a),i=(0,u.A)(t,a),s=(0,m.A)(t,a),l=(0,h.A)(t,a),o=(0,p.A)(t,a);return n<5?"Active now":i<24?"Active today":1===s?"Active 1 day ago":2===s?"Active 2 days ago":3===s?"Active 3 days ago":l<4?"Active this week":o<1?"Active this month":"Active recently"}catch(a){return"Active recently"}};var v=t(74848);const f=({timestamp:e})=>{const a=g(e),t=()=>"Active now"===a?{type:"active",color:"#027A48"}:{type:"information",color:"#192FB1"};return(0,v.jsx)("div",{className:"inline-flex items-center px-3 rounded-full text-sm font-medium",children:(0,v.jsx)(r.Ex,{label:a,leftNode:(0,v.jsx)(o,{color:t().color}),type:t().type})})}},50297(e,a,t){t.d(a,{A:()=>r});var n=t(85428),i=t(87778),s=t(8204),l=t(13838),o=t(74848);const r=({headerText:e,firstBtnText:a,secondBtnText:t,FirstBtnOnClick:r,SecondBtnOnClick:c,bannerClassName:d})=>{const u="talent"===(0,s.A)().getUserType();return(0,o.jsxs)("div",{className:`go-pro-banner ${d||""}`,children:[(0,o.jsx)("div",{className:"go-pro-banner__text "+(u?"":"text-justify"),children:e}),(0,o.jsxs)("div",{className:"go-pro-banner__btns",children:[a&&(0,o.jsx)(l.$n,{theme:"blue-filled",leftNode:u?(0,o.jsx)("span",{className:"btn1__icon-outer",children:(0,o.jsx)(n.h,{})}):(0,o.jsx)(i.h,{className:"analytics-plus-icon",height:16,width:16,fill:"white"}),size:"small",label:a,onClick:()=>null==r?void 0:r(),className:u?"":"go-plus-btn"}),t&&(0,o.jsx)(l.$n,{theme:"outline-blue",size:"small",label:t,onClick:()=>null==c?void 0:c()})]})]})}},35120(e,a,t){t.d(a,{A:()=>O});var n=t(40644),i=t(96540),s=t(99272),l=t(61784),o=t(28454),r=t(20225),c=t(42302),d=t(82790),u=t(43627),m=t(91791),h=t(9134),p=t(49785),g=t(64864),v=t(25814),f=t(63187);var x=t(61409),b=t(32485),j=t.n(b),y=t(74848);const w=e=>{const{register:a,handleSubmit:t,watch:n,setError:s,setValue:r,formState:{errors:c}}=(0,p.mN)({mode:"onChange"}),d=-1!==navigator.userAgent.indexOf("trf-app"),u=(0,i.useRef)(null),[m,h]=(0,i.useState)(),[b,w]=(0,i.useState)(),_=e=>{var a;return!(!c[e]||null==(a=c[e])||!a.message)},N=e=>{var a;return(0,y.jsxs)(y.Fragment,{children:[c[e]&&(0,y.jsx)("div",{className:"error-message",children:null==(a=c[e])?void 0:a.message}),b&&(0,y.jsx)(v.A,{errorField:e,errors:b})]})},C=e=>{if(r("link",""),s("link",{}),e.target.files){const a=0,t=e.target.files[a];t.size<=1073741824&&(t.inQueue=!0,k(t).then(e=>{t.view=e,h(t),r("attachment",t)}).catch(e=>{console.error(`FileReader failed on file ${t.name}.`)}))}},k=e=>new Promise((a,t)=>{const n=new FileReader;n.onload=e=>{var t;a(null==(t=e.target)?void 0:t.result)},n.onerror=a=>{console.error(`FileReader failed on file ${e.name}.`),t(null)},e||(console.error("No file to read."),t(null)),n.readAsDataURL(e)}),A=e=>{const a=e&&e.mime?e.mime:e&&e.type?e.type:null;return!(!a||!a.includes("image"))},S=()=>{O("attachment"),h(void 0),r("attachment",null),u.current&&(u.current.value="")},O=async e=>{w(a=>{const t=Object.assign({},a);return delete t[e],t})},{mutate:I,isPending:M}=(0,o.n)({mutationFn:e=>{return a=e,(0,f.T3)("/media-items",a);var a},onError:e=>{Object.values(e._errors).some(e=>Array.isArray(e)&&e.length>0)?(w(e),x.oR.error(e._message)):e._message&&x.oR.error(e._message)},onSuccess:a=>{w(void 0),x.oR.success("Content added successfully.");const t=a.data.data;e.onAddContentHandler(t)}}),L=n();return(0,y.jsx)(l.A,{show:!0,className:j()("add-edit-gallery-content",{"add-edit-gallery-content__webview":d}),children:(0,y.jsxs)("form",{onSubmit:t(async e=>{M||0===Object.keys(c).length&&I(e)}),className:"",children:[(0,y.jsxs)(l.A.Body,{children:[(0,y.jsx)("button",{type:"button",className:"close",onClick:()=>e.onClose()}),(0,y.jsxs)("div",{className:"d-flex justify-content-start align-items-start",children:[(0,y.jsx)("button",{className:"btn btn-rounded btn-clear btn-trf-outline-black back-btn mr-3",onClick:()=>e.onClose(),children:(0,y.jsx)("i",{className:"fa fa-angle-left"})}),(0,y.jsx)("h1",{className:"title",children:"Add Content"})]}),(0,y.jsxs)("div",{className:"step",children:[(0,y.jsx)("h5",{className:"step-heading",children:"Step 1: Link or upload your content"}),(0,y.jsx)("p",{className:"help-text",children:"We recommend providing a link to your content from a social platform where possible. This will provide more social proof than uploading content from your device."}),(0,y.jsxs)("div",{className:`form-group ${_("link")?"has-danger":""} ${m?"disabled":""}`,children:[(0,y.jsxs)("label",{className:"control-label",children:["Option 1: ",(0,y.jsx)("span",{children:"Paste the link to your post from any social media account:"})]}),(0,y.jsx)(g.p,Object.assign({type:"text",className:"form-control",id:"email",onFocus:()=>O("link")},a("link",{required:!1,validate:e=>!e||((e=>{try{return new URL(e),!0}catch(a){return!1}})(e)||"Please enter a valid URL")}),{disabled:!!m})),N("link")]}),(0,y.jsxs)("div",{className:`form-group ${_("attachment")?"has-danger":""}  ${L&&L.link&&c&&!c.link?"disabled":""}`,children:[(0,y.jsxs)("label",{className:"control-label mt-4  mb-3",children:["Option 2: ",(0,y.jsx)("span",{children:"Upload media from your device"})]}),!m&&(0,y.jsx)("label",{onClick:()=>{u.current&&u.current.click()},className:"content-input-label",children:(0,y.jsx)("i",{className:"fa fa-plus"})}),(0,y.jsxs)("div",{className:"uploaded-file",children:[m&&A(m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{src:m.view?String(m.view):"",alt:"img"}),(0,y.jsx)("button",{type:"button",className:"delete",onClick:S,children:"x"})]}),m&&!A(m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"file-preview-block",children:[m.name.substring(0,10),"..."]}),(0,y.jsx)("button",{type:"button",className:"delete",onClick:S,children:"x"})]})]}),(0,y.jsx)("input",Object.assign({className:"content-input-image",id:"photoUser"},a("attachment",{required:!1}),{type:"file",ref:u,accept:"image/jpeg, image/png, image/gif, video/*",onChange:async e=>{C(e)},disabled:!(!(L&&L.link&&c)||c.link)}))]}),N("attachment")]}),(0,y.jsxs)("div",{className:"step step-2",children:[(0,y.jsx)("h5",{className:"step-heading",children:"Step 2: Provide additional info"}),(0,y.jsx)("p",{className:"help-text",children:"Let people know what brand you collaborated with and provide more details about this campaign."}),(0,y.jsxs)("div",{className:"form-group "+(_("title")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Brand/Headline (optional)"}),(0,y.jsx)(g.p,Object.assign({type:"text",className:"form-control",id:"title",onFocus:()=>O("title")},a("title"))),N("title")]}),(0,y.jsxs)("div",{className:"form-group "+(_("description")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Description (optional)"}),(0,y.jsx)("textarea",Object.assign({className:"trf-form-control form-control",id:"detailsId",placeholder:"Provide additional info about this content. Your original caption will already be shown.",onFocus:()=>O("description")},a("description",{required:!1}))),N("description")]})]})]}),(0,y.jsx)(l.A.Footer,{children:(0,y.jsxs)("div",{className:" d-flex align-items-center justify-content-between w-100",children:[(0,y.jsx)("button",{type:"button",onClick:()=>e.onClose(),className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",children:"cancel"}),(0,y.jsxs)("button",{type:"submit",disabled:!L||!L.link&&!L.attachment,className:"btn btn-rounded text-uppercase "+(L&&(L.link||L.attachment)?"btn-trf-yellow":""),children:["save",M&&(0,y.jsx)("i",{className:"fa fa-spinner fa-pulse ml-2"})]})]})})]})})};var _=t(3901);const N=e=>{const a=e.mediaItem,t=-1!==navigator.userAgent.indexOf("trf-app"),{register:n,handleSubmit:s,setValue:r,formState:{errors:c}}=(0,p.mN)({mode:"onChange"}),[d,u]=(0,i.useState)(),[m,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{a.title&&r("title",a.title),a.description&&r("description",a.description)},[]);const{mutate:b,isPending:w}=(0,o.n)({mutationFn:e=>{return t=a.id.toString(),n=e,(0,f.yJ)(`/media-items/${t}`,n);var t,n},onError:e=>{var a,t;null!=(a=e.response)&&null!=(a=a.data)&&a.message?x.oR.error(null==(t=e.response)||null==(t=t.data)?void 0:t.message):x.oR.error("Oops! Something went wrong while adding content. Please try again.")},onSuccess:a=>{u(void 0),x.oR.success("Content updated successfully!");const t=a.data.data;e.onEditContentHandler(t)}}),{mutate:N,isPending:C}=(0,o.n)({mutationFn:e=>{return a=e.toString(),(0,f.Wv)(`/media-items/${a}`);var a},onError:e=>{var a,t;null!=(a=e.response)&&null!=(a=a.data)&&a.message&&x.oR.error(null==(t=e.response)||null==(t=t.data)?void 0:t.message)},onSuccess:t=>{u(void 0),x.oR.success("Content deleted."),e.onDeleteContentHandler(a)}}),k=e=>{var a;return!(!c[e]||null==(a=c[e])||!a.message)},A=e=>{var a;return(0,y.jsxs)(y.Fragment,{children:[c[e]&&(0,y.jsx)("div",{className:"error-message",children:null==(a=c[e])?void 0:a.message}),d&&(0,y.jsx)(v.A,{errorField:e,errors:d})]})};return(0,y.jsx)(l.A,{show:!0,className:j()("add-edit-gallery-content",{"add-edit-gallery-content__webview":t}),children:(0,y.jsxs)("form",{onSubmit:s(e=>{w||0===Object.keys(c).length&&b(e)}),className:"",children:[(0,y.jsxs)(l.A.Body,{children:[(0,y.jsx)("button",{type:"button",className:"close",onClick:()=>e.onClose()}),(0,y.jsxs)("div",{className:"d-flex justify-content-start align-items-start",children:[(0,y.jsx)("button",{className:"btn btn-rounded back-btn  btn-clear btn-trf-outline-black mr-3",onClick:()=>e.onClose(),children:(0,y.jsx)("i",{className:"fa fa-angle-left"})}),(0,y.jsx)("h1",{className:"title",children:"Edit Content"})]}),(0,y.jsxs)("div",{className:"step step-2",children:[(0,y.jsx)("p",{className:"help-text",children:"Let people know what brand you collaborated with and provide more details about this campaign."}),(0,y.jsxs)("div",{className:"form-group "+(k("title")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Brand/Headline (optional)"}),(0,y.jsx)(g.p,Object.assign({type:"text",className:"form-control",id:"title"},n("title"))),A("title")]}),(0,y.jsxs)("div",{className:"form-group "+(k("description")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Description (optional)"}),(0,y.jsx)("textarea",Object.assign({className:"trf-form-control form-control",id:"detailsId",placeholder:"Provide additional info about this content. Your original caption will already be shown."},n("description",{required:!1}))),A("description")]}),(0,y.jsx)("p",{className:"help-text delete-item "+(C?"":"active"),onClick:()=>h(!0),children:"Delete this item"})]}),m&&(0,y.jsx)("div",{className:"delete-gallery-container",children:(0,y.jsxs)("div",{className:"delete-gallery-content",children:[(0,y.jsxs)("div",{className:"d-flex justify-content-between align-items-start",children:[(0,y.jsx)("div",{className:"warning-icon-container text-center",children:(0,y.jsx)(_.h,{})}),(0,y.jsx)("div",{className:"ml-auto",children:(0,y.jsx)("button",{type:"button",className:"close",onClick:()=>h(!1)})})]}),(0,y.jsx)("h5",{children:" Are you sure you want to delete this item?"}),(0,y.jsxs)("button",{type:"button",className:"btn btn-block text-danger btn-rounded text-uppercase btn-trf-outline-danger mb-2  w-100",onClick:()=>{C||N(a.id.toString())},disabled:C,children:["delete",C?(0,y.jsx)("span",{children:(0,y.jsx)("i",{className:"ml-2 fa fa-spinner fa-pulse"})}):null]}),(0,y.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded d-block text-uppercase w-100",onClick:()=>h(!1),children:"go back"})]})})]}),(0,y.jsx)(l.A.Footer,{children:(0,y.jsxs)("div",{className:" d-flex align-items-center justify-content-between w-100",children:[(0,y.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",onClick:()=>e.onClose(),children:"cancel"}),(0,y.jsxs)("button",{type:"submit",disabled:w,className:"btn btn-rounded text-uppercase btn-trf-yellow",children:["save",w&&(0,y.jsx)("i",{className:"fa fa-spinner fa-pulse ml-2"})]})]})})]})})};
1var C=t(85383),k=t(45311);const A=["alt","style"],S={id:"add-media-item",profile_id:"add-media-item",type:"add-media-item",url:"",path:"",thumbnail_path:"",meta:null,order:0,title:"",description:"",created_at:"",updated_at:"",src:"fghsdgh",width:1,height:1},O=e=>{const a=(0,k.E)(),[t,p]=i.useState([S]),g=i.useRef({}),[v,x]=i.useState(),b=v?t.findIndex(e=>e.id===v):void 0,[_,O]=i.useState(!1),[I,M]=i.useState(!1),[L,$]=i.useState(),[E,F]=i.useState(void 0),T=i.useRef(null),[B,P]=i.useState(0),R=-1!==navigator.userAgent.indexOf("trf-app"),D=()=>{F(e=>void 0!==e?e+1:1)},K=(0,d.FR)((0,d.MS)(d.cA,{activationConstraint:{distance:5}}),(0,d.MS)(d.IG,{activationConstraint:{delay:50,tolerance:10}}),(0,d.MS)(d.uN,{coordinateGetter:u.JR})),H=i.useCallback(({active:e})=>x(e.id),[]),{mutate:q}=(0,o.n)({mutationFn:e=>{return a=e,(0,f.FI)("/media-items/reorder",{media_item_ids:a});var a},onError:e=>{console.log("error  in reorderd")},onSuccess:()=>{console.log("reorderd")}}),z=i.useCallback(e=>{const{active:a,over:t}=e;t&&a.id!==t.id&&p(e=>{const n=e.findIndex(e=>e.id===a.id),i=e.findIndex(e=>e.id===t.id),s=(0,u.be)(e,n,i),l=s.filter(e=>"dummy-slide"!==e.type&&"add-media-item"!==e.type).map(e=>e.id.toString());return q(l),s}),x(void 0)},[]),U=i.memo(i.forwardRef(function(e,a){var t;const{layoutOptions:i,imageProps:s,overlay:l,active:o,insertPosition:r,attributes:c,listeners:d}=e,{alt:u,style:m}=s,p=(0,n.A)(s,A);return(0,y.jsx)("div",Object.assign({ref:a,style:{width:l?`calc(100% - ${2*i.padding}px)`:m.width,padding:m.padding,marginBottom:m.marginBottom},className:j()("photo-frame",{overlay:l,active:o,insertBefore:"before"===r,insertAfter:"after"===r})},c,d,{onClick:()=>{$(e.photo),G(),M(!0)},children:(0,y.jsxs)("span",{children:[(0,y.jsx)("img",Object.assign({alt:u,style:Object.assign({},m,{width:"100%",height:"auto",padding:0,marginBottom:0,objectFit:"cover"})},p)),"video"===(null==(t=e.photo)?void 0:t.type)&&(0,y.jsx)("span",{className:"video-icon",children:(0,y.jsx)(h.h,{})})]})}))})),W=e=>{const{photo:a,activeIndex:t}=e,{attributes:n,listeners:i,isDragging:s,index:l,over:o,setNodeRef:r}=(0,u.gl)({id:a.id});return(0,y.jsx)(U,Object.assign({ref:r,active:s,insertPosition:void 0===t||(null==o?void 0:o.id)!==a.id||s?void 0:l>t?"after":"before","aria-label":"sortable image",attributes:n,listeners:i},e))},G=()=>{T.current&&P(T.current.scrollTop)},{data:V,refetch:Z,isFetching:Y}=(0,r.I)({queryKey:["getMediaItems"],enabled:!1,refetchOnWindowFocus:!1,queryFn:async()=>await(0,f.Jt)("media-items")});(0,i.useEffect)(()=>{var e;if(null==V||null==(e=V.data)||!e.length)return;const a=V.data.map(e=>Object.assign({},e,{src:e.thumbnail_path,width:1,height:1}));p(e=>[...3===a.length?e.slice(0,1):e,...a]),D()},[V]);i.useEffect(()=>{if(a&&a.length>0){const e=null==a?void 0:a.map(e=>Object.assign({},e,{src:e.thumbnail_path,width:1,height:1}));p(a=>[...a,...e])}else Z();D()},[]);const J=()=>{setTimeout(()=>{T.current&&(T.current.scrollTop=B)},50)},Q=()=>{setTimeout(()=>{if(T.current){const e=T.current.scrollHeight;T.current.scrollTop=e}},50)};i.useEffect(()=>{if(!E)return;const e=t.filter(e=>"dummy-slide"!==e.type),a=e.length;if(a%4==0)return void p(e);const n=4-a%4,i=Array.from({length:n},()=>{const e=(0,c.A)();return{id:e,profile_id:"dummy-slide",type:"dummy-slide",url:"",path:"",thumbnail_path:"",meta:null,order:0,title:"",description:"",created_at:"",updated_at:"",src:e,width:1,height:1}}),s=[...e,...i];p(s)},[E]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.A,{show:!_&&!I,className:j()("edit-talent-gallery-modal",{"edit-talent-gallery-modal__webview":R}),children:(0,y.jsx)(l.A.Body,{ref:T,children:(0,y.jsxs)("div",{className:"edit-talent-gallery "+(_||I?"d-none":""),children:[(0,y.jsx)("button",{type:"button",className:"close",onClick:()=>{if(e.onClose){const a=t.filter(e=>"add-media-item"!==e.type&&"dummy-slide"!==e.type).map(e=>Object.assign({},e,{id:String(e.id),profile_id:e.profile_id,type:e.type,url:e.url,path:e.path,thumbnail_path:e.thumbnail_path,meta:e.meta,order:e.order,title:e.title,description:e.description,created_at:e.created_at,updated_at:e.updated_at}));e.onClose(a)}}}),(0,y.jsx)("h1",{children:"Edit Gallery"}),(0,y.jsxs)("p",{className:"sub-heading",children:["Select the content you wish to edit. Click and drag to reorder. ",(0,y.jsx)("br",{}),"Maximum 10 contents allowed in your gallery."]}),(0,y.jsx)(C.A,{loading:Y}),(0,y.jsxs)(d.Mp,{sensors:K,collisionDetection:d.fp,onDragStart:H,onDragEnd:z,children:[(0,y.jsx)(u.gB,{items:t,children:(0,y.jsx)("div",{style:{margin:0},children:(0,y.jsx)(s.Wf,{photos:t,columns:4,layout:"rows",spacing:e=>e<800?20:e<600?15:32,padding:0,renderPhoto:e=>{if(g.current[e.photo.id]=e,"add-media-item"===e.photo.id){const{imageProps:a}=e,{style:n}=a,i=t.filter(e=>"dummy-slide"!==e.type&&"add-media-item"!==e.type);return(0,y.jsx)("div",{className:`add-photo-item-container ${i.length>=10&&"disabled"}`,style:{width:n.width,padding:n.padding,marginBottom:n.marginBottom},onClick:()=>{i.length<10&&(G(),O(!0))},children:(0,y.jsxs)("div",{children:[(0,y.jsx)(m.h,{className:"plus-icon"})," ADD content",i.length>=10&&(0,y.jsx)("p",{className:"warning-text",children:"You've reached the maximum of 10 contents! To add more, you'll need to remove one of the currently selected contents."})]})})}if("dummy-slide"===e.photo.type){const{imageProps:a}=e,{style:t}=a;return(0,y.jsx)("div",{className:"dummy-slide",style:{width:t.width,padding:t.padding,marginBottom:t.marginBottom}})}return(0,y.jsx)(W,Object.assign({activeIndex:b},e))},rowConstraints:e=>e<600?{maxPhotos:2,minPhotos:2}:{maxPhotos:4,minPhotos:4}})})}),(0,y.jsx)(d.Hd,{children:v&&(0,y.jsx)(U,Object.assign({overlay:!0},g.current[v]))})]})]})})}),_&&(0,y.jsx)(w,{onClose:()=>O(!1),onAddContentHandler:e=>{const a=Object.assign({},e,{src:e.thumbnail_path,width:1,height:1}),n=t.filter(a=>"dummy-slide"!==a.type&&a.id!==e.id);p([...n,a]),O(!1),D(),Q()}}),I&&(0,y.jsx)(N,{mediaItem:L,onClose:()=>{M(!1),J()},onEditContentHandler:e=>{M(!1);const a=Object.assign({},e,{src:e.thumbnail_path,width:1,height:1}),n=t.findIndex(e=>e.id===a.id);if(-1!==n){const e=[...t];e[n]=a,p(e)}J(),D()},onDeleteContentHandler:e=>{J();const a=t.filter(a=>"dummy-slide"!==a.type&&a.id!==e.id);p(a),M(!1),D()}})]})}},51349(e,a,t){t.d(a,{A:()=>u});var n=t(32485),i=t.n(n),s=t(26179),l=t(91706),o=t(13838);const r={container:"__A0_M_K",content:"__LF8ufI",contentBody:"__YP_Bu6",leftBlock:"__tbBC7y",proBannerIcon:"__VyNRph",title:"__iFGGs9",proButton:"__vh4ljt"};var c=t(74848);function d(e){return(0,c.jsx)("div",{className:i()(r.container,null==e?void 0:e.className),children:(0,c.jsx)("div",{className:r.content,children:(0,c.jsxs)("div",{className:r.contentBody,children:[(0,c.jsxs)("div",{className:r.leftBlock,children:[e.icon,!e.icon&&(0,c.jsx)(l.h,{className:r.proBannerIcon,height:14,width:14}),(0,c.jsx)("div",{className:r.title,children:e.title})]}),(0,c.jsx)("div",{className:r.rightBlock,children:(0,c.jsx)(o.$n,{theme:"plain",type:"button",rightNode:(0,c.jsx)(s.h,{color:"#667085"}),size:"small",label:"PRO",onClick:e.onProButtonClick,className:r.proButton})})]})})})}function u(e){const a=Object.assign({},e);return(0,c.jsx)(d,Object.assign({},a))}},87599(e,a,t){t.d(a,{A:()=>p});var n=t(3433),i=t(96540),s=t(49394),l=t(8204);const o=t.p+"announcement.9b88b6a68831661a.jpg";var r=t(32485),c=t.n(r),d=t(13838);const u={container:"__JqfKiR",content:"__MHNj70",contentBody:"__cxYvmH",headline:"__rbso1P",footer:"__b1ya3b"};var m=t(74848);function h(e){const a=()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"Introducing Application Insight \u2013 the smarter way to stay on top of your campaign applications:"}),(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"\u2705 See when your application is viewed"}),(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"\u2705 Get faster feedback"}),(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"Upgrade to pro to take control and maximize your opportunities."})]});return(0,m.jsx)(d.aF,{show:!0,className:e.modalClassName||"",bodyClassName:u.modalBody,contentClassName:null==e?void 0:e.modalContentClass,children:(0,m.jsx)("div",{className:u.container,children:(0,m.jsxs)("div",{className:u.content,children:[(0,m.jsxs)("div",{className:u.contentBody,children:[(0,m.jsx)("img",{src:e.bannerImage||o,alt:"Announcement"}),(0,m.jsx)(d.o5,{variant:"title6",weight:"500",color:"dark-1",label:e.headline,className:c()(u.headline,null==e?void 0:e.headlineClass)}),(t=>{switch(t){case"application_insights":return(0,m.jsx)(a,{});
1case"description":return e.description;case"campaign_matching":return(0,m.jsxs)(d.fv,{style:{gap:4},children:[(0,m.jsx)(d.o5,{variant:"copy",color:"blue-grey-2",label:"Fast-track your way to more brand deals with Pro subscription. Get matched with campaigns tailored to your content, audience, and values\u2014so you can spend less time searching and more time creating."}),(0,m.jsx)(d.o5,{variant:"copy",color:"blue-grey-2",label:"\u2705 Reduce clutter\u2014only see campaigns that fit your profile"}),(0,m.jsx)(d.o5,{variant:"copy",color:"blue-grey-2",label:"\u2705 Match with brands that align with your niche"})]});case"affiliate_directory":return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"We\u2019ve scoured the web to curate a list of affiliate programs that are actively accepting applications. No more dead ends or outdated opportunities\u2014just real brands looking for partners like you."}),(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"\u2705 Find the Right Fit \u2013 Browse programs across industries and niches."}),(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"\u2705 Brand Insights \u2013 Get audience data, engagement metrics, and past collaborator info."})]});case"onboarding_complete":return(0,m.jsx)(d.o5,{variant:"copy",color:"grey-600",label:"Detail your brief and get matched with creators who want to work with you. It only takes a few minutes. "});default:return e.description||null}})(e.feature)]}),(0,m.jsxs)("div",{className:u.footer,children:[(0,m.jsx)(d.$n,{theme:"outline-black",label:"Close",onClick:e.handleOnClose,className:"w-100"}),(0,m.jsx)(d.$n,{theme:"primary",label:"Upgrade",onClick:e.handleUpgradeClick,className:"w-100"})]})]})})})}function p(e){const a=(0,s.IF)(e=>e.userDetail.data),t=(0,n.Zp)(),o="talent"===(0,l.A)().getUserType();(0,i.useEffect)(()=>{window.analytics.track("velvet.rope.modal.viewed",{email_address:null==a?void 0:a.email,user_id:null==a?void 0:a.user_id,country:null==a?void 0:a.country,profile_type:"talent",headline:null==e?void 0:e.headline,feature:null==e?void 0:e.feature})},[]);const r=Object.assign({},e,{handleOnClose:()=>{window.analytics.track("velvet.rope.modal.click.secondary",{email_address:null==a?void 0:a.email,user_id:null==a?void 0:a.user_id,country:null==a?void 0:a.country,profile_type:"talent",headline:null==e?void 0:e.headline,feature:null==e?void 0:e.feature,action:"Close"}),e.onClose()},handleUpgradeClick:()=>{window.analytics.track("velvet.rope.modal.click.primary",{email_address:null==a?void 0:a.email,user_id:null==a?void 0:a.user_id,country:null==a?void 0:a.country,profile_type:"talent",headline:null==e?void 0:e.headline,feature:null==e?void 0:e.feature,action:"Upgrade"}),localStorage.setItem("subscriptiontFeature",null==e?void 0:e.feature),t(o?"/talent/subscription":"/subscription")}});return(0,m.jsx)(h,Object.assign({},r))}},65454(e,a,t){t.d(a,{Ay:()=>o});var n=t(96540),i=t(85902),s=t(36159),l=t(74848);function o(e){const a=e.title||s.yy,t=e.description||"theright.fit is a marketplace that connects brands to talent. Post a job and let over 17,000 top tier talent apply to you. Find models, actors, photographers, influencers, and more.",o=e.imageUrl||"https://content.theright.fit/platform/images/og-images/home.jpg",r=e.canonicalUrl,c=e.url||r||("undefined"!=typeof window?window.location.href:void 0),d=e.type||"website",u=e.siteName||s.yy,m=e.linkTags||[],h=e.metaTags||[];return(0,n.useEffect)(()=>(document.title=a,()=>{document.title=s.yy}),[a]),(0,l.jsxs)(i.mg,{children:[r&&(0,l.jsx)("link",{rel:"canonical",href:r}),m.map((e,a)=>(0,l.jsx)("link",Object.assign({},e),`${e.rel||"link"}-${e.href||a}-${a}`)),t&&(0,l.jsx)("meta",{name:"description",content:t}),(0,l.jsx)("meta",{property:"og:title",content:a}),t&&(0,l.jsx)("meta",{property:"og:description",content:t}),(0,l.jsx)("meta",{property:"og:image",content:o}),(0,l.jsx)("meta",{property:"og:type",content:d}),c&&(0,l.jsx)("meta",{property:"og:url",content:c}),(0,l.jsx)("meta",{property:"og:site_name",content:u}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:title",content:a}),t&&(0,l.jsx)("meta",{name:"twitter:description",content:t}),(0,l.jsx)("meta",{name:"twitter:image",content:o}),h.map((e,a)=>{const t=e.name||e.property||e.httpEquiv||`meta-${a}`;return(0,l.jsx)("meta",Object.assign({},e),`${t}-${e.content||a}-${a}`)})]})}},33412(e,a,t){t.d(a,{A:()=>p});var n,i,s,l=t(61784),o=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(null,arguments)}var c=function(e){return o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),n||(n=o.createElement("circle",{cx:10,cy:10,r:10,fill:"#FED942"})),i||(i=o.createElement("g",{clipPath:"url(#a)"},o.createElement("path",{fill:"#0D1962",d:"M10.485 5.131a.525.525 0 0 0-.97 0L8.193 8.308H5.334a.525.525 0 0 0-.372.897l2.143 2.142-.54 3.233a.525.525 0 0 0 .789.537L10 13.529l2.647 1.588a.525.525 0 0 0 .788-.537l-.54-3.233 2.143-2.142a.525.525 0 0 0-.371-.897h-2.858z"}))),s||(s=o.createElement("defs",null,o.createElement("clipPath",{id:"a"},o.createElement("path",{fill:"#fff",d:"M3 3h14v14H3z"})))))};t.p;var d=t(87778),u=t(17816),m=t(13838),h=t(74848);const p=({showAnalyticsInfo:e,setShowAnalyricsInfo:a,FirstBtnOnClick:t,SecondBtnOnClick:n,hideSecondBtn:i,isPro:s})=>(0,h.jsx)(l.A,{show:e,className:"analytics-info-modal",onHide:()=>a(!1),children:(0,h.jsxs)(l.A.Body,{children:[(0,h.jsx)("button",{type:"button",className:"close",onClick:()=>a(!1)}),(0,h.jsxs)("div",{className:"main-body",children:[(0,h.jsxs)("div",{className:"analytics-info-header",children:[(0,h.jsx)("div",{className:"header-text",children:"Who can see my analytics?"}),(0,h.jsx)("div",{})]}),(0,h.jsxs)("div",{className:"analytics-info-body",children:[(0,h.jsx)("div",{children:(0,h.jsx)(d.h,{height:24,width:24})}),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"analytics-info-subheader pb-2",children:"Plus users"}),(0,h.jsx)("div",{className:"analytics-info-text",children:"Clients who are TRF Plus subscribers can see your analytics."})]})]}),(0,h.jsxs)("div",{className:"analytics-info-body",children:[(0,h.jsx)("div",{children:(0,h.jsx)(u.h,{height:24,width:24})}),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"analytics-info-subheader pb-2",children:"Media kit shared "}),(0,h.jsx)("div",{className:"analytics-info-text",children:"If you're subscribed to pro, you can share your analytics through your media kit to anyone."})]})]}),s?"":(0,h.jsxs)("div",{className:"analytics-info-footer",children:[(0,h.jsx)(m.$n,{theme:"blue-filled",leftNode:(0,h.jsx)(c,{}),size:"small",label:"Go Pro",onClick:t}),!i&&(0,h.jsx)(m.$n,{theme:"outline-blue",size:"small",label:"See Sample",onClick:n})]})]})]})})},30591(e,a,t){t.d(a,{A:()=>o});t(96540);var n=t(61784),i=t(32485),s=t.n(i),l=t(74848);const o=({modalType:e,modalContent:a,secondBtnStyle:t,isContinueBtnDisabled:i,continueBtnStyle:o,isLoading:r,isSaving:c,handleContinueBtn:d,handleCancelBtn:u,handleModalClose:m})=>(0,l.jsx)("div",{className:"media-confirmation-modal",children:(0,l.jsxs)(n.A,{show:!0,className:"media-confirmation-modal",onHide:()=>!c&&m(e),children:[(0,l.jsxs)(n.A.Body,{children:[(0,l.jsx)("button",{type:"button",className:"close",onClick:()=>m(e)}),(0,l.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,l.jsx)("div",{className:"header-text ",children:a.header}),(0,l.jsx)("div",{className:"description-text",children:a.description})]})]}),(0,l.jsx)(n.A.Footer,{children:(0,l.jsxs)("div",{className:"w-100",children:[a.continueBtn&&d&&(0,l.jsxs)("button",{type:"button",className:s()("btn","btn-rounded","text-uppercase","mr-auto","cancel-btn","w-100","mb-2",o||"btn-trf-outline-black"),disabled:i||r||c,onClick:()=>d(e),children:[a.continueBtn,c&&(0,l.jsx)("span",{className:"ml-2 fa fa-spinner fa-pulse"})]}),u&&(0,l.jsx)("button",{type:"submit",className:s()("btn","btn-rounded","text-uppercase","share-kit-btn","w-100",t&&t),disabled:r||c,onClick:()=>u&&u(e),children:a.cancelBtn})]})})]})})},54382(e,a,t){t.d(a,{A:()=>g});var n=t(96540),i=t(61784),s=t(71468),l=t(8118),o=t(3433),r=t(57546),c=t(16200),d=t(27043),u=t(13838),m=t(74848);const h=e=>
1{const[a,t]=(0,n.useState)(""),[i,s]=(0,n.useState)([]),l=(0,n.useRef)(null);(0,n.useEffect)(()=>{const a=i.map(({value:e})=>e);e.handleAddEmail(a)},[i]);const o=()=>{var e;if(""===a.trim())return;const n={id:Date.now(),value:a.trim()};s(e=>[...e,n]),t(""),null==(e=l.current)||e.focus()};return(0,m.jsxs)("div",{className:"tag-container",children:[(0,m.jsx)("div",{className:"tags",children:i.map(e=>(0,m.jsxs)("div",{className:"tag",children:[e.value,(0,m.jsx)("span",{className:"close-icon",onClick:()=>{return a=e.id,void s(e=>e.filter(e=>e.id!==a));var a},children:"\xd7"})]},e.id))}),(0,m.jsx)("input",{ref:l,type:"text",value:a,placeholder:null!=e&&e.placeholder?null==e?void 0:e.placeholder:"",className:"input-container",onChange:e=>{t(e.target.value)},onKeyDown:e=>{"Enter"!==e.key&&","!==e.key||(e.preventDefault(),o())}})]})},p=["Share Link"],g=({handleCopySend:e,setShowShareMediaKit:a,shareLink:t,setShareLink:g,headerText:v,mediaKit:f,getMediaKitData:x,refetchMediaKit:b})=>{var j;const y=(0,o.Zp)(),[w,_]=(0,n.useState)({type:"Share Link"}),[N,C]=(0,n.useState)({emailList:[],message:""}
1),[k,A]=(0,n.useState)(!0),[S,O]=(0,n.useState)(!1),I=(0,s.d4)(e=>e.userDetail.data);(0,n.useEffect)(()=>{A(1===(null==f?void 0:f.interaction_notify)),b&&b()},[f]);const{mutate:M}=(0,r.U)(e=>(0,c.vH)(e),{onSuccess:e=>{null==A||A(!k),O(!0)}});return(0,n.useEffect)(()=>{window.analytics.track("clicked.share.mediakit",{email_address:null==I?void 0:I.email,user_id:null==I?void 0:I.user_id,country:null==I?void 0:I.country,page_path:window.location.pathname})},[I]),(0,m.jsxs)(i.A,{show:!0,className:"share-media-kit-modal",onHide:()=>{g(""),a(!1),S&&(null==x||x(),null==b||b())},children:[(0,m.jsx)(d.A,{loading:!1,fullScreen:!0,children:(0,m.jsx)(i.A.Body,{children:(0,m.jsx)("div",{className:`${l.A.container} main-body`,children:(0,m.jsxs)("div",{className:`${l.A.content} p-0 share-media-kit-content`,children:[(0,m.jsx)("div",{className:`${l.A.contentHeader} p-0`,children:(0,m.jsx)("div",{className:l.A.contentHeaderTitle,children:(0,m.jsx)(u.o5,{family:"calluna",variant:"title3",label:v})})}),(0,m.jsxs)("div",{className:l.A.contentBody,children:[(0,m.jsx)("div",{className:"share-media-kit-tabs",children:p.map((e,a)=>(0,m.jsx)("div",{className:"share-media-kit-tabs__tab "+(w.type===e||"media kits"===e&&""==w.type?"active":""),onClick:()=>{var a;a=e,_(e=>Object.assign({},e,{type:a}))},children:e},a))}),"Share Link"===w.type&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(u.fI,{className:"align-items-center copy-link",children:[(0,m.jsx)(u.ZQ,{value:t,label:"",inputWrapperClass:"input-border",onChangeText:(e,a)=>{g(a)},containerClassName:"copy-link__input",disabled:!0}),(0,m.jsx)("button",{type:"submit",className:"btn btn btn-trf-outline-black btn-rounded btn-rounded-new--dark text-uppercase ml-2 copy-link__button "+(t?"":"disable-btn"),disabled:!t,onClick:()=>(window.analytics.track("clicked.copy.mediakit",{email_address:null==I?void 0:I.email,user_id:null==I?void 0:I.user_id,country:null==I?void 0:I.country,media_kit_link:t}),navigator.clipboard.writeText(t),g(""),void e("copy")),children:"copy"})]}),I.feature_flags.media_kit_analytics&&(0,m.jsxs)(u.fI,{className:"email-notification-outer",children:[(0,m.jsxs)(u.fI,{className:"checkbox-section",children:[(0,m.jsx)(u.Li,{checked:k,containerClassName:l.A.inputCheckbox,onClick:()=>M(null==f?void 0:f.id)}),(0,m.jsx)(u.o5,{weight:600,variant:"body2",label:"Notify me when someone interacts with this Media Kit"})]}),(0,m.jsx)(u.fI,{children:(0,m.jsx)(u.o5,{variant:"body2",label:"Get notified via email whenever someone views or interacts with your Media Kit."})})]})]}),"Email"===w.type&&(0,m.jsxs)(u.fI,{className:"align-items-center share-media-kit-email",children:[(0,m.jsxs)("div",{className:"cast-talent-form-content__box cast-talent-form-content__box_select w-100 email-input",children:[(0,m.jsx)("label",{children:"Email"}),(0,m.jsx)(h,{handleAddEmail:e=>{C(a=>Object.assign({},a,{emailList:e}))}})]}),(0,m.jsx)("button",{className:"btn btn btn-trf-outline-black btn-rounded btn-rounded-new--dark text-uppercase ml-2 email-send-btn "+(null!=N&&null!=(j=N.emailList)&&j.length?"":"disable-btn"),onClick:()=>e("send"),disabled:!(N.emailList.length>0),children:"send"}),(0,m.jsx)(u.hg,{name:"message",value:N.message,label:"Message",onChangeText:(e,a)=>{C(e=>Object.assign({},e,{message:a}))},containerClassName:"email-message"})]})]})]})})})}),(0,m.jsx)(i.A.Footer,{children:(0,m.jsx)("div",{className:"campaign-book-talent-modal__footer d-flex justify-content-end align-items-center w-100",children:(0,m.jsx)("button",{type:"submit",className:"btn btn-trf-outline-black btn-rounded text-uppercase",onClick:()=>{a(!1),y("/talent/media-kit")},children:"go to media kit list"})})})]})}},64864(e,a,t){t.d(a,{p:()=>c});var n=t(40644),i=t(96540),s=t(32485),l=t.n(s),o=t(74848);const r=["id","name","label","type","size","className","placeholder"],c=(0,i.forwardRef)((e,a)=>{let{id:t,name:i,label:s,type:c="text",size:d="medium",className:u="",placeholder:m}=e,h=(0,n.A)(e,r);return(0,o.jsx)("input",Object.assign({id:t,ref:a,name:i,type:c,"aria-label":s,placeholder:m,autoComplete:"off",className:l()(u)},h))})},79207(e,a,t){t.d(a,{A:()=>l});t(96540);var n=t(40364),i=t(61784),s=t(74848);const l=({iconLink:e="/images/icons/messenger/profile-logo.svg",header:a,content:t,submitBtnText:l,handleActionButton:o,onClose:r,svgIcon:c,showCancelBtn:d,modalType:u,buttonType:m})=>{const h=n.c.CDN_PATH;return(0,s.jsx)(i.A,{show:!0,className:"custom-modal",children:(0,s.jsxs)(i.A.Dialog,{className:"modal-content-wrapper",children:[(0,s.jsxs)(i.A.Header,{className:"modal-header",children:[(0,s.jsx)("div",{className:"d-flex justify-content-center icon-div w-100",children:c||(0,s.jsx)("img",{className:"action-icon",src:h+e,alt:"delete",title:"Delete"})}),(0,s.jsx)("button",{type:"button",className:"close-modal",onClick:r})]}),(0,s.jsxs)(i.A.Body,{className:"modal-body d-flex flex-column align-items-center",children:[(0,s.jsx)("div",{className:"modal-body__header",children:a}),(0,s.jsx)("div",{className:"modal-body__content",children:t})]}),(0,s.jsx)(i.A.Footer,{className:"modal-footer-main",children:(0,s.jsxs)("div",{className:" d-flex justify-content-center align-items-center w-100",children:[d?(0,s.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase",onClick:r,children:"CANCEL"}):"",(0,s.jsx)("button",{type:"button",className:`btn-trf-${m&&"delete"===m?"red":"yellow"} btn-rounded text-uppercase`,onClick:()=>o(),children:l})]})})]})})}},25814(e,a,t){t.d(a,{A:()=>i});t(96540);var n=t(74848);const i=({errorField:e,errors:a})=>{const t=a[e];return t&&t&&Array.isArray(t)?(0,n.jsx)("div",{className:"error-message mt-2",children:t.map((e,a)=>(0,n.jsx)("p",{className:"m-0",children:e},a))}):null}},36159(e,a,t){t.d(a,{A:()=>c,GP:()=>r,W6:()=>s,e2:()=>o,yy:()=>i});const n=t(40364).c.SITE_URL.replace(/\/$/,""),i="The Right Fit",s=/^https?:\/\//i.test(n)?n:"https://theright.fit",l=`${s}/#organization`,o=`${s}/#website`,r={"@type":"Organization","@id":l,name:i,url:s,logo:"https://cdn.prod.website-files.com/5a1030a2808a3a000115faec/6913d2586210485bf7e45cdc_681b3152c4411e6735aaf057_TRF_Logo_Main_Light.svg",description:"The Right Fit is an AI-powered influencer marketing platform that connects brands with 350M+ creators across Instagram, TikTok & YouTube. 0% commission on all influencer bookings.",foundingLocation:{"@type":"Place",name:"Australia"},sameAs:["https://www.instagram.com/theright.fit/","https://www.linkedin.com/company/theright-fit/","https://www.facebook.com/wearetheright.fit/","https://www.tiktok.com/@theright.fit"],contactPoint:{"@type":"ContactPoint",url:`${s}/contact`,contactType:"customer support"}},c={"@type":"WebSite","@id":o,name:i,url:s,inLanguage:"en",publisher:{"@id":l}}},62403(e,a,t){t.d(a,{M:()=>s});var n=t(20225),i=t(48505);const s=(e,a)=>(0,n.I)(Object.assign({},a,{queryKey:["GetBrandInsights"],enabled:!!e,staleTime:(null==a?void 0:a.staleTime)||6e4,gcTime:(null==a?void 0:a.gcTime)||3e5,queryFn:()=>(0,i.$F)(e||"")}))},92468(e,a,t){t.d(a,{r:()=>s});var n=t(20225),i=t(94580);const s=(e,a,t)=>(0,n.I)(Object.assign({},t,{queryKey:["getFavoriteCampaigns",e],staleTime:(null==t?void 0:t.staleTime)||6e4,gcTime:(null==t?void 0:t.gcTime)||3e5,enabled:(null==t||t.enabled,!!e),queryFn:()=>(0,i.W$)(a)}))},45311(e,a,t){t.d(a,{E:()=>s});var n=t(96540),i=t(16200);const s=()=>
1{const[e,a]=(0,n.useState)([]);return(0,n.useEffect)(()=>{(async()=>{const e=await(0,i.t_)();a(e.data)})()},[]),e}},63187(e,a,t){t.d(a,{F6:()=>c,FI:()=>o,Jt:()=>s,T3:()=>d,Wv:()=>m,bE:()=>l,nI:()=>u,rZ:()=>i,yJ:()=>r});var n=t(55278);const i=(e,a={})=>new Promise((t,i)=>{n.A.get(e,a).then(e=>{t(e.data)}).catch(e=>{t({data:null,error:e})})}),s=(e,a={})=>new Promise((t,i)=>{n.A.get(e,a).then(e=>{t(e.data)}).catch(e=>{t({data:null,error:e})})}),l=async(e,a,t={})=>await n.A.post(e,Object.assign({},a),t),o=async(e,a,t={})=>await n.A.patch(e,Object.assign({},a),t),r=async(e,a,t={})=>await n.A.put(e,Object.assign({},a),t),c=async(e,a,t={})=>await n.A.patch(e,Object.assign({},a),t),d=async(e,a)=>await n.A.post(e,a,{headers:{"Content-Type":"multipart/form-data"}}),u=async(e,a)=>await n.A.post(e,a,{headers:{"Content-Type":"multipart/form-data"}}),m=async e=>await n.A.delete(e)},64588(e,a,t){t.d(a,{A:()=>i});var n=t(96540);const i=(e=768)=>{const[a,t]=(0,n.useState)(window.innerWidth<e),i=()=>{t(window.innerWidth<e)};return(0,n.useEffect)(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[e]),a}},97977(e,a,t){t.d(a,{$1:()=>u,LI:()=>c,RW:()=>s,Ss:()=>i,UP:()=>r,XI:()=>m,f3:()=>o,jH:()=>h,tC:()=>l,vF:()=>d});var n=t(63187);const i=e=>(0,n.bE)("web/talent-account-settings/personal-info",e),s=e=>(0,n.bE)("web/talent-account-settings/profile-info",e),l=e=>(0,n.bE)("web/talent-account-settings/tax-details",e),o=e=>(0,n.bE)("web/talent-account-settings/reset-password",e),r=()=>(0,n.Wv)("web/auth/deactivate"),c=()=>(0,n.Wv)("web/auth/delete"),d=()=>(0,n.Jt)("user/setting/notification"),u=e=>(0,n.bE)("user/setting/notification",e),m=(e,a)=>(0,n.bE)("web/talent-account-settings/verify-new-email-update",{otp:e,email:a}),h=e=>(0,n.Jt)("/user/invoices?page="+e)},16200(e,a,t){t.d(a,{Ap:()=>v,C5:()=>f,Df:()=>y,Jb:()=>h,Lg:()=>u,Q2:()=>m,fH:()=>j,kG:()=>x,pK:()=>d,qe:()=>b,rn:()=>w,t_:()=>p,uG:()=>g,vH:()=>_});var n=t(92998),i=t(49873),s=t(2543),l=t.n(s),o=t(55278),r=t(63187);const c=(e,a)=>{const t=new FormData,n=(e,a)=>{l().isArray(a)&&a.length>0?a.forEach(a=>t.append(`${e}[]`,a)):t.append(`${e}`,"")};return t.append("title",e.title),t.append("description",e.description),t.append("status",e.status),t.append("slug",e.slug),n("tag_ids",e.tag_ids),n("media_item_ids",e.media_item_ids),n("social_account_ids",e.social_account_ids),n("review_ids",e.review_ids),n("social_post_platforms",e.social_post_platforms),Object.keys(e.display_flags).forEach(a=>{t.append(`display_flags[${a}]`,e.display_flags[a])}),(e.display_flags.pitch||"update"===a)&&(t.append("pitch[brand]",e.pitch.brand),t.append("pitch[headline]",e.pitch.headline),t.append("pitch[pitch]",e.pitch.pitch),e.pitch.video&&e.pitch.video instanceof File?t.append("pitch[video]",e.pitch.video,e.pitch.video.name):null===e.pitch.video&&t.append("pitch[video]",""),e.pitch.thumbnail&&e.pitch.thumbnail instanceof File?t.append("pitch[thumbnail]",e.pitch.thumbnail,e.pitch.thumbnail.name):null===e.pitch.thumbnail&&t.append("pitch[thumbnail]","")),t},d=async e=>await(0,r.nI)("media-kits",c(e)),u=()=>(0,r.Jt)("user/received-reviews"),m=()=>(0,r.Jt)("tags"),h=()=>(0,r.Jt)("media-kits"),p=()=>(0,r.Jt)("media-items"),g=e=>(0,r.Jt)(`media-kits/count/${e}`),v=(e,a)=>(0,r.nI)(`media-kits/${a}`,c(e,"update")),f=(e,a)=>(0,r.F6)(`media-kits/${a}/status`,e),x=e=>(0,r.Wv)(`media-kits/${e}`),b=async()=>(await o.A.get("media-kits")).data,j=async e=>{const a=`media-kits/${e}`;return(await o.A.get(a)).data},y=async e=>{const a=new Date,t=(null==e?void 0:e.end)||a,s=(null==e?void 0:e.start)||(0,n.A)(t,-30),l=new URLSearchParams({start:(0,i.A)(s,"yyyyMMdd"),end:(0,i.A)(t,"yyyyMMdd")});null!=e&&e.mediaKitId&&l.set("mediaKitId",null==e?void 0:e.mediaKitId);const r=`media-kits/analytics?${l.toString()}`;return(await o.A.get(r)).data},w=async e=>(await o.A.get("media-kits/analytics/all")).data,_=e=>(0,r.bE)(`media-kits/${e}/notify`,{})},48505(e,a,t){t.d(a,{$F:()=>s,Ch:()=>o,Kv:()=>r,bf:()=>c,cs:()=>u,p$:()=>d,uX:()=>l});var n=t(72505),i=t(55278);const s=async e=>{const a=`/brand-insights/${e}`;try{var t;const e=await i.A.get(a);return null==e||null==(t=e.data)?void 0:t.data}catch(s){if(s instanceof n.pe){const e=s.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==s?void 0:s.message)})}throw s}},l=async e=>{const a=await i.A.post("brand-insights/search",e);return Object.assign({},a.data)},o=async(e,a)=>{const{signal:t}=a||{},n=await i.A.get(`/brand-insights/keyword/autocomplete?keyword=${e.keyword}&is_affiliate=${null!=e&&e.is_affiliate?"1":"0"}`,{signal:t});return Object.assign({},n.data)},r=async()=>{const e=await i.A.get("brand-insights/filters/categories");return Object.assign({},e.data)},c=async()=>{const e=await i.A.get("brand-insights/filters/platforms");return Object.assign({},e.data)},d=async e=>{const a=await i.A.post("/brand-insights/generate",e,{});return Object.assign({},a.data)},u=async e=>{const a=await i.A.post("/brand-insights/report",e,{});return Object.assign({},a.data)}},84446(e,a,t){t.d(a,{TW:()=>f,U9:()=>h,XC:()=>d,ZW:()=>c,iI:()=>m,jb:()=>r,mF:()=>u,uG:()=>p,w1:()=>l,wo:()=>g,zB:()=>o});var n=t(72505),i=t(55278),s=t(55029);const l=async e=>{const a=`matching/campaigns?page=${e.page}`;try{return(await i.A.post(a,e)).data}catch(t){if(t instanceof n.pe){const e=t.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==t?void 0:t.message)})}throw t}},o=async e=>{const a=`/campaign/${e}`;try{return(await i.A.get(a)).data}catch(t){if(t instanceof n.pe){const e=t.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==t?void 0:t.message)})}throw t}},r=async(e,a)=>{const t=`campaign/${e}/application`;try{return(await i.A.post(t,a)).data}catch(s){if(s instanceof n.pe){const e=s.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==s?void 0:s.message)})}throw s}},c=async e=>{const a=`campaign/application/${e}`;try{return(await i.A.get(a)).data}catch(t){if(t instanceof n.pe){const e=t.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==t?void 0:t.message)})}throw t}},d=(e,a,t,n=20)=>(0,s.rZ)("/collabs?page="+t+"&status="+e+"&keyword="+a+"&limit="+n),u=e=>(0,s.rZ)(`/campaign/application/${e}`),m=e=>(0,s.rZ)(`/campaign/application/${e}/payment-request`),h=async(e,a,t)=>{const s={headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json, text/plain, */*"}};let l="";l=t?`campaign/application/${e}/payment-request/resend`:`campaign/application/${e}/confirm-payable`;try{return(await i.A.post(l,a,s)).data}catch(o){if(o instanceof n.pe){const e=o.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==o?void 0:o.message)})}throw o}},p=async(e,a)=>{const t={headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json, text/plain, */*"}},s=`campaign/application/${e}/package-request/confirm-payable`;try{return(await i.A.post(s,a,t)).data}catch(l){if(l instanceof n.pe){const e=l.response,a=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==a?void 0:a.errors,_message:(null==a?void 0:a.message)||(null==l?void 0:l.message)})}throw l}},g=(e,a)=>v(`/campaign/application/${e}/withdraw`,{reason:a}),v=async(e,a,t={})=>await i.A.put(e,Object.assign({},a),t),f=(e,a)=>x(`campaign/application/${a}/post-review`,e),x=async(e,a)=>await i.A.post(e,Object.assign({},a))},36303(e,a,t){t.d(a,{lD:()=>n,sE:()=>i,xj:()=>s});const n=e=>{const a=[...e];return[a[0],a[1]]=[a[1],a[0]],a},i=()=>window.open("https://theright.fit/contact","_blank");function s(e,a){return e/a}},74847(e,a,t){t.d(a,{$s:()=>s,qe:()=>i});const n=()=>{const e=new URLSearchParams;return"undefined"==typeof window||new URLSearchParams(window.location.search).forEac
1h((a,t)=>{t.toLowerCase().startsWith("utm_")&&e.set(t,a)}),e},i=e=>{const a=n();e&&a.set("slug",e);const t=a.toString();return t?`?${t}`:""},s=e=>{const a=n();if(!a.toString())return e;const[t,i=""]=e.split("?"),s=new URLSearchParams(i);return a.forEach((e,a)=>{s.set(a,e)}),`${t}?${s.toString()}`}},55868(e,a,t){t.d(a,{QX:()=>o,UB:()=>n,VI:()=>m,X9:()=>u,aU:()=>s,cr:()=>r,sM:()=>l,t$:()=>i,vQ:()=>d,wu:()=>c});const n=/^(?!.*\b(?:[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b|[A-Za-z0-9+-]{1,}\.[A-Za-z]{1,}\b|instagram\.com\/[A-Za-z0-9_]+\b|skype:[A-Za-z0-9.?&=+-]+\b|[A-Za-z0-9.-]+\.[A-Za-z]{2,}\/[A-Za-z0-9_-]+\b|\+?[0-9\s-]{6,}\b))[\s\S]+$/,i=[{value:"0",label:"Payable on Receipt"},{value:"7",label:"7 Days"},{value:"14",label:"14 Days"},{value:"30",label:"30 Days"}],s=(e,a,t=!1)=>{let n=0,i=.2;switch(i=t&&(t.isPostAnalyzerEnabled||t.isFreeAccessEnabled||t.isAdminDiscount)?.15:.2,e){case"trf":n=a*i;break;case"gst":n=a*(i/10);break;case"total":n=a+a*i+a*(i/10)}return n.toFixed(2)},l=(e,a)=>window.location.pathname.replace(e,a),o=e=>e[0]===e[1],r=(e,a)=>!o([e[0],a])&&-1!==e[1].indexOf(e[0]),c=e=>{const a=e&&e.mime?e.mime:e&&e.type?e.type:null;return!(!a||!a.includes("image"))},d=e=>{const a=e.profession;return"model"===a||"actor"===a||"presenter"===a?"/cast-talent/"+e.id+"/details":"influencer"===a?"/work-with-influencer/"+e.id+"/details":"content-creator"===a?"/work-with-content-creator/"+e.id+"/details":"/creative-production/"+e.id+"/details"},u=e=>(e=Number(e))>=1e3?e>=1e6?(e/1e6).toFixed(0)+"M":(e/1e3).toFixed(0)+"K":e,m=(e,a)=>e.attributes.filter(e=>e.name===a).map(e=>e.value)},64013(e,a,t){t.d(a,{A:()=>x});var n=t(3433),i=t(19526),s=t(8204),l=t(82801),o=t(4258),r=t(13838),c=t(32485),d=t.n(c);const u="__cyN1gu",m="__eqazjF",h="__Soiaww",p="__FA_NLj",g="__nPqnAQ";var v=t(74848);function f(e){var a;return(0,v.jsxs)("div",{className:d()(u,null==e?void 0:e.className),children:[e.brand.logo_url&&(0,v.jsx)("img",{alt:e.brand.title,className:m,src:e.brand.logo_url}),!e.brand.logo_url&&(0,v.jsx)(l.h,{className:m}),(0,v.jsx)("p",{className:h,children:"Gather insights on audience, content and collaboration history"}),(0,v.jsx)("div",{className:p,children:null==(a=e.brand.platforms)?void 0:a.map((e,a)=>(0,v.jsx)(o.A,{platform:e.title,followerCount:e.formatted_followers},a))}),(0,v.jsx)("div",{className:g,children:(0,v.jsx)(r.$n,{theme:"dark",size:"medium",type:"button",label:"View Brand Insights",onClick:()=>e.navigateToBrandProfile()})})]})}function x(e){const a=(0,n.Zp)(),t="talent"===(0,s.A)().getUserType(),l=Object.assign({},e,{navigateToBrandProfile:()=>{e.onClickBrandDetailsButton&&t&&e.onClickBrandDetailsButton(e.brand);const n=(0,i.xg)(e.brand.slug);a(n)}});return t?(0,v.jsx)(f,Object.assign({},l)):(0,v.jsx)(v.Fragment,{})}},19526(e,a,t){t.d(a,{$Q:()=>i,Kv:()=>l,xg:()=>s});var n=t(40364);const i=(e,a)=>{window.location.replace(a?`/affiliate-directory/${e}`:`/brand-insights/${e}`)},s=(e,a)=>a?`/affiliate-directory/${e}`:`/brand-insights/${e}`,l=(e,a)=>a?`${n.c.SITE_URL}affiliate-directory/${e}`:`${n.c.SITE_URL}brand-insights/${e}`},4258(e,a,t){t.d(a,{A:()=>s});t(96540);var n=t(51990),i=t(74848);const s=({platform:e,followerCount:a,platformLink:t,displayCount:s=!0})=>(0,i.jsxs)("div",{className:"platform-box-inner "+(t?"link":""),onClick:()=>{t&&window.open(t,"_blank","noopener,noreferrer")},children:[(0,i.jsx)("div",{className:"platform-icon",children:(0,n.D1)(e)||e}),s&&(0,i.jsx)("div",{className:"followers-count",children:a||(0,n.t1)(e)})]})},6443(e,a,t){t.d(a,{gr:()=>l,hw:()=>i,s6:()=>s});var n=t(74848);const i=e=>(0,n.jsx)("img",{src:e,alt:"profilepicture",style:{maxWidth:"100%"}}),s=e=>(0,n.jsx)("img",{src:"data:image/jpeg;base64,"+e,alt:"profilepicture",style:{maxWidth:"100%"}}),l=e=>"content"===e?"influencer":"content"},9106(e,a,t){t.d(a,{A:()=>m});t(96540);var n=t(28454),i=t(61409),s=t(61784),l=t(49785),o=t(3433),r=t(40364),c=t(13838),d=t(94580),u=t(74848);const m=({onClose:e,campaignId:a})=>{const t=r.c.CDN_PATH,m=(0,o.Zp)(),{handleSubmit:h,register:p,formState:{errors:g}}=(0,l.mN)({mode:"onChange"}),v=()=>{e()},{mutate:f,isPending:x}=(0,n.n)({mutationFn:e=>(0,d.My)(a,{reason:e.reason}),onError:e=>{var a,t;null!=(a=e.response)&&null!=(a=a.data)&&a.message&&i.oR.error(null==(t=e.response)||null==(t=t.data)?void 0:t.message)},onSuccess:()=>{i.oR.success("Successfully Declined."),e(),m("/talent/applications")}});return(0,u.jsx)(s.A,{show:!0,className:"cancel-collaboration-modal text-center campaign-modal",onHide:()=>v(),children:(0,u.jsxs)("form",{onSubmit:h(async e=>{0===Object.keys(g).length&&f(e)}),className:"trf-form",children:[(0,u.jsx)(s.A.Body,{children:(0,u.jsxs)("div",{className:"modal__container",style:{marginTop:"15p
1x"},children:[(0,u.jsx)("button",{type:"button",className:"close",onClick:()=>v(),style:{marginRight:"15px"}}),(0,u.jsx)("img",{className:"action-icon",src:t+"/svg/campaigns/icons/icon-stop.svg",alt:"delete",title:"Delete"}),(0,u.jsx)("h5",{className:"modal-heading",children:"Would you like to decline this invitation?"}),(0,u.jsxs)("div",{className:"form-group review-form-group "+(g.reason?"invalid":""),children:[(0,u.jsx)("label",{children:"Provide a reason for why you want to decline this invitation. *"}),(0,u.jsx)("textarea",Object.assign({},p("reason"),{className:"form-control inner-shadow",id:"reason",maxLength:280}))]})]})}),(0,u.jsx)(s.A.Footer,{children:(0,u.jsxs)("div",{className:"leave-review-modal__footer d-flex justify-content-between align-items-center w-100",children:[(0,u.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",onClick:()=>v(),children:"CANCEL"}),(0,u.jsx)(c.$n,{theme:"outline-danger",isLoading:x,disabled:x,type:"submit",children:"Decline"})]})})]})})}},57826(e,a,t){t.r(a),t.d(a,{default:()=>Kt,toDefaultDateFormat:()=>oe,toSchedule:()=>re});var n=t(96540),i=t(2543),s=t.n(i),l=t(3433),o=t(20225),r=t(61409),c=t(81033),d=t(12332),u=t(49394),m=t(47611),h=t(1210),p=t(13838),g=t(55029),v=t(8204),f=t(28454),x=t(50289),b=t(94580);var j=t(92468);var y,w,_=t(6443),N=t(74847),C=t(62403),k=t(19526),A=t(32485),S=t.n(A),O=t(40891),I=t(70266),M=t(27037),L=t(34909),$=t(54948),E=t(52587),F=t(25588),T=t(3901),B=t(48325),P=t(88295),R=t(11425);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},D.apply(null,arguments)}var K=function(e){return n.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),y||(y=n.createElement("path",{fill:"#424242",fillRule:"evenodd",d:"M5 4a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1z",clipRule:"evenodd"})),w||(w=n.createElement("path",{fill:"#424242",d:"M2 6a1 1 0 0 1 1 1v10a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M23 7a1 1 0 1 0-2 0v10a1 1 0 1 0 2 0z"})))};t.p;var H,q,z,U;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},W.apply(null,arguments)}var G=function(e){return n.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),H||(H=n.createElement("path",{fill:"#424242",d:"M15 12a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2z"})),q||(q=n.createElement("path",{fill:"#424242",fillRule:"evenodd",d:"M12 14.5a3.5 3.5 0 1 0-7 0 3.5 3.5 0 0 0 7 0M8.5 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3",clipRule:"evenodd"})),z||(z=n.createElement("path",{fill:"#424242",d:"M15 15a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2z"})),U||(U=n.createElement("path",{fill:"#424242",fillRule:"evenodd",d:"M1 20a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H4a3 3 0 0 0-3 3zm3 1a1 1 0 0 1-1-1V8h18v12a1 1 0 0 1-1 1zM21 6H3V4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1z",clipRule:"evenodd"})))};t.p;var V=t(61347),Z=t(84351),Y=t(74848);const J=(e,a,t,n)=>(0,Y.jsx)("div",{children:(0,Y.jsx)(Z.A,{textOne:e,textTwo:t,textClick:n,hideClose:!0,className:a})});var Q=t(64588),X=t(61784),ee=t(49785);const ae=({onClose:e,campaign_id:a})=>{const{handleSubmit:t,register:i,formState:{errors:s},watch:l}=(0,ee.mN)({mode:"onChange"}),o=()=>{e(u)},[c,d]=(0,n.useState)(1),[u,m]=(0,n.useState)(!1),{mutate:h}=(0,f.n)({mutationFn:()=>(0,b.fk)(a)}),{mutate:p,isPending:g}=(0,f.n)({mutationFn:e=>(0,b.Td)(a,e.reason),onError:e=>{var a,t;null!=(a=e.response)&&null!=(a=a.data)&&a.message&&r.oR.error(null==(t=e.response)||null==(t=t.data)?void 0:t.message)},onSuccess:()=>{r.oR.success("Report submitted! We've got it from here. \u2705"),m(!0),h(),d(2)}}),v=l();return(0,Y.jsx)(X.A,{show:!0,className:"report-campaign-modal text-center campaign-modal",onHide:()=>o(),children:(0,Y.jsxs)("form",{onSubmit:t(async e=>{0===Object.keys(s).length&&p(e)}),className:"trf-form",children:[(0,Y.jsx)(X.A.Body,{children:(0,Y.jsxs)("div",{className:"modal__container",children:[(0,Y.jsx)("button",{type:"button",className:"close",onClick:()=>o()}),(0,Y.jsx)(T.h,{className:"modal-icon"}),1===c&&(0,Y.jsx)("h5",{className:"modal-heading",children:"Report Campaign"}),2===c&&(0,Y.jsx)("h5",{className:"modal-heading",children:"Campaign reported!"}),1===c&&(0,Y.jsxs)("div",{className:"form-group review-form-group "+(s.reason?"invali
1d":""),children:[(0,Y.jsx)("label",{className:"text-left",children:"Please provide a reason for why you want to report this campaign."}),(0,Y.jsx)("textarea",Object.assign({},i("reason",{required:"Reason is required"}),{className:"form-control inner-shadow",id:"reason"})),(0,Y.jsx)("label",{className:"text-left",children:"We won\u2019t let the campaign owner know who reported this."})]})]})}),(0,Y.jsx)(X.A.Footer,{children:(0,Y.jsxs)("div",{className:"leave-review-modal__footer d-flex justify-content-center align-items-center w-100",children:[1===c&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",onClick:()=>o(),children:"CANCEL"}),(0,Y.jsxs)("button",{type:"submit",className:`btn btn-${v.reason?"danger":"trf-secondary2"} btn-rounded text-uppercase`,disabled:g,children:["Report Campaign",g?(0,Y.jsx)("span",{children:(0,Y.jsx)("i",{className:"ml-2 fa fa-spinner fa-pulse"})}):null]})]}),2===c&&(0,Y.jsx)("button",{type:"button",className:"btn btn-trf-yellow btn-rounded text-uppercase w-100",onClick:()=>o(),children:"ok"})]})})]})})};var te=t(36303),ne=t(40364),ie=t(49873),se=t(2702),le=t(24125);const oe=e=>(0,ie.A)(e,"LLLL d, yyyy"),re=(e,a)=>(0,se.A)(e,a)&&(0,le.A)(e,a)?`${(0,ie.A)(e,"LLLL")} ${(0,ie.A)(e,"d")}-${(0,ie.A)(a,"d")}, ${(0,ie.A)(e,"yyyy")}`:(0,le.A)(e,a)?`${(0,ie.A)(e,"LLLL d")}-${(0,ie.A)(a,"LLLL d")}, ${(0,ie.A)(e,"yyyy")}`:`${oe(e)}-${oe(a)}`;var ce=t(9106),de=t(3244),ue=t(61233),me=t(85039),he=t(52545);const pe="__nWJlcm",ge="__kGujOt",ve="__b9ITYz",fe="__GwmKy4",xe="__Zk7_NS",be="__hZWrg8",je="__aLJn6w",ye="__ZejpJu",we="__Io6rUD",_e="__eMP2ZT",Ne="__LRiR0H",Ce="__Xkb0Dq",ke="__hGcOLX",Ae="__uGcjWc",Se="__gJNi9x";function Oe(e){var a,t,i,s;const{content:l,terms:o}=e,[r,c]=(0,n.useState)({}),d=({id:e,detail:a,expanded:t,onToggle:n})=>a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{id:e,"aria-hidden":!t,className:S()(_e,{[Ne]:!t}),children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:a})}),(0,Y.jsx)("button",{type:"button",className:Ce,"aria-expanded":!!t,"aria-controls":e,onClick:n,children:t?"hide details":"see details"})]}):null;return(0,Y.jsx)("div",{className:pe,children:(0,Y.jsxs)("div",{className:ge,children:[(0,Y.jsx)("div",{className:ve,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"700",label:"The content we need",className:fe,as:"h2"})}),(0,Y.jsxs)("div",{className:xe,children:[(0,Y.jsx)("div",{className:be,children:null==l||null==(a=l.deliverables)?void 0:a.map(e=>(0,Y.jsxs)("div",{className:je,children:[(0,Y.jsxs)("div",{className:ye,children:[(0,Y.jsx)("div",{children:(0,m.uo)(e.postType,"iconAlt",e.media)}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"product-information",label:(0,m.Zq)(e.postType,e.media)})})]}),!!e.additionalInformation&&(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:e.additionalInformation})})]},e.id))}),(0,Y.jsxs)("div",{className:we,children:[!(null!=l&&l.hidePostContent)&&(0,Y.jsxs)("div",{className:ke,children:[(0,Y.jsx)("span",{className:Ae,children:(0,Y.jsx)(de.h,{width:12,height:12})}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"content"===(null==l?void 0:l.promotion)?"Influencer: You will create content and share it with your audience.":"UGC: You will send the content and the client will share it with their audience."})})]}),"rights"===(null==l?void 0:l.usageRights)&&!(null!=l&&l.hideUsage)&&(0,Y.jsxs)("div",{className:ke,children:[(0,Y.jsx)("span",{className:Ae,children:(0,Y.jsx)(ue.h,{width:12,height:12})}),(0,Y.jsxs)("div",{className:Se,children:[(0,Y.jsx)(p.o5,{label:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Usage: "}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:null==l||null==(t=l.usageNetworks)?void 0:t.map(e=>(0,m._K)(e)).join(", ")})]})}),!(null==l||!l.usageTerms)&&d({id:"campaign-usage-terms",detail:null==l?void 0:l.usageTerms,expanded:r.showUsageTerms,onToggle:()=>c(e=>Object.assign({},e,{showUsageTerms:!e.showUsageTerms}))})]})]}),"boost"===(null==l?void 0:l.boosting)&&!(null!=l&&l.hideBoosting)&&(0,Y.jsxs)("div",{className:ke,children:[(0,Y.jsx)("span",{className:Ae,children:(0,Y.jsx)(me.h,{width:12,height:12})}),(0,Y.jsxs)("div",{className:Se,children:[(0,Y.jsx)(p.o5,{label:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Boosting: "}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:(0,m.cO)(null==l?void 0:l.boostWindow)})]})}),!(null==l||!l.boostTerms)&&d({id:"campaign-boosting-terms",detail
1:null==l?void 0:l.boostTerms,expanded:r.showBoostingTerms,onToggle:()=>c(e=>Object.assign({},e,{showBoostingTerms:!e.showBoostingTerms}))})]})]})]}),!!o&&"yes"===(null==o?void 0:o.exclusivity)&&!(null!=o&&o.hideExclusivity)&&(0,Y.jsx)("div",{className:we,children:(0,Y.jsxs)("div",{className:ke,children:[(0,Y.jsx)("span",{className:Ae,children:(0,Y.jsx)(he.h,{width:12,height:12})}),(0,Y.jsxs)("div",{className:Se,children:[(0,Y.jsx)(p.o5,{label:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Exclusivity: "}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:`${(0,m.fR)(null==o?void 0:o.exclusivityPeriodFrom)} before posting, ${(0,m.g7)(null==o?void 0:o.exclusivityPeriodTo)} after posting`})]})}),!(null==o||!o.exclusivityTerms)&&d({id:"campaign-exclusivity-terms",detail:null==o?void 0:o.exclusivityTerms,expanded:r.showExclusivityTerms,onToggle:()=>c(e=>Object.assign({},e,{showExclusivityTerms:!e.showExclusivityTerms}))})]})]})}),!!o&&!(null==o||null==(i=o.paymentMethods)||!i.length)&&!(null!=o&&o.hidePaymentMethods)&&(0,Y.jsx)("div",{className:we,children:(0,Y.jsxs)("div",{className:ke,children:[(0,Y.jsx)("span",{className:Ae,children:(0,Y.jsx)(M.h,{width:12,height:12})}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{label:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Payment Method: "}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:null==o||null==(s=o.paymentMethods)?void 0:s.map(e=>(0,m.eB)(e)).join(", ")})]})})})]})})]})]})})}var Ie,Me,Le=t(44321);function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},$e.apply(null,arguments)}var Ee=function(e){return n.createElement("svg",$e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),Ie||(Ie=n.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M9 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6M8 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0",clipRule:"evenodd"})),Me||(Me=n.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M3 2a1 1 0 0 0-1 1v9a1 1 0 0 0 .293.707l9.586 9.586a3 3 0 0 0 4.242 0l6.172-6.172a3 3 0 0 0 0-4.242l-9.586-9.586A1 1 0 0 0 12 2zm1 9.586V4h7.586l9.293 9.293a1 1 0 0 1 0 1.414l-6.172 6.172a1 1 0 0 1-1.414 0z",clipRule:"evenodd"})))};t.p;var Fe=t(56750),Te=t(91326),Be=t(41041);const Pe={container:"__OVyS2J",content:"__AI2Kx0",contentHeader:"__SClleT",contentTitle:"__gTvKTW",contentBody:"__neeEeZ",infoList:"__j5Uu5R",infoListItem:"__a89jah",infoListItemHeader:"__QHmHgM",infoListItemBody:"__WrHcqJ",infoListItemIcon:"__Ar_ybh",detailsItemInfoDescription:"__LmN3lY"};function Re(e){var a,t,i,s,l;const{creator:o}=e,r=(0,n.useMemo)(()=>{var a,t;return null!=e&&null!=(a=e.creator)&&null!=(a=a.personaLanguages)&&a.length?null==e||null==(t=e.creator)||null==(t=t.personaLanguages)?void 0:t.map(a=>{var t;return null==(t=e.languagesList)||null==(t=t.find(e=>e.value===a))?void 0:t.label}).filter(e=>Boolean(e)).join(", "):"-"},[null==e||null==(a=e.creator)?void 0:a.personaLanguages,e.languagesList]),c=a=>{var t;const n=null==(t=e.professionCategoriesList)?void 0:t.find(e=>e.value===a);return(null==n?void 0:n.label)||a};return(0,Y.jsx)("div",{className:Pe.container,children:(0,Y.jsxs)("div",{className:Pe.content,children:[(0,Y.jsx)("div",{className:Pe.contentHeader,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"700",label:"Our ideal creator",className:Pe.contentTitle,as:"h2"})}),(0,Y.jsx)("div",{className:Pe.contentBody,children:(0,Y.jsxs)("div",{className:Pe.infoList,children:[!(null!=o&&o.hideLocation)&&(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(Le.h,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Location"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:(0,Y.jsx)("div",{children:"2"===(null==o?void 0:o.location)?(0,Y.jsxs)(Y.Fragment,{children:[0!=(null==o?void 0:o.specificAddress)&&(null==o?void 0:o.visitAddress),(0,Y.jsx)("div",{className:Pe.detailsItemInfoName,children:(0,Y.jsx)("span",{children:(d=o.personaViewCountries,null==d?void 0:d.map(e=>{const a=e.states.map(e=>e.name).join(", ");return(0,Y.jsxs)("div",{children:[(0,Y.jsxs)("b",{children:[e.name,(null==a?void 0:a.length)>0&&(0,Y.jsx)("span",{children:": "})]}),(0,Y.jsx)("span",{className:Pe.campaignDetailsStates,children:a})]},e.id)}))})})]}):(0,Y.jsx)("div",{className:Pe.detailsItemInfoName,children:"Global"})})})]}),!e.hidePlatforms&&(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(de.h,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Platforms"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:(0,Y.jsxs)("div",{children:[null==o||null==(t=o.platforms)?void 0:t.map((a,t)=>{var n;return(0,Y.jsxs)("div",{children:[(0,m.Ft)(a.platform,"iconAlt"),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:`${(0,m.Ft)(a.platform)}${4===(null==(n=a.size)?void 0:n.length)&&e.applicationLink?"":`: ${(0,Be.jO)(a)}`}`})]},t)}),!(null!=o&&null!=(i=o.platforms)&&i.length)&&"-"]})})]}),(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(Ee,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Categories"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:null!=o&&null!=(s=o.expertise)&&s.length?null==o||null==(l=o.expertise)?void 0:l.map(e=>(0,Y.jsx)(p.Ex,{label:c(e)||""},e)):"-"})]}),(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(Fe.h,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Age Range"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:`${(null==o?void 0:o.personaAgeFrom)||""} - ${(null==o?void 0:o.personaAgeTo)||""}`})})]}),(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(Fe.h,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Gender"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:(0,m.o_)(null==o?void 0:o.personaGender)})})]}),(0,Y.jsxs)("div",{className:Pe.infoListItem,children:[(0,Y.jsxs)("div",{className:Pe.infoListItemHeader,children:[(0,Y.jsx)("span",{className:Pe.infoListItemIcon,children:(0,Y.jsx)(Te.h,{width:10,height:10})}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-4",label:"Language"})]}),(0,Y.jsx)("div",{className:Pe.infoListItemBody,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:r})})]})]})})]})});var d}var De=t(95572),Ke=t(64013);var He=t(67297),qe=t(51990);const ze=[{key:"related",title:"Related campaigns",description:"More campaigns you might be a great fit for."},{key:"latest",title:"Latest campaigns",description:"Fresh opportunities that have just landed on The Right Fit."}
1],Ue={PAY_FEE:{key:"paid",label:"Paid"},GIFT_PRODUCT_OR_SERVICE:{key:"product",label:"Product"},COMMISSION_ON_SALES:{key:"commission",label:"Commission"}},We=e=>(null==e?void 0:e.trim())||void 0,Ge=e=>null==e?void 0:e.trim().toLowerCase(),Ve=e=>Array.from(new Set(e.filter(e=>!!e))),Ze=e=>{const a=We(null==e?void 0:e.label);if(a)return a;const t=Ve([We(null==e?void 0:e.state),We(null==e?void 0:e.country)]);return t.length?t.join(", "):void 0},Ye=e=>{const a=e?new Date(e):void 0;if(a&&!Number.isNaN(a.getTime()))return a.toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})},Je=e=>[...Ve((e.offer_types||[]).map(e=>{var a;return null==(a=We(e))?void 0:a.toUpperCase()})).sort((e,a)=>(m.lC[e]||0)-(m.lC[a]||0)).reduce((a,t)=>{var n;if("PAY_FEE"===t&&null!=(n=e.budget)&&n.unpaid)return a;const i=Ue[t];return i&&a.push(i),a},[]),{key:"promotion",label:e.creator_post_content?"Influencer":"UGC"}],Qe=e=>{var a;const t=[...e.platforms||[]];return null!=(a=e.deliverable_platforms)&&a.includes("amazon")&&t.push("amazon"),Array.from(new Set(t.filter(e=>!!We(e))))},Xe=(e,a,t)=>{const n={related:(null==e?void 0:e.related)||[],latest:(null==e?void 0:e.latest)||[]};return ze.map(e=>{const i=((e,a,t)=>{const n=[Ge(a),Ge(t)].filter(e=>!!e);if(!n.length)return e;const i=new Set(n);return e.filter(e=>![Ge(e.id),Ge(e.slug)].filter(e=>!!e).some(e=>i.has(e)))})((e=>{const a=new Set;return e.filter(e=>{const t=Ve([Ge(e.id),Ge(e.slug)]);return!t.some(e=>a.has(e))&&(t.forEach(e=>a.add(e)),!0)})})((n[e.key]||[]).map(e=>(e=>({id:e.id.toString(),slug:We(e.slug),title:We(e.title)||"Campaign",brandName:We(e.company_name),imageUrl:We(e.cover_image),locationLabel:Ze(e.location),publishedAtLabel:Ye(e.published_at),offerBadges:Je(e),platforms:Qe(e)}))(e))),a,t);return Object.assign({},e,{items:i})}).filter(e=>e.items.length)},ea="__k27Hy8",aa="__NW9GHU",ta="__qntBWQ",na="__FKvTfm",ia="__dWWPer",sa="__s8mOmK",la="__chpkpZ",oa="__r6TA_i",ra="__WMCyks",ca="__ssXgSq",da="__I_EgY3",ua="__TSN3Wg",ma="__g_o8y3",ha="__lhpCMy",pa="__k1tVuV",ga="__iAZBw7",va="__iZW4hn",fa="__dQQBaZ",xa="__QwcCTL",ba="__UUXh8a",ja="__LhCury",ya="__lZpQWw",wa="__LO5g3c",_a="__E30tMf",Na="__dNE0h1",Ca="__Q4IahE",ka="__rIvVJr",Aa="__R_6D4s",Sa="__buZlhw",Oa="__gXNzl1",Ia="__A73hXM",Ma="__DgspNg",La="__oH8Vnr",$a="__ydBKqu",Ea="__j9ZWzM",Fa="__W5vig6",Ta="__GNTu7v",Ba="__cDPdHW",Pa="__sB27XI",Ra=e=>`/campaign/${e.slug||e.id}`,Da=e=>{switch(e.key){case"paid":return(0,Y.jsx)(M.h,{width:12,height:12});case"product":return(0,Y.jsx)(L.h,{width:12,height:12});case"commission":return(0,Y.jsx)($.h,{width:12,height:12});case"promotion":return(0,Y.jsx)(de.h,{width:12,height:12});default:return null}};function Ka(e){const a=e.isLoading?ze.map(e=>Object.assign({},e,{items:[]})):e.sections;return(0,Y.jsx)("section",{className:ea,children:a.map(a=>(0,Y.jsxs)("div",{className:aa,children:[(0,Y.jsxs)("div",{className:ta,children:[(0,Y.jsx)("h2",{className:na,children:a.title}),(0,Y.jsx)("p",{className:ia,children:a.description})]}),(0,Y.jsx)("div",{className:sa,children:e.isLoading?Array.from({length:6},(e,t)=>(0,Y.jsxs)("article",{className:`${la} ${oa}`,"aria-hidden":"true",children:[(0,Y.jsx)("div",{className:`${ra} ${Ca}`}),(0,Y.jsxs)("div",{className:ua,children:[(0,Y.jsxs)("div",{className:ma,children:[(0,Y.jsx)("span",{className:`${ka} ${Ca}`}),(0,Y.jsxs)("div",{className:Ea,children:[(0,Y.jsx)("span",{className:`${Aa} ${Ca}`}),(0,Y.jsx)("span",{className:`${Aa} ${Ca}`}),(0,Y.jsx)("span",{className:`${Sa} ${Ca}`})]}),(0,Y.jsxs)("div",{className:Fa,children:[(0,Y.jsxs)("div",{className:Ta,children:[(0,Y.jsx)("span",{className:`${Oa} ${Ca}`}),(0,Y.jsx)("span",{className:`${Oa} ${Ca}`})]}),(0,Y.jsxs)("div",{className:Ba,children:[(0,Y.jsx)("span",{className:`${La} ${Ca}`}),(0,Y.jsx)("span",{className:`${La} ${Ca}`})]})]})]}),(0,Y.jsx)("span",{className:`${Ia} ${Ca}`}),(0,Y.jsxs)("div",{className:Pa,children:[(0,Y.jsx)("span",{className:`${$a} ${Ca}`}),(0,Y.jsx)("span",{className:`${Ma} ${Ca}`})]})]})]},`${a.key}-${t}`)):a.items.map(e=>{return(0,Y.jsxs)(l.N_,{to:Ra(e),rel:"nofollow",className:la,children:[(0,Y.jsx)("div",{className:ra,children:e.imageUrl?(0,Y.jsx)("img",{src:e.imageUrl,alt:e.title,loading:"lazy",decoding:"async"}):(0,Y.jsx)("div",{className:ca,children:(0,Y.jsx)("span",{className:da,children:(a=e.brandName,(null==a?void 0:a.trim().charAt(0).toUpperCase())||"C")})})}),(0,Y.jsxs)("div",{className:ua,children:[(0,Y.jsxs)("div",{className:ma,children:[(0,Y.jsxs)("div",{className:ha,children:[(0,Y.jsx)("span",{className:pa,children:e.brandName||"Campaign"}),(0,Y.jsx)("h3",{className:ga,children:e.title})]}),(0,Y.jsxs)("div",{className:va,children:[(0,Y.jsx)("div",{className:fa,children:e.offerBadges.map(a=>(0,Y.jsxs)("span",{className:xa,children:[(0,Y.jsx)("span",{className:ba,children:Da(a)}),(0,Y.jsx)("span",{children:a.label})]},`${e.id}-${a.key}`))}),!!e.platforms.length&&(0,Y.jsx)("div",{className:ja,children:e.platforms.map(a=>(0,Y.jsx)("span",{className:ya,"aria-hidden":"true",children:(0,qe.D1)(a,{size:16})},`${e.id}-${a}`))})]})]}),(0,Y.jsxs)("div",{className:wa,children:[!!e.publishedAtLabel&&(0,Y.jsx)("span",{className:_a,children:e.publishedAtLabel}),!!e.locationLabel&&(0,Y.jsxs)("span",{className:Na,children:[(0,Y.jsx)(He.h,{width:16,height:16}),(0,Y.jsx)("span",{children:e.locationLabel})]})]})]})]},e.id);var a})})]},a.key))})}function Ha(e){var a;const t=(i=e.campaignIdOrSlug,s={enabled:!!e.campaignIdOrSlug},(0,o.I)(Object.assign({},s,{queryKey:["getCampaignRecommendations",i],enabled:(null==(l=null==s?void 0:s.enabled)||l)&&!!i,staleTime:(null==s?void 0:s.staleTime)||6e4,gcTime:(null==s?void 0:s.gcTime)||3e5,refetchOnWindowFocus:null!=(r=null==s?void 0:s.refetchOnWindowFocus)&&r,queryFn:()=>(0,d.bS)(i||"")})));var i,s,l,r;const c=(0,n.useMemo)(()=>{var a;return Xe(null==(a=t.data)?void 0:a.data,e.currentCampaignId,e.currentCampaignSlug)},[null==(a=t.data)?void 0:a.data,e.currentCampaignId,e.currentCampaignSlug]),u=t.isLoading&&!t.data;return c.length?(0,Y.jsx)(Ka,{sections:c,isLoading:u}):u?(0,Y.jsx)(Ka,{sections:[],isLoading:!0}):null}var qa=t(36159);const za=e=>(null==e?void 0:e.replace(/\s+/g," ").trim())||void 0,Ua=e=>Array.from(new Set(e.filter(e=>!!e))),Wa=e=>{if(e.length)return 1===e.length?e[0]:2===e.length?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e.at(-1)}`},Ga=e=>{if("number"==typeof e&&!Number.isNaN(e))return new Intl.NumberFormat("en-AU",{maximumFractionDigits:0}).format(e)},Va=e=>{var a;return za(null==e||null==(a=e.details)?void 0:a.brandName)},Za=e=>{var a,t;const n=((null==e||null==(a=e.creator)||null==(a=a.personaViewCountries)?void 0:a.map(e=>{var a;const t=za(e.name),n=Ua((null==(a=e.states)?void 0:a.map(e=>za(e.name)))||[]);if(t)return n.length?`${t}: ${n.join(", ")}`:t}))||[]).filter(e=>!!e);return n.length?n.join(" \u2022 "):"1"===(null==e||null==(t=e.creator)?void 0:t.location)?"Global":void 0},Ya=e=>{var a;return Ua(((null==e||null==(a=e.creator)?void 0:a.platforms)||[]).map(e=>(0,m.Ft)(e.platform)))},Ja=e=>Wa(Ya(e)),Qa=e=>{var a,t;if(!(null!=e&&null!=(a=e.details)&&a.hideEndDate||null==e||null==(t=e.details))&&t.endDate)return oe(e.details.endDate)},Xa=e=>{var a;const t=null==e?void 0:e.offer;if(!t)return;const n=[],i=t.selectedOffers||[],s=Ga(t.minBudget),l=Ga(t.maxBudget),o=za(null==(a=t.currency)?void 0:a.symbol);return o&&s&&l&&!t.feeHideBudgetRange?n.push(`Budget ${o}${s}\u2013${o}${l}`):i.includes("0")&&n.push("Open to quotes"),i.includes("1")&&n.push("Product or service exchange"),i.includes("2")&&n.push(za(t.commissionDescription)||"Commission"),Wa(n)},et=e=>{var a,t;if(null==e||null==(a=e.terms)||!a.hidePaymentMethods)return Wa(Ua(((null==e||null==(t=e.terms)?void 0:t.paymentMethods)||[]).map(e=>(0,m.eB)(e))))},at=e=>{var a;return za(null==e||null==(a=e.details)?void 0:a.headline)||za(null==e?void 0:e.slug)||"Campaign"},tt=(e,a)=>{const t=za(a)||za(e);if(t)return`${qa.W6}/campaign/${t}`},nt=e=>{var a;return za(null==e||null==(a=e.details)?void 0:a.cover)||"https://content.theright.fit/platform/images/og-images/home.jpg"},it=(e,a)=>{const t=((e,a)=>{if(!e)return;const t=Va(e),n=Za(e),i=Ja(e),s=Qa(e),l=Xa(e),o=et(e),r=[("closed"===a?"Closed":"Open")+" creator campaign"];t&&r.push(`from ${t}`),i&&r.push(`for ${i} creators`),n&&r.push("Global"===n?"available globally":`in ${n}`);let c=`${r.join(" ")}.`;return s&&(c+=` Applications ${"closed"===a?"closed":"close"} ${s}.`),l&&(c+=` ${l}.`),o&&(c+=` Payment via ${o}.`),c+="closed"===a?` Browse similar campaigns on ${qa.yy}.`:` Apply on ${qa.yy}.`,c.replace(/\s+/g," ").trim()})(e,a);var n,i;if(t)return i=160,(n=t).length<=i?n:`${n.slice(0,i-1).trimEnd()}\u2026`},st={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}},lt={container:"__UiCCIf",campaignRecommendationsSection:"__RP_wYF",matchieCampaignFrame:"__uSaMTP",content:"__u_okEr",contentHeader:"__fZ1oIB",backLink:"__2LnWlO",contentBody:"__sfNTGP",closedCampaignCard:"__iK8fAy",closedCampaignCardContent:"__AjLcXD",closedCampaignCardTitle:"__ccIpn8",closedCampaignCardDescription:"__HsnaFT",closedCampaignCardButton:"__gp2qpu",campaignItemBanner:"__suuxl5",campaignItemHeader:"__GkQOMo",influencerBanner:"__aiUtgO",campaignItemHeaderTitle:"__pNg_Ua",campaignClosedStatus:"__binuk2",campaignItemHeaderActions:"__bcJzMm",campaignMeta:"__TNVqFu",viewMore:"__wSxmdo",contentOffers:"__xPa6MH",offersList:"__vd6QVd",offersListItem:"__upOvlZ",offersListItemIcon:"__UCavt8",campaignItemBody:"__QCjcHG",section:"__P6_kCc",sectionItem:"__qpGgZj",sectionItemTitle:"__qVpSp7",sectionReference:"__P3uS5p",sectionBrand:"__vZcu94",sectionTitle:"__podQtd",sectionContent:"__outrTe",referenceImage:"__Z1zOd6",sectionReferenceLinkContainer:"___IZ8AX",sectionReferenceLinkContent:"__ySAbOJ",referenceLinkItem:"__ijUQvF",referenceLinkItemIcon:"__eJlwj0",campaignItemFooterOuter:"__LSWPpB",mobileApplyMenu:"__xORp7R",mobileApplyMenuInner:"__EBvlF2",applyWebnApp:"__sd7iHX",campaignItemFooter:"__JKbGXq",viewTermsApplyBtn:"__anxG16",actionsList:"__K2YEqL",actionsListItemFavorite:"__dMPiwo",actionsListItemFavoriteActive:"__Lmy0OX",showMore:"__mL7OJ6",divider:"__ahpxeb"};function ot(e){const a=(0,u.IF)(e=>e.userDetail.data),t=(0,v.A)(),n=(0,l.Zp)(),o="talent"===t.getUserType(),r=(0,Q.A)(),c="closed"===e.status,d=(e=>{const a=at(e),t=Va(e);return t?`${a} campaign creative for ${t}`:`${a} campaign creative`})(e),g=!c,f=e.isTalent||g,x=()=>{var a,t,n;const{creator:s,details:l,applicationLink:o,content:r}=e,c=null==s||null==(a=s.platforms)?void 0:a[0],d=!(4===(null==c||null==(t=c.size)?void 0:t.length)&&o);return d||null==l||!l.hideEndDate?(0,Y.jsxs)("div",{className:lt.section,children:[d&&(0,Y.jsxs)("div",{className:lt.sectionItem,children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"700",label:"Min followers",className:lt.sectionItemTitle}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:"content"!=(null==r?void 0:r.promotion)?200:((null==(n=(0,i.minBy)(null==s?void 0:s.platforms,"minFollowers"))?void 0:n.minFollowers)||1e3).toLocaleString()})]}),!(null!=l&&l.hideEndDate)&&(0,Y.jsxs)("div",{className:lt.sectionItem,children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"700",label:"Application close date",className:lt.sectionItemTitle}),!!l&&!!l.endDate&&(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:oe(l.endDate)})]})]}):null},b=()=>{var a;const t=e.details;return t?(0,Y.jsxs)("div",{className:lt.sectionBrand,children:[(0,Y.jsx)("h2",{className:lt.sectionTitle,children:"Brand"}),(0,Y.jsx)("div",{className:lt.sectionContent,children:(0,Y.jsx)(p.M6,{logo:null==t?void 0:t.brandLogo,name:null==t?void 0:t.brandName,links:null==t||null==(a=t.brandLink)?void 0:a.map(e=>e.value),description:null==t?void 0:t.brandInformation})})]}):null},j=()=>{var a;const t=e.details;return null!=t&&null!=(a=t.referenceLinks)&&a.length?(0,Y.jsxs)("div",{className:lt.sectionReferenceLinkContainer,children:[(0,Y.jsx)("h2",{className:lt.sectionTitle,children:"Reference links"}),(0,Y.jsx)("div",{className:lt.sectionReferenceLinkContent,children:t.referenceLinks.slice(0,5).map((e,a)=>(0,Y.jsxs)("div",{className:lt.referenceLinkItem,children:[(0,Y.jsx)("div",{className:lt.referenceLinkItemIcon,children:(0,Y.jsx)(V.h,{})}),(0,Y.jsx)("div",{children:(0,Y.jsx)("a",{href:e.value,target:"_blank",rel:"noreferrer",children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"700",color:"Brand-Tertiary",label:`Reference link ${a+1}`})})})]},a))})]}):null},y=()=>{var a,t,n;const i=e.details;return null!=i&&null!=(a=i.referenceFiles)&&a.length?(0,Y.jsxs)("div",{className:lt.sectionReference,children:[(0,Y.jsx)("h2",{className:lt.sectionTitle,children:"Reference"}),(0,Y.jsxs)("div",{className:lt.sectionContent,children:[null==e||null==(t=e.referenceFiles)||null==(t=t.media)?void 0:t.map((a,t)=>(0,Y.jsx)(p.$U,{url:a.url,onClick:()=>null==e.setState?void 0:e.setState(e=>Object.assign({},e,{lightBox:t}))},t)),null==e||null==(n=e.referenceFiles)||null==(n=n.documents)?void 0:n.map((e,a)=>(0,Y.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",download:!0,children:(0,Y.jsx)(p.$U,{url:e.url})},a))]})]}):null},w=()=>{var a,t,n,i,s,l;const o=De.vO.find(e=>"0"===e.value),r=De.vO.find(e=>"1"===e.value),c=De.vO.find(e=>"2"===e.value),d=e.offer,u=null==d?void 0:d.selectedOffers;return null!=(a=e.terms)&&a.hidePaymentMethods?null:(0,Y.jsxs)("div",{className:lt.offersList,children:[!!o&&(null==u?void 0:u.includes(o.value))&&(0,Y.jsxs)("div",{className:lt.offersListItem,children:[(0,Y.jsx)("span",{className:lt.offersListItemIcon,children:(0,Y.jsx)(M.h,{width:12,height:12})}),(0,Y.jsx)("div",{className:lt.listItemColumn,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Open to quotes"})})]}),(null==d||null==(t=d.currency)?void 0:t.symbol)&&!(null==d||!d.minBudget)&&!(null==d||!d.maxBudget)&&!(null!=d&&d.feeHideBudgetRange)&&(0,Y.jsxs)("div",{className:lt.offersListItem,children:[(0,Y.jsx)("span",{className:lt.offersListItemIcon,children:(0,Y.jsx)(P.h,{width:12,height:12})}),(0,Y.jsx)("div",{className:lt.listItemColumn,children:(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:`Budget range ${null==d||null==(n=d.currency)?void 0:n.symbol}${(0,h.toNumberFormat)(null==d?void 0:d.minBudget)} - ${null==d||null==(i=d.currency)?void 0:i.symbol}${(0,h.toNumberFormat)(null==d?void 0:d.maxBudget)}`})})]}),!!c&&(null==u?void 0:u.includes(c.value))&&(0,Y.jsxs)("div",{className:lt.offersListItem,children:[(0,Y.jsx)("span",{className:lt.offersListItemIcon,children:(0,Y.jsx)($.h,{width:12,height:12})}),(0,Y.jsxs)("div",{className:lt.listItemColumn,children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Commission"}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"copy",color:"grey-5",weight:"500",label:null==d?void 0:d.commissionDescription})})]})]}),!!r&&(null==u?void 0:u.includes(r.value))&&!(null!=d&&d.serviceHideValue)&&(0,Y.jsxs)("div",{className:lt.offersListItem,children:[(0,Y.jsx)("span",{className:lt.offersListItemIcon,children:(0,Y.jsx)(L.h,{width:12,height:12})}),(0,Y.jsxs)("div",{className:lt.listItemColumn,children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:`Product valued at ${(0,h.toCurrency)((null==d?void 0:d.serviceAmount)||0,(m=null==d?void 0:d.serviceCurrency,null==(g=e.currenciesList.find(e=>e.value===m))?void 0:g.label))}`}),!(null==d||!d.serviceDescription)&&(0,Y.jsxs)("div",{children:[(0,Y.jsx)(p.o5,{variant:"copy",color:"grey-5",weight:"500",label:null!=(s=e.state)&&s.showMoreOffer?null==d?void 0:d.serviceDescription:""}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"brand-information",label:null!=(l=e.state)&&l.showMoreOffer?" less":"more",className:lt.showMore,onClick:()=>null==e.setState?void 0:e.setState(e=>Object.assign({},e,{showMoreOffer:!e.showMoreOffer}))})]})]})]})]});var m,g},C=()=>{e.isLoggedIn?null!=e&&e.applicationLink?e.navigate(`/campaign/${e.campaignId}?type=external`):e.isTalent&&e.navigate((0,N.$s)(`/talent/application/${e.campaignId}`)):(localStorage.setItem("campaign-id",e.campaignId||""),e.navigate("/login"))},k=t=>{var n,i,s,l;window.analytics.track(`campaign.application.step1.apply.on.${t}`,{campaign_id:null==(n=e.details)?void 0:n.campaignId,campaign_name:null==(i=e.details)?void 0:i.headline,campaign_type:(0,_.gr)(null==(s=e.content)?void 0:s.promotion),offer_type:(0,m.FP)(null==(l=e.offer)?void 0:l.selectedOffers),client_email_address:"",creator_email_address:null==a?void 0:a.email,creator_user_id:null==a?void 0:a.user_id,c
1ountry:null==a?void 0:a.country})},A=s().get(a,"restrict",!1),D="content"===s().get(e,"content.promotion"),H="nocontent"===s().get(e,"content.promotion"),q=s().get(a,"feature_flags.matchie_iframe",!1),z=s().get(a,"permissions.influencer_opportunities_enabled",!1),U=s().get(a,"permissions.ugc_opportunities_enabled",!1),W=s().get(a,"socialAccounts.length",0)>0,Z=()=>n("/talent/account/social-connect"),X=()=>{var a;null!=(a=e.recommendationsRef.current)&&a.childElementCount?e.recommendationsRef.current.scrollIntoView({behavior:"smooth",block:"start"}):n("/search/campaigns")},ee=()=>(0,Y.jsx)("div",{ref:e.recommendationsRef,className:lt.campaignRecommendationsSection,children:(0,Y.jsx)(Ha,{campaignIdOrSlug:e.campaignId||e.slug||e.uid,currentCampaignId:e.uid,currentCampaignSlug:e.slug})});return e.useMatchieCampaign?(()=>{const a=e.outreach_id?"outreach":"briefcast",t=e.outreach_id||e.briefcast_id||e.campaignId,n=(0,N.qe)(e.slug);return(0,Y.jsxs)("div",{className:lt.container,children:[(0,Y.jsx)(p.EV,{className:lt.matchieCampaignFrame,uri:`${ne.c.MATCHIE_URL}/${a}/${t}${n}`,title:"Matchie Campaign",onMessage:e.onMessage}),ee()]})})():(0,Y.jsxs)(O.P.div,Object.assign({},st,{className:lt.container,children:[(0,Y.jsxs)("div",{className:lt.content,children:[(0,Y.jsx)("div",{className:lt.contentHeader,"aria-label":"Breadcrumb",children:(0,Y.jsxs)(l.N_,{to:"/search/campaigns",rel:"nofollow",className:lt.backLink,children:[(0,Y.jsx)(I.h,{}),(0,Y.jsx)("span",{children:"Campaigns"})]})}),c&&(0,Y.jsxs)("section",{className:lt.closedCampaignCard,"aria-labelledby":"closed-campaign-card-title",children:[(0,Y.jsxs)("div",{className:lt.closedCampaignCardContent,children:[(0,Y.jsx)("h2",{id:"closed-campaign-card-title",className:lt.closedCampaignCardTitle,children:"Discover Similar Campaigns"}),(0,Y.jsx)("p",{className:lt.closedCampaignCardDescription,children:"This campaign is no longer accepting applications. Explore similar opportunities you can still apply to below."})]}),(0,Y.jsx)("button",{type:"button",className:lt.closedCampaignCardButton,onClick:X,children:"View Campaigns"})]}),(0,Y.jsxs)("div",{className:lt.contentBody,children:[(0,Y.jsxs)("div",{className:lt.campaignItemHeader,children:[D&&!z&&W&&o&&!A&&J("You need at least 1000 followers to apply for influencer campaigns.",lt.influencerBanner),H&&!U&&W&&o&&!A&&J("You need at least 200 followers to apply for UGC campaigns",lt.influencerBanner),!z&&!U&&o&&!W&&!A&&J("To start applying for campaigns, you must",lt.influencerBanner,"connect a social account with at least 200 followers",Z),o&&A&&J("Your account has been restricted. For further details",lt.influencerBanner,"please contact our support team.",te.sE),!(null==(ie=e.details)||!ie.cover)&&(0,Y.jsx)("div",{className:lt.campaignItemBanner,children:(0,Y.jsx)(p.$U,{url:null==(se=e.details)?void 0:se.cover,alt:d,showMimeType:!1})}),(0,Y.jsxs)("div",{className:lt.campaignItemHeaderTitle,children:[c&&(0,Y.jsx)(p.Ex,{type:"base",shape:"circle",label:"Applications Closed",className:lt.campaignClosedStatus}),(0,Y.jsxs)("div",{className:lt.campaignItemHeaderActions,children:[(0,Y.jsx)("div",{className:lt.campaignMeta,children:!(null==(le=e.details)||!le.brandName)&&(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"product-information",label:null==(re=e.details)?void 0:re.brandName,className:lt.brandName})}),e.isTalent&&(0,Y.jsx)(p.lO,{togglerSize:"small",actions:[{value:e.isFavorite?"unfavorite":"favorite",label:e.isFavorite?"Unsave Campaign":"Save Campaign",icon:e.isFavorite?(0,Y.jsx)(F.h,{width:18,height:18}):(0,Y.jsx)(E.h,{width:18,height:18}),onClick:()=>null==e||null==e.onClickAction?void 0:e.onClickAction(e.isFavorite?"unfavorite":"favorite")},{value:"report",label:"Report Campaign",icon:(0,Y.jsx)(T.h,{width:18,height:18}),onClick:()=>null==e.onClickAction?void 0:e.onClickAction("report")}],className:lt.viewMore,children:(0,Y.jsx)(B.h,{width:36,height:36})})]}),(0,Y.jsx)("h1",{children:null==(de=e.details)?void 0:de.headline})]}),(0,Y.jsxs)("div",{className:lt.contentOffers,children:[w(),(0,Y.jsx)(p.o5,{label:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-5",label:`${((null==e||null==(ue=e.details)||null==(ue=ue.description)?void 0:ue.length)||0)>250&&(null==(me=e.state)||!me.showMoreDescription)?`${null==e||null==(he=e.details)||null==(he=he.description)?void 0:he.slice(0,250)} ...`:(null==e||null==(pe=e.details)?void 0:pe.description)||""}`}),((null==e||null==(ge=e.details)||null==(ge=ge.description)?void 0:ge.length)||0)>250&&(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"brand-information",label:null!=(ve=e.state)&&ve.showMoreDescription?" less":" more",className:lt.showMore,onClick:()=>null==e.setState?void 0:e.setState(e=>Object.assign({},e,{showMoreDescription:!e.showMoreDescription}))})]})})]})]}
1),(0,Y.jsx)("div",{className:lt.divider}),(0,Y.jsxs)("div",{className:lt.campaignItemBody,children:[x(),(0,Y.jsx)(Re,{countriesList:e.countriesList,languagesList:e.languagesList,professionCategoriesList:e.professionCategoriesList,statesList:e.statesList,creator:e.creator,applicationLink:e.applicationLink,hidePlatforms:e.hidePlatforms}),(0,Y.jsx)(Oe,{content:e.content,terms:e.terms}),j(),y(),!(null!=e&&null!=(fe=e.details)&&fe.hideCompanyDetails)&&b(),(null==e?void 0:e.brand_insight_card)&&(0,Y.jsx)(Ke.A,{brand:null==e?void 0:e.brand_insight_card,onClickBrandDetailsButton:e.onBrandItemClick})]}),(0,Y.jsxs)("div",{className:lt.campaignItemFooterOuter,children:[g&&e.showOption&&(0,Y.jsx)("div",{className:lt.mobileApplyMenu,children:(0,Y.jsxs)("div",{className:lt.mobileApplyMenuInner,children:[(0,Y.jsxs)("div",{className:lt.applyWebnApp,onClick:()=>{k("web"),C()},children:[(0,Y.jsx)(G,{}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Apply on web"})]}),(0,Y.jsxs)("div",{className:lt.applyWebnApp,onClick:()=>{k("app"),e.isWebView?setTimeout(function(){var a;null==(a=window.ReactNativeWebView)||a.postMessage(JSON.stringify({message:{action:"OPEN_APPLY_CAMPAIGN",data:e.slug}}))},0):window.location.replace(`therightfit://campaign/${e.slug||""}`)},children:[(0,Y.jsx)(K,{}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",label:"Apply on the app"})]})]})}),f&&(0,Y.jsxs)("div",{className:lt.campaignItemFooter,children:[(0,Y.jsx)("div",{className:lt.actionsList,children:e.isTalent&&(0,Y.jsx)(p.$n,{theme:"plain",leftNode:e.isFavorite?(0,Y.jsx)(F.h,{width:42,height:42}):(0,Y.jsx)(E.h,{width:42,height:42}),className:S()(lt.actionsListItemFavorite,{[lt.actionsListItemFavoriteActive]:e.isFavorite}),onClick:()=>null==e.onClickAction?void 0:e.onClickAction("favorite")})}),g&&(0,Y.jsx)("div",{className:lt.actionsList,children:(0,Y.jsx)(p.$n,{theme:"primary",size:"large",label:"View Terms and Apply",rightNode:r?(0,Y.jsx)(R.h,{}):"",className:lt.viewTermsApplyBtn,disabled:q||e.isLoggedIn&&!e.isTalent||e.isTalent&&!e.canApply,onClick:()=>r?null==e||null==e.setShowOption?void 0:e.setShowOption(!e.showOption):C()})})]})]})]}),ee()]}),(0,Y.jsx)(p.Qb,{show:void 0!==(null==(xe=e.state)?void 0:xe.lightBox),media:((null==(be=e.referenceFiles)?void 0:be.media)||[]).map(e=>({type:e.type,url:e.url})),initial:null==(je=e.state)?void 0:je.lightBox,onClose:()=>{null==e.setState||e.setState(e=>Object.assign({},e,{lightBox:void 0}))}}),(null==(ye=e.state)?void 0:ye.showDeclineModal)&&(0,Y.jsx)(ce.A,{campaignId:(null==e?void 0:e.uid)||"",onClose:()=>null==e.setState?void 0:e.setState(e=>Object.assign({},e,{showDeclineModal:!1}))}),(null==(we=e.state)?void 0:we.showReportModal)&&(0,Y.jsx)(ae,{campaign_id:e.uid||"",onClose:()=>null==e.setState?void 0:e.setState(e=>Object.assign({},e,{showReportModal:!1}))}),(0,Y.jsx)(p.Jj,{show:e.isLoading})]}));var ie,se,le,re,de,ue,me,he,pe,ge,ve,fe,xe,be,je,ye,we}function rt(e){var a,t,s,c;const d="talent"===(0,v.A)().getUserType(),y=navigator.userAgent.includes("trf-app"),{currenciesList:w,languagesList:A,countryList:S,professionCategories:O,userDetail:I}=(0,u.IF)(e=>e),M=!(0,i.isEmpty)(I.data),L=(0,l.Zp)(),{id:$}=(0,l.g)(),[E,F]=(0,n.useState)({}),[T,B]=(0,n.useState)(!1),P=(0,n.useRef)(null),R=(0,C.M)(null==(a=e.brand_insight_card)?void 0:a.slug),D=(0,j.r)(null==(t=I.data)?void 0:t.id,""),K=(H={onSuccess:()=>{r.oR.success("You've successfully saved this campaign.")}},(0,f.n)(Object.assign({},H,{mutationKey:["postFavoriteCampaign"],mutationFn:({campaignId:e,data:a})=>(0,b.j0)(e||"",a),onSuccess:(...e)=>{x.queryClient.invalidateQueries({queryKey:["getFavoriteCampaigns"]}),null==H||null==H.onSuccess||H.onSuccess(...e)}})));var H;const q=(e=>(0,f.n)(Object.assign({},e,{mutationKey:["postUnUnFavorite"],mutationFn:({campaignId:e,data:a})=>(0,b.cJ)(e||"",a),onSuccess:(...a)=>{x.queryClient.invalidateQueries({queryKey:["getFavoriteCampaigns"]}),null==e||null==e.onSuccess||e.onSuccess(...a)}})))({onSuccess:()=>{r.oR.success("You've successfully unsaved this campaign")}}),z=(0,n.useMemo)(()=>{var a;return null==(a=e.creator)?void 0:a.targetCountry},[null==(s=e.creator)?void 0:s.targetCountry]),{data:U}=(0,o.I)({queryKey:["country-states",z],enabled:!!z&&!e.useMatchieCampaign,staleTime:6e5,gcTime:72e4,refetchOnWindowFocus:!1,queryFn:async()=>
1{if(z){const e=isNaN(Number(z))?`country_name=${z}`:`country_id=${z}`;return await(0,g.Jt)(`country/state/list?${e}`)}}}),W=(0,n.useMemo)(()=>((null==U?void 0:U.data)||[]).map(e=>({value:e.id.toString(),label:e.name})),[null==U?void 0:U.data]),G=(0,n.useMemo)(()=>(0,h.toGenericList)(w.data),[w.data]),V=(0,n.useMemo)(()=>(0,h.toGenericList)(A.data),[A.data]),Z=(0,n.useMemo)(()=>{const e=Object.values(S.data).map(e=>({value:e.id.toString(),label:e.name}));return(0,i.sortBy)(e,"label")},[S.data]),J=(0,n.useMemo)(()=>O.data.map(e=>({value:e.id.toString(),label:e.name})),[O.data]),Q=(0,n.useMemo)(()=>{var a;return null==(a=e.details)||null==(a=a.referenceFiles)?void 0:a.reduce((e,a)=>{const t=a.value,n=(null==t?void 0:t.split(".").pop())||"",i=p.YL[n],s={url:t,type:i};return p.Ms.images.includes(i)||p.Ms.videos.includes(i)?e.media=(e.media||[]).concat([s]):e.documents=(e.documents||[]).concat([s]),e},{})},[null==e||null==(c=e.details)?void 0:c.referenceFiles]),X=(0,n.useMemo)(()=>{var a;return!(null==(a=D.data)||!a.find(a=>a.uid===e.uid))},[e.uid,D.data]),ee=(0,n.useMemo)(()=>{return a=null==e?void 0:e.content,t=null==I?void 0:I.data.permissions,"content"===(null==a?void 0:a.promotion)&&(null==t?void 0:t.influencer_opportunities_enabled)||"nocontent"===(null==a?void 0:a.promotion)&&(null==t?void 0:t.ugc_opportunities_enabled);var a,t},[I,null==e?void 0:e.content]),ae=(0,n.useMemo)(()=>{var a;return(null==(a=e.creator)||null==(a=a.platforms)?void 0:a.every(e=>{var a;return 4===(null==(a=e.size)?void 0:a.length)}))&&!(null==e||!e.applicationLink)},[null==e?void 0:e.applicationLink,e.creator]),te=q.isPending||K.isPending,ne=()=>{X?q.mutate({campaignId:e.uid||"",data:{page:"details"}}):K.mutate({campaignId:e.uid||"",data:{page:"details"}})},ie=Object.assign({},e,{campaignId:$,countriesList:Z,currenciesList:G,languagesList:V,professionCategoriesList:J,statesList:W,referenceFiles:Q,state:E,isFavorite:X,isLoggedIn:M,isTalent:d,isWebView:y,isLoading:te,canApply:ee,hidePlatforms:ae,showOption:T,recommendationsRef:P,onBrandItemClick:a=>{var t,n,i,s,l,o,r;window.analytics.track("viewed.brand.insights",{campaign_id:e.uid,campaign_name:null==(t=e.details)?void 0:t.headline,campaign_type:(0,_.gr)(null==(n=e.content)?void 0:n.promotion),offer_type:(0,m.FP)(null==(i=e.offer)?void 0:i.selectedOffers),brand_insights_url:(0,k.Kv)(a.slug),brand_name:a.title,brand_open_to_pitches:null==(s=R.data)?void 0:s.is_open_to_pitch,touchpoint:"campaign_details",email_address:null==I||null==(l=I.data)?void 0:l.email,user_id:null==I||null==(o=I.data)?void 0:o.user_id,country:null==I||null==(r=I.data)?void 0:r.country})},setShowOption:B,navigate:L,setState:F,onMessage:(e,a)=>{switch(e){case"briefcast-view":case"outreach-view":{var t,n,i,s;const l=(null==a||null==(t=a.brief)?void 0:t.id)||(null==a?void 0:a.id),o=(null==a||null==(n=a.brief)?void 0:n.title)||(null==a?void 0:a.title),r=null==a||null==(i=a.brief)?void 0:i.collaboration_type,c=null==a||null==(s=a.brief)?void 0:s.campaign_partnership_type;window.analytics.track("Campaign Viewed",{campaign_id:l,campaign_name:o,campaign_type:r,offer_type:c,campaign_application_type:"external",matchie_type:"briefcast-view"===e?"briefcast":"outreach-view"===e?"outreach":null});break}case"briefcast-apply":case"outreach-apply":L((0,N.$s)(`/talent/application/${$}`));break;case"briefcast-back":case"outreach-back":L("/search/campaigns",{replace:!0});break;case"scroll-to-recommendations":null!=(l=P.current)&&l.childElementCount?P.current.scrollIntoView({behavior:"smooth",block:"start"}):L("/search/campaigns");break;case"connect-social":L("/talent/account/social-connect")}var l},onToggleFavorite:ne,onClickAction:e=>{switch(e){case"favorite":case"unfavorite":return ne();case"report":return void F(e=>Object.assign({},e,{showReportModal:!0}));default:return}}});return(0,Y.jsx)(ot,Object.assign({},ie))}const ct="__PQJPIL",dt="__gKgp6N",ut="__FIvNQO",mt="__hKHP7G";function ht(){const e=(0,l.Zp)();return(0,Y.jsx)("div",{className:ct,children:(0,Y.jsxs)("div",{className:dt,children:[(0,Y.jsx)(p.o5,{variant:"title5",weight:"700",label:"Campaign not found",className:ut}),(0,Y.jsx)(p.o5,{variant:"copy",weight:"500",color:"grey-6",label:"This campaign may have been removed or the link may be incorrect.",className:mt}),(0,Y.jsx)(p.$n,{theme:"primary",label:"Go back",onClick:()=>e("/search/campaigns",{replace:!0})})]})})}var pt=t(84446),gt=t(71468),vt=t(78790),ft=t(46582);const xt="__tcowdH",bt="__ZkIq5w",jt="__vzVRyP",yt="__C5j9pV",wt="__EVBZ5Q",_t="__hBtbGN",Nt="__Ll9DJq",Ct="__tUXiyo",kt="__V8Ee2M";var At=t(17816),St=t(47625),Ot=t(42946);const It={container:"__bYSMuS",content:"__t5H0hA",title:"__mfrZSi",success:"__OG8bSS",headerText:"__vyFJIh",info:"__VSocUm",divider:"__mdk_OJ",infoDetail
1s:"__AttRAN",btns:"__Jd9IGH",unpublish:"__Xnqd11",unpublishBtn:"__X8Kmgk",successMessageModalContainer:"__grvoWi",successMessageModalDialogClass:"__Zkyb8J",successMessageModalWrapperClass:"__xmCY2U"},Mt=({show:e,onCancel:a})=>{const t=(0,l.Zp)();return(0,Y.jsx)(X.A,{show:e,className:It.successMessageModalWrapperClass,dialogClassName:It.successMessageModalDialogClass,contentClassName:It.successMessageModalContainer,onHide:a,children:(0,Y.jsx)("div",{className:It.container,children:(0,Y.jsxs)("div",{className:It.content,children:[(0,Y.jsxs)("div",{className:It.title,children:[(0,Y.jsx)("div",{className:It.success,children:(0,Y.jsx)(Ot.h,{height:24,width:24})}),(0,Y.jsxs)("div",{className:It.headerText,children:[(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"title5",weight:600,label:"Application sent"})}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"copy",color:"grey-5",label:"What happens now?"})})]})]}),(0,Y.jsxs)("div",{className:It.info,children:[(0,Y.jsx)("div",{className:It.divider}),(0,Y.jsxs)("div",{className:It.infoDetails,children:[(0,Y.jsx)(At.h,{height:24,width:24}),(0,Y.jsx)(p.o5,{weight:500,label:"The Right Fit will share your profile with the brand. "})]}),(0,Y.jsx)("div",{className:It.divider}),(0,Y.jsxs)("div",{className:It.infoDetails,children:[(0,Y.jsx)(St.h,{height:24,width:24}),(0,Y.jsx)(p.o5,{weight:500,label:"If you\u2019re a fit the brand will reach out to you through your profile."})]})]}),(0,Y.jsx)("div",{className:It.btns,children:(0,Y.jsx)(p.$n,{theme:"dark",label:"Back to Campaigns",className:It.mediakitCardBtns,onClick:()=>t("/search/campaigns")})})]})})})};function Lt(e){const a=(0,gt.d4)(e=>e.userDetail.data);return(0,Y.jsx)(ft.b,{children:(0,Y.jsxs)("div",{className:xt,children:[(0,Y.jsxs)("div",{className:bt,children:[(0,Y.jsx)("div",{className:jt,children:(0,Y.jsx)(p.$n,{theme:"plain",size:"large",label:"Campaign Details",leftNode:(0,Y.jsx)(I.h,{}),onClick:e.onGoBack})}),(0,Y.jsxs)("div",{className:yt,children:[(0,Y.jsx)(p.o5,{variant:"title3",family:"calluna",label:"Apply to campaign"}),(0,Y.jsx)("div",{className:"mt-3",children:(0,Y.jsx)(p.o5,{weight:"500",color:"grey-4",label:"The Right Fit will share your profile with the brand. If you\u2019re a fit the brand will reach out to you through your profile."})}),!(0,i.isNil)(a)&&(0,Y.jsx)("div",{className:"mt-4",children:(0,Y.jsx)(vt.A,{name:null==a?void 0:a.display_name,bio:null==a?void 0:a.headline,locations:`${null==a?void 0:a.country}, ${null==a?void 0:a.state}`,instagramFollowers:null==e.getTalentFollowersByPlateform?void 0:e.getTalentFollowersByPlateform("Instagram"),tiktokFollowers:null==e.getTalentFollowersByPlateform?void 0:e.getTalentFollowersByPlateform("Tiktok"),youtubeFollowers:null==e.getTalentFollowersByPlateform?void 0:e.getTalentFollowersByPlateform("Youtube"),instagramLink:null==e.getTalentPlateformLink?void 0:e.getTalentPlateformLink("Instagram"),tiktokLink:null==e.getTalentPlateformLink?void 0:e.getTalentPlateformLink("Tiktok"),youtubeLink:null==e.getTalentPlateformLink?void 0:e.getTalentPlateformLink("Youtube"),profilePic:null==a?void 0:a.avatar_image,badges:s().map(null==a?void 0:a.tags,"name"),isTalent:!0,isExternalCampaign:!0,slugId:null==a?void 0:a.slug})}),(0,Y.jsxs)("div",{className:wt,children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"title6",weight:"500",color:"grey-9",label:"Ballpark estimate"})}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{weight:"400",color:"grey-5",label:"An initial ballpark estimate \u2014 not your final quote"})})]}),(0,Y.jsx)("div",{className:"mt-2",children:(0,Y.jsx)(p.ZQ,{leftNode:(0,Y.jsx)(p.o5,{variant:"label",weight:500,label:(null==e?void 0:e.userCurrency)||"$"}),name:"external-campaign-estimate",value:e.estimate,required:!0,type:"number",placeholder:"00.00",onChangeText:(a,t)=>null==e||null==e.setEstimate?void 0:e.setEstimate(t)})})]}),(0,Y.jsxs)("div",{className:_t,children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{variant:"title6",weight:"500",color:"grey-9",label:"Add a personal message (Optional)"})}),(0,Y.jsx)("div",{children:(0,Y.jsx)(p.o5,{weight:"400",color:"grey-5",label:"Grab the brand\u2019s attention with a great pitch."})})]}),(0,Y.jsx)("div",{className:"mt-2",children:(0,Y.jsx)(p.hg,{name:"external-campaign-message",value:e.message,className:Nt,placeholder:"Write your message here.",onChangeText:(a,t)=>null==e||null==e.setMessage?void 0:e.setMessage(t)})})]})]}),(0,Y.jsxs)("div",{className:Ct,children:[(0,Y.jsx)(p.$n,{theme:"outline",label:"Cancel",onClick:e.onGoBack}),(0,Y.jsx)(p.$n,{theme:"primary",label:"Apply",disabled:!e.estimate,className:kt,onClick:e.onClickRedirect})]})]}),(0,Y.jsx)(Mt,{show:e.showModal,onCancel:()=>null==e.setShowModal?void 0:e.setShowModal(!1)})]})})}function $t(e){var a;
1const t=(0,u.IF)(e=>e.userDetail.data),i=window.location.origin.toString(),[s,r]=(0,n.useState)(""),[d,h]=(0,n.useState)(""),[p,g]=(0,n.useState)(!1),{id:v}=(0,l.g)(),f=(0,l.Zp)(),x=(0,C.M)(null==(a=e.brand_insight_card)?void 0:a.slug),b=(0,o.I)({queryKey:["external-campaign-apply",(null==e?void 0:e.slug)||""],refetchOnWindowFocus:!1,queryFn:()=>{if(null!=e&&e.slug)return(0,pt.zB)(null==e?void 0:e.slug);throw new c.u("Campaign id is required",404)}}),j=(0,n.useMemo)(()=>{var e;return null==b||null==(e=b.data)||null==(e=e.application_currency)?void 0:e.symbol},[b]),y=e=>{if(null!=t&&t.socialAccounts&&(null==t?void 0:t.socialAccounts.length)>0){const a=null==t?void 0:t.socialAccounts.find(a=>a.platform===e);if(a)return a.formattedFollowers}},w=Object.assign({},e,{message:d,estimate:s,showModal:p,userCurrency:j,setEstimate:r,setShowModal:g,setMessage:h,onBrandItemClick:a=>{var n,i,s,l;window.analytics.track("viewed.brand.insights",{campaign_id:e.uid,campaign_name:null==(n=e.details)?void 0:n.headline,campaign_type:(0,_.gr)(null==(i=e.content)?void 0:i.promotion),offer_type:(0,m.FP)(null==(s=e.offer)?void 0:s.selectedOffers),brand_insights_url:(0,k.Kv)(a.slug),brand_name:a.title,brand_open_to_pitches:null==(l=x.data)?void 0:l.is_open_to_pitch,touchpoint:"campaign_details",email_address:null==t?void 0:t.email,user_id:null==t?void 0:t.user_id,c
1ountry:null==t?void 0:t.country})},navigate:f,onClickRedirect:()=>{var a,n,l,o;const r=(0,te.xj)(Number(s),Number(null==(a=b.data)||null==(a=a.application_currency)?void 0:a.exchange_rate));window.analytics.track("offline.campaign.application.sent",{campaign_id:e.uid,campaign_name:null==(n=e.details)?void 0:n.headline,campaign_type:(0,_.gr)(null==e||null==(l=e.content)?void 0:l.promotion),offer_type:(0,m.FP)(null==(o=e.offer)?void 0:o.selectedOffers),email_address:null==t?void 0:t.email,user_id:null==t?void 0:t.id,country:null==t?void 0:t.country,campaign_url:`${i}/campaign/${v}`,location:`${null==t?void 0:t.state}, ${null==t?void 0:t.country}`,talent_full_name:`${null==t?void 0:t.first_name} ${null==t?void 0:t.last_name}`,profile_image_url:null==t?void 0:t.avatar_image,application_message:d,profile_url:`${i}/creator/${null==t?void 0:t.slug}`,instagram_follower_count:y("Instagram")||0,tiktok_follower_count:y("Tiktok")||0,application_estimate:`${r.toFixed(2)}`}),g(!0)},onGoBack:()=>{f(`/campaign/${v}`)},getTalentPlateformLink:e=>{if(null!=t&&t.socialAccounts&&(null==t?void 0:t.socialAccounts.length)>0){const a=null==t?void 0:t.socialAccounts.find(a=>a.platform===e);if(a)return a.profileUrl}return""},getTalentFollowersByPlateform:y});return(0,Y.jsx)(Lt,Object.assign({},w))}var Et=t(65454);const Ft=[{name:"robots",content:"noindex, nofollow"},{name:"googlebot",content:"noindex, nofollow"}];function Tt(e){var a,t;const n=(i=e.state,[at(i),Va(i),qa.yy].filter(Boolean).join(" | "));var i;const s=it(e.state,null==(a=e.state)?void 0:a.status),l=tt(e.campaignId,null==(t=e.state)?void 0:t.slug),o=nt(e.state);return l?(0,Y.jsx)(Et.Ay,{title:n,description:s,imageUrl:o,url:l,metaTags:[...Ft]}):null}const Bt="__hwFCBm",Pt="__VmDWqY",Rt="__tjDSI1";function Dt(e){var a;const t=!e.isLoading&&!!e.isError&&!e.useMatchieCampaign,n="external"===(null==e?void 0:e.campaignApplicationType)&&"closed"!==(null==(a=e.state)?void 0:a.status);return(0,Y.jsxs)("div",{className:Bt,children:[(0,Y.jsx)(Tt,{state:e.state,campaignId:e.campaignId}),(0,Y.jsx)("div",{className:Pt,children:(0,Y.jsx)("div",{className:Rt,children:n?(0,Y.jsx)($t,Object.assign({},e.state)):t?(0,Y.jsx)(ht,{}):(0,Y.jsx)(rt,Object.assign({},e.state,{useMatchieCampaign:e.useMatchieCampaign}))})}),(0,Y.jsx)(p.Jj,{show:e.isLoading})]})}function Kt(e){var a;const t=(0,l.Zp)(),{id:s}=(0,l.g)(),[p]=(0,l.ok)(),g=p.get("type"),v=(0,u.IF)(e=>e.userDetail.data),f=!(0,i.isEmpty)(v),[x,b]=(0,n.useState)({}),j="string"==typeof s&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(s),y=!(null==v||null==(a=v.feature_flags)||!a.matchie_iframe),w=(0,o.I)({queryKey:["campaign-public",s],enabled:!!s&&!j,refetchOnWindowFocus:!1,queryFn:()=>{if(!s)throw new c.u("Campaign id is required",404);return(0,d.pb)(s)}});(0,n.useEffect)(()=>{var e,a;const t=w.data;if(!t)return;const n=t.data.campaign_creator_details,i=null==(e=t.data.collaboration_terms)?void 0:e.date,s=null==(a=t.data)?void 0:a.brand_insight_card;b(e=>{var a,l;return Object.assign({},e,{uid:t.data.uid,slug:t.data.slug,seoEnabled:t.data.seo_enabled,status:t.data.status,applicationLink:t.data.application_link,hideBoosting:t.data.hide_boosting_section,hideUsage:t.data.hide_usage_section,hideExclusivity:t.data.hide_exclusivity_section,hidePaymentMethods:t.data.hide_payment_section,offer:(0,h.toCampaignFlowOfferState)(t.data),content:(0,h.toCampaignFlowContentState)(t.data),creator:Object.assign({},e.creator,(0,h.toCampaignFlowCreatorState)(t.data),{targetCountry:null==n||null==(a=n.country_id)?void 0:a.toString(),targetState:null==n||null==(l=n.states)?void 0:l.map(e=>e.id.toString())}),details:Object.assign({},(0,h.toCampaignFlowDetailsState)(t.data),{startDate:null!=i&&i.start_date?new Date(i.start_date):void 0,endDate:null!=i&&i.end_date?new Date(i.end_date):void 0,hideEndDate:null==i?void 0:i.hide_end_date}),terms:Object.assign({},(0,h.toCampaignFlowTermsState)(t.data)),brand_insight_card:s,briefcast_id:t.data.briefcast_id,outreach_id:t.data.outreach_id})}),window.analytics.track("Campaign Viewed",{campaign_id:t.data.uid,campaign_name:t.data.title,offer_type:(0,m.sO)(t.data),country:(null==v?void 0:v.country)||"",email_address:null==v?void 0:v.email,user_id:(null==v?void 0:v.user_id)||(null==v?void 0:v.id),campaign_application_type:(0,m.zR)(t.data)})},[w.data,v]),(0,n.useEffect)(()=>{const e=w.error;e&&(404===e._status?r.oR.error("Campaign not found, redirecting...",{onClose:()=>t("/campaign")}):r.oR.error(e._message))},[w.error,t]);const _=w.isLoading;(0,n.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[g,s]);const N=!!x.briefcast_id,C=!!x.outreach_id,k=N||C,A=j||f&&k&&y||!f&&k,S=Object.assign({},e,{state:x,campaignId:s,campaignApplicationType:g,isLoading:_,useMatchieCampaign:A,isError:w.isError});return(0,Y.jsx)(Dt,Object.assign({},S))}},50510(e,a,t){t.d(a,{A:()=>S});var n=t(96540),i=t(61784),s=t(8118),l=t(78213),o=t(2543),r=t(64864),c=t(71929),d=t(25814),u=t(61409),m=t(71468),h=t(49376),p=t(8773),g=t(55868),v=t(49785),f=t(28454),x=t(97977),b=t(27043),j=t(34174),y=t(3433),w=t(32485),_=t.n(w),N=t(13838),C=t(94580),k=t(4288),A=t(74848);const S=({setProfileInfoModal:e,setProfileSettings:a})=>{var t;const{register:w,handleSubmit:S,setValue:O,getValues:I,watch:M,trigger:L,formState:{errors:$}}=(0,v.mN)({mode:"onChange"}),E=(0,m.d4)(e=>
1e.userDetail.data),[F,T]=(0,n.useState)(),[B,P]=(0,n.useState)([]),R=(0,m.d4)(e=>e.countryList.data),{slugId:D}=(0,y.g)(),{fetchData:K}=(0,c.A)(),H=-1!==navigator.userAgent.indexOf("trf-app"),q=(0,n.useRef)(null),[z,U]=(0,n.useState)({hasError:!1,fieldError:!1}),W=["first_name","last_name","display_name","state_id","country_code","country_id","bio","headline","avatar_image"],G=(0,m.wA)(),V=M("country_id");M("avatar_image"),(0,n.useEffect)(()=>{E&&Object.keys(E).forEach(e=>{W.includes(e)&&O(e,E[e])})},[]);const Z=(0,f.n)({mutationFn:e=>(0,x.RW)(e),onError:e=>{T(e)},onSuccess:async t=>{var n;T([]);const i=await K((0,j.Gi)(D));localStorage.removeItem("authMe"),G((0,h.yS)({data:Object.assign({},t.data[0],{flags:Object.assign({},null==(n=t.data[0])?void 0:n.flags,{has_details:!0})})})),a&&i&&a(e=>Object.assign({},e,{profile:i.data.data})),u.oR.success("Personal info updated!"),e(!1)}}),{mutate:Y,isPending:J}=Z;Z.error&&!z.hasError&&U(Object.assign({},z,{hasError:!0,fieldError:!0}));const Q=(0,f.n)({mutationFn:async e=>{if(e.avatar instanceof File){const a=await(0,C.AP)((null==E?void 0:E.id)||"",{avator_image:e.avatar});return O("avatar_image",e.avatar),await new Promise(e=>setTimeout(e,1)),a}return Promise.resolve({avatar_image:I("avatar_image")})},onSuccess:async e=>{O("avatar_image",e.avatar_image),localStorage.removeItem("authMe"),G((0,h.yS)({data:Object.assign({},E,{avatar_image:e.avatar_image})})),u.oR.success("Profile image updated!")},onError:e=>{u.oR.error(e._message)}}),X=Q.isPending,ee=e=>{0===Object.keys($).length&&Y(e)},ae=async()=>{if(V)try{P([]);const e=await K("country/state/list?country_name="+(e=>{var a;const t=Object.values(R).find(a=>a.id==e);return null!=(a=null==t?void 0:t.name)?a:null})(V));e&&e.data&&P(e.data.data)}catch(e){console.error(e)}};(0,n.useEffect)(()=>{ae()},[]),(0,n.useEffect)(()=>{ae()},[V]);const te=e=>{if("country_id"===e){const a=Object.values(R).find(a=>a.id==I(e));return{value:null==a?void 0:a.id,label:null==a?void 0:a.name}}if("state_id"===e){const a=Object.values(B).find(a=>a.id==I(e));return{value:null==a?void 0:a.id,label:null==a?void 0:a.name}}},ne=e=>{var a;return(0,A.jsxs)(A.Fragment,{children:[$[e]&&(0,A.jsx)("div",{className:"error-message",children:null==(a=$[e])?void 0:a.message}),F&&(0,A.jsx)(d.A,{errorField:e,errors:F})]})},ie=e=>!!$[e];return(0,A.jsxs)(i.A,{show:!0,className:_()("profile-info-modal",{"profile-info-modal__webview":H}),children:[(0,A.jsxs)(i.A.Body,{children:[(0,A.jsx)("button",{type:"button",className:"close",onClick:()=>e(!1)}),E&&(0,A.jsx)("form",{onSubmit:S(ee),className:"trf-job-post-form",children:(0,A.jsx)(b.A,{loading:J||(0,o.isEmpty)(E),children:(0,A.jsx)("div",{className:`${s.A.container} main-body`,children:(0,A.jsx)("div",{className:`${s.A.content} p-0 main-body-inner w-100`,children:(0,A.jsxs)("div",{className:`${s.A.contentHeader} p-0`,children:[(0,A.jsx)("div",{className:s.A.contentHeaderTitle,children:(0,A.jsx)(l.A,{family:"calluna",variant:"title3",label:"Profile Info"})}),(0,A.jsx)("div",{className:`${s.A.contentHeaderDescription} pb-2`,children:(0,A.jsx)(l.A,{family:"brandon",weight:"500",color:"grey-4",label:"View and edit your profile information"})}),(0,A.jsxs)("div",{className:"column-content__body",children:[(0,A.jsx)("div",{className:"row",children:(0,A.jsx)("div",{className:"col-12",children:(0,A.jsxs)("div",{className:"form-group form-group-upload",children:[(0,A.jsx)(N.Zu,{ref:q,file:I("avatar_image"),label:"Profile Picture",required:!0,cropper:!0,isLoading:X,allowedTypes:"images",className:"profile-info-photo",maxSize:10485760,onChangeFile:(e,a)=>O("avatar_image",(null==a?void 0:a.at(0))||(null==E?void 0:E.avatar_image)),onSaveCropImage:(e,a)=>Q.mutate({avatar:a})}),(0,A.jsx)(N.$n,{theme:"outline-black",size:"small",label:"Change Avatar",leftNode:(0,A.jsx)(k.h,{width:16,height:16}),onClick:null==q||null==(t=q.current)?void 0:t.onClickFile})]})})}),(0,A.jsxs)("div",{className:"row",children:[(0,A.jsx)("div",{className:"col-12 col-sm-6",children:(0,A.jsxs)("div",{className:"form-group "+(ie("first_name")?"has-danger":""),children:[(0,A.jsxs)("label",{className:"control-label",children:["First Name",(0,A.jsx)("span",{className:"trf-control-label-required",children:" *"})]}),(0,A.jsx)(r.p,Object.assign({type:"text",id:"first_name",placeholder:"First Name",className:"form-control"},w("first_name",{required:"The first name field is required."}))),ne("first_name")]})}),(0,A.jsx)("div",{className:"col-12 col-sm-6",children:(0,A.jsxs)("div",{className:"form-group "+(ie("last_name")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",children:"Last Name"}),(0,A.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,A.jsx)(r.p,Object.assign({type:"text",className:"form-control",placeholder:"Last Name",id:"last_name"},w("last_name",{required:"The last name field is required."}))),ne("last_name")]})})]}),(0,A.jsx)("div",{className:"row",children:(0,A.jsx)("div",{className:"col-12 col-sm-12",children:(0,A.jsxs)("div",{className:"form-group "+(ie("display_name")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",children:"How do you want your name to appear on theright.fit?"}),(0,A.jsx)(r.p,Object.assign({type:"text",id:"display_name",placeholder:"Display Name",className:"form-control"},w("display_name",{}))),(0,A.jsx)("small",{className:"form-text text-muted",children:"Leave this field blank if you want to use your first and last name"}),ne("display_name")]})})}),(0,A.jsxs)("div",{className:"row",children:[(0,A.jsx)("div",{className:"col-12 col-sm-6",children:(0,A.jsxs)("div",{className:"form-group "+(ie("country_id")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",htmlFor:"inputCountry",children:"Country"}),(0,A.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,A.jsx)(p.Ay,Object.assign({},w("country_id",{required:"Country is required."}),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:Object.values(R).map(e=>({value:e.id,label:e.name})),isMulti:!1,onChange:(e,a)=>{O("country_id",null==e?void 0:e.value),O("state_id","")},value:te("country_id"),placeholder:"Country"})),(0,A.jsx)("small",{className:"form-text text-muted",children:"The country you primarily work in"}),ne("country_id")]})}),(0,A.jsx)("div",{className:"col-12 col-sm-6",children:(0,A.jsxs)("div",{className:"form-group "+(ie("state_id")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",htmlFor:"name",children:"State / Region"}),(0,A.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,A.jsx)(p.Ay,Object.assign({},w("state_id",{required:"State / Region is required."}),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:B.map(e=>({value:e.id,label:e.name})),isMulti:!1,onChange:(e,a)=>{O("state_id",null==e?void 0:e.value),L("state_id")},placeholder:"State / Region ",value:te("state_id")})),(0,A.jsx)("small",{className:"form-text text-muted",children:"The state or region you primarily work in"}),ne("state_id")]})})]}),(0,A.jsxs)("div",{className:"row",children:[(0,A.jsx)("div",{className:"col-12 col-sm-12",children:(0,A.jsxs)("div",{className:"form-group "+(ie("headline")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",children:"Headline"}),(0,A.jsx)(r.p,Object.assign({type:"text",id:"headline",placeholder:"Headline",className:"form-control"},w("headline"))),ne("headline")]})}),(0,A.jsx)("div",{className:"col-12 col-sm-12",children:(0,A.jsxs)("div",{className:"form-group "+(ie("bio")?"has-danger":""),children:[(0,A.jsx)("label",{className:"control-label",htmlFor:"bio",children:"Bio"}),(0,A.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,A.jsx)("textarea",Object.assign({placeholder:"Bio",className:"form-control"},w("bio",{required:"Please enter bio",pattern:{value:g.UB,message:"Please avoid entering personal information."}}))),ne("bio")]})})]})]})]})})})})})]}),(0,A.jsx)(i.A.Footer,{children:(0,A.jsxs)("div",{className:" d-flex align-items-center w-100 footer-outer",children:[(0,A.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-auto cancel-btn",onClick:()=>e(!1),children:"CANCEL"}),(0,A.jsx)("button",{type:"submit",className:"btn btn-trf-yellow btn-rounded text-uppercase",onClick:S(ee),children:"Save Details"})]})})]})}},78790(e,a,t){t.d(a,{A:()=>I});var n=t(96540),i=t(4258),s=t(13838),l=t(10130),o=t(43139),r=t(44859),c=t(3433),d=t(71468),u=t(40364),m=t(61784),h=t(8118),p=t(30591),g=(t(50297),t(8204)),v=t(98989),f=t(40891);const x="__S63ov1",b="__OBIE19",j="__ENLmXy",y="__SNgWzn",w="__lKKk6V";var _=t(74848);function N({show:e,name:a,setClose:t}){const n=(0,c.Zp)(),i=u.c.CDN_PATH;return(0,_.jsx)(s.aF,{show:e,onClose:()=>t(!1),children:(0,_.jsx)(v.N,{initial:!1,mode:"wait",children:(0,_.jsx)(f.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{bounce:0},children:(0,_.jsx)("div",{className:x,children:(0,_.jsx)("div",{className:b,children:(0,_.jsx)("div",{className:j,children:(0,_.jsxs)(s.fv,{style:{gap:32},children:[(0,_.jsx)(s.fI,{children:(0,_.jsxs)(s.fv,{alignItems:"center",style:{gap:20},children:[(0,_.jsx)("img",{src:`${i}/svg/logo-black.svg`,alt:"The Right Fit"}),(0,_.jsx)(s.o5,{variant:"title6",weight:"500",label:`Sign up to work with ${a}`})]})}),(0,_.jsx)(s.o5,{variant:"copy",className:w,label:`Please sign up or log in to work with ${a}`}),(0,_.jsx)(s.fI,{children:(0,_.jsxs)(s.fv,{style:{gap:16},children:[(0,_.jsx)(s.$n,{size:"large",label:"Sign up for Free",onClick:()=>n("/register")}),(0,_.jsx)(s.o5,{label:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s.o5,{variant:"body",label:"Already registered? "}),(0,_.jsx)(s.o5,{variant:"body",color:"brand-information",label:"LOG IN",className:y,onClick:()=>n("/login")})]})})]})})]})})})})})})})}var C=t(81367),k=t(50510),A=t(46582),S=t(43795);const O=({handleRedirect:e,setCreatedMediaKit:a,slugId:t,showMediaKit:i})=>{const l=(0,c.Zp)(),[o,r]=(0,n.useState)(!1),[d,g]=(0,n.useState)(""),[v,f]=(0,n.useState)(!1);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"profile-section-menu",children:(0,_.jsxs)(S.A,{align:"end",autoClose:!0,children:[(0,_.jsx)(S.A.Toggle,{variant:"Info",id:"dropdown-basic",className:"btn btn-rounded btn-toggle menu-icon-btn",children:(0,_.jsx)("i",{className:"fa fa-ellipsis-v"})}),(0,_.jsxs)(S.A.Menu,{className:"dropdown-menu-left toggle__menu",children:[(0,_.jsx)(S.A.Item,{type:"button",title:"Edit Profile",className:"btn btn-trf-secondary profile-menu-text",onClick:()=>e(),children:"Edit Profile"}),(0,_.jsx)(S.A.Item,{type:"button",title:"Share Profile",className:"btn btn-trf-secondary profile-menu-text",onClick:()=>{t&&g(`${u.c.SITE_URL.replace("/api/","/")}creator/${t}`),r(!0)},children:"Share Profile"}),i&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(S.A.Item,{type:"button",title:"Create Media Kit",className:"btn btn-trf-secondary profile-menu-text",onClick:()=>a(!0),children:"Create Media Kit"}),(0,_.jsx)(S.A.Item,{type:"button",title:"My Media Kits",className:"btn btn-trf-secondary profile-menu-text",onClick:()=>l("/talent/media-kit"),children:"My Media Kits"})]}),(0,_.jsx)(S.A.Item,{type:"button",title:"View Public Profile",className:"btn btn-trf-secondary profile-menu-text",onClick:()=>{window.open(`/creator/${t}?&preview=client`,"_blank","noopener,noreferrer")},children:"View Public Profile"})]})]})}),(0,_.jsx)(m.A,{show:o,className:"share-media-kit-modal",onHide:()=>{r(!1)},children:(0,_.jsxs)(m.A.Body,{children:[(0,_.jsx)("div",{className:"close-share-modal",onClick:()=>r(!1)}),(0,_.jsx)("div",{className:`${h.A.container} main-body`,children:(0,_.jsxs)("div",{className:`${h.A.content} p-0 share-media-kit-content`,children:[(0,_.jsx)("div",{className:`${h.A.contentHeader} p-0`,children:(0,_.jsx)("div",{className:h.A.contentHeaderTitle,children:(0,_.jsx)(s.o5,{family:"calluna",variant:"title3",label:"Share your Profile"})})}),(0,_.jsx)("div",{className:h.A.contentBody,children:(0,_.jsxs)(s.fI,{className:"align-items-center copy-link",children:[(0,_.jsx)(s.ZQ,{value:d,label:"",inputWrapperClass:"input-border",onChangeText:(e,a)=>{g(a)},containerClassName:"copy-link__input",disabled:!0}),(0,_.jsx)("button",{type:"submit",className:"btn btn btn-trf-outline-black btn-rounded btn-rounded-new--dark text-uppercase ml-2 copy-link__button "+(d?"":"disable-btn"),disabled:!d,onClick:()=>(navigator.clipboard.writeText(d),g(""),r(!1),void f(!0)),children:"copy"})]})})]})})]})}),v&&(0,_.jsx)(p.A,{modalContent:{header:"Link copied to clipboard",description:"You can now paste the link wherever you need it.",cancelBtn:"ok"},modalType:"copySuccess",handleCancelBtn:()=>{f(!1)},handleModalClose:()=>f(!1),secondBtnStyle:"btn-trf-yellow"})]})},I=({profilePic:e="assets/svg/Ellipse.svg",locations:a,name:t="Profile Headline",badges:v,lastActiveAt:f,bio:x="Welcome to my page! I am a free spirit creative. I like to design things.",instagramFollowers:b,tiktokFollowers:j,youtubeFollowers:y,isTalent:w,isCurrentUser:S,isMediaKit:I,mediaKitSection:M,isVerifiedUser:L,setProfileSettings:$,onClickDirectCollab:E,slugId:F,isExternalCampaign:T,permissionsData:B,profileSettings:P})=>{var R,D,K,H;const q=(0,c.zy)(),z=q.search.includes("?media"),U=q.search.includes("?mode=preview"),{isSampleProfile:W,hasUsedSeeLess:G,setShowAnalytics:V,scrollToAnalytics:Z}=(0,A.B)(),{state:Y}
1=((0,c.Zp)(),(0,c.zy)()),[J,Q]=(0,n.useState)(!1),[X,ee]=(0,n.useState)(!1),[ae,te]=(0,n.useState)(""),[ne,ie]=(0,n.useState)(!1),[se,le]=(0,n.useState)(!1),[oe,re]=(0,n.useState)(!1),ce=!I||(null==M?void 0:M.showTags),de=(0,d.d4)(e=>e.userDetail.data),ue=(0,g.A)(),me=(0,d.d4)(e=>e.user.token)||ue.getSession(),he=(null==B||null==(R=B.permissions)?void 0:R.creator_analytics_enabled)||!1,pe=null!=(D=null==B?void 0:B.analytics_view_count)?D:0,ge=!!w||he,ve=ge||!w&&pe<3;(0,n.useEffect)(()=>{Y&&ee(!0)},[]);const fe=(0,n.useMemo)(()=>{var e;return null==P||null==(e=P.followers)?void 0:e.find(e=>e.db_followers>1e3)},[P]);return(0,_.jsxs)("div",{className:"profile-section sticky "+(z?"adjust-header":""),children:[!1,(0,_.jsxs)("div",{className:"profile-section__body",children:[(0,_.jsxs)("section",{className:"profile-section__inner",children:[(0,_.jsxs)("div",{className:"profile-section__thumbnail position-relative d-inline-block",children:[(0,_.jsx)("img",{src:e,alt:t,className:"profile-pic"}),L&&(0,_.jsx)(o.h,{className:"verified-icon position-absolute",height:40,width:40})]}),(0,_.jsx)("div",{className:"profile-section__name",children:(0,_.jsx)("h1",{id:"creator-profile-heading",children:t})}),w&&(!w||S)&&!U||T?w&&S?(0,_.jsxs)(_.Fragment,{children:[(null==de||null==(K=de.feature_flags)?void 0:K.creator_profile)&&(0,_.jsx)("button",{className:"btn btn-rounded text-uppercase btn-rounded-new--dark w-100 action-btn",onClick:()=>ee(!0),children:(0,_.jsx)("span",{children:"Create Media Kit"})}),(0,_.jsxs)("div",{className:"profile-section__actions d-flex justify-content-spacebetween w-100 align-items-center mt-2",children:[(0,_.jsx)("div",{className:"share-profile-btn-container",children:(0,_.jsx)("button",{className:"btn btn-trf-outline-black btn-rounded text-uppercase w-100",onClick:()=>{F&&te(`${u.c.SITE_URL.replace("/api/","/")}creator/${F}`),ie(!0)},children:(0,_.jsx)("span",{children:"Share profile"})})}),(0,_.jsx)("div",{className:"actions-btn-container text-right",children:(0,_.jsx)(O,{handleRedirect:()=>{Q(!0)},setCreatedMediaKit:ee,slugId:F,showMediaKit:null==de||null==(H=de.feature_flags)?void 0:H.creator_profile})})]})]}):"":(0,_.jsxs)("div",{className:"profile-section__actions mt-4",children:[(0,_.jsx)("button",{className:"btn btn-rounded text-uppercase btn-rounded-new--dark w-100 action-btn",onClick:()=>U?re(!0):null==E?void 0:E(me?"creator-profile":"submit-enquiry"),children:(0,_.jsx)("span",{children:"Contact me"})}),!w&&(fe?(0,_.jsx)("button",{className:"btn btn-trf-outline-black btn-rounded text-uppercase w-100 mt-2",onClick:()=>{ge||G&&ve?(V(!0),setTimeout(()=>Z(),100)):null==E||E("upgrade-pro-modal")},children:(0,_.jsx)("span",{children:"View Analytics"})}):"")]})]}),f&&(0,_.jsx)("section",{className:"profile-section__product-info mb-0",children:(0,_.jsx)("div",{className:"product-info-container d-flex flex-row flex-wrap  justify-content-center active-user-badge-container",children:(0,_.jsx)(C.A,{timestamp:f||""})})}),(0,_.jsxs)("section",{className:"",children:[(0,_.jsxs)("section",{className:"profile-section__product-info",children:[(0,_.jsx)("div",{className:"product-info-container d-flex flex-row flex-wrap  justify-content-center",children:ce&&v&&v.slice(0,3).map((e,a)=>(0,_.jsx)(s.Ex,{label:e,type:"information"}))}),(0,_.jsx)("div",{className:"location-info mt-3",children:(0,_.jsxs)("div",{className:"location-text",children:[(0,_.jsx)(l.h,{className:"location-icon"}),a]})})]}),(0,_.jsx)("section",{children:(0,_.jsxs)("div",{className:"followers-outer d-flex justify-content-center w-100",children:[b&&(0,_.jsx)("div",{className:"profile-section__actions",children:(0,_.jsx)(i.A,{platform:"instagram",followerCount:b})}),j&&(0,_.jsx)("div",{className:"profile-section__actions",children:(0,_.jsx)(i.A,{platform:"tiktok",followerCount:j})}),y&&(0,_.jsx)("div",{className:"profile-section__actions",children:(0,_.jsx)(i.A,{platform:"youtube",followerCount:y})})]})})]}),w&&!T?(0,_.jsx)(r.A,{createdMediaKit:X,setCreatedMediaKit:ee,type:"profile",mediaKit:Y}):"",J&&(0,_.jsx)(k.A,{setProfileInfoModal:Q,setProfileSettings:$})]}),(0,_.jsx)(m.A,{show:ne,className:"share-media-kit-modal",onHide:()=>{ie(!1)},children:(0,_.jsxs)(m.A.Body,{children:[(0,_.jsx)("div",{className:"close-share-modal",onClick:()=>ie(!1)}),(0,_.jsx)("div",{className:`${h.A.container} main-body`,children:(0,_.jsxs)("div",{className:`${h.A.content} p-0 share-media-kit-content`,children:[(0,_.jsx)("div",{className:`${h.A.contentHeader} p-0`,children:(0,_.jsx)("div",{className:h.A.contentHeaderTitle,children:(0,_.jsx)(s.o5,{family:"calluna",variant:"title3",label:"Share your Profile"})})}),(0,_.jsx)("div",{className:h.A.contentBody,children:(0,_.jsxs)(s.fI,{className:"align-items-center copy-link",children:[(0,_.jsx)(s.ZQ,{value:ae,label:"",inputWrapperClass:"input-border",onChangeText:(e,a)=>{te(a)},containerClassName:"copy-link__input",disabled:!0}),(0,_.jsx)("button",{type:"submit",className:"btn btn btn-trf-outline-black btn-rounded btn-rounded-new--dark text-uppercase ml-2 copy-link__button "+(ae?"":"disable-btn"),disabled:!ae,onClick:()=>(navigator.clipboard.writeText(ae),te(""),ie(!1),void le(!0)),children:"copy"})]})})]})})]})}),se&&(0,_.jsx)(p.A,{modalContent:{header:"Link copied to clipboard",description:"You can now paste the link wherever you need it.",cancelBtn:"ok"},modalType:"copySuccess",handleCancelBtn:()=>{le(!1)},handleModalClose:()=>le(!1),secondBtnStyle:"btn-trf-yellow"}),(0,_.jsx)(N,{show:oe,setClose:re,name:t})]})}},46582(e,a,t){t.d(a,{B:()=>g,b:()=>p});var n=t(96540),i=t(20225),s=t(28454),l=t(71468),o=t(49376),r=t(34174),c=t(94580),d=t(49394),u=t
1(3433),m=t(74848);const h=(0,n.createContext)(void 0),p=({children:e})=>{const a=(0,l.wA)(),t=(0,u.zy)().search.includes("?media"),p=(0,d.IF)(e=>e.userDetail.data),[g,v]=(0,n.useState)(!1),[f,x]=(0,n.useState)(!1),[b,j]=(0,n.useState)(!1),[y,w]=(0,n.useState)(!1),[_,N]=(0,n.useState)([]),[C,k]=(0,n.useState)(null),[A,S]=(0,n.useState)({instagram:"0",tiktok:"0",youtube:"0"}),O=(0,i.I)({enabled:!1,queryKey:["get-profile"],queryFn:c.E$}),{refetch:I}=O;(0,n.useEffect)(()=>{var e;if(null!=(e=O.data)&&e.length){const e=O.data[0];a((0,o.yS)({data:Object.assign({},e,{flags:Object.assign({},null==e?void 0:e.flags,{has_details:!0})})}))}},[O.data,a]);const{mutate:M}=(0,s.n)({mutationFn:e=>(0,r.Dk)(e),onSuccess:()=>{I(),a((0,o.yS)({data:Object.assign({},p,{analytics_view_count:p.analytics_view_count+1})}))}}),L=(e,a)=>JSON.stringify({profileId:e,platform:a.platform,source:a.source,fromMediakit:a.fromMediakit||!1}),$={isSampleProfile:g,setIsSampleProfile:v,handleShowSample:e=>{e&&M(e);const a=new URLSearchParams({showSample:"true"}).toString(),t=`${window.location.href.split("?")[0]}?${a}`;window.open(t,"_blank")},showAnalytics:f,setShowAnalytics:x,unauthorizeSample:b,setUnauthorizedSample:j,socialFolllowers:A,setSocialFolllowers:S,isMediakitShared:t,hasUsedSeeLess:y,setHasUsedSeeLess:w,analyticsCache:_,getCachedAnalytics:(e,a)=>{const t=L(e,a),n=_.find(e=>L(e.profileId,e.payload)===t);return n?n.response:null},setCachedAnalytics:(e,a,t)=>{const n={profileId:e,payload:a,response:t,timestamp:Date.now()};N(t=>[...t.filter(t=>L(t.profileId,t.payload)!==L(e,a)),n])},scrollToAnalytics:()=>{const e=document.getElementById("analytics-section")||document.querySelector("analytics-section-mediaKit");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},activeAnalyticsTab:C,setActiveAnalyticsTab:k};return(0,m.jsx)(h.Provider,{value:$,children:e})},g=()=>{const e=(0,n.useContext)(h);if(void 0===e)throw new Error("useProfileGallery must be used within a ProfileGalleryProvider");return e}},44859(e,a,t){t.d(a,{A:()=>P});var n=t(96540),i=t(3433),s=t(35120),l=t(49785),o=t(61784),r=t(8118),c=t(8773),d=t(2543),u=t(16200),m=t(28454),h=t(71468),p=t(61409),g=t(56367),v=t(3901),f=t(32485),x=t.n(f);const b=e=>null==e?void 0:e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-");var j=t(45311),y=t(91706),w=t(32762);const _=t.p+"mediaKitHideLogoBanner.ea2ea8b1baffd761.png";var N=t(13838),C=t(33412),k=t(51349),A=t(87599),S=t(85428),O=t(74848);const I=({reviewData:e,setContentData:a,contentData:t})=>{const[i,s]=n.useState(!1);(0,n.useEffect)(()=>{const a=t.reviews.includes(e.id);s(a)},[e,t]);return(0,O.jsx)("div",{className:"media-kit-review",children:(0,O.jsxs)("div",{className:"review-card",children:[(0,O.jsxs)("div",{className:"review-rating",children:[(0,O.jsxs)("div",{className:"review-rating-inner",children:[(0,O.jsx)("div",{className:"review-rating-inner__icon",children:(0,O.jsx)(S.h,{})}),(0,O.jsx)("div",{className:"review-rating-inner__count",children:parseFloat(e.rating)})]}),(0,O.jsx)(N.Li,{checked:i,containerClassName:"review-checkbox",onClick:()=>(e=>{if(i){const n=[...t.reviews],i=n.indexOf(e);n.splice(i,1),a(Object.assign({},t,{reviews:n}))}else t.reviews.length<3&&a(a=>Object.assign({},a,{reviews:[...a.reviews,e]}))})(e.id)})]}),(0,O.jsxs)("div",{className:"review-description",children:[(0,O.jsx)("div",{className:"review-header",children:e.title||"Campaign Title"}),(0,O.jsx)("div",{className:"review-text",children:e.content}),(0,O.jsxs)("div",{className:"review-text",children:["-",e.reviewer]})]})]})})};var M=t(30591);const L=({data:e,setContentData:a,contentData:t})=>{const[i,s]=n.useState(!1);(0,n.useEffect)(()=>{var a;const n=null==(a=t.gallery)?void 0:a.includes(e.id);s(n)},[e,t]);return(0,O.jsx)("div",{className:"media-kit-gallery-main",children:(0,O.jsxs)("div",{className:"media-kit-gallery-main-outer d-flex",children:[(0,O.jsx)(N.Li,{checked:i,containerClassName:"checkbox-outer",onClick:()=>(e=>{if(i){const n=[...t.gallery],i=n.indexOf(e);n.splice(i,1),a(Object.assign({},t,{gallery:n}))}else{var n;(null==(n=t.gallery)?void 0:n.length)<3&&a(a=>Object.assign({},a,{gallery:[...a.gallery,e]}))}})(e.id),className:"kit-gallery-checkbox"}),(0,O.jsx)("img",{className:"kit-gallery-img",src:e.thumbnail_path,alt:e.title})]})},e.id)},$=["leave","share","gallery"],E=({handleMediaKitClose:e,setCreatedMediaKit:a,mediaKit:t,setShareLink:s,setNewMediaKit:f,setShowShareMediaKit:S,showExistingBtn:E,setShowEditGallery:F,type:T,onMutateMediaKit:B})=>{var P,R,D,K,H,q,z,U,W,G,V,Z,Y;const J=-1!==navigator.userAgent.indexOf("trf-app"),Q=(0,j.E)(),X=(0,i.Zp)(),[ee,ae]=(0,n.use
1State)(""),[te,ne]=(0,n.useState)({headline:"",creatorCategories:[],bio:"",gallery:[],analytics:[],reviews:[],socials:[],slug:"",touchedSlug:!1,brand:"",pitch:""}),[ie,se]=(0,n.useState)({headline:!1,tags:!0,description:!0,media_items:!1,social_accounts:!1,reviews:!1,socials:!1,packages:!1,pitch:!1,video_pitch:!1,written_pitch:!0,hide_logo:!1}),[le,oe]=(0,n.useState)([]),[re,ce]=(0,n.useState)([]),de=(0,h.d4)(e=>e.userDetail.data),[ue,me]=(0,n.useState)({leave:!1,share:!1,gallery:!1}),[he,pe]=(0,n.useState)(),[ge,ve]=(0,n.useState)({}),[fe,xe]=(0,n.useState)(!1),[be,je]=(0,n.useState)(!1),[ye,we]=(0,n.useState)(!1),[_e,Ne]=(0,n.useState)(""),[Ce,ke]=(0,n.useState)(!0),[Ae,Se]=(0,n.useState)(!1),[Oe,Ie]=(0,n.useState)(!1),Me=(0,l.mN)({mode:"onChange"}),{setValue:Le,handleSubmit:$e,register:Ee,unregister:Fe,trigger:Te,formState:{errors:Be,isSubmitted:Pe,touchedFields:Re}}=Me;(0,n.useEffect)(()=>{if(de){var e;const a=null==(e=de.socialAccounts)?void 0:e.find(e=>e.dbFollowers>999);we(!a)}},[de]),(0,n.useEffect)(()=>{(async()=>{try{const e=await(0,u.Lg)();oe(null==e?void 0:e.data)}catch(e){e instanceof Error?p.oR.error(e.message):p.oR.error(JSON.stringify(e))}try{const e=(await(0,u.Q2)()).map(e=>({value:e.id,label:e.name}));ce(e)}catch(e){e instanceof Error?p.oR.error(e.message):p.oR.error(JSON.stringify(e))}})()},[]),(0,n.useEffect)(()=>{if(t){ae(t.title),ne(e=>{var a,n,i,s,l;return Object.assign({},e,{creatorCategories:(null==(a=t.tag_ids)?void 0:a.slice(0,3))||[],bio:t.description||"",gallery:t.media_item_ids||[],analytics:t.social_account_ids||[],socials:t.social_post_platforms||[],reviews:t.review_ids||[],packages:t.packages,slug:null==t?void 0:t.slug,touchedSlug:!(null==t||!t.slug),brand:"",headline:null==t||null==(n=t.pitch)?void 0:n.headline,pitch:null==(i=t.pitch)?void 0:i.pitch,video:null==(s=t.pitch)?void 0:s.video,cover:null==(l=t.pitch)?void 0:l.thumbnail})});const e=e=>t.display_flags[e];se(a=>{var n,i;return Object.assign({},a,{headline:e("headline"),tags:e("tags"),description:e("description"),media_items:e("media_items"),social_accounts:e("social_accounts"),reviews:e("reviews"),socials:e("socials"),packages:e("packages"),pitch:e("pitch"),hide_logo:e("hide_logo"),video_pitch:!(null==(n=t.pitch)||!n.video),written_pitch:!(null==t||null==(i=t.pitch)||!i.headline)})})}else ne(e=>Object.assign({},e,{bio:de.bio,creatorCategories:de.tags.map(e=>e.id).slice(0,3)}))},[]);const{mutate:De,isPending:Ke}=(0,m.n)({mutationFn:async({finalData:e,actionType:a})=>t||null!=he&&he.id?(0,u.Ap)(e,(null==t?void 0:t.id)||(null==he?void 0:he.id)):(0,u.pK)(e),onError:e=>{ve(e),p.oR.error(e._message)},onSuccess:(n,i)=>{p.oR.success("Your Media Kit has been saved!");const{actionType:l}=i;var o;"mediakit-details"===T&&X(`/talent/media-kit/${null==n||null==(o=n.data)||null==(o=o.data)?void 0:o.slug}`,{replace:!0});if("preview"===l){var r;const e=`/creator/${de.slug}`;X(`${e}/${null==(r=n.data.data)?void 0:r.slug}?mode=preview`,{state:T?e:"/talent/media-kit"})}t||(window.analytics.track("clicked.share.mediakit",{email_address:null==de?void 0:de.email,user_id:null==de?void 0:de.id,country:null==de?void 0:de.country,page_path:window.location.pathname}),null==a||a(!1),null==f||f(n.data.data),"Save"!==l&&(null==S||S(!0))),pe(n.data.data),null==s||s(n.data.data.link),e(l),null==B||B(n.data.data,l)}}),He=(0,n.useMemo)(()=>{const{tags:e,description:a,social_accounts:t,reviews:n,socials:i}=ie,s=[];if(!ee)return!0;var l,o,r;(s.push(!0),e&&s.push(te.creatorCategories.length>0),a&&s.push(!!te.bio),t)&&s.push((null==te||null==(l=te.analytics)?void 0:l.length)>0);i&&s.push((null==(o=te.socials)?void 0:o.length)>0);n&&s.push((null==(r=te.reviews)?void 0:r.length)>0);return!(s.length>0&&s.every(e=>!0===e))},[ie,te,ee]),qe=(e,a,t,n)=>{se(t=>Object.assign({},t,{[e]:a})),"pitch"===e&&!1===a&&(Fe("headline"),ne(e=>Object.assign({},e,{brand:"",headline:"",video:null,cover:null,pitch:""})))},ze=(e,a,t,n,i)=>{let s=[...te[i]||[]];s.push(n),a||(s=s.filter(e=>e!==n)),ne(e=>Object.assign({},e,{[i]:[...s]}))},Ue=(e,a)=>{var t;const n=Object.assign({},ie),{tags:i,description:s,media_items:l,social_accounts:o,reviews:r,socials:c}=ie;0===(null==(t=te.gallery)?void 0:t.length)&&(n.media_items=!1);const d=te;i||(d.creatorCategories=[]),s||(d.bio=""),l||(d.gallery=[]),o||(d.analytics=[]),r||(d.reviews=[]),c||(d.socials=[]);const u={title:ee,description:te.bio,headline:te.headline,tag_ids:te.creatorCategories,media_item_ids:te.gallery,social_account_ids:te.analytics,review_ids:te.reviews,social_post_platforms:te.socials,display_flags:n,status:e,slug:te.slug?te.slug:b(ee),pitch:{brand:"",headline:ie.written_pitch&&te.headline||"",pitch:ie.written_pitch&&te.pitch||"",video:ie.video_pitch&&te.video||null,thumbnail:ie.video_pitch&&te.cover||null}};De({finalData:u,actionType:a})},We=e=>{"gallery"===e&&(Ue(t?t.status:"draft","gallery"),null==a||a(!1),F(!0)),"leave"===e&&(Ue(t?t.status:"draft","leave"),null==a||a(!1)),"share"===e&&X("/talent/media-kit"),me(a=>Object.assign({},a,{[e]:!1}))},Ge=e=>{"gallery"===e&&(F(!0),null==a||a(!1)),me(a=>Object.assign({},a,{[e]:!1})),"leave"===e&&(null==a||a(!1))},Ve=e=>
1{me(a=>Object.assign({},a,{[e]:!1}))},Ze={leave:{header:"Exit",description:"Do you want to save your progress as a draft? ",continueBtn:"save and exit",cancelBtn:"exit without saving "},share:{header:"Share an existing Media Kit",description:"You\u2019ll be sent to your Media Kit library.  This draft won\u2019t be saved automatically. ",continueBtn:"browse existing Media KITs",cancelBtn:"cancel"},gallery:{header:"You are leaving Media Kit creation",description:"Do you want to save your progress?",continueBtn:"LEAVE AND SAVE MY PROGRESS",cancelBtn:"LEAVE without saving"}},Ye=e=>{switch(e){case"gallery":return"btn-trf-yellow";case"share":case"leave":return"black-btn";default:return"btn-trf-outline-black"}},Je=e=>{switch(e){case"gallery":case"leave":return"red-btn";case"share":return"btn-trf-outline-black";default:return"black-btn"}},Qe=async e=>{if(!Ke&&0===Object.keys(Be).length){if(He)return;let e=t?t.status:"draft";"share"===_e&&(e="published"),Ue(e,"save"===_e?"Save":"Share")}};(0,n.useEffect)(()=>{te&&(Le("title",ee),Le("slug",(null==te?void 0:te.slug)||""),Le("creatorCategories",te.creatorCategories||[]),Le("bio",te.bio||""),Le("gallery",te.gallery||""),Le("socials",te.socials||[]),Le("analytics",te.analytics||[]),Le("reviews",te.reviews||[]),Le("cover",te.cover||null),Le("video",te.video||null),Le("headline",te.headline||""),Pe&&Te())},[te,ee,Le,Te,Pe,ie]);const Xe=e=>{const a=Object.keys(e)[0];var t;a&&p.oR.error(null==(t=e[a])?void 0:t.message)};return(0,n.useEffect)(()=>{_e&&($e(Qe,Xe)(),Ne(""))},[_e]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(o.A,{show:Ce,className:x()("media-kit-modal",{"media-kit-modal__webview":J}),onHide:()=>me(e=>Object.assign({},e,{leave:!0})),children:(0,O.jsxs)("form",{onSubmit:$e(Qe,Xe),className:"d-flex flex-column h-100",children:[(0,O.jsxs)(o.A.Body,{children:[(0,O.jsx)("button",{type:"button",className:"close",onClick:()=>0===Object.keys(Re).length?null==a?void 0:a(!1):me(e=>Object.assign({},e,{leave:!0}))}),(0,O.jsx)("div",{className:`${r.A.container} main-body`,children:(0,O.jsxs)("div",{className:`${r.A.content} p-0 main-body-inner w-100`,children:[(0,O.jsxs)("div",{className:`${r.A.contentHeader} p-0`,children:[(0,O.jsx)("div",{className:`${r.A.contentHeaderTitle} d-flex align-items-center`,children:(0,O.jsxs)("div",{className:"header-title-text pr-2",children:[t?"Edit Media Kit":"Create Media Kit"," ",(0,O.jsx)("p",{className:"mediakit-beta-btn",children:"Beta"})]})}),(0,O.jsx)("div",{className:`${r.A.contentHeaderDescription} pb-2`,children:(0,O.jsx)(N.o5,{weight:"500",color:"grey-4",label:"Select content from your profile and turn it into a unique Media Kit."})})]}),!(null!=de&&null!=(P=de.permissions)&&P.media_kit_analytics_enabled)&&(0,O.jsx)(k.A,{onProButtonClick:()=>Se(!0),icon:(0,O.jsx)(y.h,{className:r.A.proBannerIcon,height:14,width:14}),title:"Track how your media kit performs!"}),E&&(0,O.jsx)("div",{children:(0,O.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-auto cancel-btn",onClick:()=>me(e=>Object.assign({},e,{share:!0})),children:"Share an Existing Media Kit"})}),(0,O.jsxs)("div",{className:`${r.A.contentBody} main-modal-body`,children:[(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.ZQ,Object.assign({value:ee,label:"Media Kit name",placeholder:"Enter Media Kit name",error:ge.title||(null==Be||null==(R=Be.title)?void 0:R.message),inputWrapperClass:"input-border"},Ee("title",{required:"Media Kit name is required."}),{onChangeText:(e,a)=>{te.slug&&te.touchedSlug||ne(e=>Object.assign({},e,{slug:b(a)})),ae(a)}}))}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.ZQ,Object.assign({value:null==te?void 0:te.slug,label:"Customize Link",placeholder:"media-kit-name",error:ge.slug||(null==Be||null==(D=Be.slug)?void 0:D.message),inputWrapperClass:"input-border",helperText:"Please use numbers, letters and dashes only",maxLength:64},Ee("slug",{required:"Media Kit slug is required."}),{leftNode:(0,O.jsx)("div",{className:x()("customize-link",{error:!!ge.slug}),children:(0,O.jsx)(N.o5,{variant:"label",color:"grey-6",label:`${"theright.fit"===window.location.host?"trf.plus":window.location.host}/${(null==de?void 0:de.slug)||""}/`})}),rightNode:t&&t.slug!==te.slug&&(0,O.jsx)(N.$n,{theme:"plain",rightNode:(0,O.jsx)(v.h,{width:16,height:16}),className:"custom-link-warning",onClick:()=>je(!0)}),onChangeText:(e,a)=>{ne(e=>Object.assign({},e,{slug:b(a),touchedSlug:!!a}))}}))}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"pitch",label:"Intro",checked:ie.pitch,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a),className:"media-kit-modal-switch"})}),ie.pitch&&(0,O.jsxs)("div",{className:"pitch-form-content",children:[(0,O.jsx)(N.$,{name:"video_pitch",label:"Add a video",checked:ie.video_pitch,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a),className:"media-kit-modal-switch"}),ie.video_pitch&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.Zu,{name:"video",file:null==te?void 0:te.video,allowedTypes:"videos",label:"Video",helperText:"Upload a pitch video. 3 minutes maximum duration.",videoLe
1ngth:180,className:null!=te&&te.video?"border-0":"",onChangeFile:(e,a)=>ne(t=>Object.assign({},t,{[e]:a[0]})),onRemoveFile:()=>ne(e=>Object.assign({},e,{video:null}))})}),(null==te?void 0:te.video)&&(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.Zu,{name:"cover",file:null==te?void 0:te.cover,allowedTypes:"images",label:"Add cover",helperText:"Maximum file size 10mb. Your thumbnail will be cropped to square ratio.",className:null!=te&&te.cover?"border-0":"",onChangeFile:(e,a)=>ne(t=>Object.assign({},t,{[e]:a[0]})),onRemoveFile:()=>ne(e=>Object.assign({},e,{cover:null}))})})]}),(0,O.jsx)(N.$,{name:"written_pitch",label:"Add text",checked:ie.written_pitch,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a),className:"media-kit-modal-switch"}),ie.written_pitch&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.hg,Object.assign({value:te.headline,label:"Title",className:"heading-input",placeholder:"A short headline",helperText:"A short title to introduce yourself.",maxLength:64},Ee("headline",{required:!!ie.written_pitch&&"Headline is required."}),{onChangeText:(e,a)=>{ne(e=>Object.assign({},e,{headline:a}))},error:ge.headline||(null==Be||null==(K=Be.headline)?void 0:K.message)}))}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.hg,{name:"pitch",value:te.pitch,label:"Description (optional)",placeholder:"A more detailed introduction",helperText:"Share your story, your passions, and what makes you stand out.",maxLength:800,onChangeText:(e,a)=>{ne(e=>Object.assign({},e,{pitch:a}))}})})]})]}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"tags",label:"Creator categories",checked:ie.tags,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a),className:"media-kit-modal-switch"})}),ie.tags&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:`${r.A.contentHeaderDescription}`,children:(0,O.jsx)(N.o5,{weight:"500",color:Be.creatorCategories?"product-error":"grey-4",label:`Select creator categories (${te.creatorCategories.length}/3)`})}),(0,O.jsxs)("div",{className:"cast-talent-form-content__box cast-talent-form-content__box_select",children:[(0,O.jsx)("label",{children:"Categories"}),(0,O.jsx)(c.Ay,Object.assign({},Ee("creatorCategories",{required:!!ie.tags&&"Categories is required."}),{options:re,className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded media-kit-categories-select",classNamePrefix:"trf-react-select",isMulti:!0,placeholder:"Select Category",menuPlacement:"auto",value:(0,d.filter)(re,e=>(0,d.includes)(te.creatorCategories,e.value)),isOptionDisabled:()=>te.creatorCategories.length>=3,onChange:e=>{(e=>{ne(a=>Object.assign({},a,{creatorCategories:(0,d.map)(e,"value")}))})(e)},isClearable:!1}))]})]}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"media_items",label:"Gallery",checked:ie.media_items,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a)})}),ie.media_items&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N.o5,{weight:"500",color:Be.gallery?"product-error":"grey-4",label:`Select media from your gallery (${null==(H=te.gallery)?void 0:H.length}/3)`}),(0,O.jsx)(N.o5,{weight:"300",color:"grey-4",label:"This selection will be unique to this Media Kit.",className:"media-kit-helper-text"}),(0,O.jsx)("input",Object.assign({type:"hidden"},Ee("gallery",{required:!!ie.media_items&&"Media is required."}))),(0,O.jsx)("div",{className:"gallery-outer",children:Q.map((e,a)=>(0,O.jsx)(L,{data:e,setContentData:ne,contentData:te}))}),(0,O.jsx)(N.o5,{weight:"500",color:"blue-4",label:"Edit Gallery",onClick:()=>{me(e=>Object.assign({},e,{gallery:!0}))},className:"cursor-pointer"})]}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"description",label:"Bio",checked:ie.description,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a)})}),ie.description&&(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.hg,Object.assign({value:te.bio},Ee("bio",{required:!!ie.description&&"Bio is required."}),{error:ge.bio||(null==Be||null==(q=Be.bio)?void 0:q.message),label:"",helperText:"This bio will be unique to this Media Kit.",onChangeText:(e,a)=>{ne(e=>Object.assign({},e,{bio:a}))}}))}),!ie.description&&(0,O.jsx)("input",Object.assign({type:"hidden"},Ee("bio",{required:!1}))),(0,O.jsxs)("div",{children:[(0,O.jsx)(N.fI,{"data-section":"socials",children:(0,O.jsx)(N.$,{name:"socials",label:"Socials",checked:ie.socials,containerClassName:r.A.inputSwitch,subContainerClassName:Be.socials?"FormSwitchError":"",onClick:(e,a)=>qe(e,a)})}),ie.socials&&(0,O.jsxs)("div",{className:"sub-analytics",children:[Be.socials&&(0,O.jsx)("div",{className:"error-message mt-2",children:null==(z=Be.socials)?void 0:z.message}),null==(U=de.socialAccounts)?void 0:U.map((e,a)=>{var t;return(0,O.jsx)(N.fI,{className:"social-account-switch",children:(0,O.jsx)(N.$,{name:e.platform,label:e.platform,checked:null==(t=te.socials)?void 0:t.includes(e.platform.toLocaleLowerCase()),containerClassName:r.A.inputSwitch,onClick:(a,t)=>ze(0,t,0,e.platform.toLowerCase(),"socials"),subContainerClassName:"media-kit-analytics-switch"})})}),(0,O.jsx)("input",Object.assign({type:"hidden"},Ee("socials",{required:!!ie.socials&&"Socials is required."})))]})]}),null!=de&&null!=(W=de.feature_flags)&&W.packages?(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"packages",label:"Packages",checked:ie.packages,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a)})}):"",(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"social_accounts",label:"Analytics",checked:ie.social_accounts,subContainerClassName:Be.analytics?"FormSwitchError":"",disabled:ye,containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a)})}),Be.analytics&&(0,O.jsx)("div",{className:"error-message",children:null==(G=Be.analytics)?void 0:G.message}),(0,O.jsx)("input",Object.assign({type:"hidden"},Ee("analytics",{required:!!ie.social_accounts&&"Analytics is required."}))),ye&&(0,O.jsxs)("div",{className:"media-kit-modal-warning-box",children:["Currently, we showcase socials for creators with 1,000+ followers, but don't worry if you're just starting out. We are here to help you grow."," "]}),(0,O.jsxs)("div",{className:"go-pro-profile__info d-flex align-items-center cursor-pointer",onClick:()=>xe(!0),children:[(0,O.jsx)("div",{role:"button",className:"m-1 d-flex",children:(0,O.jsx)(g.h,{})}),(0,O.jsx)("div",{className:"info-text",children:"Who can see my analytics?"})]}),ie.social_accounts&&(0,O.jsx)("div",{className:"sub-analytics",children:null==(V=de.socialAccounts)||null==(V=V.filter(e=>e.dbFollowers>999))?void 0:V.map((e,a)=>(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:e.platform,label:e.platform,checked:te.analytics.includes(e.id),containerClassName:r.A.inputSwitch,onClick:(a,t)=>ze(0,t,0,e.id,"analytics"),subContainerClassName:"media-kit-analytics-switch"})}))}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"reviews",label:"Reviews",disabled:!(null!=le&&le.length),checked:null==ie?void 0:ie.reviews,subContainerClassName:Be.reviews?"FormSwitchError":"",containerClassName:r.A.inputSwitch,onClick:(e,a)=>qe(e,a)})}),null!=le&&le.length?"":(0,O.jsx)(N.o5,{weight:"500",color:"grey-4",label:"You have no Reviews yet"}),(0,O.jsx)(N.fI,{children:(0,O.jsx)(N.$,{name:"hide_logo",label:(0,O.jsxs)("div",{className:"hide-logo-conatiner",children:["Hide The Right Fit logo"," ",(0,O.jsx)(N.$n,{theme:"plain",type:"button",size:"small",label:"PRO",className:"pro-btn"})]}),containerClassName:r.A.inputSwitch,onClick:()=>{de.isPro?se(e=>Object.assign({},e,{hide_logo:!(null!=e&&e.hide_logo)})):(ke(!1),Ie(!0))},checked:null==ie?void 0:ie.hide_logo})}),(0,O.jsx)("input",Object.assign({type:"hidden"},Ee("reviews",{required:!(null==ie||!ie.reviews)&&"Reviews are required."}))),(null==ie?void 0:ie.reviews)&&(0,O.jsxs)("div",{className:"",children:[(0,O.jsx)(N.o5,{weight:"500",color:Be.reviews?"product-error":"grey-4",label:`Select Reviews (${null==te||null==(Z=te.reviews)?void 0:Z.length}/3)`}),(0,O.jsx)("div",{className:"reviews-outer",children:null==le?void 0:le.map(e=>(0,O.jsx)(I,{reviewData:e,setContentData:ne,contentData:te}))})]})]})]})})]}),(0,O.jsx)(o.A.Footer,{children:(0,O.jsx)("div",{className:"w-100",children:(0,O.jsxs)("div",{className:"d-flex  justify-content-between align-items-center footer-outer",children:[(0,O.jsxs)("div",{className:"",children:[!t&&(0,O.jsx)("button",{type:"button",className:"btn  text-uppercase pr-3 preview-btn bg-transparent cursor-pointer",disabled:Ke,onClick:()=>{Ne("save")},children:"Save"}),t&&(0,O.jsx)("button",{type:"button",className:"btn  text-uppercase pr-3 preview-btn bg-transparent cursor-pointer",onClick:()=>0===Object.keys(Re).length?null==a?void 0:a(!1):me(e=>Object.assign({},e,{leave:!0})),children:"Exit"})]}),(0,O.jsxs)("div",{className:"text-right d-flex",children:[(0,O.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-3 preview-btn cursor-pointer",disabled:He||Ke,onClick:()=>{window.analytics.track("clicked.preview.mediakit",{email_address:null==de?void 0:de.email,user_id:(null==de?void 0:de.user_id)||(null==de?void 0:de.id),country:null==de?void 0:de.country}),Ue(t?t.status:"draft","preview")},children:"Preview"}),(0,O.jsxs)("button",{type:"button",className:"btn btn-trf-yellow btn-rounded text-uppercase share-kit-btn",disabled:Ke,onClick:()=>{Ne(t?"edit-publish":"share")},children:[t?"Save":"Share",Ke?(0,O.jsx)("span",{children:(0,O.jsx)("i",{className:"ml-2 fa fa-spinner fa-pulse"})}):null]})]})]})})})]})}),(0,O.jsx)(C.A,{showAnalyticsInfo:fe,setShowAnalyricsInfo:xe,FirstBtnOnClick:()=>X("/talent/subscription"),SecondBtnOnClick:()=>(()=>{const e=new URLSearchParams({showSample:"true"}).toString(),a=`${window.location.href.replace("talent/media-kit",`creator/${de.slug}`)}?${e}`;window.open(a,"_blank")})(),hideSecondBtn:!(null!=t&&t.slug),isPro:!0}),$.map(e=>ue[e]&&(0,O.jsx)(M.A,{modalContent:Ze[e],modalType:e,continueBtnStyle:Ye(e),secondBtnStyle:Je(e),isContinueBtnDisabled:He&&("gallery"===e||"leave"===e),handleContinueBtn:We,handleCancelBtn:Ge,handleModalClose:Ve})),Ae&&(0,O.jsx)(A.A,{headline:"Upgrade to PRO for Media Kit Analytics ",headlineClass:"proModalHeadline",feature:"media_kit_analytics",bannerImage:w.A,description:(0,O.jsx)(N.o5,{variant:"copy",color:"grey-9",label:"Media Kit analytics helps you track views and interactions with any Media Kit you share, providing valuable insights to refine your approach."}),onClose:()=>Se(!1),modalClassName:"proModalWrapper",modalContentClass:"proModalContent"}),Oe&&(0,O.jsx)(A.A,{headline:"Make your Media Kit truly yours!",headlineClass:"proModalHeadline",feature:"hide_trf_logo",bannerImage:_,description:(0,O.jsx)(N.o5,{variant:"copy",color:"grey-9",label:"Upgrade to Pro now to remove the TRF logo and showcase your brand front and center. Present a polished, professional image that sets you apart and impresses potential clients."}),onClose:()=>{ke(!0),Ie(!1)},modalClassName:"proModalWrapper",modalContentClass:"proModalContent"}),be&&(0,O.jsx)(o.A,{show:!0,className:"media-kit-modal media-confirmation-modal media-kit-customized-modal",children:(0,O.jsxs)(o.A.Body,{className:"d-flex flex-column align-items-center",children:[(0,O.jsx)(N.o5,{label:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N.o5,{variant:"copy",weight:"500",label:"Changing your link will render your old link",className:"text-left"}),(0,O.jsx)(N.o5,{variant:"copy",weight:"700",label:` (${(null==t||null==(Y=t.link)?void 0:Y.split("//").at(-1))||""}) `,className:"text-left"}),(0,O.jsx)(N.o5,{variant:"copy",weight:"500",label:"inactive. Please ensure to update all use of your old link with your new link.",className:"text-left"})]}),className:"text-left"}),(0,O.jsx)(N.$n,{theme:"outline",size:"large",label:"Got It",className:"mt-3",onClick:()=>je(!1)})]})})]})};var F=t(54382),T=t(79207),B=t(42946);const P=({createdMediaKit:e,setCreatedMediaKit:a,closeMediaKit:t,type:l,mediaKit:o})=>
1{const r=(0,i.Zp)(),[c,d]=(0,n.useState)(!1),[m,h]=(0,n.useState)(!1),[p,g]=(0,n.useState)(!1),[v,f]=(0,n.useState)(""),[x,b]=(0,n.useState)(!1),[j,y]=(0,n.useState)(!1),[w,_]=(0,n.useState)(!1),[N,C]=(0,n.useState)();(0,n.useEffect)(()=>{l&&(async()=>{const e=await(0,u.Jb)();b(!!l&&e.data.length>0)})()},[e]);const k=e=>{"copy"===e?h(!1):"send"===e&&g(!1)};return(0,O.jsxs)("div",{children:[e&&(0,O.jsx)(E,{handleMediaKitClose:o?e=>{null==a||a(!1),"gallery"!==e&&_(!0),t&&t()}:()=>{t&&t()},setCreatedMediaKit:a,mediaKit:o,setShareLink:f,setNewMediaKit:C,showExistingBtn:!o&&x,setShowEditGallery:y,setShowShareMediaKit:d,type:l}),c&&(0,O.jsx)(F.A,{handleCopySend:e=>{d(!1),"copy"===e?h(!0):"send"===e&&g(!0)},setShowShareMediaKit:d,shareLink:v,setShareLink:f,headerText:o||x?"Share your Media Kit":"Media Kit published! Share it!",mediaKit:o||N,getMediaKitData:()=>t}),m?(0,O.jsx)(M.A,{modalContent:{header:"Link copied to clipboard",description:"You can now paste the link wherever you need it.",cancelBtn:"Go to MEDIA KIT LIST"},modalType:"copySuccess",handleCancelBtn:()=>{r("/talent/media-kit"),k("copy")},handleModalClose:()=>k("copy"),secondBtnStyle:"btn-trf-yellow"}):"",p?(0,O.jsx)(T.A,{svgIcon:(0,O.jsx)(B.h,{}),header:"Media Kit shared!",content:"Your Media Kit has been successfully sent.",submitBtnText:"Go to MEDIA KIT LIST",handleActionButton:()=>{r("/talent/media-kit"),k("send")},onClose:()=>k("send"),showCancelBtn:!1,modalType:"mainmodal"}):"",w?(0,O.jsx)(M.A,{modalContent:{header:"Media Kit updated!",description:"Your changes have been applied.",cancelBtn:"Go to MEDIA KIT LIST"},modalType:"updateSuccess",handleCancelBtn:()=>{r("/talent/media-kit"),_(!1)},handleModalClose:()=>_(!1),secondBtnStyle:"btn-trf-yellow"}):"",j&&(0,O.jsx)(s.A,{onClose:()=>{y(!1)}})]})}},10130(e,a,t){t.d(a,{h:()=>o});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=s.createElement("path",{fill:"#222",d:"M12 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4"})),i||(i=s.createElement("path",{fill:"#222",fillRule:"evenodd",d:"M13.673 20.445c1.615-2.48 3.874-6 4.293-6.945.714-1.5 1.076-2.584 1.028-3.78a7 7 0 0 0-13.989.01C4.96 10.928 5.165 12 6 13.5c.525.942 2.756 4.45 4.342 6.927a1.98 1.98 0 0 0 3.33.018m2.487-7.805-.012.024-.01.025c-.139.311-.714 1.286-1.566 2.647a275 275 0 0 1-2.559 3.992c-1.61-2.514-3.78-5.93-4.266-6.801-.668-1.2-.775-1.911-.743-2.72a5 5 0 0 1 9.992-.007c.028.695-.157 1.415-.836 2.84",clipRule:"evenodd"})))};t.p},26179(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:12,height:13,fill:"none",viewBox:"0 0 12 13"},e),n||(n=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M2.5 6.042h7m0 0L6 2.542m3.5 3.5L6 9.542"})))};t.p},91706(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=i.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M9 2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zm2 1v18h2V3zM17 9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zm2 1v11h2V10zM1 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm2 1v7h2v-7z",clipRule:"evenodd"})))};t.p},4288(e,a,t){t.d(a,{h:()=>r});var n,i,s,l=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(null,arguments)}var r=function(e){return l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{fill:"#0C0C0C",d:"M10 2a1 1 0 0 0 0 2h5.28l.771 2.316A1 1 0 0 0 17 7h3a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 1 0-2 0v8a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-2.28l-.771-2.316A1 1 0 0 0 16 2z"})),i||(i=l.createElement("path",{fill:"#0C0C0C",d:"M8 7a1 1 0 1 0 0-2H6V3a1 1 0 1 0-2 0v2H2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0V7z"})),s||(s=l.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M17 13a5 5 0 1 1-10 0 5 5 0 0 1 10 0m-2 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"})))};t.p},70266(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{stroke:"#101828",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 12 6 8l4-4"})))};t.p},88295(e,a,t){t.d(a,{h:()=>o});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=s.createElement("g",{fill:"#0C0C0C",clipPath:"url(#a)"},s.createElement("path",{d:"M10 9.5c0-.665.717-1.5 2-1.5.722 0 1.315.29 1.657.67a1 1 0 0 0 1.486-1.34C14.598 6.726 13.845 6.3 13 6.11V5a1 1 0 1 0-2 0v1.113c-1.632.374-3 1.64-3 3.387 0 2.096 1.97 3.5 4 3.5 1.283 0 2 .835 2 1.5s-.717 1.5-2 1.5c-.722 0-1.315-.29-1.658-.67a1 1 0 1 0-1.485 1.34c.545.604 1.298 1.03 2.143 1.22V19a1 1 0 1 0 2 0v-1.113c1.632-.374 3-1.64 3-3.387 0-2.096-1.97-3.5-4-3.5-1.283 0-2-.835-2-1.5"}),s.createElement("path",{fillRule:"evenodd",d:"M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12m-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10",clipRule:"evenodd"}))),i||(i=s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))))};t.p},82801(e,a,t){t.d(a,{h:()=>o});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none",viewBox:"0 0 64 64"},e),n||(n=s.createElement("g",{clipPath:"url(#a)"},s.createElement("rect",{width:64,height:64,fill:"#F5F5F5",rx:32}),s.createElement("path",{fill:"#0A144E",d:"M40 36.003a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667M41.334 40.003a1.333 1.333 0 1 1-2.667 0 1.333 1.333 0 0 1 2.667 0M24 30.67a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.666M25.334 34.67a1.333 1.333 0 1 1-2.667 0 1.333 1.333 0 0 1 2.667 0M24 25.336a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667M30.667 29.336a1.333 1.333 0 1 1-2.666 0 1.333 1.333 0 0 1 2.666 0M29.334 36.003a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667"}),s.createElement("path",{fill:"#0A144E",fillRule:"evenodd",d:"M17.334 21.336a4 4 0 0 1 4-4h10.667a4 4 0 0 1 4 4v6.667h6.666a4 4 0 0 1 4 4v13.333c0 .736-.597 1.333-1.333 1.333H18.667a1.333 1.333 0 0 1-1.333-1.333zm18.667 22.667V30.669h6.666c.737 0 1.334.597 1.334 1.334v12zm-14.667-24c-.736 0-1.333.597-1.333 1.333v22.667h13.333V21.336c0-.736-.597-1.333-1.333-1.333z",clipRule:"evenodd"}))),i||(i=s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("rect",{width:64,height:64,fill:"#fff",rx:32})))))};t.p},25588(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{fill:"#0C0C0C",d:"M8.372 14.553a.67.67 0 0 1-.744 0l-.002-.001-.005-.003-.016-.011a14 14 0 0 1-.28-.196 27.626 27.626 0 0 1-3.124-2.61c-.854-.833-1.726-1.812-2.39-2.859C1.154 7.833.668 6.671.668 5.486c0-2.323 1.431-3.839 3.218-4.11 1.463-.221 3.038.407 4.115 1.88 1.077-1.473 2.652-2.101 4.115-1.88 1.787.271 3.218 1.787 3.218 4.11 0 1.185-.486 2.347-1.145 3.387-.663 1.047-1.535 2.026-2.39 2.859a27.6 27.6 0 0 1-3.344 2.765q-.037.027-.06.04l-.015.012-.005.003z"})))};t.p},32762(e,a,t){t.d(a,{A:()=>n});t(96540);const n=t.p+"static/media/media-kit-analytics-pro-banner.7290575b0806ea97aff4ec9956b17cf1.svg"},17816(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=i.createElement("path",{fill:"#192FB1",fillRule:"evenodd",d:"M1.083 2.602A1 1 0 0 1 2 2h20a1 1 0 0 1 .875 1.484l-10.5 19a1 1 0 0 1-1.857-.298L8.47 11.388 1.27 3.683a1 1 0 0 1-.186-1.081m9.426 8.799 1.457 7.688 7.284-13.18zM18.53 4H4.304l5.263 5.63z",clipRule:"evenodd"})))};t.p},85428(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12"},e),n||(n=i.createElement("path",{fill:"#0C0C0C",d:"M5.548 1.322c.298-.924 1.606-.924 1.904 0l.829 2.57h2.69c.967 0 1.37 1.236.59 1.807L9.38 7.297l.832 2.581c.297.923-.76 1.687-1.543 1.114L6.5 9.405l-2.168 1.587c-.782.573
1-1.84-.19-1.543-1.114l.833-2.58-2.183-1.599c-.78-.57-.376-1.806.59-1.806h2.69z"})))};t.p},56750(e,a,t){t.d(a,{h:()=>l});var n,i=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(null,arguments)}var l=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",viewBox:"0 0 12 12"},e),n||(n=i.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M9 3.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6 7c-1.468 0-2.526.304-3.285.76A3.53 3.53 0 0 0 1.29 9.33c-.2.436-.109.88.156 1.197.252.302.645.473 1.055.473h7c.41 0 .803-.17 1.055-.473.265-.317.355-.761.156-1.198a3.53 3.53 0 0 0-1.426-1.568C8.525 7.304 7.468 7 6 7M2.199 9.744c.164-.36.465-.785 1.032-1.126C3.8 8.275 4.67 8 6 8s2.2.275 2.77.618c.566.34.867.767 1.031 1.126.02.043.019.068.017.081a.13.13 0 0 1-.03.061A.38.38 0 0 1 9.5 10h-7a.38.38 0 0 1-.288-.114.13.13 0 0 1-.03-.06.14.14 0 0 1 .017-.082",clipRule:"evenodd"})))};t.p},43139(e,a,t){t.d(a,{h:()=>o});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),n||(n=s.createElement("path",{fill:"#192FB1",d:"m15.883 0 1.962 3.033 3.608.18.182 3.608 3.035 1.96-1.646 3.216 1.648 3.214-3.033 1.962-.18 3.608-3.608.182-1.96 3.035-3.216-1.646L9.46 24 7.5 20.967l-3.608-.18-.183-3.608-3.034-1.96 1.646-3.216L.672 8.789l3.033-1.962.18-3.608 3.608-.182L9.453.002l3.216 1.646z"})),i||(i=s.createElement("path",{fill:"#fff",d:"M11.181 16.146 7.47 12.434l1.212-1.211L11.2 13.74l5.467-5.3 1.193 1.231z"})))};t.p},3901(e,a,t){t.d(a,{h:()=>o});var n,i,s=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}var o=function(e){return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 32 32"},e),n||(n=s.createElement("g",{fill:"#0C0C0C",clipPath:"url(#a)"},s.createElement("path",{d:"M18 22a2 2 0 1 1-4 0 2 2 0 0 1 4 0M15.42 8c-.77 0-1.38.649-1.332 1.416l.54 8.626a.667.667 0 0 0 .665.625h1.414a.667.667 0 0 0 .665-.625l.54-8.626A1.333 1.333 0 0 0 16.58 8z"}),s.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16M16 2.667C8.636 2.667 2.667 8.637 2.667 16S8.637 29.333 16 29.333 29.333 23.363 29.333 16 23.363 2.667 16 2.667",clipRule:"evenodd"}))),i||(i=s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))))};t.p},69479(e,a,t){t.d(a,{A:()=>r});var n=t(10123),i=t(67044),s=t(70551);function l(e){(0,s.A)(1,arguments);var a=(0,n.A)(e);return a.setHours(0,0,0,0),a}function o(e,a){var t=e.getFullYear()-a.getFullYear()||e.getMonth()-a.getMonth()||e.getDate()-a.getDate()||e.getHours()-a.getHours()||e.getMinutes()-a.getMinutes()||e.getSeconds()-a.getSeconds()||e.getMilliseconds()-a.getMilliseconds();return t<0?-1:t>0?1:t}function r(e,a){(0,s.A)(2,arguments);var t=(0,n.A)(e),r=(0,n.A)(a),c=o(t,r),d=Math.abs(function(e,a){(0,s.A)(2,arguments);var t=l(e),n=l(a),o=t.getTime()-(0,i.A)(t),r=n.getTime()-(0,i.A)(n);return Math.round((o-r)/864e5)}(t,r));t.setDate(t.getDate()-c*d);var u=c*(d-Number(o(t,r)===-c));return 0===u?0:u}},43253(e,a,t){t.d(a,{A:()=>o});var n=t(57499),i=t(81384),s=t(70551),l=t(51831);function o(e,a,t){(0,s.A)(2,arguments);var o=(0,i.A)(e,a)/n.s0;return(0,l.u)(null==t?void 0:t.roundingMethod)(o)}},53303(e,a,t){t.d(a,{A:()=>o});var n=t(57499),i=t(81384),s=t(70551),l=t(51831);function o(e,a,t){(0,s.A)(2,arguments);var o=(0,i.A)(e,a)/n.Cg;return(0,l.u)(null==t?void 0:t.roundingMethod)(o)}},95375(e,a,t){t.d(a,{A:()=>l});var n=t(69479),i=t(70551),s=t(51831);function l(e,a,t){(0,i.A)(2,arguments);var l=(0,n.A)(e,a)/7;return(0,s.u)(null==t?void 0:t.roundingMethod)(l)}},2702(e,a,t){t.d(a,{A:()=>s});var n=t(10123),i=t(70551);function s(e,a){(0,i.A)(2,arguments);var t=(0,n.A)(e),s=(0,n.A)(a);return t.getFullYear()===s.getFullYear()&&t.getMonth()===s.getMonth()}},24125(e,a,t){t.d(a,{A:()=>s});var n=t(10123),i=t(70551);function s(e,a){(0,i.A)(2,arguments);var t=(0,n.A)(e),s=(0,n.A)(a);return t.getFullYear()===s.getFullYear()}},8118(e,a,t){t.d(a,{A:()=>n});const n={container:"__msH67G",content:"__VKYXPn",contentHeader:"__JpG4hs",contentBody:"__KZ9gDM",talentApplicationAction:"__Uok6KB",buttonView:"__u7FmzX",separator:"__RbVY7M",deliverablesList:"__iwooCc",deliverablesListItem:"__BsMnvU",deliverablesListItemHeader:"__BKckwV",deliverablesListItemBody:"__v9tR5e",deliverablesListItemInputGroup:"__vS8JCC",inputQuantity:"__x6XLe7",infoList:"__TuKu9U",infoListItem:"__nQq3ZR",infoListIcon:"__UGLv9y",matchieApplication:"__f160wh"}}}]);

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.