PageSourceSearch

https://app.tryalpine.com/_next/static/chunks/pages/kyc-f3eb026ca33d0b43.js

js tryalpine.com collected 2026-10-04 05:10:00 UTC 8,122 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{81104:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kyc",function(){return r(46827)}])},91654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return s},default:function(){return i}});let n=r(38754),l=(r(67294),n._(r(27160)));function o(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let r=l.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e}),n={...n,...t};let i=n.loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=i?i().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,s(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let n=r(38754),l=n._(r(67294)),o=l.default.createContext(null)},27160:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(38754),l=n._(r(67294)),o=r(16963),s=[],i=[],a=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function s(){if(!n){let t=new d(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&i.push(t=>{for(let r of e)if(t.includes(r))return s()})}function u(e,t){!function(){s();let e=l.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let i=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),l.default.useMemo(()=>{var t;return i.loading||i.error?l.default.createElement(r.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:n.retry}):i.loaded?l.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return u.preload=()=>s(),u.displayName="LoadableComponent",l.default.forwardRef(u)}(u,e)}function f(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>
1{f(s).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());f(i,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},55736:function(e,t,r){"use strict";var n=r(85893),l=r(67294),o=r(38203),s=r(11163),i=r(93680),a=r(11507),u=r.n(a),d=r(71842),c=r(41664),f=r.n(c),h=r(59734),m=r(54655);t.Z=e=>{let{hideDropdown:t}=e,r=(0,s.useRouter)(),a=(0,h.ZP)("/kyc/status",m.ZP),[c,p]=l.useState(!1);return l.useEffect(()=>{!a.isLoading&&(a.error||a.data.error||"Approved"!==a.data.status||p(!0))},[a]),(0,n.jsxs)("div",{className:"d-flex flex-row w-100 ".concat(t?"justify-content-center":"justify-content-between"," border-bottom p-3"),style:{marginBottom:60},children:[(0,n.jsx)("div",{style:{cursor:"pointer"},onClick:()=>{r.push(t?"/login":"/")},children:(0,n.jsx)(o.Z,{})}),t?null:(0,n.jsxs)("div",{className:u().buttons,children:[c&&(0,n.jsx)(f(),{href:"/account",children:(0,n.jsx)(i.Z,{variant:"light",children:"Account"})}),(0,n.jsx)(i.Z,{variant:"light",onClick:()=>{window.confirm("Are you sure you want to logout?")&&(d.I8.signOut(),r.push("/login"))},children:"Logout"})]})]})}},38203:function(e,t,r){"use strict";var n=r(85893);r(67294);var l=r(25675),o=r.n(l),s=r(51722),i=r.n(s);t.Z=e=>{let{textFontSize:t,imgWidth:r=33,imgHeight:l=40,logoColor:s="#7C68EE",logoMargin:a}=e;return(0,n.jsxs)("div",{className:"d-flex flex-row justify-content-start align-items-center",children:[(0,n.jsx)(o(),{src:"/logo.svg",width:r,height:l,alt:"Logo"}),(0,n.jsx)("p",{className:i().logoText,style:{fontSize:t,marginLeft:a,color:s},children:"Alpine Empower"})]})}},41391:function(e,t,r){"use strict";var n=r(85893);r(67294);var l=r(55736),o=r(10682);t.Z=e=>{let{children:t,showHeader:r}=e;return(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(l.Z,{}),(0,n.jsxs)(o.Z,{className:"d-flex flex-column",children:[!r&&(0,n.jsx)("br",{}),t]})]})}},46827:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var n=r(85893),l=r(67294),o=r(5152),s=r.n(o),i=r(71842),a=r(54655),u=r(11163),d=r(36968);let c=s()(()=>r.e(10).then(r.t.bind(r,2010,23)).then(e=>e.Inquiry),{loadableGenerated:{webpack:()=>[2010]},ssr:!1});var f=()=>{let[e,t]=(0,l.useState)(),[r,o]=(0,l.useState)(!0);(0,l.useEffect)(()=>{var e;t(null===(e=i.I8.currentUser)||void 0===e?void 0:e.uid)},[]);let s=(0,u.useRouter)();return e?(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"text-center login-header",children:"Loading Alpine KYC"}),(0,n.jsx)(d.Z,{animation:"border",role:"status",size:"sm",children:(0,n.jsx)("span",{className:"visually-hidden",children:"Loading..."})})]}),(0,n.jsx)(c,{templateId:"itmpl_HYZeVeEoam7U1rg7No1fjtJh",environmentId:"env_vgc5XAznPgFGSHT1r1Lim2Wj",referenceId:e,onEvent:(e,t)=>{"start"===e&&(console.log("Start data:",t.inquiryId),(0,a.$7)("post","/kyc/create",{inquiry_id:t.inquiryId,status:"Started"}),o(!1))},inquiryId:"",onComplete:e=>{let{inquiryId:t,status:r,fields:n}=e;console.log("Sending finished inquiry ".concat(t," to backend")),(0,a.$7)("patch","/kyc/complete/".concat(t)),s.push("/")},frameWidth:"100%",frameHeight:"100%"})]}):(0,n.jsx)("div",{children:"No User Id"})},h=r(41391),m=()=>(0,n.jsx)(h.Z,{showHeader:!0,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{width:"100%",height:"100vh"},className:"d-flex flex-column align-items-center",children:(0,n.jsx)(f,{})}),(0,n.jsx)("div",{style:{height:500}})]})})},11507:function(e){e.exports={buttons:"Header_buttons__VDhhA"}},51722:function(e){e.exports={logoText:"Logo_logoText__rynuU"}},5152:function(e,t,r){e.exports=r(91654)},10682:function(e,t,r){"use strict";var n=r(94184),l=r.n(n),o=r(67294),s=r(76792),i=r(85893);let a=o.forwardRef(({bsPrefix:e,fluid:t=!1,as:r="div",className:n,...o},a)=>{let u=(0,s.vE)(e,"container"),d="string"==typeof t?`-${t}`:"-fluid";return(0,i.jsx)(r,{ref:a,...o,className:l()(n,t?`${u}${d}`:u)})});a.displayName="Container",t.Z=a}},function(e){e.O(0,[846,901,774,888,179],function(){return e(e.s=81104)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.