!function(t){function e(i){if(n[i])return n[i].exports;var s=n[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=11)}({11:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(){function t(){i(this,t),this.init()}return s(t,[{key:"init",value:function(){this.customAge=jQuery(".custom-age"),this.verifyAge=jQuery(".verify-age"),this.ageInput=jQuery("#wp_age_gate_min_age"),this.verifyAge.on("click",".customise-age",this.changeVisibility.bind(this)),this.verifyAge.on("click",".save-custom-age",this.updateView.bind(this)),jQuery(".verify-restrict").on("change",'input[type="checkbox"]',this.restrictionChange.bind(this))}},{key:"restrictionChange",value:function(t){var e=jQuery(t.target),n=this.verifyAge.find(".info");switch(t.target.dataset.type){case"restrict":!1!==e.prop("checked")?n.html("\n            "+ag_post.restricted_to+': <strong class="age-display">'+(this.ageInput.length?this.ageInput.val():n.data("age"))+"</strong>\n            "+(this.ageInput.length?'<button type="button" class="customise-age button-link">'+ag_post.change+"</button>":"")+"\n          "):n.html(""+ag_post.unrestricted),this.verifyAge.toggleClass("unrestricted");break;case"bypass":!1===e.prop("checked")?n.html("\n          "+ag_post.restricted_to+': <strong class="age-display">'+(this.ageInput.length?this.ageInput.val():n.data("age"))+"</strong>\n          "+(this.ageInput.length?'<button type="button" class="customise-age button-link">'+ag_post.change+"</button>":"")+"\n        "):(this.customAge.hide(),n.html(""+ag_post.unrestricted)),this.verifyAge.toggleClass("unrestricted")}}},{key:"changeVisibility",value:function(){this.verifyAge.find(".age-display").text(this.ageInput.val()),this.customAge.toggle()}},{key:"updateView",value:function(t){this.verifyAge.find(".age-display").text(this.ageInput.val()),this.changeVisibility()}}]),t}();!function(t){t(function(){new a})}(jQuery)}});