PageSourceSearch

https://petstory.ru/product-finder/_nuxt/PFGeKV6f.js

js petstory.ru collected 2026-09-24 09:08:47 UTC 3,271 bytes, 1 lines download raw bytes

1import{B as p,j as c,q as N,H as t,p as x,i as F,al as S,D as y,ac as B,k as d,l as M,aj as m,O as z,r}from"./BmBKTJoK.js";import{u as j}from"./e8gmufkx.js";import V from"./CdgjhS8a.js";import O from"./BahLuIZx.js";import{_ as T}from"./DlAUqK2U.js";import"./BC6ytVF3.js";import"./Cu-RksDI.js";const U={class:"support__header"},q={class:"field-row"},H={key:0,class:"errors-list filled"},$={class:"error-text"},A={class:"field-row"},G={key:0,class:"errors-list filled"},J={class:"error-text"},K={key:1,class:"support-success-send"},L={class:"consultation-report__title consultation-report__title_text-center"},P={class:"consultation-report__title_orange"},Q={__name:"SendSupportMessageForm",emits:["open-form","set-loading"],setup(W,{emit:b}){const f=b,h=j(),o=r(""),u=r(""),a=r(""),l=r(""),n=r(!1),i=r(!1),v=r(!1),_=()=>(n.value=!0,u.value.trim()?/^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i.test(u.value)?(o.value="",!0):(o.value="Неверный формат почты",!1):(o.value="Обязательное поле",!1)),w=s=>{const e=s.target;u.value=e.value,n.value&&_()},D=s=>{const e=s.target;a.value=e.value,i.value&&g()},g=()=>(i.value=!0,a.value.trim()?(l.value="",!0):(l.value="Обязательное поле",!1)),I=()=>{n.value=!0,i.value=!0;const s=_(),e=g();return s&&e},k=async()=>{if(I()){f("set-loading",!0);try{await h.sendSupportMessage(a.value,u.value)?v.value=!0:console.error("Failed to send support message")}catch(s){console.error(s)}finally{f("set-loading",!1)}}},C=()=>{R(),f("open-form","report")},R=()=>{u.value="",a.value="",o.value="",l.value="",n.value=!1,i.value=!1,v.value=!1};return(s,e)=>(p(),c(z,null,[v.value?d("",!0):(p(),c("form",{key:0,class:"support",onSubmit:N(k,["prevent"])},[t("div",U,[t("div",{class:"support__back",onClick:C},[x(O)]),e[2]||(e[2]=t("div",{class:"support__title"}," Поддержка ",-1))]),e[4]||(e[4]=t("div",{class:"support__description"}," почта для обратной связи ",-1)),t("div",q,[F(t("input",{"onUpdate:modelValue":e[0]||(e[0]=E=>u.value=E),class:y(["support-input mt-8",{filled:u.value.length>0,error:o.value,success:!o.value&&n.value&&u.value.length>0}]),type:"text",placeholder:"Email",autocomplete:"off",onBlur:_,onInput:w},null,34),[[S,u.value]]),o.value?(p(),c("div",H,[t("span",$,B(o.value),1)])):d("",!0)]),t("div",A,[F(t("textarea",{"onUpdate:modelValue":e[1]||(e[1]=E=>a.value=E),class:y(["support-input mt-24",{filled:a.value.length>0,error:l.value,success:!l.value&&i.value&&a.value.length>0}]),type:"text",placeholder:"Текст обращения",autocomplete:"off",onBlur:g,onInput:D},null,34),[[S,a.value]]),l.value?(p(),c("div",G,[t("span",J,B(l.value),1)])):d("",!0)]),x(V,{class:"consultation-report-btn",onClick:k},{default:M(()=>[...e[3]||(e[3]=[m(" Отправить ",-1)])]),_:1})],32)),v.value?(p(),c("div",K,[t("div",L,[e[5]||(e[5]=m(" Мы отправили ваш вопрос! ",-1)),e[6]||(e[6]=t("br",null,null,-1)),e[7]||(e[7]=m(" Ответ придет на вашу почту ",-1)),t("span",P,B(u.value),1)]),x(V,{class:"consultation-report-btn consultation-report-btn_mt-16",onClick:C},{default:M(()=>[...e[8]||(e[8]=[m(" Хорошо ",-1)])]),_:1})])):d("",!0)],64))}},oe=T(Q,[["__scopeId","data-v-76275724"]]);export{oe as default};

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.