{"version":3,"file":"MeasurementPath.D9a2Cs13.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cQCxOfGoDgs41HZW5wRO/IUMHuvLD4A1Gp6XolnUa/MeasurementPath.js"],"sourcesContent":["/**\n * Measurement Path – animowana ścieżka klienta (kliknięcie → zakup) obok podglądu zdarzeń GA4.\n * Czysty CSS, pętla animacji, szanuje prefers-reduced-motion. Układ przełącza się na jedną kolumnę wg szerokości kontenera.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_STEPS=[{title:\"Kliknięcie reklamy\",subtitle:\"Google Ads lub Meta Ads\",event:\"session_start\",eventDesc:\"Źr\\xf3dło kampanii zapisane\"},{title:\"Wizyta na produkcie\",subtitle:\"Wiemy, co oglądał\",event:\"view_item\",eventDesc:\"Produkt i cena\"},{title:\"Dodanie do koszyka\",subtitle:\"Sygnał dla remarketingu\",event:\"add_to_cart\",eventDesc:\"Produkt w koszyku\"},{title:\"Zakup\",subtitle:\"Wartość wraca do kampanii\",event:\"purchase\",eventDesc:\"Wartość i numer zam\\xf3wienia\"}];const CSS=`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700&display=swap');\n.vlp-root{width:100%;box-sizing:border-box;container-type:inline-size;container-name:vlp;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#171717}\n.vlp-card{box-sizing:border-box;background:#fff;border-radius:28px;padding:32px;box-shadow:0 1px 2px 0 rgba(0,0,0,.04),0 12px 32px 0 rgba(0,0,0,.04)}\n.vlp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:center}\n.vlp-path{position:relative;display:flex;flex-direction:column;gap:18px;padding:8px 0}\n.vlp-rail{position:absolute;left:21px;top:22px;bottom:22px;width:2px;background:#e5e5e5;border-radius:2px;overflow:hidden}\n.vlp-rail i{display:block;width:100%;height:100%;background:var(--vlp-accent,#3b82f6);transform-origin:top;animation:vlp-rail var(--vlp-d,12s) cubic-bezier(.44,0,.56,1) infinite}\n.vlp-step{display:flex;align-items:center;gap:14px;min-height:64px}\n.vlp-num{position:relative;z-index:1;width:44px;height:44px;flex:0 0 44px;border-radius:999px;background:#737373;color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Plus Jakarta Sans',Inter,sans-serif;font-weight:700;font-size:18px;animation-duration:var(--vlp-d,12s);animation-iteration-count:infinite}\n.vlp-n1{animation-name:vlp-on1}.vlp-n2{animation-name:vlp-on2}.vlp-n3{animation-name:vlp-on3}.vlp-n4{animation-name:vlp-on4}\n.vlp-st{font-size:19.2px;line-height:26.88px;font-weight:600;letter-spacing:-.384px;color:#171717}\n.vlp-ss{font-size:14.4px;line-height:21.6px;color:#525252}\n.vlp-panel{box-sizing:border-box;background:#171717;color:#f5f5f5;border-radius:22px;padding:32px;min-height:360px;box-shadow:0 3px 6px 0 rgba(0,0,0,.19),0 10px 10px 0 rgba(0,0,0,.17),0 23px 14px 0 rgba(0,0,0,.1),0 41px 17px 0 rgba(0,0,0,.03);display:flex;flex-direction:column;gap:14px}\n.vlp-ph{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:4px}\n.vlp-pt{font-family:'Plus Jakarta Sans',Inter,sans-serif;font-size:22px;line-height:30.8px;font-weight:700;letter-spacing:-.88px;color:#f5f5f5}\n.vlp-badge{display:flex;align-items:center;gap:8px;background:#262626;border-radius:999px;padding:6px 12px;font-size:13.76px;line-height:19px;font-weight:500;color:#f5f5f5}\n.vlp-live{width:8px;height:8px;border-radius:999px;background:var(--vlp-accent,#3b82f6);animation:vlp-pulse 1.8s ease-in-out infinite}\n.vlp-ev{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #404040;opacity:0;animation-duration:var(--vlp-d,12s);animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.44,0,.56,1)}\n.vlp-e1{animation-name:vlp-r1}.vlp-e2{animation-name:vlp-r2}.vlp-e3{animation-name:vlp-r3}.vlp-e4{animation-name:vlp-r4}\n.vlp-en{font-size:16px;line-height:24px;font-weight:600;color:var(--vlp-accent,#3b82f6)}\n.vlp-ed{font-size:13.76px;line-height:19px;font-weight:500;color:#d4d4d4}\n@keyframes vlp-rail{0%{transform:scaleY(0)}70%,94%{transform:scaleY(1)}100%{transform:scaleY(0)}}\n@keyframes vlp-on1{0%,96%{background:#0a0a0a}100%{background:#737373}}\n@keyframes vlp-on2{0%,22%{background:#737373}25%,96%{background:#0a0a0a}100%{background:#737373}}\n@keyframes vlp-on3{0%,44%{background:#737373}47%,96%{background:#0a0a0a}100%{background:#737373}}\n@keyframes vlp-on4{0%,66%{background:#737373}69%,96%{background:#0a0a0a}100%{background:#737373}}\n@keyframes vlp-r1{0%,2%{opacity:0;transform:translateY(8px)}7%,92%{opacity:1;transform:none}98%,100%{opacity:0}}\n@keyframes vlp-r2{0%,24%{opacity:0;transform:translateY(8px)}29%,92%{opacity:1;transform:none}98%,100%{opacity:0}}\n@keyframes vlp-r3{0%,46%{opacity:0;transform:translateY(8px)}51%,92%{opacity:1;transform:none}98%,100%{opacity:0}}\n@keyframes vlp-r4{0%,68%{opacity:0;transform:translateY(8px)}73%,92%{opacity:1;transform:none}98%,100%{opacity:0}}\n@keyframes vlp-pulse{0%,100%{opacity:1}50%{opacity:.35}}\n@container vlp (max-width:760px){.vlp-grid{grid-template-columns:minmax(0,1fr)}.vlp-card{padding:20px;border-radius:22px}.vlp-panel{padding:22px;min-height:0}}\n@media (prefers-reduced-motion:reduce){.vlp-rail i,.vlp-num,.vlp-ev,.vlp-live{animation:none}.vlp-num{background:#0a0a0a}.vlp-ev{opacity:1}}\n`;function Check(){return /*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",stroke:\"#f5f5f5\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 10.5l3.2 3.2L15 6.5\"})});}/**\n * Measurement Path\n *\n * @framerIntrinsicWidth 1120\n * @framerIntrinsicHeight 460\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function MeasurementPath(props){const{steps,panelTitle=\"Podgląd zdarzeń GA4\",liveLabel=\"Na żywo\",cycleSeconds=12,accent=\"#3b82f6\",style}=props;const list=(steps&&steps.length?steps:DEFAULT_STEPS).slice(0,4);const cssVars={\"--vlp-d\":`${cycleSeconds}s`,\"--vlp-accent\":accent};return /*#__PURE__*/_jsxs(\"div\",{className:\"vlp-root\",style:{...cssVars,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"vlp-card\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-grid\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-path\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"vlp-rail\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"i\",{})}),list.map((s,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-step\",children:[/*#__PURE__*/_jsx(\"div\",{className:`vlp-num vlp-n${i+1}`,\"aria-hidden\":\"true\",children:i+1}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:2},children:[/*#__PURE__*/_jsx(\"div\",{className:\"vlp-st\",children:s.title}),/*#__PURE__*/_jsx(\"div\",{className:\"vlp-ss\",children:s.subtitle})]})]},i))]}),/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-panel\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-ph\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"vlp-pt\",children:panelTitle}),/*#__PURE__*/_jsxs(\"div\",{className:\"vlp-badge\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"vlp-live\"}),liveLabel]})]}),list.map((s,i)=>/*#__PURE__*/_jsxs(\"div\",{className:`vlp-ev vlp-e${i+1}`,children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",gap:2,minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{className:\"vlp-en\",children:s.event}),/*#__PURE__*/_jsx(\"div\",{className:\"vlp-ed\",children:s.eventDesc})]}),/*#__PURE__*/_jsx(Check,{})]},i))]})]})})]});}addPropertyControls(MeasurementPath,{steps:{type:ControlType.Array,title:\"Kroki\",maxCount:4,control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Tytuł\",defaultValue:\"Krok\"},subtitle:{type:ControlType.String,title:\"Opis\",defaultValue:\"\"},event:{type:ControlType.String,title:\"Zdarzenie\",defaultValue:\"event_name\"},eventDesc:{type:ControlType.String,title:\"Opis zdarzenia\",defaultValue:\"\"}}},defaultValue:DEFAULT_STEPS},panelTitle:{type:ControlType.String,title:\"Tytuł panelu\",defaultValue:\"Podgląd zdarzeń GA4\"},liveLabel:{type:ControlType.String,title:\"Etykieta\",defaultValue:\"Na żywo\"},cycleSeconds:{type:ControlType.Number,title:\"Cykl\",defaultValue:12,min:6,max:30,step:1,unit:\"s\"},accent:{type:ControlType.Color,title:\"Akcent\",defaultValue:\"#3b82f6\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MeasurementPath\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"460\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1120\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MeasurementPath.map"],"mappings":"8JAqCE,SAAS,GAAO,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,UAAU,YAAY,MAAM,cAAc,QAAQ,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