1import{r as pe,z as ge,F as ue,J as ie,j as e,s as Q,B as _,E as fe,bF as ne,cr as Ne,X as ce,C as d,b as o,d as x,e as m,ab as c,$ as v,a0 as w,a1 as C,a2 as T,a3 as t,bj as re,a4 as P,S as z,aF as B,ap as O,b9 as ye,b7 as U,b6 as be,T as ve,V as we,U as Ce}from"./index-CuSEeJFb.js";import{N as de}from"./newspaper-B16eXHZa.js";import{T as oe}from"./type-u6mf0Lzd.js";import{I as Te}from"./image-fQC3p4ps.js";import{R as Se}from"./ruler-CW1eoJlB.js";import{S as k}from"./square-CbouAjGs.js";function Ee({register:f,control:ke,setValue:j,watch:a,businessProfile:p,isGeneratingField:n,onGenerateField:g,creativeFormat:Ie,temperature:R,awarenessLevel:_e,getValidationStatus:W}){var ee,se,ae,te;const[I,xe]=pe.useState("design"),$=a("platformContent.headline")||"",F=a("platformContent.bodyText")||"",A=a("platformContent.tagline")||"",E=a("platformContent.callToAction")||"",D=a("platformContent.contactInfo")||"",Y=a("platformContent.adSize")||"full_page",S=a("platformContent.publicationType")||"newspaper",K=a("platformContent.layoutStyle")||"image_top",N=a("platformContent.colorScheme")||"full_color";a("platformContent.typography");const M=a("platformContent.borderStyle")||"thin_border";a("platformContent.imagePosition");const V=a("platformContent.adFrequency")||"single_run",y=a("platformContent.targetCirculation")||"50000";a("platformContent.adDeadline"),a("platformContent.specialPlacement");const L=a("platformContent.includeLogo")??!0,J=a("platformContent.includeQRCode")??!1,r={headline:75,bodyText:500,tagline:50,callToAction:40,contactInfo:150},h=(s,i,q)=>{if(W){const H=W(s,q);return{colorClass:H.status==="error"?"text-red-500":H.status==="warning"?"text-orange-500":"text-gray-500 dark:text-gray-400",message:H.message}}const le=i/q;return{colorClass:le>.9?"text-red-500":le>.7?"text-orange-500":"text-gray-500 dark:text-gray-400",message:`${i}/${q}`}},X=(p==null?void 0:p.businessName)||"Your Business",me=(p==null?void 0:p.phone)||"(555) 123-4567";p!=null&&p.website;const he=X.split(" ").map(s=>s[0]).join("").toUpperCase().slice(0,2),Z={full_page:{name:"Full Page",width:350,height:450,description:'10" Ã 13" - Maximum impact',icon:k,cost:2500},half_page:{name:"Half Page",width:350,height:220,description:'10" Ã 6.5" - High visibility',icon:k,cost:1250},quarter_page:{name:"Quarter Page",width:170,height:220,description:'5" Ã 6.5" - Cost effective',icon:k,cost:625},business_card:{name:"Business Card",width:120,height:80,description:'3.5" Ã 2" - Directory listing',icon:k,cost:150},banner:{name:"Banner",width:350,height:100,description:'10" Ã 3" - Header/footer',icon:k,cost:450},classified:{name:"Classified",width:200,height:120,description:'2" Ã 3" - Text focused',icon:k,cost:80}},G={newspaper:{name:"Newspaper",description:"Daily/weekly local papers",icon:de,audience:"Local community",color:"bg-gray-500"},magazine:{name:"Magazine",description:"Monthly lifestyle/trade publications",icon:ge,audience:"Targeted interests",color:"bg-purple-500"},directory:{name:"Directory",description:"Business & service listings",icon:ue,audience:"Service seekers",color:"bg-blue-500"},program:{name:"Program",description:"Event programs & guides",icon:ie,audience:"Event attendees",color:"bg-green-500"},newsletter:{name:"Newsletter",description:"Industry/community newsletters",icon:Mail,audience:"Subscribers",color:"bg-orange-500"}},l=Z[Y],u=G[S],je={image_top:{name:"Image on Top",description:"Visual lead with text below"},image_left:{name:"Image on Left",description:"Side-by-side layout"},image_right:{name:"Image on Right",description:"Text lead with side image"},text_only:{name:"Text Only",description:"Typography focused design"},image_background:{name:"Background Image",description:"Text overlay on image"},split_design:{name:"Split Design",description:"Divided layout sections"}},b={full_color:{name:"Full Color (CMYK)",cost:1},black_white:{name:"Black & White",cost:.6},spot_color:{name:"Black + 1 Spot Color",cost:.8},two_color:{name:"Two Color",cost:.7}};return e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-xl overflow-hidden mb-6",children:[e.jsx("div",{className:"bg-gradient-to-r from-indigo-50 to-blue-50 dark:from-gray-800 dark:to-gray-700 border-b border-gray-200 dark:border-gray-600 px-6 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-lg flex items-center justify-center",children:e.jsx(de,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Print Ads Studio"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"Professional print advertising design workspace"})]})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs(Q,{variant:"outline",className:"flex items-center gap-1","data-testid":"badge-publication",children:[e.jsx(u.icon,{className:"w-3 h-3"}),u.name]}),e.jsxs(Q,{variant:"secondary",className:"flex items-center gap-1","data-testid":"badge-size",children:[e.jsx(l.icon,{className:"w-3 h-3"}),l.name]}),e.jsxs(_,{variant:"outline",size:"sm",className:"flex items-center gap-1","data-testid":"button-preview",children:[e.jsx(fe,{className:"w-4 h-4"}),"Preview"]})]})]})}),e.jsx("div",{className:"border-b border-gray-200 dark:border-gray-700",children:e.jsx("nav",{className:"flex space-x-8 px-6","data-testid":"nav-design-tabs",children:[{id:"design",label:"Ad Design & Layout",icon:ne},{id:"content",label:"Content Creation",icon:oe},{id:"print",label:"Publication & Specs",icon:Ne},{id:"analytics",label:"Performance Analytics",icon:ce}].map(s=>e.jsxs("button",{onClick:()=>xe(s.id),className:`flex items-center gap-2 py-4 px-2 text-sm font-medium border-b-2 transition-colors ${I===s.id?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,"data-testid":`tab-${s.id}`,children:[e.jsx(s.icon,{className:"w-4 h-4"}),s.label]},s.id))})}),e.jsxs("div",{className:"p-6",children:[I==="design"&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Advertisement Preview"}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(Q,{variant:"outline",className:"text-xs",children:l.description})})]}),e.jsx("div",{className:"flex justify-center",children:e.jsxs("div",{className:"bg-white border-2 border-gray-400 shadow-xl relative overflow-hidden",style:{width:l.width,height:l.height},"data-testid":"preview-print-ad",children:[e.jsx("div",{className:`absolute inset-0 ${M==="thick_border"?"border-4 border-black":M==="thin_border"?"border border-gray-400":""}`}),e.jsxs("div",{className:"h-full p-3 flex flex-col",children:[L&&e.jsx("div",{className:"flex justify-start mb-2",children:e.jsx("div",{className:"w-8 h-8 bg-blue-600 rounded flex items-center justify-center","data-testid":"preview-logo",children:e.jsx("span",{className:"text-white text-xs font-bold",children:he})})}),e.jsx("div",{className:"mb-3","data-testid":"preview-headline-area",children:e.jsx("h1",{className:`font-bold leading-tight ${l.height>250?"text-lg":"text-sm"} text-gray-900`,children:$||"Your Compelling Headline Here"})}),K!=="text_only"&&e.jsx("div",{className:"mb-3",children:e.jsxs("div",{className:"bg-gray-200 border border-gray-300 flex items-center justify-center",style:{height:Math.min(l.height*.3,100)},"data-testid":"preview-image-area",children:[e.jsx(Te,{className:"w-6 h-6 text-gray-400"}),e.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"Image"})]})}),e.jsx("div",{className:"flex-1 mb-3","data-testid":"preview-body-area",children:e.jsx("p",{className:`text-gray-700 leading-relaxed ${l.height>250?"text-sm":"text-xs"}`,children:F||"Engage your audience with compelling body copy that highlights your unique value proposition and encourages immediate action."})}),e.jsx("div",{className:"mb-2",children:e.jsx("div",{className:`bg-blue-600 text-white text-center rounded ${l.height>250?"py-2 px-4 text-sm":"py-1 px-2 text-xs"} font-semibold`,"data-testid":"preview-cta",children:E||"Call Now!"})}),e.jsxs("div",{className:"text-center","data-testid":"preview-contact-area",children:[e.jsx("div",{className:`text-gray-800 font-semibold ${l.height>250?"text-sm":"text-xs"}
1 mb-1`,children:X}),e.jsx("div",{className:`text-gray-600 ${l.height>250,"text-xs"}`,children:D||me}),A&&e.jsx("div",{className:`text-blue-600 italic ${l.height>250,"text-xs"} mt-1`,"data-testid":"preview-tagline",children:A})]}),J&&e.jsx("div",{className:"absolute bottom-2 right-2",children:e.jsx("div",{className:"w-8 h-8 bg-black border","data-testid":"preview-qr-code",children:e.jsx("div",{className:"w-full h-full bg-black opacity-80 flex items-center justify-center",children:e.jsx("span",{className:"text-white text-xs",children:"QR"})})})})]})]})}),e.jsxs("div",{className:"text-center space-y-2",children:[e.jsxs("div",{className:"text-sm text-gray-600",children:["Appearing in: ",e.jsx("span",{className:"font-medium",children:u.name})]}),e.jsxs("div",{className:"text-xs text-gray-500",children:["Target audience: ",u.audience]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(Se,{className:"w-4 h-4"}),"Ad Size & Publication"]})}),e.jsxs(m,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(c,{htmlFor:"adSize",children:"Advertisement Size"}),e.jsxs(v,{value:Y,onValueChange:s=>j("platformContent.adSize",s),children:[e.jsx(w,{"data-testid":"select-ad-size",children:e.jsx(C,{})}),e.jsx(T,{children:Object.entries(Z).map(([s,i])=>e.jsx(t,{value:s,children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i.icon,{className:"w-4 h-4"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{children:i.name}),e.jsxs("span",{className:"text-xs text-gray-500",children:[i.description," - $",i.cost]})]})]})},s))})]})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"publicationType",children:"Publication Type"}),e.jsxs(v,{value:S,onValueChange:s=>j("platformContent.publicationType",s),children:[e.jsx(w,{"data-testid":"select-publication-type",children:e.jsx(C,{})}),e.jsx(T,{children:Object.entries(G).map(([s,i])=>e.jsx(t,{value:s,children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i.icon,{className:"w-4 h-4"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{children:i.name}),e.jsx("span",{className:"text-xs text-gray-500",children:i.description})]})]})},s))})]})]}),e.jsxs("div",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:[e.jsx("div",{className:"font-medium",children:"Publication Details:"}),e.jsxs("div",{className:"text-xs mt-1",children:[u.description," ⢠Target: ",u.audience]})]})]})]}),e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(ne,{className:"w-4 h-4"}),"Layout & Design"]})}),e.jsxs(m,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(c,{htmlFor:"layoutStyle",children:"Layout Style"}),e.jsxs(v,{value:K,onValueChange:s=>j("platformContent.layoutStyle",s),children:[e.jsx(w,{"data-testid":"select-layout-style",children:e.jsx(C,{})}),e.jsx(T,{children:Object.entries(je).map(([s,i])=>e.jsx(t,{value:s,children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{children:i.name}),e.jsx("span",{className:"text-xs text-gray-500",children:i.description})]})},s))})]})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"colorScheme",children:"Color Options"}),e.jsxs(v,{value:N,onValueChange:s=>j("platformContent.colorScheme",s),children:[e.jsx(w,{"data-testid":"select-color-scheme",children:e.jsx(C,{})}),e.jsx(T,{children:Object.entries(b).map(([s,i])=>e.jsx(t,{value:s,children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("span",{children:i.name}),e.jsxs("span",{className:"text-xs text-gray-500",children:["+",((i.cost-.6)*100).toFixed(0),"%"]})]})},s))})]})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"borderStyle",children:"Border Style"}),e.jsxs(v,{value:M,onValueChange:s=>j("platformContent.borderStyle",s),children:[e.jsx(w,{"data-testid":"select-border-style",children:e.jsx(C,{})}),e.jsxs(T,{children:[e.jsx(t,{value:"no_border",children:"No Border"}),e.jsx(t,{value:"thin_border",children:"Thin Border"}),e.jsx(t,{value:"thick_border",children:"Thick Border"}),e.jsx(t,{value:"decorative_border",children:"Decorative Border"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(c,{htmlFor:"includeLogo",children:"Include Logo"}),e.jsx(re,{checked:L,onCheckedChange:s=>j("platformContent.includeLogo",s),"data-testid":"switch-include-logo"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(c,{htmlFor:"includeQRCode",children:"QR Code"}),e.jsx(re,{checked:J,onCheckedChange:s=>j("platformContent.includeQRCode",s),"data-testid":"switch-include-qr"})]})]})]})]})]})]}),I==="content"&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsx("div",{className:"space-y-6",children:e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(oe,{className:"w-4 h-4"}),"Advertisement Content"]})}),e.jsxs(m,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(c,{htmlFor:"headline",children:"Headline"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(_,{type:"button",variant:"outline",size:"sm",onClick:()=>g&&g("headline"),disabled:n&&n("headline"),className:"flex items-center gap-1","data-testid":"button-generate-headline",children:[n&&n("headline")?e.jsx(P,{className:"w-3 h-3 animate-spin"}):e.jsx(z,{className:"w-3 h-3"}),"Generate"]}),e.jsx("span",{className:`text-xs ${h("headline",$.length,r.headline).colorClass}`,children:h("headline",$.length,r.headline).message})]})]}),e.jsx(B,{...f("platformContent.headline"),placeholder:"Enter attention-grabbing headline...",maxLength:r.headline,"data-testid":"input-headline"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(c,{htmlFor:"bodyText",children:"Body Copy"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(_,{type:"button",variant:"outline",size:"sm",onClick:()=>g&&g("bodyText"),disabled:n&&n("bodyText"),className:"flex items-center gap-1","data-testid":"button-generate-body",children:[n&&n("bodyText")?e.
1jsx(P,{className:"w-3 h-3 animate-spin"}):e.jsx(z,{className:"w-3 h-3"}),"Generate"]}),e.jsx("span",{className:`text-xs ${h("bodyText",F.length,r.bodyText).colorClass}`,children:h("bodyText",F.length,r.bodyText).message})]})]}),e.jsx(O,{...f("platformContent.bodyText"),placeholder:"Enter compelling body copy that drives action...",rows:6,maxLength:r.bodyText,"data-testid":"textarea-body-text"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(c,{htmlFor:"tagline",children:"Tagline/Slogan"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(_,{type:"button",variant:"outline",size:"sm",onClick:()=>g&&g("tagline"),disabled:n&&n("tagline"),className:"flex items-center gap-1","data-testid":"button-generate-tagline",children:[n&&n("tagline")?e.jsx(P,{className:"w-3 h-3 animate-spin"}):e.jsx(z,{className:"w-3 h-3"}),"Generate"]}),e.jsx("span",{className:`text-xs ${h("tagline",A.length,r.tagline).colorClass}`,children:h("tagline",A.length,r.tagline).message})]})]}),e.jsx(B,{...f("platformContent.tagline"),placeholder:"Memorable brand tagline...",maxLength:r.tagline,"data-testid":"input-tagline"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(c,{htmlFor:"callToAction",children:"Call to Action"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(_,{type:"button",variant:"outline",size:"sm",onClick:()=>g&&g("callToAction"),disabled:n&&n("callToAction"),className:"flex items-center gap-1","data-testid":"button-generate-cta",children:[n&&n("callToAction")?e.jsx(P,{className:"w-3 h-3 animate-spin"}):e.jsx(z,{className:"w-3 h-3"}),"Generate"]}),e.jsx("span",{className:`text-xs ${h("callToAction",E.length,r.callToAction).colorClass}`,children:h("callToAction",E.length,r.callToAction).message})]})]}),e.jsx(B,{...f("platformContent.callToAction"),placeholder:"Call Now, Visit Today, etc.",maxLength:r.callToAction,"data-testid":"input-call-to-action"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"contactInfo",children:"Contact Information"}),e.jsx(O,{...f("platformContent.contactInfo"),placeholder:"Phone, address, website, hours...",rows:3,maxLength:r.contactInfo,"data-testid":"textarea-contact-info"}),e.jsx("span",{className:`text-xs ${h("contactInfo",D.length,r.contactInfo).colorClass}`,children:h("contactInfo",D.length,r.contactInfo).message})]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsx(x,{className:"text-base",children:"Print Ad Guidelines"})}),e.jsx(m,{className:"space-y-3",children:e.jsxs("div",{className:"text-sm text-gray-600 space-y-2",children:[e.jsx("p",{children:e.jsx("strong",{children:"Effective Print Ad Elements:"})}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsx("li",{children:"Clear, benefit-focused headline"}),e.jsx("li",{children:"High-contrast visuals that print well"}),e.jsx("li",{children:"Easy-to-read fonts and sizes"}),e.jsx("li",{children:"Strong call to action"}),e.jsx("li",{children:"Essential contact information"})]}),e.jsx("p",{className:"pt-2",children:e.jsx("strong",{children:"Size-Specific Tips:"})}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsx("li",{children:"Larger ads: More detail and storytelling"}),e.jsx("li",{children:"Smaller ads: Focus on one key message"}),e.jsx("li",{children:"Banner ads: Emphasize branding"}),e.jsx("li",{children:"Classified: Lead with benefits"})]})]})})]}),e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsx(x,{className:"text-base",children:"Publication-Specific Tips"})}),e.jsx(m,{children:e.jsxs("div",{className:"text-sm text-gray-600",children:[e.jsxs("p",{className:"font-medium",children:[u.name," Advertising:"]}),e.jsxs("div",{className:"mt-2 text-xs space-y-1",children:[S==="newspaper"&&e.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[e.jsx("li",{children:"Use strong headlines for quick scanning"}),e.jsx("li",{children:"Include local relevance and immediacy"}),e.jsx("li",{children:"Consider black & white or spot color"}),e.jsx("li",{children:"Plan for daily or weekly publication cycles"})]}),S==="magazine"&&e.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[e.jsx("li",{children:"Higher quality images and graphics"}),e.jsx("li",{children:"More lifestyle and aspirational messaging"}),e.jsx("li",{children:"Longer shelf life allows detailed information"}),e.jsx("li",{children:"Full color recommended for impact"})]}),S==="directory"&&e.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[e.jsx("li",{children:"Focus on services and contact details"}),e.jsx("li",{children:"Include keywords for easy finding"}),e.jsx("li",{children:"Emphasize credibility and experience"}),e.jsx("li",{children:"Keep design simple and informative"})]})]})]})})]})]})]}),I==="print"&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsx("div",{className:"space-y-6",children:e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(ie,{className:"w-4 h-4"}),"Publication Schedule"]})}),e.jsxs(m,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(c,{htmlFor:"adFrequency",children:"Ad Frequency"}),e.jsxs(v,{value:V,onValueChange:s=>j("platformContent.adFrequency",s),children:[e.jsx(w,{"data-testid":"select-ad-frequency",children:e.jsx(C,{})}),e.jsxs(T,{children:[e.jsx(t,{value:"single_run",children:"Single Run"}),e.jsx(t,{value:"weekly_4_weeks",children:"Weekly for 4 Weeks"}),e.jsx(t,{value:"bi_weekly_8_weeks",children:"Bi-weekly for 8 Weeks"}),e.jsx(t,{value:"monthly_6_months",children:"Monthly for 6 Months"}),e.jsx(t,{value:"seasonal_campaign",children:"Seasonal Campaign"})]})]})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"targetCirculation",children:"Target Circulation"}),e.jsxs(v,{value:y,onValueChange:s=>j("platformContent.targetCirculation",s),children:[e.jsx(w,{"data-testid":"select-target-circulation",children:e.jsx(C,{})}),e.jsxs(T,{children:[e.jsx(t,{value:"10000",children:"10,000 - Local weekly"}),e.jsx(t,{value:"25000",children:"25,000 - Small city daily"}),e.jsx(t,{value:"50000",children:"50,000 - Mid-size market"}),e.jsx(t,{value:"100000",children:"100,000 - Large city paper"}),e.jsx(t,{value:"250000",children:"250,000 - Regional publication"})]})]})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"adDeadline",children:"Submission Deadline"}
1),e.jsx(B,{type:"date",...f("platformContent.adDeadline"),"data-testid":"input-ad-deadline"})]}),e.jsxs("div",{children:[e.jsx(c,{htmlFor:"specialPlacement",children:"Special Placement Requests"}),e.jsx(O,{...f("platformContent.specialPlacement"),placeholder:"Front page, sports section, specific page...",rows:2,"data-testid":"textarea-special-placement"})]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(ye,{className:"w-4 h-4"}),"Investment Analysis"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsxs("span",{children:["Base ad cost (",l.name,"):"]}),e.jsxs("span",{className:"font-medium",children:["$",l.cost.toLocaleString()]})]}),e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsxs("span",{children:["Color premium (",(ee=b[N])==null?void 0:ee.name,"):"]}),e.jsx("span",{className:"font-medium",children:b[N]?`+${((b[N].cost-.6)*100).toFixed(0)}%`:"+0%"})]}),e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{children:"Design & production:"}),e.jsx("span",{className:"font-medium",children:"$300"})]}),V!=="single_run"&&e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{children:"Frequency discount:"}),e.jsx("span",{className:"font-medium text-green-600",children:"-15%"})]}),e.jsx(U,{}),e.jsxs("div",{className:"flex justify-between text-base font-semibold",children:[e.jsx("span",{children:"Total Investment:"}),e.jsxs("span",{children:["$",(l.cost*(((se=b[N])==null?void 0:se.cost)||1)+300).toLocaleString()]})]}),e.jsxs("div",{className:"text-xs text-gray-500 text-center",children:["Reach: ",parseInt(y).toLocaleString()," readers"]}),e.jsxs("div",{className:"text-xs text-gray-500 text-center",children:["Cost per thousand: $",((l.cost*(((ae=b[N])==null?void 0:ae.cost)||1)+300)/(parseInt(y)/1e3)).toFixed(2)," CPM"]})]})})]}),e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(be,{className:"w-4 h-4"}),"Production Requirements"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("div",{className:"font-medium mb-2",children:"Technical Specifications:"}),e.jsxs("div",{className:"text-xs space-y-1 text-gray-600",children:[e.jsx("p",{children:"⢠Resolution: 300 DPI minimum for print"}),e.jsx("p",{children:"⢠Color mode: CMYK for full color ads"}),e.jsx("p",{children:"⢠File format: PDF with embedded fonts"}),e.jsx("p",{children:'⢠Bleed: 0.125" on all sides if full-bleed'}),e.jsx("p",{children:'⢠Safe area: 0.25" margin from trim'})]})]}),e.jsx(U,{}),e.jsxs("div",{className:"text-sm",children:[e.jsx("div",{className:"font-medium mb-2",children:"Timeline:"}),e.jsxs("div",{className:"text-xs space-y-1 text-gray-600",children:[e.jsx("p",{children:"⢠Design approval: 2-3 business days"}),e.jsx("p",{children:"⢠File preparation: 1 business day"}),e.jsx("p",{children:"⢠Publication review: 1-2 business days"}),e.jsxs("p",{children:["⢠Print production: ",S==="newspaper"?"1 day":"3-5 days"]})]})]})]})})]})]})]}),I==="analytics"&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(ce,{className:"w-4 h-4"}),"Expected Performance"]})}),e.jsx(m,{className:"space-y-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:parseInt(y).toLocaleString()}),e.jsx("div",{className:"text-xs text-gray-600",children:"Total Reach"})]}),e.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"2.1%"}),e.jsx("div",{className:"text-xs text-gray-600",children:"Expected Response Rate"})]}),e.jsxs("div",{className:"text-center p-3 bg-orange-50 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:Math.round(parseInt(y)*.021).toLocaleStr
1ing()}),e.jsx("div",{className:"text-xs text-gray-600",children:"Estimated Responses"})]}),e.jsxs("div",{className:"text-center p-3 bg-purple-50 rounded-lg",children:[e.jsxs("div",{className:"text-2xl font-bold text-purple-600",children:["$",((l.cost*(((te=b[N])==null?void 0:te.cost)||1)+300)/(parseInt(y)*.021)).toFixed(2)]}),e.jsx("div",{className:"text-xs text-gray-600",children:"Cost Per Response"})]})]})})]}),e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(ve,{className:"w-4 h-4"}),"Design Effectiveness"]})}),e.jsxs(m,{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Headline Impact"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 h-2 bg-gray-200 rounded-full",children:e.jsx("div",{className:"w-4/5 h-2 bg-green-500 rounded-full"})}),e.jsx("span",{className:"text-sm font-medium",children:"85%"})]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Visual Appeal"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 h-2 bg-gray-200 rounded-full",children:e.jsx("div",{className:"w-3/4 h-2 bg-blue-500 rounded-full"})}),e.jsx("span",{className:"text-sm font-medium",children:"78%"})]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Call to Action"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 h-2 bg-gray-200 rounded-full",children:e.jsx("div",{className:"w-5/6 h-2 bg-orange-500 rounded-full"})}),e.jsx("span",{className:"text-sm font-medium",children:"88%"})]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Brand Recognition"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 h-2 bg-gray-200 rounded-full",children:e.jsx("div",{className:`${L?"w-4/5":"w-1/3"} h-2 bg-purple-500 rounded-full`})}),e.jsx("span",{className:"text-sm font-medium",children:L?"82%":"35%"})]})]})]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(we,{className:"w-4 h-4"}),"Industry Benchmarks"]})}),e.jsx(m,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"flex justify-between text-sm mb-1",children:e.jsx("span",{children:"Response Rates by Publication"})}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Local Newspapers:"}),e.jsx("span",{className:"font-medium",children:"1.5% - 2.5%"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Trade Magazines:"}),e.jsx("span",{className:"font-medium",children:"2.0% - 3.5%"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Business Directories:"}),e.jsx("span",{className:"font-medium",children:"3.0% - 5.0%"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Event Programs:"}),e.jsx("span",{className:"font-medium",children:"4.0% - 6.0%"})]})]})]}),e.jsx(U,{}),e.jsxs("div",{children:[e.jsx("div",{className:"flex justify-between text-sm mb-1",children:e.jsx("span",{children:"Size Impact"})}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Full Page:"}),e.jsx("span",{className:"font-medium",children:"Baseline +30%"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Half Page:"}),e.jsx("span",{className:"font-medium",children:"Baseline +15%"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Quarter Page:"}),e.jsx("span",{className:"font-medium",children:"Baseline"})]})]})]})]})})]}),e.jsxs(d,{children:[e.jsx(o,{className:"pb-3",children:e.jsxs(x,{className:"text-base flex items-center gap-2",children:[e.jsx(Ce,{className:"w-4 h-4"}),"Audience Analysis"]})}),e.jsx(m,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("div",{className:"font-medium mb-2",children:"Publication Audience:"}),e.jsxs("div",{className:"text-xs space-y-1",children:[e.jsxs("p",{children:["⢠",u.audie
1nce]}),e.jsxs("p",{children:["⢠Circulation: ",parseInt(y).toLocaleString()," readers"]}),e.jsx("p",{children:"⢠Estimated pass-along rate: 2.3 readers per copy"})]})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("div",{className:"font-medium mb-2",children:"Temperature Impact:"}),e.jsxs("div",{className:"text-xs space-y-1",children:[R==="cold"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"⢠Cold audience: Focus on brand awareness"}),e.jsx("p",{children:"⢠Use clear value propositions"}),e.jsx("p",{children:"⢠Include trust signals and credibility"})]}),R==="warm"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"⢠Warm audience: Leverage familiarity"}),e.jsx("p",{children:"⢠Reference previous interactions"}),e.jsx("p",{children:"⢠Focus on specific offerings"})]}),R==="hot"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"⢠Hot audience: Create urgency"}),e.jsx("p",{children:"⢠Use direct calls to action"}),e.jsx("p",{children:"⢠Emphasize immediate benefits"})]})]})]})]})})]})]})]})]})]})})}export{Ee as PrintAdsMockup};
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.