1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["getMagazine_"],{4766:(e,t,a)=>{a.r(t),a.d(t,{getMagazine:()=>i});var n=a(6391),r=a(9835),s=(e,t,a)=>new Promise(((n,r)=>{var s=e=>{try{o(a.next(e))}catch(e){r(e)}},i=e=>{try{o(a.throw(e))}catch(e){r(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,i);o((a=a.apply(e,t)).next())}));function i(e,t){return t=>(t({type:n.CALL_ELISA_API_LOAD}),fetch("https://api.prismashop.fr/prod/campaign/"+e).then((e=>s(this,null,(function*(){const a=yield e.json();if(e.status>=200&&e.status<300){const e=(new Date).getTime(),i=a.catalog.parutions[0].cover;return e<=new Date(a.dateStart).getTime()||e>=new Date(a.dateEnd).getTime()?t(o((0,r.H)("La date de cette offre est expirée"),i)):a.active?a.catalog.parutions[0].nbGracieusesRestantes<=0?t(o((0,r.H)("Plus de numéros disponibles pour ce magazine"),i)):a.nbTicketsRestants<=0?t(o((0,r.H)("Tout les numéros ont été distribués pour cette offre"),i)):t((s=a,{type:n.CALL_ELISA_API_SUCCESS,data:s})):t(o((0,r.H)("Cette offre n'est pas disponible"),i))}if(404===e.status)return t({type:n.REMOVE_MAG_INCENTIVES});var s;throw a})))).catch((e=>{t({type:n.REMOVE_MAG_INCENTIVES}),t(o((0,r.H)(e.error)))})))}function o(e,t=null){return{type:n.CALL_ELISA_API_ERROR,err:e,icon:t}}}}]); 2//# sourceMappingURL=getMagazine_.517352ea.0ef15b04.js.map
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.