PageSourceSearch

https://bobo-balance.shop/cdn/shopifycloud/checkout-web/assets/c1/d6447d9e.DuZ8mMT3.js

js bobo-balance.shop collected 2026-10-01 14:22:13 UTC 8,702 bytes, 1 lines download raw bytes

1import{q as $,T as P,u as i,A as M,h as A,S as J,k as K,f as F,i as I}from"./2c1ab0fe.DYQSH7bT.js";import{b as B,a as Y}from"./efa0389a.BYXr6FgY.js";import{h as W,n as T,bZ as Z,P as X,p as k,U as w,c as x,cl as ee,H as ie,cQ as ne,A as te,W as re,a9 as se,cR as oe}from"./164ad2e3.BcELPLd1.js";import{C as ae}from"./a422df8c.CcpK1iW2.js";import{O as R,Q,P as V,bb as ce,N as le,cq as pe,bz as ue,ct as de}from"./4c290a1e.CvCmFIo_.js";import{D as he}from"./f49d4216.B2c0ey-R.js";import{a as z}from"./f51e663e.wy4ppBMI.js";import{u as ge,b as me}from"./64de7b49.D1DDpyTT.js";import{m as fe}from"./ac5a19ff.B7MskK0_.js";import{S as ye}from"./8e79be58.CmCgUsB_.js";import{c as U,S as Se}from"./31cc568e.C3-mS8Wp.js";import{S as ve,u as _e,E as Ce}from"./347b440c.DGDg8p-S.js";import{S as be}from"./90e26f5f.DJRE8zgu.js";const H="pay_now",G="pay_on_delivery",We=()=>{const{i18n:e}=R(),{negotiate:t}=W(),{optionalDuties:r}=Q(),o=$(()=>{r.value={buyerRefusesDuties:!r.value?.buyerRefusesDuties,refuseDutiesPermitted:!!r.value?.refuseDutiesPermitted},t({include:["deliveryNext","paymentLines"]})},[r,t]),{buyerRefusesDuties:s}=r.value||{},n=P(()=>[s?G:H],[s]);return i(ae,{name:"duty_options",values:n,onChange:o,children:[i(B,{value:H,details:i(T,{color:"subdued",children:e.translate("shipping.duties_and_taxes_options.ddp_caption")}),children:i(T,{children:e.translate("shipping.duties_and_taxes_options.ddp_title")})}),i(B,{value:G,details:i(T,{color:"subdued",children:e.translate("shipping.duties_and_taxes_options.ddu_caption")}),children:i(T,{children:e.translate("shipping.duties_and_taxes_options.ddu_title")})})]})},De={id:"4469203c73c7b5540585d432935fd7580de7198a6cb0754b76a9ecc56da9f00b",type:"query",name:"ShippingRatesStatus",source:""},Qe=e=>{const t=M(!1),r=M(!1),o=M(0),{graphql:{coreGraphql:s}}=R(),{value:n}=V().deliveryNext,c=ce("deliveryNext").value,{negotiate:l}=W();return A(()=>{r.current=c},[c]),A(()=>{let u;n&&n.status==="filled"&&n.intermediateRates&&n.shippingRatesStatusToken&&n.progressiveRatesEstimatedTimeUntilCompletion?(t.current=!0,o.current=n.progressiveRatesEstimatedTimeUntilCompletion):(t.current=!1,o.current=0);const a=async()=>{r.current||((await s.staticQuery(De,{variables:{token:n.shippingRatesStatusToken},cache:!1}))?.data?.shippingRatesStatus==="COMPLETED"?l({include:[],silenceViolations:["non-stock"],customizeNegotiation:p=>(p.delivery.useProgressiveRates=!1,p)}).finally(()=>{typeof e=="function"&&e()}).catch(p=>{throw p}):t.current&&(u=setTimeout(a,o.current)))};return t.current&&(u=setTimeout(a,o.current)),()=>u&&clearTimeout(u)},[e,s,l,n]),n?.status==="filled"&&n.intermediateRates};function Pe(e){const t=e[0];return e.length!==1||!t?!1:t.type==="SUBSCRIPTION"&&t.methods.some(r=>r.displayCheckoutRedesign)}const Re=({deliveryMethod:e})=>{const{i18n:t}=R(),{cost:r,costAfterDiscounts:o,priceBreakdown:s}=e;if(!s?.length||s.length>1)return null;const n=t.formatCurrency(o.amount,{currency:o.currencyCode}),[c]=s,l=c.excludeFromDeliveryOptionPrice,u=!c.targetMerchandiseLines[0]?.sellingPlan?.prepaid,{amount:a}=r,{amount:d}=o,p=u&&l?t.translate("shipping.subscription_delivery_description.shipping_price_included"):n;return a>d?i(ve,{cost:r,costAfterDiscounts:o}):i(T,{children:p})},Le=({priceBreakdown:e,discountedShippingPrice:t,sellingPlan:r,subscriptionDetails:o})=>{const{i18n:s}=R(),n=Z(),{deliveryInterval:c,billingIntervalCount:l,billingMaxCycles:u}=o,a=n(c,l),{amount:d,discountRecurringCycleLimit:p,excludeFromDeliveryOptionPrice:f}=e,v=s.formatCurrency(d.amount,{currency:d.currencyCode}),_=r.prepaid?y():C();function y(){return!u||u>1?D():h()}function C(){const g=`${v} ${a}`;return r.subscriptionDetails.billingMaxCycles===1?h():b()||L()?S(p,g):f?E(g):a}function D(){const g=`${v} ${a}`;return b()?S(p,g):f?E(g):`${O(r.deliveriesPerBillingCycle)} ${a}`}function h(){const g=m();return g>0?U(O(g)):""}function S(g=0,N){return[s.translate("shipping.subscription_delivery_description.free_for_first_n_order",{count:g}),E(N)].filter(j=>j.trim()!=="").join(", ")}function m(){return f&&!b()?r.deliveriesPerBillingCycle-1:r.deliveriesPerBillingCycle}function b(){return t.amount===0&&p!==void 0}function L(){return t.amount!==0&&t.amount<d.amount}function O(g){return s.translate("shipping.subscription_delivery_description.prepaid_delivery_frequency",{count:g})}function E(g){return s.translate("shipping.subscription_delivery_description.recurring_order_shipping_price",{recurring_order_shipping_price:g})}return i(X,{color:"subdued",type:"small",children:U(_)})},Te="LkR2o",we={SecondaryContentAligner:Te},xe=({deliveryMethod:e})=>{const{i18n:t}
1=R(),{deliveryExpectationLines:r}=_e(),o=k("Checkout::ShippingMethodDetails::RenderAfter"),s=k("Checkout::ShippingMethodDetails::RenderExpanded"),n=e?.handle??"",c=P(()=>[n],[n]),l=P(()=>({handle:n,isInModal:!1}),[n]);if(e==null)return null;const{title:u,priceBreakdown:a,costAfterDiscounts:d}=e;if(!a)return null;const p=a.every(h=>h.discountRecurringCycleLimit===0),f=!p&&a.length===1;function v(h){const S=h.targetMerchandiseLines[0]?.sellingPlan;return S?.subscriptionDetails?i(Le,{priceBreakdown:h,discountedShippingPrice:d,sellingPlan:S,subscriptionDetails:S.subscriptionDetails}):null}const _=(h,S,m)=>{const b=!h&&S.length>1,L=m.length>0;return!b&&!L?null:i(x,{gap:"large-200",children:[b&&i(be,{deliveryMethod:e}),L&&i(w,{customizations:m,options:l})]})},y=e.methodType==="LOCAL"?t.translate("shipping.local_delivery"):u,C=o.length>0,D=r?.find(h=>h.deliveryStrategyHandle===e.handle);return i("fieldset",{children:[i("legend",{className:le({screenReaders:"only"}),children:t.translate("general.choose_shipping_method")}),i(Y,{name:"subscription_shipping_method",variant:"block",values:c,onChange:()=>{},hideRadioControl:!0,children:i(B,{value:n,details:i(J,{children:[i(Se,{methodTitle:y}),i(Ce,{deliveryMethod:e,deliveryExpectationLine:D,paragraphColor:"subdued"})]}),secondaryContent:i("div",{className:we.SecondaryContentAligner,children:[i(Re,{deliveryMethod:e}),f&&v(a[0])]}),tertiaryContent:C&&i(w,{customizations:o,options:l}),renderSelectedContentWhenCollapsed:!0,selectedContent:_(p,a,s),children:y})})]})},q=({line:e,showHeader:t,loadingAdditionalShippingRates:r,hasMultipleShippingLines:o})=>{const{i18n:s}=R(),{customizationsBefore:n,customizationsAfter:c}=ge({targeted:!0,hasMultipleDeliveryGroups:!!o}).value,l=pe(),[u]=ee({type:e.type}),{methods:a,type:d}=e,p=P(()=>({groupType:fe(d),includeDeliverySelectionGroups:!1}),[d]),f=P(()=>{const y=a.find(C=>C.handle===u);return y||(a.length>0?a[0]:void 0)},[a,u]),v=t?i(ie,{level:3,children:d==="ONE_TIME_PURCHASE"?s.translate("shipping.shipping_method_first_shipment_group_title",{count:1}):s.translate("shipping.shipping_method_recurring_shipments_group_title.other")}):null,_=d==="ONE_TIME_PURCHASE"||!l.value?i(ye,{type:d,methods:a,loadingAdditionalShippingRates:r}):i(xe,{deliveryMethod:f});return i(x,{gap:"small-200",children:[v,i(w,{customizations:n,options:p}),_,i(w,{customizations:c,options:p})]})};function Ee(e){const t=ne(),[r,o]=K(!1),s=P(()=>e.flatMap(c=>c.hasDeliveryLineChange&&c.id?c.id:[]).sort().join(","),[e]);A(()=>{s&&o(!0)},[s]);const n=$(()=>{o(!1)},[]);return P(()=>{if(!r)return{showBanner:!1,onDismiss:n};const c=t.some(({code:l})=>l==="MERCHANDISE_CART_UPDATED_BASED_ON_COUNTRY"||l==="TaxExemption");return c?{showBanner:!1,onDismiss:n}:{showBanner:r&&!c&&(e.length>1||e.some(l=>l.methods?.length>1)),onDismiss:n}},[e,t,r,n])}function Ve({lines:e,loading:t,showErrorBanner:r=!1,deliveryChangedBannerOwnedBySection:o=!1}){const{showBanner:s,onDismiss:n}=Ee(e),{shop:c,i18n:l}=R(),u=V().deliveryNext,a=F(()=>ue(u.value,!0)),{deliveryMacros:d}=Q(),p=F(()=>d.value?.length>0),f=c.hasFlagEnabled(de),{showShipmentBreakdown:v}=me().value,_=f&&e.some(m=>m.targetMerchandiseLines?.some(b=>b.properties.some(L=>L.name==="_shopify_non_subscription_item"))),y=i(re,{tone:"info",errorType:te.DeliveryError,dismissible:!0,onDismiss:n,children:l.translate("shipping_errors.shipping_method")}),C=!v&&(e.length>1||Pe(e)),{subscriptionLines:D,oneTimePurchaseLines:h}=se(e);return i(oe,{target:"cart.deliveryGroups[0].deliveryAddress",children:[(s&&!o||r)&&y,i(I,{when:a,fallback:(()=>{if(D.length>0&&h.length===1){const[m]=h;return i(x,{gap:"large",children:[i(q,{line:m,showHeader:C&&!_,loadingAdditionalShippingRates:t,hasMultipleShippingLines:!0}),!_&&i(z,{subscriptionLines:D})]})}return e.map(m=>i(q,{line:m,showHeader:C,loadingAdditionalShippingRates:t,hasMultipleShippingLines:e.length>1},m.id??`${m.type}-${e.indexOf(m)}`))})(),children:i("fieldset",{children:i(x,{gap:"large",children:[i(I,{when:p,children:i(he,{deliveryLines:h})}),i(z,{subscriptionLines:D})]})})})]})}export{We as D,Ve as S,Qe 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.