!function(e){"use strict";"undefined"!=typeof wpcf7&&null!==wpcf7&&(wpcf7=e.extend({cached:0,inputs:[]},wpcf7),e(function(){wpcf7.supportHtml5=function(){var t={},a=document.createElement("input");t.placeholder="placeholder"in a;return e.each(["email","url","tel","number","range","date"],function(e,i){a.setAttribute("type",i),t[i]="text"!==a.type}),t}(),e("div.wpcf7 > form").each(function(){var t=e(this);wpcf7.initForm(t),wpcf7.cached&&wpcf7.refill(t)})}),wpcf7.getId=function(t){return parseInt(e('input[name="_wpcf7"]',t).val(),10)},wpcf7.initForm=function(t){var a=e(t);a.submit(function(t){wpcf7.supportHtml5.placeholder||e("[placeholder].placeheld",a).each(function(t,a){e(a).val("").removeClass("placeheld")}),"function"==typeof window.FormData&&(wpcf7.submit(a),t.preventDefault())}),e(".wpcf7-submit",a).after(''),wpcf7.toggleSubmit(a),a.on("click",".wpcf7-acceptance",function(){wpcf7.toggleSubmit(a)}),e(".wpcf7-exclusive-checkbox",a).on("click","input:checkbox",function(){var t=e(this).attr("name");a.find('input:checkbox[name="'+t+'"]').not(this).prop("checked",!1)}),e(".wpcf7-list-item.has-free-text",a).each(function(){var t=e(":input.wpcf7-free-text",this),a=e(this).closest(".wpcf7-form-control");e(":checkbox, :radio",this).is(":checked")?t.prop("disabled",!1):t.prop("disabled",!0),a.on("change",":checkbox, :radio",function(){e(".has-free-text",a).find(":checkbox, :radio").is(":checked")?t.prop("disabled",!1).focus():t.prop("disabled",!0)})}),wpcf7.supportHtml5.placeholder||e("[placeholder]",a).each(function(){e(this).val(e(this).attr("placeholder")),e(this).addClass("placeheld"),e(this).focus(function(){e(this).hasClass("placeheld")&&e(this).val("").removeClass("placeheld")}),e(this).blur(function(){""===e(this).val()&&(e(this).val(e(this).attr("placeholder")),e(this).addClass("placeheld"))})}),wpcf7.jqueryUi&&!wpcf7.supportHtml5.date&&a.find('input.wpcf7-date[type="date"]').each(function(){e(this).datepicker({dateFormat:"yy-mm-dd",minDate:new Date(e(this).attr("min")),maxDate:new Date(e(this).attr("max"))})}),wpcf7.jqueryUi&&!wpcf7.supportHtml5.number&&a.find('input.wpcf7-number[type="number"]').each(function(){e(this).spinner({min:e(this).attr("min"),max:e(this).attr("max"),step:e(this).attr("step")})}),e(".wpcf7-character-count",a).each(function(){var t=e(this),i=t.attr("data-target-name"),n=t.hasClass("down"),c=parseInt(t.attr("data-starting-value"),10),s=parseInt(t.attr("data-maximum-value"),10),p=parseInt(t.attr("data-minimum-value"),10),o=function(a){var i=e(a).val().length,o=n?c-i:i;t.attr("data-current-value",o),t.text(o),s&&s");e.each(t.invalidFields,function(t,a){if(a.idref)var n=e("
  • ").append(e("").attr("href","#"+a.idref).append(a.message));else n=e("
  • ").append(a.message);i.append(n)}),a.append(i)}a.attr("role","alert").focus()})}(t,0,0,a),e(".ajax-loader",a).removeClass("is-active")}).fail(function(t,i,n){var c=e('
    ').text(n.message);a.after(c)})}},wpcf7.triggerEvent=function(t,a,i){var n=e(t),c=new CustomEvent("wpcf7"+a,{bubbles:!0,detail:i});n.get(0).dispatchEvent(c),n.trigger("wpcf7:"+a,i),n.trigger(a+".wpcf7",i)},wpcf7.toggleSubmit=function(t,a){var i=e(t),n=e("input:submit",i);void 0===a?i.hasClass("wpcf7-acceptance-as-validation")||(n.prop("disabled",!1),e(".wpcf7-acceptance",i).each(function(){var t=e(this),a=e("input:checkbox",t);if(!t.hasClass("optional")&&(t.hasClass("invert")&&a.is(":checked")||!t.hasClass("invert")&&!a.is(":checked")))return n.prop("disabled",!0),!1})):n.prop("disabled",!a)},wpcf7.notValidTip=function(t,a){var i=e(t);if(e(".wpcf7-not-valid-tip",i).remove(),e('').text(a).appendTo(i),i.is(".use-floating-validation-tip *")){var n=function(t){e(t).not(":hidden").animate({opacity:0},"fast",function(){e(this).css({"z-index":-100})})};i.on("mouseover",".wpcf7-not-valid-tip",function(){n(this)}),i.on("focus",":input",function(){n(e(".wpcf7-not-valid-tip",i))})}},wpcf7.refill=function(t,a){var i=e(t),n=function(t,a){e.each(a,function(e,a){t.find(':input[name="'+e+'"]').val(""),t.find("img.wpcf7-captcha-"+e).attr("src",a);var i=/([0-9]+)\.(png|gif|jpeg)$/.exec(a);t.find('input:hidden[name="_wpcf7_captcha_challenge_'+e+'"]').attr("value",i[1])})},c=function(t,a){e.each(a,function(e,a){t.find(':input[name="'+e+'"]').val(""),t.find(':input[name="'+e+'"]').siblings("span.wpcf7-quiz-label").text(a[0]),t.find('input:hidden[name="_wpcf7_quiz_answer_'+e+'"]').attr("value",a[1])})};void 0===a?e.ajax({type:"GET",url:wpcf7.apiSettings.getRoute("/contact-forms/"+wpcf7.getId(i)+"/refill"),beforeSend:function(e){var t=i.find(':input[name="_wpnonce"]').val();t&&e.setRequestHeader("X-WP-Nonce",t)},dataType:"json"}).done(function(e,t,a){e.captcha&&n(i,e.captcha),e.quiz&&c(i,e.quiz)}):(a.captcha&&n(i,a.captcha),a.quiz&&c(i,a.quiz))},wpcf7.clearResponse=function(t){var a=e(t);a.removeClass("invalid spam sent failed"),a.siblings(".screen-reader-response").html("").attr("role",""),e(".wpcf7-not-valid-tip",a).remove(),e("[aria-invalid]",a).attr("aria-invalid","false"),e(".wpcf7-form-control",a).removeClass("wpcf7-not-valid"),e(".wpcf7-response-output",a).hide().empty().removeAttr("role").removeClass("wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked")},wpcf7.apiSettings.getRoute=function(e){var t=wpcf7.apiSettings.root;return t=t.replace(wpcf7.apiSettings.namespace,wpcf7.apiSettings.namespace+e)})}(jQuery),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=window.Event.prototype,window.CustomEvent=e}(); !function(n){n(".tml").on("submit",'form[data-ajax="1"]',function(a){var e=n(this),s=e.find(":input"),t=e.find(":submit"),r=n(a.delegateTarget).find(".tml-alerts");a.preventDefault(),r.empty(),s.prop("readonly",!0),t.prop("disabled",!0),n.ajax({data:e.serialize()+"&ajax=1",method:e.attr("method")||"get",url:e.attr("action")}).always(function(){s.prop("readonly",!1),t.prop("disabled",!1)}).done(function(a){a.success?a.data.refresh?location.reload(!0):a.data.redirect?location.href=a.data.redirect:a.data.notice&&r.hide().html(a.data.notice).fadeIn():r.hide().html(a.data.errors).fadeIn()}).fail(function(a,e,s){a.responseJSON.data.errors&&r.hide().html(a.responseJSON.data.errors).fadeIn()})})}(jQuery),function(s){s(function(){var a,e;if(!themeMyLogin.action)return;switch(a=s("#user_login"),themeMyLogin.action){case"activate":(e=s("#key")).length&&e.focus();break;case"lostpassword":case"retrievepassword":case"register":a.focus();break;case"resetpass":case"rp":s("#pass1").focus();break;case"login":-1!=themeMyLogin.errors.indexOf("invalid_username")&&a.val(""),a.val()?s("#user_pass").focus():a.focus()}})}(jQuery),function(s){function a(){var a=s("#pass1").val(),e=s("#pass-strength-result");if(e.removeClass("short bad good strong"),a)switch(wp.passwordStrength.meter(a,wp.passwordStrength.userInputBlacklist(),a)){case-1:e.addClass("bad").html(pwsL10n.unknown);break;case 2:e.addClass("bad").html(pwsL10n.bad);break;case 3:e.addClass("good").html(pwsL10n.good);break;case 4:e.addClass("strong").html(pwsL10n.strong);break;case 5:e.addClass("short").html(pwsL10n.mismatch);break;default:e.addClass("short").html(pwsL10n.short)}else e.html(" ")}s(document).ready(function(){s("#pass1").val("").on("keyup paste",a)})}(jQuery); !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
    ');t&&s.append("

    "+t+"

    "),o&&s.append("

    "+o+"

    "),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(); jQuery(function(d){if("undefined"==typeof wc_add_to_cart_params)return!1;function t(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),d(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("ajax_request_not_sent.adding_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)}t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0'+wc_add_to_cart_params.i18n_view_cart+""),d(document.body).trigger("wc_cart_button_updated",[r]))},t.prototype.updateFragments=function(t,a){a&&(d.each(a,function(t){d(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),d.each(a,function(t,a){d(t).replaceWith(a),d(t).stop(!0).css("opacity","1").unblock()}),d(document.body).trigger("wc_fragments_loaded"))},new t}); !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u'),t(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),t(".password-input").append(''),t(".show-password-input").click(function(){t(this).toggleClass("display-password"),t(this).hasClass("display-password")?t(this).siblings(['input[type="password"]']).prop("type","text"):t(this).siblings('input[type="text"]').prop("type","password")})}); jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=r.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d",""":'"',"'":"'","’":"’","‘":"‘","–":"–","—":"—","…":"…","”":"”"};return e.replace(/\&[\w\d\#]{2,5}\;/g,function(e){return r[e]})}jQuery(document).ready(function(){wpcf7_redirect_mailsent_handler()}); jQuery(document).ready(function($){ jQuery('.fc-slider-feature .slides').slick({ slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, autoplay: true, autoplaySpeed: 10000, asNavFor: '.fc-slider-sync' }); jQuery('.fc-slider-sync').slick({ slidesToShow: 1, slidesToScroll: 1, dots: true, autoplay: true, autoplaySpeed: 10000, centerMode: true, arrows: false, fade: true, focusOnSelect: true, asNavFor: '.fc-slider-feature .slides', responsive: [ { breakpoint: 991, settings: "unslick", } ] }); jQuery('div.share-inside').unbind(); document.addEventListener('wpcf7mailsent', function(event){ location=dataUrl.homeUrl + '/lien-he/gui-lien-he-thanh-cong/'; }, false); var pagetop=$('.go-up'); var contentWidth=960; $(window).on('load scroll resize', function(){ var winWidth=$(window).width(); var winHeight=$(window).outerHeight(); var scrollTop=$(window).scrollTop(); var barAdmin=$('#wpadminbar').length > 0 ? $('#wpadminbar').outerHeight():0; var scrollBottom=$('html').outerHeight() - winHeight - $('#footer-bottom').outerHeight() + barAdmin; var bottom,right,classes; if(winWidth < contentWidth){ right=20; }else if(winWidth < contentWidth + 27){ right=winWidth - contentWidth; }else{ right=27; } if(scrollTop > scrollBottom){ bottom=scrollTop - scrollBottom; pagetop.addClass('stuff'); }else{ bottom=30; pagetop.removeClass('stuff'); } pagetop.css({ right:right, bottom:bottom }); $('.fb_dialog').css({ bottom: bottom +' !important' }); if(scrollTop > winHeight*0.2){ if(!pagetop.is(':visible')){ pagetop.css('opacity',0).show(); pagetop.animate({opacity:1},'fast'); } jQuery('#fb-root').addClass('visible'); }else{ if(pagetop.is(':visible')&&!pagetop.is(':animated')){ pagetop.animate({opacity:0},'fast',function(){ pagetop.css('opacity',1).hide(); }); } jQuery('#fb-root').removeClass('visible'); }}); jQuery('.js-smooth').click(function(){ var speed=500, href=$(this).attr('href').split('#')[1],     target=$(href=="" ? 'html':'#' + href),     position=target.offset().top;   $('body,html').animate({    scrollTop: position   }, speed, 'swing');   return false;  }); var offsetY=window.pageYOffset; var lightbox=$('.modal'); var btn=$('.js-modal'); var scrollBarWidth = window.innerWidth - document.documentElement.clientWidth; var modalInit=function (){ btn.click(function (){ var lightboxID=$(this).data('modal'); modalOpen(lightboxID); }); lightbox.find('.js-modal-close').click(function (){ var lightBox=$(this).parents('.modal'); modalClose(lightBox); }); }; var modalOpen=function (lightboxID){ $(lightboxID).fadeIn(); offsetY=window.pageYOffset; $('body').css({ position: 'fixed', top: -offsetY + 'px', width: '100%', paddingRight: scrollBarWidth + 'px' }); $(document).on('touchmove', function (e){ if($(e.target).parents('.modal-dialog').length==0) return false; }); }; var modalClose=function (lightBox){ $('body').css({ position: 'static', top: 'auto', paddingRight: 0 }); $(window).scrollTop(offsetY); lightBox.fadeOut('fast'); $(document).off('touchmove'); }; modalInit(); jQuery('input[type=file]').on('change', function(fileInput){ var files=fileInput.target.files; if(files.length){ if(files[0]['name']!=='') jQuery(this).parent().siblings('.filename').html(files[0]['name']).show(); else jQuery(this).parent().siblings('.filename').html('').hide(); }}); }); var currentURL=window.location.href; jQuery('.js-request-url .tml-social-provider-facebook').on('click', function (){ sessionStorage.setItem('request_url', currentURL); }); jQuery(window).on('load', function(){ setTimeout(function(){ jQuery('.lazybg').each(function(){ jQuery(this).removeClass('lazybg').addClass('lazyloaded'); }); jQuery('.item-lazyload').each(function(){ jQuery(this).removeClass('item-lazyload').addClass('item-loaded'); }); }, 1000); if(sessionStorage.length&&sessionStorage.getItem('request_url')!=null){ var referrerUrl=sessionStorage.getItem('request_url'); if(document.referrer.indexOf('facebook.com')!==-1&¤tURL.indexOf('edit-profile')===-1){ window.location.href=referrerUrl; sessionStorage.removeItem('request_url'); } if(referrerUrl===document.referrer){ sessionStorage.removeItem('request_url'); }} }); !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c