1"use strict";(self.webpackChunkhit_blog=self.webpackChunkhit_blog||[]).push([[4444],{52929:(e,t,s)=>{s.d(t,{Z:()=>h});var a=s(67294),r=s(85893);const l={green:{400:"#0DB090",500:"#00A686",800:"#03836B",900:"#004F40"},blue:{100:"#F0F7FF",200:"#E5EEFF"},gray:{50:"#F1F5F9",200:"#EFEFF4",300:"#DBE2E7",400:"#7B8490",500:"#6A7481",800:"#4A4A4A",900:"#101828"},white:{100:"#F7FAFF",200:"#F2F5FA",500:"#FFFFFF"},red:{200:"#FD91AF",500:"#CE0055",900:"#D0021B"}},n=e=>{let{active:t}=e;return t?(0,r.jsxs)("div",{className:"fixed inset-0 pointer-events-none z-50",children:[[...Array(50)].map(((e,t)=>(0,r.jsx)("div",{className:"absolute",style:{left:100*Math.random()+"%",top:-20,animation:`fall ${2+2*Math.random()}s linear forwards`,animationDelay:.5*Math.random()+"s"},children:["\ud83c\udf89","\u2b50","\u2728","\ud83d\udcab","\ud83c\udf1f"][Math.floor(5*Math.random())]},t))),(0,r.jsx)("style",{children:"\n @keyframes fall {\n to { transform: translateY(100vh) rotate(720deg); opacity: 0; }\n }\n "})]}):null},o=e=>{let{xp:t,level:s,maxXp:a}=e;return(0,r.jsx)("div",{className:"relative",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white font-bold text-sm shadow-lg",style:{background:`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`},children:s}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("div",{className:"h-4 rounded-full overflow-hidden",style:{backgroundColor:l.gray[300]},children:(0,r.jsx)("div",{className:"h-full transition-all duration-700 ease-out relative",style:{width:t/a*100+"%",background:`linear-gradient(90deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`},children:(0,r.jsx)("div",{className:"absolute inset-0 bg-white/30 animate-pulse"})})})}),(0,r.jsxs)("span",{className:"text-xs w-16 text-right",style:{color:l.gray[500]},children:[t,"/",a," XP"]})]})})},i=e=>{let{streak:t}=e;return t<2?null:(0,r.jsxs)("div",{className:"flex items-center gap-1 px-3 py-1 rounded-full border",style:{backgroundColor:"rgba(253, 145, 175, 0.2)",borderColor:l.red[200]},children:[(0,r.jsx)("span",{className:"text-xl animate-bounce",children:"\ud83d\udd25"}),(0,r.jsx)("span",{className:"font-bold",style:{color:l.red[500]},children:t})]})},c=e=>{let{lives:t,maxLives:s}=e;return(0,r.jsx)("div",{className:"flex gap-1",children:[...Array(s)].map(((e,s)=>(0,r.jsx)("span",{className:"text-xl transition-all duration-300 "+(s<t?"scale-100":"scale-75 grayscale opacity-30"),children:"\u2764\ufe0f"},s)))})},d=e=>{let{question:t,onComplete:s,isDark:n}=e;const o=t.labels||{p2p:{icon:"\ud83d\udc64",title:"P2P (Personal)"},a2p:{icon:"\ud83c\udfe2",title:"A2P (Business)"}},[i,c]=(0,a.useState)([]),[d,p]=(0,a.useState)({p2p:[],a2p:[]}),[m,g]=(0,a.useState)(null),[x,u]=(0,a.useState)(null),[h,f]=(0,a.useState)(!1),[y,b]=(0,a.useState)(!1);(0,a.useEffect)((()=>{c(t.items.map(((e,t)=>({...e,id:t}))).sort((()=>Math.random()-.5))),p({p2p:[],a2p:[]}),g(null),u(null),f(!1),b(!1)}),[t]);const j=e=>{m&&!h&&("pool"===x?c((e=>e.filter((e=>e.id!==m.id)))):"p2p"===x?p((e=>({...e,p2p:e.p2p.filter((e=>e.id!==m.id))}))):"a2p"===x&&p((e=>({...e,a2p:e.a2p.filter((e=>e.id!==m.id))}))),"pool"===e?c((e=>[...e,m])):p((t=>({...t,[e]:[...t[e],m]}))),g(null),u(null))},N=(e,t)=>{h||(g(e),u(t))},v=e=>{j(e)},k=(e,t)=>{h||(m&&m.id===e.id?("p2p"===t?p((t=>({...t,p2p:t.p2p.filter((t=>t.id!==e.id))}))):"a2p"===t&&p((t=>({...t,a2p:t.a2p.filter((t=>t.id!==e.id))}))),c((t=>[...t,e])),g(null),u(null)):(g(e),u(t)))},w=0===i.length,C=n?l.white[500]:l.gray[900],P=(e,t)=>m?.id===e.id&&x===t;return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-center font-medium mb-2",style:{color:C},children:t.prompt}),(0,r.jsx)("p",{className:"text-center text-xs mb-2",style:{color:l.gray[400]},children:m?"\ud83d\udc46 Tap a box below to place":"\ud83d\udc46 Tap an item to select, then tap where to place it"}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 justify-center min-h-[60px] p-3 rounded-xl transition-all",style:{backgroundColor:n?"rgba(255,255,255,0.05)":l.gray[50],boxSh
1adow:m&&"pool"!==x?`inset 0 0 0 2px ${l.green[400]}`:"none"},onDragOver:e=>e.preventDefault(),onDrop:()=>v("pool"),onClick:()=>m&&"pool"!==x&&j("pool"),children:[i.map((e=>(0,r.jsx)("div",{draggable:!h,onDragStart:()=>N(e,"pool"),onClick:t=>{t.stopPropagation(),((e,t)=>{if(!h){if(m?.id===e.id&&x===t)return g(null),void u(null);g(e),u(t)}})(e,"pool")},className:"px-3 py-2 rounded-lg text-sm cursor-pointer transform transition-all shadow-lg select-none "+(P(e,"pool")?"scale-110 ring-2 ring-white ring-offset-2":"hover:scale-105"),style:{background:P(e,"pool")?`linear-gradient(135deg, ${l.green[500]} 0%, ${l.green[900]} 100%)`:`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[800]} 100%)`,color:"#ffffff",ringOffsetColor:n?l.gray[900]:l.gray[50]},children:e.text},e.id))),0===i.length&&!y&&(0,r.jsx)("p",{className:"text-sm",style:{color:l.gray[500]},children:"All sorted! Check your answers \ud83d\udc47"}),0===i.length&&y&&(0,r.jsx)("p",{className:"text-sm",style:{color:l.gray[500]},children:"Results shown below"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{onDragOver:e=>e.preventDefault(),onDrop:()=>v("p2p"),onClick:()=>m&&"p2p"!==x&&j("p2p"),className:"p-3 rounded-xl border-2 border-dashed min-h-[120px] transition-all cursor-pointer "+(m&&"p2p"!==x?"animate-pulse":""),style:{borderColor:y?l.green[500]:l.green[400],backgroundColor:y?`${l.green[500]}15`:m&&"p2p"!==x?`${l.green[400]}20`:`${l.green[400]}08`},children:[(0,r.jsxs)("div",{className:"text-center mb-2",children:[(0,r.jsx)("span",{className:"text-2xl",children:o.p2p.icon}),(0,r.jsx)("p",{className:"font-bold text-sm",style:{color:l.green[500]},children:o.p2p.title})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:d.p2p.map((e=>(0,r.jsxs)("span",{draggable:!h,onDragStart:()=>N(e,"p2p"),onClick:t=>{t.stopPropagation(),k(e,"p2p")},className:`px-2 py-1 rounded text-xs text-white select-none ${h?"":"cursor-pointer active:scale-95"} ${P(e,"p2p")?"ring-2 ring-white":""}`,style:{backgroundColor:y?"p2p"===e.type?l.green[500]:l.red[500]:P(e,"p2p")?l.green[800]:`${l.green[500]}50`},children:[e.text," ",y&&("p2p"===e.type?"\u2713":"\u2717")]},e.id)))})]}),(0,r.jsxs)("div",{onDragOver:e=>e.preventDefault(),onDrop:()=>v("a2p"),onClick:()=>m&&"a2p"!==x&&j("a2p"),className:"p-3 rounded-xl border-2 border-dashed min-h-[120px] transition-all cursor-pointer "+(m&&"a2p"!==x?"animate-pulse":""),style:{borderColor:y?l.gray[500]:l.gray[400],backgroundColor:y?`${l.gray[500]}15`:m&&"a2p"!==x?`${l.gray[400]}20`:`${l.gray[400]}08`},children:[(0,r.jsxs)("div",{className:"text-center mb-2",children:[(0,r.jsx)("span",{className:"text-2xl",children:o.a2p.icon}),(0,r.jsx)("p",{className:"font-bold text-sm",style:{color:l.gray[500]},children:o.a2p.title})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:d.a2p.map((e=>(0,r.jsxs)("span",{draggable:!h,onDragStart:()=>N(e,"a2p"),onClick:t=>{t.stopPropagation(),k(e,"a2p")},className:`px-2 py-1 rounded text-xs text-white select-none ${h?"":"cursor-pointer active:scale-95"} ${P(e,"a2p")?"ring-2 ring-white":""}`,style:{backgroundColor:y?"a2p"===e.type?l.green[500]:l.red[500]:P(e,"a2p")?l.gray[800]:`${l.gray[500]}50`},children:[e.text," ",y&&("a2p"===e.type?"\u2713":"\u2717")]},e.id)))})]})]}),w&&!y&&(0,r.jsx)("button",{onClick:()=>{b(!0),f(!0);const e=d.p2p.every((e=>"p2p"===e.type)),t=d.a2p.every((e=>"a2p"===e.type)),a=0===i.length;setTimeout((()=>s(e&&t&&a)),1500)},className:"w-full py-3 text-white font-bold rounded-xl shadow-lg transform hover:scale-[1.02] transition-all",style:{background:`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`},children:"Check Answers \u2713"})]})},p=[{bg:"#0DB090",light:"rgba(13, 176, 144, 0.25)"},{bg:"#3B82F6",light:"rgba(59, 130, 246, 0.25)"},{bg:"#F59E0B",light:"rgba(245, 158, 11, 0.25)"},{bg:"#8B5CF6",light:"rgba(139, 92, 246, 0.25)"},{bg:"#EC4899",light:"rgba(236, 72, 153, 0.25)"},{bg:"#14B8A6",light:"rgba(20, 184, 166, 0.25)"}],m=e=>{let{question:t,onComplete:s,isDark:n}=e;const[o,i]=(0,a.useState)({left:null,right:null}),[c,d]=(0,a.useState)([]),[m,g]=(0,a.useState)({}),[x,u]=(0,a.useState)(null),[h,f]=(0,a.useState)([]);(0,a.useEffect)((()=>{d([]),g({}),i({left:null,right:null}),f([...t.pairs].sort((()=>Math.random()-.5)))}),[t]);const y=(e,a,r)=>{if(c.includes(r.id))return;const l={...o,[e]:{index:a,item:r}};if(i(l),l.left&&l.right)if(l.left.item.id===l.right.item.id){const e=c.length%p.length;g((t=>({...t,[l.left.item.id]:e}))),d([...c,l.left.item.id]),i({left:null,right:null}),c.length+1===t.pairs.length&&setTimeout((()=>s(!0)),500)}else u(!0),setTimeout((()=>{u(!1),i({left:null,right:null})}),600)},b=e=>{const t=m[e];return void 0===t?null:p[t]},j=n?l.white[500]:l.gray[900];return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-center font-medium",style:{color:j},children:t.prompt}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)("div",{className:"space-y-2",children:t.pairs.map(((e,t)=>{const s=b(e.id);return(0,r.jsx)("button",{onClick:()=>y("left",t,e),disabled:c.includes(e.id),className:"w-full p-3 rounded-xl text-sm font-medium transition-all transform "+(x&&o.left?.index===t?"animate-shake":""),style:{backgroundColor:s?s.light:o.left?.index===t?l.green[500]:n?"rgba(255,255,255,0.1)":l.gray[200],color:s?s.bg:o.left?.index===t?l.
1white[500]:j,transform:o.left?.index===t?"scale(1.05)":c.includes(e.id)?"scale(0.95)":"scale(1)",boxShadow:s?`0 0 0 2px ${s.bg}`:o.left?.index===t?`0 0 0 2px ${l.green[400]}`:"none",borderLeft:s?`4px solid ${s.bg}`:"none"},children:e.left},`l-${t}`)}))}),(0,r.jsx)("div",{className:"space-y-2",children:h.map(((e,t)=>{const s=b(e.id);return(0,r.jsx)("button",{onClick:()=>y("right",t,e),disabled:c.includes(e.id),className:"w-full p-3 rounded-xl text-sm font-medium transition-all transform "+(x&&o.right?.index===t?"animate-shake":""),style:{backgroundColor:s?s.light:o.right?.index===t?l.green[800]:n?"rgba(255,255,255,0.1)":l.gray[200],color:s?s.bg:o.right?.index===t?l.white[500]:j,transform:o.right?.index===t?"scale(1.05)":c.includes(e.id)?"scale(0.95)":"scale(1)",boxShadow:s?`0 0 0 2px ${s.bg}`:o.right?.index===t?`0 0 0 2px ${l.green[800]}`:"none",borderRight:s?`4px solid ${s.bg}`:"none"},children:e.right},`r-${t}`)}))})]}),(0,r.jsx)("div",{className:"flex justify-center gap-1",children:t.pairs.map(((e,t)=>(0,r.jsx)("div",{className:"w-3 h-3 rounded-full transition-all",style:{backgroundColor:c.length>t?l.green[500]:l.gray[300],transform:c.length>t?"scale(1.1)":"scale(1)"}},t)))}),(0,r.jsx)("style",{children:"\n @keyframes shake {\n 0%, 100% { transform: translateX(0); }\n 25% { transform: translateX(-5px); }\n 75% { transform: translateX(5px); }\n }\n .animate-shake { animation: shake 0.3s ease-in-out; }\n "})]})},g=e=>{let{question:t,onComplete:s,isDark:n}=e;const[o,i]=(0,a.useState)(null),[c,d]=(0,a.useState)(!1);(0,a.useEffect)((()=>{i(null),d(!1)}),[t]);const p=t.sentence.split("___"),m=n?l.white[500]:l.gray[900];return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"text-lg text-center p-4 rounded-xl",style:{color:m,backgroundColor:n?"rgba(255,255,255,0.05)":l.gray[50]},children:[p[0],(0,r.jsx)("span",{className:"inline-block min-w-[100px] mx-1 px-3 py-1 rounded-lg font-bold transition-all",style:{backgroundColor:c?o===t.correct?l.green[500]:l.red[500]:`${l.green[500]}30`,color:c?l.white[500]:l.green[500],border:c?"none":`2px dashed ${l.green[400]}`},children:null!==o?t.options[o]:"???"}),p[1]]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3",children:t.options.map(((e,a)=>(0,r.jsx)("button",{onClick:()=>{return e=a,void(c||(i(e),d(!0),setTimeout((()=>s(e===t.correct)),1200)));var e},disabled:c,className:"p-4 rounded-xl font-medium transition-all transform hover:scale-105",style:{backgroundColor:c?a===t.correct?l.green[500]:a===o?l.red[500]:l.gray[300]:l.green[400],color:c?a===t.correct||a===o?l.white[500]:l.gray[500]:l.white[500],boxShadow:c&&a===t.correct?`0 0 0 4px ${l.green[400]}50`:"none"},children:e},a)))})]})},x=e=>{let{question:t,onComplete:s,isDark:n}=e;const[o,i]=(0,a.useState)(null),[c,d]=(0,a.useState)(!1);(0,a.useEffect)((()=>{i(null),d(!1)}),[t]);const p=n?l.white[500]:l.gray[900];return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-lg font-medium text-center",style:{color:p},children:t.question}),(0,r.jsx)("div",{className:"space-y-3",children:t.options.map(((e,a)=>(0,r.jsxs)("button",{onClick:()=>{return e=a,void(c||(i(e),d(!0),setTimeout((()=>s(e===t.correct)),1500)));var e},disabled:c,className:"w-full p-4 rounded-xl text-left transition-all transform",style:{backgroundColor:c?a===t.correct?l.green[500]:a===o?l.red[500]:n?"rgba(255,255,255,0.05)":l.gray[200]:n?"rgba(255,255,255,0.1)":l.gray[200],color:c?a===t.correct||a===o?l.white[500]:l.gray[500]:p,transform:c?a===t.correct?"scale(1.02)":"scale(0.95)":"scale(1)",boxShadow:c&&a===t.correct?`0 0 0 4px ${l.green[400]}50`:"none"},children:[(0,r.jsxs)("span",{className:"font-bold mr-2",children:[String.fromCharCode(65+a),"."]}),e]},a)))}),c&&(0,r.jsx)("div",{className:"p-4 rounded-xl",style:{backgroundColor:o===t.correct?`${l.green[500]}15`:`${l.red[500]}15`},children:(0,r.jsx)("p",{className:"text-sm",style:{color:n?l.gray[300]:l.gray[800]},children:t.explanation})})]})},u=[{id:1,title:"P2P vs A2P Basics",icon:"\ud83d\udcf1",questions:[{type:"quiz",question:"What does P2P messaging mean?",options:["Person-to-Person","Pay-to-Play","Platform-to-Person","Phone-to-Phone"],correct:0,explanation:"P2P = Person-to-Person! Real humans texting each other personally."},{type:"dragdrop",prompt:"Sort these into P2P or A2P messaging:",items:[{text:"You text your mom",type:"p2p"},{text:"Bank fraud alert",type:"a2p"},{text:"Friend group chat",type:"p2p"},{text:"Airline delay notification",type:"a2p"},{text:"Texting your coach",type:"p2p"},{text:"Marketing promo code",type:"a2p"}]},{type:"fillblank",sentence:"Hit Em Up sends messages from ___ making it authentic P2P.",options:["a random number","YOUR phone number","a short code","a business line"],correct:1},{type:"match",prompt:"Match the messaging type to its description:",pairs:[{id:1,left:"P2P",right:"Personal conversations"},{id:2,left:"A2P",right:"Business automation"},{id:3,left:"Hit Em Up",right:"Your number, your contacts"},{id:4,left:"Short codes",right:"5-6 digit business numbers"}]}]},{id:2,title:"Speed & Volume Rules",icon:"\u26a1",questions:[{type:"quiz",question:"What's the maximum P2P sending speed?",options:["100 msgs/second","About 1 msg/second","Unlimited","10 msgs/second"],correct:1,explanation:"Humans can only type so fast! ~15-60 messages per minute (about 1/sec) is the limit."},{type:"fillblank",sentence:"Real people don't send more than about ___ messages per day.",options:["100","1,000","10,000","unlimited"],correct:1},{type:"dragdrop",prompt:"Which behaviors look like a REAL person?",labels:{p2p:{icon:"\ud83d\udc64",title:"Real Person"},a2p:{icon:"\ud83d\udea8",title:"Spam Trigger"}},items:[{text:"1 msg per second",type:"p2p"},{text:"500 msgs in 1 minute",type:"a2p"},{text:"Natural pauses",type:"p2p"},{text:"24/7 non-stop sending",type:"a2p"},{text:"~200 texts/day",type:"p2p"},{text:"50,000 texts/day",type:"a2p"}]},{type:"quiz",question:"What happens if you send too fast?",options:["Nothing bad","Carriers flag you as spam","You get a speed bonus","Messages arrive faster"],correct:1,explanation:"Sending too fast = spam behavior! Carriers will filter or block your messages."}]},{id:3,title:"Content That Delivers",icon:"\u270d\ufe0f",questions:[{type:"dragdrop",prompt:"Sort: GOOD P2P message vs SPAM trigger:",labels:{p2p:{icon:"\u2705",title:"Good Message"},a2p:{icon:"\ud83d\udea8",title:"Spam Trigger"}},items:[{text:"Hey Sarah, coffee soon?",type:"p2p"},{text:"\ud83d\udd25BUY NOW\ud83d\udd25 50% OFF!!!",type:"a2p"},{text:"Great seeing you yesterday!",type:"p2p"},{text:"TEXT WIN to 55555",type:"a2p"},{text:"Quick question about Friday...",type:"p2p"},{text:"URGENT: ACT NOW!!!",type:"a2p"}]},{type:"quiz",question:"How many identical messages triggers A2P classification?",options:["5 messages","10 messages","25+ messages","100 messages"],correct:2,explanation:"Sending 25+ substantially identical messages looks like automated spam!"},{type:"fillblank",sentence:"Personal messages should be ___ not copy-pasted.",options:["longer","shorter","unique & conversational","automated"],correct:2},{type:"match",prompt:"Match message style to outcome:",pairs:[{id:1,left:"Personalized greeting",right:"Gets delivered \u2713"},{id:2,left:"ALL CAPS SPAM",right:"Gets filtered \u2717"},{id:3,left:"Conversational tone",right:"Gets replies \u2713"},{id:4,left:"Generic blast",right:"Gets blocked \u2717"}]}]},{id:4,title:"Do's & Don'ts",icon:"\u2705",questions:[{type:"quiz",question:"What is 'Snowshoe Messaging'?",options:["Winter texting promotion","Using multiple numbers to
1spread bulk messages","Texting while skiing","A type of emoji"],correct:1,explanation:"Snowshoeing = spreading messages across many numbers to avoid detection. It's a MAJOR violation!"},{type:"fillblank",sentence:"When someone says STOP, you must ___ immediately.",options:["send more info","stop messaging them","wait a week","ignore it"],correct:1},{type:"dragdrop",prompt:"Sort: Compliant behavior vs Violation:",labels:{p2p:{icon:"\u2705",title:"Compliant"},a2p:{icon:"\ud83d\udeab",title:"Violation"}},items:[{text:"Honor opt-outs",type:"p2p"},{text:"Use multiple numbers",type:"a2p"},{text:"One phone = one person",type:"p2p"},{text:"Ignore STOP requests",type:"a2p"},{text:"Personal outreach",type:"p2p"},{text:"Buy contact lists",type:"a2p"}]},{type:"quiz",question:"Using Hit Em Up for your personal network is:",options:["Always A2P","Authentic P2P - you texting people you know","Illegal","Only for businesses"],correct:1,explanation:"Personal outreach to YOUR network from YOUR phone = genuine P2P messaging!"}]},{id:5,title:"Pro Mastery",icon:"\ud83c\udfc6",questions:[{type:"match",prompt:"Match the concept to the best practice:",pairs:[{id:1,left:"Message ratio",right:"1:1 balanced conversation"},{id:2,left:"Daily volume",right:"Under 1,000 messages"},{id:3,left:"Send speed",right:"~1 message per second"},{id:4,left:"Repetition",right:"Under 25 similar messages"}]},{type:"quiz",question:"Why is P2P more effective than A2P?",options:["It's cheaper","People trust texts from people they know","It's faster","No reason"],correct:1,explanation:"Personal texts from real contacts get opened and answered. Trust is your superpower!"},{type:"fillblank",sentence:"The Hit Em Up advantage: messages come from ___ so they feel authentic.",options:["random numbers","your own number","short codes","email"],correct:1},{type:"dragdrop",prompt:"Final sort: Master or Mistake?",labels:{p2p:{icon:"\ud83c\udfc6",title:"Master Move"},a2p:{icon:"\u274c",title:"Mistake"}},items:[{text:"Vary your messages",type:"p2p"},{text:"Blast identical texts",type:"a2p"},{text:"Engage in dialogue",type:"p2p"},{text:"Send-only, no replies",type:"a2p"},{text:"Respect boundaries",type:"p2p"},{text:"Pressure contacts",type:"a2p"}]}]}];function h(e){let{isDark:t=!1,compact:s=!1}=e;const[p,h]=(0,a.useState)("home"),[f,y]=(0,a.useState)(0),[b,j]=(0,a.useState)(0),[N,v]=(0,a.useState)(0),[k,w]=(0,a.useState)(1),[C,P]=(0,a.useState)(0),[S,$]=(0,a.useState)(5),[F,A]=(0,a.useState)([]),[D,T]=(0,a.useState)(!1),[q,M]=(0,a.useState)({current:0,target:3}),E=100*k;(0,a.useEffect)((()=>{N>=E&&(w((e=>e+1)),v((e=>e-E)),T(!0),setTimeout((()=>T(!1)),3e3))}),[N,E]);const _=e=>{if(e){const e=5*Math.min(C,5);v((t=>t+20+e)),P((e=>e+1))}else P(0),$((e=>Math.max(0,e-1)));setTimeout((()=>{const e=u[f];b<e.questions.length-1?j((e=>e+1)):(F.includes(f)||(A([...F,f]),M((e=>({...e,current:e.current+1})))),v((e=>e+50)),h("lessonComplete"))}),100)},B=()=>{const e=u[f].questions[b];switch(e.type){case"quiz":return(0,r.jsx)(x,{question:e,onComplete:_,isDark:t});case"dragdrop":return(0,r.jsx)(d,{question:e,onComplete:_,isDark:t});case"fillblank":return(0,r.jsx)(g,{question:e,onComplete:_,isDark:t});case"match":return(0,r.jsx)(m,{question:e,onComplete:_,isDark:t});default:return null}},I=t?{background:`linear-gradient(180deg, ${l.gray[900]} 0%, #0a1628 100%)`}:{background:`linear-gradient(180deg, ${l.blue[100]} 0%, ${l.white[100]} 100%)`},O=t?l.white[500]:l.gray[900],L=t?l.gray[400]:l.gray[500];if("home"===p)return(0,r.jsxs)("div",{className:(s?"py-4 px-4":"min-h-screen p-4")+" rounded-2xl",style:I,children:[(0,r.jsx)(n,{active:D}),(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between "+(s?"mb-3":"mb-4"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:s?"text-2xl":"text-3xl",children:"\ud83d\udcf1"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"font-bold "+(s?"text-sm":""),style:{color:O},children:"TextPro"}),(0,r.jsx)("p",{className:"text-xs",style:{color:L},children:"P2P Compliance Training"})]})]}),(0,r.jsx)(c,{lives:S,maxLives:5})]}),(0,r.jsx)(o,{xp:N,level:k,maxXp:E}),!s&&(0,r.jsx)("div",{className:"mt-4 p-4 rounded-xl border",style:{background:`linear-gradient(135deg, ${l.green[500]}15 0%, ${l.green[400]}08 100%)`,borderColor:`${l.green[500]}30`},children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-2xl",children:"\ud83c\udfaf"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-medium",style:{color:O},children:"Daily Goal"}),(0,r.jsxs)("p",{className:"text-xs",style:{color:l.green[500]},children:[q.current,"/",q.target," lessons"]})]})]}),(0,r.jsx)("div",{className:"flex gap-1",children:[...Array(q.target)].map(((e,t)=>(0,r.jsx)("div",{className:"w-4 h-4 rounded-full transition-all",style:{backgroundColor:t<q.current?l.green[500]:l.gray[300]}},t)))})]})}),C>0&&(0,r.jsx)("div",{className:(s?"mt-2":"mt-3")+" flex justify-center",children:(0,r.jsx)(i,{streak:C})}),(0,r.jsxs)("div",{className:""+(s?"mt-4 space-y-2":"mt-6 space-y-3"),children:[(0,r.jsx)("h2",{className:"font-bold "+(s?"text-base":"text-lg"),style:{color:O},children:"Learning Path"}),u.map(((e,a)=>{const n=F.includes(a),o=a>0&&!F.includes(a-1);return(0,r.jsxs)("button",{onClick:()=>!o&&(y(a),j(0),void h("lesson")),disabled:o,className:`w-full ${s?"p-3":"p-4"} rounded-2xl flex items-center gap-3 transition-all transform hover:scale-[1.02]`,style:{background:o?t?l.gray[800]:l.gray[200]:n?`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`:t?"rgba(255,255,255,0.08)":l.white[500],opacity:o?.5:1,cursor:o?"not-allowed":"pointer",boxShadow:o||n?"none":"0 2px 8px rgba(0,0,0,0.08)"},children:[(0,r.jsx)("div",{className:(s?"w-10 h-10 text-lg":"w-14 h-14 text-2xl")+" rounded-xl flex items-center justify-center",style:{background:o?l.gray[300]:n?"rgba(255,255,255,0.2)":`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[800]} 100%)`},children:o?"\ud83d\udd12":e.icon}),(0,r.jsxs)("div",{className:"flex-1 text-left",children:[(0,r.jsx)("p",{className:"font-bold "+(s?"text-sm":""),style:{color:n?l.white[500]:O},children:e.title}),(0,r.jsxs)("p",{className:"text-xs",style:{color:n?"rgba(255,255,255,0.8)":L},children:[e.questions.length," exercises"]})]}),n&&(0,r.jsx)("span",{className:s?"text-lg":"text-2xl",children:"\u2b50"})]},e.id)}))]}),(0,r.jsx)("div",{className:(s?"mt-3":"mt-6")+" text-center",children:(0,r.jsxs)("a",{href:"https://api.ctia.org/wp-content/uploads/2023/05/230523-CTIA-Messaging-Principles-and-Best-Practices-FINA
1L.pdf",target:"_blank",rel:"noopener noreferrer",className:(s?"text-xs":"text-sm")+" underline",style:{color:l.green[500]},children:["\ud83d\udccb ",s?"CTIA Guidelines":"View Official CTIA Guidelines"]})})]})]});if("lesson"===p){const e=u[f],s=(b+1)/e.questions.length*100;return(0,r.jsx)("div",{className:"p-4 rounded-2xl",style:I,children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("button",{onClick:()=>h("home"),className:"w-8 h-8 rounded-full flex items-center justify-center transition-colors",style:{backgroundColor:t?"rgba(255,255,255,0.1)":l.gray[200],color:L},children:"\u2715"}),(0,r.jsx)("div",{className:"flex-1 mx-4",children:(0,r.jsx)("div",{className:"h-3 rounded-full overflow-hidden",style:{backgroundColor:l.gray[300]},children:(0,r.jsx)("div",{className:"h-full transition-all duration-500",style:{width:`${s}%`,background:`linear-gradient(90deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`}})})}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(i,{streak:C}),(0,r.jsx)(c,{lives:S,maxLives:5})]})]}),(0,r.jsx)("div",{className:"mt-4",children:B()})]})})}if("lessonComplete"===p){const e=u[f];return(0,r.jsxs)("div",{className:"p-6 flex items-center justify-center rounded-2xl",style:I,children:[(0,r.jsx)(n,{active:!0}),(0,r.jsxs)("div",{className:"max-w-md w-full text-center",children:[(0,r.jsx)("div",{className:"text-6xl mb-4 animate-bounce",children:"\ud83c\udf89"}),(0,r.jsx)("h1",{className:"text-3xl font-bold mb-2",style:{color:O},children:"Lesson Complete!"}),(0,r.jsx)("p",{className:"mb-6",style:{color:l.green[500]},children:e.title}),(0,r.jsxs)("div",{className:"rounded-2xl p-6 mb-6 space-y-4",style:{backgroundColor:t?"rgba(255,255,255,0.05)":l.white[500]},children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{style:{color:L},children:"XP Earned"}),(0,r.jsx)("span",{className:"font-bold",style:{color:l.green[500]},children:"+70 XP"})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{style:{color:L},children:"Current Streak"}),(0,r.jsxs)("span",{className:"font-bold",style:{color:l.red[500]},children:["\ud83d\udd25 ",C]})]})]}),(0,r.jsx)("button",{onClick:()=>h("home"),className:"w-full py-4 text-white font-bold rounded-xl shadow-lg transform hover:scale-105 transition-all",style:{background:`linear-gradient(135deg, ${l.green[400]} 0%, ${l.green[500]} 100%)`},children:"Continue Learning \u2192"})]})]})}return null}},80859:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});s(67294);var a=s(63279),r=s(31514),l=s(83699),n=s(9200),o=s(52929),i=s(85893);function c(){const{colorMode:e}=(0,n.I)(),t="dark"===e;return(0,i.jsxs)("main",{className:"min-h-screen",style:{background:t?"linear-gradient(180deg, #1a1a2e 0%, #16213e 100%)":"linear-gradient(180deg, #F8FAFC 0%, #F0F7FF 50%, #E8F4FD 100%)"},children:[(0,i.jsxs)("section",{className:"relative py-12 lg:py-20 overflow-hidden",children:[(0,i.jsx)("div",{className:"absolute top-0 right-0 w-96 h-96 rounded-full opacity-30 blur-3xl",style:{background:"radial-gradient(circle, rgba(0,174,141,0.15) 0%, transparent 70%)"}}),(0,i.jsx)("div",{className:"absolute bottom-0 left-0 w-80 h-80 rounded-full opacity-20 blur-3xl",style:{background:"radial-gradient(circle, rgba(0,174,141,0.2) 0%, transparent 70%)"}}),(0,i.jsxs)("div",{className:"container mx-auto px-5 lg:px-8 relative z-10",children:[(0,i.jsxs)("div",{className:"max-w-3xl mx-auto text-center mb-8",children:[(0,i.jsx)("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold mb-4",style:{backgroundColor:t?"rgba(0,174,141,0.15)":"rgba(0,174,141,0.1)",color:"#00ae8d"},children:"INTERACTIVE LEARNING"}),(0,i.jsxs)("h1",{className:"text-3xl lg:text-5xl font-extrabold mb-4 leading-tight",style:{color:t?"#ffffff"
1:"#111827"},children:["P2P Messaging ",(0,i.jsx)("span",{style:{color:"#00ae8d"},children:"Compliance Training"})]}),(0,i.jsx)("p",{className:"text-lg lg:text-xl max-w-2xl mx-auto mb-6",style:{color:t?"#94a3b8":"#6b7280"},children:"Master the rules of person-to-person messaging in 5 minutes. Learn what carriers look for, how to stay compliant, and why it matters."}),(0,i.jsxs)("div",{className:"flex flex-wrap justify-center gap-3 mb-8",children:[(0,i.jsx)("div",{className:"px-4 py-2 rounded-full text-sm font-medium",style:{backgroundColor:t?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.05)",color:t?"#e2e8f0":"#374151"},children:"\ud83c\udfaf 5 Lessons"}),(0,i.jsx)("div",{className:"px-4 py-2 rounded-full text-sm font-medium",style:{backgroundColor:t?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.05)",color:t?"#e2e8f0":"#374151"},children:"\u23f1\ufe0f ~5 min each"}),(0,i.jsx)("div",{className:"px-4 py-2 rounded-full text-sm font-medium",style:{backgroundColor:t?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.05)",color:t?"#e2e8f0":"#374151"},children:"\ud83c\udfc6 Earn XP"})]})]}),(0,i.jsx)("div",{className:"max-w-lg mx-auto rounded-2xl overflow-hidden shadow-xl",style:{border:"1px solid "+(t?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.08)"),boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"},children:(0,i.jsx)(o.Z,{isDark:t,compact:!1})})]})]}),(0,i.jsx)("section",{className:"py-12 lg:py-20",children:(0,i.jsx)("div",{className:"container mx-auto px-5 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,i.jsx)("h2",{className:"text-2xl lg:text-3xl font-bold text-center mb-8",style:{color:t?"#ffffff"
1:"#111827"},children:"Why P2P Compliance Matters"}),(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,i.jsxs)("div",{className:"p-6 rounded-2xl",style:{backgroundColor:t?"rgba(255,255,255,0.05)":"#ffffff",border:"1px solid "+(t?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.08)")},children:[(0,i.jsx)("span",{className:"text-3xl mb-3 block",children:"\ud83d\udee1\ufe0f"}),(0,i.jsx)("h3",{className:"font-bold text-lg mb-2",style:{color:t?"#ffffff":"#111827"},children:"Protect Your Number"}),(0,i.jsx)("p",{className:"text-sm",style:{color:t?"#94a3b8":"#6b7280"},children:"Carriers can restrict or ban numbers that show spam-like behavior. Learn to stay safe."})]}),(0,i.jsxs)("div",{className:"p-6 rounded-2xl",style:{backgroundColor:t?"rgba(255,255,255,0.05)":"#ffffff",border:"1px solid "+(t?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.08)")},children:[(0,i.jsx)("span",{className:"text-3xl mb-3 block",children:"\ud83d\udcc8"}),(0,i.jsx)("h3",{className:"font-bold text-lg mb-2",style:{color:t?"#ffffff":"#111827"},children:"Better Delivery"}),(0,i.jsx)("p",{className:"text-sm",style:{color:t?"#94a3b8":"#6b7280"},children:"Compliant messages get delivered. Spam-like messages get filtered. It's that simple."})]}),(0,i.jsxs)("div",{className:"p-6 rounded-2xl",style:{backgroundColor:t?"rgba(255,255,255,0.05)":"#ffffff",border:"1px solid "+(t?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.08)")},children:[(0,i.jsx)("span",{className:"text-3xl mb-3 block",children:"\ud83d\udc9a"}),(0,i.jsx)("h3",{className:"font-bold text-lg mb-2",style:{color:t?"#ffffff"
1:"#111827"},children:"Keep Texting Healthy"}),(0,i.jsx)("p",{className:"text-sm",style:{color:t?"#94a3b8":"#6b7280"},children:"When everyone follows the rules, we all benefit from a clean, trustworthy messaging ecosystem."})]})]})]})})}),(0,i.jsx)("section",{className:"pb-16 lg:pb-24",children:(0,i.jsx)("div",{className:"container mx-auto px-5 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-2xl mx-auto p-8 rounded-2xl text-center",style:{background:t?"linear-gradient(135deg, rgba(0,174,141,0.15) 0%, rgba(0,174,141,0.05) 100%)":"linear-gradient(135deg, rgba(0,174,141,0.1) 0%, rgba(0,174,141,0.02) 100%)",border:"1px solid rgba(0,174,141,0.2)"},children:[(0,i.jsx)("h3",{className:"text-xl font-bold mb-3",style:{color:t?"#ffffff":"#111827"},children:"Want the Official Guidelines?"}),(0,i.jsx)("p",{className:"mb-6",style:{color:t?"#94a3b8":"#6b7280"},children:"This training is based on industry standards from CTIA."}),(0,i.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,i.jsx)("a",{href:"https://api.ctia.org/wp-content/uploads/2023/05/230523-CTIA-Messaging-Principles-and-Best-Practices-FINAL.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3 rounded-full font-semibold text-white transition-all",style:{background:"linear-gradient(135deg, #00ae8d 0%, #0DB090 100%)",textDecoration:"none"},children:"\ud83d\udccb CTIA Guidelines (PDF)"}),(0,i.jsx)(l.Z,{href:"/FAQ#getting-started",className:"inline-flex items-center justify-center gap-2 px-6 py-3 rounded-full font-semibold transition-all",style:{backgroundColor:t?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.05)",color:t?"#e2e8f0":"#374151",textDecoration:"none"},children:"\u2753 Visit FAQ"})]})]})})})]})}function d(){return(0,i.jsxs)(a.Z,{title:"P2P Compliance Training - Interactive Game",description:"Learn P2P messaging compliance through an interactive game. Master CTIA guidelines, understand carrier rules, and keep your messaging privileges safe.",children:[(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("meta",{property:"og:title",content:"P2P Compliance Training - Hit Em Up"}),(0,i.jsx)("meta",{property:"og:description",content:"Learn P2P messaging compliance through an interactive game."})]}),(0,i.jsx)(c,{})]})}}}]);
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.