1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[699],{38659:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/influencer/cta-automation",function(){return s(1382)}])},1382:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return $}});var r=s(85893),a=s(67294),l=s(27039),n=s(53219),o=s(81914),i=s(5097),d=s(49525),c=s(41352),x=s(31012),p=s(4844),m=s(90470),u=s(85594),h=s(36316),b=s(73696),g=s(9008),v=s.n(g),f=s(41664),y=s.n(f),j=s(61454),k=s(53306),N=s(98541),w=s(57712),C=s(86501),D=s(5123),A=s(54072),T=s(56506),S=s(13114),L=s(56989);let E=0;function F(){return{id:"p_".concat(Date.now(),"_").concat(++E),keyword:"",destinationUrl:"",overrides:{}}}function B(){return{enabled:!1,scope:"all",influencerIds:[],products:[F()],platforms:{youtube:{enabled:!1,ctaLine:"Get yours now at {link}",pinnedComment:"Get yours \uD83D\uDC49 {link}"},tiktokShop:{enabled:!1,ctaLine:"Click the yellow shopping cart down below \uD83D\uDED2"},tiktok:{enabled:!1,ctaLine:"Click the link in my bio \uD83D\uDC46"},instagram:{enabled:!1,ctaLine:'Comment "{keyword}" and I\'ll send you the link \uD83D\uDC47',replyVariants:["Sent, check dm's \uD83D\uDD25","Sent you the link, check dm's!","Lets go! Check your DMs! \uD83D\uDD25"],openingDm:"Thanks for your interest!\n\nClick below and I'll send you the link in just a sec \uD83D\uDD25",openingDmButton:"Send me the link"},igStory:{enabled:!1,ctaLine:'Reply "{keyword}" and I\'ll send you the link â¡',linkSticker:!0}}}}let Z=["youtube","tiktokShop","tiktok","instagram","igStory"],_={youtube:{name:"YouTube Shorts",chipLabel:"YouTube",method:"Spoken CTA",badge:"default",desc:"No DM automation on YouTube â the influencer says the destination out loud."},tiktokShop:{name:"TikTok Shop",chipLabel:"TikTok Shop",method:"Shop card",badge:"shop",desc:"Points viewers at the yellow product card attached to the video."},tiktok:{name:"TikTok",chipLabel:"TikTok",method:"Link in bio",badge:"default",desc:"No comment-to-DM API on TikTok â the CTA sends viewers to the bio link instead."},instagram:{name:"Instagram",chipLabel:"Instagram",method:"Comment â DM",badge:"auto",desc:"Reels & posts â commenting the keyword triggers an auto-reply and a DM with your link."},igStory:{name:"Instagram Story",chipLabel:"IG Story",method:"Reply â DM",badge:"auto",desc:"Story replies land in your DMs â replying the keyword triggers the link automatically."}};function M(e){let{platform:t,size:s=26}=e,l=(0,a.useId)().replace(/[^a-zA-Z0-9]/g,"");return"youtube"===t?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:s+2,height:s+2,children:[(0,r.jsx)("rect",{x:"2",y:"5",width:"20",height:"14",rx:"4.5",fill:"#FF0000"}),(0,r.jsx)("path",{d:"M10 8.6l6 3.4-6 3.4z",fill:"#fff"})]}):"tiktokShop"===t?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:s-1,height:s-1,children:[(0,r.jsx)("path",{d:"M3.5 5h2l2.1 9.7A2 2 0 0 0 9.55 16.3H17a2 2 0 0 0 1.95-1.55L20.5 8.5H6.2",fill:"none",stroke:"#EAB308",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("circle",{cx:"10",cy:"20",r:"1.5",fill:"#EAB308"}),(0,r.jsx)("circle",{cx:"16.6",cy:"20",r:"1.5",fill:"#EAB308"})]}):"tiktok"===t?(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:s-1,height:s-1,style:{color:"var(--ink)"},children:(0,r.jsx)("path",{d:"M16.5 3c.3 2 1.6 3.6 3.5 3.9v2.6c-1.2 0-2.4-.4-3.4-1.1v6.5c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6c.3 0 .6 0 .9.1v2.7c-.3-.1-.6-.2-.9-.2-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4 3.4-1.5 3.4-3.4V3h2z",fill:"currentColor"})}):"igStory"===t?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:s,height:s,children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:l,x1:"0",y1:"1",x2:"1",y2:"0",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#FEDA77"}),(0,r.jsx)("stop",{offset:".5",stopColor:"#DD2A7B"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#8134AF"})]})}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"8.6",fill:"none",stroke:"url(#".concat(l,")"),strokeWidth:"2",strokeDasharray:"6 3.5",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"4.6",fill:"none",stroke:"url(#".concat(l,")"),strokeWidth:"2"})]}):(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:s,height:s,children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:l,x1:"0",y1:"1",x2:"1",y2:"0",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#FEDA77"}),(0,r.jsx)("stop",{offset:".5",stopColor:"#DD2A7B"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#8134AF"})]})}),(0,r.jsx)("rect",{x:"3.2",y:"3.2",width:"17.6",height:"17.6",rx:"5.5",fill:"none",stroke:"url
1(#".concat(l,")"),strokeWidth:"2"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"4.2",fill:"none",stroke:"url(#".concat(l,")"),strokeWidth:"2"}),(0,r.jsx)("circle",{cx:"17",cy:"7",r:"1.3",fill:"url(#".concat(l,")")})]})}function P(e){let{dark:t}=e;return(0,r.jsxs)("div",{className:"relative z-[3] flex items-center justify-between px-[18px] pt-[9px] pb-[5px] text-[10px] font-bold flex-none ".concat(t?"text-white":"text-[#16181d]"),children:[(0,r.jsx)("span",{children:"9:41"}),(0,r.jsx)("span",{children:"âââ â®"})]})}function I(e){let{initial:t,size:s=26}=e;return(0,r.jsx)("span",{className:"rounded-full flex-none grid place-items-center text-white font-extrabold text-[11px]",style:{width:s,height:s,background:"linear-gradient(135deg,#FEDA77,#DD2A7B,#8134AF)"},children:t})}function z(e){let{size:t=26}=e;return(0,r.jsx)("span",{className:"rounded-full flex-none bg-[#eceef0]",style:{width:t,height:t}})}function K(e){let{items:t}=e;return(0,r.jsx)("div",{className:"absolute right-[10px] bottom-[90px] flex flex-col items-center gap-3 text-[9px] text-white text-center",children:t.map(e=>{let[t,s]=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"w-[30px] h-[30px] rounded-full grid place-items-center text-[14px] mb-0.5",style:{background:"rgba(255,255,255,.14)"},children:t}),s]},s)})})}function V(e){let t,{platform:s,stage:a,values:l,handle:n,initial:o}=e,i="instagram"!==s;return t="instagram"===s&&"comments"===a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative flex items-center justify-center px-3 py-2 border-b border-black/[.09] text-[12px] font-bold flex-none",children:[(0,r.jsx)("span",{className:"absolute left-3 text-[15px] font-normal",children:"â¹"}),"Comments"]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-3",children:(0,r.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,r.jsx)(z,{}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{children:"username"})," ",(0,r.jsx)("span",{className:"text-[#646a73] text-[10px] font-normal",children:"2m"}),(0,r.jsx)("div",{children:l.kw}),(0,r.jsx)("div",{className:"text-[#646a73] text-[10px] font-semibold mt-0.5",children:"Reply \xb7 Share"}),(0,r.jsxs)("div",{className:"flex gap-2 mt-2.5",children:[(0,r.jsx)(I,{initial:o}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("b",{children:n})," ",(0,r.jsx)("span",{className:"text-[#646a73] text-[10px] font-normal",children:"1m \xb7 Author"}),(0,r.jsx)("div",{children:l.reply}),(0,r.jsx)("div",{className:"text-[#646a73] text-[10px] font-semibold mt-0.5",children:"Reply"})]}),(0,r.jsx)("span",{className:"ml-auto text-[#646a73]",children:"â¡"})]})]}),(0,r.jsx)("span",{className:"ml-auto text-[#646a73]",children:"â¡"})]})}),(0,r.jsxs)("div",{className:"flex items-center gap-2 border-t border-black/[.09] px-3 py-2 text-[#646a73] text-[10.5px] flex-none",children:[(0,r.jsx)(z,{size:22}),"Add a commentâ¦"]})]}):"instagram"===s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative flex items-center justify-center px-3 py-2 border-b border-black/[.09] text-[12px] font-bold flex-none",children:[(0,r.jsx)("span",{className:"absolute left-3 text-[15px] font-normal",children:"â¹"}),n]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"text-center text-[#646a73] text-[9.5px] px-4 py-0.5",children:[n," messaged you about a comment you made on their post. See Post"]}),(0,r.jsxs)("div",{className:"flex gap-1.5 items-end",children:[(0,r.jsx)(I,{initial:o,size:22}),(0,r.jsxs)("div",{className:"max-w-[78%] rounded-2xl px-[11px] py-[9px] bg-[#f5f6f7] whitespace-pre-line",children:[l.openDm,(0,r.jsx)("div",{className:"mt-2 bg-white border border-black/[.09] rounded-[9px] px-2.5 py-[7px] text-center font-semibold",children:l.openBtn})]})]}),(0,r.jsx)("div",{className:"flex gap-1.5 items-end justify-end",children:(0,r.jsx)("div",{className:"max-w-[78%] rounded-2xl px-[11px] py-[9px] bg-[#3797f0] text-white whitespace-pre-line",children:l.openBtn})}),(0,r.jsxs)("div",{className:"flex gap-1.5 items-end",children:[(0,r.jsx)(I,{initial:o,size:22}),(0,r.jsxs)("div",{className:"max-w-[78%] rounded-2xl px-[11px] py-[9px] bg-[#f5f6f7] whitespace-pre-line",children:[l.linkDm,(0,r.jsx)("div",{className:"mt-2 bg-white border border-black/[.09] rounded-[9px] px-2.5 py-[7px] text-center font-semibold",children:"Open Link \uD83D\uDD17"})]})]})]}),(0,r.jsx)("div",{className:"border-t border-black/[.09] px-3 py-2 text-[#646a73] text-[10.5px] flex-none",children:"Messageâ¦"})]}):"igStory"===s?(0,r.jsxs)("div",{className:"flex-1 relative",style:{background:"linear-gradient(160deg,#DD2A7B,#8134AF)"},children:[(0,r.jsx)("div",{className:"absolute top-2 left-2.5 right-2.5 h-[2px] rounded-[2px]",style:{background:"rgba(255,255,255,.35)"},children:(0,r.jsx)("i",{className:"block w-[55%] h-full bg-white rounded-[2px]"})}),(0,r.jsxs)("div",{className:"absolute top-4 left-3 flex items-center gap-[7px] text-white font-bold text-[11px]",children:[(0,r.jsx)("span",{className:"w-6 h-6 rounded-full border-[1.5px] border-white",style:{background:"rgba(255,255,255,.3)"}}),n," ",(0,r.jsx)("span",{className:"font-normal opacity-80",children:"2h"})]}),(0,r.jsx)("div",{className:"absolute inset-0 grid place-items-center p-7 text-center text-white font-extrabold text-[16px] leading-[1.35]",style:{textShadow:"0 2px 14px rgba(0,0,0,.25)"},children:l.storyCta}),(0,r.jsxs)("div",{className:"absolute left-3 right-3 bottom-3 flex items-center gap-2 text-white",children:[(0,r.jsx)("span",{className:"flex-1 rounded-full px-[13px] py-2 text-[10.5px]",style:{border:"1.2px solid rgba(255,255,255,.7)",color:"rgba(255,255,255,.85)"},children:"Send message"}),"â¡ â¤"]})]}):"tiktok"===s?(0,r.jsxs)("div",{className:"flex-1 relative",style:{background:"linear-gradient(180deg,#26282e,#141519)"},children:[(0,r.jsx)(K,{items:[["â¥","324K"],["\uD83D\uDCAC","2,118"],["â","Share"]]}),(0,r.jsxs)("div",{className:"absolute left-3 right-14 bottom-3.5 text-white",children:[(0,r.jsxs)("div",{className:"font-bold text-[12px] mb-1",children:["@",n]}),(0,r.jsx)("div",{className:"text-[11px] opacity-95",children:l.ttCta}),(0,r.jsxs)("div",{className:"text-[10px] opacity-70 mt-1",children:["â« original sound â ",n]})]})]}):"tiktokShop"===s?(0,r.jsxs)("div",{className:"flex-1 relative",style:{background:"linear-gradient(180deg,#26282e,#141519)"},children:[(0,r.jsx)(K,{items:[["â¥","324K"],["\uD83D\uDCAC","2,118"],["â","Share"]]}),(0,r.jsxs)("div",{className:"absolute left-3 right-14 bottom-[84px] bg-white rounded-[10px] text-[#111] flex items-center gap-2 px-2.5 py-2",children:[(0,r.jsx)("span",{className:"w-[26px] h-[26px] rounded-[7px] bg-[#FFD200] grid place-items-center text-[13px] flex-none",children:"\uD83D\uDED2"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("b",{className:"text-[11px] block truncate",children:l.kw}),(0,r.jsx)("span",{className:"text-[9.5px] text-[#777]",children:"Tap to view"})]}),(0,r.jsx)("span",{className:"ml-auto text-[#999]",children:"âº"})]}),(0,r.jsxs)("div",{className:"absolute left-3 right-14 bottom-3.5 text-white",children:[(0,r.jsxs)("div",{className:"font-bold text-[12px] mb-1",children:["@",n]}),(0,r.jsx)("div",{className:"text-[11px] opacity-95",children:l.shopCta}),(0,r.jsxs)("div",{className:"text-[10px] opacity-70 mt-1",children:["â« original sound â ",n]})]})]}):(0,r.jsxs)("div",{className:"flex-1 relative",style:{background:"linear-gradient(180deg,#26282e,#141519)"},children:[(0,r.jsx)(K,{items:[["\uD83D\uDC4D","128K"],["\uD83D\uDCAC","1,204"],["â","Share"]]}),(0,r.jsxs)("div",{className:"absolute left-3 right-14 bottom-[84px] rounded-[10px] px-2.5 py-[7px] text-white text-[10px]",style:{background:"rgba(255,255,255,.16)"},children:[(0,r.jsxs)("b",{children:["\uD83D\uDCCC ",n]})," \xb7 ",l.ytPin]}),(0,r.jsxs)("div",{className:"absolute left-3 right-14 bottom-3.5 text-white",children:[(0,r.jsxs)("div",{className:"font-bold text-[12px] mb-1",children:["@",n,(0,r.jsx)("span",{className:"inline-block bg-[#f00] text-white rounded-full px-[9px] py-[2px] font-bold text-[9.5px] ml-[7px] align-[1px]",children:"Subscribe"})]}),(0,r.jsx)("div",{className:"text-[11px] opacity-95",children:l.ytCta})]})]}),(0,r.jsx)("div",{className:"w-[274px] h-[556px] flex-none rounded-[38px] bg-[#0b0c0f] p-[9px]",style:{boxShadow:"0 24px 50px -18px rgba(0,0,0,.5)"},children:(0,r.jsxs)("div",{className:"w-full h-full rounded-[30px] overflow-hidden flex flex-col text-[11px] leading-[1.45] relative ".concat(i?"bg-[#111] text-white":"bg-white text-[#16181d]"),children:[(0,r.jsx)(P,{dark:i}),t]})})}let U="w-full px-3 py-2.5 rounded-[10px] text-sm focus:outline-none transition-colors border placeholder:text-[color:var(--muted2)]",O={background:"var(--bg)",borderColor:"var(--line2)",color:"var(--ink)"};function R(e){let{children:t,muted:s,perKeyword:a}=e;return(0,r.jsxs)("span",{className:"block font-semibold text-[0.82rem] mb-2",style:{color:"var(--ink)"},children:[t,s&&(0,r.jsxs)("span",{className:"font-normal",style:{color:"var(--muted)"},children:[" â ",s]}),a&&(0,r.jsx)("span",{className:"inline-block text-[0.66rem] font-bold uppercase tracking-wide rounded-[5px] px-[7px] py-[2px] ml-1.5 align-[1px]",style:{background:"rgba(22,163,74,.1)",color:"var(--green)"},children:"Per keyword"})]})}function W(e){let{children:t}=e;return(0,r.jsxs)("div",{className:"flex items-start gap-2 rounded-[9px] px-3 py-2 text-[0.82rem]",style:{background:"var(--soft)",color:"var(--muted)"},children:[(0,r.jsx)(L.Z,{className:"w-[15px] h-[15px] flex-none mt-0.5"}),(0,r.jsx)("span",{children:t})]})}function G(e){var t,s;let{open:n,platform:o,onPlatformChange:i,config:d,onChange:p,activeProductId:m,onActiveProductChange:u,brandName:h,isLight:b,onClose:g,onSave:v}=e,[f,y]=(0,a.useState)("comments");(0,a.useEffect)(()=>{y("comments")},[n,o]),(0,a.useEffect)(()=>
1{if(!n)return;document.body.style.overflow="hidden";let e=e=>{"Escape"===e.key&&g()};return document.addEventListener("keydown",e),()=>{document.body.style.overflow="",document.removeEventListener("keydown",e)}},[n,g]);let j=d.products.find(e=>e.id===m)||d.products[0]||null,k=h.toLowerCase().replace(/[^a-z0-9._]/g,"")||"yourbrand",N=(h.trim()[0]||"B").toUpperCase(),w=(e,t)=>p({...d,platforms:{...d.platforms,[e]:{...d.platforms[e],...t}}}),C=(e,t)=>{j&&p({...d,products:d.products.map(s=>s.id===j.id?{...s,overrides:{...s.overrides,[e]:t}}:s)})},D=d.platforms.instagram,A=d.platforms.igStory,L=null!==(t=null==j?void 0:j.overrides.igLinkDm)&&void 0!==t?t:"Here's the link \uD83C\uDF89 {link}",E=null!==(s=null==j?void 0:j.overrides.storyLinkDm)&&void 0!==s?s:"Here you go \uD83C\uDF89 {link}",F=(0,a.useMemo)(()=>{let e=e=>(function(e,t){let s=(null==t?void 0:t.keyword.trim())||"keyword",r=((null==t?void 0:t.destinationUrl.trim())||"").replace(/^https?:\/\//,"").replace(/\/$/,"")||"your link";return String(e||"").split("{keyword}").join(s).split("{link}").join(r)})(e,j),t=D.replyVariants.map(e=>e.trim()).find(Boolean)||"Sent, check dm's \uD83D\uDD25";return{kw:(null==j?void 0:j.keyword.trim())||"Keyword",reply:e(t),openDm:e(D.openingDm),openBtn:D.openingDmButton.trim()||"Send me the link",linkDm:e(L),storyCta:e(A.ctaLine),ttCta:e(d.platforms.tiktok.ctaLine),shopCta:e(d.platforms.tiktokShop.ctaLine),ytCta:e(d.platforms.youtube.ctaLine),ytPin:e(d.platforms.youtube.pinnedComment)}},[d,j,D,A,L]),B=_[o],P=(e,t)=>w("instagram",{replyVariants:D.replyVariants.map((s,r)=>r===e?t:s)}),I=e=>{D.replyVariants.length<=1||w("instagram",{replyVariants:D.replyVariants.filter((t,s)=>s!==e)})};return(0,r.jsx)(S.M,{children:n&&(0,r.jsxs)(l.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.18},className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",style:(0,T.lx)(b),children:[(0,r.jsx)("div",{className:"absolute inset-0",style:{background:b?"rgba(28,28,34,.22)":"rgba(0,0,0,.55)",backdropFilter:"blur(10px) saturate(120%)",WebkitBackdropFilter:"blur(10px) saturate(120%)"},onClick:g}),(0,r.jsxs)(l.E.div,{initial:{opacity:0,y:14,scale:.985},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:14,scale:.985},transition:{duration:.2},role:"dialog","aria-modal":"true","aria-label":"CTA editor",className:"relative w-full max-w-[920px] max-h-[92vh] overflow-auto rounded-3xl px-6 sm:px-7 pt-7 pb-6 border",style:{background:b?"rgba(255,255,255,.82)":"rgba(16,16,18,.88)",backdropFilter:"blur(40px) saturate(180%)",WebkitBackdropFilter:"blur(40px) saturate(180%)",borderColor:b?"rgba(255,255,255,.7)":"rgba(255,255,255,.12)",boxShadow:"0 40px 90px -30px rgba(0,0,0,.45)"},children:[(0,r.jsx)("button",{type:"button",onClick:g,"aria-label":"Close",className:"absolute top-4 right-4 z-[5] w-[34px] h-[34px] rounded-full grid place-items-center transition-colors",style:{background:b?"rgba(0,0,0,.06)":"rgba(255,255,255,.08)",color:"var(--muted)"},children:(0,r.jsx)(c.Z,{className:"w-4 h-4"})}),(0,r.jsx)("h3",{className:"text-[1.45rem] font-extrabold tracking-tight",style:{color:"var(--ink)"},children:B.name}),(0,r.jsxs)("p",{className:"text-[0.88rem] mt-0.5",style:{color:"var(--muted)"},children:["CTA editor \xb7 ",B.method," \xb7 ",F.kw]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mt-4 mb-5",children:Z.map(e=>{let t=e===o;return(0,r.jsxs)("button",{type:"button",onClick:()=>i(e),className:"inline-flex items-center gap-2 rounded-[11px] px-3 py-2 text-[0.85rem] font-semibold transition-colors border-[1.5px]",style:t?{borderColor:"var(--ink)",color:"var(--ink)",boxShadow:"0 0 0 1px var(--ink) inset",background:"var(--card)"}:{borderColor:"var(--line2)",color:"var(--muted)",background:"var(--card)"},children:[(0,r.jsx)("span",{className:"w-[17px] h-[17px] grid place-items-center flex-none",style:t?void 0:{filter:"grayscale(1)",opacity:.55},children:(0,r.jsx)(M,{platform:e,size:17})}),_[e].chipLabel]},e)})}),(0,r.jsxs)("div",{className:"flex items-center flex-wrap gap-[7px] -mt-1.5 mb-[18px]",children:[(0,r.jsx)("span",{className:"text-[0.8rem] font-semibold",style:{color:"var(--muted)"},children:"Keyword:"}),d.products.map((e,t)=>{let s=(null==j?void 0:j.id)===e.id;return(0,r.jsx)("button",{type:"button",onClick:()=>u(e.id),className:"rounded-full px-[13px] py-[5px] text-[0.8rem] font-semibold transition-colors border",style:s?{background:"var(--accent)",borderColor:"var(--accent)",color:"var(--accentFg)"}:{background:"var(--card)",borderColor:"var(--line2)",color:"var(--muted)"},children:e.keyword.trim()||"Keyword ".concat(t+1)},e.id)})]}),(0,r.jsxs)("div",{className:"grid md:grid-cols-[auto_1fr] gap-6 items-start",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 mx-auto md:mx-0",children:[(0,r.jsx)(V,{platform:o,stage:f,values:F,handle:k,initial:N}),"instagram"===o&&(0,r.jsx)("div",{className:"flex flex-wrap justify-center gap-1.5",children:["comments","dm"].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>y(e),className:"rounded-full px-3 py-[5px] text-[0.78rem] font-semibold transition-colors border",style:f===e?{background:"var(--accent)",borderColor:"var(--accent)",color:"var(--accentFg)"}:{background:"var(--card)",borderColor:"var(--line2)",color:"var(--muted)"},children:"comments"===e?"Comments":"DM"},e))})]}),(0,r.jsxs)("div",{className:"rounded-2xl px-5 py-5 max-h-[600px] overflow-y-auto border",style:{background:b?"rgba(255,255,255,.6)":"rgba(255,255,255,.04)",borderColor:b?"rgba(255,255,255,.65)":"rgba(255,255,255,.08)",boxShadow:"0 10px 30px -22px rgba(0,0,0,.25)"},children:[(0,r.jsx)("div",{className:"text-[0.72rem] font-extrabold uppercase tracking-[.08em] mb-3",style:{color:"var(--muted)"},children:"CTA Settings"}),"instagram"===o&&(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"the final scene",children:"CTA line"}),(0,r.jsx)("input",{className:U,style:O,value:D.ctaLine,onChange:e=>w("instagram",{ctaLine:e.target.value})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"rotates to look organic",children:"Reply to their comment"}),(0,r.jsx)("div",{className:"space-y-2",children:D.replyVariants.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("input",{className:U,style:O,value:e,placeholder:"New reply variant...",onChange:e=>P(t,e.target.value)}),(0,r.jsx)("button",{type:"button",onClick:()=>I(t),"aria-label":"Remove variant",className:"w-[34px] h-[38px] flex-none rounded-[10px] grid place-items-center transition-colors border hover:text-red-600 hover:border-red-600",style:{background:"var(--bg)",borderColor:"var(--line2)",color:"var(--muted)"},children:(0,r.jsx)(c.Z,{className:"w-[15px] h-[15px]"})})]},t))}),(0,r.jsxs)("button",{type:"button",onClick:()=>w("instagram",{replyVariants:[...D.replyVariants,""]}),className:"mt-2 inline-flex items-center gap-1.5 rounded-[10px] px-3.5 py-2 text-[0.86rem] font-semibold transition-colors border border-dashed hover:text-[color:var(--ink)] hover:border-[color:var(--ink)]",style:{borderColor:"var(--line2)",color:"var(--muted)",background:"transparent"},children:[(0,r.jsx)(x.Z,{className:"w-3.5 h-3.5"})," Add reply variant"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{children:"Opening DM"}),(0,r.jsx)("textarea",{className:"".concat(U," resize-y min-h-[76px] leading-[1.45]"),style:O,value:D.openingDm,onChange:e=>w("instagram",{openingDm:e.target.value})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{children:"Opening DM button"}),(0,r.jsx)("input",{className:U,style:O,value:D.openingDmButton,onChange:e=>w("instagram",{openingDmButton:e.target.value})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"sent after they tap the button",perKeyword:!0,children:"Link DM"}),(0,r.jsx)("input",{className:U,style:O,value:L,onChange:e=>C("igLinkDm",e.target.value)})]})]}),"igStory"===o&&(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"the final scene",children:"CTA line"}),(0,r.jsx)("input",{className:U,style:O,value:A.ctaLine,onChange:e=>w("igStory",{ctaLine:e.target.value})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"sent when they reply the keyword",perKeyword:!0,children:"Link DM"}),(0,r.jsx)("input",{className:U,style:O,value:E,onChange:e=>C("storyLinkDm",e.target.value)})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{className:"font-semibold text-[0.82rem]",style:{color:"var(--ink)"},children:"Also add a link sticker on the story"}),(0,r.jsx)(T.ZD,{checked:A.linkSticker,onChange:e=>w("igStory",{linkSticker:e}),ariaLabel:"Toggle link sticker"})]})]}),"tiktok"===o&&(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"the final scene",children:"CTA line"}),(0,r.jsx)("input",{className:U,style:O,value:d.platforms.tiktok.ctaLine,onChange:e=>w("tiktok",{ctaLine:e.target.value})})]}),(0,r.jsx)(W,{children:"Make sure the destination link is set as the bio link on each TikTok account (Accounts tab)."})]}),"tiktokShop"===o&&(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"the final scene",children:"CTA line"}),(0,r.jsx)("input",{className:U,style:O,value:d.platforms.tiktokShop.ctaLine,onChange:e=>w("tiktokShop",{ctaLine:e.target.value})})]}),(0,r.jsx)(W,{children:"Only used when a TikTok Shop product is attached to the post â otherwise the standard TikTok CTA runs."})]}),"youtube"===o&&(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"the final scene",children:"CTA line"}),(0,r.jsx)("input",{className:U,style:O,value:d.platforms.youtube.ctaLine,onChange:e=>w("youtube",{ctaLine:e.target.value})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(R,{muted:"posted automatically with the link",children:"Pinned comment"}),(0,r.jsx)("input",{className:U,style:O,value:d.platforms.youtube.pinnedComment,onChange:e=>w("youtube",{pinnedComment:e.target.value})})]})]})]})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-2.5 mt-[18px] pt-4 border-t",style:{borderColor:"var(--line)"},children:[(0,r.jsx)("button",{type:"button",onClick:g,className:"inline-flex items-center px-[18px] py-[11px] rounded-[11px] text-[0.92rem] font-semibold transition-colors border",style:{background:"var(--card)",borderColor:"var(--line2)",color:"var(--ink)"},children:"Cancel"}),(0,r.jsx)("button",{type:"button",onClick:v,className:"inline-flex items-center px-[22px] py-3 rounded-[11px] text-[0.95rem] font-bold transition-colors",style:{background:"var(--accent)",color:"var(--accentFg)"},children:"Save Changes"})]})]})]})})}let H="https://generateugc.ai/api",Y="w-full px-3 py-2.5 rounded-[10px] text-sm focus:outline-none transition-colors border placeholder:text-[color:var(--muted2)]",X={background:"var(--bg)",borderColor:"var(--line2)",color:"var(--ink)"};function $(){var e,t;let{isLoading:s,isAuthorized:g}=(0,k.bC)({}),[f]=(0,D.F)(),S="light"===f,L=(0,A.W1)(),E=(null==L?void 0:null===(e=L.activeBrand)||void 0===e?void 0:e.name)||"Your Brand",[P,I]=(0,a.useState)(!0),[z,K]=(0,a.useState)(()=>B()),[V,U]=(0,a.useState)((null===(t=z.products[0])||void 0===t?void 0:t.id)||null),[O,R]=(0,a.useState)([]),[W,$]=(0,a.useState)(!1),[q,J]=(0,a.useState)("youtube"),[Q,ee]=(0,a.useState)(!1),et=(0,a.useCallback)(async()=>{try{let e=await w.default.get("".concat(H,"/influencer/approved-influencers"));(null==e?void 0:e.influencers)&&R(e.influencers.map(e=>({id:e.id,tiktokUsername:e.tiktokUsername||null,displayName:e.displayName||null,gender:e.gender||"female",thumbnailUrl:e.thumbnailUrl||null})))}catch(e){}},[]);(0,a.useEffect)(()=>{g&&et()},[g,et]);let es=(0,a.useCallback)(async()=>{try{let s=await w.default.get("".concat(H,"/influencer/automations/cta"));if(null==s?void 0:s.config){var e,t;K(s.config),U((null===(t=s.config.products)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.id)||null)}}catch(e){C.Am.error("Failed to load CTA automation")}finally{I(!1)}},[]);(0,a.useEffect)(()=>{g&&es()},[g,es]);let er=e=>K(t=>({...t,...e})),ea=(e,t)=>K(s=>({...s,platforms:{...s.platforms,[e]:{...s.platforms[e],enabled:t}}})),el=(e,t)=>
1K(s=>({...s,products:s.products.map(s=>s.id===e?{...s,...t}:s)})),en=e=>{z.products.length<=1||K(t=>{var s;let r=t.products.filter(t=>t.id!==e);return V===e&&U((null===(s=r[0])||void 0===s?void 0:s.id)||null),{...t,products:r}})},eo=e=>{J(e),$(!0)},ei=async()=>{if(z.enabled&&!z.products.some(e=>e.keyword.trim()&&e.destinationUrl.trim())){C.Am.error("Add at least one keyword and destination link before turning CTA automation on.");return}ee(!0);try{let e=await w.default.put("".concat(H,"/influencer/automations/cta"),{config:z});(null==e?void 0:e.status)==="success"?(e.config&&K(e.config),C.Am.success("CTA automation saved")):C.Am.error((null==e?void 0:e.error)||"Failed to save")}catch(e){C.Am.error("Failed to save CTA automation")}finally{ee(!1)}};if(s||!g||P)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v(),{children:(0,r.jsx)("title",{children:"CTA Automation"})}),(0,r.jsx)(N.Z,{transparent:!0})]});let ed=!z.enabled;return(0,r.jsxs)(j.Z,{title:"CTA Automation",bgColor:"bg-custom-black",children:[(0,r.jsx)(v(),{children:(0,r.jsx)("title",{children:"CTA Automation"})}),(0,r.jsx)("section",{className:"relative min-h-[calc(100vh-65px)] pt-4 sm:pt-8 pb-32 px-3 sm:px-4 md:px-8",style:{...(0,T.lx)(S),background:"var(--bg)"},children:(0,r.jsxs)("div",{className:"max-w-[880px] mx-auto",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsxs)(y(),{href:"/influencer/gallery",className:"inline-flex items-center gap-1.5 text-sm mb-3 transition-colors",style:{color:"var(--muted)"},children:[(0,r.jsx)(n.Z,{className:"w-4 h-4"}),"Creators"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 flex-wrap",children:[(0,r.jsx)("h1",{className:"text-2xl sm:text-[1.75rem] font-extrabold tracking-tight",style:{color:"var(--ink)"},children:"CTA Automation"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[0.78rem] font-semibold rounded-full px-2.5 py-1 border",style:{background:"var(--soft)",borderColor:"var(--line)",color:"var(--ink)"},title:"This CTA configuration is saved on this brand only. Switch brands to edit another brand's CTA.",children:[(0,r.jsx)(o.Z,{className:"w-3.5 h-3.5",style:{color:"var(--muted)"}}),E]})]}),(0,r.jsx)("p",{className:"mt-1 text-sm",style:{color:"var(--muted)"},children:"The final scene of every video is re-rendered per platform with a platform-native call-to-action, then distributed to the accounts that match."}),(0,r.jsxs)("p",{className:"mt-1 text-[0.82rem]",style:{color:"var(--muted2)"},children:["This configuration applies to ",(0,r.jsx)("strong",{style:{color:"var(--muted)"},children:E})," only. Videos generated under a different brand won't get these CTAs â switch your active brand to edit its CTA."]})]}
1),(0,r.jsxs)("div",{className:"flex items-center gap-4 rounded-[18px] px-5 py-4 border mb-6",style:{borderColor:"var(--line)",background:"linear-gradient(180deg, var(--soft), var(--card))",boxShadow:"var(--shadow)"},children:[(0,r.jsx)("span",{className:"w-[42px] h-[42px] rounded-[11px] grid place-items-center flex-shrink-0",style:{background:"var(--ink)"},children:(0,r.jsx)(i.Z,{className:"w-[21px] h-[21px]",style:{color:"var(--card)"}})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("strong",{className:"block text-[1.04rem] font-bold leading-snug",style:{color:"var(--ink)"},children:"CTA Automation"}),(0,r.jsx)("span",{className:"block text-[0.88rem] mt-0.5",style:{color:"var(--muted)"},children:"Swap the last scene of each video with the right CTA for each platform â automatically."})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3.5 flex-shrink-0",children:[(0,r.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-1.5 text-[0.82rem] font-semibold",style:{color:z.enabled?"var(--green)":"var(--muted2)"},children:[(0,r.jsx)("span",{className:"w-2 h-2 rounded-full ".concat(z.enabled?"animate-pulse":""),style:{background:z.enabled?"var(--green)":"var(--muted2)"}}),z.enabled?"Active":"Off"]}),(0,r.jsx)(T.ZD,{checked:z.enabled,onChange:e=>er({enabled:e}),ariaLabel:"Toggle CTA Automation"})]})]}),(0,r.jsxs)("div",{className:ed?"opacity-50 pointer-events-none grayscale-[.4] transition-all":"transition-all",children:[(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsxs)(T.Zb,{children:[(0,r.jsx)(T.Ol,{icon:d.Z,title:"Influencers",subtitle:"Choose which influencers get the CTA scene added to their videos."}),(0,r.jsx)(T.rg,{options:[{key:"all",label:"All Influencers"},{key:"select",label:"Select Influencers"}],value:z.scope,onChange:e=>er({scope:e})}),"select"===z.scope&&(0,r.jsx)(T.dN,{influencers:O,selected:z.influencerIds,onChange:e=>er({influencerIds:e})})]})}),(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsxs)(T.Zb,{children:[(0,r.jsx)(T.Ol,{icon:o.Z,title:"Campaign",subtitle:"The products this brand sells â each keyword maps to its own destination link."}),(0,r.jsxs)("p",{className:"flex items-center flex-wrap gap-[7px] text-[0.82rem] mb-4",style:{color:"var(--muted)"},children:["Use",(0,r.jsx)("code",{className:"text-[0.78rem] rounded-md px-[7px] py-0.5 border",style:{background:"var(--soft)",borderColor:"var(--line)",color:"var(--ink)"},children:"{keyword}"}),"and",(0,r.jsx)("code",{className:"text-[0.78rem] rounded-md px-[7px] py-0.5 border",style:{background:"var(--soft)",borderColor:"var(--line)",color:"var(--ink)"},children:"{link}"}),"in any CTA below â they fill in per product. Each video uses the keyword & link of the product it promotes; the selected row drives the previews."]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2.5",children:[(0,r.jsx)("span",{className:"font-semibold text-[0.9rem]",style:{color:"var(--ink)"},children:"Keywords & destination links"}),(0,r.jsxs)("span",{className:"text-[0.8rem] font-semibold rounded-full px-2.5 py-[3px]",style:{background:"var(--soft)",color:"var(--muted)"},children:[z.products.length," / ",10]})]}),(0,r.jsxs)("div",{className:"hidden sm:grid grid-cols-[22px_minmax(110px,1fr)_2fr_34px] gap-2 px-0.5 mb-1.5 text-[0.74rem] font-semibold uppercase tracking-wide",style:{color:"var(--muted2)"},children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{children:"Keyword"}),(0,r.jsx)("span",{children:"Destination link"}),(0,r.jsx)("span",{})]}),(0,r.jsx)("div",{className:"space-y-2",children:z.products.map(e=>(0,r.jsxs)("div",{className:"grid grid-cols-[22px_1fr_34px] sm:grid-cols-[22px_minmax(110px,1fr)_2fr_34px] gap-2 items-center",children:[(0,r.jsx)("input",{type:"radio",name:"ctaPreviewProduct",checked:V===e.id,onChange:()=>U(e.id),title:"Preview CTAs with this product",className:"w-4 h-4 justify-self-center cursor-pointer",style:{accentColor:"var(--ink)"}}),(0,r.jsx)("input",{className:Y,style:X,placeholder:"Keyword",value:e.keyword,onChange:t=>el(e.id,{keyword:t.target.value})}),(0,r.jsx)("input",{className:"".concat(Y," col-span-full col-start-2 sm:col-span-1 sm:col-start-auto"),style:X,placeholder:"https://...",value:e.destinationUrl,onChange:t=>el(e.id,{destinationUrl:t.target.value})}),(0,r.jsx)("button",{type:"button",onClick:()=>en(e.id),disabled:z.products.length<=1,"aria-label":"Remove keyword",className:"w-[34px] h-[38px] rounded-[10px] grid place-items-center transition-colors border disabled:opacity-40 hover:text-red-600 hover:border-red-600 row-start-1 col-start-3 sm:row-start-auto sm:col-start-auto",style:{background:"var(--bg)",borderColor:"var(--line2)",color:"var(--muted)"},children:(0,r.jsx)(c.Z,{className:"w-[15px] h-[15px]"})})]},e.id))}),z.products.length<10&&(0,r.jsxs)("button",{type:"button",onClick:()=>
1{if(z.products.length>=10)return;let e=F();K(t=>({...t,products:[...t.products,e]}))},className:"mt-2.5 inline-flex items-center gap-1.5 rounded-[10px] px-3.5 py-2 text-[0.86rem] font-semibold transition-colors border border-dashed hover:text-[color:var(--ink)] hover:border-[color:var(--ink)]",style:{borderColor:"var(--line2)",color:"var(--muted)",background:"transparent"},children:[(0,r.jsx)(x.Z,{className:"w-3.5 h-3.5"})," Add keyword"]})]})}),(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsxs)(T.Zb,{children:[(0,r.jsx)(T.Ol,{icon:p.Z,title:"Platform CTAs",subtitle:"Each platform gets its own CTA scene â turn them on or off here, and click a platform to edit its CTA in the preview editor."}),(0,r.jsx)("div",{className:"space-y-3",children:Z.map(e=>{var t;let s=_[e],a=z.platforms[e].enabled;return(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>eo(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),eo(e))},className:"flex items-center gap-3.5 rounded-[14px] px-[18px] py-4 border cursor-pointer transition-colors",style:{borderColor:"var(--line)",background:a?"transparent":"var(--soft)"},children:[(0,r.jsx)("span",{className:"w-[42px] h-[42px] rounded-[11px] grid place-items-center flex-none",style:{background:"var(--soft)",opacity:a?1:.5},children:(0,r.jsx)(M,{platform:e})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",style:{opacity:a?1:.6},children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"font-bold text-[0.98rem]",style:{color:"var(--ink)"},children:s.name}),(0,r.jsx)("span",{className:"inline-flex items-center text-[0.7rem] font-bold uppercase tracking-wide rounded-md px-[9px] py-[3px]",style:"auto"===(t=s.badge)?{background:"rgba(22,163,74,.1)",color:"var(--green)"}:"shop"===t?{background:"rgba(234,179,8,.14)",color:"#b45309"}:{background:"var(--soft)",color:"var(--muted)"},children:s.method})]}),(0,r.jsx)("p",{className:"text-[0.83rem] mt-0.5",style:{color:"var(--muted)"},children:s.desc})]}),(0,r.jsx)("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,r.jsx)(T.ZD,{checked:a,onChange:t=>ea(e,t),ariaLabel:"Toggle ".concat(s.name," CTA")})})]},e)})}),(0,r.jsx)("div",{className:"flex justify-end mt-4",children:(0,r.jsxs)("button",{type:"button",onClick:()=>eo("youtube"),className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-[11px] text-sm font-semibold transition-colors border",style:{background:"var(--card)",borderColor:"var(--line2)",color:"var(--ink)"},children:[(0,r.jsx)(m.Z,{className:"w-[15px] h-[15px]"}),"Edit & Preview"]})})]})}),(0,r.jsxs)("p",{className:"flex items-center gap-2 text-[0.86rem] px-1",style:{color:"var(--muted)"},children:[(0,r.jsx)(u.Z,{className:"w-4 h-4 flex-shrink-0",style:{color:"var(--green)"}}),"Each video renders one extra CTA scene per enabled platform â using the keyword & link of the product it promotes â and the right version is distributed to the matching accounts automatically."]})]})]})}),(0,r.jsx)(l.E.div,{initial:{y:80,opacity:0},animate:{y:0,opacity:1},transition:{duration:.2},className:"fixed bottom-0 left-0 right-0 md:pl-[180px] z-40",style:(0,T.lx)(S),children:(0,r.jsx)("div",{className:"backdrop-blur-md border-t",style:{background:S?"rgba(255,255,255,.86)":"rgba(0,0,0,.8)",borderColor:"var(--line)"},children:(0,r.jsxs)("div",{className:"max-w-[880px] mx-auto flex items-center justify-between gap-4 px-4 sm:px-8 py-3.5",children:[(0,r.jsx)("span",{className:"text-sm hidden sm:inline",style:{color:"var(--muted)"},children:"Applies to all future videos for the selected influencers."}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 ml-auto",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{var e;let t=B();K(t),U((null===(e=t.products[0])||void 0===e?void 0:e.id)||null)},className:"inline-flex items-center px-4 py-2.5 rounded-xl text-sm font-semibold transition-colors border",style:{background:"var(--card)",borderColor:"var(--line2)",color:"var(--ink)"},children:"Reset"}),(0,r.jsxs)("button",{type:"button",onClick:ei,disabled:Q,className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-bold transition-colors disabled:opacity-50",style:{background:"var(--accent)",color:"var(--accentFg)"},children:[Q?(0,r.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(b.Z,{className:"w-4 h-4"}),"Save Changes"]})]})]})})}),(0,r.jsx)(G,{open:W,platform:q,onPlatformChange:J,config:z,onChange:K,activeProductId:V,onActiveProductChange:U,brandName:E,isLight:S,onClose:()=>$(!1),onSave:()=>{$(!1),C.Am.success("CTA automation saved")}})]})}}},function(e){e.O(0,[7039,8211,3306,6678,9774,2888,179],function(){return e(e.s=38659)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.