PageSourceSearch

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

js upgarage.com collected 2026-10-02 03:28:12 UTC 5,404 bytes, 1 lines download raw bytes

1import{d as N,N as A,c as f,a as _,h as l,t as u,m as e,_ as k,z as p,x as H,V as L,e as m,w,f as C,G as T,am as V,v as j,dW as R,p as q,j as z,u as E,r as I,o as U,b as G,F as J,i as O,l as W,L as Y,n as K}from"./CBb99Q15.js";import{M as Q}from"./dFIXalo2.js";import{i as $}from"./VBJo2iiT.js";import{b as X}from"./Jd6aBPtE.js";import{h as Z}from"./CbGaPIAM.js";import"./HJwVSgq5.js";import"./DoeV4jsm.js";import"./s2wyTSv5.js";import"./BNR3ZW0D.js";import"./GWMrmONc.js";import"./BDr1m4Qv.js";const tt={class:"arrival-notice-header","data-testid":"arrival-notice-header"},et={class:"arrival-notice-header__note"},ot={class:"arrival-notice-header__note"},F=N({__name:"arrival_notice_header",props:{totalNewArrivalsCount:{default:0}},setup(r){const{t}=A({useScope:"local"});return(o,i)=>(_(),f("div",tt,[l("p",et,u(e(t)("totalNewArrivalsCount",[o.totalNewArrivalsCount])),1),l("p",ot,u(e(t)("maxRegistration")),1)]))}});function x(r){const t=r;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{totalNewArrivalsCount:{t:0,b:{t:2,i:[{t:3,v:"登録したキーワードの関連商品が "},{t:5,i:0},{t:3,v:" 件見つかりました。"}]}},maxRegistration:{t:0,b:{t:2,i:[{t:3}],s:"※最大10件まで登録可能"}}},en:{totalNewArrivalsCount:{t:0,b:{t:2,i:[{t:5,i:0},{t:3,v:" related items were found based on the keywords you entered."}]}},maxRegistration:{t:0,b:{t:2,i:[{t:3}],s:"※You can register up to 10 items."}}}}})}typeof x=="function"&&x(F);const rt=k(F,[["__scopeId","data-v-4f1cae71"]]),at=r=>(q("data-v-37dd0ac9"),r=r(),z(),r),st={class:"product-alert"},lt={class:"product-alert__btn"},it=at(()=>l("img",{class:"product-alert__btn-icon",src:R},null,-1)),ct={class:"product-alert__info"},nt={class:"product-alert__title"},ut=["innerHTML"],B=N({__name:"product_alert",props:{productAlert:{}},emits:["delete-product-alert"],setup(r,{emit:t}){const o=r,i=A().t,{t:c,locale:d}=A({useScope:"local"}),h=t,g=p(()=>v.value?o.productAlert.title:o.productAlert.keyword),v=p(()=>!!o.productAlert.title),y=p(()=>({car:"productArrivalNotification.car",bike:"productArrivalNotification.motorcycle",bicycle:"productArrivalNotification.bicycle",tool:"productArrivalNotification.tool",goods:"productArrivalNotification.goods"})[o.productAlert.categoryId]),b=p(()=>{const n=v.value?$.toFiltersFromUrl(o.productAlert.upgarageStockItem.url):{search_word:o.productAlert.keyword};return $.toSummaryFromFilters(n,o.productAlert.conditionTexts,i)}),a=()=>{h("delete-product-alert",o.productAlert.id)},s=p(()=>v.value?`/ec/search/?${o.productAlert.upgarageStockItem.url.split("depot_params/?")[1]}`:o.productAlert.upgarageStockItem.url);return(n,S)=>(_(),f("li",st,[l("div",null,[l("div",{class:H(["product-alert__label",{"product-alert__label-en":!e(L)(e(d))}])},u(e(c)(e(y))),3),l("div",lt,[m(T,{type:"round-outlined",onClick:a},{default:w(()=>[it,C(" "+u(e(c)("remove")),1)]),_:1})])]),l("div",ct,[l("div",nt,u(e(g)),1),l("div",{class:"product-alert__summary","data-testid":"summary",innerHTML:e(b)},null,8,ut),m(j,{class:"product-alert__count",href:e(s),"data-testid":"search-button"},{default:w(()=>[C(u(e(c)("items",[n.productAlert.upgarageStockItem.newArrivalsCount]))+" ",1),m(V,{class:"product-alert__arrow",type:"arrow_forward_ios"})]),_:1},8,["href"])])]))}});function M(r){const t=r;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{items:{t:0,b:{t:2,i:[{t:5,i:0},{t:3,v:"件"}]}},remove:{t:0,b:{t:2,i:[{t:3}],s:"削除"}}},en:{items:{t:0,b:{t:2,i:[{t:5,i:0},{t:3,v:" items"}]}},remove:{t:0,b:{t:2,i:[{t:3}],s:"Remove"}}}}})}typeof M=="function"&&M(B);const dt=k(B,[["__scopeId","data-v-37dd0ac9"]]),pt={class:"product-alert"},_t={key:0},mt={class:"product-alert__list"},D=N({__name:"index",setup(r){const{$accountApi:t,$errorHandler:o}=E(),i=I(!1),c=I([]),{t:d,locale:h}=A({useScope:"local"});U(async()=>
1{Z.set({title:d("title"),useShortSiteTitle:!0,isEn:h.value==="en"}),X.set([{name:"mypage",translation:!0,path:"/mypage/"},{name:d("title"),path:"/mypage/product-alert/"}]),i.value=!1,await v(),i.value=!0});const g=p(()=>c.value.reduce((a,s)=>a+s.upgarageStockItem.newArrivalsCount,0)),v=async()=>{const{data:a,error:s}=await t().getProductAlertConditions(h.value);s.value!==null?o().handle(s.value.statusCode):a&&(c.value=a.resources)},y=async a=>{i.value=!1;const{error:s}=await t().deleteProductAlertCondition(a);s.value!==null&&o().handle(s.value.statusCode),c.value=c.value.filter(n=>n.id!==a),i.value=!0},b=async a=>{await K().confirm(d("deleteMessage"))&&await y(a)};return(a,s)=>(_(),f("div",pt,[e(i)?(_(),f("div",_t,[m(Q,null,{default:w(()=>[C(u(e(d)("title")),1)]),_:1}),m(rt,{"total-new-arrivals-count":e(g)},null,8,["total-new-arrivals-count"]),l("ul",mt,[(_(!0),f(J,null,O(e(c),(n,S)=>(_(),W(dt,{key:S,"product-alert":n,onDeleteProductAlert:b},null,8,["product-alert"]))),128))])])):G("",!0),m(Y,{loading:!e(i)},null,8,["loading"])]))}});function P(r){const t=r;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"商品入荷通知"}},deleteMessage:{t:0,b:{t:2,i:[{t:3}],s:"商品入荷通知を削除します。よろしいですか?"}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Notification of Product Arrival"}},deleteMessage:{t:0,b:{t:2,i:[{t:3}],s:"Are you sure you want to delete the product arrival notification?"}}}}})}typeof P=="function"&&P(D);const St=k(D,[["__scopeId","data-v-e87d92dc"]]);export{St 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.