PageSourceSearch

https://www.royalroad.com/dist/update-paymentTw-SYQ76R7V.modern.js

js royalroad.com collected 2026-09-24 08:43:22 UTC 2,269 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a174dae5-1861-5573-b581-2360c67f2b39")}catch(e){}}();
3import{a as l}from"/dist/chunk-ATDEXHCO.modern.js";import"/dist/chunk-3DRWRWGL.modern.js";import"/dist/chunk-NSXFOTX2.modern.js";import"/dist/chunk-GGIRZRJD.modern.js";import{a as g}from"/dist/chunk-GZ6MMC44.modern.js";import"/dist/chunk-H6NBHFA7.modern.js";import{a as y}from"/dist/chunk-API445M3.modern.js";import"/dist/chunk-G64MVQY7.modern.js";import"/dist/chunk-URZVXJM5.modern.js";import"/dist/chunk-ET4STBUF.modern.js";import"/dist/chunk-BFBIXWHF.modern.js";import"/dist/chunk-NALJTZ37.modern.js";import"/dist/chunk-Y6WZIIK2.modern.js";import"/dist/chunk-VXLO4RCE.modern.js";import"/dist/chunk-VTLEDJJK.modern.js";import"/dist/chunk-N5CHCEKF.modern.js";import{g as a,k as i}from"/dist/chunk-XSELNDBU.modern.js";i();var u=a(y()),f=a(g());var c=class I{constructor(){this.sessionMetadata=null}static init(){return new I().init()}init(){let e=document.getElementById("paymentSourceSelection"),t=this.getDropdownInstance("paymentSourceSelection"),n=document.getElementById("savePaymentMethod"),o=(t==null?void 0:t.getValue())==="BlueSnap"?this.renderCardInfoForm():null,r=document.getElementById("cardInfoForm");e==null||e.addEventListener("rr-dropdown-change",s=>{s.detail.value==="BlueSnap"?(r==null||r.classList.add("mt-2","mb-4"),o=this.renderCardInfoForm(),n==null||n.classList.add("!hidden")):(o==null||o.unmount(),n==null||n.classList.remove("!hidden"),r==null||r.classList.remove("mt-2","mb-4"))});let m=document.getElementById("paymentForm");return m&&m.addEventListener("submit",()=>{let s=Array.from(document.getElementsByClassName("buyBtn"));for(let d of s)d.classList.add("disabled"),setTimeout(()=>{d.disabled=!0})}),this}getDropdownInstance(e){let t=document.getElementById(e);return t&&(t==null?void 0:t.__rrDropdownInstance)||null}renderCardInfoForm(){let e=(0,f.createRoot)(document.getElementById("cardInfoForm"));return e.render(u.default.createElement(l,null)),e}};export{c as default};
4
5//# debugId=a174dae5-1861-5573-b581-2360c67f2b39

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.