!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={3209:(e,t,r)=>{r.d(t,{OP:()=>o,fJ:()=>a,q9:()=>n});const n=100n,o=2,a=0},8400:(e,t,r)=>{r.d(t,{currencyAmountFromCents:()=>a});var n=r(3209);const o={USD:"$",EUR:"€",GBP:"£",CAD:"C$",AUD:"A$",NZD:"NZ$",CHF:"CHF",ARS:"AR$",BRL:"R$",MXN:"MX$"};function a(e,t="USD"){let r="!ERROR";if("number"!=typeof e||!Number.isInteger(e))return console.error("ERROR - currencyAmountFromCents: cents must be an integer number"),r;try{const a=function(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e){if(!Number.isSafeInteger(e))throw new Error("cents must be a safe integer Number (or pass BigInt/string).");t=BigInt(e)}else{if("string"!=typeof e)throw new Error("cents must be a bigint, number, or numeric string.");{const r=e.trim();if(!/^\d+$/.test(r))throw new Error("cents string must contain digits only (e.g., '1234').");t=BigInt(r)}}if(t<n.fJ)throw new Error("cents must be non-negative.");const r=t/n.q9,o=t%n.q9;return`${r.toString()}.${o.toString().padStart(n.OP,"0")}`}(e);r=`${o[t]??"$"}${a}`}catch(e){console.error(`ERROR - currencyAmountFromCents: ${e}`)}return r}},8619:e=>{e.exports=require("@mui/material")},9870:e=>{e.exports=require("i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>d});var o=r(2015),a=r.n(o),i=r(8619),s=r(9870),u=r.n(s),c=r(8400),l=r(9825),m=r.n(l);const p=({amount:e,dueDate:t,toName:r,fromName:n})=>a().createElement(i.CardContent,{sx:{p:4}},a().createElement(i.Box,null,a().createElement(i.Box,null,a().createElement(i.Typography,{variant:"h4",sx:{mb:.5}},(()=>null!=e?(0,c.currencyAmountFromCents)(e):a().createElement(i.Skeleton,{variant:"rectangular",width:110,height:40}))()),t&&a().createElement(i.Typography,{variant:"body2",sx:{color:"text.secondary",mb:3}},u().translate("general.due")," ",t))),a().createElement(i.Box,{sx:{display:"flex",flexDirection:"column",gap:1,mb:3}},a().createElement(i.Box,{sx:{display:"flex",gap:4}},a().createElement(i.Typography,{variant:"body2",sx:{color:"text.secondary",minWidth:48}},u().translate("general.to")),a().createElement(i.Typography,{variant:"body2"},r)),a().createElement(i.Box,{sx:{display:"flex",gap:4}},a().createElement(i.Typography,{variant:"body2",sx:{color:"text.secondary",minWidth:48}},u().translate("general.from")),a().createElement(i.Typography,{variant:"body2"},n))));p.propTypes={amount:m().number.isRequired,dueDate:m().string.isRequired,toName:m().string.isRequired,fromName:m().string.isRequired};const d=p;return n})()));
//# sourceMappingURL=order-summary.js.map