PageSourceSearch

https://www.frogtoon.com/_next/static/chunks/309.3a0246fb30ef6417.js

js frogtoon.com collected 2026-10-02 10:40:13 UTC 5,976 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309,2690,5488],{2650:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(95155),a=r(52619),n=r.n(a);function l({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 o({href:e,playlistId:t,playlistName:r,ownerName:a,className:o="",iconClassName:s}){let c=e||(t?`https://open.spotify.com/playlist/${encodeURIComponent(t)}`:null);if(!c)return null;let d=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,a);return(0,i.jsxs)(n(),{href:c,target:"_blank",rel:"nofollow noopener noreferrer",title:d,"aria-label":d,className:o,children:[(0,i.jsx)(l,{className:s}),(0,i.jsx)("span",{className:"sr-only",children:d})]})}},65488:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var i=r(95155),a=r(12115),n=r(20063),l=r(5917),o=r(6191),s=r(87620),c=r(27700),d=r(50824),u=r(18405),y=r(7263),f=r(62391),m=r(80039);function p({item:e,section:t,className:r="",iconClassName:p="w-5 h-5 text-white",title:w}){let b=(0,n.usePathname)(),{locale:v}=(0,f.RV)(b),L=(0,m.C)(v||"en").libraryButtons,{isLoggedIn:g}=(0,d.v)(),{showToast:h}=(0,u.useToast)(),[k,C]=(0,a.useState)(!1),[E,T]=(0,a.useState)(!1),x=(0,a.useCallback)(async()=>{if(!g)return void C(!1);try{let r=await s.clientLibraryManager.isInLibrary(e.id,e.type,t);C(r)}catch{C(!1)}},[g,e.id,e.type,t]);(0,a.useEffect)(()=>{let e=!1,t=null,r=null,i=()=>{e||x()};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)}},[x]),(0,a.useEffect)(()=>{let r=r=>{let i=r.detail;i?.section===t&&i.item?.id===e.id&&i.item?.type===e.type&&C(!0)},i=r=>{let i=r.detail;i?.section===t&&i.itemId===e.id&&i.itemType===e.type&&C(!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 I=async r=>{if(r.preventDefault(),r.stopPropagation(),!g)return void(0,c.requestLibrarySignIn)(window.location.href);if(E)return;let i=!k;C(i),T(!0);try{i?await s.clientLibraryManager.addToLibrary(e,t)||C(!1):await s.clientLibraryManager.removeFromLibrary(e.id,e.type,t)||C(!0)}catch(e){C(!i),h(e instanceof Error?e.message:i?L.failedAdd:L.failedRemove,"error")}finally{T(!1)}},j=w||(k?(0,y.UL)(L.removeFromLibrary,{title:e.title}):(0,y.UL)(L.addToLibrary,{title:e.title}));return(0,i.jsx)("button",{type:"button",onClick:I,disabled:E,className:r,title:j,"aria-label":j,"aria-pressed":k,children:k?(0,i.jsx)(l.A,{className:p.replace("text-white","text-green-300")}):(0,i.jsx)(o.A,{className:p})})}},80039:(e,t,r)=>{r.d(t,{C:()=>n});var i=r(7263),a=r(62391);function n(e){return(0,i.OU)((0,a.QC)(e))}},94456:(e,t,r)=>{r.d(t,{L:()=>s});var i=r(12115),a=r(50824);let n={track:"likedSongs",album:"albums",playlist:"playlists",artist:"artists",genre:"genres",market:"markets",radio:"radioStations"},l=/^[A-Za-z0-9_-]{11}$/;function o(e){return"string"!=typeof e?"":e.trim().toLowerCase()}function s(e,t){let{isLoggedIn:s}=(0,a.v)(),[c,d]=(0,i.useState)(!1),u=(0,i.useMemo)(()=>e?n[e.type]:null,[e]),y=t?.matchHint?.artist,f=t?.matchHint?.title,m=(0,i.useMemo)(()=>{let e="string"==typeof y?y:"",t="string"==typeof f?f:"";return e&&t?{artist:e,title:t}:null},[y,f]),p=(0,i.useCallback)(async()=>
1{if(!e||!u||!s)return void d(!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!==m&&!l.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=o(e.title),i=o(e.artist),a=o(t.title),n=o(t.artist);return!!r&&!!i&&!!a&&!!n&&r===a&&i===n}(t,m));d(i);return}let a=await t.isInLibrary(e.id,i,u);d(a)}catch{d(!1)}},[s,e,u,m]);return(0,i.useEffect)(()=>{let e=!1,t=null,r=null,i=()=>{e||p()};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)}},[p]),(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 d(!0);r?.section===u&&p()},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 d(!1);r?.section===u&&p()};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,p]),{isSaved:c,primarySection:u,refreshSavedState: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.