PageSourceSearch

https://kidsday.com/build/assets/Faq-BE3ofDl_.js

js kidsday.com collected 2026-10-01 23:48:59 UTC 6,535 bytes, 1 lines download raw bytes

1import{d as N,B as P,w as $,o as K,f as O,q as n,G as R,z as H,v as s,u as a,x as u,l,Q as V,y as g,F as w,C as k,N as D,E as j,a as I,e as p}from"./localizedAssets-DORJHVNz.js";import{u as J,b as W,c as X}from"./app-D6xmdSx2.js";import{_ as M}from"./Input.vue_vue_type_script_setup_true_lang-Mxf5uSQ9.js";import{_ as Y}from"./KShowcase-Accordion.vue_vue_type_script_setup_true_lang-Cbko7HxG.js";import{K as Z}from"./KShowcase-Section-CTv0s_Ra.js";import{S as T}from"./search-BBxwJblU.js";/* empty css            */import"./index-BqEcoRvv.js";import"./PopperContent-B4Xcnuau.js";import"./RovingFocusGroup-DO80pQY-.js";import"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-ChP0-23m.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ee=["id","aria-labelledby"],te={class:"max-w-3xl space-y-5"},oe=["id","innerHTML"],se={class:"text-muted-foreground text-lg dark:text-gray-400",itemprop:"description"},ae=["href"],ne=["innerHTML"],re={class:"mt-10 flex flex-col gap-10 lg:flex-row lg:items-start lg:gap-16"},le={class:"hidden w-56 shrink-0 lg:sticky lg:top-24 lg:flex lg:max-h-[calc(100dvh-6rem)] lg:flex-col lg:gap-8"},ie={class:"relative shrink-0"},de=["aria-label"],ce={class:"flex flex-col gap-3"},ue=["href","aria-current","innerHTML","onClick"],pe={class:"min-w-0 flex-1"},me={class:"relative mb-8 lg:hidden"},fe=["for"],he={key:0,class:"space-y-2 py-10"},ge={class:"text-foreground font-semibold"},be={class:"text-muted-foreground"},ve={key:1,class:"space-y-12"},_e=["id","aria-labelledby"],ye=["id","innerHTML"],xe={class:"border-t border-gray-200 dark:border-white/10"},we=["content"],ke={itemscope:"",itemprop:"acceptedAnswer",itemtype:"https://schema.org/Answer"},Ce={class:"text-muted-foreground",itemprop:"text"},Qe=N({__name:"Faq",props:{region:{},locale:{},country:{},page:{},pageContents:{},defaultSubtitle:{},seo:{}},setup(y){const m=y,{t:r}=J(),{pageUrl:B}=W(),G=X(),f=P(),h=I(""),c=I(null),b=`${f}-search`,C=p(()=>{const t=G.props.faqGroups;return Array.isArray(t)?t:[]}),A=p(()=>h.value.trim().toLowerCase()),i=p(()=>{const t=A.value;return t===""?C.value:C.value.map(o=>({...o,items:o.items.filter(e=>z(e,o.title,t))})).filter(o=>o.items.length>0)}),E=p(()=>m.page?.title?.[m.locale]??r("showcase.faq.heading_default")),Q=p(()=>{const t=m.page?.subtitle?.[m.locale]?.trim();if(t)return t;const o=m.pageContents?.subtitle?.trim();return o||r("faq.page.subtitle")}),S=p(()=>B("contact-us"));function x(t){return t.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}function z(t,o,e){return x(t.question).toLowerCase().includes(e)||x(t.answer).toLowerCase().includes(e)||x(o).toLowerCase().includes(e)}function q(t){return`${f}-${t}-title`}function U(t){c.value=t;const o=document.getElementById(t);o&&o.scrollIntoView({behavior:"smooth",block:"start"})}function F(){const t=i.value[0]?.id??null;if(t===null){c.value=null;return}i.value.some(e=>e.id===c.value)||(c.value=t)}$(i,F,{immediate:!0});let v=null;function L(){v?.disconnect(),!(typeof IntersectionObserver>"u")&&(v=new IntersectionObserver(t=>{const e=t.filter(d=>d.isIntersecting).sort((d,_)=>d.boundingClientRect.top-_.boundingClientRect.top)[0]?.target.id;e&&(c.value=e)},{rootMargin:"-120px 0px -55% 0px",threshold:.1}),i.value.forEach(t=>{const o=document.getElementById(t.id);o&&v?.observe(o)}))}return K(()=>{L()}),$(i,()=>{L()}),O(()=>{v?.disconnect()}),(t,o)=>(n(),R(Z,{"show-header":!1,hero:!0,"padding-t":40,"padding-b":70,"nav-padding":!0,"background-class":"bg-background"},{default:H(()=>[s("div",{id:a(f),class:"kd-faq-index",itemscope:"",itemtype:"https://schema.org/FAQPage","aria-labelledby":`${a(f)}-title`},[s("header",te,[s("h1",{id:`${a(f)}-title`,class:"font-gotham text-foreground font-bold dark:text-white",itemprop:"name",innerHTML:E.value},null,8,oe),s("p",se,u(Q.value),1),s("a",{href:S.value,class:"text-meta inline-flex items-center border border-border bg-transparent px-4 py-2 font-medium uppercase tracking-wide text-foreground hover:bg-muted dark:border-white/10 dark:text-white dark:hover:bg-white/10"},u(a(r)("Contact Us")),9,ae)]),o[2]||(o[2]=s("div",{class:"mt-10 border-t border-gray-200 dark:border-white/10"},null,-1)),y.pageContents?.bodyHtml?(n(),l("div",{key:0,class:"kd-landing-page-default mt-8",innerHTML:y.pageContents.bodyHtml},null,8,ne)):V("",!0),s("div",re,[s("aside",le,[s("div",ie,[s("label",{class:"sr-only",for:b},u(a(r)("faq.page.search_label")),1),g(a(T),{class:"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),g(M,{id:b,modelValue:h.value,"onUpdate:modelValue":o[0]||(o[0]=e=>h.value=e),type:"search",placeholder:a(r)("faq.page.search_placeholder"),class:"rounded-none border-gray-200 pl-9 shadow-none"},null,8,["modelValue","placeholder"])]),i.value.length>0?(n(),l("nav",{key:0,class:"min-h-0 flex-1 overflow-y-auto overscroll-contain pr-1","aria-label":a(r)("faq.page.nav_label")},[s("ul",ce,[(n(!0),l(w,null,k(i.value,e=>(n(),l("li",{key:e.id},[s("a",{href:`#${e.id}`,class:j(["text-meta inline-block text-muted-foreground hover:text-foreground",c.value===e.id?"font-bold text-foreground":""]),"aria-current":c.value===e.id?"true":void 0,innerHTML:e.title,onClick:D(d=>U(e.id),["prevent"])}
1,null,10,ue)]))),128))])],8,de)):V("",!0)]),s("div",pe,[s("div",me,[s("label",{class:"sr-only",for:`${b}-mobile`},u(a(r)("faq.page.search_label")),9,fe),g(a(T),{class:"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),g(M,{id:`${b}-mobile`,modelValue:h.value,"onUpdate:modelValue":o[1]||(o[1]=e=>h.value=e),type:"search",placeholder:a(r)("faq.page.search_placeholder"),class:"rounded-none border-gray-200 pl-9 shadow-none"},null,8,["id","modelValue","placeholder"])]),i.value.length===0?(n(),l("div",he,[s("p",ge,u(a(r)("faq.page.empty")),1),s("p",be,u(a(r)("faq.page.empty_hint")),1)])):(n(),l("div",ve,[(n(!0),l(w,null,k(i.value,e=>(n(),l("section",{id:e.id,key:e.id,class:"scroll-mt-28","aria-labelledby":q(e.id)},[s("h2",{id:q(e.id),class:"text-foreground mb-2 font-bold dark:text-white",innerHTML:e.title},null,8,ye),s("div",xe,[(n(!0),l(w,null,k(e.items,(d,_)=>(n(),l("div",{key:`${e.id}-${_}`,itemscope:"",itemprop:"mainEntity",itemtype:"https://schema.org/Question"},[s("meta",{itemprop:"name",content:d.question},null,8,we),g(Y,{id:`${e.id}-item-${_}`,heading:d.question,"default-open":!1},{default:H(()=>[s("div",ke,[s("p",Ce,u(d.answer),1)])]),_:2},1032,["id","heading"])]))),128))])],8,_e))),128))]))])])],8,ee)]),_:1}))}});export{Qe 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.