@canonry/canonry 7.99.0 → 7.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -16
- package/assets/agent-workspace/AGENTS.md +13 -6
- package/assets/agent-workspace/skills/aero/SKILL.md +45 -26
- package/assets/agent-workspace/skills/aero/references/agent-operations.md +47 -12
- package/assets/agent-workspace/skills/aero/references/memory-patterns.md +1 -1
- package/assets/agent-workspace/skills/aero/references/orchestration.md +9 -9
- package/assets/agent-workspace/skills/aero/references/reporting.md +8 -4
- package/assets/agent-workspace/skills/aero/references/seo-analysis.md +2 -2
- package/assets/agent-workspace/skills/aero/references/site-health.md +23 -22
- package/assets/agent-workspace/skills/aero/soul.md +2 -2
- package/assets/agent-workspace/skills/canonry/SKILL.md +37 -7
- package/assets/agent-workspace/skills/canonry/references/aeo-analysis.md +14 -11
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +122 -53
- package/assets/assets/AccessControls-DzO5Y8v9.js +2 -0
- package/assets/assets/AgentSetupPage-DWWovaCw.js +36 -0
- package/assets/assets/AuditHistoryPanel-BG-n1i8c.js +1 -0
- package/assets/assets/BacklinksPage-D6wdOMXt.js +1 -0
- package/assets/assets/ChartPrimitives-CtKdkn64.js +3 -0
- package/assets/assets/Hint-3TTi0MgX.js +1 -0
- package/assets/assets/{HistoryPage-DNE76LNh.js → HistoryPage-B_ReWHbL.js} +1 -1
- package/assets/assets/InfoTooltip-D29JcNMW.js +1 -0
- package/assets/assets/MeasurementPropertyPage-zdyLL-kl.js +4 -0
- package/assets/assets/ProjectPage-KZNKXR4w.js +15 -0
- package/assets/assets/RunsPage-DxN0xXQh.js +1 -0
- package/assets/assets/ServerTrafficSection-CvISj5pf.js +40 -0
- package/assets/assets/SettingsPage-CpRpBlMV.js +1 -0
- package/assets/assets/ToneBadge-DcwPruHr.js +60 -0
- package/assets/assets/TrafficPage-zk6zMZyz.js +1 -0
- package/assets/assets/TrafficSourceDetailPage-DJtsI06Z.js +1 -0
- package/assets/assets/{account-context-j3asaevn.js → account-context-CoJVqEXZ.js} +1 -1
- package/assets/assets/{agent-trust-copy--U_DFYQE.js → agent-trust-copy-BIXDMtBm.js} +1 -1
- package/assets/assets/{card-CQAQ-c3g.js → card-Dwmc7Srx.js} +1 -1
- package/assets/assets/index-fh1T5JQY.css +1 -0
- package/assets/assets/index-mqc2mWUR.js +42 -0
- package/assets/assets/query-client-Tg1fZu4i.js +1 -0
- package/assets/assets/react-query-BqcEEfEO.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BAq_-iP1.js → react-sigma_core.esm.min-D1q0DR_j.js} +3 -3
- package/assets/assets/{server-traffic-jKXLZyeC.js → server-traffic-Djnh_9f0.js} +1 -1
- package/assets/assets/service-BQjBdN4O.js +1 -0
- package/assets/assets/use-tooltip-position-BOzm-6Wy.js +1 -0
- package/assets/assets/vendor-lucide-iE5MEh2-.js +1 -0
- package/assets/assets/{vendor-markdown-BDQ1GKGP.js → vendor-markdown-BBGbNklj.js} +1 -1
- package/assets/assets/{vendor-radix-BGYlvS2l.js → vendor-radix-DKCt5Z_h.js} +1 -1
- package/assets/assets/{vendor-recharts-DhEHcK3G.js → vendor-recharts-D3MLFU3q.js} +1 -1
- package/assets/assets/{vendor-tanstack-BNuZ37rE.js → vendor-tanstack-B90HW50P.js} +2 -2
- package/assets/index.html +16 -15
- package/dist/{ads-EYDUTG4U.js → ads-FVPZ6R6Z.js} +3 -3
- package/dist/{agent-KTK2IDB3.js → agent-2LPU2E5I.js} +7 -7
- package/dist/{agent-ask-KPZOH6RY.js → agent-ask-5ODREK6D.js} +3 -3
- package/dist/{agent-conversations-BCWA4JJL.js → agent-conversations-SNLOOJEM.js} +3 -3
- package/dist/{agent-journeys-UBVLQ7JV.js → agent-journeys-XDXVL6PK.js} +3 -3
- package/dist/{agent-memory-24SYEGEX.js → agent-memory-NKAI2S3U.js} +3 -3
- package/dist/{agent-providers-E7EWFE5P.js → agent-providers-R5L7A72X.js} +3 -3
- package/dist/{agent-transcript-QGJ45NW5.js → agent-transcript-C5WAGYVC.js} +3 -3
- package/dist/{analytics-GHVG5CCT.js → analytics-EJVOLIQL.js} +33 -13
- package/dist/{apply-7YLB2DPH.js → apply-I6JOM247.js} +3 -3
- package/dist/{backfill-WNQ6O5WP.js → backfill-UVUR36IB.js} +10 -10
- package/dist/{backlinks-ZBZR4D27.js → backlinks-3VMVACWN.js} +3 -3
- package/dist/{bing-4VBSKPSX.js → bing-R5RL3PW2.js} +3 -3
- package/dist/{bootstrap-7ESCLP2G.js → bootstrap-GMMSDTNO.js} +12 -12
- package/dist/{cdp-WBL6FZTL.js → cdp-FJKUXHEY.js} +7 -7
- package/dist/{chunk-L53ZSQN5.js → chunk-2DV7F6XA.js} +91 -2
- package/dist/{chunk-MTW37GXF.js → chunk-2FWYWGIR.js} +2 -2
- package/dist/{chunk-DMPSA7ZS.js → chunk-56VVRWJM.js} +14 -5
- package/dist/{chunk-YACKJGY4.js → chunk-7BEGCVVB.js} +1 -1
- package/dist/{chunk-YMHN4UIT.js → chunk-7BH53MOB.js} +27 -2
- package/dist/{chunk-XPIMVXAI.js → chunk-7J2RIIYU.js} +1366 -1033
- package/dist/{chunk-UY6SKAKW.js → chunk-7SNMIXEQ.js} +2 -2
- package/dist/{chunk-C55P75G4.js → chunk-AMGM55CP.js} +2 -2
- package/dist/{chunk-ZN2TEBBX.js → chunk-AYKTVQF7.js} +13 -5
- package/dist/{chunk-74V5EPZH.js → chunk-BKDRT4VS.js} +7 -7
- package/dist/{chunk-O6RXNSNW.js → chunk-COHSL6KW.js} +1 -1
- package/dist/{chunk-3WDQ5GPO.js → chunk-DGDLLRS4.js} +1 -1
- package/dist/{chunk-VADVPARO.js → chunk-DHIB7EIA.js} +4 -4
- package/dist/{chunk-3MFYM2IS.js → chunk-EE3QTCLS.js} +18 -6
- package/dist/{chunk-DLOWRO5R.js → chunk-F46TBLXK.js} +204 -94
- package/dist/{chunk-P764TJKQ.js → chunk-FBO25TA3.js} +1 -1
- package/dist/{chunk-SY3CWJR4.js → chunk-FZ3MUTU3.js} +2 -2
- package/dist/{chunk-WA6APXI6.js → chunk-G6QN4VFS.js} +16 -10
- package/dist/{chunk-YBWATBX4.js → chunk-HBHLYWKE.js} +9 -6
- package/dist/{chunk-5ZOM5BJS.js → chunk-HL2LGRTI.js} +8 -6
- package/dist/chunk-J6536OL6.js +31 -0
- package/dist/{chunk-3MKJ4LP6.js → chunk-KVRX7YIH.js} +20 -10
- package/dist/{chunk-3VPBRGPN.js → chunk-LJO2BKWU.js} +1 -1
- package/dist/{chunk-YEUULP44.js → chunk-LNVFERI4.js} +1 -1
- package/dist/{chunk-WXAF7AMC.js → chunk-NQYJHKML.js} +39 -7
- package/dist/{chunk-UPHHKO3L.js → chunk-O5UFAXUI.js} +646 -588
- package/dist/{chunk-XQP3XHLJ.js → chunk-O6APBEJE.js} +2 -2
- package/dist/{chunk-47X24IJG.js → chunk-O7S7OHLE.js} +9393 -8394
- package/dist/{chunk-2RW5D55K.js → chunk-QS5DWJDI.js} +2 -2
- package/dist/{chunk-TVBOK4P2.js → chunk-RBG2QXQM.js} +4 -4
- package/dist/{chunk-LM7HTNUO.js → chunk-SWZXHHAG.js} +16 -8
- package/dist/{chunk-AY7SDX6G.js → chunk-T7UDY7W3.js} +26 -11
- package/dist/{chunk-AJD252SX.js → chunk-UGO2FO6V.js} +119 -55
- package/dist/{chunk-PT5HNVCM.js → chunk-VHULVUDL.js} +1 -1
- package/dist/{chunk-ZGBLNKFN.js → chunk-YGAQQSCL.js} +56303 -54933
- package/dist/{chunk-RRXLJPBN.js → chunk-YIIRS7V7.js} +98 -65
- package/dist/{chunk-VOVT2H25.js → chunk-YU2WX7RD.js} +3 -3
- package/dist/{citations-N5MGNKJN.js → citations-LOEQRDUB.js} +21 -10
- package/dist/{cli-catalog-FFU7PHW7.js → cli-catalog-5RXNUFBS.js} +3 -3
- package/dist/{cli-commands-AMIDEUO2.js → cli-commands-HE2BQY3Y.js} +7 -7
- package/dist/cli.js +22 -17
- package/dist/{competitor-GRA2GMZR.js → competitor-PIX2BHJW.js} +3 -3
- package/dist/{content-YVAPTIV4.js → content-PJGW4WZF.js} +3 -3
- package/dist/{dashboard-33ACBR5A.js → dashboard-7OKBD4MG.js} +6 -6
- package/dist/{demo-AGXWBMR6.js → demo-SCOFAWFM.js} +1 -1
- package/dist/{demo-server-W4YAC7GT.js → demo-server-SJPI6RSL.js} +38 -36
- package/dist/{discover-BH33TO4Z.js → discover-I3WL2QUN.js} +10 -8
- package/dist/{discover-eval-3CEA6DEE.js → discover-eval-YRECOIP5.js} +3 -3
- package/dist/{doctor-ZAYTD5PC.js → doctor-F4J6LILX.js} +3 -3
- package/dist/{evidence-247GL7UK.js → evidence-MYQTCY4V.js} +25 -10
- package/dist/{export-cmd-HLKWFI5Q.js → export-cmd-3SUFOJM6.js} +3 -3
- package/dist/{ga-BMING57Z.js → ga-VA6FYK4L.js} +3 -3
- package/dist/{gbp-MIB5CXSD.js → gbp-DI6ZVFHL.js} +3 -3
- package/dist/{google-5JP6RYAW.js → google-UVKWJCD2.js} +4 -4
- package/dist/{google-marketing-25OBMPS6.js → google-marketing-S63HN733.js} +1 -1
- package/dist/{health-cmd-D5XSEL7H.js → health-cmd-DOZXGI46.js} +16 -9
- package/dist/{history-6MDRFPQ3.js → history-UTJTUDYK.js} +3 -3
- package/dist/index.d.ts +211 -19
- package/dist/index.js +26 -26
- package/dist/{init-RDR75N2Y.js → init-IVJSS33J.js} +19 -19
- package/dist/{insights-QZVMBGVM.js → insights-UHCVCZ76.js} +3 -3
- package/dist/intelligence-service-3EENJ5DS.js +16 -0
- package/dist/{journeys-TABTZDFZ.js → journeys-XIT7WDM2.js} +3 -3
- package/dist/{keys-SL5YF7NQ.js → keys-MQKW4JUI.js} +3 -3
- package/dist/{keyword-OCDEXRSW.js → keyword-EASMKYZ3.js} +3 -3
- package/dist/{logs-CSC7O364.js → logs-ZHZ6XM55.js} +3 -3
- package/dist/{mcp-P725OHAJ.js → mcp-ECVT2YGU.js} +4 -4
- package/dist/mcp.js +10 -10
- package/dist/{measurement-plan-Z42GBJBO.js → measurement-plan-7FQKUOMR.js} +5 -5
- package/dist/{notify-E5JBES4I.js → notify-TC7ARC6W.js} +3 -3
- package/dist/{organic-evidence-CUA3T64O.js → organic-evidence-M34MWJXE.js} +7 -4
- package/dist/overview-P6BRMXJN.js +314 -0
- package/dist/{project-2ULM64TV.js → project-WZ2YXFPJ.js} +4 -4
- package/dist/project-setup-WV6SPGIV.js +176 -0
- package/dist/{query-Y47IEFKJ.js → query-WAFJKDHG.js} +3 -3
- package/dist/{research-DPFQZ3TE.js → research-B5ZPQX7R.js} +3 -3
- package/dist/{results-export-KBHOBQAH.js → results-export-NIZV6R3K.js} +3 -3
- package/dist/{run-4CYHVIIU.js → run-ICLPZ7QT.js} +7 -4
- package/dist/{schedule-GY4P3RON.js → schedule-4C44LQ7R.js} +22 -3
- package/dist/{search-AGVNZMJQ.js → search-UJM7KII3.js} +11 -4
- package/dist/{serve-5LFKIXNL.js → serve-A6UIO6WP.js} +30 -29
- package/dist/{session-YAYEDM3P.js → session-RTE22GQT.js} +14 -14
- package/dist/settings-BOF5Z7ML.js +211 -0
- package/dist/{sitemaps-APTY7U6H.js → sitemaps-BM7S76H2.js} +4 -4
- package/dist/{skills-4BUONEIZ.js → skills-X5SR4HRO.js} +2 -2
- package/dist/{snapshot-BXCWSF5P.js → snapshot-KLKE37VY.js} +4 -4
- package/dist/{src-R7XZUX3D.js → src-EKLG5A6O.js} +4 -2
- package/dist/{status-SB6HPBYJ.js → status-OYG57DWU.js} +6 -5
- package/dist/{technical-aeo-G7UEMWZD.js → technical-aeo-KWVWOOTI.js} +23 -23
- package/dist/{telemetry-H4S4Y7YV.js → telemetry-KGE6FF3Y.js} +4 -4
- package/dist/{tools-46XX6I4R.js → tools-4R33AZQ3.js} +11 -11
- package/dist/{traffic-I6WRJN3W.js → traffic-SVMOKCSS.js} +7 -11
- package/dist/{trends-AQK3GLWF.js → trends-RGAKGX3L.js} +4 -4
- package/dist/{users-SNTVY6OB.js → users-47WKA2TO.js} +3 -3
- package/dist/{visibility-stats-44QAD2XS.js → visibility-stats-DTGQJPNV.js} +9 -5
- package/dist/{wordpress-N7LTOW46.js → wordpress-2CNUX4UE.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/AgentSetupPage-yOqSVJ-e.js +0 -18
- package/assets/assets/AuditHistoryPanel-CiTzFgbw.js +0 -1
- package/assets/assets/BacklinksPage-DmRdQsFQ.js +0 -1
- package/assets/assets/ChartPrimitives-CvK6CQrj.js +0 -1
- package/assets/assets/Hint-c4a4W87X.js +0 -1
- package/assets/assets/InfoTooltip-Drnst4ML.js +0 -1
- package/assets/assets/MeasurementPropertyPage-Cx64Fnmz.js +0 -4
- package/assets/assets/ProjectPage-DNfgC82V.js +0 -11
- package/assets/assets/RunsPage-BmPKBKKr.js +0 -1
- package/assets/assets/SettingsPage-Dl0TNeVK.js +0 -1
- package/assets/assets/SiteHealthSection-DxQPaR--.js +0 -2
- package/assets/assets/ToneBadge-BhjTBHi-.js +0 -60
- package/assets/assets/TrafficPage-CJp0pS01.js +0 -40
- package/assets/assets/TrafficSourceDetailPage-DKE8tSw5.js +0 -1
- package/assets/assets/format-helpers-BPugHeIX.js +0 -3
- package/assets/assets/index-BAxHW-1G.css +0 -1
- package/assets/assets/index-xlDLvgRC.js +0 -60
- package/assets/assets/query-client-CwZpfiiD.js +0 -1
- package/assets/assets/react-query-CBpNFR4t.js +0 -1
- package/assets/assets/service-DFumlmXt.js +0 -1
- package/assets/assets/vendor-lucide-DuOM7wVi.js +0 -1
- package/dist/intelligence-service-KQE7RO5I.js +0 -16
- package/dist/overview-UKQ52I72.js +0 -213
- package/dist/settings-HUKMWRHY.js +0 -119
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Y as t,ft as n}from"./vendor-lucide-iE5MEh2-.js";import{u as r}from"./vendor-radix-DKCt5Z_h.js";import{r as i}from"./vendor-markdown-BBGbNklj.js";import{t as a}from"./use-tooltip-position-BOzm-6Wy.js";var o=e(n(),1),s=e(r(),1),c=i();function l({children:e,label:n=`More info`,placement:r=`top`,className:i}){let l=(0,o.useId)(),{open:u,triggerRef:d,bubbleRef:f,style:p,show:m,hide:h,hideAfterPointerLeaves:g}=a(r,`16rem`);return(0,c.jsxs)(`span`,{className:`relative inline-flex ${i??``}`,children:[(0,c.jsx)(`button`,{ref:d,type:`button`,"aria-label":n,"aria-describedby":u?l:void 0,className:`inline-flex h-4 w-4 items-center justify-center rounded-full text-muted hover:text-strong focus:text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500`,onMouseEnter:m,onMouseLeave:g,onFocus:m,onBlur:h,onKeyDown:e=>{e.key===`Escape`&&h()},children:(0,c.jsx)(t,{className:`h-3.5 w-3.5`,"aria-hidden":!0})}),u&&(0,s.createPortal)((0,c.jsx)(`span`,{ref:f,id:l,role:`tooltip`,className:`material-tooltip px-3 py-2 text-copy-13 text-secondary whitespace-normal`,style:p,onMouseEnter:m,onMouseLeave:g,children:e}),d.current?.closest(`.app-shell-embed`)??document.body)]})}export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./vendor-markdown-
|
|
1
|
+
import{r as e}from"./vendor-markdown-BBGbNklj.js";import{t}from"./AuditHistoryPanel-BG-n1i8c.js";var n=e();function r(){return(0,n.jsxs)(`div`,{className:`page-container`,children:[(0,n.jsx)(`div`,{className:`page-header`,children:(0,n.jsxs)(`div`,{className:`page-header-left`,children:[(0,n.jsx)(`h1`,{className:`page-title`,children:`History`}),(0,n.jsx)(`p`,{className:`page-subtitle`,children:`Changes to projects and settings.`})]})}),(0,n.jsx)(t,{})]})}export{r as HistoryPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{ft as t,s as n}from"./vendor-lucide-iE5MEh2-.js";import{u as r}from"./vendor-radix-DKCt5Z_h.js";import{r as i}from"./vendor-markdown-BBGbNklj.js";import{t as a}from"./use-tooltip-position-BOzm-6Wy.js";var o=e(t(),1),s=e(r(),1),c=i();function l({text:e,placement:t=`top`,tone:r=`info`,label:i}){let{open:l,triggerRef:u,bubbleRef:d,style:f,show:p,hide:m,hideAfterPointerLeaves:h}=a(t,`14rem`),g=(0,o.useRef)(!1);return(0,c.jsxs)(`span`,{className:`info-tooltip-wrapper`,onMouseEnter:p,onMouseLeave:h,children:[(0,c.jsxs)(`button`,{ref:u,type:`button`,className:`info-tooltip-trigger${i?` info-tooltip-trigger-labeled`:``}${r===`caution`?` info-tooltip-trigger-caution`:``}`,"aria-label":e,"aria-expanded":l,onFocus:p,onBlur:m,onPointerDown:()=>{g.current=l&&u.current?.ownerDocument.activeElement===u.current},onClick:e=>{e.detail===0?l?m():p():g.current?m():p()},onKeyDown:e=>{e.key===`Escape`&&m()},children:[r===`caution`?(0,c.jsx)(n,{className:`info-tooltip-icon`,"aria-hidden":`true`}):(0,c.jsxs)(`svg`,{className:`info-tooltip-icon`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:[(0,c.jsx)(`circle`,{cx:`8`,cy:`8`,r:`7`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,c.jsx)(`path`,{d:`M8 7v4M8 5.5v0`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),i?(0,c.jsx)(`span`,{"aria-hidden":`true`,children:i}):null]}),l&&(0,s.createPortal)((0,c.jsx)(`span`,{ref:d,"aria-hidden":`true`,className:`material-tooltip px-3 py-2 text-copy-13 text-secondary`,style:f,onMouseEnter:p,onMouseLeave:h,children:e}),u.current?.closest(`.app-shell-embed`)??document.body)]})}export{l as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{ft as t,ut as n}from"./vendor-lucide-iE5MEh2-.js";import{r}from"./vendor-markdown-BBGbNklj.js";import{_ as i,d as a,f as o,p as s,u as c,v as l,x as u}from"./vendor-tanstack-B90HW50P.js";import{Oi as d,Tt as f,ct as p,gi as ee,gt as m,hi as te,mi as h,r as g,t as _,ua as ne}from"./ToneBadge-DcwPruHr.js";import{E as v,H as y,n as re}from"./AccessControls-DzO5Y8v9.js";import{R as b,S as x,f as S,h as C,z as w}from"./ChartPrimitives-CtKdkn64.js";import{r as ie}from"./account-context-CoJVqEXZ.js";import{Ct as T,Et as ae,St as E,bt as oe,fn as D,kt as O,xt as k,yt as A}from"./react-query-BqcEEfEO.js";import{t as j}from"./InfoTooltip-D29JcNMW.js";import{Ft as se,G as ce,J as M,Lt as N,Q as P,Z as le,dt as F,et as ue,lt as I,mt as L,ut as de,zt as fe}from"./index-mqc2mWUR.js";import{c as R,r as z,s as pe,t as me,u as B}from"./service-BQjBdN4O.js";var V=e(t(),1),H=r(),U={heading:`Names that count as this Property`,help:`These names identify this Property in answer text. Source titles and URLs do not count as mentions. Qualified names add distinguishing words when several Properties share a name, such as a product line, service, or location.`,names:`Names`,qualifiedNames:`Qualified names`,noNames:`No names are set, so answers can cite this Property but never mention it.`,edit:`Edit names`,save:`Save to draft`,saving:`Saving…`,cancel:`Cancel`,namesHint:`One name per line.`,qualifiedHint:`One per line. Include a name above plus words that identify this specific Property.`,qualifiedNote:`With qualified names set, an answer that uses only a plain name counts as a mention only when it also cites this Property’s own page. Otherwise it is left out as not tied to one property.`,draftOnly:`Saving changes the draft only. Nothing is measured differently until the setup is published.`,saved:`Saved to the draft. Publish the setup to start using these names.`,pending:`Name changes are saved in the draft and not published yet.`,review:`Review and publish`,noChanges:`No changes to save.`,staleDraft:`The draft is based on an older published setup. Open measurement setup to restart it before editing names.`,missingFromDraft:`This Property is not included in the current draft. Open measurement setup to review it.`,conflict:`The draft changed in another session. The latest names are loaded; review them and save again.`,failed:`Could not save these names. Try again.`};function he(e){return[...new Set(e.split(`
|
|
2
|
+
`).map(e=>e.trim()).filter(Boolean))]}function ge(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function W(e,t){return ge(e.aliases,t.aliases)&&ge(e.identityAliases??[],t.identityAliases??[])}function _e(e,t,n){let{identityAliases:r,...i}=e;return n.length>0?{...i,aliases:t,identityAliases:n}:{...i,aliases:t}}function G({label:e,names:t}){return(0,H.jsxs)(`div`,{className:`space-y-1`,children:[(0,H.jsx)(`h3`,{className:`text-heading-14 text-heading`,children:e}),(0,H.jsx)(`ul`,{className:`space-y-1`,children:t.map(e=>(0,H.jsx)(`li`,{className:`text-label-14 text-secondary`,children:e},e))})]})}function K({id:e,issues:t}){return t.length===0?null:(0,H.jsx)(`ul`,{id:e,className:`mt-2 space-y-1`,"aria-label":`Name warnings`,children:t.map(e=>(0,H.jsx)(`li`,{className:`text-label-14 text-caution`,children:h(e)},`${e.field}:${e.index}`))})}function ve({projectName:e,targetKey:t,published:n,activeRevision:r,publishedBrandNames:i,service:a=me}){let{canWrite:o}=ie(),s=(0,V.useId)(),d=u({...oe({client:m,path:{name:e}}),enabled:o}),f=u({...O({client:m,path:{name:e}}),enabled:o}),p=d.data?.draft?.authoring.targets.find(e=>e.stableKey===t),h=n.identityAliases??[],_=p!==void 0&&d.data?.draft?.baseActiveRevision===r&&!W(p,n),ne=!d.isFetching&&!f.isPending,v=f.data,y=(0,V.useMemo)(()=>v?ee(v):i,[v,i]),[b,x]=(0,V.useState)(!1),[S,C]=(0,V.useState)(``),[w,T]=(0,V.useState)(``),[ae,E]=(0,V.useState)(n),[D,k]=(0,V.useState)(null),A=`${e}\u0000${t}`,[se,ce]=(0,V.useState)(A);se!==A&&(ce(A),x(!1),C(``),T(``),E(n),k(null));let M=(0,V.useRef)(A);M.current=A;let N=(0,V.useMemo)(()=>he(S),[S]),P=(0,V.useMemo)(()=>he(w),[w]),le=(0,V.useMemo)(()=>te({aliases:N,identityAliases:P,brandNames:y}),[N,P,y]),F=le.filter(e=>e.field===`aliases`),ue=le.filter(e=>e.field===`identityAliases`);function I(e){C(e.aliases.join(`
|
|
3
|
+
`)),T((e.identityAliases??[]).join(`
|
|
4
|
+
`)),E({aliases:[...e.aliases],identityAliases:[...e.identityAliases??[]]})}function L(e){return e.draft?e.draft.authoring.targets.find(e=>e.stableKey===t)??null:n}function de(){I(_?p:n),k(null),x(!0)}function fe(e){e&&I(e),k({tone:`negative`,text:U.conflict,review:!1})}let R=l({mutationFn:async i=>{let o=await a.loadDraft(e);if(!o.draft){if(W(i.names,n))return{outcome:`unchanged`};if(!W(i.base,n))return{outcome:`conflict`,latest:n};await a.createDraft(e,r),o=await a.loadDraft(e)}let s=o.draft;if(!s||!o.etag)throw Error(U.failed);if(s.baseActiveRevision!==r)return{outcome:`stale`};let c=s.authoring.targets.find(e=>e.stableKey===t);return!c||c.status!==`included`?{outcome:`missing`}:W(i.names,c)?{outcome:`unchanged`}:W(i.base,c)?(await a.upsertTarget(e,o.etag,_e(c,i.names.aliases,i.names.identityAliases)),{outcome:`saved`}):{outcome:`conflict`,latest:c}},meta:{skipGlobalErrorToast:!0},onSuccess:(e,t)=>{if(t.openFor===M.current)switch(e.outcome){case`saved`:x(!1),k({tone:`positive`,text:U.saved,review:!0});return;case`unchanged`:x(!1),k({tone:`positive`,text:U.noChanges,review:!1});return;case`stale`:k({tone:`negative`,text:U.staleDraft,review:!0});return;case`missing`:k({tone:`negative`,text:U.missingFromDraft,review:!0});return;case`conflict`:fe(e.latest),d.refetch();return}},onError:(e,t)=>{t.openFor===M.current&&(z(e)?(fe(null),d.refetch().then(e=>{e.isSuccess&&fe(L(e.data))})):k({tone:`negative`,text:U.failed,review:!1}))}}),pe=(0,H.jsx)(c,{to:`/projects/$projectName/portfolio`,params:{projectName:e},className:`text-link underline-offset-2 hover:underline`,children:U.review}),B=n.aliases.length+h.length;return(0,H.jsxs)(`section`,{"aria-labelledby":`property-names`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-names`,className:`text-heading-16 text-heading`,children:U.heading}),(0,H.jsx)(j,{text:U.help})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[B,` `,B===1?`name`:`names`]}),o&&!b?(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,disabled:!ne,onClick:de,children:U.edit}):null]})]}),D?(0,H.jsxs)(`p`,{role:D.tone===`negative`?`alert`:`status`,className:`mb-3 text-copy-14 ${D.tone===`negative`?`text-negative`:`text-positive`}`,children:[D.text,D.review?(0,H.jsxs)(H.Fragment,{children:[` `,pe]}):null]}):_&&!b?(0,H.jsxs)(`p`,{role:`status`,className:`mb-3 text-copy-14 text-caution`,children:[U.pending,` `,pe]}):null,b?(0,H.jsxs)(`form`,{className:`space-y-4`,"aria-label":`Edit names`,onSubmit:e=>{e.preventDefault(),!R.isPending&&R.mutate({names:{aliases:N,identityAliases:P},base:ae,openFor:A})},children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{htmlFor:`${s}-names`,className:`block text-label-14-strong text-heading`,children:U.names}),(0,H.jsx)(`p`,{id:`${s}-names-hint`,className:`text-copy-14 text-secondary`,children:U.namesHint}),(0,H.jsx)(`textarea`,{id:`${s}-names`,className:`mt-1 min-h-24 w-full rounded-md border border-strong bg-transparent px-3 py-2 text-copy-14 text-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,"aria-describedby":`${s}-names-hint${F.length?` ${s}-names-issues`:``}`,value:S,onChange:e=>C(e.target.value)}),(0,H.jsx)(K,{id:`${s}-names-issues`,issues:F}),N.length===0?(0,H.jsx)(`p`,{className:`mt-2 text-copy-14 text-caution`,children:U.noNames}):null]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{htmlFor:`${s}-qualified`,className:`block text-label-14-strong text-heading`,children:U.qualifiedNames}),(0,H.jsx)(`p`,{id:`${s}-qualified-hint`,className:`text-copy-14 text-secondary`,children:U.qualifiedHint}),(0,H.jsx)(`textarea`,{id:`${s}-qualified`,className:`mt-1 min-h-20 w-full rounded-md border border-strong bg-transparent px-3 py-2 text-copy-14 text-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,"aria-describedby":`${s}-qualified-hint ${s}-qualified-note${ue.length?` ${s}-qualified-issues`:``}`,value:w,onChange:e=>T(e.target.value)}),(0,H.jsx)(K,{id:`${s}-qualified-issues`,issues:ue}),(0,H.jsx)(`p`,{id:`${s}-qualified-note`,className:`mt-2 max-w-3xl text-copy-14 text-secondary`,children:U.qualifiedNote})]}),(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:U.draftOnly}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,H.jsx)(re,{type:`submit`,className:`h-11 px-4 text-label-14 md:h-11`,disabled:R.isPending,children:R.isPending?U.saving:U.save}),(0,H.jsx)(g,{type:`button`,variant:`ghost`,className:`h-11 px-4 text-button-14 md:h-11`,disabled:R.isPending,onClick:()=>{x(!1),k(null)},children:U.cancel})]})]}):B===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:U.noNames}):(0,H.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[n.aliases.length>0?(0,H.jsx)(G,{label:U.names,names:n.aliases}):null,h.length>0?(0,H.jsx)(G,{label:U.qualifiedNames,names:h}):null]})]})}var ye=50,q={branded:{technical:`Branded queries`},"non-brand":{technical:`Non-brand queries`}},J={plan_v1:`Setup update required`,no_completed_run:`No completed measurement yet`,no_population:`No queries of this type are assigned`,evidence_incomplete:`Source evidence is incomplete`,identity_ambiguous:w,not_applicable:`Not applicable for this Property`,citation_not_measured:`The engines return no sources`},be={complete:{label:`Measured`,tone:`positive`},partial:{label:`Partly measured`,tone:`caution`},running:{label:`Measuring now`,tone:`neutral`},queued:{label:`Measurement queued`,tone:`neutral`},failed:{label:`Measurement failed`,tone:`negative`},not_measured:{label:`Not measured`,tone:`neutral`}},Y={assigned:{label:`Matches this Property`,tone:`positive`},sibling:{label:`Matches another Property`,tone:`caution`},ownedUnmapped:{label:`Site URL not in a Property`,tone:`caution`},external:{label:`External URL`,tone:`neutral`},ambiguous:{label:`Matches multiple Properties`,tone:`caution`},invalid:{label:`Invalid URL`,tone:`negative`}};function X(e){return[...e].sort((e,t)=>Number(t.classification===`assigned`)-Number(e.classification===`assigned`))}function xe(e){return`${e.expectedSlotId}:${e.usageEdgeId}`}function Se({row:e}){return e.mentioned===null?(0,H.jsxs)(`span`,{className:`inline-flex flex-col items-start gap-0.5`,children:[(0,H.jsx)(_,{tone:`neutral`,children:`Not measured`}),(0,H.jsx)(`span`,{className:`text-label-12 text-muted`,children:`No mention signal for this Property`})]}):!e.mentioned&&e.mentionIdentity===`wrong-subject`?(0,H.jsxs)(`span`,{className:`inline-flex flex-col items-start gap-0.5`,children:[(0,H.jsx)(_,{tone:`neutral`,children:`Not mentioned`}),(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-label-12 text-muted`,children:[L.label,(0,H.jsx)(j,{text:L.property})]})]}):(0,H.jsx)(_,{tone:e.mentioned?`positive`:`neutral`,children:e.mentioned?`Mentioned`:`Not mentioned`})}var Ce=`—`;function we({row:e}){return e.cited===null?(0,H.jsxs)(`span`,{className:`inline-flex flex-col items-start gap-0.5`,children:[(0,H.jsx)(_,{tone:`neutral`,children:`Not measured`}),(0,H.jsx)(`span`,{className:`text-label-12 text-muted`,children:e.citationMeasured===!1?`The engine returns no sources`:`Sources were not fully captured`})]}):(0,H.jsx)(_,{tone:e.cited?`positive`:`neutral`,children:e.cited?`Cited`:`Not cited`})}function Te({row:e}){return e.citationMeasured===!1?(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,children:b}):e.cited===null&&e.sources.length===0?(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,children:`The sources for this answer were not fully captured, so none can be shown.`}):e.sources.length===0?(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,children:`This answer returned no source URLs at all.`}):(0,H.jsxs)(`details`,{className:`mt-2`,"data-answer-sources":!0,children:[(0,H.jsxs)(`summary`,{className:`min-h-11 cursor-pointer py-3 text-label-14 text-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[de,` (`,e.sources.length,`)`]}),(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[420px]`,children:[(0,H.jsxs)(`caption`,{className:`sr-only`,children:[`Source URLs for `,e.queryText]}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{children:`Match`}),(0,H.jsx)(`th`,{children:`URL`})]})}),(0,H.jsx)(`tbody`,{children:X(e.sources).map(e=>(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`td`,{children:(0,H.jsx)(_,{tone:Y[e.classification].tone,children:Y[e.classification].label})}),(0,H.jsx)(`td`,{children:(0,H.jsx)(I,{url:e.sourceUrl})})]},e.sourceUrl))})]})})]})}function Ee({project:e,targetKey:t,resultId:n}){let r=u({...ae({client:m,path:{name:e},query:{targetKey:t,resultId:n}})});if(r.isPending)return(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,role:`status`,"aria-live":`polite`,children:`Loading the answer…`});if(r.isError)return(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,role:`alert`,children:`Could not load this answer.`});let i=r.data?.answer;return i==null||i.trim()===``?(0,H.jsx)(`p`,{className:`py-2 text-copy-14 text-secondary`,children:`This answer was measured, but its text was not stored.`}):(0,H.jsx)(`div`,{className:`py-2`,children:(0,H.jsx)(F,{headingLevel:4,copyable:!0,children:i})})}function De(e){return J[e.reason]??`Not measured`}function Oe({metric:e,signal:t,queryClass:n,emphasis:r=!1,compact:i=!1}){if(e.state===`unavailable`)return(0,H.jsxs)(`span`,{className:`inline-flex flex-col gap-0.5`,children:[(0,H.jsx)(`span`,{className:r?`text-label-18-strong text-secondary`:`text-label-14-strong text-secondary`,children:`Not measured`}),(0,H.jsxs)(`span`,{className:`sr-only`,children:[` · `,n,` queries`]}),(0,H.jsx)(`span`,{className:`text-label-14 text-secondary`,children:De(e)})]});let a=d(e.value),o=e.numerator===void 0||e.denominator===void 0?null:`${e.numerator} of ${e.denominator}`,s=x(e,t);return i?(0,H.jsxs)(`span`,{className:`inline-flex flex-col items-end gap-0.5`,children:[(0,H.jsxs)(`span`,{className:`engine-comparison-metric`,children:[(0,H.jsx)(`span`,{className:`text-label-14-strong text-primary`,children:a}),o?(0,H.jsxs)(`span`,{className:`text-label-13 text-secondary`,"aria-hidden":`true`,children:[e.numerator,`/`,e.denominator]}):null,(0,H.jsxs)(`span`,{className:`sr-only`,children:[o?` · ${o} answers`:``,` · `,n,` queries`]})]}),s?(0,H.jsx)(`span`,{className:`flex`,children:(0,H.jsx)(j,{tone:`caution`,placement:`bottom`,label:s.label,text:s.text})}):null]}):(0,H.jsxs)(`span`,{className:`inline-flex flex-col gap-0.5 tabular-nums`,children:[(0,H.jsx)(`span`,{className:r?`text-label-18-strong text-heading`:`text-label-14-strong text-primary`,children:a}),(0,H.jsxs)(`span`,{className:`sr-only`,children:[` · `,n,` queries`]}),o?(0,H.jsx)(`span`,{className:`text-label-12 text-muted`,children:o}):null,s?(0,H.jsx)(`span`,{className:`-ml-2 flex`,children:(0,H.jsx)(j,{tone:`caution`,placement:`bottom`,label:s.label,text:s.text})}):null]})}function ke(e,t,n){return A({client:m,path:{name:e},query:{scope:`property`,targetKey:t,queryClass:n}})}function Ae(e){return e?.properties.items.at(0)}function je({measuredAt:e,unmeasuredReason:t,queryClass:n}){let r=e===void 0?null:e===null?`No completed check yet`:`Measured ${S(C(e))}`;return r===null&&t===void 0?null:(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[[r,t].filter(Boolean).join(` · `),r!==null&&t===void 0?` · ${q[n].technical.toLocaleLowerCase()} only`:``]})}function Me({project:e,groups:t}){return t.length===0?null:(0,H.jsxs)(`section`,{"aria-labelledby":`property-market`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsx)(`div`,{children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-market`,className:`text-heading-16 text-heading`,children:`Measured at the market level`}),(0,H.jsx)(j,{text:`Competitors are attached to groups. Share of voice and competitor pressure use the group or market that includes this Property.`})]})}),(0,H.jsx)(g,{asChild:!0,type:`button`,size:`sm`,variant:`outline`,children:(0,H.jsx)(c,{to:`/projects/$projectName`,params:{projectName:e},search:e=>P(M(e),{measurementScope:`project`}),children:`Open measurement overview`})})]}),(0,H.jsx)(`ul`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,H.jsxs)(`li`,{className:`rounded-md border border-default px-3 py-1.5 text-label-14 text-strong`,children:[e.label,(0,H.jsxs)(`span`,{className:`ml-2 text-label-12 text-muted`,children:[e.competitors.length,` `,e.competitors.length===1?`competitor`:`competitors`]})]},e.stableKey))})]})}function Ne({branded:e,nonBrand:t,brandedError:n,nonBrandError:r,onRetry:i}){return(0,H.jsxs)(`section`,{"aria-labelledby":`property-brand-contrast`,children:[(0,H.jsx)(`div`,{className:`section-head section-head-inline`,children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-brand-contrast`,className:`text-heading-16 text-heading`,children:`Coverage for this Property`}),(0,H.jsx)(j,{text:`Non-brand queries do not name this Property. Branded queries name it. Each rate uses only the measured answers for that query type. Mentioned means the Property was named in the answer; cited means its URL appeared in the sources. Unchecked sources are not counted as a citation miss.`})]})}),(0,H.jsx)(`div`,{className:`overflow-x-auto rounded-md border border-default`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[560px]`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Mention and citation coverage for this Property, split by query class`}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{children:`Query type`}),(0,H.jsx)(`th`,{children:`Mentioned in the answer`}),(0,H.jsx)(`th`,{children:`Cited as a source`})]})}),(0,H.jsx)(`tbody`,{children:[{queryClass:`non-brand`,row:t,isError:r},{queryClass:`branded`,row:e,isError:n}].map(({queryClass:e,row:t,isError:n})=>(0,H.jsxs)(`tr`,{children:[(0,H.jsxs)(`td`,{children:[(0,H.jsx)(`span`,{className:`block text-label-14-strong text-heading`,children:q[e].technical}),t&&n?(0,H.jsxs)(`span`,{className:`mt-2 flex flex-wrap items-center gap-2 text-label-14 text-caution`,children:[(0,H.jsx)(`span`,{role:`status`,children:`Refresh failed.`}),(0,H.jsxs)(g,{type:`button`,size:`sm`,variant:`ghost`,className:`h-11 px-3 text-button-14 md:h-11`,onClick:()=>i(e),children:[`Retry `,q[e].technical.toLocaleLowerCase()]})]}):null]}),t?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`td`,{children:(0,H.jsx)(Oe,{metric:t.mentionCoverage,signal:`mentioned`,queryClass:e,emphasis:!0})}),(0,H.jsx)(`td`,{children:(0,H.jsx)(Oe,{metric:t.citationCoverage,signal:`cited`,queryClass:e,emphasis:!0})})]}):n?(0,H.jsx)(`td`,{colSpan:2,children:(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-label-14 text-secondary`,children:[(0,H.jsxs)(`span`,{role:`alert`,children:[`Could not load `,q[e].technical.toLocaleLowerCase(),`.`]}),(0,H.jsxs)(g,{type:`button`,size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,onClick:()=>i(e),children:[`Retry `,q[e].technical.toLocaleLowerCase()]})]})}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`td`,{children:(0,H.jsx)(`span`,{className:`text-label-14 text-secondary`,children:`Loading…`})}),(0,H.jsx)(`td`,{children:(0,H.jsx)(`span`,{className:`text-label-14 text-secondary`,children:`Loading…`})})]})]},e))})]})})]})}function Pe({row:e,queryClass:t,isError:n}){return(0,H.jsxs)(`section`,{"aria-labelledby":`property-providers`,className:`page-section-divider`,children:[(0,H.jsx)(`div`,{className:`section-head section-head-inline`,children:(0,H.jsx)(`div`,{children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-providers`,className:`text-heading-16 text-heading`,children:`Which engines answer for this Property`}),(0,H.jsx)(j,{text:`Each row is measured over the queries that engine actually answered for this Property, so the rows are a split of the same population rather than parts that add up to the Property total. An engine that answered nothing for this Property is absent instead of shown at 0%.`})]})})}),e===void 0&&n?(0,H.jsxs)(`p`,{className:`text-copy-14 text-secondary`,children:[`Details for `,q[t].technical.toLocaleLowerCase(),` are unavailable. Retry that query type above.`]}):e===void 0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Loading…`}):e.providers.length===0?(0,H.jsxs)(`p`,{className:`text-copy-14 text-secondary`,children:[`No answer engine has measured `,q[t].technical.toLocaleLowerCase(),` for this Property.`,e.mentionCoverage.state===`unavailable`?` ${De(e.mentionCoverage)}.`:``]}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`engine-comparison`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Per-engine mention and citation coverage`}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{scope:`col`,children:`Engine`}),(0,H.jsx)(`th`,{scope:`col`,children:`Mentioned`}),(0,H.jsx)(`th`,{scope:`col`,children:`Cited`})]})}),(0,H.jsx)(`tbody`,{children:e.providers.map(e=>(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`td`,{children:(0,H.jsx)(B,{provider:e.provider})}),(0,H.jsx)(`td`,{children:(0,H.jsx)(Oe,{metric:e.mentionCoverage,signal:`mentioned`,queryClass:t,compact:!0})}),(0,H.jsx)(`td`,{children:(0,H.jsx)(Oe,{metric:e.citationCoverage,signal:`cited`,queryClass:t,compact:!0})})]},e.provider))})]})})]})}function Z(e){let t=e.questions.join(` · `);return e.questionsTruncated?`${t} +${e.questionTotal-e.questions.length} more`:t}function Fe({project:e,targetKey:t,queryClass:n}){let r=u({...E({client:m,path:{name:e},query:{targetKey:t,queryClass:n}})});if(r.isPending||r.isError)return null;let i=r.data?.competitors??[],a=r.data?.basis;return(0,H.jsxs)(`section`,{"aria-labelledby":`property-named-instead`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsx)(`div`,{children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-named-instead`,className:`text-heading-16 text-heading`,children:`Named instead of this Property`}),(0,H.jsx)(j,{text:`Counted from the answers that did not name this Property, so a name here is one an engine recommended in its place. Occurrences count answers, not positions: an engine naming the same rival in two answers counts twice, and one naming it twice in a single answer counts once.`})]})}),i.length>0?(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[r.data?.total??i.length,` named`]}):null]}),i.length===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`No rival was named in the answers this Property missed. Nothing to compete with here yet.`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[420px]`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Names the engines gave instead of this Property`}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{children:`Named`}),(0,H.jsx)(`th`,{children:`Answers`}),(0,H.jsx)(`th`,{children:`Engines`}),(0,H.jsx)(`th`,{children:`Queries`})]})}),(0,H.jsx)(`tbody`,{children:i.map(e=>(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`td`,{className:`text-strong`,children:e.name}),(0,H.jsx)(`td`,{className:`tabular-nums text-secondary`,children:e.occurrences}),(0,H.jsxs)(`td`,{className:`text-secondary`,children:[e.providers.map(e=>v(e)).join(`, `),e.providersTruncated?` +${e.providerTotal-e.providers.length}`:``]}),(0,H.jsx)(`td`,{className:`text-right`,children:(0,H.jsxs)(`span`,{className:`inline-flex items-center justify-end gap-1`,children:[(0,H.jsx)(`span`,{className:`tabular-nums text-secondary`,children:e.questionTotal}),(0,H.jsx)(j,{text:Z(e)})]})})]},e.name))})]})}),a?.state===`available`?(0,H.jsxs)(`p`,{className:`supporting-copy mt-2`,children:[a.targetMissResults,` of `,a.answeredResults,` answers to `,q[n].technical.toLocaleLowerCase(),` did not name this Property.`]}):null]})]})}function Ie({questions:e,queryClass:t}){return(0,H.jsxs)(`section`,{"aria-labelledby":`property-questions`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsx)(`div`,{children:(0,H.jsxs)(`h2`,{id:`property-questions`,className:`text-heading-16 text-heading`,children:[q[t].technical,` assigned to this Property`]})}),(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[e.length,` assigned`]})]}),e.length===0?(0,H.jsxs)(`p`,{className:`text-copy-14 text-secondary`,children:[`No `,q[t].technical.toLocaleLowerCase(),` are assigned. Add one in advanced measurement setup to measure this class.`]}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[420px]`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Queries assigned to this Property`}),(0,H.jsx)(`thead`,{children:(0,H.jsx)(`tr`,{children:(0,H.jsx)(`th`,{children:`Query`})})}),(0,H.jsx)(`tbody`,{children:e.map(e=>(0,H.jsx)(`tr`,{children:(0,H.jsx)(`td`,{className:`text-secondary`,children:e})},e))})]})})]})}function Le({urls:e}){return(0,H.jsxs)(`section`,{"aria-labelledby":`property-urls`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsx)(`div`,{children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-urls`,className:`text-heading-16 text-heading`,children:`URLs that count as this Property`}),(0,H.jsx)(j,{text:`A cited source URL is credited to this Property when it matches one of these. The most specific matcher wins, so a URL covered by two Properties at the same specificity is flagged for review instead of being credited to either.`})]})}),(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[e.length,` configured`]})]}),e.length===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`No URLs are configured for this Property.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[420px]`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`URL matchers configured for this Property`}),(0,H.jsx)(`thead`,{children:(0,H.jsx)(`tr`,{children:(0,H.jsx)(`th`,{children:`URL`})})}),(0,H.jsx)(`tbody`,{children:e.map(e=>(0,H.jsx)(`tr`,{children:(0,H.jsx)(`td`,{className:`break-all text-secondary`,children:e})},e))})]})})]})}var Q={heading:`Cited on other queries`,help:`Answers to queries assigned to other properties that still cited one of this Property’s own pages. This Property was not measured on those queries, so these answers are not in its Mentioned or Cited rates.`,notCounted:`not in this Property’s rates`,empty:`No answer to a query assigned elsewhere cited this Property’s pages in the displayed measurement.`,loadError:`Citations from other queries could not be loaded.`,partlySaved:`Sources partly saved`};function Re({project:e,targetKey:t,queryClass:n,runId:r,targetLabels:a}){let[o,s]=(0,V.useState)(new Set),l={client:m,path:{name:e},query:{targetKey:t,queryClass:n,shape:ne[`other-queries`],limit:ye,...r?{runId:r}:{}}},u=i({...T(l),initialPageParam:l,getNextPageParam:e=>e.otherQueries?.nextCursor?{path:l.path,query:{...l.query,cursor:e.otherQueries.nextCursor}}:void 0}),d=u.data?.pages??[];if(d[0]?.measurement.state===`not_measured`)return null;let f=d.flatMap(e=>e.otherQueries?.items??[]),p=d[0]?.otherQueries?.totalEstimate??f.length,ee=e=>`${e.expectedSlotId}:${e.queryClass}`,te=q[n].technical.toLocaleLowerCase();return(0,H.jsxs)(`section`,{"aria-labelledby":`property-other-queries`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-other-queries`,className:`text-heading-16 text-heading`,children:Q.heading}),(0,H.jsx)(j,{text:Q.help})]}),u.data?(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[p,` `,p===1?`answer`:`answers`,` · `,te,` · `,Q.notCounted]}):null]}),u.isPending?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Loading…`}):u.isError&&f.length===0?(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-label-14 text-secondary`,children:[(0,H.jsx)(`span`,{role:`alert`,children:Q.loadError}),(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,onClick:()=>{u.refetch()},children:`Retry`})]}):f.length===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:Q.empty}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table min-w-[640px]`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Answers to other properties’ queries that cited this Property’s pages`}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{children:`Query`}),(0,H.jsx)(`th`,{children:`Assigned to`}),(0,H.jsx)(`th`,{children:`Pages cited`}),(0,H.jsx)(`th`,{children:(0,H.jsx)(`span`,{className:`sr-only`,children:`Answer`})})]})}),(0,H.jsx)(`tbody`,{children:f.map(t=>{let n=ee(t),r=o.has(n),i=`property-other-query-${encodeURIComponent(n)}`;return(0,H.jsxs)(V.Fragment,{children:[(0,H.jsxs)(`tr`,{children:[(0,H.jsxs)(`td`,{className:`text-secondary`,children:[(0,H.jsx)(`span`,{className:`block text-label-14-strong text-heading`,children:t.queryText}),(0,H.jsx)(`span`,{className:`mt-1 block text-label-12 text-muted`,children:[v(t.provider),t.location].filter(Boolean).join(` · `)})]}),(0,H.jsx)(`td`,{children:(0,H.jsx)(`ul`,{className:`space-y-1`,children:t.assignedTargetKeys.map(t=>(0,H.jsx)(`li`,{children:(0,H.jsx)(c,{to:`/projects/$projectName/properties/$targetKey`,params:{projectName:e,targetKey:t},search:M,className:`text-label-14 text-link hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:a.get(t)??t})},t))})}),(0,H.jsxs)(`td`,{children:[(0,H.jsx)(`ul`,{className:`space-y-1`,children:t.sources.map(e=>(0,H.jsx)(`li`,{className:`min-w-0`,children:(0,H.jsx)(I,{url:e.sourceUrl})},e.sourceUrl))}),t.sourcesTruncated?(0,H.jsxs)(`span`,{className:`mt-1 block text-label-12 text-muted`,children:[t.sourceCount,` pages in total`]}):null,t.evidenceComplete?null:(0,H.jsx)(`span`,{className:`mt-1 block text-label-12 text-muted`,children:Q.partlySaved})]}),(0,H.jsx)(`td`,{className:`text-right`,children:(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`ghost`,className:`h-auto pointer-coarse:min-h-11 max-w-full whitespace-normal py-2 text-left md:h-auto`,"aria-expanded":r,"aria-label":r?`Hide the answer for ${t.queryText}`:`Read the answer for ${t.queryText}`,"aria-controls":r?i:void 0,onClick:()=>s(e=>{let t=new Set(e);return t.delete(n)||t.add(n),t}),children:r?`Hide answer`:`Read answer`})})]}),r?(0,H.jsx)(`tr`,{children:(0,H.jsx)(`td`,{id:i,colSpan:4,className:`bg-surface-subtle px-4`,children:(0,H.jsx)(Ee,{project:e,targetKey:t.assignedTargetKeys[0],resultId:t.observationId})})}):null]},n)})})]})}),u.hasNextPage?(0,H.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-3 text-label-14 text-secondary`,children:[(0,H.jsxs)(`span`,{children:[`Showing `,f.length,` of `,p]}),(0,H.jsx)(g,{size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,disabled:u.isFetchingNextPage,onClick:()=>{u.fetchNextPage()},children:u.isFetchingNextPage?`Loading…`:`Show ${ye} more`})]}):null]})]})}function ze(e,t){let n=[e.marketKey?t??`the selected market`:null,e.provider?`the ${v(e.provider)} answer engine`:null,e.model?`the ${y(e.model)} model`:null,e.location?`location ${e.location}`:null,e.from||e.to?`a date range`:null,e.measurementRunId?`a saved check`:null].filter(e=>e!==null);return n.length===0?null:`AI Visibility is filtered to ${n.join(`, `)}. This page shows the latest measurement for ${R.allMarkets.toLocaleLowerCase()} and answer engines.`}function Be(){let{projectName:e,targetKey:t}=s({strict:!1}),r=a(),l=o({strict:!1}),d=(0,V.useMemo)(()=>le(l),[l]),[ee,te]=(0,V.useState)(new Set),h=e??``,y=t??``,re=!!h&&!!y,b=(0,V.useMemo)(()=>N(`portfolio`,se(p())),[]),x=re&&b,{canWrite:S}=ie(),C=u({...k({client:m,path:{name:h}}),enabled:x}),w=C.data?.active?.plan,ae=w?.schemaVersion===2?w:null,E=d.queryClass===`branded`||d.queryClass===`non-brand`?d.queryClass:null,oe=e=>ae?.assignments.some(t=>t.targetKey===y&&t.queryClass===e)??!1,O=E??(!oe(`non-brand`)&&oe(`branded`)?`branded`:`non-brand`);(0,V.useEffect)(()=>{ae&&!E&&r({to:`.`,replace:!0,search:e=>P(e,{queryClass:O})})},[ae,E,O,r]);let A=u({...ke(h,y,`branded`),enabled:x}),F=u({...ke(h,y,`non-brand`),enabled:x}),I=Ae(A.data),L=Ae(F.data),R=O===`branded`?A.data:F.data,z=O===`branded`?I:L,me=(O===`branded`?A.isError:F.isError)&&z===void 0,B=R?.measurement.displayedRunId;fe(h,{view:`property`,selection:{mode:`advanced`,scope:`property`,scopeKey:y,queryClass:O,limit:10,...B?{runId:B}:{}}});let U=z?.mentionCoverage.state===`unavailable`?De(z.mentionCoverage):void 0,he=R===void 0?void 0:R.measurement.completedAt??null,ge=R!==void 0&&(R.measurement.state===`not_measured`||R.nextAction.kind===`run_measurement`),W=e=>P(M(e),{measurementScope:`property`,measurementScopeKey:y,queryClass:O,measurementRunId:void 0,measurementRevision:void 0,measurementTo:void 0}),_e=u({...D({client:m,path:{name:h},query:ue(le(W(l)))}),enabled:x&&ge,retry:!1}).data,G=_e!==void 0&&_e.selection.measurement.measuredRevision!==null&&(_e.populations.find(e=>e.queryClass===O)?.summary.queryCount??0)>0,K={client:m,path:{name:h},query:{targetKey:y,queryClass:O,shape:ne.answers,limit:ye,...B?{runId:B}:{}}},J=i({...T(K),enabled:x&&R!==void 0,initialPageParam:K,getNextPageParam:e=>e.answers?.nextCursor?{path:K.path,query:{...K.query,cursor:e.answers.nextCursor}}:void 0}),Y=C.data?.active??null,X=Y?.plan.schemaVersion===2?Y.plan:null,Oe=Y!==null&&X===null,Z=X?.targets.find(e=>e.stableKey===y)??null,Q=ze(d,X?.reportingScopes?.find(e=>e.stableKey===d.marketKey)?.label),Be=(0,V.useMemo)(()=>{if(!X)return[];let e=new Map(X.querySnapshots.map(e=>[e.queryId,e.queryText]));return[...new Set(X.assignments.filter(e=>e.targetKey===y&&e.queryClass===O).flatMap(t=>{let n=e.get(t.queryId);return n===void 0?[]:[n]}))].sort((e,t)=>e.localeCompare(t))},[X,y,O]),Ve=(0,V.useMemo)(()=>Z?.urlMatchers.map(pe)??[],[Z]),He=(0,V.useMemo)(()=>new Map((X?.targets??[]).map(e=>[e.stableKey,e.label])),[X]),Ue=(0,V.useMemo)(()=>X?.groups.filter(e=>e.targetKeys.includes(y))??[],[X,y]),$=(0,V.useMemo)(()=>(J.data?.pages??[]).flatMap(e=>e.answers?.items??[]),[J.data]),We=J.data?.pages[0]?.answers?.totalEstimate??$.length,Ge=(J.data?.pages??[]).length>0&&(J.data?.pages??[]).every(e=>e.answers===void 0),Ke=J.data?.pages[0]?.measurement.state,qe=(0,H.jsxs)(c,{to:`/projects/$projectName`,params:{projectName:h},search:M,className:`inline-flex items-center gap-1 text-label-12 text-muted hover:text-strong`,children:[(0,H.jsx)(n,{className:`size-3.5`,"aria-hidden":`true`}),`Back to AI Visibility`]});if(!re)return(0,H.jsx)(`div`,{className:`page-container`,children:(0,H.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`Missing project name or Property key in URL.`})});if(!b)return(0,H.jsxs)(`div`,{className:`page-container space-y-3`,children:[qe,(0,H.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`This view is not available here.`})]});if(C.isPending&&!C.isError)return(0,H.jsx)(`div`,{className:`page-container`,children:(0,H.jsxs)(`div`,{role:`status`,"aria-live":`polite`,children:[(0,H.jsx)(`span`,{className:`sr-only`,children:`Loading Property`}),(0,H.jsx)(`div`,{className:`h-32 animate-pulse rounded-md bg-surface-subtle`,"aria-hidden":`true`})]})});let Je=C.isError&&C.data===void 0,Ye=A.isError&&A.data===void 0,Xe=F.isError&&F.data===void 0;return Je||Ye&&Xe?(0,H.jsxs)(`div`,{className:`page-container space-y-3`,children:[qe,(0,H.jsx)(`p`,{role:`alert`,className:`text-copy-14 text-negative`,children:`Could not load this Property.`}),(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,onClick:()=>{C.refetch(),A.refetch(),F.refetch()},children:`Try again`})]}):!X||!Z?(0,H.jsxs)(`div`,{className:`page-container space-y-3`,children:[qe,(0,H.jsx)(`p`,{role:`status`,className:`text-copy-14 text-secondary`,children:X?`This Property is not in the published setup. It may have been renamed or removed.`:`A Property page needs a published advanced measurement setup. Republish setup from the project Portfolio tab.`}),(0,H.jsx)(g,{asChild:!0,type:`button`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,children:(0,H.jsx)(c,{to:`/projects/$projectName/portfolio`,params:{projectName:h},children:S?Oe?`Republish setup`:`Open measurement setup`:`View measurement setup`})})]}):(0,H.jsxs)(`div`,{className:`page-container space-y-8`,children:[(0,H.jsxs)(`div`,{className:`page-header`,children:[(0,H.jsxs)(`div`,{className:`page-header-left`,children:[qe,(0,H.jsx)(`h1`,{className:`page-title mt-2`,children:Z.label}),(0,H.jsxs)(`p`,{className:`page-subtitle`,children:[`Property in `,h,Q?(0,H.jsxs)(H.Fragment,{children:[` · Filters not applied `,(0,H.jsx)(j,{text:Q})]}):null]})]}),(0,H.jsxs)(`div`,{className:`page-header-right`,children:[R?(0,H.jsx)(_,{tone:be[R.measurement.state].tone,children:be[R.measurement.state].label}):null,z&&z.flags>0?(0,H.jsxs)(_,{tone:`caution`,children:[z.flags,` flagged`]}):null]})]}),(0,H.jsx)(Ne,{branded:I,nonBrand:L,brandedError:A.isError,nonBrandError:F.isError,onRetry:e=>{e===`branded`?A.refetch():F.refetch()}}),ge?(0,H.jsxs)(`section`,{className:`flex flex-wrap items-center justify-between gap-3 py-4`,"aria-label":`Measurement next step`,children:[(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:f()?ce:S?`Run a measurement from the project overview to collect this Property’s coverage and source evidence.${G?` AI Visibility still shows the last results.`:``}`:`This Property needs a new measurement before coverage and source evidence are available.`}),(0,H.jsx)(g,{asChild:!0,type:`button`,className:`h-11 px-4 text-button-14 md:h-11`,children:(0,H.jsx)(c,{to:`/projects/$projectName`,params:{projectName:h},search:G?W:M,children:G?`See the last results`:S?`Go to AI Visibility`:`View AI Visibility`})})]}):null,(0,H.jsxs)(`div`,{className:`flex flex-wrap items-end gap-4 py-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-1`,children:[(0,H.jsx)(`label`,{htmlFor:`property-query-class`,className:`block text-label-14-strong text-heading`,children:`Query type`}),(0,H.jsxs)(`select`,{id:`property-query-class`,value:O,onChange:e=>{let t=e.target.value===`branded`?`branded`:`non-brand`;r({to:`.`,search:e=>P(e,{queryClass:t})})},className:`h-11 rounded-md border border-default bg-surface px-3 text-label-14 text-primary focus:outline-none focus:ring-2 focus:ring-mono-400`,children:[(0,H.jsx)(`option`,{value:`non-brand`,children:q[`non-brand`].technical}),(0,H.jsx)(`option`,{value:`branded`,children:q.branded.technical})]})]}),(0,H.jsx)(je,{measuredAt:he,unmeasuredReason:U,queryClass:O})]}),(0,H.jsx)(Pe,{row:z,queryClass:O,isError:me}),(0,H.jsx)(Fe,{project:h,targetKey:y,queryClass:O}),(0,H.jsx)(Ie,{questions:Be,queryClass:O}),(0,H.jsx)(ve,{projectName:h,targetKey:y,published:Z,activeRevision:Y.revision,publishedBrandNames:X.identities.projectBrand.names}),(0,H.jsx)(Le,{urls:Ve}),(0,H.jsx)(Me,{project:h,groups:Ue}),(0,H.jsxs)(`section`,{"aria-labelledby":`property-evidence`,className:`page-section-divider`,children:[(0,H.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,H.jsx)(`div`,{children:(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`h2`,{id:`property-evidence`,className:`text-heading-16 text-heading`,children:`Answers the engines gave`}),(0,H.jsx)(j,{text:`Answers for the queries assigned to this Property in the displayed measurement. Mentioned and cited are independent. Missing answer text shows Not measured. Open an answer to read its text and sources, including any other Property it named.`})]})}),$.length>0?(0,H.jsxs)(`p`,{className:`supporting-copy`,children:[$.length,` of `,We]}):null]}),me?(0,H.jsxs)(`p`,{className:`text-copy-14 text-secondary`,children:[`Evidence for `,q[O].technical.toLocaleLowerCase(),` is unavailable. Retry that query type above.`]}):J.isPending&&$.length===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Loading evidence…`}):J.isError&&$.length===0?(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-label-14 text-secondary`,children:[(0,H.jsx)(`span`,{role:`alert`,children:`Evidence could not be loaded.`}),(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,onClick:()=>{J.refetch()},children:`Retry evidence`})]}):Ke===`not_measured`?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:f()?ce:`Not measured yet. Run a measurement to collect the answers for this Property.`}):Ge?(0,H.jsx)(`p`,{role:`alert`,className:`text-copy-14 text-caution`,children:`This measurement was returned in an older format, so the answers cannot be shown here. The numbers above are unaffected.`}):$.length===0?(0,H.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`No answers matched this Property in the displayed measurement.`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`property-answer-table-container overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`evidence-table property-evidence-table`,children:[(0,H.jsx)(`caption`,{className:`sr-only`,children:`Answers measured for this Property`}),(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{children:`Query`}),(0,H.jsx)(`th`,{children:`Mentioned in the answer`}),(0,H.jsx)(`th`,{children:`Cited as a source`}),(0,H.jsx)(`th`,{children:`Sources`}),(0,H.jsx)(`th`,{children:(0,H.jsx)(`span`,{className:`sr-only`,children:`Sources detail`})})]})}),(0,H.jsx)(`tbody`,{children:$.map(e=>{let t=xe(e),n=ee.has(t),r=`property-answer-${encodeURIComponent(t)}`;return(0,H.jsxs)(V.Fragment,{children:[(0,H.jsxs)(`tr`,{className:`property-answer-summary`,children:[(0,H.jsxs)(`td`,{className:`text-secondary`,children:[(0,H.jsx)(`h3`,{className:`text-heading-14 text-heading`,children:e.queryText}),(0,H.jsx)(`span`,{className:`mt-1 block text-label-12 text-muted`,children:[v(e.provider),e.location].filter(Boolean).join(` · `)}),e.historical||e.bridged?(0,H.jsx)(`span`,{className:`mt-1 flex`,children:(0,H.jsx)(_,{tone:`caution`,children:`Historical`})}):null]}),(0,H.jsxs)(`td`,{children:[(0,H.jsx)(`span`,{className:`property-evidence-mobile-label`,"aria-hidden":`true`,children:`Mentioned`}),(0,H.jsx)(Se,{row:e})]}),(0,H.jsxs)(`td`,{children:[(0,H.jsx)(`span`,{className:`property-evidence-mobile-label`,"aria-hidden":`true`,children:`Cited`}),(0,H.jsx)(we,{row:e})]}),(0,H.jsxs)(`td`,{className:`tabular-nums text-secondary`,children:[(0,H.jsx)(`span`,{className:`property-evidence-mobile-label`,"aria-hidden":`true`,children:de}),e.cited===null?Ce:e.sources.length]}),(0,H.jsx)(`td`,{className:`text-right`,children:(0,H.jsx)(g,{type:`button`,size:`sm`,variant:`ghost`,className:`h-auto pointer-coarse:min-h-11 max-w-full whitespace-normal py-2 text-left md:h-auto`,"aria-expanded":n,"aria-label":n?`Hide the answer for ${e.queryText}`:`Read the answer for ${e.queryText}`,"aria-controls":n?r:void 0,onClick:()=>te(e=>{let n=new Set(e);return n.delete(t)||n.add(t),n}),children:n?`Hide answer`:`Read answer`})})]}),n?(0,H.jsx)(`tr`,{className:`property-answer-detail`,children:(0,H.jsxs)(`td`,{id:r,colSpan:5,className:`bg-surface-subtle px-4`,children:[(0,H.jsx)(Ee,{project:h,targetKey:y,resultId:e.observationId}),(0,H.jsx)(Te,{row:e})]})}):null]},t)})})]})}),J.hasNextPage?(0,H.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-3 text-label-14 text-secondary`,children:[(0,H.jsxs)(`span`,{children:[`Showing `,$.length,` of `,We]}),J.isFetchNextPageError?(0,H.jsx)(`span`,{role:`alert`,children:`Could not load more evidence.`}):null,(0,H.jsx)(g,{size:`sm`,variant:`outline`,className:`h-11 px-4 text-button-14 md:h-11`,disabled:J.isFetchingNextPage,onClick:()=>{J.fetchNextPage()},children:J.isFetchingNextPage?`Loading…`:J.isFetchNextPageError?`Retry more evidence`:`Show ${ye} more`})]}):null]})]}),R?(0,H.jsx)(Re,{project:h,targetKey:y,queryClass:O,runId:B,targetLabels:He}):null]})}export{Y as EVIDENCE_LABELS,Be as MeasurementPropertyPage,Q as OTHER_QUERIES_COPY};
|