{"version":3,"file":"PersonalText.BQaNuiFD.mjs","names":["React.useId"],"sources":["https:/framerusercontent.com/modules/73kx3K4vHlv2BjIkGg9m/sSEJKo4ttOYlAwodmmh5/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\":`\"Geist Mono\", ui-monospace, Menlo, monospace`};/**\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\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PersonalText.map"],"mappings":"uPAGG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,SAAO,cAAY,aAAW,YAAU,WAAS,UAAQ,QAAM,QAAM,MAAI,WAAS,SAAO,EAAuC,EAAK,EAAK,EAA7B,EAAwC,CAAC,EAAQ,EAAM,EAAK,EAAK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