PageSourceSearch

https://www.castingdepot.com/_next/static/chunks/pages/p/[slug]-bc6ee095b13d2a585030.js

js castingdepot.com collected 2026-10-06 15:21:45 UTC 9,003 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7871],{21974:function(e,n,r){"use strict";var t=r(67294);n.Z=function(e){var n=e.condition,r=e.children,o=e.wrap;return n?t.cloneElement(o(r)):r}},7355:function(e,n,r){"use strict";r.d(n,{O:function(){return c}});var t=r(85893),o=r(94184),i=r.n(o),c=function(e){return(0,t.jsx)("div",{className:i()("w-full flex my-2 sm:justify-center pb-24 md:my-8",e.isUnauthenticated?"max-w-5xl":"md:mx-2",e.isFullWidth?"":"mx-auto "),children:(0,t.jsx)("div",{className:i()(e.isFullWidth?"md:min-w-full":"md:grid md:grid-cols-3 md:gap-2 lg:gap-4 xl:gap-6 md:min-w-full w-full","h-full lg:mt-0 px-1 md:p-0"),children:e.children})})}},78948:function(e,n,r){"use strict";r.d(n,{t:function(){return c}});var t=r(85893),o=r(94184),i=r.n(o);function c(e){var n=e.children;return(0,t.jsx)("div",{className:i()("mt-5 md:mt-0 md:col-span-2 p-0 sm:px-2 md:px-0 w-full"),children:n})}},82088:function(e,n,r){"use strict";r.d(n,{E:function(){return c}});var t=r(85893),o=r(94184),i=r.n(o);function c(e){var n=e.children,r=e.noBackground,o=e.dataCy;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:i()(r?"":"rounded bg-lighter-1 shadow","mb-4 rounded flex-col lg:m-2 lg:mt-0 md:flex fit-content w-full"),"data-cy":"".concat(o),children:n})})}},51935:function(e,n,r){"use strict";r.d(n,{D:function(){return l}});var t=r(85893),o=r(41664),i=r(19632),c=r(21503),d=r(38094);function l(e){var n=e.productions,r=void 0===n?[]:n,l=e.isLoading,s=e.error,a=e.title,u=void 0===a?"Productions":a,m=e.showButton,p=void 0!==m&&m,v=(0,d.x)().currentUser;return s?(0,t.jsx)(c.L,{error:s,statusCode:"500",refresh:!0,small:!0,subHeading:"There was an error trying to load the production list. Our engineers have been alerted."}):(0,t.jsxs)("section",{"data-cy":"production-list-card",className:"flex flex-col px-4 py-6 mb-4 rounded shadow bg-lighter-2",children:[(0,t.jsx)("h5",{className:"px-2 pb-2 font-bold border-b text-cool-gray-600 border-cool-gray-100",children:u}),l?Array.from(Array(5)).map((function(e,n){return(0,t.jsxs)("a",{"data-cy":"production-loading-list-card-item",className:"flex p-2 my-2 transition-colors duration-300 rounded animate-pulse",children:[(0,t.jsx)("span",{className:"object-cover w-12 h-12 rounded bg-cool-gray-100"}),(0,t.jsxs)("div",{className:"flex flex-col justify-center pl-4",children:[(0,t.jsx)("h5",{className:"bg-cool-gray-100 w-32 h-6 mb-1 rounded"}),(0,t.jsx)("p",{className:"w-20 h-4 text-xs rounded text-cool-gray-500 bg-cool-gray-100"})]})]},n)})):r.map((function(e){var n;return(0,t.jsx)(o.default,{href:"/p/".concat(null===e||void 0===e?void 0:e.slug),passHref:!0,children:(0,t.jsxs)("a",{"data-cy":"production-list-card-item",className:"flex p-2 my-2 transition-colors duration-300 rounded cursor-pointer menu-button hover:bg",children:[(0,t.jsx)(i.T,{sizes:"",className:"object-cover w-12 h-12 rounded",width:48,ar:"1:1",src:null===e||void 0===e||null===(n=e.cover)||void 0===n?void 0:n.key,alt:"Production cover image",imgixParams:{fit:"crop",crop:"edges"}}),(0,t.jsxs)("div",{className:"flex flex-col justify-center pl-4",children:[(0,t.jsx)("h5",{children:null===e||void 0===e?void 0:e.name}),(0,t.jsxs)("p",{className:"text-xs text-cool-gray-500",children:["by: ",null===e||void 0===e?void 0:e.production_company]})]})]})},null===e||void 0===e?void 0:e.id)})),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"mt-6 mb-4 border-cool-gray-100"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(o.default,{href:null!==v&&void 0!==v&&v.id?"/home":"/signup",children:(0,t.jsx)("a",{className:"uppercase font-bold text-sm text-muted-40",children:"Discover More"})})})]})]})}},99812:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return S},default:function(){return T}});var t=r(26265),o=r(85893),i=r(11163),c=r(98045),d=r(21503),l=r(53400),s=r(7994),a=r(38094),u=r(52209);function m(){var e=(0,s.dd)(),n=(0,a.x)(),r=n.currentUser;return!n.loadingUser&&null!==r&&void 0!==r&&r.id?null:(0,o.jsxs)("div",{className:"flex flex-col rounded bg-lighter-1 p-4 mb-4 shadow",children:[(0,o.jsx)("h3",{className:"text-cool-gray-500",children:"New To Casting Depot?"}),(0,o.jsxs)("div",{className:"mb-2",children:[(0,o.jsx)("p",{className:"text-xs font-medium text-cool-gray-900",children:"Sign up now to starting booking auditions!"}),(0,o.jsx)("div",{className:"w-full mt-6",children:(0,o.jsx)(u.zx,{dataCy:"signup-button",onClick:function(){e.current.openModal({title:"",children:(0,o.jsx)(l.B,{isModal:!0,isSignupProp:!0}),primaryAction:null})},theme:u.bn.special,children:"Sign Up"})})]})]})}var p=r(7355),v=r(78948),g=r(82088),f=r(32624),h=r(90165),x=r(92954),j=r(73652),y=r(27261);function b(){var e=(0,y.Z)(["\n  query getRecommendedProductions($input: GetRecommendedProductionsInput!) {\n    getRecommendedProductions(input: $input) {\n      production {\n        id\n        slug\n        name\n        production_company\n        cover {\n          id\n          cdn_uri\n          key\n        }\n      }\n    }\n  }\n"]);return b=function(){return e},e}var w=(0,r(16867).ZP)(b()),_=r(35441),N=r(12953),P=r(43790),O=r(37370),k=r(55894),q=r(51935);function C(e){var n,r,t=e.production,i=e.isAuthenticated,l=(0,a.x)().currentUser;var s=(0,c.ZP)(null!==l&&void 0!==l&&l.id&&null!==t&&void 0!==t&&t.id?"relatedProductions-".concat(null===t||void 0===t?void 0:t.id):null,(function(){var e,n,r;return(0,h._)((n=null===t||void 0===t?void 0:t.id,r=null!==(e=null===l||void 0===l?void 0:l.id)&&void 0!==e?e:x._,{query:w.loc.source.body,variables:{input:{productionId:n,limit:5,offset:0,userId:r}}}))})),u=s.data,y=s.error,b=void 0===u,C=u?u.getRecommendedProductions.map((function(e){return e.production})):[];return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.F,{title:t.name,description:"".concat(t.name," is now casting talent for ").concat(null===(n=t.roles)||void 0===n?void 0:n.length," ").concat((0,j._6)((null===(r=t.roles)||void 0===r?void 0:r.length)||0,"role")),url:"".concat(f._n,"/p/").concat(t.slug),image:"".concat(f.zh,"/api/og/image?type=production&slug=").concat(t.slug),images:[{url:"".concat(f.zh,"/api/og/image?type=production&slug=").concat(t.slug),width:1500,height:1e3,alt:"".concat(t.name," Production Cover Art")}]}),(0,o.jsxs)(p.O,{isUnauthenticated:!i,children:[(0,o.jsx)(v.t,{children:(0,o.jsx)(k._,{viewType:_.L.page,production:t,detailLevel:_.b.expanded})}
1),(0,o.jsxs)(g.E,{noBackground:!0,dataCy:"production-details-page",children:[(0,o.jsx)(P.E,{query:P.b,dataBuilder:O.g}),(0,o.jsx)(q.D,{isLoading:b,productions:C,error:y,title:"People also viewed",showButton:!0}),(0,o.jsx)(m,{})]})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.F,{title:"Production Not Found"}),(0,o.jsx)(d.L,{header:"Production Not Found",statusCode:"404",subHeading:"The production you requested could not be found. Please check the URL and try again."})]})}var D=r(72705),E=r(18861),F=r(10657);function U(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?U(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var S=!0,T=(0,D.W)((function(e){var n,r,t=e.initialData,l=(0,a.x)().currentUser,s=(0,i.useRouter)(),u=(null===t||void 0===t?void 0:t.slug)||(null===s||void 0===s||null===(n=s.query)||void 0===n?void 0:n.slug),m=(0,c.ZP)(u?"".concat(F.a.productionBySlug,"-").concat(u):null,(function(){return(0,h._)((0,E.K)({where:{slug:{_eq:u},_or:[{_and:[{slug:{_eq:u}},{accepting_submissions:{_eq:!0}},{verified_at:{_is_null:!1}}]},{_and:[{slug:{_eq:u}},{company:{company_users:{user_id:{_eq:(null===l||void 0===l?void 0:l.id)||x._}}}}]}]},skipMe:!(null!==l&&void 0!==l&&l.id),me:(null===l||void 0===l?void 0:l.id)||x._}))}),{initialData:{production:t?[t]:[]}}),p=m.data,v=m.error,g=p&&(null===p||void 0===p||null===(r=p.production)||void 0===r?void 0:r[0]);return v?(0,o.jsx)(d.L,{error:v,statusCode:"500",refresh:!0,small:!0,subHeading:"There was an error trying to load this production. Our engineers have been alerted."}):(0,o.jsx)(C,L(L({},e),{},{production:g}))}))},18861:function(e,n,r){"use strict";r.d(n,{K:function(){return i}});var t=r(92954),o=r(84985);function i(e){var n=e.where,r=e.skipMe,i=e.me;return{query:o.zD.loc.source.body,variables:{where:n,skipMe:r,me:i||t._}}}},52673:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[slug]",function(){return r(99812)}])}},function(e){e.O(0,[4027,2962,7439,8466,7320,7292,9031,5125,1859,3949,7454,3780,3880,8422,3400,731,7192,3432,8969,5894,9774,2888,179],(function(){return n=52673,e(e.s=n);var n}));var n=e.O();_N_E=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.