{"version":3,"file":"PriceText.Bcp6xLD7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vhPIfM2D959TQdoLlfpe/CMMxKvGwo4VaTxNxdK5T/PriceText.js"],"sourcesContent":["// 價格文字元件：上方顯示原價（較小、劃線），下方顯示特價（較大）\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PriceText(props){const{originalPrice,salePrice,originalPricePrefix,originalPriceSuffix,salePricePrefix,salePriceSuffix,originalPriceFont,salePriceFont,originalPriceColor,salePriceColor,alignment}=props;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,width:\"max-content\",alignItems:alignment===\"left\"?\"flex-start\":alignment===\"center\"?\"center\":\"flex-end\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{...originalPriceFont,color:originalPriceColor,textDecoration:\"line-through\",width:\"max-content\",textAlign:alignment},children:[originalPricePrefix,originalPrice,originalPriceSuffix]}),/*#__PURE__*/_jsxs(\"div\",{style:{...salePriceFont,color:salePriceColor,width:\"max-content\",textAlign:alignment},children:[salePricePrefix,salePrice,salePriceSuffix]})]});}addPropertyControls(PriceText,{originalPrice:{type:ControlType.String,title:\"原價\",defaultValue:\"1,299\"},originalPricePrefix:{type:ControlType.String,title:\"原價前綴\",defaultValue:\"$\"},originalPriceSuffix:{type:ControlType.String,title:\"原價後綴\",defaultValue:\"\"},salePrice:{type:ControlType.String,title:\"特價\",defaultValue:\"999\"},salePricePrefix:{type:ControlType.String,title:\"特價前綴\",defaultValue:\"$\"},salePriceSuffix:{type:ControlType.String,title:\"特價後綴\",defaultValue:\"\"},alignment:{type:ControlType.Enum,title:\"對齊\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"靠左\",\"置中\",\"靠右\"],defaultValue:\"left\",displaySegmentedControl:true},originalPriceFont:{type:ControlType.Font,title:\"原價字型\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},originalPriceColor:{type:ControlType.Color,title:\"原價顏色\",defaultValue:\"#CCCCCC\"},salePriceFont:{type:ControlType.Font,title:\"特價字型\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},salePriceColor:{type:ControlType.Color,title:\"特價顏色\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PriceText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PriceText.map"],"mappings":"4JAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,gBAAc,YAAU,sBAAoB,sBAAoB,kBAAgB,kBAAgB,oBAAkB,gBAAc,qBAAmB,iBAAe,aAAW,EAAM,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAE,MAAM,cAAc,WAAW,IAAY,OAAO,aAAa,IAAY,SAAS,SAAS,WAAW,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAkB,MAAM,EAAmB,eAAe,eAAe,MAAM,cAAc,UAAU,EAAU,CAAC,SAAS,CAAC,EAAoB,EAAc,EAAoB,CAAC,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAc,MAAM,EAAe,MAAM,cAAc,UAAU,EAAU,CAAC,SAAS,CAAC,EAAgB,EAAU,EAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,kBAHjwB,IAAoD,CAG+sB,EAAoB,EAAU,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,K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