PageSourceSearch

https://static.mention-me.com/dist/static/js/async/14119.v2.34a0363a.js

js mention-me.com collected 2026-09-24 17:39:20 UTC 97,171 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="74a8e6b6-d354-4527-a229-0bd300c2b96f",e._sentryDebugIdIdentifier="sentry-dbid-74a8e6b6-d354-4527-a229-0bd300c2b96f")}catch(e){}}();"use strict";(globalThis.webpackChunk_mention_me_frontend=globalThis.webpackChunk_mention_me_frontend||[]).push([["14119"],{948325(e,i,t){t.d(i,{d:()=>a});var n=t(595774);let a=(0,t(48623).default)(n.lV.Title).withConfig({displayName:"CollaborationWizard.styled__CollaborationWizardFormTitle"})(["a > span:first-child{display:inline-flex;align-items:center;gap:",";}svg{width:20px;height:20px;margin-top:-2px;}"],(0,n.YK)(1))},109576(e,i,t){t.a(e,async function(e,n){try{t.d(i,{R:()=>T});var a=t(562540),l=t(63696),r=t(595774),o=t(843506),s=t(48623),d=t(989471),c=t(444903),u=t(281033),m=t(621927),p=t(508280),h=t(667739),f=t(439974),x=t(179930),g=t(372729),y=t(710551),b=e([x,p,f,h,g,y,m,u,d]);[x,p,f,h,g,y,m,u,d]=b.then?(await b)():b;let v=[x.$,p.i,f.r,h.s,g.$,y.P],j=(0,s.default)(r.so).withConfig({displayName:"CollaborationWizard__WizardFooterWrap"})(["padding:",";margin:",";position:sticky;bottom:0;justify-content:flex-end;background:",";z-index:9;display:flex;gap:",";"],(0,r.YK)(3),(0,r.YK)([0,-2]),(0,r.dU)("Background"),(0,r.YK)(1)),w=s.default.fieldset.withConfig({displayName:"CollaborationWizard__ReadOnlyFieldset"})(["border:none;padding:0;margin:0;"]),T=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{isReadOnly:i,isLive:t}=(0,m.c)(),{actionDefinitionId:n}=(0,u.Ct)();return(0,a.jsxs)(d.sQ,{steps:v,layout:"column",canNavigateForward:!0,isAllStepsNavigable:!!n,children:[(0,a.jsx)(r.az,{marginBottom:2,children:(0,a.jsx)(d.Bl,{feedbackButtonId:"programme-management-feedback"})}),(0,a.jsx)(d.sQ.StepNavigation,{}),(0,a.jsxs)(r.az,{marginTop:5,children:[i&&(0,a.jsx)(r.az,{marginBottom:1,children:(0,a.jsx)(r.kY,{size:"sm",variant:"info",isFullWidth:!0,children:(0,a.jsx)(r.kY.Body,{children:e("read-only.notice","This collaboration is currently live and cannot be edited. You can view the configuration but changes are not allowed.")})})}),!i&&t&&(0,a.jsx)(r.az,{marginBottom:1,children:(0,a.jsx)(r.kY,{size:"sm",variant:"warning",isFullWidth:!0,children:(0,a.jsx)(r.kY.Body,{children:e("live-editing.notice","This collaboration is currently live. Any changes you save will take effect immediately.")})})}),(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(d.K4,{heading:e("loading.heading","Loading step...")}),children:(0,a.jsxs)(c.N,{children:[(0,a.jsx)(w,{disabled:i,children:(0,a.jsx)(r.az,{marginBottom:1,children:(0,a.jsx)(d.sQ.CurrentStep,{})})}),(0,a.jsx)(j,{children:(0,a.jsx)(d.sQ.Footer,{})})]})})]})]})};n()}catch(e){n(e)}})},737252(e,i,t){t.d(i,{o:()=>o});var n=t(562540),a=t(595774),l=t(843506),r=t(653514);let o=()=>{let{t:e}=(0,l.Bd)("influencers"),{previousStep:i}=(0,r.CV)();return(0,n.jsx)(a.$n,{variant:"secondary",onClick:()=>null==i?void 0:i(),children:e("collaborations.wizard.back","Back")})}},357891(e,i,t){t.d(i,{y:()=>n});let n={EUR:"\u20AC",GBP:"\xa3",USD:"$"}},621927(e,i,t){t.a(e,async function(e,n){try{t.d(i,{W:()=>m,c:()=>u});
1var a=t(562540),l=t(63696),r=t(595774),o=t(751712),s=e([o]);o=(s.then?(await s)():s)[0];let d={enrolledInfluencerCount:0,influencersWithCommissionOverrideCount:0,influencersWithCouponCount:0},[c,u]=(0,r.q6)({name:"CollaborationWizardContext"}),m=e=>{let{collaborationType:i,initialState:t,isReadOnly:n=!1,isLive:r=!1,enrollmentCounts:s,children:u}=e,m=(e=>{let{collaborationType:i,initialState:t,isReadOnly:n=!1,isLive:a=!1,enrollmentCounts:r=d}=e,[s,c]=(0,l.useState)(()=>t??{type:i,details:{name:"",description:"",hasProductGifting:!1},contentDetails:[],actionDetails:{},briefingDetails:{url:""},agreementDetails:{type:"STANDARD_TERMS"},hasConfirmedAgreementTerms:!1,contentRestriction:o.S.NoRestriction}),u=(0,l.useCallback)((e,i)=>{n||c(t=>{let n;return{...t,[e]:(n=t[e],Array.isArray(t[e])||"object"!=typeof n||Array.isArray(n)?i:{...n,...i})}})},[c,n]);return(0,l.useMemo)(()=>({formState:s,updateSection:u,isReadOnly:n,isLive:a,enrollmentCounts:r}),[s,u,n,a,r])})({collaborationType:i,initialState:t,isReadOnly:n,isLive:r,enrollmentCounts:s});return(0,a.jsx)(c,{value:m,children:u})};n()}catch(e){n(e)}})},34833(e,i,t){t.d(i,{a:()=>r});var n=t(604658);let a={},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createActionDefinition"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InfluencerActionDefinitionCreateInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"merchantId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"programmeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"actionDefinition_create"},arguments:[{kind:"Argument",name:{kind:"Name",value:"merchantId"},value:{kind:"Variable",name:{kind:"Name",value:"merchantId"}}},{kind:"Argument",name:{kind:"Name",value:"programmeId"},value:{kind:"Variable",name:{kind:"Name",value:"programmeId"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"startDate"}},{kind:"Field",name:{kind:"Name",value:"endDate"}}]}}]}}]};function r(e){let i={...a,...e};return n.n(l,i)}},945789(e,i,t){t.d(i,{u:()=>r});var n=t(604658);let a={},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"editActionDefinition"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InfluencerActionDefinitionEditInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionDefinitionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"actionDefinition_edit"},arguments:[{kind:"Argument",name:{kind:"Name",value:"actionDefinitionId"},value:{kind:"Variable",name:{kind:"Name",value:"actionDefinitionId"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"startDate"}},{kind:"Field",name:{kind:"Name",value:"endDate"}}]}}]}}]};function r(e){let i={...a,...e};return n.n(l,i)}},668600(e,i,t){t.d(i,{r:()=>n});let n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"fetchProgrammeForCollaborationWizard"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"merchantId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"programmeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"influencerMerchant"},arguments:[{kind:"Argument",name:{kind:"Name",value:"merchantId"},value:{kind:"Variable",name:{kind:"Name",value:"merchantId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"partnerCode"}},{kind:"Field",name:{kind:"Name",value:"configurationSettings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"programme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"programmeId"},value:{kind:"Variable",name:{kind:"Name",value:"programmeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"localeConfigurations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"locale"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"shortName"}},{kind:"Field",name:{kind:"Name",value:"localeCode"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"merchant"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"merchantId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"shopifyCustomerSegments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]}},391734(e,i,t){t.a(e,async function(e,n){try{t.d(i,{_:()=>d});var a=t(63696),l=t(595774),r=t(357891),o=t(621927),s=e([o]);o=(s.then?(await s)():s)[0];let d=()=>{let{formState:{actionDetails:{influencerCommission:e}}}=(0,o.c)(),i=(0,a.useMemo)(()=>(null==e?void 0:e.value)?"FLAT_FEE"===e.type?(0,l.vv)(e.value,{currencySymbol:r.y[e.currency],mode:"compact",fixedFractionDigits:2*!Number.isInteger(e.value)}):(0,l.Ee)(e.value/100):null,[e]);return{value:null==e?void 0:e.value,formattedValue:i,currency:null==e?void 0:e.currency,type:null==e?void 0:e.type}};n()}catch(e){n(e)}})},196864(e,i,t){t.a(e,async function(e,n){try{t.d(i,{q:()=>s});var a=t(63696),l=t(595774),r=t(621927),o=e([r]);r=(o.then?(await o)():o)[0];let s=()=>{let{formState:{actionDetails:{followerReward:e}}}=(0,r.c)(),i=(0,a.useMemo)(()=>(null==e?void 0:e.value)?"PERCENTAGE"===e.type?(0,l.Ee)(e.value/100):(0,l.vv)(e.value,{currencySymbol:"\xa3",mode:"compact",fixedFractionDigits:2*!Number.isInteger(e.value)}):null,[e]);return{value:null==e?void 0:e.value,formattedValue:i,type:null==e?void 0:e.type}};n()}catch(e){n(e)}})},651235(e,i,t){t.a(e,async function(e,n){try{t.d(i,{n:()=>d});var a=t(843506),l=t(50148),r=t(281033),o=t(34833),s=e([r]);r=(s.then?(await s)():s)[0];let d=()=>{let[e,i]=(0,o.a)(),{t}=(0,a.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.actions.create"}),{merchantId:n,programmeId:s}=(0,r.Ct)(),{addSuccessNotification:d}=(0,l.dq)();return{createActionDefinition:async(i,a)=>{await e({...a??{},variables:{merchantId:n,programmeId:s,input:i},onCompleted:()=>{d(t("toast.success.title","Success"),t("toast.success.description","Your collaboration {{name}} has been created as a draft.",{name:i.details.name}))}})},...i}};n()}catch(e){n(e)}})},114263(e,i,t){t.a(e,async function(e,n){try{t.d(i,{Z:()=>d});var a=t(843506),l=t(50148),r=t(281033),o=t(945789),s=e([r]);r=(s.then?(await s)():s)[0];let d=()=>{let[e,i]=(0,o.u)(),{t}=(0,a.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.actions.edit"}),{actionDefinitionId:n}=(0,r.Ct)(),{addSuccessNotification:s}=(0,l.dq)();return{editActionDefinition:async(i,a)=>{await e({...a??{},variables:{actionDefinitionId:n,input:i},onCompleted:()=>{s(t("toast.success.title","Success"),t("toast.success.description","Your changes have been saved successfully."))}})},...i}};n()}catch(e){n(e)}})},279311(e,i,t){t.a(e,async function(e,n){try{t.d(i,{j:()=>s});var a=t(320136),l=t(281033),r=t(668600),o=e([l]);l=(o.then?(await o)():o)[0];let s=()=>{let{merchantId:e,programmeId:i}=(0,l.Ct)();if(!i)throw Error("Missing programmeId");return(0,a.UX)(r.r,{variables:{merchantId:e,programmeId:i}})};n()}catch(e){n(e)}})},513914(e,i,t){t.a(e,async function(e,n){try{t.d(i,{R:()=>a.R});var a=t(109576),l=e([a]);a=(l.then?(await l)():l)[0],n()}catch(e){n(e)}})},529815(e,i,t){t.a(e,async function(e,n){try{t.d(i,{i:()=>v});
1var a=t(562540),l=t(63696),r=t(595774),o=t(843506),s=t(205599),d=t(653514),c=t(737252),u=t(621927),m=t(279311),p=t(990548),h=t(657483),f=t(37898),x=t(612834),g=t(545696),y=t(751712),b=e([m,g,x,p,f,h,u,y]);[m,g,x,p,f,h,u,y]=b.then?(await b)():b;let v=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions"}),{commissionForm:i,contentForm:t,rewardForm:n,isShopifyProvider:l,shopifyCustomerSegments:s}=d.Ay.useWizardStepState(),{formState:{type:c}}=(0,u.c)();return(0,a.jsxs)(r.so,{flexDirection:"column",gap:3,children:["GIVE_DISCOUNT"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.H3,{children:e("drive-sales.title","How do influencers drive sales?")}),(0,a.jsx)(x.u,{form:n,isShopifyProvider:l,shopifyCustomerSegments:s}),(0,a.jsx)(p.Y,{form:i}),(0,a.jsx)(r.H3,{children:e("content.title","How should influencers post content?")}),(0,a.jsx)(f.O,{form:t})]}),"CONTENT_POSTING"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.H3,{children:e("compensation.title","How are influencers compensated?")}),(0,a.jsx)(h.b,{form:i}),(0,a.jsx)(r.H3,{children:e("content.title","How should influencers post content?")}),(0,a.jsx)(f.O,{form:t})]}),"CONTENT_CREATION"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.H3,{children:e("compensation.title","How are influencers compensated?")}),(0,a.jsx)(h.b,{form:i})]})]})};v.useStepContext=()=>{var e,i,t,n,a,r,o,d,c,p,h;let{formState:{actionDetails:f,contentRestriction:b,type:v}}=(0,u.c)(),{data:j}=(0,m.j)(),w=j.influencerMerchant.configurationSettings.some(e=>"DISCOUNT_PROVIDER"===e.key&&"SHOPIFY"===e.value.toUpperCase()),T=(null==(e=j.merchant)?void 0:e.shopifyCustomerSegments)??[],k=null==(i=f.followerReward)?void 0:i.customerEligibility,S=(0,x.Y)({rewardType:null==(t=f.followerReward)?void 0:t.type,rewardValue:null==(n=f.followerReward)?void 0:n.value,hasMinimumSpend:null==(a=f.followerReward)?void 0:a.hasMinimumSpend,rewardMinimumSpend:(null==(r=f.followerReward)?void 0:r.minimumSpendValue)??void 0,customerEligibility:k===s.LaL.All||k===s.LaL.SpecificSegments?k:void 0,customerSegmentIds:(null==(o=f.followerReward)?void 0:o.customerSegmentIds)??void 0}),C=(0,g.w)({type:null===f.influencerCommission?"NONE":null==(d=f.influencerCommission)?void 0:d.type,value:null==(c=f.influencerCommission)?void 0:c.value,needsApproval:null==(p=f.influencerCommission)?void 0:p.needsApproval,currency:(null==(h=f.influencerCommission)?void 0:h.currency)??"GBP"}),N=(0,y.w)({needsContentApproval:"CONTENT_CREATION"===v||!!f.requiresContentApproval,restriction:b,...f.contentRequirements});return(0,l.useMemo)(()=>({rewardForm:S,commissionForm:C,contentForm:N,isShopifyProvider:w,shopifyCustomerSegments:T}),[S,C,N,w,T])},v.Name=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"});return(0,a.jsx)(a.Fragment,{children:e("actions","Actions")})},v.NextButton=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{nextStep:i}=(0,d.CV)(),{commissionForm:t,contentForm:n,rewardForm:l}=d.Ay.useWizardStepState(),{updateSection:s}=(0,u.c)(),c=async()=>{let e=!0;function a(){e=!1}await l.formApi.handleSubmit(e=>{let{rewardType:i,hasMinimumSpend:t,rewardValue:n,rewardMinimumSpend:a,customerEligibility:l,customerSegmentIds:r}=e;i&&n&&s("actionDetails",{followerReward:{type:i,value:n,hasMinimumSpend:t??!1,minimumSpendValue:a,customerEligibility:l,customerSegmentIds:r}})},a)(),await t.formApi.handleSubmit(e=>{let{type:i,value:t,currency:n,needsApproval:a}=e;i&&s("actionDetails",{influencerCommission:"NONE"!==i&&t?{type:i,value:t,currency:n,needsApproval:!!a}:null})},a)(),await n.formApi.handleSubmit(e=>{let{restriction:i,needsContentApproval:t,platforms:n,postTypes:a,totalPosts:l,totalInstagramPosts:r,totalTikTokPosts:o,totalFeedPosts:d,totalReelPosts:c,totalStoryPosts:u}=e;switch(s("contentRestriction",i),s("actionDetails",{requiresContentApproval:t,contentRequirements:{}}),i){case y.S.NoRestriction:break;case y.S.TotalNumberOfPosts:s("actionDetails",{requiresContentApproval:t,contentRequirements:{totalPosts:l}});break;case y.S.TotalPostsPerPlatform:s("actionDetails",{requiresContentApproval:t,contentRequirements:{postTypes:a,totalPosts:(r??0)+(o??0),totalInstagramPosts:r,totalTikTokPosts:o}});break;
1case y.S.TotalPostsPerType:s("actionDetails",{requiresContentApproval:t,contentRequirements:{platforms:n,totalPosts:(d??0)+(u??0)+(c??0),totalFeedPosts:d,totalStoryPosts:u,totalReelPosts:c}})}},a)(),e&&(null==i||i())},m=t.formApi.formState.isValid,p=n.formApi.formState.isValid,h=l.formApi.formState.isValid;return(0,a.jsx)(r.$n,{onClick:c,disabled:!m||!p||!h,children:e("next","Next")})},v.ExtraButton=c.o,n()}catch(e){n(e)}})},990548(e,i,t){t.a(e,async function(e,n){try{t.d(i,{Y:()=>p});var a=t(562540),l=t(63696),r=t(561809),o=t(595774),s=t(843506),d=t(948325),c=t(357891),u=t(234821),m=e([u]);u=(m.then?(await m)():m)[0];let p=e=>{let{form:{FormProvider:i,Fields:t,formApi:{watch:n}}}=e,{t:m}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.influencer-commission"}),{type:p,currency:h,value:f}=n(),x=(0,l.useMemo)(()=>"FLAT_FEE"===p?(0,o.vv)(f??0,{currencySymbol:c.y[h]}):"PERCENTAGE"===p&&f?(0,o.Ee)(f/100,{maximumFractionDigits:0}):null,[p,h,f]),g=(0,u.Qn)(h);return(0,a.jsx)(i,{children:(0,a.jsx)(o.Zp,{children:(0,a.jsxs)(o.VJ,{children:[(0,a.jsxs)(d.d,{children:[(0,a.jsx)(r.A,{width:16,height:16}),m("title","Influencer commission")]}),(0,a.jsx)(o.lV.Description,{children:m("description","Configure how the influencer will be compensated when their followers make a purchase using their code")}),(0,a.jsx)(t.RadioGroup,{orientation:"row",fieldPath:"type",label:m("type-label","Commission Type"),options:[{value:"PERCENTAGE",label:m("options.percentage","Percentage of sale")},{value:"FLAT_FEE",label:m("options.flat","Fixed fee per sale")},{value:"NONE",label:m("options.none","No commission")}]}),"FLAT_FEE"===p&&(0,a.jsx)(t.Select,{fieldPath:"currency",label:m("currency.label","Currency to be paid in"),placeholder:m("currency.placeholder","Select currency"),options:[{value:"EUR",label:`${c.y.EUR} EUR`},{value:"GBP",label:`${c.y.GBP} GBP`},{value:"USD",label:`${c.y.USD} USD`}],buttonProps:{colourTheme:"light"}}),"PERCENTAGE"===p&&(0,a.jsx)(t.Text,{type:"number",fieldPath:"value",externalSuffix:"%",maxWidth:"150px",label:m("percentage.label","Percentage commission"),placeholder:m("percentage.placeholder","e.g. 10"),min:1,max:100,step:1}),"FLAT_FEE"===p&&(0,a.jsx)(t.Text,{type:"number",fieldPath:"value",externalPrefix:g,maxWidth:"150px",label:m("flat.label","Fixed fee commission"),placeholder:m("flat.placeholder","e.g. 5.00"),min:.01,step:.5}),!p&&(0,a.jsx)(t.Switch,{fieldPath:"needsApproval",label:m("reward-approval.label","Requires approval?"),description:m("reward-approval.description","When enabled, commission requires your approval before being given to the influencer."),activeText:m("reward-approval.active-text","Yes"),inactiveText:m("reward-approval.inactive-text","No")}),p&&x&&(0,a.jsx)(o.Zp,{variant:"slate",children:(0,a.jsxs)(s.x6,{t:m,i18nKey:"example",parent:o.S,context:"NONE"===p?void 0:"VALUE",children:[(0,a.jsx)("strong",{children:"Example:"})," Joe's follower places an order for ",{currencySymbol:g},"100, Joe gets ",{value:x}," commission."]})})]})})})};n()}catch(e){n(e)}})},657483(e,i,t){t.a(e,async function(e,n){try{t.d(i,{b:()=>h});
1var a=t(562540),l=t(63696),r=t(561809),o=t(595774),s=t(843506),d=t(948325),c=t(621927),u=t(234821),m=e([c,u]);[c,u]=m.then?(await m)():m;let p={EUR:"\u20AC",GBP:"\xa3",USD:"$"},h=e=>{let{form:{FormProvider:i,Fields:t,formApi:{watch:n}}}=e,{t:m}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.influencer-compensation"}),{type:h,currency:f,value:x}=n(),g=(0,l.useMemo)(()=>"FLAT_FEE"===h?(0,o.vv)(x??0,{currencySymbol:p[f]}):"PERCENTAGE"===h&&x?(0,o.Ee)(x/100,{maximumFractionDigits:0}):null,[h,f,x]),{formState:{type:y}}=(0,c.c)(),b=(0,u.Qn)(f);return(0,a.jsx)(i,{children:(0,a.jsx)(o.Zp,{children:(0,a.jsxs)(o.VJ,{children:[(0,a.jsxs)(d.d,{children:[(0,a.jsx)(r.A,{width:16,height:16}),m("title","Influencer compensation")]}),(0,a.jsx)(o.lV.Description,{children:m("description",{context:y})}),(0,a.jsx)(t.RadioGroup,{orientation:"row",fieldPath:"type",label:m("type-label","Compensation Type"),options:[{value:"FLAT_FEE",label:m("options.flat","Fixed fee")},{value:"NONE",label:m("options.none","No compensation")}]}),"FLAT_FEE"===h&&(0,a.jsx)(t.Select,{fieldPath:"currency",label:m("currency.label","Currency to be paid in"),placeholder:m("currency.placeholder","Select currency"),options:[{value:"EUR",label:"\u20AC EUR"},{value:"GBP",label:"\xa3 GBP"},{value:"USD",label:"$ USD"}],buttonProps:{colourTheme:"light"}}),"FLAT_FEE"===h&&(0,a.jsx)(t.Text,{type:"number",fieldPath:"value",externalPrefix:b,maxWidth:"150px",label:m("flat.label","Fixed fee compensation"),placeholder:m("flat.placeholder","e.g. 5.00"),min:.01,step:.5}),!h&&(0,a.jsx)(t.Switch,{fieldPath:"needsApproval",label:m("reward-approval.label","Requires approval?"),description:m("reward-approval.description","When enabled, compensation requires your approval before being given to the influencer."),activeText:m("reward-approval.active-text","Yes"),inactiveText:m("reward-approval.inactive-text","No")}),h&&g&&(0,a.jsx)(o.Zp,{variant:"slate",children:(0,a.jsxs)(s.x6,{t:m,i18nKey:"example",parent:o.S,context:"NONE"===h?void 0:"VALUE",children:[(0,a.jsx)("strong",{children:"Example:"})," Joe posts content, Joe gets"," ",{value:g}," compensation."]})})]})})})};n()}catch(e){n(e)}})},37898(e,i,t){t.a(e,async function(e,n){try{t.d(i,{O:()=>h});
1var a=t(562540),l=t(63696),r=t(379403),o=t(595774),s=t(843506),d=t(948325),c=t(621927),u=t(205599),m=t(751712),p=e([c,m]);[c,m]=p.then?(await p)():p;let h=e=>{let{form:i}=e,{t}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.content"}),{formState:{type:n}}=(0,c.c)(),{FormProvider:p,Fields:h,formApi:{watch:f}}=i,{restriction:x,needsContentApproval:g}=f(),y=(0,l.useMemo)(()=>Object.values(m.S).map(e=>({label:t(`values.restriction.${e}`,e),value:e})),[t]),b=(0,l.useMemo)(()=>[u.kdx.Instagram,u.kdx.Tiktok].map(e=>({label:t(`values.platform.${e}`,e),value:e})),[t]),v=(0,l.useMemo)(()=>[u.PZQ.Feed,u.PZQ.StoryPost,u.PZQ.Reels].map(e=>({label:t(`values.post-type.${e}`,e),value:e})),[t]);return(0,a.jsx)(p,{children:(0,a.jsx)(o.Zp,{children:(0,a.jsxs)(o.VJ,{children:[(0,a.jsxs)(d.d,{children:[(0,a.jsx)(r.A,{width:16,height:16}),t("title","Influencer content")]}),(0,a.jsx)(o.lV.Description,{children:t("description","Configure what type of content the influencers needs to post social media")}),(0,a.jsx)(h.Switch,{fieldPath:"needsContentApproval",label:t("labels.approval","Do influencers require approval prior to posting content?"),description:t("descriptions.approval","When enabled, influencers must submit their content for approval before posting."),activeText:t("values.approval.active","Yes"),inactiveText:t("values.approval.inactive","No")}),g&&(0,a.jsx)(o.Zp,{variant:"slate",children:(0,a.jsxs)(s.x6,{t:t,i18nKey:"approval.warning",parent:o.S,children:[(0,a.jsx)("strong",{children:"Note:"})," Enabling content approval can impact performance as it puts an additional hurdle in front of influencers. You will also need to manually approve influencer content before they can post. Only enable this if absolutely necessary."]})}),"CONTENT_POSTING"===n&&(0,a.jsxs)(o.LB,{children:[(0,a.jsx)(o.LB.Legend,{children:t("labels.restriction","Is there a requirement for the content the influencer should post?")}),(0,a.jsx)(h.SegmentedControl,{fieldPath:"restriction",options:y}),x===m.S.TotalNumberOfPosts&&(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalPosts",label:t("labels.number-of-posts","How many posts does the influencer need to post to get compensation?"),maxWidth:"50px",inputSize:"small"}),x===m.S.TotalPostsPerPlatform&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalInstagramPosts",label:t("labels.number-of-posts-on-instagrm","How many posts does the influencer need to post on Instagram?"),maxWidth:"50px",inputSize:"small"}),(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalTikTokPosts",label:t("labels.number-of-posts-on-tiktok","How many posts does the influencer need to post on TikTok?"),maxWidth:"50px",inputSize:"small"}),(0,a.jsx)(h.CheckboxGroup,{fieldPath:"postTypes",label:t("labels.eligible-post-types","Which post types are eligible?"),options:v,columnWidth:"200px"})]}),x===m.S.TotalPostsPerType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalFeedPosts",label:t("labels.number-of-feed-posts","How many posts does the influencer need to post on their Instagram feed or TikTok?"),maxWidth:"50px",inputSize:"small"}),(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalStoryPosts",label:t("labels.number-of-stories","How many stories does the influencer need to post on Instagram?"),maxWidth:"50px",inputSize:"small"}),(0,a.jsx)(h.Text,{type:"number",fieldPath:"totalReelPosts",label:t("labels.number-of-reels","How many reels does the influencer need to post on Instagram?"),maxWidth:"50px",inputSize:"small"}),(0,a.jsx)(h.CheckboxGroup,{fieldPath:"platforms",label:t("labels.eligible-platforms","Which platforms are eligible?"),options:b,columnWidth:"150px"})]})]})]})})})};n()}catch(e){n(e)}})},88771(e,i,t){t.d(i,{CS:()=>l,N8:()=>o,SI:()=>r,pY:()=>d,p_:()=>s});var n=t(595774),a=t(48623);let l=a.default.div.withConfig({displayName:"CollaborationRewardSetup.styled__CouponSourceCard"})(["max-width:600px;"]),r=a.default.div.withConfig({displayName:"CollaborationRewardSetup.styled__StackedIcons"})(["position:relative;width:48px;height:48px;"]),o=a.default.div.withConfig({displayName:"CollaborationRewardSetup.styled__StackedBadge"})(["position:absolute;bottom:-4px;right:-4px;width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;background-color:",";border:2px solid ",";color:",";
1"],(0,n.dU)("White"),(0,n.dU)("GreyLight"),(0,n.dU)("GreyDark")),s=a.default.div.withConfig({displayName:"CollaborationRewardSetup.styled__ManualIconContainer"})(["width:48px;height:48px;border-radius:10px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:",";padding:",";color:",";"],(0,n.dU)("GreyLight"),(0,n.YK)(1),(0,n.dU)("GreyDark")),d=a.default.div.withConfig({displayName:"CollaborationRewardSetup.styled__SourceIcon"})(["display:flex;flex-shrink:0;color:",";"],(0,n.dU)("GreyDark"))},612834(e,i,t){t.a(e,async function(e,n){try{t.d(i,{Y:()=>S,u:()=>P});var a=t(562540),l=t(63696),r=t(727650),o=t(649236),s=t(397118),d=t(595774),c=t(179215),u=t(843506),m=t(807481),p=t(48623),h=t(353452),f=t(459651),x=t(5378),g=t(948325),y=t(621927),b=t(909721),v=t(205599),j=t(861672),w=t(281033),T=t(88771),k=e([y,w,f]);[y,w,f]=k.then?(await k)():k;let S=e=>{let i=(()=>{let{t:e}=(0,u.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.follower-reward"}),{formState:{type:i}}=(0,y.c)();return(0,l.useMemo)(()=>{let t=h.string().oneOf(["AMOUNT","PERCENTAGE"]),n=h.boolean();return"GIVE_DISCOUNT"===i&&(t.required(e("validation.reward-type.required","Reward type is required")),n.required(e("validation.has-minimum-spend.required","Please specify if a minimum spend is required"))),h.object().shape({rewardType:t,rewardValue:h.number().when("rewardType",(t,n)=>{let[a]=t;if("GIVE_DISCOUNT"!==i)return n;let l=e("validation.reward-value.required","Please enter a valid amount"),r=n.typeError(l).required(l).min(1,e("validation.reward-value.min","Amount must be greater than 0"));return"PERCENTAGE"===a?r.max(100,e("validation.reward-value.percentage-max","The percentage must be at most 100")):"AMOUNT"===a?r:r.notRequired().nullable()}),hasMinimumSpend:n,rewardMinimumSpend:h.number().transform(e=>Number.isNaN(e)?null:e).nullable().when("hasMinimumSpend",(i,t)=>
1{let[n]=i;if(n){let i=e("validation.minimum-spend.required","Please enter a minimum spend");return t.nonNullable(i).required(i).typeError(i).min(1,e("validation.minimum-spend.min","Minimum spend must be greater than 0"))}return t.notRequired().nullable()}),customerEligibility:h.string().oneOf([v.LaL.All,v.LaL.SpecificSegments]).default(v.LaL.All),customerSegmentIds:h.array().of(h.string().required()).default([]).when("customerEligibility",(i,t)=>{let[n]=i;return n===v.LaL.SpecificSegments?t.min(1,e("validation.customer-segments.required","Please select at least one customer segment")):t})})},[e,i])})();return(0,w.mN)({schema:i,shouldFocusError:!1,defaultValues:{rewardType:e.rewardType??"PERCENTAGE",rewardValue:e.rewardValue??void 0,hasMinimumSpend:e.hasMinimumSpend??!1,rewardMinimumSpend:e.rewardMinimumSpend,customerEligibility:e.customerEligibility??v.LaL.All,customerSegmentIds:e.customerSegmentIds??[]}})},C=e=>{let{segments:i}=e,{t}=(0,u.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.follower-reward"}),{control:n,setValue:r}=(0,c.xW)(),{field:o}=(0,c.as)({control:n,name:"customerSegmentIds"}),{theme:s,styles:h}=(()=>{let{colors:e}=(0,p.useTheme)();return{theme:{borderRadius:4,spacing:{baseUnit:4,controlHeight:36,menuGutter:8},colors:{danger:e.RedDark,dangerLight:e.RedPale,primary:e.CornflowerBase,primary75:e.Cornflower60,primary50:e.GreyBase,primary25:e.GreyLight,neutral0:e.White,neutral5:e.Grey80,neutral10:e.GreyBase,neutral20:e.Navy20,neutral30:e.Navy40,neutral40:e.Navy40,neutral50:e.Navy60,neutral60:e.Navy60,neutral70:e.Navy80,neutral80:e.NavyBase,neutral90:e.NavyBase}},styles:{container:e=>({...e,maxWidth:"500px"}),option:i=>({...i,fontWeight:500,fontSize:"1.2rem",color:e.NavyBase})}}})(),f=(0,l.useMemo)(()=>(o.value??[]).map(e=>i.find(i=>i.value===e)).filter(e=>void 0!==e),[o.value,i]);return(0,a.jsxs)(d.D0,{id:"customerSegmentIds",children:[(0,a.jsx)(d.D0.Label,{children:(0,a.jsxs)(d.so,{alignItems:"center",gap:1,children:[(0,a.jsx)(b.A,{width:16,height:16,"aria-hidden":!0}),t("customer-segments.label","Customer segments")]})}),(0,a.jsx)(m.Ay,{isMulti:!0,value:f,onChange:e=>{r("customerSegmentIds",e.map(e=>e.value),{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})},onBlur:o.onBlur,options:[...i],placeholder:t("customer-segments.placeholder","Select segments..."),isClearable:!0,theme:s,styles:h}),(0,a.jsx)(d.D0.Description,{children:t("customer-segments.description","Only customers in the selected segments will be eligible for this discount.")})]})},N=e=>{let{breakdown:i}=e;return i.isMixed?(0,a.jsxs)(T.SI,{children:[(0,a.jsx)(j.l,{children:(0,a.jsx)(b.A,{width:20,height:20,"aria-hidden":!0})}),(0,a.jsx)(T.N8,{children:(0,a.jsx)(s.A,{width:14,height:14})})]}):i.isAllShopify?(0,a.jsx)(j.l,{children:(0,a.jsx)(b.A,{width:20,height:20,"aria-hidden":!0})}):(0,a.jsx)(T.p_,{children:(0,a.jsx)(s.A,{width:24,height:24})})},P=e=>{let{form:i,isShopifyProvider:t,shopifyCustomerSegments:n}=e,{t:c}=(0,u.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.follower-reward"}),{isLive:m,enrollmentCounts:p}=(0,y.c)(),{merchantId:h,programmeId:j,actionDefinitionId:k}=(0,w.Ct)(),[S,{open:P,close:E}]=(0,d.eY)(),A=m&&p.influencersWithCouponCount>0,{data:I,loading:R}=(0,x.v9)({variables:{merchantId:h,programmeId:j,actionDefinitionId:k},skip:!A||!j||!k}),_=(0,l.useMemo)(()=>{var e,i,t;let n=(null==I||null==(t=I.influencerMerchant)||null==(i=t.programme)||null==(e=i.actionDefinition)?void 0:e.actionPromises)??[],a=0,l=0;n.forEach(e=>{e.coupon&&("SHOPIFY"===e.coupon.howImported?a++:l++)});let r=a>0&&0===l,o=l>0&&0===a,s=a>0&&l>0;return{shopifyCount:a,manualCount:l,isAllShopify:r,isAllManual:o,isMixed:s}},[I]),{FormProvider:D,Fields:F,formApi:{watch:B}}=i,{rewardType:O,hasMinimumSpend:M,customerEligibility:z}=B(),L=(0,l.useMemo)(()=>(n??[]).map(e=>({label:e.name,value:e.id})),[n]);return(0,a.jsx)(D,{children:(0,a.jsx)(d.Zp,{children:(0,a.jsxs)(d.VJ,{children:[(0,a.jsxs)(g.d,{children:[(0,a.jsx)(r.A,{width:16,height:16}),c("title","Follower incentive")]}),(0,a.jsx)(d.lV.Description,{children:c("description","Configure the incentive or discount the influencers followers will receive from the influencer")}),(0,a.jsx)(F.RadioGroup,{orientation:"row",fieldPath:"rewardType",label:c("type.label","Incentive type"),options:[{value:"PERCENTAGE",label:c("options.percentage","Percentage discount")},{value:"AMOUNT",label:c("options.flat","Fixed amount discount")}]}),"PERCENTAGE"===O&&(0,a.jsx)(F.Text,{type:"number",fieldPath:"rewardValue",externalSuffix:"%",maxWidth:"150px",label:c("percentage.label","Percentage discount"),placeholder:c("percentage.placeholder","e.g. 10"),min:1,max:100,step:1}),"AMOUNT"===O&&(0,a.jsx)(F.Text,{type:"number",fieldPath:"rewardValue",externalPrefix:"\xa3",maxWidth:"150px",label:c("flat.label","Fixed discount amount"),description:c("flat.description","The currency the influencer will see depends on their settings"),placeholder:c("flat.placeholder","e.g. 5.00"),min:1,step:.5}),(0,a.jsx)(F.Switch,{fieldPath:"hasMinimumSpend",label:c("minimum-spend.label","Has minimum spend?"),activeText:c("minimum-spend.active","Yes"),inactiveText:c("minimum-spend.inactive","No"),description:c("minimum-spend.description","When enabled, the follower must spend a minimum amount to unlock the discount")}
1),M&&(0,a.jsx)(F.Text,{type:"number",fieldPath:"rewardMinimumSpend",maxWidth:"150px",label:c("minimum-spend-value.label","Minimum spend"),placeholder:c("minimum-spend-value.placeholder","e.g. 5.00"),min:.01,step:.5}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.SegmentedControl,{fieldPath:"customerEligibility",label:c("customer-eligibility.label","Customer eligibility"),description:c("customer-eligibility.description","Choose which customers can use this discount code on Shopify."),options:[{value:v.LaL.All,label:c("customer-eligibility.all","All customers")},{value:v.LaL.SpecificSegments,label:c("customer-eligibility.specific-segments","Specific customer segments")}]}),z===v.LaL.SpecificSegments&&(0,a.jsx)(C,{segments:L})]}),A&&!R&&(0,a.jsx)(T.CS,{children:(0,a.jsxs)(d.Zp,{variant:"border",children:[(0,a.jsx)(d.Zp.Icon,{children:(0,a.jsx)(N,{breakdown:_})}),(0,a.jsx)(d.Zp.Title,{children:(0,a.jsx)(d.H5,{children:c("coupon-source.title",{defaultValue:"An influencer has a discount code for this collaboration",defaultValue_other:"Some influencers have discount codes for this collaboration",count:p.influencersWithCouponCount})})}),(0,a.jsx)(d.Zp.Description,{children:(0,a.jsx)(d.XI,{children:(0,a.jsxs)(d.XI.Body,{children:[_.shopifyCount>0&&(0,a.jsx)(d.XI.Row,{children:(0,a.jsx)(d.XI.Cell,{children:(0,a.jsxs)(d.so,{alignItems:"center",gap:1.5,children:[(0,a.jsx)(T.pY,{children:(0,a.jsx)(b.A,{width:16,height:16,"aria-hidden":!0})}),(0,a.jsx)(d.XS,{children:c("coupon-source.shopify-description",{defaultValue:"{{count}} Shopify discount code will be automatically updated to reflect changes.",defaultValue_other:"{{count}} Shopify discount codes will be automatically updated to reflect changes.",count:_.shopifyCount})})]})})}),_.manualCount>0&&(0,a.jsx)(d.XI.Row,{children:(0,a.jsx)(d.XI.Cell,{children:(0,a.jsxs)(d.so,{alignItems:"center",gap:1.5,children:[(0,a.jsx)(T.pY,{children:(0,a.jsx)(s.A,{width:16,height:16})}),(0,a.jsx)(d.XS,{children:c("coupon-source.manual-description",{defaultValue:"{{count}} manually assigned discount code will not be updated automatically.",defaultValue_other:"{{count}} manually assigned discount codes will not be updated automatically.",count:_.manualCount})}),(0,a.jsx)(d.m_,{variant:"compact",tooltip:c("coupon-source.manual-help","You will need to update these directly in your chosen system and reflect the changes in Mention Me."),children:(0,a.jsx)(T.pY,{children:(0,a.jsx)(o.A,{width:14,height:14})})})]})})})]})})}),(0,a.jsx)(d.Zp.Footer,{children:(0,a.jsx)(d.$n,{type:"button",variant:"secondary",colourTheme:"light",size:"small",onClick:P,children:c("coupon-source.view-influencers","View influencers")})})]})}),k&&j&&(0,a.jsx)(f.r,{actionDefinitionId:k,programmeId:j,onClose:E,isOpen:S})]})})})};n()}catch(e){n(e)}})},545696(e,i,t){t.a(e,async function(e,n){try{t.d(i,{w:()=>c});var a=t(63696),l=t(843506),r=t(353452),o=t(621927),s=t(281033),d=e([o,s]);[o,s]=d.then?(await d)():d;let c=e=>{let i=(()=>{let{t:e}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.influencer-commission"}),{formState:{type:i}}=(0,o.c)(),t=e("validation.currency.required","Please select a currency for the commission to be paid in",{context:i});return(0,a.useMemo)(()=>r.object().shape({type:r.string().oneOf(["FLAT_FEE","PERCENTAGE","NONE"]),currency:r.string().oneOf(["EUR","GBP","USD"]).typeError(t).required(t),value:r.number().when("type",(i,t)=>
1{let[n]=i,a=e("validation.commission-value.required","Value is required"),l=t.typeError(a).required(a).min(1,e("validation.commission-value.percentage-min","Value must be greater than 0"));return"FLAT_FEE"===n?l:"PERCENTAGE"===n?l.max(100,e("validation.commission-value.percentage-max","Value must be at most 100")):t.notRequired().nullable().transform(()=>null)}),needsApproval:r.boolean().when("type",(i,t)=>{let[n]=i;return n?t.notRequired().nullable():t.required(e("validation.needs-approval.required","Approval setting is required"))})}),[t,e])})(),{formState:{type:t}}=(0,o.c)(),n=e.type??("GIVE_DISCOUNT"===t?"PERCENTAGE":"FLAT_FEE");return(0,s.mN)({schema:i,shouldFocusError:!1,defaultValues:{type:n,currency:e.currency,value:e.value,needsApproval:e.needsApproval??!1}})};n()}catch(e){n(e)}})},751712(e,i,t){t.a(e,async function(e,n){try{t.d(i,{S:()=>c,w:()=>u});var a,l=t(843506),r=t(353452),o=t(205599),s=t(281033),d=e([s]);s=(d.then?(await d)():d)[0];var c=((a={}).NoRestriction="NO_RESTRICTION",a.TotalNumberOfPosts="TOTAL_NUMBER_OF_POSTS",a.TotalPostsPerPlatform="TOTAL_POSTS_PER_PLATFORM",a.TotalPostsPerType="TOTAL_POSTS_PER_TYPE",a);let u=e=>(0,s.mN)({schema:(()=>{let{t:e}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.actions.content"});return r.object().shape({restriction:r.string().oneOf(Object.values(c)).required(),needsContentApproval:r.boolean().default(!1),platforms:r.array(r.string().oneOf(Object.values(o.kdx)).required()).nullable(),postTypes:r.array(r.string().oneOf(Object.values(o.PZQ)).required()).nullable(),totalPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_NUMBER_OF_POSTS"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable(),totalInstagramPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_POSTS_PER_PLATFORM"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable(),totalTikTokPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_POSTS_PER_PLATFORM"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable(),totalFeedPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_POSTS_PER_TYPE"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable(),totalReelPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_POSTS_PER_TYPE"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable(),totalStoryPosts:r.number().min(0,e("minimum","Must be a positive number")).when("restriction",{is:e=>"TOTAL_POSTS_PER_TYPE"===e,then:i=>i.typeError(e("required","This field is required")).required(e("required","This field is required"))}).nullable()})})(),shouldFocusError:!1,defaultValues:{needsContentApproval:!1,restriction:"NO_RESTRICTION",...e}});n()}catch(e){n(e)}})},508280(e,i,t){t.a(e,async function(e,n){try{t.d(i,{i:()=>a.i});var a=t(529815),l=e([a]);a=(l.then?(await l)():l)[0],n()}catch(e){n(e)}})},667739(e,i,t){t.a(e,async function(e,n){try{t.d(i,{s:()=>y});
1var a=t(562540),l=t(63696),r=t(766992),o=t(846165),s=t(595774),d=t(843506),c=t(353452),u=t(653514),m=t(281033),p=t(948325),h=t(737252),f=t(621927),x=t(442679),g=e([m,x,f]);[m,x,f]=g.then?(await g)():g;let y=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements"}),{form:{FormProvider:i,Fields:t,formApi:{watch:n}}}=u.Ay.useWizardStepState(),{termsType:l}=n();return(0,a.jsx)(i,{children:(0,a.jsxs)(s.so,{flexDirection:"column",gap:3,children:[(0,a.jsx)(s.H3,{children:e("title","Agreements")}),(0,a.jsx)(s.Zp,{children:(0,a.jsxs)(s.VJ,{children:[(0,a.jsxs)(p.d,{children:[(0,a.jsx)(r.A,{}),e("terms.title","Collaboration terms")]}),(0,a.jsx)(s.lV.Description,{children:e("terms.description","Set up the agreement terms for this collaboration")}),(0,a.jsx)(s.H5,{children:e("terms.programme.title","Standard programme terms")}),(0,a.jsx)(s.Zp,{variant:"slate",children:(0,a.jsx)(s.VJ,{children:(0,a.jsxs)(d.x6,{t:e,i18nKey:"terms.programme.info",children:[(0,a.jsx)(s.M,{children:"Programme Terms Active"}),(0,a.jsx)(s.S,{children:"All influencers have already agreed to the standard programme terms. These cannot be modified but can be reviewed."})]})})}),(0,a.jsx)(s.H5,{children:e("terms.collaboration.title","Collaboration-specific terms")}),(0,a.jsx)(s.lV.Description,{children:e("terms.collaboration.description","Add terms specific to this collaboration alongside your standard programme terms.")}),(0,a.jsx)(t.RadioGroup,{fieldPath:"termsType",options:[{value:"STANDARD_TERMS",label:e("terms.options.standard","Standard terms only")},{value:"SPECIAL_TERMS",label:e("terms.options.custom","Custom terms")}]}),["SPECIAL_TERMS","SPECIAL_TERMS_WITH_CUSTOM_TERMS"].includes(l)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{}),(0,a.jsx)(t.TextArea,{fieldPath:"customTerms",label:e("terms.custom.label","Additional terms & conditions"),placeholder:e("terms.custom.placeholder","e.g. Content must be published within 7 days of approval")})]})]})}),["SPECIAL_TERMS","SPECIAL_TERMS_WITH_CUSTOM_TERMS"].includes(l)&&(0,a.jsx)(s.Zp,{children:(0,a.jsxs)(s.VJ,{children:[(0,a.jsxs)(p.d,{children:[(0,a.jsx)(o.A,{}),e("confirmation.title","Agreement confirmation required")]}),(0,a.jsx)(s.Zp,{variant:"slate",children:(0,a.jsx)(t.Checkbox,{fieldPath:"hasConfirmed",label:(0,a.jsxs)(d.x6,{t:e,i18nKey:"confirmation.label",parent:s.S,children:["I confirm that I have reviewed and approve the collaboration terms above, and I understand that:",(0,a.jsx)("br",{}),(0,a.jsxs)("ul",{style:{paddingLeft:"16px"},children:[(0,a.jsx)("li",{children:"When an influencer accepts these terms, a binding contract is automatically formed"}),(0,a.jsx)("li",{children:"I have authority to bind my organisation to these collaboration terms"}),(0,a.jsx)("li",{children:"Influencers can commence work immediately upon acceptance without further approval"})]})]})})})]})})]})})};y.useStepContext=()=>{let{formState:e}=(0,f.c)(),i=(()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements"}),i=e("validation.terms-type.one-of","Please select the type of terms you wish to use for this collaboration");return c.object({termsType:c.string().oneOf(["STANDARD_TERMS","SPECIAL_TERMS","SPECIAL_TERMS_WITH_CUSTOM_TERMS"],i).required(i),customTerms:c.string().when("termsType",{is:"SPECIAL_TERMS",then:i=>i.required(e("validation.custom-terms.required","Custom terms are required")).trim(),otherwise:e=>e.transform(()=>void 0).notRequired().nullable()}),hasConfirmed:c.boolean().when("termsType",{is:["SPECIAL_TERMS","SPECIAL_TERMS_WITH_CUSTOM_TERMS"],then:i=>{let t=e("validation.has-confirmed.required","Please confirm you have reviewed the custom terms entered");return i.oneOf([!0],t).required(t)},otherwise:e=>e.transform(()=>void 0).notRequired().nullable()})})})(),t=(0,l.useMemo)(()=>"STANDARD_TERMS"===e.agreementDetails.type?"STANDARD_TERMS":"SPECIAL_TERMS",[e.agreementDetails.type]);return{form:(0,m.mN)({schema:i,defaultValues:{termsType:t,customTerms:e.agreementDetails.customTerms??void 0,hasConfirmed:e.hasConfirmedAgreementTerms}})}},y.Name=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"});return(0,a.jsx)(a.Fragment,{children:e("agreements","Agreements")})},y.NextButton=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{updateSection:i}=(0,f.c)(),{nextStep:t}=(0,u.CV)(),{form:{formApi:{handleSubmit:n,formState:l}}}=u.Ay.useWizardStepState(),r=n(e=>{let{customTerms:n,termsType:a}=e,l=a;"SPECIAL_TERMS"===l&&""!==n.trim()&&(l="SPECIAL_TERMS_WITH_CUSTOM_TERMS"),i("agreementDetails",{type:l,customTerms:n}),null==t||t()});return(0,a.jsx)(s.$n,{onClick:r,disabled:!l.isValid,children:e("next","Next")})},y.ExtraButton=h.o,n()}catch(e){n(e)}})},10556(e,i,t){t.d(i,{R:()=>l,m:()=>r});var n=t(595774),a=t(48623);let l=a.default.ul.withConfig({displayName:"CollaborationWizardAgreementsStepSpecialTermsDetails.styled__BulletList"})(["margin-top:",";li{line-height:1.5;}"],(0,n.YK)(1)),r=a.default.div.withConfig({displayName:"CollaborationWizardAgreementsStepSpecialTermsDetails.styled__Container"})(["h5{margin-top:",";}"],(0,n.YK)(2))},442679(e,i,t){t.a(e,async function(e,n){try{t.d(i,{A:()=>p});
1var a=t(562540),l=t(846165),r=t(595774),o=t(843506),s=t(10556),d=t(594867),c=t(837224),u=t(689241),m=e([c,u,d]);[c,u,d]=m.then?(await m)():m;let p=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.custom.details"});return(0,a.jsxs)(r.Zp,{variant:"slate",children:[(0,a.jsxs)(r.so,{alignItems:"center",gap:1,style:{marginTop:16,alignItems:"flex-start"},children:[(0,a.jsx)(l.A,{width:16,height:16}),(0,a.jsxs)(r.so,{flexDirection:"column",gap:1,children:[(0,a.jsx)(r.H5,{children:e("title","Special terms generated for this collaboration")}),(0,a.jsx)(r.S,{children:e("description","These terms are specific to this collaboration and are automatically generated from your settings.")})]})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)(s.m,{children:[(0,a.jsx)(c.s,{}),(0,a.jsx)(u.x,{}),(0,a.jsx)(d.F,{})]})]})};n()}catch(e){n(e)}})},402382(e,i,t){t.d(i,{l:()=>o});var n=t(562540),a=t(595774),l=t(843506),r=t(10556);let o=()=>{let{t:e}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.special-terms.common-terms.collaboration-period"});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.H5,{children:e("period.title","Collaboration Period")}),(0,n.jsx)(a.S,{children:(0,n.jsx)(r.R,{children:(0,n.jsx)("li",{children:e("period.description.no-fixed-date","Ongoing collaboration with no fixed end date")})})})]})}},473749(e,i,t){t.a(e,async function(e,n){try{t.d(i,{g:()=>c});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(10556),d=e([o]);o=(d.then?(await d)():d)[0];let c=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.special-terms.common-terms.product-gifting"}),{formState:i}=(0,o.c)();return i.details.hasProductGifting?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.H5,{children:e("product-gifting.title","Product Gifting")}),(0,a.jsx)(l.S,{children:(0,a.jsxs)(s.R,{children:[(0,a.jsx)("li",{children:e("product-gifting.description.inclusion","Product gifting included as part of collaboration")}),(0,a.jsx)("li",{children:e("product-gifting.description.products","Products provided for authentic review and content creation")}),(0,a.jsx)("li",{children:e("product-gifting.description.standards","Influencer must disclose gifted products in accordance with advertising standards")})]})})]}):null};n()}catch(e){n(e)}})},594867(e,i,t){t.a(e,async function(e,n){try{t.d(i,{F:()=>p});var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(391734),d=t(10556),c=t(402382),u=t(473749),m=e([o,s,u]);[o,s,u]=m.then?(await m)():m;let p=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.special-terms.content-creation"}),{formState:i}=(0,o.c)(),t=(0,s._)();return"CONTENT_CREATION"!==i.type?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.H5,{children:e("purpose.title","Collaboration Purpose")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:e("purpose.description.primary-focus","Primary focus: Create high-quality branded content for marketing campaigns")})}),(0,a.jsx)(c.l,{}),(0,a.jsx)(l.H5,{children:e("compensation.title","Compensation & Payment")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:(0,a.jsx)(d.R,{children:(0,a.jsx)("li",{children:(0,a.jsxs)(r.x6,{i18nKey:"compensation.description.value",t:e,children:[{commission:t.formattedValue}," ","commission for each content created"]})})})})}),(0,a.jsx)(u.g,{}),(0,a.jsx)(l.H5,{children:e("intellectual-properties.title","Intellectual Property")}),(0,a.jsx)(l.S,{children:(0,a.jsxs)(d.R,{children:[(0,a.jsx)("li",{children:e("intellectual-properties.description.enhanced-rights","Enhanced intellectual property rights - brand retains exclusive ownership of all created content")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.permission","Influencer grants perpetual, worldwide license for brand to use, modify, and redistribute content")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.right-to-use","Content may be used across all marketing channels and platforms without additional compensation")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.additional-works","Brand may create derivative works and adaptations of the content")})]})})]})};n()}catch(e){n(e)}})},837224(e,i,t){t.a(e,async function(e,n){try{t.d(i,{s:()=>h});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(391734),d=t(751712),c=t(10556),u=t(402382),m=t(473749),p=e([o,s,d,m]);[o,s,d,m]=p.then?(await p)():p;let h=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.special-terms.content-posting"}),{formState:i}=(0,o.c)(),t=(0,s._)();if("CONTENT_POSTING"!==i.type)return null;let{contentRequirements:n}=i.actionDetails;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.H5,{children:e("purpose.title","Collaboration Purpose")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:e("purpose.description.primary-focus","Primary focus: Create high-quality branded content for marketing campaigns")})}),(0,a.jsx)(u.l,{}),(0,a.jsx)(l.H5,{children:e("compensation.title","Compensation & Payment")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:(0,a.jsx)(c.R,{children:(0,a.jsx)("li",{children:(0,a.jsxs)(r.x6,{i18nKey:"compensation.description.value",t:e,children:[{commission:t.formattedValue}," ","commission for posting contents as per the agreed deliverables"]})})})})}),(0,a.jsx)(l.H5,{children:e("deliverables.title","Content Deliverables")}),(0,a.jsx)(l.S,{children:(0,a.jsxs)(c.R,{children:[i.contentRestriction===d.S.TotalNumberOfPosts&&(0,a.jsx)(a.Fragment,{children:((null==n?void 0:n.totalPosts)??0)>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-number-of-post","{{count}} x posts across Instagram and Tiktok platforms",{count:n.totalPosts})})}),i.contentRestriction===d.S.TotalPostsPerType&&(0,a.jsxs)(a.Fragment,{children:[((null==n?void 0:n.totalFeedPosts)??0)>0&&((null==n?void 0:n.platforms)??[]).length>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-feed-posts","{{count}} x {{platforms}} feed posts",{count:n.totalFeedPosts,platforms:n.platforms.map(i=>e(`deliverables.description.platforms.values.${i}`,i)).join(", ")})}),((null==n?void 0:n.totalStoryPosts)??0)>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-stories","{{count}} x Instagram stories",{count:n.totalStoryPosts})}),((null==n?void 0:n.totalReelPosts)??0)>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-reels","{{count}} x Instagram reels",{count:n.totalReelPosts})})]}),i.contentRestriction===d.S.TotalPostsPerPlatform&&(0,a.jsxs)(a.Fragment,{children:[((null==n?void 0:n.totalInstagramPosts)??0)>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-instagram-posts","{{count}} x Instagram posts",{count:n.totalInstagramPosts})}),((null==n?void 0:n.totalTikTokPosts)??0)>0&&(0,a.jsx)("li",{children:e("deliverables.description.total-tiktok-posts","{{count}} x Tiktok posts",{count:n.totalTikTokPosts})})]}),(0,a.jsx)("li",{children:e("deliverables.description.quality-standards","All content must meet professional quality standards")}),(0,a.jsx)("li",{children:e("deliverables.description.guideline","Content must align with brand guidelines and aesthetic")})]})}),i.actionDetails.requiresContentApproval&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.H5,{children:e("content-approval.title","Content Approval")}),(0,a.jsx)(l.S,{children:(0,a.jsxs)(c.R,{children:[(0,a.jsx)("li",{children:e("content-approval.description.approval","All content must be approved by brand before publication")}),(0,a.jsx)("li",{children:e("content-approval.description.rewards","Any rewards owed will be conditional on content approval")}),(0,a.jsx)("li",{children:e("content-approval.description.rights","Brand reserves right to request modifications before approval")}),(0,a.jsx)("li",{children:e("content-approval.description.adhere-to-requirements","Content must adhere to detailed brief requirements")}),(0,a.jsx)("li",{children:e("content-approval.description.verification","Brief compliance will be verified during approval process")})]})})]}),(0,a.jsx)(m.g,{}),(0,a.jsx)(l.H5,{children:e("intellectual-properties.title","Intellectual Property")}),(0,a.jsx)(l.S,{children:(0,a.jsxs)(c.R,{children:[(0,a.jsx)("li",{children:e("intellectual-properties.description.enhanced-rights","Enhanced intellectual property rights - brand retains exclusive ownership of all created content")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.permission","Influencer grants perpetual, worldwide license for brand to use, modify, and redistribute content")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.right-to-use","Content may be used across all marketing channels and platforms without additional compensation")}),(0,a.jsx)("li",{children:e("intellectual-properties.description.additional-works","Brand may create derivative works and adaptations of the content")})]})})]})};n()}catch(e){n(e)}})},689241(e,i,t){t.a(e,async function(e,n){try{t.d(i,{x:()=>p});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(391734),d=t(10556),c=t(402382),u=t(473749),m=e([o,s,u]);[o,s,u]=m.then?(await m)():m;let p=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.agreements.terms.special-terms.give-discount"}),{formState:i}=(0,o.c)(),t=(0,s._)();return"GIVE_DISCOUNT"!==i.type?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.H5,{children:e("purpose.title","Collaboration Purpose")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:e("purpose.description.primary-focus","Primary focus: Drive sales through influencer promotion")})}),(0,a.jsx)(c.l,{}),(0,a.jsx)(l.H5,{children:e("compensation.title","Compensation & Payment")}),(0,a.jsx)(l.VJ,{marginBottom:1,marginTop:1,children:(0,a.jsx)(l.S,{children:(0,a.jsxs)(d.R,{children:[(0,a.jsx)("li",{children:(0,a.jsxs)(r.x6,{i18nKey:"compensation.description.value",t:e,children:[{commission:t.formattedValue}," ","commission for each purchase made using your discount code"]})}),(0,a.jsx)("li",{children:e("compensation.description.calculation","Commission calculated on net sales value excluding taxes, shipping")})]})})}),(0,a.jsx)(u.g,{})]})};n()}catch(e){n(e)}})},439974(e,i,t){t.a(e,async function(e,n){try{t.d(i,{r:()=>f});
1var a=t(562540),l=t(484943),r=t(595774),o=t(843506),s=t(353452),d=t(653514),c=t(281033),u=t(948325),m=t(737252),p=t(621927),h=e([c,p]);[c,p]=h.then?(await h)():h;let f=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.briefing"}),{form:{FormProvider:i,Fields:t,formApi:{watch:n}}}=d.Ay.useWizardStepState(),{url:s}=n();return(0,a.jsx)(i,{children:(0,a.jsxs)(r.so,{flexDirection:"column",gap:3,children:[(0,a.jsx)(r.H3,{children:e("title","Briefing")}),(0,a.jsx)(r.Zp,{children:(0,a.jsxs)(r.VJ,{children:[(0,a.jsxs)(u.d,{children:[(0,a.jsx)(l.A,{}),e("brief.title","Collaboration brief")]}),(0,a.jsx)(r.lV.Description,{children:e("brief.description","Provide your collaboration brief to influencers")}),(0,a.jsx)(t.Text,{fieldPath:"url",label:e("brief.url-label","Brief URL (optional)"),placeholder:e("brief.url-placeholder","e.g. https://docs.google.com/document/d/..."),maxWidth:"500px",description:e("brief.url-description","Link to an existing brief document. Ensure it's publicly accessible or properly shared.")}),s&&(0,a.jsx)(r.Zp,{variant:"slate",children:(0,a.jsxs)(o.x6,{t:e,i18nKey:"preview",parent:r.S,children:["Influencers will be able to access your brief at:"," ",(0,a.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:{briefUrl:s}})]})})]})}),(0,a.jsx)(r.Zp,{children:(0,a.jsxs)(r.VJ,{children:[(0,a.jsxs)(u.d,{children:[(0,a.jsx)(l.A,{}),e("best-practices.title","Best practices")]}),(0,a.jsx)(r.lV.Description,{children:e("best-practices.description","Tips for creating effective brief documents and brand guidelines")}),(0,a.jsx)(r.Zp,{variant:"slate",children:(0,a.jsxs)(o.x6,{t:e,i18nKey:"best-practices.pro-tip",parent:r.S,children:[(0,a.jsx)("strong",{children:"\uD83D\uDCA1 Pro Tip"}),(0,a.jsx)("br",{}),"Test your document links in an incognito window to ensure they're publicly accessible before sending to influencers."]})}),(0,a.jsxs)(r.xA,{columns:2,children:[(0,a.jsx)(r.S,{as:"div",children:(0,a.jsxs)(o.x6,{t:e,i18nKey:"best-practices.essential-elements",children:[(0,a.jsx)("strong",{children:"Essential Brief Elements"}),(0,a.jsxs)("ul",{style:{paddingLeft:"16px"},children:[(0,a.jsx)("li",{children:"Campaign objectives and target audience"}),(0,a.jsx)("li",{children:"Content requirements and specifications"}),(0,a.jsx)("li",{children:"Key messages and brand guidelines"}),(0,a.jsx)("li",{children:"Timeline and posting schedule"}),(0,a.jsx)("li",{children:"How to access support"})]})]})}),(0,a.jsx)(r.S,{as:"div",children:(0,a.jsxs)(o.x6,{t:e,i18nKey:"best-practices.platforms",children:[(0,a.jsx)("strong",{children:"Recommended Platforms"}),(0,a.jsxs)("ul",{style:{paddingLeft:"16px"},children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Google Docs:"})," Easy collaboration"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"PDF:"})," Consistent formatting"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Notion:"})," Rich media embedding"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Dropbox:"})," Reliable file sharing"]})]})]})})]})]})})]})})};f.useStepContext=()=>{let{formState:e}=(0,p.c)(),i=(()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.briefing"});return s.object({url:s.string().url(e("validation.brief.url-error","Please enter a valid URL")).optional()})})();return{form:(0,c.mN)({schema:i,defaultValues:{url:e.briefingDetails.url}})}},f.Name=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"});return(0,a.jsx)(a.Fragment,{children:e("briefing","Briefing")})},f.NextButton=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{nextStep:i}=(0,d.CV)(),{updateSection:t}=(0,p.c)(),{form:{formApi:{handleSubmit:n,formState:l}}}=d.Ay.useWizardStepState(),s=n(e=>{let{url:n}=e;t("briefingDetails",{url:n}),null==i||i()});return(0,a.jsx)(r.$n,{onClick:s,disabled:!l.isValid,children:e("next","Next")})},f.ExtraButton=m.o,n()}catch(e){n(e)}})},179930(e,i,t){t.a(e,async function(e,n){try{t.d(i,{$:()=>b});
1var a=t(562540),l=t(63696),r=t(833788),o=t(134639),s=t(595774),d=t(843506),c=t(408432),u=t(353452),m=t(653514),p=t(790861),h=t(281033),f=t(234821),x=t(948325),g=t(621927),y=e([h,f,g]);[h,f,g]=y.then?(await y)():y;let b=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.details"}),{form:{FormProvider:i,Fields:t,formApi:{watch:n}}}=m.Ay.useWizardStepState(),{description:l}=n();return(0,a.jsx)(i,{children:(0,a.jsxs)(s.so,{flexDirection:"column",gap:3,children:[(0,a.jsx)(s.H3,{children:e("title","Details")}),(0,a.jsx)(s.Zp,{children:(0,a.jsxs)(s.VJ,{children:[(0,a.jsxs)(x.d,{children:[(0,a.jsx)(r.A,{}),e("collaboration-details.title","Collaboration Details")]}),(0,a.jsx)(t.Text,{fieldPath:"name",label:e("name.label","Name"),placeholder:e("name.placeholder","Enter collaboration name"),maxWidth:"400px",isRequired:!0}),(0,a.jsx)(t.TextArea,{fieldPath:"description",label:e("description.label","Description"),placeholder:e("description.placeholder","Enter collaboration description"),description:e("description.description","{{length}}/500 characters",{length:(null==l?void 0:l.trim().length)??0}),maxLength:500,maxWidth:"600px",rows:4})]})}),(0,a.jsx)(s.Zp,{children:(0,a.jsxs)(s.VJ,{children:[(0,a.jsxs)(x.d,{children:[(0,a.jsx)(o.A,{})," ",e("product-gifting.title","Product Gifting")]}),(0,a.jsx)(s.so,{alignItems:"center",justifyContent:"space-between",children:(0,a.jsx)(t.Switch,{fieldPath:"hasProductGifting",label:e("product-gifting.label","Include product gifting?"),activeText:e("product-gifting.options.active","Yes"),inactiveText:e("product-gifting.options.inactive","No"),description:e("product-gifting.description","This setting helps us track which collaborations include gifting. Until our dedicated gifting collaboration feature is developed, you'll still need to manage the gifting process separately through your existing systems.")})})]})})]})})};b.useStepContext=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.details"}),{formState:i}=(0,g.c)(),t=(0,l.useMemo)(()=>p.yK.pick(["description"]).concat(u.object().shape({hasProductGifting:u.boolean().default(!1),name:p.yD.required(e("name.validation.required","Please give this collaboration a name"))})),[e]);return{form:(0,h.mN)({schema:t,defaultValues:{name:i.details.name,description:i.details.description,hasProductGifting:i.details.hasProductGifting}})}},b.Name=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"});return(0,a.jsx)(a.Fragment,{children:e("details","Details")})},b.NextButton=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{form:{formApi:{handleSubmit:i,formState:t}}}=m.Ay.useWizardStepState(),{updateSection:n}=(0,g.c)(),{nextStep:l}=(0,m.CV)(),r=i(e=>{let{description:i,hasProductGifting:t,name:a}=e;n("details",{name:a.trim(),description:(null==i?void 0:i.trim())??"",hasProductGifting:t}),null==l||l()});return(0,a.jsx)(s.$n,{onClick:r,disabled:!t.isValid,children:e("next","Next")})},b.ExtraButton=()=>{let{t:e}=(0,d.Bd)("influencers",{keyPrefix:"collaborations.wizard"}),{merchantId:i,programmeId:t,actionDefinitionId:n}=(0,h.Ct)(),l=(0,c.Zp)(),{isReadOnly:r}=(0,g.c)();return r?(0,a.jsx)(s.$n,{variant:"secondary",onClick:()=>void l((0,f.Jv)("fe_influencers_collaborations",{merchantId:i,programmeId:t})),children:e("close","Close")}):n?(0,a.jsx)(s.$n,{variant:"secondary",onClick:()=>{window.confirm(e("cancel-confirmation","Are you sure you want to cancel? Unsaved changes will be lost"))&&l((0,f.Jv)("fe_influencers_collaborations",{merchantId:i,programmeId:t}))},children:e("cancel","Cancel")}):(0,a.jsx)(s.$n,{variant:"secondary",onClick:()=>void l((0,f.Jv)("fe_influencers_collaborations_create",{merchantId:i,programmeId:t})),children:e("back","Back")})},n()}catch(e){n(e)}})},387410(e,i,t){t.d(i,{P:()=>a});var n=t(595774);let a=t(48623).default.section.withConfig({displayName:"CollaborationWizardPreviewStep.styled__Layout"})(["display:grid;grid-template-columns:350px 1fr;grid-gap:",";margin-top:",";"],(0,n.YK)(1.5),(0,n.YK)(3))},372729(e,i,t){t.a(e,async function(e,n){try{t.d(i,{$:()=>b});
1var a=t(562540),l=t(63696),r=t(137800),o=t(595774),s=t(843506),d=t(205599),c=t(653514),u=t(737252),m=t(621927),p=t(387410),h=t(741360),f=t(556776),x=t(602911),g=e([f,h,m,x]);[f,h,m,x]=g.then?(await g)():g;let y={[d.NmY.ActionTypeLabel]:"TEXT",[d.NmY.CommissionTooltip]:"TEXT",[d.NmY.Cta]:"TEXT",[d.NmY.Description]:"TEXT",[d.NmY.ImageUrl]:"TEXT",[d.NmY.LearnMore]:"MARKDOWN",[d.NmY.RewardInfo]:"TEXT",[d.NmY.CommissionInfo]:"TEXT",[d.NmY.RewardTooltip]:"TEXT",[d.NmY.ShareLinkTooltip]:"TEXT",[d.NmY.ShareReferralCodeTooltip]:"TEXT",[d.NmY.Title]:"TEXT"},b=()=>{let{t:e}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview"}),[i,t]=(0,l.useState)("homePage"),[n,d]=(0,l.useState)("heroLayout"),{form:{FormProvider:c},locales:u,selectedLocaleIndex:m,setSelectedLocaleIndex:g}=(0,x.i)();return(0,a.jsxs)(o.az,{children:[(0,a.jsx)(o.H3,{as:"span",children:e("title","How it looks to influencers")}),(0,a.jsx)(o.M,{as:o.az,marginTop:1,children:e("description","This is how your collaboration will appear on an influencer's dashboard once it's live.")}),(0,a.jsxs)(p.P,{children:[(0,a.jsx)("aside",{children:(0,a.jsx)(o.az,{border:"GreyLight",backgroundColor:"White",borderRadius:"default",width:"100%",overflow:"hidden",padding:2,children:(0,a.jsxs)(c,{formSize:"small",children:[(0,a.jsxs)(o.VJ,{variant:"small",marginBottom:3,children:[(0,a.jsx)(o.H4,{as:"span",style:{fontWeight:500},children:e("form.title","Manage content")}),(0,a.jsx)(o.az,{children:(0,a.jsx)(o.XS,{as:"span",children:e("form.description","Customise the content that will appear to influencers")})})]}),u.length>1&&(0,a.jsxs)(o.D0,{formSize:"small",children:[(0,a.jsx)(o.D0.Label,{children:e("form.locale-label","Managing content for")}),(0,a.jsx)(o.l6,{formSize:"small",buttonProps:{variant:"secondary",colourTheme:"light",size:"small"},value:m,onChangeValue:e=>g(Number(e)),options:u.map((e,i)=>({label:e.shortName,value:i}))})]}),(0,a.jsx)(f.n,{},m)]})})}),(0,a.jsxs)(o.az,{children:[(0,a.jsxs)(o.az,{border:"Cornflower20",backgroundColor:"White",borderRadius:"default",width:"100%",overflow:"hidden",children:[(0,a.jsxs)(o.so,{borderBottom:"Cornflower20",padding:2,justifyContent:"space-between",children:[(0,a.jsx)(o.az,{children:(0,a.jsx)(o.Iz,{colourTheme:"light",size:"small",value:i,onChange:e=>t(e.target.value),options:[{label:e("tabs.dashboard","Dashboard"),value:"homePage"},{label:e("tabs.collaboration-page","Collaboration page"),value:"collaborationPage"}]})}),"homePage"===i&&(0,a.jsx)(o.az,{children:(0,a.jsx)(o.l6,{formSize:"small",buttonProps:{variant:"secondary",colourTheme:"light",size:"small"},value:n,onChangeValue:d,options:[{label:e("layouts.hero","Hero layout"),value:"heroLayout"},{label:e("layouts.card","Card layout"),value:"cardLayout"}]})})]}),(0,a.jsx)(h.d,{tab:i,collaborationLayout:n})]}),(0,a.jsx)(o.az,{marginTop:2,children:(0,a.jsxs)(o.kY,{variant:"light",isFullWidth:!0,size:"xs",children:[(0,a.jsx)(o.kY.Icon,{children:(0,a.jsx)(r.A,{})}),(0,a.jsx)(o.kY.Body,{children:e("preview-disclaimer","Previews are a representation of how your collaboration will look to influencers. Actual appearance may vary based on your brand and theme settings, as well as the influencer's profile, device and screen size.")})]})})]})]})]})};b.useStepContext=x.R,b.Name=()=>{let{t:e}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"});return(0,a.jsx)(a.Fragment,{children:e("preview","Preview & Copy")})},b.NextButton=()=>{let{t:e}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.steps"}),{nextStep:i}=(0,c.CV)(),{updateSection:t}=(0,m.c)(),{form:{formApi:{handleSubmit:n,formState:l}}}=(0,x.i)(),r=n(e=>{let{locales:n}=e;t("contentDetails",null==n?void 0:n.flatMap(e=>Object.entries(e.values).filter(e=>{let[,i]=e;return i.trim()}).map(i=>{let[t,n]=i;return{localeConfigurationId:e.localeConfigId,key:t,type:y[t],value:n||""}}))),null==i||i()});return(0,a.jsx)(o.$n,{onClick:r,disabled:!l.isValid,children:e("next","Next")})},b.ExtraButton=u.o,n()}catch(e){n(e)}})},630341(e,i,t){t.d(i,{M:()=>o});var n=t(562540),a=t(595774),l=t(843506),r=t(861243);let o=e=>{let{t:i}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview.card-placeholder"});return(0,n.jsxs)(r.T_,{...e,children:[(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.so,{justifyContent:"space-between",children:[(0,n.jsx)(a.H6,{children:(0,n.jsx)(r.a_,{height:"20px",width:"80px"})}),(0,n.jsx)(a.az,{children:(0,n.jsx)(a.JU,{variant:"status",status:"positive",children:i("status.registered","Registered")})})]}),(0,n.jsx)(a.az,{marginTop:2,children:(0,n.jsx)(r.a_,{height:"20px",width:"50%"})}),(0,n.jsxs)(a.az,{marginTop:2,children:[(0,n.jsx)(r.a_,{height:"15px",width:"80%"}),(0,n.jsx)(r.a_,{height:"15px",width:"70%",marginTop:.5})]})]}),(0,n.jsxs)(a.xA,{marginTop:2,columnGap:1,rowGap:3,minColumnWidth:200,alignItems:"center",children:[(0,n.jsxs)(a.so,{gap:2,flexWrap:"wrap",children:[(0,n.jsxs)(a.XS,{as:a.so,alignItems:"center",gap:1,children:[(0,n.jsx)(r.a_,{height:"12px",width:"12px"}),(0,n.jsx)(r.a_,{height:"12px",width:"80px"})]}),(0,n.jsxs)(a.XS,{as:a.so,alignItems:"center",gap:1,children:[(0,n.jsx)(r.a_,{height:"12px",width:"12px"}),(0,n.jsx)(r.a_,{height:"12px",width:"80px"})]})]}),(0,n.jsxs)(a.so,{style:{justifyContent:"flex-end",marginLeft:"auto"},gap:1,children:[(0,n.jsx)(r.a_,{height:"30px",width:"100px"}),(0,n.jsx)(r.a_,{height:"30px",width:"100px"})]})]})]})}},741360(e,i,t){t.a(e,async function(e,n){try{t.d(i,{d:()=>x});
1var a=t(562540),l=t(63696),r=t(595774),o=t(279311),s=t(732076),d=t(765426),c=t(432157),u=t(602911),m=t(146934),p=t(630341),h=t(143099),f=e([m,u,o,c,s,d]);[m,u,o,c,s,d]=f.then?(await f)():f;let x=e=>{var i;let{tab:t,collaborationLayout:n}=e,f=(0,m.B)(),{selectedLocaleIndex:x}=(0,u.i)(),{data:g}=(0,o.j)(),y=(null==(i=g.influencerMerchant.programme.localeConfigurations.at(x))?void 0:i.locale)??void 0,b=(0,l.useMemo)(()=>{switch(t){case"homePage":return(0,a.jsx)(h.c,{children:"cardLayout"===n?(0,a.jsxs)(r.so,{gap:1,width:"100%",children:[(0,a.jsx)(r.az,{style:{flex:"1 1 50%",width:"50%"},children:(0,a.jsx)(s.X,{minHeight:50,locale:null==y?void 0:y.localeCode,presentationType:"DASHBOARD",children:(0,a.jsx)(c.M,{actionDefinition:f})})}),(0,a.jsx)(r.az,{style:{flex:"1 1 50%",width:"50%"},children:(0,a.jsx)(p.M,{})})]}):(0,a.jsx)(s.X,{minHeight:50,locale:null==y?void 0:y.localeCode,presentationType:"DASHBOARD",children:(0,a.jsx)(c.M,{actionDefinition:f})})});case"collaborationPage":return(0,a.jsx)(r.az,{width:"100%",children:(0,a.jsx)(s.X,{minHeight:100,locale:null==y?void 0:y.localeCode,presentationType:"DASHBOARD",children:(0,a.jsx)(d.R,{actionDefinition:f})})})}},[t,n,f,y]);return(0,a.jsx)(r.az,{padding:2,backgroundColor:"Background",children:b})};n()}catch(e){n(e)}})},143099(e,i,t){t.d(i,{c:()=>c});var n=t(562540),a=t(467085),l=t(350552),r=t(901215),o=t(595774),s=t(843506),d=t(861243);let c=e=>{let{children:i}=e,{t}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview.dashboard-layout"});return(0,n.jsxs)(o.so,{flexDirection:"column",gap:2,children:[(0,n.jsxs)(o.so,{justifyContent:"space-between",children:[(0,n.jsx)(o.H3,{children:t("hello-user","Hello, John")}),(0,n.jsxs)(o.so,{gap:1,children:[(0,n.jsx)(d.a_,{width:"30px",height:"30px"}),(0,n.jsx)(d.a_,{width:"30px",height:"30px"})]})]}),i,(0,n.jsx)(o.Zp,{variant:"border",children:(0,n.jsxs)(o.so,{justifyContent:"space-between",gap:2,children:[(0,n.jsxs)(o.az,{children:[(0,n.jsxs)(o.S,{as:o.so,alignItems:"center",gap:1,children:[(0,n.jsx)(a.A,{width:18,height:18})," ",t("total-earnings","Total Earnings")]}),(0,n.jsx)(d.a_,{width:"80px",height:"25px",marginTop:2})]}),(0,n.jsxs)(o.az,{children:[(0,n.jsxs)(o.S,{as:o.so,alignItems:"center",gap:1,children:[(0,n.jsx)(l.A,{width:18,height:18})," ",t("current-month","Current month")]}),(0,n.jsx)(d.a_,{width:"80px",height:"25px",marginTop:2})]}),(0,n.jsxs)(o.az,{children:[(0,n.jsxs)(o.S,{as:o.so,alignItems:"center",gap:1,children:[(0,n.jsx)(r.A,{width:18,height:18})," ",t("available-funds","Available funds")]}),(0,n.jsx)(d.a_,{width:"80px",height:"25px",marginTop:2})]}),(0,n.jsx)(o.so,{alignItems:"center",children:(0,n.jsx)(d.a_,{width:"100px",height:"30px"})})]})})]})}},556776(e,i,t){t.a(e,async function(e,n){try{t.d(i,{n:()=>p});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(602911),d=t(205599),c=e([s,o]);[s,o]=c.then?(await c)():c;let u=["GIVE_DISCOUNT"],m=["GIVE_DISCOUNT"],p=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview.actions.form"}),{form:{Fields:i},createFocusHandlers:t}=(0,s.i)(),{formState:{type:n}}=(0,o.c)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.TextArea,{...t(d.NmY.Title),rows:2,label:e("title.label","Give the collaboration a title")}),(0,a.jsx)(i.TextArea,{...t(d.NmY.Description),rows:4,label:e("description.label","Describe it in a few sentences")}),(0,a.jsx)(l.az,{marginTop:2,marginBottom:1,children:(0,a.jsxs)(l.nD,{children:[(0,a.jsx)(l.nD.Label,{children:(0,a.jsx)(l.H6,{children:e("tooltip.advanced","Advanced")})}),(0,a.jsxs)(l.nD.Content,{children:[(0,a.jsx)(i.Markdown,{...t(d.NmY.LearnMore),label:e("learn-more.label","Give more details about the collaboration"),description:e("description.help",'Appears as a "Learn more" link on the card and a link on the collaboration page, which opens in a modal')}),(0,a.jsx)(i.Text,{...t(d.NmY.ActionTypeLabel),label:e("action-type.label","Collaboration label"),description:e("action-type.help","Label to show at the top of the collaboration")}),u.includes(n)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Text,{...t(d.NmY.RewardInfo),label:e("reward-info.label","Add more info about the reward"),description:e("reward-info.help","Appears around the reward amount on the collaboration page")}),(0,a.jsx)(i.TextArea,{...t(d.NmY.RewardTooltip),label:e("reward-tooltip.label","Add a tooltip to explain the reward")})]}),m.includes(n)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Text,{...t(d.NmY.CommissionInfo),label:e("commission-info.label","Add a tooltip to explain the commission"),description:e("commission-info.help","Appears around the commission on the collaboration page")}),(0,a.jsx)(i.TextArea,{...t(d.NmY.CommissionTooltip),label:e("commission-tooltip.label","Add a tooltip to explain the commission")})]})]})]})})]})};n()}catch(e){n(e)}})},896950(e,i,t){t.a(e,async function(e,n){try{t.d(i,{y:()=>s});var a=t(205599),l=t(234821),r=e([l]);let o=(l=(r.then?(await r)():r)[0]).jJ.object().shape({[a.NmY.ActionTypeLabel]:l.jJ.string(),[a.NmY.CommissionTooltip]:l.jJ.string(),[a.NmY.Cta]:l.jJ.string(),[a.NmY.Description]:l.jJ.string(),[a.NmY.ImageUrl]:l.jJ.string(),[a.NmY.LearnMore]:l.jJ.string(),[a.NmY.RewardInfo]:l.jJ.string(),[a.NmY.CommissionInfo]:l.jJ.string(),[a.NmY.RewardTooltip]:l.jJ.string(),[a.NmY.ShareLinkTooltip]:l.jJ.string(),[a.NmY.ShareReferralCodeTooltip]:l.jJ.string(),[a.NmY.Title]:l.jJ.string()}),s=l.jJ.object().shape({locales:l.jJ.array().of(l.jJ.object().shape({localeConfigId:l.jJ.string().required(),values:o}))});n()}catch(e){n(e)}})},602911(e,i,t){t.a(e,async function(e,n){try{t.d(i,{R:()=>f,i:()=>x});var a=t(63696),l=t(843506),r=t(621927),o=t(391734),s=t(196864),d=t(279311),c=t(205599),u=t(989471),m=t(281033),p=t(896950),h=e([d,o,s,r,m,p,u]);[d,o,s,r,m,p,u]=h.then?(await h)():h;let f=()=>{let{t:e}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview"}),{data:i}=(0,d.j)(),[t,n]=(0,a.useState)(null),[u,h]=(0,a.useState)(0),{formattedValue:f}=(0,o._)(),{formattedValue:x}=(0,s.q)(),{formState:{contentDetails:g,type:y}}=(0,r.c)(),b=(0,a.useCallback)((e,i)=>{var t;return null==(t=g.find(t=>{let{localeConfigurationId:n,key:a}=t;return n===e&&i===a}))?void 0:t.value},[g]),v=(0,m.mN)({schema:p.y,defaultValues:{locales:i.influencerMerchant.programme.localeConfigurations.map(i=>({localeConfigId:i.id,values:Object.fromEntries(Object.values(c.NmY).map(t=>[t,b(i.id,t)||e(`defaults.${t.toLowerCase()}${f?"-with-commission":""}`,"",{commissionValue:f,rewardValue:x,context:y})]))}))}}),j=(0,a.useCallback)(e=>`locales.${u}.values.${e}`,[u]),w=(0,a.useCallback)(e=>({fieldPath:j(e),onFocus:()=>{n(e)},onBlurCapture:()=>{n(null)}}),[j]),T=(0,a.useCallback)(e=>({"data-is-editing":t===e,onClick:()=>{v.formApi.setFocus(j(e)),n(e)}}),[t,j,v]);return{form:v,currentFocusedElement:t,selectedLocaleIndex:u,setSelectedLocaleIndex:h,createFocusHandlers:w,createElementSelectHandlers:T,locales:i.influencerMerchant.programme.localeConfigurations.map(e=>e.locale)}},x=()=>u.sQ.useWizardStepState();n()}catch(e){n(e)}})},146934(e,i,t){t.a(e,async function(e,n){try{t.d(i,{B:()=>f});var a=t(63696),l=t(843506),r=t(621927),o=t(391734),s=t(196864),d=t(279311),c=t(602911),u=t(205599),m=e([d,r,c,s,o]);[d,r,c,s,o]=m.then?(await m)():m;let p={AMOUNT:"AMOUNT",PERCENTAGE:"PERCENT"},h=(e,i)=>0===i||i?[{key:e,value:String(i)}]:[],f=()=>{var e;let{t:i}=(0,l.Bd)("influencers",{keyPrefix:"collaborations.wizard.preview.mock-data"}),{data:{influencerMerchant:{displayName:t,partnerCode:n,programme:{localeConfigurations:m}}}}
1=(0,d.j)(),{formState:{type:f,actionDetails:{requiresContentApproval:x,contentRequirements:g},agreementDetails:{type:y,customTerms:b}}}=(0,r.c)(),{form:{formApi:{watch:v}},selectedLocaleIndex:j}=(0,c.i)(),{value:w,type:T}=(0,s.q)(),{value:k,type:S,currency:C}=(0,o._)(),{ACTION_TYPE_LABEL:N,TITLE:P,DESCRIPTION:E,LEARN_MORE:A,REWARD_TOOLTIP:I,REWARD_INFO:R,COMMISSION_TOOLTIP:_}=v(`locales.${j}`).values,D=(null==(e=m.at(j))?void 0:e.locale)??void 0;return(0,a.useMemo)(()=>{var e,a;return{id:"FAKE",type:f,startDate:null,endDate:null,description:"",configuration:[{key:"REQUIRES_CONTENT_APPROVAL",value:x?"1":"0"},...h("ELIGIBLE_SOCIAL_PLATFORMS",null==g||null==(e=g.platforms)?void 0:e.join(",")),...h("ELIGIBLE_SOCIAL_POST_TYPES",(null==g||null==(a=g.postTypes)?void 0:a.join(","))??""),...h("NUMBER_OF_POSTS_TOTAL",null==g?void 0:g.totalPosts),...h("NUMBER_OF_POSTS_ON_INSTAGRAM",null==g?void 0:g.totalInstagramPosts),...h("NUMBER_OF_POSTS_ON_TIKTOK",null==g?void 0:g.totalTikTokPosts),...h("NUMBER_OF_FEED_POSTS",null==g?void 0:g.totalFeedPosts),...h("NUMBER_OF_REELS",null==g?void 0:g.totalReelPosts),...h("NUMBER_OF_STORIES",null==g?void 0:g.totalStoryPosts)],reward:w&&T?{id:"FAKE",amount:String(w),amountType:p[T],spendConstraint:null,locale:D}:null,paymentConfiguration:S&&C&&k?{currency:C,rate:k,type:S}:null,promise:{id:"FAKE",isCouponCodeRequested:!1,coupon:{id:"FAKE",couponCode:"FAKE10"},influencer:{id:"FAKE"}},content:[{key:u.NmY.ActionTypeLabel,type:"TEXT",value:N??""},{key:u.NmY.Title,type:"TEXT",value:P??i("configure-the-title","Configure the title")},{key:u.NmY.Description,type:"TEXT",value:E??i("configure-the-description","Configure the description")},{key:u.NmY.LearnMore,type:"MARKDOWN",value:A??""},{key:u.NmY.RewardTooltip,type:"TEXT",value:I??""},{key:u.NmY.RewardInfo,type:"TEXT",value:R??""},{key:u.NmY.CommissionTooltip,type:"TEXT",value:_??""}],merchant:{partnerCode:n,displayName:t},agreementDefinition:{id:"FAKE",agreementType:y,agreementCustomTerms:b}}},[f,x,null==g?void 0:g.platforms,null==g?void 0:g.postTypes,null==g?void 0:g.totalPosts,null==g?void 0:g.totalInstagramPosts,null==g?void 0:g.totalTikTokPosts,null==g?void 0:g.totalFeedPosts,null==g?void 0:g.totalReelPosts,null==g?void 0:g.totalStoryPosts,w,T,D,S,C,k,N,P,i,E,A,I,R,_,n,t,y,b])};n()}catch(e){n(e)}})},861243(e,i,t){t.d(i,{T_:()=>l,a_:()=>r});var n=t(595774),a=t(48623);(0,n.dU)("Cornflower80"),(0,n.dU)("Cornflower10"),(0,n.dU)("Cornflower10");let l=(0,a.default)(n.so).attrs({border:"Navy20",backgroundColor:"White",borderRadius:"default",overflow:"hidden",padding:2,width:"100%",height:"100%",flexDirection:"column",justifyContent:"space-between"}).withConfig({displayName:"styles__PreviewCardLayout"})([""]),r=(0,a.default)(n.az).attrs({backgroundColor:"Skeleton",borderRadius:"default"}).withConfig({displayName:"styles__PreviewPlaceholder"})([""])},543818(e,i,t){t.d(i,{$O:()=>l,dW:()=>r,rj:()=>o});var n=t(595774),a=t(48623);let l=(0,a.default)(n.so).attrs({as:n.H4,gap:1,alignItems:"center",marginBottom:2}).withConfig({displayName:"CollaborationWizardSummaryStep.styled__SummaryHeading"})(["svg{width:20px;height:20px;}"]),r=(0,a.default)(n.XI.Cell).withConfig({displayName:"CollaborationWizardSummaryStep.styled__TitleCell"})(["font-weight:bold;width:200px;"]),o=a.default.a.withConfig({displayName:"CollaborationWizardSummaryStep.styled__TruncatedLink"})(["display:block;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"])},307665(e,i,t){t.a(e,async function(e,n){try{t.d(i,{P:()=>b});
1var a=t(562540),l=t(595774),r=t(843506),o=t(408432),s=t(281033),d=t(234821),c=t(737252),u=t(621927),m=t(651235),p=t(114263),h=t(541624),f=t(29282),x=t(588927),g=t(996749),y=e([g,h,x,f,m,p,s,u,d]);[g,h,x,f,m,p,s,u,d]=y.then?(await y)():y;let b=()=>{let{t:e}=(0,r.Bd)("influencers"),{formState:i}=(0,u.c)();return(0,a.jsxs)(l.so,{flexDirection:"column",gap:3,children:[(0,a.jsxs)(l.so,{flexDirection:"column",alignItems:"center",gap:1,children:[(0,a.jsx)(l.JU,{variant:"flair",children:e("collaborations.collaboration-type.label",{context:i.type})}),(0,a.jsx)(l.H3,{children:e("collaborations.wizard.summary.title","Collaboration summary")}),(0,a.jsx)(l.S,{children:e("collaborations.wizard.summary.description","Review your collaboration settings")})]}),(0,a.jsx)(l.az,{maxWidth:"950px",width:"100%",style:{margin:"0 auto"},children:(0,a.jsxs)(l.xA,{columns:2,children:[(0,a.jsx)(g.O,{}),(0,a.jsx)(h.T,{}),(0,a.jsx)(x.K,{}),(0,a.jsx)(f.z,{})]})})]})},v=()=>{let e=(0,o.Zp)(),{merchantId:i,programmeId:t}=(0,s.Ct)(),{t:n}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard"});return(0,a.jsx)(l.$n,{onClick:()=>{e((0,d.Jv)("fe_influencers_collaborations",{merchantId:i,programmeId:t}))},variant:"secondary",children:n("close","Close")})},j=()=>{let{createActionDefinition:e,loading:i}=(0,m.n)(),t=(0,o.Zp)(),{merchantId:n}=(0,s.Ct)(),{formState:c}=(0,u.c)(),{t:p}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.actions.create"}),h=async()=>{let{hasConfirmedAgreementTerms:i,contentRestriction:a,...l}=c;try{await e(l),await t((0,d.Jv)("fe_influencers_collaborations",{merchantId:n}))}catch(e){console.error("Error creating action definition:",e)}};return(0,a.jsx)(l.$n,{onClick:h,isLoading:i,children:p("create-and-publish","Create collaboration")})},w=()=>{let{editActionDefinition:e,loading:i}=(0,p.Z)(),t=(0,o.Zp)(),{merchantId:n}=(0,s.Ct)(),{formState:c}=(0,u.c)(),{t:m}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.actions.edit"}),h=async()=>{let{hasConfirmedAgreementTerms:i,contentRestriction:a,type:l,...r}=c;try{await e(r),await t((0,d.Jv)("fe_influencers_collaborations",{merchantId:n}))}catch(e){console.error("Error creating action definition:",e)}};return(0,a.jsx)(l.$n,{onClick:h,isLoading:i,children:m("save-changes","Save changes")})};b.Name=()=>{let{t:e}=(0,r.Bd)("influencers");return(0,a.jsx)(a.Fragment,{children:e("collaborations.wizard.steps.summary","Summary")})},b.NextButton=()=>{let{actionDefinitionId:e}=(0,s.Ct)(),{isReadOnly:i}=(0,u.c)();return i?(0,a.jsx)(v,{}):e?(0,a.jsx)(w,{}):(0,a.jsx)(j,{})},b.ExtraButton=c.o,n()}catch(e){n(e)}})},541624(e,i,t){t.a(e,async function(e,n){try{t.d(i,{T:()=>f});
1var a=t(562540),l=t(823527),r=t(595774),o=t(843506),s=t(621927),d=t(543818),c=t(624862),u=t(580505),m=t(768026),p=t(834500),h=e([s,p,c,m,u]);[s,p,c,m,u]=h.then?(await h)():h;let f=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.actions"}),{formState:{type:i}}=(0,s.c)();return(0,a.jsxs)(r.Zp,{variant:"border",children:[(0,a.jsxs)(d.$O,{children:[(0,a.jsx)(l.A,{}),e("title","Actions")]}),(0,a.jsx)(r.XI,{children:(0,a.jsxs)(r.XI.Body,{children:["GIVE_DISCOUNT"===i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.R,{}),(0,a.jsx)(c.Z,{}),(0,a.jsx)(m.x,{})]}),"CONTENT_POSTING"===i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.o,{}),(0,a.jsx)(m.x,{})]}),"CONTENT_CREATION"===i&&(0,a.jsx)(u.o,{})]})})]})};n()}catch(e){n(e)}})},29282(e,i,t){t.a(e,async function(e,n){try{t.d(i,{z:()=>u});var a=t(562540),l=t(796112),r=t(595774),o=t(843506),s=t(621927),d=t(543818),c=e([s]);s=(c.then?(await c)():c)[0];let u=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.agreements"}),{formState:i}=(0,s.c)();return(0,a.jsxs)(r.Zp,{variant:"border",children:[(0,a.jsxs)(d.$O,{children:[(0,a.jsx)(l.A,{}),e("title","Terms & agreements")]}),(0,a.jsx)(r.XI,{children:(0,a.jsx)(r.XI.Body,{children:(0,a.jsxs)(r.XI.Row,{children:[(0,a.jsx)(d.dW,{children:e("type.label","Terms type")}),(0,a.jsx)(r.XI.Cell,{children:"STANDARD_TERMS"===i.agreementDetails.type?e("type.standard","Standard programme terms"):e("type.custom","Custom collaboration terms")})]})})})]})};n()}catch(e){n(e)}})},588927(e,i,t){t.a(e,async function(e,n){try{t.d(i,{K:()=>u});
1var a=t(562540),l=t(624270),r=t(595774),o=t(843506),s=t(621927),d=t(543818),c=e([s]);s=(c.then?(await c)():c)[0];let u=()=>{let{t:e}=(0,o.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.briefing"}),{formState:i}=(0,s.c)();return(0,a.jsxs)(r.Zp,{variant:"border",children:[(0,a.jsxs)(d.$O,{children:[(0,a.jsx)(l.A,{}),e("title","Briefings")]}),(0,a.jsx)(r.XI,{children:(0,a.jsx)(r.XI.Body,{children:(0,a.jsxs)(r.XI.Row,{children:[(0,a.jsx)(d.dW,{children:e("briefing-url.label","Briefing link")}),(0,a.jsx)(r.XI.Cell,{children:i.briefingDetails.url?(0,a.jsx)(r.N_,{variant:"inline",as:d.rj,href:i.briefingDetails.url,target:"_blank",rel:"noopener noreferrer",children:i.briefingDetails.url}):e("briefing-url.not-provided","Not provided")})]})})})]})};n()}catch(e){n(e)}})},624862(e,i,t){t.a(e,async function(e,n){try{t.d(i,{Z:()=>u});var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(234821),d=t(543818),c=e([o,s]);[o,s]=c.then?(await c)():c;let u=()=>{var e;let{t:i}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.influencer-commission"}),{formState:t}=(0,o.c)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(d.dW,{children:i("label","Influencer commission")}),(0,a.jsx)(l.XI.Cell,{children:t.actionDetails.influencerCommission?((e,t)=>{switch(e){case"PERCENTAGE":return i("value.percentage","{{value}}% of sale value",{value:t});case"FLAT_FEE":return i("value.flat","\xa3{{value}} per sale",{value:t});default:return i("value.none","No commission")}})(t.actionDetails.influencerCommission.type,t.actionDetails.influencerCommission.value):i("value.not-set","Not configured")})]}),(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(d.dW,{children:i("curency.label","Commission currency")}),(0,a.jsx)(l.XI.Cell,{children:(null==(e=t.actionDetails.influencerCommission)?void 0:e.currency)?`${(0,s.Qn)(t.actionDetails.influencerCommission.currency)} (${t.actionDetails.influencerCommission.currency})`:i("value.not-set","Not configured")})]})]})};n()}catch(e){n(e)}})},580505(e,i,t){t.a(e,async function(e,n){try{t.d(i,{o:()=>u});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(234821),d=t(543818),c=e([o,s]);[o,s]=c.then?(await c)():c;let u=()=>{var e,i,t;let{t:n}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.influencer-compensation"}),{formState:c}=(0,o.c)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(d.dW,{children:n("label","Influencer Compensation")}),(0,a.jsx)(l.XI.Cell,{children:c.actionDetails.influencerCommission?(i=c.actionDetails.influencerCommission.type,t=c.actionDetails.influencerCommission.value,"FLAT_FEE"===i?n("value.flat","\xa3{{value}}",{value:t}):n("value.none","No Compensation")):n("value.not-set","Not configured")})]}),(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(d.dW,{children:n("curency.label","Compensation currency")}),(0,a.jsx)(l.XI.Cell,{children:(null==(e=c.actionDetails.influencerCommission)?void 0:e.currency)?`${(0,s.Qn)(c.actionDetails.influencerCommission.currency)} (${c.actionDetails.influencerCommission.currency})`:n("value.not-set","Not configured")})]})]})};n()}catch(e){n(e)}})},768026(e,i,t){t.a(e,async function(e,n){try{t.d(i,{x:()=>c});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(543818),d=e([o]);o=(d.then?(await d)():d)[0];let c=()=>{let{t:e}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.influencer-content"}),{formState:{type:i,actionDetails:{requiresContentApproval:t,contentRequirements:n}}}=(0,o.c)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("content-approval.label","Requires content approval?")}),(0,a.jsx)(l.XI.Cell,{children:(0,a.jsx)(l.JU,{variant:"flair",backgroundColour:t?"GreenDark":"Navy80",children:t?e("product-gifting.enabled","Yes"):e("product-gifting.disabled","No")})})]}),"CONTENT_POSTING"===i&&(0,a.jsxs)(a.Fragment,{children:[!!(null==n?void 0:n.platforms)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("platforms.label","Platforms")}),(0,a.jsx)(l.XI.Cell,{children:n.platforms.map(i=>e(`platforms.values.${i}`,i)).join(", ")})]}),!!(null==n?void 0:n.postTypes)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("post-types.label","Post types")}),(0,a.jsx)(l.XI.Cell,{children:n.postTypes.map(i=>e(`post-types.values.${i}`,i)).join(", ")})]}),!!(null==n?void 0:n.totalPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-posts.label","Number of posts")}),(0,a.jsx)(l.XI.Cell,{children:n.totalPosts})]}),!!(null==n?void 0:n.totalInstagramPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-instagram-posts.label","Number of Instagram posts")}),(0,a.jsx)(l.XI.Cell,{children:n.totalInstagramPosts})]}),!!(null==n?void 0:n.totalTikTokPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-tiktok-posts.label","Number of TikTok posts")}),(0,a.jsx)(l.XI.Cell,{children:n.totalTikTokPosts})]}),!!(null==n?void 0:n.totalFeedPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-feed-posts.label","Number of posts on feed")}),(0,a.jsx)(l.XI.Cell,{children:n.totalFeedPosts})]}),!!(null==n?void 0:n.totalStoryPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-story-posts.label","Number of Instagram stories")}),(0,a.jsx)(l.XI.Cell,{children:n.totalStoryPosts})]}),!!(null==n?void 0:n.totalReelPosts)&&(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:e("total-reel-posts.label","Number of Instagram reels")}),(0,a.jsx)(l.XI.Cell,{children:n.totalReelPosts})]})]})]})};n()}catch(e){n(e)}})},996749(e,i,t){t.a(e,async function(e,n){try{t.d(i,{O:()=>m});
1var a=t(562540),l=t(135156),r=t(137800),o=t(595774),s=t(843506),d=t(621927),c=t(543818),u=e([d]);d=(u.then?(await u)():u)[0];let m=()=>{let{t:e}=(0,s.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.details"}),{formState:i}=(0,d.c)();return(0,a.jsxs)(o.Zp,{variant:"border",children:[(0,a.jsxs)(c.$O,{children:[(0,a.jsx)(l.A,{}),e("title","Collaboration details")]}),(0,a.jsx)(o.XI,{children:(0,a.jsxs)(o.XI.Body,{children:[(0,a.jsxs)(o.XI.Row,{children:[(0,a.jsx)(c.dW,{children:e("name.label","Collaboration name")}),(0,a.jsx)(o.XI.Cell,{children:i.details.name})]}),(0,a.jsxs)(o.XI.Row,{children:[(0,a.jsx)(c.dW,{children:e("description.label","Description")}),(0,a.jsx)(o.XI.Cell,{children:i.details.description})]}),(0,a.jsxs)(o.XI.Row,{children:[(0,a.jsx)(c.dW,{children:e("product-gifting.label","Product gifting")}),(0,a.jsx)(o.XI.Cell,{children:(0,a.jsx)(o.az,{children:(0,a.jsx)(o.JU,{variant:"flair",backgroundColour:i.details.hasProductGifting?"GreenDark":"Navy80",children:i.details.hasProductGifting?e("product-gifting.enabled","Enabled"):e("product-gifting.disabled","Disabled")})})})]})]})}),(0,a.jsx)(o.az,{marginTop:1,children:(0,a.jsxs)(o.kY,{variant:"light",size:"xs",isFullWidth:!0,children:[(0,a.jsx)(o.kY.Icon,{children:(0,a.jsx)(r.A,{})}),(0,a.jsx)(o.kY.Body,{children:e("notice","The title & description are for admin reference only. Influencer content is configured on the preview step.")})]})})]})};n()}catch(e){n(e)}})},834500(e,i,t){t.a(e,async function(e,n){try{t.d(i,{R:()=>c});
1var a=t(562540),l=t(595774),r=t(843506),o=t(621927),s=t(543818),d=e([o]);o=(d.then?(await d)():d)[0];let c=()=>{var e;let{t:i}=(0,r.Bd)("influencers",{keyPrefix:"collaborations.wizard.summary.follower-reward"}),{formState:t}=(0,o.c)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:i("label","Follower incentive")}),(0,a.jsx)(l.XI.Cell,{children:t.actionDetails.followerReward?((e,t)=>{switch(e){case"PERCENTAGE":return i("value.percentage","{{value}}% discount",{value:t});case"AMOUNT":return i("value.flat","\xa3{{value}} off",{value:t})}})(t.actionDetails.followerReward.type,t.actionDetails.followerReward.value):i("value.not-set","Not configured")})]}),(0,a.jsxs)(l.XI.Row,{children:[(0,a.jsx)(s.dW,{children:i("min-spend.label","Minimum spend")}),(0,a.jsx)(l.XI.Cell,{children:(null==(e=t.actionDetails.followerReward)?void 0:e.hasMinimumSpend)&&"number"==typeof t.actionDetails.followerReward.minimumSpendValue?(0,l.vv)(t.actionDetails.followerReward.minimumSpendValue,{currencySymbol:"\xa3"}):i("min-spend.not-set","Not configured")})]})]})};n()}catch(e){n(e)}})},710551(e,i,t){t.a(e,async function(e,n){try{t.d(i,{P:()=>a.P});var a=t(307665),l=e([a]);a=(l.then?(await l)():l)[0],n()}catch(e){n(e)}})},861672(e,i,t){t.d(i,{f:()=>o,l:()=>l});var n=t(562540),a=t(595774);let l=t(48623).default.div.withConfig({displayName:"IntegrationCard__IntegrationLogoContainer"})(["width:48px;height:48px;border-radius:10px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:",";padding:",";img,svg{width:100%;height:100%;object-fit:contain;}"],(0,a.dU)("GreyLight"),(0,a.YK)(1)),r={connected:["GreenPale","GreenDark"],"not-connected":["GreyLight","GreyDark"],warning:["YellowPale","YellowFont"]},o=e=>{let{logo:i,title:t,description:o,status:s,statusLabel:d,actions:c}=e;return(0,n.jsxs)(a.Zp,{variant:"border",children:[(0,n.jsx)(a.Zp.Icon,{children:(0,n.jsx)(l,{children:i})}),(0,n.jsx)(a.Zp.Title,{children:(0,n.jsx)(a.H5,{children:t})}),(0,n.jsx)(a.Zp.Info,{}),(0,n.jsx)(a.Zp.Description,{children:(0,n.jsx)(a.XS,{children:o})}),(0,n.jsx)(a.Zp.Footer,{children:(0,n.jsxs)(a.so,{justifyContent:"space-between",marginTop:1,alignItems:"center",children:[(0,n.jsx)(a.az,{children:(0,n.jsx)(a.JU,{variant:"flair",backgroundColour:r[s].at(0),fontColour:r[s].at(1),children:d})}),(0,n.jsx)(a.az,{children:c})]})})]})}},790861(e,i,t){t.d(i,{yD:()=>l,yK:()=>a});var n=t(353452);let a=n.object().shape({CreatedDate:n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nonNullable().nonNullable({key:"influencer-action-definition.created-date.not-null",defaultMessage:"This value should not be null.",variables:{}}),UpdatedDate:n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nonNullable().nonNullable({key:"influencer-action-definition.updated-date.not-null",defaultMessage:"This value should not be null.",variables:{}}),description:n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable(),endDate:n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nullable(),id:n.number().integer().typeError({key:"type.int",defaultMessage:"Please enter a whole number.",variables:{}}).nonNullable(),name:n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable(),startDate:n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nullable(),timezone:n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable()});n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nonNullable().nonNullable({key:"influencer-action-definition.created-date.not-null",defaultMessage:"This value should not be null.",variables:{}}),n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nonNullable().nonNullable({key:"influencer-action-definition.updated-date.not-null",defaultMessage:"This value should not be null.",variables:{}}),n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable(),n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nullable(),n.number().integer().typeError({key:"type.int",defaultMessage:"Please enter a whole number.",variables:{}}).nonNullable();let l=n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable();n.date().typeError({key:"type.date",defaultMessage:"Please enter a valid date.",variables:{}}).nullable(),n.string().typeError({key:"type.string",defaultMessage:"Please enter a value",variables:{}}).nonNullable()}}]);
2//# sourceMappingURL=14119.v2.34a0363a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.