1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[6563],{20079:(e,t,n)=>{n.d(t,{u:()=>l});var i=n(99844);const o={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};function l(){let e=(0,i.u)();return{t:(t,n)=>function(e,t,n,i){let l=null!==(i=null===t||void 0===t?void 0:t[e])&&void 0!==i?i:o[e];return n&&0!==Object.keys(n).length?l.replace(/\{(\w+)\}/g,(e,t)=>{var i;return null!==(i=n[t])&&void 0!==i?i:e}):l}(t,e.intl.textLocalization,n)}}},26563:(e,t,n)=>{n.d(t,{c:()=>Z,d:()=>re,i:()=>se,u:()=>oe});var i=n(24107),o=n(15882),l=n(90034),r=n(57722);const s=["title","titleId"];function a(e,t){let{title:n,titleId:i}=e,l=(0,o.A)(e,s);return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},l),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const c=r.forwardRef(a);var d=n(86483);function h(e,t,n){var i;let o,l=null!==(i=n.initialDeps)&&void 0!==i?i:[];function r(){var i,r,s,a;let c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(c=Date.now());const d=e();if(!(d.length!==l.length||d.some((e,t)=>l[t]!==e)))return o;let h;if(l=d,n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(h=Date.now()),o=t(...d),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-h))/100,i=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info("%c\u23f1 ".concat(o(t,5)," /").concat(o(e,5)," ms"),"\n font-size: .6rem;\n font-weight: bold;\n color: hsl(".concat(Math.max(0,Math.min(120-120*i,120)),"deg 100% 31%);"),null==n?void 0:n.key)}return null==(a=null==n?void 0:n.onChange)||a.call(n,o),o}return r.updateDeps=e=>{l=e},r}function u(e,t){if(void 0===e)throw new Error("Unexpected undefined".concat(t?": ".concat(t):""));return e}const p=(e,t,n)=>{let i;return function(){for(var o=arguments.length,l=new Array(o),r=0;r<o;r++)l[r]=arguments[r];e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,l),n)}},g=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},m=e=>e,v=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let o=t;o<=n;o++)i.push(o);return i},f=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const o=e=>{const{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(o(g(n)),!i.ResizeObserver)return()=>{};const l=new i.ResizeObserver(t=>{const i=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(g(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},w={passive:!0},x="undefined"==typeof window||"onscrollend"in window,y=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let o=0;const l=e.options.useScrollendEvent&&x?()=>{}:p(i,()=>{t(o,!1)},e.options.isScrollingResetDelay),r=i=>()=>{const{horizontal:r,isRtl:s}=e.options;o=r?n.scrollLeft*(s?-1:1):n.scrollTop,l(),t(o,i)},s=r(!0),a=r(!1);a(),n.addEventListener("scroll",s,w);const c=e.options.useScrollendEvent&&x;return c&&n.addEventListener("scrollend",a,w),()=>{n.removeEventListener("scroll",s),c&&n.removeEventListener("scrollend",a)}},b=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},C=(e,t,n)=>
1{let{adjustments:i=0,behavior:o}=t;var l,r;const s=e+i;null==(r=null==(l=n.scrollElement)?void 0:l.scrollTo)||r.call(l,{[n.options.horizontal?"left":"top"]:s,behavior:o})};class j{constructor(e){var t=this;this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(t=>{let[n,i]=t;"undefined"===typeof i&&delete e[n]}),this.options=(0,i.A)({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:m,rangeExtractor:v,onChange:()=>{},measureElement:b,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1},e)},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=h(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();var n;if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement)this.targetWindow=this.scrollElement.ownerDocument.defaultView;else this.targetWindow=null!==(n=null==(e=this.scrollElement)?void 0:e.window)&&void 0!==n?n:null;this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
1,this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=null!==(e=this.scrollRect)&&void 0!==e?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=null!==(e=this.scrollOffset)&&void 0!==e?e:"function"===typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{const n=new Map,i=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const l=i.get(t.lane);if(null==l||t.end>l.end?i.set(t.lane,t):t.end<l.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=h(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=h(()=>[this.getMeasurementOptions(),this.itemSizeCache],(e,t)=>{let{count:n,paddingStart:i,scrollMargin:o,getItemKey:l,enabled:r}=e;if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let c=s;c<n;c++){const e=l(c),n=1===this.options.lanes?a[c-1]:this.getFurthestMeasurement(a,c),r=n?n.end+this.options.gap:i+o,s=t.get(e),d="number"===typeof s?s:this.options.estimateSize(c),h=r+d,u=n?n.lane:c%this.options.lanes;a[c]={index:c,start:r,size:d,end:h,key:e,lane:u}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=h(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function(e){let{measurements:t,outerSize:n,scrollOffset:i,lanes:o}=e;const l=t.length-1,r=e=>t[e].start;if(t.length<=o)return{startIndex:0,endIndex:l};let s=S(0,l,r,i),a=s;if(1===o)for(;a<l&&t[a].end<i+n;)a++;else if(o>1){const e=Array(o).fill(0);for(;a<l&&e.some(e=>e<i+n);){const n=t[a];e[n.lane]=n.end,a++}const r=Array(o).fill(i+n);for(;s>=0&&r.some(e=>e>=i);){const e=t[s];r[e.lane]=e.start,s--}s=Math.max(0,s-s%o),a=Math.min(l,a+(o-1-a%o))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
1),this.getVirtualIndexes=h(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,o)=>null===i||null===o?[]:e({startIndex:i,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn("Missing attribute name '".concat(t,"={index}' on measured element.")),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;const o=i.key,l=this.elementsCache.get(o);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var n;const i=this.measurementsCache[e];if(!i)return;const o=t-(null!==(n=this.itemSizeCache.get(i.key))&&void 0!==n?n:i.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=h(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let i=0,o=e.length;i<o;i++){const o=t[e[i]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return u(t[S(0,t.length-1,e=>u(t[e]).start,e)])},this.getOffsetForAlignment=function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=t.getSize(),l=t.getScrollOffset();"auto"===n&&(n=e>=l+o?"end":"start"),"center"===n?e+=(i-o)/2:"end"===n&&(e-=o);const r=t.getTotalSize()+t.options.scrollMargin-o;return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";e=Math.max(0,Math.min(e,t.options.count-1));const i=t.measurementsCache[e];if(!i)return;const o=t.getSize(),l=t.getScrollOffset();if("auto"===n)if(i.end>=l+o-t.options.scrollPaddingEnd)n="end";else{if(!(i.start<=l+t.options.scrollPaddingStart))return[l,n];n="start"}const r="end"===n?i.end+t.options.scrollPaddingEnd:i.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(r,n,i.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=function(e){let{align:n="start",behavior:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"smooth"===i&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.getOffsetForAlignment(e,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=function(e){let{align:n="auto",behavior:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"smooth"===i&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,t.options.count-1));let o=0;const l=n=>{if(!t.targetWindow)return;const o=t.getOffsetForIndex(e,n);if(!o)return void console.warn("Failed to get offset for index:",e);const[l,s]=o;t._scrollToOffset(l,{adjustments:void 0,behavior:i}),t.targetWindow.requestAnimationFrame(()=>{const n=t.getScrollOffset(),i=t.getOffsetForIndex(e,s);var o,l;i?(o=i[0],l=n,Math.abs(o-l)<1.01||r(s)):console.warn("Failed to get offset for index:",e)})},r=n=>{t.targetWindow&&(o++,o<10?t.targetWindow.requestAnimationFrame(()=>l(n)):console.warn("Failed to scroll to index ".concat(e," after ").concat(10," attempts.")))};l(n)},this.scrollBy=function(e){let{behavior:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"smooth"===n&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.getScrollOffset()+e,{adju
1stments:void 0,behavior:n})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes){var i;n=null!==(i=null==(e=t[t.length-1])?void 0:e.end)&&void 0!==i?i:0}else{const e=Array(this.options.lanes).fill(null);let i=t.length-1;for(;i>=0&&e.some(e=>null===e);){const n=t[i];null===e[n.lane]&&(e[n.lane]=n.end),i--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,t)=>{let{adjustments:n,behavior:i}=t;this.options.scrollToFn(e,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const S=(e,t,n,i)=>{for(;e<=t;){const o=(e+t)/2|0,l=n(o);if(l<i)e=o+1;else{if(!(l>i))return o;t=o-1}}return e>0?e-1:0};const I="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function z(e){const t=r.useReducer(()=>({}),{})[1],n=(0,i.A)((0,i.A)({},e),{},{onChange:(n,i)=>{var o;i?(0,d.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,i)}}),[o]=r.useState(()=>new j(n));return o.setOptions(n),I(()=>o._didMount(),[]),I(()=>o._willUpdate()),o}var k=n(2035),W=n(52610),A=n(67980);const E=["title","titleId"];function T(e,t){let{title:n,titleId:i}=e,l=(0,o.A)(e,E);return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},l),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const M=r.forwardRef(T);var F=n(86640),O=n(33898),N=n(86913),_=n(96581),L=n(99844),B=n(20079),R=n(1991),D=n(51380),$=n(57511),q=n(49080),V=n(43122);const P=["children","iconOnly","value","hideCopyIcon"],H=["className","customDescription","connectOnly","preSelectedWalletId","hideHeader"];let U=W.I4.button.withConfig({displayName:"CopyTextButton",componentId:"sc-4b0620dc-0"})(["display:flex;align-items:center;gap:0.5rem;&:hover{text-decoration:underline;}svg{width:0.875rem;height:0.875rem;}"]),Q=W.I4.span.withConfig({displayName:"CopiedText",componentId:"sc-4b0620dc-1"})(["display:flex;align-items:center;gap:0.25rem;font-size:0.875rem;color:var(--privy-color-foreground-2);"]),K=(0,W.I4)(M).withConfig({displayName:"GreenCheck",componentId:"sc-4b0620dc-2"})(["color:var(--privy-color-success);"]),Y=(0,W.I4)(F.C).withConfig({displayName:"StyledCopy",componentId:"sc-4b0620dc-3"})(["color:var(--privy-color-foreground-3);opactiy:0.5;"]);function G(e){let{children:t,iconOnly:n,value:s,hideCopyIcon:a}=e,c=(0,o.A)(e,P),[d,h]=(0,r.useState)(!1);return(0,l.jsxs)(U,(0,i.A)((0,i.A)({},c),{},{onClick:()=>{navigator.clipboard.writeText(s||t).catch(console.error),h(!0),setTimeout(()=>h(!1),1500)},children:[t," ",d?(0,l.jsxs)(Q,{children:[(0,l.jsx)(K,{})," ",!n&&"Copied"]}):!a&&(0,l.jsx)(Y,{})]}))}const X={phantom:{mobile:{native:"phantom://",universal:"https://phantom.app/ul/"}},solflare:{mobile:{native:void 0,universal:"https://solflare.com/ul/v1/"}},metamask:{image_url:{sm:R.M,md:R.M}}};class Z{static normalize(e){return e.replace(/[-_]wallet$/,"").replace(/[-_]extension$/,"").toLowerCase()}isEth(e){return e.chains.some(e=>e.startsWith("eip155:"))}isSol(e){return e.chains.some(e=>e.startsWith("solana:"))}inAllowList(e,t){if(!this.normalizedAllowList||0===this.normalizedAllowList.length||"listing"===t&&this.includeWalletConnect)return!0;let n=Z.normalize(e);return this.normalizedAllowList.some(e=>n===Z.normalize(e))}inDenyList(e,t){return"listing"===t&&"rabby"===e}chainMatches(e){return"ethereum-only"===this.chainFilter?"ethereum"===e:"solana-only"!==this.chainFilter||"solana"===e}connectorOk(e){return!("null"===e.connectorType||"walletconnect_solana"===e.walletBranding.id||!this.chainMatches(e.chainType)||!this.inAllowList(e.walletClientType,"connector")&&("injected"!==e.connectorType&&"solana_adapter"!==e.connectorType||!("ethereum"===e.chainType&&this.detectedEth||"solana"===e.chainType&&this.detectedSol)))}listingOk(e){if(e.slug.includes("coinbase"))return!1;if("ethereum-only"===this.chainFilter){if(!this.isEth(e))return!1}else if("solana-only"===this.chainFilter&&!this.isSol(e))return!1;return!(!this.inAllowList(e.slug,"listing")||this.inDenyList(e.slug,"listing"))}getWallets(e,t){var n;let i=new Map,o=e=>{let t=i.get(e.id);if(t){t.chainType!==e.chainType&&(t.chainType="multi");let n=new Set(t.chains);
1e.chains.forEach(e=>n.add(e)),t.chains=Array.from(n),!t.icon&&e.icon&&(t.icon=e.icon),!t.url&&e.url&&(t.url=e.url),!t.listing&&e.listing&&(t.listing=e.listing)}else i.set(e.id,e)};e.filter(e=>this.connectorOk(e)).forEach(e=>{var t,n,i;let l=Z.normalize(e.walletClientType);o({id:l,label:null!==(t=null===(n=e.walletBranding)||void 0===n?void 0:n.name)&&void 0!==t?t:l,source:"connector",connector:e,chainType:e.chainType,icon:null===(i=e.walletBranding)||void 0===i?void 0:i.icon,url:void 0,chains:["ethereum"===e.chainType?"eip155":"solana"]})});let l=e.find(e=>"wallet_connect_v2"===e.connectorType),r=e.find(e=>"walletconnect_solana"===e.walletBranding.id);t.filter(e=>this.listingOk(e)).forEach(t=>{var n,i,s,a;let c=[...t.chains].filter(e=>e.startsWith("eip155")||e.startsWith("solana"));if(e.some(e=>Z.normalize(e.walletClientType)===Z.normalize(t.slug)&&"ethereum"===e.chainType&&"null"!==e.connectorType)||l||t.mobile.native||t.mobile.universal||null!==(n=R.q[t.slug])&&void 0!==n&&n.chainTypes.includes("ethereum")||(c=c.filter(e=>!e.startsWith("eip155"))),e.some(e=>Z.normalize(e.walletClientType)===Z.normalize(t.slug)&&"solana"===e.chainType&&"null"!==e.connectorType)||r||t.mobile.native||t.mobile.universal||null!==(i=R.q[t.slug])&&void 0!==i&&i.chainTypes.includes("solana")||(c=c.filter(e=>!e.startsWith("solana"))),!c.length)return;let d=Z.normalize(t.slug),h=X[t.slug],u=(null===h||void 0===h||null===(s=h.image_url)||void 0===s?void 0:s.sm)||(null===(a=t.image_url)||void 0===a?void 0:a.sm);c.some(e=>e.startsWith("eip155"))&&o({id:d,label:t.name||d,source:"listing",listing:t,chainType:"ethereum",icon:u,url:t.homepage,chains:c}),c.some(e=>e.startsWith("solana"))&&o({id:d,label:t.name||d,source:"listing",listing:t,chainType:"solana",icon:u,url:t.homepage,chains:c})}),this.includeWalletConnectQr&&l&&o({id:"wallet_connect_qr",label:"WalletConnect",source:"connector",connector:l,chainType:"ethereum",icon:q.W,url:void 0,chains:["eip155"]}),this.includeWalletConnectQrSolana&&r&&o({id:"wallet_connect_qr_solana",label:"WalletConnect",source:"connector",connector:r,chainType:"solana",icon:q.W,url:void 0,chains:["solana"]});let s=Array.from(i.values());s.forEach(e=>{var t,n;let i=X[(null===(t=e.listing)||void 0===t?void 0:t.slug)||e.id];(null===i||void 0===i||null===(n=i.image_url)||void 0===n?void 0:n.sm)&&(e.icon=i.image_url.sm)});let a=new Map;return null!==(n=this.normalizedAllowList)&&void 0!==n&&n.forEach((e,t)=>{a.set(Z.normalize(e),t)}),{wallets:s.slice().sort((e,t)=>{let n=Z.normalize(e.id),i=Z.normalize(t.id);"binance-defi"===n?n="binance":"universalprofiles"===n?n="universal_profile":"cryptocom-defi"===n?n="cryptocom":"bitkeep"===n&&(n="bitget_wallet"),"binance-defi"===i?i="binance":"universalprofiles"===i?i="universal_profile":"cryptocom-defi"===i?i="cryptocom":"bitkeep"===i&&(i="bitget_wallet");let o=a.has(n),l=a.has(i);return o&&l?a.get(n)-a.get(i):o?-1:l?1:"connector"===e.source&&"listing"===t.source?-1:"listing"===e.source&&"connector"===t.source?1:e.label.toLowerCase().localeCompare(t.label.toLowerCase())}),walletCount:s.length}}constructor(e,t){var n,i,o,l,r,s,a,c,d,h;this.chainFilter=e,t&&t.length>0&&(this.normalizedAllowList=t.map(String),this.normalizedAllowList.includes("binance")&&this.normalizedAllowList.push("binance-defi-wallet"),this.normalizedAllowList.includes("bitget_wallet")&&this.normalizedAllowList.push("bitkeep")),this.detectedEth=null!==(n=null===(i=this.normalizedAllowList)||void 0===i?void 0:i.includes("detected_ethereum_wallets"))&&void 0!==n&&n,this.detectedSol=null!==(o=null===(l=this.normalizedAllowList)||void 0===l?void 0:l.includes("detected_solana_wallets"))&&void 0!==o&&o,this.includeWalletConnect=null!==(r=null===(s=this.normalizedAllowList)||void 0===s?void 0:s.includes("wallet_connect"))&&void 0!==r&&r,this.includeWalletConnectQr=null!==(a=null===(c=this.normalizedAllowList)||void 0===c?void 0:c.includes("wallet_connect_qr"))&&void 0!==a&&a,this.includeWalletConnectQrSolana=null!==(d=null===(h=this.normalizedAllowList)||void 0===h?void 0:h.includes("wallet_connect_qr_solana"))&&void 0!==d&&d}}var J=e=>(0,l.jsxs)("svg",(0,i.A)((0,i.A)({viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:[(0,l.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#5469d4"}),(0,l.jsx)("path",{d:"m15.997 5.333-.143.486v14.106l.143.143 6.548-3.87z",fill:"#c2ccf4"}),(0,l.jsx)("path",{d:"m15.996 5.333-6.548 10.865 6.548 3.87z",fill:"#fff"}),(0,l.jsx)("path",{d:"m15.997 21.306-.08.098v5.025l.08.236 6.552-9.227z",fill:"#c2ccf4"}),(0,l.jsx)("path",{d:"m15.996 26.665v-5.36l-6.548-3.867z",fill:"#fff"}),(0,l.jsx)("path",{d:"m15.995 20.07 6.548-3.87-6.548-2.976v6.847z",fill:"#8698e8"}),(0,l.jsx)("path",{d:"m9.448 16.2 6.548 3.87v-6.846z",fill:"#c2ccf4"})]})),ee=e=>(0,l.jsxs)("svg",(0,i.A)((0,i.A)({viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:[(0,l.jsxs)("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"7.233",x2:"24.766",y1:"24.766",y2:"7.234",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#9945ff"}),(0,l.jsx)("stop",{offset:".2",stopColor:"#7962e7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#00d18c"})]}),(0,l.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#10111a"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"m9.873 20.41a.645.645 0 0 1 .476-.21l14.662.012a.323.323 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54zm15.376-2.862a.322.322 0 0 1 -.238.54l-14.662.012a.642.642 0 0 1 -.476-.21l-3.122-3.44a.323.323 0 0 1 .238-.54l14.662-.012a.644.644 0 0 1 .475.21zm-15.376-9.738a.644.644 0 0 1 .476-.21l14.662.012a.322.322 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54z",fill:"url(#a)",fillRule:"evenodd"})]}));const te=W.I4.div.withConfig({displayName:"WalletIconWithActiveIndicator",componentId:"sc-9b65f2b6-2"})(["position:relative;display:inline-flex;align-items:center;&::after{content:' ';border-radius:var(--privy-border-radius-full);height:6px;width:6px;background-color:var(--privy-color-icon-success);position:absolute;right:-3px;top:-3px;}"]),ne=W.I4.img.withConfig({displayName:"WalletIcon",componentId:"sc-9b65f2b6-3"})(["width:32px;height:32px;border-radius:0.25rem;object-fit:contain;"]),ie=W.I4.span.withConfig({displayName:"Chip",componentId:"sc-9b65f2b6-4"})(["display:flex;gap:0.25rem;align-items:center;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;line-height:1.125rem;border-radius:var(--privy-border-radius-sm);background-color:var(--privy-color-background-2);svg{width:100%;max-width:1rem;max-height:1rem;stroke-width:2;}"]);function oe(e){var t;let{enabled:n=!0,walletList:i,walletChainType:o}=e,l=(0,L.u)(),{connectors:s}=(0,D.u)(),{listings:a,loading:c}=(0,R.d)(n),d=null!==o&&void 0!==o?o:l.appearance.walletChainType,h=null!==i&&void 0!==i?i:null===(t=l.appearance)||void 0===t?void 0:t.walletList,u=(0,r.useMemo)(()=>new Z(d,h),[d,h]),{wallets:p,walletCount:g}=(0,r.useMemo)(()=>u.getWallets(s,a),[u,s,a]),[m,v]=(0,r.useState)(""),f=(0,r.useMemo)(()=>m?p.filter(e=>e.label.toLowerCase().includes(m.toLowerCase())):p,[m,p]),[w,x]=(0,r.useState)();return{selected:w,setSelected:x,search:m,setSearch:v,loadingListings:c,wallets:f,walletCount:g}}let le=e=>!e||"string"!=typeof e&&(e instanceof R.w||e instanceof R.S);const re=e=>{var t,n;let{index:o,style:r,data:s,recent:a}=e,c=s.wallets[o],{walletChainType:d,handleWalletClick:h}=s,{t:u}=(0,B.u)(),p=(0,i.A)((0,i.A)({},r),{},{boxSizing:"border-box"});return c?(0,l.jsxs)(de,{style:p,onClick:()=>h(c),children:[c.icon&&(c.connector&&!le(c.connector)?(0,l.jsx)(te,{children:"string"==typeof c.icon?(0,l.jsx)(ne,{src:c.icon}):(0,l.jsx)(c.icon,{style:{width:"32px",height:"32px"}})}):"string"==typeof c.icon?(0,l.jsx)(ne,{src:c.icon}):(0,l.jsx)(c.icon,{style:{width:"32px",height:"32px"}})),(0,l.jsx)(pe,{children:c.label}),a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ie,{children:u("connectWallet.lastUsed")}),(0,l.jsx)(he,{children:(0,l.jsxs)(l.Fragment,{children:["ethereum-only"===d&&(0,l.jsx)(J,{}),"solana-only"===d&&(0,l.jsx)(ee,{})]})})]}):(0,l.jsx)(he,{children:!("ethereum-only"===d||"solana-only"===d)&&(0,l.jsxs)(l.Fragment,{children:[(null===(t=c.chains)||void 0===t?void 0:t.some(e=>e.startsWith("eip155")))&&(0,l.jsx)(J,{}),(null===(n=c.chains)||void 0===n?void 0:n.some(e=>e.startsWith("solana")))&&(0,l.jsx)(ee,{})]})})]}):null};var se=e=>{var t,n,s,a,d;let{className:h,customDescription:u,connectOnly:p,preSelectedWalletId:g,hideHeader:m}=e,v=(0,o.A)(e,H),w=(0,L.u)(),{t:x}=(0,B.u)(),{connectors:b}=(0,D.u)(),j=v.walletChainType||w.appearance.walletChainType,S=v.walletList||(null===(t=w.appearance)||void 0===t?void 0:t.walletList),{onBack:I,onClose:W,app:E}=v,{selected:T,setSelected:M,qrUrl:F,setQrUrl:P,connecting:U,uiState:Q,wallets:K,walletCount:Y,handleConnect:G,handleBack:te,showSearchBar:ie,isInitialConnect
1View:se,title:me,search:ve,setSearch:fe}=function(e){let{onConnect:t,onBack:n,onClose:i,onConnectError:o,walletList:l,walletChainType:s,app:a}=e,c=(0,L.u)(),{connectors:d}=(0,D.u)(),{t:h}=(0,B.u)(),{wallets:u,walletCount:p,search:g,setSearch:m,selected:v,setSelected:f}=oe({enabled:(0,R.e)(null!==l&&void 0!==l?l:[]),walletList:l,walletChainType:s}),[w,x]=(0,r.useState)(),[y,b]=(0,r.useState)(),[C,j]=(0,r.useState)(),S=!v&&!y&&!C,I=S&&(p>6||g.length>0),z=d.find(e=>"wallet_connect_v2"===e.connectorType),W=(0,r.useCallback)(async(e,n)=>{if(e){var i,l,r,s;if((null===C||void 0===C?void 0:C.connector)===e&&"loading"===w)return void console.log("Already connecting to this wallet, skipping duplicate attempt");if(x("loading"),"string"==typeof e)return j({connector:e,name:null!==(i=null===n||void 0===n?void 0:n.name)&&void 0!==i?i:"Wallet",icon:null===n||void 0===n?void 0:n.icon}),void window.open(e,"_blank");j({connector:e,name:null!==(l=null!==(r=null===n||void 0===n?void 0:n.name)&&void 0!==r?r:e.walletBranding.name)&&void 0!==l?l:"Wallet",icon:null!==(s=null===n||void 0===n?void 0:n.icon)&&void 0!==s?s:e.walletBranding.icon});try{let n=await e.connect({showPrompt:!0});if(!n)return x("error"),void(null===o||void 0===o||o(new D.P("Unable to connect wallet")));x("success"),(0,R.K)({address:n.address,client:n.walletClientType,appId:c.id}),setTimeout(()=>{t({connector:e,wallet:n})},L.q)}catch(e){var a,d;if(console.error("ERROR: ",{e:e}),null!==e&&void 0!==e&&null!==(a=e.message)&&void 0!==a&&a.includes("already pending for origin")||null!==e&&void 0!==e&&null!==(d=e.message)&&void 0!==d&&d.includes("wallet_requestPermissions"))return void console.log("Connection request already pending, maintaining loading state");x("error"),null===o||void 0===o||o(new D.P("Unable to connect wallet"))}}},[c.id,t,C]),A=(0,r.useCallback)(()=>y?(x(void 0),j(void 0),void b(void 0)):C?(x(void 0),void j(void 0)):v?(x(void 0),j(void 0),void f(void 0)):"error"===w||"loading"===w?(x(void 0),void j(void 0)):void(null===n||void 0===n||n()),[y,C,v,w,n]),E=(0,r.useMemo)(()=>(null===C||void 0===C?void 0:C.connector)===z&&y&&k.Fr&&null!==C&&void 0!==C&&C.name?h("connectWallet.goToWallet",{walletName:C.name}):(null===C||void 0===C?void 0:C.connector)===z&&y&&null!==C&&void 0!==C&&C.name?h("connectWallet.scanToConnect",{walletName:C.name}):y&&null!==C&&void 0!==C&&C.name?h(k.Fr?"connectWallet.goToWallet":"connectWallet.scanToConnect",{walletName:C.name}):"string"==typeof(null===C||void 0===C?void 0:C.connector)?h("connectWallet.openOrInstall",{walletName:C.name}):v&&!C?h("connectWallet.selectNetwork"):C?null:h("connectWallet.selectYourWallet"),[C,y,v,z,h]);return{selected:v,setSelected:f,qrUrl:y,setQrUrl:b,connecting:C,uiState:w,search:g,setSearch:m,wallets:u,walletCount:p,wc:z,isInitialConnectView:S,showSearchBar:I,title:E,handleConnect:W,handleBack:A,onClose:i,onConnect:t,app:a}}((0,i.A)((0,i.A)({},v),{},{walletList:S,walletChainType:j})),we=b.find(e=>"wallet_connect_v2"===e.connectorType),xe=b.find(e=>"walletconnect_solana"===e.walletBranding.id),ye=(0,r.useRef)(null),be=(je={count:K.length,getScrollElement:()=>ye.current,estimateSize:()=>56,overscan:6,gap:5},z((0,i.A)({observeElementRect:f,observeElementOffset:y,scrollToFn:C},je))),Ce=(0,r.useCallback)(async e=>{var t,n;let o="solana-only"!==j&&(null===(t=e.chains)||void 0===t?void 0:t.some(e=>e.startsWith("eip155"))),l="ethereum-only"!==j&&(null===(n=e.chains)||void 0===n?void 0:n.some(e=>e.startsWith("solana"))),r=t=>{let n=Z.normalize(e.id);return b.find(e=>Z.normalize(e.walletClientType)===n&&e.chainType===t&&!("ethereum"===e.chainType&&e instanceof R.w||"solana"===e.chainType&&e instanceof R.S))},s=async()=>{if(!we||!e.listing)return!1;let t=X[e.listing.slug]?(0,i.A)((0,i.A)({},e.listing),X[e.listing.slug]):e.listing;return we.setWalletEntry(t,P),await we.resetConnection(e.id),await G(we,{name:e.label,icon:e.icon}),!0},a=async()=>!!xe&&!!e.listing&&(await xe.disconnect(),xe.wallet.setWalletEntry(e.listing,P),await new Promise(e=>setTimeout(e,100)),await G(xe,{name:e.label,icon:e.icon}),!0),c=async t=>{let n=((t,n,i)=>{let o=R.q[e.id];if(o)return o.getMobileRedirect({isSolana:t,connectOnly:!!p,useUniversalLink:!1});let l=null===(n=e.listing)||void 0===n||null===(n=n.mobile)||void 0===n?void 0:n.native;return(null===(i=e.listing)||void 0===i||null===(i=i.mobile)||void 0===i?void 0:i.universal)||l||e.url})(t);return!!n&&(await G(n,{name:e.label,icon:e.icon}),!0)};if(o&&l)M(e);else{if(o&&!l){let t=r("ethereum");if(t&&!le(t))return void await G(t,{name:e.label,icon:e.icon});if(k.Fr&&"phantom"===e.id){if(await c(!1)||await s())return}else if(await s()||await c(!1))return}if(l&&!o){let t=r("solana");if(t&&!le(t))return void await G(t,{name:e.label,icon:e.icon});if(k.Fr){if(await c(!0)||await a())return}else if(await a()||await c(!0))return}if(!le(e.connector)){var d,h;if(we&&"wallet_connect_v2"===(null===(d=e.connector)||void 0===d?void 0:d.connectorType))if(await we.resetConnection(e.id),"w
1allet_connect_qr"!==e.id&&e.listing){let t=X[e.listing.slug]?(0,i.A)((0,i.A)({},e.listing),X[e.listing.slug]):e.listing;we.setWalletEntry(t,P)}else we.setWalletEntry({id:"wallet_connect_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect",homepage:"",chains:["eip155"],mobile:{native:"",universal:void 0}},P);return xe&&"walletconnect_solana"===(null===(h=e.connector)||void 0===h?void 0:h.walletBranding.id)&&(await xe.disconnect(),"wallet_connect_qr_solana"!==e.id&&e.listing?xe.wallet.setWalletEntry(e.listing,P):xe.wallet.setWalletEntry({id:"wallet_connect_solana_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect-solana",homepage:"",chains:["solana"],mobile:{native:"",universal:void 0}},P),await new Promise(e=>setTimeout(e,100))),void await G(e.connector,{name:e.label,icon:e.icon})}e.url&&await G(e.url,{name:e.label,icon:e.icon})}},[we,xe,G,M,P,j,p,b]);var je;return(0,r.useEffect)(()=>{if(!g)return;let e=K.find(e=>{let{id:t}=e;return t===g});e&&Ce(e).catch(console.error)},[g]),(0,l.jsxs)(V.S,{className:h,children:[(0,l.jsx)(V.S.Header,{icon:m&&se?void 0:U&&!F||F&&k.Fr&&null!==U&&void 0!==U&&U.icon?U.icon:U?void 0:$.W,iconVariant:U&&!F||F&&k.Fr?"loading":void 0,iconLoadingStatus:U&&!F||F&&k.Fr?{success:"success"===Q,fail:"error"===Q}:void 0,title:m&&se?void 0:U&&!F?x("connectWallet.waitingForWallet",{walletName:U.name}):F&&k.Fr?x("connectWallet.waitingForWallet",{walletName:null!==(n=null===U||void 0===U?void 0:U.name)&&void 0!==n?n:"connection"}):me,subtitle:m&&se?void 0:U&&!F&&"string"==typeof U.connector?x("connectWallet.installAndConnect",{walletName:U.name}):U&&!F&&"string"!=typeof U.connector?x("error"===Q?"connectWallet.tryConnectingAgain":"connectionStatus.connectOneWallet"):se?null!==u&&void 0!==u?u:E?x("connectWallet.connectToAccount",{appName:E.name}):null:null,showBack:!!I||!se,showClose:!0,onBack:I||te,onClose:W}),(0,l.jsxs)(V.S.Body,{ref:ye,$colorScheme:w.appearance.palette.colorScheme,style:{marginBottom:F?"0.5rem":void 0},children:[ie&&(0,l.jsx)(ae,{children:(0,l.jsxs)(_.E,{style:{background:"transparent"},children:[(0,l.jsx)(R.V,{children:(0,l.jsx)(c,{})}),(0,l.jsx)("input",{className:"login-method-button",type:"text",placeholder:x("connectWallet.searchPlaceholder",{count:String(Y)}),onChange:e=>fe(e.target.value),value:ve})]})}),F&&k.Fr&&"loading"===Q&&(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[(0,l.jsx)(A.B,{variant:"primary",onClick:()=>{var e;return window.open(null!==(e=F.universal)&&void 0!==e?e:F.native,"_blank")},style:{width:"100%"},children:x("connectWallet.openInApp")}),(0,l.jsx)(ge,{value:null!==(s=F.universal)&&void 0!==s?s:F.native,iconOnly:!0,children:"Copy link"})]}),F&&!k.Fr&&"loading"===Q&&(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:(0,l.jsx)(ge,{value:null!==(a=F.universal)&&void 0!==a?a:F.native,iconOnly:!0,children:x("connectWallet.copyLink")})}),F&&!k.Fr&&(0,l.jsx)(N.Q,{size:280,url:null!==(d=F.universal)&&void 0!==d?d:F.native,squareLogoElement:null!==U&&void 0!==U&&U.icon?"string"==typeof U.icon?e=>(0,l.jsx)("svg",(0,i.A)((0,i.A)({},e),{},{children:(0,l.jsx)("image",{href:U.icon,height:e.height,width:e.width})})):U.icon:q.h}),(0,l.jsxs)(ce,{children:[U&&!F&&"string"==typeof U.connector&&(0,l.jsxs)(de,{onClick:()=>window.open(U.connector,"_blank"),children:[U.icon&&("string"==typeof U.icon?(0,l.jsx)(ne,{src:U.icon}):(0,l.jsx)(U.icon,{})),(0,l.jsx)(pe,{children:U.name})]}),(null===T||void 0===T?void 0:T.chains.some(e=>e.startsWith("eip155")))&&!U&&(0,l.jsxs)(de,{onClick:()=>Ce((0,i.A)((0,i.A)({},T),{},{chains:T.chains.filter(e=>e.startsWith("eip155"))})),children:[T.icon&&("string"==typeof T.icon?(0,l.jsx)(ne,{src:T.icon}):(0,l.jsx)(T.icon,{})),(0,l.jsx)(pe,{children:T.label}),(0,l.jsx)(he,{children:(0,l.jsx)(J,{})})]}),(null===T||void 0===T?void 0:T.chains.some(e=>e.startsWith("solana")))&&!U&&(0,l.jsxs)(de,{onClick:()=>Ce((0,i.A)((0,i.A)({},T),{},{chains:T.chains.filter(e=>e.startsWith("solana"))})),children:[T.icon&&("string"==typeof T.icon?(0,l.jsx)(ne,{src:T.icon}):(0,l.jsx)(T.icon,{})),(0,l.jsx)(pe,{children:T.label}),(0,l.jsx)(he,{children:(0,l.jsx)(ee,{})})]}),se&&(0,l.jsxs)(l.Fragment,{children:[!(Y>0)&&(0,l.jsx)(ue,{children:x("connectWallet.noWalletsFound")}),Y>0&&!F&&(0,l.jsx)("div",{style:{maxHeight:56*Math.min(K.length,5)+5,width:"100%"},children:(0,l.jsx)("div",{style:{height:"".concat(be.getTotalSize(),"px"),width:"100%",position:"relative"},children:be.getVirtualItems().map(e=>(0,l.jsx)(re,{index:e.index,style:{position:"absolute",top:0,left:0,height:"".concat(e.size,"px"),transform:"translateY(".concat(e.start,"px)")},data:{wallets:K,walletChainType:j,handleWalletClick:Ce}},e.key))})})]})]})]}),(0,l.jsxs)(V.S.Footer,{children:[U&&!F&&"string"!=typeof U.connector&&"error"===Q&&(0,l.jsx)(V.S.Actions,{children:(0,l.jsx)(A.B,{style:{width:"100%",alignItems:"center"},variant:"error",onClick:()=>G(U.connector,{name:U.name,icon:U.icon}),children:x("connectWallet.retry")})}),!!(E&&E.legal.privacyPolicyUrl&&E.legal.termsAndConditionsUrl)&&(0,l.jsx)(O.T,{app:E,alwaysShowImplicitConsent:!0}),(0,l.jsx)(V.S.Watermark,{})]})]})};let ae=W.I4.div.withConfig({displayName:"StickySearchContainer",componentId:"sc-3f4ad407-0"})(["position:sticky;margin-top:-3px;padding-top:3px;top:-3px;z-index:1;background:var(--privy-color-background);padding-bottom:calc(var(--screen-space) / 2);
1"]),ce=W.I4.div.withConfig({displayName:"WalletListContainer",componentId:"sc-3f4ad407-1"})(["display:flex;flex-direction:column;gap:","px;"],5),de=W.I4.button.withConfig({displayName:"Button",componentId:"sc-3f4ad407-2"})(["&&{gap:0.5rem;align-items:center;display:flex;position:relative;text-align:left;font-weight:500;transition:background 200ms ease-in;width:calc(100% - 4px);border-radius:var(--privy-border-radius-md);padding:0.75em;border:1px solid var(--privy-color-foreground-4);justify-content:space-between;}&:hover{background:var(--privy-color-background-2);}"]),he=W.I4.span.withConfig({displayName:"ButtonBadge",componentId:"sc-3f4ad407-3"})(["display:flex;align-items:center;justify-content:end;position:relative;& > svg{border-radius:var(--privy-border-radius-full);stroke-width:2.5;width:100%;max-height:1rem;max-width:1rem;flex-shrink:0;}& > svg:not(:last-child){border-radius:var(--privy-border-radius-full);margin-right:-0.375rem;}"]),ue=W.I4.div.withConfig({displayName:"EmptyContainer",componentId:"sc-3f4ad407-4"})(["height:60px;display:flex;align-items:center;justify-content:center;text-align:center;"]),pe=W.I4.span.withConfig({displayName:"WalletName",componentId:"sc-3f4ad407-5"})(["text-overflow:ellipsis;white-space:nowrap;color:var(--privy-color-foreground);font-weight:400;flex:1;"]),ge=(0,W.I4)(G).withConfig({displayName:"StyledCopyableText",componentId:"sc-3f4ad407-6"})(["&&{margin:0.5rem auto 0 auto;}"])},43122:(e,t,n)=>{n.d(t,{S:()=>E});var i=n(24107),o=n(15882),l=n(90034),r=n(57722),s=n(52610),a=n(1991),c=n(33898),d=n(76107);const h=["children"],u=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],p=["children"],g=["children"],m=["children"],v=["children"],f=s.I4.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),w=s.I4.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),x=s.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),y=(0,s.I4)(c.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),b=s.I4.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],e=>{let{$colorScheme:t}=e;return"light"===t?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===t?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0}),C=s.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let j=s.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),S=s.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),I=s.I4.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),z=s.I4.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),k=s.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
1height:64px;display:flex;align-items:center;justify-content:center;"],e=>{let{$variant:t}=e;switch(t){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),W=s.I4.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),A=s.I4.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}"]);const E=e=>{let{children:t}=e,n=(0,o.A)(e,h);return(0,l.jsx)(f,{children:(0,l.jsx)(w,(0,i.A)((0,i.A)({},n),{},{children:t}))})};let T=s.I4.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),M=(0,s.I4)(c.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),F=s.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"})(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],e=>{let{pct:t}=e;return t}),O=e=>{let{step:t}=e;return t?(0,l.jsx)(T,{children:(0,l.jsx)(F,{pct:Math.min(100,t.current/t.total*100)})}):null};E.Header=e=>{let{title:t,subtitle:n,icon:r,iconVariant:s,iconLoadingStatus:a,showBack:c,onBack:d,showInfo:h,onInfo:p,showClose:g,onClose:m,step:v}=e,f=(0,o.A)(e,u);return(0,l.jsxs)(x,(0,i.A)((0,i.A)({},f),{},{children:[(0,l.jsx)(y,{backFn:c?d:void 0,infoFn:h?p:void 0,onClose:g?m:void 0,closeable:g}),(r||s||t||n)&&(0,l.jsxs)(j,{children:[r||s?(0,l.jsx)(E.Icon,{icon:r,variant:s,loadingStatus:a}):null,(0,l.jsxs)(S,{children:[t&&(0,l.jsx)(I,{children:t}),n&&(0,l.jsx)(z,{children:n})]})]}),v&&(0,l.jsx)(O,{step:v})]}))},(E.Body=r.forwardRef((e,t)=>{let{children:n}=e,r=(0,o.A)(e,p);return(0,l.jsx)(b,(0,i.A)((0,i.A)({ref:t},r),{},{children:n}))})).displayName="Screen.Body",E.Footer=e=>{let{children:t}=e,n=(0,o.A)(e,g);return(0,l.jsx)(C,(0,i.A)((0,i.A)({id:"privy-content-footer-container"},n),{},{children:t}))},E.Actions=e=>{let{children:t}=e,n=(0,o.A)(e,m);return(0,l.jsx)(N,(0,i.A)((0,i.A)({},n),{},{children:t}))},E.HelpText=e=>{let{children:t}=e,n=(0,o.A)(e,v);return(0,l.jsx)(_,(0,i.A)((0,i.A)({},n),{},{children:t}))},E.Watermark=()=>(0,l.jsx)(M,{}),E.Icon=e=>{let{icon:t,variant:n="subtle",loadingStatus:i}=e;return"logo"===n&&t?(0,l.jsx)(W,"string"==typeof t?{children:(0,l.jsx)("img",{src:t,alt:""})}:r.isValidElement(t)?{children:t}:{children:r.createElement(t)}):"loading"===n?t?(0,l.jsx)(A,{children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,l.jsx)(a.a4,{success:null===i||void 0===i?void 0:i.success,fail:null===i||void 0===i?void 0:i.fail}),"string"==typeof t?(0,l.jsx)("span",{style:{background:"url('".concat(t,"') 0 0 / contain"),height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):r.isValidElement(t)?r.cloneElement(t,{style:{width:"38px",height:"38px"}}):r.createElement(t,{style:{width:"38px",height:"38px"}})]})}):(0,l.jsx)(k,{$variant:n,children:(0,l.jsx)(d.N,{size:"64px"})}):(0,l.jsx)(k,{$variant:n,children:t&&("string"==typeof t?(0,l.jsx)("img",{src:t,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):r.isValidElement(t)?t:r.createElement(t,{width:32,height:32,stroke:(()=>{switch(n){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))})};let N=s.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),_=s.I4.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},57511:(e,t,n)=>{n.d(t,{W:()=>r});var i=n(24107),o=n(92030),l=n(90034);const r=e=>{let t=Object.assign({},((0,o.A)(e),e));return(0,l.jsxs)("svg",(0,i.A)((0,i.A)({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),{},{children:[(0,l.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,l.jsx)("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),(0,l.jsx)("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]}))}},61300:(e,t,n)=>{n.d(t,{E:()=>i});const i=n(52610).I4.span.withConfig({displayName:"ErrorMessage",componentId:"sc-fcb8cd50-0"})(["text-align:left;font-size:0.75rem;font-weight:500;line-height:1.125rem;color:var(--privy-color-error);"])},76107:(e,t,n)=>{n.d(t,{N:()=>l});var i=n(90034),o=n(52610);const l=e=>{let{size:t,centerIcon:n}=e;return(0,i.jsx)(r,{$size:t,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),n?(0,i.jsx)(a,{children:n}):null]})})};let r=o.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),s=o.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),a=o.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),c=o.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),d=o.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])},86640:(e,t,n)=>{n.d(t,{C:()=>s});var i=n(24107),o=n(15882),l=n(90034);const r=["color"],s=e=>{let{color:t}=e,n=(0,o.A)(e,r);return(0,l.jsx)("svg",(0,i.A)((0,i.A)({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve"},n),{},{children:(0,l.jsx)("g",{children:(0,l.jsx)("path",{fill:t||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.5
17,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})}))}},86913:(e,t,n)=>{n.d(t,{Q:()=>f});var i=n(90034),o=n(44036),l=n(57722),r=n(52610),s=n(99844),a=n(1991);const c=()=>(0,i.jsx)("svg",{width:"200",height:"200",viewBox:"-77 -77 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px"},children:(0,i.jsx)("rect",{width:"50",height:"50",fill:"black",rx:10,ry:10})});let d=(e,t,n,i,o)=>{for(let l=t;l<t+i;l++)for(let t=n;t<n+o;t++){let n=null===e||void 0===e?void 0:e[t];n&&n[l]&&(n[l]=0)}return e},h=e=>{let{x:t,y:n,cellSize:o,bgColor:l,fgColor:r}=e;return(0,i.jsx)(i.Fragment,{children:[0,1,2].map(e=>(0,i.jsx)("circle",{r:o*(7-2*e)/2,cx:t+7*o/2,cy:n+7*o/2,fill:e%2!=0?l:r},"finder-".concat(t,"-").concat(n,"-").concat(e)))})},u=e=>{let{cellSize:t,matrixSize:n,bgColor:o,fgColor:l}=e;return(0,i.jsx)(i.Fragment,{children:[[0,0],[(n-7)*t,0],[0,(n-7)*t]].map(e=>{let[n,r]=e;return(0,i.jsx)(h,{x:n,y:r,cellSize:t,bgColor:o,fgColor:l},"finder-".concat(n,"-").concat(r))})})},p=e=>{let{matrix:t,cellSize:n,color:o}=e;return(0,i.jsx)(i.Fragment,{children:t.map((e,t)=>e.map((e,r)=>e?(0,i.jsx)("rect",{height:n-.4,width:n-.4,x:t*n+.1*n,y:r*n+.1*n,rx:.5*n,ry:.5*n,fill:o},"cell-".concat(t,"-").concat(r)):(0,i.jsx)(l.Fragment,{},"circle-".concat(t,"-").concat(r))))})},g=e=>{let{cellSize:t,matrixSize:n,element:o,sizePercentage:l,bgColor:r}=e;if(!o)return(0,i.jsx)(i.Fragment,{});let s=n*(l||.14),a=Math.floor(n/2-s/2),c=Math.floor(n/2+s/2);(c-a)%2!=n%2&&(c+=1);let d=(c-a)*t,h=d-.2*d,u=a*t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("rect",{x:a*t,y:a*t,width:d,height:d,fill:r}),(0,i.jsx)(o,{x:u+.1*d,y:u+.1*d,height:h,width:h})]})},m=e=>{var t;let n=e.outputSize,l=((e,t)=>{let n=o.create(e,{errorCorrectionLevel:t}).modules,i=(0,a.a3)(Array.from(n.data),n.size);return i=d(i,0,0,7,7),i=d(i,i.length-7,0,7,7),d(i,0,i.length-7,7,7)})(e.url,e.errorCorrectionLevel),r=n/l.length,s=(0,a.a2)(2*r,{min:.025*n,max:.036*n});return(0,i.jsxs)("svg",{height:e.outputSize,width:e.outputSize,viewBox:"0 0 ".concat(e.outputSize," ").concat(e.outputSize),style:{height:"100%",width:"100%",padding:"".concat(s,"px")},children:[(0,i.jsx)(p,{matrix:l,cellSize:r,color:e.fgColor}),(0,i.jsx)(u,{cellSize:r,matrixSize:l.length,fgColor:e.fgColor,bgColor:e.bgColor}),(0,i.jsx)(g,{cellSize:r,element:null===(t=e.logo)||void 0===t?void 0:t.element,bgColor:e.bgColor,matrixSize:l.length})]})},v=r.I4.div.attrs({className:"ph-no-capture"}).withConfig({displayName:"QrContainer",componentId:"sc-597e27f3-0"})(["display:flex;justify-content:center;align-items:center;height:",";width:",";margin:auto;background-color:",";&&{border-width:2px;border-color:",";border-radius:var(--privy-border-radius-md);}"],e=>"".concat(e.$size,"px"),e=>"".concat(e.$size,"px"),e=>e.$bgColor,e=>e.$borderColor);const f=e=>{var t;let{appearance:n}=(0,s.u)(),o=e.bgColor||"#FFFFFF",l=e.fgColor||"#000000",r=e.size||160,a="dark"===n.palette.colorScheme?o:l;return(0,i.jsx)(v,{$size:r,$bgColor:o,$fgColor:l,$borderColor:a,children:(0,i.jsx)(m,{url:e.url,logo:{element:null!==(t=e.squareLogoElement)&&void 0!==t?t:c},outputSize:r,bgColor:o,fgColor:l,errorCorrectionLevel:e.errorCorrectionLevel||"Q"})})}},96581:(e,t,n)=>{n.d(t,{E:()=>r,I:()=>a,a:()=>s});var i=n(52610),o=n(61300);let l=i.I4.label.withConfig({displayName:"BaseEmailForm",componentId:"sc-f34af797-0"})(["display:block;position:relative;width:100%;height:56px;&& > :first-child{position:absolute;
1left:0.75em;top:50%;transform:translate(0,-50%);}&& > input{font-size:16px;line-height:24px;color:var(--privy-color-foreground);padding:12px 88px 12px 52px;flex-grow:1;background:var(--privy-color-background);border:1px solid ",";border-radius:var(--privy-border-radius-md);width:100%;height:100%;@media (min-width:441px){font-size:14px;padding-right:78px;}:focus{outline:none;border-color:",";box-shadow:",";}:autofill,:-webkit-autofill{background:var(--privy-color-background);}&& > input::placeholder{color:var(--privy-color-foreground-3);}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}"],e=>{let{$error:t}=e;return t?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"},e=>{let{$error:t}=e;return t?"var(--privy-color-error) !important":"var(--privy-color-accent-light)"},e=>{let{$error:t}=e;return t?"none":"0 0 0 1px var(--privy-color-accent-light)"});const r=(0,i.I4)(l).withConfig({displayName:"EmailUpdateForm",componentId:"sc-f34af797-1"})(["background-color:var(--privy-color-background);transition:background-color 200ms ease;&& > button{right:0;line-height:24px;position:absolute;padding:13px 17px;background-color:#090;:focus{outline:none;border-color:var(--privy-color-accent);}}"]),s=(0,i.I4)(l).withConfig({displayName:"EmailInputForm",componentId:"sc-f34af797-2"})(["&& > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:",";border:1px solid ",";&& > input::placeholder{color:var(--privy-color-foreground-3);}}&& > :last-child{right:16px;position:absolute;top:50%;transform:translate(0,-50%);}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}}"],e=>e.$stacked?"16px":"88px",e=>{let{$error:t}=e;return t?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"}),a=i.I4.div.withConfig({displayName:"InputContainerForm",componentId:"sc-f34af797-3"})(["width:100%;&& > ","{display:block;text-align:left;padding-left:var(--privy-border-radius-md);padding-bottom:5px;}"],o.E)}}]); 2//# sourceMappingURL=6563.1cad1847.chunk.js.map
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.