1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1166,5005],{2628:function(t,e,n){"use strict";function o(t){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.Z=void 0;var r,i=(r=n(5697))&&r.__esModule?r:{default:r},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}r.default=t,n&&n.set(t,r);return r}(n(7294));function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===o(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=1,y=2,b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(i,t);var e,n,o,r=c(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this,t)).state={height:0,marginTop:0,idx:0,show:!0},e.handleMessage=e.handleMessage.bind(f(e)),e}return e=i,(n=[{key:"componentDidMount",value:function(){"undefined"!==typeof window&&window.addEventListener("message",this.handleMessage)}},{key:"componentWillUnmount",value:function(){"undefined"!==typeof window&&window.removeEventListener("message",this.handleMessage)}},{key:"parseMessage",value:function(t){try{return JSON.parse(t)}catch(e){return null}}},{key:"handleMessage",value:function(t){var e=this.props,n=e.onComplete,o=e.onError,r=e.onDisplay,i=e.onStateChange,a=e.onCloseModal;if(t.origin===this.baseUrl()){var s=this.parseMessage(t.data);if(null!==s)if("VERIFICATION_COMPLETE"===s.type){try{s.payload.success?n():o(s)}catch(t){}this.setState({show:!1})}else"DISPLAY_IFRAME"===s.type?(r(),this.setState({height:s.payload.height,marginTop:s.payload.margin||0})):"RESIZE_IFRAME"===s.type?this.setState({height:s.payload.height}):"RELOAD_IFRAME"===s.type?this.setState({height:0,idx:this.state.idx+1}):"STATE_CHANGE"===s.type?i(s.payload):"EXIT_MODAL"===s.type?a():"ERROR_RENDERED"===s.type&&(o(s.payload),this.setState({height:200}))}}},{key:"baseUrl",value:function(){var t=this.props.baseUrl;return null!=t?t:"https://verify.berbix.com"}},{key:"frameUrl",value:function(){var t=this.props,e=t.overrideUrl,n=t.version,o=t.clientToken,r=t.showInModal,i=t.showCloseModalButton;if(null!=e)return e;var a=["sdk=BerbixReact-".concat("1.0.1")];if(o&&a.push("client_token=".concat(o)),r){var s=i?y:d;a.push("modal=".concat(s))}var u=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return a.push("max_height=".concat(u)),this.baseUrl()+"/"+n+"/verify?"+a.join("&")}},{key:"render",value:function(){if(!this.state.show)return null;var t=a.createElement("iframe",{title:"Berbix ID Verification",key:this.state.idx,src:this.frameUrl(),style:{backgroundColor:"transparent",border:"0 none transparent",padding:0,margin:0,display:"block",width:"100%",height:this.state.height+"px",overflow:"hidden"},allow:"camera",scrolling:"no",referrerPolicy:"no-referrer-when-downgrade"});return this.props.showInModal?a.createElement("div",{style:{width:"100%",height:"100%",position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",zIndex:1e3}},a.createElement("div",{style:{margin:"0 auto",width:"100%",maxWidth:"500px",maxHeight:"100%",overflow:"auto",marginTop:this.state.marginTop+"px"}},t)):t}}])&&u(e.prototype,n),o&&u(e,o),i}(a.Component);b.propTypes={clientToken:i.default.string,showInModal:i.default.bool,showCloseModalButton:i.default.bool,onComplete:i.default.func.isRequired,onError:i.default.func,onDisplay:i.default.func,onCloseModal:i.default.func,onStateChange:i.default.func,baseUrl:i.default.string,overrideUrl:i.default.string,version:i.default.string},b.defaultProps={onError:function(){},onDisplay:function(){},onStateChange:function(){},onCloseModal:function(){},version:"v0"};var v=b;e.Z=v},5005:function(t,e,n){"use strict";var o=n(7462),r=n(3366),i=n(4184),a=n.n(i),s=n(7294),u=n(600),l=n(4873),c=["bsPrefix","variant","size","active","className","block","type","as"],p=s.forwardRef((function(t,e){var n=t.bsPrefix,i=t.variant,p=t.size,f
1=t.active,h=t.className,d=t.block,y=t.type,b=t.as,v=(0,r.Z)(t,c),m=(0,u.vE)(n,"btn"),g=a()(h,m,f&&"active",i&&m+"-"+i,d&&m+"-block",p&&m+"-"+p);if(v.href)return s.createElement(l.Z,(0,o.Z)({},v,{as:b,ref:e,className:a()(g,v.disabled&&"disabled")}));e&&(v.ref=e),y?v.type=y:b||(v.type="button");var w=b||"button";return s.createElement(w,(0,o.Z)({},v,{className:g}))}));p.displayName="Button",p.defaultProps={variant:"primary",active:!1,disabled:!1},e.Z=p},1470:function(t,e,n){"use strict";e.Z=void 0;var o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==m(t)&&"function"!==typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=r?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}o.default=t,n&&n.set(t,o);return o}(n(7294)),r=["placeholder","separator","isLastChild","inputStyle","focus","isDisabled","hasErrored","errorStyle","focusStyle","disabledStyle","shouldAutoFocus","isInputNum","index","value","className","isInputSecure"];function i(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function s(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=function(t){return"object"===m(t)},w=function(t){p(n,t);var e=h(n);function n(t){var r;return u(this,n),v(y(r=e.call(this,t)),"getClasses",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return!g(t)&&!1!==t})).join(" ")})),v(y(r),"getType",(function(){var t=r.props,e=t.isInputSecure,n=t.isInputNum;return e?"password":n?"tel":"text"})),r.input=o.default.createRef(),r}return c(n,[{key:"componentDidMount",value:function(){var t=this.props,e=t.focus,n=t.shouldAutoFocus,o=this.input.current;o&&e&&n&&o.focus()}},{key:"componentDidUpdate",value:function(t){var e=this.props.focus,n=this.input.current;t.focus!==e&&n&&e&&(n.focus(),n.select())}},{key:"render",value:function(){var t=this.props,e=t.placeholder,n=t.separator,i=t.
1isLastChild,u=t.inputStyle,l=t.focus,c=t.isDisabled,p=t.hasErrored,f=t.errorStyle,h=t.focusStyle,d=t.disabledStyle,y=(t.shouldAutoFocus,t.isInputNum),b=t.index,v=t.value,m=t.className,w=(t.isInputSecure,s(t,r));return o.default.createElement("div",{className:m,style:{display:"flex",alignItems:"center"}},o.default.createElement("input",a({"aria-label":"".concat(0===b?"Please enter verification code. ":"").concat(y?"Digit":"Character"," ").concat(b+1),autoComplete:"off",style:Object.assign({width:"1em",textAlign:"center"},g(u)&&u,l&&g(h)&&h,c&&g(d)&&d,p&&g(f)&&f),placeholder:e,className:this.getClasses(u,l&&h,c&&d,p&&f),type:this.getType(),maxLength:"1",ref:this.input,disabled:c,value:v||""},w)),!i&&n)}}]),n}(o.PureComponent),O=function(t){p(n,t);var e=h(n);function n(){var t;u(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return v(y(t=e.call.apply(e,[this].concat(i))),"state",{activeInput:0}),v(y(t),"getOtpValue",(function(){return t.props.value?t.props.value.toString().split(""):[]})),v(y(t),"getPlaceholderValue",(function(){var e=t.props,n=e.placeholder,o=e.numInputs;if("string"===typeof n){if(n.length===o)return n;n.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}})),v(y(t),"handleOtpChange",(function(e){(0,t.props.onChange)(e.join(""))})),v(y(t),"isInputValueValid",(function(e){return(t.props.isInputNum?!isNaN(parseInt(e,10)):"string"===typeof e)&&1===e.trim().length}
1)),v(y(t),"focusInput",(function(e){var n=t.props.numInputs,o=Math.max(Math.min(n-1,e),0);t.setState({activeInput:o})})),v(y(t),"focusNextInput",(function(){var e=t.state.activeInput;t.focusInput(e+1)})),v(y(t),"focusPrevInput",(function(){var e=t.state.activeInput;t.focusInput(e-1)})),v(y(t),"changeCodeAtFocus",(function(e){var n=t.state.activeInput,o=t.getOtpValue();o[n]=e[0],t.handleOtpChange(o)})),v(y(t),"handleOnPaste",(function(e){e.preventDefault();var n=t.state.activeInput,o=t.props,r=o.numInputs;if(!o.isDisabled){for(var i=t.getOtpValue(),a=n,s=e.clipboardData.getData("text/plain").slice(0,r-n).split(""),u=0;u<r;++u)u>=n&&s.length>0&&(i[u]=s.shift(),a++);t.setState({activeInput:a},(function(){t.focusInput(a),t.handleOtpChange(i)}))}})),v(y(t),"handleOnChange",(function(e){var n=e.target.value;t.isInputValueValid(n)&&t.changeCodeAtFocus(n)})),v(y(t),"handleOnKeyDown",(function(e){8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),t.changeCodeAtFocus(""),t.focusPrevInput()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),t.changeCodeAtFocus("")):37===e.ke
1yCode||"ArrowLeft"===e.key?(e.preventDefault(),t.focusPrevInput()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),t.focusNextInput()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()})),v(y(t),"handleOnInput",(function(e){if(t.isInputValueValid(e.target.value))t.focusNextInput();else if(!t.props.isInputNum){var n=e.nativeEvent;null===n.data&&"deleteContentBackward"===n.inputType&&(e.preventDefault(),t.changeCodeAtFocus(""),t.focusPrevInput())}})),v(y(t),"renderInputs",(function(){for(var e=t.state.activeInput,n=t.props,r=n.numInputs,i=n.inputStyle,a=n.focusStyle,s=n.separator,u=n.isDisabled,l=n.disabledStyle,c=n.hasErrored,p=n.errorStyle,f=n.shouldAutoFocus,h=n.isInputNum,d=n.isInputSecure,y=n.className,b=[],v=t.getOtpValue(),m=t.getPlaceholderValue(),g=t.props["data-cy"],O=t.props["data-testid"],k=function(n){b.push(o.default.createElement(w,{placeholder:m&&m[n],key:n,index:n,focus:e===n,value:v&&v[n],onChange:t.handleOnChange,onKeyDown:t.handleOnKeyDown,onInput:t.handleOnInput,onPaste:t.handleOnPaste,onFocus:function(e){t.setState({activeInput:n}),e.target.select()},onBlur:function(){return t.setState({activeInput:-1})},separator:s,inputStyle:i,focusStyle:a,isLastChild:n===r-1,isDisabled:u,disabledStyle:l,hasErrored:c,errorStyle:p,shouldAutoFocus:f,isInputNum:h,isInputSecure:d,className:y,"data-cy":g&&"".concat(g,"-").concat(n),"data-testid":O&&"".concat(O,"-").concat(n)}))},S=0;S<r;S++)k(S);return b})),t}return c(n,[{key:"render",value:function(){var t=this.props.containerStyle;return o.default.createElement("div",{style:Object.assign({display:"flex"},g(t)&&t),className:g(t)?"":t},this.renderInputs())}}]),n}(o.Component);v(O,"defaultProps",{numInputs:4,onChange:function(t){return console.log(t)},isDisabled:!1,shouldAutoFocus:!1,value:"",isInputSecure:!1});var k=O;e.Z=k},5982:function(t,e,n){!function(t,e){"use strict";var o="default"in e?e.default:e;function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}function u(t,e){if(null==t)return{};var n,o,r=s(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function l(t,e){return c(t)||p(t,e)||f(t,e)||d()}function c(t){if(Array.isArray(t))return t}function p(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return i}}function f(t,e){if(t){if("string"===typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function v(t,e){return t(e={exports:{}},e.exports),e.exports}var m=v((function(t,e){var n=y&&y.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o
1]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function r(t){var e=t.src,r=t.checkForExisting,a=void 0!==r&&r,s=n(t,["src","checkForExisting"]),u=o.useState(Boolean(e)),l=u[0],c=u[1],p=o.useState(null),f=p[0],h=p[1];return o.useEffect((function(){if(i&&e){if(a&&document.querySelectorAll('script[src="'+e+'"]').length>0)return void c(!1);var t=document.createElement("script");t.setAttribute("src",e),Object.keys(s).forEach((function(e){void 0===t[e]?t.setAttribute(e,s[e]):t[e]=s[e]}));var n=function(){c(!1)},o=function(t){h(t)};return t.addEventListener("load",n),t.addEventListener("error",o),document.body.appendChild(t),function(){t.removeEventListener("load",n),t.removeEventListener("error",o)}}}),[e]),[l,f]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i="undefined"!==typeof window&&"undefined"!==typeof window.document}));b(m);var g,w=b(v((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m.default}})}))),O=function(t,e,n){var o={};return delete Object.assign(o,t,a({},n,t[e]))[e],o},k=function(t){var e={plaid:null,open:!1,onExitCallback:null};if("undefined"===typeof window||!window.Plaid)throw new Error("Plaid not loaded");var n=O(t,"publicKey","key");return e.plaid=window.Plaid.create(i(i({},n),{},{onExit:function(t,o){e.open=!1,n.onExit&&n.onExit(t,o),e.onExitCallback&&e.onExitCallback()}})),{open:function(){e.plaid&&(e.open=!0,e.onExitCallback=null,e.plaid.open())},exit:function(t,n){e.open&&e.plaid?(e.onExitCallback=n,e.plaid.exit(t),t&&t.force&&(e.open=!1)):n&&n()},destroy:function(){e.plaid&&(e.plaid.destroy(),e.plaid=null)}}},S="https://cdn.plaid.com/link/v2/stable/link-initialize.js",E=function(){},I=function(t){var n=l(w({src:S,checkForExisting:!0}),2),o=n[0],r=n[1],a=l(e.useState(null),2),s=a[0],u=a[1],c=l(e.useState(!1),2),p=c[0],f=c[1],h=(t.product||[]).slice().sort().join(",");return e.useEffect((function(){if(!o){if(!r&&window.Plaid){null!=s&&s.exit({force:!0},(function(){return s.destroy()}));var e=k(i(i({},t),{},{onLoad:function(){f(!0),t.onLoad&&t.onLoad()}}));return u(e),function(){return e.exit({force:!0},(function(){return e.destroy()}))}}console.error("Error loading Plaid",r)}}),[o,r,t.token,h]),{error:r,ready:null!=s&&(!o||p),exit:s?s.exit:E,open:s?s.open:E}},x=["children","style","className"],j=function(t){var e=t.children,n=t.style,r=t.className,a=u(t,x),s=I(i({},a)),l=s.error,c=s.open;return o.createElement("button",{disabled:Boolean(l),type:"button",className:r,style:i({padding:"6px 4px",outline:"none",background:"#FFFFFF",border:"2px solid #F1F1F1",borderRadius:"4px"},n),onClick:function(){return c()}},e)};j.displayName="PlaidLink",(g=t.PlaidLinkStableEvent||(t.PlaidLinkStableEvent={})).OPEN="OPEN",g.EXIT="EXIT",g.HANDOFF="HANDOFF",g.SELECT_INSTITUTION="SELECT_INSTITUTION",g.ERROR="ERROR",t.PlaidLink=j,t.usePlaidLink=I,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(7294))},3231:function(t,e,n){var o=n(7294);function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var i=o.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},o.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),a=o.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},o.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(t){if(7===t.length)return t;for(var e="#",n=1;n<4;n+=1)e+=t[n]+t[n];return e}function u(t,e,n,o,r){return function(t,e,n,o,r){var i=(t-n)/(e-n);if(0===i)return o;if(1===i)return r;for(var a="#",s=1;s<6;s+=2){var u=parseInt(o.substr(s,2),16),l=parseInt(r.substr(s,2),16),c=Math.round((1-i)*u+i*l).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(t,e,n,s(o),s(r))}var l=function(t){function e(e){t.call(this,e);var n=e.height,o=e.width,r=e.checked;this.t=e.handleDiameter||n-2,this.i=Math.max(o-n,o-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:r?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.componentDidMount=function(){this.W=!0},e.prototype.componentDidUpdate=function(t){t.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},e.prototype.componentWillUnmount=function(){this.W=!1},e.prototype.I=function(t){this.H.focus(),this.setState({R:t,j:!0,B:Date.now()})},e.prototype.L=function(t){var e=this.state,n=e.R,o=e.h,r=(this.props.checked?this.i:this.o)+t-n;e.N||t===n||this.setState({N:!0});var i=Math.min(this.i,Math.max(this.o,r));i!==o&&this.setState({h:i})},e.prototype.U=function(t){var e=this.state,n=e.h,o=e.N,r=e.B,i=this.props.checked,a=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-r;(!o||s<250||i&&n<=a||!i&&n>=a)&&this.A(t),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},e.prototype.p=function(t){t.preventDefault(),"number"==typeof t.button&&0!==t.button||(this.I(t.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},e.prototype.v=function(t){t.preventDefault(),this.L(t.clientX)},e.prototype.g=function(t){this.U(t),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},e.prototype.k=function(t){this.X=null,this.I(t.touches[0].clientX)},e.prototype.M=function(t){this.L(t.touches[0].clientX)},e.prototype.m=function(t){t.preventDefault(),this.U(t)},e.prototype.$=function(t){Date.now()-this.l>50&&(this.A(t),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},e.prototype.C=function(){this.u=Date.now()},e.prototype.D=function(){this.setState({j:!0})},e.prototype.O=function(){this.setState({j:!1})},e.prototype.S=function(t){this.H=t},e.prototype.T=function(t){t.preventDefault(),this.H.focus(),this.A(t),this.W&&this.setState({j:!1})},e.prototype.A=function(t){var e=this.props;(0,e.onChange)(!e.checked,t,e.id)},e.prototype.render=function(){var t=this.props,e=t.checked,n=t.disabled,i=t.className,a=t.offColor,s=t.onColor,l=t.offHandleColor,c=t.onHandleColor,p=t.checkedIcon,f=t.uncheckedIcon,h=t.checkedHandleIcon,d=t.uncheckedHandleIcon,y=t.boxShadow,b=t.activeBoxShadow,v=t.height,m=t.width,g=t.borderRadius,w=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&-1===e.indexOf(o)&&(n[o]=t[o
1]);return n}(t,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),O=this.state,k=O.h,S=O.N,E=O.j,I={position:"relative",display:"inline-block",textAlign:"left",opacity:n?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},x={height:v,width:m,margin:Math.max(0,(this.t-v)/2),position:"relative",background:u(k,this.i,this.o,a,s),borderRadius:"number"==typeof g?g:v/2,cursor:n?"default":"pointer",WebkitTransition:S?null:"background 0.25s",MozTransition:S?null:"background 0.25s",transition:S?null:"background 0.25s"},j={height:v,width:Math.min(1.5*v,m-(this.t+v)/2+1),position:"relative",opacity:(k-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:S?null:"opacity 0.25s",MozTransition:S?null:"opacity 0.25s",transition:S?null:"opacity 0.25s"},C={height:v,width:Math.min(1.5*v,m-(this.t+v)/2+1),position:"absolute",opacity:1-(k-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:S?null:"opacity 0.25s",MozTransition:S?null:"opacity 0.25s",transition:S?null:"opacity 0.25s"},P={height:this.t,width:this.t,background:u(k,this.i,this.o,l,c),display:"inline-block",cursor:n?"default":"pointer",borderRadius:"number"==typeof g?g-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:E?b:y,border:0,WebkitTransition:S?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:S?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:S?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},M={height:this.t,width:this.t,opacity:Math.max(2*(1-(k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:S?null:"opacity 0.25s",MozTransition:S?null:"opacity 0.25s",transition:S?null:"opacity 0.25s"},D={height:this.t,width:this.t,opacity:Math.max(2*((k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:S?null:"opacity 0.25s",MozTransition:S?null:"opacity 0.25s",transition:S?null:"opacity 0.25s"};return o.createElement("div",{className:i,style:I},o.createElement("div",{className:"react-switch-bg",style:x,onClick:n?null:this.T,onMouseDown:function(t){return t.preventDefault()}},p&&o.createElement("div",{style:j},p),f&&o.createElement("div",{style:C},f)),o.createElement("div",{className:"react-switch-handle",style:P,onClick:function(t){return t.preventDefault()},onMouseDown:n?null:this.p,onTouchStart:n?null:this.k,onTouchMove:n?null:this.M,onTouchEnd:n?null:this.m,onTouchCancel:n?null:this.O},d&&o.createElement("div",{style:M},d),h&&o.createElement("div",{style:D},h)),o.createElement("input",r({},{type:"checkbox",role:"switch","aria-checked":e,checked:e,disabled:n,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},w,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},e}(o.Component);l.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:i,checkedIcon:a,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},e.default=l},9936:function(t,e,n){t.exports=n(3231)},219:function(t,e,n){"use strict";function o(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,{Z:function(){return o}})},3789:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(6586);var r=n(6988);function i(t){return function(t){if(Array.isArray(t))return(0,o.Z)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);
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.