1import{ac as u,ak as a,ai as T,h as A,al as D,a as N,c as R,t as I,ae as L,i as o,am as O}from"#entry";import{i as C,n as M,p as c}from"./CLrBzJOS.js";const P=e=>{switch(e){case a.CASH:return"ÐалиÑнÑми в оÑиÑе";case a.BANK_CARD:return"ÐеÑевод на банковÑкÑÑ ÐºÐ°ÑÑÑ";case a.BANK_ACCOUNT:return"ÐеÑевод на банковÑкий ÑÑеÑ";case a.YANDEX_WALLET:return"Ðа ЯндекÑ-коÑелек";case a.QIWI_WALLET:return"Ðа Qiwi-коÑелек";case a.COURIER:return"ÐÑÑÑеÑом на дом";case a.GOLD_CROWN:return"ЧеÑез ÑиÑÑÐµÐ¼Ñ Â«ÐолоÑÐ°Ñ ÐºÐ¾Ñона»";default:return""}},U=(e,t)=>{switch(t){case u.DAYS:return{min:e.min_loan_period,max:e.max_loan_period};case u.YEARS:return{min:e.min_term?Math.round(e.min_term/12):e.min_term,max:e.max_term?Math.round(e.max_term/12):e.max_term};default:return{min:e.min_term,max:e.max_term}}},Y=(e,t)=>{if(C(e))return"";switch(t){case u.DAYS:return c({oneTerm:"денÑ",twoTerm:"днÑ",fiveTerm:"дней"},e);case u.MONTHS:return c({oneTerm:"меÑÑÑ",twoTerm:"меÑÑÑа",fiveTerm:"меÑÑÑев"},e);case u.YEARS:return c({oneTerm:"год",twoTerm:"года",fiveTerm:"леÑ"},e);default:return`${M(e||0)} дн.`}},b=(e,t={})=>{if(!e.redirect_advertiser_url)return"/";const i={...t};e.erid&&(i.erid=e.erid);let s=new URL(e.redirect_advertiser_url);return s.search=new URLSearchParams({...i,source_type:"4"}).toString(),s.toString()},F=e=>e<=35?{text:"Ðизкое",color:["text-red","dark:!text-red"]}:e>35&&e<=75?{text:"СÑеднее",color:["text-orange","dark:!text-orange"]}:{text:"ÐÑÑокое",color:["text-green","dark:!text-green"]},B=["datetime","title"],H={__name:"NuxtTime",props:{locale:{type:String,required:!1},datetime:{type:[String,Number,Date],required:!0},localeMatcher:{type:String,required:!1},weekday:{type:String,required:!1},era:{type:String,required:!1},year:{type:String,required:!1},month:{type:String,required:!1},day:{type:String,required:!1},hour:{type:String,required:!1},minute:{type:String,required:!1},second:{type:String,required:!1},timeZoneName:{type:String,required:!1},formatMatcher:{type:String,required:!1},hour12:{type:Boolean,required:!1,default:void 0},timeZone:{type:String,required:!1},calendar:{type:String,required:!1},dayPeriod:{type:String,required:!1},numberingSystem:{type:String,required:!1},dateStyle:{type:String,required:!1},timeStyle:{type:String,required:!1},hourCycle:{type:String,required:!1},relative:{type:Boolean,required:!1},title:{type:[Boolean,String],required:!1}},setup(e){const t=e,i=O()?.vnode.el,s=i?.getAttribute("datetime"),m=i?.getAttribute("data-locale"),p=T(),d=o(()=>{const r=t.datetime;return s&&p.isHydrating?new Date(s):t.datetime?new Date(r):new Date}),g=A(p.isHydrating&&window._nuxtTimeNow?new Date(window._nuxtTimeNow):new Date);if(t.relative){const n=setInterval(()=>{g.value=new Date},1e3);D(()=>clearInterval(n))}const y=o(()=>{const{locale:r,relative:n,...l}=t;return n?new Intl.RelativeTimeFormat(m??r,l):new Intl.DateTimeFormat(m??r,l)}),f=o(()=>{if(!t.relative)return y.value.format(d.value);const r=(d.value.getTime()-g.value.getTime())/1e3,n=[{unit:"second",seconds:1,threshold:60},{unit:"minute",seconds:60,threshold:60},{unit:"hour",seconds:3600,threshold:24},{unit:"day",seconds:86400,threshold:30},{unit:"month",seconds:2592e3,threshold:12},{unit:"year",seconds:31536e3,threshold:1/0}],{unit:l,seconds:w}=n.find(({seconds:v,threshold:q})=>Math.abs(r/v)<q)||n[n.length-1],x=r/w;return y.value.format(Math.round(x),l)}),S=o(()=>d.value.toISOString()),h=o(()=>t.title===!0?S.value:typeof t.title=="string"?t.title:void 0),_={};return(r,n)=>(N(),R("time",L(_,{datetime:S.value,title:h.value}),I(f.value),17,B))}};export{H as _,U as a,Y as b,P as c,b as g,F as p};
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.