1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408502,e=>{"use strict";var t=e.i(632165),r=e.i(205729),a=e.i(671985),n=e.i(583654),o=e.i(746167),s=e.i(91392),i=e.i(197676),l=e.i(600618),c=e.i(759893),d=e.i(463854),p=e.i(759741),h=e.i(629160),x=e.i(860484),u=e.i(212089),f=e.i(284578),m=e.i(773235),y=e.i(288903),g=e.i(409182),b=e.i(548606),j=e.i(996537),v=e.i(65621),w=e.i(91520),S=e.i(40892),T=e.i(129925),C=e.i(404084),F=e.i(171864),k=e.i(224495),M=e.i(35919),I=e.i(780021),L=e.i(678474),B=e.i(978321),A=e.i(342651),R=e.i(15309);let W="#FAF8F5",P="#FFFFFF",O="/ardent_africa_favicon_.png";function z({url:e,size:a=256,title:n,showDownload:o=!0}){let[s,i]=(0,r.useState)(!1),[d,p]=(0,r.useState)(null),h=(0,r.useRef)(null),f=Math.round(.2*a),m=Math.round(.06*a),y=f+2*m,g=(a-y)/2,v=async()=>{if(h.current){i(!0),p(null);try{let e=h.current.querySelector("svg");if(!e)throw Error("SVG element not found");let t=e.cloneNode(!0);t.setAttribute("width",a.toString()),t.setAttribute("height",a.toString());let r=new XMLSerializer().serializeToString(t),n=new Blob([r],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(n),s=document.createElement("canvas"),i=s.getContext("2d");if(s.width=a,s.height=a,await new Promise((e,t)=>{let r=new Image;r.crossOrigin="anonymous",r.onload=()=>{try{i&&(i.fillStyle=W,i.fillRect(0,0,a,a),i.drawImage(r,0,0,a,a)),URL.revokeObjectURL(o),e()}catch(e){URL.revokeObjectURL(o),t(e)}},r.onerror=()=>{URL.revokeObjectURL(o),t(Error("Failed to load SVG"))},r.src=o}),!i)throw Error("Canvas context lost");let l=a/2,c=a/2,d=y/2;i.beginPath(),i.arc(l,c,d,0,2*Math.PI),i.fillStyle=P,i.fill(),await new Promise((e,t)=>{let r=new Image;r.crossOrigin="anonymous",r.onload=()=>{try{i.drawImage(r,g+m,g+m,f,f),e()}catch(e){t(e)}},r.onerror=()=>e(),r.src=O}),s.toBlob(e=>{if(e){let t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`ardent-africa-qr-${Date.now()}.png`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}},"image/png")}catch(e){console.error("Error downloading QR code:",e),p("Failed to download QR code")}finally{i(!1)}}};return(0,t.jsxs)(c.Stack,{spacing:2,sx:{alignItems:"center"},children:[n&&(0,t.jsx)(u.Typography,{variant:"subtitle2",sx:{fontFamily:'"Manrope", sans-serif',fontWeight:600},children:n}),(0,t.jsx)(x.Box,{ref:h,sx:{p:2,backgroundColor:W,borderRadius:"16px",display:"inline-block",boxShadow:"0 2px 12px rgba(21, 41, 47, 0.12)",position:"relative"},children:(0,t.jsxs)(x.Box,{sx:{position:"relative",width:a,height:a},children:[(0,t.jsx)(A.default,{value:e,size:a,level:"H",bgColor:W,fgColor:"#15292f"}),(0,t.jsx)(x.Box,{sx:{position:"absolute",top:g,left:g,width:y,height:y,borderRadius:"50%",backgroundColor:P,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.08)"},children:(0,t.jsx)(x.Box,{component:"img",src:O,alt:"",sx:{width:f,height:f,objectFit:"contain"},onError:e=>{e.target.style.display="none"}})})]})}),d&&(0,t.jsx)(b.Alert,{severity:"error",sx:{width:"100%"},children:d}),o&&(0,t.jsx)(l.Button,{variant:"outlined",startIcon:s?(0,t.jsx)(j.CircularProgress,{size:16}):(0,t.jsx)(R.default,{}),onClick:v,disabled:s,sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"},children:s?"Downloading...":"Download QR Code"})]})}var E=e.i(536378),D=e.i(287089),U=e.i(233574),$=e.i(50473),N=e.i(793170),q=e.i(816228),H=e.i(486566),G=e.i(293582),_=e.i(983370),K=e.i(957866),Q=e.i(56281),X=e.i(568630),V=e.i(183711),J=e.i(498306),Y=e.i(281405),Z=e.i(507387),ee=e.i(851419);function et({embedType:e,campaignTitle:r}){let n=(0,a.useTranslations)("embedInstructions");return(0,t.jsxs)(c.Stack,{spacing:3,children:[(0,t.jsx)(b.Alert,{severity:"info",sx:{fontFamily:'"Manrope", sans-serif'},children:n("intro")}),(0,t.jsxs)(_.Accordion,{defaultExpanded:!0,children:[(0,t.jsx)(K.AccordionSummary,{expandIcon:(0,t.jsx)(Y.default,{}),children:(0,t.jsxs)(c.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,t.jsx)(G.default,{color:"primary"}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600},children:n("step1Title")})]})}
1),(0,t.jsx)(Q.AccordionDetails,{children:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif',mb:2},children:n("step1Body")})})]}),(0,t.jsxs)(_.Accordion,{children:[(0,t.jsx)(K.AccordionSummary,{expandIcon:(0,t.jsx)(Y.default,{}),children:(0,t.jsxs)(c.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,t.jsx)(Z.default,{color:"primary"}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600},children:n("step2Title")})]})}),(0,t.jsx)(Q.AccordionDetails,{children:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif',mb:2},children:n("iframe"===e?"step2BodyIframe":"step2BodyScript")})})]}),(0,t.jsxs)(_.Accordion,{children:[(0,t.jsx)(K.AccordionSummary,{expandIcon:(0,t.jsx)(Y.default,{}),children:(0,t.jsxs)(c.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,t.jsx)(ee.default,{color:"primary"}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600},children:n("platformTitle")})]})}),(0,t.jsx)(Q.AccordionDetails,{children:(0,t.jsxs)(X.List,{children:[(0,t.jsx)(V.ListItem,{children:(0,t.jsx)(J.ListItemText,{primary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:.5},children:"WordPress"}),secondary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("platformWordPress")})})}),(0,t.jsx)(V.ListItem,{children:(0,t.jsx)(J.ListItemText,{primary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:.5},children:"Squarespace"}),secondary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("platformSquarespace")})})}),(0,t.jsx)(V.ListItem,{children:(0,t.jsx)(J.ListItemText,{primary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:.5},children:"Wix"}),secondary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("platformWix")})})}),(0,t.jsx)(V.ListItem,{children:(0,t.jsx)(J.ListItemText,{primary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:.5},children:n("platformCustomHtmlTitle")}),secondary:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("platformCustomHtml")})})})]})})]}),(0,t.jsxs)(_.Accordion,{children:[(0,t.jsx)(K.AccordionSummary,{expandIcon:(0,t.jsx)(Y.default,{}),children:(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600},children:n("troubleshootingTitle")})}),(0,t.jsx)(Q.AccordionDetails,{children:(0,t.jsxs)(c.Stack,{spacing:2,children:[(0,t.jsxs)(x.Box,{children:[(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:1}
1,children:n("troubleNotAppearTitle")}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("troubleNotAppearBody")})]}),(0,t.jsxs)(x.Box,{children:[(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:1},children:n("troubleSizeTitle")}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("troubleSizeBody")})]}),(0,t.jsxs)(x.Box,{children:[(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:1},children:n("troubleStylingTitle")}),(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Manrope", sans-serif'},children:n("troubleStylingBody")})]})]})})]}),(0,t.jsxs)(b.Alert,{severity:"success",sx:{fontFamily:'"Manrope", sans-serif'},children:[(0,t.jsx)(u.Typography,{sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:.5},children:n("featuresTitle")}),(0,t.jsxs)(c.Stack,{direction:"row",spacing:1,useFlexGap:!0,sx:{flexWrap:"wrap",mt:1},children:[(0,t.jsx)(y.Chip,{label:n("featureResponsive"),size:"small"}),(0,t.jsx)(y.Chip,{label:n("featureMobileFriendly"),size:"small"}),(0,t.jsx)(y.Chip,{label:n("featureSecure"),size:"small"}),(0,t.jsx)(y.Chip,{label:n("featureCustomizable"),size:"small"})]})]})]})}function er({campaignId:e,campaignUrl:n,campaignTitle:o}){let s=(0,a.useTranslations)("embedCodeGenerator"),[i,p]=(0,r.useState)({width:"100%",height:600,theme:"auto",showImage:!0,showDescription:!0,showProgress:!0,showShareButtons:!0,borderRadius:12,embedType:"iframe"}),[h,y]=(0,r.useState)(""),[g,v]=(0,r.useState)(!0),[w,T]=(0,r.useState)(!1),[C,F]=(0,r.useState)(null),[k,M]=(0,r.useState)(0);(0,r.useEffect)(()=>{I()},[i,e]);let I=async()=>{try{v(!0),F(null);let t=await fetch(`/api/campaigns/${e}/widget`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),r=await t.json();if(!t.ok)throw Error(r.error||s("generateError"));y(r.embedCode)}catch(e){console.error("Error generating embed code:",e),F(e.message||s("generateError"))}finally{v(!1)}},L=async()=>{try{await navigator.clipboard.writeText(h),T(!0),setTimeout(()=>T(!1),3e3)}catch(e){console.error("Failed to copy:",e)}},B=(e,t)=>{p(r=>({...r,[e]:t}))};return(0,t.jsxs)(c.Stack,{spacing:3,children:[(0,t.jsxs)(x.Box,{children:[(0,t.jsx)(u.Typography,{variant:"h6",sx:{fontFamily:'"Sora", sans-serif',fontWeight:600,mb:1},children:s("heading")}),(0,t.jsx)(u.Typography,{variant:"body2",sx:{color:"text.secondary",fontFamily:'"Manrope", sans-serif'},children:s("description")})]}),(0,t.jsxs)(m.Tabs,{value:k,onChange:(e,t)=>
1M(t),children:[(0,t.jsx)(f.Tab,{label:s("tabConfiguration"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}}),(0,t.jsx)(f.Tab,{label:s("tabCode"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}}),(0,t.jsx)(f.Tab,{label:s("tabInstructions"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}})]}),0===k&&(0,t.jsxs)(c.Stack,{spacing:2,children:[(0,t.jsxs)(E.FormControl,{fullWidth:!0,children:[(0,t.jsx)(D.InputLabel,{id:"embedcodegenerator-label-1",children:s("embedTypeLabel")}),(0,t.jsxs)(U.Select,{labelId:"embedcodegenerator-label-1",value:i.embedType,label:s("embedTypeLabel"),onChange:e=>B("embedType",e.target.value),children:[(0,t.jsx)($.MenuItem,{value:"iframe",children:s("embedTypeIframe")}),(0,t.jsx)($.MenuItem,{value:"script",children:s("embedTypeScript")})]})]}),(0,t.jsxs)(c.Stack,{direction:"row",spacing:2,children:[(0,t.jsx)(d.TextField,{fullWidth:!0,label:s("widthLabel"),value:i.width,onChange:e=>B("width",e.target.value),helperText:s("widthHelper"),sx:{fontFamily:'"Manrope", sans-serif'}}),(0,t.jsx)(d.TextField,{fullWidth:!0,label:s("heightLabel"),type:"number",value:i.height,onChange:e=>B("height",Number(e.target.value)),helperText:s("heightHelper"),sx:{fontFamily:'"Manrope", sans-serif'},slotProps:{htmlInput:{min:400}}})]}),(0,t.jsxs)(E.FormControl,{fullWidth:!0,children:[(0,t.jsx)(D.InputLabel,{id:"embedcodegenerator-label-2",children:s("themeLabel")}),(0,t.jsxs)(U.Select,{labelId:"embedcodegenerator-label-2",value:i.theme,label:s("themeLabel"),onChange:e=>B("theme",e.target.value),children:[(0,t.jsx)($.MenuItem,{value:"auto",children:s("themeAuto")}),(0,t.jsx)($.MenuItem,{value:"light",children:s("themeLight")}),(0,t.jsx)($.MenuItem,{value:"dark",children:s("themeDark")})]})]}),(0,t.jsx)(d.TextField,{fullWidth:!0,label:s("borderRadiusLabel"),type:"number",value:i.borderRadius,onChange:e=>B("borderRadius",Number(e.target.value)),helperText:s("borderRadiusHelper"),sx:{fontFamily:'"Manrope", sans-serif'},slotProps:{htmlInput:{min:0,max:20}}}),(0,t.jsx)(H.Divider,{}),(0,t.jsx)(u.Typography,{variant:"subtitle2",sx:{fontFamily:'"Sora", sans-serif',fontWeight:600},children:s("displayOptions")}),(0,t.jsx)(q.FormControlLabel,{control:(0,t.jsx)(N.Switch,{checked:i.showImage,onChange:e=>B("showImage",e.target.checked)}),label:s("showImage"),sx:{fontFamily:'"Manrope", sans-serif'}}),(0,t.jsx)(q.FormControlLabel,{control:(0,t.jsx)(N.Switch,{checked:i.showDescription,onChange:e=>B("showDescription",e.target.checked)}),label:s("showDescription"),sx:{fontFamily:'"Manrope", sans-serif'}}),(0,t.jsx)(q.FormControlLabel,{control:(0,t.jsx)(N.Switch,{checked:i.showProgress,onChange:e=>B("showProgress",e.target.checked)}),label:s("showProgress"),sx:{fontFamily:'"Manrope", sans-serif'}}),(0,t.jsx)(q.FormControlLabel,{control:(0,t.jsx)(N.Switch,{checked:i.showShareButtons,onChange:e=>B("showShareButtons",e.target.checked)}),label:s("showShareButtons"),sx:{fontFamily:'"Manrope", sans-serif'}})]}),1===k&&(0,t.jsxs)(c.Stack,{spacing:2,children:[C&&(0,t.jsx)(b.Alert,{severity:"error",sx:{fontFamily:'"Manrope", sans-serif'},children:C}),g?(0,t.jsx)(x.Box,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,t.jsx)(j.CircularProgress,{})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.Box,{sx:{position:"relative",border:"1px solid",borderColor:"divider",borderRadius:"16px",backgroundColor:"action.hover",p:2},children:[(0,t.jsxs)(x.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[(0,t.jsx)(u.Typography,{variant:"caption",sx:{fontFamily:'"Manrope", sans-serif',fontWeight:600,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.5px"},children:s("embedCodePreviewLabel",{type:i.embedType})}),(0,t.jsx)(l.Button,{size:"small",startIcon:w?(0,t.jsx)(G.default,{}):(0,t.jsx)(S.default,{}),onClick:L,sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none",minWidth:"auto"},children:w?s("copied"):s("copy")})]}),(0,t.jsx)(x.Box,{component:"pre",sx:{margin:0,padding:0,fontSize:"0.8rem",fontFamily:"monospace",color:"text.primary",whiteSpace:"pre-wrap",wordBreak:"break-all",overflowX:"auto"},children:h})]}),w&&(0,t.jsx)(b.Alert,{severity:"success",sx:{fontFamily:'"Manrope", sans-serif'},children:s("copiedAlert")})]})]}),2===k&&(0,t.jsx)(et,{embedType:i.embedType,campaignTitle:o})]})}var ea=e.i(537974),en=e.i(795169),eo=e.i(308838);function es(e){let{children:r,value:a,index:n,...o}=e;return(0,t.jsx)("div",{role:"tabpanel",hidden:a!==n,id:`share-tabpanel-${n}`,"aria-labelledby":`share-tab-${n}`,...o,children:a===n&&(0,t.jsx)(x.Box,{sx:{pt:3},children:r})})}let ei={whatsapp:(0,t.jsx)(T.default,{}),twitter:(0,t.jsx)(C.default,{}),facebook:(0,t.jsx)(F.default,{}),linkedin:(0,t.jsx)(k.default,{}),telegram:(0,t.jsx)(M.default,{}),reddit:(0,t.jsx)(I.default,{}),email:(0,t.jsx)(L.default,{}),sms:(0,t.jsx)(B.default,{}),copy:(0,t.jsx)(S.default,{}),native:(0,t.jsx)(w.default,{})},el=["whatsapp","twitter","facebook","linkedin","telegram","reddit","email","sms","copy",...(0,ea.isWebShareSupported)()?["native"]:[]];e.s(["ShareModal",0,function({open:e,onClose:w,shareData:T,campaignId:C,blogPostId:F,eventId:k,jobId:M,employerId:I,entityId:L,campaignTitle:B,shareLabel:A,onShareComplete:R}){var W;let P=(0,a.useTranslations)("shareModal"),O=A??P(`noun.${(W={eventId:k,jobId:M,employerId:I,entityId:L,blogPostId:F}).eventId?"event":W.jobId?"job":W.employerId?"employer":W.entityId?"listing":W.blogPostId?"post":"campaign"}`),E=C?{campaignId:C}:F?{blogPostId:F}:k?{eventId:k}:M?{jobId:M}:I?{employerId:I}:L?{entityId:L}:null,[D,U]=(0,r.useState)(0),[$,N]=(0,r.useState)(""),[q,H]=(0,r.useState)(!1),[G,_]=(0,r.useState)(null),[K,Q]=(0,r.useState)(null),[X,V]=(0,r.useState)(T.url),J=(0,r.useRef)(new Map),Y=async e=>{if(!E)return T.url;let t=J.current,r=t.get(e);if(r)return r;let a=await (0,eo.fetchShortUrl)(E,e,T.url);return t.set(e,a),a};(0,r.useEffect)(()=>
1{if(e&&(U(0),N(""),H(!1),Q(null),V(T.url),J.current.clear(),E)){let e=!1;return Y("share").then(t=>{e||V(t)}),()=>{e=!0}}},[e,C,F,k,M,I,L,T.url]);let Z=async e=>{_(e),Q(null);try{let t=!1,r=await Y(e),a={...T,url:r};if("native"===e)t=await (0,ea.nativeShare)(a);else if("copy"===e)(t=await (0,ea.copyToClipboard)(r))&&(H(!0),setTimeout(()=>H(!1),2e3));else{let r=(0,ea.generateShareUrl)(e,a,{customMessage:$||void 0});"email"===e||"sms"===e?window.location.href=r:window.open(r,"_blank","width=600,height=400"),t=!0}if(t){if(C&&"copy"!==e)try{await (0,en.logShare)(C,e,{hasCustomMessage:!!$,userAgent:navigator.userAgent})}catch(e){console.error("Failed to track share:",e)}R?.(e),"copy"!==e&&"native"!==e&&setTimeout(()=>{w()},500)}else Q(P("errors.shareFailed"))}catch(e){console.error("Share error:",e),Q(e.message||P("errors.shareFailed"))}finally{_(null)}},ee=T.description?`${T.title} - ${T.description.substring(0,100)}${T.description.length>100?"...":""}`:T.title;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.Dialog,{open:e,onClose:w,maxWidth:"md",fullWidth:!0,slotProps:{paper:{sx:{borderRadius:"16px"}}},children:[(0,t.jsxs)(o.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",fontFamily:'"Sora", sans-serif',fontWeight:600,pb:1},children:[P("title",{noun:O}),(0,t.jsx)(p.IconButton,{onClick:w,size:"small",sx:{color:"text.secondary"},children:(0,t.jsx)(v.default,{})})]}),(0,t.jsxs)(s.DialogContent,{children:[(0,t.jsxs)(m.Tabs,{value:D,onChange:(e,t)=>
1U(t),sx:{mb:2},children:[(0,t.jsx)(f.Tab,{label:P("tabs.social"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}}),(0,t.jsx)(f.Tab,{label:P("tabs.qrCode"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}}),(0,t.jsx)(f.Tab,{label:P("tabs.copyLink"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}}),C&&(0,t.jsx)(f.Tab,{label:P("tabs.embedWidget"),sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"}})]}),(0,t.jsx)(es,{value:D,index:0,children:(0,t.jsxs)(c.Stack,{spacing:3,children:[(0,t.jsx)(d.TextField,{fullWidth:!0,multiline:!0,rows:3,label:P("customMessage.label"),value:$,onChange:e=>N(e.target.value),placeholder:ee,helperText:P("customMessage.helper"),sx:{"& .MuiInputBase-root":{fontFamily:'"Manrope", sans-serif'}}}),(0,t.jsxs)(x.Box,{children:[(0,t.jsx)(u.Typography,{variant:"subtitle2",sx:{fontFamily:'"Manrope", sans-serif',fontWeight:600,mb:2,color:"text.secondary"},children:P("shareToPlatform")}),(0,t.jsx)(x.Box,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(4, 1fr)"},gap:3,justifyContent:"center"},children:el.map(e=>{let r=(0,ea.getPlatformColor)(e),a=(0,ea.getPlatformName)(e),n=G===e;return(0,t.jsxs)(x.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,t.jsx)(h.Tooltip,{title:a,placement:"top",children:(0,t.jsx)(p.IconButton,{onClick:()=>Z(e),disabled:n,sx:{width:64,height:64,borderRadius:"50%",backgroundColor:"copy"===e||"native"===e?"action.hover":`${r}15`,color:"copy"===e||"native"===e?"text.primary":r,border:`1px solid ${r}40`,"&:hover":{backgroundColor:"copy"===e||"native"===e?"action.selected":`${r}25`,transform:"scale(1.05)"},"&:disabled":{backgroundColor:"action.disabledBackground"},transition:"all 0.2s ease","& .MuiSvgIcon-root":{fontSize:28}},children:n?(0,t.jsx)(j.CircularProgress,{size:24,sx:{color:r}}):(0,t.jsx)(x.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:ei[e]})})}),(0,t.jsx)(u.Typography,{variant:"caption",sx:{display:"block",textAlign:"center",mt:1,fontFamily:'"Manrope", sans-serif',fontSize:"0.75rem",color:"text.secondary",fontWeight:500},children:a})]},e)})})]})]})}),(0,t.jsxs)(es,{value:D,index:1,children:[(0,t.jsx)(x.Box,{sx:{display:"flex",justifyContent:"center"},children:(0,t.jsx)(z,{url:X,size:256,title:P("qr.scanTitle"),showDownload:!0})}),(0,t.jsx)(u.Typography,{variant:"body2",sx:{mt:3,textAlign:"center",color:"text.secondary",fontFamily:'"Manrope", sans-serif'},children:P("qr.caption")})]}),(0,t.jsx)(es,{value:D,index:2,children:(0,t.jsxs)(c.Stack,{spacing:2,children:[(0,t.jsx)(d.TextField,{fullWidth:!0,label:P("copy.urlLabel",{noun:O}),value:X,sx:{"& .MuiInputBase-root":{backgroundColor:"action.hover"}},slotProps:{input:{readOnly:!0,sx:{fontFamily:'"Manrope", sans-serif'}}}}),(0,t.jsx)(l.Button,{variant:"contained",startIcon:(0,t.jsx)(S.default,{}),onClick:()=>Z("copy"),disabled:"copy"===G,fullWidth:!0,sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none",backgroundColor:"secondary.main",color:"secondary.contrastText","&:hover":{backgroundColor:"secondary.dark"}},children:q?P("copy.copied"):P("copy.button")}),q&&(0,t.jsx)(y.Chip,{label:P("copy.copiedToClipboard"),color:"success",size:"small",sx:{fontFamily:'"Manrope", sans-serif'}})]})}),C&&(0,t.jsx)(es,{value:D,index:3,children:(0,t.jsx)(er,{campaignId:C,campaignUrl:T.url,campaignTitle:B||T.title})}),K&&(0,t.jsx)(b.Alert,{severity:"error",sx:{mt:2,fontFamily:'"Manrope", sans-serif'},children:K})]}),(0,t.jsx)(i.DialogActions,{sx:{px:3,pb:2},children:(0,t.jsx)(l.Button,{onClick:w,sx:{fontFamily:'"Manrope", sans-serif',textTransform:"none"},children:P("close")})})]}),(0,t.jsx)(g.Snackbar,{open:q,autoHideDuration:2e3,onClose:()=>H(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,t.jsx)(b.Alert,{severity:"success",sx:{fontFamily:'"Manrope", sans-serif'},children:P("copy.copiedToClipboard")})})]})}],408502)},780021,e=>{"use strict";e.i(205729);var t=e.i(551592),r=e.i(632165);let a=(0,t.default)((0,r.jsx)("path",{d:"M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"}),"Reddit");e.s(["default",0,a])},409182,e=>{"use strict";var t=e.i(205729),r=e.i(584031),a=e.i(454017),n=e.i(366234),o=e.i(167693);let s=function(e={}){let{autoHideDuration:r=null,disableWindowBlurListener:s=!1,onClose:i,open:l,resumeHideDuration:c}=e,d=(0,n.default)();t.useEffect(()=>{if(l)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key||i?.(e,"escapeKeyDown")}},[l,i]);let p=(0,a.default)((e,t)=>{i?.(e,t)}),h=(0,a.default)(e=>{i&&null!=e&&d.start(e,()=>{p(null,"timeout")})});t.useEffect(()=>(l&&h(r),d.clear),[l,r,h,d]);let x=d.clear,u=t.useCallback(()=>{null!=r&&h(null!=c?c:.5*r)},[r,c,h]);return t.useEffect(()=>{if(!s&&l)return window.addEventListener("focus",u),window.addEventListener("blur",x),()=>{window.removeEventListener("focus",u),window.removeEventListener("blur",x)}},[s,l,u,x]),{getRootProps:(t={})=>{let r={...(0,o.default)(e),...(0,o.default)(t)};return{role:"presentation",...t,...r,onBlur:e=>{let t=r.onBlur;t?.(e),u()},onFocus:e=>{let t=r.onFocus;t?.(e),x()},onMouseEnter:e=>{let t=r.onMouseEnter;t?.(e),x()},onMouseLeave:e=>{let t=r.onMouseLeave;t?.(e),u()}}},onClickAway:e=>{i?.(e,"clickaway")}}};var i=e.i(267144),l=e.i(731801),c=e.i(599567),d=e.i(279960),p=e.i(367325),h=e.i(12440),x=e.i(345444),u=e.i(7284),f=e.i(978227),m=e.i(853732),y=e.i(908455),g=e.i(771986);function b(e){return(0,g.default)("MuiSnackbarContent",e)}(0,y.default)("MuiSnackbarContent",["root","message","action"]);var j=e.i(632165);let v=(0,l.styled)(m.default,{name:"MuiSnackbarContent",slot:"Root"})((0,d.default)(({theme:e})=>{let t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText((0,f.emp
1hasize)(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:(0,f.emphasize)(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),w=(0,l.styled)("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),S=(0,l.styled)("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=t.forwardRef(function(e,t){let a=(0,p.useDefaultProps)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:s,role:i="alert",...l}=a,c=(e=>{let{classes:t}=e;return(0,r.default)({root:["root"],action:["action"],message:["message"]},b,t)})(a);return(0,j.jsxs)(v,{role:i,elevation:6,className:(0,u.default)(c.root,o),ownerState:a,ref:t,...l,children:[(0,j.jsx)(w,{className:c.message,ownerState:a,children:s}),n?(0,j.jsx)(S,{className:c.action,ownerState:a,children:n}):null]})});function C(e){return(0,g.default)("MuiSnackbar",e)}(0,y.default)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var F=e.i(521698);let k=(0,l.styled)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`anchorOrigin${(0,h.default)(r.anchorOrigin.vertical)}${(0,h.default)(r.anchorOrigin.horizontal)}`]]}})((0,d.default)(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),M=t.forwardRef(function(e,a){let n=(0,p.useDefaultProps)({props:e,name:"MuiSnackbar"}),o=(0,c.useTheme)(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:d,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:y,className:g,disableWindowBlurListener:b=!1,message:v,onBlur:w,onClose:S,onFocus:M,onMouseEnter:I,onMouseLeave:L,open:B,resumeHideDuration:A,slots:R={},slotProps:W={},transitionDuration:P=l,...O}=n,z={...n,anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:m,disableWindowBlurListener:b,transitionDuration:P},E=(e=>{let{classes:t,anchorOrigin:a}=e,n={root:["root",`anchorOrigin${(0,h.default)(a.vertical)}${(0,h.default)(a.horizontal)}`]};return(0,r.default)(n,C,t)})(z),{getRootProps:D,onClickAway:U}=s(z),[$,N]=t.useState(!0),q={slots:R,slotProps:W},[H,G]=(0,F.default)("root",{ref:a,className:[E.root,g],elementType:k,getSlotProps:D,externalForwardedProps:{...q,...O},ownerState:z}),[_,{ownerState:K,...Q}]=(0,F.default)("clickAwayListener",{elementType:i.default,externalForwardedProps:q,getSlotProps:e=>({onClickAway:(...t)=>{let r=t[0];e.onClickAway?.(...t),r?.defaultMuiPrevented||U(...t)}}),ownerState:z}),[X,V]=(0,F.default)("content",{elementType:T,shouldForwardComponentProp:!0,externalForwardedProps:q,additionalProps:{message:v,action:d},ownerState:z}),[J,Y]=(0,F.default)("transition",{elementType:x.default,externalForwardedProps:q,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),N(!1)},onExited:(...t)=>{e.onExited?.(...t),N(!0)}}),additionalProps:{appear:!0,in:B,timeout:P,direction:"top"===u?"down":"up"},ownerState:z});return!B&&$?null:(0,j.jsx)(_,{...Q,...R.clickAwayListener&&{ownerState:K},children:(0,j.jsx)(H,{...G,children:(0,j.jsx)(J,{...Y,children:y||(0,j.jsx)(X,{...V})})})})});e.s(["Snackbar",0,M],409182)}]);
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.