1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{74841:function(e,a,r){r.r(a);var i=r(85893);r(67294);var t=r(59780),o=r(29320),l=r(30381),n=r.n(l),c=r(81627);let d=e=>{var a,r,l;let{variant_id:d,inventory:s,productType:u,availability:p,purchasability:v,isPurchasable:b}=e,m=(0,c.T)("product"),f=!d||!(null==s?void 0:s.isInStock)||(null==p?void 0:p.status)===t.g.Unavailable||!b,g=null==s?void 0:null===(a=s.aggregated)||void 0===a?void 0:a.availableToSell,x=null==s?void 0:null===(r=s.aggregated)||void 0===r?void 0:r.warningLevel,h=g<=(x||10)&&g>=1;return(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(o.default,{icon:f||h||"preorder"===v.availability?"bell":"checked",className:"mr-2",classNameIcon:"".concat(h||f?"w-[24px] h-[24px]":"w-[19px] h-[19px]"),classNamePaths:f?"fill-error":""}),(0,i.jsx)("span",{className:"ml-2 text-base font-bold ".concat(f?"text-error":h||"preorder"===v.availability?"text-warning":"text-success"," "),children:"preorder"===v.availability?"".concat(v.preorder_message||"Il prodotto \xe8 in preordine, sar\xe0 disponibile"," ").concat(v.preorder_release_date?"dal ".concat(null===(l=n()(v.preorder_release_date))||void 0===l?void 0:l.format("DD/MM")):"a breve"):f?"Prodotto non disponibile":u===t.k.CORSO&&h?"".concat(1===g?"Rimane 1 posto.":"Rimangono ".concat(g," posti.")," Affrettati!"):h?"Ultimi prodotti disponibili":u===t.k.RIVISTA?"Gli abbonamenti cartacei decorrono dal primo numero raggiungibile":m("availability.immediate")})]})};a.default=d},81627:function(e,a,r){r.d(a,{T:function(){return o}});var i=r(709);function t(e,a){return(...e)=>{try{return a(...e)}catch{throw Error(void 0)}}}let o=t(0,i.T_);t(0,i.Gb)}}]);
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.