File Editor
Directories:
.. (Back)
Files:
admin.asset.php
admin.css
admin.js
customizer.asset.php
customizer.css
customizer.js
pointer.asset.php
pointer.js
preview.asset.php
preview.js
Create New File
Create
Edit File: admin.js
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"SkeletonTheme",{enumerable:!0,get:function(){return o.default}});var r=a(n(26)),o=a(n(43));function a(e){return e&&e.__esModule?e:{default:e}}},,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24);Object.defineProperty(t,"DefaultToastContainer",{enumerable:!0,get:function(){return r.ToastContainer}});var o=n(19);Object.defineProperty(t,"DefaultToast",{enumerable:!0,get:function(){return o.DefaultToast}});var a=n(38);Object.defineProperty(t,"ToastConsumer",{enumerable:!0,get:function(){return a.ToastConsumer}}),Object.defineProperty(t,"ToastProvider",{enumerable:!0,get:function(){return a.ToastProvider}}),Object.defineProperty(t,"withToastManager",{enumerable:!0,get:function(){return a.withToastManager}}),Object.defineProperty(t,"useToasts",{enumerable:!0,get:function(){return a.useToasts}})},function(e,t){e.exports=window.wp.dataControls},function(e,t,n){e.exports=n(34)()},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.lodash},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return k})),n.d(t,"ThemeContext",(function(){return N})),n.d(t,"withEmotionCache",(function(){return S})),n.d(t,"css",(function(){return D})),n.d(t,"ClassNames",(function(){return I})),n.d(t,"Global",(function(){return M})),n.d(t,"createElement",(function(){return R})),n.d(t,"jsx",(function(){return R})),n.d(t,"keyframes",(function(){return L}));var r=n(5),o=n(3),a=function(){function e(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.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=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}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=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]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),s=function(e){function t(e,t,r){var o=t.trim().split(d);t=o;var a=o.length,s=e.length;switch(s){case 0:case 1:var c=0;for(e=0===s?"":e[0]+" ";c<a;++c)t[c]=n(e,t[c],r).trim();break;default:var i=c=0;for(t=[];c<a;++c)for(var l=0;l<s;++l)t[i++]=n(e[l]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var s=e+";",c=2*t+3*n+4*a;if(944===c){e=s.indexOf(":",9)+1;var i=s.substring(e,s.length-1).trim();return i=s.substring(0,e).trim()+i+";",1===S||2===S&&o(i,1)?"-webkit-"+i+i:i}if(0===S||2===S&&!o(s,1))return s;switch(c){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(C,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(i=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+i+s;case 1005:return m.test(s)?s.replace(f,":-webkit-")+s.replace(f,":-moz-")+s:s;case 1e3:switch(t=(i=s.substring(13).trim()).indexOf("-")+1,i.charCodeAt(0)+i.charCodeAt(t)){case 226:i=s.replace(v,"tb");break;case 232:i=s.replace(v,"tb-rl");break;case 220:i=s.replace(v,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+i+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,c=(i=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|i.charCodeAt(7))){case 203:if(111>i.charCodeAt(8))break;case 115:s=s.replace(i,"-webkit-"+i)+";"+s;break;case 207:case 102:s=s.replace(i,"-webkit-"+(102<c?"inline-":"")+"box")+";"+s.replace(i,"-webkit-"+i)+";"+s.replace(i,"-ms-"+i+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return i=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+i+"-ms-flex-"+i+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(i=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):s.replace(i,"-webkit-"+i)+s.replace(i,"-moz-"+i.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+a&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),F(2!==t?r:r.replace(_,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(j," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,s,c,l,u){for(var f,m=0,p=t;m<P;++m)switch(f=T[m].call(i,e,p,n,r,o,a,s,c,l,u)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?S=1:(S=2,F=e):S=0),c}function i(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<P){var i=s(-1,n,c,c,N,w,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var f=function e(n,c,i,f,m){for(var p,d,b,v,j,E=0,_=0,x=0,C=0,T=0,F=0,R=b=p=0,M=0,B=0,L=0,U=0,$=i.length,I=$-1,z="",W="",Y="",K="";M<$;){if(d=i.charCodeAt(M),M===I&&0!==_+C+x+E&&(0!==_&&(d=47===_?10:47),C=x=E=0,$++,I++),0===_+C+x+E){if(M===I&&(0<B&&(z=z.replace(u,"")),0<z.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:z+=i.charAt(M)}d=59}switch(d){case 123:for(p=(z=z.trim()).charCodeAt(0),b=1,U=++M;M<$;){switch(d=i.charCodeAt(M)){case 123:b++;break;case 125:b--;break;case 47:switch(d=i.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<I;++R)switch(i.charCodeAt(R)){case 47:if(42===d&&42===i.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===d){M=R+1;break e}}M=R}}break;case 91:d++;case 40:d++;case 34:case 39:for(;M++<I&&i.charCodeAt(M)!==d;);}if(0===b)break;M++}switch(b=i.substring(U,M),0===p&&(p=(z=z.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<B&&(z=z.replace(u,"")),d=z.charCodeAt(1)){case 100:case 109:case 115:case 45:B=c;break;default:B=A}if(U=(b=e(c,B,b,d,m+1)).length,0<P&&(j=s(3,b,B=t(A,z,L),c,N,w,U,d,m,f),z=B.join(""),void 0!==j&&0===(U=(b=j.trim()).length)&&(d=0,b="")),0<U)switch(d){case 115:z=z.replace(O,a);case 100:case 109:case 45:b=z+"{"+b+"}";break;case 107:b=(z=z.replace(h,"$1 $2"))+"{"+b+"}",b=1===S||2===S&&o("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=z+b,112===f&&(W+=b,b="")}else b="";break;default:b=e(c,t(c,z,L),b,f,m+1)}Y+=b,b=L=B=R=p=0,z="",d=i.charCodeAt(++M);break;case 125:case 59:if(1<(U=(z=(0<B?z.replace(u,""):z).trim()).length))switch(0===R&&(p=z.charCodeAt(0),45===p||96<p&&123>p)&&(U=(z=z.replace(" ",":")).length),0<P&&void 0!==(j=s(1,z,c,n,N,w,W.length,f,m,f))&&0===(U=(z=j.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),d=z.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){K+=z+i.charAt(M);break}default:58!==z.charCodeAt(U-1)&&(W+=r(z,p,d,z.charCodeAt(2)))}L=B=R=p=0,z="",d=i.charCodeAt(++M)}}switch(d){case 13:case 10:47===_?_=0:0===1+p&&107!==f&&0<z.length&&(B=1,z+="\0"),0<P*D&&s(0,z,c,n,N,w,W.length,f,m,f),w=1,N++;break;case 59:case 125:if(0===_+C+x+E){w++;break}default:switch(w++,v=i.charAt(M),d){case 9:case 32:if(0===C+E+_)switch(T){case 44:case 58:case 9:case 32:v="";break;default:32!==d&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===C+_+E&&(B=L=1,v="\f"+v);break;case 108:if(0===C+_+E+k&&0<R)switch(M-R){case 2:112===T&&58===i.charCodeAt(M-3)&&(k=T);case 8:111===F&&(k=F)}break;case 58:0===C+_+E&&(R=M);break;case 44:0===_+x+C+E&&(B=1,v+="\r");break;case 34:case 39:0===_&&(C=C===d?0:0===C?d:C);break;case 91:0===C+_+x&&E++;break;case 93:0===C+_+x&&E--;break;case 41:0===C+_+E&&x--;break;case 40:if(0===C+_+E){if(0===p)switch(2*T+3*F){case 533:break;default:p=1}x++}break;case 64:0===_+x+C+E+R+b&&(b=1);break;case 42:case 47:if(!(0<C+E+x))switch(_){case 0:switch(2*d+3*i.charCodeAt(M+1)){case 235:_=47;break;case 220:U=M,_=42}break;case 42:47===d&&42===T&&U+2!==M&&(33===i.charCodeAt(U+2)&&(W+=i.substring(U,M+1)),v="",_=0)}}0===_&&(z+=v)}F=T,T=d,M++}if(0<(U=W.length)){if(B=c,0<P&&void 0!==(j=s(2,W,B,n,N,w,U,f,m,f))&&0===(W=j).length)return K+W+Y;if(W=B.join(",")+"{"+W+"}",0!=S*k){switch(2!==S||o(W,2)||(k=0),k){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(g,"::-webkit-input-$1")+W.replace(g,"::-moz-$1")+W.replace(g,":-ms-input-$1")+W}k=0}}return K+W+Y}(A,c,n,0,0);return 0<P&&void 0!==(i=s(-2,f,c,c,N,w,f.length,0,0,0))&&(f=i),k=0,w=N=1,f}var l=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,m=/zoo|gra/,p=/([,: ])(transform)/g,d=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,h=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,E=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,w=1,N=1,k=0,S=1,A=[],T=[],P=0,F=null,D=0;return i.use=function e(t){switch(t){case void 0:case null:P=T.length=0;break;default:if("function"==typeof t)T[P++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},i.set=c,void 0!==e&&c(e),i};function c(e){e&&i.current.insert(e+"}")}var i={current:null},l=function(e,t,n,r,o,a,s,l,u,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return i.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return i.current.insert(n[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(c)}};function u(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}n(32);var f,m=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}},p=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b=/[A-Z]|^ms/g,h=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},y=function(e){return null!=e&&"boolean"!=typeof e},v=(f={},function(e){return void 0===f[e]&&(f[e]=g(t=e)?t:t.replace(b,"-$&").toLowerCase()),f[e];var t}),O=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(h,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===d[e]||g(e)||"number"!=typeof t||0===t?t:t+"px"};function j(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return E={name:n.name,styles:n.styles,next:E},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)E={name:o.name,styles:o.styles,next:E},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=j(e,t,n[o],!1);else for(var a in n){var s=n[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":y(s)&&(r+=v(a)+":"+O(a,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=j(e,t,s,!1);switch(a){case"animation":case"animationName":r+=v(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var i=0;i<s.length;i++)y(s[i])&&(r+=v(a)+":"+O(a,s[i])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=E,s=n(e);return E=a,j(e,t,s,r)}}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var E,_=/label:\s*([^\s;\n{]+)\s*;/g,x=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";E=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=j(n,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=j(n,t,e[s],46===o.charCodeAt(o.length-1)),r&&(o+=a[s]);_.lastIndex=0;for(var c,i="";null!==(c=_.exec(o));)i+="-"+c[1];return{name:p(o)+i,styles:o,next:E}},C=Object.prototype.hasOwnProperty,w=Object(o.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new s(t),c={};r=e.container||document.head;var u,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(l),u=function(e,t,n,r){var a=t.name;i.current=n,o(e,t.styles),r&&(m.inserted[a]=!0)};var m={key:n,sheet:new a({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:u};return m}():null),N=Object(o.createContext)({}),k=w.Provider,S=function(e){var t=function(t,n){return Object(o.createElement)(w.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)},A="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",T=function(e,t){var n={};for(var r in t)C.call(t,r)&&(n[r]=t[r]);return n[A]=e,n},P=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var s=t[A],c=[a],i="";"string"==typeof t.className?i=u(e.registered,c,t.className):null!=t.className&&(i=t.className+" ");var l=x(c);m(e,l,"string"==typeof s),i+=e.key+"-"+l.name;var f={};for(var p in t)C.call(t,p)&&"css"!==p&&p!==A&&(f[p]=t[p]);return f.ref=r,f.className=i,Object(o.createElement)(s,f)},F=S((function(e,t,n){return"function"==typeof e.css?Object(o.createElement)(N.Consumer,null,(function(r){return P(t,e,r,n)})):P(t,e,null,n)})),D=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x(t)},R=function(e,t){var n=arguments;if(null==t||!C.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=F,a[1]=T(e,t);for(var s=2;s<r;s++)a[s]=n[s];return o.createElement.apply(null,a)},M=S((function(e,t){var n=e.styles;if("function"==typeof n)return Object(o.createElement)(N.Consumer,null,(function(e){var r=x([n(e)]);return Object(o.createElement)(B,{serialized:r,cache:t})}));var r=x([n]);return Object(o.createElement)(B,{serialized:r,cache:t})})),B=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&m(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(o.Component),L=function(){var e=D.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},U=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var s=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))s=e(a);else for(var c in s="",a)a[c]&&c&&(s&&(s+=" "),s+=c);break;default:s=a}s&&(o&&(o+=" "),o+=s)}}return o};function $(e,t,n){var r=[],o=u(e,r,n);return r.length<2?n:o+t(r)}var I=S((function(e,t){return Object(o.createElement)(N.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=x(n,t.registered);return m(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return $(t.registered,r,U(n))},theme:n};return e.children(o)}))}))},function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultToast=t.shrinkKeyframes=t.toastWidth=t.gutter=t.borderRadius=void 0;var r,o,a,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=(r=["from { height: 100%; } to { height: 0% }"],o=["from { height: 100%; } to { height: 0% }"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),i=n(3),l=((a=i)&&a.__esModule,n(16)),u=n(36),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(37)),m=n(20);function p(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var d=t.borderRadius=4,b=t.gutter=8,h=t.toastWidth=360,g=t.shrinkKeyframes=(0,l.keyframes)(c),y=function(e){var t=e.tag,n=p(e,["tag"]);return(0,l.jsx)(t,s({css:{border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1}},n))};y.defaultProps={tag:"span"};var v={success:{icon:u.CheckIcon,text:f.G500,fg:f.G300,bg:f.G50},error:{icon:u.FlameIcon,text:f.R500,fg:f.R300,bg:f.R50},warning:{icon:u.AlertIcon,text:f.Y500,fg:f.Y300,bg:f.Y50},info:{icon:u.InfoIcon,text:f.N400,fg:f.B200,bg:"white"}},O=function(e){return(0,l.jsx)("div",s({role:"button",className:"react-toast-notifications__toast__dismiss-button",css:{cursor:"pointer",flexShrink:0,opacity:.5,padding:b+"px "+1.5*b+"px",transition:"opacity 150ms",":hover":{opacity:1}}},e))},j=function(e){return(0,l.jsx)("div",s({className:"react-toast-notifications__toast__content",css:{flexGrow:1,fontSize:14,lineHeight:1.4,minHeight:40,padding:b+"px "+1.5*b+"px"}},e))},E=function(e){var t=e.autoDismissTimeout,n=e.opacity,r=e.isRunning,o=p(e,["autoDismissTimeout","opacity","isRunning"]);return(0,l.jsx)("div",s({className:"react-toast-notifications__toast__countdown",css:{animation:g+" "+t+"ms linear",animationPlayState:r?"running":"paused",backgroundColor:"rgba(0,0,0,0.1)",bottom:0,height:0,left:0,opacity:n,position:"absolute",width:"100%"}},o))},_=function(e){var t=e.appearance,n=e.autoDismiss,r=e.autoDismissTimeout,o=e.isRunning,a=v[t],s=a.icon;return(0,l.jsx)("div",{className:"react-toast-notifications__toast__icon-wrapper",css:{backgroundColor:a.fg,borderTopLeftRadius:d,borderBottomLeftRadius:d,color:a.bg,flexShrink:0,paddingBottom:b,paddingTop:b,position:"relative",overflow:"hidden",textAlign:"center",width:30}},(0,l.jsx)(E,{opacity:n?1:0,autoDismissTimeout:r,isRunning:o}),(0,l.jsx)(s,{className:"react-toast-notifications__toast__icon",css:{position:"relative",zIndex:1}}))};function x(e){var t=e.split("-");return{right:"translate3d(120%, 0, 0)",left:"translate3d(-120%, 0, 0)",bottom:"translate3d(0, 120%, 0)",top:"translate3d(0, -120%, 0)"}["center"===t[1]?t[0]:t[1]]}var C=function(e){return{entering:{transform:x(e)},entered:{transform:"translate3d(0,0,0)"},exiting:{transform:"scale(0.66)",opacity:0},exited:{transform:"scale(0.66)",opacity:0}}},w=function(e){var t=e.appearance,n=e.placement,r=e.transitionDuration,o=e.transitionState,a=p(e,["appearance","placement","transitionDuration","transitionState"]),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(_n=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&s.return&&s.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,i.useState)("auto"),2),u=c[0],f=c[1],m=(0,i.useRef)(null);return(0,i.useEffect)((function(){if("entered"===o){var e=m.current;f(e.offsetHeight+b)}"exiting"===o&&f(0)}),[o]),(0,l.jsx)("div",{ref:m,style:{height:u},css:{transition:"height "+(r-100)+"ms 100ms"}},(0,l.jsx)("div",s({className:"react-toast-notifications__toast react-toast-notifications__toast--"+t,css:s({backgroundColor:v[t].bg,borderRadius:d,boxShadow:"0 3px 8px rgba(0, 0, 0, 0.175)",color:v[t].text,display:"flex",marginBottom:b,maxWidth:"100%",transition:"transform "+r+"ms cubic-bezier(0.2, 0, 0, 1), opacity "+r+"ms",width:h},C(n)[o])},a)))},N=function(e){var t=e.appearance,n=void 0===t?"info":t,r=e.autoDismiss,o=e.autoDismissTimeout,a=e.children,c=e.isRunning,i=e.onDismiss,f=e.placement,m=e.transitionDuration,d=e.transitionState,b=e.onMouseEnter,h=e.onMouseLeave,g=p(e,["appearance","autoDismiss","autoDismissTimeout","children","isRunning","onDismiss","placement","transitionDuration","transitionState","onMouseEnter","onMouseLeave"]);return(0,l.jsx)(w,s({appearance:n,placement:f,transitionState:d,transitionDuration:m,onMouseEnter:b,onMouseLeave:h},g),(0,l.jsx)(_,{appearance:n,autoDismiss:r,autoDismissTimeout:o,isRunning:c}),(0,l.jsx)(j,null,a),i?(0,l.jsx)(O,{onClick:i},(0,l.jsx)(u.CloseIcon,{className:"react-toast-notifications__toast__dismiss-icon"}),(0,l.jsx)(y,{className:"react-toast-notifications__toast__dismiss-text"},"Close")):null)};t.DefaultToast=N,N.defaultProps={onDismiss:m.NOOP}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUEID=function(){var e=46656*Math.random()|0,t=46656*Math.random()|0;return(e=("000"+e.toString(36)).slice(-3))+(t=("000"+t.toString(36)).slice(-3))},t.NOOP=function(){}},function(e,t,n){"use strict";n.r(t),n.d(t,"CSSTransition",(function(){return O})),n.d(t,"ReplaceTransition",(function(){return T})),n.d(t,"SwitchTransition",(function(){return M})),n.d(t,"TransitionGroup",(function(){return N})),n.d(t,"Transition",(function(){return g})),n.d(t,"config",(function(){return f}));var r=n(6),o=n(9),a=n(5);function s(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(13);var c=n(3),i=n.n(c),l=n(10),u=n.n(l),f={disabled:!1},m=i.a.createContext(null),p="entering",d="entered",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus=p):o=d:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(a.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==d&&(t=p):n!==p&&n!==d||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],a=o[0],s=o[1],c=this.getTimeouts(),i=r?c.appear:c.enter;!e&&!n||f.disabled?this.safeSetState({status:d},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:p},(function(){t.props.onEntering(a,s),t.onTransitionEnd(i,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(a,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!f.disabled?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(o.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.a.createElement(m.Provider,{value:null},"function"==typeof n?n(e,r):i.a.cloneElement(i.a.Children.only(n),r))},t}(i.a.Component);function h(){}b.contextType=m,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},b.UNMOUNTED="unmounted",b.EXITED="exited",b.ENTERING=p,b.ENTERED=d,b.EXITING="exiting";var g=b,y=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=s(n.className,r):n.setAttribute("class",s(n.className&&n.className.baseVal||"",r)));var n,r}))},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Object(a.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&y(e,r),o&&y(e,o),a&&y(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Object(o.a)(e,["classNames"]));return i.a.createElement(g,Object(r.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.a.Component);v.defaultProps={classNames:""},v.propTypes={};var O=v;function j(e,t){var n=Object.create(null);return e&&c.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(c.isValidElement)(e)?t(e):e}(e)})),n}function E(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _(e,t){return j(e.children,(function(n){return Object(c.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:E(n,"appear",e),enter:E(n,"enter",e),exit:E(n,"exit",e)})}))}function x(e,t,n){var r=j(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var s in e)s in t?a.length&&(o[s]=a,a=[]):a.push(s);var c={};for(var i in t){if(o[i])for(r=0;r<o[i].length;r++){var l=o[i][r];c[o[i][r]]=n(l)}c[i]=n(i)}for(r=0;r<a.length;r++)c[a[r]]=n(a[r]);return c}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if(Object(c.isValidElement)(s)){var i=a in t,l=a in r,u=t[a],f=Object(c.isValidElement)(u)&&!u.props.in;!l||i&&!f?l||!i||f?l&&i&&Object(c.isValidElement)(u)&&(o[a]=Object(c.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:E(s,"exit",e),enter:E(s,"enter",e)})):o[a]=Object(c.cloneElement)(s,{in:!1}):o[a]=Object(c.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:E(s,"exit",e),enter:E(s,"enter",e)})}})),o}var C=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?_(e,r):x(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=j(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(o.a)(e,["component","childFactory"]),a=this.state.contextValue,s=C(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.a.createElement(m.Provider,{value:a},s):i.a.createElement(m.Provider,{value:a},i.a.createElement(t,r,s))},t}(i.a.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};var N=w,k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Object(a.a)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,a=i.a.Children.toArray(o)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:u.a.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Object(o.a)(e,["children","in"]),a=i.a.Children.toArray(t),s=a[0],c=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.a.createElement(N,r,n?i.a.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.a.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.a.Component);k.propTypes={};var S,A,T=k,P=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},F=((S={})["out-in"]=function(e){var t=e.current,n=e.changeState;return i.a.cloneElement(t,{in:!1,onExited:P(t,"onExited",(function(){n(p,null)}))})},S["in-out"]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.a.cloneElement(r,{in:!0,onEntered:P(r,"onEntered",(function(){n(p)}))})]},S),D=((A={})["out-in"]=function(e){var t=e.children,n=e.changeState;return i.a.cloneElement(t,{in:!0,onEntered:P(t,"onEntered",(function(){n(d,i.a.cloneElement(t,{in:!0}))}))})},A["in-out"]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.a.cloneElement(t,{in:!1,onExited:P(t,"onExited",(function(){r(d,i.a.cloneElement(n,{in:!0}))}))}),i.a.cloneElement(n,{in:!0})]},A),R=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:d,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===p&&"in-out"===e.mode?{status:p}:!t.current||((n=t.current)===(r=e.children)||i.a.isValidElement(n)&&i.a.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.a.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,s=o.current,c={children:n,current:s,changeState:this.changeState,status:a};switch(a){case p:e=D[r](c);break;case"exiting":e=F[r](c);break;case d:e=s}return i.a.createElement(m.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.a.Component);R.propTypes={},R.defaultProps={mode:"out-in"};var M=R},function(e,t,n){"use strict";(function(e){var r=n(3),o=n.n(r),a=n(5),s=n(13),c=n.n(s),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=o.a.createContext||function(e,t){var n,o,s="__create-react-context-"+(i["__global_unique_id__"]=(i.__global_unique_id__||0)+1)+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(a.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(s=o)?0!==a||1/a==1/s:a!=a&&s!=s)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!=(n|=0)&&this.emitter.set(e.value,n))}var a,s},r.render=function(){return this.props.children},n}(r.Component);u.childContextTypes=((n={})[s]=c.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(a.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},r.getValue=function(){return this.context[s]?this.context[s].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((o={})[s]=c.a.object,o),{Provider:u,Consumer:f}};t.a=u}).call(this,n(40))},function(e,t,n){var r=n(41);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],a=0;a<t.length;a++)o.push(e(t[a],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",f(r)),n)}(t,n,o):function(e,t,n){return m(a(e,n),t,n)}(t,n,o)},e.exports.parse=a,e.exports.compile=function(e,t){return c(a(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=m;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,s=0,c="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],m=n[1],p=n.index;if(c+=e.slice(s,p),s=p+f.length,m)c+=m[1];else{var d=e[s],b=n[2],h=n[3],g=n[4],y=n[5],v=n[6],O=n[7];c&&(r.push(c),c="");var j=null!=b&&null!=d&&d!==b,E="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||u,C=g||y;r.push({name:h||a++,prefix:b||"",delimiter:x,optional:_,repeat:E,partial:j,asterisk:!!O,pattern:C?l(C):O?".*":"[^"+i(x)+"]+?"})}}return s<e.length&&(c+=e.substr(s)),c&&r.push(c),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var a="",c=t||{},i=(o||{}).pretty?s:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var f,m=c[u.name];if(null==m){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(m)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(m)+"`");if(0===m.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<m.length;p++){if(f=i(m[p]),!n[l].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===p?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(m).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):i(m),!n[l].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');a+=u.prefix+f}}else a+=u}return a}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function m(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,s="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)s+=i(l);else{var m=i(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+m+p+")*"),s+=p=l.optional?l.partial?m+"("+p+")?":"(?:"+m+"("+p+"))?":m+"("+p+")"}}var d=i(n.delimiter||"/"),b=s.slice(-d.length)===d;return o||(s=(b?s.slice(0,-d.length):s)+"(?:"+d+"(?=$))?"),s+=a?"$":o&&b?"":"(?="+d+"|$)",u(new RegExp("^"+s,f(n)),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastContainer=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(16),s=((r=n(3))&&r.__esModule,n(21),n(19)),c={"top-left":{top:0,left:0},"top-center":{top:0,left:"50%",transform:"translateX(-50%)"},"top-right":{top:0,right:0},"bottom-left":{bottom:0,left:0},"bottom-center":{bottom:0,left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:0,right:0}};t.ToastContainer=function(e){var t=e.hasToasts,n=e.placement,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["hasToasts","placement"]);return(0,a.jsx)("div",o({className:"react-toast-notifications__container",css:o({boxSizing:"border-box",maxHeight:"100%",maxWidth:"100%",overflow:"hidden",padding:s.gutter,pointerEvents:t?null:"none",position:"fixed",zIndex:1e3},c[n])},r))}},function(e,t,n){"use strict";e.exports=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f,t.skeletonStyles=t.skeletonKeyframes=t.defaultHighlightColor=t.defaultBaseColor=void 0,(r=n(3))&&r.__esModule;var r,o=n(16);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e,t,n=(e=["\n 0% {\n background-position: -200px 0;\n }\n ","\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return i=function(){return n},n}t.defaultBaseColor="#eee",t.defaultHighlightColor="#f5f5f5";var l=function(e,t){return(0,o.keyframes)(i(),t>0?"".concat(Math.floor(1/(e+t)*e*100),"% {\n background-position: calc(200px + 100%) 0;\n }"):void 0)};t.skeletonKeyframes=l;var u=(0,o.css)("background-color:","#eee",";background-image:linear-gradient( 90deg,","#eee",",","#f5f5f5",",","#eee"," );background-size:200px 100%;background-repeat:no-repeat;border-radius:4px;display:inline-block;line-height:1;width:100%;;label:skeletonStyles;");function f(e){for(var t=e.count,n=e.duration,r=e.width,a=e.wrapper,c=e.height,i=e.circle,f=e.delay,m=e.style,p=e.className,d=[],b=0;b<t;b++){var h={};null!==r&&(h.width=r),null!==c&&(h.height=c),null!==r&&null!==c&&i&&(h.borderRadius="50%");var g="react-loading-skeleton";p&&(g+=" "+p),d.push((0,o.jsx)("span",{key:b,className:g,css:(0,o.css)(u," animation:",l(n,f)," ",n+f,"s ease-in-out infinite;label:Skeleton;"),style:s({},m,{},h)},""))}return(0,o.jsx)("span",null,a?d.map((function(e,t){return(0,o.jsx)(a,{key:t},e,"")})):d)}t.skeletonStyles=u,f.defaultProps={count:1,duration:1.2,width:null,wrapper:null,height:null,circle:!1,delay:0}},function(e,t,n){"use strict";var r=n(25),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function i(e){return r.isMemo(e)?s:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var o=p(n);o&&o!==d&&e(t,o,r)}var s=u(n);f&&(s=s.concat(f(n)));for(var c=i(t),b=i(n),h=0;h<s.length;++h){var g=s[h];if(!(a[g]||r&&r[g]||b&&b[g]||c&&c[g])){var y=m(n,g);try{l(t,g,y)}catch(e){}}}}return t}},,,,function(e,t,n){n(50),e.exports=n(44)},function(e,t,n){var r=n(33);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(35);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=t.InfoIcon=t.FlameIcon=t.CheckIcon=t.AlertIcon=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(r=n(3))&&r.__esModule?r:{default:r};function s(e){return{"aria-hidden":!0,height:16,width:e,viewBox:"0 0 "+e+" 16",style:{display:"inline-block",verticalAlign:"text-top",fill:"currentColor"}}}t.AlertIcon=function(e){return a.default.createElement("svg",o({},s(16),e),a.default.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},t.CheckIcon=function(e){return a.default.createElement("svg",o({},s(12),e),a.default.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"}))},t.FlameIcon=function(e){return a.default.createElement("svg",o({},s(12),e),a.default.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"}))},t.InfoIcon=function(e){return a.default.createElement("svg",o({},s(14),e),a.default.createElement("path",{fillRule:"evenodd",d:"M6.3 5.71a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 8.01c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V8v.01zM7 2.32C3.86 2.32 1.3 4.86 1.3 8c0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 1c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},t.CloseIcon=function(e){return a.default.createElement("svg",o({},s(14),e),a.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.R50="#FFEBE6",t.R75="#FFBDAD",t.R100="#FF8F73",t.R200="#FF7452",t.R300="#FF5630",t.R400="#DE350B",t.R500="#BF2600",t.Y50="#FFFAE6",t.Y75="#FFF0B3",t.Y100="#FFE380",t.Y200="#FFC400",t.Y300="#FFAB00",t.Y400="#FF991F",t.Y500="#FF8B00",t.G50="#E3FCEF",t.G75="#ABF5D1",t.G100="#79F2C0",t.G200="#57D9A3",t.G300="#36B37E",t.G400="#00875A",t.G500="#006644",t.B50="#DEEBFF",t.B75="#B3D4FF",t.B100="#4C9AFF",t.B200="#2684FF",t.B300="#0065FF",t.B400="#0052CC",t.B500="#0747A6",t.P50="#EAE6FF",t.P75="#C0B6F2",t.P100="#998DD9",t.P200="#8777D9",t.P300="#6554C0",t.P400="#5243AA",t.P500="#403294",t.T50="#E6FCFF",t.T75="#B3F5FF",t.T100="#79E2F2",t.T200="#00C7E6",t.T300="#00B8D9",t.T400="#00A3BF",t.T500="#008DA6",t.N0="#FFFFFF",t.N10="#FAFBFC",t.N20="#F4F5F7",t.N30="#EBECF0",t.N40="#DFE1E6",t.N50="#C1C7D0",t.N60="#B3BAC5",t.N70="#A5ADBA",t.N80="#97A0AF",t.N90="#8993A4",t.N100="#7A869A",t.N200="#6B778C",t.N300="#5E6C84",t.N400="#505F79",t.N500="#42526E",t.N600="#344563",t.N700="#253858",t.N800="#172B4D",t.N900="#091E42",t.N10A="rgba(9, 30, 66, 0.02)",t.N20A="rgba(9, 30, 66, 0.04)",t.N30A="rgba(9, 30, 66, 0.08)",t.N40A="rgba(9, 30, 66, 0.13)",t.N50A="rgba(9, 30, 66, 0.25)",t.N60A="rgba(9, 30, 66, 0.31)",t.N70A="rgba(9, 30, 66, 0.36)",t.N80A="rgba(9, 30, 66, 0.42)",t.N90A="rgba(9, 30, 66, 0.48)",t.N100A="rgba(9, 30, 66, 0.54)",t.N200A="rgba(9, 30, 66, 0.60)",t.N300A="rgba(9, 30, 66, 0.66)",t.N400A="rgba(9, 30, 66, 0.71)",t.N500A="rgba(9, 30, 66, 0.77)",t.N600A="rgba(9, 30, 66, 0.82)",t.N700A="rgba(9, 30, 66, 0.89)",t.N800A="rgba(9, 30, 66, 0.95)"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useToasts=t.withToastManager=t.ToastConsumer=t.ToastProvider=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),c=(r=s)&&r.__esModule?r:{default:r},i=n(10),l=n(21),u=n(39),f=n(24),m=n(19),p=n(20);function d(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g={Toast:m.DefaultToast,ToastContainer:f.ToastContainer},y=c.default.createContext(),v=y.Consumer,O=y.Provider,j=!("undefined"==typeof window||!window.document||!window.document.createElement);(t.ToastProvider=function(e){function t(){var e,n,r;b(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={toasts:[]},r.has=function(e){return!!r.state.toasts.length&&Boolean(r.state.toasts.filter((function(t){return t.id===e})).length)},r.onDismiss=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.NOOP;return function(){t(e),r.remove(e)}},r.add=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.NOOP,a=t.id?t.id:(0,p.generateUEID)(),s=function(){return n(a)};if(!r.has(a))return r.setState((function(n){var r=o({content:e,id:a},t);return{toasts:[].concat(d(n.toasts),[r])}}),s),a},r.remove=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.NOOP,n=function(){return t(e)};r.has(e)&&r.setState((function(t){return{toasts:t.toasts.filter((function(t){return t.id!==e}))}}),n)},r.removeAll=function(){r.state.toasts.length&&r.state.toasts.forEach((function(e){return r.remove(e.id)}))},r.update=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.NOOP,a=function(){return n(e)};r.has(e)&&r.setState((function(n){var r=n.toasts,a=r.findIndex((function(t){return t.id===e})),s=o({},r[a],t);return{toasts:[].concat(d(r.slice(0,a)),[s],d(r.slice(a+1)))}}),a)},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.autoDismiss,r=t.autoDismissTimeout,a=t.children,s=t.components,f=t.placement,m=t.portalTargetSelector,p=t.transitionDuration,d=o({},g,s),b=d.Toast,h=d.ToastContainer,y=this.add,v=this.remove,E=this.removeAll,_=this.update,x=Object.freeze(this.state.toasts),C=Boolean(x.length),w=j?m?document.querySelector(m):document.body:null;return c.default.createElement(O,{value:{add:y,remove:v,removeAll:E,update:_,toasts:x}},a,w?(0,i.createPortal)(c.default.createElement(h,{placement:f,hasToasts:C},c.default.createElement(l.TransitionGroup,{component:null},x.map((function(t){var a=t.appearance,s=t.autoDismiss,i=t.content,m=t.id,d=t.onDismiss,h=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["appearance","autoDismiss","content","id","onDismiss"]);return c.default.createElement(l.Transition,{appear:!0,key:m,mountOnEnter:!0,timeout:p,unmountOnExit:!0},(function(t){return c.default.createElement(u.ToastController,o({appearance:a,autoDismiss:void 0!==s?s:n,autoDismissTimeout:r,component:b,key:m,onDismiss:e.onDismiss(m,d),placement:f,transitionDuration:p,transitionState:t},h),i)}))})))),w):c.default.createElement(h,{placement:f,hasToasts:C}))}}]),t}(s.Component)).defaultProps={autoDismiss:!1,autoDismissTimeout:5e3,components:g,placement:"top-right",transitionDuration:220};var E=t.ToastConsumer=function(e){var t=e.children;return c.default.createElement(v,null,(function(e){return t(e)}))};t.withToastManager=function(e){return c.default.forwardRef((function(t,n){return c.default.createElement(E,null,(function(r){return c.default.createElement(e,o({toastManager:r},t,{ref:n}))}))}))},t.useToasts=function(){var e=(0,s.useContext)(y);if(!e)throw Error("The `useToasts` hook must be called from a descendent of the `ToastProvider`.");return{addToast:e.add,removeToast:e.remove,removeAllToasts:e.removeAll,updateToast:e.update,toastStack:e.toasts}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastController=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),c=(r=s)&&r.__esModule?r:{default:r},i=(n(21),n(20));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){var n=void 0,r=t,o=t;this.clear=function(){clearTimeout(n)},this.pause=function(){clearTimeout(n),o-=Date.now()-r},this.resume=function(){r=Date.now(),clearTimeout(n),n=setTimeout(e,o)},this.resume()}i.NOOP,i.NOOP,i.NOOP,(t.ToastController=function(e){function t(){var e,n,r;l(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={isRunning:Boolean(r.props.autoDismiss)},r.startTimer=function(){var e=r.props,t=e.autoDismiss,n=e.autoDismissTimeout,o=e.onDismiss;t&&(r.setState({isRunning:!0}),r.timeout=new f(o,n))},r.clearTimer=function(){r.timeout&&r.timeout.clear()},r.onMouseEnter=function(){r.setState({isRunning:!1},(function(){r.timeout&&r.timeout.pause()}))},r.onMouseLeave=function(){r.setState({isRunning:!0},(function(){r.timeout&&r.timeout.resume()}))},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.startTimer()}},{key:"componentDidUpdate",value:function(e){e.autoDismiss!==this.props.autoDismiss&&(this.props.autoDismiss?this.startTimer:this.clearTimer)()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"render",value:function(){var e=this.props,t=e.autoDismiss,n=e.autoDismissTimeout,r=e.component,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["autoDismiss","autoDismissTimeout","component"]),s=this.state.isRunning,l=t?this.onMouseEnter:i.NOOP,u=t?this.onMouseLeave:i.NOOP;return c.default.createElement(r,o({autoDismiss:t,autoDismissTimeout:n,isRunning:s,onMouseEnter:l,onMouseLeave:u},a))}}]),t}(s.Component)).defaultProps={autoDismiss:!1}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case m:case s:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function _(e){return E(e)===m}t.AsyncMode=f,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=s,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=i,t.StrictMode=c,t.Suspense=d,t.isAsyncMode=function(e){return _(e)||E(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===s},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===c},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===m||e===i||e===c||e===d||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===O||e.$$typeof===j||e.$$typeof===y)},t.typeOf=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(3)),o=n(16),a=n(26);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m,p,d,b=function(e){function t(){return c(this,t),l(this,u(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.color,n=e.highlightColor,r=e.children,a=(0,o.css)(".react-loading-skeleton{background-color:",t,";background-image:linear-gradient( 90deg,",t,",",n,",",t," );};label:SkeletonTheme;");return(0,o.jsx)("div",{css:a},r)}}])&&i(n.prototype,r),t}(r.Component);t.default=b,m=b,p="defaultProps",d={color:a.defaultBaseColor,highlightColor:a.defaultHighlightColor},p in m?Object.defineProperty(m,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):m[p]=d},function(e,t,n){"use strict";n.r(t)},,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getFontControls",(function(){return le})),n.d(r,"getFontControl",(function(){return ue})),n.d(r,"getApiKey",(function(){return fe}));var o={};n.r(o),n.d(o,"hydrateFontControls",(function(){return me})),n.d(o,"createFontControl",(function(){return pe})),n.d(o,"updateFontControl",(function(){return de})),n.d(o,"updateFontControlForceStyles",(function(){return be})),n.d(o,"deleteFontControl",(function(){return he})),n.d(o,"deleteAllFontControls",(function(){return ge})),n.d(o,"hydrateApiKey",(function(){return ye})),n.d(o,"updateApiKey",(function(){return ve}));var a={};n.r(a),n.d(a,"getFontControls",(function(){return je})),n.d(a,"getApiKey",(function(){return Ee}));var s=n(0),c=n(3),i=n.n(c),l=n(10),u=n.n(l),f=n(5),m=(n(13),n(6));function p(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function b(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var h=function(e,t){if(!e)throw new Error("Invariant failed")};function g(e){return"/"===e.charAt(0)?e:"/"+e}function y(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function O(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function j(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(m.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&p(e),s=t&&p(t),c=a||s;if(e&&p(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var i=o[o.length-1];n="."===i||".."===i||""===i}else n=!1;for(var l=0,u=o.length;u>=0;u--){var f=o[u];"."===f?d(o,u):".."===f?(d(o,u),l++):l&&(d(o,u),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&p(o[0])||o.unshift("");var m=o.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function E(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var _=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(e,t){t(window.confirm(e))}function C(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),_||h(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,c=void 0!==s&&s,i=a.getUserConfirmation,l=void 0===i?x:i,u=a.keyLength,f=void 0===u?6:u,p=e.basename?v(g(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return p&&(a=y(a,p)),j(a,r,n)}function b(){return Math.random().toString(36).substr(2,f)}var w=E();function N(e){Object(m.a)(U,e),U.length=n.length,w.notifyListeners(U.location,U.action)}function k(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(d(e.state))}function S(){T(d(C()))}var A=!1;function T(e){A?(A=!1,N()):w.confirmTransitionTo(e,"POP",l,(function(t){t?N({action:"POP",location:e}):function(e){var t=U.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,R(o))}(e)}))}var P=d(C()),F=[P.key];function D(e){return p+O(e)}function R(e){n.go(e)}var M=0;function B(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",k),o&&window.addEventListener("hashchange",S)):0===M&&(window.removeEventListener("popstate",k),o&&window.removeEventListener("hashchange",S))}var L=!1,U={length:n.length,action:"POP",location:P,createHref:D,push:function(e,t){var o=j(e,t,b(),U.location);w.confirmTransitionTo(o,"PUSH",l,(function(e){if(e){var t=D(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var i=F.indexOf(U.location.key),l=F.slice(0,i+1);l.push(o.key),F=l,N({action:"PUSH",location:o})}else window.location.href=t}}))},replace:function(e,t){var o=j(e,t,b(),U.location);w.confirmTransitionTo(o,"REPLACE",l,(function(e){if(e){var t=D(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var i=F.indexOf(U.location.key);-1!==i&&(F[i]=o.key),N({action:"REPLACE",location:o})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=w.setPrompt(e);return L||(B(1),L=!0),function(){return L&&(L=!1,B(-1)),t()}},listen:function(e){var t=w.appendListener(e);return B(1),function(){B(-1),t()}}};return U}var N=n(22),k=n(23),S=n.n(k),A=(n(25),n(9)),T=n(27),P=n.n(T),F=function(e){var t=Object(N.a)();return t.displayName="Router-History",t}(),D=function(e){var t=Object(N.a)();return t.displayName="Router",t}(),R=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(f.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(D.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(F.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}Object(f.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);function B(e){var t=e.message,n=e.when,r=void 0===n||n;return i.a.createElement(D.Consumer,null,(function(e){if(e||h(!1),!r||e.staticContext)return null;var n=e.history.block;return i.a.createElement(M,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var L={},U=0;function $(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(L[e])return L[e];var t=S.a.compile(e);return U<1e4&&(L[e]=t,U++),t}(e)(t,{pretty:!0})}function I(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(D.Consumer,null,(function(e){e||h(!1);var r=e.history,a=e.staticContext,s=o?r.push:r.replace,c=j(t?"string"==typeof n?$(n,t.params):Object(m.a)({},n,{pathname:$(n.pathname,t.params)}):n);return a?(s(c),null):i.a.createElement(M,{onMount:function(){s(c)},onUpdate:function(e,t){var n,r,o=j(t.to);n=o,r=Object(m.a)({},c,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=b(t),o=b(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1}(n.state,r.state)||s(c)},to:n})}))}var z={},W=0;function Y(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,s=n.strict,c=void 0!==s&&s,i=n.sensitive,l=void 0!==i&&i;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=z[n]||(z[n]={});if(r[e])return r[e];var o=[],a={regexp:S()(e,o,t),keys:o};return W<1e4&&(r[e]=a,W++),a}(n,{end:a,strict:c,sensitive:l}),o=r.regexp,s=r.keys,i=o.exec(e);if(!i)return null;var u=i[0],f=i.slice(1),m=e===u;return a&&!m?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:m,params:s.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var K=function(e){function t(){return e.apply(this,arguments)||this}return Object(f.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(D.Consumer,null,(function(t){t||h(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?Y(n.pathname,e.props):t.match,o=Object(m.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,l=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i.a.createElement(D.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?i.a.createElement(c,o):l?l(o):null:"function"==typeof s?s(o):null)}))},t}(i.a.Component);function G(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(A.a)(t,["wrappedComponentRef"]);return i.a.createElement(D.Consumer,null,(function(t){return t||h(!1),i.a.createElement(e,Object(m.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,P()(n,e)}i.a.Component,i.a.Component;var H=i.a.useContext;var V=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=w(t.props),t}return Object(f.a)(t,e),t.prototype.render=function(){return i.a.createElement(R,{history:this.history,children:this.props.children})},t}(i.a.Component);i.a.Component;var Q=function(e,t){return"function"==typeof e?e(t):e},q=function(e,t){return"string"==typeof e?j(e,null,null,t):e},X=function(e){return e},J=i.a.forwardRef;void 0===J&&(J=X);var Z=J((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Object(A.a)(e,["innerRef","navigate","onClick"]),s=a.target,c=Object(m.a)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=X!==J&&t||n,i.a.createElement("a",c)})),ee=J((function(e,t){var n=e.component,r=void 0===n?Z:n,o=e.replace,a=e.to,s=e.innerRef,c=Object(A.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(D.Consumer,null,(function(e){e||h(!1);var n=e.history,l=q(Q(a,e.location),e.location),u=l?n.createHref(l):"",f=Object(m.a)({},c,{href:u,navigate:function(){var t=Q(a,e.location);(o?n.replace:n.push)(t)}});return X!==J?f.ref=t||s:f.innerRef=s,i.a.createElement(r,f)}))})),te=function(e){return e},ne=i.a.forwardRef;void 0===ne&&(ne=te);var re=ne((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,a=void 0===o?"active":o,s=e.activeStyle,c=e.className,l=e.exact,u=e.isActive,f=e.location,p=e.sensitive,d=e.strict,b=e.style,g=e.to,y=e.innerRef,v=Object(A.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(D.Consumer,null,(function(e){e||h(!1);var n=f||e.location,o=q(Q(g,n),n),O=o.pathname,j=O&&O.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=j?Y(n.pathname,{path:j,exact:l,sensitive:p,strict:d}):null,_=!!(u?u(E,n):E),x=_?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,a):c,C=_?Object(m.a)({},b,{},s):b,w=Object(m.a)({"aria-current":_&&r||null,className:x,style:C,to:o},v);return te!==ne?w.ref=t||y:w.innerRef=y,i.a.createElement(ee,w)}))})),oe=n(11),ae=n(14),se=n(4),ce=n(12),ie=Object(se.combineReducers)({fontControls:(e={},t)=>{switch(t.type){case"CREATE_FONT_CONTROL":return{...e,[t.payload.id]:t.payload.fontControl};case"UPDATE_FONT_CONTROL":return{...e,[t.payload.id]:t.payload.fontControl};case"UPDATE_FONT_CONTROL_FORCE_STYLES":return{...e,[t.payload.id]:t.payload.fontControl};case"DELETE_FONT_CONTROL":let n={...e};return delete n[t.payload.id],n;case"DELETE_ALL_FONT_CONTROLS":case"HYDRATE_FONT_CONTROLS":return t.payload.fontControls;default:return e}},apiKey:(e="",t)=>{switch(t.type){case"UPDATE_API_KEY":case"HYDRATE_API_KEY":return t.payload.apiKey;default:return e}}});const le=e=>e.fontControls||{},ue=(e,t)=>e.fontControls[t]||{},fe=e=>e.apiKey||"",me=e=>({type:"HYDRATE_FONT_CONTROLS",payload:{fontControls:e}});function*pe({name:e,selectors:t,forceStyles:n,description:r,minAmount:o,minUnit:a,maxAmount:s,maxUnit:c}){const i=yield Object(ce.apiFetch)({path:"/wp/v2/easy-google-fonts",method:"POST",data:{title:e,status:"publish",meta:{control_selectors:t,control_description:r,force_styles:n,min_screen_amount:o||0,min_screen_unit:a,max_screen_amount:s||0,max_screen_unit:c}}});return{type:"CREATE_FONT_CONTROL",payload:{id:i.id,fontControl:i}}}function*de({id:e,name:t,selectors:n,forceStyles:r,description:o,minAmount:a,minUnit:s,maxAmount:c,maxUnit:i}){const l="/wp/v2/easy-google-fonts/"+e,u=yield Object(ce.apiFetch)({path:l,method:"POST",data:{title:t,meta:{control_selectors:n,control_description:o,force_styles:r,min_screen_amount:a||0,min_screen_unit:s,max_screen_amount:c||0,max_screen_unit:i}}});return{type:"UPDATE_FONT_CONTROL",payload:{id:u.id,fontControl:u}}}function*be({id:e,forceStyles:t}){const n="/wp/v2/easy-google-fonts/"+e;return{type:"UPDATE_FONT_CONTROL_FORCE_STYLES",payload:{id:e,fontControl:yield Object(ce.apiFetch)({path:n,method:"POST",data:{meta:{force_styles:t}}})}}}function*he(e){const t="/wp/v2/easy-google-fonts/"+e;return{type:"DELETE_FONT_CONTROL",payload:{id:e,deleteFontControl:yield Object(ce.apiFetch)({path:t,method:"DELETE"})}}}function*ge(){return{type:"DELETE_ALL_FONT_CONTROLS",payload:{completed:yield Object(ce.apiFetch)({path:"/easy-google-fonts/v1/font_controls",method:"DELETE"})}}}const ye=e=>({type:"HYDRATE_API_KEY",payload:{apiKey:e}});function*ve(e){return yield Object(ce.apiFetch)({path:"/easy-google-fonts/v1/api_key",method:"POST",data:{api_key:e}}),{type:"UPDATE_API_KEY",payload:{apiKey:e}}}var Oe=n(1);function*je(){const e=Object(ae.addQueryArgs)("/wp/v2/easy-google-fonts",{per_page:-1,order:"asc",orderby:"title",_fields:["id","title","meta"]}),t=yield Object(ce.apiFetch)({path:e});if(t){let e={};for(let n of t)e[n.id]=n;return me(e)}}function*Ee(){const e=Object(ae.addQueryArgs)("/easy-google-fonts/v1/api_key",{}),t=yield Object(ce.apiFetch)({path:e});if(t)return ye(t)}const _e="egf/font-controls";Object(se.registerStore)(_e,{reducer:ie,selectors:r,actions:o,controls:ce.controls,resolvers:a});var xe=e=>Object(ae.getQueryArg)(H(D).location.search,e),Ce=(e,t={})=>Object(ae.addQueryArgs)("/options-general.php",{page:"easy-google-fonts",screen:e,...t});const we=(e,t,n)=>Object(ae.getQueryArg)(t.search,"screen")===n;var Ne=G(()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("h1",{className:"wp-heading-inline"},Object(Oe.__)("Font Controls","easy-google-fonts")),Object(s.createElement)("a",{className:"page-title-action hide-if-no-customize ml-2",href:easy_google_fonts.admin_url+"customize.php?autofocus%5Bpanel%5D=egf_typography_panel&return=%2Fwp-admin%2Foptions-general.php?page=easy-google-fonts"},Object(Oe.__)("Manage with Live Preview","easy-google-fonts")),Object(s.createElement)("hr",{className:"wp-header-end"}),Object(s.createElement)("div",{className:"components-tab-panel__tabs my-3"},Object(s.createElement)(re,{to:Ce("create"),isActive:(e,t)=>we(0,t,"create"),className:"components-button components-tab-panel__tabs-item",activeClassName:"is-active"},Object(Oe.__)("Create","easy-google-fonts")),Object(s.createElement)(re,{to:Ce("edit"),isActive:(e,t)=>we(0,t,"edit"),className:"components-button components-tab-panel__tabs-item",activeClassName:"is-active"},Object(Oe.__)("Edit","easy-google-fonts")),Object(s.createElement)(re,{to:Ce("manage"),isActive:(e,t)=>we(0,t,"manage"),className:"components-button components-tab-panel__tabs-item",activeClassName:"is-active"},Object(Oe.__)("Manage","easy-google-fonts")),Object(s.createElement)(re,{to:Ce("settings"),isActive:(e,t)=>we(0,t,"settings"),className:"components-button components-tab-panel__tabs-item",activeClassName:"is-active"},Object(Oe.__)("Settings","easy-google-fonts"))))),ke=n(2),Se=()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"about__section"},Object(s.createElement)("div",{className:"column has-subtle-background-color"},Object(s.createElement)("h2",{className:"wp-people-group-title mb-5"},"Plugin developed by ",Object(s.createElement)("a",{href:"https://titaniumthemes.com"},"titanium themes"),"."),Object(s.createElement)("ul",{className:"wp-people-group"},Object(s.createElement)("li",{className:"wp-person",id:"wp-person-sunny"},Object(s.createElement)("a",{href:"https://profiles.wordpress.org/sunny_johal/",className:"web"},Object(s.createElement)("img",{src:"https://secure.gravatar.com/avatar/c07075163051ae1230672f76222c5ed5?s=80&d=mm&r=g",srcSet:"https://secure.gravatar.com/avatar/c07075163051ae1230672f76222c5ed5?s=160&d=mm&r=g 2x",className:"gravatar",alt:"Sunny Johal"}),"Sunny Johal"),Object(s.createElement)("span",{className:"title"},Object(Oe.__)("Release Lead","easy-google-fonts"))),Object(s.createElement)("li",{className:"wp-person",id:"wp-person-amit"},Object(s.createElement)("a",{href:"https://profiles.wordpress.org/amit_kayasth/",className:"web"},Object(s.createElement)("img",{src:"https://secure.gravatar.com/avatar/a605686ad5c0fc2dc3b22fafc71a457c?s=80&d=mm&r=g",srcSet:"https://secure.gravatar.com/avatar/a605686ad5c0fc2dc3b22fafc71a457c?s=160&d=mm&r=g 2x",className:"gravatar",alt:"Amit Kayasth"}),"Amit Kayasth"),Object(s.createElement)("span",{className:"title"},Object(Oe.__)("Release Lead","easy-google-fonts"))))))),Ae=()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"egf-about__section has-subtle-background-color is-feature pt-3 pb-5"},Object(s.createElement)("img",{style:{maxWidth:320},src:easy_google_fonts.image_url+"/src/images/main-pic.png",src:"https://titaniumthemes.com/wp-content/plugins/titanium-coming-soon-template/img/main-pic.png"}),Object(s.createElement)("h1",{style:{fontSize:30}},Object(Oe.__)("We're building something exciting.","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("A beautifully designed WordPress theme with a first class gutenberg editing experience.","easy-google-fonts")),Object(s.createElement)(ke.Button,{href:"https://titaniumthemes.com",target:"_blank",isPrimary:!0,className:"mt-4"},Object(Oe.__)("Find out more","easy-google-fonts"))),Object(s.createElement)("hr",null),Object(s.createElement)("div",{className:"about__section mb-0 pt-4 pb-0"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col"},Object(s.createElement)("h2",{className:"px-4 mt-3",style:{fontSize:30}},Object(Oe.__)("What's new in this release.","easy-google-fonts"))))),Object(s.createElement)("div",{className:"about__section has-4-columns pt-3 pb-4"},Object(s.createElement)("div",{className:"column"},Object(s.createElement)("span",{className:"material-icons mb-3",style:{color:"#9C27B0",fontSize:48}},"source"),Object(s.createElement)("h2",{className:"is-smaller-heading"},Object(Oe.__)("Complete plugin rewrite","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("The codebase has been completely rewritten, tested and simplified.","easy-google-fonts"))),Object(s.createElement)("div",{className:"column"},Object(s.createElement)("span",{className:"material-icons mb-3",style:{color:"#3F51B5",fontSize:48}},"speed"),Object(s.createElement)("h2",{className:"is-smaller-heading"},Object(Oe.__)("Big Performance Increase","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("New fast and efficent css style and selector output in the frontend.","easy-google-fonts"))),Object(s.createElement)("div",{className:"column"},Object(s.createElement)("span",{className:"material-icons mb-3",style:{color:"#009688",fontSize:48}},"computer"),Object(s.createElement)("h2",{className:"is-smaller-heading"},Object(Oe.__)("New Admin Screen","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("React, javascript and WordPress REST API powered admin screen.","easy-google-fonts"))),Object(s.createElement)("div",{className:"column"},Object(s.createElement)("span",{className:"material-icons mb-3",style:{color:"#4CAF50",fontSize:48}},"mood"),Object(s.createElement)("h2",{className:"is-smaller-heading"},Object(Oe.__)("Strong Usability Testing","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("The new User Interface has been designed and tested with a UX first design.","easy-google-fonts")))));const Te=()=>{const e=[{name:"whats-new",title:Object(Oe.__)("What's New","easy-google-fonts"),className:"egf-tab",content:Object(s.createElement)(Ae,null)},{name:"credits",title:Object(Oe.__)("Credits","easy-google-fonts"),className:"egf-tab",content:Object(s.createElement)(Se,null)},{name:"support",title:Object(Oe.__)("Support","easy-google-fonts"),className:"egf-tab",content:Object(s.createElement)(K,{path:"/",render:()=>(window.location="https://wordpress.org/support/plugin/easy-google-fonts/",Object(s.createElement)("h1",null,Object(Oe.__)("Redirecting to plugin support...","easy-google-fonts")))})},{name:"get-started",title:Object(Oe.__)("Get Started","easy-google-fonts"),className:"egf-tab",content:Object(s.createElement)(I,{to:"/themes.php?page=easy-google-fonts"})}];return Object(s.createElement)(ke.TabPanel,{className:"egf-about__header-tab-panel",activeClass:"egf-tab-active",tabs:e},e=>Object(s.createElement)("div",{className:"egf-about__header-tab-panel-content"},e.content))};var Pe=()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"egf-about__container container mt-5"},Object(s.createElement)("div",{className:"egf-about__header row align-items-center justify-content-center"},Object(s.createElement)("div",{className:"col-12"},Object(s.createElement)("div",{className:"egf-about__header-bg p-5"},Object(s.createElement)("div",{className:"egf-about__header-title pt-3"},Object(s.createElement)("p",null,Object(Oe.__)("Easy Google Fonts","easy-google-fonts"))),Object(s.createElement)("div",{className:"egf-about__header-text pt-3"},Object(s.createElement)("p",null,Object(Oe.__)("A google fonts theme integration plugin built by ","easy-google-fonts"),Object(s.createElement)("a",{href:"https://titaniumthemes.com",target:"_blank"},Object(Oe._x)("Titanium Themes","Plugin author","easy-google-fonts")),Object(s.createElement)("span",null,""+Object(Oe._x)("v2.0.3","Plugin version","easy-google-fonts"))))))),Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col"},Object(s.createElement)(Te,null),Object(s.createElement)("hr",null))),Object(s.createElement)("div",{className:"return-to-dashboard"},Object(s.createElement)(re,{to:"/options-general.php?page=easy-google-fonts"},Object(s.createElement)(ke.Button,{isPrimary:!0},Object(Oe.__)("Go to Settings → Easy Google Fonts","easy-google-fonts")))))),Fe=function(e){null!=e&&"function"!=typeof e&&h(!1);var t=Object(c.useRef)();Object(c.useEffect)((function(){t.current=function(t){var n=null==e?void 0:e(t);return"string"==typeof n?t.returnValue=n:t.defaultPrevented?t.returnValue="":void 0}}),[e]),Object(c.useEffect)((function(){var e=function(e){t.current(e)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[])},De=n(15);const Re="web"===s.Platform.OS,Me={px:{value:"px",label:Re?"px":Object(Oe.__)("Pixels (px)","easy-google-fonts"),default:"",a11yLabel:Object(Oe.__)("Pixels (px)","easy-google-fonts"),initial:16,min:0,max:1400,step:10},em:{value:"em",label:Re?"em":Object(Oe.__)("Relative to parent font size (em)","easy-google-fonts"),default:"",a11yLabel:Object(Oe._x)("ems","Relative to parent font size (em)","easy-google-fonts"),initial:1,min:0,max:87.5,step:.1},rem:{value:"rem",label:Re?"rem":Object(Oe.__)("Relative to root font size (rem)","easy-google-fonts"),default:"",a11yLabel:Object(Oe._x)("rems","Relative to root font size (rem)","easy-google-fonts"),initial:1,min:0,max:87.5,step:.1}},Be={px:{value:"px",label:Re?"px":Object(Oe.__)("Pixels (px)","easy-google-fonts"),default:"",a11yLabel:Object(Oe.__)("Pixels (px)","easy-google-fonts"),initial:16,min:0,max:1400,step:10},em:{value:"em",label:Re?"em":Object(Oe.__)("Relative to parent font size (em)","easy-google-fonts"),default:"",a11yLabel:Object(Oe._x)("ems","Relative to parent font size (em)","easy-google-fonts"),initial:1,min:0,max:87.5,step:.1},rem:{value:"rem",label:Re?"rem":Object(Oe.__)("Relative to root font size (rem)","easy-google-fonts"),default:"",a11yLabel:Object(Oe._x)("rems","Relative to root font size (rem)","easy-google-fonts"),initial:1,min:0,max:87.5,step:.1}};function Le(e,t){const n=String(e).trim();let r=parseFloat(n,10);r=isNaN(r)?"":r;const o=n.match(/[\d.\-\+]*\s*(.*)/)[1];let a=void 0!==o?o:"";if(a=a.toLowerCase(),function(e){return!Object(De.isEmpty)(e)&&e.length>1&&!1!==e}(t)){const e=t.find(e=>e.value===a);a=null==e?void 0:e.value}else a="px";return[r,a]}var Ue=n(7),$e=n.n(Ue),Ie=()=>Object(s.createElement)("div",null,Object(s.createElement)("div",{className:"container-fluid p-0"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-12 mb-3"},Object(s.createElement)($e.a,{height:42})),Object(s.createElement)("div",{className:"col"},Object(s.createElement)($e.a,{height:68,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:420,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:68,style:{marginBottom:0}}))))),ze=G(e=>{const{addToast:t}=Object(oe.useToasts)(),[n,r]=Object(s.useState)(!1),[o,a]=Object(s.useState)(""),[c,i]=Object(s.useState)(!1),[l,u]=Object(s.useState)(""),[f,m]=Object(s.useState)(!1),[p,d]=Object(s.useState)(0),[b,h]=Object(s.useState)("px"),[g,y]=Object(s.useState)(0),[v,O]=Object(s.useState)("px"),[j,E]=Object(s.useState)([]),_=j.length>0,x=Object(se.useSelect)(e=>(e(_e).getFontControls(),[e(_e).hasFinishedResolution("getFontControls")].every(e=>e)));Object(s.useEffect)(()=>{o&&i(!1)},[o]);const{createFontControl:C}=Object(se.useDispatch)(_e),w=async()=>{if(!n)if(o)try{r(!0);const n=await C({name:o,description:l,selectors:j,forceStyles:f,minAmount:p,minUnit:b,maxAmount:g,maxUnit:v});N(),e.history.push(""+Ce("edit",{fontControl:n.payload.fontControl.id})),t(Object(Oe.sprintf)(Object(Oe.__)("%s has been created.","easy-google-fonts"),n.payload.fontControl.title.rendered),{appearance:"success",autoDismiss:!0,placement:"bottom-right"})}catch(e){t(Object(Oe.sprintf)(Object(Oe.__)("Unable to create %s. Please try again.","easy-google-fonts"),o),{appearance:"error",autoDismiss:!0,placement:"bottom-right"}),r(!1)}else i(!0)},N=()=>{a(""),E([]),m(!1),u(""),d(0),h("px"),y(0),O("px")};Fe(()=>{if([""!==o,""!==l,!1!==f,""!==p,""!==g,0!==j.length].some(e=>e))return Object(Oe.__)("You have made changes to this font control that are not saved. Are you sure you want to leave this page?","easy-google-fonts")});let k=b||"px";"%"===b&&(k="percent");let S=v||"px";return"%"===v&&(S="percent"),x?Object(s.createElement)("div",null,Object(s.createElement)("div",{className:"container-fluid p-0"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-12 mb-3"},Object(s.createElement)(ke.Notice,{className:"m-0",status:"info",isDismissible:!1},Object(Oe.__)("Create a new customizer font control for your theme below and click the create font control button to save your changes.","easy-google-fonts")),c&&Object(s.createElement)(ke.Notice,{className:"m-0 mt-2",status:"error",isDismissible:!1},Object(Oe.__)("Please enter a valid name for your font control.","easy-google-fonts"))),Object(s.createElement)("div",{className:"col"},Object(s.createElement)(ke.Card,{className:"egf-settings"},Object(s.createElement)(ke.CardHeader,{className:"d-block"},Object(s.createElement)("div",{className:"row justify-content-between align-items-center"},Object(s.createElement)("div",{className:"col-6"},Object(s.createElement)(ke.TextControl,{className:"egf-settings__font-control-name",label:Object(Oe.__)("Font Control Name","easy-google-fonts"),value:o,onChange:e=>a(e)})),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isBusy:n,isPrimary:!0,onClick:w},Object(Oe.__)("Create Font Control","easy-google-fonts"))))),Object(s.createElement)(ke.CardBody,null,Object(s.createElement)("h3",null,Object(Oe.__)("Font Control CSS Selectors","easy-google-fonts")),Object(s.createElement)(ke.FormTokenField,{label:Object(Oe.__)("Add your CSS selectors below","easy-google-fonts"),value:j,placeholder:"Enter CSS selector",tokenizeOnSpace:!1,onChange:e=>E(e)}),_&&Object(s.createElement)(ke.Button,{isDestructive:!0,onClick:()=>E([])},Object(Oe.__)("Remove all selectors","easy-google-fonts")),Object(s.createElement)(ke.CardDivider,{className:"my-4"}),Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-md-6"},Object(s.createElement)("h3",null,Object(Oe.__)("Font Control Properties","easy-google-fonts")),Object(s.createElement)(ke.CheckboxControl,{className:"egf-settings__force-style egf-font-control-property",checked:f,label:Object(Oe.__)("Force Styles (Optional)","easy-google-fonts"),help:Object(Oe.__)("This will enable the important rule for any of the CSS styles generated for the selectors defined above. It is used to add more importance to a property/value than normal.","easy-google-fonts"),onChange:e=>m(e)}),Object(s.createElement)(ke.TextareaControl,{label:Object(Oe.__)("Customizer Description","easy-google-fonts"),className:"egf-settings__description egf-font-control-property",help:Object(Oe.__)("Description of the font control, displayed in the customizer interface.","easy-google-fonts"),value:l,onChange:e=>u(e)})),Object(s.createElement)("div",{className:"col-md-6"},Object(s.createElement)("h3",null,Object(Oe.__)("Media Query Settings","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("By default, any styles created by this font control will apply to all screen sizes for your theme. If you only want to apply styles to certain screen sizes you can adjust the settings below.","easy-google-fonts")),Object(s.createElement)(ke.Panel,{className:"my-4"},Object(s.createElement)(ke.PanelBody,{title:Object(Oe.__)("Min Screen","easy-google-fonts"),initialOpen:!1},Object(s.createElement)("p",{className:"description"},Object(Oe.__)("The minimum width of the browser window.","easy-google-fonts")),Object(s.createElement)(ke.RangeControl,{value:p,onChange:d,initialPosition:p,min:Me[k].min,max:Me[k].max,step:Me[k].step,renderTooltipContent:()=>`${p}${b}`,withInputField:!1}),Object(s.createElement)(ke.PanelRow,{className:"mt-2"},Object(s.createElement)(ke.__experimentalUnitControl,{min:Me[k].min,max:Me[k].max,step:Me[k].step,onChange:e=>{const[t,n]=Le(e,Object.values(Me));t>0&&(d(t),h(n))},onUnitChange:(e="px")=>{"%"===e&&(e="percent"),d(Me[k].initial),h(e)},value:`${p}${b}`,units:Object.values(Me)}),Object(s.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{d(""),h("px")}},Object(Oe.__)("Reset","easy-google-fonts")))),Object(s.createElement)(ke.PanelBody,{title:Object(Oe.__)("Max Screen","easy-google-fonts"),initialOpen:!1},Object(s.createElement)("p",{className:"description"},Object(Oe.__)("The maximum width of the browser window.","easy-google-fonts")),Object(s.createElement)(ke.RangeControl,{value:g,onChange:y,initialPosition:g,min:Be[S].min,max:Be[S].max,step:Be[S].step,renderTooltipContent:()=>`${g}${v}`,withInputField:!1}),Object(s.createElement)(ke.PanelRow,{className:"mt-2"},Object(s.createElement)(ke.__experimentalUnitControl,{min:Be[S].min,max:Be[S].max,step:Be[S].step,onChange:e=>{const[t,n]=Le(e,Object.values(Be));t>0&&(y(t),O(n))},onUnitChange:(e="px")=>{"%"===e&&(e="percent"),y(Be[S].initial),O(e)},value:`${g}${v}`,units:Object.values(Be)}),Object(s.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{y(""),O("px")}},Object(Oe.__)("Reset","easy-google-fonts")))))))),Object(s.createElement)(ke.CardFooter,{className:"d-block"},Object(s.createElement)("div",{className:"row justify-content-between"},Object(s.createElement)("div",{className:"col-auto"},Object(s.createElement)(ke.Button,{isDestructive:!0,onClick:()=>{confirm(Object(Oe._x)("Warning! You are about to permanently delete this font control. 'Cancel' to stop, 'OK' to delete.","User confirmation message to delete a font control.","easy-google-fonts"))&&(N(),t(Object(Oe.__)("Your font control has been deleted.","easy-google-fonts"),{appearance:"info",autoDismiss:!0,placement:"bottom-right"}))}},Object(Oe.__)("Delete Font Control","easy-google-fonts"))),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isBusy:n,isPrimary:!0,onClick:w},Object(Oe.__)("Create Font Control","easy-google-fonts")))))))))):Object(s.createElement)(Ie,null)}),We=G(e=>{const{selectedFontControlId:t}=e,[n,r]=Object(s.useState)(t),[o,a]=Object(s.useState)([]),c=Object(se.useSelect)(e=>e(_e).getFontControls());return Object(s.useEffect)(()=>a((e=>Object.keys(e).sort((t,n)=>{const r=e[t].title.rendered.toUpperCase(),o=e[n].title.rendered.toUpperCase();return r<o?-1:r>o?1:0}).map(t=>({label:e[t].title.rendered,value:t})))(c)),[c]),Object(s.createElement)(ke.Card,{className:"egf-font-control-selector"},Object(s.createElement)(ke.CardBody,{className:"row px-3 align-items-center"},Object(s.createElement)("div",{className:"col-12 col-sm-auto mb-2 mb-sm-0 pr-sm-2"},Object(s.createElement)("span",null,Object(Oe.__)("Select a font control to edit:","easy-google-fonts"))),Object(s.createElement)("div",{className:"col-12 col-sm-auto mb-2 mb-sm-0 px-sm-0"},Object(s.createElement)("div",{className:"d-flex no-wrap align-items-center"},Object(s.createElement)("div",{className:"col pl-0 pr-2"},Object(s.createElement)(ke.SelectControl,{options:o,value:n,onChange:e=>{r(e)},style:{minWidth:160,width:"100%",maxWidth:"100%"}})),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{e.history.push(Ce("edit",{fontControl:n}))}},Object(Oe.__)("Select","easy-google-fonts"))))),Object(s.createElement)("div",{className:"col-12 col-sm-auto pl-sm-2"},Object(s.createElement)("span",null,Object(s.createElement)(ee,{to:""+Ce("create")},Object(Oe.__)("or create a new font control","easy-google-fonts"))))))}),Ye=()=>Object(s.createElement)("div",null,Object(s.createElement)("div",{className:"container-fluid p-0"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-12 mb-3"},Object(s.createElement)($e.a,{height:70})),Object(s.createElement)("div",{className:"col"},Object(s.createElement)($e.a,{height:68,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:420,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:68,style:{marginBottom:0}}))))),Ke=G(e=>{const{addToast:t}=Object(oe.useToasts)(),n=Object(se.useSelect)(e=>(e(_e).getFontControls(),[e(_e).hasFinishedResolution("getFontControls")].every(e=>e))),r=Object(se.useSelect)(e=>e(_e).getFontControls());let o=xe("fontControl");if(!o&&n){const[e]=(a=r,Object.keys(a).sort((e,t)=>{const n=a[e].title.rendered.toUpperCase(),r=a[t].title.rendered.toUpperCase();return n<r?-1:n>r?1:0}));o=e}var a;Object(s.useEffect)(()=>{let t=!0;return n&&0===Object.keys(r).length&&e.history.push(Ce("create")),()=>{t=!1}},[r]);const c=Object(se.useSelect)(e=>e(_e).getFontControl(o)),[i,l]=Object(s.useState)(!1),[u,f]=Object(s.useState)(!1),[m,p]=Object(s.useState)(""),[d,b]=Object(s.useState)(!1),[h,g]=Object(s.useState)(""),[y,v]=Object(s.useState)(!1),[O,j]=Object(s.useState)(0),[E,_]=Object(s.useState)("px"),[x,C]=Object(s.useState)(0),[w,N]=Object(s.useState)("px"),[k,S]=Object(s.useState)([]),A=k.length>0;Object(s.useEffect)(()=>{if(l(!1),f(!1),Object.keys(c).length>0){const{control_selectors:e,control_description:t,force_styles:n,min_screen_amount:r,min_screen_unit:o,max_screen_amount:a,max_screen_unit:s}=c.meta;p(c.title.rendered),S(e),v(n),g(t),j(r),_(o),C(a),N(s)}},[c]);const{updateFontControl:T}=Object(se.useDispatch)(_e),P=async()=>{if(!i&&(m||b(!0),m))try{l(!0),await T({id:o,name:m,selectors:k,forceStyles:y,description:h,minAmount:O,minUnit:E,maxAmount:x,maxUnit:w}),t(Object(Oe.sprintf)(Object(Oe.__)("%s has been updated.","easy-google-fonts"),m),{appearance:"success",autoDismiss:!0,placement:"bottom-right"})}catch(e){t(Object(Oe.sprintf)(Object(Oe.__)("Unable to save changes to %s. Please try again.","easy-google-fonts"),m),{appearance:"error",autoDismiss:!0,placement:"bottom-right"}),l(!1)}},{deleteFontControl:F}=Object(se.useDispatch)(_e);Fe(()=>{if(u)return Object(Oe.__)("You have made changes to this font control that are not saved. Are you sure you want to leave this page?","easy-google-fonts")});let D=E||"px";"%"===E&&(D="percent");let R=w||"px";return"%"===w&&(R="percent"),n?Object(s.createElement)("div",null,Object(s.createElement)("div",{className:"container-fluid p-0"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-12 mb-3"},Object(s.createElement)(We,{selectedFontControlId:o})),d&&Object(s.createElement)("div",{className:"col-12 mb-3"},Object(s.createElement)(ke.Notice,{className:"m-0",status:"error",isDismissible:!1},Object(Oe.__)("Please enter a valid name for your font control.","easy-google-fonts"))),Object(s.createElement)("div",{className:"col"},Object(s.createElement)(ke.Card,{className:"egf-settings"},Object(s.createElement)(ke.CardHeader,{className:"d-block"},Object(s.createElement)("div",{className:"row justify-content-between align-items-center"},Object(s.createElement)("div",{className:"col-6"},Object(s.createElement)(ke.TextControl,{className:"egf-settings__font-control-name",label:Object(Oe.__)("Font Control Name","easy-google-fonts"),value:m,onChange:e=>{p(e),f(!0)}})),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isBusy:i,isPrimary:!0,onClick:P},Object(Oe.__)("Save Font Control","easy-google-fonts"))))),Object(s.createElement)(ke.CardBody,null,Object(s.createElement)("h3",null,Object(Oe.__)("Font Control CSS Selectors","easy-google-fonts")),Object(s.createElement)(ke.FormTokenField,{label:Object(Oe.__)("Add your CSS selectors below","easy-google-fonts"),value:k,placeholder:"Enter CSS selector",tokenizeOnSpace:!1,onChange:e=>{S(e),f(!0)}}),A&&Object(s.createElement)(ke.Button,{isDestructive:!0,onClick:()=>S([])},Object(Oe.__)("Remove all selectors","easy-google-fonts")),Object(s.createElement)(ke.CardDivider,{className:"my-4"}),Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-md-6"},Object(s.createElement)("h3",null,Object(Oe.__)("Font Control Properties","easy-google-fonts")),Object(s.createElement)(ke.CheckboxControl,{className:"egf-settings__force-style egf-font-control-property",checked:y,label:Object(Oe.__)("Force Styles (Optional)","easy-google-fonts"),help:Object(Oe.__)("This will enable the important rule for any of the CSS styles generated for the selectors defined above. It is used to add more importance to a property/value than normal.","easy-google-fonts"),onChange:e=>{v(e),f(!0)}}),Object(s.createElement)(ke.TextareaControl,{label:Object(Oe.__)("Customizer Description","easy-google-fonts"),className:"egf-settings__description egf-font-control-property",help:Object(Oe.__)("Description of the font control, displayed in the customizer interface.","easy-google-fonts"),value:h,onChange:e=>{g(e),f(!0)}})),Object(s.createElement)("div",{className:"col-md-6"},Object(s.createElement)("h3",null,Object(Oe.__)("Media Query Settings","easy-google-fonts")),Object(s.createElement)("p",null,Object(Oe.__)("By default, any styles created by this font control will apply to all screen sizes for your theme. If you only want to apply styles to certain screen sizes you can adjust the settings below.","easy-google-fonts")),Object(s.createElement)(ke.Panel,{className:"my-4"},Object(s.createElement)(ke.PanelBody,{title:Object(Oe.__)("Min Screen","easy-google-fonts"),initialOpen:!1},Object(s.createElement)("p",{className:"description"},Object(Oe.__)("The minimum width of the browser window.","easy-google-fonts")),Object(s.createElement)(ke.RangeControl,{value:O,onChange:e=>{j(e),f(!0)},initialPosition:O,min:Me[D].min,max:Me[D].max,step:Me[D].step,renderTooltipContent:()=>`${O}${E}`,withInputField:!1}),Object(s.createElement)(ke.PanelRow,{className:"mt-2"},Object(s.createElement)(ke.__experimentalUnitControl,{min:Me[D].min,max:Me[D].max,step:Me[D].step,onChange:e=>{const[t,n]=Le(e,Object.values(Me));t>0&&(j(t),_(n)),f(!0)},onUnitChange:(e="px")=>{"%"===e&&(e="percent"),j(Me[D].initial),_(e),f(!0)},value:`${O}${E}`,units:Object.values(Me)}),Object(s.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{j(""),_("px"),f(!0)}},Object(Oe.__)("Reset","easy-google-fonts")))),Object(s.createElement)(ke.PanelBody,{title:Object(Oe.__)("Max Screen","easy-google-fonts"),initialOpen:!1},Object(s.createElement)("p",{className:"description"},Object(Oe.__)("The maximum width of the browser window.","easy-google-fonts")),Object(s.createElement)(ke.RangeControl,{value:x,onChange:e=>{C(e),f(!0)},initialPosition:x,min:Be[R].min,max:Be[R].max,step:Be[R].step,renderTooltipContent:()=>`${x}${w}`,withInputField:!1}),Object(s.createElement)(ke.PanelRow,{className:"mt-2"},Object(s.createElement)(ke.__experimentalUnitControl,{min:Be[R].min,max:Be[R].max,step:Be[R].step,onChange:e=>{const[t,n]=Le(e,Object.values(Be));t>0&&(C(t),N(n)),f(!0)},onUnitChange:(e="px")=>{"%"===e&&(e="percent"),C(Be[R].initial),N(e),f(!0)},value:`${x}${w}`,units:Object.values(Be)}),Object(s.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{C(""),N("px"),f(!0)}},Object(Oe.__)("Reset","easy-google-fonts")))))))),Object(s.createElement)(ke.CardFooter,{className:"d-block"},Object(s.createElement)("div",{className:"row justify-content-between"},Object(s.createElement)("div",{className:"col-auto"},Object(s.createElement)(ke.Button,{isDestructive:!0,onClick:()=>{confirm(Object(Oe._x)("Warning! You are about to permanently delete this font control. 'Cancel' to stop, 'OK' to delete.","User confirmation message to delete a font control.","easy-google-fonts"))&&(async()=>{if(!i)try{l(!0),await F(o),e.history.push(Ce("edit")),t(Object(Oe.sprintf)(Object(Oe.__)("%s has been deleted.","easy-google-fonts"),m),{appearance:"info",autoDismiss:!0,placement:"bottom-right"})}catch(e){t(Object(Oe.sprintf)(Object(Oe.__)("Unable to delete %s. Please try again.","easy-google-fonts"),m),{appearance:"error",autoDismiss:!0,placement:"bottom-right"}),l(!1)}})()}},Object(Oe.__)("Delete Font Control","easy-google-fonts"))),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isBusy:i,isPrimary:!0,onClick:P},Object(Oe.__)("Save Font Control","easy-google-fonts"))))))))),Object(s.createElement)(B,{when:u,message:Object(Oe.__)("You have made changes to this font control that are not saved. Are you sure you want to leave this page?","easy-google-fonts"),beforeUnload:!0})):Object(s.createElement)(Ye,null)}),Ge=()=>Object(s.createElement)("div",null,Object(s.createElement)($e.a,{height:62,style:{marginBottom:16}}),Object(s.createElement)($e.a,{height:51,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:72,style:{marginBottom:1}}),Object(s.createElement)($e.a,{height:72,style:{marginBottom:1}})),He=G(e=>{const{appendDivider:t,fontControlId:n,selectors:r,fontControlTitle:o,forceStyles:a,minQuery:c,maxQuery:i}=e,[l,u]=Object(s.useState)(!1),{addToast:f}=Object(oe.useToasts)(),{deleteFontControl:m,updateFontControlForceStyles:p}=Object(se.useDispatch)(_e),d=c||i;return Object(s.createElement)("div",{className:"egf-manage-font-controls__font-control"},Object(s.createElement)("div",{className:"row align-items-center"},Object(s.createElement)("div",{className:"col-4"},Object(s.createElement)("h4",{className:"egf-manage-font-controls__font-control-name mt-0 mb-1"},Object(s.createElement)(ee,{to:""+Ce("edit",{fontControl:n})},o)),Object(s.createElement)("div",{className:"egf-manage-font-controls__font-control-actions"},Object(s.createElement)(ee,{to:""+Ce("edit",{fontControl:n})},Object(Oe.__)("Edit","easy-google-fonts"))," ","|"," ",Object(s.createElement)("a",{href:"#",onClick:async e=>{e.preventDefault(),confirm(Object(Oe._x)("Warning! You are about to permanently delete this font control. 'Cancel' to stop, 'OK' to delete.","User confirmation message to delete a font control.","easy-google-fonts"))&&(u(!0),await m(n),f(Object(Oe.sprintf)(Object(Oe.__)("%s has been deleted.","easy-google-fonts"),o),{appearance:"info",autoDismiss:!0,placement:"bottom-right"}))},disabled:l},Object(Oe.__)("Delete","easy-google-fonts")))),Object(s.createElement)("div",{className:"col"},r.map((e,t)=>Object(s.createElement)("code",{key:t},e))),Object(s.createElement)("div",{className:"col"},d?Object(s.createElement)("div",{className:"m-0"},Object(s.createElement)("span",{className:"dashicons dashicons-desktop mr-2"}),c&&Object(s.createElement)("code",{className:"d-inline-block mr-1 mb-2",style:{borderRadius:2}},Object(Oe.sprintf)(Object(Oe.__)("Min: %s","easy-google-fonts"),c)),i&&Object(s.createElement)("code",{className:"d-inline-block mr-1 mb-2",style:{borderRadius:2}},Object(Oe.sprintf)(Object(Oe.__)("Max: %s","easy-google-fonts"),i))):Object(s.createElement)("div",{className:"m-0"},Object(s.createElement)("span",{className:"dashicons dashicons-desktop mr-2"}),Object(s.createElement)("code",{className:"d-inline-block mr-1 mb-2",style:{borderRadius:2}},Object(Oe.__)("All Screens")))),Object(s.createElement)("div",{className:"col"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col"},Object(s.createElement)(ke.CheckboxControl,{className:"egf-settings__force-style egf-font-control-property",checked:a,label:Object(Oe.__)("Force Styles","easy-google-fonts"),onChange:async e=>{u(!0),await p({id:n,forceStyles:e}),u(!1),f(Object(Oe.sprintf)(Object(Oe.__)("%s has been updated.","easy-google-fonts"),o),{appearance:"success",autoDismiss:!0,placement:"bottom-right"})}})),l&&Object(s.createElement)("div",{className:"col-auto pl-0"},Object(s.createElement)(ke.Spinner,null))))),t?Object(s.createElement)(ke.CardDivider,{className:"my-3"}):null)}),Ve=G(()=>{const[e,t]=Object(s.useState)(!1),n=Object(se.useSelect)(e=>e(_e).getFontControls()),r=Object(se.useSelect)(e=>e(_e).hasFinishedResolution("getFontControls")),{addToast:o}=Object(oe.useToasts)(),{deleteAllFontControls:a}=Object(se.useDispatch)(_e),c=(e=>Object.keys(e).sort((t,n)=>{const r=e[t].title.rendered.toUpperCase(),o=e[n].title.rendered.toUpperCase();return r<o?-1:r>o?1:0}))(n).map((e,t,r)=>{const o=t===r.length-1,{control_selectors:a,force_styles:c,min_screen_amount:i,min_screen_unit:l,max_screen_amount:u,max_screen_unit:f}=n[e].meta;return Object(s.createElement)(He,{key:e,selectors:a,fontControlId:e,fontControlTitle:n[e].title.rendered,forceStyles:c,minQuery:i?`${i}${l}`:"",maxQuery:u?`${u}${f}`:"",appendDivider:!o})});return r?Object(s.createElement)("div",null,Object(s.createElement)(ke.Card,{className:"mb-3"},Object(s.createElement)(ke.CardBody,{className:"d-block py-0 px-3"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col"},Object(s.createElement)("p",null,Object(s.createElement)("span",{className:"d-inline-block mr-2"},Object(Oe.__)("Manage your customizer font controls here or","easy-google-fonts")),Object(s.createElement)(ke.Button,{isPrimary:!0,onClick:()=>props.history.push(Ce("create"))},Object(Oe._x)("Create a new Font Control","Create font control button text on manage font controls screen.","easy-google-fonts"))))))),Object(s.createElement)(ke.Card,{className:"egf-manage-font controls"},Object(s.createElement)(ke.CardHeader,{className:"d-block px-3"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-4"},Object(Oe.__)("Font Control","easy-google-fonts")),Object(s.createElement)("div",{className:"col"},Object(Oe.__)("CSS Selectors","easy-google-fonts")),Object(s.createElement)("div",{className:"col"},Object(Oe.__)("Media Query Settings","easy-google-fonts")),Object(s.createElement)("div",{className:"col"},Object(Oe.__)("Force Styles (Optional)","easy-google-fonts")))),Object(s.createElement)(ke.CardBody,{className:"px-3"},0===c.length&&Object(s.createElement)("p",null,Object(Oe.__)("No font controls exist.","easy-google-fonts")," ",Object(s.createElement)(ee,{to:""+Ce("create")},Object(Oe.__)("Create your first font control","easy-google-fonts"))),c)),Object.keys(n).length>0&&Object(s.createElement)("div",{className:"egf-manage-font-controls d-flex align-items-center mt-3"},Object(s.createElement)(ke.Button,{isDestructive:!0,className:"egf-manage-font-controls-delete",onClick:async()=>{if(confirm(Object(Oe._x)("Warning! You are about to permanently delete all font controls. 'Cancel' to stop, 'OK' to delete.","User confirmation message to delete all font controls.","easy-google-fonts"))){t(!0);try{await a(),t(!1),o(Object(Oe.__)("All font controls have been deleted.","easy-google-fonts"),{appearance:"info",autoDismiss:!0,placement:"bottom-right"})}catch(e){t(!1)}}},disabled:e},Object(Oe._x)("Delete All Font Controls","Button text to delete all font controls.","easy-google-fonts")),e&&Object(s.createElement)(ke.Spinner,null))):Object(s.createElement)(Ge,null)});n(17);var Qe=()=>Object(s.createElement)("div",null,Object(s.createElement)($e.a,{height:62,style:{marginBottom:16}}),Object(s.createElement)($e.a,{height:42,style:{marginBottom:16}}),Object(s.createElement)($e.a,{height:114,style:{marginBottom:1}})),qe=G(()=>{const{addToast:e}=Object(oe.useToasts)(),[t,n]=Object(s.useState)(!1),[r,o]=Object(s.useState)(!1),[a,c]=Object(s.useState)(""),[i,l]=Object(s.useState)(!1),u=Object(se.useSelect)(e=>(e(_e).getApiKey(),[e(_e).hasFinishedResolution("getApiKey")].every(e=>e))),f=Object(se.useSelect)(e=>e(_e).getApiKey());Object(s.useEffect)(()=>{f&&c(f)},[u]),Object(s.useEffect)(()=>{a&&fetch("https://www.googleapis.com/webfonts/v1/webfonts?sort=alpha&key="+a).then(e=>{l(200===e.status),t&&200===e.status&&p()})},[a]);const{updateApiKey:m}=Object(se.useDispatch)(_e),p=async()=>{if(!r)try{o(!0),await m(a),e(Object(Oe.__)("Your API key has been saved.","easy-google-fonts"),{appearance:"success",autoDismiss:!0,placement:"bottom-right"}),n(!1),o(!1),a||l(!1)}catch(t){e(Object(Oe.__)("Unable to save your API key. Please try again.","easy-google-fonts"),{appearance:"error",autoDismiss:!0,placement:"bottom-right"}),o(!1)}};return Fe(()=>{if(t)return Object(Oe.__)("You have made changes to the settings that are not saved. Are you sure you want to leave this page?","easy-google-fonts")}),u?Object(s.createElement)("div",null,Object(s.createElement)(ke.Card,{className:"mb-3"},Object(s.createElement)(ke.CardBody,{className:"d-block py-0 px-3"},Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col"},Object(s.createElement)("p",null,Object(s.createElement)("span",{className:"d-inline-block mr-2"},Object(Oe.__)("Manage your plugin settings here or","easy-google-fonts")),Object(s.createElement)(ke.Button,{isPrimary:!0,onClick:()=>props.history.push(Ce("create"))},Object(Oe._x)("Create a new Font Control","Create font control button text on manage font controls screen.","easy-google-fonts"))))))),Object(s.createElement)("div",{className:"row"},Object(s.createElement)("div",{className:"col-12 mb-3"},!i&&Object(s.createElement)(ke.Notice,{className:"m-0",status:"info",isDismissible:!1},Object(Oe.__)("Please enter a valid google API key.","easy-google-fonts")),i&&Object(s.createElement)(ke.Notice,{className:"m-0",status:"success",isDismissible:!1},Object(Oe.__)("Your API key is valid and your site will automatically fetch the latest fonts from google.","easy-google-fonts")))),Object(s.createElement)(ke.Card,null,Object(s.createElement)(ke.CardHeader,{className:"d-block"},Object(s.createElement)("div",{className:"row justify-content-between align-items-center"},Object(s.createElement)("div",{className:"col-6"},Object(s.createElement)(ke.TextControl,{className:"egf-settings__api-key",label:Object(Oe.__)("Google API Key","easy-google-fonts"),help:Object(Oe.__)("Your site will fetch the latest fonts from google automatically once you enter a valid api key.","easy-google-fonts"),value:a,onChange:e=>{c(e.trim()),n(!0)}})),Object(s.createElement)("div",{className:"col-auto px-0"},Object(s.createElement)(ke.Button,{isBusy:r,isPrimary:!0,onClick:p},Object(Oe.__)("Save API Key","easy-google-fonts")))))),Object(s.createElement)(B,{when:t,message:Object(Oe.__)("You have made changes to the settings that are not saved. Are you sure you want to leave this page?","easy-google-fonts"),beforeUnload:!0})):Object(s.createElement)(Qe,null)}),Xe=function(){switch(xe("screen")){case"about":return Object(s.createElement)("div",null,Object(s.createElement)(Pe,null));case"create":return Object(s.createElement)("div",null,Object(s.createElement)(Ne,null),Object(s.createElement)(ze,null));case"edit":return Object(s.createElement)("div",null,Object(s.createElement)(Ne,null),Object(s.createElement)(Ke,null));case"manage":return Object(s.createElement)("div",null,Object(s.createElement)(Ne,null),Object(s.createElement)(Ve,null));case"settings":return Object(s.createElement)("div",null,Object(s.createElement)(Ne,null),Object(s.createElement)(qe,null));default:let e=easy_google_fonts.num_font_controls>0?"edit":"create";return Object(s.createElement)("div",null,Object(s.createElement)(I,{to:""+Ce(e)}))}};u.a.render(Object(s.createElement)(()=>(Object(se.useSelect)(e=>e(_e).getFontControls()),Object(se.useSelect)(e=>e(_e).getApiKey()),Object(s.createElement)(V,{basename:Object(ae.getPath)(easy_google_fonts.admin_url)},Object(s.createElement)(oe.ToastProvider,{autoDismissTimeout:4500,placement:"bottom-right"},Object(s.createElement)(Xe,null)))),null),document.getElementById("egf-root"))}]);
Save Changes
Rename File
Rename