(()=>{var e={757:(e,t,n)=>{"use strict";var a=n(609),l=n(577);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r,o=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(a),s=i(a),c=i(l);function u(e,t){return e[t]}function p(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function d(e=[],t,n="id"){const a=e.slice(),l=u(t,n);return l?a.splice(a.findIndex((e=>u(e,n)===l)),1):a.splice(a.findIndex((e=>e===t)),1),a}function m(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(r||(r={}));const y=()=>null;function f(e,t=[],n=[]){let a={},l=[...n];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)&&(a=t.style||{},t.classNames&&(l=[...l,...t.classNames]),"function"==typeof t.style&&(a=t.style(e)||{}))})),{conditionalStyle:a,classNames:l.join(" ")}}function b(e,t=[],n="id"){const a=u(e,n);return a?t.some((e=>u(e,n)===a)):t.some((t=>t===e))}function E(e,t){return t?e.findIndex((e=>v(e.id,t))):-1}function v(e,t){return e==t}function _(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:a,rowCount:l,mergeSelections:i}=t,r=!e.allSelected,o=!e.toggleOnSelectedRowsChange;if(i){const t=r?[...e.selectedRows,...a.filter((t=>!b(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!b(e,a,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:o})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?l:0,selectedRows:r?a:[],toggleOnSelectedRowsChange:o})}case"SELECT_SINGLE_ROW":{const{keyField:a,row:l,isSelected:i,rowCount:r,singleSelect:o}=t;return o?i?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[l],toggleOnSelectedRowsChange:n}):i?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:d(e.selectedRows,l,a),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:p(e.selectedRows,l),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:a,selectedRows:l,totalRows:i,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...l.filter((t=>!b(t,e.selectedRows,a)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:l.length,allSelected:l.length===i,selectedRows:l,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:a,selectedColumn:l,clearSelectedOnSort:i}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:l,sortDirection:a,currentPage:1}),i&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:a,paginationServer:l,visibleOnly:i,persistSelectedOnPageChange:r}=t,o=l&&r,s=l&&!r||i;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:a}),o&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:a}=t;return Object.assign(Object.assign({},e),{currentPage:a,rowsPerPage:n})}}}const w=l.css`
pointer-events: none;
opacity: 0.4;
`,C=c.default.div`
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 100%;
${({disabled:e})=>e&&w};
${({theme:e})=>e.table.style};
`,S=l.css`
position: sticky;
position: -webkit-sticky; /* Safari */
top: 0;
z-index: 1;
`,x=c.default.div`
display: flex;
width: 100%;
${({$fixedHeader:e})=>e&&S};
${({theme:e})=>e.head.style};
`,k=c.default.div`
display: flex;
align-items: stretch;
width: 100%;
${({theme:e})=>e.headRow.style};
${({$dense:e,theme:t})=>e&&t.headRow.denseStyle};
`,R=(e,...t)=>l.css`
@media screen and (max-width: ${599}px) {
${l.css(e,...t)}
}
`,P=(e,...t)=>l.css`
@media screen and (max-width: ${959}px) {
${l.css(e,...t)}
}
`,O=(e,...t)=>l.css`
@media screen and (max-width: ${1280}px) {
${l.css(e,...t)}
}
`,T=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"};
`,D=c.default(T)`
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&&l.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&&R`
display: none;
`};
${({hide:e})=>e&&"md"===e&&P`
display: none;
`};
${({hide:e})=>e&&"lg"===e&&O`
display: none;
`};
${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...n)=>l.css`
@media screen and (max-width: ${e}px) {
${l.css(t,...n)}
}
`)(e)`
display: none;
`};
`,A=l.css`
div:first-child {
white-space: ${({$wrapCell:e})=>e?"normal":"nowrap"};
overflow: ${({$allowOverflow:e})=>e?"visible":"hidden"};
text-overflow: ellipsis;
}
`,N=c.default(D).attrs((e=>({style:e.style})))`
${({$renderAsCell:e})=>!e&&A};
${({theme:e,$isDragging:t})=>t&&e.cells.draggingStyle};
${({$cellStyle:e})=>e};
`;var I=o.memo((function({id:e,column:t,row:n,rowIndex:a,dataTag:l,isDragging:i,onDragStart:r,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:p}){const{conditionalStyle:d,classNames:m}=f(n,t.conditionalCellStyles,["rdt_TableCell"]);return o.createElement(N,{id:e,"data-column-id":t.id,role:"cell",className:m,"data-tag":l,$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:d,$isDragging:i,onDragStart:r,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:p},!t.cell&&o.createElement("div",{"data-tag":l},function(e,t,n,a){return t?n&&"function"==typeof n?n(e,a):t(e,a):null}(n,t.selector,t.format,a)),t.cell&&t.cell(n,a,t,e))}));const $="input";var F=o.memo((function({name:e,component:t=$,componentOptions:n={style:{}},indeterminate:a=!1,checked:l=!1,disabled:i=!1,onClick:r=y}){const s=t,c=s!==$?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(i),u=o.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((a,l)=>{const i=e;"function"==typeof a&&(n=Object.assign(Object.assign({},i),{[Object.keys(e)[l]]:a(...t)}))})),n||e}(n,a)),[n,a]);return o.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=a)},style:c,onClick:i?y:r,name:e,"aria-label":e,checked:l,disabled:i},u,{onChange:y}))}));const H=c.default(T)`
flex: 0 0 48px;
min-width: 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
`;function L({name:e,keyField:t,row:n,rowCount:a,selected:l,selectableRowsComponent:i,selectableRowsComponentProps:r,selectableRowsSingle:s,selectableRowDisabled:c,onSelectedRow:u}){const p=!(!c||!c(n));return o.createElement(H,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},o.createElement(F,{name:e,component:i,componentOptions:r,checked:l,"aria-checked":l,onClick:()=>{u({type:"SELECT_SINGLE_ROW",row:n,isSelected:l,keyField:t,rowCount:a,singleSelect:s})},disabled:p}))}const B=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 j({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:a,row:l,onToggled:i}){const r=t?n.expanded:n.collapsed;return o.createElement(B,{"aria-disabled":e,onClick:()=>i&&i(l),"data-testid":`expander-button-${a}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},r)}const M=c.default(T)`
white-space: nowrap;
font-weight: 400;
min-width: 48px;
${({theme:e})=>e.expanderCell.style};
`;function z({row:e,expanded:t=!1,expandableIcon:n,id:a,onToggled:l,disabled:i=!1}){return o.createElement(M,{onClick:e=>e.stopPropagation(),$noPadding:!0},o.createElement(j,{id:a,row:e,expanded:t,expandableIcon:n,disabled:i,onToggled:l}))}const W=c.default.div`
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.expanderRow.style};
${({$extendedRowStyle:e})=>e};
`;var U=o.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:a,extendedClassNames:l}){const i=["rdt_ExpanderRow",...l.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return o.createElement(W,{className:i,$extendedRowStyle:a},o.createElement(t,Object.assign({data:e},n)))}));const G="allowRowEvents";var Y,V,J;t.OP=void 0,(Y=t.OP||(t.OP={})).LTR="ltr",Y.RTL="rtl",Y.AUTO="auto",t.C1=void 0,(V=t.C1||(t.C1={})).LEFT="left",V.RIGHT="right",V.CENTER="center",t.$U=void 0,(J=t.$U||(t.$U={})).SM="sm",J.MD="md",J.LG="lg";const K=l.css`
&:hover {
${({$highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
}
`,q=l.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&&K};
${({$pointerOnHover:e})=>e&&q};
${({$selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
${({$conditionalStyle:e})=>e};
`;function X({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:a=!1,dense:l=!1,expandableIcon:i,expandableRows:r=!1,expandableRowsComponent:s,expandableRowsComponentProps:c,expandableRowsHideExpander:p,expandOnRowClicked:d=!1,expandOnRowDoubleClicked:m=!1,highlightOnHover:g=!1,id:h,expandableInheritConditionalStyles:b,keyField:E,onRowClicked:_=y,onRowDoubleClicked:w=y,onRowMouseEnter:C=y,onRowMouseLeave:S=y,onRowExpandToggled:x=y,onSelectedRow:k=y,pointerOnHover:R=!1,row:P,rowCount:O,rowIndex:T,selectableRowDisabled:D=null,selectableRows:A=!1,selectableRowsComponent:N,selectableRowsComponentProps:$,selectableRowsHighlight:F=!1,selectableRowsSingle:H=!1,selected:B,striped:j=!1,draggingColumnId:M,onDragStart:W,onDragOver:Y,onDragEnd:V,onDragEnter:J,onDragLeave:K}){const[q,X]=o.useState(n);o.useEffect((()=>{X(n)}),[n]);const Q=o.useCallback((()=>{X(!q),x(!q,P)}),[q,x,P]),ee=R||r&&(d||m),te=o.useCallback((e=>{e.target.getAttribute("data-tag")===G&&(_(P,e),!a&&r&&d&&Q())}),[a,d,r,Q,_,P]),ne=o.useCallback((e=>{e.target.getAttribute("data-tag")===G&&(w(P,e),!a&&r&&m&&Q())}),[a,m,r,Q,w,P]),ae=o.useCallback((e=>{C(P,e)}),[C,P]),le=o.useCallback((e=>{S(P,e)}),[S,P]),ie=u(P,E),{conditionalStyle:re,classNames:oe}=f(P,t,["rdt_TableRow"]),se=F&&B,ce=b?re:{},ue=j&&T%2==0;return o.createElement(o.Fragment,null,o.createElement(Z,{id:`row-${h}`,role:"row",$striped:ue,$highlightOnHover:g,$pointerOnHover:!a&&ee,$dense:l,onClick:te,onDoubleClick:ne,onMouseEnter:ae,onMouseLeave:le,className:oe,$selected:se,$conditionalStyle:re},A&&o.createElement(L,{name:`select-row-${ie}`,keyField:E,row:P,rowCount:O,selected:B,selectableRowsComponent:N,selectableRowsComponentProps:$,selectableRowDisabled:D,selectableRowsSingle:H,onSelectedRow:k}),r&&!p&&o.createElement(z,{id:ie,expandableIcon:i,expanded:q,row:P,onToggled:Q,disabled:a}),e.map((e=>e.omit?null:o.createElement(I,{id:`cell-${e.id}-${ie}`,key:`cell-${e.id}-${ie}`,dataTag:e.ignoreRowClick||e.button?null:G,column:e,row:P,rowIndex:T,isDragging:v(M,e.id),onDragStart:W,onDragOver:Y,onDragEnd:V,onDragEnter:J,onDragLeave:K})))),r&&q&&o.createElement(U,{key:`expander-${ie}`,data:P,extendedRowStyle:ce,extendedClassNames:oe,ExpanderComponent:s,expanderComponentProps:c}))}const Q=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)"};
`,ee=({sortActive:e,sortDirection:t})=>s.default.createElement(Q,{$sortActive:e,$sortDirection:t},"▲"),te=c.default(D)`
${({button:e})=>e&&"text-align: center"};
${({theme:e,$isDragging:t})=>t&&e.headCells.draggingStyle};
`,ne=l.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&&l.css`
&:hover,
&:focus {
opacity: 0.7;
span,
span.__rdt_custom_sort_icon__ * {
opacity: 0.7;
}
}
`};
`,ae=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&&ne};
`,le=c.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;var ie=o.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:a={},sortDirection:l,sortIcon:i,sortServer:s,pagination:c,paginationServer:u,persistSelectedOnSort:p,selectableRowsVisibleOnly:d,onSort:m,onDragStart:g,onDragOver:h,onDragEnd:y,onDragEnter:f,onDragLeave:b}){o.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[E,_]=o.useState(!1),w=o.useRef(null);if(o.useEffect((()=>{w.current&&_(w.current.scrollWidth>w.current.clientWidth)}),[E]),e.omit)return null;const C=()=>{if(!e.sortable&&!e.selector)return;let t=l;v(a.id,e.id)&&(t=l===r.ASC?r.DESC:r.ASC),m({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&u&&!p||s||d})},S=e=>o.createElement(ee,{sortActive:e,sortDirection:l}),x=()=>o.createElement("span",{className:[l,"__rdt_custom_sort_icon__"].join(" ")},i),k=!(!e.sortable||!v(a.id,e.id)),R=!e.sortable||t,P=e.sortable&&!i&&!e.right,O=e.sortable&&!i&&e.right,T=e.sortable&&i&&!e.right,D=e.sortable&&i&&e.right;return o.createElement(te,{"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:v(e.id,n),onDragStart:g,onDragOver:h,onDragEnd:y,onDragEnter:f,onDragLeave:b},e.name&&o.createElement(ae,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:R?void 0:C,onKeyPress:R?void 0:e=>{"Enter"===e.key&&C()},$sortActive:!R&&k,disabled:R},!R&&D&&x(),!R&&O&&S(k),"string"==typeof e.name?o.createElement(le,{title:E?e.name:void 0,ref:w,"data-column-id":e.id},e.name):e.name,!R&&T&&x(),!R&&P&&S(k)))}));const re=c.default(T)`
flex: 0 0 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
font-size: unset;
`;function oe({headCell:e=!0,rowData:t,keyField:n,allSelected:a,mergeSelections:l,selectedRows:i,selectableRowsComponent:r,selectableRowsComponentProps:s,selectableRowDisabled:c,onSelectAllRows:u}){const p=i.length>0&&!a,d=c?t.filter((e=>!c(e))):t,m=0===d.length,g=Math.min(t.length,d.length);return o.createElement(re,{className:"rdt_TableCol",$headCell:e,$noPadding:!0},o.createElement(F,{name:"select-all-rows",component:r,componentOptions:s,onClick:()=>{u({type:"SELECT_ALL_ROWS",rows:d,rowCount:g,mergeSelections:l,keyField:n})},checked:a,indeterminate:p,disabled:m}))}function se(e=t.OP.AUTO){const n="object"==typeof window,[a,l]=o.useState(!1);return o.useEffect((()=>{if(n)if("auto"!==e)l("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],a="rtl"===t.dir||"rtl"===n.dir;l(e&&a)}}),[e,n]),a}const ce=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;
`,ue=c.default.div`
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
`,pe=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 de({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:a,direction:l}){const i=se(l),r=a>0;return n?o.createElement(pe,{$visible:r},o.cloneElement(n,{selectedCount:a})):o.createElement(pe,{$visible:r,$rtl:i},o.createElement(ce,null,((e,t,n)=>{if(0===t)return null;const a=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${a}`:`${t} ${a} ${e.message||""}`})(e,a,i)),o.createElement(ue,null,t))}const me=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}
`,ge=c.default.div`
flex: 1 0 auto;
color: ${({theme:e})=>e.header.fontColor};
font-size: ${({theme:e})=>e.header.fontSize};
font-weight: 400;
`,he=c.default.div`
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: flex-end;
> * {
margin-left: 5px;
}
`,ye=({title:e,actions:t=null,contextMessage:n,contextActions:a,contextComponent:l,selectedCount:i,direction:r,showMenu:s=!0})=>o.createElement(me,{className:"rdt_TableHeader",role:"heading","aria-level":1},o.createElement(ge,null,e),t&&o.createElement(he,null,t),s&&o.createElement(de,{contextMessage:n,contextActions:a,contextComponent:l,direction:r,selectedCount:i}));function fe(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n}"function"==typeof SuppressedError&&SuppressedError;const be={left:"flex-start",right:"flex-end",center:"center"},Ee=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})=>be[e]};
flex-wrap: ${({$wrapContent:e})=>e?"wrap":"nowrap"};
${({theme:e})=>e.subHeader.style}
`,ve=e=>{var{align:t="right",wrapContent:n=!0}=e,a=fe(e,["align","wrapContent"]);return o.createElement(Ee,Object.assign({align:t,$wrapContent:n},a))},_e=c.default.div`
display: flex;
flex-direction: column;
`,we=c.default.div`
position: relative;
width: 100%;
border-radius: inherit;
${({$responsive:e,$fixedHeader:t})=>e&&l.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&&l.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};
`,Se=c.default.div`
position: relative;
width: 100%;
${({theme:e})=>e.tableWrapper.style};
`,xe=c.default(T)`
white-space: nowrap;
${({theme:e})=>e.expanderCell.style};
`,ke=c.default.div`
box-sizing: border-box;
width: 100%;
height: 100%;
${({theme:e})=>e.noData.style};
`,Re=()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},s.default.createElement("path",{d:"M7 10l5 5 5-5z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Pe=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;
}
`,Oe=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;
}
`,Te=e=>{var{defaultValue:t,onChange:n}=e,a=fe(e,["defaultValue","onChange"]);return o.createElement(Oe,null,o.createElement(Pe,Object.assign({onChange:n,defaultValue:t},a)),o.createElement(Re,null))},De={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 s.default.createElement("div",null,"To add an expander pass in a component instance via ",s.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),s.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),s.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:s.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:s.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.C1.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:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),s.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),s.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.OP.AUTO,onChangePage:y,onChangeRowsPerPage:y,onRowClicked:y,onRowDoubleClicked:y,onRowMouseEnter:y,onRowMouseLeave:y,onRowExpandToggled:y,onSelectedRowsChange:y,onSort:y,onColumnOrderChange:y},Ae={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Ne=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};
`,Ie=c.default.button`
position: relative;
display: block;
user-select: none;
border: none;
${({theme:e})=>e.pagination.pageButtonsStyle};
${({$isRTL:e})=>e&&"transform: scale(-1, -1)"};
`,$e=c.default.div`
display: flex;
align-items: center;
border-radius: 4px;
white-space: nowrap;
${R`
width: 100%;
justify-content: space-around;
`};
`,Fe=c.default.span`
flex-shrink: 1;
user-select: none;
`,He=c.default(Fe)`
margin: 0 24px;
`,Le=c.default(Fe)`
margin: 0 4px;
`;var Be=o.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:a=De.direction,paginationRowsPerPageOptions:l=De.paginationRowsPerPageOptions,paginationIconLastPage:i=De.paginationIconLastPage,paginationIconFirstPage:r=De.paginationIconFirstPage,paginationIconNext:s=De.paginationIconNext,paginationIconPrevious:c=De.paginationIconPrevious,paginationComponentOptions:u=De.paginationComponentOptions,onChangeRowsPerPage:p=De.onChangeRowsPerPage,onChangePage:d=De.onChangePage}){const m=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,a]=o.useState(t);return o.useEffect((()=>{if(!e)return()=>null;function n(){a(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),h=se(a),y=m.width&&m.width>599,f=g(t,e),b=n*e,E=b-e+1,v=1===n,_=n===f,w=Object.assign(Object.assign({},Ae),u),C=n===f?`${E}-${t} ${w.rangeSeparatorText} ${t}`:`${E}-${b} ${w.rangeSeparatorText} ${t}`,S=o.useCallback((()=>d(n-1)),[n,d]),x=o.useCallback((()=>d(n+1)),[n,d]),k=o.useCallback((()=>d(1)),[d]),R=o.useCallback((()=>d(g(t,e))),[d,t,e]),P=o.useCallback((e=>p(Number(e.target.value),n)),[n,p]),O=l.map((e=>o.createElement("option",{key:e,value:e},e)));w.selectAllRowsItem&&O.push(o.createElement("option",{key:-1,value:t},w.selectAllRowsItemText));const T=o.createElement(Te,{onChange:P,defaultValue:e,"aria-label":w.rowsPerPageText},O);return o.createElement(Ne,{className:"rdt_Pagination"},!w.noRowsPerPage&&y&&o.createElement(o.Fragment,null,o.createElement(Le,null,w.rowsPerPageText),T),y&&o.createElement(He,null,C),o.createElement($e,null,o.createElement(Ie,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":v,onClick:k,disabled:v,$isRTL:h},r),o.createElement(Ie,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":v,onClick:S,disabled:v,$isRTL:h},c),!w.noRowsPerPage&&!y&&T,o.createElement(Ie,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":_,onClick:x,disabled:_,$isRTL:h},s),o.createElement(Ie,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":_,onClick:R,disabled:_,$isRTL:h},i)))}));const je=(e,t)=>{const n=o.useRef(!0);o.useEffect((()=>{n.current?n.current=!1:e()}),t)};var Me=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===ze}(e)}(e)},ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function We(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ve((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ue(e,t,n){return e.concat(t).map((function(e){return We(e,n)}))}function Ge(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ye(e,t){try{return t in e}catch(e){return!1}}function Ve(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ue,n.isMergeableObject=n.isMergeableObject||Me,n.cloneUnlessOtherwiseSpecified=We;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):function(e,t,n){var a={};return n.isMergeableObject(e)&&Ge(e).forEach((function(t){a[t]=We(e[t],n)})),Ge(t).forEach((function(l){(function(e,t){return Ye(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,l)||(Ye(e,l)&&n.isMergeableObject(t[l])?a[l]=function(e,t){if(!t.customMerge)return Ve;var n=t.customMerge(e);return"function"==typeof n?n:Ve}(l,n)(e[l],t[l],n):a[l]=We(t[l],n))})),a}(e,t,n):We(t,n)}Ve.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ve(e,n,t)}),{})};var Je=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ve);const Ke={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)"}},qe={default:Ke,light:Ke,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,n,a){const[l,i]=o.useState((()=>m(e))),[s,c]=o.useState(""),u=o.useRef("");je((()=>{i(m(e))}),[e]);const p=o.useCallback((e=>{var t,n,a;const{attributes:i}=e.target,r=null===(t=i.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(u.current=(null===(a=null===(n=l[E(l,r)])||void 0===n?void 0:n.id)||void 0===a?void 0:a.toString())||"",c(u.current))}),[l]),d=o.useCallback((e=>{var n;const{attributes:a}=e.target,r=null===(n=a.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(r&&u.current&&r!==u.current){const e=E(l,u.current),n=E(l,r),a=[...l];a[e]=l[n],a[n]=l[e],i(a),t(a)}}),[t,l]),g=o.useCallback((e=>{e.preventDefault()}),[]),h=o.useCallback((e=>{e.preventDefault()}),[]),y=o.useCallback((e=>{e.preventDefault(),u.current="",c("")}),[]),f=function(e=!1){return e?r.ASC:r.DESC}(a),b=o.useMemo((()=>l[E(l,null==n?void 0:n.toString())]||{}),[n,l]);return{tableColumns:l,draggingColumnId:s,handleDragStart:p,handleDragEnter:d,handleDragOver:g,handleDragLeave:h,handleDragEnd:y,defaultSortDirection:f,defaultSortColumn:b}}var Xe=o.memo((function(e){const{data:t=De.data,columns:n=De.columns,title:a=De.title,actions:i=De.actions,keyField:s=De.keyField,striped:c=De.striped,highlightOnHover:p=De.highlightOnHover,pointerOnHover:d=De.pointerOnHover,dense:m=De.dense,selectableRows:y=De.selectableRows,selectableRowsSingle:f=De.selectableRowsSingle,selectableRowsHighlight:E=De.selectableRowsHighlight,selectableRowsNoSelectAll:v=De.selectableRowsNoSelectAll,selectableRowsVisibleOnly:w=De.selectableRowsVisibleOnly,selectableRowSelected:S=De.selectableRowSelected,selectableRowDisabled:R=De.selectableRowDisabled,selectableRowsComponent:P=De.selectableRowsComponent,selectableRowsComponentProps:O=De.selectableRowsComponentProps,onRowExpandToggled:D=De.onRowExpandToggled,onSelectedRowsChange:A=De.onSelectedRowsChange,expandableIcon:N=De.expandableIcon,onChangeRowsPerPage:I=De.onChangeRowsPerPage,onChangePage:$=De.onChangePage,paginationServer:F=De.paginationServer,paginationServerOptions:H=De.paginationServerOptions,paginationTotalRows:L=De.paginationTotalRows,paginationDefaultPage:B=De.paginationDefaultPage,paginationResetDefaultPage:j=De.paginationResetDefaultPage,paginationPerPage:M=De.paginationPerPage,paginationRowsPerPageOptions:z=De.paginationRowsPerPageOptions,paginationIconLastPage:W=De.paginationIconLastPage,paginationIconFirstPage:U=De.paginationIconFirstPage,paginationIconNext:G=De.paginationIconNext,paginationIconPrevious:Y=De.paginationIconPrevious,paginationComponent:V=De.paginationComponent,paginationComponentOptions:J=De.paginationComponentOptions,responsive:K=De.responsive,progressPending:q=De.progressPending,progressComponent:Z=De.progressComponent,persistTableHead:Q=De.persistTableHead,noDataComponent:ee=De.noDataComponent,disabled:te=De.disabled,noTableHead:ne=De.noTableHead,noHeader:ae=De.noHeader,fixedHeader:le=De.fixedHeader,fixedHeaderScrollHeight:re=De.fixedHeaderScrollHeight,pagination:se=De.pagination,subHeader:ce=De.subHeader,subHeaderAlign:ue=De.subHeaderAlign,subHeaderWrap:pe=De.subHeaderWrap,subHeaderComponent:de=De.subHeaderComponent,noContextMenu:me=De.noContextMenu,contextMessage:ge=De.contextMessage,contextActions:he=De.contextActions,contextComponent:fe=De.contextComponent,expandableRows:be=De.expandableRows,onRowClicked:Ee=De.onRowClicked,onRowDoubleClicked:Re=De.onRowDoubleClicked,onRowMouseEnter:Pe=De.onRowMouseEnter,onRowMouseLeave:Oe=De.onRowMouseLeave,sortIcon:Te=De.sortIcon,onSort:Ae=De.onSort,sortFunction:Ne=De.sortFunction,sortServer:Ie=De.sortServer,expandableRowsComponent:$e=De.expandableRowsComponent,expandableRowsComponentProps:Fe=De.expandableRowsComponentProps,expandableRowDisabled:He=De.expandableRowDisabled,expandableRowsHideExpander:Le=De.expandableRowsHideExpander,expandOnRowClicked:Me=De.expandOnRowClicked,expandOnRowDoubleClicked:ze=De.expandOnRowDoubleClicked,expandableRowExpanded:We=De.expandableRowExpanded,expandableInheritConditionalStyles:Ue=De.expandableInheritConditionalStyles,defaultSortFieldId:Ge=De.defaultSortFieldId,defaultSortAsc:Ye=De.defaultSortAsc,clearSelectedRows:Ve=De.clearSelectedRows,conditionalRowStyles:Ke=De.conditionalRowStyles,theme:Xe=De.theme,customStyles:Qe=De.customStyles,direction:et=De.direction,onColumnOrderChange:tt=De.onColumnOrderChange,className:nt}=e,{tableColumns:at,draggingColumnId:lt,handleDragStart:it,handleDragEnter:rt,handleDragOver:ot,handleDragLeave:st,handleDragEnd:ct,defaultSortDirection:ut,defaultSortColumn:pt}=Ze(n,tt,Ge,Ye),[{rowsPerPage:dt,currentPage:mt,selectedRows:gt,allSelected:ht,selectedCount:yt,selectedColumn:ft,sortDirection:bt,toggleOnSelectedRowsChange:Et},vt]=o.useReducer(_,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:pt,toggleOnSelectedRowsChange:!1,sortDirection:ut,currentPage:B,rowsPerPage:M,selectedRowsFlag:!1,contextMessage:De.contextMessage}),{persistSelectedOnSort:_t=!1,persistSelectedOnPageChange:wt=!1}=H,Ct=!(!F||!wt&&!_t),St=se&&!q&&t.length>0,xt=V||Be,kt=o.useMemo((()=>((e={},t="default",n="default")=>{return Je({table:{style:{color:(a=qe[qe[t]?t:n]).text.primary,backgroundColor:a.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:a.text.primary,backgroundColor:a.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:a.background.default,minHeight:"52px"}},head:{style:{color:a.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:a.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:a.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:a.context.background,fontSize:"18px",fontWeight:400,color:a.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:a.text.primary,backgroundColor:a.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:a.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:a.selected.text,backgroundColor:a.selected.default,borderBottomColor:a.background.default}},highlightOnHoverStyle:{color:a.highlightOnHover.text,backgroundColor:a.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:a.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:a.background.default},stripedStyle:{color:a.striped.text,backgroundColor:a.striped.default}},expanderRow:{style:{color:a.text.primary,backgroundColor:a.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:a.button.default,fill:a.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:a.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:a.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:a.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:a.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:a.button.default,fill:a.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:a.button.disabled,fill:a.button.disabled},"&:hover:not(:disabled)":{backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}}},e);var a})(Qe,Xe)),[Qe,Xe]),Rt=o.useMemo((()=>Object.assign({},"auto"!==et&&{dir:et})),[et]),Pt=o.useMemo((()=>{if(Ie)return t;if((null==ft?void 0:ft.sortFunction)&&"function"==typeof ft.sortFunction){const e=ft.sortFunction,n=bt===r.ASC?e:(t,n)=>-1*e(t,n);return[...t].sort(n)}return function(e,t,n,a){return t?a&&"function"==typeof a?a(e.slice(0),t,n):e.slice(0).sort(((e,a)=>{const l=t(e),i=t(a);if("asc"===n){if(l<i)return-1;if(l>i)return 1}if("desc"===n){if(l>i)return-1;if(l<i)return 1}return 0})):e}(t,null==ft?void 0:ft.selector,bt,Ne)}),[Ie,ft,bt,t,Ne]),Ot=o.useMemo((()=>{if(se&&!F){const e=mt*dt,t=e-dt;return Pt.slice(t,e)}return Pt}),[mt,se,F,dt,Pt]),Tt=o.useCallback((e=>{vt(e)}),[]),Dt=o.useCallback((e=>{vt(e)}),[]),At=o.useCallback((e=>{vt(e)}),[]),Nt=o.useCallback(((e,t)=>Ee(e,t)),[Ee]),It=o.useCallback(((e,t)=>Re(e,t)),[Re]),$t=o.useCallback(((e,t)=>Pe(e,t)),[Pe]),Ft=o.useCallback(((e,t)=>Oe(e,t)),[Oe]),Ht=o.useCallback((e=>vt({type:"CHANGE_PAGE",page:e,paginationServer:F,visibleOnly:w,persistSelectedOnPageChange:wt})),[F,wt,w]),Lt=o.useCallback((e=>{const t=g(L||Ot.length,e),n=h(mt,t);F||Ht(n),vt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[mt,Ht,F,L,Ot.length]);if(se&&!F&&Pt.length>0&&0===Ot.length){const e=g(Pt.length,dt),t=h(mt,e);Ht(t)}je((()=>{A({allSelected:ht,selectedCount:yt,selectedRows:gt.slice(0)})}),[Et]),je((()=>{Ae(ft,bt,Pt.slice(0))}),[ft,bt]),je((()=>{$(mt,L||Pt.length)}),[mt]),je((()=>{I(dt,mt)}),[dt]),je((()=>{Ht(B)}),[B,j]),je((()=>{if(se&&F&&L>0){const e=g(L,dt),t=h(mt,e);mt!==t&&Ht(t)}}),[L]),o.useEffect((()=>{vt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ve})}),[f,Ve]),o.useEffect((()=>{if(!S)return;const e=Pt.filter((e=>S(e))),t=f?e.slice(0,1):e;vt({type:"SELECT_MULTIPLE_ROWS",keyField:s,selectedRows:t,totalRows:Pt.length,mergeSelections:Ct})}),[t,S]);const Bt=w?Ot:Pt,jt=wt||f||v;return o.createElement(l.ThemeProvider,{theme:kt},!ae&&(!!a||!!i)&&o.createElement(ye,{title:a,actions:i,showMenu:!me,selectedCount:yt,direction:et,contextActions:he,contextComponent:fe,contextMessage:ge}),ce&&o.createElement(ve,{align:ue,wrapContent:pe},de),o.createElement(we,Object.assign({$responsive:K,$fixedHeader:le,$fixedHeaderScrollHeight:re,className:nt},Rt),o.createElement(Se,null,q&&!Q&&o.createElement(Ce,null,Z),o.createElement(C,{disabled:te,className:"rdt_Table",role:"table"},!ne&&(!!Q||Pt.length>0&&!q)&&o.createElement(x,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:le},o.createElement(k,{className:"rdt_TableHeadRow",role:"row",$dense:m},y&&(jt?o.createElement(T,{style:{flex:"0 0 48px"}}):o.createElement(oe,{allSelected:ht,selectedRows:gt,selectableRowsComponent:P,selectableRowsComponentProps:O,selectableRowDisabled:R,rowData:Bt,keyField:s,mergeSelections:Ct,onSelectAllRows:Dt})),be&&!Le&&o.createElement(xe,null),at.map((e=>o.createElement(ie,{key:e.id,column:e,selectedColumn:ft,disabled:q||0===Pt.length,pagination:se,paginationServer:F,persistSelectedOnSort:_t,selectableRowsVisibleOnly:w,sortDirection:bt,sortIcon:Te,sortServer:Ie,onSort:Tt,onDragStart:it,onDragOver:ot,onDragEnd:ct,onDragEnter:rt,onDragLeave:st,draggingColumnId:lt}))))),!Pt.length&&!q&&o.createElement(ke,null,ee),q&&Q&&o.createElement(Ce,null,Z),!q&&Pt.length>0&&o.createElement(_e,{className:"rdt_TableBody",role:"rowgroup"},Ot.map(((e,t)=>{const n=u(e,s),a=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(n)?t:n,l=b(e,gt,s),i=!!(be&&We&&We(e)),r=!!(be&&He&&He(e));return o.createElement(X,{id:a,key:a,keyField:s,"data-row-id":a,columns:at,row:e,rowCount:Pt.length,rowIndex:t,selectableRows:y,expandableRows:be,expandableIcon:N,highlightOnHover:p,pointerOnHover:d,dense:m,expandOnRowClicked:Me,expandOnRowDoubleClicked:ze,expandableRowsComponent:$e,expandableRowsComponentProps:Fe,expandableRowsHideExpander:Le,defaultExpanderDisabled:r,defaultExpanded:i,expandableInheritConditionalStyles:Ue,conditionalRowStyles:Ke,selected:l,selectableRowsHighlight:E,selectableRowsComponent:P,selectableRowsComponentProps:O,selectableRowDisabled:R,selectableRowsSingle:f,striped:c,onRowExpandToggled:D,onRowClicked:Nt,onRowDoubleClicked:It,onRowMouseEnter:$t,onRowMouseLeave:Ft,onSelectedRow:At,draggingColumnId:lt,onDragStart:it,onDragOver:ot,onDragEnd:ct,onDragEnter:rt,onDragLeave:st})})))))),St&&o.createElement("div",null,o.createElement(xt,{onChangePage:Ht,onChangeRowsPerPage:Lt,rowCount:L||Pt.length,currentPage:mt,rowsPerPage:dt,direction:et,paginationRowsPerPageOptions:z,paginationIconLastPage:W,paginationIconFirstPage:U,paginationIconNext:G,paginationIconPrevious:Y,paginationComponentOptions:J})))}));t.Ay=Xe},833:e=>{e.exports=function(e,t,n,a){var l=n?n.call(a,e,t):void 0;if(void 0!==l)return!!l;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!o(c))return!1;var u=e[c],p=t[c];if(!1===(l=n?n.call(a,u,p,c):void 0)||void 0===l&&u!==p)return!1}return!0}},577:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>an,StyleSheetConsumer:()=>Pt,StyleSheetContext:()=>Rt,StyleSheetManager:()=>Dt,ThemeConsumer:()=>zt,ThemeContext:()=>Mt,ThemeProvider:()=>Ut,__PRIVATE__:()=>ln,createGlobalStyle:()=>en,css:()=>Kt,default:()=>Xt,isStyledComponent:()=>qe,keyframes:()=>tn,styled:()=>Xt,useTheme:()=>Wt,version:()=>pe,withTheme:()=>nn});var a=function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},a.apply(this,arguments)};function l(e,t,n){if(n||2===arguments.length)for(var a,l=0,i=t.length;l<i;l++)!a&&l in t||(a||(a=Array.prototype.slice.call(t,0,l)),a[l]=t[l]);return e.concat(a||Array.prototype.slice.call(t))}Object.create,Object.create;var i=n(609),r=n.n(i),o=n(833),s=n.n(o),c="-ms-",u="-moz-",p="-webkit-",d="comm",m="rule",g="decl",h="@import",y="@keyframes",f="@layer",b=Math.abs,E=String.fromCharCode,v=Object.assign;function _(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function S(e,t,n){return e.indexOf(t,n)}function x(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function R(e){return e.length}function P(e){return e.length}function O(e,t){return t.push(e),e}function T(e,t){return e.filter((function(e){return!w(e,t)}))}var D=1,A=1,N=0,I=0,$=0,F="";function H(e,t,n,a,l,i,r,o){return{value:e,root:t,parent:n,type:a,props:l,children:i,line:D,column:A,length:r,return:"",siblings:o}}function L(e,t){return v(H("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function B(e){for(;e.root;)e=L(e.root,{children:[e]});O(e,e.siblings)}function j(){return $=I>0?x(F,--I):0,A--,10===$&&(A=1,D--),$}function M(){return $=I<N?x(F,I++):0,A++,10===$&&(A=1,D++),$}function z(){return x(F,I)}function W(){return I}function U(e,t){return k(F,e,t)}function G(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return _(U(I-1,K(91===e?e+2:40===e?e+1:e)))}function V(e){for(;($=z())&&$<33;)M();return G(e)>2||G($)>3?"":" "}function J(e,t){for(;--t&&M()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return U(e,W()+(t<6&&32==z()&&32==M()))}function K(e){for(;M();)switch($){case e:return I;case 34:case 39:34!==e&&39!==e&&K($);break;case 40:41===e&&K(e);break;case 92:M()}return I}function q(e,t){for(;M()&&e+$!==57&&(e+$!==84||47!==z()););return"/*"+U(t,I-1)+"*"+E(47===e?e:M())}function Z(e){for(;!G(z());)M();return U(e,I)}function X(e,t){for(var n="",a=0;a<e.length;a++)n+=t(e[a],a,e,t)||"";return n}function Q(e,t,n,a){switch(e.type){case f:if(e.children.length)break;case h:case g:return e.return=e.return||e.value;case d:return"";case y:return e.return=e.value+"{"+X(e.children,a)+"}";case m:if(!R(e.value=e.props.join(",")))return""}return R(n=X(e.children,a))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^x(e,0)?(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0}(e,t)){case 5103:return p+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return p+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return p+e+u+e+c+e+e;case 5936:switch(x(e,t+11)){case 114:return p+e+c+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return p+e+c+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return p+e+c+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return p+e+c+e+e;case 6165:return p+e+c+"flex-"+e+e;case 5187:return p+e+C(e,/(\w+).+(:[^]+)/,p+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return p+e+c+"flex-item-"+C(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return p+e+c+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return p+e+c+C(e,"shrink","negative")+e;case 5292:return p+e+c+C(e,"basis","preferred-size")+e;case 6060:return p+"box-"+C(e,"-grow","")+p+e+c+C(e,"grow","positive")+e;case 4554:return p+C(e,/([^-])(transform)/g,"$1"+p+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,p+"$1"),/(image-set)/,p+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,p+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,p+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+p+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+k(e,t)+e;break;case 2592:case 3360:return c+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~S(e+(n=n[t].value),"span",0)?e:c+C(e,"-start","")+e+c+"grid-row-span:"+(~S(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":c+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,p+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(R(e)-1-t>6)switch(x(e,t+1)){case 109:if(45!==x(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+p+"$2-$3$1"+u+(108==x(e,t+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch",0)?ee(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,a,l,i,r,o){return c+n+":"+a+o+(l?c+n+"-span:"+(i?r:+r-+a)+o:"")+e}));case 4949:if(121===x(e,t+6))return C(e,":",":"+p)+e;break;case 6444:switch(x(e,45===x(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+p+(45===x(e,14)?"inline-":"")+"box$3$1"+p+"$2$3$1"+c+"$2box$3")+e;case 100:return C(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,a){if(e.length>-1&&!e.return)switch(e.type){case g:return void(e.return=ee(e.value,e.length,n));case y:return X([L(e,{value:C(e.value,"@","@"+p)})],a);case m:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(L(e,{props:[C(t,/:(read-\w+)/,":"+u+"$1")]})),B(L(e,{props:[t]})),v(e,{props:T(n,a)});break;case"::placeholder":B(L(e,{props:[C(t,/:(plac\w+)/,":"+p+"input-$1")]})),B(L(e,{props:[C(t,/:(plac\w+)/,":"+u+"$1")]})),B(L(e,{props:[C(t,/:(plac\w+)/,c+"input-$1")]})),B(L(e,{props:[t]})),v(e,{props:T(n,a)})}return""}))}}function ne(e){return function(e){return F="",e}(ae("",null,null,null,[""],e=function(e){return D=A=1,N=R(F=e),I=0,[]}(e),0,[0],e))}function ae(e,t,n,a,l,i,r,o,s){for(var c=0,u=0,p=r,d=0,m=0,g=0,h=1,y=1,f=1,v=0,_="",w=l,k=i,P=a,T=_;y;)switch(g=v,v=M()){case 40:if(108!=g&&58==x(T,p-1)){-1!=S(T+=C(Y(v),"&","&\f"),"&\f",b(c?o[c-1]:0))&&(f=-1);break}case 34:case 39:case 91:T+=Y(v);break;case 9:case 10:case 13:case 32:T+=V(g);break;case 92:T+=J(W()-1,7);continue;case 47:switch(z()){case 42:case 47:O(ie(q(M(),W()),t,n,s),s);break;default:T+="/"}break;case 123*h:o[c++]=R(T)*f;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:-1==f&&(T=C(T,/\f/g,"")),m>0&&R(T)-p&&O(m>32?re(T+";",a,n,p-1,s):re(C(T," ","")+";",a,n,p-2,s),s);break;case 59:T+=";";default:if(O(P=le(T,t,n,c,u,l,o,_,w=[],k=[],p,i),i),123===v)if(0===u)ae(T,t,P,P,w,i,p,o,k);else switch(99===d&&110===x(T,3)?100:d){case 100:case 108:case 109:case 115:ae(e,P,P,a&&O(le(e,P,P,0,0,l,o,_,l,w=[],p,k),k),l,k,p,o,a?w:k);break;default:ae(T,P,P,P,[""],k,0,o,k)}}c=u=m=0,h=f=1,_=T="",p=r;break;case 58:p=1+R(T),m=g;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==j())continue;switch(T+=E(v),v*h){case 38:f=u>0?1:(T+="\f",-1);break;case 44:o[c++]=(R(T)-1)*f,f=1;break;case 64:45===z()&&(T+=Y(M())),d=z(),u=p=R(_=T+=Z(W())),v++;break;case 45:45===g&&2==R(T)&&(h=0)}}return i}function le(e,t,n,a,l,i,r,o,s,c,u,p){for(var d=l-1,g=0===l?i:[""],h=P(g),y=0,f=0,E=0;y<a;++y)for(var v=0,w=k(e,d+1,d=b(f=r[y])),S=e;v<h;++v)(S=_(f>0?g[v]+" "+w:C(w,/&\f/g,g[v])))&&(s[E++]=S);return H(e,t,n,0===l?m:o,s,c,u,p)}function ie(e,t,n,a){return H(e,t,n,d,E($),k(e,2,-2),0,a)}function re(e,t,n,a,l){return H(e,t,n,g,k(e,0,a),k(e,a+1,-1),a,l)}const oe={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};var se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",pe="6.1.8",de="/*!sc*/\n",me="undefined"!=typeof window&&"HTMLElement"in window,ge=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),he={},ye=(new Set,Object.freeze([])),fe=Object.freeze({});function be(e,t,n){return void 0===n&&(n=fe),e.theme!==n.theme&&e.theme||t||n.theme}var Ee=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ve=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_e=/(^-|-$)/g;function we(e){return e.replace(ve,"-").replace(_e,"")}var Ce=/(a)(d)/gi,Se=52,xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function ke(e){var t,n="";for(t=Math.abs(e);t>Se;t=t/Se|0)n=xe(t%Se)+n;return(xe(t%Se)+n).replace(Ce,"$1-$2")}var Re,Pe=5381,Oe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Te=function(e){return Oe(Pe,e)};function De(e){return ke(Te(e)>>>0)}function Ae(e){return e.displayName||e.name||"Component"}function Ne(e){return"string"==typeof e&&!0}var Ie="function"==typeof Symbol&&Symbol.for,$e=Ie?Symbol.for("react.memo"):60115,Fe=Ie?Symbol.for("react.forward_ref"):60112,He={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},je=((Re={})[Fe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re[$e]=Be,Re);function Me(e){return("type"in(t=e)&&t.type.$$typeof)===$e?Be:"$$typeof"in e?je[e.$$typeof]:He;var t}var ze=Object.defineProperty,We=Object.getOwnPropertyNames,Ue=Object.getOwnPropertySymbols,Ge=Object.getOwnPropertyDescriptor,Ye=Object.getPrototypeOf,Ve=Object.prototype;function Je(e,t,n){if("string"!=typeof t){if(Ve){var a=Ye(t);a&&a!==Ve&&Je(e,a,n)}var l=We(t);Ue&&(l=l.concat(Ue(t)));for(var i=Me(e),r=Me(t),o=0;o<l.length;++o){var s=l[o];if(!(s in Le||n&&n[s]||r&&s in r||i&&s in i)){var c=Ge(t,s);try{ze(e,s,c)}catch(e){}}}}return e}function Ke(e){return"function"==typeof e}function qe(e){return"object"==typeof e&&"styledComponentId"in e}function Ze(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Xe(e,t){if(0===e.length)return"";for(var n=e[0],a=1;a<e.length;a++)n+=t?t+e[a]:e[a];return n}function Qe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var a=0;a<t.length;a++)e[a]=et(e[a],t[a]);else if(Qe(t))for(var a in t)e[a]=et(e[a],t[a]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var at=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,l=a;e>=l;)if((l<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(l),this.groupSizes.set(n),this.length=l;for(var i=a;i<l;i++)this.groupSizes[i]=0}for(var r=this.indexOfGroup(e+1),o=(i=0,t.length);i<o;i++)this.tag.insertRule(r,t[i])&&(this.groupSizes[e]++,r++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),a=n+t;this.groupSizes[e]=0;for(var l=n;l<a;l++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],a=this.indexOfGroup(e),l=a+n,i=a;i<l;i++)t+="".concat(this.tag.getRule(i)).concat(de);return t},e}(),lt=new Map,it=new Map,rt=1,ot=function(e){if(lt.has(e))return lt.get(e);for(;it.has(rt);)rt++;var t=rt++;return lt.set(e,t),it.set(t,e),t},st=function(e,t){rt=t+1,lt.set(e,t),it.set(t,e)},ct="style[".concat(se,"][").concat(ue,'="').concat(pe,'"]'),ut=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pt=function(e,t,n){for(var a,l=n.split(","),i=0,r=l.length;i<r;i++)(a=l[i])&&e.registerName(t,a)},dt=function(e,t){for(var n,a=(null!==(n=t.textContent)&&void 0!==n?n:"").split(de),l=[],i=0,r=a.length;i<r;i++){var o=a[i].trim();if(o){var s=o.match(ut);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(st(u,c),pt(e,u,s[3]),e.getTag().insertRules(c,l)),l.length=0}else l.push(o)}}};function mt(){return n.nc}var gt=function(e){var t=document.head,n=e||t,a=document.createElement("style"),l=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(n),i=void 0!==l?l.nextSibling:null;a.setAttribute(se,ce),a.setAttribute(ue,pe);var r=mt();return r&&a.setAttribute("nonce",r),n.insertBefore(a,i),a},ht=function(){function e(e){this.element=gt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,a=t.length;n<a;n++){var l=t[n];if(l.ownerNode===e)return l}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),yt=function(){function e(e){this.element=gt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ft=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bt=me,Et={isServer:!me,useCSSOMInjection:!ge},vt=function(){function e(e,t,n){void 0===e&&(e=fe),void 0===t&&(t={});var l=this;this.options=a(a({},Et),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&me&&bt&&(bt=!1,function(e){for(var t=document.querySelectorAll(ct),n=0,a=t.length;n<a;n++){var l=t[n];l&&l.getAttribute(se)!==ce&&(dt(e,l),l.parentNode&&l.parentNode.removeChild(l))}}(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,a="",l=function(n){var l=function(e){return it.get(e)}(n);if(void 0===l)return"continue";var i=e.names.get(l),r=t.getGroup(n);if(void 0===i||0===r.length)return"continue";var o="".concat(se,".g").concat(n,'[id="').concat(l,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),a+="".concat(r).concat(o,'{content:"').concat(s,'"}').concat(de)},i=0;i<n;i++)l(i);return a}(l)}))}return e.registerId=function(e){return ot(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(a(a({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new ft(n):t?new ht(n):new yt(n)}(this.options),new at(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ot(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ot(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ot(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_t=/&/g,wt=/^\s*\/\/.*$/gm;function Ct(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ct(e.children,t)),e}))}function St(e){var t,n,a,l=void 0===e?fe:e,i=l.options,r=void 0===i?fe:i,o=l.plugins,s=void 0===o?ye:o,c=function(e,a,l){return l.startsWith(n)&&l.endsWith(n)&&l.replaceAll(n,"").length>0?".".concat(t):e},u=s.slice();u.push((function(e){e.type===m&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(_t,n).replace(a,c))})),r.prefix&&u.push(te),u.push(Q);var p=function(e,l,i,o){void 0===l&&(l=""),void 0===i&&(i=""),void 0===o&&(o="&"),t=o,n=l,a=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(wt,""),c=ne(i||l?"".concat(i," ").concat(l," { ").concat(s," }"):s);r.namespace&&(c=Ct(c,r.namespace));var p,d,m,g=[];return X(c,(p=u.concat((m=function(e){return g.push(e)},function(e){e.root||(e=e.return)&&m(e)})),d=P(p),function(e,t,n,a){for(var l="",i=0;i<d;i++)l+=p[i](e,t,n,a)||"";return l})),g};return p.hash=s.length?s.reduce((function(e,t){return t.name||nt(15),Oe(e,t.name)}),Pe).toString():"",p}var xt=new vt,kt=St(),Rt=r().createContext({shouldForwardProp:void 0,styleSheet:xt,stylis:kt}),Pt=Rt.Consumer,Ot=r().createContext(void 0);function Tt(){return(0,i.useContext)(Rt)}function Dt(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],a=t[1],l=Tt().styleSheet,o=(0,i.useMemo)((function(){var t=l;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,l]),c=(0,i.useMemo)((function(){return St({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,i.useEffect)((function(){s()(n,e.stylisPlugins)||a(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,i.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:o,stylis:c}}),[e.shouldForwardProp,o,c]);return r().createElement(Rt.Provider,{value:u},r().createElement(Ot.Provider,{value:c},e.children))}var At=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=kt);var a=n.name+t.hash;e.hasNameForId(n.id,a)||e.insertRules(n.id,a,t(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=kt),this.name+e.hash},e}(),Nt=function(e){return e>="A"&&e<="Z"};function It(e){for(var t="",n=0;n<e.length;n++){var a=e[n];if(1===n&&"-"===a&&"-"===e[0])return e;Nt(a)?t+="-"+a.toLowerCase():t+=a}return t.startsWith("ms-")?"-"+t:t}var $t=function(e){return null==e||!1===e||""===e},Ft=function(e){var t,n,a=[];for(var i in e){var r=e[i];e.hasOwnProperty(i)&&!$t(r)&&(Array.isArray(r)&&r.isCss||Ke(r)?a.push("".concat(It(i),":"),r,";"):Qe(r)?a.push.apply(a,l(l(["".concat(i," {")],Ft(r),!1),["}"],!1)):a.push("".concat(It(i),": ").concat((t=i,null==(n=r)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in oe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return a};function Ht(e,t,n,a){return $t(e)?[]:qe(e)?[".".concat(e.styledComponentId)]:Ke(e)?!Ke(l=e)||l.prototype&&l.prototype.isReactComponent||!t?[e]:Ht(e(t),t,n,a):e instanceof At?n?(e.inject(n,a),[e.getName(a)]):[e]:Qe(e)?Ft(e):Array.isArray(e)?Array.prototype.concat.apply(ye,e.map((function(e){return Ht(e,t,n,a)}))):[e.toString()];var l}function Lt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ke(n)&&!qe(n))return!1}return!0}var Bt=Te(pe),jt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Lt(e),this.componentId=t,this.baseHash=Oe(Bt,t),this.baseStyle=n,vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))a=Ze(a,this.staticRulesId);else{var l=Xe(Ht(this.rules,e,t,n)),i=ke(Oe(this.baseHash,l)>>>0);if(!t.hasNameForId(this.componentId,i)){var r=n(l,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,r)}a=Ze(a,i),this.staticRulesId=i}else{for(var o=Oe(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)s+=u;else if(u){var p=Xe(Ht(u,e,t,n));o=Oe(o,p+c),s+=p}}if(s){var d=ke(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(s,".".concat(d),void 0,this.componentId)),a=Ze(a,d)}}return a},e}(),Mt=r().createContext(void 0),zt=Mt.Consumer;function Wt(){var e=(0,i.useContext)(Mt);if(!e)throw nt(18);return e}function Ut(e){var t=r().useContext(Mt),n=(0,i.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Ke(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?a(a({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?r().createElement(Mt.Provider,{value:n},e.children):null}var Gt={};function Yt(e,t,n){var l=qe(e),o=e,s=!Ne(e),c=t.attrs,u=void 0===c?ye:c,p=t.componentId,d=void 0===p?function(e,t){var n="string"!=typeof e?"sc":we(e);Gt[n]=(Gt[n]||0)+1;var a="".concat(n,"-").concat(De(pe+n+Gt[n]));return t?"".concat(t,"-").concat(a):a}(t.displayName,t.parentComponentId):p,m=t.displayName,g=void 0===m?function(e){return Ne(e)?"styled.".concat(e):"Styled(".concat(Ae(e),")")}(e):m,h=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||d,y=l&&o.attrs?o.attrs.concat(u).filter(Boolean):u,f=t.shouldForwardProp;if(l&&o.shouldForwardProp){var b=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;f=function(e,t){return b(e,t)&&E(e,t)}}else f=b}var v=new jt(n,h,l?o.componentStyle:void 0);function _(e,t){return function(e,t,n){var l=e.attrs,o=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,p=e.target,d=r().useContext(Mt),m=Tt(),g=e.shouldForwardProp||m.shouldForwardProp,h=be(t,d,s)||fe,y=function(e,t,n){for(var l,i=a(a({},t),{className:void 0,theme:n}),r=0;r<e.length;r+=1){var o=Ke(l=e[r])?l(i):l;for(var s in o)i[s]="className"===s?Ze(i[s],o[s]):"style"===s?a(a({},i[s]),o[s]):o[s]}return t.className&&(i.className=Ze(i.className,t.className)),i}(l,t,h),f=y.as||p,b={};for(var E in y)void 0===y[E]||"$"===E[0]||"as"===E||"theme"===E&&y.theme===h||("forwardedAs"===E?b.as=y.forwardedAs:g&&!g(E,f)||(b[E]=y[E]));var v=function(e,t){var n=Tt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,y),_=Ze(c,u);return v&&(_+=" "+v),y.className&&(_+=" "+y.className),b[Ne(f)&&!Ee.has(f)?"class":"className"]=_,b.ref=n,(0,i.createElement)(f,b)}(w,e,t)}_.displayName=g;var w=r().forwardRef(_);return w.attrs=y,w.componentStyle=v,w.displayName=g,w.shouldForwardProp=f,w.foldedComponentIds=l?Ze(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=l?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=l?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var a=0,l=t;a<l.length;a++)et(e,l[a],!0);return e}({},o.defaultProps,e):e}}),tt(w,(function(){return".".concat(w.styledComponentId)})),s&&Je(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Vt(e,t){for(var n=[e[0]],a=0,l=t.length;a<l;a+=1)n.push(t[a],e[a+1]);return n}new Set;var Jt=function(e){return Object.assign(e,{isCss:!0})};function Kt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ke(e)||Qe(e))return Jt(Ht(Vt(ye,l([e],t,!0))));var a=e;return 0===t.length&&1===a.length&&"string"==typeof a[0]?Ht(a):Jt(Ht(Vt(a,t)))}function qt(e,t,n){if(void 0===n&&(n=fe),!t)throw nt(1,t);var i=function(a){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return e(t,n,Kt.apply(void 0,l([a],i,!1)))};return i.attrs=function(l){return qt(e,t,a(a({},n),{attrs:Array.prototype.concat(n.attrs,l).filter(Boolean)}))},i.withConfig=function(l){return qt(e,t,a(a({},n),l))},i}var Zt=function(e){return qt(Yt,e)},Xt=Zt;Ee.forEach((function(e){Xt[e]=Zt(e)}));var Qt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Lt(e),vt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,a){var l=a(Xe(Ht(this.rules,t,n,a)),""),i=this.componentId+e;n.insertRules(i,i,l)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,a){e>2&&vt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,a)},e}();function en(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Kt.apply(void 0,l([e],t,!1)),o="sc-global-".concat(De(JSON.stringify(i))),s=new Qt(i,o),c=function(e){var t=Tt(),n=r().useContext(Mt),a=r().useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&u(a,e,t.styleSheet,n,t.stylis),r().useLayoutEffect((function(){if(!t.styleSheet.server)return u(a,e,t.styleSheet,n,t.stylis),function(){return s.removeStyles(a,t.styleSheet)}}),[a,e,t.styleSheet,n,t.stylis]),null};function u(e,t,n,l,i){if(s.isStatic)s.renderStyles(e,he,n,i);else{var r=a(a({},t),{theme:be(t,l,c.defaultProps)});s.renderStyles(e,r,n,i)}}return r().memo(c)}function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=Xe(Kt.apply(void 0,l([e],t,!1))),i=De(a);return new At(i,a)}function nn(e){var t=r().forwardRef((function(t,n){var l=be(t,r().useContext(Mt),e.defaultProps);return r().createElement(e,a({},t,{theme:l,ref:n}))}));return t.displayName="WithTheme(".concat(Ae(e),")"),Je(t,e)}var an=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=mt(),a=Xe([n&&'nonce="'.concat(n,'"'),"".concat(se,'="true"'),"".concat(ue,'="').concat(pe,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=((t={})[se]="",t[ue]=pe,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),l=mt();return l&&(n.nonce=l),[r().createElement("style",a({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vt({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return r().createElement(Dt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),ln={StyleSheet:vt,mainSheet:xt};"__sc-".concat(se,"__")},609:e=>{"use strict";e.exports=window.React}},t={};function n(a){var l=t[a];if(void 0!==l)return l.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{"use strict";var e=n(609),t=n.n(e);const a=window.wp.element,l=window.wp.apiFetch;var i=n.n(l);function r(t,n){const a=(0,e.useRef)();(0,e.useEffect)((()=>{a.current=t}),[t]),(0,e.useEffect)((()=>{if(null!==n){let e=setInterval((function(){a.current()}),n);return()=>clearInterval(e)}}),[n])}const{__}=wp.i18n,o=(0,a.createContext)(),s=function(t){const n={destination_scheme:"https://",destination_host:"",temp_files_dir:options.temp_files_dir,additional_urls:"",additional_files:"",urls_to_exclude:"wp-json\nwp-login.php",delivery_method:"zip",local_dir:"",relative_path:"",destination_url_type:"relative",debugging_mode:!0,server_cron:!1,whitelist_plugins:"",http_basic_auth_username:"",http_basic_auth_password:"",http_basic_auth_on:!1,origin_url:"",version:options.version,force_replace_url:!0,clear_directory_before_export:!1,ssh_security_token:"",ssh_use_forms:!0,iframe_urls:"",ssh_404_page_id:"",ssh_thank_you_page_id:"",tiiny_email:options.admin_email,tiiny_subdomain:"",tiiny_domain_suffix:"tiiny.site",tiiny_password:"",cdn_api_key:"",cdn_storage_host:"storage.bunnycdn.com",cdn_access_key:"",cdn_pull_zone:"",cdn_storage_zone:"",cdn_directory:"",github_account_type:"personal",github_user:"",github_email:"",github_personal_access_token:"",github_repository:"",github_repository_visibility:"public",github_branch:"main",github_webhook_url:"",github_folder_path:"",github_throttle_requests:!1,aws_region:"us-east-2",aws_access_key:"",aws_access_secret:"",aws_bucket:"",aws_subdirectory:"",aws_distribution_id:"",aws_empty:!1,fix_cors:"allowed_http_origins",static_url:"",use_forms:!1,use_comments:!1,comment_redirect:"",use_search:!1,search_type:"fuse",search_index_title:"title",search_index_content:"body",search_index_excerpt:".entry-content",search_excludable:"",search_metadata:"",fuse_selector:".search-field",algolia_app_id:"",algolia_admin_api_key:"",algolia_search_api_key:"",algolia_index:"simply_static",algolia_selector:".search-field",use_minify:!1,minify_html:!1,minify_css:!1,minify_inline_css:!1,minify_js:!1,minify_inline_js:!1,generate_404:!0,wp_content_folder:"",wp_includes_folder:"",wp_uploads_folder:"",wp_plugins_folder:"",wp_themes_folder:"",theme_style_name:"style",rename_plugin_folders:!1,author_url:"",hide_rest_api:!1,hide_style_id:!1,hide_comments:!1,hide_version:!1,hide_generator:!1,hide_prefetch:!1,hide_rsd:!1,hide_emotes:!1,disable_xmlrpc:!1,disable_embed:!1,disable_db_debug:!1,disable_wlw_manifest:!1,incremental_export:!1,sftp_host:"",sftp_user:"",sftp_pass:"",sftp_folder:"",sftp_port:22,shortpixel_enabled:!1,shortpixel_api_key:"",shortpixel_backup_enabled:!1,integrations:!1},[l,s]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[p,d]=(0,a.useState)(n),[m,g]=(0,a.useState)({}),[h,y]=(0,a.useState)("yes"),[f,b]=(0,a.useState)(1),E=()=>{i()({path:"/simplystatic/v1/is-running",method:"GET"}).then((e=>{var t=JSON.parse(e);s(t.running)}))};return r((()=>{E()}),l?5e3:null),(0,a.useEffect)((()=>{i()({path:"/simplystatic/v1/settings"}).then((e=>{d(e)})),i()({path:"/simplystatic/v1/system-status"}).then((e=>{g(e),i()({path:"/simplystatic/v1/system-status/passed"}).then((e=>{let t=JSON.parse(e);y(t.passed)}))})),E(),b(options.blog_id)}),[]),(0,e.createElement)(o.Provider,{value:{settings:p,configs:m,passedChecks:h,settingsSaved:c,setSettingsSaved:u,updateSetting:(e,t)=>{d({...p,[e]:t})},setSettings:d,saveSettings:()=>{i()({path:"/simplystatic/v1/settings",method:"POST",data:p})},resetSettings:()=>{d(n),i()({path:"/simplystatic/v1/settings/reset",method:"POST",data:n})},updateFromNetwork:e=>{i()({path:"/simplystatic/v1/update-from-network",method:"POST",data:{blog_id:e}})},importSettings:e=>{d(e),i()({path:"/simplystatic/v1/settings",method:"POST",data:e})},migrateSettings:()=>{i()({path:"/simplystatic/v1/migrate",method:"POST",migrate:!0})},resetDiagnostics:()=>{i()({path:"/simplystatic/v1/reset-diagnostics",method:"POST"})},isRunning:l,setIsRunning:s,blogId:f,setBlogId:b}},t.children)},c=window.wp.components,{__:u}=wp.i18n,p=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:i,setSettingsSaved:r}=(0,a.useContext)(o),[s,p]=(0,a.useState)("relative"),[d,m]=(0,a.useState)("https://"),[g,h]=(0,a.useState)(""),[y,f]=(0,a.useState)("/"),[b,E]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{t.destination_url_type&&p(t.destination_url_type),t.destination_scheme&&m(t.destination_scheme),t.destination_host&&h(t.destination_host),t.relative_path&&f(t.relative_path),t.force_replace_url&&E(t.force_replace_url),t.generate_404&&C(t.generate_404)}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,u("Replacing URLs","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,u("When exporting your static site, any links to your WordPress site will be replaced by one of the following: absolute URLs, relative URLs, or URLs contructed for offline use.","simply-static")),(0,e.createElement)(c.SelectControl,{label:u("Replacing URLs","simply-static"),value:s,options:[{label:u("Absolute URLs","simply-static"),value:"absolute"},{label:u("Relative Path","simply-static"),value:"relative"},{label:u("Offline Usage","simply-static"),value:"offline"}],onChange:e=>{p(e),n("destination_url_type",e)}}),"absolute"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Flex,null,(0,e.createElement)(c.FlexItem,{style:{minWidth:"15%"}},(0,e.createElement)(c.SelectControl,{label:u("Scheme","simply-static"),value:d,options:[{label:"https://",value:"https://"},{label:"http://",value:"http://"},{label:"//",value:"//"}],onChange:e=>{m(e),n("destination_scheme",e)}})),(0,e.createElement)(c.FlexItem,{style:{minWidth:"85%"}},(0,e.createElement)(c.TextControl,{label:u("Host","simply-static"),type:"text",placeholder:"example.com",value:g,onChange:e=>{h(e),n("destination_host",e)}}))),(0,e.createElement)("p",null,u("Convert all URLs for your WordPress site to absolute URLs at the domain specified above.","simply-static"))),"relative"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.TextControl,{label:u("Path","simply-static"),type:"text",placeholder:"/",value:y,onChange:e=>{f(e),n("relative_path",e)}}),(0,e.createElement)("p",null,u("Convert all URLs for your WordPress site to relative URLs that will work at any domain.","simply-static"),(0,e.createElement)("br",null),u("Optionally specify a path above if you intend to place the files in a subdirectory.","simply-static")),(0,e.createElement)("p",null,(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,e.createElement)("b",null,u("Example","simply-static"),": "),u("enter /path above if you wanted to serve your files at www.example.com/path/","simply-static")))),"offline"===s&&(0,e.createElement)("p",null,u("Convert all URLs for your WordPress site so that you can browse the site locally on your own computer without hosting it on a web server.","simply-static")),(0,e.createElement)(c.ToggleControl,{label:u("Force URL replacements","simply-static"),help:u(b?"Replace all occurrences of the WordPress URL with the static URL (includes inline CSS and JS).":"Replace only occurrences of the WordPress URL that match our tag list.","simply-static"),checked:b,onChange:e=>{E(e),n("force_replace_url",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,u("Include","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextareaControl,{label:u("Additional URLs","simply-static"),placeholder:options.home+"/hidden-page/",help:u("If you want to create static copies of pages or files that aren't linked to, add the URLs here (one per line).","simply-static"),value:t.additional_urls,onChange:e=>{n("additional_urls",e)}}),(0,e.createElement)(c.TextareaControl,{label:u("Additional Files and Directories","simply-static"),placeholder:options.home_path+"additional-directory/\n"+options.home_path+"additional-file.html",help:u("Sometimes you may want to include additional files (such as files referenced via AJAX) or directories. Add the paths to those files or directories here (one per line).","simply-static"),value:t.additional_files,onChange:e=>{n("additional_files",e)}}),(0,e.createElement)(c.ClipboardButton,{variant:"secondary",text:options.home_path,onCopy:()=>_(!0),onFinishCopy:()=>_(!1)},u(v?"Copied home path":"Copy home path","simply-static")),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.ToggleControl,{label:u("Generate 404 Page?","simply-static"),help:u(w?"Generate a 404 page.":"Don't generate a 404 page.","simply-static"),checked:w,onChange:e=>{C(e),n("generate_404",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,u("Exclude","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextareaControl,{label:u("Urls to exclude","simply-static"),placeholder:"wp-json.php\nwp-login.php\n.jpg",help:u("Specify URLs (or parts of URLs) you want to exclude from the processing (one per line).","simply-static"),value:t.urls_to_exclude,onChange:e=>{n("urls_to_exclude",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,u("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),r(!0),setTimeout((function(){r(!1)}),2e3)},variant:"primary"},u("Save Settings","simply-static"))))},{__:d}=wp.i18n,m=function(){const{configs:t,resetDiagnostics:n}=(0,a.useContext)(o),[l,i]=(0,a.useState)(!1);return(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)("div",null,Object.keys(t).map((n=>{const a=t[n];return(0,e.createElement)("div",{key:n},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,n)),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("div",null,(0,e.createElement)("table",{style:{width:"100%",tableLayout:"fixed"}},(0,e.createElement)("tbody",{className:"table-data"},Object.entries(a).map((t=>(0,e.createElement)("tr",{className:"table-row",key:t[0]},(0,e.createElement)("td",{className:"diagnostics-icon"}," ",t[1].test?(0,e.createElement)(c.Dashicon,{className:"icon-yes",icon:"yes"}):(0,e.createElement)(c.Dashicon,{className:"icon-no",icon:"no"})),(0,e.createElement)("td",{className:"diagnostics-test"},(0,e.createElement)("b",null,t[0])),(0,e.createElement)("td",null,t[1].test),(0,e.createElement)("td",{className:"diagnostics-result"}," ",t[1].test?(0,e.createElement)("p",null,t[1].description):(0,e.createElement)("p",null,t[1].error)))))))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}))})),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,d("Reset Diagnostics","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,d("Use it to reset diagnostics if you have made recent changes not reflected in the results.","simply-static")),(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{onClick:()=>{n(),i(!0),setTimeout((function(){window.location.reload()}),2e3)},variant:"secondary"},d("Reset Diagnostics","simply-static"))),l?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,d("Diagnostics resetted successfully.","simply-static"))))):""))))},{__:g}=wp.i18n,h=function(){const{settings:t,importSettings:n,saveSettings:l,resetSettings:i,migrateSettings:r}=(0,a.useContext)(o),[s,u]=(0,a.useState)(!1),[p,d]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[y,f]=(0,a.useState)(!1),[b,E]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1);return(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,g("Migrate Settings","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,g("Migrate all of your settings to Simply Static 3.0","simply-static")),(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{onClick:()=>{r(),l(),f(!0),setTimeout((function(){f(!1),location.reload()}),2e3)},variant:"primary"},g("Migrate settings","simply-static"))),y?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,g("Settings migration successfully.","simply-static"))))):"")),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,g("Export","simply-static"))),(0,e.createElement)(c.CardBody,null,s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,e.createElement)("code",null,JSON.stringify(t))),(0,e.createElement)("p",null,(0,e.createElement)(c.ClipboardButton,{variant:"secondary",text:JSON.stringify(t),onCopy:()=>E(!0),onFinishCopy:()=>E(!1)},g(b?"Copied!":"Copy export data","simply-static")))):(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{onClick:u,variant:"primary"},g("Export Settings","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,g("Import","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,g("Paste in the JSON string you got from your export to import all settings for the plugin.","simply-static")),(0,e.createElement)("p",null,(0,e.createElement)("textarea",{rows:"8",cols:"60",name:"import-data",onChange:e=>{_(JSON.parse(e.target.value))}})),(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{onClick:()=>{n(v),d(!0),setTimeout((function(){d(!1)}),2e3)},variant:"primary"},g("Import Settings","simply-static"))),p?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,g("Settings imported successfully.","simply-static"))))):"")),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,g("Reset Plugin Data","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,g("By clicking the following button, you will reset all plugin settings. This can be useful if you want to import a new set of settings or you want a fresh start.","simply-static")),(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{onClick:()=>{i(),h(!0),setTimeout((function(){h(!1)}),2e3)},variant:"secondary"},g("Reset Plugin Settings","simply-static"))),m?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,g("Settings resetted successfully.","simply-static"))))):"")))},{__:y}=wp.i18n,f=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:r,setSettingsSaved:s}=(0,a.useContext)(o),[u,p]=(0,a.useState)("zip"),[d,m]=(0,a.useState)(!1),[g,h]=(0,a.useState)("personal"),[f,b]=(0,a.useState)("private"),[E,v]=(0,a.useState)(!1),[_,w]=(0,a.useState)(!1),[C,S]=(0,a.useState)(!0),[x,k]=(0,a.useState)("us-east-2"),[R,P]=(0,a.useState)(!1),[O,T]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{t.delivery_method&&p(t.delivery_method),t.clear_directory_before_export&&m(t.clear_directory_before_export),t.ssh_use_forms&&S(t.ssh_use_forms),t.github_account_type&&h(t.github_account_type),t.github_repository_visibility&&b(t.github_repository_visibility),t.github_repository_visibility&&b(t.github_repository_visibility),t.github_throttle_requests&&w(t.github_throttle_requests),t.aws_empty&&v(t.aws_empty),t.aws_region&&k(t.aws_region),i()({path:"/simplystatic/v1/pages"}).then((e=>{let t=e;t.unshift({label:y("No page selected","simply-static"),value:0}),T(t)}))}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Deployment Settings","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,y("Choose from a variety of deployment methods. Depending on your selection we either provide a ZIP file, export to a local directory or send your files to a remote destination.","simply-static")),"pro"===options.plan?(0,e.createElement)(c.SelectControl,{label:y("Deployment method","simply-static"),value:u,options:[{label:y("ZIP Archive","simply-static"),value:"zip"},{label:y("Local Directory","simply-static"),value:"local"},{label:y("SFTP","simply-static"),value:"sftp"},{label:y("GitHub","simply-static"),value:"github"},{label:y("AWS S3","simply-static"),value:"aws-s3"},{label:y("Bunny CDN","simply-static"),value:"cdn"},{label:y("Tiiny.host","simply-static"),value:"tiiny"},{label:y("Simply CDN (deprecated)","simply-static"),value:"simply-cdn"}],onChange:e=>{p(e),n("delivery_method",e)}}):(0,e.createElement)(c.SelectControl,{label:y("Deployment method","simply-static"),value:u,options:[{label:y("ZIP Archive","simply-static"),value:"zip"},{label:y("Local Directory","simply-static"),value:"local"},{label:y("Simply CDN","simply-static"),value:"simply-cdn"}],onChange:e=>{p(e),n("delivery_method",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),"local"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Local Directory","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:y("Path","simply-static"),type:"text",help:y("This is the directory where your static files will be saved. The directory must exist and be writeable by the webserver","simply-static"),placeholder:options.home_path+"public_static/",value:t.local_dir,onChange:e=>{n("local_dir",e)}}),(0,e.createElement)("p",null,(0,e.createElement)(c.ClipboardButton,{variant:"secondary",text:options.home_path,onCopy:()=>P(!0),onFinishCopy:()=>P(!1)},y(R?"Copied home path":"Copy home path","simply-static"))),(0,e.createElement)("p",null,(0,e.createElement)(c.ToggleControl,{label:y("Clear Local Directory","simply-static"),help:y(d?"Clear local directory before running an export.":"Don't clear local directory before running an export.","simply-static"),checked:d,onChange:e=>{m(e),n("clear_directory_before_export",e)}})))),"simply-cdn"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Simply CDN (deprecated)","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("b",null,y("This integration will be removed in an upcoming update. We no longer recommend using it to avoid disruptions to your static site workflow.","simply-static")),(0,e.createElement)("p",null,y("The fast and easy way to bring your static website online. Simply CDN handles hosting, performance, security and form submissions for your static site.","simply-static")),(0,e.createElement)(c.TextControl,{label:y("Security Token","simply-static"),type:"text",help:y("Copy and paste the Security Token from your project.","simply-static"),value:t.ssh_security_token,onChange:e=>{n("ssh_security_token",e)}}),t.ssh_security_token&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.SelectControl,{label:y("Select a 404 page","content-protector"),options:O,help:y("We will use that page as a 404 error page on your static website.","simply-static"),value:t.ssh_404_page_id,onChange:e=>{n("ssh_404_page_id",e)}}),(0,e.createElement)(c.ToggleControl,{label:y("Use Forms?","simply-static"),help:y(C?"Proxy form submissions through Simply CDN.":"Don't proxy form submissions through Simply CDN.","simply-static"),checked:C,onChange:e=>{S(e),n("ssh_use_forms",e)}}),C&&(0,e.createElement)(c.SelectControl,{label:y('Select a "Thank You" page',"simply-static"),options:O,help:y("We will use that page to redirect your visitors after submitting a form on your static website.","simply-static"),value:t.ssh_thank_you_page_id,onChange:e=>{n("ssh_thank_you_page_id",e)}})))),"pro"===options.plan&&(0,e.createElement)(e.Fragment,null,"github"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("GitHub","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,y("GitHub enables you to export your static website to one of the common static hosting providers like Netlify, Cloudflare Pages or GitHub Pages.","simply-static")),(0,e.createElement)(c.SelectControl,{label:y("Account Type","simply-static"),value:g,help:y("Depending on the account type the settings fields will change.","simply-static"),options:[{label:y("Personal","simply-static"),value:"personal"},{label:y("Organization","simply-static"),value:"organization"}],onChange:e=>{h(e),n("github_account_type",e)}}),"organization"===g?(0,e.createElement)(c.TextControl,{label:y("Organization","simply-static"),type:"text",help:y("Enter the name of your organization.","simply-static"),value:t.github_user,onChange:e=>{n("github_user",e)}}):(0,e.createElement)(c.TextControl,{label:y("Username","simply-static"),type:"text",help:y("Enter your GitHub username.","simply-static"),value:t.github_user,onChange:e=>{n("github_user",e)}}),(0,e.createElement)(c.TextControl,{label:y("E-Mail","simply-static"),type:"email",help:y("Enter your GitHub email address. This will be used to commit files to your repository.","simply-static"),value:t.github_email,onChange:e=>{n("github_email",e)}}),(0,e.createElement)(c.TextControl,{label:y("Personal Access Token","simply-static"),type:"password",help:(0,e.createElement)(e.Fragment,null,y("You need a personal access token from GitHub. Learn how to get one ","simply-static"),(0,e.createElement)("a",{href:"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic",target:"_blank"},y("here","simply-static"))),value:t.github_personal_access_token,onChange:e=>{n("github_personal_access_token",e)}}),(0,e.createElement)(c.TextControl,{label:y("Repository","simply-static"),type:"text",help:y("Enter a name for your repository (lowercase without spaces or special characters).","simply-static"),value:t.github_repository,onChange:e=>{n("github_repository",e)}}),(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,e.createElement)("p",null,y("Ensure to create the repository and add a readme file to it before running an export as shown in the docs ","simply-static"),(0,e.createElement)("a",{href:"https://docs.simplystatic.com/article/33-set-up-the-github-integration/",target:"_blank"},y("here","simply-static")))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.TextControl,{label:y("Folder","simply-static"),type:"text",help:y("Enter a relative path to a folder if you want to push files under it. Example: for github.com/USER/REPOSITORY/folder1, enter folder1","simply-static"),value:t.github_folder_path,onChange:e=>{n("github_folder_path",e)}}),"organization"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,e.createElement)("p",null,y("You need to create the repository manually within your organization before connecting it.","simply-static"))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)(c.SelectControl,{label:y("Visiblity","simply-static"),value:f,help:y("Decide if you want to make your repository public or private.","simply-static"),options:[{label:y("Public","simply-static"),value:"public"},{label:y("Private","simply-static"),value:"private"}],onChange:e=>{b(e),n("github_repository_visibility",e)}}),(0,e.createElement)(c.TextControl,{label:y("Branch","simply-static"),type:t.github_branch,placeholder:"main",help:y('Simply Static automatically uses "main" as branch. You may want to modify that for example to gh-pages. for GitHub Pages.',"simply-static"),value:t.github_branch,onChange:e=>{n("github_branch",e)}}),(0,e.createElement)(c.TextControl,{label:y("Webhook URL","simply-static"),type:"url",help:y("Enter your Webhook URL here and Simply Static will send a POST request after all files are commited to GitHub.","simply-static"),value:t.github_webhook_url,onChange:e=>{n("github_webhook_url",e)}}),(0,e.createElement)(c.ToggleControl,{label:y("Throttle Requests","simply-static"),help:y("Enable this option if you are experiencing issues with the GitHub API rate limit.","simply-static"),checked:_,onChange:e=>{w(e),n("github_throttle_requests",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),"tiiny"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Tiiny.host","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,y("Deploying to Tiiny.host is the easiest and fastest deployment option available in Simply Static Pro.","simply-static")),(0,e.createElement)(c.TextControl,{disabled:!0,label:y("E-Mail","simply-static"),type:"text",help:(0,e.createElement)(e.Fragment,null,y("This field is auto-filled with the e-mail address used for activating Simply Static Pro.","simply-static"),(0,e.createElement)("br",null),(0,e.createElement)("b",null,y("An account will be created automatically on your first deployment.","simply-static"))),value:options.admin_email}),(0,e.createElement)(c.TextControl,{label:y("Subdomain","simply-static"),type:"text",help:y("That's the part before your TLD. Your full URL is the combination of the subdomain plus the domain suffix.","simply-static"),value:t.tiiny_subdomain,onChange:e=>{n("tiiny_subdomain",e)}}),(0,e.createElement)(c.TextControl,{label:y("Domain Suffix","simply-static"),type:"text",help:y("This defaults to tiiny.site. If you have a custom domain configured in Tiiny.host, you can also use that one.","simply-static"),value:t.tiiny_domain_suffix,onChange:e=>{n("tiiny_domain_suffix",e)}}),(0,e.createElement)(c.TextControl,{label:y("Password Protection","simply-static"),type:"password",help:y("Adding a password will activate password protection on your static site. The website is only visible with the password.","simply-static"),value:t.tiiny_password,onChange:e=>{n("tiiny_password",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),"cdn"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Bunny CDN","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,y("Bunny CDN is a fast and reliable CDN provider that you can run your static website on.","simply-static")),(0,e.createElement)(c.TextControl,{label:y("Bunny CDN API Key","simply-static"),type:"password",help:(0,e.createElement)(e.Fragment,null,y("Enter your API Key from Bunny CDN. You can find your API-Key as described ","simply-static"),(0,e.createElement)("a",{href:"https://support.bunny.net/hc/en-us/articles/360012168840-Where-do-I-find-my-API-key",target:"_blank"},y("here","simply-static"))),value:t.cdn_api_key,onChange:e=>{n("cdn_api_key",e)}}),(0,e.createElement)(c.TextControl,{label:y("Storage Host","simply-static"),type:"text",help:(0,e.createElement)(e.Fragment,null,y("Depending on your location, you have a different storage host. You find out which URL to use ","simply-static"),(0,e.createElement)("a",{href:"https://docs.bunny.net/reference/storage-api#storage-endpoints",target:"_blank"},y("here","simply-static"))),value:t.cdn_storage_host,onChange:e=>{n("cdn_storage_host",e)}}),(0,e.createElement)(c.TextControl,{label:y("Bunny CDN Access Key","simply-static"),type:"password",help:y("Enter your Acess Key from Bunny CDN. You will find it within your storage zone setttings within FTP & API Access -> Password.","simply-static"),value:t.cdn_access_key,onChange:e=>{n("cdn_access_key",e)}}),(0,e.createElement)(c.TextControl,{label:y("Pull Zone","simply-static"),type:"text",help:y("A pull zone is the connection of your CDN to the internet. Simply Static will try to find an existing pull zone with the provided name, if there is none it creates a new pull zone.","simply-static"),value:t.cdn_pull_zone,onChange:e=>{n("cdn_pull_zone",e)}}),(0,e.createElement)(c.TextControl,{label:y("Storage Zone","simply-static"),type:"text",help:y("A storage zone contains your static files. Simply Static will try to find an existing storage zone with the provided name, if there is none it creates a new storage zone.","simply-static"),value:t.cdn_storage_zone,onChange:e=>{n("cdn_storage_zone",e)}}),(0,e.createElement)(c.TextControl,{label:y("Subdirectory","simply-static"),type:"text",placeholder:"/subdirectory/",help:y("If you want to transfer the files to a specific subdirectory on your storage zone add the name of that directory here.","simply-static"),value:t.cdn_directory,onChange:e=>{n("cdn_directory",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),"aws-s3"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("Amazon AWS S3","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:y("Access Key ID","simply-static"),type:"text",help:(0,e.createElement)(e.Fragment,null,y("Enter your Access Key from AWS. Learn how to get one ","simply-static"),(0,e.createElement)("a",{href:"https://docs.aws.amazon.com/en_en/IAM/latest/UserGuide/id_credentials_access-keys.html",target:"_blank"},y("here","simply-static"))),value:t.aws_access_key,onChange:e=>{n("aws_access_key",e)}}),(0,e.createElement)(c.TextControl,{label:y("Secret Access Key","simply-static"),type:"password",help:(0,e.createElement)(e.Fragment,null,y("Enter your Secret Key from AWS. Learn how to get one ","simply-static"),(0,e.createElement)("a",{href:"https://docs.aws.amazon.com/en_en/IAM/latest/UserGuide/id_credentials_access-keys.html",target:"_blank"},y("here","simply-static"))),value:t.aws_access_secret,onChange:e=>{n("aws_access_secret",e)}}),(0,e.createElement)(c.SelectControl,{label:y("Region","simply-static"),value:x,options:[{label:y("US East (Ohio)","simply-static"),value:"us-east-2"},{label:y("US East (N. Virginia)","simply-static"),value:"us-east-1"},{label:y("US West (N. California)","simply-static"),value:"us-west-1"},{label:y("US West (Oregon)","simply-static"),value:"us-west-2"},{label:y("Africa (Cape Town)","simply-static"),value:"af-south-1"},{label:y("Asia Pacific (Hong Kong)","simply-static"),value:"ap-east-1"},{label:y("Asia Pacific (Hyderabad)","simply-static"),value:"ap-south-2"},{label:y("Asia Pacific (Jakarta)","simply-static"),value:"ap-southeast-3"},{label:y("Asia Pacific (Melbourne)","simply-static"),value:"ap-southeast-4"},{label:y("Asia Pacific (Mumbai)","simply-static"),value:"ap-south-1"},{label:y("Asia Pacific (Osaka)","simply-static"),value:"ap-northeast-3"},{label:y("Asia Pacific (Seoul)","simply-static"),value:"ap-northeast-2"},{label:y("Asia Pacific (Singapore)","simply-static"),value:"ap-southeast-1"},{label:y("Asia Pacific (Sydney)","simply-static"),value:"ap-southeast-2"},{label:y("Asia Pacific (Tokyo)","simply-static"),value:"ap-northeast-1"},{label:y("Canada (Central)","simply-static"),value:"ca-central-1"},{label:y("Europe (Frankfurt)","simply-static"),value:"eu-central-1"},{label:y("Europe (Ireland)","simply-static"),value:"eu-west-1"},{label:y("Europe (London)","simply-static"),value:"eu-west-2"},{label:y("Europe (Milan)","simply-static"),value:"eu-south-1"},{label:y("Europe (Paris)","simply-static"),value:"eu-west-3"},{label:y("Europe (Spain)","simply-static"),value:"eu-south-2"},{label:y("Europe (Stockholm)","simply-static"),value:"eu-north-1"},{label:y("Europe (Zurich)","simply-static"),value:"eu-central-2"},{label:y("Middle East (Bahrain)","simply-static"),value:"me-south-1"},{label:y("Middle East (UAE)","simply-static"),value:"me-central-1"},{label:y("South America (São Paulo)","simply-static"),value:"sa-east-1"},{label:y("AWS GovCloud (US-East)","simply-static"),value:"us-gov-east-1"},{label:y("AWS GovCloud (US-West)","simply-static"),value:"us-gov-west-1"}],onChange:e=>{k(e),n("aws_region",e)}}),(0,e.createElement)(c.TextControl,{label:y("Bucket","simply-static"),type:"text",help:y("Add the name of your bucket here.","simply-static"),value:t.aws_bucket,onChange:e=>{n("aws_bucket",e)}}),(0,e.createElement)(c.TextControl,{label:y("Subdirectory","simply-static"),type:"text",help:y("Add an optional subdirectory for your bucket","simply-static"),value:t.aws_subdirectory,onChange:e=>{n("aws_subdirectory",e)}}),(0,e.createElement)(c.TextControl,{label:y("Cloudfront Distribution ID","simply-static"),type:"text",help:y("We automatically invalidate the cache after each export.","simply-static"),value:t.aws_distribution_id,onChange:e=>{n("aws_distribution_id",e)}}),(0,e.createElement)(c.ToggleControl,{label:y("Empty bucket before new export?","simply-static"),help:y(E?"Clear bucket before new export.":"Don't clear bucket before new export.","simply-static"),checked:E,onChange:e=>{v(e),n("aws_empty",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),"sftp"===u&&(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,y("SFTP","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:y("Host","simply-static"),type:"text",help:y("Enter your SFTP host.","simply-static"),value:t.sftp_host,onChange:e=>{n("sftp_host",e)}}),(0,e.createElement)(c.TextControl,{label:y("Port","simply-static"),type:"number",help:y("Enter your SFTP port.","simply-static"),value:t.sftp_port,onChange:e=>{n("sftp_port",e)}}),(0,e.createElement)(c.TextControl,{label:y("SFTP username","simply-static"),help:y("Enter your SFTP username.","simply-static"),type:"text",placeholder:"username",value:t.sftp_user,onChange:e=>{n("sftp_user",e)}}),(0,e.createElement)(c.TextControl,{label:y("SFTP password","simply-static"),type:"password",help:y("Enter your SFTP password.","simply-static"),value:t.sftp_pass,onChange:e=>{n("sftp_pass",e)}}),(0,e.createElement)(c.TextControl,{label:y("SFTP folder","simply-static"),help:y('Leave empty to upload to the default SFTP folder. Enter a folder path where you want the static files to be uploaded to (example: "uploads" will upload to uploads folder. "uploads/new-folder" will upload files to "new-folder"). ',"simply-static"),type:"text",placeholder:"",value:t.sftp_folder,onChange:e=>{n("sftp_folder",e)}})))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,y("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),s(!0),setTimeout((function(){s(!1)}),2e3)},variant:"primary"},y("Save Settings","simply-static"))))},{__:b}=wp.i18n,E=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:i,setSettingsSaved:r}=(0,a.useContext)(o),[s,u]=(0,a.useState)("allowed_http_origins"),[p,d]=(0,a.useState)(!1),[m,g]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{t.fix_cors&&u(t.fix_cors),t.use_forms&&d(t.use_forms),t.use_comments&&g(t.use_comments)}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,b("Forms","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:b("Use forms?","simply-static"),help:b(p?"Use Forms on your static website.":"Don't use forms on your static website.","simply-static"),checked:p,onChange:e=>{d(e),n("use_forms",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,b("Comments","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:b("Use comments?","simply-static"),help:b(m?"Use comments on your static website.":"Don't use comments on your static website.","simply-static"),checked:m,onChange:e=>{g(e),n("use_comments",e)}}),m&&(0,e.createElement)(c.TextControl,{label:b("Redirect URL","simply-static"),type:"url",placeholder:"https://static-example.com/thank-you",help:b("The page will be generated and committed automatically after a comment was added, but it might take a while so its good practice to redirect the visitor.","simply-static"),value:t.comment_redirect,onChange:e=>{n("comment_redirect",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,b("CORS","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,b("When using Forms and Comments in Simply Static Pro you may encouter CORS issues as you make requests from your static website to your original one.","simply-static")),(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,e.createElement)("p",null,b("Due to the variety of server setups out there, you may need to make changes on your server.","simply-static"))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.TextControl,{label:b("Static URL","simply-static"),type:"url",placeholder:"https://static-site.com",help:b("Add the URL of your static website to allow CORS from it.","simply-static"),value:t.static_url,onChange:e=>{n("static_url",e)}}),(0,e.createElement)(c.SelectControl,{label:b("Select CORS method","simply-static"),value:s,help:b("Choose one of the methods to allow CORS for your website.","simply-static"),options:[{label:"allowed_http_origins",value:"allowed_http_origins"},{label:"wp_headers",value:"wp_headers"}],onChange:e=>{u(e),n("fix_cors",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,b("iFrame","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,b("We replace the HTML of the URLs with an iFrame that embeds the content directly from your WordPress website.","simply-static"),(0,e.createElement)("br",null),b("This way you can use dynamic elements on your static website without the need of a specific integration.","simply-static")),(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,e.createElement)("p",null,b("This requires your WordPress website to be online all the time.","simply-static"))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.TextareaControl,{label:b("URLs to embed as an iFrame","simply-static"),placeholder:options.home+"/my-form-page/",help:b("If you want to embed specific pages from your WordPress website into your static website, add the URLs here (one per line).","simply-static"),value:t.iframe_urls,onChange:e=>{n("iframe_urls",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,b("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),r(!0),setTimeout((function(){r(!1)}),2e3)},variant:"primary"},b("Save Settings","simply-static"))))},{__:v}=wp.i18n,_=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:i,setSettingsSaved:r}=(0,a.useContext)(o),[s,u]=(0,a.useState)(!1),[p,d]=(0,a.useState)("fuse"),[m,g]=(0,a.useState)(!1),h=()=>g(!0);return(0,a.useEffect)((()=>{t.use_search&&u(t.use_search),t.search_type&&d(t.search_type)}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,v("Search","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:v("Use search?","simply-static"),help:v(s?"Use search on your static website.":"Don't use search on your static website.","simply-static"),checked:s,onChange:e=>{u(e),n("use_search",e)}}),s&&(0,e.createElement)(c.SelectControl,{label:v("Search Type","simply-static"),value:p,help:v("Decide wich search type you want to use. Fuse runs locally based on file and Algolia is an external API service.","simply-static"),options:[{label:"Fuse JS",value:"fuse"},{label:"Algolia API",value:"algolia"}],onChange:e=>{d(e),n("search_type",e)}}))),s&&(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(c.Modal,{title:v("How to select data with meta tags","simply-static"),onRequestClose:()=>g(!1)},(0,e.createElement)("p",null,v("Targeting for excerpt in the meta description tag.","simply-static")),(0,e.createElement)("pre",null,'<meta name="description" content="This content is what we want as excerpt" />'),(0,e.createElement)("p",null,v("Adding such meta in the excerpt field would be:","simply-static")),(0,e.createElement)("pre",null,"description|content"),(0,e.createElement)("p",null,v("Targeting for title in the property meta tag.","simply-static")),(0,e.createElement)("pre",null,'<meta property="og:title" content="This content is what we want as excerpt" />'),(0,e.createElement)("p",null,v("Adding such meta in the excerpt field would be:","simply-static")),(0,e.createElement)("pre",null,"property|og:title"),(0,e.createElement)("p",null,v('If the second item (after | ) is not <code>content</code>, we\'ll use it as value of that attribute (<code>property="og:title"</code> in this example) and use <code>content</code> for value.',"simply-static")),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,v("Caution: Use meta tags that exist everywhere for title.","simply-static")))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,v("Indexing","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:v("CSS-Selector for Title","simply-static"),type:"text",placeholder:"title",help:[v("Add the CSS selector which contains the title of the page/post","simply-static")," ",(0,e.createElement)(c.Button,{variant:"link",onClick:h},v("Or meta tags. Click for more information.","simply-static"))],value:t.search_index_title,onChange:e=>{n("search_index_title",e)}}),(0,e.createElement)(c.TextControl,{label:v("CSS-Selector for Content","simply-static"),type:"text",placeholder:"body",help:[v("Add the CSS selector which contains the content of the page/post.","simply-static")," ",(0,e.createElement)(c.Button,{variant:"link",onClick:h},v("Or meta tags. Click for more information.","simply-static"))],value:t.search_index_content,onChange:e=>{n("search_index_content",e)}}),(0,e.createElement)(c.TextControl,{label:v("CSS-Selector for Excerpt","simply-static"),type:"text",placeholder:".entry-content",help:[v("Add the CSS selector which contains the excerpt of the page/post.","simply-static")," ",(0,e.createElement)(c.Button,{variant:"link",onClick:h},v("Or meta tags. Click for more information.","simply-static"))],value:t.search_index_excerpt,onChange:e=>{n("search_index_excerpt",e)}}),(0,e.createElement)(c.TextareaControl,{label:v("Exclude URLs","simply-static"),placeholder:"author\narchive\ncategory",help:v("Exclude URLs from indexing (one per line). You can use full URLs, parts of an URL or plain words (like stop words).","simply-static"),value:t.search_excludable,onChange:e=>{n("search_excludable",e)}})))),s&&"fuse"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,v("Fuse.js","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:v("CSS-Selector","simply-static"),type:"text",help:v("Add the CSS selector of your search element here.","simply-static"),value:t.fuse_selector,onChange:e=>{n("fuse_selector",e)}})))),s&&"algolia"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,v("Algolia API","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:v("Application ID","simply-static"),type:"password",help:v("Add your Algolia App ID.","simply-static"),value:t.algolia_app_id,onChange:e=>{n("algolia_app_id",e)}}),(0,e.createElement)(c.TextControl,{label:v("Admin API Key","simply-static"),type:"password",help:v("Add your Algolia Admin API Key.","simply-static"),value:t.algolia_admin_api_key,onChange:e=>{n("algolia_admin_api_key",e)}}),(0,e.createElement)(c.TextControl,{label:v("Search-Only API Key","simply-static"),type:"password",help:v("Add your Algolia Search-Only API Key here. This is the only key that will be visible on your static site.","simply-static"),value:t.algolia_search_api_key,onChange:e=>{n("algolia_search_api_key",e)}}),(0,e.createElement)(c.TextControl,{label:v("Name for your index","simply-static"),type:"text",help:v("Add your Algolia index name here.","simply-static"),value:t.algolia_index,onChange:e=>{n("algolia_index",e)}}),(0,e.createElement)(c.TextControl,{label:v("CSS-Selector","simply-static"),type:"text",help:v("Add the CSS selector of your search element here.","simply-static"),value:t.algolia_selector,onChange:e=>{n("algolia_selector",e)}}),(0,e.createElement)("p",null,(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},v("If you have multiple search elements with different CSS selectors, separate them by a comma (,) such as: .search-field, .search-field2","simply-static")))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,v("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),r(!0),setTimeout((function(){r(!1)}),2e3)},variant:"primary"},v("Save Settings","simply-static"))))},{__:w}=wp.i18n,C=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:i,setSettingsSaved:r}=(0,a.useContext)(o),[s,u]=(0,a.useState)(!1),[p,d]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{t.debugging_mode&&u(t.debugging_mode),t.server_cron&&d(t.server_cron)}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Basic Auth","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,w("If you've secured WordPress with HTTP Basic Auth you need to specify the username and password to use below.","simply-static")),(0,e.createElement)(c.TextControl,{label:w("Basic Auth Username","simply-static"),autoComplete:"off",type:"text",value:t.http_basic_auth_username,onChange:e=>{n("http_basic_auth_username",e)}}),(0,e.createElement)(c.TextControl,{label:w("Basic Auth Password","simply-static"),type:"password",autoComplete:"off",value:t.http_basic_auth_password,onChange:e=>{n("http_basic_auth_password",e)}}),"pro"===options.plan&&(0,e.createElement)("p",null,(0,e.createElement)(c.ToggleControl,{label:w("Enable Basic Auth","simply-static"),help:w("Once enabled we will put your entire website behind password protection.","simply-static"),checked:t.http_basic_auth_on,onChange:e=>{n("http_basic_auth_on",e)}}),t.http_basic_auth_on&&(!t.http_basic_auth_username||!t.http_basic_auth_password)&&(0,e.createElement)(c.Notice,{status:"warning",isDismissible:!1},w("Requires Username & Password to work","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Temporary Files","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("p",null,w("Your static files are temporarily saved to a directory before being copied to their destination or creating a ZIP.","simply-static")),(0,e.createElement)(c.TextControl,{label:w("Temporary Files Directory","simply-static"),type:"text",placeholder:options.temp_files_dir,help:w("Specify the directory to save your temporary files. This directory must exist and be writeable.","simply-static"),value:t.temp_files_dir,onChange:e=>{n("temp_files_dir",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Whitelist Plugins","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextareaControl,{label:w("Whitelist plugins in diagnostics","simply-static"),placeholder:"autoptimize\nwp-search-with-algolia\nwp-rocket",help:w("If you want to exclude certain plugins from the diagnostics check add the plugin slugs here (one per line).","simply-static"),value:t.whitelist_plugins,onChange:e=>{n("whitelist_plugins",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Proxy Setup","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:w("Origin URL","simply-static"),type:"url",help:w("If the URL of your WordPress installation differs from the public-facing URL (Proxy Setup), add the public URL here.","simply-static"),placeholder:options.home,autoComplete:"off",value:t.origin_url,onChange:e=>{n("origin_url",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Debug Log","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:w("Activate Debug Log","simply-static"),help:w("Enable it to download the debug log from Simply Static -> Generate.","simply-static"),checked:s,onChange:e=>{u(e),n("debugging_mode",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,w("Cron","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:w("Use server-side cron job","simply-static"),help:w("Enable this if you use a server-side cron job instead of the default WP-Cron.","simply-static"),checked:p,onChange:e=>{d(e),n("server_cron",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,w("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),r(!0),setTimeout((function(){r(!1)}),2e3)},variant:"primary"},w("Save Settings","simply-static"))))},{__:S}=wp.i18n,x=function({integration:t,settings:n,toggleIntegration:a}){let l=t.active;const i=t.pro,r=t.can_run,o=t.always_active;void 0!==n.integrations&&!1!==n.integrations&&(l=n.integrations.indexOf(t.id)>=0);let s="pro"===options.plan||!i;return(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,{className:"ss-integration"},(0,e.createElement)("div",null,(0,e.createElement)("strong",null,t.name||t.id),""!=t.description&&[(0,e.createElement)("br",null),t.description]),!r&&(0,e.createElement)("span",{className:"ss-align-right ss-no-shrink"},(0,e.createElement)("em",null,"Missing Plugin"),!s&&(0,e.createElement)("div",null,(0,e.createElement)(c.Button,{variant:"link",href:"https://simplystatic.com/pricing/"},S("Requires Simply Static Pro also","simply-static")))),r&&s&&!o&&(0,e.createElement)(c.ToggleControl,{className:"integration-toggle",checked:l,onChange:e=>{a(t.id,e)}}),r&&s&&o&&(0,e.createElement)("em",null,"Always Active"),r&&!s&&(0,e.createElement)(c.Button,{variant:"primary",href:"https://simplystatic.com/pricing/"},S("Get the Pro version","simply-static"))))},{__:k}=wp.i18n,R=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:i,setSettingsSaved:r}=(0,a.useContext)(o),s=(e,a)=>{a?(e=>{let a=t.integrations;!1===a&&(a=[]),a.indexOf(e)>=0||(a.push(e),n("integrations",a))})(e):(e=>{let a=t.integrations;!1===a&&(a=[]);const l=a.indexOf(e);l<0||(a.splice(l,1),n("integrations",a))})(e)},u=Object.keys(options.integrations).filter((e=>options.integrations[e].can_run&&!options.integrations[e].always_active)),p=Object.keys(options.integrations).filter((e=>!options.integrations[e].can_run&&!options.integrations[e].always_active));return(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,k("Integrations","simply-static"))),(0,e.createElement)(c.CardBody,null,k("Control Integrations that will be active during the export of the static site.","simply-static"))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),u.map((n=>{const a=options.integrations[n];return(0,e.createElement)(x,{integration:a,settings:t,toggleIntegration:s})})),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),p.map((n=>{const a=options.integrations[n];return(0,e.createElement)(x,{integration:a,settings:t,toggleIntegration:s})})),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,k("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),r(!0),setTimeout((function(){r(!1)}),2e3)},variant:"primary"},k("Save Settings","simply-static"))))};function P(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,l,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){l={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(l)throw l.error}}return r}"function"==typeof SuppressedError&&SuppressedError;var O,T,D=function(e){var n=e.children;return t().createElement("div",{className:"react-terminal-line"},n)};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("/**\n * Modfied version of [termynal.js](https://github.com/ines/termynal/blob/master/termynal.css).\n *\n * @author Ines Montani <ines@ines.io>\n * @version 0.0.1\n * @license MIT\n */\n .react-terminal-wrapper {\n width: 100%;\n background: #252a33;\n color: #eee;\n font-size: 18px;\n font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;\n border-radius: 4px;\n padding: 75px 45px 35px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n.react-terminal {\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n\n.react-terminal-wrapper.react-terminal-light {\n background: #ddd;\n color: #1a1e24;\n}\n\n.react-terminal-window-buttons {\n position: absolute;\n top: 15px;\n left: 15px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n}\n\n.react-terminal-window-buttons button {\n width: 15px;\n height: 15px;\n border-radius: 50%;\n border: 0;\n}\n\n.react-terminal-window-buttons button.clickable {\n cursor: pointer;\n}\n\n.react-terminal-window-buttons button.red-btn {\n background: #d9515d;\n}\n\n.react-terminal-window-buttons button.yellow-btn {\n background: #f4c025;\n}\n\n.react-terminal-window-buttons button.green-btn {\n background: #3ec930;\n}\n\n.react-terminal-wrapper:after {\n content: attr(data-terminal-name);\n position: absolute;\n color: #a2a2a2;\n top: 5px;\n left: 0;\n width: 100%;\n text-align: center;\n pointer-events: none;\n}\n\n.react-terminal-wrapper.react-terminal-light:after {\n color: #D76D77;\n}\n\n.react-terminal-line {\n white-space: pre;\n}\n\n.react-terminal-line:before {\n /* Set up defaults and ensure empty lines are displayed. */\n content: '';\n display: inline-block;\n vertical-align: middle;\n color: #a2a2a2;\n}\n\n.react-terminal-light .react-terminal-line:before {\n color: #D76D77;\n}\n\n.react-terminal-input:before {\n margin-right: 0.75em;\n content: '$';\n}\n\n.react-terminal-input[data-terminal-prompt]:before {\n content: attr(data-terminal-prompt);\n}\n\n.react-terminal-wrapper:focus-within .react-terminal-active-input .cursor {\n position: relative;\n display: inline-block;\n width: 0.55em;\n height: 1em;\n top: 0.225em;\n background: #fff;\n -webkit-animation: blink 1s infinite;\n animation: blink 1s infinite;\n}\n\n/* Cursor animation */\n\n@-webkit-keyframes blink {\n 50% {\n opacity: 0;\n }\n}\n\n@keyframes blink {\n 50% {\n opacity: 0;\n }\n}\n\n.terminal-hidden-input {\n position: fixed;\n left: -1000px;\n}\n\n/* .react-terminal-progress {\n display: flex;\n margin: .5rem 0;\n}\n\n.react-terminal-progress-bar {\n background-color: #fff;\n border-radius: .25rem;\n width: 25%;\n}\n\n.react-terminal-wrapper.react-terminal-light .react-terminal-progress-bar {\n background-color: #000;\n} */\n"),(T=O||(O={}))[T.Light=0]="Light",T[T.Dark=1]="Dark";var A=function(n){var a=n.name,l=n.prompt,i=n.height,r=void 0===i?"600px":i,o=n.colorMode,s=n.onInput,c=n.children,u=n.startingInputValue,p=void 0===u?"":u,d=n.redBtnCallback,m=n.yellowBtnCallback,g=n.greenBtnCallback,h=P((0,e.useState)(""),2),y=h[0],f=h[1],b=P((0,e.useState)(0),2),E=b[0],v=b[1],_=(0,e.useRef)(null);(0,e.useEffect)((function(){f(p.trim())}),[p]),(0,e.useEffect)((function(){var e,t;if(null!=s){var n=[],a=function(e){var t=function(){var t;return null===(t=null==e?void 0:e.querySelector(".terminal-hidden-input"))||void 0===t?void 0:t.focus()};null==e||e.addEventListener("click",t),n.push({terminalEl:e,listener:t})};try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(document.getElementsByClassName("react-terminal-wrapper")),i=l.next();!i.done;i=l.next())a(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return function(){n.forEach((function(e){e.terminalEl.removeEventListener("click",e.listener)}))}}}),[s]);var w=["react-terminal-wrapper"];return o===O.Light&&w.push("react-terminal-light"),t().createElement("div",{className:w.join(" "),"data-terminal-name":a},t().createElement("div",{className:"react-terminal-window-buttons"},t().createElement("button",{className:(m?"clickable":"")+" red-btn",disabled:!d,onClick:d}),t().createElement("button",{className:(m?"clickable":"")+" yellow-btn",disabled:!m,onClick:m}),t().createElement("button",{className:(g?"clickable":"")+" green-btn",disabled:!g,onClick:g})),t().createElement("div",{className:"react-terminal",style:{height:r}},c,"function"==typeof s&&t().createElement("div",{className:"react-terminal-line react-terminal-input react-terminal-active-input","data-terminal-prompt":l||"$",key:"terminal-line-prompt"},y,t().createElement("span",{className:"cursor",style:{left:E+1+"px"}})),t().createElement("div",{ref:_})),t().createElement("input",{className:"terminal-hidden-input",placeholder:"Terminal Hidden Input",value:y,autoFocus:null!=s,onChange:function(e){f(e.target.value)},onKeyDown:function(e){var t,n;if(s)if("Enter"===e.key)s(y),v(0),f(""),setTimeout((function(){var e;return null===(e=null==_?void 0:_.current)||void 0===e?void 0:e.scrollIntoView({behavior:"auto",block:"nearest"})}),500);else if(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp","Delete"].includes(e.key)){var a=e.currentTarget,l="",i=y.length-(a.selectionStart||0);i=(t=i)>(n=y.length)?n:t<0?0:t,"ArrowLeft"===e.key?(i>y.length-1&&i--,l=y.slice(y.length-1-i)):"ArrowRight"===e.key||"Delete"===e.key?l=y.slice(y.length-i+1):"ArrowUp"===e.key&&(l=y.slice(0));var r=function(e,t){var n=document.createElement("span");n.style.visibility="hidden",n.style.position="absolute",n.style.fontSize=window.getComputedStyle(e).fontSize,n.style.fontFamily=window.getComputedStyle(e).fontFamily,n.innerText=t,document.body.appendChild(n);var a=n.getBoundingClientRect().width;return document.body.removeChild(n),-a}(a,l);v(r)}}}))};const{__:N}=wp.i18n,I=function(){const{isRunning:t,blogId:n}=(0,a.useContext)(o),[l,s]=(0,a.useState)([(0,e.createElement)(D,null,"Waiting for new export..")]);function c(){i()({path:"/simplystatic/v1/activity-log?blog_id="+n+"&is_network_admin="+options.is_network,method:"GET"}).then((t=>{var n=JSON.parse(t),a=[];for(var l in n.data){var i=n.data[l].datetime,r=n.data[l].message;a.push((0,e.createElement)(D,null,"[",i,"] ",(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:r}})))}s(a)}))}return r((()=>{c()}),t?2500:null),(0,a.useEffect)((()=>{t&&s([(0,e.createElement)(D,null,"Waiting for new export..")]),c()}),[t]),(0,e.createElement)(A,{name:N("Activity Log","simply-static"),height:"250px",colorMode:O.Dark},l)};var $=n(757);const F=function(){const{isRunning:t,blogId:n}=(0,a.useContext)(o),[l,s]=(0,a.useState)([]),[c,u]=(0,a.useState)(!1),[p,d]=(0,a.useState)(25),[m,g]=(0,a.useState)(0),h=[{name:"Code",selector:e=>e.code,sortable:!1,maxWidth:"100px"},{name:"URL",selector:t=>(0,e.createElement)("a",{target:"_blank",href:t.url},t.url),sortable:!1},{name:"Notes",wrap:!0,selector:t=>(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:t.notes}})}];function y(e,t=!1){var a;((e=null!==(a=e)&&void 0!==a?a:1)!==m||t)&&u(!0),i()({path:`/simplystatic/v1/export-log?page=${e}&per_page=${p}&blog_id=${n}&is_network_admin=${options.is_network}`,method:"GET"}).then((n=>{var a=JSON.parse(n);e!==m||t?(s(a.data),u(!1)):(l.total_static_pages=a.data.total_static_pages,s(l)),g(e)}))}return r((()=>{y()}),t?5e3:null),(0,a.useEffect)((()=>{y(1,!0)}),[t]),(0,e.createElement)($.Ay,{columns:h,data:l.static_pages,pagination:!0,paginationServer:!0,paginationTotalRows:l.total_static_pages,paginationPerPage:25,paginationRowsPerPageOptions:[25,50,100,200],progressPending:c,onChangeRowsPerPage:(e,t)=>{d(e),y(t,!0)},onChangePage:e=>{y(e)}})},{__:H}=wp.i18n,L=function(){const[t,n]=(0,a.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Button,{variant:"primary",href:options.log_file,download:!0,style:{marginRight:"10px"}},H("Download Log","simply-static")),(0,e.createElement)(c.Button,{variant:"secondary",onClick:()=>{i()({path:"/simplystatic/v1/delete-log",method:"POST"}),n(!0),setTimeout((function(){n(!1)}),2e3)}},H("Clear Log","simply-static")),t&&(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,H("Log file cleared.","simply-static"))))))},{__:B}=wp.i18n,j=function(){const{settings:t,blogId:n,setBlogId:l}=(0,a.useContext)(o),[i,r]=(0,a.useState)(""),[s,u]=(0,a.useState)("");return(0,e.createElement)("div",{className:"inner-settings settings-wide"},!options.is_network&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(I,null),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)(c.Flex,{align:"top"},options.is_network&&(0,e.createElement)(c.FlexItem,{isBlock:!0},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,B("Multisite","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.SelectControl,{label:B("Choose a site to export","simply-static"),value:n,options:options.sites.map((function(e){return{label:`${e.name} (${e.url})`,value:e.blog_id}})),onChange:e=>{l(e),options.sites.some((t=>{t.blog_id===e&&(r(t.settings_url),u(t.activity_log_url))}))}}),i&&(0,e.createElement)("p",null,(0,e.createElement)(c.Button,{isPrimary:!0,href:i},"Switch to Site settings"),(0,e.createElement)(c.Button,{style:{marginLeft:"5px"},isSecondary:!0,href:s},"Check progress"))))),t.debugging_mode&&options.log_file&&!options.is_network&&(0,e.createElement)(c.FlexItem,{isBlock:!0},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,B("Debugging","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(L,null))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,B("Export Log","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(F,null))))},{__:M}=wp.i18n,z=function(){const{settings:t,updateSetting:n,saveSettings:l,settingsSaved:r,setSettingsSaved:s}=(0,a.useContext)(o),[u,p]=(0,a.useState)(!1),[d,m]=(0,a.useState)(!1),[g,h]=(0,a.useState)(!1),[y,f]=(0,a.useState)(!1),[b,E]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1),[S,x]=(0,a.useState)("wp-content"),[k,R]=(0,a.useState)("wp-includes"),[P,O]=(0,a.useState)("wp-content/uploads"),[T,D]=(0,a.useState)("wp-content/plugins"),[A,N]=(0,a.useState)("wp-content/themes"),[I,$]=(0,a.useState)("style"),[F,H]=(0,a.useState)("author"),[L,B]=(0,a.useState)(!1),[j,z]=(0,a.useState)(!1),[W,U]=(0,a.useState)(!1),[G,Y]=(0,a.useState)(!1),[V,J]=(0,a.useState)(!1),[K,q]=(0,a.useState)(!1),[Z,X]=(0,a.useState)(!1),[Q,ee]=(0,a.useState)(!1),[te,ne]=(0,a.useState)(!1),[ae,le]=(0,a.useState)(!1),[ie,re]=(0,a.useState)(!1),[oe,se]=(0,a.useState)(!1),[ce,ue]=(0,a.useState)(!1),[pe,de]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{t.use_minify&&p(t.use_minify),t.minify_html&&m(t.minify_html),t.minify_css&&h(t.minify_css),t.minify_inline_css&&f(t.minify_inline_css),t.minify_js&&E(t.minify_js),t.minify_inline_js&&_(t.minify_inline_js),t.wp_content_directory&&x(t.wp_content_directory),t.wp_includes_directory&&R(t.wp_includes_directory),t.wp_uploads_directory&&O(t.wp_uploads_directory),t.wp_plugins_directory&&D(t.wp_plugins_directory),t.rename_plugins&&C(t.rename_plugins),t.wp_themes_directory&&N(t.wp_themes_directory),t.theme_style_name&&$(t.theme_style_name),t.author_url&&H(t.author_url),t.hide_rest_api&&B(t.hide_rest_api),t.hide_style_id&&z(t.hide_style_id),t.hide_comments&&U(t.hide_comments),t.hide_version&&Y(t.hide_version),t.hide_generator&&q(t.hide_generator),t.hide_prefetch&&J(t.hide_prefetch),t.hide_rsd&&X(t.hide_rsd),t.hide_emotes&&ee(t.hide_emotes),t.disable_xmlrpc&&ne(t.disable_xmlrpc),t.disable_embed&&le(t.disable_embed),t.disable_db_debug&&re(t.disable_db_debug),t.disable_wlw_manifest&&se(t.disable_wlw_manifest),t.disable_directory_browsing&&ue(t.disable_directory_browsing)}),[t]),(0,e.createElement)("div",{className:"inner-settings"},(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,M("Minify","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:M("Minify Files?","simply-static"),help:M(u?"Enable minify files on your static website.":"Don't enable minify files on your static website.","simply-static"),checked:u,onChange:e=>{p(e),n("use_minify",e)}}),u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.ToggleControl,{label:M("Minify HTML","simply-static"),help:M(d?"Minify HTML files.":"Don't minify HTML files.","simply-static"),checked:d,onChange:e=>{m(e),n("minify_html",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Minify CSS","simply-static"),help:M(g?"Minify CSS files.":"Don't minify CSS files.","simply-static"),checked:g,onChange:e=>{h(e),n("minify_css",e)}}),g&&(0,e.createElement)(c.ToggleControl,{label:M("Minify Inline CSS","simply-static"),help:M(y?"Minify Inline CSS.":"Don't minify Inline CSS.","simply-static"),checked:y,onChange:e=>{f(e),n("minify_inline_css",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Minify JavaScript","simply-static"),help:M(b?"Minify JavaScript files.":"Don't minify JavaScript files.","simply-static"),checked:b,onChange:e=>{E(e),n("minify_js",e)}}),b&&(0,e.createElement)(c.ToggleControl,{label:M("Minify Inline JavaScript","simply-static"),help:M(v?"Minify Inline JavaScript.":"Don't minify Inline JavaScript.","simply-static"),checked:v,onChange:e=>{_(e),n("minify_inline_js",e)}})))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,M("Image Optimization","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:M("Optimize Images with ShortPixel?","simply-static"),help:t.shortpixel_enabled?M("Optimize images.","simply-static"):M("Don't optimize images.","simply-static"),checked:t.shortpixel_enabled,onChange:e=>{n("shortpixel_enabled",e)}}),t.shortpixel_enabled&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.TextControl,{label:M("ShortPixel API Key","simply-static"),type:"password",value:t.shortpixel_api_key,onChange:e=>{n("shortpixel_api_key",e)}}),(0,e.createElement)(c.__experimentalSpacer,{padding:1}),(0,e.createElement)(c.ToggleControl,{label:M("Backup the original images?","simply-static"),checked:t.shortpixel_backup_enabled,onChange:e=>{n("shortpixel_backup_enabled",e)}}),t.shortpixel_backup_enabled&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Button,{disabled:pe,onClick:()=>{de(!0),i()({path:"/simplystatic/v1/shortpixel-restore",method:"POST"}).then((e=>{const t=JSON.parse(e);de(!1),alert(t.message)})).catch((e=>{de(!1),alert(e.message)}))},variant:"secondary"},!pe&&M("Restore Original Images","simply-static"),pe&&[(0,e.createElement)(c.Dashicon,{icon:"update spin"}),M("Restoring...","simply-static")]))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,M("Replace","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.TextControl,{label:M("wp-content directory","simply-static"),help:M('Replace the "wp-content" directory.',"simply-static"),type:"text",placeholder:"wp-content",value:S,onChange:e=>{n("wp_content_directory",e)}}),(0,e.createElement)(c.TextControl,{label:M("wp-includes directory","simply-static"),help:M('Replace the "wp-includes" directory.',"simply-static"),type:"text",placeholder:"wp-includes",value:k,onChange:e=>{n("wp_includes_directory",e)}}),(0,e.createElement)(c.TextControl,{label:M("uploads directory","simply-static"),help:M('Replace the "wp-content/uploads" directory.',"simply-static"),type:"text",placeholder:"uploads",value:P,onChange:e=>{O(e),n("wp_uploads_directory",e)}}),(0,e.createElement)(c.TextControl,{label:M("plugins directory","simply-static"),help:M('Replace the "wp-content/plugins" directory.',"simply-static"),type:"text",placeholder:"plugins",value:T,onChange:e=>{D(e),n("wp_plugins_directory",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Replace Plugin Names?","simply-static"),help:M(w?"Replace plugin names with a random string combinations.":"Keep plugin names.","simply-static"),checked:w,onChange:e=>{C(e),n("rename_plugins",e)}}),(0,e.createElement)(c.TextControl,{label:M("themes directory","simply-static"),help:M('Replace the "wp-content/themes" directory.',"simply-static"),type:"text",placeholder:"themes",value:A,onChange:e=>{N(e),n("wp_themes_directory",e)}}),(0,e.createElement)(c.__experimentalInputControl,{label:M("Theme style name","simply-static"),help:M("Replace the style.css filename.","simply-static"),type:"text",className:"ss-theme-style-name",suffix:".css",placeholder:"style",value:I,onChange:e=>{$(e),n("theme_style_name",e)}}),(0,e.createElement)(c.TextControl,{label:M("Author URL","simply-static"),help:M("Replace the author url.","simply-static"),type:"text",placeholder:"author",value:F,onChange:e=>{H(e),n("author_url",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,M("Hide","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:M("Hide REST API URLs","simply-static"),checked:L,onChange:e=>{B(e),n("hide_rest_api",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide Style/Script IDs","simply-static"),checked:j,onChange:e=>{z(e),n("hide_style_id",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide HTML Comments","simply-static"),checked:W,onChange:e=>{U(e),n("hide_comments",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide WordPress Version","simply-static"),checked:G,onChange:e=>{Y(e),n("hide_version",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide WordPress Generator Meta","simply-static"),checked:K,onChange:e=>{q(e),n("hide_generator",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide DNS Prefetch WordPress link","simply-static"),checked:V,onChange:e=>{J(e),n("hide_prefetch",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide RSD Header","simply-static"),checked:Z,onChange:e=>{X(e),n("hide_rsd",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Hide Emojis if you don't use them","simply-static"),checked:Q,onChange:e=>{ee(e),n("hide_emotes",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Card,null,(0,e.createElement)(c.CardHeader,null,(0,e.createElement)("b",null,M("Disable","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)(c.ToggleControl,{label:M("Disable XML-RPC","simply-static"),checked:te,onChange:e=>{ne(e),n("disable_xmlrpc",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Disable Embed Scripts","simply-static"),checked:ae,onChange:e=>{le(e),n("disable_embed",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Disable DB Debug in Frontend","simply-static"),checked:ie,onChange:e=>{re(e),n("disable_db_debug",e)}}),(0,e.createElement)(c.ToggleControl,{label:M("Disable WLW Manifest Scripts","simply-static"),checked:oe,onChange:e=>{se(e),n("disable_wlw_manifest",e)}}))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1},(0,e.createElement)("p",null,M("Settings saved successfully.","simply-static"))))),(0,e.createElement)(c.__experimentalSpacer,{margin:5})),(0,e.createElement)("div",{className:"save-settings"},(0,e.createElement)(c.Button,{onClick:()=>{l(),s(!0),setTimeout((function(){s(!1)}),2e3)},variant:"primary"},M("Save Settings","simply-static"))))},{__:W}=wp.i18n,U=function(){const{isRunning:t,setIsRunning:n,blogId:l,settings:r,updateFromNetwork:s,passedChecks:u}=(0,a.useContext)(o),[d,g]=(0,a.useState)({activeItem:"/"}),[y,b]=(0,a.useState)(options.initial),[v,w]=(0,a.useState)(!1),[S,x]=(0,a.useState)(!1),[k,P]=(0,a.useState)("current"),[O,T]=(0,a.useState)([]),[D,A]=(0,a.useState)(!1),[N,I]=(0,a.useState)("export");(0,a.useEffect)((()=>{if(v||(w(!0),g(options.initial),b(options.initial)),options.selectable_sites&&!options.is_network&&options.is_multisite){let e=options.selectable_sites.map((function(e){return{label:`${e.name}`,value:e.blog_id}}));e.unshift({label:W("Use current settings","simply-static"),value:"current"}),T(e)}}),[options]);const $=()=>{x(!0),i()({path:"/simplystatic/v1/start-export",method:"POST",data:{blog_id:l,type:N}}).then((e=>{n(!0)}))},F=()=>{i()({path:"/simplystatic/v1/cancel-export",method:"POST",data:{blog_id:l}}).then((e=>{n(!1)}))};(0,a.useEffect)((function(){x(t)}),[t]);let H="";if(Object.keys(options.builds).length){const t=Object.keys(options.builds).map((t=>(0,e.createElement)("option",{value:t},options.builds[t])));H=(0,e.createElement)("optgroup",{label:"Builds"},t)}return(0,e.createElement)("div",{className:"plugin-settings-container"},(0,e.createElement)(c.__experimentalNavigatorProvider,{initialPath:y},(0,e.createElement)(c.Flex,null,(0,e.createElement)(c.FlexItem,null,options.is_network?(0,e.createElement)(c.Card,{className:"plugin-nav"},(0,e.createElement)("div",{className:"plugin-logo"},(0,e.createElement)("img",{alt:"Logo",src:options.logo})),"pro"===options.plan?(0,e.createElement)("p",null,"Free: ",(0,e.createElement)("b",null,options.version),(0,e.createElement)("br",null),"Pro: ",(0,e.createElement)("b",null,options.version_pro)):(0,e.createElement)("p",null,"Version: ",(0,e.createElement)("b",null,options.version)),(0,e.createElement)("div",{className:"generate-container"},(0,e.createElement)(c.Button,{onClick:()=>{I("export"),$()},disabled:S,className:"/"===d?"is-active-item generate":"generate"},!S&&[(0,e.createElement)(c.Dashicon,{icon:"update"}),W("Generate Static Files","simply-static")],S&&[(0,e.createElement)(c.Dashicon,{icon:"update spin"}),W("Generating...","simply-static")]),S&&(0,e.createElement)("span",{onClick:()=>{F()},className:"cancel-button"},W("Cancel Export","simply-static"))),(0,e.createElement)(c.__experimentalSpacer,{margin:5}),(0,e.createElement)(c.Button,{href:"https://simplystatic.com/changelogs/",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"editor-ul"})," ",W("Changelog","simply-static")),(0,e.createElement)(c.Button,{href:"https://docs.simplystatic.com",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"admin-links"})," ",W("Documentation","simply-static")),"free"===options.plan&&(0,e.createElement)(c.Button,{href:"https://simplystatic.com",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"admin-site-alt3"}),"Simply Static Pro")):(0,e.createElement)(c.Card,{className:"plugin-nav"},(0,e.createElement)("div",{className:"plugin-logo"},(0,e.createElement)("img",{alt:"Logo",src:options.logo})),"pro"===options.plan?(0,e.createElement)("p",null,"Free: ",(0,e.createElement)("b",null,options.version),(0,e.createElement)("br",null),"Pro: ",(0,e.createElement)("b",null,options.version_pro)):(0,e.createElement)("p",null,"Version: ",(0,e.createElement)("b",null,options.version)),(0,e.createElement)("div",{className:"generate-container"},"pro"===options.plan&&(0,e.createElement)(c.SelectControl,{className:"generate-type",value:N,onChange:e=>{I(e)}},(0,e.createElement)("option",{value:"export"},W("Export","simply-static")),"zip"!==r.delivery_method&&"tiiny"!==r.delivery_method&&(0,e.createElement)("option",{value:"update"},W("Update","simply-static")),H),(0,e.createElement)(c.Button,{onClick:()=>{$()},disabled:S,className:"/"===d?"is-active-item generate":"generate"},!S&&[(0,e.createElement)(c.Dashicon,{icon:"update"}),W("Generate Static Files","simply-static")],S&&[(0,e.createElement)(c.Dashicon,{icon:"update spin"}),W("Generating...","simply-static")]),S&&(0,e.createElement)("span",{onClick:()=>{F()},className:"cancel-button"},W("Cancel Export","simply-static"))),(0,e.createElement)(c.CardBody,null,!options.is_network&&options.is_multisite&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h4",{className:"settings-headline"}," ",W("Import","simply-static")),(0,e.createElement)(c.SelectControl,{value:k,options:O,help:W("Choose a subsite to import settings from.","simply-static"),onChange:e=>{P(e)}}),"current"!==k&&(0,e.createElement)(c.Button,{isPrimary:!0,onClick:()=>{(e=>{s(e),A(!0),setTimeout((function(){A(!1),window.location.reload()}),2e3)})(k)}},W("Import Settings","simply-static")),D?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"success",isDismissible:!1,className:"upgrade-network-notice"},(0,e.createElement)("p",null,W("Settings successfully imported.","simply-static"))))):""),(0,e.createElement)("h4",{className:"settings-headline"}," ",W("Tools","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/"),className:"/"===d?"is-active-item generate":"generate",path:"/"},(0,e.createElement)(c.Dashicon,{icon:"update"})," ",W("Activity Log","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/diagnostics"),className:"/diagnostics"===d?"is-active-item":"",path:"/diagnostics"},(0,e.createElement)(c.Dashicon,{icon:"bell"})," ",W("Diagnostics","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("h4",{className:"settings-headline"}," ",W("Settings","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/general"),className:"/general"===d?"is-active-item":"",path:"/general"},(0,e.createElement)(c.Dashicon,{icon:"admin-generic"})," ",W("General","simply-static")),!options.is_network&&(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/deployment"),className:"/deployment"===d?"is-active-item":"",path:"/deployment"},(0,e.createElement)(c.Dashicon,{icon:"migrate"})," ",W("Deploy","simply-static")),"pro"===options.plan&&!options.is_network&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/forms"),className:"/forms"===d?"is-active-item":"",path:"/forms"},(0,e.createElement)(c.Dashicon,{icon:"align-center"})," ",W("Forms","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/search"),className:"/search"===d?"is-active-item":"",path:"/search"},(0,e.createElement)(c.Dashicon,{icon:"search"})," ",W("Search","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/optimize"),className:"/optimize"===d?"is-active-item":"",path:"/optimize"},(0,e.createElement)(c.Dashicon,{icon:"dashboard"})," ",W("Optimize","simply-static")))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("h4",{className:"settings-headline"}," ",W("Advanced","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/integrations"),className:"/integrations"===d?"is-active-item":"",path:"/integrations"},(0,e.createElement)(c.Dashicon,{icon:"block-default"})," ",W("Integrations","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/utilities"),className:"/utilities"===d?"is-active-item":"",path:"/utilities"},(0,e.createElement)(c.Dashicon,{icon:"admin-tools"})," ",W("Utilities","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{onClick:()=>g("/debug"),className:"/debug"===d?"is-active-item":"",path:"/debug"},(0,e.createElement)(c.Dashicon,{icon:"editor-help"})," ",W("Debug","simply-static"))),(0,e.createElement)(c.CardBody,null,(0,e.createElement)("h4",{className:"settings-headline"},"Simply Static"),(0,e.createElement)(c.Button,{href:"https://simplystatic.com/changelogs/",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"editor-ul"})," ",W("Changelog","simply-static")),(0,e.createElement)(c.Button,{href:"https://docs.simplystatic.com",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"admin-links"})," ",W("Documentation","simply-static")),"free"===options.plan&&(0,e.createElement)(c.Button,{href:"https://simplystatic.com",target:"_blank"},(0,e.createElement)(c.Dashicon,{icon:"admin-site-alt3"}),"Simply Static Pro")))),(0,e.createElement)(c.FlexItem,{isBlock:!0},(0,e.createElement)("div",{class:"plugin-settings"},"no"===u?(0,e.createElement)(c.Animate,{type:"slide-in",options:{origin:"top"}},(()=>(0,e.createElement)(c.Notice,{status:"notice",isDismissible:!1,className:"/"==d?"diagnostics-notice diagnostics-notice-generate":"diagnostics-notice"},(0,e.createElement)("p",null,W("There are errors in diagnostics that may negatively affect your static export.","simply-static"),(0,e.createElement)("br",null),W("Please review them and get them fixed to avoid problems.","simply-static")),(0,e.createElement)(c.__experimentalNavigatorButton,{isSecondary:!0,onClick:()=>g("/diagnostics"),className:"/diagnostics"===d?"is-active-item":"",path:"/diagnostics"},(0,e.createElement)(c.Dashicon,{icon:"editor-help"})," ",W("Visit Diagnostics","simply-static"))))):"","/"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/"},(0,e.createElement)(j,null)),"/diagnostics"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/diagnostics"},(0,e.createElement)(m,null)),"/general"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/general"},(0,e.createElement)(p,null)),"/deployment"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/deployment"},(0,e.createElement)(f,null)),"/forms"===d&&"pro"===options.plan&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/forms"},(0,e.createElement)(E,null)),"/search"===d&&"pro"===options.plan&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/search"},(0,e.createElement)(_,null)),"/optimize"===d&&"pro"===options.plan&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/optimize"},(0,e.createElement)(z,null)),"/utilities"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/utilities"},(0,e.createElement)(h,null)),"/debug"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/debug"},(0,e.createElement)(C,null)),"/integrations"===d&&(0,e.createElement)(c.__experimentalNavigatorScreen,{path:"/integrations"},(0,e.createElement)(R,null)))))))},G=function(){return(0,e.createElement)(s,null,(0,e.createElement)("div",null,(0,e.createElement)(U,null)))};"simplystatic-settings"===options.screen&&(0,a.createRoot)(document.getElementById("simplystatic-settings")).render((0,e.createElement)(G,null))})()})(); |