import{_ as j}from"./ByD8ocBN.js";import{_ as F}from"./UHl-J-Nb.js";import{e as v,h as V,A as O,o,c as r,a as t,t as s,b as h,w as u,d as _,k as g,f as w,g as d,r as x,F as S,l as P,n as B,D as L}from"./cq4xQrr4.js";import{g as $}from"./BsUYKmFa.js";import{M as G}from"./C6rvTD2q.js";const I={class:"pt-12 fixed inset-0 z-10 overflow-y-auto"},E={class:"flex h-full min-h-full items-center justify-center text-center sm:p-4"},N=["for"],T={class:"relative h-full w-full transform overflow-hidden border bg-white text-left text-black shadow-xl transition-all dark:border-gray-600 dark:bg-neutral-900 dark:text-gray-300 sm:my-8 sm:h-[unset] sm:max-h-[90vh] sm:max-w-3xl sm:rounded-md"},q={class:"flex h-full flex-col justify-between"},H={class:"border-b p-3 dark:border-gray-600"},Y={class:"text-xl font-medium ltr:text-left rtl:text-right"},K={class:"overflow-y-scroll p-3 sm:h-full sm:max-h-[75vh]"},R={key:0,class:"ltr:text-left rtl:text-right"},U={key:1,class:"ltr:text-left rtl:text-right"},Z={class:"list-outside list-decimal pt-2 ltr:pl-8 ltr:text-left rtl:pr-8 rtl:text-right"},J={key:0},Q=["href","download"],W=["href"],X={key:1},tt=["href"],et={class:"mb-2"},st={key:2},at={class:"mb-2"},lt={class:"mb-4 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},ot={key:3},nt={class:"mb-2"},rt={class:"mb-4 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},it={class:"mb-4 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},dt={key:4},ct={class:"mb-2"},ht={class:"mb-4 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},mt={class:"ltr:text-left rtl:text-right"},ut={key:2,class:"pt-4"},ft={class:"mb-2 ltr:text-left rtl:text-right"},gt={class:"mb-4 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},pt={class:"flex justify-end border-t p-3 dark:border-gray-600"},yt=["for"],bt={__name:"FpVerifyModal",props:{data:{type:Object,default:{}}},setup(e){const{t:n}=v();return V(),(a,i)=>{const c=O("i18n-t"),f=j,k=F;return o(),r("div",I,[t("div",E,[t("label",{for:`modal-${e.data.sha256}`,class:"fixed inset-0 bg-white/40 backdrop-blur-md dark:bg-black/50"},null,8,N),t("div",T,[t("div",q,[t("header",H,[t("h5",Y,s(a.$t("Verify Your Download")),1)]),t("div",K,[e.data.signature?(o(),r("p",R,s(a.$t("Verify your download for security and integrity using the proper checksum and signature file. If the checksum file has a valid signature from one of the the Fedora Project's OpenPGP certificates, and the SHA256 checksum matches the download, then the download is valid.")),1)):(o(),r("p",U,s(a.$t("Verify your download for security and integrity using the checksum file. If the checksum file has a valid signature from one of the the Fedora Project's OpenPGP certificates, and the SHA256 checksum matches the download, then the download is valid.")),1)),t("ul",Z,[e.data.signature?(o(),r("li",J,[h(c,{keypath:"download_the_checksum_and_signature",scope:"global",tag:"p",class:"mb-2"},{checksum_file:u(()=>[t("a",{class:"text-fp-blue cursor-default underline-offset-1 hover:underline",href:e.data.checksum,download:e.data.chk_name,target:"_blank"},s(a.$t("checksum file")),9,Q)]),signature:u(()=>[t("a",{class:"text-fp-blue cursor-default underline-offset-1 hover:underline",href:e.data.signature},s(a.$t("signature")),9,W)]),_:1})])):(o(),r("li",X,[h(c,{keypath:"download_the_checksum_file",tag:"p",class:"mb-2"},{checksum_file:u(()=>[t("a",{class:"text-fp-blue cursor-default underline-offset-1 hover:underline",href:e.data.checksum,target:"_blank"},s(a.$t("checksum file")),9,tt)]),_:1})])),t("li",null,[t("p",et,s(a.$t("Download Fedora's OpenPGP certificates.")),1),i[0]||(i[0]=t("pre",{class:"mb-1 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},[t("code",null,"curl -O https://fedoraproject.org/fedora.pgp")],-1)),i[1]||(i[1]=t("pre",{class:"mb-1 bg-slate-100 px-4 text-sm text-gray-800 dark:bg-slate-800 dark:text-gray-300"},[t("code",null,"curl -O https://fedoraproject.org/fedora.gpg")],-1)),h(c,{keypath:"you_can_verify_the_PGP_details",tag:"p",class:"mb-4 text-sm"},{icon:u(()=>[h(f,{name:"fa-solid fa-info-circle",class:"mx-2 !align-baseline"})]),here:u(()=>[h(k,{class:"text-sm text-fp-blue cursor-default underline-offset-1 hover:underline",href:"security"},{default:u(()=>[_(s(a.$t("here")),1)]),_:1})]),_:1})]),e.data.signature?(o(),r("li",st,[t("p",at,s(a.$t("Verify the signature file is valid")),1),t("pre",lt,[t("code",null,"gpgv --keyring ./fedora.gpg "+s(e.data.sig_name)+" "+s(e.data.art_name),1)])])):(o(),r("li",ot,[t("p",nt,[_(s(a.$t("Use the OpenPGP-verified checksum to verify the download.")),1),i[2]||(i[2]=t("br",null,null,-1)),_(" "+s(a.$t("You can use sq or gpgv to verify the checksum file.")),1)]),t("pre",rt,[t("code",null,`sq verify --cleartext --signer-file ./fedora.pgp \\ `+s(e.data.chk_name)+` \\ | sha256sum -c --ignore-missing `,1)]),t("pre",it,[t("code",null,`gpgv --keyring ./fedora.gpg --output - \\ `+s(e.data.chk_name)+` \\ | sha256sum -c --ignore-missing `,1)])])),e.data.signature?(o(),r("li",dt,[t("p",ct,s(a.$t("Verify the checksum matches")),1),t("pre",ht,[t("code",null,"sha256sum --ignore-missing -c "+s(e.data.chk_name),1)])])):g("",!0)]),t("p",mt,s(a.$t("If the output states that the file is valid, then it's ready to use!")),1),e.data.sha256?(o(),r("div",ut,[i[3]||(i[3]=t("hr",null,null,-1)),i[4]||(i[4]=t("br",null,null,-1)),t("p",ft,s(a.$t("Alternatively, if you just want to test for unintentional file corruption, you can skip the OpenPGP verification. The SHA256 checksum for this download should be:")),1),t("pre",gt,[t("code",null,s(e.data.sha256),1)])])):g("",!0)]),t("footer",pt,[t("label",{for:`modal-${e.data.sha256}`,class:"rounded bg-fp-newblue-500 py-1 px-2 text-sm text-white hover:bg-fp-blue"},s(a.$t("Close")),9,yt)])])])])])}}},kt={class:"flex items-center justify-between gap-4"},_t={class:"flex flex-wrap gap-x-5 text-gray-800 dark:text-gray-400"},xt={class:"whitespace-nowrap"},wt={class:"font-semibold whitespace-normal"},$t={class:"beta-flag hidden"},vt={class:"dl-format text-gray-500"},St={key:0,class:"size"},Pt={class:"whitespace-nowrap"},jt={class:"font-semibold whitespace-normal"},Ft={class:"dl-format text-gray-500"},Vt={class:"beta-flag hidden"},Dt={class:"dl-buttons inline-flex"},Ct=["id"],Mt=["for","title"],Et={__name:"FpDownloadItem",props:{name:{type:String},type:{type:String},format:{type:String},theme:{type:String},variants:{type:Array,default:[]},arch:{type:String},peer:{type:String},downloadLink:{type:String},checksumLink:{type:String},size:{type:Number},modalData:{type:Object,default:{}}},async setup(e){let n,a;const{t:i}=v();V();const c=e,{type_labels:f}=([n,a]=w(()=>$("/download-item-labels")),n=await n,a(),n),p=(([n,a]=w(()=>$("/blocking-releases")),n=await n,a(),n)?.map(l=>new RegExp(l))||[]).some(l=>l.test(c.downloadLink)),D=c.variants.map(l=>`fp-download-item--variant-${l}`),C=l=>{let m=Math.log(l)/Math.log(1024)|0;return(l/Math.pow(1024,m)).toFixed(1)+" "+(m?"KMGTPEZY"[--m]+"iB":"Bytes")},M=()=>c.downloadLink.replace(/dl\.fedoraproject\.org/,"download.fedoraproject.org"),y=L(()=>c.type?.toLowerCase());return(l,m)=>{const b=j,z=bt,A=F;return!d(y)||d(f)[d(y)]?(o(),r("div",{key:0,class:B(["fp-download-item",d(D),e.theme])},[t("div",kt,[t("p",_t,[x(l.$slots,"default",{},()=>[e.variants.includes("labs")?(o(),r(S,{key:0},[t("span",xt,[t("span",wt,s(e.name),1),d(p)?(o(),P(b,{key:0,name:"fa-solid fa-star",class:"w-0 align-middle translate-x-[1px] -translate-y-2 quality-star",style:{color:"rgb(255, 212, 59)"},size:"12"})):g("",!0)]),t("span",$t,s(l.$t("BETA")),1),m[0]||(m[0]=t("span",{class:"w-0 basis-full"},null,-1)),t("span",null,s(d(f)[d(y)]),1),t("span",vt,s(e.format),1),e.size?(o(),r("span",St,s(C(e.size)),1)):g("",!0)],64)):(o(),r(S,{key:1},[t("span",Pt,[t("span",jt,s(e.name),1),d(p)?(o(),P(b,{key:0,name:"fa-solid fa-star",class:"w-0 align-middle translate-x-[1px] -translate-y-2 quality-star",style:{color:"rgb(255, 212, 59)"},size:"12"})):g("",!0)]),m[1]||(m[1]=t("span",{class:"w-0 basis-full sm:hidden"},null,-1)),t("span",null,s(d(f)[d(y)]),1),t("span",Ft,s(e.format),1),t("span",Vt,s(l.$t("BETA")),1)],64))])]),t("div",Dt,[x(l.$slots,"btn",{},()=>[t("input",{type:"checkbox",id:`modal-${e.modalData.sha256}`,class:"hidden modal-state"},null,8,Ct),t("label",{for:`modal-${e.modalData.sha256}`,title:l.$t("Verify"),class:"dl-button my-auto h-9 ltr:rounded-l-xl rtl:rounded-r-xl flex"},[h(b,{name:"fa-solid fa-clipboard-check",class:"self-center"})],8,Mt),h(z,{data:e.modalData,class:"fp-modal"},null,8,["data"]),h(A,{href:M(),title:l.$t("Download"),class:"dl-button my-auto h-9 ltr:-ml-px ltr:rounded-r-xl rtl:-mr-px rtl:rounded-l-xl flex"},{default:u(()=>[h(b,{name:"fa-solid fa-download",class:"self-center"})]),_:1},8,["href","title"])])])]),x(l.$slots,"footer")],2)):g("",!0)}}},zt={id:"compliance-section",class:"container mx-auto max-w-7xl"},At={class:"p-2"},Nt={__name:"DownloadComplianceSection",async setup(e){let n,a;const{t:i}=v(),c=([n,a]=w(()=>$("/partials/compliance")),n=await n,a(),n);return(f,k)=>{const p=G;return o(),r("div",zt,[t("div",At,[h(p,{class:"markdown text-center",value:d(i)(d(c).description)},null,8,["value"])])])}}};export{Et as _,Nt as a};

AltStyle によって変換されたページ (->オリジナル) /