@thehammer/template-verification 0.1.2 → 0.1.3
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/dist/style.css +1 -1
- package/dist/template-verification.js +166 -166
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wider:.05em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-top-1\.5{top:calc(var(--spacing) * -1.5)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-16{bottom:calc(var(--spacing) * 16)}.z-50{z-index:50}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-4{margin-left:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.w-5{width:calc(var(--spacing) * 5)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-56{width:calc(var(--spacing) * 56)}.w-full{width:100%}.min-w-\[1rem\]{min-width:1rem}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-\[repeat\(auto-fill\,minmax\(4\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(4.5rem,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-50{background-color:var(--color-green-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-pre-line{white-space:pre-line}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-600\/20{--tw-ring-color:#dd740033}@supports (color:color-mix(in lab,red,red)){.ring-amber-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-amber-600) 20%, transparent)}}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.ring-gray-400\/20{--tw-ring-color:#99a1af33}@supports (color:color-mix(in lab,red,red)){.ring-gray-400\/20{--tw-ring-color:color-mix(in oklab, var(--color-gray-400) 20%, transparent)}}.ring-green-600\/20{--tw-ring-color:#00a54433}@supports (color:color-mix(in lab,red,red)){.ring-green-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-green-600) 20%, transparent)}}.ring-red-600\/20{--tw-ring-color:#e4001433}@supports (color:color-mix(in lab,red,red)){.ring-red-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-red-600) 20%, transparent)}}.ring-yellow-600\/20{--tw-ring-color:#cd890033}@supports (color:color-mix(in lab,red,red)){.ring-yellow-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-yellow-600) 20%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-gray-300:hover{--tw-ring-color:var(--color-gray-300)}}.focus\:border-gray-400:focus{border-color:var(--color-gray-400)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-gray-200:focus{--tw-ring-color:var(--color-gray-200)}}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@media print{.tv-chrome{display:none!important}}
|
|
1
|
+
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wider:.05em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-top-1\.5{top:calc(var(--spacing) * -1.5)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-16{bottom:calc(var(--spacing) * 16)}.z-50{z-index:50}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-4{margin-left:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.w-5{width:calc(var(--spacing) * 5)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-56{width:calc(var(--spacing) * 56)}.w-full{width:100%}.min-w-\[1rem\]{min-width:1rem}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-\[repeat\(auto-fill\,minmax\(4\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(4.5rem,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-50{background-color:var(--color-green-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-pre-line{white-space:pre-line}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-600\/20{--tw-ring-color:#dd740033}@supports (color:color-mix(in lab,red,red)){.ring-amber-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-amber-600) 20%, transparent)}}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.ring-gray-400\/20{--tw-ring-color:#99a1af33}@supports (color:color-mix(in lab,red,red)){.ring-gray-400\/20{--tw-ring-color:color-mix(in oklab, var(--color-gray-400) 20%, transparent)}}.ring-green-600\/20{--tw-ring-color:#00a54433}@supports (color:color-mix(in lab,red,red)){.ring-green-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-green-600) 20%, transparent)}}.ring-red-600\/20{--tw-ring-color:#e4001433}@supports (color:color-mix(in lab,red,red)){.ring-red-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-red-600) 20%, transparent)}}.ring-yellow-600\/20{--tw-ring-color:#cd890033}@supports (color:color-mix(in lab,red,red)){.ring-yellow-600\/20{--tw-ring-color:color-mix(in oklab, var(--color-yellow-600) 20%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-gray-300:hover{--tw-ring-color:var(--color-gray-300)}}}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@media print{.tv-chrome{display:none!important}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { DanxDialog as G, DanxFile as
|
|
3
|
-
const A = "tv-chrome",
|
|
1
|
+
import { ref as D, watch as pe, defineComponent as M, computed as d, openBlock as l, createElementBlock as i, normalizeClass as U, createElementVNode as a, toDisplayString as p, createCommentVNode as h, Fragment as O, createVNode as I, unref as m, withCtx as j, createTextVNode as E, renderList as T, createBlock as F, withKeys as me, withModifiers as xe, renderSlot as ge, withDirectives as ye, isRef as te, vModelCheckbox as _e } from "vue";
|
|
2
|
+
import { DanxDialog as G, DanxFile as be, DanxButton as Y, DanxInput as he, DanxFileViewer as we, DanxIcon as ke, gearIcon as Se } from "@thehammer/danx-ui";
|
|
3
|
+
const A = "tv-chrome", le = "template-verification:enabled";
|
|
4
4
|
let R = null;
|
|
5
|
-
function
|
|
5
|
+
function Ve(e) {
|
|
6
6
|
var t;
|
|
7
7
|
try {
|
|
8
8
|
return ((t = globalThis.localStorage) == null ? void 0 : t.getItem(e)) ?? null;
|
|
@@ -10,7 +10,7 @@ function $e(e) {
|
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function $e(e, t) {
|
|
14
14
|
var n;
|
|
15
15
|
try {
|
|
16
16
|
(n = globalThis.localStorage) == null || n.setItem(e, t);
|
|
@@ -18,27 +18,27 @@ function Ve(e, t) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function Ce(e) {
|
|
21
|
-
const t =
|
|
21
|
+
const t = Ve(le);
|
|
22
22
|
return t === null ? e : t === "true";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const t =
|
|
26
|
-
return
|
|
24
|
+
function ae(e) {
|
|
25
|
+
const t = D(Ce((e == null ? void 0 : e.defaultEnabled) ?? !1));
|
|
26
|
+
return pe(t, (n) => $e(le, n ? "true" : "false")), {
|
|
27
27
|
enabled: t,
|
|
28
28
|
data: (e == null ? void 0 : e.data) ?? {},
|
|
29
29
|
saveOverride: e == null ? void 0 : e.saveOverride,
|
|
30
30
|
workflowInputId: e == null ? void 0 : e.workflowInputId,
|
|
31
|
-
comparisonOpen:
|
|
31
|
+
comparisonOpen: D(!1)
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return R || (R =
|
|
34
|
+
function se() {
|
|
35
|
+
return R || (R = ae()), R;
|
|
36
36
|
}
|
|
37
37
|
function Bt(e) {
|
|
38
|
-
R =
|
|
38
|
+
R = ae(e);
|
|
39
39
|
}
|
|
40
40
|
function Q() {
|
|
41
|
-
const e =
|
|
41
|
+
const e = se();
|
|
42
42
|
return {
|
|
43
43
|
enabled: e.enabled,
|
|
44
44
|
data: e.data,
|
|
@@ -50,28 +50,28 @@ function Q() {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
function Oe() {
|
|
53
|
-
return
|
|
53
|
+
return se().comparisonOpen;
|
|
54
54
|
}
|
|
55
55
|
function W(e) {
|
|
56
56
|
return typeof e != "number" || Number.isNaN(e) ? "unverifiable" : e <= 2 ? "low" : e === 3 ? "medium" : "high";
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Ie = {
|
|
59
59
|
high: "bg-green-50 text-green-700 ring-1 ring-inset ring-green-600/20",
|
|
60
60
|
medium: "bg-yellow-50 text-yellow-700 ring-1 ring-inset ring-yellow-600/20",
|
|
61
61
|
low: "bg-red-50 text-red-700 ring-1 ring-inset ring-red-600/20",
|
|
62
62
|
unverifiable: "bg-gray-50 text-gray-500 ring-1 ring-inset ring-gray-400/20"
|
|
63
|
-
},
|
|
63
|
+
}, Le = {
|
|
64
64
|
high: "High",
|
|
65
65
|
medium: "Medium",
|
|
66
66
|
low: "Low",
|
|
67
67
|
unverifiable: "Unverifiable"
|
|
68
|
-
},
|
|
68
|
+
}, ie = ["override", "extracted", "claim"];
|
|
69
69
|
function X(e) {
|
|
70
70
|
return e ? e.resolved && e.resolved.source && e.resolved.source !== "none" ? e.resolved : Ue(e.candidates) : { value: null, source: "none" };
|
|
71
71
|
}
|
|
72
72
|
function Ue(e) {
|
|
73
73
|
if (e)
|
|
74
|
-
for (const t of
|
|
74
|
+
for (const t of ie) {
|
|
75
75
|
const n = e[t];
|
|
76
76
|
if (n != null)
|
|
77
77
|
return { value: n.value, source: t };
|
|
@@ -92,12 +92,12 @@ function q(e) {
|
|
|
92
92
|
const n = String(t).trim();
|
|
93
93
|
return n === "" ? null : n;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function re(e) {
|
|
96
96
|
return e ? typeof e.discrepancy == "boolean" ? e.discrepancy : De(e.candidates) : !1;
|
|
97
97
|
}
|
|
98
98
|
function De(e) {
|
|
99
99
|
if (!e) return !1;
|
|
100
|
-
const t =
|
|
100
|
+
const t = ie.map((n) => e[n]).filter((n) => n != null).map((n) => Ee(n.value));
|
|
101
101
|
return t.length < 2 ? !1 : new Set(t).size > 1;
|
|
102
102
|
}
|
|
103
103
|
function Ee(e) {
|
|
@@ -126,7 +126,7 @@ const Ae = ["data-status", "title"], Ne = {
|
|
|
126
126
|
}, je = {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "tv-confidence-label"
|
|
129
|
-
}, z = /* @__PURE__ */
|
|
129
|
+
}, z = /* @__PURE__ */ M({
|
|
130
130
|
__name: "ConfidenceIcon",
|
|
131
131
|
props: {
|
|
132
132
|
confidence: {},
|
|
@@ -144,9 +144,9 @@ const Ae = ["data-status", "title"], Ne = {
|
|
|
144
144
|
low: "✕",
|
|
145
145
|
// x
|
|
146
146
|
unverifiable: "?"
|
|
147
|
-
}, r = d(() => f[n.value]), o = d(() =>
|
|
147
|
+
}, r = d(() => f[n.value]), o = d(() => Ie[n.value]), c = d(() => Le[n.value]);
|
|
148
148
|
return (g, b) => (l(), i("span", {
|
|
149
|
-
class:
|
|
149
|
+
class: U(["tv-confidence-icon inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-semibold leading-none", o.value]),
|
|
150
150
|
"data-status": n.value,
|
|
151
151
|
title: c.value
|
|
152
152
|
}, [
|
|
@@ -155,14 +155,14 @@ const Ae = ["data-status", "title"], Ne = {
|
|
|
155
155
|
], 10, Ae));
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
function
|
|
158
|
+
function oe(e) {
|
|
159
159
|
if (!e || e.length === 0) return [];
|
|
160
160
|
const t = /* @__PURE__ */ new Map();
|
|
161
161
|
for (const n of e) {
|
|
162
162
|
const f = Fe(n);
|
|
163
163
|
let r = t.get(f);
|
|
164
164
|
r || (r = {
|
|
165
|
-
fileLabel:
|
|
165
|
+
fileLabel: Pe(n),
|
|
166
166
|
fileUrl: n.file_url,
|
|
167
167
|
file: n.file,
|
|
168
168
|
sources: []
|
|
@@ -174,14 +174,14 @@ function Fe(e) {
|
|
|
174
174
|
const t = e.file_name ?? e.file_id ?? e.stored_file_id ?? e.source_id ?? e.id;
|
|
175
175
|
return t != null ? String(t) : "__unknown__";
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Pe(e) {
|
|
178
178
|
var t;
|
|
179
179
|
return (t = e.file) != null && t.name ? e.file.name : e.file_name ? e.file_name : e.file_id !== void 0 && e.file_id !== null ? `File ${e.file_id}` : e.stored_file_id !== void 0 && e.stored_file_id !== null ? `File ${e.stored_file_id}` : e.source_type ? e.source_type : "Source";
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function ue(e) {
|
|
182
182
|
return e.page !== void 0 && e.page !== null ? `Page ${e.page}` : e.explanation ? String(e.explanation) : e.source_type ? String(e.source_type) : "Citation";
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const Me = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" }, Re = { class: "tv-modal-resolved rounded-lg border border-gray-200 bg-gray-50 p-3" }, ze = { class: "mt-1.5 flex flex-wrap items-center gap-2" }, Be = { class: "tv-resolved-value text-lg font-semibold leading-tight text-gray-900" }, Ke = { class: "mt-1 font-mono text-[11px] text-gray-400" }, Ye = { class: "tv-resolved-source" }, Ge = {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "tv-discrepancy mt-2 inline-flex items-center gap-1 rounded-full bg-amber-50 px-2 py-0.5 text-[11px] font-medium text-amber-700 ring-1 ring-inset ring-amber-600/20"
|
|
187
187
|
}, He = { class: "tv-modal-candidates" }, qe = { class: "mt-1.5 divide-y divide-gray-100 rounded-lg border border-gray-200" }, Je = { class: "w-20 shrink-0 text-xs font-medium text-gray-500" }, Qe = { class: "flex-1 truncate font-mono text-sm text-gray-800" }, We = { class: "shrink-0 text-[11px] text-gray-400" }, Xe = {
|
|
@@ -205,7 +205,7 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
205
205
|
}, ft = {
|
|
206
206
|
key: 1,
|
|
207
207
|
class: "tv-modal-resolution flex flex-col gap-2 border-t border-gray-200 pt-4"
|
|
208
|
-
}, vt = { class: "flex flex-wrap gap-2" }, pt = { class: "flex items-center gap-2" }, mt = /* @__PURE__ */
|
|
208
|
+
}, vt = { class: "flex flex-wrap gap-2" }, pt = { class: "flex items-center gap-2" }, mt = /* @__PURE__ */ M({
|
|
209
209
|
__name: "VerificationModal",
|
|
210
210
|
props: {
|
|
211
211
|
modelValue: { type: Boolean },
|
|
@@ -223,12 +223,12 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
223
223
|
var s;
|
|
224
224
|
return W((s = c.value) == null ? void 0 : s.confidence);
|
|
225
225
|
}
|
|
226
|
-
),
|
|
226
|
+
), _ = d(() => H(n.meta)), v = d(() => q(n.meta)), V = d(() => {
|
|
227
227
|
var s;
|
|
228
|
-
return
|
|
228
|
+
return oe((s = c.value) == null ? void 0 : s.sources);
|
|
229
229
|
}), L = d(
|
|
230
|
-
() =>
|
|
231
|
-
), C =
|
|
230
|
+
() => V.value.map((s) => s.file).filter((s) => !!s)
|
|
231
|
+
), C = D(null), k = d({
|
|
232
232
|
get: () => C.value !== null,
|
|
233
233
|
set: (s) => {
|
|
234
234
|
s || (C.value = null);
|
|
@@ -252,49 +252,49 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
252
252
|
value: g.value.value,
|
|
253
253
|
detail: g.value.claim_set_label ?? void 0
|
|
254
254
|
}), s;
|
|
255
|
-
}),
|
|
255
|
+
}), P = D(""), y = D(!1);
|
|
256
256
|
function S(s) {
|
|
257
257
|
return s == null ? "Unverifiable" : `${s}/5`;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function $(s) {
|
|
260
260
|
return s == null ? "" : String(s);
|
|
261
261
|
}
|
|
262
262
|
async function K(s, u) {
|
|
263
|
-
if (!(!n.save ||
|
|
264
|
-
|
|
263
|
+
if (!(!n.save || y.value)) {
|
|
264
|
+
y.value = !0;
|
|
265
265
|
try {
|
|
266
|
-
const
|
|
267
|
-
f("saved",
|
|
266
|
+
const x = await n.save(s, u);
|
|
267
|
+
f("saved", x);
|
|
268
268
|
} finally {
|
|
269
|
-
|
|
269
|
+
y.value = !1;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const ce = () => {
|
|
274
274
|
var s;
|
|
275
275
|
return K(Z((s = c.value) == null ? void 0 : s.value), "extracted");
|
|
276
|
-
},
|
|
276
|
+
}, de = () => {
|
|
277
277
|
var s;
|
|
278
278
|
return K(Z((s = g.value) == null ? void 0 : s.value), "claim");
|
|
279
|
-
},
|
|
279
|
+
}, fe = () => K(P.value, "custom");
|
|
280
280
|
function Z(s) {
|
|
281
281
|
return s == null ? null : String(s);
|
|
282
282
|
}
|
|
283
283
|
return (s, u) => (l(), i(O, null, [
|
|
284
|
-
|
|
284
|
+
I(m(G), {
|
|
285
285
|
modelValue: r.value,
|
|
286
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
286
|
+
"onUpdate:modelValue": u[1] || (u[1] = (x) => r.value = x),
|
|
287
287
|
title: e.label || "Verification detail",
|
|
288
288
|
"close-x": "",
|
|
289
|
-
class:
|
|
289
|
+
class: U(m(A))
|
|
290
290
|
}, {
|
|
291
291
|
default: j(() => [
|
|
292
|
-
a("div",
|
|
292
|
+
a("div", Me, [
|
|
293
293
|
a("section", Re, [
|
|
294
294
|
u[4] || (u[4] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Resolved value ", -1)),
|
|
295
295
|
a("div", ze, [
|
|
296
|
-
a("span", Be, p(
|
|
297
|
-
|
|
296
|
+
a("span", Be, p($(o.value.value) || "—"), 1),
|
|
297
|
+
I(z, {
|
|
298
298
|
status: w.value,
|
|
299
299
|
"show-label": ""
|
|
300
300
|
}, null, 8, ["status"])
|
|
@@ -308,13 +308,13 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
308
308
|
a("section", He, [
|
|
309
309
|
u[5] || (u[5] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Candidates ", -1)),
|
|
310
310
|
a("div", qe, [
|
|
311
|
-
(l(!0), i(O, null, T(B.value, (
|
|
312
|
-
key:
|
|
311
|
+
(l(!0), i(O, null, T(B.value, (x) => (l(), i("div", {
|
|
312
|
+
key: x.source,
|
|
313
313
|
class: "tv-candidate-row flex items-center gap-3 px-3 py-2"
|
|
314
314
|
}, [
|
|
315
|
-
a("span", Je, p(
|
|
316
|
-
a("span", Qe, p(
|
|
317
|
-
a("span", We, p(
|
|
315
|
+
a("span", Je, p(x.source), 1),
|
|
316
|
+
a("span", Qe, p($(x.value)), 1),
|
|
317
|
+
a("span", We, p(x.detail), 1)
|
|
318
318
|
]))), 128))
|
|
319
319
|
])
|
|
320
320
|
]),
|
|
@@ -323,16 +323,16 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
323
323
|
u[6] || (u[6] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Confidence ", -1)),
|
|
324
324
|
a("div", et, p(S(c.value.confidence)), 1)
|
|
325
325
|
]),
|
|
326
|
-
|
|
326
|
+
_.value ? (l(), i(O, { key: 0 }, [
|
|
327
327
|
u[7] || (u[7] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Reasoning ", -1)),
|
|
328
|
-
a("p", tt, p(
|
|
328
|
+
a("p", tt, p(_.value), 1)
|
|
329
329
|
], 64)) : h("", !0),
|
|
330
330
|
v.value ? (l(), i(O, { key: 1 }, [
|
|
331
331
|
u[8] || (u[8] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Cited text ", -1)),
|
|
332
332
|
a("blockquote", nt, [
|
|
333
333
|
E(p(v.value) + " ", 1),
|
|
334
334
|
a("span", {
|
|
335
|
-
class:
|
|
335
|
+
class: U([
|
|
336
336
|
"tv-cited-verified ml-1 not-italic text-[11px] font-medium",
|
|
337
337
|
c.value.cited_text_verified ? "text-green-600" : "text-gray-400"
|
|
338
338
|
])
|
|
@@ -342,36 +342,36 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
342
342
|
])) : h("", !0),
|
|
343
343
|
a("section", lt, [
|
|
344
344
|
u[9] || (u[9] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Sources ", -1)),
|
|
345
|
-
|
|
346
|
-
(l(!0), i(O, null, T(
|
|
347
|
-
key:
|
|
345
|
+
V.value.length === 0 ? (l(), i("div", at, " No source recorded ")) : (l(), i("div", st, [
|
|
346
|
+
(l(!0), i(O, null, T(V.value, (x) => (l(), i("div", {
|
|
347
|
+
key: x.fileLabel,
|
|
348
348
|
class: "tv-source-group flex flex-col items-center gap-1"
|
|
349
349
|
}, [
|
|
350
350
|
a("div", it, [
|
|
351
|
-
|
|
351
|
+
x.file ? (l(), F(m(be), {
|
|
352
352
|
key: 0,
|
|
353
|
-
file:
|
|
353
|
+
file: x.file,
|
|
354
354
|
size: "sm",
|
|
355
355
|
class: "tv-source-thumb cursor-pointer rounded-md ring-1 ring-gray-200 transition duration-150 hover:-translate-y-0.5 hover:shadow-md hover:ring-gray-300",
|
|
356
|
-
onClick: (ee) => N(
|
|
357
|
-
}, null, 8, ["file", "onClick"])) :
|
|
356
|
+
onClick: (ee) => N(x)
|
|
357
|
+
}, null, 8, ["file", "onClick"])) : x.fileUrl ? (l(), i("a", {
|
|
358
358
|
key: 1,
|
|
359
|
-
href:
|
|
359
|
+
href: x.fileUrl,
|
|
360
360
|
class: "tv-source-link flex h-16 w-16 items-center justify-center rounded-md bg-gray-50 p-1 text-center text-[11px] font-medium leading-tight text-blue-600 underline ring-1 ring-gray-200",
|
|
361
361
|
target: "_blank",
|
|
362
362
|
rel: "noopener"
|
|
363
|
-
}, p(
|
|
364
|
-
|
|
363
|
+
}, p(x.fileLabel), 9, rt)) : (l(), i("span", ot, p(x.fileLabel), 1)),
|
|
364
|
+
x.sources.length > 1 ? (l(), i("span", ut, "×" + p(x.sources.length), 1)) : h("", !0)
|
|
365
365
|
]),
|
|
366
366
|
a("span", {
|
|
367
367
|
class: "tv-source-file-label w-full truncate text-center text-[11px] text-gray-500",
|
|
368
|
-
title:
|
|
369
|
-
}, p(
|
|
370
|
-
|
|
371
|
-
(l(!0), i(O, null, T(
|
|
372
|
-
key:
|
|
368
|
+
title: x.fileLabel
|
|
369
|
+
}, p(x.fileLabel), 9, ct),
|
|
370
|
+
x.sources.length > 1 ? (l(), i("ul", dt, [
|
|
371
|
+
(l(!0), i(O, null, T(x.sources, (ee, ve) => (l(), i("li", {
|
|
372
|
+
key: ve,
|
|
373
373
|
class: "tv-source-row rounded bg-gray-100 px-1 py-0.5 font-mono text-[10px] text-gray-500"
|
|
374
|
-
}, p(
|
|
374
|
+
}, p(m(ue)(ee)), 1))), 128))
|
|
375
375
|
])) : h("", !0)
|
|
376
376
|
]))), 128))
|
|
377
377
|
]))
|
|
@@ -379,26 +379,26 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
379
379
|
e.save ? (l(), i("section", ft, [
|
|
380
380
|
u[13] || (u[13] = a("div", { class: "text-[11px] font-semibold uppercase tracking-wider text-gray-400" }, " Resolve ", -1)),
|
|
381
381
|
a("div", vt, [
|
|
382
|
-
c.value ? (l(), F(
|
|
382
|
+
c.value ? (l(), F(m(Y), {
|
|
383
383
|
key: 0,
|
|
384
384
|
variant: "info",
|
|
385
385
|
size: "sm",
|
|
386
386
|
class: "tv-accept-extracted",
|
|
387
|
-
disabled:
|
|
388
|
-
onClick:
|
|
387
|
+
disabled: y.value,
|
|
388
|
+
onClick: ce
|
|
389
389
|
}, {
|
|
390
390
|
default: j(() => [...u[10] || (u[10] = [
|
|
391
391
|
E("Accept extracted", -1)
|
|
392
392
|
])]),
|
|
393
393
|
_: 1
|
|
394
394
|
}, 8, ["disabled"])) : h("", !0),
|
|
395
|
-
g.value ? (l(), F(
|
|
395
|
+
g.value ? (l(), F(m(Y), {
|
|
396
396
|
key: 1,
|
|
397
397
|
variant: "muted",
|
|
398
398
|
size: "sm",
|
|
399
399
|
class: "tv-accept-claim",
|
|
400
|
-
disabled:
|
|
401
|
-
onClick:
|
|
400
|
+
disabled: y.value,
|
|
401
|
+
onClick: de
|
|
402
402
|
}, {
|
|
403
403
|
default: j(() => [...u[11] || (u[11] = [
|
|
404
404
|
E("Accept claim", -1)
|
|
@@ -407,20 +407,20 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
407
407
|
}, 8, ["disabled"])) : h("", !0)
|
|
408
408
|
]),
|
|
409
409
|
a("div", pt, [
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
]),
|
|
418
|
-
|
|
410
|
+
I(m(he), {
|
|
411
|
+
modelValue: P.value,
|
|
412
|
+
"onUpdate:modelValue": u[0] || (u[0] = (x) => P.value = x),
|
|
413
|
+
size: "sm",
|
|
414
|
+
class: "tv-custom-input flex-1",
|
|
415
|
+
placeholder: "Type a custom value",
|
|
416
|
+
disabled: y.value
|
|
417
|
+
}, null, 8, ["modelValue", "disabled"]),
|
|
418
|
+
I(m(Y), {
|
|
419
419
|
variant: "success",
|
|
420
420
|
size: "sm",
|
|
421
421
|
class: "tv-accept-custom",
|
|
422
|
-
disabled:
|
|
423
|
-
onClick:
|
|
422
|
+
disabled: y.value,
|
|
423
|
+
onClick: fe
|
|
424
424
|
}, {
|
|
425
425
|
default: j(() => [...u[12] || (u[12] = [
|
|
426
426
|
E("Type custom", -1)
|
|
@@ -433,17 +433,17 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["modelValue", "title", "class"]),
|
|
436
|
-
C.value ? (l(), F(
|
|
436
|
+
C.value ? (l(), F(m(G), {
|
|
437
437
|
key: 0,
|
|
438
438
|
modelValue: k.value,
|
|
439
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
439
|
+
"onUpdate:modelValue": u[2] || (u[2] = (x) => k.value = x),
|
|
440
440
|
width: 90,
|
|
441
441
|
height: 90,
|
|
442
442
|
"close-x": "",
|
|
443
|
-
class:
|
|
443
|
+
class: U(m(A))
|
|
444
444
|
}, {
|
|
445
445
|
default: j(() => [
|
|
446
|
-
C.value.file ? (l(), F(
|
|
446
|
+
C.value.file ? (l(), F(m(we), {
|
|
447
447
|
key: 0,
|
|
448
448
|
file: C.value.file,
|
|
449
449
|
"related-files": L.value,
|
|
@@ -463,7 +463,7 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
463
463
|
class: "tv-discrepancy-indicator ml-0.5 text-amber-600",
|
|
464
464
|
title: "Sources disagree",
|
|
465
465
|
"aria-label": "discrepancy"
|
|
466
|
-
}, Kt = /* @__PURE__ */
|
|
466
|
+
}, Kt = /* @__PURE__ */ M({
|
|
467
467
|
__name: "VerifiedField",
|
|
468
468
|
props: {
|
|
469
469
|
source: {},
|
|
@@ -472,43 +472,43 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
472
472
|
format: { type: Function }
|
|
473
473
|
},
|
|
474
474
|
setup(e) {
|
|
475
|
-
const t = e, n = Q(), f = d(() => n.enabled.value), r =
|
|
476
|
-
var
|
|
477
|
-
return r.value ? r.value : t.source && t.field ? ((
|
|
475
|
+
const t = e, n = Q(), f = d(() => n.enabled.value), r = D(null), o = d(() => {
|
|
476
|
+
var y;
|
|
477
|
+
return r.value ? r.value : t.source && t.field ? ((y = t.source.__meta) == null ? void 0 : y[t.field]) ?? null : null;
|
|
478
478
|
}), c = d(() => X(o.value)), g = d(() => {
|
|
479
479
|
if (t.original !== void 0 && t.original !== null) return t.original;
|
|
480
480
|
if (o.value) return c.value.value;
|
|
481
481
|
if (t.source && t.field) return t.source[t.field];
|
|
482
482
|
}), b = d(() => {
|
|
483
|
-
const
|
|
484
|
-
return
|
|
483
|
+
const y = g.value;
|
|
484
|
+
return y == null ? "" : t.format ? t.format(y) : String(y);
|
|
485
485
|
}), w = d(() => {
|
|
486
|
-
var
|
|
487
|
-
return W((
|
|
488
|
-
}),
|
|
489
|
-
function
|
|
486
|
+
var y, S, $;
|
|
487
|
+
return W(($ = (S = (y = o.value) == null ? void 0 : y.candidates) == null ? void 0 : S.extracted) == null ? void 0 : $.confidence);
|
|
488
|
+
}), _ = d(() => re(o.value)), v = d(() => f.value && !!o.value);
|
|
489
|
+
function V(y) {
|
|
490
490
|
var S;
|
|
491
|
-
r.value =
|
|
491
|
+
r.value = y, (S = t.source) != null && S.__meta && t.field && (t.source.__meta[t.field] = y);
|
|
492
492
|
}
|
|
493
|
-
const L = d(() => Te(n, o,
|
|
493
|
+
const L = d(() => Te(n, o, V)), C = d(() => !!L.value), k = D(!1), N = D(!1);
|
|
494
494
|
function B() {
|
|
495
495
|
o.value && (k.value = !0);
|
|
496
496
|
}
|
|
497
|
-
async function
|
|
497
|
+
async function P(y) {
|
|
498
498
|
N.value = !1;
|
|
499
|
-
const
|
|
500
|
-
!L.value ||
|
|
499
|
+
const $ = (y.target.textContent ?? "").trim();
|
|
500
|
+
!L.value || $ === b.value || await L.value($, "custom");
|
|
501
501
|
}
|
|
502
|
-
return (
|
|
502
|
+
return (y, S) => (l(), i("span", xt, [
|
|
503
503
|
a("span", {
|
|
504
504
|
class: "tv-field-value",
|
|
505
505
|
contenteditable: C.value,
|
|
506
506
|
"data-editable": C.value ? "true" : "false",
|
|
507
|
-
onFocus: S[0] || (S[0] = (
|
|
508
|
-
onBlur:
|
|
509
|
-
onKeydown: S[1] || (S[1] =
|
|
507
|
+
onFocus: S[0] || (S[0] = ($) => N.value = !0),
|
|
508
|
+
onBlur: P,
|
|
509
|
+
onKeydown: S[1] || (S[1] = me(xe(($) => $.target.blur(), ["prevent"]), ["enter"]))
|
|
510
510
|
}, [
|
|
511
|
-
|
|
511
|
+
ge(y.$slots, "default", {
|
|
512
512
|
value: g.value,
|
|
513
513
|
formatted: b.value
|
|
514
514
|
}, () => [
|
|
@@ -518,17 +518,17 @@ const Pe = { class: "tv-modal flex flex-col gap-5 p-4 text-sm text-gray-700" },
|
|
|
518
518
|
v.value ? (l(), i("button", {
|
|
519
519
|
key: 0,
|
|
520
520
|
type: "button",
|
|
521
|
-
class:
|
|
521
|
+
class: U(["tv-overlay ml-1 inline-flex items-center", m(A)]),
|
|
522
522
|
title: "View verification detail",
|
|
523
523
|
onClick: B
|
|
524
524
|
}, [
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
I(z, { status: w.value }, null, 8, ["status"]),
|
|
526
|
+
_.value ? (l(), i("span", yt, "⚠")) : h("", !0)
|
|
527
527
|
], 2)) : h("", !0),
|
|
528
528
|
o.value ? (l(), F(mt, {
|
|
529
529
|
key: 1,
|
|
530
530
|
modelValue: k.value,
|
|
531
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
531
|
+
"onUpdate:modelValue": S[2] || (S[2] = ($) => k.value = $),
|
|
532
532
|
meta: o.value,
|
|
533
533
|
label: e.field,
|
|
534
534
|
save: L.value
|
|
@@ -573,10 +573,10 @@ const ht = { class: "tv-comparison-page flex flex-col gap-4" }, wt = {
|
|
|
573
573
|
}, kt = {
|
|
574
574
|
key: 1,
|
|
575
575
|
class: "tv-anchored-group flex flex-col gap-3"
|
|
576
|
-
}, St = { class: "flex items-center gap-2" },
|
|
576
|
+
}, St = { class: "flex items-center gap-2" }, Vt = { class: "tv-datapoint-path font-mono text-xs text-gray-500" }, $t = { class: "tv-datapoint-resolved font-medium" }, Ct = {
|
|
577
577
|
key: 0,
|
|
578
578
|
class: "tv-datapoint-discrepancy text-xs font-medium text-amber-600"
|
|
579
|
-
}, Ot = { class: "tv-datapoint-candidates ml-4 text-xs text-gray-600" },
|
|
579
|
+
}, Ot = { class: "tv-datapoint-candidates ml-4 text-xs text-gray-600" }, It = { class: "font-medium" }, Lt = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "tv-datapoint-reasoning ml-4 text-xs italic text-gray-500"
|
|
582
582
|
}, Ut = {
|
|
@@ -585,60 +585,60 @@ const ht = { class: "tv-comparison-page flex flex-col gap-4" }, wt = {
|
|
|
585
585
|
}, Dt = { class: "tv-datapoint-sources ml-4 text-xs text-gray-500" }, Et = ["href"], Tt = { key: 1 }, At = { class: "ml-1" }, Nt = {
|
|
586
586
|
key: 2,
|
|
587
587
|
class: "tv-unanchored-group flex flex-col gap-1"
|
|
588
|
-
}, jt = { class: "tv-datapoint-path font-mono text-xs text-gray-500" }, Ft = { class: "tv-datapoint-value" },
|
|
588
|
+
}, jt = { class: "tv-datapoint-path font-mono text-xs text-gray-500" }, Ft = { class: "tv-datapoint-value" }, Pt = /* @__PURE__ */ M({
|
|
589
589
|
__name: "ComparisonPage",
|
|
590
590
|
setup(e) {
|
|
591
591
|
const t = Q(), n = d(() => bt(t.data)), f = d(() => n.value.filter((w) => !w.unanchored)), r = d(() => n.value.filter((w) => w.unanchored));
|
|
592
592
|
function o(w) {
|
|
593
|
-
const
|
|
594
|
-
return
|
|
593
|
+
const _ = X(w).value;
|
|
594
|
+
return _ == null ? "" : String(_);
|
|
595
595
|
}
|
|
596
596
|
function c(w) {
|
|
597
597
|
return w == null ? "" : String(w);
|
|
598
598
|
}
|
|
599
599
|
function g(w) {
|
|
600
|
-
var
|
|
601
|
-
return (
|
|
600
|
+
var _, v, V;
|
|
601
|
+
return (V = (v = (_ = w.meta) == null ? void 0 : _.candidates) == null ? void 0 : v.extracted) == null ? void 0 : V.confidence;
|
|
602
602
|
}
|
|
603
603
|
function b(w) {
|
|
604
|
-
var
|
|
605
|
-
const
|
|
606
|
-
if (!
|
|
604
|
+
var V;
|
|
605
|
+
const _ = (V = w.meta) == null ? void 0 : V.candidates;
|
|
606
|
+
if (!_) return [];
|
|
607
607
|
const v = [];
|
|
608
|
-
return
|
|
608
|
+
return _.override && v.push({ source: "override", value: _.override.value }), _.extracted && v.push({ source: "extracted", value: _.extracted.value }), _.claim && v.push({ source: "claim", value: _.claim.value }), v;
|
|
609
609
|
}
|
|
610
|
-
return (w,
|
|
611
|
-
|
|
610
|
+
return (w, _) => (l(), i("div", ht, [
|
|
611
|
+
_[1] || (_[1] = a("h2", { class: "tv-comparison-title text-lg font-semibold" }, "Verification comparison", -1)),
|
|
612
612
|
n.value.length === 0 ? (l(), i("p", wt, " No data points to compare. ")) : h("", !0),
|
|
613
613
|
f.value.length ? (l(), i("section", kt, [
|
|
614
614
|
(l(!0), i(O, null, T(f.value, (v) => {
|
|
615
|
-
var
|
|
615
|
+
var V, L, C;
|
|
616
616
|
return l(), i("div", {
|
|
617
617
|
key: v.path,
|
|
618
618
|
class: "tv-datapoint border-t border-gray-100 pt-2"
|
|
619
619
|
}, [
|
|
620
620
|
a("div", St, [
|
|
621
|
-
a("span",
|
|
622
|
-
a("span",
|
|
623
|
-
|
|
621
|
+
a("span", Vt, p(v.path), 1),
|
|
622
|
+
a("span", $t, p(o(v.meta)), 1),
|
|
623
|
+
I(z, {
|
|
624
624
|
confidence: g(v),
|
|
625
625
|
"show-label": ""
|
|
626
626
|
}, null, 8, ["confidence"]),
|
|
627
|
-
|
|
627
|
+
m(re)(v.meta) ? (l(), i("span", Ct, "⚠ discrepancy")) : h("", !0)
|
|
628
628
|
]),
|
|
629
629
|
a("ul", Ot, [
|
|
630
630
|
(l(!0), i(O, null, T(b(v), (k) => (l(), i("li", {
|
|
631
631
|
key: k.source,
|
|
632
632
|
class: "tv-candidate"
|
|
633
633
|
}, [
|
|
634
|
-
a("span",
|
|
634
|
+
a("span", It, p(k.source) + ":", 1),
|
|
635
635
|
E(" " + p(c(k.value)), 1)
|
|
636
636
|
]))), 128))
|
|
637
637
|
]),
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
m(H)(v.meta) ? (l(), i("p", Lt, p(m(H)(v.meta)), 1)) : h("", !0),
|
|
639
|
+
m(q)(v.meta) ? (l(), i("p", Ut, " “" + p(m(q)(v.meta)) + "” ", 1)) : h("", !0),
|
|
640
640
|
a("ul", Dt, [
|
|
641
|
-
(l(!0), i(O, null, T(
|
|
641
|
+
(l(!0), i(O, null, T(m(oe)((C = (L = (V = v.meta) == null ? void 0 : V.candidates) == null ? void 0 : L.extracted) == null ? void 0 : C.sources), (k, N) => (l(), i("li", {
|
|
642
642
|
key: N,
|
|
643
643
|
class: "tv-source-group"
|
|
644
644
|
}, [
|
|
@@ -649,74 +649,74 @@ const ht = { class: "tv-comparison-page flex flex-col gap-4" }, wt = {
|
|
|
649
649
|
target: "_blank",
|
|
650
650
|
rel: "noopener"
|
|
651
651
|
}, p(k.fileLabel), 9, Et)) : (l(), i("span", Tt, p(k.fileLabel), 1)),
|
|
652
|
-
a("span", At, "(" + p(k.sources.map(
|
|
652
|
+
a("span", At, "(" + p(k.sources.map(m(ue)).join(", ")) + ")", 1)
|
|
653
653
|
]))), 128))
|
|
654
654
|
])
|
|
655
655
|
]);
|
|
656
656
|
}), 128))
|
|
657
657
|
])) : h("", !0),
|
|
658
658
|
r.value.length ? (l(), i("section", Nt, [
|
|
659
|
-
|
|
659
|
+
_[0] || (_[0] = a("h3", { class: "tv-unanchored-title text-sm font-semibold text-gray-500" }, " Unanchored / not from source ", -1)),
|
|
660
660
|
(l(!0), i(O, null, T(r.value, (v) => (l(), i("div", {
|
|
661
661
|
key: v.path,
|
|
662
662
|
class: "tv-unanchored-datapoint flex items-center gap-2 text-sm"
|
|
663
663
|
}, [
|
|
664
664
|
a("span", jt, p(v.path), 1),
|
|
665
665
|
a("span", Ft, p(c(v.value)), 1),
|
|
666
|
-
|
|
666
|
+
I(z, { status: "unverifiable" })
|
|
667
667
|
]))), 128))
|
|
668
668
|
])) : h("", !0)
|
|
669
669
|
]));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
671
|
+
}), Mt = { class: "tv-enable-toggle flex items-center justify-between text-sm" }, Yt = /* @__PURE__ */ M({
|
|
672
672
|
__name: "VerificationChrome",
|
|
673
673
|
setup(e) {
|
|
674
|
-
const { enabled: t, openComparison: n } = Q(), f = Oe(), r =
|
|
674
|
+
const { enabled: t, openComparison: n } = Q(), f = Oe(), r = D(!1);
|
|
675
675
|
function o() {
|
|
676
676
|
n(), r.value = !1;
|
|
677
677
|
}
|
|
678
678
|
return (c, g) => (l(), i(O, null, [
|
|
679
679
|
a("button", {
|
|
680
680
|
type: "button",
|
|
681
|
-
class:
|
|
681
|
+
class: U(["tv-settings-button fixed bottom-4 right-4 z-50 flex h-10 w-10 items-center justify-center rounded-full bg-gray-800 text-white shadow-lg", m(A)]),
|
|
682
682
|
title: "Verification settings",
|
|
683
683
|
onClick: g[0] || (g[0] = (b) => r.value = !r.value)
|
|
684
684
|
}, [
|
|
685
|
-
|
|
686
|
-
icon:
|
|
685
|
+
I(m(ke), {
|
|
686
|
+
icon: m(Se),
|
|
687
687
|
class: "h-5 w-5"
|
|
688
688
|
}, null, 8, ["icon"])
|
|
689
689
|
], 2),
|
|
690
690
|
r.value ? (l(), i("div", {
|
|
691
691
|
key: 0,
|
|
692
|
-
class:
|
|
692
|
+
class: U(["tv-settings-panel fixed bottom-16 right-4 z-50 flex w-56 flex-col gap-3 rounded-lg bg-white p-4 shadow-xl ring-1 ring-gray-200", m(A)])
|
|
693
693
|
}, [
|
|
694
|
-
a("label",
|
|
694
|
+
a("label", Mt, [
|
|
695
695
|
g[3] || (g[3] = a("span", null, "Verification overlay", -1)),
|
|
696
|
-
|
|
696
|
+
ye(a("input", {
|
|
697
697
|
"onUpdate:modelValue": g[1] || (g[1] = (b) => te(t) ? t.value = b : null),
|
|
698
698
|
type: "checkbox",
|
|
699
699
|
class: "tv-enable-checkbox"
|
|
700
700
|
}, null, 512), [
|
|
701
|
-
[
|
|
701
|
+
[_e, m(t)]
|
|
702
702
|
])
|
|
703
703
|
]),
|
|
704
704
|
a("button", {
|
|
705
705
|
type: "button",
|
|
706
|
-
class:
|
|
706
|
+
class: U(["tv-open-comparison rounded border px-2 py-1 text-sm", m(A)]),
|
|
707
707
|
onClick: o
|
|
708
708
|
}, "Open comparison page", 2)
|
|
709
709
|
], 2)) : h("", !0),
|
|
710
|
-
|
|
711
|
-
modelValue:
|
|
710
|
+
I(m(G), {
|
|
711
|
+
modelValue: m(f),
|
|
712
712
|
"onUpdate:modelValue": g[2] || (g[2] = (b) => te(f) ? f.value = b : null),
|
|
713
713
|
title: "Verification comparison",
|
|
714
714
|
width: 80,
|
|
715
715
|
"close-x": "",
|
|
716
|
-
class:
|
|
716
|
+
class: U(m(A))
|
|
717
717
|
}, {
|
|
718
718
|
default: j(() => [
|
|
719
|
-
|
|
719
|
+
I(Pt)
|
|
720
720
|
]),
|
|
721
721
|
_: 1
|
|
722
722
|
}, 8, ["modelValue", "class"])
|
|
@@ -725,25 +725,25 @@ const ht = { class: "tv-comparison-page flex flex-col gap-4" }, wt = {
|
|
|
725
725
|
});
|
|
726
726
|
export {
|
|
727
727
|
A as CHROME_CLASS,
|
|
728
|
-
|
|
728
|
+
Pt as ComparisonPage,
|
|
729
729
|
z as ConfidenceIcon,
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
730
|
+
le as ENABLED_STORAGE_KEY,
|
|
731
|
+
ie as RESOLUTION_PRIORITY,
|
|
732
|
+
Ie as STATUS_COLORS,
|
|
733
|
+
Le as STATUS_LABELS,
|
|
734
734
|
Yt as VerificationChrome,
|
|
735
735
|
mt as VerificationModal,
|
|
736
736
|
Kt as VerifiedField,
|
|
737
737
|
W as bucketConfidence,
|
|
738
738
|
De as candidatesDisagree,
|
|
739
739
|
q as citedTextOf,
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
oe as groupSources,
|
|
741
|
+
re as hasDiscrepancy,
|
|
742
742
|
Bt as initVerification,
|
|
743
743
|
H as reasoningOf,
|
|
744
744
|
Ue as resolveCandidates,
|
|
745
745
|
X as resolveDataPoint,
|
|
746
|
-
|
|
746
|
+
ue as sourceRowLabel,
|
|
747
747
|
Q as useVerification,
|
|
748
748
|
bt as walkDataPoints
|
|
749
749
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/template-verification",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Read-write verification overlay for rendered template apps — per-data-point confidence, discrepancy, 3-source resolution (override > extracted > claim), inline edit, and a recursive comparison page. Consumes the host's __meta sidecar; fetches nothing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|