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B,CAACC,UAAU,wDAEhCJ,IAAAA,cAACG,EAAAA,GAAY,CAACT,SAAUA,EAAUU,UAAWL,GAC1CD,EACGF,EAASS,oBACTjD,EAAK,eAEX4C,IAAAA,cAACG,EAAAA,GAAgB,CAACT,SAAUA,EAAUU,UAAU,iBAC7CN,EACGF,EAASU,uBACTlD,EAAK,uBAEX4C,IAAAA,cAACG,EAAAA,GAAgB,CAACT,SAAUA,EAAUU,UAAU,iBAC7CN,EACGF,EAASW,uBACTnD,EAAK,uBAEX4C,IAAAA,cAACG,EAAAA,GAAa,CACZT,SAAUA,EACVU,UAAU,WACVI,QAASxC,KAAKyC,aAEbX,EAAoBF,EAASc,UAAYtD,EAAK,eAM3D,EAGF,SAAeuD,EAAAA,EAAAA,KAAQC,IAAA,IAAC,OAAEC,EAAM,WAAEC,EAAU,KAAEC,EAAI,UAAEC,EAAS,OAAEC,GAAQL,EAAA,MAAM,CAC3ElB,SAAUmB,EAAOnB,SACjBC,eAAgBkB,EAAOlB,eACvBrB,sBAAuBwC,EAAWI,6BAClC3C,WAAYwC,EAAKA,KAAKI,OACtB3C,qBAAsBwC,EAAUxC,qBAChCC,iBAAkBuC,EAAUI,SAAW,KACvC1C,aAAcuC,EAAOvC,aACrBC,iBAAkBsC,EAAOtC,iBAC1B,GATD,CASIrB","sources":["webpack:///./transfer/components/cash-advance-fees-overpanel/cash-advance-fees-about.js"],"sourcesContent":["// @flow\n\nimport React, { Component } from 'react'\nimport DocumentTitle from 'react-document-title'\nimport content from 'pp-react-l10n'\nimport { get, isEmpty } from 'lodash'\nimport { connect } from 'transfer/utils/p2p-connect'\nimport * as Styles from './cash-advance-fees-styling'\n\nimport { toggleCashAdvanceFeesOverpanel } from 'transfer/actions/overpanels'\nimport {\n trackCashAdvanceFeesImpression,\n trackCashAdvanceFeesClick,\n} from '../../utils/cash-advance-fees-analytics'\n\nimport { getTheFundingSourceWithCashAdvanceFee } from './cash-advance-fees-util'\nimport { tracking } from '../../../lib/analytics/mParticle'\nimport Events from '../../../lib/analytics/eventTags'\n\nconst i18n = content('transfer/inc/cashAdvanceFees')\n\ntype Props = {\n isMobile: boolean,\n dispatch: Function,\n handleNext: boolean,\n pStudioContent: Object,\n selectedFundingOption: Object,\n noteLength: number,\n recipientAccountType: string,\n recipientCountry: string,\n currencyCode: string,\n fromCurrencyCode: string,\n}\n\nexport class CashAdvanceFeesAbout extends Component {\n handleClose = () => {\n tracking(\n Events.p2p_fi_warning_continue_pressed({\n fi_warning_type: 'cash_advance',\n })\n )\n trackCashAdvanceFeesClick('okAbout')\n this.props.dispatch(\n toggleCashAdvanceFeesOverpanel({\n show: false,\n type: 'ABOUT',\n selectedFundingOption: this.props.selectedFundingOption,\n })\n )\n }\n\n componentDidMount = () => {\n const {\n selectedFundingOption,\n noteLength,\n recipientAccountType,\n recipientCountry,\n currencyCode,\n fromCurrencyCode,\n } = this.props\n const chosen_fi_source = getTheFundingSourceWithCashAdvanceFee(\n selectedFundingOption.funding_sources\n )\n const chosen_fi_id = !isEmpty(chosen_fi_source) ? chosen_fi_source.id : ''\n tracking(\n Events.p2p_fi_warning_screen_shown({\n receiver_country: recipientCountry,\n receiver_currency: currencyCode,\n sender_currency: fromCurrencyCode,\n chosen_fi_id,\n fi_warning_type: 'cash_advance',\n receiver_account_type: recipientAccountType,\n note_character_length: noteLength,\n })\n )\n trackCashAdvanceFeesImpression('aboutFeesOverPanel')\n }\n\n render() {\n const { isMobile, pStudioContent } = this.props\n const pContent = get(\n pStudioContent,\n 'p2p_cash_advance_fees_inline_warning_touchpoint.content.json',\n {}\n )\n\n const hasPStudioContent = !isEmpty(pContent)\n\n const titleCss = isMobile\n ? 'ppvx_text--xl ppvx_text--regular'\n : 'ppvx_text--xl2 ppvx_text--regular'\n\n return (\n \n \n \n \n \n \n \n \n {hasPStudioContent\n ? pContent.about_title_heading\n : i18n('info.title')}\n \n \n {hasPStudioContent\n ? pContent.about_body_paragraph_1\n : i18n('info.paragraph.one')}\n \n \n {hasPStudioContent\n ? pContent.about_body_paragraph_2\n : i18n('info.paragraph.two')}\n \n \n {hasPStudioContent ? pContent.about_cta : i18n('info.cta')}\n \n \n \n \n )\n }\n}\n\nexport default connect(({ server, overpanels, note, recipient, amount }) => ({\n isMobile: server.isMobile,\n pStudioContent: server.pStudioContent,\n selectedFundingOption: overpanels.currentSelectedFundingOption,\n noteLength: note.note.length,\n recipientAccountType: recipient.recipientAccountType,\n recipientCountry: recipient.country || 'US',\n currencyCode: amount.currencyCode,\n fromCurrencyCode: amount.fromCurrencyCode,\n}))(CashAdvanceFeesAbout)\n"],"names":["i18n","content","CashAdvanceFeesAbout","Component","constructor","arguments","_defineProperty","tracking","Events","p2p_fi_warning_continue_pressed","fi_warning_type","trackCashAdvanceFeesClick","this","props","dispatch","toggleCashAdvanceFeesOverpanel","show","type","selectedFundingOption","noteLength","recipientAccountType","recipientCountry","currencyCode","fromCurrencyCode","chosen_fi_source","getTheFundingSourceWithCashAdvanceFee","funding_sources","chosen_fi_id","_isEmpty","id","p2p_fi_warning_screen_shown","receiver_country","receiver_currency","sender_currency","receiver_account_type","note_character_length","trackCashAdvanceFeesImpression","render","isMobile","pStudioContent","pContent","_get","hasPStudioContent","titleCss","React","DocumentTitle","title","Styles","className","about_title_heading","about_body_paragraph_1","about_body_paragraph_2","onClick","handleClose","about_cta","connect","_ref","server","overpanels","note","recipient","amount","currentSelectedFundingOption","length","country"],"sourceRoot":""}