PageSourceSearch

https://sendabroad.co.uk/_next/static/chunks/4293.b11745fe59a9f813.js

js sendabroad.co.uk collected 2026-10-08 07:15:50 UTC 8,958 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4293,6887],{14293:(e,t,r)=>{r.r(t),r.d(t,{default:()=>S});var n=r(95155),a=r(77711),o=r(12115),c=r(81334),l=r(95055),i=r(87177),s=r(75828);let d=(0,s.createServerReference)("7fc4b184859508d156a50d0b95c6023a767ccd6b46",s.callServer,void 0,s.findSourceMapURL,"deleteDealAlertsByIds"),u=(0,s.createServerReference)("7f02a3f65c01f8a518046b9409279b56f3f704e75e",s.callServer,void 0,s.findSourceMapURL,"updateDealAlerts");var m=r(6887),y=r(85647),x=r(63699),f=r(65437),p=r(12598),g=r(16820),h=r(58373),b=r(76302);let T=(0,a.default)(()=>r.e(9069).then(r.bind(r,59069)),{loadableGenerated:{webpack:()=>[59069]}}),S=e=>{let{userId:t,userEmail:r,dealAlert:a,translations:s,setIsCardProcessing:S,onRefetch:w,className:N="",disabled:v=!1}=e,{currentLocaleSlug:F="en"}=(0,x.T3)(),[j,k]=(0,o.useState)(!1),[A,C]=(0,o.useState)(!1),[L,D]=(0,o.useState)(!1),[M,q]=(0,o.useState)(!1),[E,I]=(0,o.useState)(a.frequency),[R,W]=(0,o.useState)(a?.isActive),[_,B]=(0,o.useState)(null);(0,o.useEffect)(()=>{W(a?.isActive)},[a?.isActive]);let Y=async()=>{k(!0),await d(t,[a.id]),w?.(),k(!1)},O=async()=>{if(!_?.amount||!_?.currencyFrom||!_?.currencyTo||!_?.countryFrom?.code||!_?.countryTo?.code||!_?.frequency)return;C(!0);let e={amount:_?.amount,currencyFrom:_?.currencyFrom,currencyTo:_?.currencyTo,countryFrom:_?.countryFrom?.code,countryTo:_?.countryTo?.code,amountType:_?.amountType},r=_?.frequency,n=e.amount!==a.alertSettings.amount||e.currencyFrom!==a.alertSettings.currencyFrom||e.currencyTo!==a.alertSettings.currencyTo||e.countryFrom!==a.alertSettings.countryFrom||e.countryTo!==a.alertSettings.countryTo||e.amountType!==a.alertSettings.amountType,o=r!==a.frequency,c={id:a.id};n&&(c.alertSettings=e),o&&(c.frequency=r),await u(t,[c]),await new Promise(e=>setTimeout(e,1e3)),I(r),C(!1),D(!1),B(null),w?.()},P=j||A||M;return(0,o.useEffect)(()=>{S?.(P)},[P]),(0,n.jsxs)("div",{className:(0,i.c)("@container",N),children:[(0,n.jsxs)("div",{className:"flex flex-col @5xl:flex-row justify-between items-start @4xl:items-center gap-2 bg-white rounded-card p-2 @xl:p-3 shadow-card border border-border",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-y-1 w-full @5xl:w-fit flex-none",children:[(0,n.jsx)(f.A,{countryFrom:a.alertSettings.countryFrom,countryTo:a.alertSettings.countryTo,currencyFrom:a.alertSettings.currencyFrom,currencyTo:a.alertSettings.currencyTo,amount:a.alertSettings.amount,amountType:a.alertSettings.amountType,showAmount:!0,className:"w-fit flex-none text-heading mr-2",containerOneClassName:"font-body-medium justify-center text-md w-fit flex-none",containerTwoClassName:"font-body-medium justify-center text-md w-fit flex-none"}),(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("div",{className:"text-sm text-heading font-body-normal border border-border rounded px-[12px] py-[4px] w-fit",children:s?.["remittanceSite.sendMoneyFormIndividualOptionLabel"]}),(0,n.jsx)("div",{className:"text-sm text-heading font-body-normal border border-border rounded px-[12px] py-[4px] w-fit bg-primary-light",children:(0,m.T)(E,s)}),(0,n.jsx)("div",{className:(0,i.c)("text-sm font-body-normal rounded px-[12px] py-[4px] w-fit bg-primary border border-primary text-white",{"bg-rating-star text-heading border-rating-star":!R}),children:R?s?.["common.active"]:s?.["common.paused"]})]})]}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col @xl:flex-row items-center justify-between @5xl:justify-end gap-2 w-full",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 w-full @5xl:w-fit flex-1 @5xl:flex-none",children:[(0,n.jsx)(p.A,{onClick:async()=>{q(!0),await u(t,[{id:a.id,isActive:!R}]),await new Promise(e=>setTimeout(e,1e3)),W(!R),w?.(!0),q(!1)},isLoading:M,disabled:P||v,color:"white",shadow:!1,className:"flex-1 sm:w-fit sm:flex-none min-w-fit px-1 @lg:px-3 py-2 h-[50px]",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"hidden @lg:block",children:R?s?.["common.pause"]:s?.["common.resume"]}),(0,n.jsx)("div",{className:"block @lg:hidden",children:(0,n.jsx)(c.g,{icon:R?l.G1Y:l.ijD,className:"text-md text-body"})})]})}),(0,n.jsx)(p.A,{isLoading:A,disabled:P||v,color:"white",shadow:!1,className:"flex-1 sm:w-fit sm:flex-none min-w-fit px-1 @lg:px-3 py-2 h-[50px]",onClick:()=>{D(!0)},children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"hidden @lg:block",children:s?.["common.edit"]}),(0,n.jsx)("div",{className:"block @lg:hidden",children:(0,n.jsx)(c.g,{icon:l.LFz,className:"text-md text-body"})})]})}),(0,n.jsx)(g.A,{onConfirm:Y,confirmModalHeading:s?.["auth.dealAlerts_confirmDeleteSpecificAlertModal_heading"],confirmModalContent:s?.["auth.dealAlerts_confirmDeleteSpecificAlertModal_content"],
1confirmModalConfirmButtonText:s?.["common.delete"],confirmModalCancelButtonText:s?.["common.cancel"],isLoading:j,disabled:P||v,color:"negative",shadow:!1,className:"flex-1 sm:w-fit sm:flex-none min-w-fit px-1 @lg:px-3 py-2 h-[50px]",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"hidden @lg:block",children:s?.["common.delete"]}),(0,n.jsx)("div",{className:"block @lg:hidden",children:(0,n.jsx)(c.g,{icon:l.yLS,className:"text-sm text-white"})})]})})]}),(0,n.jsx)(h.A,{className:"w-full @xl:w-fit @xl:max-w-[200px] @xl:min-w-[200px] flex-none",countryFrom:a.alertSettings.countryFrom,countryTo:a.alertSettings.countryTo,currencyFrom:a.alertSettings.currencyFrom,currencyTo:a.alertSettings.currencyTo,amount:a.alertSettings.amount,amountType:a.alertSettings.amountType,type:"INDIVIDUAL",children:s?.["remittanceSite.checkLiveRates"]})]})]}),L&&(0,n.jsx)(T,{isOpen:L,currentPath:"/",showMarketingOptin:!1,showIconSvg:!1,closeModal:()=>D(!1),frequency:E,transferDetails:{countryFrom:(0,y.lf)(a?.alertSettings?.countryFrom,F),countryTo:(0,y.lf)(a?.alertSettings?.countryTo,F),currencyFrom:a?.alertSettings?.currencyFrom,currencyTo:a?.alertSettings?.currencyTo,amount:a?.alertSettings?.amount,amountType:a?.alertSettings?.amountType},translations:s,onChange:e=>{B(e)},customButtonNode:(0,n.jsx)(p.A,{isLoading:A,color:"primary",className:"w-full",disabled:!_?.countryFrom?.code||!_?.countryTo?.code||!_?.currencyFrom||!_?.currencyTo||!_?.amount||!_?.amountType||!_?.frequency||_?.countryFrom?.code===a?.alertSettings?.countryFrom&&_?.countryTo?.code===a?.alertSettings?.countryTo&&_?.currencyFrom===a?.alertSettings?.currencyFrom&&_?.currencyTo===a?.alertSettings?.currencyTo&&_?.amount===a?.alertSettings?.amount&&_?.amountType===a?.alertSettings?.amountType&&_?.frequency===a?.frequency,onClick:O,children:s?.["common.save"]}),disabledUserEmailInput:!0,userEmail:r,parsedIntroContent:(0,n.jsx)(b.default,{level:2,className:"text-heading mt-2",children:s?.["auth.dealAlerts_editAlertModal_heading"]}),parsedCompletionContent:(0,n.jsx)(n.Fragment,{}),parsedPrivacyPolicyNoticeContent:(0,n.jsx)(n.Fragment,{})})]})}},6887:(e,t,r)=>{r.d(t,{A:()=>l,T:()=>c});var n=r(95155),a=r(87177),o=r(83937);let c=(e,t)=>{switch(e){case"DAILY":return t?.["remittanceSite.subscribeToRateAlertFrequencyDaily"]||"Daily";case"WEEKLY":return t?.["remittanceSite.subscribeToRateAlertFrequencyWeekly"]||"Weekly";case"BIWEEKLY":return t?.["remittanceSite.subscribeToRateAlertFrequencyBiWeekly"]||"Bi-Weekly";case"MONTHLY":return t?.["remittanceSite.subscribeToRateAlertFrequencyMonthly"]||"Monthly";default:return"Daily"}},l=e=>{let{translations:t,valueKey:r,onChange:c,className:l="",disabled:i=!1}=e,s=[{key:"DAILY",label:t?.["remittanceSite.subscribeToRateAlertFrequencyDaily"]||"Daily"},{key:"WEEKLY",label:t?.["remittanceSite.subscribeToRateAlertFrequencyWeekly"]||"Weekly"},{key:"BIWEEKLY",label:t?.["remittanceSite.subscribeToRateAlertFrequencyBiWeekly"]||"Bi-Weekly"},{key:"MONTHLY",label:t?.["remittanceSite.subscribeToRateAlertFrequencyMonthly"]||"Monthly"}];return(0,n.jsx)(o.default,{disabled:i,isDark:!1,dropdownContainerClassName:"p-1 text-sm xs:text-md",className:(0,a.c)("flex-1 w-full hover:cursor-pointer bg-input-alt rounded text-sm xs:text-md",l),dropdownClassName:"p-0",searchable:!1,translations:t,onChange:e=>{c(e.key)},value:{key:r,label:s?.find(e=>e.key===r)?.label||""},options:s})}},58373:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(95155),a=r(12115),o=r(38232),c=r(85647),l=r(57126),i=r(63699),s=r(87177),d=r(12598);let u=e=>{let{countryFrom:t,countryTo:r,currencyFrom:u,currencyTo:m,type:y,amount:x,amountType:f,children:p,additionalOnClick:g,className:h=""}=e,[b,T]=(0,a.useState)(!1),{currentLocaleSlug:S}=(0,i.T3)();return(0,n.jsx)(d.A,{isLoading:b,color:"primary",className:(0,s.c)("text-center w-full shadow-none p-1 py-2 flex-1 flex items-center justify-center",h),onClick:async()=>{T(!0);let e=await (0,o.T)({countryFrom:(0,c.lf)(t,S),countryTo:(0,c.lf)(r,S),currencyFrom:u,currencyTo:m,amount:x||(0,l.l)("SENDING"===f?u:m),amountType:f||"SENDING",type:y,fetchC2CUrl:!1});g&&g(),window.open(e,"_blank"),T(!1)},children:p})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.