PageSourceSearch

https://lifehacker.ru/_nuxt/v7.12-CSYyBEBn.js

js lifehacker.ru collected 2026-10-01 08:41:36 UTC 2,040 bytes, 2 lines download raw bytes

1import{T as m}from"./v7.12-BRRZxNpi.js";import{b1 as p,bh as h,b0 as b,bz as f,aU as s,aP as i,b4 as l,aX as o,bB as n,aV as d,aQ as q,aT as y,bT as _}from"./v7.12-VpakeqIi.js";import"./v7.12-BzjUzmp5.js";import"./v7.12-BtlHOY4Y.js";const k=p({name:"AskQuestion",components:{TextAreaCustom:m},props:{elem:{required:!0,type:Object}},data(){return{question:"",sendSuccess:!1,initialHeight:0}},setup(){return{indexStore:h()}},computed:{user(){return this.indexStore.user},containerStyle(){return this.sendSuccess&&{height:`${Math.max(this.initialHeight,240)}px`}},attributes(){return this.elem.attributes}},async mounted(){var e;this.$refs.container&&(await this.$nextTick(),this.initialHeight=(e=this.$refs.container)==null?void 0:e.clientHeight)},methods:{async sendQuestion(e){const{display_name:t="Без имени",integer_id:a=0}=this.user||{};try{await this.$specialApi.askQuestion(a,t,e),this.sendSuccess=!0}catch(r){console.error(r)}}}},"$NTmqeCD21E"),g={class:"question-container__success-text"},S={key:0,class:"question-container__title"},$={key:1,class:"question-container__subtitle"},C=["disabled"];function T(e,t,a,r,v,Q){const c=f("TextAreaCustom");return i(),s("div",{ref:"container",class:"question-container",style:_(e.containerStyle)},[e.sendSuccess?(i(),s(l,{key:0},[t[2]||(t[2]=o("div",{class:"question-container__success-image"},null,-1)),o("div",g,n(e.attributes.success),1)],64)):(i(),s(l,{key:1},[e.attributes.title?(i(),s("div",S,n(e.attributes.title),1)):d("",!0),e.attributes.subtitle?(i(),s("p",$,n(e.attributes.subtitle),1)):d("",!0),q(c,{id:"askQuestion",modelValue:e.question,"onUpdate:modelValue":t[1]||(t[1]=u=>e.question=u),class:"question",placeholder:e.attributes.placeholder},{default:y(()=>[o("button",{class:"question__button",disabled:!e.question,onClick:t[0]||(t[0]=u=>e.sendQuestion(e.question))},n(e.attributes.button),9,C)]),_:1},8,["modelValue","placeholder"])],64))],4)}const B=b(k,[["render",T],["__scopeId","data-v-927304fa"]]);export{B as default};
2//# sourceMappingURL=v7.12-CSYyBEBn.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.