PageSourceSearch

https://thebiscuitfactory.ie/assets/ChristmasAvatarResults-CaBwh7-w.js

js thebiscuitfactory.ie collected 2026-10-07 08:40:48 UTC 17,906 bytes, 1 lines download raw bytes

1import{u as M,Z as D,r as b,j as s,b as f,c as x,d as y,e as v,G,B as z,A as R,Y as q}from"./index-Czsxnykm.js";import{B as j}from"./badge-BNsRRT6T.js";import{T as H}from"./ToolkitBackBar-C8tKg3nx.js";import{p as O}from"./christmasAccess-CJvejwEZ.js";import{E as I}from"./jspdf.es.min-BG78fXRt.js";import{s as L}from"./pdfDownloadHelper-BCydOEEt.js";import{U as Y}from"./user-CG_MLuXy.js";import{T as Z}from"./target-Css4Y1bt.js";import{M as J}from"./message-circle-QUI5rzRe.js";import{D as U}from"./download-91ZnNs8Q.js";import"./triangle-alert-Dp8jMzA5.js";const ne=()=>{const p=M(),[N]=D(),[a,C]=b.useState(null),[T,P]=b.useState(!0);if(b.useEffect(()=>{const e=N.get("data");if(e)try{const r=JSON.parse(decodeURIComponent(e));C(r.profile)}catch(r){console.error("Error parsing profile data:",r)}else{const r=localStorage.getItem("christmas-avatar-results");if(r)try{const t=JSON.parse(r);C(t.profile)}catch(t){console.error("Error parsing saved results:",t),p("/christmas-customer-avatar")}else p("/christmas-customer-avatar")}},[N,p]),!a)return null;const u=(e=!1)=>{const r=e?a.gender.secondary[0]:a.gender.primary[0],t=e?a.ageGroup.secondary[0]:a.ageGroup.primary[0];return{woman:t!=null&&t.includes("25-35")?e?"Rachel":"Emma":t!=null&&t.includes("36-45")?e?"Lisa":"Sarah":t!=null&&t.includes("46-55")?e?"Helen":"Claire":e?"Patricia":"Mary",man:t!=null&&t.includes("25-35")?e?"Ryan":"David":t!=null&&t.includes("36-45")?e?"Brian":"Michael":t!=null&&t.includes("46-55")?e?"Paul":"James":e?"Robert":"John","non-binary":e?"Sam":"Alex","prefer-not-say":e?"Taylor":"Casey",other:e?"Morgan":"Jordan"}[r]||"Chris"},g=(e=!1)=>{const r=u(e),t=e?a.ageGroup.secondary[0]||"35-45":a.ageGroup.primary[0]||"35-45",n=e?a.gender.secondary[0]||"woman":a.gender.primary[0]||"woman",h=e?a.interests.secondary[0]||"outdoor-nature":a.interests.primary[0]||"outdoor-nature",i=e?a.lifeStage.secondary[0]||"established-family":a.lifeStage.primary[0]||"established-family";let d=`${r} is a ${t.replace("-","-")} year old `;n==="woman"?d+="woman ":n==="man"&&(d+="man "),d+=`who is a ${{"young-family":"parent with young children","young-professional":"young professional","established-family":"parent with an established family","empty-nest":"empty nester",retired:"retiree",student:"student","new-parent":"new parent",single:"single person","couple-no-kids":"part of a couple",grandparents:"grandparent"}[i]||"busy person"}. `;const o=n==="man"?"He":n==="woman"?"She":"They",m=o.toLowerCase(),c={"outdoor-nature":`${o} values authenticity and experiences over possessions, often choosing gifts that connect to real experiences`,"wellness-fitness":`${o} believes in investing in self-care and wellbeing, choosing gifts that nurture and restore`,"arts-culture":`${o} appreciates craftsmanship and beauty, gravitating toward gifts with artistic value and cultural significance`,"food-wine":`${o} sees sharing meals and experiences as love, choosing gifts that bring people together`,"crafts-creating":`${o} values handmade and unique items, understanding the effort behind creation`,"travel-adventure":`${o} prizes experiences and memories over things, often gifting adventures or meaningful keepsakes`,"reading-learning":`${o} values knowledge and growth, choosing gifts that inspire and educate`,socializing:`${o} sees gift-giving as relationship building, choosing items that strengthen connections`,"home-family":`${o} prioritises comfort and togetherness, selecting gifts that enhance home life and family bonds`,"music-entertainment":`${o} values shared experiences and joy, choosing gifts that create moments of happiness`,sports:`${o} appreciates dedication and achievement, often choosing gifts that support goals and passions`,relaxation:`${o} understands the need for peace and restoration, choosing gifts that offer comfort and calm`};return d+=`${c[h]||`${o} chooses gifts thoughtfully based on ${m==="they"?"their":"her"} values`}, which shapes how ${m==="they"?"they approach":m+" approaches"} Christmas gift-giving.`,d},k=()=>{const e=a.interests.primary[0]||"outdoor-nature",r=a.values.primary[0]||"quality-craftsmanship",t=a.worries.primary[0]||"wrong-choice",n=a.budget.primary[0]||"50-100",h=Object.values(a).some(d=>d.secondary&&d.secondary.length>0),i=[];return i.push({type:"Warm Audience Strategy",title:"Thank You Rewards & Loyalty",content:"Your current customers are warm! Reward their loyalty with early access, special discounts, or exclusive Christmas bundles. They already trust you, so focu
1s on appreciation."}),i.push({type:"Warm Audience Strategy",title:"Email Marketing Powerhouse",content:"Email marketing is huge with current customers. Send gift guides, styling tips, behind-the-scenes content, and Christmas inspiration. They want to hear from you!"}),i.push({type:"Warm Audience Strategy",title:"Gift Solution Influence",content:"Help them solve gift problems for others. Position your products as perfect solutions for their gift-giving challenges. They trust your recommendations."}),e.includes("outdoor")?i.push({type:"Gift-Buying Motivation",title:"Authenticity & Experience Seeker",content:"They choose authentic, experience-connected gifts. Emphasize the stories behind your products and how they connect to real moments."}):e.includes("wellness")?i.push({type:"Gift-Buying Motivation",title:"Nurturing & Self-Care Focused",content:"They value wellbeing gifts. Show how your products contribute to rest, restoration, and caring for loved ones."}):e.includes("arts")?i.push({type:"Gift-Buying Motivation",title:"Quality & Craftsmanship Appreciator",content:"They recognize quality and artistry. Highlight the skill and time behind your work - they understand value beyond price."}):e.includes("home")&&i.push({type:"Gift-Buying Motivation",title:"Comfort & Connection Builder",content:"They gift to strengthen relationships and create warmth. Show how your products bring people together and enhance home life."}),r.includes("supporting-local")?i.push({type:"Values",title:"Local Business Story",content:"Share your local business story, community impact, and personal journey. This resonates strongly with their values."}):r.includes("sustainability")?i.push({type:"Values",title:"Eco-Conscious Positioning",content:"Highlight sustainable materials, ethical production, and environmental benefits. Include packaging sustainability."}):r.includes("uniqueness")&&i.push({type:"Values",title:"Exclusivity & Uniqueness",content:'Emphasize limited editions, custom options, and "one-of-a-kind" aspects. Avoid mass-market messaging.'}),t.includes("wrong-choice")?i.push({type:"Address Concerns",title:"Reduce Decision Anxiety",content:"Provide detailed descriptions, size guides, customer reviews, and easy returns to build confidence in their choice."}):t.includes("not-special")&&i.push({type:"Address Concerns",title:"Emphasize Special Touch",content:"Highlight personalization options, beautiful packaging, and the emotional impact your products create."}),n==="under50"?i.push({type:"Pricing",title:"Value Communication",content:"Emphasize quality-to-price ratio, bundle deals, and the lasting value of your products within their budget."}):n==="200plus"&&i.push({type:"Pricing",title:"Premium Positioning",content:"Focus on luxury presentation, superior materials, and exclusive experiences. Price is less of a concern than quality."}),h&&(i.push({type:"Cold Funnel Strategy",title:"Trust Signals for New Customers",content:"New gift buyers need to see social proof, testimonials, your story, and quality guarantees before they buy. They don't know you yet, so build credibility first."}),i.push({type:"Cold Funnel Strategy",title:"First Impression Messaging",content:"Lead with your unique story, showcase customer reviews, highlight guarantees/returns policy, and emphasize what makes you different from mass market options."})),i.slice(0,4)},S=()=>{const e=a.purchaseStyle.primary[0]||"thoughtful-planner",r=a.motivation.primary[0]||"love",t=a.shoppingBehavior.primary[0]||"early",n=[];return e.includes("researcher")?n.push("Provide detailed product information, customer testimonials, and behind-the-scenes content"):e.includes("impulse")?n.push("Use urgency and scarcity messaging, beautiful visuals, and emotional storytelling"):e.includes("social-proof")?n.push("Feature customer reviews, social media mentions, and community testimonials prominently"):n.push("Balance detailed information with emotional appeal to support their decision-making process"),r.includes("love")?n.push("Focus on emotional connection, showing care, and the joy of giving meaningful gifts"):r.includes("memories")?n.push("Emphasize lasting memories, special moments, and keepsake qualities"):r.includes("tradition")&&n.push("Connect to family traditions, heritage, and time-honored gift-giving customs"),t.includes("early")?n.push("Market early bird specials, emphasize peace of mind from early shopping, and pre-order options"):t.includes("last-minute")&&n.push('Highlight quick shipping, gift cards, and "perfect last-minute gift" messaging'),n.slice(0,4)},F=()=>{const e=new I,r=Object.values(a).some(l=>l.secondary&&l.secondary.length>0);e.setFontSize(20),e.setTextColor(220,38,127),e.text("Christmas Customer Avatar Report",20,30),e.setFontSize(12),e.setTextColor(0,0,0),e.text(`Generated on: ${new Date().toLocaleDateString()}`,20,45);let t=65;e.setFontSize(16),e.setTextColor(220,38,127),e.text("Primary Customer Avatar",20,t),t+=10,e.setFontSize(14),e.setTextColor(0,0,0),e.text(`Name: ${u(!1)}`,20,t),t+=15;const n=g(!1),h=e.splitTextToSize(n,170);if(e.setFontSize(11),e.text(h,20,t),t+=h.length*5+10,e.setFontSize(14),e.setTextColor(220,38,127),e.text("Current Customers Profile:",20,t),t+=10,e.setFontSize(10),e.setTextColor(0,0,0),Object.entries(a).forEac
1h(([l,o])=>{if(o.primary.length>0){const c=`${l.replace(/([A-Z])/g," $1")}: ${o.primary.join(", ")}`,w=e.splitTextToSize(c,170);e.text(w,20,t),t+=w.length*4+3}}),t>250&&(e.addPage(),t=30),r){t+=15,e.setFontSize(16),e.setTextColor(237,137,54),e.text("Secondary Customer Avatar (New Gift Buyers)",20,t),t+=10,e.setFontSize(14),e.setTextColor(0,0,0),e.text(`Name: ${u(!0)}`,20,t),t+=15;const l=g(!0),o=e.splitTextToSize(l,170);e.setFontSize(11),e.text(o,20,t),t+=o.length*5+10,e.setFontSize(14),e.setTextColor(237,137,54),e.text("New Gift Buyers Profile:",20,t),t+=10,e.setFontSize(10),e.setTextColor(0,0,0),Object.entries(a).forEach(([m,c])=>{if(c.secondary&&c.secondary.length>0){const E=`${m.replace(/([A-Z])/g," $1")}: ${c.secondary.join(", ")}`,$=e.splitTextToSize(E,170);e.text($,20,t),t+=$.length*4+3}})}t>220&&(e.addPage(),t=30),t+=15,e.setFontSize(14),e.setTextColor(220,38,127),e.text("Marketing Insights:",20,t),t+=10,e.setFontSize(10),e.setTextColor(0,0,0),k().forEach((l,o)=>{const m=`${o+1}. ${l.title}`;e.text(m,20,t),t+=5;const c=e.splitTextToSize(l.content,165);e.text(c,25,t),t+=c.length*4+8,t>250&&(e.addPage(),t=30)}),t+=10,e.setFontSize(14),e.setTextColor(220,38,127),e.text("Messaging Tips:",20,t),t+=10,e.setFontSize(10),e.setTextColor(0,0,0),S().forEach((l,o)=>{const m=`${o+1}. ${l}`,c=e.splitTextToSize(m,170);e.text(c,20,t),t+=c.length*4+5,t>250&&(e.addPage(),t=30)});const i=e.getNumberOfPages();for(let l=1;l<=i;l++)e.setPage(l),e.setFontSize(8),e.setTextColor(128,128,128),e.text(O(),20,285),e.text(`Page ${l} of ${i}`,170,285);const d=L(e,"christmas-customer-avatar-report.pdf");d.success||q.error(d.error||"Unable to download PDF. Please try again.")},A=k(),B=S();return s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-coral-50 via-cream-50 to-white dark:from-coral-950/20 dark:via-cream-950/20 dark:to-background",children:s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[s.jsx(H,{note:"Your profile is saved on this device."}),s.jsxs(f,{className:"border-coral-200 bg-gradient-to-r from-coral-50/50 to-cream-50/50 dark:from-coral-950/20 dark:to-cream-950/20",children:[s.jsxs(x,{className:"text-center",children:[s.jsx("div",{className:"mx-auto w-20 h-20 bg-gradient-to-r from-coral-500 to-orange-500 rounded-full flex items-center justify-center mb-4",children:s.jsx(Y,{className:"w-10 h-10 text-white"})}),s.jsxs(y,{className:"text-3xl text-coral-700 dark:text-coral-400",children:["Meet ",u(!1)]}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Your Current Customer Avatar"})]}),s.jsxs(v,{children:[s.jsx("div",{className:"text-center mb-6",children:s.jsx("p",{className:"text-lg leading-relaxed text-foreground",children:g(!1)})}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Current Customers Profile"}),Object.entries(a).map(([e,r])=>r.primary.length>0&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsxs("span",{className:"font-medium text-foreground capitalize min-w-[100px]",children:[e.replace(/([A-Z])/g," $1"),":"]}),s.jsx("div",{className:"flex flex-wrap gap-1",children:r.primary.map((t,n)=>s.jsx(j,{variant:"default",className:"bg-gradient-to-r from-coral-500 to-orange-500 text-white",children:t.replace(/([A-Z])/g," $1").replace("-"," ")},n))})]},e))]})]})]}),Object.values(a).some(e=>e.secondary&&e.secondary.length>0)&&s.jsxs(f,{className:"border-orange-200 bg-gradient-to-r from-orange-50/50 to-amber-50/50 dark:from-orange-950/20 dark:to-amber-950/20",children:[s.jsxs(x,{className:"text-center",children:[s.jsx("div",{className:"mx-auto w-20 h-20 bg-gradient-to-r from-orange-500 to-amber-500 rounded-full flex items-center justify-center mb-4",children:s.jsx(G,{className:"w-10 h-10 text-white"})}),s.jsxs(y,{className:"text-3xl text-orange-700 dark:text-orange-400",children:["Meet ",u(!0)]}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Your New Gift Buyer Avatar"})]}),s.jsxs(v,{children:[s.jsx("div",{className:"text-center mb-6",children:s.jsx("p",{className:"text-lg leading-relaxed text-foreground",children:g(!0)})}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"font-semibold text-foreground text-lg text-orange-700",children:"New Gift Buyers Profile"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-muted-foreground",children:"Show details"}),s.jsx("input",{type:"checkbox",checked:T,onChange:e=>P(e.target.checked),className:"rounded"})]})]}),T&&Object.entries(a).map(([e,r])=>r.secondary&&r.secondary.length>0&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsxs("span",{className:"font-medium text-foreground capitalize min-w-[100px]",children:[e.replace(/([A-Z])/g," $1"),":"]}),s.jsx("div",{className:"flex flex-wrap gap-1",children:r.secondary.map((t,n)=>s.jsx(j,{variant:"outline",className:"border-orange-300 text-orange-700",children:t.replace(/([A-Z])/g," $1").replace("-"," ")},n))})]},e)),s.jsxs("div",{className:"bg-orange-50 dark:bg-orange-950/20 rounded-lg p-4 mt-4",children:[s.jsx("h4",{className:"font-semibold text-orange-700 dark:text-orange-400 mb-2",children:"🎯 Cold Funnel Focus"}
1),s.jsx("p",{className:"text-sm text-orange-600 dark:text-orange-300",children:"These new customers are discovering you for the first time. They need trust signals, social proof, and clear value propositions before they'll buy. Focus on building credibility and showcasing what makes you special."})]})]})]})]}),s.jsxs(f,{children:[s.jsxs(x,{children:[s.jsxs(y,{className:"flex items-center gap-2",children:[s.jsx(Z,{className:"w-5 h-5 text-coral-500"}),"Marketing Insights"]}),s.jsxs("p",{className:"text-muted-foreground",children:["How to connect with ",u()," effectively"]})]}),s.jsx(v,{children:s.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:A.map((e,r)=>s.jsxs("div",{className:"p-4 border rounded-lg bg-gradient-to-r from-coral-50/30 to-cream-50/30",children:[s.jsx("div",{className:"flex items-center gap-2 mb-2",children:s.jsx(j,{variant:"outline",className:"text-xs",children:e.type})}),s.jsx("h4",{className:"font-semibold text-foreground mb-2",children:e.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e.content})]},r))})})]}),s.jsxs(f,{children:[s.jsxs(x,{children:[s.jsxs(y,{className:"flex items-center gap-2",children:[s.jsx(J,{className:"w-5 h-5 text-coral-500"}),"Messaging & Communication Tips"]}),s.jsxs("p",{className:"text-muted-foreground",children:["How to speak ",u(),"'s language"]})]}),s.jsx(v,{children:s.jsx("div",{className:"space-y-3",children:B.map((e,r)=>s.jsxs("div",{className:"flex items-start gap-3 p-3 border rounded-lg bg-gradient-to-r from-cream-50/30 to-coral-50/20",children:[s.jsx("div",{className:"w-6 h-6 bg-coral-500 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx("span",{className:"text-white text-xs font-bold",children:r+1})}),s.jsx("p",{className:"text-sm text-foreground",children:e})]},r))})})]}),s.jsxs("div",{className:"rounded-[16px] border bg-card p-6 text-center",children:[s.jsx("p",{className:"font-semibold mb-1",children:"Finished? Download your customer profile now"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Your answers save on this device, so you can come back to this page any time. Download a copy anyway so you have it if you switch device or clear your browser."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs(z,{onClick:F,className:"bg-gradient-to-r from-coral-500 to-orange-500 text-white hover:from-coral-600 hover:to-orange-600 flex items-center gap-2",children:[s.jsx(U,{className:"w-4 h-4"}),"Download my customer profile"]}),s.jsxs(z,{onClick:()=>p("/christmas-toolkit-access"),variant:"outline",className:"flex items-center gap-2",children:["Back to my toolkit",s.jsx(R,{className:"w-4 h-4"})]})]})]})]})})})};export{ne as default};

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.