PageSourceSearch

https://code-previewer--mikael49.replit.app/assets/ViralChecklist-GkbCKCsT.js

js code-previewer--mikael49.replit.app collected 2026-10-04 03:49:52 UTC 7,503 bytes, 1 lines download raw bytes

1import{u as q,j as e,T as z,r as m}from"./index-VUr8YUys.js";import{H as D,F as k}from"./Footer-B82dd90X.js";import{S as L,C,Q as R,L as I,R as F,a as P,c as T}from"./ResultScreen-e-sGznrR.js";import{m as r}from"./proxy-ayByqVQh.js";import{T as Q}from"./trending-up-Dk20q7KV.js";import{L as E}from"./lock-tsxtTvAj.js";import{C as x}from"./chevron-right-BdAQE9QD.js";import{A as B}from"./index-CpBfLHoU.js";import"./logo-CJuMBHBg.js";import"./calendar-ygpmnkqp.js";import"./arrow-right-2_1ZkBOo.js";import"./chevron-down-CQ3jWvUA.js";import"./input-DgCQIqit.js";import"./users-BLjRN1Fc.js";import"./sparkles-B2jLDViR.js";import"./target-DwXPQJ4u.js";import"./shield-DAVKeKW9.js";import"./circle-check-big-BNaLDgd8.js";import"./award-CAaSI10J.js";import"./zap-t5AoIf0D.js";import"./file-text-BerWa0gy.js";import"./plane-Cnk65GCj.js";import"./building-2-CAOkkXyd.js";import"./check-9yoygiqT.js";import"./arrow-left-DfqcNxlU.js";import"./minus-DL-1iBZ-.js";import"./chevron-left-BR9MFAiJ.js";import"./emailValidation-B2AgUQfx.js";import"./gift-DP6LgfH7.js";import"./trending-down-DVrm5qaS.js";import"./user-DFOiEbei.js";import"./mail-BrzLo58W.js";import"./phone-D8eex_O6.js";import"./loader-circle-D1hAlXe7.js";import"./refresh-cw-DZSYSQ2f.js";function H({result:i,onContinue:l}){const{t}=q(),o=s=>new Intl.NumberFormat("tr-TR",{style:"currency",currency:"TRY",maximumFractionDigits:0}).format(s),c=s=>s>=75?"text-green-600":s>=50?"text-yellow-600":"text-red-600",d=s=>s>=80?t("quiz.preview.scoreLabels.excellent"):s>=60?t("quiz.preview.scoreLabels.good"):s>=40?t("quiz.preview.scoreLabels.developing"):t("quiz.preview.scoreLabels.needsWork"),p=i.estimatedLeaks?.slice().sort((s,a)=>a.leakAmount-s.leakAmount).slice(0,3)||[];return e.jsxs("div",{className:"max-w-2xl mx-auto","data-testid":"preview-screen",children:[e.jsxs(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx("h1",{className:"font-outfit text-3xl lg:text-4xl font-bold text-[#3A3A3A] mb-4",children:t("quiz.preview.title")}),e.jsx("p",{className:"text-lg text-gray-600",children:t("quiz.preview.subtitle")})]}),e.jsxs(r.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.1},className:"bg-white rounded-[40px] p-8 shadow-xl mb-6",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-24 h-24 rounded-full bg-gradient-to-br from-[#4059AD] to-[#6B7FD7] mb-4",children:e.jsx("span",{className:"text-4xl font-bold text-white",children:Math.round(i.totalScore)})}),e.jsx("div",{className:`text-xl font-semibold ${c(i.totalScore)}`,children:d(i.totalScore)}),e.jsx("p",{className:"text-gray-500 mt-2",children:t("quiz.preview.outOf100")})]}),i.totalPotentialSavings&&i.totalPotentialSavings>0&&e.jsx("div",{className:"bg-gradient-to-r from-red-50 to-orange-50 rounded-2xl p-6 mb-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-red-100 flex items-center justify-center",children:e.jsx(z,{className:"w-6 h-6 text-red-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-lg text-[#3A3A3A] mb-1",children:t("quiz.preview.potentialLeak")}),e.jsxs("p",{className:"text-3xl font-bold text-red-600",children:[o(i.totalPotentialSavings),e.jsx("span",{className:"text-lg font-normal text-gray-500 ml-2",children:t("quiz.preview.perYear")})]})]})]})}),p.length>0&&e.jsxs("div",{className:"space-y-3 mb-6",children:[e.jsxs("h3",{className:"font-semibold text-[#3A3A3A] flex items-center gap-2",children:[e.jsx(Q,{className:"w-5 h-5 text-[#4059AD]"}),t("quiz.preview.topLeaks")]}),p.map((s,a)=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-[#4059AD]/10 text-[#4059AD] text-sm font-medium flex items-center justify-center",children:a+1}),e.jsx("span",{className:"font-medium text-[#3A3A3A]",children:t(`quiz.categories.${s.categoryId}`)})]}),e.jsx("span",{className:"font-semibold text-red-600",children:o(s.leakAmount)})]},s.categoryId))]}),e.jsxs("div",{className:"bg-[#4059AD]/5 rounded-2xl p-6 border-2 border-dashed border-[#4059AD]/30",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(E,{className:"w-5 h-5 text-[#4059AD]"}),e.jsx("h3",{className:"font-semibold text-[#4059AD]",children:t("quiz.preview.fullReportIncludes")})]}),e.jsxs("ul",{className:"space-y-2 text-gray-600",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-[#4059AD]"}),t("quiz.preview.includes.priorityFixes")]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-[#4059AD]"}),t("quiz.preview.includes.actionPlans")]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-[#4059AD]"}),t("quiz.preview.includes.benchmarks")]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-[#4059AD]"}),t("quiz.preview.includes.quickWins")]})]})]})]}),e.jsxs(r.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{delay:.2},className:"text-center",children:[e.jsxs("button",{onClick:l,"data-testid":"button-unlock-report",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#4059AD] text-white font-semibold rounded-2xl shadow-xl shadow-[#4059ad]/20 hover:shadow-2xl hover:shadow-[#4059ad]/30 transition-all duration-300 hover:-translate-y-1",children:[t("quiz.preview.unlockButton"),e.jsx(x,{className:"w-5 h-5"})]}),e.jsx("p",{className:"text-sm text-gray-500 mt-4",children:t("quiz.preview.freeReport")})]})]})}function Ne(){const[i,l]=m.useState("start"),[t,o]=m.useState(0),[c,d]=m.useState({}),[p,s]=m.useState(null),[a,u]=m.useState(null),h=()=>{l("company-info")},y=n=>{s(n),l("quiz"),o(0),d({})},f=(n,A)=>{d(S=>({...S,[n]:A}))},j=()=>{if(t<P.length-1)o(n=>n+1);else{const n=T(c,p||void 0);u(n),l("preview")}},v=()=>{t>0&&o(n=>n-1)},w=()=>{l("lead")},g=()=>{l("result")},N=()=>{l("start"),o(0),d({}),s(null),u(null)},b=m.useMemo(()=>JSON.stringify(c),[c]);return e.jsxs("div",{className:"bg-[#F7F8FE] text-[#3A3A3A] antialiased min-h-screen font-sans",children:[e.jsx(D,{}),e.jsx("main",{className:"pt-[180px] sm:pt-32 lg:pt-40 pb-20 lg:pb-32",children:e.jsx("div",{className:"max-w-4xl mx-auto px-6",children:e.jsxs(B,{mode:"wait",children:[i==="start"&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(L,{onStart:h})},"start"),i==="company-info"&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(C,{onSubmit:y})},"company-info"),i==="quiz"&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(R,{currentIndex:t,answers:c,onAnswer:f,onNext:j,onPrevious:v})},"quiz"),i==="preview"&&a&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(H,{result:a,onContinue:w})},"preview"),i==="lead"&&a&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(I,{result:a,answersJson:b,onSubmitSuccess:g})},"lead"),i==="result"&&a&&e.jsx(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:e.jsx(F,{result:a,onRestart:N})},"result")]})})}),e.jsx(k,{})]})}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.