{% extends 'SocialFrontendBundle::layout_base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% stylesheets filter="?yui_css, cssrewrite"
"bundles/socialfrontend/css/theme/vendor/module.admin.stylesheet-complete-new.min.css"
"bundles/socialfrontend/css/theme/vendor/jcarousel.responsive.css"
"bundles/socialfrontend/css/app/custom/modal-style.css"
"bundles/socialfrontend/css/theme/vendor/bootstrap-datepicker.min.css"
"bundles/socialfrontend/css/theme/vendor/bootstrap-scrolling-nav.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/prettyphoto/assets/lib/css/prettyPhoto.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/bootstrap-switch/assets/lib/css/bootstrap-switch.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/dropzone/assets/lib/css/dropzone.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/css/jquery.plupload.queue.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/blueimp-gallery/assets/lib/css/blueimp-gallery.min.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/jasny-fileupload/assets/css/fileupload.css"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/multiselect/assets/lib/css/multi-select.css"
"bundles/socialfrontend/css/theme/vendor/jqtransform.css"
"bundles/socialfrontend/js/vendor/jcrop/css/jquery.Jcrop.css"
"bundles/socialfrontend/js/vendor/bootstrap-tour/css/bootstrap-tour.css"
"bundles/socialfrontend/css/theme/custom/stylesheet-complete-new.min.css"
"bundles/socialfrontend/css/app/custom/main-new.css"
"bundles/socialfrontend/css/theme/custom/responsive.css"
"bundles/socialfrontend/css/app/custom/static-page.css"
"bundles/socialfrontend/css/theme/vendor/bootstrap-slider.css"
"bundles/socialfrontend/plugins/magnific-pop/dist/magnific-popup.css" %}
<link href="{{ asset_url }}" rel="stylesheet" media="screen"/>
<link rel="stylesheet" href="/bundles/socialadmin/plugins/toastr-notifications/toastr.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/css/intlTelInput.css">
{% endstylesheets %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% if app.user %}
{% if ( app.user.newLocation is null and app.user.isFake == false ) %}
<script type="text/javascript">var userCompletedProfile = false</script>
{% else %}
<script type="text/javascript">var userCompletedProfile = true;</script>
{% endif %}
{% else %}
<script type="text/javascript">var userCompletedProfile = false</script>
{% endif %}
<script type="text/javascript">
var tUS = {
processor: '',
started: '',
uId: new Date().getTime(),
cPackage: '',
selectedPackages: {},
initialPackageSelected: '',
finalPackage: '',
source: '',
p: {
inited: '',
lastStatus: '',
code: ''
},
pHistory: {}
};
</script>
<script src="https://js.pusher.com/4.1/pusher.min.js"></script>
<script src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
<script src="/bundles/socialadmin/plugins/toastr-notifications/toastr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/js/intlTelInput.js"></script>
{% javascripts filter="?yui_js" "bundles/socialfrontend/js/theme/vendor/jquery.js" %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/masonry.pkgd.min.js"></script>
{% endjavascripts %}
{% javascripts filter="?yui_js"
"bundles/socialfrontend/social/js/Helpers/FlashMessager.js"
"bundles/socialfrontend/social/js/SocialApp.js"
"bundles/socialfrontend/js/theme/vendor/pusher-auth.js"
"bundles/socialfrontend/js/vendor/history/jquery.history.js"
"bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
"bundles/socialfrontend/js/theme/vendor/bootstrap-datepicker.js"
"bundles/socialfrontend/js/theme/vendor/bootstrap-scrolling-nav.js"
"bundles/socialfrontend/js/vendor/bootbox/bootbox.js"
"bundles/socialfrontend/js/vendor/fancy-select/fancySelect.js"
"bundles/socialfrontend/js/theme/vendor/jquery.jcarousel.min.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/bootstrap-switch/assets/lib/js/bootstrap-switch.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/tables/responsive/assets/custom/js/tables-responsive-footable.init.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/tables/responsive/assets/lib/js/footable.min.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/prettyphoto/assets/lib/js/jquery.prettyPhoto.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/dropzone/assets/lib/js/dropzone.min.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/jquery.plupload.queue.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/custom/plupload.init.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/jquery.plupload.queue.js"
"bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/plupload.full.js"
"bundles/socialfrontend/css/theme/custom/assets/components/library/jquery/jquery-migrate.min.js"
"bundles/socialfrontend/css/theme/custom/assets/components/plugins/less-js/less.min.js"
"bundles/socialfrontend/css/theme/custom/assets/components/modules/admin/charts/flot/assets/lib/excanvas.js"
"bundles/socialfrontend/css/theme/custom/assets/components/plugins/browser/ie/ie.prototype.polyfill.js"
"bundles/socialfrontend/css/theme/custom/assets/components/library/modernizr/modernizr.js"
"bundles/socialfrontend/js/app/custom/messaging/scrolling.js"
"bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
"bundles/socialfrontend/js/theme/vendor/jquery.ui.widget.js"
"bundles/socialfrontend/js/theme/vendor/load-image.all.min.js"
"bundles/socialfrontend/js/theme/vendor/canvas-to-blob.min.js"
"bundles/socialfrontend/js/theme/vendor/jquery.iframe-transport.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-process.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-image.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-validate.js"
"bundles/socialfrontend/js/theme/vendor/jquery.autosize.js"
"bundles/socialfrontend/js/theme/vendor/jquery.playSound.js"
'bundles/socialfrontend/js/vendor/timeago/jquery.timeago.js'
'bundles/socialfrontend/js/vendor/jquery.simple.timer.js'
"bundles/socialfrontend/social/js/SocialApp.js"
"bundles/socialfrontend/js/app/custom/account/account.js"
"bundles/socialfrontend/js/app/custom/main.js"
"bundles/socialfrontend/js/app/custom/account/photo_upload.js"
'bundles/socialfrontend/js/vendor/shuffle/jquery.shuffle.js'
'bundles/socialfrontend/js/vendor/throttle-debounce/jquery.ba-throttle-debounce.js'
'bundles/socialfrontend/js/vendor/jquery.scrolling/jquery.scrolling.js'
'bundles/socialfrontend/js/app/custom/messaging/ajax_chat.js'
'bundles/socialfrontend/js/app/custom/messaging/audio_upload.js'
'bundles/socialfrontend/js/app/custom/messaging/manage_audio.js'
'bundles/socialfrontend/js/app/custom/messaging/chat_video_upload.js'
'bundles/socialfrontend/js/app/custom/messaging/manage_chat_video.js'
'bundles/socialfrontend/js/app/custom/messaging/chat_v2.js'
'bundles/socialfrontend/js/vendor/jcrop/js/jquery.Jcrop.js'
'bundles/socialfrontend/js/app/custom/account/crop.js'
'bundles/socialfrontend/js/vendor/bootstrap-tour/js/bootstrap-tour.js'
"bundles/socialfrontend/js/app/custom/account/photos.js"
"bundles/socialfrontend/js/app/custom/account/videos.js"
"bundles/socialfrontend/js/app/custom/account/tour.js"
"bundles/socialfrontend/js/vendor/bootstrap-ajax-typeahead/bootstrap-typeahead.js"
"bundles/socialfrontend/js/theme/vendor/bootstrap-slider.js"
"bundles/socialfrontend/js/app/custom/search/search.js"
"bundles/socialfrontend/js/app/custom/registration/registration.js"
"bundles/socialfrontend/js/app/custom/account/image_gallery.js"
"bundles/socialfrontend/plugins/magnific-pop/dist/jquery.magnific-popup.js"
"bundles/socialfrontend/js/app/custom/main.js" %}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://tiles.unwiredmaps.com/js/leaflet-unwired.js"></script>
{% if app.user %}
<script>
var answerCallUrl = '{{ path('social_frontend_answer_call') }}';
var declineCallUrl = '{{ path('social_frontend_decline_call') }}';
var hangUpCallUrl = '{{ path('social_frontend_hang_up_call') }}';
var alertInsert = '{{ url('social_frontend_add_alert') }}';
var paymentModalUrl = '{{ path('social_payment_modal') }}';
var addPayloadUrl = '{{ path('social_frontend_add_payload') }}';
{% if creditsPackagesActivated == 1 %}
var sendGiftUrl = '{{ path('social_frontend_send_gift') }}';
var creditHistoryRequest = '{{ path('social.credits.report_request') }}';
var lastReportUrl = '{{ path('social.credits.last_report') }}';
{% endif %}
var callWindowUrl = '{{ path('social_frontend_call_window') }}';
var pusherAuthKey = '{{ pusher_auth_key }}';
var loginPageUrl = '{{ path('fos_user_security_login') }}';
var rooms = [];
{% for room in get_relationships(app.user) %}
rooms.push({{ room.id }})
{% endfor %}
var urlGetDeviceInterest = '{{ path('social_get_device_interest') }}'
var redirectToCamUrl = '{{ path('social_redirect_to_cam') }}';
var urlAccountPage = '{{ path('social_frontend_account') }}'
var urlPhotosPage = '{{ path('social_frontend_account_photos') }}'
var urlFriendsPage = '{{ path('social_frontend_account_friends') }}'
var urlSearchPage = '{{ path('social_frontend_search') }}'
var urlChatWithDefaultMemberProfile = '{{ path('social_frontend_chat_with_friend', {username: default_member_profile['username']}) }}'
var shouldOpenTourByDefault = {% if check_if_tour_should_be_opened(app.user) %}true{% else %}false{% endif %};
var urlMarkTourAsCompleted = '{{ path('social_mark_tour_as_completed') }}'
var projectName = '{{ project_name }}'
var getPaymentUrlPlatin = '{{ path('social_frontend_payment_get_payment_url', { package : 'platin', source : 'profile-views'}) }}'
var getPaymentUrlDiamond = '{{ path('social_frontend_payment_get_payment_url', { package : 'diamond', source : 'profile-views'}) }}';
var modalUnlockBodyMessage = '{{ 'To view this user profile, you need to unblock it.'|trans }}';
var modalUnlockHeader = '{{ 'Activate the new package instantly'|trans }}';
var modalUnlockSubHeader = '{{ 'Start taking advantage of the full set of features our platform has to offer'|trans }}';
$(document).ready(function () {
refreshFriendSuggestionsAndBoostedUsers();
setTimeout(triggerBubbleNotificationFun, 3000);
})
</script>
{% endif %}
{% endblock %}
{% block body %}
{% include 'SocialFrontendBundle::body.html.twig' %}
<input type="hidden" id="open-boost-modal-time" value="{{ getTimeForOpenBoostModalAutomatic() }}">
{% if app.user %}
{% set mediaExtensionType = constant('Social\\FrontendBundle\\Entity\\MediaSetting::MEDIA_EXTENSION') %}
{% set mediaSizeType = constant('Social\\FrontendBundle\\Entity\\MediaSetting::MEDIA_SIZE') %}
{% set packageName = app.user.packageName|split('-')[0] %}
<input type="hidden" id="open-upgradable-modal-packages" value="{{ getPackagesForOpenPaymentModal()|join(', ') }}">
<input type="hidden" id="valid-for-boost" value="{{ isValidForOpenBoostModal(app.user) ? '1' : '0' }}">
<input type="hidden" id="valid-for-open-automatic-modal" value="{{ isValidForOpenAutomaticModal(app.user) ? '1' : '0' }}">
<input type="hidden" id="package-name" value="{{ packageName }}">
<input type="hidden" id="allowed-image-extension" value="{{ getImageUploadSetting(mediaExtensionType) }}">
<input type="hidden" id="allowed-image-size" value="{{ getImageUploadSetting(mediaSizeType) }}">
<input type="hidden" id="allowed-packages-unlock-image" value="{{ getImageUploadSetting(constant('Social\\FrontendBundle\\Entity\\MediaSetting::PACKAGES_FOR_UNLOCK_PRIVATE_PHOTO'))|join(', ') }}">
<input type="hidden" id="allowed-video-extension" value="{{ getVideoUploadSetting(mediaExtensionType) }}">
<input type="hidden" id="allowed-video-size" value="{{ getVideoUploadSetting(mediaSizeType) }}">
<input type="hidden" id="allowed-packages-unlock-video" value="{{ getVideoUploadSetting(constant('Social\\FrontendBundle\\Entity\\MediaSetting::PACKAGES_FOR_UNLOCK_PRIVATE_VIDEO'))|join(', ') }}">
<input type="hidden" id="message-settings" value="{{ checkMessageSettings(app.user) }}">
<input type="hidden" id="message-countdown" value="{{ checkCountdown(app.user) }}">
<input type="hidden" id="current-user-id" value="{{ app.user.id }}">
{% endif %}
<input type="hidden" id="open-cancel-deletion-request" value="{{ app.user ? isUserRaisedDeletionRequest(app.user) : 0 }}">
{{ render(controller('SocialFrontendBundle:Account:usersManagement')) }}
<div class="container-fluid">
<div id="unlockImageUpgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
<div class="crud-album-section">
<form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-list-packages boost-profile">
{# <img class="img-responsive" src="{{ asset('/bundles/socialfrontend/images/boost_profile_modal.svg') }}"/>#}
<h3>Upgrade Package for unlock media</h3>
<h4>
{% if getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_IMAGE'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')) %}
{{ getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_IMAGE'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')).value|raw }}
{% endif %}
</h4>
</div>
</div>
</div>
</form>
</div>
</div>
<div id="unlockVideoUpgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
<div class="crud-album-section">
<form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-list-packages boost-profile">
{# <img class="img-responsive" src="{{ asset('/bundles/socialfrontend/images/boost_profile_modal.svg') }}"/>#}
<h3>Upgrade Package for unlock Video</h3>
<h4>
{% if getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_VIDEO'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')) %}
{{ getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_VIDEO'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')).value|raw }}
{% endif %}
</h4>
</div>
</div>
</div>
</form>
</div>
</div>
<div id="upgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
<div class="crud-album-section">
<form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-list-packages boost-profile">
<h3>Upgrade Your Package</h3>
<h4 class="upgradable-package-message">
</h4>
</div>
</div>
</div>
</form>
</div>
</div>
{% if app.user is defined and app.user is not null %}
{% if app.user.confirmed == 0 %}
<div class="alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<p>{% trans with {'%email%': app.user.email} %}Please confirm your email address: <b class="email"> %email% </b>. If you didn't receive an email{% endtrans %}
<button class="btn btn-sm btn-success resend-email">{% trans %}CLICK HERE{% endtrans %}</button>
</p>
<p class="resend-email-confirm"
style="display: none;">{% trans %}Are you sure you want to resend the email?{% endtrans %}
<button class="btn btn-sm btn-success resend-email-confirm-yes">{% trans %}YES{% endtrans %}</button>
</p>
</div>
{% endif %}
{% endif %}
<div id="content" class="content-load my-details" user-id="{% if app.user %}{{ app.user.id }}{% endif %}">
{% block content_all %}{% endblock %}
</div>
{% include 'SocialFrontendBundle:Default:page_loader.html.twig' %}
{# do not delete this div. it is required for croping #}
<div id="modal-photo"></div>
{# end modal photo #}
{{ render(controller('SocialFrontendBundle:Payment:showPostPaymentModals', {request: app.request})) }}
{% if (app.user and (app.user.isFake == false)) %}
{% set showRegistration = 1 %}
{% if app.request.cookies.has('userRegistrationModalFlag') %}
{% set showRegistration = app.request.cookies.get('userRegistrationModalFlag') %}
{% endif %}
{% if (app.user.isAnon == false) or (app.user.birthday is null) %}
<div id="profile-confirmation" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
{{ render(controller('SocialUserBundle:Registration:renderPartialProfileConfirmation')) }}
</div>
</div>
</div>
{% endif %}
{% if (app.user.numberLogins == 2) and (app.user.salt is null) and (app.user.isFake == false) %}
<div id="profile-set-password" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
{{ render(controller('SocialUserBundle:Registration:renderSetPassword')) }}
<script type="text/javascript">
$('#profile-set-password').modal({
keyboard: false,
backdrop: 'static',
callback: function () {
return
},
});
</script>
</div>
</div>
</div>
{% elseif (app.user.newLocation is null) or (isUserSignupNormal(app.user) and (app.user.numberLogins == 0)) %}
<div id="profile-completion" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
{{ render(controller('SocialUserBundle:Registration:renderPartialStep3')) }}
<script type="text/javascript">
$('#profile-completion').modal({
keyboard: false,
backdrop: 'static',
callback: function () {
return
},
});
$('.selected-country-modal').html($('#form-completion-profile-data').find('#user_country').val())
$('.selected-city-modal').html($('#form-completion-profile-data').find('#user_city').val())
</script>
</div>
</div>
</div>
{% elseif validForOpenProfileConfirmationModal(app.user) and ((app.user.isAnon == false) or (app.user.birthday is null)) %}
{% javascripts filter="?yui_js"
"bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
"bundles/socialfrontend/js/vendor/bootbox/bootbox.js"
"bundles/socialfrontend/js/app/custom/account/account.js"
"bundles/socialfrontend/js/app/custom/registration/registration.js"
"bundles/socialfrontend/js/theme/vendor/jquery.ui.widget.js"
"bundles/socialfrontend/js/theme/vendor/load-image.all.min.js"
"bundles/socialfrontend/js/theme/vendor/canvas-to-blob.min.js"
"bundles/socialfrontend/js/theme/vendor/jquery.iframe-transport.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-process.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-image.js"
"bundles/socialfrontend/js/theme/vendor/jquery.fileupload-validate.js"
"bundles/socialfrontend/js/vendor/bootstrap-ajax-typeahead/bootstrap-typeahead.js" %}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
<script type="text/javascript">
$('#profile-confirmation').modal({
keyboard: false,
backdrop: 'static',
callback: function () {
return
},
});
</script>
{% endif %}
{% endif %}
</div>
<script>
var fluxId = $.cookie("tfpr[funnel-id]");
var funnelRun = $.cookie("funnel-run");
if (fluxId && !funnelRun) {
function ffluxQuery() {
document._ffqValues=[];document._ffqOptions={timeOnPage:!1,timeOnPageResolution:null,tokenInjection:{}};function track(e){if(e){for(var r in e){document._ffqOptions[r]=e[r]}};if(document.ffmvt){fflux.mvt().reset();for(var n in document.ffmvt){fflux.mvt().add(n,document.ffmvt[n])};fflux.mvt().process()};bodyCallback(t,'_ffqtl')};function bodyCallback(e,n){if(document.body){e()}else if(!document[n]){document[n]=!0;document.addEventListener('DOMContentLoaded',e)}};function insertUniqueFrame(e,n){var t=document.getElementById(n);if(t){t.parentNode.removeChild(t)};t=document.createElement('iframe');t.id=n;t.src=e+'&frameId='+n;t.style.display='none';document.body.appendChild(t)};function t(){var e='_ffq_track_';window.addEventListener('message',function(n){if(n.data.ok){var g=n.data['frameId'];if(g===e){if(document._ffqOptions.timeOnPage&&!document._ffTopTracker){document._ffTopTracker=new TimeOnPageTracker();document._ffTopTracker.start()};if(n.data.hasOwnProperty('flux_inject')){var r=n.data['flux_inject'];if(r.intoUrl){history.replaceState({},'',r['flux_url'])};if(r.intoForms.selector){var f=JSON.parse(JSON.stringify(r.tokens)),l=document.querySelectorAll(r.intoForms.selector);if(l&&l.length){for(var d=0;d<l.length;d++){var v=l[d],u=v.getElementsByTagName('input');if(u&&u.length){for(var s=0;s<u.length;s++){var t=u[s];if(f.hasOwnProperty(t.name)){t.value=f[t.name];delete f[t.name]}}};for(var o in f){var t=document.createElement('input');t.type='hidden';t.name=o;t.value=f[o];v.appendChild(t)}}}};if(r.intoLinks.selector){var a=document.querySelectorAll(r.intoLinks.selector);if(a&&a.length){var i=[];for(var o in r.tokens){i.push(o+'='+encodeURIComponent(r.tokens[o]))};i=i.join('&');for(var c=0;c<a.length;c++){var m=a[c];m.href+=(m.href.indexOf('?')==-1?'?':'&')+i}}}}}}},!1);insertUniqueFrame(getUrlSrc(),e)};function getNodeId(){var t=fflux.getURLParam('flux_fn');if(!t){for(var n=0;n<document._ffqValues.length;n++){var e=document._ffqValues[n].split('|ff|');if(e[0]=='set'&&e[1]=='flux_fn'){t=e[2];break}}};return t};function getServerUrl(){return'//detects.vip/tracking/universalJSRequest.php'};function getUrlSrc(){var n=getServerUrl(),e=getAllURLParameters();fflux.ffq('set',['flux_inject',JSON.stringify(document._ffqOptions.tokenInjection)]);if(document._ffqValues.length){e.push('ffq='+document._ffqValues.join('|ff|'))};if(document._ffqOptions.noCookies){e.push('noCookies=1')};return e.length?n+'?'+e.join('&'):n};function formatFFQEntry(e,n){var r=e;if(n.length){for(var t=0;t<n.length;t++){n[t]=encodeURIComponent(n[t])};r+='|ff|'+n.join('|ff|')};return r};function ffq(e,n,o){var t=formatFFQEntry(e,n);if(document._ffqValues.indexOf(t)==-1){if(o){for(var r=0;r<document._ffqValues.length;r++){var f=document._ffqValues[r].split('|ff|');if(f[0]==e){document._ffqValues[r]=t;t=null;break}}};if(t!==null){document._ffqValues.push(t)}}};function getAllParametersFromURL(e){var i=[],a=e.indexOf('?');if(a!==-1){searchQuery=e.substring(a);for(var u=searchQuery.split('?'),f=u[1].split('&'),n=0;n<f.length;n++){var t=f[n].split('='),r=t[0],o=t[1];if(r!==undefined&&o!==undefined){i.push(r+'='+o)}}};return i};function getAllURLParameters(){return getAllParametersFromURL(location.search)};function splitKeyValuePairs(e){var t={};for(var r in e){var n=e[r].split('=');t[n[0]]=n[1]};return t};function TimeOnPageTracker(){var t=-1,f=null,l=0,r=null,o=null,e=null,i=0,n=fflux.getURLParam('flux_topres');if(!n&&document._ffqOptions.timeOnPageResolution!==null){n=document._ffqOptions.timeOnPageResolution};if(parseInt(n)==n){n=Math.max(n,100)}else{n=3000};function a(){if(!navigator.sendBeacon){if(e===null){i=0}else{var t=Date.now();i+=t-e;e=t}}else{if(f!==null){c();i=Date.now()-f-l}};var o=formatFFQEntry('top',[i]),n='ffq='+o+'&flux_url='+encodeURIComponent(document.URL)+'&flux_fn='+getNodeId()+'&noCookies='+(document._ffqOptions.noCookies?1:0);if(!navigator.sendBeacon){var r=getServerUrl()+'?'+n;bodyCallback(function(){m(r)},'_ffqtopl')}else{navigator.sendBeacon(getServerUrl(),n)}};function m(e){insertUniqueFrame(e,'_ffq_top_')};function c(){if(r!==null){l+=Date.now()-r;r=null}};function s(){if(navigator.sendBeacon){if(f===null){f=Date.now()};c()}else{if(o!==null){e=Date.now()-o;o=null;a()};if(t==-1){if(e===null){a();e=Date.now()};if(!navigator.sendBeacon){t=setInterval(a,n)}else{t=1}}}};function d(){if(navigator.sendBeacon){if(r===null){r=Date.now()}}else{if(o===null){if(t!=-1){if(!navigator.sendBeacon){clearInterval(t)};t=-1};o=e===null?0:Date.now()-e}}};var u=(function(){var e,n,t={hidden:'visibilitychange',webkitHidden:'webkitvisibilitychange',mozHidden:'mozvisibilitychange',msHidden:'msvisibilitychange'};for(var e in t){if(e in document){n=t[e];break}};return function(t){if(t)document.addEventListener(n,t);return!document[e]}})();u(function(){if(u()){s()}else{d()}});window.addEventListener('beforeunload',a);return{'start':s,'pause':d}};function Mvt(){var n='-legacy',f=d(),t=[],e={};function d(){var n='mvt-vid',e=i(n);if(!e){e=Date.now();m(n,e)};return e};var r=function(e){return t[e][Math.floor(s()*t[e].length)]},o=function(n){if(n==='always'){f=Date.now()};var o={};for(var t in e){o[t]=r(t)};e=o},a=function(){e={}},u=function(n,r){if(!(n in e)){e[n]=[]};e[n].push(r);t=e},l=function(n,t){if(t){return document.write(e[n])};return e[n]},c=function(n){o(n);for(var t in e){fflux.ffq('mvt',[t,e[t]])}},s=function(e,n){var t=Math.sin(f++)*10000;return t-Math.floor(t)};function i(e){var o=e+'=',f=document.cookie.split(';');for(var r=0;r<f.length;r++){var t=f[r];while(t.charAt(0)==' '){t=t.substring(1)};if(t.indexOf(o)==0){return t.substring(o.length,t.length)}};if(e.indexOf(n)==-1){return i(e+n)};return''};function m(e,t){var r=new Date();r.setTime(r.getTime()+(30*24*60*60*1000));var o='expires='+r.toUTCString();document.cookie=e+'='+t+';'+o+';path=/;SameSite=None;Secure';document.cookie=e+n+'='+t+';'+o+';path=/;'};return{'getVariation':r,'createCombination':o,'reset':a,'add':u,'get':l,'process':c}};function getDocumentURL(){var e=document.URL;if(window.top!==window.self){var r=splitKeyValuePairs(getAllParametersFromURL(window.top.document.URL)),n=splitKeyValuePairs(getAllURLParameters());for(var t in r){n[t]=r[t]};var o=Object.keys(n).map(function(e){return e+'='+n[e]}).join('&');if(e.indexOf('?')>0){e=e.substring(0,e.indexOf('?'))};e+='?'+o};return e};function getReferrer(){if(window.top!==window.self){return window.top.document.referrer};return document.referrer};return{'track':track,'ffq':ffq,'mvt':function(){if(!document._ffmvt){document._ffmvt=new Mvt()};return document._ffmvt},'top':function(){if(!document._ffTopTracker){document._ffTopTracker=new TimeOnPageTracker()};return document._ffTopTracker},'getURLParams':function(){return splitKeyValuePairs(getAllURLParameters())},'getURLParam':function(e){return splitKeyValuePairs(getAllURLParameters())[e]},'getDocumentURL':getDocumentURL,'getReferrer':getReferrer};
}
var fflux = new ffluxQuery();
fflux.ffq('set', ['flux_url', fflux.getDocumentURL()]);
fflux.ffq('set', ['flux_ref', fflux.getReferrer()]);
fflux.ffq('set', ['flux_f', fluxId]);
fflux.track({
timeOnPage: false,
timeOnPageResolution: 3000,
noCookies: false,
tokenInjection: {
intoUrl: false,
intoForms: { selector: null },
intoLinks: { selector: null },
tokens: {}
}
});
$.cookie('funnel-run', true, {path:'/account'})
}
</script>
</body>
<script>
$('.resend-email').on('click', function (event) {
$(".resend-email-confirm").toggle();
});
$('.resend-email-confirm-yes').on('click tap', function (event) {
$.ajax({
'url': '{{ url('social_registration_resend_confirmation_email') }}',
'type': 'GET'
}).done(function () {
});
$('.resend-email-confirm').closest('.alert').slideUp();
$('.resend-email-confirm').closest('.alert').remove();
})
</script>
{% endblock %}