编辑文件:ai-visibility.js
!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__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;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:1}.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-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-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;line-height:23px}.rank-math-ai-visibility-account-content p.rank-math-ai-visibility-account-not-registered-note{margin-top:30px;font-weight:500;font-size:12px;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 .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;gap:10px 16px;margin-top:4px}.rank-math-ai-visibility-add-brand-modal__platforms-col{display:flex;flex-direction:column;gap:10px}.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__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),b={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==u)t[u].references++,t[u].updater(b);else{var p=i(b,a);a.byIndex=l,t.splice(l,0,{identifier:d,updater:p,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 b=(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"})),p=(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"})),h=wp.apiFetch;var f=n.n(h);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:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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,f()(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})},C=function(e,t){return A(S("/brands/".concat(e)),{method:"PATCH",data:{status:t}})},P=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=V(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:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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 G(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)||V(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 V(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}function U(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=G((0,a.useState)(null),2),t=e[0],n=e[1],i=G((0,a.useState)([]),2),o=i[0],l=i[1],s=G((0,a.useState)(!0),2),c=s[0],m=s[1],d=G((0,a.useState)(!1),2),u=d[0],b=d[1],p=G((0,a.useState)(null),2),h=p[0],f=p[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,f(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:[]),b(!(null==i||!i.is_stale)),e.a(2,i);case 4:return e.p=4,o=e.v,f((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,f((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 C(e,"inactive")},(0,r.__)("Failed to disable brand.","seo-by-rank-math"))},[w]),P=(0,a.useCallback)(function(e){return w(function(){return C(e,"active")},(0,r.__)("Failed to enable brand.","seo-by-rank-math"))},[w]);return{summary:t,brands:o,loading:c,isStale:u,error:h,refetch:g,handleSearch:k,handleAddBrand:x,handleUpdateBrand:E,handleDisableBrand:j,handleEnableBrand:P}};var W=n(5072),$=n.n(W),Y=n(7825),K=n.n(Y),Z=n(7659),J=n.n(Z),X=n(5056),ee=n.n(X),te=n(540),ne=n.n(te),ae=n(1113),ie=n.n(ae),re=n(5089),oe={};oe.styleTagTransform=ie(),oe.setAttributes=ee(),oe.insert=J().bind(null,"head"),oe.domAPI=K(),oe.insertStyleElement=ne();$()(re.A,oe);re.A&&re.A.locals&&re.A.locals;var le=["variant","className","iconVariant","iconLeft","iconRight","children"];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 ce=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,le),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,se({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 me=["isLoading","loadingLabel","children","disabled","iconLeft"];function de(){return de=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},de.apply(null,arguments)}const ue=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,me),c=n?null!=a?a:"".concat(i,"…"):i,m=l&&n?wp.element.createElement(o.Spinner,null):l;return wp.element.createElement(ce,de({iconLeft:m,disabled:r||n},s),c)};var be=n(1297),pe={};pe.styleTagTransform=ie(),pe.setAttributes=ee(),pe.insert=J().bind(null,"head"),pe.domAPI=K(),pe.insertStyleElement=ne();$()(be.A,pe);be.A&&be.A.locals&&be.A.locals;const he=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,b=e.analysis,p=void 0===b?null:b,h="rank-math-ai-visibility-stat-card",f=[h,(null!==(t=(null==p?void 0:p.status)&&"done"===(null==p?void 0:p.status))&&void 0!==t?t:null!=i&&""!==i&&"—"!==i)&&"".concat(h,"--has-data"),m&&"".concat(h,"--compact"),u].filter(Boolean).join(" "),y="".concat(h,"__label"),v="".concat(h,"__value");return wp.element.createElement("div",{className:f},n&&wp.element.createElement("span",{className:"".concat(h,"__icon-wrap")},"string"==typeof n?wp.element.createElement("span",{className:"dashicons dashicons-".concat(n," ").concat(h,"__icon")}):wp.element.createElement(o.Icon,{icon:n,className:"".concat(h,"__icon")})),wp.element.createElement("div",{className:"".concat(h,"__content")},wp.element.createElement("div",{className:"".concat(h,"__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(h,"__data")},wp.element.createElement("span",{className:v},null!=i?i:"N/A"),s&&wp.element.createElement("span",{className:"".concat(h,"__sub")},s))))};var fe=n(6583),ye={};ye.styleTagTransform=ie(),ye.setAttributes=ee(),ye.insert=J().bind(null,"head"),ye.domAPI=K(),ye.insertStyleElement=ne();$()(fe.A,ye);fe.A&&fe.A.locals&&fe.A.locals;const ve=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(ce,{className:"".concat(s,"__cta"),onClick:r},i))};var _e=n(6558),ge={};ge.styleTagTransform=ie(),ge.setAttributes=ee(),ge.insert=J().bind(null,"head"),ge.domAPI=K(),ge.insertStyleElement=ne();$()(_e.A,ge);_e.A&&_e.A.locals&&_e.A.locals;const ke=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 we=n(7497),xe={};xe.styleTagTransform=ie(),xe.setAttributes=ee(),xe.insert=J().bind(null,"head"),xe.domAPI=K(),xe.insertStyleElement=ne();$()(we.A,xe);we.A&&we.A.locals&&we.A.locals;var Ee=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 Ae=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(Ee,{modifier:n})),wp.element.createElement("span",{className:"".concat(r,"__label")},a?"".concat((0,i.round)(t),"%"):"−"))};var Se=n(5975),Ne={};Ne.styleTagTransform=ie(),Ne.setAttributes=ee(),Ne.insert=J().bind(null,"head"),Ne.domAPI=K(),Ne.insertStyleElement=ne();$()(Se.A,Ne);Se.A&&Se.A.locals&&Se.A.locals;function je(e){return function(e){if(Array.isArray(e))return Oe(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 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)||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 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 Ce=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 je(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 Pe=n(3269),Te={};Te.styleTagTransform=ie(),Te.setAttributes=ee(),Te.insert=J().bind(null,"head"),Te.domAPI=K(),Te.insertStyleElement=ne();$()(Pe.A,Te);Pe.A&&Pe.A.locals&&Pe.A.locals;const Ie=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 ze=n(6424),Me={};Me.styleTagTransform=ie(),Me.setAttributes=ee(),Me.insert=J().bind(null,"head"),Me.domAPI=K(),Me.insertStyleElement=ne();$()(ze.A,Me);ze.A&&ze.A.locals&&ze.A.locals;var De=(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(ce,{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(ce,{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(ce,{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")))))});De.displayName="ActionButtons";const Be=De;var Le=n(9034),Re={};Re.styleTagTransform=ie(),Re.setAttributes=ee(),Re.insert=J().bind(null,"head"),Re.domAPI=K(),Re.insertStyleElement=ne();$()(Le.A,Re);Le.A&&Le.A.locals&&Le.A.locals;var qe=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,b=e.error,p=void 0===b?null:b,h=e.onConfirm,f=e.onCancel,y="rank-math-ai-visibility-confirm-modal";return wp.element.createElement(o.Modal,{title:t,onRequestClose:f,className:y},wp.element.createElement("p",{className:"".concat(y,"__message")},n),p&&wp.element.createElement("p",{className:"".concat(y,"__error")},p),wp.element.createElement("div",{className:"".concat(y,"__footer")},wp.element.createElement(ce,{variant:"secondary",onClick:f,disabled:u},s),wp.element.createElement(ue,{variant:"primary",isDestructive:m,onClick:h,isLoading:u,loadingLabel:"".concat(i,"…")},i)))};qe.displayName="ConfirmModal";const Fe=qe;var Ge=n(1623),Ve={};Ve.styleTagTransform=ie(),Ve.setAttributes=ee(),Ve.insert=J().bind(null,"head"),Ve.domAPI=K(),Ve.insertStyleElement=ne();$()(Ge.A,Ve);Ge.A&&Ge.A.locals&&Ge.A.locals;var Ue=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})};Ue.displayName="StatusToggle";const He=Ue;var Qe=n(7340),We={};We.styleTagTransform=ie(),We.setAttributes=ee(),We.insert=J().bind(null,"head"),We.domAPI=K(),We.insertStyleElement=ne();$()(Qe.A,We);Qe.A&&Qe.A.locals&&Qe.A.locals;function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Ye(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 Ke(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)?Ke(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 Ke(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 Ze(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=$e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=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()},tt=function(e){if("string"!=typeof e.extraction_data)return e;try{return Je(Je({},e),{},{extraction_data:JSON.parse(e.extraction_data)})}catch(t){return e}},nt=function(e){var t,n=e.entry,i=e.onClose,l="rank-math-ai-visibility-transcript-modal",s=Ye((0,a.useState)(!1),2),c=s[0],m=s[1],d=Ye((0,a.useState)(!1),2),u=d[0],b=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(ce,{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");et(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(ce,{variant:"secondary",onClick:function(){et(JSON.stringify(tt(n),null,2),function(){b(!0),setTimeout(function(){return b(!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(tt(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>")}))}})))))};nt.displayName="TranscriptModal";const at=nt;var it=n(162),rt={};rt.styleTagTransform=ie(),rt.setAttributes=ee(),rt.insert=J().bind(null,"head"),rt.domAPI=K(),rt.insertStyleElement=ne();$()(it.A,rt);it.A&&it.A.locals&&it.A.locals;const ot=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 lt=n(6135),st={};st.styleTagTransform=ie(),st.setAttributes=ee(),st.insert=J().bind(null,"head"),st.domAPI=K(),st.insertStyleElement=ne();$()(lt.A,st);lt.A&<.A.locals&<.A.locals;var ct=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}))};ct.displayName="DateInput";const mt=ct;var dt=function(e){if(!e)return null;var t=new Date(e);return isNaN(t.getTime())?null:t},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" at ",n=dt(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)},bt=function(e){var t=dt(e);return t?t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):"—"},pt=n(4061),ht={};ht.styleTagTransform=ie(),ht.setAttributes=ee(),ht.insert=J().bind(null,"head"),ht.domAPI=K(),ht.insertStyleElement=ne();$()(pt.A,ht);pt.A&&pt.A.locals&&pt.A.locals;function ft(e){return function(e){if(Array.isArray(e))return _t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vt(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 yt(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)||vt(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 vt(e,t){if(e){if("string"==typeof e)return _t(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)?_t(e,t):void 0}}function _t(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 gt=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,ut(t," · ")),c&&" · ".concat(c)),wp.element.createElement(ot,{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"}))))},kt=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"))))},wt=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,b="rank-math-ai-visibility-transcript-viewer",p=yt((0,a.useState)(""),2),h=p[0],f=p[1],y=yt((0,a.useState)(""),2),v=y[0],_=y[1],g=yt((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(ft(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),{label:t,value:String(e.id)}})))},[s]),E=(0,a.useMemo)(function(){var e=s;return h&&(e=e.filter(function(e){var t;return null===(t=e.created_at)||void 0===t?void 0:t.startsWith(h)})),v&&(e=e.filter(function(e){return String(e.id)===v})),e},[s,h,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:b},wp.element.createElement("div",{className:"".concat(b,"__left")},wp.element.createElement("div",{className:"".concat(b,"__filter-bar")},wp.element.createElement("div",{className:"".concat(b,"__date-filter")},wp.element.createElement(mt,{value:h,onChange:function(e){return f(e.target.value)},ariaLabel:(0,r.__)("Filter by date","seo-by-rank-math"),className:"".concat(b,"__date-input")})),wp.element.createElement(o.SelectControl,{value:v,options:x,onChange:_,className:"".concat(b,"__query-select"),__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(b,"__entry-list")},0===E.length?wp.element.createElement("p",{className:"".concat(b,"__empty-list")},(0,r.__)("No entries match the current filters.","seo-by-rank-math")):E.map(function(e){return wp.element.createElement(gt,{key:e.id,entry:e,isSelected:e.id===A,onSelect:u,onViewTranscript:w})}))),wp.element.createElement(kt,{entry:S}),k&&wp.element.createElement(at,{entry:k,onClose:function(){return w(null)}}))};wt.displayName="TranscriptViewer";const xt=wt;var Et=n(6082),At={};At.styleTagTransform=ie(),At.setAttributes=ee(),At.insert=J().bind(null,"head"),At.domAPI=K(),At.insertStyleElement=ne();$()(Et.A,At);Et.A&&Et.A.locals&&Et.A.locals;var St=(0,a.memo)(function(e){var t=e.value,n=void 0===t?"-":t;return n&&"-"!==n&&(n=ut(n)||n),wp.element.createElement("div",{className:"rank-math-ai-visibility-processed-start-time"},n)});St.displayName="StartTime";const Nt=St;var jt=n(4236),Ot={};Ot.styleTagTransform=ie(),Ot.setAttributes=ee(),Ot.insert=J().bind(null,"head"),Ot.domAPI=K(),Ot.insertStyleElement=ne();$()(jt.A,Ot);jt.A&&jt.A.locals&&jt.A.locals;const Ct=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 Pt=n(627),Tt={};Tt.styleTagTransform=ie(),Tt.setAttributes=ee(),Tt.insert=J().bind(null,"head"),Tt.domAPI=K(),Tt.insertStyleElement=ne();$()(Pt.A,Tt);Pt.A&&Pt.A.locals&&Pt.A.locals;const It=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 zt=n(479),Mt={};Mt.styleTagTransform=ie(),Mt.setAttributes=ee(),Mt.insert=J().bind(null,"head"),Mt.domAPI=K(),Mt.insertStyleElement=ne();$()(zt.A,Mt);zt.A&&zt.A.locals&&zt.A.locals;var Dt=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:"—")}))})))};Dt.displayName="DataTable";const Bt=Dt;var Lt=n(6574),Rt={};Rt.styleTagTransform=ie(),Rt.setAttributes=ee(),Rt.insert=J().bind(null,"head"),Rt.domAPI=K(),Rt.insertStyleElement=ne();$()(Lt.A,Rt);Lt.A&&Lt.A.locals&&Lt.A.locals;var qt=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(ce,{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))};qt.displayName="PageTopbar";const Ft=qt;var Gt=n(7482),Vt={};Vt.styleTagTransform=ie(),Vt.setAttributes=ee(),Vt.insert=J().bind(null,"head"),Vt.domAPI=K(),Vt.insertStyleElement=ne();$()(Gt.A,Vt);Gt.A&&Gt.A.locals&&Gt.A.locals;var Ut={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")}},Ht=function(e){var t=e.variant,n=Ut[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))))};Ht.displayName="StatusIcon";const Qt=Ht,Wt=(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 $t(){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($t);var Yt=n(9368),Kt={};Kt.styleTagTransform=ie(),Kt.setAttributes=ee(),Kt.insert=J().bind(null,"head"),Kt.domAPI=K(),Kt.insertStyleElement=ne();$()(Yt.A,Kt);Yt.A&&Yt.A.locals&&Yt.A.locals;function Zt(e){return Zt="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},Zt(e)}function Jt(e){return function(e){if(Array.isArray(e))return rn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||an(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 Xt(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 en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach(function(t){tn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Zt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Zt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(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)||an(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 an(e,t){if(e){if("string"==typeof e)return rn(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)?rn(e,t):void 0}}function rn(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 on={name:"",url:"",description:"",locale:"",interval:"weekly",platforms:["chatgpt"]},ln=["name","url","description"],sn=[{label:(0,r.__)("Weekly","seo-by-rank-math"),value:"weekly",disabled:!1},{label:(0,r.__)("Monthly (Coming Soon)","seo-by-rank-math"),value:"monthly",disabled:!0},{label:(0,r.__)("Daily (Coming Soon)","seo-by-rank-math"),value:"daily",disabled:!0}],cn=[{id:"chatgpt",label:"ChatGPT",enabled:!0},{id:"perplexity",label:"Perplexity",enabled:!1},{id:"google_ai_overview",label:"Google AI Overview",enabled:!1},{id:"gemini",label:"Gemini",enabled:!1},{id:"claude",label:"Claude",enabled:!1}],mn=cn.slice(0,3),dn=cn.slice(3),un=function(){return wp.element.createElement("span",{className:"rank-math-ai-visibility-add-brand-modal__coming-soon"},(0,r.__)("Coming Soon","seo-by-rank-math"))},bn=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(un,null))},pn=function(e){var t,n=e.brand,i=void 0===n?null:n,s=e.onSave,c=e.onClose,m=e.isSaving,d=void 0!==m&&m,u=e.apiError,b=void 0===u?null:u,p=e.locales,h=void 0===p?[]:p,f=nn((0,a.useState)(on),2),y=f[0],v=f[1],_=nn((0,a.useState)({}),2),g=_[0],k=_[1],w="rank-math-ai-visibility-add-brand-modal",x={name:(0,a.useRef)(null),url:(0,a.useRef)(null),description:(0,a.useRef)(null)},E=(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]);(0,a.useEffect)(function(){var e,t,n,a,r,o;i?v({id:i.id,name:null!==(e=i.name)&&void 0!==e?e:"",url:null!==(t=i.url)&&void 0!==t?t:"",description:null!==(n=i.description)&&void 0!==n?n:"",locale:null!==(a=i.locale)&&void 0!==a?a:"",interval:null!==(r=i.interval)&&void 0!==r?r:"weekly",platforms:null!==(o=i.platforms)&&void 0!==o?o:["chatgpt"]}):v(on)},[i]);var A=function(e){return function(t){v(function(n){return en(en({},n),{},tn({},e,t))}),k(function(t){if(!t[e])return t;var n=en({},t);return delete n[e],n})}},S=function(e){v(function(t){var n=t.platforms.includes(e);return en(en({},t),{},{platforms:n?t.platforms.filter(function(t){return t!==e}):[].concat(Jt(t.platforms),[e])})})},N=Boolean(i),j=d||0===(null==y||null===(t=y.platforms)||void 0===t?void 0:t.length)||Object.keys(g).length>0;return wp.element.createElement(o.Modal,{onRequestClose:c,className:w,__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(w,"__header")},wp.element.createElement("div",{className:"".concat(w,"__header-text")},wp.element.createElement("h1",{className:"".concat(w,"__title")},N?(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(w,"__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:$t("ai-visibility","AI Visibility Add Brand Modal"),target:"_blank",rel:"noopener noreferrer"},(0,r.__)("Learn more","seo-by-rank-math")))),wp.element.createElement(ce,{variant:"",onClick:c,disabled:d,className:"".concat(w,"__close")},wp.element.createElement(o.Icon,{icon:Wt,size:24}))),wp.element.createElement("hr",{className:"".concat(w,"__divider")}),wp.element.createElement("div",{className:"".concat(w,"__body")},wp.element.createElement("div",{className:"".concat(w,"__field"),ref:x.name},wp.element.createElement(o.TextControl,{label:(0,r.__)("Brand / Product Name","seo-by-rank-math"),value:y.name,onChange:A("name"),placeholder:(0,r.__)("Enter your brand or product name","seo-by-rank-math"),disabled:d,help:g.name,className:g.name?"".concat(w,"__field--error"):"",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(w,"__field"),ref:x.url},wp.element.createElement(o.TextControl,{label:(0,r.__)("Brand / Product URL","seo-by-rank-math"),value:y.url,onChange:A("url"),onBlur:function(){var e=y.url.trim();if(e&&!/^https?:\/\//i.test(e)){var t=e.startsWith("//")?"https:"+e:"https://"+e;A("url")(t)}},placeholder:"https://example.com",type:"url",disabled:d,help:g.url,className:g.url?"".concat(w,"__field--error"):"",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(w,"__field"),ref:x.description},wp.element.createElement(o.TextareaControl,{label:(0,r.__)("How would you describe your brand/product?","seo-by-rank-math"),value:y.description,onChange:A("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:d,rows:3,help:g.description,className:g.description?"".concat(w,"__field--error"):"",__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(w,"__field")},wp.element.createElement("span",{className:"".concat(w,"__label")},(0,r.__)("Target Country (Optional)","seo-by-rank-math")),wp.element.createElement(l.SelectWithSearch,{value:y.locale,options:E,onChange:A("locale"),disabled:d})),wp.element.createElement("div",{className:"".concat(w,"__field")},wp.element.createElement(o.SelectControl,{label:(0,r.__)("Frequency of analyses","seo-by-rank-math"),value:y.interval,options:sn,onChange:A("interval"),disabled:d,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement("div",{className:"".concat(w,"__field")},wp.element.createElement("span",{className:"".concat(w,"__label")},(0,r.__)("AI Platforms","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(w,"__platforms")},wp.element.createElement("div",{className:"".concat(w,"__platforms-col")},mn.map(function(e){return wp.element.createElement(bn,{key:e.id,platform:e,checked:y.platforms.includes(e.id),onChange:function(){return S(e.id)},disabled:d})})),wp.element.createElement("div",{className:"".concat(w,"__platforms-col")},dn.map(function(e){return wp.element.createElement(bn,{key:e.id,platform:e,checked:y.platforms.includes(e.id),onChange:function(){return S(e.id)},disabled:d})}))))),b&&wp.element.createElement("div",{className:"".concat(w,"__api-error"),role:"alert"},b),wp.element.createElement("div",{className:"".concat(w,"__footer")},wp.element.createElement(ce,{variant:"secondary",onClick:c,disabled:d},(0,r.__)("Cancel","seo-by-rank-math")),wp.element.createElement(ue,{variant:"primary",onClick:function(){var e=function(){var e={};return y.name.trim()||(e.name=(0,r.__)("Brand name is required.","seo-by-rank-math")),y.url.trim()?/^https?:\/\/.+\..+/.test(y.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"),y.description.trim()||(e.description=(0,r.__)("Description is required.","seo-by-rank-math")),k(e),e}();Object.keys(e).length>0?function(e){var t,n=ln.find(function(t){return e[t]}),a=n?null===(t=x[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):s({name:y.name.trim(),url:y.url.trim(),description:y.description.trim(),locale:y.locale,interval:y.interval,platforms:y.platforms})},isLoading:d,loadingLabel:N?(0,r.__)("Saving…","seo-by-rank-math"):(0,r.__)("Adding…","seo-by-rank-math"),disabled:j},N?(0,r.__)("Save Changes","seo-by-rank-math"):(0,r.__)("Add","seo-by-rank-math"))))};pn.displayName="AddBrandModal";const hn=pn;var fn=n(9559),yn={};yn.styleTagTransform=ie(),yn.setAttributes=ee(),yn.insert=J().bind(null,"head"),yn.domAPI=K(),yn.insertStyleElement=ne();$()(fn.A,yn);fn.A&&fn.A.locals&&fn.A.locals;var vn=n(1664),_n={};_n.styleTagTransform=ie(),_n.setAttributes=ee(),_n.insert=J().bind(null,"head"),_n.domAPI=K(),_n.insertStyleElement=ne();$()(vn.A,_n);vn.A&&vn.A.locals&&vn.A.locals;var gn=function(){},kn=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?gn:m,u=e.children,b="rank-math-ai-visibility-access-gate-modal";return wp.element.createElement(o.Modal,{onRequestClose:d,className:(0,i.join)((0,i.compact)([b,l])," "),overlayClassName:"rank-math-modal-overlay rank-math-ai-visibility-content-overlay",isDismissible:c,shouldCloseOnEsc:c,shouldCloseOnClickOutside:c,aria:{labelledby:"".concat(b,"-title")},__experimentalHideHeader:!0},wp.element.createElement("div",{className:"".concat(b,"__header")},n&&wp.element.createElement("i",{className:"".concat(b,"__header-icon ").concat(n),"aria-hidden":"true"}),wp.element.createElement("h1",{id:"".concat(b,"-title"),className:"".concat(b,"__title")},a)),wp.element.createElement("div",{className:"".concat(b,"__body")},u))};kn.displayName="AccessGateModal";const wn=kn;var xn=n(5357),En={};En.styleTagTransform=ie(),En.setAttributes=ee(),En.insert=J().bind(null,"head"),En.domAPI=K(),En.insertStyleElement=ne();$()(xn.A,En);xn.A&&xn.A.locals&&xn.A.locals;var An=[(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")],Sn=function(e){var t=e.features,n=void 0===t?An: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))}))};Sn.displayName="FeatureChecklist";const Nn=Sn,jn=(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 On=function(){var e="rank-math-ai-visibility-gate";return wp.element.createElement(wn,{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(Nn,null),wp.element.createElement("div",{className:"".concat(e,"__actions")},wp.element.createElement(ce,{variant:"primary",className:"".concat(e,"__cta"),href:$t("content-ai-pricing-tables","AI Visibility Upgrade Modal"),target:"_blank",rel:"noreferrer",iconRight:wp.element.createElement(o.Icon,{icon:jn,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")))};On.displayName="UpgradeToUnlockModal";const Cn=On;function Pn(){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 Tn(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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]())):(Tn(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,Tn(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Tn(d,"constructor",c),Tn(c,"constructor",s),s.displayName="GeneratorFunction",Tn(c,i,"GeneratorFunction"),Tn(d),Tn(d,i,"Generator"),Tn(d,a,function(){return this}),Tn(d,"toString",function(){return"[object Generator]"}),(Pn=function(){return{w:r,m:u}})()}function Tn(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Tn=function(e,t,n,a){function r(t,n){Tn(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))},Tn(e,t,n,a)}function In(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 zn(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){In(r,a,i,o,l,"next",e)}function l(e){In(r,a,i,o,l,"throw",e)}o(void 0)})}}function Mn(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 Dn(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)?Dn(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 Dn(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 Bn="idle",Ln="activating",Rn="success",qn="error";const Fn=function(){var e=Mn((0,a.useState)(Bn),2),t=e[0],n=e[1],i=Mn((0,a.useState)(null),2),o=i[0],l=i[1];return{status:t,error:o,activate:(0,a.useCallback)(zn(Pn().m(function e(){var t,a,i;return Pn().w(function(e){for(;;)switch(e.p=e.n){case 0:return n(Ln),l(null),t=Date.now(),e.p=1,e.n=2,P();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(Rn),e.n=5;break;case 4:e.p=4,i=e.v,n(qn),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 Gn=n(5367),Vn={};Vn.styleTagTransform=ie(),Vn.setAttributes=ee(),Vn.insert=J().bind(null,"head"),Vn.domAPI=K(),Vn.insertStyleElement=ne();$()(Gn.A,Vn);Gn.A&&Gn.A.locals&&Gn.A.locals;function Un(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 Hn(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)?Hn(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 Hn(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 Qn=function(){},Wn=[(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")],$n=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(wn,{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(Nn,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(ce,{variant:"primary",className:"".concat(a,"__cta"),onClick:n,iconRight:wp.element.createElement(o.Icon,{icon:jn,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")))},Yn=function(){var e="rank-math-ai-visibility-activating-modal",t=Un((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,Wn.length-1)})},1200);return function(){return clearInterval(e)}},[]),wp.element.createElement(o.Modal,{onRequestClose:Qn,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")},Wn.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)})))},Kn=function(){var e="rank-math-ai-visibility-trial-success",t=Un((0,a.useState)(!1),2),n=t[0],i=t[1];return wp.element.createElement(wn,{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:$t("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:$t("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(ce,{variant:"primary",className:"rank-math-ai-visibility-gate__cta",onClick:function(){return window.location.reload()},iconRight:wp.element.createElement(o.Icon,{icon:jn,size:18})},(0,r.__)("Go to Dashboard","seo-by-rank-math"))))},Zn=function(){var e=Fn(),t=e.status,n=e.error,a=e.activate;return Ln===t?wp.element.createElement(Yn,null):Rn===t?wp.element.createElement(Kn,null):wp.element.createElement($n,{error:n,onActivate:a})};Zn.displayName="ActivateTrialModal";const Jn=Zn;var Xn=n(1655),ea={};ea.styleTagTransform=ie(),ea.setAttributes=ee(),ea.insert=J().bind(null,"head"),ea.domAPI=K(),ea.insertStyleElement=ne();$()(Xn.A,ea);Xn.A&&Xn.A.locals&&Xn.A.locals;function ta(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 na(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)?na(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 na(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 aa=function(){var e="rank-math-ai-visibility-checkout-iframe",t=ta((0,a.useState)(""),2),n=t[0],i=t[1],l=ta((0,a.useState)(null),2),s=l[0],c=l[1],m=ta((0,a.useState)(!0),2),d=m[0],u=m[1],b=(0,a.useRef)(!1),p=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(){b.current||(b.current=!0,p())},[]);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(ce,{variant:"secondary",onClick:function(){b.current=!0,p()}},(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")})};aa.displayName="CheckoutIframe";const ia=aa;var ra=n(3771),oa={};oa.styleTagTransform=ie(),oa.setAttributes=ee(),oa.insert=J().bind(null,"head"),oa.domAPI=K(),oa.insertStyleElement=ne();$()(ra.A,oa);ra.A&&ra.A.locals&&ra.A.locals;var la=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(ce,{variant:"",onClick:s,className:"".concat(d,"__close"),label:(0,r.__)("Close","seo-by-rank-math")},wp.element.createElement(o.Icon,{icon:Wt,size:20}))),wp.element.createElement("div",{className:"".concat(d,"__body")},m||wp.element.createElement(ia,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(ce,{variant:"link",onClick:s,className:"".concat(d,"__later")},(0,r.__)("I'll do this later","seo-by-rank-math"))))};la.displayName="UpgradePlanModal";const sa=la;var ca=n(8766),ma={};ma.styleTagTransform=ie(),ma.setAttributes=ee(),ma.insert=J().bind(null,"head"),ma.domAPI=K(),ma.insertStyleElement=ne();$()(ca.A,ma);ca.A&&ca.A.locals&&ca.A.locals;var da=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(ce,{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}))};da.displayName="BrandsTableToolbar";const ua=da;var ba=n(3019),pa={};pa.styleTagTransform=ie(),pa.setAttributes=ee(),pa.insert=J().bind(null,"head"),pa.domAPI=K(),pa.insertStyleElement=ne();$()(ba.A,pa);ba.A&&ba.A.locals&&ba.A.locals;const ha=(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,b=e.onEdit,p=void 0===b?function(){}:b,h=e.onDisable,f=void 0===h?function(){}:h,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(Ce,{locale:t.locale})))}},{key:"score",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),render:function(e){return wp.element.createElement(Ct,{score:null!=e?e:null})}},{key:"rank",label:(0,r.__)("Avg Rank","seo-by-rank-math"),render:function(e){return wp.element.createElement(ke,{rank:e})}},{key:"avg_sentiment",label:(0,r.__)("Avg sentiment","seo-by-rank-math"),render:function(e){return wp.element.createElement(Ae,{score:e})}},{key:"mentions",label:(0,r.__)("Mentions","seo-by-rank-math"),render:function(e){return wp.element.createElement(It,{value:e,variant:"mentions"})}},{key:"citations",label:(0,r.__)("Citations","seo-by-rank-math"),render:function(e){return wp.element.createElement(It,{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?bt(e):!n&&"-",n&&wp.element.createElement(Qt,{variant:n}))}},{key:"id",label:(0,r.__)("Actions","seo-by-rank-math"),render:function(e,t){return wp.element.createElement(Be,{status:null==t?void 0:t.status,onView:function(){return u(t)},onEdit:function(){return p(t)},onDisable:function(){return f(t)}})}}]},[u,p,f]);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 fa(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 ya(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)?ya(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 ya(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 va=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=fa((0,a.useState)(c),2),d=m[0],u=m[1],b=fa((0,a.useState)(!r),2),p=b[0],h=b[1],f=fa((0,a.useState)(null),2),y=f[0],v=f[1];return(0,a.useEffect)(function(){if(!r){var t=!1;return h(!0),v(null),e().then(function(e){t||(u(e),h(!1))}).catch(function(e){t||(v((null==e?void 0:e.message)||l),h(!1))}),function(){t=!0}}h(!1)},t),{data:d,loading:p,error:y,setData:u}};var _a="dashboard",ga=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_a;return(0,y.getQueryArg)(window.location.href,"tab")||e},ka=function(){var e=(0,y.getQueryArg)(window.location.href,"brand");return e?String(e):null},wa=function(){var e=(0,y.addQueryArgs)(window.location.href,{brand:void 0,brand_tab:void 0});window.history.pushState({},"",e)},xa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"overview";return(0,y.getQueryArg)(window.location.href,"brand_tab")||e},Ea=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"))};const Aa=function(e){var t=e.onBack,n=e.onExport,a=void 0===n?function(){}:n;return wp.element.createElement(Ft,{onBack:t,title:(0,r.__)("Brand detail","seo-by-rank-math"),actions:wp.element.createElement(ce,{variant:"secondary",onClick:a},(0,r.__)("Export Report","seo-by-rank-math"))})},Sa=(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 Na=n(421),ja={};ja.styleTagTransform=ie(),ja.setAttributes=ee(),ja.insert=J().bind(null,"head"),ja.domAPI=K(),ja.insertStyleElement=ne();$()(Na.A,ja);Na.A&&Na.A.locals&&Na.A.locals;var Oa=function(e){return e?e.startsWith("http")?e:"https://".concat(e):"#"};const Ca=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(ce,{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:Oa(t.url),target:"_blank",rel:"noreferrer"},t.url),t.locale&&wp.element.createElement(Ce,{locale:t.locale}),wp.element.createElement("a",{className:"".concat(i,"__external"),href:Oa(t.url),target:"_blank",rel:"noreferrer","aria-label":(0,r.__)("Open brand URL","seo-by-rank-math")},wp.element.createElement(o.Icon,{icon:Sa,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")," ",ut(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 Pa=n(695),Ta={};Ta.styleTagTransform=ie(),Ta.setAttributes=ee(),Ta.insert=J().bind(null,"head"),Ta.domAPI=K(),Ta.insertStyleElement=ne();$()(Pa.A,Ta);Pa.A&&Pa.A.locals&&Pa.A.locals;const Ia=function(e){var t,n,a,o=e.brand,l=e.insights,s=void 0===l?null:l,c=e.loading;if(!o)return null;var m=void 0!==c&&c?"…":"—",d=null!==(t=null==s||null===(n=s.competitors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name)&&void 0!==t?t:null,u="rank-math-ai-visibility-brand-overview";return wp.element.createElement("div",{className:u},wp.element.createElement("div",{className:"".concat(u,"__stats")},wp.element.createElement(he,{className:"".concat(u,"__stat-card ").concat(u,"__stat-card--score"),icon:" rm-icon-ai-visibility",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),value:null!==(null==s?void 0:s.score)&&void 0!==(null==s?void 0:s.score)?"".concat(s.score,"/100"):m,tooltip:(0,r.__)("AI Visibility Score for this brand across AI platforms.","seo-by-rank-math"),analysis:null==s?void 0:s.analysis}),wp.element.createElement(he,{className:"".concat(u,"__stat-card ").concat(u,"__stat-card--mentions"),icon:" rm-icon-comments",label:(0,r.__)("Recent Mentions","seo-by-rank-math"),value:null!==(a=null==s?void 0:s.mentions)&&void 0!==a?a:m,tooltip:(0,r.__)("Total brand mentions across AI-generated content.","seo-by-rank-math"),analysis:null==s?void 0:s.analysis}),wp.element.createElement(he,{className:"".concat(u,"__stat-card ").concat(u,"__stat-card--sentiment"),icon:"smiley",label:(0,r.__)("Avg Sentiments","seo-by-rank-math"),value:null!==(null==s?void 0:s.avg_sentiment)&&void 0!==(null==s?void 0:s.avg_sentiment)?"".concat((0,i.round)(s.avg_sentiment),"%"):m,tooltip:(0,r.__)("Average sentiment score across all AI mentions of this brand.","seo-by-rank-math"),analysis:null==s?void 0:s.analysis}),wp.element.createElement(he,{className:"".concat(u,"__stat-card ").concat(u,"__stat-card--competitor"),icon:"awards",label:(0,r.__)("Top Competitor","seo-by-rank-math"),value:d||m,tooltip:(0,r.__)("The competitor brand with the highest share of voice in AI mentions.","seo-by-rank-math"),analysis:null==s?void 0:s.analysis})))};var za=n(5607),Ma={};Ma.styleTagTransform=ie(),Ma.setAttributes=ee(),Ma.insert=J().bind(null,"head"),Ma.domAPI=K(),Ma.insertStyleElement=ne();$()(za.A,Ma);za.A&&za.A.locals&&za.A.locals;function Da(e){return Da="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},Da(e)}function Ba(e){return function(e){if(Array.isArray(e))return Wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qa(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 La(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 Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach(function(t){qa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Da(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Da(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Da(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(){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 Ga(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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]())):(Ga(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,Ga(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ga(d,"constructor",c),Ga(c,"constructor",s),s.displayName="GeneratorFunction",Ga(c,i,"GeneratorFunction"),Ga(d),Ga(d,i,"Generator"),Ga(d,a,function(){return this}),Ga(d,"toString",function(){return"[object Generator]"}),(Fa=function(){return{w:r,m:u}})()}function Ga(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ga=function(e,t,n,a){function r(t,n){Ga(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))},Ga(e,t,n,a)}function Va(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 Ua(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Va(r,a,i,o,l,"next",e)}function l(e){Va(r,a,i,o,l,"throw",e)}o(void 0)})}}function Ha(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)||Qa(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 Qa(e,t){if(e){if("string"==typeof e)return Wa(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)?Wa(e,t):void 0}}function Wa(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 $a=function(e){var t=e.brandId,n="rank-math-ai-visibility-queries-table",i=Ha((0,a.useState)([]),2),o=i[0],s=i[1],c=Ha((0,a.useState)([]),2),m=c[0],d=c[1],u=Ha((0,a.useState)(!0),2),b=u[0],p=u[1],h=Ha((0,a.useState)(null),2),f=h[0],y=h[1],v=Ha((0,a.useState)(!1),2),_=v[0],g=v[1],k=Ha((0,a.useState)(!1),2),w=k[0],x=k[1],E=(0,a.useCallback)(Ua(Fa().m(function e(){var n,a;return Fa().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return s([]),p(!1),e.a(2);case 1:return p(!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,p(!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=Ua(Fa().m(function e(n,a){return Fa().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 Ba(e.map(function(e){return e.id===n.id?Ra(Ra({},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 Ba(e.map(function(e){return e.id===n.id?Ra(Ra({},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)(Ua(Fa().m(function e(){var n;return Fa().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),p(!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),p(!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(ue,{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:b},(0,r.__)("Regenerate baseline queries","seo-by-rank-math"))),b&&wp.element.createElement(l.TableSkeleton,{columns:4,rows:5}),!b&&0===o.length&&wp.element.createElement(ve,{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")}),!b&&o.length>0&&wp.element.createElement(Bt,{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 bt(e.created_at)}},{key:"updated_at",label:(0,r.__)("Last updated","seo-by-rank-math"),render:function(e){var t;return bt(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(He,{value:!1!==e.enabled,onChange:function(t){return A(e,t)},isLoading:f===e.id})}}],rows:o,rowKey:"id"}),_&&wp.element.createElement(Fe,{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 Ya=n(6350),Ka={};Ka.styleTagTransform=ie(),Ka.setAttributes=ee(),Ka.insert=J().bind(null,"head"),Ka.domAPI=K(),Ka.insertStyleElement=ne();$()(Ya.A,Ka);Ya.A&&Ya.A.locals&&Ya.A.locals;var Za=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]},Ja=function(e){var t,n,a=e.name;return wp.element.createElement("span",{className:"rank-math-ai-visibility-competitors-table__avatar",style:{backgroundColor:Za(a)},"aria-hidden":"true"},null!==(t=null==a||null===(n=a.charAt(0))||void 0===n?void 0:n.toUpperCase())&&void 0!==t?t:"?")},Xa=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(ve,{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(Ja,{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(Ae,{score:e.avg_sentiment})}},{key:"mentions",label:(0,r.__)("Mentions","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement(It,{value:null!==(t=e.mentions)&&void 0!==t?t:null,variant:"mentions"})}}];return wp.element.createElement("div",{className:c},wp.element.createElement(Bt,{columns:m,rows:s,rowKey:"name"}))};Xa.displayName="CompetitorsTable";const ei=Xa;var ti=n(385),ni={};ni.styleTagTransform=ie(),ni.setAttributes=ee(),ni.insert=J().bind(null,"head"),ni.domAPI=K(),ni.insertStyleElement=ne();$()(ti.A,ni);ti.A&&ti.A.locals&&ti.A.locals;function ai(e){return ai="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},ai(e)}function ii(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 ri(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)?ri(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 ri(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 oi(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 li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach(function(t){si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ai(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=ai(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ai(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ci=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;return(null!==(e=null==n?void 0:n.query_results)&&void 0!==e?e:[]).map(function(e,t){return function(e,t,n){var a,i,r,o,l;return li(li({},e),{},{id:null!==(a=e.query_id)&&void 0!==a?a:t,query:null!==(i=e.query_text)&&void 0!==i?i:"",response:null!==(r=e.response)&&void 0!==r?r:"",created_at:null!==(o=null==n?void 0:n.finished_at)&&void 0!==o?o:null,duration_seconds:null!==(l=null==n?void 0:n.duration_seconds)&&void 0!==l?l:null,status:e.found?"success":"partial",model:null})}(e,t,null==n?void 0:n.analysis)})},[n]),c=ii((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(xt,{entries:s,selectedEntryId:m,onSelectEntry:d})):wp.element.createElement("div",{className:u},wp.element.createElement(ve,{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")}))};ci.displayName="RunDetail";const mi=ci;var di=n(4629),ui={};ui.styleTagTransform=ie(),ui.setAttributes=ee(),ui.insert=J().bind(null,"head"),ui.domAPI=K(),ui.insertStyleElement=ne();$()(di.A,ui);di.A&&di.A.locals&&di.A.locals;function bi(e){return bi="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},bi(e)}function pi(){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 hi(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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]())):(hi(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,hi(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,hi(d,"constructor",c),hi(c,"constructor",s),s.displayName="GeneratorFunction",hi(c,i,"GeneratorFunction"),hi(d),hi(d,i,"Generator"),hi(d,a,function(){return this}),hi(d,"toString",function(){return"[object Generator]"}),(pi=function(){return{w:r,m:u}})()}function hi(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}hi=function(e,t,n,a){function r(t,n){hi(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))},hi(e,t,n,a)}function fi(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 yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach(function(t){vi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=bi(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(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 gi(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 ki(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)?ki(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 ki(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 wi=[{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(Ia,{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($a,{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(ei,{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(mi,{insights:t,loading:n})}}];const xi=function(e){var t,n,i=e.brandId,s=e.onBack,c=e.locales,m=void 0===c?[]:c,d=s||wa,u=va(function(){return j(i)},[i],{skip:!i,errorMessage:(0,r.__)("Failed to load brand.","seo-by-rank-math")}),b=u.data,p=u.loading,h=u.error,f=u.setData,v=null!==(t=null==b?void 0:b.brand)&&void 0!==t?t:null,_=va(function(){return T(i)},[i],{skip:!i,errorMessage:(0,r.__)("Failed to load insights.","seo-by-rank-math")}),g=_.data,k=_.loading,w=null!==(n=null==g?void 0:g.insights)&&void 0!==n?n:null,x=gi((0,a.useState)(function(){return xa()}),2),E=x[0],A=x[1],S=gi((0,a.useState)(!1),2),N=S[0],C=S[1],P=gi((0,a.useState)(!1),2),I=P[0],z=P[1],M=gi((0,a.useState)(null),2),D=M[0],B=M[1],L=function(){var e,t=(e=pi().m(function e(t){var n,a,o,l;return pi().w(function(e){for(;;)switch(e.p=e.n){case 0:return z(!0),B(null),e.p=1,e.n=2,O(i,t);case 2:a=e.v,f({brand:null!==(n=null==a?void 0:a.brand)&&void 0!==n?n:yi(yi({},v),t)}),C(!1),e.n=4;break;case 3:e.p=3,l=e.v,B(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,z(!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){_i(r,a,i,o,l,"next",e)}function l(e){_i(r,a,i,o,l,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}(),R="rank-math-ai-visibility-brand-detail";return(0,a.useEffect)(function(){var e=function(){return A(xa())};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]),p?wp.element.createElement(l.TableSkeleton,{columns:3,rows:4}):h||!v?wp.element.createElement("div",{className:"".concat(R," ").concat(R,"--error")},wp.element.createElement("p",null,h||(0,r.__)("Brand not found.","seo-by-rank-math")),wp.element.createElement("button",{className:"button",onClick:d},(0,r.__)("← Back to Dashboard","seo-by-rank-math"))):wp.element.createElement("div",{className:R},wp.element.createElement(Aa,{onBack:d,onExport:function(){return Ea(null==v?void 0:v.id)}}),wp.element.createElement("div",{className:"".concat(R,"__content")},wp.element.createElement(Ca,{brand:v,onEdit:function(){return C(!0)}}),wp.element.createElement(o.TabPanel,{key:E,className:"rank-math-tabs ".concat(R,"__tabs"),activeClass:"is-active",initialTabName:E,tabs:wi,onSelect:function(e){!function(e){if(xa()!==e){var t=(0,y.addQueryArgs)(window.location.href,{brand_tab:e});window.history.pushState({},"",t)}}(e),A(e)}},function(e){return wp.element.createElement("div",{className:"".concat(R,"__tab ").concat(R,"__tab--").concat(e.name)},(0,a.createElement)(e.view,{brand:v,insights:w,insightsLoading:k}))})),N&&wp.element.createElement(hn,{brand:v,onSave:L,onClose:function(){C(!1),B(null)},isSaving:I,apiError:D,locales:m}))};var Ei=n(9921),Ai={};Ai.styleTagTransform=ie(),Ai.setAttributes=ee(),Ai.insert=J().bind(null,"head"),Ai.domAPI=K(),Ai.insertStyleElement=ne();$()(Ei.A,Ai);Ei.A&&Ei.A.locals&&Ei.A.locals;function Si(){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 Ni(c,"_invoke",function(n,a,i){var r,l,s,c=0,m=i||[],d=!1,u={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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]())):(Ni(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,Ni(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ni(d,"constructor",c),Ni(c,"constructor",s),s.displayName="GeneratorFunction",Ni(c,i,"GeneratorFunction"),Ni(d),Ni(d,i,"Generator"),Ni(d,a,function(){return this}),Ni(d,"toString",function(){return"[object Generator]"}),(Si=function(){return{w:r,m:u}})()}function Ni(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ni=function(e,t,n,a){function r(t,n){Ni(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))},Ni(e,t,n,a)}function ji(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 Oi(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){ji(r,a,i,o,l,"next",e)}function l(e){ji(r,a,i,o,l,"throw",e)}o(void 0)})}}function Ci(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 Pi(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)?Pi(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 Pi(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 Ti={starter:1,creator:10,expert:50},Ii=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 zi=function(e){var t=e.locales,n=void 0===t?[]:t,l=e.onBrandCreated,s=void 0===l?function(){}:l,c=Ci((0,a.useState)(ka),2),m=c[0],d=c[1];(0,a.useEffect)(function(){var e=function(){return d(ka())};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]);var u=Q(),h=u.brands,f=u.summary,v=u.loading,_=u.error,g=u.handleSearch,k=u.handleAddBrand,w=u.handleUpdateBrand,x=u.handleDisableBrand,E=u.handleEnableBrand,A=Ci((0,a.useState)(!1),2),S=A[0],N=A[1],O=Ci((0,a.useState)(null),2),C=O[0],P=O[1],T=Ci((0,a.useState)(!1),2),I=T[0],z=T[1],M=Ci((0,a.useState)(null),2),D=M[0],B=M[1],L=Ci((0,a.useState)(null),2),R=L[0],q=L[1],F=Ci((0,a.useState)("delete"),2),G=F[0],V=F[1],U=Ci((0,a.useState)(!1),2),H=U[0],W=U[1],$=Ci((0,a.useState)(null),2),Y=$[0],K=$[1],Z=Ci((0,a.useState)(!1),2),J=Z[0],X=Z[1],ee=Ci((0,a.useState)(""),2),te=ee[0],ne=ee[1],ae=(0,a.useRef)(!0);(0,a.useEffect)(function(){if(!ae.current){var e=setTimeout(function(){g(te.trim())},300);return function(){return clearTimeout(e)}}ae.current=!1},[te,g]);var ie=!!te.trim(),re=!v&&0===h.length&&!ie,oe=function(){q(null),K(null)},le="enable"===G?(0,r.__)("Activate brand?","seo-by-rank-math"):(0,r.__)("Deactivate brand?","seo-by-rank-math"),se=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):""}(R,G),ce=function(){N(!1),P(null),B(null)},me=(0,i.toLower)((0,i.get)(window,"rankMath.aiVisibility.plan","")),de=(0,i.get)(Ti,me,null),ue=function(){null!==de&&h.length>=de?X(!0):(P(null),N(!0))},be=function(){var e=Oi(Si().m(function e(t){var n;return Si().w(function(e){for(;;)switch(e.p=e.n){case 0:if(B(null),z(!0),e.p=1,!C){e.n=3;break}return e.n=2,w(C.id,t);case 2:e.n=5;break;case 3:return e.n=4,k(t);case 4:s((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,B((null==n?void 0:n.message)||(0,r.__)("Something went wrong. Please try again.","seo-by-rank-math"));case 7:return e.p=7,z(!1),e.f(7);case 8:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=Oi(Si().m(function e(){var t,n;return Si().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R){e.n=1;break}return e.a(2);case 1:if(W(!0),K(null),e.p=2,"disable"!==G){e.n=4;break}return e.n=3,x(R.id);case 3:e.n=5;break;case 4:if("enable"!==G){e.n=5;break}return e.n=5,E(R.id);case 5:oe(),e.n=7;break;case 6:e.p=6,n=e.v,K(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,W(!1),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(){return e.apply(this,arguments)}}();if(m)return wp.element.createElement(xi,{brandId:m,onBack:function(){wa(),d(null)},locales:n});var fe="rank-math-ai-visibility-dashboard";return wp.element.createElement("div",{className:fe},_&&wp.element.createElement(o.Notice,{status:"error",isDismissible:!1},_),wp.element.createElement("div",{className:"".concat(fe,"__stats")},wp.element.createElement(he,{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:Ii({loading:v,hasBrands:h.length>0,raw:null==f?void 0:f.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(he,{className:"rank-math-ai-visibility-stat-card--analyses",icon:b,label:(0,r.__)("Analyses in last 24h","seo-by-rank-math"),value:Ii({loading:v,hasBrands:h.length>0,raw:null==f?void 0:f.analyses_last_24h}),tooltip:(0,r.__)("Total analysis runs completed in the past 24 hours.","seo-by-rank-math")}),wp.element.createElement(he,{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:Ii({loading:v,hasBrands:h.length>0,raw:null==f?void 0:f.avg_mentions_per_brand}),tooltip:(0,r.__)("Average number of AI-generated mentions across all tracked brands.","seo-by-rank-math")})),re&&wp.element.createElement("div",{className:"".concat(fe,"__empty")},wp.element.createElement(ve,{icon:p,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:ue})),!re&&wp.element.createElement("div",{className:"".concat(fe,"__table-card")},wp.element.createElement(ua,{searchValue:te,onSearchChange:ne,onAdd:ue}),wp.element.createElement(ha,{brands:h,loading:v,onView:function(e){var t,n;t=e.id,n=(0,y.addQueryArgs)(window.location.href,{brand:t}),window.history.pushState({},"",n),d(e.id)},onEdit:function(){var e=Oi(Si().m(function e(t){var n;return Si().w(function(e){for(;;)switch(e.p=e.n){case 0:return P(t),N(!0),e.p=1,e.n=2,j(t.id);case 2:null!=(n=e.v)&&n.brand&&P(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){q(e),V("inactive"===(null==e?void 0:e.status)?"enable":"disable")}(e)}})),S&&wp.element.createElement(hn,{brand:C,onSave:be,onClose:ce,isSaving:I,apiError:D,locales:n}),J&&wp.element.createElement(sa,{plan:me,isTopTier:"expert"===me,onClose:function(){return X(!1)}}),R&&wp.element.createElement(Fe,{title:le,message:se,confirmLabel:"enable"===G?(0,r.__)("Activate","seo-by-rank-math"):(0,r.__)("Deactivate","seo-by-rank-math"),isDestructive:"disable"===G,isProcessing:H,error:Y,onConfirm:pe,onCancel:oe}))};var Mi=n(834),Di={};Di.styleTagTransform=ie(),Di.setAttributes=ee(),Di.insert=J().bind(null,"head"),Di.domAPI=K(),Di.insertStyleElement=ne();$()(Mi.A,Di);Mi.A&&Mi.A.locals&&Mi.A.locals;function Bi(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)||Ri(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 Li(e){return function(e){if(Array.isArray(e))return qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ri(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 Ri(e,t){if(e){if("string"==typeof e)return qi(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)?qi(e,t):void 0}}function qi(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 Fi=[{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"}],Gi=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(Li(s))},[s]),d=t.brandIds&&t.brandIds[0]?String(t.brandIds[0]):"",u=Bi((0,a.useState)(t.search||""),2),b=u[0],p=u[1];(0,a.useEffect)(function(){p(t.search||"")},[t.search]),(0,a.useEffect)(function(){var e=setTimeout(function(){n({search:b})},300);return function(){return clearTimeout(e)}},[b,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:Fi,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:b,onChange:function(e){return p(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(mt,{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(mt,{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")}))))};Gi.displayName="AnalysesFilterBar";const Vi=Gi;var Ui=n(5517),Hi={};Hi.styleTagTransform=ie(),Hi.setAttributes=ee(),Hi.insert=J().bind(null,"head"),Hi.domAPI=K(),Hi.insertStyleElement=ne();$()(Ui.A,Hi);Ui.A&&Ui.A.locals&&Ui.A.locals;const Qi=(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,b=e.onPageChange,p=void 0===b?function(){}:b,h=e.onPerPageChange,f=void 0===h?function(){}:h,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(Nt,{value:e}):!n&&"−",n&&wp.element.createElement(Qt,{variant:t.status}))}},{key:"id",label:(0,r.__)("Action","seo-by-rank-math"),render:function(e,t){return t.started_at?wp.element.createElement(ce,{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:p,onRowsPerPageChange:f})});var Wi=n(4373),$i={};$i.styleTagTransform=ie(),$i.setAttributes=ee(),$i.insert=J().bind(null,"head"),$i.domAPI=K(),$i.insertStyleElement=ne();$()(Wi.A,$i);Wi.A&&Wi.A.locals&&Wi.A.locals;function Yi(e){return Yi="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},Yi(e)}function Ki(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 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}}(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 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}function Ji(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 Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(n),!0).forEach(function(t){er(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function er(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Yi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Yi(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(e){var t,n,i,s,c,m,d,u,b=e.row,p=e.onBack,h="rank-math-ai-visibility-analysis-run-detail",f=va(function(){return T(b.id)},[null==b?void 0:b.id],{skip:!(null!=b&&b.id),errorMessage:(0,r.__)("Failed to load run detail.","seo-by-rank-math")}),y=f.data,v=f.loading,_=f.error,g=null!==(t=null==y?void 0:y.insights)&&void 0!==t?t:null,k=Ki((0,a.useState)(null),2),w=k[0],x=k[1],E=(null!==(n=null==g?void 0:g.query_results)&&void 0!==n?n:[]).map(function(e,t){return function(e,t,n){var a,i,r,o,l;return Xi(Xi({},e),{},{id:null!==(a=e.query_id)&&void 0!==a?a:t,query:null!==(i=e.query_text)&&void 0!==i?i:"",response:null!==(r=e.response)&&void 0!==r?r:"",created_at:null!==(o=null==n?void 0:n.finished_at)&&void 0!==o?o:null,duration_seconds:null!==(l=null==n?void 0:n.duration_seconds)&&void 0!==l?l:null,model:null})}(e,t,null==g?void 0:g.analysis)}),A=null!==(i=null==g||null===(s=g.analysis)||void 0===s?void 0:s.duration_seconds)&&void 0!==i?i:0,S=A?"".concat(A,"s"):"—",N=null!==(c=null==b?void 0:b.started_at)&&void 0!==c?c:null==g||null===(m=g.analysis)||void 0===m?void 0:m.started_at;return wp.element.createElement("div",{className:h},wp.element.createElement(Ft,{onBack:p,title:(0,r.__)("Analysis Run Detail","seo-by-rank-math"),actions:wp.element.createElement(ce,{variant:"secondary",onClick:function(){return Ea(b.id)}},(0,r.__)("Export Report","seo-by-rank-math"))}),wp.element.createElement("div",{className:"".concat(h,"__content")},wp.element.createElement("div",{className:"".concat(h,"__stat-cards")},wp.element.createElement(he,{compact:!0,icon:" rm-icon-target",label:(0,r.__)("Target Brand","seo-by-rank-math"),value:(null==b?void 0:b.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==g?void 0:g.analysis}),wp.element.createElement(he,{compact:!0,icon:"clock",label:(0,r.__)("Duration & Timing","seo-by-rank-math"),value:S,sub:(d=N,u=dt(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==g?void 0:g.analysis})),_&&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(h,"__table")},wp.element.createElement("div",{className:"".concat(h,"__table-row ").concat(h,"__table-row--header")},wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__col--query")},(0,r.__)("Query text","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__col--sentiment")},(0,r.__)("Sentiment","seo-by-rank-math")),wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__col--action")},(0,r.__)("Action","seo-by-rank-math"))),0===E.length?wp.element.createElement(ve,{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")}):E.map(function(e){var t,n,a;return wp.element.createElement("div",{key:e.id,className:"".concat(h,"__table-row")},wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__col--query")},e.query||"—"),wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__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(Ae,{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(Ae,{score:null})))),wp.element.createElement("div",{className:"".concat(h,"__col ").concat(h,"__col--action")},wp.element.createElement(ce,{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(at,{entry:w,onClose:function(){return x(null)}})))};tr.displayName="AnalysisRunDetail";const nr=tr;var ar=n(3111),ir={};ir.styleTagTransform=ie(),ir.setAttributes=ee(),ir.insert=J().bind(null,"head"),ir.domAPI=K(),ir.insertStyleElement=ne();$()(ar.A,ir);ar.A&&ar.A.locals&&ar.A.locals;function rr(e){return rr="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},rr(e)}function or(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 lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach(function(t){sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=rr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(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 mr(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)?mr(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 mr(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 dr={brandIds:[],status:"",search:"",dateFrom:"",dateTo:""},ur=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 br=function(){var e=Q(),t=e.brands,n=e.loading,i=e.error,l=cr((0,a.useState)(dr),2),s=l[0],c=l[1],m=cr((0,a.useState)({page:1,perPage:10}),2),d=m[0],u=m[1],b=cr((0,a.useState)(null),2),p=b[0],h=b[1],f=(0,a.useMemo)(function(){return t.map(function(e){return{label:e.name,value:e.id}})},[t]),v=(0,a.useMemo)(function(){return t.map(ur).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]),_=v.length,g=Math.max(1,Math.ceil(_/d.perPage)),k=(0,a.useMemo)(function(){var e=(d.page-1)*d.perPage;return v.slice(e,e+d.perPage)},[v,d]),w=(0,a.useCallback)(function(e){c(function(t){return lr(lr({},t),e)}),u(function(e){return lr(lr({},e),{},{page:1})})},[]),x=(0,a.useCallback)(function(){c(dr),u(function(e){return lr(lr({},e),{},{page:1})})},[]);if((0,a.useEffect)(function(){!function(e,t){var n={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,aiv_page:t.page>1?t.page:void 0,aiv_per:10!==t.perPage?t.perPage:void 0},a=(0,y.addQueryArgs)(window.location.href,n);window.history.replaceState({},"",a)}(s,d)},[s,d]),p)return wp.element.createElement(nr,{row:p,onBack:function(){return h(null)}});var E="rank-math-ai-visibility-analyses";return wp.element.createElement("div",{className:E},wp.element.createElement(Ie,{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(E,"__card")},wp.element.createElement(Vi,{filters:s,onFilterChange:w,onClearFilters:x,brandOptions:f}),wp.element.createElement(Qi,{items:k,loading:n,pagination:lr(lr({},d),{},{total:_,pages:g}),onViewDetail:function(e){return h(e)},onPageChange:function(e){return u(function(t){return lr(lr({},t),{},{page:Math.max(1,e)})})},onPerPageChange:function(e){return u({page:1,perPage:Math.max(1,e)})}})))};const pr=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 hr=n(7377),fr={};fr.styleTagTransform=ie(),fr.setAttributes=ee(),fr.insert=J().bind(null,"head"),fr.domAPI=K(),fr.insertStyleElement=ne();$()(hr.A,fr);hr.A&&hr.A.locals&&hr.A.locals;function yr(e){return yr="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},yr(e)}function vr(){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:b,f:b.bind(e,4),d:function(t,n){return r=t,l=0,s=e,u.n=n,o}};function b(n,a){for(l=n,s=a,t=0;!d&&c&&!i&&t<m.length;t++){var i,r=m[t],b=u.p,p=r[2];n>3?(i=p===a)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=b&&((i=n<2&&b<r[1])?(l=0,u.v=a,u.n=r[1]):b<p&&(i=n<3||r[0]>a||a>p)&&(r[4]=n,r[5]=a,u.n=p,l=0))}if(i||n>1)return o;throw d=!0,a}return function(i,m,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===m&&b(m,p),l=m,s=p;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(u.n=-1),b(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]"}),(vr=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 gr(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 kr(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){gr(r,a,i,o,l,"next",e)}function l(e){gr(r,a,i,o,l,"throw",e)}o(void 0)})}}function wr(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 xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach(function(t){Er(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Er(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=yr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(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)||Nr(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){return function(e){if(Array.isArray(e))return jr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nr(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 Nr(e,t){if(e){if("string"==typeof e)return jr(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)?jr(e,t):void 0}}function jr(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 Or=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")))},Cr=function(){var e,t,n,s,c="rank-math-ai-visibility-reports",m=Q(),d=m.brands,u=m.summary,b=(0,r.__)("Select Brand","seo-by-rank-math"),p=(0,a.useMemo)(function(){return[{label:b,value:""}].concat(Sr(d.map(function(e){return{label:e.name,value:String(e.id)}})))},[d]),h=Ar((0,a.useState)(function(){return{brandId:(e=(0,y.getQueryArg)(window.location.href,"report_brand"),e?String(e):"")};var e}),2),f=h[0],v=h[1],_=Ar((0,a.useState)(null),2),g=_[0],k=_[1],w=Ar((0,a.useState)(null),2),x=w[0],E=w[1],A=Ar((0,a.useState)(!1),2),S=A[0],N=A[1],j=Ar((0,a.useState)(null),2),O=j[0],C=j[1],P=(0,a.useRef)(!1);(0,a.useEffect)(function(){!P.current&&f.brandId&&d.length>0&&(P.current=!0,I())},[d]);var I=(0,a.useCallback)(kr(vr().m(function e(){var t,n,a,i,o,l,s,c,m,b,p,h,y,v,_,g,w,x;return vr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(N(!0),C(null),E(d.find(function(e){return String(e.id)===f.brandId})||null),e.p=1,i=(f.brandId?d.filter(function(e){return String(e.id)===f.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}}),!f.brandId||!o.length){e.n=5;break}return e.p=2,e.n=3,T(f.brandId);case 3:b=e.v,o[0].competitors=(null!==(l=null==b||null===(s=b.insights)||void 0===s?void 0:s.competitors)&&void 0!==l?l:[]).map(function(e){return e.name}),o[0].queries=(null!==(c=null==b||null===(m=b.insights)||void 0===m?void 0:m.query_results)&&void 0!==c?c:[]).map(function(e){var t,n;return{query:null!==(t=e.query_text)&&void 0!==t?t:"",response:null!==(n=e.response)&&void 0!==n?n:""}}),e.n=5;break;case 4:e.p=4,e.v;case 5:p=function(e){return o.reduce(function(t,n){var a;return t+(null!==(a=n[e])&&void 0!==a?a:0)},0)},h={summary:{score:f.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(p("sentiment")/o.length):null,total_mentions:p("mentions"),total_citations:p("citations")},details:o},k(h),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,C((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]])})),[f,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(Ie,{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:f.brandId,options:p,onChange:function(e){var t;(t="brandId",function(e){return v(function(n){return xr(xr({},n),{},Er({},t,e))})})(e),e||(k(null),E(null),C(null))},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),wp.element.createElement(ue,{className:"".concat(c,"__generate-btn"),onClick:I,isLoading:S,loadingLabel:(0,r.__)("Generating…","seo-by-rank-math"),disabled:!f.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(ce,{variant:"secondary",onClick:function(){if(pr(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(Or,{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(Or,{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(Or,{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(Or,{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(Bt,{columns:[{key:"score",label:(0,r.__)("AI Visibility Score","seo-by-rank-math"),render:function(e){var t;return wp.element.createElement(Ct,{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(ke,{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(Ae,{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(It,{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(It,{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 ut(e.date)}}],rows:M,rowKey:function(e,t){var n;return null!==(n=e.id)&&void 0!==n?n:t}}))))))};Cr.displayName="Reports";const Pr=Cr;var Tr=n(3484),Ir={};Ir.styleTagTransform=ie(),Ir.setAttributes=ee(),Ir.insert=J().bind(null,"head"),Ir.domAPI=K(),Ir.insertStyleElement=ne();$()(Tr.A,Ir);Tr.A&&Tr.A.locals&&Tr.A.locals;var zr=function(){},Mr=[{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"}],Dr=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(he,{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(he,{className:"rank-math-ai-visibility-stat-card--analyses",icon:b,label:(0,r.__)("Analyses in last 24h","seo-by-rank-math"),value:0}),wp.element.createElement(he,{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(ua,{searchValue:"",onSearchChange:zr,onAdd:zr}),wp.element.createElement(ha,{brands:Mr,loading:!1,onView:zr,onEdit:zr,onDisable:zr})))};Dr.displayName="GatedPreview";const Br=Dr;var Lr=n(2634),Rr={};Rr.styleTagTransform=ie(),Rr.setAttributes=ee(),Rr.insert=J().bind(null,"head"),Rr.domAPI=K(),Rr.insertStyleElement=ne();$()(Lr.A,Rr);Lr.A&&Lr.A.locals&&Lr.A.locals;const qr=function(e){var t=e.activateUrl,n=void 0===t?"":t,a=e.isSiteUrlValid,i=void 0===a||a;return wp.element.createElement(React.Fragment,null,wp.element.createElement("p",null,(0,r.__)("Connect your account to start tracking your brand's AI visibility.","seo-by-rank-math"),wp.element.createElement("br",null),wp.element.createElement("a",{href:$t("ai-visibility-connect","AI Visibility Connect"),target:"_blank",rel:"noopener noreferrer"},(0,r.__)("Need help? View tutorial →","seo-by-rank-math"))),wp.element.createElement(l.InvalidSiteUrlNotice,{isSiteUrlValid:i}),wp.element.createElement("div",{className:"center"},wp.element.createElement(l.Button,{variant:"animate",href:n,className:"button-connect"},(0,r.__)("Connect Now","seo-by-rank-math"))),wp.element.createElement("p",{className:"".concat("rank-math-ai-visibility-account-not-registered","-note")},(0,r.__)("Takes less than 30 seconds to get started","seo-by-rank-math")))};n.dn(qr);const Fr=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",b=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},b)),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(qr,{activateUrl:c,isSiteUrlValid:m}))))};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 Vr(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)?Vr(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 Vr(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(Fr);const Ur=function(e){var t=e.config,n=void 0===t?{}:t,s=Gr((0,a.useState)(ga(_a)),2),c=s[0],m=s[1],d=Gr((0,a.useState)(null),2),u=d[0],b=d[1],p=function(e){return b(e)};(0,a.useEffect)(function(){var e=function(){m(ga(_a))};return window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]);var h=rankMath.aiVisibility,f=h.isSiteConnected,v=h.isPro,_=h.plan,g=h.locales,k=void 0===g?[]:g,w=(0,i.includes)(["","free"],(0,i.toLower)(_)),x=f&&w;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:_a,title:(0,r.__)("Dashboard","seo-by-rank-math"),className:"rank-math-ai-visibility-dashboard-tab rank-math-tab",view:zi},{name:"analyses",title:(0,r.__)("Analyses & Transcripts","seo-by-rank-math"),className:"rank-math-ai-visibility-analyses-tab rank-math-tab",view:br},{name:"reports",title:(0,r.__)("Reports & Export","seo-by-rank-math"),className:"rank-math-ai-visibility-reports-tab rank-math-tab",view:Pr}],onSelect:function(e){!function(e){if(ga()!==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},!f&&wp.element.createElement(Fr,{config:n}),f&&(x?wp.element.createElement(Br,null):(0,a.createElement)(e.view,{locales:k,onBrandCreated:p})))}),x&&(v?wp.element.createElement(Jn,null):wp.element.createElement(Cn,null))),u&&wp.element.createElement(o.Snackbar,{onRemove:function(){return b(null)}},u))};var Hr=n(9717),Qr={};Qr.styleTagTransform=ie(),Qr.setAttributes=ee(),Qr.insert=J().bind(null,"head"),Qr.domAPI=K(),Qr.insertStyleElement=ne();$()(Hr.A,Qr);Hr.A&&Hr.A.locals&&Hr.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(Ur,{config:n}))}})}();
保存
返回