{"version":3,"file":"shared-lib.Df3faxF9.mjs","names":["React.useRef","React.useMemo","React.useCallback","metadata","metadataVersion","__FramerMetadata__"],"sources":["https:/framerusercontent.com/modules/25R9J78LFaBNulLhfgld/tvPSNnv8rK9sUWZDTday/Rullo.js","https:/framerusercontent.com/modules/mHLPUjkkaBcvfeTiFv70/ZAST7NuN6IxMmaIIejXe/n2lIuGNR4.js","https:/framerusercontent.com/modules/79AxDOZVGCrmPdQusPRc/ab72ZFVAgxAfjdjnX2jw/augiA20Il.js","https:/framerusercontent.com/modules/Wl2SSgExafAiwoEYaD21/RNuRKn6ezu5ahlKHExxo/to18_5ZOg.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ScrollingStrip(props){const{text,separator,speed,fontSize,backgroundColor,textColor,height,uppercase,fontFamily}=props;const containerRef=React.useRef(null);const wrapperRef=React.useRef(null);const contentRef=React.useRef(null);const repeatedText=React.useMemo(()=>{const base=uppercase?text.toUpperCase():text;return Array(20).fill(base).join(` ${separator} `);},[text,separator,uppercase]);// refs per animazione\nconst offsetRef=React.useRef(0);const lastTimeRef=React.useRef(null);const contentWidthRef=React.useRef(0);const frameRef=React.useRef(null);// misura larghezza contenuto\nconst measure=React.useCallback(()=>{if(contentRef.current){contentWidthRef.current=contentRef.current.scrollWidth;}},[]);// setup animazione\nReact.useEffect(()=>{if(typeof window===\"undefined\")return;// prima misura\nmeasure();const handleResize=()=>{measure();};window.addEventListener(\"resize\",handleResize);const step=timestamp=>{if(!wrapperRef.current||contentWidthRef.current===0){frameRef.current=requestAnimationFrame(step);return;}if(lastTimeRef.current==null){lastTimeRef.current=timestamp;frameRef.current=requestAnimationFrame(step);return;}const dt=(timestamp-lastTimeRef.current)/1e3// secondi\n;lastTimeRef.current=timestamp;// speed = \"velocità\" arbitraria: più alto = più veloce\nconst pixelsPerSecond=speed*10// puoi regolare questo fattore\n;let offset=offsetRef.current-pixelsPerSecond*dt;const w=contentWidthRef.current;if(offset<=-w){offset+=w// loop\n;}offsetRef.current=offset;wrapperRef.current.style.transform=`translateX(${offset}px)`;frameRef.current=requestAnimationFrame(step);};frameRef.current=requestAnimationFrame(step);return()=>{window.removeEventListener(\"resize\",handleResize);if(frameRef.current)cancelAnimationFrame(frameRef.current);frameRef.current=null;lastTimeRef.current=null;};},[measure,speed,text,separator,uppercase,fontSize,fontFamily]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:height,overflow:\"hidden\",backgroundColor,display:\"flex\",alignItems:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:{display:\"flex\",whiteSpace:\"nowrap\",willChange:\"transform\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{display:\"inline-block\",paddingRight:\"32px\",color:textColor,fontSize,fontFamily,fontWeight:500},children:repeatedText}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",paddingRight:\"32px\",color:textColor,fontSize,fontFamily,fontWeight:500},children:repeatedText})]})});}addPropertyControls(ScrollingStrip,{text:{type:ControlType.String,title:\"Testo\",defaultValue:\"cartoline di natale\"},separator:{type:ControlType.String,title:\"Separatore\",defaultValue:\"•\"},uppercase:{type:ControlType.Boolean,title:\"MAIUSCOLO\",defaultValue:true},speed:{type:ControlType.Number,title:\"Velocit\\xe0\",defaultValue:20,min:5,max:60,step:1},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:24,min:10,max:80},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter\"},height:{type:ControlType.Number,title:\"Altezza\",defaultValue:60,min:30,max:200},backgroundColor:{type:ControlType.Color,title:\"BG\",defaultValue:\"#111111\"},textColor:{type:ControlType.Color,title:\"Colore testo\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollingStrip\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Rullo.map","// Generated by Framer (beb597f)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Source Serif 4-regular\",\"GF;Source Serif 4-700\",\"GF;Source Serif 4-700italic\",\"GF;Source Serif 4-italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Source Serif 4\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Source Serif 4\",url:\"https://fonts.gstatic.com/s/sourceserif4/v14/vEFy2_tTDB4M7-auWDN0ahZJW3IX2ih5nk3AucvUHf6OAVIJmeUDygwjihdqrhlXD-wGvjU.woff2\",weight:\"400\"},{cssFamilyName:\"Source Serif 4\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Source Serif 4\",url:\"https://fonts.gstatic.com/s/sourceserif4/v14/vEFy2_tTDB4M7-auWDN0ahZJW3IX2ih5nk3AucvUHf6OAVIJmeUDygwjivBtrhlXD-wGvjU.woff2\",weight:\"700\"},{cssFamilyName:\"Source Serif 4\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Source Serif 4\",url:\"https://fonts.gstatic.com/s/sourceserif4/v14/vEF02_tTDB4M7-auWDN0ahZJW1ge6NmXpVAHV83Bfb_US2D2QYxoUKIkn98poVhdDs4DrjXEXw.woff2\",weight:\"700\"},{cssFamilyName:\"Source Serif 4\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Source Serif 4\",url:\"https://fonts.gstatic.com/s/sourceserif4/v14/vEF02_tTDB4M7-auWDN0ahZJW1ge6NmXpVAHV83Bfb_US2D2QYxoUKIkn98pRl9dDs4DrjXEXw.woff2\",weight:\"400\"}]}];export const css=['.framer-5ADP3 .framer-styles-preset-10ek8wu:not(.rich-text-wrapper), .framer-5ADP3 .framer-styles-preset-10ek8wu.rich-text-wrapper p { --framer-font-family: \"Source Serif 4\", \"Source Serif 4 Placeholder\", serif; --framer-font-family-bold: \"Source Serif 4\", \"Source Serif 4 Placeholder\", serif; --framer-font-family-bold-italic: \"Source Serif 4\", \"Source Serif 4 Placeholder\", serif; --framer-font-family-italic: \"Source Serif 4\", \"Source Serif 4 Placeholder\", serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv09\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv11\\' on; --framer-font-size: 13px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.1em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: #545454; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-5ADP3\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (beb597f)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1440px)\"},{hash:\"pmk3cu\",mediaQuery:\"(min-width: 810px) and (max-width: 1439.98px)\"},{hash:\"mjby4k\",mediaQuery:\"(max-width: 809.98px)\"}],description:\"Fai felice un’agenzia\",elements:{oEuop8tJn:\"cartolina\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-f2xOf\",socialImage:\"https://framerusercontent.com/assets/SyhZ3ps5MIoGRdtFUikWo3cfY.png\",title:\"Cartoline di natale hub09\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (beb597f)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1il54uz\",mediaQuery:\"(min-width: 1440px)\"},{hash:\"xg86ef\",mediaQuery:\"(min-width: 810px) and (max-width: 1439.98px)\"},{hash:\"9vlkji\",mediaQuery:\"(max-width: 809.98px)\"}],description:\"Una cartolina digitale personalizzata da vedere e condividere.\",elements:{},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-p4P6F\",socialImage:\"https://framerusercontent.com/assets/SyhZ3ps5MIoGRdtFUikWo3cfY.png\",title:\"Cartolina di Natale Hub09\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sNAAyI,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,QAAM,WAAS,kBAAgB,YAAU,SAAO,YAAU,cAAY,EAAY,EAAaA,EAAa,KAAK,CAAO,EAAWA,EAAa,KAAK,CAAO,EAAWA,EAAa,KAAK,CAAO,EAAaC,MAAkB,CAAC,IAAM,EAAK,EAAU,EAAK,aAAa,CAAC,EAAK,OAAO,MAAM,GAAG,CAAC,KAAK,EAAK,CAAC,KAAK,IAAI,EAAU,GAAG,EAAG,CAAC,EAAK,EAAU,EAAU,CAAC,CACniB,EAAUD,EAAa,EAAE,CAAO,EAAYA,EAAa,KAAK,CAAO,EAAgBA,EAAa,EAAE,CAAO,EAASA,EAAa,KAAK,CACtI,EAAQE,MAAsB,CAAI,EAAW,UAAS,EAAgB,QAAQ,EAAW,QAAQ,cAAe,EAAE,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