1import{u as e,S as i}from"./2c1ab0fe.D_oO1jU7.js";import{H as n,a5 as t,n as r,b as o,L as s,a8 as a,aZ as l,a_ as c,a$ as d,c as m,b0 as u,B as p,ad as h}from"./164ad2e3.DgUUtBtV.js";import{O as y,ba as v,bb as f,n as P}from"./4c290a1e.D9lE9kmU.js";import{L as b}from"./f1968089.4OkuMKtQ.js";import{h as _}from"./65f3d4da.8ZfwXSRH.js";import{u as T,S as x,B as C}from"./347b440c.oWH9qB5Z.js";import{u as g,m as L}from"./181d38d3.Bsy-Yqp4.js";import{S}from"./31cc568e.CsDC1k63.js";import"./app.bDJ3v-8C.js";function D({id:i}){const{i18n:t}=y();return v().value?null:e(n,{level:1,autoFocus:!0,id:i,children:t.translate("review.review_title")})}function I({isVaultedReview:n=!1}){const{i18n:s}=y();if(n&&!_("review.review_notice_html",s))return null;const a=e(t,{children:s.translate("review.review_notice_html",{terms_of_sale:e(b,{handle:"terms-of-sale"}),privacy_policy:e(b,{handle:"privacy-policy"}),terms_of_service:e(b,{handle:"terms-of-service"}),refund_policy:e(b,{handle:"refund-policy"}),contact_information:e(b,{handle:"contact-information"}),purchase_options_cancellation_policy:e(b,{handle:"purchase-options-cancellation-policy"}),subscription_policy:e(b,{handle:"subscription-policy"}),shipping_policy:e(b,{handle:"shipping-policy"}),legal_notice:e(b,{handle:"legal-notice"})})});return n?e(i,{children:[e(r,{color:"subdued",size:"small",children:a}),e(o,{blockSize:"@media (inline-size >= medium) large-200, small-300"})]}):a}function j({vatNumber:i,onAdd:n}){return i?e(A,{vatNumber:i}):e(w,{onAdd:n})}function A({vatNumber:i}){const{i18n:n}=y();return e(r,{color:"subdued",children:n.translate("taxes.vat_number.vaulted",{number:i})})}function w({onAdd:i}){const{i18n:n}=y();return e(s,{onClick:i,textDecoration:"none",children:n.translate("taxes.vat_number.add")})}function E({deliveryLines:e}){const{i18n:i,shop:{asyncDeliveryPromiseExperienceEnabled:n}}=y(),{selectedMacro:t}=a(),{deliveryExpectationLines:r}=T(),o=f("deliveryExpectations"),s=l(),m=g(),u=function(e){return e.reduce(((e,i)=>{if("available"!==i.status||"ONE_TIME_PURCHASE"!==i.type)return e;const n=P(i);return"SHIPPING"!==n?.methodType&&"LOCAL"!==n?.methodType||e.push(n),e}),[])}(e??[]);if(!t||u.length<2)return;const p=c({selectedMethods:u,deliveryExpectationLines:r??[],deliveryPromiseText:t.deliveryPromisePresentmentTitle?.short}),h=Boolean(n)&&d(u)&&o.value,v=L(u),b=function({deliveryPromiseLoading:e,shopPromiseSummary:i,formattedTimeInTransit:n,selectedMacroDeliveryPromiseText:t}){if(!e)return i?i.deliveryPromiseText:n||t}({deliveryPromiseLoading:h,shopPromiseSummary:p,formattedTimeInTransit:(v?s(v):void 0)??void 0,selectedMacroDeliveryPromiseText:t.deliveryPromisePresentmentTitle?.long}),_=m.value.groups.length,x=function({i18n:e,deliveryLines:i,shipmentCount:n}){return function(e){return e.some((({status:e,type:i})=>"available"===e&&"SUBSCRIPTION"===i))}(i)?e.translate("shipping.split_shipping_multiple_shipment_label"):n<=1?void 0:e.translate("shipping.split_shipping_multiple_shipment_quantity_label",{quantity:n})}({i18n:i,deliveryLines:e??[],shipmentCount:_>0?_:u.length});return{totalTitle:t.totalTitle,totalCost:t.totalCost,totalCostAfterDiscounts:t.totalCostAfterDiscounts,deliveryPromiseText:b,...x&&{shipmentCountText:x},...p?.brandedPromise&&{deliveryPromiseBrandedPromise:p.brandedPromise},...h&&{deliveryPromiseLoading:h}}}function B({summary:i}){return e(S,{methodTitle:i.totalTitle,showInterpunct:!0,price:e(x,{cost:i.totalCost,costAfterDiscounts:i.totalCostAfterDiscounts,inlineDiscount:!0})})}function N({summary:i,secondaryContentColor:n}){return i.deliveryPromiseLoading||i.deliveryPromiseText||i.shipmentCountText?e(m,{direction:"@media (inline-size >= extraSmall) inline, block",columnGap:"small-400",alignItems:"baseline",children:[e(z,{summary:i,secondaryContentColor:n}),i.shipmentCountText?e(r,{color:n,children:i.shipmentCountText}):null]}):null}function z({summary:n,secondaryContentColor:t}){const o=n.shipmentCountText?e(p,{display:"@media (inline-size >= extraSmall) auto, none",children:e(r,{color:t,accessibilityVisibility:"hidden",children:u})}):null;
1return n.deliveryPromiseLoading?e(i,{children:[e(h,{inlineSize:"base"}),o]}):n.deliveryPromiseText?e(i,{children:[e(m,{direction:"inline",gap:"small-300",alignItems:"center",children:[e(r,{color:t,children:n.deliveryPromiseText}),n.deliveryPromiseBrandedPromise?e(C,{brandedPromise:n.deliveryPromiseBrandedPromise}):null]}),o]}):null}function M(){return e("span",{"aria-hidden":"true",className:"yh3r740",children:"·"})}export{A as D,M,D as R,B as S,j as V,N as a,I as b,E as u};
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.