PageSourceSearch

https://df-sportspecialist.it/cdn/shopifycloud/checkout-web/assets/c1/78af98ed.D-_h8o-b.js

js df-sportspecialist.it collected 2026-10-05 20:50:27 UTC 21,405 bytes, 1 lines download raw bytes

1import{o as e,T as a,q as n,h as o,u as t,n as i,g as s,a7 as r,X as l,m as c,x as d,S as u,z as p,G as m}from"./2c1ab0fe.RaLGJvq2.js";import{ct as h,s as g,f3 as b,cy as f,bC as y,bB as v,S as k,aa as _,B as C,bz as P,c_ as x,t as w,ac as j,a0 as L,f4 as z,k as A,b as I,f as N,i as E,aQ as T,cz as S,ai as B,r as D,n as M,h as R,H as F,U as $,d as q,L as H}from"./164ad2e3.bPUx3Fg0.js";import{a as O,ek as U,b0 as V,aa as G,el as Q,m as X,a2 as W,b_ as Z,c0 as K,a$ as Y,em as J,a4 as ee,p as ae,en as ne,b9 as oe,eo as te}from"./f67abd2c.BTHhdhoM.js";import{u as ie}from"./160e80e7.CAka1iBR.js";import{P as se}from"./f49d4216.C5t-HE2u.js";import{A as re,q as le,r as ce,t as de}from"./dffdfb34.DK7dkdbm.js";import{u as ue,F as pe,a as me}from"./3ca8ef7e.mdJTe1BI.js";import{M as he}from"./74835653.2Ngy7fqB.js";import"./app.CPIYcwpp.js";import{b as ge}from"./efa0389a.4jo1XZ5U.js";import{C as be}from"./a422df8c.FHHIb5NR.js";import{u as fe}from"./4b1c22b7.DKftNOPJ.js";import{P as ye,m as ve,a as ke,M as _e}from"./be176b00.C_qyTMZU.js";import{s as Ce,g as Pe,l as xe}from"./8574876b.DO_JQrVo.js";import{a as we}from"./1f5e7811.CGsiidGr.js";import"./d0bb51ec.BIqtCEEY.js";import"./60a453ce.BHWO3gHr.js";import"./e12db40c.CeuzD2R-.js";import"./9dba8418.DCzpk36x.js";import"./1d34c07e.h4dJAaCz.js";import"./2fdb3dd3.uizSjgv6.js";import"./22345fd4.BOPeNj8v.js";import"./0e67bd3b.fkjEM38r.js";import"./17425706.BWBJtbgF.js";import"./47b970b2.D1oAm8Vb.js";import"./a9fa9fda.D5UMnVmk.js";import"./ca3e798e.BWruLT5k.js";import"./55098bf1.lh4L-ucv.js";import"./cb5cf153.CVsZHWNg.js";import"./e3e348f2.C3lLf8U0.js";import"./71ae3d5c.CamNwqhE.js";import"./cb38e5c2.Dby2tR8W.js";import"./78ab3dd0.DVuP3OIA.js";import"./ed9f2238.LhdxRD0S.js";import"./6fb6f9d8.mMYN8LPf.js";import"./1444e6bd.3dT0WTfN.js";import"./0b8657b8.Y8zWLzWx.js";import"./79974aab.BHkkF4M9.js";import"./2495faa4.DD6nJl2C.js";import"./7b0c98ea.C5VPaglw.js";import"./d22d2b80.ER9F2GsD.js";import"./064f6ac1.TjWXwVYS.js";import"./17e57de1.BQ0yd3rN.js";const je=w("AutocompleteSingleAddressField");function Le({onSearch:s,loading:r,addressAutoFocus:l}){const c=e(""),{i18n:d,observability:u,shop:{shippingCountries:p},checkout:{negotiator:m}}=O(),{geolocation:w}=h(),{locationAddress:j}=m.parts,L=a(()=>U({countryCode:void 0,address:void 0}),[]),z=V(j.fields.countryCode,L.countryCode),{details:A,loading:I}=G(z.value),N=Q(),E=a(()=>A??w.country,[A,w.country]),T=L.address.value,S=a(()=>p?.length?p:[{value:E.code,label:E.name}],[p,E]),B=I||r,D=g(void 0,je),M=d.translate("pickup_point.search_button"),R=d.translate("pickup_point.address_label"),F=n(e=>X(e,E,["company","firstName","lastName","phone","countryCode","zoneCode"]),[E]),$=j.value,q=c.value;o(()=>{z.value&&N("auto-selected",z.value,"pickupPoint")},[]),o(()=>{const e=j.value;c.value=F(e)},[j,F,c]);const H=b(j);!function(e,a){const{i18n:n,observability:o}=O();Z(async({reason:t})=>{if("negotiation"===t)return{behavior:"allow"};const s=e.peek(),r=new Map;return s.coordinates||r.set("address",n.translate("field_errors.address_address1_blank")),K(s.countryCode)||r.set("countryCode",n.translate("field_errors.address_country_blank")),r.size?(o.leaveErrorBreadcrumb("Blocking address errors",{errors:Array.from(r).map(([,e])=>e)}),{behavior:"block",reason:Y.InvalidLocalPickupAddress,perform:()=>{i(()=>{for(const[e,n]of r)a[e].value=n})}}):{behavior:"allow"}})}(j,L);const J=E.zones,ee={errors:L,state:{countryCode:j.fields.countryCode,address:c}},ae=ue()?.checkoutProfile.hasOverrides.value;return t(x,{target:"cart.deliveryGroups[0].deliveryAddress",children:t(f,{...ee,children:t(pe,{children:[t(me,{children:t(he,{interactive:!ae,children:t(y,{name:"countryCode",label:E.labels.country,required:!0,autocomplete:"shipping country-name",readOnly:r,...z,onChange:e=>(e=>{H({countryCode:e}),L.address.value=void 0,N("user-input",e,"pickupPoint")})(e),children:S.map(e=>t(v,{value:e.value,children:e.label},e.value))})})}),t(k,{gap:"small-400",children:[t(_,{gap:"small-400 base",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridAutoColumns:"1fr",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",children:[t(re,{addressType:"pickup",autoFocus:l,address:$,error:Boolean(T),country:E,name:"location address",id:D,label:R,onSelect:e=>{const a=W(e.countryCode),n=Boolean(e.countryCode&&!a);
1n&&u.leaveErrorBreadcrumb("Discarded invalid autocomplete countryCode",{invalidCountryCode:e.countryCode,fallbackCountryCode:z.value});const o=n?{...e,countryCode:z.value}:{...e,countryCode:a};c.value=F(o),H(o)},value:q,onInput:e=>{e?L.address.value=void 0:c.value=""},onChange:e=>c.value=e,field:"address1",allowAllCountries:!0}),t(C,{variant:"primary",disabled:Boolean(!$.coordinates||!q),onClick:()=>{J.length||($.zoneCode=void 0),s($)},loading:B,children:M})]}),T&&t(P,{controlID:D,children:T?.message??T})]})]})})})}var ze="qbjoned _1fragemz0";const Ae=w("Tabs"),Ie=l(null);function Ne({tabs:e,selected:i,ariaLabel:l,onChange:c,children:d}){const u=g(void 0,Ae),p=s(null),m=e.length-1,h=r.count(d),b=n(e=>{const a=i-1<0?m:i-1,n=i+1>m?0:i+1,o=new Map([["ArrowLeft",a],["Left",a],["ArrowRight",n],["Right",n],["Home",0],["End",m]]).get(e.key);null!=o&&(e.preventDefault(),c(o))},[c,i,m]);o(()=>{const{current:e}=p;if(null!=e)return e.addEventListener("keydown",b,!1),()=>{e.removeEventListener("keydown",b,!1)}},[p,b]),o(()=>{h!==e.length&&console.warn(`<Tabs /> has ${e.length} tabs and ${h} children. A mismatch will cause some content to be unavailable.`)},[h,e.length]);const f=[],y=[];r.forEach(d,(a,n)=>{const o=e[n];if(null!=o){const{label:e,icon:a}="string"==typeof o?{label:o,icon:void 0}:o;f.push(t(Ee,{label:e,icon:a,selected:i,onChange:c,id:u,index:n},e))}y.push(t(Te,{index:n,children:a}))});const v=a(()=>({id:u,selected:i}),[u,i]);return t(Ie.Provider,{value:v,children:t("div",{className:"qbjone5",children:[t("div",{ref:p,role:"tablist","aria-label":l,className:"qbjone7 qbjone6 _1fragem64 _1fragemy6 _1fragem133 _1fragem1y",children:f}),y]})})}function Ee({label:e,icon:a,index:n,selected:i,onChange:r,id:l}){if(null==n)throw new J("`index` is missing");const d=s(null),u=s(!1),p=i===n,m=null==a?e:t(k,{direction:"inline",gap:"small-400",alignItems:"center",children:[t(L,{type:a}),t("span",{children:e})]}),h=j();return o(()=>{d.current&&p&&u.current?d.current.focus():u.current=!0},[d,p]),t("button",{type:"button",role:"tab","aria-selected":p,id:`${l}Tab${n}`,"aria-controls":`${l}TabPanel${n}`,onClick:()=>r(n),className:c("qbjone9 qbjone8 _1fragempu _1fragemrn _1fragemo1 _1fragemtg _1fragemws _1fragem64 _1fragembj _1fragem19 _1fragemyk",p&&"qbjonea",h&&ze),ref:d,tabIndex:h?-1:p?0:-1,"aria-hidden":!!h||void 0,children:m})}function Te({index:e,children:a}){const{selected:n,id:o}=function(){const e=d(Ie);if(null==e)throw new J("No tabs found in context");return e}(),i=n===e,s=j();return t("div",{role:"tabpanel",id:`${o}TabPanel${e}`,"aria-labelledby":`${o}Tab${e}`,hidden:!i,className:c("qbjonec qbjoneb _1fragemy6 _1fragem133",s&&ze),children:a})}function Se(){const{shop:e}=O(),{rowsInset:a}=z(),{main:{section:n}}=A();return!e.hasFlagEnabled(ee)||a?le(void 0):le(n?.padding)}const Be="BONgC";function De({page:e,pageCount:a,currentPageLabel:o,onPageChange:i,firstPage:s=1}){const{i18n:r}=O(),l=n(a=>()=>{i(e+a)},[e,i]),c=e<=s,d=e>=a+s-1;return t("div",{className:"Ak386",children:[t("div",{className:Be,children:t(C,{onClick:l(-1),disabled:c,variant:"plain",inlineSize:"fill",accessibilityLabel:r.translate("pickup_point.paginator.previous_accessibility_label"),children:t(L,{type:"arrow-left"})})}),t(I,{className:"IKBAC",accessibilityRole:"status",children:t(N,{children:o})}),t("div",{className:Be,children:t(C,{onClick:l(1),disabled:d,variant:"plain",inlineSize:"fill",accessibilityLabel:r.translate("pickup_point.paginator.next_accessibility_label"),children:t(L,{type:"arrow-right"})})})]})}function Me({businessHours:e}){const{i18n:a}=O();return t(k,{gap:"small-400",children:e?t(u,{children:[t(N,{type:"small",children:t(E,{type:"strong",children:a.translate("pickup_point.business_hours")})}),t(Re,{businessHours:e})]}):t(N,{type:"small",color:"subdued",children:a.translate("pickup_point.no_business_hours")})})}function Re({businessHours:e}){const n=T(),{i18n:o}=O(),{geolocation:i}=h(),s=a(()=>Ce(i?.country.code),[i]),r=Pe(s),l={};if(r.forEach(a=>{l[xe[a]]=e.filter(e=>e.day===xe[a].toUpperCase())}),r.every(e=>{const a=l[xe[e]];return 1===a.length&&"00:00"===a[0].openingTime&&"23:59"===a[0].closingTime}))return t(E,{size:"small",color:"subdued",children:o.translate("pickup_point.open_twenty_four_hours")});const c=[];
1return r.forEach(e=>{if(c.push(t(E,{size:"small",children:[n(xe[e].toLowerCase()),":"]},`${xe[e]}-day`)),0===l[xe[e]].length)c.push(t(E,{size:"small",children:o.translate("pickup_point.location_is_currently_closed")},`${xe[e]}-closed`));else{let a="";l[xe[e]].forEach(e=>{a=`${a}${""===a?"":", "}${e.openingTime} - ${e.closingTime}`}),c.push(t(E,{size:"small",children:a},`${xe[e]}-hours`))}}),t(_,{gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gap:"none base",children:c})}const Fe="k0DAZ",$e="tqSRi";function qe({pickupPoint:e,displayExtraDetails:a}){const{i18n:n}=O(),o=fe(),{pickupLocation:i}=e,s=S(i.address,{hiddenFields:["countryCode"]}),r=!i.fromDeliveryOptionGenerator,l=0===e.cost.amount?"uppercase":void 0;return t(k,{gap:"small-100",children:[t(_,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 75%) minmax(0, 25%)",gridTemplateRows:"minmax(0, 1fr)",gap:"small-400",children:[t(k,{gap:"small-500",children:[t(k,{children:[t(N,{children:o?t(E,{type:"strong",children:t("span",{className:c(Fe,r&&$e),children:r?i.name?.toLowerCase():i.name})}):t("span",{className:c(Fe,r&&$e),children:r?i.name?.toLowerCase():i.name})}),t(N,{color:o?void 0:"subdued",type:"small",children:t("span",{className:r?$e:void 0,children:r?s?.toLowerCase():s})})]}),t(ye,{pickupLocation:i})]}),t(k,{children:t(N,{textAlign:"end",children:t(E,{letterCase:l,type:"strong",children:(d=e.cost.amount,u=e.cost.currencyCode,0===d?n.translate("shipping.free_rate_label"):n.formatCurrency(d,{form:"short",currency:u}))})})})]}),a&&t(Me,{businessHours:i.businessHours})]});var d,u}function He({pickupPoints:e,index:i,displayExtraDetails:s}){const{i18n:r}=O(),l=Se(),{selectedPickupPoint:c,setProposedPickupPoint:d}=ie(),u=n(([e=""])=>{d({pickupPointHandle:e})},[d]),m=c?.handle,h=a(()=>m?[m]:[],[m]),g=n(a=>{const n=e.findIndex(e=>e.handle===a);return Math.floor(n/6)+1},[e]),[b,f]=p(m?g(m):1),y=n(e=>{f(e)},[]),v=a(()=>e.slice(6*(b-1),6*b),[e,b,6]),k=Math.ceil(e.length/6),_=6*(b-1)+1,C=Math.min(6*b,e.length);o(()=>{m&&f(g(m))},[m,g,i]);const P=0===e.length?r.translate("pickup_point.no_pickup_points_found"):r.translate("pickup_point.paginator.header",{first:_,last:C,count:e.length}),x=0===e.length?r.translate("pickup_point.no_pickup_points_found"):r.translate("pickup_point.paginator.selected_page",{first:_,last:C,count:e.length});return t("div",{className:"ErqSa",children:t(be,{name:"pickup-points-choice-list",values:h,onChange:u,itemPadding:l,children:[t(I,{padding:"small-100",borderWidth:"none none base none",accessibilityRole:"status",children:t(N,{textAlign:"center",children:P})}),v.map(e=>t(ge,{value:e.handle,children:t(qe,{pickupPoint:e,displayExtraDetails:Boolean(s&&e.handle===m)})},e.handle)),t(I,{borderRadius:"none none base base",children:t(De,{page:b,pageCount:k,currentPageLabel:x,onPageChange:y})})]})})}const Oe={colissimo:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-colissimo.1yFHbzUT.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-colissimo.C-XQBcDy.svg"},correos:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-correos.DHRxeQWp.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-correos.BZokoSyh.svg"},mondial_relay:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-mondial-relay.04frVi7X.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-mondial-relay.DFe24aCF.svg"},chronopost:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-chronopost.TKRkq9_v.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-chronopost.DPQXXY3U.svg"},hermes_uk:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-evri.WlT4T36l.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-evri.DReFb6kT.svg"},poste_italiane:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-poste-italiane.DfqidTJc.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-poste-italiane.DvDScNXR.svg"},royal_mail:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-royal-mail.Dc9nPZcO.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-royal-mail.DxmaQMQN.svg"},dhl_germany:{mapLogo:"/cdn/shopifycloud/checkout-web/assets/c1/assets/map-carrier-
1dhl-germany.3lasOaUi.svg",pin:"/cdn/shopifycloud/checkout-web/assets/c1/assets/pin-carrier-dhl-germany.BLjj-dhz.svg"}},Ue=[{horizontal:15,vertical:0},{horizontal:-15,vertical:0},{horizontal:0,vertical:-15},{horizontal:0,vertical:-15}],Ve={drag_end:"checkout_pickup_point_map_dragend"};function Ge({onPickupPointSelect:e}){const{i18n:a,checkout:{negotiator:n}}=O(),o=we(),{pickupPoints:i,selectedPickupPoint:s}=ie(),{trackPickupPointMapInteraction:r}=function(e){const{source:a,userEvents:n,shop:{id:o},checkout:{identity:t,negotiator:i}}=O(),s=i.current.fields.buyerIdentity.value?.customerProfile,r=function(e){return"shopPay"===e.current.value?"shop_pay":"guest_checkout"}(t);return{trackPickupPointMapInteraction:function(t){n.monorailEvent({schemaId:"local_pickup_checkout/3.1",payload:{checkoutToken:a.checkoutSessionIdentifier||"",eventType:Ve[t],shopId:parseInt(ae(o),10),numberLocationsFound:e,userId:s?.id?parseInt(ae(s.id),10):void 0,checkoutSurface:r}})}}}(i.length),l=s?.handle,{locationAddress:c}=n.parts,d=c.fields.coordinates.peek(),u=[],p=i.map((e,a)=>{const n=e.pickupLocation,o=l===e.handle,t=(i=n.carrierCode,Boolean(Oe[i]));var i;const s=o?function(e,a){return e?function(e){return Oe[e]?.pin}(a.carrierCode):"/cdn/shopifycloud/checkout-web/assets/c1/assets/default-selected-pin.fbcUsoX1.svg"}(t,n):function(e,a){return e?function(e){return Oe[e]?.mapLogo}(a.carrierCode):a.carrierLogoUrl}(t,n),r=o?{width:68,height:78}:t?{width:40,height:40}:{width:30,height:30},c={latitude:n.address.coordinates?.latitude||0,longitude:n.address.coordinates?.longitude||0},d=function(e,a){const n={latitude:0,longitude:0},o=a.filter(a=>Math.abs(a.latitude-e.latitude)<.002&&Math.abs(a.longitude-e.longitude)<.002).length;if(0===o)return n;const t=Math.min(o,Ue.length)-1,i=Ue[t];return n.longitude=i.horizontal/1e3/6378*(180/Math.PI)/Math.cos(e.latitude*Math.PI/180),n.latitude+=i.vertical/1e3/6378*(180/Math.PI),n}(c,u);return u.push(c),{title:n.name,label:n.carrierName,blockInfoWindow:!0,position:{lat:c.latitude+d.latitude,lng:c.longitude+d.longitude},zIndex:o?1001:0,image:s,style:r,id:e.handle,notInBounds:!o&&a>5,clusterable:!o}}),m={lat:d?.latitude??0,lng:d?.longitude??0};p.push({id:"buyer",image:"/cdn/shopifycloud/checkout-web/assets/c1/assets/buyer-pin.BsPJAGmj.svg",notInBounds:!1,position:m,style:{width:36,height:36},blockInfoWindow:!0,clusterable:!1,zIndex:1e3});const h={clustererOptions:{averageCenter:!0,clusterClass:"pickup_point_map__cluster",styles:{height:32,width:32,textColor:"#ffffff",textSize:16,textLineHeight:32,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"}},mapOptions:{gestureHandling:"greedy",scrollwheel:!0,center:p.find(e=>e.id===l)?.position||m,boundsPadding:0,panToCenter:!0,maxZoom:19,styles:o?ve:ke}},g=a.translate("delivery_options.pickup_point_map_title");return t(_e,{className:"VVdZM",markers:p,title:g,onMarkerSelect:e,options:h,blockSize:286,handleDragEnd:()=>r("drag_end")})}function Qe({negotiating:e}){const{i18n:o,shop:i}=O(),s=Se(),r=i.hasFlagEnabled(ne),[l,c]=p(r?1:0),[,d]=p(null),{selectedPickupPoint:u,pickupPoints:m,setProposedPickupPoint:h}=ie(),g=n(e=>{h({pickupPoint:m[e-1]}),d(m[e-1]?.handle)},[h,m]),b=n(e=>{const a=String(e);h({pickupPointHandle:a}),d(a)},[h,d]),f=u,y=a(()=>m.findIndex(e=>e.handle===f?.handle)+1,[m,f?.handle]);if(e)return t(se,{text:o.translate("pickup_point.waiting_on_pickup_point_location_notice")});const v=0===m.length?o.translate("pickup_point.no_pickup_points_found"):o.translate("pickup_point.paginator.selected_pickup_point_label",{pickup_point_index:y,count:m.length}),k=m.some(({pickupLocation:e})=>e.businessHours);return t(Ne,{tabs:[{label:o.translate("pickup_point.selector_tab_map"),icon:"map"},{label:o.translate("pickup_point.selector_tab_list"),icon:"list-bulleted"}],selected:l,onChange:c,ariaLabel:o.translate("pickup_point.selector_tabs"),children:[t(I,{children:[t(Ge,{onPickupPointSelect:b}),t(De,{page:y,pageCount:m.length,currentPageLabel:v,onPageChange:g}),t(B,{}),f&&t(I,{padding:s,children:t(qe,{pickupPoint:f,displayExtraDetails:k})})]}),t(He,{pickupPoints:m,index:l,displayExtraDetails:k})]})}function Xe({heading:i="auto"}){const{i18n:r,checkout:{negotiator:l}}=O(),{geolocation:c}=h(),d=s(!1),g=r.translate("pickup_point.title"),f=r.translate("pickup_point.or"),[y,v]=p(!1),C=e(!1),P=C.value,{locationAddress:w}=l.parts,j=w.peek(),L=b(w),{negotiate:z}=D(),{pickupPoints:A,setProposedPickupPoint:I}=ie(),T=A.length>0&&Boolean(j.coordinates)&&Boolean(j.countryCode),[S,B]=p(T?2:1),[U,V]=p(!T),{value:G}=l.current.fields.allViolations,{value:Q}=l.current.fields.deliveryNext,X=l.current.fields.merchandiseLines,W=r.translate("pickup_point.pickup_unavailable_banner_title",{count:X.value?.lines.length??0}),K=r.translate("pickup_point.could_not_resolve_address"),J="unavailable"===Q?.status&&G?.some(({code:e})=>"DELIVERY_NO_DELIVERY_STRATEGY_AVAILABLE"===e)?W:void 0,[ee,ae]=p(J),ne=e(Boolean(j.coordinates&&j.countryCode)&&
10===A.length),re=ne.value,le=M("Checkout::PickupPoints::RenderBefore"),ue=M("Checkout::PickupPoints::RenderAfter"),pe=a(()=>({isLocationFormVisible:1===S}),[S]),me=n(e=>{ae(a=>a===e?void 0:a)},[ae]);o(()=>(d.current=!0,()=>{d.current=!1}),[]);const he=n(()=>{V(!1),ne.value=!0,z({legacyFiltering:{include:["deliveryNext"],silenceViolations:["delivery-method"]},fieldsToResolve:["deliveryNext"],silenceViolations:[...oe],onComplete:e=>{switch(e.status){case"success":case"error":if(d.current&&(ne.value=!1,e.negotiated.deliveryNext))switch(e.negotiated.deliveryNext.status){case"filled":case"partial":e.negotiated.deliveryNext.lines.length>0?(B(2),C.value=!0,me(W)):(ae(W),B(1),C.value=!1);break;case"unavailable":ae(W),B(1),C.value=!1;break;default:m(e.negotiated.deliveryNext)}break;case"fetch_failed":case"invalid":case"stale":case"denied":case"throttled":case"tooManyRequests":case"alreadyCompleted":break;default:m(e)}}})},[C,z,ne,W,me]);o(()=>{j.coordinates&&j.countryCode&&U&&(A&&A.length>0?(B(2),C.value=!0):he())},[B,j,he,A,U,C]);const ge=n(e=>{te(e)?(me(K),L({zoneCode:c.zone?.code,countryCode:c.country.code,coordinates:{latitude:e.coords.latitude,longitude:e.coords.longitude}}),he()):ae(K)},[c,L,he,ae,me,K]),be=n(({zoneCode:e,countryCode:a,coordinates:n,address1:o,address2:t,city:i,postalCode:s})=>{ae(void 0),L({zoneCode:e,countryCode:a,coordinates:n,address1:o,address2:t,city:i,postalCode:s}),n?(he(),me(K)):ae(K)},[K,L,he,me]);!function(e){const{observability:a}=O();Z(async({reason:n})=>"negotiation"===n||e?{behavior:"allow"}:(a.leaveErrorBreadcrumb("No pickup points available"),{behavior:"block",reason:Y.NoPickupPointsAvailable,perform:()=>{}}))}(A.length>0);const fe=n(()=>{ae(void 0)},[]);return t(x,{target:"cart.deliveryGroups[0].deliveryAddress",children:t(R,{accessibilityLabel:g,children:t(k,{gap:"small-400",children:["auto"===i&&t(F,{level:2,autoFocus:P,children:g}),"text"===i&&t(E,{color:"subdued",children:g}),t($,{customizations:le,options:pe,render:e=>t(k,{padding:"small-500 none none none",gap:"small-100",children:e})}),1===S&&!re&&t(u,{children:[t(q,{blockSize:"small-500"}),t(ce,{onSuccess:ge,onLocateStart:fe}),t(N,{textAlign:"center",color:"subdued",children:f}),t(Le,{loading:!1,onSearch:be,addressAutoFocus:y}),ee&&t(k,{gap:"base",padding:"small-200 none none none",children:t(de,{heading:ee})})]}),2===S&&!re&&t(u,{children:[t(_,{gap:"@media (inline-size >= medium) large-500, none",gridTemplateColumns:"@media (inline-size >= medium) 'minmax(0, 1fr) minmax(auto, max-content)', 'minmax(0, 1fr)'",gridAutoColumns:"@media (inline-size >= medium) 'minmax(0, 1fr) minmax(auto, max-content)', 'minmax(0, 1fr)'",justifyContent:"start",justifyItems:"start",alignItems:"start",alignContent:"start",gridTemplateRows:"minmax(auto, max-content)",gridAutoRows:"minmax(auto, max-content)",children:[t(N,{color:"subdued",children:0===A.length?r.translate("pickup_point.no_pickup_points_near_location"):r.translate("pickup_point.number_of_pickup_points_near_location",{count:A.length})}),t(H,{onClick:()=>{B(1),v(!0),C.value=!1,L({zoneCode:j.zoneCode,countryCode:j.countryCode,coordinates:void 0}),I({pickupPoint:void 0})},children:r.translate("pickup_point.change")})]}),t(Qe,{negotiating:re})]}),re&&t(u,{children:[t(q,{blockSize:"small-500"}),t(se,{text:r.translate("pickup_point.waiting_on_pickup_point_location_notice")})]}
1),t($,{customizations:ue,options:pe})]})})})}export{Xe as default};

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.