(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8580],{18481:(e,s,t)=>{"use strict";t.d(s,{ShareAuthForm:()=>d});var a=t(4624),r=t(99356),n=t(3239);let o=(0,t(45804).A)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);var c=t(49411),i=t(7911);let l=(0,i.createServerReference)("60fe906bc99832ccdd083057c681ca18e68bcf83ce",i.callServer,void 0,i.findSourceMapURL,"submitSharePasswordAction");function d(e){let{shareId:s,error:t}=e,i=(0,c.c)("app"),[d,u]=(0,r.useTransition)();return(0,a.jsxs)("form",{action:e=>u(async()=>{var t;await l(s,(null!=(t=e.get("password"))?t:"").toString())}),className:"space-y-2",children:[(0,a.jsx)("label",{className:"block text-xs text-muted-foreground",htmlFor:"pw-".concat(s),children:i("share.auth.passwordLabel")}),(0,a.jsx)("input",{id:"pw-".concat(s),name:"password",type:"password",autoFocus:!0,className:"w-full rounded border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-violet-400",placeholder:"••••••••"}),"bad"===t&&(0,a.jsx)("p",{className:"text-xs text-destructive",children:i("share.auth.badPassword")}),(0,a.jsxs)("button",{type:"submit",disabled:d,className:"w-full rounded bg-violet-600 px-3 py-2 text-sm font-medium text-white hover:bg-violet-700 disabled:opacity-50 inline-flex items-center justify-center gap-2",children:[d?(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"}),i("share.auth.open")]})]})}},55861:(e,s,t)=>{Promise.resolve().then(t.bind(t,80527)),Promise.resolve().then(t.bind(t,18481)),Promise.resolve().then(t.t.bind(t,54400,23))}},e=>{e.O(0,[4400,9411,5097,527,4933,146,7358],()=>e(e.s=55861)),_N_E=e.O()}]);