PageSourceSearch

https://open.first.bank/_next/static/chunks/pages/plaidoauth-043d048a78bdf514.js

js first.bank collected 2026-09-24 10:31:49 UTC 8,993 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[155],{11257:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/plaidoauth",function(){return r(75611)}])},56460:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(56455),i=r(88793),o=r(37767),l=r(53239);let u=()=>{let{config:{clientDetails:e}}=(0,o.UK)(),{triggerMessage:t}=(0,i.d)();return{triggerCustomerServiceError:(0,l.useMemo)(()=>((e,t)=>{let{customerServiceNumber:r}=e;return function(e){let{includePhoneMessage:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t((0,n.FD)(n.FK,{children:[e,i&&r?(0,n.FD)(n.FK,{children:[" ","Contact us at"," ",(0,n.Y)("a",{href:"tel:".concat(r),children:r})," ","if the problem persists."]}):null]}),{theme:"error"})}})(e,t),[e,t])}}},74722:function(e,t,r){(function(e,t){"use strict";var n,i="default"in t?t.default:t;function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,u=!1;try{for(i=i.call(e);!(l=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{l||null==i.return||i.return()}finally{if(u)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e,t){return e(t={exports:{}},t.exports),t.exports}var p=f(function(e,t){var r=d&&d.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=void 0,t.scripts={};var n=function(e){var r=document.querySelector('script[src="'+e+'"]');if(r)return t.scripts[e]={loading:!1,error:null,scriptEl:r}};t.default=function(e){var l=e.src,u=e.checkForExisting,a=void 0!==u&&u,c=r(e,["src","checkForExisting"]),d=l?t.scripts[l]:void 0;!d&&a&&l&&o&&(d=n(l));var s=(0,i.useState)(d?d.loading:!!l),f=s[0],p=s[1],b=(0,i.useState)(d?d.error:null),y=b[0],E=b[1],O=(0,i.useState)(!1),v=O[0],m=O[1];return(0,i.useEffect)(function(){if(o&&l&&!v&&!y){(d=t.scripts[l])||!a||(d=n(l)),d?e=d.scriptEl:((e=document.createElement("script")).src=l,Object.keys(c).forEach(function(t){void 0===e[t]?e.setAttribute(t,c[t]):e[t]=c[t]}),d=t.scripts[l]={loading:!0,error:null,scriptEl:e});var e,r=function(){d&&(d.loading=!1),p(!1),m(!0)},i=function(e){d&&(d.error=e),E(e)};return e.addEventListener("load",r),e.addEventListener("error",i),document.body.appendChild(e),function(){e.removeEventListener("load",r),e.removeEventListener("error",i),d&&d.loading&&(e.remove(),delete t.scripts[l])}}},[l]),[f,y]};var o="undefined"!=typeof window&&void 0!==window.document});s(p),p.scripts;var b=f(function(e,t){var r=d&&d.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=t.default=void 0,Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(p).default}}),Object.defineProperty(t,"scripts",{enumerable:!0,get:function(){return p.scripts}})}),y=s(b);b.scripts;var E=function(e,t,r){var n={};return delete Object.assign(n,e,u({},r,e[t]))[t],n},O=function(e,t){var r={plaid:null,open:!1,onExitCallback:null};if("undefined"==typeof window||!window.Plaid)throw Error("Plaid not loaded");return r.plaid=t(l(l({},e),{},{onExit:function(t,n){r.open=!1,e.onExit&&e.onExit(t,n),r.onExitCallback&&r.onExitCallback()}})),{open:function(){r.plaid&&(r.open=!0,r.onExitCallback=null,r.plaid.open())},submit:function(e){r.plaid&&r.plaid.submit(e)},exit:function(e,t){if(!r.open||!r.plaid){t&&t();return}r.onExitCallback=t,r.plaid.exit(e),e&&e.force&&(r.open=!1)},destroy:function(){r.plaid&&(r.plaid.destroy(),r.plaid=null)}}},v="https://cdn.plaid.com/link/v2/stable/link-initialize.js",m=function(){},h=function(e){var r=a(y({src:v,checkForExisting:!0}),2),n=r[0],i=r[1],o=a(t.useState(null),2),u=o[0],c=o[1],d=a(t.useState(!1),2),s=d[0],f=d[1],p=(e.product||[]).slice().sort().join(",");return t.useEffect(function(){if(!n&&(e.token||e.publicKey||e.receivedRedirectUri)){if(i||!window.Plaid)return void console.error("Error loading Plaid",i);null!=u&&u.exit({force:!0},function(){return u.destroy()});var t,r,o=(t=l(l({},e),{},{onLoad:function(){f(!0),e.onLoad&&e.onLoad()}}),r=window.Plaid.create,O(E(t,"publicKey","key"),r));return c(o),function(){return o.exit({force:!0},function(){return o.destroy()})}}},[n,i,e.publicKey,e.token,p]),{error:i,ready:null!=u&&(!n||s),submit:u?u.submit:m,exit:u?u.exit:m,open:u?u.open:function(){e.token||console.warn("react-plaid-link: You cannot call open() without a valid token supplied to usePlaidLink. This is a no-op.")}}},g=["children","style","className"],w=function(e){var t=e.children,r=e.style,n=e.className,o=h(l({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,g))),u=o.error,a=o.open;return i.createElement("button",{disabled:!!u,type:"button",className:n,style:l({padding:"6px 4px",outline:"none",background:"#FFFFFF",border:"2px solid #F1F1F1",borderRadius:"4px"},r),onClick:function(){return a()}},t)};w.displayName="PlaidLink",(n=e.PlaidLinkStableEvent||(e.PlaidLinkStableEvent={})).OPEN="OPEN",n.EXIT="EXIT",n.HANDOFF="HANDOFF",n.SELECT_INSTITUTION="SELECT_INSTITUTION",n.ERROR="ERROR",n.BANK_INCOME_INSIGHTS_COMPLETED="BANK_INCOME_INSIGHTS_COMPLETED",n.IDENTITY_VERIFICATION_PASS_SESSION="IDENTITY_VERIFICATION_PASS_SESSION",n.IDENTITY_VERIFICATION_FAIL_SESSION="IDENTITY_VERIFICATION_FAIL_SESSION",e.PlaidEmbeddedLink=function(e){var r=e.style,n=e.className,o=e.onSuccess,u=e.onExit,c=e.onLoad,d=e.onEvent,s=e.token,f=e.receivedRedirectUri,p=t.useMemo(function(){return{onSuccess:o,onExit:u,onLoad:c,onEvent:d,token:s,receivedRedirectUri:f}},[o,u,c,d,s,f]),b=a(y({src:v,checkForExisting:!0}),2),E=b[0],O=b[1],m=t.useRef(null);return t.useEffect(function(){if(!E){if(O||!window.Plaid)return void console.error("Error loading Plaid",O);if(null==p.token||""==p.token)return void console.error("A token is required to initialize embedded Plaid Link");var e=window.Plaid.createEmbedded(l({},p),m.current).destroy;return function(){e()}}},[E,O,p,m]),i.createElement("div",{style:r,className:n,ref:m})},e.PlaidLink=w,e.usePlaidLink=h,Object.defineProperty(e,"__esModule",{value:!0})})(t,r(53239))},75611:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(56455),i=r(39102),o=r(61811),l=r(43954),u=r(4372),a=r(77301),c=r(53239);let d=()=>{let e=localStorage.getItem(l.j5),t=Object.keys(localStorage).filter(e=>e.startsWith("plaid"));console.info("[PlaidOAuth] OAuth redirect page loaded",{activeFlow:e,keysPresent:t}),(0,c.useEffect)(()=>{var r;i.L.addAction("plaid_oauth_return",{activeFlow:e,keysPresent:t}),null==(r=window.heap)||r.track("Plaid OAuth Return",{activeFlow:e,keysPresent:t})},[]);let{plaidIsOpen:r}=(0,u.A)({isOAuthRedirect:!0}),{isOpen:d}=(0,a.A)({isOAuthRedirect:!0});return r||d?null:(0,n.Y)(o.A,{icon:"transfer",heading:"Please wait...",subheading:"This page will automatically redirect you in a moment."})}}},e=>{e.O(0,[301,372,593,636,792],()=>e(e.s=11257)),_N_E=e.O()}]);

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.