{"version":3,"file":"GiftCard.BlYKz8Yc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZD3H2kRi9yGM6FFXnlnJ/G4TQsrCau6c6kuh9hfd5/GiftCard.js"],"sourcesContent":["// Gift showcase component with multiple gifts, RTL layout, elegant and clean design\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GiftCard(props){const{gifts=[{giftImage:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gift\"},title:\"هدية رائعة\",subtitle:\"هدية مميزة لك\",originalPrice:\"100 ريال\"}],cardColor=\"#FFFFFF\",titleColor=\"#2D3748\",subtitleColor=\"#718096\",priceColor=\"#E53E3E\",freeGiftBadgeColor=\"#38A169\",freeGiftText=\"هدية مجانية 🎁\",titleFont,subtitleFont,priceFont,freeGiftFont,borderRadius=12,gap=16}=props;const isFixedWidth=props?.style&&props.style.width===\"100%\";const isFixedHeight=props?.style&&props.style.height===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",direction:\"rtl\",display:\"grid\",gridTemplateColumns:\"repeat(auto-fit, minmax(280px, 1fr))\",gap,...isFixedWidth?{}:{minWidth:\"max-content\"},...isFixedHeight?{}:{minHeight:\"max-content\"}},children:gifts.map((gift,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:cardColor,borderRadius,padding:20,display:\"flex\",flexDirection:\"column\",gap:16,boxShadow:\"0 2px 8px rgba(0, 0, 0, 0.06)\",border:\"1px solid rgba(0, 0, 0, 0.04)\",position:\"relative\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{alignSelf:\"flex-start\",background:freeGiftBadgeColor,color:\"#FFFFFF\",padding:\"6px 12px\",borderRadius:6,...freeGiftFont},children:freeGiftText}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",aspectRatio:\"1.5 / 1\",borderRadius:borderRadius-4,overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"img\",{src:gift.giftImage?.src||\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:gift.giftImage?.alt||\"Gift\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:titleColor,textAlign:\"right\",...titleFont},children:gift.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:subtitleColor,textAlign:\"right\",wordWrap:\"break-word\",...subtitleFont},children:gift.subtitle}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"flex-end\",gap:8,marginTop:12},children:/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:\"#FFF5F5\",padding:\"8px 16px\",borderRadius:8,border:`2px solid ${priceColor}`},children:/*#__PURE__*/_jsx(\"span\",{style:{color:priceColor,textDecoration:\"line-through\",fontSize:\"18px\",fontWeight:\"bold\",...priceFont},children:gift.originalPrice})})})]})]},index))});}addPropertyControls(GiftCard,{gifts:{type:ControlType.Array,title:\"Gifts\",control:{type:ControlType.Object,controls:{giftImage:{type:ControlType.ResponsiveImage,title:\"Gift Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"هدية رائعة\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"هدية مميزة لك\"},originalPrice:{type:ControlType.String,title:\"Original Price\",defaultValue:\"100 ريال\"}}},defaultValue:[{giftImage:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gift\"},title:\"هدية رائعة\",subtitle:\"هدية مميزة لك\",originalPrice:\"100 ريال\"}],maxCount:10},freeGiftText:{type:ControlType.String,title:\"Free Gift Text\",defaultValue:\"هدية مجانية 🎁\"},cardColor:{type:ControlType.Color,title:\"Card Color\",defaultValue:\"#FFFFFF\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#2D3748\"},subtitleColor:{type:ControlType.Color,title:\"Subtitle Color\",defaultValue:\"#718096\"},priceColor:{type:ControlType.Color,title:\"Price Color\",defaultValue:\"#E53E3E\"},freeGiftBadgeColor:{type:ControlType.Color,title:\"Free Gift Badge Color\",defaultValue:\"#38A169\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},subtitleFont:{type:ControlType.Font,title:\"Subtitle Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},priceFont:{type:ControlType.Font,title:\"Price Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},freeGiftFont:{type:ControlType.Font,title:\"Free Gift Font\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:12,min:0,max:24,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap Between Cards\",defaultValue:16,min:0,max:40,step:2,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GiftCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingUR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