@secondstaxorg/sscomp 1.9.13 → 1.9.14

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/dist/index.js CHANGED
@@ -593,7 +593,7 @@ const PaginationContainer = styled.div`
593
593
  }
594
594
  `;
595
595
 
596
- const _jsxFileName$1a = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Pagination\\index.tsx"; function _optionalChain$F(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
596
+ const _jsxFileName$1a = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Pagination\\index.tsx"; function _optionalChain$I(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
597
597
 
598
598
  /**
599
599
  * Pagination component for paginating an array
@@ -673,7 +673,7 @@ const Pagination = (props) => {
673
673
  )
674
674
 
675
675
  )
676
- , pageNumbers.length > 10 && React$1.createElement('span', { className: "paragraph2Regular", __self: undefined, __source: {fileName: _jsxFileName$1a, lineNumber: 83}}, React$1.createElement('input', { type: "text", className: `jump-to ${validation}`, placeholder: _optionalChain$F([labelOverrides, 'optionalAccess', _ => _.goTo]) || "Go to", onChange: (e)=>{
676
+ , pageNumbers.length > 10 && React$1.createElement('span', { className: "paragraph2Regular", __self: undefined, __source: {fileName: _jsxFileName$1a, lineNumber: 83}}, React$1.createElement('input', { type: "text", className: `jump-to ${validation}`, placeholder: _optionalChain$I([labelOverrides, 'optionalAccess', _ => _.goTo]) || "Go to", onChange: (e)=>{
677
677
  if (!e.target.value) {
678
678
  setValidation('');
679
679
  return
@@ -687,7 +687,7 @@ const Pagination = (props) => {
687
687
  if (Number(e.target.value) > 10) setStartFrom(Number(e.target.value) - 10);
688
688
  if (Number(e.target.value) < 10) setStartFrom(Number(e.target.value));
689
689
  setValidation('success');
690
- }, __self: undefined, __source: {fileName: _jsxFileName$1a, lineNumber: 83}}), " " , _optionalChain$F([labelOverrides, 'optionalAccess', _2 => _2.goTo]) || 'of', " " , pageNumbers.length)
690
+ }, __self: undefined, __source: {fileName: _jsxFileName$1a, lineNumber: 83}}), " " , _optionalChain$I([labelOverrides, 'optionalAccess', _2 => _2.goTo]) || 'of', " " , pageNumbers.length)
691
691
 
692
692
  )
693
693
 
@@ -695,7 +695,7 @@ const Pagination = (props) => {
695
695
  )
696
696
  };
697
697
 
698
- const _jsxFileName$19 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppActionsTable\\AppActionsTable.tsx"; function _optionalChain$E(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
698
+ const _jsxFileName$19 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppActionsTable\\AppActionsTable.tsx"; function _optionalChain$H(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
699
699
  /**
700
700
  * SDataTable view of App Actions on Code Maintenance in LP Application
701
701
  */
@@ -740,7 +740,7 @@ const AppActionsTable = (props) => {
740
740
  , React$1.createElement('tr', { className: "rounded-row", __self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 47}}
741
741
  , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 48}}
742
742
  , React$1.createElement('div', { onClick: ()=>{sortEntries();}, __self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 49}}
743
- , _optionalChain$E([labelOverrides, 'optionalAccess', _ => _.title]) || 'Title'
743
+ , _optionalChain$H([labelOverrides, 'optionalAccess', _ => _.title]) || 'Title'
744
744
  , sortDir === 'desc' &&
745
745
  React$1.createElement(React$1.Fragment, null
746
746
  /*arrow-up*/
@@ -760,8 +760,8 @@ const AppActionsTable = (props) => {
760
760
 
761
761
  )
762
762
  )
