1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408810,121391,125379,884911,757335,134777,300105,974561,907251,e=>{"use strict";var t=e.i(648417),a=e.i(461945),i=e.i(122724),r=e.i(119836),o=e.i(742598),l=e.i(484278),n=e.i(179086),s="horizontal",d=["horizontal","vertical"],c=i.forwardRef((e,a)=>{var i;let{decorative:r,orientation:o=s,...l}=e,c=(i=o,d.includes(i))?o:s;return(0,t.jsx)(n.Primitive.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...l,ref:a})});c.displayName="Separator";var u=e.i(428118),p="Toggle",g=i.forwardRef((e,a)=>{let{pressed:i,defaultPressed:o,onPressedChange:l,...s}=e,[d,c]=(0,u.useControllableState)({prop:i,onChange:l,defaultProp:o??!1,caller:p});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:a,onClick:(0,r.composeEventHandlers)(e.onClick,()=>{e.disabled||c(!d)})})});g.displayName=p;var h=e.i(80441),m="ToggleGroup",[f,x]=(0,o.createContextScope)(m,[l.createRovingFocusGroupScope]),v=(0,l.createRovingFocusGroupScope)(),b=i.default.forwardRef((e,a)=>{let{type:i,...r}=e;if("single"===i)return(0,t.jsx)(j,{...r,ref:a});if("multiple"===i)return(0,t.jsx)(S,{...r,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)});b.displayName=m;var[_,T]=f(m),j=i.default.forwardRef((e,a)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},...n}=e,[s,d]=(0,u.useControllableState)({prop:r,defaultProp:o??"",onChange:l,caller:m});return(0,t.jsx)(_,{scope:e.__scopeToggleGroup,type:"single",value:i.default.useMemo(()=>s?[s]:[],[s]),onItemActivate:d,onItemDeactivate:i.default.useCallback(()=>d(""),[d]),children:(0,t.jsx)(C,{...n,ref:a})})}),S=i.default.forwardRef((e,a)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},...n}=e,[s,d]=(0,u.useControllableState)({prop:r,defaultProp:o??[],onChange:l,caller:m}),c=i.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),p=i.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(_,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:p,children:(0,t.jsx)(C,{...n,ref:a})})});b.displayName=m;var[y,w]=f(m),C=i.default.forwardRef((e,a)=>{let{__scopeToggleGroup:i,disabled:r=!1,rovingFocus:o=!0,orientation:s,dir:d,loop:c=!0,...u}=e,p=v(i),g=(0,h.useDirection)(d),m={role:"group",dir:g,...u};return(0,t.jsx)(y,{scope:i,rovingFocus:o,disabled:r,children:o?(0,t.jsx)(l.Root,{asChild:!0,...p,orientation:s,dir:g,loop:c,children:(0,t.jsx)(n.Primitive.div,{...m,ref:a})}):(0,t.jsx)(n.Primitive.div,{...m,ref:a})})}),A="ToggleGroupItem",I=i.default.forwardRef((e,a)=>{let r=T(A,e.__scopeToggleGroup),o=w(A,e.__scopeToggleGroup),n=v(e.__scopeToggleGroup),s=r.value.includes(e.value),d=o.disabled||e.disabled,c={...e,pressed:s,disabled:d},u=i.default.useRef(null);return o.rovingFocus?(0,t.jsx)(l.Item,{asChild:!0,...n,focusable:!d,active:s,ref:u,children:(0,t.jsx)(k,{...c,ref:a})}):(0,t.jsx)(k,{...c,ref:a})});I.displayName=A;var k=i.default.forwardRef((e,a)=>{let{__scopeToggleGroup:i,value:r,...o}=e,l=T(A,i),n={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===l.type?n:void 0;
1return(0,t.jsx)(g,{...s,...o,ref:a,onPressedChange:e=>{e?l.onItemActivate(r):l.onItemDeactivate(r)}})}),N="Toolbar",[M,E]=(0,o.createContextScope)(N,[l.createRovingFocusGroupScope,x]),R=(0,l.createRovingFocusGroupScope)(),P=x(),[z,B]=M(N),G=i.forwardRef((e,a)=>{let{__scopeToolbar:i,orientation:r="horizontal",dir:o,loop:s=!0,...d}=e,c=R(i),u=(0,h.useDirection)(o);return(0,t.jsx)(z,{scope:i,orientation:r,dir:u,children:(0,t.jsx)(l.Root,{asChild:!0,...c,orientation:r,dir:u,loop:s,children:(0,t.jsx)(n.Primitive.div,{role:"toolbar","aria-orientation":r,dir:u,...d,ref:a})})})});G.displayName=N;var U="ToolbarSeparator";i.forwardRef((e,a)=>{let{__scopeToolbar:i,...r}=e,o=B(U,i);return(0,t.jsx)(c,{orientation:"horizontal"===o.orientation?"vertical":"horizontal",...r,ref:a})}).displayName=U;var F=i.forwardRef((e,a)=>{let{__scopeToolbar:i,...r}=e,o=R(i);return(0,t.jsx)(l.Item,{asChild:!0,...o,focusable:!e.disabled,children:(0,t.jsx)(n.Primitive.button,{type:"button",...r,ref:a})})});F.displayName="ToolbarButton",i.forwardRef((e,a)=>{let{__scopeToolbar:i,...o}=e,s=R(i);return(0,t.jsx)(l.Item,{asChild:!0,...s,focusable:!0,children:(0,t.jsx)(n.Primitive.a,{...o,ref:a,onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{" "===e.key&&e.currentTarget.click()})})})}).displayName="ToolbarLink";var L="ToolbarToggleGroup",D=i.forwardRef((e,a)=>{let{__scopeToolbar:i,...r}=e,o=B(L,i),l=P(i);return(0,t.jsx)(b,{"data-orientation":o.orientation,dir:o.dir,...l,...r,ref:a,rovingFocus:!1})});D.displayName=L;var O=i.forwardRef((e,a)=>{let{__scopeToolbar:i,...r}=e,o=P(i),l={__scopeToolbar:e.__scopeToolbar};return(0,t.jsx)(F,{asChild:!0,...l,children:(0,t.jsx)(I,{...o,...r,ref:a})})});O.displayName="ToolbarToggleItem";var H=e.i(453484),V=e.i(341331),$=e.i(45994);let K=(0,i.forwardRef)((e,i)=>{let{className:r,asChild:o,"data-testid":l="toolbar-card",...n}=e,s=o?a.Slot:"div";return(0,t.jsx)(s,{ref:i,...n,"data-testid":l,className:(0,H.cx)("inline-flex","gap-0.5","align-bottom","ring-1","ring-inset","rounded-lg","p-1","ring-subtle","bg-default",r)})}),W=(0,i.forwardRef)((e,a)=>{let{className:i,"data-testid":r="toolbar-root",...o}=e;return(0,t.jsx)(G,{...o,ref:a,"data-testid":r,className:(0,H.cx)("flex","gap-0.5",i)})}),Q=(0,i.forwardRef)((e,a)=>{let{"data-testid":i,...r}=e;return(0,t.jsx)(F,{asChild:!0,children:(0,t.jsx)(V.Button,{ref:a,variant:"ghost","data-testid":i??"toolbar-button",...r})})}),q=(0,i.forwardRef)((e,a)=>{let{className:i,"data-testid":r="toolbar-toggle-group",...o}=e;return(0,t.jsx)(D,{...o,ref:a,"data-testid":r,className:(0,H.cx)("flex","gap-0.5","items-center","gap-1.5","text-sm",i)})}),Y=(0,i.forwardRef)((e,a)=>{let{value:i,disabled:r,"data-testid":o,...l}=e,n=o??`toolbar-icon-toggle-item-${i}`;return(0,t.jsx)(O,{asChild:!0,value:i,disabled:r,children:(0,t.jsx)($.IconButton,{ref:a,variant:"ghost","data-testid":n,...l})})});e.s(["ToolbarButton",0,Q,"ToolbarCard",0,K,"ToolbarIconToggleItem",0,Y,"ToolbarRoot",0,W,"ToolbarToggleGroup",0,q],121391);var J=e.i(124447),X=e.i(822273),Z=e.i(609311),ee=e.i(25483),et=e.i(197384),ea=e.i(32973),ei=e.i(907163),er=e.i(522756);e.i(715490);var eo=e.i(294748),el=e.i(532749),en=e.i(832531),es=e.i(841131);let ed=e=>{let{data:t}=(0,en.useQuery)((0,es.loginInfoQueryCreator)()),a=t?.["logged-in"],{data:i}=(0,X.useSpeechSelect)(e,["public_view"]);return!a&&i?.public_view};e.s(["useIsPublicView",0,ed],125379);var ec=e.i(652855),eu=e.i(330436);e.i(231143);var ep=e.i(820094),eg=e.i(711286);let eh=(0,ec.atom)(!1);eu.IS_DEV_ENV&&(eh.debugLabel="hasShownSignupModalAtom");let em=()=>{let{showModal:e}=(0,eg.useModalKey)(ep.MODAL_KEYS.SIGNUP_PUBLIC_PAGE),t=(0,ei.useSetAtom)(eh);return()=>{t(!0),e()}};e.s(["useShowSignupModal",0,em,"useSignupModalTimer",0,(e,t,a=3e3)=>{let[r,o]=(0,ei.useAtom)(eh);(0,i.useEffect)(()=>{let i;if(!e&&!r)return i=setTimeout(()=>{t(),o(!0)},a),()=>clearTimeout(i)},[e,t,r,o,a])}],884911);var ef=e.i(704879),ex=e.i(636676),ev=e.i(820732),eb=e.i(691294),e_=e.i(844421);let eT=({otid:e,bubbleUuid:a})=>{let i=(0,er.useTranslations)("annotations.comment"),r=(0,ei.useAtomValue)(el.editingStateAtom),o=(0,ei.useSetAtom)(eo.jumpToTimeAtom),l=(0,ei.useSetAtom)(ex.commentPopoverAtom),{isLive:n}=(0,ef.useSpeechLiveStatus)({otid:e}),{data:s}=(0,X.useSpeechSelect)(e,["can_comment"]),{trackStartComment:d}=(0,eb.useSpeechAnnotationAnalytics)({otid:e}),c=(0,ei.useSetAtom)(ex.textSelectionAtom),{getActiveSentenceSelection:u,getLast2SentencesSelection:p}=(0,ev.useLazySelection)({otid:e}),g=ed(e),h=em();return(0,t.jsx)(et["TooltipÃ"],{side:"top",className:"p-1",caption:i("comment"),children:(0,t.jsx)(Q,{className:"px-1","data-testid":"annotation-comment",onClick:()=>(()=>
1{if(g)h();else if(s?.can_comment){let e=e_.annotationMethod.current;if("lazy"===e){let e=n?p():u(),t=e?.lastWord;if(c(e),!t)return;o(t)}else if("hover"===e&&a){let{firstWord:e,lastWord:t,text:i}=(0,e_.getStartEndMsecFromBubbleUuid)(a);c({firstWord:e,lastWord:t,text:i})}d(e),l(!0)}})(),disabled:"starting"===r||"saving"===r,children:(0,t.jsx)(ea.CommentV2Icon,{size:25})})})};e.s(["Comment",0,eT],757335);var ej=e.i(316057),eS=e.i(491969),ey=e.i(793696),ew=e.i(995361),ew=ew;e.i(360775);var eC=e.i(533975),eA=e.i(845922),eI=e.i(36240);let ek=({otid:e,bubbleUuid:a})=>{let r=(0,er.useTranslations)("annotations.highlight"),o=(0,ei.useAtomValue)(el.editingStateAtom),{isLive:l}=(0,ef.useSpeechLiveStatus)({otid:e}),{data:n}=(0,X.useSpeechSelect)(e,["annotations","can_highlight"]),s=n?.annotations??[],[d]=(0,ei.useAtom)(ex.textSelectionAtom),[c,u]=(0,i.useState)(!0),[p,g]=(0,ei.useAtom)(ex.showAnnotationPopoverAtom),h=ed(e),m=em(),{addHighlight:f,removeHighlight:x}=function(e){let{otid:a}=e,r=(0,er.useTranslations)("annotations.highlight"),{trackCreateHighlight:o,trackRemoveHighlight:l}=(0,eb.useSpeechAnnotationAnalytics)({otid:a}),{mutate:n}=(0,eC.useCreateSpeechAnnotationMutation)({otid:a,onSuccess:e=>{o(e.method),(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("highlight_added"),altText:r("highlight_added")}))},onError:()=>{(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("highlight_failed"),altText:r("highlight_failed")}))}}),{mutate:s}=(0,eA.useRemoveSpeechAnnotationMutation)({otid:a,onSuccess:e=>{l(e.method),(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("highlight_removed"),altText:r("highlight_removed")}))},onError:()=>{(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("highlight_failed_to_remove"),altText:r("highlight_failed_to_remove")}))}});return{addHighlight:(0,i.useCallback)(e=>{let{startMsec:t,endMsec:i,text:r,method:o}=e;n({speech_otid:a,uuid:(0,eI.guid)(),start_msec:t,end_msec:i,text:r,type:"highlight",method:o})},[a,n]),removeHighlight:(0,i.useCallback)(e=>{let{annotationUuid:t,method:a}=e;t&&s({annotationUUID:t,method:a})},[s])}}({otid:e}),{getLast2SentencesSelection:v,getActiveSentenceSelection:b}=(0,ev.useLazySelection)({otid:e});return(0,i.useEffect)(()=>{let{startMsec:e,endMsec:t}="hover"===e_.annotationMethod.current?(0,e_.getStartEndMsecFromBubbleUuid)(a??""):(0,e_.getStartEndMsec)(d);u(!(0,e_.approxHighlightForSelection)(s,e,t))},[d,s,a]),(0,t.jsx)(et["TooltipÃ"],{side:"top",className:"p-1",caption:`${c?r("highlight"):r("remove_highlight")}`,children:(0,t.jsx)(Q,{className:"px-1","data-testid":"annotation-highlight","data-tutorial":"playback-v2-highlight-button",onClick:()=>(()=>{let e=0,i=0,o="",u=e_.annotationMethod.current;if("lazy"===u){let t=l?v():b();if(!t)return;let a=(0,e_.getStartEndMsec)(t);e=a.startMsec,i=a.endMsec,o=t?.text??""}else if("selection"===u){let t=(0,e_.getStartEndMsec)(d);e=t.startMsec,i=t.endMsec,o=d?.text??""}else if("hover"===u){let t=(0,e_.getStartEndMsecFromBubbleUuid)(a??"");e=t.startMsec,i=t.endMsec,o=t.text}if(g(!1),e===i){(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("no_text_selected"),altText:r("no_text_selected")}));return}if(h)return void m();if(!n?.can_highlight){(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:r("no_highlight_permission"),altText:r("no_highlight_permission")}));return}if(c)f({startMsec:e,endMsec:i,text:o??"",method:u});else{let t=(0,e_.approxHighlightForSelection)(s,e,i);t&&x({annotationUuid:t.uuid,method:u})}})(),disabled:"starting"===o||"saving"===o,children:c?(0,t.jsx)(ey.HighlighterV2Icon,{size:25}):(0,t.jsx)(ew.default,{size:25})})})};e.s(["Highlight",0,ek],134777);var eN=e.i(224977),eM=e.i(530506),eE=e.i(215919),eR=e.i(860887),eP=e.i(190673),ez=e.i(751964),eB=e.i(538627);function eG(){let{workspace:e}=(0,eB.useWorkspace)();return e?.settings?.disable_image_upload===!0}e.s(["useIsImageUploadBlocked",0,eG],300105);var eU=e.i(651543),eF=e.i(622712),eL=e.i(491482),eD=e.i(376217),eO=e.i(569597),eH=e.i(909112),eV=e.i(161152),e$=e.i(427907);let eK=({otid:e,canAddImage:a,bubbleUuid:r,getOffsetInSeconds:o})=>{let{uploadImage:l,isUploading:n}=(e=>{let{otid:a}=e,r=(0,er.useTranslations)("annotations.image"),{mutateAsync:o,isPending:l}=function(e){let{otid:t,onSuccess:a,onError:r}=e,o=(0,eD.useQueryClient)(),l=(0,eV.useMemorizedReturnVal)(eH.speechQueryCreator,t),n=(0,i.useCallback)(e=>{o.setQueryData(l.queryKey,t=>t?(0,eO.produce)(t,t=>{let a,i;a=(t.images||[]).filter(t=>t.id!==e.id),i={...e,image_url:(0,e$.transformApiUrl)(e.image_url)},a.push(i),t.images=a}):t)},[l,o]),s=(0,eL.useMutation)({mutationFn:async e=>(await (0,eF.uploadSpeechImage)({body:e,throwOnError:!0})).data,onSuccess:e=>{n({...e.image,offset:e.image.offset}),a?.()},onError:()=>{r?.()}});return{syncSpeechImageUpdate:n,...s}}({otid:a,onSuccess:()=>{(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS.SuccessToast,{description:r("image_added")}))},onError:()=>{(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS.ErrorToast,{description:r("image_failed")}))}});return{uploadImage:(0,i.useCallback)(async(e,i)=>{e.size>10380902.4?(0,ej.addToast)((0,t.jsx)(eS.ErrorToast,{description:r("image_too_large")})):await o({image:e,offset:i,otid:a})},[a,o]),isUploading:l}})({otid:e}),[s]=(0,ei.useAtom)(ex.textSelectionAtom),{isLive:d}=(0,ef.useSpeechLiveStatus)({otid:e});return{uploadImageWithSelection:(0,i.useCallback)(async e=>{let t;if(!a)return;let i=e_.annotationMethod.current,n=null!=(t=(()=>{let e=(()=>{switch(i){case"hover":{if(!r)return null;let e=document.getElementById("transcript-block-content");return e?.querySelector(`[data-uuid="${r}"] .transcript-word`)??null}case"selection":return s?.firstWord??null;case"lazy":return(0,eU.getTargetSpanForSpeech)(d);default:return null}})();if(!e)return null;let t=e.dataset.word;return t?Number(t.split(":")[0])+Number(t.split(":")[1]):null})())?t:o?.()??null;if(null==n)return;let c=e instanceof File?e:new File([e],"clipboard-image.png",{type:e.type});await l(c,n)},[r,a,o,d,s,l]),checkClipboard:(0,i.useCallback)(async()=>{try{if(!(navigator.permissions&&navigator.clipboard?.read))return null;let e=await navigator.permissions.query({name:"clipboard-read"});if("granted"!==e.state&&"prompt"!==e.state)return null;let t=await navigator.clipboard.read();for(let e=0;e<t.length;e++)if(t[e].types.includes("image/png"))return await t[e].getType("image/png");return null}catch{return null}},[]),isUploading:n}};e.s(["useUploadImageWithSelection",0,eK],974561);let eW="image/png";async function eQ(){try{let e=(await navigator.clipboard.read()).find(e=>e.types.includes(eW));if(!e)return null;return e.getType(eW)}catch(e){return console.error(e),null}}let eq=({otid:e,bubbleUuid:a,getOffsetInSeconds:r,enableClipboardPasteOption:o=!1})=>{let l=(0,er.useTranslations)("annotations.image"),n=(0,ei.useAtomValue)(el.editingStateAtom),{data:s}=(0,X.useSpeechSelect)(e,["can_edit","can_highlight","can_comment"]),d=(0,e_.canAddTranscriptImage)(s),c=eG(),u=(0,i.useRef)(null),[p,g]=(0,i.useState)(!1),h=(0,i.useRef)(null),m=!!h.current,f=ed(e),x=em(),{trackAddPhoto:v}=(0,eb.useSpeechAnnotationAnalytics)({otid:e}),{uploadImageWithSelection:b,isUploading:_}=eK({otid:e,canAddImage:d,bubbleUuid:a,getOffsetInSeconds:r}),T=(0,i.useCallback)(()=>{g(!1),h.current=null},[g]),j=(0,i.useCallback)(async()=>{try{T(),v(e_.annotationMethod.current);let e=await (0,ez.fileOpen)({mimeTypes:["image/*"],multiple:!0});await Promise.all(e.map(e=>b(e)))}catch(e){e instanceof DOMException&&"SecurityError"===e.name&&g(!0)}},[v,b,T]),S=(0,i.useCallback)(async()=>{try{let e=h.current;if(!e)return;v(e_.annotationMethod.current,{isClipboard:!0}),T(),await b(e)}catch{}},[v,b,T]),y=(0,i.useCallback)(async()=>
1{if(c)return;if(f)return void x();if(!d){(0,ej.clearAllToasts)(),(0,ej.addToast)((0,t.jsx)(eS["ToastÃ"],{description:l("no_image_edit_permission")}));return}let e=o?await eQ():null;h.current=e,e?g(!0):await j()},[d,o,x,c,f,l,g,j]);return(0,t.jsx)("div",{ref:u,children:(0,t.jsxs)(eN.PopoverRoot,{open:p,onOpenChange:e=>!e&&T(),children:[(0,t.jsx)(eP.PopoverAnchor,{children:(0,t.jsx)(et["TooltipÃ"],{side:"top",className:"p-1",caption:"initial"!==n?l("finish_editing_to_add_images"):c?l("image_upload_disabled_tooltip"):l("add_image"),children:(0,t.jsx)(Q,{className:"px-1","data-testid":"annotation-photo","aria-label":"Add Image",onClick:y,disabled:"initial"!==n||_||c,children:(0,t.jsx)(eE.PhotoIcon,{size:25})})})}),(0,t.jsx)(eN.PopoverPortal,{container:u?.current,children:(0,t.jsx)(eN.PopoverContent,{side:"top",className:"w-fit relative left-3 [&_[data-testid=popover-content]>div]:p-0",align:"end",children:(0,t.jsxs)("div",{className:"flex flex-col items-start p-0",children:[(0,t.jsx)(V.Button,{variant:"ghost",className:"w-full h-fit rounded-none px-4 py-4 [&>span:only-child]:ml-0","aria-label":"Upload image",onClick:j,"data-testid":"annotation-upload-from-device",children:(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)(eR.UploadIcon,{}),l("option_upload_from_device")]})}),m&&(0,t.jsx)(V.Button,{variant:"ghost",className:"w-full h-fit rounded-none px-4 py-4 [&>span:only-child]:ml-0","aria-label":"Paste from Clipboard",onClick:S,"data-testid":"annotation-paste-from-clipboard",children:(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)(eM.ClipboardIcon,{}),l("option_paste_from_clipboard")]})})]})})})]})})};e.s(["ImageUploader",0,eq],907251);let eY=({otid:e,getOffsetInSeconds:a,enableClipboardPasteOption:i})=>{let{data:r,isLoading:o}=(0,X.useSpeechSelect)(e,["block_transcript_display","block_transcript_display_data_retention"]);return o||(0,ee.isTranscriptAccessBlocked)(r)?null:(0,t.jsxs)(W,{onClickCapture:()=>{e_.annotationMethod.current="lazy"},children:[(0,t.jsx)(ek,{otid:e}),(0,t.jsx)(eT,{otid:e}),(0,t.jsx)(eq,{otid:e,getOffsetInSeconds:a,enableClipboardPasteOption:i})]})};e.s(["AnnotationMediaBar",0,function(e){return(0,t.jsx)(J.ErrorBoundary,{fallback:null,onError:(0,Z.createErrorHandler)({loggerName:"annotations",eventName:"AnnotationError",section:"AnnotationMediaBar"}),children:(0,t.jsx)(eY,{...e})})}],408810)},86836,e=>{"use strict";var t=e.i(648417),a=e.i(453484);e.s(["FloatingWrapper",0,function(e){let{ref:i,children:r,className:o,outerProps:l,...n}=e,{className:s,...d}=l??{};return(0,t.jsxs)("div",{ref:i,className:(0,a.cx)("sticky bottom-0 z-20 max-w-[1027px] mx-auto w-full media-control-slide-up pb-4 px-4",s),...d,children:[(0,t.jsx)("div",{className:(0,a.cx)("w-full","rounded-xl","border","border-subtle","bg-default","shadow-[0_2px_4px_-1px_rgba(0,13,51,0.06)]","p-4",o),"data-testid":"media-container-with-gradient",...n,children:r}),(0,t.jsx)("div",{className:"relative w-full",children:(0,t.jsx)("div",{className:"absolute bg-default opacity-85 -top-4 h-10 w-full -z-10"})})]})}])},331475,834927,520780,e=>{"use strict";var t=e.i(648417),a=e.i(341331),i=e.i(197384),r=e.i(514510),o=e.i(51422);e.s(["LanguageIcon",()=>o.default],834927);var o=o,l=e.i(638513),n=e.i(522756),s=e.i(122724),d=e.i(469171),c=e.i(137015),u=e.i(165123);async function p(a){return(0,u.openDialog)(async({done:i})=>{let{ChangeLanguageModal:r}=await e.A(532678);return(0,t.jsx)(r,{...a,done:i})})}e.s(["openChangeLanguageModal",0,p],520780);var g=e.i(162396);e.s(["LanguageIndicator",0,function(e){let{speech:u,isLive:h,...m}=e,f=(0,d.useExperimentEnabled)("manual_language_reprocessing_banner"),x=(0,d.useExperimentEnabled)("speech_language_setting"),v=(0,n.useTranslations)("recording.adhoc_recording.language_indicator"),b=(0,n.useTranslations)("shared:languages"),_=(0,c.useIsSpeechOwner)(u),T=u.language,j=u.speech_id,S=(0,s.useMemo)(()=>T?l.LANGUAGES.find(e=>e.value===T)??null:null,[T]),y=(0,s.useCallback)(()=>{j&&((0,g.trackLanguageSelectionOpen)("recording",u.live_status),p({defaultLanguageCode:T,speechId:String(j),isLive:h}))},[h,j,T,u.live_status]),w=f&&!!S&&_;if((0,s.useEffect)(()=>{w&&(0,g.trackLanguageSelectionImpression)("recording")},[w]),!f||!S||!_)return null;let C=b.has(`${S.value}.short_label`),A=b.has(`${S.value}.label`),I=C?b(`${S.value}.short_label`):A?b(`${S.value}.label`):S.text,k=A?b(`${S.value}.label`):S.text;return(0,t.jsx)("div",{...m,children:(0,t.jsx)(i["TooltipÃ"],{caption:v("caption",{language:k}),children:(0,t.jsx)(a.Button,{size:"md",variant:"ghost",className:"rounded-lg font-regular","aria-label":"Select a language","data-testid":"recorder-bar-language-indicator",iconStart:x?(0,t.jsx)(o.default,{}):(0,t.jsx)(r.GlobeIcon,{}),onClick:y,children:I})})})}],331475)}]); 2 3//# sourceMappingURL=20osv1d419hbf.js.map
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.