\n {message}\n
);\n }\n\n private _createIframe(): React.ReactNode | null {\n const { config } = this.props;\n const targetURL = config.target.destinationUrl;\n\n return (\n // tslint:disable-next-line: react-iframe-missing-sandbox\n \n );\n }\n\n}\n\nexport default Iframe;\n","import { ICoreContext, RichText } from '@msdyn365-commerce/core';\r\nimport * as React from 'react';\r\nimport { IrsmFriendsAndFamilyCode } from '../../../dataActions/DataServiceEntities.g';\r\nimport { IFamilyAndFriendsConfig, IFamilyAndFriendsResources } from '../family-and-friends.props.autogenerated';\r\ninterface IFamilyAndFriendsCodeComponentProps {\r\n code: IrsmFriendsAndFamilyCode;\r\n config: IFamilyAndFriendsConfig;\r\n resources: IFamilyAndFriendsResources;\r\n // tslint:disable-next-line: no-any\r\n context: ICoreContext<{ [x: string]: any }>;\r\n}\r\n\r\n/**\r\n * renders a single row (code) for the family and friends table\r\n */\r\nexport class FamilyAndFriendsCodeComponent extends React.Componentblocks, randomly converts\r\n // some spaces to and sanitizes certain characters\r\n // like single quotes (used as apostrophes!)\r\n // We need to convert all of that wackiness into something\r\n // that CMS authors would expect.\r\n //\r\n // stripOnly:\r\n // The Mail Subject was created in the definition file\r\n // as RichText, which was a bad idea. It's always a\r\n // short, unformatted string. RichText is surrounded in\r\n // a
tag, so for the mail subject we want to strip\r\n // it instead of replacing with CRLF.\r\n //-------------------------------------------------------\r\n private _sanitizeMailTo(value: RichText | undefined, stripOnly?: boolean): string {\r\n if (!value) { return ''; }\r\n\r\n return value\r\n .replace(/
/g, '') // Remove opening
tags\r\n .replace(/<\\/p>/g, stripOnly ? '' : '%0D%0A%0D%0A') // Remove or convert closing
tags\r\n .replace(/ /g, ' ') // Convert nbsp; to space\r\n .replace(/ \r\n {this._errorMessage}\r\n {summary} \r\n {this._errorMessage}\r\n \r\n {this._validationMessage}\r\n
/g, '%0D%0A') // Convert
to %0D%0A\r\n .replace(/(\\d\\d);/g, // Convert dd; values to %xx format (decimal --> hex)\r\n (match, p1) => {return `%${(+p1).toString(16)}`;});\r\n }\r\n\r\n private get _hasBeenRecieved(): boolean {\r\n return !!this.props.code.RecipientEmailAddress;\r\n }\r\n}","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\n\r\nimport { FamilyAndFriendsCodeComponent } from './components/family-and-friends-code-item';\r\nimport { IFamilyAndFriendsData } from './family-and-friends.data';\r\nimport { IFamilyAndFriendsProps } from './family-and-friends.props.autogenerated';\r\n\r\nexport interface IFamilyAndFriendsViewProps extends IFamilyAndFriendsProps{config.ageGateBody}
\r\n {config.ageGateAgreement}
\r\n \r\n \r\n );\r\n } else { return null; }\r\n }\r\n\r\n // -----------------------------------------------------------\r\n // -----------------------------------------------------------\r\n private get _myInformationLink(): JSX.Element | null {\r\n\r\n const link = this.props.config.ageGateMyInformation;\r\n\r\n if (link && link.linkUrl.destinationUrl) {\r\n return (\r\n \r\n {link.linkText}\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------\r\n // -----------------------------------------------------------\r\n private get _privacyRightsLink(): JSX.Element | null {\r\n\r\n const link = this.props.config.ageGatePrivacyRights;\r\n\r\n if (link && link.linkUrl.destinationUrl) {\r\n return (\r\n \r\n {link.linkText}\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n}\r\n\r\nexport default AgeGate;\r\n","import { observable } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nexport type selectListItem = {\r\n label: string;\r\n id: string;\r\n};\r\n\r\ninterface ISelectInputGroupProps {\r\n id: string;\r\n label?: string;\r\n selectList: selectListItem[];\r\n initialSelect?: selectListItem;\r\n htmlProps?: React.DetailedHTMLProps
\r\n