@justifi/webcomponents 5.7.6-rc-21 → 6.0.0-rc.1
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.
- package/dist/cjs/{check-pkg-version-BzCIWkkG.js → check-pkg-version-D_lazhBQ.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +13 -21
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/{package-B9ks67gS.js → package-Cp_7Ls2E.js} +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +11 -19
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-D3fhoIFS.js → check-pkg-version-Bb69ihTN.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_6.entry.js +13 -21
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/{package-wutYt_7D.js → package-O3LY2Da6.js} +1 -1
- package/dist/module/modular-checkout.js +11 -19
- package/dist/module/package.js +1 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
- package/dist/webcomponents/p-0dcc83ac.entry.js +1 -0
- package/dist/webcomponents/{p-f2149974.entry.js → p-131d799c.entry.js} +1 -1
- package/dist/webcomponents/{p-cb0effeb.entry.js → p-1bdce018.entry.js} +1 -1
- package/dist/webcomponents/{p-2ec9f293.entry.js → p-1d53f0b8.entry.js} +1 -1
- package/dist/webcomponents/{p-b107ad76.entry.js → p-1f8cd44e.entry.js} +1 -1
- package/dist/webcomponents/{p-a357be7d.entry.js → p-2f31a4e5.entry.js} +1 -1
- package/dist/webcomponents/{p-39b79825.entry.js → p-3a4ca4df.entry.js} +1 -1
- package/dist/webcomponents/{p-9bb8bebf.entry.js → p-57802e57.entry.js} +1 -1
- package/dist/webcomponents/{p-7ef0b68d.entry.js → p-6849bf8e.entry.js} +1 -1
- package/dist/webcomponents/{p-2a3d5af2.entry.js → p-7322c86e.entry.js} +1 -1
- package/dist/webcomponents/{p-6f847539.entry.js → p-828a61b9.entry.js} +1 -1
- package/dist/webcomponents/{p-3095775c.entry.js → p-9106fd74.entry.js} +1 -1
- package/dist/webcomponents/{p-CEsXw0Ph.js → p-BNz6wy4f.js} +1 -1
- package/dist/webcomponents/p-O3LY2Da6.js +1 -0
- package/dist/webcomponents/{p-5b09c0d8.entry.js → p-ae4297dd.entry.js} +1 -1
- package/dist/webcomponents/{p-e2174f21.entry.js → p-bea4309d.entry.js} +1 -1
- package/dist/webcomponents/{p-b504a22b.entry.js → p-c3a2c619.entry.js} +1 -1
- package/dist/webcomponents/{p-cfca1837.entry.js → p-cebe360b.entry.js} +1 -1
- package/dist/webcomponents/p-dd257e60.entry.js +1 -0
- package/dist/webcomponents/{p-bdb56836.entry.js → p-dd689b5e.entry.js} +1 -1
- package/dist/webcomponents/{p-596b2653.entry.js → p-dfd7c212.entry.js} +1 -1
- package/dist/webcomponents/{p-b6f55d70.entry.js → p-f01953ea.entry.js} +1 -1
- package/dist/webcomponents/{p-e57263b7.entry.js → p-f3a757b2.entry.js} +1 -1
- package/dist/webcomponents/{p-7d944f7e.entry.js → p-f47095cd.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-7721a457.entry.js +0 -1
- package/dist/webcomponents/p-a3d005dc.entry.js +0 -1
- package/dist/webcomponents/p-wutYt_7D.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as n,H as t,c as i,g as o}from"./p-kpoIU4v_.js";import{c as r}from"./p-7WIgS5RM.js";import{i as a,b as s,a as c,c as u,l as d}from"./p-CfF8KKwx.js";import{g as f}from"./p-BFTU3MAI.js";import{F as l}from"./p-C_CXv7AN.js";import{p as h}from"./p-wutYt_7D.js";const m=r({focused:{boxShadow:"",border:""},focusedAndInvalid:{boxShadow:"",border:""},fontStyles:{fontFamily:"",fontSize:"",fontWeight:"",lineHeight:"",margin:"",padding:""}}),{state:w,set:g}=m,b=class{constructor(n){e(this,n),this.isFocused=!1,this.errorText=""}async componentDidLoad(){const e=await this.getBaseFontStyles();g("fontStyles",e);const n=await this.getFocusedStyles();g("focused",n);const t=await this.getFocusedAndInvalidStyles();g("focusedAndInvalid",t)}async getBaseFontStyles(){return new Promise((e=>{setTimeout((()=>{const n=getComputedStyle(this.hiddenInput);e({fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,margin:n.margin,padding:n.padding,color:n.color})}),500)}))}async getFocusedStyles(){return new Promise((e=>{this.hiddenInput.focus(),setTimeout((()=>{this.hiddenInput.blur();let n=getComputedStyle(this.hiddenInput);e({boxShadow:n.boxShadow,border:n.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((e=>{this.hiddenInput.focus(),this.errorText="Error",setTimeout((()=>{const n=getComputedStyle(this.hiddenInput),t={boxShadow:n.boxShadow,border:n.border};this.hiddenInput.blur(),e(t)}),500)}))}get part(){return this.isFocused&&this.errorText?a:this.errorText?s:this.isFocused?c:u}render(){return n(t,{key:"eb0135c733e6a4273855b6c74efab83e51d3788d"},n("input",{key:"48577dd678d44b2382bbeadcaa2efc14484f8638",ref:e=>this.hiddenInput=e,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}};var p,y,v={exports:{}},k=f((p||(p=1,y=v,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,r=!1,a="[iFrameSizer]",s=null,c=window.requestAnimationFrame,u=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),d={},f=null,l=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",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(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),h={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){A(t,e)})).end()}):v("","Unable to bind to jQuery, it is not fully loaded.")),y.exports=P(),window.iFrameResize=window.iFrameResize||P()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function b(e){return d[e]?d[e].log:o}function p(e,n){x("log",e,n,b(e))}function v(e,n){x("info",e,n,b(e))}function k(e,n){x("warn",e,n,!0)}function x(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return a+"["+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)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),C((function(){R(W),T(H),l("onResized",W)}),W,"init")}function t(e){var n=Number(d[H]["max"+e]),t=Number(d[H]["min"+e]),i=e.toLowerCase(),o=Number(W[i]);p(H,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,p(H,"Set "+i+" to min value")),o>n&&(o=n,p(H,"Set "+i+" to max value")),W[i]=""+o}function i(e){return A.slice(A.indexOf(":")+7+e)}function o(e,n){var t,i;t=function(){var t,i;N("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=W.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-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[i=n]||(h[i]=setTimeout((function(){h[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return M(H),{x:Math.floor(Number(n.left)+Number(s.x)),y:Math.floor(Number(n.top)+Number(s.y))}}function c(e){var n=e?r(W.iframe):{x:0,y:0},t={x:Number(W.width)+n.x,y:Number(W.height)+n.y};p(H,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=t,u(),p(H,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):k(H,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===l("onScroll",s)?j():T(H)}function f(e){var n={};if(0===Number(W.width)&&0===Number(W.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:W.width,y:W.height};l(e,{iframe:W.iframe,screenX:Number(n.x),screenY:Number(n.y),type:W.type})}function l(e,n){return F(H,e,n)}var m,b,y,x,I,z,A=e.data,W={},H=null;"[iFrameResizerChild]Ready"===A?function(){for(var e in d)N("iFrame requested init",E(e),d[e].iframe,e)}():a===(""+A).slice(0,13)&&A.slice(13).split(":")[0]in d?(x=(y=A.slice(13).split(":"))[1]?parseInt(y[1],10):0,I=d[y[0]]&&d[y[0]].iframe,z=getComputedStyle(I),W={iframe:I,id:y[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(z)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(z),width:y[2],type:y[3]},d[H=W.id]&&(d[H].loaded=!0),(b=W.type in{true:1,false:1,undefined:1})&&p(H,"Ignoring init message from meta parent page"),!b&&function(e){var n=!0;return d[e]||(n=!1,k(W.type+" No settings for "+e+". Message was: "+A)),n}(H)&&(p(H,"Received: "+A),m=!0,null===W.iframe&&(k(H,"IFrame ("+W.id+") not found"),m=!1),m&&function(){var n,t=e.origin,i=d[H]&&d[H].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(p(H,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(p(H,"Checking connection is from: "+(n=d[H]&&d[H].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+W.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(d[H]&&d[H].firstRun&&d[H]&&(d[H].firstRun=!1),W.type){case"close":S(W.iframe);break;case"message":m=i(6),p(H,"onMessage passed: {iframe: "+W.iframe.id+", message: "+m+"}"),l("onMessage",{iframe:W.iframe,message:JSON.parse(m)}),p(H,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":d[H].autoResize=JSON.parse(i(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(d[H]&&d[H].iframe,H),function(){function e(e,i){function r(){d[t]?o(d[t].iframe,t):n()}["scroll","resize"].forEach((function(n){p(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",g)}var t=H;e("Add ",w),d[t]&&(d[t].stopPageInfo=n)}();break;case"pageInfoStop":d[H]&&d[H].stopPageInfo&&(d[H].stopPageInfo(),delete d[H].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",a=decodeURIComponent(t),(h=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(h),p(H,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},u(),p(H,"--")):window.top===window.self?p(H,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(H,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":O(W);break;case"init":n(),l("onInit",W.iframe);break;default:0===Number(W.width)&&0===Number(W.height)?k("Unsupported message received ("+W.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,a,h,m}())):v(H,"Ignored: "+A)}function F(e,n,t){var i=null,o=null;if(d[e]){if("function"!=typeof(i=d[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){delete d[e.id]}function S(e){var t=e.id;if(!1!==F(t,"onClose",t)){p(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}F(t,"onClosed",t),p(t,"--"),z(e),n&&(n.disconnect(),n=null)}else p(t,"Close iframe cancelled by onClose event")}function M(n){null===s&&p(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function T(e){null!==s&&(window.scrollTo(s.x,s.y),p(e,"Set page position: "+s.x+","+s.y),j())}function j(){s=null}function O(e){p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),M(e.id),C((function(){R(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function R(e){function n(n){r||"0"!==e[n]||(r=!0,p(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(d).forEach((function(e){!function(e){function n(n){return"0px"===(d[e]&&d[e].iframe.style[n])}d[e]&&null!==d[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",d[e].iframe,e)}(e)}))}function n(n){p("window","Mutation observed: "+n[0].target+" "+n[0].type),W(e,16)}var t,i=m();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",p(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):p("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;d[i]&&(d[i].sizeHeight&&t("height"),d[i].sizeWidth&&t("width"))}function C(e,n,t){t!==n.type&&c&&!window.jasmine?(p(n.id,"Requesting animation frame"),c(e)):e()}function N(e,n,t,i,o){var r,s=!1;d[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(p(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=d[i]&&d[i].targetOrigin)),t.contentWindow.postMessage(a+n,r)):k(i,"["+e+"] IFrame("+i+") not found"),o&&d[i]&&d[i].warningTimeout&&(d[i].msgTimeout=setTimeout((function(){!d[i]||d[i].loaded||s||(s=!0,k(i,"IFrame has not responded within "+d[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."))}),d[i].warningTimeout)))}function E(e){return e+":"+d[e].bodyMarginV1+":"+d[e].sizeWidth+":"+d[e].log+":"+d[e].interval+":"+d[e].enablePublicMethods+":"+d[e].autoResize+":"+d[e].bodyMargin+":"+d[e].heightCalculationMethod+":"+d[e].bodyBackground+":"+d[e].bodyPadding+":"+d[e].tolerance+":"+d[e].inPageLinks+":"+d[e].resizeFrom+":"+d[e].widthCalculationMethod+":"+d[e].mouseEvents}function A(t,r){function a(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],k(f,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,c,f=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=r&&r.id||l.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(r||{}).log,p(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);f in d&&"iFrameResizer"in t?k(f,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},d[f]=Object.create(null),d[f].iframe=t,d[f].firstRun=!0,d[f].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(d[f][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:l[n])}(e),d[f]&&(d[f].targetOrigin=!0===d[f].checkOrigin?""===(n=d[f].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(p(f,"IFrame scrolling "+(d[f]&&d[f].scrolling?"enabled":"disabled")+" for "+f),t.style.overflow=!1===(d[f]&&d[f].scrolling)?"hidden":"auto",d[f]&&d[f].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=d[f]?d[f].scrolling:"no"}}(),function(){function e(e){var n=d[f][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,p(f,"Set "+e+" = "+t.style[e]))}function n(e){if(d[f]["min"+e]>d[f]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(d[f]&&d[f].bodyMargin)&&"0"!==(d[f]&&d[f].bodyMargin)||(d[f].bodyMarginV1=d[f].bodyMargin,d[f].bodyMargin=d[f].bodyMargin+"px"),s=E(f),(c=m())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&S(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(c)),w(t,"load",(function(){N("iFrame.onload",s,t,e,!0),(!d[f]||!d[f].firstRun)&&d[f]&&d[f].heightCalculationMethod in u&&O({iframe:t,height:0,width:0,type:"init"})})),N("init",s,t,e,!0),d[f]&&(d[f].iframe.iFrameResizer={close:S.bind(null,d[f].iframe),removeListeners:z.bind(null,d[f].iframe),resize:N.bind(null,"Window resize","resize",d[f].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,d[f].iframe,f)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),d[f].iframe,f)}}))}function W(e,n){null===f&&(f=setTimeout((function(){f=null,e()}),n))}function H(){"hidden"!==document.visibilityState&&(p("document","Trigger event: Visibility change"),W((function(){L("Tab Visible","resize")}),16))}function L(e,n){Object.keys(d).forEach((function(t){(function(e){return d[e]&&"parent"===d[e].resizeFrom&&d[e].autoResize&&!d[e].firstRun})(t)&&N(e,n,d[t].iframe,t)}))}function P(){function n(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+">")}(),A(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c?c=c.bind(window):p("setup","RequestAnimationFrame not supported")}(),w(window,"message",I),w(window,"resize",(function(){p("window","Trigger event: resize"),W((function(){L("Window resize","resize")}),16)})),w(document,"visibilitychange",H),w(document,"-webkit-visibilitychange",H),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()),v.exports));class x{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const I=class{constructor(n){e(this,n),this.iframeLoaded=i(this,"iframeLoaded"),this.isFocused=!1,this.isValid=!0,this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))}}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:h.version})}initializeFrameCommunicationService(){var e;this.frameService=new x(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?a:this.isValid?this.isFocused?c:u:s}get style(){return this.isFocused?this.isValid?w.focused:w.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(w.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"07a697a99ef1b601c3f95d176c0eb28a695afff5",class:"form-group d-flex flex-column"},n("div",{key:"f9a1cf30b2020ae9de993dc363b07cd1e897c82d",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"09c186cb27e0fc75352c8028f1ff4e92866f3984",class:"form-label",htmlFor:"",part:d},this.label||""),n("div",{key:"758ea464591a51ddc183256ebcd66238602bc4cc",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"c2956bb89e30fe2ba1a9111fe71681883470879b",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{k({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),n(l,{key:"0ab5542c8c8a8242aefee11cc4c1b0815f27f0aa",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}};export{b as hidden_input,I as iframe_input}
|
|
1
|
+
import{r as e,h as n,H as t,c as i,g as o}from"./p-kpoIU4v_.js";import{c as r}from"./p-7WIgS5RM.js";import{i as a,b as s,a as c,c as d,l as u}from"./p-CfF8KKwx.js";import{g as f}from"./p-BFTU3MAI.js";import{F as l}from"./p-C_CXv7AN.js";import{p as h}from"./p-O3LY2Da6.js";const m=r({focused:{boxShadow:"",border:""},focusedAndInvalid:{boxShadow:"",border:""},fontStyles:{fontFamily:"",fontSize:"",fontWeight:"",lineHeight:"",margin:"",padding:""}}),{state:w,set:g}=m,b=class{constructor(n){e(this,n),this.isFocused=!1,this.errorText=""}async componentDidLoad(){const e=await this.getBaseFontStyles();g("fontStyles",e);const n=await this.getFocusedStyles();g("focused",n);const t=await this.getFocusedAndInvalidStyles();g("focusedAndInvalid",t)}async getBaseFontStyles(){return new Promise((e=>{setTimeout((()=>{const n=getComputedStyle(this.hiddenInput);e({fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,margin:n.margin,padding:n.padding,color:n.color})}),500)}))}async getFocusedStyles(){return new Promise((e=>{this.hiddenInput.focus(),setTimeout((()=>{this.hiddenInput.blur();let n=getComputedStyle(this.hiddenInput);e({boxShadow:n.boxShadow,border:n.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((e=>{this.hiddenInput.focus(),this.errorText="Error",setTimeout((()=>{const n=getComputedStyle(this.hiddenInput),t={boxShadow:n.boxShadow,border:n.border};this.hiddenInput.blur(),e(t)}),500)}))}get part(){return this.isFocused&&this.errorText?a:this.errorText?s:this.isFocused?c:d}render(){return n(t,{key:"eb0135c733e6a4273855b6c74efab83e51d3788d"},n("input",{key:"48577dd678d44b2382bbeadcaa2efc14484f8638",ref:e=>this.hiddenInput=e,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}};var p,y,v={exports:{}},k=f((p||(p=1,y=v,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,r=!1,a="[iFrameSizer]",s=null,c=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),u={},f=null,l=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",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(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),h={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){A(t,e)})).end()}):v("","Unable to bind to jQuery, it is not fully loaded.")),y.exports=P(),window.iFrameResize=window.iFrameResize||P()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function b(e){return u[e]?u[e].log:o}function p(e,n){x("log",e,n,b(e))}function v(e,n){x("info",e,n,b(e))}function k(e,n){x("warn",e,n,!0)}function x(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return a+"["+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)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),C((function(){R(W),T(L),l("onResized",W)}),W,"init")}function t(e){var n=Number(u[L]["max"+e]),t=Number(u[L]["min"+e]),i=e.toLowerCase(),o=Number(W[i]);p(L,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,p(L,"Set "+i+" to min value")),o>n&&(o=n,p(L,"Set "+i+" to max value")),W[i]=""+o}function i(e){return A.slice(A.indexOf(":")+7+e)}function o(e,n){var t,i;t=function(){var t,i;N("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=W.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-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[i=n]||(h[i]=setTimeout((function(){h[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return M(L),{x:Math.floor(Number(n.left)+Number(s.x)),y:Math.floor(Number(n.top)+Number(s.y))}}function c(e){var n=e?r(W.iframe):{x:0,y:0},t={x:Number(W.width)+n.x,y:Number(W.height)+n.y};p(L,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=t,d(),p(L,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):k(L,"Unable to scroll to requested position, window.parentIFrame not found")}function d(){!1===l("onScroll",s)?j():T(L)}function f(e){var n={};if(0===Number(W.width)&&0===Number(W.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:W.width,y:W.height};l(e,{iframe:W.iframe,screenX:Number(n.x),screenY:Number(n.y),type:W.type})}function l(e,n){return F(L,e,n)}var m,b,y,x,I,z,A=e.data,W={},L=null;"[iFrameResizerChild]Ready"===A?function(){for(var e in u)N("iFrame requested init",E(e),u[e].iframe,e)}():a===(""+A).slice(0,13)&&A.slice(13).split(":")[0]in u?(x=(y=A.slice(13).split(":"))[1]?parseInt(y[1],10):0,I=u[y[0]]&&u[y[0]].iframe,z=getComputedStyle(I),W={iframe:I,id:y[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(z)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(z),width:y[2],type:y[3]},u[L=W.id]&&(u[L].loaded=!0),(b=W.type in{true:1,false:1,undefined:1})&&p(L,"Ignoring init message from meta parent page"),!b&&function(e){var n=!0;return u[e]||(n=!1,k(W.type+" No settings for "+e+". Message was: "+A)),n}(L)&&(p(L,"Received: "+A),m=!0,null===W.iframe&&(k(L,"IFrame ("+W.id+") not found"),m=!1),m&&function(){var n,t=e.origin,i=u[L]&&u[L].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(p(L,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(p(L,"Checking connection is from: "+(n=u[L]&&u[L].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+W.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(u[L]&&u[L].firstRun&&u[L]&&(u[L].firstRun=!1),W.type){case"close":S(W.iframe);break;case"message":m=i(6),p(L,"onMessage passed: {iframe: "+W.iframe.id+", message: "+m+"}"),l("onMessage",{iframe:W.iframe,message:JSON.parse(m)}),p(L,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":u[L].autoResize=JSON.parse(i(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(u[L]&&u[L].iframe,L),function(){function e(e,i){function r(){u[t]?o(u[t].iframe,t):n()}["scroll","resize"].forEach((function(n){p(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",g)}var t=L;e("Add ",w),u[t]&&(u[t].stopPageInfo=n)}();break;case"pageInfoStop":u[L]&&u[L].stopPageInfo&&(u[L].stopPageInfo(),delete u[L].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",a=decodeURIComponent(t),(h=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(h),p(L,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},d(),p(L,"--")):window.top===window.self?p(L,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(L,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":O(W);break;case"init":n(),l("onInit",W.iframe);break;default:0===Number(W.width)&&0===Number(W.height)?k("Unsupported message received ("+W.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,a,h,m}())):v(L,"Ignored: "+A)}function F(e,n,t){var i=null,o=null;if(u[e]){if("function"!=typeof(i=u[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){delete u[e.id]}function S(e){var t=e.id;if(!1!==F(t,"onClose",t)){p(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}F(t,"onClosed",t),p(t,"--"),z(e),n&&(n.disconnect(),n=null)}else p(t,"Close iframe cancelled by onClose event")}function M(n){null===s&&p(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function T(e){null!==s&&(window.scrollTo(s.x,s.y),p(e,"Set page position: "+s.x+","+s.y),j())}function j(){s=null}function O(e){p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),M(e.id),C((function(){R(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function R(e){function n(n){r||"0"!==e[n]||(r=!0,p(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(u).forEach((function(e){!function(e){function n(n){return"0px"===(u[e]&&u[e].iframe.style[n])}u[e]&&null!==u[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",u[e].iframe,e)}(e)}))}function n(n){p("window","Mutation observed: "+n[0].target+" "+n[0].type),W(e,16)}var t,i=m();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",p(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):p("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;u[i]&&(u[i].sizeHeight&&t("height"),u[i].sizeWidth&&t("width"))}function C(e,n,t){t!==n.type&&c&&!window.jasmine?(p(n.id,"Requesting animation frame"),c(e)):e()}function N(e,n,t,i,o){var r,s=!1;u[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(p(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=u[i]&&u[i].targetOrigin)),t.contentWindow.postMessage(a+n,r)):k(i,"["+e+"] IFrame("+i+") not found"),o&&u[i]&&u[i].warningTimeout&&(u[i].msgTimeout=setTimeout((function(){!u[i]||u[i].loaded||s||(s=!0,k(i,"IFrame has not responded within "+u[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."))}),u[i].warningTimeout)))}function E(e){return e+":"+u[e].bodyMarginV1+":"+u[e].sizeWidth+":"+u[e].log+":"+u[e].interval+":"+u[e].enablePublicMethods+":"+u[e].autoResize+":"+u[e].bodyMargin+":"+u[e].heightCalculationMethod+":"+u[e].bodyBackground+":"+u[e].bodyPadding+":"+u[e].tolerance+":"+u[e].inPageLinks+":"+u[e].resizeFrom+":"+u[e].widthCalculationMethod+":"+u[e].mouseEvents}function A(t,r){function a(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],k(f,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,c,f=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=r&&r.id||l.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(r||{}).log,p(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);f in u&&"iFrameResizer"in t?k(f,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},u[f]=Object.create(null),u[f].iframe=t,u[f].firstRun=!0,u[f].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(u[f][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:l[n])}(e),u[f]&&(u[f].targetOrigin=!0===u[f].checkOrigin?""===(n=u[f].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(p(f,"IFrame scrolling "+(u[f]&&u[f].scrolling?"enabled":"disabled")+" for "+f),t.style.overflow=!1===(u[f]&&u[f].scrolling)?"hidden":"auto",u[f]&&u[f].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=u[f]?u[f].scrolling:"no"}}(),function(){function e(e){var n=u[f][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,p(f,"Set "+e+" = "+t.style[e]))}function n(e){if(u[f]["min"+e]>u[f]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(u[f]&&u[f].bodyMargin)&&"0"!==(u[f]&&u[f].bodyMargin)||(u[f].bodyMarginV1=u[f].bodyMargin,u[f].bodyMargin=u[f].bodyMargin+"px"),s=E(f),(c=m())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&S(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(c)),w(t,"load",(function(){N("iFrame.onload",s,t,e,!0),(!u[f]||!u[f].firstRun)&&u[f]&&u[f].heightCalculationMethod in d&&O({iframe:t,height:0,width:0,type:"init"})})),N("init",s,t,e,!0),u[f]&&(u[f].iframe.iFrameResizer={close:S.bind(null,u[f].iframe),removeListeners:z.bind(null,u[f].iframe),resize:N.bind(null,"Window resize","resize",u[f].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,u[f].iframe,f)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),u[f].iframe,f)}}))}function W(e,n){null===f&&(f=setTimeout((function(){f=null,e()}),n))}function L(){"hidden"!==document.visibilityState&&(p("document","Trigger event: Visibility change"),W((function(){H("Tab Visible","resize")}),16))}function H(e,n){Object.keys(u).forEach((function(t){(function(e){return u[e]&&"parent"===u[e].resizeFrom&&u[e].autoResize&&!u[e].firstRun})(t)&&N(e,n,u[t].iframe,t)}))}function P(){function n(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+">")}(),A(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c?c=c.bind(window):p("setup","RequestAnimationFrame not supported")}(),w(window,"message",I),w(window,"resize",(function(){p("window","Trigger event: resize"),W((function(){H("Window resize","resize")}),16)})),w(document,"visibilitychange",L),w(document,"-webkit-visibilitychange",L),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()),v.exports));class x{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const I=class{constructor(n){e(this,n),this.iframeLoaded=i(this,"iframeLoaded"),this.isFocused=!1,this.isValid=!0,this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))}}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:h.version})}initializeFrameCommunicationService(){var e;this.frameService=new x(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?a:this.isValid?this.isFocused?c:d:s}get style(){return this.isFocused?this.isValid?w.focused:w.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(w.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"07a697a99ef1b601c3f95d176c0eb28a695afff5",class:"form-group d-flex flex-column"},n("div",{key:"f9a1cf30b2020ae9de993dc363b07cd1e897c82d",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"09c186cb27e0fc75352c8028f1ff4e92866f3984",class:"form-label",htmlFor:"",part:u},this.label||""),n("div",{key:"758ea464591a51ddc183256ebcd66238602bc4cc",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"c2956bb89e30fe2ba1a9111fe71681883470879b",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{k({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),n(l,{key:"0ab5542c8c8a8242aefee11cc4c1b0815f27f0aa",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}};export{b as hidden_input,I as iframe_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-kpoIU4v_.js";export{s as setNonce}from"./p-kpoIU4v_.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-b504a22b",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-a357be7d",[[260,"justifi-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disableCreditCard":[4,"disable-credit-card"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"isSubmitting":[32],"serverError":[32],"tokenizedPaymentMethod":[32],"fillBillingForm":[64],"validate":[64]},[[0,"submit-event","checkoutComplete"],[0,"error-event","checkoutError"],[0,"submit-event","handleTokenizeSubmit"]],{"authToken":["propChanged"],"checkoutId":["propChanged"],"disableCreditCard":["propChanged"],"disableBankAccount":["propChanged"],"disableBnpl":["propChanged"],"disablePaymentMethodGroup":["propChanged"]}]]],["p-596b2653",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-f2149974",[[257,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"formTitle":[1,"form-title"],"removeTitle":[4,"remove-title"],"isLoading":[32],"isSaving":[32],"errorMessage":[32]}]]],["p-2ec9f293",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-424f491c",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-5b09c0d8",[[257,"justifi-refund-payment",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentId":[1,"payment-id"],"hideSubmitButton":[4,"hide-submit-button"],"formController":[32],"refundPayload":[32],"displayAmount":[32],"errors":[32],"paymentLoading":[32],"refundLoading":[32],"submitDisabled":[32],"refundPayment":[64]}]]],["p-8f0339de",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-89e27079",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-ba8ae31f",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-d0e24727",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-2a3d5af2",[[257,"justifi-order-terminals",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"shipping":[4],"submitButtonText":[1,"submit-button-text"],"loading":[32],"submitting":[32],"error":[32],"business":[32],"terminalModels":[32],"orderLimit":[32],"order":[32],"totalQuantity":[32]}]]],["p-a3d005dc",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getCheckouts":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-6f847539",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-9bb8bebf",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-7ef0b68d",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-3095775c",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-818f51fd",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16,"payment-method-option"],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-cb0effeb",[[257,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-b6f55d70",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-b107ad76",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-ff3377e7",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16,"click-handler"],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-466f33d7",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}]]],["p-fa33df9f",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}]]],["p-bdb56836",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-cfca1837",[[257,"justifi-payment-transactions-list",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-e57263b7",[[257,"justifi-payout-transactions-list",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-dd6d6ddb",[[256,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-463ae23a",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-ff869ded",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16,"custom-style"]}]]],["p-b0bfa20f",[[256,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16,"get-business"],"postProvisioning":[16,"post-provisioning"],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-5e10aa65",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-ded22005",[[256,"justifi-dispute-management-core",{"getDispute":[16,"get-dispute"],"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"getDispute":["updateOnPropChange"]}]]],["p-7d944f7e",[[256,"hidden-input",{"isFocused":[32],"errorText":[32]}],[256,"iframe-input",{"inputId":[1,"input-id"],"label":[1],"iframeOrigin":[1,"iframe-origin"],"isFocused":[32],"isValid":[32],"errorText":[32],"validate":[64],"tokenize":[64]}]]],["p-7721a457",[[256,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"isLoading":[32],"selectedPaymentMethodId":[32],"computedHideSubmitButton":[32],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[257,"justifi-saved-payment-methods"],[257,"justifi-sezzle-payment-method",{"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}],[257,"justifi-checkout-summary"],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"savePaymentMethod":[4,"save-payment-method"],"validate":[64],"submitCheckout":[64],"setSelectedPaymentMethod":[64]},null,{"savePaymentMethod":["savePaymentMethodChanged"]}]]],["p-79055216",[[256,"additional-questions-details",{"additionalQuestions":[16,"additional-questions"]}],[256,"core-info-details",{"business":[16]}],[256,"legal-address-details",{"legalAddress":[16,"legal-address"]}],[256,"owner-details",{"owners":[16]}],[256,"representative-details",{"representative":[16]}]]],["p-c5b48e8d",[[256,"business-details-core",{"getBusiness":[16,"get-business"],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-22be0859",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-57143978",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-a4172773",[[256,"checkouts-list-core",{"getCheckouts":[16,"get-checkouts"],"getSubAccounts":[16,"get-sub-accounts"],"columns":[1],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getCheckouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-e859ece8",[[256,"payment-details-core",{"getPaymentDetails":[16,"get-payment-details"],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-9b75aced",[[256,"payments-list-core",{"getPayments":[16,"get-payments"],"columns":[1],"payments":[32],"paymentsTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-0932f6a9",[[256,"payout-details-core",{"getPayout":[16,"get-payout"],"getPayoutCSV":[16,"get-payout-c-s-v"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-d77908ca",[[256,"payouts-list-core",{"getPayouts":[16,"get-payouts"],"getSubAccounts":[16,"get-sub-accounts"],"getPayoutCSV":[16,"get-payout-c-s-v"],"columns":[1],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-77515be6",[[256,"terminal-orders-list-core",{"getTerminalOrders":[16,"get-terminal-orders"],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminalOrders":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-283cd78b",[[256,"terminals-list-core",{"getTerminals":[16,"get-terminals"],"getSubAccounts":[16,"get-sub-accounts"],"columns":[1],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-08ea8974",[[256,"form-control-monetary",{"name":[8],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-28c7bef7",[[256,"gross-payment-chart-core",{"getGrossPayment":[16,"get-gross-payment"],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-7c51805a",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16,"anchor-ref"],"isOpen":[32]}]]],["p-48bccf3b",[[256,"justifi-business-representative",{"formController":[16,"form-controller"],"errors":[32],"representative":[32]}],[256,"justifi-business-core-info",{"formController":[16,"form-controller"],"errors":[32],"coreInfo":[32]}],[256,"justifi-additional-questions",{"formController":[16,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[16,"form-controller"],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-15777cfe",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16,"form-controller"]}]]],["p-ae5a3c2a",[[260,"table-filters-menu",{"params":[8],"clearParams":[16,"clear-params"],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-a8205044",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-e830a580",[[256,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"checked":[4],"inputHandler":[16,"input-handler"],"disabled":[4],"isFocused":[32]}]]],["p-6e18d13f",[[256,"form-control-monetary-provisioning",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"maskOptions":[8,"mask-options"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-eaea7cc1",[[256,"form-control-radio",{"label":[1],"name":[8],"value":[1],"helpText":[1,"help-text"],"inputHandler":[16,"input-handler"],"disabled":[4],"errorText":[1,"error-text"],"checked":[4],"isFocused":[32]}]]],["p-39b79825",[[256,"justifi-billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-form",{"iframeOrigin":[32],"isReady":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[1],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-save-new-payment-method",{"isChecked":[32]}],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16,"click-handler"],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"]}],[257,"justifi-billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-09e768fe",[[256,"bank-account-form-inputs",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16,"input-handler"],"formDisabled":[4,"form-disabled"]}],[256,"bank-account-document-form-inputs",{"inputHandler":[16,"input-handler"],"errors":[8],"storeFiles":[16,"store-files"]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[256,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16,"input-handler"],"disabled":[4],"files":[32],"fileString":[32],"isFocused":[32]}]]],["p-40ba49e4",[[256,"form-control-textarea",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16,"input-handler"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-file-v2",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"inputHandler":[16,"input-handler"],"disabled":[4],"files":[32]}]]],["p-36d72e2d",[[256,"form-control-date",{"name":[1],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"showTime":[4,"show-time"],"maxDate":[1,"max-date"],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-df199396",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-e2174f21",[[257,"justifi-dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[16,"dispute-response"],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}],[257,"justifi-dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}],[256,"justifi-dispute-response-core",{"updateDisputeResponse":[16,"update-dispute-response"],"submitDisputeResponse":[16,"submit-dispute-response"],"createDisputeEvidence":[16,"create-dispute-evidence"],"disputeResponse":[8,"dispute-response"],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]}]]],["p-a7d5e434",[[256,"justifi-identity-address-form",{"handleFormUpdate":[16,"handle-form-update"],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[256,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"mask":[1],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-904a95e5",[[256,"justifi-owner-form",{"authToken":[1,"auth-token"],"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16,"remove-owner"],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[256,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16,"get-owner"],"patchOwner":[16,"patch-owner"],"postOwner":[16,"post-owner"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16,"remove-owner"],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16,"form-controller"]}]]],["p-be06d86a",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[256,"justifi-business-bank-account-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"postBankAccount":[16,"post-bank-account"],"postDocumentRecord":[16,"post-document-record"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"existingDocuments":[32],"documentData":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"isLoading":["watchHandler"]}],[256,"justifi-business-representative-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-questions-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"additional_questions":["recurringPaymentsWatcher"]}],[256,"justifi-legal-address-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-3d85d046",[[256,"justifi-payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"handleFormLoading":[16,"handle-form-loading"]}],[256,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16,"previous-step-button-on-click"],"nextStepButtonOnClick":[16,"next-step-button-on-click"]}],[256,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"postBankAccount":[32],"postDocumentRecord":[32],"postDocument":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"acceptedTerms":[32],"validateAndSubmit":[64]}]]],["p-4ba144ac",[[256,"justifi-shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"justifi-customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as t}from"./p-kpoIU4v_.js";export{s as setNonce}from"./p-kpoIU4v_.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-c3a2c619",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-2f31a4e5",[[260,"justifi-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disableCreditCard":[4,"disable-credit-card"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"isSubmitting":[32],"serverError":[32],"tokenizedPaymentMethod":[32],"fillBillingForm":[64],"validate":[64]},[[0,"submit-event","checkoutComplete"],[0,"error-event","checkoutError"],[0,"submit-event","handleTokenizeSubmit"]],{"authToken":["propChanged"],"checkoutId":["propChanged"],"disableCreditCard":["propChanged"],"disableBankAccount":["propChanged"],"disableBnpl":["propChanged"],"disablePaymentMethodGroup":["propChanged"]}]]],["p-dfd7c212",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-131d799c",[[257,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"formTitle":[1,"form-title"],"removeTitle":[4,"remove-title"],"isLoading":[32],"isSaving":[32],"errorMessage":[32]}]]],["p-1d53f0b8",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-424f491c",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-ae4297dd",[[257,"justifi-refund-payment",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentId":[1,"payment-id"],"hideSubmitButton":[4,"hide-submit-button"],"formController":[32],"refundPayload":[32],"displayAmount":[32],"errors":[32],"paymentLoading":[32],"refundLoading":[32],"submitDisabled":[32],"refundPayment":[64]}]]],["p-8f0339de",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-89e27079",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-ba8ae31f",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-d0e24727",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-7322c86e",[[257,"justifi-order-terminals",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"shipping":[4],"submitButtonText":[1,"submit-button-text"],"loading":[32],"submitting":[32],"error":[32],"business":[32],"terminalModels":[32],"orderLimit":[32],"order":[32],"totalQuantity":[32]}]]],["p-dd257e60",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getCheckouts":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-828a61b9",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-57802e57",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-6849bf8e",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-9106fd74",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-818f51fd",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16,"payment-method-option"],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-1bdce018",[[257,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-f01953ea",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-1f8cd44e",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-ff3377e7",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16,"click-handler"],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-466f33d7",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}]]],["p-fa33df9f",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}]]],["p-dd689b5e",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-cebe360b",[[257,"justifi-payment-transactions-list",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-f3a757b2",[[257,"justifi-payout-transactions-list",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-dd6d6ddb",[[256,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-463ae23a",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-ff869ded",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16,"custom-style"]}]]],["p-b0bfa20f",[[256,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16,"get-business"],"postProvisioning":[16,"post-provisioning"],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-5e10aa65",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-ded22005",[[256,"justifi-dispute-management-core",{"getDispute":[16,"get-dispute"],"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"getDispute":["updateOnPropChange"]}]]],["p-f47095cd",[[256,"hidden-input",{"isFocused":[32],"errorText":[32]}],[256,"iframe-input",{"inputId":[1,"input-id"],"label":[1],"iframeOrigin":[1,"iframe-origin"],"isFocused":[32],"isValid":[32],"errorText":[32],"validate":[64],"tokenize":[64]}]]],["p-0dcc83ac",[[256,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"isLoading":[32],"selectedPaymentMethodId":[32],"computedHideSubmitButton":[32],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[257,"justifi-saved-payment-methods"],[257,"justifi-sezzle-payment-method",{"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}],[257,"justifi-checkout-summary"],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"savePaymentMethod":[4,"save-payment-method"],"validate":[64],"submitCheckout":[64],"setSelectedPaymentMethod":[64]},null,{"savePaymentMethod":["savePaymentMethodChanged"]}]]],["p-79055216",[[256,"additional-questions-details",{"additionalQuestions":[16,"additional-questions"]}],[256,"core-info-details",{"business":[16]}],[256,"legal-address-details",{"legalAddress":[16,"legal-address"]}],[256,"owner-details",{"owners":[16]}],[256,"representative-details",{"representative":[16]}]]],["p-c5b48e8d",[[256,"business-details-core",{"getBusiness":[16,"get-business"],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-22be0859",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-57143978",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-a4172773",[[256,"checkouts-list-core",{"getCheckouts":[16,"get-checkouts"],"getSubAccounts":[16,"get-sub-accounts"],"columns":[1],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getCheckouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-e859ece8",[[256,"payment-details-core",{"getPaymentDetails":[16,"get-payment-details"],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-9b75aced",[[256,"payments-list-core",{"getPayments":[16,"get-payments"],"columns":[1],"payments":[32],"paymentsTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-0932f6a9",[[256,"payout-details-core",{"getPayout":[16,"get-payout"],"getPayoutCSV":[16,"get-payout-c-s-v"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-d77908ca",[[256,"payouts-list-core",{"getPayouts":[16,"get-payouts"],"getSubAccounts":[16,"get-sub-accounts"],"getPayoutCSV":[16,"get-payout-c-s-v"],"columns":[1],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-77515be6",[[256,"terminal-orders-list-core",{"getTerminalOrders":[16,"get-terminal-orders"],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminalOrders":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-283cd78b",[[256,"terminals-list-core",{"getTerminals":[16,"get-terminals"],"getSubAccounts":[16,"get-sub-accounts"],"columns":[1],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-08ea8974",[[256,"form-control-monetary",{"name":[8],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-28c7bef7",[[256,"gross-payment-chart-core",{"getGrossPayment":[16,"get-gross-payment"],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-7c51805a",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16,"anchor-ref"],"isOpen":[32]}]]],["p-48bccf3b",[[256,"justifi-business-representative",{"formController":[16,"form-controller"],"errors":[32],"representative":[32]}],[256,"justifi-business-core-info",{"formController":[16,"form-controller"],"errors":[32],"coreInfo":[32]}],[256,"justifi-additional-questions",{"formController":[16,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[16,"form-controller"],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-15777cfe",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16,"form-controller"]}]]],["p-ae5a3c2a",[[260,"table-filters-menu",{"params":[8],"clearParams":[16,"clear-params"],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-a8205044",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-e830a580",[[256,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"checked":[4],"inputHandler":[16,"input-handler"],"disabled":[4],"isFocused":[32]}]]],["p-6e18d13f",[[256,"form-control-monetary-provisioning",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"maskOptions":[8,"mask-options"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-eaea7cc1",[[256,"form-control-radio",{"label":[1],"name":[8],"value":[1],"helpText":[1,"help-text"],"inputHandler":[16,"input-handler"],"disabled":[4],"errorText":[1,"error-text"],"checked":[4],"isFocused":[32]}]]],["p-3a4ca4df",[[256,"justifi-billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-form",{"iframeOrigin":[32],"isReady":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[1],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-save-new-payment-method",{"isChecked":[32]}],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16,"click-handler"],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"]}],[257,"justifi-billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-09e768fe",[[256,"bank-account-form-inputs",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16,"input-handler"],"formDisabled":[4,"form-disabled"]}],[256,"bank-account-document-form-inputs",{"inputHandler":[16,"input-handler"],"errors":[8],"storeFiles":[16,"store-files"]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[256,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16,"input-handler"],"disabled":[4],"files":[32],"fileString":[32],"isFocused":[32]}]]],["p-40ba49e4",[[256,"form-control-textarea",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16,"input-handler"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-file-v2",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"inputHandler":[16,"input-handler"],"disabled":[4],"files":[32]}]]],["p-36d72e2d",[[256,"form-control-date",{"name":[1],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"showTime":[4,"show-time"],"maxDate":[1,"max-date"],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-df199396",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16,"input-handler"],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16,"key-down-handler"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-bea4309d",[[257,"justifi-dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[16,"dispute-response"],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}],[257,"justifi-dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}],[256,"justifi-dispute-response-core",{"updateDisputeResponse":[16,"update-dispute-response"],"submitDisputeResponse":[16,"submit-dispute-response"],"createDisputeEvidence":[16,"create-dispute-evidence"],"disputeResponse":[8,"dispute-response"],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]}]]],["p-a7d5e434",[[256,"justifi-identity-address-form",{"handleFormUpdate":[16,"handle-form-update"],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[256,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16,"input-handler"],"mask":[1],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-904a95e5",[[256,"justifi-owner-form",{"authToken":[1,"auth-token"],"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16,"remove-owner"],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[256,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16,"get-owner"],"patchOwner":[16,"patch-owner"],"postOwner":[16,"post-owner"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16,"remove-owner"],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16,"form-controller"]}]]],["p-be06d86a",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[256,"justifi-business-bank-account-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"postBankAccount":[16,"post-bank-account"],"postDocumentRecord":[16,"post-document-record"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"existingDocuments":[32],"documentData":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"isLoading":["watchHandler"]}],[256,"justifi-business-representative-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-questions-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"additional_questions":["recurringPaymentsWatcher"]}],[256,"justifi-legal-address-form-step-core",{"getBusiness":[16,"get-business"],"patchBusiness":[16,"patch-business"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-3d85d046",[[256,"justifi-payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"handleFormLoading":[16,"handle-form-loading"]}],[256,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16,"previous-step-button-on-click"],"nextStepButtonOnClick":[16,"next-step-button-on-click"]}],[256,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"postBankAccount":[32],"postDocumentRecord":[32],"postDocument":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"acceptedTerms":[32],"validateAndSubmit":[64]}]]],["p-4ba144ac",[[256,"justifi-shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"justifi-customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]]]'),e))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,c as i,H as s,g as o}from"./p-kpoIU4v_.js";import{D as r,r as a}from"./p-CfF8KKwx.js";import{f as n}from"./p-zdIeCUeh.js";import{c as d,o as h}from"./p-CCME-fyU.js";import{S as c}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{H as l}from"./p-zrUQD0Wr.js";import{H as u,b as m,h as p,i as f}from"./p-qMrd7_Gp.js";import{H as v}from"./p-CwZKT93w.js";import{J as y,c as b}from"./p-CEsXw0Ph.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as k,a as j,b as g}from"./p-Cjcsf8ku.js";import{I as C,k as w}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as M,a as _}from"./p-D2muobcE.js";import{C as z}from"./p-UD2JhYS2.js";import{C as P}from"./p-ZpPDShvP.js";import"./p-7WIgS5RM.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const S=class{constructor(e){t(this,e)}render(){return e(c,{key:"fccb819d66329424af42e9c53effec29a6c9784d"},e("section",{key:"0ee7a4e0579f7f222a9db82e6b4db6bb92542d9e"},e("div",{key:"bdf74b2bc5db35b96ca75d50783b790bb482a76e"},e("div",{key:"851b481bd6beb1fcaadc106d27d131f8b07d1c9a",part:r},null==d?void 0:d.paymentDescription),e("div",{key:"0b261bc0e2d65cf989778e02df51b3265816f7aa"},e("span",{key:"0eee0017ddf25ae45d6b5c828071098f45e6e19d",part:r},"Total")," ",e("span",{key:"d21576f14c3437f70a4b85b9dfc01107392d663a",part:r},n(+(null==d?void 0:d.totalAmount)))))))}},O=class{constructor(e){t(this,e),this.levels={h1:l,h2:u,h3:v},this.level="h1"}render(){return e(c,{key:"ae04a67a1eaf95d6d093fef23911ac4eb1523cfe"},e(this.levels[this.level],{key:"51b27dd180d113ebe9ac52f7ff10c494926f7cdf",text:this.text,class:this.class}))}},I=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.paymentMethodChangedEvent=i(this,"payment-method-changed"),this.savePaymentMethod=!1}savePaymentMethodChanged(t){d.savePaymentMethod=t}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),d.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new z};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:o})=>{var r;try{const a=await i.fetchCheckout(t,e);if(a.error)return o({error:_(a.error),code:M(null===(r=a.error)||void 0===r?void 0:r.code),severity:k.ERROR});s({checkout:a.data})}catch(t){const e=M(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:k.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:o,onError:r})=>{var a;try{const n=await i.complete(t,e,s);if(n.error)return r({error:_(n.error),code:M(null===(a=n.error)||void 0===a?void 0:a.code),severity:k.ERROR});o({checkout:n.data})}catch(t){const e=M(null==t?void 0:t.code);return r({error:t.message||t,code:e,severity:k.ERROR})}})(t),h("selectedPaymentMethod",(t=>{this.paymentMethodChangedEvent.emit(t)}))}componentWillLoad(){this.authToken&&this.checkoutId?(this.analytics=new y(this),b(),d.authToken=this.authToken,d.savePaymentMethod=this.savePaymentMethod,this.fetchCheckout(),m("set",(t=>{const e=f[t];void 0!==e&&p(t,e)&&this.fetchCheckout()}))):this.errorEvent.emit({message:g.NOT_AUTHENTICATED,errorCode:j.NOT_AUTHENTICATED,severity:k.ERROR})}componentDidLoad(){this.queryFormRefs()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}fetchCheckout(){this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{t.status!==C.completed?t.status!==C.expired?this.updateStore(t):this.errorEvent.emit({message:g.CHECKOUT_EXPIRED,errorCode:j.CHECKOUT_EXPIRED,severity:k.ERROR}):this.errorEvent.emit({message:g.CHECKOUT_ALREADY_COMPLETED,errorCode:j.CHECKOUT_ALREADY_COMPLETED,severity:k.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:j.FETCH_ERROR,severity:k.ERROR})}})}updateStore(t){var e,i,s,o;d.accountId=t.account_id,d.paymentMethods=t.payment_methods,d.paymentMethodGroupId=t.payment_method_group_id,d.paymentDescription=t.payment_description,d.totalAmount=t.total_amount,d.paymentAmount=t.payment_amount,d.bnplEnabled=t.payment_settings.bnpl_payments,d.bnplProviderClientId=null===(e=null==t?void 0:t.bnpl)||void 0===e?void 0:e.provider_client_id,d.bnplProviderMode=null===(i=null==t?void 0:t.bnpl)||void 0===i?void 0:i.provider_mode,d.bnplProviderApiVersion=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_api_version,d.bnplProviderCheckoutUrl=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_checkout_url}queryFormRefs(){this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form"),this.billingInformationFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance"),this.sezzlePaymentMethodRef=this.hostEl.querySelector("justifi-sezzle-payment-method")}async tokenizePaymentMethod(t){var e,i,s;const o=null!==(i=await(null===(e=this.billingInformationFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},r=Object.assign(Object.assign({},t),o),a=Object.assign({accountId:d.accountId,payment_method_group_id:void 0},r);return d.savePaymentMethod&&(a.payment_method_group_id=d.paymentMethodGroupId),null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:a,account:d.accountId})}async getPaymentMethod(t){if(d.paymentToken)return d.paymentToken;if(!this.paymentMethodFormRef)return d.selectedPaymentMethod;const{error:e,id:i}=await this.tokenizePaymentMethod(t);if(!e)return i;this.errorEvent.emit({errorCode:e.code,message:e.message,severity:k.ERROR})}async validate(){var t;const e=[null===(t=this.billingInformationFormRef)||void 0===t?void 0:t.validate()];return!d.paymentToken&&this.paymentMethodFormRef&&e.push(this.paymentMethodFormRef.validate()),this.insuranceFormRef&&e.push(this.insuranceFormRef.validate()),(await Promise.all(e)).every((t=>"boolean"==typeof t?t:t&&"object"==typeof t&&"isValid"in t?t.isValid:!1!==t))}async submitCheckout(t){var e;if(!await this.validate())return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:j.VALIDATION_ERROR,severity:k.ERROR});let i;if("sezzle"===d.selectedPaymentMethod){const t=this.insuranceFormRef?await this.insuranceFormRef.validate():{isValid:!0},s=await this.sezzlePaymentMethodRef.resolvePaymentMethod(t);if(s.error)return void this.errorEvent.emit({message:s.error.message,errorCode:j.TOKENIZE_ERROR,severity:k.ERROR});"success"===(null===(e=s.bnpl)||void 0===e?void 0:e.status)&&(i={payment_mode:"bnpl",payment_token:void 0})}else{const e=await this.getPaymentMethod(t);if(!e)return void this.errorEvent.emit({message:"Payment method tokenization failed.",errorCode:j.TOKENIZE_ERROR,severity:k.ERROR});i={payment_mode:"ecom",payment_token:e}}this.completeCheckout({payment:i,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:j.COMPLETE_CHECKOUT_ERROR,severity:k.ERROR})}})}async setSelectedPaymentMethod(t){d.selectedPaymentMethod=t}render(){return e(s,{key:"047a90f9aed88b72c60f6333e20fa00871fdd17a"})}get hostEl(){return o(this)}static get watchers(){return{savePaymentMethod:["savePaymentMethodChanged"]}}},D=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),d.selectedPaymentMethod=t},this.isAllowedPaymentMethod=t=>!("card"===t.type&&d.disableCreditCard||"bank_account"===t.type&&d.disableBankAccount)}componentWillLoad(){d.paymentMethods.length||console.warn("No saved payment methods available."),d.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return d.disablePaymentMethodGroup?null:e(c,null,e("div",{class:"saved-payment-methods"},d.paymentMethods.length?d.paymentMethods.filter(this.isAllowedPaymentMethod).map((t=>e("div",{class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick(null==t?void 0:t.id)},e("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:d.selectedPaymentMethod===(null==t?void 0:t.id),label:`${P[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},E=e("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),T=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=t=>{t.preventDefault(),d.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(d.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:d.bnplProviderClientId,apiMode:d.bnplProviderMode,apiVersion:d.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:d.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var t,i;return!d.bnplEnabled||d.disableBnpl?(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null):e(c,{class:"payment-method"},e("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:d.selectedPaymentMethod===this.paymentMethodOptionId,label:e("div",null,e("div",null,"Buy now, pay later with ",E),this.installmentPlan&&e("small",null,e("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},n(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))})))}},F={[w.bankAccount]:"New bank account",[w.card]:"New credit or debit card"},L="Payment form not ready",B="Validation error",H=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.isLoading=!1,this.computedHideSubmitButton=!1,this.submitButtonText="Submit"}componentWillLoad(){b(),this.analytics=new y(this),this.validateRequiredProps()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}handleRadioClick(t){this.selectedPaymentMethodId=t.detail}async fillBillingForm(t){var e;null===(e=this.billingFormRef)||void 0===e||e.fill(t)}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:j.TOKENIZE_ERROR,message:B}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(j.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:j.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:L}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}validateRequiredProps(){this.authToken||d.authToken||this.emitError({errorCode:j.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||d.accountId||this.emitError({errorCode:j.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethodId||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethodId=w.bankAccount):this.selectedPaymentMethodId=w.card)}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(w.card),this.disableBankAccount||t.push(w.bankAccount),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:k.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",L);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||B;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||d.authToken,account:this.accountId||d.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||d.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!d.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const i=this.selectedPaymentMethodId===t;return e("div",{class:"payment-method"},e("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:i,label:F[t],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return e("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),e("div",{class:"mt-4"},e("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID}))}renderPaymentMethodForm(t){return e(t===w.card?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return e(c,{key:"11b857dea77d2f753e400cfaf021db51326ffc36"},e("form",{key:"fd1c625c62b1699157b24834e15c4c6e0bc93b84"},e("fieldset",{key:"febf7db57a5ceda457e21287c20df817b101b45d"},e("div",{key:"1089c358094a3f0cea1c97b807779c7eb6e9e692",class:"row gy-3"},e("div",{key:"f564fbfec389008e352f9de54fdb604be56d8826",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),e("div",{key:"e3e7f46529d1a659f387fb6df0914c168d556e27",class:"col-12"},e("justifi-button",{key:"d729f38c5b55c174de479ab57da56defd327366b",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return o(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{S as justifi_checkout_summary,O as justifi_header,I as justifi_modular_checkout,D as justifi_saved_payment_methods,T as justifi_sezzle_payment_method,H as justifi_tokenize_payment_method}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as p}from"./p-D2muobcE.js";import{c as a,J as n}from"./p-CEsXw0Ph.js";import{C as h}from"./p-UD2JhYS2.js";import{m as u,S as m}from"./p-Bpcb3SsP.js";import{S as d}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-CsNubTqD.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-vRhNRfmB.js";import"./p-CfF8KKwx.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:n})=>{var h,u;try{const m=await i.fetchCheckouts(t,s,r);if(m.error)return n({error:p(m.error),code:c(null===(u=m.error)||void 0===u?void 0:u.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({checkouts:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new m}))}render(){return i(d,{key:"b0c774c4f56f94cd6b4a3dc8651938f9f33ca94e"},i("checkouts-list-core",{key:"d524423a791f70c234044f5ba27d7bc3648fc988",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_checkouts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"@justifi/webcomponents",version:"5.7.6-rc-21"};export{e as p}
|