1import{aq as g,ar as M,a7 as y,a6 as l,a8 as v,as as b,_ as $,x as k,o as _,A as D,e as i,a as I,y as L,G as c,n as N,D as w}from"./CyVqXwo4.js";import{_ as B}from"./BtPmv9CL.js";import{d as C}from"./BwQzvdFb.js";function F(t,e,n){const[s,a]=g(n?.in,t,e),o=h(s,a),u=Math.abs(M(s,a));s.setDate(s.getDate()-o*u);const r=+(h(s,a)===-o),f=o*(u-r);return f===0?0:f}function h(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function p(t){return e=>{const s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function H(t,e,n){const[s,a]=g(n?.in,t,e),o=(+s-+a)/y;return p(n?.roundingMethod)(o)}function S(t,e){return+l(t)-+l(e)}function Y(t,e,n){const s=S(t,e)/v;return p(n?.roundingMethod)(s)}const m={rus:{1:"денÑ","1-5":"днÑ",5:"дней"},eng:{1:"day","1-5":"days",5:"days"},bak:{1:"көндөÒ","1-5":"көн",5:"көнө"},tat:{1:"көн","1-5":"көн",5:"көн"},chv:{1:"кÑн","1-5":"кÑн",5:"кÑн"},chm:{1:"кеÑе","1-5":"кеÑе",5:"кеÑе"},udm:{1:"нÑнал","1-5":"нÑнал",5:"нÑнал"}},d={rus:{1:"ÑаÑ","1-5":"ÑаÑа",5:"ÑаÑов"},eng:{1:"hour","1-5":"hours",5:"hours"},bak:{1:"ÑÓÒÓÑ","1-5":"ÑÓÒÓÑ",5:"ÑÓÒÓÑ"},tat:{1:"ÑÓгаÑÑ","1-5":"ÑÓгаÑÑ",5:"ÑÓгаÑÑ"},chv:{1:"ÑеÑ
еÑ","1-5":"ÑеÑ
еÑ",5:"ÑеÑ
еÑ"},chm:{1:"ÑагаÑ","1-5":"ÑагаÑ",5:"ÑагаÑ"},udm:{1:"ÑаÑ","1-5":"ÑаÑ",5:"ÑаÑ"}},z={rus:"мин.",eng:"min.",bak:"мин.",tat:"мин.",chv:"мин.",chm:"мин.",udm:"мин."},Z=(t,e="rus")=>{const n=b(t,"Asia/Yekaterinburg"),s=Date.now(),a=F(s,n);if(a>=1){let r=m[e][1];return a>1&&a<5&&(r=m[e]["1-5"]),a>=5&&(r=m[e][5]),`${a} ${r}`}const o=H(s,n);if(o>=1){let r=d[e][1];return o>1&&o<5&&(r=d[e]["1-5"]),o>=5&&(r=d[e][5]),o===21&&(r=d[e][1]),o>21&&(r=d[e]["1-5"]),`${o} ${r}`}return`${Y(s,n)} ${z[e]}`},A=C({props:{matter:{type:Object,required:!0},large:{type:Boolean,default:!1},showPlatform:{type:Boolean,default:!1}},computed:{matterMeta(){return this.showPlatform?this.matter.platform_title:this.$rubricType(this.matter)}}},"$JVQMn84LlY"),V={class:"rubric-date"},j={class:"cm-rubric"},q={class:"cm-date"},O={class:"title"},P={key:0,class:"author"},T={class:"text-sm"},E={class:"font-bold"};function G(t,e,n,s,a,o){const u=B;return _(),k(u,{class:w([{__large:t.large},"item"]),to:t.matter.path},{default:D(()=>[i("div",null,[i("div",V,[i("div",j,c(t.matterMeta),1),i("div",q,c(t.$date(t.matter.published_at)),1)]),i("div",O,c(t.matter.title),1)]),t.matter.columnist?(_(),I("div",P,[i("div",null,[i("div",{style:N({backgroundImage:`url(${t.matter.columnist.image_url})`}),class:"author-avatar"},null,4)]),i("div",T,[i("div",E,c(t.matter.columnist.full_name),1),i("div",null,c(t.matter.columnist.occupation),1)])])):L("",!0)]),_:1},8,["class","to"])}const x=Object.assign($(A,[["render",G],["__scopeId","data-v-ba4350d9"]]),{__name:"ListMatterNoImg"});export{x as _,Z as d};
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.