PageSourceSearch

https://static.upgarage.com/_nuxt/CwjFvclC.js

js upgarage.com collected 2026-10-02 03:28:34 UTC 1,913 bytes, 1 lines download raw bytes

1import{d as h,z as w,c as g,a as p,h as u,t as x,_ as y,u as M,O as $,aT as b,C as A,r as f,a5 as C,o as L,l as k,b as B,e as P,L as T}from"./CBb99Q15.js";import{b as q}from"./Jd6aBPtE.js";import{h as E}from"./CbGaPIAM.js";import{p as H}from"./qOmkz0o3.js";import"./BDr1m4Qv.js";const R={class:"promotion"},V={class:"eye-catch"},z={class:"eye-catch__title","data-testid":"title"},D=["innerHTML"],F=h({__name:"promotion",props:{promotion:{}},setup(m){const c=m,s=w(()=>{var r,e,o,t;return{title:(e=(r=c.promotion)==null?void 0:r.title)==null?void 0:e.rendered,content:(t=(o=c.promotion)==null?void 0:o.content)==null?void 0:t.rendered}});return(r,e)=>{var o,t;return p(),g("div",R,[u("div",V,[u("h1",z,x((o=s.value)==null?void 0:o.title),1)]),u("div",{class:"promotion__content wordpress-content","data-testid":"content",innerHTML:(t=s.value)==null?void 0:t.content},null,8,D)])}}}),O=y(F,[["__scopeId","data-v-36d1c950"]]),S={class:"promotion"},j={class:"promotion__detail"},G=h({__name:"[id]",setup(m){const{$wpRestApi:c,$errorHandler:s,$accountApi:r}=M(),e=$(),o=b(),{isLoggedIn:t}=A(),I=e.params.id,n=f(void 0),d=f(!1);C(n,()=>{n.value&&(E.set({title:n.value.title.rendered,canonicalTagEnabled:!0}),q.set([H().indexPage(),{name:n.value.title.rendered}]))});const N=async i=>{var _;d.value=!0;const{data:a,error:l}=await c().promotionApi({id:i});if(a){n.value=a;const v=n.value.acf.url;if(v){window.location=v;return}d.value=!1}else l&&s().handle((_=l==null?void 0:l.value)==null?void 0:_.statusCode)};return L(()=>{const i=e.query.announcementId;i&&(t.value&&r().readNotice(i),o.replace({query:{...e.query,announcementId:void 0}}));const a=parseInt(I);isNaN(a)?s().notFoundError():N(a)}),(i,a)=>(p(),g("div",S,[u("div",j,[d.value?B("",!0):(p(),k(O,{key:0,promotion:n.value},null,8,["promotion"])),P(T,{loading:d.value},null,8,["loading"])])]))}}),X=y(G,[["__scopeId","data-v-dfd11672"]]);export{X 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.