1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4143],{84143:function(e,a,s){s.r(a);var t=s(33605),i=s(86925),n=s(83787),l=s(49082),r=s(70400),o=s(38058),c=s(9093),d=s(52887),m=s(21895),u=s(67030),y=s(2846),x=s(13805),_=s(39832);a.default=(0,i.PA)((({translateRootKey:e="add_to_library_dialog",onCancel:a})=>{const{plannerState:s,teamStore:i}=(0,n.Ay)(),{showToast:h}=(0,c.A)(),{openLibraryTab:b}=(0,x.A)(),{trackEvent:f}=(0,_.st)(),[v,p]=(0,l.A)({onCancel:a,plannerState:s});return(0,t.jsx)(o.A,{teams:i.entries.filter((e=>(0,m._b)(e.permissions.canHaveLibrary))),hideDropdownLabel:!1,translateRootKey:e,name:v&&v.name,onConfirm:function(e){return a=this,s=null,i=function*(){if(v)try{yield v.addToLibrary(e.id),f(r.qW.blockCreated,{how:r.Bl.blockAddedToLibraryFromSession,type:v.kindLabel}),h({title:"add_to_library_dialog.success_toast_title",dismissAutomatically:!0,content:(0,t.jsxs)("div",{children:[(0,t.jsx)(u.sA,{id:e.hasReviewProcess?"add_to_library_dialog.success_toast_description_review":"add_to_library_dialog.success_toast_description",values:{teamName:e.name}}),(0,t.jsx)(y.A,{className:"d-flex mt-s8",onClick:()=>b(r.Bl.addBlockToLibrary,{toOmit:["dialog"],searchParams:{[d.iK]:e.id}}),children:(0,t.jsx)(u.sA,{id:"add_to_library_dialog.view_library"})})]}),type:d.oA.success,dismissable:!0})}catch(a){h({title:"add_to_library_dialog.error_toast_title",content:"add_to_library_dialog.error_toast_description",type:d.oA.danger,dismissable:!0})}finally{p()}},new Promise(((e,t)=>{var n=e=>{try{r(i.next(e))}catch(a){t(a)}},l=e=>{try{r(i.throw(e))}catch(a){t(a)}},r=a=>a.done?e(a.value):Promise.resolve(a.value).then(n,l);r((i=i.apply(a,s)).next())}));var a,s,i},onCancel:p})}))},38058:function(e,a,s){var t=s(33605),i=s(17121),n=s(91161),l=s(86925),r=s(67030),o=s(82863),c=s(90712),d=s(42065),m=s(74825),u=s(50086),y=s(28092);a.A=(0,l.PA)((({translateRootKey:e="",onCancel:a,onConfirm:s=null,name:l=null,hideDropdownLabel:x=!1,teams:_=[],ignoreReviewProcess:h})=>{var b,f;const v=_[0],[p,A]=(0,i.useState)(v);return(0,t.jsxs)(n.default,{title:`${e}.title`,cancelText:`${e}.cancel`,confirmText:`${e}.confirm`,onCancel:a,onConfirm:()=>p&&(null==s?void 0:s(p)),bsSize:"sm",children:[(0,t.jsx)("p",{children:(0,t.jsx)(r.sA,{id:`${e}.message`,values:{name:l,strong:e=>(0,t.jsx)("strong",{children:e}),teamName:null!=(b=null==p?void 0:p.name)?b:""}})}),(0,t.jsxs)(o.A,{id:"library-chooser",className:"",align:"start",children:[(0,t.jsxs)(o.A.Toggle,{className:"d-block",variant:"outline-secondary",children:[!x&&(0,t.jsx)("div",{className:"text-muted small",children:(0,t.jsx)(r.sA,{id:`${e}.library`})}),(0,t.jsxs)("div",{className:"name",children:[(0,t.jsx)("i",{className:"fa-solid fa-users"}),(0,t.jsx)("span",{className:"-surrounded-by-icons",children:p.name}),(0,t.jsx)("i",{className:"fa fa-caret-down"})]})]}),(0,t.jsx)(d.A,{children:(0,t.jsx)(m.r,{className:"w-min-content overflow-auto",style:{maxHeight:"190px"},children:_.map((e=>(0,t.jsx)(o.A.Item,{active:p.id===e.id,onClick:()=>{A(e)},className:"d-inline-flex align-items-center",children:(0,t.jsx)(c.A,{team:e})},e.id)))})})]}),!h&&p.hasReviewProcess?(0,t.jsx)(y.A,{className:"mt-s24",panelColour:"blue",icon:"fa-regular fa-exclamation",children:(0,t.jsx)(u.u,{title:(0,t.jsx)(r.sA,{id:`${e}.review_title`}),description:(0,t.jsx)(r.sA,{id:`${e}.review_text`,values:{teamName:null!=(f=null==p?void 0:p.name)?f:""}})})}):null]})}))},49082:function(e,a,s){s.d(a,{A:function(){return n}});var t=s(17121),i=s(91374);function n({onCancel:e,plannerState:a,shouldLoadDetails:s}){const{queryParams:n,selectedBlockId:l}=(0,i.Ay)(),r=l||n.blockId,[o,c]=(0,t.useState)(null),d=()=>{e(["blockId"])};return(0,t.useEffect)((()=>{a.isLoading||a.sessionStore.isEmpty||setTimeout((()=>{if("string"===typeof r&&r){const e=a.getBlock(r);e?(s&&e.getDetails(),c(e)):d()}}),1)}),[a.isLoading,a.sessionStore.isEmpty,r]),[o,d]}}}]); 2//# sourceMappingURL=4143-ee4c56e28e246f8f4338.chunk.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.