<?php
// FROM HASH: 9c9e3bb7f157b90fa83108cea2b37b11
return array(
'macros' => array('associate' => array(
'arguments' => function($__templater, array $__vars) { return array(
		'provider' => '!',
	); },
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__finalCompiled .= '
	' . $__templater->formRow('

		' . $__templater->callMacro(null, 'connected_account_macros::button', array(
		'provider' => $__vars['provider'],
		'text' => 'Continue with ' . $__templater->escape($__vars['provider']['title']) . '',
	), $__vars) . '
	', array(
		'label' => $__templater->escape($__vars['provider']['title']),
		'rowtype' => 'button',
	)) . '
';
	return $__finalCompiled;
}
),
'disassociate' => array(
'arguments' => function($__templater, array $__vars) { return array(
		'provider' => '!',
		'hasPassword' => '!',
	); },
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__finalCompiled .= '
	';
	$__vars['explain'] = ((((!$__vars['hasPassword']) AND ($__templater->func('count', array($__vars['xf']['visitor']['Profile']['connected_accounts'], ), false) == 1))) ? 'Disassociating with all external accounts will cause a password to be generated for your account and emailed to ' . $__templater->filter($__vars['xf']['visitor']['email'], array(array('email_display', array()),), false) . '.' : '');
	$__finalCompiled .= '
	' . $__templater->formRow('

		<div>' . $__templater->filter($__templater->method($__vars['provider'], 'renderAssociated', array()), array(array('raw', array()),), true) . '</div>

		' . $__templater->form('
			' . $__templater->formCheckBox(array(
	), array(array(
		'name' => 'disassociate',
		'label' => 'Disassociate ' . $__templater->escape($__vars['provider']['title']) . ' account',
		'_dependent' => array('
						' . $__templater->button('Confirm disassociation', array(
		'type' => 'submit',
	), '', array(
	)) . '
					'),
		'_type' => 'option',
	))) . '
		', array(
		'action' => $__templater->func('link', array('account/connected-accounts/disassociate', $__vars['provider'], ), false),
		'class' => 'u-inputSpacer',
	)) . '
	', array(
		'label' => $__templater->escape($__vars['provider']['title']),
		'explain' => $__templater->escape($__vars['explain']),
	)) . '
';
	return $__finalCompiled;
}
),
'button' => array(
'arguments' => function($__templater, array $__vars) { return array(
		'provider' => '!',
		'link' => null,
		'text' => null,
	); },
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__finalCompiled .= '
	';
	$__compilerTemp1 = '';
	if ((!$__vars['provider']['icon_class']) AND $__vars['provider']['icon_url']) {
		$__compilerTemp1 .= '
			<img class="button-icon" alt="" src="' . $__templater->escape($__vars['provider']['icon_url']) . '" />
		';
	}
	$__finalCompiled .= $__templater->button('

		' . $__compilerTemp1 . '
		' . ($__templater->escape($__vars['text']) ?: $__templater->escape($__vars['provider']['title'])) . '
	', array(
		'href' => ($__vars['link'] ?: $__templater->func('link', array('register/connected-accounts', $__vars['provider'], array('setup' => true, ), ), false)),
		'fa' => $__vars['provider']['icon_class'],
		'class' => 'button--provider button--provider--' . $__vars['provider']['provider_id'],
		'data-xf-click' => 'overlay',
	), '', array(
	)) . '
';
	return $__finalCompiled;
}
)),
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__finalCompiled .= '

' . '

';
	return $__finalCompiled;
}
);