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gBAAC;8DAAG,OAAO,wBAAwB,KAAK,OAAO,QAAQ;;8DACvD,gBAAC;8DAAE;;8DACH,gBAAC;8DAAG,OAAO,eAAe;;8DAC1B,gBAAC;8DAAE;;8DAIH,gBAAC;8DAAG,OAAO,gBAAgB;;;;;;8CAG/B,iBAAC;oCAAI,WAAU;;sDACb,iBAAC;;gDAAE;8DAED,iBAAC;oDAAG,WAAU;;sEACZ,gBAAC;sEAAG;;sEAMJ,gBAAC;sEAAG;;sEAGJ,gBAAC;sEAAG;;sEACJ,gBAAC;sEAAG;;sEACJ,gBAAC;sEAAG;;sEAIJ,gBAAC;sEAAG;;sEACJ,gBAAC;sEAAG;;;;;;sDAMR,gBAAC;4CAAI,WAAU;;sDACf,gBAAC;sDACE,OAAO,uCAAuC,GAC3C,sEACA;;;;8CAGR,iBAAC;oCAAI,WAAU;;sDACb,gBAAC;4CAAO,WAAU;4CAA+B,SAAS,IAAM,mBAAmB;sDAAQ;;sDAG3F,gBAAC;4CAAO,WAAU;4CAAqB,MAAK;sDAAS;;;;;;;;;2BAUjE,gBAAC;YAAI,WAAU;sBACb,cAAA,iBAAC;gBAAI,WAAU;;kCACb,gBAAC;kCAAG;;kCACJ,gBAAC;kCAAE;;kCAMH,gBAAC;wBAAO,WAAU;wBAAM,SAAS;kCAAgB;;;;;;AAQ7D;IAEA,2CAAe;;;ADn1Bf,MAAM,6BAAO,CAAA,GAAA,6CAAO,EAAE,UAAU,CAAC,SAAS,cAAc,CAAC;AACzD,2BAAK,MAAM,eAAC,gBAAC,CAAA,GAAA,wCAAE","sources":["src/tsx/modules/IntermediaryProductSwitch/index.tsx","src/tsx/modules/IntermediaryProductSwitch/App.tsx"],"sourcesContent":["import ReactDOM from 'react-dom/client';\nimport App from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('jsx-intermediary-product-switch') as HTMLElement);\nroot.render();\n","import { useFormik } from 'formik';\nimport { useState } from 'react';\nimport styled, { css } from 'styled-components';\nimport { TextFiledVerdigris, CheckBoxVerdigris, SelectVerdigris, RadioVerdigris } from 'tsx/comps/form';\nimport { media, colors } from 'tsx/theme';\nimport * as Yup from 'yup';\nimport { apiUrl } from 'tsx/util';\n\nconst isEmpty = (obj: Object) => {\n return Object.keys(obj).length === 0;\n};\n\nconst convertToTrueBooleans = (obj: Record): Record => {\n return Object.keys(obj).reduce>((newObj, key) => {\n newObj[key] = true;\n return newObj;\n }, {});\n};\n\ninterface Product {\n name: string;\n code: string;\n}\n\nconst parseProducts = (): [Product[], string | undefined] => {\n const products: Product[] = [];\n\n let selected: string | undefined;\n\n document.querySelectorAll('.product').forEach((element) => {\n const item = element as HTMLElement;\n\n products.push({\n name: item.dataset.name || '',\n code: item.dataset.code || '',\n });\n\n if (item.dataset.selected !== undefined) {\n selected = item.dataset.code;\n }\n });\n\n return [products, selected];\n};\n\nconst Section = styled.section`\n form {\n margin-top: 37px;\n background-color: ${colors.lp1};\n padding: 70px 160px;\n .radio-flex {\n display: flex;\n gap: 12px;\n grid-gap: 12px;\n align-items: center;\n margin-bottom: 18px;\n }\n input[type='radio'] {\n accent-color: transparent !important;\n position: relative;\n &:after {\n width: 18px;\n height: 18px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 15px;\n background-color: #fff;\n content: '';\n display: inline-block;\n visibility: visible;\n }\n &:checked {\n &:after {\n width: 18px;\n height: 18px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 15px;\n background: linear-gradient(89.99deg, #43b8b0 0.01%, #4d6978 99.99%);\n content: '';\n display: inline-block;\n visibility: visible;\n }\n }\n }\n .input-grid {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 20px;\n margin-bottom: 48px;\n .input-flex {\n display: flex;\n flex-direction: column;\n .radio-flex {\n margin-bottom: 0px !important;\n }\n }\n }\n .label {\n color: ${colors.colorVerdigrisDark};\n font-weight: 500;\n margin-bottom: 11px;\n }\n\n .help {\n margin-bottom: 33px;\n a {\n color: #353535;\n text-decoration: underline;\n margin-left: 5px;\n cursor: pointer;\n &:hover {\n color: ${colors.colorVerdigrisDark};\n }\n }\n &--top {\n margin-bottom: 0;\n }\n }\n\n .check-list {\n display: grid;\n grid-template-columns: 40px 1fr;\n grid-gap: 10px;\n margin-bottom: 26px;\n &__sub-text {\n font-weight: 400 !important;\n opacity: 0.7;\n font-style: italic;\n }\n ul {\n margin-left: 25px;\n margin-top: 10px;\n li {\n &::marker {\n font-size: 9px;\n }\n }\n }\n &--bottom {\n align-items: center;\n }\n }\n\n .info {\n background-color: white;\n padding: 15px;\n border-radius: 8px;\n margin: 38px 0 46px 0;\n p {\n text-align: center;\n }\n }\n\n .summary {\n display: grid;\n grid-gap: 5px;\n position: relative;\n\n &__edit {\n position: absolute;\n right: 22px;\n top: 22px;\n border-radius: 8px;\n width: 41px;\n height: 41px;\n background-color: white;\n filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n transition: transform 0.1s;\n &:hover {\n transform: scale(1.05);\n }\n }\n\n &__box {\n background-color: white;\n padding: 45px 51px;\n\n &--top {\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n }\n &--bottom {\n border-bottom-right-radius: 8px;\n border-bottom-left-radius: 8px;\n padding: 20px 51px;\n }\n }\n\n &__details-grid {\n display: grid;\n grid-template-columns: 1fr 2fr;\n grid-gap: 25px;\n }\n\n &__buttons {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 12px;\n width: 400px;\n margin-top: 37px;\n }\n .list-item {\n margin-left: 25px;\n li {\n &::marker {\n font-size: 10px;\n }\n }\n }\n }\n h2 {\n margin-bottom: 60px;\n color: ${colors.primary};\n }\n h4 {\n margin-bottom: 25px;\n }\n }\n .visually-hidden {\n position: absolute;\n top: auto;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n width: 1px;\n height: 1px;\n white-space: nowrap;\n }\n .link-icon {\n margin-left: 3px;\n }\n .roll-over {\n margin-top: 37px;\n background-color: ${colors.lp1};\n padding: 70px 160px;\n &__box {\n background-color: white;\n padding: 45px 51px;\n text-align: center;\n .btn {\n margin: 0 auto;\n min-width: 230px;\n }\n p {\n margin: 36px auto;\n max-width: 70%;\n line-height: 25px;\n }\n }\n }\n ${media.md(css`\n form {\n margin-top: 37px;\n background-color: ${colors.lp1};\n padding: 50px 20px;\n }\n .roll-over {\n padding: 50px 20px;\n }\n `)};\n ${media.sm(css`\n form {\n padding: 27px 20px;\n .input-grid {\n grid-template-columns: 1fr;\n }\n .summary {\n &__box {\n padding-left: 20px;\n padding-right: 20px;\n &--top {\n padding-top: 80px;\n }\n }\n &__buttons {\n width: auto;\n }\n }\n .label {\n font-size: 12px;\n margin-bottom: 4px;\n }\n }\n h2 {\n margin-bottom: 30px !important;\n }\n h4 {\n margin-bottom: 14px;\n }\n .roll-over {\n padding: 27px 20px;\n &__box {\n padding-left: 20px;\n padding-right: 20px;\n p {\n margin-top: 20px;\n margin-bottom: 20px;\n max-width: 100%;\n line-height: 20px;\n }\n }\n }\n `)};\n`;\n\nconst validationSchema = Yup.object({\n brokerName: Yup.string().min(2, 'Min 2 characters').max(255, 'Max 255 characters').required('Required'),\n customerName: Yup.string().min(2, 'Min 2 characters').max(255, 'Max 255 characters').required('Required'),\n brokerEmailAddress: Yup.string().email('Invalid email address').required('Required'),\n customerEmailAddress: Yup.string().email('Invalid email address').required('Required'),\n customerPhoneNumber: Yup.string().max(255, 'Max 255 characters').required('Required'),\n mortgageAccountNumber: Yup.string().max(255, 'Max 255 characters').required('Required'),\n loanNumber: Yup.string().max(255, 'Max 255 characters').required('Required'),\n fcaNumber: Yup.string().max(255, 'Max 255 characters').required('Required'),\n selectedProduct: Yup.string().required('Required'),\n agreement: Yup.boolean().oneOf([true], 'Required'),\n wantsToBeContactedByAccordLegalServices: Yup.boolean(),\n});\n\nconst App = () => {\n const [products, selectedProduct] = parseProducts();\n\n const [isReadyToSubmit, setIsReadyToSubmit] = useState(false);\n const [isFormSubmitted, setFormSubmitted] = useState(false);\n const [isFormVisible, setFormVisible] = useState(true);\n const {\n values,\n handleChange,\n handleBlur,\n errors,\n touched,\n isValid,\n handleSubmit,\n validateForm,\n setFieldValue,\n setTouched,\n } = useFormik({\n validationSchema,\n initialValues: {\n brokerName: '',\n customerName: '',\n brokerEmailAddress: '',\n customerEmailAddress: '',\n customerPhoneNumber: '',\n mortgageAccountNumber: '',\n loanNumber: '',\n fcaNumber: '',\n mortgageNetwork: '',\n variationDetails: '',\n selectedProduct: selectedProduct || '',\n providedAdviceToCustomer: false,\n agreement: false,\n wantsToBeContactedByAccordLegalServices: false,\n },\n onSubmit: async (values) => {\n const { agreement, ...valuesToSend } = values;\n\n setFormSubmitted(true);\n\n try {\n const response = await fetch(`/api/forms/intermediary-product-switch`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(valuesToSend),\n });\n\n if (!response.ok) {\n console.error('Failed to submit form:', response.status, response.statusText);\n const responseData = await response.json();\n console.error('Response data:', responseData);\n return;\n }\n } catch (error) {\n console.error('An error occurred while submitting the form:', error);\n }\n },\n });\n\n const handleNext = (e: React.MouseEvent) => {\n e.preventDefault();\n validateForm().then((err) => {\n if (isEmpty(err)) {\n setIsReadyToSubmit(true);\n } else {\n setTouched(convertToTrueBooleans(err));\n }\n });\n };\n\n const handleRollover = () => {\n setFormVisible(!isFormVisible);\n setFormSubmitted(!isFormSubmitted);\n setIsReadyToSubmit(!isReadyToSubmit);\n };\n\n return (\n
\n {!isFormSubmitted ? (\n <>\n
\n {!isReadyToSubmit ? (\n <>\n

Your Application Details

\n
\n
\n Broker Name\n \n {touched.brokerName && errors.brokerName && (\n
\n Error: {errors.brokerName}\n
\n )}\n
\n
\n Broker Email\n \n {touched.brokerEmailAddress && errors.brokerEmailAddress && (\n
\n Error: {errors.brokerEmailAddress}\n
\n )}\n
\n
\n FCA Number\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n />\n {touched.fcaNumber && errors.fcaNumber && (\n
\n Error: {errors.fcaNumber}\n
\n )}\n
\n
\n \n Your mortgage Network / Club – this is who we will pay your procuration fee to\n \n \n {touched.mortgageNetwork && errors.mortgageNetwork && (\n
\n Error: {errors.mortgageNetwork}\n
\n )}\n
\n
\n Customer’s Mortgage Account Number\n \n {touched.mortgageAccountNumber && errors.mortgageAccountNumber && (\n
\n Error: {errors.mortgageAccountNumber}\n
\n )}\n
\n
\n Loan Number\n \n {touched.loanNumber && errors.loanNumber && (\n
\n Error: {errors.loanNumber}\n
\n )}\n
\n
\n Customer Name\n \n {touched.customerName && errors.customerName && (\n
\n Error: {errors.customerName}\n
\n )}\n
\n
\n Customer Email\n \n {touched.customerEmailAddress && errors.customerEmailAddress && (\n
\n Error: {errors.customerEmailAddress}\n
\n )}\n
\n
\n Customer Telephone Number\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n />\n {touched.customerPhoneNumber && errors.customerPhoneNumber && (\n
\n Error: {errors.customerPhoneNumber}\n
\n )}\n
\n\n
\n Have you provided advice to the customer?\n
\n
\n {\n setFieldValue('providedAdviceToCustomer', true);\n }}\n />\n

Yes

\n
\n
\n {\n setFieldValue('providedAdviceToCustomer', false);\n }}\n />\n

No

\n
\n
\n
\n
\n Selected Product\n \n \n {products.map((product) => (\n \n ))}\n \n {touched.selectedProduct && errors.selectedProduct && (\n
\n Error: {errors.selectedProduct}\n
\n )}\n
\n

\n \n We are able to provide you with basic account information for your customer, if you need this to\n help with your advice, simply complete this\n \n form\n {' '}\n and we will send you this information.\n \n

\n
\n \n Would you like to do any further variations to the account? Change of Repayment Method / Change of\n Term. If so, please provide details in the box below:\n \n \n {touched.variationDetails && errors.variationDetails && (\n
\n Error: {errors.variationDetails}\n
\n )}\n
\n
\n

\n \n If you have requested any additional variations, we will contact you within the next 48 hours to\n confirm the supporting documentation required by our Underwriters.\n \n

\n\n
\n {\n setFieldValue('agreement', value);\n }}\n />\n
\n

I confirm that

\n
    \n
  • \n I have verified the customer(s) identity and will retain suitable records of the evidence seen\n to satisfy identity verification requirements under the Money Laundering Regulations 2007 and\n the Financial Services and Markets Act 2000. I will make these records available, on request, to\n Chorley & District Building Society or the Financial Conduct Authority.\n
  • \n
  • \n The registration number for the Financial Conduct Authority (FCA) completed above is correct;\n
  • \n
  • I have complied with the FCA rules in giving advice to the customer(s);
  • \n
  • I have provided the applicant(s) with an accurate ESIS prior to application;
  • \n
  • \n I am duly authorised to submit this application and am not doing so on behalf of an unauthorised\n person or firm.\n
  • \n
  • I have the customer(s) authority to submit this request.
  • \n
  • \n I have informed the customer(s) they should review any personal or property insurance cover they\n may hold to ensure they remain adequately covered.\n
  • \n
\n
\n
\n\n
\n {\n setFieldValue('wantsToBeContactedByAccordLegalServices', value);\n }}\n />\n
\n

\n We work closely with Accord Legal Services who provide a Will writing and estate planning service,\n ensuring assets and loved ones are protected in the best way.{' '}\n

\n
\n

If your customers would like to be contacted by Accord Legal Services, please tick here.

\n
\n
\n\n
\n

\n If you need further information about insurance and life planning, we suggest you visit{' '}\n \n \n www.moneyadviceservice.org.uk\n \n\n \n \n \n\n Opens in new tab\n \n

\n
\n \n \n ) : (\n <>\n

Summary

\n
\n
\n
setIsReadyToSubmit(false)}>\n \n \n \n \n \n
\n
\n

