{"version":3,"file":"SectionHeaderAppLink.CL0JRyFD.mjs","names":["useState","useCallback","_Fragment","useRef","useId","__esmMin","window","ie","ne","init_ssg_sandbox_shims","_e","de","l","p","c","J","init_jsx_runtime","init_npm_react_18_3_1","ce","navigator","motion","init_framer_motion_DbYmcygs","init_framer_iLM2NxCW","useIsStaticRenderer","ControlType","addPropertyControls","getSplitMediaImageSizes","init_themeHelpers","init_placeholders","resolveBrand","useReducedMotion","init_themeControl","pickBrandButtonVariant","createSectionVariantsWithImage","useHeroLcpImageLoading","init_pushDataLayerEvent","init_motionVariants","getLinkUrl","isCanvasNarrowBreakpoint","resolveTricountOnSurfaceButtonVariant","init_layoutStyles","getSectionStyles","init_buttonStyles","isCanvasPhoneBreakpoint","getStagger","getSectionPaddingTopWithSectionAndNav","PLACEHOLDER","themePropertyControls","pushDataLayerEvent","useEffectiveBreakpoint","init_linkHelpers","init_sectionProps","useAccessibilityStrings","getSectionRestProps","init_useAccessibilityStrings","getCopyStackGap","getGap","PRESERVE_CONTROL_NEWLINES","getContainerStyles","init_propertyControlCopy","resolveSectionIdPrefix","FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN","init_colors","Tokens","getSectionWrapperStyles","resolveScopedElementId","kernHeadingPlainText","HERO_MIN_HEIGHT","Button","init_Button","init_controlTextStyles","init_resolveElementId","getCopyToCtaMarginTop","getSectionPaddingTopWithHalfSectionAndNav","getThemeColors","resolveThemeProp","sectionButtonVariantControls","Image","init_Image","getSectionRootBackgroundStyle","init_sectionBackground","init_useSectionAnimation","getSectionBackgroundFromProps","useSectionAnimation","getSectionContentStackStyle","sectionBackgroundPropertyControls","init_QRCode","QRCode","parseUrlOrNull","href","resolveTricountEnvironment","url","getTricountShareIdFromUrl","fromParam","TRICOUNT_SHARE_ID_PARAM","SHARE_ID_PATTERN","segments","segment","index","LOCALE_SEGMENT_PATTERN","APP_LINK_SEGMENT","candidate","MARKETING_CONSENT_SEGMENT","isTricountMarketingConsentPath","buildTricountMarketingConsentDeepLink","environment","TRICOUNT_PRODUCTION_SCHEME","TRICOUNT_TEST_SCHEME","buildTricountShareUrl","options","TRICOUNT_PRODUCTION_HOST","TRICOUNT_TEST_HOST","pathPrefix","shareId","buildTricountJoinDeepLink","detectTricountMobileOs","userAgent","signals","isFacebookInAppBrowser","buildTricountAndroidStoreUrl","params","TRICOUNT_ANDROID_PACKAGE","buildTricountStoreUrl","os","TRICOUNT_IOS_STORE_URL","desktopFallbackUrl","resolveTricountOpenAppTarget","canDeepLink","init_tricountAppLink","toAbsoluteUrl","pageHref","readDeviceSignals","useTricountAppLink","resolved","setResolved","sharePathPrefix","fallbackShareUrl","init_useTricountAppLink","getUrlHost","getQrPlateRadius","breakpoint","AppLinkQrPlate","qrSize","accessibilityStrings","kind","logoVariant","textColor","label","SHARE_PATH_PREFIX_BY_MODE","OPEN_APP_EVENT_BY_MODE","STORE_EVENT","APP_LINK_HANDOFF_DEFAULTS","appLinkHandoffPropertyControls","AppLinkHandoff","init_appLinkHandoff","init_T9ZAQm8H3xj36AVQ2exs","resolvedFallbackLink","fallbackLink","linkMode","colors","theme","brand","navigateTo","handleOpenAppClick","event","openAppCtaId","resolveOpenAppUrl","handleDownloadClick","storeUrl","resolveStoreUrl","downloadCtaId","showQr","showDownloadButton","downloadQrUrl","downloadButtonLabel","showOpenAppButton","qrUrl","openAppButtonLabel","sharedButtonProps","buttonVariant","buildSectionHeaderAppLinkStyles","headingColor","bodyColor","sectionBgColor","isCanvasPhone","style","isGradient","hasVisual","init_sectionHeaderAppLinkStyles","SectionHeaderAppLink","ref","props","SectionHeaderAppLinkInternal","init_SectionHeaderAppLink","breakpointProp","rest","sectionRefObject","visualPriority","visualLoading","visualPreloadMedia","lcpPriority","backgroundGradientBrand","reducedMotion","isStaticRenderer","componentId","headingId","resolvedBrand","resolvedButtonVariant","buttonVariantTricount","resolvedSectionId","sectionId","visualImage","styles","containerVariants","itemVariants","imageVariants","sectionRef","animate","backgroundLayer","heading","description","children","visualImageAlt"],"sources":["https:/framerusercontent.com/modules/qZghg4XjphiCGbig2aeO/UrUyF0YZO3hotO7BcP22/tricountAppLink.js","https:/framerusercontent.com/modules/NeKXvcxuyQtsZzcvtVtj/uClyNxAYcoaJBFXHp5Gr/useTricountAppLink.js","https:/framerusercontent.com/modules/9pFM7kIXxwnXkC6pQTf1/jujdwdubgo3n34UxoUob/appLinkHandoff.js","https:/framerusercontent.com/modules/OLeX3VHUKNffRipaO66Z/3AO6RxN1V0vq92J6cwJU/sectionHeaderAppLinkStyles.js","https:/framerusercontent.com/modules/RWYvjpZYxzUixjmBHzY1/mw6Toc3Wl6EEVEXw2bIW/SectionHeaderAppLink.js"],"sourcesContent":["export const TRICOUNT_SHARE_ID_PARAM=\"tricountID\";export const TRICOUNT_PRODUCTION_HOST=\"tricount.com\";export const TRICOUNT_TEST_HOST=\"splitcost.org\";export const TRICOUNT_PRODUCTION_SCHEME=\"tricount\";export const TRICOUNT_TEST_SCHEME=\"splitcost\";export const TRICOUNT_ANDROID_PACKAGE=\"com.tribab.tricount.android\";export const TRICOUNT_IOS_STORE_URL=\"https://itunes.apple.com/app/tricount/id349866256?pt=118258096&ct=landing-page&mt=8\";const SHARE_ID_PATTERN=/^[A-Za-z0-9-]{16,36}$/;const LOCALE_SEGMENT_PATTERN=/^[a-z]{2}(?:-[a-z]{2})?$/;const APP_LINK_SEGMENT=\"ap\";const MARKETING_CONSENT_SEGMENT=\"prompt-marketing-consent\";function parseUrlOrNull(href){if(!href)return null;try{return new URL(href);}catch{return null;}}export function resolveTricountEnvironment(href){const url=parseUrlOrNull(href);if(!url)return\"test\";const host=url.hostname.toLowerCase().replace(/^www\\./,\"\");return host===TRICOUNT_PRODUCTION_HOST?\"production\":\"test\";}export function getTricountShareIdFromUrl(href){const url=parseUrlOrNull(href);if(!url)return null;const fromParam=url.searchParams.get(TRICOUNT_SHARE_ID_PARAM);if(fromParam&&SHARE_ID_PATTERN.test(fromParam)){return fromParam;}const segments=url.pathname.split(\"/\").filter(segment=>segment!==\"\");let index=0;if(segments[index]!==undefined&&LOCALE_SEGMENT_PATTERN.test(segments[index])){index+=1;}if(segments[index]===APP_LINK_SEGMENT){index+=1;}const candidate=segments[index];if(candidate===undefined||segments.length>index+1){return null;}if(candidate===MARKETING_CONSENT_SEGMENT){return null;}return SHARE_ID_PATTERN.test(candidate)?candidate:null;}export function isTricountMarketingConsentPath(href){const url=parseUrlOrNull(href);if(!url)return false;const segments=url.pathname.split(\"/\").filter(segment=>segment!==\"\");let index=0;if(segments[index]!==undefined&&LOCALE_SEGMENT_PATTERN.test(segments[index])){index+=1;}return segments[index]===MARKETING_CONSENT_SEGMENT&&segments.length===index+1;}export function buildTricountMarketingConsentDeepLink(environment=\"production\"){const scheme=environment===\"production\"?TRICOUNT_PRODUCTION_SCHEME:TRICOUNT_TEST_SCHEME;return`${scheme}://${MARKETING_CONSENT_SEGMENT}`;}export function buildTricountShareUrl(shareId,options={}){const{environment=\"production\",pathPrefix=\"none\"}=options;const host=environment===\"production\"?TRICOUNT_PRODUCTION_HOST:TRICOUNT_TEST_HOST;const prefix=pathPrefix===\"app-link\"?`${APP_LINK_SEGMENT}/`:\"\";return`https://${host}/${prefix}${shareId}`;}export function buildTricountJoinDeepLink(shareId,environment=\"production\"){const scheme=environment===\"production\"?TRICOUNT_PRODUCTION_SCHEME:TRICOUNT_TEST_SCHEME;return`${scheme}://join/${shareId}`;}export function detectTricountMobileOs(userAgent,signals={}){if(!userAgent)return null;if(/Windows Phone/i.test(userAgent))return\"windows\";if(/Android/i.test(userAgent))return\"android\";if(/iPhone|iPad|iPod/i.test(userAgent))return\"ios\";if(signals.platform===\"MacIntel\"&&(signals.maxTouchPoints??0)>1)return\"ios\";return null;}export function isFacebookInAppBrowser(userAgent){if(!userAgent)return false;return userAgent.includes(\"FBAN\")||userAgent.includes(\"FBAV\");}export function buildTricountAndroidStoreUrl(shareId){const params=new URLSearchParams({id:TRICOUNT_ANDROID_PACKAGE,utm_source:\"landing-page\",utm_medium:\"landing-page\"});if(shareId){params.set(\"random\",shareId);}return`https://play.google.com/store/apps/details?${params.toString()}`;}export function buildTricountStoreUrl(options){const{userAgent,shareId=null,signals,desktopFallbackUrl=\"/download\"}=options;const os=detectTricountMobileOs(userAgent,signals);if(os===\"android\")return buildTricountAndroidStoreUrl(shareId);if(os===\"ios\")return TRICOUNT_IOS_STORE_URL;return desktopFallbackUrl;}export function resolveTricountOpenAppTarget(options){const{userAgent,href,signals,desktopFallbackUrl}=options;const shareId=options.shareId??getTricountShareIdFromUrl(href);const environment=resolveTricountEnvironment(href);const os=detectTricountMobileOs(userAgent,signals);const canDeepLink=os===\"ios\"||os===\"android\"||isFacebookInAppBrowser(userAgent);if(isTricountMarketingConsentPath(href)&&canDeepLink){return buildTricountMarketingConsentDeepLink(environment);}if(shareId&&canDeepLink){return buildTricountJoinDeepLink(shareId,environment);}return buildTricountStoreUrl({userAgent,shareId,signals,desktopFallbackUrl});}\nexport const __FramerMetadata__ = {\"exports\":{\"TRICOUNT_IOS_STORE_URL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TricountSharePathPrefix\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_SHARE_ID_PARAM\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TricountAppEnvironment\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildTricountAndroidStoreUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildTricountStoreUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildTricountShareUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isFacebookInAppBrowser\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_TEST_SCHEME\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildTricountJoinDeepLink\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_TEST_HOST\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildTricountMarketingConsentDeepLink\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TricountMobileOs\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TricountDeviceSignals\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_ANDROID_PACKAGE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_PRODUCTION_HOST\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resolveTricountEnvironment\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TRICOUNT_PRODUCTION_SCHEME\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isTricountMarketingConsentPath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectTricountMobileOs\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resolveTricountOpenAppTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getTricountShareIdFromUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./tricountAppLink.map","import{useEffect,useState}from\"react\";import{buildTricountShareUrl,buildTricountStoreUrl,getTricountShareIdFromUrl,resolveTricountEnvironment,resolveTricountOpenAppTarget}from\"https://framerusercontent.com/modules/qZghg4XjphiCGbig2aeO/UrUyF0YZO3hotO7BcP22/tricountAppLink.js\";function toAbsoluteUrl(href,pageHref){if(!href)return href;try{return new URL(href).href;}catch{if(!pageHref)return href;try{return new URL(href,pageHref).href;}catch{return href;}}}function readDeviceSignals(){if(typeof navigator===\"undefined\")return{};return{platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints};}export function useTricountAppLink(options={}){const{sharePathPrefix=\"none\",desktopFallbackUrl=\"/download\",fallbackShareUrl=\"/download\"}=options;const[resolved,setResolved]=useState(null);useEffect(()=>{const href=window.location.href;setResolved({shareId:getTricountShareIdFromUrl(href),href});},[]);const href=resolved?.href??\"\";const shareId=resolved?.shareId??null;const environment=resolved?resolveTricountEnvironment(href):\"production\";const qrUrl=shareId?buildTricountShareUrl(shareId,{environment,pathPrefix:sharePathPrefix}):resolved?toAbsoluteUrl(fallbackShareUrl,href):fallbackShareUrl;const downloadQrUrl=resolved?toAbsoluteUrl(desktopFallbackUrl,href):desktopFallbackUrl;const resolveOpenAppUrl=()=>{if(typeof window===\"undefined\")return desktopFallbackUrl;return resolveTricountOpenAppTarget({userAgent:navigator.userAgent,href:window.location.href,signals:readDeviceSignals(),desktopFallbackUrl});};const resolveStoreUrl=()=>{if(typeof window===\"undefined\")return desktopFallbackUrl;return buildTricountStoreUrl({userAgent:navigator.userAgent,shareId:getTricountShareIdFromUrl(window.location.href),signals:readDeviceSignals(),desktopFallbackUrl});};return{shareId,environment,qrUrl,downloadQrUrl,isResolved:resolved!==null,resolveOpenAppUrl,resolveStoreUrl};}\nexport const __FramerMetadata__ = {\"exports\":{\"useTricountAppLink\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TricountAppLink\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UseTricountAppLinkOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useTricountAppLink.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useCallback}from\"react\";import{ControlType}from\"framer\";import Button from\"https://framerusercontent.com/modules/VG7f7tzDvZosNAt6agoP/ZZWo09Pl5kXbVHLydsBa/Button.js\";import QRCode from\"https://framerusercontent.com/modules/uwe5nUKzlkYN5vfFopCz/Lgi4ecxk6JSZhHmpllDQ/QRCode.js\";import Tokens from\"https://framerusercontent.com/modules/qUEnAktcSZIPkdLrqL6F/T9ZAQm8H3xj36AVQ2exs/index.js\";import{getThemeColors}from\"https://framerusercontent.com/modules/7NSJeaeou9P0OpUE6qK4/XRbqGP40JEHgVMuwAne5/themeHelpers.js\";import{resolveTricountOnSurfaceButtonVariant}from\"https://framerusercontent.com/modules/jziVWOV3BxFa7do866W6/Bsfuff20ISxi0EXKudbL/buttonStyles.js\";import{getGap}from\"https://framerusercontent.com/modules/xa02n637G4bDG995CgZR/NJ3C3UIGy1ZKOMJxgiY4/layoutStyles.js\";import{getLinkUrl}from\"https://framerusercontent.com/modules/WKDkAgpP16RxQTEJS39T/BbaVKisLpg9qTAs1N2Nx/linkHelpers.js\";import{pushDataLayerEvent}from\"https://framerusercontent.com/modules/lM9BNastFtIwq1OzORug/IV484RsG9vwVICS9IVxP/pushDataLayerEvent.js\";import{useTricountAppLink}from\"https://framerusercontent.com/modules/NeKXvcxuyQtsZzcvtVtj/uClyNxAYcoaJBFXHp5Gr/useTricountAppLink.js\";import{useAccessibilityStrings}from\"https://framerusercontent.com/modules/4BOd7Tg4lcdTuHx1GzRY/oCHe88S4iQyLYmULi1zM/useAccessibilityStrings.js\";const SHARE_PATH_PREFIX_BY_MODE={\"share-link\":\"none\",\"universal-link\":\"app-link\"};const OPEN_APP_EVENT_BY_MODE={\"share-link\":\"click_join-tricount\",\"universal-link\":\"click_open-app\"};const STORE_EVENT=\"click_download-tricount\";function getUrlHost(url){if(typeof window===\"undefined\")return undefined;try{return new URL(url,window.location.href).hostname;}catch{return undefined;}}export const APP_LINK_HANDOFF_DEFAULTS={linkMode:\"share-link\",openAppButtonLabel:\"Open the app\",downloadButtonLabel:\"Download the app\",showOpenAppButton:true,showDownloadButton:false,fallbackLink:\"/download\",openAppCtaId:\"cta-open-app\",downloadCtaId:\"cta-download-app\"};export const appLinkHandoffPropertyControls={linkMode:{type:ControlType.Enum,title:\"Page Type\",options:[\"share-link\",\"universal-link\"],optionTitles:[\"Shared\",\"Fallback\"],displaySegmentedControl:true,defaultValue:APP_LINK_HANDOFF_DEFAULTS.linkMode,description:\"Shared for /landing-page (open QR encodes /{id}). Fallback for /universal-link (open QR encodes /ap/{id}).\"},openAppButtonLabel:{type:ControlType.String,title:\"Open App Label\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.openAppButtonLabel,placeholder:\"e.g. Join existing tricount\",description:\"Label for the open-app button on tablet and phone, and the matching QR on desktop.\"},downloadButtonLabel:{type:ControlType.String,title:\"Store Label\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.downloadButtonLabel,placeholder:\"e.g. Download the app\",description:\"Label for the store button on tablet and phone, and the matching QR on desktop.\"},showOpenAppButton:{type:ControlType.Boolean,title:\"Open App Button\",enabledTitle:\"Shown\",disabledTitle:\"Hidden\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.showOpenAppButton,description:\"Show the open-in-app action: a QR on desktop, a button on tablet and phone.\"},showDownloadButton:{type:ControlType.Boolean,title:\"Store Button\",enabledTitle:\"Shown\",disabledTitle:\"Hidden\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.showDownloadButton,description:\"Show the download action: a QR on desktop, a button on tablet and phone.\"},fallbackLink:{type:ControlType.Link,title:\"Fallback Link\",description:\"Used when the URL has no share ID, and encoded by the desktop download QR.\"},openAppCtaId:{type:ControlType.TrackingId,title:\"Open App Tracking\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.openAppCtaId,placeholder:\"ID\",description:\"Tracking ID for the open-in-app button. Lowercase, hyphen-separated.\"},downloadCtaId:{type:ControlType.TrackingId,title:\"Store Tracking\",defaultValue:APP_LINK_HANDOFF_DEFAULTS.downloadCtaId,placeholder:\"ID\",description:\"Tracking ID for the app store button. Lowercase, hyphen-separated.\"}};function getQrPlateRadius(breakpoint){if(breakpoint===\"phone\")return Tokens.getRadius(\"radius-xxl\");if(breakpoint===\"tablet\")return Tokens.getRadius(\"radius-3xl\");return Tokens.getRadius(\"radius-4xl\");}function AppLinkQrPlate({breakpoint,url,label,kind,logoVariant,textColor}){const qrSize=Tokens.getLayoutSizeValue(\"qr-code\");const accessibilityStrings=useAccessibilityStrings();return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:getGap(\"sm\",breakpoint),width:\"fit-content\",maxWidth:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{\"data-qr-url\":url,\"data-qr-kind\":kind,style:{background:Tokens.getColorValue(\"/Backgrounds/bg-white\"),display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",flexShrink:0,width:\"fit-content\",borderRadius:getQrPlateRadius(breakpoint),padding:Tokens.getResponsiveSpacing(24,breakpoint)},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",width:qrSize,height:qrSize,flexShrink:0},children:/*#__PURE__*/_jsx(QRCode,{value:url,size:Tokens.getLayoutSize(\"qr-code\"),logoVariant:logoVariant,ariaLabel:accessibilityStrings.qrCodeScanToOpen(logoVariant)})})}),/*#__PURE__*/_jsx(\"p\",{style:{...Tokens.getTypographyStyles(\"/Body SM/Heavy\",breakpoint),color:textColor,margin:0,textAlign:\"center\",maxWidth:\"100%\"},children:label})]});}export const AppLinkHandoff=function AppLinkHandoff({breakpoint,showQr,theme,brand,logoVariant,buttonVariant,linkMode=APP_LINK_HANDOFF_DEFAULTS.linkMode,openAppButtonLabel=APP_LINK_HANDOFF_DEFAULTS.openAppButtonLabel,downloadButtonLabel=APP_LINK_HANDOFF_DEFAULTS.downloadButtonLabel,showOpenAppButton=APP_LINK_HANDOFF_DEFAULTS.showOpenAppButton,showDownloadButton=APP_LINK_HANDOFF_DEFAULTS.showDownloadButton,fallbackLink,openAppCtaId=APP_LINK_HANDOFF_DEFAULTS.openAppCtaId,downloadCtaId=APP_LINK_HANDOFF_DEFAULTS.downloadCtaId}){const resolvedFallbackLink=getLinkUrl(fallbackLink).trim()||APP_LINK_HANDOFF_DEFAULTS.fallbackLink;const{qrUrl,downloadQrUrl,resolveOpenAppUrl,resolveStoreUrl}=useTricountAppLink({sharePathPrefix:SHARE_PATH_PREFIX_BY_MODE[linkMode],desktopFallbackUrl:resolvedFallbackLink,fallbackShareUrl:resolvedFallbackLink});const colors=getThemeColors(theme,brand);const navigateTo=useCallback(url=>{if(typeof window===\"undefined\"||!url)return;window.location.href=url;},[]);const handleOpenAppClick=useCallback(event=>{event.preventDefault();pushDataLayerEvent({event:OPEN_APP_EVENT_BY_MODE[linkMode],cta_id:openAppCtaId});navigateTo(resolveOpenAppUrl());},[linkMode,navigateTo,openAppCtaId,resolveOpenAppUrl]);const handleDownloadClick=useCallback(event=>{event.preventDefault();const storeUrl=resolveStoreUrl();pushDataLayerEvent({event:STORE_EVENT,cta_id:downloadCtaId,destination_host:getUrlHost(storeUrl)});navigateTo(storeUrl);},[downloadCtaId,navigateTo,resolveStoreUrl]);if(showQr){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",alignItems:\"flex-start\",gap:getGap(\"lg\",breakpoint),width:\"100%\",maxWidth:\"100%\"},children:[showDownloadButton?/*#__PURE__*/_jsx(AppLinkQrPlate,{breakpoint:breakpoint,url:downloadQrUrl,label:downloadButtonLabel,kind:\"download\",logoVariant:logoVariant,textColor:colors.textPrimary}):null,showOpenAppButton?/*#__PURE__*/_jsx(AppLinkQrPlate,{breakpoint:breakpoint,url:qrUrl,label:openAppButtonLabel,kind:\"open\",logoVariant:logoVariant,textColor:colors.textPrimary}):null]});}const sharedButtonProps={breakpoint,theme,brand,size:\"large\",link:resolvedFallbackLink,analyticsLocation:\"app-link\",widthMode:\"responsive\",style:{maxWidth:\"100%\"}};return /*#__PURE__*/_jsxs(_Fragment,{children:[showDownloadButton?/*#__PURE__*/_jsx(Button,{...sharedButtonProps,variant:buttonVariant,label:downloadButtonLabel,onClick:handleDownloadClick,id:downloadCtaId,trackingId:downloadCtaId}):null,showOpenAppButton?/*#__PURE__*/_jsx(Button,{...sharedButtonProps,variant:showDownloadButton?resolveTricountOnSurfaceButtonVariant(brand,theme,\"section\",\"outline\"):buttonVariant,label:openAppButtonLabel,onClick:handleOpenAppClick,id:openAppCtaId,trackingId:openAppCtaId}):null]});};\nexport const __FramerMetadata__ = {\"exports\":{\"AppLinkHandoffRenderProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AppLinkHandoffMode\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"appLinkHandoffPropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AppLinkHandoff\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AppLinkHandoffProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"APP_LINK_HANDOFF_DEFAULTS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import Tokens from\"https://framerusercontent.com/modules/qUEnAktcSZIPkdLrqL6F/T9ZAQm8H3xj36AVQ2exs/index.js\";import{getSectionStyles,getContainerStyles,getGap,getCopyStackGap,getCopyToCtaMarginTop,HERO_MIN_HEIGHT,getSectionPaddingTopWithSectionAndNav,getSectionPaddingTopWithHalfSectionAndNav}from\"https://framerusercontent.com/modules/xa02n637G4bDG995CgZR/NJ3C3UIGy1ZKOMJxgiY4/layoutStyles.js\";import{getSectionContentStackStyle,getSectionRootBackgroundStyle}from\"https://framerusercontent.com/modules/0ZalNh3QeqrMBpkAmxF7/7IhY1JkD9fmireGM1yVY/sectionBackground.js\";export function buildSectionHeaderAppLinkStyles(options){const{breakpoint,isCanvasPhone,brand,colors,sectionBgColor,isGradient,hasVisual,useMontserrat,style}=options;const headingColor=colors.textPrimary;const bodyColor=colors.textSecondary;return{section:{...getSectionRootBackgroundStyle({useMontserrat,brand}),...getSectionStyles(breakpoint),backgroundColor:sectionBgColor,minHeight:HERO_MIN_HEIGHT,display:\"flex\",flexDirection:\"column\",justifyContent:isCanvasPhone?\"flex-start\":\"center\",...style,paddingTop:isCanvasPhone?getSectionPaddingTopWithHalfSectionAndNav(\"phone\"):getSectionPaddingTopWithSectionAndNav(breakpoint)},container:{...getContainerStyles(breakpoint),...getSectionContentStackStyle(isGradient)},grid:{display:\"grid\",gridTemplateColumns:hasVisual&&!isCanvasPhone?\"1fr 1fr\":\"1fr\",gap:getGap(\"xl\",breakpoint),alignItems:\"center\",width:\"100%\",minWidth:0},copyStack:{display:\"flex\",flexDirection:\"column\",gap:getCopyStackGap(breakpoint),alignItems:\"flex-start\",width:\"100%\",minWidth:0},ctaStack:{display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",gap:getGap(\"md\",breakpoint),width:isCanvasPhone||breakpoint===\"phone\"?\"100%\":\"fit-content\",maxWidth:\"100%\",marginTop:getCopyToCtaMarginTop(breakpoint)},heading:{...Tokens.getTypographyStyles(\"/Headline 3XL/Heavy\",breakpoint),color:headingColor,margin:0,maxWidth:\"100%\",overflowWrap:\"break-word\"},description:{...Tokens.getTypographyStyles(\"/Subheadline/MD\",breakpoint),color:bodyColor,margin:0,maxWidth:\"100%\",overflowWrap:\"break-word\"},visualColumn:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...isCanvasPhone?{order:2}:{}}};}\nexport const __FramerMetadata__ = {\"exports\":{\"SectionHeaderAppLinkStyleOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SectionHeaderAppLinkStyles\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildSectionHeaderAppLinkStyles\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 1280\n * @framerIntrinsicHeight 720\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useRef,useId}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{themePropertyControls,resolveThemeProp}from\"https://framerusercontent.com/modules/5WgsjBO1A8BiShdO0B9C/r0GYDtytq52p0xC4TfQT/themeControl.js\";import{FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN}from\"https://framerusercontent.com/modules/vkQqDtKpdgUyOodxbyn3/QbeDbzhxh6tG2UebUJz9/propertyControlCopy.js\";import{resolveScopedElementId,resolveSectionIdPrefix}from\"https://framerusercontent.com/modules/bFAikoP0bZBNR0dz0Nob/K8fXMpjwkPlcBdRVKxua/resolveElementId.js\";import{useReducedMotion,useEffectiveBreakpoint,useHeroLcpImageLoading,isCanvasNarrowBreakpoint,isCanvasPhoneBreakpoint,kernHeadingPlainText,getSplitMediaImageSizes,getStagger}from\"https://framerusercontent.com/modules/zb8SeFEAitsE3Aq1tolb/YK4ocMSjaFvw3eNdM4Oq/colors.js\";import{getThemeColors,resolveBrand}from\"https://framerusercontent.com/modules/7NSJeaeou9P0OpUE6qK4/XRbqGP40JEHgVMuwAne5/themeHelpers.js\";import{getSectionWrapperStyles}from\"https://framerusercontent.com/modules/xa02n637G4bDG995CgZR/NJ3C3UIGy1ZKOMJxgiY4/layoutStyles.js\";import{getSectionBackgroundFromProps,sectionBackgroundPropertyControls}from\"https://framerusercontent.com/modules/0ZalNh3QeqrMBpkAmxF7/7IhY1JkD9fmireGM1yVY/sectionBackground.js\";import{getSectionRestProps}from\"https://framerusercontent.com/modules/uvO2ohuvOPR5Ui14I5Qd/Z4jZo5HpTJkHkTwZtq64/sectionProps.js\";import{pickBrandButtonVariant,resolveTricountOnSurfaceButtonVariant,sectionButtonVariantControls}from\"https://framerusercontent.com/modules/jziVWOV3BxFa7do866W6/Bsfuff20ISxi0EXKudbL/buttonStyles.js\";import{PLACEHOLDER}from\"https://framerusercontent.com/modules/Ofb8HIOrjDJzDnc7Hhv7/0qsXurX65R9FsP2ETUWG/placeholders.js\";import{useSectionAnimation}from\"https://framerusercontent.com/modules/Qy1UTsYstiw1InuUy2DL/9MgNtVsL3JaRDCPa83gi/useSectionAnimation.js\";import{createSectionVariantsWithImage}from\"https://framerusercontent.com/modules/V5PCnPVPAhj4T9P8FDbD/sNknlAq3tEIPgVvzjbwt/motionVariants.js\";import{PRESERVE_CONTROL_NEWLINES}from\"https://framerusercontent.com/modules/D7kD09cJxhmMa4nvElc6/psb1oiRQB14isAy5HEyx/controlTextStyles.js\";import{AppLinkHandoff,appLinkHandoffPropertyControls}from\"https://framerusercontent.com/modules/9pFM7kIXxwnXkC6pQTf1/jujdwdubgo3n34UxoUob/appLinkHandoff.js\";import{buildSectionHeaderAppLinkStyles}from\"https://framerusercontent.com/modules/OLeX3VHUKNffRipaO66Z/3AO6RxN1V0vq92J6cwJU/sectionHeaderAppLinkStyles.js\";import Image from\"https://framerusercontent.com/modules/ZtFuyReIXzHqgduEwUZW/M2KJ5UuAJr3oZJ2It3YW/Image.js\";const SectionHeaderAppLinkInternal=/*#__PURE__*/forwardRef(function SectionHeaderAppLinkInternal(props,ref){const theme=resolveThemeProp(props);const{breakpoint:breakpointProp=\"desktop\",heading=PLACEHOLDER.PAGE_HEADING,description=PLACEHOLDER.DESCRIPTION,visualImage,visualImageAlt=\"tricount app\",lcpPriority=true,buttonVariant=\"solid\",buttonVariantTricount=\"solid\",openAppCtaId,downloadCtaId,sectionId,backgroundVariant=\"primary\",backgroundPreset=\"Rainbow\",brand,backgroundEnabled,backgroundGradientBrand,backgroundPresetTricount,backgroundOverlayDirection=\"top-color-bottom-neutral\",backgroundShowOverlay=true,useMontserrat=false,style,children,linkMode,openAppButtonLabel,downloadButtonLabel,showOpenAppButton,showDownloadButton,fallbackLink,...rest}=props;const{sectionRef,sectionRefObject,animate}=useSectionAnimation(ref);const breakpoint=useEffectiveBreakpoint(breakpointProp,sectionRefObject);const{priority:visualPriority,loading:visualLoading,preloadMedia:visualPreloadMedia}=useHeroLcpImageLoading(lcpPriority,breakpointProp);const colors=getThemeColors(theme,brand??backgroundGradientBrand);const{sectionBgColor,isGradient,backgroundLayer}=getSectionBackgroundFromProps({theme,backgroundVariant,backgroundPreset,brand,backgroundEnabled,backgroundGradientBrand,backgroundPresetTricount,backgroundOverlayDirection,backgroundShowOverlay,colors});const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const componentId=useId();const headingId=useId();const resolvedBrand=resolveBrand(brand??backgroundGradientBrand);const resolvedButtonVariant=resolveTricountOnSurfaceButtonVariant(resolvedBrand,theme,\"section\",pickBrandButtonVariant(resolvedBrand,buttonVariant,buttonVariantTricount,theme));const resolvedSectionId=resolveSectionIdPrefix(sectionId,componentId,\"section-header-app-link\");const isCanvasPhone=isCanvasPhoneBreakpoint(breakpointProp);const hasVisual=Boolean(visualImage?.src);const styles=buildSectionHeaderAppLinkStyles({breakpoint,isCanvasPhone,theme,brand:brand??backgroundGradientBrand,colors,sectionBgColor,isGradient,hasVisual,useMontserrat,style});const{container:containerVariants,item:itemVariants,image:imageVariants}=createSectionVariantsWithImage(reducedMotion,{stagger:getStagger(\"loose\")});return /*#__PURE__*/_jsxs(motion.section,{ref:sectionRef,style:styles.section,id:resolvedSectionId,\"aria-labelledby\":headingId,initial:isStaticRenderer?\"visible\":animate===\"visible\"?false:\"hidden\",animate:isStaticRenderer?\"visible\":animate,variants:containerVariants,...getSectionRestProps(rest),children:[backgroundLayer,/*#__PURE__*/_jsx(\"div\",{style:styles.container,children:/*#__PURE__*/_jsxs(\"div\",{style:styles.grid,children:[/*#__PURE__*/_jsxs(motion.div,{style:{minWidth:0,width:\"100%\"},variants:itemVariants,children:[/*#__PURE__*/_jsxs(motion.div,{style:styles.copyStack,variants:itemVariants,children:[/*#__PURE__*/_jsx(motion.h1,{id:headingId,style:{...styles.heading,...PRESERVE_CONTROL_NEWLINES},variants:itemVariants,children:kernHeadingPlainText(heading)}),description?/*#__PURE__*/_jsx(motion.p,{style:{...styles.description,...PRESERVE_CONTROL_NEWLINES},variants:itemVariants,children:description}):null]}),/*#__PURE__*/_jsx(motion.div,{style:styles.ctaStack,variants:itemVariants,children:/*#__PURE__*/_jsx(AppLinkHandoff,{breakpoint:breakpoint,showQr:!isCanvasNarrowBreakpoint(breakpointProp),theme:theme,brand:brand??backgroundGradientBrand,logoVariant:resolvedBrand,buttonVariant:resolvedButtonVariant,linkMode:linkMode,openAppButtonLabel:openAppButtonLabel,downloadButtonLabel:downloadButtonLabel,showOpenAppButton:showOpenAppButton,showDownloadButton:showDownloadButton,fallbackLink:fallbackLink,openAppCtaId:resolveScopedElementId(openAppCtaId,\"cta-open-app\",resolvedSectionId,\"cta-open-app\"),downloadCtaId:resolveScopedElementId(downloadCtaId,\"cta-download-app\",resolvedSectionId,\"cta-download-app\")})}),children]}),hasVisual?/*#__PURE__*/_jsx(motion.div,{style:styles.visualColumn,variants:imageVariants,children:/*#__PURE__*/_jsx(Image,{id:`${resolvedSectionId}-visual`,imageUrl:visualImage,alt:visualImage?.alt??visualImageAlt,breakpoint:breakpointProp,aspectRatio:\"1:1\",objectFit:\"contain\",objectPosition:\"center\",overflow:\"hidden\",loading:lcpPriority?visualLoading:\"lazy\",priority:visualPriority,preloadMedia:visualPreloadMedia,sizes:getSplitMediaImageSizes(breakpointProp),style:{width:\"100%\",height:\"100%\",aspectRatio:\"1/1\"}})}):null]})})]});});export default function SectionHeaderAppLink(props){const ref=useRef(null);const breakpoint=useEffectiveBreakpoint(props.breakpoint??\"desktop\");return /*#__PURE__*/_jsx(\"div\",{style:{...getSectionWrapperStyles(breakpoint),...props.style},children:/*#__PURE__*/_jsx(SectionHeaderAppLinkInternal,{...props,ref:ref})});}SectionHeaderAppLink.displayName=\"Section Header App Link - Organism\";addPropertyControls(SectionHeaderAppLink,{heading:{type:ControlType.String,title:\"Headline\",defaultValue:PLACEHOLDER.PAGE_HEADING,placeholder:\"e.g. Welcome to tricount!\",description:\"Main heading text for the section.\",displayTextArea:true},description:{type:ControlType.String,title:\"Subheadline\",defaultValue:PLACEHOLDER.DESCRIPTION,placeholder:\"One or two sentences describing the next step\",description:\"Supporting copy. Desktop explains the QR codes; tablet and phone explain the buttons.\",displayTextArea:true},...appLinkHandoffPropertyControls,visualImage:{type:ControlType.ResponsiveImage,title:\"Visual\",description:\"Optional square visual beside the copy. Leave empty to let the copy span the full width.\"},visualImageAlt:{type:ControlType.String,title:\"Visual Alt\",defaultValue:\"tricount app\",placeholder:\"Describe the visual...\",description:\"Accessible description of the visual. Framer's own alt text wins when set.\",hidden:({visualImage})=>!visualImage?.src},lcpPriority:{type:ControlType.Boolean,title:\"LCP Priority\",defaultValue:true,enabledTitle:\"High\",disabledTitle:\"Default\",description:\"Preloads the visual and sets fetchpriority=high on the visible breakpoint only. Keep on when this is the page hero; turn off when the section sits lower on the page.\",hidden:({visualImage})=>!visualImage?.src},...sectionButtonVariantControls({title:\"Button Variant\",bunqDefault:\"solid\"}),...sectionBackgroundPropertyControls({variantDefault:\"primary\",presetDefault:\"Rainbow\",overlayDirectionDefault:\"top-color-bottom-neutral\"}),sectionId:{type:ControlType.String,title:\"Section ID\",defaultValue:\"section-header-app-link\",placeholder:\"e.g. section-name\",description:\"HTML id for the section element. Used for anchor links and page navigation.\",preventLocalization:true},breakpoint:{type:ControlType.Enum,title:\"Breakpoint\",options:[\"desktop\",\"tablet\",\"phone\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],defaultValue:\"desktop\",description:\"Select the breakpoint to match Framer's canvas.\"},...themePropertyControls(FRAMER_THEME_DESCRIPTION_SURFACE_WITH_CHILDREN)});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionHeaderAppLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Breakpoint\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SectionHeaderAppLinkProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,i9BAAonB,SAASwF,EAAe,EAAK,CAAC,GAAG,CAACC,EAAK,OAAO,KAAK,GAAG,CAAC,OAAO,IAAI,IAAIA,CAAI,CAAE,MAAM,CAAC,OAAO,IAAK,CAAC,CAAC,SAAgBC,GAA2B,EAAK,CAAC,IAAMC,EAAIH,EAAeC,CAAI,EAAkF,OAA5EE,GAA4BA,EAAI,SAAS,YAAY,CAAC,CAAC,QAAQ,SAAS,EAAc,IAAA,eAA6B,aAAzG,MAA6H,CAAC,SAAgBC,EAA0B,EAAK,CAAC,IAAMD,EAAIH,EAAeC,CAAI,EAAE,GAAG,CAACE,EAAI,OAAO,KAAK,IAAME,EAAUF,EAAI,aAAa,IAAIG,EAAuB,EAAE,GAAGD,GAAWE,EAAiB,KAAKF,CAAS,EAAG,OAAOA,EAAW,IAAMG,EAASL,EAAI,SAAS,MAAM,GAAG,CAAC,CAAC,OAAO,GAASM,IAAU,EAAE,EAAMC,EAAM,EAAKF,EAASE,KAAS,IAAA,IAAWC,EAAuB,KAAKH,EAASE,EAAM,IAAG,GAAO,GAAMF,EAASE,KAASE,IAAkB,GAAO,GAAG,IAAMC,EAAUL,EAASE,GAA8H,OAApHG,IAAY,IAAA,IAAWL,EAAS,OAAOE,EAAM,GAAmBG,IAAYC,EAAkC,KAAaP,EAAiB,KAAKM,CAAS,EAAEA,EAAU,IAAK,CAAC,SAAgBE,GAA+B,EAAK,CAAC,IAAMZ,EAAIH,EAAeC,CAAI,EAAE,GAAG,CAACE,EAAI,MAAO,GAAM,IAAMK,EAASL,EAAI,SAAS,MAAM,GAAG,CAAC,CAAC,OAAO,GAASM,IAAU,EAAE,EAAMC,EAAM,EAA0F,OAArFF,EAASE,KAAS,IAAA,IAAWC,EAAuB,KA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