{"version":3,"file":"ReviewTicker.Bg2RebA2.mjs","names":["useRef","useMemo","__esmMin","init_ssg_sandbox_shims","window","de","init_jsx_runtime","pe","c","p","init_npm_react_18_3_1","useInView","motion","init_framer_motion_DhsWWWsN","init_framer_DDfsYcI0","useIsStaticRenderer","addPropertyControls","ControlType","ReviewTicker","props","rootRef","isInView","isStatic","prefersReduced","shouldReduce","reducedMotion","safeSnippets","incoming","snippets","item","DEFAULT_SNIPPETS","duration","speed","trackItems","surfaceColor","primaryColor","accentColor","mutedColor","index","separatorColor","init_ReviewTicker"],"sources":["https:/framerusercontent.com/modules/wYR5uhqVQcJ7duatAOlt/lr2xLoASelkaxWKnzMaC/ReviewTicker.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useMemo,useRef}from\"react\";import{motion,useInView}from\"framer-motion\";const DEFAULT_SNIPPETS=[{quote:\"Dismissal finally feels organized.\",attribution:\"School Administrator — Rabbi B.\"},{quote:\"Parents know exactly what to do.\",attribution:\"Head of School — Roberto\"},{quote:\"Our staff has much better visibility.\",attribution:\"Operations Team — Daniel C.\"},{quote:\"Pickup is easier to manage.\",attribution:\"School Director — Jason M.\"}];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ReviewTicker(props){const{snippets,speed,reducedMotion,primaryColor,mutedColor,accentColor,separatorColor,surfaceColor}=props;const rootRef=useRef(null);const isInView=useInView(rootRef,{amount:.2});const isStatic=useIsStaticRenderer();const prefersReduced=useMemo(()=>{if(typeof window===\"undefined\")return false;return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;},[]);const shouldReduce=reducedMotion||prefersReduced||isStatic||!isInView;const safeSnippets=useMemo(()=>{const incoming=snippets?.filter(item=>item&&typeof item.quote===\"string\"&&item.quote.trim().length>0&&typeof item.attribution===\"string\"&&item.attribution.trim().length>0);return incoming&&incoming.length>0?incoming:DEFAULT_SNIPPETS;},[snippets]);const duration=Math.max(10,speed);const trackItems=useMemo(()=>[...safeSnippets,...safeSnippets],[safeSnippets]);return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",minHeight:52,display:\"flex\",alignItems:\"center\",gap:14,overflow:\"hidden\",backgroundColor:surfaceColor,borderRadius:0,padding:\"10px 12px\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"center\",flexShrink:0,gap:3,minWidth:108},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:primaryColor,fontSize:16,fontWeight:700,lineHeight:1,letterSpacing:\"-0.01em\"},children:\"4.9\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:2,color:accentColor,fontSize:10,lineHeight:1},children:[/*#__PURE__*/_jsx(\"span\",{children:\"★\"}),/*#__PURE__*/_jsx(\"span\",{children:\"★\"}),/*#__PURE__*/_jsx(\"span\",{children:\"★\"}),/*#__PURE__*/_jsx(\"span\",{children:\"★\"}),/*#__PURE__*/_jsx(\"span\",{children:\"★\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{color:mutedColor,fontSize:11,lineHeight:1.2,whiteSpace:\"nowrap\"},children:\"School reviews\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",flex:1,height:\"100%\",overflow:\"hidden\",display:\"flex\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(motion.div,{animate:shouldReduce?{x:0}:{x:[\"0%\",\"-50%\"]},transition:shouldReduce?{duration:0}:{duration,repeat:Infinity,ease:\"linear\"},style:{position:\"relative\",display:\"flex\",alignItems:\"center\",width:\"max-content\",whiteSpace:\"nowrap\"},children:trackItems.map((item,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\",gap:10,paddingRight:14,marginRight:14,borderRight:index===trackItems.length-1?\"none\":`1px solid ${separatorColor}`},children:[/*#__PURE__*/_jsxs(\"span\",{style:{color:primaryColor,fontSize:13,lineHeight:1.2},children:[\"“\",item.quote,\"”\"]}),/*#__PURE__*/_jsxs(\"span\",{style:{color:mutedColor,fontSize:12,lineHeight:1.2},children:[\"— \",item.attribution]})]},`${item.quote}-${item.attribution}-${index}`))})})]});}addPropertyControls(ReviewTicker,{snippets:{type:ControlType.Array,title:\"Snippets\",control:{type:ControlType.Object,controls:{quote:{type:ControlType.String,title:\"Quote\",defaultValue:\"Dismissal finally feels organized.\"},attribution:{type:ControlType.String,title:\"Attribution\",defaultValue:\"School Administrator — placeholder\"}}},defaultValue:DEFAULT_SNIPPETS},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:32,min:10,max:80,step:1,unit:\"s\"},reducedMotion:{type:ControlType.Boolean,title:\"Reduced Motion\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},primaryColor:{type:ControlType.Color,title:\"Primary\",defaultValue:\"#00263E\"},mutedColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"#627A89\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#F2C94C\"},separatorColor:{type:ControlType.Color,title:\"Separator\",defaultValue:\"#D7E1E8\"},surfaceColor:{type:ControlType.Color,title:\"Surface\",defaultValue:\"rgba(255,255,255,0.92)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReviewTicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReviewTicker.map"],"mappings":"A,sQAGG,SAAwBkB,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,QAAM,gBAAc,eAAa,aAAW,cAAY,iBAAe,gBAAcC,EAAYC,EAAQpB,E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