#tamaro-widget-95a3a3a3 { /* UNHCR brand theme */ background: none !important; margin: 2em; --tamaro-primary-color: #fff; --tamaro-primary-color__hover: #fff; --tamaro-primary-bg-color: #0072bc; --tamaro-bg-color: #f9f9f9; --tamaro-bg-color__hover: #faeb00; --tamaro-text-color: #000; --tamaro-text-color__inverse: #fff; --tamaro-border-color: #005b96; --tamaro-icon-color: #005b96; --tamaro-placeholder-color: #757575; --tamaro-error-color: #d95665; --tamaro-block-header-color: #444; --tamaro-block-header-bg-color: #0000; --tamaro-block-header-position-color: #fff; --tamaro-block-header-position-bg-color: #005b96; --tamaro-label-color: #000; --tamaro-label-color__active: #fff; --tamaro-label-checkable-color: #333; --tamaro-label-checkable-color__checked: #fff; --tamaro-input-color: #444; --tamaro-input-bg-color: #fff; --tamaro-input-border-color: #faeb00; --tamaro-input-border-color__active: #537397; --tamaro-select-color: #faeb00; --tamaro-select-bg-color: #0000; --tamaro-select-arrow-color: #537397; --tamaro-button-color: #444; --tamaro-button-bg-color: #fff; --tamaro-button-border-color: #dedede; --tamaro-button-primary-color: #fff; --tamaro-button-primary-color__hover: #0072bc; --tamaro-button-primary-bg-color: #0072bc; --tamaro-button-primary-bg-color__hover: #faeb00; --tamaro-button-primary-border-color: #537397; --tamaro-button-primary-border-color__hover: #486382; --tamaro-ripple-button-primary-bg-color: #fff; --tamaro-link-color: #537397; --tamaro-link-color__hover: #486382; --tamaro-link-bg-color__focus: #f5f7fa; --tamaro-link-bg-color__focus-hover: #f5f7fa; --tamaro-checkable-color: #dedede; --tamaro-checkable-bg-color: #fff; --tamaro-checkable-color__checked: #fff; --tamaro-checkable-bg-color__checked: #486382; --tamaro-info-icon-color: #c5c5c5; --tamaro-info-text-color: #757575; --tamaro-overlay-header-color: #fff; --tamaro-overlay-header-bg-color: #537397; --tamaro-spinner-color: #537397; --tamaro-amounts-padding: 5.25rem; }
var _s = document.createElement("script"); _s.src = "https://tamaro.raisenow.com/unhcr-ch-test/latest/widget.js"; _s.onload = function() { var _cfg = { "language": "en", "allowCustomAmount": true, "amounts": [ { "if": "paymentType() == onetime", "then": [ 25, 50, 100, 250 ] } ], "autoselectAmount": true, "paymentMethods": [ "twint", "card", "paypal", "apple_pay", "google_pay", "chqr" ], "autoselectPaymentMethod": false, "purposeDetails": { "p1": { "stored_campaign_id": "701Vj00000as82H" } }, "show_blocks": { "payment_purposes": false }, "purposes": [ "p1" ], "autoselectPurpose": true, "showFields": { "stored_customer_firstname": true, "stored_customer_lastname": true, "stored_customer_email": true, "stored_customer_street": true, "stored_customer_street_number": true, "stored_customer_zip_code": true, "stored_customer_city": true, "stored_customer_country": true, "stored_customer_phone": true, "stored_customer_salutation": false, "stored_customer_company": false, "stored_customer_birthdate": false }, "requiredFields": [ "stored_customer_firstname", "stored_customer_lastname", "stored_customer_email", "stored_customer_zip_code", "stored_customer_city" ] }; var _p = new URLSearchParams(window.location.search); var _pa = _p.get("rnw-amounts"); var _pv = _p.get("rnw-amount"); if (_pa) { var _da = _pa.split(",").map(Number).filter(function(n) { return n > 0; }); if (_da.length) _cfg.amounts = [{ "if": "paymentType() == onetime", "then": _da }]; } if (_pv && Number(_pv) > 0) { _cfg.amount = Number(_pv); _cfg.autoselectAmount = false; } var _pmap = {"fname":"stored_customer_firstname","lname":"stored_customer_lastname","email":"stored_customer_email","title":"stored_customer_salutation","address1":"stored_customer_street","country":"stored_customer_country","locality":"stored_customer_city","postal_code":"stored_customer_zip_code"}; Object.keys(_pmap).forEach(function(k) { var v = _p.get(k); if (v) _cfg[_pmap[k]] = v; }); var _pii = ["rnw-amounts","rnw-amount","fname","lname","email","title","address1","country","locality","postal_code"]; if (_pii.some(function(k){return _p.has(k);}) && window.history && window.history.replaceState) { _pii.forEach(function(k){_p.delete(k);}); window.history.replaceState(null,"",window.location.pathname+(_p.toString()?"?"+_p.toString():"")+window.location.hash); } window.rnw.tamaro.runWidget("#tamaro-widget-95a3a3a3", _cfg); }; document.head.appendChild(_s);

