PageSourceSearch

https://app.floppydata.com/assets/AuthDialogueContext-Dr94a5EQ.js

js floppydata.com collected 2026-10-01 14:47:47 UTC 22,079 bytes, 3 lines download raw bytes

1import{_ as e,d as t,f as n,o as r}from"./tslib.es6-BxDtxuQE.js";import{t as i}from"./module-B3IRtgij.js";import{t as a}from"./determineEnv-BaG4QZuN.js";import{i as o,t as s}from"./honoClient-fcjM7mhX.js";import{t as c}from"./index-Bb8ROtWv.js";import{n as l,t as u}from"./middleware-DLoy8ZA_.js";import{i as d,n as f,r as ee,t as p}from"./analytics-Tv98pBtK.js";import{t as m}from"./createLucideIcon-CUblpHg_.js";var h=e(n(),1),g=t(),_=`walletPendingOrder`;function v(e){try{sessionStorage.setItem(_,JSON.stringify(e))}catch{}}function y(){try{let e=sessionStorage.getItem(_);if(!e)return null;let t=JSON.parse(e);return typeof t!=`object`||!t||!(`items`in t)||!Array.isArray(t.items)||t.items.length===0?null:t}catch{return null}}function b(){try{sessionStorage.removeItem(_)}catch{}}var x=`wallet`,S={balanceCents:0,transactions:[]};function C(e){let t=e.type===`topup`?`top_up`:e.type===`refund`||e.type===`adjust`?`refund`:`purchase`,n=(()=>{switch(e.type){case`topup`:return`Top-up`;case`purchase`:return e.orderId?`Order ${e.orderId}`:`Purchase`;case`refund`:return`Refund`;case`clawback`:return`Refunded top-up reversed`;case`adjust`:return`Balance adjustment`;default:return`Wallet activity`}})();return{id:String(e.id),kind:t,amountCents:e.amountCents,description:n,createdAt:e.createdAt}}async function w(){let[e,t]=await Promise.all([s.wallet.$get(),s.wallet.transactions.$get({query:{limit:`25`}})]);if(!e.ok)throw Error(`Failed to load wallet balance`);let n=await e.json(),r=t.ok?await t.json():{transactions:[]};return{balanceCents:n.balanceCents,transactions:r.transactions.map(C)}}function te(){let e=(0,g.c)(5),{session:t}=r(),{data:n,error:i,isLoading:a,mutate:o}=c(t?x:null,w),s=n??S,l;return e[0]!==i||e[1]!==a||e[2]!==o||e[3]!==s?(l={...s,error:i,isLoading:a,refresh:o},e[0]=i,e[1]=a,e[2]=o,e[3]=s,e[4]=l):l=e[4],l}var T=l()(e=>({isOpen:!1,prefillCents:0,focus:`top`,openWalletSheet:t=>e({isOpen:!0,prefillCents:t?.prefillCents??0,focus:t?.focus??`top`}),setWalletSheetOpen:t=>e({isOpen:t})}));function ne(e){T.getState().openWalletSheet(e)}var E={1e4:{priceCents:900},1e5:{priceCents:8900}},D=`http://ip-api.com/json`,O=1e6,k=e=>Symbol.iterator in e,A=e=>`entries`in e,j=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!Object.is(t,r.get(e)))return!1;return!0},re=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function ie(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t?!1:!k(e)||!k(t)?j({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)}):A(e)&&A(t)?j(e,t):re(e,t)}function ae(e){let t=h.useRef(void 0);return n=>{let r=e(n);return ie(t.current,r)?t.current:t.current=r}}function M(e){return()=>e(ae(e=>{let t=Object.keys(e),n={};for(let r of t)n[r]=e[r];return n}))}var oe={paymentMethod:`credit_debit_card`,isRecurring:!0,productType:`rotating`,walletRemainderGateway:`credit_debit_card`},N=l()(u((e,t)=>({...oe,setPaymentMethod:t=>e({paymentMethod:t}),setWalletRemainderGateway:t=>e({walletRemainderGateway:t}),setCoupon:n=>{n&&t().productType!==`rotating`||e({coupon:n})},setReccuring:t=>e({isRecurring:t}),setProductType:t=>{let n={productType:t};t!==`rotating`&&(n.coupon=void 0),e(n)}}),{name:`payment-details-store-local-storage`,version:4,migrate(){return{paymentMethod:`credit_debit_card`,productType:`rotating`,walletRemainderGateway:`credit_debit_card`}}})),se=M(N);function ce(e){return`$${e/100}/GB`}var P=150,F=100,le={title:`Rotating Proxies`,type:`unified`,productType:`proxy_gb`,description:`Real home, mobile, and datacenter IPs from a single shared pool.
2 One balance, one price, swap proxy type at any time.`,defaultQuantity:20,minQuantity:19,footerText:`Unused traffic will roll over to next billing period`,step:5,pricing:{price:P/100,subscriptionPrice:F/100,priceStr:ce(P),subscriptionPriceStr:ce(F),priceCents:P,subscriptionPriceCents:F}},ue=[`residential`,`mobile`,`datacenter`];function I(e){if(!e)return`newCustomer`;let t=new Date(e).getTime();return t>=new Date(`2026-07-08T00:00:00.000Z`).getTime()&&t<new Date(`2026-07-15T00:00:00.000Z`).getTime()?`experiment`:`newCustomer`}var de=[14,40,85,250],fe=[19,50,100,250],pe={min:500,step:100},me={min:500,step:100},he=[14,40,85,250,500],ge=[19,50,100,250,500],L=[{gb:14,subscriptionPriceCents:1900},{gb:40,subscriptionPriceCents:5e3},{gb:85,subscriptionPriceCents:1e4},{gb:250,subscriptionPriceCents:25e3}];function R(e){let t=L[0];for(let n of L)e>=n.gb&&(t=n);return t}function _e(e,t){let n=R(e),r=n.subscriptionPriceCents/n.gb;return t===`expiring`?r:P/F*r}function ve(e){let t=L[0],n=t.subscriptionPriceCents/t.gb,r=R(e),i=r.subscriptionPriceCents/r.gb;return i>=n?0:Math.round((n-i)/n*100)}function ye(e){return I(e)===`experiment`}function be(e){return I(e)===`experiment`?14:19}function xe(e){return I(e)===`experiment`?14:19}function Se(e){return I(e)===`experiment`?de:fe}function Ce(e){return I(e)===`experiment`?pe:me}
2function we(e){return I(e)===`experiment`?he:ge}var z=19;function Te(e){return e?.type===`add_fixed_amount_gb`}function Ee(e){let{coupon:t,quantityGb:n}=e;return Te(t)?n>=z:!0}var De={coupon_not_found:`Promo code not found`,coupon_expired:`Promo code expired`,coupon_use_limit_exceeded:`Promo code already used`,coupon_first_purchase_only:`Promo code valid on first purchase only`,ip_discount_not_allowed:`Promo code cannot be used with static IPs`,discount_type_not_allowed:`Promo code is not available for this purchase`,coupon_min_quantity_not_met:`Promo code applies from ${z} GB`},B=e=>De[e];function V(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){V(a,r,i,o,s,`next`,e)}function s(e){V(a,r,i,o,s,`throw`,e)}o(void 0)})}}function ke(e,t,n){return(t=Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H(Object(n),!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(e,t){if(e==null)return{};var n,r,i=Ae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function G(){G=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.asyncIterator||`@@asyncIterator`,c=a.toStringTag||`@@toStringTag`;function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},``)}catch{l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype);return i(o,`_invoke`,{value:te(e,n,new D(r||[]))}),o}function d(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}t.wrap=u;var f=`suspendedStart`,ee=`suspendedYield`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};l(y,o,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==n&&r.call(x,o)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);function C(e){[`next`,`throw`,`return`].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if(c.type!==`throw`){var l=c.arg,u=l.value;return u&&typeof u==`object`&&r.call(u,`__await`)?t.resolve(u.__await).then(function(e){n(`next`,e,o,s)},function(e){n(`throw`,e,o,s)}):t.resolve(u).then(function(e){l.value=e,o(l)},function(e){return n(`throw`,e,o,s)})}s(c.arg)}var a;i(this,`_invoke`,{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return a=a?a.then(i,i):i()}})}function te(t,n,r){var i=f;return function(a,o){if(i===p)throw Error(`Generator is already running`);if(i===m){if(a===`throw`)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===h)continue;return c}}if(r.method===`next`)r.sent=r._sent=r.arg;else if(r.method===`throw`){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else r.method===`return`&&r.abrupt(`return`,r.arg);i=p;var l=d(t,n,r);if(l.type===`normal`){if(i=r.done?m:ee,l.arg===h)continue;return{value:l.arg,done:r.done}}l.type===`throw`&&(i=m,r.method=`throw`,r.arg=l.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,r===`throw`&&t.iterator.return&&
vendor: 5,150 bytes, line 2
2(n.method=`return`,n.arg=e,T(t,n),n.method===`throw`)||r!==`return`&&(n.method=`throw`,n.arg=TypeError(`The iterator does not provide a '`+r+`' method`)),h;var a=d(i,t.iterator,n.arg);if(a.type===`throw`)return n.method=`throw`,n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,n.method!==`return`&&(n.method=`next`,n.arg=e),n.delegate=null,h):o:(n.method=`throw`,n.arg=TypeError(`iterator result is not an object`),n.delegate=null,h)}function ne(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(ne,this),this.reset(!0)}function O(t){if(t||t===``){var n=t[o];if(n)return n.call(t);if(typeof t.next==`function`)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw TypeError(typeof t+` is not iterable`)}return _.prototype=v,i(S,`constructor`,{value:v,configurable:!0}),i(v,`constructor`,{value:_,configurable:!0}),_.displayName=l(v,c,`GeneratorFunction`),t.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===_||(t.displayName||t.name)===`GeneratorFunction`)},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,`GeneratorFunction`)),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(w.prototype),l(w.prototype,s,function(){return this}),t.AsyncIterator=w,t.async=function(e,n,r,i,a){a===void 0&&(a=Promise);var o=new w(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},C(S),l(S,c,`Generator`),l(S,o,function(){return this}),l(S,`toString`,function(){return`[object Generator]`}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=`next`,this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)n.charAt(0)===`t`&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type=`throw`,s.arg=t,n.next=r,i&&(n.method=`next`,n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=r.call(o,`catchLoc`),l=r.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error(`try statement without catch or finally`);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;E(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},this.method===`next`&&(this.arg=e),h}},t}function je(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Me(e){var t=je(e,`string`);return typeof t==`symbol`?t:t+``}var K={CLASSIC:`classic`,V1:`v1`},Ne=K.V1,Pe=`https://cdn.paddle.com/paddle/paddle.js`,Fe=`https://cdn.paddle.com/paddle/v2/paddle.js`,Ie={url:Pe},Le={url:Fe};function Re(e){return document.querySelector(`script[src="${e}"]`)||void 0}function ze(e){var t=document.createElement(`script`);t.src=e;var n=document.head||document.body;if(!n)throw Error(`Cannot inject Paddle.js. It needs a <head> or <body> element.`);return n.appendChild(t),t}var q={classic:void 0,v1:void 0},Be={classic:`PaddleClassic`,v1:`PaddleBillingV1`};function Ve(e){var t=He(e)?.url;if(t){var n=q[e],r=Be[e];
2return n===void 0?(q[e]=new Promise(function(n,i){if(typeof window>`u`){n(void 0);return}if(window[r]){n(window[r]);return}try{var a=Re(t);a||=ze(t),a.addEventListener(`load`,function(){window[r]?n(window[r]):i(Error(`Paddle.js not available`))}),a.addEventListener(`error`,function(){i(Error(`Failed to load Paddle.js - ${e}`))})}catch(e){i(e);return}}),q[e]):n}}function He(e){if(e===K.CLASSIC)return Ie;if(e===K.V1)return Le;console.error(`[Paddle] Unknown Paddle Version`)}var Ue=[`environment`,`version`],We=[`environment`,`version`];function Ge(e,t){var n=e.environment;e.version;var r=W(e,Ue);try{n&&t.Environment.set(n),t.Initialized?t.Update(U({},r)):t.Initialize(U({},r))}catch(e){console.warn(`[Paddle] Paddle Initialization failed. Please check the inputs`,e)}}function Ke(e,t){var n=e.environment;e.version;var r=W(e,We);try{n&&t.Environment.set(n),t.Setup(U({},r))}catch(e){console.warn(`[Paddle] Paddle Initialization failed. Please check the inputs`,e)}}var qe;(function(e){e.CHECKOUT_LOADED=`checkout.loaded`,e.CHECKOUT_CLOSED=`checkout.closed`,e.CHECKOUT_UPDATED=`checkout.updated`,e.CHECKOUT_COMPLETED=`checkout.completed`,e.CHECKOUT_ERROR=`checkout.error`,e.CHECKOUT_FAILED=`checkout.failed`,e.CHECKOUT_ITEMS_UPDATED=`checkout.items.updated`,e.CHECKOUT_ITEMS_REMOVED=`checkout.items.removed`,e.CHECKOUT_CUSTOMER_CREATED=`checkout.customer.created`,e.CHECKOUT_CUSTOMER_UPDATED=`checkout.customer.updated`,e.CHECKOUT_CUSTOMER_REMOVED=`checkout.customer.removed`,e.CHECKOUT_PAYMENT_SELECTED=`checkout.payment.selected`,e.CHECKOUT_PAYMENT_INITIATED=`checkout.payment.initiated`,e.CHECKOUT_PAYMENT_FAILED=`checkout.payment.failed`,e.CHECKOUT_DISCOUNT_APPLIED=`checkout.discount.applied`,e.CHECKOUT_DISCOUNT_REMOVED=`checkout.discount.removed`})(qe||={});var Je;(function(e){e.DAY=`day`,e.WEEK=`week`,e.MONTH=`month`,e.YEAR=`year`})(Je||={});var Ye;(function(e){e.ALIPAY=`alipay`,e.APPLE_PAY=`apple-pay`,e.CARD=`card`,e.GOOGLE_PAY=`google-pay`,e.IDEAL=`ideal`,e.PAYPAL=`paypal`,e.WIRE_TRANSFER=`wire-transfer`,e.NONE=`none`})(Ye||={});var Xe;(function(e){e.AMERICAN_EXPRESS=`american_express`,e.DINERS_CLUB=`diners_club`,e.DISCOVER=`discover`,e.JCB=`jcb`,e.MADA=`mada`,e.MAESTRO=`maestro`,e.MASTER_CARD=`mastercard`,e.UNION_PAY=`union_pay`,e.VISA=`visa`,e.UNKNOWN=`unknown`})(Xe||={});var Ze;(function(e){e.DRAFT=`draft`,e.READY=`ready`,e.COMPLETED=`completed`,e.BILLED=`billed`,e.canceled=`canceled`,e.PAST_DUE=`past_due`})(Ze||={});function Qe(e){return J.apply(this,arguments)}function J(){return J=Oe(G().mark(function e(t){var n,r;return G().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?.version||Ne,e.next=3,Ve(n);case 3:if(r=e.sent,!r){e.next=9;break}return t&&(n===K.V1?Ge(t,r):n===K.CLASSIC&&Ke(t,r)),e.abrupt(`return`,r);case 9:return console.error(`[Paddle] Error Loading Paddle`),e.abrupt(`return`);case 11:case`end`:return e.stop()}},e)})),J.apply(this,arguments)}var $e=/^txn_[a-z0-9]+$/,et=e=>{let t=e.get(`_ptxn`);return!t||!$e.test(t)?null:t},tt=async e=>{(await Qe({token:`live_efe71d1291f4b30eee2e7f47351`,environment:a()===`prod`?`production`:`sandbox`}))?.Checkout.open({transactionId:e,settings:{allowLogout:!1,showAddDiscounts:!1,successUrl:`${window.location.origin}/payment/success`,variant:`one-page`}})},Y=async e=>{let t=await o(),{setCoupon:n}=N.getState();if(!t)return;let r=localStorage.getItem(`gclid`),a=localStorage.getItem(`utm_source`),c=localStorage.getItem(`utm_campaign`),l=localStorage.getItem(`utm_medium`),u=ee(),m=d();r&&(e.gclid=r),a&&(e.utm_source=a),c&&(e.utm_campaign=c),l&&(e.utm_medium=l),u&&(e.ga_cid=u),m&&(e.ga_sid=m);let h=f(),g=p();if(h&&(e.fbp=h),g&&(e.fbc=g),e.items.some(e=>e.product===`ip`)&&e.gateway===`paypal`&&(e.gateway=`credit_debit_card`),e.posthog_sid=i.get_session_id(),e.items.length===0)return;let _=await s.checkout.create.$post({json:{order:e}});if(_.ok){n(void 0);let e=await _.json();if(localStorage.setItem(`lastOrderId`,e.orderId),e.paid)return{paid:!0,balanceCents:e.balanceCents};if(!e.url)return null;e.gateway===`paddle`?await tt(e.url):window.location.href=e.url}else try{let e=await _.json();if(e&&`code`in e&&!(`message`in e)){let t=B(e.code);
2if(t)return{...e,message:t}}return e}catch{return null}};function nt(e){return e.some(e=>e.product===`proxy_gb`)?`/proxies/credentials`:e.some(e=>e.product===`webunlocker`)?`/tools/scrape`:e.some(e=>e.product===`ip`||e.product===`ip_renewal`)?`/proxies/static`:`/`}async function rt(e){let{items:t,source:n,promocode:r,totalUsd:a}=e,o=a===void 0?void 0:Math.round(a*100),s=await Y({gateway:`wallet`,items:t,promocode:r});if(s&&`paid`in s)return i.capture(`wallet:pay`,{source:n,outcome:`paid`,shownCents:o}),{outcome:`paid`,balanceCents:s.balanceCents};if(s&&typeof s==`object`&&`requiredCents`in s&&`balanceCents`in s){let e=Number(s.requiredCents),t=Number(s.balanceCents);return i.capture(`wallet:pay`,{source:n,outcome:`short`,shownCents:o,shortfallCents:e-t}),{outcome:`short`,shortfallCents:Math.max(0,e-t),balanceCents:t}}let c=s&&typeof s==`object`&&`message`in s?String(s.message):`The wallet payment could not be completed`;return i.capture(`wallet:pay`,{source:n,outcome:`rejected`,shownCents:o}),{outcome:`rejected`,message:c}}async function it(e){let{shortfallCents:t,gateway:n,order:r}=e,a=Math.max(t,100);v(r),i.capture(`wallet:top_up_shortfall`,{source:r.source,shortfallCents:t,amountCents:a,gateway:n});let o=await Y({gateway:n,items:[{product:`wallet_topup`,amount_cents:a}]});return o&&typeof o==`object`&&`message`in o?(b(),{ok:!1,message:String(o.message)}):{ok:!0}}var at=m(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),ot=[20,50,100,250],X=5e4,Z=5e3,Q=O;function st(e){let t=e.replace(/[$,\s]/g,``);if(!/^\d*\.?\d*$/.test(t)||t===``||t===`.`)return null;let n=Number(t);return Number.isFinite(n)?Math.round(n*100):null}function ct(e){if(!Number.isFinite(e)||e<=0)return Z;let t=Math.ceil(e/Z);return Math.min(Q,t*Z)}function lt(e,t){return Math.max(Z,Math.min(Q,(Number.isFinite(e)?e:X)+t*Z))}var ut=1e4;function dt(e){if(!Number.isFinite(e)||e<=0)return ut;let t=ot.find(t=>t*100>=e);if(t)return t*100;let n=Math.ceil((e-X)/Z);return Math.min(Q,X+Math.max(0,n)*Z)}function ft({hasSession:e,knowsTotal:t}){return e&&t}function pt(e){return!Number.isFinite(e)||e<=0?0:Math.round(e*100)}function mt(e){let t=Number.isFinite(e)?e:0,n=t/100;return`$${t%100==0?n.toLocaleString(`en-US`):n.toLocaleString(`en-US`,{minimumFractionDigits:2,maximumFractionDigits:2})}`}function ht(e,t){let n=Number.isFinite(e)?Math.max(0,e):0,r=Math.min(n,Number.isFinite(t)?Math.max(0,t):0);return{walletCents:r,gatewayCents:n-r,coversTotal:r===n}}function $(e,t){return Math.max(0,(Number.isFinite(e)?Math.max(0,e):0)-(Number.isFinite(t)?Math.max(0,t):0))}function gt({costCents:e,balanceCents:t,enabled:n}){return n||$(e,t)===0}var _t={credit_debit_card:`Credit card`,crypto:`Crypto`,paypal:`PayPal`,wallet:`Wallet`};function vt(e,t){return e===`wallet`?t:e}var yt=(0,h.createContext)({isAuthDialogueOpen:!1,setIsAuthDialogueOpen:()=>{},openAuthDialogue:()=>{}});export{Ce as A,M as B,Y as C,Ee as D,B as E,_e as F,te as G,E as H,we as I,b as K,ye as L,be as M,Se as N,ue as O,ve as P,se as R,it as S,tt as T,ne as U,D as V,T as W,lt as _,ot as a,nt as b,gt as c,$ as d,ft as f,ht as g,ct as h,Q as i,xe as j,le as k,mt as l,dt as m,ut as n,X as o,st as p,y as q,_t as r,Z as s,yt as t,vt as u,pt as v,et as w,rt as x,at as y,N as z};
3//# sourceMappingURL=AuthDialogueContext-Dr94a5EQ.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.