openstack-uicore-foundation 5.0.45-beta.0 → 5.0.46-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +1 -22
- package/lib/components/order-invoice-pdf.js +2 -0
- package/lib/components/order-invoice-pdf.js.map +1 -0
- package/package.json +3 -3
- package/lib/utils/lazy-with-reload.js +0 -2
- package/lib/utils/lazy-with-reload.js.map +0 -1
- package/package-lock.json +0 -22291
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
|
-
"Bash(
|
|
5
|
-
"Bash(sed -i 's|from \"\"openstack-uicore-foundation/lib/utils/money\"\"|from \"\"../../../utils/money\"\"|' /home/santi/dev/openstack-uicore-foundation/src/components/mui/FormItemTable/index.js)",
|
|
6
|
-
"Bash(sed -i 's|from \"\"openstack-uicore-foundation/lib/utils/methods\"\"|from \"\"../../../utils/methods\"\"|' /home/santi/dev/openstack-uicore-foundation/src/components/mui/FormItemTable/helpers.js)",
|
|
7
|
-
"Bash(python3 -c \"import json,sys; p=json.load\\(sys.stdin\\); print\\(''''scripts:'''', json.dumps\\(p.get\\(''''scripts'''',{}\\), indent=2\\)\\); print\\(''''jest:'''', json.dumps\\(p.get\\(''''jest'''',{}\\), indent=2\\)\\)\")",
|
|
8
|
-
"Bash(npx jest:*)",
|
|
9
|
-
"Bash(npx eslint:*)",
|
|
10
|
-
"Bash(npx *)",
|
|
11
|
-
"Bash(yarn test:*)",
|
|
12
|
-
"Bash(yarn jest:*)",
|
|
13
|
-
"Bash(npm test *)",
|
|
14
|
-
"Read(//tmp/smoke-test/**)",
|
|
15
|
-
"Bash(node -e ' *)",
|
|
16
|
-
"Read(//home/santi/dev/summit-admin/**)",
|
|
17
|
-
"Bash(cd /home/santi/dev/summit-admin && grep *)",
|
|
18
|
-
"Bash(cd /home/santi/dev/summit-admin && find *)",
|
|
19
|
-
"Bash(cd /home/santi/dev/summit-admin && ls *)",
|
|
20
|
-
"Bash(cd /home/santi/dev/summit-admin && cat *)",
|
|
21
|
-
"Bash(cd /home/santi/dev/summit-admin && git status*)",
|
|
22
|
-
"Bash(cd /home/santi/dev/summit-admin && git log*)",
|
|
23
|
-
"Bash(cd /home/santi/dev/summit-admin && git diff*)",
|
|
24
|
-
"Bash(cd /home/santi/dev/summit-admin && git show*)",
|
|
25
|
-
"Bash(cd /home/santi/dev/summit-admin && node -e *)"
|
|
4
|
+
"Bash(npx jest *)"
|
|
26
5
|
]
|
|
27
6
|
}
|
|
28
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!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,o)=>{o.d(t,{OP:()=>n,fJ:()=>l,iC:()=>i,q9:()=>r});const r=100n,n=2,l=0,i=1e3},8400:(e,t,o)=>{o.d(t,{currencyAmountFromCents:()=>l});var r=o(3209);const n={USD:"$",EUR:"€",GBP:"£",CAD:"C$",AUD:"A$",NZD:"NZ$",CHF:"CHF",ARS:"AR$",BRL:"R$",MXN:"MX$"};function l(e,t="USD"){let o="!ERROR";if("number"!=typeof e||!Number.isInteger(e))return console.error("ERROR - currencyAmountFromCents: cents must be an integer number"),o;try{const l=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 o=e.trim();if(!/^\d+$/.test(o))throw new Error("cents string must contain digits only (e.g., '1234').");t=BigInt(o)}}if(t<r.fJ)throw new Error("cents must be non-negative.");const o=t/r.q9,n=t%r.q9;return`${o.toString()}.${n.toString().padStart(r.OP,"0")}`}(e);o=`${n[t]??"$"}${l}`}catch(e){console.error(`ERROR - currencyAmountFromCents: ${e}`)}return o}}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,o),l.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{OrderPdf:()=>S,buildRows:()=>C,generateInvoicePDF:()=>R,previewPDF:()=>P});const n=require("react");var l=o.n(n);const i=require("prop-types");var c=o.n(i);const a=require("@react-pdf/renderer"),d=require("@babel/runtime/helpers/defineProperty");var s=o.n(d);const m=require("moment-timezone");var u=o.n(m),y=o(8400),f=o(3209);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){s()(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const g=(e,t="LOC",o="dddd Do h:mm a")=>e?"LOC"===t?u()(e*f.iC).format(o):u()(e*f.iC).tz(t).format(o):"",w=e=>e?[e.address_1,e.address_2,e.city,e.state,e.zip_code??e.postal_code,e.country].filter(Boolean).join(", "):"",h=e=>e?`${(null==e?void 0:e.short_name)??""}${null!=e&&e.name?` (${null==e?void 0:e.name})`:""}`:"",E=e=>{if(null==e)return"";const t=(0,y.currencyAmountFromCents)(Math.abs(e));return e<0?`-${t}`:t},C=(e,t)=>{const o=[];let r=0;(e.forms||[]).forEach((e=>{(e.items||[]).filter((e=>(e.quantity??1)>0)).forEach((n=>{var l,i;const c=!!n.canceled_by_id,a=c?`Cancelled by ${n.canceled_by_full_name} on ${g(n.canceled_at,t.time_zone_id,"YYYY/MM/DD HH:mm")}`:"";r+=n.amount,o.push({rowKey:`item-${n.line_id??n.id}`,type:"item",code:String(e.code||""),description:String((null===(l=n.type)||void 0===l?void 0:l.name)||n.title||""),addon:String((null===(i=e.add_on)||void 0===i?void 0:i.name)||""),qty:String(n.quantity??1),price:(0,y.currencyAmountFromCents)(n.amount),balanceCents:r,cancelled:c,cancelledBy:a})}));const n=e.discount_in_cents??0;n&&(r-=n,o.push({rowKey:`discount-${e.id}`,type:"discount",code:"DIS",description:String(e.discount||""),addon:"",qty:"",price:(0,y.currencyAmountFromCents)(n),balanceCents:r}))})),(e.fees||[]).forEach((e=>{r+=e.amount,o.push({rowKey:`fee-${e.id}`,type:"fee",code:"PAYFEE",description:String(e.title||""),addon:"",qty:"1",price:(0,y.currencyAmountFromCents)(e.amount),balanceCents:r})}));return[...(e.payments||[]).map((e=>b(b({},e),{},{_rowType:"payment"}))),...(e.refunds||[]).map((e=>b(b({},e),{},{_rowType:"refund"})))].sort(((e,t)=>e.created-t.created)).forEach((e=>{"payment"===e._rowType?(r-=e.amount,o.push({rowKey:`payment-${e.id}`,type:"payment",code:"PAY",description:`Paid via ${e.method||"card"}`,subDescription:g(e.created,t.time_zone_id,"YYYY/MM/DD HH:mm"),addon:"",qty:"1",price:(0,y.currencyAmountFromCents)(e.amount),balanceCents:r})):(r+=e.amount,o.push({rowKey:`refund-${e.id}`,type:"refund",code:"REF",description:String(e.reason||"Refund"),subDescription:String(e.status||""),addon:"",qty:"1",price:(0,y.currencyAmountFromCents)(e.amount),balanceCents:r}))})),(e.notes||[]).forEach((e=>{o.push({rowKey:`note-${e.id}`,type:"note",content:String(e.content||"")})})),o},x=({styles:e,label:t,value:o,noBorder:r=!1})=>l().createElement(a.View,{style:[e.fieldRow,r&&e.fieldRowNoBorder]},l().createElement(a.Text,{style:e.fieldLabel},t??""),l().createElement(a.Text,{style:e.fieldValue},o??"")),T={ArrowUpward:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",ArrowDownward:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",Refresh:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",DoNotDisturb:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"},B=({name:e,color:t,size:o=8})=>l().createElement(a.Svg,{width:o,height:o,viewBox:"0 0 24 24",style:{marginRight:3}},l().createElement(a.Path,{d:T[e],fill:t})),D=({row:e,styles:t,rowStyles:o})=>{if("note"===e.type)return l().createElement(a.View,{style:t.tdNote},l().createElement(a.Text,{style:[t.colCode,t.muted]},"NOTE"),l().createElement(a.Text,{style:[{flex:1},t.muted]},e.content));const r=o[e.cancelled?"cancelled":e.type];return l().createElement(a.View,{style:r.row},l().createElement(a.Text,{style:r.code},e.code),r.typeBadge?l().createElement(a.View,{style:t.typeCell},l().createElement(B,{name:r.typeBadge.icon,color:r.typeBadge.iconColor}),l().createElement(a.Text,{style:[t.typeBadgeLabel,{color:r.typeBadge.labelColor}]},r.typeBadge.label)):l().createElement(a.View,{style:t.colType}),l().createElement(a.View,{style:t.colDescMultiLine},l().createElement(a.Text,{style:r.descText},"item"===e.type?`${e.description} - Total: ${e.qty}`:e.description),e.cancelledBy&&l().createElement(a.Text,{style:t.muted},e.cancelledBy),e.subDescription&&l().createElement(a.Text,{style:t.muted},e.subDescription)),l().createElement(a.Text,{style:r.price},e.price),null!=e.balanceCents?l().createElement(a.Text,{style:[r.balance??t.colBalance,e.balanceCents<0&&t.colBalanceNegative]},E(e.balanceCents)):l().createElement(a.View,{style:t.colBalance}))},v=({styles:e,cancelledTotal:t,refundsTotal:o,retained:r,credited:n})=>{const i=r>0?"#c62828":"#1b5e20",c=r>0?"Retained as cancellation fee":n>0?"Credited to Payment Method":"Balance",d=r>0?r:n>0?n:r;return l().createElement(a.View,{style:e.reconciliationWrapper,wrap:!1},l().createElement(a.View,{style:e.reconciliationBox},l().createElement(a.Text,{style:e.reconciliationTitle},"Reconciliation"),l().createElement(a.View,{style:e.reconciliationRow},l().createElement(a.Text,{style:e.reconciliationLabel},"Cancelled"),l().createElement(a.Text,{style:e.reconciliationValue},(0,y.currencyAmountFromCents)(t??0))),l().createElement(a.View,{style:e.reconciliationRow},l().createElement(a.Text,{style:e.reconciliationLabel},"Refunded"),l().createElement(a.Text,{style:e.reconciliationValue},(0,y.currencyAmountFromCents)(o??0))),l().createElement(a.View,{style:e.reconciliationDivider}),l().createElement(a.View,{style:e.reconciliationRow},l().createElement(a.Text,{style:e.reconciliationLabel},c),l().createElement(a.Text,{style:[e.reconciliationValue,{color:i}]},(0,y.currencyAmountFromCents)(d??0)))))},S=({order:e,summit:t,logoSrc:o,theme:r})=>{var n,i,c,d;if(!e)throw new Error("OrderPdf: order is required");if(!t)throw new Error("OrderPdf: summit is required");const s=(e=>{var t;const o=null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily;return o?o.split(",")[0].trim().replace(/^['"]|['"]$/g,""):"Helvetica"})(r),m=(e=>a.StyleSheet.create({page:{backgroundColor:"#F7F7F8",padding:64,fontFamily:e,fontSize:8,color:"#212529"},headerRow:{flexDirection:"row",marginBottom:20,gap:20},cellLeft:{flex:1,backgroundColor:"#ffffff",borderRadius:10,borderWidth:1,borderColor:"#DEE2E6",paddingHorizontal:18,paddingVertical:10,justifyContent:"center"},logo:{width:"100%",height:84,objectFit:"contain",marginBottom:0,paddingBottom:0},cellRight:{flex:1,backgroundColor:"#ffffff",borderRadius:10,borderWidth:1,borderColor:"#DEE2E6",paddingHorizontal:18,paddingVertical:10},invoiceTitle:{fontFamily:e,fontWeight:"bold",fontSize:14,lineHeight:1.5,letterSpacing:0,color:"rgba(17, 19, 21, 1)",marginBottom:8},fieldRow:{fontSize:8,lineHeight:1.8,flexDirection:"row",color:"rgba(0, 0, 0, 0.87)",paddingBottom:3,paddingTop:6,borderBottom:"1px solid rgba(224, 224, 224, 1)",alignContent:"flex-start"},fieldRowNoBorder:{borderBottomWidth:0},fieldLabel:{flex:4,fontWeight:"bold",color:"rgba(0, 0, 0, 0.87)"},fieldValue:{flex:9},tableWrapper:{marginTop:8,borderRadius:8,borderWidth:1,borderStyle:"solid",borderColor:"#eee",backgroundColor:"#ffffff"},table:{fontFamily:e,borderRadius:8,overflow:"hidden"},thRow:{flexDirection:"row",backgroundColor:"#f0f0f0",paddingVertical:12,paddingHorizontal:12,alignItems:"center",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},thText:{fontFamily:e,fontSize:7,fontWeight:600,color:"#333333"},tdRow:{backgroundColor:"#FFFFFF",flexDirection:"row",paddingHorizontal:12,paddingVertical:14,alignItems:"center",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},tdPayment:{flexDirection:"row",paddingHorizontal:12,paddingVertical:14,alignItems:"flex-start",backgroundColor:"#f0fdf4",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},tdRefund:{flexDirection:"row",paddingHorizontal:12,paddingVertical:14,alignItems:"flex-start",backgroundColor:"#fff7ed",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},tdNote:{flexDirection:"row",paddingHorizontal:12,paddingVertical:10,alignItems:"flex-start",backgroundColor:"#FFFFFF",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},tdAmountDue:{flexDirection:"row",paddingHorizontal:12,paddingVertical:14,alignItems:"center",backgroundColor:"#fafafa",borderTopWidth:1,borderTopColor:"#000000"},colCode:{width:"12%",fontSize:8},colCodePayment:{width:"12%",fontSize:8,fontWeight:"bold"},colType:{width:"15%",fontSize:8},colDesc:{width:"39%",fontSize:8},colDescMultiLine:{width:"39%",flexDirection:"column",justifyContent:"flex-start"},colPrice:{width:"18%",textAlign:"right",fontSize:8,color:"#333333"},colPriceRefund:{fontFamily:e,width:"18%",textAlign:"right",fontSize:8,fontWeight:"bold",color:"#e65100"},colPricePayment:{fontFamily:e,width:"18%",textAlign:"right",fontSize:8,fontWeight:"bold",color:"#1b5e20"},colBalance:{width:"16%",textAlign:"right",fontSize:8,color:"#666666"},colBalanceNegative:{color:"#dc2626"},tdAmountDueLabel:{fontFamily:e,width:"66%",fontSize:8,fontWeight:700},tdAmountDueValue:{fontFamily:e,width:"16%",textAlign:"right",fontSize:9,fontWeight:700},paymentDesc:{fontFamily:e,fontSize:8,fontWeight:"bold"},muted:{color:"#6C757D",fontSize:8},typeCell:{width:"15%",flexDirection:"row",alignItems:"center"},typeBadgeLabel:{fontSize:8},cancelledText:{color:"#9ca3af",textDecoration:"line-through"},reconciliationWrapper:{flexDirection:"row",paddingHorizontal:12,paddingVertical:12,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#eee"},reconciliationBox:{width:"33%"},reconciliationTitle:{fontFamily:e,fontSize:8,fontWeight:600,color:"#333333",marginBottom:6},reconciliationRow:{flexDirection:"row",justifyContent:"space-between",paddingVertical:2},reconciliationLabel:{fontSize:7,color:"#6C757D"},reconciliationValue:{fontSize:7,color:"#333333",textAlign:"right"},reconciliationDivider:{borderBottomWidth:1,borderBottomColor:"#dee2e6",marginVertical:4}}))(s),u=(e=>({fee:{row:e.tdRow,code:e.colCode,descText:null,price:e.colPrice,typeBadge:{icon:"ArrowUpward",iconColor:"#ff9800",label:"Charge",labelColor:"#333333"}},item:{row:e.tdRow,code:e.colCode,descText:null,price:e.colPrice,typeBadge:{icon:"ArrowUpward",iconColor:"#ff9800",label:"Charge",labelColor:"#333333"}},discount:{row:e.tdPayment,code:e.colCodePayment,descText:e.paymentDesc,price:e.colPricePayment,typeBadge:{icon:"ArrowDownward",iconColor:"#4caf50",label:"Discount",labelColor:"#1b5e20"}},payment:{row:e.tdPayment,code:e.colCodePayment,descText:e.paymentDesc,price:e.colPricePayment,typeBadge:{icon:"ArrowDownward",iconColor:"#4caf50",label:"Payment",labelColor:"#1b5e20"}},refund:{row:e.tdRefund,code:e.colCodePayment,descText:e.paymentDesc,price:e.colPriceRefund,typeBadge:{icon:"Refresh",iconColor:"#ea580c",label:"Refund",labelColor:"#e65100"}},cancelled:{row:e.tdRow,code:[e.colCode,e.cancelledText],descText:e.cancelledText,price:[e.colPrice,e.cancelledText],balance:[e.colBalance,e.cancelledText],typeBadge:{icon:"DoNotDisturb",iconColor:"#9ca3af",label:"Cancelled",labelColor:"#9ca3af"}}}))(m),y=C(e,t),{net_amount:f,amount_due:p,cancelled_total:b=0,refunds_total:T=0,retained:B=0,credited_to_payment_method:S=0}=e,R=f||p||0,P=(null===(n=e.client)||void 0===n?void 0:n.contact_name)||e.purchased_by_full_name||"",V=(null===(i=e.client)||void 0===i?void 0:i.company_name)||"",F=w(e.address)||"N/A";return l().createElement(a.Document,null,l().createElement(a.Page,{size:"A4",orientation:"portrait",style:m.page},l().createElement(a.View,{style:m.headerRow,wrap:!1},l().createElement(a.View,{style:m.cellLeft},o?l().createElement(a.Image,{src:o,style:m.logo}):null),l().createElement(a.View,{style:m.cellRight},l().createElement(a.Text,{style:m.invoiceTitle},"Invoice"),l().createElement(x,{styles:m,label:"Order",value:e.number}),l().createElement(x,{styles:m,label:"Date",value:e.purchased_date?g(e.purchased_date,t.time_zone_id,"YYYY/MM/DD hh:mm a"):"Pending",noBorder:!0}))),l().createElement(a.View,{style:m.headerRow,wrap:!1},l().createElement(a.View,{style:m.cellLeft},l().createElement(x,{styles:m,label:"Client",value:`${V}\n${P}`}),l().createElement(x,{styles:m,label:"Address",value:F,noBorder:!0})),l().createElement(a.View,{style:m.cellRight},l().createElement(x,{styles:m,label:"Event",value:t.name??""}),l().createElement(x,{styles:m,label:"Venue",value:h(null==t||null===(c=t.main_locations)||void 0===c?void 0:c[0])??""}),l().createElement(x,{styles:m,label:"Address",value:w(null==t||null===(d=t.main_locations)||void 0===d?void 0:d[0])??"",noBorder:!0}))),l().createElement(a.View,{style:m.tableWrapper},l().createElement(a.View,{style:m.table},l().createElement(a.View,{style:m.thRow,fixed:!0},l().createElement(a.Text,{style:[m.thText,m.colCode]},"Code"),l().createElement(a.Text,{style:[m.thText,m.colType]},"Type"),l().createElement(a.Text,{style:[m.thText,m.colDesc]},"Details"),l().createElement(a.Text,{style:[m.thText,m.colPrice]},"Amount"),l().createElement(a.Text,{style:[m.thText,m.colBalance]},"Balance")),y.map((e=>l().createElement(D,{key:e.rowKey,row:e,styles:m,rowStyles:u}))),l().createElement(v,{styles:m,cancelledTotal:b,refundsTotal:T,retained:B,credited:S}),l().createElement(a.View,{style:m.tdAmountDue},l().createElement(a.Text,{style:m.tdAmountDueLabel},"AMOUNT DUE"),l().createElement(a.View,{style:{width:"18%"}}),l().createElement(a.Text,{style:[m.tdAmountDueValue,{color:(R??0)>0?"#e65100":"#1b5e20"}]},E(R??0)))))))};S.propTypes={order:c().object.isRequired,summit:c().object.isRequired,logoSrc:c().string,theme:c().object};const R=async(e,t,{logoSrc:o,theme:r}={})=>{try{const n=await(0,a.pdf)(l().createElement(S,{order:e,summit:t,logoSrc:o,theme:r})).toBlob(),i=URL.createObjectURL(n),c=document.createElement("a");c.href=i,c.download=`invoice-${e.number}.pdf`.toLowerCase().replace(/\s+/g,"-"),document.body.appendChild(c),c.click(),document.body.removeChild(c),setTimeout((()=>URL.revokeObjectURL(i)),6e4)}catch(e){throw console.error("Error generating invoice PDF:",e),e}},P=async(e,t,{logoSrc:o,theme:r}={})=>{const n=window.open("","_blank");try{const i=await(0,a.pdf)(l().createElement(S,{order:e,summit:t,logoSrc:o,theme:r})).toBlob(),c=URL.createObjectURL(i);n&&(n.location.href=c),setTimeout((()=>URL.revokeObjectURL(c)),6e4)}catch(e){throw console.error("Error generating invoice PDF preview:",e),n&&n.close(),e}};return r})()));
|
|
2
|
+
//# sourceMappingURL=order-invoice-pdf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/order-invoice-pdf.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,sFCTF,MAAMC,EAAe,KACfC,EAAqB,EAGrBC,EAAW,EAkBXC,EAAyB,G,sECCtC,MAAMC,EAAkB,CACtBC,IAAK,IACLC,IAAK,IACLC,IAAK,IACLC,IAAK,KACLC,IAAK,KACLC,IAAK,MACLC,IAAK,MACLC,IAAK,MACLC,IAAK,KACLC,IAAK,OA+HA,SAASC,EAAwBC,EAAOC,EAAW,OACxD,IAAIC,EAAS,SAEb,GAAqB,iBAAVF,IAAuBG,OAAOC,UAAUJ,GAEjD,OADAK,QAAQC,MAAM,oEACPJ,EAGT,IACE,MAAMK,EA/CH,SAAyBP,GAC9B,IAAIQ,EAGJ,GAAqB,iBAAVR,EACTQ,EAAIR,OACC,GAAqB,iBAAVA,EAAoB,CAEpC,IAAKG,OAAOM,c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L,GAC1BM,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAON,EACZG,EAAKI,SAAW,WAAWjO,EAAM8M,aAC9BoB,cACArG,QAAQ,OAAQ,KACnBiG,SAASK,KAAKC,YAAYP,GAC1BA,EAAKQ,QACLP,SAASK,KAAKG,YAAYT,GAC1BU,YAAW,IAAMZ,IAAIa,gBAAgBd,IAzBjB,IA0BtB,CAAE,MAAO9R,GAEP,MADAD,QAAQC,MAAM,gCAAiCA,GACzCA,CACR,GAGW6S,EAAanB,MAAOtN,EAAOC,GAAUkH,UAASC,SAAU,CAAC,KAMpE,MAAMsH,EAASC,OAAOC,KAAK,GAAI,UAE/B,IACE,MAAMrB,QAAaC,EAAAA,EAAAA,KACjBhK,IAAAA,cAAC0D,EAAQ,CAAClH,MAAOA,EAAOC,OAAQA,EAAQkH,QAASA,EAASC,MAAOA,KACjEqG,SACIC,EAAMC,IAAIC,gBAAgBL,GAE5BmB,IACFA,EAAOjP,SAASuO,KAAON,GAIzBa,YAAW,IAAMZ,IAAIa,gBAAgBd,IAnDjB,IAoDtB,CAAE,MAAO9R,GAGP,MAFAD,QAAQC,MAAM,wCAAyCA,GACnD8S,GAAQA,EAAOG,QACbjT,CACR,G","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/./src/utils/money.js","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"@react-pdf/renderer\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/helpers.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/components/field-row.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/components/pdf-icon.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/components/pdf-table-row.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/components/reconciliation-block.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/index.js","webpack://openstack-uicore-foundation/./src/components/order-invoice-pdf/styles.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const ASYNC_SELECT_SAFETY_TIMEOUT = 15000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","/**\n * Copyright 2025 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport {\n BPS,\n CENTS_FACTOR,\n DISCOUNT_TYPES,\n ONE_CENT,\n THREE_DECIMAL_PLACES,\n TWO_DECIMAL_PLACES,\n ZERO_INT\n} from \"./constants\";\n\nconst CURRENCY_SYMBOL = {\n USD: \"$\",\n EUR: \"€\",\n GBP: \"£\",\n CAD: \"C$\",\n AUD: \"A$\",\n NZD: \"NZ$\",\n CHF: \"CHF\",\n ARS: \"AR$\",\n BRL: \"R$\",\n MXN: \"MX$\",\n};\n\n/**\n * Convert a decimal money amount to integer cents safely (no floating point math).\n *\n * Why this exists:\n * - `Math.round(parseFloat(x) * 100)` can be wrong due to IEEE-754 floating point errors\n * (e.g. 1.005 * 100 may become 100.499999..., rounding down unexpectedly).\n *\n * Input:\n * - number or string (recommended: string from API/UI)\n * - Examples: \"12.34\", \"1,234.56\", \"1234,56\", 12.34\n *\n * Output:\n * - Number cents (exact), e.g. \"12.34\" -> 1234\n *\n * Rounding:\n * - Half-up to 2 decimals (>= 0.005 USD rounds up by 1 cent).\n *\n * Notes:\n * - Amounts are assumed to be NON-negative (per your requirement).\n * - Throws on invalid formats (does not silently return 0).\n */\nexport function amountToCents(amount) {\n if (amount == null) throw new Error(\"amount is required\");\n\n let s = String(amount).trim();\n\n // Normalize common separators:\n // - \"1,234.56\" => \"1234.56\" (remove thousands separators)\n // - \"1234,56\" => \"1234.56\" (convert decimal comma to dot)\n if (s.includes(\",\") && s.includes(\".\")) {\n s = s.replace(/,/g, \"\");\n } else if (s.includes(\",\") && !s.includes(\".\")) {\n s = s.replace(\",\", \".\");\n }\n\n // Validate: digits optionally followed by '.' and more digits\n if (!/^\\d+(\\.\\d+)?$/.test(s)) {\n throw new Error(`Invalid money format: \"${amount}\"`);\n }\n\n const [intPart, fracRaw = \"\"] = s.split(\".\");\n\n // Pad at least 3 fractional digits so we can:\n // - take 2 digits for cents\n // - take the 3rd digit to decide rounding\n const fracPadded = (`${fracRaw}000`);\n\n const tenths = fracPadded[0] ?? \"0\"; // 1st decimal digit\n const hundredths = fracPadded[1] ?? \"0\"; // 2nd decimal digit (cents)\n const thousandths = fracPadded[2] ?? \"0\"; // 3rd decimal digit (rounding decision)\n\n // If there are more than 3 decimals, we track if any non-zero exists after the 3rd.\n // This can matter for policies like bankers rounding; here it's mainly informational.\n const trailing =\n fracRaw.length > THREE_DECIMAL_PLACES\n ? fracRaw.slice(THREE_DECIMAL_PLACES)\n : \"\";\n const hasTrailingNonZero = /[1-9]/.test(trailing);\n\n // Build cents as integer: (dollars * 100) + (first two decimal digits)\n let cents = BigInt(intPart) * CENTS_FACTOR + BigInt(tenths + hundredths);\n\n // Half-up rounding:\n // - If the 3rd digit is >= 5, round up by 1 cent.\n // - If there are more digits beyond the 3rd, \"5xxx\" should also round up.\n const roundUp = thousandths > \"5\" || thousandths === \"5\" || (thousandths === \"5\" && hasTrailingNonZero);\n\n if (roundUp) cents += ONE_CENT;\n\n return Number(cents);\n}\n\n/**\n * Convert an amount in cents to a decimal string (e.g. 1234 -> \"12.34\") safely.\n *\n * Why:\n * - Avoids floating point math (cents / 100) which can lose precision for large integers\n * or if cents is already imprecise as a JS Number.\n *\n * Input:\n * - Accepts: bigint | number | string (digits)\n * - Assumes NON-negative cents (per your requirement).\n *\n * Output:\n * - Always returns a string with exactly 2 decimal places.\n */\nexport function amountFromCents(cents) {\n let c;\n\n // Normalize input to BigInt safely\n if (typeof cents === \"bigint\") {\n c = cents;\n } else if (typeof cents === \"number\") {\n // Ensure it's a safe integer before converting to BigInt\n if (!Number.isSafeInteger(cents)) {\n throw new Error(\"cents must be a safe integer Number (or pass BigInt/string).\");\n }\n c = BigInt(cents);\n } else if (typeof cents === \"string\") {\n const s = cents.trim();\n if (!/^\\d+$/.test(s)) {\n throw new Error(\"cents string must contain digits only (e.g., '1234').\");\n }\n c = BigInt(s);\n } else {\n throw new Error(\"cents must be a bigint, number, or numeric string.\");\n }\n\n if (c < ZERO_INT) {\n throw new Error(\"cents must be non-negative.\");\n }\n\n const amount = c / CENTS_FACTOR;\n const remainder = c % CENTS_FACTOR;\n\n // Always pad remainder to 2 digits\n return `${amount.toString()}.${remainder.toString().padStart(TWO_DECIMAL_PLACES, \"0\")}`;\n}\n\n/**\n * @param cents\n * @param currency\n * @returns {string}\n */\nexport function currencyAmountFromCents(cents, currency = \"USD\") {\n let result = \"!ERROR\";\n\n if (typeof cents !== \"number\" || !Number.isInteger(cents)) {\n console.error(\"ERROR - currencyAmountFromCents: cents must be an integer number\");\n return result;\n }\n\n try {\n const amount = amountFromCents(cents); // \"12.34\"\n const symbol = CURRENCY_SYMBOL[currency] ?? \"$\";\n result = `${symbol}${amount}`;\n } catch (e) {\n console.error(`ERROR - currencyAmountFromCents: ${e}`);\n }\n\n return result;\n}\n\n/**\n * Converts a price string into cents.\n * @param {string} priceString - The price (e.g., $0.30).\n * @returns {number} - The amount converted to cents (e.g., 30).\n */\nexport const parsePrice = (priceString) => {\n if (priceString == null) throw new Error(\"priceString is required\");\n\n let s = String(priceString).trim();\n\n // Reject negatives explicitly (per your requirement).\n if (s.includes(\"-\")) throw new Error(\"Negative amounts are not allowed\");\n\n // Keep only digits and separators. Remove currency symbols/letters/spaces.\n s = s.replace(/[^\\d.,]/g, \"\");\n if (!s) throw new Error(`Invalid price: \"${priceString}\"`);\n\n // Delegate exact cents conversion (no floats)\n return amountToCents(s); // <- your safe BigInt cents converter\n};\n\n/**\n * Formats a discount value in BPS or CENTS to string.\n * @param {number} amount - The discount in BPS or CENTS(e.g., 300 = 3%).\n * @param {string} type - The discount type: \"Amount\" or \"Rate\".\n * @returns {string} - The discount converted to string (e.g., $5).\n */\nexport const formatDiscount = (amount, type) => {\n if (type === DISCOUNT_TYPES.AMOUNT) return currencyAmountFromCents(amount);\n if (type === DISCOUNT_TYPES.RATE) return `${amount / BPS}%`; // transform from bps to percentage\n return \"\";\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"prop-types\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@react-pdf/renderer\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@babel/runtime/helpers/defineProperty\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"moment-timezone\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport moment from \"moment-timezone\";\nimport { currencyAmountFromCents } from \"../../utils/money\";\nimport { MILLISECONDS_IN_SECOND } from \"../../utils/constants\";\n\nexport const DEFAULT_FONT_FAMILY = \"Helvetica\";\n\nexport const formatDate = (\n date,\n timeZone = \"LOC\",\n format = \"dddd Do h:mm a\"\n) => {\n if (!date) return \"\";\n\n if (timeZone === \"LOC\") {\n return moment(date * MILLISECONDS_IN_SECOND).format(format);\n }\n\n return moment(date * MILLISECONDS_IN_SECOND)\n .tz(timeZone)\n .format(format);\n};\n\nexport const formatAddress = (address) => {\n if (!address) return \"\";\n return [\n address.address_1,\n address.address_2,\n address.city,\n address.state,\n address.zip_code ?? address.postal_code,\n address.country\n ]\n .filter(Boolean)\n .join(\", \");\n};\n\nexport const formatVenueName = (location) => {\n if (!location) return \"\";\n return `${location?.short_name ?? \"\"}${location?.name ? ` (${location?.name})` : \"\"}`;\n};\n\n// Reads fontFamily off the consumer's MUI theme so it stays in sync with the\n// rest of their app instead of being duplicated as a separate literal. Only\n// the first name in the CSS font stack is usable here: react-pdf renders\n// with fonts registered via Font.register, so this name must match a family\n// already registered that way in the consuming app.\nexport const getThemeFontFamily = (theme) => {\n const fontFamily = theme?.typography?.fontFamily;\n if (!fontFamily) return DEFAULT_FONT_FAMILY;\n return fontFamily.split(\",\")[0].trim().replace(/^['\"]|['\"]$/g, \"\");\n};\n\nexport const fmtBalance = (cents) => {\n if (cents == null) return \"\";\n const abs = currencyAmountFromCents(Math.abs(cents));\n return cents < 0 ? `-${abs}` : abs;\n};\n\nexport const buildRows = (order, summit) => {\n const rows = [];\n let balanceCents = 0;\n\n (order.forms || []).forEach((form) => {\n (form.items || [])\n .filter((item) => (item.quantity ?? 1) > 0)\n .forEach((item) => {\n // Cancelled is per-item\n const cancelled = !!item.canceled_by_id;\n const cancelledBy = cancelled\n ? `Cancelled by ${item.canceled_by_full_name} on ${formatDate(item.canceled_at, summit.time_zone_id, \"YYYY/MM/DD HH:mm\")}`\n : \"\";\n\n // Cancelled items still accumulate\n balanceCents += item.amount;\n\n rows.push({\n rowKey: `item-${item.line_id ?? item.id}`,\n type: \"item\",\n // Table shows form.code per item row (columnKey: \"formCode\", value: form.code)\n code: String(form.code || \"\"),\n description: String(item.type?.name || item.title || \"\"),\n addon: String(form.add_on?.name || \"\"),\n qty: String(item.quantity ?? 1),\n price: currencyAmountFromCents(item.amount),\n balanceCents,\n cancelled,\n cancelledBy\n });\n });\n\n const discountCents = form.discount_in_cents ?? 0;\n if (discountCents) {\n balanceCents -= discountCents;\n rows.push({\n rowKey: `discount-${form.id}`,\n type: \"discount\",\n code: \"DIS\",\n description: String(form.discount || \"\"),\n addon: \"\",\n qty: \"\",\n price: currencyAmountFromCents(discountCents),\n balanceCents\n });\n }\n });\n\n (order.fees || []).forEach((fee) => {\n balanceCents += fee.amount;\n rows.push({\n rowKey: `fee-${fee.id}`,\n type: \"fee\",\n code: \"PAYFEE\",\n description: String(fee.title || \"\"),\n addon: \"\",\n qty: \"1\",\n price: currencyAmountFromCents(fee.amount),\n balanceCents\n });\n });\n\n // Payments and refunds interleaved and sorted by created:\n const paymentsAndRefundsOrdered = [\n ...(order.payments || []).map((p) => ({ ...p, _rowType: \"payment\" })),\n ...(order.refunds || []).map((r) => ({ ...r, _rowType: \"refund\" }))\n ].sort((a, b) => a.created - b.created);\n\n paymentsAndRefundsOrdered.forEach((item) => {\n if (item._rowType === \"payment\") {\n balanceCents -= item.amount;\n rows.push({\n rowKey: `payment-${item.id}`,\n type: \"payment\",\n code: \"PAY\",\n description: `Paid via ${item.method || \"card\"}`,\n subDescription: formatDate(\n item.created,\n summit.time_zone_id,\n \"YYYY/MM/DD HH:mm\"\n ),\n addon: \"\",\n qty: \"1\",\n price: currencyAmountFromCents(item.amount),\n balanceCents\n });\n } else {\n balanceCents += item.amount;\n rows.push({\n rowKey: `refund-${item.id}`,\n type: \"refund\",\n code: \"REF\",\n description: String(item.reason || \"Refund\"),\n subDescription: String(item.status || \"\"),\n addon: \"\",\n qty: \"1\",\n price: currencyAmountFromCents(item.amount),\n balanceCents\n });\n }\n });\n\n (order.notes || []).forEach((note) => {\n rows.push({\n rowKey: `note-${note.id}`,\n type: \"note\",\n content: String(note.content || \"\")\n });\n });\n\n return rows;\n};\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { View, Text } from \"@react-pdf/renderer\";\n\nexport const FieldRow = ({ styles, label, value, noBorder = false }) => (\n <View style={[styles.fieldRow, noBorder && styles.fieldRowNoBorder]}>\n <Text style={styles.fieldLabel}>{label ?? \"\"}</Text>\n <Text style={styles.fieldValue}>{value ?? \"\"}</Text>\n </View>\n);","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { Svg, Path } from \"@react-pdf/renderer\";\n\nconst MUI_ICON_PATHS = {\n ArrowUpward: \"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\",\n ArrowDownward:\n \"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\",\n Refresh:\n \"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\",\n DoNotDisturb:\n \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z\"\n};\n\nconst PDF_ICON_SIZE = 8;\n\nexport const PdfIcon = ({ name, color, size = PDF_ICON_SIZE }) => (\n <Svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n style={{ marginRight: 3 }}\n >\n <Path d={MUI_ICON_PATHS[name]} fill={color} />\n </Svg>\n);","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { View, Text } from \"@react-pdf/renderer\";\nimport { fmtBalance } from \"../helpers\";\nimport { PdfIcon } from \"./pdf-icon\";\n\nexport const PdfTableRow = ({ row, styles, rowStyles }) => {\n // Notes span all columns, matching NotesRow in the table\n if (row.type === \"note\") {\n return (\n <View style={styles.tdNote}>\n <Text style={[styles.colCode, styles.muted]}>NOTE</Text>\n <Text style={[{ flex: 1 }, styles.muted]}>{row.content}</Text>\n </View>\n );\n }\n\n const s = rowStyles[row.cancelled ? \"cancelled\" : row.type];\n return (\n <View style={s.row}>\n <Text style={s.code}>{row.code}</Text>\n {s.typeBadge ? (\n <View style={styles.typeCell}>\n <PdfIcon name={s.typeBadge.icon} color={s.typeBadge.iconColor} />\n <Text\n style={[styles.typeBadgeLabel, { color: s.typeBadge.labelColor }]}\n >\n {s.typeBadge.label}\n </Text>\n </View>\n ) : (\n <View style={styles.colType} />\n )}\n <View style={styles.colDescMultiLine}>\n <Text style={s.descText}>\n {row.type === \"item\"\n ? `${row.description} - Total: ${row.qty}`\n : row.description}\n </Text>\n {row.cancelledBy && (\n <Text style={styles.muted}>{row.cancelledBy}</Text>\n )}\n {row.subDescription && (\n <Text style={styles.muted}>{row.subDescription}</Text>\n )}\n </View>\n <Text style={s.price}>{row.price}</Text>\n {row.balanceCents != null ? (\n <Text\n style={[\n s.balance ?? styles.colBalance,\n row.balanceCents < 0 && styles.colBalanceNegative\n ]}\n >\n {fmtBalance(row.balanceCents)}\n </Text>\n ) : (\n <View style={styles.colBalance} />\n )}\n </View>\n );\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { View, Text } from \"@react-pdf/renderer\";\nimport { currencyAmountFromCents } from \"../../../utils/money\";\n\n// Uses order-level totals matching the table's ReconciliationBox props:\n// cancelledTotal ← order.cancelled_total\n// refundsTotal ← order.refunds_total\n// retained ← order.retained\n// credited ← order.credited_to_payment_method\nexport const ReconciliationBlock = ({\n styles,\n cancelledTotal,\n refundsTotal,\n retained,\n credited\n}) => {\n const totalColor = retained > 0 ? \"#c62828\" : \"#1b5e20\";\n const totalLabel =\n retained > 0\n ? \"Retained as cancellation fee\"\n : credited > 0\n ? \"Credited to Payment Method\"\n : \"Balance\";\n const totalValue =\n retained > 0 ? retained : credited > 0 ? credited : retained;\n\n return (\n <View style={styles.reconciliationWrapper} wrap={false}>\n <View style={styles.reconciliationBox}>\n <Text style={styles.reconciliationTitle}>Reconciliation</Text>\n <View style={styles.reconciliationRow}>\n <Text style={styles.reconciliationLabel}>Cancelled</Text>\n <Text style={styles.reconciliationValue}>\n {currencyAmountFromCents(cancelledTotal ?? 0)}\n </Text>\n </View>\n <View style={styles.reconciliationRow}>\n <Text style={styles.reconciliationLabel}>Refunded</Text>\n <Text style={styles.reconciliationValue}>\n {currencyAmountFromCents(refundsTotal ?? 0)}\n </Text>\n </View>\n <View style={styles.reconciliationDivider} />\n <View style={styles.reconciliationRow}>\n <Text style={styles.reconciliationLabel}>{totalLabel}</Text>\n <Text style={[styles.reconciliationValue, { color: totalColor }]}>\n {currencyAmountFromCents(totalValue ?? 0)}\n </Text>\n </View>\n </View>\n </View>\n );\n};\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Document, Page, Text, View, Image, pdf } from \"@react-pdf/renderer\";\nimport { createStyles, createRowStyles } from \"./styles\";\nimport {\n buildRows,\n formatDate,\n formatAddress,\n formatVenueName,\n getThemeFontFamily,\n fmtBalance\n} from \"./helpers\";\nimport { FieldRow } from \"./components/field-row\";\nimport { PdfTableRow } from \"./components/pdf-table-row\";\nimport { ReconciliationBlock } from \"./components/reconciliation-block\";\n\nexport { buildRows };\n\n// logoSrc/theme are left to the consumer on purpose: this component is\n// shared across apps with different branding/typefaces, so no logo image or\n// font file ships with uicore. fontFamily is read off theme.typography and\n// falls back to a react-pdf built-in (no Font.register needed) when absent;\n// the theme's fontFamily must already be registered via Font.register in\n// the consuming app to render as a custom typeface instead of falling back.\nexport const OrderPdf = ({ order, summit, logoSrc, theme }) => {\n if (!order) throw new Error(\"OrderPdf: order is required\");\n if (!summit) throw new Error(\"OrderPdf: summit is required\");\n\n const fontFamily = getThemeFontFamily(theme);\n const styles = createStyles(fontFamily);\n const rowStyles = createRowStyles(styles);\n const rows = buildRows(order, summit);\n\n const {\n net_amount,\n amount_due,\n cancelled_total: cancelledTotal = 0,\n refunds_total: refundsTotal = 0,\n retained = 0,\n credited_to_payment_method: credited = 0\n } = order;\n\n const total = net_amount || amount_due || 0;\n\n const clientName =\n order.client?.contact_name || order.purchased_by_full_name || \"\";\n const clientCompany = order.client?.company_name || \"\";\n const clientAddress = formatAddress(order.address) || \"N/A\";\n\n return (\n <Document>\n <Page size=\"A4\" orientation=\"portrait\" style={styles.page}>\n {/* Row 1: Logo | Invoice title + Order / Date */}\n <View style={styles.headerRow} wrap={false}>\n <View style={styles.cellLeft}>\n {logoSrc ? <Image src={logoSrc} style={styles.logo} /> : null}\n </View>\n <View style={styles.cellRight}>\n <Text style={styles.invoiceTitle}>Invoice</Text>\n <FieldRow styles={styles} label=\"Order\" value={order.number} />\n <FieldRow\n styles={styles}\n label=\"Date\"\n value={order.purchased_date ? formatDate(\n order.purchased_date,\n summit.time_zone_id,\n \"YYYY/MM/DD hh:mm a\"\n ) : \"Pending\"}\n noBorder\n />\n </View>\n </View>\n\n {/* Row 2: Client + Address | Event + Venue + Address */}\n <View style={styles.headerRow} wrap={false}>\n <View style={styles.cellLeft}>\n <FieldRow\n styles={styles}\n label=\"Client\"\n value={`${clientCompany}\\n${clientName}`}\n />\n <FieldRow\n styles={styles}\n label=\"Address\"\n value={clientAddress}\n noBorder\n />\n </View>\n <View style={styles.cellRight}>\n <FieldRow styles={styles} label=\"Event\" value={summit.name ?? \"\"} />\n <FieldRow\n styles={styles}\n label=\"Venue\"\n value={formatVenueName(summit?.main_locations?.[0]) ?? \"\"}\n />\n <FieldRow\n styles={styles}\n label=\"Address\"\n value={formatAddress(summit?.main_locations?.[0]) ?? \"\"}\n noBorder\n />\n </View>\n </View>\n\n {/* Table */}\n <View style={styles.tableWrapper}>\n <View style={styles.table}>\n <View style={styles.thRow} fixed>\n <Text style={[styles.thText, styles.colCode]}>Code</Text>\n <Text style={[styles.thText, styles.colType]}>Type</Text>\n <Text style={[styles.thText, styles.colDesc]}>Details</Text>\n <Text style={[styles.thText, styles.colPrice]}>Amount</Text>\n <Text style={[styles.thText, styles.colBalance]}>Balance</Text>\n </View>\n\n {rows.map((row) => (\n <PdfTableRow\n key={row.rowKey}\n row={row}\n styles={styles}\n rowStyles={rowStyles}\n />\n ))}\n\n <ReconciliationBlock\n styles={styles}\n cancelledTotal={cancelledTotal}\n refundsTotal={refundsTotal}\n retained={retained}\n credited={credited}\n />\n\n <View style={styles.tdAmountDue}>\n <Text style={styles.tdAmountDueLabel}>AMOUNT DUE</Text>\n <View style={{ width: \"18%\" }} />\n <Text\n style={[\n styles.tdAmountDueValue,\n {\n color: (total ?? 0) > 0 ? \"#e65100\" : \"#1b5e20\"\n }\n ]}\n >\n {fmtBalance(total ?? 0)}\n </Text>\n </View>\n </View>\n </View>\n </Page>\n </Document>\n );\n};\n\nOrderPdf.propTypes = {\n order: PropTypes.object.isRequired,\n summit: PropTypes.object.isRequired,\n logoSrc: PropTypes.string,\n theme: PropTypes.object\n};\n\n// Revoking a blob URL immediately after use has been reported to produce\n// empty/failed downloads on Safari and some Firefox versions, so both\n// generateInvoicePDF and previewPDF defer the revoke by this long instead.\nconst REVOKE_DELAY_MS = 60_000;\n\nexport const generateInvoicePDF = async (\n order,\n summit,\n { logoSrc, theme } = {}\n) => {\n try {\n const blob = await pdf(\n <OrderPdf\n order={order}\n summit={summit}\n logoSrc={logoSrc}\n theme={theme}\n />\n ).toBlob();\n const url = URL.createObjectURL(blob);\n const link = document.createElement(\"a\");\n link.href = url;\n link.download = `invoice-${order.number}.pdf`\n .toLowerCase()\n .replace(/\\s+/g, \"-\");\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n setTimeout(() => URL.revokeObjectURL(url), REVOKE_DELAY_MS);\n } catch (error) {\n console.error(\"Error generating invoice PDF:\", error);\n throw error;\n }\n};\n\nexport const previewPDF = async (order, summit, { logoSrc, theme } = {}) => {\n // Opened synchronously, before the await below, so the tab is still tied\n // to the originating click — otherwise Safari's popup blocker kills it.\n // Can't pass \"noopener\" (or \"noreferrer\", which implies it) here: that\n // makes window.open return null, and we need the reference to set\n // .location.href once the blob URL is ready.\n const newTab = window.open(\"\", \"_blank\");\n\n try {\n const blob = await pdf(\n <OrderPdf order={order} summit={summit} logoSrc={logoSrc} theme={theme} />\n ).toBlob();\n const url = URL.createObjectURL(blob);\n\n if (newTab) {\n newTab.location.href = url;\n }\n\n // Revoke after the new tab has had a chance to load the PDF.\n setTimeout(() => URL.revokeObjectURL(url), REVOKE_DELAY_MS);\n } catch (error) {\n console.error(\"Error generating invoice PDF preview:\", error);\n if (newTab) newTab.close();\n throw error;\n }\n};\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport { StyleSheet } from \"@react-pdf/renderer\";\n\n// Parameterized by fontFamily so a consumer's custom typeface (registered via\n// Font.register in their own app) applies to every text style explicitly,\n// not just the ones a consumer happens to remember to override.\nexport const createStyles = (fontFamily) => StyleSheet.create({\n page: {\n backgroundColor: \"#F7F7F8\",\n padding: 64,\n fontFamily,\n fontSize: 8,\n color: \"#212529\"\n },\n headerRow: {\n flexDirection: \"row\",\n marginBottom: 20,\n gap: 20\n },\n cellLeft: {\n flex: 1,\n backgroundColor: \"#ffffff\",\n borderRadius: 10,\n borderWidth: 1,\n borderColor: \"#DEE2E6\",\n paddingHorizontal: 18,\n paddingVertical: 10,\n justifyContent: \"center\"\n },\n logo: {\n width: \"100%\",\n height: 84,\n objectFit: \"contain\",\n marginBottom: 0,\n paddingBottom: 0\n },\n cellRight: {\n flex: 1,\n backgroundColor: \"#ffffff\",\n borderRadius: 10,\n borderWidth: 1,\n borderColor: \"#DEE2E6\",\n paddingHorizontal: 18,\n paddingVertical: 10\n },\n invoiceTitle: {\n fontFamily,\n fontWeight: \"bold\",\n fontSize: 14,\n lineHeight: 1.5,\n letterSpacing: 0,\n color: \"rgba(17, 19, 21, 1)\",\n marginBottom: 8\n },\n fieldRow: {\n fontSize: 8,\n lineHeight: 1.8,\n flexDirection: \"row\",\n color: \"rgba(0, 0, 0, 0.87)\",\n paddingBottom: 3,\n paddingTop: 6,\n borderBottom: \"1px solid rgba(224, 224, 224, 1)\",\n alignContent: \"flex-start\"\n },\n fieldRowNoBorder: {\n borderBottomWidth: 0\n },\n fieldLabel: {\n flex: 4,\n fontWeight: \"bold\",\n color: \"rgba(0, 0, 0, 0.87)\"\n },\n fieldValue: {\n flex: 9\n },\n tableWrapper: {\n marginTop: 8,\n borderRadius: 8,\n borderWidth: 1,\n borderStyle: \"solid\",\n borderColor: \"#eee\",\n backgroundColor: \"#ffffff\"\n },\n table: {\n fontFamily,\n borderRadius: 8,\n overflow: \"hidden\"\n },\n thRow: {\n flexDirection: \"row\",\n backgroundColor: \"#f0f0f0\",\n paddingVertical: 12,\n paddingHorizontal: 12,\n alignItems: \"center\",\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n thText: {\n fontFamily,\n fontSize: 7,\n fontWeight: 600,\n color: \"#333333\"\n },\n tdRow: {\n backgroundColor: \"#FFFFFF\",\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 14,\n alignItems: \"center\",\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n tdPayment: {\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 14,\n alignItems: \"flex-start\",\n backgroundColor: \"#f0fdf4\",\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n tdRefund: {\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 14,\n alignItems: \"flex-start\",\n backgroundColor: \"#fff7ed\",\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n tdNote: {\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 10,\n alignItems: \"flex-start\",\n backgroundColor: \"#FFFFFF\",\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n tdAmountDue: {\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 14,\n alignItems: \"center\",\n backgroundColor: \"#fafafa\",\n borderTopWidth: 1,\n borderTopColor: \"#000000\"\n },\n colCode: { width: \"12%\", fontSize: 8 },\n colCodePayment: { width: \"12%\", fontSize: 8, fontWeight: \"bold\" },\n colType: { width: \"15%\", fontSize: 8 },\n colDesc: { width: \"39%\", fontSize: 8 },\n colDescMultiLine: {\n width: \"39%\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\"\n },\n colPrice: { width: \"18%\", textAlign: \"right\", fontSize: 8, color: \"#333333\" },\n colPriceRefund: {\n fontFamily,\n width: \"18%\",\n textAlign: \"right\",\n fontSize: 8,\n fontWeight: \"bold\",\n color: \"#e65100\"\n },\n colPricePayment: {\n fontFamily,\n width: \"18%\",\n textAlign: \"right\",\n fontSize: 8,\n fontWeight: \"bold\",\n color: \"#1b5e20\"\n },\n colBalance: {\n width: \"16%\",\n textAlign: \"right\",\n fontSize: 8,\n color: \"#666666\"\n },\n colBalanceNegative: { color: \"#dc2626\" },\n tdAmountDueLabel: {\n fontFamily,\n width: \"66%\",\n fontSize: 8,\n fontWeight: 700\n },\n tdAmountDueValue: {\n fontFamily,\n width: \"16%\",\n textAlign: \"right\",\n fontSize: 9,\n fontWeight: 700\n },\n paymentDesc: { fontFamily, fontSize: 8, fontWeight: \"bold\" },\n muted: { color: \"#6C757D\", fontSize: 8 },\n typeCell: { width: \"15%\", flexDirection: \"row\", alignItems: \"center\" },\n typeBadgeLabel: { fontSize: 8 },\n cancelledText: { color: \"#9ca3af\", textDecoration: \"line-through\" },\n reconciliationWrapper: {\n flexDirection: \"row\",\n paddingHorizontal: 12,\n paddingVertical: 12,\n borderBottomWidth: 1,\n borderBottomStyle: \"solid\",\n borderBottomColor: \"#eee\"\n },\n reconciliationBox: {\n width: \"33%\"\n },\n reconciliationTitle: {\n fontFamily,\n fontSize: 8,\n fontWeight: 600,\n color: \"#333333\",\n marginBottom: 6\n },\n reconciliationRow: {\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingVertical: 2\n },\n reconciliationLabel: {\n fontSize: 7,\n color: \"#6C757D\"\n },\n reconciliationValue: {\n fontSize: 7,\n color: \"#333333\",\n textAlign: \"right\"\n },\n reconciliationDivider: {\n borderBottomWidth: 1,\n borderBottomColor: \"#dee2e6\",\n marginVertical: 4\n }\n});\n\nexport const createRowStyles = (styles) => ({\n fee: {\n row: styles.tdRow,\n code: styles.colCode,\n descText: null,\n price: styles.colPrice,\n typeBadge: {\n icon: \"ArrowUpward\",\n iconColor: \"#ff9800\",\n label: \"Charge\",\n labelColor: \"#333333\"\n }\n },\n item: {\n row: styles.tdRow,\n code: styles.colCode,\n descText: null,\n price: styles.colPrice,\n typeBadge: {\n icon: \"ArrowUpward\",\n iconColor: \"#ff9800\",\n label: \"Charge\",\n labelColor: \"#333333\"\n }\n },\n discount: {\n row: styles.tdPayment,\n code: styles.colCodePayment,\n descText: styles.paymentDesc,\n price: styles.colPricePayment,\n typeBadge: {\n icon: \"ArrowDownward\",\n iconColor: \"#4caf50\",\n label: \"Discount\",\n labelColor: \"#1b5e20\"\n }\n },\n payment: {\n row: styles.tdPayment,\n code: styles.colCodePayment,\n descText: styles.paymentDesc,\n price: styles.colPricePayment,\n typeBadge: {\n icon: \"ArrowDownward\",\n iconColor: \"#4caf50\",\n label: \"Payment\",\n labelColor: \"#1b5e20\"\n }\n },\n refund: {\n row: styles.tdRefund,\n code: styles.colCodePayment,\n descText: styles.paymentDesc,\n price: styles.colPriceRefund,\n typeBadge: {\n icon: \"Refresh\",\n iconColor: \"#ea580c\",\n label: \"Refund\",\n labelColor: \"#e65100\"\n }\n },\n cancelled: {\n row: styles.tdRow,\n code: [styles.colCode, styles.cancelledText],\n descText: styles.cancelledText,\n price: [styles.colPrice, styles.cancelledText],\n balance: [styles.colBalance, styles.cancelledText],\n typeBadge: {\n icon: \"DoNotDisturb\",\n iconColor: \"#9ca3af\",\n label: \"Cancelled\",\n labelColor: \"#9ca3af\"\n }\n }\n});\n"],"names":["root","factory","exports","module","define","amd","this","CENTS_FACTOR","TWO_DECIMAL_PLACES","ZERO_INT","MILLISECONDS_IN_SECOND","CURRENCY_SYMBOL","USD","EUR","GBP","CAD","AUD","NZD","CHF","ARS","BRL","MXN","currencyAmountFromCents","cents","currency","result","Number","isInteger","console","error","amount","c","isSafeInteger","Error","BigInt","s","trim","test","remainder","toString","padStart","amountFromCents","e","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","require","formatDate","date","timeZone","format","moment","tz","formatAddress","address","address_1","address_2","city","state","zip_code","postal_code","country","filter","Boolean","join","formatVenueName","location","short_name","name","fmtBalance","abs","Math","buildRows","order","summit","rows","balanceCents","forms","forEach","form","items","item","quantity","_item$type","_form$add_on","cancelled","canceled_by_id","cancelledBy","canceled_by_full_name","canceled_at","time_zone_id","push","rowKey","line_id","id","type","code","String","description","title","addon","add_on","qty","price","discountCents","discount_in_cents","discount","fees","fee","payments","map","p","_objectSpread","_rowType","refunds","sort","b","created","method","subDescription","reason","status","notes","note","content","FieldRow","styles","label","noBorder","React","View","style","fieldRow","fieldRowNoBorder","Text","fieldLabel","fieldValue","MUI_ICON_PATHS","ArrowUpward","ArrowDownward","Refresh","DoNotDisturb","PdfIcon","color","size","Svg","width","height","viewBox","marginRight","Path","fill","PdfTableRow","row","rowStyles","tdNote","colCode","muted","flex","typeBadge","typeCell","icon","iconColor","typeBadgeLabel","labelColor","colType","colDescMultiLine","descText","balance","colBalance","colBalanceNegative","ReconciliationBlock","cancelledTotal","refundsTotal","retained","credited","totalColor","totalLabel","totalValue","reconciliationWrapper","wrap","reconciliationBox","reconciliationTitle","reconciliationRow","reconciliationLabel","reconciliationValue","reconciliationDivider","OrderPdf","logoSrc","theme","_order$client","_order$client2","_summit$main_location","_summit$main_location2","fontFamily","_theme$typography","typography","split","replace","getThemeFontFamily","StyleSheet","create","page","backgroundColor","padding","fontSize","headerRow","flexDirection","marginBottom","gap","cellLeft","borderRadius","borderWidth","borderColor","paddingHorizontal","paddingVertical","justifyContent","logo","objectFit","paddingBottom","cellRight","invoiceTitle","fontWeight","lineHeight","letterSpacing","paddingTop","borderBottom","alignContent","borderBottomWidth","tableWrapper","marginTop","borderStyle","table","overflow","thRow","alignItems","borderBottomStyle","borderBottomColor","thText","tdRow","tdPayment","tdRefund","tdAmountDue","borderTopWidth","borderTopColor","colCodePayment","colDesc","colPrice","textAlign","colPriceRefund","colPricePayment","tdAmountDueLabel","tdAmountDueValue","paymentDesc","cancelledText","textDecoration","marginVertical","createStyles","payment","refund","createRowStyles","net_amount","amount_due","cancelled_total","refunds_total","credited_to_payment_method","total","clientName","client","contact_name","purchased_by_full_name","clientCompany","company_name","clientAddress","Document","Page","orientation","Image","src","number","purchased_date","main_locations","fixed","propTypes","PropTypes","isRequired","generateInvoicePDF","async","blob","pdf","toBlob","url","URL","createObjectURL","link","document","createElement","href","download","toLowerCase","body","appendChild","click","removeChild","setTimeout","revokeObjectURL","previewPDF","newTab","window","open","close"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openstack-uicore-foundation",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.46-beta.1",
|
|
4
4
|
"description": "ui reactjs components for openstack marketing site",
|
|
5
5
|
"main": "lib/openstack-uicore-foundation.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@mui/icons-material": "^6.4.3",
|
|
32
32
|
"@mui/material": "^6.4.3",
|
|
33
33
|
"@mui/x-date-pickers": "^7.26.0",
|
|
34
|
-
"@react-pdf/renderer": "^
|
|
34
|
+
"@react-pdf/renderer": "^4.4.1",
|
|
35
35
|
"@sentry/react": "^8.54.0",
|
|
36
36
|
"@sentry/webpack-plugin": "^3.1.2",
|
|
37
37
|
"@stripe/react-stripe-js": "^5.4.1",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@mui/icons-material": "^6.4.3",
|
|
127
127
|
"@mui/material": "^6.4.3",
|
|
128
128
|
"@mui/x-date-pickers": "^7.26.0",
|
|
129
|
-
"@react-pdf/renderer": "^
|
|
129
|
+
"@react-pdf/renderer": "^4.4.1",
|
|
130
130
|
"@sentry/react": "^8.54.0",
|
|
131
131
|
"@stripe/react-stripe-js": "^5.4.1",
|
|
132
132
|
"@stripe/stripe-js": "^8.5.3",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={9558:(e,r,o)=>{o.d(r,{isSentryInitialized:()=>t});o(5812),o(8041);const t=()=>"undefined"!=typeof window&&!!window.SENTRY_DSN},5812:e=>{e.exports=require("moment-timezone")},8041:e=>{e.exports=require("urijs")}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}(()=>{o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r}})(),(()=>{o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}})(),(()=>{o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};o.r(t),o.d(t,{chunkErrorSentryBeforeSend:()=>y,initChunkErrorRecovery:()=>v,isChunkLoadError:()=>l,lazyWithReload:()=>m,reloadOnChunkError:()=>p});const n=require("react");var i=o.n(n);const a=require("@sentry/react");var s=o(9558);const d="uicore.chunk-load-error-reload-state",u="uicore.chunk-load-error-pending-confirmation",c=/[._-][0-9a-f]{8,}\.js(\?.*)?$/i,l=(e,r,o)=>(e=>Boolean(e)&&"ChunkLoadError"===e.name)(e)||((e,r,o=c)=>{const t=e&&e.message||("string"==typeof e?e:"");return!(!(e&&"SyntaxError"===e.name||/SyntaxError/i.test(t))||!/Unexpected token '<'/i.test(t))&&(!r||o.test(r))})(e,r,o);let f;const p=(e,r,o)=>{if(!l(e,r,o))return!1;const t=(()=>(void 0===f&&(f="undefined"!=typeof document?Array.from(document.scripts).map((e=>e.src)).filter(Boolean).sort().join(","):""),f))(),n=(()=>{try{const e=window.sessionStorage.getItem(d);return e?JSON.parse(e):null}catch{return null}})();if(n&&n.build===t)return((e,r)=>{const o={level:"error",tags:{chunkErrorRecovery:"failed"},extra:{originalMessage:null==e?void 0:e.message,filename:r}};(0,s.isSentryInitialized)()?a.captureMessage("Chunk load error persisted after auto-reload",o):console.error("Chunk load error persisted after auto-reload",o)})(e,r),!1;(e=>{try{window.sessionStorage.setItem(d,JSON.stringify(e))}catch{}})({build:t});try{window.sessionStorage.setItem(u,"1")}catch{}return window.location.reload(),!0},m=(e,r)=>i().lazy((()=>e().catch((e=>{if(p(e,void 0,r))return new Promise((()=>{}));throw e})))),v=e=>{(()=>{try{"1"===window.sessionStorage.getItem(u)&&(window.sessionStorage.removeItem(u),console.log("[lazy-with-reload] Recovered from a chunk load error via automatic reload"))}catch{}})();const r=r=>{p(r.reason,void 0,e)&&r.preventDefault()},o=r=>{const o=r.error||{message:r.message};p(o,r.filename,e)&&r.preventDefault()};return window.addEventListener("unhandledrejection",r),window.addEventListener("error",o),()=>{window.removeEventListener("unhandledrejection",r),window.removeEventListener("error",o)}},y=e=>{var r;return((null===(r=e.exception)||void 0===r?void 0:r.values)||[]).some((e=>l({name:e.type,message:e.value})))?null:e};return t})()));
|
|
2
|
-
//# sourceMappingURL=lazy-with-reload.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils/lazy-with-reload.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,I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AEZ,MAAOnB,IAC1B,IACE7C,OAAO4D,eAAec,QAAQ3C,EAA0B,IAC1D,CAAE,MACA,CAGF,OADA/B,OAAO6E,SAASC,UACT,CAAI,EAwBAC,EAAiBA,CAACC,EAAU5C,IACvC6C,IAAAA,MAAW,IACTD,IAAWE,OAAOhD,IAChB,GAAIU,EAAmBV,OAAO3B,EAAW6B,GAGvC,OAAO,IAAI+C,SAAQ,SAErB,MAAMjD,CAAK,MAWJkD,EAA0BhD,IAtCRiD,MAC7B,IACkE,MAA5DrF,OAAO4D,eAAeC,QAAQ9B,KAChC/B,OAAO4D,eAAe0B,WAAWvD,GAEjC0C,QAAQc,IACN,6EAGN,CAAE,MACA,GA6BFF,GAEA,MAAMG,EAAwBC,IACxB7C,EAAmB6C,EAAMC,YAAQnF,EAAW6B,IAC9CqD,EAAME,gBACR,EAGIC,EAAWH,IACf,MAAMvD,EAAQuD,EAAMvD,OAAS,CAAEO,QAASgD,EAAMhD,SAC1CG,EAAmBV,EAAOuD,EAAMtD,SAAUC,IAC5CqD,EAAME,gBACR,EAMF,OAHA3F,OAAO6F,iBAAiB,qBAAsBL,GAC9CxF,OAAO6F,iBAAiB,QAASD,GAE1B,KACL5F,OAAO8F,oBAAoB,qBAAsBN,GACjDxF,OAAO8F,oBAAoB,QAASF,EAAQ,CAC7C,EAQUG,EAA8BN,IAAU,IAAAO,EAQnD,QAPuC,QAAfA,EAAAP,EAAMQ,iBAAS,IAAAD,OAAA,EAAfA,EAAiBE,SAAU,IACTC,MAAMC,GAC9CnE,EAAiB,CACfK,KAAM8D,EAAeC,KACrB5D,QAAS2D,EAAevE,UAGD,KAAO4D,CAAK,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"@sentry/react\"","webpack://openstack-uicore-foundation/./src/utils/lazy-with-reload.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const parseLocationHour = (hour) => {\n let parsedHour = hour.toString();\n if(parsedHour.length < 4) parsedHour = `0${parsedHour}`;\n parsedHour = parsedHour.match(/.{2}/g);\n parsedHour = parsedHour.join(':');\n return parsedHour;\n}\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(backUrl != null && fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n\nexport const getEventLocation = (event, summitVenueCount, summitShowLocDate = null, nowUtc = null) => {\n const shouldShowVenues = (summitShowLocDate && nowUtc) ? summitShowLocDate * 1000 < nowUtc : true;\n const locationName = [];\n const { location } = event;\n\n if (!shouldShowVenues) return 'TBA';\n\n if (!location) return 'TBA';\n\n if (summitVenueCount > 1 && location.venue?.name) locationName.push(location.venue.name);\n if (location.floor?.name) locationName.push(location.floor.name);\n if (location.name) locationName.push(location.name);\n\n return locationName.length > 0 ? locationName.join(' - ') : 'TBA';\n};\n\nexport const getEventHosts = (event) => {\n let hosts = [];\n if (event.speakers?.length > 0) {\n hosts = [...event.speakers];\n }\n if (event.moderator) hosts.push(event.moderator);\n\n return hosts;\n};\n\nconst loadImage = async url => {\n const img = document.createElement('img')\n img.src = url\n img.crossOrigin = 'anonymous'\n\n return new Promise((resolve, reject) => {\n img.onload = () => resolve(img)\n img.onerror = reject\n })\n}\n\nexport const convertSVGtoImg = async (svgUrl) => {\n const img = await loadImage(svgUrl)\n const newWidth = 100\n const newHeight = Math.floor(img.naturalHeight * 100 / img.naturalWidth)\n\n const canvas = document.createElement('canvas')\n canvas.width = newWidth\n canvas.height = newHeight\n canvas.getContext('2d').drawImage(img, 0, 0, newWidth, newHeight)\n\n const url = await canvas.toDataURL(`image/png`, 1.0)\n console.log(url, newWidth, newHeight);\n return {url, width: newWidth, height: newHeight}\n}\n\nexport const isRateEnabled = (value) =>\n value !== null && value !== undefined && value !== \"\";\n\n/**\n * Returns true if value is null, undefined, empty/whitespace string,\n * empty array, or empty object.\n */\nexport const empty = (value) => {\n if (value === null || value === undefined) return true;\n if (typeof value === \"string\") return value.trim().length === 0;\n if (Array.isArray(value)) return value.length === 0;\n if (typeof value === \"object\") return Object.keys(value).length === 0;\n return false;\n};\n\nexport const isSentryInitialized = () => typeof window !== \"undefined\" && !!window.SENTRY_DSN;\n\nexport const normalizeHtmlString = (textInput) => {\n if (!textInput) return \"\";\n const doc = new DOMParser().parseFromString(textInput, \"text/html\");\n return doc.body.textContent.trim().length === 0 ? \"\" : textInput;\n};","module.exports = require(\"moment-timezone\");","module.exports = require(\"urijs\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@sentry/react\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from \"react\";\nimport * as Sentry from \"@sentry/react\";\nimport { isSentryInitialized } from \"./methods\";\n\nconst RELOAD_STATE_KEY = \"uicore.chunk-load-error-reload-state\";\nconst PENDING_CONFIRMATION_KEY = \"uicore.chunk-load-error-pending-confirmation\";\n\n// webpack's own JSONP chunk-loading runtime hardcodes error.name = \"ChunkLoadError\"\n// on every chunk-load failure it detects through the import() promise - both a\n// genuine network 404 AND the \"script tag loaded (200 OK) but the expected chunk\n// never registered\" case, e.g. a stale content-hashed chunk URL falling through to\n// an SPA's index.html fallback. This is webpack's own intentional, stable\n// convention (see webpack/lib/web/JsonpChunkLoadingRuntimeModule.js), not a guess.\nconst isWebpackChunkLoadError = (error) =>\n Boolean(error) && error.name === \"ChunkLoadError\";\n\n// Separately from the promise rejection above, the browser is ALSO trying to\n// execute that stale response's HTML content as the script tag's body, which\n// throws a genuine engine-level SyntaxError as an uncaught global script error -\n// a completely different failure surface that no amount of wrapping import() in\n// a .catch() can observe. There's no clean, structured signal for this one, so we\n// match on the characteristic message and, when a source filename is available,\n// cross-check it against a typical content-hashed chunk filename so this can't\n// false-match an unrelated SyntaxError elsewhere in the app.\nconst DEFAULT_CHUNK_FILENAME_PATTERN = /[._-][0-9a-f]{8,}\\.js(\\?.*)?$/i;\n\nconst isHtmlParsedAsScriptError = (\n error,\n filename,\n chunkFilenamePattern = DEFAULT_CHUNK_FILENAME_PATTERN\n) => {\n const message = (error && error.message) || (typeof error === \"string\" ? error : \"\");\n // \"SyntaxError\" can show up on error.name (a real SyntaxError object) or\n // inline in the message text (window.onerror's flat event.message string,\n // e.g. \"Uncaught SyntaxError: Unexpected token '<'\") - check both.\n const looksLikeSyntaxError =\n (error && error.name === \"SyntaxError\") || /SyntaxError/i.test(message);\n if (!looksLikeSyntaxError || !/Unexpected token '<'/i.test(message)) {\n return false;\n }\n return !filename || chunkFilenamePattern.test(filename);\n};\n\nexport const isChunkLoadError = (error, filename, chunkFilenamePattern) =>\n isWebpackChunkLoadError(error) ||\n isHtmlParsedAsScriptError(error, filename, chunkFilenamePattern);\n\n// Fingerprints the statically-loaded <script> tags present the first time\n// this module runs on a given page load - i.e. before any lazy chunk has\n// been requested. This identifies \"which build is currently running\"\n// without requiring the consuming app to expose a dedicated build-version\n// global. Computed once and cached: document.scripts grows over time as\n// webpack's runtime appends a <script> tag for every lazy chunk that loads,\n// so reading it lazily-but-uncached would make the fingerprint drift within\n// a single build, not just across a real deploy.\nlet cachedBuildFingerprint;\nconst getBuildFingerprint = () => {\n if (cachedBuildFingerprint === undefined) {\n cachedBuildFingerprint =\n typeof document !== \"undefined\"\n ? Array.from(document.scripts)\n .map((s) => s.src)\n .filter(Boolean)\n .sort()\n .join(\",\")\n : \"\";\n }\n return cachedBuildFingerprint;\n};\n\nconst readReloadState = () => {\n try {\n const raw = window.sessionStorage.getItem(RELOAD_STATE_KEY);\n return raw ? JSON.parse(raw) : null;\n } catch {\n return null;\n }\n};\n\nconst writeReloadState = (state) => {\n try {\n window.sessionStorage.setItem(RELOAD_STATE_KEY, JSON.stringify(state));\n } catch {\n // ignore - sessionStorage can throw in some privacy modes\n }\n};\n\nconst reportRecoveryFailed = (error, filename) => {\n const context = {\n level: \"error\",\n tags: { chunkErrorRecovery: \"failed\" },\n extra: { originalMessage: error?.message, filename }\n };\n if (isSentryInitialized()) {\n Sentry.captureMessage(\"Chunk load error persisted after auto-reload\", context);\n } else {\n console.error(\"Chunk load error persisted after auto-reload\", context);\n }\n};\n\n// Reloads the page once per *build* when a lazy chunk fails to load\n// (typically a stale content-hashed filename after a deploy). Returns true\n// only when it actually triggers a *new* reload; false if this isn't a chunk\n// error, or if we already tried reloading once for this same build - in the\n// latter case a distinct Sentry report is filed (see reportRecoveryFailed)\n// and the caller should let the error propagate normally instead of\n// looping. Scoping the guard to the build (not just \"once this session\")\n// means that if a second deploy lands later in the same long-lived tab, a\n// fresh failure on that new build still gets its own reload attempt instead\n// of being silently blocked by an unrelated earlier recovery.\nexport const reloadOnChunkError = (error, filename, chunkFilenamePattern) => {\n if (!isChunkLoadError(error, filename, chunkFilenamePattern)) return false;\n\n const currentBuild = getBuildFingerprint();\n const state = readReloadState();\n\n if (state && state.build === currentBuild) {\n reportRecoveryFailed(error, filename);\n return false;\n }\n\n writeReloadState({ build: currentBuild });\n try {\n window.sessionStorage.setItem(PENDING_CONFIRMATION_KEY, \"1\");\n } catch {\n // ignore - see readReloadState/writeReloadState\n }\n window.location.reload();\n return true;\n};\n\n// Logs (once) that a prior chunk-load-error reload actually took effect, so\n// it's easy to confirm in the console that this recovery path fired.\nconst confirmReloadIfPending = () => {\n try {\n if (window.sessionStorage.getItem(PENDING_CONFIRMATION_KEY) === \"1\") {\n window.sessionStorage.removeItem(PENDING_CONFIRMATION_KEY);\n // eslint-disable-next-line no-console\n console.log(\n \"[lazy-with-reload] Recovered from a chunk load error via automatic reload\"\n );\n }\n } catch {\n // ignore\n }\n};\n\n// Drop-in replacement for React.lazy(() => import(...)) that auto-recovers\n// from a stale-chunk failure by reloading the page once. On any other error,\n// or a repeat chunk failure after the reload already happened once for this\n// build, the error is rethrown so it still reaches the app's own error\n// boundary/fallback UI.\nexport const lazyWithReload = (importer, chunkFilenamePattern) =>\n React.lazy(() =>\n importer().catch((error) => {\n if (reloadOnChunkError(error, undefined, chunkFilenamePattern)) {\n // reload is in flight - never resolve so nothing renders (e.g. an\n // error boundary flash) before it takes effect\n return new Promise(() => {});\n }\n throw error;\n })\n );\n\n// Fallback safety net for chunk-load failures that don't flow through\n// lazyWithReload (e.g. a bare React.lazy()/dynamic import() call, or the raw\n// SyntaxError case, which is never a promise rejection at all - see\n// isHtmlParsedAsScriptError above). Call once at app bootstrap. Also\n// confirms (via console.log) whether a prior chunk-load-error reload\n// actually took effect, since this is the app's one designated bootstrap\n// entry point for this recovery mechanism.\nexport const initChunkErrorRecovery = (chunkFilenamePattern) => {\n confirmReloadIfPending();\n\n const onUnhandledRejection = (event) => {\n if (reloadOnChunkError(event.reason, undefined, chunkFilenamePattern)) {\n event.preventDefault();\n }\n };\n\n const onError = (event) => {\n const error = event.error || { message: event.message };\n if (reloadOnChunkError(error, event.filename, chunkFilenamePattern)) {\n event.preventDefault();\n }\n };\n\n window.addEventListener(\"unhandledrejection\", onUnhandledRejection);\n window.addEventListener(\"error\", onError);\n\n return () => {\n window.removeEventListener(\"unhandledrejection\", onUnhandledRejection);\n window.removeEventListener(\"error\", onError);\n };\n};\n\n// Sentry beforeSend hook: drops chunk-load-error events from being reported,\n// since a first-time occurrence is expected to self-heal via the reload\n// above. A repeat failure (reload didn't help) is reported separately and\n// explicitly via reportRecoveryFailed's Sentry.captureMessage call, which is\n// a message-type event (no .exception), so it is unaffected by this filter.\nexport const chunkErrorSentryBeforeSend = (event) => {\n const exceptionValues = event.exception?.values || [];\n const matchesChunkError = exceptionValues.some((exceptionValue) =>\n isChunkLoadError({\n name: exceptionValue.type,\n message: exceptionValue.value\n })\n );\n return matchesChunkError ? null : event;\n};\n"],"names":["root","factory","exports","module","define","amd","this","isSentryInitialized","window","SENTRY_DSN","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","RELOAD_STATE_KEY","PENDING_CONFIRMATION_KEY","DEFAULT_CHUNK_FILENAME_PATTERN","isChunkLoadError","error","filename","chunkFilenamePattern","Boolean","name","isWebpackChunkLoadError","isHtmlParsedAsScriptError","message","test","cachedBuildFingerprint","reloadOnChunkError","currentBuild","getBuildFingerprint","document","Array","from","scripts","map","s","src","filter","sort","join","state","readReloadState","raw","sessionStorage","getItem","JSON","parse","build","reportRecoveryFailed","context","level","tags","chunkErrorRecovery","extra","originalMessage","Sentry","console","setItem","stringify","writeReloadState","location","reload","lazyWithReload","importer","React","catch","Promise","initChunkErrorRecovery","confirmReloadIfPending","removeItem","log","onUnhandledRejection","event","reason","preventDefault","onError","addEventListener","removeEventListener","chunkErrorSentryBeforeSend","_event$exception","exception","values","some","exceptionValue","type"],"sourceRoot":""}
|