PageSourceSearch

https://figoca.com/_nuxt/7mMxfZCh.js

js figoca.com collected 2026-10-01 23:56:12 UTC 14,849 bytes, 1 lines download raw bytes

1import{aW as B,b9 as F,bf as H,bp as Y,aO as v,aP as w,aX as J,aS as p,bj as ee,aT as G,b0 as r,aQ as e,aR as C,a$ as te,ba as P,b1 as c,bb as f,b4 as re,aU as U,bo as ne,b2 as ae,b8 as oe,aN as R,b6 as V,aV as se,bt as ie}from"#entry";import{a as le,b as de,c as ue,_ as ce}from"./BTvOg0CD.js";import{P as W,u as me}from"./8fAIMKU6.js";import{u as ge}from"./6NO5435Y.js";import{P as pe}from"./B1puzvuO.js";import{_ as be}from"./DkO8Y_Xc.js";import{A as fe}from"./DtGZPJ_K.js";import"./D2Mb_niV.js";import"./LxbQIViD.js";import"./DIuFhyMs.js";import"./BGUDq7vv.js";import"./B9F2G5hg.js";import"./BZ9RZSE2.js";import"./BSVdHgug.js";import"./DQ6Pn5k3.js";import"./BpnEaOyl.js";import"./BL7hWuUY.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"078d34e47ec3abb281fa6ca76536aaededafb26e"};var a=new i.Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="d0c90aed-8005-4f80-aeba-97adf014a7c3",i._sentryDebugIdIdentifier="sentry-dbid-d0c90aed-8005-4f80-aeba-97adf014a7c3")}catch{}})();const he={key:0,class:"md:hidden fixed bottom-0 left-0 right-0 z-40 px-4 py-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] bg-gray-900/95 backdrop-blur-sm border-t border-gray-700"},ye={class:"max-w-2xl mx-auto flex items-center justify-between gap-3"},xe={class:"min-w-0"},ve={class:"text-sm font-medium text-white truncate"},we={class:"flex items-center gap-2"},_e={class:"text-xs text-gray-400"},ke=B({__name:"ProStickyBar",props:{heroElementId:{},returnUrl:{},hasProContent:{type:Boolean},estimatedGrade:{}},setup(i){const a=i,{isPro:y}=ge(),k=c(()=>`See what your PSA ${a.estimatedGrade??10} is worth`),d=f(!1),m=f(!1),_=f(!1);let l=null;const b=c(()=>a.heroElementId??"grade-hero");function u(){_.value=window.innerWidth<768}function M(){m.value=!0}return F(()=>{if(a.hasProContent===!1)return;u(),window.addEventListener("resize",u);const h=document.getElementById(b.value);!h||y.value||(l=new IntersectionObserver(g=>{const[n]=g;!n||!_.value||y.value||(d.value=!n.isIntersecting)},{threshold:0,rootMargin:"0px 0px -50px 0px"}),l.observe(h))}),H(()=>{l?.disconnect(),window.removeEventListener("resize",u)}),Y(y,h=>{h&&(d.value=!1)}),(h,g)=>(v(),w(J,null,[p(ee,{"enter-active-class":"transition-transform duration-200 ease-out","enter-from-class":"translate-y-full","enter-to-class":"translate-y-0","leave-active-class":"transition-transform duration-150 ease-in","leave-from-class":"translate-y-0","leave-to-class":"translate-y-full"},{default:G(()=>[r(d)?(v(),w("div",he,[e("div",ye,[e("div",xe,[e("p",ve,C(r(k)),1),e("div",we,[e("span",_e,"$"+C(r(pe))+"/mo",1)])]),e("button",{class:"shrink-0 px-5 py-2.5 bg-brand-neongreen text-gray-900 rounded-xl font-bold text-sm hover:bg-brand-neongreen/90 transition-colors",onClick:M}," Go Pro ")])])):te("",!0)]),_:1}),p(W,{open:r(m),"onUpdate:open":g[0]||(g[0]=n=>P(m)?m.value=n:null),"return-url":i.returnUrl,source:"sticky_bar"},null,8,["open","return-url"])],64))}}),Ce=Object.assign(ke,{__name:"ProStickyBar"}),Pe={class:"p-6 pb-8 flex flex-col items-center justify-center"},Me={class:"relative bg-slate-900 rounded-xl overflow-hidden aspect-1200/630 max-h-[280px] mb-5 shadow-lg ring-1 ring-white/10 flex items-center justify-center"},$e=["src"],Ae={key:1,class:"flex items-center justify-center w-full h-full"},Se={class:"text-2xl font-black leading-none relative z-10"},Ue={class:"text-[8px] font-bold uppercase mt-0.5 relative z-10"},Ge={class:"absolute top-3 right-3 px-2.5 py-1 bg-black/60 rounded-md text-xs text-white/90 font-semibold"},Ie=5e3,je=B({__name:"SharePromptDrawer",props:{shareUrl:{},grade:{},probability:{},images:{},delayMs:{},gradeId:{}},setup(i){const a=i,y={10:"Gem Mint",9:"Mint",8:"NM-MT",7:"Near Mint",6:"EX-MT",5:"Excellent",4:"VG-EX",3:"Very Good",2:"Good",1:"Poor"},k=c(()=>a.gradeId?`share-drawer-dismissed-${a.gradeId}`:"share-drawer-dismissed"),d=c(()=>!a.images||a.images.length===0?"":a.images[0]),m=c(()=>y[a.grade]||`Grade ${a.grade}`),_=c(()=>a.grade>=9?"bg-linear-to-br from-emerald-500 to-emerald-700 text-white":a.grade>=7?"bg-linear-to-br from-green-500 to-green-700 text-white":a.grade>=5?"bg-linear-to-br from-yellow-500 to-yellow-700 text-gray-900":a.grade>=3?"bg-linear-to-br from-orange-500 to-orange-700 text-white":"bg-linear-to-br from-red-500 to-red-700 text-white"),l=f(!1),b=f(!1),u=f(null);F(()=>{{if(sessionStorage.getItem(k.value))return;const g=a.delayMs??Ie;u.value=setTimeout(()=>{l.value=!0},g)}}),H(()=>{u.value&&clearTimeout(u.value),u.value=null}),Y(l,(g,n)=>{n&&!g&&sessionStorage.setItem(k.value,"true")});function M(){l.value=!1,b.value=!0}function h(){l.value=!1}return(g,n)=>{const I=be,o=de;return v(),w(J,null,[p(I,{open:r(l),"onUpdate:open":n[0]||(n[0]=$=>P(l)?l.value=$:null),direction:"bottom",handle:!0,title:"Share your grade",description:"Share your result with friends and fellow collectors",ui:{overlay:"bg-black/70 backdrop-blur-sm",content:"bg-brand-darker border-t border-brand-neongreen/20",handle:"!bg-gray-500",container:"max-w-lg mx-auto",title:"sr-only",description:"sr-only"}},{content:G(()=>[e("div",Pe,[e("div",Me,[r(d)?(v(),w("img",{key:0,src:r(d),alt:"Card preview",class:"max-w-full max-h-full object-contain"},null,8,$e)):(v(),w("div",Ae,[...n[2]||(n[2]=[e("span",{class:"text-gray-500 text-sm"},"No image available",-1)])])),e("div",{class:re(["absolute bottom-3 right-3 w-16 h-[80px] rounded-lg flex flex-col items-center justify-center shadow-xl",r(_)])},[n[3]||(n[3]=e("div",{class:"absolute inset-0 bg-linear-to-br from-white/20 to-transparent roun
1ded-lg"},null,-1)),n[4]||(n[4]=e("span",{class:"text-[10px] font-bold opacity-80 relative z-10"},"PSA",-1)),e("span",Se,C(i.grade),1),e("span",Ue,C(r(m)),1)],2),n[5]||(n[5]=e("div",{class:"absolute bottom-3 left-3 flex items-center gap-1.5"},[e("img",{src:le,alt:"figoca",class:"w-5 h-5 rounded"}),e("span",{class:"text-xs font-medium text-white/90"},"figoca.com")],-1)),e("div",Ge,C(i.probability)+"% probability ",1)]),n[7]||(n[7]=e("div",{class:"text-center mb-5"},[e("h2",{class:"text-lg font-semibold text-white mb-1","aria-hidden":"true"}," Share your grade "),e("p",{class:"text-sm text-gray-400","aria-hidden":"true"}," Show friends and fellow collectors ")],-1)),e("div",{class:"space-y-3"},[e("button",{class:"w-full py-3 px-4 bg-brand-neongreen text-gray-900 rounded-xl font-semibold hover:bg-brand-neongreen/90 transition-colors flex items-center justify-center gap-2",onClick:M},[...n[6]||(n[6]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"})],-1),U(" Share My Grade ",-1)])]),e("button",{class:"w-full py-3 px-4 text-gray-400 hover:text-gray-300 transition-colors text-sm",onClick:h}," Maybe later ")])])]),_:1},8,["open"]),p(o,{open:r(b),"onUpdate:open":n[1]||(n[1]=$=>P(b)?b.value=$:null),"share-url":i.shareUrl,grade:i.grade,probability:i.probability,images:i.images},null,8,["open","share-url","grade","probability","images"])],64)}}}),Ee=Object.assign(je,{__name:"SharePromptDrawer"}),Te={class:"min-h-screen bg-linear-to-b from-brand-darker to-brand-dark"},De={class:"max-w-2xl mx-auto px-4 py-8"},Ne={key:0,class:"flex flex-col items-center justify-center min-h-[50vh]"},Be={key:1,class:"flex flex-col items-center justify-center min-h-[50vh] text-center"},Le={key:2},ze={class:"mb-8"},Oe={class:"flex items-center justify-between gap-3 mb-4"},Re=["disabled"],Ve={class:"text-gray-400 mt-1"},Fe={class:"mt-8 pt-6 border-t border-gray-700"},He={class:"text-center"},Ye=["disabled"],ut=B({__name:"[id]",async setup(i){let a,y;const k=ne(),d=c(()=>k.params.id),m=f(!1),_=f([]),l=f(!1),b=f(!1),u=f(!1),{fetchUsage:M}=me();async function h(s){u.value=!0;try{const t=await M();if(t&&!t.hasAnyGradesLeft){t.isAuthenticated?b.value=!0:l.value=!0;return}s()}catch{s()}finally{u.value=!1}}async function g(){await h(()=>{_.value=[],m.value=!0})}function n(){l.value=!1,m.value=!0}function I(){_.value=[]}const{data:o,pending:$,error:X}=([a,y]=ae(()=>oe(`/api/v1/grading-result/${d.value}`,{key:`grading-result-${d.value}`},"$eQ2PnPU7sG")),a=await a,y(),a),j=c(()=>`${ie().public.siteUrl||"https://figoca.com"}/grade/${d.value}`),S=c(()=>o.value?.result?.gradeProbabilities?.length?[...o.value.result.gradeProbabilities].sort((t,x)=>x.probability-t.probability)[0]?.grade??10:10),L=c(()=>o.value?.result?.gradeProbabilities?.length?[...o.value.result.gradeProbabilities].sort((t,x)=>x.probability-t.probability)[0]?.probability??0:0),Q=c(()=>{const s=o.value?.result?.identifiedCard;return s?!!(s.subject||s.collection||s.year||s.cardNumber||s.parallel||s.subsetFamily):!1});function K(s){const t=new Date(s),x=t.getUTCFullYear(),D=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getUTCMonth()],N=t.getUTCDate();return`${D} ${N}, ${x}`}const E=c(()=>o.value?.ok?`PSA ${S.value} Grade Estimate | figoca AI Card Grader`:"AI Card Grading Result");function z(s){const t=s.replace(/\s+/g," ").trim();return t.length<=155?t:`${t.slice(0,152).trimEnd()}...`}const T=c(()=>{const s=S.value,t=Math.round(L.value*100);return!o.value?.ok||!o.value?.result?z("Get an instant trading card grade estimate. Upload photos and see your most likely PSA grade in seconds with figoca's AI card grader. Try it now!"):z(`See this PSA ${s} estimate (${t}%). Upload your card and get an instant grade estimate with figoca's AI card grader. Try it now!`)});return R({title:E,meta:[{name:"description",content:T},{property:"og:title",content:E},{property:"og:description",content:T},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:E},{name:"twitter:description",content:T}]}),R({link:[{rel:"canonical",href:j.value}]}),(s,t)=>{const x=se,O=ue,D=Ce,N=Ee,q=ce,Z=fe;return v(),w("div",Te,[e("div",De,[r($)?(v(),w("div",Ne,[...t[3]||(t[3]=[V('<div class="w-12 h-12 rounded-full bg-brand-neongreen/10 flex items-center justify-center mb-4"><svg class="w-6 h-6 text-brand-neongreen animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div><p class="text-gray-400"> Loading grading result... </p>',2)])])):r(X)||!r(o)?.ok||!r(o)?.result?(v(),w("div",Be,[t[5]||(t[5]=V('<div class="w-16 h-16 rounded-full bg-red-500/10 flex items-center justify-center mb-4"><svg class="w-8 h-8 text-red-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg></div><h1 class="text-xl font-semibold text-white mb-2"> Result Not Found </h1><p class="text-gray-400 mb-6"> This grading result doesn&#39;t exist or has been removed. </p>',3)),p(x,{to:"/tools/ai-card-grading-app",class:"inline-flex items-center gap-2 px-6 py-3 bg-brand-neongreen text-gray-900 rounded-lg font-semibold hover:bg-brand-neongreen/90 transition-colors"},{default:G(()=>[...t[4]||(t[4]=[U(" Try AI Card Grader ",-1)])]),_:1})])):(v(),w("div",Le,[e("header",ze,[e("div",Oe,[p(x,{to:"/tools/ai-card-grading-app",class:"flex items-center gap-1.5 text-gray-400 hover:text-white transition-colors"},{default:G(()=>[...t[6]||(t[6]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})],-1),e("span",{class:"text-sm"},"Back to Grader",-1)])]),_:1}),e("button",{type:"button",disabled:r(u),class:"inline-flex items-center gap-2 px-4 py-2 bg-brand-neongreen text-gray-900 rounded-lg font-semibold hover:bg-brand-neongreen/90 transition-colors disabled:opacity-70 disabled:cursor-wait",onClick:g},[...t[7]||(t[7]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),U(" Grade Another Card ",-1)])],8,Re)]),t[8]||(t[8]=e("h1",{class:"text-2xl font-bold text-white"}," AI Card Grading Result ",-1)),e("p",Ve," Graded on "+C(K(r(o).result.createdAt)),1)]),p(O,{probabilities:r(o).result.gradeProbabilities,breakdown:r(o).result.breakdown,"confidence-score":r(o).result.confidenceScore,summary:r(o).result.summary,images:r(o).result.imageUrls,"identified-card":r(o).result.identifiedCard,"grading-result-id":r(d),"share-url":r(j),"is-saving":!1},null,8,["probabilities","breakdown","confidence-score","summary","images","identified-card","grading-result-id","share-url"]),p(D,{"hero-element-id":"grade-hero","return-url":`/grade/${r(d)}`,"has-pro-content":r(Q),"estimated-grade":r(S)},null,8,["return-url","has-pro-content","estimated-grade"]),p(N,{"share-url":r(j),grade:r(S),probability:Math.round(r(L)*100),images:r(o).result.imageUrls||[],"delay-ms":5e3,"grade-id":r(d)},null,8,["share-url","grade","probability","images","grade-id"]),e("div",Fe,[e("div",He,[t[10]||(t[10]=e("p",{class:"text-gray-400 mb-4"}," Want to grade your own cards? ",-1)),e("button",{type:"button",disabled:r(u),class:"inline-flex items-center gap-2 px-6 py-3 bg-brand-neongreen text-gray-900 rounded-lg font-semibold hover:bg-brand-neongreen/90 transition-colors disabled:opacity-70 disabled:cursor-wait",onClick:g},[...t[9]||(t[9]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1),U(" Grade Another Card ",-1)])],8,Ye)])]),p(q,{open:r(m),"onUpdate:open":t[0]||(t[0]=A=>P(m)?m.value=A:null),"initial-images":r(_),onClose:I},null,8,["open","initial-images"]),p(Z,{open:r(l),"onUpdate:open":t[1]||(t[1]=A=>P(l)?l.value=A:null),reason:"grading-limit",onAuthenticated:n},null,8,["open"]),p(W,{open:r(b),"onUpdate:open":t[2]||(t[2]=A=>P(b)?b.value=A:null),"return-url":`/grade/${r(d)}`,source:"grade_result_page"},null,8,["open","return-url"])]))])])}}});export{ut as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.