import{az as v,aA as y,bg as L,p as f,ao as r,aF as F,L as x,aB as I,v as E}from"./app-k0jcl5PQ.js";import{u as P,S as V}from"./Dfatwnqz.chunk.js";import{g as j}from"./C8ys3yUG.chunk.js";import{S as s}from"./D-iHOjjO.chunk.js";import"./DLmnDxSd.chunk.js";import"./CW7x8M-z.chunk.js";import"./C3DvQ1wU.chunk.js";import"./CX-R8N_3.chunk.js";import"./Boh3c6zT.chunk.js";import"./q-a0Zpry.chunk.js";import"./BHfFK47N.chunk.js";import"./9ZqmMPFe.chunk.js";import"./C5n0s02L.chunk.js";import"./CqF9ND51.chunk.js";const w="sharev2.editShareSettings",p=x.encloseNamespace(w);function M(t){var n,o;const e=v(y.getShare(t.shareId)),i=s.getSharableEntityType(e.data),{log:d}=j({data:{entity:{id:(n=e.data)==null?void 0:n.objectId,type:i}},analyticsOptions:{location:f.Popup,eventVersion:L.V3,productArea:t.productArea}}),{data:c,initialValues:m,onClickSaveLink:l}=P({entityId:(o=e.data)==null?void 0:o.objectId,shareId:t.shareId,entityType:i,log:d});function S(a,k){l({options:{immediateFeedback:a.immediateFeedback,preventScrubbing:a.preventScrubbing}},k)}function g(){if(!e.data)return;const a=t.getDeleteShareAppLink(e.data);a&&E.trigger(a)}const{showImmediateFeedbackField:u,showPreventScrubbingField:h}=s.getEnabledSettingsField(i),b=c.loaded&&!!e.data;return r.jsx(F,{title:p("title"),showLoadingSpinner:!b,closePopup:t.closePopup,children:r.jsx(V,{initialValues:m,onSubmit:S,onClickDelete:g,showImmediateFeedbackField:u,showPreventScrubbingField:h,deleteText:e.data.type!==I.Link&&p("delete")})})}export{M as EditShareSettingsView};
//# sourceMappingURL=BB6wkr3Z.chunk.js.map
