1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19259,e=>{"use strict";let t=new Set;e.s(["loadGoogleFont",0,e=>{if(t.has(e))return;t.add(e);let a=document.createElement("link");a.rel="stylesheet",a.href=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(e)}:wght@400;600;700&display=swap`,document.head.appendChild(a)}])},41267,e=>{"use strict";let t=(0,e.i(91788).createContext)();e.s(["default",0,t])},33663,e=>{"use strict";var t=e.i(91398);e.s(["default",0,({options:e,selected:a,selectHandler:r,hasImage:l,isBottom:i,header:o,isDropDown:n,showActive:d,urlOrigin:c,hasCategories:x,size:u})=>{let g={s:"min-w-48",m:"min-w-64",l:"min-w-80",xl:"w-full"},h=(e,i)=>(0,t.jsxs)("div",{className:`cursor-pointer flex items-center text-sm 2 ${n?"w-full":"w-1/4"} px-4 py-2.5 leading-5 text-left 3 ${(e.id||e.n)===a?"bg-slate-500 text-white dark:bg-slate-900":"text-slate-700 dark:text-slate-300 hover:bg-slate-300 hover:text-white dark:hover:bg-slate-600"}`,role:"menuitem",tabIndex:i,onClick:()=>r(e.id||e.n),children:[l&&(0,t.jsx)("div",{className:"w-5",children:(0,t.jsx)("img",{className:"w-full h-full",src:`${c||""}${e.u}`})}),n&&(0,t.jsx)("p",{className:"pl-4",children:e.n})]},`dd_${e.id||e.n}_${i}`);return(0,t.jsx)("div",{className:"flex justify-self-start py-2.5",children:(0,t.jsxs)("div",{className:"relative inline-block dropdown z-20",tabIndex:"0",children:[(0,t.jsx)("div",{className:"rounded-full shadow-sm ",children:(0,t.jsxs)("button",{className:`inline-flex justify-center w-full ${u&&(g[u]||g.s)} px-4 py-2 font-medium leading-5 text-slate-700 transition 4 duration-150 ease-in-out bg-white border border-slate-200 rounded-full hover:text-slate-500 focus:outline-none 5 focus:border-slate-300 focus:shadow-outline-indigo active:bg-slate-50 active:text-slate-800 6 dark:bg-slate-600 dark:border-0 dark:text-slate-300 dark:focus:text-slate-400 dark:hover:bg-slate-600 dark:hover:text-slate-400 7 `,type:"button","aria-haspopup":"true","aria-expanded":"true",children:[l&&(0,t.jsx)(t.Fragment,{children:a&&(0,t.jsx)("div",{className:"w-5",children:(0,t.jsx)("img",{className:"w-full h-full",src:`${c||""}${a?a.u:""}`})})}),(0,t.jsx)("span",{className:"pl-2 text-sm",children:o||"Options"}),(0,t.jsx)("svg",{className:"w-5 h-5 ml-2 -mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})}),(0,t.jsx)("div",{className:"hidden dropdown-menu transition-all duration-150 transform",children:(0,t.jsx)("div",{className:`absolute max-h-52 w-52 mt-1 8 ${n?"":"flex flex-wrap"} 9 ${i?"top-0":"bottom-10"} left-0 10 bg-white border border-slate-200 11 rounded-md shadow-md overflow-y-auto 12 dark:bg-slate-800 dark:border-slate-700`,"aria-labelledby":"dropdown",role:"menu",children:e&&e.map((e,a)=>(0,t.jsxs)(t.Fragment,{children:[x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"px-4 py-2.5 bg-slate-50 dark:bg-slate-800 text-slate-800",children:e.n}),e.o.map((t,a)=>h({n:`${t.n} ${t.s}`,id:{s:t.s,n:t.n,t:e.n}},a))]}),!x&&h(e,a)]}))})})]})})}])},22446,e=>{"use strict";e.s(["CANVAS_SIZES",0,["1:1","2:1","1:2","3:4","4:3","9:16","16:9","4:5","5:4"],"CONTROL_TYPE",0,{dd:"dd",s:"s",p:"p",t:"t",mt:"mt",tb:"tb",d:"d",sw:"sw",ni:"ni",pt:"pt",tbp:"tbp"},"IDENTIFIERS",0,{MIXED:"mixed",VERTICAL:"vertical",HORIZONTAL:"horizontal",BOTTOM_CURVE:"bottomCurve",TOP_CURVE:"topCurve",PRESET:"preset",BG_TYPE:"bgType",TYPE:"type",OPACITY:"opacity",NOISE:"noise",COLORS:"colors",STROKE:"stroke",ANGLE:"angle",PEAKS:"peaks",GAP:"gap",COLOR_TYPE:"colorType",TYPE:"type",LAYERS:"layers",LAYOUT:"layout",STEPS:"steps",NUMBER:"number",DENSITY:"density",CHAOS:"chaos",ZOOM:"zoom",X:"x",Y:"y",ROTATE:"rotate",RANDOMIZE:"random",ROW:"row",COL:"col",TILE_SELECT:"tile_select",TILE_DESIGN:"tile",BG_COLOR:"bgColor",REGULAR:"regular",GRADIENT:"gradient",STACKED:"stacked",DUAL:"dual",PATTERN:"pattern",EDGES:"edges",SMOOTHNESS:"smoothness",OUTLINE:"outline",COLOR:"color",OUTLINE_COLOR:"outlineColor",GRADIENT_TYPE:"gradientType",GRADIENT_X:"gradientX",GRADIENT_Y:"gradientY",GRADIENT_A:"gradientA",BLUR:"blur",SPREAD:"spread",ROUNDNESS:"roundness",DIRECTION:"direction"},"LABELS",0,{PRESET:"Presets",FILE:"File",STROKE:"Stroke",STROKE_WIDTH:"Stroke width",PEAKS:"Peaks",NOISE:"Noise",OPACITY:"Opacity",BG_COLOR:"Backgroun
12d",COLORS:"Colors",COLOR:"Color",TYPE:"Type",ANGLE:"Angle",CLOSENESS:"Closeness",LAYOUT:"Layout",PARALLEL:"Parallel",OVERLAP:"Overlap",SIDE:"Side",CENTER:"Center",DIRECTION:"Direction",SHAPES:"Shapes",SHAPE:"Shape",BLUR:"Blur",X_POS:"Horizontal position",Y_POS:"Vertical position",LAYERS:"Layers",RIGHT:"Right",LEFT:"left",GAP:"Gap",STEPS:"Steps",FILL:"Fill",SHAPE:"Shape",CIRCLE:"Circle",RECTANGLE:"Rectangle",SQUARE:"Square",BLOB:"Blob",TRIANGLE:"Triangle",POLYGON:"Polygon",N_SHAPES:"Number of shapes",N_SCRIBBLE:"Number of scribbles",RANDOM:"Random",BORDER:"Border",ZOOM:"Zoom",DENSITY:"Density",ROUNDNESS:"Roundness",GRID:"Grid",VERTICAL:"Vertical",HORIZONTAL:"Horizontal",CHAOS:"Chaos",ROTATION:"Rotation",ROTATE:"Rotate",RANDOMIZE:"Randomize",ROW:"Rows",COL:"Cols",TILE_DESIGN:"Tile design",REGULAR:"Regular",GRADIENT:"Gradient",GRADIENT_TYPE:"Gradient type",STACKED:"Stacked",DUAL:"Dual",PATTERN:"Pattern",EDGES:"Edges",SMOOTHNESS:"Smoothness",OUTLINE:"Outline",OUTLINE_COLOR:"Outline color",BG_TYPE:"Background type",SPREAD:"Spread",BOTTOM_CURVE:"Bottom curve",TOP_CURVE:"Top curve",MIXED:"Mixed"}])},76351,44315,20461,e=>{"use strict";var t=e.i(91398),a=e.i(33663);e.s(["default",0,({setting:e,updateConfig:r,selected:l})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-gray-500 dark:text-gray-400 pt-1 text-xs",children:e.n}),(0,t.jsx)(a.default,{options:e.v,selected:e.v.find(e=>e.id===l),urlOrigin:"/bg",hasImage:!0,selectHandler:t=>r(e.i,t.toLowerCase()),isDropDown:!0,isBottom:!0,header:e.v.find(e=>e.id===l)?.n})]})],76351);var r=e.i(47120);e.s(["default",0,({setting:e,value:a,updateConfig:l})=>(0,t.jsx)(t.Fragment,{children:e.v.length>1&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.default,{values:e.v,label:e.n,activeOption:a,callback:t=>l(e.i,t.toLowerCase())},e.t)})})],44315);var l=e.i(2995);e.s(["default",0,({config:e,setting:a,updateConfig:r})=>(0,t.jsxs)("div",{className:"flex flex-row items-center justify-content pt-2",children:[(0,t.jsx)("div",{className:"pr-2 text-gray-500 text-xs dark:text-gray-400",children:a.n}),(0,t.jsx)(l.default,{value:e[a.i.toLowerCase()],callback:e=>r(a.i.toLowerCase(),e),label:s.n})]},s.t)],20461)},30173,24546,27514,42041,94185,55359,42298,12677,29335,82139,19215,9832,e=>{"use strict";var t=e.i(91398),a=e.i(47339),r=e.i(91788),l=e.i(41267);e.s(["default",0,({setting:e,updateConfig:i,config:o})=>{let{canvas:n,updateColorInCanvas:d}=(0,r.useContext)(l.default);return(0,t.jsx)(a.default,{colors:o[e.i]&&o[e.i].length>0&&o.number?o[e.i].slice(0,o.number):o[e.i],setColors:t=>i(e.i,t),bgColor:e.noBg?void 0:o.bgColor||void 0,canvas:n,setBgColor:e=>i("bgColor",e),colorHeader:e.n||"Colors",bgHeader:"Background",className:"pt-2",type:o.type,colorType:o.colorType,updateColorInCanvas:d,hasAddBtn:e.btn},e.t)}],30173);var i=e.i(10425);e.s(["default",0,({setting:e,config:a,updateConfig:o})=>{let{canvas:n,updateOpacityInSvg:d}=(0,r.useContext)(l.default);return(0,t.jsx)(i.default,{value:a[e.i],setValue:t=>{e.a&&d(n,t),o(e.i,e.step%1!=0?parseFloat(t):parseInt(t))},label:e.n,step:e.step,min:e.min,max:e.max},e.t)}],24546);let o=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),(0,t.jsx)("polyline",{points:"5 12 12 5 19 12"})]}),n=({value:e,callback:a,diagonal:r,center:l})=>(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2 text-center py-2.5",children:[r&&(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"tl"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("tl"),children:(0,t.jsx)(o,{className:"-rotate-45 group-hover:text-white h-4 w-4 mx-auto"})}),(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"t"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("t"),children:(0,t.jsx)(o,{className:"group-hover:text-white h-4 w-4 mx-auto"})}),r&&(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"tr"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("tr"),children:(0,t.jsx)(o,{className:"rotate-45 group-hover:text-white h-4 w-4 mx-auto"})}),(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"l"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("l"),children:(0,t.jsx)(o,{className:"-rotate-90 group-hover:text-white h-4 w-4 mx-auto"})}),l&&(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"c"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("c"),children:(0,t.jsx)("svg",{className:"group-hover:text-white h-4 w-4 mx-auto",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"})})}),(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"r"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("r"),children:(0,t.jsx)(o,{className:"rotate-90 group-hover:text-white h-4 w-4 mx-auto"})}),r&&(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"bl"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("bl"),children:(0,t.jsx)(o,{className:"rotate-225 group-hover:text-white h-4 w-4 mx-auto"})}),(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"b"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("b"),children:(0,t.jsx)(o,{className:"rotate-180 group-hover:text-white h-4 w-4 mx-auto"})}),r&&(0,t.jsx)("div",{className:`group p-1 border rounded-md cursor-pointer ${"br"===e?"bg-slate-600 text-white border-slate-600":"hover:border-slate-400 hover:bg-slate-400"}`,onClick:()=>a("br"),children:(0,t.jsx)(o,{className:"rotate-135 group-hover:text-white h-4 w-4 mx-auto"})})]});e.s(["default",0,({config:e,updateConfig:a,setting:r})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex flex-col pt-2",children:[(0,t.jsx)("div",{className:"pr-2 text-gray-500 text-xs dar
12k:text-gray-400",children:r.n}),(0,t.jsx)(n,{value:e[r.i.toLowerCase()],callback:e=>a(r.i.toLowerCase(),e),center:!0,diagonal:!0})]},r.t)})],27514);var d=e.i(79634);e.s(["default",0,({value:e,updateConfig:a,setting:r})=>(0,t.jsx)(t.Fragment,{children:r.v.length>1&&(0,t.jsxs)("div",{className:"py-2.5",children:[(0,t.jsx)("div",{className:"text-gray-500 pb-2.5 text-xs dark:text-gray-400",children:r.n}),(0,t.jsx)(d.default,{items:r.v,selectedItems:e,callback:e=>a(r.i,e)})]},r.t)})],42041);var c=e.i(28865);let x=({label:e,value:a,setValue:r,className:l,maxValue:i,minValue:o})=>(0,t.jsxs)("div",{className:`${l} py-2`,children:[(0,t.jsx)(c.default,{label:e}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:"w-6 h-6 rounded-lg border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-500 dark:text-slate-400 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-700/40 focus:outline-none transition-all flex items-center justify-center p-1",onClick:()=>r(a-1<(o??1)?a:a-1),children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}),(0,t.jsx)("input",{type:"number",disabled:!0,className:"border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 w-8 rounded-lg focus:outline-none text-center text-xs text-slate-600 dark:text-slate-300",value:a,onChange:e=>r(parseInt(e.target.value))}),(0,t.jsx)("button",{type:"button",className:"w-6 h-6 rounded-lg border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-500 dark:text-slate-400 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-700/40 focus:outline-none transition-all flex items-center justify-center p-1",onClick:()=>r(a+1>i?a:a+1),children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]})]});e.s(["default",0,({config:e,updateConfig:a,setting:r})=>(0,t.jsx)(x,{label:r.n,maxValue:3,value:e[r.i.toLowerCase()],setValue:e=>a(r.i.toLowerCase(),e)})],94185);let u=({className:e,callback:a,value:r,placeholder:l})=>(0,t.jsx)("input",{type:"text",placeholder:l,value:r,className:`${e||""} w-full px-3 py-1.5 text-xs text-slate-600 dark:text-slate-300 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-lg placeholder-slate-300 dark:placeholder-slate-600 focus:outline-none focus:ring-1 focus:ring-indigo-500/30 focus:border-indigo-400 dark:focus:border-indigo-500 transition-all`,onChange:e=>a(e.target.value)});e.s(["default",0,({setting:e,config:a,updateConfig:r})=>(0,t.jsxs)("div",{className:"py-1.5",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-1",children:e.n}),(0,t.jsx)(u,{value:a[e.i]||"",callback:t=>r(e.i,t),placeholder:e.ph||"Enter text..."})]})],55359);var g=e.i(44515);e.s(["default",0,({setting:e,config:a,updateConfig:l})=>{let i=a[e.i],o=(0,r.useId)();return i?.d?(0,t.jsx)("div",{className:"py-1",children:(0,t.jsxs)("div",{className:"relative flex items-center gap-2.5 rounded-xl border border-slate-200 dark:border-slate-700/80 bg-white dark:bg-slate-800/60 p-2 transition-colors duration-200 hover:border-slate-300 dark:hover:border-slate-600",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-lg flex-shrink-0 overflow-hidden border border-slate-100 dark:border-slate-700",style:{background:"repeating-conic-gradient(#f1f5f9 0% 25%, #e2e8f0 0% 50%) 0 0/10px 10px"},children:(0,t.jsx)("img",{src:i.d,className:"w-full h-full object-contain",alt:""})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 pr-12",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-slate-700 dark:text-slate-200 truncate leading-none mb-1",children:e.n}),i.s&&(0,t.jsxs)("p",{className:"text-[10px] text-slate-400 dark:text-slate-500 font-mono leading-none",children:[i.s.w," Ã ",i.s.h,"px"]})]}),(0,t.jsxs)("div",{className:"absolute top-2 right-2 flex gap-1",children:[(0,t.jsxs)("label",{htmlFor:o,title:"Replace",className:"w-6 h-6 flex items-center justify-center rounded-md bg-slate-100 dar
12k:bg-slate-700 border border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400 hover:bg-indigo-50 dark:hover:bg-indigo-900/30 hover:border-indigo-300 dark:hover:border-indigo-600 cursor-pointer transition-all duration-150",children:[(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),(0,t.jsx)("input",{id:o,type:"file",className:"hidden",onChange:t=>{let a=t.target.files[0];if(!a)return;let r=new FileReader;r.onload=t=>{let a=new Image;a.src=t.target.result,a.onload=function(){l(e.i,{d:t.target.result,s:{w:a.width,h:a.height}})}},r.readAsDataURL(a)},accept:"image/png,image/jpeg,image/jpg,image/webp"})]}),(0,t.jsx)("button",{onClick:()=>l(e.i,null),title:"Remove",className:"w-6 h-6 flex items-center justify-center rounded-md bg-slate-100 dark:bg-slate-700 border border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:text-red-500 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 hover:border-red-300 dark:hover:border-red-700 cursor-pointer transition-all duration-150",children:(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]})]})}):(0,t.jsx)("div",{className:"py-1",children:(0,t.jsx)(g.default,{types:"png,jpg,jpeg,webp",label:e.n,callback:t=>l(e.i,t)})})}],42298);var h=e.i(71164),f=e.i(33923);e.s(["default",0,({setting:e,config:a,updateConfig:l})=>{let[i,o]=(0,r.useState)(!1),[n,d]=(0,r.useState)({t:0,l:0}),c=a[e.i]||"#000000";return(0,t.jsxs)("div",{children:[(0,t.jsx)(h.default,{header:e.n,colors:[c],openPicker:(e,t)=>{let a=t.currentTarget.parentNode.parentNode.getBoundingClientRect();d({t:a.height+a.top,l:a.left}),o(!0)}}),i&&(0,t.jsx)(f.default,{color:c,isPickerOpen:i,changeColor:t=>l(e.i,t),hidePicker:()=>o(!1),isRGB:!1,top:n.t,left:n.l,className:"fixed z-50",hasInput:!0})]})}],12677);let p=({options:e,onChange:a,selectedOption:r,hasUploadSection:l})=>(0,t.jsxs)("div",{className:"relative inline-block w-full",children:[(0,t.jsx)("select",{className:"w-full h-9 pl-3 pr-8 text-xs text-slate-600 dark:text-slate-300 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-lg appearance-none focus:outline-none focus:ring-1 focus:ring-indigo-500/30 focus:border-indigo-400 dark:focus:border-indigo-500 transition-all cursor-pointer",value:r,onChange:e=>a(e.currentTarget.value),children:e?.map(e=>(0,t.jsx)("option",{value:e.value,children:e.name},e.value))}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-2.5 flex items-center pointer-events-none text-slate-400 dark:text-slate-500",children:(0,t.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})]});e.s(["default",0,({setting:e,config:a,updateConfig:r})=>(0,t.jsxs)("div",{className:"py-1.5",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-1",children:e.n}),(0,t.jsx)(p,{options:e.v,selectedOption:a[e.i],onChange:t=>r(e.i,t)})]})],29335),e.s(["default",0,({setting:e,config:a,updateConfig:r})=>(0,t.jsxs)("div",{className:"py-1.5",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-1",children:e.n}),(0,t.jsx)("textarea",{value:a[e.i]||"",placeholder:e.ph||"Enter text...",rows:2,className:"w-full px-3 py-1.5 text-xs text-slate-600 dark:text-slate-300 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-lg placeholder-slate-300 dark:placeholder-slate-600 focus:outline-none focus:ring-1 focus:ring-indigo-500/30 focus:border-indigo-400 dark:focus:border-indigo-500 transition-all resize-none",onChange:t=>r(e.i,t.target.value)})]})],82139),e.s(["default",0,({setting:e,config:a,updateConfig:r})=>{let l=a[e.i]?.d||null;return(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-2",children:e.n}),(0,t.jsx)("div",{className:"flex flex-row gap-2 overflow-x-auto pb-1 scroll-smooth snap-x snap-mandatory",children:(e.v||[]).map(a=>{let i=l===a;return(0,t.jsx)("button",{type:"button",onClick:()=>{r(e.i,{d:a})}
12,className:`flex-shrink-0 snap-start w-14 h-14 rounded-lg overflow-hidden border-2 transition-all ${i?"border-indigo-500 ring-2 ring-indigo-500/30":"border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-500"}`,children:(0,t.jsx)("img",{src:a,alt:"",className:"w-full h-full object-cover",draggable:!1})},a)})})]})}],19215);var m=e.i(98311),b=e.i(98817);let v=(0,e.i(68489).default)(()=>e.A(87150),{loadableGenerated:{modules:[5011]},ssr:!1}),k=({onEmojiClick:e})=>(0,t.jsx)(v,{onEmojiClick:t=>e(t.emoji),width:"100%",height:320,previewConfig:{showPreview:!1},skinTonesDisabled:!0,searchPlaceholder:"Search emoji..."});var j=e.i(77955);let y=({active:e})=>(0,t.jsxs)(m.motion.svg,{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",animate:{rotate:180*!!e,scale:e?1.15:1},transition:{type:"spring",stiffness:300,damping:22},children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M8 13s1.5 2 4 2 4-2 4-2"}),(0,t.jsx)("line",{x1:"9",y1:"9",x2:"9.01",y2:"9",strokeWidth:"3"}),(0,t.jsx)("line",{x1:"15",y1:"9",x2:"15.01",y2:"9",strokeWidth:"3"})]}),w=({emoji:e,onRemove:a})=>(0,t.jsxs)(m.motion.button,{layout:!0,initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:400,damping:25},onClick:e=>{e.stopPropagation(),a()},className:"group relative flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-red-900/30 transition-colors cursor-pointer shrink-0",title:"Remove",children:[(0,t.jsx)("span",{className:"text-lg leading-none transition-opacity group-hover:opacity-20 select-none",children:e}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-red-400 opacity-0 group-hover:opacity-100 transition-opacity text-xs font-bold",children:"Ã"})]});e.s(["default",0,({setting:e,config:a,updateConfig:l})=>{let[i,o]=(0,r.useState)(!1),[n,d]=(0,r.useState)({t:0,l:0}),c=(0,r.useRef)(null),x=a[e.i]||"",u=x?"u">typeof Intl&&Intl.Segmenter?[...new Intl.Segmenter().segment(x)].map(e=>e.segment):[...x]:[];return(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between pb-2",children:[(0,t.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:e.n||"Emoji"}),(0,t.jsx)(b.AnimatePresence,{children:u.length>0&&(0,t.jsx)(m.motion.button,{initial:{opacity:0,x:6},animate:{opacity:1,x:0},exit:{opacity:0,x:6},transition:{duration:.15},onClick:()=>l(e.i,""),className:"text-[10px] text-slate-400 hover:text-red-400 transition-colors cursor-pointer",children:"Clear all"})})]}),(0,t.jsxs)(m.motion.div,{ref:c,onClick:()=>{i?o(!1):(()=>{if(!c.current)return;let e=c.current.getBoundingClientRect(),t=Math.max(8,Math.min(e.right-300,window.innerWidth-300-8));d({t:e.bottom+6,l:t}),o(!0)})()},animate:{borderColor:i?"rgba(99,102,241,0.7)":void 0,boxShadow:i?"0 0 0 3px rgba(99,102,241,0.12)":"0 0 0 0px rgba(99,102,241,0)"},transition:{duration:.18},className:` 13 flex flex-wrap items-center gap-1.5 px-2.5 py-2 rounded-xl min-h-[44px] 14 bg-white dark:bg-slate-800 15 border border-slate-200 dark:border-slate-700 16 cursor-pointer transition-colors 17 hover:border-indigo-400 dark:hover:border-indigo-500 18 `,children:[(0,t.jsx)(b.AnimatePresence,{mode:"popLayout",children:u.length>0?u.map((a,r)=>(0,t.jsx)(w,{emoji:a,onRemove:()=>{let t;return t=u.filter((e,t)=>t!==r).join(""),void l(e.i,t)}},`${a}-${r}`)):(0,t.jsx)(m.motion.span,{initial:{opacity:0}
18,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"text-xs text-slate-300 dark:text-slate-600 select-none pl-0.5",children:"Pick emoji..."},"placeholder")}),(0,t.jsx)("div",{className:"ml-auto pl-1 shrink-0",children:(0,t.jsx)("span",{className:`transition-colors ${i?"text-indigo-500":"text-slate-400 dark:text-slate-500"}`,children:(0,t.jsx)(y,{active:i})})})]}),(0,t.jsx)(b.AnimatePresence,{children:i&&(0,t.jsx)(j.default,{outsideClickHandler:()=>o(!1),className:"fixed z-50",style:{top:n.t,left:n.l},children:(0,t.jsx)(m.motion.div,{initial:{opacity:0,y:-8,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.97},transition:{type:"spring",stiffness:340,damping:28},className:"rounded-xl overflow-hidden shadow-2xl border border-slate-200 dark:border-slate-700",children:(0,t.jsx)(k,{onEmojiClick:t=>{l(e.i,x+t)}})})})})]})}],9832)},47377,5914,62279,82450,85017,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(98311),l=e.i(98817),i=e.i(77955),o=e.i(19259);let n=[{family:"Inter",category:"Sans-serif",fallback:"sans-serif"},{family:"Roboto",category:"Sans-serif",fallback:"sans-serif"},{family:"Open Sans",category:"Sans-serif",fallback:"sans-serif"},{family:"Lato",category:"Sans-serif",fallback:"sans-serif"},{family:"Montserrat",category:"Sans-serif",fallback:"sans-serif"},{family:"Poppins",category:"Sans-serif",fallback:"sans-serif"},{family:"Raleway",category:"Sans-serif",fallback:"sans-serif"},{family:"Nunito",category:"Sans-serif",fallback:"sans-serif"},{family:"Rubik",category:"Sans-serif",fallback:"sans-serif"},{family:"Work Sans",category:"Sans-serif",fallback:"sans-serif"},{family:"DM Sans",category:"Sans-serif",fallback:"sans-serif"},{family:"Plus Jakarta Sans",category:"Sans-serif",fallback:"sans-serif"},{family:"Figtree",category:"Sans-serif",fallback:"sans-serif"},{family:"Outfit",category:"Sans-serif",fallback:"sans-serif"},{family:"Space Grotesk",category:"Sans-serif",fallback:"sans-serif"},{family:"Oswald",category:"Sans-serif",fallback:"sans-serif"},{family:"Quicksand",category:"Sans-serif",fallback:"sans-serif"},{family:"Exo 2",category:"Sans-serif",fallback:"sans-serif"},{family:"Playfair Display",category:"Serif",fallback:"serif"},{family:"Merriweather",category:"Serif",fallback:"serif"},{family:"Lora",category:"Serif",fallback:"serif"},{family:"PT Serif",category:"Serif",fallback:"serif"},{family:"EB Garamond",category:"Serif",fallback:"serif"},{family:"Libre Baskerville",category:"Serif",fallback:"serif"},{family:"Cormorant Garamond",category:"Serif",fallback:"serif"},{family:"Crimson Text",category:"Serif",fallback:"serif"},{family:"Bebas Neue",category:"Display",fallback:"sans-serif"},{family:"Anton",category:"Display",fallback:"sans-serif"},{family:"Righteous",category:"Display",fallback:"sans-serif"},{family:"Pacifico",category:"Display",fallback:"cursive"},{family:"Lobster",category:"Display",fallback:"cursive"},{family:"Fredoka",category:"Display",fallback:"sans-serif"},{family:"Abril Fatface",category:"Display",fallback:"serif"},{family:"Dela Gothic One",category:"Display",fallback:"sans-serif"},{family:"Climate Crisis",category:"Display",fallback:"sans-serif"},{family:"JetBrains Mono",category:"Monospace",fallback:"monospace"},{family:"Space Mono",category:"Monospace",fallback:"monospace"},{family:"Fira Code",category:"Monospace",fallback:"monospace"},{family:"Source Code Pro",category:"Monospace",fallback:"monospace"},{family:"IBM Plex Mono",category:"Monospace",fallback:"monospace"}],d=()=>(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),c=()=>(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("polyline",{points:"4 7 4 4 20 4 20 7"}),(0,t.jsx)("line",{x1:"9",y1:"20",x2:"15",y2:"20"}),(0,t.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"20"})]}),x={"Sans-serif":"bg-blue-50 text-blue-500 dark:bg-blue-900/30 dark:text-blue-400",Serif:"bg-
18amber-50 text-amber-600 dark:bg-amber-900/30 dark:text-amber-400",Display:"bg-purple-50 text-purple-500 dark:bg-purple-900/30 dark:text-purple-400",Monospace:"bg-green-50 text-green-600 dark:bg-green-900/30 dark:text-green-400"},u=({font:e,isSelected:a,index:l,onSelect:i})=>{let n={fontFamily:`"${e.family}", ${e.fallback}`};return(0,t.jsxs)(r.motion.button,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.1,delay:Math.min(.012*l,.18)},onMouseEnter:()=>(0,o.loadGoogleFont)(e.family),onClick:()=>i(e.family),className:`w-full flex items-center gap-2.5 px-3 py-2.5 text-left transition-colors cursor-pointer group 19 ${a?"bg-indigo-50 dark:bg-indigo-900/30":"hover:bg-slate-50 dark:hover:bg-slate-700/40"}`,children:[(0,t.jsx)("span",{style:n,className:"text-[22px] leading-none font-bold text-slate-700 dark:text-slate-200 w-9 shrink-0 select-none",children:"Aa"}),(0,t.jsx)("span",{style:n,className:"flex-1 text-sm text-slate-700 dark:text-slate-200 truncate",children:e.family}),(0,t.jsx)("span",{className:`text-[9px] font-semibold px-1.5 py-0.5 rounded-full shrink-0 ${x[e.category]??""}`,children:e.category}),a&&(0,t.jsx)("span",{className:"text-indigo-500 shrink-0 ml-1",children:(0,t.jsx)(d,{})})]})},g=({value:e,onChange:d})=>{let[x,g]=(0,a.useState)(!1),[h,f]=(0,a.useState)(""),[p,m]=(0,a.useState)({t:0,l:0}),b=(0,a.useRef)(null),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{e&&(0,o.loadGoogleFont)(e)},[e]);let k=(0,a.useCallback)(()=>{if(!b.current)return;let e=b.current.getBoundingClientRect(),t=e.width,a=Math.max(8,Math.min(e.left,window.innerWidth-t-8));m({t:e.bottom+4,l:a}),f(""),g(!0)},[]),j=(0,a.useCallback)(()=>g(!1),[]),y=(0,a.useCallback)(e=>{(0,o.loadGoogleFont)(e),d(e),j()},[d,j]);(0,a.useEffect)(()=>{x&&setTimeout(()=>v.current?.focus(),50)},[x]);let w=h.trim()?n.filter(e=>e.family.toLowerCase().includes(h.toLowerCase())):n,N=n.find(t=>t.family===e),C=e?{fontFamily:`"${e}", ${N?.fallback??"sans-serif"}`}:{};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.motion.button,{ref:b,onClick:k,animate:{borderColor:x?"rgba(99,102,241,0.7)":void 0,boxShadow:x?"0 0 0 3px rgba(99,102,241,0.12)":"0 0 0 0px rgba(99,102,241,0)"},transition:{duration:.15},className:"w-full flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 hover:border-indigo-400 dark:hover:border-indigo-500 transition-colors cursor-pointer",children:[(0,t.jsx)("span",{style:C,className:"flex-1 text-sm text-left text-slate-700 dark:text-slate-200 truncate",children:e||(0,t.jsx)("span",{className:"text-slate-400 dark:text-slate-500 text-xs",children:"Select fontâ¦"})}),(0,t.jsx)(r.motion.span,{animate:{rotate:180*!!x},transition:{type:"spring",stiffness:300,damping:22},className:`shrink-0 transition-colors ${x?"text-indigo-500":"text-slate-400 dark:text-slate-500"}`,children:(0,t.jsx)(c,{})})]}),(0,t.jsx)(l.AnimatePresence,{children:x&&(0,t.jsx)(i.default,{outsideClickHandler:j,className:"fixed z-50",style:{to
19p:p.t,left:p.l},children:(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:-6,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.97},transition:{type:"spring",stiffness:340,damping:28},style:{width:b.current?.offsetWidth??240},className:"bg-white dark:bg-slate-800 rounded-xl shadow-2xl border border-slate-200 dark:border-slate-700 overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"px-3 py-2 border-b border-slate-100 dark:border-slate-700",children:(0,t.jsx)("input",{ref:v,value:h,onChange:e=>f(e.target.value),placeholder:"Search fontsâ¦",className:"w-full text-xs bg-transparent text-slate-700 dark:text-slate-200 placeholder-slate-400 dark:placeholder-slate-500 focus:outline-none"})}),(0,t.jsx)("div",{className:"overflow-y-auto",style:{maxHeight:280},children:w.length>0?w.map((a,r)=>(0,t.jsx)(u,{font:a,index:r,isSelected:a.family===e,onSelect:y},a.family)):(0,t.jsx)("div",{className:"px-4 py-6 text-center text-xs text-slate-400 dark:text-slate-500",children:"No fonts found"})})]})})})]})};e.s(["default",0,g],5914),e.s(["default",0,({setting:e,config:a,updateConfig:r})=>(0,t.jsxs)("div",{className:"py-1.5",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-1",children:e.n||"Font"}),(0,t.jsx)(g,{value:a[e.i]||"",onChange:t=>r(e.i,t)})]})],47377);var h=e.i(41267);let f=({presets:e,onSelect:a})=>e&&0!==e.length?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-slate-500 dark:text-slate-400 pb-2",children:"Presets"}),(0,t.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-1 scrollbar-hide",children:e.map(e=>(0,t.jsxs)("button",{onClick:()=>a(e),title:e.n,className:"flex-shrink-0 flex flex-col items-center gap-1.5 cursor-pointer group",children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-xl border-2 border-slate-200 dark:border-slate-700 group-hover:border-indigo-400 dark:group-hover:border-indigo-500 transition-colors p-1 bg-white dark:bg-slate-800 ",children:(e=>{let a=e.row||1,r=e.col||1,l=[];for(let i=0;i<a;i++)for(let a=0;a<r;a++){let r=e.elements?.find(e=>e.r===i&&e.c===a);l.push((0,t.jsx)("div",{style:{gridRow:i+1,gridColumn:a+1},className:"flex items-center justify-center overflow-hidden p-0.5",children:r&&(0,t.jsx)("img",{src:r.s,alt:"",className:"w-full h-full object-contain border border-gray-100 p-0.5 rounded-sm",style:{filter:"brightness(0) opacity(0.55)"}})},`${i}-${a}`))}return(0,t.jsx)("div",{className:"w-full h-full",style:{display:"grid",gridTemplateRows:`repeat(${a}, 1fr)`,gridTemplateColumns:`repeat(${r}, 1fr)`},children:l})})(e)}),(0,t.jsx)("span",{className:"text-[10px] text-slate-500 dark:text-slate-400 text-center leading-tight max-w-[56px] truncate",children:e.n})]},e.n))})]}):null;e.s(["default",0,()=>{let{presets:e,applyPreset:r}=(0,a.useContext)(h.default);return(0,t.jsx)(f,{presets:e,onSelect:r})}],62279);var p=e.i(28865);let m={wave:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 9 Q 3.5 3 7 9 Q 10.5 15 14 9 Q 17.5 3 21 9 Q 24.5 15 28 9"})}),sharp:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 9 L 7 3 L 14 9 L 21 3 L 28 9"})}),peaks:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 13 Q 3.5 13 7 3 Q 10.5 13 14 13 Q 17.5 13 21 3 Q 24.5 13 28 13"})}),curve:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 13 Q 14 1 28 13"})}),arrow:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 4 L 14 14 L 28 4"})}),steps:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 14 L 7 14 L 7 9 L 14 9 L 14 5 L 21 5 L 21 2 L 28 2"})}),angled:(0,t.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M 0 14 L 28 4"})})};e.s(["default",0,({config:e,updateConfig:a,setting:r})=>(0,t.jsxs)("div",{className:"py-1.5 w-full",children:[(0,t.jsx)(p.default,{label:r.n}),(0,t.jsx)("div",{className:"flex flex-row flex-wrap gap-1.5 pt-0.5",children:r.v.map(l=>{let i=l.value===e[r.i];return(0,t.jsxs)("div",{title:l.name,className:`rounded-lg border cursor-pointer transition-all relative flex flex-col items-center justify-center group p-1.5 ${i?"border-indigo-500 bg-indigo-50 dark:bg-indigo-900/25 ring-1 ring-indigo-500/30 text-indigo-600 dark:text-indigo-400":"border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-700/40 text-slate-500 dark:text-slate-400"}`,onClick:()=>a(r.i,l.value),children:[m[l.value]||(0,t.jsx)("span",{className:"text-xs font-medium px-1",children:l.name}),(0,t.jsx)("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 hidden group-hover:flex z-10",children:(0,t.jsx)("span",{className:"px-2 py-1 text-[10px] leading-none text-white whitespace-nowrap bg-slate-700 dark:bg-slate-900 shadow-lg rounded-md",children:l.name})})]},l.value)})})]})],82450);let b=()=>(0,t.jsx)("svg",{className:"w-5 h-5 text-slate-400 dark:text-slate-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),v=()=>(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),k={video:{icon:(0,t.jsx)(()=>(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 10l4.553-2.276A1 1 0 0121 8.723v6.554a1 1 0 01-1.447.894L15 14M3 8a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"})}),{}),label:"Video"},gif:{icon:(0,t.jsx)(v,{}),label:"GIF"},image:{icon:(0,t.jsx)(v,{}),label:"Image"}};e.s(["default",0,({setting:e,config:a,updateConfig:r})=>{let l=a[e.i],i=k[l?.type]||k.image;return(0,t.jsxs)("div",{className:"py-1.5",children:[(0,t.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400 pb-1",children:e.n}),l?(0,t.jsxs)("div",{className:"relative rounded-xl overflow-hidden border border-slate-200 dark:border-slate-700 bg-slate-900",children:["video"===l.type?(0,t.jsx)("video",{src:l.d,className:"w-full h-16 object-cover opacity-80",muted:!0,preload:"metadata"}):"gif"===l.type?(0,t.jsx)("canvas",{ref:e=>{if(!e||e.dataset.src===l.d)return;e.dataset.src=l.d;let t=new Image;t.onload=()=>{let a=e.offsetWidth||300;e.width=a,e.height=64;
19let r=Math.max(a/t.naturalWidth,64/t.naturalHeight),l=t.naturalWidth*r,i=t.naturalHeight*r;e.getContext("2d").drawImage(t,(a-l)/2,(64-i)/2,l,i)},t.src=l.d},className:"w-full opacity-80",style:{height:"64px",display:"block"}}):(0,t.jsx)("img",{src:l.d,className:"w-full h-16 object-cover opacity-80",alt:""}),(0,t.jsxs)("div",{className:"absolute inset-0 flex items-end px-2 pb-1.5 gap-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 text-white/70 text-[10px]",children:[i.icon,i.label]}),(0,t.jsx)("span",{className:"text-white/50 text-[10px] truncate flex-1",children:l.name})]}),(0,t.jsx)("button",{onClick:()=>{l?.d?.startsWith("blob:")&&URL.revokeObjectURL(l.d),r(e.i,null)},className:"absolute top-2 right-2 w-6 h-6 bg-black/60 hover:bg-black/80 text-white rounded-full text-xs flex items-center justify-center transition-colors leading-none",children:"â"})]}):(0,t.jsxs)("label",{className:"flex items-center gap-3 w-full px-4 py-3 rounded-xl border-2 border-dashed border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 hover:border-indigo-400 dark:hover:border-indigo-500 hover:bg-indigo-50/40 dark:hover:bg-indigo-900/10 transition-all cursor-pointer",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-xl bg-slate-100 dark:bg-slate-700 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(b,{})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-slate-700 dark:text-slate-300 leading-tight",children:"Upload"}),(0,t.jsx)("p",{className:"text-xs text-slate-400 dark:text-slate-500 mt-0.5",children:"PNG, JPG, GIF, MP4, WEBM"})]}),(0,t.jsx)("input",{type:"file",className:"hidden",accept:"image/png,image/jpeg,image/webp,image/gif,video/mp4,video/webm,video/*",onChange:t=>(t=>{if(!t)return;let a=t.type.startsWith("video/")?"video":"image/gif"===t.type?"gif":"image";if("video"===a||"gif"===a){let l=URL.createObjectURL(t);r(e.i,{d:l,type:a,name:t.name})}else{let a=new FileReader;a.onload=a=>{r(e.i,{d:a.target.result,type:"image",name:t.name})},a.readAsDataURL(t)}})(t.target.files[0])})]})]})}],85017)},72702,e=>{"use strict";var t=e.i(91398),a=e.i(76351),r=e.i(44315),l=e.i(20461),i=e.i(30173),o=e.i(24546),n=e.i(27514),d=e.i(42041),c=e.i(94185),x=e.i(55359),u=e.i(42298),g=e.i(12677),h=e.i(29335),f=e.i(82139),p=e.i(19215),m=e.i(9832),b=e.i(47377),v=e.i(47120),k=e.i(62279),j=e.i(82450),y=e.i(85017),w=e.i(22446);e.s(["default",0,({config:e,updateConfig:N,setting:C})=>{if(C.d&&!(Array.isArray(C.dt)?C.dt.includes(e[C.d]):e[C.d]==C.dt))return(0,t.jsx)(t.Fragment,{});switch(C.t){case w.CONTROL_TYPE.dd:return(0,t.jsx)(a.default,{updateConfig:N,setting:C,selected:e[C.i]});case w.CONTROL_TYPE.t:return(0,t.jsx)(r.default,{value:e[C.i],updateConfig:N,setting:C});case w.CONTROL_TYPE.tb:return(0,t.jsx)(l.default,{config:e,updateConfig:N,setting:C});case w.CONTROL_TYPE.p:return(0,t.jsx)(i.default,{config:e,updateConfig:N,setting:C});case w.CONTROL_TYPE.s:return(0,t.jsx)(o.default,{config:e,updateConfig:N,setting:C});case w.CONTROL_TYPE.d:return(0,t.jsx)(n.default,{config:e,updateConfig:N,setting:C});case w.CONTROL_TYPE.mt:return(0,t.jsx)(d.default,{value:e[C.i],updateConfig:N,setting:C});case w.CONTROL_TYPE.ni:return(0,t.jsx)(c.default,{config:e,updateConfig:N,setting:C});case"ta":return(0,t.jsx)(f.default,{config:e,updateConfig:N,setting:C});case"tbp":return(0,t.jsx)(v.default,{isText:!0,values:C.op,activeOption:e[C.i],callback:e=>N(C.i,e),label:C.n||"Type"});case"ti":return(0,t.jsx)(x.default,{config:e,updateConfig:N,setting:C});case"ip":return(0,t.jsx)(p.default,{config:e,updateConfig:N,setting:C});case"fi":return(0,t.jsx)(u.default,{config:e,updateConfig:N,setting:C});case"mi":return(0,t.jsx)(y.default,{config:e,updateConfig:N,setting:C});case"sc":return(0,t.jsx)(g.default,{config:e,updateConfig:N,setting:C});case"si":return(0,t.jsx)(h.default,{config:e,updateConfig:N,setting:C});case"ep":return(0,t.jsx)(m.default,{config:e,updateConfig:N,setting:C});case"fp":return(0,t.jsx)(b.default,{config:e,updateConfig:N,setting:C});case"pre":return(0,t.jsx)(k.default,{});case"ri":return(0,t.jsx)(j.default,{config:e,updateConfig:N,setting:C});default:return(0,t.jsx)(t.Fragment,{})}}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.