PageSourceSearch

https://www.wingsforlifeworldrun.com/_nuxt/CqnLF3DQ.js

js wingsforlifeworldrun.com collected 2026-09-24 08:39:07 UTC 5,067 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1211a6cb-d40b-527c-8881-71997cc824de")}catch(e){}}();
3import{aP as F,bh as m,aT as u,b3 as y,aW as r,aV as A,ba as I,b5 as R,bm as k,a_ as j,aS as $,b4 as x,bp as U,aX as v,bi as E,bj as O,aY as c,aZ as w,bN as B,bg as D,ct as N,ch as W,cv as L,bU as P}from"./BV2unoxx.js";import{a as z,u as S}from"./CNC8yLn2.js";import{f as C}from"./vdffv62z.js";const K={class:"relative"},M=["alt","src","title"],T={class:"absolute bottom-0 left-0 right-0 bg-white/75 p-2 text-sm"},q={key:0},X={key:1,class:"text-green-500"},Y={key:2,class:"text-red-500"},Z={key:3},G=F({__name:"AreFilepreview",props:{file:{}},emits:["remove"],setup(l){return(t,e)=>{const i=I,f=R;return u(),m("div",K,[y(f,{class:"absolute right-2 top-2 p-2",onClick:e[0]||(e[0]=s=>t.$emit("remove",l.file))},{default:A(()=>[y(i,{name:"material-symbols:close",size:"1rem"})]),_:1}
3),r("img",{alt:l.file.file.name,src:l.file.url,title:l.file.file.name,class:"h-32 w-auto"},null,8,M),r("div",T,[l.file.status=="loading"?(u(),m("span",q," In Progress ")):l.file.status=="done"?(u(),m("span",X," Uploaded ")):l.file.status=="error"?(u(),m("span",Y," Error ")):(u(),m("span",Z," Waiting "))])])}}}),H=Object.assign(G,{__name:"AreFilepreview"});class J{file;id;url;status;constructor(t){this.file=t,this.id=`${t.name}-${t.size}-${t.lastModified}-${t.type}`,this.url=URL.createObjectURL(t),this.status=null}}function Q(l,t){const e=k([]),i=z();async function f(a){const o=new FormData;Object.entries(t.value).forEach(([p,V])=>o.append(p,V)),o.append("file",a.file),a.status="loading";try{const p=await i.post(l,o);return a.status="done",p}catch{a.status="error"}}function s(a){return Promise.all(a.map(o=>f(o)))}function _(a){if(!a)return;const o=[...a].map(p=>new J(p)).filter(p=>!h(p.id));e.value=e.value.concat(o)}function h(a){return e.value.some(({id:o})=>o===a)}function n(a){const o=e.value.indexOf(a);o>-1&&e.value.splice(o,1)}function d(){e.value=e.value.filter(a=>a.status!=="done")}function b(){e.value=[]}function g(){return s(e.value)}return{files:e,addFiles:_,removeFile:n,clear:d,reset:b,uploadFiles:g}}const ee={class:"relative my-4 cursor-pointer appearance-none rounded-md border-2 border-dashed border-gray-300 transition hover:border-black focus:outline-none"},te={class:"flex h-32 w-full items-center justify-center space-x-2 bg-white px-4"},ne={class:"font-medium"},ae={class:"text-blue-600 underline"},oe={class:"my-4 flex flex-wrap gap-4"},se=F({__name:"AreUploader",props:{url:{},eventId:{default:void 0}},setup(l){const t=l,e=k(""),{t:i}=j(),f=w(()=>{const n={};return t.eventId&&(n.eventId=t.eventId),n}),s=Q(t.url,f);function _(n){e.value="";const d=n.target;s.addFiles(d.files),d.value=""}async function h(){e.value=i("labels.uploadLoading");try{await s.uploadFiles(),s.clear(),e.value=i("labels.uploadSuccess")}catch{e.value="error"}}return(n,d)=>{const b=I,g=H,a=R;return u(),m("div",null,[r("div",ee,[r("label",te,[y(b,{name:"material-symbols:add-photo-alternate-outline-rounded",size:"1rem"}),r("span",ne,[U(v(n.$t("labels.dropFiles"))+" ",1),r("span",ae,v(n.$t("labels.browse")),1)]),r("input",{accept:"image/jpeg, image/png, image/webp",class:"absolute inset-0 h-full w-full cursor-pointer opacity-0",multiple:"",name:"file_upload",type:"file",onChange:_},null,32)])]),r("div",oe,[(u(!0),m(E,null,O(c(s).files.value,o=>(u(),$(g,{key:o.id,file:o,onRemove:p=>c(s).removeFile(o)},null,8,["file","onRemove"]))),128))]),r("div",null,v(c(e)),1),c(s).files.value.length>0?(u(),$(a,{key:0,onClick:h},{default:A(()=>[U(v(n.$t("buttons.upload")),1)]),_:1})):x("",!0)])}}}),le=Object.assign(se,{__name:"AreUploader"}),ie={class:"are-container"},re=["textContent"],ue=["textContent"],me=F({__name:"photo-upload",async setup(l){let t,e;const i=k(),f=S(),{data:s}=([t,e]=B(()=>W("photo-upload",()=>f.get("/events",{query:{sort:"+city",noPaginate:!0,hasActiveEvent:!0}}))),t=await t,e(),t);D(s,()=>{const n=C(s.value?.data,!1);n?.length&&(i.value=n?.[0]?.id)},{immediate:!0});const _=w(()=>s.value?.data.find(n=>n.id===i.value)),h=w(()=>C(s.value?.data));return(n,d)=>{const b=L,g=le;return u(),m("div",ie,[y(c(N),{"config-file":"true","default-config":!1},{default:A(()=>[r("h1",{class:"my-6 text-1 font-bold uppercase text-secondary-brand font-condensed",textContent:v(n.$t("navigation.photoUpload"))},null,8,re),r("p",{class:"mb-6",textContent:v(n.$t("labels.photoUploadDescription"))},null,8,ue),r("div",null,[c(s)?(u(),$(b,{key:0,modelValue:c(i),"onUpdate:modelValue":d[0]||(d[0]=a=>P(i)?i.value=a:null),type:"dropdown",name:"countryIso2",label:n.$t("labels.appRun"),"floating-label":!1,options:c(h)},null,8,["modelValue","label","options"])):x("",!0),c(_)?(u(),$(g,{key:1,url:"/media","event-id":c(_)?.event?.id||void 0},null,8,["event-id"])):x("",!0)])]),_:1})])}}});export{me as default};
4
5//# debugId=1211a6cb-d40b-527c-8881-71997cc824de

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.