1 line
259 KiB
JavaScript
1 line
259 KiB
JavaScript
!function(){"use strict";var e={3111:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-analyses{display:flex;flex-direction:column;gap:24px}.rank-math-ai-visibility-analyses__error{padding:8px 16px;background:#fef0f0;border:1px solid #f66276;border-radius:4px;color:#f66276;font-size:14px}.rank-math-ai-visibility-analyses__card{border-radius:4px;border:1px solid #e0e0e0;overflow:hidden}.rank-math-ai-visibility-analyses .rank-math-table{font-size:13px}.rank-math-ai-visibility-analyses .rank-math-table-card{border-top:1px solid #e0e0e0}.rank-math-ai-visibility-analyses .rank-math-table thead{background:#fcfcfc;border-color:#e0e0e0}.rank-math-ai-visibility-analyses .rank-math-table thead th{padding:13px 16px}.rank-math-ai-visibility-analyses .rank-math-table thead th:first-child{padding:13px 26px}.rank-math-ai-visibility-analyses .rank-math-table thead th .rank-math-table-header-cell{color:#1e1e1e;font-size:14px}.rank-math-ai-visibility-analyses .rank-math-table tbody tr td{padding:16px}.rank-math-ai-visibility-analyses .rank-math-table tbody tr td:first-child{padding:16px 26px}.rank-math-ai-visibility-analyses .rank-math-table tbody .rank-math-table-row,.rank-math-ai-visibility-analyses .rank-math-table tbody .rank-math-table-row:hover,.rank-math-ai-visibility-analyses .rank-math-table tbody .rank-math-table-row:nth-child(odd){background:rgba(0,0,0,0)}.rank-math-ai-visibility-analyses .rank-math-table-footer{justify-content:center;padding:20px 0}.rank-math-ai-visibility-analyses .rank-math-table-footer-nav{justify-content:center;align-items:center}.rank-math-ai-visibility-analyses .rank-math-pagination-page-info{color:#666}.rank-math-ai-visibility-analyses .rank-math-pagination-separator{color:#b2b2b2}.rank-math-ai-visibility-analyses .rank-math-pagination-jump span{color:#666}.rank-math-ai-visibility-analyses .rank-math-pagination-jump .rank-math-pagination-input{width:31px;height:28px;border-radius:2px;min-height:28px;border-color:#c6c6c6;color:#757575}",""]);const l=o},834:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-analyses-filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;padding:15px 25px;background-color:#fff}.rank-math-ai-visibility-analyses-filter-bar .components-base-control{margin-bottom:0}.rank-math-ai-visibility-analyses-filter-bar__brand{min-width:150px;flex-shrink:0}.rank-math-ai-visibility-analyses-filter-bar__status{min-width:140px;flex-shrink:0}.rank-math-ai-visibility-analyses-filter-bar__search{flex:1;min-width:120px;max-width:260px}.rank-math-ai-visibility-analyses-filter-bar__search .components-input-control.is-focused .components-input-control__backdrop{border-color:#017cba !important;box-shadow:0 0 0 2px rgba(1,124,186,.15) !important}.rank-math-ai-visibility-analyses-filter-bar__search input[type=text],.rank-math-ai-visibility-analyses-filter-bar__search input[type=search]{height:36px;border-radius:2px;font-size:13px}.rank-math-ai-visibility-analyses-filter-bar__search input[type=text]:focus,.rank-math-ai-visibility-analyses-filter-bar__search input[type=search]:focus{outline:none !important;box-shadow:none !important}.rank-math-ai-visibility-analyses-filter-bar__search input[type=text]{padding:0 12px}.rank-math-ai-visibility-analyses-filter-bar__search input[type=search]{padding:0 5px}.rank-math-ai-visibility-analyses-filter-bar__dates{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}.rank-math-ai-visibility-analyses-filter-bar__date-sep{font-size:13px;color:#9b9b9b;flex-shrink:0}.rank-math-ai-visibility-analyses-filter-bar__date-input{border:none;outline:none;font-size:12px;color:#1e1e1e;background:rgba(0,0,0,0);width:100px;padding:0}.rank-math-ai-visibility-analyses-filter-bar__clear{flex-shrink:0;white-space:nowrap;font-size:12px}#rank-math-ai-visibility-container .components-input-control__input,#rank-math-ai-visibility-container .components-select-control__input{height:36px;min-height:36px}#rank-math-ai-visibility-container .components-select-control__input{color:#757575;padding:0 16px}#rank-math-ai-visibility-container .components-input-control__backdrop{border-color:#949494}",""]);const l=o},5517:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-analyses .rank-math-table-header{display:none !important}.rank-math-ai-visibility-analyses table th:nth-child(1){width:45%}.rank-math-ai-visibility-analyses table th:nth-child(2){width:35%}.rank-math-ai-visibility-analyses table th:nth-child(3){width:20%}.rank-math-ai-visibility-analyses-table__time-cell{display:flex;align-items:center;gap:6px;white-space:nowrap}",""]);const l=o},4373:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-analysis-run-detail__stat-cards{display:flex;gap:28px;margin-bottom:26px;margin-top:24px}.rank-math-ai-visibility-analysis-run-detail__table{background:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden}.rank-math-ai-visibility-analysis-run-detail__table-row{display:grid;grid-template-columns:1fr 140px 160px;align-items:center;padding:20px 35px;border-bottom:1px solid #e0e0e0;gap:16px}.rank-math-ai-visibility-analysis-run-detail__table-row:last-child{border-bottom:none}.rank-math-ai-visibility-analysis-run-detail__table-row--header{background:#fcfcfc;font-size:12px;font-weight:600;color:#1e1e1e;text-transform:uppercase;letter-spacing:.03em;padding:13px 35px}.rank-math-ai-visibility-analysis-run-detail__col{min-width:0}.rank-math-ai-visibility-analysis-run-detail__col--query{font-size:13px;color:#1e1e1e;line-height:1.5}.rank-math-ai-visibility-analysis-run-detail__col--sentiment{display:flex;align-items:center}.rank-math-ai-visibility-analysis-run-detail__content{background:#fff;border-width:0px 1px 1px 1px;border-style:solid;border-color:#e0e0e0;border-radius:0px 0px 4px 4px;padding:24px 34px 34px 34px;margin:24px 0 0 0}",""]);const l=o},9717:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility{margin:0}.rank-math-ai-visibility .rank-math-tabs{margin-top:16px}.rank-math-ai-visibility .rank-math-table tbody .rank-math-table-row:focus{outline:none}.rank-math-ai-visibility .components-checkbox-control__input[type=checkbox]:checked,.rank-math-ai-visibility .components-checkbox-control__input[type=checkbox]:indeterminate{background:#017cba;border-color:#017cba}.rank-math-ai-visibility .components-input-control__suffix svg,.rank-math-ai-visibility .components-input-control__suffix,.rank-math-ai-visibility .components-input-control__prefix{color:#757575}.rank-math-ai-visibility .rank-math-table-pagination-buttons{display:inline-flex}.rank-math-ai-visibility .rank-math-table-pagination-buttons .rank-math-pagination-btn{color:#757575;border-radius:2px}.rank-math-ai-visibility .rank-math-table-pagination-buttons .rank-math-pagination-btn:first-child{border-top-right-radius:0;margin-right:-1px;border-bottom-right-radius:0}.rank-math-ai-visibility .rank-math-table-pagination-buttons .rank-math-pagination-btn:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.rank-math-ai-visibility .rank-math-table-pagination-buttons .rank-math-pagination-input{width:auto;padding:0}.rank-math-ai-visibility .rank-math-pagination-jump .rank-math-pagination-input{width:auto;min-height:28px;background:rgba(0,0,0,0)}.rank-math-ai-visibility .rank-math-pagination-jump span{color:#666}.rank-math-ai-visibility .rank-math-pagination-page-info{color:#666}.rank-math-ai-visibility .rank-math-table-footer{padding:20px 20px}@media(min-width: 960px){.rank-math-ai-visibility .components-modal__frame{max-height:80%}}",""]);const l=o},4629:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-brand-detail{display:flex;flex-direction:column;gap:20px}.rank-math-ai-visibility-brand-detail__content{background:#fff;border:1px solid #e0e0e0;border-radius:4px}.rank-math-ai-visibility-brand-detail--loading{display:flex;justify-content:center;padding:24px}.rank-math-ai-visibility-brand-detail--error{padding:16px;text-align:center;color:#f66276}.rank-math-ai-visibility-brand-detail__tabs{margin-top:8px}.rank-math-ai-visibility-brand-detail__tab{padding:32px}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-header__name{font-weight:400;font-size:30px;line-height:34px;color:#1e1e1e;margin:0}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs{margin:0}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-tab-panel__tabs{padding:0 16px;border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-tab-panel__tabs-item{height:52px !important;font-weight:500;color:#383838}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-tab-panel__tabs-item.is-active{color:#017cba}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-tab-panel__tabs-item.is-active:after{background:#017cba;height:2px}.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-button:hover:not(:disabled,[aria-disabled=true]),.rank-math-ai-visibility-brand-detail .rank-math-ai-visibility-brand-detail__tabs.rank-math-tabs .components-button[aria-expanded=true]{color:#017cba}",""]);const l=o},421:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-brand-header{display:flex;flex-direction:column;gap:0;padding:32px;border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-brand-header__content{display:flex;align-items:flex-start;justify-content:space-between}.rank-math-ai-visibility-brand-header__identity{display:flex;flex-direction:column;flex:1}.rank-math-ai-visibility-brand-header__name-row{display:flex;align-items:center;gap:16px}.rank-math-ai-visibility-brand-header__name{margin:0;font-size:26px;font-weight:600;line-height:1.2;color:#1e1e1e}.rank-math-ai-visibility-brand-header__edit-btn.rank-math-ai-visibility-btn.components-button{display:inline-flex;align-items:center;gap:6px;font-size:12px;height:24px;padding:0 8px;border-color:#c6c6c6;color:#757575;background:#fcfcfc;min-height:24px}.rank-math-ai-visibility-brand-header__edit-btn.rank-math-ai-visibility-btn.components-button .dashicons{height:12px;width:12px;font-size:12px;margin:0}.rank-math-ai-visibility-brand-header__url-row{display:flex;align-items:center;gap:8px}.rank-math-ai-visibility-brand-header__url{text-decoration:none;font-weight:300;font-size:20px;line-height:28px;color:#017cba}.rank-math-ai-visibility-brand-header__url:hover{text-decoration:underline}.rank-math-ai-visibility-brand-header__language{display:inline-flex;align-items:center;padding:2px 8px;border-radius:20px;font-size:11px;color:#9b9b9b;border:1px solid #e0e0e0}.rank-math-ai-visibility-brand-header__external{color:#757575;display:inline-flex;align-items:center;text-decoration:none}.rank-math-ai-visibility-brand-header__external:hover{color:#017cba}.rank-math-ai-visibility-brand-header__external svg path{fill:currentColor}.rank-math-ai-visibility-brand-header__meta-row{display:flex;align-items:center;gap:10px;font-size:13px;margin:12px 0 0 0}.rank-math-ai-visibility-brand-header__status{display:inline-flex;align-items:center;padding:0 10px;border-radius:20px;font-size:11px;font-weight:400;border:1px solid #e0e0e0}.rank-math-ai-visibility-brand-header__status--active{color:#2e7d32;border-color:#a5d6a7;background:rgba(46,125,50,.06)}.rank-math-ai-visibility-brand-header__status--inactive{color:#9b9b9b;border-color:#e0e0e0;background:rgba(0,0,0,0)}.rank-math-ai-visibility-brand-header__last-analysis{display:inline-flex;align-items:center;gap:4px;color:#9b9b9b;font-size:12px}.rank-math-ai-visibility-brand-header__last-analysis .dashicons{height:14px;width:14px;font-size:14px}.rank-math-ai-visibility-brand-header__description-panel{flex:0 0 320px;padding:16px;border:1px solid #e0e0e0;border-radius:4px;background:#fff}.rank-math-ai-visibility-brand-header__description-label{display:block;font-size:13px;font-weight:600;color:#1e1e1e;margin-bottom:8px}.rank-math-ai-visibility-brand-header__description-text{margin:0;font-size:13px;line-height:1.6;color:#9b9b9b}",""]);const l=o},695:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-brand-overview{display:flex;flex-direction:column;gap:16px}.rank-math-ai-visibility-brand-overview__stats{display:flex;flex-wrap:wrap;gap:16px}@media(max-width: 782px){.rank-math-ai-visibility-brand-overview__stats{flex-direction:column}}.rank-math-ai-visibility-brand-overview__stats .rank-math-ai-visibility-stat-card{flex:0 1 calc(25% - 62px)}.rank-math-ai-visibility-stat-card--overview-score{--stat-icon-bg: rgba( 1, 124, 186, 0.12 );--stat-icon-color: #017cba}.rank-math-ai-visibility-stat-card--overview-rank{--stat-icon-bg: rgba( 45, 168, 116, 0.12 );--stat-icon-color: #2DA874}.rank-math-ai-visibility-stat-card--overview-mentions{--stat-icon-bg: rgba( 232, 166, 35, 0.12 );--stat-icon-color: #E8A623}.rank-math-ai-visibility-stat-card--overview-sentiment{--stat-icon-bg: rgba( 82, 96, 185, 0.12 );--stat-icon-color: #5260B9}.rank-math-ai-visibility-stat-card--overview-citations{--stat-icon-bg: rgba( 26, 155, 172, 0.12 );--stat-icon-color: #1A9BAC}.rank-math-ai-visibility-stat-card--overview-competitor{--stat-icon-bg: rgba( 246, 98, 118, 0.12 );--stat-icon-color: #F66276}",""]);const l=o},6350:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-competitors-table{max-width:1146px;margin:0 auto}.rank-math-ai-visibility-competitors-table--loading{display:flex;justify-content:center;padding:24px}.rank-math-ai-visibility-competitors-table--error p{font-size:13px;color:#f66276;margin:0}.rank-math-ai-visibility-competitors-table .rank-math-ai-visibility-data-table__td:first-child{display:flex;align-items:center;gap:10px}.rank-math-ai-visibility-competitors-table__avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;font-size:12px;font-weight:600;color:#fff;flex-shrink:0;line-height:1}.rank-math-ai-visibility-competitors-table__name{font-size:13px;color:#1e1e1e;font-weight:400}",""]);const l=o},5607:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-queries-table{display:flex;flex-direction:column;gap:30px}.rank-math-ai-visibility-queries-table__toolbar{display:flex;align-items:center;gap:12px}.rank-math-ai-visibility-queries-table__toolbar .components-button{min-height:36px;font-weight:300}.rank-math-ai-visibility-queries-table__toolbar .dashicons{font-size:14px;width:14px;height:14px;line-height:14px}.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__th{font-weight:500;font-size:14px;line-height:20px;color:#1e1e1e;padding:13px}.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__th:first-child{padding-left:35px}.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__td{padding:30px 16px;font-weight:400;font-size:13px;line-height:19px;color:#1e1e1e}.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__td:first-child{padding:20px 35px}.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__td:nth-child(2),.rank-math-ai-visibility-queries-table .rank-math-ai-visibility-data-table__td:nth-child(3){color:#868686}",""]);const l=o},385:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-run-detail--loading{display:flex;justify-content:center;padding:32px}.rank-math-ai-visibility-run-detail--error p{font-size:13px;color:#f66276;margin:0}.rank-math-ai-visibility-run-detail--empty p{font-size:13px;color:#9b9b9b;margin:0}",""]);const l=o},2634:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,".rank-math-ai-visibility-account{border:1px solid #e0e0e0;border-radius:4px}.rank-math-ai-visibility-account h3{font-style:normal;font-weight:500;font-size:20px;line-height:26px;color:#c64539;margin:0}.rank-math-ai-visibility-account header{padding:19px 28px;border-bottom:1px solid #e0e0e0;display:flex;align-items:center;justify-content:space-between}.rank-math-ai-visibility-account .rank-math-status-button.components-button.is-disconnected{background:#c64539;font-size:13px;font-weight:300;border-radius:2px}.rank-math-ai-visibility-account .rank-math-status-button.components-button.is-disconnected svg{width:10px}.rank-math-ai-visibility-account-content{display:flex;padding:80px;align-items:center;justify-content:center;text-align:center;font-weight:400;font-size:16px;line-height:23px;color:#1e1e1e}.rank-math-ai-visibility-account-content a{color:#017cba}.rank-math-ai-visibility-account-content p{margin:0;font-size:14px;font-weight:400;line-height:23px}.rank-math-ai-visibility-account-content p.rank-math-ai-visibility-account-not-registered-note{margin-top:30px;font-weight:500;line-height:16px;color:#757575}.rank-math-ai-visibility-account-content .rank-math-button.components-button.button-animate{margin-top:32px;font-size:22px;font-weight:400;line-height:80px;padding:0 42px}",""]);const l=o},3019:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-brands-table__last-analyzed{color:#868686;display:inline-flex;align-items:center;gap:4px}.rank-math-ai-visibility-brands-table tbody .rank-math-table-row .rank-math-table-primary-column a{color:#017cba;font-weight:400}.rank-math-ai-visibility-brands-table__brand-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.rank-math-ai-visibility-brands-table tbody .rank-math-table-row .rank-math-table-primary-column .rank-math-ai-visibility-brands-table__brand-name{font-size:13px;font-weight:600;color:#1e1e1e;line-height:1.4}.rank-math-ai-visibility-brands-table tbody .rank-math-table-row .rank-math-table-primary-column .rank-math-ai-visibility-brands-table__brand-name:hover{color:#1e1e1e;text-decoration:none}.rank-math-ai-visibility-brands-table__brand-url{font-size:12px;color:#017cba;line-height:1.4;word-break:break-all}.rank-math-ai-visibility-brands-table__brand-url:hover{text-decoration:underline}.rank-math-ai-visibility-brands-table__brand-link{display:inline-flex;gap:4px}.rank-math-ai-visibility-brands-table .rank-math-table-cell-content{font-size:13px}.rank-math-ai-visibility-brands-table .rank-math-table-header-cell{font-size:14px}.rank-math-ai-visibility-brands-table .rank-math-table thead{background-color:#fcfcfc}.rank-math-ai-visibility-brands-table .rank-math-table thead th{color:#1e1e1e;font-size:14px}.rank-math-ai-visibility-brands-table .rank-math-table thead th:first-child{padding-left:25px}.rank-math-ai-visibility-brands-table .rank-math-table tbody tr td:first-child{padding-left:25px}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row:hover,.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row:nth-child(odd){background:rgba(0,0,0,0)}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled td{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-brands-table__brand-name{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-brands-table__brand-url{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-brands-table__brand-url:hover{text-decoration:none}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-brands-table__last-analyzed{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-country-flag__code{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-score-badge{color:#c4c4c4 !important;border-color:#c4c4c4 !important;background-color:rgba(196,196,196,.1) !important}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-rank-badge{color:#c4c4c4 !important;border-color:#c4c4c4 !important;background-color:rgba(196,196,196,.2) !important}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-sentiment-badge{color:#c4c4c4 !important;border-color:#c4c4c4 !important;background-color:rgba(196,196,196,.08) !important}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-sentiment-badge svg{color:#c4c4c4}.rank-math-ai-visibility-brands-table .rank-math-table tbody .rank-math-table-row.is-disabled .rank-math-ai-visibility-sentiment-badge svg path{fill:#c4c4c4 !important}",""]);const l=o},8766:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-brands-toolbar{display:flex;align-items:center;gap:16px}.rank-math-ai-visibility-brands-toolbar__search.components-base-control{flex:0 0 auto;margin:0;width:200px}.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=text],.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=search]{height:36px;border-radius:2px;border-color:#949494;font-size:13px}.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=text]:focus,.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=search]:focus{border-color:#017cba;box-shadow:0 0 0 1px #017cba}.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=text]{padding:0 12px}.rank-math-ai-visibility-brands-toolbar__search.components-base-control input[type=search]{padding:0 5px}",""]);const l=o},9921:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-dashboard{display:flex;flex-direction:column;gap:26px}.rank-math-ai-visibility-dashboard__error{padding:8px 16px;background:#fef0f0;border:1px solid #f66276;border-radius:4px;color:#f66276;font-size:14px}.rank-math-ai-visibility-dashboard__stats{display:flex;gap:16px;margin-top:16px}@media(max-width: 782px){.rank-math-ai-visibility-dashboard__stats{flex-direction:column}}.rank-math-ai-visibility-dashboard__empty{background:#fff;border:1px solid #e0e0e0;border-radius:4px}.rank-math-ai-visibility-dashboard__table-card{background:#fff;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;position:relative}.rank-math-ai-visibility-dashboard__table-card .rank-math-ai-visibility-brands-toolbar{padding:14px 25px;border-bottom:1px solid #e0e0e0;gap:8px}.rank-math-ai-visibility-dashboard__table-card .rank-math-ai-visibility-brands-toolbar__search.components-base-control{width:260px}.rank-math-ai-visibility-dashboard__table-card .rank-math-table-header{display:none}.rank-math-ai-visibility-dashboard__table-card .rank-math-table-card{border:none;border-radius:0;background:rgba(0,0,0,0);box-shadow:none}.rank-math-ai-visibility-dashboard__table-card .rank-math-table-footer,.rank-math-ai-visibility-dashboard__table-card .rank-math-table__pagination{display:flex;justify-content:center}.rank-math-ai-visibility-dashboard__table-card>svg{position:absolute;top:0;left:0;z-index:999;opacity:.5}",""]);const l=o},3484:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,".rank-math-ai-visibility-gated-preview{filter:blur(4px);pointer-events:none;user-select:none}",""]);const l=o},7377:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-reports{display:flex;flex-direction:column;gap:24px}.rank-math-ai-visibility-reports-total-citations .rank-math-ai-visibility-reports__stat-value,.rank-math-ai-visibility-reports-total-mentions .rank-math-ai-visibility-reports__stat-value{font-size:26px}.rank-math-ai-visibility-reports__layout{display:grid;grid-template-columns:1fr 3fr;gap:16px}.rank-math-ai-visibility-reports__filters{display:flex;flex-direction:column;gap:0;padding:0;background:#fff;border:1px solid #e0e0e0;border-radius:4px;align-self:baseline;min-width:0}.rank-math-ai-visibility-reports__filters-header{display:flex;align-items:center;min-height:68px;gap:9px;padding:0 18px 0 24px;border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-reports__filters-header .dashicons{font-size:18px;width:18px;height:18px;color:#9b9b9b;flex-shrink:0}.rank-math-ai-visibility-reports__filters-body{display:flex;flex-direction:column;gap:12px;padding:20px 24px 24px}.rank-math-ai-visibility-reports__filters-header .rank-math-ai-visibility-reports__filters-title{font-size:13px;font-weight:500;line-height:16px;color:#1e1e1e;margin:0 0 2px}.rank-math-ai-visibility-reports__filters-header .rank-math-ai-visibility-reports__filters-subtitle{font-size:12px;line-height:20px;color:#868686;margin:0}.rank-math-ai-visibility-reports__filter-field{display:flex;flex-direction:column;gap:8px}.rank-math-ai-visibility-reports__filter-field .components-base-control__label{font-size:11px;font-weight:600;color:#1e1e1e;letter-spacing:.1px;text-transform:uppercase}.rank-math-ai-visibility-reports__generate-btn{align-self:flex-start;margin-top:24px}.rank-math-ai-visibility-reports__preview{display:flex;flex-direction:column;gap:24px;min-width:0}.rank-math-ai-visibility-reports__empty{display:flex;align-items:center;justify-content:center;min-height:100%;background:#fff;border:1px dashed #e0e0e0;border-radius:4px}.rank-math-ai-visibility-reports__empty p{font-size:14px;color:#9b9b9b;margin:0;text-align:center}.rank-math-ai-visibility-reports__report-card{background:#fff;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden}.rank-math-ai-visibility-reports__preview-header{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:0 18px 0 24px;gap:16px;border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-reports__preview-title-row{display:flex;align-items:center;gap:12px}.rank-math-ai-visibility-reports__preview-title-row .dashicons{font-size:18px;width:18px;height:18px;color:#9b9b9b;flex-shrink:0}.rank-math-ai-visibility-reports__preview-header .rank-math-ai-visibility-reports__preview-title{font-size:13px;font-weight:500;line-height:16px;color:#1e1e1e;margin:0 0 2px}.rank-math-ai-visibility-reports__preview-header .rank-math-ai-visibility-reports__preview-subtitle{font-size:12px;font-weight:300;line-height:20px;color:#868686;margin:0}.rank-math-ai-visibility-reports__preview-actions{display:flex;gap:8px;flex-shrink:0;align-items:center}.rank-math-ai-visibility-reports__report-card-body{padding:30px 20px 20px 20px;display:flex;flex-direction:column;gap:26px;min-width:0;overflow-x:auto}.rank-math-ai-visibility-reports__stat-cards{display:grid;grid-template-columns:repeat(4, 1fr);gap:12px}.rank-math-ai-visibility-reports__stat-card{background:#fff;border:1px solid #e0e0e0;border-radius:4px;display:flex;gap:16px;padding:34px 17px}.rank-math-ai-visibility-reports__stat-icon{display:flex;align-items:center;justify-content:center;min-width:44px;flex-shrink:0;width:45.5px;height:38.52px;border-radius:7.16667px}.rank-math-ai-visibility-reports__stat-icon .dashicons{font-size:20px;width:20px;height:20px}.rank-math-ai-visibility-reports__stat-body{display:flex;flex-direction:column;gap:8px;min-width:0}.rank-math-ai-visibility-reports__stat-label{font-size:12px;white-space:nowrap;gap:8px;display:inline-flex}.rank-math-ai-visibility-reports__stat-value{font-size:30px;font-weight:500;color:#1e1e1e;line-height:1}.rank-math-ai-visibility-reports__stat-value--na{color:#868686;font-weight:400}.rank-math-ai-visibility-reports__report-card-body .rank-math-ai-visibility-data-table__th{padding:15px 18px;font-size:14px;color:#1e1e1e}.rank-math-ai-visibility-reports__report-card-body .rank-math-ai-visibility-data-table__td{padding:10px 16px}.rank-math-ai-visibility-reports__report-card-body .rank-math-ai-visibility-data-table__td--date{color:#868686}.rank-math-ai-visibility-reports__competitors{display:flex;flex-wrap:wrap;gap:7px}.rank-math-ai-visibility-reports__competitor-tag{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 8px;gap:6px;border:1px solid rgba(0,0,0,.1);border-radius:2px;font-weight:400;font-size:12px;line-height:13px;color:rgba(0,0,0,.5)}",""]);const l=o},9559:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-access-gate-modal.components-modal__frame{width:600px;max-width:95vw;max-height:95%}.rank-math-ai-visibility-access-gate-modal .components-modal__content{padding:0}.rank-math-ai-visibility-access-gate-modal__header{display:flex;align-items:center;gap:14px;padding:26px 56px;background:linear-gradient(96deg, #7053c9 0%, #59abf7 100%)}.rank-math-ai-visibility-access-gate-modal__header-icon{flex-shrink:0;color:#fff}.rank-math-ai-visibility-access-gate-modal__header-icon.dashicons,.rank-math-ai-visibility-access-gate-modal__header-icon.rm-icon{width:26px;height:26px;font-size:26px;line-height:1}.rank-math-ai-visibility-access-gate-modal__title{margin:0;font-size:20px;font-weight:500;line-height:1.3;color:#fff !important}.rank-math-ai-visibility-access-gate-modal__body{display:flex;flex-direction:column;gap:24px;padding:32px 56px 28px}.rank-math-ai-visibility-gate__intro{margin:0;font-size:14px;line-height:1.65;color:#4e4e4e}.rank-math-ai-visibility-gate__intro strong{color:#1e1e1e;font-weight:600}.rank-math-ai-visibility-gate__notice{margin:0;padding:12px 16px;font-size:13px;line-height:1.55;color:#1e1e1e;background:#ebf3fa;border-left:3px solid #017cba;border-radius:0 4px 4px 0}.rank-math-ai-visibility-gate__error{margin:0;padding:10px 14px;background-color:#fff3f3;border:1px solid #f0b8b8;border-radius:4px;color:#c0392b;font-size:13px;line-height:1.5}.rank-math-ai-visibility-gate__actions{display:flex}.rank-math-ai-visibility-gate__footnote{margin:-12px 0 0;font-size:12px;color:#757575}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button{background:#16a571;color:#fff;font-size:14px;padding:12px 16px}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button svg{fill:#fff}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button:hover:not(:disabled){background:rgb(18.4,138,94.5090909091);color:#fff !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button:focus-visible{background:#16a571;color:#fff !important;box-shadow:0 0 0 2px #fff,0 0 0 4px #16a571}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button:focus:not(:focus-visible):not(:disabled){background:#16a571;color:#fff !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-gate__cta.components-button:active:not(:disabled){background:rgb(16,120,82.1818181818);color:#fff !important}",""]);const l=o},5367:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-activating-modal.components-modal__frame{width:440px;max-width:95vw}.rank-math-ai-visibility-activating-modal .components-modal__content{display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px 40px 32px;text-align:center}.rank-math-ai-visibility-activating-modal__spinner{margin-bottom:4px}.rank-math-ai-visibility-activating-modal__spinner .components-spinner{width:44px;height:44px;margin:0;color:#017cba}.rank-math-ai-visibility-activating-modal__title{margin:0;font-size:18px;font-weight:500;line-height:1.35;color:#017cba}.rank-math-ai-visibility-activating-modal__subtitle{margin:0;font-size:13px;line-height:1.55;color:#757575}.rank-math-ai-visibility-activating-modal__steps{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0 0;padding:0;list-style:none;text-align:left}.rank-math-ai-visibility-activating-modal__step{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;line-height:1.4;color:#9b9b9b;transition:color .2s ease,opacity .2s ease}.rank-math-ai-visibility-activating-modal__step--done,.rank-math-ai-visibility-activating-modal__step--active{color:#017cba}.rank-math-ai-visibility-activating-modal__step--pending{opacity:.6}.rank-math-ai-visibility-activating-modal__step-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:14px;height:14px;color:currentColor}.rank-math-ai-visibility-activating-modal__step-icon .rm-icon{font-size:13px;line-height:1}.rank-math-ai-visibility-activating-modal__step-circle{display:block;width:12px;height:12px;border:1.4px solid currentColor;border-radius:50%}.rank-math-ai-visibility-activating-modal__step--active .rank-math-ai-visibility-activating-modal__step-circle{border-top-color:rgba(0,0,0,0);animation:rank-math-aiv-step-spin .9s linear infinite}@keyframes rank-math-aiv-step-spin{to{transform:rotate(360deg)}}.rank-math-ai-visibility-trial-success__video{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:280px;padding:32px 24px;background:#131a2a;border-radius:8px;color:#fff}.rank-math-ai-visibility-trial-success__video--idle{cursor:pointer}.rank-math-ai-visibility-trial-success__video--idle:hover,.rank-math-ai-visibility-trial-success__video--idle:focus-visible{outline:none}.rank-math-ai-visibility-trial-success__video--idle:hover .rank-math-ai-visibility-trial-success__video-play,.rank-math-ai-visibility-trial-success__video--idle:focus-visible .rank-math-ai-visibility-trial-success__video-play{opacity:.75;transform:scale(1.1)}.rank-math-ai-visibility-trial-success__video--playing{padding:0;overflow:hidden}.rank-math-ai-visibility-trial-success__video-iframe{display:block;width:100%;height:280px;border:0;border-radius:8px}.rank-math-ai-visibility-trial-success__video-play.dashicons{width:48px;height:48px;font-size:48px;line-height:1;transition:opacity .2s ease,transform .2s ease}.rank-math-ai-visibility-trial-success__video-caption{font-size:12px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase}.rank-math-ai-visibility-trial-success__links{display:flex;align-items:center;gap:28px}.rank-math-ai-visibility-trial-success__link{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:#017cba;text-decoration:none}.rank-math-ai-visibility-trial-success__link .rm-icon{flex-shrink:0;font-size:16px;line-height:1}.rank-math-ai-visibility-trial-success__link:hover,.rank-math-ai-visibility-trial-success__link:focus{color:rgb(.7818181818,96.9454545455,145.4181818182);text-decoration:underline;box-shadow:none}",""]);const l=o},9368:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-add-brand-modal.components-modal__frame{width:585px;max-width:95vw;max-height:85%}.rank-math-ai-visibility-add-brand-modal .components-modal__content{padding:0}.rank-math-ai-visibility-add-brand-modal__header{display:flex;align-items:flex-start;justify-content:space-between;padding:30px 32px 32px 54px}.rank-math-ai-visibility-add-brand-modal__header-text{display:flex;flex-direction:column;gap:6px}.rank-math-ai-visibility-add-brand-modal__title{margin:0;font-size:18px;font-weight:400;line-height:1.3;color:#1e1e1e}.rank-math-ai-visibility-add-brand-modal__subtitle{margin:0;font-size:13px;line-height:1.5;color:#9b9b9b}.rank-math-ai-visibility-add-brand-modal__subtitle a{margin-left:2px}.rank-math-ai-visibility-add-brand-modal__close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:rgba(0,0,0,0);border:none;border-radius:4px;color:#9b9b9b;cursor:pointer;flex-shrink:0;margin-top:-4px}.rank-math-ai-visibility-add-brand-modal__close:hover{background:rgba(0,0,0,.06);color:#1e1e1e}.rank-math-ai-visibility-add-brand-modal__close:focus-visible{outline:2px solid #868686;outline-offset:2px}.rank-math-ai-visibility-add-brand-modal__close[aria-expanded=true],.rank-math-ai-visibility-add-brand-modal__close:hover:not(:disabled,[aria-disabled=true]){background:rgba(0,0,0,0);color:inherit}.rank-math-ai-visibility-add-brand-modal__close:focus:not(:active){box-shadow:none}.rank-math-ai-visibility-add-brand-modal__divider{margin:0;border:none;border-top:1px solid #e0e0e0}.rank-math-ai-visibility-add-brand-modal__body{display:flex;flex-direction:column;gap:22px;padding:36px 56px}.rank-math-ai-visibility-add-brand-modal__field{display:flex;flex-direction:column;gap:6px}.rank-math-ai-visibility-add-brand-modal__label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#1e1e1e}.rank-math-ai-visibility-add-brand-modal__info-icon{color:#9b9b9b;flex-shrink:0}.rank-math-ai-visibility-add-brand-modal__field-note{margin:4px 0 0;font-size:12px;color:#9b9b9b}.rank-math-ai-visibility-add-brand-modal__field-note--error{color:#f66276}.rank-math-ai-visibility-add-brand-modal .components-base-control__label,.rank-math-ai-visibility-add-brand-modal .components-input-control__label{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#1e1e1e}.rank-math-ai-visibility-add-brand-modal .rank-math-select-with-searchbox{max-width:100%}.rank-math-ai-visibility-add-brand-modal .rank-math-select-with-searchbox .components-button{font-weight:normal;font-size:inherit;font-family:inherit;line-height:inherit}.rank-math-ai-visibility-add-brand-modal__field--error .components-text-control__input,.rank-math-ai-visibility-add-brand-modal__field--error .components-textarea-control__input{border-color:#f66276}.rank-math-ai-visibility-add-brand-modal__field--error .components-text-control__input:focus,.rank-math-ai-visibility-add-brand-modal__field--error .components-textarea-control__input:focus{box-shadow:0 0 0 1px #f66276;border-color:#f66276}.rank-math-ai-visibility-add-brand-modal__field--error .components-base-control__help{color:#f66276}.rank-math-ai-visibility-add-brand-modal .components-base-control{margin-bottom:0}.rank-math-ai-visibility-add-brand-modal__platforms{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:row;gap:10px 16px;margin-top:4px}.rank-math-ai-visibility-add-brand-modal__platform-row{display:flex;align-items:center;gap:8px}.rank-math-ai-visibility-add-brand-modal__platform-row .components-checkbox-control{margin-bottom:0}.rank-math-ai-visibility-add-brand-modal__platform-row .components-checkbox-control__input-container,.rank-math-ai-visibility-add-brand-modal__platform-row .components-checkbox-control__label{cursor:pointer}.rank-math-ai-visibility-add-brand-modal__platform-row--disabled{opacity:.65}.rank-math-ai-visibility-add-brand-modal__platform-row--disabled .components-checkbox-control__input-container,.rank-math-ai-visibility-add-brand-modal__platform-row--disabled .components-checkbox-control__label{cursor:not-allowed}.rank-math-ai-visibility-add-brand-modal__coming-soon{display:inline-flex;align-items:center;padding:0px 4px;background-color:rgba(183,183,183,.1411764706);color:#9d9d9d;font-size:10px;font-weight:500;white-space:nowrap;flex-shrink:0;border:1px solid rgba(183,183,183,.1294117647);border-radius:2px}.rank-math-ai-visibility-add-brand-modal__api-error{margin:0 54px 0 54px;padding:10px 14px;background-color:#fff3f3;border:1px solid #f0b8b8;border-radius:4px;color:#c0392b;font-size:13px;line-height:1.5}.rank-math-ai-visibility-add-brand-modal__footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:20px 54px 24px 24px}.rank-math-ai-visibility-add-brand-modal__footer .components-button.is-primary{min-height:40px;padding:12px 16px;font-weight:300}.rank-math-ai-visibility-add-brand-modal__footer .components-button.is-secondary{min-height:40px;padding:12px 16px;color:#757575;border-color:#949494}.rank-math-ai-visibility-add-brand-modal .rank-math-ai-visibility-add-brand-modal__close{padding:0px;color:#9b9b9b}",""]);const l=o},1655:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-checkout-iframe{display:block;width:100%;height:100%;border:0}.rank-math-ai-visibility-checkout-iframe__state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;height:72vh;background:#fff}.rank-math-ai-visibility-checkout-iframe__error{margin:0;max-width:360px;font-size:14px;color:#4e4e4e;text-align:center}",""]);const l=o},9034:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-confirm-modal .components-modal__content{padding-bottom:0}.rank-math-ai-visibility-confirm-modal__message{margin:0 0 24px;font-size:14px;line-height:1.6;color:#1e1e1e}.rank-math-ai-visibility-confirm-modal__footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:20px 0 28px;border-top:1px solid #e0e0e0;margin-top:4px}.rank-math-ai-visibility-confirm-modal__footer .components-button{min-height:36px;padding:8px 16px;font-size:13px;font-weight:500}.rank-math-ai-visibility-confirm-modal__footer .components-button.is-secondary{color:#5c5f62;border-color:#8c9196}.rank-math-ai-visibility-confirm-modal__footer .components-button.is-secondary:hover:not(:disabled){color:#1d2327;border-color:#5c5f62;background:rgba(0,0,0,.04)}.rank-math-ai-visibility-confirm-modal__footer .components-button.is-primary.is-destructive{background:#f66276;border-color:#f66276;color:#fff}.rank-math-ai-visibility-confirm-modal__footer .components-button.is-primary.is-destructive:hover:not(:disabled){background:rgb(243.7879518072,59.4120481928,84.3277108434);border-color:rgb(243.7879518072,59.4120481928,84.3277108434)}",""]);const l=o},1664:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,".rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{top:32px;left:160px;z-index:999999}body.folded .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{left:36px}body.rtl .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{left:0;right:160px}body.rtl.folded .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{right:36px}@media(max-width: 960px){body.auto-fold .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{left:36px}body.rtl.auto-fold .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{left:0;right:36px}}@media(max-width: 782px){.rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{top:46px}.rank-math-ai-visibility-content-overlay.components-modal__screen-overlay,body.folded .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay,body.auto-fold .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay,body.rtl .rank-math-ai-visibility-content-overlay.components-modal__screen-overlay{left:0;right:0}}body:has(.rank-math-ai-visibility-content-overlay) #wpfooter{position:relative;z-index:100001}",""]);const l=o},5357:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-feature-checklist{display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}.rank-math-ai-visibility-feature-checklist__item{display:flex;align-items:center;gap:14px;margin:0}.rank-math-ai-visibility-feature-checklist__icon.dashicons{flex-shrink:0;width:20px;height:20px;font-size:20px;line-height:1;color:#16a571}.rank-math-ai-visibility-feature-checklist__label{font-size:14px;line-height:1.4;color:#1e1e1e}",""]);const l=o},3771:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-upgrade-plan-modal.components-modal__frame{width:1060px;max-width:95vw;max-height:92vh}.rank-math-ai-visibility-upgrade-plan-modal .components-modal__content{padding:0}.rank-math-ai-visibility-upgrade-plan-modal__header{display:flex;align-items:flex-start;gap:14px;padding:24px 32px}.rank-math-ai-visibility-upgrade-plan-modal__header-icon.dashicons{flex-shrink:0;margin-top:2px;width:24px;height:24px;font-size:24px;line-height:1;color:#1e1e1e}.rank-math-ai-visibility-upgrade-plan-modal__header-text{display:flex;flex-direction:column;gap:4px;flex:1}.rank-math-ai-visibility-upgrade-plan-modal__title{margin:0;font-size:18px;font-weight:600;line-height:1.3;color:#1e1e1e}.rank-math-ai-visibility-upgrade-plan-modal__subtitle{margin:0;font-size:13px;line-height:1.5;color:#757575}.rank-math-ai-visibility-upgrade-plan-modal__close.components-button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;flex-shrink:0;background:rgba(0,0,0,0);border:1px solid #e0e0e0;border-radius:4px;color:#9b9b9b;cursor:pointer}.rank-math-ai-visibility-upgrade-plan-modal__close.components-button:hover:not(:disabled){background:rgba(0,0,0,.04);color:#1e1e1e !important}.rank-math-ai-visibility-upgrade-plan-modal__close.components-button:focus-visible{outline:2px solid #017cba;outline-offset:2px;box-shadow:none}.rank-math-ai-visibility-upgrade-plan-modal__close.components-button:focus:not(:active){box-shadow:none}.rank-math-ai-visibility-upgrade-plan-modal__body{background:linear-gradient(96deg, #7053c9 0%, #59abf7 100%)}.rank-math-ai-visibility-upgrade-plan-modal__body iframe{display:block;width:100%;height:72vh;border:0}.rank-math-ai-visibility-upgrade-plan-modal__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 32px;background:#fff}.rank-math-ai-visibility-upgrade-plan-modal__guarantee{margin:0;font-size:13px;color:#4e4e4e}.rank-math-ai-visibility-upgrade-plan-modal__later.components-button{padding:0;height:auto;font-size:14px;font-weight:500;color:#017cba;background:rgba(0,0,0,0);border:none;box-shadow:none;text-decoration:none}.rank-math-ai-visibility-upgrade-plan-modal__later.components-button:hover:not(:disabled){color:rgb(.7818181818,96.9454545455,145.4181818182) !important;text-decoration:underline;background:rgba(0,0,0,0)}.rank-math-ai-visibility-upgrade-plan-modal__later.components-button:focus-visible{outline:2px solid #017cba;outline-offset:2px;box-shadow:none}.rank-math-ai-visibility-upgrade-plan-modal__later.components-button:focus:not(:focus-visible){box-shadow:none}",""]);const l=o},6424:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-action-buttons{display:grid;grid-template-columns:repeat(3, 28px);gap:8px;align-items:center;flex-shrink:0}.rank-math-ai-visibility-action-buttons .dashicons,.rank-math-ai-visibility-action-buttons svg{height:16px;width:16px;font-size:16px;line-height:1;flex-shrink:0}.rank-math-ai-visibility-action-buttons svg path,.rank-math-ai-visibility-action-buttons svg circle{fill:currentColor}.rank-math-ai-visibility-action-buttons .rank-math-ai-visibility-btn--icon.components-button{width:28px;height:28px;min-width:unset;padding:0;gap:0;border:none;background:rgba(0,0,0,0);box-shadow:none;position:relative;overflow:visible;z-index:1}.rank-math-ai-visibility-action-buttons .rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled),.rank-math-ai-visibility-action-buttons .rank-math-ai-visibility-btn--icon.components-button:focus:not(:disabled){background:rgba(0,0,0,0);box-shadow:none}.rank-math-ai-visibility-action-buttons .rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled){z-index:10}.rank-math-ai-visibility-action-buttons .rank-math-ai-visibility-btn--icon.components-button:focus-visible{outline:none;box-shadow:none}.rank-math-ai-visibility-action-buttons__inner{box-sizing:border-box;position:absolute;left:0;top:0;height:28px;display:flex;align-items:center;padding:0 6px;border-radius:2px;white-space:nowrap;min-width:28px;box-shadow:0 0 0 1px #c6c6c6;background:rgba(0,0,0,0);color:#757575;pointer-events:none;transition:min-width .2s ease,box-shadow .15s ease,background .15s ease,color .15s ease}.rank-math-ai-visibility-action-buttons__inner>span:not(.rank-math-ai-visibility-action-buttons__label){flex-shrink:0;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;line-height:1}.rank-math-ai-visibility-action-buttons__label{max-width:0;overflow:hidden;opacity:0;white-space:nowrap;font-size:12px;line-height:1;transition:max-width .2s ease,opacity .15s ease,margin-left .15s ease}.rank-math-ai-visibility-action-buttons__view.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__inner{box-shadow:0 0 0 1px #42b268;color:#42b268}.rank-math-ai-visibility-action-buttons__view.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner{min-width:64px;box-shadow:0 0 0 1px #198b3f;background:#f0f9f3;color:#198b3f}.rank-math-ai-visibility-action-buttons__view.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__label{max-width:50px;opacity:1;margin-left:4px}.rank-math-ai-visibility-action-buttons__edit.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner{min-width:64px;box-shadow:0 0 0 1px #9b9b9b;background:#f8f8f8;color:#383838}.rank-math-ai-visibility-action-buttons__edit.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__label{max-width:40px;opacity:1;margin-left:4px}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__inner{right:0;left:auto;flex-direction:row-reverse;box-shadow:0 0 0 1px #017cba;color:#017cba}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__label{transition:max-width .2s ease,opacity .15s ease,margin-right .15s ease}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner{min-width:64px;box-shadow:0 0 0 1px #006ba1;background:#ebf5fa;color:#006ba1}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__label{max-width:36px;opacity:1;margin-right:4px}.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__inner{box-shadow:0 0 0 1px #f66276;color:#f66276}.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner{box-shadow:0 0 0 1px #f66276;background:#fff9fa;color:#f24f65}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__inner,.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__inner{right:0;left:auto;flex-direction:row-reverse}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__label,.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button .rank-math-ai-visibility-action-buttons__label{transition:max-width .2s ease,opacity .15s ease,margin-right .15s ease}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner,.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__inner{min-width:64px}.rank-math-ai-visibility-action-buttons__inactive.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__label,.rank-math-ai-visibility-action-buttons__active.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled) .rank-math-ai-visibility-action-buttons__label{max-width:80px;opacity:1;margin-right:4px}",""]);const l=o},5089:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-btn.components-button{padding:10px 12px;gap:8px;border-radius:2px;font-size:13px;font-weight:400;line-height:1;white-space:nowrap;cursor:pointer;height:auto}.rank-math-ai-visibility-btn--primary.components-button{background:#017cba;color:#fff;border:none;box-shadow:none}.rank-math-ai-visibility-btn--primary.components-button:hover:not(:disabled){background:rgb(.7818181818,96.9454545455,145.4181818182);color:#fff !important;box-shadow:none}.rank-math-ai-visibility-btn--primary.components-button:focus-visible{background:#017cba;color:#fff !important;box-shadow:0 0 0 2px #fff,0 0 0 4px #017cba;outline:none}.rank-math-ai-visibility-btn--primary.components-button:focus:not(:focus-visible):not(:disabled){background:#017cba;color:#fff !important;box-shadow:none;outline:none}.rank-math-ai-visibility-btn--primary.components-button:active:not(:disabled){background:rgb(.6727272727,83.4181818182,125.1272727273);color:#fff !important;box-shadow:none}.rank-math-ai-visibility-btn--primary.components-button:disabled,.rank-math-ai-visibility-btn--primary.components-button[aria-disabled=true]{opacity:.6;cursor:not-allowed}.rank-math-ai-visibility-btn--secondary.components-button{background:rgba(0,0,0,0);color:#4e4e4e;border:1px solid #949494;border-radius:2px;box-shadow:none}.rank-math-ai-visibility-btn--secondary.components-button:hover:not(:disabled){background:rgba(0,0,0,0);color:#4e4e4e !important;border-color:#4e4e4e;box-shadow:none}.rank-math-ai-visibility-btn--secondary.components-button:focus-visible{color:#4e4e4e !important;box-shadow:none;outline:2px solid #017cba;outline-offset:2px}.rank-math-ai-visibility-btn--secondary.components-button:focus:not(:focus-visible):not(:disabled){color:#4e4e4e !important;box-shadow:none;outline:none}.rank-math-ai-visibility-btn--secondary.components-button:disabled,.rank-math-ai-visibility-btn--secondary.components-button[aria-disabled=true]{opacity:.6;cursor:not-allowed}.rank-math-ai-visibility-btn--icon.components-button{width:28px;height:28px;min-width:0;padding:0;border:1px solid #e0e0e0;border-radius:4px;background:rgba(0,0,0,0);color:#9b9b9b;box-shadow:none;transition:background .15s ease,color .15s ease,border-color .15s ease;display:inline-flex;align-items:center;justify-content:center}.rank-math-ai-visibility-btn--icon.components-button svg{display:block;flex-shrink:0}.rank-math-ai-visibility-btn--icon.components-button:hover:not(:disabled){background:rgba(0,0,0,.05);color:#9b9b9b}.rank-math-ai-visibility-btn--icon.components-button:focus-visible{outline:2px solid #017cba;outline-offset:2px;box-shadow:none}.rank-math-ai-visibility-btn--icon.components-button:disabled,.rank-math-ai-visibility-btn--icon.components-button[aria-disabled=true]{opacity:.6;cursor:not-allowed}.rank-math-ai-visibility-btn--primary.components-button.is-destructive{background:#f66276;color:#fff;border:none}.rank-math-ai-visibility-btn--primary.components-button.is-destructive:hover:not(:disabled){background:rgb(243.7879518072,59.4120481928,84.3277108434);color:#fff !important}.rank-math-ai-visibility-btn--icon-danger.components-button{color:#f66276;border-color:#f66276;background:rgba(246,98,118,.08)}.rank-math-ai-visibility-btn--icon-danger.components-button svg{fill:#f66276}.rank-math-ai-visibility-btn--icon-danger.components-button:hover:not(:disabled){background:rgba(246,98,118,.14);color:#f66276}.rank-math-ai-visibility-btn--icon-active.components-button{color:#017cba;border-color:#017cba;background:rgba(1,124,186,.08)}.rank-math-ai-visibility-btn--icon-active.components-button svg{fill:#017cba}.rank-math-ai-visibility-btn--icon-active.components-button:hover:not(:disabled){background:rgba(1,124,186,.14);color:#017cba}.rank-math-ai-visibility-btn__icon-left,.rank-math-ai-visibility-btn__icon-right{display:inline-flex;align-items:center;flex-shrink:0;line-height:0}.rank-math-ai-visibility-btn__icon-left svg,.rank-math-ai-visibility-btn__icon-right svg{display:block;width:16px;height:16px}.rank-math-ai-visibility-btn.rank-math-ai-visibility-view-transcript{padding:7px 8px;gap:6px;background:rgba(0,0,0,0) !important;border:1px solid #42b268 !important;border-radius:2px;font-size:12px;color:#42b268 !important;box-shadow:none !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-view-transcript:hover:not(:disabled){background:#f0f9f3 !important;color:#198b3f !important;border-color:#198b3f !important;box-shadow:none !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-view-transcript:focus-visible{outline:none !important;box-shadow:none !important;color:#42b268 !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-view-transcript:focus:not(:focus-visible){box-shadow:none !important;outline:none !important;color:#42b268 !important}.rank-math-ai-visibility-btn.rank-math-ai-visibility-view-transcript .dashicons{color:#42b268;height:13px;width:13px;font-size:14px}.components-modal__header button.components-button{color:#9b9b9b;background:rgba(0,0,0,0);box-shadow:none}.components-modal__header button.components-button:hover:not(:disabled){background:rgba(0,0,0,.06);color:#1e1e1e !important;box-shadow:none}.components-modal__header button.components-button:focus-visible{outline:2px solid #017cba;outline-offset:2px;box-shadow:none;color:#1e1e1e !important}.components-modal__header button.components-button:focus:not(:focus-visible){box-shadow:none}.components-modal__header button.components-button svg{fill:currentColor}",""]);const l=o},627:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-count-badge{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:12px;font-weight:400;color:#1e1e1e;line-height:1;background:rgba(0,0,0,.05)}.rank-math-ai-visibility-count-badge--citations{background:rgba(66,178,104,.08)}.rank-math-ai-visibility-count-badge--mentions{background:rgba(223,150,44,.08)}",""]);const l=o},5975:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-country-flag{display:inline-flex;align-items:center;gap:2px;height:16px;padding:0 6px;border-radius:2px;border:1px solid #cecece;background:rgba(109,122,135,.0901960784);font-size:11px;font-weight:400;line-height:1;white-space:nowrap;color:#9b9b9b}.rank-math-ai-visibility-country-flag__emoji{font-size:11px;line-height:1}.rank-math-ai-visibility-country-flag__code{font-size:11px;line-height:1}",""]);const l=o},479:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-data-table{width:100%;border-collapse:collapse;font-size:13px;border:1px solid #e0e0e0;background:#fff}.rank-math-ai-visibility-data-table__th{padding:14px 22px;text-align:left;font-size:12px;font-weight:500;color:#3c434a;border-bottom:1px solid #e0e0e0;background:#f9f9f9;white-space:nowrap}.rank-math-ai-visibility-data-table__row{border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-data-table__row:last-child{border-bottom:none}.rank-math-ai-visibility-data-table__row:hover{background:rgba(0,0,0,.01)}.rank-math-ai-visibility-data-table__td{padding:14px 22px;vertical-align:middle;color:#1e1e1e;line-height:1.5}",""]);const l=o},6135:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-date-input{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 8px;border:1px solid #949494;border-radius:2px}.rank-math-ai-visibility-date-input:focus-within{border-color:#949494 !important;box-shadow:0 0 0 2px rgba(148,148,148,.15) !important}.rank-math-ai-visibility-date-input input{border:none;color:#383838;padding:0;min-width:auto;width:auto;min-height:auto}.rank-math-ai-visibility-date-input input:focus{border:none !important;box-shadow:none !important;outline:none !important}.rank-math-ai-visibility-date-input input::-webkit-datetime-edit{max-width:max-content}.rank-math-ai-visibility-date-input input::-webkit-calendar-picker-indicator{opacity:.5;background-size:14px;padding-left:4px}",""]);const l=o},6583:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:100px 0}.rank-math-ai-visibility-empty-state__icon{width:60px;height:60px;border-radius:40px;background:rgba(57,116,198,.1);padding:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box}.rank-math-ai-visibility-empty-state__icon svg{width:28px;height:28px;fill:#017cba}.rank-math-ai-visibility-empty-state .rank-math-ai-visibility-empty-state__heading{margin:0 0 8px 0;font-size:28px;font-weight:400;line-height:34px;color:#1e1e1e}.rank-math-ai-visibility-empty-state .rank-math-ai-visibility-empty-state__description{margin:0 0 15px 0;font-size:16px;font-weight:300;line-height:23px;color:#868686;max-width:580px}.rank-math-ai-visibility-empty-state .components-button.rank-math-ai-visibility-btn.rank-math-ai-visibility-empty-state__cta{font-weight:300}",""]);const l=o},6574:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-page-topbar{display:flex;align-items:center;justify-content:space-between}.rank-math-ai-visibility-page-topbar__left{display:flex;align-items:center;gap:16px;font-size:14px}.rank-math-ai-visibility-page-topbar__title{font-size:16px;font-weight:500;color:#1e1e1e}.rank-math-ai-visibility-page-topbar__actions{display:flex;align-items:center;gap:8px}",""]);const l=o},6558:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0;border-radius:50%;border-width:1px;border-style:solid;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;flex-shrink:0}.rank-math-ai-visibility-rank-badge--rank-1{color:#42b268;background-color:rgba(66,178,104,.1019607843);border-color:#42b268}.rank-math-ai-visibility-rank-badge--rank-3{color:#f66276;background-color:rgba(246,98,118,.1019607843);border-color:#f66276}.rank-math-ai-visibility-rank-badge--rank-2{color:#f2b02d;background-color:rgba(242,176,45,.1019607843);border-color:#f2b02d}.rank-math-ai-visibility-rank-badge--neutral{color:#b7b7b7;background-color:rgba(183,183,183,.1019607843);border-color:#b7b7b7}",""]);const l=o},4236:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-score-badge{display:inline-flex;align-items:center;padding:3px 6px;border-radius:2px;font-size:11px;font-weight:600;white-space:nowrap;border:1px solid #b7b7b7;background:rgba(183,183,183,.1);color:#b7b7b7;min-width:44px;justify-content:center}.rank-math-ai-visibility-score-badge--good{background:rgba(66,178,104,.1);border-color:#42b268;color:#198b3f}.rank-math-ai-visibility-score-badge--average{background:rgba(232,166,35,.1);border-color:#e8a623;color:#d18e08}.rank-math-ai-visibility-score-badge--poor{background:rgba(246,98,118,.1);border-color:#f66276;color:#f66276}",""]);const l=o},3269:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-section-header{display:flex;flex-direction:column;gap:8px}.rank-math-ai-visibility-section-header .rank-math-ai-visibility-section-header__title{margin:0;font-size:18px;font-weight:500;line-height:26px;color:#1e1e1e}.rank-math-ai-visibility-section-header .rank-math-ai-visibility-section-header__subtitle{margin:0;font-size:12px;font-weight:400;line-height:16px;color:#868686}",""]);const l=o},7497:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-sentiment-badge{display:inline-flex;align-items:center;gap:4px;height:18px;padding:0 6px;border-radius:20px;border-width:1px;border-style:solid;font-size:12px;font-weight:400;line-height:1;white-space:nowrap;min-width:40px;justify-content:center}.rank-math-ai-visibility-sentiment-badge--positive{color:#42b268;background-color:rgba(66,178,104,.0784313725);border-color:#42b268}.rank-math-ai-visibility-sentiment-badge--warning{color:#f2b02d;background-color:#F2B02D14;border-color:#f2b02d}.rank-math-ai-visibility-sentiment-badge--negative{color:#f66276;background-color:rgba(246,98,118,.0784313725);border-color:#f66276}.rank-math-ai-visibility-sentiment-badge--neutral{color:#b7b7b7;background-color:#B7B7B714;border-color:#b7b7b7}.rank-math-ai-visibility-sentiment-badge__icon{flex-shrink:0;display:inline-flex}.rank-math-ai-visibility-sentiment-badge__label{font-size:11px;font-weight:bold}",""]);const l=o},6082:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-processed-start-time{color:#868686}",""]);const l=o},1297:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-stat-card{background:#fff;border:1px solid #e0e0e0;border-radius:4px;padding:40px 24px;display:flex;flex-direction:row;align-items:flex-start;gap:20px;flex:1 1 0;min-width:0}.rank-math-ai-visibility-stat-card__icon-wrap{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:42px;background:var(--stat-icon-bg, #f0f0f0);border-radius:6px}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--score .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(1,124,186,.1215686275)}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--score .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#017cba}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--mentions .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(223,150,44,.1215686275)}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--mentions .rank-math-ai-visibility-stat-card__icon-wrap svg{fill:#df962c}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--mentions .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#df962c}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--sentiment .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(82,96,185,.1215686275)}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--sentiment .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#5260b9}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--competitor .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(246,98,118,.1215686275)}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--competitor .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#f66276}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--citations .rank-math-ai-visibility-stat-card__icon-wrap,.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--rank .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(66,178,104,.08)}.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--citations .rank-math-ai-visibility-stat-card__icon-wrap .dashicons,.rank-math-ai-visibility-stat-card.rank-math-ai-visibility-brand-overview__stat-card--rank .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#42b268}.rank-math-ai-visibility-stat-card__icon{width:24px;height:24px;flex-shrink:0;fill:var(--stat-icon-color, #9b9b9b);color:var(--stat-icon-color, #9b9b9b)}.rank-math-ai-visibility-stat-card__icon.dashicons{width:20px;height:20px;font-size:20px;line-height:1}.rank-math-ai-visibility-stat-card__content{display:flex;flex-direction:column;gap:11px;min-width:0}.rank-math-ai-visibility-stat-card__label-row{display:flex;align-items:center;gap:8px}.rank-math-ai-visibility-stat-card__label{font-size:16px;line-height:normal;font-weight:400;color:#9b9b9b}.rank-math-ai-visibility-stat-card--has-data .rank-math-ai-visibility-stat-card__label,.rank-math-ai-visibility-stat-card--has-data .rank-math-ai-visibility-stat-card__value{color:inherit}.rank-math-ai-visibility-stat-card__data{display:flex;flex-direction:column;gap:8px;min-width:0}.rank-math-ai-visibility-stat-card__value{font-size:30px;font-weight:600;line-height:32px;color:#9b9b9b}.rank-math-ai-visibility-stat-card--active-brands{--stat-icon-bg: #017CBA1F;--stat-icon-color: #017CBA}.rank-math-ai-visibility-stat-card--analyses{--stat-icon-bg: #5260B91F;--stat-icon-color: #5260B9}.rank-math-ai-visibility-stat-card--mentions{--stat-icon-bg: #E8A6231F;--stat-icon-color: #E8A623}.rank-math-ai-visibility-stat-card--target-brand .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(1,124,186,.1215686275)}.rank-math-ai-visibility-stat-card--target-brand .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#017cba}.rank-math-ai-visibility-stat-card--duration-timing .rank-math-ai-visibility-stat-card__icon-wrap{background:rgba(82,96,185,.1215686275)}.rank-math-ai-visibility-stat-card--duration-timing .rank-math-ai-visibility-stat-card__icon-wrap .dashicons{color:#5260b9}.rank-math-ai-visibility-stat-card--compact{padding:20px}.rank-math-ai-visibility-stat-card__sub{font-size:12px;color:#9b9b9b;margin-top:2px}",""]);const l=o},162:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-status-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:400;padding:2px 6px 2px 3px;border-radius:20px;flex-shrink:0;white-space:nowrap;line-height:1}.rank-math-ai-visibility-status-badge svg{flex-shrink:0}.rank-math-ai-visibility-status-badge .dashicons{height:14px;width:14px;font-size:14px}.rank-math-ai-visibility-status-badge--success{color:#42b268;background:rgba(66,178,104,.1);border:1px solid rgba(66,178,104,.35)}.rank-math-ai-visibility-status-badge--error{color:#f66276;background:rgba(246,98,118,.1);border:1px solid rgba(246,98,118,.35)}.rank-math-ai-visibility-status-badge--partial{color:#f2b02d;background:rgba(242,176,45,.1);border:1px solid rgba(242,176,45,.35)}",""]);const l=o},7482:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-status-icon{position:relative;display:inline-flex;width:26px;height:26px;flex-shrink:0;vertical-align:middle}.rank-math-ai-visibility-status-icon__pill{position:absolute;top:50%;left:0;transform:translateY(-50%);display:inline-flex;align-items:center;border-radius:100px;border:1px solid rgba(0,0,0,0);padding:4px;background:#fff;cursor:default;white-space:nowrap;transition:background .18s ease}.rank-math-ai-visibility-status-icon .dashicons{width:16px;height:16px;font-size:16px}.rank-math-ai-visibility-status-icon .dashicons.dashicons-update{font-weight:100;animation:spin 2s linear infinite}.rank-math-ai-visibility-status-icon:hover{z-index:10}.rank-math-ai-visibility-status-icon--error .rank-math-ai-visibility-status-icon__pill{color:#e05252;border-color:#e05252}.rank-math-ai-visibility-status-icon--error:hover .rank-math-ai-visibility-status-icon__pill{background:#fceeee}.rank-math-ai-visibility-status-icon--running .rank-math-ai-visibility-status-icon__pill,.rank-math-ai-visibility-status-icon--pending .rank-math-ai-visibility-status-icon__pill{color:#e08c1a;border-color:#e08c1a}.rank-math-ai-visibility-status-icon--running:hover .rank-math-ai-visibility-status-icon__pill,.rank-math-ai-visibility-status-icon--pending:hover .rank-math-ai-visibility-status-icon__pill{background:#fcf3e8}.rank-math-ai-visibility-status-icon__label{font-size:12px;font-weight:500;line-height:1;max-width:0;overflow:hidden;opacity:0;transition:max-width .18s ease,opacity .15s ease,margin-left .15s ease}.rank-math-ai-visibility-status-icon:hover .rank-math-ai-visibility-status-icon__label{max-width:60px;opacity:1;margin-left:4px}",""]);const l=o},1623:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-status-toggle.components-checkbox-control{margin-bottom:0}.rank-math-ai-visibility-status-toggle .components-base-control__field{display:flex;align-items:center;margin:0}.rank-math-ai-visibility-status-toggle .components-h-stack{gap:8px !important}.rank-math-ai-visibility-status-toggle .components-checkbox-control__input-container{flex-shrink:0;margin:0}.rank-math-ai-visibility-status-toggle .components-checkbox-control__input[type=checkbox]{margin:0}.rank-math-ai-visibility-status-toggle .components-checkbox-control__input[type=checkbox]:checked{background-color:#017cba;border-color:#017cba}.rank-math-ai-visibility-status-toggle .components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #017cba}.rank-math-ai-visibility-status-toggle .components-checkbox-control__label{font-size:13px;font-weight:400;color:#1e1e1e;line-height:1;margin:0}.rank-math-ai-visibility-status-toggle .components-checkbox-control__input[type=checkbox]:disabled{opacity:.6}",""]);const l=o},7340:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,'@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-transcript-modal{display:grid;grid-template-columns:56fr 44fr;flex:1 1 0;min-height:0;overflow:hidden;height:100%;max-height:50vh}.rank-math-ai-visibility-transcript-modal__modal-title{display:flex;align-items:center;justify-content:center;gap:8px}.rank-math-ai-visibility-transcript-modal__wrapper .components-modal__frame{max-width:1130px;width:92vw;max-height:90vh;display:flex !important;flex-direction:column !important}.rank-math-ai-visibility-transcript-modal__wrapper .components-modal__header{flex-shrink:0;padding:22px 28px;border-bottom:1px solid #e0e0e0}.rank-math-ai-visibility-transcript-modal__wrapper .components-modal__header .components-modal__header-heading{font-size:13px}.rank-math-ai-visibility-transcript-modal__wrapper .components-modal__content{padding:0 !important;overflow:hidden;flex:1 1 0;min-height:0;display:flex;flex-direction:column}.rank-math-ai-visibility-transcript-modal__section-right{flex:1}.rank-math-ai-visibility-transcript-modal__left,.rank-math-ai-visibility-transcript-modal__right{display:flex;flex-direction:column;height:100%;overflow:hidden}.rank-math-ai-visibility-transcript-modal__sections,.rank-math-ai-visibility-transcript-modal__json-viewer{flex:1;overflow-y:auto;min-height:0}.rank-math-ai-visibility-transcript-modal__left{display:flex;flex-direction:column;gap:4px;padding:25px;background:#fff;border-right:1px solid #e0e0e0;overflow-y:auto}.rank-math-ai-visibility-transcript-modal__left-header{display:flex;justify-content:flex-end}.rank-math-ai-visibility-transcript-modal__copy-btn.rank-math-ai-visibility-btn.components-button{font-size:12px;padding:4px 10px;min-height:28px;height:28px;color:#9b9b9b;border-color:#e0e0e0;background:rgba(0,0,0,0)}.rank-math-ai-visibility-transcript-modal__copy-btn.rank-math-ai-visibility-btn.components-button:hover{color:#017cba;border-color:#017cba;background:rgba(0,0,0,0)}.rank-math-ai-visibility-transcript-modal__copy-btn.rank-math-ai-visibility-btn.components-button .dashicons{font-size:13px;width:13px;height:13px}.rank-math-ai-visibility-transcript-modal__right .rank-math-ai-visibility-transcript-modal__copy-json-btn.rank-math-ai-visibility-btn.components-button{color:#c6c6c6;border-color:#c6c6c6}.rank-math-ai-visibility-transcript-modal__sections{gap:40px;display:flex;flex-direction:column}.rank-math-ai-visibility-transcript-modal__section{display:flex;gap:10px}.rank-math-ai-visibility-transcript-modal__section-label{display:flex;align-items:center;gap:10px;font-size:12px;color:#868686;font-weight:500;margin-bottom:8px}.rank-math-ai-visibility-transcript-modal__section-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:30px;border-radius:50%;background:#fff;border:1px solid #e3e3e3;color:#1e1e1e}.rank-math-ai-visibility-transcript-modal__section-icon .dashicons{font-size:16px;width:16px;height:16px}.rank-math-ai-visibility-transcript-modal__content-box{padding:20px 24px;border:1px solid #e0e0e0;border-radius:0 11px 11px 11px;font-size:12px;color:#1e1e1e;line-height:1.6;background:#fff;white-space:pre-wrap}.rank-math-ai-visibility-transcript-modal__content-box--response{max-height:280px;overflow-y:auto}.rank-math-ai-visibility-transcript-modal__right{display:flex;flex-direction:column;background:#1c1c1c;overflow:hidden}.rank-math-ai-visibility-transcript-modal__right-header{display:flex;align-items:center;justify-content:space-between;padding:20px 40px;flex-shrink:0}.rank-math-ai-visibility-transcript-modal__right-title{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;color:#c6c6c6}.rank-math-ai-visibility-transcript-modal__json-badge{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff;font-size:11px;font-weight:400;color:#1e1e1e;font-family:monospace}.rank-math-ai-visibility-transcript-modal__copy-json-btn.rank-math-ai-visibility-btn.components-button{font-size:12px;padding:4px 10px;min-height:28px;height:28px;color:#9ca3af;background:hsla(0,0%,100%,.06);border:1px solid hsla(0,0%,100%,.12)}.rank-math-ai-visibility-transcript-modal__copy-json-btn.rank-math-ai-visibility-btn.components-button:hover{color:#e5e7eb;background:hsla(0,0%,100%,.12);border-color:hsla(0,0%,100%,.25)}.rank-math-ai-visibility-transcript-modal__copy-json-btn.rank-math-ai-visibility-btn.components-button .dashicons{font-size:13px;width:13px;height:13px}.rank-math-ai-visibility-transcript-modal__json-viewer{flex:1;overflow-y:auto;padding:0 40px}.rank-math-ai-visibility-transcript-modal__json-pre{margin:0;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:1.7;color:#d1d5db;white-space:pre;overflow-x:auto}.rank-math-ai-visibility-transcript-modal__json-pre .json-key{color:#f2b02d;margin-left:8px}.rank-math-ai-visibility-transcript-modal__json-pre .json-string{color:#5dbec4}.rank-math-ai-visibility-transcript-modal__json-pre .json-number{color:#e5e7eb}.rank-math-ai-visibility-transcript-modal__json-pre .json-boolean{color:#5dbec4}.rank-math-ai-visibility-transcript-modal__json-pre .json-null{color:#9ca3af}',""]);const l=o},4061:function(e,t,n){n.d(t,{A:function(){return l}});var a=n(1601),i=n.n(a),r=n(6314),o=n.n(r)()(i());o.push([e.id,"@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.rank-math-ai-visibility-transcript-viewer{display:grid;grid-template-columns:450px 1fr;min-height:500px;background:#fff;overflow:hidden;gap:23px}.rank-math-ai-visibility-transcript-viewer__left{border-right:1px solid #e0e0e0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e0e0e0;border-radius:4px}.rank-math-ai-visibility-transcript-viewer__section-right{flex:1}.rank-math-ai-visibility-transcript-viewer__filter-bar{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #e0e0e0;background:#fff;flex-shrink:0}.rank-math-ai-visibility-transcript-viewer__date-filter{display:inline-flex;align-items:center;background:#fff}.rank-math-ai-visibility-transcript-viewer__date-filter .dashicons{font-size:13px;width:13px;height:13px;color:#9b9b9b}.rank-math-ai-visibility-transcript-viewer__date-filter input{border:none}.rank-math-ai-visibility-transcript-viewer__date-input{border:none;outline:none;font-size:12px;color:#1e1e1e;background:rgba(0,0,0,0);width:105px;padding:0}.rank-math-ai-visibility-transcript-viewer__query-select{flex:1;min-width:0}.rank-math-ai-visibility-transcript-viewer__entry-list{overflow-y:auto;flex:1;padding:26px 18px;display:flex;flex-direction:column;gap:14px;background:#fcfcfc}.rank-math-ai-visibility-transcript-viewer__empty-list{font-size:13px;color:#9b9b9b;padding:16px;margin:0;text-align:center}.rank-math-ai-visibility-transcript-viewer__entry-card{display:block;padding:26px;border:1px solid #e0e0e0;border-radius:4px;cursor:pointer;transition:border-color .12s ease;background:#fff}.rank-math-ai-visibility-transcript-viewer__entry-card:hover{border-color:rgb(198.5,198.5,198.5)}.rank-math-ai-visibility-transcript-viewer__entry-card--selected{border:1px solid #017cba}.rank-math-ai-visibility-transcript-viewer__entry-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}.rank-math-ai-visibility-transcript-viewer__entry-timestamp{font-size:12px;color:#868686;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.rank-math-ai-visibility-transcript-viewer .rank-math-ai-visibility-transcript-viewer__entry-query-text{font-size:12px;color:#1e1e1e;margin:0 0 10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:20px}.rank-math-ai-visibility-transcript-viewer__entry-footer{display:flex;align-items:center;justify-content:space-between}.rank-math-ai-visibility-transcript-viewer__entry-duration{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:#9ca3af}.rank-math-ai-visibility-transcript-viewer__entry-duration .dashicons{font-size:13px;width:13px;height:13px}.rank-math-ai-visibility-transcript-viewer__entry-view-link{display:inline-flex;align-items:center;gap:2px;font-size:12px;color:#017cba;font-weight:500;cursor:pointer;user-select:none}.rank-math-ai-visibility-transcript-viewer__entry-view-link .dashicons{font-size:14px;width:14px;height:14px;line-height:1}.rank-math-ai-visibility-transcript-viewer__entry-view-link:hover{color:rgb(.7272727273,90.1818181818,135.2727272727)}.rank-math-ai-visibility-transcript-viewer__detail{display:flex;flex-direction:column;overflow-y:auto;background:#fcfcfc;border:1px solid #e0e0e0;border-radius:4px}.rank-math-ai-visibility-transcript-viewer__detail-header{display:flex;align-items:center;gap:8px;padding:22px 18px;border-bottom:1px solid #e0e0e0;flex-shrink:0}.rank-math-ai-visibility-transcript-viewer__detail-header .dashicons{font-size:16px;width:16px;height:16px}.rank-math-ai-visibility-transcript-viewer__detail-header-title{font-size:14px;font-weight:500;color:#1e1e1e}.rank-math-ai-visibility-transcript-viewer__detail-empty{flex:1;display:flex;align-items:center;justify-content:center}.rank-math-ai-visibility-transcript-viewer__detail-empty p{font-size:13px;color:#9b9b9b;margin:0}.rank-math-ai-visibility-transcript-viewer__detail-content{padding:24px;display:flex;flex-direction:column;gap:40px;background:#fcfcfc}.rank-math-ai-visibility-transcript-viewer__section{display:flex;gap:10px}.rank-math-ai-visibility-transcript-viewer__section .dashicons{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border-radius:50%;background:#fff;font-size:14px;border:1px solid #e3e3e3}.rank-math-ai-visibility-transcript-viewer__section-label{display:flex;align-items:center;gap:10px;font-size:12px;color:#868686;font-weight:500;margin-bottom:8px}.rank-math-ai-visibility-transcript-viewer__query-box,.rank-math-ai-visibility-transcript-viewer__response-box{padding:20px 24px;border:1px solid #e0e0e0;border-radius:0 11px 11px 11px;font-size:12px;color:#1e1e1e;line-height:1.6;background:#fff;white-space:pre-wrap}.rank-math-ai-visibility-transcript-viewer__date-input.input[type=date]{border:none}",""]);const l=o},6314:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,a,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(a)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var c=0;c<e.length;c++){var m=[].concat(e[c]);a&&o[m[0]]||(void 0!==r&&(void 0===m[5]||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=r),n&&(m[2]?(m[1]="@media ".concat(m[2]," {").concat(m[1],"}"),m[2]=n):m[2]=n),i&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=i):m[4]="".concat(i)),t.push(m))}},t}},1601:function(e){e.exports=function(e){return e[1]}},5072:function(e){var t=[];function n(e){for(var n=-1,a=0;a<t.length;a++)if(t[a].identifier===e){n=a;break}return n}function a(e,a){for(var r={},o=[],l=0;l<e.length;l++){var s=e[l],c=a.base?s[0]+a.base:s[0],m=r[c]||0,d="".concat(c," ").concat(m);r[c]=m+1;var u=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==u)t[u].references++,t[u].updater(p);else{var b=i(p,a);a.byIndex=l,t.splice(l,0,{identifier:d,updater:b,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=a(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<r.length;o++){var l=n(r[o]);t[l].references--}for(var s=a(e,i),c=0;c<r.length;c++){var m=n(r[c]);0===t[m].references&&(t[m].updater(),t.splice(m,1))}r=s}}},7659:function(e){var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:function(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:function(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,i&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,exports:{}};return e[a](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.dn=function(e){(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.nc=void 0;const a=wp.element,i=lodash,r=wp.i18n,o=wp.components,l=window.rankMathComponents,s=React;function c(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=c(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}const m=function(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=c(e))&&(a&&(a+=" "),a+=t);return a};const d=e=>(0,a.createElement)("path",e),u=(0,a.forwardRef)(({className:e,isPressed:t,...n},i)=>{const r={...n,className:m(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,a.createElement)("svg",{...r,ref:i})});u.displayName="SVG";const p=(0,s.createElement)(u,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(d,{d:"M3.445 16.505a.75.75 0 001.06.05l5.005-4.55 4.024 3.521 4.716-4.715V14h1.5V8.25H14v1.5h3.19l-3.724 3.723L9.49 9.995l-5.995 5.45a.75.75 0 00-.05 1.06z"})),b=(0,s.createElement)(u,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(d,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),f=wp.apiFetch;var h=n.n(f);const y=wp.url;function v(e){return v="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},v(e)}function _(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return g(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(g(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,g(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,g(d,"constructor",c),g(c,"constructor",s),s.displayName="GeneratorFunction",g(c,i,"GeneratorFunction"),g(d),g(d,i,"Generator"),g(d,a,function(){return this}),g(d,"toString",function(){return"[object Generator]"}),(_=function(){return{w:r,m:u}})()}function g(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}g=function(e,t,n,a){function r(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},g(e,t,n,a)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=v(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}var A=function(){var e,t=(e=_().m(function e(t){var n,a,i=arguments;return _().w(function(e){for(;;)switch(e.n){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.n=1,h()(w({path:t},n));case 1:return a=e.v,e.a(2,a&&!0===a.success?a.data:a)}},e)}),function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){E(r,a,i,o,l,"next",e)}function l(e){E(r,a,i,o,l,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}(),S=function(e,t){var n="".concat("/rankmath/v1/ai-visibility").concat(e);return t&&Object.keys(t).length?(0,y.addQueryArgs)(n,t):n},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refresh,n=void 0!==t&&t,a=e.search,i=void 0===a?"":a;return A(S("/overview",w(w({},n?{refresh:1}:{}),i?{search:i}:{})))},j=function(e){return A(S("/brands/".concat(e)))},O=function(e,t){return A(S("/brands/".concat(e)),{method:"PUT",data:t})},P=function(e,t){return A(S("/brands/".concat(e)),{method:"PATCH",data:{status:t}})},C=function(){return A(S("/trial/activate"),{method:"POST"})},T=function(e){return A(S("/brands/".concat(e,"/insights")))},I=function(e){return A(S("/brands/".concat(e,"/queries")))},z=function(e,t,n){return A(S("/brands/".concat(e,"/queries/").concat(t)),{method:"PUT",data:n})},M=function(e){return A(S("/brands/".concat(e,"/generate-queries")),{method:"POST"})},D=function(e){if(!e)return null;if("inactive"===e.status)return null;switch(e.analysis_status){case"pending":case"running":return"running";case"error":return"error";default:return null}};function B(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=G(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function L(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return R(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(R(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,R(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,R(d,"constructor",c),R(c,"constructor",s),s.displayName="GeneratorFunction",R(c,i,"GeneratorFunction"),R(d),R(d,i,"Generator"),R(d,a,function(){return this}),R(d,"toString",function(){return"[object Generator]"}),(L=function(){return{w:r,m:u}})()}function R(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}R=function(e,t,n,a){function r(t,n){R(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},R(e,t,n,a)}function q(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function F(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){q(r,a,i,o,l,"next",e)}function l(e){q(r,a,i,o,l,"throw",e)}o(void 0)})}}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var H=function(e){return"running"===D(e)&&!e.last_analyzed};const Q=function(){var e=U((0,a.useState)(null),2),t=e[0],n=e[1],i=U((0,a.useState)([]),2),o=i[0],l=i[1],s=U((0,a.useState)(!0),2),c=s[0],m=s[1],d=U((0,a.useState)(!1),2),u=d[0],p=d[1],b=U((0,a.useState)(null),2),f=b[0],h=b[1],y=(0,a.useRef)(!1),v=(0,a.useRef)({}),_=(0,a.useRef)(""),g=(0,a.useCallback)(F(L().m(function e(){var t,a,i,o,s=arguments;return L().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=s.length>0&&void 0!==s[0]&&s[0],!y.current){e.n=1;break}return e.a(2,null);case 1:return y.current=!0,h(null),e.p=2,e.n=3,N({refresh:t,search:_.current});case 3:return i=e.v,n(null!==(a=null==i?void 0:i.summary)&&void 0!==a?a:null),l(Array.isArray(null==i?void 0:i.brands)?i.brands:[]),p(!(null==i||!i.is_stale)),e.a(2,i);case 4:return e.p=4,o=e.v,h((null==o?void 0:o.message)||(0,r.__)("Failed to load dashboard data.","seo-by-rank-math")),e.a(2,null);case 5:return e.p=5,y.current=!1,m(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])})),[]),k=(0,a.useCallback)(function(e){return _.current=e||"",g()},[g]);(0,a.useEffect)(function(){var e=function(){var e=F(L().m(function e(){var t;return L().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,g();case 1:if(null==(t=e.v)||!t.is_stale){e.n=2;break}return e.n=2,g(!0);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();e()},[g]),(0,a.useEffect)(function(){var e=o.filter(H);if(e.length){var t=setInterval(F(L().m(function t(){var n,a,i,r,o,l;return L().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!document.hidden){t.n=1;break}return t.a(2);case 1:n=B(e),t.p=2,n.s();case 3:if((a=n.n()).done){t.n=10;break}if(i=a.value,v.current[i.id]||(v.current[i.id]={attempts:0,errors:0}),!((r=v.current[i.id]).attempts>=10||r.errors>=3)){t.n=4;break}return t.a(3,9);case 4:return r.attempts++,t.p=5,t.n=6,T(i.id);case 6:if(o=t.v,r.errors=0,null==o||!o.insights){t.n=7;break}return t.n=7,g(!0);case 7:t.n=9;break;case 8:t.p=8,t.v,r.errors++;case 9:t.n=3;break;case 10:t.n=12;break;case 11:t.p=11,l=t.v,n.e(l);case 12:return t.p=12,n.f(),t.f(12);case 13:return t.a(2)}},t,null,[[5,8],[2,11,12,13]])})),2e4);return function(){return clearInterval(t)}}},[o,g]);var w=(0,a.useCallback)(function(){var e=F(L().m(function e(t,n){var a,i;return L().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,t();case 1:return a=e.v,e.n=2,g();case 2:return e.a(2,a);case 3:throw e.p=3,i=e.v,h((null==i?void 0:i.message)||n),i;case 4:return e.a(2)}},e,null,[[0,3]])}));return function(t,n){return e.apply(this,arguments)}}(),[g]),x=(0,a.useCallback)(function(e){return w(function(){return function(e){return A(S("/brands"),{method:"POST",data:e})}(e)},(0,r.__)("Failed to create brand.","seo-by-rank-math"))},[w]),E=(0,a.useCallback)(function(e,t){return w(function(){return O(e,t)},(0,r.__)("Failed to update brand.","seo-by-rank-math"))},[w]),j=(0,a.useCallback)(function(e){return w(function(){return P(e,"inactive")},(0,r.__)("Failed to disable brand.","seo-by-rank-math"))},[w]),C=(0,a.useCallback)(function(e){return w(function(){return P(e,"active")},(0,r.__)("Failed to enable brand.","seo-by-rank-math"))},[w]);return{summary:t,brands:o,loading:c,isStale:u,error:f,refetch:g,handleSearch:k,handleAddBrand:x,handleUpdateBrand:E,handleDisableBrand:j,handleEnableBrand:C}};var W="dashboard",$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W;return(0,y.getQueryArg)(window.location.href,"tab")||e},Y=function(){var e=(0,y.getQueryArg)(window.location.href,"brand");return e?String(e):null},K=function(){var e=(0,y.addQueryArgs)(window.location.href,{brand:void 0,brand_tab:void 0});window.history.pushState({},"",e)},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"overview";return(0,y.getQueryArg)(window.location.href,"brand_tab")||e},J=function(e){var t={tab:"reports",brand:void 0,brand_tab:void 0,report_brand:e?String(e):void 0},n=(0,y.addQueryArgs)(window.location.href,t);window.history.pushState({},"",n),window.dispatchEvent(new window.PopStateEvent("popstate"))},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=parseInt((0,y.getQueryArg)(window.location.href,"aiv_page"),10);return t>0?t:e},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=parseInt((0,y.getQueryArg)(window.location.href,"aiv_per"),10);return t>0?t:e};function te(e){return te="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},te(e)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=te(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.perPage,i=void 0===n?10:n,r=t.syncUrl,o=void 0!==r&&r,l=re((0,a.useState)(function(){return{page:o?X(1):1,perPage:o?ee(i):i}}),2),s=l[0],c=l[1],m=e.length,d=Math.max(1,Math.ceil(m/s.perPage)),u=(0,a.useMemo)(function(){var t=(s.page-1)*s.perPage;return e.slice(t,t+s.perPage)},[e,s]),p=(0,a.useRef)(!0);(0,a.useEffect)(function(){p.current?p.current=!1:c(function(e){return e.page>d?ae(ae({},e),{},{page:d}):e})},[d]),(0,a.useEffect)(function(){o&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=(0,y.addQueryArgs)(window.location.href,{aiv_page:e.page>1?e.page:void 0,aiv_per:e.perPage!==t?e.perPage:void 0});window.history.replaceState({},"",n)}(s,i)},[s,o,i]);var b=(0,a.useCallback)(function(e){return c(function(t){return ae(ae({},t),{},{page:Math.max(1,e)})})},[]),f=(0,a.useCallback)(function(e){return c({page:1,perPage:Math.max(1,e)})},[]),h=(0,a.useCallback)(function(){return c(function(e){return 1===e.page?e:ae(ae({},e),{},{page:1})})},[]);return{pagination:s,pageItems:u,total:m,pages:d,onPageChange:b,onPerPageChange:f,resetPage:h}};var se=n(5072),ce=n.n(se),me=n(7825),de=n.n(me),ue=n(7659),pe=n.n(ue),be=n(5056),fe=n.n(be),he=n(540),ye=n.n(he),ve=n(1113),_e=n.n(ve),ge=n(5089),ke={};ke.styleTagTransform=_e(),ke.setAttributes=fe(),ke.insert=pe().bind(null,"head"),ke.domAPI=de(),ke.insertStyleElement=ye();ce()(ge.A,ke);ge.A&&ge.A.locals&&ge.A.locals;var we=["variant","className","iconVariant","iconLeft","iconRight","children"];function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},xe.apply(null,arguments)}const Ee=function(e){var t=e.variant,n=void 0===t?"primary":t,a=e.className,i=void 0===a?"":a,r=e.iconVariant,l=e.iconLeft,s=e.iconRight,c=e.children,m=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,we),d="rank-math-ai-visibility-btn",u=[d,"".concat(d,"--").concat(n),r&&"".concat(d,"--icon-").concat(r),i].filter(Boolean).join(" ");return wp.element.createElement(o.Button,xe({variant:n,className:u},m),l&&wp.element.createElement("span",{className:"".concat(d,"__icon-left"),"aria-hidden":"true"},l),c,s&&wp.element.createElement("span",{className:"".concat(d,"__icon-right"),"aria-hidden":"true"},s))};var Ae=["isLoading","loadingLabel","children","disabled","iconLeft"];function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Se.apply(null,arguments)}const Ne=function(e){var t=e.isLoading,n=void 0!==t&&t,a=e.loadingLabel,i=e.children,r=e.disabled,l=e.iconLeft,s=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Ae),c=n?null!=a?a:"".concat(i,"…"):i,m=l&&n?wp.element.createElement(o.Spinner,null):l;return wp.element.createElement(Ee,Se({iconLeft:m,disabled:r||n},s),c)};var je=n(1297),Oe={};Oe.styleTagTransform=_e(),Oe.setAttributes=fe(),Oe.insert=pe().bind(null,"head"),Oe.domAPI=de(),Oe.insertStyleElement=ye();ce()(je.A,Oe);je.A&&je.A.locals&&je.A.locals;const Pe=function(e){var t,n=e.icon,a=e.label,i=e.value,r=e.tooltip,s=e.sub,c=e.compact,m=void 0!==c&&c,d=e.className,u=void 0===d?"":d,p=e.analysis,b=void 0===p?null:p,f="rank-math-ai-visibility-stat-card",h=[f,(null!==(t=(null==b?void 0:b.status)&&("done"===(null==b?void 0:b.status)||"partial"===(null==b?void 0:b.status)))&&void 0!==t?t:null!=i&&""!==i&&"—"!==i)&&"".concat(f,"--has-data"),m&&"".concat(f,"--compact"),u].filter(Boolean).join(" "),y="".concat(f,"__label"),v="".concat(f,"__value");return wp.element.createElement("div",{className:h},n&&wp.element.createElement("span",{className:"".concat(f,"__icon-wrap")},"string"==typeof n?wp.element.createElement("span",{className:"dashicons dashicons-".concat(n," ").concat(f,"__icon")}):wp.element.createElement(o.Icon,{icon:n,className:"".concat(f,"__icon")})),wp.element.createElement("div",{className:"".concat(f,"__content")},wp.element.createElement("div",{className:"".concat(f,"__label-row")},wp.element.createElement("span",{className:y},a),r&&l.HelpTooltip&&wp.element.createElement(l.HelpTooltip,{text:r})),wp.element.createElement("div",{className:"".concat(f,"__data")},wp.element.createElement("span",{className:v},null!=i?i:"N/A"),s&&wp.element.createElement("span",{className:"".concat(f,"__sub")},s))))};var Ce=n(6583),Te={};Te.styleTagTransform=_e(),Te.setAttributes=fe(),Te.insert=pe().bind(null,"head"),Te.domAPI=de(),Te.insertStyleElement=ye();ce()(Ce.A,Te);Ce.A&&Ce.A.locals&&Ce.A.locals;const Ie=function(e){var t=e.icon,n=e.heading,a=e.description,i=e.ctaLabel,r=e.onCta,l=i&&r,s="rank-math-ai-visibility-empty-state";return wp.element.createElement("div",{className:s},t&&wp.element.createElement("div",{className:"".concat(s,"__icon"),"aria-hidden":"true"},wp.element.createElement(o.Icon,{icon:t})),wp.element.createElement("h2",{className:"".concat(s,"__heading")},n),wp.element.createElement("p",{className:"".concat(s,"__description")},a),l&&wp.element.createElement(Ee,{className:"".concat(s,"__cta"),onClick:r},i))};var ze=n(6558),Me={};Me.styleTagTransform=_e(),Me.setAttributes=fe(),Me.insert=pe().bind(null,"head"),Me.domAPI=de(),Me.insertStyleElement=ye();ce()(ze.A,Me);ze.A&&ze.A.locals&&ze.A.locals;const De=function(e){var t=e.rank,n=function(e){if(null==e)return"neutral";var t=parseInt(e,10);return 1===t?"rank-1":2===t?"rank-2":"rank-3"}(t),a=null!=t?"".concat(t):"−",i="rank-math-ai-visibility-rank-badge";return wp.element.createElement("span",{className:"".concat(i," ").concat(i,"--").concat(n)},a)};var Be=n(7497),Le={};Le.styleTagTransform=_e(),Le.setAttributes=fe(),Le.insert=pe().bind(null,"head"),Le.domAPI=de(),Le.insertStyleElement=ye();ce()(Be.A,Le);Be.A&&Be.A.locals&&Be.A.locals;var Re=function(e){var t=e.modifier;return"positive"===t?wp.element.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",style:{fill:"none",flexShrink:0},"aria-hidden":"true"},wp.element.createElement("circle",{cx:"6",cy:"6",r:"5",stroke:"currentColor",strokeWidth:"1"}),wp.element.createElement("circle",{cx:"4",cy:"4.8",r:"0.8",fill:"currentColor"}),wp.element.createElement("circle",{cx:"8",cy:"4.8",r:"0.8",fill:"currentColor"}),wp.element.createElement("path",{d:"M3.5 7 Q6 9 8.5 7",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})):"negative"===t?wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M5.83335 5.38542C5.83335 4.98271 5.50687 4.65625 5.10417 4.65625C4.70146 4.65625 4.375 4.98271 4.375 5.38542C4.375 5.78812 4.70146 6.11467 5.10417 6.11467C5.50687 6.11467 5.83335 5.78812 5.83335 5.38542Z",fill:"#F66276"}),wp.element.createElement("path",{d:"M8.89567 4.65625C9.2984 4.65625 9.62484 4.98271 9.62484 5.38542C9.62484 5.78812 9.2984 6.11467 8.89567 6.11467C8.493 6.11467 8.1665 5.78818 8.1665 5.38548C8.1665 4.98277 8.493 4.65625 8.89567 4.65625Z",fill:"#F66276"}),wp.element.createElement("path",{d:"M5.38427 9.48806C5.23378 9.67712 4.95854 9.70833 4.76951 9.55783C4.58048 9.40733 4.54924 9.13211 4.69974 8.94305C5.23746 8.26767 6.06821 7.8335 7.00003 7.8335C7.9319 7.8335 8.76263 8.26767 9.30034 8.94305C9.45084 9.13211 9.41963 9.40733 9.23058 9.55783C9.04158 9.70833 8.7663 9.67712 8.6158 9.48806C8.23699 9.01224 7.65412 8.7085 7.00003 8.7085C6.34599 8.7085 5.76313 9.01224 5.38427 9.48806Z",fill:"#F66276"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99984 1.1665C3.77817 1.1665 1.1665 3.77817 1.1665 6.99984C1.1665 10.2215 3.77817 12.8332 6.99984 12.8332C10.2215 12.8332 12.8332 10.2215 12.8332 6.99984C12.8332 3.77817 10.2215 1.1665 6.99984 1.1665ZM2.0415 6.99984C2.0415 4.26143 4.26143 2.0415 6.99984 2.0415C9.73824 2.0415 11.9582 4.26143 11.9582 6.99984C11.9582 9.73824 9.73824 11.9582 6.99984 11.9582C4.26143 11.9582 2.0415 9.73824 2.0415 6.99984Z",fill:"#F66276"})):wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M5.63997 5.38542C5.63997 4.98271 5.31352 4.65625 4.91081 4.65625C4.5081 4.65625 4.18164 4.98271 4.18164 5.38542C4.18164 5.78812 4.5081 6.11467 4.91081 6.11467C5.31352 6.11467 5.63997 5.78812 5.63997 5.38542Z",fill:"#E8A623"}),wp.element.createElement("path",{d:"M4.7207 8.30566C4.47908 8.30566 4.2832 8.50155 4.2832 8.74316C4.2832 8.98478 4.47908 9.18066 4.7207 9.18066H9.27886C9.52047 9.18066 9.71636 8.98478 9.71636 8.74316C9.71636 8.50155 9.52047 8.30566 9.27886 8.30566H4.7207Z",fill:"#E8A623"}),wp.element.createElement("path",{d:"M9.08903 4.65625C9.49176 4.65625 9.8182 4.98271 9.8182 5.38542C9.8182 5.78812 9.49176 6.11467 9.08903 6.11467C8.6863 6.11467 8.35986 5.78818 8.35986 5.38548C8.35986 4.98277 8.6863 4.65625 9.08903 4.65625Z",fill:"#E8A623"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99984 1.1665C3.77817 1.1665 1.1665 3.77817 1.1665 6.99984C1.1665 10.2215 3.77817 12.8332 6.99984 12.8332C10.2215 12.8332 12.8332 10.2215 12.8332 6.99984C12.8332 3.77817 10.2215 1.1665 6.99984 1.1665ZM2.0415 6.99984C2.0415 4.26143 4.26143 2.0415 6.99984 2.0415C9.73824 2.0415 11.9582 4.26143 11.9582 6.99984C11.9582 9.73824 9.73824 11.9582 6.99984 11.9582C4.26143 11.9582 2.0415 9.73824 2.0415 6.99984Z",fill:"#E8A623"}))};const qe=function(e){var t=e.score,n=function(e){if(null==e)return{modifier:"neutral"};var t=Number(e);return t>=70?{modifier:"positive"}:t>=50?{modifier:"warning"}:{modifier:"negative"}}(t).modifier,a=null!=t,r="rank-math-ai-visibility-sentiment-badge";return wp.element.createElement("span",{className:"".concat(r," ").concat(r,"--").concat(n)},a&&wp.element.createElement("span",{className:"".concat(r,"__icon")},wp.element.createElement(Re,{modifier:n})),wp.element.createElement("span",{className:"".concat(r,"__label")},a?"".concat((0,i.round)(t),"%"):"−"))};var Fe=n(5975),Ue={};Ue.styleTagTransform=_e(),Ue.setAttributes=fe(),Ue.insert=pe().bind(null,"head"),Ue.domAPI=de(),Ue.insertStyleElement=ye();ce()(Fe.A,Ue);Fe.A&&Fe.A.locals&&Fe.A.locals;function Ge(e){return function(e){if(Array.isArray(e))return Ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const He=function(e){var t=e.locale;if(!t)return null;var n=function(e){if(!e)return"";var t=e.split("-");return(t[1]||t[0]).toUpperCase()}(t),a=function(e){return Ge(e.toUpperCase()).map(function(e){return String.fromCodePoint(127462+e.charCodeAt(0)-65)}).join("")}(n),i="rank-math-ai-visibility-country-flag";return wp.element.createElement("span",{className:i,"aria-label":n},wp.element.createElement("span",{className:"".concat(i,"__emoji"),"aria-hidden":"true"},a),wp.element.createElement("span",{className:"".concat(i,"__code")},n))};var Qe=n(3269),We={};We.styleTagTransform=_e(),We.setAttributes=fe(),We.insert=pe().bind(null,"head"),We.domAPI=de(),We.insertStyleElement=ye();ce()(Qe.A,We);Qe.A&&Qe.A.locals&&Qe.A.locals;const $e=function(e){var t=e.title,n=e.subtitle;if(!t)return null;var a="rank-math-ai-visibility-section-header";return wp.element.createElement("div",{className:a},wp.element.createElement("h2",{className:"".concat(a,"__title")},t),n&&wp.element.createElement("p",{className:"".concat(a,"__subtitle")},n))};var Ye=n(6424),Ke={};Ke.styleTagTransform=_e(),Ke.setAttributes=fe(),Ke.insert=pe().bind(null,"head"),Ke.domAPI=de(),Ke.insertStyleElement=ye();ce()(Ye.A,Ke);Ye.A&&Ye.A.locals&&Ye.A.locals;var Ze=(0,a.memo)(function(e){var t=e.status,n=e.onView,a=e.onEdit,i=e.onDisable,o="rank-math-ai-visibility-action-buttons";return wp.element.createElement("div",{className:o},wp.element.createElement(Ee,{variant:"icon",className:"".concat(o,"__view"),onClick:n,"aria-label":(0,r.__)("View","seo-by-rank-math")},wp.element.createElement("span",{className:"".concat(o,"__inner")},wp.element.createElement("span",{className:"rm-icon-eye"}),wp.element.createElement("span",{className:"".concat(o,"__label")},(0,r.__)("View","seo-by-rank-math")))),wp.element.createElement(Ee,{variant:"icon",className:"".concat(o,"__edit"),onClick:a,"aria-label":(0,r.__)("Edit","seo-by-rank-math")},wp.element.createElement("span",{className:"".concat(o,"__inner")},wp.element.createElement("span",{className:"rm-icon rm-icon-edit"}),wp.element.createElement("span",{className:"".concat(o,"__label")},(0,r.__)("Edit","seo-by-rank-math")))),wp.element.createElement(Ee,{variant:"icon",className:"".concat("".concat(o,"inactive"===t?"__inactive":"__active")),onClick:function(){i("inactive"===t?"activate":"deactivate")},"aria-label":"inactive"===t?(0,r.__)("Activate","seo-by-rank-math"):(0,r.__)("Deactivate","seo-by-rank-math")},"inactive"===t?wp.element.createElement("span",{className:"".concat(o,"__inner")},wp.element.createElement("span",{className:"dashicons dashicons-controls-play"}),wp.element.createElement("span",{className:"".concat(o,"__label")},(0,r.__)("Activate","seo-by-rank-math"))):wp.element.createElement("span",{className:"".concat(o,"__inner")},wp.element.createElement("span",{className:"rm-icon-off"}),wp.element.createElement("span",{className:"".concat(o,"__label")},(0,r.__)("Deactivate","seo-by-rank-math")))))});Ze.displayName="ActionButtons";const Je=Ze;var Xe=n(9034),et={};et.styleTagTransform=_e(),et.setAttributes=fe(),et.insert=pe().bind(null,"head"),et.domAPI=de(),et.insertStyleElement=ye();ce()(Xe.A,et);Xe.A&&Xe.A.locals&&Xe.A.locals;var tt=function(e){var t=e.title,n=e.message,a=e.confirmLabel,i=void 0===a?(0,r.__)("Confirm","seo-by-rank-math"):a,l=e.cancelLabel,s=void 0===l?(0,r.__)("Cancel","seo-by-rank-math"):l,c=e.isDestructive,m=void 0!==c&&c,d=e.isProcessing,u=void 0!==d&&d,p=e.error,b=void 0===p?null:p,f=e.onConfirm,h=e.onCancel,y="rank-math-ai-visibility-confirm-modal";return wp.element.createElement(o.Modal,{title:t,onRequestClose:h,className:y},wp.element.createElement("p",{className:"".concat(y,"__message")},n),b&&wp.element.createElement("p",{className:"".concat(y,"__error")},b),wp.element.createElement("div",{className:"".concat(y,"__footer")},wp.element.createElement(Ee,{variant:"secondary",onClick:h,disabled:u},s),wp.element.createElement(Ne,{variant:"primary",isDestructive:m,onClick:f,isLoading:u,loadingLabel:"".concat(i,"…")},i)))};tt.displayName="ConfirmModal";const nt=tt;var at=n(1623),it={};it.styleTagTransform=_e(),it.setAttributes=fe(),it.insert=pe().bind(null,"head"),it.domAPI=de(),it.insertStyleElement=ye();ce()(at.A,it);at.A&&at.A.locals&&at.A.locals;var rt=function(e){var t,n=e.value,a=e.onChange,i=e.disabled,l=void 0!==i&&i,s=e.isLoading,c=void 0!==s&&s;return t=c?n?(0,r.__)("Enabling…","seo-by-rank-math"):(0,r.__)("Disabling…","seo-by-rank-math"):n?(0,r.__)("Enabled","seo-by-rank-math"):(0,r.__)("Disabled","seo-by-rank-math"),wp.element.createElement(o.CheckboxControl,{className:"rank-math-ai-visibility-status-toggle",label:t,checked:n,onChange:a,disabled:l||c,__nextHasNoMarginBottom:!0})};rt.displayName="StatusToggle";const ot=rt;var lt=n(7340),st={};st.styleTagTransform=_e(),st.setAttributes=fe(),st.insert=pe().bind(null,"head"),st.domAPI=de(),st.insertStyleElement=ye();ce()(lt.A,st);lt.A&<.A.locals&<.A.locals;function ct(e){return ct="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},ct(e)}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=ct(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ct(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft=function(e,t){var n=function(){t()};function a(){var t=document.createElement("textarea");t.value=e,t.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),n()}catch(e){}document.body.removeChild(t)}window.navigator.clipboard?window.navigator.clipboard.writeText(e).then(n).catch(function(){return a()}):a()},ht=function(e){if("string"!=typeof e.extraction_data)return e;try{return pt(pt({},e),{},{extraction_data:JSON.parse(e.extraction_data)})}catch(t){return e}},yt=function(e){var t,n=e.entry,i=e.onClose,l="rank-math-ai-visibility-transcript-modal",s=mt((0,a.useState)(!1),2),c=s[0],m=s[1],d=mt((0,a.useState)(!1),2),u=d[0],p=d[1];return wp.element.createElement(o.Modal,{title:wp.element.createElement("span",{className:"".concat(l,"__modal-title")},wp.element.createElement("span",{className:"dashicons rm-icon-comments","aria-hidden":"true"}),(0,r.__)("Transcript","seo-by-rank-math")),onRequestClose:i,className:"".concat(l,"__wrapper"),size:"large"},wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:"".concat(l,"__left")},wp.element.createElement("div",{className:"".concat(l,"__left-header")},wp.element.createElement(Ee,{variant:"secondary",className:"".concat(l,"__copy-btn"),onClick:function(){var e=[(0,r.__)("Query:","seo-by-rank-math")+" "+(n.query||""),"",(0,r.__)("Response:","seo-by-rank-math")+" "+(n.response||n.excerpt||"")].join("\n");ft(e,function(){m(!0),setTimeout(function(){return m(!1)},2e3)})},iconLeft:wp.element.createElement("span",{className:"dashicons dashicons-clipboard"})},c?(0,r.__)("Copied!","seo-by-rank-math"):(0,r.__)("Copy Raw Text","seo-by-rank-math"))),wp.element.createElement("div",{className:"".concat(l,"__sections")},wp.element.createElement("div",{className:"".concat(l,"__section")},wp.element.createElement("div",{className:"".concat(l,"__section-left")},wp.element.createElement("span",{className:"".concat(l,"__section-icon")},wp.element.createElement("span",{className:"dashicons dashicons-admin-users","aria-hidden":"true"}))),wp.element.createElement("div",{className:"".concat(l,"__section-right")},wp.element.createElement("div",{className:"".concat(l,"__section-label")},(0,r.__)("Original Query","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(l,"__content-box")},n.query||"—"))),wp.element.createElement("div",{className:"".concat(l,"__section")},wp.element.createElement("div",{className:"".concat(l,"__section-left")},wp.element.createElement("span",{className:"".concat(l,"__section-icon")},wp.element.createElement("span",{className:"dashicons dashicons-superhero-alt","aria-hidden":"true"}))),wp.element.createElement("div",{className:"".concat(l,"__section-right")},wp.element.createElement("div",{className:"".concat(l,"__section-label")},(0,r.__)("Model Response","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(l,"__content-box ").concat(l,"__content-box--response")},n.response||n.excerpt||"—"))))),wp.element.createElement("div",{className:"".concat(l,"__right")},wp.element.createElement("div",{className:"".concat(l,"__right-header")},wp.element.createElement("div",{className:"".concat(l,"__right-title")},wp.element.createElement("span",{className:"".concat(l,"__json-badge")},"{}"),(0,r.__)("Extracted Signals","seo-by-rank-math")),wp.element.createElement(Ee,{variant:"secondary",onClick:function(){ft(JSON.stringify(ht(n),null,2),function(){p(!0),setTimeout(function(){return p(!1)},2e3)})},className:"".concat(l,"__copy-json-btn"),iconLeft:wp.element.createElement("span",{className:"dashicons dashicons-clipboard"})},u?(0,r.__)("Copied!","seo-by-rank-math"):(0,r.__)("Copy JSON","seo-by-rank-math"))),wp.element.createElement("div",{className:"".concat(l,"__json-viewer")},wp.element.createElement("pre",{className:"".concat(l,"__json-pre"),dangerouslySetInnerHTML:{__html:(t=JSON.stringify(ht(n),null,2),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(?:\s*:)?|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){return e.endsWith(":")||e.startsWith('"')&&e.endsWith('":')?'<span class="json-key">'.concat(e,"</span>"):e.startsWith('"')?'<span class="json-string">'.concat(e,"</span>"):"true"===e||"false"===e?'<span class="json-boolean">'.concat(e,"</span>"):"null"===e?'<span class="json-null">'.concat(e,"</span>"):'<span class="json-number">'.concat(e,"</span>")}))}})))))};yt.displayName="TranscriptModal";const vt=yt;var _t=n(162),gt={};gt.styleTagTransform=_e(),gt.setAttributes=fe(),gt.insert=pe().bind(null,"head"),gt.domAPI=de(),gt.insertStyleElement=ye();ce()(_t.A,gt);_t.A&&_t.A.locals&&_t.A.locals;const kt=function(e){var t=e.status;if(!t)return null;var n="success"===t,a="rank-math-ai-visibility-status-badge";return wp.element.createElement("span",{className:"".concat(a," ").concat(a,"--").concat(t)},n?wp.element.createElement("i",{className:"dashicons dashicons-yes","aria-hidden":"true"}):wp.element.createElement("i",{className:"dashicons dashicons-no","aria-hidden":"true"}),function(e){return"success"===e?(0,r.__)("Success","seo-by-rank-math"):"partial"===e?(0,r.__)("Partial","seo-by-rank-math"):(0,r.__)("Failed","seo-by-rank-math")}(t))};var wt=n(6135),xt={};xt.styleTagTransform=_e(),xt.setAttributes=fe(),xt.insert=pe().bind(null,"head"),xt.domAPI=de(),xt.insertStyleElement=ye();ce()(wt.A,xt);wt.A&&wt.A.locals&&wt.A.locals;var Et=function(e){var t=e.value,n=e.onChange,a=e.ariaLabel,i=e.id,r=e.className;return wp.element.createElement("div",{className:"rank-math-ai-visibility-date-input"},wp.element.createElement("input",{type:"date",id:i,value:t,onChange:n,"aria-label":a,className:r}))};Et.displayName="DateInput";const At=Et;var St=function(e){if(!e)return null;var t=new Date(e);return isNaN(t.getTime())?null:t},Nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" at ",n=St(e);if(!n)return"—";var a=n.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),i=n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return"".concat(a).concat(t).concat(i)},jt=function(e){var t=St(e);return t?t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):"—"},Ot=n(4061),Pt={};Pt.styleTagTransform=_e(),Pt.setAttributes=fe(),Pt.insert=pe().bind(null,"head"),Pt.domAPI=de(),Pt.insertStyleElement=ye();ce()(Ot.A,Pt);Ot.A&&Ot.A.locals&&Ot.A.locals;function Ct(e){return function(e){if(Array.isArray(e))return zt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||It(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||It(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e,t){if(e){if("string"==typeof e)return zt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zt(e,t):void 0}}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Mt=function(e){var t,n=e.entry,a=e.isSelected,i=e.onSelect,o=e.onViewTranscript,l=void 0===o?function(){}:o,s="rank-math-ai-visibility-transcript-viewer",c=n.model||n.platform||"";return wp.element.createElement("div",{role:"button",tabIndex:0,className:["".concat(s,"__entry-card"),a?"".concat(s,"__entry-card--selected"):""].filter(Boolean).join(" "),onClick:function(){return i(n.id)},onKeyDown:function(e){return("Enter"===e.key||" "===e.key)&&i(n.id)},"aria-current":a?"true":void 0},wp.element.createElement("div",{className:"".concat(s,"__entry-meta")},wp.element.createElement("span",{className:"".concat(s,"__entry-timestamp")},(t=n.created_at,Nt(t," · ")),c&&" · ".concat(c)),wp.element.createElement(kt,{status:n.status})),wp.element.createElement("p",{className:"".concat(s,"__entry-query-text")},n.query||"—"),wp.element.createElement("div",{className:"".concat(s,"__entry-footer")},null!==n.duration_seconds&&void 0!==n.duration_seconds&&wp.element.createElement("span",{className:"".concat(s,"__entry-duration")},wp.element.createElement("span",{className:"dashicons dashicons-clock","aria-hidden":"true"}),n.duration_seconds,"s"),wp.element.createElement("span",{role:"button",tabIndex:0,className:"".concat(s,"__entry-view-link"),onClick:function(e){e.stopPropagation(),l(n)},onKeyDown:function(e){return("Enter"===e.key||" "===e.key)&&l(n)}},(0,r.__)("View","seo-by-rank-math"),wp.element.createElement("span",{className:"dashicons dashicons-arrow-right-alt2","aria-hidden":"true"}))))},Dt=function(e){var t=e.entry,n="rank-math-ai-visibility-transcript-viewer";return wp.element.createElement("div",{className:"".concat(n,"__detail")},wp.element.createElement("div",{className:"".concat(n,"__detail-header")},wp.element.createElement("span",{className:"dashicons rm-icon-comments","aria-hidden":"true"}),wp.element.createElement("span",{className:"".concat(n,"__detail-header-title")},(0,r.__)("Transcript preview","seo-by-rank-math"))),t?wp.element.createElement("div",{className:"".concat(n,"__detail-content")},wp.element.createElement("div",{className:"".concat(n,"__section")},wp.element.createElement("div",{className:"".concat(n,"__section-left")},wp.element.createElement("span",{className:"dashicons dashicons-admin-users","aria-hidden":"true"})),wp.element.createElement("div",{className:"".concat(n,"__section-right")},wp.element.createElement("div",{className:"".concat(n,"__section-label")},(0,r.__)("Original Query","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(n,"__query-box")},t.query||"—"))),wp.element.createElement("div",{className:"".concat(n,"__section")},wp.element.createElement("div",{className:"".concat(n,"__section-left")},wp.element.createElement("span",{className:"dashicons dashicons-superhero-alt","aria-hidden":"true"})),wp.element.createElement("div",{className:"".concat(n,"__section-right")},wp.element.createElement("div",{className:"".concat(n,"__section-label")},(0,r.__)("Model Response","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(n,"__response-box")},t.response||t.excerpt||"—")))):wp.element.createElement("div",{className:"".concat(n,"__detail-empty")},wp.element.createElement("p",null,(0,r.__)("Select a query to preview its transcript.","seo-by-rank-math"))))},Bt=function(e){var t,n,i,l=e.entries,s=void 0===l?[]:l,c=e.selectedEntryId,m=void 0===c?null:c,d=e.onSelectEntry,u=void 0===d?function(){}:d,p="rank-math-ai-visibility-transcript-viewer",b=Tt((0,a.useState)(""),2),f=b[0],h=b[1],y=Tt((0,a.useState)(""),2),v=y[0],_=y[1],g=Tt((0,a.useState)(null),2),k=g[0],w=g[1],x=(0,a.useMemo)(function(){return[{label:(0,r.__)("All queries","seo-by-rank-math"),value:""}].concat(Ct(s.map(function(e){var t="Entry ".concat(e.id);return e.query&&(t=e.query.length>60?e.query.slice(0,60)+"…":e.query),e.platform&&(t+=" — ".concat(e.platform)),{label:t,value:String(e.id)}})))},[s]),E=(0,a.useMemo)(function(){var e=s;return f&&(e=e.filter(function(e){var t;return null===(t=e.created_at)||void 0===t?void 0:t.startsWith(f)})),v&&(e=e.filter(function(e){return String(e.id)===v})),e},[s,f,v]),A=null!==(t=null!=m?m:null===(n=E[0])||void 0===n?void 0:n.id)&&void 0!==t?t:null,S=null!==(i=s.find(function(e){return e.id===A}))&&void 0!==i?i:null;return wp.element.createElement("div",{className:p},wp.element.createElement("div",{className:"".concat(p,"__left")},wp.element.createElement("div",{className:"".concat(p,"__filter-bar")},wp.element.createElement("div",{className:"".concat(p,"__date-filter")},wp.element.createElement(At,{value:f,onChange:function(e){return h(e.target.value)},ariaLabel:(0,r.__)("Filter by date","seo-by-rank-math"),className:"".concat(p,"__date-input")})),wp.element.createElement(o.SelectControl,{value:v,options:x,onChange:_,className:"".concat(p,"__query-select"),__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(p,"__entry-list")},0===E.length?wp.element.createElement("p",{className:"".concat(p,"__empty-list")},(0,r.__)("No entries match the current filters.","seo-by-rank-math")):E.map(function(e){return wp.element.createElement(Mt,{key:e.id,entry:e,isSelected:e.id===A,onSelect:u,onViewTranscript:w})}))),wp.element.createElement(Dt,{entry:S}),k&&wp.element.createElement(vt,{entry:k,onClose:function(){return w(null)}}))};Bt.displayName="TranscriptViewer";const Lt=Bt;var Rt=n(6082),qt={};qt.styleTagTransform=_e(),qt.setAttributes=fe(),qt.insert=pe().bind(null,"head"),qt.domAPI=de(),qt.insertStyleElement=ye();ce()(Rt.A,qt);Rt.A&&Rt.A.locals&&Rt.A.locals;var Ft=(0,a.memo)(function(e){var t=e.value,n=void 0===t?"-":t;return n&&"-"!==n&&(n=Nt(n)||n),wp.element.createElement("div",{className:"rank-math-ai-visibility-processed-start-time"},n)});Ft.displayName="StartTime";const Ut=Ft;var Gt=n(4236),Vt={};Vt.styleTagTransform=_e(),Vt.setAttributes=fe(),Vt.insert=pe().bind(null,"head"),Vt.domAPI=de(),Vt.insertStyleElement=ye();ce()(Gt.A,Vt);Gt.A&&Gt.A.locals&&Gt.A.locals;const Ht=function(e){var t=e.score,n=e.showOutOf,a=void 0===n||n,i=function(e){if(null==e)return"neutral";var t=Number(e);return t>=70?"good":t>=40?"average":"poor"}(t),r="-/-";null!=t&&(r=a?"".concat(t," / 100"):String(t));var o="rank-math-ai-visibility-score-badge";return wp.element.createElement("span",{className:"".concat(o," ").concat(o,"--").concat(i)},r)};var Qt=n(627),Wt={};Wt.styleTagTransform=_e(),Wt.setAttributes=fe(),Wt.insert=pe().bind(null,"head"),Wt.domAPI=de(),Wt.insertStyleElement=ye();ce()(Qt.A,Wt);Qt.A&&Qt.A.locals&&Qt.A.locals;const $t=function(e){var t=e.value,n=e.variant,a=void 0===n?"neutral":n,i=null==t||"error"===t||"warning"===t?"-":t,r="rank-math-ai-visibility-count-badge";return wp.element.createElement("span",{className:"".concat(r," ").concat(r,"--").concat(a)},i)};var Yt=n(479),Kt={};Kt.styleTagTransform=_e(),Kt.setAttributes=fe(),Kt.insert=pe().bind(null,"head"),Kt.domAPI=de(),Kt.insertStyleElement=ye();ce()(Yt.A,Kt);Yt.A&&Yt.A.locals&&Yt.A.locals;var Zt=function(e){var t=e.columns,n=void 0===t?[]:t,a=e.rows,i=void 0===a?[]:a,r=e.rowKey,o=void 0===r?"id":r,l=e.className,s="rank-math-ai-visibility-data-table",c=[s,void 0===l?"":l].filter(Boolean).join(" "),m="function"==typeof o?o:function(e){return e[o]};return wp.element.createElement("table",{className:c},wp.element.createElement("thead",null,wp.element.createElement("tr",null,n.map(function(e){return wp.element.createElement("th",{key:e.key,className:"".concat(s,"__th"),style:e.width?{width:e.width}:void 0},e.label)}))),wp.element.createElement("tbody",null,i.map(function(e,t){return wp.element.createElement("tr",{key:m(e,t),className:"".concat(s,"__row")},n.map(function(t){var n;return wp.element.createElement("td",{key:t.key,className:"".concat(s,"__td ").concat(s,"__td--").concat(t.key)},t.render?t.render(e):null!==(n=e[t.key])&&void 0!==n?n:"—")}))})))};Zt.displayName="DataTable";const Jt=Zt;var Xt=n(6574),en={};en.styleTagTransform=_e(),en.setAttributes=fe(),en.insert=pe().bind(null,"head"),en.domAPI=de(),en.insertStyleElement=ye();ce()(Xt.A,en);Xt.A&&Xt.A.locals&&Xt.A.locals;var tn=function(e){var t=e.onBack,n=e.backLabel,a=e.title,i=e.actions,o=e.className,l=void 0===o?"":o,s="rank-math-ai-visibility-page-topbar";return wp.element.createElement("div",{className:[s,l].filter(Boolean).join(" ")},wp.element.createElement("div",{className:"".concat(s,"__left")},wp.element.createElement(Ee,{onClick:t},n||(0,r.__)("← Back","seo-by-rank-math")),a&&wp.element.createElement("span",{className:"".concat(s,"__title")},a)),i&&wp.element.createElement("div",{className:"".concat(s,"__actions")},i))};tn.displayName="PageTopbar";const nn=tn;var an=n(7482),rn={};rn.styleTagTransform=_e(),rn.setAttributes=fe(),rn.insert=pe().bind(null,"head"),rn.domAPI=de(),rn.insertStyleElement=ye();ce()(an.A,rn);an.A&&an.A.locals&&an.A.locals;var on={error:{icon:"dashicons-warning",label:(0,r.__)("Error","seo-by-rank-math"),tooltip:(0,r.__)("Last analysis failed. It will be retried automatically.","seo-by-rank-math")},running:{icon:"dashicons-update",label:(0,r.__)("Running","seo-by-rank-math"),tooltip:(0,r.__)("Analysis in progress — data will appear in approximately 10 minutes.","seo-by-rank-math")},pending:{icon:"dashicons-update",label:(0,r.__)("Pending","seo-by-rank-math"),tooltip:(0,r.__)("Analysis in progress — data will appear in approximately 10 minutes.","seo-by-rank-math")}},ln=function(e){var t=e.variant,n=on[t];if(!n)return null;var a="rank-math-ai-visibility-status-icon";return wp.element.createElement(o.Tooltip,{text:n.tooltip},wp.element.createElement("span",{className:"".concat(a," ").concat(a,"--").concat(t)},wp.element.createElement("span",{className:"".concat(a,"__pill")},wp.element.createElement("span",{className:"dashicons ".concat(n.icon)}),wp.element.createElement("span",{className:"".concat(a,"__label")},n.label))))};ln.displayName="StatusIcon";const sn=ln,cn=(0,s.createElement)(u,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(d,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=rankMath.links[e]||"";if(!a)return"#";if(!t)return a;var i={utm_source:"Plugin",utm_medium:encodeURIComponent(t),utm_campaign:"WP"},r=a,o="",l=a.indexOf("#");-1!==l&&(r=a.substring(0,l),o=a.substring(l));var s=Object.keys(i).map(function(e){return"".concat(e,"=").concat(i[e])}).join("&"),c=r.includes("?")&&!r.endsWith("?")?"&":"?";return r+c+s+o+n}n.dn(mn);var dn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,i.map)((0,i.filter)(e,"enabled"),"id")},un=function(){return dn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,1)},pn=n(9368),bn={};bn.styleTagTransform=_e(),bn.setAttributes=fe(),bn.insert=pe().bind(null,"head"),bn.domAPI=de(),bn.insertStyleElement=ye();ce()(pn.A,bn);pn.A&&pn.A.locals&&pn.A.locals;function fn(e){return fn="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},fn(e)}function hn(e){return function(e){if(Array.isArray(e))return wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(t){_n(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=fn(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||kn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(e,t){if(e){if("string"==typeof e)return wn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var xn=function(e){return{name:"",url:"",description:"",locale:"",language:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",interval:"monthly",platforms:un(e)}},En=["name","url","description","language"],An=function(){return wp.element.createElement("span",{className:"rank-math-ai-visibility-add-brand-modal__coming-soon"},(0,r.__)("Coming Soon","seo-by-rank-math"))},Sn=function(e){var t=e.platform,n=e.checked,a=e.onChange,i=e.disabled,r="rank-math-ai-visibility-add-brand-modal",l=t.enabled,s=["".concat(r,"__platform-row"),l?"":"".concat(r,"__platform-row--disabled")].filter(Boolean).join(" ");return wp.element.createElement("div",{className:s},wp.element.createElement(o.CheckboxControl,{label:t.label,checked:!!l&&n,onChange:l?a:void 0,disabled:!l||i,__nextHasNoMarginBottom:!0}),!l&&wp.element.createElement(An,null))},Nn=function(e){var t,n=e.brand,s=void 0===n?null:n,c=e.onSave,m=e.onClose,d=e.isSaving,u=void 0!==d&&d,p=e.apiError,b=void 0===p?null:p,f=e.locales,h=void 0===f?[]:f,y=e.languages,v=void 0===y?[]:y,_=e.defaultLanguage,g=void 0===_?"":_,k=e.intervals,w=void 0===k?[]:k,x=e.platforms,E=void 0===x?{}:x,A=e.maxPlatforms,S=void 0===A?1:A,N=(0,a.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.map)(e,function(e,t){var n;return{id:t,label:null!==(n=null==e?void 0:e.label)&&void 0!==n?n:t,enabled:Boolean(null==e?void 0:e.enabled)}})}(E)},[E]),j=(0,a.useMemo)(function(){return dn(N).length},[N]),O=gn((0,a.useState)(function(){return xn(N,g)}),2),P=O[0],C=O[1],T=gn((0,a.useState)({}),2),I=T[0],z=T[1],M="rank-math-ai-visibility-add-brand-modal",D={name:(0,a.useRef)(null),url:(0,a.useRef)(null),description:(0,a.useRef)(null),language:(0,a.useRef)(null)},B=(0,a.useMemo)(function(){return h.reduce(function(e,t){var n=t.value,a=t.label;return e[n]=a,e},{"":(0,r.__)("Select country (optional)","seo-by-rank-math")})},[h]),L=(0,a.useMemo)(function(){return v.reduce(function(e,t){var n=t.name,a=t.icon;return e[n]=a?"".concat(a," ").concat(n):n,e},{})},[v]);(0,a.useEffect)(function(){var e,t,n,a,i,r,o;s?C({id:s.id,name:null!==(e=s.name)&&void 0!==e?e:"",url:null!==(t=s.url)&&void 0!==t?t:"",description:null!==(n=s.description)&&void 0!==n?n:"",locale:null!==(a=s.locale)&&void 0!==a?a:"",language:null!==(i=s.language)&&void 0!==i?i:"US English",interval:null!==(r=s.interval)&&void 0!==r?r:"monthly",platforms:null!==(o=s.platforms)&&void 0!==o&&o.length?s.platforms.slice(0,S):un(N)}):C(xn(N,g))},[s]);var R=function(e){return function(t){C(function(n){return vn(vn({},n),{},_n({},e,t))}),z(function(t){if(!t[e])return t;var n=vn({},t);return delete n[e],n})}},q=Boolean(s),F=u||0===(null==P||null===(t=P.platforms)||void 0===t?void 0:t.length)||!(null!=P&&P.language)||Object.keys(I).length>0;return wp.element.createElement(o.Modal,{onRequestClose:m,className:M,__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(M,"__header")},wp.element.createElement("div",{className:"".concat(M,"__header-text")},wp.element.createElement("h1",{className:"".concat(M,"__title")},q?(0,r.__)("Edit Brand or Product","seo-by-rank-math"):(0,r.__)("Add Brand or Product","seo-by-rank-math")),wp.element.createElement("p",{className:"".concat(M,"__subtitle")},(0,r.__)("Share the basics so we can start tracking this brand or a product.","seo-by-rank-math"),wp.element.createElement("a",{href:mn("ai-visibility","AI Visibility Add Brand Modal"),target:"_blank",rel:"noopener noreferrer"},(0,r.__)("Learn more","seo-by-rank-math")))),wp.element.createElement(Ee,{variant:"",onClick:m,disabled:u,className:"".concat(M,"__close")},wp.element.createElement(o.Icon,{icon:cn,size:24}))),wp.element.createElement("hr",{className:"".concat(M,"__divider")}),wp.element.createElement("div",{className:"".concat(M,"__body")},wp.element.createElement("div",{className:"".concat(M,"__field"),ref:D.name},wp.element.createElement(o.TextControl,{label:(0,r.__)("Brand / Product Name","seo-by-rank-math"),value:P.name,onChange:R("name"),placeholder:(0,r.__)("Enter your brand or product name","seo-by-rank-math"),disabled:u,help:I.name,className:I.name?"".concat(M,"__field--error"):"",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(M,"__field"),ref:D.url},wp.element.createElement(o.TextControl,{label:(0,r.__)("Brand / Product URL","seo-by-rank-math"),value:P.url,onChange:R("url"),onBlur:function(){var e=P.url.trim();if(e&&!/^https?:\/\//i.test(e)){var t=e.startsWith("//")?"https:"+e:"https://"+e;R("url")(t)}},placeholder:"https://example.com",type:"url",disabled:u,help:I.url,className:I.url?"".concat(M,"__field--error"):"",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(M,"__field"),ref:D.description},wp.element.createElement(o.TextareaControl,{label:(0,r.__)("How would you describe your brand/product?","seo-by-rank-math"),value:P.description,onChange:R("description"),placeholder:(0,r.__)("Describe what your brand/product does, who it's for, and what makes it unique. This helps AI models identify and accurately represent you.","seo-by-rank-math"),disabled:u,rows:3,help:I.description,className:I.description?"".concat(M,"__field--error"):"",__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(M,"__field")},wp.element.createElement("span",{className:"".concat(M,"__label")},(0,r.__)("Target Country (Optional)","seo-by-rank-math")),wp.element.createElement(l.SelectWithSearch,{value:P.locale,options:B,onChange:R("locale"),disabled:u})),wp.element.createElement("div",{className:"".concat(M,"__field"),ref:D.language},wp.element.createElement("span",{className:"".concat(M,"__label")},(0,r.__)("Output Language","seo-by-rank-math")),wp.element.createElement(l.SelectWithSearch,{value:P.language,options:L,onChange:R("language"),disabled:u||q,className:I.language?"".concat(M,"__field--error"):""}),I.language&&wp.element.createElement("p",{className:"".concat(M,"__field-note ").concat(M,"__field-note--error")},I.language),q&&wp.element.createElement("p",{className:"".concat(M,"__field-note")},(0,r.__)("Language can't be changed after a brand is created.","seo-by-rank-math"))),wp.element.createElement("div",{className:"".concat(M,"__field")},wp.element.createElement(o.SelectControl,{label:(0,r.__)("Frequency of analyses","seo-by-rank-math"),value:P.interval,options:w,onChange:R("interval"),disabled:u,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(M,"__field")},wp.element.createElement("span",{className:"".concat(M,"__label")},(0,r.__)("AI Platforms","seo-by-rank-math")),S<j&&wp.element.createElement("p",{className:"".concat(M,"__field-note")},(0,r.sprintf)((0,r._n)("Your plan lets you track %d platform per brand. Upgrade to Expert to track them all at once.","Your plan lets you track %d platforms per brand. Upgrade to Expert to track them all at once.",S,"seo-by-rank-math"),S)),0===P.platforms.length&&wp.element.createElement("p",{className:"".concat(M,"__field-note ").concat(M,"__field-note--error")},(0,r.__)("Select at least one AI platform.","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(M,"__platforms")},N.map(function(e){return wp.element.createElement(Sn,{key:e.id,platform:e,checked:P.platforms.includes(e.id),onChange:function(){return t=e.id,void C(function(e){if(e.platforms.includes(t))return vn(vn({},e),{},{platforms:e.platforms.filter(function(e){return e!==t})});var n=[].concat(hn(e.platforms),[t]);return vn(vn({},e),{},{platforms:n.slice(Math.max(0,n.length-S))})});var t},disabled:u})})))),b&&wp.element.createElement("div",{className:"".concat(M,"__api-error"),role:"alert"},b),wp.element.createElement("div",{className:"".concat(M,"__footer")},wp.element.createElement(Ee,{variant:"secondary",onClick:m,disabled:u},(0,r.__)("Cancel","seo-by-rank-math")),wp.element.createElement(Ne,{variant:"primary",onClick:function(){var e=function(){var e={};return P.name.trim()||(e.name=(0,r.__)("Brand name is required.","seo-by-rank-math")),P.url.trim()?/^https?:\/\/.+\..+/.test(P.url.trim())||(e.url=(0,r.__)("Please enter a valid URL (must start with https://).","seo-by-rank-math")):e.url=(0,r.__)("Website URL is required.","seo-by-rank-math"),P.description.trim()||(e.description=(0,r.__)("Description is required.","seo-by-rank-math")),P.language||(e.language=(0,r.__)("Language is required.","seo-by-rank-math")),z(e),e}();Object.keys(e).length>0?function(e){var t,n=En.find(function(t){return e[t]}),a=n?null===(t=D[n])||void 0===t?void 0:t.current:null;if(a){a.scrollIntoView({behavior:"smooth",block:"center"});var i=a.querySelector("input, textarea");i&&i.focus({preventScroll:!0})}}(e):c({name:P.name.trim(),url:P.url.trim(),description:P.description.trim(),locale:P.locale,language:P.language,interval:P.interval,platforms:P.platforms})},isLoading:u,loadingLabel:q?(0,r.__)("Saving…","seo-by-rank-math"):(0,r.__)("Adding…","seo-by-rank-math"),disabled:F},q?(0,r.__)("Save Changes","seo-by-rank-math"):(0,r.__)("Add","seo-by-rank-math"))))};Nn.displayName="AddBrandModal";const jn=Nn;var On=n(9559),Pn={};Pn.styleTagTransform=_e(),Pn.setAttributes=fe(),Pn.insert=pe().bind(null,"head"),Pn.domAPI=de(),Pn.insertStyleElement=ye();ce()(On.A,Pn);On.A&&On.A.locals&&On.A.locals;var Cn=n(1664),Tn={};Tn.styleTagTransform=_e(),Tn.setAttributes=fe(),Tn.insert=pe().bind(null,"head"),Tn.domAPI=de(),Tn.insertStyleElement=ye();ce()(Cn.A,Tn);Cn.A&&Cn.A.locals&&Cn.A.locals;var In=function(){},zn=function(e){var t=e.icon,n=void 0===t?"":t,a=e.title,r=e.className,l=void 0===r?"":r,s=e.isDismissible,c=void 0!==s&&s,m=e.onRequestClose,d=void 0===m?In:m,u=e.children,p="rank-math-ai-visibility-access-gate-modal";return wp.element.createElement(o.Modal,{onRequestClose:d,className:(0,i.join)((0,i.compact)([p,l])," "),overlayClassName:"rank-math-modal-overlay rank-math-ai-visibility-content-overlay",isDismissible:c,shouldCloseOnEsc:c,shouldCloseOnClickOutside:c,aria:{labelledby:"".concat(p,"-title")},__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(p,"__header")},n&&wp.element.createElement("i",{className:"".concat(p,"__header-icon ").concat(n),"aria-hidden":"true"}),wp.element.createElement("h1",{id:"".concat(p,"-title"),className:"".concat(p,"__title")},a)),wp.element.createElement("div",{className:"".concat(p,"__body")},u))};zn.displayName="AccessGateModal";const Mn=zn;var Dn=n(5357),Bn={};Bn.styleTagTransform=_e(),Bn.setAttributes=fe(),Bn.insert=pe().bind(null,"head"),Bn.domAPI=de(),Bn.insertStyleElement=ye();ce()(Dn.A,Bn);Dn.A&&Dn.A.locals&&Dn.A.locals;var Ln=[(0,r.__)("Track how often AI mentions your brand","seo-by-rank-math"),(0,r.__)("Monitor sentiment across AI search results","seo-by-rank-math"),(0,r.__)("See which pages AI models cite as sources","seo-by-rank-math"),(0,r.__)("Benchmark your AI visibility against competitors","seo-by-rank-math"),(0,r.__)("Spot opportunities to grow your AI-driven traffic","seo-by-rank-math")],Rn=function(e){var t=e.features,n=void 0===t?Ln:t,a="rank-math-ai-visibility-feature-checklist";return wp.element.createElement("ul",{className:a},n.map(function(e){return wp.element.createElement("li",{key:e,className:"".concat(a,"__item")},wp.element.createElement("i",{className:"".concat(a,"__icon dashicons dashicons-yes-alt"),"aria-hidden":"true"}),wp.element.createElement("span",{className:"".concat(a,"__label")},e))}))};Rn.displayName="FeatureChecklist";const qn=Rn,Fn=(0,s.createElement)(u,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(d,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var Un=function(){var e="rank-math-ai-visibility-gate";return wp.element.createElement(Mn,{icon:"dashicons dashicons-lock",title:(0,r.__)("Upgrade to Unlock AI Visibility","seo-by-rank-math"),className:"rank-math-ai-visibility-unlock-modal"},wp.element.createElement("p",{className:"".concat(e,"__intro")},wp.element.createElement("strong",null,(0,r.__)("Your competitors are already tracking their AI presence. You should be too.","seo-by-rank-math"))," ",(0,r.__)("Upgrade to unlock AI Visibility module and see where your brand appears across ChatGPT, and other AI platforms, and take action before you fall further behind.","seo-by-rank-math")),wp.element.createElement(qn,null),wp.element.createElement("div",{className:"".concat(e,"__actions")},wp.element.createElement(Ee,{variant:"primary",className:"".concat(e,"__cta"),href:mn("content-ai-pricing-tables","AI Visibility Upgrade Modal"),target:"_blank",rel:"noreferrer",iconRight:wp.element.createElement(o.Icon,{icon:Fn,size:18})},(0,r.__)("Start 15-Day Free Trial","seo-by-rank-math"))),wp.element.createElement("p",{className:"".concat(e,"__footnote")},(0,r.__)("30-Day Money-Back Guarantee","seo-by-rank-math")))};Un.displayName="UpgradeToUnlockModal";const Gn=Un;function Vn(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return Hn(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(Hn(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Hn(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Hn(d,"constructor",c),Hn(c,"constructor",s),s.displayName="GeneratorFunction",Hn(c,i,"GeneratorFunction"),Hn(d),Hn(d,i,"Generator"),Hn(d,a,function(){return this}),Hn(d,"toString",function(){return"[object Generator]"}),(Vn=function(){return{w:r,m:u}})()}function Hn(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Hn=function(e,t,n,a){function r(t,n){Hn(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},Hn(e,t,n,a)}function Qn(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function Wn(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Qn(r,a,i,o,l,"next",e)}function l(e){Qn(r,a,i,o,l,"throw",e)}o(void 0)})}}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Kn="idle",Zn="activating",Jn="success",Xn="error";const ea=function(){var e=$n((0,a.useState)(Kn),2),t=e[0],n=e[1],i=$n((0,a.useState)(null),2),o=i[0],l=i[1];return{status:t,error:o,activate:(0,a.useCallback)(Wn(Vn().m(function e(){var t,a,i;return Vn().w(function(e){for(;;)switch(e.p=e.n){case 0:return n(Zn),l(null),t=Date.now(),e.p=1,e.n=2,C();case 2:if(!((a=3500-(Date.now()-t))>0)){e.n=3;break}return e.n=3,new Promise(function(e){return setTimeout(e,a)});case 3:n(Jn),e.n=5;break;case 4:e.p=4,i=e.v,n(Xn),l((null==i?void 0:i.message)||(0,r.__)("Something went wrong while activating your trial. Please try again.","seo-by-rank-math"));case 5:return e.a(2)}},e,null,[[1,4]])})),[])}};var ta=n(5367),na={};na.styleTagTransform=_e(),na.setAttributes=fe(),na.insert=pe().bind(null,"head"),na.domAPI=de(),na.insertStyleElement=ye();ce()(ta.A,na);ta.A&&ta.A.locals&&ta.A.locals;function aa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ia(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ia(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ra=function(){},oa=[(0,r.__)("Authenticating credentials…","seo-by-rank-math"),(0,r.__)("Provisioning AI tracking workspace…","seo-by-rank-math"),(0,r.__)("Connecting to AI search models…","seo-by-rank-math")],la=function(e){var t=e.error,n=e.onActivate,a="rank-math-ai-visibility-gate",i=new Date(Date.now()+1296e6).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"});return wp.element.createElement(Mn,{icon:"dashicons dashicons-unlock",title:(0,r.__)("Activate Your AI Visibility Trial","seo-by-rank-math"),className:"rank-math-ai-visibility-trial-modal"},wp.element.createElement("p",{className:"".concat(a,"__intro")},(0,r.sprintf)((0,r.__)("Start your free trial and see exactly where AI mentions your brand. Your %d-day trial gives you full access to track, analyze, and grow your presence, before your competitors do.","seo-by-rank-math"),15)),wp.element.createElement(qn,null),wp.element.createElement("p",{className:"".concat(a,"__notice")},(0,r.sprintf)((0,r.__)("Your trial begins immediately. Auto-renews on %s unless cancelled.","seo-by-rank-math"),i)),t&&wp.element.createElement("div",{className:"".concat(a,"__error"),role:"alert"},t),wp.element.createElement("div",{className:"".concat(a,"__actions")},wp.element.createElement(Ee,{variant:"primary",className:"".concat(a,"__cta"),onClick:n,iconRight:wp.element.createElement(o.Icon,{icon:Fn,size:18})},t?(0,r.__)("Retry Activation","seo-by-rank-math"):(0,r.__)("Start 15-Day Free Trial","seo-by-rank-math"))),wp.element.createElement("p",{className:"".concat(a,"__footnote")},(0,r.__)("30-Day Money-Back Guarantee","seo-by-rank-math")))},sa=function(){var e="rank-math-ai-visibility-activating-modal",t=aa((0,a.useState)(0),2),n=t[0],i=t[1];return(0,a.useEffect)(function(){var e=setInterval(function(){i(function(e){return Math.min(e+1,oa.length-1)})},1200);return function(){return clearInterval(e)}},[]),wp.element.createElement(o.Modal,{onRequestClose:ra,className:e,overlayClassName:"rank-math-modal-overlay rank-math-ai-visibility-content-overlay",isDismissible:!1,shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,aria:{labelledby:"".concat(e,"-title")},__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(e,"__spinner")},wp.element.createElement(o.Spinner,null)),wp.element.createElement("h1",{id:"".concat(e,"-title"),className:"".concat(e,"__title")},(0,r.__)("Activating Your AI Visibility Trial…","seo-by-rank-math")),wp.element.createElement("p",{className:"".concat(e,"__subtitle")},(0,r.__)("We're setting up your workspace and connecting AI models. This will take just a moment.","seo-by-rank-math")),wp.element.createElement("ul",{className:"".concat(e,"__steps")},oa.map(function(t,a){var i=function(e,t){return e<t?"done":e===t?"active":"pending"}(a,n);return wp.element.createElement("li",{key:t,className:"".concat(e,"__step ").concat(e,"__step--").concat(i)},wp.element.createElement("span",{className:"".concat(e,"__step-icon"),"aria-hidden":"true"},"done"===i?wp.element.createElement("i",{className:"rm-icon rm-icon-tick"}):wp.element.createElement("span",{className:"".concat(e,"__step-circle")})),t)})))},ca=function(){var e="rank-math-ai-visibility-trial-success",t=aa((0,a.useState)(!1),2),n=t[0],i=t[1];return wp.element.createElement(Mn,{icon:"dashicons dashicons-yes-alt",title:(0,r.__)("Welcome to AI Visibility","seo-by-rank-math"),className:e},wp.element.createElement("p",{className:"rank-math-ai-visibility-gate__intro"},(0,r.__)("Your 15-day free trial is now active. We've sent a confirmation email with your trial details and next steps.","seo-by-rank-math")),n?wp.element.createElement("div",{className:"".concat(e,"__video ").concat(e,"__video--playing")},wp.element.createElement("iframe",{className:"".concat(e,"__video-iframe"),src:"https://www.youtube.com/embed/aqz-KE-bpKQ?autoplay=1",title:(0,r.__)("Quick Start Guide","seo-by-rank-math"),allow:"autoplay; fullscreen",allowFullScreen:!0})):wp.element.createElement("div",{className:"".concat(e,"__video ").concat(e,"__video--idle"),role:"button",tabIndex:0,onClick:function(){return i(!0)},onKeyDown:function(e){return("Enter"===e.key||" "===e.key)&&i(!0)},"aria-label":(0,r.__)("Play Quick Start Guide","seo-by-rank-math")},wp.element.createElement("i",{className:"".concat(e,"__video-play dashicons dashicons-controls-play"),"aria-hidden":"true"}),wp.element.createElement("span",{className:"".concat(e,"__video-caption")},(0,r.__)("Quick Start Guide","seo-by-rank-math"))),wp.element.createElement("div",{className:"".concat(e,"__links")},wp.element.createElement("a",{href:mn("knowledgebase","AI Visibility Welcome Modal"),target:"_blank",rel:"noreferrer",className:"".concat(e,"__link")},wp.element.createElement("i",{className:"rm-icon rm-icon-book","aria-hidden":"true"}),(0,r.__)("Knowledge Base","seo-by-rank-math")),wp.element.createElement("a",{href:mn("support","AI Visibility Welcome Modal"),target:"_blank",rel:"noreferrer",className:"".concat(e,"__link")},wp.element.createElement("i",{className:"rm-icon rm-icon-support","aria-hidden":"true"}),(0,r.__)("Contact Support","seo-by-rank-math"))),wp.element.createElement("div",{className:"rank-math-ai-visibility-gate__actions"},wp.element.createElement(Ee,{variant:"primary",className:"rank-math-ai-visibility-gate__cta",onClick:function(){return window.location.reload()},iconRight:wp.element.createElement(o.Icon,{icon:Fn,size:18})},(0,r.__)("Go to Dashboard","seo-by-rank-math"))))},ma=function(){var e=ea(),t=e.status,n=e.error,a=e.activate;return Zn===t?wp.element.createElement(sa,null):Jn===t?wp.element.createElement(ca,null):wp.element.createElement(la,{error:n,onActivate:a})};ma.displayName="ActivateTrialModal";const da=ma;var ua=n(1655),pa={};pa.styleTagTransform=_e(),pa.setAttributes=fe(),pa.insert=pe().bind(null,"head"),pa.domAPI=de(),pa.insertStyleElement=ye();ce()(ua.A,pa);ua.A&&ua.A.locals&&ua.A.locals;function ba(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ha=function(){var e="rank-math-ai-visibility-checkout-iframe",t=ba((0,a.useState)(""),2),n=t[0],i=t[1],l=ba((0,a.useState)(null),2),s=l[0],c=l[1],m=ba((0,a.useState)(!0),2),d=m[0],u=m[1],p=(0,a.useRef)(!1),b=function(){u(!0),c(null),A(S("/checkout-url"),{method:"POST"}).then(function(e){if(null==e||!e.url)throw new Error((null==e?void 0:e.message)||(0,r.__)("Could not start the checkout session. Please try again.","seo-by-rank-math"));i(e.url)}).catch(function(e){return c((null==e?void 0:e.message)||(0,r.__)("Could not start the checkout session. Please try again.","seo-by-rank-math"))}).finally(function(){return u(!1)})};(0,a.useEffect)(function(){p.current||(p.current=!0,b())},[]);return d?wp.element.createElement("div",{className:"".concat(e,"__state")},wp.element.createElement(o.Spinner,null)):s?wp.element.createElement("div",{className:"".concat(e,"__state")},wp.element.createElement("p",{className:"".concat(e,"__error")},s),wp.element.createElement(Ee,{variant:"secondary",onClick:function(){p.current=!0,b()}},(0,r.__)("Try Again","seo-by-rank-math"))):wp.element.createElement("iframe",{className:e,src:n,title:(0,r.__)("Upgrade your Content AI plan","seo-by-rank-math")})};ha.displayName="CheckoutIframe";const ya=ha;var va=n(3771),_a={};_a.styleTagTransform=_e(),_a.setAttributes=fe(),_a.insert=pe().bind(null,"head"),_a.domAPI=de(),_a.insertStyleElement=ye();ce()(va.A,_a);va.A&&va.A.locals&&va.A.locals;var ga=function(e){var t=e.plan,n=void 0===t?"":t,a=e.isTopTier,l=void 0!==a&&a,s=e.onClose,c=e.children,m=void 0===c?null:c,d="rank-math-ai-visibility-upgrade-plan-modal",u=l?(0,r.__)("You've reached the maximum number of brands available on your plan. Contact support if you need a higher limit.","seo-by-rank-math"):(0,r.sprintf)((0,r.__)("You've reached the brand limit for your current %s plan.","seo-by-rank-math"),(0,i.upperFirst)(n));return wp.element.createElement(o.Modal,{onRequestClose:s,className:d,overlayClassName:"rank-math-modal-overlay rank-math-ai-visibility-content-overlay",aria:{labelledby:"".concat(d,"-title")},__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(d,"__header")},wp.element.createElement("i",{className:"".concat(d,"__header-icon dashicons dashicons-warning"),"aria-hidden":"true"}),wp.element.createElement("div",{className:"".concat(d,"__header-text")},wp.element.createElement("h1",{id:"".concat(d,"-title"),className:"".concat(d,"__title")},(0,r.__)("Upgrade Your Plan","seo-by-rank-math")),wp.element.createElement("p",{className:"".concat(d,"__subtitle")},u)),wp.element.createElement(Ee,{variant:"",onClick:s,className:"".concat(d,"__close"),label:(0,r.__)("Close","seo-by-rank-math")},wp.element.createElement(o.Icon,{icon:cn,size:20}))),wp.element.createElement("div",{className:"".concat(d,"__body")},m||wp.element.createElement(ya,null)),wp.element.createElement("div",{className:"".concat(d,"__footer")},wp.element.createElement("p",{className:"".concat(d,"__guarantee")},(0,r.__)("All plans include a 30-day money-back guarantee.","seo-by-rank-math")),wp.element.createElement(Ee,{variant:"link",onClick:s,className:"".concat(d,"__later")},(0,r.__)("I'll do this later","seo-by-rank-math"))))};ga.displayName="UpgradePlanModal";const ka=ga;var wa=n(8766),xa={};xa.styleTagTransform=_e(),xa.setAttributes=fe(),xa.insert=pe().bind(null,"head"),xa.domAPI=de(),xa.insertStyleElement=ye();ce()(wa.A,xa);wa.A&&wa.A.locals&&wa.A.locals;var Ea=function(e){var t=e.searchValue,n=void 0===t?"":t,a=e.onSearchChange,i=void 0===a?function(){}:a,l=e.onAdd,s=void 0===l?function(){}:l,c="rank-math-ai-visibility-brands-toolbar";return wp.element.createElement("div",{className:c},wp.element.createElement(Ee,{variant:"primary",onClick:s},(0,r.__)("+ Add Brand / Product","seo-by-rank-math")),wp.element.createElement(o.SearchControl,{className:"".concat(c,"__search"),placeholder:(0,r.__)("Search name or URL","seo-by-rank-math"),value:n,onChange:i,__nextHasNoMarginBottom:!0}))};Ea.displayName="BrandsTableToolbar";const Aa=Ea;var Sa=n(3019),Na={};Na.styleTagTransform=_e(),Na.setAttributes=fe(),Na.insert=pe().bind(null,"head"),Na.domAPI=de(),Na.insertStyleElement=ye();ce()(Sa.A,Na);Sa.A&&Sa.A.locals&&Sa.A.locals;const ja=(0,a.memo)(function(e){var t=e.brands,n=void 0===t?[]:t,o=e.loading,s=void 0!==o&&o,c=e.pagination,m=void 0===c?{}:c,d=e.onView,u=void 0===d?function(){}:d,p=e.onEdit,b=void 0===p?function(){}:p,f=e.onDisable,h=void 0===f?function(){}:f,y=e.onPageChange,v=void 0===y?function(){}:y,_=e.onPerPageChange,g=void 0===_?function(){}:_,k="rank-math-ai-visibility-brands-table",w=(0,a.useMemo)(function(){return[{key:"name",label:(0,r.__)("Brand","seo-by-rank-math"),render:function(e,t){return wp.element.createElement("div",{className:"".concat(k,"__brand-cell")},wp.element.createElement("a",{href:"#",className:"".concat(k,"__brand-name"),onClick:function(e){e.preventDefault(),u(t)}},e),wp.element.createElement("div",{className:"".concat(k,"__brand-link")},wp.element.createElement("a",{className:"".concat(k,"__brand-url"),href:t.url,target:"_blank",rel:"noreferrer"},t.url),t.locale&&wp.element.createElement(He,{locale:t.locale})))}},{key:"score",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),render:function(e){return wp.element.createElement(Ht,{score:null!=e?e:null})}},{key:"rank",label:(0,r.__)("Avg Rank","seo-by-rank-math"),render:function(e){return wp.element.createElement(De,{rank:e})}},{key:"avg_sentiment",label:(0,r.__)("Avg sentiment","seo-by-rank-math"),render:function(e){return wp.element.createElement(qe,{score:e})}},{key:"mentions",label:(0,r.__)("Mentions","seo-by-rank-math"),render:function(e){return wp.element.createElement($t,{value:e,variant:"mentions"})}},{key:"citations",label:(0,r.__)("Citations","seo-by-rank-math"),render:function(e){return wp.element.createElement($t,{value:e,variant:"citations"})}},{key:"last_analyzed",label:(0,r.__)("Last analyzed","seo-by-rank-math"),render:function(e,t){var n=D(t);return wp.element.createElement("span",{className:"".concat(k,"__last-analyzed")},e?jt(e):!n&&"-",n&&wp.element.createElement(sn,{variant:n}))}},{key:"id",label:(0,r.__)("Actions","seo-by-rank-math"),render:function(e,t){return wp.element.createElement(Je,{status:null==t?void 0:t.status,onView:function(){return u(t)},onEdit:function(){return b(t)},onDisable:function(){return h(t)}})}}]},[u,b,h]);return s&&!n.length?wp.element.createElement(l.TableSkeleton,{columns:7,rows:10}):wp.element.createElement("div",{className:k},wp.element.createElement(l.ListTable,{storageKey:"ai-visibility-brands",headers:w,rows:n,currentPage:(0,i.get)(m,"page",1),rowsPerPage:(0,i.get)(m,"perPage",10),totalItems:(0,i.get)(m,"total",n.length),totalPages:(0,i.get)(m,"pages",1),onPageChange:v,onRowsPerPageChange:g,getRowClass:function(e){return"inactive"===(null==e?void 0:e.status)?"is-disabled":""}}))});function Oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const Ca=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skip,r=void 0!==i&&i,o=n.errorMessage,l=void 0===o?"Failed to load.":o,s=n.initialData,c=void 0===s?null:s,m=Oa((0,a.useState)(c),2),d=m[0],u=m[1],p=Oa((0,a.useState)(!r),2),b=p[0],f=p[1],h=Oa((0,a.useState)(null),2),y=h[0],v=h[1];return(0,a.useEffect)(function(){if(!r){var t=!1;return f(!0),v(null),e().then(function(e){t||(u(e),f(!1))}).catch(function(e){t||(v((null==e?void 0:e.message)||l),f(!1))}),function(){t=!0}}f(!1)},t),{data:d,loading:b,error:y,setData:u}};const Ta=function(e){var t=e.onBack,n=e.onExport,a=void 0===n?function(){}:n;return wp.element.createElement(nn,{onBack:t,title:(0,r.__)("Brand detail","seo-by-rank-math"),actions:wp.element.createElement(Ee,{variant:"secondary",onClick:a},(0,r.__)("Export Report","seo-by-rank-math"))})},Ia=(0,s.createElement)(u,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(d,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));var za=n(421),Ma={};Ma.styleTagTransform=_e(),Ma.setAttributes=fe(),Ma.insert=pe().bind(null,"head"),Ma.domAPI=de(),Ma.insertStyleElement=ye();ce()(za.A,Ma);za.A&&za.A.locals&&za.A.locals;var Da=function(e){return e?e.startsWith("http")?e:"https://".concat(e):"#"};const Ba=function(e){var t=e.brand,n=e.onEdit,a=void 0===n?function(){}:n,i="rank-math-ai-visibility-brand-header",l="active"===(null==t?void 0:t.status);return wp.element.createElement("div",{className:i},wp.element.createElement("div",{className:"".concat(i,"__card")},wp.element.createElement("div",{className:"".concat(i,"__content")},wp.element.createElement("div",{className:"".concat(i,"__identity")},wp.element.createElement("div",{className:"".concat(i,"__name-row")},wp.element.createElement("h1",{className:"".concat(i,"__name")},t.name),wp.element.createElement(Ee,{variant:"secondary",onClick:a,className:"".concat(i,"__edit-btn")},wp.element.createElement("span",{className:"rm-icon rm-icon-edit"}),(0,r.__)("Edit Brand","seo-by-rank-math"))),wp.element.createElement("div",{className:"".concat(i,"__url-row")},wp.element.createElement("a",{className:"".concat(i,"__url"),href:Da(t.url),target:"_blank",rel:"noreferrer"},t.url),t.locale&&wp.element.createElement(He,{locale:t.locale}),t.language&&wp.element.createElement("span",{className:"".concat(i,"__language")},t.language),wp.element.createElement("a",{className:"".concat(i,"__external"),href:Da(t.url),target:"_blank",rel:"noreferrer","aria-label":(0,r.__)("Open brand URL","seo-by-rank-math")},wp.element.createElement(o.Icon,{icon:Ia,size:14}))),wp.element.createElement("div",{className:"".concat(i,"__meta-row")},wp.element.createElement("span",{className:"".concat(i,"__status ").concat(i,"__status--").concat(l?"active":"inactive")},l?(0,r.__)("Active","seo-by-rank-math"):(0,r.__)("Inactive","seo-by-rank-math")),t.last_analyzed&&wp.element.createElement("span",{className:"".concat(i,"__last-analysis")},wp.element.createElement("span",{className:"dashicons dashicons-clock"}),(0,r.__)("Last analysis:","seo-by-rank-math")," ",Nt(t.last_analyzed)))),t.description&&wp.element.createElement("div",{className:"".concat(i,"__description-panel")},wp.element.createElement("strong",{className:"".concat(i,"__description-label")},(0,r.__)("Description","seo-by-rank-math")),wp.element.createElement("p",{className:"".concat(i,"__description-text")},t.description)))))};var La=n(695),Ra={};Ra.styleTagTransform=_e(),Ra.setAttributes=fe(),Ra.insert=pe().bind(null,"head"),Ra.domAPI=de(),Ra.insertStyleElement=ye();ce()(La.A,Ra);La.A&&La.A.locals&&La.A.locals;const qa=function(e){var t,n,a,o,l,s,c,m,d=e.brand,u=e.insights,p=void 0===u?null:u,b=e.loading;if(!d)return null;var f=void 0!==b&&b?"…":"—",h=null!==(t=null==p||null===(n=p.competitors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name)&&void 0!==t?t:null,y="rank-math-ai-visibility-brand-overview";return wp.element.createElement("div",{className:y},wp.element.createElement("div",{className:"".concat(y,"__stats")},wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--score"),icon:" rm-icon-ai-visibility",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),value:null!==(null==p?void 0:p.score)&&void 0!==(null==p?void 0:p.score)?"".concat(p.score,"/100"):f,tooltip:(0,r.__)("AI Visibility Score for this brand across AI platforms.","seo-by-rank-math"),analysis:null==p||null===(a=p.analyses)||void 0===a?void 0:a[0]}),wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--rank"),icon:"chart-line",label:(0,r.__)("Avg Rank","seo-by-rank-math"),value:null!==(o=null==p?void 0:p.rank)&&void 0!==o?o:f,tooltip:(0,r.__)("Average rank of this brand across AI-generated mentions.","seo-by-rank-math"),analysis:null==p?void 0:p.analysis}),wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--sentiment"),icon:"smiley",label:(0,r.__)("Avg Sentiments","seo-by-rank-math"),value:null!==(null==p?void 0:p.avg_sentiment)&&void 0!==(null==p?void 0:p.avg_sentiment)?"".concat((0,i.round)(p.avg_sentiment),"%"):f,tooltip:(0,r.__)("Average sentiment score across all AI mentions of this brand.","seo-by-rank-math"),analysis:null==p||null===(l=p.analyses)||void 0===l?void 0:l[0]}),wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--mentions"),icon:" rm-icon-comments",label:(0,r.__)("Recent Mentions","seo-by-rank-math"),value:null!==(s=null==p?void 0:p.mentions)&&void 0!==s?s:f,tooltip:(0,r.__)("Total brand mentions across AI-generated content.","seo-by-rank-math"),analysis:null==p?void 0:p.analysis}),wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--citations"),icon:" rm-icon-misc",label:(0,r.__)("Citations","seo-by-rank-math"),value:null!==(c=null==p?void 0:p.citations)&&void 0!==c?c:f,tooltip:(0,r.__)("Total citations of this brand across AI-generated content.","seo-by-rank-math"),analysis:null==p?void 0:p.analysis}),wp.element.createElement(Pe,{className:"".concat(y,"__stat-card ").concat(y,"__stat-card--competitor"),icon:"awards",label:(0,r.__)("Top Competitor","seo-by-rank-math"),value:h||f,tooltip:(0,r.__)("The competitor brand with the highest share of voice in AI mentions.","seo-by-rank-math"),analysis:null==p||null===(m=p.analyses)||void 0===m?void 0:m[0]})))};var Fa=n(5607),Ua={};Ua.styleTagTransform=_e(),Ua.setAttributes=fe(),Ua.insert=pe().bind(null,"head"),Ua.domAPI=de(),Ua.insertStyleElement=ye();ce()(Fa.A,Ua);Fa.A&&Fa.A.locals&&Fa.A.locals;function Ga(e){return Ga="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},Ga(e)}function Va(e){return function(e){if(Array.isArray(e))return ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){Wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ga(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Ga(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ga(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $a(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return Ya(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(Ya(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ya(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ya(d,"constructor",c),Ya(c,"constructor",s),s.displayName="GeneratorFunction",Ya(c,i,"GeneratorFunction"),Ya(d),Ya(d,i,"Generator"),Ya(d,a,function(){return this}),Ya(d,"toString",function(){return"[object Generator]"}),($a=function(){return{w:r,m:u}})()}function Ya(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ya=function(e,t,n,a){function r(t,n){Ya(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},Ya(e,t,n,a)}function Ka(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function Za(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Ka(r,a,i,o,l,"next",e)}function l(e){Ka(r,a,i,o,l,"throw",e)}o(void 0)})}}function Ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||Xa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xa(e,t){if(e){if("string"==typeof e)return ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const ti=function(e){var t=e.brandId,n="rank-math-ai-visibility-queries-table",i=Ja((0,a.useState)([]),2),o=i[0],s=i[1],c=Ja((0,a.useState)([]),2),m=c[0],d=c[1],u=Ja((0,a.useState)(!0),2),p=u[0],b=u[1],f=Ja((0,a.useState)(null),2),h=f[0],y=f[1],v=Ja((0,a.useState)(!1),2),_=v[0],g=v[1],k=Ja((0,a.useState)(!1),2),w=k[0],x=k[1],E=(0,a.useCallback)(Za($a().m(function e(){var n,a;return $a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return s([]),b(!1),e.a(2);case 1:return b(!0),e.p=2,e.n=3,I(t);case 3:n=e.v,a=Array.isArray(null==n?void 0:n.queries)?n.queries:[],d(a.map(function(e){return e.id})),s(a),e.n=5;break;case 4:e.p=4,e.v,s([]);case 5:return e.p=5,b(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])})),[t]);(0,a.useEffect)(function(){E()},[E]);var A=(0,a.useCallback)(function(){var e=Za($a().m(function e(n,a){return $a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return y(n.id),s(function(e){return Va(e.map(function(e){return e.id===n.id?Qa(Qa({},e),{},{enabled:a}):e})).sort(function(e,t){return m.indexOf(e.id)-m.indexOf(t.id)})}),e.p=2,e.n=3,z(t,n.id,{enabled:a});case 3:e.n=5;break;case 4:e.p=4,e.v,s(function(e){return Va(e.map(function(e){return e.id===n.id?Qa(Qa({},e),{},{enabled:n.enabled}):e})).sort(function(e,t){return m.indexOf(e.id)-m.indexOf(t.id)})});case 5:return e.p=5,y(null),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t,n){return e.apply(this,arguments)}}(),[t]),S=(0,a.useCallback)(Za($a().m(function e(){var n;return $a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return g(!1),x(!0),b(!0),e.p=2,e.n=3,M(t);case 3:n=e.v,s(Array.isArray(null==n?void 0:n.queries)?n.queries:[]),e.n=5;break;case 4:return e.p=4,e.v,e.n=5,E();case 5:return e.p=5,x(!1),b(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])})),[t,E]);return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:"".concat(n,"__toolbar")},wp.element.createElement(Ne,{variant:"secondary",onClick:function(){return o.length>0?g(!0):S()},isLoading:w,loadingLabel:(0,r.__)("Regenerating…","seo-by-rank-math"),iconLeft:wp.element.createElement("span",{className:"dashicons dashicons-update","aria-hidden":"true"}),disabled:p},(0,r.__)("Regenerate baseline queries","seo-by-rank-math"))),p&&wp.element.createElement(l.TableSkeleton,{columns:4,rows:5}),!p&&0===o.length&&wp.element.createElement(Ie,{heading:(0,r.__)("No queries yet","seo-by-rank-math"),description:(0,r.__)("Regenerate baseline queries to start tracking how AI answers questions about this brand.","seo-by-rank-math")}),!p&&o.length>0&&wp.element.createElement(Jt,{columns:[{key:"text",label:(0,r.__)("Query text","seo-by-rank-math"),width:"56%",render:function(e){return e.text}},{key:"created_at",label:(0,r.__)("Created","seo-by-rank-math"),render:function(e){return jt(e.created_at)}},{key:"updated_at",label:(0,r.__)("Last updated","seo-by-rank-math"),render:function(e){var t;return jt(null!==(t=e.updated_at)&&void 0!==t?t:e.created_at)}},{key:"status",label:(0,r.__)("Status","seo-by-rank-math"),width:"120px",render:function(e){return wp.element.createElement(ot,{value:!1!==e.enabled,onChange:function(t){return A(e,t)},isLoading:h===e.id})}}],rows:o,rowKey:"id"}),_&&wp.element.createElement(nt,{title:(0,r.__)("Regenerate queries?","seo-by-rank-math"),message:(0,r.__)("This will replace all existing baseline queries with new AI-generated ones. Continue?","seo-by-rank-math"),confirmLabel:(0,r.__)("Regenerate","seo-by-rank-math"),isDestructive:!1,onConfirm:S,onCancel:function(){return g(!1)}}))};var ni=n(6350),ai={};ai.styleTagTransform=_e(),ai.setAttributes=fe(),ai.insert=pe().bind(null,"head"),ai.domAPI=de(),ai.insertStyleElement=ye();ce()(ni.A,ai);ni.A&&ni.A.locals&&ni.A.locals;var ii=function(e){for(var t=["#E60012","#107C10","#1A1A1A","#1B2838","#5260B9","#017CBA","#F59E0B","#42B268"],n=0,a=0;a<(e||"").length;a++)n=(31*n+e.charCodeAt(a))%t.length;return t[n]},ri=function(e){var t,n,a=e.name;return wp.element.createElement("span",{className:"rank-math-ai-visibility-competitors-table__avatar",style:{backgroundColor:ii(a)},"aria-hidden":"true"},null!==(t=null==a||null===(n=a.charAt(0))||void 0===n?void 0:n.toUpperCase())&&void 0!==t?t:"?")},oi=function(e){var t,n=e.insights,a=void 0===n?null:n,i=e.loading,o=void 0!==i&&i,s=null!==(t=null==a?void 0:a.competitors)&&void 0!==t?t:[],c="rank-math-ai-visibility-competitors-table";if(o)return wp.element.createElement(l.TableSkeleton,{columns:3,rows:4});if(!s.length)return wp.element.createElement("div",{className:c},wp.element.createElement(Ie,{heading:(0,r.__)("No competitors detected yet","seo-by-rank-math"),description:(0,r.__)("Competitors are automatically identified during analysis runs.","seo-by-rank-math")}));var m=[{key:"name",label:(0,r.__)("Competitor","seo-by-rank-math"),width:"50%",render:function(e){return wp.element.createElement(React.Fragment,null,wp.element.createElement(ri,{name:e.name}),wp.element.createElement("span",{className:"".concat(c,"__name")},e.name))}},{key:"avg_sentiment",label:(0,r.__)("Avg sentiment","seo-by-rank-math"),render:function(e){return wp.element.createElement(qe,{score:e.avg_sentiment})}},{key:"mentions",label:(0,r.__)("Mentions","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement($t,{value:null!==(t=e.mentions)&&void 0!==t?t:null,variant:"mentions"})}}];return wp.element.createElement("div",{className:c},wp.element.createElement(Jt,{columns:m,rows:s,rowKey:"name"}))};oi.displayName="CompetitorsTable";const li=oi;var si=n(385),ci={};ci.styleTagTransform=_e(),ci.setAttributes=fe(),ci.insert=pe().bind(null,"head"),ci.domAPI=de(),ci.insertStyleElement=ye();ce()(si.A,ci);si.A&&si.A.locals&&si.A.locals;function mi(e){return mi="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},mi(e)}function di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ui(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach(function(t){fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=mi(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hi=function(e){var t=e.insights,n=void 0===t?null:t,i=e.loading,o=void 0!==i&&i,s=(0,a.useMemo)(function(){var e,t,a=null!==(e=null==n?void 0:n.analyses)&&void 0!==e?e:[];return(null!==(t=null==n?void 0:n.query_results)&&void 0!==t?t:[]).map(function(e,t){return function(e,t,n){var a,i,r,o,l,s,c=null!==(a=e.query_id)&&void 0!==a?a:t,m=null!==(i=e.platform)&&void 0!==i?i:"default";return bi(bi({},e),{},{id:"".concat(c,"-").concat(m),query:null!==(r=e.query_text)&&void 0!==r?r:"",response:null!==(o=e.response)&&void 0!==o?o:"",created_at:null!==(l=null==n?void 0:n.finished_at)&&void 0!==l?l:null,duration_seconds:null!==(s=null==n?void 0:n.duration_seconds)&&void 0!==s?s:null,status:e.found?"success":"partial",model:null})}(e,t,(n=e.platform,null!==(i=null!==(r=a.find(function(e){return e.platform===n}))&&void 0!==r?r:a[0])&&void 0!==i?i:null));var n,i,r})},[n]),c=di((0,a.useState)(null),2),m=c[0],d=c[1];(0,a.useEffect)(function(){var e,t;d(null!==(e=null===(t=s[0])||void 0===t?void 0:t.id)&&void 0!==e?e:null)},[s]);var u="rank-math-ai-visibility-run-detail";return o?wp.element.createElement(l.TableSkeleton,{columns:3,rows:4}):s.length?wp.element.createElement("div",{className:u},wp.element.createElement(Lt,{entries:s,selectedEntryId:m,onSelectEntry:d})):wp.element.createElement("div",{className:u},wp.element.createElement(Ie,{heading:(0,r.__)("No transcripts found","seo-by-rank-math"),description:(0,r.__)("Transcripts will appear here once the first analysis completes.","seo-by-rank-math")}))};hi.displayName="RunDetail";const yi=hi;var vi=n(4629),_i={};_i.styleTagTransform=_e(),_i.setAttributes=fe(),_i.insert=pe().bind(null,"head"),_i.domAPI=de(),_i.insertStyleElement=ye();ce()(vi.A,_i);vi.A&&vi.A.locals&&vi.A.locals;function gi(e){return gi="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},gi(e)}function ki(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return wi(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(wi(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,wi(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,wi(d,"constructor",c),wi(c,"constructor",s),s.displayName="GeneratorFunction",wi(c,i,"GeneratorFunction"),wi(d),wi(d,i,"Generator"),wi(d,a,function(){return this}),wi(d,"toString",function(){return"[object Generator]"}),(ki=function(){return{w:r,m:u}})()}function wi(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}wi=function(e,t,n,a){function r(t,n){wi(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},wi(e,t,n,a)}function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach(function(t){Ai(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ai(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=gi(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function Ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ji(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Oi=[{name:"overview",title:(0,r.__)("Overview","seo-by-rank-math"),view:function(e){var t=e.brand,n=e.insights,a=e.insightsLoading;return wp.element.createElement(qa,{brand:t,insights:n,loading:a})}},{name:"queries",title:(0,r.__)("Queries","seo-by-rank-math"),view:function(e){var t=e.brand;return wp.element.createElement(ti,{brandId:null==t?void 0:t.id})}},{name:"competitors",title:(0,r.__)("Competitors","seo-by-rank-math"),view:function(e){var t=e.insights,n=e.insightsLoading;return wp.element.createElement(li,{insights:t,loading:n})}},{name:"transcripts",title:(0,r.__)("Raw data / Transcripts","seo-by-rank-math"),view:function(e){var t=e.insights,n=e.insightsLoading;return wp.element.createElement(yi,{insights:t,loading:n})}}];const Pi=function(e){var t,n,i=e.brandId,s=e.onBack,c=e.locales,m=void 0===c?[]:c,d=e.languages,u=void 0===d?[]:d,p=e.defaultLanguage,b=void 0===p?"":p,f=e.intervals,h=void 0===f?[]:f,v=e.platforms,_=void 0===v?{}:v,g=e.maxPlatforms,k=void 0===g?1:g,w=s||K,x=Ca(function(){return j(i)},[i],{skip:!i,errorMessage:(0,r.__)("Failed to load brand.","seo-by-rank-math")}),E=x.data,A=x.loading,S=x.error,N=x.setData,P=null!==(t=null==E?void 0:E.brand)&&void 0!==t?t:null,C=Ca(function(){return T(i)},[i],{skip:!i,errorMessage:(0,r.__)("Failed to load insights.","seo-by-rank-math")}),I=C.data,z=C.loading,M=null!==(n=null==I?void 0:I.insights)&&void 0!==n?n:null,D=Ni((0,a.useState)(function(){return Z()}),2),B=D[0],L=D[1],R=Ni((0,a.useState)(!1),2),q=R[0],F=R[1],U=Ni((0,a.useState)(!1),2),G=U[0],V=U[1],H=Ni((0,a.useState)(null),2),Q=H[0],W=H[1],$=function(){var e,t=(e=ki().m(function e(t){var n,a,o,l;return ki().w(function(e){for(;;)switch(e.p=e.n){case 0:return V(!0),W(null),e.p=1,e.n=2,O(i,t);case 2:a=e.v,N({brand:null!==(n=null==a?void 0:a.brand)&&void 0!==n?n:Ei(Ei({},P),t)}),F(!1),e.n=4;break;case 3:e.p=3,l=e.v,W(null!==(o=null==l?void 0:l.message)&&void 0!==o?o:(0,r.__)("Failed to save brand.","seo-by-rank-math"));case 4:return e.p=4,V(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Si(r,a,i,o,l,"next",e)}function l(e){Si(r,a,i,o,l,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}(),Y="rank-math-ai-visibility-brand-detail";return(0,a.useEffect)(function(){var e=function(){return L(Z())};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]),A?wp.element.createElement(l.TableSkeleton,{columns:3,rows:4}):S||!P?wp.element.createElement("div",{className:"".concat(Y," ").concat(Y,"--error")},wp.element.createElement("p",null,S||(0,r.__)("Brand not found.","seo-by-rank-math")),wp.element.createElement("button",{className:"button",onClick:w},(0,r.__)("← Back to Dashboard","seo-by-rank-math"))):wp.element.createElement("div",{className:Y},wp.element.createElement(Ta,{onBack:w,onExport:function(){return J(null==P?void 0:P.id)}}),wp.element.createElement("div",{className:"".concat(Y,"__content")},wp.element.createElement(Ba,{brand:P,onEdit:function(){return F(!0)}}),wp.element.createElement(o.TabPanel,{key:B,className:"rank-math-tabs ".concat(Y,"__tabs"),activeClass:"is-active",initialTabName:B,tabs:Oi,onSelect:function(e){!function(e){if(Z()!==e){var t=(0,y.addQueryArgs)(window.location.href,{brand_tab:e});window.history.pushState({},"",t)}}(e),L(e)}},function(e){return wp.element.createElement("div",{className:"".concat(Y,"__tab ").concat(Y,"__tab--").concat(e.name)},(0,a.createElement)(e.view,{brand:P,insights:M,insightsLoading:z}))})),q&&wp.element.createElement(jn,{brand:P,onSave:$,onClose:function(){F(!1),W(null)},isSaving:G,apiError:Q,locales:m,languages:u,defaultLanguage:b,intervals:h,platforms:_,maxPlatforms:k}))};var Ci=n(9921),Ti={};Ti.styleTagTransform=_e(),Ti.setAttributes=fe(),Ti.insert=pe().bind(null,"head"),Ti.domAPI=de(),Ti.insertStyleElement=ye();ce()(Ci.A,Ti);Ci.A&&Ci.A.locals&&Ci.A.locals;function Ii(e){return Ii="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},Ii(e)}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(t){Di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Di(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ii(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Ii(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ii(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return Li(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(Li(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Li(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Li(d,"constructor",c),Li(c,"constructor",s),s.displayName="GeneratorFunction",Li(c,i,"GeneratorFunction"),Li(d),Li(d,i,"Generator"),Li(d,a,function(){return this}),Li(d,"toString",function(){return"[object Generator]"}),(Bi=function(){return{w:r,m:u}})()}function Li(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Li=function(e,t,n,a){function r(t,n){Li(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},Li(e,t,n,a)}function Ri(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function qi(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Ri(r,a,i,o,l,"next",e)}function l(e){Ri(r,a,i,o,l,"throw",e)}o(void 0)})}}function Fi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ui(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ui(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Gi={starter:1,creator:10,expert:50},Vi=function(e){var t=e.loading,n=e.hasBrands,a=e.raw,r=e.format;return t?"—":n?(0,i.isNil)(a)?0:r?r(a):a:null};const Hi=function(e){var t=e.locales,n=void 0===t?[]:t,l=e.languages,s=void 0===l?[]:l,c=e.defaultLanguage,m=void 0===c?"":c,d=e.platforms,u=void 0===d?{}:d,f=e.maxPlatforms,h=void 0===f?1:f,v=e.onBrandCreated,_=void 0===v?function(){}:v,g=e.intervals,k=void 0===g?[]:g,w=Fi((0,a.useState)(Y),2),x=w[0],E=w[1];(0,a.useEffect)(function(){var e=function(){return E(Y())};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]);var A=Q(),S=A.brands,N=A.summary,O=A.loading,P=A.error,C=A.handleSearch,T=A.handleAddBrand,I=A.handleUpdateBrand,z=A.handleDisableBrand,M=A.handleEnableBrand,D=Fi((0,a.useState)(!1),2),B=D[0],L=D[1],R=Fi((0,a.useState)(null),2),q=R[0],F=R[1],U=Fi((0,a.useState)(!1),2),G=U[0],V=U[1],H=Fi((0,a.useState)(null),2),W=H[0],$=H[1],Z=Fi((0,a.useState)(null),2),J=Z[0],X=Z[1],ee=Fi((0,a.useState)("delete"),2),te=ee[0],ne=ee[1],ae=Fi((0,a.useState)(!1),2),ie=ae[0],re=ae[1],oe=Fi((0,a.useState)(null),2),se=oe[0],ce=oe[1],me=Fi((0,a.useState)(!1),2),de=me[0],ue=me[1],pe=Fi((0,a.useState)(""),2),be=pe[0],fe=pe[1],he=(0,a.useRef)(!0),ye=le(S,{perPage:10,syncUrl:!0}),ve=ye.pagination,_e=ye.pageItems,ge=ye.total,ke=ye.pages,we=ye.onPageChange,xe=ye.onPerPageChange,Ee=ye.resetPage;(0,a.useEffect)(function(){if(!he.current){var e=setTimeout(function(){C(be.trim()),Ee()},300);return function(){return clearTimeout(e)}}he.current=!1},[be,C,Ee]);var Ae=!!be.trim(),Se=!O&&0===S.length&&!Ae,Ne=function(){X(null),ce(null)},je="enable"===te?(0,r.__)("Activate brand?","seo-by-rank-math"):(0,r.__)("Deactivate brand?","seo-by-rank-math"),Oe=function(e,t){return e?"enable"===t?(0,r.sprintf)((0,r.__)('Resume tracking "%s"? Analysis will run on the next scheduled cycle.',"seo-by-rank-math"),e.name):(0,r.sprintf)((0,r.__)('Stop tracking "%s"? You can re-enable it later.',"seo-by-rank-math"),e.name):""}(J,te),Ce=function(){L(!1),F(null),$(null)},Te=(0,i.toLower)((0,i.get)(window,"rankMath.aiVisibility.plan","")),ze=(0,i.get)(Gi,Te,null),Me=function(){null!==ze&&S.length>=ze?ue(!0):(F(null),L(!0))},De=function(){var e=qi(Bi().m(function e(t){var n;return Bi().w(function(e){for(;;)switch(e.p=e.n){case 0:if($(null),V(!0),e.p=1,!q){e.n=3;break}return e.n=2,I(q.id,t);case 2:e.n=5;break;case 3:return e.n=4,T(t);case 4:_((0,r.__)("Brand added! The first analysis is running — data will appear in approximately 10 minutes.","seo-by-rank-math"));case 5:Ce(),e.n=7;break;case 6:e.p=6,n=e.v,$((null==n?void 0:n.message)||(0,r.__)("Something went wrong. Please try again.","seo-by-rank-math"));case 7:return e.p=7,V(!1),e.f(7);case 8:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),Be=function(){var e=qi(Bi().m(function e(){var t,n;return Bi().w(function(e){for(;;)switch(e.p=e.n){case 0:if(J){e.n=1;break}return e.a(2);case 1:if(re(!0),ce(null),e.p=2,"disable"!==te){e.n=4;break}return e.n=3,z(J.id);case 3:e.n=5;break;case 4:if("enable"!==te){e.n=5;break}return e.n=5,M(J.id);case 5:Ne(),e.n=7;break;case 6:e.p=6,n=e.v,ce(null!==(t=null==n?void 0:n.message)&&void 0!==t?t:(0,r.__)("Action failed. Please try again.","seo-by-rank-math"));case 7:return e.p=7,re(!1),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(){return e.apply(this,arguments)}}();if(x)return wp.element.createElement(Pi,{brandId:x,onBack:function(){K(),E(null)},locales:n,languages:s,defaultLanguage:m,intervals:k,platforms:u,maxPlatforms:h});var Le="rank-math-ai-visibility-dashboard";return wp.element.createElement("div",{className:Le},P&&wp.element.createElement(o.Notice,{status:"error",isDismissible:!1},P),wp.element.createElement("div",{className:"".concat(Le,"__stats")},wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--active-brands",icon:" rm-icon rm-icon-ai-visibility",label:(0,r.__)("Global AI Visibility Score","seo-by-rank-math"),value:Vi({loading:O,hasBrands:S.length>0,raw:null==N?void 0:N.ai_visibility_score,format:function(e){return e+"/100"}}),tooltip:(0,r.__)("Average rank score across all tracked brands.","seo-by-rank-math")}),wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--analyses",icon:p,label:(0,r.__)("Analyses in the last 7 days","seo-by-rank-math"),value:Vi({loading:O,hasBrands:S.length>0,raw:null==N?void 0:N.analyses_last_7d}),tooltip:(0,r.__)("Total analysis runs completed in the past 24 hours.","seo-by-rank-math")}),wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--mentions",icon:"rm-icon rm-icon-comments",label:(0,r.__)("Avg mentions per brand","seo-by-rank-math"),value:Vi({loading:O,hasBrands:S.length>0,raw:null==N?void 0:N.avg_mentions_per_brand}),tooltip:(0,r.__)("Average number of AI-generated mentions across all tracked brands.","seo-by-rank-math")})),Se&&wp.element.createElement("div",{className:"".concat(Le,"__empty")},wp.element.createElement(Ie,{icon:b,heading:(0,r.__)("No brands or products tracked yet","seo-by-rank-math"),description:(0,r.__)("Add a brand or a specific product to see how you rank against competitors. Monitor your AI visibility, discover where you stand, and uncover opportunities to grow.","seo-by-rank-math"),ctaLabel:(0,r.__)("+ Add Your First Brand","seo-by-rank-math"),onCta:Me})),!Se&&wp.element.createElement("div",{className:"".concat(Le,"__table-card")},wp.element.createElement(Aa,{searchValue:be,onSearchChange:fe,onAdd:Me}),wp.element.createElement(ja,{brands:_e,loading:O,pagination:Mi(Mi({},ve),{},{total:ge,pages:ke}),onView:function(e){var t,n;t=e.id,n=(0,y.addQueryArgs)(window.location.href,{brand:t}),window.history.pushState({},"",n),E(e.id)},onEdit:function(){var e=qi(Bi().m(function e(t){var n;return Bi().w(function(e){for(;;)switch(e.p=e.n){case 0:return F(t),L(!0),e.p=1,e.n=2,j(t.id);case 2:null!=(n=e.v)&&n.brand&&F(n.brand),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),onDisable:function(e){return function(e){X(e),ne("inactive"===(null==e?void 0:e.status)?"enable":"disable")}(e)},onPageChange:we,onPerPageChange:xe})),B&&wp.element.createElement(jn,{brand:q,onSave:De,onClose:Ce,isSaving:G,apiError:W,locales:n,languages:s,defaultLanguage:m,intervals:k,platforms:u,maxPlatforms:h}),de&&wp.element.createElement(ka,{plan:Te,isTopTier:"expert"===Te,onClose:function(){return ue(!1)}}),J&&wp.element.createElement(nt,{title:je,message:Oe,confirmLabel:"enable"===te?(0,r.__)("Activate","seo-by-rank-math"):(0,r.__)("Deactivate","seo-by-rank-math"),isDestructive:"disable"===te,isProcessing:ie,error:se,onConfirm:Be,onCancel:Ne}))};var Qi=n(834),Wi={};Wi.styleTagTransform=_e(),Wi.setAttributes=fe(),Wi.insert=pe().bind(null,"head"),Wi.domAPI=de(),Wi.insertStyleElement=ye();ce()(Qi.A,Wi);Qi.A&&Qi.A.locals&&Qi.A.locals;function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||Ki(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e){return function(e){if(Array.isArray(e))return Zi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ki(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,t){if(e){if("string"==typeof e)return Zi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(e,t):void 0}}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ji=[{label:(0,r.__)("All Statuses","seo-by-rank-math"),value:""},{label:(0,r.__)("Done","seo-by-rank-math"),value:"done"},{label:(0,r.__)("Running","seo-by-rank-math"),value:"running"},{label:(0,r.__)("Error","seo-by-rank-math"),value:"error"}],Xi=function(e){var t=e.filters,n=e.onFilterChange,i=e.onClearFilters,l=e.brandOptions,s=void 0===l?[]:l,c="rank-math-ai-visibility-analyses-filter-bar",m=(0,a.useMemo)(function(){return[{label:(0,r.__)("All Brands","seo-by-rank-math"),value:""}].concat(Yi(s))},[s]),d=t.brandIds&&t.brandIds[0]?String(t.brandIds[0]):"",u=$i((0,a.useState)(t.search||""),2),p=u[0],b=u[1],f=(0,a.useRef)(!0);(0,a.useEffect)(function(){b(t.search||"")},[t.search]),(0,a.useEffect)(function(){if(!f.current){var e=setTimeout(function(){n({search:p})},300);return function(){return clearTimeout(e)}}f.current=!1},[p,n]);var h=""!==d||""!==t.status||""!==(t.search||"")||""!==(t.dateFrom||"")||""!==(t.dateTo||"");return wp.element.createElement("div",{className:c},wp.element.createElement(o.SelectControl,{className:"".concat(c,"__brand"),value:d,options:m,onChange:function(e){return n({brandIds:e?[e]:[]})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),wp.element.createElement(o.SelectControl,{className:"".concat(c,"__status"),value:t.status,options:Ji,onChange:function(e){return n({status:e})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),wp.element.createElement(o.SearchControl,{className:"".concat(c,"__search"),placeholder:(0,r.__)("Search","seo-by-rank-math"),"aria-label":(0,r.__)("Search runs","seo-by-rank-math"),value:p,onChange:function(e){return b(e)},__nextHasNoMarginBottom:!0}),h&&wp.element.createElement(o.Button,{className:"".concat(c,"__clear"),variant:"link",isDestructive:!0,onClick:i},(0,r.__)("Clear filters","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(c,"__dates")},wp.element.createElement("div",{className:"".concat(c,"__date-wrap")},wp.element.createElement(At,{value:t.dateFrom,onChange:function(e){return n({dateFrom:e.target.value})},ariaLabel:(0,r.__)("From date","seo-by-rank-math"),className:"".concat(c,"__date-input")})),wp.element.createElement("span",{className:"".concat(c,"__date-sep")},"-"),wp.element.createElement("div",{className:"".concat(c,"__date-wrap")},wp.element.createElement(At,{value:t.dateTo,onChange:function(e){return n({dateTo:e.target.value})},ariaLabel:(0,r.__)("To date","seo-by-rank-math"),className:"".concat(c,"__date-input")}))))};Xi.displayName="AnalysesFilterBar";const er=Xi;var tr=n(5517),nr={};nr.styleTagTransform=_e(),nr.setAttributes=fe(),nr.insert=pe().bind(null,"head"),nr.domAPI=de(),nr.insertStyleElement=ye();ce()(tr.A,nr);tr.A&&tr.A.locals&&tr.A.locals;const ar=(0,a.memo)(function(e){var t=e.items,n=void 0===t?[]:t,o=e.loading,s=void 0!==o&&o,c=e.pagination,m=void 0===c?{}:c,d=e.onViewDetail,u=void 0===d?function(){}:d,p=e.onPageChange,b=void 0===p?function(){}:p,f=e.onPerPageChange,h=void 0===f?function(){}:f,y=(0,a.useMemo)(function(){return[{key:"brand_name",label:(0,r.__)("Brand","seo-by-rank-math")},{key:"started_at",label:(0,r.__)("Last analyzed","seo-by-rank-math"),render:function(e,t){var n="error"===t.status||"running"===t.status;return wp.element.createElement("span",{className:"rank-math-ai-visibility-analyses-table__time-cell"},e?wp.element.createElement(Ut,{value:e}):!n&&"−",n&&wp.element.createElement(sn,{variant:t.status}))}},{key:"id",label:(0,r.__)("Action","seo-by-rank-math"),render:function(e,t){return t.started_at?wp.element.createElement(Ee,{className:"rank-math-ai-visibility-view-transcript",iconLeft:wp.element.createElement("span",{className:"rm-icon-eye"}),onClick:function(){return u(t)}},(0,r.__)("View Run Detail","seo-by-rank-math")):null}}]},[u]);return s&&!n.length?wp.element.createElement(l.TableSkeleton,{columns:3,rows:10}):wp.element.createElement(l.ListTable,{storageKey:"ai-visibility-analyses",headers:y,rows:n,currentPage:(0,i.get)(m,"page",1),rowsPerPage:(0,i.get)(m,"perPage",10),totalItems:(0,i.get)(m,"total",n.length),totalPages:(0,i.get)(m,"pages",1),onPageChange:b,onRowsPerPageChange:h})});var ir=n(4373),rr={};rr.styleTagTransform=_e(),rr.setAttributes=fe(),rr.insert=pe().bind(null,"head"),rr.domAPI=de(),rr.insertStyleElement=ye();ce()(ir.A,rr);ir.A&&ir.A.locals&&ir.A.locals;function or(e){return or="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},or(e)}function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach(function(t){dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=or(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==or(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ur=function(e){var t,n,i,s,c,m,d,u,p=e.row,b=e.onBack,f="rank-math-ai-visibility-analysis-run-detail",h=Ca(function(){return T(p.id)},[null==p?void 0:p.id],{skip:!(null!=p&&p.id),errorMessage:(0,r.__)("Failed to load run detail.","seo-by-rank-math")}),y=h.data,v=h.loading,_=h.error,g=null!==(t=null==y?void 0:y.insights)&&void 0!==t?t:null,k=lr((0,a.useState)(null),2),w=k[0],x=k[1],E=null!==(n=null==g?void 0:g.analyses)&&void 0!==n?n:[],A=(null!==(i=null==g?void 0:g.query_results)&&void 0!==i?i:[]).map(function(e,t){return function(e,t,n){var a,i,r,o,l,s,c=null!==(a=e.query_id)&&void 0!==a?a:t,m=null!==(i=e.platform)&&void 0!==i?i:"default";return mr(mr({},e),{},{id:"".concat(c,"-").concat(m),query:null!==(r=e.query_text)&&void 0!==r?r:"",response:null!==(o=e.response)&&void 0!==o?o:"",created_at:null!==(l=null==n?void 0:n.finished_at)&&void 0!==l?l:null,duration_seconds:null!==(s=null==n?void 0:n.duration_seconds)&&void 0!==s?s:null,model:null})}(e,t,(n=e.platform,null!==(a=null!==(i=E.find(function(e){return e.platform===n}))&&void 0!==i?i:E[0])&&void 0!==a?a:null));var n,a,i}),S=E.reduce(function(e,t){var n;return e+(null!==(n=t.duration_seconds)&&void 0!==n?n:0)},0),N=S?"".concat(S,"s"):"—",j=E.map(function(e){return e.started_at}).filter(Boolean).sort(),O=null!==(s=null==p?void 0:p.started_at)&&void 0!==s?s:j[0];return wp.element.createElement("div",{className:f},wp.element.createElement(nn,{onBack:b,title:(0,r.__)("Analysis Run Detail","seo-by-rank-math"),actions:wp.element.createElement(Ee,{variant:"secondary",onClick:function(){return J(p.id)}},(0,r.__)("Export Report","seo-by-rank-math"))}),wp.element.createElement("div",{className:"".concat(f,"__content")},wp.element.createElement("div",{className:"".concat(f,"__stat-cards")},wp.element.createElement(Pe,{compact:!0,icon:" rm-icon-target",label:(0,r.__)("Target Brand","seo-by-rank-math"),value:(null==p?void 0:p.brand_name)||"—",className:"rank-math-ai-visibility-stat-card--target-brand",tooltip:(0,r.__)("The brand this analysis run is for.","seo-by-rank-math"),analysis:null!==(c=E[0])&&void 0!==c?c:null}),wp.element.createElement(Pe,{compact:!0,icon:"clock",label:(0,r.__)("Duration & Timing","seo-by-rank-math"),value:N,sub:(d=O,u=St(d),u?u.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"—"),className:"rank-math-ai-visibility-stat-card--duration-timing",tooltip:(0,r.__)("Total duration of all queries in this run, and the date it was started.","seo-by-rank-math"),analysis:null!==(m=E[0])&&void 0!==m?m:null})),_&&wp.element.createElement(o.Notice,{status:"error",isDismissible:!1},_),v?wp.element.createElement(l.TableSkeleton,{columns:3,rows:3}):wp.element.createElement("div",{className:"".concat(f,"__table")},wp.element.createElement("div",{className:"".concat(f,"__table-row ").concat(f,"__table-row--header")},wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--query")},(0,r.__)("Query text","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--sentiment")},(0,r.__)("Sentiment","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--action")},(0,r.__)("Action","seo-by-rank-math"))),0===A.length?wp.element.createElement(Ie,{heading:(0,r.__)("No queries found","seo-by-rank-math"),description:(0,r.__)("No queries were recorded for this analysis run.","seo-by-rank-math")}):A.map(function(e){var t,n,a;return wp.element.createElement("div",{key:e.id,className:"".concat(f,"__table-row")},wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--query")},e.query||"—"),wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--sentiment")},null!==(null!==(t=e.avg_sentiment)&&void 0!==t?t:e.sentiment)&&void 0!==(null!==(n=e.avg_sentiment)&&void 0!==n?n:e.sentiment)?wp.element.createElement(qe,{score:null!==(a=e.avg_sentiment)&&void 0!==a?a:e.sentiment}):wp.element.createElement(o.Tooltip,{text:!1===e.found?(0,r.__)("Sentiment unavailable - this brand was not detected in the AI response for this query.","seo-by-rank-math"):(0,r.__)("Sentiment data is not available for this query.","seo-by-rank-math")},wp.element.createElement("span",null,wp.element.createElement(qe,{score:null})))),wp.element.createElement("div",{className:"".concat(f,"__col ").concat(f,"__col--action")},wp.element.createElement(Ee,{variant:"secondary",iconLeft:wp.element.createElement("span",{className:"rm-icon-eye"}),onClick:function(){return x(e)},className:"rank-math-ai-visibility-view-transcript"},(0,r.__)("View Transcript","seo-by-rank-math"))))})),w&&wp.element.createElement(vt,{entry:w,onClose:function(){return x(null)}})))};ur.displayName="AnalysisRunDetail";const pr=ur;var br=n(3111),fr={};fr.styleTagTransform=_e(),fr.setAttributes=fe(),fr.insert=pe().bind(null,"head"),fr.domAPI=de(),fr.insertStyleElement=ye();ce()(br.A,fr);br.A&&br.A.locals&&br.A.locals;function hr(e){return hr="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},hr(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach(function(t){_r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=hr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var wr={brandIds:[],status:"",search:"",dateFrom:"",dateTo:""},xr=function(e){var t=D(e);return{id:e.id,brand_id:e.id,brand_name:e.name,started_at:e.last_analyzed,status:null!=t?t:e.last_analyzed?"done":"none"}};const Er=function(){var e=Q(),t=e.brands,n=e.loading,i=e.error,l=gr((0,a.useState)(wr),2),s=l[0],c=l[1],m=gr((0,a.useState)(null),2),d=m[0],u=m[1],p=(0,a.useMemo)(function(){return t.map(function(e){return{label:e.name,value:e.id}})},[t]),b=(0,a.useMemo)(function(){return t.map(xr).filter(function(e){if(s.search&&!e.brand_name.toLowerCase().includes(s.search.toLowerCase()))return!1;if(s.status&&e.status!==s.status)return!1;if(s.brandIds.length&&!s.brandIds.includes(e.brand_id))return!1;var t=e.started_at?e.started_at.slice(0,10):"";return!(s.dateFrom&&(!t||t<s.dateFrom))&&!(s.dateTo&&(!t||t>s.dateTo))})},[t,s]),f=le(b,{perPage:10,syncUrl:!0}),h=f.pagination,v=f.pageItems,_=f.total,g=f.pages,k=f.onPageChange,w=f.onPerPageChange,x=f.resetPage,E=(0,a.useCallback)(function(e){c(function(t){return vr(vr({},t),e)}),x()},[x]),A=(0,a.useCallback)(function(){c(wr),x()},[x]);if((0,a.useEffect)(function(){!function(e){var t={aiv_brands:e.brandIds.length?e.brandIds.join(","):void 0,aiv_status:e.status||void 0,aiv_search:e.search||void 0,aiv_from:e.dateFrom||void 0,aiv_to:e.dateTo||void 0},n=(0,y.addQueryArgs)(window.location.href,t);window.history.replaceState({},"",n)}(s)},[s]),d)return wp.element.createElement(pr,{row:d,onBack:function(){return u(null)}});var S="rank-math-ai-visibility-analyses";return wp.element.createElement("div",{className:S},wp.element.createElement($e,{title:(0,r.__)("Analyses & Transcripts","seo-by-rank-math"),subtitle:(0,r.__)("Global view of all runs with per-query detail.","seo-by-rank-math")}),i&&wp.element.createElement(o.Notice,{status:"error",isDismissible:!1},i),wp.element.createElement("div",{className:"".concat(S,"__card")},wp.element.createElement(er,{filters:s,onFilterChange:E,onClearFilters:A,brandOptions:p}),wp.element.createElement(ar,{items:v,loading:n,pagination:vr(vr({},h),{},{total:_,pages:g}),onViewDetail:function(e){return u(e)},onPageChange:k,onPerPageChange:w})))};const Ar=function(e,t){var n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)};var Sr=n(7377),Nr={};Nr.styleTagTransform=_e(),Nr.setAttributes=fe(),Nr.insert=pe().bind(null,"head"),Nr.domAPI=de(),Nr.insertStyleElement=ye();ce()(Sr.A,Nr);Sr.A&&Sr.A.locals&&Sr.A.locals;function jr(e){return jr="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},jr(e)}function Or(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var s=a&&a.prototype instanceof l?a:l,c=Object.create(s.prototype);return Pr(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function p(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],p=u.p,b=r[2];n>3?(i=b===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,u.v=a,u.n=r[1]):p<b&&(i=n<3||r[0]>a||a>b)&&(r[4]=n,r[5]=a,u.n=b,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&p(m,b),l=m,s=b;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),p(l,s)):u.n=s:u.v=s);try{if(c=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(d=u.n<0)?s:n.call(a,u))!==o)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(Pr(t={},a,function(){return this}),t),d=c.prototype=l.prototype=Object.create(m);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Pr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Pr(d,"constructor",c),Pr(c,"constructor",s),s.displayName="GeneratorFunction",Pr(c,i,"GeneratorFunction"),Pr(d),Pr(d,i,"Generator"),Pr(d,a,function(){return this}),Pr(d,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:r,m:u}})()}function Pr(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Pr=function(e,t,n,a){function r(t,n){Pr(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},Pr(e,t,n,a)}function Cr(e,t,n,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,i)}function Tr(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Cr(r,a,i,o,l,"next",e)}function l(e){Cr(r,a,i,o,l,"throw",e)}o(void 0)})}}function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach(function(t){Mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=jr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=jr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||Lr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e){return function(e){if(Array.isArray(e))return Rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,t){if(e){if("string"==typeof e)return Rr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(e,t):void 0}}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var qr=function(e){var t=e.icon,n=e.label,a=e.value,i=e.iconBg,r=e.iconColor,o=e.tooltip,s=e.className,c="rank-math-ai-visibility-reports";return wp.element.createElement("div",{className:"".concat(c,"__stat-card").concat(s?" ".concat(s):"")},wp.element.createElement("div",{className:"".concat(c,"__stat-icon"),style:{background:i}},wp.element.createElement("span",{className:"dashicons dashicons-".concat(t),style:{color:r},"aria-hidden":"true"})),wp.element.createElement("div",{className:"".concat(c,"__stat-body")},wp.element.createElement("span",{className:"".concat(c,"__stat-label")},n,wp.element.createElement(l.HelpTooltip,{text:o})),wp.element.createElement("span",{className:"".concat(c,"__stat-value").concat(null==a?" ".concat(c,"__stat-value--na"):"")},null!=a?a:"N/A")))},Fr=function(){var e,t,n,s,c="rank-math-ai-visibility-reports",m=Q(),d=m.brands,u=m.summary,p=(0,r.__)("Select Brand","seo-by-rank-math"),b=(0,a.useMemo)(function(){return[{label:p,value:""}].concat(Br(d.map(function(e){return{label:e.name,value:String(e.id)}})))},[d]),f=Dr((0,a.useState)(function(){return{brandId:(e=(0,y.getQueryArg)(window.location.href,"report_brand"),e?String(e):"")};var e}),2),h=f[0],v=f[1],_=Dr((0,a.useState)(null),2),g=_[0],k=_[1],w=Dr((0,a.useState)(null),2),x=w[0],E=w[1],A=Dr((0,a.useState)(!1),2),S=A[0],N=A[1],j=Dr((0,a.useState)(null),2),O=j[0],P=j[1],C=(0,a.useRef)(!1);(0,a.useEffect)(function(){!C.current&&h.brandId&&d.length>0&&(C.current=!0,I())},[d]);var I=(0,a.useCallback)(Tr(Or().m(function e(){var t,n,a,i,o,l,s,c,m,p,b,f,y,v,_,g,w,x;return Or().w(function(e){for(;;)switch(e.p=e.n){case 0:if(N(!0),P(null),E(d.find(function(e){return String(e.id)===h.brandId})||null),e.p=1,i=(h.brandId?d.filter(function(e){return String(e.id)===h.brandId}):d).filter(function(e){return e.last_analyzed}),o=i.map(function(e){return{id:e.id,score:e.score,rank:e.rank,sentiment:e.avg_sentiment,mentions:e.mentions,citations:e.citations,competitors:[],date:e.last_analyzed}}),!h.brandId||!o.length){e.n=5;break}return e.p=2,e.n=3,T(h.brandId);case 3:p=e.v,o[0].competitors=(null!==(l=null==p||null===(s=p.insights)||void 0===s?void 0:s.competitors)&&void 0!==l?l:[]).map(function(e){return e.name}),o[0].queries=(null!==(c=null==p||null===(m=p.insights)||void 0===m?void 0:m.query_results)&&void 0!==c?c:[]).map(function(e){var t,n,a,i,r,o;return{query:null!==(t=e.query_text)&&void 0!==t?t:"",platform:null!==(n=e.platform)&&void 0!==n?n:null,response:null!==(a=e.response)&&void 0!==a?a:"",found:null!==(i=e.found)&&void 0!==i?i:null,sentiment_score:null!==(r=e.sentiment)&&void 0!==r?r:null,citations_count:null!==(o=e.citations)&&void 0!==o?o:null}}),e.n=5;break;case 4:e.p=4,e.v;case 5:b=function(e){return o.reduce(function(t,n){var a;return t+(null!==(a=n[e])&&void 0!==a?a:0)},0)},f={summary:{score:h.brandId?null!==(t=null===(n=o[0])||void 0===n?void 0:n.score)&&void 0!==t?t:null:null!==(a=null==u?void 0:u.rank_score)&&void 0!==a?a:null,avg_sentiment:o.length?Math.round(b("sentiment")/o.length):null,total_mentions:b("mentions"),total_citations:b("citations")},details:o},k(f),rankMath.tracking&&(y=rankMath.tracking,v=y.plugin,_=y.email,g=y.language,w=y.path,mixpanel.identify(_),mixpanel.track("AI Visibility Report Generated",{has_data:o.length>0,context:"wp_plugin",brand:"rankmath",application:"rankmath",plugin:v,path:w,language:g})),e.n=7;break;case 6:e.p=6,x=e.v,P((null==x?void 0:x.message)||(0,r.__)("Failed to generate report.","seo-by-rank-math"));case 7:return e.p=7,N(!1),e.f(7);case 8:return e.a(2)}},e,null,[[2,4],[1,6,7,8]])})),[h,d,u]),z=null!==(e=null==g?void 0:g.summary)&&void 0!==e?e:{},M=null!==(t=null==g?void 0:g.details)&&void 0!==t?t:[],D=(0,a.useMemo)(function(){return x?x.name:""},[x]);return wp.element.createElement("div",{className:c},wp.element.createElement($e,{title:(0,r.__)("Reports & Export","seo-by-rank-math"),subtitle:(0,r.__)("Export daily aggregates for a brand.","seo-by-rank-math")}),wp.element.createElement("div",{className:"".concat(c,"__layout")},wp.element.createElement("aside",{className:"".concat(c,"__filters")},wp.element.createElement("div",{className:"".concat(c,"__filters-header")},wp.element.createElement("span",{className:"dashicons dashicons-filter","aria-hidden":"true"}),wp.element.createElement("div",null,wp.element.createElement("p",{className:"".concat(c,"__filters-title")},(0,r.__)("Filters","seo-by-rank-math")),wp.element.createElement("p",{className:"".concat(c,"__filters-subtitle")},(0,r.__)("Select brand and format.","seo-by-rank-math")))),wp.element.createElement("div",{className:"".concat(c,"__filters-body")},wp.element.createElement("div",{className:"".concat(c,"__filter-field")},wp.element.createElement(o.SelectControl,{label:(0,r.__)("BRAND","seo-by-rank-math"),value:h.brandId,options:b,onChange:function(e){var t;(t="brandId",function(e){return v(function(n){return zr(zr({},n),{},Mr({},t,e))})})(e),e||(k(null),E(null),P(null))},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement(Ne,{className:"".concat(c,"__generate-btn"),onClick:I,isLoading:S,loadingLabel:(0,r.__)("Generating…","seo-by-rank-math"),disabled:!h.brandId},(0,r.__)("Generate preview","seo-by-rank-math")))),wp.element.createElement("div",{className:"".concat(c,"__preview")},O&&wp.element.createElement(o.Notice,{status:"error",isDismissible:!1},O),S&&wp.element.createElement(l.TableSkeleton,{columns:5,rows:4}),!g&&!S&&!O&&wp.element.createElement("div",{className:"".concat(c,"__empty")},wp.element.createElement("p",null,(0,r.__)('Select a brand, then click "Generate preview".',"seo-by-rank-math"))),g&&wp.element.createElement("div",{className:"".concat(c,"__report-card")},wp.element.createElement("div",{className:"".concat(c,"__preview-header")},wp.element.createElement("div",{className:"".concat(c,"__preview-title-row")},wp.element.createElement("span",{className:"dashicons dashicons-chart-bar","aria-hidden":"true"}),wp.element.createElement("div",null,wp.element.createElement("p",{className:"".concat(c,"__preview-title")},(0,r.__)("Preview","seo-by-rank-math")),D&&wp.element.createElement("p",{className:"".concat(c,"__preview-subtitle")},D))),wp.element.createElement("div",{className:"".concat(c,"__preview-actions")},wp.element.createElement(Ee,{variant:"secondary",onClick:function(){if(Ar(g,"ai-visibility-report.json"),rankMath.tracking){var e=rankMath.tracking,t=e.plugin,n=e.email,a=e.language,i=e.path;mixpanel.identify(n),mixpanel.track("Button Clicked",{button:"Download AI Visibility Report",context:"wp_plugin",brand:"rankmath",application:"rankmath",plugin:t,path:i,language:a})}}},(0,r.__)("Download JSON","seo-by-rank-math")))),wp.element.createElement("div",{className:"".concat(c,"__report-card-body")},wp.element.createElement("div",{className:"".concat(c,"__stat-cards")},wp.element.createElement(qr,{icon:" rm-icon-ai-visibility",className:"rank-math-ai-visibility-reports-overall-score",label:(0,r.__)("Global AI Visibility Score","seo-by-rank-math"),value:null!==z.score&&void 0!==z.score?"".concat(z.score,"/100"):null,iconBg:"rgba(1,124,186,0.12)",iconColor:"#017CBA",tooltip:(0,r.__)("The overall AI Visibility Score for the selected brand and date range, calculated based on the volume of mentions, sentiment, and other factors.","seo-by-rank-math")}),wp.element.createElement(qr,{icon:"smiley",className:"rank-math-ai-visibility-reports-overall-sentiment",label:(0,r.__)("Avg Sentiment","seo-by-rank-math"),value:null!==z.avg_sentiment&&void 0!==z.avg_sentiment?"".concat((0,i.round)(z.avg_sentiment),"%"):null,iconBg:"rgba(82,96,185,0.12)",iconColor:"#5260B9",tooltip:(0,r.__)("The average sentiment score across all AI mentions for the selected brand and date range. Calculated by analyzing the sentiment of each mention and averaging the scores.","seo-by-rank-math")}),wp.element.createElement(qr,{icon:" rm-icon-comments",className:"rank-math-ai-visibility-reports-total-mentions",label:(0,r.__)("Total Mentions","seo-by-rank-math"),value:null!==(n=z.total_mentions)&&void 0!==n?n:0,iconBg:"rgba(255,171,64,0.15)",iconColor:"#F59E0B",tooltip:(0,r.__)("The total number of AI-generated mentions of the selected brand within the specified date range.","seo-by-rank-math")}),wp.element.createElement(qr,{icon:" rm-icon-misc",className:"rank-math-ai-visibility-reports-total-citations",label:(0,r.__)("Total Citations","seo-by-rank-math"),value:null!==(s=z.total_citations)&&void 0!==s?s:0,iconBg:"rgba(66,178,104,0.15)",iconColor:"#42B268",tooltip:(0,r.__)("The total number of AI-generated mentions that include a link to the selected brand’s website within the specified date range.","seo-by-rank-math")})),M.length>0&&wp.element.createElement(Jt,{columns:[{key:"score",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement(Ht,{score:null!==(t=e.score)&&void 0!==t?t:null})}},{key:"rank",label:(0,r.__)("Avg Rank","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement(De,{rank:null!==(t=e.rank)&&void 0!==t?t:null})}},{key:"sentiment",label:(0,r.__)("Sentiment","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement(qe,{score:null!==(t=e.sentiment)&&void 0!==t?t:null})}},{key:"mentions",label:(0,r.__)("Mentions","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement($t,{value:null!==(t=e.mentions)&&void 0!==t?t:null,variant:"mentions"})}},{key:"citations",label:(0,r.__)("Citations","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement($t,{value:null!==(t=e.citations)&&void 0!==t?t:null,variant:"citations"})}},{key:"competitors",label:(0,r.__)("Top competitors","seo-by-rank-math"),render:function(e){return wp.element.createElement("div",{className:"".concat(c,"__competitors")},(e.competitors||[]).map(function(e){return wp.element.createElement("span",{key:e,className:"".concat(c,"__competitor-tag")},e)}))}},{key:"date",label:(0,r.__)("Date","seo-by-rank-math"),render:function(e){return Nt(e.date)}}],rows:M,rowKey:function(e,t){var n;return null!==(n=e.id)&&void 0!==n?n:t}}))))))};Fr.displayName="Reports";const Ur=Fr;var Gr=n(3484),Vr={};Vr.styleTagTransform=_e(),Vr.setAttributes=fe(),Vr.insert=pe().bind(null,"head"),Vr.domAPI=de(),Vr.insertStyleElement=ye();ce()(Gr.A,Vr);Gr.A&&Gr.A.locals&&Gr.A.locals;var Hr=function(){},Qr=[{id:"preview-1",name:"Playstation 5",url:"sony.com",locale:"US",score:94,rank:1,avg_sentiment:81,mentions:4,citations:2,last_analyzed:"2026-03-16",status:"active"},{id:"preview-2",name:"iPad",url:"apple.com",locale:"US",score:94,rank:1,avg_sentiment:76,mentions:9,citations:16,last_analyzed:"2026-03-16",status:"active"},{id:"preview-3",name:"MiniCRM",url:"https://minicrm.hu/",locale:"HU",score:null,rank:null,avg_sentiment:null,mentions:null,citations:null,last_analyzed:"2026-03-16",status:"active"},{id:"preview-4",name:"BackWPup",url:"https://backwpup.com",locale:"",score:null,rank:null,avg_sentiment:null,mentions:null,citations:null,last_analyzed:"2026-03-16",status:"active"},{id:"preview-5",name:"GTmetrix",url:"https://gtmetrix.com",locale:"",score:null,rank:null,avg_sentiment:null,mentions:null,citations:null,last_analyzed:"2026-03-16",status:"active"},{id:"preview-6",name:"Rank Math",url:"https://rankmath.com/",locale:"",score:23,rank:3,avg_sentiment:40,mentions:2,citations:1,last_analyzed:"2026-03-16",status:"inactive"},{id:"preview-7",name:"WP Rocket",url:"https://wp-rocket.me",locale:"",score:23,rank:3,avg_sentiment:40,mentions:2,citations:1,last_analyzed:"2026-03-16",status:"active"}],Wr=function(){var e="rank-math-ai-visibility-dashboard";return wp.element.createElement("div",{className:"".concat(e," rank-math-ai-visibility-gated-preview"),"aria-hidden":"true"},wp.element.createElement("div",{className:"".concat(e,"__stats")},wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--active-brands",icon:" rm-icon rm-icon-ai-visibility",label:(0,r.__)("Global AI Visibility Score","seo-by-rank-math"),value:"70/100"}),wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--analyses",icon:p,label:(0,r.__)("Analyses in the last 7 days","seo-by-rank-math"),value:0}),wp.element.createElement(Pe,{className:"rank-math-ai-visibility-stat-card--mentions",icon:"rm-icon rm-icon-comments",label:(0,r.__)("Avg mentions per brand","seo-by-rank-math"),value:3.2})),wp.element.createElement("div",{className:"".concat(e,"__table-card")},wp.element.createElement(Aa,{searchValue:"",onSearchChange:Hr,onAdd:Hr}),wp.element.createElement(ja,{brands:Qr,loading:!1,onView:Hr,onEdit:Hr,onDisable:Hr})))};Wr.displayName="GatedPreview";const $r=Wr;var Yr=n(2634),Kr={};Kr.styleTagTransform=_e(),Kr.setAttributes=fe(),Kr.insert=pe().bind(null,"head"),Kr.domAPI=de(),Kr.insertStyleElement=ye();ce()(Yr.A,Kr);Yr.A&&Yr.A.locals&&Yr.A.locals;const Zr=function(e){var t,n=e.config,a=void 0===n?{}:n,i=a.isSiteConnected,o=a.registerProductNonce,s=null!==(t=a.aiVisibility)&&void 0!==t?t:{},c=s.activateUrl,m=s.isSiteUrlValid,d="rank-math-ai-visibility-account",u=i?"connected":"disconnected",p=i?(0,r.__)("Connected","seo-by-rank-math"):(0,r.__)("Not Connected","seo-by-rank-math");return wp.element.createElement("div",{className:"".concat(d," ").concat("".concat(d,i?"-connected":"-disconnected"))},wp.element.createElement("header",null,wp.element.createElement("h3",null,(0,r.__)("Account Connection Required","seo-by-rank-math")),wp.element.createElement(l.StatusButton,{status:u},p)),wp.element.createElement("div",{className:"".concat(d,"-content")},wp.element.createElement("form",{method:"post"},wp.element.createElement(l.TextControl,{type:"hidden",name:"registration-action",value:i?"deregister":"register"}),wp.element.createElement(l.TextControl,{type:"hidden",name:"_wpnonce",value:o}),wp.element.createElement(l.ConnectAccountBody,{description:(0,r.__)("Connect your account for free to start tracking your brand's AI visibility.","seo-by-rank-math"),helpLink:mn("ai-visibility-connect","AI Visibility Connect"),activateUrl:c,isSiteUrlValid:m,note:(0,r.__)("Takes less than 30 seconds to get started","seo-by-rank-math"),noteClassName:"".concat(d,"-not-registered-note")}))))};function Jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n.dn(Zr);const eo=function(e){var t=e.config,n=void 0===t?{}:t,s=Jr((0,a.useState)($(W)),2),c=s[0],m=s[1],d=Jr((0,a.useState)(null),2),u=d[0],p=d[1],b=function(e){return p(e)};(0,a.useEffect)(function(){var e=function(){m($(W))};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]);var f=rankMath.aiVisibility,h=f.isSiteConnected,v=f.isPro,_=f.plan,g=f.locales,k=void 0===g?[]:g,w=f.languages,x=void 0===w?[]:w,E=f.defaultLanguage,A=void 0===E?"":E,S=f.intervals,N=void 0===S?[]:S,j=f.platforms,O=void 0===j?{}:j,P=f.maxPlatforms,C=void 0===P?1:P,T=(0,i.includes)(["","free"],(0,i.toLower)(_)),I=h&&T;return wp.element.createElement(React.Fragment,null,wp.element.createElement(l.DashboardHeader,{page:(0,r.__)("AI Visibility","seo-by-rank-math")}),wp.element.createElement("div",{className:"wrap rank-math-wrap rank-math-ai-visibility"},wp.element.createElement(l.TabPanel,{key:c,className:"rank-math-tabs",activeClass:"is-active",initialTabName:c,tabs:[{name:W,title:(0,r.__)("Dashboard","seo-by-rank-math"),className:"rank-math-ai-visibility-dashboard-tab rank-math-tab",view:Hi},{name:"analyses",title:(0,r.__)("Analyses & Transcripts","seo-by-rank-math"),className:"rank-math-ai-visibility-analyses-tab rank-math-tab",view:Er},{name:"reports",title:(0,r.__)("Reports & Export","seo-by-rank-math"),className:"rank-math-ai-visibility-reports-tab rank-math-tab",view:Ur}],onSelect:function(e){!function(e){if($()!==e){var t=(0,y.addQueryArgs)(window.location.href,{tab:e});window.history.pushState({},"",t)}}(e),m(e)}},function(e){return wp.element.createElement("div",{className:"rank-math-ai-visibility__tab rank-math-ai-visibility__tab--"+e.name},!h&&wp.element.createElement(Zr,{config:n}),h&&(I?wp.element.createElement($r,null):(0,a.createElement)(e.view,{locales:k,languages:x,defaultLanguage:A,intervals:N,platforms:O,maxPlatforms:C,onBrandCreated:b})))}),I&&(v?wp.element.createElement(da,null):wp.element.createElement(Gn,null))),u&&wp.element.createElement(o.Snackbar,{onRemove:function(){return p(null)}},u))};var to=n(9717),no={};no.styleTagTransform=_e(),no.setAttributes=fe(),no.insert=pe().bind(null,"head"),no.domAPI=de(),no.insertStyleElement=ye();ce()(to.A,no);to.A&&to.A.locals&&to.A.locals;document.addEventListener("DOMContentLoaded",function(){var e,t=document.getElementById("rank-math-ai-visibility-container");if(t){var n=null!==(e=window.rankMath)&&void 0!==e?e:{};(0,a.createRoot)(t).render(wp.element.createElement(eo,{config:n}))}})}(); |