763
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 70}}, _optionalChain$E([labelOverrides, 'optionalAccess', _2 => _2.description]) || 'Description')
764
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 71}}, _optionalChain$E([labelOverrides, 'optionalAccess', _3 => _3.clearanceLevel]) || 'Clearance Level')
763
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 70}}, _optionalChain$H([labelOverrides, 'optionalAccess', _2 => _2.description]) || 'Description')
764
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 71}}, _optionalChain$H([labelOverrides, 'optionalAccess', _3 => _3.clearanceLevel]) || 'Clearance Level')
765
765
  )
766
766
  )
767
767
  , dispActions && dispActions.length > 0 &&
@@ -803,7 +803,7 @@ const AppActionsTable = (props) => {
803
803
  )
804
804
  )
805
805
  )
806
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 113}}, _optionalChain$E([labelOverrides, 'optionalAccess', _4 => _4.emptyMsg]) || 'App actions will be displayed here when you have any.')
806
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$19, lineNumber: 113}}, _optionalChain$H([labelOverrides, 'optionalAccess', _4 => _4.emptyMsg]) || 'App actions will be displayed here when you have any.')
807
807
  )
808
808
  )
809
809
 
@@ -894,7 +894,7 @@ const NothingContent$9 = styled.div`
894
894
  }
895
895
  `;
896
896
 
897
- const _jsxFileName$18 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppFormsTable\\AppFormsTable.tsx"; function _optionalChain$D(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
897
+ const _jsxFileName$18 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppFormsTable\\AppFormsTable.tsx"; function _optionalChain$G(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
898
898
 
899
899
  const AppFormsTable = (props) => {
900
900
  const {forms,callback,labelOverrides} = props;
@@ -935,7 +935,7 @@ const AppFormsTable = (props) => {
935
935
  , React$1.createElement('tr', { className: "rounded-row", __self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 43}}
936
936
  , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 44}}
937
937
  , React$1.createElement('div', { onClick: ()=>{sortEntries();}, __self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 45}}
938
- , _optionalChain$D([labelOverrides, 'optionalAccess', _ => _.formName]) || 'Form Name'
938
+ , _optionalChain$G([labelOverrides, 'optionalAccess', _ => _.formName]) || 'Form Name'
939
939
  , sortDir === 'desc' &&
940
940
  React$1.createElement(React$1.Fragment, null
941
941
  /*arrow-up*/
@@ -954,8 +954,8 @@ const AppFormsTable = (props) => {
954
954
 
955
955
  )
956
956
  )
957
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 65}}, _optionalChain$D([labelOverrides, 'optionalAccess', _2 => _2.formCode]) || 'Form Code')
958
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 66}}, _optionalChain$D([labelOverrides, 'optionalAccess', _3 => _3.authUserType]) || 'Authorised User Type')
957
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 65}}, _optionalChain$G([labelOverrides, 'optionalAccess', _2 => _2.formCode]) || 'Form Code')
958
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 66}}, _optionalChain$G([labelOverrides, 'optionalAccess', _3 => _3.authUserType]) || 'Authorised User Type')
959
959
  )
960
960
  )
961
961
  , dispForms && dispForms.length > 0 &&
@@ -995,7 +995,7 @@ const AppFormsTable = (props) => {
995
995
  )
996
996
  )
997
997
  )
998
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 106}}, _optionalChain$D([labelOverrides, 'optionalAccess', _4 => _4.emptyMsg]) || 'App forms will be displayed here when you have any.')
998
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$18, lineNumber: 106}}, _optionalChain$G([labelOverrides, 'optionalAccess', _4 => _4.emptyMsg]) || 'App forms will be displayed here when you have any.')
999
999
  )
1000
1000
  )
1001
1001
 
@@ -1086,7 +1086,7 @@ const NothingContent$8 = styled.div`
1086
1086
  }
1087
1087
  `;
1088
1088
 
