PageSourceSearch

https://www.frogtoon.com/_next/static/chunks/7596.20bc1aa8652f3a75.js

js frogtoon.com collected 2026-10-02 10:40:38 UTC 11,536 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309,2395,2690,5488,7596],{2650:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(95155),n=r(52619),o=r.n(n);function a({className:e="h-4 w-4"}){return(0,i.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:e,fill:"currentColor",children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),(0,i.jsx)("path",{d:"M17.423 15.476a.73.73 0 0 1-1.003.243c-2.748-1.68-6.204-2.06-10.272-1.13a.73.73 0 1 1-.326-1.423c4.454-1.019 8.26-.59 11.356 1.303a.73.73 0 0 1 .245 1.007Z",fill:"black"}),(0,i.jsx)("path",{d:"M18.854 12.293a.912.912 0 0 1-1.253.304c-3.145-1.932-7.935-2.492-11.654-1.361a.912.912 0 1 1-.531-1.744c4.228-1.287 9.49-.665 13.14 1.576a.912.912 0 0 1 .298 1.225Z",fill:"black"}),(0,i.jsx)("path",{d:"M18.977 8.975c-3.772-2.24-10-2.447-13.601-1.39a1.094 1.094 0 1 1-.616-2.099c4.134-1.213 11.007-.978 15.335 1.594a1.094 1.094 0 1 1-1.118 1.895Z",fill:"black"})]})}function l({href:e,playlistId:t,playlistName:r,ownerName:n,className:l="",iconClassName:s}){let d=e||(t?`https://open.spotify.com/playlist/${encodeURIComponent(t)}`:null);if(!d)return null;let c=function(e,t){let r=e.trim()||"this playlist",i=t?.trim();return i&&"spotify"!==i.toLowerCase()?`Access "${r}" by ${i} on Spotify`:`Access "${r}" on Spotify`}(r,n);return(0,i.jsxs)(o(),{href:d,target:"_blank",rel:"nofollow noopener noreferrer",title:c,"aria-label":c,className:l,children:[(0,i.jsx)(a,{className:s}),(0,i.jsx)("span",{className:"sr-only",children:c})]})}},18405:(e,t,r)=>{r.d(t,{default:()=>w,useToast:()=>b});var i=r(95155),n=r(12115),o=r(47650),a=r(20063),l=r(69414),s=r(27878),d=r(62391),c=r(47673);function u(){let e=(0,a.usePathname)(),{locale:t}=(0,d.RV)(e??"/"),r=(0,c.E)(t??"en").shareChrome,[u,m]=(0,n.useState)(null),[b,w]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{let e=e=>{let t=e.detail;t?.url&&(w(!1),m({title:t.title||"Frogtoon",text:t.text,url:t.url}))},t=e=>{"Escape"===e.key&&m(null)};return window.addEventListener(l.PI,e),window.addEventListener("keydown",t),()=>{window.removeEventListener(l.PI,e),window.removeEventListener("keydown",t)}},[]),!u||"undefined"==typeof document)return null;let y=()=>{m(null),w(!1)},f=e=>{let t=(0,l.RY)(e,u.title,u.url);"email"===e?window.location.href=t:window.open(t,"_blank","noopener,noreferrer,width=600,height=520"),y()},p=async()=>{let e=(0,s.xr)(u.url,"copy");await (0,l.V$)(e)&&(w(!0),window.setTimeout(y,700))};return(0,o.createPortal)((0,i.jsxs)("div",{className:"fixed inset-0 flex items-end justify-center bg-black/55 p-4 sm:items-center",style:{zIndex:0x7fffffff},role:"presentation",children:[(0,i.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default","aria-label":r.closeShare,onClick:y}),(0,i.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":r.title,className:"relative z-10 w-full max-w-sm rounded-2xl border border-white/10 bg-[#171a21] p-4 shadow-2xl",children:[(0,i.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-3",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-white/50",children:r.title}),(0,i.jsx)("h2",{className:"mt-1 truncate text-base font-semibold text-white",children:u.title})]}),(0,i.jsx)("button",{type:"button",onClick:y,className:"rounded-full p-1.5 text-white/70 transition hover:bg-white/10 hover:text-white","aria-label":r.close,children:(0,i.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:(0,i.jsx)("path",{strokeLinecap:"round",d:"M6 6l12 12M18 6L6 18"})})})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,i.jsx)("button",{type:"button",onClick:()=>f("x"),className:"rounded-xl border border-white/10 bg-white/[0.05] px-3 py-2.5 text-sm font-medium text-white/90 hover:bg-white/10",children:"X"}),(0,i.jsx)("button",{type:"button",onClick:()=>f("facebook"),className:"rounded-xl border border-white/10 bg-white/[0.05] px-3 py-2.5 text-sm font-medium text-white/90 hover:bg-white/10",children:"Facebook"}),(0,i.jsx)("button",{type:"button",onClick:()=>f("whatsapp"),className:"rounded-xl border border-white/10 bg-white/[0.05] px-3 py-2.5 text-sm font-medium text-white/90 hover:bg-white/10",children:"WhatsApp"}),(0,i.jsx)("button",{type:"button",onClick:()=>f("email"),className:"rounded-xl border border-white/10 bg-white/[0.05] px-3 py-2.5 text-sm font-medium text-white/90 hover:bg-white/10",children:"Email"})]}),(0,i.jsx)("button",{type:"button",onClick:()=>{p()},className:"mt-3 w-full rounded-xl bg-white px-3 py-2.5 text-sm font-semibold text-black transition hover:bg-gray-200",children:b?r.linkCopied:r.copyLink})]})]}),document.body)}let m=(0,n.createContext)(void 0);function b(){let e=(0,n.useContext)(m);return e||{showToast:()=>{}}}function w({children:e}
1){let[t,r]=(0,n.useState)([]),o=(0,n.useCallback)((e,t="info",i)=>{let n=`${Date.now()}-${Math.random().toString(36).slice(2)}`;r(r=>[...r,{id:n,message:e,type:t,actionLabel:i?.actionLabel,onAction:i?.onAction}]),setTimeout(()=>{r(e=>e.filter(e=>e.id!==n))},2500)},[]);return(0,n.useEffect)(()=>{let e=e=>{try{let t=e.detail;if(t?.silent||t?.source==="hydrate")return;if(t?.item){let e=t.section||"library";o(`Added to ${"likedSongs"===e?"Liked Songs":e}: ${t.item.title||""}`,"success")}}catch{}},t=e=>{try{let t=e.detail;o(t?.message||"Saved only on this device","info")}catch{}};return window.addEventListener("frogtoon:addToLibrary:success",e),window.addEventListener("frogtoon:addToLibrary:localOnly",t),()=>{window.removeEventListener("frogtoon:addToLibrary:success",e),window.removeEventListener("frogtoon:addToLibrary:localOnly",t)}},[o]),(0,i.jsxs)(m.Provider,{value:{showToast:o},children:[e,(0,i.jsx)(u,{}),(0,i.jsx)("div",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-[100200] space-y-2 w-[90%] max-w-md pointer-events-none",children:t.map(e=>(0,i.jsx)("div",{className:`px-4 py-3 rounded-lg shadow-lg text-sm text-white backdrop-blur-md border pointer-events-auto
2              ${"success"===e.type?"bg-green-600/80 border-green-500/50":""}
3              ${"error"===e.type?"bg-red-600/80 border-red-500/50":""}
4              ${"info"===e.type?"bg-gray-800/80 border-white/10":""}
5            `,role:"status","aria-live":"polite",children:(0,i.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,i.jsx)("span",{children:e.message}),e.actionLabel&&e.onAction?(0,i.jsx)("button",{type:"button",onClick:()=>{e.onAction?.(),r(t=>t.filter(t=>t.id!==e.id))},className:"rounded-full border border-white/15 bg-white/10 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/20",children:e.actionLabel}):null]})},e.id))})]})}},32955:(e,t,r)=>{r.d(t,{S:()=>o,k:()=>a});var i=r(12115),n=r(44975);function o(){let e=(0,i.useContext)(n.g);if(!e)throw Error("useGlobalPlayer must be used within GlobalPlayerProvider");return e}function a(){return(0,i.useContext)(n.g)}},44975:(e,t,r)=>{r.d(t,{g:()=>i});let i=(0,r(12115).createContext)(null)},65488:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var i=r(95155),n=r(12115),o=r(20063),a=r(5917),l=r(6191),s=r(87620),d=r(27700),c=r(50824),u=r(18405),m=r(7263),b=r(62391),w=r(80039);function y({item:e,section:t,className:r="",iconClassName:y="w-5 h-5 text-white",title:f}){let p=(0,o.usePathname)(),{locale:h}=(0,b.RV)(p),x=(0,w.C)(h||"en").libraryButtons,{isLoggedIn:v}=(0,c.v)(),{showToast:g}=(0,u.useToast)(),[L,k]=(0,n.useState)(!1),[C,j]=(0,n.useState)(!1),E=(0,n.useCallback)(async()=>{if(!v)return void k(!1);try{let r=await s.clientLibraryManager.isInLibrary(e.id,e.type,t);k(r)}catch{k(!1)}},[v,e.id,e.type,t]);(0,n.useEffect)(()=>{let e=!1,t=null,r=null,i=()=>{e||E()};return"requestIdleCallback"in window?r=window.requestIdleCallback(i,{timeout:1500}):t=setTimeout(i,250),()=>{e=!0,t&&clearTimeout(t),null!==r&&"cancelIdleCallback"in window&&window.cancelIdleCallback(r)}},[E]),(0,n.useEffect)(()=>{let r=r=>{let i=r.detail;i?.section===t&&i.item?.id===e.id&&i.item?.type===e.type&&k(!0)},i=r=>{let i=r.detail;i?.section===t&&i.itemId===e.id&&i.itemType===e.type&&k(!1)};return window.addEventListener("frogtoon:addToLibrary:success",r),window.addEventListener("frogtoon:removeFromLibrary:success",i),()=>{window.removeEventListener("frogtoon:addToLibrary:success",r),window.removeEventListener("frogtoon:removeFromLibrary:success",i)}},[e.id,e.type,t]);let N=async r=>{if(r.preventDefault(),r.stopPropagation(),!v)return void(0,d.requestLibrarySignIn)(window.location.href);if(C)return;let i=!L;k(i),j(!0);try{i?await s.clientLibraryManager.addToLibrary(e,t)||k(!1):await s.clientLibraryManager.removeFromLibrary(e.id,e.type,t)||k(!0)}catch(e){k(!i),g(e instanceof Error?e.message:i?x.failedAdd:x.failedRemove,"error")}finally{j(!1)}},T=f||(L?(0,m.UL)(x.removeFromLibrary,{title:e.title}):(0,m.UL)(x.addToLibrary,{title:e.title}));return(0,i.jsx)("button",{type:"button",onClick:N,disabled:C,className:r,title:T,"aria-label":T,"aria-pressed":L,children:L?(0,i.jsx)(a.A,{className:y.replace("text-white","text-green-300")}):(0,i.jsx)(l.A,{className:y})})}},80039:(e,t,r)=>{r.d(t,{C:()=>o});var i=r(7263),n=r(62391);function o(e){return(0,i.OU)((0,n.QC)(e))}},94456:(e,t,r)=>{r.d(t,{L:()=>s});var i=r(12115),n=r(50824);let o={track:"likedSongs",album:"albums",playlist:"playlists",artist:"artists",genre:"genres",market:"markets",radio:"radioStations"},a=/^[A-Za-z0-9_-]{11}$/;function l(e){return"string"!=typeof e?"":e.trim().toLowerCase()}function s(e,t){let{isLoggedIn:s}=(0,n.v)(),[d,c]=(0,i.useState)(!1),u=(0,i.useMemo)(()=>e?o[e.type]:null,[e]),m=t?.matchHint?.artist,b=t?.matchHint?.title,w=(0,i.useMemo)(()=>{let e="string"==typeof m?m:"",t="string"==typeof b?b:"";return e&&t?{artist:e,title:t}:null},[m,b]),y=(0,i.useCallback)(async()=>
5{if(!e||!u||!s)return void c(!1);try{let{clientLibraryManager:t}=await Promise.all([r.e(583),r.e(3436)]).then(r.bind(r,87620)),i="radio"===e.type?"playlist":e.type;if("track"===e.type&&null!==w&&!a.test(e.id)){let r=await t.getLibrarySection(u),i=!!Array.isArray(r)&&r.some(t=>t.id===e.id||function(e,t){if("track"!==e.type)return!1;let r=l(e.title),i=l(e.artist),n=l(t.title),o=l(t.artist);return!!r&&!!i&&!!n&&!!o&&r===n&&i===o}(t,w));c(i);return}let n=await t.isInLibrary(e.id,i,u);c(n)}catch{c(!1)}},[s,e,u,w]);return(0,i.useEffect)(()=>{let e=!1,t=null,r=null,i=()=>{e||y()};return"requestIdleCallback"in window?r=window.requestIdleCallback(i,{timeout:1500}):t=setTimeout(i,250),()=>{e=!0,t&&clearTimeout(t),null!==r&&"cancelIdleCallback"in window&&window.cancelIdleCallback(r)}},[y]),(0,i.useEffect)(()=>{if(!e||!u)return;let t=t=>{let r=t.detail,i="radio"===e.type&&"radioStations"===u&&(r.item?.type==="radio"||r.item?.type==="playlist");if(r?.section===u&&r.item?.id===e.id&&(r.item?.type===e.type||i))return void c(!0);r?.section===u&&y()},r=t=>{let r=t.detail,i="radio"===e.type&&"radioStations"===u&&("radio"===r.itemType||"playlist"===r.itemType);if(r?.section===u&&r.itemId===e.id&&(r.itemType===e.type||i))return void c(!1);r?.section===u&&y()};return window.addEventListener("frogtoon:addToLibrary:success",t),window.addEventListener("frogtoon:addToLibrary:localOnly",t),window.addEventListener("frogtoon:removeFromLibrary:success",r),()=>{window.removeEventListener("frogtoon:addToLibrary:success",t),window.removeEventListener("frogtoon:addToLibrary:localOnly",t),window.removeEventListener("frogtoon:removeFromLibrary:success",r)}},[e,u,y]),{isSaved:d,primarySection:u,refreshSavedState:y}}}}]);

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.