PageSourceSearch

https://www.transcribekit.com/_next/static/chunks/905-bb6882ccbe1c18ef.js

js transcribekit.com collected 2026-09-24 14:55:12 UTC 30,692 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[905],{929:function(e,t,n){n.d(t,{Z:function(){return a}});var s=n(2676),r=(n(5271),n(3730));function a(e){return(0,s.jsx)("div",{className:"px-4 py-2 text-left text-blue-700 bg-blue-100 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(r.Z,{className:"shrink-0 w-5 h-5 mr-2"}),(0,s.jsx)("span",{children:e.message})]})})}},8810:function(e,t,n){n.d(t,{Z:function(){return a},y:function(){return i}});var s=n(2676),r=n(1600);n(5271);function a(e){return(0,s.jsx)("div",{className:"max-w-3xl mx-auto px-4",children:(0,s.jsxs)("div",{className:"w-full px-4 py-2 text-sm text-left text-red-900 bg-red-100 rounded-lg",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(r.Z,{className:"w-5 h-5 mr-2"}),(0,s.jsx)("b",{children:"Oops, something went wrong"})]}),(0,s.jsx)("p",{className:"my-1",children:e.message}),(0,s.jsx)("p",{children:i})]})})}var i="This might be a temporary problem so please try again. Our developers have been alerted so if this keeps happening then please try again later after they've had time to fix it."},2122:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(2676),r=n(5271),a=n(7902),i=n(8808),o=n(5415),l=n(2546);function u(e){var t=e.config,n=e.setConfig,u=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useState)(!1),m=d[0],f=d[1],h=(0,l.D)(t);(0,r.useEffect)((function(){t&&t!==h&&f(!0)}),[t,h]);return(0,s.jsx)(a.u,{as:r.Fragment,show:!!t&&m,afterLeave:function(){return n(null)},children:(0,s.jsx)(i.V,{as:"div",static:!0,className:"fixed z-10 
1inset-0 overflow-y-auto",initialFocus:(null===t||void 0===t?void 0:t.showCancel)?c:u,open:!!t&&m,onClose:function(){},children:(0,s.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,s.jsx)(a.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(i.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,s.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,s.jsx)(a.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,s.jsxs)("div",{className:"relative inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,s.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,s.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,s.jsx)("div",{className:"mx-auto flex-shrink-0 sm:mx-0 ",children:(null===t||void 0===t?void 0:t.icon)?t.icon:(0,s.jsx)("div",{className:"h-12 w-12 sm:h-10 sm:w-10 rounded-full bg-red-100 flex items-center justify-center",children:(0,s.jsx)(o.Z,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})})}),(0,s.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,s.jsx)(i.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:null===t||void 0===t?void 0:t.title}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("span",{children:null===t||void 0===t?void 0:t.message}),null===t||void 0===t?void 0:t.element]})]})]})}),(0,s.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,s.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){t.onOkay&&t.onOkay(),f(!1)},ref:u,children:(null===t||void 0===t?void 0:t.okayText)||"OK"}),(null===t||void 0===t?void 0:t.showCancel)&&(0,s.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){t.onCancel&&t.onCancel(),f(!1)},ref:c,children:"Cancel"})]})]})})]})})})}},6286:function(e,t,n){n.d(t,{Z:function(){return l}});var s=n(2676),r=n(5271),a=n(7902),i=n(8808),o=n(1375);function l(e){var t=e.open,n=e.initialFocus,l=e.afterLeave,u=e.panelClassNames,c=e.children;return(0,s.jsx)(a.u.Root,{show:t,as:r.Fragment,afterLeave:l,children:(0,s.jsxs)(i.V,{as:"div",className:"relative z-10",initialFocus:n,onClose:function(){},children:[(0,s.jsx)(a.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}
1),(0,s.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",children:(0,s.jsx)(a.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,s.jsx)(i.V.Panel,{className:(0,o.AK)("relative bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full",u),children:c})})})})]})})}},223:function(e,t,n){n.d(t,{LC:function(){return i},i$:function(){return a}});var s=n(2676),r=(n(5271),n(1566));function a(e){var t=e.onClick;return(0,s.jsxs)("button",{type:"button",className:"flex-none text-white bg-[#4285F4] hover:bg-[#4285F4]/90 focus:ring-4 focus:outline-none focus:ring-[#4285F4]/50 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-[#4285F4]/55",onClick:function(){return t()},children:[(0,s.jsx)("span",{className:"mr-2 -ml-1",children:(0,s.jsx)(i,{providerId:r.F7.GOOGLE})}),(0,s.jsx)("span",{children:"Continue with Google"})]})}function i(e){switch(e.providerId){case r.F7.GOOGLE:return(0,s.jsx)("svg",{className:"w-4 h-4","aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"google",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})});case r.F7.FACEBOOK:return(0,s.jsx)("svg",{className:"w-4 h-4","aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"facebook-f",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M279.1 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.4 0 225.4 0c-73.22 0-121.1 44.38-121.1 124.7v70.62H22.89V288h81.39v224h100.2V288z"})})}}},7905:function(e,t,n){n.r(t),n.d(t,{AuthProvider:function(){return G},getGoogleUserIdFromParameter:function(){return M},useAuth:function(){return L},useRequireAuth:function(){return U}});var s=n(7135),r=n(5767),a=n(2676),i=n(5271),o=n(199),l=n(1566),u=n(895),c=n.n(u),d=n(2546),m=n(7258),f=n.n(m),h=n(1375),g=n(4836),x=n.n(g),p=n(2122),v=n(8808),b=n(6286),w=n(5565),y=n(929),j=n(8810);function C(e){var t=e.setMessageDialogConfig,n=e.setSignInState,u=e.reauthenticate,c=e.onSignedIn,d=(0,i.useState)(!1),m=d[0],f=d[1],g=(0,i.useState)(""),x=g[0],p=g[1],v=(0,i.useState)(""),b=v[0],w=v[1],y=(0,i.useState)(!1),C=y[0],N=y[1];function F(){return(F=(0,s.Z)((function(e){var n,s,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:e.preventDefault(),r.label=1;case 1:return r.trys.push([1,6,11,12]),f(!0),u?[4,(0,l.aF)(o.I.currentUser,l.w9.credential(x,b))]:[3,3];case 2:return n=r.sent(),[3,5];case 3:return[4,(0,l.e5)(o.I,x,b)];case 4:n=r.sent(),r.label=5;case 5:return c(n),[3,12];case 6:return s=r.sent(),(0,h.eK)(s),"auth/invalid-email"!==s.code?[3,7]:(t({title:"Could not sign in",message:"Please enter a valid email address"}),[3,10]);case 7:return"auth/wrong-password"!==s.code?[3,9]:[4,(0,l.Nr)(o.I,x)];case 8:return i=r.sent(),console.log("providers",JSON.stringify(i)),i.includes(l.F7.PASSWORD)?t({title:"Could not sign in",message:"Password is incorrect"}):t({title:"Password not set for "+x,message:"Please "+i.map((function(e){return I(e)})).join(" or ")}),[3,10];case 9:"auth/user-not-found"===s.code?t({title:"User not found: "+x,element:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{children:"If you "}),(0,a.jsx)("b",{children:"don't"}),(0,a.jsx)("span",{children:" have an account yet then please create one."})]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{children:"If you "}),(0,a.jsx)("b",{children:"do "}),(0,a.jsx)("span",{children:"have an account and have changed your email address then please make sure to sign in using the updated address."})]})]})}
1):"auth/user-mismatch"===s.code?t({title:"Could not authorize update",message:"You did not sign in with the correct user"}):t({title:"Could not sign in",message:j.y}),r.label=10;case 10:return[3,12];case 11:return f(!1),[7];case 12:return[2]}}))}))).apply(this,arguments)}return(0,a.jsx)("form",{onSubmit:function(e){return function(e){return F.apply(this,arguments)}(e)},children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email address"}),(0,a.jsx)("input",{type:"email",name:"email",id:"email",autoComplete:"username",className:"mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md",placeholder:"[email protected]",value:x,onChange:function(e){return p(e.target.value)}})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700",children:"Password"}),(0,a.jsx)("input",{type:C?"text":"password",name:"password",id:"password",autoComplete:C?"off":"current-password",className:"mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md",value:b,onChange:function(e){return w(e.target.value)}}),(0,a.jsxs)("div",{className:"mt-1 inline-flex items-start",children:[(0,a.jsx)("div",{className:"flex items-end h-5",children:(0,a.jsx)("input",{id:"showPassword",type:"checkbox",className:"focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded",checked:C,onChange:function(e){return N(e.target.checked)}})}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)("label",{htmlFor:"showPassword",className:"font-medium text-gray-700",children:"Show password"})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{type:"submit",className:"mt-2 w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-40 sm:w-auto sm:text-sm",disabled:m||!x||!b,children:"Sign in"}),(0,a.jsx)("a",{className:"ml-4 inline-flex items-center font-bold underline text-blue-500 hover:text-blue-700 hover:cursor-pointer",onClick:function(){return n("resetting_password")},children:"Forget your password?"})]})]})})}var N=n(8721);function F(e){var t=e.setMessageDialogConfig,n=e.onSignedUp,u=e.onCancel,c=(0,i.useState)(!1),d=c[0],m=c[1],f=(0,i.useState)(""),g=f[0],x=f[1],p=(0,i.useState)(""),v=p[0],b=p[1],w=(0,i.useState)(!1),y=w[0],C=w[1];function F(){return(F=(0,s.Z)((function(e){var s,a,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:e.preventDefault(),r.label=1;case 1:return r.trys.push([1,4,9,10]),m(!0),[4,(0,l.Xb)(o.I,g,v)];case 2:return s=r.sent(),[4,(0,N.pl)((0,N.JU)(o.db,"users/".concat(s.user.uid)),{viaSite:!0},{merge:!0})];case 3:return r.sent(),n(),[3,10];case 4:return a=r.sent(),(0,h.eK)(a),"auth/invalid-email"!==a.code?[3,5]:(t({title:"Could not create user",message:"Please enter a valid email address"}),[3,8]);case 5:return"auth/email-already-in-use"!==a.code?[3,7]:[4,(0,l.Nr)(o.I,g)];case 6:return i=r.sent(),t({title:"User already exists",message:"Please "+i.map((function(e){return I(e)})).join(" or ")}),[3,8];case 7:"auth/weak-password"===a.code?t({title:"Password is too weak",message:"Strong passwords have at least 6 characters and a mix of letters and numbers"}):t({title:"Could not create user",message:j.y}),r.label=8;case 8:return[3,10];case 9:return m(!1),[7];case 10:return[2]}}
1))}))).apply(this,arguments)}return(0,a.jsx)("form",{onSubmit:function(e){return function(e){return F.apply(this,arguments)}(e)},children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email address"}),(0,a.jsx)("input",{type:"email",name:"email",id:"email",autoComplete:"email",className:"mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md",placeholder:"[email protected]",value:g,onChange:function(e){return x(e.target.value)}})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"new-password",className:"block text-sm font-medium text-gray-700",children:"Choose a password"}),(0,a.jsx)("input",{type:y?"text":"password",name:"new-password",id:"new-password",autoComplete:y?"off":"new-password",className:"mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md",value:v,onChange:function(e){return b(e.target.value)}}),(0,a.jsxs)("div",{className:"mt-1 inline-flex items-start",children:[(0,a.jsx)("div",{className:"flex items-end h-5",children:(0,a.jsx)("input",{id:"showPassword",type:"checkbox",className:"focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded",checked:y,onChange:function(e){return C(e.target.checked)}})}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)("label",{htmlFor:"showPassword",className:"font-medium text-gray-700",children:"Show password"})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{type:"submit",className:"mt-2 w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-40 sm:w-auto sm:text-sm",disabled:d||!g||!v,children:"Create new user"}),(0,a.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-40 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return u()},disabled:d,children:"Cancel"})]})]})})}var k=n(223),S=n(2349);function O(e){var t=e.setMessageDialogConfig,n=e.onCancel,u=(0,i.useState)(!1),c=u[0],d=u[1],m=(0,i.useState)(""),f=m[0],g=m[1];function x(){return(x=(0,s.Z)((function(e){var s,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:e.preventDefault(),r.label=1;case 1:return r.trys.push([1,4,5,6]),d(!0),[4,(0,l.Nr)(o.I,f)];case 2:return s=r.sent(),console.log("providers",JSON.stringify(s)),0===s.length?(t({title:"User not found: "+f,message:"If you have changed your email address then please use the updated address"}),[2]):s.includes(l.F7.PASSWORD)?[4,(0,l.LS)(o.I,f)]:(t({title:"Password not set for "+f,message:"Please "+s.map((function(e){return I(e)})).join(" or ")}),[2]);case 3:return r.sent(),t({title:"Email sent",message:"We've sent you an email with instructions to reset your password. If you didn't get it then please check your Spam folder",icon:(0,a.jsx)("div",{className:"h-12 w-12 sm:h-10 sm:w-10 rounded-full bg-green-100 flex items-center justify-center",children:(0,a.jsx)(S.Z,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})})}),n(),[3,6];case 4:return i=r.sent(),(0,h.eK)(i),"auth/invalid-email"===i.code?t({title:"Could not send email",message:"Please enter a valid email address"}):"auth/user-not-found"===i.code?t({title:"User not found: "+f,message:"If you have changed your email address then please use the updated address"}):t({title:"Could not send email",message:j.y}),[3,6];case 5:return d(!1),[7];case 6:return[2]}}
1))}))).apply(this,arguments)}return(0,a.jsx)("form",{onSubmit:function(e){return function(e){return x.apply(this,arguments)}(e)},children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email address"}),(0,a.jsx)("input",{type:"email",name:"email",id:"email",autoComplete:"username",className:"mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md",placeholder:"[email protected]",value:f,onChange:function(e){return g(e.target.value)}})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{type:"submit",className:"mt-2 w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-40 sm:w-auto sm:text-sm",disabled:c||!f,children:"Send password reset email"}),(0,a.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-40 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return n()},disabled:c,children:"Cancel"})]})]})})}function P(e){var t=e.config,n=e.setConfig,u=(0,i.useState)(!1),c=u[0],m=u[1],f=(0,i.useState)(null),g=f[0],x=f[1],S=(0,i.useRef)(null),P=(0,d.D)(t),I=(0,i.useState)(),_=I[0],E=I[1];function G(){return(G=(0,s.Z)((function(e){var n,s,a,i,u;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,12]),t.reauthenticateUser?[4,(0,l.bc)(o.I.currentUser,e)]:[3,2];case 1:return s=r.sent(),[3,4];case 2:return[4,(0,l.rh)(o.I,e)];case 3:s=r.sent(),r.label=4;case 4:return n=s,t.reauthenticateUser?[3,7]:(a=(0,N.JU)(o.db,"users/".concat(n.user.uid)),[4,(0,N.QT)(a)]);case 5:return(null===(i=r.sent().data())||void 0===i?void 0:i.viaAddOn)||(null===i||void 0===i?void 0:i.viaSite)?[3,7]:[4,(0,N.pl)(a,{viaSite:!0},{merge:!0})];case 6:r.sent(),r.label=7;case 7:return t.afterAuthenticate&&t.afterAuthenticate(n),t.doNotCloseAfterAuth||m(!1),[3,12];case 8:return"auth/cancelled-popup-request"===(u=r.sent()).code||"auth/popup-closed-by-user"===u.code||"auth/user-cancelled"===u.code?(console.error(u),[2]):((0,h.eK)(u),"auth/account-exists-with-different-credential"!==u.code?[3,10]:[4,U(u,e.providerId)]);case 9:return r.sent(),[3,11];case 10:"auth/user-mismatch"===u.code?x({title:"Could not authorize update",message:"You did not sign in with the correct user"}):x({title:"Could not sign in",message:j.y}),r.label=11;case 11:return[3,12];case 12:return[2]}}
1))}))).apply(this,arguments)}function U(e,t){return Z.apply(this,arguments)}function Z(){return Z=(0,s.Z)((function(e,t){var a,i,u;return(0,r.__generator)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,(0,l.Nr)(o.I,e.customData.email)];case 1:return a=c.sent(),i=A(t,e),n({title:"Link ".concat(D(t)," sign-in"),message:"You previously signed into ".concat(e.customData.email," using a different method. For security reasons please use one of the options below to continue"),allowedProviders:a,doNotCloseAfterAuth:!0,afterAuthenticate:function(){var e=(0,s.Z)((function(e){var t;return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),console.log("Linking credential",i),[4,(0,l.ZJ)(e.user,i)];case 1:return n.sent(),m(!1),[3,3];case 2:return t=n.sent(),(0,h.eK)(t),"auth/email-already-in-use"===t.code?x({title:"Could not link sign-in",message:"You did not sign in with the correct user"}):x({title:"Could not link sign-in",message:j.y}),[3,3];case 3:return[2]}}))}));return function(t){return e.apply(this,arguments)}}()}),[3,3];case 2:return u=c.sent(),(0,h.eK)(u),x({title:"Could not sign in",message:j.y}),[3,3];case 3:return[2]}}
1))})),Z.apply(this,arguments)}return(0,i.useEffect)((function(){t!==P&&(E(null),t&&m(!0))}),[t,P]),(0,a.jsxs)(b.Z,{open:!!t&&c,initialFocus:S,children:[(0,a.jsx)(p.Z,{config:g,setConfig:x}),(0,a.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,a.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,a.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,a.jsx)(w.Z,{className:"h-6 w-6 text-blue-600","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"mt-3 w-full text-center min-w-0 sm:mt-0 sm:ml-4 sm:text-left",children:[(0,a.jsx)(v.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:(null===t||void 0===t?void 0:t.title)||"Sign In / Sign Up"}),(0,a.jsxs)("div",{className:"mt-3 pb-3 space-y-2 bg-white",children:[(null===t||void 0===t?void 0:t.message)&&(0,a.jsx)(y.Z,{message:t.message}),(null===t||void 0===t?void 0:t.afterAuthenticate)&&!(null===t||void 0===t?void 0:t.allowedProviders)?(0,a.jsx)("p",{children:"Loading..."}):(0,a.jsxs)(a.Fragment,{children:[(!(null===t||void 0===t?void 0:t.allowedProviders)||t.allowedProviders.includes(l.F7.GOOGLE))&&(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(k.i$,{onClick:function(){var e=new l.hJ,n=M();n?e.setCustomParameters({login_hint:n,prompt:"select_account"}):t.reauthenticateUser?e.setCustomParameters({login_hint:t.reauthenticateUser.providerData.find((function(e){return e.providerId===l.F7.GOOGLE})).uid,prompt:"select_account"}):(t.switchAccounts||(0,h.h2)("transcribekit-signed-out"))&&e.setCustomParameters({prompt:"select_account"}),function(e){G.apply(this,arguments)}(e)}}),!(null===t||void 0===t?void 0:t.afterAuthenticate)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"\ud83e\udc44"}),(0,a.jsx)("span",{className:"text-center",children:(0,a.jsxs)("i",{children:[(0,a.jsx)("span",{children:"Required to access files in "}),(0,a.jsx)("b",{children:"Google\xa0Drive"})]})})]})]}),!_&&(!(null===t||void 0===t?void 0:t.allowedProviders)||t.allowedProviders.includes(l.F7.PASSWORD))&&(0,a.jsxs)(a.Fragment,{children:[(!(null===t||void 0===t?void 0:t.allowedProviders)||t.allowedProviders.length>1)&&(0,a.jsx)("p",{className:"py-4 text-lg text-gray-500",children:"\u2014\u2014\u2014\u2014\u2014 OR \u2014\u2014\u2014\u2014\u2014"}),(0,a.jsx)(C,{setMessageDialogConfig:x,setSignInState:E,reauthenticate:!!(null===t||void 0===t?void 0:t.reauthenticateUser),onSignedIn:function(e){t.afterAuthenticate&&t.afterAuthenticate(e),t.doNotCloseAfterAuth||m(!1)}}),!(null===t||void 0===t?void 0:t.allowedProviders)&&(0,a.jsx)("div",{children:(0,a.jsx)("a",{className:"mr-4 inline-flex items-center font-bold underline text-blue-500 hover:text-blue-700 hover:cursor-pointer",onClick:function(){return E("signing_up")},children:"Create a new user"})})]}),"signing_up"===_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"py-4 text-lg text-gray-500",children:"\u2014\u2014\u2014\u2014\u2014 OR \u2014\u2014\u2014\u2014\u2014"}),(0,a.jsx)(F,{setMessageDialogConfig:x,onSignedUp:function(){return m(!1)},onCancel:function(){return E(null)}})]}),"resetting_password"===_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"py-4 text-lg text-gray-500",children:"\u2014\u2014\u2014\u2014\u2014 OR \u2014\u2014\u2014\u2014\u2014"}),(0,a.jsx)(O,{setMessageDialogConfig:x,onCancel:function(){return E(null)}})]})]})]})]})]})}),!1!==(null===t||void 0===t?void 0:t.showCancel)&&(0,a.jsx)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:(0,a.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){t.reauthenticateUser||t.switchAccounts?m(!1):n({showCancel:!1})},ref:S,children:"Cancel"})})]})}function D(e){switch(e){case l.F7.GOOGLE:return"Google";case l.F7.FACEBOOK:return"Facebook";case l.F7.PASSWORD:return"Email/Password";default:return e}}function I(e){switch(e){case l.F7.GOOGLE:return'click "Continue with Google"';case l.F7.FACEBOOK:return'click "Continue with Facebook"';case l.F7.PASSWORD:return"sign in with your email and password";default:return e}}function A(e,t){switch(e){case l.F7.GOOGLE:return l.hJ.credentialFromError(t);case l.F7.FACEBOOK:return l._O.credentialFromError(t);default:throw new Error("Unhandled: "+e)}}var _=n(3384),E=(0,i.createContext)(null);function G(e){var t=e.children,n=function(){var e=(0,i.useState)({status:"loading"}),t=e[0],n=e[1],a=(0,i.useRef)(t),u=(0,i.useState)(null),d=u[0],m=u[1],g=(0,i.useState)(null),p=g[0],v=g[1];return(0,i.useEffect)((function(){a.current=t})),(0,i.useEffect)((function(){function e(e){return t.apply(this,arguments)}function t(){return(t=(0,s.Z)((function(e){var t,s;function i(e){K(e)&&((0,h.eK)("Google account mismatch occurred"),m({title:"Wrong user signed in",message:"Please sign in with the correct user to proceed. "+"(Currently signed in as: ".concat(e.email||"[email not set]",")"),onOkay:function(){return v({allowedProviders:[l.F7.GOOGLE],afterAuthenticate:function(e){return i(e.user)},showCancel:!1})}}))}return(0,r.__generator)(this,(function(r){return e&&(f().set("transcribekit-auth","true",{expires:1}),f().remove("transcribekit-signed-out"),"localhost"!==location.hostname&&(_.av({id:e.uid,email:e.email}),x().identify(e.uid,{name:e.displayName,email:e.email}))),t=a.current.status,(s=e?"signed_in":"signed_out")!==t&&"signed_in"===s&&(i(e),e.providerData.filter((function(e){return e.providerId===l.F7.GOOGLE})).length>1&&(0,h.eK)("User has multiple Google accounts linked")),n(e&&K(e)?{status:"loading"}:{status:s,user:e}),[2]}))}
1))).apply(this,arguments)}var i=(0,l.Aj)(o.I,function(){var t=(0,s.Z)((function(t){var n;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,e(t)];case 1:return s.sent(),[3,3];case 2:return n=s.sent(),(0,h.eK)(n),[3,3];case 3:return[2]}}))}));return function(e){return t.apply(this,arguments)}}());return function(){return i()}}),[]),{state:t,switchAccounts:(0,s.Z)((function(){var e;return(0,r.__generator)(this,(function(t){return e=M(),v({title:"Switch User",switchAccounts:!0,allowedProviders:e?[l.F7.GOOGLE]:void 0}),[2]}))})),signOut:(0,s.Z)((function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,l.w7)(o.I)];case 1:return e.sent(),f().remove("transcribekit-auth"),f().set("transcribekit-signed-out","true",{expires:1}),[4,c().push("/")];case 2:return e.sent(),[2]}}))})),dialogConfig:d,setDialogConfig:m,signInDialogConfig:p,setSignInDialogConfig:v}}();return(0,a.jsxs)(E.Provider,{value:n,children:[t,(0,a.jsx)(p.Z,{config:n.dialogConfig,setConfig:n.setDialogConfig}),(0,a.jsx)(P,{config:n.signInDialogConfig,setConfig:n.setSignInDialogConfig})]})}var U=function(){return Z()},Z=function(){var e=L(),t=(0,d.D)(null===e||void 0===e?void 0:e.state);return(0,i.useEffect)((function(){if((!t||"loading"===t.status)&&"signed_out"===(null===e||void 0===e?void 0:e.state.status)){var n=M();e.setSignInDialogConfig({showCancel:!1,allowedProviders:n?[l.F7.GOOGLE]:void 0})}}),[e,t]),e},L=function(){return(0,i.useContext)(E)};function K(e){var t=M();if(!t)return!1;var n=e.providerData.find((function(e){return e.providerId===l.F7.GOOGLE}));return!n||n.uid!==t}function M(){var e=new URLSearchParams(location.search);return e.has("g-user")?e.get("g-user"):e.has("state")?JSON.parse(decodeURIComponent(e.get("state"))).userId:void 0}},199:function(e,t,n){n.d(t,{I:function(){return s},db:function(){return r},t:function(){return a}});var s,r,a,i=n(5350),o=n(1566),l=n(8721),u=n(2664);if((0,i.C6)().length)s=(0,o.v0)(),r=(0,l.ad)(),a=(0,u.cF)();else{var c=(0,i.ZF)({apiKey:"AIzaSyBxdl9QwkdH15ayH2ea6BOjU9wWqDMUJF0",authDomain:"auth.transcribekit.com",projectId:"transcribe-299710",storageBucket:"gs://transcribe-299710.appspot.com"});s=(0,o.v0)(c),r=(0,l.ad)(c),a=(0,u.cF)(c),"localhost"===location.hostname&&((0,u.a1)(a,"localhost",9199),(0,l.at)(r,"localhost",8080))}},2546:function(e,t,n){n.d(t,{D:function(){return r}});var s=n(5271);function r(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}},1375:function(e,t,n){n.d(t,{AK:function(){return c},DN:function(){return o},Je:function(){return l},Oo:function(){return i},Ox:function(){return m},aA:function(){return u},eK:function(){return f},gz:function(){return r},h2:function(){return d},n4:function(){return a}});var s=n(3384);function r(e){var t=Math.abs(e),n=Math.floor(t/60/60);t-=60*n*60;var s=Math.floor(t/60);t-=60*s;var r=e<0?"-":"";return n&&(r+="".concat(n,"h ")),(s||n&&t)&&(r+="".concat(s,"m ")),(t||!n&&!s)&&(r+="".concat(t,"s")),r.trim()}function a(e){var t=new Date;return t.setHours(t.getHours()+e),t}function i(e){var t=new Date;return t.setMinutes(t.getMinutes()+e),t}function o(e){var t=new Date;return t.setMinutes(t.getMinutes()-e),t}function l(e){return(Date.now()-e.getTime())/1e3/60}function u(e){return(Date.now()-e.getTime())/1e3}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function d(e){return"object"===typeof document&&document.cookie&&document.cookie.includes(e)}function m(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ123456789",t="",n=0;n<20;n++){var s=Math.floor(Math.random()*e.length);t+=e.charAt(s)}return t}function f(e){"localhost"===location.hostname?console.error(e):s.Tb(e)}}}]);

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.