PageSourceSearch

https://app.hyperswitch.io/module.js

js hyperswitch.io collected 2026-10-02 05:12:42 UTC 5,385 bytes, 1 lines download raw bytes

1let wasm,paymentLinkWasm,dynamicRoutingWasm;async function init(){try{return wasm=await import("/wasm/euclid.js"),await wasm.default("/wasm/euclid_bg.wasm"),{status:!0,wasm}}catch(e){throw e}}async function dynamicRoutingInit(){try{return dynamicRoutingWasm=await import("/dynamo_wasm/procesmo.js"),await dynamicRoutingWasm.default("/dynamo_wasm/procesmo_bg.wasm"),{status:!0,dynamicRoutingWasm}}catch(e){throw e}}async function paymentLinkInit(){try{return paymentLinkWasm=await import("/payment_link_wasm/payment_link.js"),await paymentLinkWasm.default("/payment_link_wasm/payment_link_bg.wasm"),{status:!0,paymentLinkWasm}}catch(e){throw e}}function generate_payment_link_preview(e){return paymentLinkWasm?paymentLinkWasm.generate_payment_link_preview(e):{}}function validate_payment_link_config(e){return paymentLinkWasm?paymentLinkWasm.validate_payment_link_config(e):{}}function validateExtract(e,t,n){return dynamicRoutingWasm?dynamicRoutingWasm.validate_extract(e,t,n):{}}function getDefaultConfig(){return dynamicRoutingWasm?dynamicRoutingWasm.default_config():{}}function getConnectorConfig(e){return wasm?wasm.getConnectorConfig(e):{}}function getPayoutConnectorConfig(e){return wasm?wasm.getPayoutConnectorConfig(e):{}}function getBillingConnectorConfig(e){return wasm?wasm.getBillingConnectorConfig(e):{}}function getDescriptionCategory(){return wasm?wasm.getDescriptionCategory():{}}function getPaymentMethodConfig(e){return wasm?wasm.getPaymentMethodConfig(e):{}}function getRequestPayload(e,t){return wasm?wasm.getRequestPayload(e,t):[]}function getResponsePayload(e){return wasm?wasm.getResponsePayload(e):{}}function getParsedJson(e){try{return wasm?JSON.parse(wasm.parseToString(e)):e}catch(e){throw e}}function getThreeDsKeys(){return wasm?wasm.getThreeDsKeys():[]}function getThreeDsDecisionRuleKeys(){return wasm?wasm.getThreeDsDecisionRuleKeys():[]}function getSurchargeKeys(){return wasm?wasm.getSurchargeKeys():[]}function getAllKeys(){return wasm?wasm.getAllKeys():[]}function getKeyType(e){return wasm?wasm.getKeyType(e):""}function getAllConnectors(){return wasm?wasm.getAllConnectors():[]}function getVariantValues(e){return wasm?wasm.getVariantValues(e):[]}function payPalCreateAccountWindow(){var e,t,n,a,r;e=document,t="script",n="paypal-js",r=e.getElementsByTagName(t)[0],e.getElementById(n)||((a=e.createElement(t)).id=n,a.async=!0,a.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",r.parentNode.insertBefore(a,r))}function getAuthenticationConnectorConfig(e){return wasm?wasm.getAuthenticationConnectorConfig(e):{}}function getPMAuthenticationProcessorConfig(e){return wasm?wasm.getPMAuthenticationProcessorConfig(e):{}}function getTaxProcessorConfig(e){return wasm?wasm.getTaxProcessorConfig(e):{}}function getSurchargeProcessorConfig(e){return wasm?wasm.getSurchargeProcessorConfig(e):{}}function getPayoutDescriptionCategory(){return wasm?wasm.getPayoutDescriptionCategory():{}}function getAllPayoutKeys(){return wasm?wasm.getAllPayoutKeys():[]}function getPayoutVariantValues(e){return wasm?wasm.getPayoutVariantValues(e):[]}function getMerchantCategoryCodeWithName(){return wasm?wasm.getMerchantCategoryCodeWithName():{}}function getCardTypeValues(){return wasm?wasm.getCardTypeValues():[]}function getCardSubtypeValues(){return wasm?wasm.getCardSubtypeValues():[]}function getTwoLetterCountryCode(){return wasm?wasm.getTwoLetterCountryCode():[]}function getFundingSourceValues(){return wasm?wasm.getFundingSourceValues():[]}function getCardSegmentTypeValues(){return wasm?wasm.getCardSegmentTypeValues():[]}function getWebhookStatusConfig(){return wasm?wasm.getWebhookStatusConfig():[]}const getAccessibleColor=e=>{let t=e.replace(/#/g,"");return 6!==t.length&&(t=`${t}${t}`),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"},getRGBColor=(e,t)=>{let n=e.replace(/#/g,"");return 6!==n.length&&(n=`${n}${n}`),`--color-${t}: ${parseInt(n.substr(0,2),16)}, ${parseInt(n.substr(2,2),16)}, ${parseInt(n.substr(4,2),16)};`},getRGBvalue=e=>{let t=e.replace(/#/g,"");return 6!==t.length&&(t=`${t}${t}`),`${parseInt(t.substr(0,2),16)}, ${parseInt(t.substr(2,2),16)}, ${parseInt(t.substr(4,2),16)}`},toSnakeCase=e=>e.replace(/([A-Z])/g,"-$1").replace(/\s+/g,"-").replace(/^-/,"").toLowerCase(),generateVariablesForSection=(e,t)=>Object.entries(e).map(([e,n])=>{const a="string"==typeof n&&n.startsWith("#")?getRGBvalue(n):n;return`  --${t}-${toSnakeCase(e)}: ${a};`}).join("\n")+"\n",generateButtonVariables=e=>`\n  /* Primary Button */\n  ${generateVariablesForSection(e.primary,"btn-primary")}\n\n  /* Secondary Button */\n  ${generateVariablesForSection(e.secondary,"btn-secondary")}\n  `;function appendStyle(e){const t=e.settings;let n=`:root{\n  /* Colors */\n  ${generateVariablesForSection(t.colors,"colors")}\n   /* sidebar */\n  ${generateVariablesForSection(t.sidebar,"sidebar")}\n  /* Typography */\n  ${generateVariablesForSection(t.typography,"base")}\n /* Buttons */\n  ${generateButtonVariables(t.buttons)}\n  /* Borders */\n  ${generateVariablesForSection(t.borders,"borders")}\n  /* Spacing */\n  ${generateVariablesForSection(t.spacing,"spacing")}\n\n}`,a=document.getElementById("custom-themes-style");a?a.textContent=n:(a=document.createElement("style"),a.id="custom-themes-style",a.textContent=n,document.head.appendChild(a))}

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.