File: /home/wwwrenee/public_html/wp-content/plugins/woocommerce-payments/dist/subscription-edit-page.js
!function(){var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){var t;e.g.importScripts&&(t=e.g.location+"");var n=e.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var r=n.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t}(),e.p=window.wcpayAssets.url,function(){const e=(e,t,n)=>{const r=document.createElement("option");return r.value=t,r.text=n,e.appendChild(r),r};(t=>{let{gateway:n,table:r,metaKey:o,tokens:c,defaultOptionText:i}=t;const a=`_payment_method_meta[${n}][${r}][${o}]`,l=document.getElementById(a),s=c.some((e=>e.tokenId.toString()===l.value));if(!l||"SELECT"===l.tagName)return;const u=document.createElement("select");if(u.id=a,u.name=a,!s){const t=e(u,"",i);t.disabled=!0,t.selected=!0}c.forEach((t=>{e(u,t.tokenId,t.displayName)})),s&&(u.value=l.value),l.parentElement.insertBefore(u,l),l.remove()})(wcpaySubscriptionEdit)}()}();