PageSourceSearch

https://galerieharfa.cz/_nuxt/DC4M28OK.js

js galerieharfa.cz collected 2026-10-04 15:09:36 UTC 2,458 bytes, 1 lines download raw bytes

1import{_ as N}from"./BzXonNg9.js";import{d as B,i as D,h as V,s as p,u as I,r as F,o as r,c as a,a as s,b as t,F as L,B as c,m as f,l as T,aK as j,E as h,C as E,t as R,n as b,au as d,_ as U}from"./aJtTF-_E.js";import{u as k}from"./CGz6ZyU2.js";const q={class:"max-w-[87.5rem] mx-auto px-3.5 rounded-2xl flex flex-col gap-8 p-16"},z={class:"flex gap-2 flex-col text-center"},G={class:"text-4xl font-semibold text-black"},K={class:"text-grayDark text-xl"},M={key:1,class:"text-2xl font-semibold text-black max-w-[40rem] mx-auto"},P={class:"w-full flex justify-center"},W={key:0,class:"flex flex-col items-center gap-4 max-w-[25rem]"},$={class:"relative flex items-start cursor-pointer w-full rounded-xl transition-all"},A={class:"relative top-0.5 checkmark border border-grayDark2 w-4 h-4 rounded peer peer-checked:bg-primary peer-checked:text-white text-xs text-transparent flex items-center justify-center"},H={class:"text-left text-s ml-2.5"},J=["href"],Z=B({__name:"Subscribe",setup(O){const{ssrt:o}=D();V();const w=k(),{isSubscribed:_}=p(k()),{useRoundedCorners:y,useSectionsInfiniteWidths:x,newsletterConsentLinkUrl:m}=p(I()),i=F(!1),g=e=>{e!=null&&e.email&&i.value?w.subscribe(e==null?void 0:e.email).catch(n=>{d({title:n.message,type:"error"})}):i.value||d({title:o("consent_required"),type:"error"})},S=e=>{var n,l;(n=e==null?void 0:e.errors)!=null&&n.email&&d({title:(l=e==null?void 0:e.errors)==null?void 0:l.email})};return(e,n)=>{const l=N,u=U;return r(),a("section",{class:b({"md:px-5":!t(x)})},[s("div",{class:b(["w-full bg-graylight",{"md:rounded-3xl":t(y)&&!t(x)}])},[s("div",q,[s("div",z,[t(_)?(r(),a("p",M,c(t(o)("newsletter_subscribed")),1)):(r(),a(L,{key:0},[s("h2",G,c(t(o)("newsletter_heading")),1),s("p",K,c(t(o)("newsletter_description")),1)],64))]),s("div",P,[t(_)?(r(),R(u,{key:1,icon:"simple-line-icons:check",class:"text-primary text-4xl"})):(r(),a("div",W,[f(l,{onSubmit:g,onInvalidSubmit:S}),s("label",$,[T(s("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=C=>i.value=C),class:"sr-only outline-none text-transparent bg-transparent rounded peer"},null,512),[[j,i.value]]),s("div",A,[f(u,{icon:"radix-icons:check",class:"text-sm"})]),s("p",H,[h(c(t(o)("newsletter_consent_text_1"))+" ",1),t(m)?(r(),a("a",{key:0,href:t(m),class:"text-primary underline lowercase",target:"_blank"},c(t(o)("newsletter_consent_link_text")),9,J)):E("",!0),h(" "+c(t(o)("newsletter_consent_text_2")),1)])])]))])])],2)],2)}}});export{Z 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.