PageSourceSearch

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

js upgarage.com collected 2026-10-02 03:28:23 UTC 2,740 bytes, 1 lines download raw bytes

1import{d as E,u as L,O as I,r as p,K as T,N as V,z as j,o as B,c as d,a as i,b as h,e as c,m as n,w as b,f as F,t as M,L as O,h as m,F as P,i as $,M as q,q as k,p as H,j as z,_ as K}from"./CBb99Q15.js";import{D as R,u as U}from"./CenJt9tC.js";import{M as G}from"./dFIXalo2.js";import{b as J}from"./Jd6aBPtE.js";import{h as Q}from"./CbGaPIAM.js";import"./DkvjyNul.js";import"./ChYhb54x.js";import"./CmJn3jzX.js";import"./GWMrmONc.js";import"./DoeV4jsm.js";import"./HJwVSgq5.js";import"./BDr1m4Qv.js";const W=t=>(H("data-v-fb0192e1"),t=t(),z(),t),X={class:"delivery-addresses"},Y={key:0},Z={key:0},ee={class:"delivery-addresses-error"},te=W(()=>m("div",{class:"delivery-addresses-error-title"}," 入力内容に誤りがあります ",-1)),se={class:"delivery-addresses-error-message"},A=E({__name:"edit",setup(t){const{$accountApi:r,$errorHandler:w}=L(),v=I().query.delivery_address_id,a=p(!0),l=p(),f=p(),x=()=>{f.value.open()},N=T(),{t:_,locale:y}=V({useScope:"local"}),C=j(()=>{const s=l.value??void 0;return s?Object.entries(s).reduce((o,[e,u])=>[...o,...u.message],[]):[]}),D=async s=>{var u;a.value=!1,l.value=void 0;const o=U();o.value={...s};const{error:e}=await r().updateDeliveryAddress(Number(v),s);if((e==null?void 0:e.value)!=null){const g=e.value.statusCode;if(g===400){l.value=e.value.data.errors,x(),window.scrollTo(0,0),a.value=!0;return}else if(g===403){k(e.value.data.errors.blacklist.redirect_url,{external:!0});return}w().handle((u=e.value)==null?void 0:u.statusCode)}else o.value={honorific_title:"",first_name:"",first_name_kana:"",last_name:"",last_name_kana:"",postal_code:"",country:"",state:"",prefecture_cd:"",city:"",address_line_1:"",address_line_2:"",company_name:"",tel:"",lang:y.value},k(N("/mypage/setting/delivery-address/"));a.value=!0};return B(()=>{Q.set({title:_("title"),useShortSiteTitle:!0,isEn:y.value==="en"}),J.set([{name:"mypage",translation:!0,path:"/mypage/"},{name:"deliveryAddressList",translation:!0,path:"/mypage/setting/delivery-address/"},{name:_("title"),path:`/mypage/setting/delivery-address/${v}/edit/`}])}),(s,o)=>(i(),d("div",X,[n(a)?(i(),d("div",Y,[c(G,null,{default:b(()=>[F(M(n(_)("title")),1)]),_:1}),c(R,{"is-edit-page":!0,onSave:D})])):h("",!0),c(O,{loading:!n(a)},null,8,["loading"]),c(q,{ref_key:"errorModal",ref:f},{default:b(()=>[n(l)?(i(),d("div",Z,[m("div",ee,[te,(i(!0),d(P,null,$(n(C),e=>(i(),d("ul",{key:e},[m("li",se,M(e),1)]))),128))])])):h("",!0)]),_:1},512)]))}});function S(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"送付先編集"}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Edit delivery address"}}}}})}typeof S=="function"&&S(A);const fe=K(A,[["__scopeId","data-v-fb0192e1"]]);export{fe 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.