import{c4 as d,bc as m,az as k,ao as s,aF as L,L as h,m as f,o as x,W as P,E,r as g,p as w}from"./app-k0jcl5PQ.js";import{E as y}from"./DwtKWFnX.chunk.js";import{L as a}from"./BIcoJTsm.chunk.js";import"./DLmnDxSd.chunk.js";import"./CW7x8M-z.chunk.js";import"./DzRq1F5-.chunk.js";import"./DV1GpLCe.chunk.js";import"./Di9d6zcy.chunk.js";import"./CKctgafI.chunk.js";import"./C3DvQ1wU.chunk.js";const o=h.encloseNamespace("shared.editLinkView");function N(t){const r=d(),n=m(),e=k(a.link(t.linkId));function c(i,l){const p=()=>{n.success(o("success")),l({reset:!0}),x.logUserAction({id:t.linkId,parentId:t.videoId,name:i.name},{location:w.Popup,actionType:g.Edit,entity:E.Link,workflowPhase:P.Complete})},u=()=>n.error(o("error"));f(r,a.updateLink(t.linkId,i,p,u,t.closePopup))}return s.jsx(L,{title:o("heading"),closePopup:t.closePopup,showLoadingSpinner:!e.data,children:!!e.data&&s.jsx(y,{link:e.data,saveLink:c,onClickCancel:t.closePopup,buttonContainerClassName:"d-flex justify-content-end border-top pt-3 px-3 mx-n3",submitButtonVariant:"dark"})})}export{N as EditLinkView};
//# sourceMappingURL=D5zYeWvQ.chunk.js.map
