1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="7f044ed2-4cff-4616-9797-a66b1c3d79b0",e._sentryDebugIdIdentifier="sentry-dbid-7f044ed2-4cff-4616-9797-a66b1c3d79b0")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3832],{9143:(e,i,n)=>{n.d(i,{A:()=>A});var s=n(37876),t=n(5811),d=n(14232),o=n(18827),r=n(23339),l=n(43115),a=n(66845),c=n(31535),p=n(19363),h=n(54275),u=n(29319),g=n(24051),f=n(39178),b=n(26104),_=n(55197),x=n(67327),y=n(70704);let A=(0,t.PA)(function(e){var i;let{visible:n,data:t,countryCode:o,onDismiss:l,onSelect:A}=e,C=(0,b.r)(),j=(0,y.Pj)(),{t:v}=(0,_.Z)(w),I=o?null==(i=(0,x.Ax)(o))?void 0:i.name[C.locale]:void 0,[k,D]=(0,d.useState)(!1),[B,S]=(0,d.useState)(null),z=(0,d.useCallback)(e=>{null==A||A(e),null==l||l()},[A,l]),E=async()=>{if(B)try{var e;await (null==(e=j.user)?void 0:e.deleteShippingAddressAsync(B)),D(!1),S(null),c.A.show({message:v("shipping_address_deleted"),position:"center",duration:h.c9.VERY_LONG})}catch(e){console.error("Failed to delete shipping address",e)}},N=(0,d.useRef)(null),[R,P]=(0,d.useState)(!1),G=(0,d.useCallback)(()=>{let e=N.current;if(e){let{scrollTop:i,scrollHeight:n,clientHeight:s}=e;i+s>=n-5?P(!1):P(!0)}},[]);return(0,d.useEffect)(()=>{let e=N.current;if(e){let{scrollTop:i,scrollHeight:n,clientHeight:s}=e;i+s<n-5?P(!0):P(!1)}},[t]),(0,s.jsxs)(r.A,{visible:n,onDismiss:l,height:"auto",style:{maxHeight:"73%",display:"flex",flexDirection:"column"},children:[(0,s.jsx)(m.NavBar,{children:(0,s.jsx)(p.A,{tag:"strong",size:16,center:!0,style:{fontWeight:700},children:v("shipping_addresses")})}),(0,s.jsxs)(m.ContentWrapper,{children:[(0,s.jsx)(m.ScrollContainer,{ref:N,onScroll:G,children:(0,s.jsx)(m.AddressListWrapper,{children:0===t.length?(0,s.jsx)(m.EmptyGuide,{size:14,center:!0,color:"#7b7b7b",children:v("no_shipping_address_blah",{country:null!=I?I:v("this_country")})}):t.map(e=>(0,s.jsx)(f.A,{data:e,selectable:!0,editable:!0,onSelect:()=>z(e),onEdit:()=>C.push("/account/shipping-addresses/".concat(e.id)),onDelete:()=>(e=>{let i=t.find(i=>i.id===e);if(null==i?void 0:i.representative)return void c.A.show({message:v("this_is_your_blah"),position:"center",duration:h.c9.VERY_LONG});S(e),D(!0)})(e.id)},e.id))})}),(0,s.jsx)(m.GradientOverlay,{$visible:R}),(0,s.jsx)(m.FooterBtnContainer,{children:(0,s.jsx)(g.A,{style:{height:48},textProps:{size:15,color:"#fff"},onClick:()=>{null==l||l(),C.push("/account/shipping-addresses/new")},children:v("add_shipping_address_blah")})})]}),(0,s.jsx)(a.A,{visible:k,onDismiss:()=>D(!1),style:{width:308},children:(0,s.jsxs)(m.ConfirmDialog,{children:[(0,s.jsx)(p.A,{size:18,semiBlack:!0,style:{marginBottom:16},children:v("delete_shipping_address_blah")}),(0,s.jsx)(p.A,{size:14,semiBold:!0,children:v("if_you_delete_blah")}),(0,s.jsxs)(u.A,{flexDirection:"row",style:{gap:8,marginTop:20},children:[(0,s.jsx)(m.Dialog__CloseBtn,{onClick:()=>D(!1),children:(0,s.jsx)(p.A,{size:15,semiBold:!0,children:v("cancel")})}),(0,s.jsx)(m.Dialog__PrimaryBtn,{onClick:E,children:(0,s.jsx)(p.A,{size:15,semiBold:!0,color:"white",children:v("delete")})})]})]})})]})}),m={NavBar:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-0"})(["flex-direction:row;align-items:center;justify-content:space-between;padding:18px 16px 14px;"]),ContentWrapper:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-1"})(["position:relative;flex:1;min-height:0;display:flex;flex-direction:column;"]),AddressListWrapper:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-2"})(["padding:0 16px;gap:8px;"]),EmptyGuide:(0,o.Ay)(p.A).withConfig({componentId:"sc-e83bf883-3"})(["padding:32px 16px;"]),ScrollContainer:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-4"})(["flex:1;min-height:0;overflow-y:auto;padding-bottom:8px;"]),GradientOverlay:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-5"})(["position:absolute;bottom:66px;left:0;width:100%;height:40px;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#fff 100%);opacity:",";transition:opacity 0.5s;"],e=>{let{$visible:i}=e;return+!!i}),FooterBtnContainer:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-6"})(["padding:12px 16px 18px;background:#fff;"]),ConfirmDialog:(0,o.Ay)(u.A).withConfig({componentId:"sc-e83bf883-7"})(["padding:16px 20px 20px;"]),Dialog__CloseBtn:(0,o.Ay)(l.A).withConfig({componentId:"sc-e83bf883-8"})(["flex:1;height:48px;border-radius:6px;border:1px solid #d9d9d9;"]),Dialog__PrimaryBtn:(0,o.Ay)(l.A).withConfig({componentId:"sc-e83bf883-9"})(["flex:1;height:48px;background-color:#ff4f85;border-radius:6px;"])},w={ns:"components/domain/bottom-sheet/select-shipping-address",en:{shipping_addresses:"Shipping Addresses",add_shipping_address_blah:"Add a shipping address",no_shipping_address_blah:"No shipping address in {{country}} yet.\nAdd one below.",this_country:"this country",delete_shipping_address_blah:"Delete this shipping address?",if_you_delete_blah:"Youâll need to add it again if you delete it.\nDelete anyway?",cancel:"Cancel",delete:"Delete",shipping_address_deleted:"Shipping address deleted.",this_is_your_blah:"This is your default address.\nSet another address as default to delete this one."},ko:{shipping_addresses:"ë°°ì¡ì§ 목ë¡",add_shipping_address_blah:"ë°°ì¡ì§ ì¶ê°",no_shipping_address_blah:"{{country}} ë°°ì¡ì§ê° ìì§ ìì´ì.\nìëìì ì¶ê°í´ 주ì¸ì.",this_country:"ì´ ëë¼",delete_shipping_address_blah:"ì´ ë°°ì¡ì§ë¥¼ ìì íìê² ìµëê¹?",if_you_delete_blah:"ìì í ê²½ì° ë¤ì ì¶ê°í´ì¼ í©ëë¤.\nê·¸ëë ìì íìê² ìµëê¹?",cancel:"ì·¨ì",delete:"ìì ",shipping_address_deleted:"ë°°ì¡ì§ê° ìì ëììµëë¤.",this_is_your_blah:"기본 ë°°ì¡ì§ë¡ ì¤ì ë 주ììì.\nìì íìë ¤ë©´ ë¤ë¥¸ 주ì를 기본주ìë¡ ì¤ì í´ì£¼ì¸ì."},ja:{shipping_addresses:"é
éå
ä¸è¦§",add_shipping_address_blah:"é
éå
ã追å ",no_shipping_address_blah:"{{country}}ã®é
éå
ãã¾ã ããã¾ããã\nä¸ãã追å ãã¦ãã ããã",this_country:"ãã®å½",delete_shipping_address_blah:"ãã®é
éå
ãåé¤ãã¾ããï¼",if_you_delete_blah:"åé¤ããã¨ãå度追å ããå¿
è¦ãããã¾ãã\nããã§ãåé¤ãã¾ããï¼",cancel:"ãã£ã³ã»ã«",delete:"åé¤",shipping_address_deleted:"é
éå
ãåé¤ããã¾ããã",this_is_your_blah:"ãã®é
éå
ã¯ããã©ã«ãã«è¨å®ããã¦ãã¾ãã\nåé¤ããã«ã¯ãå¥ã®ä½æãããã©ã«ãã«è¨å®ãã¦ãã ããã"}}},39178:(e,i,n)=>{n.d(i,{A:()=>f});var s=n(37876),t=n(14232),d=n(18827),o=n(43115),r=n(91143),l=n(31535),a=n(65103),c=n(19363),p=n(54275),h=n(29319),u=n(55197),g=n(29683);let f=(0,t.memo)(function(e){let{data:i,selectable:n,editable:t,onSelect:d,onEdit:o,onDelete:f}=e,{t:x}=(0,u.Z)(_),y=()=>{n&&d&&d()},A=[i.addressLine1,i.addressLine2,i.buildingName?"(".concat(i.buildingName,")"):""].filter(
1Boolean).join(", ");return(0,s.jsxs)(b.Card,{onClick:n?y:void 0,as:n?r.A:h.A,children:[(0,s.jsxs)(b.Header,{children:[(0,s.jsxs)(h.A,{style:{flexDirection:"row",alignItems:"center",gap:4},children:[(0,s.jsx)(c.A,{size:14,bold:!0,children:i.addressAlias}),(0,s.jsx)(a.A,{src:"/image/entrance/flag_".concat(i.countryCode,".svg"),alt:"".concat(i.countryCode," flag"),width:18,height:18,noPlaceholder:!0,priority:!0}),i.representative&&(0,s.jsx)(b.RepresentativeBadge,{children:(0,s.jsx)(c.A,{size:11,bold:!0,children:x("default_address")})})]}),n&&(0,s.jsx)(b.SelectBtn,{onClick:y,children:(0,s.jsx)(c.A,{size:12,color:"#7b7b7b",semiBold:!0,children:x("select")})})]}),(0,s.jsx)(b.RecipientInfo,{children:(0,s.jsxs)(c.A,{size:13,children:[i.recipientName," \xb7"," ",g.A.makeFormattedNumber(i.recipientPhone,i.countryCode).replace(/ /g,"")]})}),(0,s.jsx)(b.Address,{children:(0,s.jsx)(c.A,{size:13,children:A})}),t&&(0,s.jsxs)(b.Actions,{children:[(0,s.jsx)(b.ActionBtn,{onClick:e=>{e.stopPropagation(),null==o||o()},style:{paddingRight:8},children:(0,s.jsx)(c.A,{size:13,color:"#7b7b7b",bold:!0,children:x("edit")})}),(0,s.jsx)(b.Divider,{}),(0,s.jsx)(b.ActionBtn,{onClick:e=>{if(e.stopPropagation(),i.representative)return void l.A.show({message:x("this_is_your_blah"),position:"center",duration:p.c9.VERY_LONG});null==f||f()},style:{padding:"0 8px"},children:(0,s.jsx)(c.A,{size:13,color:i.representative?"#cbcbcb":"#7b7b7b",bold:!0,children:x("delete")})})]})]})}),b={Card:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-0"})(["padding:14px 16px;border-radius:8px;border:1px solid #ebebeb;"]),Header:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-1"})(["flex-direction:row;align-items:center;justify-content:space-between;"]),RepresentativeBadge:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-2"})(["padding:2px 3px;border-radius:2px;background:#f4f4f4;"]),SelectBtn:(0,d.Ay)(o.A).withConfig({componentId:"sc-ccb2c5f-3"})(["padding:4px 8px;border-radius:20px;border:1px solid #ebebeb;"]),RecipientInfo:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-4"})(["margin-top:4px;"]),Address:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-5"})(["margin-top:4px;"]),Actions:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-6"})(["flex-direction:row;align-items:center;margin-top:12px;"]),ActionBtn:(0,d.Ay)(o.A).withConfig({componentId:"sc-ccb2c5f-7"})(["padding:0;"]),Divider:(0,d.Ay)(h.A).withConfig({componentId:"sc-ccb2c5f-8"})(["width:1px;height:8px;background:#b5b5b5;"])},_={ns:"components/domain/view/card/shipping-address-card",en:{default_address:"Default Address",select:"Select",edit:"Edit",delete:"Delete",this_is_your_blah:"This is your default address.\nSet another address as default to delete this one."},ko:{default_address:"기본 ë°°ì¡ì§",select:"ì í",edit:"ìì ",delete:"ìì ",this_is_your_blah:"기본 ë°°ì¡ì§ë¡ ì¤ì ë 주ììì.\nìì íìë ¤ë©´ ë¤ë¥¸ 주ì를 기본주ìë¡ ì¤ì í´ì£¼ì¸ì."},ja:{default_address:"ããã©ã«ã使",select:"鏿",edit:"ç·¨é",delete:"åé¤",this_is_your_blah:"ãã®é
éå
ã¯ããã©ã«ãã«è¨å®ããã¦ãã¾ãã\nåé¤ããã«ã¯ãå¥ã®ä½æãããã©ã«ãã«è¨å®ãã¦ãã ããã"}}},84794:(e,i,n)=>{n.d(i,{Q:()=>u,a:()=>h});
1var s=n(14232),t=n(27715),d=n(26104),o=n(9641),r=n(87987),l=n(33586),a=n(29683),c=n(70704),p=n(19210);let h=(e,i)=>{let n=a.A.defaults(i,{requestIf:()=>!0}),h=n.requestIf,u=n.suppressErrorRedirect,g=(0,d.r)(),f=(0,c.Pj)(),{redirectToErrorPage:b,reportToSentry:_}=(0,l.u)();delete n.requestIf,delete n.suppressErrorRedirect;let{data:x,mutate:y,isValidating:A}=(0,t.Ay)(h()?"/v2/orders/".concat(e.orderId,"?language=").concat(e.locale):null,{dedupingInterval:1e3,onError(e){if(e.status===r.lw.Status.Unauthorized){f.auth.logout(),g.push("/auth");return}if(!(0,o.$N)(e)||e.status){if(403!==e.status&&(null==u?void 0:u()))return void _(e);b(e)}},...n});return{data:(0,s.useMemo)(()=>{if(x)return(0,p._G)(x)},[x]),loading:A,forceInvalidate:(0,s.useCallback)(()=>{y()},[y])}},u=async e=>{await (0,t.Tk)("/v2/orders/".concat(e.orderId,"?language=").concat(e.locale))}}}]);
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.