PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/princesspicnicevents.com/wp-content/themes/soledad/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/princesspicnicevents.com/wp-content/themes/soledad/js/penci-popup.js

(function($) {
  'use strict';
  var PENCI = PENCI || {};
  PENCI.promoPopup = function() {
    
    if ($('body').hasClass('pc-age-verify') &&
        Cookies.get('penci_age_verify') !== 'confirmed') {
      return false;
    }
    
    var promo_version = penci_popup_settings.promo_version,
        shown = false,
        pages = Cookies.get('penci_shown_pages'),
        popup_event = penci_popup_settings.popup_event,
        
        showPopup = function() {
          
        
          
          $.magnificPopup.open({
            items: {
              src: '.penci-popup-content',
            },
            type: 'inline',
            removalDelay: 500, //delay removal by X to allow out-animation
            tClose: true,
            tLoading: false,
            callbacks: {
              beforeOpen: function() {
                this.st.mainClass = 'mfp-ani-wrap penci-promo-popup-wrapper';
              },
              close: function() {
              
                if ('section' === popup_event) {
                  sessionStorage.setItem('penci_popup_' + promo_version,
                      'shown');
                } else if ('time' === popup_event) {
                  Cookies.set('penci_popup_' + promo_version, 'shown', {
                    expires: parseInt(penci_popup_settings.popup_delay),
                    path: '/',
                  });
                }
              },
            },
          });
        };
    
    if (!pages) {
      pages = 0;
    }
    
    if (pages < penci_popup_settings.popup_pages) {
      pages++;
      
      Cookies.set('penci_shown_pages', pages, {
        expires: penci_popup_settings.popup_delay,
        path: '/',
      });
      
      return false;
    }
    
    if ('all_pages' === popup_event) {
      showPopup();
    } else if (('section' !== popup_event &&
            Cookies.get('penci_popup_' + promo_version) !== 'shown') ||
        ('section' === popup_event &&
            sessionStorage.getItem('penci_popup_' + promo_version) !==
            'shown')) {
      showPopup();
    }
  };
  
  $(document).ready(function() {
    PENCI.promoPopup();
  });
})(jQuery);