This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

@@ -0,0 +1,34 @@
.wpl-error{background:#fff;border-right:4px solid #dc3232;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:2em 0 15px;padding:1px 12px;width:97%}.wpl-error .closer{color:#333;cursor:pointer;float:left;font-size:18px;padding-top:5px}.wpl-error textarea{background-color:#eee;font-family:courier,Monaco,monospace;font-size:12px;width:100%}.wpl-error span code{background-color:transparent}.wpl-error h3{font-size:1.2em}.wpl-error ul{list-style-type:disc}.wpl-error ul li{margin-right:20px;padding:0}.wpl-error code{-webkit-box-decoration-break:clone;box-decoration-break:clone;line-height:1.8}.wpl-error__mini h2{font-size:16px;font-weight:400}.wpl-error__mini h3{font-size:14px;font-weight:400}.wpl-error__highlight{background-color:#f7d85d;display:inline-block;margin:0;padding:3px 6px}.wpl-error__page{float:left;padding:5px}.wpl-error__page span{cursor:pointer;font-size:14px;padding-right:5px;padding-left:5px}
.wpl-spinner__container{display:inline-block;position:relative}.wpl-spinner__item{animation:wpl-scaleout 1s ease-in-out infinite;background-color:#1e1e1e;border-radius:100%;display:block;height:40px;right:10px;position:absolute;top:-25px;width:40px}@keyframes wpl-scaleout{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}.spinner-small .wpl-spinner__item{height:20px;right:5px;top:-15px;width:20px}
.redirection .form-table th a{color:#444}.redirection .form-table td ul{list-style-type:disc;margin:15px 0 0;padding-right:20px}.redirection .form-table td li{line-height:1.6;margin-bottom:0}.redirection .form-table textarea{height:100px;width:300px}.redirection .form-table .inline-notice{margin-bottom:0;margin-top:10px}
.api-result-retry{clear:both;float:left}.api-result-log{background-color:#ddd;color:#111;margin:10px 0;padding:5px 10px;position:relative}.api-result-log .api-result-method_fail{background-color:#ff3860;color:#fff;margin-left:5px;padding:3px 5px}.api-result-log .api-result-method_pass{background-color:#4ab866;color:#fff;margin-left:5px;padding:3px 5px;width:150px}.api-result-log .dashicons{font-size:26px;height:26px;padding:0;vertical-align:middle;width:26px}.api-result-log .dashicons-no{color:#ff3860}.api-result-log .dashicons-yes{color:#4ab866}.api-result-log pre{background-color:#ccc;font-family:Courier New,Courier,monospace;padding:10px 15px}.api-result-log code{background-color:transparent}.api-result-log h4{font-size:14px;margin:5px 0 0}.api-result-log_details{display:flex}.api-result-log_details>div{width:95%}.api-result-log_details a{color:#111}.api-result-log_details a:hover{font-weight:700}.api-result-log_details pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.api-result-log_details p{margin:.5em 0}.api-result-hide{bottom:25px;position:absolute;left:5%}.api-result-select{position:absolute;left:10px;top:15px}.api-result-select span{background-color:#777;color:#fff;margin-right:10px;padding:5px 10px}.api-result-header{align-items:center;display:flex}.api-result-header .api-result-progress{margin:0 15px}.api-result-header .wpl-spinner__item{height:18px;top:-14px;width:18px}.api-result-header .api-result-status{background-color:#ddd;font-weight:700;right:0;padding:5px 10px;text-align:center;top:0}.api-result-header .api-result-status_good{background-color:#4ab866;color:#fff}.api-result-header .api-result-status_problem{background-color:#f0b849}.api-result-header .api-result-status_failed{background-color:#ff3860;color:#fff}
.redirection-database_error{box-shadow:none;margin-top:1em;text-align:right}.redirection-database_error ul{list-style-type:disc}.redirection-database_error li{margin-right:20px}.redirection-database_error h3{margin-top:0;padding-top:0!important}.redirection-database .redirection-database_spinner{margin:0 auto;width:100px}.redirection-database .redirection-database{clear:both;padding-top:20px}.redirection-database .rc-progress-line{clear:both;display:block;margin-bottom:20px}.redirection-database textarea{width:100%}.redirection-database_wrapper h1,.redirection-database_wrapper>p{text-align:center}.redirection-database_wrapper .redirection-database_progress{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:-3px 3px 3px #ddd;margin:30px auto 0;padding:20px;text-align:center;width:75%}
.wizard-wrapper{color:#555;margin:90px auto 0;max-width:700px;width:100%}.wizard-wrapper h1{color:#999;font-weight:300;text-align:center}.wizard{background-color:#fff;border-bottom:2px solid #ca4a1f;border-top:2px solid #ca4a1f;padding:40px 40px 30px}.wizard h2{font-size:2em;font-weight:400;margin-bottom:0;margin-top:5px;padding-bottom:10px}.wizard h3{font-size:1.3em;font-weight:300;padding-top:10px}.wizard ul{list-style-type:disc}.wizard li{margin-right:20px}.wizard .notice{box-shadow:none;margin-bottom:20px;margin-right:0;margin-top:0}.wizard .redirection-database_error h2{margin-top:0;padding-top:0}.wizard-buttons{margin-top:20px}.wizard-option{padding:2px 0}.wizard-option label{font-weight:700}.wizard-option_disabled{opacity:.5}.wizard-support{padding-top:10px;text-align:center}.wizard-support a{color:#555}.button.wizard-retry{float:left;margin-top:5px}
.subsubsub-container:after,.subsubsub-container:before{content:"";display:table}.subsubsub-container:after{clear:both}
.notice.wpl-notice{border-top:1px solid #eee;bottom:25px;box-shadow:-3px 3px 3px rgba(0,0,0,.2);cursor:pointer;font-weight:700;position:fixed;left:0;transition:width 1s ease-in-out}.notice.wpl-notice p{padding-left:20px}.notice.wpl-notice .closer{font-size:16px;opacity:.8;position:absolute;left:5px;top:10px}.wpl-notice.wpl-notice_shrunk{width:20px}.wpl-notice.wpl-notice_shrunk p{font-size:16px}.wpl-notice.wpl-notice_shrunk .closer{display:none}
@keyframes wpl-loading-fade{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpl-placeholder__container{height:100px;position:relative;width:100%}.wpl-placeholder__loading{animation:wpl-loading-fade 1.6s ease-in-out infinite;background-color:#949494;bottom:16px;content:"";right:8px;padding-right:8px;padding-top:8px;position:absolute;left:8px;top:16px}.placeholder-inline{height:50px;position:relative;width:100%}.placeholder-inline .wpl-placeholder__loading{bottom:0;right:0;left:0;top:0}.loading-small{height:25px;width:25px}.tablenav-pages input.current-page{margin-right:2px;margin-left:2px;width:60px}.loader-wrapper{position:relative}.loader-textarea{height:100px}.wp-list-table .is-placeholder td{height:50px;position:relative}.wp-list-table .item-loading{opacity:.3}
.button.wpl-spinner{align-items:center;display:flex;gap:5px}.button.wpl-spinner svg{animation:wplspin 1.5s linear infinite;width:18px}@keyframes wplspin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}
.wpl-popover__toggle{cursor:pointer;display:inline-block;flex:none!important}.wpl-popover__toggle__disabled{opacity:.4}
.wpl-popover__arrows{position:absolute;width:100%;z-index:10003}.wpl-popover__arrows:after,.wpl-popover__arrows:before{box-shadow:0 3px 30px rgba(30,30,30,.1);content:"";height:0;line-height:0;margin-right:10px;position:absolute;width:0}.wpl-popover__arrows:before{border:8px solid transparent;border-bottom:8px solid #ccc;border-top:none;top:-8px}.wpl-popover__arrows:after{border:8px solid transparent;border-bottom:8px solid #fff;border-top:none;top:-6px;z-index:10003}.wpl-popover__arrows.wpl-popover__arrows__right:after,.wpl-popover__arrows.wpl-popover__arrows__right:before{margin-left:10px;left:0}.wpl-popover__arrows.wpl-popover__arrows__centre:after,.wpl-popover__arrows.wpl-popover__arrows__centre:before{right:calc(50% - 16px)}.wpl-popover__content{background:#fff;border:1px solid #ccc;box-shadow:0 3px 30px rgba(30,30,30,.1);height:auto;max-height:400px;min-width:150px;overflow-y:auto;position:absolute;z-index:10002}
.wpl-badge{align-items:center;background-color:#ccc;border-radius:3px;color:#000;display:inline-flex;margin-bottom:4px;margin-top:4px;min-height:24px;padding:0 4px}.wpl-badge.wpl-badge__click{border:1px solid transparent;cursor:pointer}.wpl-badge.wpl-badge__click:hover{background-color:#949494;color:#fff}.wpl-badge .wpl-badge__close{background-color:transparent;border:none;cursor:pointer;margin-right:2px;text-align:center;vertical-align:middle;width:15px}.wpl-badge .wpl-badge__close:hover{color:#fff}.wpl-badge.wpl-badge__small .wpl-badge__content{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpl-badge.wpl-badge__disabled{opacity:.6}.wpl-badge.wpl-badge__disabled .wpl-badge__close{cursor:inherit}.wpl-badge:not(:last-child){margin-left:5px}
.wpl-popover__content{padding:5px}.wpl-multioption__button{align-items:center;-webkit-appearance:none;background-color:#fff;border:1px solid #949494;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#32373c;cursor:pointer;display:flex;font-size:13px;height:30px;justify-content:space-between;line-height:2.15384615;margin:0;max-width:500px;min-height:30px;overflow:hidden;padding:0 10px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.wpl-multioption__button svg{border-right:1px solid #ddd;display:inline-block;fill:#888;margin-right:5px;margin-left:-4px;padding-right:5px}.wpl-multioption__button h5{font-size:13px;font-weight:400;margin:0 0 0 10px;padding:0}.wpl-multioption__button .wpl-badge{height:22px}.wpl-multioption__group{margin-bottom:20px}.wpl-multioption__group:first-child{padding-top:7px}.wpl-multioption__group h5{margin:0}.wpl-multioption__group input[type=checkbox]{margin-left:7px}.wpl-multioption__group p{line-height:2.2;margin:0}.wpl-multioption__group+p{margin-top:-10px}.actions .button.wpl-multioption__button{height:28px}.wpl-multioption__button.wpl-multioption__button_enabled{background-color:#fff}.wpl-multioption__button.wpl-multioption__button_enabled svg{border-right:1px solid transparent;border-left:1px solid #ddd;padding-right:0;padding-left:4px;transform:rotate(-180deg)}.wpl-multioption__group:last-child{margin-bottom:10px}.branch-4-9 .button.wpl-multioption__button,.branch-4-9 .wpl-dropdownbutton .button,.branch-5-0 .button.wpl-multioption__button,.branch-5-0 .wpl-dropdownbutton .button,.branch-5-1 .button.wpl-multioption__button,.branch-5-1 .wpl-dropdownbutton .button,.branch-5-2 .button.wpl-multioption__button,.branch-5-2 .wpl-dropdownbutton .button{border-color:#ddd}.branch-4-9 input[type=search],.branch-5-0 input[type=search],.branch-5-1 input[type=search],.branch-5-2 input[type=search]{height:30px}.branch-4-9 .actions .wpl-multioption__button .wpl-badge,.branch-4-9 .wpl-multioption,.branch-4-9 .wpl-multioption__button .wpl-badge,.branch-5-0 .actions .wpl-multioption__button .wpl-badge,.branch-5-0 .wpl-multioption,.branch-5-0 .wpl-multioption__button .wpl-badge,.branch-5-1 .actions .wpl-multioption__button .wpl-badge,.branch-5-1 .wpl-multioption,.branch-5-1 .wpl-multioption__button .wpl-badge,.branch-5-2 .actions .wpl-multioption__button .wpl-badge,.branch-5-2 .wpl-multioption,.branch-5-2 .wpl-multioption__button .wpl-badge{margin-top:1px!important}.actions .wpl-popover__content{margin-top:-1px}.wpl-popover.wpl-multioption__compact .wpl-popover__content{padding:3px 5px}.wpl-popover.wpl-multioption__compact .wpl-multioption{padding:0 5px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group{margin-bottom:12px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group:first-child{padding-top:4px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group p{line-height:1.8}.wpl-popover.wpl-multioption__compact .wpl-multioption__group+p{margin-top:-6px}.actions .button.wpl-multioption__button,.wpl-multioption__button{height:40px;min-height:40px}.actions .wpl-multioption__button .wpl-badge,.wpl-multioption__button .wpl-badge{margin-bottom:0;margin-top:0;min-height:28px}.inline-edit-row .actions .button.wpl-multioption__button,.inline-edit-row .wpl-multioption__button,.redirect-edit .actions .button.wpl-multioption__button,.redirect-edit .wpl-multioption__button,.tablenav .actions .button.wpl-multioption__button,.tablenav .wpl-multioption__button{height:32px;min-height:32px}.inline-edit-row .actions .wpl-multioption__button .wpl-badge,.inline-edit-row .wpl-multioption__button .wpl-badge,.redirect-edit .actions .wpl-multioption__button .wpl-badge,.redirect-edit .wpl-multioption__button .wpl-badge,.tablenav .actions .wpl-multioption__button .wpl-badge,.tablenav .wpl-multioption__button .wpl-badge{min-height:22px}body.branch-6-6 .actions .button.wpl-multioption__button,body.branch-6-6 .wpl-multioption__button,body.branch-6-7 .actions .button.wpl-multioption__button,body.branch-6-7 .wpl-multioption__button,body.branch-6-8 .actions .button.wpl-multioption__button,body.branch-6-8 .wpl-multioption__button,body.branch-6-9 .actions .button.wpl-multioption__button,body.branch-6-9 .wpl-multioption__button{height:28px;min-height:28px}body.branch-6-6 .actions .wpl-multioption__button .wpl-badge,body.branch-6-6 .wpl-multioption__button .wpl-badge,body.branch-6-7 .actions .wpl-multioption__button .wpl-badge,body.branch-6-7 .wpl-multioption__button .wpl-badge,body.branch-6-8 .actions .wpl-multioption__button .wpl-badge,body.branch-6-8 .wpl-multioption__button .wpl-badge,body.branch-6-9 .actions .wpl-multioption__button .wpl-badge,body.branch-6-9 .wpl-multioption__button .wpl-badge{margin-bottom:1px;margin-top:1px;min-height:22px}body.branch-6-6 .inline-edit-row .actions .button.wpl-multioption__button,body.branch-6-6 .inline-edit-row .wpl-multioption__button,body.branch-6-6 .redirect-edit .actions .button.wpl-multioption__button,body.branch-6-6 .redirect-edit .wpl-Line truncated
.inline-notice{background:#fff;border-right:4px solid #ffb900;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 15px;padding:5px 12px}.inline-notice.inline-general{border-right-color:#46b450}.inline-error{border-color:#ff3860}
.redirect-option__row th{margin:0!important;padding-bottom:0!important}.redirect-option__row h2{margin:0}
body.wpl-modal_shown{overflow:hidden}.wpl-modal_wrapper{width:100%}.wpl-modal_backdrop{background-color:#757575;opacity:.5;z-index:10000}.wpl-modal_backdrop,.wpl-modal_main{height:100%;right:0;position:fixed;top:0;width:100%}.wpl-modal_main{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:center;z-index:10001}.wpl-modal_main .wpl-click-outside,.wpl-modal_main .wpl-modal_content{max-height:90%;max-width:90%;min-height:100px;min-width:60%}.wpl-modal_main .wpl-modal_content{background:#fff;border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.2);margin:0 auto;opacity:1;position:relative;transition:height .05s ease}.wpl-modal_main .wpl-modal_content h1{color:#1e1e1e!important;margin:0!important}.wpl-modal_main .wpl-modal_close button{background-color:#fff;border:none;border-radius:2px;cursor:pointer;padding-left:10px;padding-top:10px;position:absolute;left:0;top:0;z-index:10001}.wpl-modal_wrapper.wpl-modal_wrapper-padless .wpl-modal_content{padding:20px}.wpl-modal_wrapper-padding .wpl-modal_content{padding:10px}.wpl-modal_error h2{text-align:center}.wpl-modal_loading{display:flex;height:100px}.wpl-modal_loading>*{align-self:center;justify-content:center;margin-right:calc(50% - 30px);margin-top:40px}@media screen and (max-width:782px){.wpl-modal_main .wpl-modal_content{margin-left:10%;width:80%}}
.redirection-httpcheck_results{display:flex;padding-bottom:40px}.redirection-httpcheck_results .redirection-httpcheck_info{text-align:right}.redirection-httpcheck{padding:15px}.redirection-httpcheck table{width:100%}.redirection-httpcheck .redirection-httpcheck_status{width:80px}.redirection-httpcheck .redirection-httpcheck_status .dashicons{font-size:70px;height:70px;width:70px}.redirection-httpcheck .redirection-httpcheck_status .dashicons-yes{color:#4ab866}.redirection-httpcheck .redirection-httpcheck_status .dashicons-no{color:#ff3860}.redirection-httpcheck .redirection-httpcheck_status .dashicons-warning{color:orange}.redirection-httpcheck h2{font-size:1.4em;margin-bottom:20px;margin-top:10px;padding-bottom:5px;text-align:right}.redirection-httpcheck h3{margin-top:25px}.redirection-httpcheck .wpl-modal_error{padding-right:10px}.redirection-httpcheck{padding-bottom:10px}.redirection-httpcheck svg{height:20px;margin-bottom:10px;margin-right:10px;margin-top:10px;width:20px}.redirection-httpstep__details p{margin-bottom:5px;margin-top:5px}.redirection-httpstep__details p:first-of-type{margin-top:0}.redirection-httpstep__details p:last-of-type{margin-bottom:0}.redirection-httpstep{display:flex}.redirection-httpstep .redirection-httpstep__match{background-color:#4ab866;color:#fff;font-weight:700;padding:3px 5px 3px 2px}.redirection-httpstep .redirection-httpstep__status{border-radius:.375rem;height:-moz-fit-content;height:fit-content;margin-left:10px;padding:.125rem .625rem}.redirection-httpstep .redirection-httpstep__status a{color:#fff;font-weight:500;text-decoration:none}.redirection-httpstep .redirection-httpstep__200{background-color:#4ab866}.redirection-httpstep .redirection-httpstep__300{background-color:#60a5fa}.redirection-httpstep .redirection-httpstep__400{background-color:#f0b849;color:#000}.redirection-httpstep .redirection-httpstep__500{background-color:#ff3860;color:#fff}.redirection-httpstep button{margin-bottom:-5px;margin-top:10px}
.http-tester table{width:95%}.http-tester table td,.http-tester table th{overflow:hidden;padding:5px;vertical-align:top}.http-tester table td{max-width:500px}.http-tester table th{padding-left:10px;text-align:left;width:150px}.http-tester table p{margin-top:0;padding-top:0}.http-tester table code{background-color:transparent;font-size:12px;padding:0}.http-tester ul{list-style-type:disc;margin-right:20px}.http-tester ul li span{margin:-20px}.http-tester ul ul{list-style-type:disc;margin-right:20px}.redirection-httptest{background-color:#fff;border:1px solid #999;margin-bottom:30px;padding-right:5px;padding-left:5px}.redirection-httptest h2{margin-top:10px}.redirection-httptest__input{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:20px}.redirection-httptest__input input[type=text]{width:100%}.plugin-status th{padding:5px;text-align:right}.plugin-status span,.plugin-status td{padding:5px}.plugin-status .plugin-status-good{background-color:#4ab866;color:#fff}.plugin-status .plugin-status-problem{background-color:orange;color:#fff}.plugin-status .plugin-status-error{background-color:#ff3860;color:#fff}.github{margin-top:8px}.github a{text-decoration:none}.github img{margin-bottom:-10px;padding-left:10px}
.wpl-dropdownbutton .wpl-popover__content h4{margin-top:5px}.wpl-dropdownbutton .wpl-popover__content h5{margin-bottom:5px;margin-top:0}.wpl-dropdownbutton .wpl-popover__content p:last-child{margin-bottom:0}.wp-core-ui .wpl-popover{max-height:400px;overflow:scroll;z-index:10000}.wp-core-ui .wpl-popover li .button{color:#333}.wp-core-ui .wpl-popover button{background-color:transparent;border:none;cursor:pointer;min-height:inherit;padding:0}.wpl-dropdownbutton{align-items:center;-webkit-appearance:none;background-color:#fff!important;border:1px solid #949494;border-radius:3px;color:#32373c;cursor:pointer;display:inline-flex;flex-wrap:nowrap;font-size:13px;height:40px;line-height:2.15384615;margin:0;min-height:40px;padding:0 10px;text-decoration:none}.wpl-dropdownbutton button{background-color:transparent;border:none;cursor:pointer;min-height:inherit;padding:0}.wpl-dropdownbutton h5{font-size:13px;font-weight:400;margin:0 0 0 5px;padding:0}.wpl-dropdownbutton svg{border-right:1px solid #ddd;display:inline-block;fill:#888;margin-right:5px;margin-left:-4px;padding-right:5px}.inline-edit-row .wpl-dropdownbutton,.redirect-edit .wpl-dropdownbutton,.tablenav .wpl-dropdownbutton{height:30px;min-height:30px}body.branch-6-6 .inline-edit-row .wpl-dropdownbutton,body.branch-6-6 .redirect-edit .wpl-dropdownbutton,body.branch-6-6 .tablenav .wpl-dropdownbutton,body.branch-6-6 .wpl-dropdownbutton,body.branch-6-7 .inline-edit-row .wpl-dropdownbutton,body.branch-6-7 .redirect-edit .wpl-dropdownbutton,body.branch-6-7 .tablenav .wpl-dropdownbutton,body.branch-6-7 .wpl-dropdownbutton,body.branch-6-8 .inline-edit-row .wpl-dropdownbutton,body.branch-6-8 .redirect-edit .wpl-dropdownbutton,body.branch-6-8 .tablenav .wpl-dropdownbutton,body.branch-6-8 .wpl-dropdownbutton,body.branch-6-9 .inline-edit-row .wpl-dropdownbutton,body.branch-6-9 .redirect-edit .wpl-dropdownbutton,body.branch-6-9 .tablenav .wpl-dropdownbutton,body.branch-6-9 .wpl-dropdownbutton{height:28px;min-height:28px}.wpl-dropdownbutton__popover{padding:5px}.wpl-dropdownbutton__popover li,.wpl-dropdownbutton__popover ul{background-color:#fff;margin:0;max-width:300px;padding:0;white-space:nowrap}.wpl-dropdownbutton__popover li{align-items:center;display:flex;font-weight:500;gap:5px;justify-content:space-between;padding:5px}.wpl-dropdownbutton__popover li:hover{background-color:#2684ff;color:#fff}.wpl-dropdownbutton__popover li:hover span{color:#fff}.wpl-dropdownbutton__popover li span{text-align:center;width:20px}.wpl-dropdownbutton__popover li .button{background-color:transparent;border:none;border-radius:0;box-shadow:none;color:#666;font-weight:400;line-height:1.6;padding:0;text-align:right;white-space:normal;width:100%}.wpl-dropdownbutton__popover li .button:hover{background-color:transparent;color:#fff}.wpl-dropdownbutton__popover li:last-of-type{border-bottom:none}.wpl-dropdownbutton__popover li button.wpl-dropdownbutton{background-color:inherit;border:none;color:#444;padding:0}.wpl-dropdownbutton__single h5{margin-left:0;text-align:center}.wpl-dropdownbutton[data-headlessui-state=open] svg{border-right:1px solid transparent;border-left:1px solid #ddd;padding-right:0;padding-left:4px;transform:rotate(-180deg)}
table.widefat.redirect-headers{margin-bottom:20px;table-layout:auto!important}.redirect-headers__name{align-items:center;display:flex}.redirect-headers__name select{margin-left:5px}.redirect-headers__name input[type=text]{margin:0 5px}.redirect-headers__name select+input[type=text]{margin-right:0}.redirect-headers__name__content{align-items:center;display:flex;flex-wrap:wrap;justify-content:right}.redirect-headers__name__content select{max-width:250px}.redirect-headers__name__content input[type=text]{width:auto}.redirect-headers__type{width:100px}.redirect-alias__item input[type=text]{width:100%}.widefat td.redirect-alias__item__asdomain{vertical-align:middle}.redirect-alias__delete{width:20px}.redirect-alias__delete,.redirect-headers__delete{width:35px}.redirect-alias__delete button,.redirect-headers__delete button{background:none;border:none}.redirect-alias__delete button:hover,.redirect-headers__delete button:hover{color:red;cursor:pointer}
.wp-core-ui .wp-list-table .button-link{display:flex;padding:8px;width:100%}
.redirection .wp-list-table{table-layout:fixed}.redirection .wp-list-table tbody>th:not(.check-column){padding:5px;vertical-align:top}.redirection .wp-list-table .column-last_count{text-align:right;width:80px}.redirection .wp-list-table .column-date{width:150px}.redirection .wp-list-table .column-last_access{text-align:right;width:150px}.redirection .wp-list-table .column-ip,.redirection .wp-list-table .column-module,.redirection .wp-list-table .column-total{width:110px}.redirection .wp-list-table .column-method,.redirection .wp-list-table .column-redirects{text-align:right;width:100px}.redirection .wp-list-table .column-position{text-align:right;width:65px}.redirection .wp-list-table .column-code{text-align:right;width:110px}.redirection .wp-list-table .column-status{width:50px}.redirection .wp-list-table .column-action_type,.redirection .wp-list-table .column-match_type{width:120px}.redirection .wp-list-table .check-column-red{margin:0;padding:4px 3px 0 0!important;vertical-align:middle;width:2.2em}.redirection .wp-list-table strike{opacity:.7}.redirection .wp-list-table .saving{opacity:.8}.redirection .wp-list-table.redirect-log__group__ip .column-count{width:200px}.redirection .wp-list-table.redirect-log__group__ip .column-ip{width:90%}.widefat .edit-groups{width:100%}.widefat .edit-groups th{font-size:13px;font-weight:700;line-height:1.2;padding-top:5px!important;padding:2px 0 2px 2px;vertical-align:top}.widefat .edit-groups td{padding:2px}.widefat .edit-groups input[type=text]{width:100%}.table-buttons{float:right}.table-buttons>button,.table-buttons>div.table-button-item,.table-buttons>form{display:inline;margin-left:5px!important}.table-buttons .wpl-modal_wrapper{display:inline}@media screen and (max-width:782px){input[type=checkbox]{height:20px;width:20px}.wp-list-table td.column-primary{padding-right:10px;padding-left:10px}.redirection .wp-list-table input,.redirection .wp-list-table select,.redirection .wp-list-table td,.redirection .wp-list-table th{font-size:1em!important}.redirection .wp-list-table td.column-code,.redirection .wp-list-table td.column-date,.redirection .wp-list-table td.column-referrer,.redirection .wp-list-table td.column-url .target,.redirection .wp-list-table th.column-code,.redirection .wp-list-table th.column-date{display:none!important}table.redirect-edit{padding-left:0}table.redirect-edit th{display:block;font-weight:700;padding-right:0!important}table.redirect-edit tbody tr td{flex-wrap:wrap}table.redirect-edit tbody tr td>*{flex:1 0 auto}table.redirect-edit input[type=number],table.redirect-edit input[type=text],table.redirect-edit select{width:100%}table.edit-groups input[type=number],table.edit-groups select,table.redirect-edit input[type=number],table.redirect-edit select{height:30px!important}}.redirect-table-display__filter button{min-width:200px}.redirect-table-display__filter .wpl-popover__content{min-width:180px}.tablenav.redirect-table-display{display:flex;justify-content:flex-end;margin-bottom:10px}.tablenav.redirect-table-display>div{margin-left:5px}.tablenav.redirect-table-display input[name=s]{margin-left:5px;margin-top:0}.redirect-table-filter__select{display:inline-block;margin-left:5px;min-width:200px}.redirect-table-filter__select .redirect-table-filter__select__control{border-color:#ddd;border-radius:0;height:27px;margin-top:1px;max-height:27px;min-height:27px}.tablenav .actions{overflow:visible}.tablenav.bottom,.tablenav.top{align-items:center;display:flex;justify-content:space-between}.tablenav .tablenav-pages{align-items:center;display:flex;margin:0}.tablenav .tablenav-pages .pagination-links{display:flex}.tablenav .tablenav-pages .pagination-links .button{align-items:center;box-sizing:border-box;display:inline-flex;height:32px;justify-content:center;min-height:32px;min-width:30px}.tablenav .tablenav-pages .pagination-links .button span{padding-bottom:2px}.tablenav .tablenav-pages .pagination-links span.button{align-items:center;justify-content:center;padding-bottom:2px}.tablenav .tablenav-pages .current-page{box-sizing:border-box;height:32px;min-height:32px}.tablenav .tablenav-pages .pagination-links .button,.tablenav .tablenav-pages .tablenav-paging-text{margin-left:4px}.tablenav .tablenav-pages .pagination-links .button:last-of-type{margin-left:0}.tablenav.bottom .redirect-table__actions{display:flex}.tablenav.bottom .redirect-table__actions .table-button-item{margin-left:10px}.redirect-table__actions .actions .button{height:28px}.redirect-table__actions .bulkactions{margin-bottom:9px}.displaying-num-all{background-color:#f0b849;padding:3px}
.tablenav-pages .displaying-num button{background:none;border:none;color:#2271b1;cursor:pointer;font-size:13px;margin:0;padding:0;text-decoration:underline;transition:color .3s ease}.tablenav-pages .displaying-num button:hover{color:#333}.tablenav-pages .paging-input{align-items:center;display:flex;justify-content:center}.tablenav.bottom{margin-top:10px}
.redirect-searchbox{align-items:center;display:flex}
.redirection-poweredby{bottom:10px;position:absolute;left:15px}
.redirection-useragent{box-sizing:border-box}.redirection-useragent th{line-height:1;text-align:right;vertical-align:top;width:120px}.redirection-useragent td{line-height:1.2}.redirection-useragent h2,.redirection-useragent td{text-align:right}.redirection-useragent h2{margin-bottom:0;padding-bottom:5px}.redirection-useragent .redirection-useragent_unknown,.redirection-useragent .redirection-useragent_unknown h2{padding:5px;text-align:center}.redirection-useragent table{padding-bottom:15px;padding-top:10px}
.redirect-requestdata th{min-width:120px;padding-left:10px;text-align:right;vertical-align:top}.redirect-requestdata td{overflow-wrap:break-word;word-wrap:break-word;hyphens:auto;word-break:break-all}.redirect-requestdata ul{list-style-type:square;padding-right:20px}
.wpl-dropdowntext{display:flex;position:relative}.wpl-dropdowntext input{width:100%}.wpl-dropdowntext .wpl-dropdowntext__loading{position:absolute;left:7px;top:2px}.wpl-dropdowntext .wpl-dropdowntext__loading svg{height:28px;opacity:.7;width:28px}.wpl-dropdowntext__max{display:none}.wpl-dropdowntext__suggestion input{width:100%}.wpl-dropdowntext__suggestion .wpl-badge{background-color:#4ab866;color:#fff;margin-right:5px;margin-left:5px}.wpl-dropdowntext__suggestion .wpl-badge .wpl-badge__content{font-weight:700}.wpl-dropdowntext__suggestion__hide input{display:none}.wpl-dropdowntext__suggestions .wpl-popover__content{line-height:1.8;padding:5px}.wpl-dropdowntext__suggestions .wpl-popover__content ul{list-style-type:none;margin:0;padding:0}.wpl-dropdowntext__suggestions .wpl-popover__content ul li{margin:0}.wpl-dropdowntext__suggestions .wpl-popover__content button{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:13px;font-weight:400;line-height:1.6;padding:0;text-align:right;width:100%}.wpl-dropdowntext__suggestions .wpl-popover__content button:hover{background-color:#deebff}.wpl-dropdowntext__suggestions .wpl-popover__content a{color:#333;display:block;padding:2px 3px;text-decoration:none}.wpl-dropdowntext__suggestions .wpl-popover__content a:hover{background-color:#deebff}
.redirect-edit{width:100%}.redirect-edit p{margin:5px}.redirect-edit th{font-weight:700;text-align:right;width:130px}.redirect-edit tbody tr td{align-items:center;display:flex;padding:0}.redirect-edit tbody tr td .redirection-url-autocomplete input,.redirect-edit tbody tr td>:not(input[type=checkbox]){flex:1 1 auto;justify-content:flex-start;margin-left:5px;text-align:right}.redirect-edit tbody tr td>select{flex:0 0 auto}.redirect-edit tbody tr td .redirect-edit-position input{width:60px}.redirect-edit tbody tr td .small-flex{flex-grow:0;padding-top:5px}.redirect-edit tbody tr.redirect-edit__action td{display:block}.redirect-edit tbody tr.redirect-edit__options td p{padding-top:4px}.redirect-edit tbody td.edit-left>*{flex:none}.redirect-edit textarea{height:100px;width:100%}.redirect-edit .redirect-edit_warning{margin-bottom:0;margin-top:10px;overflow-wrap:break-word;padding-bottom:5px;padding-top:5px;text-align:right;width:100%}.redirect-edit .redirect-edit_warning span{margin-left:4px}.redirect-edit .redirect-edit_warning p{align-items:center;color:#444;display:flex;line-height:2;margin:0}.redirect-edit .redirect-edit_warning code{margin-right:4px;margin-left:4px;padding:0 4px}.redirect-edit .redirect-edit_warning a{color:#2271b1;text-decoration:none}.redirect-edit .redirect-edit_warning a:hover{text-decoration:underline}.redirect-edit .wpl-multioption__button .wpl-badge{background-color:#ffb900}.wpl-modal_content .redirect-edit_warning{box-shadow:none;margin-right:0}.widefat td.column-url p{margin:0}.redirect-column-wrap{display:flex;flex-wrap:wrap;justify-content:space-between}.redirect-status{border-radius:10px;display:inline;font-size:16px;font-weight:700;min-width:15px;padding:2px 5px}.redirect-status__enabled{color:#4ab866}.redirect-status__disabled{color:#d94f4f;font-size:18px;padding:0 6px 3px}.wpl-badge.redirect-source__flag_regex{background-color:#ffb900;color:#000}.redirect-source__flags .wpl-badge{margin-bottom:2px}.redirect-edit-regex{align-items:center;display:flex}.redirect-edit-regex input[type=checkbox]{margin:0}
.dropzone{border:3px dashed #bbb;border-radius:4px;margin-bottom:10px;padding:10px 10px 15px;text-align:center}.dropzone,.dropzone h3{color:#666}.dropzone p{font-size:14px}.dropzone .groups{margin-bottom:15px;margin-top:15px}.dropzone .is-placeholder{height:90px;margin:0 auto;position:relative;width:50%}.dropzone-hover{border-color:#86bfd4}.dropzone-importing{border-color:transparent}.redirect-export_buttons{align-items:center;display:flex;gap:5px}.redirect-export_buttons .button-primary,.redirect-export_buttons select{margin-left:5px}
.form-table.redirect-groups td{align-items:center;display:flex}.form-table.redirect-groups th{width:30px}.form-table.redirect-groups select{min-height:30px}.widefat .edit-groups th{width:70px}
.widefat td .redirect-source__details p{margin:0;overflow-wrap:break-word;word-break:break-all}
.wp-core-ui .button-secondary.button-delete{color:#fff}.wp-core-ui .button-secondary.button-delete,.wp-core-ui .button-secondary.button-delete:hover{background-color:#ff3860;border-color:transparent;box-shadow:none;text-shadow:none}.inline-notice{background:#fff;border-right:4px solid #ffb900;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 15px;padding:5px 12px}.inline-notice.inline-general{border-right-color:#46b450}.inline-error{border-color:red}.addTop{margin-top:20px}@media screen and (max-width:782px){.import select{margin:5px 0;width:100%}.plugin-importer button{width:100%}p.search-box input[name=s]{margin-top:20px}}.module-export{background-color:#fff!important;border:1px solid #ddd;font-family:courier,Monaco,monospace;margin-top:15px;padding:5px;width:100%}.edit-groups .table-actions,.redirect-edit .table-actions,.redirect-groups .table-actions{align-items:center;display:flex;justify-content:flex-start;margin-right:1px;margin-top:2px}.edit-groups .table-actions .button,.redirect-edit .table-actions .button,.redirect-groups .table-actions .button{align-items:center;display:inline-flex;height:32px;justify-content:center;min-height:32px}.edit-groups .table-actions button.redirection-edit_advanced,.redirect-edit .table-actions button.redirection-edit_advanced,.redirect-groups .table-actions button.redirection-edit_advanced{background:none;border:none;cursor:pointer;font-size:16px;margin:0;padding:0;text-decoration:none}.edit-groups .table-actions button.redirection-edit_advanced svg,.redirect-edit .table-actions button.redirection-edit_advanced svg,.redirect-groups .table-actions button.redirection-edit_advanced svg{padding-top:2px}.error{padding-bottom:10px!important}.notice:not(.hidden){display:block!important}.database-switch{float:left;margin-left:10px;margin-top:-5px}.database-switch a{color:#444;text-decoration:none}.database-switch a:hover{text-decoration:underline}.red-upgrade{margin-bottom:50px}
@@ -0,0 +1,5 @@
<?php
define( 'REDIRECTION_VERSION', '5.8.0' );
define( 'REDIRECTION_BUILD', 'ccd61875d87555ffa26d4caa63395f50' );
define( 'REDIRECTION_MIN_WP', '6.6' );
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-element', 'wp-i18n'), 'version' => '1e46303089c718887d2a');
@@ -0,0 +1,34 @@
.wpl-error{background:#fff;border-left:4px solid #dc3232;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:2em 0 15px;padding:1px 12px;width:97%}.wpl-error .closer{color:#333;cursor:pointer;float:right;font-size:18px;padding-top:5px}.wpl-error textarea{background-color:#eee;font-family:courier,Monaco,monospace;font-size:12px;width:100%}.wpl-error span code{background-color:transparent}.wpl-error h3{font-size:1.2em}.wpl-error ul{list-style-type:disc}.wpl-error ul li{margin-left:20px;padding:0}.wpl-error code{-webkit-box-decoration-break:clone;box-decoration-break:clone;line-height:1.8}.wpl-error__mini h2{font-size:16px;font-weight:400}.wpl-error__mini h3{font-size:14px;font-weight:400}.wpl-error__highlight{background-color:#f7d85d;display:inline-block;margin:0;padding:3px 6px}.wpl-error__page{float:right;padding:5px}.wpl-error__page span{cursor:pointer;font-size:14px;padding-left:5px;padding-right:5px}
.wpl-spinner__container{display:inline-block;position:relative}.wpl-spinner__item{animation:wpl-scaleout 1s ease-in-out infinite;background-color:#1e1e1e;border-radius:100%;display:block;height:40px;left:10px;position:absolute;top:-25px;width:40px}@keyframes wpl-scaleout{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}.spinner-small .wpl-spinner__item{height:20px;left:5px;top:-15px;width:20px}
.redirection .form-table th a{color:#444}.redirection .form-table td ul{list-style-type:disc;margin:15px 0 0;padding-left:20px}.redirection .form-table td li{line-height:1.6;margin-bottom:0}.redirection .form-table textarea{height:100px;width:300px}.redirection .form-table .inline-notice{margin-bottom:0;margin-top:10px}
.api-result-retry{clear:both;float:right}.api-result-log{background-color:#ddd;color:#111;margin:10px 0;padding:5px 10px;position:relative}.api-result-log .api-result-method_fail{background-color:#ff3860;color:#fff;margin-right:5px;padding:3px 5px}.api-result-log .api-result-method_pass{background-color:#4ab866;color:#fff;margin-right:5px;padding:3px 5px;width:150px}.api-result-log .dashicons{font-size:26px;height:26px;padding:0;vertical-align:middle;width:26px}.api-result-log .dashicons-no{color:#ff3860}.api-result-log .dashicons-yes{color:#4ab866}.api-result-log pre{background-color:#ccc;font-family:Courier New,Courier,monospace;padding:10px 15px}.api-result-log code{background-color:transparent}.api-result-log h4{font-size:14px;margin:5px 0 0}.api-result-log_details{display:flex}.api-result-log_details>div{width:95%}.api-result-log_details a{color:#111}.api-result-log_details a:hover{font-weight:700}.api-result-log_details pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.api-result-log_details p{margin:.5em 0}.api-result-hide{bottom:25px;position:absolute;right:5%}.api-result-select{position:absolute;right:10px;top:15px}.api-result-select span{background-color:#777;color:#fff;margin-left:10px;padding:5px 10px}.api-result-header{align-items:center;display:flex}.api-result-header .api-result-progress{margin:0 15px}.api-result-header .wpl-spinner__item{height:18px;top:-14px;width:18px}.api-result-header .api-result-status{background-color:#ddd;font-weight:700;left:0;padding:5px 10px;text-align:center;top:0}.api-result-header .api-result-status_good{background-color:#4ab866;color:#fff}.api-result-header .api-result-status_problem{background-color:#f0b849}.api-result-header .api-result-status_failed{background-color:#ff3860;color:#fff}
.redirection-database_error{box-shadow:none;margin-top:1em;text-align:left}.redirection-database_error ul{list-style-type:disc}.redirection-database_error li{margin-left:20px}.redirection-database_error h3{margin-top:0;padding-top:0!important}.redirection-database .redirection-database_spinner{margin:0 auto;width:100px}.redirection-database .redirection-database{clear:both;padding-top:20px}.redirection-database .rc-progress-line{clear:both;display:block;margin-bottom:20px}.redirection-database textarea{width:100%}.redirection-database_wrapper h1,.redirection-database_wrapper>p{text-align:center}.redirection-database_wrapper .redirection-database_progress{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:3px 3px 3px #ddd;margin:30px auto 0;padding:20px;text-align:center;width:75%}
.wizard-wrapper{color:#555;margin:90px auto 0;max-width:700px;width:100%}.wizard-wrapper h1{color:#999;font-weight:300;text-align:center}.wizard{background-color:#fff;border-bottom:2px solid #ca4a1f;border-top:2px solid #ca4a1f;padding:40px 40px 30px}.wizard h2{font-size:2em;font-weight:400;margin-bottom:0;margin-top:5px;padding-bottom:10px}.wizard h3{font-size:1.3em;font-weight:300;padding-top:10px}.wizard ul{list-style-type:disc}.wizard li{margin-left:20px}.wizard .notice{box-shadow:none;margin-bottom:20px;margin-left:0;margin-top:0}.wizard .redirection-database_error h2{margin-top:0;padding-top:0}.wizard-buttons{margin-top:20px}.wizard-option{padding:2px 0}.wizard-option label{font-weight:700}.wizard-option_disabled{opacity:.5}.wizard-support{padding-top:10px;text-align:center}.wizard-support a{color:#555}.button.wizard-retry{float:right;margin-top:5px}
.subsubsub-container:after,.subsubsub-container:before{content:"";display:table}.subsubsub-container:after{clear:both}
.notice.wpl-notice{border-top:1px solid #eee;bottom:25px;box-shadow:3px 3px 3px rgba(0,0,0,.2);cursor:pointer;font-weight:700;position:fixed;right:0;transition:width 1s ease-in-out}.notice.wpl-notice p{padding-right:20px}.notice.wpl-notice .closer{font-size:16px;opacity:.8;position:absolute;right:5px;top:10px}.wpl-notice.wpl-notice_shrunk{width:20px}.wpl-notice.wpl-notice_shrunk p{font-size:16px}.wpl-notice.wpl-notice_shrunk .closer{display:none}
@keyframes wpl-loading-fade{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpl-placeholder__container{height:100px;position:relative;width:100%}.wpl-placeholder__loading{animation:wpl-loading-fade 1.6s ease-in-out infinite;background-color:#949494;bottom:16px;content:"";left:8px;padding-left:8px;padding-top:8px;position:absolute;right:8px;top:16px}.placeholder-inline{height:50px;position:relative;width:100%}.placeholder-inline .wpl-placeholder__loading{bottom:0;left:0;right:0;top:0}.loading-small{height:25px;width:25px}.tablenav-pages input.current-page{margin-left:2px;margin-right:2px;width:60px}.loader-wrapper{position:relative}.loader-textarea{height:100px}.wp-list-table .is-placeholder td{height:50px;position:relative}.wp-list-table .item-loading{opacity:.3}
.button.wpl-spinner{align-items:center;display:flex;gap:5px}.button.wpl-spinner svg{animation:wplspin 1.5s linear infinite;width:18px}@keyframes wplspin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
.wpl-popover__toggle{cursor:pointer;display:inline-block;flex:none!important}.wpl-popover__toggle__disabled{opacity:.4}
.wpl-popover__arrows{position:absolute;width:100%;z-index:10003}.wpl-popover__arrows:after,.wpl-popover__arrows:before{box-shadow:0 3px 30px rgba(30,30,30,.1);content:"";height:0;line-height:0;margin-left:10px;position:absolute;width:0}.wpl-popover__arrows:before{border:8px solid transparent;border-bottom:8px solid #ccc;border-top:none;top:-8px}.wpl-popover__arrows:after{border:8px solid transparent;border-bottom:8px solid #fff;border-top:none;top:-6px;z-index:10003}.wpl-popover__arrows.wpl-popover__arrows__right:after,.wpl-popover__arrows.wpl-popover__arrows__right:before{margin-right:10px;right:0}.wpl-popover__arrows.wpl-popover__arrows__centre:after,.wpl-popover__arrows.wpl-popover__arrows__centre:before{left:calc(50% - 16px)}.wpl-popover__content{background:#fff;border:1px solid #ccc;box-shadow:0 3px 30px rgba(30,30,30,.1);height:auto;max-height:400px;min-width:150px;overflow-y:auto;position:absolute;z-index:10002}
.wpl-badge{align-items:center;background-color:#ccc;border-radius:3px;color:#000;display:inline-flex;margin-bottom:4px;margin-top:4px;min-height:24px;padding:0 4px}.wpl-badge.wpl-badge__click{border:1px solid transparent;cursor:pointer}.wpl-badge.wpl-badge__click:hover{background-color:#949494;color:#fff}.wpl-badge .wpl-badge__close{background-color:transparent;border:none;cursor:pointer;margin-left:2px;text-align:center;vertical-align:middle;width:15px}.wpl-badge .wpl-badge__close:hover{color:#fff}.wpl-badge.wpl-badge__small .wpl-badge__content{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpl-badge.wpl-badge__disabled{opacity:.6}.wpl-badge.wpl-badge__disabled .wpl-badge__close{cursor:inherit}.wpl-badge:not(:last-child){margin-right:5px}
.wpl-popover__content{padding:5px}.wpl-multioption__button{align-items:center;-webkit-appearance:none;background-color:#fff;border:1px solid #949494;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#32373c;cursor:pointer;display:flex;font-size:13px;height:30px;justify-content:space-between;line-height:2.15384615;margin:0;max-width:500px;min-height:30px;overflow:hidden;padding:0 10px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.wpl-multioption__button svg{border-left:1px solid #ddd;display:inline-block;fill:#888;margin-left:5px;margin-right:-4px;padding-left:5px}.wpl-multioption__button h5{font-size:13px;font-weight:400;margin:0 10px 0 0;padding:0}.wpl-multioption__button .wpl-badge{height:22px}.wpl-multioption__group{margin-bottom:20px}.wpl-multioption__group:first-child{padding-top:7px}.wpl-multioption__group h5{margin:0}.wpl-multioption__group input[type=checkbox]{margin-right:7px}.wpl-multioption__group p{line-height:2.2;margin:0}.wpl-multioption__group+p{margin-top:-10px}.actions .button.wpl-multioption__button{height:28px}.wpl-multioption__button.wpl-multioption__button_enabled{background-color:#fff}.wpl-multioption__button.wpl-multioption__button_enabled svg{border-left:1px solid transparent;border-right:1px solid #ddd;padding-left:0;padding-right:4px;transform:rotate(180deg)}.wpl-multioption__group:last-child{margin-bottom:10px}.branch-4-9 .button.wpl-multioption__button,.branch-4-9 .wpl-dropdownbutton .button,.branch-5-0 .button.wpl-multioption__button,.branch-5-0 .wpl-dropdownbutton .button,.branch-5-1 .button.wpl-multioption__button,.branch-5-1 .wpl-dropdownbutton .button,.branch-5-2 .button.wpl-multioption__button,.branch-5-2 .wpl-dropdownbutton .button{border-color:#ddd}.branch-4-9 input[type=search],.branch-5-0 input[type=search],.branch-5-1 input[type=search],.branch-5-2 input[type=search]{height:30px}.branch-4-9 .actions .wpl-multioption__button .wpl-badge,.branch-4-9 .wpl-multioption,.branch-4-9 .wpl-multioption__button .wpl-badge,.branch-5-0 .actions .wpl-multioption__button .wpl-badge,.branch-5-0 .wpl-multioption,.branch-5-0 .wpl-multioption__button .wpl-badge,.branch-5-1 .actions .wpl-multioption__button .wpl-badge,.branch-5-1 .wpl-multioption,.branch-5-1 .wpl-multioption__button .wpl-badge,.branch-5-2 .actions .wpl-multioption__button .wpl-badge,.branch-5-2 .wpl-multioption,.branch-5-2 .wpl-multioption__button .wpl-badge{margin-top:1px!important}.actions .wpl-popover__content{margin-top:-1px}.wpl-popover.wpl-multioption__compact .wpl-popover__content{padding:3px 5px}.wpl-popover.wpl-multioption__compact .wpl-multioption{padding:0 5px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group{margin-bottom:12px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group:first-child{padding-top:4px}.wpl-popover.wpl-multioption__compact .wpl-multioption__group p{line-height:1.8}.wpl-popover.wpl-multioption__compact .wpl-multioption__group+p{margin-top:-6px}.actions .button.wpl-multioption__button,.wpl-multioption__button{height:40px;min-height:40px}.actions .wpl-multioption__button .wpl-badge,.wpl-multioption__button .wpl-badge{margin-bottom:0;margin-top:0;min-height:28px}.inline-edit-row .actions .button.wpl-multioption__button,.inline-edit-row .wpl-multioption__button,.redirect-edit .actions .button.wpl-multioption__button,.redirect-edit .wpl-multioption__button,.tablenav .actions .button.wpl-multioption__button,.tablenav .wpl-multioption__button{height:32px;min-height:32px}.inline-edit-row .actions .wpl-multioption__button .wpl-badge,.inline-edit-row .wpl-multioption__button .wpl-badge,.redirect-edit .actions .wpl-multioption__button .wpl-badge,.redirect-edit .wpl-multioption__button .wpl-badge,.tablenav .actions .wpl-multioption__button .wpl-badge,.tablenav .wpl-multioption__button .wpl-badge{min-height:22px}body.branch-6-6 .actions .button.wpl-multioption__button,body.branch-6-6 .wpl-multioption__button,body.branch-6-7 .actions .button.wpl-multioption__button,body.branch-6-7 .wpl-multioption__button,body.branch-6-8 .actions .button.wpl-multioption__button,body.branch-6-8 .wpl-multioption__button,body.branch-6-9 .actions .button.wpl-multioption__button,body.branch-6-9 .wpl-multioption__button{height:28px;min-height:28px}body.branch-6-6 .actions .wpl-multioption__button .wpl-badge,body.branch-6-6 .wpl-multioption__button .wpl-badge,body.branch-6-7 .actions .wpl-multioption__button .wpl-badge,body.branch-6-7 .wpl-multioption__button .wpl-badge,body.branch-6-8 .actions .wpl-multioption__button .wpl-badge,body.branch-6-8 .wpl-multioption__button .wpl-badge,body.branch-6-9 .actions .wpl-multioption__button .wpl-badge,body.branch-6-9 .wpl-multioption__button .wpl-badge{margin-bottom:1px;margin-top:1px;min-height:22px}body.branch-6-6 .inline-edit-row .actions .button.wpl-multioption__button,body.branch-6-6 .inline-edit-row .wpl-multioption__button,body.branch-6-6 .redirect-edit .actions .button.wpl-multioption__button,body.branch-6-6 .redirect-edit .wpl-muLine truncated
.inline-notice{background:#fff;border-left:4px solid #ffb900;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 15px;padding:5px 12px}.inline-notice.inline-general{border-left-color:#46b450}.inline-error{border-color:#ff3860}
.redirect-option__row th{margin:0!important;padding-bottom:0!important}.redirect-option__row h2{margin:0}
body.wpl-modal_shown{overflow:hidden}.wpl-modal_wrapper{width:100%}.wpl-modal_backdrop{background-color:#757575;opacity:.5;z-index:10000}.wpl-modal_backdrop,.wpl-modal_main{height:100%;left:0;position:fixed;top:0;width:100%}.wpl-modal_main{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:center;z-index:10001}.wpl-modal_main .wpl-click-outside,.wpl-modal_main .wpl-modal_content{max-height:90%;max-width:90%;min-height:100px;min-width:60%}.wpl-modal_main .wpl-modal_content{background:#fff;border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.2);margin:0 auto;opacity:1;position:relative;transition:height .05s ease}.wpl-modal_main .wpl-modal_content h1{color:#1e1e1e!important;margin:0!important}.wpl-modal_main .wpl-modal_close button{background-color:#fff;border:none;border-radius:2px;cursor:pointer;padding-right:10px;padding-top:10px;position:absolute;right:0;top:0;z-index:10001}.wpl-modal_wrapper.wpl-modal_wrapper-padless .wpl-modal_content{padding:20px}.wpl-modal_wrapper-padding .wpl-modal_content{padding:10px}.wpl-modal_error h2{text-align:center}.wpl-modal_loading{display:flex;height:100px}.wpl-modal_loading>*{align-self:center;justify-content:center;margin-left:calc(50% - 30px);margin-top:40px}@media screen and (max-width:782px){.wpl-modal_main .wpl-modal_content{margin-right:10%;width:80%}}
.redirection-httpcheck_results{display:flex;padding-bottom:40px}.redirection-httpcheck_results .redirection-httpcheck_info{text-align:left}.redirection-httpcheck{padding:15px}.redirection-httpcheck table{width:100%}.redirection-httpcheck .redirection-httpcheck_status{width:80px}.redirection-httpcheck .redirection-httpcheck_status .dashicons{font-size:70px;height:70px;width:70px}.redirection-httpcheck .redirection-httpcheck_status .dashicons-yes{color:#4ab866}.redirection-httpcheck .redirection-httpcheck_status .dashicons-no{color:#ff3860}.redirection-httpcheck .redirection-httpcheck_status .dashicons-warning{color:orange}.redirection-httpcheck h2{font-size:1.4em;margin-bottom:20px;margin-top:10px;padding-bottom:5px;text-align:left}.redirection-httpcheck h3{margin-top:25px}.redirection-httpcheck .wpl-modal_error{padding-left:10px}.redirection-httpcheck{padding-bottom:10px}.redirection-httpcheck svg{height:20px;margin-bottom:10px;margin-left:10px;margin-top:10px;width:20px}.redirection-httpstep__details p{margin-bottom:5px;margin-top:5px}.redirection-httpstep__details p:first-of-type{margin-top:0}.redirection-httpstep__details p:last-of-type{margin-bottom:0}.redirection-httpstep{display:flex}.redirection-httpstep .redirection-httpstep__match{background-color:#4ab866;color:#fff;font-weight:700;padding:3px 2px 3px 5px}.redirection-httpstep .redirection-httpstep__status{border-radius:.375rem;height:-moz-fit-content;height:fit-content;margin-right:10px;padding:.125rem .625rem}.redirection-httpstep .redirection-httpstep__status a{color:#fff;font-weight:500;text-decoration:none}.redirection-httpstep .redirection-httpstep__200{background-color:#4ab866}.redirection-httpstep .redirection-httpstep__300{background-color:#60a5fa}.redirection-httpstep .redirection-httpstep__400{background-color:#f0b849;color:#000}.redirection-httpstep .redirection-httpstep__500{background-color:#ff3860;color:#fff}.redirection-httpstep button{margin-bottom:-5px;margin-top:10px}
.http-tester table{width:95%}.http-tester table td,.http-tester table th{overflow:hidden;padding:5px;vertical-align:top}.http-tester table td{max-width:500px}.http-tester table th{padding-right:10px;text-align:right;width:150px}.http-tester table p{margin-top:0;padding-top:0}.http-tester table code{background-color:transparent;font-size:12px;padding:0}.http-tester ul{list-style-type:disc;margin-left:20px}.http-tester ul li span{margin:-20px}.http-tester ul ul{list-style-type:disc;margin-left:20px}.redirection-httptest{background-color:#fff;border:1px solid #999;margin-bottom:30px;padding-left:5px;padding-right:5px}.redirection-httptest h2{margin-top:10px}.redirection-httptest__input{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:20px}.redirection-httptest__input input[type=text]{width:100%}.plugin-status th{padding:5px;text-align:left}.plugin-status span,.plugin-status td{padding:5px}.plugin-status .plugin-status-good{background-color:#4ab866;color:#fff}.plugin-status .plugin-status-problem{background-color:orange;color:#fff}.plugin-status .plugin-status-error{background-color:#ff3860;color:#fff}.github{margin-top:8px}.github a{text-decoration:none}.github img{margin-bottom:-10px;padding-right:10px}
.wpl-dropdownbutton .wpl-popover__content h4{margin-top:5px}.wpl-dropdownbutton .wpl-popover__content h5{margin-bottom:5px;margin-top:0}.wpl-dropdownbutton .wpl-popover__content p:last-child{margin-bottom:0}.wp-core-ui .wpl-popover{max-height:400px;overflow:scroll;z-index:10000}.wp-core-ui .wpl-popover li .button{color:#333}.wp-core-ui .wpl-popover button{background-color:transparent;border:none;cursor:pointer;min-height:inherit;padding:0}.wpl-dropdownbutton{align-items:center;-webkit-appearance:none;background-color:#fff!important;border:1px solid #949494;border-radius:3px;color:#32373c;cursor:pointer;display:inline-flex;flex-wrap:nowrap;font-size:13px;height:40px;line-height:2.15384615;margin:0;min-height:40px;padding:0 10px;text-decoration:none}.wpl-dropdownbutton button{background-color:transparent;border:none;cursor:pointer;min-height:inherit;padding:0}.wpl-dropdownbutton h5{font-size:13px;font-weight:400;margin:0 5px 0 0;padding:0}.wpl-dropdownbutton svg{border-left:1px solid #ddd;display:inline-block;fill:#888;margin-left:5px;margin-right:-4px;padding-left:5px}.inline-edit-row .wpl-dropdownbutton,.redirect-edit .wpl-dropdownbutton,.tablenav .wpl-dropdownbutton{height:30px;min-height:30px}body.branch-6-6 .inline-edit-row .wpl-dropdownbutton,body.branch-6-6 .redirect-edit .wpl-dropdownbutton,body.branch-6-6 .tablenav .wpl-dropdownbutton,body.branch-6-6 .wpl-dropdownbutton,body.branch-6-7 .inline-edit-row .wpl-dropdownbutton,body.branch-6-7 .redirect-edit .wpl-dropdownbutton,body.branch-6-7 .tablenav .wpl-dropdownbutton,body.branch-6-7 .wpl-dropdownbutton,body.branch-6-8 .inline-edit-row .wpl-dropdownbutton,body.branch-6-8 .redirect-edit .wpl-dropdownbutton,body.branch-6-8 .tablenav .wpl-dropdownbutton,body.branch-6-8 .wpl-dropdownbutton,body.branch-6-9 .inline-edit-row .wpl-dropdownbutton,body.branch-6-9 .redirect-edit .wpl-dropdownbutton,body.branch-6-9 .tablenav .wpl-dropdownbutton,body.branch-6-9 .wpl-dropdownbutton{height:28px;min-height:28px}.wpl-dropdownbutton__popover{padding:5px}.wpl-dropdownbutton__popover li,.wpl-dropdownbutton__popover ul{background-color:#fff;margin:0;max-width:300px;padding:0;white-space:nowrap}.wpl-dropdownbutton__popover li{align-items:center;display:flex;font-weight:500;gap:5px;justify-content:space-between;padding:5px}.wpl-dropdownbutton__popover li:hover{background-color:#2684ff;color:#fff}.wpl-dropdownbutton__popover li:hover span{color:#fff}.wpl-dropdownbutton__popover li span{text-align:center;width:20px}.wpl-dropdownbutton__popover li .button{background-color:transparent;border:none;border-radius:0;box-shadow:none;color:#666;font-weight:400;line-height:1.6;padding:0;text-align:left;white-space:normal;width:100%}.wpl-dropdownbutton__popover li .button:hover{background-color:transparent;color:#fff}.wpl-dropdownbutton__popover li:last-of-type{border-bottom:none}.wpl-dropdownbutton__popover li button.wpl-dropdownbutton{background-color:inherit;border:none;color:#444;padding:0}.wpl-dropdownbutton__single h5{margin-right:0;text-align:center}.wpl-dropdownbutton[data-headlessui-state=open] svg{border-left:1px solid transparent;border-right:1px solid #ddd;padding-left:0;padding-right:4px;transform:rotate(180deg)}
table.widefat.redirect-headers{margin-bottom:20px;table-layout:auto!important}.redirect-headers__name{align-items:center;display:flex}.redirect-headers__name select{margin-right:5px}.redirect-headers__name input[type=text]{margin:0 5px}.redirect-headers__name select+input[type=text]{margin-left:0}.redirect-headers__name__content{align-items:center;display:flex;flex-wrap:wrap;justify-content:left}.redirect-headers__name__content select{max-width:250px}.redirect-headers__name__content input[type=text]{width:auto}.redirect-headers__type{width:100px}.redirect-alias__item input[type=text]{width:100%}.widefat td.redirect-alias__item__asdomain{vertical-align:middle}.redirect-alias__delete{width:20px}.redirect-alias__delete,.redirect-headers__delete{width:35px}.redirect-alias__delete button,.redirect-headers__delete button{background:none;border:none}.redirect-alias__delete button:hover,.redirect-headers__delete button:hover{color:red;cursor:pointer}
.wp-core-ui .wp-list-table .button-link{display:flex;padding:8px;width:100%}
.redirection .wp-list-table{table-layout:fixed}.redirection .wp-list-table tbody>th:not(.check-column){padding:5px;vertical-align:top}.redirection .wp-list-table .column-last_count{text-align:left;width:80px}.redirection .wp-list-table .column-date{width:150px}.redirection .wp-list-table .column-last_access{text-align:left;width:150px}.redirection .wp-list-table .column-ip,.redirection .wp-list-table .column-module,.redirection .wp-list-table .column-total{width:110px}.redirection .wp-list-table .column-method,.redirection .wp-list-table .column-redirects{text-align:left;width:100px}.redirection .wp-list-table .column-position{text-align:left;width:65px}.redirection .wp-list-table .column-code{text-align:left;width:110px}.redirection .wp-list-table .column-status{width:50px}.redirection .wp-list-table .column-action_type,.redirection .wp-list-table .column-match_type{width:120px}.redirection .wp-list-table .check-column-red{margin:0;padding:4px 0 0 3px!important;vertical-align:middle;width:2.2em}.redirection .wp-list-table strike{opacity:.7}.redirection .wp-list-table .saving{opacity:.8}.redirection .wp-list-table.redirect-log__group__ip .column-count{width:200px}.redirection .wp-list-table.redirect-log__group__ip .column-ip{width:90%}.widefat .edit-groups{width:100%}.widefat .edit-groups th{font-size:13px;font-weight:700;line-height:1.2;padding-top:5px!important;padding:2px 2px 2px 0;vertical-align:top}.widefat .edit-groups td{padding:2px}.widefat .edit-groups input[type=text]{width:100%}.table-buttons{float:left}.table-buttons>button,.table-buttons>div.table-button-item,.table-buttons>form{display:inline;margin-right:5px!important}.table-buttons .wpl-modal_wrapper{display:inline}@media screen and (max-width:782px){input[type=checkbox]{height:20px;width:20px}.wp-list-table td.column-primary{padding-left:10px;padding-right:10px}.redirection .wp-list-table input,.redirection .wp-list-table select,.redirection .wp-list-table td,.redirection .wp-list-table th{font-size:1em!important}.redirection .wp-list-table td.column-code,.redirection .wp-list-table td.column-date,.redirection .wp-list-table td.column-referrer,.redirection .wp-list-table td.column-url .target,.redirection .wp-list-table th.column-code,.redirection .wp-list-table th.column-date{display:none!important}table.redirect-edit{padding-right:0}table.redirect-edit th{display:block;font-weight:700;padding-left:0!important}table.redirect-edit tbody tr td{flex-wrap:wrap}table.redirect-edit tbody tr td>*{flex:1 0 auto}table.redirect-edit input[type=number],table.redirect-edit input[type=text],table.redirect-edit select{width:100%}table.edit-groups input[type=number],table.edit-groups select,table.redirect-edit input[type=number],table.redirect-edit select{height:30px!important}}.redirect-table-display__filter button{min-width:200px}.redirect-table-display__filter .wpl-popover__content{min-width:180px}.tablenav.redirect-table-display{display:flex;justify-content:flex-end;margin-bottom:10px}.tablenav.redirect-table-display>div{margin-right:5px}.tablenav.redirect-table-display input[name=s]{margin-right:5px;margin-top:0}.redirect-table-filter__select{display:inline-block;margin-right:5px;min-width:200px}.redirect-table-filter__select .redirect-table-filter__select__control{border-color:#ddd;border-radius:0;height:27px;margin-top:1px;max-height:27px;min-height:27px}.tablenav .actions{overflow:visible}.tablenav.bottom,.tablenav.top{align-items:center;display:flex;justify-content:space-between}.tablenav .tablenav-pages{align-items:center;display:flex;margin:0}.tablenav .tablenav-pages .pagination-links{display:flex}.tablenav .tablenav-pages .pagination-links .button{align-items:center;box-sizing:border-box;display:inline-flex;height:32px;justify-content:center;min-height:32px;min-width:30px}.tablenav .tablenav-pages .pagination-links .button span{padding-bottom:2px}.tablenav .tablenav-pages .pagination-links span.button{align-items:center;justify-content:center;padding-bottom:2px}.tablenav .tablenav-pages .current-page{box-sizing:border-box;height:32px;min-height:32px}.tablenav .tablenav-pages .pagination-links .button,.tablenav .tablenav-pages .tablenav-paging-text{margin-right:4px}.tablenav .tablenav-pages .pagination-links .button:last-of-type{margin-right:0}.tablenav.bottom .redirect-table__actions{display:flex}.tablenav.bottom .redirect-table__actions .table-button-item{margin-right:10px}.redirect-table__actions .actions .button{height:28px}.redirect-table__actions .bulkactions{margin-bottom:9px}.displaying-num-all{background-color:#f0b849;padding:3px}
.tablenav-pages .displaying-num button{background:none;border:none;color:#2271b1;cursor:pointer;font-size:13px;margin:0;padding:0;text-decoration:underline;transition:color .3s ease}.tablenav-pages .displaying-num button:hover{color:#333}.tablenav-pages .paging-input{align-items:center;display:flex;justify-content:center}.tablenav.bottom{margin-top:10px}
.redirect-searchbox{align-items:center;display:flex}
.redirection-poweredby{bottom:10px;position:absolute;right:15px}
.redirection-useragent{box-sizing:border-box}.redirection-useragent th{line-height:1;text-align:left;vertical-align:top;width:120px}.redirection-useragent td{line-height:1.2}.redirection-useragent h2,.redirection-useragent td{text-align:left}.redirection-useragent h2{margin-bottom:0;padding-bottom:5px}.redirection-useragent .redirection-useragent_unknown,.redirection-useragent .redirection-useragent_unknown h2{padding:5px;text-align:center}.redirection-useragent table{padding-bottom:15px;padding-top:10px}
.redirect-requestdata th{min-width:120px;padding-right:10px;text-align:left;vertical-align:top}.redirect-requestdata td{overflow-wrap:break-word;word-wrap:break-word;hyphens:auto;word-break:break-all}.redirect-requestdata ul{list-style-type:square;padding-left:20px}
.wpl-dropdowntext{display:flex;position:relative}.wpl-dropdowntext input{width:100%}.wpl-dropdowntext .wpl-dropdowntext__loading{position:absolute;right:7px;top:2px}.wpl-dropdowntext .wpl-dropdowntext__loading svg{height:28px;opacity:.7;width:28px}.wpl-dropdowntext__max{display:none}.wpl-dropdowntext__suggestion input{width:100%}.wpl-dropdowntext__suggestion .wpl-badge{background-color:#4ab866;color:#fff;margin-left:5px;margin-right:5px}.wpl-dropdowntext__suggestion .wpl-badge .wpl-badge__content{font-weight:700}.wpl-dropdowntext__suggestion__hide input{display:none}.wpl-dropdowntext__suggestions .wpl-popover__content{line-height:1.8;padding:5px}.wpl-dropdowntext__suggestions .wpl-popover__content ul{list-style-type:none;margin:0;padding:0}.wpl-dropdowntext__suggestions .wpl-popover__content ul li{margin:0}.wpl-dropdowntext__suggestions .wpl-popover__content button{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:13px;font-weight:400;line-height:1.6;padding:0;text-align:left;width:100%}.wpl-dropdowntext__suggestions .wpl-popover__content button:hover{background-color:#deebff}.wpl-dropdowntext__suggestions .wpl-popover__content a{color:#333;display:block;padding:2px 3px;text-decoration:none}.wpl-dropdowntext__suggestions .wpl-popover__content a:hover{background-color:#deebff}
.redirect-edit{width:100%}.redirect-edit p{margin:5px}.redirect-edit th{font-weight:700;text-align:left;width:130px}.redirect-edit tbody tr td{align-items:center;display:flex;padding:0}.redirect-edit tbody tr td .redirection-url-autocomplete input,.redirect-edit tbody tr td>:not(input[type=checkbox]){flex:1 1 auto;justify-content:flex-start;margin-right:5px;text-align:left}.redirect-edit tbody tr td>select{flex:0 0 auto}.redirect-edit tbody tr td .redirect-edit-position input{width:60px}.redirect-edit tbody tr td .small-flex{flex-grow:0;padding-top:5px}.redirect-edit tbody tr.redirect-edit__action td{display:block}.redirect-edit tbody tr.redirect-edit__options td p{padding-top:4px}.redirect-edit tbody td.edit-left>*{flex:none}.redirect-edit textarea{height:100px;width:100%}.redirect-edit .redirect-edit_warning{margin-bottom:0;margin-top:10px;overflow-wrap:break-word;padding-bottom:5px;padding-top:5px;text-align:left;width:100%}.redirect-edit .redirect-edit_warning span{margin-right:4px}.redirect-edit .redirect-edit_warning p{align-items:center;color:#444;display:flex;line-height:2;margin:0}.redirect-edit .redirect-edit_warning code{margin-left:4px;margin-right:4px;padding:0 4px}.redirect-edit .redirect-edit_warning a{color:#2271b1;text-decoration:none}.redirect-edit .redirect-edit_warning a:hover{text-decoration:underline}.redirect-edit .wpl-multioption__button .wpl-badge{background-color:#ffb900}.wpl-modal_content .redirect-edit_warning{box-shadow:none;margin-left:0}.widefat td.column-url p{margin:0}.redirect-column-wrap{display:flex;flex-wrap:wrap;justify-content:space-between}.redirect-status{border-radius:10px;display:inline;font-size:16px;font-weight:700;min-width:15px;padding:2px 5px}.redirect-status__enabled{color:#4ab866}.redirect-status__disabled{color:#d94f4f;font-size:18px;padding:0 6px 3px}.wpl-badge.redirect-source__flag_regex{background-color:#ffb900;color:#000}.redirect-source__flags .wpl-badge{margin-bottom:2px}.redirect-edit-regex{align-items:center;display:flex}.redirect-edit-regex input[type=checkbox]{margin:0}
.dropzone{border:3px dashed #bbb;border-radius:4px;margin-bottom:10px;padding:10px 10px 15px;text-align:center}.dropzone,.dropzone h3{color:#666}.dropzone p{font-size:14px}.dropzone .groups{margin-bottom:15px;margin-top:15px}.dropzone .is-placeholder{height:90px;margin:0 auto;position:relative;width:50%}.dropzone-hover{border-color:#86bfd4}.dropzone-importing{border-color:transparent}.redirect-export_buttons{align-items:center;display:flex;gap:5px}.redirect-export_buttons .button-primary,.redirect-export_buttons select{margin-right:5px}
.form-table.redirect-groups td{align-items:center;display:flex}.form-table.redirect-groups th{width:30px}.form-table.redirect-groups select{min-height:30px}.widefat .edit-groups th{width:70px}
.widefat td .redirect-source__details p{margin:0;overflow-wrap:break-word;word-break:break-all}
.wp-core-ui .button-secondary.button-delete{color:#fff}.wp-core-ui .button-secondary.button-delete,.wp-core-ui .button-secondary.button-delete:hover{background-color:#ff3860;border-color:transparent;box-shadow:none;text-shadow:none}.inline-notice{background:#fff;border-left:4px solid #ffb900;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 15px;padding:5px 12px}.inline-notice.inline-general{border-left-color:#46b450}.inline-error{border-color:red}.addTop{margin-top:20px}@media screen and (max-width:782px){.import select{margin:5px 0;width:100%}.plugin-importer button{width:100%}p.search-box input[name=s]{margin-top:20px}}.module-export{background-color:#fff!important;border:1px solid #ddd;font-family:courier,Monaco,monospace;margin-top:15px;padding:5px;width:100%}.edit-groups .table-actions,.redirect-edit .table-actions,.redirect-groups .table-actions{align-items:center;display:flex;justify-content:flex-start;margin-left:1px;margin-top:2px}.edit-groups .table-actions .button,.redirect-edit .table-actions .button,.redirect-groups .table-actions .button{align-items:center;display:inline-flex;height:32px;justify-content:center;min-height:32px}.edit-groups .table-actions button.redirection-edit_advanced,.redirect-edit .table-actions button.redirection-edit_advanced,.redirect-groups .table-actions button.redirection-edit_advanced{background:none;border:none;cursor:pointer;font-size:16px;margin:0;padding:0;text-decoration:none}.edit-groups .table-actions button.redirection-edit_advanced svg,.redirect-edit .table-actions button.redirection-edit_advanced svg,.redirect-groups .table-actions button.redirection-edit_advanced svg{padding-top:2px}.error{padding-bottom:10px!important}.notice:not(.hidden){display:block!important}.database-switch{float:right;margin-right:10px;margin-top:-5px}.database-switch a{color:#444;text-decoration:none}.database-switch a:hover{text-decoration:underline}.red-upgrade{margin-bottom:50px}
@@ -0,0 +1,107 @@
/*! Redirection v5.8.0 - please refer to license.txt for license information */
(()=>{var e,t,n,r={174(e,t,n){"use strict";const r=window.ReactDOM,i=window.wp.i18n;var o=n(609),s=n.t(o,2),a=n.n(o);const l=window.ReactJSXRuntime;var c=o.createContext(void 0),u=e=>{const t=o.useContext(c);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},d=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,l.jsx)(c.Provider,{value:e,children:t}));function p(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=p(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const h=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=" "),r+=t);return r};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function m(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var g=o.useLayoutEffect,y=function(e,t){"function"!=typeof e?e.current=t:e(t)},_={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},v=function(e){Object.keys(_).forEach(function(t){e.style.setProperty(t,_[t],"important")})},b=null,x=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},w=function(){},j=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],S=!!document.documentElement.currentStyle;function k(e,t,n){var r,i,s=(r=n,i=a().useRef(r),g(function(){i.current=r}),i);o.useLayoutEffect(function(){var n=function(e){return s.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var C=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],T=function(e,t){var n,r=e.cacheMeasurements,i=e.maxRows,s=e.minRows,l=e.onChange,c=void 0===l?w:l,u=e.onHeightChange,d=void 0===u?w:u,p=m(e,C),h=void 0!==p.value,g=o.useRef(null),_=function(e,t){var n=a().useRef();return a().useCallback(function(r){e.current=r,n.current&&y(n.current,null),n.current=t,t&&y(t,r)},[t])}(g,t),T=o.useRef(0),E=o.useRef(),P=function(){var e=g.current,t=r&&E.current?E.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,j.reduce(function(e,t){return e[t]=n[t],e},{})),i=r.boxSizing;return""===i?null:(S&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){E.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),b||((b=document.createElement("textarea")).setAttribute("tabindex","-1"),b.setAttribute("aria-hidden","true"),v(b)),null===b.parentNode&&document.body.appendChild(b);var i=e.paddingSize,o=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(e){var t=e;b.style[t]=s[t]}),v(b),b.value=t;var l=x(b,e);b.value=t,l=x(b,e),b.value="x";var c=b.scrollHeight-i,u=c*n;"border-box"===a&&(u=u+i+o),l=Math.max(u,l);var d=c*r;return"border-box"===a&&(d=d+i+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",s,i),o=n[0],a=n[1];T.current!==o&&(T.current=o,e.style.setProperty("height",o+"px","important"),d(o,{rowHeight:a}))}};return o.useLayoutEffect(P),function(e,t){k(document.body,"reset",function(n){e.current.form===n.target&&t()})}(g,function(){if(!h){var e=g.current.value;requestAnimationFrame(function(){var t=g.current;t&&e!==t.value&&P()})}}),k(window,"resize",P),n=P,k(document.fonts,"loadingdone",n),o.createElement("textarea",f({},p,{onChange:function(e){h||P(),c(e)},ref:_}))},E=o.forwardRef(T);const P=function(e){const{error:t,mini:n,context:r,renderDebug:s,versions:a,noParse:c=!1,details:u=[],locale:d}=e,[p,h]=(0,o.useState)(!n);if(!p)return(0,l.jsx)("p",{children:(0,l.jsx)("button",{className:"button button-secondary",type:"button",onClick:()=>h(!0),children:(0,i.__)("Show debug",d)})});const f=c?[t]:function(e,t,n){const r=t?[t]:[],{request:i=!1,data:o}=e;r.push("");const{apiFetch:s}=i||{};s&&s.status&&s.statusText&&(r.push("Action: "+s.action),s.body&&"{}"!==s.body&&r.push("Params: "+s.body),r.push("Code: "+s.status+" "+s.statusText),r.push(""));const a=function(e){if("string"==typeof e)return e;const t=e;return 0===t.code?t.message:t.data&&t.data.wpdb?`${t.message} ( Line truncated
// translators: %(version)s is the plugin version number
// translators: %(version)s is the plugin version number
(0,i.__)("Thank you for installing and using Redirection v%(version)s. This plugin will allow you to manage 301 redirections, keep track of 404 errors, and improve your site, with no knowledge of Apache or Nginx needed.","redirection"),{version:window.Redirectioni10n.version})}),(0,l.jsx)("p",{children:(0,i.__)("Redirection is designed to be used on sites with a few redirects to sites with thousands of redirects.","redirection")}),(0,l.jsx)("h3",{children:(0,i.__)("How do I use this plugin?","redirection")}),(0,l.jsx)("p",{children:D((0,i.__)("A simple redirect involves setting a {{strong}}source URL{{/strong}} (the old URL) and a {{strong}}target URL{{/strong}} (the new URL). Here's an example:","redirection"),{strong:(0,l.jsx)("strong",{})})}),(0,l.jsx)("table",{className:"redirect-edit",children:(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{children:[(0,l.jsxs)("th",{children:[(0,i.__)("Source URL","redirection"),":"]}),(0,l.jsx)("td",{children:(0,l.jsx)("input",{type:"text",className:"regular-text",readOnly:!0,value:(0,i.__)("(Example) The source URL is your old or original URL","redirection")})})]}),(0,l.jsxs)("tr",{children:[(0,l.jsxs)("th",{children:[(0,i.__)("Target URL","redirection"),":"]}),(0,l.jsx)("td",{children:(0,l.jsx)("input",{type:"text",className:"regular-text",readOnly:!0,value:(0,i.__)("(Example) The target URL is the new URL","redirection")})})]})]})}),(0,l.jsx)("p",{children:(0,i.__)("That's all there is to it - you are now redirecting! Note that the above is just an example.","redirection")}),(0,l.jsx)("p",{children:D((0,i.__)("Full documentation can be found on the {{link}}Redirection website.{{/link}}","redirection"),{link:(0,l.jsx)(O,{url:"https://redirection.me/support/"})})}),(0,l.jsxs)("h3",{children:[(0,i.__)("Some features you may find useful are","redirection"),":"]}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:D((0,i.__)("{{link}}Monitor 404 errors{{/link}}, get detailed information about the visitor, and fix any problems","redirection"),{link:(0,l.jsx)(O,{url:"https://redirection.me/support/tracking-404-errors/"})})}),(0,l.jsx)("li",{children:D((0,i.__)("{{link}}Import{{/link}} from .htaccess, CSV, and a variety of other plugins","redirection"),{link:(0,l.jsx)(O,{url:"https://redirection.me/support/import-export-redirects/"})})}),(0,l.jsx)("li",{children:D((0,i.__)("More powerful URL matching, including {{regular}}regular expressions{{/regular}}, and {{other}}other conditions{{/other}}","redirection"),{regular:(0,l.jsx)(O,{url:"https://redirection.me/support/redirect-regular-expressions/"}),other:(0,l.jsx)(O,{url:"https://redirection.me/support/matching-redirects/"})})}),(0,l.jsx)("li",{children:(0,i.__)("Check a URL is being redirected","redirection")})]}),(0,l.jsx)("h3",{children:(0,i.__)("What's next?","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("First you will be asked a few questions, and then Redirection will set up your database.","redirection")}),(0,l.jsxs)("div",{className:"wizard-buttons",children:[(0,l.jsx)("button",{className:"button-primary button",onClick:function(){t({manual:!1}),e(1)},children:(0,i.__)("Start Setup","redirection")})," ",(0,l.jsx)("button",{className:"button-secondary button",onClick:function(){t({manual:!0}),e(4)},children:(0,i.__)("Manual Setup","redirection")})]})]})}var fe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},me=new class extends fe{#e;#t;#n;constructor(){super(),this.#n=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},ge={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ye=new class{#r=ge;#i=!1;setTimeoutProvider(e){this.#r=e}setTimeout(e,t){return this.#r.setTimeout(e,t)}clearTimeout(e){this.#r.clearTimeout(e)}setInterval(e,t){return this.#r.setInterval(e,t)}clearInterval(e){this.#r.clearInterval(e)}},_e="undefined"==typeof window||"Deno"in globalThis;function ve(){}function be(e){return"number"==typeof e&&e>=0&&e!==1/0}function xe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function we(e,t){return"function"==typeof e?e(t):e}function je(e,t){return"function"==typeof e?e(t):e}function Se(e,t){const{type:n="all",exacLine truncated
// translators: %(installed)s is the path where WordPress is installed
// translators: %(installed)s is the path where WordPress is installed
(0,i.__)("Redirects added to an Apache group can be saved to an {{code}}.htaccess{{/code}} file by adding the full path here. For reference, your WordPress is installed to {{code}}%(installed)s{{/code}}.","redirection"),{installed:o}),{code:(0,l.jsx)("code",{})})}),s&&(0,l.jsxs)("p",{className:"inline-notice",children:[(0,i.__)("Unable to save .htaccess file","redirection")," ",(0,l.jsx)("code",{children:s})]})]}),(0,l.jsxs)(or,{title:(0,i.__)("REST API","redirection"),url:r("options","restapi"),children:[(0,l.jsx)(cr,{items:ur(),name:"rest_api",value:String(u),onChange:n})," "," ",(0,l.jsx)("span",{className:"sub",children:(0,i.__)("How Redirection uses the REST API - don't change unless necessary","redirection")})]}),(0,l.jsxs)(or,{title:(0,i.__)("Data Upgrade","redirection"),children:[(0,l.jsx)(cr,{items:[{value:"prompt",
// translators: Upgrade manually when prompted
label:(0,i.__)("Upgrade manually when prompted","redirection")},{value:"admin",
// translators: Automatically upgrade on admin pages
label:(0,i.__)("Automatically upgrade on admin pages","redirection")}],name:"plugin_update",value:d,onChange:n})," "," ",(0,l.jsx)("span",{className:"sub",children:(0,i.__)("Decide how Redirection updates itself, if needed.","redirection")})]})]})},pr=/^[cC][0-9a-z]{6,}$/,hr=/^[0-9a-z]+$/,fr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mr=/^[0-9a-vA-V]{20}$/,gr=/^[A-Za-z0-9]{27}$/,yr=/^[a-zA-Z0-9_-]{21}$/,_r=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,br=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Sr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,kr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Cr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tr=/^[A-Za-z0-9_-]*$/,Er=/^https?$/,Pr=/^\+[1-9]\d{6,14}$/,Rr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Or=new RegExp(`^${Rr}$`);function Nr(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const Ar=/^-?\d+$/,Fr=/^-?\d+(?:\.\d+)?$/,Ir=/^(?:true|false)$/i,zr=/^[^A-Z]*$/,Dr=/^[^a-z]*$/,Lr=rn("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Mr={number:"number",bigint:"bigint",object:"date"},Ur=rn("$ZodCheckLessThan",(e,t)=>{Lr.init(e,t);const n=Mr[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$r=rn("$ZodCheckGreaterThan",(e,t)=>{Lr.init(e,t);const n=Mr[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Br=rn("$ZodCheckMultipleOf",(e,t)=>{Lr.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===function(e,t){const n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),qr=rn("$ZodCheckNumberFormat",(e,t)=>{Lr.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Pn[t.format];e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=Ar)}),e._zod.check=s=>{const a=s.value;if(n){if(!Number.isInteger(a))return void s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}a<i&&s.issues.push({origin:"nuLine truncated
// translators: %s is the percentage complete
// translators: %s is the percentage complete
(0,i.__)("Testing - %s%%","redirection"),String(y)),y>=100&&Ta(_)]}),y<100&&(0,l.jsx)(ir,{})]}),y>=100&&_!==wa&&(0,l.jsx)("button",{className:"button button-secondary api-result-retry",onClick:e=>{e.preventDefault(),n(!1),s();const t=Object.keys(d).map(e=>({id:e,url:d[e]}));u(t.filter(e=>!!e&&!!e.url))},children:(0,i.__)("Check Again","redirection")})]}),y>=100&&_!==wa&&(e=>{const t=m(e);let n=(0,i.__)("There are some problems connecting to your REST API. It is not necessary to fix these problems and the plugin is able to work.","redirection");return e===ja&&(n=(0,i.__)("Your REST API is not working and the plugin will not be able to continue until this is fixed.","redirection")),(0,l.jsxs)("div",{className:"api-result-log",children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("strong",{children:(0,i.__)("Summary","redirection")}),": ",n]}),!t&&(0,l.jsx)("p",{children:(0,l.jsx)("button",{className:"button-secondary",onClick:f,children:(0,i.__)("Show Problems","redirection")})})]})})(_),v&&g.map((t,n)=>{return(0,l.jsx)(rr,{item:t,result:(i=r,o=t.value,i&&i[o]?i[o]:{}),routes:d,isCurrent:p===t.value,allowChange:e||!1},n);var i,o})]})}function Pa(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(r&&e[r]&&"ok"===e[r].GET.status&&"ok"===e[r].POST.status)return!0}return!1}function Ra(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(r&&e[r]&&"ok"===e[r].GET.status&&"ok"===e[r].POST.status)return r}return null}function Oa({setStep:e,step:t}){let n=null,r=null,s=null;try{n=new URL(window.Redirectioni10n.api.WP_API_root),r=new URL(window.Redirectioni10n.pluginBaseUrl),s=new URL(window.location.href)}catch(e){}const a=n&&r&&(n.protocol!==r.protocol||n.host!==r.host),c=n&&s&&n.origin!==s.origin,u=de(e=>e.apiTest),d=Pa(u);return(0,o.useEffect)(()=>()=>{const e=Ra(u);null!==e&&window.Redirectioni10n.api.routes[e]&&St.replaceRootURLMiddleware(window.Redirectioni10n.api.routes[e])},[u]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{children:(0,i.__)("REST API","redirection")}),(0,l.jsx)("p",{children:D((0,i.__)("Redirection uses the {{link}}WordPress REST API{{/link}} to communicate with WordPress. This is enabled and working by default. Sometimes the REST API is blocked by:","redirection"),{link:(0,l.jsx)(O,{url:"https://developer.wordpress.org/rest-api/"})})}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,i.__)("A security plugin (e.g Wordfence)","redirection")}),(0,l.jsx)("li",{children:(0,i.__)("A server firewall or other server configuration (e.g OVH)","redirection")}),(0,l.jsx)("li",{children:(0,i.__)("Caching software (e.g Cloudflare)","redirection")}),(0,l.jsx)("li",{children:(0,i.__)("Some other plugin that blocks the REST API","redirection")})]}),(0,l.jsx)("p",{children:D((0,i.__)("If you do experience a problem then please consult your plugin documentation, or try contacting your host support. This is generally {{link}}not a problem caused by Redirection{{/link}}.","redirection"),{link:(0,l.jsx)(O,{url:"https://redirection.me/support/problems/rest-api/"})})}),a&&(0,l.jsxs)("div",{className:"wpl-error",children:[(0,i.__)("You have different URLs configured on your WordPress Settings > General page, which is usually an indication of a misconfiguration, and it can cause problems with the REST API. Please review your settings.","redirection"),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:n?n.protocol+"//"+n.host:"unknown url"})}),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:r?r.protocol+"//"+r.host:"unknown url"})})]}),c&&(0,l.jsxs)("div",{className:"wpl-error",children:[(0,i.__)("This admin page is being loaded from a different origin than your REST API. The browser will block the setup request until both URLs use the same protocol, host, and port.","redirection"),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:s?s.origin:"unknown url"})}),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:n?n.origin:"unknown url"})})]}),(0,l.jsx)(Ea,{allowChange:!1}),(0,l.jsx)("p",{children:(0,i.__)("You will need at least one working REST API to continue.","redirection")}),(0,l.jsx)("div",{className:"wizard-buttons",children:(0,l.jsx)("button",{className:"button-primary button",onClick:()=>e(t+1),disabled:!d,children:(0,i.__)("Finish Setup","redirection")})})]})}function Na(e){return Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Na(e)}function Aa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Na(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Na(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Na(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOLine truncated
// translators: %(complete)d is percentage complete as a number
// translators: %(complete)d is percentage complete as a number
(0,i.sprintf)((0,i.__)("Progress: %(complete)d%%","redirection"),{complete:a})}),(0,l.jsx)(Ua,{percent:a,strokeWidth:4,trailWidth:4,strokeLinecap:"square"}),r&&"ok"===s&&(0,l.jsx)("p",{children:r}),c&&(0,l.jsx)("div",{className:"redirection-database_spinner",children:(0,l.jsx)(ir,{})}),"error"===s&&(0,l.jsx)(Za,{error:r||"",onRetry:d}),"failed"===s&&(0,l.jsx)(Wa,{error:r||"",onRetry:d}),Va(n)&&e]})]})}function Ka({onCancel:e,onComplete:t}){const n=de(e=>e.loadStatus),{mutate:r}=xa({onSuccess:()=>{t&&t()}});return(0,l.jsxs)("div",{className:"redirection-database",children:[(0,l.jsx)("h1",{children:(0,i.__)("Manual Install","redirection")}),(0,l.jsxs)("p",{children:[(0,i.__)("If your site needs special database permissions, or you would rather do it yourself, you can manually run the following SQL.","redirection")," ",(0,i.__)('Click "Finished! 🎉" when finished.',"redirection")]}),(0,l.jsx)("p",{children:(0,l.jsx)(E,{readOnly:!0,cols:120,value:Redirectioni10n.database.manual.join(";\n\n")+";",spellCheck:!1})}),"error"===n&&(0,l.jsxs)("div",{className:"redirection-database_error wpl-error",children:[(0,l.jsx)("h3",{children:(0,i.__)("Database problem","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("The Redirection database does not appear to exist. Have you run the above SQL?","redirection")})]}),(0,l.jsx)("button",{className:"button button-primary",onClick:function(){r({reason:"database",current:Redirectioni10n.database.next})},type:"button",children:(0,i.__)("Finished! 🎉","redirection")})," ",(0,l.jsx)("button",{className:"button button-secondary",onClick:e,type:"button",children:(0,i.__)("Go back","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("If you do not complete the manual install you will be returned here.","redirection")})]})}function Ja({step:e,setStep:t,options:n,setOptions:r}){const{manual:o}=n;return o?(0,l.jsx)(Ka,{onCancel:function(){t(0),r({manual:!1})},onComplete:function(){t(e+1)}}):(0,l.jsx)(Qa,{children:(0,l.jsx)("div",{className:"wizard-buttons",children:(0,l.jsx)("button",{className:"button-primary button",onClick:()=>t(e+1),children:(0,i.__)("Continue","redirection")})})})}const Ya="wordpress-old-slugs";function Xa({setOptions:e,options:t,setStep:n,step:r}){const{importers:o=[Ya]}=t,{data:s=[]}=Vn(),a=s.find(e=>e.id===Ya),c=s.filter(e=>e.id!==Ya);function u(t){const n=o.filter(e=>e!==t.target.name);t.target.checked?e({importers:n.concat(t.target.name)}):e({importers:n})}return(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{children:(0,i.__)("Import Existing Redirects","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("Importing existing redirects from WordPress or other plugins is a good way to get started with Redirection. Check each set of redirects you wish to import.","redirection")}),a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:(0,i.__)("WordPress automatically creates redirects when you change a post URL. Importing these into Redirection will allow you to manage and monitor them.","redirection")}),(0,l.jsx)("ul",{children:(0,l.jsxs)("li",{children:[(0,l.jsx)("input",{id:"wizard-importer-wordpress-old-slugs",type:"checkbox",name:Ya,onChange:u,checked:o.includes(Ya)}),(0,l.jsxs)("label",{htmlFor:"wizard-importer-wordpress-old-slugs",children:[a.name," (",a.total,")"]})]})})]}),c.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:(0,i.__)("The following plugins have been detected.","redirection")}),(0,l.jsx)("ul",{children:c.map(e=>{const t=`wizard-importer-${e.id}`;return(0,l.jsxs)("li",{children:[(0,l.jsx)("input",{id:t,type:"checkbox",name:e.id,onChange:u,checked:o.includes(e.id)}),(0,l.jsxs)("label",{htmlFor:t,children:[e.name," (",e.total,")"]})]},e.id)})})]}),(0,l.jsxs)("div",{className:"wizard-buttons",children:[(0,l.jsx)("button",{className:"button-primary button",onClick:()=>n(r+1),children:(0,i.__)("Continue","redirection")})," ",(0,l.jsx)("button",{className:"button",onClick:()=>n(r-1),children:(0,i.__)("Go back","redirection")})]})]})}function el({step:e,setStep:t,options:n}){const r=Qn(),{mutate:s}=r;let a="idle";r.isPending?a="loading":r.isSuccess?a="success":r.isError&&(a="error");const c=(0,o.useCallback)(()=>{s(n.importers)},[s,n.importers]);return(0,o.useEffect)(()=>{c()},[c]),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{children:(0,i.__)("Import Existing Redirects","redirection")}),"loading"===a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:(0,i.__)("Please wait, importing.","redirection")}),(0,l.jsx)("div",{className:"loader-wrapper loader-textarea",children:(0,l.jsx)("div",{className:"wpl-placeholder__loading"})})]}),("success"===a||"error"===a)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:"success"===a?(0,i.__)("Import finished.","redirection"):(0,i.__)("Importing failed.","redirection")}),(0,l.jsxs)("div",{className:"wizard-buttons",children:["error"===a&&(0,l.jsx)("button",{className:"button-secondary button",onClick:c,children:(0,i.__)("Retry","redirection")}),(0,l.jsx)("button",{className:"buttLine truncated
// translators: %(current)s is the current database version, %(latest)s is the latest database version
// translators: %(current)s is the current database version, %(latest)s is the latest database version
(0,i.__)("Redirection stores data in your database and sometimes this needs upgrading. Your database is at version {{strong}}%(current)s{{/strong}} and the latest is {{strong}}%(latest)s{{/strong}}.","redirection"),{current:window.Redirectioni10n.database.current,latest:window.Redirectioni10n.database.next}),{strong:(0,l.jsx)("strong",{})})})})}function ul(){const{mutate:e}=xa();function t(){e({reason:"database",current:window.Redirectioni10n.database.next})}return 0===window.Redirectioni10n.database.manual.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:(0,i.__)("Your site already has the latest SQL.","redirection")+" "+(0,i.__)('Click "Complete Upgrade" when finished.',"redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("button",{className:"button-primary",onClick:t,children:(0,i.__)("Complete Upgrade","redirection")})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{children:[(0,i.__)("If your site needs special database permissions, or you would rather do it yourself, you can manually run the following SQL.")," ",(0,i.__)('Click "Complete Upgrade" when finished.',"redirection")]}),(0,l.jsx)("p",{children:(0,l.jsx)(E,{readOnly:!0,cols:120,value:window.Redirectioni10n.database.manual.join(";\n")+";",spellCheck:!1})}),(0,l.jsx)("p",{children:(0,l.jsx)("button",{className:"button-primary",onClick:t,children:(0,i.__)("Complete Upgrade","redirection")})})]})}function dl({onShowUpgrade:e}){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:(0,i.__)('Click the "Upgrade Database" button to automatically upgrade the database.',"redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("input",{className:"button-primary",type:"submit",value:(0,i.__)("Upgrade Database","redirection"),onClick:e})})]})}function pl(){const e=de(e=>e.database.reason),t=de(e=>e.database.status),n=de(e=>e.database.result),{mutate:r}=ba();return(0,l.jsxs)(l.Fragment,{children:["error"===n&&(0,l.jsx)(W,{details:Q(),errors:e,renderDebug:pe,links:V(),locale:"redirection",children:(0,i.__)("Something went wrong when upgrading Redirection.","redirection")}),(0,l.jsx)("div",{className:"wizard-wrapper",children:(0,l.jsxs)("div",{className:"wizard",children:[(0,l.jsx)(Qa,{}),ll(t)&&(0,l.jsx)("button",{className:"button button-primary",onClick:function(){r()},children:(0,i.__)("Finished! 🎉","redirection")})]})})]})}function hl({onShowUpgrade:e}){const[t,n]=(0,o.useState)(!1);function r(e){e.preventDefault(),n(!t)}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:"wp-heading-inline",children:(0,i.__)("Upgrade Required","redirection")}),(0,l.jsxs)("div",{className:"wpl-error",children:[(0,l.jsx)("h3",{children:(0,i.__)("Redirection database needs upgrading","redirection")}),cl(),(0,l.jsx)("p",{children:D((0,i.__)("Please make a backup of your Redirection data: {{download}}downloading a backup{{/download}}. If you experience any issues you can import this back into Redirection.","redirection"),{download:(0,l.jsx)(O,{url:al("all","json")}),import:(0,l.jsx)(O,{url:"https://redirection.me/support/import-export-redirects/"})})}),t?(0,l.jsx)(ul,{}):(0,l.jsx)(dl,{onShowUpgrade:e})]}),(0,l.jsxs)("div",{className:"database-switch",children:[!t&&(0,l.jsx)("button",{type:"button",onClick:r,children:(0,i.__)("Manual Upgrade","redirection")}),t&&(0,l.jsx)("button",{type:"button",onClick:r,children:(0,i.__)("Automatic Upgrade","redirection")})]})]})}function fl({showDatabase:e,onShowUpgrade:t}){return e?(0,l.jsx)(pl,{}):(0,l.jsx)(hl,{onShowUpgrade:t})}const ml=({item:e,isCurrent:t,onClick:n,isLast:r,urlBase:i})=>{const o=i+(""===e.value?"":"&sub="+e.value);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{className:t?"current":"",href:o,onClick:t=>{t.preventDefault(),n(e.value,o)},children:e.name})," ",!r&&"|"," "]})},gl=(e,t,n)=>e===t.value||e===n&&""===t.value,yl=({onChangePage:e,menu:t,home:n,urlBase:r,currentPage:i})=>t.length<2?null:(0,l.jsx)("div",{className:"subsubsub-container",children:(0,l.jsx)("ul",{className:"subsubsub",children:t.map((o,s)=>(0,l.jsx)(ml,{item:o,isCurrent:gl(i,o,n),isLast:s===t.length-1,onClick:e,urlBase:r},s))})});let _l=!1;function vl({notices:e}){const t=e[e.length-1],n=t?.message??"";return(0,l.jsx)(l.Fragment,{children:n+(e.length>1?" ("+e.length+")":"")})}const bl=function({notices:e,onClear:t,snackBarViewText:n}){const[r,i]=(0,o.useState)(!1);if((0,o.useEffect)(()=>(e.length>0&&(i(!1),_l&&clearTimeout(_l),_l=setTimeout(()=>i(!0),5e3)),()=>{_l&&clearTimeout(_l)}),[e]),0===e.length)return null;function s(){r?i(!1):t()}const a=h("notice","notice-info","wpl-notice",r&&"wpl-notice_shrunk");return(0,l.jsxs)("div",{className:a,onClick:s,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s())},role:"button",tabIndex:0,children:[(0,l.jsx)("div",{className:"closer",children:(0,l.jsx)("span",{className:"dashicons dashicons-yes"})}),(0,l.jsx)("p",{children:r?(0,l.jsx)("span",{className:"dashicons dashicons-warning",title:n}):(0,l.jsx)(vl,{notices:e})})]})};function xl(e,t){if(eLine truncated
// translators: %(type)s is the post type name (e.g. post, page)
// translators: %(type)s is the post type name (e.g. post, page)
(0,i.__)("Monitor changes to %(type)s","redirection"),{type:s.toLowerCase()})})]},o))}return r}function Mu(e,t){return 0===parseInt(e.toString(),10)&&t.length>0?t.length>0&&t[0]?Array.isArray(t[0].value)?t[0].value[0]?.value||0:t[0].value:0:e}const Uu=function(e){const{onChange:t,settings:n,groups:r,getLink:o,postTypes:s}=e,{associated_redirect:a,monitor_post:c,monitor_types:u}=n,d=u.length>0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(or,{title:(0,i.__)("URL Monitor","redirection")+":",url:o("options","monitor"),children:Lu(s,u,function(e){const n=e.target.name.replace("monitor_type_",""),i=u.filter(e=>e!==n);e.target.checked&&i.push(n),t({monitor_types:i,monitor_post:i.length>0?Mu(c,r):0,associated_redirect:i.length>0?a:""})})}),d&&(0,l.jsxs)(or,{title:(0,i.__)("URL Monitor Changes","redirection")+":",url:o("options","monitor"),children:[(0,l.jsx)(cr,{items:r,name:"monitor_post",value:String(c),onChange:t})," ",(0,i.__)("Save changes to this group","redirection"),(0,l.jsxs)("p",{children:[(0,l.jsx)("input",{type:"text",className:"regular-text",name:"associated_redirect",onChange:t,placeholder:(0,i.__)('For example "/amp"',"redirection"),value:a})," ",(0,i.__)("Create associated redirect (added to end of URL)","redirection")]})]})]})},$u=function(e){const{settings:t,onChange:n,getLink:r,groups:o,postTypes:s}=e,{flag_case:a,flag_trailing:c,flag_query:u,auto_target:d,redirect_cache:p,cache_key:h}=t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("tr",{className:"redirect-option__row",children:(0,l.jsx)("th",{colSpan:2,children:(0,l.jsx)("h2",{className:"title",children:(0,i.__)("URL","redirection")})})}),(0,l.jsx)(Uu,{settings:t,onChange:n,groups:o,getLink:r,postTypes:s}),(0,l.jsxs)(or,{title:(0,i.__)("Default URL settings","redirection")+":",url:r("options","urlsettings"),children:[(0,l.jsx)("p",{children:(0,i.__)("Applies to all redirections unless you configure them otherwise.","redirection")}),(0,l.jsxs)("p",{children:[(0,l.jsx)("input",{type:"checkbox",id:"url-options-flag-case",name:"flag_case",onChange:n,checked:a}),(0,l.jsx)("label",{htmlFor:"url-options-flag-case",children:D((0,i.__)("Case insensitive matches (i.e. {{code}}/Exciting-Post{{/code}} will match {{code}}/exciting-post{{/code}})","redirection"),{code:(0,l.jsx)("code",{})})})]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("input",{type:"checkbox",id:"url-options-flag-trailing",name:"flag_trailing",onChange:n,checked:c}),(0,l.jsx)("label",{htmlFor:"url-options-flag-trailing",children:D((0,i.__)("Ignore trailing slashes (i.e. {{code}}/exciting-post/{{/code}} will match {{code}}/exciting-post{{/code}})","redirection"),{code:(0,l.jsx)("code",{})})})]})]}),(0,l.jsxs)(or,{title:(0,i.__)("Default query matching","redirection")+":",url:r("options","querysettings"),children:[(0,l.jsx)("p",{children:(0,i.__)("Applies to all redirections unless you configure them otherwise.","redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)(cr,{items:[{value:"exact",label:(0,i.__)("Exact match in any order","redirection")},{value:"ignore",label:(0,i.__)("Ignore all query parameters","redirection")},{value:"pass",label:(0,i.__)("Ignore and pass all query parameters","redirection")}],name:"flag_query",value:u,onChange:n})}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,i.__)("Exact - matches the query parameters exactly defined in your source, in any order","redirection")}),(0,l.jsx)("li",{children:(0,i.__)("Ignore - as exact, but ignores any query parameters not in your source","redirection")}),(0,l.jsx)("li",{children:(0,i.__)("Pass - as ignore, but also copies the query parameters to the target","redirection")})]})]}),(0,l.jsxs)(or,{title:(0,i.__)("Auto-generate URL","redirection")+":",url:r("options","autogenerate"),children:[(0,l.jsx)("input",{className:"regular-text",type:"text",value:d,name:"auto_target",onChange:n}),(0,l.jsx)("br",{}),(0,l.jsx)("span",{className:"sub",children:D((0,i.__)("Used to auto-generate a URL if no URL is given. Use the special tags {{code}}$dec${{/code}} or {{code}}$hex${{/code}} to insert a unique ID instead","redirection"),{code:(0,l.jsx)("code",{})})})]}),(0,l.jsxs)(or,{title:(0,i.__)("HTTP Cache Header","redirection"),url:r("options","cache"),children:[(0,l.jsx)(cr,{items:[{value:-1,label:(0,i.__)("Never cache","redirection")},{value:1,label:(0,i.__)("An hour","redirection")},{value:24,label:(0,i.__)("A day","redirection")},{value:168,label:(0,i.__)("A week","redirection")},{value:0,label:(0,i.__)("Forever","redirection")}],name:"redirect_cache",value:String(p),onChange:n})," "," ",(0,l.jsx)("span",{className:"sub",children:(0,i.__)('How long to cache redirected 301 URLs (via "Expires" HTTP header)',"redirection")})]}),(0,l.jsxs)(or,{title:(0,i.__)("Redirect Caching","redirection"),url:r("options","cache"),children:[(0,l.jsx)("input",{id:"url-options-cache-key",type:"checkbox",name:"cache_key",onChange:n,checked:0!==h&&!1!==h})," ",(0,l.jsx)("label",{htmlFor:"url-options-cache-key",children:(0,l.jsx)("span",{className:"Line truncated
// translators: %1$s is the name of the agent that performed the redirect
// translators: %1$s is the name of the agent that performed the redirect
(0,i.__)("Redirected by %1$s. {{support}}What does this mean?{{/support}}.","redirection"),e.value),{support:(0,l.jsx)(O,{url:"https://redirection.me/support/problems/redirected-by-another-agent/"})})}):(0,l.jsx)(l.Fragment,{children:D((0,i.__)("Redirected by an unknown agent. {{support}}What does this mean?{{/support}}.","redirection"),{support:(0,l.jsx)(O,{url:"https://redirection.me/support/problems/redirected-by-another-agent/"})})})}return e>=200&&e<300?(0,l.jsx)(l.Fragment,{children:(0,i.__)("Page was loaded.","redirection")}):null}function gd({step:e,isFirst:t,isLast:n,isMatch:r}){const{request:i,status:o,statusMessage:s,headers:a}=e,c=100*Math.floor(o/100);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"redirection-httpstep",children:[(0,l.jsx)("div",{className:`redirection-httpstep__status redirection-httpstep__${c>0?c:"500"}`,children:parseInt(o.toString(),10)>0?(0,l.jsx)(O,{url:`https://redirect.li/http/status/code/${o}/`,title:s,children:o}):"Fail"}),(0,l.jsxs)("div",{className:"redirection-httpstep__details",children:[(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:i.url})}),(0,l.jsx)("p",{children:(0,l.jsx)(md,{status:parseInt(o.toString(),10),statusMessage:s,headers:a,isFirst:t,isMatch:r})})]})]}),!n&&(0,l.jsx)("div",{children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]})}function yd(e,t,n,r){if(!Array.isArray(e)||!n||!r)return!1;const i=e.find(e=>"x-redirect-agent"===e.name||"x-redirect-by"===e.name),o=e.find(e=>"location"===e.name);if(i&&o){if("object"==typeof n&&void 0===n.url_from)return"redirection"===i.value.toLowerCase()&&r===t&&hd(o.value)===fd(n);if("object"==typeof n)return"redirection"===i.value.toLowerCase()&&r===t&&hd(o.value,n.server)===fd(n)}return!1}const _d=function({desiredTarget:e,desiredCode:t,http:n,url:r}){const{steps:o}=n;return!n||"error"!==n.status&&"fail"!==n.status||0!==o.length?(0,l.jsxs)("div",{children:[o.map((n,r)=>(0,l.jsx)(gd,{step:n,isFirst:0===r,isLast:r===o.length-1,isMatch:yd(n.headers,n.status,e,t)},r)),(0,l.jsxs)("p",{children:[e&&t&&(0,l.jsxs)(l.Fragment,{children:[D((0,i.__)("If this is not expected then this {{support}}support page{{/support}} may help.","redirection"),{support:(0,l.jsx)(O,{url:"https://redirection.me/support/problems/url-not-redirecting/"})})," "]}),(0,i.__)("If your browser is behaving differently then you should clear your browser cache.","redirection")]}),(0,l.jsx)("p",{children:(0,l.jsx)(O,{url:`https://redirect.li/http/?url=${encodeURIComponent(r)}`,className:"button",children:(0,i.__)("View full redirect.li results.","redirection")})})]}):(0,l.jsx)("div",{children:(0,i.__)("Unable to check that URL. It may not be valid or accessible.","redirection")})};function vd({error:e}){return(0,l.jsxs)("div",{className:"wpl-modal_error",children:[(0,l.jsx)("h2",{children:(0,i.__)("Error","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("Something went wrong obtaining this information. It may work in the future.","redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:e})})]})}function bd({url:e,desiredCode:t=0,desiredTarget:n=null}){const{data:r,isLoading:o,isError:s,error:a}=function(e,t){return pt({queryKey:Wn.info.http(e),queryFn:async()=>await St(tn(e)),enabled:!!e,staleTime:0,...t})}(e,{enabled:!!e}),c=s&&a&&a.message||"";if(!o&&!s&&!r)return null;const u=h({"redirection-httpcheck":!0,"wpl-modal_loading":o,"redirection-httpcheck_small":s});return(0,l.jsxs)("div",{className:u,children:[o&&(0,l.jsx)(ir,{}),s&&c&&(0,l.jsx)(vd,{error:c}),!o&&!s&&r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{children:D((0,i.sprintf)(
// translators: %s is the URL being checked
// translators: %s is the URL being checked
(0,i.__)("Check redirect for: {{code}}%s{{/code}}","redirection"),e),{code:(0,l.jsx)("code",{})})}),(0,l.jsx)(_d,{http:r,url:e,desiredCode:t,desiredTarget:n})]})]})}const xd=function(){const[e,t]=(0,o.useState)(""),[n,r]=(0,o.useState)(""),s=n.length>0;return(0,l.jsxs)("form",{className:"http-tester",onSubmit:function(t){t.preventDefault(),e.length>0&&r(e)},children:[(0,l.jsx)("h3",{children:(0,i.__)("Redirect Tester","redirection")}),(0,l.jsx)("p",{children:D((0,i.__)("Sometimes your browser can cache a URL, making it hard to know if it's working as expected. Use this service from {{link}}redirect.li{{/link}} to get accurate results.","redirection"),{link:(0,l.jsx)(O,{url:"https://redirect.li"})})}),(0,l.jsxs)("div",{className:"redirection-httptest__input",children:[(0,l.jsxs)("span",{children:[(0,i.__)("URL","redirection"),":"]}),(0,l.jsx)("input",{className:"regular-text",type:"text",value:e,onChange:e=>t(e.target.value),placeholder:(0,i.__)("Enter full URL, including http:// or https://","redirection")}),(0,l.jsx)("input",{type:"submit",className:"button-secondary",disabled:0===e.length,value:(0,i.__)("Check","redirection")})]}),s&&(0,l.jsx)("div",{className:"redirection-httptest",children:(0,l.jsx)(bd,{url:n})})]})},wd=()=>(0,l.jsxs)("form",{action:Redirectioni10n.pluginRoot+"&sub=support",method:"POST",children:[(0,l.jsx)("input",{type:"hidden",name:"_wpnonce",value:St.nonceMiddleware.nonce}),(0,l.jsx)("input",{type:"hidden",name:"action",value:"fixit"}),(0,l.jsx)("p",{children:(0,i.__)("If the magic button doesn't work then you should read the error and see if you can fix it manually, otherwise follow the 'Need help' section below.","redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("input",{type:"submit",className:"button-primary",value:(0,i.__)("⚡️ Magic fix ⚡️","redirection")})})]}),jd=e=>{const{item:t}=e;return(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:t.name}),(0,l.jsxs)("td",{children:[(0,l.jsx)("span",{className:"plugin-status-"+t.status,children:"good"===t.status?(0,i.__)("Good","redirection"):(0,i.__)("Problem","redirection")})," ",t.message]})]})},Sd=e=>{const{status:t}=e,n=t.filter(e=>"good"!==e.status);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("table",{className:"plugin-status",children:(0,l.jsx)("tbody",{children:t.map((e,t)=>(0,l.jsx)(jd,{item:e},t))})}),n.length>0&&(0,l.jsx)(wd,{})]})},kd=function(e){const{debug:t}=e,[n,r]=(0,o.useState)(t.database.current),{mutate:s}=xa({onSuccess:()=>{window.location.reload()}}),{ip_header:a,database:c}=t;return(0,l.jsx)("table",{className:"plugin-status",children:(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:(0,i.__)("Database version","redirection")}),(0,l.jsxs)("td",{children:[(0,l.jsx)(cr,{items:[{value:"2.3.1",label:"2.3.1"},{value:"2.3.2",label:"2.3.2"},{value:"2.4",label:"2.4"},{value:"4.0",label:"4.0"},{value:"4.1",label:"4.1"},{value:"4.2",label:"4.2"}],value:n,name:"database_version",onChange:function(e){r(e.target.value)}})," "," ",n!==c.current&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("strong",{children:(0,i.__)("Do not change unless advised to do so!","redirection")})," "," ",(0,l.jsx)("button",{className:"button-secondary button",onClick:function(e){e.preventDefault(),s({reason:"database",current:n})},children:(0,i.__)("Save","redirection")})]})]})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:(0,i.__)("IP Headers","redirection")}),(0,l.jsx)("td",{children:Object.keys(a).filter(e=>a[e]).map((e,t)=>(0,l.jsxs)("code",{children:[e," = ",a[e]?a[e]:"-"," "]},t))})]})]})})},Cd=function(){const e=de(e=>e.pluginStatus.status),t=de(e=>e.pluginStatus.debug);return pt({queryKey:Wn.settings.status(),queryFn:async()=>{try{const e=await St(Ht());return de.getState().setPluginStatus(e),e}catch(e){throw Hn(e)}}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{children:(0,i.__)("WordPress REST API","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("Redirection communicates with WordPress through the WordPress REST API. This is a standard part of WordPress, and you will experience problems if you cannot use it.","redirection")}),(0,l.jsx)(Ea,{}),(0,l.jsx)("h2",{children:(0,i.__)("Plugin Status","redirection")}),e.length>0&&(0,l.jsx)(Sd,{status:e}),0===e.length&&(0,l.jsx)("div",{className:"placeholder-inline",children:(0,l.jsx)("div",{className:"wpl-placeholder__loading"})}),(0,l.jsx)("h2",{children:(0,i.__)("Plugin Debug","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("This information is provided for debugging purposes. Be careful making any changes.","redirection")}),t&&(0,l.jsx)(kd,{debug:t}),!t&&(0,l.jsx)("div",{className:"placeholder-inline",children:(0,l.jsx)("div",{className:"wpl-placeholder__loading"})})]})},Td=function(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Cd,{}),(0,l.jsx)(xd,{}),(0,l.jsx)(pd,{})]})};function Ed(e,t){if(!1===e)return!1;const n=function(e){try{let t=e;"http:"!==e.slice(0,5)&&"https:"!==e.slice(0,6)&&(t=document.location.protocol+"//"+e);Line truncated
// translators: %(site)s is HTTP site URL, %(siteHTTPS)s is HTTPS site URL
// translators: %(site)s is HTTP site URL, %(siteHTTPS)s is HTTPS site URL
(0,i.__)("Force a redirect from HTTP to HTTPS - {{code}}%(site)s{{/code}} ⇒ {{code}}%(siteHTTPS)s{{/code}}","redirection"),{site:n.replace("https","http"),siteHTTPS:n.replace("http:","https:")}),{code:(0,l.jsx)("code",{})})})]}),e&&(0,l.jsx)("div",{className:"inline-notice inline-warning",children:(0,l.jsx)("p",{children:D(
// translators: %(strong)s is the warning title
// translators: %(strong)s is the warning title
(0,i.__)("{{strong}}Warning{{/strong}}: ensure your HTTPS is working before forcing a redirect.","redirection"),{strong:(0,l.jsx)("strong",{})})})}),(0,l.jsxs)("p",{children:[(0,i.__)("Preferred domain","redirection"),":"]}),(a=n,[{
// translators: %(site)s is the site domain
label:D((0,i.sprintf)(
// translators: %(site)s is the site domain
// translators: %(site)s is the site domain
(0,i.__)("Don't set a preferred domain - {{code}}%(site)s{{/code}}","redirection"),{site:a}),{code:(0,l.jsx)("code",{})}),value:""},{
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
label:D((0,i.sprintf)(
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
(0,i.__)("Remove www from domain - {{code}}%(siteWWW)s{{/code}} ⇒ {{code}}%(site)s{{/code}}","redirection"),{site:a.replace("www.",""),siteWWW:a.replace("www.","").replace("://","://www.")}),{code:(0,l.jsx)("code",{})}),value:"nowww"},{
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
label:D((0,i.sprintf)(
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
(0,i.__)("Add www to domain - {{code}}%(site)s{{/code}} ⇒ {{code}}%(siteWWW)s{{/code}}","redirection"),{site:a.replace("www.",""),siteWWW:a.replace("www.","").replace("://","://www.")}),{code:(0,l.jsx)("code",{})}),value:"www"}]).map(e=>{const n=`canonical-preferred-${e.value||"none"}`;return(0,l.jsxs)("p",{children:[(0,l.jsx)("input",{id:n,type:"radio",name:"preferred_domain",value:e.value,onChange:s,checked:e.value===t})," ",(0,l.jsx)("label",{htmlFor:n,children:e.label})]},e.value)}),o&&(0,l.jsx)("div",{className:"inline-notice inline-error",children:(0,l.jsx)("p",{children:D((0,i.sprintf)(
// translators: %(current)s is current site URL, %(site)s is recommended canonical URL
// translators: %(current)s is current site URL, %(site)s is recommended canonical URL
(0,i.__)("You should update your site URL to match your canonical settings: {{code}}%(current)s{{/code}} ⇒ {{code}}%(site)s{{/code}}","redirection"),{current:n,site:Fd(n,e,t)}),{code:(0,l.jsx)("code",{})})})})]});var a},zd=e=>e?.ownerDocument??document,Dd=e=>e&&"window"in e&&e.window===e?e:zd(e).defaultView||window;function Ld(e,t){return!(!t||!e)&&e.contains(t)}const Md=(e=document)=>e.activeElement;function Ud(e){return e.target}const $d="undefined"!=typeof document?o.useLayoutEffect:()=>{};function Bd(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function qd(e){let t=(0,o.useRef)({isFocused:!1,observer:null});return $d(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,o.useCallback)(n=>{let r=Ud(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r,i=r=>{if(t.current.isFocused=!1,n.disabled){let t=Bd(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===Md()?null:Md();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function Hd(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Wd(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function Zd(e){let t=null;return()=>(null==t&&(t=e()),t)}const Gd=Zd(function(){return Wd(/^Mac/i)}),Vd=Zd(function(){return Wd(/^iPhone/i)}),Qd=Zd(function(){return Wd(/^iPad/i)||Gd()&&navigator.maxTouchPoints>1}),Kd=Zd(function(){return Vd()||Qd()}),Jd=(Zd(function(){return Gd()||Kd()}),Zd(function(){return Hd(/AppleWebKit/i)&&!Yd()})),Yd=Zd(function(){return Hd(/Chrome/i)}),Xd=Zd(function(){return Hd(/Android/i)}),ep=Zd(function(){return Hd(/Firefox/i)});let tp=null;function np(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}=t;ep()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(Gd()?r=!0:i=!0);let a=Jd()&&Gd()&&!Qd()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});np.isOpening=n,function(e){if(function(){if(null==tp){tp=!1;try{document.createElement("div").focus({get preventScroll(){return tp=!0,!0}})}catch{}}return tp}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(a),np.isOpening=!1}np.isOpening=!1;let rp=null,ip="keyboard";const op=new Set;let sp=new Map,ap=!1,lp=!1;const cp={Tab:!0,Escape:!0};function up(e,t){for(let n of op)n(e,t)}function dp(e){ap=!0,!np.isOpening&&function(e){return!(e.metaKey||!Gd()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(rp="keyboard",ip="keyboard",up("keyboard",e))}function pp(e){rp="pointer",ip="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(ap=!0,up("pointer",e))}function hp(e){var t;!np.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(Xd()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ap=!0,rp="virtual",ip="virtual")}function fp(e){let t=Dd(Ud(e)),n=zd(Ud(e));Ud(e)!==t&&Ud(e)!==n&&e.isTrusted&&(ap||lp||(rp="virtual",ip="virtual",up("virtual",e)),ap=!1,lp=!1)}function mp(){ap=!1,lp=!0}function gp(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=Dd(e),n=zd(e);if(sp.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ap=!0,r.apply(this,arguments)},n.addEventListener("keydown",dp,!0),n.addEventListener("keyup",dp,!0),n.addEventListener("click",hp,!0),t.addEventListener("focus",fp,!0),t.addEventListener("blur",mp,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",pp,!0),n.addEventListener("pointermove",pp,!0),n.addEventListener("pointerup",pp,!0)),t.addEventListener("beforeunload",()=>{yp(e)},{once:!0}),sp.set(t,{focus:r})}const yp=(e,t)=>{const n=Dd(e)Line truncated
// translators: %s is the total number of pages
// translators: %s is the total number of pages
(0,i.__)("of %s","redirection"),new Intl.NumberFormat(window.Redirectioni10n.locale).format(d))})]}),(0,l.jsx)(Jy,{title:(0,i.__)("Next page","redirection"),button:"›",className:"next-page",disabled:t>=d-1,onClick:()=>s(t+1)}),(0,l.jsx)(Jy,{title:(0,i.__)("Last page","redirection"),button:"»",className:"last-page",disabled:t>=d-1,onClick:()=>s(d-1)})]})},Xy=function(e){const{total:t,perPage:n,page:r,rowCount:o,onChangePage:s,selected:a,onSelectAll:c,isEverything:u}=e,d=h({"tablenav-pages":!0});return(0,l.jsxs)("div",{className:d,children:[(0,l.jsxs)("span",{className:h("displaying-num",u?"displaying-num-all":null),children:[(0===a||!u&&(a<o||t<=n))&&(0,i.sprintf)(
// translators: %s is the number of items
// translators: %s is the number of items
(0,i._n)("%s item","%s items",t,"redirection"),new Intl.NumberFormat(window.Redirectioni10n.locale).format(t)),a>0&&a>=o&&t>n&&!u&&D((0,i.sprintf)(
// translators: 1: number of selected items, 2: total number of items
// translators: 1: number of selected items, 2: total number of items
(0,i.__)("%1$d of %2$d selected. {{all}}Select All.{{/all}}","redirection"),a,t),{all:(0,l.jsx)("button",{type:"button",onClick:function(){c(!0)}})}),u&&D((0,i.sprintf)(
// translators: 1: number of selected items, 2: total number of items
// translators: 1: number of selected items, 2: total number of items
(0,i.__)("%1$d of %2$d selected. {{all}}Clear All.{{/all}}","redirection"),a,t),{all:(0,l.jsx)("button",{type:"button",onClick:function(){c(!1)}})})]}),(0,l.jsx)("span",{className:"pagination-links",children:(0,l.jsx)(Yy,{onChangePage:s,total:t,perPage:n,page:r},r)})]})},e_=function(e){const{total:t,rowCount:n,table:r,children:i=null,onChangePage:o,disabled:s,className:a,onSelectAll:c}=e;return(0,l.jsxs)("div",{className:h("tablenav",a),children:[(0,l.jsx)("div",{className:"redirect-table__actions",children:i}),t>0&&(0,l.jsx)(Xy,{perPage:r.perPage,page:r.page,total:t,rowCount:n,onChangePage:o,onSelectAll:c,disabled:s,selected:r.selectAll?t:r.selected.length,isEverything:r.selectAll})]})},t_=({children:e})=>(0,l.jsx)("div",{className:"alignleft actions",children:e}),n_=function({selected:e,options:t,isEnabled:n,onGroup:r}){const[s,a]=(0,o.useState)(e);return(0,l.jsxs)("div",{className:"alignleft actions",children:[(0,l.jsx)(cr,{items:t,value:s,name:"filter",onChange:e=>{a(e.target.value)},disabled:!n}),(0,l.jsx)("button",{className:"button",onClick:()=>{r(s)},disabled:!n,children:(0,i.__)("Apply","redirection")})]})};function r_(e,t){return e.options.find(e=>e.value===t)}function i_(e,t){const n=[];return Object.keys(e).forEach(r=>{const i=t.find(e=>e.value===r);if(i){const t=e[r];t&&i.options.find(e=>e.value===t)&&n.push(t)}}),n}const o_=function(e){const{table:t,disabled:n,groupOptions:r,filterOptions:o,onGroup:s,onFilter:a}=e;return(0,l.jsxs)(l.Fragment,{children:[r.length>0&&(0,l.jsx)(n_,{selected:t.groupBy?t.groupBy:"",options:r,isEnabled:!n,onGroup:s},t.groupBy),o.length>0&&(0,l.jsx)(t_,{children:(0,l.jsx)(Fu,{options:o,selected:i_(t.filterBy,o),onChange:function(e){const t={};if(Array.isArray(e)){for(let n=0;n<e.length;n++){const r=e[n];if(r){const e=o.find(e=>r_(e,r));e&&(t[e.value]=r)}}a(t)}},title:(0,i.__)("Filters","redirection"),disabled:n,multiple:!0,badges:!0})})]})},s_=function(e){const{bulk:t,disabled:n,onBulk:r}=e,[s,a]=(0,o.useState)("-1");return(0,l.jsxs)("div",{className:"alignleft actions bulkactions",children:[(0,l.jsxs)("select",{name:"action",value:s,disabled:n,onChange:e=>a(e.target.value),children:[(0,l.jsx)("option",{value:"-1",children:(0,i.__)("Bulk Actions","redirection")}),t.map(e=>(0,l.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,l.jsx)("button",{type:"button",className:"button action",disabled:n||-1===parseInt(s,10),onClick:function(){-1!==parseInt(s,10)&&(r(s),a("-1"))},children:(0,i.__)("Apply","redirection")})]})};function a_(e,t){if("custom"===e)return(0,i.__)("Custom Display","redirection");for(let n=0;n<t.length;n++){const r=t[n]?.options.find(t=>t.value===e);if(r)return r.label}return t[0]?.label||""}const l_=function(e){const{disabled:t,predefinedGroups:n,customOptions:r,table:o,setDisplay:s,validation:a}=e,{displayType:c,displaySelected:u}=o,d=[{label:(0,i.__)("Pre-defined","redirection"),value:"pre",options:n},{label:(0,i.__)("Custom","redirection"),value:"custom",options:r}];return(0,l.jsx)(Fu,{className:"redirect-table-display__filter",options:d,selected:u.concat([c]),onChange:function(e){if(!Array.isArray(e))return;const t=u.concat([c]),n=e.filter(e=>!t.includes(e));if(n.length>0){const e=d[0]?.options?.find(e=>e.value===n[0]);if(e)return void s(e.value,e.grouping)}const i=e.filter(e=>{if(e===c)return!1;const t=d[0]?.options.find(t=>t.value===e);return!t&&r.find(t=>t.value===e)});s("custom",a?a(i):i)},title:a_(c,d),disabled:t})};function c_(e,t){if(e){const n=e.find(e=>t[e.name]);return n&&t[n.name]||""}return""}const u_=function({table:e,onSearch:t,searchTypes:n,selected:r,disabled:i=!1,name:s=""}){const a=n?.find(e=>r[e.name]),c=c_(n,r),u=a?a.name:n?.[0]?.name||"",[d,p]=(0,o.useState)(c),[h,f]=(0,o.useState)(u),[m,g]=(0,o.useState)(c);(0,o.useEffect)(()=>{const e=c_(n,r);if(e!==m){const t=n?.find(e=>r[e.name]),i=t?t.name:n?.[0]?.name||"";g(e),p(e),f(i)}},[n,r,m]);const y=i||""===d&&""===e.filter,_=n?n.map(e=>({value:e.name,label:e.title})):[],v=n?.find(e=>e.name===h),b=v?v.title:"";return(0,l.jsxs)("form",{onSubmit:e=>{e?.preventDefault(),t(d,h)},className:"redirect-searchbox",children:[(0,l.jsx)("input",{type:"search",name:"s",value:d,onChange:e=>{p(e.target.value)}}),n&&(0,l.jsx)(Xg,{options:_,disabled:i,title:b,onSelect:e=>{f(e),t(d,e)},selected:h}),!n&&(0,l.jsx)("input",{type:"submit",className:"button",value:s,disabled:y})]})},d_=function(e){const{disabled:t,filterOptions:n,searchOptions:r,predefinedGroups:i,table:o,onSetDisplay:s,onFilter:a,validateDisplay:c}=e;return(0,l.jsxs)("div",{className:"redirect-table-display tablenav",children:[(0,l.jsx)(l_,{disabled:t,customOptions:n,predefinedGroups:i,table:o,setDisplay:s,...c?{validation:c}:{}}),(0,l.jsx)(u_,{disabled:t,table:o,onSearch:function(e,t){const n={...o.filterBy};r.map(e=>delete n[e.name]),e&&(n[t]=e),a(n)},selected:o.filterBy,searchTypes:r})]})},p_=function(e){const{logOptions:t,logActions:n,table:r,total:i,rows:o,getRow:s,getRowActions:a,renderTableActions:c,status:u,saving:d}=e,{dispLine truncated
// translators: %(server)s is the domain name
// translators: %(server)s is the domain name
(0,i.__)("This will be converted to a server redirect for the domain {{code}}%(server)s{{/code}}.","redirection"),{server:e.hostname}),{code:(0,l.jsx)("code",{})})}))}catch(e){}var p;"http"!==t.slice(0,4)&&"/"!==t.slice(0,1)&&t.length>0&&!1===n&&!t.includes("[source]")&&o.push(D((0,i.__)("The source URL should probably start with a {{code}}/{{/code}}","redirection"),{code:(0,l.jsx)("code",{})})),null===(p=t).match(/[\*\\\(\)\^\$]/)&&!p.includes(".?")||!1!==n||o.push((0,l.jsx)(O,{url:"https://redirection.me/support/redirect-regular-expressions/",children:(0,i.__)('Remember to enable the "regex" option if this is a regular expression.',"redirection")})),t.match(/%\w+%/)&&o.push((0,l.jsx)(O,{url:"tools.php?page=redirection.php&sub=site",children:(0,i.__)('Please add migrated permalinks to the Site page under the "Permalink Migration" section.',"redirection")})),t.includes("^")||t.includes("$")||!n||o.push(
// translators: %(example)s is an example regular expression
D((0,i.sprintf)(
// translators: %(example)s is an example regular expression
// translators: %(example)s is an example regular expression
(0,i.__)("To prevent a greedy regular expression you can use {{code}}^{{/code}} to anchor it to the start of the URL. For example: {{code}}%(example)s{{/code}}","redirection"),{example:"^"+t}),{code:(0,l.jsx)("code",{})})),n&&t.includes("^")&&t.indexOf("^")>0&&o.push(
// translators: %(example)s is an example regular expression with corrected caret position
D((0,i.sprintf)(
// translators: %(example)s is an example regular expression with corrected caret position
// translators: %(example)s is an example regular expression with corrected caret position
(0,i.__)("The caret {{code}}^{{/code}} should be at the start. For example: {{code}}%(example)s{{/code}}","redirection"),{example:"^"+t.replace("^","")}),{code:(0,l.jsx)("code",{})})),n&&t.match(/[a-zA-Z0-9\/]\?/)&&o.push(D((0,i.__)("To match {{code}}?{{/code}} you need to escape it with {{code}}\\?{{/code}}","redirection"),{code:(0,l.jsx)("code",{})})),n&&t.match(/[a-zA-Z0-9 ]\*/)&&o.push(D((0,i.__)("Wildcards are not supported. You need to use a {{link}}regular expression{{/link}}.","redirection"),{link:(0,l.jsx)(O,{url:"https://redirection.me/support/redirect-regular-expressions/"})})),"/(.*)"!==t&&"^/(.*)"!==t||o.push((0,i.__)("If you want to redirect everything please use a site relocation or alias from the Site page.","redirection")),t.length>0&&(u===t||d===t||a===t||c===t||s===t)&&o.push((0,i.__)("Your source is the same as a target and this will create a loop. Leave a target blank if you do not want to take action.","redirection"));const h=[r.url,r.url_from,r.url_notfrom,r.logged_in,r.logged_out].filter(e=>e);return!s||Jv(s,"https://")||Jv(s,"http://")||"/"===s.slice(0,1)||o.push(
// translators: %(url)s is the user's target URL
D((0,i.sprintf)(
// translators: %(url)s is the user's target URL
// translators: %(url)s is the user's target URL
(0,i.__)("Your target URL should be an absolute URL like {{code}}https://domain.com/%(url)s{{/code}} or start with a slash {{code}}/%(url)s{{/code}}.","redirection"),{url:r.url}),{code:(0,l.jsx)("code",{})})),!1===n&&h.forEach(e=>{const t=e.match(/[|\\\$]/g);null!==t&&o.push(
// translators: %(invalid)s is an invalid character in the URL
D((0,i.sprintf)(
// translators: %(invalid)s is an invalid character in the URL
// translators: %(invalid)s is an invalid character in the URL
(0,i.__)("Your target URL contains the invalid character {{code}}%(invalid)s{{/code}}","redirection"),{invalid:t}),{code:(0,l.jsx)("code",{})}))}),[t,...h].forEach(e=>{const t=(e=>{const t=e.match(/^\/([a-zA-Z0-9_\-%]*\..*)\//);return t&&!e.includes("index.php")?t[0]:null})(e);t&&o.push(
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
D((0,i.sprintf)(
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
(0,i.__)("Your URL appears to contain a domain inside the path: {{code}}%(relative)s{{/code}}. Did you mean to use {{code}}%(absolute)s{{/code}} instead?","redirection"),{relative:t,absolute:"https://"+t}),{code:(0,l.jsx)("code",{})}))}),null!==t.match(/(\.html|\.htm|\.php|\.pdf|\.jpg)$/)&&o.push((0,l.jsx)(O,{url:"https://redirection.me/support/problems/url-not-redirecting/",children:(0,i.__)("Some servers may be configured to serve file resources directly, preventing a redirect occurring.","redirection")})),o},Xv=({warnings:e})=>0===e.length?null:(0,l.jsx)(wv,{children:(0,l.jsx)("div",{className:"redirect-edit_warning notice notice-warning",children:e.map((e,t)=>(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"dashicons dashicons-info"}),e]},t))})});function eb(e){const t=u(),{incrementProgress:n,decrementProgress:r,addNotice:i,addError:o}=Gn(),{setRedirectsTable:s}=Ty();return mt({mutationFn:async({items:e,params:i={}})=>{n();try{return await t.cancelQueries({queryKey:Wn.redirects.lists()}),await St(Qt("delete",{items:e},i))}catch(e){throw r(),Hn(e)}},onSuccess:(e,n)=>{r(),i("Redirects deleted"),s(Ju(n.params)),t.invalidateQueries({queryKey:Wn.redirects.lists()})},onError:e=>{o(e.message||"Failed to delete redirects")},...e})}function tb(e,t){const n=u(),{incrementProgress:r,decrementProgress:i,addNotice:o,addError:s}=Gn(),{setRedirectsSelected:a}=Ty();return mt({mutationFn:async({items:t})=>{r();try{return await n.cancelQueries({queryKey:Wn.redirects.lists()}),await St(Qt(e,{items:t},{}))}catch(e){throw i(),Hn(e)}},onSuccess:()=>{i(),o(`Redirects ${e}d`),a([]),n.invalidateQueries({queryKey:Wn.redirects.lists()})},onError:t=>{s(t.message||`Failed to ${e} redirects`)},...t})}const nb=function(e){const{item:t,onCancel:n,saveButton:r=(0,i.__)("Save","redirection"),childSave:s,callback:a,canSave:c,autoFocus:d,children:p}=e,{data:h,isSuccess:f}=td({}),m=(0,o.useMemo)(()=>h?.items??[],[h]),g=Ty(e=>e.redirectsAddTop),y=Ty(e=>e.redirects),{setRedirectsAddTop:_}=Ty(),v=de(e=>e.values),b=Gn(e=>e.addError),x=v?.auto_target||"",w=(0,o.useMemo)(()=>v?{flag_case:v.flag_case,flag_trailing:v.flag_trailing,flag_regex:v.flag_regex,flag_query:v.flag_query}:{},[v]),{mutate:j}=function(){const e=u(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=Gn();return mt({mutationFn:async r=>{t();try{await e.cancelQueries({queryKey:Wn.redirects.lists()});const{id:t,...n}=r,i=await St(Nt(t,n));return Vu.parse(i).item}catch(e){throw n(),Hn(e)}},onSuccess:t=>{n(),r("Redirect saved"),e.invalidateQueries({queryKey:Wn.redirects.lists()}),e.invalidateQueries({queryKey:Wn.redirects.detail(t.id)})},onError:e=>{i(e.message||"Failed to update redirect")}})}(),{mutate:S}=function(){const e=u(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=Gn();return mt({mutationFn:async r=>{t();try{await e.cancelQueries({queryKey:Wn.redirects.lists()});const t=await St(At(r));return Gu.parse(t).items[0]??null}catch(e){throw n(),Hn(e)}},onSuccess:()=>{n(),r("Redirect created"),e.invalidateQueries({queryKey:Wn.redirects.lists()})},onError:e=>{i(e.message||"Failed to create redirect")}})}(),k=(0,o.useRef)(null),C=(0,o.useCallback)(e=>{if(((e,t)=>e.find(e=>e.id===t))(m,e))return e;if(y.filterBy&&"object"==typeof y.filterBy&&"group"in y.filterBy&&y.filterBy.group&&parseInt(String(y.filterBy.group),10)>0)return parseInt(String(y.filterBy.group),10);if(m&&m.length>0){const e=m.find(e=>e.default);return e?e.id:m[0].id}return 0},[m,y.filterBy]),T=m.length>0,E=f&&!T,{url:P,match_data:R,match_type:O,action_type:N,action_data:A,group_id:F=0,title:I,action_code:z,position:D=0}=t,{flag_regex:L=!1,flag_trailing:M=!1,flag_case:U=!1,flag_query:$="exact"}=R?.source??{},B={url:P,title:I,flag_regex:L,flag_trailing:M,flag_case:U,flag_query:$,match_type:O,action_type:N,action_code:z,action_data:ov(O,A),options:R?.options??{},group_id:C(F),position:D,warning:[],advanced:!1},[q,H]=(0,o.useState)(B),W=(0,o.useCallback)(()=>{const{match_type:e,action_type:t,title:n,action_code:r}=q;return e===Z_&&t===$_&&""===n&&301===r},[q]);(0,o.useEffect)(()=>{H(e=>({...e,advanced:!W()}))},[]),(0,o.useEffect)(()=>{H(e=>({...e,warning:Yv(e)}))},[q.url,q.action_type,q.match_type,q.action_data]),(0,o.useEffect)(()=>{a&&k.current&&a(k.current.clientHeight)},[q,a]);const Z=(0,o.useCallback)(()=>{const e=sv("",q.group_id,w);H(t=>({...t,url:e.url,title:"",flag_regex:e.match_data.source.flag_regex,flag_trailing:e.match_data.source.flag_trailing,flag_case:e.match_data.source.flag_case,flag_query:e.match_data.source.flag_query,match_type:e.match_type,action_type:e.action_type,action_code:e.action_code,action_data:e.action_data,options:e.match_data.options,position:0,advanced:!1,warning:[]}))},[q.group_id,w]),G=(0,o.useCallback)(e=>{e.preventDefault();const{url:r,title:o,flag_regex:a,flag_trailing:l,flag_case:u,flag_query:d,match_type:p,action_type:h,group_id:f,action_code:g,position:y,action_data:_,options:v}=q,x=f>0?f:m[0]?.id;if(void 0===x)return void b((0,i.__)("UnabLine truncated
(0,i.sprintf)((0,i.__)("total = %d","redirection"),o),")"]}),(0,l.jsx)("button",{type:"button",onClick:()=>{n(t)},className:"button-secondary",children:(0,i.sprintf)(
// translators: %s is the plugin name
// translators: %s is the plugin name
(0,i.__)("Import from %s","redirection"),r)})]})},db=function(){const[e,t]=(0,o.useState)(0),[n,r]=(0,o.useState)(!1),[s,a]=(0,o.useState)("all"),[c,d]=(0,o.useState)("json"),[p,f]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),[y,_]=(0,o.useState)(!1),v=(0,o.useRef)(null),{data:b}=td({}),x=b?.items??[],{data:w=[]}=Vn(),j=function(e){const t=u(),{addNotice:n,addError:r,incrementProgress:i,decrementProgress:o}=Gn();return mt({mutationFn:async({file:e,groupId:t})=>{i();try{return await St(Ut(String(t),e))}catch(e){throw o(),Hn(e)}},onSuccess:e=>{o(),n(`Imported ${e?.imported||0} redirects`),t.invalidateQueries({queryKey:Wn.redirects.lists()})},onError:e=>{r(e.message||"Import failed")},...e})}({onSuccess:e=>{g(e?.imported||0),f(!1)}}),S=Qn(),k=function(e){const{addError:t,incrementProgress:n,decrementProgress:r}=Gn();return mt({mutationFn:async({moduleId:e,format:t})=>{n();try{return(await St(qt(e,t))).data}catch(e){throw r(),Hn(e)}},onSuccess:()=>{r()},onError:e=>{t(e.message||"Export failed")},...e})}({onSuccess:e=>{_(e)}});let C="idle";k.isPending?C="loading":k.isSuccess&&(C="success");let T="idle";j.isPending||S.isPending?T="loading":(j.isSuccess||S.isSuccess)&&(T="success"),(0,o.useEffect)(()=>()=>{f(!1),g(!1),_(!1)},[]);const E=e=>{e.preventDefault(),e.stopPropagation(),"loading"!==T&&r(!0)},P=e=>{e.preventDefault(),e.stopPropagation(),r(!1)},R=e=>{e.preventDefault(),e.stopPropagation()},O=e=>{if(e.preventDefault(),e.stopPropagation(),r(!1),"loading"===T)return;const n=e.dataTransfer.files;n.length>0&&(f(n[0]||!1),x.length>0&&x[0]&&t(x[0].id))},N=e=>{const n=e.target.files;n&&n.length>0&&(f(n[0]||!1),x[0]&&t(x[0].id))},A=()=>{v.current?.click()},F=()=>{p&&j.mutate({file:p,groupId:e})},I=()=>{r(!1),f(!1),g(!1),_(!1),v.current&&(v.current.value="")},z=e=>{const{target:n}=e,{name:r,value:i}=n;"group"===r?t(parseInt(i,10)):"module"===r?(a(i),"everything"===i&&d("json")):"format"===r&&d(i)},L=e=>{confirm((0,i.sprintf)(
// translators: %s is the plugin name
// translators: %s is the plugin name
(0,i.__)("Are you sure you want to import from %s?","redirection"),e.name))&&S.mutate(e.id)};return(0,l.jsxs)("div",{className:"import",children:[(0,l.jsx)("h2",{children:(0,i.__)("Import","redirection")}),(()=>{const t=h({dropzone:!0,"dropzone-dropped":!1!==p,"dropzone-importing":"loading"===T,"dropzone-hover":n});let r;return r="loading"===T?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{children:(0,i.__)("Importing","redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:p&&p.name})}),(0,l.jsx)("div",{className:"is-placeholder",children:(0,l.jsx)("div",{className:"wpl-placeholder__loading"})})]}):"success"===T&&!1!==m&&!1===p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{children:(0,i.__)("Finished importing","redirection")}),(0,l.jsxs)("p",{children:[(0,i.__)("Total redirects imported:","redirection")," ",m]}),0===m&&(0,l.jsx)("p",{children:(0,i.__)("Double-check the file is the correct format!","redirection")}),(0,l.jsx)("button",{className:"button-secondary",onClick:I,children:(0,i.__)("OK","redirection")})]}):!1===p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{children:(0,i.__)("Import a CSV, .htaccess, or JSON file.","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("Click 'Add File' or drag and drop here.","redirection")}),(0,l.jsx)("button",{type:"button",className:"button-secondary",onClick:A,children:(0,i.__)("Add File","redirection")})]}):(()=>{const t=p&&"application/json"===p.type;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{children:(0,i.__)("File selected","redirection")}),(0,l.jsx)("p",{children:(0,l.jsx)("code",{children:p&&p.name})}),!t&&(0,l.jsxs)("div",{className:"groups",children:[(0,i.__)("Import to group","redirection")," ",(0,l.jsx)(cr,{items:sl(x),name:"group",value:String(e),onChange:z})]}),(0,l.jsx)("button",{className:"button-primary",onClick:F,children:(0,i.__)("Upload","redirection")})," "," ",(0,l.jsx)("button",{className:"button-secondary",onClick:I,children:(0,i.__)("Cancel","redirection")})]})})(),(0,l.jsxs)("div",{className:t,onDragEnter:E,onDragLeave:P,onDragOver:R,onDrop:O,children:[(0,l.jsx)("input",{ref:v,type:"file",style:{display:"none"},onChange:N,accept:".json,.csv,.htaccess"}),r]})})(),(0,l.jsx)("p",{children:(0,i.__)("All imports will be appended to the current database - nothing is merged.","redirection")}),(0,l.jsxs)("div",{className:"inline-notice notice-warning",children:[(0,l.jsx)("p",{children:D((0,i.__)("{{strong}}CSV file format{{/strong}}: {{code}}source URL, target URL{{/code}} - and can be optionally followed with {{code}}regex, http code{{/code}} ({{code}}regex{{/code}} - 0 for no, 1 for yes).","redirection"),{code:(0,l.jsx)("code",{}),strong:(0,l.jsx)("strong",{})})}),(0,l.jsx)("p",{children:(0,i.__)('CSV does not include all information, and everything is imported/exported as "URL only" matches. Use the JSON format for a full set of data.',"redirection")})]}),(0,l.jsx)("h2",{children:(0,i.__)("Export","redirection")}),(0,l.jsx)("p",{children:(0,i.__)("Export to CSV, Apache .htaccess, Nginx, or Redirection JSON. The JSON format contains full information, and other formats contain partial information appropriate to the format.","redirection")}),(0,l.jsxs)("p",{className:"redirect-export_buttons",children:[(0,l.jsxs)("select",{name:"module",onChange:z,value:s,children:[(0,l.jsx)("option",{value:"0",children:(0,i.__)("Everything","redirection")}),(0,l.jsx)("option",{value:"1",children:(0,i.__)("WordPress redirects","redirection")}),(0,l.jsx)("option",{value:"2",children:(0,i.__)("Apache redirects","redirection")}),(0,l.jsx)("option",{value:"3",children:(0,i.__)("Nginx redirects","redirection")})]}),(0,l.jsxs)("select",{name:"format",onChange:z,value:c,children:[(0,l.jsx)("option",{value:"json",children:(0,i.__)("Complete data (JSON)","redirection")}),(0,l.jsx)("option",{value:"csv",children:(0,i.__)("CSV","redirection")}),(0,l.jsx)("option",{value:"apache",children:(0,i.__)("Apache .htaccess","redirection")}),(0,l.jsx)("option",{value:"nginx",children:(0,i.__)("Nginx rewrite rules","redirection")})]}),(0,l.jsx)("button",{className:"button-primary",onClick:()=>{k.mutate({moduleId:s,format:c})},children:(0,i.__)("View","redirection")}),(0,l.jsx)("button",{className:"button-secondary",onClick:()=>{window.location.href=al(s,c)},children:(0,i.__)("Download","redirection")})]}),"loading"===C&&(0,l.jsx)("div",{className:"loader-wrapper loader-textarea",children:(0,l.jsx)("div",{className:"wpl-placeholder__loading"})}),y&&"loading"!==C&&(U=y,(0,l.jsxs)("div",{children:[(0,l.jsx)("textarea",{className:"module-export",rows:14,readOnly:!0,value:U}),(0,l.jsx)("input",{className:"button-secondary",type:"submit",value:(0,i.__)("Close","redirection"),onClick:I})]})),(0,l.jsx)("h2",{children:(0,i.__)("Export Logs","redirection")}),(0,l.jsx)(cb,{logType:lb,title:(0,i.__)("Export redirect","redirection")}),(0,l.jsx)("br",{}),(0,l.jsx)(cb,{logType:"404",title:(0,i.__)("Export 404","redirection")}),w.length>0&&(M=w,(0,l.jsxs)("div",{childLine truncated
// translators: %(type)s is the module type name
// translators: %(type)s is the module type name
(0,i.__)("Filter on: %(type)s","redirection"),{type:n}),children:n})})},wb=function(e){const{group:t,onCancel:n}=e,[r,s]=(0,o.useState)(t.name),[a,c]=(0,o.useState)(t.module_id),{mutate:d}=function(){const e=u(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=Gn();return mt({mutationFn:async r=>{t();try{await e.cancelQueries({queryKey:Wn.groups.lists()});const{id:t,...n}=r,i=await St(zt(t,n));return Ku.parse(i).item}catch(e){throw n(),Hn(e)}},onSuccess:t=>{n(),r("Group saved"),e.invalidateQueries({queryKey:Wn.groups.lists()}),e.invalidateQueries({queryKey:Wn.groups.detail(t.id)})},onError:e=>{i(e.message||"Failed to update group")}})}();return(0,l.jsx)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),n(),d({id:t.id,name:r,moduleId:a})},children:(0,l.jsx)("table",{className:"edit-groups inline-edit-row",children:(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:(0,i.__)("Name","redirection")}),(0,l.jsx)("td",{children:(0,l.jsx)("input",{type:"text",className:"regular-text",name:"name",value:r,onChange:e=>s(e.target.value)})})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:(0,i.__)("Module","redirection")}),(0,l.jsx)("td",{children:(0,l.jsx)(cr,{name:"module_id",value:String(a),onChange:e=>c(parseInt(e.target.value,10)),items:gb().map(e=>({label:e.label,value:String(e.value)}))})})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{}),(0,l.jsxs)("td",{children:[(0,l.jsxs)("div",{className:"table-actions",children:[(0,l.jsx)(Ol,{isPrimary:!0,isSecondary:!1,isSubmit:!0,children:(0,i.__)("Save","redirection")})," ",(0,l.jsx)(Ol,{onClick:n,children:(0,i.__)("Cancel","redirection")})]}),2===a&&(0,l.jsxs)("p",{children:[(0,l.jsx)("br",{}),(0,i.__)("Note that you will need to set the Apache module path in your Redirection options.","redirection")]})]})]})]})})})};function jb(e){return e.includes("name")?e:e.concat(["name"])}const Sb=function(){const e=Ty(e=>e.groups),{setGroupsTable:t,setGroupsSelected:n}=Ty();Fy({table:e,setTable:t,allowedOrder:["name","id"],allowedFilters:["name","status","module"],defaultOrder:"name",pageName:"groups"});const r=fb(),{data:o,isLoading:s}=td(e),a=o?.items??[],c=o?.total??0,u=s?"loading":"complete",d={displayFilters:pb(),displayGroups:[{value:"standard",label:(0,i.__)("Standard Display","redirection"),grouping:["name","module","redirects"]},{value:"minimal",label:(0,i.__)("Compact Display","redirection"),grouping:["name"]},{value:"all",label:(0,i.__)("Display All","redirection"),grouping:pb().map(e=>e.value)}],searchOptions:[{name:"name",title:(0,i.__)("Search","redirection")}],groupBy:[],bulk:[{id:"delete",name:(0,i.__)("Delete","redirection")},{id:"enable",name:(0,i.__)("Enable","redirection")},{id:"disable",name:(0,i.__)("Disable","redirection")}],rowFilters:hb(gb().map(e=>({label:e.label,value:`${e.value}`}))),headers:[{name:"status",title:(0,i.__)("Status","redirection"),sortable:!1},{name:"name",title:(0,i.__)("Name","redirection"),primary:!0},{name:"redirects",title:(0,i.__)("Redirects","redirection"),sortable:!1},{name:"module",title:(0,i.__)("Module","redirection"),sortable:!1}].filter(t=>function(e,t){return t.displaySelected?.includes(e)??!1}(t.name,e)),validateDisplay:jb},p={onChangePage:e=>{t({page:e,selected:[],selectAll:!1})},onBulk:t=>{if(0===e.selected.length&&!e.selectAll)return;if("delete"===t){const t=e.selectAll?(0,i.__)("Are you sure you want to delete all items?","redirection"):(0,i.__)("Are you sure you want to delete the selected items?","redirection");if(!window.confirm(t))return}const n=e.selected;if(e.selectAll){const n={global:!0,filterBy:e.filterBy};r.mutate({action:t,items:[],params:n})}else r.mutate({action:t,items:n})},onSelect:r=>{const i=e.selected;"boolean"==typeof r?n(r?a.map(e=>e.id):[]):Array.isArray(r)?n(r):i.includes(r)?t({selected:i.filter(e=>e!==r),selectAll:!1}):t({selected:[...i,r],selectAll:!1})},onSetOrder:(e,n)=>{t({orderby:e,direction:n})},onFilter:e=>{t({filterBy:e,page:0,selected:[],selectAll:!1})},onSetDisplay:(e,n)=>{t({displayType:e,displaySelected:n})},onSetAll:e=>{t({selected:e?a.map(e=>e.id):[],selectAll:e})},onGroup:e=>{t({groupBy:e,page:0,selected:[],selectAll:!1})}},h={page:e.page,perPage:e.per_page,orderBy:e.orderby,direction:e.direction,selected:e.selected,selectAll:e.selectAll??!1,filter:"",filterBy:e.filterBy??{},displayType:e.displayType??"standard",displaySelected:e.displaySelected??[],groupBy:e.groupBy??""};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p_,{logOptions:d,logActions:p,table:h,status:u,total:c,rows:a,saving:[],getRow:(e,t)=>function(e,t){const{redirects:n}=e,{rowMode:r,setRowMode:i}=t;return[{name:"status",content:(0,l.jsx)(vb,{row:e})},{name:"name",content:"edit"===r?(0,l.jsx)(wb,{group:e,onCancel:()=>i(!1)}):(0,l.jsx)(bb,{row:e,filters:t.table.filterBy})},{name:"redirects",content:new Intl.NumberFormat(window.Redirectioni10n.locale).format(n)},{name:"module",content:(0,l.jsx)(xb,{row:e})}]}(e,t),getRowActions:(e,t)=>(0,l.jsx)(_Line truncated
// translators: %s is the version number
// translators: %s is the version number
(0,i.__)("Version %s installed! Please read the {{url}}release notes{{/url}} for details.","redirection"),e),{url:(0,l.jsx)(O,{url:"https://redirection.me/blog/redirection-version-"+e.replace(".","-")+"/"})})," ",(0,l.jsx)(Ol,{onClick:function(){t({update_notice:window.Redirectioni10n.update_notice}),window.Redirectioni10n.update_notice=!1},children:(0,i.__)("OK","redirection")})]})}):null},Jb=Redirectioni10n?.caps?.pages||[];function Yb(){const e=Gn(e=>e.errors),t=Gn(e=>e.notices),{clearErrors:n,clearNotices:r}=Gn(),s=de(e=>e.database.status),a=de(e=>e.showDatabase),c=de(e=>e.database.inProgress),u=de(e=>e.values?.plugin_update??""),{setShowDatabase:d,setApi:p}=de(),{setErrorsTable:h,setLogsTable:f,setRedirectsTable:m,setRedirectsAddTop:g,setGroupsTable:y}=Ty(),[_,v]=(0,o.useState)(Sl(Jb));(0,o.useEffect)(()=>{if(window.Redirectioni10n?.api?.routes&&p({routes:window.Redirectioni10n.api.routes,current:window.Redirectioni10n.api.current??""}),window.Redirectioni10n?.settings&&!de.getState().values){const{setValues:e,setLoadStatus:t}=de.getState();e(window.Redirectioni10n.settings),t("success")}if(window.Redirectioni10n?.database){const{setDatabase:e}=de.getState();e(window.Redirectioni10n.database)}},[p]);const b=(0,o.useCallback)(e=>{v(e)},[]),x=(0,o.useCallback)(()=>{n()},[n]),w=(0,o.useMemo)(()=>[{name:(0,i.__)("Redirects","redirection"),value:""},{name:(0,i.__)("Groups","redirection"),value:"groups"},{name:(0,i.__)("Site","redirection"),value:"site"},{name:(0,i.__)("Log","redirection"),value:"log"},{name:(0,i.__)("404s","redirection"),value:"404s"},{name:(0,i.__)("Import/Export","redirection"),value:"io"},{name:(0,i.__)("Options","redirection"),value:"options"},{name:(0,i.__)("Support","redirection"),value:"support"}].filter(e=>f_(e.value)||""===e.value&&f_("redirect")),[]),j=(0,o.useMemo)(()=>({redirect:(0,i.__)("Redirections","redirection"),site:(0,i.__)("Site","redirection"),groups:(0,i.__)("Groups","redirection"),io:(0,i.__)("Import/Export","redirection"),log:(0,i.__)("Logs","redirection"),"404s":(0,i.__)("404 errors","redirection"),options:(0,i.__)("Options","redirection"),support:(0,i.__)("Support","redirection")}),[]),S=(0,o.useCallback)(e=>{b(""===e?"redirect":e),"404s"===e?h({orderby:"",direction:"desc",page:0,perPage:25,selected:[],filter:"",filterBy:"",groupBy:""}):"log"===e?f({orderby:"",direction:"desc",page:0,perPage:25,selected:[],filter:"",filterBy:"",groupBy:""}):""===e?m({orderby:"id",direction:"desc",page:0,perPage:25,selected:[],filter:"",filterBy:"",groupBy:""}):"groups"===e&&y({orderby:"name",direction:"asc",page:0,perPage:25,selected:[],filter:"",filterBy:"",groupBy:""})},[b,h,f,m,y]);if("5.8.0"!==Redirectioni10n.version)return(0,l.jsx)(Qb,{});if("need-install"===s||"finish-install"===s)return(0,l.jsx)(G,{renderCrash:Pl,extra:{page:_},children:(0,l.jsx)(nl,{})});const k="prompt"===u&&("need-update"===s||"finish-update"===s);return(0,l.jsx)(G,{renderCrash:Pl,extra:{page:_},children:(0,l.jsxs)("div",{className:"wrap redirection notranslate",translate:"no",children:[k&&(0,l.jsx)(fl,{onShowUpgrade:()=>d(!0),showDatabase:a}),!c&&"finish-update"!==s&&!a&&(0,l.jsxs)(kl,{page:_,setPage:b,onPageChange:x,allowedPages:Jb,baseUrl:"?page=redirection.php",defaultPage:"redirect",children:[(0,l.jsx)("h1",{className:"wp-heading-inline",children:j[_]}),"redirect"===_&&h_(g_)&&(0,l.jsx)("button",{type:"button",onClick:()=>g(!0),className:"page-title-action",children:(0,i.__)("Add New","redirection")}),(0,l.jsx)(Kb,{}),(0,l.jsx)(yl,{onChangePage:S,currentPage:_,menu:w,home:"redirect",urlBase:Redirectioni10n.pluginRoot}),(0,l.jsx)(W,{errors:e,onClear:()=>n(),renderDebug:pe,details:Q(),links:V(),locale:"redirection",children:(0,l.jsx)(Cl,{})}),(0,l.jsx)(Vb,{page:_}),(0,l.jsx)(bl,{notices:t,onClear:()=>r(),snackBarViewText:(0,i.__)("View notice","redirection")})]})]})})}var Xb=class extends fe{constructor(e={}){super(),this.config=e,this.#W=new Map}#W;build(e,t,n){const r=t.queryKey,i=t.queryHash??Ce(r,t);let o=this.get(i);return o||(o=new et({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#W.has(e.queryHash)||(this.#W.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#W.get(e.queryHash);t&&(e.destroy(),t===e&&this.#W.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#W.get(e)}getAll(){return[...this.#W.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Se(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Se(e,t)):t}notify(e){qe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ex=class extends fe{constructor(e={}){super(),this.config=e,this.#Z=new Set,this.#G=new Map,this.#V=0}#Z;#G;#V;build(e,t,n){const Line truncated
@@ -0,0 +1,15 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/