@ydesign/react-editor 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/app.css +1 -1
  2. package/dist/app.js +1 -1
  3. package/dist/canvas/workspace-canvas.d.ts +4 -0
  4. package/dist/canvas/workspace.d.ts +4 -0
  5. package/dist/chunk-2PAJLUQH.js +1 -0
  6. package/dist/chunk-2SA3ZNHH.js +9 -0
  7. package/dist/chunk-4BG4CHIB.js +1 -0
  8. package/dist/{chunk-LW2W4B2N.js → chunk-4HH3B3W3.js} +4 -3
  9. package/dist/chunk-4LUZF4CB.js +2 -0
  10. package/dist/chunk-4WITBL6X.js +1 -0
  11. package/dist/chunk-5C2MNUBC.js +1 -0
  12. package/dist/chunk-ARZMBVXU.js +1 -0
  13. package/dist/chunk-BDQSWJYF.js +1 -0
  14. package/dist/chunk-DCGJ6RKU.js +1 -0
  15. package/dist/chunk-FGCLY24Q.js +45 -0
  16. package/dist/chunk-FOMWIGAQ.js +50 -0
  17. package/dist/chunk-H6GI5LUP.js +54 -0
  18. package/dist/chunk-HD2T2D4D.js +1 -0
  19. package/dist/chunk-HQSM4X2M.js +1 -0
  20. package/dist/chunk-INRJE7VS.js +1 -0
  21. package/dist/chunk-ISNCNIFJ.js +27 -0
  22. package/dist/chunk-KCNKLCD5.js +1 -0
  23. package/dist/chunk-N5KI6CPA.js +1 -0
  24. package/dist/chunk-NQYSJ5MN.js +1 -0
  25. package/dist/chunk-OA7Z7HNL.js +1 -0
  26. package/dist/chunk-OBJ5NZSC.js +1 -0
  27. package/dist/chunk-OFA6JIQB.js +9 -0
  28. package/dist/chunk-ONY3GLGA.js +1 -0
  29. package/dist/chunk-QX7ZGRSR.js +1 -0
  30. package/dist/chunk-R452ARGU.js +1 -0
  31. package/dist/chunk-RUVPKBI5.js +3 -0
  32. package/dist/chunk-TNBL7KOG.js +1 -0
  33. package/dist/chunk-TWH7TO5J.js +1 -0
  34. package/dist/chunk-TYHXQPZQ.js +1 -0
  35. package/dist/chunk-XXR5YN2B.js +9 -0
  36. package/dist/chunk-Y7RXJ3FI.js +16 -0
  37. package/dist/chunk-YLXPQ2GI.js +1 -0
  38. package/dist/chunk-YOQ663QO.js +1 -0
  39. package/dist/config.d.ts +1 -0
  40. package/dist/config.js +1 -1
  41. package/dist/hooks/use-duplicate-element.d.ts +4 -0
  42. package/dist/hooks/use-lock.d.ts +4 -0
  43. package/dist/hooks/use-remove-element.d.ts +4 -0
  44. package/dist/model/store.d.ts +55 -44
  45. package/dist/model/store.js +1 -1
  46. package/dist/project.d.ts +11 -2
  47. package/dist/project.js +1 -1
  48. package/dist/side-panel/background-panel.d.ts +10 -3
  49. package/dist/side-panel/background-panel.js +1 -1
  50. package/dist/side-panel/images-grid.d.ts +4 -1
  51. package/dist/side-panel/images-grid.js +1 -41
  52. package/dist/side-panel/index.d.ts +4 -0
  53. package/dist/side-panel/index.js +1 -1
  54. package/dist/side-panel/layers-panel.d.ts +8 -2
  55. package/dist/side-panel/layers-panel.js +1 -1
  56. package/dist/side-panel/photos-panel.d.ts +8 -2
  57. package/dist/side-panel/photos-panel.js +1 -1
  58. package/dist/side-panel/shapes-panel.d.ts +8 -2
  59. package/dist/side-panel/shapes-panel.js +1 -1
  60. package/dist/side-panel/side-panel.d.ts +4 -0
  61. package/dist/side-panel/side-panel.js +1 -1
  62. package/dist/side-panel/size-panel.d.ts +8 -2
  63. package/dist/side-panel/size-panel.js +1 -1
  64. package/dist/side-panel/tab-button.js +1 -1
  65. package/dist/side-panel/templates-panel.d.ts +8 -2
  66. package/dist/side-panel/templates-panel.js +1 -1
  67. package/dist/side-panel/text-panel.d.ts +8 -2
  68. package/dist/side-panel/text-panel.js +1 -1
  69. package/dist/side-panel/upload-panel.d.ts +10 -3
  70. package/dist/side-panel/upload-panel.js +1 -1
  71. package/dist/toolbar/default-toolbar.d.ts +10 -1
  72. package/dist/toolbar/default-toolbar.js +1 -1
  73. package/dist/toolbar/download-button.d.ts +8 -2
  74. package/dist/toolbar/download-button.js +1 -1
  75. package/dist/toolbar/duplicate-button.d.ts +4 -0
  76. package/dist/toolbar/duplicate-button.js +1 -1
  77. package/dist/toolbar/figure-toolbar.d.ts +4 -0
  78. package/dist/toolbar/figure-toolbar.js +1 -1
  79. package/dist/toolbar/filters-picker.d.ts +4 -0
  80. package/dist/toolbar/filters-picker.js +1 -1
  81. package/dist/toolbar/flip-button.d.ts +8 -2
  82. package/dist/toolbar/flip-button.js +1 -1
  83. package/dist/toolbar/group-button.d.ts +4 -0
  84. package/dist/toolbar/group-button.js +1 -1
  85. package/dist/toolbar/history-buttons.d.ts +4 -0
  86. package/dist/toolbar/history-buttons.js +1 -1
  87. package/dist/toolbar/image-eraser-pen.d.ts +4 -2
  88. package/dist/toolbar/image-eraser-pen.js +1 -1
  89. package/dist/toolbar/image-remove-background.d.ts +4 -2
  90. package/dist/toolbar/image-remove-background.js +1 -1
  91. package/dist/toolbar/image-toolbar.d.ts +8 -2
  92. package/dist/toolbar/image-toolbar.js +1 -1
  93. package/dist/toolbar/lock-button.d.ts +4 -0
  94. package/dist/toolbar/lock-button.js +1 -1
  95. package/dist/toolbar/opacity-picker.d.ts +4 -0
  96. package/dist/toolbar/opacity-picker.js +1 -1
  97. package/dist/toolbar/position-picker.d.ts +4 -0
  98. package/dist/toolbar/position-picker.js +1 -1
  99. package/dist/toolbar/remove-button.d.ts +4 -0
  100. package/dist/toolbar/remove-button.js +1 -1
  101. package/dist/toolbar/text-ai-write.js +1 -1
  102. package/dist/toolbar/text-toolbar.d.ts +4 -0
  103. package/dist/toolbar/text-toolbar.js +1 -1
  104. package/dist/toolbar/toolbar.d.ts +4 -0
  105. package/dist/toolbar/toolbar.js +1 -1
  106. package/dist/toolbar/zoom-buttons.d.ts +4 -0
  107. package/dist/topbar/file-menu.d.ts +11 -2
  108. package/dist/topbar/file-menu.js +1 -1
  109. package/dist/topbar/topbar.d.ts +4 -0
  110. package/dist/topbar/topbar.js +5 -5
  111. package/dist/utils/l10n.d.ts +205 -3
  112. package/dist/utils/l10n.js +1 -1
  113. package/dist/utils/text.d.ts +3 -0
  114. package/dist/utils/text.js +1 -0
  115. package/dist/utils/unit.d.ts +18 -0
  116. package/dist/utils/unit.js +1 -0
  117. package/package.json +4 -10
  118. package/dist/chunk-3TTTJUTT.js +0 -1
  119. package/dist/chunk-4FFLRF6N.js +0 -1
  120. package/dist/chunk-4HEMGHOQ.js +0 -1
  121. package/dist/chunk-6BG6R2IO.js +0 -7
  122. package/dist/chunk-6LFGFFHI.js +0 -1
  123. package/dist/chunk-B35ZYWID.js +0 -1
  124. package/dist/chunk-CRTMZEJE.js +0 -1
  125. package/dist/chunk-CS6Z4TQU.js +0 -1
  126. package/dist/chunk-DBQHEZPG.js +0 -1
  127. package/dist/chunk-DJBTBRPS.js +0 -1
  128. package/dist/chunk-EOBIVNFF.js +0 -1
  129. package/dist/chunk-GYDTKPW5.js +0 -1
  130. package/dist/chunk-H67HTXU4.js +0 -1
  131. package/dist/chunk-KLZXBPXI.js +0 -1
  132. package/dist/chunk-LCOWX5JR.js +0 -1
  133. package/dist/chunk-LHQI6WDJ.js +0 -54
  134. package/dist/chunk-M33EDDXB.js +0 -1
  135. package/dist/chunk-M4S26KQG.js +0 -1
  136. package/dist/chunk-MCBL6QAP.js +0 -1
  137. package/dist/chunk-MNACXCF5.js +0 -1
  138. package/dist/chunk-NX3CGW6Q.js +0 -1
  139. package/dist/chunk-PSXS4WMN.js +0 -1
  140. package/dist/chunk-QJBRJELT.js +0 -1
  141. package/dist/chunk-R6Z6F447.js +0 -1
  142. package/dist/chunk-RFPYC6DZ.js +0 -3
  143. package/dist/chunk-TX4BNXQC.js +0 -1
  144. package/dist/chunk-WIM26GEM.js +0 -1
  145. package/dist/chunk-YVRHDXYK.js +0 -16
  146. package/dist/chunk-ZVWJRZOZ.js +0 -1
