PageSourceSearch

https://rslbot.com/assets/payment-DGDFhEs9.js

js rslbot.com collected 2026-10-10 00:14:20 UTC 2,095 bytes, 1 lines download raw bytes

1import{a as i}from"./sessionStore-Bcbm2MRo.js";function u(t){var e;return(e=t.items)!=null&&e.length?{items:t.items.map(n=>({license_duration:n.duration,tier:n.tier,quantity:n.quantity,farmer:n.farmer||void 0}))}:{}}function d(t,e,n){return i("/admin/payment/bitcoin/cancel",{method:"POST",body:JSON.stringify({orderReference:e,reason:n})},t)}function s(t,e){var o;return((o=[...(t==null?void 0:t.farmerDiscounts)||[]].sort((r,c)=>c.minimum-r.minimum).find(r=>e>=r.minimum))==null?void 0:o.percent)||0}function y(t){return i("/payment/catalog",{signal:t})}async function m(t,e,n){const o=await i(`/payment/${t}/create-checkout`,{method:"POST",body:JSON.stringify({license_duration:n.licenseDuration,tier:n.tier,renewal_key_id:n.renewalKey||"0",quantity:n.quantity&&n.quantity>1?n.quantity:void 0,...u(n)})},e),r=new URL(o.checkoutUrl),c=t==="stripe"?["checkout.stripe.com"]:["www.paypal.com","www.sandbox.paypal.com"];if(r.protocol!=="https:"||!c.includes(r.hostname))throw new Error("Invalid checkout URL");return o}function f(t,e){return i("/payment/bitcoin/create-order",{method:"POST",body:JSON.stringify({license_duration:e.licenseDuration,tier:e.tier,renewal_key_id:e.renewalKey||"0",quantity:e.quantity&&e.quantity>1?e.quantity:void 0,...u(e)})},t)}function l(t,e){return i("/admin/payment/bitcoin/orders",{signal:e},t)}async function w(t,e){return(await i("/payment/bitcoin/orders",{signal:e},t)).orders||[]}function h(t,e){return i(`/payment/bitcoin/order?reference=${encodeURIComponent(e)}`,{method:"DELETE"},t)}function p(t,e){return i(`/payment/bitcoin/cancelled-order?reference=${encodeURIComponent(e)}`,{method:"DELETE"},t)}function O(t,e,n){return i("/admin/payment/bitcoin/approve",{method:"POST",body:JSON.stringify({orderReference:e,transactionReference:n})},t)}function b(t,e,n){return i(`/payment/status?order=${encodeURIComponent(t)}`,{signal:n},e)}function q(t,e="en"){return new Intl.NumberFormat(e==="tw"?"zh-TW":e,{style:"currency",currency:t.currency}).format(t.amountInCents/100)}export{O as a,b,d as c,w as d,h as e,q as f,l as g,p as h,y as i,s as j,f as k,m as l};

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.