1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9775,2432],{28268:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/boilerplate-generator",function(){return s(70423)}])},60493:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},18289:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},2553:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},88030:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},4270:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},20113:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},89176:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},25852:function(e,t,s){"use strict";var r=s(85893);s(67294),t.Z=e=>{let{title:t,description:s,children:a,showHelpPrompt:l=!1,helpPromptText:n,helpPromptLink:o,helpPromptLinkText:i}=e;return(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-8",children:(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:t}),(0,r.jsx)("p",{className:"text-gray-600",children:s})]}),a]})})}},89346:function(e,t,s){"use strict";s.d(t,{Ol:function(){return l},Zb:function(){return a},aY:function(){return o},ll:function(){return n}});var r=s(85893);s(67294);let a=e=>{let{children:t,className:s="",...a}=e;return(0,r.jsx)("div",{className:"bg-white rounded-lg shadow ".concat(s),...a,children:t})},l=e=>{let{children:t,className:s="",...a}=e;return(0,r.jsx)("div",{className:"p-6 pb-0 ".concat(s),...a,children:t})},n=e=>{let{children:t,className:s="",...a}=e;return(0,r.jsx)("h3",{className:"text-lg font-medium ".concat(s),...a,children:t})},o=e=>{let{children:t,className:s="",...a}=e;return(0,r.jsx)("div",{className:"p-6 ".concat(s),...a,children:t})}},39752:function(e,t,s){"use strict";s.d(t,{k:function(){return o}});var r=s(67294);class a{async call(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let r=await fetch("/api/api_endpoints",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.getToken())},body:JSON.stringify({mode:e,data:t,writingStyle:s})});if(402===r.status){let e=await r.json().catch(()=>({})),t=e.upgradeUrl||"/billing",s=t.includes("?")?"".concat(t,"&reason=subscription_required"):"".concat(t,"?reason=subscription_required");this.options.showNotification&&this.options.showNotification(e.message||"Add a payment method to continue using the service.","warning"),window.location.href=s;let a=Error(e.message||"Subscription required");throw a.status=402,a.upgradeUrl=s,a}
1if(401===r.status){this.options.showNotification&&this.options.showNotification("Please log in to continue","error"),this.clearToken(),window.location.href="/login";let e=Error("Authentication required");throw e.status=401,e}if(!r.ok){let e=await r.json().catch(()=>({})),t=e.message||e.error||"API responded with status ".concat(r.status);this.options.showNotification&&this.options.showNotification(t,"error");let s=Error(t);throw s.status=r.status,s}return await r.json()}catch(t){throw console.error("Error calling ".concat(e,":"),t),t}}async callWithStrategicData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.call(e,t)}getToken(){return localStorage.getItem("token")||""}clearToken(){localStorage.removeItem("token"),localStorage.removeItem("user"),localStorage.removeItem("refreshToken")}updateOptions(e){this.options={...this.options,...e}}constructor(e={}){this.options=e}}new a;var l=s(13410);let n=()=>{let{showSubscriptionModal:e,showNotification:t}=(0,l.l)();return(0,r.useMemo)(()=>new a({showSubscriptionModal:e,showNotification:t}),[e,t])},o=()=>{let e=n();return{call:e.call.bind(e),callWithStrategicData:e.callWithStrategicData.bind(e)}}},70423:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return P}});var r=s(85893),a=s(67294),l=s(89346),n=s(76022),o=s(83582),i=s(11163),c=s(2553),d=s(89176),u=s(62190),m=s(4270),h=s(20113),x=s(88030),p=s(60641),g=s(33058),b=s(18289),f=s(60493),y=s(25852),v=s(39752),j=s(52432),N=s(13410);let w=[{name:"The Creator",description:"Innovative, artistic, striving for authentic self-expression",example:"Adobe, Lego, Apple",defaultTone:"Inspirational",defaultPersonality:["Innovative","Empathetic","Playful"]},{name:"The Caregiver",description:"Nurturing, compassionate, focused on helping others",example:"Johnson & Johnson, UNICEF, Cleveland Clinic",defaultTone:"Empathetic",defaultPersonality:["Empathetic","Trustworthy","Friendly"]},{name:"The Ruler",description:"Authoritative, responsible, providing structure and control",example:"Microsoft, Mercedes-Benz, American Express",defaultTone:"Formal",defaultPersonality:["Authoritative","Professional","Trustworthy"]},{name:"The Jester",description:"Playful, humorous, living in the moment",example:"Old Spice, Dollar Shave Club, M&Ms",defaultTone:"Conversational",defaultPersonality:["Playful","Bold","Friendly"]},{name:"The Regular Guy/Gal",description:"Relatable, authentic, down-to-earth values",example:"IKEA, Target, Budweiser",defaultTone:"Neutral",defaultPersonality:["Friendly","Trustworthy","Professional"]},{name:"The Lover",description:"Passionate, sensual, focused on relationships and experiences",example:"Victoria's Secret, Godiva, H\xe4agen-Dazs",defaultTone:"Inspirational",defaultPersonality:["Empathetic","Bold","Playful"]},{name:"The Hero",description:"Brave, determined, overcoming challenges and adversity",example:"Nike, FedEx, U.S. Army",defaultTone:"Persuasive",defaultPersonality:["Bold","Authoritative","Inspirational"]},{name:"The Outlaw",description:"Rebellious, disruptive, challenging the status quo",example:"Harley-Davidson, Virgin, Red Bull",defaultTone:"Bold",defaultPersonality:["Bold","Rebellious","Playful"]},{name:"The Magician",description:"Visionary, transformative, making dreams reality",example:"Disney, Tesla, Dyson",defaultTone:"Inspirational",defaultPersonality:["Innovative","Bold","Professional"]},{name:"The Innocent",description:"Optimistic, pure, honest and straightforward",example:"Coca-Cola, Dove, Whole Foods",defaultTone:"Conversational",defaultPersonality:["Friendly","Empathetic","Trustworthy"]},{name:"The Explorer",description:"Adventurous, independent, seeking discovery and freedom",example:"Jeep, Patagonia, National Geographic",defaultTone:"Inspirational",defaultPersonality:["Bold","Professional","Empathetic"]},{name:"The Sage",description:"Knowledgeable, wise, sharing expertise and insight",example:"Google, BBC, The Economist",defaultTone:"Educational",defaultPersonality:["Professional","Authoritative","Trustworthy"]}],k=["Formal","Neutral","Conversational","Technical","Inspirational","Educational","Persuasive"];var S=()=>{var e,t;
1let[s,S]=(0,a.useState)([""]),[T,C]=(0,a.useState)(""),[P,Z]=(0,a.useState)(""),[E,B]=(0,a.useState)(""),[A,I]=(0,a.useState)(""),[D,V]=(0,a.useState)(""),[M,F]=(0,a.useState)(""),[O,_]=(0,a.useState)(""),[W,q]=(0,a.useState)({short:"",medium:"",long:""}),[H,z]=(0,a.useState)({short:"",medium:"",long:""}),[G,J]=(0,a.useState)({short:!1,medium:!1,long:!1}),[L,R]=(0,a.useState)(!1),[U,Y]=(0,a.useState)(!1),[K,X]=(0,a.useState)(!1),[Q,$]=(0,a.useState)(""),[ee,et]=(0,a.useState)(null),[es,er]=(0,a.useState)(null),{brandVoice:ea}=(0,n.b)();(0,i.useRouter)();let{call:el}=(0,v.k)(),{showNotification:en}=(0,N.l)(),eo=async(e,t)=>{try{await navigator.clipboard.writeText(e),er(t),setTimeout(()=>er(null),2e3)}catch(e){console.error("Failed to copy text: ",e)}};(0,a.useEffect)(()=>{var e;let{productName:t,productDescription:s,idealCustomer:r,brandArchetype:a,valueProposition:l,messaging:n}=o.Z.getAllStrategicDataFromStorage();if(t&&I(t),s&&V(s),r&&(Array.isArray(r)?S(r.length>0?r:[""]):S([r])),l&&_(l),(null==n?void 0:n.valueProposition)&&_(n.valueProposition),null==ea?void 0:null===(e=ea.brandVoice)||void 0===e?void 0:e.archetype){if($(ea.brandVoice.archetype),ea.brandVoice.tone)B(ea.brandVoice.tone);else{let e=w.find(e=>e.name===ea.brandVoice.archetype);e&&B(e.defaultTone)}}let i=JSON.parse(localStorage.getItem("brandBoilerplates")||"[]");i&&i.length>=3&&(z({short:i[0]||"",medium:i[1]||"",long:i[2]||""}),X(!0))},[ea]);let ei=e=>{let t=s.filter((t,s)=>s!==e);S(t.length>0?t:[""])},ec=(e,t)=>{let r=[...s];r[e]=t,S(r)},ed=e=>{$(e);let t=w.find(t=>t.name===e);t&&B(t.defaultTone)},eu=async()=>{var e,t;Y(!0),et(null);let r={businessName:A,description:D,product:P,audiences:s.filter(e=>""!==e.trim()),promise:T,tone:E,differentiator:M,positioning:O,archetype:(null==ea?void 0:null===(e=ea.brandVoice)||void 0===e?void 0:e.archetype)||Q,personality:(null==ea?void 0:null===(t=ea.brandVoice)||void 0===t?void 0:t.personality)||[]};try{let[e,t,s]=await Promise.all([el("boilerplate",{...r,wordCount:"20",numOptions:1}),el("boilerplate",{...r,wordCount:"50",numOptions:1}),el("boilerplate",{...r,wordCount:"100",numOptions:1})]),a={short:e[0]||"",medium:t[0]||"",long:s[0]||""};q(a),z(a),X(!0),J({short:!1,medium:!1,long:!1})}catch(e){console.error("Error generating boilerplates:",e),402!==e.status&&et("Failed to generate boilerplates. Please try again.")}finally{Y(!1)}},em=async e=>{J(t=>({...t,[e]:!0}));let t=[H.short,H.medium,H.long];localStorage.setItem("brandBoilerplates",JSON.stringify(t));try{await o.Z.setStrategicDataValue("boilerplates",t),localStorage.setItem("marketingBoilerplate20",H.short),localStorage.setItem("marketingBoilerplate50",H.medium),localStorage.setItem("marketingBoilerplate100",H.long),await (0,j.E)(),en("Boilerplate saved successfully","success")}catch(e){console.error("Error saving boilerplate:",e)}},eh=(e,t)=>{z(s=>({...s,[e]:t})),J(t=>({...t,[e]:!1}))};return(0,r.jsx)(y.Z,{title:"",description:"",showHelpPrompt:L,helpPromptText:"Need help? Let AI suggest a boilerplate based on your",helpPromptLink:"/brand-voice",helpPromptLinkText:"brand voice and strategic data",children:(0,r.jsxs)("div",{className:"space-y-8 w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(c.Z,{className:"w-8 h-8 text-blue-600"}),(0,r.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:"Craft Your Boilerplate"})]}),(0,r.jsx)("p",{className:"text-gray-600",children:"Generate three boilerplate versions (20, 50, and 100 words) shaped by your tone, positioning, and personality"}),(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)(l.Zb,{className:"p-6",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:"Let's create your boilerplate"}),(0,r.jsx)("p",{className:"text-gray-600 mt-2",children:"We'll use this information to generate three versions that match your brand"})]}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Business name"}),(0,r.jsx)("input",{type:"text",value:A,onChange:e=>I(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter your business name"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Business description",D&&(0,r.jsx)("span",{className:"text-green-600 ml-2",children:"â Auto-filled"})]}),(0,r.jsx)("textarea",{value:D,onChange:e=>V(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",rows:4,placeholder:"Describe what your business does"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[(0,r.jsx)(d.Z,{className:"w-4 h-4 inline mr-1"}),"Ideal customers or audiences",s.some(e=>e.trim())&&(0,r.jsx)("span",{className:"text-green-600 ml-2",children:"â Auto-filled"})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[s.map((e,t)=>(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("input",{type:"text",value:e,onCh
1ange:e=>ec(t,e.target.value),className:"flex-1 p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter ideal customer or audience"}),s.length>1&&(0,r.jsx)("button",{onClick:()=>ei(t),className:"text-red-500 hover:text-red-700 p-2",children:(0,r.jsx)(u.Z,{className:"w-4 h-4"})})]},t)),(0,r.jsxs)("button",{onClick:()=>{S([...s,""])},className:"text-blue-600 hover:text-blue-700 flex items-center gap-1",children:[(0,r.jsx)(m.Z,{className:"w-4 h-4"}),"Add another audience"]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[(0,r.jsx)(h.Z,{className:"w-4 h-4 inline mr-1"}),"What problem are you solving?"]}),(0,r.jsx)("input",{type:"text",value:T,onChange:e=>C(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"What key problem does your business solve?"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[(0,r.jsx)(x.Z,{className:"w-4 h-4 inline mr-1"}),"Key differentiator"]}),(0,r.jsx)("input",{type:"text",value:M,onChange:e=>F(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"What makes you different from competitors?"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Value Proposition",O&&(0,r.jsx)("span",{className:"text-green-600 ml-2",children:"â Auto-filled"})]}),(0,r.jsx)("input",{type:"text",value:O,onChange:e=>_(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"What unique value do you provide to your customers?"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Brand Archetype",Q&&(0,r.jsx)("span",{className:"text-green-600 ml-2",children:"â Auto-filled"})]}),(0,r.jsxs)("select",{value:Q,onChange:e=>ed(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",children:[(0,r.jsx)("option",{value:"",children:"Select archetype"}),w.map(e=>(0,r.jsx)("option",{value:e.name,children:e.name},e.name))]}),Q&&(0,r.jsxs)("p",{className:"text-sm text-gray-600 mt-2",children:[null===(e=w.find(e=>e.name===Q))||void 0===e?void 0:e.description,(0,r.jsx)("br",{}),(0,r.jsxs)("span",{className:"text-gray-500",children:["Examples:"," ",null===(t=w.find(e=>e.name===Q))||void 0===t?void 0:t.example]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["What tone should it reflect?",E&&(0,r.jsx)("span",{className:"text-green-600 ml-2",children:"â Auto-filled"})]}),(0,r.jsxs)("select",{value:E,onChange:e=>B(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",children:[(0,r.jsx)("option",{value:"",children:"Select tone"}),k.map(e=>(0,r.jsx)("option",{value:e,children:e},e))]})]}),(0,r.jsx)("button",{onClick:eu,disabled:U||!A||!D,className:"w-full bg-blue-600 text-white px-6 py-3 rounded-md font-medium hover:bg-blue-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Z,{className:"w-5 h-5 animate-spin"}),"Generating Three Versions..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{className:"w-5 h-5"}),"Generate Three Boilerplate Versions"]})}),ee&&(0,r.jsx)("div",{className:"p-4 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-red-700",children:ee})})]})]}),K&&(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:"Your Boilerplate Versions"}),(0,r.jsxs)("button",{onClick:()=>{q({short:"",medium:"",long:""}),z({short:"",medium:"",long:""}),J({short:!1,medium:!1,long:!1}),X(!1),et(null),localStorage.removeItem("brandBoilerplates")}
1,className:"flex items-center gap-2 px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200",children:[(0,r.jsx)(u.Z,{className:"w-4 h-4"}),"Start Over"]})]}),(0,r.jsxs)(l.Zb,{className:"p-6 border-l-4 border-l-green-500",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"20-Word Version (Short)"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{onClick:()=>eo(H.short,"short"),className:"text-sm text-blue-600 hover:text-blue-700 flex items-center gap-1",children:[(0,r.jsx)(b.Z,{className:"w-4 h-4"}),"short"===es?"Copied!":"Copy"]}),(0,r.jsx)("button",{onClick:()=>em("short"),disabled:G.short,className:"px-4 py-2 rounded-md text-sm font-medium ".concat(G.short?"bg-green-100 text-green-700 cursor-default":"bg-green-600 text-white hover:bg-green-700"),children:G.short?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{className:"w-4 h-4 inline mr-1"}),"Saved"]}):"Save This Version"})]})]}),(0,r.jsx)("textarea",{value:H.short,onChange:e=>eh("short",e.target.value),className:"w-full p-4 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-gray-800 bg-white",rows:3,placeholder:"Your 20-word boilerplate will appear here..."})]}),(0,r.jsxs)(l.Zb,{className:"p-6 border-l-4 border-l-blue-500",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"50-Word Version (Standard)"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{onClick:()=>eo(H.medium,"medium"),className:"text-sm text-blue-600 hover:text-blue-700 flex items-center gap-1",children:[(0,r.jsx)(b.Z,{className:"w-4 h-4"}),"medium"===es?"Copied!":"Copy"]}),(0,r.jsx)("button",{onClick:()=>em("medium"),disabled:G.medium,className:"px-4 py-2 rounded-md text-sm font-medium ".concat(G.medium?"bg-green-100 text-green-700 cursor-default":"bg-green-600 text-white hover:bg-green-700"),children:G.medium?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{className:"w-4 h-4 inline mr-1"}),"Saved"]}):"Save This Version"})]})]}),(0,r.jsx)("textarea",{value:H.medium,onChange:e=>eh("medium",e.target.value),className:"w-full p-4 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-gray-800 bg-white",rows:4,placeholder:"Your 50-word boilerplate will appear here..."})]}),(0,r.jsxs)(l.Zb,{className:"p-6 border-l-4 border-l-purple-500",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"100-Word Version (Detailed)"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{onClick:()=>eo(H.long,"long"),className:"text-sm text-blue-600 hover:text-blue-700 flex items-center gap-1",children:[(0,r.jsx)(b.Z,{className:"w-4 h-4"}),"long"===es?"Copied!":"Copy"]}),(0,r.jsx)("button",{onClick:()=>em("long"),disabled:G.long,className:"px-4 py-2 rounded-md text-sm font-medium ".concat(G.long?"bg-green-100 text-green-700 cursor-default":"bg-green-600 text-white hover:bg-green-700"),children:G.long?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{className:"w-4 h-4 inline mr-1"}),"Saved"]}):"Save This Version"})]})]}),(0,r.jsx)("textarea",{value:H.long,onChange:e=>eh("long",e.target.value),className:"w-full p-4 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-gray-800 bg-white",rows:6,placeholder:"Your 100-word boilerplate will appear here..."})]}),(0,r.jsx)(l.Zb,{className:"p-4 bg-gray-50",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("span",{className:"text-sm text-gray-600",children:"Status:"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsxs)("span",{className:"text-sm ".concat(G.short?"text-green-600":"text-gray-400"),children:[G.short?"â":"â"," Short"]}),(0,r.jsxs)("span",{className:"text-sm ".concat(G.medium?"text-green-600":"text-gray-400"),children:[G.medium?"â":"â"," Standard"]}),(0,r.jsxs)("span",{className:"text-sm ".concat(G.long?"text-green-600":"text-gray-400"),children:[G.long?"â":"â"," Detailed"]})]})]}),(G.short||G.medium||G.long)&&(0,r.jsx)("span",{className:"text-sm text-green-600 font-medium",children:"Saved to your brand assets!"})]})})]})]})]})})},T=s(22155),C=s(58092),P=()=>(0,r.jsx)(N.J,{children:(0,r.jsx)(T.g,{children:(0,r.jsx)(C.P,{children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,r.jsx)(S,{})})})})})},52432:function(e,t,s){"use strict";s.d(t,{E:function(){return a}});var r=s(93938);let a=async()=>{try{console.log("\uD83D\uDD0D Storing user preferences with new service...");let e=await r.i.storeUserPreferences();return console.log("\uD83D\uDD0D Final response:"),console.log(e),{res:{ok:!0,status:200},finalResponse:e}}catch(e){return console.error("â Error storing user preferences:",e),{res:{ok:!0,status:200},finalResponse:{message:"Saved to localStorage only"}}}}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=28268)}),_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.