1089
- const _jsxFileName$17 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppModulesTable\\AppModulesTable.tsx"; function _optionalChain$C(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1089
+ const _jsxFileName$17 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\AppModulesTable\\AppModulesTable.tsx"; function _optionalChain$F(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1090
1090
  const AppModulesTable = (props) => {
1091
1091
  const {modules,callback,labelOverrides} = props;
1092
1092
  const [dispModules,setDispModules] = React$1.useState([]);
@@ -1125,7 +1125,7 @@ const AppModulesTable = (props) => {
1125
1125
  , React$1.createElement('tr', { className: "rounded-row", __self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 41}}
1126
1126
  , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 42}}
1127
1127
  , React$1.createElement('div', { onClick: ()=>{sortEntries();}, __self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 43}}
1128
- , _optionalChain$C([labelOverrides, 'optionalAccess', _ => _.moduleName]) || 'Module Name'
1128
+ , _optionalChain$F([labelOverrides, 'optionalAccess', _ => _.moduleName]) || 'Module Name'
1129
1129
  , sortDir === 'desc' &&
1130
1130
  React$1.createElement(React$1.Fragment, null
1131
1131
  /*arrow-up*/
@@ -1144,8 +1144,8 @@ const AppModulesTable = (props) => {
1144
1144
 
1145
1145
  )
1146
1146
  )
1147
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 63}}, _optionalChain$C([labelOverrides, 'optionalAccess', _2 => _2.moduleCode]) || 'Module Code')
1148
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 64}}, _optionalChain$C([labelOverrides, 'optionalAccess', _3 => _3.moduleCode]) || 'Remarks')
1147
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 63}}, _optionalChain$F([labelOverrides, 'optionalAccess', _2 => _2.moduleCode]) || 'Module Code')
1148
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$17, lineNumber: 64}}, _optionalChain$F([labelOverrides, 'optionalAccess', _3 => _3.moduleCode]) || 'Remarks')
1149
1149
  )
1150
1150
  )
1151
1151
  , dispModules && dispModules.length > 0 &&
@@ -1547,7 +1547,7 @@ const Loader = (props) => {
1547
1547
  )
1548
1548
  };
1549
1549
 
1550
- const _jsxFileName$13 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\BankAccounts\\BankAccounts.tsx"; function _optionalChain$B(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1550
+ const _jsxFileName$13 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\BankAccounts\\BankAccounts.tsx"; function _optionalChain$E(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1551
1551
  /**
1552
1552
  * This component displays a list of bank accounts associated with a provider or broker.
1553
1553
  */
@@ -1579,27 +1579,27 @@ const BankAccounts = (props) => {
1579
1579
  , React$1.createElement(AcctDets, {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 37}}
1580
1580
  , React$1.createElement('h4', { className: "acct-no", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 38}}, acct.acctNumber)
1581
1581
  , React$1.createElement('p', { className: "bank-name", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 39}}, acct.bankName)
1582
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 40}}, _optionalChain$B([labelOverrides, 'optionalAccess', _ => _.acctName]) || 'Account Name', ": " , acct.acctName)
1583
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 41}}, _optionalChain$B([labelOverrides, 'optionalAccess', _2 => _2.currency]) || 'Currency', ": " , acct.currency)
1584
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 42}}, _optionalChain$B([labelOverrides, 'optionalAccess', _3 => _3.swiftCode]) || 'SWIFT Code', ": " , acct.swiftCode)
1582
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 40}}, _optionalChain$E([labelOverrides, 'optionalAccess', _ => _.acctName]) || 'Account Name', ": " , acct.acctName)
1583
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 41}}, _optionalChain$E([labelOverrides, 'optionalAccess', _2 => _2.currency]) || 'Currency', ": " , acct.currency)
1584
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 42}}, _optionalChain$E([labelOverrides, 'optionalAccess', _3 => _3.swiftCode]) || 'SWIFT Code', ": " , acct.swiftCode)
1585
1585
  , React$1.createElement(ActionButtons, {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 43}}
1586
1586
  , React$1.createElement('div', {__self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 44}}
