(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`98855b37a3d52795063fb5f65b16b203e1f309a7`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b981f89b-9535-4fe0-94ee-63f6807aa0e4`,e._sentryDebugIdIdentifier=`sentry-dbid-b981f89b-9535-4fe0-94ee-63f6807aa0e4`)}catch{}})();import{r as e}from"./rolldown-runtime-DSmSHlwF.js";import"./posthog-js-op-4SakF.js";import{P as t,Q as n,S as r,T as i,W as a,d as o,g as s,i as c,it as l,ot as u,w as d,y as f}from"./element-plus-B1fHG2BL.js";import{m as p}from"./vue-Dx4PbTpV.js";import{u as m}from"./main-CNgG4xjc.js";import{n as h,r as g,t as _}from"./usePopup-DtGdnVsG.js";import{c as v}from"../index.js";import{n as y,o as b,s as x,t as S}from"./components-BVh60UfO.js";import{t as C}from"./collection-DSqVd0uf.js";import{t as w}from"./header-BTrWDzvy.js";var T={key:0},E={key:1},D={class:`popup-content__container`},O={class:`collection-edit-content__wrapper`},k=i({__name:`collectionEdit`,setup(e){let{t:i}=p(),k=n(),A=h(),{gotoCollectionPage:j,gotoCollectionEditPage:M}=_(),{rules:N}=C();return(e,n)=>{let p=c,h=o;return t(),r(s,null,[d(l(w),null,{left:a(()=>[d(l(v),{name:`arrowLeft`,title:l(i)(`collection.op.abandon`),onClick:n[0]||=e=>l(j)({pageTarget:l(g).Popup})},null,8,[`title`])]),title:a(()=>[l(A).collectionFormState===l(m).Edit?(t(),r(`h4`,T,u(l(i)(`collection.op.edit`)),1)):(t(),r(`h4`,E,u(l(i)(`collection.op.new`)),1))]),right:a(()=>[d(l(v),{name:`openWithNewWindow`,title:l(i)(`collection.op.advanced`),onClick:n[1]||=e=>l(M)({pageTarget:l(g).Options,blank:!0,collectionId:l(A).collectionFormId})},null,8,[`title`])]),_:1}),d(h,{class:`popup-content_scroll collection-edit`,"max-height":`26.25rem`},{default:a(()=>[f(`section`,D,[d(p,{ref_key:`collectionFormRef`,ref:k,"label-position":`top`,"label-width":`auto`,size:`large`,"scroll-to-error":!0,"hide-required-asterisk":!0,model:l(A).collectionForm,rules:l(N)},{default:a(()=>[f(`aside`,O,[d(l(x)),d(l(S)),d(l(y))])]),_:1},8,[`model`,`rules`]),d(l(b),{"collection-form-ref":k.value},null,8,[`collection-form-ref`])])]),_:1})],64)}}});export{k as default};
//# sourceMappingURL=collectionEdit-DMi9vuTF.js.map