import{a as e,B as c,aS as g,E as f,R as m,K as l,fj as b,jY as p,cH as _,q as A,bj as y,G as P,o as S,b1 as o,az as u,aB as x,I as k,aC as h,a3 as v,a4 as C,an as B,b6 as N,ac as R,gp as z}from"./app.B46ok1sD.js";import{C as H}from"./NoAddressLocationFullDetour.IjvhIHxd.js";const I="MV9Am",d={Actions:I};function M({children:n}){return e(g,{accessibilityRole:"presentation",children:e(c,{spacing:"large300",children:n})})}function w({grouped:n,children:t}){return e(c,{spacing:n?"base":"large400",children:t})}function T({children:n}){const t=f("Checkout::Actions::RenderBefore");return e(l,{children:[e(m,{extensions:t,spacing:"base"}),e("div",{className:d.Actions,children:n})]})}function j({children:n}){const t=b({base:!0,medium:!1}),{setChatHideTriggerNode:r}=p(),{currentDetour:a}=_(),s=A(i=>{r(t&&a?.type!=="thankYou"&&i?i:null)},[t,a,r]);return e("div",{className:d.PrimaryAction,ref:s,children:n})}function E({children:n}){return e("div",{className:d.SecondaryAction,children:n})}function W(){const n=y(),{hasStorefront:t,contactEmail:r}=P(),a=S(),s=e(j,{children:e(o,{variant:"primary",size:"large",inlineSize:"fill",href:`mailto:${r}`,children:a("no_address_location.email_us_button_label")})}),i=t?e(E,{children:e(o,{href:n.cart(),variant:"plain",inlineSize:"fill",textDecoration:"none",children:[e(u,{above:"small",children:e(x,{spacing:"small400",blockAlignment:"center",children:[e(k,{type:"chevron-left",size:"small-200"}),e(h,{children:a("general.back_to_cart")})]})}),e(u,{below:"medium",children:e(h,{children:a("general.back_to_cart")})})]})}):null;return v({stage:C.Usable,id:"NoAddressLocation"}),e(l,{children:[e(B,{children:a("no_address_location.title")}),e(c,{spacing:"large500",children:[e(H,{status:"warning",children:[e(N,{children:a("no_address_location.header")}),e(R,{color:"subdued",children:a("no_address_location.message")})]}),e(M,{children:(s||i)&&e(T,{children:[s,i]})})]})]})}const D=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));function O(n){const t=z(),r=n.href?"span":l,{pixelId:a,...s}=n;return e(r,{ref:s.href?t(a):void 0,children:e(o,{...s,ref:s.href?void 0:t(a)})})}export{O as B,D as N,M as P,w as a,T as b,j as c,E as d};