PageSourceSearch

https://billsonchain.io/_next/static/chunks/0d1_rgucedx7f.js

js billsonchain.io collected 2026-10-08 01:33:26 UTC 27,409 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56420,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:o,className:l="",children:c,iconNode:u,...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:b=!1,color:h="currentColor",className:v=""}=(0,t.useContext)(i)??{},g=o??b?24*Number(s??m)/Number(n??p):s??m;return(0,t.createElement)("svg",{ref:f,...a,width:n??p??a.width,height:n??p??a.height,stroke:e??h,strokeWidth:g,className:r("lucide",v,l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]])});e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...o},l)=>(0,t.createElement)(s,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=n(e),i}],56420)},7670,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}])},18566,(e,t,r)=>{t.exports=e.r(76562)},67881,29315,14553,88940,67865,46376,76782,33332,33848,64350,40886,28918,56789,52245,e=>{"use strict";let t,r;var n=e.i(43476);e.i(47167);var a=e.i(71645);function i(){return"u">typeof window}function s(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){return!!i()&&(e instanceof HTMLElement||e instanceof s(e).HTMLElement)}e.s(["getWindow",0,s,"isElement",0,function(e){return!!i()&&(e instanceof Element||e instanceof s(e).Element)},"isHTMLElement",0,o],29315);let l={...a};e.s(["SafeReact",0,l],14553);let c={};function u(e,t){let r=a.useRef(c);return r.current===c&&(r.current=e(t)),r}e.s(["useRefWithInit",0,u],88940);let d=l.useInsertionEffect,f=d&&d!==l.useLayoutEffect?d:e=>e();function p(e){let t=u(m).current;return t.next=e,f(t.effect),t.trampoline}function m(){let e={next:void 0,callback:b,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function b(){}e.s(["useStableCallback",0,p],67865);let h="u">typeof document?a.useLayoutEffect:()=>{};function v(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}e.s(["useIsoLayoutEffect",0,h],46376);let g={};function x(e,t,r,n,a){if(!r&&!n&&!a&&!e)return w(t);let i=w(e);return t&&(i=k(i,t)),r&&(i=k(i,r)),n&&(i=k(i,n)),a&&(i=k(i,a)),i}function y(e){if(0===e.length)return g;if(1===e.length)return w(e[0]);let t=w(e[0]);for(let r=1;r<e.length;r+=1)t=k(t,e[r]);return t}function w(e){return j(e)?{...N(e,g)}:function(e){let t={...e};for(let e in t){let r=t[e];E(e,r)&&(t[e]=C(r))}return t}(e)}function k(e,t){return j(t)?N(t,e):function(e,t){if(!t)return e;for(let r in t){let n=t[r];switch(r){case"style":e[r]=v(e.style,n);break;case"className":e[r]=T(e.className,n);break;default:E(r,n)?e[r]=function(e,t){return t?e?(...r)=>{let n=r[0];if(I(n)){z(n);let a=t(...r);return n.baseUIHandlerPrevented||e?.(...r),a}let a=t(...r);return e?.(...r),a}:C(t):e}(e[r],n):e[r]=n}}return e}(e,t)}function E(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),a=e.charCodeAt(2);return 111===r&&110===n&&a>=65&&a<=90&&("function"==typeof t||void 0===t)}function j(e){return"function"==typeof e}function N(e,t){return j(e)?e(t):e??g}function C(e){return e?(...t)=>{let r=t[0];return I(r)&&z(r),e(...t)}:e}function z(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function T(e,t){return t?e?t+" "+e:t:e}function I(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,z,"mergeClassNames",0,T,"mergeProps",0,x,"mergePropsN",0,y],76782);let A=function(e,...t){let r=new URL("https://base-ui.com/production-error");
1return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,A],33332);let P=a.createContext(void 0);function R(e,t,{detail:r=0}={}){e.dispatchEvent(new(s(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function S(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:n=0,native:i=!0,composite:s}=e,l=a.useRef(null),c=function(e=!1){let t=a.useContext(P);if(void 0===t&&!e)throw Error(A(16));return t}(!0),u=s??void 0!==c,{props:d}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:n=!1,tabIndex:i=0,isNativeButton:s}=e,o=n&&!1!==t,l=n&&!1===t;return{props:a.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=i,!s&&r&&(e.tabIndex=t?i:-1)),(s&&(t||o)||!s&&r)&&(e["aria-disabled"]=r),s&&(!t||l)&&(e.disabled=r),e},[n,r,t,o,l,s,i])}}({focusableWhenDisabled:r,disabled:t,composite:u,tabIndex:n,isNativeButton:i}),f=a.useCallback(()=>{let e=l.current;U(e)&&u&&t&&void 0===d.disabled&&e.disabled&&(e.disabled=!1)},[t,d.disabled,u]);return h(f,[f]),{getButtonProps:a.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:a,onKeyDown:s,onPointerDown:l,...c}=e;return x({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var r;if(t||(z(e),s?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,a=e.currentTarget,l=U(a),c=!i&&o(r=a)&&"A"===r.tagName&&!!r.href,d=n&&(i?l:!c),f="Enter"===e.key,p=" "===e.key,m=a.getAttribute("role"),b=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(n&&u&&p){if(e.defaultPrevented&&b)return;e.preventDefault(),(!i||l)&&(e.preventBaseUIHandler(),R(a,e));return}if(!d||i||!p&&!f){n&&c&&p&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),f&&(e.preventBaseUIHandler(),R(a,e)))},onKeyUp(e){t||((z(e),a?.(e),e.target===e.currentTarget&&i&&u&&U(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||u||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),R(e.currentTarget,e))))},onPointerDown(e){t?e.preventDefault():l?.(e)}},i?{type:"button"}:{role:"button"},d,c)},[t,d,u,i]),buttonRef:p(e=>{l.current=e,f()})}}function U(e){return o(e)&&"BUTTON"===e.tagName}function L(e,t,r,n){var a,i,s,o,l;let c=u(O).current;return a=c,i=e,s=t,o=r,l=n,(a.refs[0]!==i||a.refs[1]!==s||a.refs[2]!==o||a.refs[3]!==l)&&D(c,[e,t,r,n]),c.callback}function B(e){var t,r;let n=u(O).current;return t=n,r=e,(t.refs.length!==r.length||t.refs.some((e,t)=>e!==r[t]))&&D(n,e),n.callback}function O(){return{callback:null,cleanup:null,refs:[]}}function D(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let a=t[e];if(null!=a)switch(typeof a){case"function":{let t=a(r);"function"==typeof t&&(n[e]=t);break}case"object":a.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["ownerWindow",0,s],33848),e.s(["dispatchClickWithModifiers",0,R],64350),e.s(["useButton",0,S],40886),e.s(["useMergedRefs",0,L,"useMergedRefsN",0,B],28918);let H=parseInt(a.version,10);function K(e){if(!a.isValidElement(e))return null;let t=e.props;return(H>=19?t?.ref:e.ref)??null}let M=Object.freeze([]),$=Object.freeze({});function W(e,t,r={}){let n=t.render,i=function(e,t={}){var r;let{className:n,style:a,render:i}=e,{state:s=$,ref:o,props:l,stateAttributesMapping:c,enabled:u=!0}=t,d=u?"function"==typeof n?n(s):n:void 0,f=u?"function"==typeof a?a(s):a:void 0,p=u?function(e,t){let r={};for(let n in e){let a=e[n];if(t?.hasOwnProperty(n)){let e=t[n](a);null!=e&&Object.assign(r,e);continue}!0===a?r[`data-${n.toLowerCase()}`]="":a&&(r[`data-${n.toLowerCase()}`]=a.toString())}return r}(s,c):$,m=u&&l?Array.isArray(r=l)?y(r):x(void 0,r):void 0,b=u?v(p,m)??{}:$;return("u">typeof document&&(u?Array.isArray(o)?b.ref=B([b.ref,K(i),...o]):b.ref=L(b.ref,K(i),o):L(null,null)),u)?(void 0!==d&&(b.className=T(b.className,d)),void 0!==f&&(b.style=v(b.style,f)),b):$}(t,r);return!1===r.enabled?null:function(e,t,r,n){if(t){if("function"==typeof t)return t(r,n);let e=x(r,t.props);e.ref=r.ref;let i=t;return i?.$$typeof===F&&(i=a.Children.toArray(t)[0]),a.cloneElement(i,e)}if(e&&"string"==typeof e){var i,s;return i=e,s=r,"button"===i?(0,a.createElement)("button",{type:"button",...s,key:s.key}):"img"===i?(0,a.createElement)("img",{alt:"",...s,key:s.key}):a.createElement(i,s)}throw Error(A(8))}(e,n,i,r.state??$)}e.s(["EMPTY_ARRAY",0,M,"EMPTY_OBJECT",0,$,"NOOP",0,function(){}],56789);let F=Symbol.for("react.lazy");e.s(["useRenderElement",0,W],52245);let _=a.forwardRef(function(e,t){let{render:r,className:n,disabled:a=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:o,...l}=e,{getButtonProps:c,buttonRef:u}=S({disabled:a,focusableWhenDisabled:i,native:s});return W("button",e,{state:{disabled:a},ref:[t,u],props:[l,c]})});var V=e.i(7670);let Y=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,J=V.clsx;var q=e.i(47163);let Z=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r={variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var n;if((null==r?void 0:r.variants)==null)return J(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:a,defaultVariants:i}=r,s=Object.keys(a).map(t=>{let r=null==e?void 0:e[t],n=null==i?void 0:i[t];if(null===r)return null;let s=Y(r)||Y(n);return a[t][s]}),o=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return J(t,s,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...o}[t]):({...i,...o})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});e.s(["Button",0,function({className:e,variant:t="default",size:r="default",...a}){return(0,n.jsx)(_,{"data-slot":"button",className:(0,q.cn)(Z({variant:t,size:r,className:e})),...a})},"buttonVariants",0,Z],67881)},70065,e=>{"use strict";var t=e.i(43476),r=e.i(47163);e.s(["Card",0,function({className:e,size:n="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},50861,72382,80860,e=>{"use strict";var t=e.i(71645),r=e.i(43476),n=(0,t.forwardRef)(({as:e="div",...t},n)=>(0,r.jsx)(e,{...t,ref:n}));let a="onloadTurnstileCallback",i={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65}},s="unloaded",o,l=new Promise((e,t)=>
1{o={resolve:e,reject:t},"ready"===s&&e(void 0)}),c=(e=a)=>("unloaded"===s&&(s="loading",window[e]=()=>{o.resolve(),s="ready",delete window[e]}),l),u=(0,t.forwardRef)((e,o)=>{let{scriptOptions:l,options:u={},siteKey:d,onWidgetLoad:f,onSuccess:p,onExpire:m,onError:b,onBeforeInteractive:h,onAfterInteractive:v,onUnsupported:g,onTimeout:x,onLoadScript:y,id:w,style:k,as:E="div",injectScript:j=!0,rerenderOnCallbackChange:N=!1,...C}=e,z=u.size,T=(0,t.useMemo)(()=>{if(void 0===z)return{};let e=i[z];return"interaction-only"===u.appearance?{...e,height:"auto"}:e},[z,u.appearance]),I="execute"===u.execution?i.invisible:T,[A,P]=(0,t.useState)(I),R=(0,t.useRef)(null),[S,U]=(0,t.useState)(!1),L=(0,t.useRef)(void 0),B=(0,t.useRef)(!1),O=w||"cf-turnstile",D=(0,t.useRef)({onSuccess:p,onError:b,onExpire:m,onBeforeInteractive:h,onAfterInteractive:v,onUnsupported:g,onTimeout:x});(0,t.useEffect)(()=>{N||(D.current={onSuccess:p,onError:b,onExpire:m,onBeforeInteractive:h,onAfterInteractive:v,onUnsupported:g,onTimeout:x})});let H=l?.id||"cf-turnstile-script",K=function(e="cf-turnstile-script"){let[r,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=()=>{document.getElementById(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),r}(H),M=l?.onLoadCallbackName||"onloadTurnstileCallback",$=(0,t.useMemo)(()=>({sitekey:d,action:u.action,cData:u.cData,theme:u.theme||"auto",language:u.language||"auto",tabindex:u.tabIndex,"response-field":u.responseField,"response-field-name":u.responseFieldName,size:function(e){if("invisible"!==e)return e}(z),retry:u.retry||"auto","retry-interval":u.retryInterval||8e3,"refresh-expired":u.refreshExpired||"auto","refresh-timeout":u.refreshTimeout||"auto",execution:u.execution||"render",appearance:u.appearance||"always","feedback-enabled":u.feedbackEnabled??!0,callback:e=>{B.current=!0,N?p?.(e):D.current.onSuccess?.(e)},"error-callback":N?b:(...e)=>D.current.onError?.(...e),"expired-callback":N?m:(...e)=>D.current.onExpire?.(...e),"before-interactive-callback":N?h:(...e)=>D.current.onBeforeInteractive?.(...e),"after-interactive-callback":N?v:(...e)=>D.current.onAfterInteractive?.(...e),"unsupported-callback":N?g:(...e)=>D.current.onUnsupported?.(...e),"timeout-callback":N?x:(...e)=>D.current.onTimeout?.(...e)}),[u.action,u.appearance,u.cData,u.execution,u.language,u.refreshExpired,u.responseField,u.responseFieldName,u.retry,u.retryInterval,u.tabIndex,u.theme,u.feedbackEnabled,u.refreshTimeout,d,z,N,N?p:null,N?b:null,N?m:null,N?h:null,N?v:null,N?g:null,N?x:null]),W=(0,t.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,t.useEffect)(function(){j&&!S&&(c(M),(({render:e="explicit",onLoadCallbackName:t=a,scriptOptions:{nonce:r="",defer:n=!0,async:i=!0,id:s="",appendTo:o,onError:l,crossOrigin:c=""}={}})=>{let u=s||"cf-turnstile-script";
1if(document.getElementById(u))return;let d=document.createElement("script");d.id=u,d.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${d.src}"]`)||(d.defer=!!n,d.async=!!i,r&&d.setAttribute("nonce",r),c&&(d.crossOrigin=c),l&&(d.onerror=l,delete window[t]),("body"===o?document.body:document.getElementsByTagName("head")[0]).appendChild(d))})({onLoadCallbackName:M,scriptOptions:{...l,id:H}}))},[j,S,l,H,M]),(0,t.useEffect)(function(){"ready"!==s&&c(M).then(()=>U(!0)).catch(console.error)},[M]),(0,t.useEffect)(function(){if(!R.current||!S)return;let e=!1;return(async()=>{e||!R.current||(L.current=window.turnstile.render(R.current,$),P(I),L.current&&f?.(L.current))})(),()=>{e=!0,L.current&&(window.turnstile.remove(L.current),B.current=!1)}},[O,S,$,I]),(0,t.useImperativeHandle)(o,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&L.current&&W()?e.getResponse(L.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,t=100)=>new Promise((r,n)=>{let a,i=async()=>{if(B.current&&window.turnstile&&L.current)try{let e=window.turnstile.getResponse(L.current);return a&&clearTimeout(a),e?r(e):n(Error("No response received"))}catch(e){return a&&clearTimeout(a),console.warn("Failed to get response",e),n(Error("Failed to get response"))}a||=setTimeout(()=>{a&&clearTimeout(a),n(Error("Timeout"))},e),await new Promise(e=>setTimeout(e,t)),await i()};i()}),reset(){if(!e?.reset||!L.current||!W())return void console.warn("Turnstile has not been loaded");P(I);try{B.current=!1,e.reset(L.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${L.current}`,e)}},remove(){e?.remove&&L.current&&W()?(P(i.invisible),B.current=!1,e.remove(L.current),L.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!R.current||!W()||L.current)return void console.warn("Turnstile has not been loaded or container not found");let t=e.render(R.current,$);return L.current=t,L.current&&f?.(L.current),P(I),t},execute(){"execute"!==u.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&R.current&&L.current&&W()?(e.execute(R.current),P(T)):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&L.current&&W()?e.isExpired(L.current):(console.warn("Turnstile has not been loaded"),!1)}},[L,u.execution,$,R,W,S,f,I,T]),(0,t.useEffect)(()=>{if(S||!K)return;if(window.turnstile)return void U(!0);let e=setInterval(()=>{window.turnstile&&(U(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[S,K]),(0,t.useEffect)(()=>{P(I)},[I]),(0,t.useEffect)(()=>{K&&"function"==typeof y&&y()},[K]),(0,r.jsx)(n,{ref:R,as:E,id:O,style:{...A,...k},...C})});u.displayName="Turnstile",e.s(["Turnstile",0,u],50861);var d=e.i(56420);let f=(0,d.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,f],72382);let p=(0,d.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,p],80860)},23426,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),a=e.i(22016),i=e.i(53145),s=e.i(94814),o=e.i(81307),l=e.i(46696),c=e.i(50861),u=e.i(67881),d=e.i(70065),f=e.i(23750),p=e.i(10708),m=e.i(72136),b=e.i(72382),h=e.i(80860);let v=o.z.object({email:o.z.string().email("Enter a valid email address"),password:o.z.string().min(1,"Password is required")}),g="https://billsonchain.io",x="0x4AAAAAADKR0bu1HvcUPYJ1";function y(){let e=(0,n.useRouter)(),o=(0,n.useSearchParams)(),y="1"===o.get("reset"),w="true"===o.get("verified"),k=o.get("callbackURL"),E=k?decodeURIComponent(k):"/dashboard",[j,N]=(0,r.useState)(!1),[C,z]=(0,r.useState)(!1),[T,I]=(0,r.useState)(null),[A,P]=(0,r.useState)(null),[R,S]=(0,r.useState)("idle"),[U,L]=(0,r.useState)(null),B=(0,r.useRef)(null);(0,r.useEffect)(()=>{N(!0)},[]);let{register:O,handleSubmit:D,getValues:H,formState:{errors:K,isSubmitting:
1M}}=(0,i.useForm)({resolver:(0,s.zodResolver)(v)}),$=async t=>{if(I(null),P(null),S("idle"),x&&!U)return void I("Please complete the security check below.");try{let{error:r}=await m.signIn.email({email:t.email,password:t.password,callbackURL:`${g}/dashboard`},{headers:U?{"x-turnstile-token":U}:{}});if(r){if(B.current?.reset(),L(null),403===r.status){if(r.message?.toLowerCase().includes("suspended"))return void I("Your account has been suspended. Please contact support.");P(t.email);return}I(r.message??"Invalid email or password.");return}e.push(E)}catch{l.toast.error("Unable to reach the server",{description:"Please check your connection and try again."}),I("Unable to reach the server. Please check your connection and try again."),B.current?.reset(),L(null)}},W=async()=>{let e=A??H("email");if(e){S("sending");try{let{error:t}=await m.authClient.sendVerificationEmail({email:e,callbackURL:`${g}/login?verified=true`});if(t){l.toast.error("Could not resend",{description:t.message??"Please try again."}),S("idle");return}S("sent"),l.toast.success("Verification email sent!",{description:`Check your inbox at ${e}.`})}catch{l.toast.error("Unable to reach the server",{description:"Please check your connection and try again."}),S("idle")}}};return(0,t.jsxs)(d.Card,{className:"w-full max-w-md border border-zinc-100 bg-white shadow-xl shadow-zinc-200/40 rounded-2xl overflow-hidden",children:[(0,t.jsxs)(d.CardHeader,{className:"pb-6 pt-8 px-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-extrabold tracking-widest uppercase text-[#1A3626] mb-1",children:"BillsOnChain"}),(0,t.jsx)(d.CardTitle,{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"Welcome back"}),(0,t.jsx)(d.CardDescription,{className:"text-zinc-500 mt-2",children:"Sign in to your Bills on Chain account."})]}),(0,t.jsxs)(d.CardContent,{className:"px-8 pb-8",children:[y&&(0,t.jsx)("div",{className:"mb-5 rounded-xl bg-emerald-50 border border-emerald-200 px-4 py-4 text-sm font-medium text-emerald-800",children:"Password reset successfully. Sign in with your new password."}),w&&(0,t.jsx)("div",{className:"mb-5 rounded-xl bg-emerald-50 border border-emerald-200 px-4 py-4 text-sm font-medium text-emerald-800",children:"Email verified successfully! You can now sign in."}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j&&D($)(e)},className:"space-y-5",noValidate:!0,suppressHydrationWarning:!0,children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(p.Label,{htmlFor:"email",children:"Email"}),(0,t.jsx)(f.Input,{id:"email",type:"email",placeholder:"[email protected]",autoComplete:"email",suppressHydrationWarning:!0,...O("email")}),K.email&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:K.email.message})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(p.Label,{htmlFor:"password",children:"Password"}),(0,t.jsx)(a.default,{href:"/forgot-password",className:"text-xs text-zinc-500 underline underline-offset-4 hover:text-zinc-900 transition-colors",children:"Forgot password?"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(f.Input,{id:"password",type:C?"text":"password",placeholder:"Your password",autoComplete:"current-password",suppressHydrationWarning:!0,className:"pr-10",...O("password")}),(0,t.jsx)("button",{type:"button",onClick:()=>z(!C),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400 hover:text-zinc-600 focus:outline-none","aria-label":C?"Hide password":"Show password",children:C?(0,t.jsx)(h.EyeOff,{size:18}):(0,t.jsx)(b.Eye,{size:18})})]}),K.password&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:K.password.message})]}),A&&(0,t.jsxs)("div",{className:"rounded-xl bg-amber-50 border border-amber-200 px-4 py-4 space-y-3",children:[(0,t.jsx)("p",{className:"text-sm text-amber-900 font-semibold",children:"Email not verified"}),(0,t.jsxs)("p",{className:"text-sm text-amber-800",children:["Your account for ",(0,t.jsx)("span",{className:"font-semibold",children:A}),"hasn't been verified yet. Check your inbox or resend the link."]}),"sent"===R?(0,t.jsx)("p",{className:"text-sm text-emerald-700 font-medium",children:"Verification link sent — check your inbox."}):(0,t.jsx)(u.Button,{type:"button",variant:"outline",size:"sm",className:"w-full border-amber-300 text-amber-900 hover:bg-amber-100 rounded-full py-4",disabled:"sending"===R,onClick:W,children:"sending"===R?"Sending…":"Resend verification email"})]}),x&&(0,t.jsx)(c.Turnstile,{ref:B,siteKey:x,onSuccess:e=>L(e),onExpire:()=>L(null),onError:()=>L(null),options:{theme:"light",size:"flexible"}}),T&&(0,t.jsx)("div",{className:"rounded-xl bg-red-50 border border-red-200 px-4 py-4 text-sm font-medium text-red-800",children:T}),(0,t.jsx)(u.Button,{type:"submit",className:"w-full bg-[#1A3626] text-white hover:bg-[#13281c] rounded-full py-5 mt-2",disabled:!j||M||!!x&&!U,children:M?"Signing in…":"Sign in"})]}),(0,t.jsxs)("p",{className:"mt-8 text-center text-sm text-zinc-500",children:["Don't have an account?"," ",(0,t.jsx)(a.default,{href:"/register",className:"font-semibold text-zinc-900 hover:text-emerald-600 transition-colors",children:"Join free"})]})]})]})}e.s(["default",0,function(){return(0,t.jsx)(r.Suspense,{children:(0,t.jsx)(y,{})})}])}]);

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.