1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1214],{67850:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/my-addresses",function(){return i(30039)}])},30039:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var s=i(52322),l=i(55351),r=i(5632),n=i(2784),d=i(42670),o=i(94449),a=i(34050),c=i(17919),u=i(78033),x=i(38293),f=i(32131),h=i(42181),j=i(44439),y=i(17881),v=e=>{var t;let{address:i}=e,l=(0,r.useRouter)(),n=(0,o.v9)(x.PR),h=(0,o.v9)(x.zq);return(0,s.jsxs)("div",{style:{width:"100%",justifyContent:"center",backgroundColor:f.Z.colors.white,marginTop:"5%",padding:"5%",borderRadius:10},children:[(0,s.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsx)("div",{style:{width:"50%",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsx)(j.Z,{sourcePage:u.Sk.PROFILE_MY_ADDRESSES,textColor:f.Z.colors.productNameText,backgroundColor:f.Z.colors.white,headingText:(0,s.jsx)(d.Z,{id:"profile.addresses.header"}),icon:c.Z,small_icon:!0,textBoldDisabled:!0,removeInlinePadding:!0})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",cursor:"pointer"},onClick:()=>{l.push({pathname:u.Sk.PROFILE_EDIT_ADDRESS})},children:(0,s.jsx)(j.Z,{sourcePage:u.Sk.PROFILE,textColor:f.Z.colors.violet,backgroundColor:f.Z.colors.white,headingText:(0,s.jsx)(d.Z,{id:"edit.text"}),removeInlinePadding:!0})})]}),(0,s.jsx)("div",{style:{marginBlock:"5%"},children:(0,s.jsx)(y.Z0,{})}),(0,s.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsx)(p,{keyAttribute:"profile.address.title",value:n.mainAddress.address}),(0,s.jsx)(p,{keyAttribute:"profile.address.city",value:n.mainAddress.city.cityAr}),(0,s.jsx)(p,{keyAttribute:"profile.address.area",value:n.mainAddress.area.areaAr}),(null==h?void 0:h.find(e=>(null==e?void 0:e.field)===a.kHA.DISTRICT))&&(0,s.jsx)(p,{keyAttribute:"profile.address.district",value:null===(t=n.mainAddress.district)||void 0===t?void 0:t.districtAr}),(null==h?void 0:h.find(e=>(null==e?void 0:e.field)===a.kHA.LANDMARK))&&(0,s.jsx)(p,{keyAttribute:"profile.address.landmark.updated",value:n.mainAddress.landmark})]})]})};let p=e=>{let{keyAttribute:t,value:i}=e;return(0,s.jsxs)("div",{style:{marginBlock:"2%",width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[(0,s.jsx)("div",{style:{width:"25%"},children:(0,s.jsx)("p",{style:Object.assign({color:f.Z.colors.greyTitle},h.Z.large),children:(0,s.jsx)(d.Z,{id:t})})}),(0,s.jsx)("div",{style:{width:"75%"},children:(0,s.jsx)("p",{style:Object.assign({color:f.Z.colors.productNameText},h.Z.large),children:i})})]})};var m=i(99396),g=i(81461),w=i(54217),_=()=>{let e=(0,r.useRouter)(),t=(0,o.v9)(x.PR),i=(0,o.v9)(x.Hm),a=(0,o.v9)(x.Pc),c=(0,o.v9)(x.ss),h=(0,o.v9)(x.Lb);return(0,n.useEffect)(()=>{h!=u.OL.LOADING&&c!=u.OL.LOADING&&(i==x.ju.LOGGED_OUT_WITH_PHONE||i==x.ju.LOGGED_IN_WITHOUT_ADDRESS)?e.push({pathname:u.Sk.PROFILE_SIGN_UP}):a&&i==x.ju.LOGGED_IN_WITH_ADDRESS&&t.mainAddress.city&&!t.mainAddress.city.cityId&&e.push({pathname:u.Sk.LOGOUT})},[t,i,a,e,h,c]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.PB,{nofollow:!0,noindex:!0}),(0,s.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignContent:"space-around",backgroundColor:f.Z.colors.backgroundInput},children:[(0,s.jsx)(g.Z,{title:(0,s.jsx)(d.Z,{id:"profile.addresses"}),removeBack:!1}),(0,s.jsxs)("div",{style:{width:"100%",overflowY:"scroll",flexGrow:1},children:[(0,s.jsx)("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"5%"},children:(0,s.jsx)("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(v,{})})}),(0,s.jsx)(w.Z,{})]}),(0,s.jsx)(m.Z,{active:u.NQ.PROFILE,showAssistance:!1})]})]})}}},function(e){e.O(0,[5338,9097,7234,304,637,3787,5124,6197,7524,5452,6741,5300,3589,7157,2204,4217,8781,2838,6320,7647,3018,7881,6016,2888,9774,179],function(){return e(e.s=67850)}),_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.