/** * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ /*! @source http://purl.eligrey.com/github/l10n.js/blob/master/l10n.js*/ !function(){var e,t,o;!function(i){function s(e,t){return k.call(e,t)}function a(e,t){var o,i,s,a,r,n,l,c,d,u,m,f=t&&t.split("/"),h=x.map,p=h&&h["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),r=e.length-1,x.nodeIdCompat&&v.test(e[r])&&(e[r]=e[r].replace(v,"")),e=f.slice(0,f.length-1).concat(e),d=0;d0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((f||p)&&h){for(o=e.split("/"),d=o.length;d>0;d-=1){if(i=o.slice(0,d).join("/"),f)for(u=f.length;u>0;u-=1)if((s=h[f.slice(0,u).join("/")])&&(s=s[i])){a=s,n=d;break}if(a)break;!l&&p&&p[i]&&(l=p[i],c=d)}!a&&l&&(a=l,n=c),a&&(o.splice(0,n,a),e=o.join("/"))}return e}function r(e,t){return function(){var o=w.call(arguments,0);return"string"!=typeof o[0]&&1===o.length&&o.push(null),f.apply(i,o.concat([e,t]))}}function n(e){return function(t){return a(t,e)}}function l(e){return function(t){b[e]=t}}function c(e){if(s(g,e)){var t=g[e];delete g[e],T[e]=!0,m.apply(i,t)}if(!s(b,e)&&!s(T,e))throw new Error("No "+e);return b[e]}function d(e){var t,o=e?e.indexOf("!"):-1;return o>-1&&(t=e.substring(0,o),e=e.substring(o+1,e.length)),[t,e]}function u(e){return function(){return x&&x.config&&x.config[e]||{}}}var m,f,h,p,b={},g={},x={},T={},k=Object.prototype.hasOwnProperty,w=[].slice,v=/\.js$/;h=function(e,t){var o,i=d(e),s=i[0];return e=i[1],s&&(s=a(s,t),o=c(s)),s?e=o&&o.normalize?o.normalize(e,n(t)):a(e,t):(e=a(e,t),i=d(e),s=i[0],e=i[1],s&&(o=c(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:o}},p={require:function(e){return r(e)},exports:function(e){var t=b[e];return void 0!==t?t:b[e]={}},module:function(e){return{id:e,uri:"",exports:b[e],config:u(e)}}},m=function(e,t,o,a){var n,d,u,m,f,x,k=[],w=typeof o;if(a=a||e,"undefined"===w||"function"===w){for(t=!t.length&&o.length?["require","exports","module"]:t,f=0;f=0;e--)s[e].$blocker&&(s[e].$blocker.toggleClass("current",!t).toggleClass("behind",t),t=!0)};e.fbx_modal=function(t,o){var i,r;if(this.$body=e("body"),this.options=e.extend({},e.fbx_modal.defaults,o),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;e.fbx_modal.isActive();)e.fbx_modal.close();if(s.push(this),t.is("a"))if(r=t.attr("href"),this.anchor=t,/^#/.test(r)){if(this.$elm=e(r),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=e("
"),this.$body.append(this.$elm),i=function(e,t){t.elm.remove()},this.showSpinner(),t.trigger(e.fbx_modal.AJAX_SEND),e.get(r).done(function(o){if(e.fbx_modal.isActive()){t.trigger(e.fbx_modal.AJAX_SUCCESS);var s=a();s.$elm.empty().append(o).on(e.fbx_modal.CLOSE,i),s.hideSpinner(),s.open(),t.trigger(e.fbx_modal.AJAX_COMPLETE)}}).fail(function(){t.trigger(e.fbx_modal.AJAX_FAIL),a().hideSpinner(),s.pop(),t.trigger(e.fbx_modal.AJAX_COMPLETE)});else this.$elm=t,this.anchor=t,this.$body.append(this.$elm),this.open()},e.fbx_modal.prototype={constructor:e.fbx_modal,open:function(){var t=this;this.block(),this.anchor.blur(),this.options.doFade?setTimeout(function(){t.show()},this.options.fadeDuration*this.options.fadeDelay):this.show(),e(o).off("keydown.modal").on("keydown.modal",function(e){var t=a();27===e.which&&t.options.escapeClose&&t.close()}),this.options.clickClose&&this.$blocker.click(function(t){t.target===this&&e.fbx_modal.close()})},close:function(){s.pop(),this.unblock(),this.hide(),e.fbx_modal.isActive()||e(o).off("keydown.modal")},block:function(){this.$elm.trigger(e.fbx_modal.BEFORE_BLOCK,[this._ctx()]),this.$blocker=e('
').appendTo(this.options.elementToBlock),r(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(e.fbx_modal.BLOCK,[this._ctx()])},unblock:function(t){!t&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(this.options.elementToBlock),this.$blocker.remove(),this.$blocker=null,r(),e.fbx_modal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger(e.fbx_modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=e(''+this.options.closeText+""),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block"),this.$elm.trigger(e.fbx_modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(e.fbx_modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var t=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,function(){t.$elm.trigger(e.fbx_modal.AFTER_CLOSE,[t._ctx()])}):this.$elm.hide(0,function(){t.$elm.trigger(e.fbx_modal.AFTER_CLOSE,[t._ctx()])}),this.$elm.trigger(e.fbx_modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||e('
').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$blocker:this.$blocker,options:this.options,$anchor:this.anchor}}},e.fbx_modal.close=function(t){if(e.fbx_modal.isActive()){t&&t.preventDefault();var o=a();return o.close(),o.$elm}},e.fbx_modal.isActive=function(){return s.length>0},e.fbx_modal.getCurrent=a,e.fbx_modal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",blockerClass:"jquery-modal",elementToBlock:e("body"),spinnerHtml:'
',showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},e.fbx_modal.BEFORE_BLOCK="modal:before-block",e.fbx_modal.BLOCK="modal:block",e.fbx_modal.BEFORE_OPEN="modal:before-open",e.fbx_modal.OPEN="modal:open",e.fbx_modal.BEFORE_CLOSE="modal:before-close",e.fbx_modal.CLOSE="modal:close",e.fbx_modal.AFTER_CLOSE="modal:after-close",e.fbx_modal.AJAX_SEND="modal:ajax:send",e.fbx_modal.AJAX_SUCCESS="modal:ajax:success",e.fbx_modal.AJAX_FAIL="modal:ajax:fail",e.fbx_modal.AJAX_COMPLETE="modal:ajax:complete",e.fn.fbx_modal=function(t){return 1===this.length&&new e.fbx_modal(this,t),this}}),o("modal",function(){}),function(){"use strict";var e,t,o=self.navigator,i=String,s=Object.prototype.hasOwnProperty,a={},r={},n=/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i,l=Array.prototype.indexOf||function(e){for(var t=this.length,o=0;o0&&"number"!=typeof e)if("string"==typeof e)d(c(e));else if(!1===e)r={};else{var t,o,n;for(t in e)if(s.call(e,t)){if(o=e[t],t=t.toLowerCase(),t in r&&!1!==o||(r[t]={}),!1===o)continue;if("string"==typeof o){if(0!==i.locale.toLowerCase().indexOf(t)){t in a||(a[t]=[]),a[t].push(o);continue}o=c(o)}for(n in o)s.call(o,n)&&(r[t][n]=o[n])}}return Function.prototype.toLocaleString.apply(i,arguments)},u=function(e){for(var t,o=a[e],i=0,s=o.length;i"',t.error&&(i+=t.error),t.message&&(i+=": "+t.message),i+='"',a.html(i).addClass("fbxt-email-error-text")):"success"===t.status||"unknown"===t.status?(i="Thanks! You'll be hearing from us soon.".toLocaleString(),s=!0,a.html(i).removeClass("fbxt-email-error-text")):"exists"===t.status&&(i="You're already subscribed to this list. Thanks!".toLocaleString(),s=!0,a.html(i).removeClass("fbxt-email-error-text")),s){this.find("h4,p,.fbxt-name-fields,.fbxt-email-input").hide();var r=this.find(".fbxt-email-action-button");r.data("orig-txt",r.val()),r.css("margin-left","auto").css("margin-right","auto"),r.off("click").click(e.fbx_modal.close).val("Close".toLocaleString())}}function s(t,o,i){e(".fbxt-email-response-text").html("An error occured while signing you up. The message is:".toLocaleString()+'
"'+t.responseJSON.error+": "+t.responseJSON.message+'"')}e(".fbxt-header-text").text(SPT_Transcripts.header_text.toLocaleString()),e(".fbxt-nav-new_tab .fbxt-nav-text").text("New Tab".toLocaleString()),e(".fbxt-nav-download .fbxt-nav-text").text("Download".toLocaleString()),e(".fbxt-content--footer .fbxt-nav-text").text("Scroll back to top".toLocaleString()),e(".fbxt-nav-new_tab").click(function(t){t.preventDefault();var o=e(this).closest("#fbxt-wrap").find(".fbxt-content--inner").html(),i=window.open("about:blank","_blank");i.document.write(o),i.document.write(''),i.document.close()}),e(".fbxt-nav-download").click(function(e){e.preventDefault();var t=SPT_Transcripts.site_url;t+="/index.php?plugin=smart-podcast-transcripts&action=download-pdf",t+="&post-id="+SPT_Transcripts.post_id,window.open(t)}),!SPT_Transcripts||SPT_Transcripts.download&&"false"!=SPT_Transcripts.download||e(".fbxt-nav-download").hide(),e(".fbxt-first-name-input").attr("placeholder","First Name".toLocaleString()),e(".fbxt-last-name-input").attr("placeholder","Last Name".toLocaleString()),e(".fbxt-email-input").attr("placeholder","Email Address".toLocaleString()),e(".fbxt-nav-email").click(function(o){o.preventDefault(),t(e(o.currentTarget))}),e(".fbxt-content--footer").click(function(t){t.preventDefault(),e(this).closest(".fbxt-content").animate({scrollTop:0},"fast")}),e("#fbxt-wrap").each(function(){var o=e(this).data("scroll-trigger");"number"==typeof o&&(o=Math.min(o,99.5),e(this).find(".fbxt-content").scroll(function(){100*(this.scrollTop+this.clientHeight)/this.scrollHeight>=o&&(t(e(this)),e(this).off("scroll"))})),e(this).find(".fbxt-content--inner").height()f;)o(n,e=t[f++])&&(~c(s,e)||u(s,e));return s}},function(r,t,e){var n=e(11),o=e(59),a=e(62);e=function(r){return function(t,e,c){var i,u=n(t),f=a(u),s=o(c,f);if(r&&e!=e){for(;s"+r+""}var c,i=n(45),u=n(74),f=n(64),s=n(53),p=n(76),l=n(41),y=(n=n(52),"prototype"),h="script",v=n("IE_PROTO"),g=function(){try{c=new ActiveXObject("htmlfile")}catch(r){}var r;g="undefined"==typeof document||document.domain&&c?function(r){r.write(a("")),r.close();var t=r.parentWindow.Object;return r=null,t}(c):((r=l("iframe")).style.display="none",p.appendChild(r),r.src=String("javascript:"),(r=r.contentWindow.document).open(),r.write(a("document.F=Object")),r.close(),r.F);for(var t=f.length;t--;)delete g[y][f[t]];return g()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(o[y]=i(t),n=new o,o[y]=null,n[v]=t):n=g(),e===r?n:u.f(n,e)}},function(r,t,e){var n=e(5),o=e(44),a=e(43),c=e(45),i=e(11),u=e(75);t.f=n&&!o?Object.defineProperties:function(r,t){c(r);for(var e,n=i(t),o=u(t),f=o.length,s=0;s=t||56320!=(64512&i(r,e))))return!1}return!0}})},function(r,t,e){var n=e(91),o=String;r.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return o(r)}},function(r,t,e){var n=e(2),o=e(7),a=e(13),c=e(15),i=e(102),u=(e=e(6),Array),f=a("".charAt),s=a("".charCodeAt),p=a([].join),l="".toWellFormed,y=l&&e((function(){return"1"!==o(l,1)}));n({target:"String",proto:!0,forced:y},{toWellFormed:function(){var r=i(c(this));if(y)return o(l,r);for(var t=r.length,e=u(t),n=0;n{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})();; /*! This file is auto-generated */ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex