PageSourceSearch

https://www.aomori-sanchi.com/_next/static/chunks/pages/account/addresses/new-3e73e3a5d98cb7f1.js

js aomori-sanchi.com collected 2026-10-08 22:15:31 UTC 2,783 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[701],{771:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/addresses/new",function(){return t(9687)}])},9133:function(e,s,t){"use strict";t.d(s,{O:function(){return a}});var n=t(5893);function a(e){return(0,n.jsx)("svg",{className:"size-6",fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"m8.25 4.5 7.5 7.5-7.5 7.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},1661:function(e,s,t){"use strict";var n=t(5893),a=t(6664);s.Z=e=>{let s=(0,a.useElements)(),t=async t=>{if(!s||!e.onSubmit)return;t.preventDefault();let n=null==s?void 0:s.getElement("address"),a=await (null==n?void 0:n.getValue());(null==a?void 0:a.complete)&&e.onSubmit(a.value)};return(0,n.jsxs)("form",{onSubmit:t,children:[(0,n.jsx)(a.AddressElement,{id:e.id||"address-element",options:e.options}),e.children]})}},9687:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return h}});var n=t(5893),a=t(6664),i=t(2859),l=t(1664),r=t.n(l),d=t(9332),c=t(7294),o=t(9133),u=t(1661),m=t(940),p=t(1222);let x=(0,i.J)("pk_live_51P8vtkHlc8mTW9T5Uc6Jtq4Bub4HnMJv4bAxOGC8VjSmzRvTkAngF1UOXum2fk2IE8aVln8cbAlSULmvynwCDsYy00SDuYySDt");var h=!0;s.default=()=>{let e=(0,m.h)(),s=(0,d.useRouter)(),[t,i]=(0,c.useState)(!1),[l,h]=(0,c.useState)(""),f=async t=>{i(!0);try{await e.post("customer/address",t),s.replace("/account/addresses")}catch(e){e instanceof p.MS?h(e.message):h("エラーが発生しました")}};return(0,n.jsxs)("div",{className:"mx-auto max-w-xl px-4 pt-10 sm:px-0",children:[(0,n.jsxs)("div",{className:"flex gap-1 text-sm text-gray-500",children:[(0,n.jsx)(r(),{className:"underline",href:"/account/addresses",children:"お届け先住所"}),(0,n.jsx)(o.O,{className:"w-4"}),(0,n.jsx)("span",{className:"text-black",children:"お届け先情報の登録"})]}),(0,n.jsx)("h2",{className:"pt-14 text-center text-2xl",children:"お届け先情報の登録"}),(0,n.jsx)("div",{className:"pt-10",children:(0,n.jsx)(a.Elements,{options:{appearance:{theme:"flat"}},stripe:x,children:(0,n.jsxs)(u.Z,{id:"address-form",onSubmit:f,options:{mode:"shipping",allowedCountries:["JP"],defaultValues:{address:{country:"JP",city:"JP",line1:"",state:"",line2:"",postal_code:""}},fields:{phone:"always"},validation:{phone:{required:"always"}}},children:[l&&(0,n.jsx)("div",{className:"mt-8",children:l}),(0,n.jsx)("div",{className:"mt-10",children:(0,n.jsx)("button",{className:"w-full rounded-lg bg-primary py-4 text-white disabled:opacity-50",disabled:t,id:"submit",children:(0,n.jsx)("span",{id:"button-text",children:"登録する"})})})]})})})]})}}},function(e){e.O(0,[664,491,332,888,774,179],function(){return e(e.s=771)}),_N_E=e.O()}]);

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.