@financial-times/cmp-client 6.1.1 → 6.2.0

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.cjs CHANGED
@@ -80,7 +80,8 @@ const SP_PWMNET = {
80
80
  baseEndpoint: "https://consent-manager.pwmnet.com",
81
81
  propertyId: 33414,
82
82
  _clientOptions: {
83
- rootDomain: "pwmnet.com"
83
+ rootDomain: "pwmnet.com",
84
+ includeUsNat: true
84
85
  }
85
86
  };
86
87
  const SP_FDI_INTELLIGENCE = {
@@ -89,7 +90,8 @@ const SP_FDI_INTELLIGENCE = {
89
90
  baseEndpoint: "https://consent-manager.fdiintelligence.com",
90
91
  propertyId: 34061,
91
92
  _clientOptions: {
92
- rootDomain: "fdiintelligence.com"
93
+ rootDomain: "fdiintelligence.com",
94
+ includeUsNat: true
93
95
  }
94
96
  };
95
97
  const SP_THE_BANKER = {
@@ -98,7 +100,8 @@ const SP_THE_BANKER = {
98
100
  baseEndpoint: "https://consent-manager.thebanker.com",
99
101
  propertyId: 34060,
100
102
  _clientOptions: {
101
- rootDomain: "thebanker.com"
103
+ rootDomain: "thebanker.com",
104
+ includeUsNat: true
102
105
  }
103
106
  };
104
107
  const SP_BANKING_RR = {
@@ -107,7 +110,8 @@ const SP_BANKING_RR = {
107
110
  baseEndpoint: "https://consent-manager.bankingriskandregulation.com",
108
111
  propertyId: 34059,
109
112
  _clientOptions: {
110
- rootDomain: "bankingriskandregulation.com"
113
+ rootDomain: "bankingriskandregulation.com",
114
+ includeUsNat: true
111
115
  }
112
116
  };
113
117
  const SP_SUSTAINABLE_VIEWS = {
@@ -116,7 +120,8 @@ const SP_SUSTAINABLE_VIEWS = {
116
120
  baseEndpoint: "https://consent-manager.sustainableviews.com",
117
121
  propertyId: 34058,
118
122
  _clientOptions: {
119
- rootDomain: "sustainableviews.com"
123
+ rootDomain: "sustainableviews.com",
124
+ includeUsNat: true
120
125
  }
121
126
  };
122
127
  const SP_FT_ADVISER = {
@@ -125,7 +130,8 @@ const SP_FT_ADVISER = {
125
130
  baseEndpoint: "https://consent-manager.ftadviser.com",
126
131
  propertyId: 33416,
127
132
  _clientOptions: {
128
- rootDomain: "ftadviser.com"
133
+ rootDomain: "ftadviser.com",
134
+ includeUsNat: true
129
135
  }
130
136
  };
131
137
  const SP_INVESTORS_CHRONICLE = {
@@ -134,7 +140,8 @@ const SP_INVESTORS_CHRONICLE = {
134
140
  baseEndpoint: "https://consent-manager.investorschronicle.co.uk",
135
141
  propertyId: 33415,
136
142
  _clientOptions: {
137
- rootDomain: "investorschronicle.co.uk"
143
+ rootDomain: "investorschronicle.co.uk",
144
+ includeUsNat: true
138
145
  }
139
146
  };
140
147
  const MM_IGNITES_ASIA = {
@@ -161,7 +168,8 @@ const SP_MANDATE_WIRE = {
161
168
  baseEndpoint: "https://consent-manager.mandatewire.com",
162
169
  propertyId: 35490,
163
170
  _clientOptions: {
164
- rootDomain: "mandatewire.com"
171
+ rootDomain: "mandatewire.com",
172
+ includeUsNat: true
165
173
  }
166
174
  };
167
175
  const SP_FT_LOCATIONS = {
@@ -172,7 +180,8 @@ const SP_FT_LOCATIONS = {
172
180
  _clientOptions: {
173
181
  rootDomain: "ftlocations.com",
174
182
  cookieDomain: ".ftlocations.com",
175
- consentProxyHost: "https://consent.ftlocations.com"
183
+ consentProxyHost: "https://consent.ftlocations.com",
184
+ includeUsNat: true
176
185
  }
177
186
  };
178
187
  const SP_FTA_SERVICE_AWARDS = {
@@ -181,7 +190,8 @@ const SP_FTA_SERVICE_AWARDS = {
181
190
  baseEndpoint: "https://consent-manager.financialadviserserviceawards.com",
182
191
  propertyId: 38297,
183
192
  _clientOptions: {
184
- rootDomain: "financialadviserserviceawards.com"
193
+ rootDomain: "financialadviserserviceawards.com",
194
+ includeUsNat: true
185
195
  }
186
196
  };
187
197
  const SP_CELEBRATION_OF_INVESTMENT = {
@@ -190,7 +200,8 @@ const SP_CELEBRATION_OF_INVESTMENT = {
190
200
  baseEndpoint: "https://consent-manager.celebrationofinvestment.co.uk",
191
201
  propertyId: 38296,
192
202
  _clientOptions: {
193
- rootDomain: "celebrationofinvestment.co.uk"
203
+ rootDomain: "celebrationofinvestment.co.uk",
204
+ includeUsNat: true
194
205
  }
195
206
  };
196
207
  const SP_GLOBAL_PRIVATE_BANKING_AWARDS = {
@@ -199,7 +210,8 @@ const SP_GLOBAL_PRIVATE_BANKING_AWARDS = {
199
210
  baseEndpoint: "https://consent-manager.globalprivatebankingawards.com",
200
211
  propertyId: 38295,
201
212
  _clientOptions: {
202
- rootDomain: "globalprivatebankingawards.com"
213
+ rootDomain: "globalprivatebankingawards.com",
214
+ includeUsNat: true
203
215
  }
204
216
  };
205
217
  const TNW = {
@@ -498,6 +510,12 @@ const iabCustomCategories = {
498
510
  iabVendors: [],
499
511
  customVendors: [],
500
512
  specialFeatures: []
513
+ },
514
+ cookies: {
515
+ purposes: [1, 2, 3, 4, 7, 8, 9, 10],
516
+ iabVendors: [],
517
+ customVendors: [],
518
+ specialFeatures: []
501
519
  }
502
520
  };
503
521
  const iabCategoryNames = Object.keys(iabCustomCategories);
@@ -558,6 +576,14 @@ function getConsentPayload(parsedConsent, updateConsentStore, isUserInitiated, {
558
576
  fow: formOfWordsId
559
577
  }
560
578
  };
579
+ if (categoryName === "cookies") {
580
+ payload.cookies.userAccept = {
581
+ status: parsedConsent[categoryName],
582
+ lbi: false,
583
+ source: SOURCEPOINT_CONSENT_SOURCE,
584
+ fow: formOfWordsId
585
+ };
586
+ }
561
587
  return payload;
562
588
  },
563
589
  {}
@@ -666,17 +692,27 @@ async function parseGPPConsent() {
666
692
  const parsedConsent = parseSection(sectionData);
667
693
  return parsedConsent;
668
694
  }
669
- function checkConsentFor(categoryName, { purpose, vendor, specialFeatureOptins }) {
695
+ function checkConsentFor(categoryName, { purpose, vendor, specialFeatureOptins = {} }) {
670
696
  const customCategory = iabCustomCategories[categoryName];
697
+ const consents = (purpose == null ? void 0 : purpose.consents) || {};
698
+ const legits = (purpose == null ? void 0 : purpose.legitimateInterests) || {};
699
+ const vendorConsents = (vendor == null ? void 0 : vendor.consents) || {};
700
+ const vendorLegits = (vendor == null ? void 0 : vendor.legitimateInterests) || {};
671
701
  const requiredPurposesConsented = customCategory.purposes.every(
672
- (requiredPurpose) => (purpose == null ? void 0 : purpose.consents[requiredPurpose]) || (purpose == null ? void 0 : purpose.legitimateInterests[requiredPurpose])
702
+ (requiredPurpose) => consents[requiredPurpose] || legits[requiredPurpose]
673
703
  );
674
704
  const requiredIabVendorsConsented = customCategory.iabVendors.every(
675
- (requiredVendor) => (vendor == null ? void 0 : vendor.consents[requiredVendor]) || (vendor == null ? void 0 : vendor.legitimateInterests[requiredVendor])
705
+ (requiredVendor) => vendorConsents[requiredVendor] || vendorLegits[requiredVendor]
676
706
  );
677
707
  const requiredSpecialFeaturesConsented = customCategory.specialFeatures.every(
678
- (requiredFeature) => (specialFeatureOptins == null ? void 0 : specialFeatureOptins[requiredFeature]) === true
708
+ (requiredFeature) => specialFeatureOptins[requiredFeature] === true
679
709
  );
710
+ const requireAllUserConsents = customCategory.purposes.every(
711
+ (requiredPurpose) => consents[requiredPurpose] === true
712
+ );
713
+ if (categoryName === "cookies") {
714
+ return requireAllUserConsents && requiredIabVendorsConsented && requiredSpecialFeaturesConsented;
715
+ }
680
716
  return requiredPurposesConsented && requiredIabVendorsConsented && requiredSpecialFeaturesConsented;
681
717
  }
682
718
  async function getTcData() {
@@ -1002,7 +1038,7 @@ function setupPmTracking(trackingProps, cmpBaseEndpoint) {
1002
1038
  false
1003
1039
  );
1004
1040
  }
1005
- const version = "6.1.1";
1041
+ const version = "6.2.0";
1006
1042
  async function initSourcepointCmp(options) {
1007
1043
  const {
1008
1044
  useFTSession = true,
package/dist/index.js CHANGED
@@ -78,7 +78,8 @@ const SP_PWMNET = {
78
78
  baseEndpoint: "https://consent-manager.pwmnet.com",
79
79
  propertyId: 33414,
80
80
  _clientOptions: {
81
- rootDomain: "pwmnet.com"
81
+ rootDomain: "pwmnet.com",
82
+ includeUsNat: true
82
83
  }
83
84
  };
84
85
  const SP_FDI_INTELLIGENCE = {
@@ -87,7 +88,8 @@ const SP_FDI_INTELLIGENCE = {
87
88
  baseEndpoint: "https://consent-manager.fdiintelligence.com",
88
89
  propertyId: 34061,
89
90
  _clientOptions: {
90
- rootDomain: "fdiintelligence.com"
91
+ rootDomain: "fdiintelligence.com",
92
+ includeUsNat: true
91
93
  }
92
94
  };
93
95
  const SP_THE_BANKER = {
@@ -96,7 +98,8 @@ const SP_THE_BANKER = {
96
98
  baseEndpoint: "https://consent-manager.thebanker.com",
97
99
  propertyId: 34060,
98
100
  _clientOptions: {
99
- rootDomain: "thebanker.com"
101
+ rootDomain: "thebanker.com",
102
+ includeUsNat: true
100
103
  }
101
104
  };
102
105
  const SP_BANKING_RR = {
@@ -105,7 +108,8 @@ const SP_BANKING_RR = {
105
108
  baseEndpoint: "https://consent-manager.bankingriskandregulation.com",
106
109
  propertyId: 34059,
107
110
  _clientOptions: {
108
- rootDomain: "bankingriskandregulation.com"
111
+ rootDomain: "bankingriskandregulation.com",
112
+ includeUsNat: true
109
113
  }
110
114
  };
111
115
  const SP_SUSTAINABLE_VIEWS = {
@@ -114,7 +118,8 @@ const SP_SUSTAINABLE_VIEWS = {
114
118
  baseEndpoint: "https://consent-manager.sustainableviews.com",
115
119
  propertyId: 34058,
116
120
  _clientOptions: {
117
- rootDomain: "sustainableviews.com"
121
+ rootDomain: "sustainableviews.com",
122
+ includeUsNat: true
118
123
  }
119
124
  };
120
125
  const SP_FT_ADVISER = {
@@ -123,7 +128,8 @@ const SP_FT_ADVISER = {
123
128
  baseEndpoint: "https://consent-manager.ftadviser.com",
124
129
  propertyId: 33416,
125
130
  _clientOptions: {
126
- rootDomain: "ftadviser.com"
131
+ rootDomain: "ftadviser.com",
132
+ includeUsNat: true
127
133
  }
128
134
  };
129
135
  const SP_INVESTORS_CHRONICLE = {
@@ -132,7 +138,8 @@ const SP_INVESTORS_CHRONICLE = {
132
138
  baseEndpoint: "https://consent-manager.investorschronicle.co.uk",
133
139
  propertyId: 33415,
134
140
  _clientOptions: {
135
- rootDomain: "investorschronicle.co.uk"
141
+ rootDomain: "investorschronicle.co.uk",
142
+ includeUsNat: true
136
143
  }
137
144
  };
138
145
  const MM_IGNITES_ASIA = {
@@ -159,7 +166,8 @@ const SP_MANDATE_WIRE = {
159
166
  baseEndpoint: "https://consent-manager.mandatewire.com",
160
167
  propertyId: 35490,
161
168
  _clientOptions: {
162
- rootDomain: "mandatewire.com"
169
+ rootDomain: "mandatewire.com",
170
+ includeUsNat: true
163
171
  }
164
172
  };
165
173
  const SP_FT_LOCATIONS = {
@@ -170,7 +178,8 @@ const SP_FT_LOCATIONS = {
170
178
  _clientOptions: {
171
179
  rootDomain: "ftlocations.com",
172
180
  cookieDomain: ".ftlocations.com",
173
- consentProxyHost: "https://consent.ftlocations.com"
181
+ consentProxyHost: "https://consent.ftlocations.com",
182
+ includeUsNat: true
174
183
  }
175
184
  };
176
185
  const SP_FTA_SERVICE_AWARDS = {
@@ -179,7 +188,8 @@ const SP_FTA_SERVICE_AWARDS = {
179
188
  baseEndpoint: "https://consent-manager.financialadviserserviceawards.com",
180
189
  propertyId: 38297,
181
190
  _clientOptions: {
182
- rootDomain: "financialadviserserviceawards.com"
191
+ rootDomain: "financialadviserserviceawards.com",
192
+ includeUsNat: true
183
193
  }
184
194
  };
185
195
  const SP_CELEBRATION_OF_INVESTMENT = {
@@ -188,7 +198,8 @@ const SP_CELEBRATION_OF_INVESTMENT = {
188
198
  baseEndpoint: "https://consent-manager.celebrationofinvestment.co.uk",
189
199
  propertyId: 38296,
190
200
  _clientOptions: {
191
- rootDomain: "celebrationofinvestment.co.uk"
201
+ rootDomain: "celebrationofinvestment.co.uk",
202
+ includeUsNat: true
192
203
  }
193
204
  };
194
205
  const SP_GLOBAL_PRIVATE_BANKING_AWARDS = {
@@ -197,7 +208,8 @@ const SP_GLOBAL_PRIVATE_BANKING_AWARDS = {
197
208
  baseEndpoint: "https://consent-manager.globalprivatebankingawards.com",
198
209
  propertyId: 38295,
199
210
  _clientOptions: {
200
- rootDomain: "globalprivatebankingawards.com"
211
+ rootDomain: "globalprivatebankingawards.com",
212
+ includeUsNat: true
201
213
  }
202
214
  };
203
215
  const TNW = {
@@ -496,6 +508,12 @@ const iabCustomCategories = {
496
508
  iabVendors: [],
497
509
  customVendors: [],
498
510
  specialFeatures: []
511
+ },
512
+ cookies: {
513
+ purposes: [1, 2, 3, 4, 7, 8, 9, 10],
514
+ iabVendors: [],
515
+ customVendors: [],
516
+ specialFeatures: []
499
517
  }
500
518
  };
501
519
  const iabCategoryNames = Object.keys(iabCustomCategories);
@@ -556,6 +574,14 @@ function getConsentPayload(parsedConsent, updateConsentStore, isUserInitiated, {
556
574
  fow: formOfWordsId
557
575
  }
558
576
  };
577
+ if (categoryName === "cookies") {
578
+ payload.cookies.userAccept = {
579
+ status: parsedConsent[categoryName],
580
+ lbi: false,
581
+ source: SOURCEPOINT_CONSENT_SOURCE,
582
+ fow: formOfWordsId
583
+ };
584
+ }
559
585
  return payload;
560
586
  },
561
587
  {}
@@ -664,17 +690,27 @@ async function parseGPPConsent() {
664
690
  const parsedConsent = parseSection(sectionData);
665
691
  return parsedConsent;
666
692
  }
667
- function checkConsentFor(categoryName, { purpose, vendor, specialFeatureOptins }) {
693
+ function checkConsentFor(categoryName, { purpose, vendor, specialFeatureOptins = {} }) {
668
694
  const customCategory = iabCustomCategories[categoryName];
695
+ const consents = (purpose == null ? void 0 : purpose.consents) || {};
696
+ const legits = (purpose == null ? void 0 : purpose.legitimateInterests) || {};
697
+ const vendorConsents = (vendor == null ? void 0 : vendor.consents) || {};
698
+ const vendorLegits = (vendor == null ? void 0 : vendor.legitimateInterests) || {};
669
699
  const requiredPurposesConsented = customCategory.purposes.every(
670
- (requiredPurpose) => (purpose == null ? void 0 : purpose.consents[requiredPurpose]) || (purpose == null ? void 0 : purpose.legitimateInterests[requiredPurpose])
700
+ (requiredPurpose) => consents[requiredPurpose] || legits[requiredPurpose]
671
701
  );
672
702
  const requiredIabVendorsConsented = customCategory.iabVendors.every(
673
- (requiredVendor) => (vendor == null ? void 0 : vendor.consents[requiredVendor]) || (vendor == null ? void 0 : vendor.legitimateInterests[requiredVendor])
703
+ (requiredVendor) => vendorConsents[requiredVendor] || vendorLegits[requiredVendor]
674
704
  );
675
705
  const requiredSpecialFeaturesConsented = customCategory.specialFeatures.every(
676
- (requiredFeature) => (specialFeatureOptins == null ? void 0 : specialFeatureOptins[requiredFeature]) === true
706
+ (requiredFeature) => specialFeatureOptins[requiredFeature] === true
677
707
  );
708
+ const requireAllUserConsents = customCategory.purposes.every(
709
+ (requiredPurpose) => consents[requiredPurpose] === true
710
+ );
711
+ if (categoryName === "cookies") {
712
+ return requireAllUserConsents && requiredIabVendorsConsented && requiredSpecialFeaturesConsented;
713
+ }
678
714
  return requiredPurposesConsented && requiredIabVendorsConsented && requiredSpecialFeaturesConsented;
679
715
  }
680
716
  async function getTcData() {
@@ -1000,7 +1036,7 @@ function setupPmTracking(trackingProps, cmpBaseEndpoint) {
1000
1036
  false
1001
1037
  );
1002
1038
  }
1003
- const version = "6.1.1";
1039
+ const version = "6.2.0";
1004
1040
  async function initSourcepointCmp(options) {
1005
1041
  const {
1006
1042
  useFTSession = true,
@@ -1,2 +1,2 @@
1
- (function(){"use strict";const U=(t,{credentials:e="omit"}={})=>fetch(`https://session-next.ft.com${t}`,{credentials:e,useCorsProxy:!0}).then(n=>n.ok?n.json():n.text().then(o=>{throw new Error(`Next session responded with "${o}" (${n.status})`)})).catch(n=>{document.body.dispatchEvent(new CustomEvent("oErrors.log",{bubbles:!0,detail:{error:n,info:{component:"next-session-client"}}}))});let _={};const S=(t,e)=>{if(typeof t=="object"){_=t;return}if(typeof t=="string"&&typeof e=="string"){_[t]=e;return}if(typeof t=="string"&&typeof e>"u")return _[t]||null;if(typeof t>"u"&&typeof e>"u")return _;throw new Error("Invalid arguments")};S.clear=()=>{_={}};const I={},x=()=>{const[,t]=/FTSession_s=([^;]+)/.exec(document.cookie)||[];return t},j=()=>{const t=S("uuid");if(t)return Promise.resolve({uuid:t});const e=x();return e?(I.uuid||(I.uuid=U(`/sessions/s/${e}`).then(({uuid:n}={})=>(delete I.uuid,n&&S("uuid",n),{uuid:n}))),I.uuid):Promise.resolve({uuid:void 0})},N="sourcepoint-cmp",H="FTPINK",G="FTConsent",q="sourcepointCmp/VngD.XycZut.595cp9fWdp5XYP9vlFvk",W=".ft.com",B="https://consent.ft.com",T={permutiveAds:{purposes:[2,4,8,9],iabVendors:[361],customVendors:[],specialFeatures:[]},demographicAds:{purposes:[7,9,10],iabVendors:[],customVendors:[],specialFeatures:[]},behaviouralAds:{purposes:[2,4,8,9],iabVendors:[],customVendors:[],specialFeatures:[]},programmaticAds:{purposes:[2],iabVendors:[],customVendors:[],specialFeatures:[]},personalisedMarketing:{purposes:[2,7,8,9,10],iabVendors:[],customVendors:[],specialFeatures:[]}},y=Object.keys(T),u={joinHref:!0,gdpr:{}},k={...u,accountId:1906,baseEndpoint:"https://consent-manager.ft.com",propertyHref:"https://local.ft.com",_clientOptions:{privacyManagerId:827767,manageCookiesLinkOverride:"ft.com/preferences/manage-cookies",rootDomain:"ft.com",includeUsNat:!0}},v={...u,accountId:1906,baseEndpoint:"https://consent-manager.ft.com",propertyId:31642,_clientOptions:{privacyManagerId:827767,usnatPrivacyManagerId:1143274,ccpaPrivacyManagerId:944882,manageCookiesLinkOverride:"ft.com/preferences/manage-cookies",rootDomain:"ft.com",includeUsNat:!0}},$={...u,accountId:1906,baseEndpoint:"https://consent-manager.pwmnet.com",propertyId:33414,_clientOptions:{rootDomain:"pwmnet.com"}},K={...u,accountId:1906,baseEndpoint:"https://consent-manager.fdiintelligence.com",propertyId:34061,_clientOptions:{rootDomain:"fdiintelligence.com"}},J={...u,accountId:1906,baseEndpoint:"https://consent-manager.thebanker.com",propertyId:34060,_clientOptions:{rootDomain:"thebanker.com"}},X={...u,accountId:1906,baseEndpoint:"https://consent-manager.bankingriskandregulation.com",propertyId:34059,_clientOptions:{rootDomain:"bankingriskandregulation.com"}},Y={...u,accountId:1906,baseEndpoint:"https://consent-manager.sustainableviews.com",propertyId:34058,_clientOptions:{rootDomain:"sustainableviews.com"}},z={...u,accountId:1906,baseEndpoint:"https://consent-manager.ftadviser.com",propertyId:33416,_clientOptions:{rootDomain:"ftadviser.com"}},Z={...u,accountId:1906,baseEndpoint:"https://consent-manager.investorschronicle.co.uk",propertyId:33415,_clientOptions:{rootDomain:"investorschronicle.co.uk"}},Q={...u,accountId:1906,baseEndpoint:"https://cdn.privacy-mgmt.com",propertyId:33947,_clientOptions:{rootDomain:"ignitesasia.com"}},tt={...u,accountId:1906,baseEndpoint:"https://cdn.privacy-mgmt.com",propertyId:33946,_clientOptions:{rootDomain:"igniteseurope.com"}},et={...u,accountId:1906,baseEndpoint:"https://consent-manager.mandatewire.com",propertyId:35490,_clientOptions:{rootDomain:"mandatewire.com"}},nt={...u,accountId:1906,baseEndpoint:"https://consent-manager.ftlocations.com",propertyId:37407,_clientOptions:{rootDomain:"ftlocations.com",cookieDomain:".ftlocations.com",consentProxyHost:"https://consent.ftlocations.com"}},ot={...u,accountId:1906,baseEndpoint:"https://consent-manager.financialadviserserviceawards.com",propertyId:38297,_clientOptions:{rootDomain:"financialadviserserviceawards.com"}},st={...u,accountId:1906,baseEndpoint:"https://consent-manager.celebrationofinvestment.co.uk",propertyId:38296,_clientOptions:{rootDomain:"celebrationofinvestment.co.uk"}},at={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalprivatebankingawards.com",propertyId:38295,_clientOptions:{rootDomain:"globalprivatebankingawards.com"}},it={...u,accountId:1906,baseEndpoint:"https://consent-manager.thenextweb.com",propertyId:37672,_clientOptions:{rootDomain:"thenextweb.com"}},rt={...u,accountId:1906,baseEndpoint:"https://consent-manager.invisso.org",propertyId:38851,_clientOptions:{rootDomain:"invisso.org"}},ct={...u,accountId:1906,baseEndpoint:"https://consent-manager.abseast.com",propertyId:38888,_clientOptions:{rootDomain:"abseast.com"}},pt={...u,accountId:1906,baseEndpoint:"https://consent-manager.absasia.org",propertyId:38887,_clientOptions:{rootDomain:"absasia.org"}},ut={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalcoveredbonds.com",propertyId:38886,_clientOptions:{rootDomain:"globalcoveredbonds.com"}},dt={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalborrowers.com",propertyId:38885,_clientOptions:{rootDomain:"globalborrowers.com"}},lt={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalabs.org",propertyId:38884,_clientOptions:{rootDomain:"globalabs.org"}},ft={...u,accountId:1906,baseEndpoint:"https://consent-manager.creditrisk-transfer.com",propertyId:38883,_clientOptions:{rootDomain:"creditrisk-transfer.com"}},gt={...u,accountId:1906,baseEndpoint:"https://consent-manager.significantrisktransfer.com",propertyId:38882,_clientOptions:{rootDomain:"significantrisktransfer.com"}},mt={...u,accountId:1906,baseEndpoint:"https://consent-manager.theceeforum.com",propertyId:38882,_clientOptions:{rootDomain:"theceeforum.com"}},_t=Object.freeze(Object.defineProperty({__proto__:null,FT_DOTCOM_PROD:v,FT_DOTCOM_TEST:k,INVISSO:rt,INV_ABSASIA:pt,INV_ABSEAST:ct,INV_CEE_FORUM:mt,INV_CREDITRISK_TRANSFER:ft,INV_GLOBAL_ABS:lt,INV_GLOBAL_BORROWERS:dt,INV_GLOBAL_COVERED_BONDS:ut,MM_IGNITES_ASIA:Q,MM_IGNITES_EUROPE:tt,SIGRISK_TRANSFER:gt,SP_BANKING_RR:X,SP_CELEBRATION_OF_INVESTMENT:st,SP_FDI_INTELLIGENCE:K,SP_FTA_SERVICE_AWARDS:ot,SP_FT_ADVISER:z,SP_FT_LOCATIONS:nt,SP_GLOBAL_PRIVATE_BANKING_AWARDS:at,SP_INVESTORS_CHRONICLE:Z,SP_MANDATE_WIRE:et,SP_PWMNET:$,SP_SUSTAINABLE_VIEWS:Y,SP_THE_BANKER:J,TNW:it},Symbol.toStringTag,{value:"Module"}));function A(t,e){const n=document.createElement("script");return n.dataset.cmpScript=t,n.innerHTML=e,n}function It(t){const e=document.createElement("script");return e.src=t,e}const yt={cmpFrames:"https://consent-manager.ft.com/unified/wrapperMessagingWithoutDetection.js"},P={tcfStub:'"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",r.title = "__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();',gppStub:`window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));
2
- `};function vt(t){const e=document.createDocumentFragment();return e.appendChild(A("tcf",P.tcfStub)),t.includeUsNat&&e.appendChild(A("gpp",P.gppStub)),e.appendChild(It(yt.cmpFrames)),e}function bt(t,e){const{userId:n,includeUsNat:o}=e;return n&&(t.authId=n),o&&(t.usnat=t.usnat||{}),t}function wt(t,e){const{_clientOptions:n,...o}=t,s=bt(o,e);window._sp_={config:s},window._sp_queue??(window._sp_queue=[]),document.head.appendChild(vt(e))}function St(t,e,n,{formOfWordsId:o,cookieDomain:s}){const r=Object.keys(t).reduce((c,i)=>(c[i]={onsite:{status:t[i],lbi:!1,source:N,fow:o}},c),{});return e?{setConsentCookie:!0,formOfWordsId:o,consentSource:N,cookieDomain:s,skipDuplicateUpdates:!n,data:r}:{data:r,cookieDomain:s}}const m={CALIFORNIA:"uscav1",US_NATIONAL:"usnat"},D={[m.CALIFORNIA]:{excludedCategories:{personalisedMarketing:!0}},[m.US_NATIONAL]:{excludedCategories:{personalisedMarketing:!0}}};function ht(t){const{applicableSections:e,supportedAPIs:n}=t,o=e[0];if(o===-1||typeof o>"u")return;const s=n.find(r=>r.startsWith(`${o}:`));return s==null?void 0:s.split(":")[1]}function Ot(t){const{SaleOptOut:e,SharingOptOut:n,Gpc:o}=t,{excludedCategories:s}=D[m.CALIFORNIA],a=e!==1&&n!==1&&!o,r={};for(const c of y){if(c in s){r[c]=!0;continue}r[c]=a}return r}function Ct(t){const{SaleOptOut:e,SharingOptOut:n,TargetedAdvertisingOptOut:o}=t,{excludedCategories:s}=D[m.US_NATIONAL],a=JSON.parse(localStorage.getItem("ft_sp_marketing_optout")||"{}"),r=e!==1&&n!==1&&o!==1,c={};for(const i of y){if(i in s){c[i]=!0;continue}c[i]=r}if(a.usnat)for(const i of y)c[i]=!1;return c}const Et={[m.CALIFORNIA]:Ot,[m.US_NATIONAL]:Ct};async function L(){return new Promise((t,e)=>{try{window.__gpp?window.__gpp("ping",t):e(new Error("GPP API is not available on page"))}catch(n){e(n)}})}async function Nt(){const t=await L(),{parsedSections:e}=t,n=ht(t);if(!n||!e[n])throw new Error("GPP parser was called without an applicable section");const o=e[n],s=Et[n];if(!s||typeof s!="function")throw new Error(`No parser found for applicable GPP section: ${n}`);return s(o)}function Tt(t,{purpose:e,vendor:n,specialFeatureOptins:o}){const s=T[t],a=s.purposes.every(i=>(e==null?void 0:e.consents[i])||(e==null?void 0:e.legitimateInterests[i])),r=s.iabVendors.every(i=>(n==null?void 0:n.consents[i])||(n==null?void 0:n.legitimateInterests[i])),c=s.specialFeatures.every(i=>(o==null?void 0:o[i])===!0);return a&&r&&c}async function M(){return new Promise((t,e)=>{try{window.__tcfapi?window.__tcfapi("addEventListener",2,t):e(new Error("TCF API is not available on page"))}catch(n){e(n)}})}async function kt(){const t=await M(),e={};for(const n of y)e[n]=Tt(n,t);return e}async function At(t){const n={gdpr:kt,usnat:Nt}[t];if(!n)throw new Error("Unable to update user consent. Unsupported consent legislation.");return n()}function Pt(){const e=Object.fromEntries(document.cookie.split("; ").map(o=>o.split("=")))[G];if(!e)return{};const n=decodeURIComponent(e);return Object.fromEntries(n.split(",").map(o=>{const[s,a]=o.split(":");return[s,a==="on"]}))}function Dt(t,e){return Object.keys(t).some(o=>{const s=`${o.toLowerCase()}Onsite`;return t[o]!==e[s]})}function Lt({userId:t,useConsentStore:e}){return!!t&&e===!0}function Mt(t,e){return t?`${e.consentProxyHost}/__consent/consent-record/${H}/${e.userId}?updateFtConsentCookie=true`:`${e.consentProxyHost}/__consent/consent-record-cookie?cookieDomain=${e.cookieDomain}`}const R={gdpr:!1,usnat:!1},h=Object.assign({},R);function F(t){h[t]=!0}function Rt(t){return h[t]}function Ft(){Object.assign(h,R)}async function Vt(t){return Rt(t)?t==="gdpr"?(await M()).eventStatus==="useractioncomplete":t==="usnat"?(await L()).cmpDisplayStatus==="hidden":!1:!1}function Ut(){window.__tcfapi&&window.__tcfapi("addEventListener",2,t=>{t.eventStatus==="cmpuishown"&&F("gdpr")}),window.__gpp&&window.__gpp("addEventListener",({pingData:t})=>{t.cmpDisplayStatus==="visible"&&F("usnat")})}async function xt(t,e){try{const n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});n.ok||console.error("Unable to save consent preferences",n.status)}catch(n){console.error("An error occurred while saving consent",n)}}const jt=()=>{document.dispatchEvent(new CustomEvent("onCmpConsentReady",{bubbles:!0}))};function Ht(t){return async function(n,o,s,a){if(jt(),t.disableFTCookies||!t.includeUsNat&&n==="usnat")return;const r=a.applies?n:"gdpr";if(r!==n||!s)return;let c;try{c=await At(r)}catch(w){console.error(w)}if(!c||!Dt(c,Pt()))return;const p=await Vt(r),f=Lt(t),d=Mt(f,t),g=St(c,f,p,t);await xt(d,g),p&&Ft(),document.dispatchEvent(new CustomEvent("oCookieMessage.act",{bubbles:!0}))}}const O="cookie-message",Gt="manage-cookies";let C=Object.freeze({activeComponent:O,messageId:0,privacyManagerId:0});function qt(t){return typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]"}const Wt=()=>({...C}),E=t=>{if(!qt(t)){console.error("Invalid state changes");return}C={...C,...t}},Bt=["adsDisableInternalCMP","pwm.cmp","messageSlotBottom"];function $t(t,e){const n=Kt(t.flags);window._sp_queue=window._sp_queue??[],window._sp_queue.push(()=>{var o,s;for(const[a,r]of Object.entries(Xt))(s=(o=window._sp_).addEventListener)==null||s.call(o,a,r({...t,flags:n}))}),Yt({...t,flags:n},e)}function Kt(t){const e={};return typeof t=="object"&&Bt.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function Jt(t){if(!t)return;const e=document.body,n=new CustomEvent("oTracking.event",{bubbles:!0,cancelable:!0,detail:t.detail});e.dispatchEvent(n)}function b({trackingProps:t,action:e,triggerAction:n}){let o;const s=Wt(),{product:a,app:r,flags:c}=t;s.activeComponent===O?o=s.messageId:o=s.privacyManagerId;const i={detail:{component:{id:o,name:s.activeComponent,type:"overlay",subtype:"cmp"},category:"component",action:e,...n&&{trigger_action:n},...a&&{product:a},...r&&{app:r},custom:[{cookie_toggle_flag:c}],url:window.document.location.href||null}};Jt(i)}const Xt={onMessageChoiceSelect:t=>(e,n,o)=>{const a={11:"accept_all",12:"manage_cookies",13:"reject_all"}[o];a&&b({trackingProps:t,action:"click",triggerAction:a})},onMessageReady:t=>()=>{b({trackingProps:t,action:"view"})},onMessageReceiveData:()=>(t,e)=>{const{messageId:n}=e;n&&E({messageId:n})},onError:t=>(e,n)=>{b({trackingProps:t,action:"error",triggerAction:n})},onPMCancel:()=>()=>{E({activeComponent:O})}};function Yt(t,e){window.addEventListener("message",function(n){if(n.origin!==e)return;const o={1:"save_and_close",11:"accept_all",13:"reject_all"},{data:{fromPM:s,actionType:a,messageId:r="0"}={}}=n;s&&(+r&&E({activeComponent:Gt,privacyManagerId:+r}),!(!a||!o[a])&&b({trackingProps:t,action:"click",triggerAction:o[a]}))},!1)}const zt="6.1.1";async function Zt(t){const{useFTSession:e=!0,consentProxyHost:n=B,cookieDomain:o=W,formOfWordsId:s=q,useConsentStore:a=!0,trackingContext:r={},disableFTCookies:c=!1,includeUsNat:i=!1}=t||{};let{propertyConfig:p=v,userId:f}=t||{};if(typeof window>"u"){console.error("The CMP client can only be initialised in a browser context");return}if(window.FT_CMP_CLIENT_VERSION=zt,!f&&e)try{const d=await j();f=d==null?void 0:d.uuid}catch(d){console.error(d)}p=Qt(p),wt(p,{userId:f,includeUsNat:i}),Ut(),window._sp_queue.push(()=>{var d,g;(g=(d=window._sp_)==null?void 0:d.addEventListener)==null||g.call(d,"onConsentReady",Ht({userId:f,consentProxyHost:n,cookieDomain:o,formOfWordsId:s,useConsentStore:a,disableFTCookies:c,includeUsNat:i}))}),$t(r,p.baseEndpoint)}function Qt(t){if(!(t!=null&&t.accountId))throw new Error("Please pass a valid property config");return t.events&&(console.warn("[cmp-client] Passing an events map in the config is not supported and will be ignored. Please use window._sp_.addEventListener() to listen for events"),delete t.events),t}function V(t,e,n,o,s,a){const{text:r,onClick:c}=o[e],i=document.querySelectorAll(`a[href*="${a}"]`);for(const p of i)(n||t)&&(s.has(p)&&p.removeEventListener("click",s.get(p)),p.innerText=r,p.addEventListener("click",c),s.set(p,c))}function te({_clientOptions:t}=v){const{privacyManagerId:e,ccpaPrivacyManagerId:n,usnatPrivacyManagerId:o,manageCookiesLinkOverride:s}=t??v._clientOptions,a={usnat:{text:"Do Not Sell My Personal Information",onClick:i=>{var p;i.preventDefault(),(p=window._sp_.usnat)==null||p.loadPrivacyManagerModal(o)}},ccpa:{text:"Do Not Sell My Personal Information",onClick:i=>{var p;i.preventDefault(),(p=window._sp_.ccpa)==null||p.loadPrivacyManagerModal(n)}},gdpr:{text:"Manage Cookies",onClick:i=>{var p;i.preventDefault(),(p=window._sp_.gdpr)==null||p.loadPrivacyManagerModal(e)}}},r=new Map,c=function(i,p,f,d){V(!1,i,d.applies,a,r,s),d.applies&&window._sp_queue.push(()=>{var g,w;(w=(g=window._sp_).removeEventListener)==null||w.call(g,"onConsentReady",c)})};V(!0,"gdpr",!1,a,r,s),window._sp_queue??(window._sp_queue=[]),window._sp_queue.push(()=>{var i,p;(p=(i=window._sp_).addEventListener)==null||p.call(i,"onConsentReady",c)})}function ee(t){return t._clientOptions??{}}const ne={"ft.com":ee};function oe(t){return new Promise((e,n)=>{const{rootDomain:o}=t._clientOptions||{};if(!o)return e({});const s=ne[o];if(!s||typeof s!="function")return e({...t._clientOptions});const a=()=>{try{e(s(t))}catch(r){n(r)}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a):a()})}function se(t,e){if(!e||Number.isFinite(parseFloat(e))||!t.endsWith(e))return!1;const n=t.indexOf(e),o=t[n-1];return o==="."||o===void 0}function ae(t){if(!t)throw new Error("Invalid hostname provided");let n=Object.values(_t).find(o=>{var a;if(o.propertyHref)return!1;const s=(a=o._clientOptions)==null?void 0:a.rootDomain;return s&&se(t,s)});return n??(n=k),n}const ie=new URL(window.location.href).hostname,l=ae(ie);(async()=>{var t,e;try{const n=await oe(l);Zt({propertyConfig:l,...n}),(t=l==null?void 0:l._clientOptions)!=null&&t.privacyManagerId&&((e=l==null?void 0:l._clientOptions)!=null&&e.manageCookiesLinkOverride)&&te(l)}catch(n){console.error("Error: CMP package configure + initialise Sourcepoint failed.",n)}})()})();
1
+ (function(){"use strict";const V=(t,{credentials:e="omit"}={})=>fetch(`https://session-next.ft.com${t}`,{credentials:e,useCorsProxy:!0}).then(n=>n.ok?n.json():n.text().then(o=>{throw new Error(`Next session responded with "${o}" (${n.status})`)})).catch(n=>{document.body.dispatchEvent(new CustomEvent("oErrors.log",{bubbles:!0,detail:{error:n,info:{component:"next-session-client"}}}))});let I={};const S=(t,e)=>{if(typeof t=="object"){I=t;return}if(typeof t=="string"&&typeof e=="string"){I[t]=e;return}if(typeof t=="string"&&typeof e>"u")return I[t]||null;if(typeof t>"u"&&typeof e>"u")return I;throw new Error("Invalid arguments")};S.clear=()=>{I={}};const y={},x=()=>{const[,t]=/FTSession_s=([^;]+)/.exec(document.cookie)||[];return t},j=()=>{const t=S("uuid");if(t)return Promise.resolve({uuid:t});const e=x();return e?(y.uuid||(y.uuid=V(`/sessions/s/${e}`).then(({uuid:n}={})=>(delete y.uuid,n&&S("uuid",n),{uuid:n}))),y.uuid):Promise.resolve({uuid:void 0})},O="sourcepoint-cmp",H="FTPINK",G="FTConsent",q="sourcepointCmp/VngD.XycZut.595cp9fWdp5XYP9vlFvk",B=".ft.com",W="https://consent.ft.com",k={permutiveAds:{purposes:[2,4,8,9],iabVendors:[361],customVendors:[],specialFeatures:[]},demographicAds:{purposes:[7,9,10],iabVendors:[],customVendors:[],specialFeatures:[]},behaviouralAds:{purposes:[2,4,8,9],iabVendors:[],customVendors:[],specialFeatures:[]},programmaticAds:{purposes:[2],iabVendors:[],customVendors:[],specialFeatures:[]},personalisedMarketing:{purposes:[2,7,8,9,10],iabVendors:[],customVendors:[],specialFeatures:[]},cookies:{purposes:[1,2,3,4,7,8,9,10],iabVendors:[],customVendors:[],specialFeatures:[]}},v=Object.keys(k),u={joinHref:!0,gdpr:{}},T={...u,accountId:1906,baseEndpoint:"https://consent-manager.ft.com",propertyHref:"https://local.ft.com",_clientOptions:{privacyManagerId:827767,manageCookiesLinkOverride:"ft.com/preferences/manage-cookies",rootDomain:"ft.com",includeUsNat:!0}},b={...u,accountId:1906,baseEndpoint:"https://consent-manager.ft.com",propertyId:31642,_clientOptions:{privacyManagerId:827767,usnatPrivacyManagerId:1143274,ccpaPrivacyManagerId:944882,manageCookiesLinkOverride:"ft.com/preferences/manage-cookies",rootDomain:"ft.com",includeUsNat:!0}},$={...u,accountId:1906,baseEndpoint:"https://consent-manager.pwmnet.com",propertyId:33414,_clientOptions:{rootDomain:"pwmnet.com",includeUsNat:!0}},K={...u,accountId:1906,baseEndpoint:"https://consent-manager.fdiintelligence.com",propertyId:34061,_clientOptions:{rootDomain:"fdiintelligence.com",includeUsNat:!0}},J={...u,accountId:1906,baseEndpoint:"https://consent-manager.thebanker.com",propertyId:34060,_clientOptions:{rootDomain:"thebanker.com",includeUsNat:!0}},X={...u,accountId:1906,baseEndpoint:"https://consent-manager.bankingriskandregulation.com",propertyId:34059,_clientOptions:{rootDomain:"bankingriskandregulation.com",includeUsNat:!0}},Y={...u,accountId:1906,baseEndpoint:"https://consent-manager.sustainableviews.com",propertyId:34058,_clientOptions:{rootDomain:"sustainableviews.com",includeUsNat:!0}},z={...u,accountId:1906,baseEndpoint:"https://consent-manager.ftadviser.com",propertyId:33416,_clientOptions:{rootDomain:"ftadviser.com",includeUsNat:!0}},Z={...u,accountId:1906,baseEndpoint:"https://consent-manager.investorschronicle.co.uk",propertyId:33415,_clientOptions:{rootDomain:"investorschronicle.co.uk",includeUsNat:!0}},Q={...u,accountId:1906,baseEndpoint:"https://cdn.privacy-mgmt.com",propertyId:33947,_clientOptions:{rootDomain:"ignitesasia.com"}},tt={...u,accountId:1906,baseEndpoint:"https://cdn.privacy-mgmt.com",propertyId:33946,_clientOptions:{rootDomain:"igniteseurope.com"}},et={...u,accountId:1906,baseEndpoint:"https://consent-manager.mandatewire.com",propertyId:35490,_clientOptions:{rootDomain:"mandatewire.com",includeUsNat:!0}},nt={...u,accountId:1906,baseEndpoint:"https://consent-manager.ftlocations.com",propertyId:37407,_clientOptions:{rootDomain:"ftlocations.com",cookieDomain:".ftlocations.com",consentProxyHost:"https://consent.ftlocations.com",includeUsNat:!0}},ot={...u,accountId:1906,baseEndpoint:"https://consent-manager.financialadviserserviceawards.com",propertyId:38297,_clientOptions:{rootDomain:"financialadviserserviceawards.com",includeUsNat:!0}},st={...u,accountId:1906,baseEndpoint:"https://consent-manager.celebrationofinvestment.co.uk",propertyId:38296,_clientOptions:{rootDomain:"celebrationofinvestment.co.uk",includeUsNat:!0}},at={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalprivatebankingawards.com",propertyId:38295,_clientOptions:{rootDomain:"globalprivatebankingawards.com",includeUsNat:!0}},it={...u,accountId:1906,baseEndpoint:"https://consent-manager.thenextweb.com",propertyId:37672,_clientOptions:{rootDomain:"thenextweb.com"}},rt={...u,accountId:1906,baseEndpoint:"https://consent-manager.invisso.org",propertyId:38851,_clientOptions:{rootDomain:"invisso.org"}},ct={...u,accountId:1906,baseEndpoint:"https://consent-manager.abseast.com",propertyId:38888,_clientOptions:{rootDomain:"abseast.com"}},pt={...u,accountId:1906,baseEndpoint:"https://consent-manager.absasia.org",propertyId:38887,_clientOptions:{rootDomain:"absasia.org"}},ut={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalcoveredbonds.com",propertyId:38886,_clientOptions:{rootDomain:"globalcoveredbonds.com"}},dt={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalborrowers.com",propertyId:38885,_clientOptions:{rootDomain:"globalborrowers.com"}},lt={...u,accountId:1906,baseEndpoint:"https://consent-manager.globalabs.org",propertyId:38884,_clientOptions:{rootDomain:"globalabs.org"}},ft={...u,accountId:1906,baseEndpoint:"https://consent-manager.creditrisk-transfer.com",propertyId:38883,_clientOptions:{rootDomain:"creditrisk-transfer.com"}},gt={...u,accountId:1906,baseEndpoint:"https://consent-manager.significantrisktransfer.com",propertyId:38882,_clientOptions:{rootDomain:"significantrisktransfer.com"}},mt={...u,accountId:1906,baseEndpoint:"https://consent-manager.theceeforum.com",propertyId:38882,_clientOptions:{rootDomain:"theceeforum.com"}},_t=Object.freeze(Object.defineProperty({__proto__:null,FT_DOTCOM_PROD:b,FT_DOTCOM_TEST:T,INVISSO:rt,INV_ABSASIA:pt,INV_ABSEAST:ct,INV_CEE_FORUM:mt,INV_CREDITRISK_TRANSFER:ft,INV_GLOBAL_ABS:lt,INV_GLOBAL_BORROWERS:dt,INV_GLOBAL_COVERED_BONDS:ut,MM_IGNITES_ASIA:Q,MM_IGNITES_EUROPE:tt,SIGRISK_TRANSFER:gt,SP_BANKING_RR:X,SP_CELEBRATION_OF_INVESTMENT:st,SP_FDI_INTELLIGENCE:K,SP_FTA_SERVICE_AWARDS:ot,SP_FT_ADVISER:z,SP_FT_LOCATIONS:nt,SP_GLOBAL_PRIVATE_BANKING_AWARDS:at,SP_INVESTORS_CHRONICLE:Z,SP_MANDATE_WIRE:et,SP_PWMNET:$,SP_SUSTAINABLE_VIEWS:Y,SP_THE_BANKER:J,TNW:it},Symbol.toStringTag,{value:"Module"}));function A(t,e){const n=document.createElement("script");return n.dataset.cmpScript=t,n.innerHTML=e,n}function It(t){const e=document.createElement("script");return e.src=t,e}const yt={cmpFrames:"https://consent-manager.ft.com/unified/wrapperMessagingWithoutDetection.js"},P={tcfStub:'"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",r.title = "__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();',gppStub:`window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));
2
+ `};function vt(t){const e=document.createDocumentFragment();return e.appendChild(A("tcf",P.tcfStub)),t.includeUsNat&&e.appendChild(A("gpp",P.gppStub)),e.appendChild(It(yt.cmpFrames)),e}function bt(t,e){const{userId:n,includeUsNat:o}=e;return n&&(t.authId=n),o&&(t.usnat=t.usnat||{}),t}function wt(t,e){const{_clientOptions:n,...o}=t,s=bt(o,e);window._sp_={config:s},window._sp_queue??(window._sp_queue=[]),document.head.appendChild(vt(e))}function St(t,e,n,{formOfWordsId:o,cookieDomain:s}){const i=Object.keys(t).reduce((c,r)=>(c[r]={onsite:{status:t[r],lbi:!1,source:O,fow:o}},r==="cookies"&&(c.cookies.userAccept={status:t[r],lbi:!1,source:O,fow:o}),c),{});return e?{setConsentCookie:!0,formOfWordsId:o,consentSource:O,cookieDomain:s,skipDuplicateUpdates:!n,data:i}:{data:i,cookieDomain:s}}const _={CALIFORNIA:"uscav1",US_NATIONAL:"usnat"},D={[_.CALIFORNIA]:{excludedCategories:{personalisedMarketing:!0}},[_.US_NATIONAL]:{excludedCategories:{personalisedMarketing:!0}}};function Ot(t){const{applicableSections:e,supportedAPIs:n}=t,o=e[0];if(o===-1||typeof o>"u")return;const s=n.find(i=>i.startsWith(`${o}:`));return s==null?void 0:s.split(":")[1]}function ht(t){const{SaleOptOut:e,SharingOptOut:n,Gpc:o}=t,{excludedCategories:s}=D[_.CALIFORNIA],a=e!==1&&n!==1&&!o,i={};for(const c of v){if(c in s){i[c]=!0;continue}i[c]=a}return i}function Ct(t){const{SaleOptOut:e,SharingOptOut:n,TargetedAdvertisingOptOut:o}=t,{excludedCategories:s}=D[_.US_NATIONAL],a=JSON.parse(localStorage.getItem("ft_sp_marketing_optout")||"{}"),i=e!==1&&n!==1&&o!==1,c={};for(const r of v){if(r in s){c[r]=!0;continue}c[r]=i}if(a.usnat)for(const r of v)c[r]=!1;return c}const Et={[_.CALIFORNIA]:ht,[_.US_NATIONAL]:Ct};async function L(){return new Promise((t,e)=>{try{window.__gpp?window.__gpp("ping",t):e(new Error("GPP API is not available on page"))}catch(n){e(n)}})}async function Nt(){const t=await L(),{parsedSections:e}=t,n=Ot(t);if(!n||!e[n])throw new Error("GPP parser was called without an applicable section");const o=e[n],s=Et[n];if(!s||typeof s!="function")throw new Error(`No parser found for applicable GPP section: ${n}`);return s(o)}function kt(t,{purpose:e,vendor:n,specialFeatureOptins:o={}}){const s=k[t],a=(e==null?void 0:e.consents)||{},i=(e==null?void 0:e.legitimateInterests)||{},c=(n==null?void 0:n.consents)||{},r=(n==null?void 0:n.legitimateInterests)||{},p=s.purposes.every(l=>a[l]||i[l]),f=s.iabVendors.every(l=>c[l]||r[l]),d=s.specialFeatures.every(l=>o[l]===!0),m=s.purposes.every(l=>a[l]===!0);return t==="cookies"?m&&f&&d:p&&f&&d}async function M(){return new Promise((t,e)=>{try{window.__tcfapi?window.__tcfapi("addEventListener",2,t):e(new Error("TCF API is not available on page"))}catch(n){e(n)}})}async function Tt(){const t=await M(),e={};for(const n of v)e[n]=kt(n,t);return e}async function At(t){const n={gdpr:Tt,usnat:Nt}[t];if(!n)throw new Error("Unable to update user consent. Unsupported consent legislation.");return n()}function Pt(){const e=Object.fromEntries(document.cookie.split("; ").map(o=>o.split("=")))[G];if(!e)return{};const n=decodeURIComponent(e);return Object.fromEntries(n.split(",").map(o=>{const[s,a]=o.split(":");return[s,a==="on"]}))}function Dt(t,e){return Object.keys(t).some(o=>{const s=`${o.toLowerCase()}Onsite`;return t[o]!==e[s]})}function Lt({userId:t,useConsentStore:e}){return!!t&&e===!0}function Mt(t,e){return t?`${e.consentProxyHost}/__consent/consent-record/${H}/${e.userId}?updateFtConsentCookie=true`:`${e.consentProxyHost}/__consent/consent-record-cookie?cookieDomain=${e.cookieDomain}`}const R={gdpr:!1,usnat:!1},h=Object.assign({},R);function F(t){h[t]=!0}function Rt(t){return h[t]}function Ft(){Object.assign(h,R)}async function Ut(t){return Rt(t)?t==="gdpr"?(await M()).eventStatus==="useractioncomplete":t==="usnat"?(await L()).cmpDisplayStatus==="hidden":!1:!1}function Vt(){window.__tcfapi&&window.__tcfapi("addEventListener",2,t=>{t.eventStatus==="cmpuishown"&&F("gdpr")}),window.__gpp&&window.__gpp("addEventListener",({pingData:t})=>{t.cmpDisplayStatus==="visible"&&F("usnat")})}async function xt(t,e){try{const n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});n.ok||console.error("Unable to save consent preferences",n.status)}catch(n){console.error("An error occurred while saving consent",n)}}const jt=()=>{document.dispatchEvent(new CustomEvent("onCmpConsentReady",{bubbles:!0}))};function Ht(t){return async function(n,o,s,a){if(jt(),t.disableFTCookies||!t.includeUsNat&&n==="usnat")return;const i=a.applies?n:"gdpr";if(i!==n||!s)return;let c;try{c=await At(i)}catch(l){console.error(l)}if(!c||!Dt(c,Pt()))return;const p=await Ut(i),f=Lt(t),d=Mt(f,t),m=St(c,f,p,t);await xt(d,m),p&&Ft(),document.dispatchEvent(new CustomEvent("oCookieMessage.act",{bubbles:!0}))}}const C="cookie-message",Gt="manage-cookies";let E=Object.freeze({activeComponent:C,messageId:0,privacyManagerId:0});function qt(t){return typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]"}const Bt=()=>({...E}),N=t=>{if(!qt(t)){console.error("Invalid state changes");return}E={...E,...t}},Wt=["adsDisableInternalCMP","pwm.cmp","messageSlotBottom"];function $t(t,e){const n=Kt(t.flags);window._sp_queue=window._sp_queue??[],window._sp_queue.push(()=>{var o,s;for(const[a,i]of Object.entries(Xt))(s=(o=window._sp_).addEventListener)==null||s.call(o,a,i({...t,flags:n}))}),Yt({...t,flags:n},e)}function Kt(t){const e={};return typeof t=="object"&&Wt.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function Jt(t){if(!t)return;const e=document.body,n=new CustomEvent("oTracking.event",{bubbles:!0,cancelable:!0,detail:t.detail});e.dispatchEvent(n)}function w({trackingProps:t,action:e,triggerAction:n}){let o;const s=Bt(),{product:a,app:i,flags:c}=t;s.activeComponent===C?o=s.messageId:o=s.privacyManagerId;const r={detail:{component:{id:o,name:s.activeComponent,type:"overlay",subtype:"cmp"},category:"component",action:e,...n&&{trigger_action:n},...a&&{product:a},...i&&{app:i},custom:[{cookie_toggle_flag:c}],url:window.document.location.href||null}};Jt(r)}const Xt={onMessageChoiceSelect:t=>(e,n,o)=>{const a={11:"accept_all",12:"manage_cookies",13:"reject_all"}[o];a&&w({trackingProps:t,action:"click",triggerAction:a})},onMessageReady:t=>()=>{w({trackingProps:t,action:"view"})},onMessageReceiveData:()=>(t,e)=>{const{messageId:n}=e;n&&N({messageId:n})},onError:t=>(e,n)=>{w({trackingProps:t,action:"error",triggerAction:n})},onPMCancel:()=>()=>{N({activeComponent:C})}};function Yt(t,e){window.addEventListener("message",function(n){if(n.origin!==e)return;const o={1:"save_and_close",11:"accept_all",13:"reject_all"},{data:{fromPM:s,actionType:a,messageId:i="0"}={}}=n;s&&(+i&&N({activeComponent:Gt,privacyManagerId:+i}),!(!a||!o[a])&&w({trackingProps:t,action:"click",triggerAction:o[a]}))},!1)}const zt="6.2.0";async function Zt(t){const{useFTSession:e=!0,consentProxyHost:n=W,cookieDomain:o=B,formOfWordsId:s=q,useConsentStore:a=!0,trackingContext:i={},disableFTCookies:c=!1,includeUsNat:r=!1}=t||{};let{propertyConfig:p=b,userId:f}=t||{};if(typeof window>"u"){console.error("The CMP client can only be initialised in a browser context");return}if(window.FT_CMP_CLIENT_VERSION=zt,!f&&e)try{const d=await j();f=d==null?void 0:d.uuid}catch(d){console.error(d)}p=Qt(p),wt(p,{userId:f,includeUsNat:r}),Vt(),window._sp_queue.push(()=>{var d,m;(m=(d=window._sp_)==null?void 0:d.addEventListener)==null||m.call(d,"onConsentReady",Ht({userId:f,consentProxyHost:n,cookieDomain:o,formOfWordsId:s,useConsentStore:a,disableFTCookies:c,includeUsNat:r}))}),$t(i,p.baseEndpoint)}function Qt(t){if(!(t!=null&&t.accountId))throw new Error("Please pass a valid property config");return t.events&&(console.warn("[cmp-client] Passing an events map in the config is not supported and will be ignored. Please use window._sp_.addEventListener() to listen for events"),delete t.events),t}function U(t,e,n,o,s,a){const{text:i,onClick:c}=o[e],r=document.querySelectorAll(`a[href*="${a}"]`);for(const p of r)(n||t)&&(s.has(p)&&p.removeEventListener("click",s.get(p)),p.innerText=i,p.addEventListener("click",c),s.set(p,c))}function te({_clientOptions:t}=b){const{privacyManagerId:e,ccpaPrivacyManagerId:n,usnatPrivacyManagerId:o,manageCookiesLinkOverride:s}=t??b._clientOptions,a={usnat:{text:"Do Not Sell My Personal Information",onClick:r=>{var p;r.preventDefault(),(p=window._sp_.usnat)==null||p.loadPrivacyManagerModal(o)}},ccpa:{text:"Do Not Sell My Personal Information",onClick:r=>{var p;r.preventDefault(),(p=window._sp_.ccpa)==null||p.loadPrivacyManagerModal(n)}},gdpr:{text:"Manage Cookies",onClick:r=>{var p;r.preventDefault(),(p=window._sp_.gdpr)==null||p.loadPrivacyManagerModal(e)}}},i=new Map,c=function(r,p,f,d){U(!1,r,d.applies,a,i,s),d.applies&&window._sp_queue.push(()=>{var m,l;(l=(m=window._sp_).removeEventListener)==null||l.call(m,"onConsentReady",c)})};U(!0,"gdpr",!1,a,i,s),window._sp_queue??(window._sp_queue=[]),window._sp_queue.push(()=>{var r,p;(p=(r=window._sp_).addEventListener)==null||p.call(r,"onConsentReady",c)})}function ee(t){return t._clientOptions??{}}const ne={"ft.com":ee};function oe(t){return new Promise((e,n)=>{const{rootDomain:o}=t._clientOptions||{};if(!o)return e({});const s=ne[o];if(!s||typeof s!="function")return e({...t._clientOptions});const a=()=>{try{e(s(t))}catch(i){n(i)}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a):a()})}function se(t,e){if(!e||Number.isFinite(parseFloat(e))||!t.endsWith(e))return!1;const n=t.indexOf(e),o=t[n-1];return o==="."||o===void 0}function ae(t){if(!t)throw new Error("Invalid hostname provided");let n=Object.values(_t).find(o=>{var a;if(o.propertyHref)return!1;const s=(a=o._clientOptions)==null?void 0:a.rootDomain;return s&&se(t,s)});return n??(n=T),n}const ie=new URL(window.location.href).hostname,g=ae(ie);(async()=>{var t,e;try{const n=await oe(g);Zt({propertyConfig:g,...n}),(t=g==null?void 0:g._clientOptions)!=null&&t.privacyManagerId&&((e=g==null?void 0:g._clientOptions)!=null&&e.manageCookiesLinkOverride)&&te(g)}catch(n){console.error("Error: CMP package configure + initialise Sourcepoint failed.",n)}})()})();
@@ -9,6 +9,7 @@ export declare const OPT_IN_CONSENT: {
9
9
  behaviouralAds: boolean;
10
10
  programmaticAds: boolean;
11
11
  personalisedMarketing: boolean;
12
+ cookies: boolean;
12
13
  };
13
14
  export declare const OPT_OUT_CONSENT: {
14
15
  permutiveAds: boolean;
@@ -16,5 +17,6 @@ export declare const OPT_OUT_CONSENT: {
16
17
  behaviouralAds: boolean;
17
18
  programmaticAds: boolean;
18
19
  personalisedMarketing: boolean;
20
+ cookies: boolean;
19
21
  };
20
22
  //# sourceMappingURL=gpp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gpp.d.ts","sourceRoot":"","sources":["../../../../src/consent-parsers/__fixtures__/gpp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAkD/D,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,QAkB1E;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAetF;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,QAe5E;AAED,wBAAgB,mBAAmB,SAIlC;AACD,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC"}
1
+ {"version":3,"file":"gpp.d.ts","sourceRoot":"","sources":["../../../../src/consent-parsers/__fixtures__/gpp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAkD/D,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,QAkB1E;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAetF;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,QAe5E;AAED,wBAAgB,mBAAmB,SAIlC;AACD,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/consent-parsers/tcfv2/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhG;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,qBAAqB,EACnC,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,GACzD,OAAO,CAmBT;AAED,wBAAsB,SAAS,oBAc9B;AAED,wBAAsB,gBAAgB,gCASrC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/consent-parsers/tcfv2/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhG;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,qBAAqB,EACnC,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAyB,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,GAC9D,OAAO,CA+BT;AAED,wBAAsB,SAAS,oBAc9B;AAED,wBAAsB,gBAAgB,gCASrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-consent-payload.d.ts","sourceRoot":"","sources":["../../../../src/consent-ready/utils/get-consent-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAIhC;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,kBAAkB,EACjC,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,OAAO,EACxB,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,OAAO,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;EA8BhE"}
1
+ {"version":3,"file":"get-consent-payload.d.ts","sourceRoot":"","sources":["../../../../src/consent-ready/utils/get-consent-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAIhC;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,kBAAkB,EACjC,kBAAkB,EAAE,OAAO,EAC3B,eAAe,EAAE,OAAO,EACxB,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,OAAO,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;EAsChE"}
@@ -36,6 +36,12 @@ export declare const iabCustomCategories: {
36
36
  readonly customVendors: readonly [];
37
37
  readonly specialFeatures: readonly [];
38
38
  };
39
+ readonly cookies: {
40
+ readonly purposes: readonly [1, 2, 3, 4, 7, 8, 9, 10];
41
+ readonly iabVendors: readonly [];
42
+ readonly customVendors: readonly [];
43
+ readonly specialFeatures: readonly [];
44
+ };
39
45
  };
40
46
  export declare const iabCategoryNames: IabCustomCategoryName[];
41
47
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,kBAAkB,oDAAoD,CAAC;AACpF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAC;AAEX,eAAO,MAAM,gBAAgB,EAAuC,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,kBAAkB,oDAAoD,CAAC;AACpF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtB,CAAC;AAEX,eAAO,MAAM,gBAAgB,EAAuC,qBAAqB,EAAE,CAAC"}
@@ -37,6 +37,7 @@ export declare const SP_PWMNET: {
37
37
  propertyId: number;
38
38
  _clientOptions: {
39
39
  rootDomain: string;
40
+ includeUsNat: boolean;
40
41
  };
41
42
  joinHref: boolean;
42
43
  gdpr: {};
@@ -47,6 +48,7 @@ export declare const SP_FDI_INTELLIGENCE: {
47
48
  propertyId: number;
48
49
  _clientOptions: {
49
50
  rootDomain: string;
51
+ includeUsNat: boolean;
50
52
  };
51
53
  joinHref: boolean;
52
54
  gdpr: {};
@@ -57,6 +59,7 @@ export declare const SP_THE_BANKER: {
57
59
  propertyId: number;
58
60
  _clientOptions: {
59
61
  rootDomain: string;
62
+ includeUsNat: boolean;
60
63
  };
61
64
  joinHref: boolean;
62
65
  gdpr: {};
@@ -67,6 +70,7 @@ export declare const SP_BANKING_RR: {
67
70
  propertyId: number;
68
71
  _clientOptions: {
69
72
  rootDomain: string;
73
+ includeUsNat: boolean;
70
74
  };
71
75
  joinHref: boolean;
72
76
  gdpr: {};
@@ -77,6 +81,7 @@ export declare const SP_SUSTAINABLE_VIEWS: {
77
81
  propertyId: number;
78
82
  _clientOptions: {
79
83
  rootDomain: string;
84
+ includeUsNat: boolean;
80
85
  };
81
86
  joinHref: boolean;
82
87
  gdpr: {};
@@ -87,6 +92,7 @@ export declare const SP_FT_ADVISER: {
87
92
  propertyId: number;
88
93
  _clientOptions: {
89
94
  rootDomain: string;
95
+ includeUsNat: boolean;
90
96
  };
91
97
  joinHref: boolean;
92
98
  gdpr: {};
@@ -97,6 +103,7 @@ export declare const SP_INVESTORS_CHRONICLE: {
97
103
  propertyId: number;
98
104
  _clientOptions: {
99
105
  rootDomain: string;
106
+ includeUsNat: boolean;
100
107
  };
101
108
  joinHref: boolean;
102
109
  gdpr: {};
@@ -127,6 +134,7 @@ export declare const SP_MANDATE_WIRE: {
127
134
  propertyId: number;
128
135
  _clientOptions: {
129
136
  rootDomain: string;
137
+ includeUsNat: boolean;
130
138
  };
131
139
  joinHref: boolean;
132
140
  gdpr: {};
@@ -139,6 +147,7 @@ export declare const SP_FT_LOCATIONS: {
139
147
  rootDomain: string;
140
148
  cookieDomain: string;
141
149
  consentProxyHost: string;
150
+ includeUsNat: boolean;
142
151
  };
143
152
  joinHref: boolean;
144
153
  gdpr: {};
@@ -149,6 +158,7 @@ export declare const SP_FTA_SERVICE_AWARDS: {
149
158
  propertyId: number;
150
159
  _clientOptions: {
151
160
  rootDomain: string;
161
+ includeUsNat: boolean;
152
162
  };
153
163
  joinHref: boolean;
154
164
  gdpr: {};
@@ -159,6 +169,7 @@ export declare const SP_CELEBRATION_OF_INVESTMENT: {
159
169
  propertyId: number;
160
170
  _clientOptions: {
161
171
  rootDomain: string;
172
+ includeUsNat: boolean;
162
173
  };
163
174
  joinHref: boolean;
164
175
  gdpr: {};
@@ -169,6 +180,7 @@ export declare const SP_GLOBAL_PRIVATE_BANKING_AWARDS: {
169
180
  propertyId: number;
170
181
  _clientOptions: {
171
182
  rootDomain: string;
183
+ includeUsNat: boolean;
172
184
  };
173
185
  joinHref: boolean;
174
186
  gdpr: {};
@@ -1 +1 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/lib/properties.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAW1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAa1B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;CAQrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;CAQ/B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAQzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAQzB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAQzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;CAQlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAQ7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAU3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;CAQjC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;CAQxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;CAQ5C,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;CAQf,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;CAQpC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;CAQ1B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;CAQnC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAQzB,CAAC"}
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/lib/properties.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAW1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAa1B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;CASrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;CAS/B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;CASzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;CASzB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;CAShC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;CASzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAQ7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;CAS3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;CAW3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;CASjC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;CASxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;CAS5C,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;CAQf,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;CAQpC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;CAQ1B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;CAQnC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAQzB,CAAC"}
@@ -41,6 +41,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
41
41
  propertyId: number;
42
42
  _clientOptions: {
43
43
  rootDomain: string;
44
+ includeUsNat: boolean;
44
45
  };
45
46
  joinHref: boolean;
46
47
  gdpr: {};
@@ -50,6 +51,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
50
51
  propertyId: number;
51
52
  _clientOptions: {
52
53
  rootDomain: string;
54
+ includeUsNat: boolean;
53
55
  };
54
56
  joinHref: boolean;
55
57
  gdpr: {};
@@ -59,6 +61,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
59
61
  propertyId: number;
60
62
  _clientOptions: {
61
63
  rootDomain: string;
64
+ includeUsNat: boolean;
62
65
  };
63
66
  joinHref: boolean;
64
67
  gdpr: {};
@@ -68,6 +71,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
68
71
  propertyId: number;
69
72
  _clientOptions: {
70
73
  rootDomain: string;
74
+ includeUsNat: boolean;
71
75
  };
72
76
  joinHref: boolean;
73
77
  gdpr: {};
@@ -77,6 +81,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
77
81
  propertyId: number;
78
82
  _clientOptions: {
79
83
  rootDomain: string;
84
+ includeUsNat: boolean;
80
85
  };
81
86
  joinHref: boolean;
82
87
  gdpr: {};
@@ -86,6 +91,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
86
91
  propertyId: number;
87
92
  _clientOptions: {
88
93
  rootDomain: string;
94
+ includeUsNat: boolean;
89
95
  };
90
96
  joinHref: boolean;
91
97
  gdpr: {};
@@ -95,6 +101,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
95
101
  propertyId: number;
96
102
  _clientOptions: {
97
103
  rootDomain: string;
104
+ includeUsNat: boolean;
98
105
  };
99
106
  joinHref: boolean;
100
107
  gdpr: {};
@@ -122,6 +129,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
122
129
  propertyId: number;
123
130
  _clientOptions: {
124
131
  rootDomain: string;
132
+ includeUsNat: boolean;
125
133
  };
126
134
  joinHref: boolean;
127
135
  gdpr: {};
@@ -133,6 +141,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
133
141
  rootDomain: string;
134
142
  cookieDomain: string;
135
143
  consentProxyHost: string;
144
+ includeUsNat: boolean;
136
145
  };
137
146
  joinHref: boolean;
138
147
  gdpr: {};
@@ -142,6 +151,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
142
151
  propertyId: number;
143
152
  _clientOptions: {
144
153
  rootDomain: string;
154
+ includeUsNat: boolean;
145
155
  };
146
156
  joinHref: boolean;
147
157
  gdpr: {};
@@ -151,6 +161,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
151
161
  propertyId: number;
152
162
  _clientOptions: {
153
163
  rootDomain: string;
164
+ includeUsNat: boolean;
154
165
  };
155
166
  joinHref: boolean;
156
167
  gdpr: {};
@@ -160,6 +171,7 @@ export declare function getPropertyConfigByHostname(hostname: string): {
160
171
  propertyId: number;
161
172
  _clientOptions: {
162
173
  rootDomain: string;
174
+ includeUsNat: boolean;
163
175
  };
164
176
  joinHref: boolean;
165
177
  gdpr: {};
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/utils/url.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAWtE;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3D"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/utils/url.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAWtE;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/cmp-client",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -77,6 +77,12 @@ export interface ConsentCategoryPayload {
77
77
  source: "sourcepoint-cmp";
78
78
  fow?: string;
79
79
  };
80
+ userAccept?: {
81
+ status: boolean;
82
+ lbi: false;
83
+ source: "sourcepoint-cmp";
84
+ fow?: string;
85
+ };
80
86
  }
81
87
 
82
88
  export interface IabCustomCategory {