4 lines
7 KiB
JavaScript
4 lines
7 KiB
JavaScript
|
import{o as l,f as r,g as e,d as k,i as y,a as M,B as x,s as q,a6 as K,a7 as O,n as B,h as n,_ as D,x as P,T as F,E as a,a8 as _,a9 as u,p as i,aa as v,q as f,ab as w,r as I,ac as $,ad as R,F as U,ae as Y,af as G,ag as J,ah as Q,ai as p,aj as g,ak as L,al as W}from"./index-b4b4a2ac.js";const X={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},nn=e("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2zm0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12z"},null,-1),en=e("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),on=[nn,en];function tn(c,s){return l(),r("svg",X,on)}const sn={name:"carbon-close-outline",render:tn},ln={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},rn=e("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16Zm23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9ZM8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0Z"},null,-1),an=[rn];function cn(c,s){return l(),r("svg",ln,an)}const dn={name:"carbon-error",render:cn},_n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},un=e("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),hn=[un];function vn(c,s){return l(),r("svg",_n,hn)}const mn={name:"carbon-pin",render:vn},pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},gn=e("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),bn=[gn];function fn(c,s){return l(),r("svg",pn,bn)}const wn={name:"carbon-pin-filled",render:fn},$n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Cn=e("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),xn=e("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),Ln=[Cn,xn];function kn(c,s){return l(),r("svg",$n,Ln)}const yn={name:"carbon-delete",render:kn},Mn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Bn=e("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16Z"},null,-1),Dn=[Bn];function zn(c,s){return l(),r("svg",Mn,Dn)}const Vn={name:"carbon-redo",render:zn},Zn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Sn=e("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16Z"},null,-1),En=[Sn];function Hn(c,s){return l(),r("svg",Zn,En)}const jn={name:"carbon-undo",render:Hn},Nn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},An=e("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM6 26V6h20v20Z"},null,-1),Tn=[An];function qn(c,s){return l(),r("svg",Nn,Tn)}const Kn={name:"carbon-checkbox",render:qn},On={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Pn=e("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12Z"},null,-1),Fn=[Pn];function In(c,s){return l(),r("svg",On,Fn)}const Rn={name:"carbon-radio-button",render:In},Un={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Yn=e("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"},null,-1),Gn=[Yn];function Jn(c,s){return l(),r("svg",Un,Gn)}const Qn={name:"carbon-arrow-up-right",render:Jn},Wn=k({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(c){const s=c;y(M);const m=x(null),d=s.initial??{x:0,y:0},b=s.storageKey?q(s.storageKey,d):x(d),{style:h}=K(m,{initialValue:b});return(o,C)=>(l(),r("div",{ref_key:
|
||
|
<carbon:erase />
|
||
|
</button> `),i(w),(l(!0),r(U,null,I(n(R),t=>(l(),r("button",{key:t,class:a(["slidev-icon-btn",n($).color===t?"active":"shallow"]),onClick:se=>b(t)},[e("div",{class:a(["w-6 h-6 transition-all transform border border-gray-400/50",n($).color!==t?"rounded-1/2 scale-85":"rounded-md"]),style:B(n(_)?{background:t}:{borderColor:t})},null,6)],10,oe))),128)),i(w),e("button",{class:a(["slidev-icon-btn",{disabled:!n(Y)}]),onClick:o[5]||(o[5]=t=>s())},[i(S)],2),e("button",{class:a(["slidev-icon-btn",{disabled:!n(G)}]),onClick:o[6]||(o[6]=t=>m())},[i(E)],2),e("button",{class:a(["slidev-icon-btn",{disabled:!n(J)}]),onClick:o[7]||(o[7]=t=>n(Q)())},[i(H)],2),i(w),e("button",{class:a(["slidev-icon-btn",{shallow:!n(u)}]),onClick:o[8]||(o[8]=t=>u.value=!n(u))},[p(i(j,{class:"transform -rotate-45"},null,512),[[g,n(u)]]),p(i(N,null,null,512),[[g,!n(u)]])],2),n(_)?(l(),r("button",{key:0,class:a(["slidev-icon-btn",{shallow:!n(_)}]),onClick:o[9]||(o[9]=t=>_.value=!n(_))},[p(i(A,null,null,512),[[g,n(u)]]),p(i(T,null,null,512),[[g,!n(u)]])],2)):f("v-if",!0)]),_:1},8,["class"])}}}),ie=D(te,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/Projet-long/prez/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{ie as default};
|