{"version":3,"file":"shared-lib.BEs6yJpS.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/2Mn9J08Ro3hrd7GNqET0/v1T5VmeX5INBMxl9WhHJ/CTA_Button.js","https:/framerusercontent.com/modules/81sNPBjWXvXx1eSKfKqc/7d3O12AHWtNuOO18nVvh/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";const ease=[.65,0,.35,1];// Ready-made size presets: height / side padding / font size\nconst SIZE_PRESETS={small:{height:34,horizontalPadding:20,fontSize:12.5},smallMedium:{height:39,horizontalPadding:24,fontSize:13.5},medium:{height:44,horizontalPadding:28,fontSize:14.5},large:{height:54,horizontalPadding:36,fontSize:16.5}};// Rotation (degrees) for each direction — base arrow SVG points right (0deg)\nconst DIRECTION_ROTATION={right:0,downRight:45,down:90,downLeft:135,left:180,upLeft:225,up:270,upRight:315};// Unit vector (x, y) each direction slides toward on hover\nconst DIRECTION_VECTOR={right:{x:1,y:0},downRight:{x:.707,y:.707},down:{x:0,y:1},downLeft:{x:-.707,y:.707},left:{x:-1,y:0},upLeft:{x:-.707,y:-.707},up:{x:0,y:-1},upRight:{x:.707,y:-.707}};function ArrowIcon({size,stroke,rotation}){return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",style:{transform:`rotate(${rotation}deg)`},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12H19M19 12L13 6M19 12L13 18\",stroke:stroke,strokeWidth:\"1.75\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function useIsMobile(){const[isMobile,setIsMobile]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mql=window.matchMedia(\"(max-width: 809px)\");const update=()=>setIsMobile(mql.matches);update();mql.addEventListener?mql.addEventListener(\"change\",update):mql.addListener(update);return()=>{mql.removeEventListener?mql.removeEventListener(\"change\",update):mql.removeListener(update);};},[]);return isMobile;}export default function MinimalPremiumPillButton(props){const{text,variant,showIcon,iconDirection,fullWidth,sizePreset,width,color,textColor,hoverColor,hoverTextColor,mobileColor,mobileTextColor}=props;const[hovered,setHovered]=React.useState(false);const[pressed,setPressed]=React.useState(false);const isMobile=useIsMobile();// Resolve effective sizing from the chosen preset\nconst preset=SIZE_PRESETS[sizePreset];const effHeight=preset.height;const effPadding=preset.horizontalPadding;const effFontSize=preset.fontSize;const iconSize=Math.round(effFontSize*1.05);const rotation=DIRECTION_ROTATION[iconDirection];const vector=DIRECTION_VECTOR[iconDirection];const sizingStyle={width:width>0?width:fullWidth?\"100%\":\"auto\",height:effHeight>0?effHeight:\"auto\",padding:effHeight>0?`0 ${effPadding}px`:`${Math.round(effFontSize*.95)}px ${effPadding}px`};// ---- Mobile: no hover/animation, but the picked variant's shape is\n// preserved — only the color animation goes away, not the outline\n// border or the ghost's \"no fill\" look. Filled stays a solid pill,\n// Outline stays a bordered pill with a transparent center, Ghost\n// stays text-only. All three just use the single flat mobile color\n// instead of animating between color/hoverColor.\nif(isMobile){let mobileBackground=\"transparent\";let mobileFg=mobileTextColor;let mobileBorder=\"1px solid transparent\";if(variant===\"filled\"){mobileBackground=mobileColor;mobileFg=mobileTextColor;}else if(variant===\"outline\"){mobileBorder=`1px solid ${mobileColor}`;mobileFg=mobileColor;}else{// ghost\nmobileFg=mobileColor;}return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:9,...sizingStyle,borderRadius:999,fontFamily:\"'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif\",fontSize:effFontSize,fontWeight:500,letterSpacing:\"0.01em\",whiteSpace:\"nowrap\",userSelect:\"none\",boxSizing:\"border-box\",background:mobileBackground,color:mobileFg,border:mobileBorder},children:[/*#__PURE__*/_jsx(\"span\",{children:text}),showIcon&&/*#__PURE__*/_jsx(ArrowIcon,{size:iconSize,stroke:mobileFg,rotation:rotation})]});}// ---- Desktop: variant colors + hover animation ----\nlet background=\"transparent\";let fg=textColor;let border=\"1px solid transparent\";if(variant===\"filled\"){background=hovered?hoverColor:color;fg=hovered?hoverTextColor:textColor;}else if(variant===\"outline\"){border=`1px solid ${hovered?hoverColor:color}`;fg=hovered?hoverColor:textColor;}else{fg=hovered?hoverColor:color;}const offsetX=iconSize*1.1*vector.x;const offsetY=iconSize*1.1*vector.y;return /*#__PURE__*/_jsxs(motion.div,{onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPressed(false);},onMouseDown:()=>setPressed(true),onMouseUp:()=>setPressed(false),animate:{scale:pressed?.98:1},transition:{duration:.2,ease},style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:9,...sizingStyle,borderRadius:999,fontFamily:\"'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif\",fontSize:effFontSize,fontWeight:500,letterSpacing:\"0.01em\",cursor:\"pointer\",whiteSpace:\"nowrap\",userSelect:\"none\",boxSizing:\"border-box\",background,color:fg,border,transition:\"background-color 260ms ease, color 260ms ease, border-color 260ms ease\"},children:[/*#__PURE__*/_jsx(\"span\",{children:text}),showIcon&&/*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",width:iconSize,height:iconSize,overflow:\"hidden\",flexShrink:0},children:[/*#__PURE__*/_jsx(motion.span,{style:{position:\"absolute\",inset:0},animate:{x:hovered?offsetX:0,y:hovered?offsetY:0,opacity:hovered?0:1},transition:{duration:.3,ease},children:/*#__PURE__*/_jsx(ArrowIcon,{size:iconSize,stroke:fg,rotation:rotation})}),/*#__PURE__*/_jsx(motion.span,{style:{position:\"absolute\",inset:0},animate:{x:hovered?0:-offsetX,y:hovered?0:-offsetY,opacity:hovered?1:0},transition:{duration:.3,ease},children:/*#__PURE__*/_jsx(ArrowIcon,{size:iconSize,stroke:fg,rotation:rotation})})]})]});}MinimalPremiumPillButton.defaultProps={text:\"Book a Shoot\",variant:\"filled\",showIcon:true,iconDirection:\"right\",fullWidth:false,sizePreset:\"medium\",width:0,color:\"#1E1E1E\",textColor:\"#F2F2F2\",hoverColor:\"#3D6EFF\",hoverTextColor:\"#FFFFFF\",mobileColor:\"#3D6EFF\",mobileTextColor:\"#FFFFFF\"};addPropertyControls(MinimalPremiumPillButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Book a Shoot\"},variant:{type:ControlType.Enum,title:\"Style\",options:[\"filled\",\"outline\",\"ghost\"],optionTitles:[\"Filled\",\"Outline\",\"Ghost\"],defaultValue:\"filled\",description:\"Mobilde de aynı şekil korunur (Outline'ın \\xe7er\\xe7evesi, Ghost'un dolgusuz g\\xf6r\\xfcn\\xfcm\\xfc) — sadece hover animasyonu ve renk ge\\xe7işi kalkar.\"},sizePreset:{type:ControlType.Enum,title:\"Size\",options:[\"small\",\"smallMedium\",\"medium\",\"large\"],optionTitles:[\"Small\",\"Small-Medium\",\"Medium\",\"Large\"],defaultValue:\"medium\",description:\"Y\\xfckseklik, i\\xe7 boşluk ve font boyutu birlikte \\xf6l\\xe7eklenir.\"},width:{type:ControlType.Number,title:\"Width\",defaultValue:0,min:0,max:600,step:1,description:\"Piksel cinsinden sabit genişlik. 0 = i\\xe7eriğe g\\xf6re otomatik.\"},showIcon:{type:ControlType.Boolean,title:\"Icon\",defaultValue:true,description:\"Masa\\xfcst\\xfcnde se\\xe7ilen y\\xf6ne doğru kayan animasyonlu ok.\"},iconDirection:{type:ControlType.Enum,title:\"Icon Direction\",options:[\"right\",\"downRight\",\"down\",\"downLeft\",\"left\",\"upLeft\",\"up\",\"upRight\"],optionTitles:[\"Right →\",\"Down-Right ↘\",\"Down ↓\",\"Down-Left ↙\",\"Left ←\",\"Up-Left ↖\",\"Up ↑\",\"Up-Right ↗\"],defaultValue:\"right\",description:\"Okun baktığı y\\xf6n. Hover'daki kayma animasyonu da bu y\\xf6ne g\\xf6re otomatik ayarlanır.\",hidden(props){return!props.showIcon;}},fullWidth:{type:ControlType.Boolean,title:\"Full Width\",defaultValue:false,description:\"Width 0 iken \\xfcst \\xf6ğeyi tamamen kaplar.\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#1E1E1E\",description:\"Filled arka planı / Outline \\xe7er\\xe7evesi / Ghost yazısı (normal durum).\"},textColor:{type:ControlType.Color,title:\"Text color\",defaultValue:\"#F2F2F2\",description:\"Filled ve Outline'ın normal yazı rengi.\"},hoverColor:{type:ControlType.Color,title:\"Hover color\",defaultValue:\"#3D6EFF\",description:\"Hover'daki marka aksan rengi — Filled arka planı, Outline/Ghost'un \\xe7er\\xe7eve ve yazı rengi.\"},hoverTextColor:{type:ControlType.Color,title:\"Hover text color\",defaultValue:\"#FFFFFF\",description:\"Filled varyantın hover'daki yazı rengi.\"},mobileColor:{type:ControlType.Color,title:\"Mobile color\",defaultValue:\"#3D6EFF\",description:\"Mobilde (809px altı) kullanılan tek d\\xfcz renk — Filled'de dolgu, Outline'da \\xe7er\\xe7eve/yazı, Ghost'ta yazı rengi olur.\"},mobileTextColor:{type:ControlType.Color,title:\"Mobile text color\",defaultValue:\"#FFFFFF\",description:\"Sadece Filled varyantında mobil yazı rengi i\\xe7in kullanılır.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MinimalPremiumPillButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTA_Button.map","// Generated by Framer (7175f5c)\nexport default function metadata(params,activeLocale){return{description:\"Professional real estate photography, drone photography, HDR imaging, twilight photography, and listing media services in Cumming, Alpharetta, Milton, Johns Creek, and North Georgia. Helping properties stand out and attract more buyers.\",favicon:\"https://framerusercontent.com/assets/MuZqLlDWP3bAV9DliG97vtAwB4.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/C8DDgoxVPR68cpeXZbxIjxf08.png\",title:\"CrossCo Media | Real Estate Photography & Drone Services in Cumming, GA\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6OAG4L,SAAS,EAAU,CAAC,OAAK,SAAO,YAAU,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,CAAC,UAAU,UAAU,EAAS,KAAK,EAAE,SAAsB,EAAK,OAAO,CAAC,EAAE,kCAAyC,SAAO,YAAY,OAAO,cAAc,QAAQ,eAAe,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC,SAAS,GAAa,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAe,EAAK,EAAoW,OAAlW,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAI,EAAO,WAAW,oBAAoB,EAAQ,MAAW,EAAY,EAAI,OAAO,EAA8F,OAA5F,EAAO,EAAE,EAAI,iBAAiB,EAAI,iBAAiB,SAAS,CAAM,EAAE,EAAI,YAAY,CAAM,MAAY,CAAC,EAAI,oBAAoB,EAAI,oBAAoB,SAAS,CAAM,EAAE,EAAI,eAAe,CAAM,CAAE,CAAE,EAAE,CAAC,CAAC,EAAS,CAAS,CAAC,SAAwB,EAAyB,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,WAAS,gBAAc,YAAU,aAAW,QAAM,QAAM,YAAU,aAAW,iBAAe,cAAY,mBAAiB,EAAW,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAO,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAQ,EAAS,EAAY,EAC9vC,EAAO,EAAa,GAAkB,EAAU,EAAO,OAAa,EAAW,EAAO,kBAAwB,EAAY,EAAO,SAAe,EAAS,KAAK,MAAM,EAAY,IAAI,EAAQ,EAAS,EAAmB,GA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