PageSourceSearch

https://www.netatmo.com/_nuxt/BSSrnQFN.js

js netatmo.com collected 2026-09-24 08:39:10 UTC 5,601 bytes, 1 lines download raw bytes

1import{bG as T,c2 as le,d as j,a3 as re,o as m,c as L,m as i,c3 as ce,u as ue,s as N,A as de,w as D,K as M,k as H,B as U,e as u,_ as pe,b as o,f as R,c1 as me,C as A,h as f,F as _e,r as ve,as as fe,bR as he,b9 as ye,ba as ge,au as xe,bb as Ce,H as Me,I as we,E as Se,aQ as Re,D as be,bU as ke,L as O,c4 as Pe,c5 as F}from"./DOUwDtZz.js";import{u as V}from"./CojTaV0r.js";import"./CiqFZ2X0.js";import"./bv2tcZUX.js";function $e(){const{onLoaded:h}=T({src:"/_scripts/2iyT6_5x3dqzH7QmsiRCnZuPxrnEgcCvBzPww6SeZ6s.js",tagPosition:"head",nonce:"jquery"});T({src:"https://unpkg.com/leaflet/dist/leaflet.js",tagPosition:"head",nonce:"leaflet"}),le({link:[{href:"//unpkg.com/leaflet/dist/leaflet.css",rel:"stylesheet",nonce:"leaflet-css",crossorigin:"anonymous"}]});const{onLoaded:l,load:r,instance:d}=T({src:"/_scripts/YfsuzT6r2qfcuNjTKvhguhy3rotQvBhH0ZH06Q9aWGA.js",tagPosition:"head",nonce:"mondialrelay",async:!0},{trigger:"manual",use(){return{$:window.$}}});return{mondialRelayInstance:d,onJQueryLoaded:h,onMondialRelayScriptLoaded:l,loadMondialRelayScript:r}}const Te={id:"mondial-relay-map",class:"w-full"},Ae=j({__name:"index",props:{country:{default:"FR"},postalCode:{}},emits:["update"],setup(h,{emit:l}){const r=l,{width:d}=ce(),p=i(()=>d.value<768),{loadMondialRelayScript:y,onJQueryLoaded:a,onMondialRelayScriptLoaded:b,mondialRelayInstance:w}=$e();a(async()=>{await y()}),b(({$:c})=>{S(c)}),re(async()=>{w?.$&&S(w.$)});function S(c){c("#mondial-relay-map").MR_ParcelShopPicker({Brand:"F3NTONTO",Country:h.country,PostCode:h.postalCode,Theme:"mondialrelay",EnableGeolocalisatedSearch:!0,Responsive:p.value,ShowResultsOnMap:!p.value,OnParcelShopSelected:g=>{r("update",g)}})}return(c,g)=>(m(),L("div",Te))}}),Le=Object.assign(Ae,{__name:"CheckoutShippingMondialRelay"}),Be={class:"flex"},Ie=["innerHTML"],Fe=j({__name:"shipping",async setup(h){let l,r;const{$i18n:d}=ue(),{t:p}=d,{toast:y}=Re(),{activeCart:a}=N(de()),{getShippingMethods:b,setCartShippingMethod:w,setMondialRelayShippingMethod:S}=V(),{shippingMethods:c}=N(V()),g=i(()=>F(a.value?.totalPrice)),z=i(()=>!!a.value?.shippingInfo?.shippingMethodName),B=i(()=>z.value?F(a.value?.shippingInfo?.price):null),E=i(()=>B.value?g.value-B.value:g.value),k=M(!1);k.value=!0;try{[l,r]=D(()=>b()),await l,r()}catch{y({title:"An error occured",description:"An error occurred while fetching the shipping methods.",variant:"destructive"}),[l,r]=D(()=>O("cart")),await l,r()}k.value=!1;const x=M(!1),C=M(c.value?.find(e=>e.id===a.value?.shippingInfo?.shippingMethod?.id)),s=M(C.value?.id),_=M();function P(e){return!!e?.key.includes("mondial-relay")}async function $(){const e=C.value;if(e&&!(P(e)&&!_.value?.ID)){x.value=!0;try{P(e)?await S(e.id,_.value):await w(e.id)}catch{y({title:"An error occured",description:"An error occurred while setting the shipping method.",variant:"destructive"})}finally{x.value=!1}}}H(()=>s.value,async(e,n)=>{e!==n&&(C.value=c.value?.find(v=>v.id===e),P(C.value)||(_.value=void 0),await $())}),H(()=>_.value?.ID,async(e,n)=>{!e||e===n||await $()});function G(e){return e.key.includes("mondial-relay")&&s.value===e.id}function Q(e,n){return n&&E.value>=n/100?d.t("Offerte"):be(d.locale.value,e.currencyCode,e.centAmount/100)}async function W(e){_.value={...e,Pays:`${e.Pays} - ${ke(e.Pays)}`}}function I(){return a.value.shippingInfo?.shippingMethod?.id===s.value}async function q(){if(s.value){if(!I()&&(await $(),!I())){y({title:"An error occured",description:"An error occurred while setting the shipping method.",variant:"destructive"});return}x.value=!0,await O("checkout-payment"),x.value=!1}}const Z=ge,J=i(()=>C.value?.key.includes("mondial-relay")?!!s.value&&!!_.value?.ID:!!s.value),K=i(()=>a.value.lineItems.some(e=>e.preOrder)),Y=i(()=>Pe()),X=i(()=>K.value?`${p("*Délais de livraison à partir de l’expédition. Votre commande contient un produit en précommande.")}<br>${p("Elle sera expédiée en une seule fois, dès que tous les produits seront disponibles. Vous serez débité dès la validation de votre commande.")}`:`${p("*à partir de  l'expédition estimée : {nextBusinessDay}",{nextBusinessDay:p(Y.value)})}`);return(e,n)=>
1{const v=pe,ee=ye,te=he,ae=Le,ne=xe,oe=fe,se=Ce,ie=Se;return m(),L("div",null,[U("div",Be,[u(v,{tag:"p",variant:"heading-base",text:e.$t("Méthodes de livraison"),"format-last-char":"",class:"mb-4"},null,8,["text"]),o(k)?(m(),R(o(me),{key:0,class:"w-6 h-6 animate-spin text-slate-400 ml-4"})):A("",!0)]),u(se,{"model-value":o(s),"onUpdate:modelValue":n[0]||(n[0]=t=>s.value=t)},{default:f(()=>[(m(!0),L(_e,null,ve(o(c),t=>(m(),R(oe,{key:t.id,class:"cursor-pointer",onClick:Ne=>s.value=t.id},{default:f(()=>[u(te,{class:"flex flex-row items-center w-full p-4"},{default:f(()=>[u(ee,{id:t.id,value:t.id,class:"mr-4"},null,8,["id","value"]),u(v,{tag:o(Z),variant:"lg",text:t.description,class:"h-full w-9/12 flex items-center cursor-pointer",for:t.id},null,8,["tag","text","for"]),t.price?(m(),R(v,{key:0,tag:"span",variant:"lg-semibold",class:"ml-auto",text:Q(t.price,t.freeAbove)},null,8,["text"])):A("",!0)]),_:2},1024),G(t)?(m(),R(ne,{key:0},{default:f(()=>[u(ae,{country:o(a).shippingAddress?.country,"postal-code":o(a).shippingAddress?.postalCode,onUpdate:W},null,8,["country","postal-code"])]),_:1})):A("",!0)]),_:2},1032,["onClick"]))),128))]),_:1},8,["model-value"]),u(ie,{class:"w-full mt-4",disabled:!o(J),loading:o(x),onClick:q},{default:f(()=>[Me(we(e.$t("Procéder au paiement")),1)]),_:1},8,["disabled","loading"]),u(v,{tag:"p",variant:"base-blue-gray",class:"mt-4"},{html:f(()=>[U("span",{innerHTML:o(X)},null,8,Ie)]),_:1})])}}});export{Fe 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.