|
import{S as g,i as b,s as _,F as v,c as x,B as a,f as k,D as p,m as I,I as E,o as d,t as h,p as w,l as C,x as L,A as m,C as c,E as f,G as z,O as $,k as j,n as q,q as D}from"./index.37b24c07.js";import"./Empty.svelte_svelte_type_style_lang.94e7c7a3.js";import"./ModifyUpload.svelte_svelte_type_style_lang.e946db2d.js";function S(r){let e,l,t,s,n,o;return t=new r[0]({}),{c(){e=v("button"),l=v("div"),x(t.$$.fragment),a(l,"class","svelte-184m5ec"),a(e,"aria-label",r[1]),a(e,"class","svelte-184m5ec")},m(i,u){k(i,e,u),p(e,l),I(t,l,null),s=!0,n||(o=E(e,"click",r[2]),n=!0)},p(i,[u]){(!s||u&2)&&a(e,"aria-label",i[1])},i(i){s||(d(t.$$.fragment,i),s=!0)},o(i){h(t.$$.fragment,i),s=!1},d(i){i&&w(e),C(t),n=!1,o()}}}function A(r,e,l){let{Icon:t}=e,{label:s=""}=e;function n(o){L.call(this,r,o)}return r.$$set=o=>{"Icon"in o&&l(0,t=o.Icon),"label"in o&&l(1,s=o.label)},[t,s,n]}class B extends g{constructor(e){super(),b(this,e,A,S,_,{Icon:0,label:1})}}function F(r){let e,l,t,s;return{c(){e=m("svg"),l=m("g"),t=m("path"),s=m("path"),a(t,"d","M18,6L6.087,17.913"),c(t,"fill","none"),c(t,"fill-rule","nonzero"),c(t,"stroke-width","2px"),a(l,"transform","matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"),a(s,"d","M4.364,4.364L19.636,19.636"),c(s,"fill","none"),c(s,"fill-rule","nonzero"),c(s,"stroke-width","2px"),a(e,"width","100%"),a(e,"height","100%"),a(e,"viewBox","0 0 24 24"),a(e,"version","1.1"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),a(e,"xml:space","preserve"),a(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,o){k(n,e,o),p(e,l),p(l,t),p(e,s)},p:f,i:f,o:f,d(n){n&&w(e)}}}class G extends g{constructor(e){super(),b(this,e,null,F,_,{})}}function O(r){let e,l;return{c(){e=m("svg"),l=m("path"),a(l,"d","M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","100%"),a(e,"height","100%"),a(e,"viewBox","0 0 24 24"),a(e,"fill","none"),a(e,"stroke","currentColor"),a(e,"stroke-width","1.5"),a(e,"stroke-linecap","round"),a(e,"stroke-linejoin","round"),a(e,"class","feather feather-edit-2")},m(t,s){k(t,e,s),p(e,l)},p:f,i:f,o:f,d(t){t&&w(e)}}}class P extends g{constructor(e){super(),b(this,e,null,O,_,{})}}function M(r){let e,l;return e=new B({props:{Icon:P,label:"Edit"}}),e.$on("click",r[3]),{c(){x(e.$$.fragment)},m(t,s){I(e,t,s),l=!0},p:f,i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){C(e,t)}}}function U(r){let e,l,t,s,n=r[0]&&M(r);return t=new B({props:{Icon:G,label:"Clear"}}),t.$on("click",r[4]),{c(){e=v("div"),n&&n.c(),l=z(),x(t.$$.fragment),a(e,"class","svelte-19sk1im"),$(e,"not-absolute",!r[1]),c(e,"position",r[1]?"absolute":"static",!1)},m(o,i){k(o,e,i),n&&n.m(e,null),p(e,l),I(t,e,null),s=!0},p(o,[i]){o[0]?n?(n.p(o,i),i&1&&d(n,1)):(n=M(o),n.c(),d(n,1),n.m(e,l)):n&&(j(),h(n,1,1,()=>{n=null}),q()),i&2&&$(e,"not-absolute",!o[1]),i&2&&c(e,"position",o[1]?"absolute":"static",!1)},i(o){s||(d(n),d(t.$$.fragment,o),s=!0)},o(o){h(n),h(t.$$.fragment,o),s=!1},d(o){o&&w(e),n&&n.d(),C(t)}}}function y(r,e,l){let{editable:t=!1}=e,{absolute:s=!0}=e;const n=D(),o=()=>n("edit"),i=u=>{n("clear"),u.stopPropagation()};return r.$$set=u=>{"editable"in u&&l(0,t=u.editable),"absolute"in u&&l(1,s=u.absolute)},[t,s,n,o,i]}class Q extends g{constructor(e){super(),b(this,e,y,U,_,{editable:0,absolute:1})}}export{G as C,B as I,Q as M}; |