PageSourceSearch

https://www.tooncityanimation.com/_next/static/chunks/8478.12412b89964c720c.js

js tooncityanimation.com collected 2026-10-02 23:35:03 UTC 16,353 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8478,286],{74338:function(e,t,n){var a=n(85333),r=n(6692),o=n(52322);n(2784);var l=n(6277),i=n(50678),s=n(30286),c=n(36847),u=n(46118),d=n(60328),f=n(20904),v=function(e){var t=e.children,n=e.className;return(0,o.jsx)("div",{className:(0,l.Z)("relative aspect-[5/3] w-full shrink-0 grow-0 basis-auto",n),children:t})},m=function(e){var t=e.children,n=e.className;return(0,o.jsx)("div",{className:(0,l.Z)("flex flex-col flex-nowrap gap-1 px-2 py-4 sm:px-3 sm:py-5",n),children:t})};t.ZP=function(e){var t=e.children,n=e.className,h=e.classNames,p=e.content,b=e.heading,g=e.label,x=e.link,y=e.media,_=e.publishedDate;return(0,o.jsx)("div",{className:(0,l.Z)("rounded-m shadow-card flex w-full flex-col items-start justify-start overflow-hidden bg-white",n,null==h?void 0:h.root),children:t||(0,o.jsxs)(o.Fragment,{children:[(0,d.hasMedia)(y)&&(0,o.jsx)(v,{className:null==h?void 0:h.media,children:(0,o.jsx)(d.default,{fill:!0,media:y})}),(0,o.jsxs)(m,{className:null==h?void 0:h.contentGroup,children:[_&&(0,o.jsx)("time",{className:"sr-only",dateTime:_}),g&&(0,o.jsx)(c.Z,{content:g}),b&&(0,o.jsx)(s.default,{as:"h3",className:(0,l.Z)("type-h5 mb-0",null==h?void 0:h.heading),heading:b}),p&&(0,o.jsx)(f.default,{as:"div",className:(0,l.Z)("type-body-sm [&_p]:type-body-sm [&_li]:type-body-sm [&_a]:type-body-sm",null==h?void 0:h.content),content:p}),(0,u.hasLink)(x)&&(0,o.jsxs)(u.default,(0,r._)((0,a._)({className:(0,l.Z)("mt-1.5 justify-start gap-1",null==h?void 0:h.link),linkStyle:"text"},x),{children:[null==x?void 0:x.label,(0,o.jsx)(i.R,{})]}))]})]})})}},72438:function(e,t,n){var a=n(85333),r=n(52322);n(2784);var o=n(6277),l=n(74338),i={post:l.ZP};t.Z=function(e){var t=e.cards,n=e.children,s=e.className,c=e.classNames,u=i[e.type]||l.ZP;return(0,r.jsx)("div",{className:(0,o.Z)(s,null==c?void 0:c.root),children:(0,r.jsx)("div",{className:(0,o.Z)("xs:grid-cols-2 grid grid-cols-1 gap-5 md:grid-cols-3",null==c?void 0:c.grid),children:n||(null==t?void 0:t.map(function(e){return(0,r.jsx)(u,(0,a._)({className:null==c?void 0:c.card},e),(null==e?void 0:e._id)||(null==e?void 0:e._key))}))})})}},48298:function(e,t,n){n.r(t),n.d(t,{default:function(){return er},postCardQuery:function(){return en},query:function(){return ea}});var a,r,o,l,i=n(26969),s=n(52322),c=n(2784),u=n(6277),d=n(85333),f=n(6692),v=n(2281),m=n(30286),h=n(36847),p=n(46118),b=n(20904),g=function(e){var t=e.className,n=e.classNames,a=e.content,r=e.heading,o=e.label,l=e.link,i=e.props,c=void 0===i?{}:i;if(!o&&!r&&!a&&!(0,p.hasLink)(l))return null;var g=c.content,x=void 0===g?{}:g,y=c.heading,_=void 0===y?{}:y,j=c.label,N=void 0===j?{}:j,k=c.link,w=void 0===k?{}:k,Z=(0,v._)(c,["content","heading","label","link"]);return(0,s.jsxs)("div",(0,f._)((0,d._)({className:(0,u.Z)("max-w-content align-center relative flex w-full flex-col flex-nowrap items-start justify-start gap-1.5",t,null==n?void 0:n.root)},Z),{children:[o&&(0,s.jsx)(h.Z,(0,d._)({className:(0,u.Z)("text-primary",null==n?void 0:n.label),content:o},N)),r&&(0,s.jsx)(m.default,(0,d._)({as:"h2",className:null==n?void 0:n.heading,heading:r},_)),a&&(0,s.jsx)(b.default,(0,d._)({as:"div",className:null==n?void 0:n.content,content:a},x)),(0,p.hasLink)(l)&&(0,s.jsx)(p.default,(0,d._)({className:(0,u.Z)("link-button",null==n?void 0:n.link)},l,w))]}))},x=n(39097),y=n.n(x),_=n(5632),j=function(e){var t=e.className,n=e.classNames,a=e.items,r=(0,_.useRouter)().asPath,o=(0,i._)(r.split("/").filter(function(e){return!/.*\[.*\].*/.test(e)&&e}),3),l=o[0],c=o[1],d=o[2];return(0,s.jsx)("div",{className:(0,u.Z)("box-[mx*-1] after:bg-gradient-to-left after:box-[width(x)] after:from-background-alt relative mb-4 overflow-hidden after:absolute after:bottom-0 after:right-0 after:top-0 after:block after:to-transparent",t,null==n?void 0:n.root),children:(0,s.jsxs)("div",{className:(0,u.Z)("box-px before:box-[left(x)] before:box-[right(x)] before:bg-primary relative flex flex-row flex-nowrap items-center justify-start overflow-y-hidden overflow-x-scroll [-ms-overflow-style:none] [scrollbar-width:none] before:absolute before:bottom-0 before:block before:h-px before:w-auto [&::-webkit-scrollbar]:hidden",null==n?void 0:n.inner),children:[(0,s.jsx)(y(),{className:(0,u.Z)("duration-fast type-md before:z-content before:bg-primary before:duration-fast after:bottom:0 hover:text-hover relative flex-[0_0_auto] cursor-pointer px-3 py-2 font-medium transition-all ease-in-out before:absolute before:bottom-0 before:left-0 before:block before:w-full before:transition-[height] before:ease-in-out after:absolute after:left-0 after:block after:h-px after:w-full hover:before:h-[0.375rem]",r==="/".concat(l)||"page"===c?"text-hover before:h-[0.375rem]":"text-primary before:h-px",null==n?void 0:n.item),href:"/".concat(l),children:"All"}),a.filter(function(e){return e.path}).map(function(e){var t=e.path,a=e.slug,o=e.title;return(0,s.jsx)(y(),{className:(0,u.Z)("duration-fast type-md before:z-content before:bg-primary before:duration-fast after:bottom:0 hover:text-hover relative flex-[0_0_auto] cursor-pointer px-3 py-2 font-medium transition-all ease-in-out before:absolute before:bottom-0 before:left-0 before:block before:w-full before:transition-[height] before:ease-in-out after:absolute after:left-0 after:block after:h-px after:w-full hover:before:h-[0.375rem]",r===t||"category"===c&&(null==a?void 0:a.current)===d?"text-hover before:h-[0.375rem]":"text-hover before:h-px",null==n?void 0:n.item),href:t,children:o},o)})]})})},N=n(44822),k=n(60509),w=n(34508),Z=n(81862),T=n(22970),q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.preview,r=void 0!==a&&a;return{data:(0,k.default)({preview:r}
1).fetch(e,n),params:n,preview:r,query:e}},D=(a=(0,Z._)(function(e){var t=arguments;return(0,T.Jh)(this,function(n){switch(n.label){case 0:return[4,q(e,t.length>1&&void 0!==t[1]?t[1]:{}).data];case 1:return[2,n.sent()]}})}),function(e){return a.apply(this,arguments)}),M={footer:{query:"*[_type == 'footer'][0] {\n      ...,\n      \"menu\": navigation->,\n    }"},navigation:{params:{slug:"primary-navigation"},query:"*[_type == 'navigation' && slug.current == $slug][0]"},siteMeta:{query:"*[_type == 'seoSite'][0] {\n      ...,\n      \"company\": *[_type=='companyInfo'][0]\n    }"}},P=function(e){var t={};return Object.keys(M).forEach(function(n,a){t[n]=e[a]}),t},$=function(e){var t=e.preview,n=void 0!==t&&t;return Object.keys(M).map(function(e){var t=M[e],a=t.params;return D(t.query,{params:a,preview:n})})},S=(r=(0,Z._)(function(e){var t,n,a,r,o;return(0,T.Jh)(this,function(l){switch(l.label){case 0:return t=e.docQueries,a=void 0===(n=e.withGlobals)||n,[4,Promise.allSettled((0,N._)(t.length>0?t.map(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).data;return e}):[]).concat((0,N._)(a?$({preview:!1}):[])))];case 1:return r=l.sent(),o=function(e,t){return"rejected"===e.status?(console.error("Query failed: ",e.reason),console.error("responses[".concat(t,"]:"),e),null):e.value},[2,r.map(o)]}})}),function(e){return r.apply(this,arguments)}),L=(o=(0,Z._)(function(e){var t,n,a,r,o,l,i,s,c,u;return(0,T.Jh)(this,function(f){return t=e.docQueries,n=e.resolvedData,r=void 0===(a=e.withGlobals)||a,i=void 0===(l=(o=n.slice(0,t.length).reduce(function(e,n,a){var r=t[a]||{},o=r.params,l=r.query;return l?{data:(0,N._)(e.data).concat([n]),queries:(0,N._)(e.queries).concat([{params:void 0===o?null:o,query:l}])}:e},{data:[],queries:[]})).data)?null:l,c=void 0===(s=o.queries)?null:s,u=r?P(n.slice(t.length)):void 0,[2,(0,d._)({data:i,queries:c},r?{global:u}:{})]})}),function(e){return o.apply(this,arguments)}),A=(l=(0,Z._)(function(e){var t,n,a,r=arguments;return(0,T.Jh)(this,function(o){switch(o.label){case 0:return t=!(r.length>1)||void 0===r[1]||r[1],[4,S({docQueries:n=Array.isArray(e)?e:[e],withGlobals:t})];case 1:return a=o.sent(),[2,L({docQueries:n,resolvedData:a,withGlobals:t})]}})}),function(e){return l.apply(this,arguments)}),C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return e.filter(Boolean).join(t)},E=function(e){var t=e.searchFilter,n=e.searchTerm,a=C([n&&'pt::text(content) match $searchTerm + "*"',n&&'excerpt match $searchTerm + "*"',n&&'title match $searchTerm + "*"',t&&t]," || ");return a&&"(".concat(a,")")},R=function(e){var t;return"object"==typeof e?null==e?void 0:null===(t=e.slug)||void 0===t?void 0:t.current:e},F=function(e){var t=e.category,n=e.categoryField,a=void 0===n?"category":n,r=e.exclude;return C([t&&"".concat(a,"->slug.current == '").concat(R(t),"'"),r&&"".concat(a,"->slug.current != '").concat(R(r),"'")]," && ")},z=function(e){var t=e.docFilter,n=C(["_type == $docType","!(_id in path('drafts.**'))",F(e),E(e),t&&t]," && ");return"*[".concat(n,"]")},G=function(e){var t=e.searchTerm,n=C([t&&'pt::text(content) match $searchTerm + "*"',t&&'excerpt match $searchTerm + "*"',t&&'title match $searchTerm + "*"'],",");return n&&"| score(".concat(n,")")},O=function(e){var t=C([e.searchTerm&&"_score desc","publishedDate desc","_createdAt desc"]);return t&&"| order(".concat(t,")")},Q=function(e){var t=e.foundCount,n=void 0!==t&&t,a=C([z(e),G(e),O(e),!n&&"[$start..$end]",en]," ");return n?"count(".concat(a,")"):a};(0,Z._)(function(e){var t,n,a,r,o;return(0,T.Jh)(this,function(l){return(t=e.category,n=e.pageType,a=e.params,r=e.perPage,o=e.preview,"article"===n)?[2,A(q('*[_type == $docType && slug.current == $slug] | order(_updatedAt desc) [0] {\n            ...,\n            image,\n            content[] {\n              ...,\n              image,\n              _type == "contentBlockReference" => {\n                ...,\n                "components": contentBlockReference->components[]\n              }\n            },\n            category->,\n            author->,\n            "relatedPosts": *[_type == $docType && category._ref == ^.category._ref && _id != ^._id] | order(publishedDate desc) [0...3] '.concat(en,",\n            ").concat('"seo": {\n  "seoTitle": coalesce(seo.seoTitle, title),\n  "seoDescription": coalesce(\n    seo.seoDescription,\n    array::join(string::split((pt::text(content)), "")[0..152], "") + "...",\n  ),\n  ...(seo)\n}',"\n          }\n        "),{params:a,preview:o}))]:(A([q(Q({category:t}),{params:(0,d._)({end:r-1,start:0},a),preview:o}),q("*[_type == \"categoryPost\" && !(_id in path('drafts.**'))]"),q('*[_type == "pageArchive" && archiveOf == $docType][0]',{params:a})]),[2])})});var B=(0,k.default)(),J=function(e){var t=e.params,n=e.query;return B.fetch(n,t)},V=function(e){var t,n,a,r=e.category,o=e.exclude,l=e.fallbackData,i=e.fetch,s=e.pagination,c=e.searchTerm,u=void 0===c?null:c,m=(0,v._)(e,["category","exclude","fallbackData","fetch","pagination","searchTerm"]),h=(s||{}).perPage,p=u?[]:l,b=Q({category:r,exclude:o,searchTerm:u}),g=(0,w.ZP)(void 0===i||i?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{params:(0,f._)((0,d._)({},s),{end:h*e+h-1,searchTerm:u,start:h*e}),query:b}}:null,J,(0,d._)({fallbackData:p},m)),x=g.data,y=void 0===x?[]:x,_=g.isLoading,j=g.size,k=_||j>0&&y&&void 0===y[j-1],Z=(null==y?void 0:null===(n=y[0])||void 0===n?void 0:n.length)===0,T=Z||y&&(null===(a=y[y.length-1])||void 0===a?void 0:a.length)<h;return(0,f._)((0,d._)({},g),{docs:(t=[]).concat.apply(t,(0,N._)(y)),isEmpty:Z,isLoadingMore:k,isReachingEnd:T})},I=n(28815),U={loadMore:"Load More Posts",loadingMore:"Loading More..."},W=function(e){var t=e.className,n=e.classNames,a=e.isLoadingMore,r=e.isReachingEnd,o=e.setSize,l=e.size,i=e.text,c=void 0===i?U:i;
1if(r)return null;var f=(0,d._)({},U,c),v=f.loadMore,m=f.loadingMore;return(0,s.jsx)("div",{className:(0,u.Z)("flex justify-center",t,null==n?void 0:n.root),children:(0,s.jsx)("button",{className:(0,u.Z)("link-button link-secondary",null==n?void 0:n.button),disabled:a,onClick:function(){return o(l+1)},children:a?m:v})})},H=(0,c.memo)(function(e){var t=e.cardType,n=e.category,a=e.exclude,r=e.fallbackData,o=e.pagination,l=e.revalidateOnMount,i=e.searchTerm,c=e.text,f=void 0===c?U:c,m=(null==o?void 0:o.perPage)||12,h=V({category:n,exclude:a,fallbackData:r,keepPreviousData:!0,pagination:o,revalidateOnFocus:!1,revalidateOnMount:void 0!==l&&l,searchTerm:i}),p=h.docs,b=h.isLoadingMore,g=(0,v._)(h,["docs","isLoadingMore"]);return(0,s.jsxs)("div",{className:(0,u.Z)("pb-6 transition-all delay-200 md:pb-8",b&&"opacity-50 !delay-0"),children:[(0,s.jsx)(I.default,{cards:p,type:void 0===t?"post":t}),(null==p?void 0:p.length)>=m&&(0,s.jsx)(W,(0,d._)({className:"mt-6 md:mt-8",isLoadingMore:b,text:f},g))]})}),K=n(50359),X=n(84205),Y=n(36449),ee=function(e){var t=e.className,n=e.classNames,a=e.setSearchValue,r=void 0===a?function(){}:a,o=(0,c.useRef)(),l=(0,i._)((0,c.useState)(""),2),d=l[0],f=l[1];return(0,s.jsx)("div",{className:(0,u.Z)("box-px filterDesktop:justify-end flex h-5 w-full justify-center md:px-0",t,null==n?void 0:n.root),children:(0,s.jsxs)("form",{className:(0,u.Z)("max-w-cols4 relative h-full w-full",null==n?void 0:n.form),onSubmit:function(e){e.preventDefault(),r(d)},children:[(0,s.jsx)("input",{className:(0,u.Z)(Y.TL,"h-full w-full",null==n?void 0:n.input),onChange:function(e){var t=e.target.value;f(t),t||r("")},placeholder:"Search",ref:o,type:"text"}),(0,s.jsx)("div",{className:(0,u.Z)("absolute bottom-0 right-0 top-0 flex items-center justify-center","hover:text-secondary cursor-pointer pl-1 pr-2 transition-colors",null==n?void 0:n.iconContainer),onClick:function(){o.current&&(d?(o.current.value="",r(o.current.value)):o.current.focus())},children:d?(0,s.jsx)(X.z,{className:(0,u.Z)(null==n?void 0:n.icon)}):(0,s.jsx)(K.d,{className:(0,u.Z)(null==n?void 0:n.icon)})})]})})},et=n(72438),en='{\n  _id,\n  publishedDate,\n  "media": {\n    "condition": "image",\n    "image": {\n      ...image,\n      "lqip": image.asset->metadata.lqip\n    },\n  },\n  "label": category->title,\n  "heading": title,\n  "content": excerpt,\n  "link": {\n    "condition": select(isExternal == true => "external", "internal"),\n    "url": select(isExternal == true => articleUrl, path),\n    "label": select(isExternal == true => "Visit Article", "Read More")\n  }\n}',ea='_type == "cardsBlock" => {\n  ...,\n  "cards": select(\n    condition == "mostRecent" => *[_type == ^.contentType] | order(_createdAt desc) [0...3] '.concat(en,',\n    condition == "selection" => posts[]-> ').concat(en,",\n    cards\n  )\n}"),er=function(e){var t=e.cardType,n=e.cards,a=e.categories,r=e.category,o=e.className,l=e.classNames,d=e.content,f=e.hasPagination,v=e.heading,m=e.infinite,h=e.label,p=e.link,b=e.pagination,x=f&&(null==b?void 0:b.totalPages)>1,y=(0,i._)((0,c.useState)(""),2),_=y[0],N=y[1];return(0,s.jsxs)("div",{className:(0,u.Z)(o,null==l?void 0:l.root),children:[(0,s.jsx)(g,{classNames:{content:null==l?void 0:l.content,heading:null==l?void 0:l.heading,label:null==l?void 0:l.label,link:null==l?void 0:l.link,root:(null==l?void 0:l.contentGroup)||"mb-5"},content:d,heading:v,label:h,link:p}),(void 0===m||m)&&x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ee,{className:"mb-2",setSearchValue:N}),!!(null==a?void 0:a.length)&&(0,s.jsx)(j,{items:a}),(0,s.jsx)(H,{cardType:void 0===t?"post":t,category:r,fallbackData:n,pagination:b,searchTerm:_})]}):(0,s.jsxs)(s.Fragment,{children:[!!(null==a?void 0:a.length)&&(0,s.jsx)(j,{items:a}),(0,s.jsx)(et.Z,{cards:n,className:null==l?void 0:l.cards})]})]})}},28815:function(e,t,n){n.r(t),n.d(t,{Card:function(){return a.ZP},CardsBlock:function(){return o.default}});var a=n(74338),r=n(72438),o=n(48298);t.default=r.Z},30286:function(e,t,n){n.r(t),n.d(t,{default:function(){return c},setStyleNone:function(){return s}});var a=n(52322);n(2784);
1var r=n(6277),o=n(20904),l=n(85333),i=n(6692),s=function(e){return Array.isArray(e)?e.map(function(e){return(0,i._)((0,l._)({},e),{style:"none"})}):e},c=function(e){var t=e.as,n=e.baseStyles,l=e.className,i=e.content,c=e.heading;return(0,a.jsx)(o.default,{as:void 0===t?"h2":t,baseStyles:void 0!==n&&n,className:(0,r.W)(l||"type-h2"),content:s(c||i)})}},36847:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(85333),r=n(6692),o=n(2281),l=n(52322);n(2784);var i=n(6277),s=function(e){var t=e.className,n=e.content,s=(0,o._)(e,["className","content"]);return(0,l.jsx)("span",(0,r._)((0,a._)({className:(0,i.Z)("type-overline",t)},s),{children:n}))}}}]);

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.