{"version":3,"file":"AICircleChapterPhotosStart.CCh36uGA.mjs","names":["useMarqueeDuration","React.useRef","React.useState","PHOTOS","CSS","React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/oPF7xmHXrDbiYtQgxnIE/s0Y2wIl6Xtl8a1gqyr54/AICircleChapterPhotosEnd.js","https:/framerusercontent.com/modules/nu3pm3ndnoDzUiGXcVHn/i1gy9Kd4t7LpuaXqW9qS/AICircleChapterPhotosStart.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useMarqueeDuration(pxPerSecond){const ref=React.useRef(null);const[dur,setDur]=React.useState(60);React.useEffect(()=>{const el=ref.current;if(!el)return;const calc=()=>{const half=el.scrollWidth/2;if(half>0)setDur(Math.max(4,half/Math.max(5,pxPerSecond)));};calc();const ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(calc):null;ro?.observe(el);const imgs=Array.from(el.querySelectorAll(\"img\"));imgs.forEach(i=>i.addEventListener(\"load\",calc));const timers=[250,800,1600,3e3,6e3].map(ms=>window.setTimeout(calc,ms));window.addEventListener(\"load\",calc);return()=>{ro?.disconnect();imgs.forEach(i=>i.removeEventListener(\"load\",calc));timers.forEach(clearTimeout);window.removeEventListener(\"load\",calc);};},[pxPerSecond]);return{ref,dur};}const PHOTOS=[{\"url\":\"https://framerusercontent.com/images/e3dOzYFkv5W1ROk1MZVKvzHQo0.jpg\",\"alt\":\"AI Circle members laughing together\"},{\"url\":\"https://framerusercontent.com/images/nEh2aKqiOB9AzhNIggSgjON8mLw.jpg\",\"alt\":\"AI Circle San Francisco chapter conversation\"},{\"url\":\"https://framerusercontent.com/images/4dMsGQpdNWcUJT7IkqtRcsXGZU.jpg\",\"alt\":\"AI Circle poker night mixer\"},{\"url\":\"https://framerusercontent.com/images/ZKQ5pHXX2BIui9IBoMWGx1jM.jpg\",\"alt\":\"AI Circle members networking\"},{\"url\":\"https://framerusercontent.com/images/rMWalVI6Dl9oFA4d8p58LsaBVM.jpg\",\"alt\":\"AI Circle at MACHINA conference stage\"},{\"url\":\"https://framerusercontent.com/images/UI5x5PD1uzdOTUe700pr5iJCoQ.jpg\",\"alt\":\"AI Circle San Francisco chapter group\"}];const CSS=String.raw`\n.aic-photo-row { width: 100%; overflow: hidden; position: relative; }\n.aic-photo-row .track {\n    display: inline-flex;\n    align-items: center;\n    width: max-content;\n    animation: aicpr-scroll var(--aicpr-duration, 45s) linear infinite;\n    will-change: transform;\n}\n.aic-photo-row.rev .track { animation-direction: reverse; }\n.aic-photo-row:hover .track { animation-play-state: paused; }\n@keyframes aicpr-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }\n.aic-photo-row img { margin-right: 14px; height: 190px; width: auto; border-radius: 10px; display: block; flex-shrink: 0; object-fit: cover; }\n.aic-photo-row .fade { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }\n.aic-photo-row .fade.l { left: 0; background: linear-gradient(90deg, var(--aicpr-bg) 0%, transparent 100%); }\n.aic-photo-row .fade.r { right: 0; background: linear-gradient(270deg, var(--aicpr-bg) 0%, transparent 100%); }\n@media (max-width: 810px) { .aic-photo-row img { height: 130px; } }\n@media (prefers-reduced-motion: reduce) { .aic-photo-row .track { animation: none; } }\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function AICircleChapterPhotosEnd(props){const{speed=45,background=\"#000000\",reverse=false,pxPerSecond=48,style}=props;const{ref:trackRef,dur}=useMarqueeDuration(pxPerSecond);const doubled=[...PHOTOS,...PHOTOS];return /*#__PURE__*/_jsxs(\"div\",{className:\"aic-photo-row\"+(reverse?\" rev\":\"\"),style:{...style,background,\"--aicpr-bg\":background,\"--aicpr-duration\":dur+\"s\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"fade l\"}),/*#__PURE__*/_jsx(\"div\",{className:\"fade r\"}),/*#__PURE__*/_jsx(\"div\",{className:\"track\",ref:trackRef,children:doubled.map((p,i)=>/*#__PURE__*/_jsx(\"img\",{src:p.url,alt:p.alt,loading:\"lazy\"},i))})]});}addPropertyControls(AICircleChapterPhotosEnd,{pxPerSecond:{type:ControlType.Number,title:\"Speed (px/s)\",min:10,max:200,defaultValue:48},speed:{type:ControlType.Number,title:\"Loop (s)\",min:10,max:120,defaultValue:45},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},reverse:{type:ControlType.Boolean,title:\"Reverse\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AICircleChapterPhotosEnd\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AICircleChapterPhotosEnd.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useMarqueeDuration(pxPerSecond){const ref=React.useRef(null);const[dur,setDur]=React.useState(60);React.useEffect(()=>{const el=ref.current;if(!el)return;const calc=()=>{const half=el.scrollWidth/2;if(half>0)setDur(Math.max(4,half/Math.max(5,pxPerSecond)));};calc();const ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(calc):null;ro?.observe(el);const imgs=Array.from(el.querySelectorAll(\"img\"));imgs.forEach(i=>i.addEventListener(\"load\",calc));const timers=[250,800,1600,3e3,6e3].map(ms=>window.setTimeout(calc,ms));window.addEventListener(\"load\",calc);return()=>{ro?.disconnect();imgs.forEach(i=>i.removeEventListener(\"load\",calc));timers.forEach(clearTimeout);window.removeEventListener(\"load\",calc);};},[pxPerSecond]);return{ref,dur};}const PHOTOS=[{\"url\":\"https://framerusercontent.com/images/Y5cmCmX36saPGviqK7ZeknlVRk.jpg\",\"alt\":\"AI Circle members connecting over drinks\"},{\"url\":\"https://framerusercontent.com/images/FoIc75mT7INYRbqpkL50J3ycGw.jpg\",\"alt\":\"AI Circle San Francisco chapter mixer\"},{\"url\":\"https://framerusercontent.com/images/HaLgOFEpFS2fmAqZ6g14Jeg.jpg\",\"alt\":\"AI Circle Paris chapter dinner by candlelight\"},{\"url\":\"https://framerusercontent.com/images/4sYLRSIFzeZJmKrbf9BJ13c5DiA.jpg\",\"alt\":\"AI Circle members in conversation\"},{\"url\":\"https://framerusercontent.com/images/Qr8STNUzkVZk3srlAdnqhh68JH4.jpg\",\"alt\":\"AI Circle interview at a member event\"},{\"url\":\"https://framerusercontent.com/images/LylmoRJCVNkk5KYiSIunmMUR8.jpg\",\"alt\":\"AI Circle members at a daytime gathering\"}];const CSS=String.raw`\n.aic-photo-row { width: 100%; overflow: hidden; position: relative; }\n.aic-photo-row .track {\n    display: inline-flex;\n    align-items: center;\n    width: max-content;\n    animation: aicpr-scroll var(--aicpr-duration, 45s) linear infinite;\n    will-change: transform;\n}\n.aic-photo-row.rev .track { animation-direction: reverse; }\n.aic-photo-row:hover .track { animation-play-state: paused; }\n@keyframes aicpr-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }\n.aic-photo-row img { margin-right: 14px; height: 190px; width: auto; border-radius: 10px; display: block; flex-shrink: 0; object-fit: cover; }\n.aic-photo-row .fade { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }\n.aic-photo-row .fade.l { left: 0; background: linear-gradient(90deg, var(--aicpr-bg) 0%, transparent 100%); }\n.aic-photo-row .fade.r { right: 0; background: linear-gradient(270deg, var(--aicpr-bg) 0%, transparent 100%); }\n@media (max-width: 810px) { .aic-photo-row img { height: 130px; } }\n@media (prefers-reduced-motion: reduce) { .aic-photo-row .track { animation: none; } }\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function AICircleChapterPhotosStart(props){const{speed=45,background=\"#000000\",reverse=false,pxPerSecond=48,style}=props;const{ref:trackRef,dur}=useMarqueeDuration(pxPerSecond);const doubled=[...PHOTOS,...PHOTOS];return /*#__PURE__*/_jsxs(\"div\",{className:\"aic-photo-row\"+(reverse?\" rev\":\"\"),style:{...style,background,\"--aicpr-bg\":background,\"--aicpr-duration\":dur+\"s\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"fade l\"}),/*#__PURE__*/_jsx(\"div\",{className:\"fade r\"}),/*#__PURE__*/_jsx(\"div\",{className:\"track\",ref:trackRef,children:doubled.map((p,i)=>/*#__PURE__*/_jsx(\"img\",{src:p.url,alt:p.alt,loading:\"lazy\"},i))})]});}addPropertyControls(AICircleChapterPhotosStart,{pxPerSecond:{type:ControlType.Number,title:\"Speed (px/s)\",min:10,max:200,defaultValue:48},speed:{type:ControlType.Number,title:\"Loop (s)\",min:10,max:120,defaultValue:45},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},reverse:{type:ControlType.Boolean,title:\"Reverse\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AICircleChapterPhotosStart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AICircleChapterPhotosStart.map"],"mappings":"6MAAyI,SAASA,EAAmB,EAAY,CAAC,IAAM,EAAIC,EAAa,IAAI,EAAO,CAAC,EAAI,GAAQC,EAAe,EAAE,EAA6nB,OAA3nB,MAAoB,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,MAAS,CAAC,IAAM,EAAK,EAAG,YAAY,EAAK,EAAK,GAAE,EAAO,KAAK,IAAI,EAAE,EAAK,KAAK,IAAI,EAAE,C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