function()

in libs/@guardian/libs/src/consent-management-platform/stub_tcfv2.js [142:172]


								function (t) {
									var e = 'string' == typeof t.data,
										r = {};
									try {
										r = e ? JSON.parse(t.data) : t.data;
									} catch (t) {}
									var o = r.__tcfapiCall;
									// WARNING
									// This function call has been modified from the provided Sourcepoint code.
									// The parameter order has been updated as the original function call was incorrect as per the TCF specification.
									// See:
									// - Required interface: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-does-the-cmp-provide-the-api
									// - Update to function: https://github.com/guardian/consent-management-platform/pull/561/commits/f6113f4a1f8fbe6cec5b4ea8e7b29b969fdb60f3#diff-b58313c0ab5f7b3c35c9d788a1e37e18c982fef7fb8a9b562d728163ffb8a8a1L152
									o &&
										n.__tcfapi(
											o.command,
											o.version,
											function (n, r) {
												var i = {
													__tcfapiReturn: {
														returnValue: n,
														success: r,
														callId: o.callId,
													},
												};
												e && (i = JSON.stringify(i)),
													t.source.postMessage(i, '*');
											},
											o.parameter,
										);
								},