@justifi/webcomponents 4.7.2 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as e,c as n,h as o,H as i}from"./p-cbb60191.js";import{c as t}from"./p-9b6dcac5.js";var r,a=(function(e){!function(n){if("undefined"!=typeof window){var o,i=0,t=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,d=null,f=window.requestAnimationFrame,u=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),l={},m=null,h=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),w={};window.jQuery!==n&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof n&&n.amd?n([],D):e.exports=D(),window.iFrameResize=window.iFrameResize||D()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,n,o){e.addEventListener(n,o,!1)}function p(e,n,o){e.removeEventListener(n,o,!1)}function y(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}function v(e){return l[e]?l[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](y(n),o)}function F(e){function n(){t("Height"),t("Width"),E((function(){W(P),T(V),y("onResized",P)}),P,"init")}function o(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function t(e){var n=Number(l[V]["max"+e]),o=Number(l[V]["min"+e]),i=e.toLowerCase(),t=Number(P[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),P[i]=""+t}function r(e){return q.slice(q.indexOf(":")+a+e)}function f(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=P.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},w[i=n]||(w[i]=setTimeout((function(){w[i]=null,o()}),32))}function u(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function m(e){var n=e?u(P.iframe):{x:0,y:0},o={x:Number(P.width)+n.x,y:Number(P.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(d=o,h(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function h(){!1===y("onScroll",d)?C():T(V)}function b(e){var n={};if(0===Number(P.width)&&0===Number(P.height)){var o=r(9).split(":");n={x:o[1],y:o[0]}}else n={x:P.width,y:P.height};y(e,{iframe:P.iframe,screenX:Number(n.x),screenY:Number(n.y),type:P.type})}function y(e,n){return M(V,e,n)}var v,x,F,I,H,L,q=e.data,P={},V=null;"[iFrameResizerChild]Ready"===q?function(){for(var e in l)N("iFrame requested init",A(e),l[e].iframe,e)}():s===(""+q).slice(0,c)&&q.slice(c).split(":")[0]in l?(I=(F=q.slice(c).split(":"))[1]?parseInt(F[1],10):0,H=l[F[0]]&&l[F[0]].iframe,L=getComputedStyle(H),P={iframe:H,id:F[0],height:I+o(L)+i(L),width:F[2],type:F[3]},l[V=P.id]&&(l[V].loaded=!0),(x=P.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!x&&function(e){var n=!0;return l[e]||(n=!1,z(P.type+" No settings for "+e+". Message was: "+q)),n}(V)&&(j(V,"Received: "+q),v=!0,null===P.iframe&&(z(V,"IFrame ("+P.id+") not found"),v=!1),v&&function(){var n,o=e.origin,i=l[V]&&l[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=l[V]&&l[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+P.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(l[V]&&l[V].firstRun&&l[V]&&(l[V].firstRun=!1),P.type){case"close":S(P.iframe);break;case"message":a=r(6),j(V,"onMessage passed: {iframe: "+P.iframe.id+", message: "+a+"}"),y("onMessage",{iframe:P.iframe,message:JSON.parse(a)}),j(V,"--");break;case"mouseenter":b("onMouseEnter");break;case"mouseleave":b("onMouseLeave");break;case"autoResize":l[V].autoResize=JSON.parse(r(9));break;case"scrollTo":m(!1);break;case"scrollToOffset":m(!0);break;case"pageInfo":f(l[V]&&l[V].iframe,V),function(){function e(e,i){function t(){l[o]?f(l[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,t)}))}function n(){e("Remove ",p)}var o=V;e("Add ",g),l[o]&&(l[o].stopPageInfo=n)}();break;case"pageInfoStop":l[V]&&l[V].stopPageInfo&&(l[V].stopPageInfo(),delete l[V].stopPageInfo);break;case"inPageLink":o=r(9).split("#")[1]||"",i=decodeURIComponent(o),(t=document.getElementById(i)||document.getElementsByName(i)[0])?(e=u(t),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},h(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":R(P);break;case"init":n(),y("onInit",P.iframe);break;default:0===Number(P.width)&&0===Number(P.height)?z("Unsupported message received ("+P.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,i,t,a}())):k(V,"Ignored: "+q)}function M(e,n,o){var i=null,t=null;if(l[e]){if("function"!=typeof(i=l[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete l[e.id]}function S(e){var n=e.id;if(!1!==M(n,"onClose",n)){j(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(n,"onClosed",n),j(n,"--"),I(e)}else j(n,"Close iframe cancelled by onClose event")}function O(e){null===d&&j(e,"Get page position: "+(d={x:window.pageXOffset===n?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===n?document.documentElement.scrollTop:window.pageYOffset}).x+","+d.y)}function T(e){null!==d&&(window.scrollTo(d.x,d.y),j(e,"Set page position: "+d.x+","+d.y),C())}function C(){d=null}function R(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function n(n){return"0px"===(l[e]&&l[e].iframe.style[n])}function o(e){return null!==e.offsetParent}l[e]&&o(l[e].iframe)&&(n("height")||n("width"))&&N("Visibility change","resize",l[e].iframe,e)}Object.keys(l).forEach((function(n){e(n)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}function o(){var e=document.querySelector("body"),o={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(n).observe(e,o)}var i=b();i&&o()}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;l[i]&&(l[i].sizeHeight&&o("height"),l[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&f&&!window.jasmine?(j(n.id,"Requesting animation frame"),f(e)):e()}function N(e,n,o,i,t){var r,a=!1;l[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=l[i]&&l[i].targetOrigin)),o.contentWindow.postMessage(s+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&l[i]&&l[i].warningTimeout&&(l[i].msgTimeout=setTimeout((function(){!l[i]||l[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+l[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),l[i].warningTimeout)))}function A(e){return e+":"+l[e].bodyMarginV1+":"+l[e].sizeWidth+":"+l[e].log+":"+l[e].interval+":"+l[e].enablePublicMethods+":"+l[e].autoResize+":"+l[e].bodyMargin+":"+l[e].heightCalculationMethod+":"+l[e].bodyBackground+":"+l[e].bodyPadding+":"+l[e].tolerance+":"+l[e].inPageLinks+":"+l[e].resizeFrom+":"+l[e].widthCalculationMethod+":"+l[e].mouseEvents}function H(e,o){function r(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(c,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var a,s,c=function(n){if("string"!=typeof n)throw new TypeError("Invaild id for iFrame. Expected String");var r;return""===n&&(e.id=(r=o&&o.id||h.id+i++,null!==document.getElementById(r)&&(r+=i++),n=r),t=(o||{}).log,j(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);c in l&&"iFrameResizer"in e?z(c,"Ignored iFrame, already setup."):(function(n){var o;n=n||{},l[c]=Object.create(null),l[c].iframe=e,l[c].firstRun=!0,l[c].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(n),Object.keys(n).forEach(r,n),function(e){for(var n in h)Object.prototype.hasOwnProperty.call(h,n)&&(l[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:h[n])}(n),l[c]&&(l[c].targetOrigin=!0===l[c].checkOrigin?""===(o=l[c].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(o),function(){switch(j(c,"IFrame scrolling "+(l[c]&&l[c].scrolling?"enabled":"disabled")+" for "+c),e.style.overflow=!1===(l[c]&&l[c].scrolling)?"hidden":"auto",l[c]&&l[c].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=l[c]?l[c].scrolling:"no"}}(),function(){function n(n){var o=l[c][n];1/0!==o&&0!==o&&(e.style[n]="number"==typeof o?o+"px":o,j(c,"Set "+n+" = "+e.style[n]))}function o(e){if(l[c]["min"+e]>l[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}o("Height"),o("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(l[c]&&l[c].bodyMargin)&&"0"!==(l[c]&&l[c].bodyMargin)||(l[c].bodyMarginV1=l[c].bodyMargin,l[c].bodyMargin=l[c].bodyMargin+"px"),a=A(c),(s=b())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&S(e)}))}))})).observe(e.parentNode,{childList:!0})}(s),g(e,"load",(function(){N("iFrame.onload",a,e,n,!0),(!l[c]||!l[c].firstRun)&&l[c]&&l[c].heightCalculationMethod in u&&R({iframe:e,height:0,width:0,type:"init"})})),N("init",a,e,n,!0),l[c]&&(l[c].iframe.iFrameResizer={close:S.bind(null,l[c].iframe),removeListeners:I.bind(null,l[c].iframe),resize:N.bind(null,"Window resize","resize",l[c].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,l[c].iframe,c)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),l[c].iframe,c)}}))}function L(e,n){null===m&&(m=setTimeout((function(){m=null,e()}),n))}function q(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(l).forEach((function(o){(function(e){return l[e]&&"parent"===l[e].resizeFrom&&l[e].autoResize&&!l[e].firstRun})(o)&&N(e,n,l[o].iframe,o)}))}function V(){g(window,"message",F),g(window,"resize",(function(){var e;j("window","Trigger event: "+(e="resize")),L((function(){P("Window "+e,"resize")}),16)})),g(document,"visibilitychange",q),g(document,"-webkit-visibilitychange",q)}function D(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!f;e+=1)f=window[n[e]+"RequestAnimationFrame"];f?f=f.bind(window):j("setup","RequestAnimationFrame not supported")}(),V(),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),e.bind(n,i));break;case"object":e(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}()}(r={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports);const s={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}},c=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormTokenize=n(this,"paymentMethodFormTokenize",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}connectedCallback(){window.addEventListener("message",this.dispatchMessageEvent.bind(this))}disconnectedCallback(){window.removeEventListener("message",this.dispatchMessageEvent.bind(this))}sendStyleOverrides(){this.computedTheme&&this.postMessage(s[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}dispatchMessageEvent(e){const n=e.data;n.eventType===s[this.paymentMethodFormType].ready&&this.paymentMethodFormReady.emit(n.data)}postMessage(e,n){var o,i;null===(i=null===(o=this.iframeElement)||void 0===o?void 0:o.contentWindow)||void 0===i||i.postMessage(Object.assign({eventType:e},n),t.iframeOrigin)}async resize(){this.postMessage(s[this.paymentMethodFormType].resize)}async postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}async tokenize(e,n,o){return this.postMessageWithResponseListener(s[this.paymentMethodFormType].tokenize,{clientId:e,componentVersion:"4.7.2",paymentMethodMetadata:n,account:o})}async validate(){return this.postMessageWithResponseListener(s[this.paymentMethodFormType].validate)}composeQueryParams(e){return e.map((n=>n===e[0]?`?${n}`:`&${n}`)).join("")}getIframeSrc(){let e=`${t.iframeOrigin}/${this.paymentMethodFormType}`,n=[];return this.paymentMethodFormValidationMode&&n.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&n.push(`singleLine=${this.singleLine}`),e.concat(this.composeQueryParams(n))}render(){return o(i,null,o("iframe",{id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e},onLoad:()=>{a(this.iframeElement),this.sendStyleOverrides()}}))}};c.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{c as justifi_payment_method_form}
1
+ import{r as e,c as n,h as o,H as i}from"./p-cbb60191.js";import{c as t}from"./p-9b6dcac5.js";var r,a=(function(e){!function(n){if("undefined"!=typeof window){var o,i=0,t=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,d=null,f=window.requestAnimationFrame,u=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),l={},m=null,h=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),w={};window.jQuery!==n&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof n&&n.amd?n([],D):e.exports=D(),window.iFrameResize=window.iFrameResize||D()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,n,o){e.addEventListener(n,o,!1)}function p(e,n,o){e.removeEventListener(n,o,!1)}function y(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}function v(e){return l[e]?l[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](y(n),o)}function F(e){function n(){t("Height"),t("Width"),E((function(){W(P),T(V),y("onResized",P)}),P,"init")}function o(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function t(e){var n=Number(l[V]["max"+e]),o=Number(l[V]["min"+e]),i=e.toLowerCase(),t=Number(P[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),P[i]=""+t}function r(e){return q.slice(q.indexOf(":")+a+e)}function f(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=P.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},w[i=n]||(w[i]=setTimeout((function(){w[i]=null,o()}),32))}function u(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function m(e){var n=e?u(P.iframe):{x:0,y:0},o={x:Number(P.width)+n.x,y:Number(P.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(d=o,h(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function h(){!1===y("onScroll",d)?C():T(V)}function b(e){var n={};if(0===Number(P.width)&&0===Number(P.height)){var o=r(9).split(":");n={x:o[1],y:o[0]}}else n={x:P.width,y:P.height};y(e,{iframe:P.iframe,screenX:Number(n.x),screenY:Number(n.y),type:P.type})}function y(e,n){return M(V,e,n)}var v,x,F,I,H,L,q=e.data,P={},V=null;"[iFrameResizerChild]Ready"===q?function(){for(var e in l)N("iFrame requested init",A(e),l[e].iframe,e)}():s===(""+q).slice(0,c)&&q.slice(c).split(":")[0]in l?(I=(F=q.slice(c).split(":"))[1]?parseInt(F[1],10):0,H=l[F[0]]&&l[F[0]].iframe,L=getComputedStyle(H),P={iframe:H,id:F[0],height:I+o(L)+i(L),width:F[2],type:F[3]},l[V=P.id]&&(l[V].loaded=!0),(x=P.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!x&&function(e){var n=!0;return l[e]||(n=!1,z(P.type+" No settings for "+e+". Message was: "+q)),n}(V)&&(j(V,"Received: "+q),v=!0,null===P.iframe&&(z(V,"IFrame ("+P.id+") not found"),v=!1),v&&function(){var n,o=e.origin,i=l[V]&&l[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=l[V]&&l[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+P.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(l[V]&&l[V].firstRun&&l[V]&&(l[V].firstRun=!1),P.type){case"close":S(P.iframe);break;case"message":a=r(6),j(V,"onMessage passed: {iframe: "+P.iframe.id+", message: "+a+"}"),y("onMessage",{iframe:P.iframe,message:JSON.parse(a)}),j(V,"--");break;case"mouseenter":b("onMouseEnter");break;case"mouseleave":b("onMouseLeave");break;case"autoResize":l[V].autoResize=JSON.parse(r(9));break;case"scrollTo":m(!1);break;case"scrollToOffset":m(!0);break;case"pageInfo":f(l[V]&&l[V].iframe,V),function(){function e(e,i){function t(){l[o]?f(l[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,t)}))}function n(){e("Remove ",p)}var o=V;e("Add ",g),l[o]&&(l[o].stopPageInfo=n)}();break;case"pageInfoStop":l[V]&&l[V].stopPageInfo&&(l[V].stopPageInfo(),delete l[V].stopPageInfo);break;case"inPageLink":o=r(9).split("#")[1]||"",i=decodeURIComponent(o),(t=document.getElementById(i)||document.getElementsByName(i)[0])?(e=u(t),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},h(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":R(P);break;case"init":n(),y("onInit",P.iframe);break;default:0===Number(P.width)&&0===Number(P.height)?z("Unsupported message received ("+P.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,i,t,a}())):k(V,"Ignored: "+q)}function M(e,n,o){var i=null,t=null;if(l[e]){if("function"!=typeof(i=l[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete l[e.id]}function S(e){var n=e.id;if(!1!==M(n,"onClose",n)){j(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(n,"onClosed",n),j(n,"--"),I(e)}else j(n,"Close iframe cancelled by onClose event")}function O(e){null===d&&j(e,"Get page position: "+(d={x:window.pageXOffset===n?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===n?document.documentElement.scrollTop:window.pageYOffset}).x+","+d.y)}function T(e){null!==d&&(window.scrollTo(d.x,d.y),j(e,"Set page position: "+d.x+","+d.y),C())}function C(){d=null}function R(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function n(n){return"0px"===(l[e]&&l[e].iframe.style[n])}function o(e){return null!==e.offsetParent}l[e]&&o(l[e].iframe)&&(n("height")||n("width"))&&N("Visibility change","resize",l[e].iframe,e)}Object.keys(l).forEach((function(n){e(n)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}function o(){var e=document.querySelector("body"),o={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(n).observe(e,o)}var i=b();i&&o()}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;l[i]&&(l[i].sizeHeight&&o("height"),l[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&f&&!window.jasmine?(j(n.id,"Requesting animation frame"),f(e)):e()}function N(e,n,o,i,t){var r,a=!1;l[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=l[i]&&l[i].targetOrigin)),o.contentWindow.postMessage(s+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&l[i]&&l[i].warningTimeout&&(l[i].msgTimeout=setTimeout((function(){!l[i]||l[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+l[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),l[i].warningTimeout)))}function A(e){return e+":"+l[e].bodyMarginV1+":"+l[e].sizeWidth+":"+l[e].log+":"+l[e].interval+":"+l[e].enablePublicMethods+":"+l[e].autoResize+":"+l[e].bodyMargin+":"+l[e].heightCalculationMethod+":"+l[e].bodyBackground+":"+l[e].bodyPadding+":"+l[e].tolerance+":"+l[e].inPageLinks+":"+l[e].resizeFrom+":"+l[e].widthCalculationMethod+":"+l[e].mouseEvents}function H(e,o){function r(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(c,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var a,s,c=function(n){if("string"!=typeof n)throw new TypeError("Invaild id for iFrame. Expected String");var r;return""===n&&(e.id=(r=o&&o.id||h.id+i++,null!==document.getElementById(r)&&(r+=i++),n=r),t=(o||{}).log,j(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);c in l&&"iFrameResizer"in e?z(c,"Ignored iFrame, already setup."):(function(n){var o;n=n||{},l[c]=Object.create(null),l[c].iframe=e,l[c].firstRun=!0,l[c].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(n),Object.keys(n).forEach(r,n),function(e){for(var n in h)Object.prototype.hasOwnProperty.call(h,n)&&(l[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:h[n])}(n),l[c]&&(l[c].targetOrigin=!0===l[c].checkOrigin?""===(o=l[c].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(o),function(){switch(j(c,"IFrame scrolling "+(l[c]&&l[c].scrolling?"enabled":"disabled")+" for "+c),e.style.overflow=!1===(l[c]&&l[c].scrolling)?"hidden":"auto",l[c]&&l[c].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=l[c]?l[c].scrolling:"no"}}(),function(){function n(n){var o=l[c][n];1/0!==o&&0!==o&&(e.style[n]="number"==typeof o?o+"px":o,j(c,"Set "+n+" = "+e.style[n]))}function o(e){if(l[c]["min"+e]>l[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}o("Height"),o("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(l[c]&&l[c].bodyMargin)&&"0"!==(l[c]&&l[c].bodyMargin)||(l[c].bodyMarginV1=l[c].bodyMargin,l[c].bodyMargin=l[c].bodyMargin+"px"),a=A(c),(s=b())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&S(e)}))}))})).observe(e.parentNode,{childList:!0})}(s),g(e,"load",(function(){N("iFrame.onload",a,e,n,!0),(!l[c]||!l[c].firstRun)&&l[c]&&l[c].heightCalculationMethod in u&&R({iframe:e,height:0,width:0,type:"init"})})),N("init",a,e,n,!0),l[c]&&(l[c].iframe.iFrameResizer={close:S.bind(null,l[c].iframe),removeListeners:I.bind(null,l[c].iframe),resize:N.bind(null,"Window resize","resize",l[c].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,l[c].iframe,c)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),l[c].iframe,c)}}))}function L(e,n){null===m&&(m=setTimeout((function(){m=null,e()}),n))}function q(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(l).forEach((function(o){(function(e){return l[e]&&"parent"===l[e].resizeFrom&&l[e].autoResize&&!l[e].firstRun})(o)&&N(e,n,l[o].iframe,o)}))}function V(){g(window,"message",F),g(window,"resize",(function(){var e;j("window","Trigger event: "+(e="resize")),L((function(){P("Window "+e,"resize")}),16)})),g(document,"visibilitychange",q),g(document,"-webkit-visibilitychange",q)}function D(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!f;e+=1)f=window[n[e]+"RequestAnimationFrame"];f?f=f.bind(window):j("setup","RequestAnimationFrame not supported")}(),V(),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),e.bind(n,i));break;case"object":e(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}()}(r={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports);const s={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}},c=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormTokenize=n(this,"paymentMethodFormTokenize",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}connectedCallback(){window.addEventListener("message",this.dispatchMessageEvent.bind(this))}disconnectedCallback(){window.removeEventListener("message",this.dispatchMessageEvent.bind(this))}sendStyleOverrides(){this.computedTheme&&this.postMessage(s[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}dispatchMessageEvent(e){const n=e.data;n.eventType===s[this.paymentMethodFormType].ready&&this.paymentMethodFormReady.emit(n.data)}postMessage(e,n){var o,i;null===(i=null===(o=this.iframeElement)||void 0===o?void 0:o.contentWindow)||void 0===i||i.postMessage(Object.assign({eventType:e},n),t.iframeOrigin)}async resize(){this.postMessage(s[this.paymentMethodFormType].resize)}async postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}async tokenize(e,n,o){return this.postMessageWithResponseListener(s[this.paymentMethodFormType].tokenize,{clientId:e,componentVersion:"4.7.3",paymentMethodMetadata:n,account:o})}async validate(){return this.postMessageWithResponseListener(s[this.paymentMethodFormType].validate)}composeQueryParams(e){return e.map((n=>n===e[0]?`?${n}`:`&${n}`)).join("")}getIframeSrc(){let e=`${t.iframeOrigin}/${this.paymentMethodFormType}`,n=[];return this.paymentMethodFormValidationMode&&n.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&n.push(`singleLine=${this.singleLine}`),e.concat(this.composeQueryParams(n))}render(){return o(i,null,o("iframe",{id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e},onLoad:()=>{a(this.iframeElement),this.sendStyleOverrides()}}))}};c.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{c as justifi_payment_method_form}
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-cbb60191.js";export{s as setNonce}from"./p-cbb60191.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>a([["p-4214dbb8",[[0,"justifi-business-form",{authToken:[1,"auth-token"],businessId:[1,"business-id"],isLoading:[32]}]]],["p-3ee831ac",[[0,"justifi-business-form-stepped",{authToken:[1,"auth-token"],accountId:[1,"account-id"],businessId:[1,"business-id"],testMode:[4,"test-mode"],isLoading:[32],currentStep:[32],totalSteps:[32],serverError:[32]}]]],["p-5e6726a8",[[1,"justifi-business-details",{businessId:[1,"business-id"],authToken:[1,"auth-token"],business:[32],renderState:[32],errorMessage:[32]}]]],["p-a1ef6b4c",[[1,"justifi-payment-form",{bankAccount:[4,"bank-account"],card:[4],email:[1],iframeOrigin:[1,"iframe-origin"],clientId:[1,"client-id"],accountId:[1,"account-id"],submitButtonText:[1,"submit-button-text"],submitButtonEnabled:[32],hasLoadedFonts:[32],isLoading:[32],selectedPaymentMethodType:[32],allowedPaymentMethodTypes:[32],fillBillingForm:[64],enableSubmitButton:[64],loadFontsOnParent:[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["p-9e012e33",[[1,"justifi-subaccount-details",{accountId:[1,"account-id"],subaccountId:[1,"subaccount-id"],authToken:[1,"auth-token"],onboardingData:[32],subaccount:[32],loading:[32],errorMessage:[32]}]]],["p-c29c587f",[[1,"justifi-business-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],businesses:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-ed8c9b88",[[1,"justifi-payment-balance-transactions",{accountId:[1,"account-id"],authToken:[1,"auth-token"],paymentId:[1,"payment-id"],balanceTransactions:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-77a8bcea",[[1,"justifi-payments-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],payments:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-ac8ee442",[[1,"justifi-payouts-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],payouts:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-3501b0e8",[[1,"justifi-proceeds-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],proceeds:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-af771964",[[1,"justifi-refund-form",{authToken:[1,"auth-token"],paymentId:[1,"payment-id"],amount:[2],submitButtonText:[1,"submit-button-text"],withButton:[4,"with-button"],refundInfoText:[1,"refund-info-text"],errors:[32],isSubmitting:[32]}]]],["p-311250e2",[[1,"justifi-subaccounts-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],subaccounts:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-3ed43465",[[0,"justifi-payment-method-form",{paymentMethodFormType:[1,"payment-method-form-type"],paymentMethodFormValidationMode:[1025,"payment-method-form-validation-mode"],iframeOrigin:[1,"iframe-origin"],singleLine:[4,"single-line"],resize:[64],tokenize:[64],validate:[64]}]]],["p-d4b66d74",[[0,"justifi-bank-account-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-586c8a4f",[[0,"justifi-card-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],singleLine:[4,"single-line"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-4ec00b55",[[1,"justifi-payment-details",{paymentId:[1,"payment-id"],authToken:[1,"auth-token"],payment:[32],loading:[32],errorMessage:[32]}]]],["p-4852ce94",[[1,"justifi-payout-details",{payoutId:[1,"payout-id"],authToken:[1,"auth-token"],payout:[32],loading:[32],errorMessage:[32]}]]],["p-c0f9f6a8",[[1,"justifi-gross-payment-chart",{accountId:[1,"account-id"],authToken:[1,"auth-token"],data:[32],total:[32],dates:[32],endDate:[32],loading:[32],errorMessage:[32]}]]],["p-98e4eae3",[[1,"subaccount-bank-details",{data:[16]}]]],["p-91757d9f",[[1,"subaccount-terms-details",{data:[16]}]]],["p-4fb653a8",[[1,"justifi-billing-form",{legend:[1025],billingFields:[32],billingFieldsErrors:[32],fill:[64],validate:[64],getValues:[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{paymentMethodTypes:[16],selectedPaymentMethodType:[1,"selected-payment-method-type"]}]]],["p-b60a58f4",[[1,"justifi-details",{errorMessage:[1,"error-message"]}]]],["p-e7ef2455",[[1,"subaccount-account-details",{subaccount:[16],onboardingData:[16]}],[1,"subaccount-merchant-details",{onboardingData:[8,"onboarding-data"]}],[1,"subaccount-owners-details",{data:[16]}],[1,"subaccount-representative-details",{data:[16]}]]],["p-bb70152e",[[1,"select-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],options:[16],internalValue:[32]}],[1,"text-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],internalValue:[32]}]]],["p-14f7229e",[[1,"form-control-monetary",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16]}]]],["p-f2f0aa6e",[[1,"additional-questions-details",{business:[16]}],[1,"generic-info-details",{business:[16]}],[1,"legal-address-details",{legalAddress:[16]}],[1,"owner-details",{owners:[16]}],[1,"representative-details",{representative:[16]}]]],["p-bc91044c",[[1,"form-control-datepart",{label:[1],name:[1],error:[1],defaultValue:[1,"default-value"],type:[1],inputHandler:[16],disabled:[4]}],[1,"form-control-number-masked",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],mask:[1],disabled:[4]}]]],["p-d0e4eca5",[[1,"form-control-select",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],options:[16],disabled:[4]}],[1,"form-control-number",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],disabled:[4],input:[32]}],[1,"form-control-text",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],disabled:[4],inputHandler:[16],input:[32]}]]],["p-46d5f717",[[0,"justifi-business-representative",{formController:[16],errors:[32],representative:[32]}],[0,"justifi-business-generic-info",{formController:[16],errors:[32]}],[0,"justifi-business-owners",{formController:[16],isEditing:[4,"is-editing"],errors:[32],owners:[32]}],[0,"justifi-legal-address-form",{formController:[16],errors:[32],legal_address:[32]}],[0,"justifi-additional-questions",{formController:[16],errors:[32],additional_questions:[32]}],[1,"justifi-business-address-form",{onFormUpdate:[16],errors:[8],defaultValues:[8,"default-values"],address:[32]}]]],["p-2140e9ba",[[1,"justifi-table",{loading:[4],errorMessage:[1,"error-message"],rowData:[16],columnData:[16],paging:[16],params:[8],entityId:[16],rowClickHandler:[16]}],[1,"pagination-menu",{paging:[16],params:[16]}]]]],e)));
1
+ import{p as e,b as a}from"./p-cbb60191.js";export{s as setNonce}from"./p-cbb60191.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>a([["p-4214dbb8",[[0,"justifi-business-form",{authToken:[1,"auth-token"],businessId:[1,"business-id"],isLoading:[32]}]]],["p-3ee831ac",[[0,"justifi-business-form-stepped",{authToken:[1,"auth-token"],accountId:[1,"account-id"],businessId:[1,"business-id"],testMode:[4,"test-mode"],isLoading:[32],currentStep:[32],totalSteps:[32],serverError:[32]}]]],["p-5e6726a8",[[1,"justifi-business-details",{businessId:[1,"business-id"],authToken:[1,"auth-token"],business:[32],renderState:[32],errorMessage:[32]}]]],["p-a1ef6b4c",[[1,"justifi-payment-form",{bankAccount:[4,"bank-account"],card:[4],email:[1],iframeOrigin:[1,"iframe-origin"],clientId:[1,"client-id"],accountId:[1,"account-id"],submitButtonText:[1,"submit-button-text"],submitButtonEnabled:[32],hasLoadedFonts:[32],isLoading:[32],selectedPaymentMethodType:[32],allowedPaymentMethodTypes:[32],fillBillingForm:[64],enableSubmitButton:[64],loadFontsOnParent:[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["p-9e012e33",[[1,"justifi-subaccount-details",{accountId:[1,"account-id"],subaccountId:[1,"subaccount-id"],authToken:[1,"auth-token"],onboardingData:[32],subaccount:[32],loading:[32],errorMessage:[32]}]]],["p-c29c587f",[[1,"justifi-business-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],businesses:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-ed8c9b88",[[1,"justifi-payment-balance-transactions",{accountId:[1,"account-id"],authToken:[1,"auth-token"],paymentId:[1,"payment-id"],balanceTransactions:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-77a8bcea",[[1,"justifi-payments-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],payments:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-ac8ee442",[[1,"justifi-payouts-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],payouts:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-3501b0e8",[[1,"justifi-proceeds-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],proceeds:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-af771964",[[1,"justifi-refund-form",{authToken:[1,"auth-token"],paymentId:[1,"payment-id"],amount:[2],submitButtonText:[1,"submit-button-text"],withButton:[4,"with-button"],refundInfoText:[1,"refund-info-text"],errors:[32],isSubmitting:[32]}]]],["p-311250e2",[[1,"justifi-subaccounts-list",{accountId:[1,"account-id"],authToken:[1,"auth-token"],subaccounts:[32],loading:[32],errorMessage:[32],paging:[32],params:[32]}]]],["p-f0051cff",[[0,"justifi-payment-method-form",{paymentMethodFormType:[1,"payment-method-form-type"],paymentMethodFormValidationMode:[1025,"payment-method-form-validation-mode"],iframeOrigin:[1,"iframe-origin"],singleLine:[4,"single-line"],resize:[64],tokenize:[64],validate:[64]}]]],["p-d4b66d74",[[0,"justifi-bank-account-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-586c8a4f",[[0,"justifi-card-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],singleLine:[4,"single-line"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-4ec00b55",[[1,"justifi-payment-details",{paymentId:[1,"payment-id"],authToken:[1,"auth-token"],payment:[32],loading:[32],errorMessage:[32]}]]],["p-4852ce94",[[1,"justifi-payout-details",{payoutId:[1,"payout-id"],authToken:[1,"auth-token"],payout:[32],loading:[32],errorMessage:[32]}]]],["p-c0f9f6a8",[[1,"justifi-gross-payment-chart",{accountId:[1,"account-id"],authToken:[1,"auth-token"],data:[32],total:[32],dates:[32],endDate:[32],loading:[32],errorMessage:[32]}]]],["p-98e4eae3",[[1,"subaccount-bank-details",{data:[16]}]]],["p-91757d9f",[[1,"subaccount-terms-details",{data:[16]}]]],["p-4fb653a8",[[1,"justifi-billing-form",{legend:[1025],billingFields:[32],billingFieldsErrors:[32],fill:[64],validate:[64],getValues:[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{paymentMethodTypes:[16],selectedPaymentMethodType:[1,"selected-payment-method-type"]}]]],["p-b60a58f4",[[1,"justifi-details",{errorMessage:[1,"error-message"]}]]],["p-e7ef2455",[[1,"subaccount-account-details",{subaccount:[16],onboardingData:[16]}],[1,"subaccount-merchant-details",{onboardingData:[8,"onboarding-data"]}],[1,"subaccount-owners-details",{data:[16]}],[1,"subaccount-representative-details",{data:[16]}]]],["p-bb70152e",[[1,"select-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],options:[16],internalValue:[32]}],[1,"text-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],internalValue:[32]}]]],["p-14f7229e",[[1,"form-control-monetary",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16]}]]],["p-f2f0aa6e",[[1,"additional-questions-details",{business:[16]}],[1,"generic-info-details",{business:[16]}],[1,"legal-address-details",{legalAddress:[16]}],[1,"owner-details",{owners:[16]}],[1,"representative-details",{representative:[16]}]]],["p-bc91044c",[[1,"form-control-datepart",{label:[1],name:[1],error:[1],defaultValue:[1,"default-value"],type:[1],inputHandler:[16],disabled:[4]}],[1,"form-control-number-masked",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],mask:[1],disabled:[4]}]]],["p-d0e4eca5",[[1,"form-control-select",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],options:[16],disabled:[4]}],[1,"form-control-number",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],inputHandler:[16],disabled:[4],input:[32]}],[1,"form-control-text",{label:[1],name:[8],error:[1],defaultValue:[1,"default-value"],disabled:[4],inputHandler:[16],input:[32]}]]],["p-46d5f717",[[0,"justifi-business-representative",{formController:[16],errors:[32],representative:[32]}],[0,"justifi-business-generic-info",{formController:[16],errors:[32]}],[0,"justifi-business-owners",{formController:[16],isEditing:[4,"is-editing"],errors:[32],owners:[32]}],[0,"justifi-legal-address-form",{formController:[16],errors:[32],legal_address:[32]}],[0,"justifi-additional-questions",{formController:[16],errors:[32],additional_questions:[32]}],[1,"justifi-business-address-form",{onFormUpdate:[16],errors:[8],defaultValues:[8,"default-values"],address:[32]}]]],["p-b86f7c95",[[1,"justifi-table",{loading:[4],errorMessage:[1,"error-message"],rowData:[16],columnData:[16],paging:[16],params:[8],entityId:[16],rowClickHandler:[16]}],[1,"pagination-menu",{paging:[16],params:[16]}]]]],e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justifi/webcomponents",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "JustiFi Web Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/components/index.js",
@@ -78,5 +78,5 @@
78
78
  "storybook": "^7.0.4"
79
79
  },
80
80
  "license": "MIT",
81
- "gitHead": "e60907ece12a5ce7c097e8036efb57a4ad11f047"
81
+ "gitHead": "c72056332c1d7243d5ff01fde222ebdab32aee24"
82
82
  }