{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/mAVP3QW4KKgAW03impLt/PaLcMaEDpJwElPK11swc/FramerShopAddToCart.js", "ssg:https://framerusercontent.com/modules/9JQ4Vyv8r3xfg5bzj94T/0LLVLYGuFGjau0GdzVal/g14a8fKjc.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{PlusCircle}from\"lucide-react\";import{cartUpdateEvents}from\"https://framerusercontent.com/modules/oBPN8kZKhyOiyZAudN4y/MinPYtZ71UescYPKKdQb/FramerShop.js\";export function FramerShopAddToCart(props){const AddToCart=()=>{let cart=JSON.parse(localStorage.getItem(\"cart\")||\"[]\");let item=cart.find(item=>item.id===props.articleId);if(item){item.quantity+=1;}else{cart.push({id:props.articleId,name:props.productName,quantity:1,price:props.price,image:props.productImage});}console.log(`Ajout au panier de l'article ID: ${props.articleId}, Prix: ${props.price}`);localStorage.setItem(\"cart\",JSON.stringify(cart));cartUpdateEvents.publish(\"cartUpdated\",{});};const containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",backgroundColor:props.buttonBackgroundColor,color:props.buttonTextColor,fontSize:`${props.buttonFontSize}px`,fontFamily:props.buttonFontFamily,fontWeight:props.buttonFontWeight,borderRadius:props.isButtonBorderRadiusMixed?`${props.buttonTopLeftRadius}px ${props.buttonTopRightRadius}px ${props.buttonBottomRightRadius}px ${props.buttonBottomLeftRadius}px`:`${props.buttonBorderRadius}px`,padding:props.isPaddingMixed?`${props.paddingTop}px ${props.paddingRight}px ${props.paddingBottom}px ${props.paddingLeft}px`:`${props.buttonPadding}px`,cursor:\"pointer\",width:\"100%\",borderColor:props.showBorders?props.buttonBorderColor:\"transparent\",borderWidth:props.showBorders?props.isBorderWidthMixed?`${props.borderTopWidth}px ${props.borderRightWidth}px ${props.borderBottomWidth}px ${props.borderLeftWidth}px`:`${props.buttonBorderWidth}px`:\"0\",borderStyle:props.showBorders?\"solid\":\"none\"};const iconStyle={marginLeft:props.iconPosition===\"right\"?\"8px\":\"0\",marginRight:props.iconPosition===\"left\"?\"8px\":\"0\"};return /*#__PURE__*/_jsxs(\"div\",{onClick:AddToCart,style:containerStyle,children:[props.showIcon&&props.iconPosition===\"left\"&&/*#__PURE__*/_jsx(PlusCircle,{color:props.buttonTextColor,style:iconStyle}),props.buttonText,props.showIcon&&props.iconPosition===\"right\"&&/*#__PURE__*/_jsx(PlusCircle,{color:props.buttonTextColor,style:iconStyle})]});}FramerShopAddToCart.defaultProps={articleId:\"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\"};addPropertyControls(FramerShopAddToCart,{articleId:{type:ControlType.String,title:\"Price 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\"},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}});\nexport const __FramerMetadata__ = {\"exports\":{\"FramerShopAddToCart\":{\"type\":\"reactComponent\",\"name\":\"FramerShopAddToCart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}", "// Generated by Framer (7f69244)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Audiowide-regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Audiowide\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/audiowide/v20/l7gdbjpo0cum0ckerWCtlAXPExpQBw.woff2\",weight:\"400\"}]}];export const css=['.framer-K5OAC .framer-styles-preset-13aljqr:not(.rich-text-wrapper), .framer-K5OAC .framer-styles-preset-13aljqr.rich-text-wrapper p { --framer-font-family: \"Audiowide\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-8da69633-3daf-420e-84a9-5784bf4b7ab8, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 809px) and (min-width: 0px) { .framer-K5OAC .framer-styles-preset-13aljqr:not(.rich-text-wrapper), .framer-K5OAC .framer-styles-preset-13aljqr.rich-text-wrapper p { --framer-font-family: \"Audiowide\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-8da69633-3daf-420e-84a9-5784bf4b7ab8, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-K5OAC\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "uHAAqR,SAASA,EAAoBC,EAAM,CAAC,IAAMC,EAAU,IAAI,CAAC,IAAIC,EAAK,KAAK,MA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,CAAC,CAAC,ECCrxJC,EAAU,UAAU,CAAC,sBAAsB,CAAC,EAAS,IAAMC,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,YAAY,OAAO,SAAS,MAAM,SAAS,IAAI,iFAAiF,OAAO,KAAK,CAAC,CAAC,CAAC,EAAeC,EAAI,CAAC,urBAAurB,yuBAAyuB,EAAeC,EAAU",
  "names": ["FramerShopAddToCart", "props", "AddToCart", "cart", "item", "cartUpdateEvents", "containerStyle", "iconStyle", "u", "p", "ok", "addPropertyControls", "ControlType", "showIcon", "showBorders", "fontStore", "fonts", "css", "className"]
}
