{"version":3,"file":"PersonalText.Dffxd4LP.mjs","names":["React.useId","__esmMin","ie","p","c","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","init_framer_BisrWwwE","ControlType","useVisitor","pick","init_VisitorMemory_6b0PNN","PersonalText","props","visitor","rule","spot","words","text","cls","Tag","tag","style","maxWidth","sizeDesktop","sizeTablet","sizePhone","align","FAMILIES","family","tracking","leading","init_PersonalText"],"sources":["https:/framerusercontent.com/modules/73kx3K4vHlv2BjIkGg9m/ComNtVG6eKmIrRXJurK5/PersonalText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useVisitor,pick}from\"https://framer.com/m/VisitorMemory-6b0PNN.js@SUUVvc9rsZjbdcEMwiur\";const FAMILIES={Aeonik:`\"Aeonik\", \"Helvetica Neue\", Arial, sans-serif`,\"Geist Mono\":`\"Aeonik\", \"Aeonik Regular\", ui-sans-serif, system-ui, sans-serif`};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PersonalText(props){const{spot,text,family,sizeDesktop,sizeTablet,sizePhone,tracking,leading,color,align,tag,maxWidth,style}=props;const visitor=useVisitor();const rule=pick(spot,visitor);const words=rule?rule.words:text;const cls=\"pt-\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");if(!words||!words.trim())return null;const Tag=tag;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",maxWidth:maxWidth?maxWidth+\"px\":undefined},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${cls}{font-size:${sizeDesktop}px}\n                @media (min-width:810px) and (max-width:1199.98px){.${cls}{font-size:${sizeTablet}px}}\n                @media (max-width:809.98px){.${cls}{font-size:${sizePhone}px}}\n                .${cls}.pt-swapped{animation:ptIn .6s cubic-bezier(.22,1,.36,1) both}\n                @keyframes ptIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}\n                @media (prefers-reduced-motion:reduce){.${cls}.pt-swapped{animation:none}}\n            `}),/*#__PURE__*/_jsx(Tag,{className:cls+(rule?\" pt-swapped\":\"\"),style:{margin:0,color,textAlign:align,fontFamily:FAMILIES[family]||FAMILIES.Aeonik,fontWeight:400,letterSpacing:tracking+\"em\",lineHeight:leading,textWrap:\"balance\",whiteSpace:\"pre-line\"},children:words})]});}addPropertyControls(PersonalText,{spot:{type:ControlType.String,title:\"Spot\",defaultValue:\"Line under hero\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"\"},family:{type:ControlType.Enum,title:\"Font\",options:[\"Aeonik\",\"Geist Mono\"],defaultValue:\"Aeonik\"},sizeDesktop:{type:ControlType.Number,title:\"Size Desktop\",defaultValue:15,min:8,max:160,step:1,unit:\"px\"},sizeTablet:{type:ControlType.Number,title:\"Size Tablet\",defaultValue:15,min:8,max:160,step:1,unit:\"px\"},sizePhone:{type:ControlType.Number,title:\"Size Phone\",defaultValue:14,min:8,max:160,step:1,unit:\"px\"},tracking:{type:ControlType.Number,title:\"Tracking\",defaultValue:0,min:-.1,max:.2,step:.001,unit:\"em\"},leading:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.385,min:.8,max:2,step:.005},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#2B2725\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],defaultValue:\"left\",displaySegmentedControl:true},tag:{type:ControlType.Enum,title:\"Tag\",options:[\"p\",\"h2\",\"h3\"],defaultValue:\"p\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:0,min:0,max:1600,step:10,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PersonalText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\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