This commit is contained in:
2026-03-11 15:57:27 +01:00
parent 481271c972
commit b4b460fd21
10775 changed files with 2071579 additions and 26409 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{const e=window.mc4wp_email_typo_checker&&window.mc4wp_email_typo_checker.domains?window.mc4wp_email_typo_checker.domains:[];function t(e,t){if(e===t)return 0;if(e.length>t.length){const n=e;e=t,t=n}let o=e.length,c=t.length;for(;o>0&&e.charCodeAt(o-1)===t.charCodeAt(c-1);)o--,c--;let r=0;for(;r<o&&e.charCodeAt(r)===t.charCodeAt(r);)r++;if(o-=r,c-=r,0===o||c<3)return c;let i,l,u,a,s,d,f,h,m,p,w,_,g=0;const C=[];for(i=0;i<o;i++)C.push(i+1),C.push(e.charCodeAt(r+i));const y=C.length-1;for(;g<c-3;)for(m=t.charCodeAt(r+(l=g)),p=t.charCodeAt(r+(u=g+1)),w=t.charCodeAt(r+(a=g+2)),_=t.charCodeAt(r+(s=g+3)),d=g+=4,i=0;i<y;i+=2)f=C[i],h=C[i+1],l=n(f,l,u,m,h),u=n(l,u,a,p,h),a=n(u,a,s,w,h),d=n(a,s,d,_,h),C[i]=d,s=a,a=u,u=l,l=f;for(;g<c;)for(m=t.charCodeAt(r+(l=g)),d=++g,i=0;i<y;i+=2)f=C[i],C[i]=d=n(f,l,d,m,C[i+1]),l=f;return d}function n(e,t,n,o,c){return e<t||n<t?e>n?n+1:e+1:o===c?t:t+1}function o(e){const t=e.parentElement.querySelector(".mc4wp-email-suggestion");t&&t.remove()}function c(n){const c=n.value.trim();if(o(n),!c||-1===c.indexOf("@"))return;const r=function(e){const t=e.split("@");return 2===t.length?t[1]:null}(c);if(!r)return;const i=function(n){if(!n)return null;const o=n.toLowerCase();let c=1/0,r=null;if(e.includes(o))return null;for(let n=0;n<e.length;n++){const i=e[n],l=t(o,i);l>0&&l<=2&&l<c&&(c=l,r=i)}return r}(r);if(i){const e=function(e,t){const n=document.createElement("div");n.className="mc4wp-email-suggestion";const c=document.createElement("a");c.setAttribute("href","#");const r=window.mc4wp_email_typo_checker&&window.mc4wp_email_typo_checker.suggestion_text?window.mc4wp_email_typo_checker.suggestion_text:"Did you mean %s?";return c.textContent=r.replace("%s",e),c.addEventListener("click",function(n){n.preventDefault(),t.value=e,o(t);const c=new Event("change",{bubbles:!0});t.dispatchEvent(c)}),n.appendChild(c),n}(c.split("@")[0]+"@"+i,n);n.after(e)}}function r(e){e.querySelectorAll('input[type="email"]').forEach(function(e){e.addEventListener("keyup",function(){c(e)}),e.addEventListener("blur",function(){c(e)})})}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('.mc4wp-form[data-typo-check="1"]').forEach(r)})})();

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
!function(){var t=window.wp.i18n.__,e=window.wp.blocks.registerBlockType,i=window.wp.components.SelectControl,o=window.mc4wp_forms;e("mailchimp-for-wp/form",{title:t("Mailchimp for WordPress Form"),description:t("Block showing a Mailchimp for WordPress sign-up form"),category:"widgets",attributes:{id:{type:"int"}},icon:React.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",version:"1.1"},React.createElement("path",{opacity:"1",fill:"#a0a5aa",fillOpacity:"1",stroke:"none",d:"M 8.0097656 0.052734375 A 8 8 0 0 0 0.009765625 8.0527344 A 8 8 0 0 0 8.0097656 16.052734 A 8 8 0 0 0 16.009766 8.0527344 A 8 8 0 0 0 8.0097656 0.052734375 z M 9.2597656 4.171875 C 9.3205456 4.171875 9.9296146 5.0233822 10.611328 6.0664062 C 11.293041 7.1094313 12.296018 8.5331666 12.841797 9.2285156 L 13.833984 10.492188 L 13.316406 11.041016 C 13.031321 11.342334 12.708299 11.587891 12.599609 11.587891 C 12.253798 11.587891 11.266634 10.490156 10.349609 9.0859375 C 9.8610009 8.3377415 9.4126385 7.7229 9.3515625 7.71875 C 9.2904825 7.71455 9.2402344 8.3477011 9.2402344 9.1269531 L 9.2402344 10.544922 L 8.5839844 10.982422 C 8.2233854 11.223015 7.8735746 11.418294 7.8066406 11.417969 C 7.7397106 11.417644 7.4861075 10.997223 7.2421875 10.482422 C 6.9982675 9.9676199 6.6560079 9.3946444 6.4824219 9.2089844 L 6.1679688 8.8710938 L 6.0664062 9.34375 C 5.7203313 10.974656 5.6693219 11.090791 5.0917969 11.505859 C 4.5805569 11.873288 4.2347982 12.017623 4.1914062 11.882812 C 4.1839062 11.859632 4.1482681 11.574497 4.1113281 11.25 C 3.9708341 10.015897 3.5347399 8.7602861 2.8105469 7.5019531 C 2.5672129 7.0791451 2.5711235 7.0651693 2.9765625 6.8320312 C 3.2046215 6.7008903 3.5466561 6.4845105 3.7363281 6.3515625 C 4.0587811 6.1255455 4.1076376 6.1466348 4.4941406 6.6679688 C 4.8138896 7.0992628 4.9275606 7.166285 4.9941406 6.96875 C 5.0960956 6.666263 6.181165 5.8574219 6.484375 5.8574219 C 6.600668 5.8574219 6.8857635 6.1981904 7.1171875 6.6152344 C 7.3486105 7.0322784 7.5790294 7.3728809 7.6308594 7.3730469 C 7.7759584 7.3735219 7.9383234 5.8938023 7.8339844 5.5195312 C 7.7605544 5.2561423 7.8865035 5.0831575 8.4453125 4.6796875 C 8.8327545 4.3999485 9.1989846 4.171875 9.2597656 4.171875 z "})),supports:{html:!1},edit:function(e){var n=o.map((function(t){return{label:t.name,value:t.id}}));return void 0===e.attributes.id&&o.length>0&&e.setAttributes({id:o[0].id}),React.createElement("div",{style:{backgroundColor:"#f8f9f9",padding:"14px"}},React.createElement(i,{label:t("Mailchimp for WordPress Sign-up Form"),value:e.attributes.id,options:n,onChange:function(t){e.setAttributes({id:t})}}))},save:function(t){return null}})}();
(()=>{function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},e.apply(null,arguments)}const t=window.wp.i18n.__,{registerBlockType:i}=window.wp.blocks,{useBlockProps:o}=window.wp.blockEditor,{SelectControl:n}=window.wp.components,r=window.mc4wp_forms;i("mailchimp-for-wp/form",{apiVersion:3,title:t("Mailchimp for WordPress Form"),description:t("Block showing a Mailchimp for WordPress sign-up form"),category:"widgets",attributes:{id:{type:"int"}},icon:React.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",version:"1.1"},React.createElement("path",{opacity:"1",fill:"#a0a5aa",fillOpacity:"1",stroke:"none",d:"M 8.0097656 0.052734375 A 8 8 0 0 0 0.009765625 8.0527344 A 8 8 0 0 0 8.0097656 16.052734 A 8 8 0 0 0 16.009766 8.0527344 A 8 8 0 0 0 8.0097656 0.052734375 z M 9.2597656 4.171875 C 9.3205456 4.171875 9.9296146 5.0233822 10.611328 6.0664062 C 11.293041 7.1094313 12.296018 8.5331666 12.841797 9.2285156 L 13.833984 10.492188 L 13.316406 11.041016 C 13.031321 11.342334 12.708299 11.587891 12.599609 11.587891 C 12.253798 11.587891 11.266634 10.490156 10.349609 9.0859375 C 9.8610009 8.3377415 9.4126385 7.7229 9.3515625 7.71875 C 9.2904825 7.71455 9.2402344 8.3477011 9.2402344 9.1269531 L 9.2402344 10.544922 L 8.5839844 10.982422 C 8.2233854 11.223015 7.8735746 11.418294 7.8066406 11.417969 C 7.7397106 11.417644 7.4861075 10.997223 7.2421875 10.482422 C 6.9982675 9.9676199 6.6560079 9.3946444 6.4824219 9.2089844 L 6.1679688 8.8710938 L 6.0664062 9.34375 C 5.7203313 10.974656 5.6693219 11.090791 5.0917969 11.505859 C 4.5805569 11.873288 4.2347982 12.017623 4.1914062 11.882812 C 4.1839062 11.859632 4.1482681 11.574497 4.1113281 11.25 C 3.9708341 10.015897 3.5347399 8.7602861 2.8105469 7.5019531 C 2.5672129 7.0791451 2.5711235 7.0651693 2.9765625 6.8320312 C 3.2046215 6.7008903 3.5466561 6.4845105 3.7363281 6.3515625 C 4.0587811 6.1255455 4.1076376 6.1466348 4.4941406 6.6679688 C 4.8138896 7.0992628 4.9275606 7.166285 4.9941406 6.96875 C 5.0960956 6.666263 6.181165 5.8574219 6.484375 5.8574219 C 6.600668 5.8574219 6.8857635 6.1981904 7.1171875 6.6152344 C 7.3486105 7.0322784 7.5790294 7.3728809 7.6308594 7.3730469 C 7.7759584 7.3735219 7.9383234 5.8938023 7.8339844 5.5195312 C 7.7605544 5.2561423 7.8865035 5.0831575 8.4453125 4.6796875 C 8.8327545 4.3999485 9.1989846 4.171875 9.2597656 4.171875 z "})),supports:{html:!1},edit:function({attributes:i,setAttributes:a}){const l=r.map(e=>({label:e.name,value:e.id}));return void 0===i.id&&r.length>0&&a({id:r[0].id}),React.createElement("div",e({style:{backgroundColor:"#f8f9f9",padding:"14px"}},o()),React.createElement(n,{label:t("Mailchimp for WordPress Sign-up Form"),value:i.id,options:l,onChange:e=>{a({id:e})}}))},save:function(e){return null}})})();

View File

@@ -1 +1 @@
!function(){var e={7678:function(e){e.exports=function(e){var t,n,o,r,i,c,u,d,s=window.pageXOffset||document.documentElement.scrollLeft,l=(t=e,n=document.body,o=document.documentElement,r=t.getBoundingClientRect(),i=o.clientHeight,c=Math.max(n.scrollHeight,n.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight),u=r.bottom-i/2-r.height/2,d=c-i,Math.min(u+window.pageYOffset,d));window.scrollTo(s,l)}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,o,r,i,c,u=n(7678),d=n.n(u),s=window.mc4wp_submitted_form,l=window.mc4wp.forms;if(s){var a=document.getElementById(s.element_id);e=l.getByElement(a),t=s.event,o=s.errors,r=s.data,i=Date.now(),c=document.body.clientHeight,o&&e.setData(r),window.scrollY<=10&&s.auto_scroll&&d()(e.element),window.addEventListener("load",(function(){l.trigger("submitted",[e]),o?l.trigger("error",[e,o]):(l.trigger("success",[e,r]),l.trigger(t,[e,r]),"updated_subscriber"===t&&l.trigger("subscribed",[e,r,!0]));var n=Date.now()-i;s.auto_scroll&&n>1e3&&n<2e3&&document.body.clientHeight!==c&&d()(e.element)}))}}()}();
(()=>{var e={1419(e){e.exports=function(e){const t=window.pageXOffset||document.documentElement.scrollLeft,o=function(e){const t=document.body,o=document.documentElement,n=e.getBoundingClientRect(),r=o.clientHeight,i=Math.max(t.scrollHeight,t.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight),c=n.bottom-r/2-n.height/2,s=i-r;return Math.min(c+window.pageYOffset,s)}(e);window.scrollTo(t,o)}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(1419),t=o.n(e);const n=window.mc4wp_submitted_form,r=window.mc4wp.forms;if(n){const e=document.getElementById(n.element_id);!function(e,o,i,c){const s=Date.now(),d=document.body.clientHeight;i&&e.setData(c),window.scrollY<=10&&n.auto_scroll&&t()(e.element),window.addEventListener("load",function(){r.trigger("submitted",[e]),i?r.trigger("error",[e,i]):(r.trigger("success",[e,c]),r.trigger(o,[e,c]),"updated_subscriber"===o&&r.trigger("subscribed",[e,c,!0]));const l=Date.now()-s;n.auto_scroll&&l>1e3&&l<2e3&&document.body.clientHeight!==d&&t()(e.element)})}(r.getByElement(e),n.event,n.errors,n.data)}})()})();

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
!function(){var n=window.mc4wp_vars.ajaxurl,t=window.mc4wp.settings,e=document.getElementById("notice-additional-fields");function i(){var t=[].filter.call(document.querySelectorAll(".mc4wp-list-input"),(function(n){return n.checked})).map((function(n){return n.value})).join(","),i=["EMAIL","FNAME","NAME","LNAME"],c=!1;window.fetch("".concat(n,"?action=mc4wp_get_list_details&ids=").concat(t)).then((function(n){return n.json()})).then((function(n){n.forEach((function(n){n.merge_fields.forEach((function(n){n.required&&i.indexOf(n.tag)<0&&(c=!0)}))}))})).finally((function(){e.style.display=c?"":"none"}))}e&&(i(),t.on("selectedLists.change",i))}();
(()=>{const e=window.mc4wp_vars.ajaxurl,t=window.mc4wp.settings,n=document.getElementById("notice-additional-fields");function i(){const t=[].filter.call(document.querySelectorAll(".mc4wp-list-input"),e=>e.checked).map(e=>e.value).join(","),i=["EMAIL","FNAME","NAME","LNAME"];let l=!1;window.fetch(`${e}?action=mc4wp_get_list_details&ids=${t}`).then(e=>e.json()).then(e=>{e.forEach(e=>{e.merge_fields.forEach(e=>{e.required&&i.indexOf(e.tag)<0&&(l=!0)})})}).finally(()=>{n.style.display=l?"":"none"})}n&&(i(),t.on("selectedLists.change",i))})();