@@ -0,0 +1,27 @@
1
+ import{a as u}from"./chunk-FOMWIGAQ.js";import{c as l}from"./chunk-ARZMBVXU.js";import{useEffect as k,useState as w}from"react";import{Tabs as Y,Button as m}from"antd";import d from"styled-components";import{Upload as X,Trash as v}from"lucide-react";import{observer as b}from"mobx-react-lite";import{jsx as o,jsxs as p}from"react/jsx-runtime";var C=[{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/81b623c61f379f8b6b59d6e3f63c10c8.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:450.5,top:123,width:900,height:245,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:450.5,top:192.5,width:886,height:80,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:26,name:"\u5F62\u72B6 1 \u62F7\u8D1D 7",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/df58054a-786a-4882-8436-f5ffed9c9528.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:448.43054900000004,top:88.84094399999998,width:880,height:124.3,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"SourceHanSansCN-Heavy",fontWeight:"normal",fontSize:110,text:"\u7206\u7B11\u6B63\u5728\u52A0\u8F7D\u4E2D\u2026",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:.14184705951538149,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:27,name:"\u7206\u7B11\u6B63\u5728\u52A0\u8F7D\u4E2D\u2026"}],width:900,height:245}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/03d45f72dbd9530e6cdfc2fb063e3b49.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:469.5,top:108.5,width:938,height:216,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:830,top:110.5,width:171,height:190,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:23,name:"\u5F62\u72B6 1",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/cb0c6b84-25e4-45e5-8d6c-d646e45bd265.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:831.238644,top:98.25498600000003,width:147.76459,height:124.3,fill:"rgba(255, 255, 255, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1.044109,scaleY:1.044109,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"SourceHanSansCN-Heavy",fontWeight:"normal",fontSize:110,text:"+1",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:24,name:"+1"},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:360.5,top:102,width:719.390864,height:203.227919,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"SourceHanSansCN-Heavy",fontWeight:"normal",fontSize:179.84771592471296,text:"\u5904\u7406\u6280\u5DE7",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:25,name:"\u5904\u7406\u6280\u5DE7"}],width:938,height:216}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/f8e4c5bfb5bd330058f70c4043c09e6b.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:529,top:130.5,width:1057,height:260,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:638.5,top:132,width:804,height:227,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:10,name:"\u56FE\u5C42 3",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/43641401-44b3-45f8-96c2-1fcab4030c17.png",crossOrigin:"anonymous",filters:[]},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:124,top:132.5,width:225,height:222,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:12,name:"\u56FE\u5C42 4",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/e34eb0b4-0f90-4370-ab17-8e5dc56004f9.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:129.73850000000004,top:137.67086099999995,width:185.9375,height:158.2,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"sucaijishi-kft",fontWeight:"normal",fontSize:140,text:"01",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:13,name:"01"},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:621.209607,top:146.58432800000003,width:640,height:180.8,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"sucaijishi-kft",fontWeight:"normal",fontSize:160,text:"\u88C5\u4FEE\u653B\u7565",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:14,name:"\u88C5\u4FEE\u653B\u7565"}],width:1057,height:260}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/3cf5e63e6fb22ea8c1dc2178667468e4.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:430,top:120,width:859,height:239,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:519.5,top:121.5,width:670,height:170,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:105,name:"\u77E9\u5F62 5",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/b293e875-d051-4c57-b0f3-eadebd23ef43.png",crossOrigin:"anonymous",filters:[]},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:122.5,top:120,width:242,height:239,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:98,name:"\u77E9\u5F62 41",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/8ccee46c-474f-4a72-8084-a92e3cf5cf4a.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:505.27964199999997,top:127.623694,width:480,height:135.6,fill:"rgba(1.989, 1.989, 1.989, 1)",stroke:null,strokeWidth:0,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"Chusung",fontWeight:"normal",fontSize:120,text:"\u4ECA\u65E5\u5FC3\u60C5",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:106,name:"\u4ECA\u65E5\u5FC3\u60C5"}],width:859,height:239}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/5faf22fa36d4eb06d46d687b5ac9084c.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:555,top:89,width:1109,height:177,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:77.5,top:84.5,width:142,height:138,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:757,name:"\u5F62\u72B6 1",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/5c409304-a874-49b0-a8f7-aea1bfb4d328.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:621.1910109999999,top:99.545797,width:938.019295,height:151.423115,fill:"rgba(255, 255, 255, 1)",stroke:"rgba(0, 0, 0, 1)",strokeWidth:5,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"TsangerYuYangT-W05",fontWeight:"normal",fontSize:134.002756467618,text:"\u56DB\u516D\u7EA7\u9AD8\u6548\u5907\u8003",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:.6959459459459459,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:755,name:"\u56DB\u516D\u7EA7\u9AD8\u6548\u5907\u8003"}],width:1109,height:177}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/5bf739287bc1b2f2279709e93453c753.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:597.5,top:260.5,width:1194,height:520,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:132,top:277,width:243,height:419,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:761,name:"\u56FE\u5C42 8",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/25561fa8-4af2-498a-805c-9cd1f85b001c.png",crossOrigin:"anonymous",filters:[]},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:1060.5,top:277,width:244,height:419,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:762,name:"\u56FE\u5C42 9",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/de0e0cbe-900c-43c3-b8bd-55a4080fd8c1.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:594,top:277.5,width:809.75799,height:428.27,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"SourceHanSerifCN-Bold",fontWeight:"normal",fontSize:113,text:`BEST
2
+ OF THE YEAR
3
+ -2024-`,underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:1.176991150442478,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:763,name:"BEST OF THE YEAR -2024-"}],width:1194,height:520}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/0d1c4158adb5b365cfdc07e874a3a8ff.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:474.5,top:172,width:948,height:343,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:504,top:197,width:841,height:239,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:948,name:"\u77E9\u5F62 1",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/bbac0b0e-0a17-4182-be4b-16f4fc1f3545.png",crossOrigin:"anonymous",filters:[]},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:97.5,top:90,width:212,height:211,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:961,name:"\u77E9\u5F62 2 \u62F7\u8D1D",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/c17d7ced-0b31-41d9-9987-7028658dbef2.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:503.5,top:197,width:708,height:200.01,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"TsangerYuYangT-W05",fontWeight:"normal",fontSize:177,text:"\u5E72\u8D27\u5206\u4EAB",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:.08135593220338984,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:962,name:"\u5E72\u8D27\u5206\u4EAB"}],width:948,height:343}},{url:"https://zh.gtimg.com/m-1/atom-record/resource/upload-one/6160feaaba8103014b0b53b5/3ecefb713c4ef1e0aba8a39c1d4890c0.png?imageMogr2/thumbnail/!50p",content:{objects:[{type:"rect",version:"5.4.2",originX:"center",originY:"center",left:436.5,top:100.0000005,width:872,height:199,fill:"rgba(255, 255, 255, 0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,rx:0,ry:0,id:"workarea"},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:486,top:94.0000005,width:767,height:163,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:973,name:"\u77E9\u5F62 3",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/42611a3a-c771-4d7f-aca7-823e52f2da72.png",crossOrigin:"anonymous",filters:[]},{type:"image",version:"5.4.2",originX:"center",originY:"center",left:100,top:100.0000005,width:199,height:199,fill:"rgb(0,0,0)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,cropX:0,cropY:0,id:970,name:"\u56FE\u5C42 2",src:"https://zh.gtimg.com/m-1/atom-parser/psd/new-upload-parse-only/6160feaaba8103014b0b53b5/workflow/58f14952-740b-4c7c-9930-398e1f74ff72.png",crossOrigin:"anonymous",filters:[]},{type:"textbox",version:"5.4.2",originX:"center",originY:"center",left:527,top:97.0000005,width:640.840645,height:90.518741,fill:"rgba(0, 0, 0, 1)",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0,fontFamily:"tsanger-yumoW04",fontWeight:"normal",fontSize:80.1050805676651,text:"\u9047\u5230\u8FD9\u4E9B\u8D76\u7D27\u56E4\uFF01",underline:!1,overline:!1,linethrough:!1,textAlign:"center",fontStyle:"normal",lineHeight:.23225806451612904,textBackgroundColor:"",charSpacing:0,styles:[],direction:"ltr",path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",minWidth:20,splitByGrapheme:!1,id:971,name:"\u9047\u5230\u8FD9\u4E9B\u8D76\u7D27\u56E4\uFF01"}],width:872,height:199}}],x=d.div`
4
+ height: calc(100vh - 125px);
5
+ display: flex;
6
+ flex-direction: column;
7
+
8
+ .bp5-dark & .polotno-text-preview-plain {
9
+ filter: invert(1);
10
+ }
11
+ `,L=d.div`
12
+ height: 100px;
13
+ cursor: pointer;
14
+ box-shadow: 0 0 5px rgba(16, 22, 26, 0.3);
15
+ border-radius: 6px;
16
+ background-color: rgba(0, 0, 0, 0.4);
17
+ position: relative;
18
+ font-size: 25px;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-content: center;
22
+ flex-direction: column;
23
+ text-align: center;
24
+ color: white;
25
+ margin-bottom: 10px;
26
+ user-select: none;
27
+ `,O=t=>new Promise((n,s)=>{let i=new FileReader;i.readAsDataURL(t),i.onload=()=>{n(i.result)},i.onerror=a=>{s(a)}}),S=b(({font:t,onSelect:n,onRemove:s})=>(console.log("font",t),p(L,{style:{fontFamily:t.fontFamily},className:"polotno-font-item",onClick:n,children:[t.fontFamily+" text",o(m,{type:"text",style:{position:"absolute",right:0,bottom:0},onClick:i=>{i.stopPropagation(),s()},children:o(v,{size:16,style:{color:"white"}})})]}))),h=t=>{let{onSelect:n,children:s,...i}=t;return o(m,{type:"text",block:!0,className:"polotno-close-panel",onClick:()=>{n&&n()},...i,children:s})},B=b(({store:t})=>{let[n,s]=w("text");k(()=>{t.loadFont("Roboto")},[]),k(()=>{t.fonts.forEach(e=>t.loadFont(e.fontFamily))},[t.fonts]);let i=e=>{s(e)},a=e=>{let f=e.width||t.width/2,r=e.left||t.width/2-f/2,g=e.top||t.height/2-e.fontSize/2,c=(t.width+t.height)/2160;t.addElement(Object.assign(Object.assign({type:"textbox",fontFamily:"Roboto"},e),{left:r,top:g,width:f,fontSize:e.fontSize*c,splitByGrapheme:!0}))},y=[{key:"text",label:l("sidePanel.text"),children:p(x,{children:[o(h,{style:{marginBottom:"5px",width:"100%",fontSize:"25px",fontFamily:"Roboto",padding:"20px 0"},onSelect:e=>{console.log("e ---> Header",e),a({text:l("sidePanel.headerText"),fontSize:76,fontFamily:"Roboto"})},children:l("sidePanel.createHeader")}),o(h,{style:{marginBottom:"5px",width:"100%",fontSize:"18px",fontFamily:"Roboto",padding:"20px 0"},onSelect:e=>{console.log("e ---> Sub Header",e),a({text:l("sidePanel.subHeaderText"),fontSize:44,fontFamily:"Roboto"})},children:l("sidePanel.createSubHeader")}),o(h,{style:{marginBottom:"5px",width:"100%",fontSize:"14px",fontFamily:"Roboto",padding:"20px 0"},onSelect:e=>{console.log("e ---> Body Text",e),a({text:l("sidePanel.bodyText"),fontSize:30,fontFamily:"Roboto"})},children:l("sidePanel.createBody")}),o(u,{shadowEnabled:!1,images:C,getPreview:e=>e.url,isLoading:!1,error:!1,onSelect:(...e)=>{console.log("args ---> ",e)},itemHeight:150,spacing:10})]})},{key:"myFonts",label:l("sidePanel.myFonts"),children:p("div",{style:{display:"flex",flexDirection:"column",height:"calc(100% - 50px)"},children:[p("label",{htmlFor:"polotno-font-upload",children:[p(m,{block:!0,onClick:()=>{let e=document.querySelector("#polotno-font-upload");e&&e.click()},children:[o(X,{size:16}),l("sidePanel.uploadFont")]}),o("input",{type:"file",accept:".ttf, .otf, .woff, .woff2, .eot",id:"polotno-font-upload",style:{display:"none"},onChange:async e=>{let{target:f}=e,r=f.files?.[0];if(r){console.log(r);let g=await O(r),c=r.name.split(".")[0];t.addFont({fontFamily:c,name:c,url:g})}}})]}),o("div",{style:{paddingTop:"20px",overflow:"auto",height:"100%"},children:t.fonts.map((e,f)=>o(S,{font:e,onSelect:()=>{a({fontSize:80,text:"Cool text",fontFamily:e.fontFamily})},onRemove:()=>{t.find(r=>(r.type==="textbox"&&r.fontFamily===e.fontFamily&&t.set(r,{fontFamily:"Roboto"}),!1)),t.removeFont(e.fontFamily)}},f))})]})}];return o("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:o(Y,{defaultActiveKey:"text",activeKey:n,items:y,onChange:i,styles:{content:{height:"100%"}}})})});export{B as a};
@@ -0,0 +1 @@
1
+ import{c as e}from"./chunk-ARZMBVXU.js";import{Button as o}from"antd";import{observer as l}from"mobx-react-lite";import{Fragment as u,jsx as r,jsxs as s}from"react/jsx-runtime";var d=l(({store:t})=>{let n=t.selectedElements.length>1,p=t.selectedElements.length===1&&t.selectedElements[0]?.type==="group";return s(u,{children:[n&&r(o,{type:"text",onClick:()=>{t.editor?.objectsHandler.group()},children:e("toolbar.groupElements")}),p&&r(o,{type:"text",onClick:()=>{t.editor?.objectsHandler.ungroup()},children:e("toolbar.ungroupElements")})]})});export{d as a};
@@ -0,0 +1 @@
1
+ import{a as y,b as k}from"./chunk-YRJUN267.js";import{a as u,b as P}from"./chunk-RVXI723F.js";import{a as C}from"./chunk-OQ6HU62L.js";import{c}from"./chunk-ARZMBVXU.js";import{ColorPicker as h,Tooltip as F,Button as x}from"antd";import{CirclePlus as b}from"lucide-react";import{useState as w,useRef as T,useMemo as A}from"react";import{cssGradient2FabricGradient as B}from"@ydesign/core";import{observer as g}from"mobx-react-lite";import{jsx as t,jsxs as f}from"react/jsx-runtime";var H=async e=>C(e),d=e=>e?typeof e=="string"?e:e.colorStops?JSON.stringify(e.colorStops):JSON.stringify(e):"",I=g(({store:e})=>{let r=e.editor?.workareaHandler.workarea?.fill,[o,n]=w(()=>u(r)),i=T(!1),s=T(d(r)),m=d(r);m!==s.current&&!i.current&&(s.current=m,n(u(r)));let v=A(()=>o,[d(o)]);return t(F,{title:c("toolbar.backgroundColor"),children:t("div",{style:{height:32},children:t(h,{value:v,allowClear:!0,mode:["single","gradient"],onOpenChange:l=>{i.current=l,l||(s.current=d(r))},onChange:l=>{n(l)},onChangeComplete:l=>{let p=l.toCssString();if(p.includes("gradient")){let S=B(p);e.editor?.workareaHandler.setWorkareaBgColor(S)}else e.editor?.workareaHandler.setWorkareaBgColor(p)}})})})}),R=g(({store:e})=>{let a=async r=>{let{target:o}=r;if(!(!o.files||o.files.length===0)){for(let n of o.files){let s={type:"image",src:await H(n)};e.editor?.objectsHandler.add(s)}o.value=""}};return t("div",{children:f("label",{htmlFor:"input-file",children:[f(x,{type:"text",styles:{root:{padding:"0 8px"}},onClick:()=>{document.querySelector("#input-file")?.click()},children:[t(b,{size:16})," ",c("toolbar.addImage")]}),t("input",{type:"file",id:"input-file",style:{display:"none"},onChange:a,multiple:!0,accept:"image/*"})]})})}),D=g(({store:e})=>t("div",{children:f(x,{type:"text",styles:{root:{padding:"0 8px"}},onClick:()=>{e.editor?.objectsHandler.add({originX:"left",originY:"top",fontSize:100,textAlign:"left",fill:P(),text:"Hello World",type:"textbox"})},children:[t(b,{size:16}),c("toolbar.addText")]})})),E={DefaultBackgroundPicker:I,DefaultAddImage:R,DefaultAddText:D},G=({store:e,components:a})=>{let o=y({type:"text",usedItems:["DefaultBackgroundPicker","DefaultAddImage","DefaultAddText"],components:a});return t(k,{items:o,itemRender:n=>{let i=a[n]||E[n];return i&&t(i,{store:e},n)}})},q=G;export{I as a,G as b,q as c};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-OQ6HU62L.js";import{a as u}from"./chunk-FOMWIGAQ.js";import{c as a}from"./chunk-ARZMBVXU.js";import{Button as g}from"antd";import{useRef as w,useState as y}from"react";import{Plus as F,Trash as L}from"lucide-react";import{observer as P}from"mobx-react-lite";import{jsx as e,jsxs as p}from"react/jsx-runtime";var v=async t=>m(t);function z(t){v=t}var O=[];function S(t){let{type:o}=t;return o.indexOf("svg")>=0?"svg":o.indexOf("gif")>=0?"gif":o.indexOf("image")>=0?"image":o.indexOf("video")>=0?"video":o.indexOf("audio")>=0?"audio":"image"}var b=P(({store:t})=>{let[o,d]=y(O),[f,c]=y(!1),s=w(null);return p("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[e("div",{style:{height:"45px",paddingTop:"5px"},children:a("sidePanel.uploadTip")}),e("div",{style:{marginBottom:"15px"},children:p("label",{htmlFor:"input-file",children:[p(g,{loading:f,block:!0,onClick:()=>{s.current&&s.current.click()},children:[e(F,{size:16}),a("sidePanel.uploadImage")]}),e("input",{type:"file",ref:s,style:{display:"none"},onChange:async i=>{let{target:l}=i;console.log(l),c(!0);try{if(l.files)for(let n of l.files){let r=await v(n),x=S(n),h=r;d(T=>T.concat([{url:r,type:x,preview:h,id:String(Math.random()*1e3)}]))}}catch(n){console.error(n)}c(!1),l.value=""},multiple:!0})]})}),e(u,{images:o,isLoading:f,getPreview:i=>i.preview,loadMore:!1,onSelect:i=>{console.log("item ---> ",t,i)},getCredit:i=>e("div",{children:e(g,{type:"text",style:{color:"white"},onClick:l=>{l.stopPropagation(),d(n=>n.filter(r=>r.id!==i.id))},children:e(L,{size:16})})})})]})}),D=b;export{z as a,b,D as c};
@@ -0,0 +1 @@
1
+ import{c as o}from"./chunk-ARZMBVXU.js";import{observer as r}from"mobx-react-lite";import{Popover as e,Button as i}from"antd";import{Pencil as p}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var a=r(()=>t(e,{trigger:"click",content:t("div",{children:"AI write"}),children:t(i,{type:"text",icon:t(p,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},children:o("toolbar.aiText.aiWrite")})}));export{a};
@@ -0,0 +1 @@
1
+ import{c as r}from"./chunk-ARZMBVXU.js";import{Blend as d}from"lucide-react";import{Popover as c,Tooltip as y,Button as u,InputNumber as h,Slider as v}from"antd";import{observer as g}from"mobx-react-lite";import{useState as f,useEffect as b}from"react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var M=g(({store:o})=>{let l=o.selectedShapes.length>0,e=o.selectedShapes[0],[n,i]=f(()=>Math.round(100*(e?.opacity??1)));b(()=>{e&&i(Math.round(100*(e.opacity??1)))},[e,e?.opacity]);let a=m=>{let p=Math.max(0,Math.min(m,100));i(p),o.editor?.objectsHandler.update({opacity:p/100})};return t(y,{title:r("toolbar.transparency"),placement:"bottom",children:t(c,{content:s("div",{children:[t("div",{style:{textAlign:"center",marginBottom:10},children:r("toolbar.transparency")}),s("div",{style:{display:"flex"},children:[t("div",{style:{width:170,paddingRight:20},children:t(v,{min:0,max:100,onChange:a,value:n})}),t(h,{min:0,max:100,value:n,onChange:a,size:"small",styles:{root:{width:65}}})]})]}),trigger:"click",children:t(u,{type:"text",disabled:!l,styles:{root:{padding:"0 7px"}},children:t(d,{size:16})})})})});export{M as a};
@@ -0,0 +1,9 @@
1
+ import{a as r}from"./chunk-MXZ6RXT3.js";import{b as l}from"./chunk-DCGJ6RKU.js";import{c as s}from"./chunk-ARZMBVXU.js";import{observer as d}from"mobx-react-lite";import{jsx as e,jsxs as i}from"react/jsx-runtime";var y=d(({store:a})=>{let n=t=>{a.editor?.objectsHandler.createPathElement(t.path)},c=t=>{a.editor?.objectsHandler.createShapeElement(t.type)};return i("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"auto"},className:"no-scrollbar",children:[e("style",{children:`
2
+ .no-scrollbar::-webkit-scrollbar {
3
+ display: none;
4
+ }
5
+ .no-scrollbar {
6
+ -ms-overflow-style: none;
7
+ scrollbar-width: none;
8
+ }
9
+ `}),l.map((t,m)=>i("div",{className:"category",children:[e("div",{className:r("category-name","text-base px-2 mt-2"),children:s("sidePanel.shapes")},t.name),e("div",{className:r("shape-list","flex flex-wrap content-start mb-2"),children:t.children.map((o,p)=>e("div",{className:r("shape-item","w-[25%] h-0 pb-[25%] relative cursor-pointer shrink-0 mb-[1.2%]"),onClick:()=>{o.type?c(o):n(o)},children:e("div",{className:r("shape-content","absolute inset-0 flex justify-center items-center"),children:e("svg",{overflow:"visible",width:"50",height:"50",children:e("g",{transform:`scale(${50/o.viewBox[0]}, ${50/o.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`,children:e("path",{className:"shape-path",d:o.path,fill:"#ccc",strokeMiterlimit:8,strokeLinecap:"butt"})})})})},p))})]},m))]})});export{y as a};
@@ -0,0 +1 @@
1
+ import{d as a}from"./chunk-WJT6VPDR.js";import{a as t}from"./chunk-O2XFH626.js";import*as s from"mobx";import{createContext as i,useContext as c}from"react";var l=r=>{try{return localStorage.getItem(r)}catch{return null}},g=(r,e)=>{try{localStorage.setItem(r,e)}catch{}},o=class{constructor({store:e}){t(this,"store");t(this,"id","");t(this,"name","");t(this,"user",{});t(this,"skipSaving",!1);t(this,"cloudEnabled",!1);t(this,"status","saved");t(this,"language",l("ydesign-language")||navigator.language||"en");t(this,"designsLength",0);s.makeAutoObservable(this),this.store=e}setLanguage(e){this.language=e,g("ydesign-language",e)}requestSave(){}async firstLoad(e){this.store.loadJSON(e)}async loadById(e){console.log("loadById",e)}updateUrlWithProjectId(){if(!this.id||this.id==="local"){window.history.replaceState({},"","/");return}let e=new URL(window.location.href);new URLSearchParams(e.search).set("id",this.id),window.history.replaceState({},"",`/design/${this.id}`)}async save(){}async getGlobalFont(e){return e?.length?(a(e),e):[]}},u=i(null),m=()=>{let r=c(u);if(!r)throw new Error("useProject must be used within a ProjectProvider");return r},p=r=>new o(r),h=p;export{u as a,m as b,p as c,h as d};
@@ -0,0 +1 @@
1
+ import{c as l}from"./chunk-ARZMBVXU.js";import{Layers as x}from"lucide-react";import{Popover as m,Button as n,Divider as a}from"antd";import{observer as v}from"mobx-react-lite";import{ChevronUp as b,ChevronsUp as g,ChevronDown as y,ChevronsDown as k,AlignStartVertical as w,AlignCenterVertical as f,AlignEndVertical as u,AlignStartHorizontal as z,AlignCenterHorizontal as C,AlignEndHorizontal as B,AlignVerticalSpaceAround as h,AlignHorizontalSpaceAround as E}from"lucide-react";import{Fragment as d,jsx as t,jsxs as o}from"react/jsx-runtime";var S=v(({store:e})=>{let p=e.selectedElements.length>0,i=e.selectedElementsIds,s=e.selectedElements.every(r=>r?.locked),c=!s&&e.selectedElements.length>1;return t(m,{styles:{container:{padding:"10px 5px"}},content:o("div",{style:{width:280},children:[t(a,{size:"small",children:l("toolbar.layering")}),o("div",{style:{display:"flex"},children:[o("div",{style:{width:"50%"},children:[t(n,{type:"text",block:!0,icon:t(b,{size:16}),disabled:!e.canMoveElementsUp(i),onClick:()=>{e.moveElementsUp(i)},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.up")})}),t(n,{type:"text",block:!0,icon:t(g,{size:16}),disabled:!e.canMoveElementsTop(i),onClick:()=>{e.moveElementsTop(i)},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.toForward")})})]}),o("div",{style:{width:"50%"},children:[t(n,{type:"text",block:!0,icon:t(y,{size:16}),disabled:!e.canMoveElementsDown(i),onClick:()=>{e.moveElementsDown(i)},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.down")})}),t(n,{type:"text",block:!0,icon:t(k,{size:16}),disabled:!e.canMoveElementsBottom(i),onClick:()=>{e.moveElementsBottom(i)},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.toBottom")})})]})]}),!s&&o(d,{children:[t(a,{size:"small",children:l("toolbar.position")}),o("div",{style:{display:"flex"},children:[o("div",{style:{width:"50%"},children:[t(n,{type:"text",block:!0,icon:t(w,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignLeft()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignLeft")})}),t(n,{type:"text",block:!0,icon:t(f,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignCenter()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignCenter")})}),t(n,{type:"text",block:!0,icon:t(u,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignRight()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignRight")})})]}),o("div",{style:{width:"50%"},children:[t(n,{type:"text",block:!0,icon:t(z,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignTop()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignTop")})}),t(n,{type:"text",block:!0,icon:t(C,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignMiddle()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignMiddle")})}),t(n,{type:"text",block:!0,icon:t(B,{size:16}),onClick:()=>{e.editor?.alignmentHandler.alignBottom()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.alignBottom")})})]})]})]}),c&&o(d,{children:[t(a,{size:"small",children:l("toolbar.spaceEvenly")}),o("div",{style:{display:"flex"},children:[t("div",{style:{width:"50%"},children:t(n,{type:"text",block:!0,icon:t(h,{size:16}),onClick:()=>{e.editor?.alignmentHandler.yequation()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.verticalDistribution")})})}),t("div",{style:{width:"50%"},children:t(n,{type:"text",block:!0,icon:t(E,{size:16}),onClick:()=>{e.editor?.alignmentHandler.xequation()},children:t("span",{className:"w-[70px] text-left text-xs",children:l("toolbar.horizontalDistribution")})})})]})]})]}),trigger:"click",placement:"bottom",children:o(n,{type:"text",disabled:!p,styles:{root:{padding:"0 7px"}},children:[t(x,{size:16}),l("toolbar.position")]})})});export{S as a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-FOMWIGAQ.js";import{c as o}from"./chunk-ARZMBVXU.js";import{Input as a}from"antd";import{observer as p}from"mobx-react-lite";import{jsx as x,jsxs as l}from"react/jsx-runtime";var{Search:f}=a,w=[{urls:{raw:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1756142752432-a8f0c44be6f4"},links:{self:"https://api.unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",html:"https://unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",download:"https://unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8192,height:5464},{urls:{raw:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762930163317-01b67347b1bf"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",html:"https://unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",download:"https://unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:6720,height:4480},{urls:{raw:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762544968153-b9b47435fefd"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",html:"https://unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",download:"https://unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762926949860-32a256c3bfe1"},links:{self:"https://api.unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",html:"https://unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",download:"https://unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3661,height:5490},{urls:{raw:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762803733564-fecc7669a91a"},links:{self:"https://api.unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",html:"https://unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",download:"https://unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8320,height:12480},{urls:{raw:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1711322352942-cda9aeed0641"},links:{self:"https://api.unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",html:"https://unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",download:"https://unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:2642,height:3301},{urls:{raw:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211579-928eb9e9bb70"},links:{self:"https://api.unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",html:"https://unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",download:"https://unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761839257287-3030c9300ece"},links:{self:"https://api.unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",html:"https://unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",download:"https://unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:5472,height:3648},{urls:{raw:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211603-0e764c23cf92"},links:{self:"https://api.unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",html:"https://unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",download:"https://unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762545112336-646c69e4888b"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",html:"https://unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",download:"https://unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762862064886-72a3dcc25230"},links:{self:"https://api.unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",html:"https://unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",download:"https://unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6195,height:3485},{urls:{raw:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710994140598-a35ce9ed17be"},links:{self:"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",html:"https://unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",download:"https://unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008},{urls:{raw:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762795116942-1faf2ae6cf84"},links:{self:"https://api.unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",html:"https://unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",download:"https://unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5304,height:7952},{urls:{raw:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762794320130-675e00cd989a"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",html:"https://unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",download:"https://unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3500,height:2500},{urls:{raw:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761864294727-3c9f6b3e7425"},links:{self:"https://api.unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",html:"https://unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",download:"https://unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4096,height:4096},{urls:{raw:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762789291015-51c5a710c73c"},links:{self:"https://api.unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",html:"https://unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",download:"https://unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3e3,height:2e3},{urls:{raw:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762792049412-7bf096c0f016"},links:{self:"https://api.unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",html:"https://unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",download:"https://unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5084,height:3813},{urls:{raw:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762763954800-c77f92354aff"},links:{self:"https://api.unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",html:"https://unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",download:"https://unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6336,height:9520},{urls:{raw:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762710940358-e3351cc9ff34"},links:{self:"https://api.unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",html:"https://unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",download:"https://unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762709781475-14fb1c385eac"},links:{self:"https://api.unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",html:"https://unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",download:"https://unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008}],n=p(({store:i})=>l("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x("div",{style:{padding:"0 4px",marginBottom:10},children:x(f,{placeholder:o("sidePanel.searchPlaceholder")})}),x(t,{shadowEnabled:!1,images:w,getPreview:s=>s.urls.regular,isLoading:!1,error:!1,onSelect:s=>{console.log("args ---> ",i,s)}})]}));export{n as a};
@@ -0,0 +1,3 @@
1
+ import{a as I}from"./chunk-YOQ663QO.js";import{a as x}from"./chunk-TYHXQPZQ.js";import{a as C}from"./chunk-TWH7TO5J.js";import{a as k}from"./chunk-4WITBL6X.js";import{a as b}from"./chunk-CB23VFSC.js";import{b as v}from"./chunk-3TO57JPN.js";import{a as l}from"./chunk-MXZ6RXT3.js";import{a as u,b as f}from"./chunk-YRJUN267.js";import{b as y}from"./chunk-DCGJ6RKU.js";import{k as d,l as h}from"./chunk-7NNOHYKX.js";import{c}from"./chunk-ARZMBVXU.js";import{observer as m}from"mobx-react-lite";import{Button as p,Tooltip as P,Popover as S}from"antd";import{Crop as w}from"lucide-react";import F from"styled-components";import{jsx as o}from"react/jsx-runtime";var B=Object.keys(d),E=[{width:300,height:300,fill:"lightgray",stroke:"#0c0c0c",strokeWidth:0,url:""}],T=[];B.forEach(t=>{E.forEach(e=>{T.push(Object.assign({subType:t},e))})});T.forEach(t=>{t.url=b(h(t))});var R=F.div`
2
+ height: 220px;
3
+ `,g={root:{padding:"0 7px"}},H=m(({element:t,store:e})=>o(p,{type:"text",styles:g,onClick:async()=>{let i=e.width+2*e.bleed,s=e.height+2*e.bleed,r=t.getOriginalSize(),a={width:r.width,height:r.height},n=v({width:i,height:s},a);t.set({cropX:n.cropX,cropY:n.cropY,width:n.width,height:n.height,scaleX:i/n.width,scaleY:s/n.height,left:-e.bleed,top:-e.bleed}),t.setCoords(),e.editor?.customCanvas?.canvas?.requestRenderAll()},children:c("toolbar.fitToBackground")})),U=m(({element:t,store:e})=>o(P,{title:c("toolbar.crop"),children:o(p,{type:"text",styles:{root:{padding:"0 7px"}},onClick:()=>{let i=e.editor?.layerHandler.getLayer();e.editor?.imageCropHandler.cropStart(t,i,t.getSrc())},children:o(w,{size:16})})})),L=m(({element:t,store:e})=>{let i=y.reduce((r,a)=>r.concat(a.children),[]),s=Math.ceil(i.length/4)||1;return t.clipPath?o(p,{type:"text",styles:g,onClick:()=>{t.set({clipPath:null}),e.editor?.customCanvas?.canvas?.requestRenderAll(),e._triggerUpdate()},children:c("toolbar.removeClip")}):o(S,{styles:{container:{padding:"5px 10px"}},content:o("div",{style:{maxHeight:313,overflowY:"auto"},children:o(R,{style:{height:80*s,width:300},children:o("div",{className:l("shape-list","flex flex-wrap content-start mb-2"),children:i.map((r,a)=>o("div",{className:l("shape-item","w-[25%] h-0 pb-[25%] relative cursor-pointer shrink-0 mb-[1.2%]"),onClick:()=>{e.editor?.objectsHandler.createMaskElement(t,r),e._triggerUpdate()},children:o("div",{className:l("shape-content","absolute inset-0 flex justify-center items-center"),children:o("svg",{overflow:"visible",width:"50",height:"50",children:o("g",{transform:`scale(${50/r.viewBox[0]}, ${50/r.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`,children:o("path",{className:"shape-path",d:r.path,fill:"#ccc",strokeMiterlimit:8,strokeLinecap:"butt"})})})})},a))})})}),trigger:"click",children:o(p,{type:"text",styles:g,children:c("toolbar.clip")})})}),Y={ImageFlip:x,ImageFilters:I,ImageFitToBackground:H,ImageCrop:U,ImageClip:L,ImageRemoveBackground:k,ImageEraserPen:C},A=m(({store:t,components:e})=>{let i=t.selectedElements,r=u({type:"text",usedItems:["ImageFlip","ImageFilters","ImageFitToBackground","ImageClip","ImageCrop","ImageRemoveBackground","ImageEraserPen"],components:e});return o(f,{items:r,itemRender:a=>{let n=e[a]||Y[a];return n&&o(n,{elements:i,element:i[0],store:t},a)}})}),V=A;export{H as a,U as b,L as c,A as d,V as e};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-IUFYYEGO.js";import{c as t}from"./chunk-ARZMBVXU.js";import{Trash2 as i}from"lucide-react";import{Tooltip as l,Button as s}from"antd";import{observer as n}from"mobx-react-lite";import{jsx as o}from"react/jsx-runtime";var T=n(({store:r})=>{let{disabled:m,remove:p}=e({store:r});return o(l,{title:t("toolbar.removeElements"),placement:"bottom",children:o(s,{type:"text",styles:{root:{padding:"0 7px"}},disabled:m,onClick:()=>{p()},children:o(i,{size:16})})})});export{T as a};
@@ -0,0 +1 @@
1
+ import{c as o}from"./chunk-ARZMBVXU.js";import{Button as c,Modal as m}from"antd";import{Eraser as p}from"lucide-react";import{useState as s,useEffect as d}from"react";import{observer as n}from"mobx-react-lite";import{Fragment as g,jsx as t,jsxs as x}from"react/jsx-runtime";var f=n(({isOpen:a,onClose:r,element:e})=>{let[l,i]=s(e.getSrc());return d(()=>{i(e.getSrc())},[e.id]),t(m,{title:o("toolbar.eraserPenTitle"),open:a,onOk:r,onCancel:r,width:{xs:"90%",sm:"80%",md:"70%",lg:"60%",xl:"50%",xxl:"40%"},styles:{body:{padding:"35px 0"}},okText:o("toolbar.confirmEraserPen"),cancelText:o("toolbar.cancelEraserPen"),children:t("img",{src:l,style:{width:"100%",maxHeight:"400px",objectFit:"contain"}})})}),I=n(({element:a})=>{let[r,e]=s(!1);return x(g,{children:[t(c,{type:"text",icon:t(p,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},onClick:()=>e(!0),children:o("toolbar.eraserPen")}),t(f,{isOpen:r,onClose:()=>e(!1),element:a})]})});export{I as a};
@@ -0,0 +1 @@
1
+ import{c as e}from"./chunk-ARZMBVXU.js";import{Popover as c,Button as p}from"antd";import{Rotate3d as n,FlipHorizontal as y,FlipVertical as d}from"lucide-react";import{useState as b,useEffect as m,useCallback as f}from"react";import{observer as u}from"mobx-react-lite";import{jsx as i,jsxs as x}from"react/jsx-runtime";var F=u(({element:o,store:l})=>{let[t,r]=b({flipX:!1,flipY:!1}),a=f(()=>{l.editor?.objectsHandler.update({flipX:!t.flipX}),r({...t,flipX:!t.flipX})},[l.editor,t]),s=f(()=>{l.editor?.objectsHandler.update({flipY:!t.flipY}),r({...t,flipY:!t.flipY})},[l.editor,t]);return m(()=>{o&&r({flipX:o.flipX,flipY:o.flipY})},[o]),i(c,{trigger:"click",content:x("div",{style:{width:165},children:[i(p,{type:"text",block:!0,style:{justifyContent:"start"},icon:i(y,{size:16,style:{display:"flex"}}),onClick:a,children:e("toolbar.flipHorizontally")}),i(p,{type:"text",block:!0,style:{justifyContent:"start"},icon:i(d,{size:16,style:{display:"flex"}}),onClick:s,children:e("toolbar.flipVertically")})]}),children:i(p,{type:"text",icon:i(n,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},children:e("toolbar.flip")})})});export{F as a};
@@ -0,0 +1,9 @@
1
+ import{a as s}from"./chunk-N5KI6CPA.js";import{a as w}from"./chunk-FOMWIGAQ.js";import{c as x}from"./chunk-ARZMBVXU.js";import{observable as f}from"mobx";import{observer as l}from"mobx-react-lite";import M from"styled-components";import{Input as n}from"antd";import{jsx as o,jsxs as r}from"react/jsx-runtime";var{Search:e}=n,m=["https://images.unsplash.com/photo-1579546929518-9e396f3cc809?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1635776062360-af423602aff3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwyfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604079628040-94301bb21b91?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwzfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604076913837-52ab5629fba9?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw0fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579547621706-1a9c79d5c9f1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw1fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1635776062127-d379bfcba9f8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw2fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1508614999368-9260051292e5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw3fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw4fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579546928937-641f7ac9bced?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw5fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604076850742-4c7221f3101b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1618397746666-63405ce5d015?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1557683316-973673baf926?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMnx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1554034483-04fda0d3507b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxM3x8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579548122080-c35fd6820ecb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1523821741446-edb2b68bb7a0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1644426358812-879f02d1d867?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNnx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1550859492-d5da9d8e45f3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxN3x8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579546929662-711aa81148cf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxOHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1589810264340-0ce27bfbf751?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxOXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1569982175971-d92b01cf8694?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwyMHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400"],p=f(["white","rgb(82, 113, 255)","rgb(255, 145, 77)","rgb(126, 217, 87)","rgb(255, 222, 89)","rgb(203, 108, 230)","rgba(0, 0, 0, 0)"]),c=M.div`
2
+ display: inline-block;
3
+ width: 30px;
4
+ height: 30px;
5
+ border-radius: 3px;
6
+ cursor: pointer;
7
+ box-shadow: 0 0 2px rgba(16, 22, 26, 0.3);
8
+ overflow: hidden;
9
+ `,b=t=>{let{color:i,children:a}=t;return o(c,{...t,style:{background:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 8 8'%3E%3Cg fill='rgba(112, 112, 116, 1)' fill-opacity='1'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E")`},children:o("div",{style:{width:"100%",height:"100%",background:i},children:a})})},Y=t=>{p.replace(t)},N=l(({store:t})=>r("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[r("div",{style:{display:"flex",justifyContent:"space-around",paddingBottom:10,alignItems:"center"},children:[o(s,{store:t}),p.map(i=>o(b,{color:i,onClick:()=>{}},i))]}),o("div",{style:{padding:"0 4px",marginBottom:10},children:o(e,{placeholder:x("sidePanel.searchPlaceholder")})}),o(w,{images:m,isLoading:!1,getPreview:i=>i,loadMore:!1,onSelect:i=>{console.log(i)}})]}));export{Y as a,N as b};
@@ -0,0 +1,16 @@
1
+ import{d as S}from"./chunk-RUVPKBI5.js";import{a as N}from"./chunk-2PAJLUQH.js";import{a as w}from"./chunk-XRRO2RT7.js";import{a as H}from"./chunk-OBJ5NZSC.js";import{a as E}from"./chunk-QX7ZGRSR.js";import{a as R}from"./chunk-TNBL7KOG.js";import{c as k}from"./chunk-4BG4CHIB.js";import{e as n}from"./chunk-HD2T2D4D.js";import{a as x}from"./chunk-KCNKLCD5.js";import{b as C}from"./chunk-HQSM4X2M.js";import{a as B}from"./chunk-INRJE7VS.js";import{b as h}from"./chunk-N5KI6CPA.js";import{c as u}from"./chunk-ARZMBVXU.js";import f from"styled-components";import{useRef as Q}from"react";import{Tooltip as D,Button as G}from"antd";import{Undo2 as X,Redo2 as _}from"lucide-react";import{observer as q}from"mobx-react-lite";import{useEffect as J}from"react";import{jsx as i,jsxs as K}from"react/jsx-runtime";var P=q(({store:o})=>(J(()=>{},[o._updateHistory]),K(y,{style:{float:"left",paddingRight:10},children:[i(D,{title:u("toolbar.undo"),placement:"bottom",children:i(G,{type:"text",disabled:!o.editor?.historyHandler.canUndo(),styles:{root:{padding:"0 7px"}},onClick:()=>{o.editor?.historyHandler.undo()},children:i(X,{size:16})})}),i(D,{title:u("toolbar.redo"),placement:"bottom",children:i(G,{type:"text",disabled:!o.editor?.historyHandler.canRedo(),styles:{root:{padding:"0 7px"}},onClick:()=>{o.editor?.historyHandler.redo()},children:i(_,{size:16})})})]})));import{observer as V}from"mobx-react-lite";import{Button as z,Divider as W,Space as Y}from"antd";import{Check as Z,X as $}from"lucide-react";import{Fragment as no,jsx as e,jsxs as l}from"react/jsx-runtime";var oo=f.div`
2
+ white-space: nowrap;
3
+
4
+ height: 50px;
5
+ padding: 0 15px;
6
+ position: relative;
7
+ width: 100%;
8
+ z-index: 10;
9
+ `,to=f.div`
10
+ width: 100%;
11
+ height: 100%;
12
+ `,y=f.div`
13
+ align-items: center;
14
+ display: flex;
15
+ height: 50px;
16
+ `,eo=({store:o})=>l(Y,{style:{height:50},children:[l(z,{onClick:()=>{o.editor?.imageCropHandler.cropImg.onDeselectEvent()},children:[e(Z,{size:16}),"\u5B8C\u6210"]}),l(z,{onClick:()=>{o.editor?.imageCropHandler.cropCancel()},children:[e($,{size:16}),"\u53D6\u6D88"]})]}),c={textbox:k,image:S,path:n,rect:n,circle:n,ellipse:n,triangle:n,cropimage:eo,many:w};function Go(o,d){c[o]=d}var ro=V(({store:o,downloadButtonEnabled:d,components:p={}})=>{let O=new Set(o.selectedElements.map(r=>r?.type)).size===1,b=o.selectedElements.length===1,a=o.selectedElements[0],g=o.selectedElements.length&&o.selectedElements.every(r=>r?.locked),v=b&&a?.isCropping,s=b&&c[a?.type];O?s=c[a?.type]:o.selectedElements.length>1&&(s=c.many);let m=Q(p);(Object.keys(p).some(r=>p[r]!==m.current[r])||Object.keys(m.current).some(r=>!(r in p)))&&(m.current=Object.assign({},p));let t=m.current,T=t?.ActionControls||(d?C:null),I=t?.Position||E,L=t?.Opacity||H,j=t?.Lock||N,A=t?.Duplicate||B,F=t?.Remove||R,U=t?.History||P,M=t?.Group||x;return e(oo,{className:"bp5-navbar design-toolbar",children:l(to,{children:[!v&&e(U,{store:o}),!a&&e(h,{store:o,components:t}),s&&!g&&e(s,{store:o,components:t}),!v&&l(y,{style:{float:"right"},children:[e(M,{store:o}),e(I,{store:o}),!g&&e(L,{store:o}),e(j,{store:o}),e(A,{store:o}),e(F,{store:o}),T&&l(no,{children:[e(W,{orientation:"vertical",style:{margin:"0 15px"}}),e(T,{store:o})]})]})]})})}),Po=ro;export{y as a,Go as b,ro as c,Po as d,P as e};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-4LUZF4CB.js";import{c as l}from"./chunk-ARZMBVXU.js";import{observer as m}from"mobx-react-lite";import{ReactSortable as f}from"react-sortablejs";import{useState as u}from"react";import{findIndex as g}from"es-toolkit/compat";import{Button as y,Card as h,Input as x}from"antd";import{GripVertical as b,Eye as k,EyeClosed as C,LockKeyholeOpen as j,LockKeyhole as E,Trash as H}from"lucide-react";import{jsx as t,jsxs as n}from"react/jsx-runtime";var T=m(({element:e,store:i})=>{let[r,o]=u(!1),a=g(i.selectedElements,d=>d?.id===e?.id)>=0,c=r?e.name||"":e.name||v(e.text)||`#${e.id||"\u7A7A"}`;return t(h,{className:a?"selected":"",style:{marginBottom:6,backgroundColor:a?"rgba(22, 119, 255, 0.3)":""},styles:{body:{padding:"8px 5px"}},onMouseDown:d=>{let s=d.ctrlKey||d.metaKey||d.shiftKey?[...i.selectedElements]:[];g(s,p=>p.id===e.id)<0&&(s.push(e),i.selectElements(s.map(p=>p.id)),i.editor?.objectsHandler.selectElements(s))},children:n("div",{style:{display:"flex",justifyContent:"space-between"},children:[n("div",{style:{lineHeight:"30px",display:"flex"},children:[t("div",{className:"drag-handle",style:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"move",height:30},children:t(b,{size:16})}),t("div",{style:{padding:"0 7px",opacity:.5,width:65},children:e.type}),t("div",{style:{maxWidth:138},children:t(x,{style:{minWidth:130},placeholder:l("sidePanel.namePlaceholder"),value:c,onFocus:()=>{o(!0)},onBlur:()=>{o(!1)},onChange:d=>{i.editor?.objectsHandler.update({name:d.target.value},e.id),i._triggerUpdate()}})})]}),n("div",{children:[t(y,{type:"text",styles:{root:{padding:"0 7px"}},onClick:()=>{i.editor?.objectsHandler.update({visible:!e.visible},e.id),i._triggerUpdate()},children:e.visible?t(k,{size:16}):t(C,{size:16})}),t(y,{type:"text",styles:{root:{padding:"0 7px"}},onClick:()=>{e?.lockMovementX?i.editor?.lockHandler.unlock(e.id):i.editor?.lockHandler.lock(e.id)},children:e.lockMovementX?t(E,{size:16}):t(j,{size:16})}),t(y,{type:"text",styles:{root:{padding:"0 7px"}},onClick:()=>{i.editor?.objectsHandler.remove(e.id)},children:t(H,{size:16})})]})]})})}),M=m(({store:e})=>{let r=e.objects.filter(o=>o?.id!=="workarea").reverse();return n("div",{style:{height:"100%",overflow:"auto"},children:[t("div",{style:{height:40,paddingTop:5},children:l("sidePanel.layersTip")}),t("div",{children:r.length===0?t("div",{children:l("sidePanel.noLayers")}):null}),t(f,{list:r,direction:"horizontal",setList:o=>{o.forEach((a,c)=>{let d=o.length-c;e.objects.indexOf(a)!==d&&(e.editor?.layerHandler.updateLayerOrderByTargetIndex(d,!0,a),e._triggerUpdate())})},children:r.map(o=>t(T,{element:o,store:e},o.id))})]})});export{M as a};
@@ -0,0 +1 @@
1
+ import{c as l}from"./chunk-ARZMBVXU.js";import{Popover as ve,Button as Fe,Switch as T,Slider as k,InputNumber as v,ColorPicker as Z}from"antd";import{observer as pe}from"mobx-react-lite";import{Sparkles as ye}from"lucide-react";import{useEffect as xe,useState as i}from"react";import{Fragment as W,jsx as a,jsxs as s}from"react/jsx-runtime";var F=(h,g,f)=>Math.max(g,Math.min(f,h)),$={display:"inline-flex",justifyContent:"space-between",width:"100%",padding:6},E={display:"flex",alignItems:"center",justifyContent:"space-between",padding:6},u=({label:h,enabled:g,visible:f=!0,onEnabledChange:O,numberValue:n,min:t,max:p,onNumberValueChange:o,step:m})=>f?s(W,{children:[s("div",{style:{display:"inline-flex",justifyContent:"space-between",width:"100%",padding:"6px"},children:[a("span",{children:h}),a(T,{checked:g,onChange:d=>{O(d)}})]}),g?s("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",marginTop:10,marginBottom:10},children:[a("div",{style:{flex:1},children:a(k,{value:n,onChange:d=>{o(d)},min:t,max:p,step:m})}),a(v,{size:"small",style:{width:60,marginLeft:10},value:n,step:m,onChange:d=>{o(F(d,t,p))}})]}):null]}):null,ke=pe(({element:h,store:g,elements:f})=>{let n=(f||[h])[0],t=g.editor,p=n?.type==="textbox",o=n?.type==="image",m=t?.imageFiltersHandler.getFilter("blur"),d=t?.imageFiltersHandler.getFilter("brightness"),y=t?.imageFiltersHandler.getFilter("contrast"),x=t?.imageFiltersHandler.getFilter("saturation"),C=t?.imageFiltersHandler.getFilter("vibrance"),H=t?.imageFiltersHandler.getFilter("hueRotation"),w=t?.imageFiltersHandler.getFilter("noise"),V=t?.imageFiltersHandler.getFilter("pixelate"),[ee,_]=i(!!m),[te,M]=i(m?.blur||.5),[ae,S]=i(!!d),[ne,L]=i(d?.brightness||.05),[re,I]=i(!!y),[ie,q]=i(y?.contrast||.25),[le,N]=i(!!x),[se,D]=i(x?.saturation||1),[oe,R]=i(!!C),[be,G]=i(C?.vibrance||1),[de,j]=i(!!H),[ce,J]=i(H?.rotation||-.5),[ue,A]=i(!!w),[me,K]=i(w?.noise||30),[ge,X]=i(!!V),[he,Q]=i(V?.blocksize||30),[fe,Y]=i(n?.stroke),[P,z]=i(n?.strokeWidth),[b,U]=i({enabled:!!n?.shadow,offsetX:n?.shadow?.offsetX||15,offsetY:n?.shadow?.offsetY||15,blur:n?.shadow?.blur||25,color:n?.shadow?.color||"rgba(0,0,0,0.45)",affectStroke:!1,nonScaling:!1,type:"shadow"});xe(()=>{Y(n?.stroke),z(n?.strokeWidth),U({enabled:!!n?.shadow,offsetX:n?.shadow?.offsetX||15,offsetY:n?.shadow?.offsetY||15,blur:n?.shadow?.blur||25,color:n?.shadow?.color||"rgba(0,0,0,0.45)",affectStroke:!1,nonScaling:!1,type:"shadow"}),_(!!m),M(m?.blur||.5),S(!!d),L(d?.brightness||.05),I(!!y),q(y?.contrast||.25),N(!!x),D(x?.saturation||1),R(!!C),G(C?.vibrance||1),j(!!H),J(H?.rotation||-.5),A(!!w),K(w?.noise||30),X(!!V),Q(V?.blocksize||30)},[n]);let B=e=>{t?.objectsHandler.setTextStyle(e)},c=(e,r)=>{U({...b,[e]:r}),t&&t.objectsHandler.setShadow({...b,[e]:r})};return a(ve,{trigger:"click",content:s("div",{style:{width:"280px",maxHeight:"calc(100vh - 150px)",overflow:"auto"},children:[a(u,{label:l("toolbar.blur"),visible:o,enabled:ee,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"blur",{blur:.5}),_(!0)):(t?.imageFiltersHandler._removeFilter(r,"blur"),_(!1))},min:0,max:1,step:.1,numberValue:te,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("blur","blur",e),M(e)}}),a(u,{label:l("toolbar.brightness"),visible:o,enabled:ae,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"brightness",{brightness:.05}),S(!0)):(t?.imageFiltersHandler._removeFilter(r,"brightness"),S(!1))},min:-1,max:1,step:.01,numberValue:ne,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("brightness","brightness",e),L(e)}}),a(u,{label:l("toolbar.contrast"),visible:o,enabled:re,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"contrast",{contrast:.25}),I(!0)):(t?.imageFiltersHandler._removeFilter(r,"contrast"),I(!1))},min:-1,max:1,step:.01,numberValue:ie,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("contrast","contrast",e),q(e)}}),a(u,{label:l("toolbar.saturation"),visible:o,enabled:le,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"saturation",{saturation:1}),N(!0)):(t?.imageFiltersHandler._removeFilter(r,"saturation"),N(!1))},min:-1,max:1,step:.01,numberValue:se,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("saturation","saturation",e),D(e)}}),a(u,{label:l("toolbar.vibrance"),visible:o,enabled:oe,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"vibrance",{vibrance:1}),R(!0)):(t?.imageFiltersHandler._removeFilter(r,"vibrance"),R(!1))},min:-1,max:1,step:.01,numberValue:be,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("vibrance","vibrance",e),G(e)}}),a(u,{label:l("toolbar.hueRotation"),visible:o,enabled:de,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"hueRotation",{rotation:-.5}),j(!0)):(t?.imageFiltersHandler._removeFilter(r,"hueRotation"),j(!1))},min:-1,max:1,step:.01,numberValue:ce,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("hueRotation","rotation",e),J(e)}}),a(u,{label:l("toolbar.noise"),visible:o,enabled:ue,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"noise",{noise:30}),A(!0)):(t?.imageFiltersHandler._removeFilter(r,"noise"),A(!1))},min:0,max:1e3,step:1,numberValue:me,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("noise","noise",e),K(e)}}),a(u,{label:l("toolbar.pixelate"),visible:o,enabled:ge,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"pixelate",{blocksize:10}),X(!0)):(t?.imageFiltersHandler._removeFilter(r,"pixelate"),X(!1))},min:.01,max:100,step:.01,numberValue:he,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("pixelate","blocksize",e),Q(e)}}),p&&s(W,{children:[s("div",{style:$,children:[a("span",{children:l("toolbar.textStroke")}),a(T,{checked:!!P,onChange:e=>{B({strokeWidth:e?10:0,stroke:e?"red":null}),z(e?10:0),Y(e?"red":null)}})]}),!!P&&s("div",{style:{display:"flex",justifyContent:"space-between",padding:"6px"},children:[a(Z,{value:fe,onChange:e=>{let r=e.toCssString();B({stroke:r}),Y(r)}}),a(v,{value:P,onChange:e=>{B({strokeWidth:F(e,1,30)}),z(F(e,1,30))},style:{width:60},min:1,max:Math.round(n.fontSize/2)})]})]}),s("div",{style:$,children:[a("span",{children:l("toolbar.shadow")}),a(T,{checked:!!b.enabled,onChange:e=>{c("enabled",e)}})]}),b.enabled&&s(W,{children:[s("div",{style:E,children:[a("div",{children:l("toolbar.blur")}),a("div",{children:a(v,{value:b.blur,style:{width:60},min:0,max:50,onChange:e=>{c("blur",e)}})})]}),a(k,{value:b.blur,onChange:e=>c("blur",e),min:0,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.offsetX")}),a("div",{children:a(v,{value:b.offsetX,style:{width:60},min:-50,max:50,onChange:e=>{c("offsetX",F(e,-50,50))}})})]}),a(k,{value:b.offsetX,onChange:e=>c("offsetX",e),min:-50,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.offsetY")}),a("div",{children:a(v,{value:b.offsetY,style:{width:60},min:-50,max:50,onChange:e=>{c("offsetY",F(e,-50,50))}})})]}),a(k,{value:b.offsetY,onChange:e=>c("offsetY",e),min:-50,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.color")}),a(Z,{defaultFormat:"rgb",value:b.color,onChange:e=>{c("color",e.toRgbString())}})]})]})]}),children:a(Fe,{type:"text",icon:a(ye,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},children:l("toolbar.effects")})})});export{ke as a};
package/dist/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { XY } from '@ydesign/core';
2
+ export { getTranslations, setTranslations } from './utils/l10n.js';
2
3
 
3
4
  declare const enum ShapePathFormulasKeys {
4
5
  ROUND_RECT = "roundRect",
package/dist/config.js CHANGED
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-NX3CGW6Q.js";import"./chunk-7NNOHYKX.js";import"./chunk-O2XFH626.js";export{c as LinePoolItems,d as PathLineLibs,b as PathShapeLibs,a as ShapePathFormulasKeys};
1
+ import{a as c,b as d,c as e,d as f}from"./chunk-DCGJ6RKU.js";import"./chunk-7NNOHYKX.js";import{a,b}from"./chunk-ARZMBVXU.js";import"./chunk-O2XFH626.js";export{e as LinePoolItems,f as PathLineLibs,d as PathShapeLibs,c as ShapePathFormulasKeys,b as getTranslations,a as setTranslations};
@@ -1,6 +1,10 @@
1
1
  import { StoreType } from '../model/store.js';
2
+ import 'fabric';
3
+ import 'mobx-state-tree/dist/internal';
2
4
  import 'mobx-state-tree';
3
5
  import '@ydesign/core';
6
+ import '../utils/fonts.js';
7
+ import 'mobx';
4
8
 
5
9
  declare const useDuplicateElement: ({ store }: {
6
10
  store: StoreType;
@@ -1,6 +1,10 @@
1
1
  import { StoreType } from '../model/store.js';
2
+ import 'fabric';
3
+ import 'mobx-state-tree/dist/internal';
2
4
  import 'mobx-state-tree';
3
5
  import '@ydesign/core';
6
+ import '../utils/fonts.js';
7
+ import 'mobx';
4
8
 
5
9
  declare const useLock: ({ store }: {
6
10
  store: StoreType;
@@ -1,6 +1,10 @@
1
1
  import { StoreType } from '../model/store.js';
2
+ import 'fabric';
3
+ import 'mobx-state-tree/dist/internal';
2
4
  import 'mobx-state-tree';
3
5
  import '@ydesign/core';
6
+ import '../utils/fonts.js';
7
+ import 'mobx';
4
8
 
5
9
  declare const useRemoveElement: ({ store }: {
6
10
  store: StoreType;