geno/wp-content/plugins/mailpoet/assets/dist/js/commons.js

9 lines
3.5 MiB
JavaScript
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
/*! For license information please see commons.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[351],{13396:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return re}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function A(e){return e.length}function d(e){return e.length}function b(e,t){return t.push(e),e}var f=1,M=1,h=0,m=0,z=0,O="";function g(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:f,column:M,length:a,return:""}}function v(e,t){return a(g("",null,null,"",null,null,0),e,{length:-e.length},t)}function y(){return z=m>0?l(O,--m):0,M--,10===z&&(M=1,f--),z}function _(){return z=m<h?l(O,m++):0,M++,10===z&&(M=1,f++),z}function w(){return l(O,m)}function q(){return m}function W(e,t){return p(O,e,t)}function B(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){return f=M=1,h=A(O=e),m=0,[]}function C(e){return O="",e}function R(e){return s(W(m-1,S(91===e?e+2:40===e?e+1:e)))}function x(e){for(;(z=w())&&z<33;)_();return B(e)>2||B(z)>3?"":" "}function E(e,t){for(;--t&&_()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return W(e,q()+(t<6&&32==w()&&32==_()))}function S(e){for(;_();)switch(z){case e:return m;case 34:case 39:34!==e&&39!==e&&S(z);break;case 40:41===e&&S(e);break;case 92:_()}return m}function k(e,t){for(;_()&&e+z!==57&&(e+z!==84||47!==w()););return"/*"+W(t,m-1)+"*"+i(47===e?e:_())}function T(e){for(;!B(w());)_();return W(e,m)}var D="-ms-",N="-moz-",F="-webkit-",I="comm",U="rule",P="decl",j="@keyframes";function H(e,t){for(var n="",r=d(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case P:return e.return=e.return||e.value;case I:return"";case j:return e.return=e.value+"{"+H(e.children,r)+"}";case U:e.value=e.props.join(",")}return A(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return C(X("",null,null,null,[""],e=L(e),0,[0],e))}function X(e,t,n,r,o,a,s,p,d){for(var f=0,M=0,h=s,m=0,z=0,O=0,g=1,v=1,W=1,B=0,L="",C=o,S=a,D=r,N=L;v;)switch(O=B,B=_()){case 40:if(108!=O&&58==l(N,h-1)){-1!=u(N+=c(R(B),"&","&\f"),"&\f")&&(W=-1);break}case 34:case 39:case 91:N+=R(B);break;case 9:case 10:case 13:case 32:N+=x(O);break;case 92:N+=E(q()-1,7);continue;case 47:switch(w()){case 42:case 47:b(Z(k(_(),q()),t,n),d);break;default:N+="/"}break;case 123*g:p[f++]=A(N)*W;case 125*g:case 59:case 0:switch(B){case 0:case 125:v=0;case 59+M:-1==W&&(N=c(N,/\f/g,"")),z>0&&A(N)-h&&b(z>
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,A=(0,s.default)("svg",{target:"ea4tfvq2"})("width:",u.Z.spinnerSize,"px;height:",u.Z.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",l.D.ui.theme,";overflow:visible;"),d={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},b=(0,s.default)("circle",{target:"ea4tfvq1"})(d,";stroke:",l.D.gray[300],";"),f=(0,s.default)("path",{target:"ea4tfvq0"})(d,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",p,";");var M=(0,o.forwardRef)((function(e,t){let{className:n,...i}=e;return(0,o.createElement)(A,(0,r.Z)({className:a()("components-spinner",n),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false"},i,{ref:t}),(0,o.createElement)(b,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,o.createElement)(f,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}))},52941:function(e,t,n){"use strict";var r=n(70079),o=n(52323),i=n(13396),a=n(35721),s=n.n(a),c=n(95024);const u=new Set,l=s()((e=>{let t=c.Z().replace(/[0-9]/g,"");for(;u.has(t);)t=c.Z().replace(/[0-9]/g,"");return u.add(t),(0,i.default)({container:e,key:t})}));t.Z=function(e){const{children:t,document:n}=e;if(!n)return null;const i=l(n.head);return(0,r.createElement)(o.C,{value:i},t)}},35100:function(e,t,n){"use strict";var r=n(10328),o=n(70079),i=n(26372),a=n.n(i),s=n(33594),c=n(4506),u=n(19382);const l=e=>{let{tabId:t,children:n,selected:i,...a}=e;return(0,o.createElement)(u.ZP,(0,r.Z)({role:"tab",tabIndex:i?void 0:-1,"aria-selected":i,id:t,__experimentalIsFocusable:!0},a),n)};t.Z=function e(t){var n;let{className:r,children:i,tabs:u,selectOnMove:p=!0,initialTabName:A,orientation:d="horizontal",activeClass:b="is-active",onSelect:f}=t;const M=(0,s.Z)(e,"tab-panel"),[h,m]=(0,o.useState)(),z=(0,o.useCallback)((e=>{m(e),null==f||f(e)}),[f]),O=u.find((e=>{let{name:t}=e;return t===h})),g=`${M}-${null!==(n=null==O?void 0:O.name)&&void 0!==n?n:"none"}`;return(0,o.useEffect)((()=>{if(O)return;const e=u.find((e=>e.name===A));if(!A||e)if(e&&!e.disabled)z(e.name);else{const e=u.find((e=>!e.disabled));e&&z(e.name)}}),[u,O,A,z]),(0,o.useEffect)((()=>{if(null==O||!O.disabled)return;const e=u.find((e=>!e.disabled));e&&z(e.name)}),[u,null==O?void 0:O.disabled,z]),(0,o.createElement)("div",{className:r},(0,o.createElement)(c.Z,{role:"tablist",orientation:d,onNavigate:p?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},u.map((e=>(0,o.createElement)(l,{className:a()("components-tab-panel__tabs-item",e.className,{[b]:e.name===h}),tabId:`${M}-${e.name}`,"aria-controls":`${M}-${e.name}-view`,selected:e.name===h,key:e.name,onClick:()=>z(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),O&&(0,o.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:`${g}-view`,className:"components-tab-panel__tab-content"},i(O)))}},74356:function(e,t,n){"use strict";var r=n(10328),o=n(70079),i=n(33594),a=n(79342);const s=(0,o.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:c,hideLabelFromVision:u,value:l,help:p,className:A,onChange:d,type:b="text",...f}=e,M=`inspector-text-control-${(0,i.Z)(s)}`;return(0,o.createElement)(a.ZP,{__nextHasNoMarginBottom:n,label:c,hideLabelFromVision:u,id:M,help:p,className:A},(0,o.createElement)("input",(0,r.Z)({className:"components-text-control__input",type:b,id:M,value:l,onChange:e=>d(e.target.value),"aria-describedby":p?M+"__help":void 0,ref:t},f)))}));t.Z=s},35630:function(e,t,n){"use strict";var r=n(10328),o=n(70079),i=n(20465),a=n(53112),s=n(15228);const c=(0,i.Iq)((function(e,t){const n=(0,s.Z)(e);return(0,o.createElement)(a.Z,(0,r.Z)({as:"span"},n,{ref:t}))}),"Text");t.Z=c},15228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r={};n.r(r),n.d(r,{Text:function(){return h},block:function(){return m},destructive:function(){return O},highlighterText:function(){return v},muted:function(){return g},positive:function(){return z},upperCase:function(){return y}});var o=n(18591),i=n(70