PageSourceSearch

https://www.bazar.club/_nuxt/BZ0WoVrC.js

js bazar.club collected 2026-10-02 14:59:49 UTC 3,819 bytes, 1 lines download raw bytes

1import{ad as N,b3 as R,ba as U,am as _,ay as T,ar as $,ao as p,aq as d,ap as h,u as e,i as F,an as B,aN as M,aA as I,b4 as L,b as i,c as A,aL as W,b7 as H,fo as O,fm as z,f0 as q,bw as D,aw as P}from"./DcvMS2TM.js";import{_ as Z}from"./Bch4itxQ.js";import{_ as G}from"./DyHLoPaD.js";import{u as J,t as K}from"./DgBG1pZV.js";import{u as Q}from"./C1p24-Mb.js";import{_ as X}from"./C_40LZJ5.js";import{_ as Y}from"./_4gB1-tn.js";import{e as ee}from"./Doe-BjDY.js";const se={class:"flex justify-center"},te={class:"mt-1 text-center text-lg text-[#4c4f61]"},oe={action:""},ae={class:"mb-8 mt-4"},ne={key:0,class:"w-full flex items-center justify-center gap-2"},le={class:"text-xs text-[#4C4F61] lh-3.5",for:"job-register-checkbox"},re=N({__name:"Form",props:L({categorySlug:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:L(["requestStart","requestSent"],["update:modelValue"]),setup(b,{emit:g}){const f=b,c=g,o=z(),a=R(b,"modelValue");o?.trackEvent({event:"subscription_banner_show",custom_category:f.categorySlug});const{singleSubscribeNewsletterSchema:S}=Q(),{handleSubmit:x,errors:n,defineField:y}=J({validationSchema:K(S)}),[t]=y("email"),l=i(!1),r=U(),C=A(()=>r.getIsLoggedIn),w=x(async s=>{c("requestStart"),o?.trackEvent({event:"subscription_banner_button_click"});try{await $instanceFetch("/v1/es/subscribe/email",{method:"POST",body:{...s,register:l.value,category_slug:f.categorySlug}}),c("requestSent","success")}catch{c("requestSent","fail")}});return(s,u)=>{const V=O,k=Z,m=G,j=W,E=H;return _(),T(E,{visible:a.value,"onUpdate:visible":u[2]||(u[2]=v=>a.value=v),"dialog-content-class":"sm:modal-sm"},{header:$(()=>[I(h(s.$t("Не пропустите новые объявления!")),1)]),content:$(()=>[p("div",se,[d(V,{class:"size-25 text-custom-blue"})]),p("div",te,h(s.$t("Подпишитесь на обновления в категории работа и получайте лучшие предложения прямо на вашу почту.")),1),p("form",oe,[p("div",ae,[d(k,{modelValue:e(t),"onUpdate:modelValue":u[0]||(u[0]=v=>F(t)?t.value=v:null),errors:e(n).email,placeholder:"[email protected]",type:"email",required:""},null,8,["modelValue","errors"])]),e(C)?M("",!0):(_(),B("div",ne,[d(m,{modelValue:e(l),"onUpdate:modelValue":u[1]||(u[1]=v=>F(l)?l.value=v:null),class:"shrink-0","input-id":"job-register-checkbox"},null,8,["modelValue"]),p("label",le,h(s.$t("Зарегистрировать меня на BAZAR"))+". ",1)])),d(j,{disabled:e(n).email||!e(t),class:"mt-6 w-full",onClick:e(w)},{default:$(()=>[I(h(s.$t("Подписаться")),1)]),_:1},8,["disabled","onClick"])])]),_:1},8,["visible"])}}}),ue={key:0},be=N({__name:"index",props:{category:{}},setup(b){const g=b,f=i(!1),c=q("formImpressionsCount",0),o=q("showCount",0),a=q("currentCategory",""),S=D("subscribedCategory",[]),x=A(()=>S.value.includes(a.value));a.value!==g.category?(a.value=g.category,o.value=1):o.value=o.value+1,o.value===5&&(f.value=!0,o.value=0,c.value++);const n=i(!0),y=i(ee),t=i(!1),l=i(""),r=i(!1);function C(w){w==="success"?(l.value="success",r.value=!0,t.value=!1,n.value=!1,S.value.push(a.value)):(l.value="fail",r.value=!0,t.value=!1,n.value=!1)}return(w,s)=>{const u=re,V=X,k=Y;return _(),B(P,null,[e(f)&&e(c)<=3&&!e(x)?(_(),B("div",ue,[d(u,{modelValue:e(n),"onUpdate:modelValue":s[0]||(s[0]=m=>F(n)?n.value=m:null),"category-slug":e(a),onRequestStart:s[1]||(s[1]=m=>t.value=!0),onRequestSent:C},null,8,["modelValue","category-slug"])])):M("",!0),d(V,{"fail-values":e(y).fail,"show-window":e(r),status:e(l),"success-values":e(y).success,"go-to-url":"no-redirect",onTryAgain:s[2]||(s[2]=m=>r.value=!1),onHideWindow:s[3]||(s[3]=m=>r.value=!e(r))},null,8,["fail-values","show-window","status","success-values"]),e(t)?(_(),T(k,{key:1})):M("",!0)],64)}}});export{be as _};

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.