PageSourceSearch

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

js wingsforlifeworldrun.com collected 2026-10-02 09:50:09 UTC 5,514 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]="1a1269ca-8d15-5180-a362-8b440a0fc8db")}catch(e){}}();
3import{aP as O,bN as A,bh as m,b3 as v,aV as M,aY as a,ct as R,ch as T,aT as s,aW as c,aX as S,aS as d,b4 as g,cv as E,bi as $,bj as w,aZ as C,b5 as F,bm as U}from"./dps5x5lW.js";import{u as X}from"./BXFfKQrO.js";import{u as Y}from"./DxEmU_Bj.js";import{u as Z}from"./Dy0GuHsX.js";import{f as q}from"./Bvry8lw2.js";import"./CjNCepFZ.js";const G={class:"are-container"},H=["textContent"],J={class:"grid grid-cols-1 gap-x-l desktop:grid-cols-2"},Q={class:"mb-m font-semibold"},h={class:"mb-3 flex flex-wrap items-center gap-3"},k={key:1,class:"text-sm text-gray-500"},x={class:"space-y-m border-l border-gray-200 pl-l"},se=O({__name:"config",async setup(ee){let r,b;const p=U(null),y=U(null),D=X(),V=Y(),{refresh:_}=([r,b]=A(()=>Z()),r=await r,b(),r),{data:t}=([r,b]=A(async()=>T("are-admin-config",async()=>(await V.get("/admin/config")).data,{deep:!0})),r=await r,b(),r),I=C(()=>{const n=t.value?.config;return n?Object.entries(n).filter(([i,l])=>l!==null&&typeof l=="object").map(([i])=>i):[]}),j=C(()=>{const n=t.value?.config;return n?Object.entries(n).filter(([i,l])=>l===null||typeof l=="string").map(([i])=>i):[]});function B(n){return`config.${n==="photoupload"?"photoUpload":n}`}function K(n){const i=t.value?.config?.[n];if(!i||typeof i!="object")return[];const l=["badge","enabled","comingSoon","comingSoonDate"];return Object.entries(i).filter(([u,e])=>!l.includes(u)&&typeof e=="boolean").map(([u])=>u)}async function N(){const n=await V.patch("/admin/config",{...t.value});t.value=n.data,await _(),D.add({translation:"profiles.settings.saved",type:"success",timeout:5e3})}function f(n){return t.value.config[n]}function P(n){return n?q(new Date(n),"PPpp"):null}async function W(n){if(!(!t.value||f(n).infoMailSentAt)){p.value=n;try{const i=await V.post("/admin/config/send-info-mail",{key:n});t.value=i.data,await _()}finally{p.value=null}}}async function z(n){if(!(!t.value||!f(n).infoMailSentAt)){y.value=n;try{const i=await V.post("/admin/config/reset-info-mail",{key:n});t.value=i.data,await _()}finally{y.value=null}}}return(n,i)=>{const l=E,u=F;return s(),m("div",G,[v(a(R),{"config-file":"true","default-config":!1},{default:M(()=>[c("h1",{class:"my-xl text-1 font-bold uppercase text-secondary-brand font-condensed",textContent:S(n.$t("navigation.admin.config"))},null,8,H),c("div",null,[a(t)?(s(),d(l,{key:0,type:"form",state:a(t),class:"space-y-4",actions:!1,onSubmit:N},{default:M(()=>[(s(!0),m($,null,w(a(j),e=>(s(),d(l,{key:e,modelValue:a(t).config[e],"onUpdate:modelValue":o=>a(t).config[e]=o,type:"textarea",name:"globalAlert"+e,"floating-label":!1,label:n.$t("config.globalAlert")+(e.slice(-2)===e.slice(-2).toUpperCase()?e.slice(-2):""),"outer-class":"mb-l"},null,8,["modelValue","onUpdate:modelValue","name","label"]))),128)),c("div",J,[(s(!0),m($,null,w(a(I),e=>(s(),m("div",{key:e,class:"mb-l rounded-md border border-gray-200 bg-white p-l hover:border-gray-400"},[c("div",Q,S(n.$t(B(e))),1),v(l,{modelValue:a(t).config[e].enabled,"onUpdate:modelValue":o=>a(t).config[e].enabled=o,name:`${e}.enabled`,type:"checkbox",label:n.$t("config.enableMenuItem"),"outer-class":"mb-m !max-w-max"},null,8,["modelValue","onUpdate:modelValue","name","label"]),c("div",h,[v(u,{color:"outline",size:"small",content:a(p)===e?n.$t("config.infoMailSending"):n.$t("config.sendInfoMail"),disabled:!!f(e).infoMailSentAt||a(p)===e||a(y)===e,onClick:o=>W(e)},null,8,["content","disabled","onClick"]),f(e).infoMailSentAt?(s(),d(u,{key:0,color:"text",size:"small",content:a(y)===e?n.$t("config.infoMailResetting"):n.$t("config.resetInfoMail"),disabled:a(p)===e||a(y)===e,onClick:o=>z(e)},null,8,["content","disabled","onClick"])):g("",!0),f(e).infoMailSentAt?(s(),m("span",k,S(n.$t("config.infoMailSentAt",{date:P(f(e).infoMailSentAt)})),1)):g("",!0)]),c("div",x,["comingSoon"in a(t).config[e]?(s(),d(l,{key:0,modelValue:a(t).config[e].comingSoon,"onUpdate:modelValue":o=>a(t).config[e].comingSoon=o,name:`${e}.comingSoon`,type:"checkbox",label:n.$t("config.enableComingSoon"),"outer-class":"!max-w-max"},null,8,["modelValue","onUpdate:modelValue","name","label"])):g("",!0),"comingSoon"in a(t).config[e]&&a(t).config[e].comingSoon?(s(),d(l,{key:1,modelValue:a(t).config[e].comingSoonDate,"onUpdate:modelValue":o=>a(t).config[e].comingSoonDate=o,name:`${e}.comingSoonDate`,type:"date","floating-label":!1,label:n.$t("config.comingSoonDate")},null,8,["modelValue","onUpdate:modelValue","name","label"])):g("",!0),"badge"in a(t).config[e]?(s(),d(l,{key:2,modelValue:a(t).config[e].badge,"onUpdate:modelValue":o=>a(t).config[e].badge=o,name:`${e}.badge`,type:"checkbox",label:n.$t("config.enableBadge"),"outer-class":"!max-w-max"},null,8,["modelValue","onUpdate:modelValue","name","label"])):g("",!0),(s(!0),m($,null,w(K(e),o=>(s(),d(l,{key:o,modelValue:a(t).config[e][o],"onUpdate:modelValue":L=>a(t).config[e][o]=L,name:`${e}.${o}`,type:"checkbox",label:`${n.$t("config.enable")} ${o}`,"outer-class":"!max-w-max"},null,8,["modelValue","onUpdate:modelValue","name","label"]))),128))])]))),128))]),v(u,{content:n.$t("buttons.save"),type:"submit",class:"ml-auto"},null,8,["content"])]),_:1},8,["state"])):g("",!0)])]),_:1})])}}});
3export{se as default};
4
5//# debugId=1a1269ca-8d15-5180-a362-8b440a0fc8db

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.