Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
import{j as e}from"./WQT7eQJ_.js";import{r as C}from"./Cp_JqFo_.js";import{C as O}from"./BeCk36gy.js";import{l as S1}from"./We5XCFYO.js";import{S as z}from"./CASN5Rfz.js";import{S as y1}from"./DNorPEQ1.js";import{e as _,g as Q,f as b1,M as j1}from"./CoIuAmXb.js";import{a as k1}from"./tXFli0Gf.js";import{e as w1}from"./CB5T3ZbA.js";import{u as M1}from"./CJnn6yRZ.js";import{f as V1}from"./CXF8Oe2J.js";import{B as w}from"./-RryvzWg.js";import{a as R}from"./Bxz5a8QK.js";import{a as N}from"./LmkPfW6X.js";import{w as K}from"./CQmHhiNB.js";import{a as Z1}from"./BkfUrl16.js";import{o as A,b as E1,n as T,c as D1,s as L1}from"./O0XxyyFE.js";import{e as Y,f as H1,h as R1}from"./WQKVCAa3.js";import{u as F1}from"./B-9BfCJ9.js";import{u as X}from"./CWcPlVBz.js";import{l as H}from"./D9N9shAg.js";import{g as P1}from"./CUEw6XL1.js";import{M as $1}from"./Cw6UJ2OJ.js";import{D as U}from"./avaFGRRt.js";import{I as B}from"./Df7o-qlr.js";import{D as W}from"./DKroFJwk.js";import{D as q}from"./tYOqcDCv.js";import{S}from"./DsqYlQ4P.js";import{T as j}from"./DrgkKHpq.js";import{R as A1,a as T1}from"./bIRRVuD_.js";import{F as J}from"./Dl10bw1Y.js";import{B as I}from"./DsWRJW5O.js";import{T as I1}from"./C6X6gWNA.js";import{B as y}from"./DiF0JYpa.js";import{E as k}from"./BACQTBV2.js";import{C as O1}from"./j1qSpBQf.js";import{S as z1}from"./B3jWlpYi.js";import{D as v}from"./CzccBRty.js";import{G as g}from"./Bfnt-xxW.js";import{D as e1}from"./DB1Y9Yhn.js";import{T as U1}from"./awgLFkiV.js";import{L as B1,l as W1}from"./DdpBUzX3.js";import{d as q1}from"./lIWzKOEO.js";const G1=(t,o)=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...t,children:[e.jsx("path",{d:"M13.302 21.5469C13.5234 21.676 13.6341 21.7406 13.7903 21.7741C13.9116 21.8001 14.0884 21.8001 14.2097 21.7741C14.3659 21.7406 14.4766 21.676 14.698 21.5469C16.646 20.4104 22 16.8404 22 11.932V7.1496C22 6.35009 22 5.95033 21.8692 5.6067C21.7537 5.30314 21.566 5.03228 21.3223 4.81753C21.0465 4.57444 20.6722 4.43408 19.9236 4.15335L14.5618 2.14267C14.3539 2.06471 14.25 2.02573 14.143 2.01028C14.0482 1.99657 13.9518 1.99657 13.857 2.01028C13.75 2.02573 13.6461 2.06471 13.4382 2.14267L8.0764 4.15335C7.3278 4.43408 6.9535 4.57444 6.67766 4.81753C6.43398 5.03228 6.24627 5.30314 6.13076 5.6067C6 5.95033 6 6.35009 6 7.1496V11.932C6 16.8404 11.354 20.4104 13.302 21.5469Z",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.0764 4.15308C3.3278 4.4338 2.9535 4.57417 2.67766 4.81726C2.43398 5.03201 2.24627 5.30287 2.13076 5.60643C2 5.95006 2 6.34982 2 7.14933V11.9317C2 16.8402 7.05195 20.8635 9 22",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),J1=C.forwardRef(G1),t1=C.forwardRef((t,o)=>e.jsx(z,{"data-testid":"ShieldDoubleIcon",component:J1,ref:o,...t}));t1.muiName="ShieldDouble";const _1=(t,o)=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...t,children:e.jsx("path",{d:"M9 11.4999L11 13.4999L15.5 8.99987M20 11.9999C20 16.9083 14.646 20.4783 12.698 21.6147C12.4766 21.7439 12.3659 21.8085 12.2097 21.842C12.0884 21.868 11.9116 21.868 11.7903 21.842C11.6341 21.8085 11.5234 21.7439 11.302 21.6147C9.35396 20.4783 4 16.9083 4 11.9999V7.21747C4 6.41796 4 6.0182 4.13076 5.67457C4.24627 5.37101 4.43398 5.10015 4.67766 4.8854C4.9535 4.64231 5.3278 4.50195 6.0764 4.22122L11.4382 2.21054C11.6461 2.13258 11.75 2.0936 11.857 2.07815C11.9518 2.06444 12.0482 2.06444 12.143 2.07815C12.25 2.0936 12.3539 2.13258 12.5618 2.21054L17.9236 4.22122C18.6722 4.50195 19.0465 4.64231 19.3223 4.8854C19.566 5.10015 19.7537 5.37101 19.8692 5.67457C20 6.0182 20 6.41796 20 7.21747V11.9999Z",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),Q1=C.forwardRef(_1),o1=C.forwardRef((t,o)=>e.jsx(z,{"data-testid":"ShieldTickIcon",component:Q1,ref:o,...t}));o1.muiName="ShieldTick";const N1=(t,o)=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...t,children:e.jsx("path",{d:"M20 17H4M4 17L8 13M4 17L8 21M4 7H20M20 7L16 3M20 7L16 11",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),K1=C.forwardRef(N1),n1=C.forwardRef((t,o)=>e.jsx(z,{"data-testid":"SwitchHorizontalIcon",component:K1,ref:o,...t}));n1.muiName="SwitchHorizontal";const Z=N()?"https://api.scout.docker.com":"https://api.scout-stage.docker.com",c0=`${Z}/v1/policy/insights/org-image-score/image`,l0=`${Z}/v1/policy/insights/org-image-score/images`,u0=`${Z}/v1/policy/insights/org-image-score/repos`,Y1=`${Z}/v1/policy/events`,X1=`${Z}/v1/policy/feedback`;function e3(t,o,a){return _({...a,...P1(t,o)})}function t3(t,o){const{data:a,isFetched:n}=Y(t,o),{data:s,isFetched:r}=e3(t,o);if(r&&n)return a||t==="library"?"docker-scout":s?"static-scanning":"none"}async function o3(t){try{await R(Y1,{method:"POST",body:JSON.stringify(t)})}catch(o){w.notify(new Error("Failed to send policy event",{cause:o}))}}async function n3(t){try{await R(X1,{method:"POST",body:JSON.stringify(t)})}catch(o){w.notify(new Error("Failed to send policy feedback event",{cause:o}))}}function a1(t){return!!t.action&&!!t.orgName}function r1(t){const o={...t};return"scoutScore"in o&&(o.scoutScore=o.scoutScore==="unknown"?"U":o.scoutScore),o}function G(){const o=Q().at(-1);return C.useCallback(a=>{const n={...a,page:o?.id??"unknown",client:"hub-ui"};if(!a1(n)){w.notify(K(new Error("Invalid policy event payload"),{context:"useSendPolicyEvent",eventProps:JSON.stringify(n)}));return}o3(r1(n))},[o?.id])}function a3(){const o=Q().at(-1);return C.useCallback(a=>{const n={...a,page:o?.id??"unknown",client:"hub-ui"};if(!a1(n)){w.notify(K(new Error("Invalid policy feedback event payload"),{context:"useSendPolicyFeedbackEvent",eventProps:JSON.stringify(n)}));return}n3(r1(n))},[o?.id])}function d0(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:166,height:26,viewBox:"0 0 151 24",fill:"none",...t,children:[e.jsx("path",{fill:"#8993A5",d:"M4.148 8.225 1.324 16H.17l3.252-8.531h.744l-.018.756ZM6.516 16l-2.83-7.775-.018-.756h.744L7.676 16h-1.16Zm-.147-3.158v.926H1.576v-.926H6.37Zm3.61-1.828V16H8.893V9.66H9.92l.058 1.354ZM9.72 12.59l-.45-.018c.003-.433.068-.834.193-1.2.125-.372.3-.694.527-.968a2.35 2.35 0 0 1 1.857-.861c.313 0 .594.043.844.129.25.082.463.215.639.398.18.184.316.422.41.715.094.29.14.643.14 1.06V16h-1.09v-4.166c0-.332-.048-.598-.146-.797a.9.9 0 0 0-.427-.44 1.535 1.535 0 0 0-.692-.14c-.27 0-.516.057-.738.17-.219.113-.408.27-.569.469-.156.199-.279.427-.369.685a2.506 2.506 0 0 0-.129.809Zm9.785 2.326v-3.264c0-.25-.05-.466-.152-.65a.996.996 0 0 0-.445-.434 1.613 1.613 0 0 0-.739-.152c-.273 0-.513.047-.72.14a1.255 1.255 0 0 0-.48.37.809.809 0 0 0-.17.492h-1.085c0-.227.059-.451.176-.674a1.97 1.97 0 0 1 .504-.603c.223-.184.488-.329.797-.434.312-.11.66-.164 1.043-.164.46 0 .867.078 1.219.234.355.157.633.393.832.71.203.312.304.704.304 1.177v2.953c0 .211.018.436.053.674.04.238.096.443.17.615V16h-1.13a2.022 2.022 0 0 1-.13-.498 4.011 4.011 0 0 1-.047-.586Zm.188-2.76.012.762h-1.096c-.309 0-.584.025-.826.076a1.89 1.89 0 0 0-.61.217 1.03 1.03 0 0 0-.375.37.978.978 0 0 0-.128.509c0 .2.044.38.134.545a.98.98 0 0 0 .405.392c.183.094.408.141.673.141.332 0 .625-.07.88-.211a1.83 1.83 0 0 0 .603-.516c.152-.203.234-.4.246-.591l.463.521a1.572 1.572 0 0 1-.223.545 2.607 2.607 0 0 1-1.201 1.025 2.328 2.328 0 0 1-.926.176c-.43 0-.806-.084-1.13-.252a1.933 1.933 0 0 1-.75-.674 1.784 1.784 0 0 1-.264-.955c0-.34.066-.638.199-.896a1.73 1.73 0 0 1 .574-.65c.25-.176.55-.31.902-.399.352-.09.745-.135 1.178-.135h1.26ZM23.713 7v9h-1.09V7h1.09Zm3.76 8.344 1.764-5.684h1.16l-2.542 7.319a4.031 4.031 0 0 1-.235.503 2.416 2.416 0 0 1-.363.522 1.73 1.73 0 0 1-.54.398 1.622 1.622 0 0 1-.743.159c-.086 0-.196-.012-.329-.036a3.179 3.179 0 0 1-.28-.058l-.007-.88c.032.005.08.009.147.013a1.745 1.745 0 0 0 .774-.088.949.949 0 0 0 .433-.323c.121-.148.225-.353.31-.615l.452-1.23ZM26.18 9.66l1.646 4.922.282 1.143-.78.398-2.332-6.463h1.184Zm10.16 5.45V16h-4.612v-.89h4.612Zm-.17-4.682L31.973 16h-.662v-.797l4.166-5.543h.692v.768Zm-.48-.768v.897h-4.33V9.66h4.33Zm4.657 6.457c-.441 0-.841-.074-1.2-.223a2.722 2.722 0 0 1-.92-.638 2.84 2.84 0 0 1-.587-.973 3.568 3.568 0 0 1-.205-1.23v-.246c0-.516.076-.975.229-1.377.152-.407.359-.75.62-1.032.262-.28.56-.494.891-.638a2.558 2.558 0 0 1 1.032-.217c.453 0 .843.078 1.171.234.332.157.604.375.815.657.21.277.367.605.469.984.101.375.152.785.152 1.23v.487h-4.734v-.885h3.65v-.082a2.707 2.707 0 0 0-.176-.82 1.475 1.475 0 0 0-.468-.657c-.215-.171-.508-.257-.88-.257a1.475 1.475 0 0 0-1.212.615 2.304 2.304 0 0 0-.346.744c-.082.293-.123.63-.123 1.014v.246c0 .3.041.584.123.85.086.261.209.492.37.69.163.2.36.356.591.47.234.113.5.17.797.17.383 0 .707-.079.972-.235a2.41 2.41 0 0 0 .698-.627l.656.522c-.137.207-.31.404-.522.591-.21.188-.47.34-.779.457a3.017 3.017 0 0 1-1.084.176Zm7.969-1.348V7h1.09v9h-.997l-.093-1.23ZM44.049 12.9v-.123c0-.484.059-.923.176-1.318a3.19 3.19 0 0 1 .51-1.025c.222-.286.486-.504.79-.657a2.25 2.25 0 0 1 1.032-.234c.398 0 .746.07 1.043.21.3.138.555.339.762.604.21.262.377.579.498.95.12.37.205.79.252 1.26v.538a5.518 5.518 0 0 1-.252 1.254 2.957 2.957 0 0 1-.498.95c-.207.261-.461.463-.762.603-.3.137-.652.205-1.055.205-.37 0-.71-.08-1.02-.24a2.406 2.406 0 0 1-.79-.674 3.282 3.282 0 0 1-.51-1.02 4.489 4.489 0 0 1-.176-1.283Zm1.09-.123v.123c0 .317.031.614.094.891.066.277.168.521.304.732.137.211.311.377.522.498.21.118.463.176.756.176.36 0 .654-.076.885-.228.234-.153.421-.354.562-.604.14-.25.25-.521.328-.814v-1.412a3.132 3.132 0 0 0-.205-.621 1.914 1.914 0 0 0-.34-.54 1.469 1.469 0 0 0-.51-.38 1.65 1.65 0 0 0-.708-.141 1.5 1.5 0 0 0-.768.188c-.211.12-.385.289-.522.503a2.332 2.332 0 0 0-.304.739 4.045 4.045 0 0 0-.094.89ZM54.543 7h1.09v7.77L55.539 16h-.996V7Zm5.373 5.777v.123c0 .461-.055.89-.164 1.284-.11.39-.27.73-.48 1.02-.212.288-.47.513-.774.673-.305.16-.654.24-1.049.24a2.57 2.57 0 0 1-1.06-.205c-.301-.14-.555-.342-.762-.603a3.12 3.12 0 0 1-.498-.95 5.99 5.99 0 0 1-.252-1.254v-.539c.047-.468.13-.888.252-1.26a3.12 3.12 0 0 1 .498-.949c.207-.265.46-.466.761-.603.301-.14.65-.211 1.05-.211.398 0 .751.078 1.06.234.309.153.566.371.773.657.211.285.371.627.48 1.025.11.395.165.834.165 1.318Zm-1.09.123v-.123c0-.316-.03-.613-.088-.89a2.308 2.308 0 0 0-.281-.739 1.401 1.401 0 0 0-.51-.503c-.21-.125-.47-.188-.78-.188a1.69 1.69 0 0 0-.714.14c-.2.094-.37.221-.51.382-.14.156-.256.336-.346.539a3.1 3.1 0 0 0-.193.62v1.413c.063.273.164.537.305.79.144.25.336.456.574.616.242.16.541.24.896.24a1.5 1.5 0 0 0 .75-.175c.212-.122.381-.288.51-.499.133-.21.23-.455.293-.732.063-.277.094-.574.094-.89Zm4.412 2.444 1.764-5.684h1.16l-2.543 7.319a4.033 4.033 0 0 1-.235.503 2.416 2.416 0 0 1-.363.522 1.727 1.727 0 0 1-.539.398 1.621 1.621 0 0 1-.744.159c-.086 0-.195-.012-.328-.036a3.183 3.183 0 0 1-.281-.058l-.006-.88c.03.005.08.009.146.013a1.745 1.745 0 0 0 .773-.088.949.949 0 0 0 .434-.323 1.92 1.92 0 0 0 .31-.615l.452-1.23ZM61.943 9.66l1.647 4.922.28 1.143-.779.398L60.76 9.66h1.184Z"}),e.jsx("g",{fill:"#2E7F74",mask:"url(#a)",children:e.jsx("path",{d:"M109.682 18.757c-.526-.278-1.243-.507-2.15-.689-.653-.133-1.149-.269-1.487-.408-.339-.14-.566-.296-.681-.472a1.05 1.05 0 0 1-.172-.59c0-.35.184-.616.553-.798.369-.181.819-.272 1.352-.272.459 0 .864.055 1.215.164.351.109.677.308.98.598.181.17.405.279.671.327.266.049.496.006.689-.127.194-.145.297-.323.309-.535.012-.212-.067-.414-.236-.608-.363-.447-.852-.798-1.469-1.052-.617-.254-1.324-.38-2.123-.38-.617 0-1.209.099-1.778.298a3.31 3.31 0 0 0-1.397.907c-.363.406-.544.917-.544 1.533 0 .702.275 1.295.826 1.778.55.484 1.436.847 2.658 1.089.943.17 1.593.387 1.95.653.356.266.529.58.517.943-.012.363-.203.66-.572.89-.369.229-.904.344-1.605.344-.556 0-1.061-.1-1.515-.3-.453-.199-.783-.413-.989-.644a.978.978 0 0 0-.607-.317c-.236-.03-.475.052-.717.245a.867.867 0 0 0-.353.608.789.789 0 0 0 .226.662c.4.399.959.729 1.679.989.719.26 1.502.39 2.349.39.847 0 1.575-.133 2.15-.4.574-.266 1.009-.623 1.306-1.07a2.67 2.67 0 0 0 .445-1.506c0-.483-.116-.91-.345-1.279-.23-.369-.608-.692-1.134-.97h-.001ZM118.87 14.322a4.644 4.644 0 0 0-1.96-.408c-.955 0-1.802.215-2.54.644a4.62 4.62 0 0 0-1.741 1.787c-.424.762-.635 1.633-.635 2.613s.214 1.811.644 2.567a4.778 4.778 0 0 0 1.778 1.796c.755.441 1.617.662 2.585.662 1.306 0 2.395-.405 3.265-1.216.17-.169.242-.36.218-.57-.024-.212-.139-.403-.345-.572a.712.712 0 0 0-.544-.172 1.103 1.103 0 0 0-.599.263 2.657 2.657 0 0 1-.88.48 3.65 3.65 0 0 1-1.115.155c-.642 0-1.204-.148-1.687-.445a3.107 3.107 0 0 1-1.134-1.206c-.272-.508-.408-1.089-.408-1.742 0-.69.132-1.288.399-1.796a2.958 2.958 0 0 1 1.106-1.188c.472-.284 1.016-.427 1.633-.427.883 0 1.621.315 2.213.944.17.17.357.275.563.317a.686.686 0 0 0 .562-.118c.218-.157.351-.338.4-.544.048-.206-.013-.405-.182-.599a4.723 4.723 0 0 0-1.596-1.225ZM129.484 14.558c-.75-.43-1.609-.644-2.576-.644-.968 0-1.845.215-2.595.644a4.665 4.665 0 0 0-1.768 1.778c-.43.756-.645 1.63-.645 2.622s.215 1.848.645 2.603a4.662 4.662 0 0 0 1.768 1.778c.75.43 1.615.644 2.595.644.979 0 1.844-.214 2.594-.644a4.605 4.605 0 0 0 1.76-1.778c.423-.756.635-1.624.635-2.603 0-.98-.215-1.865-.644-2.622a4.676 4.676 0 0 0-1.769-1.778Zm.227 6.16c-.272.508-.65.907-1.134 1.197-.484.29-1.04.435-1.669.435s-1.185-.145-1.669-.435a3.105 3.105 0 0 1-1.143-1.197c-.278-.509-.417-1.095-.417-1.76 0-.666.139-1.255.417-1.77a3.091 3.091 0 0 1 1.143-1.205c.484-.29 1.04-.436 1.669-.436s1.185.145 1.669.435c.484.29.862.693 1.134 1.207.272.514.408 1.104.408 1.769 0 .664-.136 1.251-.408 1.76ZM141.839 13.967a.915.915 0 0 0-.662.254c-.176.17-.263.393-.263.671v5.116c0 .436-.122.829-.363 1.18-.243.35-.566.628-.971.834-.405.206-.868.309-1.388.309a3.39 3.39 0 0 1-1.469-.318 2.375 2.375 0 0 1-1.034-.98c-.254-.441-.381-1-.381-1.678v-4.463a.9.9 0 0 0-.926-.925.898.898 0 0 0-.925.925v4.463c0 1.004.19 1.85.571 2.54.381.69.901 1.213 1.561 1.57.659.356 1.406.535 2.24.535.835 0 1.533-.176 2.168-.527.345-.19.65-.418.917-.684v.194a.897.897 0 0 0 .925.925.908.908 0 0 0 .671-.263.916.916 0 0 0 .254-.662v-8.091c0-.278-.085-.502-.254-.671-.169-.17-.393-.254-.671-.254ZM149.812 22.348a.713.713 0 0 0-.553-.254h-.617c-.387 0-.714-.163-.98-.49-.266-.326-.399-.731-.399-1.215v-4.481h1.542c.254 0 .46-.073.617-.218a.711.711 0 0 0 .236-.544.753.753 0 0 0-.236-.58c-.157-.146-.363-.218-.617-.218h-1.542v-2.613a.886.886 0 0 0-.254-.653.883.883 0 0 0-.653-.254.886.886 0 0 0-.653.254.886.886 0 0 0-.254.653v2.613h-.834c-.254 0-.46.072-.617.217a.753.753 0 0 0-.236.58c0 .219.079.4.236.545.157.145.363.218.617.218h.834v4.48c0 .666.139 1.265.418 1.797.278.532.659.953 1.143 1.261a2.966 2.966 0 0 0 1.632.463h.327c.314 0 .571-.085.771-.254.2-.17.299-.387.299-.653s-.075-.485-.227-.654ZM135.941 7.235a.704.704 0 0 1-.717.709.707.707 0 0 1-.722-.709c0-.397.32-.7.722-.7.401 0 .717.312.717.7Zm-1.259 0c0 .312.23.56.546.56.316 0 .534-.248.534-.555 0-.308-.227-.564-.538-.564a.544.544 0 0 0-.542.56Zm.431.368h-.163v-.7c.064-.013.154-.022.269-.022.133 0 .192.022.244.051.038.03.068.085.068.154 0 .076-.06.136-.145.162v.009c.068.025.106.076.128.17.021.107.034.15.051.175h-.175c-.021-.025-.034-.09-.055-.17-.013-.077-.056-.112-.146-.112h-.076v.283Zm.004-.397h.076c.09 0 .163-.03.163-.103 0-.064-.047-.107-.15-.107a.37.37 0 0 0-.089.01v.2ZM108.429.15a.503.503 0 0 0-.366-.148.496.496 0 0 0-.509.522v2.503a2.627 2.627 0 0 0-1.723-.618c-.758 0-1.406.274-1.943.824a2.733 2.733 0 0 0-.804 1.987c0 .777.269 1.437.804 1.987a2.623 2.623 0 0 0 1.943.823c.76 0 1.4-.274 1.944-.823.537-.542.803-1.205.803-1.987V.524a.502.502 0 0 0-.149-.374Zm-1.01 5.747V5.9a1.746 1.746 0 0 1-.914.94c-.21.094-.432.14-.672.14a1.64 1.64 0 0 1-.677-.14 1.741 1.741 0 0 1-.91-.938 1.765 1.765 0 0 1-.135-.683 1.8 1.8 0 0 1 .5-1.241c.154-.16.337-.285.545-.379.21-.094.434-.14.677-.14.243 0 .462.046.672.14a1.751 1.751 0 0 1 .914.94c.089.213.135.438.135.679 0 .24-.046.468-.135.679ZM131.125 4.14a2.75 2.75 0 0 0-.603-.905l-.003-.001c-.543-.548-1.191-.824-1.944-.824-.752 0-1.406.274-1.943.824a2.733 2.733 0 0 0-.804 1.987c0 .777.269 1.437.804 1.987a2.623 2.623 0 0 0 1.943.823c.691 0 1.288-.227 1.796-.682a.529.529 0 0 0 .148-.376.517.517 0 0 0-.145-.374.493.493 0 0 0-.365-.148.52.52 0 0 0-.338.131c-.153.133-.32.235-.5.302-.181.067-.379.1-.594.1-.19 0-.373-.03-.546-.09a1.724 1.724 0 0 1-1.105-1.15h3.885c.144-.002.264-.051.365-.15a.5.5 0 0 0 .15-.373c0-.389-.068-.75-.201-1.08Zm-4.203.559a1.685 1.685 0 0 1 .623-.897 1.8 1.8 0 0 1 .486-.254 1.656 1.656 0 0 1 1.086 0c.176.061.337.144.481.254.146.109.274.238.382.392.109.151.192.32.248.505h-3.306ZM135.9 2.762a.968.968 0 0 0-.346-.213 1.99 1.99 0 0 0-.457-.107 3.77 3.77 0 0 0-.463-.03c-.327 0-.634.054-.923.16-.288.108-.555.262-.8.462v-.1a.502.502 0 0 0-.15-.368.486.486 0 0 0-.359-.154.499.499 0 0 0-.365.154.504.504 0 0 0-.15.368v4.575a.5.5 0 0 0 .15.368c.1.102.221.154.365.154a.476.476 0 0 0 .359-.154.504.504 0 0 0 .15-.368V5.221a1.781 1.781 0 0 1 .502-1.247 1.718 1.718 0 0 1 1.219-.515c.239 0 .465.043.672.126a.54.54 0 0 0 .215.056.487.487 0 0 0 .364-.154.56.56 0 0 0 .152-.374.474.474 0 0 0-.137-.351h.002ZM114.453 4.142a2.786 2.786 0 0 0-.601-.908c-.543-.548-1.191-.824-1.943-.824-.753 0-1.407.274-1.944.824-.537.547-.803 1.21-.803 1.987 0 .777.268 1.437.803 1.987a2.624 2.624 0 0 0 1.944.823c.759 0 1.399-.274 1.943-.823.537-.542.803-1.205.803-1.987a2.967 2.967 0 0 0-.202-1.079Zm-.957 1.754V5.9a1.774 1.774 0 0 1-.914.94 1.61 1.61 0 0 1-.672.14 1.64 1.64 0 0 1-.677-.14 1.741 1.741 0 0 1-.91-.939 1.746 1.746 0 0 1-.135-.682 1.8 1.8 0 0 1 .5-1.241c.154-.16.336-.286.545-.38.21-.094.434-.14.677-.14.243 0 .462.046.672.14.21.095.391.22.546.381.156.161.278.348.368.559.089.213.135.439.135.68 0 .24-.046.467-.135.678ZM125.44 2.933a.503.503 0 0 0-.042-.2.569.569 0 0 0-.11-.169.47.47 0 0 0-.162-.113.524.524 0 0 0-.201-.04.483.483 0 0 0-.274.08l-2.933 1.951V.527a.508.508 0 0 0-.15-.374.486.486 0 0 0-.36-.153.5.5 0 0 0-.365.153.512.512 0 0 0-.15.374v6.975c0 .145.05.268.15.372.1.104.221.155.365.155a.472.472 0 0 0 .36-.155.513.513 0 0 0 .15-.372V5.691l.599-.401 2.267 2.602c.091.091.206.136.343.136a.49.49 0 0 0 .364-.154.557.557 0 0 0 .151-.368.537.537 0 0 0-.142-.367l-2.11-2.429 2.055-1.365c.132-.09.196-.23.196-.417v.004h-.001ZM116.755 3.976a1.724 1.724 0 0 1 1.222-.515c.216 0 .415.037.599.111.183.074.358.183.524.326.099.08.21.12.335.12.148 0 .268-.05.365-.15a.517.517 0 0 0 .144-.375.521.521 0 0 0-.177-.396 2.583 2.583 0 0 0-1.79-.683c-.758 0-1.407.274-1.943.823a2.732 2.732 0 0 0-.804 1.988c0 .777.268 1.437.804 1.987.537.547 1.183.823 1.943.823a2.59 2.59 0 0 0 1.79-.683.536.536 0 0 0 .163-.386.513.513 0 0 0-.145-.374.493.493 0 0 0-.365-.148.542.542 0 0 0-.323.11 1.616 1.616 0 0 1-1.119.431c-.24.001-.463-.045-.673-.138a1.735 1.735 0 0 1-.92-.934 1.76 1.76 0 0 1-.135-.688 1.762 1.762 0 0 1 .506-1.247v-.002h-.001Z"})}),e.jsxs("g",{fill:"#2E7F74",mask:"url(#b)",children:[e.jsx("path",{d:"M92.025 10.065C94.573 4.87 95 0 95 0s-4.872.426-10.068 2.976a9.255 9.255 0 0 1 7.093 7.089Z"}),e.jsx("path",{d:"M92.025 13.941a9.253 9.253 0 0 1-7.252 7.114l.266.265a5.063 5.063 0 0 0 3.592 1.488 5.079 5.079 0 0 0 3.591-8.67l-.197-.197Z",opacity:.5}),e.jsx("path",{d:"M88.579 12c0-.631-.105-1.238-.3-1.803a5.602 5.602 0 0 0-3.473-3.474 5.582 5.582 0 0 0-7.378 5.276c0 .756.151 1.478.426 2.136a5.606 5.606 0 0 0 3.013 3.014c.659.274 1.38.426 2.137.426a5.582 5.582 0 0 0 5.575-5.576Z"}),e.jsx("path",{d:"M73.948 10.231a9.253 9.253 0 0 1 7.114-7.251l-.187-.188a5.079 5.079 0 1 0-7.183 7.183l.256.256Z",opacity:.5}),e.jsx("path",{d:"M73.98 13.924C71.426 19.124 71 23.999 71 23.999s4.875-.427 10.073-2.978a9.255 9.255 0 0 1-7.094-7.097Z"})]})]})}const r3=N()?"https://api.scout.docker.com":"https://api.scout-stage.docker.com",s1=`${r3}/v1/user-configuration`,i1=A({healthScoreSurveyLastViewed:D1.date().optional(),healthScoreSurveyViewCount:T().default(0),healthScoreSurveySubmitted:E1().default(!1)}),c1=A({configuration:i1,metadata:A({created_at:T().optional(),updated_at:T().optional(),etag:L1().optional()})}),s3=c1.extend({configuration:i1.passthrough()});async function l1({allowPassthrough:t=!1}={}){try{const a=await(await R(s1)).json();return(t?s3:c1).parse(a)}catch(o){throw w.notify(new Error("Failed to fetch user config",{cause:o})),o}}async function i3(){const{configuration:t}=await l1({allowPassthrough:!1});return t}async function c3(t){try{const{configuration:o,metadata:{etag:a}}=await l1({allowPassthrough:!0}),n={...o,...t};await R(s1,{method:"PUT",headers:a?{"if-match":a}:void 0,body:JSON.stringify(n)})}catch(o){throw w.notify(new Error("Failed to write user config",{cause:o})),o}}function l3(){return _({queryFn:i3,queryKey:["scout-config"]})}function u3(){const t=l3(),o=b1();async function a(...n){await c3(...n),await o.invalidateQueries(["scout-config"])}return[t,a]}const d3=[{value:"dont-know-scout",label:"I don't know Docker Scout well enough to enable it now"},{value:"scores-not-valuable",label:"I don't find the health scores valuable enough to enable Docker Scout"},{value:"already-have-security",label:"I already have a security tool"},{value:"not-decision-maker",label:"I don't make the decisions to enable Docker Scout and similar tools"},{value:"other",label:"Other"}];function C3({isOpen:t,repoName:o,healthScore:a,onSubmit:n,enableScoutHref:s,onEnableScout:r,onClose:d}){const[h,u]=C.useState(null),[l,c]=C.useState(""),[m,f]=C.useState(!0),x=i=>{i.preventDefault(),h&&n({answer:h,otherAnswerText:l,canContact:m})};return e.jsxs(U,{open:t,onClose:d,children:[e.jsx(B,{onClick:d,children:e.jsx(O,{})}),e.jsx(W,{}),e.jsxs(q,{children:[e.jsxs(S,{spacing:2,sx:{alignItems:"center",mt:2},children:[e.jsx($1,{color:"primary",fontSize:"medium",sx:i=>({boxSizing:"content-box",backgroundColor:i.vars.palette.docker.blue[100],borderRadius:"50%",padding:2})}),e.jsx(j,{variant:"h3",children:"Help us improve our product"})]}),e.jsxs("form",{onSubmit:x,children:[e.jsxs(S,{spacing:2,sx:{my:3},children:[e.jsxs(j,{variant:"subtitle1",sx:{mx:2},children:["Why did you decide not to enable Docker Scout in ",o," with a healthscore of ",a,"?"]}),e.jsxs(S,{children:[e.jsx(A1,{onChange:i=>u(i.target.value),value:h,children:d3.map(i=>e.jsx(J,{value:i.value,label:i.label,control:e.jsx(T1,{inputProps:{required:!0}})},i.value))}),h==="other"&&e.jsx(I,{sx:{mx:5},children:e.jsx(I1,{inputProps:{required:!0},fullWidth:!0,multiline:!0,label:"Tell us why",rows:5,value:l,onChange:i=>c(i.target.value)})})]})]}),e.jsxs(S,{spacing:1,sx:{alignItems:"center"},children:[e.jsxs(S,{direction:"row",spacing:2,children:[e.jsx(y,{variant:"outlined",component:k,href:s,onClick:r,children:"Enable Docker Scout on repository"}),e.jsx(y,{type:"submit",disabled:!h,children:"Submit"})]}),e.jsx(J,{label:"Docker can contact me about my response",control:e.jsx(O1,{}),checked:m,onChange:i=>f(i.target.checked)})]})]})]})]})}function C0({namespace:t,reponame:o,tag:a,digest:n,score:s,context:r,buttonProps:d,fixableCVEsCount:h,cannotViewOrEnableFallback:u}){const[l,c]=C.useState(),m=G(),[f]=H1([t]),x=!!f?.data?.isEnrolled,i=f?.data?.featureEntitlements?.remoteRepository.enabledRepoCount,p=f?.data?.featureEntitlements?.remoteRepository.accountLimit,b=p===null,F=!x||b||typeof p=="number"&&typeof i=="number"&&p>i,E=f?.data?.plan.isFree??!1,P=t3(t,o)==="static-scanning",$=f3(t),D=F1("organization-billing-update"),M=`${H()}/reports/org/${t}/images/host/hub.docker.com/repo/${encodeURIComponent(`${t}/${o}`)}/tag/${a}/digest/${encodeURIComponent(n)}/policy`,V=new URL(M);V.searchParams.set("autoEnable","true");const{data:L,isLoading:d1}=Y(t,o),{onView:C1,onSubmit:h1,onEnableScout:m1,onClose:g1,shouldShow:p1}=v3({orgName:t,repoName:o,scoutScore:s??"unknown",context:r});return d1?e.jsx(z1,{variant:"rounded",children:e.jsx(y,{variant:"outlined",children:"View on Scout"})}):L?e.jsx(y,{variant:"outlined",component:k,href:M,onClick:()=>{m({action:"click",element:"view-on-scout-already-enabled",elementContext:r,orgName:t,scoutScore:s})},...d,children:d?.children??"View on Scout"}):$?e.jsxs(e.Fragment,{children:[e.jsx(y,{variant:"outlined",onClick:()=>{m({action:"click",element:"view-on-scout",elementContext:r,orgName:t,scoutScore:s}),c(F?"enableScout":"limitReached")},...d,children:d?.children??"View on Scout"}),e.jsx(h3,{open:l==="enableScout",onCancel:()=>{p1?(c("feedbackSurvey"),C1()):c(void 0)},onClose:()=>{c(void 0)},enrolledInScout:x,showStaticScanningPoint:P,namespace:t,reponame:o,scoutHref:V.toString(),score:s,context:r,fixableCVEsCount:h,currentNumberRepos:i,entitledNumberRepos:p,isOnFreePlan:E}),!b&&e.jsx(m3,{open:l==="limitReached",onClose:()=>c(void 0),namespace:t,score:s,context:r,currentNumberRepos:i,entitledNumberRepos:p,isOnFreePlan:E,userCanUpgradePlan:D}),e.jsx(C3,{isOpen:l==="feedbackSurvey",onClose:()=>{g1(),c(void 0)},repoName:`${t}/${o}`,healthScore:s??"unknown",onSubmit:({answer:f1,otherAnswerText:v1,canContact:x1})=>{h1({answer:f1,otherAnswerText:v1,canContact:x1}),c(void 0)},enableScoutHref:V.toString(),onEnableScout:()=>{m1(),c(void 0)}})]}):u}function h3({open:t,onCancel:o,onClose:a,enrolledInScout:n,showStaticScanningPoint:s,namespace:r,reponame:d,scoutHref:h,score:u,context:l,fixableCVEsCount:c,currentNumberRepos:m,entitledNumberRepos:f,isOnFreePlan:x}){const i=G();return e.jsxs(U,{open:t,maxWidth:"sm",fullWidth:!0,onClose:o,children:[e.jsx(B,{onClick:o,children:e.jsx(O,{})}),e.jsx(W,{children:"Enable Docker Scout"}),e.jsx(q,{children:e.jsxs(S,{spacing:3,sx:{mt:2},children:[!n&&e.jsx(I,{sx:{alignSelf:"center"},children:e.jsxs(S,{direction:"row",spacing:1,sx:{alignItems:"flex-end"},children:[e.jsx(p3,{}),e.jsxs(S,{spacing:1,sx:{alignItems:"center"},children:[e.jsx(n1,{fontSize:"inherit",color:"secondary"}),e.jsx(I,{sx:p=>({width:150,borderTop:`dashed 1px ${p.vars.palette.grey[400]}`,mb:1})})]}),e.jsx(g3,{})]})}),typeof m<"u"&&typeof f<"u"&&e.jsx(v,{alignSelf:n?"end":"center",textAlign:"center",children:e.jsx(u1,{currentNumberRepos:m,entitledNumberRepos:f,isOnFreePlan:x})}),!n&&e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:"subtitle1",alignSelf:"center",textAlign:"center",sx:p=>({background:`linear-gradient(90deg, ${p.vars.palette.docker.blue[400]} 0%, ${p.vars.palette.docker.green[500]} 100%)`,backgroundClip:"text",color:"transparent"}),children:["Docker Scout is a product for proactively enhancing",e.jsx("br",{}),"your software supply chain security"]}),e.jsxs(v,{variant:"body1",children:["By enabling Docker Scout on your ",e.jsx("strong",{children:d})," ","repository, you will:"]})]}),e.jsxs(g,{container:!0,spacing:2,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(g,{size:{xs:1},children:e.jsx(g,{container:!0,sx:{alignItems:"center",justifyContent:"center",height:"100%"},children:e.jsx(t1,{sx:{color:"docker.grey.400"}})})}),e.jsx(g,{size:{xs:11},children:e.jsx(v,{variant:"body1",children:"Upgrade from static scanning to Docker Scout image analysis for continuous security insights"})})]}),e.jsx(g,{size:{xs:1},children:e.jsx(g,{container:!0,sx:{alignItems:"center",justifyContent:"center",height:"100%"},children:e.jsx(S1,{sx:{color:"docker.grey.400"}})})}),e.jsx(g,{size:{xs:11},children:n?e.jsxs(v,{variant:"body1",children:["Activate Docker Scout"," ",x&&e.jsxs(e.Fragment,{children:["for ",e.jsx("strong",{children:"FREE"})," "]}),"on your ",e.jsx("strong",{children:d})," repository"]}):e.jsxs(v,{variant:"body1",children:["Activate your ",e.jsx("strong",{children:"Docker Scout Free"})," plan, giving you 3 Scout-enabled repositories for advanced remote image analysis"]})}),e.jsx(g,{size:{xs:1},children:e.jsx(g,{container:!0,sx:{alignItems:"center",justifyContent:"center",height:"100%"},children:e.jsx(o1,{sx:{color:"docker.grey.400"}})})}),e.jsx(g,{size:{xs:11},children:e.jsx(v,{variant:"body1",children:"Evaluate your most recently pushed image against the default Docker Scout policies or policies configured to meet your organization's requirements"})}),e.jsx(g,{size:{xs:1},children:e.jsx(g,{container:!0,sx:{alignItems:"center",justifyContent:"center",height:"100%"},children:e.jsx(y1,{sx:{color:"docker.grey.400"}})})}),e.jsx(g,{size:{xs:11},children:e.jsx(v,{variant:"body1",children:c?e.jsxs(e.Fragment,{children:["Get actionable remediation suggestions and learn how to fix"," ",e.jsx("strong",{children:c})," CVEs"]}):"Get actionable image and vulnerability insights, as well as remediation suggestions"})})]}),!n&&e.jsx(k,{href:"https://docs.docker.com/scout/quickstart/",children:"Get started with Docker Scout"})]})}),e.jsxs(e1,{children:[e.jsx(y,{variant:"outlined",component:k,href:`${H()}/demo`,onClick:()=>{i({action:"click",element:"see-scout-with-demo-data",elementContext:l,orgName:r,scoutScore:u}),a()},children:"See how Scout works with demo data"}),e.jsx(y,{variant:"contained",component:k,href:h,onClick:()=>{i({action:"click",element:"enable-and-view-on-scout",elementContext:l,orgName:r,scoutScore:u}),a()},children:n?"Enable and view on Docker Scout":"Improve for free on Docker Scout"})]})]})}function m3({open:t,onClose:o,namespace:a,score:n,context:s,currentNumberRepos:r,entitledNumberRepos:d,isOnFreePlan:h,userCanUpgradePlan:u}){const l=G();return e.jsxs(U,{open:t,maxWidth:"sm",fullWidth:!0,onClose:o,children:[e.jsx(B,{onClick:o,children:e.jsx(O,{})}),e.jsx(W,{children:"Cannot enable Docker Scout"}),e.jsx(q,{children:e.jsxs(S,{spacing:3,sx:{mt:2},children:[typeof d<"u"&&typeof r<"u"&&e.jsx(v,{alignSelf:"end",children:e.jsx(u1,{currentNumberRepos:r,entitledNumberRepos:d,isOnFreePlan:h})}),e.jsxs(v,{variant:"body1",paragraph:!0,children:["Your account has already met the Docker Scout repository limit.",e.jsx("br",{}),u?"Upgrade your subscription":e.jsxs(e.Fragment,{children:[e.jsx(j1,{to:k1("/orgs/:orgname/members",{orgname:a}),children:"Ask your organization owner"})," ","to upgrade your subscription"]})," ","to enable Docker Scout on this repository."]})]})}),e.jsxs(e1,{children:[e.jsx(y,{variant:"outlined",component:k,href:`${H()}/org/${a}/settings/repos`,onClick:()=>{l({action:"click",element:"manage-repositories",elementContext:s,orgName:a,scoutScore:n}),o()},children:"Manage repositories"}),e.jsx(U1,{placement:"top",title:u?void 0:"Only organization owners can upgrade your Docker Scout subscription",children:e.jsx("span",{children:e.jsx(y,{disabled:!u,variant:"contained",component:k,href:`${H()}/org/${a}/settings/upgrade`,onClick:()=>{l({action:"click",element:"upgrade-subscription",elementContext:s,orgName:a,scoutScore:n}),o()},children:"Upgrade your subscription"})})})]})]})}function g3(){return e.jsxs("svg",{width:"92",height:"24",viewBox:"0 0 92 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M20.0213 10.3874C22.1448 6.05847 22.5001 2 22.5001 2C22.5001 2 18.44 2.35527 14.1099 4.47986C17.0606 5.10947 19.3896 7.43768 20.0213 10.3875V10.3874Z",fill:"#2E7F74"}),e.jsx("path",{opacity:"0.5",d:"M20.0201 13.6173C19.377 16.6083 16.9884 18.9583 13.9773 19.5456L14.1983 19.7666C15.0251 20.5934 16.1083 21.0063 17.1916 21.0063C18.2748 21.0063 19.3579 20.5935 20.1842 19.7666C21.8367 18.1141 21.8367 15.4338 20.1842 13.7813L20.0203 13.6172L20.0201 13.6173Z",fill:"#2E7F74"}),e.jsx("path",{d:"M17.1493 11.9992C17.1493 11.474 17.0619 10.9687 16.8999 10.4972C16.4355 9.14126 15.361 8.06673 14.005 7.60229C13.5335 7.44042 13.0282 7.35303 12.503 7.35303C9.94055 7.35303 7.8562 9.43737 7.8562 11.9992C7.8562 12.6294 7.98218 13.2307 8.21087 13.7793C8.68237 14.912 9.58963 15.8192 10.7223 16.2907C11.2709 16.5194 11.8723 16.6454 12.503 16.6454C15.0648 16.6454 17.1492 14.5611 17.1492 11.9992H17.1493Z",fill:"#2E7F74"}),e.jsx("path",{opacity:"0.5",d:"M4.95631 10.5249C5.54298 7.5138 7.89356 5.12524 10.8846 4.48211L10.7287 4.32624C9.0756 2.67315 6.39588 2.67315 4.74279 4.32624C3.0903 5.97873 3.0903 8.65906 4.74279 10.3115L4.95631 10.5251V10.5249Z",fill:"#2E7F74"}),e.jsx("path",{d:"M4.98256 13.604C2.85587 17.9368 2.5 22.0001 2.5 22.0001C2.5 22.0001 6.56283 21.6442 10.8944 19.5181C7.94203 18.8875 5.61203 16.557 4.98256 13.604Z",fill:"#2E7F74"}),e.jsx("path",{d:"M35.147 19.092C34.0737 19.092 33.077 18.931 32.157 18.609C31.2523 18.2717 30.547 17.85 30.041 17.344C29.811 17.0987 29.7113 16.8227 29.742 16.516C29.788 16.194 29.9413 15.9333 30.202 15.734C30.5087 15.4887 30.8077 15.389 31.099 15.435C31.4057 15.4657 31.6663 15.596 31.881 15.826C32.1417 16.1173 32.5557 16.3933 33.123 16.654C33.7057 16.8993 34.3497 17.022 35.055 17.022C35.9443 17.022 36.619 16.8763 37.079 16.585C37.5543 16.2937 37.7997 15.918 37.815 15.458C37.8303 14.998 37.608 14.5993 37.148 14.262C36.7033 13.9247 35.883 13.6487 34.687 13.434C33.1383 13.1273 32.0113 12.6673 31.306 12.054C30.616 11.4407 30.271 10.6893 30.271 9.8C30.271 9.018 30.501 8.374 30.961 7.868C31.421 7.34667 32.0113 6.96333 32.732 6.718C33.4527 6.45733 34.204 6.327 34.986 6.327C35.998 6.327 36.895 6.488 37.677 6.81C38.459 7.132 39.08 7.57667 39.54 8.144C39.7547 8.38933 39.8543 8.65 39.839 8.926C39.8237 9.18667 39.6933 9.409 39.448 9.593C39.2027 9.76167 38.9113 9.81533 38.574 9.754C38.2367 9.69267 37.953 9.55467 37.723 9.34C37.3397 8.972 36.9257 8.719 36.481 8.581C36.0363 8.443 35.5227 8.374 34.94 8.374C34.2653 8.374 33.6903 8.489 33.215 8.719C32.755 8.949 32.525 9.28633 32.525 9.731C32.525 10.007 32.594 10.26 32.732 10.49C32.8853 10.7047 33.1767 10.904 33.606 11.088C34.0353 11.2567 34.664 11.4253 35.492 11.594C36.642 11.824 37.5467 12.1153 38.206 12.468C38.8807 12.8207 39.3637 13.2347 39.655 13.71C39.9463 14.17 40.092 14.7067 40.092 15.32C40.092 16.0253 39.9003 16.6617 39.517 17.229C39.149 17.7963 38.597 18.2487 37.861 18.586C37.1403 18.9233 36.2357 19.092 35.147 19.092ZM47.7623 19.092C46.5356 19.092 45.4393 18.816 44.4733 18.264C43.5226 17.6967 42.7713 16.9377 42.2193 15.987C41.6826 15.021 41.4143 13.9323 41.4143 12.721C41.4143 11.479 41.6826 10.375 42.2193 9.409C42.7559 8.443 43.4919 7.69167 44.4273 7.155C45.3626 6.603 46.4359 6.327 47.6473 6.327C48.5519 6.327 49.3799 6.50333 50.1313 6.856C50.8826 7.19333 51.5573 7.707 52.1553 8.397C52.3699 8.64233 52.4466 8.89533 52.3853 9.156C52.3239 9.41667 52.1553 9.64667 51.8793 9.846C51.6646 9.99933 51.4269 10.053 51.1663 10.007C50.9056 9.94567 50.6679 9.80767 50.4533 9.593C49.7019 8.79567 48.7666 8.397 47.6473 8.397C46.8653 8.397 46.1753 8.581 45.5773 8.949C44.9793 9.30167 44.5116 9.8 44.1743 10.444C43.8369 11.088 43.6683 11.847 43.6683 12.721C43.6683 13.549 43.8369 14.285 44.1743 14.929C44.5269 15.573 45.0099 16.0867 45.6233 16.47C46.2366 16.838 46.9496 17.022 47.7623 17.022C48.2989 17.022 48.7666 16.9607 49.1653 16.838C49.5793 16.7 49.9549 16.493 50.2923 16.217C50.5376 16.0177 50.7906 15.9103 51.0513 15.895C51.3119 15.8643 51.5419 15.9333 51.7413 16.102C52.0019 16.3167 52.1476 16.562 52.1783 16.838C52.2089 17.0987 52.1169 17.3363 51.9023 17.551C50.7983 18.5783 49.4183 19.092 47.7623 19.092ZM60.5758 19.092C59.3338 19.092 58.2374 18.8237 57.2868 18.287C56.3361 17.735 55.5848 16.9837 55.0328 16.033C54.4961 15.067 54.2278 13.963 54.2278 12.721C54.2278 11.4637 54.4961 10.3597 55.0328 9.409C55.5848 8.443 56.3361 7.69167 57.2868 7.155C58.2374 6.603 59.3338 6.327 60.5758 6.327C61.8024 6.327 62.8911 6.603 63.8418 7.155C64.7924 7.69167 65.5361 8.443 66.0728 9.409C66.6248 10.3597 66.9008 11.4637 66.9008 12.721C66.9008 13.963 66.6324 15.067 66.0958 16.033C65.5591 16.9837 64.8154 17.735 63.8648 18.287C62.9141 18.8237 61.8178 19.092 60.5758 19.092ZM60.5758 17.022C61.3731 17.022 62.0784 16.838 62.6918 16.47C63.3051 16.102 63.7804 15.596 64.1178 14.952C64.4704 14.308 64.6468 13.5643 64.6468 12.721C64.6468 11.8777 64.4704 11.134 64.1178 10.49C63.7804 9.83067 63.3051 9.317 62.6918 8.949C62.0784 8.581 61.3731 8.397 60.5758 8.397C59.7784 8.397 59.0731 8.581 58.4598 8.949C57.8464 9.317 57.3634 9.83067 57.0108 10.49C56.6581 11.134 56.4818 11.8777 56.4818 12.721C56.4818 13.5643 56.6581 14.308 57.0108 14.952C57.3634 15.596 57.8464 16.102 58.4598 16.47C59.0731 16.838 59.7784 17.022 60.5758 17.022ZM74.6823 19.115C73.6243 19.115 72.6736 18.8927 71.8303 18.448C71.0023 17.988 70.3429 17.321 69.8523 16.447C69.3769 15.573 69.1393 14.4997 69.1393 13.227V7.569C69.1393 7.23167 69.2466 6.95567 69.4613 6.741C69.6913 6.511 69.9749 6.396 70.3123 6.396C70.6496 6.396 70.9256 6.511 71.1403 6.741C71.3703 6.95567 71.4853 7.23167 71.4853 7.569V13.227C71.4853 14.0857 71.6463 14.7987 71.9683 15.366C72.2903 15.918 72.7273 16.332 73.2793 16.608C73.8313 16.8687 74.4523 16.999 75.1423 16.999C75.8016 16.999 76.3843 16.8687 76.8903 16.608C77.4116 16.3473 77.8256 15.9947 78.1323 15.55C78.4389 15.1053 78.5923 14.607 78.5923 14.055H80.0413C80.0413 15.0057 79.8036 15.8643 79.3283 16.631C78.8683 17.3977 78.2319 18.0033 77.4193 18.448C76.6219 18.8927 75.7096 19.115 74.6823 19.115ZM79.7653 19C79.4279 19 79.1443 18.8927 78.9143 18.678C78.6996 18.448 78.5923 18.1643 78.5923 17.827V7.569C78.5923 7.21633 78.6996 6.93267 78.9143 6.718C79.1443 6.50333 79.4279 6.396 79.7653 6.396C80.1179 6.396 80.4016 6.50333 80.6163 6.718C80.8309 6.93267 80.9383 7.21633 80.9383 7.569V17.827C80.9383 18.1643 80.8309 18.448 80.6163 18.678C80.4016 18.8927 80.1179 19 79.7653 19ZM88.647 19C87.8803 19 87.1903 18.8083 86.577 18.425C85.9637 18.0263 85.4807 17.4897 85.128 16.815C84.7753 16.1403 84.599 15.3813 84.599 14.538V3.567C84.599 3.22967 84.7063 2.95367 84.921 2.739C85.1357 2.52433 85.4117 2.417 85.749 2.417C86.0863 2.417 86.3623 2.52433 86.577 2.739C86.7917 2.95367 86.899 3.22967 86.899 3.567V14.538C86.899 15.1513 87.0677 15.665 87.405 16.079C87.7423 16.493 88.1563 16.7 88.647 16.7H89.429C89.705 16.7 89.935 16.8073 90.119 17.022C90.3183 17.2367 90.418 17.5127 90.418 17.85C90.418 18.1873 90.2877 18.4633 90.027 18.678C89.7817 18.8927 89.4597 19 89.061 19H88.647ZM83.541 8.857C83.219 8.857 82.9583 8.765 82.759 8.581C82.5597 8.397 82.46 8.167 82.46 7.891C82.46 7.58433 82.5597 7.339 82.759 7.155C82.9583 6.971 83.219 6.879 83.541 6.879H88.854C89.176 6.879 89.4367 6.971 89.636 7.155C89.8353 7.339 89.935 7.58433 89.935 7.891C89.935 8.167 89.8353 8.397 89.636 8.581C89.4367 8.765 89.176 8.857 88.854 8.857H83.541Z",fill:"#2E7F74"})]})}function p3(){return e.jsxs("svg",{width:"76",height:"24",viewBox:"0 0 76 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M24.1087 10.3848C23.5202 9.98794 21.9744 9.81829 20.8501 10.1218C20.7896 8.99958 20.2119 8.05403 19.156 7.2291L18.7647 6.96605L18.5038 7.36062C17.9914 8.13963 17.7763 9.1778 17.8524 10.1218C17.913 10.7031 18.1148 11.3569 18.5038 11.8316C17.0411 12.6822 15.6925 12.4892 9.72035 12.4892H0.502094C0.474919 13.841 0.692313 16.4411 2.3414 18.5571C2.52385 18.7906 2.72339 19.017 2.94001 19.2349C4.28086 20.5813 6.30727 21.5681 9.33758 21.5712C13.9603 21.5751 17.9207 19.0707 20.3299 13.0153C21.1226 13.0285 23.215 13.1577 24.2391 11.174C24.264 11.1405 24.5 10.6479 24.5 10.6479L24.1087 10.3848ZM6.51846 8.99024H3.92604V11.5888H6.51846V8.99024ZM9.86787 8.99024H7.27545V11.5888H9.86787V8.99024ZM13.2173 8.99024H10.6249V11.5888H13.2173V8.99024ZM16.5667 8.99024H13.9743V11.5888H16.5667V8.99024ZM3.16827 8.99024H0.576629V11.5888H3.16905L3.16827 8.99024ZM6.51768 5.70765H3.92526V8.30617H6.51768V5.70765ZM9.86709 5.70765H7.27468V8.30617H9.86709V5.70765ZM13.2165 5.70765H10.6241V8.30617H13.2165V5.70765ZM13.2165 2.42505H10.6241V5.02358H13.2165V2.42505Z",fill:"#1D63ED"}),e.jsx("path",{d:"M32.743 16.421C32.4057 16.421 32.122 16.3137 31.892 16.099C31.6773 15.869 31.57 15.5854 31.57 15.248V4.20805C31.57 3.85538 31.6773 3.57171 31.892 3.35705C32.122 3.14238 32.4057 3.03505 32.743 3.03505C33.0957 3.03505 33.3793 3.14238 33.594 3.35705C33.8087 3.57171 33.916 3.85538 33.916 4.20805V15.248C33.916 15.5854 33.8087 15.869 33.594 16.099C33.3793 16.3137 33.0957 16.421 32.743 16.421ZM42.196 21.021C41.8587 21.021 41.575 20.9137 41.345 20.699C41.1303 20.469 41.023 20.1854 41.023 19.848V14.19C41.023 13.316 40.862 12.603 40.54 12.051C40.218 11.499 39.781 11.0927 39.229 10.832C38.6923 10.556 38.0713 10.418 37.366 10.418C36.722 10.418 36.1393 10.5484 35.618 10.809C35.0967 11.0697 34.6827 11.4224 34.376 11.867C34.0693 12.2964 33.916 12.7947 33.916 13.362H32.467C32.467 12.396 32.697 11.5374 33.157 10.786C33.6323 10.0194 34.2763 9.41371 35.089 8.96905C35.9017 8.52438 36.814 8.30205 37.826 8.30205C38.884 8.30205 39.827 8.53205 40.655 8.99205C41.4983 9.43671 42.1577 10.096 42.633 10.97C43.1237 11.844 43.369 12.9174 43.369 14.19V19.848C43.369 20.1854 43.254 20.469 43.024 20.699C42.8093 20.9137 42.5333 21.021 42.196 21.021ZM32.743 21.021C32.4057 21.021 32.122 20.9137 31.892 20.699C31.6773 20.469 31.57 20.1854 31.57 19.848V9.59005C31.57 9.23738 31.6773 8.95371 31.892 8.73905C32.122 8.52438 32.4057 8.41705 32.743 8.41705C33.0957 8.41705 33.3793 8.52438 33.594 8.73905C33.8087 8.95371 33.916 9.23738 33.916 9.59005V19.848C33.916 20.1854 33.8087 20.469 33.594 20.699C33.3793 20.9137 33.0957 21.021 32.743 21.021ZM51.5602 21.113C50.5022 21.113 49.5515 20.8907 48.7082 20.446C47.8802 19.986 47.2209 19.319 46.7302 18.445C46.2549 17.571 46.0172 16.4977 46.0172 15.225V9.56705C46.0172 9.22971 46.1245 8.95371 46.3392 8.73905C46.5692 8.50905 46.8529 8.39405 47.1902 8.39405C47.5275 8.39405 47.8035 8.50905 48.0182 8.73905C48.2482 8.95371 48.3632 9.22971 48.3632 9.56705V15.225C48.3632 16.0837 48.5242 16.7967 48.8462 17.364C49.1682 17.916 49.6052 18.33 50.1572 18.606C50.7092 18.8667 51.3302 18.997 52.0202 18.997C52.6795 18.997 53.2622 18.8667 53.7682 18.606C54.2895 18.3454 54.7035 17.9927 55.0102 17.548C55.3169 17.1034 55.4702 16.605 55.4702 16.053H56.9192C56.9192 17.0037 56.6815 17.8624 56.2062 18.629C55.7462 19.3957 55.1099 20.0014 54.2972 20.446C53.4999 20.8907 52.5875 21.113 51.5602 21.113ZM56.6432 20.998C56.3059 20.998 56.0222 20.8907 55.7922 20.676C55.5775 20.446 55.4702 20.1624 55.4702 19.825V9.56705C55.4702 9.21438 55.5775 8.93071 55.7922 8.71605C56.0222 8.50138 56.3059 8.39405 56.6432 8.39405C56.9959 8.39405 57.2795 8.50138 57.4942 8.71605C57.7089 8.93071 57.8162 9.21438 57.8162 9.56705V19.825C57.8162 20.1624 57.7089 20.446 57.4942 20.676C57.2795 20.8907 56.9959 20.998 56.6432 20.998ZM67.2729 21.09C66.0769 21.09 65.0036 20.814 64.0529 20.262C63.1023 19.6947 62.3509 18.928 61.7989 17.962C61.2469 16.996 60.9633 15.9074 60.9479 14.696V4.20805C60.9479 3.85538 61.0553 3.57171 61.2699 3.35705C61.4999 3.14238 61.7836 3.03505 62.1209 3.03505C62.4736 3.03505 62.7573 3.14238 62.9719 3.35705C63.1866 3.57171 63.2939 3.85538 63.2939 4.20805V10.418C63.8306 9.77405 64.4746 9.26805 65.2259 8.90005C65.9926 8.51671 66.8283 8.32505 67.7329 8.32505C68.8523 8.32505 69.8566 8.60871 70.7459 9.17605C71.6353 9.72805 72.3329 10.487 72.8389 11.453C73.3603 12.4037 73.6209 13.4847 73.6209 14.696C73.6209 15.9074 73.3373 16.996 72.7699 17.962C72.2179 18.928 71.4666 19.6947 70.5159 20.262C69.5653 20.814 68.4843 21.09 67.2729 21.09ZM67.2729 19.02C68.0549 19.02 68.7526 18.836 69.3659 18.468C69.9793 18.0847 70.4623 17.5634 70.8149 16.904C71.1829 16.2447 71.3669 15.5087 71.3669 14.696C71.3669 13.868 71.1829 13.132 70.8149 12.488C70.4623 11.844 69.9793 11.338 69.3659 10.97C68.7526 10.5867 68.0549 10.395 67.2729 10.395C66.5063 10.395 65.8086 10.5867 65.1799 10.97C64.5666 11.338 64.0836 11.844 63.7309 12.488C63.3783 13.132 63.2019 13.868 63.2019 14.696C63.2019 15.5087 63.3783 16.2447 63.7309 16.904C64.0836 17.5634 64.5666 18.0847 65.1799 18.468C65.8086 18.836 66.5063 19.02 67.2729 19.02Z",fill:"#1D63ED"})]})}function u1({entitledNumberRepos:t,currentNumberRepos:o,isOnFreePlan:a}){const n=t===null,s=n||t>o;return e.jsxs(e.Fragment,{children:[e.jsx(j,{component:"span",sx:{verticalAlign:"middle"},children:"Using"})," ",e.jsx(j,{variant:"h4",component:"span",sx:[r=>({background:r.vars.palette.docker.red[400],backgroundClip:"text",color:"transparent",verticalAlign:"middle"}),s&&(r=>({background:`linear-gradient(90deg, ${r.vars.palette.docker.blue[400]} 0%, ${r.vars.palette.docker.green[500]} 100%)`}))],children:o})," ",e.jsx(j,{component:"span",sx:{verticalAlign:"middle"},children:"out of"})," ",e.jsxs(j,{variant:"h4",component:"span",sx:[r=>({background:r.vars.palette.docker.red[400],backgroundClip:"text",color:"transparent",verticalAlign:"middle"}),s&&(r=>({background:`linear-gradient(90deg, ${r.vars.palette.docker.blue[400]} 0%, ${r.vars.palette.docker.green[500]} 100%)`}))],children:[n?"unlimited":t," "]})," ",e.jsx(j,{component:"span",sx:{verticalAlign:"middle"},children:a?"FREE repositories":"available repositories"}),e.jsx(B1,{variant:"determinate",value:100,sx:[r=>({mt:.5,[`& .${W1.bar}`]:{background:r.vars.palette.docker.red[400]}}),s&&(r=>({background:`linear-gradient(90deg, ${r.vars.palette.docker.blue[400]} 0%, ${r.vars.palette.docker.green[500]} 100%)`}))]})]})}function f3(t){const o=X(),a=V1({username:o?.username||"--disabled--"},{enabled:!!o?.username}).data;return o?.username===t||(a?.some(r=>r.orgname===t&&(r.user_role==="Owner"||r.user_role==="Editor"))??!1)}function v3({orgName:t,repoName:o,scoutScore:a,context:n}){const s=a3(),r=X(),d=M1(r?.username??"--disabled--",{enabled:!!r?.username}),h=w1({accountName:t,productName:"core"}),u=Z1({namespace:t,page:0,pageSize:1}).data?.count??"unknown",l=R1(t).data?.count??"unknown",[c,m]=u3(),f=C.useCallback(()=>{s({action:"view",element:"enable-scout-survey",elementContext:n,orgName:t,repoName:o,scoutScore:a,hubRepoCount:u,scoutRepoCount:l}),m({healthScoreSurveyViewCount:(c.data?.healthScoreSurveyViewCount??0)+1,healthScoreSurveyLastViewed:new Date})},[s,n,t,o,a,u,l,m,c.data?.healthScoreSurveyViewCount]),x=C.useCallback(()=>{s({action:"enable-scout",element:"enable-scout-survey",elementContext:n,orgName:t,repoName:o,scoutScore:a,hubRepoCount:u,scoutRepoCount:l})},[s,n,t,o,a,u,l]),i=C.useCallback(()=>{s({action:"close",element:"enable-scout-survey",elementContext:n,orgName:t,repoName:o,scoutScore:a,hubRepoCount:u,scoutRepoCount:l})},[s,n,t,o,a,u,l]),p=C.useCallback(({answer:M,otherAnswerText:V,canContact:L})=>{s({action:"submit",element:"enable-scout-survey",elementContext:n,orgName:t,repoName:o,scoutScore:a,hubRepoCount:u,scoutRepoCount:l,surveyAnswer:M,surveyAnswerOther:M==="other"?V:void 0,dockerSubscription:h.data?.tier_name??"unknown",canContact:L,...L?{userName:r?.username??"unknown",userEmail:d.data?.email??"unknown"}:{}}),m({healthScoreSurveySubmitted:!0})},[m,s,n,t,o,a,u,l,h.data?.tier_name,r?.username,d.data?.email]),b=c.isSuccess,F=b&&c.data?.healthScoreSurveySubmitted,E=b&&c.data?.healthScoreSurveyViewCount>=1,P=b&&c.data?.healthScoreSurveyViewCount>1,$=b&&c.data?.healthScoreSurveyLastViewed?q1(new Date,c.data.healthScoreSurveyLastViewed)>=7:!1;let D=!1;return!F&&!P&&($||!E)&&(D=!0),{onView:f,onSubmit:p,onEnableScout:x,onClose:i,shouldShow:D}}export{d0 as A,C0 as E,o1 as S,c0 as a,t3 as b,e3 as c,l0 as i,u0 as r,G as u};