var Y=Object.defineProperty;var q=(e,i,l)=>i in e?Y(e,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[i]=l;var a=(e,i,l)=>q(e,typeof i!="symbol"?i+"":i,l);import{y as Q,d as M}from"./js-yaml-CxlQHuPU.js";import{R as x}from"./index-BH4jUAKp.js";import{V as J,f as W,e as Z,y as K,C as X,_ as ee,g as A,h as o,i as u,j as t,k as n,t as v,l as d,w as E,F as T,z as V,p as S,x as s}from"./index-BLqts8WY.js";import{u as ie}from"./index-CsfPLOYu.js";import{G as te}from"./GiftedDialog-CFmou4Be.js";import{Q as se}from"./QuickNav-DgCyvgDx.js";import{B,l as oe,s as le,e as re,h as ae,i as ne,g as G,j as de,k as me,m as fe,n as ue,p as he,q as ce,u as pe,v as ve}from"./index-MyY_xqVN.js";import"./concat-BK8PKeDS.js";import"./sort-Dh4GzQVc.js";var Ce=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,ge=(e,i,l,m)=>{for(var h=m>1?void 0:m?ye(i,l):i,g=e.length-1,C;g>=0;g--)(C=e[g])&&(h=(m?C(i,l,h):C(h))||h);return m&&h&&Ce(i,l,h),h};let L=class extends J{constructor(){super(...arguments);a(this,"$notify");a(this,"activeDid","");a(this,"allMyDids",[]);a(this,"allContacts",[]);a(this,"apiServer","");a(this,"canShare",!1);a(this,"confirmerIdList",[]);a(this,"confsVisibleErrorMessage","");a(this,"confsVisibleToIdList",[]);a(this,"detailsForGive",null);a(this,"detailsForOffer",null);a(this,"fullClaim",null);a(this,"fullClaimDump","");a(this,"fullClaimMessage","");a(this,"isEditedGlobalId",!1);a(this,"isRegistered",!1);a(this,"issuerName","");a(this,"numConfsNotVisible",0);a(this,"providersForGive",[]);a(this,"showIdCopy",!1);a(this,"showVeriClaimDump",!1);a(this,"veriClaim",B);a(this,"veriClaimDump","");a(this,"veriClaimDidsVisible",{});a(this,"windowLocation",window.location.href);a(this,"R",x);a(this,"yaml",Q);a(this,"libsUtil",oe);a(this,"serverUtil",le);a(this,"window",window)}resetThisValues(){this.confirmerIdList=[],this.confsVisibleErrorMessage="",this.confsVisibleToIdList=[],this.detailsForGive=null,this.detailsForOffer=null,this.fullClaim=null,this.fullClaimDump="",this.fullClaimMessage="",this.isEditedGlobalId=!1,this.numConfsNotVisible=0,this.providersForGive=[],this.veriClaim=B,this.veriClaimDump="",this.veriClaimDidsVisible={}}async created(){const l=await W();this.activeDid=l.activeDid||"",this.apiServer=l.apiServer||"",this.allContacts=await Z.contacts.toArray(),this.isRegistered=l.isRegistered||!1;try{this.allMyDids=await re()}catch(g){K("Error retrieving all account DIDs on home page:"+g,!0),this.$notify({group:"alert",type:"danger",title:"Error Loading Profile",text:"See the Help page for problems with your personal data."},-1)}const m=window.location.pathname.substring(7);let h;m?(h=decodeURIComponent(m),await this.loadClaim(h,this.activeDid)):this.$notify({group:"alert",type:"danger",title:"Error",text:"No claim ID was provided."},-1),this.canShare=!!navigator.share}capitalizeAndInsertSpacesBeforeCaps(l){return l?l[0].toUpperCase()+l.substr(1).replace(/([A-Z])/g," $1"):""}totalConfirmers(){return this.numConfsNotVisible+this.confirmerIdList.length+this.confsVisibleToIdList.length}didInfo(l){return ae(l,this.activeDid,this.allMyDids,this.allContacts)}async loadClaim(l,m){var f;const h=ne(l)?"/api/claim/byHandle/":"/api/claim/",g=this.apiServer+h+encodeURIComponent(l),C=await G(m);try{const c=await this.axios.get(g,{headers:C});if(c.status===200)this.veriClaim=c.data,this.issuerName=this.didInfo(this.veriClaim.issuer),this.veriClaimDump=M(this.veriClaim),this.veriClaimDidsVisible=de(this.veriClaim,!0);else{console.error("Error getting claim:",c),this.$notify({group:"alert",type:"danger",title:"Error",text:"There was a problem retrieving that claim."},-1);return}if(this.isEditedGlobalId=!this.veriClaim.handleId.endsWith(l),this.veriClaim.claimType==="GiveAction"){const k=this.apiServer+"/api/v2/report/gives?handleId="+encodeURIComponent(this.veriClaim.handleId),I=await G(m),y=await this.axios.get(k,{headers:I});y.status===200&&((f=y.data.data)==null?void 0:f.length)>0?this.detailsForGive=y.data.data[0]:console.error("Error getting detailed give info:",y);const $=this.apiServer+"/api/v2/report/providersToGive?handleId="+encodeURIComponent(this.veriClaim.handleId),U=await G(m),D=await this.axios.get($,{headers:U});D.status===200&&Array.isArray(D.data.data)?this.providersForGive=D.data.data:(console.error("Error getting give providers:",y),this.$notify({group:"alert",type:"warning",title:"Error",text:"Got error retrieving linked provider data."},-1))}else if(this.veriClaim.claimType==="Offer"){const k=this.apiServer+"/api/v2/report/offers?handleId="+encodeURIComponent(this.veriClaim.handleId),I=await G(m),y=await this.axios.get(k,{headers:I});y.status===200?this.detailsForOffer=y.data.data[0]:(console.error("Error getting detailed offer info:",y),this.$notify({group:"alert",type:"warning",title:"Error",text:"Got error retrieving linked offer data."},-1))}const p=await me(this.apiServer,l,this.veriClaim.issuer,m);p?(this.confirmerIdList=p.confirmerIdList,this.confsVisibleToIdList=p.confsVisibleToIdList,this.numConfsNotVisible=p.numConfsNotVisible):this.confsVisibleErrorMessage="Had problems retrieving confirmations."}catch(c){console.error("Error retrieving claim:",c),this.$notify({group:"alert",type:"danger",title:"Error",text:"Something went wrong retrieving claim data."},3e3)}}async showFullClaim(l){var g;const m=this.apiServer+"/api/claim/full/"+encodeURIComponent(l),h=await G(this.activeDid);try{const C=await this.axios.get(m,{headers:h});C.status===200?(this.fullClaim=C.data,this.fullClaimDump=M(this.fullClaim)):(console.error("Error getting full claim:",C),this.$notify({group:"alert",type:"danger",title:"Error",text:"There was a problem getting that claim."},-1))}catch(C){if(console.error("Error retrieving full claim:",C),((g=C.response)==null?void 0:g.status)===403){let c="";const p=fe(this.veriClaim.issuer,this.allContacts);p!=null&&p.name&&(c+="Ask "+p.name+" to show you the full claim details."),(this.confirmerIdList.length>0||this.confsVisibleToIdList.length>0)&&(p!=null&&p.name?c+="You could also ask someone in the Confirmations section to make an introduction.":c+="Ask someone in the Confirmations section to make an introduction."),this.fullClaimMessage="You are not authorized to view the full contents of this claim."+c+" You might ask someone in your network -- like the person who registered you -- if they can find out more and make an introduction: send them this page and see if they can make a connection for you."}else this.$notify({group:"alert",type:"danger",title:"Error",text:"Something went wrong retrieving that claim."},-1)}}confirmConfirmClaim(){this.$notify({group:"modal",type:"confirm",title:"Confirm",text:"Do you personally confirm that this is true?",onYes:async()=>{await this.confirmClaim()}},-1)}async confirmClaim(){const m={"@context":"https://schema.org","@type":"AgreeAction",object:ue(he(ce(this.veriClaim.claim,this.veriClaim.id,this.veriClaim.handleId)))},h=await pe(m,this.activeDid,this.apiServer,this.axios);h.type==="success"?this.$notify({group:"alert",type:"success",title:"Success",text:"Confirmation submitted."},5e3):(console.error("Got error submitting the confirmation:",h),this.$notify({group:"alert",type:"danger",title:"Error",text:"There was a problem submitting the confirmation."},-1))}showDifferentClaimPage(l){const m={path:"/claim/"+encodeURIComponent(l)};this.$router.push(m).then(async()=>{this.resetThisValues(),await this.loadClaim(l,this.activeDid)})}openFulfillGiftDialog(){const l={did:ve(this.veriClaim)};this.$refs.customGiveDialog.open(l,void 0,this.veriClaim.handleId,"Offer fulfilled by "+((l==null?void 0:l.name)||"someone not named"))}copyToClipboard(l,m){ie().copy(m).then(()=>{this.$notify({group:"alert",type:"toast",title:"Copied",text:(l||"That")+" was copied to the clipboard."},2e3)})}onClickShareClaim(){window.navigator.share({title:"Help Connect Me",text:"I'm trying to find the full details of this claim. Can you help me?",url:this.windowLocation})}onClickEditClaim(){if(this.veriClaim.claimType==="GiveAction"){const l={name:"gifted-details",query:{prevCredToEdit:JSON.stringify(this.veriClaim),destinationPathAfter:"/claim/"+encodeURIComponent(this.veriClaim.handleId)}};this.$router.push(l)}else if(this.veriClaim.claimType==="Offer"){const l={name:"offer-details",query:{prevCredToEdit:JSON.stringify(this.veriClaim),destinationPathAfter:"/claim/"+encodeURIComponent(this.veriClaim.handleId)}};this.$router.push(l)}else if(this.veriClaim.claimType==="PlanAction"){const l={name:"new-edit-project",query:{projectId:this.veriClaim.handleId}};this.$router.push(l)}else console.error("Unrecognized claim type for edit:",this.veriClaim.claimType),this.$notify({group:"alert",type:"danger",title:"Error",text:"This is an unrecognized claim type."},3e3)}};L=ge([X({components:{GiftedDialog:te,QuickNav:se}})],L);const be={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},we={id:"ViewBreadcrumb",class:"mb-8"},ke={class:"text-lg text-center font-light relative px-7"},Ie={class:"bg-slate-100 rounded-md overflow-hidden px-4 py-3 mb-4 w-full"},De={class:"block flex gap-4 overflow-hidden w-full"},Te={class:"w-full"},Ee={class:"flex columns-3"},Ve={class:"text-md font-bold w-full"},Ge={class:"flex justify-center w-full"},$e={class:"flex justify-end w-full"},Ue={class:"text-sm"},Ae={"data-testId":"description"},Se={key:0,class:"flex justify-center"},Le=["href"],Fe=["src"],Re={key:1,class:"mt-4"},Oe={key:2,class:"mt-4"},Ne={key:3},Pe={key:4},He={key:5,class:"mt-4"},_e={class:"ml-4"},je={class:"flex gap-4"},Me={class:"grow overflow-hidden"},Be=["onClick"],ze={class:"mt-2"},Ye={class:"mt-8"},qe={key:0},Qe={class:"flex columns-3"},xe={key:1,class:"font-bold uppercase text-xl mt-2"},Je={class:"mt-0.5 px-4 py-2"},We={class:"mt-2"},Ze={key:0},Ke={key:1},Xe={key:2},ei={key:0},ii={key:0},ti={key:1},si={key:2},oi={class:"ml-4"},li={class:"flex gap-4"},ri={class:"grow overflow-hidden"},ai={class:"text-sm"},ni={key:0},di=["onClick"],mi={key:3},fi={class:"ml-4"},ui={class:"flex gap-4"},hi={class:"grow overflow-hidden"},ci={class:"text-sm"},pi={key:0},vi=["onClick"],Ci={key:1},yi={key:2},gi={key:3},bi={key:0,class:"mb-2"},wi={key:0},ki={key:1},Ii={key:1},Di={key:0},Ti={key:1},Ei={class:"text-sm"},Vi={class:"ml-12 p-1"},Gi={class:"text-sm mt-2"},$i={key:0},Ui=["onClick"],Ai={key:1},Si=["href"],Li={key:2,class:"mt-2"},Fi={key:3,class:"text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md"},Ri={key:1},Oi={key:0,class:"mb-4"},Ni={key:2},Pi={class:"text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md"},Hi=["href"];function _i(e,i,l,m,h,g){var k,I,y,$,U,D,F,R,O,N,P,H;const C=A("QuickNav"),f=A("fa"),c=A("router-link"),p=A("GiftedDialog");return s(),o(T,null,[u(C),t("section",be,[t("div",we,[t("h1",ke,[t("button",{onClick:i[0]||(i[0]=r=>e.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[u(f,{icon:"chevron-left",class:"fa-fw"})]),i[12]||(i[12]=n(" Verifiable Claim Details "))])]),t("div",Ie,[t("div",De,[t("div",Te,[t("div",Ee,[t("h2",Ve,[n(v(e.capitalizeAndInsertSpacesBeforeCaps(e.veriClaim.claimType))+" ",1),["GiveAction","Offer","PlanAction"].includes(e.veriClaim.claimType)&&e.veriClaim.issuer===e.activeDid?(s(),o("button",{key:0,onClick:i[1]||(i[1]=(...r)=>e.onClickEditClaim&&e.onClickEditClaim(...r)),title:"Edit","data-testId":"editClaimButton"},[u(f,{icon:"pen",class:"text-sm text-blue-500 ml-2 mb-1"})])):d("",!0)]),t("div",Ge,[u(c,{to:"/claim-cert/"+encodeURIComponent(e.veriClaim.id),class:"text-blue-500 mt-2",title:"Printable Certificate"},{default:E(()=>[u(f,{icon:"square",class:"text-white bg-yellow-500 p-1"})]),_:1},8,["to"])]),t("div",$e,[t("button",{title:"Copy Link",onClick:i[2]||(i[2]=r=>e.copyToClipboard("Current page link",e.window.location.href))},[u(f,{icon:"link",class:"text-slate-500"})])])]),t("div",Ue,[t("div",Ae,[u(f,{icon:"message",class:"fa-fw text-slate-400"}),n(" "+v(((I=(k=e.veriClaim.claim)==null?void 0:k.itemOffered)==null?void 0:I.description)||((y=e.veriClaim.claim)==null?void 0:y.description)),1)]),t("div",null,[u(f,{icon:"user",class:"fa-fw text-slate-400"}),n(" "+v(e.didInfo(e.veriClaim.issuer)),1)]),t("div",null,[u(f,{icon:"calendar",class:"fa-fw text-slate-400"}),n(" "+v(($=e.veriClaim.issuedAt)==null?void 0:$.replace(/T/," ").replace(/Z/," UTC")),1)]),e.veriClaim.claim.image?(s(),o("div",Se,[t("a",{href:e.veriClaim.claim.image,target:"_blank"},[t("img",{src:e.veriClaim.claim.image,class:"h-24 rounded-xl"},null,8,Fe)],8,Le)])):d("",!0),e.veriClaim.claimType==="PlanAction"?(s(),o("div",Re,[u(c,{to:"/project/"+encodeURIComponent(e.veriClaim.handleId),class:"text-blue-500 mt-2"},{default:E(()=>i[13]||(i[13]=[n(" Go to Project page ")])),_:1},8,["to"])])):d("",!0),(U=e.detailsForGive)!=null&&U.fulfillsPlanHandleId?(s(),o("div",Oe,[u(c,{to:"/project/"+encodeURIComponent((D=e.detailsForGive)==null?void 0:D.fulfillsPlanHandleId),class:"text-blue-500 mt-2"},{default:E(()=>i[14]||(i[14]=[n(" Fulfills a bigger plan... ")])),_:1},8,["to"])])):d("",!0),(F=e.detailsForGive)!=null&&F.fulfillsType&&((R=e.detailsForGive)==null?void 0:R.fulfillsType)!=="PlanAction"&&((O=e.detailsForGive)!=null&&O.fulfillsHandleId)?(s(),o("div",Ne,[t("a",{onClick:i[3]||(i[3]=r=>{var w;return e.showDifferentClaimPage((w=e.detailsForGive)==null?void 0:w.fulfillsHandleId)}),class:"text-blue-500 mt-4 cursor-pointer"}," Fulfills "+v(e.capitalizeAndInsertSpacesBeforeCaps(e.detailsForGive.fulfillsType))+"... ",1)])):d("",!0),(N=e.detailsForOffer)!=null&&N.fulfillsPlanHandleId?(s(),o("div",Pe,[u(c,{to:"/project/"+encodeURIComponent((P=e.detailsForOffer)==null?void 0:P.fulfillsPlanHandleId),class:"text-blue-500 mt-4"},{default:E(()=>i[15]||(i[15]=[n(" Offered to a bigger plan... ")])),_:1},8,["to"])])):d("",!0),((H=e.providersForGive)==null?void 0:H.length)>0?(s(),o("div",He,[i[16]||(i[16]=t("span",null,"Other assistance provided by:",-1)),t("ul",_e,[(s(!0),o(T,null,V(e.providersForGive,r=>(s(),o("li",{key:r.identifier,class:"list-disc ml-4"},[t("div",je,[t("div",Me,[t("a",{onClick:w=>r.identifier.startsWith("did:")?this.$router.push("/did/"+encodeURIComponent(r.identifier)):e.showDifferentClaimPage(r.identifier),class:"text-blue-500 mt-4 cursor-pointer"}," an activity... ",8,Be)])])]))),128))])])):d("",!0)])])])]),t("div",ze,[u(f,{icon:"comment",class:"text-slate-400"}),n(" "+v(e.issuerName)+" posted that. ",1)]),t("div",Ye,[e.libsUtil.canFulfillOffer(e.veriClaim)?(s(),o("button",{key:0,onClick:i[4]||(i[4]=r=>e.openFulfillGiftDialog()),class:"col-span-1 block w-fit text-center text-md bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"},[i[17]||(i[17]=n(" Affirm Delivery ")),u(f,{icon:"hand-holding-heart",class:"ml-2 text-white cursor-pointer"})])):d("",!0)]),u(p,{ref:"customGiveDialog"},null,512),e.libsUtil.isGiveAction(e.veriClaim)?(s(),o("div",qe,[t("div",Qe,[e.libsUtil.isGiveRecordTheUserCanConfirm(e.isRegistered,e.veriClaim,e.activeDid,e.confirmerIdList)?(s(),o("button",{key:0,class:"col-span-1 bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mt-2 px-4 py-2 rounded-md",onClick:i[5]||(i[5]=r=>e.confirmConfirmClaim())},[i[18]||(i[18]=n(" Confirm ")),u(f,{icon:"circle-check",class:"ml-2 text-white cursor-pointer"})])):(s(),o("h2",xe,"Confirmations")),t("span",Je,[e.libsUtil.isGiveAction(e.veriClaim)?(s(),S(c,{key:0,to:"/confirm-gift/"+encodeURIComponent(e.veriClaim.id),class:"col-span-1 text-blue-500","data-testId":"confirmGiftLink"},{default:E(()=>i[19]||(i[19]=[n(" Details... ")])),_:1},8,["to"])):d("",!0)])]),t("div",We,[e.totalConfirmers()===0?(s(),o("span",Ze,"Nobody has confirmed this.")):e.totalConfirmers()===1?(s(),o("span",Ke," One person has confirmed this. ")):(s(),o("span",Xe,v(e.totalConfirmers())+" people have confirmed this. ",1))]),e.totalConfirmers()>0?(s(),o("div",ei,[e.confirmerIdList.length===0&&e.confsVisibleToIdList.length===0?(s(),o("div",ii," Nobody that you know confirmed this claim, nor do they have any confirmers in their network. ")):d("",!0),e.confirmerIdList.length===0&&e.confsVisibleToIdList.length>0?(s(),o("div",ti," Nobody that you know has issued or confirmed this claim. ")):d("",!0),e.confirmerIdList.length>0?(s(),o("div",si,[i[20]||(i[20]=n(" The following people have confirmed this claim. ")),t("ul",oi,[(s(!0),o(T,null,V(e.confirmerIdList,r=>(s(),o("li",{key:r,class:"list-disc ml-4"},[t("div",li,[t("div",ri,[t("div",ai,[n(v(e.didInfo(r))+" ",1),e.serverUtil.isEmptyOrHiddenDid(r)?d("",!0):(s(),o("span",ni,[t("button",{onClick:w=>e.copyToClipboard("The DID of "+r,r)},[u(f,{icon:"copy",class:"text-slate-400 fa-fw"})],8,di)]))])])])]))),128))])])):d("",!0),e.confsVisibleToIdList.length>0?(s(),o("div",mi,[i[21]||(i[21]=n(" The following people can connect you with people who have issued or confirmed this claim. ")),t("ul",fi,[(s(!0),o(T,null,V(e.confsVisibleToIdList,r=>(s(),o("li",{key:r,class:"list-disc ml-4"},[t("div",ui,[t("div",hi,[t("div",ci,[n(v(e.didInfo(r))+" ",1),e.serverUtil.isEmptyOrHiddenDid(r)?d("",!0):(s(),o("span",pi,[t("button",{onClick:w=>e.copyToClipboard("The DID of "+r,r)},[u(f,{icon:"copy",class:"text-slate-400 fa-fw"})],8,vi)]))])])])]))),128))])])):d("",!0)])):d("",!0),e.confirmerIdList.includes(e.activeDid)?(s(),o("div",Ci," You have confirmed this claim. ")):e.veriClaim.issuer==e.activeDid?(s(),o("div",yi," You cannot confirm this because you issued this claim, so you already count as confirming it. ")):e.serverUtil.containsHiddenDid(e.veriClaim.claim)?(s(),o("div",gi," You cannot confirm this because it contains hidden identifiers. ")):d("",!0)])):d("",!0),t("div",null,[i[32]||(i[32]=t("h2",{class:"font-bold uppercase text-xl mt-8 mb-2"},"Details",-1)),e.serverUtil.containsHiddenDid(e.veriClaim)&&e.R.isEmpty(e.veriClaimDidsVisible)?(s(),o("div",bi,[i[26]||(i[26]=n(' Some of the details are not visible to you; they show as "HIDDEN". They are not visible to any of your direct contacts, either. ')),e.canShare?(s(),o("span",wi,[i[22]||(i[22]=n(" If you'd like to ask any of your contacts to take a look and see if their contacts can see more details, ")),t("a",{onClick:i[6]||(i[6]=r=>e.onClickShareClaim()),class:"text-blue-500"},"click to send them this info"),i[23]||(i[23]=n(" and see if they are willing to make an introduction. They are surely connected to someone; if you don't know who to ask, you might try the person who registered you. "))])):(s(),o("span",ki,[i[24]||(i[24]=n(" If you'd like to ask any of your contacts to take a look and see if their contacts can see more details, ")),t("a",{onClick:i[7]||(i[7]=r=>e.copyToClipboard("A link to this page",e.windowLocation)),class:"text-blue-500"},"share this page with them"),i[25]||(i[25]=n(" and see if they are willing to make an introduction. "))]))])):d("",!0),e.R.isEmpty(e.veriClaimDidsVisible)?d("",!0):(s(),o("div",Ii,[i[30]||(i[30]=n(" Some of the details are not visible to you but they are visible to some of your contacts. ")),e.canShare?(s(),o("span",Di,[i[27]||(i[27]=n(" If you'd like an introduction, ")),t("a",{onClick:i[8]||(i[8]=r=>e.onClickShareClaim()),class:"text-blue-500"},"click to share the information with them and ask if they'll tell you more about the participants.")])):(s(),o("span",Ti,[i[28]||(i[28]=n(" If you'd like an introduction, ")),t("a",{onClick:i[9]||(i[9]=r=>e.copyToClipboard("A link to this page",e.windowLocation)),class:"text-blue-500"},"share this page with them and ask if they'll tell you more about about the participants.")])),(s(!0),o(T,null,V(Object.keys(e.veriClaimDidsVisible),(r,w)=>(s(),o("div",{key:w,class:"list-disc p-4"},[t("div",Ei,[u(f,{icon:"minus",class:"fa-fw"}),n(" The "+v(r)+" is visible to: ",1)]),t("div",Vi,[t("ul",null,[(s(!0),o(T,null,V(e.veriClaimDidsVisible[r],(b,z)=>{var _,j;return s(),o("li",{key:z,class:"list-disc"},[t("div",Gi,[t("span",null,[n(v(e.didInfo(b))+" ",1),e.serverUtil.isEmptyOrHiddenDid(b)?d("",!0):(s(),o("span",$i,[t("button",{onClick:ji=>e.copyToClipboard("The DID of "+b,b)},[u(f,{icon:"copy",class:"text-slate-400 fa-fw"})],8,Ui)])),(_=e.veriClaim.publicUrls)!=null&&_[b]?(s(),o("span",Ai,[i[29]||(i[29]=n(", found at ")),t("a",{href:(j=e.veriClaim.publicUrls)==null?void 0:j[b],class:"text-blue-500"},[u(f,{icon:"globe",class:"fa-fw text-slate-400"}),n(" "+v(e.veriClaim.publicUrls[b].substring(e.veriClaim.publicUrls[b].indexOf("//")+2)),1)],8,Si)])):d("",!0)])])])}),128))])])]))),128))])),e.isEditedGlobalId?(s(),o("span",Li," This record is an edited version. The latest version is here. ")):d("",!0),i[33]||(i[33]=t("br",null,null,-1)),t("button",{onClick:i[10]||(i[10]=r=>e.showVeriClaimDump=!e.showVeriClaimDump),class:"ml-2"},[i[31]||(i[31]=n(" Details ")),e.showVeriClaimDump?(s(),S(f,{key:0,icon:"chevron-up",class:"text-blue-400"})):(s(),S(f,{key:1,icon:"chevron-down",class:"text-blue-400"}))]),e.showVeriClaimDump?(s(),o("pre",Fi,v(e.veriClaimDump),1)):d("",!0)]),i[34]||(i[34]=t("h2",{class:"text-xl mt-8 mb-2"},"Full Claim",-1)),i[35]||(i[35]=t("p",{class:"mb-4"}," The full claim includes the claim as it was originally issued, including the signature (ie. the proof of issuance by that person). ",-1)),e.fullClaim?(s(),o("div",Ni,[t("pre",Pi,v(e.fullClaimDump),1)])):(s(),o("div",Ri,[e.fullClaimMessage?(s(),o("p",Oi,v(e.fullClaimMessage),1)):(s(),o("button",{key:1,class:"block w-full text-center text-md uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md mb-2",onClick:i[11]||(i[11]=r=>e.showFullClaim(e.veriClaim.id))}," Load Full Claim Details "))])),t("a",{href:e.apiServer+"/api/claim/"+e.veriClaim.id,target:"_blank",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md mb-2"}," View on the Public Server ",8,Hi)])],64)}const Xi=ee(L,[["render",_i]]);export{Xi as default};