PageSourceSearch

https://mobile.free.fr/_next/static/chunks/4030-0d53f5dd5a40caca.js

js free.fr collected 2026-09-24 08:24:39 UTC 6,879 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4030],{42186:(e,r,s)=>{s.d(r,{TC:()=>m,eQ:()=>f});var i=s(69008),l=s(95380),t=s(58312),a=s(41673),c=s(6180),n=s(56880),o=s.n(n);let d=(e,r,s,i)=>{let a=e?Object.entries(e):[],c={};if(!a.length)return{mappedPrices:null,bestProfile:null};for(let[e,t]of a)switch(r){case l.bC.CASH:{let r=(0,l.xm)(t,1,s,i);c={...c,[e]:r};break}case l.bC.FREE_FLEX:{let r=(0,l.lo)(t,2,s);c={...c,[e]:r}}}return{mappedPrices:c,bestProfile:t.E7.PROSPECT}},m=e=>{let r=[t.E7.PROSPECT];return(r=(0,a.W9)(t.TG.PROFILES)||["1"]).includes(t.E7.SUBSCRIBER)?e.map(e=>({...e,bestCashProfile:(0,i.p1)(r,e.priceCash),bestFlexProfile:(0,i.p1)(r,e.priceFlex)})):e},f=(e,r)=>e.map(e=>{let s,{mappedPrices:i,bestProfile:t}=d(e.priceCash,l.bC.CASH,e.offers,r),{mappedPrices:a,bestProfile:n}=d(e.priceFlex,l.bC.FREE_FLEX,e.offers);return{id:e.id,brand:e.brand,name:e.name,image:{src:e.image,alt:`${e.brand} ${e.name}`},path:e.path,isNew:e.isNew,priceCash:i,isPreorder:e.isPreorder,refsAvailable:e.isAvailable??[],refsAvailableInFC:e.isAvailableFC??[],offers:(0,c.Fj)(e),colors:(s=e.colors,o()(s.map(e=>({label:e.colorName,value:e.colorCode,base:e.colorBase})),"value")),bestCashProfile:t,is4G:!!e.is4G,is5G:!!e.is5G,is5GPlus:!!e.is5GPlus,isESim:!!e.isESim,isFoldable:e.isFoldable,isRecommended:e.isRecommended,isRefurbished:e.isRefurbished,isPack:e.isPack??!1,withAi:e.withAi??!1,priceFlex:a,storages:e.storages,isHighlight:e.isHighlight,bestFlexProfile:n,energy:e.energy}})},43951:(e,r,s)=>{s.d(r,{T:()=>a});var i=s(85646),l=s(6593),t=s(63733);let a=(0,s(65886).forwardRef)((e,r)=>{let{isTablet:s}=(0,l.Gu)(),a=!!e.shouldStickToBottomInMobile&&!s;return(0,i.jsx)("div",{ref:r,className:(0,t.A)("sticky z-50 w-full transition-all duration-500",!a&&"before:absolute before:bottom-full before:left-0 before:right-0 before:-z-10 before:h-[12px] before:bg-white",e.className),style:{...a?{bottom:0}:{top:"var(--mm-height, 88px)"},transitionTimingFunction:"var(--mm-ease)"},children:e.children})})},62112:(e,r,s)=>{s.d(r,{Fn:()=>n,YJ:()=>i,_A:()=>t,hK:()=>l,i:()=>c,o2:()=>a,yC:()=>o}),s(58312),s(42186),s(95380);let i=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\+/g,"plus").replace(/[^a-zA-Z0-9\- ]/g,"").replace(/ /g,"-"):"",l=(e,r)=>({...e,characteristics:r}),t=(e,r)=>e.map(e=>e?.characteristics?e.characteristics[r]:null),a=e=>e.map(e=>e?e.colors:null),c=e=>e.map(e=>e?e.storages:null),n=e=>e.reduce((e,r)=>null===r?e:e+1,0)>1,o=e=>0===e.reduce((e,r)=>r&&r.find(e=>!0!==e.isUndefined)?e+1:e,0)},69008:(e,r,s)=>{s.d(r,{Tz:()=>d,V8:()=>o,p1:()=>n,zm:()=>f});var i=s(95380),l=s(58312),t=s(41673),a=s(63366);let c={mappedPrices:null,bestProfile:null},n=(e,r)=>{if(!r)return e[0].toString();let s=Object.entries(r);if(!s.length)return e[0].toString();for(let[e]of s)if(e===l.E7.SUBSCRIBER)return l.E7.SUBSCRIBER;return l.E7.PROSPECT},o=e=>{let r=[l.E7.PROSPECT],s=e.references;return(r=(0,t.W9)(l.TG.PROFILES)||["1"]).length>1&&s.filter(e=>e.bestFlexProfile===l.E7.PROSPECT||e.bestCashProfile===l.E7.PROSPECT).length===e.references.length?{...e,references:s.map(e=>({...e,bestCashProfile:n(r,e.priceCash),bestFlexProfile:n(r,e.priceFlex)}))}:e},d=(e,r)=>r.resetPrice?{...e,references:e.references.map(e=>({...e,priceCash:(e=>{let r=Object.entries(e),s={};for(let[e,i]of r)s={...s,[e]:{...i,offers:[],goodPlans:[],totalPrice:0,firstPayment:0,firstPaymentAfterDiscount:0}};return s})(e.priceCash)}))}:e,m=(e,r,s={})=>{let l=Object.entries(s),t=Object.entries(e).filter(e=>l.find(r=>r[1]===+e[0]));if(!t.length)return{};let a=l[0][0]||1,c={};for(let[e,s]of t)switch(r){case i.bC.CASH:{let r=(0,i.O)(s,Number(e));c={...c,[r.shopId]:r};break}case i.bC.FREE_FLEX:{let r=(0,i.__)(s,Number(e));c={...c,[r.shopId]:r}}}return{mappedPrices:c,bestProfile:a}},f=e=>{let r,s,l,t,n;return{brand:e.brand,characteristics:e.characteristics,das:{head:e.characteristics.general.headDAS,trunk:e.characteristics.general.trunkDAS,members:e.characteristics.general.extremitiesDAS},dasAccessories:{head:e.characteristics.general?.headDASAccessories||null,trunk:e.characteristics.general?.trunkDASAccessories||null,members:e.characteristics.general?.extremitiesDASAccessories||null},id:e.id,is5G:e.is5G,isFoldable:e.isFoldable,isNew:e.isNew,isRefurbished:e.isRefurbished,isRecommended:e.isRecommended,withAi:e?.withAi??!1,esim:"eSIM"===e.characteristics.general.simType1||"eSIM"===e.characteristics.general.simType2||"eSIM"===e.characteristics.general.simType3,name:e.name,repairability:{index:e?.repairabilityIndex||null,pdf:{url:e?.repairabilityPdf?.url||""}},energy:{index:e.energy?.index||null,file:e.energy?.file||null},path:e?.path,references:(r=e.brand,s=e.name,l=e.references,t=e?.cashPrices,n=e?.freeFlexPrices,l.map(e=>{let{mappedPrices:l,bestProfile:o}=t?m(t,i.bC.CASH,e.cashPricesIds):c,{mappedPrices:d,bestProfile:f}=n?m(n,i.bC.FREE_FLEX,e.freeFlexPricesIds):c;return{color:{label:e.colorName,value:e.colorCode,base:e.colorBase},id:e.id,images:e.images.map(i=>({picture:i,src:i,alt:`${r} ${s} ${e.colorName} ${(0,a.z9)(e.memory)} - Free Mobile`})),isPreorder:e.isPreorder,storage:{value:e.memory},priceCash:l??null,priceFlex:d??null,releaseDate:e.releaseDate,bestCashProfile:o??null,bestFlexProfile:f??null}})),legalNotices:e?.mentions_legal||null,catchInfos:e?.catchInfos||null,isHighlighted:e?.isHighlight||!1,ecoTax:e.ecoTax||null}}},80821:(e,r,s)=>{s.d(r,{A:()=>c});var i=s(85646),l=s(6593),t=s(63733);let a=(0,s(65886).memo)(({removeFromSelection:e,mobile:r,hasBgColorsReversed:s=!1}
1)=>{let a="p-2 relative flex h-16 w-0 flex-1 items-center rounded-12 desktop:h-21 desktop:rounded-16";return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsxs)("div",{className:(0,t.A)(s?"bg-gray-50":"bg-white",a),children:[(0,i.jsx)("button",{onClick:()=>e(),className:"absolute right-0 top-0 flex h-10 items-center justify-center p-2",children:(0,i.jsx)(l.In,{name:"close-circle-line",className:"p-2 text-24"})}),(0,i.jsx)("img",{className:"h-12 min-h-12 w-12 min-w-12 object-contain desktop:h-16 desktop:min-h-16 desktop:w-16 desktop:min-w-16",src:"string"==typeof r.image?r.image:r.image.src,alt:"string"==typeof r.image?r.name:r.image.alt}),(0,i.jsxs)("p",{className:"mr-10 w-full overflow-hidden text-ellipsis whitespace-nowrap text-left text-14 font-semibold text-gray-900",children:[r.name,(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"text-12 font-regular text-gray-600",children:r.brand})]})]}):(0,i.jsx)("div",{className:(0,t.A)("justify-center border border-dashed border-gray-300 text-gray-400",a)})})},(e,r)=>e.mobile?.id===r.mobile?.id),c=({removeFromSelection:e,selectedMobiles:r,hasBgColorsReversed:s=!1})=>(0,i.jsx)("div",{className:(0,t.A)("flex w-full gap-4 px-4 pt-4 tablet:px-6 tablet:pb-4",s?"bg-white":"bg-gray-50"),children:r.map((r,l)=>(0,i.jsx)(a,{removeFromSelection:e(l),mobile:r,hasBgColorsReversed:s},`selected-mobile-${l}`))})}}]);

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.