@automattic/newspack-blocks 4.26.3 → 4.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/composer.lock +6 -6
- package/dist/carousel/view-rtl.css +1 -1
- package/dist/carousel/view.asset.php +1 -1
- package/dist/carousel/view.css +1 -1
- package/dist/donate/view.asset.php +1 -1
- package/dist/donate/view.js +1 -1
- package/dist/editor-rtl.css +31 -21
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +31 -21
- package/dist/editor.js +27 -27
- package/dist/modal.asset.php +1 -1
- package/dist/modal.js +1 -1
- package/dist/placeholder_blocks.asset.php +1 -1
- package/dist/placeholder_blocks.js +2 -2
- package/dist/tiersBased.asset.php +1 -1
- package/dist/tiersBased.js +1 -1
- package/includes/class-newspack-blocks.php +1 -1
- package/languages/newspack-blocks-de_DE.po +59 -59
- package/languages/newspack-blocks-es_ES.po +59 -59
- package/languages/newspack-blocks-fr_BE.po +59 -59
- package/languages/newspack-blocks-nb_NO.po +59 -59
- package/languages/newspack-blocks-pt_PT.po +59 -59
- package/languages/newspack-blocks.pot +66 -65
- package/newspack-blocks.php +2 -2
- package/package.json +9 -7
- package/release.config.js +1 -0
- package/src/blocks/checkout-button/view.php +17 -16
- package/vendor/composer/installed.php +6 -6
- package/commitlint.config.js +0 -1
package/dist/modal.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'e4b12a75d8e0dcf45035');
|
package/dist/modal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";function e(e,t=!1){const o=e.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===o.length)return!1;const n=o?.[0];let c;n.focus(),t?(document.addEventListener("keydown",function(e){if(("Tab"===e.key||9===e.keyCode)&&e.shiftKey&&document.activeElement===n){const o=t.contentWindow.document,n=o.getElementById("checkout-after-success");c=null!==n?n:o.getElementById("checkout_cancel"),c.focus(),e.preventDefault()}}),document.getElementById("newspack-a11y-last-element").addEventListener("focus",()=>{n.focus()})):(c=o[o.length-1],document.addEventListener("keydown",function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(c.focus(),e.preventDefault()):document.activeElement===c&&(n.focus(),e.preventDefault()))}))}const t=(e,t={})=>({...t,action:e}),o=["action","action_type","amount","currency","product_id","product_type","variation_id","variation_ids","is_variable","is_grouped","child_ids","price_summary","newspack_popup_id","prompt_title","gate_post_id","recurrence","referrer"],n=(e,t="np_modal_checkout_interaction")=>{if("function"==typeof window.gtag&&e){const n={};for(const t of o)e[t]&&("boolean"==typeof e[t]?e[t]=e[t]?"yes":"no":"true"===e[t]?e[t]="yes":"false"===e[t]&&(e[t]="no"),n[t]=e[t].toString());window.gtag("event",t,n)}},c=e=>{if("function"!=typeof window.gtag)return;let o="opened";const{amount:c="",is_variable:a="",is_grouped:r="",price:s="",variation_id:i=""}=e,l={...e};(c||s)&&(l.amount=c||s),a&&!i&&(o="opened_variations"),r&&(o="opened_grouped");const d=t(o,l);n(d)};function a(e,t=null){const o=document.createElement("input");return o.type="hidden",o.name=e,t&&(o.value=t),o}function r(e){e.requestSubmit(e.querySelector('button[type="submit"]'))}function s(e){const t="string"==typeof e?document.getElementById(e):e;if(!t)return console.warn("No container found for checkout data"),{};let o={};if("FORM"===t.tagName){const e=new FormData(t);o=Object.fromEntries(e)}const n=t.dataset.checkout;if(!n)return console.warn("No checkout data found"),o;try{o={...o,...JSON.parse(n)}}catch(e){console.warn("Error parsing checkout data")}const c=new URL(t.ownerDocument.defaultView.location.href);return c.searchParams.get("action_type")&&(o.action_type=c.searchParams.get("action_type")),o}const i=e=>{if("function"!=typeof window.gtag)return;e=e||s("newspack_modal_checkout");const o=t("dismissed",e);n(o)},l=newspackBlocksModal.newspack_class_prefix,d="newspack_modal_checkout_iframe",u="newspack_modal_checkout_container",p=`${l}__modal`,m="newspack-blocks__modal-variation",_=`${l}__processing-payment-text`,h=newspackBlocksModal.processing_payment_messages;let y=!1,k=newspackBlocksModal.labels.checkout_modal_title,w=null;const f=e=>{e.overlayId&&window.newspackReaderActivation?.overlays&&window.newspackReaderActivation?.overlays.remove(e.overlayId),e.setAttribute("data-state","closed"),document.body.style.overflow="auto"};window.onpageshow=e=>{e.persisted&&(document.querySelectorAll(".modal-processing").forEach(e=>e.classList.remove("modal-processing")),document.querySelectorAll(".non-modal-checkout-loading").forEach(e=>e.classList.remove("non-modal-checkout-loading")),document.querySelectorAll(`.${p}-container`).forEach(e=>f(e)))};const v=new CustomEvent("checkout-closed");var g;window.newspackRAS=window.newspackRAS||[],g=()=>{const t=document.querySelector("#newspack_modal_checkout");if(!t)return;const o=t.querySelector(`.${p}__content`),n=a("modal_checkout","1"),g=o.querySelector(`.${l}__spinner`);let b=document.querySelector(".newspack-reader__account-link")?.[0];const S="600px",E=document.createElement("iframe");E.name=d,E.style.height=S,E.style.visibility="hidden";const A=e=>{M.observe(e),"none"!==g.style.display&&(g.style.display="none"),"visible"!==E.style.visibility&&(E.style.visibility="visible"),E._ready=!0};!function(e,t,o){e._ready=!1,e._readyTimer&&clearTimeout(e._readyTimer);let n=!1,c="";function a(){n||(n=!0,clearTimeout(e._readyTimer),t.call(this))}function r(){"complete"===this.readyState&&a.call(this)}function s(){e._ready=!1,o&&o(),e._readyTimer&&clearTimeout(e._readyTimer);const t=e.contentDocument||e.contentWindow?.document;t&&(t.removeEventListener("DOMContentLoaded",a),t.removeEventListener("readystatechange",r))}function i(){if(e._ready)return void s();const t=e.contentDocument||e.contentWindow?.document;t&&0!==t.URL.indexOf("about:")?"complete"===t?.readyState?a.call(t):(t.addEventListener("DOMContentLoaded",a),t.addEventListener("readystatechange",r)):e._readyTimer=setTimeout(i,10)}e._observer||(e._observer=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"src"===e.attributeName&&(n=!1,s(),i())})}),e._observer.observe(e,{attributes:!0})),e._locationObserver||(e._locationObserver=setInterval(function(){const t=e.contentDocument||e.contentWindow?.document;t&&t.URL!==c&&(c=t.URL,n=!1,s(),i())},50)),i()}(E,function(){const o=E.contentWindow?.location;if(window.newspackReaderActivation&&o?.href?.includes("order-received")){const e=window.newspackReaderActivation,t=new Proxy(new URLSearchParams(o.search),{get:(e,t)=>e.get(t)});t.email&&(e.setReaderEmail(t.email),e.setAuthenticated(!0))}const n=E?.contentDocument?.querySelector(`#${u}`);if(!n)return;const c=n.querySelector("#modal-checkout-product-details"),a=s(c),r=document.createElement("p");r.classList.add(_);let i=[];const l=()=>{i.forEach(e=>clearTimeout(e)),i=[]},d=()=>{g.style.display="none",l(),g.querySelectorAll(`.${_}`).forEach(e=>e.remove())};!function(e,t){e.checkoutCancel?t():e.addEventListener("checkout-cancel",t)}(n,()=>{C()}),function(e,t){e.checkoutPlaceOrderStart?t():e.addEventListener("checkout-place-order-start",t)}(n,e=>{var t;g.querySelectorAll(`.${_}`).forEach(e=>e.remove()),g.style.display="flex",l(),r.textContent=null!==(t=h[0]?.text)&&void 0!==t?t:"",h.slice(1).forEach(({text:t,delay:o})=>{const n=setTimeout(()=>{e.target.dispatchEvent(new CustomEvent("checkout-place-order-processing")),r.textContent=t},o);i.push(n)}),g.appendChild(r)}),function(e,t){e.checkoutPlaceOrderError?t():e.addEventListener("checkout-place-order-error",t)}(n,d),function(e,t){e.checkoutReady?t():e.addEventListener("checkout-ready",t)}(n,()=>{const e=c?.querySelector("strong");if(e&&(e.textContent=a.price_summary),t.initialErrors){const e=document.createElement("div");e.classList.add("woocommerce-error"),e.textContent=t.initialErrors,n.prepend(e),delete t.initialErrors}P(),O(k),E.contentWindow?.newspackBlocksModalCheckout?.checkout_nonce&&(t.checkout_nonce=E.contentWindow.newspackBlocksModalCheckout.checkout_nonce),A(n)}),function(e,t){e.checkoutComplete?t():e.addEventListener("checkout-complete",t)}(n,()=>{window.newspackRAS.push(["checkout_completed",a]),window?.newspackReaderActivation?.refreshNewslettersSignupModal&&window?.newspackReaderActivation?.getReader()?.email&&window.newspackReaderActivation.refreshNewslettersSignupModal(window.newspackReaderActivation.getReader().email),P("small"),O(newspackBlocksModal.labels.thankyou_modal_title),A(n),e(t.querySelector(`.${p}`)),d()}),function(e,t){e.checkoutPlaceOrderCriticalError?t():e.addEventListener("checkout-place-order-critical-error",t)}(n,()=>{var e;(e=w)&&(C(),g.style.display="none",t.initialErrors=newspackBlocksModal.labels.critical_error,e.requestSubmit(e.querySelector('button[type="submit"]')),d())})},()=>{g.style.display="flex"});const q=e=>new Promise((t,o)=>{const n=new URLSearchParams(e);n.append("action","modal_checkout_request"),fetch(newspackBlocksModal.ajax_url+"?"+n.toString()).then(e=>{e.ok||o(e),e.json().then(e=>{t(e.url)}).catch(o)}).catch(o)}),L=()=>"undefined"!=typeof newspack_ras_config&&!newspack_ras_config?.is_logged_in&&!window?.newspackReaderActivation?.getReader?.()?.authenticated&&newspackBlocksModal?.is_registration_required&&window?.newspackReaderActivation?.openAuthModal,$=t=>{const o=!newspackBlocksModal.has_unsupported_payment_gateway;o||t.preventDefault();const n=t.target;n.classList.add("modal-processing");const u=s(n);if(u.newspack_donate){const e=u.donation_frequency,t=[...n.querySelectorAll(`.donation-tier__${e}, .donation-frequency__${e}`)],o=u.donation_tier_index;let c,a;o?(c=t[o],a=u[`donation_value_${e}`]):(c=t[0],u[`donation_value_${e}_untiered`]?a=u[`donation_value_${e}_untiered`]:(a=u[`donation_value_${e}`],"other"===a&&(a=u[`donation_value_${e}_other`])));const r=s(c);for(const e in r)u[e]=r[e];u.amount=a,u.price_summary=u.summary_template.replace("{{PRICE}}",function(e,t="USD"){return parseFloat(e).toLocaleString(document.documentElement.lang,{style:"currency",currency:t,currencyDisplay:"narrowSymbol"})}(u.amount,u.currency))}u&&Object.keys(u).forEach(e=>{0===n.querySelectorAll('input[name="'+e+'"]').length&&n.prepend(a(e,u[e]))}),u.variation_id||(b=t.submitter);const p=document.querySelectorAll(`.${m}`);if(p.forEach(e=>{(L()||o)&&f(e)}),u.is_grouped||u.is_variable&&!u.variation_id){const o=[...p].find(e=>e.dataset.productId===u.product_id);if(o)return o.querySelectorAll(`form[target="${d}"]`).forEach(e=>{["after_success_behavior","after_success_url","after_success_button_label","gate_post_id","newspack_popup_id","prompt_title"].forEach(t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.prepend(a(t,u[t]))});const t=e.dataset.checkout;if(t){const o=JSON.parse(t);Object.keys(o).forEach(t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.prepend(a(t,o[t]))})}}),t.preventDefault(),n.classList.remove("modal-processing"),B(o),e(o,!1),y||c(u),void document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u))}if(o||L()){if(n.classList.remove("modal-processing"),y||c(u),y=!0,L()){t.preventDefault();const e=u.price_summary,n=e?`<div class="order-details-summary ${l}__box ${l}__box--text-center"><p><strong>${e}</strong></p></div>`:"",c=q(u);c.then(e=>{window.newspackReaderActivation?.setPendingCheckout?.(e)}),window.newspackReaderActivation.openAuthModal({title:newspackBlocksModal.labels.auth_modal_title,onSuccess:(e,t)=>{c.then(e=>{t?.registered&&o&&(e+=`&${newspackBlocksModal.checkout_registration_flag}=1`),o?r(R(e)):q(u).then(window.location.href=e)}).catch(e=>{console.warn("Unable to generate cart:",e),C()})},onError:()=>{C()},onDismiss:()=>{i(u),y=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout")},skipSuccess:!0,skipNewslettersSignup:!0,labels:{signin:{title:newspackBlocksModal.labels.signin_modal_title},register:{title:newspackBlocksModal.labels.register_modal_title}},content:n,trigger:t.submitter,closeOnSuccess:o})}else x(),document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u));w=n}else q(u).then(e=>{window.location.href=e}),(!u.is_variable||u.variation_id)&&n.querySelectorAll("button[type=submit]:focus").forEach(e=>{e.classList.add("non-modal-checkout-loading");const t=e.innerHTML;e.innerHTML="<span>"+t+"</span>"})},R=e=>{const t=document.createElement("form");t.method="POST",t.action=e,t.target=d,t.style.display="none";const o=document.createElement("button");return o.setAttribute("type","submit"),t.appendChild(o),document.body.appendChild(t),t.addEventListener("submit",$),t},M=new ResizeObserver(e=>{if(!e||!e.length)return;if(!E.contentDocument)return;const n=e[0].contentRect;if(n){const e=.01*Math.max(document.documentElement.clientHeight,window.innerHeight||0)*90-(t.querySelector(`.${p}__header`)?.offsetHeight||0),c=n.top+n.bottom,a=Math.min(c,e);if(0===a)return void(E.style.visibility="hidden");o.style.height=a+"px",E.style.height=a+"px"}}),C=()=>{const e=E?.contentDocument?.querySelector(`#${u}`),n=e?.querySelector('input[name="after_success_url"]'),c=e?.querySelector('input[name="after_success_behavior"]'),a=document?.querySelector(".newspack-newsletters-signup-modal"),r=s(e?.querySelector("#modal-checkout-product-details"));e?.checkoutComplete||(async()=>{const e=new FormData;newspackBlocksModal.has_unsupported_payment_gateway||e.append("modal_checkout","1"),e.append("action","abandon_modal_checkout"),e.append("_wpnonce",t.checkout_nonce),t.checkout_nonce=null;try{await fetch(newspackBlocksModal.ajax_url,{method:"POST",body:e})}catch(e){console.warn("Unable to empty cart:",e)}})();const l=!(E.contentDocument&&n&&c&&e?.checkoutComplete);if((l||a)&&(g.style.display="flex",E&&o.contains(E)&&(E._ready=!1,E.src="about:blank",E.style.height=S,E.style.visibility="hidden",o.style.height=S,o.removeChild(E)),M&&M.disconnect(),document.querySelectorAll(`.${p}-container`).forEach(e=>f(e)),b&&b.focus(),document.dispatchEvent(v)),e?.checkoutComplete){const e=()=>{if(n&&c){const e=n.getAttribute("value"),t=c.getAttribute("value");"custom"===t?window.location.href=e:"referrer"===t&&window.history.back()}window?.newspackReaderActivation?.setPendingCheckout?.(),y=!1};"subscription_switch"!==r.action_type&&window?.newspackReaderActivation?.openNewslettersSignupModal?window.newspackReaderActivation.openNewslettersSignupModal({onSuccess:e,onError:e,closeOnSuccess:l}):e(),l&&(k=newspackBlocksModal.labels.checkout_modal_title,P(),O(k))}else window?.newspackReaderActivation?.setPendingCheckout?.(),i(),y=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout");document.removeEventListener("keydown",D)},x=n=>{n&&(E.src=n),g.style.display="flex",B(t),o.appendChild(E),t.addEventListener("click",e=>{e.target===t&&C()}),e(t,E),document.addEventListener("keydown",D)},B=e=>{window.newspackReaderActivation?.overlays&&(e.overlayId=window.newspackReaderActivation?.overlays.add()),e.setAttribute("data-state","open"),document.body.style.overflow="hidden"},O=e=>{const o=t.querySelector(`.${p}__header h2`);o&&(o.innerText=e)},P=(e="default")=>{const o=t.querySelector(`.${p}`);o&&("small"===e?o.classList.add(`${p}--small`):o.classList.remove(`${p}--small`))};t.querySelectorAll(`.${p}__close`).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),C()})}),document.querySelectorAll(".newspack-blocks__modal-variation").forEach(e=>{e.addEventListener("click",t=>{t.target===e&&C()}),e.querySelectorAll(`.${p}__close`).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),C()})})});const D=e=>{"Escape"===e.key&&C()};document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc, .wp-block-newspack-blocks-checkout-button, .newspack-blocks__modal-variation").forEach(e=>{e.querySelectorAll("form").forEach(e=>{newspackBlocksModal.has_unsupported_payment_gateway||e.prepend(n.cloneNode()),e.target=d,e.addEventListener("submit",$)})}),(()=>{const e=new URLSearchParams(window.location.search);if(!e.has("checkout"))return;const t=e.get("type");if("donate"===t){const t=e.get("layout"),o=e.get("frequency"),n=e.get("amount"),c=e.get("other");t&&o&&n&&((e,t,o,n=null)=>{let c;document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc form").forEach(a=>{const r=a.querySelector(`input[name="donation_frequency"][value="${t}"]`);if(r)if("tiered"===e){const e=document.querySelector(`button[data-frequency-slug="${t}"]`);if(!e)return;e.click();const n=a.querySelector(`button[type="submit"][name="donation_value_${t}"][value="${o}"]`);if(!n)return;n.click()}else{const s="untiered"===e?a.querySelector(`input[name="donation_value_${t}_untiered"]`):a.querySelector(`input[name="donation_value_${t}"][value="${o}"]`);if(r&&s){if(r.checked=!0,"untiered"===e)s.value=o;else if("other"===o){s.click();const e=a.querySelector(`input[name="donation_value_${t}_other"]`);e&&n&&(e.value=n)}else s.checked=!0;c=a}}}),c&&r(c)})(t,o,n,c)}else if("checkout_button"===t){const t=e.get("product_id"),o=e.get("variation_id");t&&((e,t=null)=>{let o;if(t&&t!==e){const n=[...document.querySelectorAll(`.${m}`)].find(t=>t.dataset.productId===e);n&&n.querySelectorAll(`form[target="${d}"]`).forEach(e=>{const n=JSON.parse(e.dataset.checkout);n?.variation_id===Number(t)&&(o=e)})}else document.querySelectorAll(".wp-block-newspack-blocks-checkout-button").forEach(t=>{const n=t.querySelector("form");if(!n)return;const c=JSON.parse(n.dataset.checkout);c?.product_id===e&&(o=n)});o&&r(o)})(t,o)}else{const e=window.newspackReaderActivation?.getPendingCheckout?.();e&&r(R(e))}window.history.replaceState(null,null,window.location.pathname)})(),window.newspackOpenModalCheckout=({url:e=null,title:t=null,actionType:o=null,afterSuccess:n={},onCheckoutComplete:c=null,onClose:a=null})=>{if(k=t||newspackBlocksModal.labels.checkout_modal_title,O(k),(e=new URL(e||newspackBlocksModal.checkout_url)).searchParams.has("my_account_checkout")&&e.searchParams.delete("my_account_checkout"),e.searchParams.has("modal_checkout")||e.searchParams.set("modal_checkout","1"),o&&e.searchParams.set("action_type",o),n?.url&&e.searchParams.set("after_success_url",n.url),(n?.behavior||n?.url)&&e.searchParams.set("after_success_behavior",n.behavior||"custom"),n?.buttonLabel&&e.searchParams.set("after_success_button_label",n.buttonLabel),c){const e=({detail:{action:e,data:t}})=>{"checkout_completed"===e&&c(t)};window.newspackRAS.push(t=>{t.on("activity",e);const o=()=>{t.off("activity",e),document.removeEventListener("checkout-closed",o)};document.addEventListener("checkout-closed",o)})}if(a){const e=()=>{a(),document.removeEventListener("checkout-closed",e)};document.addEventListener("checkout-closed",e)}x(e.toString())},window.newspackCloseModalCheckout=C},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",g):g())})();
|
|
1
|
+
(()=>{"use strict";function e(e,t=!1){const o=e.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===o.length)return!1;const n=o?.[0];let c;n.focus(),t?(document.addEventListener("keydown",function(e){if(("Tab"===e.key||9===e.keyCode)&&e.shiftKey&&document.activeElement===n){const o=t.contentWindow.document,n=o.getElementById("checkout-after-success");c=null!==n?n:o.getElementById("checkout_cancel"),c.focus(),e.preventDefault()}}),document.getElementById("newspack-a11y-last-element").addEventListener("focus",()=>{n.focus()})):(c=o[o.length-1],document.addEventListener("keydown",function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(c.focus(),e.preventDefault()):document.activeElement===c&&(n.focus(),e.preventDefault()))}))}const t=(e,t={})=>({...t,action:e}),o=["action","action_type","amount","currency","product_id","product_type","variation_id","variation_ids","is_variable","is_grouped","child_ids","price_summary","newspack_popup_id","prompt_title","gate_post_id","recurrence","referrer"],n=(e,t="np_modal_checkout_interaction")=>{if("function"==typeof window.gtag&&e){const n={};for(const t of o)e[t]&&("boolean"==typeof e[t]?e[t]=e[t]?"yes":"no":"true"===e[t]?e[t]="yes":"false"===e[t]&&(e[t]="no"),n[t]=e[t].toString());window.gtag("event",t,n)}},c=e=>{if("function"!=typeof window.gtag)return;let o="opened";const{amount:c="",is_variable:a="",is_grouped:r="",price:s="",variation_id:i=""}=e,l={...e};(c||s)&&(l.amount=c||s),a&&!i&&(o="opened_variations"),r&&(o="opened_grouped");const d=t(o,l);n(d)};function a(e,t=null){const o=document.createElement("input");return o.type="hidden",o.name=e,t&&(o.value=t),o}function r(e){e.requestSubmit(e.querySelector('button[type="submit"]'))}function s(e){const t="string"==typeof e?document.getElementById(e):e;if(!t)return console.warn("No container found for checkout data"),{};let o={};if("FORM"===t.tagName){const e=new FormData(t);o=Object.fromEntries(e)}const n=t.dataset.checkout;if(!n)return console.warn("No checkout data found"),o;try{o={...o,...JSON.parse(n)}}catch(e){console.warn("Error parsing checkout data")}const c=new URL(t.ownerDocument.defaultView.location.href);return c.searchParams.get("action_type")&&(o.action_type=c.searchParams.get("action_type")),o}const i=e=>{if("function"!=typeof window.gtag)return;e=e||s("newspack_modal_checkout");const o=t("dismissed",e);n(o)},l=newspackBlocksModal.newspack_class_prefix,d="newspack_modal_checkout_iframe",u="newspack_modal_checkout_container",p=`${l}__modal`,m="newspack-blocks__modal-variation",_=`${l}__processing-payment-text`,h=newspackBlocksModal.processing_payment_messages;let y=!1,k=newspackBlocksModal.labels.checkout_modal_title,w=null;const f=e=>{e.overlayId&&window.newspackReaderActivation?.overlays&&window.newspackReaderActivation?.overlays.remove(e.overlayId),e.setAttribute("data-state","closed"),document.body.style.overflow="auto"};window.onpageshow=e=>{e.persisted&&(document.querySelectorAll(".modal-processing").forEach(e=>e.classList.remove("modal-processing")),document.querySelectorAll(".non-modal-checkout-loading").forEach(e=>e.classList.remove("non-modal-checkout-loading")),document.querySelectorAll(`.${p}-container`).forEach(e=>f(e)))};const v=new CustomEvent("checkout-closed");var g;window.newspackRAS=window.newspackRAS||[],g=()=>{const t=document.querySelector("#newspack_modal_checkout");if(!t)return;const o=t.querySelector(`.${p}__content`),n=a("modal_checkout","1"),g=o.querySelector(`.${l}__spinner`);let b=document.querySelector(".newspack-reader__account-link")?.[0];const S="600px",E=document.createElement("iframe");E.name=d,E.style.height=S,E.style.visibility="hidden";const A=e=>{M.observe(e),"none"!==g.style.display&&(g.style.display="none"),"visible"!==E.style.visibility&&(E.style.visibility="visible"),E._ready=!0};!function(e,t,o){e._ready=!1,e._readyTimer&&clearTimeout(e._readyTimer);let n=!1,c="";function a(){n||(n=!0,clearTimeout(e._readyTimer),t.call(this))}function r(){"complete"===this.readyState&&a.call(this)}function s(){e._ready=!1,o&&o(),e._readyTimer&&clearTimeout(e._readyTimer);const t=e.contentDocument||e.contentWindow?.document;t&&(t.removeEventListener("DOMContentLoaded",a),t.removeEventListener("readystatechange",r))}function i(){if(e._ready)return void s();const t=e.contentDocument||e.contentWindow?.document;t&&0!==t.URL.indexOf("about:")?"complete"===t?.readyState?a.call(t):(t.addEventListener("DOMContentLoaded",a),t.addEventListener("readystatechange",r)):e._readyTimer=setTimeout(i,10)}e._observer||(e._observer=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"src"===e.attributeName&&(n=!1,s(),i())})}),e._observer.observe(e,{attributes:!0})),e._locationObserver||(e._locationObserver=setInterval(function(){const t=e.contentDocument||e.contentWindow?.document;t&&t.URL!==c&&(c=t.URL,n=!1,s(),i())},50)),i()}(E,function(){const o=E.contentWindow?.location;if(window.newspackReaderActivation&&o?.href?.includes("order-received")){const e=window.newspackReaderActivation,t=new Proxy(new URLSearchParams(o.search),{get:(e,t)=>e.get(t)});t.email&&(e.setReaderEmail(t.email),e.setAuthenticated(!0))}const n=E?.contentDocument?.querySelector(`#${u}`);if(!n)return;const c=n.querySelector("#modal-checkout-product-details"),a=s(c),r=document.createElement("p");r.classList.add(_);let i=[];const l=()=>{i.forEach(e=>clearTimeout(e)),i=[]},d=()=>{g.style.display="none",l(),g.querySelectorAll(`.${_}`).forEach(e=>e.remove())};!function(e,t){e.checkoutCancel?t():e.addEventListener("checkout-cancel",t)}(n,()=>{C()}),function(e,t){e.checkoutPlaceOrderStart?t():e.addEventListener("checkout-place-order-start",t)}(n,e=>{g.querySelectorAll(`.${_}`).forEach(e=>e.remove()),g.style.display="flex",l(),r.textContent=h[0]?.text??"",h.slice(1).forEach(({text:t,delay:o})=>{const n=setTimeout(()=>{e.target.dispatchEvent(new CustomEvent("checkout-place-order-processing")),r.textContent=t},o);i.push(n)}),g.appendChild(r)}),function(e,t){e.checkoutPlaceOrderError?t():e.addEventListener("checkout-place-order-error",t)}(n,d),function(e,t){e.checkoutReady?t():e.addEventListener("checkout-ready",t)}(n,()=>{const e=c?.querySelector("strong");if(e&&(e.textContent=a.price_summary),t.initialErrors){const e=document.createElement("div");e.classList.add("woocommerce-error"),e.textContent=t.initialErrors,n.prepend(e),delete t.initialErrors}P(),O(k),E.contentWindow?.newspackBlocksModalCheckout?.checkout_nonce&&(t.checkout_nonce=E.contentWindow.newspackBlocksModalCheckout.checkout_nonce),A(n)}),function(e,t){e.checkoutComplete?t():e.addEventListener("checkout-complete",t)}(n,()=>{window.newspackRAS.push(["checkout_completed",a]),window?.newspackReaderActivation?.refreshNewslettersSignupModal&&window?.newspackReaderActivation?.getReader()?.email&&window.newspackReaderActivation.refreshNewslettersSignupModal(window.newspackReaderActivation.getReader().email),P("small"),O(newspackBlocksModal.labels.thankyou_modal_title),A(n),e(t.querySelector(`.${p}`)),d()}),function(e,t){e.checkoutPlaceOrderCriticalError?t():e.addEventListener("checkout-place-order-critical-error",t)}(n,()=>{var e;(e=w)&&(C(),g.style.display="none",t.initialErrors=newspackBlocksModal.labels.critical_error,e.requestSubmit(e.querySelector('button[type="submit"]')),d())})},()=>{g.style.display="flex"});const q=e=>new Promise((t,o)=>{const n=new URLSearchParams(e);n.append("action","modal_checkout_request"),fetch(newspackBlocksModal.ajax_url+"?"+n.toString()).then(e=>{e.ok||o(e),e.json().then(e=>{t(e.url)}).catch(o)}).catch(o)}),L=()=>"undefined"!=typeof newspack_ras_config&&!newspack_ras_config?.is_logged_in&&!window?.newspackReaderActivation?.getReader?.()?.authenticated&&newspackBlocksModal?.is_registration_required&&window?.newspackReaderActivation?.openAuthModal,$=t=>{const o=!newspackBlocksModal.has_unsupported_payment_gateway;o||t.preventDefault();const n=t.target;n.classList.add("modal-processing");const u=s(n);if(u.newspack_donate){const e=u.donation_frequency,t=[...n.querySelectorAll(`.donation-tier__${e}, .donation-frequency__${e}`)],o=u.donation_tier_index;let c,a;o?(c=t[o],a=u[`donation_value_${e}`]):(c=t[0],u[`donation_value_${e}_untiered`]?a=u[`donation_value_${e}_untiered`]:(a=u[`donation_value_${e}`],"other"===a&&(a=u[`donation_value_${e}_other`])));const r=s(c);for(const e in r)u[e]=r[e];u.amount=a,u.price_summary=u.summary_template.replace("{{PRICE}}",function(e,t="USD"){return parseFloat(e).toLocaleString(document.documentElement.lang,{style:"currency",currency:t,currencyDisplay:"narrowSymbol"})}(u.amount,u.currency))}u&&Object.keys(u).forEach(e=>{0===n.querySelectorAll('input[name="'+e+'"]').length&&n.prepend(a(e,u[e]))}),u.variation_id||(b=t.submitter);const p=document.querySelectorAll(`.${m}`);if(p.forEach(e=>{(L()||o)&&f(e)}),u.is_grouped||u.is_variable&&!u.variation_id){const o=[...p].find(e=>e.dataset.productId===u.product_id);if(o)return o.querySelectorAll(`form[target="${d}"]`).forEach(e=>{["after_success_behavior","after_success_url","after_success_button_label","gate_post_id","newspack_popup_id","prompt_title"].forEach(t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.prepend(a(t,u[t]))});const t=e.dataset.checkout;if(t){const o=JSON.parse(t);Object.keys(o).forEach(t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.prepend(a(t,o[t]))})}}),t.preventDefault(),n.classList.remove("modal-processing"),B(o),e(o,!1),y||c(u),void document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u))}if(o||L()){if(n.classList.remove("modal-processing"),y||c(u),y=!0,L()){t.preventDefault();const e=u.price_summary,n=e?`<div class="order-details-summary ${l}__box ${l}__box--text-center"><p><strong>${e}</strong></p></div>`:"",c=q(u);c.then(e=>{window.newspackReaderActivation?.setPendingCheckout?.(e)}),window.newspackReaderActivation.openAuthModal({title:newspackBlocksModal.labels.auth_modal_title,onSuccess:(e,t)=>{c.then(e=>{t?.registered&&o&&(e+=`&${newspackBlocksModal.checkout_registration_flag}=1`),o?r(R(e)):q(u).then(window.location.href=e)}).catch(e=>{console.warn("Unable to generate cart:",e),C()})},onError:()=>{C()},onDismiss:()=>{i(u),y=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout")},skipSuccess:!0,skipNewslettersSignup:!0,labels:{signin:{title:newspackBlocksModal.labels.signin_modal_title},register:{title:newspackBlocksModal.labels.register_modal_title}},content:n,trigger:t.submitter,closeOnSuccess:o})}else x(),document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u));w=n}else q(u).then(e=>{window.location.href=e}),(!u.is_variable||u.variation_id)&&n.querySelectorAll("button[type=submit]:focus").forEach(e=>{e.classList.add("non-modal-checkout-loading");const t=e.innerHTML;e.innerHTML="<span>"+t+"</span>"})},R=e=>{const t=document.createElement("form");t.method="POST",t.action=e,t.target=d,t.style.display="none";const o=document.createElement("button");return o.setAttribute("type","submit"),t.appendChild(o),document.body.appendChild(t),t.addEventListener("submit",$),t},M=new ResizeObserver(e=>{if(!e||!e.length)return;if(!E.contentDocument)return;const n=e[0].contentRect;if(n){const e=.01*Math.max(document.documentElement.clientHeight,window.innerHeight||0)*90-(t.querySelector(`.${p}__header`)?.offsetHeight||0),c=n.top+n.bottom,a=Math.min(c,e);if(0===a)return void(E.style.visibility="hidden");o.style.height=a+"px",E.style.height=a+"px"}}),C=()=>{const e=E?.contentDocument?.querySelector(`#${u}`),n=e?.querySelector('input[name="after_success_url"]'),c=e?.querySelector('input[name="after_success_behavior"]'),a=document?.querySelector(".newspack-newsletters-signup-modal"),r=s(e?.querySelector("#modal-checkout-product-details"));e?.checkoutComplete||(async()=>{const e=new FormData;newspackBlocksModal.has_unsupported_payment_gateway||e.append("modal_checkout","1"),e.append("action","abandon_modal_checkout"),e.append("_wpnonce",t.checkout_nonce),t.checkout_nonce=null;try{await fetch(newspackBlocksModal.ajax_url,{method:"POST",body:e})}catch(e){console.warn("Unable to empty cart:",e)}})();const l=!(E.contentDocument&&n&&c&&e?.checkoutComplete);if((l||a)&&(g.style.display="flex",E&&o.contains(E)&&(E._ready=!1,E.src="about:blank",E.style.height=S,E.style.visibility="hidden",o.style.height=S,o.removeChild(E)),M&&M.disconnect(),document.querySelectorAll(`.${p}-container`).forEach(e=>f(e)),b&&b.focus(),document.dispatchEvent(v)),e?.checkoutComplete){const e=()=>{if(n&&c){const e=n.getAttribute("value"),t=c.getAttribute("value");"custom"===t?window.location.href=e:"referrer"===t&&window.history.back()}window?.newspackReaderActivation?.setPendingCheckout?.(),y=!1};"subscription_switch"!==r.action_type&&window?.newspackReaderActivation?.openNewslettersSignupModal?window.newspackReaderActivation.openNewslettersSignupModal({onSuccess:e,onError:e,closeOnSuccess:l}):e(),l&&(k=newspackBlocksModal.labels.checkout_modal_title,P(),O(k))}else window?.newspackReaderActivation?.setPendingCheckout?.(),i(),y=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout");document.removeEventListener("keydown",D)},x=n=>{n&&(E.src=n),g.style.display="flex",B(t),o.appendChild(E),t.addEventListener("click",e=>{e.target===t&&C()}),e(t,E),document.addEventListener("keydown",D)},B=e=>{window.newspackReaderActivation?.overlays&&(e.overlayId=window.newspackReaderActivation?.overlays.add()),e.setAttribute("data-state","open"),document.body.style.overflow="hidden"},O=e=>{const o=t.querySelector(`.${p}__header h2`);o&&(o.innerText=e)},P=(e="default")=>{const o=t.querySelector(`.${p}`);o&&("small"===e?o.classList.add(`${p}--small`):o.classList.remove(`${p}--small`))};t.querySelectorAll(`.${p}__close`).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),C()})}),document.querySelectorAll(".newspack-blocks__modal-variation").forEach(e=>{e.addEventListener("click",t=>{t.target===e&&C()}),e.querySelectorAll(`.${p}__close`).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),C()})})});const D=e=>{"Escape"===e.key&&C()};document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc, .wp-block-newspack-blocks-checkout-button, .newspack-blocks__modal-variation").forEach(e=>{e.querySelectorAll("form").forEach(e=>{newspackBlocksModal.has_unsupported_payment_gateway||e.prepend(n.cloneNode()),e.target=d,e.addEventListener("submit",$)})}),(()=>{const e=new URLSearchParams(window.location.search);if(!e.has("checkout"))return;const t=e.get("type");if("donate"===t){const t=e.get("layout"),o=e.get("frequency"),n=e.get("amount"),c=e.get("other");t&&o&&n&&((e,t,o,n=null)=>{let c;document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc form").forEach(a=>{const r=a.querySelector(`input[name="donation_frequency"][value="${t}"]`);if(r)if("tiered"===e){const e=document.querySelector(`button[data-frequency-slug="${t}"]`);if(!e)return;e.click();const n=a.querySelector(`button[type="submit"][name="donation_value_${t}"][value="${o}"]`);if(!n)return;n.click()}else{const s="untiered"===e?a.querySelector(`input[name="donation_value_${t}_untiered"]`):a.querySelector(`input[name="donation_value_${t}"][value="${o}"]`);if(r&&s){if(r.checked=!0,"untiered"===e)s.value=o;else if("other"===o){s.click();const e=a.querySelector(`input[name="donation_value_${t}_other"]`);e&&n&&(e.value=n)}else s.checked=!0;c=a}}}),c&&r(c)})(t,o,n,c)}else if("checkout_button"===t){const t=e.get("product_id"),o=e.get("variation_id");t&&((e,t=null)=>{let o;if(t&&t!==e){const n=[...document.querySelectorAll(`.${m}`)].find(t=>t.dataset.productId===e);n&&n.querySelectorAll(`form[target="${d}"]`).forEach(e=>{const n=JSON.parse(e.dataset.checkout);n?.variation_id===Number(t)&&(o=e)})}else document.querySelectorAll(".wp-block-newspack-blocks-checkout-button").forEach(t=>{const n=t.querySelector("form");if(!n)return;const c=JSON.parse(n.dataset.checkout);c?.product_id===e&&(o=n)});o&&r(o)})(t,o)}else{const e=window.newspackReaderActivation?.getPendingCheckout?.();e&&r(R(e))}window.history.replaceState(null,null,window.location.pathname)})(),window.newspackOpenModalCheckout=({url:e=null,title:t=null,actionType:o=null,afterSuccess:n={},onCheckoutComplete:c=null,onClose:a=null})=>{if(k=t||newspackBlocksModal.labels.checkout_modal_title,O(k),(e=new URL(e||newspackBlocksModal.checkout_url)).searchParams.has("my_account_checkout")&&e.searchParams.delete("my_account_checkout"),e.searchParams.has("modal_checkout")||e.searchParams.set("modal_checkout","1"),o&&e.searchParams.set("action_type",o),n?.url&&e.searchParams.set("after_success_url",n.url),(n?.behavior||n?.url)&&e.searchParams.set("after_success_behavior",n.behavior||"custom"),n?.buttonLabel&&e.searchParams.set("after_success_button_label",n.buttonLabel),c){const e=({detail:{action:e,data:t}})=>{"checkout_completed"===e&&c(t)};window.newspackRAS.push(t=>{t.on("activity",e);const o=()=>{t.off("activity",e),document.removeEventListener("checkout-closed",o)};document.addEventListener("checkout-closed",o)})}if(a){const e=()=>{a(),document.removeEventListener("checkout-closed",e)};document.addEventListener("checkout-closed",e)}x(e.toString())},window.newspackCloseModalCheckout=C},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",g):g())})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '49405475c7b9d21219c7');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";const e=window.wp.i18n,s=window.wp.blockEditor,c=window.wp.blocks,n=window.wp.components,i=window.wp.data,o=window.
|
|
1
|
+
(()=>{"use strict";const e=window.wp.i18n,s=window.wp.blockEditor,c=window.wp.blocks,n=window.wp.components,i=window.wp.data,o=window.wp.primitives,l=window.ReactJSXRuntime;var t=(0,l.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(o.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});const r=window.wp.element;var a=(0,r.forwardRef)(({icon:e,size:s=24,...c},n)=>(0,r.cloneElement)(e,{width:s,height:s,...c,ref:n}));const d={"newspack-ads/ad-unit":{title:(0,e.__)("Ad Unit","newspack-blocks"),description:(0,e.__)("Render an ad unit from your inventory.","newspack-blocks"),icon:t,message:(0,e.__)("Place ad units inside your page by installing Newspack Ads.","newspack-blocks"),url:"https://help.newspack.com/revenue/advertising/"}};function p(o,{title:t,description:r,icon:d,message:p,url:w}){(0,c.getBlockType)(o)||(t=t||o.split("/").pop(),(0,c.registerBlockType)(o,{apiVersion:3,title:t,description:r,icon:d,edit:(0,i.withDispatch)(e=>({removeBlocks:e("core/block-editor").removeBlocks}))(({clientId:c,removeBlocks:i})=>{const o=(0,s.useBlockProps)();return(0,l.jsx)("div",{...o,children:(0,l.jsxs)("div",{className:"newspack-blocks-placeholder-block",children:[(0,l.jsxs)("div",{className:"newspack-blocks-placeholder-block__label",children:[d&&(0,l.jsx)(a,{icon:d}),t]}),(0,l.jsx)("p",{children:(0,l.jsx)("strong",{children:(0,e.sprintf)(
|
|
2
2
|
// translators: %s is the block name.
|
|
3
3
|
// translators: %s is the block name.
|
|
4
|
-
(0,e.__)('The "%s" block is currently not available.',"newspack-blocks"),t)})}),p&&(0,
|
|
4
|
+
(0,e.__)('The "%s" block is currently not available.',"newspack-blocks"),t)})}),p&&(0,l.jsx)("p",{children:p}),(0,l.jsxs)("div",{className:"newspack-blocks-placeholder-block__buttons",children:[w&&(0,l.jsx)(n.Button,{variant:"primary",target:"_blank",rel:"external",href:w,children:(0,e.__)("Visit Plugin Page","newspack-blocks")}),(0,l.jsx)(n.Button,{variant:"secondary",isDestructive:!0,onClick:()=>i(c),children:(0,e.__)("Remove Block","newspack-blocks")})]})]})})}),supports:{html:!1,lock:!1,reusable:!1,inserter:!1,defaultStylePicker:!1,customClassName:!1,className:!1,alignWide:!1,align:!1,anchor:!1}}))}for(const e in d)p(e,d[e])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '3b868383477d32961de1');
|
package/dist/tiersBased.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var t={
|
|
1
|
+
(()=>{var t={7759(t,e,r){var n=r(907).Symbol;t.exports=n},1490(t,e,r){var n=r(7759),o=r(4817),i=r(7748),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},6(t,e,r){var n=r(5082),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},6710(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},4817(t,e,r){var n=r(7759),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},7748(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},907(t,e,r){var n=r(6710),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},5082(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},671(t,e,r){var n=r(9323),o=r(5062),i=r(9480),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,s,l,d,f,p,b=0,y=!1,v=!1,_=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=s;return c=s=void 0,b=e,d=t.apply(n,r)}function h(t){var r=t-p;return void 0===p||r>=e||r<0||v&&t-b>=l}function g(){var t=o();if(h(t))return w(t);f=setTimeout(g,function(t){var r=e-(t-p);return v?u(r,l-(t-b)):r}(t))}function w(t){return f=void 0,_&&c?m(t):(c=s=void 0,d)}function x(){var t=o(),r=h(t);if(c=arguments,s=this,p=t,r){if(void 0===f)return function(t){return b=t,f=setTimeout(g,e),y?m(t):d}(p);if(v)return clearTimeout(f),f=setTimeout(g,e),m(p)}return void 0===f&&(f=setTimeout(g,e)),d}return e=i(e)||0,n(r)&&(y=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,e):l,_="trailing"in r?!!r.trailing:_),x.cancel=function(){void 0!==f&&clearTimeout(f),b=0,c=p=s=f=void 0},x.flush=function(){return void 0===f?d:w(o())},x}},9323(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},2292(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7964(t,e,r){var n=r(1490),o=r(2292);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},5062(t,e,r){var n=r(907);t.exports=function(){return n.Date.now()}},9480(t,e,r){var n=r(6),o=r(9323),i=r(7964),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||c.test(t)?s(t.slice(2),r?2:8):a.test(t)?NaN:+t}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=r(671),e=r.n(t);const n="wpbnbd__button--active",o=t=>`.wpbnbd__tiers__amount [data-frequency-slug="${t}"]`,i=t=>{const r=((t="")=>{try{const e=JSON.parse(t);return{params:{frequency:e[0],tierPrefix:e[1]},initialFrequency:e[2],tiersBasedOptions:e[3],amounts:e[4],renewsAt:{month:e[5],year:e[6]},buttonColor:e[7]}}catch(t){return!1}})(t.getAttribute("data-tiers-based-config")||"");if(!r)return;const i=t.querySelectorAll(".wpbnbd__tiers__selection button"),a=t.querySelectorAll(".wpbnbd__tiers__amount [data-frequency-slug]"),u=t.querySelector(`input[name="${r.params.frequency}"]`),c=t.querySelector("form[data-is-init-form]");if(!(i&&a&&u&&c))return;((t,r)=>{const n=t.querySelector(".wpbnbd__tiers__options"),o=t.querySelector(".wpbnbd__tiers__options__dots");if(!n||!o||!r)return;const i=()=>Array.from(n.children).map(t=>({el:t,width:t.clientWidth}));let a=i();const u=Math.round(a.length/2)-1,c=()=>a[u].width,s=()=>a.map((t,e)=>l*e);let l=c(),d=s();const f=u*l;window.addEventListener("resize",()=>{a=i(),l=c(),d=s(),n.scrollTo(f,0)});const p=Array.from(o.children),b=e()(()=>{const t=((t,e)=>{const r=t.reduce((t,r)=>Math.abs(r-e)<Math.abs(t)?r-e:t,1/0)+e;return t.indexOf(r)})(d,n.scrollLeft);p.forEach((e,n)=>{e.style.backgroundColor=n===t?r.buttonColor:""})},100);n.addEventListener("scroll",b),p.forEach((t,e)=>{t.addEventListener("click",()=>{n.scrollTo({left:e*l,behavior:"smooth"})})}),n.scrollTo(f,0)})(t,r);let s=r.initialFrequency;i.forEach(e=>{e.addEventListener("click",()=>{const c=e.getAttribute("data-frequency-slug");c&&(s=c,u.setAttribute("value",s),a.forEach(t=>t.style.display="none"),t.querySelectorAll(o(s)).forEach(t=>t.style.display="inline"),i.forEach(t=>{s===t.getAttribute("data-frequency-slug")?t.classList.add(n):t.classList.remove(n)}),t.querySelectorAll('button[type="submit"]').forEach(t=>{if(!s)return;t.setAttribute("name",`${r.params.tierPrefix}${s}`);const e=t.getAttribute("data-tier-index"),n=document.querySelector(`${o(s)}[data-tier-index="${e}"]`);if(!n)return;const i=n.getAttribute("data-amount");i&&t.setAttribute("value",i)}))})});const l=t.querySelector("button.wpbnbd__tiers__back-button"),d=t.querySelectorAll(".wpbnbd__tiers__tier button"),f=t.querySelectorAll(".wpbnbd__tiers__view");d.forEach(e=>{e.addEventListener("click",()=>{const n=parseInt(e.getAttribute("data-tier-index")||""),o=c.querySelector('input[name="donation_tier_index"]'),i=c.querySelector(`input[name="donation_value_${s}"]`);o&&o.remove(),i&&i.remove();const a=document.createElement("input"),u=document.createElement("input");a.setAttribute("type","hidden"),u.setAttribute("type","hidden"),a.setAttribute("name","donation_tier_index"),u.setAttribute("name",`donation_value_${s}`),a.setAttribute("value",n.toString()),u.setAttribute("value",r.amounts[s][n]),c.appendChild(a),c.appendChild(u);const l=t.querySelector(".wpbnbd__tiers__tier-tile h2"),d=t.querySelector(".wpbnbd__tiers__tier-tile span[data-amount]"),p=t.querySelector(".wpbnbd__tiers__tier-tile span[data-frequency]"),b=t.querySelector(".wpbnbd__tiers__tier-tile span[data-renews-date]");if(isNaN(n)||!l||!d||!p||!b)return;const y=r.tiersBasedOptions[n],v=t.querySelector(`[data-frequency-slug="${s}"]`)?.getAttribute("data-frequency-label");l.textContent=y.heading,p.textContent=v||"",d.textContent=r.amounts[s][n],b.textContent=r.renewsAt[s],f.forEach(t=>t.classList.toggle("wpbnbd__tiers__view--hidden"))})}),window.addEventListener(`newspackPaymentFlowComplete-${t.id}`,()=>{l&&(l.style.display="none")})};var a;(Object.getOwnPropertyDescriptor(i,"name")||{}).writable||Object.defineProperty(i,"name",{value:"default",configurable:!0}),"undefined"!=typeof window&&(a=()=>((t=document)=>{t.querySelectorAll(".wpbnbd--tiers-based").forEach(i)})(),"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",a):a()))})()})();
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-05-
|
|
5
|
+
"POT-Creation-Date: 2026-05-15T23:56:57+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:45-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -496,10 +496,8 @@ msgstr ""
|
|
|
496
496
|
msgid "Subscribe Pattern 7"
|
|
497
497
|
msgstr ""
|
|
498
498
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
#: src/blocks/author-profile/view.php:25 dist/editor.js:16 dist/editor.js:19
|
|
502
|
-
#: dist/editor.js:20 dist/editor.js:30 src/blocks/author-profile/edit.js:59
|
|
499
|
+
#: src/blocks/author-profile/view.php:25 dist/editor.js:7 dist/editor.js:10
|
|
500
|
+
#: dist/editor.js:11 dist/editor.js:30 src/blocks/author-profile/edit.js:59
|
|
503
501
|
#: src/blocks/author-profile/edit.js:635 src/blocks/author-profile/edit.js:689
|
|
504
502
|
#: src/blocks/author-profile/edit.js:710 src/blocks/author-profile/edit.js:756
|
|
505
503
|
#: src/blocks/author-profile/edit.js:821 src/blocks/author-profile/edit.js:912
|
|
@@ -509,7 +507,7 @@ msgstr ""
|
|
|
509
507
|
|
|
510
508
|
#. translators: %s: author name
|
|
511
509
|
#. translators: %s: author name.
|
|
512
|
-
#: src/blocks/author-profile/view.php:62 dist/editor.js:5 dist/editor.js:
|
|
510
|
+
#: src/blocks/author-profile/view.php:62 dist/editor.js:5 dist/editor.js:8
|
|
513
511
|
#: dist/editor.js:30 src/blocks/author-profile/edit.js:85
|
|
514
512
|
#: src/blocks/author-profile/single-author.js:84
|
|
515
513
|
#: src/blocks/author-profile/templates.js:126
|
|
@@ -766,7 +764,7 @@ msgstr ""
|
|
|
766
764
|
msgid "(no title)"
|
|
767
765
|
msgstr "(kein Titel)"
|
|
768
766
|
|
|
769
|
-
#: dist/editor.js:1 dist/editor.js:
|
|
767
|
+
#: dist/editor.js:1 dist/editor.js:10 dist/editor.js:11 dist/editor.js:29
|
|
770
768
|
#: src/blocks/author-list/edit.js:249 src/blocks/author-profile/edit.js:785
|
|
771
769
|
#: src/blocks/author-profile/edit.js:994 src/components/query-controls.js:80
|
|
772
770
|
#: src/components/query-controls.js:95
|
|
@@ -947,14 +945,14 @@ msgstr ""
|
|
|
947
945
|
msgid "9:16"
|
|
948
946
|
msgstr ""
|
|
949
947
|
|
|
950
|
-
#: dist/editor.js:7 dist/editor.js:
|
|
948
|
+
#: dist/editor.js:7 dist/editor.js:10 dist/editor.js:33 dist/editor.js:45
|
|
951
949
|
#: dist/editor.js:57 src/blocks/author-profile/edit.js:568
|
|
952
950
|
#: src/blocks/carousel/edit.js:208 src/blocks/checkout-button/edit.js:300
|
|
953
951
|
#: src/blocks/video-playlist/edit.js:191
|
|
954
952
|
msgid "Settings"
|
|
955
953
|
msgstr ""
|
|
956
954
|
|
|
957
|
-
#: dist/editor.js:7 dist/editor.js:
|
|
955
|
+
#: dist/editor.js:7 dist/editor.js:10 dist/editor.js:45
|
|
958
956
|
#: src/blocks/author-profile/edit.js:557 src/blocks/carousel/edit.js:236
|
|
959
957
|
msgid "Display"
|
|
960
958
|
msgstr ""
|
|
@@ -1089,7 +1087,7 @@ msgstr ""
|
|
|
1089
1087
|
#. translators: label for small text size option
|
|
1090
1088
|
#. translators: label for small avatar size option
|
|
1091
1089
|
#. translators: label for small size option
|
|
1092
|
-
#: dist/editor.js:
|
|
1090
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:136
|
|
1093
1091
|
#: src/blocks/author-profile/edit.js:160
|
|
1094
1092
|
msgid "Small"
|
|
1095
1093
|
msgstr "Klein"
|
|
@@ -1097,7 +1095,7 @@ msgstr "Klein"
|
|
|
1097
1095
|
#. translators: abbreviation for small text size option
|
|
1098
1096
|
#. translators: abbreviation for small avatar size option
|
|
1099
1097
|
#. translators: abbreviation for small size
|
|
1100
|
-
#: dist/editor.js:
|
|
1098
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:137
|
|
1101
1099
|
#: src/blocks/author-profile/edit.js:161
|
|
1102
1100
|
msgid "S"
|
|
1103
1101
|
msgstr "S"
|
|
@@ -1105,7 +1103,7 @@ msgstr "S"
|
|
|
1105
1103
|
#. translators: label for medium text size option
|
|
1106
1104
|
#. translators: label for medium avatar size option
|
|
1107
1105
|
#. translators: label for medium size option
|
|
1108
|
-
#: dist/editor.js:
|
|
1106
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:141
|
|
1109
1107
|
#: src/blocks/author-profile/edit.js:165
|
|
1110
1108
|
msgid "Medium"
|
|
1111
1109
|
msgstr "Mittel"
|
|
@@ -1113,7 +1111,7 @@ msgstr "Mittel"
|
|
|
1113
1111
|
#. translators: abbreviation for medium text size option
|
|
1114
1112
|
#. translators: abbreviation for medium avatar size option
|
|
1115
1113
|
#. translators: abbreviation for medium size
|
|
1116
|
-
#: dist/editor.js:
|
|
1114
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:142
|
|
1117
1115
|
#: src/blocks/author-profile/edit.js:166
|
|
1118
1116
|
msgid "M"
|
|
1119
1117
|
msgstr "M"
|
|
@@ -1121,7 +1119,7 @@ msgstr "M"
|
|
|
1121
1119
|
#. translators: label for small text size option
|
|
1122
1120
|
#. translators: label for large avatar size option
|
|
1123
1121
|
#. translators: label for large size option
|
|
1124
|
-
#: dist/editor.js:
|
|
1122
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:146
|
|
1125
1123
|
#: src/blocks/author-profile/edit.js:170
|
|
1126
1124
|
msgid "Large"
|
|
1127
1125
|
msgstr "Groß"
|
|
@@ -1129,210 +1127,212 @@ msgstr "Groß"
|
|
|
1129
1127
|
#. translators: abbreviation for large text size option
|
|
1130
1128
|
#. translators: abbreviation for large avatar size option
|
|
1131
1129
|
#. translators: abbreviation for large size
|
|
1132
|
-
#: dist/editor.js:
|
|
1130
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:147
|
|
1133
1131
|
#: src/blocks/author-profile/edit.js:171
|
|
1134
1132
|
msgid "L"
|
|
1135
1133
|
msgstr "L"
|
|
1136
1134
|
|
|
1137
1135
|
#. translators: label for extra-large text size option
|
|
1138
1136
|
#. translators: label for extra large size option
|
|
1139
|
-
#: dist/editor.js:
|
|
1137
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:151
|
|
1140
1138
|
msgid "Extra Large"
|
|
1141
1139
|
msgstr "Extra Groß"
|
|
1142
1140
|
|
|
1143
1141
|
#. translators: abbreviation for small text size option
|
|
1144
1142
|
#. translators: abbreviation for extra-large avatar size option
|
|
1145
1143
|
#. translators: abbreviation for extra large size
|
|
1146
|
-
#: dist/editor.js:
|
|
1144
|
+
#: dist/editor.js:8 dist/editor.js:45 src/blocks/author-profile/edit.js:152
|
|
1147
1145
|
#: src/blocks/author-profile/edit.js:176
|
|
1148
1146
|
msgid "XL"
|
|
1149
1147
|
msgstr "XL"
|
|
1150
1148
|
|
|
1151
1149
|
#. translators: label for extra-large avatar size option
|
|
1152
|
-
#: dist/editor.js:
|
|
1150
|
+
#: dist/editor.js:8 src/blocks/author-profile/edit.js:175
|
|
1153
1151
|
msgid "Extra-large"
|
|
1154
1152
|
msgstr "Extra Groß"
|
|
1155
1153
|
|
|
1156
|
-
#: dist/editor.js:
|
|
1154
|
+
#: dist/editor.js:8 src/blocks/author-profile/edit.js:205
|
|
1157
1155
|
msgid "Select a layout to start with:"
|
|
1158
1156
|
msgstr ""
|
|
1159
1157
|
|
|
1160
1158
|
#. translators: %s: error text for when no authors are found.
|
|
1161
|
-
#: dist/editor.js:
|
|
1159
|
+
#: dist/editor.js:9 dist/editor.js:10 src/blocks/author-profile/edit.js:420
|
|
1162
1160
|
#: src/blocks/author-profile/edit.js:431
|
|
1163
1161
|
msgid "No authors or guest authors found for ID %s."
|
|
1164
1162
|
msgstr ""
|
|
1165
1163
|
|
|
1166
|
-
#: dist/editor.js:
|
|
1164
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:464
|
|
1167
1165
|
msgid "Error fetching authors for this post."
|
|
1168
1166
|
msgstr ""
|
|
1169
1167
|
|
|
1170
|
-
#: dist/editor.js:
|
|
1168
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:495
|
|
1171
1169
|
msgid "Error fetching byline authors."
|
|
1172
1170
|
msgstr ""
|
|
1173
1171
|
|
|
1174
|
-
#: dist/editor.js:
|
|
1172
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:559
|
|
1175
1173
|
msgid "Show authors without bio"
|
|
1176
1174
|
msgstr ""
|
|
1177
1175
|
|
|
1178
|
-
#: dist/editor.js:
|
|
1176
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:560
|
|
1179
1177
|
msgid "Display author profiles even if their bio is empty."
|
|
1180
1178
|
msgstr ""
|
|
1181
1179
|
|
|
1182
|
-
#: dist/editor.js:
|
|
1180
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:570
|
|
1183
1181
|
msgid "Text size"
|
|
1184
1182
|
msgstr ""
|
|
1185
1183
|
|
|
1186
|
-
#: dist/editor.js:
|
|
1184
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:277
|
|
1187
1185
|
#: src/blocks/author-profile/edit.js:585
|
|
1188
1186
|
msgid "Avatar"
|
|
1189
1187
|
msgstr ""
|
|
1190
1188
|
|
|
1191
|
-
#: dist/editor.js:
|
|
1189
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:279
|
|
1192
1190
|
#: src/blocks/author-profile/edit.js:587
|
|
1193
1191
|
msgid "Display avatar"
|
|
1194
1192
|
msgstr ""
|
|
1195
1193
|
|
|
1196
|
-
#: dist/editor.js:
|
|
1194
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:285
|
|
1197
1195
|
#: src/blocks/author-profile/edit.js:594
|
|
1198
1196
|
msgid "Hide default avatar"
|
|
1199
1197
|
msgstr ""
|
|
1200
1198
|
|
|
1201
|
-
#: dist/editor.js:
|
|
1199
|
+
#: dist/editor.js:10 dist/editor.js:29 dist/editor.js:51
|
|
1202
1200
|
#: src/blocks/author-list/edit.js:292 src/blocks/author-profile/edit.js:602
|
|
1203
1201
|
msgid "Size"
|
|
1204
1202
|
msgstr ""
|
|
1205
1203
|
|
|
1206
|
-
#: dist/editor.js:
|
|
1204
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:293
|
|
1207
1205
|
#: src/blocks/author-profile/edit.js:603
|
|
1208
1206
|
msgid "Avatar size"
|
|
1209
1207
|
msgstr ""
|
|
1210
1208
|
|
|
1211
|
-
#: dist/editor.js:
|
|
1209
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:306
|
|
1212
1210
|
#: src/blocks/author-profile/edit.js:616
|
|
1213
1211
|
msgid "Border radius"
|
|
1214
1212
|
msgstr ""
|
|
1215
1213
|
|
|
1216
|
-
#: dist/editor.js:
|
|
1214
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:307
|
|
1217
1215
|
#: src/blocks/author-profile/edit.js:617
|
|
1218
1216
|
msgid "Avatar border radius"
|
|
1219
1217
|
msgstr ""
|
|
1220
1218
|
|
|
1221
|
-
#: dist/editor.js:
|
|
1219
|
+
#: dist/editor.js:10 dist/editor.js:11 dist/editor.js:29
|
|
1222
1220
|
#: src/blocks/author-list/edit.js:446 src/blocks/author-profile/edit.js:638
|
|
1223
1221
|
#: src/blocks/author-profile/edit.js:959
|
|
1224
1222
|
msgid "Fetching authors…"
|
|
1225
1223
|
msgstr ""
|
|
1226
1224
|
|
|
1227
|
-
#: dist/editor.js:
|
|
1225
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:345
|
|
1228
1226
|
#: src/blocks/author-profile/edit.js:652
|
|
1229
1227
|
msgid "Show avatar on left"
|
|
1230
1228
|
msgstr ""
|
|
1231
1229
|
|
|
1232
|
-
#: dist/editor.js:
|
|
1230
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:351
|
|
1233
1231
|
#: src/blocks/author-profile/edit.js:658
|
|
1234
1232
|
msgid "Show avatar on right"
|
|
1235
1233
|
msgstr ""
|
|
1236
1234
|
|
|
1237
|
-
#: dist/editor.js:
|
|
1235
|
+
#: dist/editor.js:10 dist/editor.js:29 src/blocks/author-list/edit.js:362
|
|
1238
1236
|
#: src/blocks/author-profile/edit.js:670
|
|
1239
1237
|
msgid "Edit selection"
|
|
1240
1238
|
msgstr ""
|
|
1241
1239
|
|
|
1242
|
-
#: dist/editor.js:
|
|
1240
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:690
|
|
1243
1241
|
msgid "Select a type:"
|
|
1244
1242
|
msgstr ""
|
|
1245
1243
|
|
|
1246
|
-
#: dist/editor.js:
|
|
1244
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:693
|
|
1247
1245
|
msgid "Contextual"
|
|
1248
1246
|
msgstr ""
|
|
1249
1247
|
|
|
1250
|
-
#: dist/editor.js:
|
|
1248
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:696
|
|
1251
1249
|
msgid "Specific"
|
|
1252
1250
|
msgstr ""
|
|
1253
1251
|
|
|
1254
|
-
#: dist/editor.js:
|
|
1252
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:712
|
|
1255
1253
|
msgid ""
|
|
1256
1254
|
"This block was created with a block theme and is not supported in the "
|
|
1257
1255
|
"current theme. It will render using the classic layout on the frontend."
|
|
1258
1256
|
msgstr ""
|
|
1259
1257
|
|
|
1260
|
-
#: dist/editor.js:
|
|
1258
|
+
#: dist/editor.js:10 dist/editor.js:11 src/blocks/author-profile/edit.js:744
|
|
1261
1259
|
#: src/blocks/author-profile/edit.js:900
|
|
1262
1260
|
msgid "Author bio is hidden because Custom Byline is active on this post."
|
|
1263
1261
|
msgstr ""
|
|
1264
1262
|
|
|
1265
|
-
#: dist/editor.js:
|
|
1263
|
+
#: dist/editor.js:10 dist/editor.js:11 src/blocks/author-profile/edit.js:763
|
|
1266
1264
|
#: src/blocks/author-profile/edit.js:964
|
|
1267
1265
|
msgid "Search for an author to display"
|
|
1268
1266
|
msgstr ""
|
|
1269
1267
|
|
|
1270
|
-
#: dist/editor.js:
|
|
1268
|
+
#: dist/editor.js:10 dist/editor.js:11 src/blocks/author-profile/edit.js:764
|
|
1271
1269
|
#: src/blocks/author-profile/edit.js:965
|
|
1272
1270
|
msgid "Begin typing name, click autocomplete result to select."
|
|
1273
1271
|
msgstr ""
|
|
1274
1272
|
|
|
1275
|
-
#: dist/editor.js:
|
|
1276
|
-
#:
|
|
1277
|
-
#: src/blocks/author-
|
|
1278
|
-
#: src/blocks/author-profile/index.js:50
|
|
1273
|
+
#: dist/editor.js:10 dist/editor.js:11 dist/editor.js:20 dist/editor.js:29
|
|
1274
|
+
#: dist/editor.js:30 src/blocks/author-list/edit.js:256
|
|
1275
|
+
#: src/blocks/author-list/index.js:48 src/blocks/author-profile/edit.js:807
|
|
1276
|
+
#: src/blocks/author-profile/edit.js:1021 src/blocks/author-profile/index.js:50
|
|
1279
1277
|
msgid "author"
|
|
1280
1278
|
msgstr ""
|
|
1281
1279
|
|
|
1282
|
-
#: dist/editor.js:
|
|
1280
|
+
#: dist/editor.js:10 dist/editor.js:11 dist/editor.js:29
|
|
1283
1281
|
#: src/blocks/author-list/edit.js:257 src/blocks/author-profile/edit.js:808
|
|
1284
1282
|
#: src/blocks/author-profile/edit.js:1022
|
|
1285
1283
|
msgid "authors"
|
|
1286
1284
|
msgstr ""
|
|
1287
1285
|
|
|
1288
|
-
#: dist/editor.js:
|
|
1286
|
+
#: dist/editor.js:10 dist/editor.js:11 src/blocks/author-profile/edit.js:822
|
|
1289
1287
|
#: src/blocks/author-profile/edit.js:913
|
|
1290
1288
|
msgid "No authors found for this post."
|
|
1291
1289
|
msgstr ""
|
|
1292
1290
|
|
|
1293
|
-
#: dist/editor.js:
|
|
1291
|
+
#: dist/editor.js:10 src/blocks/author-profile/edit.js:851
|
|
1294
1292
|
msgid "Preview author"
|
|
1295
1293
|
msgstr ""
|
|
1296
1294
|
|
|
1297
1295
|
#. translators: %d: number of authors
|
|
1298
|
-
#: dist/editor.js:
|
|
1296
|
+
#: dist/editor.js:11 src/blocks/author-profile/edit.js:860
|
|
1299
1297
|
msgid "Previewing 1 of %d authors. All authors display on frontend."
|
|
1300
1298
|
msgstr ""
|
|
1301
1299
|
|
|
1302
|
-
#: dist/editor.js:
|
|
1300
|
+
#: dist/editor.js:11
|
|
1303
1301
|
msgid "Post-Checkout Button"
|
|
1304
1302
|
msgstr ""
|
|
1305
1303
|
|
|
1306
|
-
#: dist/editor.js:
|
|
1304
|
+
#: dist/editor.js:11
|
|
1307
1305
|
msgid ""
|
|
1308
1306
|
"After a successful purchase, a button will be presented to finish the "
|
|
1309
1307
|
"process."
|
|
1310
1308
|
msgstr ""
|
|
1311
1309
|
|
|
1312
|
-
#: dist/editor.js:
|
|
1310
|
+
#: dist/editor.js:11
|
|
1313
1311
|
msgid "Close the modal"
|
|
1314
1312
|
msgstr ""
|
|
1315
1313
|
|
|
1316
|
-
#: dist/editor.js:
|
|
1314
|
+
#: dist/editor.js:11
|
|
1317
1315
|
msgid "Go to a custom URL"
|
|
1318
1316
|
msgstr ""
|
|
1319
1317
|
|
|
1320
|
-
#: dist/editor.js:
|
|
1318
|
+
#: dist/editor.js:11
|
|
1321
1319
|
msgid "Go to the previous page"
|
|
1322
1320
|
msgstr ""
|
|
1323
1321
|
|
|
1324
|
-
#: dist/editor.js:
|
|
1322
|
+
#: dist/editor.js:11
|
|
1325
1323
|
msgid "Button Label"
|
|
1326
1324
|
msgstr ""
|
|
1327
1325
|
|
|
1328
|
-
#: dist/editor.js:
|
|
1326
|
+
#: dist/editor.js:11
|
|
1329
1327
|
msgid "Custom URL"
|
|
1330
1328
|
msgstr ""
|
|
1331
1329
|
|
|
1332
|
-
#: dist/editor.js:
|
|
1330
|
+
#: dist/editor.js:11
|
|
1333
1331
|
msgid "https://example.com"
|
|
1334
1332
|
msgstr ""
|
|
1335
1333
|
|
|
1334
|
+
#. Translators: %s: The name of the type.
|
|
1335
|
+
#. Translators: %s: the name of a post type.
|
|
1336
1336
|
#: dist/editor.js:20 dist/editor.js:29 src/blocks/author-list/edit.js:437
|
|
1337
1337
|
#: src/blocks/author-list/index.js:28
|
|
1338
1338
|
msgid "Author List"
|