1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5053],{35053:function(e,t,r){r.r(t),r.d(t,{LoomPanel:function(){return g}});var n=r(52322),c=r(17993),l=r(74409),s=r(62614),i=r(77533),u=r(94523),d=r(5879),a=r(87254),o=r(61770),f=r(2784),p=r(14274),x=r(66855),b=r(13833),h=r(68430);let j="dev"===p.v.APPLICATION_ENVIRONMENT?"9d1115d2-34a8-45a5-8e3e-55064589896b":"5653e0e4-f7db-49a7-a75b-aacc56db22e4",g=e=>{let{editor:t,updateAttributes:r,currentAttributes:p}=e,g=(0,f.useRef)(null),[C,k]=(0,f.useState)(),E=(0,x.NW)(p);return(0,f.useEffect)(()=>{(0,o.Gb)().then(e=>{let{supported:t,error:r}=e;r&&console.warn("Loom recordSDK not supported due to: ".concat(r)),k(t)})},[]),(0,f.useEffect)(()=>{let e;if(C&&null!==g.current)return(0,o.cY)({publicAppId:j,config:{defaultRecordingType:o.yy.CameraOnly}}).then(t=>{let{configureButton:n,teardown:c}=t;if(null===g.current){c();return}e=c;let l=n({element:g.current});l.on("insert-click",e=>{let{sharedUrl:t}=e;(0,b.ft)(t,r)})}),()=>{e&&e()}},[g,r,C]),(0,n.jsxs)(c.g,{align:"stretch",spacing:4,children:[(0,n.jsxs)(c.g,{align:"stretch",spacing:2,children:[(0,n.jsx)(l.X,{size:"md",children:(0,n.jsx)(d.cC,{id:"FK9Qbk"})}),(0,n.jsx)(u.kH,{placement:"top",label:C?(0,n.jsx)(d.cC,{id:"SPlisu"}):(0,n.jsx)(d.cC,{id:"Tnx6na"}),children:(0,n.jsx)(s.z,{ref:g,isDisabled:!C,children:(0,n.jsx)(d.cC,{id:"IJaotC"})})})]}),(0,n.jsx)(i.x,{color:"gray.500",children:(0,n.jsx)(d.cC,{id:"+gsW0v"})}),(0,n.jsx)(b.v,{currentUrl:E,updateAttributes:r,placeholder:a.ag._({id:"dX1T6f"})}),E&&(0,n.jsx)(h.E,{editor:t,updateAttributes:r,currentAttributes:p})]})}}}]); 2//# sourceMappingURL=5053.41f269cbaf089a7f.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.