1587
1587
  , React$1.createElement(OutlineButton, { size: "sm", variant: "primary", onClick: ()=>{
1588
1588
  setAcctBtnNum(index);
1589
1589
  acct.editFxn(acct);
1590
1590
  setClickedBtn('edit');
1591
- }, disabled: loading, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 45}}, clickedBtn === 'edit' && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 49}}) : _optionalChain$B([labelOverrides, 'optionalAccess', _4 => _4.edit]) || 'Edit')
1591
+ }, disabled: loading, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 45}}, clickedBtn === 'edit' && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 49}}) : _optionalChain$E([labelOverrides, 'optionalAccess', _4 => _4.edit]) || 'Edit')
1592
1592
  )
1593
1593
  , React$1.createElement('div', { style: {width:100}, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 51}}
1594
1594
  , acct.isActive ? React$1.createElement(OutlineButton, { size: "sm", variant: "warning", onClick: ()=>{
1595
1595
  setAcctBtnNum(index);
1596
1596
  acct.deactivateFxn(acct);
1597
1597
  setClickedBtn('act');
1598
- }, disabled: loading || acct.isMainAccount, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 52}}, clickedBtn === 'act' && acctBtnNum === index && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 56}}) : _optionalChain$B([labelOverrides, 'optionalAccess', _5 => _5.deactivate]) || 'Deactivate') : React$1.createElement(OutlineButton, { size: "sm", variant: "success", onClick: ()=>{
1598
+ }, disabled: loading || acct.isMainAccount, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 52}}, clickedBtn === 'act' && acctBtnNum === index && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 56}}) : _optionalChain$E([labelOverrides, 'optionalAccess', _5 => _5.deactivate]) || 'Deactivate') : React$1.createElement(OutlineButton, { size: "sm", variant: "success", onClick: ()=>{
1599
1599
  setAcctBtnNum(index);
1600
1600
  acct.reactivateFxn(acct);
1601
1601
  setClickedBtn('act');
1602
- }, disabled: loading, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 56}}, clickedBtn === 'act' && acctBtnNum === index && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 60}}) : _optionalChain$B([labelOverrides, 'optionalAccess', _6 => _6.reactivate]) || 'Reactivate')
1602
+ }, disabled: loading, __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 56}}, clickedBtn === 'act' && acctBtnNum === index && loading ? React$1.createElement(Loader, { variant: "primary", __self: undefined, __source: {fileName: _jsxFileName$13, lineNumber: 60}}) : _optionalChain$E([labelOverrides, 'optionalAccess', _6 => _6.reactivate]) || 'Reactivate')
1603
1603
  )
1604
1604
  )
1605
1605
  )
@@ -1910,7 +1910,7 @@ const BrokerCountry = styled.div`
1910
1910
  }
1911
1911
  `;
1912
1912
 
1913
- const _jsxFileName$10 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\BrokersTable\\BrokersTable.tsx"; function _optionalChain$A(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1913
+ const _jsxFileName$10 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\BrokersTable\\BrokersTable.tsx"; function _optionalChain$D(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1914
1914
  /**
1915
1915
  * A list of all brokers that have been registered on to the LP platform
1916
1916
  */
@@ -1953,7 +1953,7 @@ const BrokersTable = (props) => {
1953
1953
  , React$1.createElement('tr', { className: "rounded-row", __self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 45}}
1954
1954
  , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 46}}
1955
1955
  , React$1.createElement('span', { className: "sortable-col", onClick: ()=>{sortEntries();}, __self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 47}}
1956
- , _optionalChain$A([labelOverrides, 'optionalAccess', _ => _.name]) || 'Name'
1956
+ , _optionalChain$D([labelOverrides, 'optionalAccess', _ => _.name]) || 'Name'
1957
1957
  , sortDir === 'desc' &&
1958
1958
  React$1.createElement(React$1.Fragment, null
1959
1959
  /*arrow-up*/
@@ -1973,9 +1973,9 @@ const BrokersTable = (props) => {
1973
1973
 
1974
1974
  )
1975
1975
  )