Broker Name

\n

{values.brokerName}

\n

Broker Email

\n

{values.brokerEmailAddress}

\n

FCA number

\n

{values.fcaNumber}

\n

Your mortgage Network / Club – this is who we will pay your procuration fee to

\n

{values.mortgageNetwork}

\n

Customer’s Mortgage Account Number

\n

{values.mortgageAccountNumber}

\n

Loan Number

\n

{values.loanNumber}

\n

Customer Name

\n

{values.customerName}

\n

Customer Email

\n

{values.customerEmailAddress}

\n

Customer Telephone Number

\n

{values.customerPhoneNumber}

\n

Have you provided advice to the customer?

\n

{values.providedAdviceToCustomer === true ? 'Yes' : 'No'}

\n

Selected Product

\n

{values.selectedProduct}

\n

\n Would you like to do any further variations to the account? Change of Repayment Method / Change\n of Term. If so, please provide details in the box below:\n

\n

{values.variationDetails}

\n
\n
\n
\n

\n I confirm that\n

    \n
  • \n I have verified the customer(s) identity and will retain suitable records of the evidence seen\n to satisfy identity verification requirements under the Money Laundering Regulations 2007 and\n the Financial Services and Markets Act 2000. I will make these records available, on request,\n to Chorley & District Building Society or the Financial Conduct Authority.\n
  • \n
  • \n The registration number for the Financial Conduct Authority (FCA) completed above is correct;\n
  • \n
  • I have complied with the FCA rules in giving advice to the customer(s);
  • \n
  • I have provided the applicant(s) with an accurate ESIS prior to application;
  • \n
  • \n I am duly authorised to submit this application and am not doing so on behalf of an\n unauthorised person or firm.\n
  • \n
  • I have the customer(s) authority to submit this request.
  • \n
  • \n I have informed the customer(s) they should review any personal or property insurance cover\n they may hold to ensure they remain adequately covered.\n
  • \n
\n

\n
\n

\n {values.wantsToBeContactedByAccordLegalServices\n ? 'The customer would like to be contacted by Accord Legal Services.'\n : 'The customer would prefer not to be contacted by Accord Legal Services.'}\n

\n
\n
\n \n \n
\n
\n \n )}\n
\n \n ) : (\n
\n
\n

Submitted

\n

\n Thank you for submitting this request. We aim to provide you and your customer with an offer within 48\n hours. The offer will detail the next steps required by your customer to accept the offer and get the\n switch in place. Please note, if you were not the customer’s original Mortgage Broker we will require\n their consent for you to submit this application, we will contact them directly for this consent.\n

\n \n
\n
\n )}\n
\n );\n};\n\nexport default App;\n"],"names":[],"version":3,"file":"product-switch.ac91ad38.js.map"}