1import{z as i,m as e,t as s,u as t,S as r,w as a,F as m}from"./2c1ab0fe.GMbxnz74.js";import{ac as o,ad as n,o as p,J as l}from"./164ad2e3.BbIvMjRY.js";import{S as h}from"./f8706cb6.DdvEXEb-.js";import{S as d}from"./0727407f.CsUvC--9.js";import{S as f}from"./347b440c.C7wvTwkm.js";import{S as c,T as j,aE as b,aF as u}from"./4c290a1e.C6TDJ9Fn.js";import{g as T,a as g}from"./0e4087ec.BozHSIap.js";import{D as L}from"./f49d4216.BS85dmZ4.js";import"./9f047e05.CCJUgz_L.js";import"./app.CepNJbvh.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";import"./dffdfb34.CC5iYpqj.js";import"./31cc568e.eY_zQ4dB.js";import"./0c0ad074.A9YqaSW6.js";import"./cb38e5c2.DHRUgYmP.js";import"./53bbdad9.CGJC_1cv.js";import"./945a08d6.BXUdjYDL.js";import"./2fdb3dd3.YdlRJDkL.js";import"./0e67bd3b.rrDC0LWO.js";import"./74835653.CRP9zX7D.js";import"./29034f35.BtTRppF-.js";import"./ac5a19ff.CRrh5Bdw.js";import"./47b970b2.hK1atmf1.js";import"./064f6ac1.B1U3VPaO.js";import"./efa0389a.Cyj781OI.js";import"./f1968089.C3ZYp3_Z.js";import"./55098bf1.CKQdNNxq.js";import"./cb5cf153.bw-I465_.js";import"./e3e348f2.tCxUo2up.js";import"./ca5e9c49.BT49yYQL.js";import"./ed9f2238.D-8_6d2f.js";import"./ccdf3592.CGA4lGQ3.js";import"./a422df8c.BXxALpKm.js";import"./79974aab.hHH-4idQ.js";import"./7b0c98ea.CqdLBMXo.js";import"./d22d2b80.DxyGtOjJ.js";import"./0e9ee714.BA_VwDAk.js";import"./39921a74.CJtpdeBf.js";import"./e477f96c.BxtSUGa4.js";import"./ec391382.3QXLMag7.js";import"./f3fe2775.BSk1ex1h.js";import"./598fef4e.Bhe6r8fJ.js";import"./e77f7fe0.xbyxUO7Z.js";import"./cc6ff67d.CUDxlVK0.js";import"./08a3b809.BxtDOfoo.js";import"./bff2ff9b.Wb1R3ZbF.js";import"./87bfafec.B2XXZnjV.js";import"./e39bc11c.BPwkTsU-.js";import"./cf29e63b.ByW6Fn7D.js";import"./dfca5da5.BFrL439g.js";import"./6720fa5f.Dt8m7rOm.js";import"./01973ac7.BeRwXye5.js";import"./58314944.1jO_vh_4.js";import"./7a8217fd.CuaDs8we.js";import"./2b89a178.BDUoZw0Z.js";import"./b684bff6.BpL4wH2U.js";import"./910cd6e2.Bo65wEs8.js";import"./181d38d3.Ty4Mx6im.js";import"./d6447d9e.BzCGA_q1.js";import"./f51e663e.OfMKRQgE.js";import"./64de7b49.BK-M1NIF.js";import"./8e79be58.wwMOsjg7.js";import"./90e26f5f.Cw5CUJLD.js";import"./d5d34b3b.81uMJHYl.js";
1import"./f3e117aa.VqIXr3nP.js";import"./a25deb9a.DBfpGDzj.js";function v(){const{i18n:v}=c(),w=j().deliveryNext,{selectedMacro:y}=o(),x=i(y),D=L.usePreload();e(()=>{D()},[]);const P=s(()=>{if("filled"!==w.value?.status)return;const i=b(w.value.lines).filter(u),{oneTimePurchaseLines:e}=n(i),{buyWithPrimeLines:s,shipsNowLines:t,shipsLaterLines:r}=T(i),a=e.length>5?x.value:void 0;return{buyWithPrimeLines:s,hideThumbnail:1===e.length,selectedMacro:a,shipsByDateLines:g(i),shipsLaterLines:r,shipsNowLines:t}}),S=s(()=>P.value?.selectedMacro),N=s(()=>{const i=P.value;if(i?.buyWithPrimeLines?.length)return{hideThumbnail:i.hideThumbnail,lines:i.buyWithPrimeLines}}),_=s(()=>{const i=P.value;if(i?.shipsNowLines?.length)return{hideThumbnail:i.hideThumbnail,lines:i.shipsNowLines}}),M=s(()=>{const i=P.value;if(i?.shipsLaterLines?.length)return{hideThumbnail:i.hideThumbnail,lines:i.shipsLaterLines,shippingTime:v.translate("shipping.pre_order_ships_later")}}),W=s(()=>{const i=P.value;return i?(i.shipsByDateLines??[]).flatMap(([e,s])=>s.length?[{dateString:e,hideThumbnail:i.hideThumbnail,lines:s,shippingTime:v.translate("shipping.pre_order_ships_date",{date:v.formatDate(new Date(e),{timeZone:"UTC",month:"short",day:"numeric"})})}]:[]):[]});return P.value?t(a,{when:S,fallback:t(l,{gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",gap:"small-200",children:[t(a,{when:N,children:({hideThumbnail:i,lines:e})=>t(h,{lines:e,hideThumbnail:i})}),t(a,{when:_,children:({hideThumbnail:i,lines:e})=>t(h,{lines:e,hideThumbnail:i})}),t(a,{when:M,children:({hideThumbnail:i,lines:e,shippingTime:s})=>t(h,{lines:e,shippingTime:s,hideThumbnail:i})}),t(m,{each:W,getKey:i=>i.dateString,children:({hideThumbnail:i,lines:e,shippingTime:s})=>t(h,{lines:e,shippingTime:s,hideThumbnail:i})})]}),children:({cost:i,costAfterDiscounts:e,title:s,deliveryPromisePresentmentTitle:a})=>t(r,{children:[t(d,{methodTitle:s,showInterpunct:!0,price:t(f,{cost:i,costAfterDiscounts:e,styleOverrides:{textSize:"small",freeTextLetterCase:"uppercase",costSpacing:"none"}})}),a?t(p,{color:"subdued",children:a.long}):null]})}):null}export{v 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.