@neocash/bnpl-widget 0.1.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/index.mjs ADDED
@@ -0,0 +1,112 @@
1
+ var de,w,qe,Vn,G,Le,Ve,Oe,ve,oe,ne,$e,ke,_e,be,On,le={},se=[],$n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pe=Array.isArray;function Y(n,t){for(var r in t)n[r]=t[r];return n}function Se(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Ce(n,t,r){var o,a,i,l={};for(i in t)i=="key"?o=t[i]:i=="ref"?a=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?de.call(arguments,2):r),typeof n=="function"&&n.defaultProps!=null)for(i in n.defaultProps)l[i]===void 0&&(l[i]=n.defaultProps[i]);return ie(n,l,o,a,null)}function ie(n,t,r,o,a){var i={type:n,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++qe,__i:-1,__u:0};return a==null&&w.vnode!=null&&w.vnode(i),i}function P(n){return n.children}function ae(n,t){this.props=n,this.context=t}function J(n,t){if(t==null)return n.__?J(n.__,n.__i+1):null;for(var r;t<n.__k.length;t++)if((r=n.__k[t])!=null&&r.__e!=null)return r.__e;return typeof n.type=="function"?J(n):null}function jn(n){if(n.__P&&n.__d){var t=n.__v,r=t.__e,o=[],a=[],i=Y({},t);i.__v=t.__v+1,w.vnode&&w.vnode(i),we(n.__P,i,t,n.__n,n.__P.namespaceURI,32&t.__u?[r]:null,o,r??J(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Ke(o,i,a),t.__e=t.__=null,i.__e!=r&&je(i)}}function je(n){if((n=n.__)!=null&&n.__c!=null)return n.__e=n.__c.base=null,n.__k.some(function(t){if(t!=null&&t.__e!=null)return n.__e=n.__c.base=t.__e}),je(n)}function Ne(n){(!n.__d&&(n.__d=!0)&&G.push(n)&&!ce.__r++||Le!=w.debounceRendering)&&((Le=w.debounceRendering)||Ve)(ce)}function ce(){try{for(var n,t=1;G.length;)G.length>t&&G.sort(Oe),n=G.shift(),t=G.length,jn(n)}finally{G.length=ce.__r=0}}function Ue(n,t,r,o,a,i,l,c,u,d,p){var s,f,m,v,x,C,_,k=o&&o.__k||se,S=t.length;for(u=Un(r,t,k,u,S),s=0;s<S;s++)(m=r.__k[s])!=null&&(f=m.__i!=-1&&k[m.__i]||le,m.__i=s,C=we(n,m,f,a,i,l,c,u,d,p),v=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&Pe(f.ref,null,m),p.push(m.ref,m.__c||v,m)),x==null&&v!=null&&(x=v),(_=!!(4&m.__u))||f.__k===m.__k?(u=Ye(m,u,n,_),_&&f.__e&&(f.__e=null)):typeof m.type=="function"&&C!==void 0?u=C:v&&(u=v.nextSibling),m.__u&=-7);return r.__e=x,u}function Un(n,t,r,o,a){var i,l,c,u,d,p=r.length,s=p,f=0;for(n.__k=new Array(a),i=0;i<a;i++)(l=t[i])!=null&&typeof l!="boolean"&&typeof l!="function"?(typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?l=n.__k[i]=ie(null,l,null,null,null):pe(l)?l=n.__k[i]=ie(P,{children:l},null,null,null):l.constructor===void 0&&l.__b>0?l=n.__k[i]=ie(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):n.__k[i]=l,u=i+f,l.__=n,l.__b=n.__b+1,c=null,(d=l.__i=Yn(l,r,u,s))!=-1&&(s--,(c=r[d])&&(c.__u|=2)),c==null||c.__v==null?(d==-1&&(a>p?f--:a<p&&f++),typeof l.type!="function"&&(l.__u|=4)):d!=u&&(d==u-1?f--:d==u+1?f++:(d>u?f--:f++,l.__u|=4))):n.__k[i]=null;if(s)for(i=0;i<p;i++)(c=r[i])!=null&&!(2&c.__u)&&(c.__e==o&&(o=J(c)),Xe(c,c));return o}function Ye(n,t,r,o){var a,i;if(typeof n.type=="function"){for(a=n.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=n,t=Ye(a[i],t,r,o));return t}n.__e!=t&&(o&&(t&&n.type&&!t.parentNode&&(t=J(n)),r.insertBefore(n.__e,t||null)),t=n.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Yn(n,t,r,o){var a,i,l,c=n.key,u=n.type,d=t[r],p=d!=null&&(2&d.__u)==0;if(d===null&&c==null||p&&c==d.key&&u==d.type)return r;if(o>(p?1:0)){for(a=r-1,i=r+1;a>=0||i<t.length;)if((d=t[l=a>=0?a--:i++])!=null&&!(2&d.__u)&&c==d.key&&u==d.type)return l}return-1}function We(n,t,r){t[0]=="-"?n.setProperty(t,r??""):n[t]=r==null?"":typeof r!="number"||$n.test(t)?r:r+"px"}function re(n,t,r,o,a){var i,l;e:if(t=="style")if(typeof r=="string")n.style.cssText=r;else{if(typeof o=="string"&&(n.style.cssText=o=""),o)for(t in o)r&&t in r||We(n.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||We(n.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace($e,"$1")),l=t.toLowerCase(),t=l in n||t=="onFocusOut"||t=="onFocusIn"?l.slice(2):t.slice(2),n.l||(n.l={}),n.l[t+i]=r,r?o?r[ne]=o[ne]:(r[ne]=ke,n.addEventListener(t,i?be:_e,i)):n.removeEventListener(t,i?be:_e,i);else{if(a=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in n)try{n[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?n.removeAttribute(t):n.setAttribute(t,t=="popover"&&r==1?"":r))}}function He(n){return function(t){if(this.l){var r=this.l[t.type+n];if(t[oe]==null)t[oe]=ke++;else if(t[oe]<r[ne])return;return r(w.event?w.event(t):t)}}}function we(n,t,r,o,a,i,l,c,u,d){var p,s,f,m,v,x,C,_,k,S,g,h,A,V,Z,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),i=[c=t.__e=r.__e]),(p=w.__b)&&p(t);e:if(typeof O=="function")try{if(_=t.props,k=O.prototype&&O.prototype.render,S=(p=O.contextType)&&o[p.__c],g=p?S?S.props.value:p.__:o,r.__c?C=(s=t.__c=r.__c).__=s.__E:(k?t.__c=s=new O(_,g):(t.__c=s=new ae(_,g),s.constructor=O,s.render=Gn),S&&S.sub(s),s.state||(s.state={}),s.__n=o,f=s.__d=!0,s.__h=[],s._sb=[]),k&&s.__s==null&&(s.__s=s.state),k&&O.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=Y({},s.__s)),Y(s.__s,O.getDerivedStateFromProps(_,s.__s))),m=s.props,v=s.state,s.__v=t,f)k&&O.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),k&&s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(k&&O.getDerivedStateFromProps==null&&_!==m&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(_,g),t.__v==r.__v||!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(_,s.__s,g)===!1){t.__v!=r.__v&&(s.props=_,s.state=s.__s,s.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(T){T&&(T.__=t)}),se.push.apply(s.__h,s._sb),s._sb=[],s.__h.length&&l.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(_,s.__s,g),k&&s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(m,v,x)})}if(s.context=g,s.props=_,s.__P=n,s.__e=!1,h=w.__r,A=0,k)s.state=s.__s,s.__d=!1,h&&h(t),p=s.render(s.props,s.state,s.context),se.push.apply(s.__h,s._sb),s._sb=[];else do s.__d=!1,h&&h(t),p=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++A<25);s.state=s.__s,s.getChildContext!=null&&(o=Y(Y({},o),s.getChildContext())),k&&!f&&s.getSnapshotBeforeUpdate!=null&&(x=s.getSnapshotBeforeUpdate(m,v)),V=p!=null&&p.type===P&&p.key==null?Ge(p.props.children):p,c=Ue(n,pe(V)?V:[V],t,r,o,a,i,l,c,u,d),s.base=t.__e,t.__u&=-161,s.__h.length&&l.push(s),C&&(s.__E=s.__=null)}catch(T){if(t.__v=null,u||i!=null)if(T.then){for(t.__u|=u?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else{for(Z=i.length;Z--;)Se(i[Z]);xe(t)}else t.__e=r.__e,t.__k=r.__k,T.then||xe(t);w.__e(T,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=Kn(r.__e,t,r,o,a,i,l,u,d);return(p=w.diffed)&&p(t),128&t.__u?void 0:c}function xe(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(xe))}function Ke(n,t,r){for(var o=0;o<r.length;o++)Pe(r[o],r[++o],r[++o]);w.__c&&w.__c(t,n),n.some(function(a){try{n=a.__h,a.__h=[],n.some(function(i){i.call(a)})}catch(i){w.__e(i,a.__v)}})}function Ge(n){return typeof n!="object"||n==null||n.__b>0?n:pe(n)?n.map(Ge):Y({},n)}function Kn(n,t,r,o,a,i,l,c,u){var d,p,s,f,m,v,x,C=r.props||le,_=t.props,k=t.type;if(k=="svg"?a="http://www.w3.org/2000/svg":k=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!k&&(k?m.localName==k:m.nodeType==3)){n=m,i[d]=null;break}}if(n==null){if(k==null)return document.createTextNode(_);n=document.createElementNS(a,k,_.is&&_),c&&(w.__m&&w.__m(t,i),c=!1),i=null}if(k==null)C===_||c&&n.data==_||(n.data=_);else{if(i=i&&de.call(n.childNodes),!c&&i!=null)for(C={},d=0;d<n.attributes.length;d++)C[(m=n.attributes[d]).name]=m.value;for(d in C)m=C[d],d=="dangerouslySetInnerHTML"?s=m:d=="children"||d in _||d=="value"&&"defaultValue"in _||d=="checked"&&"defaultChecked"in _||re(n,d,null,m,a);for(d in _)m=_[d],d=="children"?f=m:d=="dangerouslySetInnerHTML"?p=m:d=="value"?v=m:d=="checked"?x=m:c&&typeof m!="function"||C[d]===m||re(n,d,m,C[d],a);if(p)c||s&&(p.__html==s.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),t.__k=[];else if(s&&(n.innerHTML=""),Ue(t.type=="template"?n.content:n,pe(f)?f:[f],t,r,o,k=="foreignObject"?"http://www.w3.org/1999/xhtml":a,i,l,i?i[0]:r.__k&&J(r,0),c,u),i!=null)for(d=i.length;d--;)Se(i[d]);c||(d="value",k=="progress"&&v==null?n.removeAttribute("value"):v!=null&&(v!==n[d]||k=="progress"&&!v||k=="option"&&v!=C[d])&&re(n,d,v,C[d],a),d="checked",x!=null&&x!=n[d]&&re(n,d,x,C[d],a))}return n}function Pe(n,t,r){try{if(typeof n=="function"){var o=typeof n.__u=="function";o&&n.__u(),o&&t==null||(n.__u=n(t))}else n.current=t}catch(a){w.__e(a,r)}}function Xe(n,t,r){var o,a;if(w.unmount&&w.unmount(n),(o=n.ref)&&(o.current&&o.current!=n.__e||Pe(o,null,t)),(o=n.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){w.__e(i,t)}o.base=o.__P=null}if(o=n.__k)for(a=0;a<o.length;a++)o[a]&&Xe(o[a],t,r||typeof n.type!="function");r||Se(n.__e),n.__c=n.__=n.__e=void 0}function Gn(n,t,r){return this.constructor(n,r)}function Re(n,t,r){var o,a,i,l;t==document&&(t=document.documentElement),w.__&&w.__(n,t),a=(o=typeof r=="function")?null:r&&r.__k||t.__k,i=[],l=[],we(t,n=(!o&&r||t).__k=Ce(P,null,[n]),a||le,le,t.namespaceURI,!o&&r?[r]:a?null:t.firstChild?de.call(t.childNodes):null,i,!o&&r?r:a?a.__e:t.firstChild,o,l),Ke(i,n,l)}de=se.slice,w={__e:function(n,t,r,o){for(var a,i,l;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(n)),l=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(n,o||{}),l=a.__d),l)return a.__E=a}catch(c){n=c}throw n}},qe=0,Vn=function(n){return n!=null&&n.constructor===void 0},ae.prototype.setState=function(n,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof n=="function"&&(n=n(Y({},r),this.props)),n&&Y(r,n),n!=null&&this.__v&&(t&&this._sb.push(t),Ne(this))},ae.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Ne(this))},ae.prototype.render=P,G=[],Ve=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oe=function(n,t){return n.__v.__b-t.__v.__b},ce.__r=0,ve=Math.random().toString(8),oe="__d"+ve,ne="__a"+ve,$e=/(PointerCapture)$|Capture$/i,ke=0,_e=He(!1),be=He(!0),On=0;var te,z,Te,Je,fe=0,an=[],E=w,Qe=E.__b,Ze=E.__r,en=E.diffed,nn=E.__c,tn=E.unmount,rn=E.__;function ze(n,t){E.__h&&E.__h(z,n,fe||t),fe=0;var r=z.__H||(z.__H={__:[],__h:[]});return n>=r.__.length&&r.__.push({}),r.__[n]}function y(n){return fe=1,Xn(sn,n)}function Xn(n,t,r){var o=ze(te++,2);if(o.t=n,!o.__c&&(o.__=[r?r(t):sn(void 0,t),function(c){var u=o.__N?o.__N[0]:o.__[0],d=o.t(u,c);u!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=z,!z.__f)){var a=function(c,u,d){if(!o.__c.__H)return!0;var p=o.__c.__H.__.filter(function(f){return f.__c});if(p.every(function(f){return!f.__N}))return!i||i.call(this,c,u,d);var s=o.__c.props!==c;return p.some(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(s=!0)}}),i&&i.call(this,c,u,d)||s};z.__f=!0;var i=z.shouldComponentUpdate,l=z.componentWillUpdate;z.componentWillUpdate=function(c,u,d){if(this.__e){var p=i;i=void 0,a(c,u,d),i=p}l&&l.call(this,c,u,d)},z.shouldComponentUpdate=a}return o.__N||o.__}function H(n,t){var r=ze(te++,3);!E.__s&&ln(r.__H,t)&&(r.__=n,r.u=t,z.__H.__h.push(r))}function me(n){return fe=5,Ee(function(){return{current:n}},[])}function Ee(n,t){var r=ze(te++,7);return ln(r.__H,t)&&(r.__=n(),r.__H=t,r.__h=n),r.__}function Jn(){for(var n;n=an.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(ue),t.__h.some(Me),t.__h=[]}catch(r){t.__h=[],E.__e(r,n.__v)}}}E.__b=function(n){z=null,Qe&&Qe(n)},E.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),rn&&rn(n,t)},E.__r=function(n){Ze&&Ze(n),te=0;var t=(z=n.__c).__H;t&&(Te===z?(t.__h=[],z.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(ue),t.__h.some(Me),t.__h=[],te=0)),Te=z},E.diffed=function(n){en&&en(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(an.push(t)!==1&&Je===E.requestAnimationFrame||((Je=E.requestAnimationFrame)||Qn)(Jn)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Te=z=null},E.__c=function(n,t){t.some(function(r){try{r.__h.some(ue),r.__h=r.__h.filter(function(o){return!o.__||Me(o)})}catch(o){t.some(function(a){a.__h&&(a.__h=[])}),t=[],E.__e(o,r.__v)}}),nn&&nn(n,t)},E.unmount=function(n){tn&&tn(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(function(o){try{ue(o)}catch(a){t=a}}),r.__H=void 0,t&&E.__e(t,r.__v))};var on=typeof requestAnimationFrame=="function";function Qn(n){var t,r=function(){clearTimeout(o),on&&cancelAnimationFrame(t),setTimeout(n)},o=setTimeout(r,35);on&&(t=requestAnimationFrame(r))}function ue(n){var t=z,r=n.__c;typeof r=="function"&&(n.__c=void 0,r()),z=t}function Me(n){var t=z;n.__c=n.__(),z=t}function ln(n,t){return!n||n.length!==t.length||t.some(function(r,o){return r!==n[o]})}function sn(n,t){return typeof t=="function"?t(n):t}var Zn="neocash-bnpl-liveness.iife.js",et="neocash-bnpl-liveness.iife.css",X=null;function cn(n){if(X)return X;if(typeof window<"u"&&window.__NeoCashLiveness)return X=Promise.resolve(window.__NeoCashLiveness),X;if(!n)return Promise.reject(new Error("Cannot locate the Amplify Liveness chunk. Pass init({ assetPrefix }) or include the script tag manually before opening the widget."));let t=n.replace(/\/+$/,""),r=`${t}/${et}`,o=`${t}/${Zn}`;return X=new Promise((a,i)=>{if(!document.querySelector(`link[href="${r}"]`)){let c=document.createElement("link");c.rel="stylesheet",c.href=r,document.head.appendChild(c)}let l=document.querySelector(`script[src="${o}"]`);if(l&&window.__NeoCashLiveness){a(window.__NeoCashLiveness);return}l||(l=document.createElement("script"),l.src=o,l.async=!0,document.head.appendChild(l)),l.addEventListener("load",()=>{window.__NeoCashLiveness?a(window.__NeoCashLiveness):i(new Error("Liveness chunk loaded but global was not set."))}),l.addEventListener("error",()=>i(new Error(`Failed to load ${o}`)))}),X.catch(()=>{X=null}),X}var nt=0,wt=Array.isArray;function e(n,t,r,o,a,i){t||(t={});var l,c,u=t;if("ref"in u)for(c in u={},t)c=="ref"?l=t[c]:u[c]=t[c];var d={type:n,props:u,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--nt,__i:-1,__u:0,__source:a,__self:i};if(typeof n=="function"&&(l=n.defaultProps))for(c in l)u[c]===void 0&&(u[c]=l[c]);return w.vnode&&w.vnode(d),d}var tt={"arrow-left":'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',"arrow-right":'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',"x-circle":'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',check:'<path d="M20 6 9 17l-5-5"/>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/>',"alert-circle":'<circle cx="12" cy="12" r="10"/><path d="M12 8v4"/><path d="M12 16h.01"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',shield:'<path d="M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3z"/>',"shield-check":'<path d="M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3z"/><path d="m9 12 2 2 4-4"/>',"shield-x":'<path d="M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3z"/><path d="m14.5 9.5-5 5"/><path d="m9.5 9.5 5 5"/>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="m16 11 2 2 4-4"/>',"user-x":'<path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"/><circle cx="11" cy="13" r="3"/>',briefcase:'<rect width="20" height="14" x="2" y="7" rx="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>',"building-2":'<path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z"/><path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2"/><path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2"/><path d="M10 6h4"/><path d="M10 10h4"/><path d="M10 14h4"/><path d="M10 18h4"/>',landmark:'<line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/>',mail:'<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-10 5L2 7"/>',smartphone:'<rect width="14" height="20" x="5" y="2" rx="2"/><path d="M12 18h.01"/>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',camera:'<path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"/><circle cx="12" cy="13" r="3"/>',"camera-off":'<line x1="2" x2="22" y1="2" y2="22"/><path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h13"/><path d="M9.5 4h5L17 7h3a2 2 0 0 1 2 2v9"/>',"map-pin":'<path d="M20 10c0 7-8 13-8 13s-8-6-8-13a8 8 0 0 1 16 0z"/><circle cx="12" cy="10" r="3"/>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"/>',house:'<path d="M3 9.5 12 3l9 6.5V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M9 22V12h6v10"/>',pencil:'<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"/>',sparkles:'<path d="M12 3l1.9 4.6L18 9l-4.1 1.4L12 15l-1.9-4.6L6 9l4.1-1.4z"/><path d="M19 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1z"/><path d="M5 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1z"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',"eye-off":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',clock:'<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>',hourglass:'<path d="M5 22h14"/><path d="M5 2h14"/><path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"/><path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"/>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>',send:'<path d="m22 2-7 20-4-9-9-4z"/><path d="M22 2 11 13"/>',tv:'<rect width="20" height="15" x="2" y="7" rx="2"/><polyline points="17 2 12 7 7 2"/>',speaker:'<rect width="16" height="20" x="4" y="2" rx="2"/><circle cx="12" cy="14" r="4"/><line x1="12" x2="12.01" y1="6" y2="6"/>',"trending-up":'<polyline points="22 7 13.5 15.5 8.5 10.5 2 17"/><polyline points="16 7 22 7 22 13"/>',"trending-down":'<polyline points="22 17 13.5 8.5 8.5 13.5 2 7"/><polyline points="16 17 22 17 22 11"/>',"refresh-cw":'<polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/>',"wifi-off":'<line x1="2" x2="22" y1="2" y2="22"/><path d="M8.5 16.5a5 5 0 0 1 7 0"/><path d="M2 8.82a15 15 0 0 1 4.17-2.65"/><path d="M10.66 5c4.01-.36 8.14.9 11.34 3.76"/><path d="M16.85 11.25a10 10 0 0 1 2.22 1.68"/><path d="M5 13a10 10 0 0 1 5.24-2.76"/><line x1="12" x2="12.01" y1="20" y2="20"/>',"life-buoy":'<circle cx="12" cy="12" r="10"/><path d="m4.93 4.93 4.24 4.24"/><path d="m14.83 9.17 4.24-4.24"/><path d="m14.83 14.83 4.24 4.24"/><path d="m9.17 14.83-4.24 4.24"/><circle cx="12" cy="12" r="4"/>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>'};function rt(n,t=16,r="currentColor"){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="${r}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${tt[n]}</svg>`}function b({name:n,size:t=16,color:r="currentColor",style:o}){return e("span",{"aria-hidden":"true",style:{display:"inline-flex",flex:"none",width:t,height:t,color:r,...o},dangerouslySetInnerHTML:{__html:rt(n,t,"currentColor")}})}var dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAABgCAYAAABLwH3pAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAJAAAAABAAAAkAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAwKADAAQAAAABAAAAYAAAAAAvJEfJAAAACXBIWXMAABYlAAAWJQFJUiTwAAACzWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgIC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tbaec4h6ZTfnM0bNfvR2AagLfq3olqAtufMzaJg2o03e6uCaXvO3CwKpt14s7cqmLbnzM2iYNqNN3urgum1nGXu1TYoEm9AZf6YqEGz9mHnM71TetCAM99w1gYpz9Xmy1kef8s6DaDzm22tZgF6s/gvmE4yHSU/NLt3ePq3nmkHBA4mzWjbnDp70J2Zeq16aw/ayn1nlOs79RFv2/uaE6icvMjcXeMK/s0n8qmZUis4kt+DJOsi05KVeDKMcW7Li6liRV4ddO88hOVB9QtnVC+h4HRRKirB2WG9KEriRmp1onApgjnfg8ucS58jzn6m+Yu5YyjhRhAHtWOkCQ/FbcGAEwP/A5DnxrBPex+VAAAAAElFTkSuQmCC";function I(n){return"\u20A6"+(n/100).toLocaleString("en-NG",{minimumFractionDigits:0,maximumFractionDigits:0})}function fn({size:n=28}){return e("span",{style:{width:n,height:n,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none"},children:e("svg",{width:n,height:n,viewBox:"0 0 32 32",fill:"none",children:[e("rect",{x:"2",y:"4",width:"6",height:"22",rx:"3",fill:"var(--nc-primary)"}),e("rect",{x:"10",y:"4",width:"6",height:"22",rx:"3",fill:"var(--nc-primary)"}),e("rect",{x:"20",y:"4",width:"6",height:"14",rx:"3",fill:"var(--nc-primary)"}),e("rect",{x:"20",y:"22",width:"6",height:"6",rx:"3",fill:"var(--nc-primary)"})]})})}function mn({height:n=22}){return e("img",{src:dn,alt:"NeoCash",style:{height:n,width:"auto",display:"block",flex:"none"}})}function at({size:n=28}){return e("img",{src:pn,alt:"NeoCash",style:{height:n,width:"auto",display:"block",flex:"none"}})}function K({size:n=18,color:t="currentColor"}){return e("span",{class:"nc-spinner",style:{width:n,height:n,color:t}})}function R({variant:n="primary",size:t="lg",icon:r,iconRight:o,children:a,onClick:i,disabled:l,loading:c,style:u={},type:d="button"}){let p={primary:{bg:"var(--nc-ink)",fg:"#fff",border:"transparent"},violet:{bg:"var(--nc-primary-strong)",fg:"#fff",border:"transparent"},yellow:{bg:"var(--nc-yellow)",fg:"var(--nc-ink-deep)",border:"transparent"},outline:{bg:"#fff",fg:"var(--nc-ink)",border:"var(--nc-border)"},ghost:{bg:"transparent",fg:"var(--nc-ink)",border:"transparent"},subtle:{bg:"var(--nc-primary-wash)",fg:"var(--nc-primary-strong)",border:"transparent"},danger:{bg:"var(--nc-danger-2)",fg:"#fff",border:"transparent"}},s={sm:{h:32,px:12,fs:13,r:8},md:{h:40,px:16,fs:14,r:10},lg:{h:48,px:20,fs:15,r:12}},f=p[n],m=s[t],[v,x]=y(!1);return e("button",{type:d,onClick:l||c?void 0:i,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),style:{height:m.h,padding:`0 ${m.px}px`,background:f.bg,color:f.fg,border:`1px solid ${f.border}`,borderRadius:m.r,fontWeight:600,fontSize:m.fs,lineHeight:1,cursor:l||c?"not-allowed":"pointer",opacity:l?.5:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,boxShadow:n==="outline"?"var(--shadow-xs)":"none",transition:"filter .15s var(--ease)",filter:v&&!l&&!c?"brightness(.94)":"none",width:"100%",...u},children:[c&&e(K,{size:16,color:f.fg}),!c&&r&&e(b,{name:r,size:16}),a,!c&&o&&e(b,{name:o,size:16})]})}function $({label:n,hint:t,error:r,children:o,optional:a,right:i}){return e("label",{style:{display:"flex",flexDirection:"column",gap:6},children:[n&&e("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:13,color:"var(--nc-ink)"},children:[e("span",{children:[n,a&&e("span",{style:{color:"var(--nc-muted)",fontWeight:400},children:" (optional)"})]}),i]}),o,t&&!r&&e("span",{style:{fontSize:12,color:"var(--nc-muted)"},children:t}),r&&e("span",{style:{fontSize:12,color:"var(--nc-danger)"},children:r})]})}function j({icon:n,prefix:t,value:r,onChange:o,placeholder:a,type:i="text",inputMode:l,error:c,autoFocus:u,maxLength:d}){let[p,s]=y(!1);return e("div",{style:{display:"flex",alignItems:"center",gap:8,height:48,padding:"0 14px",borderRadius:12,background:"#fff",border:`1px solid ${c?"var(--nc-danger)":p?"var(--nc-primary)":"var(--nc-border)"}`,boxShadow:p?"0 0 0 3px var(--nc-primary-wash)":"var(--shadow-xs)",transition:"all .15s var(--ease)"},children:[n&&e(b,{name:n,size:16,color:"var(--nc-muted)"}),t&&e("span",{style:{color:"var(--nc-muted)",fontSize:15},children:t}),e("input",{type:i,inputMode:l,value:r??"",onInput:f=>o?.(f.currentTarget.value),placeholder:a,autoFocus:u,maxLength:d,onFocus:()=>s(!0),onBlur:()=>s(!1),style:{flex:1,border:"none",outline:"none",background:"transparent",fontSize:15,color:"var(--nc-ink)",minWidth:0,padding:0}})]})}function yn({value:n,onChange:t,options:r,placeholder:o}){let[a,i]=y(!1);return e("div",{style:{position:"relative",height:48,borderRadius:12,border:`1px solid ${a?"var(--nc-primary)":"var(--nc-border)"}`,boxShadow:a?"0 0 0 3px var(--nc-primary-wash)":"var(--shadow-xs)",background:"#fff",display:"flex",alignItems:"center"},children:[e("select",{value:n??"",onChange:l=>t?.(l.currentTarget.value),onFocus:()=>i(!0),onBlur:()=>i(!1),style:{flex:1,height:"100%",padding:"0 14px",appearance:"none",WebkitAppearance:"none",border:"none",outline:"none",background:"transparent",fontSize:15,color:n?"var(--nc-ink)":"var(--nc-muted)",cursor:"pointer"},children:[o&&e("option",{value:"",children:o}),r.map(l=>e("option",{value:typeof l=="string"?l:l.value,children:typeof l=="string"?l:l.label},typeof l=="string"?l:l.value))]}),e("span",{style:{position:"absolute",right:14,pointerEvents:"none",display:"inline-flex"},children:e(b,{name:"chevron-down",size:16,color:"var(--nc-muted)"})})]})}function Ie({min:n,max:t,step:r=1,value:o,onChange:a}){let i=(o-n)/(t-n)*100;return e("input",{type:"range",class:"nc-range",min:n,max:t,step:r,value:o,onInput:l=>a?.(Number(l.currentTarget.value)),style:{"--p":`${i}%`}})}function ye({children:n,color:t="var(--nc-primary-wash)",fg:r="var(--nc-primary-strong)",icon:o,style:a={}}){return e("span",{style:{display:"inline-flex",alignItems:"center",gap:6,padding:"4px 10px",borderRadius:9999,background:t,color:r,fontWeight:500,fontSize:12,lineHeight:1,...a},children:[o&&e(b,{name:o,size:12}),n]})}function L({label:n,value:t,mono:r,strong:o,accent:a}){return e("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:12},children:[e("span",{style:{fontSize:14,color:"var(--nc-muted)"},children:n}),e("span",{style:{fontFamily:r?"var(--font-mono)":"inherit",fontSize:o?16:14,fontWeight:o?600:500,color:a||"var(--nc-ink)",textAlign:"right",fontVariantNumeric:"tabular-nums"},children:t})]})}function F({step:n,total:t,onClose:r,merchant:o,canBack:a,onBack:i,hideStep:l}){return e("div",{style:{flex:"none",padding:"16px 20px",borderBottom:"1px solid var(--nc-border)",display:"flex",alignItems:"center",gap:12,background:"#fff"},children:[a?e("button",{onClick:i,"aria-label":"Back",style:un(),children:e(b,{name:"arrow-left",size:16,color:"var(--nc-ink)"})}):e(at,{size:28}),e("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[e("span",{style:{fontSize:11,color:"var(--nc-muted)",letterSpacing:.4,textTransform:"uppercase"},children:"NeoCash \xB7 Pay Small Small"}),e("span",{style:{fontSize:13,fontWeight:500,color:"var(--nc-ink)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o?`for ${o}`:"Secure checkout"})]}),!l&&n!=null&&e("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--nc-muted)",padding:"4px 8px",borderRadius:6,background:"var(--nc-surface)",flex:"none"},children:[n,"/",t]}),e("button",{onClick:r,"aria-label":"Close",style:un(),children:e(b,{name:"x",size:16,color:"var(--nc-ink)"})})]})}function un(){return{width:32,height:32,borderRadius:8,border:"1px solid var(--nc-border)",background:"#fff",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",padding:0}}function q({step:n,total:t}){let r=n/t*100;return e("div",{style:{height:3,background:"var(--nc-border)",flex:"none"},children:e("div",{style:{height:"100%",width:`${r}%`,background:"var(--nc-primary)",transition:"width .35s var(--ease)"}})})}function B({children:n,secure:t=!0}){return e("div",{style:{flex:"none",padding:"14px 20px 18px",borderTop:"1px solid var(--nc-border)",display:"flex",flexDirection:"column",gap:10,background:"#fff"},children:[n,t&&e("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:6},children:[e(b,{name:"shield-check",size:12,color:"var(--nc-muted)"}),e("span",{style:{fontSize:11,color:"var(--nc-muted)"},children:"Secured by NeoCash \xB7 NDPR compliant"})]})]})}function D({children:n,padded:t=!0,style:r={},bodyRef:o}){return e("div",{ref:o,class:"nc-bnpl-scroll",style:{flex:1,minHeight:0,padding:t?"20px":0,display:"flex",flexDirection:"column",gap:16,...r},children:n})}function hn({items:n,current:t,results:r}){return e("div",{style:{display:"flex",flexDirection:"column",gap:10},children:n.map((o,a)=>{let i=r[a]==="pass",l=r[a]==="fail",c=a===t;return e("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 12px",borderRadius:12,border:`1px solid ${c?"var(--nc-primary)":"var(--nc-border)"}`,background:c?"var(--nc-primary-wash)":"#fff",opacity:a>t&&r[a]==null?.5:1,transition:"all .2s var(--ease)"},children:[e("span",{style:{width:22,height:22,borderRadius:9999,flex:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",background:i?"var(--nc-success)":l?"var(--nc-danger)":c?"var(--nc-primary)":"var(--nc-border)",color:"#fff"},children:[i&&e(b,{name:"check",size:12,color:"#fff"}),l&&e(b,{name:"x",size:12,color:"#fff"}),!i&&!l&&e("span",{style:{fontSize:11,fontWeight:600,color:c?"#fff":"var(--nc-muted)"},children:a+1})]}),e("span",{style:{fontSize:14,color:"var(--nc-ink)"},children:o})]},a)})})}function U({tone:n="info",children:t,icon:r}){let o=n==="danger"?{bg:"#FDE5E5",fg:"var(--nc-danger)"}:n==="success"?{bg:"#E6F5EC",fg:"var(--nc-success)"}:{bg:"var(--nc-primary-wash)",fg:"var(--nc-primary-strong)"};return e("div",{style:{padding:"10px 12px",borderRadius:10,background:o.bg,color:o.fg,fontSize:13,display:"flex",gap:8,alignItems:"flex-start"},children:[r&&e(b,{name:r,size:14,color:o.fg,style:{marginTop:2}}),e("span",{style:{flex:1},children:t})]})}var M=8;function gn({ctx:n,compact:t}){let r=n.cart.items,o=!t,[a,i]=y(r.length<=3),l=!t&&a;return e("div",{style:{padding:t?12:16,borderRadius:16,border:"1px solid var(--nc-border)",background:"var(--nc-surface)",display:"flex",flexDirection:"column",gap:10},children:[e("div",{onClick:o?()=>i(c=>!c):void 0,role:o?"button":void 0,"aria-expanded":o?a:void 0,style:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:o?"pointer":"default"},children:[e("span",{style:{fontSize:12,color:"var(--nc-muted)",letterSpacing:.4,textTransform:"uppercase"},children:["Your cart at ",n.merchant.name]}),e("span",{style:{display:"flex",alignItems:"center",gap:6},children:[e("span",{style:{fontSize:12,color:"var(--nc-muted)"},children:[r.length," item",r.length===1?"":"s"]}),o&&e(b,{name:"chevron-down",size:14,color:"var(--nc-muted)",style:{transform:a?"rotate(180deg)":"none",transition:"transform .15s"}})]})]}),l&&r.map((c,u)=>e("div",{style:{display:"flex",alignItems:"center",gap:12},children:[e("span",{style:{width:36,height:36,borderRadius:8,background:"#fff",border:"1px solid var(--nc-border)",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",backgroundImage:c.imageUrl?`url(${c.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"},children:!c.imageUrl&&e(b,{name:"tv",size:16,color:"var(--nc-muted)"})}),e("div",{style:{flex:1,minWidth:0},children:[e("div",{style:{fontSize:14,fontWeight:500,color:"var(--nc-ink)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.name}),e("div",{style:{fontSize:12,color:"var(--nc-muted)"},children:["Qty ",c.qty]})]}),e("div",{style:{fontSize:14,fontVariantNumeric:"tabular-nums"},children:I(c.price)})]},u)),e("div",{style:{height:1,background:"var(--nc-border)"}}),e("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e("span",{style:{fontSize:14,color:"var(--nc-ink)",fontWeight:500},children:"Cart total"}),e("span",{style:{fontFamily:"var(--font-display)",fontWeight:600,fontSize:22,color:"var(--nc-ink)",letterSpacing:"-0.02em",fontVariantNumeric:"tabular-nums"},children:I(n.cart.total)})]})]})}function Q(n){if(n<30)return`${n} day${n===1?"":"s"}`;let t=Math.round(n/30);return`${t} month${t===1?"":"s"}`}function Cn({ctx:n,dispatch:t}){let r=n.config,o=n.cart.total,a=Math.round(o*r.min_pay_now_rate),i=Math.min(r.max_amount_kobo,o-a),l=r.min_amount_kobo,c=i>=l,u=r.tenure_day_options,d=T=>Math.min(i,Math.max(l,T)),[p,s]=y(c?d(n.financed??i):0),[f,m]=y(n.tenure??(u[Math.min(3,u.length-1)]||u[0]||30)),v=Math.max(0,u.indexOf(f)),x=me(null),[C,_]=y(!1);H(()=>{let T=x.current;if(!T)return;let ee=()=>_(T.scrollHeight-T.scrollTop-T.clientHeight<=4);ee(),T.addEventListener("scroll",ee,{passive:!0});let ge;return typeof ResizeObserver<"u"&&T.firstElementChild&&(ge=new ResizeObserver(ee),ge.observe(T.firstElementChild)),()=>{T.removeEventListener("scroll",ee),ge?.disconnect()}},[]);let k=f/30,S=Math.max(1,Math.round(f/30)),g;if(r.interest_type==="reducing_balance"&&r.monthly_interest_rate>0){let T=r.monthly_interest_rate;g=p*T/(1-Math.pow(1+T,-S))*S-p}else g=p*r.monthly_interest_rate*k;let h=p+g,A=h/S,V=o-p,Z=Q(f),O=S===1?`Due in ${Q(f)}`:`${S}\xD7 monthly`;return c?e(P,{children:[e(F,{step:1,total:M,merchant:n.merchant.name,onClose:()=>t.close()}),e(q,{step:1,total:M}),e(D,{bodyRef:x,children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16},children:[e("div",{children:[e("h2",{style:N,children:"Pay Small Small."}),e("p",{style:W,children:"Split your purchase. Pay a bit today, the rest later."})]}),e(gn,{ctx:n}),e("div",{style:{padding:16,borderRadius:16,background:"var(--nc-primary-wash)",border:"1px solid var(--nc-border)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e("span",{style:{fontSize:13,fontWeight:600,color:"var(--nc-ink)"},children:"Pay now"}),e("span",{style:{fontSize:12,color:"var(--nc-muted)"},children:"Due today at checkout"})]}),e("span",{style:{fontFamily:"var(--font-display)",fontWeight:700,fontSize:24,color:"var(--nc-primary-strong)",letterSpacing:"-0.02em",fontVariantNumeric:"tabular-nums"},children:I(V)})]}),e(xn,{children:[e(kn,{label:"Amount to Pay Later",value:I(p)}),e(Ie,{min:l,max:i,step:5e5,value:p,onChange:T=>s(d(T))}),e(Sn,{left:I(l),right:I(i)})]}),e(xn,{children:[e(kn,{label:"Repay over",value:Z}),e(Ie,{min:0,max:u.length-1,step:1,value:v,onChange:T=>m(u[T])}),e(Sn,{left:Q(u[0]),right:Q(u[u.length-1])})]}),e("div",{style:{padding:16,borderRadius:16,background:"var(--nc-ink)",color:"#fff",display:"flex",flexDirection:"column",gap:12,position:"relative",overflow:"hidden"},children:[e("div",{style:{position:"absolute",right:-40,top:-40,width:160,height:160,borderRadius:9999,background:"radial-gradient(circle, rgba(145,124,255,.35), transparent 70%)",pointerEvents:"none"}}),e("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"baseline"},children:[e("span",{style:{fontSize:12,color:"rgba(255,255,255,.7)",letterSpacing:.4,textTransform:"uppercase"},children:O}),e(ye,{color:"var(--nc-yellow)",fg:"var(--nc-ink-deep)",icon:"zap",children:[Math.round(r.monthly_interest_rate*100),"%/mo"]})]}),e("div",{style:{position:"relative"},children:[e("div",{style:{fontSize:13,color:"rgba(255,255,255,.7)"},children:S===1?`Payment due in ${Q(f)}`:"Monthly installment"}),e("div",{style:{fontFamily:"var(--font-display)",fontWeight:700,fontSize:44,lineHeight:1,letterSpacing:"-0.025em",color:"#fff",fontVariantNumeric:"tabular-nums"},children:I(A)})]}),e("div",{style:{height:1,background:"rgba(255,255,255,.12)"}}),e("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:8},children:[e(L,{label:"Cart total",value:I(o),accent:"rgba(255,255,255,.85)"}),e(L,{label:"Pay today",value:I(V),accent:"rgba(255,255,255,.85)"}),e(L,{label:"Pay Small Small",value:I(p),accent:"rgba(255,255,255,.85)"}),e(L,{label:"Financing charges",value:I(g),accent:"rgba(255,255,255,.85)"}),e(L,{label:"Total to repay",value:I(h),strong:!0,accent:"#fff"})]})]}),e("p",{style:{margin:0,fontSize:12,color:"var(--nc-muted)",lineHeight:1.5},children:"Final approval and amount subject to eligibility checks. Charges apply to financed amount only."})]})}),e(B,{children:[!C&&e("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:6,fontSize:12,color:"var(--nc-muted)"},children:[e(b,{name:"chevron-down",size:12,color:"var(--nc-muted)"}),"Scroll down to review your full plan"]}),e(R,{iconRight:"arrow-right",disabled:!C,onClick:()=>{t.update({financed:p,tenure:f,perInstall:A,totalRepay:h,charges:g,payToday:V}),t.go("eligibility")},children:"Continue"})]})]}):e(P,{children:[e(F,{step:1,total:M,merchant:n.merchant.name,onClose:()=>t.close()}),e(q,{step:1,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16},children:[e("div",{children:[e("h2",{style:N,children:"Pay Small Small."}),e("p",{style:W,children:"Split your purchase. Pay a bit today, the rest later."})]}),e(gn,{ctx:n}),e(U,{tone:"info",icon:"info",children:["This cart isn't eligible for Pay Small Small. Financeable orders run from ",I(l)," to ",I(r.max_amount_kobo)," ","after the ",Math.round(r.min_pay_now_rate*100),"% pay-today portion."]})]})}),e(B,{children:e(R,{variant:"outline",onClick:()=>t.close(),children:"Close"})})]})}function wn({ctx:n,dispatch:t}){let[r,o]=y(0),[a,i]=y([null,null,null]),[l,c]=y(""),u=["Are you currently employed?","Do you have a stable salary account?","Which bank is your salary paid into?"],d=["exit-not-employed","exit-no-salary-acct","exit-bank-unsupported"],p=(f,m)=>{let v=[...a];if(v[f]=m?"pass":"fail",i(v),!m){setTimeout(()=>t.go(d[f]),350);return}f<2?setTimeout(()=>o(f+1),250):setTimeout(()=>t.go("phone"),350)},s=[...n.banks.map(f=>f.name),"Not listed"];return e(P,{children:[e(F,{step:2,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>t.go("plan"),onClose:()=>t.close()}),e(q,{step:2,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16},children:[e("div",{children:[e("h2",{style:N,children:"A few quick questions"}),e("p",{style:W,children:"We need to know if BNPL is right for you before we run any checks."})]}),e(hn,{items:u,current:r,results:a}),e("div",{style:{padding:16,borderRadius:16,background:"var(--nc-primary-wash)",display:"flex",flexDirection:"column",gap:10},children:[e("span",{style:{fontSize:13,fontWeight:600,color:"var(--nc-ink)"},children:u[r]}),r<2?e("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[e(R,{variant:"violet",onClick:()=>p(r,!0),children:"Yes"}),e(R,{variant:"outline",onClick:()=>p(r,!1),children:"No"})]}):e("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[e(yn,{value:l,onChange:c,placeholder:"Select your bank",options:s}),e(R,{variant:"violet",disabled:!l,onClick:()=>p(2,l!=="Not listed"),children:"Continue"})]})]}),e("div",{style:{padding:14,borderRadius:12,border:"1px dashed var(--nc-border)",background:"#fff",display:"flex",gap:10},children:[e(b,{name:"info",size:16,color:"var(--nc-muted)",style:{marginTop:2}}),e("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e("span",{style:{fontSize:12.5,color:"var(--nc-ink)",lineHeight:1.5},children:"NeoCash BNPL is only available to salary earners who have been with their current employer for at least 6 months."}),e("span",{style:{fontSize:12,color:"var(--nc-muted)"},children:"Final offer is determined based on your income."})]})]})]})}),e(B,{})]})}function Pn({ctx:n,dispatch:t,api:r}){let[o,a]=y(n.phone?.replace(/^\+234\s?/,"")||n.partnerPrefill.phone?.replace(/^\+234\s?/,"")||""),[i,l]=y(!1),[c,u]=y(null),d=/^\d{10,11}$/.test(o.replace(/\s/g,"")),p=async()=>{if(d){l(!0),u(null);try{let s="+234"+o.replace(/\s/g,"").replace(/^0/,"");await r.sendOtp({phone:s}),t.update({phone:s}),t.go("otp")}catch(s){u(s.message||"Could not send code. Try again.")}finally{l(!1)}}};return e(P,{children:[e(F,{step:3,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>t.go("eligibility"),onClose:()=>t.close()}),e(q,{step:3,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18},children:[e(Nn,{icon:"smartphone"}),e("div",{children:[e("h2",{style:N,children:"What's your phone number?"}),e("p",{style:W,children:"We'll send you a 6-digit code to verify it's really you."})]}),e($,{label:"Phone number",children:e(j,{prefix:"\u{1F1F3}\u{1F1EC} +234",type:"tel",inputMode:"numeric",placeholder:"803 555 0142",value:o,onChange:a,autoFocus:!0,maxLength:13})}),c&&e(U,{tone:"danger",icon:"alert-circle",children:c}),e("p",{style:{margin:0,fontSize:12,color:"var(--nc-muted)"},children:"By continuing, you agree to receive SMS from NeoCash. Standard rates may apply."})]})}),e(B,{children:e(R,{iconRight:"arrow-right",disabled:!d,loading:i,onClick:p,children:"Send code"})})]})}function Rn({ctx:n,dispatch:t,api:r}){let[o,a]=y(["","","","","",""]),[i,l]=y(null),[c,u]=y(!1),[d,p]=y(30),[s,f]=y(!1),m=me([]);H(()=>{if(d<=0)return;let g=setTimeout(()=>p(d-1),1e3);return()=>clearTimeout(g)},[d]);let v=(g,h)=>{if(!/^\d?$/.test(h))return;let A=[...o];A[g]=h,a(A),l(null),h&&g<5&&m.current[g+1]?.focus()},x=(g,h)=>{h.key==="Backspace"&&!o[g]&&g>0&&m.current[g-1]?.focus()},C=g=>{let h=(g.clipboardData?.getData("text")||"").replace(/\D/g,"").slice(0,6);h.length===6&&(g.preventDefault(),a(h.split("")),m.current[5]?.focus())},_=o.every(g=>g.length===1),k=async()=>{u(!0);try{let g=await r.verifyOtp({code:o.join("")});if(g.verified)t.go("liveness");else{let h=g.attempts_left??0;l(`That code didn't match. ${h} ${h===1?"try":"tries"} left.`),a(["","","","","",""]),m.current[0]?.focus(),h<=0&&t.go("exit-otp-locked")}}catch(g){l(g.message||"Could not verify the code. Try again.")}finally{u(!1)}};H(()=>{_&&!c&&k()},[_]);let S=async()=>{if(!(d>0||!n.phone)){f(!0);try{await r.sendOtp({phone:n.phone}),p(30)}catch(g){l(g.message||"Could not resend.")}finally{f(!1)}}};return e(P,{children:[e(F,{step:3,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>t.go("phone"),onClose:()=>t.close()}),e(q,{step:3,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18},children:[e(Nn,{icon:"message-square"}),e("div",{children:[e("h2",{style:N,children:"Check your messages"}),e("p",{style:W,children:["We sent a 6-digit code to ",e("strong",{style:{color:"var(--nc-ink)"},children:n.phone||"your phone"}),"."]})]}),e("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:8},onPaste:C,children:o.map((g,h)=>e("input",{ref:A=>{m.current[h]=A},inputMode:"numeric",maxLength:1,value:g,onInput:A=>v(h,A.currentTarget.value),onKeyDown:A=>x(h,A),disabled:c,style:{height:56,width:"100%",textAlign:"center",fontFamily:"var(--font-mono)",fontWeight:600,fontSize:22,color:"var(--nc-ink)",border:`1px solid ${i?"var(--nc-danger)":g?"var(--nc-primary)":"var(--nc-border)"}`,borderRadius:12,background:"#fff",outline:"none",boxShadow:g?"0 0 0 3px var(--nc-primary-wash)":"var(--shadow-xs)",transition:"all .15s var(--ease)"}},h))}),i&&e(U,{tone:"danger",icon:"alert-circle",children:i}),c&&e("div",{style:{display:"flex",alignItems:"center",gap:10,color:"var(--nc-muted)",fontSize:13},children:[e(K,{size:14,color:"var(--nc-primary)"})," Verifying\u2026"]}),e("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:13},children:[e("button",{onClick:()=>t.go("phone"),style:{background:"transparent",border:"none",color:"var(--nc-ink)",cursor:"pointer",padding:0,textDecoration:"underline"},children:"Wrong number?"}),e("button",{disabled:d>0||s,onClick:S,style:{background:"transparent",border:"none",color:d>0?"var(--nc-muted)":"var(--nc-primary-strong)",cursor:d>0?"default":"pointer",padding:0,fontWeight:500},children:d>0?`Resend in ${d}s`:s?"Resending\u2026":"Resend code"})]})]})}),e(B,{})]})}function Tn({ctx:n,dispatch:t,api:r,assetPrefix:o}){let[a,i]=y("starting"),[l,c]=y(null),[u,d]=y("us-east-1"),[p,s]=y(null),[f,m]=y(null),[v,x]=y(null),C=async()=>{i("starting"),x(null);try{let S=await r.startLiveness();c(S.rekognition_session_id),d(S.region),s(S.credentials??null),i("capturing")}catch(S){x(S.message||"Could not start liveness check."),i("failed")}};H(()=>{C()},[]);let _=async()=>{if(l){i("submitting");try{let S=await r.submitLivenessResult({rekognition_session_id:l});if(!S.passed){let g=S.attempts_left??0;m(g),g<=0?t.go("exit-liveness-failed"):(x("We couldn't verify it's you. Please try again."),i("failed"));return}t.update({customerStatus:S.customer_status}),t.go(S.customer_status==="returning"?"summary-r":"form-n")}catch(S){x(S.message||"Could not submit liveness result."),i("failed")}}},k=S=>{x(S.message||"Liveness check couldn't run on this device."),i("failed")};return e(P,{children:[e(F,{step:4,total:M,merchant:n.merchant.name,canBack:a==="failed",onBack:()=>t.go("otp"),onClose:()=>t.close()}),e(q,{step:4,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16,alignItems:"center"},children:[e("div",{style:{alignSelf:"stretch"},children:[e("h2",{style:N,children:"Quick selfie"}),e("p",{style:W,children:"We need to confirm it's really you. Make sure you're in a well-lit place."})]}),e(lt,{phase:a,sessionId:l,region:u,credentials:p,assetPrefix:o,onAnalysisComplete:_,onError:k,onCancel:()=>{x("Liveness check cancelled."),i("failed")}}),v&&e(U,{tone:"danger",icon:"alert-circle",children:[v,f!=null&&` (${f} ${f===1?"attempt":"attempts"} left)`]})]})}),e(B,{children:[a==="failed"&&e(R,{iconRight:"refresh-cw",variant:"violet",onClick:C,children:"Try again"}),a==="submitting"&&e(R,{variant:"outline",disabled:!0,children:[e(K,{size:14,color:"var(--nc-primary)"}),"Submitting\u2026"]})]})]})}function lt({phase:n,sessionId:t,region:r,credentials:o,assetPrefix:a,onAnalysisComplete:i,onError:l,onCancel:c}){let u=!!o,d=me(null);return H(()=>{if(u||n!=="capturing"||!t)return;let p=setTimeout(i,2200);return()=>clearTimeout(p)},[u,n,t]),H(()=>{if(!u||n!=="capturing"||!t||!o||!d.current)return;let p=null,s=!1;return cn(a).then(f=>{if(s||!d.current)return;p=f.mount({container:d.current,sessionId:t,region:r,credentials:o,onAnalysisComplete:i,onCancel:c,onError:l}).unmount}).catch(f=>{s||l(f instanceof Error?f:new Error(String(f)))}),()=>{if(s=!0,p)try{p()}catch{}}},[u,n,t,o,a]),u?e("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:e("div",{ref:d,class:"nc-bnpl-amplify-host",style:{width:"100%",maxWidth:480,minHeight:320,borderRadius:16,overflow:"hidden",border:"1px solid var(--nc-border)",background:"#000"}})}):e("div",{style:{width:"100%",aspectRatio:"1 / 1",maxWidth:280,borderRadius:24,position:"relative",background:"linear-gradient(180deg, var(--nc-primary-wash) 0%, #F7F8FA 100%)",overflow:"hidden",border:"1px solid var(--nc-border)",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:12},children:[e(K,{size:36,color:"var(--nc-primary)"}),e("span",{style:{fontSize:12,color:"var(--nc-muted)",textAlign:"center",padding:"0 24px"},children:n==="starting"?"Starting camera\u2026":n==="capturing"?"Hold still\u2026":"Verifying\u2026"})]})}function vn(n){return!!(n.employer?.trim()&&n.role?.trim()&&n.monthly_salary>0&&n.office_address?.trim()&&n.home_address?.trim())}function Mn({ctx:n,dispatch:t,api:r}){let[o,a]=y(null),[i,l]=y(null),[c,u]=y(!1),[d,p]=y(!1);H(()=>{r.getCustomer().then(f=>{a(f),vn(f)||u(!0)}).catch(f=>l(f.message||"Could not load profile."))},[r]);let s=async()=>{if(o){if(!vn(o)){u(!0);return}p(!0);try{if((await r.runCreditCheck()).status==="declined"){t.go("exit-credit-decline");return}await r.submitEmployment({employer:o.employer,role:o.role,monthly_salary:o.monthly_salary,office_address:o.office_address,home_address:o.home_address}),t.go("mono")}catch(f){t.fail(f)}}};return d?e(st,{ctx:n,title:"Running credit checks\u2026",subtitle:"Welcome back. Re-checking your eligibility for this purchase.",icon:"trending-up"}):c&&o?e(De,{ctx:n,dispatch:t,api:r,prefill:o,returning:!0}):e(P,{children:[e(F,{step:5,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>t.go("liveness"),onClose:()=>t.close()}),e(q,{step:5,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16},children:[i&&e(U,{tone:"danger",icon:"alert-circle",children:i}),!o&&!i&&e("div",{style:{display:"flex",alignItems:"center",gap:10,color:"var(--nc-muted)",fontSize:13},children:[e(K,{size:14,color:"var(--nc-primary)"})," Loading your profile\u2026"]}),o&&e(P,{children:[e(ye,{icon:"user-check",color:"#E6F5EC",fg:"var(--nc-success)",children:"Welcome back"}),e("div",{children:[e("h2",{style:N,children:["Hi ",o.first_name,", ready in a tap."]}),e("p",{style:W,children:"We have your details on file. Confirm everything still looks right."})]}),e("div",{style:{padding:16,borderRadius:16,border:"1px solid var(--nc-border)",background:"#fff",display:"flex",flexDirection:"column",gap:14},children:[e("div",{style:{display:"flex",alignItems:"center",gap:12},children:[e("span",{style:{width:44,height:44,borderRadius:9999,background:"var(--nc-primary)",color:"#fff",display:"inline-flex",alignItems:"center",justifyContent:"center",fontFamily:"var(--font-display)",fontWeight:600,fontSize:18},children:[o.first_name[0],o.last_name[0]]}),e("div",{style:{flex:1,minWidth:0},children:[e("div",{style:{fontSize:15,fontWeight:600},children:[o.first_name," ",o.last_name]}),e("div",{style:{fontSize:13,color:"var(--nc-muted)"},children:o.email})]})]}),e("div",{style:{height:1,background:"var(--nc-border)"}}),e("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[e(L,{label:"Phone",value:o.phone}),e(L,{label:"BVN",value:o.bvn_masked,mono:!0})]})]}),e("div",{style:{padding:16,borderRadius:16,border:"1px solid var(--nc-border)",background:"#fff",display:"flex",flexDirection:"column",gap:12},children:[e("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e("span",{style:{fontSize:12,color:"var(--nc-muted)",letterSpacing:.4,textTransform:"uppercase"},children:"Employment & address"}),e(ye,{color:"var(--nc-surface)",fg:"var(--nc-muted)",icon:"briefcase",children:"From last application"})]}),e("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[e(L,{label:"Employer",value:o.employer}),e(L,{label:"Role",value:o.role}),e(L,{label:"Monthly salary",value:I(o.monthly_salary)}),e(L,{label:"Office",value:o.office_address}),e(L,{label:"Home",value:o.home_address})]})]}),e("div",{style:{padding:14,borderRadius:14,background:"var(--nc-primary-wash)",display:"flex",flexDirection:"column",gap:10},children:[e("span",{style:{fontSize:14,fontWeight:600,color:"var(--nc-ink)"},children:"Is your employment information still current?"}),e("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[e(R,{variant:"violet",icon:"check",onClick:s,children:"Yes, all current"}),e(R,{variant:"outline",icon:"pencil",onClick:()=>u(!0),children:"Update"})]})]})]})]})}),e(B,{})]})}function zn({ctx:n,dispatch:t,api:r}){let o=n.partnerPrefill||{},[a,i]=y({firstName:o.firstName||"",lastName:o.lastName||"",email:o.email||"",bvn:o.bvn||""}),[l,c]=y(null),[u,d]=y(!1),p=m=>v=>{i({...a,[m]:v}),c(null)},s=a.firstName&&a.lastName&&/\S+@\S+/.test(a.email)&&/^\d{11}$/.test(a.bvn),f=async()=>{d(!0);try{let m=await r.submitIdentity({first_name:a.firstName,last_name:a.lastName,email:a.email,bvn:a.bvn});m.status==="cant_offer"?t.go("exit-bvn-cant-offer"):m.status==="cant_verify"?c(m.reasons?.[0]||"We could not verify the information you provided. Please double-check your BVN and details."):(t.update({pii:a}),t.go("face-match"))}catch(m){c(m.message||"Could not submit. Try again.")}finally{d(!1)}};return e(P,{children:[e(F,{step:5,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>t.go("liveness"),onClose:()=>t.close()}),e(q,{step:5,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:14},children:[e("div",{children:[e("h2",{style:N,children:"Tell us a bit about you"}),e("p",{style:W,children:"We use this to verify your identity with the National Identity Bureau."})]}),(o.firstName||o.email)&&e("div",{style:{padding:10,borderRadius:10,background:"var(--nc-primary-wash)",display:"flex",alignItems:"center",gap:10},children:[e(b,{name:"sparkles",size:14,color:"var(--nc-primary-strong)"}),e("span",{style:{fontSize:12.5,color:"var(--nc-ink)"},children:["Pre-filled from ",n.merchant.name,". Edit anything that's not right."]})]}),e("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[e($,{label:"First name",children:e(j,{value:a.firstName,onChange:p("firstName"),placeholder:"Adaeze"})}),e($,{label:"Last name",children:e(j,{value:a.lastName,onChange:p("lastName"),placeholder:"Okafor"})})]}),e($,{label:"Email",children:e(j,{type:"email",value:a.email,onChange:p("email"),placeholder:"you@example.com",icon:"mail"})}),e($,{label:"BVN",hint:"Your 11-digit Bank Verification Number.",right:e("span",{style:{fontSize:11,color:"var(--nc-muted)"},children:"Dial *565*0# to find yours"}),children:e(j,{value:a.bvn,onChange:m=>p("bvn")(m.replace(/[^\d]/g,"").slice(0,11)),placeholder:"22301234567",inputMode:"numeric",icon:"shield",error:l})}),l&&e(U,{tone:"danger",icon:"alert-circle",children:l}),e("div",{style:{padding:12,borderRadius:12,background:"var(--nc-surface)",display:"flex",gap:10},children:[e(b,{name:"lock",size:14,color:"var(--nc-muted)",style:{marginTop:2}}),e("span",{style:{fontSize:12,color:"var(--nc-muted)",lineHeight:1.5},children:"Your BVN is encrypted in transit and at rest. NeoCash never stores your bank PIN or password."})]})]})}),e(B,{children:e(R,{iconRight:"arrow-right",disabled:!s,loading:u,onClick:f,children:"Submit"})})]})}function En({ctx:n,dispatch:t,api:r}){return H(()=>{let o=!0,a=0;return(async()=>{for(;o&&a<30;){a++;try{let l=await r.getIdentityStatus();if(l.face_match==="pass"){t.go("credit-check");return}if(l.face_match==="fail"){t.go("exit-face-mismatch");return}}catch(l){t.fail(l);return}await new Promise(l=>setTimeout(l,1e3))}o&&t.go("exit-face-mismatch")})(),()=>{o=!1}},[r]),e(P,{children:[e(F,{hideStep:!0,merchant:n.merchant.name,onClose:()=>t.close()}),e(D,{children:e(Be,{title:"Verifying your identity",subtitle:"Comparing your selfie with your BVN photo. This usually takes a few seconds.",icon:"user-check"})}),e(B,{})]})}function In({ctx:n,dispatch:t,api:r}){return H(()=>{r.runCreditCheck().then(o=>{o.status==="declined"?t.go("exit-credit-decline"):t.go("good-credit")}).catch(o=>t.fail(o))},[r]),e(P,{children:[e(F,{hideStep:!0,merchant:n.merchant.name,onClose:()=>t.close()}),e(D,{children:e(Be,{title:"Running credit checks\u2026",subtitle:"We're checking your credit history. This is a soft search \u2014 it won't affect your score.",icon:"trending-up",steps:["Checking national credit bureau","Scoring repayment history","Sizing your offer"]})}),e(B,{})]})}function st({ctx:n,title:t,subtitle:r,icon:o}){return e(P,{children:[e(F,{hideStep:!0,merchant:n.merchant.name,onClose:()=>{}}),e(D,{children:e(Be,{title:t,subtitle:r,icon:o})}),e(B,{})]})}function Be({title:n,subtitle:t,icon:r,steps:o}){let[a,i]=y(0);return H(()=>{if(!o)return;let l=setInterval(()=>i(c=>Math.min(c+1,o.length-1)),700);return()=>clearInterval(l)},[o]),e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18,alignItems:"center",textAlign:"center",paddingTop:40},children:[e("div",{style:{width:96,height:96,borderRadius:9999,position:"relative",background:"var(--nc-primary-wash)",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[e("span",{style:{position:"absolute",inset:-6,borderRadius:9999,border:"3px solid transparent",borderTopColor:"var(--nc-primary)",animation:"nc-spin 1.2s linear infinite"}}),e(b,{name:r,size:36,color:"var(--nc-primary-strong)"})]}),e("div",{children:[e("h2",{style:{...N,fontSize:22},children:n}),e("p",{style:{...W,marginTop:8,maxWidth:320},children:t})]}),o&&e("div",{style:{alignSelf:"stretch",display:"flex",flexDirection:"column",gap:8,marginTop:8},children:o.map((l,c)=>e("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 12px",borderRadius:10,background:c===a?"var(--nc-primary-wash)":"var(--nc-surface)",opacity:c>a?.55:1,transition:"all .25s"},children:[e("span",{style:{width:18,height:18,borderRadius:9999,flex:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",background:c<a?"var(--nc-success)":c===a?"var(--nc-primary)":"var(--nc-border)",color:"#fff"},children:c<a?e(b,{name:"check",size:11,color:"#fff"}):c===a?e("span",{style:{animation:"nc-pulse 1s infinite",fontSize:9,fontWeight:700},children:"\u2022"}):null}),e("span",{style:{fontSize:13.5,textAlign:"left",color:"var(--nc-ink)"},children:l})]},c))})]})}function Fn({ctx:n,dispatch:t}){return e(P,{children:[e(F,{step:5,total:M,merchant:n.merchant.name,onClose:()=>t.close()}),e(q,{step:5,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18,alignItems:"center",textAlign:"center",paddingTop:24},children:[e("div",{style:{width:96,height:96,borderRadius:9999,background:"linear-gradient(135deg, var(--nc-yellow) 0%, #FFB800 100%)",display:"inline-flex",alignItems:"center",justifyContent:"center",boxShadow:"0 12px 32px rgba(255,218,44,.35)"},children:e(b,{name:"sparkles",size:40,color:"var(--nc-ink-deep)"})}),e("div",{children:[e("h2",{style:{...N,fontSize:26},children:"You have a good credit history."}),e("p",{style:{...W,marginTop:10,maxWidth:320},children:"We just need to confirm your source of repayment to unlock your offer."})]}),e("div",{style:{alignSelf:"stretch",padding:14,borderRadius:14,background:"var(--nc-surface)",display:"flex",flexDirection:"column",gap:10,textAlign:"left"},children:[e("span",{style:{fontSize:12,color:"var(--nc-muted)",letterSpacing:.4,textTransform:"uppercase"},children:"What's next"}),e("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e(b,{name:"briefcase",size:16,color:"var(--nc-primary-strong)"}),e("span",{style:{fontSize:14},children:"Confirm your employment & address"})]}),e("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e(b,{name:"landmark",size:16,color:"var(--nc-primary-strong)"}),e("span",{style:{fontSize:14},children:"Connect your salary account"})]})]})]})}),e(B,{children:e(R,{iconRight:"arrow-right",onClick:()=>t.go("employment"),children:"Confirm income source"})})]})}function De({ctx:n,dispatch:t,api:r,prefill:o,returning:a}){let[i,l]=y({employer:o?.employer||"",role:o?.role||"",salary:o?.monthly_salary&&o.monthly_salary>0?String(Math.round(o.monthly_salary/100)):"",office:o?.office_address||"",home:o?.home_address||""}),[c,u]=y(!1),[d,p]=y(null),[s,f]=y({}),[m,v]=y(null),[x,C]=y("idle"),_=h=>A=>{l(V=>({...V,[h]:A})),s[h]&&f(V=>({...V,[h]:void 0}))},k=()=>{let h={};return i.employer.trim()||(h.employer="Required"),i.role.trim()||(h.role="Required"),(!i.salary.trim()||Number(i.salary)<=0)&&(h.salary="Enter your monthly salary"),i.office.trim()||(h.office="Required"),i.home.trim()||(h.home="Required"),f(h),Object.keys(h).length===0},S=()=>{if(!navigator.geolocation){C("denied");return}C("requesting"),navigator.geolocation.getCurrentPosition(h=>{v({lat:h.coords.latitude,lng:h.coords.longitude,accuracy:h.coords.accuracy}),C("granted")},()=>C("denied"),{timeout:1e4})},g=async()=>{if(k()){u(!0),p(null);try{if(a&&(await r.runCreditCheck()).status==="declined"){t.go("exit-credit-decline");return}await r.submitEmployment({employer:i.employer,role:i.role,monthly_salary:Math.round(Number(i.salary)*100),office_address:i.office,home_address:i.home,location:m||void 0}),t.go("mono")}catch(h){p(h.message||"Could not save. Try again.")}finally{u(!1)}}};return e(P,{children:[e(F,{step:a?5:6,total:M,merchant:n.merchant.name,canBack:!0,onBack:()=>a?t.go("summary-r"):t.go("good-credit"),onClose:()=>t.close()}),e(q,{step:a?5:6,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:14},children:[e("div",{children:[e("h2",{style:N,children:a?"Update your details":"Confirm your income source"}),e("p",{style:W,children:a?"Edit anything that's changed. We'll re-run our checks.":"We use this to size your offer. We never share it without your permission."})]}),e($,{label:"Company / Employer",error:s.employer,children:e(j,{value:i.employer,onChange:_("employer"),placeholder:"e.g. Andela Nigeria Ltd",icon:"building-2",error:s.employer})}),e($,{label:"Role / Job title",error:s.role,children:e(j,{value:i.role,onChange:_("role"),placeholder:"e.g. Senior Engineer",icon:"briefcase",error:s.role})}),e($,{label:"Monthly salary (\u20A6)",error:s.salary,children:e(j,{value:i.salary,onChange:h=>_("salary")(h.replace(/[^\d]/g,"")),placeholder:"850000",inputMode:"numeric",prefix:"\u20A6",error:s.salary})}),e($,{label:"Office address",error:s.office,children:e(j,{value:i.office,onChange:_("office"),placeholder:"Street, area, city",icon:"map-pin",error:s.office})}),e($,{label:"Home address",error:s.home,children:e(j,{value:i.home,onChange:_("home"),placeholder:"Street, area, city",icon:"house",error:s.home})}),!a&&e("div",{style:{padding:12,borderRadius:12,background:"var(--nc-surface)",display:"flex",alignItems:"center",gap:10},children:[e(b,{name:"navigation",size:16,color:"var(--nc-muted)"}),e("div",{style:{flex:1,minWidth:0},children:[e("div",{style:{fontSize:13,fontWeight:500},children:"Share your current location"}),e("div",{style:{fontSize:12,color:"var(--nc-muted)"},children:x==="granted"?"Location captured \u2713":x==="denied"?"Skipped":x==="requesting"?"Requesting\u2026":"Required for verification"})]}),e(R,{size:"sm",variant:x==="granted"?"outline":"subtle",onClick:S,disabled:x==="requesting",children:x==="granted"?"Captured":"Allow"})]}),d&&e(U,{tone:"danger",icon:"alert-circle",children:d})]})}),e(B,{children:e(R,{iconRight:"arrow-right",loading:c,onClick:g,children:a?"Save and continue":"Continue to bank verification"})})]})}var _n="https://connect.withmono.com/connect.js";function Fe(){if(typeof window>"u")return null;let n=window;return[n.MonoConnect,n.MonoConnect?.default,n.Connect,n.Connect?.default].find(r=>typeof r=="function")??null}function ct(){if(typeof window>"u")return Promise.reject(new Error("no window"));let n=Fe();return n?Promise.resolve(n):new Promise((t,r)=>{let o=()=>{let l=Fe();l?t(l):r(new Error("Mono Connect SDK loaded but no constructor found on window (MonoConnect / MonoConnect.default / Connect)."))},a=document.querySelector(`script[src="${_n}"]`);if(a){let l=Fe();if(l){t(l);return}a.addEventListener("load",o),a.addEventListener("error",()=>r(new Error("Failed to load Mono Connect SDK.")));return}let i=document.createElement("script");i.src=_n,i.async=!0,i.onload=o,i.onerror=()=>r(new Error("Failed to load Mono Connect SDK.")),document.head.appendChild(i)})}function Bn({ctx:n,dispatch:t,api:r}){let[o,a]=y("intro"),[i,l]=y(0),[c,u]=y(null);H(()=>{if(o!=="connecting")return;let p=document.querySelector(".nc-bnpl-overlay");if(!p)return;let s=p.style.visibility;return p.style.visibility="hidden",()=>{p.style.visibility=s}},[o]);let d=async()=>{a("connecting"),u(null);try{let[p,s]=await Promise.all([r.getMonoLinkToken(),ct()]);if(!p.public_key||!/^(live|test)_pk_/.test(p.public_key))throw new Error(`Bad Mono public key from backend ("${p.public_key}"). Expected something like "test_pk_xxx" or "live_pk_xxx".`);let f=Array.isArray(p.scope)?p.scope[0]:p.scope,m={key:p.public_key,reference:p.reference,data:{customer:{id:p.customer_ref}},onClose:()=>{a(x=>x==="connecting"?"intro":x)},onSuccess:()=>{a("success"),setTimeout(()=>t.go("pending"),1e3)},onLoad:()=>{}};f&&(m.scope=f);let v=new s(m);v.setup(),v.open()}catch(p){let s=i+1;l(s),u(p.message||"We couldn't connect to your bank. Please try again."),a("failed"),s>=2&&t.go("exit-mono-failed")}};return e(P,{children:[e(F,{step:7,total:M,merchant:n.merchant.name,canBack:o==="intro",onBack:()=>t.go(n.customerStatus==="returning"?"summary-r":"employment"),onClose:()=>t.close()}),e(q,{step:7,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16},children:[e("div",{children:[e("h2",{style:N,children:"Connect your salary account"}),e("p",{style:W,children:"We use Mono to securely read your last 3 months of statements. Read-only, encrypted, revocable any time."})]}),e(dt,{phase:o}),o==="intro"&&e("div",{style:{padding:14,borderRadius:12,border:"1px solid var(--nc-border)",display:"flex",flexDirection:"column",gap:10},children:[["lock","Bank-level 256-bit encryption"],["eye-off","We never see your password"],["clock","Takes about 30 seconds"]].map(([p,s],f)=>e("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e(b,{name:p,size:14,color:"var(--nc-success)"}),e("span",{style:{fontSize:13,color:"var(--nc-ink)"},children:s})]},f))}),o==="failed"&&c&&e(U,{tone:"danger",icon:"alert-circle",children:c})]})}),e(B,{children:[o==="intro"&&e(R,{iconRight:"arrow-right",onClick:d,children:"Connect with Mono"}),o==="connecting"&&e(R,{variant:"outline",disabled:!0,children:[e(K,{size:14,color:"var(--nc-primary)"}),"Connecting\u2026"]}),o==="failed"&&e(R,{iconRight:"refresh-cw",variant:"violet",onClick:d,children:"Try again"}),o==="success"&&e(R,{variant:"outline",disabled:!0,children:[e(b,{name:"check-circle",size:14,color:"var(--nc-success)"}),"Connected"]})]})]})}function dt({phase:n}){return e("div",{style:{padding:24,borderRadius:16,background:"linear-gradient(135deg, #F0EDFF 0%, #E1F0FF 100%)",display:"flex",flexDirection:"column",alignItems:"center",gap:18},children:[e("div",{style:{display:"flex",alignItems:"center",gap:16},children:[e("div",{style:{width:64,height:64,borderRadius:16,background:"var(--nc-ink)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 8px 24px rgba(45,50,97,.25)",animation:n==="connecting"?"nc-bob 1.6s ease-in-out infinite":"none"},children:e(fn,{size:36})}),e("div",{style:{position:"relative",width:56,height:4,borderRadius:9999,background:"rgba(45,50,97,.12)"},children:e("div",{style:{position:"absolute",inset:0,borderRadius:9999,background:n==="success"?"var(--nc-success)":"var(--nc-primary)",width:n==="intro"?"0%":"100%",transition:"width 1.6s var(--ease)"}})}),e("div",{style:{width:64,height:64,borderRadius:16,background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 8px 24px rgba(45,50,97,.12)",border:"1px solid var(--nc-border)"},children:e(b,{name:"landmark",size:32,color:"var(--nc-vault)"})})]}),e("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13},children:[e("span",{style:{fontFamily:"var(--font-display)",fontWeight:600,color:"var(--nc-ink)"},children:"NeoCash"}),e(b,{name:"arrow-right",size:12,color:"var(--nc-muted)"}),e("span",{style:{padding:"3px 8px",borderRadius:6,background:"#fff",border:"1px solid var(--nc-border)",fontFamily:"var(--font-mono)",fontSize:11,color:"var(--nc-ink)"},children:"powered by Mono"}),e(b,{name:"arrow-right",size:12,color:"var(--nc-muted)"}),e("span",{style:{fontWeight:500,color:"var(--nc-ink)"},children:"your bank"})]})]})}function Dn({ctx:n,dispatch:t,api:r,onApprovalPending:o}){let[a,i]=y(n.pii?.email||n.partnerPrefill.email||""),[l,c]=y(!1),[u,d]=y(!1),[p,s]=y(null),f=n.merchant.cart_mode==="hold",m=async()=>{if(a){if(l){t.close();return}d(!0),s(null);try{let v=await r.finalize({email:a,tenure_days:n.tenure??0,financed_kobo:n.financed??0});t.update({applicationId:v.application_id}),o?.(v.application_id),c(!0)}catch(v){s(v.message||"Could not submit. Try again.")}finally{d(!1)}}};return e(P,{children:[e(F,{step:8,total:M,merchant:n.merchant.name,onClose:()=>t.close()}),e(q,{step:8,total:M}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18},children:[e("div",{style:{width:64,height:64,borderRadius:16,background:"var(--nc-primary-wash)",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[e(b,{name:"hourglass",size:28,color:"var(--nc-primary-strong)"}),e("span",{style:{position:"absolute",top:-6,right:-6,width:24,height:24,borderRadius:9999,background:"var(--nc-yellow)",display:"inline-flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 8px rgba(255,218,44,.4)"},children:e(b,{name:"check",size:14,color:"var(--nc-ink-deep)"})})]}),e("div",{children:[e("h2",{style:{...N,fontSize:24},children:"Thanks. We're on it."}),e("p",{style:{...W,marginTop:8,lineHeight:1.5},children:"We're verifying your income and will email you once your application is complete. Most decisions take less than 10 minutes."})]}),e($,{label:"Confirm your email",hint:"Make sure this is an email you check often.",children:e(j,{type:"email",value:a,onChange:i,icon:"mail"})}),e("div",{style:{padding:14,borderRadius:14,background:f?"#FFF9E0":"var(--nc-surface)",border:`1px solid ${f?"#FFE588":"var(--nc-border)"}`,display:"flex",gap:10},children:[e(b,{name:f?"briefcase":"check-circle",size:16,color:f?"var(--nc-yellow-deep)":"var(--nc-ink)",style:{marginTop:2,flex:"none"}}),e("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e("span",{style:{fontSize:13,fontWeight:600,color:"var(--nc-ink)"},children:f?`${n.merchant.name} is holding your order`:"Your cart has been released"}),e("span",{style:{fontSize:12.5,color:"var(--nc-muted)",lineHeight:1.5},children:f?`Your cart at ${n.merchant.name} is held for up to 24 hours. We'll email you a link to complete checkout once approved.`:`Once approved, we'll email you a link to return to ${n.merchant.name} and complete your purchase with your NeoCash limit.`})]})]}),e("div",{style:{padding:14,borderRadius:14,border:"1px solid var(--nc-border)",display:"flex",flexDirection:"column",gap:10},children:[e("span",{style:{fontSize:12,color:"var(--nc-muted)",letterSpacing:.4,textTransform:"uppercase"},children:"Application summary"}),e(L,{label:"Financed",value:I(n.financed||0)}),e(L,{label:"Tenure",value:Q(n.tenure||0)}),e(L,{label:"Est. monthly",value:I(n.perInstall||0),strong:!0})]}),p&&e(U,{tone:"danger",icon:"alert-circle",children:p})]})}),e(B,{children:e(R,{iconRight:l?"check":"send",loading:u,onClick:m,children:l?"Done \u2014 close":"Confirm email"})})]})}var bn={"exit-not-employed":{icon:"briefcase",tone:"info",title:"BNPL is for salary earners only",body:"NeoCash BNPL is currently only available to people in formal employment. We hope to expand soon.",primary:"Return to checkout"},"exit-no-salary-acct":{icon:"landmark",tone:"info",title:"A salary account is required",body:"NeoCash BNPL is currently only available to people who receive their salary into a Nigerian bank account.",primary:"Return to checkout"},"exit-bank-unsupported":{icon:"landmark",tone:"info",title:"We don't support your bank yet",body:"Sorry \u2014 BNPL is not currently available for your bank. We're working with our partners to add more banks every month.",primary:"Return to checkout",support:!0},"exit-otp-locked":{icon:"lock",tone:"danger",title:"Verification failed",body:"We couldn't verify your phone number after several attempts. For your security, please try again in 30 minutes.",primary:"Close",support:!0},"exit-liveness-failed":{icon:"camera-off",tone:"danger",title:"We couldn't verify it's you",body:"Our liveness check didn't pass. Please make sure you're in a well-lit space and try again later.",primary:"Close",support:!0},"exit-credit-decline":{icon:"trending-down",tone:"danger",title:"We can't offer you a loan right now",body:"Based on the information available, we cannot extend BNPL to you at this time. This decision was based on your credit history. You have the right to request a free copy of your credit report.",primary:"Close",support:!0,adverse:!0},"exit-bvn-cant-offer":{icon:"shield-x",tone:"danger",title:"We can't offer you a loan right now",body:"We're unable to extend BNPL to you at this time based on the information you provided. You may request a free credit report from any Nigerian bureau.",primary:"Close",support:!0,adverse:!0},"exit-face-mismatch":{icon:"user-x",tone:"danger",title:"We could not verify your identity",body:"The selfie you provided doesn't match the photo on your BVN record. Please contact NeoCash support if you believe this is an error.",primary:"Close",support:!0},"exit-mono-failed":{icon:"wifi-off",tone:"danger",title:"We couldn't reach your bank",body:"Please try again later, or contact your bank if the issue continues.",primary:"Close",support:!0},"exit-error":{icon:"alert-circle",tone:"danger",title:"Something went wrong",body:"An unexpected error occurred. Please try again.",primary:"Close",support:!0}};function pt(){return"NC-"+Math.random().toString(36).slice(2,8).toUpperCase()}function An({exitKey:n,ctx:t,dispatch:r}){let o=bn[n]||bn["exit-error"],a=o.tone==="danger";return e(P,{children:[e(F,{hideStep:!0,merchant:t.merchant.name,onClose:()=>r.close()}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:18,alignItems:"center",textAlign:"center",paddingTop:32},children:[e("div",{style:{width:80,height:80,borderRadius:9999,background:a?"#FDE5E5":"var(--nc-primary-wash)",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e(b,{name:o.icon,size:36,color:a?"var(--nc-danger)":"var(--nc-primary-strong)"})}),e("div",{children:[e("h2",{style:{...N,fontSize:22,maxWidth:340},children:o.title}),e("p",{style:{...W,marginTop:10,lineHeight:1.6,maxWidth:340},children:o.body})]}),o.adverse&&e("div",{style:{alignSelf:"stretch",padding:12,borderRadius:12,background:"var(--nc-surface)",border:"1px solid var(--nc-border)",fontSize:12,color:"var(--nc-muted)",lineHeight:1.5,textAlign:"left"},children:["You can reapply after 60 days. To dispute this decision, contact ",e("strong",{style:{color:"var(--nc-ink)"},children:"support@neocash.ng"})," with reference ",pt(),"."]})]})}),e(B,{children:[e(R,{variant:"primary",onClick:()=>r.close(),children:o.primary}),o.support&&e(R,{variant:"ghost",size:"md",icon:"life-buoy",onClick:()=>window.open("mailto:support@neocash.ng"),children:"Contact support"})]})]})}function Ln({ctx:n,dispatch:t}){return e(P,{children:[e(F,{hideStep:!0,merchant:n.merchant.name,onClose:()=>{}}),e(D,{children:e("div",{class:"nc-screen",style:{display:"flex",flexDirection:"column",gap:16,alignItems:"center",textAlign:"center",paddingTop:60},children:[e("div",{style:{width:64,height:64,borderRadius:16,background:"var(--nc-surface)",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e(b,{name:"x-circle",size:28,color:"var(--nc-muted)"})}),e("div",{children:[e("h2",{style:{...N,fontSize:20},children:"Widget closed"}),e("p",{style:{...W,fontSize:13},children:["Control returned to ",n.merchant.name,"'s checkout."]})]})]})}),e(B,{children:e(R,{variant:"outline",icon:"rotate-ccw",onClick:()=>t.go("plan"),children:"Restart"})})]})}var N={margin:0,fontWeight:700,fontSize:22,letterSpacing:"-0.02em",color:"var(--nc-ink)"},W={margin:"6px 0 0",fontSize:14,color:"var(--nc-muted)"};function xn({children:n}){return e("div",{style:{padding:16,borderRadius:16,border:"1px solid var(--nc-border)",background:"#fff",display:"flex",flexDirection:"column",gap:12},children:n})}function kn({label:n,value:t}){return e("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline"},children:[e("span",{style:{fontSize:13,fontWeight:500,color:"var(--nc-ink)"},children:n}),e("span",{style:{fontFamily:"var(--font-display)",fontWeight:600,fontSize:22,color:"var(--nc-primary-strong)",letterSpacing:"-0.02em",fontVariantNumeric:"tabular-nums"},children:t})]})}function Sn({left:n,right:t}){return e("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11,color:"var(--nc-muted)"},children:[e("span",{children:n}),e("span",{children:t})]})}function Nn({icon:n}){return e("div",{style:{width:56,height:56,borderRadius:16,background:"var(--nc-primary-wash)",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e(b,{name:n,size:26,color:"var(--nc-primary-strong)"})})}function Wn(n){let[t,r]=y("boot"),[o,a]=y({cart:n.cart,partnerPrefill:n.partnerPrefill,merchant:{name:"",cart_mode:"hold"},config:{monthly_interest_rate:.05,interest_type:"flat",processing_fee_rate:.015,min_amount_kobo:35e5,max_amount_kobo:2e8,min_tenure_days:14,max_tenure_days:180,min_pay_now_rate:.2,tenure_day_options:[14,30,60,90,120,150,180]},banks:[]}),[i,l]=y(null),c=Ee(()=>({go:u=>r(u),update:u=>a(d=>({...d,...u})),close:()=>{r("closed"),n.onClose()},fail:u=>{n.onError?.(u),r("exit-error")}}),[n]);return H(()=>{let u=!0;return n.api.createSession({public_key:n.publicKey,cart:n.cart,partner_prefill:n.partnerPrefill}).then(d=>{u&&(n.api.setSessionToken(d.session_token),a(p=>({...p,merchant:d.merchant,config:d.config,banks:d.banks,partnerPrefill:{...p.partnerPrefill,...d.prefill}})),r("plan"))}).catch(d=>{u&&(l(d),n.onError?.(d))}),()=>{u=!1}},[n.api,n.publicKey]),e("div",{class:"nc-bnpl-overlay",role:"dialog","aria-modal":"true","aria-label":"NeoCash BNPL",children:e("div",{class:"nc-bnpl-frame",children:ft({screen:t,ctx:o,dispatch:c,api:n.api,bootError:i,assetPrefix:n.assetPrefix,onApprovalPending:n.onApprovalPending})},t)})}function ft({screen:n,ctx:t,dispatch:r,api:o,bootError:a,assetPrefix:i,onApprovalPending:l}){return n==="boot"?e(mt,{err:a,dispatch:r}):n==="plan"?e(Cn,{ctx:t,dispatch:r}):n==="eligibility"?e(wn,{ctx:t,dispatch:r}):n==="phone"?e(Pn,{ctx:t,dispatch:r,api:o}):n==="otp"?e(Rn,{ctx:t,dispatch:r,api:o}):n==="liveness"?e(Tn,{ctx:t,dispatch:r,api:o,assetPrefix:i}):n==="summary-r"?e(Mn,{ctx:t,dispatch:r,api:o}):n==="form-n"?e(zn,{ctx:t,dispatch:r,api:o}):n==="face-match"?e(En,{ctx:t,dispatch:r,api:o}):n==="credit-check"?e(In,{ctx:t,dispatch:r,api:o}):n==="good-credit"?e(Fn,{ctx:t,dispatch:r}):n==="employment"?e(De,{ctx:t,dispatch:r,api:o,prefill:null,returning:!1}):n==="mono"?e(Bn,{ctx:t,dispatch:r,api:o}):n==="pending"?e(Dn,{ctx:t,dispatch:r,api:o,onApprovalPending:l}):n==="closed"?e(Ln,{ctx:t,dispatch:r}):n.startsWith("exit-")?e(An,{exitKey:n,ctx:t,dispatch:r}):e("div",{children:["Unknown: ",n]})}function mt({err:n,dispatch:t}){return n?e("div",{style:{padding:32,display:"flex",flexDirection:"column",gap:16,alignItems:"center",textAlign:"center",height:"100%",justifyContent:"center"},children:[e(b,{name:"alert-circle",size:36,color:"var(--nc-danger)"}),e("h2",{style:{margin:0,fontWeight:700,fontSize:18},children:"We couldn't start BNPL"}),e("p",{style:{margin:0,fontSize:14,color:"var(--nc-muted)"},children:n.message}),e(R,{variant:"outline",onClick:()=>t.close(),children:"Close"})]}):e("div",{style:{padding:32,display:"flex",flexDirection:"column",gap:18,alignItems:"center",textAlign:"center",height:"100%",justifyContent:"center"},children:[e(mn,{height:30}),e(K,{size:28,color:"var(--nc-primary)"}),e("span",{style:{fontSize:13,color:"var(--nc-muted)"},children:"Starting your checkout\u2026"})]})}var yt="https://api.neocash.ng",Ae=class extends Error{constructor(t,r={}){super(t),this.code=r.code,this.status=r.status,this.retryable=r.retryable}},he=class{constructor(t={}){this.sessionToken=null;this.base=t.apiBase??yt}setSessionToken(t){this.sessionToken=t}async req(t,r,o){let a={"Content-Type":"application/json"};this.sessionToken&&(a.Authorization=`Bearer ${this.sessionToken}`);let i=await fetch(this.base+r,{method:t,headers:a,body:o==null?void 0:JSON.stringify(o)}),l=null;try{l=await i.json()}catch{}if(!i.ok)throw new Ae(l?.error?.message??`${t} ${r} ${i.status}`,{code:l?.error?.code,status:i.status,retryable:!!l?.error?.retryable});return l}createSession(t){return this.req("POST","/bnpl-session/v1",t)}sendOtp(t){return this.req("POST","/bnpl-session/v1/otp/send",t)}verifyOtp(t){return this.req("POST","/bnpl-session/v1/otp/verify",t)}startLiveness(){return this.req("POST","/bnpl-session/v1/liveness/start")}submitLivenessResult(t){return this.req("POST","/bnpl-session/v1/liveness/result",t)}getCustomer(){return this.req("GET","/bnpl-session/v1/customer")}runCreditCheck(){return this.req("POST","/bnpl-session/v1/credit-check")}submitIdentity(t){return this.req("POST","/bnpl-session/v1/identity",t)}getIdentityStatus(){return this.req("GET","/bnpl-session/v1/identity/status")}submitEmployment(t){return this.req("POST","/bnpl-session/v1/employment",t)}getMonoLinkToken(){return this.req("GET","/bnpl-session/v1/mono/link-token")}finalize(t){return this.req("POST","/bnpl-session/v1/finalize",t)}};var Hn="nc-bnpl-styles",ht=`
2
+ .nc-bnpl {
3
+ --nc-primary: #917CFF;
4
+ --nc-primary-strong: #9747FF;
5
+ --nc-primary-soft: #B5A8FC;
6
+ --nc-primary-wash: #F0EDFF;
7
+ --nc-vault: #1A47B8;
8
+ --nc-yellow: #FFDA2C;
9
+ --nc-yellow-deep: #D4AF2C;
10
+ --nc-ink: #2D3261;
11
+ --nc-ink-deep: #1A1D3D;
12
+ --nc-muted: #75789A;
13
+ --nc-bg: #FFFFFF;
14
+ --nc-surface: #F7F8FA;
15
+ --nc-border: #E9EAF0;
16
+ --nc-success: #249F58;
17
+ --nc-danger: #F93939;
18
+ --nc-danger-2: #EF4444;
19
+ --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
20
+ --font-display: "Clash Grotesk", "Inter", system-ui, sans-serif;
21
+ --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
22
+ --shadow-xs: 0 1px 2px -1px rgba(26,26,26,.05);
23
+ --shadow-card: 0 1px 2px -1px rgba(26,26,26,.05), 0 10px 20px 0 rgba(26,26,26,.05);
24
+ --ease: cubic-bezier(.4,0,.2,1);
25
+ font-family: var(--font-sans);
26
+ color: var(--nc-ink);
27
+ font-size: 14px;
28
+ line-height: 20px;
29
+ -webkit-font-smoothing: antialiased;
30
+ }
31
+ .nc-bnpl-overlay {
32
+ position: fixed; inset: 0; z-index: 2147483600;
33
+ background:
34
+ radial-gradient(1200px 600px at 80% -10%, rgba(145,124,255,.10), transparent 60%),
35
+ radial-gradient(900px 500px at -10% 110%, rgba(255,218,44,.10), transparent 60%),
36
+ rgba(45,50,97,.42);
37
+ display: grid; place-items: center; padding: 24px; box-sizing: border-box;
38
+ animation: nc-fade-in .2s var(--ease);
39
+ }
40
+ .nc-bnpl-frame {
41
+ width: 440px; max-width: 100%;
42
+ height: min(760px, calc(100vh - 48px));
43
+ background: #fff;
44
+ border-radius: 24px;
45
+ border: 1px solid var(--nc-border);
46
+ box-shadow:
47
+ 0 1px 2px -1px rgba(26,26,26,.06),
48
+ 0 24px 60px -10px rgba(45,50,97,.35),
49
+ 0 8px 16px 0 rgba(45,50,97,.10);
50
+ overflow: hidden;
51
+ display: flex; flex-direction: column;
52
+ position: relative; isolation: isolate;
53
+ animation: nc-pop .25s var(--ease);
54
+ }
55
+ @media (max-width: 540px) {
56
+ .nc-bnpl-overlay { padding: 0; }
57
+ .nc-bnpl-frame {
58
+ width: 100vw; height: 100vh;
59
+ border-radius: 0; border: none;
60
+ }
61
+ }
62
+ .nc-bnpl-scroll { overflow-y: auto; overscroll-behavior: contain; }
63
+ .nc-bnpl-scroll::-webkit-scrollbar { width: 8px; }
64
+ .nc-bnpl-scroll::-webkit-scrollbar-thumb { background: rgba(45,50,97,.14); border-radius: 9999px; }
65
+
66
+ .nc-bnpl input, .nc-bnpl textarea, .nc-bnpl select, .nc-bnpl button { font-family: inherit; box-sizing: border-box; }
67
+ .nc-bnpl button { margin: 0; }
68
+ .nc-bnpl *, .nc-bnpl *::before, .nc-bnpl *::after { box-sizing: border-box; }
69
+ .nc-bnpl input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
70
+
71
+ .nc-bnpl .nc-range { width: 100%; height: 28px; }
72
+ .nc-bnpl .nc-range::-webkit-slider-runnable-track {
73
+ height: 6px; border-radius: 9999px;
74
+ background: linear-gradient(to right,
75
+ var(--nc-primary) 0%, var(--nc-primary) var(--p,50%),
76
+ var(--nc-border) var(--p,50%), var(--nc-border) 100%);
77
+ }
78
+ .nc-bnpl .nc-range::-moz-range-track {
79
+ height: 6px; border-radius: 9999px;
80
+ background: linear-gradient(to right,
81
+ var(--nc-primary) 0%, var(--nc-primary) var(--p,50%),
82
+ var(--nc-border) var(--p,50%), var(--nc-border) 100%);
83
+ }
84
+ .nc-bnpl .nc-range::-webkit-slider-thumb {
85
+ -webkit-appearance: none; appearance: none;
86
+ width: 22px; height: 22px; border-radius: 9999px;
87
+ background: #fff; border: 2px solid var(--nc-primary);
88
+ margin-top: -8px;
89
+ box-shadow: 0 2px 8px rgba(45,50,97,.18);
90
+ cursor: grab;
91
+ }
92
+ .nc-bnpl .nc-range::-moz-range-thumb {
93
+ width: 22px; height: 22px; border-radius: 9999px;
94
+ background: #fff; border: 2px solid var(--nc-primary);
95
+ box-shadow: 0 2px 8px rgba(45,50,97,.18);
96
+ cursor: grab;
97
+ }
98
+
99
+ @keyframes nc-fade-in { from { opacity: 0 } to { opacity: 1 } }
100
+ @keyframes nc-pop { from { opacity: 0; transform: translateY(8px) scale(.99) } to { opacity: 1; transform: none } }
101
+ @keyframes nc-fade-up { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
102
+ @keyframes nc-spin { to { transform: rotate(360deg) } }
103
+ @keyframes nc-pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
104
+ @keyframes nc-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
105
+ @keyframes nc-ring { from { stroke-dashoffset: 360 } to { stroke-dashoffset: 0 } }
106
+
107
+ .nc-bnpl .nc-screen { animation: nc-fade-up .35s var(--ease) both; }
108
+ .nc-bnpl .nc-spinner {
109
+ border-radius: 9999px; border: 2px solid currentColor; border-top-color: transparent;
110
+ display: inline-block; animation: nc-spin .9s linear infinite; flex: none;
111
+ }
112
+ `;function qn(n=document){if(n.getElementById(Hn))return;let t=n.createElement("style");t.id=Hn,t.textContent=ht,n.head.appendChild(t)}var gt=(()=>{try{let n=typeof document<"u"&&document.currentScript?.src||"";return n?new URL(".",n).href.replace(/\/$/,""):null}catch{return null}})();function vt(n){if(!n.publicKey)throw new Error("init: publicKey is required");if(!n.cart||!Array.isArray(n.cart.items))throw new Error("init: cart.items is required");qn();let t,r=!1;if(n.container){if(t=typeof n.container=="string"?document.querySelector(n.container):n.container,!t)throw new Error("init: container not found")}else t=document.createElement("div"),document.body.appendChild(t),r=!0;t.classList.add("nc-bnpl");let o=new he({apiBase:n.apiBase}),a=(n.assetPrefix??gt)||null,i=!1,l=()=>{i||(i=!0,Re(null,t),r&&t.parentElement&&t.parentElement.removeChild(t))};return Re(Ce(Wn,{api:o,publicKey:n.publicKey,cart:n.cart,partnerPrefill:n.partnerPrefill??{},assetPrefix:a,onClose:()=>{try{n.onClose?.()}finally{l()}},onApprovalPending:n.onApprovalPending,onError:n.onError}),t),{close:l}}var _t={init:vt},er=_t;export{er as default,vt as init};
@@ -0,0 +1,31 @@
1
+ /** @jsxImportSource react */
2
+ import '@aws-amplify/ui-react/styles.css';
3
+ export interface AwsCreds {
4
+ accessKeyId: string;
5
+ secretAccessKey: string;
6
+ sessionToken: string;
7
+ expiration: string;
8
+ }
9
+ export interface MountOptions {
10
+ container: HTMLElement;
11
+ sessionId: string;
12
+ region: string;
13
+ credentials: AwsCreds;
14
+ /** Called once Amplify reports analysis complete; widget then submits to /liveness/result. */
15
+ onAnalysisComplete: () => void | Promise<void>;
16
+ /** User cancels (closes the camera UI before completion). */
17
+ onCancel?: () => void;
18
+ /** Amplify-side error (camera denied, expired creds, network, etc.). */
19
+ onError?: (err: Error) => void;
20
+ }
21
+ export interface MountHandle {
22
+ unmount: () => void;
23
+ }
24
+ export declare function mount(opts: MountOptions): MountHandle;
25
+ declare global {
26
+ interface Window {
27
+ __NeoCashLiveness?: {
28
+ mount: typeof mount;
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,11 @@
1
+ import type { mount as MountFn } from './liveness-amplify';
2
+ interface AmplifyLivenessApi {
3
+ mount: typeof MountFn;
4
+ }
5
+ export declare function loadAmplifyLiveness(assetPrefix: string | null): Promise<AmplifyLivenessApi>;
6
+ declare global {
7
+ interface Window {
8
+ __NeoCashLiveness?: AmplifyLivenessApi;
9
+ }
10
+ }
11
+ export {};