(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=1)})([,function(){function a(a,c=void 0){function d(a){e&&clearInterval(e);var b=f.find('#'+a).find('.gutentor-countdown-wrapper'),c=b.attr('data-eventdate');if(void 0===c||null===c)return b.children('.gutentor-count-down-invalid-msg').length||b.append('<span class=\'gutentor-count-down-invalid-msg\'>Please set validate Date and time for countdown </span>'),b.children().addClass('hidden'),b.children('.gutentor-count-down-invalid-msg').removeClass('hidden'),!1;b.children().removeClass('hidden'),b.children('.gutentor-count-down-invalid-msg').remove();var d=b.attr('data-expiredtext'),g=b.find('.day'),h=b.find('.hour'),i=b.find('.min'),j=b.find('.sec'),k=c.split('T');if(2!==k.length)return!1;var l=k[0],m=k[1],n=l.split('-');if(3!==n.length)return!1;var o=m.split(':');if(3!==o.length)return!1;var p=parseInt(n[0]),q=parseInt(n[1])-1,r=parseInt(n[2]),s=parseInt(o[0]),t=parseInt(o[1]),u=parseInt(o[2]),v=new Date(p,q,r,s,t,u,0).getTime();e=setInterval(function(){var a=Math.floor,c=new Date().getTime(),f=v-c,k=a(f/86400000),l=a(f%86400000/3600000),m=a(f%3600000/60000),n=a(f%60000/1e3);g.html(k),h.html(l),i.html(m),j.html(n),0>f?(clearInterval(e),b.children().addClass('hidden'),b.append('<span class=\'gutentor-count-down-expire\'>'+d+'</span>')):(b.children().removeClass('hidden'),b.children('.gutentor-count-down-expire').remove())},1e3)}let f=a(document);'undefined'!=typeof c&&c.length&&(f=a('iframe[name="editor-canvas"]').contents()),a('.gutentor-filter-group').on('click','.gutentor-filter-inside',function(){var b=a(this).attr('data-filter');$grid.isotope({filter:b})}),f.on('click','.gutentor-single-item-close-action,.block-editor-block-contextual-toolbar-wrapper',function(){var b=a(this),c=b.closest('.gutentor-column-inside');c.removeClass('single-item-active'),c.closest('.gutentor-section').removeClass('hide-gutentor-controls-actions'),a('.block-editor-editor-skeleton__sidebar, .interface-interface-skeleton__sidebar').css({"z-index":''})}),f.click(function(b){let c=f.find('.gutentor-single-item-edit-actions');if(!a(b.target).closest('.gutentor-single-item-edit-actions').length&&c.is(':visible')&&!(a(b.target).hasClass('dashicons-admin-generic')&&a(b.target).parent().hasClass('gutentor-single-item-action-button'))&&!(a(b.target).hasClass('g-icon-picker-single-btn')||a(b.target).parent().hasClass('g-icon-picker-single-btn'))){if(c.find('.g-popover-open ').length)return!1;a('.gutentor-single-item-close-action').trigger('click')}}),f.on('click','.gutentor-single-item-action-button',function(){var b=a(this),c=b.closest('.gutentor-column-inside'),d=c.find('.gutentor-single-item-edit-actions'),e=b[0].getBoundingClientRect().left+a(window).scrollLeft();a('.gutentor-column-inside').removeClass('single-item-active'),a('.gutentor-section').removeClass('hide-gutentor-controls-actions');let f={};310>e?(f.right='',f.left=0,d.addClass('g-single-item-popup-left')):d.removeClass('g-single-item-popup-left'),d.css(f),c.addClass('single-item-active'),c.closest('.gutentor-section').addClass('hide-gutentor-controls-actions')}),f.on('click','.gutentor-social-single-item-button',function(){var b=a(this),c=b.closest('.gutentor-social-item-inside');a('.gutentor-column-inside').removeClass('single-item-active'),a('.gutentor-section').removeClass('hide-gutentor-controls-actions'),a('.gutentor-social-item-inside').removeClass('social-single-item-active'),b.closest('.gutentor-column-inside').addClass('social-active-control-action'),c.addClass('social-single-item-active'),c.closest('.gutentor-section').addClass('hide-gutentor-controls-actions'),a('.block-editor-editor-skeleton__sidebar, .interface-interface-skeleton__sidebar').css({"z-index":'-1'})}),f.on('click','.gutentor-social-single-item-close-action',function(){var b=a(this),c=b.closest('.gutentor-social-item-inside');b.closest('.gutentor-column-inside').removeClass('social-active-control-action'),c.removeClass('social-single-item-active'),c.closest('.gutentor-section').removeClass('hide-gutentor-controls-actions'),a('.block-editor-editor-skeleton__sidebar, .interface-interface-skeleton__sidebar').css({"z-index":''})}),f.on('click','.gutentor-video-popup-holder, .g-v-btn, .g-v-fp-btn ',function(){a(this).magnificPopup({disableOn:700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:!1,fixedContentPos:!1})});let e=null;f.on('click','.gutentor-countdown-start',function(){let b=a(this).attr('data-sectionid');d(b)}),f.on('change','.gutentor-font-type select, .gutentor-google-font select, .gutentor-font-weight select',function(){let c=a(this).closest('.gutentor-typography-main-wrap');setTimeout(function(){let a=c.find('.gutentor-font-type'),d=a.find('select').val();c.attr('id')||c.uniqueId();let e=c.attr('id');if('google'===d){let a=c.find('.gutentor-google-font'),d=a.find('select').val()?a.find('select').val():'Acme',f='default'===d?'Acme':d,g=f.replace(' ','+'),h=c.find('.gutentor-font-weight'),i=h.find('select').val();g=g+':'+i,g=g.replace('italic','i'),g=g.replace('default','regular');let j='//fonts.googleapis.com/css';j+='?family='+g,b({id:'#gutentor-google-'+e,href:j})}},300)}),a('.g-html-preview').each(function(){const b=a(this)[0],c=new MutationObserver(function(b){b.forEach(function(b){let c=a(b.target);if(0<c.children().length){let a=c.children().eq(0).outerHeight(),b=c.outerHeight();c.removeClass('g-child-greater-height g-child-smaller-height'),a>b?c.addClass('g-child-greater-height'):c.addClass('g-child-smaller-height')}})});c.observe(b,{childList:!0,subtree:!0})}),f.on('click','.g-filter-col-inspectors .css-10nd86i',function(){a(this).closest('.g-filter-col-inspectors').toggleClass('g-filter-selected')})}const b=(a)=>{if(a.id&&a.href){let b=window.document,c=document.getElementsByName('editor-canvas');if(c.length&&(b=c[0].contentDocument),null===b.getElementById(a.id)){let c=document.createElement('link');c.type='text/css',c.rel='stylesheet',c.id=a.id,0==b.getElementsByTagName('head').length?(b.getElementsByTagName('body')[0].appendChild(c),c.href=a.href):(b.getElementsByTagName('head')[0].appendChild(c),c.href=a.href)}else b.getElementById(a.id).href=a.href}};(function(b){function c(){if(-1<window.location.href.indexOf('site-editor.php')){let c=!1,d=setInterval(function(){let e=b('iframe[name="editor-canvas"]');e.length&&(a(b,e),c=!0),c&&clearInterval(d)},500)}else a(b)}c(),function(a){const b=a.pushState;a.pushState=function(d){return'function'==typeof a.onpushstate&&a.onpushstate({state:d}),c(),b.apply(a,arguments)}}(window.history)})(jQuery)}]);