import h from"./BdH3j-8B.js";import{_ as y}from"./BOD6Fk7k.js";import C from"./DaBytPEG.js";import{b as R,s as T,e as w,r as o,i as n,w as i,j as c,k as d,l as u,T as x,A as D,p as m,v as M,t as S}from"./BCLrUOBx.js";import{u as B}from"./CCot8u0_.js";import"./CWalxxGV.js";import"./CE6lP_wf.js";import"./Bvs3L9q-.js";import"./YMgwR3Gi.js";import"./Bxmfm8sn.js";import"./7BSVXI-E.js";import"./BIHe7lFw.js";import"./BkO6xm6x.js";import"./GQCWnG0A.js";const te={__name:"addresses",setup(N){const a=R(),{currencyIcon:V,setting:q,customScripts:E,site_setting:l}=T(a),{fetchLocation:P,setToastMessage:$,setToastError:j,postRequest:H,getRequest:I}=a,{pageMeta:p}=B();w(p(l.value));const r=o(null),s=o(null),e=o(!1),_=()=>{r.value.loadData()},f=()=>{e.value=!1},g=()=>{e.value=!0,s.value=null},v=t=>{s.value=t,e.value=!0};return(t,L)=>{const A=h,b=y,k=C;return c(),n(k,{"active-route":"addresses",onClickedAddresses:_,class:"mb-5"},{rightArea:i(()=>[d("div",null,[u(x,{name:"fade",mode:"out-in"},{default:i(()=>[m(e)?(c(),n(A,{key:0,address:m(s),onClose:f},null,8,["address"])):D("",!0)]),_:1}),d("button",{"aria-label":"submit",class:"primary-btn plr-20 mb-15",onClick:M(g,["prevent"])},S(t.$t("addresses.addAddress")),1),u(b,{ref_key:"userAddressRef",ref:r,onEditing:v},null,512)])]),_:1})}}};export{te as default};
