PageSourceSearch

https://skazka.ai/_next/static/chunks/15-89946305ee809f53.js

js skazka.ai collected 2026-10-05 15:11:00 UTC 13,712 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15],{39408:function(e,t,a){a.d(t,{$:function(){return h}});var r=a(36642),n=a(48552),i=a(68362),s=a(79598),o=a(41624),l=a(80175),c=a(2265),d=a(31191),u=a(66397);let g={ru:["ru","en","uk","kk","de","hy","ka"],us:["en","es-419","fr","de","pt-BR","zh-CN","ja"]},m={ru:["core","cis","europe","spanish","portuguese","middle-east","asia"],us:["core","europe","spanish","portuguese","middle-east","asia","cis"]},p={core:"popular",cis:"cis",europe:"europe",spanish:"spanish",portuguese:"portuguese","middle-east":"middleEast",asia:"asia"};function h(e){let{market:t,value:a,onChange:h,variant:f="light",className:x=""}=e,b=(0,u.T)("languageSelector"),y=(0,u.T)("common"),[w,v]=(0,n.useState)(!1),[N,j]=(0,n.useState)(""),[k,C]=(0,n.useState)(!1),[E,$]=(0,n.useState)(!1),L=(0,n.useRef)(null),S=(0,n.useRef)(null),_=(0,n.useRef)(null);(0,n.useEffect)(()=>{$(!0);let e=window.matchMedia("(max-width: 639px)"),t=()=>C(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{if(!w)return;let e=e=>{var t,a;let r=e.target;(null===(t=L.current)||void 0===t?void 0:t.contains(r))||(null===(a=S.current)||void 0===a?void 0:a.contains(r))||v(!1)},t=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[w]),(0,n.useEffect)(()=>{if(w){j("");let e=setTimeout(()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.focus()},50);return k&&(document.body.style.overflow="hidden"),()=>{clearTimeout(e),document.body.style.overflow=""}}},[w,k]);let M=(0,n.useMemo)(()=>(function(e){let t=g[e],a=[{key:"popular",labelKey:"popular",languages:[...t,...d.CONTENT_LANGUAGES.filter(e=>"core"===e.region).map(e=>e.code).filter(e=>!t.includes(e))].map(e=>d.CONTENT_LANGUAGES.find(t=>t.code===e)).filter(e=>!!e)}];for(let t of m[e]){if("core"===t)continue;let e=d.CONTENT_LANGUAGES.filter(e=>e.region===t);if(0===e.length)continue;let r=[...e].sort((e,t)=>e.nameEn.localeCompare(t.nameEn,"en"));a.push({key:t,labelKey:p[t],languages:r})}return a})(t),[t]),z=(0,n.useMemo)(()=>N.trim()?M.map(e=>({...e,languages:e.languages.filter(e=>(function(e,t){let a=t.trim().toLowerCase();return!a||e.name.toLowerCase().includes(a)||e.nameEn.toLowerCase().includes(a)||e.nameRu.toLowerCase().includes(a)||e.code.toLowerCase().includes(a)})(e,N))})).filter(e=>e.languages.length>0):M,[M,N]),G=(0,d.getContentLanguageInfo)(a),T=(0,n.useCallback)(e=>{h(e),v(!1)},[h]),A="dark"===f,D=A?"bg-[#1a1530] border border-white/10 text-white shadow-2xl":"bg-white border border-gray-200 text-gray-900 shadow-2xl",B=A?"text-white/40 text-[11px] uppercase tracking-wide font-semibold px-3 pt-3 pb-1":"text-gray-400 text-[11px] uppercase tracking-wide font-semibold px-3 pt-3 pb-1",F=e=>A?`w-full flex items-center gap-2 px-3 py-2 text-sm transition-colors ${e?"bg-purple-500/20 text-purple-200":"text-white/85 hover:bg-white/5"}`:`w-full flex items-center gap-2 px-3 py-2 text-sm transition-colors ${e?"bg-purple-50 text-purple-700":"text-gray-800 hover:bg-gray-50"}`,K=A?"flex items-center gap-2 px-3 py-2 border-b border-white/10 bg-white/[0.03]":"flex items-center gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50",R=A?"flex-1 bg-transparent outline-none placeholder:text-white/30 text-white text-sm":"flex-1 bg-transparent outline-none placeholder:text-gray-400 text-gray-900 text-sm",W=(0,r.jsxs)("button",{ref:L,type:"button",onClick:()=>v(e=>!e),className:`${A?"w-full flex items-center justify-between gap-2 px-3 py-2.5 rounded-xl bg-white/5 border border-white/10 text-white hover:bg-white/10 transition-colors text-sm":"w-full flex items-center justify-between gap-2 px-3 py-2.5 rounded-xl border-2 border-gray-300 bg-white text-gray-900 hover:border-purple-300 transition-colors text-base"} ${x}`.trim(),"aria-haspopup":"listbox","aria-expanded":w,children:[(0,r.jsx)("span",{className:"flex items-center gap-2 min-w-0",children:G?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-lg leading-none",children:G.flag}),(0,r.jsx)("span",{className:"truncate font-medium",children:G.name}),G.rtlBeta&&(0,r.jsx)("span",{className:`ml-1 text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${A?"bg-white/10 text-white/60":"bg-gray-200 text-gray-600"}`,children:b("beta")})]}):(0,r.jsx)("span",{className:A?"text-white/40":"text-gray-400",children:b("selectLanguage")})}),(0,r.jsx)(s.Z,{className:`w-4 h-4 flex-shrink-0 transition-transform ${w?"rotate-180":""} ${A?"text-white/40":"text-gray-400"}`})]}),O=()=>(0,r.jsx)(r.Fragment,{children:0===z.length?(0,r.jsx)("div",{className:`px-3 py-8 text-center text-sm ${A?"text-white/40":"text-gray-400"}`,children:b("empty")}):z.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:B,children:b(`groups.${e.labelKey}`)}),(0,r.jsx)("div",{role:"listbox","aria-label":b(`groups.${e.labelKey}`),children:e.languages.map(t=>{let n=a===t.code;return(0,r.jsxs)("button",{type:"button",role:"option","aria-selected":n,onClick:()=>T(t.code),className:F(n),children:[(0,r.jsx)("span",{className:"text-lg leading-none",children:t.flag}),(0,r.jsx)("span",{className:"truncate flex-1 text-left",children:t.name}),t.rtlBeta&&(0,r.jsx)("span",{className:`text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${A?"bg-white/10 text-white/60":"bg-gray-200 text-gray-600"}`,children:b("beta")}),n&&(0,r.jsx)(o.Z,{className:`w-4 h-4 ${A?"text-purple-300":"text-purple-600"}`})]},`${e.key}-${t.code}`)})})]},e.key))});if(!w)return W;if(k&&E){let e=(0,r.jsxs)("div",{className:"fixed inset-0 z-[100] flex flex-col",role:"dialog","aria-modal":"true","aria-label":b("selectLanguage"),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>v(!1)}),(0,r.jsxs)("div",{ref:S,className:`relative mt-auto w-full rounded-t-2xl overflow-hidden flex flex-col ${D}`,style:{maxHeight:"85vh"},children:[(0,r.jsxs)("div",{className:`flex items-center justify-between px-4 py-3 border-b ${A?"border-white/10":"border-gray-200"}`,children:[(0,r.jsx)("span",{className:"font-semibold",children:b("selectLanguage")}),(0,r.jsx)("button",{type:"button",onClick:()=>v(!1),className:A?"text-white/60 hover:text-white":"text-gray-500 hover:text-gray-900","aria-label":y("close"),children:(0,r.jsx)(l.Z,{className:"w-5 h-5"})})]}),(0,r.jsxs)("div",{className:K,children:[(0,r.jsx)(c.Z,{className:`w-4 h-4 ${A?"text-white/40":"text-gray-400"}`}),(0,r.jsx)("input",{ref:_,type:"text",inputMode:"search",value:N,onChange:e=>j(e.target.value),placeholder:b("search"),className:R})]}),(0,r.jsx)("div",{className:"overflow-y-auto flex-1 pb-4",children:O()})]})]});return(0,r.jsxs)(r.Fragment,{children:[W,(0,i.createPortal)(e,document.body)]})}return(0,r.jsxs)("div",{className:"relative",children:[W,(0,r.jsxs)("div",{ref:S,className:`absolute left-0 right-0 mt-1 rounded-xl overflow-hidden z-50 ${D}`,style:{maxHeight:"60vh"},children:[(0,r.jsxs)("div",{className:K,children:[(0,r.jsx)(c.Z,{className:`w-4 h-4 ${A?"text-white/40":"text-gray-400"}`}),(0,r.jsx)("input",{ref:_,type:"text",value:N,onChange:e=>j(e.target.value),placeholder:b("search"),className:R})]}),(0,r.jsx)("div",{className:"overflow-y-auto",style:{maxHeight:"calc(60vh - 48px)"},children:O()})]})]})}},55410:function(e,t,a){a.d(t,{R:function(){return r}});function r(e){window.location.href=e}},43428:function(e,t,a){a.d(t,{Hf:function(){return g},yN:function(){return u}});let r={en:{cartoon_3d:"3D Cartoon",fairy_tale:"Fairy Tale",cinematic_3d:"Cinematic",russian_fairytale:"Classic Storybook",watercolor:"Watercolor",realistic:"Realistic",anime:"Anime"},ru:{cartoon_3d:"3D-мультфильм",fairy_tale:"Сказочный мир",cinematic_3d:"Киношный",russian_fairytale:"Русская сказочная",watercolor:"Акварель",realistic:"Реалистичный",anime:"Аниме"}},n={en:{kingdom:"Enchanted Kingdom",space:"Outer Space",underwater:"Underwater World",dinosaurs:"Dinosaur World",forest:"Enchanted Forest","magic-city":"Everyday World + Magic",circus:"Circus & Carnival",mountains:"Mountains & Adventures",island:"Treasure Island",dreams:"Dreamland"},ru:{kingdom:"Волшебное королевство",space:"Космос и планеты",underwater:"Подводный мир",dinosaurs:"Мир динозавров",forest:"Волшебный лес","magic-city":"Обычный мир + магия",circus:"Цирк и карнавал",mountains:"Горы и приключения",island:"Остров сокровищ",dreams:"Страна снов"}},i={en:{dinosaurs:"Dinosaurs",space:"Space",unicorns:"Unicorns",sports:"Sports",drawing:"Drawing",music:"Music",lego:"Building Blocks",animals:"Animals",princesses:"Princesses",superheroes:"Superheroes",cars:"Cars",cooking:"Cooking"}
1,ru:{dinosaurs:"Динозавры",space:"Космос",unicorns:"Единороги",sports:"Спорт",drawing:"Рисование",music:"Музыка",lego:"Конструкторы",animals:"Животные",princesses:"Принцессы",superheroes:"Супергерои",cars:"Машинки",cooking:"Готовка"}},s={en:{gagarin:"Yuri Gagarin",armstrong:"Neil Armstrong",paleontologist:"Paleontologist Roy",davinci:"Leonardo da Vinci",mozart:"Mozart",captain:"Captain Courage",wizard:"Wise Wizard",fairy:"Kind Fairy",owl:"Wise Owl",dragon:"Friendly Dragon",unicorn:"Magical Unicorn",robot:"Robot Helper",pirate:"Pirate Captain",knight:"Brave Knight",scientist:"Inventor Scientist",princess:"Wise Princess"},ru:{gagarin:"Юрий Гагарин",armstrong:"Нил Армстронг",paleontologist:"Палеонтолог Рой",davinci:"Леонардо да Винчи",mozart:"Моцарт",captain:"Капитан Смелость",wizard:"Мудрый волшебник",fairy:"Добрая фея",owl:"Мудрая сова",dragon:"Добрый дракон",unicorn:"Волшебный единорог",robot:"Робот-помощник",pirate:"Капитан пиратов",knight:"Храбрый рыцарь",scientist:"Учёный-изобретатель",princess:"Мудрая принцесса"}},o={en:{brave:"Brave",smart:"Smart",kind:"Kind",determined:"Determined",friendly:"Friendly",confident:"Confident",creative:"Creative",curious:"Curious",active:"Active",calm:"Calm",cheerful:"Cheerful",caring:"Caring"},ru:{brave:"Смелой",smart:"Умной",kind:"Доброй",determined:"Целеустремлённой",friendly:"Дружелюбной",confident:"Уверенной",creative:"Творческой",curious:"Любознательной",active:"Активной",calm:"Спокойной",cheerful:"Весёлой",caring:"Заботливой"}},l={en:{"fear-dark":"Overcome fear of the dark","fear-monsters":"Conquer fear of monsters","fear-doctors":"Not be afraid of doctors","fear-water":"Overcome fear of water","fear-separation":"Handle separation anxiety","habit-teeth":"Brush teeth regularly","habit-vegetables":"Eat fruits and vegetables","habit-cleaning":"Keep their room tidy","habit-bedtime":"Go to bed on time","habit-handwash":"Wash hands","social-sharing":"Learn to share","social-friends":"Make new friends","social-shy":"Overcome shyness","social-apologize":"Learn to apologize","social-bullying":"Be kind to others","life-sibling":"New baby sibling arriving","life-school":"First day of school","life-moving":"Moving to a new home","life-conflict":"Making up with a friend"},ru:{"fear-dark":"Не бояться темноты","fear-monsters":"Победить страх монстров","fear-doctors":"Не бояться врачей","fear-water":"Справиться со страхом воды","fear-separation":"Не бояться разлуки","habit-teeth":"Чистить зубы","habit-vegetables":"Есть овощи и фрукты","habit-cleaning":"Убирать свою комнату","habit-bedtime":"Вовремя ложиться спать","habit-handwash":"Мыть руки","social-sharing":"Научиться делиться","social-friends":"Заводить новых друзей","social-shy":"Не стесняться","social-apologize":"Уметь извиняться","social-bullying":"Не обижать других","life-sibling":"Появление братика/сестрички","life-school":"Первый день в школе","life-moving":"Переезд в новый дом","life-conflict":"Помириться с другом"}},c={en:{brother:"Brother",sister:"Sister",mom:"Mom",dad:"Dad",parents:"Mom & Dad",grandma:"Grandma",grandpa:"Grandpa",grandparents:"Grandma & Grandpa",dog:"Dog",cat:"Cat"},ru:{brother:"Брат",sister:"Сестра",mom:"Мама",dad:"Папа",parents:"Мама и Папа",grandma:"Бабушка",grandpa:"Дедушка",grandparents:"Бабушка и Дедушка",dog:"Собака",cat:"Кошка"}};function d(e){return"ru"===e?"ru":"en"}function u(e){return r[d(e)]}function g(e,t){var a,u,g;let m=d(t),p={};return e.style&&(p.style=r[m][e.style]||e.style),e.setting&&(p.setting=n[m][e.setting]||e.setting),(null===(a=e.interests)||void 0===a?void 0:a.length)&&(p.interests=e.interests.map(e=>i[m][e]||e).join(", ")),(null===(u=e.characters)||void 0===u?void 0:u.length)&&(p.characters=e.characters.map(e=>{let t=c[m][e.type]||e.type;return e.name?`${t} ${e.name}`:t}).join(", ")),e.mentor&&(p.mentor=s[m][e.mentor]||e.mentor),(null===(g=e.qualities)||void 0===g?void 0:g.length)&&(p.qualities=e.qualities.map(e=>o[m][e]||e).join(", ")),e.lesson&&(p.lesson=l[m][e.lesson]||e.lesson),p}}}]);

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.