/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
really-simple-ssl
/
settings
/
build
/
Upload File
HOME
!function(){var e={669:function(e,t,s){e.exports=s(609)},448:function(e,t,s){"use strict";var n=s(867),r=s(26),l=s(372),a=s(327),i=s(97),o=s(109),c=s(985),d=s(61),u=s(655),p=s(263);e.exports=function(e){return new Promise((function(t,s){var h,m=e.data,g=e.headers,f=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(m)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+w)}var E=i(e.baseURL,e.url);function C(){if(b){var n="getAllResponseHeaders"in b?o(b.getAllResponseHeaders()):null,l={data:f&&"text"!==f&&"json"!==f?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};r((function(e){t(e),v()}),(function(e){s(e),v()}),l),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(s(d("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){s(d("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),s(d(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var _=(e.withCredentials||c(E))&&e.xsrfCookieName?l.read(e.xsrfCookieName):void 0;_&&(g[e.xsrfHeaderName]=_)}"setRequestHeader"in b&&n.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),f&&"json"!==f&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(s(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null),b.send(m)}))}},609:function(e,t,s){"use strict";var n=s(867),r=s(849),l=s(321),a=s(185),i=function e(t){var s=new l(t),i=r(l.prototype.request,s);return n.extend(i,l.prototype,s),n.extend(i,s),i.create=function(s){return e(a(t,s))},i}(s(655));i.Axios=l,i.Cancel=s(263),i.CancelToken=s(972),i.isCancel=s(502),i.VERSION=s(288).version,i.all=function(e){return Promise.all(e)},i.spread=s(713),i.isAxiosError=s(268),e.exports=i,e.exports.default=i},263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:function(e,t,s){"use strict";var n=s(263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var s=this;this.promise.then((function(e){if(s._listeners){var t,n=s._listeners.length;for(t=0;t<n;t++)s._listeners[t](e);s._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){s.subscribe(e),t=e})).then(e);return n.cancel=function(){s.unsubscribe(t)},n},e((function(e){s.reason||(s.reason=new n(e),t(s.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,s){"use strict";var n=s(867),r=s(327),l=s(782),a=s(572),i=s(185),o=s(875),c=o.validators;function d(e){this.defaults=e,this.interceptors={request:new l,response:new l}}d.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var s=t.transitional;void 0!==s&&o.assertOptions(s,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var l,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(d),l=Promise.resolve(t);u.length;)l=l.then(u.shift(),u.shift());return l}for(var p=t;n.length;){var h=n.shift(),m=n.shift();try{p=h(p)}catch(e){m(e);break}}try{l=a(p)}catch(e){return Promise.reject(e)}for(;d.length;)l=l.then(d.shift(),d.shift());return l},d.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=i(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,s){return this.request(i(s||{},{method:e,url:t,data:(s||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,s,n){return this.request(i(n||{},{method:e,url:t,data:s}))}})),e.exports=d},782:function(e,t,s){"use strict";var n=s(867);function r(){this.handlers=[]}r.prototype.use=function(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},97:function(e,t,s){"use strict";var n=s(793),r=s(303);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},61:function(e,t,s){"use strict";var n=s(481);e.exports=function(e,t,s,r,l){var a=new Error(e);return n(a,t,s,r,l)}},572:function(e,t,s){"use strict";var n=s(867),r=s(527),l=s(502),a=s(655),i=s(263);function o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i("canceled")}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return l(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,s,n,r){return e.config=t,s&&(e.code=s),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:function(e,t,s){"use strict";var n=s(867);e.exports=function(e,t){t=t||{};var s={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function l(s){return n.isUndefined(t[s])?n.isUndefined(e[s])?void 0:r(void 0,e[s]):r(e[s],t[s])}function a(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function i(s){return n.isUndefined(t[s])?n.isUndefined(e[s])?void 0:r(void 0,e[s]):r(void 0,t[s])}function o(s){return s in t?r(e[s],t[s]):s in e?r(void 0,e[s]):void 0}var c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||l,r=t(e);n.isUndefined(r)&&t!==o||(s[e]=r)})),s}},26:function(e,t,s){"use strict";var n=s(61);e.exports=function(e,t,s){var r=s.config.validateStatus;s.status&&r&&!r(s.status)?t(n("Request failed with status code "+s.status,s.config,null,s.request,s)):e(s)}},527:function(e,t,s){"use strict";var n=s(867),r=s(655);e.exports=function(e,t,s){var l=this||r;return n.forEach(s,(function(s){e=s.call(l,e,t)})),e}},655:function(e,t,s){"use strict";var n=s(867),r=s(16),l=s(481),a={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(o=s(448)),o),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(i(t,"application/json"),function(e,t,s){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,s=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!s&&"json"===this.responseType;if(a||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw l(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},288:function(e){e.exports={version:"0.25.0"}},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var s=new Array(arguments.length),n=0;n<s.length;n++)s[n]=arguments[n];return e.apply(t,s)}}},327:function(e,t,s){"use strict";var n=s(867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,s){if(!t)return e;var l;if(s)l=s(t);else if(n.isURLSearchParams(t))l=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),l=a.join("&")}if(l){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,s){"use strict";var n=s(867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,s,r,l,a){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(s)&&i.push("expires="+new Date(s).toGMTString()),n.isString(r)&&i.push("path="+r),n.isString(l)&&i.push("domain="+l),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:function(e,t,s){"use strict";var n=s(867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},985:function(e,t,s){"use strict";var n=s(867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function r(e){var n=e;return t&&(s.setAttribute("href",n),n=s.href),s.setAttribute("href",n),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return e=r(window.location.href),function(t){var s=n.isString(t)?r(t):t;return s.protocol===e.protocol&&s.host===e.host}}():function(){return!0}},16:function(e,t,s){"use strict";var n=s(867);e.exports=function(e,t){n.forEach(e,(function(s,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=s,delete e[n])}))}},109:function(e,t,s){"use strict";var n=s(867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,s,l,a={};return e?(n.forEach(e.split("\n"),(function(e){if(l=e.indexOf(":"),t=n.trim(e.substr(0,l)).toLowerCase(),s=n.trim(e.substr(l+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([s]):a[t]?a[t]+", "+s:s}})),a):a}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:function(e,t,s){"use strict";var n=s(288).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}}));var l={};r.transitional=function(e,t,s){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(s?". "+s:"")}return function(s,n,a){if(!1===e)throw new Error(r(n," has been removed"+(t?" in "+t:"")));return t&&!l[n]&&(l[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,n,a)}},e.exports={assertOptions:function(e,t,s){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var l=n[r],a=t[l];if(a){var i=e[l],o=void 0===i||a(i,l,e);if(!0!==o)throw new TypeError("option "+l+" must be "+o)}else if(!0!==s)throw Error("Unknown option "+l)}},validators:r}},867:function(e,t,s){"use strict";var n=s(849),r=Object.prototype.toString;function l(e){return Array.isArray(e)}function a(e){return void 0===e}function i(e){return"[object ArrayBuffer]"===r.call(e)}function o(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===r.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:l,isArrayBuffer:i,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===r.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&i(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:d,isStream:function(e){return o(e)&&d(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===r.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function s(s,n){c(t[n])&&c(s)?t[n]=e(t[n],s):c(s)?t[n]=e({},s):l(s)?t[n]=s.slice():t[n]=s}for(var n=0,r=arguments.length;n<r;n++)u(arguments[n],s);return t},extend:function(e,t,s){return u(t,(function(t,r){e[r]=s&&"function"==typeof t?n(t,s):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},679:function(e,t,s){"use strict";var n=s(296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return n.isMemo(e)?a:i[e.$$typeof]||r}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,s,n){if("string"!=typeof s){if(m){var r=h(s);r&&r!==m&&e(t,r,n)}var a=d(s);u&&(a=a.concat(u(s)));for(var i=o(t),g=o(s),f=0;f<a.length;++f){var v=a[f];if(!(l[v]||n&&n[v]||g&&g[v]||i&&i[v])){var b=p(s,v);try{c(t,v,b)}catch(e){}}}}return t}},103:function(e,t){"use strict";var s="function"==typeof Symbol&&Symbol.for,n=s?Symbol.for("react.element"):60103,r=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,a=s?Symbol.for("react.strict_mode"):60108,i=s?Symbol.for("react.profiler"):60114,o=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,u=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,h=s?Symbol.for("react.suspense"):60113,m=s?Symbol.for("react.suspense_list"):60120,g=s?Symbol.for("react.memo"):60115,f=s?Symbol.for("react.lazy"):60116,v=s?Symbol.for("react.block"):60121,b=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case u:case l:case i:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case f:case g:case o:return e;default:return t}}case r:return t}}}function C(e){return E(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=o,t.Element=n,t.ForwardRef=p,t.Fragment=l,t.Lazy=f,t.Memo=g,t.Portal=r,t.Profiler=i,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||E(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===l},t.isLazy=function(e){return E(e)===f},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===u||e===i||e===a||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===o||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},296:function(e,t,s){"use strict";e.exports=s(103)},145:function(e,t){"use strict";function s(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function r(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=r;var l=Object.prototype.hasOwnProperty,a=Array.prototype.splice,i=Object.prototype.toString;function o(e){return i.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return d(t).forEach((function(s){l.call(t,s)&&(e[s]=t[s])})),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===o(e)?new Map(e):"Set"===o(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=c({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var s=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||r(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),r("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(s.commands).join(", ")+"."}));var a=e;return d(n).forEach((function(t){if(l.call(s.commands,t)){var r=e===a;a=s.commands[t](n[t],a,n,e),r&&s.isEquals(a,e)&&(a=e)}else{var i="Map"===o(e)?s.update(e.get(t),n[t]):s.update(e[t],n[t]),c="Map"===o(a)?a.get(t):a[t];s.isEquals(i,c)&&(void 0!==i||l.call(e,t))||(a===e&&(a=u(e)),"Map"===o(a)?a.set(t,i):a[t]=i)}})),a},e}();t.Context=p;var h={$push:function(e,t,s){return g(t,s,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,s){return g(t,s,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,l){return function(e,t){r(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+s(e)})),v(t.$splice)}(t,n),e.forEach((function(e){v(e),t===l&&e.length&&(t=u(l)),a.apply(t,e)})),t},$set:function(e,t,s){return function(e){r(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(s),e},$toggle:function(e,t){f(e,"$toggle");var s=e.length?u(t):t;return e.forEach((function(e){s[e]=!t[e]})),s},$unset:function(e,t,s,n){return f(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=u(n)),delete t[e])})),t},$add:function(e,t,s,n){return b(t,"$add"),f(e,"$add"),"Map"===o(t)?e.forEach((function(e){var s=e[0],r=e[1];t===n&&t.get(s)!==r&&(t=u(n)),t.set(s,r)})):e.forEach((function(e){t!==n||t.has(e)||(t=u(n)),t.add(e)})),t},$remove:function(e,t,s,n){return b(t,"$remove"),f(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=u(n)),t.delete(e)})),t},$merge:function(e,t,n,l){var a,i;return a=t,r((i=e)&&"object"==typeof i,(function(){return"update(): $merge expects a spec of type 'object'; got "+s(i)})),r(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+s(a)})),d(e).forEach((function(s){e[s]!==t[s]&&(t===l&&(t=u(l)),t[s]=e[s])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+s(n)+"."})),e(t)}},m=new p;function g(e,t,n){r(Array.isArray(e),(function(){return"update(): expected target of "+s(n)+" to be an array; got "+s(e)+"."})),f(t[n],n)}function f(e,t){r(Array.isArray(e),(function(){return"update(): expected spec of "+s(t)+" to be an array; got "+s(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){r(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+s(e)+". Did you forget to wrap your parameters in an array?"}))}function b(e,t){var n=o(e);r("Map"===n||"Set"===n,(function(){return"update(): "+s(t)+" expects a target of type Set or Map; got "+s(n)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=c(t.default,t)},44:function(e,t,s){"use strict";var n=s(196),r=s(94);function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}(n),o=l(n),c=l(r);function d(e,t){return e[t]}function u(e,t){return t.split(".").reduce(((e,t)=>{const s=t.match(/[^\]\\[.]+/g);if(s&&s.length>1)for(let t=0;t<s.length;t++)return e[s[t]][s[t+1]];return e[t]}),e)}function p(e=[],t,s=0){return[...e.slice(0,s),t,...e.slice(s)]}function h(e=[],t,s="id"){const n=e.slice(),r=d(t,s);return r?n.splice(n.findIndex((e=>d(e,s)===r)),1):n.splice(n.findIndex((e=>e===t)),1),n}function m(e){return e.map(((e,t)=>{const s=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(s.id=t+1),s}))}function g(e,t){return Math.ceil(e/t)}function f(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(a||(a={}));const v=()=>null;function b(e,t=[],s=[]){let n={},r=[...s];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},t.classNames&&(r=[...r,...t.classNames]),"function"==typeof t.style&&(n=t.style(e)||{}))})),{style:n,classNames:r.join(" ")}}function y(e,t=[],s="id"){const n=d(e,s);return n?t.some((e=>d(e,s)===n)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>E(e.id,t))):-1}function E(e,t){return e==t}function C(e,t){const s=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:s,rows:n,rowCount:r,mergeSelections:l}=t,a=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=a?[...e.selectedRows,...n.filter((t=>!y(t,e.selectedRows,s)))]:e.selectedRows.filter((e=>!y(e,n,s)));return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:a?r:0,selectedRows:a?n:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:n,row:r,isSelected:l,rowCount:a,singleSelect:i}=t;return i?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:s}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[r],toggleOnSelectedRowsChange:s}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:h(e.selectedRows,r,n),toggleOnSelectedRowsChange:s}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===a,selectedRows:p(e.selectedRows,r),toggleOnSelectedRowsChange:s})}case"SELECT_MULTIPLE_ROWS":{const{keyField:n,selectedRows:r,totalRows:l,mergeSelections:a}=t;if(a){const t=[...e.selectedRows,...r.filter((t=>!y(t,e.selectedRows,n)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:s})}return Object.assign(Object.assign({},e),{selectedCount:r.length,allSelected:r.length===l,selectedRows:r,toggleOnSelectedRowsChange:s})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:s}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:s})}case"SORT_CHANGE":{const{sortDirection:n,selectedColumn:r,clearSelectedOnSort:l}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:r,sortDirection:n,currentPage:1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:s})}case"CHANGE_PAGE":{const{page:n,paginationServer:r,visibleOnly:l,persistSelectedOnPageChange:a}=t,i=r&&a,o=r&&!a||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:n}),i&&{allSelected:!1}),o&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:s})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:s,page:n}=t;return Object.assign(Object.assign({},e),{currentPage:n,rowsPerPage:s})}}}const _=r.css` pointer-events: none; opacity: 0.4; `,S=c.default.div` position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 100%; ${({disabled:e})=>e&&_}; ${({theme:e})=>e.table.style}; `,x=r.css` position: sticky; position: -webkit-sticky; /* Safari */ top: 0; z-index: 1; `,k=c.default.div` display: flex; width: 100%; ${({fixedHeader:e})=>e&&x}; ${({theme:e})=>e.head.style}; `,M=c.default.div` display: flex; align-items: stretch; width: 100%; ${({theme:e})=>e.headRow.style}; ${({dense:e,theme:t})=>e&&t.headRow.denseStyle}; `,N=(e,...t)=>r.css` @media screen and (max-width: ${599}px) { ${r.css(e,...t)} } `,P=(e,...t)=>r.css` @media screen and (max-width: ${959}px) { ${r.css(e,...t)} } `,R=(e,...t)=>r.css` @media screen and (max-width: ${1280}px) { ${r.css(e,...t)} } `,O=c.default.div` position: relative; display: flex; align-items: center; box-sizing: border-box; line-height: normal; ${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style}; ${({noPadding:e})=>e&&"padding: 0"}; `,F=c.default(O)` flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1}; flex-shrink: 0; flex-basis: 0; max-width: ${({maxWidth:e})=>e||"100%"}; min-width: ${({minWidth:e})=>e||"100px"}; ${({width:e})=>e&&r.css` min-width: ${e}; max-width: ${e}; `}; ${({right:e})=>e&&"justify-content: flex-end"}; ${({button:e,center:t})=>(t||e)&&"justify-content: center"}; ${({compact:e,button:t})=>(e||t)&&"padding: 0"}; /* handle hiding cells */ ${({hide:e})=>e&&"sm"===e&&N` display: none; `}; ${({hide:e})=>e&&"md"===e&&P` display: none; `}; ${({hide:e})=>e&&"lg"===e&&R` display: none; `}; ${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...s)=>r.css` @media screen and (max-width: ${e}px) { ${r.css(t,...s)} } `)(e)` display: none; `}; `,L=r.css` div:first-child { white-space: ${({wrapCell:e})=>e?"normal":"nowrap"}; overflow: ${({allowOverflow:e})=>e?"visible":"hidden"}; text-overflow: ellipsis; } `,A=c.default(F).attrs((e=>({style:e.style})))` ${({renderAsCell:e})=>!e&&L}; ${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle}; ${({cellStyle:e})=>e}; `;var I=i.memo((function({id:e,column:t,row:s,rowIndex:n,dataTag:r,isDragging:l,onDragStart:a,onDragOver:o,onDragEnd:c,onDragEnter:d,onDragLeave:p}){const{style:h,classNames:m}=b(s,t.conditionalCellStyles,["rdt_TableCell"]);return i.createElement(A,{id:e,"data-column-id":t.id,role:"cell",className:m,"data-tag":r,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:h,isDragging:l,onDragStart:a,onDragOver:o,onDragEnd:c,onDragEnter:d,onDragLeave:p},!t.cell&&i.createElement("div",{"data-tag":r},function(e,t,s,n){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return s&&"function"==typeof s?s(e,n):t&&"function"==typeof t?t(e,n):u(e,t)}(s,t.selector,t.format,n)),t.cell&&t.cell(s,n,t,e))})),D=i.memo((function({name:e,component:t="input",componentOptions:s={style:{}},indeterminate:n=!1,checked:r=!1,disabled:l=!1,onClick:a=v}){const o=t,c="input"!==o?s.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(l),d=i.useMemo((()=>function(e,...t){let s;return Object.keys(e).map((t=>e[t])).forEach(((n,r)=>{const l=e;"function"==typeof n&&(s=Object.assign(Object.assign({},l),{[Object.keys(e)[r]]:n(...t)}))})),s||e}(s,n)),[s,n]);return i.createElement(o,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},style:c,onClick:l?v:a,name:e,"aria-label":e,checked:r,disabled:l},d,{onChange:v}))}));const T=c.default(O)` flex: 0 0 48px; min-width: 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; `;function H({name:e,keyField:t,row:s,rowCount:n,selected:r,selectableRowsComponent:l,selectableRowsComponentProps:a,selectableRowsSingle:o,selectableRowDisabled:c,onSelectedRow:d}){const u=!(!c||!c(s));return i.createElement(T,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},i.createElement(D,{name:e,component:l,componentOptions:a,checked:r,"aria-checked":r,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:s,isSelected:r,keyField:t,rowCount:n,singleSelect:o})},disabled:u}))}const j=c.default.button` display: inline-flex; align-items: center; user-select: none; white-space: nowrap; border: none; background-color: transparent; ${({theme:e})=>e.expanderButton.style}; `;function $({disabled:e=!1,expanded:t=!1,expandableIcon:s,id:n,row:r,onToggled:l}){const a=t?s.expanded:s.collapsed;return i.createElement(j,{"aria-disabled":e,onClick:()=>l&&l(r),"data-testid":`expander-button-${n}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},a)}const B=c.default(O)` white-space: nowrap; font-weight: 400; min-width: 48px; ${({theme:e})=>e.expanderCell.style}; `;function z({row:e,expanded:t=!1,expandableIcon:s,id:n,onToggled:r,disabled:l=!1}){return i.createElement(B,{onClick:e=>e.stopPropagation(),noPadding:!0},i.createElement($,{id:n,row:e,expanded:t,expandableIcon:s,disabled:l,onToggled:r}))}const V=c.default.div` width: 100%; box-sizing: border-box; ${({theme:e})=>e.expanderRow.style}; ${({extendedRowStyle:e})=>e}; `;var U,W,q,G=i.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:s,extendedRowStyle:n,extendedClassNames:r}){const l=["rdt_ExpanderRow",...r.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return i.createElement(V,{className:l,extendedRowStyle:n},i.createElement(t,Object.assign({data:e},s)))}));t.Nm=void 0,(U=t.Nm||(t.Nm={})).LTR="ltr",U.RTL="rtl",U.AUTO="auto",t.v2=void 0,(W=t.v2||(t.v2={})).LEFT="left",W.RIGHT="right",W.CENTER="center",t.pU=void 0,(q=t.pU||(t.pU={})).SM="sm",q.MD="md",q.LG="lg";const Y=r.css` &:hover { ${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle}; } `,J=r.css` &:hover { cursor: pointer; } `,Z=c.default.div.attrs((e=>({style:e.style})))` display: flex; align-items: stretch; align-content: stretch; width: 100%; box-sizing: border-box; ${({theme:e})=>e.rows.style}; ${({dense:e,theme:t})=>e&&t.rows.denseStyle}; ${({striped:e,theme:t})=>e&&t.rows.stripedStyle}; ${({highlightOnHover:e})=>e&&Y}; ${({pointerOnHover:e})=>e&&J}; ${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle}; `;function X({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:s=!1,defaultExpanderDisabled:n=!1,dense:r=!1,expandableIcon:l,expandableRows:a=!1,expandableRowsComponent:o,expandableRowsComponentProps:c,expandableRowsHideExpander:u,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:h=!1,highlightOnHover:m=!1,id:g,expandableInheritConditionalStyles:f,keyField:y,onRowClicked:w=v,onRowDoubleClicked:C=v,onRowMouseEnter:_=v,onRowMouseLeave:S=v,onRowExpandToggled:x=v,onSelectedRow:k=v,pointerOnHover:M=!1,row:N,rowCount:P,rowIndex:R,selectableRowDisabled:O=null,selectableRows:F=!1,selectableRowsComponent:L,selectableRowsComponentProps:A,selectableRowsHighlight:D=!1,selectableRowsSingle:T=!1,selected:j,striped:$=!1,draggingColumnId:B,onDragStart:V,onDragOver:U,onDragEnd:W,onDragEnter:q,onDragLeave:Y}){const[J,X]=i.useState(s);i.useEffect((()=>{X(s)}),[s]);const K=i.useCallback((()=>{X(!J),x(!J,N)}),[J,x,N]),Q=M||a&&(p||h),ee=i.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(w(N,e),!n&&a&&p&&K())}),[n,p,a,K,w,N]),te=i.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(C(N,e),!n&&a&&h&&K())}),[n,h,a,K,C,N]),se=i.useCallback((e=>{_(N,e)}),[_,N]),ne=i.useCallback((e=>{S(N,e)}),[S,N]),re=d(N,y),{style:le,classNames:ae}=b(N,t,["rdt_TableRow"]),ie=D&&j,oe=f?le:{},ce=$&&R%2==0;return i.createElement(i.Fragment,null,i.createElement(Z,{id:`row-${g}`,role:"row",striped:ce,highlightOnHover:m,pointerOnHover:!n&&Q,dense:r,onClick:ee,onDoubleClick:te,onMouseEnter:se,onMouseLeave:ne,className:ae,selected:ie,style:le},F&&i.createElement(H,{name:`select-row-${re}`,keyField:y,row:N,rowCount:P,selected:j,selectableRowsComponent:L,selectableRowsComponentProps:A,selectableRowDisabled:O,selectableRowsSingle:T,onSelectedRow:k}),a&&!u&&i.createElement(z,{id:re,expandableIcon:l,expanded:J,row:N,onToggled:K,disabled:n}),e.map((e=>e.omit?null:i.createElement(I,{id:`cell-${e.id}-${re}`,key:`cell-${e.id}-${re}`,dataTag:e.ignoreRowClick||e.button?null:"allowRowEvents",column:e,row:N,rowIndex:R,isDragging:E(B,e.id),onDragStart:V,onDragOver:U,onDragEnd:W,onDragEnter:q,onDragLeave:Y})))),a&&J&&i.createElement(G,{key:`expander-${re}`,data:N,extendedRowStyle:oe,extendedClassNames:ae,ExpanderComponent:o,expanderComponentProps:c}))}const K=c.default.span` padding: 2px; color: inherit; flex-grow: 0; flex-shrink: 0; ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"}; ${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"}; `,Q=({sortActive:e,sortDirection:t})=>o.default.createElement(K,{sortActive:e,sortDirection:t},"▲"),ee=c.default(F)` ${({button:e})=>e&&"text-align: center"}; ${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle}; `,te=r.css` cursor: pointer; span.__rdt_custom_sort_icon__ { i, svg { transform: 'translate3d(0, 0, 0)'; ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"}; color: inherit; font-size: 18px; height: 18px; width: 18px; backface-visibility: hidden; transform-style: preserve-3d; transition-duration: 95ms; transition-property: transform; } &.asc i, &.asc svg { transform: rotate(180deg); } } ${({sortActive:e})=>!e&&r.css` &:hover, &:focus { opacity: 0.7; span, span.__rdt_custom_sort_icon__ * { opacity: 0.7; } } `}; `,se=c.default.div` display: inline-flex; align-items: center; justify-content: inherit; height: 100%; width: 100%; outline: none; user-select: none; overflow: hidden; ${({disabled:e})=>!e&&te}; `,ne=c.default.div` overflow: hidden; white-space: nowrap; text-overflow: ellipsis; `;var re=i.memo((function({column:e,disabled:t,draggingColumnId:s,selectedColumn:n={},sortDirection:r,sortIcon:l,sortServer:o,pagination:c,paginationServer:d,persistSelectedOnSort:u,selectableRowsVisibleOnly:p,onSort:h,onDragStart:m,onDragOver:g,onDragEnd:f,onDragEnter:v,onDragLeave:b}){i.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[y,w]=i.useState(!1),C=i.useRef(null);if(i.useEffect((()=>{C.current&&w(C.current.scrollWidth>C.current.clientWidth)}),[y]),e.omit)return null;const _=()=>{if(!e.sortable&&!e.selector)return;let t=r;E(n.id,e.id)&&(t=r===a.ASC?a.DESC:a.ASC),h({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&d&&!u||o||p})},S=e=>i.createElement(Q,{sortActive:e,sortDirection:r}),x=()=>i.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},l),k=!(!e.sortable||!E(n.id,e.id)),M=!e.sortable||t,N=e.sortable&&!l&&!e.right,P=e.sortable&&!l&&e.right,R=e.sortable&&l&&!e.right,O=e.sortable&&l&&e.right;return i.createElement(ee,{"data-column-id":e.id,className:"rdt_TableCol",headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,isDragging:E(e.id,s),onDragStart:m,onDragOver:g,onDragEnd:f,onDragEnter:v,onDragLeave:b},e.name&&i.createElement(se,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:M?void 0:_,onKeyPress:M?void 0:e=>{"Enter"===e.key&&_()},sortActive:!M&&k,disabled:M},!M&&O&&x(),!M&&P&&S(k),"string"==typeof e.name?i.createElement(ne,{title:y?e.name:void 0,ref:C,"data-column-id":e.id},e.name):e.name,!M&&R&&x(),!M&&N&&S(k)))}));const le=c.default(O)` flex: 0 0 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; font-size: unset; `;function ae({headCell:e=!0,rowData:t,keyField:s,allSelected:n,mergeSelections:r,selectedRows:l,selectableRowsComponent:a,selectableRowsComponentProps:o,selectableRowDisabled:c,onSelectAllRows:d}){const u=l.length>0&&!n,p=c?t.filter((e=>!c(e))):t,h=0===p.length,m=Math.min(t.length,p.length);return i.createElement(le,{className:"rdt_TableCol",headCell:e,noPadding:!0},i.createElement(D,{name:"select-all-rows",component:a,componentOptions:o,onClick:()=>{d({type:"SELECT_ALL_ROWS",rows:p,rowCount:m,mergeSelections:r,keyField:s})},checked:n,indeterminate:u,disabled:h}))}function ie(e=t.Nm.AUTO){const s="object"==typeof window,[n,r]=i.useState(!1);return i.useEffect((()=>{if(s)if("auto"!==e)r("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],s=document.getElementsByTagName("HTML")[0],n="rtl"===t.dir||"rtl"===s.dir;r(e&&n)}}),[e,s]),n}const oe=c.default.div` display: flex; align-items: center; flex: 1 0 auto; height: 100%; color: ${({theme:e})=>e.contextMenu.fontColor}; font-size: ${({theme:e})=>e.contextMenu.fontSize}; font-weight: 400; `,ce=c.default.div` display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; `,de=c.default.div` position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: inherit; z-index: 1; align-items: center; justify-content: space-between; display: flex; ${({rtl:e})=>e&&"direction: rtl"}; ${({theme:e})=>e.contextMenu.style}; ${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle}; `;function ue({contextMessage:e,contextActions:t,contextComponent:s,selectedCount:n,direction:r}){const l=ie(r),a=n>0;return s?i.createElement(de,{visible:a},i.cloneElement(s,{selectedCount:n})):i.createElement(de,{visible:a,rtl:l},i.createElement(oe,null,((e,t,s)=>{if(0===t)return null;const n=1===t?e.singular:e.plural;return s?`${t} ${e.message||""} ${n}`:`${t} ${n} ${e.message||""}`})(e,n,l)),i.createElement(ce,null,t))}const pe=c.default.div` position: relative; box-sizing: border-box; overflow: hidden; display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; ${({theme:e})=>e.header.style} `,he=c.default.div` flex: 1 0 auto; color: ${({theme:e})=>e.header.fontColor}; font-size: ${({theme:e})=>e.header.fontSize}; font-weight: 400; `,me=c.default.div` flex: 1 0 auto; display: flex; align-items: center; justify-content: flex-end; > * { margin-left: 5px; } `,ge=({title:e,actions:t=null,contextMessage:s,contextActions:n,contextComponent:r,selectedCount:l,direction:a,showMenu:o=!0})=>i.createElement(pe,{className:"rdt_TableHeader",role:"heading","aria-level":1},i.createElement(he,null,e),t&&i.createElement(me,null,t),o&&i.createElement(ue,{contextMessage:s,contextActions:n,contextComponent:r,direction:a,selectedCount:l}));function fe(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(s[n[r]]=e[n[r]])}return s}const ve={left:"flex-start",right:"flex-end",center:"center"},be=c.default.header` position: relative; display: flex; flex: 1 1 auto; box-sizing: border-box; align-items: center; padding: 4px 16px 4px 24px; width: 100%; justify-content: ${({align:e})=>ve[e]}; flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"}; ${({theme:e})=>e.subHeader.style} `,ye=e=>{var{align:t="right",wrapContent:s=!0}=e,n=fe(e,["align","wrapContent"]);return i.createElement(be,Object.assign({align:t,wrapContent:s},n))},we=c.default.div` display: flex; flex-direction: column; `,Ee=c.default.div` position: relative; width: 100%; border-radius: inherit; ${({responsive:e,fixedHeader:t})=>e&&r.css` overflow-x: auto; // hidden prevents vertical scrolling in firefox when fixedHeader is disabled overflow-y: ${t?"auto":"hidden"}; min-height: 0; `}; ${({fixedHeader:e=!1,fixedHeaderScrollHeight:t="100vh"})=>e&&r.css` max-height: ${t}; -webkit-overflow-scrolling: touch; `}; ${({theme:e})=>e.responsiveWrapper.style}; `,Ce=c.default.div` position: relative; box-sizing: border-box; width: 100%; height: 100%; ${e=>e.theme.progress.style}; `,_e=c.default.div` position: relative; width: 100%; ${({theme:e})=>e.tableWrapper.style}; `,Se=c.default(O)` white-space: nowrap; ${({theme:e})=>e.expanderCell.style}; `,xe=c.default.div` box-sizing: border-box; width: 100%; height: 100%; ${({theme:e})=>e.noData.style}; `,ke=()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.default.createElement("path",{d:"M7 10l5 5 5-5z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Me=c.default.select` cursor: pointer; height: 24px; max-width: 100%; user-select: none; padding-left: 8px; padding-right: 24px; box-sizing: content-box; font-size: inherit; color: inherit; border: none; background-color: transparent; appearance: none; direction: ltr; flex-shrink: 0; &::-ms-expand { display: none; } &:disabled::-ms-expand { background: #f60; } option { color: initial; } `,Ne=c.default.div` position: relative; flex-shrink: 0; font-size: inherit; color: inherit; margin-top: 1px; svg { top: 0; right: 0; color: inherit; position: absolute; fill: currentColor; width: 24px; height: 24px; display: inline-block; user-select: none; pointer-events: none; } `,Pe=e=>{var{defaultValue:t,onChange:s}=e,n=fe(e,["defaultValue","onChange"]);return i.createElement(Ne,null,i.createElement(Me,Object.assign({onChange:s,defaultValue:t},n)),i.createElement(ke,null))},Re={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return o.default.createElement("div",null,"To add an expander pass in a component instance via ",o.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:o.default.createElement((()=>o.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),o.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:o.default.createElement((()=>o.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),o.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:o.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:o.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.v2.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),o.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.Nm.AUTO,onChangePage:v,onChangeRowsPerPage:v,onRowClicked:v,onRowDoubleClicked:v,onRowMouseEnter:v,onRowMouseLeave:v,onRowExpandToggled:v,onSelectedRowsChange:v,onSort:v,onColumnOrderChange:v},Oe={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Fe=c.default.nav` display: flex; flex: 1 1 auto; justify-content: flex-end; align-items: center; box-sizing: border-box; padding-right: 8px; padding-left: 8px; width: 100%; ${({theme:e})=>e.pagination.style}; `,Le=c.default.button` position: relative; display: block; user-select: none; border: none; ${({theme:e})=>e.pagination.pageButtonsStyle}; ${({isRTL:e})=>e&&"transform: scale(-1, -1)"}; `,Ae=c.default.div` display: flex; align-items: center; border-radius: 4px; white-space: nowrap; ${N` width: 100%; justify-content: space-around; `}; `,Ie=c.default.span` flex-shrink: 1; user-select: none; `,De=c.default(Ie)` margin: 0 24px; `,Te=c.default(Ie)` margin: 0 4px; `;var He=i.memo((function({rowsPerPage:e,rowCount:t,currentPage:s,direction:n=Re.direction,paginationRowsPerPageOptions:r=Re.paginationRowsPerPageOptions,paginationIconLastPage:l=Re.paginationIconLastPage,paginationIconFirstPage:a=Re.paginationIconFirstPage,paginationIconNext:o=Re.paginationIconNext,paginationIconPrevious:c=Re.paginationIconPrevious,paginationComponentOptions:d=Re.paginationComponentOptions,onChangeRowsPerPage:u=Re.onChangeRowsPerPage,onChangePage:p=Re.onChangePage}){const h=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[s,n]=i.useState(t);return i.useEffect((()=>{if(!e)return()=>null;function s(){n(t())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[]),s})(),m=ie(n),f=h.width&&h.width>599,v=g(t,e),b=s*e,y=b-e+1,w=1===s,E=s===v,C=Object.assign(Object.assign({},Oe),d),_=s===v?`${y}-${t} ${C.rangeSeparatorText} ${t}`:`${y}-${b} ${C.rangeSeparatorText} ${t}`,S=i.useCallback((()=>p(s-1)),[s,p]),x=i.useCallback((()=>p(s+1)),[s,p]),k=i.useCallback((()=>p(1)),[p]),M=i.useCallback((()=>p(g(t,e))),[p,t,e]),N=i.useCallback((e=>u(Number(e.target.value),s)),[s,u]),P=r.map((e=>i.createElement("option",{key:e,value:e},e)));C.selectAllRowsItem&&P.push(i.createElement("option",{key:-1,value:t},C.selectAllRowsItemText));const R=i.createElement(Pe,{onChange:N,defaultValue:e,"aria-label":C.rowsPerPageText},P);return i.createElement(Fe,{className:"rdt_Pagination"},!C.noRowsPerPage&&f&&i.createElement(i.Fragment,null,i.createElement(Te,null,C.rowsPerPageText),R),f&&i.createElement(De,null,_),i.createElement(Ae,null,i.createElement(Le,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":w,onClick:k,disabled:w,isRTL:m},a),i.createElement(Le,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":w,onClick:S,disabled:w,isRTL:m},c),!f&&R,i.createElement(Le,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":E,onClick:x,disabled:E,isRTL:m},o),i.createElement(Le,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":E,onClick:M,disabled:E,isRTL:m},l)))}));const je=(e,t)=>{const s=i.useRef(!0);i.useEffect((()=>{s.current?s.current=!1:e()}),t)};var $e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Be}(e)}(e)},Be="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function Ve(e,t,s){return e.concat(t).map((function(e){return ze(e,s)}))}function Ue(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function We(e,t){try{return t in e}catch(e){return!1}}function qe(e,t,s){(s=s||{}).arrayMerge=s.arrayMerge||Ve,s.isMergeableObject=s.isMergeableObject||$e,s.cloneUnlessOtherwiseSpecified=ze;var n=Array.isArray(t);return n===Array.isArray(e)?n?s.arrayMerge(e,t,s):function(e,t,s){var n={};return s.isMergeableObject(e)&&Ue(e).forEach((function(t){n[t]=ze(e[t],s)})),Ue(t).forEach((function(r){(function(e,t){return We(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(We(e,r)&&s.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return qe;var s=t.customMerge(e);return"function"==typeof s?s:qe}(r,s)(e[r],t[r],s):n[r]=ze(t[r],s))})),n}(e,t,s):ze(t,s)}qe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,s){return qe(e,s,t)}),{})};var Ge=qe;const Ye={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Je={default:Ye,light:Ye,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ze(e,t,s,n){const[r,l]=i.useState((()=>m(e))),[o,c]=i.useState(""),d=i.useRef("");je((()=>{l(m(e))}),[e]);const u=i.useCallback((e=>{var t,s,n;const{attributes:l}=e.target,a=null===(t=l.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;a&&(d.current=(null===(n=null===(s=r[w(r,a)])||void 0===s?void 0:s.id)||void 0===n?void 0:n.toString())||"",c(d.current))}),[r]),p=i.useCallback((e=>{var s;const{attributes:n}=e.target,a=null===(s=n.getNamedItem("data-column-id"))||void 0===s?void 0:s.value;if(a&&d.current&&a!==d.current){const e=w(r,d.current),s=w(r,a),n=[...r];n[e]=r[s],n[s]=r[e],l(n),t(n)}}),[t,r]),h=i.useCallback((e=>{e.preventDefault()}),[]),g=i.useCallback((e=>{e.preventDefault()}),[]),f=i.useCallback((e=>{e.preventDefault(),d.current="",c("")}),[]),v=function(e=!1){return e?a.ASC:a.DESC}(n),b=i.useMemo((()=>r[w(r,null==s?void 0:s.toString())]||{}),[s,r]);return{tableColumns:r,draggingColumnId:o,handleDragStart:u,handleDragEnter:p,handleDragOver:h,handleDragLeave:g,handleDragEnd:f,defaultSortDirection:v,defaultSortColumn:b}}var Xe=i.memo((function(e){const{data:t=Re.data,columns:s=Re.columns,title:n=Re.title,actions:l=Re.actions,keyField:o=Re.keyField,striped:c=Re.striped,highlightOnHover:p=Re.highlightOnHover,pointerOnHover:h=Re.pointerOnHover,dense:m=Re.dense,selectableRows:v=Re.selectableRows,selectableRowsSingle:b=Re.selectableRowsSingle,selectableRowsHighlight:w=Re.selectableRowsHighlight,selectableRowsNoSelectAll:E=Re.selectableRowsNoSelectAll,selectableRowsVisibleOnly:_=Re.selectableRowsVisibleOnly,selectableRowSelected:x=Re.selectableRowSelected,selectableRowDisabled:N=Re.selectableRowDisabled,selectableRowsComponent:P=Re.selectableRowsComponent,selectableRowsComponentProps:R=Re.selectableRowsComponentProps,onRowExpandToggled:F=Re.onRowExpandToggled,onSelectedRowsChange:L=Re.onSelectedRowsChange,expandableIcon:A=Re.expandableIcon,onChangeRowsPerPage:I=Re.onChangeRowsPerPage,onChangePage:D=Re.onChangePage,paginationServer:T=Re.paginationServer,paginationServerOptions:H=Re.paginationServerOptions,paginationTotalRows:j=Re.paginationTotalRows,paginationDefaultPage:$=Re.paginationDefaultPage,paginationResetDefaultPage:B=Re.paginationResetDefaultPage,paginationPerPage:z=Re.paginationPerPage,paginationRowsPerPageOptions:V=Re.paginationRowsPerPageOptions,paginationIconLastPage:U=Re.paginationIconLastPage,paginationIconFirstPage:W=Re.paginationIconFirstPage,paginationIconNext:q=Re.paginationIconNext,paginationIconPrevious:G=Re.paginationIconPrevious,paginationComponent:Y=Re.paginationComponent,paginationComponentOptions:J=Re.paginationComponentOptions,responsive:Z=Re.responsive,progressPending:K=Re.progressPending,progressComponent:Q=Re.progressComponent,persistTableHead:ee=Re.persistTableHead,noDataComponent:te=Re.noDataComponent,disabled:se=Re.disabled,noTableHead:ne=Re.noTableHead,noHeader:le=Re.noHeader,fixedHeader:ie=Re.fixedHeader,fixedHeaderScrollHeight:oe=Re.fixedHeaderScrollHeight,pagination:ce=Re.pagination,subHeader:de=Re.subHeader,subHeaderAlign:ue=Re.subHeaderAlign,subHeaderWrap:pe=Re.subHeaderWrap,subHeaderComponent:he=Re.subHeaderComponent,noContextMenu:me=Re.noContextMenu,contextMessage:fe=Re.contextMessage,contextActions:ve=Re.contextActions,contextComponent:be=Re.contextComponent,expandableRows:ke=Re.expandableRows,onRowClicked:Me=Re.onRowClicked,onRowDoubleClicked:Ne=Re.onRowDoubleClicked,onRowMouseEnter:Pe=Re.onRowMouseEnter,onRowMouseLeave:Oe=Re.onRowMouseLeave,sortIcon:Fe=Re.sortIcon,onSort:Le=Re.onSort,sortFunction:Ae=Re.sortFunction,sortServer:Ie=Re.sortServer,expandableRowsComponent:De=Re.expandableRowsComponent,expandableRowsComponentProps:Te=Re.expandableRowsComponentProps,expandableRowDisabled:$e=Re.expandableRowDisabled,expandableRowsHideExpander:Be=Re.expandableRowsHideExpander,expandOnRowClicked:ze=Re.expandOnRowClicked,expandOnRowDoubleClicked:Ve=Re.expandOnRowDoubleClicked,expandableRowExpanded:Ue=Re.expandableRowExpanded,expandableInheritConditionalStyles:We=Re.expandableInheritConditionalStyles,defaultSortFieldId:qe=Re.defaultSortFieldId,defaultSortAsc:Ye=Re.defaultSortAsc,clearSelectedRows:Xe=Re.clearSelectedRows,conditionalRowStyles:Ke=Re.conditionalRowStyles,theme:Qe=Re.theme,customStyles:et=Re.customStyles,direction:tt=Re.direction,onColumnOrderChange:st=Re.onColumnOrderChange,className:nt}=e,{tableColumns:rt,draggingColumnId:lt,handleDragStart:at,handleDragEnter:it,handleDragOver:ot,handleDragLeave:ct,handleDragEnd:dt,defaultSortDirection:ut,defaultSortColumn:pt}=Ze(s,st,qe,Ye),[{rowsPerPage:ht,currentPage:mt,selectedRows:gt,allSelected:ft,selectedCount:vt,selectedColumn:bt,sortDirection:yt,toggleOnSelectedRowsChange:wt},Et]=i.useReducer(C,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:pt,toggleOnSelectedRowsChange:!1,sortDirection:ut,currentPage:$,rowsPerPage:z,selectedRowsFlag:!1,contextMessage:Re.contextMessage}),{persistSelectedOnSort:Ct=!1,persistSelectedOnPageChange:_t=!1}=H,St=!(!T||!_t&&!Ct),xt=ce&&!K&&t.length>0,kt=Y||He,Mt=i.useMemo((()=>((e={},t="default",s="default")=>{const n=Je[t]?t:s;return Ge({table:{style:{color:(r=Je[n]).text.primary,backgroundColor:r.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:r.text.primary,backgroundColor:r.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:r.background.default,minHeight:"52px"}},head:{style:{color:r.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:r.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:r.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:r.context.background,fontSize:"18px",fontWeight:400,color:r.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:r.text.primary,backgroundColor:r.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:r.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:r.selected.text,backgroundColor:r.selected.default,borderBottomColor:r.background.default}},highlightOnHoverStyle:{color:r.highlightOnHover.text,backgroundColor:r.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:r.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:r.background.default},stripedStyle:{color:r.striped.text,backgroundColor:r.striped.default}},expanderRow:{style:{color:r.text.primary,backgroundColor:r.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:r.button.default,fill:r.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:r.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:r.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:r.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:r.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:r.button.default,fill:r.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:r.button.disabled,fill:r.button.disabled},"&:hover:not(:disabled)":{backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}}},e);var r})(et,Qe)),[et,Qe]),Nt=i.useMemo((()=>Object.assign({},"auto"!==tt&&{dir:tt})),[tt]),Pt=i.useMemo((()=>{if(Ie)return t;if((null==bt?void 0:bt.sortFunction)&&"function"==typeof bt.sortFunction){const e=bt.sortFunction,s=yt===a.ASC?e:(t,s)=>-1*e(t,s);return[...t].sort(s)}return function(e,t,s,n){return t?n&&"function"==typeof n?n(e.slice(0),t,s):e.slice(0).sort(((e,n)=>{let r,l;if("string"==typeof t?(r=u(e,t),l=u(n,t)):(r=t(e),l=t(n)),"asc"===s){if(r<l)return-1;if(r>l)return 1}if("desc"===s){if(r>l)return-1;if(r<l)return 1}return 0})):e}(t,null==bt?void 0:bt.selector,yt,Ae)}),[Ie,bt,yt,t,Ae]),Rt=i.useMemo((()=>{if(ce&&!T){const e=mt*ht,t=e-ht;return Pt.slice(t,e)}return Pt}),[mt,ce,T,ht,Pt]),Ot=i.useCallback((e=>{Et(e)}),[]),Ft=i.useCallback((e=>{Et(e)}),[]),Lt=i.useCallback((e=>{Et(e)}),[]),At=i.useCallback(((e,t)=>Me(e,t)),[Me]),It=i.useCallback(((e,t)=>Ne(e,t)),[Ne]),Dt=i.useCallback(((e,t)=>Pe(e,t)),[Pe]),Tt=i.useCallback(((e,t)=>Oe(e,t)),[Oe]),Ht=i.useCallback((e=>Et({type:"CHANGE_PAGE",page:e,paginationServer:T,visibleOnly:_,persistSelectedOnPageChange:_t})),[T,_t,_]),jt=i.useCallback((e=>{const t=g(j||Rt.length,e),s=f(mt,t);T||Ht(s),Et({type:"CHANGE_ROWS_PER_PAGE",page:s,rowsPerPage:e})}),[mt,Ht,T,j,Rt.length]);if(ce&&!T&&Pt.length>0&&0===Rt.length){const e=g(Pt.length,ht),t=f(mt,e);Ht(t)}je((()=>{L({allSelected:ft,selectedCount:vt,selectedRows:gt.slice(0)})}),[wt]),je((()=>{Le(bt,yt,Pt.slice(0))}),[bt,yt]),je((()=>{D(mt,j||Pt.length)}),[mt]),je((()=>{I(ht,mt)}),[ht]),je((()=>{Ht($)}),[$,B]),je((()=>{if(ce&&T&&j>0){const e=g(j,ht),t=f(mt,e);mt!==t&&Ht(t)}}),[j]),i.useEffect((()=>{Et({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Xe})}),[b,Xe]),i.useEffect((()=>{if(!x)return;const e=Pt.filter((e=>x(e))),t=b?e.slice(0,1):e;Et({type:"SELECT_MULTIPLE_ROWS",keyField:o,selectedRows:t,totalRows:Pt.length,mergeSelections:St})}),[t,x]);const $t=_?Rt:Pt,Bt=_t||b||E;return i.createElement(r.ThemeProvider,{theme:Mt},!le&&(!!n||!!l)&&i.createElement(ge,{title:n,actions:l,showMenu:!me,selectedCount:vt,direction:tt,contextActions:ve,contextComponent:be,contextMessage:fe}),de&&i.createElement(ye,{align:ue,wrapContent:pe},he),i.createElement(Ee,Object.assign({responsive:Z,fixedHeader:ie,fixedHeaderScrollHeight:oe,className:nt},Nt),i.createElement(_e,null,K&&!ee&&i.createElement(Ce,null,Q),i.createElement(S,{disabled:se,className:"rdt_Table",role:"table"},!ne&&(!!ee||Pt.length>0&&!K)&&i.createElement(k,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:ie},i.createElement(M,{className:"rdt_TableHeadRow",role:"row",dense:m},v&&(Bt?i.createElement(O,{style:{flex:"0 0 48px"}}):i.createElement(ae,{allSelected:ft,selectedRows:gt,selectableRowsComponent:P,selectableRowsComponentProps:R,selectableRowDisabled:N,rowData:$t,keyField:o,mergeSelections:St,onSelectAllRows:Ft})),ke&&!Be&&i.createElement(Se,null),rt.map((e=>i.createElement(re,{key:e.id,column:e,selectedColumn:bt,disabled:K||0===Pt.length,pagination:ce,paginationServer:T,persistSelectedOnSort:Ct,selectableRowsVisibleOnly:_,sortDirection:yt,sortIcon:Fe,sortServer:Ie,onSort:Ot,onDragStart:at,onDragOver:ot,onDragEnd:dt,onDragEnter:it,onDragLeave:ct,draggingColumnId:lt}))))),!Pt.length&&!K&&i.createElement(xe,null,te),K&&ee&&i.createElement(Ce,null,Q),!K&&Pt.length>0&&i.createElement(we,{className:"rdt_TableBody",role:"rowgroup"},Rt.map(((e,t)=>{const s=d(e,o),n=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(s)?t:s,r=y(e,gt,o),l=!!(ke&&Ue&&Ue(e)),a=!!(ke&&$e&&$e(e));return i.createElement(X,{id:n,key:n,keyField:o,"data-row-id":n,columns:rt,row:e,rowCount:Pt.length,rowIndex:t,selectableRows:v,expandableRows:ke,expandableIcon:A,highlightOnHover:p,pointerOnHover:h,dense:m,expandOnRowClicked:ze,expandOnRowDoubleClicked:Ve,expandableRowsComponent:De,expandableRowsComponentProps:Te,expandableRowsHideExpander:Be,defaultExpanderDisabled:a,defaultExpanded:l,expandableInheritConditionalStyles:We,conditionalRowStyles:Ke,selected:r,selectableRowsHighlight:w,selectableRowsComponent:P,selectableRowsComponentProps:R,selectableRowDisabled:N,selectableRowsSingle:b,striped:c,onRowExpandToggled:F,onRowClicked:At,onRowDoubleClicked:It,onRowMouseEnter:Dt,onRowMouseLeave:Tt,onSelectedRow:Lt,draggingColumnId:lt,onDragStart:at,onDragOver:ot,onDragEnd:dt,onDragEnter:it,onDragLeave:ct})})))))),xt&&i.createElement("div",null,i.createElement(kt,{onChangePage:Ht,onChangeRowsPerPage:jt,rowCount:j||Pt.length,currentPage:mt,rowsPerPage:ht,direction:tt,paginationRowsPerPageOptions:V,paginationIconLastPage:U,paginationIconFirstPage:W,paginationIconNext:q,paginationIconPrevious:G,paginationComponentOptions:J})))}));t.jG=function(e="default",t,s="default"){return Je[e]||(Je[e]=Ge(Je[s],t||{})),Je[e]=Ge(Je[e],t||{}),Je[e]},t.ZP=Xe},921:function(e,t){"use strict";var s,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");s=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===i||e===a||e===p||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===o||e.$$typeof===c||e.$$typeof===u||e.$$typeof===s||void 0!==e.getModuleId)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case i:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case d:case c:case u:case g:case m:case o:return e;default:return t}}case r:return t}}}},864:function(e,t,s){"use strict";e.exports=s(921)},774:function(e){e.exports=function(e,t,s,n){var r=s?s.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<l.length;o++){var c=l[o];if(!i(c))return!1;var d=e[c],u=t[c];if(!1===(r=s?s.call(n,d,u,c):void 0)||void 0===r&&d!==u)return!1}return!0}},94:function(e,t,s){"use strict";s.r(t),s.d(t,{ServerStyleSheet:function(){return Be},StyleSheetConsumer:function(){return le},StyleSheetContext:function(){return re},StyleSheetManager:function(){return ue},ThemeConsumer:function(){return Le},ThemeContext:function(){return Fe},ThemeProvider:function(){return Ae},__PRIVATE__:function(){return Ue},createGlobalStyle:function(){return je},css:function(){return Ee},default:function(){return We},isStyledComponent:function(){return E},keyframes:function(){return $e},useTheme:function(){return Ve},version:function(){return _},withTheme:function(){return ze}});var n=s(864),r=s(196),l=s.n(r),a=s(774),i=s.n(a),o=function(e){function t(e,n,o,c,p){for(var h,m,g,f,w,C=0,_=0,S=0,x=0,k=0,F=0,A=g=h=0,D=0,T=0,H=0,j=0,$=o.length,B=$-1,z="",V="",U="",W="";D<$;){if(m=o.charCodeAt(D),D===B&&0!==_+x+S+C&&(0!==_&&(m=47===_?10:47),x=S=C=0,$++,B++),0===_+x+S+C){if(D===B&&(0<T&&(z=z.replace(u,"")),0<z.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:z+=o.charAt(D)}m=59}switch(m){case 123:for(h=(z=z.trim()).charCodeAt(0),g=1,j=++D;D<$;){switch(m=o.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(m=o.charCodeAt(D+1)){case 42:case 47:e:{for(A=D+1;A<B;++A)switch(o.charCodeAt(A)){case 47:if(42===m&&42===o.charCodeAt(A-1)&&D+2!==A){D=A+1;break e}break;case 10:if(47===m){D=A+1;break e}}D=A}}break;case 91:m++;case 40:m++;case 34:case 39:for(;D++<B&&o.charCodeAt(D)!==m;);}if(0===g)break;D++}if(g=o.substring(j,D),0===h&&(h=(z=z.replace(d,"").trim()).charCodeAt(0)),64===h){switch(0<T&&(z=z.replace(u,"")),m=z.charCodeAt(1)){case 100:case 109:case 115:case 45:T=n;break;default:T=O}if(j=(g=t(n,T,g,m,p+1)).length,0<L&&(w=i(3,g,T=s(O,z,H),n,N,M,j,m,p,c),z=T.join(""),void 0!==w&&0===(j=(g=w.trim()).length)&&(m=0,g="")),0<j)switch(m){case 115:z=z.replace(E,a);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&l("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===c&&(V+=g,g="")}else g=""}else g=t(n,s(n,z,H),g,c,p+1);U+=g,g=H=T=A=h=0,z="",m=o.charCodeAt(++D);break;case 125:case 59:if(1<(j=(z=(0<T?z.replace(u,""):z).trim()).length))switch(0===A&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(j=(z=z.replace(" ",":")).length),0<L&&void 0!==(w=i(1,z,n,e,N,M,V.length,c,p,c))&&0===(j=(z=w.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),m=z.charCodeAt(1),h){case 0:break;case 64:if(105===m||99===m){W+=z+o.charAt(D);break}default:58!==z.charCodeAt(j-1)&&(V+=r(z,h,m,z.charCodeAt(2)))}H=T=A=h=0,z="",m=o.charCodeAt(++D)}}switch(m){case 13:case 10:47===_?_=0:0===1+h&&107!==c&&0<z.length&&(T=1,z+="\0"),0<L*I&&i(0,z,n,e,N,M,V.length,c,p,c),M=1,N++;break;case 59:case 125:if(0===_+x+S+C){M++;break}default:switch(M++,f=o.charAt(D),m){case 9:case 32:if(0===x+C+_)switch(k){case 44:case 58:case 9:case 32:f="";break;default:32!==m&&(f=" ")}break;case 0:f="\\0";break;case 12:f="\\f";break;case 11:f="\\v";break;case 38:0===x+_+C&&(T=H=1,f="\f"+f);break;case 108:if(0===x+_+C+P&&0<A)switch(D-A){case 2:112===k&&58===o.charCodeAt(D-3)&&(P=k);case 8:111===F&&(P=F)}break;case 58:0===x+_+C&&(A=D);break;case 44:0===_+S+x+C&&(T=1,f+="\r");break;case 34:case 39:0===_&&(x=x===m?0:0===x?m:x);break;case 91:0===x+_+S&&C++;break;case 93:0===x+_+S&&C--;break;case 41:0===x+_+C&&S--;break;case 40:0===x+_+C&&(0===h&&(2*k+3*F==533||(h=1)),S++);break;case 64:0===_+S+x+C+A+g&&(g=1);break;case 42:case 47:if(!(0<x+C+S))switch(_){case 0:switch(2*m+3*o.charCodeAt(D+1)){case 235:_=47;break;case 220:j=D,_=42}break;case 42:47===m&&42===k&&j+2!==D&&(33===o.charCodeAt(j+2)&&(V+=o.substring(j,D+1)),f="",_=0)}}0===_&&(z+=f)}F=k,k=m,D++}if(0<(j=V.length)){if(T=n,0<L&&void 0!==(w=i(2,V,T,e,N,M,j,c,p,c))&&0===(V=w).length)return W+V+U;if(V=T.join(",")+"{"+V+"}",0!=R*P){switch(2!==R||l(V,2)||(P=0),P){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(b,"::-webkit-input-$1")+V.replace(b,"::-moz-$1")+V.replace(b,":-ms-input-$1")+V}P=0}}return W+V+U}function s(e,t,s){var r=t.trim().split(g);t=r;var l=r.length,a=e.length;switch(a){case 0:case 1:var i=0;for(e=0===a?"":e[0]+" ";i<l;++i)t[i]=n(e,t[i],s).trim();break;default:var o=i=0;for(t=[];i<l;++i)for(var c=0;c<a;++c)t[o++]=n(e[c]+" ",r[i],s).trim()}return t}function n(e,t,s){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*s&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,s,n){var a=e+";",i=2*t+3*s+4*n;if(944===i){e=a.indexOf(":",9)+1;var o=a.substring(e,a.length-1).trim();return o=a.substring(0,e).trim()+o+";",1===R||2===R&&l(o,1)?"-webkit-"+o+o:o}if(0===R||2===R&&!l(a,1))return a;switch(i){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(o=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+o+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(o=a.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=a.replace(w,"tb");break;case 232:o=a.replace(w,"tb-rl");break;case 220:o=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+o+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,i=(o=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:a=a.replace(o,"-webkit-"+o)+";"+a;break;case 207:case 102:a=a.replace(o,"-webkit-"+(102<i?"inline-":"")+"box")+";"+a.replace(o,"-webkit-"+o)+";"+a.replace(o,"-ms-"+o+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return o=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+o+"-ms-flex-"+o+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,s,n).replace(":fill-available",":stretch"):a.replace(o,"-webkit-"+o)+a.replace(o,"-moz-"+o.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===s+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function l(e,t){var s=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?s:10);return s=e.substring(s+1,e.length-1),A(2!==t?n:n.replace(S,"$1"),s,t)}function a(e,t){var s=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return s!==t+";"?s.replace(C," or ($1)").substring(4):"("+t+")"}function i(e,t,s,n,r,l,a,i,o,d){for(var u,p=0,h=t;p<L;++p)switch(u=F[p].call(c,e,h,s,n,r,l,a,i,o,d)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function o(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?R=1:(R=2,A=e):R=0),o}function c(e,s){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<L){var r=i(-1,s,n,n,N,M,0,0,0,0);void 0!==r&&"string"==typeof r&&(s=r)}var l=t(O,n,s,0,0);return 0<L&&void 0!==(r=i(-2,l,n,n,N,M,l.length,0,0,0))&&(l=r),P=0,M=N=1,l}var d=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,_=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,N=1,P=0,R=1,O=[],F=[],L=0,A=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:L=F.length=0;break;default:if("function"==typeof t)F[L++]=t;else if("object"==typeof t)for(var s=0,n=t.length;s<n;++s)e(t[s]);else I=0|!!t}return e},c.set=o,void 0!==e&&o(e),c},c={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},d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=(s=e,d.test(s)||111===s.charCodeAt(0)&&110===s.charCodeAt(1)&&s.charCodeAt(2)<91)),t[e];var s}}(),p=s(679),h=s.n(p);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}var g=function(e,t){for(var s=[e[0]],n=0,r=t.length;n<r;n+=1)s.push(t[n],e[n+1]);return s},f=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},v=Object.freeze([]),b=Object.freeze({});function y(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function E(e){return e&&"string"==typeof e.styledComponentId}var C="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_="5.3.6",S="undefined"!=typeof window&&"HTMLElement"in window,x=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),k={};function M(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(s.length>0?" Args: "+s.join(", "):""))}var N=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,s=0;s<e;s++)t+=this.groupSizes[s];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var s=this.groupSizes,n=s.length,r=n;e>=r;)(r<<=1)<0&&M(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(s),this.length=r;for(var l=n;l<r;l++)this.groupSizes[l]=0}for(var a=this.indexOfGroup(e+1),i=0,o=t.length;i<o;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],s=this.indexOfGroup(e),n=s+t;this.groupSizes[e]=0;for(var r=s;r<n;r++)this.tag.deleteRule(s)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var s=this.groupSizes[e],n=this.indexOfGroup(e),r=n+s,l=n;l<r;l++)t+=this.tag.getRule(l)+"/*!sc*/\n";return t},e}(),P=new Map,R=new Map,O=1,F=function(e){if(P.has(e))return P.get(e);for(;R.has(O);)O++;var t=O++;return P.set(e,t),R.set(t,e),t},L=function(e){return R.get(e)},A=function(e,t){t>=O&&(O=t+1),P.set(e,t),R.set(t,e)},I="style["+C+'][data-styled-version="5.3.6"]',D=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,s){for(var n,r=s.split(","),l=0,a=r.length;l<a;l++)(n=r[l])&&e.registerName(t,n)},H=function(e,t){for(var s=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,l=s.length;r<l;r++){var a=s[r].trim();if(a){var i=a.match(D);if(i){var o=0|parseInt(i[1],10),c=i[2];0!==o&&(A(c,o),T(e,c,i[3]),e.getTag().insertRules(o,n)),n.length=0}else n.push(a)}}},j=function(){return s.nc},$=function(e){var t=document.head,s=e||t,n=document.createElement("style"),r=function(e){for(var t=e.childNodes,s=t.length;s>=0;s--){var n=t[s];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(s),l=void 0!==r?r.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.6");var a=j();return a&&n.setAttribute("nonce",a),s.insertBefore(n,l),n},B=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,s=0,n=t.length;s<n;s++){var r=t[s];if(r.ownerNode===e)return r}M(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=$(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var s=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(s,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=S,W={isServer:!S,useCSSOMInjection:!x},q=function(){function e(e,t,s){void 0===e&&(e=b),void 0===t&&(t={}),this.options=m({},W,{},e),this.gs=t,this.names=new Map(s),this.server=!!e.isServer,!this.server&&S&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(I),s=0,n=t.length;s<n;s++){var r=t[s];r&&"active"!==r.getAttribute(C)&&(H(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return F(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,s){return void 0===s&&(s=!0),new e(m({},this.options,{},t),this.gs,s&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(s=(t=this.options).isServer,n=t.useCSSOMInjection,r=t.target,e=s?new V(r):n?new B(r):new z(r),new N(e)));var e,t,s,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(F(e),this.names.has(e))this.names.get(e).add(t);else{var s=new Set;s.add(t),this.names.set(e,s)}},t.insertRules=function(e,t,s){this.registerName(e,t),this.getTag().insertRules(F(e),s)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(F(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),s=t.length,n="",r=0;r<s;r++){var l=L(r);if(void 0!==l){var a=e.names.get(l),i=t.getGroup(r);if(a&&i&&a.size){var o=C+".g"+r+'[id="'+l+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+i+o+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function J(e){var t,s="";for(t=Math.abs(e);t>52;t=t/52|0)s=Y(t%52)+s;return(Y(t%52)+s).replace(G,"$1-$2")}var Z=function(e,t){for(var s=t.length;s;)e=33*e^t.charCodeAt(--s);return e},X=function(e){return Z(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var s=e[t];if(y(s)&&!E(s))return!1}return!0}var Q=X("5.3.6"),ee=function(){function e(e,t,s){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===s||s.isStatic)&&K(e),this.componentId=t,this.baseHash=Z(Q,t),this.baseStyle=s,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,s){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var l=ye(this.rules,e,t,s).join(""),a=J(Z(this.baseHash,l)>>>0);if(!t.hasNameForId(n,a)){var i=s(l,"."+a,void 0,n);t.insertRules(n,a,i)}r.push(a),this.staticRulesId=a}else{for(var o=this.rules.length,c=Z(this.baseHash,s.hash),d="",u=0;u<o;u++){var p=this.rules[u];if("string"==typeof p)d+=p;else if(p){var h=ye(p,e,t,s),m=Array.isArray(h)?h.join(""):h;c=Z(c,m+u),d+=m}}if(d){var g=J(c>>>0);if(!t.hasNameForId(n,g)){var f=s(d,"."+g,void 0,n);t.insertRules(n,g,f)}r.push(g)}}return r.join(" ")},e}(),te=/^\s*\/\/.*$/gm,se=[":","[",".","#"];function ne(e){var t,s,n,r,l=void 0===e?b:e,a=l.options,i=void 0===a?b:a,c=l.plugins,d=void 0===c?v:c,u=new o(i),p=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(s,n,r,l,a,i,o,c,d,u){switch(s){case 1:if(0===d&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+n),"";default:return n+(0===u?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),m=function(e,n,l){return 0===n&&-1!==se.indexOf(l[s.length])||l.match(r)?e:"."+t};function g(e,l,a,i){void 0===i&&(i="&");var o=e.replace(te,""),c=l&&a?a+" "+l+" { "+o+" }":o;return t=i,s=l,n=new RegExp("\\"+s+"\\b","g"),r=new RegExp("(\\"+s+"\\b){2,}"),u(a||!l?"":l,c)}return u.use([].concat(d,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(s)>0&&(r[0]=r[0].replace(n,m))},h,function(e){if(-2===e){var t=p;return p=[],t}}])),g.hash=d.length?d.reduce((function(e,t){return t.name||M(15),Z(e,t.name)}),5381).toString():"",g}var re=l().createContext(),le=re.Consumer,ae=l().createContext(),ie=(ae.Consumer,new q),oe=ne();function ce(){return(0,r.useContext)(re)||ie}function de(){return(0,r.useContext)(ae)||oe}function ue(e){var t=(0,r.useState)(e.stylisPlugins),s=t[0],n=t[1],a=ce(),o=(0,r.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,r.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:s})}),[e.disableVendorPrefixes,s]);return(0,r.useEffect)((function(){i()(s,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),l().createElement(re.Provider,{value:o},l().createElement(ae.Provider,{value:c},e.children))}var pe=function(){function e(e,t){var s=this;this.inject=function(e,t){void 0===t&&(t=oe);var n=s.name+t.hash;e.hasNameForId(s.id,n)||e.insertRules(s.id,n,t(s.rules,n,"@keyframes"))},this.toString=function(){return M(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),he=/([A-Z])/,me=/([A-Z])/g,ge=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function ve(e){return he.test(e)?e.replace(me,fe).replace(ge,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function ye(e,t,s,n){if(Array.isArray(e)){for(var r,l=[],a=0,i=e.length;a<i;a+=1)""!==(r=ye(e[a],t,s,n))&&(Array.isArray(r)?l.push.apply(l,r):l.push(r));return l}return be(e)?"":E(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(o=e)||o.prototype&&o.prototype.isReactComponent||!t?e:ye(e(t),t,s,n):e instanceof pe?s?(e.inject(s,n),e.getName(n)):e:f(e)?function e(t,s){var n,r,l=[];for(var a in t)t.hasOwnProperty(a)&&!be(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?l.push(ve(a)+":",t[a],";"):f(t[a])?l.push.apply(l,e(t[a],a)):l.push(ve(a)+": "+(n=a,(null==(r=t[a])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c?String(r).trim():r+"px")+";")));return s?[s+" {"].concat(l,["}"]):l}(e):e.toString();var o}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ee(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return y(e)||f(e)?we(ye(g(v,[e].concat(s)))):0===s.length&&1===e.length&&"string"==typeof e[0]?e:we(ye(g(e,s)))}new Set;var Ce=function(e,t,s){return void 0===s&&(s=b),e.theme!==s.theme&&e.theme||t||s.theme},_e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function xe(e){return e.replace(_e,"-").replace(Se,"")}var ke=function(e){return J(X(e)>>>0)};function Me(e){return"string"==typeof e&&!0}var Ne=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Re(e,t,s){var n=e[s];Ne(t)&&Ne(n)?Oe(n,t):e[s]=t}function Oe(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];for(var r=0,l=s;r<l.length;r++){var a=l[r];if(Ne(a))for(var i in a)Pe(i)&&Re(e,a[i],i)}return e}var Fe=l().createContext(),Le=Fe.Consumer;function Ae(e){var t=(0,r.useContext)(Fe),s=(0,r.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?M(8):t?m({},t,{},e):e:M(14)}(e.theme,t)}),[e.theme,t]);return e.children?l().createElement(Fe.Provider,{value:s},e.children):null}var Ie={};function De(e,t,s){var n=E(e),a=!Me(e),i=t.attrs,o=void 0===i?v:i,c=t.componentId,d=void 0===c?function(e,t){var s="string"!=typeof e?"sc":xe(e);Ie[s]=(Ie[s]||0)+1;var n=s+"-"+ke("5.3.6"+s+Ie[s]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,p=t.displayName,g=void 0===p?function(e){return Me(e)?"styled."+e:"Styled("+w(e)+")"}(e):p,f=t.displayName&&t.componentId?xe(t.displayName)+"-"+t.componentId:t.componentId||d,C=n&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,_=t.shouldForwardProp;n&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(s,n,r){return e.shouldForwardProp(s,n,r)&&t.shouldForwardProp(s,n,r)}:e.shouldForwardProp);var S,x=new ee(s,f,n?e.componentStyle:void 0),k=x.isStatic&&0===o.length,M=function(e,t){return function(e,t,s,n){var l=e.attrs,a=e.componentStyle,i=e.defaultProps,o=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,h=function(e,t,s){void 0===e&&(e=b);var n=m({},t,{theme:e}),r={};return s.forEach((function(e){var t,s,l,a=e;for(t in y(a)&&(a=a(n)),a)n[t]=r[t]="className"===t?(s=r[t],l=a[t],s&&l?s+" "+l:s||l):a[t]})),[n,r]}(Ce(t,(0,r.useContext)(Fe),i)||b,t,l),g=h[0],f=h[1],v=function(e,t,s,n){var r=ce(),l=de();return t?e.generateAndInjectStyles(b,r,l):e.generateAndInjectStyles(s,r,l)}(a,n,g),w=s,E=f.$as||t.$as||f.as||t.as||p,C=Me(E),_=f!==t?m({},t,{},f):t,S={};for(var x in _)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?S.as=_[x]:(c?c(x,u,E):!C||u(x))&&(S[x]=_[x]));return t.style&&f.style!==t.style&&(S.style=m({},t.style,{},f.style)),S.className=Array.prototype.concat(o,d,v!==d?v:null,t.className,f.className).filter(Boolean).join(" "),S.ref=w,(0,r.createElement)(E,S)}(S,e,t,k)};return M.displayName=g,(S=l().forwardRef(M)).attrs=C,S.componentStyle=x,S.displayName=g,S.shouldForwardProp=_,S.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,S.styledComponentId=f,S.target=n?e.target:e,S.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var s,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)s=l[n],t.indexOf(s)>=0||(r[s]=e[s]);return r}(t,["componentId"]),l=n&&n+"-"+(Me(e)?e:xe(w(e)));return De(e,m({},r,{attrs:C,componentId:l}),s)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&h()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Te=function(e){return function e(t,s,r){if(void 0===r&&(r=b),!(0,n.isValidElementType)(s))return M(1,String(s));var l=function(){return t(s,r,Ee.apply(void 0,arguments))};return l.withConfig=function(n){return e(t,s,m({},r,{},n))},l.attrs=function(n){return e(t,s,m({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},l}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Te[e]=Te(e)}));var He=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,s,n){var r=n(ye(this.rules,t,s,n).join(""),""),l=this.componentId+e;s.insertRules(l,l,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,s,n){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,s),this.createStyles(e,t,s,n)},e}();function je(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];var a=Ee.apply(void 0,[e].concat(s)),i="sc-global-"+ke(JSON.stringify(a)),o=new He(a,i);function c(e){var t=ce(),s=de(),n=(0,r.useContext)(Fe),l=(0,r.useRef)(t.allocateGSInstance(i)).current;return t.server&&d(l,e,t,n,s),(0,r.useLayoutEffect)((function(){if(!t.server)return d(l,e,t,n,s),function(){return o.removeStyles(l,t)}}),[l,e,t,n,s]),null}function d(e,t,s,n,r){if(o.isStatic)o.renderStyles(e,k,s,r);else{var l=m({},t,{theme:Ce(t,n,c.defaultProps)});o.renderStyles(e,l,s,r)}}return l().memo(c)}function $e(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];var r=Ee.apply(void 0,[e].concat(s)).join(""),l=ke(r);return new pe(l,r)}var Be=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var s=j();return"<style "+[s&&'nonce="'+s+'"',C+'="true"','data-styled-version="5.3.6"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?M(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return M(2);var s=((t={})[C]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=j();return n&&(s.nonce=n),[l().createElement("style",m({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?M(2):l().createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return M(3)},e}(),ze=function(e){var t=l().forwardRef((function(t,s){var n=(0,r.useContext)(Fe),a=e.defaultProps,i=Ce(t,n,a);return l().createElement(e,m({},t,{theme:i,ref:s}))}));return h()(t,e),t.displayName="WithTheme("+w(e)+")",t},Ve=function(){return(0,r.useContext)(Fe)},Ue={StyleSheet:q,masterSheet:ie},We=Te},196:function(e){"use strict";e.exports=window.React}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,s),l.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0,function(){"use strict";var e=window.wp.element,t=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let s=t.split("#");if(1===s.length)return!1;let n=s[1];if("menu"===e){if(-1===n.indexOf("/"))return!1;{let e=n.split("/");return!(e.length<=1)&&e[1]}}return-1===n.indexOf("/")?n:n.split("/")[0]},n=s(669),r=s.n(n),l=window.wp.apiFetch,a=s.n(l);const i=()=>"&nonce="+rsssl_settings.rsssl_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),o=()=>-1!==rsssl_settings.site_url.indexOf("?"),c=e=>{if(o()){let t={headers:{"X-WP-Nonce":rsssl_settings.nonce}};return r().get(rsssl_settings.site_url+e,t).then((e=>e.data))}return a()({path:e})},d=(e,t)=>{if(o()){let s={headers:{"X-WP-Nonce":rsssl_settings.nonce}};return r().post(rsssl_settings.site_url+e,t,s).then((e=>e.data))}return a()({path:e,method:"POST",data:t})},u=()=>-1!==rsssl_settings.site_url.indexOf("?")?"&":"?",p=e=>{let s=t("main"),n={nonce:rsssl_settings.rsssl_nonce};return e.push(n),d("reallysimplessl/v1/fields/set"+u()+s,e)},h=(e,t,s)=>(s&&(s=encodeURIComponent(JSON.stringify(s))),c("reallysimplessl/v1/tests/"+e+u()+"state="+t+i()+"&data="+s)),m=(e,t)=>c("reallysimplessl/v1/tests/"+e+u()+"letsencrypt=1&id="+t+i()),g=(e,t)=>(void 0===t&&(t={}),t.nonce=rsssl_settings.rsssl_nonce,d("reallysimplessl/v1/do_action/"+e,t));var f=window.wp.i18n,v=window.wp.data,b=window.wp.components,y=window.wp.notices,w=()=>{const t=(0,v.useSelect)((e=>e(y.store).getNotices().filter((e=>"snackbar"===e.type))),[]);if(void 0===t)return(0,e.createElement)(e.Fragment,null);const{removeNotice:s}=(0,v.useDispatch)(y.store);return(0,e.createElement)(b.SnackbarList,{className:"edit-site-notices",notices:t,onRemove:s})};class E extends e.Component{constructor(){super(...arguments)}handleClick(e){this.props.selectMainMenu(e)}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let s=rsssl_settings.plugin_url,n=this.props.selectedMainMenuItem;var r=Object.values(this.props.superMenu);r=r.filter((e=>null!==e));let l=t("main");return r=r.filter((e=>!e.default_hidden||l===e.id)),(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:s+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}),(0,e.createElement)("div",{className:"rsssl-header-left"},(0,e.createElement)("nav",{className:"rsssl-header-menu"},(0,e.createElement)("ul",null,r.map(((t,s)=>(0,e.createElement)("li",{key:s},(0,e.createElement)("a",{className:n===t.id?"active":"",onClick:()=>this.handleClick(t.id),href:"#"+t.id.toString()},t.title))))))),(0,e.createElement)("div",{className:"rsssl-header-right"},(0,e.createElement)("a",{className:"rsssl-knowledge-base-link",href:"https://really-simple-ssl.com/knowledge-base",target:"_blank"},(0,f.__)("Documentation","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/really-simple-ssl/",className:"button button-black",target:"_blank"},(0,f.__)("Support","really-simple-ssl")),!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:rsssl_settings.upgrade_link,className:"button button-black",target:"_blank"},(0,f.__)("Go Pro","really-simple-ssl")))),(0,e.createElement)(w,{className:"rsssl-wizard-notices"}))}}var C=E,_=t=>{const{name:s,color:n,size:r}=t,l=s||"bullet",a=n||"black",i=r||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)"};let c="";return"bullet"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"list"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"external-link"===l&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[a],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===l&&(c={html:(0,e.createElement)("svg",{height:i,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,e.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,e.createElement)("g",null,(0,e.createElement)("g",null,(0,e.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,e.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,e.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),(0,e.createElement)("div",{className:"rsssl-icon rsssl-icon-"+l},c.html)},S=e=>function(t){return new Promise((s=>setTimeout((()=>s(t)),e)))};class x extends e.Component{constructor(){super(...arguments)}handleClick(){this.props.highLightField(this.props.notice.output.highlight_field_id)}handleClearCache(e){let t={};t.cache_id=e,g("clear_cache",t).then((e=>{(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Re-started test","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_clear_cache",type:"snackbar",isDismissible:!0}).then(S(3e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_clear_cache")})),this.props.getFields()}))}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let t=this.props.notice,s="premium"===t.output.icon,n=t.output.url&&-1!==t.output.url.indexOf("really-simple-ssl.com");return(0,e.createElement)("div",{className:"rsssl-task-element"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-"+t.output.icon},t.output.label),(0,e.createElement)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:t.output.msg}}),n&&t.output.url&&(0,e.createElement)("a",{target:"_blank",href:t.output.url},(0,f.__)("More info","really-simple-ssl")),t.output.clear_cache_id&&(0,e.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>this.handleClearCache(t.output.clear_cache_id)},(0,f.__)("Re-check","really-simple-ssl")),!s&&!n&&t.output.url&&(0,e.createElement)("a",{className:"rsssl-task-enable button button-secondary",href:t.output.url},(0,f.__)("Fix","really-simple-ssl")),!s&&t.output.highlight_field_id&&(0,e.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:this.handleClick},(0,f.__)("Fix","really-simple-ssl")),t.output.plusone&&(0,e.createElement)("span",{className:"rsssl-plusone"},"1"),t.output.dismissible&&"completed"!==t.output.status&&(0,e.createElement)("div",{className:"rsssl-task-dismiss"},(0,e.createElement)("button",{type:"button","data-id":t.id,onClick:this.props.onCloseTaskHandler},(0,e.createElement)(_,{name:"times"}))))}}var k=x;class M extends e.Component{constructor(){super(...arguments)}render(){let t=this.props.lines;return t||(t=4),(0,e.createElement)("div",{className:"rsssl-placeholder"},Array.from({length:t}).map(((t,s)=>(0,e.createElement)("div",{className:"rsssl-placeholder-line",key:s}))))}}var N=M;class P extends e.Component{constructor(){super(...arguments),this.percentageCompleted=0,this.progressText="",this.filter="all",this.notices=null,this.progressLoaded=!1,this.fields=this.props.fields,this.state={progressText:"",filter:"all",notices:null,percentageCompleted:0,progressLoaded:!1}}componentDidMount(){this.getProgressData=this.getProgressData.bind(this),this.onCloseTaskHandler=this.onCloseTaskHandler.bind(this),this.getProgressData()}componentDidUpdate(){this.fields!==this.props.fields&&(this.fields=this.props.fields,this.getProgressData())}getStyles(){return Object.assign({},{width:this.percentageCompleted+"%"})}getProgressData(){h("progressData","refresh").then((e=>{this.progressText=e.text,this.filter=e.filter,this.percentageCompleted=e.percentage,this.notices=e.notices,this.progressLoaded=!0,this.setState({progressLoaded:this.progressLoaded,progressText:this.progressText,filter:this.filter,notices:this.notices,percentageCompleted:this.percentageCompleted}),this.props.setBlockProps("notices",this.notices)}))}onCloseTaskHandler(e){let t=e.target.closest("button"),s=t.getAttribute("data-id"),n=t.closest(".rsssl-task-element");n.animate({marginLeft:["0px","-1000px"]},{duration:500,easing:"linear",iterations:1,fill:"both"}).onfinish=function(){n.parentElement.removeChild(n)};let r=this.props.BlockProps.notices;return r=r.filter((function(e){return e.id!==s})),this.props.setBlockProps("notices",r),h("dismiss_task",s).then((e=>{this.percentageCompleted=e.percentage,this.setState({percentageCompleted:this.percentageCompleted})}))}render(){let t="";if(this.percentageCompleted<80&&(t+="rsssl-orange"),!this.progressLoaded)return(0,e.createElement)(N,{lines:"9"});let s="all";this.props.BlockProps&&this.props.BlockProps.filterStatus&&(s=this.props.BlockProps.filterStatus);let n=this.notices;return"remaining"===s&&(n=n.filter((function(e){return"open"===e.output.status}))),(0,e.createElement)("div",{className:"rsssl-progress-block"},(0,e.createElement)("div",{className:"rsssl-progress-bar"},(0,e.createElement)("div",{className:"rsssl-progress"},(0,e.createElement)("div",{className:"rsssl-bar "+t,style:this.getStyles()}))),(0,e.createElement)("div",{className:"rsssl-progress-text"},(0,e.createElement)("h1",{className:"rsssl-progress-percentage"},this.percentageCompleted,"%"),(0,e.createElement)("h5",{className:"rsssl-progress-text-span"},this.progressText)),(0,e.createElement)("div",{className:"rsssl-scroll-container"},n.map(((t,s)=>(0,e.createElement)(k,{key:s,index:s,notice:t,getFields:this.props.getFields,onCloseTaskHandler:this.onCloseTaskHandler,highLightField:this.props.highLightField})))))}}var R=P;class O extends e.Component{constructor(){super(...arguments),this.filter="all"}componentDidMount(){this.onClickHandler=this.onClickHandler.bind(this),this.setState({filter:this.filter})}onClickHandler(e){let t=e.target.getAttribute("data-filter");"all"!==t&&"remaining"!==t||(this.filter=t,this.setState({filter:this.filter}),this.props.setBlockProps("filterStatus",t),sessionStorage.rsssl_task_filter=t)}render(){"undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter&&(this.filter=sessionStorage.rsssl_task_filter);let t=0,s=0,n=[];return this.props.BlockProps&&this.props.BlockProps.notices&&(n=this.props.BlockProps.notices,t=n.length,s=n.filter((function(e){return"open"===e.output.status})).length),(0,e.createElement)("div",{className:"rsssl-task-switcher-container rsssl-active-filter-"+this.filter},(0,e.createElement)("span",{className:"rsssl-task-switcher rsssl-all-tasks",onClick:this.onClickHandler,htmlFor:"rsssl-all-tasks","data-filter":"all"},(0,f.__)("All tasks","really-simple-ssl"),(0,e.createElement)("span",{className:"rsssl_task_count"},"(",t,")")),(0,e.createElement)("span",{className:"rsssl-task-switcher rsssl-remaining-tasks",onClick:this.onClickHandler,htmlFor:"rsssl-remaining-tasks","data-filter":"remaining"},(0,f.__)("Remaining tasks","really-simple-ssl"),(0,e.createElement)("span",{className:"rsssl_task_count"},"(",s,")")))}}var F=O;s(145);var L=s(196),A=function(e,t){var s,n=(s=(0,L.useRef)(!0)).current?(s.current=!1,!0):s.current;(0,L.useEffect)((function(){if(!n)return e()}),t)};class I extends e.Component{constructor(){super(...arguments)}render(){let t="",s="",n="";if(-1!==this.props.text.indexOf("%s")){let e=this.props.text.split(/%s/);t=e[0],n=e[1],s=e[2]}else n=this.props.text;let r=this.props.className?this.props.className:"rsssl-link";return(0,e.createElement)(e.Fragment,null,t," ",(0,e.createElement)("a",{className:r,target:this.props.target,href:this.props.url},n),s)}}var D=I;class T extends e.Component{constructor(){super(...arguments)}componentDidMount(){}render(){let t=this.props.field,s=[];return s.name=1==t.value?"circle-check":"circle-times",s.color=1==t.value?"green":"red",(0,e.createElement)("div",{className:"rsssl-new-feature"},(0,e.createElement)(_,{name:s.name,color:s.color}),(0,e.createElement)("div",{className:"rsssl-new-feature-label"},1==t.value&&t.new_features_block.active,1!=t.value&&t.new_features_block.readmore.length>0&&(0,e.createElement)(D,{target:"_blank",text:t.new_features_block.inactive+" - "+(0,f.__)("%sRead more%s","really-simple-ssl"),url:t.new_features_block.readmore})))}}var H=T;class j extends e.Component{constructor(){super(...arguments)}componentDidMount(){}render(){if(this.props.fields&&0==this.props.fields.length)return(0,e.createElement)(N,null);let t=this.props.fields;return t=t.filter((e=>e.new_features_block)),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-new-features"},t.map(((s,n)=>(0,e.createElement)(H,{key:n,index:n,field:s,fields:t})))),(0,e.createElement)("div",{className:"rsssl-new-feature-desc"},(0,e.createElement)("p",null,(0,f.__)("Improve WordPress security.","really-simple-ssl")," ",(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("Check our %sdocumentation%s","really-simple-ssl"),url:"https://really-simple-ssl.com/instructions/about-hardening-features"})," ",(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("or use the %sWordPress forum%s.","really-simple-ssl"),url:"https://wordpress.org/support/plugin/really-simple-ssl/"}))))}}var $=j;class B extends e.Component{constructor(){super(...arguments)}render(){return(0,e.createElement)("a",{className:"button button-default",href:"#settings"},(0,f.__)("Settings","really-simple-ssl"))}}var z={SecurityFeaturesBlock:$,SecurityFeaturesFooter:B,ProgressBlock:R,ProgressHeader:F,ProgressFooter:t=>{const[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{h("ssl_status_data").then((e=>{n(e.certificate_is_valid),l(!0)}))}),[]),!r)return(0,e.createElement)(e.Fragment,null);let a=t.fields.filter((e=>"redirect"===e.id))[0].value,i=t.fields.filter((e=>"ssl_enabled"===e.id))[0].value,o=rsssl_settings.wpconfig_fix_required,c=t.fields.filter((e=>"mixed_content_fixer"===e.id))[0].value,d="wp_redirect"===a||"htaccess"===a,u=i?(0,f.__)("SSL Activated","really-simple-ssl"):(0,f.__)("SSL not activated","really-simple-ssl"),p=i?"circle-check":"circle-times",m=i?"green":"red",g=d?"circle-check":"circle-times",v=d?"green":"red",b=c?"circle-check":"circle-times",y=c?"green":"red",w=o?"disabled":"";return(0,e.createElement)(e.Fragment,null,!i&&(0,e.createElement)("button",{disabled:w,onClick:()=>{t.setShowOnBoardingModal(!0)},className:"button button-primary"},(0,f.__)("Activate SSL","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,e.createElement)("span",{className:"rsssl-footer-left"},"Really Simple SSL Pro ",rsssl_settings.pro_version),!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:rsssl_settings.upgrade_link,target:"_blank",className:"button button-default"},(0,f.__)("Go Pro","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(_,{name:p,color:m}),(0,e.createElement)("div",null,u)),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(_,{name:b,color:y}),(0,e.createElement)("div",null,(0,f.__)("Mixed content","really-simple-ssl"))),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(_,{name:g,color:v}),(0,e.createElement)("div",null,(0,f.__)("301 redirect","really-simple-ssl"))))},SslLabs:t=>{const[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)([]),[a,i]=(0,e.useState)(!1),o=(0,e.useRef)(!1),c=(0,e.useRef)(!1),d=(0,e.useRef)(!1),u=(0,e.useRef)(!1);(0,e.useEffect)((()=>{a||h("ssltest_get").then((e=>{if(e.hasOwnProperty("host")){let t=b(e);n(t),l(t.endpointData),i(!0)}}))}));const p=()=>!s,m=()=>-1!==window.location.host.indexOf("localhost");A((()=>{if(m())return;let e=!!t.BlockProps.hasOwnProperty("sslScan")&&t.BlockProps.sslScan;"active"===e&&s.summary&&s.summary.progress>=100&&(c.current=!0,o.current=!1,n(!1),l(!1)),"active"===e&&"ERROR"===s.status&&(c.current=!0,n(!1),l(!1));let r=s&&"READY"!==s.status,a="active"===e;c.current&&(r=!0);let i=!(s.errors||"ERROR"===s.status)&&(r||a);!d.current&&i?(t.setBlockProps("sslScan","active"),d.current=!0,o.current||(v(),u.current=setInterval((function(){v()}),3e3),o.current=!0)):s&&"READY"===s.status&&(t.setBlockProps("sslScan","completed"),clearInterval(u.current))}));const v=()=>{w().then((e=>{if(e&&"ERROR"===e.status)e=b(e),n(e),t.setBlockProps("sslScan","completed"),clearInterval(u.current);else if(e.endpoints&&e.endpoints.filter((e=>"Ready"===e.statusMessage)).length>0){let t=e.endpoints.filter((e=>"Ready"===e.statusMessage)),s=t[t.length-1].ipAddress;y(s).then((t=>{if(!t.errors&&r){let s=!1;r.forEach((function(e,n){e.ipAddress===t.ipAddress&&(r[n]=t,s=!0)})),s||(r[r.length]=t),l(r),e.endpointData=r}e.errors||g("store_ssl_labs",e).then((e=>{})),e=b(e),n(e),d.current=!1}))}else l([]),e.endpointData=r,e=b(e),n(e),e.errors||g("store_ssl_labs",e).then((e=>{})),d.current=!1}))},b=e=>{let s=100,n=e.progress?e.progress:0,r=e.startTime?e.startTime:"",l=e.statusMessage?e.statusMessage:"",a=e.grade?e.grade:"?",i="";if(e.endpoints){s=100*e.endpoints.length;let t=e.endpoints.filter((e=>"Ready"===e.statusMessage)),r=t.length,o=t[r-1],c=e.endpoints.filter((e=>"In progress"===e.statusMessage))[0],d=0;c&&(d=c.progress?c.progress:0,l=c.statusDetailsMessage,i=c.ipAddress),o&&(a=o.grade),n=(100*r+d)/e.endpoints.length}e.errors&&(a="?",l=e.errors[0].message,n=100);let o={};return n>=100&&t.setBlockProps("sslScan","completed"),o.grade=a,o.startTime=r,o.statusMessage=l,o.ipAddress=i,o.progress=n,e.summary=o,e},y=e=>{const t="https://api.ssllabs.com/api/v3/getEndpointData?host="+window.location.host+"&s="+e;let s={};return s.url=t,g("ssltest_run",s).then((e=>JSON.parse(e)))},w=e=>{let t="";c.current&&(c.current=!1,t="&startNew=on",n(!1));const s="https://api.ssllabs.com/api/v3/analyze?host="+window.location.host+t;let r={};return r.url=s,g("ssltest_run",r).then((e=>JSON.parse(e)))},E=e=>{let t=0;return t=0==e?0:e<128?20:e<256?80:100,t},C=(t,s)=>(0,e.createElement)("div",{className:"rsssl-score-container"},(0,e.createElement)("div",{className:"rsssl-score-snippet "+t},s));let S="rsssl-inactive",x=s?s.summary.progress:0,k=!!s&&s.summary.startTime,M="";if(k){let e=new Date;e.setTime(k),M=e.toLocaleString()}else M=(0,f.__)("No test started yet","really-simple-ssl");let N=!!s&&s.summary.statusMessage,P=s?s.summary.grade:"?";s&&s.summary.ipAddress,s&&"READY"===s.status&&(S=-1!==P.indexOf("A")?"rsssl-success":"rsssl-error"),p()&&(S="rsssl-inactive");let R=p()?"inactive":P,O=window.location.protocol+"//"+window.location.host,F="https://www.ssllabs.com/analyze.html?d="+encodeURIComponent(O),L=!1,I="",D="black";return m()?(L=!0,D="red",I=(0,f.__)("Not available on localhost","really-simple-ssl")):s&&(s.errors||"ERROR"===s.status)?(L=!0,D="red",I=N):s&&x<100&&(L=!0,D="orange",I=N),(0,e.createElement)("div",{className:S},(0,e.createElement)("div",{className:"rsssl-gridblock-progress-container "+S},(0,e.createElement)("div",{className:"rsssl-gridblock-progress",style:(()=>{let e=0;return s&&s.summary.progress?e=s.summary.progress:0==e&&"active"===t.BlockProps.sslScan&&(e=5),Object.assign({},{width:e+"%"})})()})),(0,e.createElement)("div",{className:"rsssl-ssl-test-container "+S},(0,e.createElement)("div",{className:"rsssl-ssl-test "},(0,e.createElement)("div",{className:"rsssl-ssl-test-information"},(()=>{let t="processing";return p()&&(t="inactive"),r&&r.length>0&&(t="success",r.forEach((function(e,s){e.details.protocols.forEach((function(e,s){"1.1"===e.version&&(t="error")}))}))),(0,e.createElement)(e.Fragment,null,"inactive"===t&&C("rsssl-test-inactive","Protocol support"),"processing"===t&&C("rsssl-test-processing","Protocol support..."),"error"===t&&C("rsssl-test-error","Supports TLS 1.1"),"success"===t&&C("rsssl-test-success","No TLS 1.1"))})(),(()=>{let t="processing";return p()&&(t="inactive"),r&&r.length>0&&(t=r.filter((function(e){return"present"!==e.details.hstsPolicy.status})).length>0?"error":"success"),(0,e.createElement)(e.Fragment,null,"inactive"===t&&C("rsssl-test-inactive","HSTS"),"processing"===t&&C("rsssl-test-processing","HSTS..."),"error"===t&&C("rsssl-test-error","No HSTS header"),"success"===t&&C("rsssl-test-success","HSTS header detected"))})(),(()=>{let t="processing";return p()&&(t="inactive"),r&&r.length>0&&(t=r.filter((function(e){return-1===e.grade.indexOf("A")})).length>0?"error":"success"),(0,e.createElement)(e.Fragment,null,"inactive"===t&&C("rsssl-test-inactive","Certificate"),"processing"===t&&C("rsssl-test-processing","Certificate..."),"error"===t&&!L&&C("rsssl-test-error","Certificate issue"),"success"===t&&C("rsssl-test-success","Valid certificate"))})(),(()=>{let t=0,s="rsssl-test-processing";if(p()&&(s="rsssl-test-inactive"),r&&r.length>0){status="success";let e=256,n=128;r.forEach((function(t,s){t.details.suites.forEach((function(t,s){t.list.forEach((function(t,s){e=t.cipherStrength<e?t.cipherStrength:e,n=t.cipherStrength>n?t.cipherStrength:n}))}))})),t=(E(e)+E(n))/2,t=Math.round(t),s=t>70?"rsssl-test-success":"rsssl-test-error"}return(0,e.createElement)(e.Fragment,null,C(s,(0,f.__)("Cipher strength","really-simple-ssl")+" "+t+"%"))})()),(0,e.createElement)("div",{className:"rsssl-ssl-test-grade rsssl-grade-"+R},!p()&&(0,e.createElement)("span",null,P),p()&&(0,e.createElement)("div",null)))),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(_,{name:"info",color:D})),(0,e.createElement)("div",{className:"rsssl-detail rsssl-status-"+D},L&&(0,e.createElement)(e.Fragment,null,I),!L&&(0,e.createElement)(e.Fragment,null," ",(0,f.__)("What does my score mean?","really-simple-ssl")," ",(0,e.createElement)("a",{href:"https://really-simple-ssl.com/instructions/about-ssl-labs/",target:"_blank"},(0,f.__)("Read more","really-simple-ssl"))))),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(_,{name:"list",color:"black"})),(0,e.createElement)("div",{className:"rsssl-detail"},(0,f.__)("Last check:","really-simple-ssl")," ",M)),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(_,{name:"external-link",color:"black"})),(0,e.createElement)("div",{className:"rsssl-detail"},(0,e.createElement)("a",{href:F,target:"_blank"},(0,f.__)("View detailed report on Qualys SSL Labs","really-simple-ssl")))))},SslLabsFooter:t=>{let s=!(!t.BlockProps||!t.BlockProps.hasOwnProperty("sslScan"))&&t.BlockProps.sslScan,n="active"===s||-1!==window.location.host.indexOf("localhost");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{disabled:n,onClick:e=>{t.setBlockProps("sslScan","active")},className:"button button-default"},"paused"===s&&(0,f.__)("Continue SSL Health check","really-simple-ssl"),"paused"!==s&&(0,f.__)("Check SSL Health","really-simple-ssl")))},OtherPlugins:t=>{const[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(""),[a,i]=(0,e.useState)(!1);(0,e.useEffect)((()=>{s||h("otherpluginsdata").then((e=>{e.forEach((function(t,s){e[s].pluginActionNice=u(t.pluginAction)})),i(e),n(!0)}))}));const o=(e,t,s)=>{s&&s.preventDefault();let n={};n.slug=e,n.pluginAction=t;let r=c(e);"download"===t?r.pluginAction="downloading":"activate"===t&&(r.pluginAction="activating"),r.pluginActionNice=u(r.pluginAction),d(e,r),"installed"!==t&&"upgrade-to-premium"!==t&&g("plugin_actions",n).then((t=>{r=t,d(e,r),o(e,r.pluginAction)}))},c=e=>a.filter((t=>t.slug===e))[0],d=(e,t)=>{a.forEach((function(s,n){s.slug===e&&(a[n]=t)})),i(a),l(e+t.pluginAction)},u=e=>({download:(0,f.__)("Install","really-simple-ssl"),activate:(0,f.__)("Activate","really-simple-ssl"),activating:(0,f.__)("Activating...","really-simple-ssl"),downloading:(0,f.__)("Downloading...","really-simple-ssl"),"upgrade-to-premium":(0,f.__)("Downloading...","really-simple-ssl")}[e]);return s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-other-plugins-container"},a.map(((t,s)=>((t,s)=>(0,e.createElement)("div",{key:s,className:"rsssl-other-plugins-element rsssl-"+t.slug},(0,e.createElement)("a",{href:t.wordpress_url,target:"_blank",title:t.title},(0,e.createElement)("div",{className:"rsssl-bullet"}),(0,e.createElement)("div",{className:"rsssl-other-plugins-content"},t.title)),(0,e.createElement)("div",{className:"rsssl-other-plugin-status"},"upgrade-to-premium"===t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{target:"_blank",href:t.upgrade_url},(0,f.__)("Upgrade","really-simple-ssl"))),"upgrade-to-premium"!==t.pluginAction&&"installed"!==t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#",onClick:e=>o(t.slug,t.pluginAction,e)},t.pluginActionNice)),"installed"===t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Installed","really-simple-ssl")))))(t,s))))):(0,e.createElement)(N,{lines:"3"})}};class V extends e.Component{constructor(){super(...arguments),this.footerHtml=this.props.block.footer.data,this.highLightField=this.highLightField.bind(this),this.setBlockProps=this.setBlockProps.bind(this);let e=this.props.block.content.data,t=this.props.block.footer.data;this.state={content:"",testDisabled:!1,footerHtml:this.props.block.footer.html,BlockProps:[],content:e,footer:t}}setBlockProps(e,t){let{BlockProps:s}=this.state;s.hasOwnProperty(e)&&s[e]===t||(s[e]=t,this.setState({BlockProps:s}))}highLightField(e){this.props.highLightField(e)}render(){let{content:t,footer:s,BlockProps:n}=this.state,r=this.props.block,l="rsssl-grid-item "+r.class+" rsssl-"+r.id;"react"===this.props.block.content.type&&(t=this.props.block.content.data),"react"===this.props.block.footer.type&&(s=this.props.block.footer.data);let a={getFields:this.props.getFields,saveChangedFields:this.props.saveChangedFields,setShowOnBoardingModal:this.props.setShowOnBoardingModal,setBlockProps:this.setBlockProps,BlockProps:n,runTest:this.runTest,fields:this.props.fields,isApiLoaded:this.props.isApiLoaded,highLightField:this.highLightField,selectMainMenu:this.props.selectMainMenu};return(0,e.createElement)("div",{className:l},(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},r.title),(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},r.controls&&"url"===r.controls.type&&(0,e.createElement)("a",{href:r.controls.data},(0,f.__)("Instructions","really-simple-ssl")),r.controls&&"html"===r.controls.type&&(0,e.createElement)("span",{className:"rsssl-header-html",dangerouslySetInnerHTML:{__html:r.controls.data}}),r.controls&&"react"===r.controls.type&&wp.element.createElement(z[r.controls.data],a))),"react"!==r.content.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-content",dangerouslySetInnerHTML:{__html:t}}),"react"===r.content.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-content"},wp.element.createElement(z[t],a)),"html"===r.footer.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-footer",dangerouslySetInnerHTML:{__html:this.footerHtml}}),"react"===r.footer.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-footer"},wp.element.createElement(z[s],a)))}}var U=V;class W extends e.Component{constructor(){super(...arguments)}render(){let t=rsssl_settings.blocks;return(0,e.createElement)(e.Fragment,null,t.map(((t,s)=>(0,e.createElement)(U,{key:s,block:t,setShowOnBoardingModal:this.props.setShowOnBoardingModal,isApiLoaded:this.props.isAPILoaded,fields:this.props.fields,highLightField:this.props.highLightField,selectMainMenu:this.props.selectMainMenu,getFields:this.props.getFields}))))}}var q=W;const G=(e,t)=>{let s=t.length;for(let n=0;n<s;n++)if(t[n]==e)return!0;return!1};class Y extends e.Component{constructor(){super(...arguments)}handleClick(){this.props.selectMenu(this.props.menuItem.id)}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let t=this.props.selectedMenuItem===this.props.menuItem.id;if(this.props.menuItem.menu_items)for(const e of this.props.menuItem.menu_items)e.id===this.props.selectedMenuItem&&(t=!0);let s=t?" rsssl-active":"";s+=this.props.menuItem.featured?" rsssl-featured":"",s+=this.props.menuItem.premium&&!rsssl_settings.pro_plugin_active?" rsssl-premium":"";let n="#"+this.props.selectedMainMenuItem+"/"+this.props.menuItem.id;return(0,e.createElement)(e.Fragment,null,this.props.menuItem.visible&&(0,e.createElement)("div",{className:"rsssl-menu-item"+s},(0,e.createElement)("a",{href:n,onClick:()=>this.handleClick()},(0,e.createElement)("span",null,this.props.menuItem.title),this.props.menuItem.featured&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"rsssl-menu-item-featured-pill"},(0,f.__)("New","really-simple-ssl")))),this.props.menuItem.menu_items&&t&&(0,e.createElement)("div",{className:"rsssl-submenu-item"},this.props.menuItem.menu_items.map(((t,s)=>t.visible&&(0,e.createElement)(Y,{key:s,menuItem:t,selectMenu:this.props.selectMenu,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem}))))))}}var J=Y;class Z extends e.Component{constructor(){super(...arguments)}render(){let t=this.props.menu.menu_items.filter((e=>!0===e.premium)).length>0;return this.props.isAPILoaded?(0,e.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item"},(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h1",{className:"rsssl-h4"},this.props.menu.title)),(0,e.createElement)("div",{className:"rsssl-grid-item-content"},(0,e.createElement)("div",{className:"rsssl-wizard-menu-items"},this.props.menu.menu_items.map(((t,s)=>(0,e.createElement)(J,{key:s,isAPILoaded:this.props.isAPILoaded,menuItem:t,selectMenu:this.props.selectMenu,selectStep:this.props.selectStep,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,getPreviousAndNextMenuItems:this.props.getPreviousAndNextMenuItems}))),t&&!rsssl_settings.pro_plugin_active&&(0,e.createElement)("div",{className:"rsssl-premium-menu-item"},(0,e.createElement)("div",null,(0,e.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-black"},(0,f.__)("Go Pro","really-simple-ssl")))))),(0,e.createElement)("div",{className:"rsssl-grid-item-footer"})):(0,e.createElement)(N,null)}}var X=Z;class K extends e.Component{constructor(){super(...arguments),this.noticesLoaded=!1,this.fieldsUpdateComplete=!1,this.licenseStatus="invalid",this.getLicenseNotices=this.getLicenseNotices.bind(this),this.state={licenseStatus:"invalid",noticesLoaded:!1,notices:[]}}getLicenseNotices(){return h("licenseNotices","refresh").then((e=>e))}componentDidMount(){this.props.highLightField(""),this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}componentDidUpdate(e){!this.fieldsUpdateComplete&&this.props.fieldsUpdateComplete&&this.getLicenseNotices().then((e=>{this.fieldsUpdateComplete=this.props.fieldsUpdateComplete,this.props.setPageProps("licenseStatus",e.licenseStatus),this.notices=e.notices,this.licenseStatus=e.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}))}onChangeHandler(e){this.fieldsUpdateComplete=!1;let t=this.props.fields,s=this.props.field;t[this.props.index].value=e,this.props.saveChangedFields(s.id),this.setState({fields:t})}onCloseTaskHandler(){}toggleActivation(){this.setState({noticesLoaded:!1});const{licenseStatus:e}=this.state;if("valid"===e)h("deactivate_license").then((e=>{this.props.setPageProps("licenseStatus",e.licenseStatus),this.notices=e.notices,this.licenseStatus=e.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}));else{let e={};e.license=this.props.field.value,g("activate_license",e).then((e=>{this.props.setPageProps("licenseStatus",e.licenseStatus),this.notices=e.notices,this.licenseStatus=e.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}))}}render(){const{noticesLoaded:t,notices:s,licenseStatus:n}=this.state;let r=this.props.field,l=r.value;return this.props.fields,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:r.id},r.label),(0,e.createElement)("div",{className:"rsssl-license-field"},(0,e.createElement)("input",{className:"components-text-control__input",type:"password",id:r.id,value:l,onChange:e=>this.onChangeHandler(e.target.value)}),(0,e.createElement)("button",{className:"button button-default",onClick:()=>this.toggleActivation()},"valid"===n&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Deactivate","really-simple-ssl")),"valid"!==n&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Activate","really-simple-ssl"))))),!t&&(0,e.createElement)(N,null),t&&s.map(((t,s)=>(0,e.createElement)(k,{key:s,index:s,notice:t,onCloseTaskHandler:this.onCloseTaskHandler,highLightField:""}))))}}var Q=K;class ee extends e.Component{constructor(){super(...arguments)}onChangeHandler(e){let t=this.props.fields,s=this.props.field;t[this.props.index].value=e,this.props.saveChangedFields(s.id),this.setState({fields:t})}render(){let t=this.props.field,s=t.value;return this.props.fields,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:t.id},t.label),(0,e.createElement)("input",{className:"components-text-control__input",type:"password",id:t.id,value:s,onChange:e=>this.onChangeHandler(e.target.value)})))}}var te=ee;class se extends e.Component{constructor(){super(...arguments),this.disabled=!1}onChangeHandler(e){let t=this.props.fields,s=this.props.field;s.value=e,t[this.props.index].value=e,this.disabled=!0;let n=[];this.props.handleNextButtonDisabled(!0),n.push(s),p(n).then((e=>{this.props.updateFields(e.fields),this.disabled=!1,this.props.handleNextButtonDisabled(!1)}))}render(){let t=this.props.field.value,s=this.props.field,n=[];if(s.options)for(var r in s.options)if(s.options.hasOwnProperty(r)){let e={};e.label=s.options[r],e.value=r,n.push(e)}return(0,e.createElement)(b.SelectControl,{label:s.label,onChange:e=>this.onChangeHandler(e),value:t,options:n,disabled:this.disabled})}}var ne=se,re=t=>{const s=t.action;if(A((()=>{"challenge_directory_reachable"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,f.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl")),"check_key_directory"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,f.__)("The key directory is needed to store the generated keys.","really-simple-ssl")+" "+(0,f.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl")),"check_certs_directory"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,f.__)("The certificate will get stored in this directory.","really-simple-ssl")+" "+(0,f.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl"))})),!s)return(0,e.createElement)(e.Fragment,null);const n=()=>(t.updateField("verification_type","dns"),m("update_verification_type","dns").then((e=>{t.selectMenu("le-dns-verification"),(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Switched to DNS","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then(S(3e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})));return(0,e.createElement)("div",{className:"rsssl-test-results"},"error"===s.status&&(0,e.createElement)("h4",null,(0,f.__)("Next step","really-simple-ssl")),"error"===s.status&&"challenge_directory_reachable"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("p",null,(0,f.__)("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,e.createElement)(b.Button,{variant:"secondary",onClick:()=>n()},(0,f.__)("Switch to DNS verification","really-simple-ssl"))),"error"!==s.status&&"cpanel"===rsssl_settings.hosting_dashboard&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.","really-simple-ssl"),url:"https://really-simple-ssl.com/lets-encrypt-authorization-with-dns"})," ",(0,f.__)("Please note that auto-renewal with a DNS challenge might not be possible.","really-simple-ssl")),(0,e.createElement)(b.Button,{variant:"secondary",onClick:()=>n()},(0,f.__)("Switch to DNS verification","really-simple-ssl"))),"error"===s.status&&"check_challenge_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,f.__)("Create a challenge directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,f.__)("Navigate in FTP or File Manager to the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Create a folder called “.well-known”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Click the refresh button.","really-simple-ssl"))),(0,e.createElement)("h4",null,(0,f.__)("Or you can switch to DNS verification","really-simple-ssl")),(0,e.createElement)("p",null,(0,f.__)("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,e.createElement)(b.Button,{variant:"secondary",onClick:()=>n()},(0,f.__)("Switch to DNS verification","really-simple-ssl"))),"error"===s.status&&"check_key_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,f.__)("Create a key directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,f.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Create a folder called “ssl”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Click the refresh button.","really-simple-ssl")))),"error"===s.status&&"check_certs_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,f.__)("Create a certs directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,f.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Create a folder called “ssl”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,f.__)("Click the refresh button.","really-simple-ssl")))))},le=t=>{const s=t.action,[n,r]=(0,e.useState)(!1);return A((()=>{s&&"challenge_directory_reachable"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,f.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl"));let e=!!s&&s.output;void 0!==e&&0!==e.length||(e=!1),e&&r(e)})),(0,e.createElement)(e.Fragment,null,n&&n.length>0&&(0,e.createElement)("div",{className:"rsssl-test-results"},(0,e.createElement)("h4",null,(0,f.__)("Next step","really-simple-ssl")),(0,e.createElement)("p",null,(0,f.__)("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.","really-simple-ssl"),(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("Read more","really-simple-ssl"),url:"https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns"})),(0,e.createElement)("div",{className:"rsssl-dns-text-records"},(0,e.createElement)("div",{key:0},(0,e.createElement)("div",{className:"rsssl-dns-domain"},"@/",(0,f.__)("domain","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-dns-field"},(0,f.__)("Value","really-simple-ssl"))),n.map(((t,s)=>(0,e.createElement)("div",{key:s+1},(0,e.createElement)("div",{className:"rsssl-dns-"},"_acme-challenge.",t.domain),(0,e.createElement)("div",{className:"rsssl-dns-field rsssl-selectable"},t.token)))))),(0,e.createElement)("div",{className:"rsssl-test-results"},(0,e.createElement)("p",null,(0,f.__)("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")),(0,e.createElement)(b.Button,{variant:"secondary",onClick:()=>(t.updateField("verification_type","dir"),m("update_verification_type","dir").then((e=>{t.selectMenu("le-directories"),(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Switched to directory","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then(S(3e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})))},(0,f.__)("Switch to directory verification","really-simple-ssl"))))},ae=t=>{const s=t.action;return s?(0,e.createElement)("div",{className:"rsssl-test-results"},"error"===s.status&&"verify_dns"===s.action&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,f.__)("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")," ",(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl"),url:"https://mxtoolbox.com/SuperTool.aspx"}),(0,f.__)("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")," "),(0,e.createElement)(b.Button,{variant:"secondary",onClick:()=>m("skip_dns_check").then((e=>{t.restartTests(),(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Skip DNS verification ","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_skip_dns",type:"snackbar",isDismissible:!0}).then(S(3e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_skip_dns")}))}))},(0,f.__)("Skip DNS check","really-simple-ssl")))):(0,e.createElement)(e.Fragment,null)},ie=t=>{const[s,n]=(0,e.useState)([]),[r,l]=(0,e.useState)(!1),[a,o]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!0),[y,w]=(0,e.useState)(""),[E,C]=(0,e.useState)(!1),[S,x]=(0,e.useState)(!1),[k,M]=(0,e.useState)(0);A((()=>{k<100&&E&&"main_site_activated"===S&&h("activate_ssl_networkwide").then((e=>{e.success&&(M(e.progress),e.progress>=100&&R("ssl_enabled","","success"))}))})),(0,e.useEffect)((()=>{P(!1)}),[]);const P=e=>{(e=>c("reallysimplessl/v1/onboarding"+u()+"forceRefresh="+e+i()))(e).then((e=>{let t=e.steps;C(e.networkwide),l(e.ssl_detection_overridden),v(!e.ssl_detection_overridden),o(e.certificate_valid),p(e.ssl_enabled),t[0].visible=!0,e.ssl_enabled&&t.length>1&&(t[0].visible=!1,t[1].visible=!0),x(e.network_activation_status),"completed"===e.network_activation_status&&M(100),n(t),w("initial")}))},R=(e,t,r)=>{let l=s;l.forEach((function(s,n){l[n].items.forEach((function(s,a){if(s.id===e){let e=l[n].items[a];e.current_action=t,r&&(e.status=r),l[n].items[a]=e}}))})),n(l),w(e+t+r)};return(0,e.createElement)(e.Fragment,null,!y&&(0,e.createElement)(N,{lines:"12"}),y&&s.map(((i,o)=>{const{title:c,subtitle:d,items:u,info_text:m,visible:y}=i;return(0,e.createElement)("div",{className:"rsssl-modal-content-step",key:o,style:{display:y?"block":"none"}},c&&(0,e.createElement)("h2",{className:"rsssl-modal-subtitle"},c),d&&(0,e.createElement)("div",{className:"rsssl-modal-description"},d),(0,e.createElement)("ul",null,(s=>s.map(((s,n)=>{let{title:r,current_action:l,action:a,status:i,button:o,id:c}=s;"ssl_enabled"===c&&E&&(k>=100?(i="success",r=(0,f.__)("SSL has been activated network wide","really-simple-ssl")):(i="processing",r=(0,f.__)("Processing activation of subsites networkwide","really-simple-ssl")));const d={inactive:{icon:"info",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"},processing:{icon:"file-download",color:"red"}},u=d[i].icon,p=d[i].color,h={activate_setting:(0,f.__)("Activating...","really-simple-ssl"),activate:(0,f.__)("Activating...","really-simple-ssl"),install_plugin:(0,f.__)("Installing...","really-simple-ssl"),error:(0,f.__)("Failed","really-simple-ssl"),completed:(0,f.__)("Finished","really-simple-ssl")};let m="";o&&(m=o,"none"!==l&&(m=h[l],"failed"===l&&(m=h.error)));let v=o&&o===m;return(0,e.createElement)("li",{key:n},(0,e.createElement)(_,{name:u,color:p}),r,"ssl_enabled"===c&&E&&"main_site_activated"===S&&(0,e.createElement)(e.Fragment,null," - ",k<100&&(0,e.createElement)(e.Fragment,null,(0,f.__)("working","really-simple-ssl")," ",k,"%"),k>=100&&(0,f.__)("completed","really-simple-ssl")),o&&(0,e.createElement)(e.Fragment,null," - ",v&&(0,e.createElement)(b.Button,{className:"button button-secondary",isLink:!0,onClick:()=>((e,s)=>{let n={};n.id=e,R(e,s,!1),g(s,n).then((r=>{if(r.success){"activate_setting"===s&&t.getFields();let l=r.next_action;"none"!==l&&"completed"!==l?(R(e,l,!1),g(l,n).then((t=>{t.success?R(e,"completed","success"):R(e,"failed","error")})).catch((t=>{R(e,"failed","error")}))):R(e,"completed","success")}else R(e,"failed","error")})).catch((t=>{R(e,"failed","error")}))})(c,a)},m),!v&&(0,e.createElement)(e.Fragment,null,m)))})))(u)),a&&m&&(0,e.createElement)("div",{className:"rsssl-modal-description",dangerouslySetInnerHTML:{__html:m}}),!a&&(0,e.createElement)("div",{className:"rsssl-modal-description"},(0,e.createElement)("a",{href:"#",onClick:e=>(e=>{e.preventDefault(),s.forEach((function(e,t){"activate_ssl"===e.id&&e.items.forEach((function(e,n){"error"===e.status&&(s[t].items[n].status="processing",s[t].items[n].title=(0,f.__)("Re-checking SSL certificate, please wait...","really-simple-ssl"))}))})),n(s),w(!0),setTimeout((function(){P(!0)}),1e3)})(e)},(0,f.__)("Refresh SSL status","really-simple-ssl"))," ",(0,f.__)("The SSL detection method is not 100% accurate.","really-simple-ssl")," ",(0,f.__)("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-modal-content-step-footer"},(()=>{let i=E?(0,f.__)("Activate SSL networkwide","really-simple-ssl"):(0,f.__)("Activate SSL","really-simple-ssl");return s[0].visible&&s.length>1?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{disabled:!a&&!r,className:"button button-primary",onClick:()=>{w(!1),window.location.href.replace("http://","https://"),h("activate_ssl").then((e=>{s[0].visible=!1,s[1].visible=!0,e.success&&(n(s),w(!0),p(e.success),t.updateField("ssl_enabled",!0),e.site_url_changed?window.location.reload():(t.getFields(),E&&x("main_site_activated")))}))}},i),a&&!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-default"},(0,f.__)("Improve Security with PRO","really-simple-ssl")),!a&&(0,e.createElement)("button",{className:"button button-default",onClick:()=>{t.isModal&&t.dismissModal(),window.location.href=rsssl_settings.letsencrypt_url}},(0,f.__)("Install SSL","really-simple-ssl")),!a&&(0,e.createElement)(b.ToggleControl,{label:(0,f.__)("Override SSL detection","really-simple-ssl"),checked:r,onChange:e=>{l(e);let t={};t.overrideSSL=e,g("override_ssl_detection",t).then((t=>{v(!e)}))}})):s.length>1&&s[1].visible||s[0].visible?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"button button-primary",onClick:()=>{t.isModal&&t.dismissModal(),t.selectMainMenu("dashboard")}},(0,f.__)("Go to Dashboard","really-simple-ssl")),(0,e.createElement)("button",{className:"button button-default",onClick:()=>{t.dismissModal()}},(0,f.__)("Dismiss","really-simple-ssl"))):void 0})()))})))},oe=t=>(0,e.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,e.createElement)(ie,{selectMainMenu:t.selectMainMenu})),ce=t=>{const s=t.action,[n,r]=(0,e.useState)(!1);A((()=>{s&&"warning"===s.status&&n&&n.generated_by_rsssl&&(t.addHelp(t.field.id,"default",(0,f.__)("This is the certificate, which you need to install in your hosting dashboard.","really-simple-ssl"),(0,f.__)("Certificate (CRT)","really-simple-ssl")),t.addHelp(t.field.id,"default",(0,f.__)("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.","really-simple-ssl"),(0,f.__)("Private Key (KEY)","really-simple-ssl")),t.addHelp(t.field.id,"default",(0,f.__)("The CA Bundle will sometimes be automatically detected. If not, you can use this file.","really-simple-ssl"),(0,f.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl"))),!s||"error"!==s.status&&"warning"!==s.status||m("installation_data").then((e=>{e&&r(e.output)}))})),(0,e.useEffect)((()=>{}));const l=e=>{let t,s=document.querySelector(".rsssl-"+e).innerText;const n=document.createElement("textarea");n.value=s,document.body.appendChild(n),n.select();try{t=document.execCommand("copy")}catch(e){t=!1}document.body.removeChild(n),(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Copied!","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_copied_data",type:"snackbar",isDismissible:!0}).then(S(3e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_copied_data")}))};return s&&n?(0,e.createElement)("div",{className:"rsssl-test-results"},!n.generated_by_rsssl&&(0,e.createElement)(e.Fragment,null,(0,f.__)("The certificate is not generated by Really Simple SSL, so there are no installation files here","really-simple-ssl")),n.generated_by_rsssl&&"warning"===s.status&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h4",null,(0,f.__)("Next step","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-template-intro"},(0,f.__)("Install your certificate.","really-simple-ssl")),(0,e.createElement)("h4",null,(0,f.__)("Certificate (CRT)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-certificate",id:"rsssl-certificate"},n.certificate_content),(0,e.createElement)("a",{href:n.download_url+"&type=certificate",className:"button button-secondary"},(0,f.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",onClick:e=>l("certificate"),className:"button button-primary"},(0,f.__)("Copy content","really-simple-ssl")),(0,e.createElement)("h4",null,(0,f.__)("Private Key (KEY)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-key",id:"rsssl-key"},n.key_content),(0,e.createElement)("a",{href:n.download_url+"&type=private_key",className:"button button-secondary"},(0,f.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>l("key")},(0,f.__)("Copy content","really-simple-ssl")),(0,e.createElement)("h4",null,(0,f.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-cabundle",id:"rsssl-cabundle"},n.ca_bundle_content),(0,e.createElement)("a",{href:n.download_url+"&type=intermediate",className:"button button-secondary"},(0,f.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>l("cabundle")},(0,f.__)("Copy content","really-simple-ssl")))):(0,e.createElement)(e.Fragment,null)},de=t=>{const[s,n]=(0,e.useState)(t.field.id),[r,l]=(0,e.useState)(!1),[a,i]=(0,e.useState)(0),o=(0,e.useRef)(0),c=(0,e.useRef)(1500),d=(0,e.useRef)(1),u=(0,e.useRef)(!1),p=(0,e.useRef)(""),h=(0,e.useRef)(-1);(0,e.useEffect)((()=>{t.handleNextButtonDisabled(!0),b(0),u.current=setInterval((()=>i((e=>e+.2))),100)}),[]);const g=()=>{let e=t.field.actions;for(const t of e)t.status="inactive";t.field.actions=e,o.current=0,h.current=-1,p.current="",i(0),b(0)},v=()=>t.field.actions[o.current];A((()=>{let e=t.field.actions.length-1;o.current>h.current&&(h.current=o.current,i(100/e*o.current));let s=v();s&&"retry"===s.do&&s.attemptCount>1&&i(90),t.refreshTests&&(t.resetRefreshTests(),g())}));const b=()=>{l(!1),"generation"===t.field.id&&(t.field.actions=(e=>{let s=t.getFieldValue("verification_type");if(s||(s="dir"),"dns"===s){let t=!1;e.forEach((function(e,s){"verify_dns"===e.action&&(t=!0)}));let s=-1;if(e.forEach((function(e,t){"create_bundle_or_renew"===e.action&&(s=t)})),!t&&s>0){let t=e[s],n={action:"verify_dns"};n.description=(0,f.__)("Verifying DNS records...","really-simple-ssl"),n.attempts=2,e[s]=n,e.push(t)}}return e})(t.field.actions));let e=v(),s=e.action;const n=new Date;d.current=e.attempts,m(s,t.field.id).then((e=>{let t=new Date-n;const s=Math.round(t);let r=v();r.status=e.status?e.status:"inactive",r.hide=!1,r.description=e.message,r.do=e.action,r.output=!!e.output&&e.output,c.current=500,s<1500&&(c.current=1500-s)})).then(S(c.current)).then((()=>{(e=>{p.current=e.status;let s=t.field.actions.length-1;"success"===e.status?e.attemptCount=0:(Number.isInteger(e.attemptCount)||(e.attemptCount=0),e.attemptCount+=1),l(!0);var n=new CustomEvent("rsssl_le_response",{detail:e});document.dispatchEvent(n),"finalize"===e.do?(clearInterval(u.current),t.field.actions.forEach((function(e,t){t>o.current&&(e.hide=!0)})),o.current=s,t.handleNextButtonDisabled(!1)):"continue"===e.do||"skip"===e.do?(e.attemptCount=1,"skip"===e.do&&(e.hide=!0),s>o.current?(o.current=o.current+1,b(o.current)):(o.current=s,t.handleNextButtonDisabled(!1),clearInterval(u.current))):"retry"===e.do?e.attemptCount>=d.current?(o.current=s,clearInterval(u.current)):b(o.current):"stop"===e.do&&clearInterval(u.current)})(e)}))},y=e=>k.hasOwnProperty(e.status)?k[e.status].icon:k.inactive.icon,w=e=>k.hasOwnProperty(e.status)?k[e.status].color:k.inactive.color;let E="error"===p.current?"rsssl-orange":"";if(!t.field.actions)return(0,e.createElement)(e.Fragment,null);let C=t.field.actions[o.current],x=t.field.actions.filter((e=>!0!==e.hide));const k={inactive:{icon:"circle-times",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"}};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,e.createElement)("div",{className:"rsssl-progress-bar"},(0,e.createElement)("div",{className:"rsssl-progress"},(0,e.createElement)("div",{className:"rsssl-bar "+E,style:Object.assign({},{width:a+"%"})}))),(0,e.createElement)("div",{className:"rsssl_letsencrypt_container rsssl-progress-container field-group"},(0,e.createElement)("ul",null,x.map(((t,s)=>(0,e.createElement)("li",{key:s},(0,e.createElement)(_,{name:y(t),color:w(t)}),"retry"===t.do&&t.attemptCount>=1&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Attempt %s.","really-simple-ssl").replace("%s",t.attemptCount)," "),(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:t.description}})))))),"directories"===t.field.id&&(0,e.createElement)(re,{save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:a,action:C}),"dns-verification"===t.field.id&&(0,e.createElement)(le,{save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:a,action:C}),"generation"===t.field.id&&(0,e.createElement)(ae,{restartTests:g,save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:a,action:C}),"installation"===t.field.id&&(0,e.createElement)(ce,{restartTests:g,save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:a,action:C}),"activate"===t.field.id&&(0,e.createElement)(oe,{restartTests:g,save:t.save,selectMainMenu:t.selectMainMenu,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:a,action:C})))},ue=s(44);class pe extends e.Component{constructor(){super(...arguments)}componentDidMount(){this.onClickHandler=this.onClickHandler.bind(this)}onClickHandler(){this.props.handleModal(!0,this.props.modalData)}render(){return(0,e.createElement)("button",{className:"button button-"+this.props.btnStyle,onClick:e=>this.onClickHandler(e)},this.props.btnText)}}var he=pe;class me extends e.Component{constructor(){super(...arguments),this.nonce="",this.state={data:[],progress:0,action:"",state:"stop",paused:!1,showIgnoredUrls:!1,resetPaginationToggle:!1}}getScanStatus(){return h("scan_status","refresh").then((e=>e))}componentDidMount(){let e=[],t=0,s="",n="stop",r="never";this.props.field.value.data&&(e=this.props.field.value.data),this.props.field.value.progress&&(t=this.props.field.value.progress),this.props.field.value.action&&(s=this.props.field.value.action),this.props.field.value.state&&(n=this.props.field.value.state),this.props.field.value.completed_status&&(r=this.props.field.value.completed_status),this.props.field.value.nonce&&(this.nonce=this.props.field.value.nonce),this.setState({completedStatus:r,data:e,progress:t,action:s,state:n})}start(e){let t="start";this.state.paused&&(t="running"),this.setState({state:"running",paused:!1}),h("mixed_content_scan",t).then((e=>{this.setState({data:e.data,progress:e.progress,action:e.action,state:e.state}),"running"===e.state&&this.run()}))}run(e){this.state.paused||h("mixed_content_scan","running").then((e=>{this.setState({completedStatus:e.completed_status,data:e.data,progress:e.progress,action:e.action,state:e.state}),this.state.paused?this.stop():"running"===e.state&&this.run()}))}toggleIgnoredUrls(e){let{showIgnoredUrls:t}=this.state;this.setState({showIgnoredUrls:!t})}stop(e){this.setState({state:"stop",paused:!0}),h("mixed_content_scan","stop").then((e=>{this.setState({completedStatus:e.completed_status,data:e.data,progress:e.progress,action:e.action})}))}removeDataItem(e){const t=this.state.data.filter((t=>t.id===e.id));this.setState({data:t})}render(){let{completedStatus:t,data:s,action:n,progress:r,state:l,showIgnoredUrls:a,resetPaginationToggle:i}=this.state,o=this.props.field;o.value,this.props.fields,rsssl_settings.pro_plugin_active||(r=80),columns=[],o.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,grow:e.grow,selector:t=>t[e.column],right:!!e.right};columns.push(s)})),"object"==typeof s&&(s=Object.values(s)),Array.isArray(s)||(s=[]),t=t?t.toLowerCase():"never";let c=this.props.dropItemFromModal;for(const t of s)t.warningControl=(0,e.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,f.__)("Warning","really-simple-ssl")),c&&c.url===t.blocked_url&&("ignore_url"===c.action?t.ignored=!0:t.fixed=!0),t.fix&&(t.fix.url=t.blocked_url,t.fix.nonce=this.nonce),t.details&&(t.details.url=t.blocked_url,t.details.nonce=this.nonce,t.details.ignored=t.ignored),t.location.length>0&&(-1!==t.location.indexOf("http://")||-1!==t.location.indexOf("https://")?t.locationControl=(0,e.createElement)("a",{href:t.location,target:"_blank"},(0,f.__)("View","really-simple-ssl")):t.locationControl=t.location),t.detailsControl=t.details&&(0,e.createElement)(he,{removeDataItem:this.removeDataItem,handleModal:this.props.handleModal,item:t,btnText:(0,f.__)("Details","really-simple-ssl"),btnStyle:"secondary",modalData:t.details}),t.fixControl=t.fix&&(0,e.createElement)(he,{className:"button button-primary",removeDataItem:this.removeDataItem,handleModal:this.props.handleModal,item:t,btnText:(0,f.__)("Fix","really-simple-ssl"),btnStyle:"primary",modalData:t.fix});a||(s=s.filter((e=>!e.ignored))),s=s.filter((e=>!e.fixed)),r+="%";let d="running"===l,u="running"!==l;return(0,f.__)("Show ignored URLs","burst-statistics"),(0,ue.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-progress-container"},(0,e.createElement)("div",{className:"rsssl-progress-bar",style:{width:r}})),"running"===l&&(0,e.createElement)("div",{className:"rsssl-current-scan-action"},n),0==s.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-mixed-content-description"},"running"!==l&&"never"===t&&(0,f.__)("No results. Start your first scan","really-simple-ssl"),"running"!==l&&"completed"===t&&(0,f.__)("Everything is now served over SSL","really-simple-ssl")),("running"===l||"completed"!==t)&&(0,e.createElement)("div",{className:"rsssl-mixed-content-placeholder"},(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null)),"running"!==l&&"completed"===t&&(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(_,{name:"shield",size:"80px"}))),s.length>0&&(0,e.createElement)("div",{className:"rsssl-mixed-content-datatable"},(0,e.createElement)(ue.ZP,{columns:columns,data:s,dense:!0,pagination:!0,paginationResetDefaultPage:i,noDataComponent:(0,f.__)("No results","really-simple-ssl"),theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}})),(0,e.createElement)("div",{className:"rsssl-grid-item-content-footer"},(0,e.createElement)("button",{className:"button",disabled:d,onClick:e=>this.start(e)},(0,f.__)("Start scan","really-simple-ssl-pro")),(0,e.createElement)("button",{className:"button",disabled:u,onClick:e=>this.stop(e)},(0,f.__)("Stop","really-simple-ssl-pro")),(0,e.createElement)(b.ToggleControl,{checked:1==a,onChange:e=>this.toggleIgnoredUrls(e)}),(0,e.createElement)("label",null,(0,f.__)("Show ignored URLs","burst-statistics"))))}}var ge=me;class fe extends e.Component{constructor(){super(...arguments)}render(){let t=1==this.props.item.status?"button button-primary rsssl-status-allowed":"button button-default rsssl-status-revoked",s=1==this.props.item.status?(0,f.__)("Revoke","really-simple-ssl"):(0,f.__)("Allow","really-simple-ssl");return(0,e.createElement)("button",{onClick:()=>this.props.onChangeHandlerDataTableStatus(this.props.item.status,this.props.item,"status"),className:t},s)}}var ve=fe;class be extends e.Component{constructor(){super(...arguments),this.state={enable_permissions_policy:0}}componentDidMount(){this.togglePermissionsPolicyStatus=this.togglePermissionsPolicyStatus.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this);let e=this.props.fields.filter((e=>"enable_permissions_policy"===e.id))[0];this.setState({enable_permissions_policy:e.value})}onChangeHandler(e,t){let s=this.props.field;"object"==typeof s.value&&(s.value=Object.values(s.value));for(const n of s.value)n.id===t.id&&(n.value=e),delete n.valueControl,delete n.statusControl,delete n.deleteControl;s.updateItemId=t.id;let n=[];n.push(s),this.props.updateField(s.id,s.value),p(n).then((e=>{}))}togglePermissionsPolicyStatus(e,t){e.preventDefault();let s=this.props.fields.filter((e=>"enable_permissions_policy"===e.id))[0];s.value=t,this.setState({enable_permissions_policy:t});let n=[];n.push(s),this.props.updateField(s.id,s.value),p(n).then((e=>{}))}render(){let t=this.props.field,s=(t.value,this.props.options);const{enable_permissions_policy:n}=this.state;columns=[],t.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};columns.push(s)}));let r=t.value;"object"==typeof r&&(r=Object.values(r)),Array.isArray(r)||(r=[]);for(const t of r)t.valueControl=(0,e.createElement)(b.SelectControl,{help:"",value:t.value,disabled:!1,options:s,label:"",onChange:e=>this.onChangeHandler(e,t,"value")});return(0,ue.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)("div",{className:this.props.highLightClass},(0,e.createElement)(ue.ZP,{columns:columns,data:r,dense:!0,pagination:!1,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},theme:"really-simple-plugins"}),1!=n&&(0,e.createElement)("button",{className:"button button-primary",onClick:e=>this.togglePermissionsPolicyStatus(e,!0)},(0,f.__)("Enforce","really-simple-ssl")),1==n&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(_,{name:"shield",size:"80px"})),(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,f.__)("Enforced","really-simple-ssl")),this.props.disabled&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Permissions Policy is set outside Really Simple SSL.","really-simple-ssl")," "),!this.props.disabled&&(0,e.createElement)(e.Fragment,null,(0,f.__)("Permissions Policy is enforced.","really-simple-ssl")," "),!this.props.disabled&&(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.togglePermissionsPolicyStatus(e,!1)},(0,f.__)("Disable","really-simple-ssl")))),this.props.disabled&&1!=n&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-disabled"},(0,f.__)("Disabled ","really-simple-ssl")),(0,f.__)("The Permissions Policy has been disabled.","really-simple-ssl"))))}}var ye=be;class we extends e.Component{constructor(){super(...arguments),this.state={message:"",sending:!1}}componentDidMount(){this.onChangeHandler=this.onChangeHandler.bind(this),this.onClickHandler=this.onClickHandler.bind(this)}onChangeHandler(e){this.setState({message:e})}onClickHandler(e){return this.setState({sending:!0}),h("supportData","refresh").then((e=>{const{message:t}=this.state;let s=t.replace(/(?:\r\n|\r|\n)/g,"--br--"),n="https://really-simple-ssl.com/support?customername="+encodeURIComponent(e.customer_name)+"&email="+e.email+"&domain="+e.domain+"&scanresults="+encodeURIComponent(e.scan_results)+"&licensekey="+encodeURIComponent(e.license_key)+"&supportrequest="+encodeURIComponent(s)+"&htaccesscontents="+e.htaccess_contents+"&debuglog="+e.system_status;window.location.assign(n)}))}render(){const{message:t,sending:s}=this.state;let n=s||0==t.length,r=s;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(b.TextareaControl,{disabled:r,placeholder:(0,f.__)("Type your question here","really-simple-ssl"),onChange:e=>this.onChangeHandler(e)}),(0,e.createElement)(b.Button,{disabled:n,variant:"secondary",onClick:e=>this.onClickHandler(e)},(0,f.__)("Send","really-simple-ssl")))}}var Ee=we;class Ce extends e.Component{constructor(){super(...arguments)}render(){return(0,e.createElement)("button",{type:"button",className:" rsssl-learning-mode-delete",onClick:()=>this.props.onDeleteHandler(this.props.item)},(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"16"},(0,e.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))}}class _e extends e.Component{constructor(){super(...arguments),this.state={enforced_by_thirdparty:0,enforce:0,learning_mode:0,lm_enabled_once:0,learning_mode_completed:0,filterValue:-1}}componentDidMount(){this.doFilter=this.doFilter.bind(this),this.onDeleteHandler=this.onDeleteHandler.bind(this);let e=this.props.fields.filter((e=>e.id===this.props.field.control_field))[0],t="enforced-by-thirdparty"===e.value,s=t||"enforce"===e.value,n="learning_mode"===e.value,r="completed"===e.value,l=this.props.field.control_field+"_lm_enabled_once",a=this.props.fields.filter((e=>e.id===l))[0],i=a.value;this.props.updateField(e.id,e.value),this.setState({enforced_by_thirdparty:t,enforce:s,learning_mode:n,lm_enabled_once:i,learning_mode_completed:r})}doFilter(e){this.setState({filterValue:e.target.value})}toggleEnforce(e,t){e.preventDefault();let s=this.props.fields.filter((e=>e.id===this.props.field.control_field))[0];s.value=1==t?"enforce":"disabled",this.setState({enforce:t,learning_mode_completed:0});let n=[];n.push(s),p(n).then((e=>{}))}toggleLearningMode(e){e.preventDefault();let t=this.props.fields,s=t.filter((e=>e.id===this.props.field.control_field))[0],n=this.props.field.control_field+"_lm_enabled_once",r=t.filter((e=>e.id===n))[0],l="learning_mode"===s.value?1:0,a="completed"===s.value?1:0;l&&(r.value=1),s.value=l||a?"disabled":"learning_mode",l=l||a?0:1,a=0,this.setState({learning_mode:l,lm_enabled_once:r.value,learning_mode_completed:a});let i=[];i.push(s),i.push(r),p(i).then((e=>{}))}onDeleteHandler(e){let t=this.props.field;"object"==typeof t.value&&(t.value=Object.values(t.value)),t.value.forEach((function(s,n){s.id===e.id&&t.value.splice(n,1)}));for(const e of t.value)delete e.valueControl,delete e.statusControl,delete e.deleteControl;t.updateItemId=e.id,t.action="delete";let s=[];s.push(t),this.props.updateField(t.id,t.value),p(s).then((e=>{}))}render(){let t=this.props.field,s=(t.value,this.props.options,(0,f.__)("We're configuring your %s. Exit to edit and enforce.","really-simple-ssl").replace("%s",t.label)),n=(0,f.__)("%s has been disabled.","really-simple-ssl").replace("%s",t.label),r=(0,f.__)("%s is enforced.","really-simple-ssl").replace("%s",t.label);const{filterValue:l,enforced_by_thirdparty:a,enforce:i,learning_mode:o,lm_enabled_once:c,learning_mode_completed:d}=this.state;let u=!c;a&&(n=(0,f.__)("%s is already set outside Really Simple SSL.","really-simple-ssl").replace("%s",t.label)),columns=[],t.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};columns.push(s)}));let p=t.value;"object"==typeof p&&(p=Object.values(p)),Array.isArray(p)||(p=[]),p=p.filter((e=>e.status<2)),-1!=l&&(p=p.filter((e=>e.status==l)));for(const t of p)t.login_status&&(t.login_statusControl=1==t.login_status?(0,f.__)("success","really-simple-ssl"):(0,f.__)("failed","really-simple-ssl")),t.statusControl=(0,e.createElement)(ve,{item:t,onChangeHandlerDataTableStatus:this.props.onChangeHandlerDataTableStatus}),t.deleteControl=(0,e.createElement)(Ce,{item:t,onDeleteHandler:this.onDeleteHandler});return(0,ue.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:this.highLightClass},0==p.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-learningmode-placeholder"},(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null))),p.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ue.ZP,{columns:columns,data:p,dense:!0,pagination:!0,noDataComponent:(0,f.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},conditionalRowStyles:[{when:e=>0==e.status,classNames:["rsssl-datatables-revoked"]}]})),(0,e.createElement)("div",{className:"rsssl-learning-mode-footer"},1!=i&&(0,e.createElement)("button",{disabled:u,className:"button button-primary",onClick:e=>this.toggleEnforce(e,!0)},(0,f.__)("Enforce","really-simple-ssl")),!a&&1==i&&(0,e.createElement)("button",{className:"button",onClick:e=>this.toggleEnforce(e,!1)},(0,f.__)("Disable","really-simple-ssl")),(0,e.createElement)("label",null,(0,e.createElement)("input",{type:"checkbox",disabled:i,checked:1==o,value:o,onChange:e=>this.toggleLearningMode(e)}),(0,f.__)("Enable Learning Mode","really-simple-ssl")),1==i&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(_,{name:"shield",size:"80px"})),(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,f.__)("Enforced","really-simple-ssl")),r," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleEnforce(e)},(0,f.__)("Disable to configure","really-simple-ssl")))),1==o&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode"},(0,f.__)("Learning Mode","really-simple-ssl")),s," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleLearningMode(e)},(0,f.__)("Exit learning mode","really-simple-ssl")))),1==d&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-completed"},(0,f.__)("Learning Mode","really-simple-ssl")),(0,f.__)("We finished the configuration.","really-simple-ssl")," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleLearningMode(e)},(0,f.__)("Review the settings and enforce the policy","really-simple-ssl")))),rsssl_settings.pro_plugin_active&&this.props.disabled&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},!a&&(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-disabled"},(0,f.__)("Disabled ","really-simple-ssl")),a&&(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,f.__)("Enforced","really-simple-ssl")),n)),(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("select",{onChange:e=>this.doFilter(e),value:l},(0,e.createElement)("option",{value:"-1"},(0,f.__)("All","really-simple-ssl")),(0,e.createElement)("option",{value:"1"},(0,f.__)("Allowed","really-simple-ssl")),(0,e.createElement)("option",{value:"0"},(0,f.__)("Blocked","really-simple-ssl"))))),null))))}}var Se=_e;class xe extends e.Component{constructor(){super(...arguments),this.scrollAnchor=!1,this.onChangeHandlerDataTableStatus=this.onChangeHandlerDataTableStatus.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){}componentDidUpdate(){this.props.highLightedField===this.props.field.id&&this.scrollAnchor.current&&this.scrollAnchor.current.scrollIntoView()}onChangeHandler(e){let t=this.props.fields,s=this.props.field;t[this.props.index].value=e;let n=!1;if(s.configure_on_activation){s.configure_on_activation.hasOwnProperty("condition")&&this.props.field.value==s.configure_on_activation.condition&&(n=!0);let e=s.configure_on_activation[0];for(let t in e)n&&e.hasOwnProperty(t)&&this.props.updateField(t,e[t])}this.props.saveChangedFields(s.id)}onChangeHandlerDataTableStatus(e,t,s){let n=this.props.field;e=1==e?0:1,"object"==typeof n.value&&(n.value=Object.values(n.value));for(const r of n.value)r.id===t.id&&(r[s]=e),delete r.valueControl,delete r.statusControl,delete r.deleteControl;n.updateItemId=t.id;let r=[];r.push(n),this.props.updateField(n.id,n.value),p(r).then((e=>{}))}onCloseTaskHandler(){}render(){this.highLightClass&&(this.scrollAnchor=React.createRef());let t=this.props.field,s=t.value,n=this.props.fields,r=t.disabled;this.highLightClass=this.props.highLightedField===this.props.field.id?"rsssl-field-wrap rsssl-highlight":"rsssl-field-wrap";let l=[];if(t.options)for(var a in t.options)if(t.options.hasOwnProperty(a)){let e={};e.label=t.options[a],e.value=a,l.push(e)}if(!rsssl_settings.networkwide_active&&t.networkwide_required&&(r=!0,t.comment=(0,e.createElement)(e.Fragment,null,(0,f.__)("This feature is only available networkwide.","really-simple-ssl"),(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link}))),t.conditionallyDisabled&&(r=!0),!t.visible)return(0,e.createElement)(e.Fragment,null);if("checkbox"===t.type)return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.ToggleControl,{disabled:r,checked:1==t.value,label:t.label,onChange:e=>this.onChangeHandler(e)}),t.comment&&(0,e.createElement)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:t.comment}}));if("hidden"===t.type)return(0,e.createElement)("input",{type:"hidden",value:t.value});if("radio"===t.type)return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.RadioControl,{label:t.label,onChange:e=>this.onChangeHandler(e),selected:s,options:l}));if("text"===t.type||"email"===t.type)return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.TextControl,{required:t.required,disabled:r,help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s}));if("button"===t.type)return(0,e.createElement)("div",{className:"rsssl-field-button "+this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)("label",null,t.label),(0,e.createElement)(D,{className:"button button-default",text:t.button_text,url:t.url}));if("password"===t.type)return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(te,{index:this.props.index,field:t,fields:this.props.fields,saveChangedFields:this.props.saveChangedFields}));if("textarea"===t.type)return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.TextareaControl,{label:t.label,disabled:r,help:t.comment,value:s,onChange:e=>this.onChangeHandler(e)}));if("license"===t.type){let t=this.props.field,s=t.value,n=this.props.fields;return(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(Q,{setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,index:this.props.index,fields:n,field:t,fieldValue:s,saveChangedFields:this.props.saveChangedFields,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField}))}return"number"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.__experimentalNumberControl,{onChange:e=>this.onChangeHandler(e),help:t.comment,label:t.label,value:s})):"email"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.TextControl,{help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s})):"host"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(ne,{index:this.props.index,saveChangedFields:this.props.saveChangedFields,handleNextButtonDisabled:this.props.handleNextButtonDisabled,updateFields:this.props.updateFields,fields:this.props.fields,field:this.props.field})):"select"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(b.SelectControl,{disabled:r,help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s,options:l})):"support"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(Ee,null)):"permissionspolicy"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(ye,{disabled:r,updateField:this.props.updateField,field:this.props.field,options:l,highLightClass:this.highLightClass,fields:n})):"learningmode"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(Se,{disabled:r,onChangeHandlerDataTableStatus:this.onChangeHandlerDataTableStatus,updateField:this.props.updateField,field:this.props.field,options:l,highLightClass:this.highLightClass,fields:n})):"mixedcontentscan"===t.type?(0,e.createElement)("div",{className:this.highLightClass,ref:this.scrollAnchor},(0,e.createElement)(ge,{dropItemFromModal:this.props.dropItemFromModal,handleModal:this.props.handleModal,field:this.props.field,fields:this.props.selectedFields})):"letsencrypt"===t.type?(0,e.createElement)(de,{key:t.id,resetRefreshTests:this.props.resetRefreshTests,refreshTests:this.props.refreshTests,getFieldValue:this.props.getFieldValue,save:this.props.save,selectMenu:this.props.selectMenu,addHelp:this.props.addHelp,updateField:this.props.updateField,fields:this.props.fields,field:t,handleNextButtonDisabled:this.props.handleNextButtonDisabled}):"activate"===t.type?(0,e.createElement)(oe,{key:t.id,selectMainMenu:this.props.selectMainMenu,resetRefreshTests:this.props.resetRefreshTests,refreshTests:this.props.refreshTests,getFieldValue:this.props.getFieldValue,save:this.props.save,selectMenu:this.props.selectMenu,addHelp:this.props.addHelp,updateField:this.props.updateField,fields:this.props.fields,field:t,handleNextButtonDisabled:this.props.handleNextButtonDisabled}):"not found field type "+t.type}}var ke=xe;class Me extends e.Component{constructor(){super(...arguments),this.state={fields:this.props.fields,isAPILoaded:this.props.isAPILoaded},this.upgrade="https://really-simple-ssl.com/pro/",this.fields=this.props.fields}componentDidMount(){this.getLicenseStatus=this.getLicenseStatus.bind(this),this.handleLetsEncryptReset=this.handleLetsEncryptReset.bind(this)}getLicenseStatus(){return this.props.pageProps.hasOwnProperty("licenseStatus")?this.props.pageProps.licenseStatus:"invalid"}handleLetsEncryptReset(e){e.preventDefault(),m("reset").then((e=>{let t=window.location.href.replace(/#letsencrypt.*/,"&r="+ +new Date+"#letsencrypt/le-system-status");window.location.href=t}))}render(){let s,n=this.props.selectedMenuItem,r=[];for(const e of this.props.fields)e.group_id===this.props.group&&r.push(e);for(const e of this.props.menu.menu_items)if(e.id===n?s=e:e.menu_items&&(s=e.menu_items.filter((e=>e.id===n))[0]),s)break;for(const e of this.props.menu.menu_items)if(e.id===n&&e.hasOwnProperty("groups")){let t=e.groups.filter((e=>e.id===this.props.group));t.length>0&&(s=t[0])}let l="invalid",a=s.premium_text?s.premium_text:(0,f.__)("Learn more about %sPremium%s","really-simple-ssl");rsssl_settings.pro_plugin_active&&(l=this.getLicenseStatus(),a="empty"===l||"deactivated"===l?rsssl_settings.messageInactive:rsssl_settings.messageInvalid);let i="valid"!==l&&s.premium,o=!rsssl_settings.networkwide_active&&s.networkwide_required;this.upgrade=s.upgrade?s.upgrade:this.upgrade;let c=s.helpLink_text?s.helpLink_text:(0,f.__)("Instructions","really-simple-ssl"),d=t("main"),u=i||o?"rsssl-disabled":"";return(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-"+s.id+" "+u},s.title&&(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h3",{className:"rsssl-h4"},s.title),s.helpLink&&"letsencrypt"!==d&&(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},(0,e.createElement)(D,{target:"_blank",className:"rsssl-helplink",text:c,url:s.helpLink})),"letsencrypt"===d&&(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},(0,e.createElement)("a",{href:"#",className:"rsssl-helplink",onClick:e=>this.handleLetsEncryptReset(e)},(0,f.__)("Reset Let's Encrypt","really-simple-ssl")))),(0,e.createElement)("div",{className:"rsssl-grid-item-content"},s.intro&&(0,e.createElement)("div",{className:"rsssl-settings-block-intro"},s.intro),r.map(((t,s)=>(0,e.createElement)(ke,{key:s,index:s,updateFields:this.props.updateFields,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,dropItemFromModal:this.props.dropItemFromModal,handleNextButtonDisabled:this.props.handleNextButtonDisabled,handleModal:this.props.handleModal,showSavedSettingsNotice:this.props.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,refreshTests:this.props.refreshTests,resetRefreshTests:this.props.resetRefreshTests,addHelp:this.props.addHelp,setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,saveChangedFields:this.props.saveChangedFields,field:t,fields:r})))),i&&!o&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-premium"},(0,f.__)("Upgrade","really-simple-ssl")),(0,e.createElement)("span",null,rsssl_settings.pro_plugin_active&&(0,e.createElement)("span",null,a," ",(0,e.createElement)("a",{className:"rsssl-locked-link",href:"#settings/license"},(0,f.__)("Check license","really-simple-ssl"))),!rsssl_settings.pro_plugin_active&&(0,e.createElement)(D,{target:"_blank",text:a,url:this.upgrade})))),o&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,f.__)("Network feature","really-simple-ssl")),(0,e.createElement)("span",null,(0,f.__)("This feature is only available networkwide.","really-simple-ssl"),(0,e.createElement)(D,{target:"_blank",text:(0,f.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link})))))}}var Ne=Me;class Pe extends e.Component{render(){let t=this.props.help;t.title||(t.title=t.text,t.text=!1);let s=this.props.noticesExpanded?"open":"",n=t.url&&-1!==t.url.indexOf("really-simple-ssl.com")?"_blank":"_self";return(0,e.createElement)(e.Fragment,null,t.title&&t.text&&(0,e.createElement)("details",{className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase(),open:s},(0,e.createElement)("summary",null,t.title," ",(0,e.createElement)(_,{name:"chevron-down"})),(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:t.text}}),t.url&&(0,e.createElement)("div",{className:"rsssl-help-more-info"},(0,e.createElement)("a",{target:n,href:t.url},(0,f.__)("More info","really-simple-ssl")))),t.title&&!t.text&&(0,e.createElement)("div",{className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase()},(0,e.createElement)("p",null,t.title)))}}var Re=Pe;class Oe extends e.Component{constructor(){super(...arguments),this.state={noticesExpanded:!0},this.toggleNotices=this.toggleNotices.bind(this),this.saveAndContinue=this.saveAndContinue.bind(this),this.save=this.save.bind(this)}componentDidMount(){}toggleNotices(){const{noticesExpanded:e}=this.state;this.setState({noticesExpanded:!e})}save(){this.props.save()}saveAndContinue(){this.props.nextButtonDisabled||this.props.saveAndContinue()}render(){let t=this.props.isAPILoaded,s=this.props.progress,n=this.props.selectedMenuItem,r=this.props.fields,l=(this.props.selectedStep,this.props.menu);const{menu_items:a}=l,{noticesExpanded:i}=this.state;if(!t)return(0,e.createElement)(N,null);let o=r.filter((e=>e.menu_id===n)),c=[];for(const e of o)G(e.group_id,c)||c.push(e.group_id);let d=(0,f.__)("Save","really-simple-ssl");for(const e of a)e.id===n&&e.tests_only&&(d=(0,f.__)("Refresh","really-simple-ssl"));let u=[];for(const e of s.notices){let t=!1;if(e.show_with_options&&"warning"===e.output.icon&&(t=o.filter((t=>e.show_with_options.includes(t.id))).length>0),t||e.menu_id===n){let t={};t.title=!!e.output.title&&e.output.title,t.label=e.output.label,t.id=e.id,t.text=e.output.msg,t.url=e.output.url,t.linked_field=e.show_with_option,u.push(t)}}for(const e of o.filter((e=>e.help)))e.help.id=e.id,u.push(e.help);u=u.filter((e=>"completed"!==e.label.toLowerCase()));let p=this.props.nextButtonDisabled?`#${this.props.selectedMainMenuItem}/${this.props.selectedMenuItem}`:`#${this.props.selectedMainMenuItem}/${this.props.nextMenuItem}`;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-wizard-settings"},c.map(((t,s)=>(0,e.createElement)(Ne,{updateFields:this.props.updateFields,dropItemFromModal:this.props.dropItemFromModal,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,handleNextButtonDisabled:this.props.handleNextButtonDisabled,menu:this.props.menu,handleModal:this.props.handleModal,showSavedSettingsNotice:this.props.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,refreshTests:this.props.refreshTests,resetRefreshTests:this.props.resetRefreshTests,addHelp:this.props.addHelp,pageProps:this.props.pageProps,setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,key:s,index:s,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,selectedMenuItem:n,saveChangedFields:this.props.saveChangedFields,group:t,fields:o}))),(0,e.createElement)("div",{className:"rsssl-grid-item-footer"},this.props.selectedMenuItem!==a[0].id&&(0,e.createElement)("a",{className:"button button-secondary",href:`#${this.props.selectedMainMenuItem}/${this.props.previousMenuItem}`,onClick:()=>this.props.previousStep(!0)},(0,f.__)("Previous","really-simple-ssl")),(0,e.createElement)("button",{className:"button button-primary",onClick:this.save},d),this.props.selectedMenuItem!==a[a.length-1].id&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{disabled:this.props.nextButtonDisabled,className:"button button-primary",href:p,onClick:this.saveAndContinue},(0,f.__)("Save and Continue","really-simple-ssl"))))),(0,e.createElement)("div",{className:"rsssl-wizard-help"},(0,e.createElement)("div",{className:"rsssl-help-header"},(0,e.createElement)("div",{className:"rsssl-help-title rsssl-h4"},(0,f.__)("Notifications","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-help-control",onClick:()=>this.toggleNotices()},!i&&(0,f.__)("Expand all","really-simple-ssl"),i&&(0,f.__)("Collapse all","really-simple-ssl"))),u.map(((t,s)=>(0,e.createElement)(Re,{key:s,noticesExpanded:i,index:s,help:t,fieldId:t.id})))))}}var Fe=Oe;class Le extends e.Component{constructor(){super(...arguments),this.save=this.save.bind(this),this.saveAndContinue=this.saveAndContinue.bind(this),this.wizardNextPrevious=this.wizardNextPrevious.bind(this),this.saveChangedFields=this.saveChangedFields.bind(this),this.addVisibleToMenuItems=this.addVisibleToMenuItems.bind(this),this.updateFieldsListWithConditions=this.updateFieldsListWithConditions.bind(this),this.filterMenuItems=this.filterMenuItems.bind(this),this.showSavedSettingsNotice=this.showSavedSettingsNotice.bind(this),this.resetRefreshTests=this.resetRefreshTests.bind(this),this.handleNextButtonDisabled=this.handleNextButtonDisabled.bind(this),this.checkRequiredFields=this.checkRequiredFields.bind(this),this.state={refreshTests:!1,fields:"",isAPILoaded:!1,changedFields:"",nextButtonDisabled:!1}}componentDidMount(){this.props.fields;let e=[],t=this.props.selectedMenuItem;this.selectedMenuItem=t,this.changedFields=e,this.setState({isAPILoaded:!0,fields:this.props.fields,changedFields:e,selectedMainMenuItem:this.props.selectedMainMenuItem}),this.props.menu.menu_items=this.addVisibleToMenuItems(this.props.menu.menu_items),this.checkRequiredFields(),this.updateFieldsListWithConditions()}componentDidUpdate(){this.props.menu.menu_items=this.addVisibleToMenuItems(this.props.menu.menu_items)}addVisibleToMenuItems(e){const t=e;for(const[s,n]of e.entries())n.visible=!0,n.hasOwnProperty("menu_items")&&(n.menu_items=this.addVisibleToMenuItems(n.menu_items)),t[s]=n;return t}handleNextButtonDisabled(e){const{nextButtonDisabled:t}=this.state;t!==e&&this.setState({nextButtonDisabled:e})}checkRequiredFields(){let e=[];for(const t of this.props.fields)t.menu_id===this.props.selectedMenuItem&&e.push(t);1==e.length&&e[0].actions&&e[0].actions.length>0||(e.filter((e=>e.required&&(0==e.value.length||!e.value))).length>0?this.handleNextButtonDisabled(!0):this.handleNextButtonDisabled(!1))}filterMenuItems(e){const t=e;for(const[s,n]of e.entries()){const e=this.props.fields.filter((e=>e.menu_id===n.id&&e.visible));if(0!==e.length||n.hasOwnProperty("menu_items")?(t[s].visible=!0,n.hasOwnProperty("menu_items")&&(t[s].menu_items=this.filterMenuItems(n.menu_items))):t[s].visible=!1,n.id===this.props.selectedMenuItem&&0===e.length&&n.hasOwnProperty("menu_items")){const e=t[s].menu_items[0].id;this.props.selectMenu(e)}}return t}updateFieldsListWithConditions(){for(const e of this.props.fields){let t=!(e.hasOwnProperty("react_conditions")&&!this.validateConditions(e.react_conditions,this.props.fields)),s=this.props.fields[this.props.fields.indexOf(e)].conditionallyDisabled;if(this.props.fields[this.props.fields.indexOf(e)].conditionallyDisabled=!t,s&&t){let t=this.changedFields;"learningmode"===e.type||G(e.id,t)||t.push(e.id),this.changedFields=t,this.setState({changedFields:t})}t||"letsencrypt"!==e.type&&"hide"!==e.condition_action?this.props.fields[this.props.fields.indexOf(e)].visible=!0:this.props.fields[this.props.fields.indexOf(e)].visible=!1}this.filterMenuItems(this.props.menu.menu_items)}saveChangedFields(e){this.updateFieldsListWithConditions();let t=this.changedFields;G(e,t)||t.push(e),this.changedFields=t,this.setState({changedFields:t})}showSavedSettingsNotice(){(0,v.dispatch)("core/notices").createNotice("success",(0,f.__)("Settings Saved","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_settings_saved",type:"snackbar",isDismissible:!0}).then(S(2e3)).then((e=>{(0,v.dispatch)("core/notices").removeNotice("rsssl_settings_saved")}))}save(e){const{fields:t}=this.state;let s=[];for(const e of t)G(e.id,this.changedFields)&&s.push(e);p(s).then((t=>{this.changedFields=[],this.props.updateProgress(t.progress),this.setState({changedFields:[]}),e||this.setState({refreshTests:!0}),this.showSavedSettingsNotice()}))}resetRefreshTests(){this.setState({refreshTests:!1})}wizardNextPrevious(e){const{nextMenuItem:t,previousMenuItem:s}=this.props.getPreviousAndNextMenuItems();this.props.selectMenu(e?s:t)}saveAndContinue(){this.wizardNextPrevious(!1),this.save(!0)}validateConditions(e,t){let s="OR"===e.relation?"OR":"AND",n="AND"===s;for(const r in e)if(e.hasOwnProperty(r)){let l="AND"===s,a=e[r];if(a.hasOwnProperty("relation"))l=this.validateConditions(a,t);else for(let e in a){let r=0===e.indexOf("!");if(a.hasOwnProperty(e)){let i=a[e];e=e.replace("!","");let o=t.filter((t=>t.id===e));if(o.hasOwnProperty(0))if("checkbox"===o[0].type){let e=+o[0].value;i=+i,l=e===i}else l=-1!==i.indexOf("EMPTY")?0===o[0].value.length:o[0].value.toLowerCase()===i.toLowerCase();r&&(l=!l),n="AND"===s?n&&l:n||l}}}return n?1:0}render(){const{selectedStep:t,isAPILoaded:s,refreshTests:n,changedFields:r,nextButtonDisabled:l}=this.state;if(!s)return(0,e.createElement)(N,null);let a=0===r.length;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(X,{isAPILoaded:s,menu:this.props.menu,selectMenu:this.props.selectMenu,selectStep:this.props.selectStep,selectedStep:this.props.selectedStep,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,getPreviousAndNextMenuItems:this.props.getPreviousAndNextMenuItems}),(0,e.createElement)(Fe,{updateFields:this.props.updateFields,dropItemFromModal:this.props.dropItemFromModal,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,nextButtonDisabled:l,handleNextButtonDisabled:this.handleNextButtonDisabled,getDefaultMenuItem:this.props.getDefaultMenuItem,handleModal:this.props.handleModal,showSavedSettingsNotice:this.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,resetRefreshTests:this.resetRefreshTests,refreshTests:n,addHelp:this.props.addHelp,pageProps:this.props.pageProps,setPageProps:this.props.setPageProps,fieldsUpdateComplete:a,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,isAPILoaded:s,fields:this.props.fields,progress:this.props.progress,saveChangedFields:this.saveChangedFields,menu:this.props.menu,save:this.save,saveAndContinue:this.saveAndContinue,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,selectedStep:this.props.selectedStep,previousStep:this.wizardNextPrevious,nextMenuItem:this.props.nextMenuItem,previousMenuItem:this.props.previousMenuItem}),(0,e.createElement)(w,{className:"rsssl-wizard-notices"}))}}var Ae=Le;class Ie extends e.Component{constructor(){super(...arguments),this.state={data:[],buttonsDisabled:!1}}dismissModal(e){this.props.handleModal(!1,null,e)}componentDidMount(){this.setState({data:this.props.data,buttonsDisabled:!1})}handleFix(e){let t=this.props.data.action;this.setState({buttonsDisabled:!0}),h(t,"refresh",this.props.data).then((e=>{let{data:t}=this.state;t.description=e.msg,t.subtitle="",this.setState({data:t}),this.props.data,e.success&&this.dismissModal(this.props.data)}))}render(){const{data:t,buttonsDisabled:s}=this.state;let n=s?"disabled":"",r=t.description;return Array.isArray(r)||(r=[r]),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"rsssl-modal-backdrop",onClick:e=>this.dismissModal(e)}," "),(0,e.createElement)("div",{className:"rsssl-modal",id:"{id}"},(0,e.createElement)("div",{className:"rsssl-modal-header"},(0,e.createElement)("h2",{className:"modal-title"},t.title),(0,e.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:e=>this.dismissModal(e)},(0,e.createElement)(_,{name:"times"}))),(0,e.createElement)("div",{className:"rsssl-modal-content"},t.subtitle&&(0,e.createElement)("div",{className:"rsssl-modal-subtitle"},t.subtitle),Array.isArray(r)&&r.map(((t,s)=>(0,e.createElement)("div",{key:s,className:"rsssl-modal-description"},t)))),(0,e.createElement)("div",{className:"rsssl-modal-footer"},t.edit&&(0,e.createElement)("a",{href:t.edit,target:"_blank",className:"button button-secondary"},(0,f.__)("Edit","really-simple-ssl")),t.help&&(0,e.createElement)("a",{href:t.help,target:"_blank",className:"button rsssl-button-help"},(0,f.__)("Help","really-simple-ssl")),!t.ignored&&"ignore_url"===t.action&&(0,e.createElement)("button",{disabled:n,className:"button button-primary",onClick:e=>this.handleFix(e)},(0,f.__)("Ignore","really-simple-ssl")),"ignore_url"!==t.action&&(0,e.createElement)("button",{disabled:n,className:"button button-primary",onClick:e=>this.handleFix(e)},(0,f.__)("Fix","really-simple-ssl")))))}}var De=Ie;class Te extends e.Component{constructor(){super(...arguments)}render(){let t=rsssl_settings.plugin_url;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:t+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}))),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"},(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-row-2 "}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2"})))}}var He=Te,je=t=>{const[s,n]=(0,e.useState)(!1);(0,e.useEffect)((()=>{s||h("get_modal_status").then((e=>{n(!0),t.setShowOnBoardingModal(!e.dismissed)}))})),A((()=>{if(!0===t.showOnBoardingModal){h("dismiss_modal","refresh",{dismiss:!1}).then((e=>{}))}}));const r=()=>{t.setShowOnBoardingModal(!1),h("dismiss_modal","refresh",{dismiss:!0}).then((e=>{}))};return(0,e.createElement)(e.Fragment,null,t.showOnBoardingModal&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-modal-backdrop"}," "),(0,e.createElement)("div",{className:"rsssl-modal rsssl-onboarding"},(0,e.createElement)("div",{className:"rsssl-modal-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:rsssl_settings.plugin_url+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}),(0,e.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:r},(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"24"},(0,e.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))),(0,e.createElement)("div",{className:"rsssl-modal-content"},!t.isAPILoaded&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)(_,{name:"file-download",color:"orange"}),(0,f.__)("Please wait while we detect your setup","really-simple-ssl"))),(0,e.createElement)(N,{lines:"10"})),t.isAPILoaded&&(0,e.createElement)(ie,{getFields:t.getFields,updateField:t.updateField,selectMainMenu:t.selectMainMenu,isModal:!0,dismissModal:r})),(0,e.createElement)("div",{className:"rssl-modal-footer"}))))};class $e extends e.Component{constructor(){super(...arguments),this.pageProps=[],this.pageProps.licenseStatus=rsssl_settings.licenseStatus,this.updateFields=this.updateFields.bind(this),this.updateProgress=this.updateProgress.bind(this),this.getFields=this.getFields.bind(this),this.selectMenu=this.selectMenu.bind(this),this.getSelectedMenu=this.getSelectedMenu.bind(this),this.selectStep=this.selectStep.bind(this),this.handleModal=this.handleModal.bind(this),this.highLightField=this.highLightField.bind(this),this.updateField=this.updateField.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.addHelp=this.addHelp.bind(this),this.selectMainMenu=this.selectMainMenu.bind(this),this.setPageProps=this.setPageProps.bind(this),this.getPreviousAndNextMenuItems=this.getPreviousAndNextMenuItems.bind(this),this.setShowOnBoardingModal=this.setShowOnBoardingModal.bind(this),this.state={selectedMainMenuItem:"",showOnBoardingModal:!1,selectedMenuItem:"",selectedStep:1,highLightedField:"",fields:"",menu:[],progress:"",isAPILoaded:!1,pageProps:this.pageProps,showModal:!1,modalData:[],dropItemFromModal:!1,nextMenuItem:"",previousMenuItem:""},this.getFields()}setShowOnBoardingModal(e){const{showOnBoardingModal:t}=this.state;e!==t&&this.setState({showOnBoardingModal:e})}updateFields(e){this.fields=e,this.setState({fields:e})}updateProgress(e){this.progress=e,this.setState({progress:e})}componentDidMount(){window.addEventListener("hashchange",(()=>{let e=t("main")||"dashboard";this.menu=this.getSelectedMenu(this.superMenu,e),this.setState({selectedMainMenuItem:e,selectedMenuItem:this.getDefaultMenuItem(),menu:this.menu},(()=>{this.getPreviousAndNextMenuItems()}))}))}getSelectedMenu(e,t){for(const s in e)if(e.hasOwnProperty(s)&&e[s]&&e[s].id===t)return e[s]}getFields(){(()=>{let e=t("main");return c("reallysimplessl/v1/fields/get"+u()+e+i())})().then((e=>{this.superMenu=e.menu;let s=t("main")||"dashboard";this.menu=this.getSelectedMenu(this.superMenu,s),this.fields=e.fields,this.progress=e.progress,this.setState({isAPILoaded:!0,fields:this.fields,progress:this.progress,menu:this.menu,selectedMenuItem:this.getDefaultMenuItem(),selectedMainMenuItem:s},(()=>{this.getPreviousAndNextMenuItems()}))}))}setPageProps(e,t){const{pageProps:s}=this.state;this.pageProps[e]=t,this.setState({pageProps:this.pageProps})}handleModal(e,t,s){this.setState({showModal:e,modalData:t,dropItemFromModal:s})}selectMenu(e){this.setState({selectedMenuItem:e})}selectStep(e){this.setState({selectedStep:e})}getDefaultMenuItem(){let e=this.menu&&this.menu.menu_items.hasOwnProperty(0)?this.menu.menu_items[0].id:"general",s=t("menu"),n=!1;for(const e in this.menu.menu_items)this.menu.menu_items.hasOwnProperty(e)&&this.menu.menu_items[e].id===s&&(n=!0);return n||(s=!1),s||e}selectMainMenu(e){this.menu=this.getSelectedMenu(this.superMenu,e);let t=this.getDefaultMenuItem();this.setState({menu:this.menu,selectedMainMenuItem:e,selectedMenuItem:t})}updateField(e,t){let s=this.fields;for(const n of s)n.id===e&&(n.value=t);this.fields=s,this.setState({fields:s})}getFieldValue(e){let t=this.fields;for(const s of t)if(s.id===e)return s.value;return!1}addHelp(e,t,s,n){let r={};r.label=t,r.text=s,n&&(r.title=n);let l=this.fields;for(const t of l)t.id!==e||t.help||(t.help=r,this.fields=l,this.setState({fields:l}))}highLightField(e){this.selectMainMenu("settings");let t=null,s=this.fields.filter((t=>t.id===e));s.length&&(t=s[0],this.selectMenu(t.menu_id)),this.highLightedField=e}menuItemParser(e,t){return t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&this.menuItemParser(e,t.menu_items))})),e}getPreviousAndNextMenuItems(){let e,t;const{menu_items:s}=this.state.menu,n=[];this.menuItemParser(n,s);const r=n.findIndex((e=>e===this.state.selectedMenuItem));return-1!==r&&(e=n[0===r?"":r-1],t=n[r===n.length-1?"":r+1],this.setState({previousMenuItem:e||n[0],nextMenuItem:t||n[n.length-1]})),{nextMenuItem:t,previousMenuItem:e}}render(){const{pageProps:t,selectedMainMenuItem:s,showOnBoardingModal:n,selectedMenuItem:r,fields:l,menu:a,progress:i,isAPILoaded:o,showModal:c,modalData:d,dropItemFromModal:u}=this.state;return(0,e.createElement)("div",{className:"rsssl-wrapper"},(0,e.createElement)(je,{isAPILoaded:o,selectMenu:this.selectMenu,selectMainMenu:this.selectMainMenu,getFields:this.getFields,updateField:this.updateField,setShowOnBoardingModal:this.setShowOnBoardingModal,showOnBoardingModal:n,pageProps:this.pageProps,setPageProps:this.setPageProps}),!o&&(0,e.createElement)(He,null),c&&(0,e.createElement)(De,{handleModal:this.handleModal,data:d}),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(C,{selectedMainMenuItem:s,selectMainMenu:this.selectMainMenu,superMenu:this.superMenu,fields:l}),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-"+s},"dashboard"!==s&&(0,e.createElement)(Ae,{dropItemFromModal:u,updateFields:this.updateFields,updateProgress:this.updateProgress,pageProps:this.pageProps,handleModal:this.handleModal,getDefaultMenuItem:this.getDefaultMenuItem,updateField:this.updateField,getFieldValue:this.getFieldValue,addHelp:this.addHelp,setPageProps:this.setPageProps,selectMenu:this.selectMenu,selectStep:this.selectStep,selectedStep:this.state.selectedStep,highLightField:this.highLightField,highLightedField:this.highLightedField,selectedMenuItem:r,selectedMainMenuItem:s,selectMainMenu:this.selectMainMenu,isAPILoaded:o,fields:l,menu:a,progress:i,getPreviousAndNextMenuItems:this.getPreviousAndNextMenuItems,nextMenuItem:this.state.nextMenuItem,previousMenuItem:this.state.previousMenuItem}),"dashboard"===s&&(0,e.createElement)(q,{setShowOnBoardingModal:this.setShowOnBoardingModal,isAPILoaded:o,fields:l,selectMainMenu:this.selectMainMenu,highLightField:this.highLightField,getFields:this.getFields,pageProps:t}))))}}var Be=$e;document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("really-simple-ssl");t&&(0,e.render)((0,e.createElement)(e.Fragment,null,(0,e.createElement)(Be,null)),t)})),document.addEventListener("click",(e=>{e.target.closest("#ssl-labs-check-button")&&document.querySelector(".rsssl-ssllabs").classList.add("rsssl-block-highlight")}))}()}();