{"version":3,"file":"localizedFormat-rZoOBUPb.js","sources":["../../Client/legacy/Components/ReactToPdf/Components/Heading1.tsx","../../Client/legacy/Components/ReactToPdf/Components/Heading2.tsx","../../Client/legacy/Components/ReactToPdf/Components/TextLockup.tsx","../../Client/legacy/Components/ReactToPdf/Components/Table.tsx","../../Client/node_modules/dayjs/plugin/localizedFormat.js"],"sourcesContent":["import * as React from 'react';\r\nimport { ITextProps } from './Interfaces';\r\nimport { Colors, FontWeights } from './Styles';\r\n\r\n/** Standard Heading 1 component for pdf html. Accepts width, display, color, textAlign, textTransform, margin, and padding props. Use as a wrapper. */\r\nexport class Heading1 extends React.Component<ITextProps> {\r\n render() {\r\n return (\r\n <h1\r\n style={{\r\n ...this.props,\r\n width: this.props.width || '',\r\n display: this.props.display || 'block',\r\n color: this.props.color || Colors.darkPurple1,\r\n textAlign: this.props.textAlign || 'left',\r\n fontWeight: FontWeights.bold,\r\n textTransform: this.props.textTransform || 'none',\r\n margin: this.props.margin || '0',\r\n padding: this.props.padding || '0',\r\n visibility: this.props.visibility || 'visible',\r\n }}\r\n >\r\n {this.props.children}\r\n </h1>\r\n );\r\n }\r\n}\r\n","import * as React from 'react';\r\nimport { Colors, FontSizes, FontWeights } from './Styles';\r\nimport { ITextProps } from './Interfaces';\r\n\r\n/** Standard Heading 2 component for pdf html. Accepts width, display, color, textAlign, textTransform, margin, and padding props. Use as a wrapper. */\r\nexport class Heading2 extends React.Component<ITextProps> {\r\n render() {\r\n return (\r\n <h2\r\n style={{\r\n width: this.props.width || '',\r\n display: this.props.display || 'block',\r\n color: this.props.color || Colors.brandGreen,\r\n textAlign: this.props.textAlign || 'left',\r\n fontSize: this.props.fontSize || FontSizes.large3,\r\n fontWeight: FontWeights.bold,\r\n textTransform: this.props.textTransform || 'none',\r\n margin: this.props.margin || '0',\r\n padding: this.props.padding || '0',\r\n whiteSpace: 'nowrap',\r\n }}\r\n >\r\n {this.props.children}\r\n </h2>\r\n );\r\n }\r\n}\r\n","import * as React from 'react';\r\nimport { Colors } from './Styles';\r\nimport { ILockupProps } from './Interfaces';\r\nimport { SubText } from './SubText';\r\n\r\n/** Component to create a simple text lockup with a label and value for displaying data. Requires width, label, accepts margin, width, and label props. Use as a wrapper around the data point. */\r\nexport class TextLockup extends React.Component<ILockupProps> {\r\n render() {\r\n return (\r\n <div\r\n style={{\r\n margin: this.props.margin || '0 0 16px 0',\r\n width: this.props.width || '90%',\r\n display: this.props.display ? this.props.display : 'block',\r\n fontWeight: this.props.fontWeight,\r\n fontSize: this.props.fontSize,\r\n ...this.props.style,\r\n }}\r\n >\r\n <SubText color={Colors.darkGray2}>{this.props.label}</SubText>\r\n\r\n {this.props.children}\r\n </div>\r\n );\r\n }\r\n}\r\n","import { Heading2 } from './Heading2';\r\nimport { ITableProps, ITableRowProps } from './Interfaces';\r\nimport { Colors, FontSizes, FontWeights } from './Styles';\r\n\r\n/** Table component for pdf html. Requires a heading prop. Use as a wrapper around TableRow components to create the table. Table row component in same file. */\r\nexport function Table({ margin, heading, children }: ITableProps) {\r\n return (\r\n <div\r\n style={{\r\n display: 'table',\r\n width: '100%',\r\n margin: margin ? margin : '0 0 8px 0',\r\n }}\r\n >\r\n {heading ? <Heading2 margin='0 0 8px 0'>{heading}</Heading2> : null}\r\n {children}\r\n </div>\r\n );\r\n}\r\n\r\n/** Table row component for pdf html. Works best in a left-right column format for displaying a lot of data on one page. Requires label and data props. Set subRow to true to show an indented row with a different label color below another row. Set note to true to display a smaller note about a piece of data below another table row. Set emphasis to true to bold the label value (good for a total at the end of a table or other emphasis). */\r\nexport function TableRow({\r\n width,\r\n minWidth,\r\n subRow,\r\n fontSizeOverride,\r\n note,\r\n emphasis,\r\n colorOverride,\r\n label,\r\n dataWidth,\r\n dataMinWidth,\r\n data,\r\n}: ITableRowProps) {\r\n return (\r\n <div\r\n style={{\r\n display: 'table-row',\r\n verticalAlign: 'top',\r\n margin: '0',\r\n }}\r\n >\r\n <div\r\n style={{\r\n display: 'table-cell',\r\n width: width ? width : 'fit-content',\r\n minWidth: minWidth,\r\n padding: `0 0 4px ${subRow ? '8px' : '0'}`,\r\n fontSize: fontSizeOverride || (note ? FontSizes.small2 : FontSizes.large1),\r\n fontStyle: 'normal',\r\n fontWeight: emphasis ? FontWeights.bold : FontWeights.normal,\r\n color:\r\n colorOverride ||\r\n (subRow || note ? Colors.mediumPurple1 : emphasis ? Colors.darkPurple1 : Colors.darkGray2),\r\n }}\r\n >\r\n {label ? label : null}\r\n </div>\r\n <div\r\n style={{\r\n display: 'table-cell',\r\n width: dataWidth ? dataWidth : '200px',\r\n minWidth: dataMinWidth,\r\n padding: `0 0 4px 16px`,\r\n fontSize: fontSizeOverride || FontSizes.large1,\r\n fontWeight: FontWeights.bold,\r\n color: colorOverride || (emphasis ? Colors.darkPurple1 : Colors.darkGray2),\r\n wordBreak: 'break-word',\r\n whiteSpace: 'pre-wrap',\r\n }}\r\n >\r\n {/* Defaults unset quote elements with a null value to \"Not Specified\".\r\n Check explicity for the number 0 to avoid \"Not Specified\" for a number element with 0 value. */}\r\n {data === 0 || !!data ? data : 'Not Specified'}\r\n </div>\r\n </div>\r\n );\r\n}\r\n","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t=\"YYYY-MM-DDTHH:mm:ssZ\");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)}}}));"],"names":["Heading1","React.Component","jsx","Colors","FontWeights","Heading2","FontSizes","TextLockup","jsxs","SubText","Table","margin","heading","children","TableRow","width","minWidth","subRow","fontSizeOverride","note","emphasis","colorOverride","label","dataWidth","dataMinWidth","data","e","t","module","this","o","n","r","i"],"mappings":"+JAKa,MAAAA,UAAiBC,EAAAA,SAA4B,CACtD,QAAS,CAED,OAAAC,EAAA,IAAC,KAAA,CACG,MAAO,CACH,GAAG,KAAK,MACR,MAAO,KAAK,MAAM,OAAS,GAC3B,QAAS,KAAK,MAAM,SAAW,QAC/B,MAAO,KAAK,MAAM,OAASC,EAAO,YAClC,UAAW,KAAK,MAAM,WAAa,OACnC,WAAYC,EAAY,KACxB,cAAe,KAAK,MAAM,eAAiB,OAC3C,OAAQ,KAAK,MAAM,QAAU,IAC7B,QAAS,KAAK,MAAM,SAAW,IAC/B,WAAY,KAAK,MAAM,YAAc,SACzC,EAEC,cAAK,MAAM,QAAA,CAChB,CAAA,CAGZ,CCrBa,MAAAC,UAAiBJ,EAAAA,SAA4B,CACtD,QAAS,CAED,OAAAC,EAAA,IAAC,KAAA,CACG,MAAO,CACH,MAAO,KAAK,MAAM,OAAS,GAC3B,QAAS,KAAK,MAAM,SAAW,QAC/B,MAAO,KAAK,MAAM,OAASC,EAAO,WAClC,UAAW,KAAK,MAAM,WAAa,OACnC,SAAU,KAAK,MAAM,UAAYG,EAAU,OAC3C,WAAYF,EAAY,KACxB,cAAe,KAAK,MAAM,eAAiB,OAC3C,OAAQ,KAAK,MAAM,QAAU,IAC7B,QAAS,KAAK,MAAM,SAAW,IAC/B,WAAY,QAChB,EAEC,cAAK,MAAM,QAAA,CAChB,CAAA,CAGZ,CCpBa,MAAAG,UAAmBN,EAAAA,SAA8B,CAC1D,QAAS,CAED,OAAAO,EAAA,KAAC,MAAA,CACG,MAAO,CACH,OAAQ,K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