{"version":3,"file":"PriceText.CaeHClac.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vhPIfM2D959TQdoLlfpe/TRRA2x4pZ8bGpDbePPyA/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,showStrikethrough}=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:showStrikethrough?\"line-through\":\"none\",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:\"\"},showStrikethrough:{type:ControlType.Boolean,title:\"原價刪除線\",defaultValue:true,enabledTitle:\"開啟\",disabledTitle:\"關閉\"},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\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"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,YAAU,qBAAmB,EAAM,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAE,MAAM,cAAc,WAAW,IAAY,OAAO,aAAa,IAAY,SAAS,SAAS,UAAU,EAAE,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAkB,MAAM,EAAmB,eAAe,EAAkB,eAAe,OAAO,MAAM,cAAc,UAAU,CAAS,EAAE,SAAS,CAAC,EAAoB,EAAc,CAAmB,CAAC,CAAC,EAAe,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAc,MAAM,EAAe,MAAM,cAAc,UAAU,CAAS,EAAE,SAAS,CAAC,EAAg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