src/Social/FrontendBundle/Resources/views/layout_account.html.twig line 1

Open in your IDE?
  1. {% extends 'SocialFrontendBundle::layout_base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     {% stylesheets filter="?yui_css, cssrewrite"
  5.         "bundles/socialfrontend/css/theme/vendor/module.admin.stylesheet-complete-new.min.css"
  6.         "bundles/socialfrontend/css/theme/vendor/jcarousel.responsive.css"
  7.         "bundles/socialfrontend/css/app/custom/modal-style.css"
  8.         "bundles/socialfrontend/css/theme/vendor/bootstrap-datepicker.min.css"
  9.         "bundles/socialfrontend/css/theme/vendor/bootstrap-scrolling-nav.css"
  10.         "bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/prettyphoto/assets/lib/css/prettyPhoto.css"
  11.         "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/bootstrap-switch/assets/lib/css/bootstrap-switch.css"
  12.         "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/dropzone/assets/lib/css/dropzone.css"
  13.         "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/css/jquery.plupload.queue.css"
  14.         "bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/blueimp-gallery/assets/lib/css/blueimp-gallery.min.css"
  15.         "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/jasny-fileupload/assets/css/fileupload.css"
  16.         "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/multiselect/assets/lib/css/multi-select.css"
  17.         "bundles/socialfrontend/css/theme/vendor/jqtransform.css"
  18.         "bundles/socialfrontend/js/vendor/jcrop/css/jquery.Jcrop.css"
  19.         "bundles/socialfrontend/js/vendor/bootstrap-tour/css/bootstrap-tour.css"
  20.         "bundles/socialfrontend/css/theme/custom/stylesheet-complete-new.min.css"
  21.         "bundles/socialfrontend/css/app/custom/main-new.css"
  22.         "bundles/socialfrontend/css/theme/custom/responsive.css"
  23.         "bundles/socialfrontend/css/app/custom/static-page.css"
  24.         "bundles/socialfrontend/css/theme/vendor/bootstrap-slider.css"
  25.         "bundles/socialfrontend/plugins/magnific-pop/dist/magnific-popup.css" %}
  26.         <link href="{{ asset_url }}" rel="stylesheet" media="screen"/>
  27.         <link rel="stylesheet" href="/bundles/socialadmin/plugins/toastr-notifications/toastr.min.css"/>
  28.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@16.0.2/build/css/intlTelInput.css">
  29.     {% endstylesheets %}
  30. {% endblock %}
  31. {% block javascripts %}
  32.     {{ parent() }}
  33.     {% if app.user %}
  34.         {% if ( app.user.newLocation is null and app.user.isFake == false ) %}
  35.             <script type="text/javascript">var userCompletedProfile = false</script>
  36.         {% else %}
  37.             <script type="text/javascript">var userCompletedProfile = true;</script>
  38.         {% endif %}
  39.     {% else %}
  40.         <script type="text/javascript">var userCompletedProfile = false</script>
  41.     {% endif %}
  42.     <script type="text/javascript">
  43.         var tUS = {
  44.             processor: '',
  45.             started: '',
  46.             uId: new Date().getTime(),
  47.             cPackage: '',
  48.             selectedPackages: {},
  49.             initialPackageSelected: '',
  50.             finalPackage: '',
  51.             source: '',
  52.             p: {
  53.                 inited: '',
  54.                 lastStatus: '',
  55.                 code: ''
  56.             },
  57.             pHistory: {}
  58.         };
  59.     </script>
  60.     <script src="https://js.pusher.com/4.1/pusher.min.js"></script>
  61.     <script src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
  62.     <script src="/bundles/socialadmin/plugins/toastr-notifications/toastr.min.js"></script>
  63.     <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@16.0.3/build/js/intlTelInput.js"></script>
  64.     {% javascripts filter="?yui_js" "bundles/socialfrontend/js/theme/vendor/jquery.js" %}
  65.     <script src="https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js"></script>
  66.     {% endjavascripts %}
  67.     {% javascripts filter="?yui_js"
  68.     "bundles/socialfrontend/social/js/Helpers/FlashMessager.js"
  69.     "bundles/socialfrontend/social/js/SocialApp.js"
  70.     "bundles/socialfrontend/js/theme/vendor/pusher-auth.js"
  71.     "bundles/socialfrontend/js/vendor/history/jquery.history.js"
  72.     "bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
  73.     "bundles/socialfrontend/js/theme/vendor/bootstrap-datepicker.js"
  74.     "bundles/socialfrontend/js/theme/vendor/bootstrap-scrolling-nav.js"
  75.     "bundles/socialfrontend/js/vendor/bootbox/bootbox.js"
  76.     "bundles/socialfrontend/js/vendor/fancy-select/fancySelect.js"
  77.     "bundles/socialfrontend/js/theme/vendor/jquery.jcarousel.min.js"
  78.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/elements/bootstrap-switch/assets/lib/js/bootstrap-switch.js"
  79.     "bundles/socialfrontend/css/theme/custom/assets/components/common/tables/responsive/assets/custom/js/tables-responsive-footable.init.js"
  80.     "bundles/socialfrontend/css/theme/custom/assets/components/common/tables/responsive/assets/lib/js/footable.min.js"
  81.     "bundles/socialfrontend/css/theme/custom/assets/components/common/gallery/prettyphoto/assets/lib/js/jquery.prettyPhoto.js"
  82.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/dropzone/assets/lib/js/dropzone.min.js"
  83.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/jquery.plupload.queue.js"
  84.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/custom/plupload.init.js"
  85.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/jquery.plupload.queue/jquery.plupload.queue.js"
  86.     "bundles/socialfrontend/css/theme/custom/assets/components/common/forms/file_manager/plupload/assets/lib/plupload.full.js"
  87.     "bundles/socialfrontend/css/theme/custom/assets/components/library/jquery/jquery-migrate.min.js"
  88.     "bundles/socialfrontend/css/theme/custom/assets/components/plugins/less-js/less.min.js"
  89.     "bundles/socialfrontend/css/theme/custom/assets/components/modules/admin/charts/flot/assets/lib/excanvas.js"
  90.     "bundles/socialfrontend/css/theme/custom/assets/components/plugins/browser/ie/ie.prototype.polyfill.js"
  91.     "bundles/socialfrontend/css/theme/custom/assets/components/library/modernizr/modernizr.js"
  92.     "bundles/socialfrontend/js/app/custom/messaging/scrolling.js"
  93.     "bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
  94.     "bundles/socialfrontend/js/theme/vendor/jquery.ui.widget.js"
  95.     "bundles/socialfrontend/js/theme/vendor/load-image.all.min.js"
  96.     "bundles/socialfrontend/js/theme/vendor/canvas-to-blob.min.js"
  97.     "bundles/socialfrontend/js/theme/vendor/jquery.iframe-transport.js"
  98.     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload.js"
  99.     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-process.js"
  100.     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-image.js"
  101.     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-validate.js"
  102.     "bundles/socialfrontend/js/theme/vendor/jquery.autosize.js"
  103.     "bundles/socialfrontend/js/theme/vendor/jquery.playSound.js"
  104.     'bundles/socialfrontend/js/vendor/timeago/jquery.timeago.js'
  105.     'bundles/socialfrontend/js/vendor/jquery.simple.timer.js'
  106.     "bundles/socialfrontend/social/js/SocialApp.js"
  107.     "bundles/socialfrontend/js/app/custom/account/account.js"
  108.     "bundles/socialfrontend/js/app/custom/main.js"
  109.     "bundles/socialfrontend/js/app/custom/account/photo_upload.js"
  110.     'bundles/socialfrontend/js/vendor/shuffle/jquery.shuffle.js'
  111.     'bundles/socialfrontend/js/vendor/throttle-debounce/jquery.ba-throttle-debounce.js'
  112.     'bundles/socialfrontend/js/vendor/jquery.scrolling/jquery.scrolling.js'
  113.     'bundles/socialfrontend/js/app/custom/messaging/ajax_chat.js'
  114.     'bundles/socialfrontend/js/app/custom/messaging/audio_upload.js'
  115.     'bundles/socialfrontend/js/app/custom/messaging/manage_audio.js'
  116.     'bundles/socialfrontend/js/app/custom/messaging/chat_video_upload.js'
  117.     'bundles/socialfrontend/js/app/custom/messaging/manage_chat_video.js'
  118.     'bundles/socialfrontend/js/app/custom/messaging/chat_v2.js'
  119.     'bundles/socialfrontend/js/vendor/jcrop/js/jquery.Jcrop.js'
  120.     'bundles/socialfrontend/js/app/custom/account/crop.js'
  121.     'bundles/socialfrontend/js/vendor/bootstrap-tour/js/bootstrap-tour.js'
  122.     "bundles/socialfrontend/js/app/custom/account/photos.js"
  123.     "bundles/socialfrontend/js/app/custom/account/videos.js"
  124.     "bundles/socialfrontend/js/app/custom/account/tour.js"
  125.     "bundles/socialfrontend/js/vendor/bootstrap-ajax-typeahead/bootstrap-typeahead.js"
  126.     "bundles/socialfrontend/js/theme/vendor/bootstrap-slider.js"
  127.     "bundles/socialfrontend/js/app/custom/search/search.js"
  128.     "bundles/socialfrontend/js/app/custom/registration/registration.js"
  129.     "bundles/socialfrontend/js/app/custom/account/image_gallery.js"
  130.     "bundles/socialfrontend/plugins/magnific-pop/dist/jquery.magnific-popup.js"
  131.     "bundles/socialfrontend/js/app/custom/main.js" %}
  132.     <script type="text/javascript" src="{{ asset_url }}"></script>
  133.     {% endjavascripts %}
  134.     <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"/>
  135.     <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
  136.     <script src="https://tiles.unwiredmaps.com/js/leaflet-unwired.js"></script>
  137.     {% if app.user %}
  138.         <script>
  139.             var answerCallUrl = '{{ path('social_frontend_answer_call') }}';
  140.             var declineCallUrl = '{{ path('social_frontend_decline_call') }}';
  141.             var hangUpCallUrl = '{{ path('social_frontend_hang_up_call') }}';
  142.             var alertInsert = '{{ url('social_frontend_add_alert') }}';
  143.             var paymentModalUrl = '{{ path('social_payment_modal') }}';
  144.             var addPayloadUrl = '{{ path('social_frontend_add_payload') }}';
  145.             {% if creditsPackagesActivated == 1 %}
  146.                 var sendGiftUrl = '{{ path('social_frontend_send_gift') }}';
  147.                 var creditHistoryRequest = '{{ path('social.credits.report_request') }}';
  148.                 var lastReportUrl = '{{ path('social.credits.last_report') }}';
  149.             {% endif %}
  150.             var callWindowUrl = '{{ path('social_frontend_call_window') }}';
  151.             var pusherAuthKey = '{{ pusher_auth_key }}';
  152.             var loginPageUrl = '{{ path('fos_user_security_login') }}';
  153.             var rooms = [];
  154.             {% for room in get_relationships(app.user) %}
  155.                 rooms.push({{ room.id }})
  156.             {% endfor %}
  157.             var urlGetDeviceInterest = '{{ path('social_get_device_interest') }}'
  158.             var redirectToCamUrl = '{{ path('social_redirect_to_cam') }}';
  159.             var urlAccountPage = '{{ path('social_frontend_account') }}'
  160.             var urlPhotosPage = '{{ path('social_frontend_account_photos') }}'
  161.             var urlFriendsPage = '{{ path('social_frontend_account_friends') }}'
  162.             var urlSearchPage = '{{ path('social_frontend_search') }}'
  163.             var urlChatWithDefaultMemberProfile = '{{ path('social_frontend_chat_with_friend', {username: default_member_profile['username']}) }}'
  164.             var shouldOpenTourByDefault = {% if check_if_tour_should_be_opened(app.user) %}true{% else %}false{% endif %};
  165.             var urlMarkTourAsCompleted = '{{ path('social_mark_tour_as_completed') }}'
  166.             var projectName = '{{ project_name }}'
  167.             var getPaymentUrlPlatin = '{{ path('social_frontend_payment_get_payment_url', { package : 'platin', source : 'profile-views'}) }}'
  168.             var getPaymentUrlDiamond = '{{ path('social_frontend_payment_get_payment_url', { package : 'diamond', source : 'profile-views'}) }}';
  169.             var modalUnlockBodyMessage = '{{ 'To view this user profile, you need to unblock it.'|trans }}';
  170.             var modalUnlockHeader = '{{ 'Activate the new package instantly'|trans }}';
  171.             var modalUnlockSubHeader = '{{ 'Start taking advantage of the full set of features our platform has to offer'|trans }}';
  172.             $(document).ready(function () {
  173.                 refreshFriendSuggestionsAndBoostedUsers();
  174.                 setTimeout(triggerBubbleNotificationFun, 3000);
  175.             })
  176.         </script>
  177.     {% endif %}
  178. {% endblock %}
  179. {% block body %}
  180.     {% include 'SocialFrontendBundle::body.html.twig' %}
  181.     <input type="hidden" id="open-boost-modal-time" value="{{ getTimeForOpenBoostModalAutomatic() }}">
  182.     {% if app.user %}
  183.         {% set mediaExtensionType = constant('Social\\FrontendBundle\\Entity\\MediaSetting::MEDIA_EXTENSION') %}
  184.         {% set mediaSizeType = constant('Social\\FrontendBundle\\Entity\\MediaSetting::MEDIA_SIZE') %}
  185.         {% set packageName = app.user.packageName|split('-')[0] %}
  186.         <input type="hidden" id="open-upgradable-modal-packages" value="{{ getPackagesForOpenPaymentModal()|join(', ') }}">
  187.         <input type="hidden" id="valid-for-boost" value="{{ isValidForOpenBoostModal(app.user) ? '1' : '0' }}">
  188.         <input type="hidden" id="valid-for-open-automatic-modal" value="{{ isValidForOpenAutomaticModal(app.user) ? '1' : '0' }}">
  189.         <input type="hidden" id="package-name" value="{{ packageName }}">
  190.         <input type="hidden" id="allowed-image-extension" value="{{ getImageUploadSetting(mediaExtensionType) }}">
  191.         <input type="hidden" id="allowed-image-size" value="{{ getImageUploadSetting(mediaSizeType) }}">
  192.         <input type="hidden" id="allowed-packages-unlock-image" value="{{ getImageUploadSetting(constant('Social\\FrontendBundle\\Entity\\MediaSetting::PACKAGES_FOR_UNLOCK_PRIVATE_PHOTO'))|join(', ') }}">
  193.         <input type="hidden" id="allowed-video-extension" value="{{ getVideoUploadSetting(mediaExtensionType) }}">
  194.         <input type="hidden" id="allowed-video-size" value="{{ getVideoUploadSetting(mediaSizeType) }}">
  195.         <input type="hidden" id="allowed-packages-unlock-video" value="{{ getVideoUploadSetting(constant('Social\\FrontendBundle\\Entity\\MediaSetting::PACKAGES_FOR_UNLOCK_PRIVATE_VIDEO'))|join(', ') }}">
  196.     {% endif %}
  197.     <input type="hidden" id="open-cancel-deletion-request" value="{{ app.user ? isUserRaisedDeletionRequest(app.user) : 0 }}">
  198.     {{ render(controller('SocialFrontendBundle:Account:usersManagement')) }}
  199.     <div class="container-fluid">
  200.         <div id="unlockImageUpgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
  201.             <div class="crud-album-section">
  202.                 <form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
  203.                     <div class="row">
  204.                         <div class="col-xs-12 col-sm-12 col-md-12">
  205.                             <div class="col-list-packages boost-profile">
  206.                                 {#                        <img class="img-responsive" src="{{ asset('/bundles/socialfrontend/images/boost_profile_modal.svg') }}"/>#}
  207.                                 <h3>Upgrade Package for unlock media</h3>
  208.                                 <h4>
  209.                                     {% if getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_IMAGE'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')) %}
  210.                                         {{ getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_IMAGE'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')).value|raw }}
  211.                                     {% endif %}
  212.                                 </h4>
  213.                             </div>
  214.                         </div>
  215.                     </div>
  216.                 </form>
  217.             </div>
  218.         </div>
  219.         <div id="unlockVideoUpgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
  220.             <div class="crud-album-section">
  221.                 <form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
  222.                     <div class="row">
  223.                         <div class="col-xs-12 col-sm-12 col-md-12">
  224.                             <div class="col-list-packages boost-profile">
  225.                                 {#                        <img class="img-responsive" src="{{ asset('/bundles/socialfrontend/images/boost_profile_modal.svg') }}"/>#}
  226.                                 <h3>Upgrade Package for unlock Video</h3>
  227.                                 <h4>
  228.                                     {% if getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_VIDEO'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')) %}
  229.                                         {{ getUnlockMediaUpgradeModelContent(constant('Social\\FrontendBundle\\Entity\\MediaSetting::TYPE_VIDEO'), constant('Social\\FrontendBundle\\Entity\\MediaSetting::CONTENT_FOR_PACKAGE_UPGRADE_MODAL')).value|raw }}
  230.                                     {% endif %}
  231.                                 </h4>
  232.                             </div>
  233.                         </div>
  234.                     </div>
  235.                 </form>
  236.             </div>
  237.         </div>
  238.         <div id="upgradePackageModal" class="modal fade" tabindex="-1" role="dialog">
  239.             <div class="crud-album-section">
  240.                 <form class="form-horizontal overflow-hidden " id="crud-album-frm{token}">
  241.                     <div class="row">
  242.                         <div class="col-xs-12 col-sm-12 col-md-12">
  243.                             <div class="col-list-packages boost-profile">
  244.                                 <h3>Upgrade Your Package</h3>
  245.                                 <h4 class="upgradable-package-message">
  246.                                 </h4>
  247.                             </div>
  248.                         </div>
  249.                     </div>
  250.                 </form>
  251.             </div>
  252.         </div>
  253.         {% if app.user is defined and app.user is not null %}
  254.             {% if app.user.confirmed == 0 %}
  255.                 <div class="alert alert-warning alert-dismissable">
  256.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  257.                     <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 %}
  258.                         <button class="btn btn-sm btn-success resend-email">{% trans %}CLICK HERE{% endtrans %}</button>
  259.                     </p>
  260.                     <p class="resend-email-confirm"
  261.                        style="display: none;">{% trans %}Are you sure you want to resend the email?{% endtrans %}
  262.                         <button class="btn btn-sm btn-success resend-email-confirm-yes">{% trans %}YES{% endtrans %}</button>
  263.                     </p>
  264.                 </div>
  265.             {% endif %}
  266.         {% endif %}
  267.         <div id="content" class="content-load my-details" user-id="{% if app.user %}{{ app.user.id }}{% endif %}">
  268.             {% block content_all %}{% endblock %}
  269.         </div>
  270.         {% include 'SocialFrontendBundle:Default:page_loader.html.twig' %}
  271.         {# do not delete this div. it is required for croping #}
  272.         <div id="modal-photo"></div>
  273.         {# end modal photo #}
  274.         {{ render(controller('SocialFrontendBundle:Payment:showPostPaymentModals', {request: app.request})) }}
  275.         {% if (app.user and (app.user.isFake == false)) %}
  276.             {% set showRegistration = 1 %}
  277.             {% if app.request.cookies.has('userRegistrationModalFlag') %}
  278.                 {% set showRegistration = app.request.cookies.get('userRegistrationModalFlag') %}
  279.             {% endif %}
  280.             {% if app.user.username starts with "anon-" or app.user.birthday is null %}
  281.                 <div id="profile-confirmation" class="modal fade">
  282.                     <div class="modal-dialog">
  283.                         <div class="modal-content">
  284.                             {{ render(controller('SocialUserBundle:Registration:renderPartialProfileConfirmation')) }}
  285.                         </div>
  286.                     </div>
  287.                 </div>
  288.             {% endif %}
  289.             {% if (app.user.numberLogins == 2) and (app.user.salt is null) and (app.user.isFake == false) %}
  290.                 <div id="profile-set-password" class="modal fade">
  291.                     <div class="modal-dialog">
  292.                         <div class="modal-content">
  293.                             {{ render(controller('SocialUserBundle:Registration:renderSetPassword')) }}
  294.                             <script type="text/javascript">
  295.                                 $('#profile-set-password').modal({
  296.                                     keyboard: false,
  297.                                     backdrop: 'static',
  298.                                     callback: function () {
  299.                                         return
  300.                                     },
  301.                                 });
  302.                             </script>
  303.                         </div>
  304.                     </div>
  305.                 </div>
  306.             {% elseif (app.user.newLocation is null) or (isUserSignupNormal(app.user) and (app.user.numberLogins == 0) and (app.user.isFake == false)) %}
  307.                 <div id="profile-completion" class="modal fade">
  308.                     <div class="modal-dialog">
  309.                         <div class="modal-content">
  310.                             {{ render(controller('SocialUserBundle:Registration:renderPartialStep3')) }}
  311.                             <script type="text/javascript">
  312.                                 $('#profile-completion').modal({
  313.                                     keyboard: false,
  314.                                     backdrop: 'static',
  315.                                     callback: function () {
  316.                                         return
  317.                                     },
  318.                                 });
  319.                                 $('.selected-country-modal').html($('#user_country').val())
  320.                                 $('.selected-city-modal').html($('#user_city').val())
  321.                             </script>
  322.                         </div>
  323.                     </div>
  324.                 </div>
  325.             {% elseif validForOpenProfileConfirmationModal(app.user) and (app.user.username starts with "anon-" or app.user.birthday is null) %}
  326.                 {% javascripts filter="?yui_js"
  327.                     "bundles/socialfrontend/js/theme/vendor/bootstrap.min.js"
  328.                     "bundles/socialfrontend/js/vendor/bootbox/bootbox.js"
  329.                     "bundles/socialfrontend/js/app/custom/account/account.js"
  330.                     "bundles/socialfrontend/js/app/custom/registration/registration.js"
  331.                     "bundles/socialfrontend/js/theme/vendor/jquery.ui.widget.js"
  332.                     "bundles/socialfrontend/js/theme/vendor/load-image.all.min.js"
  333.                     "bundles/socialfrontend/js/theme/vendor/canvas-to-blob.min.js"
  334.                     "bundles/socialfrontend/js/theme/vendor/jquery.iframe-transport.js"
  335.                     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload.js"
  336.                     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-process.js"
  337.                     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-image.js"
  338.                     "bundles/socialfrontend/js/theme/vendor/jquery.fileupload-validate.js"
  339.                     "bundles/socialfrontend/js/vendor/bootstrap-ajax-typeahead/bootstrap-typeahead.js" %}
  340.                 <script type="text/javascript" src="{{ asset_url }}"></script>
  341.                 {% endjavascripts %}
  342.                 <script type="text/javascript">
  343.                     $('#profile-confirmation').modal({
  344.                         keyboard: false,
  345.                         backdrop: 'static',
  346.                         callback: function () {
  347.                             return
  348.                         },
  349.                     });
  350.                 </script>
  351.             {% endif %}
  352.         {% endif %}
  353.     </div>
  354.     <script>
  355.         var fluxId = $.cookie("tfpr[funnel-id]");
  356.         var funnelRun = $.cookie("funnel-run");
  357.         if (fluxId && !funnelRun) {
  358.             function ffluxQuery() {
  359.                 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};
  360.             }
  361.             var fflux = new ffluxQuery();
  362.             fflux.ffq('set', ['flux_url', fflux.getDocumentURL()]);
  363.             fflux.ffq('set', ['flux_ref', fflux.getReferrer()]);
  364.             fflux.ffq('set', ['flux_f', fluxId]);
  365.             fflux.track({
  366.                 timeOnPage: false,
  367.                 timeOnPageResolution: 3000,
  368.                 noCookies: false,
  369.                 tokenInjection: {
  370.                     intoUrl: false,
  371.                     intoForms: { selector: null },
  372.                     intoLinks: { selector: null },
  373.                     tokens: {}
  374.                 }
  375.             });
  376.             $.cookie('funnel-run', true, {path:'/account'})
  377.         }
  378.     </script>
  379.     </body>
  380.     <script>
  381.         $('.resend-email').on('click', function (event) {
  382.             $(".resend-email-confirm").toggle();
  383.         });
  384.         $('.resend-email-confirm-yes').on('click tap', function (event) {
  385.             $.ajax({
  386.                 'url': '{{ url('social_registration_resend_confirmation_email') }}',
  387.                 'type': 'GET'
  388.             }).done(function () {
  389.             });
  390.             $('.resend-email-confirm').closest('.alert').slideUp();
  391.             $('.resend-email-confirm').closest('.alert').remove();
  392.         })
  393.     </script>
  394. {% endblock %}