{"version":3,"file":"ButtonVideoPlay.C85mEDoM.mjs","names":["useMemo","useId","_Fragment","__esmMin","init_npm_react_18_3_1","pe","ie","l","p","J","init_jsx_runtime","init_framer_D6uXRwWs","addPropertyControls","ControlType","LiquidGlassSurface","themePropertyControls","getSpacing","init_useAccessibilityStrings","init_colors","init_themeControl","useAccessibilityStrings","getOpacity","getRadius","useReducedMotion","getTransition","init_useInteractiveStates","useInteractiveStates","brandPropertyControl","resolveThemeProp","init_brandControl","breakpointPropertyControl","getBrightnessFilter","init_themeHelpers","init_LiquidGlassSurface","getFocusOutlineWidth","getThemeColors","resolveBrand","getBrandFocusColor","init_breakpointControl","getColorValue","colorToRgb","ButtonVideoPlay","rest","props","ButtonVideoPlayInternal","MIN_TOUCH_TARGET","LEGACY_DEFAULT_ARIA_LABELS","SIZE_MAP","playButtonCircleColor","playButtonTriangleColor","PLAY_ICON","PAUSE_ICON","ICON_LAYER_STYLE","init_ButtonVideoPlay","theme","ariaLabelProp","idProp","resolvedBrand","brand","focusColor","isTricount","tricountSurfaceColors","buttonSize","size","breakpoint","reactId","scopeId","reducedMotion","strings","variantDefaultAriaLabel","variant","trimmedAriaLabel","isLegacyDefaultAriaLabel","resolvedAriaLabel","buttonStyle","isHovered","isPressed","style","glassLayerStyle","css","handlers"],"sources":["https:/framerusercontent.com/modules/CwKNFFKErfkyfMwQLtKr/3GDlhKcJaTQooNTkIkWt/ButtonVideoPlay.js"],"sourcesContent":["/**\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 48\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useId,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useReducedMotion,colorToRgb,getColorValue,getOpacity,getSpacing,getRadius,getBrightnessFilter,getTransition,getFocusOutlineWidth}from\"https://framerusercontent.com/modules/8Zji6gUHadeLlN0mKx3f/JBNlOEOGCerb8iTZamM8/colors.js\";import LiquidGlassSurface from\"https://framerusercontent.com/modules/qaUBTS0w6bS14m3fO3Sq/bao82biwTNv7LL69G7Y4/LiquidGlassSurface.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/h3NOSmne29xK0GpczE2C/hzq8Ydb7YQkaxaWkeziN/useInteractiveStates.js\";import{useAccessibilityStrings}from\"https://framerusercontent.com/modules/f8mrLCEGT00dmU5pCe8N/eYpNRXBcb0Dlrj6Lbgy4/useAccessibilityStrings.js\";import{getBrandFocusColor,getThemeColors,resolveBrand}from\"https://framerusercontent.com/modules/fF40Dj0DuNtMWi6XblPF/5dRqb00W5X8L4aoll9bF/themeHelpers.js\";import{breakpointPropertyControl}from\"https://framerusercontent.com/modules/Fk2t5Uqez4vSxN8Kkr0t/np8YWBjz2ODSW8OUB3sM/breakpointControl.js\";import{brandPropertyControl,themePropertyControls}from\"https://framerusercontent.com/modules/6fLGaxLId8P57R07yoYq/JviRce2bBZtj3w1Ppgaf/brandControl.js\";import{resolveThemeProp}from\"https://framerusercontent.com/modules/39r6SIsK3yJ8CSFGq0EK/vyCWOhHOgeo2ZcD59cd7/themeControl.js\";const MIN_TOUCH_TARGET=44;const LEGACY_DEFAULT_ARIA_LABELS=[\"play video\",\"pause video\"];const SIZE_MAP={small:{desktop:48,tablet:44,phone:44},medium:{desktop:80,tablet:64,phone:48},large:{desktop:96,tablet:80,phone:64}};const playButtonCircleColor=`rgba(${colorToRgb(getColorValue(\"/Utility colors/utility-white\"))}, ${getOpacity(\"disabledMedium\")})`;const playButtonTriangleColor=getColorValue(\"/Text/text-inverted-primary\");const PLAY_ICON=/*#__PURE__*/_jsxs(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:playButtonCircleColor}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 7L17 12L9 17V7Z\",fill:playButtonTriangleColor})]});const PAUSE_ICON=/*#__PURE__*/_jsxs(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:playButtonCircleColor}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 8h2v8H8V8zm6 0h2v8h-2V8z\",fill:playButtonTriangleColor})]});const ICON_LAYER_STYLE={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",pointerEvents:\"none\"};const ButtonVideoPlayInternal=/*#__PURE__*/forwardRef(function ButtonVideoPlayInternal(props,ref){const theme=resolveThemeProp(props);const{variant=\"play\",breakpoint=\"desktop\",size=\"medium\",brand,onClick,ariaLabel:ariaLabelProp=\"\",style,id:idProp}=props;const resolvedBrand=resolveBrand(brand);const focusColor=getBrandFocusColor(resolvedBrand);const isTricount=resolvedBrand===\"tricount\";const tricountSurfaceColors=useMemo(()=>getThemeColors(theme,resolvedBrand),[theme,resolvedBrand]);const buttonSize=getSpacing(Math.max(SIZE_MAP[size][breakpoint],MIN_TOUCH_TARGET));const reactId=useId();const scopeId=useMemo(()=>`btn-video-play-${reactId.replace(/:/g,\"\")}`,[reactId]);const reducedMotion=useReducedMotion();const{isHovered,isPressed,handlers}=useInteractiveStates(false);const strings=useAccessibilityStrings();const variantDefaultAriaLabel=variant===\"play\"?strings.playVideo:strings.pauseVideo;const trimmedAriaLabel=typeof ariaLabelProp===\"string\"?ariaLabelProp.trim():\"\";const isLegacyDefaultAriaLabel=LEGACY_DEFAULT_ARIA_LABELS.includes(trimmedAriaLabel.toLocaleLowerCase(\"en-US\"));const resolvedAriaLabel=trimmedAriaLabel&&!isLegacyDefaultAriaLabel?trimmedAriaLabel:variantDefaultAriaLabel;const buttonStyle=useMemo(()=>({width:buttonSize,height:buttonSize,border:\"none\",background:\"transparent\",borderRadius:getRadius(\"radius-full\"),padding:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",isolation:\"isolate\",overflow:\"hidden\",cursor:\"pointer\",filter:getBrightnessFilter(false,isHovered,isPressed),transition:reducedMotion?\"none\":getTransition(\"filter\",\"quick\"),...style}),[buttonSize,isHovered,isPressed,reducedMotion,style]);const glassLayerStyle=useMemo(()=>({position:\"absolute\",inset:0,zIndex:-1,borderRadius:\"50%\",overflow:\"hidden\",clipPath:\"circle(50% at 50% 50%)\",pointerEvents:\"none\"}),[]);const css=useMemo(()=>`\n.${scopeId}:focus { outline: none; }\n.${scopeId}:focus-visible { outline: ${getFocusOutlineWidth()} solid ${focusColor}; outline-offset: ${getSpacing(4)}; border-radius: 50%; }\n.${scopeId} svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(${colorToRgb(getColorValue(\"/Utility colors/utility-black\"))}, ${getOpacity(\"medium\")})); }\n`,[focusColor,scopeId]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsxs(\"button\",{ref:ref,type:\"button\",id:idProp,className:scopeId,style:buttonStyle,onClick:onClick,\"aria-label\":resolvedAriaLabel,...handlers,children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:glassLayerStyle,children:isTricount?/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,borderRadius:\"50%\",background:tricountSurfaceColors.bgTertiary,border:`1px solid ${tricountSurfaceColors.borderPrimary}`,boxSizing:\"border-box\"}}):/*#__PURE__*/_jsx(LiquidGlassSurface,{theme:theme,surface:\"surface\",radius:9999,mode:\"standard\",interactive:false})}),/*#__PURE__*/_jsx(\"span\",{style:ICON_LAYER_STYLE,children:variant===\"play\"?PLAY_ICON:PAUSE_ICON})]})]});});export default function ButtonVideoPlay(props){const{ref,...rest}=props;return /*#__PURE__*/_jsx(ButtonVideoPlayInternal,{...rest,ref:ref});}ButtonVideoPlay.displayName=\"Button Video Play - Atom\";addPropertyControls(ButtonVideoPlay,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"play\",\"pause\"],optionTitles:[\"Play\",\"Pause\"],displaySegmentedControl:true,defaultValue:\"play\",description:\"Choose Play for the thumbnail state, Pause while the clip is playing—swap with overrides or interactions to match actual playback.\"},size:{type:ControlType.Enum,title:\"Size\",options:[\"small\",\"medium\",\"large\"],optionTitles:[\"Small\",\"Medium\",\"Large\"],displaySegmentedControl:true,defaultValue:\"medium\",description:\"Use Large on hero video headers, Medium on feature blocks, Small on compact thumbnails or dense grids—the smallest preset still meets touch-target guidance on phone.\"},onClick:{type:ControlType.EventHandler,title:\"On Click\",description:\"Wire your play/pause or open-lightbox logic here. The control always exposes an accessible Play video / Pause video label in the page language.\"},ariaLabel:{type:ControlType.String,title:\"ARIA Label\",defaultValue:\"\",placeholder:\"e.g. Play video\",description:\"Accessible name for this icon-only control. Leave blank to use Play video / Pause video (from Variant) in the page language.\"},id:{type:ControlType.String,title:\"ID\",defaultValue:\"button-video-play\",placeholder:\"e.g. my-element\",description:\"Set a unique id when you link to this control or tag it for analytics; change it if you drop more than one play button on the same page.\",preventLocalization:true},...breakpointPropertyControl(\"Pick the breakpoint that matches Framer's preview so the circular size lines up with your video frame and overlay layout.\"),...themePropertyControls(\"Default matches dark overlays (standard bunq UI). Inverted is for light backgrounds—Safari/Firefox and reduced-motion users see the matching frosted-glass tint.\"),...brandPropertyControl()});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ButtonVideoPlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"ButtonVideoPlayProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,kcASyzB,SAAwByC,EAAgB,EAAM,CAAC,GAAK,CAAC,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