PageSourceSearch

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

js upgarage.com collected 2026-10-02 03:28:08 UTC 4,491 bytes, 1 lines download raw bytes

1import{d as P,u as A,r as _,N as M,o as V,c as f,a as p,b as R,e as y,m as o,h as n,w as $,f as m,t as h,F,i as j,aE as O,dI as U,x as B,V as D,L,n as T,p as z,j as H,_ as G}from"./CBb99Q15.js";import{M as J}from"./dFIXalo2.js";import{b as W}from"./Jd6aBPtE.js";import{h as Y}from"./CbGaPIAM.js";import"./HJwVSgq5.js";import"./BDr1m4Qv.js";const q=s=>(z("data-v-b3555b82"),s=s(),H(),s),K={class:"notification"},Q={key:0},X={class:"notification__explain"},Z={class:"notification__explain-text"},ee=q(()=>n("br",null,null,-1)),te={class:"notification__setting-wrap"},ae={class:"setting-item__text"},ie=["id","onUpdate:modelValue","name","onChange"],oe=["for"],x=P({__name:"notification",setup(s){const{$accountApi:c,$errorHandler:b}=A(),l=_(!1),d=_(),{locale:g,t:i}=M({useScope:"local"}),u=_([{key:"general",label:"アップガレージからのお知らせ",checked:!0,showInEnglish:!1},{key:"promotion",label:"キャンペーンのお知らせ",checked:!0,showInEnglish:!1},{key:"coupon",label:"クーポンのお知らせ",checked:!0,showInEnglish:!1},{key:"reservation",label:"予約に関するお知らせ",checked:!0,showInEnglish:!1},{key:"product-alert",label:i("notificationOfProductArrival"),checked:!0,showInEnglish:!1},{key:"abandoned-cart",label:i("recommendedProductNotification"),checked:!0,showInEnglish:!0}]),N=u.value.filter(e=>g.value==="ja"||e.showInEnglish!==!1);V(async()=>{Y.set({title:i("title"),useShortSiteTitle:!0,isEn:g.value==="en"}),W.set([{name:"mypage",translation:!0,path:"/mypage/"},{name:i("title"),path:"/mypage/notification/"}]),await E()});const v=e=>{u.value.forEach(t=>{const a=t.key.replace(/-([a-z])/g,r=>r[1].toUpperCase());if(a==="abandonedCart"||a==="reservation"){t.checked=e[a];return}t.checked=e[a].email})},E=async()=>{l.value=!1;const{data:e,error:t}=await c().getNotificationSettings();(t==null?void 0:t.value)!=null?b().handle(t.value.statusCode):e&&v(e.resource),l.value=!0},S=async()=>{l.value=!1;const{data:e,error:t}=await c().updateNotificationSettings(d.value.key,d.value.checked);t.value!==null?b().handle(t.value.statusCode):e&&v(e.resource),l.value=!0},C=async e=>{if(d.value=e,!await T().confirm(i("confirmChangeSetting"))){I();return}S()},I=()=>{const e=u.value.findIndex(t=>{var a;return t.key===((a=d.value)==null?void 0:a.key)});u.value[e].checked=!d.value.checked};return(e,t)=>(p(),f("div",K,[o(l)?(p(),f("div",Q,[y(J,null,{default:$(()=>[m(h(o(i)("title")),1)]),_:1}),n("div",X,[n("p",Z,[m(h(o(i)("pageExplainFirstRow")),1),ee,m(" "+h(o(i)("pageExplainSecondRow")),1)])]),n("div",te,[(p(!0),f(F,null,j(o(N),(a,r)=>(p(),f("div",{key:r,class:"notification__setting-item setting-item"},[n("p",ae,h(a.label),1),O(n("input",{id:`btn0${r+1}`,"onUpdate:modelValue":k=>a.checked=k,name:`btn0${r+1}`,type:"checkbox",class:"setting-item__checkbox",onChange:k=>C(a)},null,40,ie),[[U,a.checked]]),n("label",{for:`btn0${r+1}`,class:B(["setting-item__btn",o(D)(o(g))?"setting-item__btn-ja":"setting-item__btn-en"])},null,10,oe)]))),128))])])):R("",!0),y(L,{loading:!o(l)},null,8,["loading"])]))}});function w(s){const c=s;c.__i18n=c.__i18n||[],c.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"メール通知設定"}},confirmChangeSetting:{t:0,b:{t:2,i:[{t:3}],s:"メール通知設定を変更しますか?"}},pageExplainFirstRow:{t:0,b:{t:2,i:[{t:3}],s:"アップガレージからメールでお知らせする内容を設定できます。"}},pageExplainSecondRow:{t:0,b:{t:2,i:[{t:3}],s:"※ご注文に関するメールなど、必ずお受け取りいただくメールの設定は変更できません。"}},notificationOfProductArrival:{t:0,b:{t:2,i:[{t:3}],s:"商品入荷通知"}},recommendedProductNotification:{t:0,b:{t:2,i:[{t:3}],s:"おすすめ商品通知"}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Email Notification Settings"}},confirmChangeSetting:{t:0,b:{t:2,i:[{t:3}],s:"Would you like to change your email notification settings?"}},pageExplainFirstRow:{t:0,b:{t:2,i:[{t:3}],s:"You can configure the notifications you receive from UpGarage via email."}},pageExplainSecondRow:{t:0,b:{t:2,i:[{t:3}],s:"*Please note that settings related to essential emails, such as those regarding your orders, cannot be modified."}},notificationOfProductArrival:{t:0,b:{t:2,i:[{t:3}],s:"Notification of Product Arrival"}},recommendedProductNotification:{t:0,b:{t:2,i:[{t:3}],s:"Abandoned Cart Notifications"}}}}})}typeof w=="function"&&w(x);const ue=G(x,[["__scopeId","data-v-b3555b82"]]);export{ue 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.