{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/eB4r5wAHSdL4D7aqPHB3/43Huay3HV2m6PazCbqHR/CwXWL0LKt.js", "ssg:https://framer.com/m/QuantityEvents-8ZjF.js@kwJ8NiZrOZKCDFD8SMI4", "ssg:https://framerusercontent.com/modules/2U6qFmsOuMql7LNdSDG8/AVDaVBzlptXl5wFEyI7i/FrameshopAddtocart.js", "ssg:https://framerusercontent.com/modules/eFUG6VRWf3ZCWjj2E6gk/g4nEmJ1sLgmEr0iy0ArO/FrameshopQuantitySelector.js", "ssg:https://framerusercontent.com/modules/jIQ4z35fSRO4MAn5uCaz/R7kB37qMborReOi4vccI/aEUKGD6fT.js"],
  "sourcesContent": ["// Generated by Framer (2306ade)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,Link,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Feather}from\"https://framerusercontent.com/modules/f0DboytQenYh21kfme7W/zb1zVBMZJKgPMiedOi0y/Feather.js\";const FeatherFonts=getFonts(Feather);const cycleOrder=[\"RUqTTLZj1\",\"zY9QEu2hP\"];const serializationHash=\"framer-HfOfE\";const variantClassNames={RUqTTLZj1:\"framer-v-11oz606\",zY9QEu2hP:\"framer-v-1i0l7u8\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Desktop:\"RUqTTLZj1\",Phone:\"zY9QEu2hP\"};const getProps=({fontSize,height,id,width,...props})=>{return{...props,nORLI8j0l:fontSize??props.nORLI8j0l??14,variant:humanReadableVariantMap[props.variant]??props.variant??\"RUqTTLZj1\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,nORLI8j0l,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"RUqTTLZj1\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:{hash:\":uNvMMuV_K\",webPageId:\"K0ZCZrneq\"},motionChild:true,nodeId:\"RUqTTLZj1\",openInNewTab:false,scopeId:\"CwXWL0LKt\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-11oz606\",className,classNames)} framer-1dv82j7`,\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"RUqTTLZj1\",ref:refBinding,style:{...style},...addPropertyOverrides({zY9QEu2hP:{\"data-framer-name\":\"Phone\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-a6n12b\",\"data-border\":true,layoutDependency:layoutDependency,layoutId:\"O4Z0U2qy3\",style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, rgb(63, 63, 63))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-8ec66b06-7817-430c-a370-7bebb14573a3, rgb(253, 247, 230))\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40},children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-qn0wng-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"CXnUVRdJF-container\",nodeId:\"CXnUVRdJF\",rendersWithMotion:true,scopeId:\"CwXWL0LKt\",children:/*#__PURE__*/_jsx(Feather,{color:\"var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, rgb(63, 63, 63))\",height:\"100%\",iconSearch:\"back\",iconSelection:\"arrow-left\",id:\"CXnUVRdJF\",layoutId:\"CXnUVRdJF\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h1,{style:{\"--font-selector\":\"R0Y7U3BhY2UgTW9uby03MDA=\",\"--framer-font-family\":'\"Space Mono\", monospace',\"--framer-font-size\":\"calc(var(--variable-reference-nORLI8j0l-CwXWL0LKt) * 1px)\",\"--framer-font-weight\":\"700\",\"--framer-line-height\":\"0.9em\",\"--framer-text-color\":\"var(--extracted-gdpscs, var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, rgb(63, 63, 63)))\"},children:\"Back To Products\"})}),className:\"framer-wizmzx\",fonts:[\"GF;Space Mono-700\"],layoutDependency:layoutDependency,layoutId:\"kr1NUBzeZ\",style:{\"--extracted-gdpscs\":\"var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, rgb(63, 63, 63))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--framer-paragraph-spacing\":\"0px\",\"--variable-reference-nORLI8j0l-CwXWL0LKt\":nORLI8j0l},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({zY9QEu2hP:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h1,{style:{\"--font-selector\":\"R0Y7U3BhY2UgTW9uby03MDA=\",\"--framer-font-family\":'\"Space Mono\", monospace',\"--framer-font-size\":\"12px\",\"--framer-font-weight\":\"700\",\"--framer-line-height\":\"0.9em\",\"--framer-text-color\":\"var(--extracted-gdpscs, var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, rgb(63, 63, 63)))\"},children:\"Back To Products\"})})}},baseVariant,gestureVariant)})]})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-HfOfE.framer-1dv82j7, .framer-HfOfE .framer-1dv82j7 { display: block; }\",\".framer-HfOfE.framer-11oz606 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; text-decoration: none; width: min-content; }\",\".framer-HfOfE .framer-a6n12b { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 8px 14px 8px 14px; position: relative; width: min-content; }\",\".framer-HfOfE .framer-qn0wng-container { align-self: stretch; flex: none; height: auto; position: relative; width: 18px; }\",\".framer-HfOfE .framer-wizmzx { flex: none; height: auto; position: relative; white-space: pre; width: auto; z-index: 1; }\",\".framer-HfOfE.framer-v-1i0l7u8 .framer-a6n12b { padding: 10px; }\",\".framer-HfOfE.framer-v-1i0l7u8 .framer-qn0wng-container { align-self: unset; height: 12px; width: 12px; }\",'.framer-HfOfE[data-border=\"true\"]::after, .framer-HfOfE [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 37\n * @framerIntrinsicWidth 193\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"zY9QEu2hP\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"nORLI8j0l\":\"fontSize\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerCwXWL0LKt=withCSS(Component,css,\"framer-HfOfE\");export default FramerCwXWL0LKt;FramerCwXWL0LKt.displayName=\"CTA back\";FramerCwXWL0LKt.defaultProps={height:37,width:193};addPropertyControls(FramerCwXWL0LKt,{variant:{options:[\"RUqTTLZj1\",\"zY9QEu2hP\"],optionTitles:[\"Desktop\",\"Phone\"],title:\"Variant\",type:ControlType.Enum},nORLI8j0l:{defaultValue:14,title:\"Font Size\",type:ControlType.Number}});addFonts(FramerCwXWL0LKt,[{explicitInter:true,fonts:[{family:\"Space Mono\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/spacemono/v15/i7dMIFZifjKcF5UAWdDRaPpZYFeQHwyVd3U.woff2\",weight:\"700\"}]},...FeatherFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerCwXWL0LKt\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"193\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"37\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"zY9QEu2hP\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerVariables\":\"{\\\"nORLI8j0l\\\":\\\"fontSize\\\"}\",\"framerAutoSizeImages\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CwXWL0LKt.map", "export const quantityEvents={listeners:[],quantity:1,/**\n     * Abonner un callback \u00E0 l'\u00E9v\u00E9nement de mise \u00E0 jour de la quantit\u00E9.\n     * @param {Function} callback - Fonction appel\u00E9e lorsque la quantit\u00E9 change.\n     */subscribe(callback){this.listeners.push(callback);},/**\n     * D\u00E9sabonner un callback de l'\u00E9v\u00E9nement de mise \u00E0 jour de la quantit\u00E9.\n     * @param {Function} callback - Fonction \u00E0 d\u00E9sabonner.\n     */unsubscribe(callback){this.listeners=this.listeners.filter(listener=>listener!==callback);},/**\n     * Publier un \u00E9v\u00E9nement de mise \u00E0 jour de la quantit\u00E9 \u00E0 tous les abonn\u00E9s.\n     * @param {number} newQuantity - Nouvelle quantit\u00E9 s\u00E9lectionn\u00E9e.\n     */publish(newQuantity){this.quantity=newQuantity;this.listeners.forEach(callback=>callback(newQuantity));},/**\n     * R\u00E9cup\u00E9rer la quantit\u00E9 actuelle.\n     * @returns {number} - Quantit\u00E9 actuelle.\n     */getQuantity(){return this.quantity;}};\nexport const __FramerMetadata__ = {\"exports\":{\"quantityEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QuantityEvents.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{PlusCircle}from\"lucide-react\";import{quantityEvents}from\"https://framer.com/m/QuantityEvents-8ZjF.js@kwJ8NiZrOZKCDFD8SMI4\";import{cartUpdateEvents}from\"https://framer.com/m/Frameshop-uk10.js@F0HXMoIYR3V1GwYzEzxa\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FrameshopAddToCart(props){const{shopId,frameshop_article_id,productName,price,productImage,buttonText,showIcon,iconPosition,buttonBackgroundColor,buttonTextColor,buttonFontSize,buttonFontFamily,buttonFontWeight,isButtonBorderRadiusMixed,buttonTopLeftRadius,buttonTopRightRadius,buttonBottomRightRadius,buttonBottomLeftRadius,buttonBorderRadius,isPaddingMixed,paddingTop,paddingRight,paddingBottom,paddingLeft,buttonPadding,showBorders,buttonBorderColor,isBorderWidthMixed,borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth,buttonBorderWidth,outOfStockText,confirmationMessage,toastBackgroundColor,toastTextColor,toastFontSize,toastFontFamily,toastFontWeight,toastLineHeight}=props;const[stockQuantity,setStockQuantity]=React.useState(null);const[loadingStock,setLoadingStock]=React.useState(true);const[errorStock,setErrorStock]=React.useState(false);const[showNotification,setShowNotification]=React.useState(false);const[quantity,setQuantity]=React.useState(1)// Valeur par d\u00E9faut\n;// Charger la police choisie\nReact.useEffect(()=>{if(buttonFontFamily){loadGoogleFont(buttonFontFamily);}},[buttonFontFamily]);const loadGoogleFont=font=>{const linkId=`google-font-${font.replace(/\\s+/g,\"-\")}`;if(!document.getElementById(linkId)){const link=document.createElement(\"link\");link.href=`https://fonts.googleapis.com/css2?family=${font.replace(/ /g,\"+\")}&display=swap`;link.rel=\"stylesheet\";link.id=linkId;document.head.appendChild(link);}};// Fonction pour r\u00E9cup\u00E9rer le stock du produit\nconst fetchStock=async()=>{if(!shopId||!frameshop_article_id){setErrorStock(true);setLoadingStock(false);return;}try{setLoadingStock(true);const response=await fetch(`https://frameshopv2.support-cd7.workers.dev/stock?shopId=${encodeURIComponent(shopId)}&frameshop_article_id=${encodeURIComponent(frameshop_article_id)}`,{method:\"GET\",headers:{\"Content-Type\":\"application/json\"}});if(response.ok){const data=await response.json();setStockQuantity(data.stock_quantity);setErrorStock(false);}else{console.error(\"Error fetching stock:\",response.statusText);setErrorStock(true);}}catch(err){console.error(\"Error fetching stock:\",err);setErrorStock(true);}finally{setLoadingStock(false);}};React.useEffect(()=>{fetchStock();},[shopId,frameshop_article_id]);// Gestion des \u00E9v\u00E9nements pour la quantit\u00E9\nReact.useEffect(()=>{const handleQuantityUpdate=newQuantity=>{setQuantity(newQuantity);};quantityEvents.subscribe(handleQuantityUpdate);setQuantity(quantityEvents.getQuantity())// Valeur initiale depuis quantityEvents\n;return()=>{quantityEvents.unsubscribe(handleQuantityUpdate);};},[]);const AddToCart=()=>{let cart=JSON.parse(localStorage.getItem(\"cart\")||\"[]\");let item=cart.find(item=>item.frameshop_article_id===frameshop_article_id);if(item){item.quantity+=quantity;}else{cart.push({frameshop_article_id:frameshop_article_id,name:productName,quantity:quantity,price:price,image:productImage});}console.log(`Ajout au panier de l'article FrameshopArticleID: ${frameshop_article_id}, Quantit\\xe9: ${quantity}, Prix: ${price}`);localStorage.setItem(\"cart\",JSON.stringify(cart));cartUpdateEvents.publish(\"cartUpdated\",{});setShowNotification(true);setTimeout(()=>setShowNotification(false),3e3);};const containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",backgroundColor:buttonBackgroundColor,color:buttonTextColor,fontSize:`${buttonFontSize}px`,fontFamily:buttonFontFamily,fontWeight:buttonFontWeight,borderRadius:isButtonBorderRadiusMixed?`${buttonTopLeftRadius}px ${buttonTopRightRadius}px ${buttonBottomRightRadius}px ${buttonBottomLeftRadius}px`:`${buttonBorderRadius}px`,padding:isPaddingMixed?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${buttonPadding}px`,cursor:\"pointer\",width:\"100%\",borderColor:showBorders?buttonBorderColor:\"transparent\",borderWidth:showBorders?isBorderWidthMixed?`${borderTopWidth}px ${borderRightWidth}px ${borderBottomWidth}px ${borderLeftWidth}px`:`${buttonBorderWidth}px`:\"0\",borderStyle:showBorders?\"solid\":\"none\",opacity:stockQuantity===0?.6:1,pointerEvents:stockQuantity===0?\"none\":\"auto\"};const iconStyle={marginLeft:iconPosition===\"right\"?\"8px\":\"0\",marginRight:iconPosition===\"left\"?\"8px\":\"0\"};const displayText=stockQuantity===0?outOfStockText:buttonText;return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{onClick:stockQuantity===0?null:AddToCart,style:containerStyle,children:[showIcon&&iconPosition===\"left\"&&stockQuantity!==0&&/*#__PURE__*/_jsx(PlusCircle,{color:buttonTextColor,style:iconStyle}),displayText,showIcon&&iconPosition===\"right\"&&stockQuantity!==0&&/*#__PURE__*/_jsx(PlusCircle,{color:buttonTextColor,style:iconStyle})]}),showNotification&&/*#__PURE__*/_jsx(\"div\",{style:{...toastStyle,backgroundColor:toastBackgroundColor,color:toastTextColor,textAlign:\"center\",lineHeight:toastLineHeight,whiteSpace:\"pre-line\",width:\"340px\",boxSizing:\"content-box\",wordBreak:\"break-word\",fontSize:`${toastFontSize}px`,fontFamily:toastFontFamily,fontWeight:toastFontWeight,overflowX:\"auto\",maxWidth:\"90%\"},children:confirmationMessage.replace(\"{productName}\",productName)})]});}const toastStyle={position:\"fixed\",bottom:\"20px\",left:\"50%\",transform:\"translateX(-50%)\",padding:\"10px 20px\",borderRadius:\"8px\",boxShadow:\"0px 4px 6px rgba(0,0,0,0.1)\",zIndex:9999};FrameshopAddToCart.defaultProps={shopId:\"\",frameshop_article_id:\"001\",productName:\"Product Name\",price:10,productImage:\"\",buttonBackgroundColor:\"#000000\",buttonTextColor:\"#FFFFFF\",buttonFontSize:16,buttonFontFamily:\"Inter\",buttonFontWeight:\"400\",buttonPadding:10,buttonBorderRadius:10,showBorders:false,buttonBorderColor:\"#000000\",buttonBorderWidth:1,buttonText:\"Add to Cart\",showIcon:true,iconPosition:\"left\",outOfStockText:\"Available Soon\",confirmationMessage:\"{productName} has been added to your shopping cart.\",toastBackgroundColor:\"#fff\",toastTextColor:\"#000000\",toastFontSize:14,toastFontFamily:\"Inter\",toastFontWeight:\"400\",toastLineHeight:1.5};addPropertyControls(FrameshopAddToCart,{shopId:{type:ControlType.String,title:\"Shop ID\",defaultValue:\"\"},frameshop_article_id:{type:ControlType.String,title:\"Frameshop Article ID\",defaultValue:\"001\"},productName:{type:ControlType.String,title:\"Product Name\",defaultValue:\"Product Name\"},price:{type:ControlType.Number,title:\"Price\",defaultValue:10,min:0,step:1},productImage:{type:ControlType.Image,title:\"Product Image\",defaultValue:\"\"},buttonText:{type:ControlType.String,title:\"Text\",defaultValue:\"Add to Cart\"},outOfStockText:{type:ControlType.String,title:\"Out of Stock Text\",defaultValue:\"Available Soon\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\",hidden:({showIcon})=>!showIcon},buttonBackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},buttonTextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},buttonFontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:8,max:100,unit:\"px\",displayStepper:true},buttonFontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Inter\"},buttonFontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],optionTitles:[\"Thin\",\"Extra Light\",\"Light\",\"Regular\",\"Medium\",\"Semi Bold\",\"Bold\",\"Extra Bold\",\"Black\"],defaultValue:\"400\"},buttonPadding:{type:ControlType.FusedNumber,title:\"Padding\",defaultValue:10,toggleKey:\"isPaddingMixed\",toggleTitles:[\"Uniform\",\"Individual\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},buttonBorderRadius:{type:ControlType.FusedNumber,title:\"Border Radius\",defaultValue:10,toggleKey:\"isButtonBorderRadiusMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"buttonTopLeftRadius\",\"buttonTopRightRadius\",\"buttonBottomRightRadius\",\"buttonBottomLeftRadius\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0},showBorders:{type:ControlType.Boolean,title:\"Show Borders\",defaultValue:false},buttonBorderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000000\",hidden:({showBorders})=>!showBorders},buttonBorderWidth:{type:ControlType.FusedNumber,title:\"Border Width\",defaultValue:1,toggleKey:\"isBorderWidthMixed\",toggleTitles:[\"Uniform\",\"Individual\"],valueKeys:[\"borderTopWidth\",\"borderRightWidth\",\"borderBottomWidth\",\"borderLeftWidth\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0,hidden:({showBorders})=>!showBorders},confirmationMessage:{type:ControlType.String,title:\"Confirmation Message\",defaultValue:\"{productName} has been added to your shopping cart.\"},toastBackgroundColor:{type:ControlType.Color,title:\"Toast Background\",defaultValue:\"#fff\"},toastTextColor:{type:ControlType.Color,title:\"Toast Text Color\",defaultValue:\"#000000\"},toastFontSize:{type:ControlType.Number,title:\"Toast Font Size\",defaultValue:14,min:8,max:36,unit:\"px\",displayStepper:true},toastFontFamily:{type:ControlType.String,title:\"Toast Font Family\",defaultValue:\"Inter\"},toastFontWeight:{type:ControlType.Enum,title:\"Toast Font Weight\",options:[\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],optionTitles:[\"Thin\",\"Extra Light\",\"Light\",\"Regular\",\"Medium\",\"Semi Bold\",\"Bold\",\"Extra Bold\",\"Black\"],defaultValue:\"400\"},toastLineHeight:{type:ControlType.Number,title:\"Toast Line Height\",defaultValue:1.5,min:1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameshopAddToCart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FrameshopAddtocart.map", "import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{Plus,Minus}from\"lucide-react\";import{quantityEvents}from\"https://framer.com/m/QuantityEvents-8ZjF.js@kwJ8NiZrOZKCDFD8SMI4\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FrameshopQuantitySelector(props){const[quantity,setQuantity]=useState(props.initialQuantity||1)// Quantit\u00E9 initiale\n;const[stockQuantity,setStockQuantity]=useState(null);const[loadingStock,setLoadingStock]=useState(true);const[errorStock,setErrorStock]=useState(false);// Fonction pour r\u00E9cup\u00E9rer le stock depuis l'API\nconst fetchStock=async()=>{if(!props.shopId||!props.frameshopArticleId){setErrorStock(true);setLoadingStock(false);return;}try{setLoadingStock(true);const response=await fetch(`https://frameshopv2.support-cd7.workers.dev/stock?shopId=${encodeURIComponent(props.shopId)}&frameshop_article_id=${encodeURIComponent(props.frameshopArticleId)}`);if(response.ok){const data=await response.json();setStockQuantity(data.stock_quantity);setErrorStock(false);}else{console.error(\"Error fetching stock:\",response.statusText);setErrorStock(true);}}catch(err){console.error(\"Error fetching stock:\",err);setErrorStock(true);}finally{setLoadingStock(false);}};// R\u00E9initialisation de la quantit\u00E9 au montage\nuseEffect(()=>{const initialQuantity=props.initialQuantity||1;setQuantity(initialQuantity);quantityEvents.publish(initialQuantity)// R\u00E9initialiser l'\u00E9v\u00E9nement global avec la quantit\u00E9 initiale\n;},[props.initialQuantity]);// Initialisation pour r\u00E9cup\u00E9rer le stock\nuseEffect(()=>{fetchStock();},[props.shopId,props.frameshopArticleId]);// Mise \u00E0 jour de la quantit\u00E9 et publication via events\nconst updateQuantity=newQuantity=>{setQuantity(newQuantity);quantityEvents.publish(newQuantity)// Notifie tous les abonn\u00E9s\n;};// Gestion des incr\u00E9ments/d\u00E9cr\u00E9ments\nconst increaseQuantity=()=>{if(stockQuantity===null||quantity<stockQuantity){updateQuantity(quantity+1);}};const decreaseQuantity=()=>{if(quantity>1){updateQuantity(quantity-1);}};const isIncrementDisabled=stockQuantity!==null&&quantity>=stockQuantity;const styles={container:{display:\"flex\",alignItems:\"center\",gap:\"10px\"},button:{border:`1px solid ${props.buttonBorderColor}`,background:props.buttonBackgroundColor,color:props.buttonTextColor,width:`${props.buttonSize}px`,height:`${props.buttonSize}px`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",borderRadius:\"4px\",fontSize:`${props.buttonSize*.9}px`,lineHeight:1,padding:0},buttonDisabled:{opacity:.5,cursor:\"not-allowed\"},quantity:{fontSize:`${props.fontSize}px`,fontWeight:props.fontWeight,color:props.textColor}};return /*#__PURE__*/_jsx(\"div\",{style:styles.container,children:loadingStock?/*#__PURE__*/_jsx(\"p\",{children:\"Loading stock...\"}):errorStock?/*#__PURE__*/_jsx(\"p\",{children:\"Error fetching stock\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{style:styles.button,onClick:decreaseQuantity,disabled:quantity<=1,children:/*#__PURE__*/_jsx(Minus,{size:props.buttonSize*.6,color:props.buttonTextColor})}),/*#__PURE__*/_jsx(\"div\",{style:styles.quantity,children:quantity}),/*#__PURE__*/_jsx(\"button\",{style:{...styles.button,...isIncrementDisabled?styles.buttonDisabled:{}},onClick:increaseQuantity,disabled:isIncrementDisabled,children:/*#__PURE__*/_jsx(Plus,{size:props.buttonSize*.6,color:props.buttonTextColor})})]})});}FrameshopQuantitySelector.defaultProps={shopId:\"\",frameshopArticleId:\"\",buttonBackgroundColor:\"#E5E5E5\",buttonTextColor:\"#000000\",buttonBorderColor:\"#E5E5E5\",buttonSize:30,fontSize:14,fontWeight:\"bold\",textColor:\"#000000\",initialQuantity:1};addPropertyControls(FrameshopQuantitySelector,{shopId:{type:ControlType.String,title:\"ShopID\",defaultValue:\"\"},frameshopArticleId:{type:ControlType.String,title:\"Frameshop Article ID\",defaultValue:\"\"},buttonBackgroundColor:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#E5E5E5\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#000000\"},buttonBorderColor:{type:ControlType.Color,title:\"Button Border Color\",defaultValue:\"#E5E5E5\"},buttonSize:{type:ControlType.Number,title:\"Button Size\",defaultValue:30,min:20,max:100,unit:\"px\",displayStepper:true},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:14,min:8,max:36,unit:\"px\"},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],optionTitles:[\"Thin\",\"Extra Light\",\"Light\",\"Regular\",\"Medium\",\"Semi Bold\",\"Bold\",\"Extra Bold\",\"Black\"],defaultValue:\"400\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameshopQuantitySelector\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FrameshopQuantitySelector.map", "// Generated by Framer (c07a8c1)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Space Mono-regular\",\"GF;Space Mono-700\",\"GF;Space Mono-700italic\",\"GF;Space Mono-italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Space Mono\",openType:true,source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/spacemono/v15/i7dPIFZifjKcF5UAWdDRUEN2RFq7AwU.woff2\",weight:\"400\"},{family:\"Space Mono\",openType:true,source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/spacemono/v15/i7dMIFZifjKcF5UAWdDRaPpZYFeQHwyVd3U.woff2\",weight:\"700\"},{family:\"Space Mono\",openType:true,source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/spacemono/v15/i7dSIFZifjKcF5UAWdDRYERE_FeaHi6QZ3WfYg.woff2\",weight:\"700\"},{family:\"Space Mono\",openType:true,source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/spacemono/v15/i7dNIFZifjKcF5UAWdDRYER8RXi-EwWMbg.woff2\",weight:\"400\"}]}];export const css=[\".framer-QDpKO .framer-styles-preset-17kfpr5:not(.rich-text-wrapper), .framer-QDpKO .framer-styles-preset-17kfpr5.rich-text-wrapper p { --framer-font-family: \\\"Space Mono\\\", monospace; --framer-font-family-bold: \\\"Space Mono\\\", monospace; --framer-font-family-bold-italic: \\\"Space Mono\\\", monospace; --framer-font-family-italic: \\\"Space Mono\\\", monospace; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 14px; --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.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-a426443f-8dc9-4426-9a4f-42af5984bedf, #3f3f3f); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-QDpKO\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "iUACmf,IAAMA,GAAaC,GAASC,CAAO,EAAQC,GAAW,CAAC,YAAY,WAAW,EAAQC,GAAkB,eAAqBC,GAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,EAAE,SAASC,GAAqBC,KAAaC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAE,OAAAD,GAAU,QAAQE,GAASA,GAAS,OAAO,OAAOD,EAAcF,EAAUG,CAAO,CAAC,CAAC,EAASD,CAAc,CAAC,IAAME,GAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQC,GAAW,CAAC,CAAC,MAAAC,EAAM,SAAAC,CAAQ,IAAI,CAAC,IAAMC,EAAaC,GAAWC,CAAmB,EAAQC,EAAWL,GAAOE,EAAO,WAAiBI,EAAmBC,GAAQ,KAAK,CAAC,GAAGL,EAAO,WAAAG,CAAU,GAAG,CAAC,KAAK,UAAUA,CAAU,CAAC,CAAC,EAAE,OAAoBG,EAAKJ,EAAoB,SAAS,CAAC,MAAME,EAAa,SAASL,CAAQ,CAAC,CAAE,EAAQQ,GAASC,EAAO,OAAaC,CAAQ,EAAQC,GAAwB,CAAC,QAAQ,YAAY,MAAM,WAAW,EAAQC,GAAS,CAAC,CAAC,SAAAC,EAAS,OAAAC,EAAO,GAAAC,EAAG,MAAAC,EAAM,GAAGC,CAAK,KAAW,CAAC,GAAGA,EAAM,UAAUJ,GAAUI,EAAM,WAAW,GAAG,QAAQN,GAAwBM,EAAM,OAAO,GAAGA,EAAM,SAAS,WAAW,GAAUC,GAAuB,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,OAAO,SAAS,MAAM,SAAS,IAAI,kFAAkF,OAAO,KAAK,EAAE,CAAC,OAAO,aAAa,SAAS,GAAK,OAAO,SAAS,MAAM,SAAS,IAAI,sFAAsF,OAAO,KAAK,EAAE,CAAC,OAAO,aAAa,SAAS,GAAK,OAAO,SAAS,MAAM,SAAS,IAAI,yFAAyF,OAAO,KAAK,EAAE,CAAC,OAAO,aAAa,SAAS,GAAK,OAAO,SAAS,MAAM,SAAS,IAAI,qFAAqF,OAAO,KAAK,CAAC,CAAC,CAAC,EAAeC,GAAI,CAAC,imCAAymC,EAAeC,GAAU",
  "names": ["FeatherFonts", "getFonts", "Icon", "cycleOrder", "serializationHash", "variantClassNames", "addPropertyOverrides", "overrides", "variants", "nextOverrides", "variant", "transition1", "Transition", "value", "children", "config", "re", "MotionConfigContext", "transition", "contextValue", "se", "p", "Variants", "motion", "x", "humanReadableVariantMap", "getProps", "fontSize", "height", "id", "width", "props", "createLayoutDependency", "Component", "Y", "ref", "fallbackRef", "pe", "refBinding", "defaultLayoutId", "ae", "activeLocale", "setLocale", "useLocaleInfo", "componentViewport", "useComponentViewport", "style", "className", "layoutId", "nORLI8j0l", "restProps", "baseVariant", "classNames", "clearLoadingGesture", "gestureHandlers", "gestureVariant", "isLoading", "setGestureState", "setVariant", "useVariantState", "layoutDependency", "scopingClassNames", "cx", "LayoutGroup", "Link", "u", "ComponentViewportProvider", "SmartComponentScopedContainer", "RichText2", "css", "FramerCwXWL0LKt", "withCSS", "CwXWL0LKt_default", "addPropertyControls", "ControlType", "addFonts", "quantityEvents", "callback", "listener", "newQuantity", "FrameshopAddToCart", "props", "shopId", "frameshop_article_id", "productName", "price", "productImage", "buttonText", "showIcon", "iconPosition", "buttonBackgroundColor", "buttonTextColor", "buttonFontSize", "buttonFontFamily", "buttonFontWeight", "isButtonBorderRadiusMixed", "buttonTopLeftRadius", "buttonTopRightRadius", "buttonBottomRightRadius", "buttonBottomLeftRadius", "buttonBorderRadius", "isPaddingMixed", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "buttonPadding", "showBorders", "buttonBorderColor", "isBorderWidthMixed", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "buttonBorderWidth", "outOfStockText", "confirmationMessage", "toastBackgroundColor", "toastTextColor", "toastFontSize", "toastFontFamily", "toastFontWeight", "toastLineHeight", "stockQuantity", "setStockQuantity", "ye", "loadingStock", "setLoadingStock", "errorStock", "setErrorStock", "showNotification", "setShowNotification", "quantity", "setQuantity", "ue", "loadGoogleFont", "font", "linkId", "link", "fetchStock", "response", "data", "err", "handleQuantityUpdate", "newQuantity", "quantityEvents", "AddToCart", "cart", "item", "cartUpdateEvents", "containerStyle", "iconStyle", "u", "p", "e", "toastStyle", "addPropertyControls", "ControlType", "FrameshopQuantitySelector", "props", "quantity", "setQuantity", "ye", "stockQuantity", "setStockQuantity", "loadingStock", "setLoadingStock", "errorStock", "setErrorStock", "fetchStock", "response", "data", "err", "ue", "initialQuantity", "quantityEvents", "updateQuantity", "newQuantity", "increaseQuantity", "decreaseQuantity", "isIncrementDisabled", "styles", "p", "u", "l", "a", "addPropertyControls", "ControlType", "fontStore", "fonts", "css", "className"]
}
