!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){window.createSwivelPayFrame=(e,t,n,o="login")=>{const r="swivel-pay-client-iframe";if(document.getElementById(r))return console.log("ERROR: Swivel Pay Frame may not be opened more than once."),!1;if(!(t=void 0!==t?t:"https://swivelpay.com")||!e)return console.log("ERROR: Both Base URL and institution ID parameters must be set!"),!1;var a=new RegExp(/^https?:\/\/.+$/);if(!t.match(a))return console.log("ERROR: Base URL must be a valid URL."),!1;var i=new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);if(!e.match(i))return console.log("ERROR: Institution ID is not a valid format."),!1;const l=document.createElement("script");l.type="text/javascript",l.id="swivel-pay-digital-wallets",l.setAttribute("embedded",!0),l.src="proxy.php?url=https://swivelpay.com/digital-wallets.js",document.head.appendChild(l);var s=document.createElement("iframe"),d=`${t}/${o=o||"login"}?institutionId=${e}`;void 0!==n&&(d+=`&next=${encodeURIComponent(n)}`),s.src=d,s.id=r,s.allow="payment",s.style.display="block",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="1px",s.style.minWidth="100%",s.style.height="1px",s.style.minHeight="100vh",s.style.maxHeight="100%",s.style.border="none",s.style.zIndex="99999",s.setAttribute("allowtransparency","true"),document.body.appendChild(s),document.body.style.overflowY="hidden";const c=e=>{if("closeIframe"!==e.data||e.origin!==t&&"https://swivelpay.com"!==e.origin)return!1;var n=document.getElementById(r);n&&(n.parentNode.removeChild(n),document.body.style.overflowY="auto");var o=document.getElementById("swivel-pay-digital-wallets");o&&o.parentNode.removeChild(o),void 0!==window.removeEventListener&&window.removeEventListener("message",c)};return void 0!==window.addEventListener&&window.addEventListener("message",c),!0},window.createBaconWebClient=(e,t,n)=>{console.warn("[SWIVEL] createBaconWebClient is deprecated. Please use createSwivelPayFrame instead."),window.createSwivelPayFrame(e,"https://swivelpay.com",n,t.includes("express-only-login")?"express-pay":"")},window.createConsumerPayFrame=(e,t,n,o)=>{console.warn("[SWIVEL] createConsumerPayFrame is deprecated. Please use createSwivelPayFrame instead."),window.createSwivelPayFrame(e,t,n,o)}}]);