import{S as w,i as k,s as _,e as x,c as $,b as o,f as b,g as m,m as y,l as z,w as u,j as d,k as h,n as v,o as I,J as M,v as g,Y as c,a as L,d as p,C as B,D as E,E as D}from"./index.06d85743.js";function S(l){let e,r,t,s,n,a;return t=new l[0]({}),{c(){e=x("button"),r=x("div"),$(t.$$.fragment),o(r,"class","m-t-1 w-[60%] h-[60%] opacity-80 dark:text-white"),o(e,"class","text-gray-500 bg-white/90 h-5 w-5 flex items-center justify-center rounded shadow-sm hover:shadow-xl hover:ring-1 ring-inset ring-gray-200 z-10 dark:bg-gray-900 dark:ring-gray-600")},m(i,f){b(i,e,f),m(e,r),y(t,r,null),s=!0,n||(a=z(e,"click",l[1]),n=!0)},p:u,i(i){s||(d(t.$$.fragment,i),s=!0)},o(i){h(t.$$.fragment,i),s=!1},d(i){i&&v(e),I(t),n=!1,a()}}}function q(l,e,r){let{Icon:t}=e;function s(n){M.call(this,l,n)}return l.$$set=n=>{"Icon"in n&&r(0,t=n.Icon)},[t,s]}class j extends w{constructor(e){super(),k(this,e,q,S,_,{Icon:0})}}function J(l){let e,r,t,s;return{c(){e=g("svg"),r=g("g"),t=g("path"),s=g("path"),o(t,"d","M18,6L6.087,17.913"),c(t,"fill","none"),c(t,"fill-rule","nonzero"),c(t,"stroke-width","2px"),o(r,"transform","matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"),o(s,"d","M4.364,4.364L19.636,19.636"),c(s,"fill","none"),c(s,"fill-rule","nonzero"),c(s,"stroke-width","2px"),o(e,"width","100%"),o(e,"height","100%"),o(e,"viewBox","0 0 24 24"),o(e,"version","1.1"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),o(e,"xml:space","preserve"),o(e,"stroke","currentColor"),c(e,"fill-rule","evenodd"),c(e,"clip-rule","evenodd"),c(e,"stroke-linecap","round"),c(e,"stroke-linejoin","round")},m(n,a){b(n,e,a),m(e,r),m(r,t),m(e,s)},p:u,i:u,o:u,d(n){n&&v(e)}}}class U extends w{constructor(e){super(),k(this,e,null,J,_,{})}}function Y(l){let e,r;return{c(){e=g("svg"),r=g("path"),o(r,"d","M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","100%"),o(e,"height","100%"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","feather feather-edit-2")},m(t,s){b(t,e,s),m(e,r)},p:u,i:u,o:u,d(t){t&&v(e)}}}class A extends w{constructor(e){super(),k(this,e,null,Y,_,{})}}function C(l){let e,r;return e=new j({props:{Icon:A}}),e.$on("click",l[3]),{c(){$(e.$$.fragment)},m(t,s){y(e,t,s),r=!0},p:u,i(t){r||(d(e.$$.fragment,t),r=!0)},o(t){h(e.$$.fragment,t),r=!1},d(t){I(e,t)}}}function F(l){let e,r,t,s,n=l[0]&&C(l);return t=new j({props:{Icon:U}}),t.$on("click",l[4]),{c(){e=x("div"),n&&n.c(),r=L(),$(t.$$.fragment),o(e,"class","modify-upload z-10 top-2 right-2 justify-end flex gap-1"),p(e,"absolute",l[1]),p(e,"m-1",!l[1])},m(a,i){b(a,e,i),n&&n.m(e,null),m(e,r),y(t,e,null),s=!0},p(a,[i]){a[0]?n?(n.p(a,i),i&1&&d(n,1)):(n=C(a),n.c(),d(n,1),n.m(e,r)):n&&(B(),h(n,1,1,()=>{n=null}),E()),i&2&&p(e,"absolute",a[1]),i&2&&p(e,"m-1",!a[1])},i(a){s||(d(n),d(t.$$.fragment,a),s=!0)},o(a){h(n),h(t.$$.fragment,a),s=!1},d(a){a&&v(e),n&&n.d(),I(t)}}}function G(l,e,r){let{editable:t=!1}=e,{absolute:s=!0}=e;const n=D(),a=()=>n("edit"),i=()=>n("clear");return l.$$set=f=>{"editable"in f&&r(0,t=f.editable),"absolute"in f&&r(1,s=f.absolute)},[t,s,n,a,i]}class K extends w{constructor(e){super(),k(this,e,G,F,_,{editable:0,absolute:1})}}export{U as C,j as I,K as M};