1976
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 68}}, _optionalChain$A([labelOverrides, 'optionalAccess', _2 => _2.email]) || 'Email')
1977
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 69}}, _optionalChain$A([labelOverrides, 'optionalAccess', _3 => _3.phone]) || 'Phone')
1978
- , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 70}}, _optionalChain$A([labelOverrides, 'optionalAccess', _4 => _4.country]) || 'Country')
1976
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 68}}, _optionalChain$D([labelOverrides, 'optionalAccess', _2 => _2.email]) || 'Email')
1977
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 69}}, _optionalChain$D([labelOverrides, 'optionalAccess', _3 => _3.phone]) || 'Phone')
1978
+ , React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 70}}, _optionalChain$D([labelOverrides, 'optionalAccess', _4 => _4.country]) || 'Country')
1979
1979
  )
1980
1980
  )
1981
1981
  , dispBrokers && dispBrokers.length > 0 &&
@@ -2019,7 +2019,7 @@ const BrokersTable = (props) => {
2019
2019
  )
2020
2020
  )
2021
2021
  )
2022
- , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 114}}, _optionalChain$A([labelOverrides, 'optionalAccess', _5 => _5.emptyMsg]) || 'Brokers will be displayed here when you have any.')
2022
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 114}}, _optionalChain$D([labelOverrides, 'optionalAccess', _5 => _5.emptyMsg]) || 'Brokers will be displayed here when you have any.')
2023
2023
  )
2024
2024
  )
2025
2025
 
