import UIWindow from './UIWindow.js' import UIWindowSaveAccount from './UIWindowSaveAccount.js'; async function UIWindowClaimReferral(options){ let h = ''; h += `
`; h += `
×
`; h += ``; h += `

You have been referred to Puter by a friend!

`; h += `

Create an account and confirm your email address to receive 1 GB of free storage. Your friend will get 1 GB of free storage too.

`; h += ``; h += `
`; const el_window = await UIWindow({ title: `Refer a friend!`, icon: null, uid: null, is_dir: false, body_content: h, has_head: false, selectable_body: false, draggable_body: true, allow_context_menu: false, is_draggable: true, is_resizable: false, is_droppable: false, init_center: true, allow_native_ctxmenu: true, allow_user_select: true, onAppend: function(el_window){ }, width: 400, dominant: true, window_css: { height: 'initial', }, body_css: { padding: '10px', width: 'initial', 'max-height': 'calc(100vh - 200px)', 'background-color': 'rgb(241 246 251)', 'backdrop-filter': 'blur(3px)', 'padding': '10px 20px 20px 20px', 'height': 'initial', } }); $(el_window).find('.create-account-ref-btn').on('click', function(e){ UIWindowSaveAccount(); $(el_window).close(); }) } export default UIWindowClaimReferral