1"use strict";(globalThis.webpackChunkwebpacktemplate=globalThis.webpackChunkwebpacktemplate||[]).push([[9908],{380(e,t,n){n.d(t,{A:()=>i});var a=n(9248),l=n.n(a),s=n(9089),o=n.n(s)()(l());o.push([e.id,"\n.profile-section-head[data-v-301f87ff] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--ds_spacing_sm);\n margin-bottom: var(--ds_spacing_sm);\n}\n.profile-section-head__count[data-v-301f87ff] {\n min-width: 32px;\n padding: 3px 8px;\n text-align: center;\n}\n.profile-empty[data-v-301f87ff] {\n margin: 0;\n}\n.profile-comments__list[data-v-301f87ff] {\n display: flex;\n flex-direction: column;\n gap: var(--ds_spacing_sm);\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.profile-comments__item[data-v-301f87ff] {\n padding: var(--ds_spacing_sm);\n}\n.profile-comments__link[data-v-301f87ff] {\n display: inline-block;\n margin-bottom: 6px;\n}\n.profile-comments__text[data-v-301f87ff] {\n margin: 0;\n}\n.profile-comments__meta[data-v-301f87ff] {\n display: flex;\n flex-wrap: wrap;\n gap: 6px 12px;\n margin-top: 8px;\n}\n.profile-comments__more[data-v-301f87ff] {\n margin-top: var(--ds_spacing_md);\n}\n",""]);const i=o},9908(e,t,n){n.r(t),n.d(t,{default:()=>S});var a=n(822),l=n(4526);const s={class:"profile-comments","aria-labelledby":"profile-comments-title"},o={class:"profile-section-head"},i={id:"profile-comments-title",class:"ds_ty_headline_small"},r={key:0,class:"profile-section-head__count rounded ds_ty_body_small text-neutral-700 bg-neutral-100"},m={key:0,class:"profile-empty ds_ty_body_medium text-neutral-700"},_={key:1,class:"profile-comments__list"},d=["href"],p={key:1,class:"profile-comments__link ds_ty_body_small text-neutral-700"},c={class:"profile-comments__text ds_ty_body_medium text-neutral-900"},f={class:"profile-comments__meta ds_ty_body_small text-neutral-700"};var u=n(8578);const y={name:"ProfileComments",props:{items:{type:Array,default:()=>[]},total:{type:Number,default:0},locale:{type:String,default:"ru"}},emits:["load-more"],computed:{canLoadMore(){return this.items.length<this.total}},methods:{entityTitle:u.wD,entityUrl:u.Lw,formatDate:u.Yq,truncate:u.xv,commentStateKey(e){if(1!==Number(e.state))return"profile_comment_hidden";switch(Number(e.approve)){case 1:return"profile_status_published";case 2:return"profile_comment_hidden";case 3:return"profile_comment_rejected";default:return"profile_status_moderation"}}}};var v=n(5072),b=n.n(v),g=n(7825),h=n.n(g),k=n(7659),x=n.n(k),C=n(5056),w=n.n(C),E=n(540),L=n.n(E),A=n(1113),X=n.n(A),$=n(380),T={};T.styleTagTransform=X(),T.setAttributes=w(),T.insert=x().bind(null,"head"),T.domAPI=h(),T.insertStyleElement=L();b()($.A,T);$.A&&$.A.locals&&$.A.locals;const S=(0,n(1535).A)(y,[["render",function(e,t,n,u,y,v){return(0,a.uX)(),(0,a.CE)("section",s,[(0,a.Lk)("div",o,[(0,a.Lk)("h2",i,(0,l.v_)(e.$t("profile_section_comments")),1),n.total?((0,a.uX)(),(0,a.CE)("span",r,(0,l.v_)(n.total),1)):(0,a.Q3)("",!0)]),n.items.length?((0,a.uX)(),(0,a.CE)("ul",_,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(n.items,t=>((0,a.uX)(),(0,a.CE)("li",{key:t.id,class:"profile-comments__item rounded border border-secondary-100 ds_surface_bright"},[v.entityUrl(t.entity)?((0,a.uX)(),(0,a.CE)("a",{key:0,href:v.entityUrl(t.entity),class:"profile-comments__link ds_ty_body_small text-primary-500 ds_link_hover"},(0,l.v_)(v.entityTitle(t.entity)||e.$t("profile_open_material")),9,d)):((0,a.uX)(),(0,a.CE)("span",p,(0,l.v_)(v.entityTitle(t.entity)||e.$t("profile_material_unknown")),1)),(0,a.Lk)("p",c,(0,l.v_)(v.truncate(t.message,240)),1),(0,a.Lk)("div",f,[(0,a.Lk)("span",null,(0,l.v_)(v.formatDate(t.created,n.locale)),1),(0,a.Lk)("span",null,(0,l.v_)(e.$t(v.commentStateKey(t))),1),(0,a.Lk)("span",null,(0,l.v_)(e.$t("profile_comment_rating"))+": +"+(0,l.v_)(t.positive||0)+" / -"+(0,l.v_)(t.negative||0),1)])]))),128))])):((0,a.uX)(),(0,a.CE)("p",m,(0,l.v_)(e.$t("profile_empty")),1)),v.canLoadMore?((0,a.uX)(),(0,a.CE)("button",{key:2,type:"button",class:"profile-comments__more ds_button ds_button_small ds_button_style_outlined",onClick:t[0]||(t[0]=t=>e.$emit("load-more"))},(0,l.v_)(e.$t("profile_load_more")),1)):(0,a.Q3)("",!0)])}],["__scopeId","data-v-301f87ff"]])}}]);
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.