PageSourceSearch

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

js wingsforlifeworldrun.com collected 2026-09-24 08:38:42 UTC 3,148 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]="52aa58a9-4f73-50d4-be3b-28a26be3df49")}catch(e){}}();
3import{aP as $,be as x,a$ as C,bN as E,bh as A,aW as u,b3 as p,aY as c,aX as I,aV as F,b9 as U,ch as L,aT as N,b5 as B,bm as h,cj as R}from"./BV2unoxx.js";import{_ as S}from"./tWRQAy2R.js";import{u as W}from"./CNC8yLn2.js";import"./B76toH_-.js";import"./BaL3ucDq.js";import"./ASlsWfYF.js";import"./CS3VhKbu.js";import"./svziWGXD.js";import"./DqVuOVTO.js";const k={class:"are-container"},V={class:"flex items-center gap-l"},P=["textContent"],T={class:"!mt-xl flex justify-end"},K=$({__name:"create",async setup(j){let d,m;const i=h(!1),r=h(),l=x(),_=C(),n=W(),s=Array.isArray(l.params.eventId)?l.params.eventId[0]:l.params.eventId,{data:f}=([d,m]=E(async()=>L(`event-${s}`,async()=>{const e=await n.get(`/events/${s}`);return e.data||e})),d=await d,m(),d);async function g(e,o){const t=new FormData;t.append("image",e);try{await n.post(`/events/${s}/rewards/${o}/image`,t)}catch(a){throw r.value?.setUploadError(a.message||"Failed to upload image"),a}}async function w(e,o){const t=new FormData;t.append("logo",e);try{await n.post(`/events/${s}/rewards/${o}/image`,t)}catch(a){throw r.value?.setLogoUploadError(a.message||"Failed to upload logo"),a}}async function v(e,o){try{let t;if(o.voucherCodeType==="shared"){if(!o.sharedCode)throw new Error("Code is required");t={codes:[o.sharedCode]},o.sharedMaxNumber!==void 0&&(t.max=o.sharedMaxNumber)}else{const a=o.parsedCodes||[];if(a.length===0)throw new Error("No codes found in CSV");t={codes:a}}await n.post(`/events/${s}/rewards/${e}/codes`,t)}catch(t){throw r.value?.setCodeUploadError(t.message||"Failed to upload codes"),t}}async function y(e){if(s){i.value=!0,r.value?.setUploadError(null),r.value?.setLogoUploadError(null),r.value?.setCodeUploadError(null);try{const o=await n.post(`/events/${s}/rewards`,e.payload);if(o?.data?.id){const t=o.data.id;if(e.selectedImage)try{await g(e.selectedImage,t)}catch{}if(e.selectedLogo)try{await w(e.selectedLogo,t)}catch{}if(e.payload.type==="voucher")try{await v(t,e)}catch{}R(_(`/are/events/${s}/rewards/`))}else throw new Error("Failed to create reward")}catch(o){r.value?.setUploadError(o.message||"An error occurred")}finally{i.value=!1}}}return(e,o)=>{const t=U,a=B,b=S;return N(),A("div",k,[u("div",V,[p(t,{to:c(_)(`/are/events/${c(s)}/rewards`),color:"are-outline",size:"s",icon:"wr:arrow-left",title:e.$t("buttons.back")},null,8,["to","title"]),u("h1",{class:"my-m text-1 font-bold uppercase text-secondary font-condensed",textContent:I(e.$t("labels.createReward"))},null,8,P)]),p(b,{ref_key:"formRef",ref:r,"is-edit-mode":!1,"event-language-iso":c(f)?.languageIso,onSubmit:y},{actions:F(()=>[u("div",T,[p(a,{content:e.$t("buttons.save"),type:"submit",loading:c(i),disabled:c(i)},null,8,["content","loading","disabled"])])]),_:1},8,["event-language-iso"])])}}});export{K as default};
4
5//# debugId=52aa58a9-4f73-50d4-be3b-28a26be3df49

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.