PageSourceSearch

https://hubhopper.com/_next/static/chunks/pages/invite-link/[code]-c2ac53d6ad530e83.js

js hubhopper.com collected 2026-10-01 10:41:02 UTC 6,211 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[387],{30134:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invite-link/[code]",function(){return s(8e4)}])},21319:function(e,t,s){"use strict";s.d(t,{mR:function(){return r},v_:function(){return d}});var l=s(47184),i=s(34155);function n(e){return e.text().then(t=>{let s;try{s=t&&JSON.parse(t)}catch(e){return console.log("e",e),Promise.reject({status:500,message:"Oops, something went wrong! llllllll"})}if(!e.ok){let t=s?.error?.message?s.error.message:"Something went wrong";return Promise.reject({status:e.status,message:t})}return s})}function a(){let e="/api/";return(0,l.jU)()?e:e=i.env.INTERNAL_API_URL}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d=`?v=${+new Date}&page=${t}${l?"&"+l:""}`;return null!=s&&(d=`?v=${+new Date}&page=${t}&pageSize=${s}${l?"&"+l:""}`),fetch(`${a()}${e}${d}`,{method:"GET",headers:{"x-api-key":i.env.API_KEY,...r}}).then(n).catch(e=>{throw e})}function d(e,t){let s={method:"POST",headers:{"Content-Type":"application/json","x-api-key":i.env.API_KEY},body:JSON.stringify(t)};return fetch(`${a()}${e}`,s).then(n).catch(e=>{throw console.log(e),e})}},8e4:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return u},default:function(){return m}});var l=s(85893),i=s(21319),n=s(67294),a=s(39332),r=s(68562);let d=n.forwardRef(function(e,t){let{title:s,titleId:l,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":l},i),s?n.createElement("title",{id:l},s):null,n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))}),c=e=>{let{message:t}=e;return(0,l.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)(r.Z,{className:"h-5 w-5 text-green-400","aria-hidden":"true"})}),(0,l.jsx)("div",{className:"ml-3",children:(0,l.jsx)("p",{className:"text-sm font-medium text-green-800",children:t})}),(0,l.jsx)("div",{className:"ml-auto pl-3"})]})})},o=e=>{let{message:t}=e;return(0,l.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)(d,{className:"h-5 w-5 text-red-400","aria-hidden":"true"})}),(0,l.jsx)("div",{className:"ml-3",children:(0,l.jsx)("h3",{className:"text-sm font-medium text-red-800",children:t})})]})})};var u=!0;function m(e){let{podcast:t,privatePodcastDetails:s}=e,[r,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(!1),[x,h]=(0,n.useState)(!1),f=(0,a.usePathname)(),g=()=>{m(!1),h(!1)},v=async e=>{e.preventDefault(),g();let s=f.split("/")[2];try{let e=await (0,i.v_)(`/studio/podcasts/${t.id}/private/subscribers/invited`,{email:r,inviteCode:s});console.log(e),m("Subscribed successfully! Check your email")}catch(e){console.log(e),h("Sorry, an error occurred!")}};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8",children:[(0,l.jsxs)("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[(0,l.jsx)("img",{className:"mx-auto h-40 w-auto",src:t?.image,alt:"Your Company"}),(0,l.jsx)("h2",{className:"mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900",children:t?.title})]}),(0,l.jsx)("div",{className:"mt-10 sm:mx-auto sm:w-full sm:max-w-[480px]",children:(0,l.jsxs)("div",{className:"bg-white px-6 py-12 shadow-md rounded-lg sm:px-12",children:[(0,l.jsx)("p",{className:"pb-2 text-base leading-7 text-gray-700",children:"You've been invited to subscribe and listen to a private podcast."}),(0,l.jsxs)("div",{className:"relative my-5",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,l.jsx)("div",{className:"w-full border-t border-gray-200"})}),(0,l.jsx)("div",{className:"relative flex justify-center text-sm font-medium leading-6"})]}),(0,l.jsxs)("form",{className:"space-y-6",onSubmit:v,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900",children:"Email address"}),(0,l.jsx)("div",{className:"mt-2",children:(0,l.jsx)("input",{id:"email",name:"email",type:"email",value:r,onChange:e=>{d(e.target.value)},autoComplete:"email",required:!0,className:"block w-full rounded-md border-0 p-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6"})})]}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{type:"submit",className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Subscribe to this private podcast"})})]}),(u||x)&&(0,l.jsxs)("div",{className:"mt-4",children:[u&&(0,l.jsx)(c,{message:u}),x&&(0,l.jsx)(o,{message:x})]})]})})]})})}},68562:function(e,t,s){"use strict";var l=s(67294);let i=l.forwardRef(function(e,t){let{title:s,titleId:i,...n}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},n),s?l.createElement("title",{id:i},s):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))});t.Z=i}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=30134)}),_N_E=e.O()}]);

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.