{"version":3,"file":"Card.DsbYpVev.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/Ovttdh9GR6fpbdM5YrrW/UFdQ2mKhTDLH3ktSmB6l/StyleCard.js","https:/framerusercontent.com/modules/H7hZiMJ6N3fW3hV8S8uD/hM3TKkcwm2CxtAohwtjB/Card.js"],"sourcesContent":["export const card={height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\",alignItems:\"flex-start\",padding:\"24px 32px\",overflow:\"hidden\",position:\"relative\",background:\"#0F0E14\",borderRadius:12,color:\"white\",fontFamily:\"Inter\",fontWeight:500,gap:32};export const header={display:\"flex\",flexDirection:\"row\",gap:\"32px\",alignItems:\"center\",width:\"100%\",position:\"relative\"};export const headerAvatar={width:82,height:82,objectFit:\"cover\",borderRadius:\"50%\",border:\"3px solid white\",aspectRatio:1};export const headerContent={height:\"auto\",width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:8,justifyContent:\"flex-start\"};export const headerTitle={fontSize:16,fontWeight:600};export const closeButton={textDecoration:\"underline\",cursor:\"pointer\",position:\"absolute\",right:0,top:\"50%\",transform:\"translateY(-50%)\"};export const closeButtonMobile={position:\"absolute\",right:\"-14px\",top:\"35px\",opacity:1,filter:\"blur(0px)\",willChange:\"transform\",zIndex:4,background:\"#49494a\",width:\"24px\",height:\"24px\",display:\"flex\",borderRadius:\"50%\",alignItems:\"center\",justifyContent:\"center\"};export const testimonialContent={fontSize:\"14px\",lineHeight:\"30px\",width:\"100%\",height:\"100%\",wordBreak:\"break-word\",whiteSpace:\"pre-wrap\"};export const testimonialTruncated={opacity:.6};export const testimonialMore={textDecoration:\"underline\",cursor:\"pointer\"};export const testimonialPopup=(height,translate)=>{return{position:\"absolute\",width:\"100%\",height:height,bottom:translate,left:0,zIndex:2,background:\"rgba(255,255,255,0.04)\",backdropFilter:\"blur(20px)\",borderRadius:12,fontSize:\"13px\",lineHeight:\"1.8em\",padding:\"20px\",wordBreak:\"break-word\",whiteSpace:\"pre-wrap\"};};\nexport const __FramerMetadata__ = {\"exports\":{\"card\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"closeButtonMobile\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"headerAvatar\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"testimonialMore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"testimonialContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"testimonialPopup\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"headerTitle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"testimonialTruncated\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"headerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"header\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"closeButton\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StyleCard.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{AnimatePresence,motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{card,header,headerAvatar,headerContent,headerTitle,closeButton,testimonialContent,testimonialTruncated,testimonialMore,testimonialPopup,closeButtonMobile}from\"https://framerusercontent.com/modules/Ovttdh9GR6fpbdM5YrrW/UFdQ2mKhTDLH3ktSmB6l/StyleCard.js\";export default function Testimonial({avatar,logo,authorName,occupation,testimonial,isMobile}){const[isOpen,setIsOpen]=useState(false);const heightCard=isMobile?380:255;const translatePopup=isMobile?-312:-187;const heightPopup=isMobile?312:187;const lengthChracters=isMobile?210:165;const transition={type:\"spring\",stiffness:300,damping:40,mass:2.3};const truncatedTestimonial=testimonial.slice(0,lengthChracters);const shouldShowMore=testimonial.length>lengthChracters;return /*#__PURE__*/_jsxs(\"div\",{style:card,children:[/*#__PURE__*/_jsxs(motion.div,{style:header,animate:{gap:isOpen?\"12px\":\"32px\"},children:[/*#__PURE__*/_jsxs(AnimatePresence,{children:[isOpen&&!isMobile&&/*#__PURE__*/_jsx(motion.div,{style:closeButton,onClick:()=>setIsOpen(false),initial:{opacity:0,filter:\"blur(5px)\"},animate:{opacity:1,filter:\"blur(0px)\"},exit:{opacity:0,filter:\"blur(5px)\"},children:\"fermer\"}),isOpen&&isMobile&&/*#__PURE__*/_jsx(motion.div,{style:closeButtonMobile,onClick:()=>setIsOpen(false),initial:{opacity:0,filter:\"blur(5px)\",y:-20},animate:{opacity:1,filter:\"blur(0px)\",y:0,transition:{delay:.3,ease:\"easeInOut\",duration:.3}},exit:{opacity:0,filter:\"blur(5px)\",y:40,transition:{duration:.2}},children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{fill:\"none\",stroke:\"#ffffff\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-width\":\"2\",d:\"m6 9l6 6l6-6\"})})})]}),avatar?/*#__PURE__*/_jsx(motion.img,{style:headerAvatar,animate:{width:isOpen?32:82,height:isOpen?32:82},transition:transition,src:avatar}):/*#__PURE__*/_jsx(_Fragment,{}),/*#__PURE__*/_jsxs(AnimatePresence,{children:[\" \",!isOpen&&logo&&/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",background:\"white\",width:80,borderRadius:10,height:30,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",bottom:-10},initial:{filter:\"blur(3px)\",opacity:0,y:12},animate:{filter:\"blur(0px)\",opacity:1,y:0,transition:{delay:.25,ease:\"easeInOut\",duration:.4}},exit:{filter:\"blur(6px)\",opacity:0,scale:.25,y:0,x:-12},children:/*#__PURE__*/_jsx(motion.img,{style:{width:\"64px\",height:\"16px\",objectFit:\"contain\",filter:\"saturate(0%) brightness(0%)\"},src:logo})})]}),/*#__PURE__*/_jsxs(motion.div,{style:headerContent,animate:{height:isOpen?19:41.5},transition:transition,children:[/*#__PURE__*/_jsx(motion.h3,{style:headerTitle,children:authorName}),/*#__PURE__*/_jsx(motion.span,{animate:{opacity:isOpen?0:1,filter:isOpen?\"blur(5px)\":\"blur(0px)\"},transition:transition,children:occupation})]})]}),/*#__PURE__*/_jsxs(motion.div,{style:testimonialContent,animate:{opacity:isOpen?0:1,filter:isOpen?\"blur(5px)\":\"blur(0px)\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:shouldShowMore?testimonialTruncated:{},children:[truncatedTestimonial,shouldShowMore?\"...\":\"\"]}),\" \",shouldShowMore&&/*#__PURE__*/_jsx(\"span\",{onClick:()=>setIsOpen(true),style:testimonialMore,children:\"voir plus\"})]}),/*#__PURE__*/_jsx(motion.div,{style:testimonialPopup(heightPopup,translatePopup),animate:{bottom:isOpen?0:translatePopup},children:testimonial})]});}addPropertyControls(Testimonial,{avatar:{type:ControlType.Image},logo:{type:ControlType.Image},authorName:{type:ControlType.String},occupation:{type:ControlType.String},testimonial:{type:ControlType.String},isMobile:{type:ControlType.Boolean}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Testimonial\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oRAAa,EAAK,CAAC,OAAO,OAAO,QAAQ,OAAO,cAAc,SAAS,eAAe,aAAa,WAAW,aAAa,QAAQ,YAAY,SAAS,SAAS,SAAS,WAAW,WAAW,UAAU,aAAa,GAAG,MAAM,QAAQ,WAAW,QAAQ,WAAW,IAAI,IAAI,GAAG,CAAc,EAAO,CAAC,QAAQ,OAAO,cAAc,MAAM,IAAI,OAAO,WAAW,SAAS,MAAM,OAAO,SAAS,WAAW,CAAc,EAAa,CA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