{"version":3,"file":"P25MonogramMotion.CYLWWY2S.mjs","names":["React.useId","React.useRef","React.useState","__esmMin","ie","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","addPropertyControls","RenderTarget","init_framer_Bf4_tcb2","ControlType","P25MonogramMotion","props","uid","ref","isCanvas","go","setGo","playOnView","io","e","s","speed","t","sec","intro","mode","loop","loopDelay","state","css","isGrad","colorway","solid","customColor","SOLID","top","bot","label","style","TOP_A","TOP_B","BOT_A","BOT_B","init_P25MonogramMotion"],"sources":["https:/framerusercontent.com/modules/cd6Fm7sV3yI9Kqk83r5Q/fCUs9TuaRrLyTpMXJuOi/P25MonogramMotion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Parallel25 animated monogram, from the Brand Kit (02 Logo Motion/Monogram/Web).\n// Intro: the columns grow, the bars widen, then the bottom pair steps into place.\n// Loop: the bottom pair \"breathes\" out of step and back, forever.\n// Intro + loop: plays the intro once on view, then keeps breathing.\n// Respects reduced motion (shows the settled mark).\nconst TOP_A=\"M 0.894531 0.773438 L 0.894531 83.425781 L 41.605469 83.425781 L 41.605469 0.773438 Z\";const TOP_B=\"M 73.742188 83.429688 L 114.449219 83.429688 L 114.449219 0.773438 L 73.742188 0.773438 Z\";const BOT_A=\"M 32.785156 160.851562 L 73.496094 160.851562 L 73.496094 83.429688 L 32.785156 83.429688 Z\";const BOT_B=\"M 105.632812 160.851562 L 146.339844 160.851562 L 146.339844 83.429688 L 105.632812 83.429688 Z\";const SOLID={lime:\"#d5efa3\",white:\"#ffffff\",bone:\"#efece6\",black:\"#000000\",cobalt:\"#1736ce\",watermark:\"#1a1a1a\",echo:\"#262626\"};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 147\n */export default function P25MonogramMotion(props){const{colorway=\"gradient\",customColor=\"#262626\",mode=\"introLoop\",playOnView=true,speed=1,label=\"Parallel25\",style}=props;const uid=\"p25m\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const ref=React.useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[go,setGo]=React.useState(!playOnView||isCanvas);React.useEffect(()=>{if(go||!ref.current||typeof IntersectionObserver===\"undefined\"){setGo(true);return;}const io=new IntersectionObserver(([e])=>{if(e.isIntersecting){setGo(true);io.disconnect();}},{threshold:.4});io.observe(ref.current);return()=>io.disconnect();},[]);const s=Math.max(.25,speed);const t=sec=>`${(sec/s).toFixed(3)}s`;const intro=mode===\"intro\"||mode===\"introLoop\";const loop=mode===\"loop\"||mode===\"introLoop\";const loopDelay=mode===\"introLoop\"?2.4:0;const state=go?\"running\":\"paused\";const css=`\n.${uid} path{stroke-width:.6px}\n.${uid} .cT,.${uid} .cB,.${uid} .bar{transform-box:fill-box}\n${intro?`.${uid} .cT{transform-origin:50% 0;transform:scaleY(0);animation:${uid}g ${t(.5)} cubic-bezier(.6,0,.2,1) ${t(.15)} forwards;animation-play-state:${state}}\n.${uid} .cB{transform-origin:50% 100%;transform:scaleY(0);animation:${uid}g ${t(.5)} cubic-bezier(.6,0,.2,1) ${t(.15)} forwards;animation-play-state:${state}}\n.${uid} .bar{transform-origin:0 50%;transform:scaleX(.06);animation:${uid}w ${t(.5)} cubic-bezier(.6,0,.2,1) ${t(.7)} forwards;animation-play-state:${state}}\n.${uid} .sh{transform:translateX(-31.85px);animation:${uid}s ${t(.9)} cubic-bezier(.16,1,.3,1) ${t(1.3)} forwards;animation-play-state:${state}}`:\"\"}\n${loop?`.${uid} .br{animation:${uid}b ${t(2.4)} cubic-bezier(.65,0,.35,1) ${t(loopDelay)} infinite;animation-play-state:${state}}`:\"\"}\n@keyframes ${uid}g{to{transform:scaleY(1)}}\n@keyframes ${uid}w{to{transform:scaleX(1)}}\n@keyframes ${uid}s{to{transform:translateX(0)}}\n@keyframes ${uid}b{0%,12%{transform:translateX(0)}44%,62%{transform:translateX(-31.85px)}94%,100%{transform:translateX(0)}}\n@media (prefers-reduced-motion:reduce){.${uid} .cT,.${uid} .cB,.${uid} .bar,.${uid} .sh,.${uid} .br{animation:none;transform:none}}`;const isGrad=colorway===\"gradient\";const solid=colorway===\"custom\"?customColor:SOLID[colorway]||\"#d5efa3\";const top=isGrad?`url(#${uid}t)`:solid;const bot=isGrad?`url(#${uid}b)`:solid;return /*#__PURE__*/_jsx(\"div\",{ref:ref,role:\"img\",\"aria-label\":label,style:{width:\"100%\",lineHeight:0,...style},children:/*#__PURE__*/_jsxs(\"svg\",{className:uid,viewBox:\"0 0 147 161\",width:\"100%\",style:{display:\"block\",height:\"auto\",overflow:\"visible\"},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"linearGradient\",{id:`${uid}t`,gradientUnits:\"userSpaceOnUse\",x1:\"0\",y1:\"0.77\",x2:\"0\",y2:\"83.43\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0\",stopColor:\"#ffffff\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".462\",stopColor:\"#c793bc\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#000000\"})]}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:`${uid}b`,gradientUnits:\"userSpaceOnUse\",x1:\"0\",y1:\"83.43\",x2:\"0\",y2:\"160.85\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0\",stopColor:\"#000000\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".236\",stopColor:\"#1736ce\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".525\",stopColor:\"#89d19d\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".789\",stopColor:\"#94e098\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#ffffff\"})]})]}),/*#__PURE__*/_jsxs(\"g\",{className:\"cT\",style:{fill:top,stroke:top},children:[/*#__PURE__*/_jsx(\"path\",{className:\"bar\",d:TOP_A}),/*#__PURE__*/_jsx(\"path\",{className:\"bar\",d:TOP_B})]}),/*#__PURE__*/_jsx(\"g\",{className:\"sh\",children:/*#__PURE__*/_jsx(\"g\",{className:\"br\",children:/*#__PURE__*/_jsxs(\"g\",{className:\"cB\",style:{fill:bot,stroke:bot},children:[/*#__PURE__*/_jsx(\"path\",{className:\"bar\",d:BOT_A}),/*#__PURE__*/_jsx(\"path\",{className:\"bar\",d:BOT_B})]})})})]})});}addPropertyControls(P25MonogramMotion,{mode:{type:ControlType.Enum,title:\"Motion\",options:[\"introLoop\",\"intro\",\"loop\",\"static\"],optionTitles:[\"Intro, then loop\",\"Intro once\",\"Loop only\",\"Static\"],defaultValue:\"introLoop\"},colorway:{type:ControlType.Enum,title:\"Colorway\",options:[\"gradient\",\"lime\",\"white\",\"bone\",\"black\",\"cobalt\",\"watermark\",\"echo\",\"custom\"],optionTitles:[\"Gradient (black ground)\",\"Lime\",\"White\",\"Bone\",\"Black\",\"Cobalt\",\"Ghost watermark\",\"Echo on black\",\"Custom\"],defaultValue:\"gradient\"},customColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#262626\",hidden:p=>p.colorway!==\"custom\"},playOnView:{type:ControlType.Boolean,title:\"Start on view\",defaultValue:true},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.25,max:3,step:.05,unit:\"\\xd7\"},label:{type:ControlType.String,title:\"Alt text\",defaultValue:\"Parallel25\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"P25MonogramMotion\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"147\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./P25MonogramMotion.map"],"mappings":"A,8MASG,SAA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