@@ -15546,7 +15546,7 @@ var dayjs_min = {
15546
15546
  var dayjs = dayjs_minExports;
15547
15547
 
15548
15548
  //used to return 'today' or 'yesterday' or date where needed
15549
- function dayDiff$2(rateDate){
15549
+ function dayDiff$2(rateDate,todayOverride,yesterdayOverride){
15550
15550
  //format dates
15551
15551
  const todayFrmt = dayjs(new Date()).format('YYYY M D');
15552
15552
  const newDayFrmt = dayjs(rateDate).format('YYYY M D');
@@ -15557,11 +15557,11 @@ function dayDiff$2(rateDate){
15557
15557
  // return today.diff(newDay)+' '
15558
15558
 
15559
15559
  if (today.diff(newDay) === 0){
15560
- return 'today, '
15560
+ return todayOverride ? `${todayOverride}, ` : 'today, '
15561
15561
  }
15562
15562
 
15563
15563
  if (today.diff(newDay) === 662774400000){
15564
- return 'yesterday, '
15564
+ return yesterdayOverride ? `${yesterdayOverride}, ` : 'yesterday, '
15565
15565
  }
15566
15566
 
15567
15567
  if (today.diff(newDay) > 86400000){
@@ -15626,13 +15626,13 @@ const RateDate$2 = styled.div`
15626
15626
  color: ${theme.colors["neutral-400"]};
15627
15627
  `;
15628
15628
 
15629
- const _jsxFileName$$ = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Chart\\Chart.tsx";Chart$2.register( ...registerables );
15629
+ const _jsxFileName$$ = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Chart\\Chart.tsx"; function _optionalChain$C(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }Chart$2.register( ...registerables );
15630
15630
 
15631
15631
  /**
15632
15632
  * This component displays a historical chart of currency performance between selected currencies.
15633
15633
  */
15634
15634
  const Chart = (props) => {
15635
- const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode} = props;
15635
+ const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode,labelOverrides} = props;
15636
15636
  const [graphData,setGraphData] = React$1.useState({});
15637
15637
 
15638
15638
  const [change,setChange] = React$1.useState(0);
@@ -15755,7 +15755,7 @@ const Chart = (props) => {
15755
15755
  , change === 0 && React$1.createElement('i', { className: "icon-dash neutral" , __self: undefined, __source: {fileName: _jsxFileName$$, lineNumber: 135}})
15756
15756
  , exchCurrCode, " 1.0000 = " , baseCurrCode, " " , graphData.datasets[0].data[graphData.datasets[0].data.length - 1]
15757
15757
  )
15758
- , React$1.createElement(RateDate$2, { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$$, lineNumber: 138}}, `${dayDiff$2(graphData.labels[graphData.labels.length - 1])}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
15758
+ , React$1.createElement(RateDate$2, { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$$, lineNumber: 138}}, `${dayDiff$2(graphData.labels[graphData.labels.length - 1],_optionalChain$C([labelOverrides, 'optionalAccess', _ => _.today]),_optionalChain$C([labelOverrides, 'optionalAccess', _2 => _2.yesterday]))}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
15759
15759
  )
15760
15760
  )
15761
15761
  , React$1.createElement('div', {__self: undefined, __source: {fileName: _jsxFileName$$, lineNumber: 141}}
@@ -15771,7 +15771,7 @@ const Chart = (props) => {
15771
15771
  };
15772
15772
 
15773
15773
  //used to return 'today' or 'yesterday' or date where needed
15774
- function dayDiff$1(rateDate){
15774
+ function dayDiff$1(rateDate,todayOverride,yesterdayOverride){
15775
15775
  //format dates
15776
15776
  const todayFrmt = dayjs(new Date()).format('YYYY M D');
15777
15777
  const newDayFrmt = dayjs(rateDate).format('YYYY M D');
@@ -15782,11 +15782,11 @@ function dayDiff$1(rateDate){
15782
15782
  // return today.diff(newDay)+' '
15783
15783
 
15784
15784
  if (today.diff(newDay) === 0){
15785
- return 'today, '
15785
+ return todayOverride ? `${todayOverride}, ` : 'today, '
15786
15786
  }
15787
15787
 
15788
15788
  if (today.diff(newDay) === 662774400000){
15789
- return 'yesterday, '
15789
+ return yesterdayOverride ? `${yesterdayOverride}, ` : 'yesterday, '
15790
15790
  }
15791
15791
 
15792
15792
  if (today.diff(newDay) > 86400000){
@@ -15852,10 +15852,10 @@ const RateDate$1 = styled.div`
15852
15852
  color: ${theme.colors["neutral-400"]};
15853
15853
  `;
15854
15854
 
15855
- const _jsxFileName$_ = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\ChartMedium\\ChartMedium.tsx";Chart$2.register( ...registerables );
15855
+ const _jsxFileName$_ = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\ChartMedium\\ChartMedium.tsx"; function _optionalChain$B(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }Chart$2.register( ...registerables );
15856
15856
 
15857
15857
  const ChartMedium = (props) => {
15858
- const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode} = props;
15858
+ const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode,labelOverrides} = props;
15859
15859
  const [graphData,setGraphData] = React$1.useState({});
15860
15860
 
15861
15861
  const [change,setChange] = React$1.useState(0);
@@ -15978,7 +15978,7 @@ const ChartMedium = (props) => {
15978
15978
  , change === 0 && React$1.createElement('i', { className: "icon-dash neutral" , __self: undefined, __source: {fileName: _jsxFileName$_, lineNumber: 132}})
15979
15979
  , exchCurrCode, " 1.0000 = " , baseCurrCode, " " , graphData.datasets[0].data[graphData.datasets[0].data.length - 1]
15980
15980
  )
15981
- , React$1.createElement(RateDate$1, { className: "captionBook", __self: undefined, __source: {fileName: _jsxFileName$_, lineNumber: 135}}, `${dayDiff$1(graphData.labels[graphData.labels.length - 1])}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
15981
+ , React$1.createElement(RateDate$1, { className: "captionBook", __self: undefined, __source: {fileName: _jsxFileName$_, lineNumber: 135}}, `${dayDiff$1(graphData.labels[graphData.labels.length - 1],_optionalChain$B([labelOverrides, 'optionalAccess', _ => _.today]),_optionalChain$B([labelOverrides, 'optionalAccess', _2 => _2.yesterday]))}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
15982
15982
  )
15983
15983
  )
15984
15984
  , React$1.createElement('div', {__self: undefined, __source: {fileName: _jsxFileName$_, lineNumber: 138}}
@@ -15994,7 +15994,7 @@ const ChartMedium = (props) => {
15994
15994
  };
15995
15995
 
15996
15996
  //used to return 'today' or 'yesterday' or date where needed
15997
- function dayDiff(rateDate){
15997
+ function dayDiff(rateDate,todayOverride,yesterdayOverride){
15998
15998
  //format dates
15999
15999
  const todayFrmt = dayjs(new Date()).format('YYYY M D');
16000
16000
  const newDayFrmt = dayjs(rateDate).format('YYYY M D');
@@ -16005,11 +16005,11 @@ function dayDiff(rateDate){
16005
16005
  // return today.diff(newDay)+' '
16006
16006
 
16007
16007
  if (today.diff(newDay) === 0){
16008
- return 'today, '
16008
+ return todayOverride ? `${todayOverride}, ` : 'today, '
16009
16009
  }
16010
16010
 
16011
16011
  if (today.diff(newDay) === 662774400000){
16012
- return 'yesterday, '
16012
+ return yesterdayOverride ? `${yesterdayOverride}, ` : 'yesterday, '
16013
16013
  }
16014
16014
 
16015
16015
  if (today.diff(newDay) > 86400000){
@@ -16079,10 +16079,10 @@ const RateDate = styled.div`
16079
16079
  color: ${theme.colors["neutral-400"]};
16080
16080
  `;
16081
16081
 
16082
- const _jsxFileName$Z = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\ChartSmall\\ChartSmall.tsx";Chart$2.register( ...registerables );
16082
+ const _jsxFileName$Z = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\ChartSmall\\ChartSmall.tsx"; function _optionalChain$A(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }Chart$2.register( ...registerables );
16083
16083
 
16084
16084
  const ChartSmall = (props) => {
16085
- const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode} = props;
16085
+ const {ratesData,exchCurrFlag,baseCurrCode,exchCurrName,exchCurrCode,labelOverrides} = props;
16086
16086
  const [graphData,setGraphData] = React$1.useState({});
16087
16087
 
16088
16088
  const [change,setChange] = React$1.useState(0);
@@ -16195,7 +16195,7 @@ const ChartSmall = (props) => {
16195
16195
  , React$1.createElement('img', { src: exchCurrFlag, alt: "Base currency flag" , __self: undefined, __source: {fileName: _jsxFileName$Z, lineNumber: 122}})
16196
16196
  , React$1.createElement('div', {__self: undefined, __source: {fileName: _jsxFileName$Z, lineNumber: 123}}
16197
16197
  , React$1.createElement('p', { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$Z, lineNumber: 124}}, exchCurrCode, " " , graphData.datasets[0].data[graphData.datasets[0].data.length - 1])
16198
- , React$1.createElement(RateDate, { className: "footerBook", __self: undefined, __source: {fileName: _jsxFileName$Z, lineNumber: 125}}, `${dayDiff(graphData.labels[graphData.labels.length - 1])}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
16198
+ , React$1.createElement(RateDate, { className: "footerBook", __self: undefined, __source: {fileName: _jsxFileName$Z, lineNumber: 125}}, `${dayDiff(graphData.labels[graphData.labels.length - 1],_optionalChain$A([labelOverrides, 'optionalAccess', _ => _.today]),_optionalChain$A([labelOverrides, 'optionalAccess', _2 => _2.yesterday]))}${dayjs(graphData.labels[graphData.labels.length - 1]).format('MMM D')}`)
16199
16199
  )
16200
16200
  )
16201
16201
  )