gazetta 0.2.0 → 0.4.0
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.
- package/admin-dist/assets/index-Bh_y1d_l.css +1 -0
- package/admin-dist/assets/index-DjGNi6yy.js +608 -0
- package/admin-dist/assets/rolldown-runtime-COnpUsM8.js +1 -0
- package/admin-dist/assets/vendor-primevue-BnR1c_bQ.js +2097 -0
- package/admin-dist/assets/vendor-react-BipDVGow.js +9 -0
- package/admin-dist/assets/vendor-rjsf-HKBAjOmQ.js +32 -0
- package/admin-dist/assets/vendor-tiptap-IyO99U4R.js +142 -0
- package/admin-dist/assets/vendor-vue-DSjyxCX6.js +1 -0
- package/admin-dist/index.html +8 -7
- package/dist/admin-api/index.d.ts.map +1 -1
- package/dist/admin-api/index.js +2 -0
- package/dist/admin-api/index.js.map +1 -1
- package/dist/admin-api/routes/compare.d.ts +4 -0
- package/dist/admin-api/routes/compare.d.ts.map +1 -0
- package/dist/admin-api/routes/compare.js +55 -0
- package/dist/admin-api/routes/compare.js.map +1 -0
- package/dist/admin-api/routes/publish.d.ts +34 -0
- package/dist/admin-api/routes/publish.d.ts.map +1 -1
- package/dist/admin-api/routes/publish.js +117 -29
- package/dist/admin-api/routes/publish.js.map +1 -1
- package/dist/cli/index.js +219 -30
- package/dist/cli/index.js.map +1 -1
- package/dist/compare.d.ts +44 -0
- package/dist/compare.d.ts.map +1 -0
- package/dist/compare.js +93 -0
- package/dist/compare.js.map +1 -0
- package/dist/editor/mount.js +71 -71
- package/dist/editor/mount.js.map +1 -1
- package/dist/hash.d.ts +16 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +57 -0
- package/dist/hash.js.map +1 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/publish-rendered.d.ts +3 -5
- package/dist/publish-rendered.d.ts.map +1 -1
- package/dist/publish-rendered.js +37 -5
- package/dist/publish-rendered.js.map +1 -1
- package/dist/scope.d.ts +0 -4
- package/dist/scope.d.ts.map +1 -1
- package/dist/scope.js +0 -5
- package/dist/scope.js.map +1 -1
- package/dist/targets.d.ts +0 -2
- package/dist/targets.d.ts.map +1 -1
- package/dist/targets.js +21 -10
- package/dist/targets.js.map +1 -1
- package/dist/template-loader.d.ts.map +1 -1
- package/dist/template-loader.js +10 -13
- package/dist/template-loader.js.map +1 -1
- package/dist/templates-scan-worker.d.ts +2 -0
- package/dist/templates-scan-worker.d.ts.map +1 -0
- package/dist/templates-scan-worker.js +42 -0
- package/dist/templates-scan-worker.js.map +1 -0
- package/dist/templates-scan.d.ts +35 -0
- package/dist/templates-scan.d.ts.map +1 -0
- package/dist/templates-scan.js +146 -0
- package/dist/templates-scan.js.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -1
- package/package.json +8 -8
- package/admin-dist/assets/index-BSOUexkw.css +0 -1
- package/admin-dist/assets/index-KgruFGS7.js +0 -617
- package/admin-dist/assets/vendor-primevue-zs1PFA6i.js +0 -1597
- package/admin-dist/assets/vendor-react-CqfEBl6C.js +0 -49
- package/admin-dist/assets/vendor-rjsf-Ci-RPpeZ.js +0 -40
- package/admin-dist/assets/vendor-tiptap-yFEgrmP-.js +0 -158
- package/admin-dist/assets/vendor-vue-CeoltKL-.js +0 -29
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
import{D as _e,a as N,x as J,b as pa,E as we,o as Xe,c as S,l as se,G as B,p as de,e as w,s as ie,h as $e,t as ee,d as O,F as ce,A as Te,y as Y,q as te,H as Yt,I as xr,z as Xt,i as ma,w as ye,J as qe,K as Wr,L as $r,M as Jt,N as ba,O as ha,P as va,Q as ya,R as xa}from"./vendor-vue-CeoltKL-.js";import{s as Ze,a as ka,b as ne,c as Gr,d as wa,e as zo,f as Ko,g as Ca,P as $a}from"./vendor-primevue-zs1PFA6i.js";import{a as Ba,r as F,R as U,b as za,c as Kt,j as R,d as Sa}from"./vendor-react-CqfEBl6C.js";import{F as Ra,v as Da}from"./vendor-rjsf-Ci-RPpeZ.js";import{u as Ea,i as Ia,a as Pa,b as Aa,B as Oa,E as Ta}from"./vendor-tiptap-yFEgrmP-.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&t(i)}).observe(document,{childList:!0,subtree:!0});function o(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function t(n){if(n.ep)return;n.ep=!0;const a=o(n);fetch(n.href,a)}})();var Na={transitionDuration:"{transition.duration}"},_a={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},La={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},Fa={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},Ma={root:Na,panel:_a,header:La,content:Fa},Wa={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},Ga={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Ha={padding:"{list.padding}",gap:"{list.gap}"},ja={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Ua={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Va={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qa={borderRadius:"{border.radius.sm}"},Ya={padding:"{list.option.padding}"},Xa={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},Ja={root:Wa,overlay:Ga,list:Ha,option:ja,optionGroup:Ua,dropdown:Va,chip:qa,emptyMessage:Ya,colorScheme:Xa},Ka={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Qa={size:"1rem"},Za={borderColor:"{content.background}",offset:"-0.75rem"},ei={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},ri={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},oi={root:Ka,icon:Qa,group:Za,lg:ei,xl:ri},ti={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},ni={size:"0.5rem"},ai={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},ii={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},li={fontSize:"1rem",minWidth:"2rem",height:"2rem"},si={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},ci={root:ti,dot:ni,sm:ai,lg:ii,xl:li,colorScheme:si},di={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},ui={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.3s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},fi={primitive:di,semantic:ui},gi={borderRadius:"{content.border.radius}"},pi={root:gi},mi={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},bi={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},hi={color:"{navigation.item.icon.color}"},vi={root:mi,item:bi,separator:hi},yi={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},xi={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},ki={root:yi,colorScheme:xi},wi={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Ci={padding:"1.25rem",gap:"0.5rem"},$i={gap:"0.5rem"},Bi={fontSize:"1.25rem",fontWeight:"500"},zi={color:"{text.muted.color}"},Si={root:wi,body:Ci,caption:$i,title:Bi,subtitle:zi},Ri={transitionDuration:"{transition.duration}"},Di={gap:"0.25rem"},Ei={padding:"1rem",gap:"0.5rem"},Ii={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pi={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},Ai={root:Ri,content:Di,indicatorList:Ei,indicator:Ii,colorScheme:Pi},Oi={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Ti={width:"2.5rem",color:"{form.field.icon.color}"},Ni={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},_i={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},Li={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},Fi={color:"{form.field.icon.color}"},Mi={root:Oi,dropdown:Ti,overlay:Ni,list:_i,option:Li,clearIcon:Fi},Wi={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},Gi={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},Hi={root:Wi,icon:Gi},ji={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},Ui={width:"2rem",height:"2rem"},Vi={size:"1rem"},qi={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},Yi={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},Xi={root:ji,image:Ui,icon:Vi,removeIcon:qi,colorScheme:Yi},Ji={transitionDuration:"{transition.duration}"},Ki={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Qi={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},Zi={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},el={root:Ji,preview:Ki,panel:Qi,colorScheme:Zi},rl={size:"2rem",color:"{overlay.modal.color}"},ol={gap:"1rem"},tl={icon:rl,content:ol},nl={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},al={padding:"{overlay.popover.padding}",gap:"1rem"},il={size:"1.5rem",color:"{overlay.popover.color}"},ll={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},sl={root:nl,content:al,icon:il,footer:ll},cl={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},dl={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},ul={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},fl={mobileIndent:"1rem"},gl={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},pl={borderColor:"{content.border.color}"},ml={root:cl,list:dl,item:ul,submenu:fl,submenuIcon:gl,separator:pl},bl=`
|
|
2
|
-
li.p-autocomplete-option,
|
|
3
|
-
div.p-cascadeselect-option-content,
|
|
4
|
-
li.p-listbox-option,
|
|
5
|
-
li.p-multiselect-option,
|
|
6
|
-
li.p-select-option,
|
|
7
|
-
li.p-listbox-option,
|
|
8
|
-
div.p-tree-node-content,
|
|
9
|
-
li.p-datatable-filter-constraint,
|
|
10
|
-
.p-datatable .p-datatable-tbody > tr,
|
|
11
|
-
.p-treetable .p-treetable-tbody > tr,
|
|
12
|
-
div.p-menu-item-content,
|
|
13
|
-
div.p-tieredmenu-item-content,
|
|
14
|
-
div.p-contextmenu-item-content,
|
|
15
|
-
div.p-menubar-item-content,
|
|
16
|
-
div.p-megamenu-item-content,
|
|
17
|
-
div.p-panelmenu-header-content,
|
|
18
|
-
div.p-panelmenu-item-content,
|
|
19
|
-
th.p-datatable-header-cell,
|
|
20
|
-
th.p-treetable-header-cell,
|
|
21
|
-
thead.p-datatable-thead > tr > th,
|
|
22
|
-
.p-treetable thead.p-treetable-thead>tr>th {
|
|
23
|
-
transition: none;
|
|
24
|
-
}
|
|
25
|
-
`,hl={transitionDuration:"{transition.duration}"},vl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},yl={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},xl={fontWeight:"600"},kl={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},wl={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Cl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},$l={fontWeight:"600"},Bl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},zl={color:"{primary.color}"},Sl={width:"0.5rem"},Rl={width:"1px",color:"{primary.color}"},Dl={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},El={size:"2rem"},Il={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pl={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},Al={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Ol={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Tl={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Nl=`
|
|
26
|
-
.p-datatable-mask.p-overlay-mask {
|
|
27
|
-
--px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
|
|
28
|
-
}
|
|
29
|
-
`,_l={root:hl,header:vl,headerCell:yl,columnTitle:xl,row:kl,bodyCell:wl,footerCell:Cl,columnFooter:$l,footer:Bl,dropPoint:zl,columnResizer:Sl,resizeIndicator:Rl,sortIcon:Dl,loadingIcon:El,rowToggleButton:Il,filter:Pl,paginatorTop:Al,paginatorBottom:Ol,colorScheme:Tl,css:Nl},Ll={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},Fl={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},Ml={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},Wl={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},Gl={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Hl={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},jl={root:Ll,header:Fl,content:Ml,footer:Wl,paginatorTop:Gl,paginatorBottom:Hl},Ul={transitionDuration:"{transition.duration}"},Vl={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},ql={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},Yl={gap:"0.5rem",fontWeight:"500"},Xl={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Jl={color:"{form.field.icon.color}"},Kl={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},Ql={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},Zl={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},es={margin:"0.5rem 0 0 0"},rs={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},os={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ts={margin:"0.5rem 0 0 0"},ns={padding:"0.375rem",borderRadius:"{content.border.radius}"},as={margin:"0.5rem 0 0 0"},is={padding:"0.375rem",borderRadius:"{content.border.radius}"},ls={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},ss={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},cs={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},ds={root:Ul,panel:Vl,header:ql,title:Yl,dropdown:Xl,inputIcon:Jl,selectMonth:Kl,selectYear:Ql,group:Zl,dayView:es,weekDay:rs,date:os,monthView:ts,month:ns,yearView:as,year:is,buttonbar:ls,timePicker:ss,colorScheme:cs},us={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},fs={padding:"{overlay.modal.padding}",gap:"0.5rem"},gs={fontSize:"1.25rem",fontWeight:"600"},ps={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},ms={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},bs={root:us,header:fs,title:gs,content:ps,footer:ms},hs={borderColor:"{content.border.color}"},vs={background:"{content.background}",color:"{text.color}"},ys={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},xs={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},ks={root:hs,content:vs,horizontal:ys,vertical:xs},ws={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},Cs={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$s={root:ws,item:Cs},Bs={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},zs={padding:"{overlay.modal.padding}"},Ss={fontSize:"1.5rem",fontWeight:"600"},Rs={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Ds={padding:"{overlay.modal.padding}"},Es={root:Bs,header:zs,title:Ss,content:Rs,footer:Ds},Is={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},Ps={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},As={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Os={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Ts={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Ns={toolbar:Is,toolbarItem:Ps,overlay:As,overlayOption:Os,content:Ts},_s={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},Ls={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Fs={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},Ms={padding:"0"},Ws={root:_s,legend:Ls,toggleIcon:Fs,content:Ms},Gs={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},Hs={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},js={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},Us={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},Vs={gap:"0.5rem"},qs={height:"0.25rem"},Ys={gap:"0.5rem"},Xs={root:Gs,header:Hs,content:js,file:Us,fileList:Vs,progressbar:qs,basic:Ys},Js={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},Ks={active:{top:"-1.25rem"}},Qs={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},Zs={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},ec={root:Js,over:Ks,in:Qs,on:Zs},rc={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},oc={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},tc={size:"1.5rem"},nc={background:"{content.background}",padding:"1rem 0.25rem"},ac={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ic={size:"1rem"},lc={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},sc={gap:"0.5rem",padding:"1rem"},cc={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},dc={background:"rgba(0, 0, 0, 0.5)"},uc={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},fc={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},gc={size:"1.5rem"},pc={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},mc={root:rc,navButton:oc,navIcon:tc,thumbnailsContent:nc,thumbnailNavButton:ac,thumbnailNavButtonIcon:ic,caption:lc,indicatorList:sc,indicatorButton:cc,insetIndicatorList:dc,insetIndicatorButton:uc,closeButton:fc,closeButtonIcon:gc,colorScheme:pc},bc={color:"{form.field.icon.color}"},hc={icon:bc},vc={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},yc={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},xc={root:vc,input:yc},kc={transitionDuration:"{transition.duration}"},wc={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},Cc={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},$c={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Bc={root:kc,preview:wc,toolbar:Cc,action:$c},zc={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Sc={handle:zc},Rc={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},Dc={fontWeight:"500"},Ec={size:"1rem"},Ic={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},Pc={root:Rc,text:Dc,icon:Ec,colorScheme:Ic},Ac={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},Oc={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},Tc={root:Ac,display:Oc},Nc={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},_c={borderRadius:"{border.radius.sm}"},Lc={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},Fc={root:Nc,chip:_c,colorScheme:Lc},Mc={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},Wc={addon:Mc},Gc={transitionDuration:"{transition.duration}"},Hc={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},jc={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},Uc={root:Gc,button:Hc,colorScheme:jc},Vc={gap:"0.5rem"},qc={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},Yc={root:Vc,input:qc},Xc={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Jc={root:Xc},Kc={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Qc={background:"{primary.color}"},Zc={background:"{content.border.color}"},ed={color:"{text.muted.color}"},rd={root:Kc,value:Qc,range:Zc,text:ed},od={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},td={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},nd={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},ad={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},id={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},ld={padding:"{list.option.padding}"},sd={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},cd={root:od,list:td,option:nd,optionGroup:ad,checkmark:id,emptyMessage:ld,colorScheme:sd},dd={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},ud={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},fd={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},gd={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},pd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},md={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},bd={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},hd={borderColor:"{content.border.color}"},vd={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yd={root:dd,baseItem:ud,item:fd,overlay:gd,submenu:pd,submenuLabel:md,submenuIcon:bd,separator:hd,mobileButton:vd},xd={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},kd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},wd={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Cd={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},$d={borderColor:"{content.border.color}"},Bd={root:xd,list:kd,item:wd,submenuLabel:Cd,separator:$d},zd={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},Sd={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Rd={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Dd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},Ed={borderColor:"{content.border.color}"},Id={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pd={root:zd,baseItem:Sd,item:Rd,submenu:Dd,separator:Ed,mobileButton:Id},Ad={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Od={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},Td={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},Nd={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},_d={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},Ld={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},Fd={root:{borderWidth:"1px"}},Md={content:{padding:"0"}},Wd={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},Gd={root:Ad,content:Od,text:Td,icon:Nd,closeButton:_d,closeIcon:Ld,outlined:Fd,simple:Md,colorScheme:Wd},Hd={borderRadius:"{content.border.radius}",gap:"1rem"},jd={background:"{content.border.color}",size:"0.5rem"},Ud={gap:"0.5rem"},Vd={size:"0.5rem"},qd={size:"1rem"},Yd={verticalGap:"0.5rem",horizontalGap:"1rem"},Xd={root:Hd,meters:jd,label:Ud,labelMarker:Vd,labelIcon:qd,labelList:Yd},Jd={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Kd={width:"2.5rem",color:"{form.field.icon.color}"},Qd={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Zd={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},eu={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},ru={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},ou={color:"{form.field.icon.color}"},tu={borderRadius:"{border.radius.sm}"},nu={padding:"{list.option.padding}"},au={root:Jd,dropdown:Kd,overlay:Qd,list:Zd,option:eu,optionGroup:ru,chip:tu,clearIcon:ou,emptyMessage:nu},iu={gap:"1.125rem"},lu={gap:"0.5rem"},su={root:iu,controls:lu},cu={gutter:"0.75rem",transitionDuration:"{transition.duration}"},du={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},uu={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},fu={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},gu={root:cu,node:du,nodeToggleButton:uu,connector:fu},pu={outline:{width:"2px",color:"{content.background}"}},mu={root:pu},bu={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},hu={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},vu={color:"{text.muted.color}"},yu={maxWidth:"2.5rem"},xu={root:bu,navButton:hu,currentPageReport:vu,jumpToPageInput:yu},ku={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},wu={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},Cu={padding:"0.375rem 1.125rem"},$u={fontWeight:"600"},Bu={padding:"0 1.125rem 1.125rem 1.125rem"},zu={padding:"0 1.125rem 1.125rem 1.125rem"},Su={root:ku,header:wu,toggleableHeader:Cu,title:$u,content:Bu,footer:zu},Ru={gap:"0.5rem",transitionDuration:"{transition.duration}"},Du={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Eu={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Iu={indent:"1rem"},Pu={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},Au={root:Ru,panel:Du,item:Eu,submenu:Iu,submenuIcon:Pu},Ou={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},Tu={color:"{form.field.icon.color}"},Nu={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},_u={gap:"0.5rem"},Lu={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},Fu={meter:Ou,icon:Tu,overlay:Nu,content:_u,colorScheme:Lu},Mu={gap:"1.125rem"},Wu={gap:"0.5rem"},Gu={root:Mu,controls:Wu},Hu={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},ju={padding:"{overlay.popover.padding}"},Uu={root:Hu,content:ju},Vu={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},qu={background:"{primary.color}"},Yu={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},Xu={root:Vu,value:qu,label:Yu},Ju={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},Ku={colorScheme:Ju},Qu={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},Zu={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},ef={root:Qu,icon:Zu},rf={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},of={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},tf={root:rf,icon:of},nf={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},af={colorScheme:nf},lf={transitionDuration:"{transition.duration}"},sf={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},cf={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},df={root:lf,bar:sf,colorScheme:cf},uf={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},ff={width:"2.5rem",color:"{form.field.icon.color}"},gf={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},pf={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},mf={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},bf={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},hf={color:"{form.field.icon.color}"},vf={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},yf={padding:"{list.option.padding}"},xf={root:uf,dropdown:ff,overlay:gf,list:pf,option:mf,optionGroup:bf,clearIcon:hf,checkmark:vf,emptyMessage:yf},kf={borderRadius:"{form.field.border.radius}"},wf={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},Cf={root:kf,colorScheme:wf},$f={borderRadius:"{content.border.radius}"},Bf={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},zf={root:$f,colorScheme:Bf},Sf={transitionDuration:"{transition.duration}"},Rf={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Df={background:"{primary.color}"},Ef={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},If={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},Pf={root:Sf,track:Rf,range:Df,handle:Ef,colorScheme:If},Af={gap:"0.5rem",transitionDuration:"{transition.duration}"},Of={root:Af},Tf={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},Nf={root:Tf},_f={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},Lf={background:"{content.border.color}"},Ff={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Mf={root:_f,gutter:Lf,handle:Ff},Wf={transitionDuration:"{transition.duration}"},Gf={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},Hf={padding:"0.5rem",gap:"1rem"},jf={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Uf={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Vf={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},qf={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},Yf={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},Xf={root:Wf,separator:Gf,step:Hf,stepHeader:jf,stepTitle:Uf,stepNumber:Vf,steppanels:qf,steppanel:Yf},Jf={transitionDuration:"{transition.duration}"},Kf={background:"{content.border.color}"},Qf={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Zf={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},eg={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},rg={root:Jf,separator:Kf,itemLink:Qf,itemLabel:Zf,itemNumber:eg},og={transitionDuration:"{transition.duration}"},tg={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},ng={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ag={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},ig={height:"1px",bottom:"-1px",background:"{primary.color}"},lg={root:og,tablist:tg,item:ng,itemIcon:ag,activeBar:ig},sg={transitionDuration:"{transition.duration}"},cg={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},dg={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},ug={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},fg={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},gg={height:"1px",bottom:"-1px",background:"{primary.color}"},pg={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},mg={root:sg,tablist:cg,tab:dg,tabpanel:ug,navButton:fg,activeBar:gg,colorScheme:pg},bg={transitionDuration:"{transition.duration}"},hg={background:"{content.background}",borderColor:"{content.border.color}"},vg={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},yg={background:"{content.background}",color:"{content.color}"},xg={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},kg={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},wg={root:bg,tabList:hg,tab:vg,tabPanel:yg,navButton:xg,colorScheme:kg},Cg={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},$g={size:"0.75rem"},Bg={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},zg={root:Cg,icon:$g,colorScheme:Bg},Sg={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},Rg={gap:"0.25rem"},Dg={margin:"2px 0"},Eg={root:Sg,prompt:Rg,commandResponse:Dg},Ig={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Pg={root:Ig},Ag={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Og={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Tg={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Ng={mobileIndent:"1rem"},_g={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Lg={borderColor:"{content.border.color}"},Fg={root:Ag,list:Og,item:Tg,submenu:Ng,submenuIcon:_g,separator:Lg},Mg={minHeight:"5rem"},Wg={eventContent:{padding:"1rem 0"}},Gg={eventContent:{padding:"0 1rem"}},Hg={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},jg={color:"{content.border.color}",size:"2px"},Ug={event:Mg,horizontal:Wg,vertical:Gg,eventMarker:Hg,eventConnector:jg},Vg={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},qg={size:"1.125rem"},Yg={padding:"{overlay.popover.padding}",gap:"0.5rem"},Xg={gap:"0.5rem"},Jg={fontWeight:"500",fontSize:"1rem"},Kg={fontWeight:"500",fontSize:"0.875rem"},Qg={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},Zg={size:"1rem"},ep={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},rp={root:Vg,icon:qg,content:Yg,text:Xg,summary:Jg,detail:Kg,closeButton:Qg,closeIcon:Zg,colorScheme:ep},op={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},tp={disabledColor:"{form.field.disabled.color}"},np={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},ap={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},ip={root:op,icon:tp,content:np,colorScheme:ap},lp={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},sp={borderRadius:"50%",size:"1rem"},cp={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},dp={root:lp,handle:sp,colorScheme:cp},up={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},fp={root:up},gp={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},pp={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},mp={root:gp,colorScheme:pp},bp={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},hp={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},vp={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},yp={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},xp={size:"2rem"},kp={margin:"0 0 0.5rem 0"},wp=`
|
|
30
|
-
.p-tree-mask.p-overlay-mask {
|
|
31
|
-
--px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
|
|
32
|
-
}
|
|
33
|
-
`,Cp={root:bp,node:hp,nodeIcon:vp,nodeToggleButton:yp,loadingIcon:xp,filter:kp,css:wp},$p={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Bp={width:"2.5rem",color:"{form.field.icon.color}"},zp={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Sp={padding:"{list.padding}"},Rp={padding:"{list.option.padding}"},Dp={borderRadius:"{border.radius.sm}"},Ep={color:"{form.field.icon.color}"},Ip={root:$p,dropdown:Bp,overlay:zp,tree:Sp,emptyMessage:Rp,chip:Dp,clearIcon:Ep},Pp={transitionDuration:"{transition.duration}"},Ap={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Op={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Tp={fontWeight:"600"},Np={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},_p={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},Lp={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},Fp={fontWeight:"600"},Mp={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Wp={width:"0.5rem"},Gp={width:"1px",color:"{primary.color}"},Hp={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},jp={size:"2rem"},Up={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Vp={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},qp={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Yp={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Xp=`
|
|
34
|
-
.p-treetable-mask.p-overlay-mask {
|
|
35
|
-
--px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
|
|
36
|
-
}
|
|
37
|
-
`,Jp={root:Pp,header:Ap,headerCell:Op,columnTitle:Tp,row:Np,bodyCell:_p,footerCell:Lp,columnFooter:Fp,footer:Mp,columnResizer:Wp,resizeIndicator:Gp,sortIcon:Hp,loadingIcon:jp,nodeToggleButton:Up,paginatorTop:Vp,paginatorBottom:qp,colorScheme:Yp,css:Xp},Kp={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},Qp={loader:Kp},Zp=Object.defineProperty,em=Object.defineProperties,rm=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,om=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,Zo=(e,r,o)=>r in e?Zp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,et,nm=(et=((e,r)=>{for(var o in r||(r={}))om.call(r,o)&&Zo(e,o,r[o]);if(Qo)for(var o of Qo(r))tm.call(r,o)&&Zo(e,o,r[o]);return e})({},fi),em(et,rm({components:{accordion:Ma,autocomplete:Ja,avatar:oi,badge:ci,blockui:pi,breadcrumb:vi,button:ki,card:Si,carousel:Ai,cascadeselect:Mi,checkbox:Hi,chip:Xi,colorpicker:el,confirmdialog:tl,confirmpopup:sl,contextmenu:ml,datatable:_l,dataview:jl,datepicker:ds,dialog:bs,divider:ks,dock:$s,drawer:Es,editor:Ns,fieldset:Ws,fileupload:Xs,floatlabel:ec,galleria:mc,iconfield:hc,iftalabel:xc,image:Bc,imagecompare:Sc,inlinemessage:Pc,inplace:Tc,inputchips:Fc,inputgroup:Wc,inputnumber:Uc,inputotp:Yc,inputtext:Jc,knob:rd,listbox:cd,megamenu:yd,menu:Bd,menubar:Pd,message:Gd,metergroup:Xd,multiselect:au,orderlist:su,organizationchart:gu,overlaybadge:mu,paginator:xu,panel:Su,panelmenu:Au,password:Fu,picklist:Gu,popover:Uu,progressbar:Xu,progressspinner:Ku,radiobutton:ef,rating:tf,ripple:af,scrollpanel:df,select:xf,selectbutton:Cf,skeleton:zf,slider:Pf,speeddial:Of,splitbutton:Nf,splitter:Mf,stepper:Xf,steps:rg,tabmenu:lg,tabs:mg,tabview:wg,tag:zg,terminal:Eg,textarea:Pg,tieredmenu:Fg,timeline:Ug,toast:rp,togglebutton:ip,toggleswitch:dp,toolbar:fp,tooltip:mp,tree:Cp,treeselect:Ip,treetable:Jp,virtualscroller:Qp},css:bl})));const am="/admin/".replace(/\/$/,"")+"/api";async function le(e,r){const o=sessionStorage.getItem("gazetta_token"),t={"Content-Type":"application/json"};o&&(t.Authorization=`Bearer ${o}`);const n=await fetch(`${am}${e}`,{...r,headers:{...t,...r==null?void 0:r.headers}});if(!n.ok){const a=await n.json().catch(()=>({error:n.statusText}));throw new Error(a.error??`Request failed: ${n.status}`)}return n.json()}const K={getSite:()=>le("/site"),getPages:()=>le("/pages"),getPage:(e,r)=>le(`/pages/${e}`,r),createPage:e=>le("/pages",{method:"POST",body:JSON.stringify(e)}),deletePage:e=>le(`/pages/${e}`,{method:"DELETE"}),updatePage:(e,r)=>le(`/pages/${e}`,{method:"PUT",body:JSON.stringify(r)}),getFragments:()=>le("/fragments"),getFragment:(e,r)=>le(`/fragments/${e}`,r),createFragment:e=>le("/fragments",{method:"POST",body:JSON.stringify(e)}),deleteFragment:e=>le(`/fragments/${e}`,{method:"DELETE"}),updateFragment:(e,r)=>le(`/fragments/${e}`,{method:"PUT",body:JSON.stringify(r)}),getComponent:e=>le(`/components?path=${encodeURIComponent(e)}`),updateComponent:(e,r)=>le(`/components?path=${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(r)}),createComponent:(e,r,o)=>le("/components",{method:"POST",body:JSON.stringify({parentDir:e,name:r,template:o})}),getTemplates:()=>le("/templates"),getTemplateSchema:e=>le(`/templates/${e}/schema`),getFields:()=>le("/fields"),getTargets:()=>le("/targets"),publish:(e,r)=>le("/publish",{method:"POST",body:JSON.stringify({items:e,targets:r})}),fetchFromTarget:(e,r)=>le("/fetch",{method:"POST",body:JSON.stringify({source:e,items:r})})},Le=_e("site",()=>{const e=N(null),r=N([]),o=N([]),t=N(!1),n=N(null);let a=null;async function i(){if(!(e.value&&!n.value))return a||l()}async function l(d=5){return a||(a=s(d),a)}async function s(d=5){t.value=!0,n.value=null;for(let f=0;f<=d;f++)try{const[c,u,g]=await Promise.all([K.getSite(),K.getPages(),K.getFragments()]);e.value=c,r.value=u,o.value=g,t.value=!1;return}catch(c){const u=c.message;if(f<d&&(u.includes("502")||u.includes("Failed to fetch")||u.includes("not ready"))){await new Promise(g=>setTimeout(g,1e3));continue}n.value=u}t.value=!1,a=null}return{manifest:e,pages:r,fragments:o,loading:t,error:n,load:l,ensureLoaded:i}}),Hr=_e("theme",()=>{const e=N(!0);function r(){const n=localStorage.getItem("gazetta_theme");e.value=n?n==="dark":!0,t()}function o(){e.value=!e.value,localStorage.setItem("gazetta_theme",e.value?"dark":"light"),t()}function t(){document.documentElement.classList.toggle("dark",e.value)}return{dark:e,init:r,toggle:o}}),er=_e("toast",()=>{const e=N(null);function r(t,n){const a=(n==null?void 0:n.type)??"success";e.value={message:t,type:a,link:n==null?void 0:n.link},setTimeout(()=>{e.value=null},(n==null?void 0:n.duration)??3e3)}function o(t,n){const i=(t instanceof Error?t.message:n).replace(/^Request failed: (\d+)$/,"Server error ($1)").replace(/^Failed to fetch$/,"Cannot connect to server");r(i,{type:"error"})}return{current:e,show:r,showError:o}}),Ae=_e("preview",()=>{const e=N(0),r=N(0);function o(){e.value++}function t(){r.value++}return{version:e,draftVersion:r,invalidate:o,invalidateDraft:t}}),Ne=_e("selection",()=>{const e=er(),r=N(null),o=N(null);let t=null;const n=J(()=>{var p;return((p=r.value)==null?void 0:p.type)??null}),a=J(()=>{var p;return((p=r.value)==null?void 0:p.name)??null}),i=J(()=>{var p;return((p=r.value)==null?void 0:p.detail)??null}),l=J(()=>Le().pages.filter(p=>!p.route.includes(":"))),s=J(()=>{var p,m;return((p=r.value)==null?void 0:p.type)==="page"?r.value.detail.route:((m=r.value)==null?void 0:m.type)==="fragment"?o.value?o.value.route:`/@${r.value.name}`:null});function d(){const p=l.value;o.value=p.find(m=>m.route==="/")??p[0]??null}function f(p){const m=l.value.find(y=>y.name===p);m&&(o.value=m,Ae().invalidate())}async function c(p){t==null||t.abort(),t=new AbortController;const{signal:m}=t;try{const y=await K.getPage(p,{signal:m});r.value={type:"page",name:p,detail:y},o.value=null,Ae().invalidate()}catch(y){if(y.name==="AbortError")return;e.showError(y,`Failed to load page "${p}"`)}}async function u(p){t==null||t.abort(),t=new AbortController;const{signal:m}=t;try{const y=await K.getFragment(p,{signal:m});r.value={type:"fragment",name:p,detail:y},o.value||d(),Ae().invalidate()}catch(y){if(y.name==="AbortError")return;e.showError(y,`Failed to load fragment "${p}"`)}}async function g(){if(r.value)try{if(r.value.type==="page"){const p=await K.getPage(r.value.name);r.value={type:"page",name:r.value.name,detail:p}}else{const p=await K.getFragment(r.value.name);r.value={type:"fragment",name:r.value.name,detail:p}}}catch(p){e.showError(p,"Failed to reload")}}async function h(p){if(r.value)try{r.value.type==="page"?await K.updatePage(r.value.name,{components:p}):await K.updateFragment(r.value.name,{components:p}),await g(),Ae().invalidate()}catch(m){e.showError(m,"Failed to update components")}}return{selection:r,type:n,name:a,detail:i,previewRoute:s,fragmentHostPage:o,staticPages:l,selectPage:c,selectFragment:u,setFragmentHostPage:f,reload:g,updateComponents:h}});function je(e){return JSON.parse(JSON.stringify(e))}const He=_e("editing",()=>{const e=er(),r=N(null),o=N(null),t=N(null),n=N(!1),a=N(null),i=N(null),l=N(0),s=N(null);let d=null;const f=pa(new Map),c=J(()=>{var k;return((k=r.value)==null?void 0:k.template)??null}),u=J(()=>{var k;return((k=r.value)==null?void 0:k.path)??null}),g=J(()=>{var k;return((k=r.value)==null?void 0:k.schema)??null}),h=J(()=>!o.value||!t.value?!1:JSON.stringify(o.value)!==JSON.stringify(t.value)),p=J(()=>f.size+(h.value?1:0)),m=J(()=>p.value>0),y=J(()=>{const k={};for(const[x,C]of f)k[x]=C.editedContent;return u.value&&o.value&&h.value&&(k[u.value]=o.value),k});function $(k){return f.has(k)}function A(){d&&(clearInterval(d),d=null)}function P(){h.value&&r.value&&o.value&&f.set(r.value.path,{target:r.value,editedContent:je(o.value)})}async function _(k){const x=await K.getTemplateSchema(k),{hasEditor:C,editorUrl:M,fieldsBaseUrl:G,...W}=x;return{schema:W,hasEditor:!!C,editorUrl:M,fieldsBaseUrl:G}}async function L(k,x){if(A(),i.value=null,r.value=k,o.value=je(x||k.content),t.value=je(k.content),n.value=!1,a.value=null,s.value=null,k.hasEditor&&k.editorUrl)try{const C=await import(k.editorUrl);s.value=C.default??C}catch(C){console.warn(`Custom editor for "${k.template}" failed to load:`,C)}l.value++,Ae().invalidateDraft()}function j(k){return async x=>{const C=Ne(),M=C.detail;if(!M||!C.selection)return;const G=je(M.components??[]),W=k.split("/");let X=G;for(let Z=0;Z<W.length;Z++){const ge=X.findIndex(me=>typeof me=="object"&&me.name===W[Z]);if(ge===-1)return;const ke=X[ge];Z===W.length-1?ke.content=x:X=ke.components??[]}C.selection.type==="page"?await K.updatePage(C.selection.name,{components:G}):await K.updateFragment(C.selection.name,{components:G})}}function q(k){const C=Ne().detail;if(!(C!=null&&C.components))return null;const M=k.split("/");let G=C.components;for(let W=0;W<M.length;W++){const X=G.find(Z=>typeof Z=="object"&&Z.name===M[W]);if(!X||typeof X=="string")return null;if(W===M.length-1)return{template:X.template,content:X.content??{}};G=X.components??[]}return null}async function re(k,x){A(),P();const C=f.get(k);if(C){f.delete(k),await L(C.target,C.editedContent);return}try{const M=q(k);if(!M)throw new Error(`Component "${k}" not found in page manifest`);const{schema:G,hasEditor:W,editorUrl:X,fieldsBaseUrl:Z}=await _(x);await L({template:x,path:k,content:M.content,schema:G,hasEditor:W,editorUrl:X,fieldsBaseUrl:Z,save:j(k)})}catch(M){r.value=null,i.value=`Failed to load "${x}": ${M.message}`,d=setInterval(()=>re(k,x),3e3)}}async function Q(){A(),P();const k=Ne(),x=k.detail,C=k.selection;if(!x||!C)return;const M="_root",G=f.get(M);if(G){f.delete(M),await L(G.target,G.editedContent);return}try{const W=x.content??{},{schema:X,hasEditor:Z,editorUrl:ge,fieldsBaseUrl:ke}=await _(x.template),me=C.type==="page"?Ce=>K.updatePage(C.name,{content:Ce}).then(()=>{}):Ce=>K.updateFragment(C.name,{content:Ce}).then(()=>{});await L({template:x.template,path:M,content:W,schema:X,hasEditor:Z,editorUrl:ge,fieldsBaseUrl:ke,save:me})}catch(W){r.value=null,i.value=`Failed to load "${x.template}": ${W.message}`,d=setInterval(()=>Q(),3e3)}}async function V(k){A(),P();const x=`@${k}`,C=f.get(x);if(C){f.delete(x),await L(C.target,C.editedContent);return}try{const M=await K.getFragment(k),G=M.content??{},{schema:W,hasEditor:X,editorUrl:Z,fieldsBaseUrl:ge}=await _(M.template);await L({template:M.template,path:x,content:G,schema:W,hasEditor:X,editorUrl:Z,fieldsBaseUrl:ge,save:ke=>K.updateFragment(k,{content:ke}).then(()=>{})})}catch(M){r.value=null,i.value=`Failed to load fragment "${k}": ${M.message}`,d=setInterval(()=>V(k),3e3)}}function D(){A(),i.value=null,r.value=null,o.value=null,t.value=null,n.value=!1,a.value=null,f.clear()}const E=k=>{m.value&&(k.preventDefault(),k.returnValue="")};typeof window<"u"&&window.addEventListener("beforeunload",E);function b(k){o.value=k,Ae().invalidateDraft()}function v(k){f.delete(k),Ae().invalidateDraft()}function z(){!r.value||!t.value||(o.value=je(t.value),l.value++,Ae().invalidateDraft())}async function T(){if(!(!r.value&&f.size===0)){n.value=!0,a.value=null;try{r.value&&o.value&&(await r.value.save(o.value),t.value=je(o.value));for(const[k,x]of f)await x.target.save(x.editedContent);f.clear(),Ae().invalidate(),e.show("Saved")}catch(k){a.value=k.message,e.showError(k,"Failed to save")}finally{n.value=!1}}}return{target:r,content:o,saved:t,saving:n,lastSaveError:a,template:c,path:u,schema:g,dirty:h,loadError:i,mountVersion:l,customEditorMount:s,pendingEdits:f,pendingCount:p,hasPendingEdits:m,allOverrides:y,open:L,openComponent:re,openPageRoot:Q,openFragment:V,clear:D,markDirty:b,discard:z,revertStashed:v,save:T,hasPendingEdit:$}}),So=_e("componentFocus",()=>{const e=N(null),r=N(null),o=N(null),t=N(null);function n(d){e.value=d}function a(d){r.value=d}function i(d){o.value=d}function l(d){t.value=d}function s(){t.value=null}return{highlightGzId:e,previewHoverGzId:r,selectedGzId:o,pendingGzId:t,highlight:n,previewHover:a,select:i,setPending:l,clearPending:s}}),fr=_e("uiMode",()=>{const e=N("browse");let r="browse";function o(){e.value="edit"}function t(){He().clear();const a=So();a.select(null),a.clearPending(),e.value="browse"}function n(){e.value==="fullscreen"?e.value=r:(r=e.value,e.value="fullscreen")}return{mode:e,enterEdit:o,enterBrowse:t,toggleFullscreen:n}}),im={class:"publish-content"},lm={class:"publish-item"},sm={key:0,class:"publish-empty"},cm={key:1,class:"publish-targets"},dm=["for"],um={key:2,class:"publish-results"},fm={class:"result-target"},gm={key:0,class:"result-detail"},pm={key:1,class:"result-detail"},mm=we({__name:"PublishDialog",props:{visible:{type:Boolean},itemType:{},itemName:{}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=N([]),a=N([]),i=N(!1),l=N(null);Xe(async()=>{try{n.value=await K.getTargets()}catch{n.value=[]}});async function s(){if(a.value.length!==0){i.value=!0,l.value=null;try{const d=`${o.itemType}/${o.itemName}`,f=await K.publish([d],a.value);l.value=f.results}catch(d){l.value=[{target:"(all)",success:!1,error:d.message,copiedFiles:0}]}finally{i.value=!1}}}return(d,f)=>(S(),se(B(Ze),{visible:o.visible,"onUpdate:visible":f[3]||(f[3]=c=>t("close")),modal:"",header:"Publish",style:{width:"28rem"}},{footer:de(()=>[l.value?(S(),se(B(ne),{key:0,label:"Done",onClick:f[1]||(f[1]=c=>t("close"))})):(S(),O(ce,{key:1},[Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:f[2]||(f[2]=c=>t("close"))}),Y(B(ne),{label:"Publish",icon:"pi pi-cloud-upload",loading:i.value,disabled:a.value.length===0,onClick:s},null,8,["loading","disabled"])],64))]),default:de(()=>[w("div",im,[w("p",lm,[w("i",{class:ie(e.itemType==="pages"?"pi pi-file":"pi pi-share-alt")},null,2),$e(" "+ee(e.itemName),1)]),n.value.length===0?(S(),O("div",sm," No targets configured in site.yaml ")):l.value?(S(),O("div",um,[(S(!0),O(ce,null,Te(l.value,c=>(S(),O("div",{key:c.target,class:ie(["publish-result",{success:c.success,error:!c.success}])},[w("i",{class:ie(c.success?"pi pi-check-circle":"pi pi-exclamation-circle")},null,2),w("span",fm,ee(c.target),1),c.success?(S(),O("span",gm,ee(c.copiedFiles)+" files",1)):(S(),O("span",pm,ee(c.error),1))],2))),128))])):(S(),O("div",cm,[f[4]||(f[4]=w("p",{class:"publish-label"},"Select targets:",-1)),(S(!0),O(ce,null,Te(n.value,c=>(S(),O("div",{key:c,class:"publish-target"},[Y(B(ka),{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),inputId:c,value:c},null,8,["modelValue","inputId","value"]),w("label",{for:c},ee(c),9,dm)]))),128))]))])]),_:1},8,["visible"]))}}),Re=(e,r)=>{const o=e.__vccOpts||e;for(const[t,n]of r)o[t]=n;return o},bm=Re(mm,[["__scopeId","data-v-878d0536"]]),hm={class:"fetch-content"},vm={key:0,class:"fetch-empty"},ym={key:1,class:"fetch-select"},xm={key:2,class:"fetch-result success"},km={class:"fetch-items"},wm={key:3,class:"fetch-result error"},Cm=we({__name:"FetchDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=Le(),a=N([]),i=N(null),l=N(!1),s=N(null),d=N(null);Xe(async()=>{try{a.value=await K.getTargets()}catch{a.value=[]}});async function f(){if(i.value){l.value=!0,s.value=null,d.value=null;try{s.value=await K.fetchFromTarget(i.value),await n.load()}catch(c){d.value=c.message}finally{l.value=!1}}}return(c,u)=>(S(),se(B(Ze),{visible:o.visible,"onUpdate:visible":u[3]||(u[3]=g=>t("close")),modal:"",header:"Fetch from Target",style:{width:"28rem"}},{footer:de(()=>[s.value||d.value?(S(),se(B(ne),{key:0,label:"Done",onClick:u[1]||(u[1]=g=>t("close"))})):(S(),O(ce,{key:1},[Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:u[2]||(u[2]=g=>t("close"))}),Y(B(ne),{label:"Fetch",icon:"pi pi-cloud-download",loading:l.value,disabled:!i.value,onClick:f},null,8,["loading","disabled"])],64))]),default:de(()=>[w("div",hm,[a.value.length===0?(S(),O("div",vm," No targets configured in site.yaml ")):!s.value&&!d.value?(S(),O("div",ym,[u[4]||(u[4]=w("p",{class:"fetch-label"},"Pull content from a target into the working copy:",-1)),Y(B(Gr),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=g=>i.value=g),options:a.value.map(g=>({name:g})),optionLabel:"name",optionValue:"name",class:"fetch-list"},null,8,["modelValue","options"])])):s.value?(S(),O("div",xm,[u[6]||(u[6]=w("i",{class:"pi pi-check-circle"},null,-1)),w("div",null,[w("p",null,[w("strong",null,ee(s.value.copiedFiles),1),u[5]||(u[5]=$e(" files fetched from ",-1)),w("strong",null,ee(i.value),1)]),w("p",km,ee(s.value.items.join(", ")),1)])])):d.value?(S(),O("div",wm,[u[7]||(u[7]=w("i",{class:"pi pi-exclamation-circle"},null,-1)),w("p",null,ee(d.value),1)])):te("",!0)])]),_:1},8,["visible"]))}}),$m=Re(Cm,[["__scopeId","data-v-359a5f85"]]),Bm={key:2,class:"cms-site-name"},zm={key:0,class:"cms-toast cms-toast-error"},Sm=we({__name:"CmsToolbar",setup(e){const r=Yt(),o=xr(),t=J(()=>r.name==="dev"),n=Le(),a=Ne(),i=He(),l=Hr(),s=fr(),d=N(!1),f=N(!1),c=J(()=>a.type==="page"?"pages":"fragments"),u=J(()=>a.name??""),g=J(()=>a.name&&!i.hasPendingEdits);function h(){const p=a.type==="page"?"/pages":"/fragments";o.push(`${p}/${a.name}`)}return(p,m)=>(S(),O(ce,null,[Y(B(wa),{class:"cms-toolbar"},{start:de(()=>[B(s).mode==="edit"&&!t.value?(S(),se(B(ne),{key:0,icon:"pi pi-arrow-left",text:"",rounded:"","data-testid":"back-to-browse",onClick:h,size:"small",class:"cms-btn"})):te("",!0),t.value?(S(),se(B(ne),{key:1,icon:"pi pi-arrow-left",text:"",rounded:"","data-testid":"back-to-editor",onClick:m[0]||(m[0]=y=>B(o).back()),size:"small",class:"cms-btn"})):te("",!0),m[8]||(m[8]=w("span",{class:"cms-logo"},[w("i",{class:"pi pi-objects-column"}),$e(" Gazetta ")],-1)),B(n).manifest?(S(),O("span",Bm,ee(B(n).manifest.name),1)):te("",!0)]),center:de(()=>[Y(Xt,{name:"fade"},{default:de(()=>[B(i).lastSaveError?(S(),O("span",zm,[m[9]||(m[9]=w("i",{class:"pi pi-exclamation-circle"},null,-1)),$e(" "+ee(B(i).lastSaveError),1)])):te("",!0)]),_:1})]),end:de(()=>[t.value?te("",!0):(S(),se(B(ne),{key:0,icon:"pi pi-code",text:"",rounded:"",title:"Dev Playground","data-testid":"dev-playground-link",onClick:m[1]||(m[1]=y=>B(o).push("/dev")),size:"small",class:"cms-btn"})),Y(B(ne),{icon:B(l).dark?"pi pi-sun":"pi pi-moon",text:"",rounded:"","data-testid":"theme-toggle",onClick:m[2]||(m[2]=y=>B(l).toggle()),size:"small",class:"cms-btn"},null,8,["icon"]),B(s).mode==="edit"?(S(),se(B(ne),{key:1,label:"Save",icon:"pi pi-save",severity:"primary",loading:B(i).saving,"data-testid":"save-btn",disabled:!B(i).hasPendingEdits,onClick:m[3]||(m[3]=y=>B(i).save()),size:"small",class:"cms-btn"},null,8,["loading","disabled"])):te("",!0),Y(B(ne),{label:"Fetch",icon:"pi pi-cloud-download",severity:"info","data-testid":"fetch-btn",onClick:m[4]||(m[4]=y=>f.value=!0),size:"small",class:"cms-btn"}),Y(B(ne),{label:"Publish",icon:"pi pi-cloud-upload",severity:"success","data-testid":"publish-btn",disabled:!g.value,onClick:m[5]||(m[5]=y=>d.value=!0),size:"small",class:"cms-btn"},null,8,["disabled"])]),_:1}),d.value?(S(),se(bm,{key:0,visible:d.value,itemType:c.value,itemName:u.value,onClose:m[6]||(m[6]=y=>d.value=!1)},null,8,["visible","itemType","itemName"])):te("",!0),f.value?(S(),se($m,{key:1,visible:f.value,onClose:m[7]||(m[7]=y=>f.value=!1)},null,8,["visible"])):te("",!0)],64))}}),Rm=Re(Sm,[["__scopeId","data-v-19233328"]]),jr=_e("unsavedGuard",()=>{const e=N(!1);let r=null;function o(){return r?new Promise(n=>n("cancel")):(e.value=!0,new Promise(n=>{r={resolve:n}}))}function t(n){e.value=!1,r==null||r.resolve(n),r=null}return{visible:e,guard:o,respond:t}}),Dm={class:"unsaved-message"},Em={class:"unsaved-actions"},Im=we({__name:"UnsavedDialog",setup(e){const r=jr();He();const o=Ne();function t(n){n.key==="Escape"&&(n.stopPropagation(),r.respond("cancel"))}return(n,a)=>(S(),se(B(Ze),{visible:B(r).visible,modal:"",header:"Unsaved Changes",closable:!1,style:{width:"26rem"},pt:{mask:{style:"backdrop-filter: blur(2px)"}},onKeydown:t},{footer:de(()=>[w("div",Em,[Y(B(ne),{label:"Don't Save",severity:"danger",text:"",onClick:a[0]||(a[0]=i=>B(r).respond("discard"))}),Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:a[1]||(a[1]=i=>B(r).respond("cancel"))}),Y(B(ne),{label:"Save",icon:"pi pi-check",autofocus:"",onClick:a[2]||(a[2]=i=>B(r).respond("save"))})])]),default:de(()=>[w("p",Dm,[a[3]||(a[3]=$e(" You have unsaved changes on ",-1)),w("strong",null,ee(B(o).name),1),a[4]||(a[4]=$e(". ",-1))])]),_:1},8,["visible"]))}}),Pm=Re(Im,[["__scopeId","data-v-b86db2f5"]]),Am={class:"cms-app"},Om={key:0,class:"cms-error"},Tm={key:1,class:"cms-loading"},Nm=["href"],_m=we({__name:"App",setup(e){const r=Le(),o=Hr(),t=er();return Xe(()=>{o.init()}),(n,a)=>{const i=ma("router-view");return S(),O("div",Am,[Y(Rm),B(r).error?(S(),O("div",Om,ee(B(r).error),1)):B(r).loading?(S(),O("div",Tm,"Loading site...")):(S(),se(i,{key:2})),Y(Pm),Y(Xt,{name:"toast"},{default:de(()=>[B(t).current?(S(),O("div",{key:0,class:ie(["global-toast",B(t).current.type==="error"?"toast-error":"toast-success"])},[w("i",{class:ie(B(t).current.type==="error"?"pi pi-exclamation-circle":"pi pi-check-circle")},null,2),B(t).current.link?(S(),O("a",{key:0,href:B(t).current.link,target:"_blank",rel:"noopener",class:"toast-link"},ee(B(t).current.message),9,Nm)):(S(),O(ce,{key:1},[$e(ee(B(t).current.message),1)],64))],2)):te("",!0)]),_:1})])}}}),Lm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fm=Object.prototype.toString,Mm=e=>Fm.call(e)==="[object Object]",rt=()=>{};function Wm(e,r){function o(...t){return new Promise((n,a)=>{Promise.resolve(e(()=>r.apply(this,t),{fn:r,thisArg:this,args:t})).then(n).catch(a)})}return o}const Gm=e=>e();function Hm(e,r={}){let o,t,n=rt;const a=s=>{clearTimeout(s),n(),n=rt};let i;return s=>{const d=qe(e),f=qe(r.maxWait);return o&&a(o),d<=0||f!==void 0&&f<=0?(t&&(a(t),t=void 0),Promise.resolve(s())):new Promise((c,u)=>{n=r.rejectOnCancel?u:c,i=s,f&&!t&&(t=setTimeout(()=>{o&&a(o),t=void 0,c(i())},f)),o=setTimeout(()=>{t&&a(t),t=void 0,c(s())},d)})}}function Zr(e){return Array.isArray(e)?e:[e]}function jm(e,r,o={}){const{eventFilter:t=Gm,...n}=o;return ye(e,Wm(t,r),n)}function Um(e,r,o={}){const{debounce:t=0,maxWait:n=void 0,...a}=o;return jm(e,r,{...a,eventFilter:Hm(t,{maxWait:n})})}function Vm(e,r,o){return ye(e,r,{...o,immediate:!0})}const Qt=Lm?window:void 0;function qm(e){var r;const o=qe(e);return(r=o==null?void 0:o.$el)!==null&&r!==void 0?r:o}function Zt(...e){const r=(t,n,a,i)=>(t.addEventListener(n,a,i),()=>t.removeEventListener(n,a,i)),o=J(()=>{const t=Zr(qe(e[0])).filter(n=>n!=null);return t.every(n=>typeof n!="string")?t:void 0});return Vm(()=>{var t,n;return[(t=(n=o.value)===null||n===void 0?void 0:n.map(a=>qm(a)))!==null&&t!==void 0?t:[Qt].filter(a=>a!=null),Zr(qe(o.value?e[1]:e[0])),Zr(B(o.value?e[2]:e[1])),qe(o.value?e[3]:e[2])]},([t,n,a,i],l,s)=>{if(!(t!=null&&t.length)||!(n!=null&&n.length)||!(a!=null&&a.length))return;const d=Mm(i)?{...i}:i,f=t.flatMap(c=>n.flatMap(u=>a.map(g=>r(c,u,g,d))));s(()=>{f.forEach(c=>c())})},{flush:"post"})}function Ym(e){return typeof e=="function"?e:typeof e=="string"?r=>r.key===e:Array.isArray(e)?r=>e.includes(r.key):()=>!0}function Ro(...e){let r,o,t={};e.length===3?(r=e[0],o=e[1],t=e[2]):e.length===2?typeof e[1]=="object"?(r=!0,o=e[0],t=e[1]):(r=e[0],o=e[1]):(r=!0,o=e[0]);const{target:n=Qt,eventName:a="keydown",passive:i=!1,dedupe:l=!1}=t,s=Ym(r);return Zt(n,a,f=>{f.repeat&&qe(l)||s(f)&&o(f)},i)}const Xm={class:"create-content"},Jm={class:"create-field"},Km={key:0,class:"create-hint"},Qm={class:"create-field"},Zm={key:0,class:"create-error"},e0=we({__name:"CreatePageDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=Le(),a=N([]),i=N(null),l=N(""),s=N(!1),d=N(null),f=J(()=>{const u=l.value.trim().toLowerCase().replace(/\s+/g,"-");return!u||u==="home"?"/":`/${u}`});Xe(async()=>{a.value=await K.getTemplates()});async function c(){if(!(!i.value||!l.value.trim())){s.value=!0,d.value=null;try{const u=l.value.trim().toLowerCase().replace(/\s+/g,"-").replace(/\/+/g,"/");await K.createPage({name:u,template:i.value}),await n.load(),t("close")}catch(u){d.value=u.message}finally{s.value=!1}}}return(u,g)=>(S(),se(B(Ze),{visible:o.visible,"onUpdate:visible":g[3]||(g[3]=h=>t("close")),modal:"",header:"New Page",style:{width:"24rem"}},{footer:de(()=>[Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:g[2]||(g[2]=h=>t("close"))}),Y(B(ne),{label:"Create",icon:"pi pi-plus",loading:s.value,disabled:!i.value||!l.value.trim(),onClick:c},null,8,["loading","disabled"])]),default:de(()=>[w("div",Xm,[w("div",Jm,[g[4]||(g[4]=w("label",null,"Page name",-1)),Y(B(zo),{modelValue:l.value,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),placeholder:"e.g. contact or blog/my-post",class:"create-input"},null,8,["modelValue"]),l.value.trim()?(S(),O("span",Km,"Route: "+ee(f.value),1)):te("",!0)]),w("div",Qm,[g[5]||(g[5]=w("label",null,"Page template",-1)),Y(B(Gr),{modelValue:i.value,"onUpdate:modelValue":g[1]||(g[1]=h=>i.value=h),options:a.value,optionLabel:"name",optionValue:"name",class:"create-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),d.value?(S(),O("p",Zm,ee(d.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),r0=Re(e0,[["__scopeId","data-v-b4d1c25e"]]),o0={class:"create-content"},t0={class:"create-field"},n0={class:"create-field"},a0={key:0,class:"create-error"},i0=we({__name:"CreateFragmentDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=Le(),a=N([]),i=N(null),l=N(""),s=N(!1),d=N(null);Xe(async()=>{a.value=await K.getTemplates()});async function f(){if(!(!i.value||!l.value.trim())){s.value=!0,d.value=null;try{const c=l.value.trim().toLowerCase().replace(/\s+/g,"-");await K.createFragment({name:c,template:i.value}),await n.load(),t("close")}catch(c){d.value=c.message}finally{s.value=!1}}}return(c,u)=>(S(),se(B(Ze),{visible:o.visible,"onUpdate:visible":u[3]||(u[3]=g=>t("close")),modal:"",header:"New Fragment",style:{width:"24rem"}},{footer:de(()=>[Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:u[2]||(u[2]=g=>t("close"))}),Y(B(ne),{label:"Create",icon:"pi pi-plus",loading:s.value,disabled:!i.value||!l.value.trim(),onClick:f},null,8,["loading","disabled"])]),default:de(()=>[w("div",o0,[w("div",t0,[u[4]||(u[4]=w("label",null,"Fragment name",-1)),Y(B(zo),{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),placeholder:"e.g. sidebar, newsletter",class:"create-input"},null,8,["modelValue"])]),w("div",n0,[u[5]||(u[5]=w("label",null,"Template",-1)),Y(B(Gr),{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=g=>i.value=g),options:a.value,optionLabel:"name",optionValue:"name",class:"create-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),d.value?(S(),O("p",a0,ee(d.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),l0=Re(i0,[["__scopeId","data-v-0b98775c"]]),s0={class:"site-tree"},c0=["data-testid","onClick"],d0={class:"node-label"},u0=["data-testid","onClick"],f0={class:"node-label"},g0=["data-testid","onClick"],p0={class:"node-label"},m0={class:"new-btns"},b0=we({__name:"SiteTree",setup(e){const r=xr(),o=Le(),t=Ne(),n=He(),a=er(),i=N(null),l=N(!1),s=N(!1);ye(()=>t.selection,p=>{p?i.value=`${p.type}:${p.name}`:i.value=null},{immediate:!0});const d=J(()=>{var p;return new Set(((p=o.manifest)==null?void 0:p.systemPages)??[])}),f=J(()=>[...o.pages].filter(p=>!d.value.has(p.name)).sort((p,m)=>p.route.localeCompare(m.route)).map(p=>({key:`page:${p.name}`,label:p.name,type:"page",name:p.name,icon:"pi pi-file"}))),c=J(()=>[...o.pages].filter(p=>d.value.has(p.name)).sort((p,m)=>p.route.localeCompare(m.route)).map(p=>({key:`page:${p.name}`,label:p.name,type:"page",name:p.name,icon:"pi pi-file"}))),u=J(()=>o.fragments.map(p=>({key:`fragment:${p.name}`,label:p.name,type:"fragment",name:p.name,icon:"pi pi-share-alt"})).sort((p,m)=>p.label.localeCompare(m.label)));function g(p){const m=p.type==="page"?"/pages":"/fragments";r.push(`${m}/${p.name}`)}async function h(p,m){if(m.stopPropagation(),!!confirm(`Delete ${p.type} "${p.name}"? This cannot be undone.`))try{p.type==="page"?await K.deletePage(p.name):await K.deleteFragment(p.name),t.type===p.type&&t.name===p.name&&n.clear(),await o.load()}catch(y){a.showError(y,`Failed to delete "${p.name}"`)}}return(p,m)=>(S(),O("div",s0,[m[5]||(m[5]=w("div",{class:"section-label"},"Pages",-1)),(S(!0),O(ce,null,Te(f.value,y=>(S(),O("div",{key:y.key,class:ie(["node-item",{selected:i.value===y.key}]),"data-testid":`site-${y.type}-${y.name}`,onClick:$=>g(y)},[w("i",{class:ie([y.icon,"node-icon"])},null,2),w("span",d0,ee(y.label),1),Y(B(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${y.type}-${y.name}`,onClick:$=>h(y,$)},null,8,["data-testid","onClick"])],10,c0))),128)),c.value.length?(S(),O(ce,{key:0},[m[4]||(m[4]=w("div",{class:"section-divider"},null,-1)),(S(!0),O(ce,null,Te(c.value,y=>(S(),O("div",{key:y.key,class:ie(["node-item",{selected:i.value===y.key}]),"data-testid":`site-${y.type}-${y.name}`,onClick:$=>g(y)},[w("i",{class:ie([y.icon,"node-icon"])},null,2),w("span",f0,ee(y.label),1),Y(B(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${y.type}-${y.name}`,onClick:$=>h(y,$)},null,8,["data-testid","onClick"])],10,u0))),128))],64)):te("",!0),m[6]||(m[6]=w("div",{class:"section-label",style:{"margin-top":"12px"}},"Fragments",-1)),(S(!0),O(ce,null,Te(u.value,y=>(S(),O("div",{key:y.key,class:ie(["node-item",{selected:i.value===y.key}]),"data-testid":`site-${y.type}-${y.name}`,onClick:$=>g(y)},[w("i",{class:ie([y.icon,"node-icon"])},null,2),w("span",p0,ee(y.label),1),Y(B(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${y.type}-${y.name}`,onClick:$=>h(y,$)},null,8,["data-testid","onClick"])],10,g0))),128)),w("div",m0,[Y(B(ne),{icon:"pi pi-plus",label:"New page",text:"",size:"small","data-testid":"new-page",onClick:m[0]||(m[0]=y=>l.value=!0)}),Y(B(ne),{icon:"pi pi-plus",label:"New fragment",text:"",size:"small","data-testid":"new-fragment",onClick:m[1]||(m[1]=y=>s.value=!0)})]),l.value?(S(),se(r0,{key:1,visible:l.value,onClose:m[2]||(m[2]=y=>l.value=!1)},null,8,["visible"])):te("",!0),s.value?(S(),se(l0,{key:2,visible:s.value,onClose:m[3]||(m[3]=y=>s.value=!1)},null,8,["visible"])):te("",!0)]))}}),h0=Re(b0,[["__scopeId","data-v-37e45114"]]),v0={class:"add-content"},y0={class:"add-field"},x0={class:"add-field"},k0={key:0,class:"add-error"},w0=we({__name:"AddComponentDialog",props:{visible:{type:Boolean}},emits:["close","add"],setup(e,{emit:r}){const o=e,t=r,n=N([]),a=N(null),i=N(""),l=N(!1),s=N(null);Xe(async()=>{n.value=await K.getTemplates()});async function d(){if(!(!a.value||!i.value.trim())){l.value=!0,s.value=null;try{const f=i.value.trim().toLowerCase().replace(/\s+/g,"-");t("add",f,a.value),t("close")}catch(f){s.value=f.message}finally{l.value=!1}}}return(f,c)=>(S(),se(B(Ze),{visible:o.visible,"onUpdate:visible":c[3]||(c[3]=u=>t("close")),modal:"",header:"Add Component",style:{width:"24rem"}},{footer:de(()=>[Y(B(ne),{label:"Cancel",severity:"secondary",text:"",onClick:c[2]||(c[2]=u=>t("close"))}),Y(B(ne),{label:"Add",icon:"pi pi-plus",loading:l.value,disabled:!a.value||!i.value.trim(),onClick:d},null,8,["loading","disabled"])]),default:de(()=>[w("div",v0,[w("div",y0,[c[4]||(c[4]=w("label",null,"Name",-1)),Y(B(zo),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),placeholder:"e.g. hero, sidebar, cta",class:"add-input"},null,8,["modelValue"])]),w("div",x0,[c[5]||(c[5]=w("label",null,"Template",-1)),Y(B(Gr),{modelValue:a.value,"onUpdate:modelValue":c[1]||(c[1]=u=>a.value=u),options:n.value,optionLabel:"name",optionValue:"name",class:"add-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),s.value?(S(),O("p",k0,ee(s.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),C0=Re(w0,[["__scopeId","data-v-f4b0672a"]]),$0={key:0,class:"component-tree"},B0=["data-testid","onClick","onMouseenter"],z0={key:0,class:"pi pi-exclamation-triangle node-icon node-error-icon"},S0={key:2,class:"node-dirty-dot"},R0={class:"node-label"},D0={key:4,class:"node-actions"},E0={key:1,class:"empty"},I0=we({__name:"ComponentTree",setup(e){function r(D){let E=2166136261;for(let b=0;b<D.length;b++)E^=D.charCodeAt(b),E=E*16777619>>>0;return E.toString(16).padStart(8,"0")}const o=Ne(),t=He(),n=er();Ae();const a=So(),i=jr(),l=N(null),s=N(null),d=N([]),f=N(!1),c=J(()=>o.detail),u=J(()=>{var D,E;return((E=(D=c.value)==null?void 0:D.components)==null?void 0:E.length)??0}),g=N(new Map);async function h(D,E,b,v){if(typeof D=="string"){const x=D.slice(1),C=b?`${b}/${D}`:D,M=r(C);v.set(M,{isFragment:!0,fragName:x});try{const G=await K.getFragment(x),W=G.components?await Promise.all(G.components.map((X,Z)=>h(X,Z,C,v))):[];return{key:`frag:${x}:${E}`,label:D,data:{isFragment:!0,fragName:x,treePath:C,path:C,template:G.template,index:E,isTopLevel:!0},children:W}}catch(G){return{key:`frag:${x}:${E}`,label:D,data:{isFragment:!0,fragName:x,treePath:C,index:E,isTopLevel:!0,error:G.message},children:[]}}}const z=b?`${b}/${D.name}`:D.name,T=r(z),k=D.components?await Promise.all(D.components.map((x,C)=>h(x,C,z,v))):[];return v.set(T,{path:z,template:D.template}),{key:`comp:${z}:${E}`,label:D.name,data:{path:z,template:D.template,treePath:z,isFragment:!1,index:E,isTopLevel:!0},children:k.map(x=>({...x,data:{...x.data,isTopLevel:!1}}))}}ye(c,async D=>{if(!D){d.value=[],g.value=new Map;return}const E=new Map,b=o.type==="fragment"?`@${o.name}`:"",v=D.components?await Promise.all(D.components.map((T,k)=>h(T,k,b,E))):[],z={key:`root:${o.name}`,label:o.name??"",data:{isPage:!0,path:D.dir,template:D.template,treePath:b},children:v};b&&o.type==="fragment"&&o.name&&E.set(r(b),{isFragment:!0,fragName:o.name}),d.value=[z],g.value=E,p()},{immediate:!0});function p(){a.pendingGzId&&g.value.size>0&&(q(a.pendingGzId),a.clearPending())}ye(()=>a.pendingGzId,()=>p()),ye(()=>a.previewHoverGzId,D=>{if(!D){s.value=null;return}const E=j(d.value,b=>b.treePath?r(b.treePath)===D:!1);s.value=(E==null?void 0:E.key)??null});const m=J(()=>{const D=[];function E(b,v){for(const z of b)D.push({node:z,depth:v}),z.children.length&&E(z.children,v+1)}return d.value[0]&&(D.push({node:d.value[0],depth:-1}),E(d.value[0].children,0)),D});function y(D,E){return E===-1?o.type==="page"?"pi pi-file":"pi pi-share-alt":D.data.isFragment?"pi pi-share-alt":"pi pi-box"}function $(D){if(!(D<=0))return{paddingLeft:D*10+"px"}}function A(D){t.path===D?t.discard():t.revertStashed(D)}function P(D){D.data.treePath&&a.highlight(r(D.data.treePath))}function _(){a.highlight(null)}async function L(D){if(!D.data)return;l.value=D.key;const E=D.data.treePath;if(a.select(E?r(E):null),D.data.isFragment&&D.data.fragName){t.openFragment(D.data.fragName);return}if(D.data.isPage){t.openPageRoot();return}D.data.path&&t.openComponent(D.data.path,D.data.template??"")}function j(D,E){for(const b of D){if(b.data&&E(b.data))return b;if(b.children.length){const v=j(b.children,E);if(v)return v}}return null}function q(D){const E=g.value.get(D);if(!E)return;if(a.select(D),"isFragment"in E){const v=j(d.value,z=>z.fragName===E.fragName);v&&(l.value=v.key),t.openFragment(E.fragName);return}const b=j(d.value,v=>v.path===E.path);b&&(l.value=b.key),t.openComponent(E.path,E.template)}async function re(D,E){const b=c.value;if(!(b!=null&&b.components))return;const v=D+E;if(v<0||v>=b.components.length)return;const z=[...b.components],[T]=z.splice(D,1);z.splice(v,0,T),await o.updateComponents(z)}async function Q(D){const E=c.value;if(!(E!=null&&E.components))return;if(t.dirty){const z=await i.guard();if(z==="cancel")return;z==="save"&&await t.save()}const b=[...E.components],v=b.splice(D,1)[0];t.clear(),await o.updateComponents(b),n.show(`Removed "${v}"`)}async function V(D,E){const b=c.value;if(b)try{await K.createComponent(b.dir,D,E);const v=[...b.components??[],D];await o.updateComponents(v),n.show(`Added "${D}"`)}catch(v){n.showError(v,`Failed to add component "${D}"`)}}return(D,E)=>c.value?(S(),O("div",$0,[m.value.length?(S(!0),O(ce,{key:0},Te(m.value,({node:b,depth:v})=>{var z,T,k,x,C;return S(),O("div",{key:b.key,class:ie(["node-item",{"node-root":v===-1,selected:l.value===b.key,hovered:s.value===b.key}]),style:Wr($(v)),"data-testid":`component-${(z=b.data)!=null&&z.isFragment?b.data.fragName:b.label}`,onClick:M=>L(b),onMouseenter:M=>P(b),onMouseleave:E[0]||(E[0]=M=>_())},[(T=b.data)!=null&&T.error?(S(),O("i",z0)):(S(),O("i",{key:1,class:ie([y(b,v),"node-icon"])},null,2)),(k=b.data)!=null&&k.path&&(B(t).hasPendingEdit(b.data.path)||B(t).dirty&&B(t).path===b.data.path)?(S(),O("span",S0)):te("",!0),w("span",R0,ee(b.label),1),(x=b.data)!=null&&x.path&&(B(t).hasPendingEdit(b.data.path)||B(t).dirty&&B(t).path===b.data.path)?(S(),se(B(ne),{key:3,icon:"pi pi-undo",text:"",rounded:"",size:"small",class:"node-revert",title:"Discard changes",onClick:$r(M=>A(b.data.path),["stop"])},null,8,["onClick"])):te("",!0),(C=b.data)!=null&&C.isTopLevel&&v!==-1?(S(),O("span",D0,[Y(B(ne),{icon:"pi pi-arrow-up",text:"",rounded:"",size:"small","data-testid":`move-up-${b.label}`,disabled:b.data.index===0,onClick:$r(M=>re(b.data.index,-1),["stop"])},null,8,["data-testid","disabled","onClick"]),Y(B(ne),{icon:"pi pi-arrow-down",text:"",rounded:"",size:"small","data-testid":`move-down-${b.label}`,disabled:b.data.index===u.value-1,onClick:$r(M=>re(b.data.index,1),["stop"])},null,8,["data-testid","disabled","onClick"]),Y(B(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger","data-testid":`remove-${b.label}`,onClick:$r(M=>Q(b.data.index),["stop"])},null,8,["data-testid","onClick"])])):te("",!0)],46,B0)}),128)):(S(),O("p",E0,"No components")),Y(B(ne),{icon:"pi pi-plus",label:"Add component",text:"",size:"small",class:"add-btn","data-testid":"add-component",onClick:E[1]||(E[1]=b=>f.value=!0)}),f.value?(S(),se(C0,{key:2,visible:f.value,onClose:E[2]||(E[2]=b=>f.value=!1),onAdd:V},null,8,["visible"])):te("",!0)])):te("",!0)}}),P0=Re(I0,[["__scopeId","data-v-6e06b8a9"]]);function A0(e,r,o,t,n,a,i,l){let s=!1;function d(){!e.value||!r.value||!o.value||!t.value||(s&&f(),r.value.mount(e.value,{content:o.value,schema:t.value,theme:n.value,onChange:a,fieldsBaseUrl:l==null?void 0:l.value}),s=!0)}function f(){!s||!e.value||!r.value||(r.value.unmount(e.value),s=!1)}ye(i?[e,r,i]:[e,r],()=>{e.value&&r.value&&o.value?d():f()},{immediate:!0}),Jt(f)}const O0="modulepreload",T0=function(e){return"/admin/"+e},ot={},ho=function(r,o,t){let n=Promise.resolve();if(o&&o.length>0){let i=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));n=i(o.map(d=>{if(d=T0(d),d in ot)return;ot[d]=!0;const f=d.endsWith(".css"),c=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${c}`))return;const u=document.createElement("link");if(u.rel=f?"stylesheet":O0,f||(u.as="script"),u.crossOrigin="",u.href=d,s&&u.setAttribute("nonce",s),document.head.appendChild(u),f)return new Promise((g,h)=>{u.addEventListener("load",g),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return r().catch(a)})};function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var N0=typeof Symbol=="function"&&Symbol.observable||"@@observable",tt=N0,nt=()=>Math.random().toString(36).substring(7).split("").join("."),_0={INIT:`@@redux/INIT${nt()}`,REPLACE:`@@redux/REPLACE${nt()}`},at=_0;function L0(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function en(e,r,o){if(typeof e!="function")throw new Error(ve(2));if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(en)(e,r)}let t=e,n=r,a=new Map,i=a,l=0,s=!1;function d(){i===a&&(i=new Map,a.forEach((m,y)=>{i.set(y,m)}))}function f(){if(s)throw new Error(ve(3));return n}function c(m){if(typeof m!="function")throw new Error(ve(4));if(s)throw new Error(ve(5));let y=!0;d();const $=l++;return i.set($,m),function(){if(y){if(s)throw new Error(ve(6));y=!1,d(),i.delete($),a=null}}}function u(m){if(!L0(m))throw new Error(ve(7));if(typeof m.type>"u")throw new Error(ve(8));if(typeof m.type!="string")throw new Error(ve(17));if(s)throw new Error(ve(9));try{s=!0,n=t(n,m)}finally{s=!1}return(a=i).forEach($=>{$()}),m}function g(m){if(typeof m!="function")throw new Error(ve(10));t=m,u({type:at.REPLACE})}function h(){const m=c;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(ve(11));function $(){const P=y;P.next&&P.next(f())}return $(),{unsubscribe:m($)}},[tt](){return this}}}return u({type:at.INIT}),{dispatch:u,subscribe:c,getState:f,replaceReducer:g,[tt]:h}}function it(e,r){return function(...o){return r(e.apply(this,o))}}function lt(e,r){if(typeof e=="function")return it(e,r);if(typeof e!="object"||e===null)throw new Error(ve(16));const o={};for(const t in e){const n=e[t];typeof n=="function"&&(o[t]=it(n,r))}return o}function rn(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,o)=>(...t)=>r(o(...t)))}function F0(...e){return r=>(o,t)=>{const n=r(o,t);let a=()=>{throw new Error(ve(15))};const i={getState:n.getState,dispatch:(s,...d)=>a(s,...d)},l=e.map(s=>s(i));return a=rn(...l)(n.dispatch),{...n,dispatch:a}}}var eo={exports:{}},ro={};/**
|
|
38
|
-
* @license React
|
|
39
|
-
* use-sync-external-store-with-selector.production.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var st;function M0(){if(st)return ro;st=1;var e=Ba();function r(s,d){return s===d&&(s!==0||1/s===1/d)||s!==s&&d!==d}var o=typeof Object.is=="function"?Object.is:r,t=e.useSyncExternalStore,n=e.useRef,a=e.useEffect,i=e.useMemo,l=e.useDebugValue;return ro.useSyncExternalStoreWithSelector=function(s,d,f,c,u){var g=n(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=i(function(){function m(_){if(!y){if(y=!0,$=_,_=c(_),u!==void 0&&h.hasValue){var L=h.value;if(u(L,_))return A=L}return A=_}if(L=A,o($,_))return L;var j=c(_);return u!==void 0&&u(L,j)?($=_,L):($=_,A=j)}var y=!1,$,A,P=f===void 0?null:f;return[function(){return m(d())},P===null?void 0:function(){return m(P())}]},[d,f,c,u]);var p=t(s,g[0],g[1]);return a(function(){h.hasValue=!0,h.value=p},[p]),l(p),p},ro}var ct;function W0(){return ct||(ct=1,eo.exports=M0()),eo.exports}W0();var G0=F.version.startsWith("19"),H0=Symbol.for(G0?"react.transitional.element":"react.element"),j0=Symbol.for("react.portal"),U0=Symbol.for("react.fragment"),V0=Symbol.for("react.strict_mode"),q0=Symbol.for("react.profiler"),Y0=Symbol.for("react.consumer"),X0=Symbol.for("react.context"),on=Symbol.for("react.forward_ref"),J0=Symbol.for("react.suspense"),K0=Symbol.for("react.suspense_list"),Do=Symbol.for("react.memo"),Q0=Symbol.for("react.lazy"),Z0=on,eb=Do;function rb(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case H0:switch(e=e.type,e){case U0:case q0:case V0:case J0:case K0:return e;default:switch(e=e&&e.$$typeof,e){case X0:case on:case Q0:case Do:return e;case Y0:return e;default:return r}}case j0:return r}}}function ob(e){return rb(e)===Do}function tb(e,r,o,t,{areStatesEqual:n,areOwnPropsEqual:a,areStatePropsEqual:i}){let l=!1,s,d,f,c,u;function g($,A){return s=$,d=A,f=e(s,d),c=r(t,d),u=o(f,c,d),l=!0,u}function h(){return f=e(s,d),r.dependsOnOwnProps&&(c=r(t,d)),u=o(f,c,d),u}function p(){return e.dependsOnOwnProps&&(f=e(s,d)),r.dependsOnOwnProps&&(c=r(t,d)),u=o(f,c,d),u}function m(){const $=e(s,d),A=!i($,f);return f=$,A&&(u=o(f,c,d)),u}function y($,A){const P=!a(A,d),_=!n($,s,A,d);return s=$,d=A,P&&_?h():P?p():_?m():u}return function(A,P){return l?y(A,P):g(A,P)}}function nb(e,{initMapStateToProps:r,initMapDispatchToProps:o,initMergeProps:t,...n}){const a=r(e,n),i=o(e,n),l=t(e,n);return tb(a,i,l,e,n)}function ab(e,r){const o={};for(const t in e){const n=e[t];typeof n=="function"&&(o[t]=(...a)=>r(n(...a)))}return o}function vo(e){return function(o){const t=e(o);function n(){return t}return n.dependsOnOwnProps=!1,n}}function dt(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function tn(e,r){return function(t,{displayName:n}){const a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=dt(e);let d=a(l,s);return typeof d=="function"&&(a.mapToProps=d,a.dependsOnOwnProps=dt(d),d=a(l,s)),d},a}}function Eo(e,r){return(o,t)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${t.wrappedComponentName}.`)}}function ib(e){return e&&typeof e=="object"?vo(r=>ab(e,r)):e?typeof e=="function"?tn(e):Eo(e,"mapDispatchToProps"):vo(r=>({dispatch:r}))}function lb(e){return e?typeof e=="function"?tn(e):Eo(e,"mapStateToProps"):vo(()=>({}))}function sb(e,r,o){return{...o,...e,...r}}function cb(e){return function(o,{displayName:t,areMergedPropsEqual:n}){let a=!1,i;return function(s,d,f){const c=e(s,d,f);return a?n(c,i)||(i=c):(a=!0,i=c),i}}}function db(e){return e?typeof e=="function"?cb(e):Eo(e,"mergeProps"):()=>sb}function ub(e){e()}function fb(){let e=null,r=null;return{clear(){e=null,r=null},notify(){ub(()=>{let o=e;for(;o;)o.callback(),o=o.next})},get(){const o=[];let t=e;for(;t;)o.push(t),t=t.next;return o},subscribe(o){let t=!0;const n=r={callback:o,next:null,prev:r};return n.prev?n.prev.next=n:e=n,function(){!t||e===null||(t=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var ut={notify(){},get:()=>[]};function nn(e,r){let o,t=ut,n=0,a=!1;function i(p){f();const m=t.subscribe(p);let y=!1;return()=>{y||(y=!0,m(),c())}}function l(){t.notify()}function s(){h.onStateChange&&h.onStateChange()}function d(){return a}function f(){n++,o||(o=r?r.addNestedSub(s):e.subscribe(s),t=fb())}function c(){n--,o&&n===0&&(o(),o=void 0,t.clear(),t=ut)}function u(){a||(a=!0,f())}function g(){a&&(a=!1,c())}const h={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:d,trySubscribe:u,tryUnsubscribe:g,getListeners:()=>t};return h}var gb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pb=gb(),mb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bb=mb(),hb=()=>pb||bb?F.useLayoutEffect:F.useEffect,Pr=hb();function ft(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function oo(e,r){if(ft(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(r,o[n])||!ft(e[o[n]],r[o[n]]))return!1;return!0}var vb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},an={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kb={[Z0]:xb,[eb]:an};function gt(e){return ob(e)?an:kb[e.$$typeof]||vb}var wb=Object.defineProperty,Cb=Object.getOwnPropertyNames,pt=Object.getOwnPropertySymbols,$b=Object.getOwnPropertyDescriptor,Bb=Object.getPrototypeOf,mt=Object.prototype;function yo(e,r){if(typeof r!="string"){if(mt){const a=Bb(r);a&&a!==mt&&yo(e,a)}let o=Cb(r);pt&&(o=o.concat(pt(r)));const t=gt(e),n=gt(r);for(let a=0;a<o.length;++a){const i=o[a];if(!yb[i]&&!(n&&n[i])&&!(t&&t[i])){const l=$b(r,i);try{wb(e,i,l)}catch{}}}}return e}var to=Symbol.for("react-redux-context"),no=typeof globalThis<"u"?globalThis:{};function zb(){if(!F.createContext)return{};const e=no[to]??(no[to]=new Map);let r=e.get(F.createContext);return r||(r=F.createContext(null),e.set(F.createContext,r)),r}var ln=zb(),Sb=[null,null];function Rb(e,r,o){Pr(()=>e(...r),o)}function Db(e,r,o,t,n,a){e.current=t,o.current=!1,n.current&&(n.current=null,a())}function Eb(e,r,o,t,n,a,i,l,s,d,f){if(!e)return()=>{};let c=!1,u=null;const g=()=>{if(c||!l.current)return;const p=r.getState();let m,y;try{m=t(p,n.current)}catch($){y=$,u=$}y||(u=null),m===a.current?i.current||d():(a.current=m,s.current=m,i.current=!0,f())};return o.onStateChange=g,o.trySubscribe(),g(),()=>{if(c=!0,o.tryUnsubscribe(),o.onStateChange=null,u)throw u}}function Ib(e,r){return e===r}function Pb(e,r,o,{pure:t,areStatesEqual:n=Ib,areOwnPropsEqual:a=oo,areStatePropsEqual:i=oo,areMergedPropsEqual:l=oo,forwardRef:s=!1,context:d=ln}={}){const f=d,c=lb(e),u=ib(r),g=db(o),h=!!e;return m=>{const y=m.displayName||m.name||"Component",$=`Connect(${y})`,A={shouldHandleStateChanges:h,displayName:$,wrappedComponentName:y,WrappedComponent:m,initMapStateToProps:c,initMapDispatchToProps:u,initMergeProps:g,areStatesEqual:n,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:l};function P(j){const[q,re,Q]=F.useMemo(()=>{const{reactReduxForwardedRef:be,...nr}=j;return[j.context,be,nr]},[j]),V=F.useMemo(()=>{let be=f;return q!=null&&q.Consumer,be},[q,f]),D=F.useContext(V),E=!!j.store&&!!j.store.getState&&!!j.store.dispatch,b=!!D&&!!D.store,v=E?j.store:D.store,z=b?D.getServerState:v.getState,T=F.useMemo(()=>nb(v.dispatch,A),[v]),[k,x]=F.useMemo(()=>{if(!h)return Sb;const be=nn(v,E?void 0:D.subscription),nr=be.notifyNestedSubs.bind(be);return[be,nr]},[v,E,D]),C=F.useMemo(()=>E?D:{...D,subscription:k},[E,D,k]),M=F.useRef(void 0),G=F.useRef(Q),W=F.useRef(void 0),X=F.useRef(!1),Z=F.useRef(!1),ge=F.useRef(void 0);Pr(()=>(Z.current=!0,()=>{Z.current=!1}),[]);const ke=F.useMemo(()=>()=>W.current&&Q===G.current?W.current:T(v.getState(),Q),[v,Q]),me=F.useMemo(()=>nr=>k?Eb(h,v,k,T,G,M,X,Z,W,x,nr):()=>{},[k]);Rb(Db,[G,M,X,Q,W,x]);let Ce;try{Ce=F.useSyncExternalStore(me,ke,z?()=>T(z(),Q):ke)}catch(be){throw ge.current&&(be.message+=`
|
|
46
|
-
The error may be correlated with this previous error:
|
|
47
|
-
${ge.current.stack}
|
|
48
|
-
|
|
49
|
-
`),be}Pr(()=>{ge.current=void 0,W.current=void 0,M.current=Ce});const De=F.useMemo(()=>F.createElement(m,{...Ce,ref:re}),[re,m,Ce]);return F.useMemo(()=>h?F.createElement(V.Provider,{value:C},De):De,[V,De,C])}const L=F.memo(P);if(L.WrappedComponent=m,L.displayName=P.displayName=$,s){const q=F.forwardRef(function(Q,V){return F.createElement(L,{...Q,reactReduxForwardedRef:V})});return q.displayName=$,q.WrappedComponent=m,yo(q,m)}return yo(L,m)}}var sn=Pb;function Ab(e){const{children:r,context:o,serverState:t,store:n}=e,a=F.useMemo(()=>{const s=nn(n);return{store:n,subscription:s,getServerState:t?()=>t:void 0}},[n,t]),i=F.useMemo(()=>n.getState(),[n]);Pr(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==n.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,i]);const l=o||ln;return F.createElement(l.Provider,{value:a},r)}var Ob=Ab,Tb="Invariant failed";function Nb(e,r){throw new Error(Tb)}var Oe=function(r){var o=r.top,t=r.right,n=r.bottom,a=r.left,i=t-a,l=n-o,s={top:o,right:t,bottom:n,left:a,width:i,height:l,x:a,y:o,center:{x:(t+a)/2,y:(n+o)/2}};return s},Io=function(r,o){return{top:r.top-o.top,left:r.left-o.left,bottom:r.bottom+o.bottom,right:r.right+o.right}},bt=function(r,o){return{top:r.top+o.top,left:r.left+o.left,bottom:r.bottom-o.bottom,right:r.right-o.right}},_b=function(r,o){return{top:r.top+o.y,left:r.left+o.x,bottom:r.bottom+o.y,right:r.right+o.x}},ao={top:0,right:0,bottom:0,left:0},Po=function(r){var o=r.borderBox,t=r.margin,n=t===void 0?ao:t,a=r.border,i=a===void 0?ao:a,l=r.padding,s=l===void 0?ao:l,d=Oe(Io(o,n)),f=Oe(bt(o,i)),c=Oe(bt(f,s));return{marginBox:d,borderBox:Oe(o),paddingBox:f,contentBox:c,margin:n,border:i,padding:s}},Ee=function(r){var o=r.slice(0,-2),t=r.slice(-2);if(t!=="px")return 0;var n=Number(o);return isNaN(n)&&Nb(),n},Lb=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Ar=function(r,o){var t=r.borderBox,n=r.border,a=r.margin,i=r.padding,l=_b(t,o);return Po({borderBox:l,border:n,margin:a,padding:i})},Or=function(r,o){return o===void 0&&(o=Lb()),Ar(r,o)},cn=function(r,o){var t={top:Ee(o.marginTop),right:Ee(o.marginRight),bottom:Ee(o.marginBottom),left:Ee(o.marginLeft)},n={top:Ee(o.paddingTop),right:Ee(o.paddingRight),bottom:Ee(o.paddingBottom),left:Ee(o.paddingLeft)},a={top:Ee(o.borderTopWidth),right:Ee(o.borderRightWidth),bottom:Ee(o.borderBottomWidth),left:Ee(o.borderLeftWidth)};return Po({borderBox:r,margin:t,padding:n,border:a})},dn=function(r){var o=r.getBoundingClientRect(),t=window.getComputedStyle(r);return cn(o,t)},gr=function(r){var o=[],t=null,n=function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];o=l,!t&&(t=requestAnimationFrame(function(){t=null,r.apply(void 0,o)}))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tr.apply(null,arguments)}function un(e,r){}un.bind(null,"warn");un.bind(null,"error");function Me(){}function Fb(e,r){return{...e,...r}}function Ie(e,r,o){const t=r.map(n=>{const a=Fb(o,n.options);return e.addEventListener(n.eventName,n.fn,a),function(){e.removeEventListener(n.eventName,n.fn,a)}});return function(){t.forEach(a=>{a()})}}const Mb="Invariant failed";class Nr extends Error{}Nr.prototype.toString=function(){return this.message};function I(e,r){throw new Nr(Mb)}class Wb extends U.Component{constructor(...r){super(...r),this.callbacks=null,this.unbind=Me,this.onWindowError=o=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),o.error instanceof Nr&&o.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=o=>{this.callbacks=o}}componentDidMount(){this.unbind=Ie(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(r){if(r instanceof Nr){this.setState({});return}throw r}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Gb=`
|
|
50
|
-
Press space bar to start a drag.
|
|
51
|
-
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
52
|
-
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
53
|
-
`,_r=e=>e+1,Hb=e=>`
|
|
54
|
-
You have lifted an item in position ${_r(e.source.index)}
|
|
55
|
-
`,fn=(e,r)=>{const o=e.droppableId===r.droppableId,t=_r(e.index),n=_r(r.index);return o?`
|
|
56
|
-
You have moved the item from position ${t}
|
|
57
|
-
to position ${n}
|
|
58
|
-
`:`
|
|
59
|
-
You have moved the item from position ${t}
|
|
60
|
-
in list ${e.droppableId}
|
|
61
|
-
to list ${r.droppableId}
|
|
62
|
-
in position ${n}
|
|
63
|
-
`},gn=(e,r,o)=>r.droppableId===o.droppableId?`
|
|
64
|
-
The item ${e}
|
|
65
|
-
has been combined with ${o.draggableId}`:`
|
|
66
|
-
The item ${e}
|
|
67
|
-
in list ${r.droppableId}
|
|
68
|
-
has been combined with ${o.draggableId}
|
|
69
|
-
in list ${o.droppableId}
|
|
70
|
-
`,jb=e=>{const r=e.destination;if(r)return fn(e.source,r);const o=e.combine;return o?gn(e.draggableId,e.source,o):"You are over an area that cannot be dropped on"},ht=e=>`
|
|
71
|
-
The item has returned to its starting position
|
|
72
|
-
of ${_r(e.index)}
|
|
73
|
-
`,Ub=e=>{if(e.reason==="CANCEL")return`
|
|
74
|
-
Movement cancelled.
|
|
75
|
-
${ht(e.source)}
|
|
76
|
-
`;const r=e.destination,o=e.combine;return r?`
|
|
77
|
-
You have dropped the item.
|
|
78
|
-
${fn(e.source,r)}
|
|
79
|
-
`:o?`
|
|
80
|
-
You have dropped the item.
|
|
81
|
-
${gn(e.draggableId,e.source,o)}
|
|
82
|
-
`:`
|
|
83
|
-
The item has been dropped while not over a drop area.
|
|
84
|
-
${ht(e.source)}
|
|
85
|
-
`},Ir={dragHandleUsageInstructions:Gb,onDragStart:Hb,onDragUpdate:jb,onDragEnd:Ub};function Vb(e,r){return!!(e===r||Number.isNaN(e)&&Number.isNaN(r))}function pn(e,r){if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++)if(!Vb(e[o],r[o]))return!1;return!0}function oe(e,r){const o=F.useState(()=>({inputs:r,result:e()}))[0],t=F.useRef(!0),n=F.useRef(o),i=t.current||!!(r&&n.current.inputs&&pn(r,n.current.inputs))?n.current:{inputs:r,result:e()};return F.useEffect(()=>{t.current=!1,n.current=i},[i]),i.result}function H(e,r){return oe(()=>e,r)}const fe={x:0,y:0},pe=(e,r)=>({x:e.x+r.x,y:e.y+r.y}),Be=(e,r)=>({x:e.x-r.x,y:e.y-r.y}),We=(e,r)=>e.x===r.x&&e.y===r.y,rr=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ye=(e,r,o=0)=>e==="x"?{x:r,y:o}:{x:o,y:r},pr=(e,r)=>Math.sqrt((r.x-e.x)**2+(r.y-e.y)**2),vt=(e,r)=>Math.min(...r.map(o=>pr(e,o))),mn=e=>r=>({x:e(r.x),y:e(r.y)});var qb=(e,r)=>{const o=Oe({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return o.width<=0||o.height<=0?null:o};const kr=(e,r)=>({top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}),yt=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Yb={top:0,right:0,bottom:0,left:0},Xb=(e,r)=>r?kr(e,r.scroll.diff.displacement):e,Jb=(e,r,o)=>o&&o.increasedBy?{...e,[r.end]:e[r.end]+o.increasedBy[r.line]}:e,Kb=(e,r)=>r&&r.shouldClipSubject?qb(r.pageMarginBox,e):Oe(e);var Je=({page:e,withPlaceholder:r,axis:o,frame:t})=>{const n=Xb(e.marginBox,t),a=Jb(n,o,r),i=Kb(a,t);return{page:e,withPlaceholder:r,active:i}},Ao=(e,r)=>{e.frame||I();const o=e.frame,t=Be(r,o.scroll.initial),n=rr(t),a={...o,scroll:{initial:o.scroll.initial,current:r,diff:{value:t,displacement:n},max:o.scroll.max}},i=Je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};function ue(e,r=pn){let o=null;function t(...n){if(o&&o.lastThis===this&&r(n,o.lastArgs))return o.lastResult;const a=e.apply(this,n);return o={lastResult:a,lastArgs:n,lastThis:this},a}return t.clear=function(){o=null},t}const bn=ue(e=>e.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),hn=ue(e=>e.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),Ur=ue(e=>Object.values(e)),Qb=ue(e=>Object.values(e));var or=ue((e,r)=>Qb(r).filter(t=>e===t.descriptor.droppableId).sort((t,n)=>t.descriptor.index-n.descriptor.index));function Oo(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vr(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var qr=ue((e,r)=>r.filter(o=>o.descriptor.id!==e.descriptor.id)),Zb=({isMovingForward:e,draggable:r,destination:o,insideDestination:t,previousImpact:n})=>{if(!o.isCombineEnabled||!Oo(n))return null;function i(g){const h={type:"COMBINE",combine:{draggableId:g,droppableId:o.descriptor.id}};return{...n,at:h}}const l=n.displaced.all,s=l.length?l[0]:null;if(e)return s?i(s):null;const d=qr(r,t);if(!s){if(!d.length)return null;const g=d[d.length-1];return i(g.descriptor.id)}const f=d.findIndex(g=>g.descriptor.id===s);f===-1&&I();const c=f-1;if(c<0)return null;const u=d[c];return i(u.descriptor.id)},tr=(e,r)=>e.descriptor.droppableId===r.descriptor.id;const vn={point:fe,value:0},mr={invisible:{},visible:{},all:[]},eh={displaced:mr,displacedBy:vn,at:null};var Pe=(e,r)=>o=>e<=o&&o<=r,yn=e=>{const r=Pe(e.top,e.bottom),o=Pe(e.left,e.right);return t=>{if(r(t.top)&&r(t.bottom)&&o(t.left)&&o(t.right))return!0;const a=r(t.top)||r(t.bottom),i=o(t.left)||o(t.right);if(a&&i)return!0;const s=t.top<e.top&&t.bottom>e.bottom,d=t.left<e.left&&t.right>e.right;return s&&d?!0:s&&i||d&&a}},rh=e=>{const r=Pe(e.top,e.bottom),o=Pe(e.left,e.right);return t=>r(t.top)&&r(t.bottom)&&o(t.left)&&o(t.right)};const To={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var oh=e=>r=>{const o=Pe(r.top,r.bottom),t=Pe(r.left,r.right);return n=>e===To?o(n.top)&&o(n.bottom):t(n.left)&&t(n.right)};const th=(e,r)=>{const o=r.frame?r.frame.scroll.diff.displacement:fe;return kr(e,o)},nh=(e,r,o)=>r.subject.active?o(r.subject.active)(e):!1,ah=(e,r,o)=>o(r)(e),No=({target:e,destination:r,viewport:o,withDroppableDisplacement:t,isVisibleThroughFrameFn:n})=>{const a=t?th(e,r):e;return nh(a,r,n)&&ah(a,o,n)},ih=e=>No({...e,isVisibleThroughFrameFn:yn}),kn=e=>No({...e,isVisibleThroughFrameFn:rh}),lh=e=>No({...e,isVisibleThroughFrameFn:oh(e.destination.axis)}),sh=(e,r,o)=>{if(typeof o=="boolean")return o;if(!r)return!0;const{invisible:t,visible:n}=r;if(t[e])return!1;const a=n[e];return a?a.shouldAnimate:!0};function ch(e,r){const o=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return Oe(Io(o,t))}function br({afterDragging:e,destination:r,displacedBy:o,viewport:t,forceShouldAnimate:n,last:a}){return e.reduce(function(l,s){const d=ch(s,o),f=s.descriptor.id;if(l.all.push(f),!ih({target:d,destination:r,viewport:t,withDroppableDisplacement:!0}))return l.invisible[s.descriptor.id]=!0,l;const u=sh(f,a,n),g={draggableId:f,shouldAnimate:u};return l.visible[f]=g,l},{all:[],visible:{},invisible:{}})}function dh(e,r){if(!e.length)return 0;const o=e[e.length-1].descriptor.index;return r.inHomeList?o:o+1}function xt({insideDestination:e,inHomeList:r,displacedBy:o,destination:t}){const n=dh(e,{inHomeList:r});return{displaced:mr,displacedBy:o,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:n}}}}function Lr({draggable:e,insideDestination:r,destination:o,viewport:t,displacedBy:n,last:a,index:i,forceShouldAnimate:l}){const s=tr(e,o);if(i==null)return xt({insideDestination:r,inHomeList:s,displacedBy:n,destination:o});const d=r.find(h=>h.descriptor.index===i);if(!d)return xt({insideDestination:r,inHomeList:s,displacedBy:n,destination:o});const f=qr(e,r),c=r.indexOf(d),u=f.slice(c);return{displaced:br({afterDragging:u,destination:o,displacedBy:n,last:a,viewport:t.frame,forceShouldAnimate:l}),displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Ge(e,r){return!!r.effected[e]}var uh=({isMovingForward:e,destination:r,draggables:o,combine:t,afterCritical:n})=>{if(!r.isCombineEnabled)return null;const a=t.draggableId,l=o[a].descriptor.index;return Ge(a,n)?e?l:l-1:e?l+1:l},fh=({isMovingForward:e,isInHomeList:r,insideDestination:o,location:t})=>{if(!o.length)return null;const n=t.index,a=e?n+1:n-1,i=o[0].descriptor.index,l=o[o.length-1].descriptor.index,s=r?l:l+1;return a<i||a>s?null:a},gh=({isMovingForward:e,isInHomeList:r,draggable:o,draggables:t,destination:n,insideDestination:a,previousImpact:i,viewport:l,afterCritical:s})=>{const d=i.at;if(d||I(),d.type==="REORDER"){const c=fh({isMovingForward:e,isInHomeList:r,location:d.destination,insideDestination:a});return c==null?null:Lr({draggable:o,insideDestination:a,destination:n,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:c})}const f=uh({isMovingForward:e,destination:n,displaced:i.displaced,draggables:t,combine:d.combine,afterCritical:s});return f==null?null:Lr({draggable:o,insideDestination:a,destination:n,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:f})},ph=({displaced:e,afterCritical:r,combineWith:o,displacedBy:t})=>{const n=!!(e.visible[o]||e.invisible[o]);return Ge(o,r)?n?fe:rr(t.point):n?t.point:fe},mh=({afterCritical:e,impact:r,draggables:o})=>{const t=Vr(r);t||I();const n=t.draggableId,a=o[n].page.borderBox.center,i=ph({displaced:r.displaced,afterCritical:e,combineWith:n,displacedBy:r.displacedBy});return pe(a,i)};const wn=(e,r)=>r.margin[e.start]+r.borderBox[e.size]/2,bh=(e,r)=>r.margin[e.end]+r.borderBox[e.size]/2,_o=(e,r,o)=>r[e.crossAxisStart]+o.margin[e.crossAxisStart]+o.borderBox[e.crossAxisSize]/2,kt=({axis:e,moveRelativeTo:r,isMoving:o})=>Ye(e.line,r.marginBox[e.end]+wn(e,o),_o(e,r.marginBox,o)),wt=({axis:e,moveRelativeTo:r,isMoving:o})=>Ye(e.line,r.marginBox[e.start]-bh(e,o),_o(e,r.marginBox,o)),hh=({axis:e,moveInto:r,isMoving:o})=>Ye(e.line,r.contentBox[e.start]+wn(e,o),_o(e,r.contentBox,o));var vh=({impact:e,draggable:r,draggables:o,droppable:t,afterCritical:n})=>{const a=or(t.descriptor.id,o),i=r.page,l=t.axis;if(!a.length)return hh({axis:l,moveInto:t.page,isMoving:i});const{displaced:s,displacedBy:d}=e,f=s.all[0];if(f){const u=o[f];if(Ge(f,n))return wt({axis:l,moveRelativeTo:u.page,isMoving:i});const g=Ar(u.page,d.point);return wt({axis:l,moveRelativeTo:g,isMoving:i})}const c=a[a.length-1];if(c.descriptor.id===r.descriptor.id)return i.borderBox.center;if(Ge(c.descriptor.id,n)){const u=Ar(c.page,rr(n.displacedBy.point));return kt({axis:l,moveRelativeTo:u,isMoving:i})}return kt({axis:l,moveRelativeTo:c.page,isMoving:i})},xo=(e,r)=>{const o=e.frame;return o?pe(r,o.scroll.diff.displacement):r};const yh=({impact:e,draggable:r,droppable:o,draggables:t,afterCritical:n})=>{const a=r.page.borderBox.center,i=e.at;return!o||!i?a:i.type==="REORDER"?vh({impact:e,draggable:r,draggables:t,droppable:o,afterCritical:n}):mh({impact:e,draggables:t,afterCritical:n})};var Yr=e=>{const r=yh(e),o=e.droppable;return o?xo(o,r):r},Cn=(e,r)=>{const o=Be(r,e.scroll.initial),t=rr(o);return{frame:Oe({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:o,displacement:t}}}};function Ct(e,r){return e.map(o=>r[o])}function xh(e,r){for(let o=0;o<r.length;o++){const t=r[o].visible[e];if(t)return t}return null}var kh=({impact:e,viewport:r,destination:o,draggables:t,maxScrollChange:n})=>{const a=Cn(r,pe(r.scroll.current,n)),i=o.frame?Ao(o,pe(o.frame.scroll.current,n)):o,l=e.displaced,s=br({afterDragging:Ct(l.all,t),destination:o,displacedBy:e.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),d=br({afterDragging:Ct(l.all,t),destination:i,displacedBy:e.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),f={},c={},u=[l,s,d];return l.all.forEach(h=>{const p=xh(h,u);if(p){c[h]=p;return}f[h]=!0}),{...e,displaced:{all:l.all,invisible:f,visible:c}}},wh=(e,r)=>pe(e.scroll.diff.displacement,r),Lo=({pageBorderBoxCenter:e,draggable:r,viewport:o})=>{const t=wh(o,e),n=Be(t,r.page.borderBox.center);return pe(r.client.borderBox.center,n)},$n=({draggable:e,destination:r,newPageBorderBoxCenter:o,viewport:t,withDroppableDisplacement:n,onlyOnMainAxis:a=!1})=>{const i=Be(o,e.page.borderBox.center),s={target:kr(e.page.borderBox,i),destination:r,withDroppableDisplacement:n,viewport:t};return a?lh(s):kn(s)},Ch=({isMovingForward:e,draggable:r,destination:o,draggables:t,previousImpact:n,viewport:a,previousPageBorderBoxCenter:i,previousClientSelection:l,afterCritical:s})=>{if(!o.isEnabled)return null;const d=or(o.descriptor.id,t),f=tr(r,o),c=Zb({isMovingForward:e,draggable:r,destination:o,insideDestination:d,previousImpact:n})||gh({isMovingForward:e,isInHomeList:f,draggable:r,draggables:t,destination:o,insideDestination:d,previousImpact:n,viewport:a,afterCritical:s});if(!c)return null;const u=Yr({impact:c,draggable:r,droppable:o,draggables:t,afterCritical:s});if($n({draggable:r,destination:o,newPageBorderBoxCenter:u,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Lo({pageBorderBoxCenter:u,draggable:r,viewport:a}),impact:c,scrollJumpRequest:null};const h=Be(u,i),p=kh({impact:c,viewport:a,destination:o,draggables:t,maxScrollChange:h});return{clientSelection:l,impact:p,scrollJumpRequest:h}};const he=e=>{const r=e.subject.active;return r||I(),r};var $h=({isMovingForward:e,pageBorderBoxCenter:r,source:o,droppables:t,viewport:n})=>{const a=o.subject.active;if(!a)return null;const i=o.axis,l=Pe(a[i.start],a[i.end]),s=Ur(t).filter(f=>f!==o).filter(f=>f.isEnabled).filter(f=>!!f.subject.active).filter(f=>yn(n.frame)(he(f))).filter(f=>{const c=he(f);return e?a[i.crossAxisEnd]<c[i.crossAxisEnd]:c[i.crossAxisStart]<a[i.crossAxisStart]}).filter(f=>{const c=he(f),u=Pe(c[i.start],c[i.end]);return l(c[i.start])||l(c[i.end])||u(a[i.start])||u(a[i.end])}).sort((f,c)=>{const u=he(f)[i.crossAxisStart],g=he(c)[i.crossAxisStart];return e?u-g:g-u}).filter((f,c,u)=>he(f)[i.crossAxisStart]===he(u[0])[i.crossAxisStart]);if(!s.length)return null;if(s.length===1)return s[0];const d=s.filter(f=>Pe(he(f)[i.start],he(f)[i.end])(r[i.line]));return d.length===1?d[0]:d.length>1?d.sort((f,c)=>he(f)[i.start]-he(c)[i.start])[0]:s.sort((f,c)=>{const u=vt(r,yt(he(f))),g=vt(r,yt(he(c)));return u!==g?u-g:he(f)[i.start]-he(c)[i.start]})[0]};const $t=(e,r)=>{const o=e.page.borderBox.center;return Ge(e.descriptor.id,r)?Be(o,r.displacedBy.point):o},Bh=(e,r)=>{const o=e.page.borderBox;return Ge(e.descriptor.id,r)?kr(o,rr(r.displacedBy.point)):o};var zh=({pageBorderBoxCenter:e,viewport:r,destination:o,insideDestination:t,afterCritical:n})=>t.filter(i=>kn({target:Bh(i,n),destination:o,viewport:r.frame,withDroppableDisplacement:!0})).sort((i,l)=>{const s=pr(e,xo(o,$t(i,n))),d=pr(e,xo(o,$t(l,n)));return s<d?-1:d<s?1:i.descriptor.index-l.descriptor.index})[0]||null,wr=ue(function(r,o){const t=o[r.line];return{value:t,point:Ye(r.line,t)}});const Sh=(e,r,o)=>{const t=e.axis;if(e.descriptor.mode==="virtual")return Ye(t.line,r[t.line]);const n=e.subject.page.contentBox[t.size],s=or(e.descriptor.id,o).reduce((d,f)=>d+f.client.marginBox[t.size],0)+r[t.line]-n;return s<=0?null:Ye(t.line,s)},Bn=(e,r)=>({...e,scroll:{...e.scroll,max:r}}),zn=(e,r,o)=>{const t=e.frame;tr(r,e)&&I(),e.subject.withPlaceholder&&I();const n=wr(e.axis,r.displaceBy).point,a=Sh(e,n,o),i={placeholderSize:n,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!t){const f=Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:f}}const l=a?pe(t.scroll.max,a):t.scroll.max,s=Bn(t,l),d=Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:d,frame:s}},Rh=e=>{const r=e.subject.withPlaceholder;r||I();const o=e.frame;if(!o){const i=Je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:i}}const t=r.oldFrameMaxScroll;t||I();const n=Bn(o,t),a=Je({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null});return{...e,subject:a,frame:n}};var Dh=({previousPageBorderBoxCenter:e,moveRelativeTo:r,insideDestination:o,draggable:t,draggables:n,destination:a,viewport:i,afterCritical:l})=>{if(!r){if(o.length)return null;const c={displaced:mr,displacedBy:vn,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Yr({impact:c,draggable:t,droppable:a,draggables:n,afterCritical:l}),g=tr(t,a)?a:zn(a,t,n);return $n({draggable:t,destination:g,newPageBorderBoxCenter:u,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}const s=e[a.axis.line]<=r.page.borderBox.center[a.axis.line],d=(()=>{const c=r.descriptor.index;return r.descriptor.id===t.descriptor.id||s?c:c+1})(),f=wr(a.axis,t.displaceBy);return Lr({draggable:t,insideDestination:o,destination:a,viewport:i,displacedBy:f,last:mr,index:d})},Eh=({isMovingForward:e,previousPageBorderBoxCenter:r,draggable:o,isOver:t,draggables:n,droppables:a,viewport:i,afterCritical:l})=>{const s=$h({isMovingForward:e,pageBorderBoxCenter:r,source:t,droppables:a,viewport:i});if(!s)return null;const d=or(s.descriptor.id,n),f=zh({pageBorderBoxCenter:r,viewport:i,destination:s,insideDestination:d,afterCritical:l}),c=Dh({previousPageBorderBoxCenter:r,destination:s,draggable:o,draggables:n,moveRelativeTo:f,insideDestination:d,viewport:i,afterCritical:l});if(!c)return null;const u=Yr({impact:c,draggable:o,droppable:s,draggables:n,afterCritical:l});return{clientSelection:Lo({pageBorderBoxCenter:u,draggable:o,viewport:i}),impact:c,scrollJumpRequest:null}},ze=e=>{const r=e.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null};const Ih=(e,r)=>{const o=ze(e);return o?r[o]:null};var Ph=({state:e,type:r})=>{const o=Ih(e.impact,e.dimensions.droppables),t=!!o,n=e.dimensions.droppables[e.critical.droppable.id],a=o||n,i=a.axis.direction,l=i==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||i==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!t)return null;const s=r==="MOVE_DOWN"||r==="MOVE_RIGHT",d=e.dimensions.draggables[e.critical.draggable.id],f=e.current.page.borderBoxCenter,{draggables:c,droppables:u}=e.dimensions;return l?Ch({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:d,destination:a,draggables:c,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Eh({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:d,isOver:a,draggables:c,droppables:u,viewport:e.viewport,afterCritical:e.afterCritical})};function Ve(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Sn(e){const r=Pe(e.top,e.bottom),o=Pe(e.left,e.right);return function(n){return r(n.y)&&o(n.x)}}function Ah(e,r){return e.left<r.right&&e.right>r.left&&e.top<r.bottom&&e.bottom>r.top}function Oh({pageBorderBox:e,draggable:r,candidates:o}){const t=r.page.borderBox.center,n=o.map(a=>{const i=a.axis,l=Ye(a.axis.line,e.center[i.line],a.page.borderBox.center[i.crossAxisLine]);return{id:a.descriptor.id,distance:pr(t,l)}}).sort((a,i)=>i.distance-a.distance);return n[0]?n[0].id:null}function Th({pageBorderBox:e,draggable:r,droppables:o}){const t=Ur(o).filter(n=>{if(!n.isEnabled)return!1;const a=n.subject.active;if(!a||!Ah(e,a))return!1;if(Sn(a)(e.center))return!0;const i=n.axis,l=a.center[i.crossAxisLine],s=e[i.crossAxisStart],d=e[i.crossAxisEnd],f=Pe(a[i.crossAxisStart],a[i.crossAxisEnd]),c=f(s),u=f(d);return!c&&!u?!0:c?s<l:d>l});return t.length?t.length===1?t[0].descriptor.id:Oh({pageBorderBox:e,draggable:r,candidates:t}):null}const Rn=(e,r)=>Oe(kr(e,r));var Nh=(e,r)=>{const o=e.frame;return o?Rn(r,o.scroll.diff.value):r};function Dn({displaced:e,id:r}){return!!(e.visible[r]||e.invisible[r])}function _h({draggable:e,closest:r,inHomeList:o}){return r?o&&r.descriptor.index>e.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var Lh=({pageBorderBoxWithDroppableScroll:e,draggable:r,destination:o,insideDestination:t,last:n,viewport:a,afterCritical:i})=>{const l=o.axis,s=wr(o.axis,r.displaceBy),d=s.value,f=e[l.start],c=e[l.end],g=qr(r,t).find(p=>{const m=p.descriptor.id,y=p.page.borderBox.center[l.line],$=Ge(m,i),A=Dn({displaced:n,id:m});return $?A?c<=y:f<y-d:A?c<=y+d:f<y})||null,h=_h({draggable:r,closest:g,inHomeList:tr(r,o)});return Lr({draggable:r,insideDestination:t,destination:o,viewport:a,last:n,displacedBy:s,index:h})};const Fh=4;var Mh=({draggable:e,pageBorderBoxWithDroppableScroll:r,previousImpact:o,destination:t,insideDestination:n,afterCritical:a})=>{if(!t.isCombineEnabled)return null;const i=t.axis,l=wr(t.axis,e.displaceBy),s=l.value,d=r[i.start],f=r[i.end],u=qr(e,n).find(h=>{const p=h.descriptor.id,m=h.page.borderBox,$=m[i.size]/Fh,A=Ge(p,a),P=Dn({displaced:o.displaced,id:p});return A?P?f>m[i.start]+$&&f<m[i.end]-$:d>m[i.start]-s+$&&d<m[i.end]-s-$:P?f>m[i.start]+s+$&&f<m[i.end]+s-$:d>m[i.start]+$&&d<m[i.end]-$});return u?{displacedBy:l,displaced:o.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:t.descriptor.id}}}:null},En=({pageOffset:e,draggable:r,draggables:o,droppables:t,previousImpact:n,viewport:a,afterCritical:i})=>{const l=Rn(r.page.borderBox,e),s=Th({pageBorderBox:l,draggable:r,droppables:t});if(!s)return eh;const d=t[s],f=or(d.descriptor.id,o),c=Nh(d,l);return Mh({pageBorderBoxWithDroppableScroll:c,draggable:r,previousImpact:n,destination:d,insideDestination:f,afterCritical:i})||Lh({pageBorderBoxWithDroppableScroll:c,draggable:r,destination:d,insideDestination:f,last:n.displaced,viewport:a,afterCritical:i})},Fo=(e,r)=>({...e,[r.descriptor.id]:r});const Wh=({previousImpact:e,impact:r,droppables:o})=>{const t=ze(e),n=ze(r);if(!t||t===n)return o;const a=o[t];if(!a.subject.withPlaceholder)return o;const i=Rh(a);return Fo(o,i)};var Gh=({draggable:e,draggables:r,droppables:o,previousImpact:t,impact:n})=>{const a=Wh({previousImpact:t,impact:n,droppables:o}),i=ze(n);if(!i)return a;const l=o[i];if(tr(e,l)||l.subject.withPlaceholder)return a;const s=zn(l,e,r);return Fo(a,s)},dr=({state:e,clientSelection:r,dimensions:o,viewport:t,impact:n,scrollJumpRequest:a})=>{const i=t||e.viewport,l=o||e.dimensions,s=r||e.current.client.selection,d=Be(s,e.initial.client.selection),f={offset:d,selection:s,borderBoxCenter:pe(e.initial.client.borderBoxCenter,d)},c={selection:pe(f.selection,i.scroll.current),borderBoxCenter:pe(f.borderBoxCenter,i.scroll.current),offset:pe(f.offset,i.scroll.diff.value)},u={client:f,page:c};if(e.phase==="COLLECTING")return{...e,dimensions:l,viewport:i,current:u};const g=l.draggables[e.critical.draggable.id],h=n||En({pageOffset:c.offset,draggable:g,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),p=Gh({draggable:g,impact:h,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:u,dimensions:{draggables:l.draggables,droppables:p},impact:h,viewport:i,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function Hh(e,r){return e.map(o=>r[o])}var In=({impact:e,viewport:r,draggables:o,destination:t,forceShouldAnimate:n})=>{const a=e.displaced,i=Hh(a.all,o),l=br({afterDragging:i,destination:t,displacedBy:e.displacedBy,viewport:r.frame,forceShouldAnimate:n,last:a});return{...e,displaced:l}},Pn=({impact:e,draggable:r,droppable:o,draggables:t,viewport:n,afterCritical:a})=>{const i=Yr({impact:e,draggable:r,draggables:t,droppable:o,afterCritical:a});return Lo({pageBorderBoxCenter:i,draggable:r,viewport:n})},An=({state:e,dimensions:r,viewport:o})=>{e.movementMode!=="SNAP"&&I();const t=e.impact,n=o||e.viewport,a=r||e.dimensions,{draggables:i,droppables:l}=a,s=i[e.critical.draggable.id],d=ze(t);d||I();const f=l[d],c=In({impact:t,viewport:n,destination:f,draggables:i}),u=Pn({impact:c,draggable:s,droppable:f,draggables:i,viewport:n,afterCritical:e.afterCritical});return dr({impact:c,clientSelection:u,state:e,dimensions:a,viewport:n})},jh=e=>({index:e.index,droppableId:e.droppableId}),On=({draggable:e,home:r,draggables:o,viewport:t})=>{const n=wr(r.axis,e.displaceBy),a=or(r.descriptor.id,o),i=a.indexOf(e);i===-1&&I();const l=a.slice(i+1),s=l.reduce((u,g)=>(u[g.descriptor.id]=!0,u),{}),d={inVirtualList:r.descriptor.mode==="virtual",displacedBy:n,effected:s};return{impact:{displaced:br({afterDragging:l,destination:r,displacedBy:n,last:null,viewport:t.frame,forceShouldAnimate:!1}),displacedBy:n,at:{type:"REORDER",destination:jh(e.descriptor)}},afterCritical:d}},Uh=(e,r)=>({draggables:e.draggables,droppables:Fo(e.droppables,r)}),Vh=({draggable:e,offset:r,initialWindowScroll:o})=>{const t=Ar(e.client,r),n=Or(t,o);return{...e,placeholder:{...e.placeholder,client:t},client:t,page:n}},qh=e=>{const r=e.frame;return r||I(),r},Yh=({additions:e,updatedDroppables:r,viewport:o})=>{const t=o.scroll.diff.value;return e.map(n=>{const a=n.descriptor.droppableId,i=r[a],s=qh(i).scroll.diff.value,d=pe(t,s);return Vh({draggable:n,offset:d,initialWindowScroll:o.scroll.initial})})},Xh=({state:e,published:r})=>{const o=r.modified.map(y=>{const $=e.dimensions.droppables[y.droppableId];return Ao($,y.scroll)}),t={...e.dimensions.droppables,...bn(o)},n=hn(Yh({additions:r.additions,updatedDroppables:t,viewport:e.viewport})),a={...e.dimensions.draggables,...n};r.removals.forEach(y=>{delete a[y]});const i={droppables:t,draggables:a},l=ze(e.impact),s=l?i.droppables[l]:null,d=i.draggables[e.critical.draggable.id],f=i.droppables[e.critical.droppable.id],{impact:c,afterCritical:u}=On({draggable:d,home:f,draggables:a,viewport:e.viewport}),g=s&&s.isCombineEnabled?e.impact:c,h=En({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:g,viewport:e.viewport,afterCritical:u}),p={...e,phase:"DRAGGING",impact:h,onLiftImpact:c,dimensions:i,afterCritical:u,forceShouldAnimate:!1};return e.phase==="COLLECTING"?p:{...p,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const ko=e=>e.movementMode==="SNAP",io=(e,r,o)=>{const t=Uh(e.dimensions,r);return!ko(e)||o?dr({state:e,dimensions:t}):An({state:e,dimensions:t})};function lo(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const Bt={phase:"IDLE",completed:null,shouldFlush:!1};var Jh=(e=Bt,r)=>{if(r.type==="FLUSH")return{...Bt,shouldFlush:!0};if(r.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&I();const{critical:o,clientSelection:t,viewport:n,dimensions:a,movementMode:i}=r.payload,l=a.draggables[o.draggable.id],s=a.droppables[o.droppable.id],d={selection:t,borderBoxCenter:l.client.borderBox.center,offset:fe},f={client:d,page:{selection:pe(d.selection,n.scroll.initial),borderBoxCenter:pe(d.selection,n.scroll.initial),offset:pe(d.selection,n.scroll.diff.value)}},c=Ur(a.droppables).every(p=>!p.isFixedOnPage),{impact:u,afterCritical:g}=On({draggable:l,home:s,draggables:a.draggables,viewport:n});return{phase:"DRAGGING",isDragging:!0,critical:o,movementMode:i,dimensions:a,initial:f,current:f,isWindowScrollAllowed:c,impact:u,afterCritical:g,onLiftImpact:u,viewport:n,scrollJumpRequest:null,forceShouldAnimate:null}}if(r.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&I(),{...e,phase:"COLLECTING"});if(r.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||I(),Xh({state:e,published:r.payload});if(r.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ve(e)||I();const{client:o}=r.payload;return We(o,e.current.client.selection)?e:dr({state:e,clientSelection:o,impact:ko(e)?e.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return lo(e);Ve(e)||I();const{id:o,newScroll:t}=r.payload,n=e.dimensions.droppables[o];if(!n)return e;const a=Ao(n,t);return io(e,a,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ve(e)||I();const{id:o,isEnabled:t}=r.payload,n=e.dimensions.droppables[o];n||I(),n.isEnabled===t&&I();const a={...n,isEnabled:t};return io(e,a,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ve(e)||I();const{id:o,isCombineEnabled:t}=r.payload,n=e.dimensions.droppables[o];n||I(),n.isCombineEnabled===t&&I();const a={...n,isCombineEnabled:t};return io(e,a,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ve(e)||I(),e.isWindowScrollAllowed||I();const o=r.payload.newScroll;if(We(e.viewport.scroll.current,o))return lo(e);const t=Cn(e.viewport,o);return ko(e)?An({state:e,viewport:t}):dr({state:e,viewport:t})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ve(e))return e;const o=r.payload.maxScroll;if(We(o,e.viewport.scroll.max))return e;const t={...e.viewport,scroll:{...e.viewport.scroll,max:o}};return{...e,viewport:t}}if(r.type==="MOVE_UP"||r.type==="MOVE_DOWN"||r.type==="MOVE_LEFT"||r.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&I();const o=Ph({state:e,type:r.type});return o?dr({state:e,impact:o.impact,clientSelection:o.clientSelection,scrollJumpRequest:o.scrollJumpRequest}):e}if(r.type==="DROP_PENDING"){const o=r.payload.reason;return e.phase!=="COLLECTING"&&I(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:o}}if(r.type==="DROP_ANIMATE"){const{completed:o,dropDuration:t,newHomeClientOffset:n}=r.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||I(),{phase:"DROP_ANIMATING",completed:o,dropDuration:t,newHomeClientOffset:n,dimensions:e.dimensions}}if(r.type==="DROP_COMPLETE"){const{completed:o}=r.payload;return{phase:"IDLE",completed:o,shouldFlush:!1}}return e};function ae(e,r){return e instanceof Object&&"type"in e&&e.type===r}const Kh=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Qh=e=>({type:"LIFT",payload:e}),Zh=e=>({type:"INITIAL_PUBLISH",payload:e}),ev=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),rv=()=>({type:"COLLECTION_STARTING",payload:null}),ov=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),tv=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),nv=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Tn=e=>({type:"MOVE",payload:e}),av=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),iv=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),lv=()=>({type:"MOVE_UP",payload:null}),sv=()=>({type:"MOVE_DOWN",payload:null}),cv=()=>({type:"MOVE_RIGHT",payload:null}),dv=()=>({type:"MOVE_LEFT",payload:null}),Mo=()=>({type:"FLUSH",payload:null}),uv=e=>({type:"DROP_ANIMATE",payload:e}),Wo=e=>({type:"DROP_COMPLETE",payload:e}),Nn=e=>({type:"DROP",payload:e}),fv=e=>({type:"DROP_PENDING",payload:e}),_n=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var gv=e=>({getState:r,dispatch:o})=>t=>n=>{if(!ae(n,"LIFT")){t(n);return}const{id:a,clientSelection:i,movementMode:l}=n.payload,s=r();s.phase==="DROP_ANIMATING"&&o(Wo({completed:s.completed})),r().phase!=="IDLE"&&I(),o(Mo()),o(Kh({draggableId:a,movementMode:l}));const f={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:c,dimensions:u,viewport:g}=e.startPublishing(f);o(Zh({critical:c,dimensions:u,clientSelection:i,movementMode:l,viewport:g}))},pv=e=>()=>r=>o=>{ae(o,"INITIAL_PUBLISH")&&e.dragging(),ae(o,"DROP_ANIMATE")&&e.dropping(o.payload.completed.result.reason),(ae(o,"FLUSH")||ae(o,"DROP_COMPLETE"))&&e.resting(),r(o)};const Go={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},hr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ln={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ue=`${Ln.outOfTheWay}s ${Go.outOfTheWay}`,ur={fluid:`opacity ${Ue}`,snap:`transform ${Ue}, opacity ${Ue}`,drop:e=>{const r=`${e}s ${Go.drop}`;return`transform ${r}, opacity ${r}`},outOfTheWay:`transform ${Ue}`,placeholder:`height ${Ue}, width ${Ue}, margin ${Ue}`},zt=e=>We(e,fe)?void 0:`translate(${e.x}px, ${e.y}px)`,wo={moveTo:zt,drop:(e,r)=>{const o=zt(e);if(o)return r?`${o} scale(${hr.scale.drop})`:o}},{minDropTime:Co,maxDropTime:Fn}=Ln,mv=Fn-Co,St=1500,bv=.6;var hv=({current:e,destination:r,reason:o})=>{const t=pr(e,r);if(t<=0)return Co;if(t>=St)return Fn;const n=t/St,a=Co+mv*n,i=o==="CANCEL"?a*bv:a;return Number(i.toFixed(2))},vv=({impact:e,draggable:r,dimensions:o,viewport:t,afterCritical:n})=>{const{draggables:a,droppables:i}=o,l=ze(e),s=l?i[l]:null,d=i[r.descriptor.droppableId],f=Pn({impact:e,draggable:r,draggables:a,afterCritical:n,droppable:s||d,viewport:t});return Be(f,r.client.borderBox.center)},yv=({draggables:e,reason:r,lastImpact:o,home:t,viewport:n,onLiftImpact:a})=>!o.at||r!=="DROP"?{impact:In({draggables:e,impact:a,destination:t,viewport:n,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:o.at.type==="REORDER"?{impact:o,didDropInsideDroppable:!0}:{impact:{...o,displaced:mr},didDropInsideDroppable:!0};const xv=({getState:e,dispatch:r})=>o=>t=>{if(!ae(t,"DROP")){o(t);return}const n=e(),a=t.payload.reason;if(n.phase==="COLLECTING"){r(fv({reason:a}));return}if(n.phase==="IDLE")return;n.phase==="DROP_PENDING"&&n.isWaiting&&I(),n.phase==="DRAGGING"||n.phase==="DROP_PENDING"||I();const l=n.critical,s=n.dimensions,d=s.draggables[n.critical.draggable.id],{impact:f,didDropInsideDroppable:c}=yv({reason:a,lastImpact:n.impact,afterCritical:n.afterCritical,onLiftImpact:n.onLiftImpact,home:n.dimensions.droppables[n.critical.droppable.id],viewport:n.viewport,draggables:n.dimensions.draggables}),u=c?Oo(f):null,g=c?Vr(f):null,h={index:l.draggable.index,droppableId:l.droppable.id},p={draggableId:d.descriptor.id,type:d.descriptor.type,source:h,reason:a,mode:n.movementMode,destination:u,combine:g},m=vv({impact:f,draggable:d,dimensions:s,viewport:n.viewport,afterCritical:n.afterCritical}),y={critical:n.critical,afterCritical:n.afterCritical,result:p,impact:f};if(!(!We(n.current.client.offset,m)||!!p.combine)){r(Wo({completed:y}));return}const A=hv({current:n.current.client.offset,destination:m,reason:a});r(uv({newHomeClientOffset:m,dropDuration:A,completed:y}))};var Mn=()=>({x:window.pageXOffset,y:window.pageYOffset});function kv(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:r=>{r.target!==window&&r.target!==window.document||e()}}}function wv({onWindowScroll:e}){function r(){e(Mn())}const o=gr(r),t=kv(o);let n=Me;function a(){return n!==Me}function i(){a()&&I(),n=Ie(window,[t])}function l(){a()||I(),o.cancel(),n(),n=Me}return{start:i,stop:l,isActive:a}}const Cv=e=>ae(e,"DROP_COMPLETE")||ae(e,"DROP_ANIMATE")||ae(e,"FLUSH"),$v=e=>{const r=wv({onWindowScroll:o=>{e.dispatch(av({newScroll:o}))}});return o=>t=>{!r.isActive()&&ae(t,"INITIAL_PUBLISH")&&r.start(),r.isActive()&&Cv(t)&&r.stop(),o(t)}};var Bv=e=>{let r=!1,o=!1;const t=setTimeout(()=>{o=!0}),n=a=>{r||o||(r=!0,e(a),clearTimeout(t))};return n.wasCalled=()=>r,n},zv=()=>{const e=[],r=n=>{const a=e.findIndex(l=>l.timerId===n);a===-1&&I();const[i]=e.splice(a,1);i.callback()};return{add:n=>{const a=setTimeout(()=>r(a)),i={timerId:a,callback:n};e.push(i)},flush:()=>{if(!e.length)return;const n=[...e];e.length=0,n.forEach(a=>{clearTimeout(a.timerId),a.callback()})}}};const Sv=(e,r)=>e==null&&r==null?!0:e==null||r==null?!1:e.droppableId===r.droppableId&&e.index===r.index,Rv=(e,r)=>e==null&&r==null?!0:e==null||r==null?!1:e.draggableId===r.draggableId&&e.droppableId===r.droppableId,Dv=(e,r)=>{if(e===r)return!0;const o=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,t=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return o&&t},ar=(e,r)=>{r()},Br=(e,r)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r});function so(e,r,o,t){if(!e){o(t(r));return}const n=Bv(o);e(r,{announce:n}),n.wasCalled()||o(t(r))}var Ev=(e,r)=>{const o=zv();let t=null;const n=(c,u)=>{t&&I(),ar("onBeforeCapture",()=>{const g=e().onBeforeCapture;g&&g({draggableId:c,mode:u})})},a=(c,u)=>{t&&I(),ar("onBeforeDragStart",()=>{const g=e().onBeforeDragStart;g&&g(Br(c,u))})},i=(c,u)=>{t&&I();const g=Br(c,u);t={mode:u,lastCritical:c,lastLocation:g.source,lastCombine:null},o.add(()=>{ar("onDragStart",()=>so(e().onDragStart,g,r,Ir.onDragStart))})},l=(c,u)=>{const g=Oo(u),h=Vr(u);t||I();const p=!Dv(c,t.lastCritical);p&&(t.lastCritical=c);const m=!Sv(t.lastLocation,g);m&&(t.lastLocation=g);const y=!Rv(t.lastCombine,h);if(y&&(t.lastCombine=h),!p&&!m&&!y)return;const $={...Br(c,t.mode),combine:h,destination:g};o.add(()=>{ar("onDragUpdate",()=>so(e().onDragUpdate,$,r,Ir.onDragUpdate))})},s=()=>{t||I(),o.flush()},d=c=>{t||I(),t=null,ar("onDragEnd",()=>so(e().onDragEnd,c,r,Ir.onDragEnd))};return{beforeCapture:n,beforeStart:a,start:i,update:l,flush:s,drop:d,abort:()=>{if(!t)return;const c={...Br(t.lastCritical,t.mode),combine:null,destination:null,reason:"CANCEL"};d(c)}}},Iv=(e,r)=>{const o=Ev(e,r);return t=>n=>a=>{if(ae(a,"BEFORE_INITIAL_CAPTURE")){o.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(ae(a,"INITIAL_PUBLISH")){const l=a.payload.critical;o.beforeStart(l,a.payload.movementMode),n(a),o.start(l,a.payload.movementMode);return}if(ae(a,"DROP_COMPLETE")){const l=a.payload.completed.result;o.flush(),n(a),o.drop(l);return}if(n(a),ae(a,"FLUSH")){o.abort();return}const i=t.getState();i.phase==="DRAGGING"&&o.update(i.critical,i.impact)}};const Pv=e=>r=>o=>{if(!ae(o,"DROP_ANIMATION_FINISHED")){r(o);return}const t=e.getState();t.phase!=="DROP_ANIMATING"&&I(),e.dispatch(Wo({completed:t.completed}))},Av=e=>{let r=null,o=null;function t(){o&&(cancelAnimationFrame(o),o=null),r&&(r(),r=null)}return n=>a=>{if((ae(a,"FLUSH")||ae(a,"DROP_COMPLETE")||ae(a,"DROP_ANIMATION_FINISHED"))&&t(),n(a),!ae(a,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(_n())}};o=requestAnimationFrame(()=>{o=null,r=Ie(window,[i])})}};var Ov=e=>()=>r=>o=>{(ae(o,"DROP_COMPLETE")||ae(o,"FLUSH")||ae(o,"DROP_ANIMATE"))&&e.stopPublishing(),r(o)},Tv=e=>{let r=!1;return()=>o=>t=>{if(ae(t,"INITIAL_PUBLISH")){r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),o(t),e.tryRestoreFocusRecorded();return}if(o(t),!!r){if(ae(t,"FLUSH")){r=!1,e.tryRestoreFocusRecorded();return}if(ae(t,"DROP_COMPLETE")){r=!1;const n=t.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const Nv=e=>ae(e,"DROP_COMPLETE")||ae(e,"DROP_ANIMATE")||ae(e,"FLUSH");var _v=e=>r=>o=>t=>{if(Nv(t)){e.stop(),o(t);return}if(ae(t,"INITIAL_PUBLISH")){o(t);const n=r.getState();n.phase!=="DRAGGING"&&I(),e.start(n);return}o(t),e.scroll(r.getState())};const Lv=e=>r=>o=>{if(r(o),!ae(o,"PUBLISH_WHILE_DRAGGING"))return;const t=e.getState();t.phase==="DROP_PENDING"&&(t.isWaiting||e.dispatch(Nn({reason:t.reason})))},Fv=rn;var Mv=({dimensionMarshal:e,focusMarshal:r,styleMarshal:o,getResponders:t,announce:n,autoScroller:a})=>en(Jh,Fv(F0(pv(o),Ov(e),gv(e),xv,Pv,Av,Lv,_v(a),$v,Tv(r),Iv(t,n))));const co=()=>({additions:{},removals:{},modified:{}});function Wv({registry:e,callbacks:r}){let o=co(),t=null;const n=()=>{t||(r.collectionStarting(),t=requestAnimationFrame(()=>{t=null;const{additions:s,removals:d,modified:f}=o,c=Object.keys(s).map(h=>e.draggable.getById(h).getDimension(fe)).sort((h,p)=>h.descriptor.index-p.descriptor.index),u=Object.keys(f).map(h=>{const m=e.droppable.getById(h).callbacks.getScrollWhileDragging();return{droppableId:h,scroll:m}}),g={additions:c,removals:Object.keys(d),modified:u};o=co(),r.publish(g)}))};return{add:s=>{const d=s.descriptor.id;o.additions[d]=s,o.modified[s.descriptor.droppableId]=!0,o.removals[d]&&delete o.removals[d],n()},remove:s=>{const d=s.descriptor;o.removals[d.id]=!0,o.modified[d.droppableId]=!0,o.additions[d.id]&&delete o.additions[d.id],n()},stop:()=>{t&&(cancelAnimationFrame(t),t=null,o=co())}}}var Wn=({scrollHeight:e,scrollWidth:r,height:o,width:t})=>{const n=Be({x:r,y:e},{x:t,y:o});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},Gn=()=>{const e=document.documentElement;return e||I(),e},Hn=()=>{const e=Gn();return Wn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Gv=()=>{const e=Mn(),r=Hn(),o=e.y,t=e.x,n=Gn(),a=n.clientWidth,i=n.clientHeight,l=t+a,s=o+i;return{frame:Oe({top:o,left:t,right:l,bottom:s}),scroll:{initial:e,current:e,max:r,diff:{value:fe,displacement:fe}}}},Hv=({critical:e,scrollOptions:r,registry:o})=>{const t=Gv(),n=t.scroll.current,a=e.droppable,i=o.droppable.getAllByType(a.type).map(f=>f.callbacks.getDimensionAndWatchScroll(n,r)),l=o.draggable.getAllByType(e.draggable.type).map(f=>f.getDimension(n));return{dimensions:{draggables:hn(l),droppables:bn(i)},critical:e,viewport:t}};function Rt(e,r,o){return!(o.descriptor.id===r.id||o.descriptor.type!==r.type||e.droppable.getById(o.descriptor.droppableId).descriptor.mode!=="virtual")}var jv=(e,r)=>{let o=null;const t=Wv({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),n=(u,g)=>{e.droppable.exists(u)||I(),o&&r.updateDroppableIsEnabled({id:u,isEnabled:g})},a=(u,g)=>{o&&(e.droppable.exists(u)||I(),r.updateDroppableIsCombineEnabled({id:u,isCombineEnabled:g}))},i=(u,g)=>{o&&(e.droppable.exists(u)||I(),r.updateDroppableScroll({id:u,newScroll:g}))},l=(u,g)=>{o&&e.droppable.getById(u).callbacks.scroll(g)},s=()=>{if(!o)return;t.stop();const u=o.critical.droppable;e.droppable.getAllByType(u.type).forEach(g=>g.callbacks.dragStopped()),o.unsubscribe(),o=null},d=u=>{o||I();const g=o.critical.draggable;u.type==="ADDITION"&&Rt(e,g,u.value)&&t.add(u.value),u.type==="REMOVAL"&&Rt(e,g,u.value)&&t.remove(u.value)};return{updateDroppableIsEnabled:n,updateDroppableIsCombineEnabled:a,scrollDroppable:l,updateDroppableScroll:i,startPublishing:u=>{o&&I();const g=e.draggable.getById(u.draggableId),h=e.droppable.getById(g.descriptor.droppableId),p={draggable:g.descriptor,droppable:h.descriptor},m=e.subscribe(d);return o={critical:p,unsubscribe:m},Hv({critical:p,registry:e,scrollOptions:u.scrollOptions})},stopPublishing:s}},jn=(e,r)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP",Uv=e=>{window.scrollBy(e.x,e.y)};const Vv=ue(e=>Ur(e).filter(r=>!(!r.isEnabled||!r.frame))),qv=(e,r)=>Vv(r).find(t=>(t.frame||I(),Sn(t.frame.pageMarginBox)(e)))||null;var Yv=({center:e,destination:r,droppables:o})=>{if(r){const n=o[r];return n.frame?n:null}return qv(e,o)};const vr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Xv=(e,r,o=()=>vr)=>{const t=o(),n=e[r.size]*t.startFromPercentage,a=e[r.size]*t.maxScrollAtPercentage;return{startScrollingFrom:n,maxScrollValueAt:a}},Un=({startOfRange:e,endOfRange:r,current:o})=>{const t=r-e;return t===0?0:(o-e)/t},Ho=1,Jv=(e,r,o=()=>vr)=>{const t=o();if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return t.maxPixelScroll;if(e===r.startScrollingFrom)return Ho;const a=1-Un({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),i=t.maxPixelScroll*t.ease(a);return Math.ceil(i)},Kv=(e,r,o)=>{const t=o(),n=t.durationDampening.accelerateAt,a=t.durationDampening.stopDampeningAt,i=r,l=a,d=Date.now()-i;if(d>=a)return e;if(d<n)return Ho;const f=Un({startOfRange:n,endOfRange:l,current:d}),c=e*t.ease(f);return Math.ceil(c)},Dt=({distanceToEdge:e,thresholds:r,dragStartTime:o,shouldUseTimeDampening:t,getAutoScrollerOptions:n})=>{const a=Jv(e,r,n);return a===0?0:t?Math.max(Kv(a,o,n),Ho):a},Et=({container:e,distanceToEdges:r,dragStartTime:o,axis:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=Xv(e,t,a);return r[t.end]<r[t.start]?Dt({distanceToEdge:r[t.end],thresholds:i,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a}):-1*Dt({distanceToEdge:r[t.start],thresholds:i,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a})},Qv=({container:e,subject:r,proposedScroll:o})=>{const t=r.height>e.height,n=r.width>e.width;return!n&&!t?o:n&&t?null:{x:n?0:o.x,y:t?0:o.y}};const Zv=mn(e=>e===0?0:e);var Vn=({dragStartTime:e,container:r,subject:o,center:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i={top:t.y-r.top,right:r.right-t.x,bottom:r.bottom-t.y,left:t.x-r.left},l=Et({container:r,distanceToEdges:i,dragStartTime:e,axis:To,shouldUseTimeDampening:n,getAutoScrollerOptions:a}),s=Et({container:r,distanceToEdges:i,dragStartTime:e,axis:xn,shouldUseTimeDampening:n,getAutoScrollerOptions:a}),d=Zv({x:s,y:l});if(We(d,fe))return null;const f=Qv({container:r,subject:o,proposedScroll:d});return f?We(f,fe)?null:f:null};const ey=mn(e=>e===0?0:e>0?1:-1),jo=(()=>{const e=(r,o)=>r<0?r:r>o?r-o:0;return({current:r,max:o,change:t})=>{const n=pe(r,t),a={x:e(n.x,o.x),y:e(n.y,o.y)};return We(a,fe)?null:a}})(),qn=({max:e,current:r,change:o})=>{const t={x:Math.max(r.x,e.x),y:Math.max(r.y,e.y)},n=ey(o),a=jo({max:t,current:r,change:n});return!a||n.x!==0&&a.x===0||n.y!==0&&a.y===0},Uo=(e,r)=>qn({current:e.scroll.current,max:e.scroll.max,change:r}),ry=(e,r)=>{if(!Uo(e,r))return null;const o=e.scroll.max,t=e.scroll.current;return jo({current:t,max:o,change:r})},Vo=(e,r)=>{const o=e.frame;return o?qn({current:o.scroll.current,max:o.scroll.max,change:r}):!1},oy=(e,r)=>{const o=e.frame;return!o||!Vo(e,r)?null:jo({current:o.scroll.current,max:o.scroll.max,change:r})};var ty=({viewport:e,subject:r,center:o,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=Vn({dragStartTime:t,container:e.frame,subject:r,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});return i&&Uo(e,i)?i:null},ny=({droppable:e,subject:r,center:o,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=e.frame;if(!i)return null;const l=Vn({dragStartTime:t,container:i.pageMarginBox,subject:r,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});return l&&Vo(e,l)?l:null},It=({state:e,dragStartTime:r,shouldUseTimeDampening:o,scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:a})=>{const i=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const c=e.viewport,u=ty({dragStartTime:r,viewport:c,subject:s,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});if(u){t(u);return}}const d=Yv({center:i,destination:ze(e.impact),droppables:e.dimensions.droppables});if(!d)return;const f=ny({dragStartTime:r,droppable:d,subject:s,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});f&&n(d.descriptor.id,f)},ay=({scrollWindow:e,scrollDroppable:r,getAutoScrollerOptions:o=()=>vr})=>{const t=gr(e),n=gr(r);let a=null;const i=d=>{a||I();const{shouldUseTimeDampening:f,dragStartTime:c}=a;It({state:d,scrollWindow:t,scrollDroppable:n,dragStartTime:c,shouldUseTimeDampening:f,getAutoScrollerOptions:o})};return{start:d=>{a&&I();const f=Date.now();let c=!1;const u=()=>{c=!0};It({state:d,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:u,scrollDroppable:u,getAutoScrollerOptions:o}),a={dragStartTime:f,shouldUseTimeDampening:c},c&&i(d)},stop:()=>{a&&(t.cancel(),n.cancel(),a=null)},scroll:i}},iy=({move:e,scrollDroppable:r,scrollWindow:o})=>{const t=(l,s)=>{const d=pe(l.current.client.selection,s);e({client:d})},n=(l,s)=>{if(!Vo(l,s))return s;const d=oy(l,s);if(!d)return r(l.descriptor.id,s),null;const f=Be(s,d);return r(l.descriptor.id,f),Be(s,f)},a=(l,s,d)=>{if(!l||!Uo(s,d))return d;const f=ry(s,d);if(!f)return o(d),null;const c=Be(d,f);return o(c),Be(d,c)};return l=>{const s=l.scrollJumpRequest;if(!s)return;const d=ze(l.impact);d||I();const f=n(l.dimensions.droppables[d],s);if(!f)return;const c=l.viewport,u=a(l.isWindowScrollAllowed,c,f);u&&t(l,u)}},ly=({scrollDroppable:e,scrollWindow:r,move:o,getAutoScrollerOptions:t})=>{const n=ay({scrollWindow:r,scrollDroppable:e,getAutoScrollerOptions:t}),a=iy({move:o,scrollWindow:r,scrollDroppable:e});return{scroll:s=>{if(!(t().disabled||s.phase!=="DRAGGING")){if(s.movementMode==="FLUID"){n.scroll(s);return}s.scrollJumpRequest&&a(s)}},start:n.start,stop:n.stop}};const Ke="data-rfd",Qe=(()=>{const e=`${Ke}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),$o=(()=>{const e=`${Ke}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),sy=(()=>{const e=`${Ke}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Pt={contextId:`${Ke}-scroll-container-context-id`},cy=e=>r=>`[${r}="${e}"]`,ir=(e,r)=>e.map(o=>{const t=o.styles[r];return t?`${o.selector} { ${t} }`:""}).join(" "),dy="pointer-events: none;";var uy=e=>{const r=cy(e),o=(()=>{const l=`
|
|
86
|
-
cursor: -webkit-grab;
|
|
87
|
-
cursor: grab;
|
|
88
|
-
`;return{selector:r(Qe.contextId),styles:{always:`
|
|
89
|
-
-webkit-touch-callout: none;
|
|
90
|
-
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
91
|
-
touch-action: manipulation;
|
|
92
|
-
`,resting:l,dragging:dy,dropAnimating:l}}})(),t=(()=>{const l=`
|
|
93
|
-
transition: ${ur.outOfTheWay};
|
|
94
|
-
`;return{selector:r($o.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}})(),n={selector:r(sy.contextId),styles:{always:"overflow-anchor: none;"}},i=[t,o,n,{selector:"body",styles:{dragging:`
|
|
95
|
-
cursor: grabbing;
|
|
96
|
-
cursor: -webkit-grabbing;
|
|
97
|
-
user-select: none;
|
|
98
|
-
-webkit-user-select: none;
|
|
99
|
-
-moz-user-select: none;
|
|
100
|
-
-ms-user-select: none;
|
|
101
|
-
overflow-anchor: none;
|
|
102
|
-
`}}];return{always:ir(i,"always"),resting:ir(i,"resting"),dragging:ir(i,"dragging"),dropAnimating:ir(i,"dropAnimating"),userCancel:ir(i,"userCancel")}};const Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?F.useLayoutEffect:F.useEffect,uo=()=>{const e=document.querySelector("head");return e||I(),e},At=e=>{const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function fy(e,r){const o=oe(()=>uy(e),[e]),t=F.useRef(null),n=F.useRef(null),a=H(ue(c=>{const u=n.current;u||I(),u.textContent=c}),[]),i=H(c=>{const u=t.current;u||I(),u.textContent=c},[]);Se(()=>{!t.current&&!n.current||I();const c=At(r),u=At(r);return t.current=c,n.current=u,c.setAttribute(`${Ke}-always`,e),u.setAttribute(`${Ke}-dynamic`,e),uo().appendChild(c),uo().appendChild(u),i(o.always),a(o.resting),()=>{const g=h=>{const p=h.current;p||I(),uo().removeChild(p),h.current=null};g(t),g(n)}},[r,i,a,o.always,o.resting,e]);const l=H(()=>a(o.dragging),[a,o.dragging]),s=H(c=>{if(c==="DROP"){a(o.dropAnimating);return}a(o.userCancel)},[a,o.dropAnimating,o.userCancel]),d=H(()=>{n.current&&a(o.resting)},[a,o.resting]);return oe(()=>({dragging:l,dropping:s,resting:d}),[l,s,d])}function Yn(e,r){return Array.from(e.querySelectorAll(r))}var Xn=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Xr(e){return e instanceof Xn(e).HTMLElement}function gy(e,r){const o=`[${Qe.contextId}="${e}"]`,t=Yn(document,o);if(!t.length)return null;const n=t.find(a=>a.getAttribute(Qe.draggableId)===r);return!n||!Xr(n)?null:n}function py(e){const r=F.useRef({}),o=F.useRef(null),t=F.useRef(null),n=F.useRef(!1),a=H(function(u,g){const h={id:u,focus:g};return r.current[u]=h,function(){const m=r.current;m[u]!==h&&delete m[u]}},[]),i=H(function(u){const g=gy(e,u);g&&g!==document.activeElement&&g.focus()},[e]),l=H(function(u,g){o.current===u&&(o.current=g)},[]),s=H(function(){t.current||n.current&&(t.current=requestAnimationFrame(()=>{t.current=null;const u=o.current;u&&i(u)}))},[i]),d=H(function(u){o.current=null;const g=document.activeElement;g&&g.getAttribute(Qe.draggableId)===u&&(o.current=u)},[]);return Se(()=>(n.current=!0,function(){n.current=!1;const u=t.current;u&&cancelAnimationFrame(u)}),[]),oe(()=>({register:a,tryRecordFocus:d,tryRestoreFocusRecorded:s,tryShiftRecord:l}),[a,d,s,l])}function my(){const e={draggables:{},droppables:{}},r=[];function o(c){return r.push(c),function(){const g=r.indexOf(c);g!==-1&&r.splice(g,1)}}function t(c){r.length&&r.forEach(u=>u(c))}function n(c){return e.draggables[c]||null}function a(c){const u=n(c);return u||I(),u}const i={register:c=>{e.draggables[c.descriptor.id]=c,t({type:"ADDITION",value:c})},update:(c,u)=>{const g=e.draggables[u.descriptor.id];g&&g.uniqueId===c.uniqueId&&(delete e.draggables[u.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{const u=c.descriptor.id,g=n(u);g&&c.uniqueId===g.uniqueId&&(delete e.draggables[u],e.droppables[c.descriptor.droppableId]&&t({type:"REMOVAL",value:c}))},getById:a,findById:n,exists:c=>!!n(c),getAllByType:c=>Object.values(e.draggables).filter(u=>u.descriptor.type===c)};function l(c){return e.droppables[c]||null}function s(c){const u=l(c);return u||I(),u}const d={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{const u=l(c.descriptor.id);u&&c.uniqueId===u.uniqueId&&delete e.droppables[c.descriptor.id]},getById:s,findById:l,exists:c=>!!l(c),getAllByType:c=>Object.values(e.droppables).filter(u=>u.descriptor.type===c)};function f(){e.draggables={},e.droppables={},r.length=0}return{draggable:i,droppable:d,subscribe:o,clean:f}}function by(){const e=oe(my,[]);return F.useEffect(()=>function(){e.clean()},[e]),e}var qo=U.createContext(null),Fr=()=>{const e=document.body;return e||I(),e};const hy={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},vy=e=>`rfd-announcement-${e}`;function yy(e){const r=oe(()=>vy(e),[e]),o=F.useRef(null);return F.useEffect(function(){const a=document.createElement("div");return o.current=a,a.id=r,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),Tr(a.style,hy),Fr().appendChild(a),function(){setTimeout(function(){const s=Fr();s.contains(a)&&s.removeChild(a),a===o.current&&(o.current=null)})}},[r]),H(n=>{const a=o.current;if(a){a.textContent=n;return}},[])}const xy={separator:"::"};function Yo(e,r=xy){const o=U.useId();return oe(()=>`${e}${r.separator}${o}`,[r.separator,e,o])}function ky({contextId:e,uniqueId:r}){return`rfd-hidden-text-${e}-${r}`}function wy({contextId:e,text:r}){const o=Yo("hidden-text",{separator:"-"}),t=oe(()=>ky({contextId:e,uniqueId:o}),[o,e]);return F.useEffect(function(){const a=document.createElement("div");return a.id=t,a.textContent=r,a.style.display="none",Fr().appendChild(a),function(){const l=Fr();l.contains(a)&&l.removeChild(a)}},[t,r]),t}var Jr=U.createContext(null);function Jn(e){const r=F.useRef(e);return F.useEffect(()=>{r.current=e}),r}function Cy(){let e=null;function r(){return!!e}function o(i){return i===e}function t(i){e&&I();const l={abandon:i};return e=l,l}function n(){e||I(),e=null}function a(){e&&(e.abandon(),n())}return{isClaimed:r,isActive:o,claim:t,release:n,tryAbandon:a}}function yr(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const $y=9,By=13,Xo=27,Kn=32,zy=33,Sy=34,Ry=35,Dy=36,Ey=37,Iy=38,Py=39,Ay=40,Oy={[By]:!0,[$y]:!0};var Qn=e=>{Oy[e.keyCode]&&e.preventDefault()};const Kr=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(t=>`on${t}`in document)||e})(),Zn=0,Ot=5;function Ty(e,r){return Math.abs(r.x-e.x)>=Ot||Math.abs(r.y-e.y)>=Ot}const Tt={type:"IDLE"};function Ny({cancel:e,completed:r,getPhase:o,setPhase:t}){return[{eventName:"mousemove",fn:n=>{const{button:a,clientX:i,clientY:l}=n;if(a!==Zn)return;const s={x:i,y:l},d=o();if(d.type==="DRAGGING"){n.preventDefault(),d.actions.move(s);return}d.type!=="PENDING"&&I();const f=d.point;if(!Ty(f,s))return;n.preventDefault();const c=d.actions.fluidLift(s);t({type:"DRAGGING",actions:c})}},{eventName:"mouseup",fn:n=>{const a=o();if(a.type!=="DRAGGING"){e();return}n.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:n=>{o().type==="DRAGGING"&&n.preventDefault(),e()}},{eventName:"keydown",fn:n=>{if(o().type==="PENDING"){e();return}if(n.keyCode===Xo){n.preventDefault(),e();return}Qn(n)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{o().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:n=>{const a=o();if(a.type==="IDLE"&&I(),a.actions.shouldRespectForcePress()){e();return}n.preventDefault()}},{eventName:Kr,fn:e}]}function _y(e){const r=F.useRef(Tt),o=F.useRef(Me),t=oe(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==Zn||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;const u=e.findClosestDraggableId(c);if(!u)return;const g=e.tryGetLock(u,i,{sourceEvent:c});if(!g)return;c.preventDefault();const h={x:c.clientX,y:c.clientY};o.current(),d(g,h)}}),[e]),n=oe(()=>({eventName:"webkitmouseforcewillbegin",fn:f=>{if(f.defaultPrevented)return;const c=e.findClosestDraggableId(f);if(!c)return;const u=e.findOptionsForDraggable(c);u&&(u.shouldRespectForcePress||e.canGetLock(c)&&f.preventDefault())}}),[e]),a=H(function(){const c={passive:!1,capture:!0};o.current=Ie(window,[n,t],c)},[n,t]),i=H(()=>{r.current.type!=="IDLE"&&(r.current=Tt,o.current(),a())},[a]),l=H(()=>{const f=r.current;i(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[i]),s=H(function(){const c={capture:!0,passive:!1},u=Ny({cancel:l,completed:i,getPhase:()=>r.current,setPhase:g=>{r.current=g}});o.current=Ie(window,u,c)},[l,i]),d=H(function(c,u){r.current.type!=="IDLE"&&I(),r.current={type:"PENDING",point:u,actions:c},s()},[s]);Se(function(){return a(),function(){o.current()}},[a])}function Ly(){}const Fy={[Sy]:!0,[zy]:!0,[Dy]:!0,[Ry]:!0};function My(e,r){function o(){r(),e.cancel()}function t(){r(),e.drop()}return[{eventName:"keydown",fn:n=>{if(n.keyCode===Xo){n.preventDefault(),o();return}if(n.keyCode===Kn){n.preventDefault(),t();return}if(n.keyCode===Ay){n.preventDefault(),e.moveDown();return}if(n.keyCode===Iy){n.preventDefault(),e.moveUp();return}if(n.keyCode===Py){n.preventDefault(),e.moveRight();return}if(n.keyCode===Ey){n.preventDefault(),e.moveLeft();return}if(Fy[n.keyCode]){n.preventDefault();return}Qn(n)}},{eventName:"mousedown",fn:o},{eventName:"mouseup",fn:o},{eventName:"click",fn:o},{eventName:"touchstart",fn:o},{eventName:"resize",fn:o},{eventName:"wheel",fn:o,options:{passive:!0}},{eventName:Kr,fn:o}]}function Wy(e){const r=F.useRef(Ly),o=oe(()=>({eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==Kn)return;const i=e.findClosestDraggableId(a);if(!i)return;const l=e.tryGetLock(i,f,{sourceEvent:a});if(!l)return;a.preventDefault();let s=!0;const d=l.snapLift();r.current();function f(){s||I(),s=!1,r.current(),t()}r.current=Ie(window,My(d,f),{capture:!0,passive:!1})}}),[e]),t=H(function(){const a={passive:!1,capture:!0};r.current=Ie(window,[o],a)},[o]);Se(function(){return t(),function(){r.current()}},[t])}const fo={type:"IDLE"},Gy=120,Hy=.15;function jy({cancel:e,getPhase:r}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:o=>{o.preventDefault()}},{eventName:"keydown",fn:o=>{if(r().type!=="DRAGGING"){e();return}o.keyCode===Xo&&o.preventDefault(),e()}},{eventName:Kr,fn:e}]}function Uy({cancel:e,completed:r,getPhase:o}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=o();if(n.type!=="DRAGGING"){e();return}n.hasMoved=!0;const{clientX:a,clientY:i}=t.touches[0],l={x:a,y:i};t.preventDefault(),n.actions.move(l)}},{eventName:"touchend",fn:t=>{const n=o();if(n.type!=="DRAGGING"){e();return}t.preventDefault(),n.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:t=>{if(o().type!=="DRAGGING"){e();return}t.preventDefault(),e()}},{eventName:"touchforcechange",fn:t=>{const n=o();n.type==="IDLE"&&I();const a=t.touches[0];if(!a||!(a.force>=Hy))return;const l=n.actions.shouldRespectForcePress();if(n.type==="PENDING"){l&&e();return}if(l){if(n.hasMoved){t.preventDefault();return}e();return}t.preventDefault()}},{eventName:Kr,fn:e}]}function Vy(e){const r=F.useRef(fo),o=F.useRef(Me),t=H(function(){return r.current},[]),n=H(function(g){r.current=g},[]),a=oe(()=>({eventName:"touchstart",fn:function(g){if(g.defaultPrevented)return;const h=e.findClosestDraggableId(g);if(!h)return;const p=e.tryGetLock(h,l,{sourceEvent:g});if(!p)return;const m=g.touches[0],{clientX:y,clientY:$}=m,A={x:y,y:$};o.current(),c(p,A)}}),[e]),i=H(function(){const g={capture:!0,passive:!1};o.current=Ie(window,[a],g)},[a]),l=H(()=>{const u=r.current;u.type!=="IDLE"&&(u.type==="PENDING"&&clearTimeout(u.longPressTimerId),n(fo),o.current(),i())},[i,n]),s=H(()=>{const u=r.current;l(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[l]),d=H(function(){const g={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:t},p=Ie(window,Uy(h),g),m=Ie(window,jy(h),g);o.current=function(){p(),m()}},[s,t,l]),f=H(function(){const g=t();g.type!=="PENDING"&&I();const h=g.actions.fluidLift(g.point);n({type:"DRAGGING",actions:h,hasMoved:!1})},[t,n]),c=H(function(g,h){t().type!=="IDLE"&&I();const p=setTimeout(f,Gy);n({type:"PENDING",point:h,actions:g,longPressTimerId:p}),d()},[d,t,n,f]);Se(function(){return i(),function(){o.current();const h=t();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),n(fo))}},[t,i,n]),Se(function(){return Ie(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const qy=["input","button","textarea","select","option","optgroup","video","audio"];function ea(e,r){if(r==null)return!1;if(qy.includes(r.tagName.toLowerCase()))return!0;const t=r.getAttribute("contenteditable");return t==="true"||t===""?!0:r===e?!1:ea(e,r.parentElement)}function Yy(e,r){const o=r.target;return Xr(o)?ea(e,o):!1}var Xy=e=>Oe(e.getBoundingClientRect()).center;function Jy(e){return e instanceof Xn(e).Element}const Ky=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(t=>t in Element.prototype)||e})();function ra(e,r){return e==null?null:e[Ky](r)?e:ra(e.parentElement,r)}function Qy(e,r){return e.closest?e.closest(r):ra(e,r)}function Zy(e){return`[${Qe.contextId}="${e}"]`}function ex(e,r){const o=r.target;if(!Jy(o))return null;const t=Zy(e),n=Qy(o,t);return!n||!Xr(n)?null:n}function rx(e,r){const o=ex(e,r);return o?o.getAttribute(Qe.draggableId):null}function ox(e,r){const o=`[${$o.contextId}="${e}"]`,n=Yn(document,o).find(a=>a.getAttribute($o.id)===r);return!n||!Xr(n)?null:n}function tx(e){e.preventDefault()}function zr({expected:e,phase:r,isLockActive:o,shouldWarn:t}){return!(!o()||e!==r)}function oa({lockAPI:e,store:r,registry:o,draggableId:t}){if(e.isClaimed())return!1;const n=o.draggable.findById(t);return!(!n||!n.options.isEnabled||!jn(r.getState(),t))}function nx({lockAPI:e,contextId:r,store:o,registry:t,draggableId:n,forceSensorStop:a,sourceEvent:i}){if(!oa({lockAPI:e,store:o,registry:t,draggableId:n}))return null;const s=t.draggable.getById(n),d=ox(r,s.descriptor.id);if(!d||i&&!s.options.canDragInteractiveElements&&Yy(d,i))return null;const f=e.claim(a||Me);let c="PRE_DRAG";function u(){return s.options.shouldRespectForcePress}function g(){return e.isActive(f)}function h(_,L){zr({expected:_,phase:c,isLockActive:g,shouldWarn:!0})&&o.dispatch(L())}const p=h.bind(null,"DRAGGING");function m(_){function L(){e.release(),c="COMPLETED"}c!=="PRE_DRAG"&&(L(),I()),o.dispatch(Qh(_.liftActionArgs)),c="DRAGGING";function j(q,re={shouldBlockNextClick:!1}){if(_.cleanup(),re.shouldBlockNextClick){const Q=Ie(window,[{eventName:"click",fn:tx,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Q)}L(),o.dispatch(Nn({reason:q}))}return{isActive:()=>zr({expected:"DRAGGING",phase:c,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:u,drop:q=>j("DROP",q),cancel:q=>j("CANCEL",q),..._.actions}}function y(_){const L=gr(q=>{p(()=>Tn({client:q}))});return{...m({liftActionArgs:{id:n,clientSelection:_,movementMode:"FLUID"},cleanup:()=>L.cancel(),actions:{move:L}}),move:L}}function $(){const _={moveUp:()=>p(lv),moveRight:()=>p(cv),moveDown:()=>p(sv),moveLeft:()=>p(dv)};return m({liftActionArgs:{id:n,clientSelection:Xy(d),movementMode:"SNAP"},cleanup:Me,actions:_})}function A(){zr({expected:"PRE_DRAG",phase:c,isLockActive:g,shouldWarn:!0})&&e.release()}return{isActive:()=>zr({expected:"PRE_DRAG",phase:c,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:u,fluidLift:y,snapLift:$,abort:A}}const ax=[_y,Wy,Vy];function ix({contextId:e,store:r,registry:o,customSensors:t,enableDefaultSensors:n}){const a=[...n?ax:[],...t||[]],i=F.useState(()=>Cy())[0],l=H(function(m,y){yr(m)&&!yr(y)&&i.tryAbandon()},[i]);Se(function(){let m=r.getState();return r.subscribe(()=>{const $=r.getState();l(m,$),m=$})},[i,r,l]),Se(()=>i.tryAbandon,[i.tryAbandon]);const s=H(p=>oa({lockAPI:i,registry:o,store:r,draggableId:p}),[i,o,r]),d=H((p,m,y)=>nx({lockAPI:i,registry:o,contextId:e,store:r,draggableId:p,forceSensorStop:m||null,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null}),[e,i,o,r]),f=H(p=>rx(e,p),[e]),c=H(p=>{const m=o.draggable.findById(p);return m?m.options:null},[o.draggable]),u=H(function(){i.isClaimed()&&(i.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(Mo()))},[i,r]),g=H(()=>i.isClaimed(),[i]),h=oe(()=>({canGetLock:s,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:c,tryReleaseLock:u,isLockClaimed:g}),[s,d,f,c,u,g]);for(let p=0;p<a.length;p++)a[p](h)}const lx=e=>({onBeforeCapture:r=>{const o=()=>{e.onBeforeCapture&&e.onBeforeCapture(r)};Kt.flushSync(o)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),sx=e=>({...vr,...e.autoScrollerOptions,durationDampening:{...vr.durationDampening,...e.autoScrollerOptions}});function lr(e){return e.current||I(),e.current}function cx(e){const{contextId:r,setCallbacks:o,sensors:t,nonce:n,dragHandleUsageInstructions:a}=e,i=F.useRef(null),l=Jn(e),s=H(()=>lx(l.current),[l]),d=H(()=>sx(l.current),[l]),f=yy(r),c=wy({contextId:r,text:a}),u=fy(r,n),g=H(Q=>{lr(i).dispatch(Q)},[]),h=oe(()=>lt({publishWhileDragging:ev,updateDroppableScroll:ov,updateDroppableIsEnabled:tv,updateDroppableIsCombineEnabled:nv,collectionStarting:rv},g),[g]),p=by(),m=oe(()=>jv(p,h),[p,h]),y=oe(()=>ly({scrollWindow:Uv,scrollDroppable:m.scrollDroppable,getAutoScrollerOptions:d,...lt({move:Tn},g)}),[m.scrollDroppable,g,d]),$=py(r),A=oe(()=>Mv({announce:f,autoScroller:y,dimensionMarshal:m,focusMarshal:$,getResponders:s,styleMarshal:u}),[f,y,m,$,s,u]);i.current=A;const P=H(()=>{const Q=lr(i);Q.getState().phase!=="IDLE"&&Q.dispatch(Mo())},[]),_=H(()=>{const Q=lr(i).getState();return Q.phase==="DROP_ANIMATING"?!0:Q.phase==="IDLE"?!1:Q.isDragging},[]),L=oe(()=>({isDragging:_,tryAbort:P}),[_,P]);o(L);const j=H(Q=>jn(lr(i).getState(),Q),[]),q=H(()=>Ve(lr(i).getState()),[]),re=oe(()=>({marshal:m,focus:$,contextId:r,canLift:j,isMovementAllowed:q,dragHandleUsageInstructionsId:c,registry:p}),[r,m,c,$,j,q,p]);return ix({contextId:r,store:A,registry:p,customSensors:t||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),F.useEffect(()=>P,[P]),U.createElement(Jr.Provider,{value:re},U.createElement(Ob,{context:qo,store:A},e.children))}function dx(){return U.useId()}function ux(e){const r=dx(),o=e.dragHandleUsageInstructions||Ir.dragHandleUsageInstructions;return U.createElement(Wb,null,t=>U.createElement(cx,{nonce:e.nonce,contextId:r,setCallbacks:t,dragHandleUsageInstructions:o,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Nt={dragging:5e3,dropAnimating:4500},fx=(e,r)=>r?ur.drop(r.duration):e?ur.snap:ur.fluid,gx=(e,r)=>{if(e)return r?hr.opacity.drop:hr.opacity.combining},px=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function mx(e){const o=e.dimension.client,{offset:t,combineWith:n,dropping:a}=e,i=!!n,l=px(e),s=!!a,d=s?wo.drop(t,i):wo.moveTo(t);return{position:"fixed",top:o.marginBox.top,left:o.marginBox.left,boxSizing:"border-box",width:o.borderBox.width,height:o.borderBox.height,transition:fx(l,a),transform:d,opacity:gx(i,s),zIndex:s?Nt.dropAnimating:Nt.dragging,pointerEvents:"none"}}function bx(e){return{transform:wo.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function hx(e){return e.type==="DRAGGING"?mx(e):bx(e)}function vx(e,r,o=fe){const t=window.getComputedStyle(r),n=r.getBoundingClientRect(),a=cn(n,t),i=Or(a,o),l={client:a,tagName:r.tagName.toLowerCase(),display:t.display},s={x:a.marginBox.width,y:a.marginBox.height};return{descriptor:e,placeholder:l,displaceBy:s,client:a,page:i}}function yx(e){const r=Yo("draggable"),{descriptor:o,registry:t,getDraggableRef:n,canDragInteractiveElements:a,shouldRespectForcePress:i,isEnabled:l}=e,s=oe(()=>({canDragInteractiveElements:a,shouldRespectForcePress:i,isEnabled:l}),[a,l,i]),d=H(g=>{const h=n();return h||I(),vx(o,h,g)},[o,n]),f=oe(()=>({uniqueId:r,descriptor:o,options:s,getDimension:d}),[o,d,s,r]),c=F.useRef(f),u=F.useRef(!0);Se(()=>(t.draggable.register(c.current),()=>t.draggable.unregister(c.current)),[t.draggable]),Se(()=>{if(u.current){u.current=!1;return}const g=c.current;c.current=f,t.draggable.update(f,g)},[f,t.draggable])}var Jo=U.createContext(null);function Mr(e){const r=F.useContext(e);return r||I(),r}function xx(e){e.preventDefault()}const kx=e=>{const r=F.useRef(null),o=H((L=null)=>{r.current=L},[]),t=H(()=>r.current,[]),{contextId:n,dragHandleUsageInstructionsId:a,registry:i}=Mr(Jr),{type:l,droppableId:s}=Mr(Jo),d=oe(()=>({id:e.draggableId,index:e.index,type:l,droppableId:s}),[e.draggableId,e.index,l,s]),{children:f,draggableId:c,isEnabled:u,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:p,mapped:m,dropAnimationFinished:y}=e;if(!p){const L=oe(()=>({descriptor:d,registry:i,getDraggableRef:t,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:u}),[d,i,t,h,g,u]);yx(L)}const $=oe(()=>u?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":n,draggable:!1,onDragStart:xx}:null,[n,a,c,u]),A=H(L=>{m.type==="DRAGGING"&&m.dropping&&L.propertyName==="transform"&&Kt.flushSync(y)},[y,m]),P=oe(()=>{const L=hx(m),j=m.type==="DRAGGING"&&m.dropping?A:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":n,"data-rfd-draggable-id":c,style:L,onTransitionEnd:j},dragHandleProps:$}},[n,$,c,m,A,o]),_=oe(()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}),[d.droppableId,d.id,d.index,d.type]);return U.createElement(U.Fragment,null,f(P,m.snapshot,_))};var ta=(e,r)=>e===r,na=e=>{const{combine:r,destination:o}=e;return o?o.droppableId:r?r.droppableId:null};const wx=e=>e.combine?e.combine.draggableId:null,Cx=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function $x(){const e=ue((n,a)=>({x:n,y:a})),r=ue((n,a,i=null,l=null,s=null)=>({isDragging:!0,isClone:a,isDropAnimating:!!s,dropAnimation:s,mode:n,draggingOver:i,combineWith:l,combineTargetFor:null})),o=ue((n,a,i,l,s=null,d=null,f=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:d,mode:a,offset:n,dimension:i,forceShouldAnimate:f,snapshot:r(a,l,s,d,null)}}));return(n,a)=>{if(yr(n)){if(n.critical.draggable.id!==a.draggableId)return null;const i=n.current.client.offset,l=n.dimensions.draggables[a.draggableId],s=ze(n.impact),d=Cx(n.impact),f=n.forceShouldAnimate;return o(e(i.x,i.y),n.movementMode,l,a.isClone,s,d,f)}if(n.phase==="DROP_ANIMATING"){const i=n.completed;if(i.result.draggableId!==a.draggableId)return null;const l=a.isClone,s=n.dimensions.draggables[a.draggableId],d=i.result,f=d.mode,c=na(d),u=wx(d),h={duration:n.dropDuration,curve:Go.drop,moveTo:n.newHomeClientOffset,opacity:u?hr.opacity.drop:null,scale:u?hr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:s,dropping:h,draggingOver:c,combineWith:u,mode:f,forceShouldAnimate:null,snapshot:r(f,l,c,u,h)}}}return null}}function aa(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Bx={mapped:{type:"SECONDARY",offset:fe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:aa(null)}};function zx(){const e=ue((i,l)=>({x:i,y:l})),r=ue(aa),o=ue((i,l=null,s)=>({mapped:{type:"SECONDARY",offset:i,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:r(l)}})),t=i=>i?o(fe,i,!0):null,n=(i,l,s,d)=>{const f=s.displaced.visible[i],c=!!(d.inVirtualList&&d.effected[i]),u=Vr(s),g=u&&u.draggableId===i?l:null;if(!f){if(!c)return t(g);if(s.displaced.invisible[i])return null;const m=rr(d.displacedBy.point),y=e(m.x,m.y);return o(y,g,!0)}if(c)return t(g);const h=s.displacedBy.point,p=e(h.x,h.y);return o(p,g,f.shouldAnimate)};return(i,l)=>{if(yr(i))return i.critical.draggable.id===l.draggableId?null:n(l.draggableId,i.critical.draggable.id,i.impact,i.afterCritical);if(i.phase==="DROP_ANIMATING"){const s=i.completed;return s.result.draggableId===l.draggableId?null:n(l.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const Sx=()=>{const e=$x(),r=zx();return(t,n)=>e(t,n)||r(t,n)||Bx},Rx={dropAnimationFinished:_n},Dx=sn(Sx,Rx,null,{context:qo,areStatePropsEqual:ta})(kx);function ia(e){return Mr(Jo).isUsingCloneFor===e.draggableId&&!e.isClone?null:U.createElement(Dx,e)}function Ex(e){const r=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,o=!!e.disableInteractiveElementBlocking,t=!!e.shouldRespectForcePress;return U.createElement(ia,Tr({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:o,shouldRespectForcePress:t}))}const la=e=>r=>e===r,Ix=la("scroll"),Px=la("auto"),_t=(e,r)=>r(e.overflowX)||r(e.overflowY),Ax=e=>{const r=window.getComputedStyle(e),o={overflowX:r.overflowX,overflowY:r.overflowY};return _t(o,Ix)||_t(o,Px)},Ox=()=>!1,sa=e=>e==null?null:e===document.body?Ox()?e:null:e===document.documentElement?null:Ax(e)?e:sa(e.parentElement);var Bo=e=>({x:e.scrollLeft,y:e.scrollTop});const ca=e=>e?window.getComputedStyle(e).position==="fixed"?!0:ca(e.parentElement):!1;var Tx=e=>{const r=sa(e),o=ca(e);return{closestScrollable:r,isFixedOnPage:o}},Nx=({descriptor:e,isEnabled:r,isCombineEnabled:o,isFixedOnPage:t,direction:n,client:a,page:i,closest:l})=>{const s=(()=>{if(!l)return null;const{scrollSize:u,client:g}=l,h=Wn({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:g.paddingBox.height,width:g.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:g,scrollSize:u,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:h,diff:{value:fe,displacement:fe}}}})(),d=n==="vertical"?To:xn,f=Je({page:i,withPlaceholder:null,axis:d,frame:s});return{descriptor:e,isCombineEnabled:o,isFixedOnPage:t,axis:d,isEnabled:r,client:a,page:i,frame:s,subject:f}};const _x=(e,r)=>{const o=dn(e);if(!r||e!==r)return o;const t=o.paddingBox.top-r.scrollTop,n=o.paddingBox.left-r.scrollLeft,a=t+r.scrollHeight,i=n+r.scrollWidth,s=Io({top:t,right:i,bottom:a,left:n},o.border);return Po({borderBox:s,margin:o.margin,border:o.border,padding:o.padding})};var Lx=({ref:e,descriptor:r,env:o,windowScroll:t,direction:n,isDropDisabled:a,isCombineEnabled:i,shouldClipSubject:l})=>{const s=o.closestScrollable,d=_x(e,s),f=Or(d,t),c=(()=>{if(!s)return null;const g=dn(s),h={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:g,page:Or(g,t),scroll:Bo(s),scrollSize:h,shouldClipSubject:l}})();return Nx({descriptor:r,isEnabled:!a,isCombineEnabled:i,isFixedOnPage:o.isFixedOnPage,direction:n,client:d,page:f,closest:c})};const Fx={passive:!1},Mx={passive:!0};var Lt=e=>e.shouldPublishImmediately?Fx:Mx;const Sr=e=>e&&e.env.closestScrollable||null;function Wx(e){const r=F.useRef(null),o=Mr(Jr),t=Yo("droppable"),{registry:n,marshal:a}=o,i=Jn(e),l=oe(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=F.useRef(l),d=oe(()=>ue((P,_)=>{r.current||I();const L={x:P,y:_};a.updateDroppableScroll(l.id,L)}),[l.id,a]),f=H(()=>{const P=r.current;return!P||!P.env.closestScrollable?fe:Bo(P.env.closestScrollable)},[]),c=H(()=>{const P=f();d(P.x,P.y)},[f,d]),u=oe(()=>gr(c),[c]),g=H(()=>{const P=r.current,_=Sr(P);if(P&&_||I(),P.scrollOptions.shouldPublishImmediately){c();return}u()},[u,c]),h=H((P,_)=>{r.current&&I();const L=i.current,j=L.getDroppableRef();j||I();const q=Tx(j),re={ref:j,descriptor:l,env:q,scrollOptions:_};r.current=re;const Q=Lx({ref:j,descriptor:l,env:q,windowScroll:P,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombineEnabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),V=q.closestScrollable;return V&&(V.setAttribute(Pt.contextId,o.contextId),V.addEventListener("scroll",g,Lt(re.scrollOptions))),Q},[o.contextId,l,g,i]),p=H(()=>{const P=r.current,_=Sr(P);return P&&_||I(),Bo(_)},[]),m=H(()=>{const P=r.current;P||I();const _=Sr(P);r.current=null,_&&(u.cancel(),_.removeAttribute(Pt.contextId),_.removeEventListener("scroll",g,Lt(P.scrollOptions)))},[g,u]),y=H(P=>{const _=r.current;_||I();const L=Sr(_);L||I(),L.scrollTop+=P.y,L.scrollLeft+=P.x},[]),$=oe(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:p,dragStopped:m,scroll:y}),[m,h,p,y]),A=oe(()=>({uniqueId:t,descriptor:l,callbacks:$}),[$,l,t]);Se(()=>(s.current=A.descriptor,n.droppable.register(A),()=>{r.current&&m(),n.droppable.unregister(A)}),[$,l,m,A,a,n.droppable]),Se(()=>{r.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Se(()=>{r.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function go(){}const Ft={width:0,height:0,margin:Yb},Gx=({isAnimatingOpenOnMount:e,placeholder:r,animate:o})=>e||o==="close"?Ft:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin},Hx=({isAnimatingOpenOnMount:e,placeholder:r,animate:o})=>{const t=Gx({isAnimatingOpenOnMount:e,placeholder:r,animate:o});return{display:r.display,boxSizing:"border-box",width:t.width,height:t.height,marginTop:t.margin.top,marginRight:t.margin.right,marginBottom:t.margin.bottom,marginLeft:t.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:o!=="none"?ur.placeholder:null}},jx=e=>{const r=F.useRef(null),o=H(()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),{animate:t,onTransitionEnd:n,onClose:a,contextId:i}=e,[l,s]=F.useState(e.animate==="open");F.useEffect(()=>l?t!=="open"?(o(),s(!1),go):r.current?go:(r.current=setTimeout(()=>{r.current=null,s(!1)}),o):go,[t,l,o]);const d=H(c=>{c.propertyName==="height"&&(n(),t==="close"&&a())},[t,a,n]),f=Hx({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return U.createElement(e.placeholder.tagName,{style:f,"data-rfd-placeholder-context-id":i,onTransitionEnd:d,ref:e.innerRef})};var Ux=U.memo(jx);class Vx extends U.PureComponent{constructor(...r){super(...r),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(r,o){return r.shouldAnimate?r.on?{isVisible:!0,data:r.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!r.on,data:r.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const r={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(r)}}const qx=e=>{const r=F.useContext(Jr);r||I();const{contextId:o,isMovementAllowed:t}=r,n=F.useRef(null),a=F.useRef(null),{children:i,droppableId:l,type:s,mode:d,direction:f,ignoreContainerClipping:c,isDropDisabled:u,isCombineEnabled:g,snapshot:h,useClone:p,updateViewportMaxScroll:m,getContainerForClone:y}=e,$=H(()=>n.current,[]),A=H((V=null)=>{n.current=V},[]);H(()=>a.current,[]);const P=H((V=null)=>{a.current=V},[]),_=H(()=>{t()&&m({maxScroll:Hn()})},[t,m]);Wx({droppableId:l,type:s,mode:d,direction:f,isDropDisabled:u,isCombineEnabled:g,ignoreContainerClipping:c,getDroppableRef:$});const L=oe(()=>U.createElement(Vx,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:V,data:D,animate:E})=>U.createElement(Ux,{placeholder:D,onClose:V,innerRef:P,animate:E,contextId:o,onTransitionEnd:_})),[o,_,e.placeholder,e.shouldAnimatePlaceholder,P]),j=oe(()=>({innerRef:A,placeholder:L,droppableProps:{"data-rfd-droppable-id":l,"data-rfd-droppable-context-id":o}}),[o,l,L,A]),q=p?p.dragging.draggableId:null,re=oe(()=>({droppableId:l,type:s,isUsingCloneFor:q}),[l,q,s]);function Q(){if(!p)return null;const{dragging:V,render:D}=p,E=U.createElement(ia,{draggableId:V.draggableId,index:V.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(b,v)=>D(b,v,V));return za.createPortal(E,y())}return U.createElement(Jo.Provider,{value:re},i(j,h),Q())};function Yx(){return document.body||I(),document.body}const Mt={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Yx},da=e=>{let r={...e},o;for(o in Mt)e[o]===void 0&&(r={...r,[o]:Mt[o]});return r},po=(e,r)=>e===r.droppable.type,Wt=(e,r)=>r.draggables[e.draggable.id],Xx=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r={...e,shouldAnimatePlaceholder:!1},o=ue(a=>({draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}})),t=ue((a,i,l,s,d,f)=>{const c=d.descriptor.id;if(d.descriptor.droppableId===a){const h=f?{render:f,dragging:o(d.descriptor)}:null,p={isDraggingOver:l,draggingOverWith:l?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:h}}if(!i)return r;if(!s)return e;const g={isDraggingOver:l,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:g,useClone:null}});return(a,i)=>{const l=da(i),s=l.droppableId,d=l.type,f=!l.isDropDisabled,c=l.renderClone;if(yr(a)){const u=a.critical;if(!po(d,u))return r;const g=Wt(u,a.dimensions),h=ze(a.impact)===s;return t(s,f,h,h,g,c)}if(a.phase==="DROP_ANIMATING"){const u=a.completed;if(!po(d,u.critical))return r;const g=Wt(u.critical,a.dimensions);return t(s,f,na(u.result)===s,ze(u.impact)===s,g,c)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){const u=a.completed;if(!po(d,u.critical))return r;const g=ze(u.impact)===s,h=!!(u.impact.at&&u.impact.at.type==="COMBINE"),p=u.critical.droppable.id===s;return g?h?e:r:p?e:r}return r}},Jx={updateViewportMaxScroll:iv},Kx=sn(Xx,Jx,(e,r,o)=>({...da(o),...e,...r}),{context:qo,areStatePropsEqual:ta})(qx),Rr=new WeakMap,Qx=`
|
|
103
|
-
/* Theme — CSS variables set by the host (EditorPanel.vue) */
|
|
104
|
-
/* Base */
|
|
105
|
-
.gz-editor {
|
|
106
|
-
font-family: system-ui, -apple-system, sans-serif; font-size: 0.875rem;
|
|
107
|
-
color: var(--gz-text, #e0e0e0);
|
|
108
|
-
transition: color 0.2s, background-color 0.2s;
|
|
109
|
-
}
|
|
110
|
-
.gz-editor * { box-sizing: border-box; }
|
|
111
|
-
.gz-editor .form-group { margin-bottom: 1rem; }
|
|
112
|
-
.gz-editor label {
|
|
113
|
-
display: block; font-weight: 600; font-size: 0.6875rem; text-transform: uppercase;
|
|
114
|
-
letter-spacing: 0.05em; color: var(--gz-text-label, #8888a0); margin-bottom: 0.375rem;
|
|
115
|
-
}
|
|
116
|
-
.gz-editor .field-description { font-size: 0.75rem; color: var(--gz-text-hint, #666680); margin-bottom: 0.375rem; line-height: 1.4; }
|
|
117
|
-
|
|
118
|
-
/* Inputs */
|
|
119
|
-
.gz-editor input[type="text"], .gz-editor input[type="number"], .gz-editor input[type="url"],
|
|
120
|
-
.gz-editor input[type="email"], .gz-editor input[type="password"],
|
|
121
|
-
.gz-editor textarea, .gz-editor select {
|
|
122
|
-
width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
|
|
123
|
-
background: var(--gz-bg-input, #161622); color: var(--gz-text, #e0e0e0); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
|
|
124
|
-
outline: none; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s;
|
|
125
|
-
}
|
|
126
|
-
.gz-editor input:focus, .gz-editor textarea:focus, .gz-editor select:focus {
|
|
127
|
-
border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent);
|
|
128
|
-
}
|
|
129
|
-
.gz-editor textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
|
|
130
|
-
.gz-editor select {
|
|
131
|
-
appearance: none; cursor: pointer;
|
|
132
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
133
|
-
background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* Hide rjsf chrome */
|
|
137
|
-
.gz-editor .btn { display: none; }
|
|
138
|
-
.gz-editor fieldset { border: none; padding: 0; margin: 0; }
|
|
139
|
-
.gz-editor legend { display: none; }
|
|
140
|
-
|
|
141
|
-
/* Errors */
|
|
142
|
-
.gz-editor .error-detail, .gz-editor .text-danger { color: var(--gz-error, #f87171); font-size: 0.75rem; margin-top: 0.25rem; }
|
|
143
|
-
.gz-editor .has-error input, .gz-editor .has-error textarea, .gz-editor .has-error select { border-color: color-mix(in srgb, var(--gz-error, #f87171) 50%, transparent); }
|
|
144
|
-
|
|
145
|
-
/* Required marker */
|
|
146
|
-
.gz-editor label .required { color: var(--gz-error, #f87171); margin-left: 0.125rem; }
|
|
147
|
-
|
|
148
|
-
/* ---- Toggle ---- */
|
|
149
|
-
.gz-editor .gz-toggle { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; user-select: none; padding: 0.25rem 0; }
|
|
150
|
-
.gz-editor .gz-toggle-track {
|
|
151
|
-
position: relative; width: 36px; height: 20px; border-radius: 10px;
|
|
152
|
-
background: var(--gz-border, #2a2a3a); transition: background 0.2s; flex-shrink: 0;
|
|
153
|
-
}
|
|
154
|
-
.gz-editor .gz-toggle-track.on { background: var(--gz-accent, #667eea); }
|
|
155
|
-
.gz-editor .gz-toggle-thumb {
|
|
156
|
-
position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
|
|
157
|
-
background: #fff; transition: transform 0.2s ease;
|
|
158
|
-
}
|
|
159
|
-
.gz-editor .gz-toggle-track.on .gz-toggle-thumb { transform: translateX(16px); }
|
|
160
|
-
.gz-editor .gz-toggle-label { font-size: 0.8125rem; color: var(--gz-text-secondary, #ccc); font-weight: 400; text-transform: none; letter-spacing: 0; }
|
|
161
|
-
|
|
162
|
-
/* ---- Color ---- */
|
|
163
|
-
.gz-editor .gz-color-widget { display: flex; align-items: center; gap: 0.5rem; }
|
|
164
|
-
.gz-editor .gz-color-widget input[type="color"] {
|
|
165
|
-
width: 36px; height: 36px; border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
|
|
166
|
-
padding: 2px; cursor: pointer; background: transparent;
|
|
167
|
-
}
|
|
168
|
-
.gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
|
|
169
|
-
.gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch { border-radius: 3px; border: none; }
|
|
170
|
-
.gz-editor .gz-color-widget input[type="text"] { flex: 1; }
|
|
171
|
-
|
|
172
|
-
/* ---- Tags ---- */
|
|
173
|
-
.gz-editor .gz-tags {
|
|
174
|
-
display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.375rem 0.5rem;
|
|
175
|
-
background: var(--gz-bg-input, #161622); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
|
|
176
|
-
min-height: 2.5rem; align-items: center; cursor: text; transition: border-color 0.15s, box-shadow 0.15s;
|
|
177
|
-
}
|
|
178
|
-
.gz-editor .gz-tags:focus-within { border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent); }
|
|
179
|
-
.gz-editor .gz-tag {
|
|
180
|
-
display: inline-flex; align-items: center; gap: 0.25rem;
|
|
181
|
-
padding: 0.1875rem 0.5rem 0.1875rem 0.625rem;
|
|
182
|
-
background: var(--gz-bg-chip, #252538); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 4px;
|
|
183
|
-
font-size: 0.8125rem; color: var(--gz-text-secondary, #ccc); transition: background 0.1s;
|
|
184
|
-
}
|
|
185
|
-
.gz-editor .gz-tag:hover { background: var(--gz-bg-chip, #252538); filter: brightness(1.1); }
|
|
186
|
-
.gz-editor .gz-tag-remove {
|
|
187
|
-
background: none; border: none; color: var(--gz-text-hint, #666); cursor: pointer; font-size: 1rem;
|
|
188
|
-
padding: 0; line-height: 1; display: flex; align-items: center;
|
|
189
|
-
}
|
|
190
|
-
.gz-editor .gz-tag-remove:hover { color: var(--gz-error, #f87171); }
|
|
191
|
-
.gz-editor .gz-tags-input {
|
|
192
|
-
border: none !important; background: transparent !important; color: var(--gz-text, #e0e0e0); font-size: 0.8125rem;
|
|
193
|
-
outline: none !important; min-width: 80px; flex: 1; padding: 0.125rem 0;
|
|
194
|
-
box-shadow: none !important;
|
|
195
|
-
}
|
|
196
|
-
.gz-editor .gz-tags-empty { color: var(--gz-text-hint, #444); font-size: 0.75rem; padding: 0.25rem 0; }
|
|
197
|
-
|
|
198
|
-
/* ---- Image ---- */
|
|
199
|
-
.gz-editor .gz-image-preview {
|
|
200
|
-
margin-top: 0.5rem; border-radius: 6px; overflow: hidden;
|
|
201
|
-
background: var(--gz-bg-input, #161622); border: 1px dashed var(--gz-border, #2a2a3a); transition: border-color 0.15s;
|
|
202
|
-
}
|
|
203
|
-
.gz-editor .gz-image-preview.has-image { border-style: solid; }
|
|
204
|
-
.gz-editor .gz-image-preview img { display: block; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; }
|
|
205
|
-
.gz-editor .gz-image-preview-empty {
|
|
206
|
-
padding: 2rem; text-align: center; color: var(--gz-text-hint, #444); font-size: 0.75rem;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/* ---- Slug ---- */
|
|
210
|
-
.gz-editor .gz-slug-widget input {
|
|
211
|
-
font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; letter-spacing: 0.02em;
|
|
212
|
-
}
|
|
213
|
-
.gz-editor .gz-slug-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
|
|
214
|
-
|
|
215
|
-
/* ---- Code ---- */
|
|
216
|
-
.gz-editor .gz-code-widget textarea {
|
|
217
|
-
font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
|
|
218
|
-
line-height: 1.6; min-height: 10rem; tab-size: 2;
|
|
219
|
-
}
|
|
220
|
-
.gz-editor .gz-code-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
|
|
221
|
-
|
|
222
|
-
/* ---- JSON ---- */
|
|
223
|
-
.gz-editor .gz-json-widget textarea {
|
|
224
|
-
font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
|
|
225
|
-
line-height: 1.6; min-height: 8rem; tab-size: 2;
|
|
226
|
-
}
|
|
227
|
-
.gz-editor .gz-json-error { font-size: 0.6875rem; color: var(--gz-error, #f87171); margin-top: 0.25rem; }
|
|
228
|
-
.gz-editor .gz-json-valid { font-size: 0.6875rem; color: var(--gz-success, #4ade80); margin-top: 0.25rem; }
|
|
229
|
-
|
|
230
|
-
/* ---- Markdown ---- */
|
|
231
|
-
.gz-editor .gz-markdown textarea {
|
|
232
|
-
min-height: 12rem; font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
233
|
-
font-size: 0.8125rem; line-height: 1.6;
|
|
234
|
-
}
|
|
235
|
-
.gz-editor .gz-markdown-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
|
|
236
|
-
|
|
237
|
-
/* ---- Rich text (Tiptap) ---- */
|
|
238
|
-
.gz-editor .gz-richtext {
|
|
239
|
-
border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px; overflow: hidden;
|
|
240
|
-
background: var(--gz-bg-input, #161622); transition: border-color 0.15s, box-shadow 0.15s;
|
|
241
|
-
}
|
|
242
|
-
.gz-editor .gz-richtext:focus-within { border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent); }
|
|
243
|
-
.gz-editor .gz-richtext-toolbar {
|
|
244
|
-
display: flex; flex-wrap: wrap; gap: 1px; padding: 0.25rem;
|
|
245
|
-
border-bottom: 1px solid var(--gz-border-subtle, #1e1e2e); background: var(--gz-bg-toolbar, #1a1a2a);
|
|
246
|
-
}
|
|
247
|
-
.gz-editor .gz-rt-btn {
|
|
248
|
-
background: none; border: 1px solid transparent; border-radius: 4px;
|
|
249
|
-
color: var(--gz-text-hint, #777); cursor: pointer; padding: 0.3125rem 0.5rem; font-size: 0.6875rem;
|
|
250
|
-
font-family: inherit; line-height: 1; font-weight: 600; transition: all 0.1s;
|
|
251
|
-
display: flex; align-items: center; justify-content: center; min-width: 28px;
|
|
252
|
-
}
|
|
253
|
-
.gz-editor .gz-rt-btn:hover { color: var(--gz-text-secondary, #ccc); background: var(--gz-bg-chip, #252538); }
|
|
254
|
-
.gz-editor .gz-rt-btn.active { color: var(--gz-accent, #667eea); background: var(--gz-bg-chip, #252538); border-color: color-mix(in srgb, var(--gz-accent, #667eea) 20%, transparent); }
|
|
255
|
-
.gz-editor .gz-rt-sep { width: 1px; background: var(--gz-bg-chip, #252538); margin: 0.125rem 0.25rem; align-self: stretch; }
|
|
256
|
-
|
|
257
|
-
/* Tiptap content area */
|
|
258
|
-
.gz-editor .gz-richtext .tiptap { outline: none; padding: 0.75rem; min-height: 10rem; color: var(--gz-text, #e0e0e0); font-size: 0.875rem; line-height: 1.7; }
|
|
259
|
-
.gz-editor .gz-richtext .tiptap p { margin: 0.25rem 0; }
|
|
260
|
-
.gz-editor .gz-richtext .tiptap h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.25rem; color: var(--gz-text, #e0e0e0); }
|
|
261
|
-
.gz-editor .gz-richtext .tiptap h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: var(--gz-text, #e0e0e0); }
|
|
262
|
-
.gz-editor .gz-richtext .tiptap ul, .gz-editor .gz-richtext .tiptap ol { padding-left: 1.25rem; margin: 0.25rem 0; }
|
|
263
|
-
.gz-editor .gz-richtext .tiptap li { margin: 0.125rem 0; }
|
|
264
|
-
.gz-editor .gz-richtext .tiptap blockquote {
|
|
265
|
-
border-left: 3px solid color-mix(in srgb, var(--gz-accent, #667eea) 25%, transparent); padding-left: 0.875rem; margin: 0.5rem 0;
|
|
266
|
-
color: var(--gz-text-secondary, #999); font-style: italic;
|
|
267
|
-
}
|
|
268
|
-
.gz-editor .gz-richtext .tiptap code {
|
|
269
|
-
background: var(--gz-bg-chip, #252538); padding: 0.125rem 0.375rem; border-radius: 3px;
|
|
270
|
-
font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
|
|
271
|
-
}
|
|
272
|
-
.gz-editor .gz-richtext .tiptap pre {
|
|
273
|
-
background: var(--gz-bg-code, #12121e); padding: 0.875rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0;
|
|
274
|
-
}
|
|
275
|
-
.gz-editor .gz-richtext .tiptap pre code { background: none; padding: 0; }
|
|
276
|
-
.gz-editor .gz-richtext .tiptap a { color: var(--gz-accent, #667eea); text-decoration: underline; cursor: pointer; }
|
|
277
|
-
.gz-editor .gz-richtext .tiptap hr { border: none; border-top: 1px solid var(--gz-border, #2a2a3a); margin: 1rem 0; }
|
|
278
|
-
.gz-editor .gz-richtext .tiptap p.is-editor-empty:first-child::before {
|
|
279
|
-
content: attr(data-placeholder); float: left; color: var(--gz-text-hint, #444); pointer-events: none; height: 0;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/* Bubble menu */
|
|
283
|
-
.gz-editor .gz-bubble {
|
|
284
|
-
display: flex; gap: 1px; background: var(--gz-bg-toolbar, #1a1a2a); border: 1px solid var(--gz-border, #2a2a3a);
|
|
285
|
-
border-radius: 6px; padding: 0.1875rem; box-shadow: 0 4px 16px #0008;
|
|
286
|
-
}
|
|
287
|
-
.gz-editor .gz-bubble .gz-rt-btn { padding: 0.25rem 0.4375rem; font-size: 0.625rem; }
|
|
288
|
-
|
|
289
|
-
/* ---- Array ---- */
|
|
290
|
-
.gz-editor .gz-array { margin-bottom: 0.25rem; }
|
|
291
|
-
.gz-editor .gz-array-header {
|
|
292
|
-
display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.375rem;
|
|
293
|
-
border-bottom: 1px solid var(--gz-border-subtle, #1e1e2e);
|
|
294
|
-
}
|
|
295
|
-
.gz-editor .gz-array-title {
|
|
296
|
-
font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
|
|
297
|
-
letter-spacing: 0.05em; color: var(--gz-text-label, #8888a0);
|
|
298
|
-
}
|
|
299
|
-
.gz-editor .gz-array-count {
|
|
300
|
-
font-size: 0.625rem; color: var(--gz-text-hint, #555); background: var(--gz-border-subtle, #1e1e2e);
|
|
301
|
-
padding: 0.0625rem 0.4375rem; border-radius: 8px; font-weight: 600;
|
|
302
|
-
}
|
|
303
|
-
.gz-editor .gz-array-add {
|
|
304
|
-
margin-left: auto; background: none; border: 1px solid color-mix(in srgb, var(--gz-accent, #667eea) 20%, transparent);
|
|
305
|
-
color: var(--gz-accent, #667eea); cursor: pointer; font-size: 0.6875rem; font-weight: 600;
|
|
306
|
-
padding: 0.25rem 0.625rem; border-radius: 4px; transition: all 0.15s;
|
|
307
|
-
}
|
|
308
|
-
.gz-editor .gz-array-add:hover { background: color-mix(in srgb, var(--gz-accent, #667eea) 8%, transparent); border-color: color-mix(in srgb, var(--gz-accent, #667eea) 30%, transparent); }
|
|
309
|
-
.gz-editor .gz-array-items { display: flex; flex-direction: column; gap: 0.25rem; }
|
|
310
|
-
|
|
311
|
-
/* Array items — collapsible */
|
|
312
|
-
.gz-editor .gz-array-item {
|
|
313
|
-
background: var(--gz-bg-card, #1a1a28); border-radius: 6px; border: 1px solid var(--gz-border-subtle, #1e1e2e);
|
|
314
|
-
transition: border-color 0.15s;
|
|
315
|
-
}
|
|
316
|
-
.gz-editor .gz-array-item:hover { border-color: var(--gz-border, #2a2a3a); }
|
|
317
|
-
.gz-editor .gz-array-item.dragging { opacity: 0.9; box-shadow: 0 4px 20px #0006; border-color: color-mix(in srgb, var(--gz-accent, #667eea) 25%, transparent); }
|
|
318
|
-
.gz-editor .gz-array-item-header {
|
|
319
|
-
display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.625rem;
|
|
320
|
-
cursor: pointer; user-select: none; min-height: 36px;
|
|
321
|
-
}
|
|
322
|
-
.gz-editor .gz-array-item-handle {
|
|
323
|
-
color: var(--gz-text-hint, #444); font-size: 0.625rem; cursor: grab; flex-shrink: 0; padding: 0.25rem 0.125rem;
|
|
324
|
-
opacity: 0; transition: opacity 0.1s; display: flex; align-items: center; letter-spacing: 1px;
|
|
325
|
-
}
|
|
326
|
-
.gz-editor .gz-array-item:hover .gz-array-item-handle { opacity: 1; }
|
|
327
|
-
.gz-editor .gz-array-item-handle:active { cursor: grabbing; color: var(--gz-accent, #667eea); }
|
|
328
|
-
.gz-editor .gz-array-item-chevron {
|
|
329
|
-
color: var(--gz-text-hint, #444); font-size: 0.5rem; transition: transform 0.15s ease; flex-shrink: 0; width: 12px; text-align: center;
|
|
330
|
-
}
|
|
331
|
-
.gz-editor .gz-array-item-chevron.open { transform: rotate(90deg); }
|
|
332
|
-
.gz-editor .gz-array-item-summary {
|
|
333
|
-
flex: 1; font-size: 0.8125rem; color: var(--gz-text-secondary, #999); white-space: nowrap;
|
|
334
|
-
overflow: hidden; text-overflow: ellipsis; min-width: 0;
|
|
335
|
-
}
|
|
336
|
-
.gz-editor .gz-array-item-summary.empty { color: var(--gz-text-hint, #444); font-style: italic; }
|
|
337
|
-
.gz-editor .gz-array-item-idx {
|
|
338
|
-
font-size: 0.625rem; color: var(--gz-text-hint, #444); font-weight: 600; flex-shrink: 0;
|
|
339
|
-
min-width: 1rem; text-align: center;
|
|
340
|
-
}
|
|
341
|
-
.gz-editor .gz-array-item-actions { display: flex; gap: 1px; flex-shrink: 0; opacity: 0; transition: opacity 0.1s; }
|
|
342
|
-
.gz-editor .gz-array-item:hover .gz-array-item-actions { opacity: 1; }
|
|
343
|
-
.gz-editor .gz-array-item-body {
|
|
344
|
-
padding: 0 0.75rem 0.75rem; overflow: hidden;
|
|
345
|
-
transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
|
|
346
|
-
}
|
|
347
|
-
.gz-editor .gz-array-item-body.collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
|
|
348
|
-
.gz-editor .gz-array-item-body.expanded { max-height: 2000px; opacity: 1; }
|
|
349
|
-
.gz-editor .gz-array-item-body .form-group:last-child { margin-bottom: 0; }
|
|
350
|
-
.gz-editor .gz-array-item-body fieldset > .form-group:last-child { margin-bottom: 0; }
|
|
351
|
-
|
|
352
|
-
/* Icon buttons */
|
|
353
|
-
.gz-editor .gz-btn-icon {
|
|
354
|
-
width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
|
|
355
|
-
background: transparent; border: none; border-radius: 3px; color: var(--gz-text-hint, #555); cursor: pointer;
|
|
356
|
-
font-size: 0.6875rem; padding: 0; transition: all 0.1s;
|
|
357
|
-
}
|
|
358
|
-
.gz-editor .gz-btn-icon:hover { background: var(--gz-bg-chip, #252538); color: var(--gz-text-secondary, #ccc); }
|
|
359
|
-
.gz-editor .gz-btn-icon:disabled { opacity: 0.25; cursor: default; }
|
|
360
|
-
.gz-editor .gz-btn-icon:disabled:hover { background: transparent; color: var(--gz-text-hint, #555); }
|
|
361
|
-
.gz-editor .gz-btn-icon.gz-btn-remove:hover { background: color-mix(in srgb, var(--gz-error, #f87171) 15%, transparent); color: var(--gz-error, #f87171); }
|
|
362
|
-
|
|
363
|
-
/* Array empty state */
|
|
364
|
-
.gz-editor .gz-array-empty {
|
|
365
|
-
padding: 1.5rem; text-align: center; border: 1px dashed var(--gz-border-subtle, #1e1e2e); border-radius: 6px;
|
|
366
|
-
color: var(--gz-text-hint, #444); font-size: 0.8125rem;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/* Nested objects in arrays */
|
|
370
|
-
.gz-editor .gz-object-inline { }
|
|
371
|
-
.gz-editor .gz-object-inline > .form-group { margin-bottom: 0.625rem; }
|
|
372
|
-
`,Zx=new Set(["body","description","text","content","bio","summary","message","notes","output"]),ek=new Set(["href","url","link","src"]),rk=new Set(["background","color"]);function ok(e){const r={"ui:submitButtonOptions":{norender:!0}},o=e.properties;if(!o)return r;for(const[t,n]of Object.entries(o)){const a=n.format,i=n.type,l=n.field;if(l){r[t]={"ui:widget":`custom-field:${l}`};continue}if(a==="markdown"||a==="richtext"||a==="image"||a==="link"||a==="slug"||a==="code"||a==="json"){r[t]={"ui:widget":a};continue}if(a==="color"){r[t]={"ui:widget":"color"};continue}if(i==="string"&&!a&&(Zx.has(t)?r[t]={"ui:widget":"textarea","ui:options":{rows:5}}:ek.has(t)?r[t]={"ui:options":{inputType:"url"}}:rk.has(t)&&(r[t]={"ui:widget":"color"})),i==="boolean"&&(r[t]={"ui:widget":"toggle"}),i==="array"){const s=n.items;(s==null?void 0:s.type)==="string"&&(r[t]={"ui:widget":"tags"})}}return r}function tk(e){if(!e||typeof e!="object")return String(e??"");const r=e;for(const o of["title","name","label","heading","text","quote","command"])if(typeof r[o]=="string"&&r[o])return r[o];for(const o of Object.values(r))if(typeof o=="string"&&o.trim())return o.trim();return""}function nk(e){return R.jsxs("div",{className:"gz-markdown",children:[R.jsx("textarea",{value:e.value??"",onChange:r=>e.onChange(r.target.value),placeholder:"Write markdown here...",rows:12}),R.jsx("div",{className:"gz-markdown-hint",children:"Markdown supported"})]})}function ak(e){const r=!!e.value;return R.jsxs("div",{className:"gz-toggle",onClick:()=>!e.disabled&&!e.readonly&&e.onChange(!r),role:"switch","aria-checked":r,children:[R.jsx("div",{className:`gz-toggle-track${r?" on":""}`,children:R.jsx("div",{className:"gz-toggle-thumb"})}),e.label&&R.jsx("span",{className:"gz-toggle-label",children:e.label})]})}function ik(e){const r=e.value??"";return R.jsxs("div",{className:"gz-color-widget",children:[R.jsx("input",{type:"color",value:r||"#667eea",onChange:o=>e.onChange(o.target.value)}),R.jsx("input",{type:"text",value:r,onChange:o=>e.onChange(o.target.value),placeholder:"#667eea"})]})}function lk(e){const r=Array.isArray(e.value)?e.value:[],[o,t]=U.useState(""),n=U.useRef(null),a=s=>{const d=s.trim();d&&!r.includes(d)&&e.onChange([...r,d]),t("")},i=s=>e.onChange(r.filter((d,f)=>f!==s)),l=s=>{s.key==="Enter"||s.key===","?(s.preventDefault(),a(o)):s.key==="Backspace"&&!o&&r.length>0&&i(r.length-1)};return R.jsxs("div",{className:"gz-tags",onClick:()=>{var s;return(s=n.current)==null?void 0:s.focus()},children:[r.map((s,d)=>R.jsxs("span",{className:"gz-tag",children:[s,R.jsx("button",{type:"button",className:"gz-tag-remove",onClick:f=>{f.stopPropagation(),i(d)},"aria-label":`Remove ${s}`,children:"×"})]},`${s}-${d}`)),R.jsx("input",{ref:n,className:"gz-tags-input",value:o,onChange:s=>t(s.target.value),onKeyDown:l,onBlur:()=>{o&&a(o)},placeholder:r.length===0?"Type and press Enter...":""})]})}function sk(e){const r=e.value??"",[o,t]=U.useState(!1);return U.useEffect(()=>{t(!1)},[r]),R.jsxs("div",{children:[R.jsx("input",{type:"text",value:r,onChange:n=>e.onChange(n.target.value),placeholder:"https://example.com/image.png"}),R.jsx("div",{className:`gz-image-preview${r&&!o?" has-image":""}`,children:r&&!o?R.jsx("img",{src:r,alt:"Preview",onError:()=>t(!0)}):R.jsx("div",{className:"gz-image-preview-empty",children:r?"Image failed to load":"Paste an image URL above"})})]})}function ck(e){return R.jsx("input",{type:"url",value:e.value??"",onChange:r=>e.onChange(r.target.value),placeholder:"https://..."})}function dk(e){const r=o=>o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return R.jsxs("div",{className:"gz-slug-widget",children:[R.jsx("input",{type:"text",value:e.value??"",onChange:o=>e.onChange(r(o.target.value)),placeholder:"my-page-slug"}),R.jsx("div",{className:"gz-slug-hint",children:"URL-safe identifier — lowercase, hyphens only"})]})}function uk(e){const r=e.schema.language;return R.jsxs("div",{className:"gz-code-widget",children:[R.jsx("textarea",{value:e.value??"",onChange:o=>e.onChange(o.target.value),placeholder:e.placeholder,rows:15,spellCheck:!1}),r&&R.jsx("div",{className:"gz-code-hint",children:r})]})}function fk(e){const[r,o]=U.useState(null),[t,n]=U.useState(()=>e.value==null?"":typeof e.value=="string"?e.value:JSON.stringify(e.value,null,2)),a=()=>{if(!t.trim()){o(null);return}try{JSON.parse(t),o(null)}catch{o("Invalid JSON")}},i=l=>{n(l);try{const s=JSON.parse(l);o(null),e.onChange(s)}catch{}};return R.jsxs("div",{className:"gz-json-widget",children:[R.jsx("textarea",{value:t,onChange:l=>i(l.target.value),onBlur:a,placeholder:'{ "key": "value" }',rows:10,spellCheck:!1}),r&&R.jsx("div",{className:"gz-json-error",children:r})]})}function gk(e){const r=U.useRef(e.onChange);r.current=e.onChange;const o=Ea({extensions:[Ia.configure({heading:{levels:[2,3]},codeBlock:{HTMLAttributes:{spellcheck:"false"}}}),Pa.configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer"}}),Aa.configure({placeholder:"Start writing..."})],content:e.value||"",onUpdate:({editor:a})=>r.current(a.getHTML()),immediatelyRender:!0});if(!o)return null;const t=({active:a,onClick:i,children:l})=>R.jsx("button",{type:"button",className:`gz-rt-btn${a?" active":""}`,onMouseDown:s=>{s.preventDefault(),i()},children:l}),n=()=>{const a=o.getAttributes("link").href,i=prompt("URL:",a??"https://");if(i!==null){if(i===""){o.chain().focus().extendMarkRange("link").unsetLink().run();return}o.chain().focus().extendMarkRange("link").setLink({href:i}).run()}};return R.jsxs("div",{className:"gz-richtext",children:[R.jsxs("div",{className:"gz-richtext-toolbar",children:[R.jsx(t,{active:o.isActive("bold"),onClick:()=>o.chain().focus().toggleBold().run(),children:"B"}),R.jsx(t,{active:o.isActive("italic"),onClick:()=>o.chain().focus().toggleItalic().run(),children:"I"}),R.jsx(t,{active:o.isActive("strike"),onClick:()=>o.chain().focus().toggleStrike().run(),children:"S"}),R.jsx(t,{active:o.isActive("code"),onClick:()=>o.chain().focus().toggleCode().run(),children:"</>"}),R.jsx("div",{className:"gz-rt-sep"}),R.jsx(t,{active:o.isActive("heading",{level:2}),onClick:()=>o.chain().focus().toggleHeading({level:2}).run(),children:"H2"}),R.jsx(t,{active:o.isActive("heading",{level:3}),onClick:()=>o.chain().focus().toggleHeading({level:3}).run(),children:"H3"}),R.jsx("div",{className:"gz-rt-sep"}),R.jsx(t,{active:o.isActive("bulletList"),onClick:()=>o.chain().focus().toggleBulletList().run(),children:"•"}),R.jsx(t,{active:o.isActive("orderedList"),onClick:()=>o.chain().focus().toggleOrderedList().run(),children:"1."}),R.jsx(t,{active:o.isActive("blockquote"),onClick:()=>o.chain().focus().toggleBlockquote().run(),children:"“"}),R.jsx("div",{className:"gz-rt-sep"}),R.jsx(t,{active:o.isActive("link"),onClick:n,children:"Link"}),R.jsx(t,{onClick:()=>o.chain().focus().setHorizontalRule().run(),children:"—"}),R.jsx(t,{active:o.isActive("codeBlock"),onClick:()=>o.chain().focus().toggleCodeBlock().run(),children:"Code"})]}),R.jsx(Oa,{editor:o,children:R.jsxs("div",{className:"gz-bubble",children:[R.jsx(t,{active:o.isActive("bold"),onClick:()=>o.chain().focus().toggleBold().run(),children:"B"}),R.jsx(t,{active:o.isActive("italic"),onClick:()=>o.chain().focus().toggleItalic().run(),children:"I"}),R.jsx(t,{active:o.isActive("strike"),onClick:()=>o.chain().focus().toggleStrike().run(),children:"S"}),R.jsx(t,{active:o.isActive("code"),onClick:()=>o.chain().focus().toggleCode().run(),children:"</>"}),R.jsx(t,{active:o.isActive("link"),onClick:n,children:"Link"})]})}),R.jsx(Ta,{editor:o})]})}function pk(e){var n;const r=e.registry.formContext,o=((n=e.fieldPathId)==null?void 0:n.$id)??"",t=a=>{!a.destination||a.source.index===a.destination.index||r==null||r.reorderArray(o,a.source.index,a.destination.index)};return e.items.length===0?R.jsxs("div",{className:"gz-array",children:[R.jsxs("div",{className:"gz-array-header",children:[e.title&&R.jsx("span",{className:"gz-array-title",children:e.title}),R.jsx("span",{className:"gz-array-count",children:"0"})]}),R.jsxs("div",{className:"gz-array-empty",children:["No items yet",e.canAdd&&R.jsx("div",{style:{marginTop:"0.5rem"},children:R.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onAddClick,children:"+ Add first item"})})]})]}):R.jsxs("div",{className:"gz-array",children:[R.jsxs("div",{className:"gz-array-header",children:[e.title&&R.jsx("span",{className:"gz-array-title",children:e.title}),R.jsx("span",{className:"gz-array-count",children:e.items.length}),e.canAdd&&R.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onAddClick,children:"+ Add"})]}),R.jsx(ux,{onDragEnd:t,children:R.jsx(Kx,{droppableId:o||"array",children:a=>R.jsxs("div",{className:"gz-array-items",ref:a.innerRef,...a.droppableProps,children:[e.items,a.placeholder]})})})]})}function mk(e){var a;const[r,o]=U.useState(!0),t=tk(e.formData),n=`${((a=e.buttonsProps.fieldPathId)==null?void 0:a.$id)??"item"}-${e.index}`;return R.jsx(Ex,{draggableId:n,index:e.index,children:(i,l)=>R.jsxs("div",{className:`gz-array-item${l.isDragging?" dragging":""}`,ref:i.innerRef,...i.draggableProps,children:[R.jsxs("div",{className:"gz-array-item-header",onClick:()=>o(!r),children:[R.jsx("span",{className:"gz-array-item-handle",...i.dragHandleProps,onClick:s=>s.stopPropagation(),children:"⠁⠁"}),R.jsx("span",{className:`gz-array-item-chevron${r?" open":""}`,children:"▶"}),R.jsx("span",{className:"gz-array-item-idx",children:e.index+1}),!r&&R.jsx("span",{className:`gz-array-item-summary${t?"":" empty"}`,children:t||"Empty item"}),R.jsx("div",{className:"gz-array-item-actions",onClick:s=>s.stopPropagation(),children:R.jsx(ua,{...e.buttonsProps})})]}),R.jsx("div",{className:`gz-array-item-body ${r?"expanded":"collapsed"}`,children:e.children})]})})}function ua(e){return R.jsxs(R.Fragment,{children:[e.hasMoveUp&&R.jsx("button",{type:"button",className:"gz-btn-icon",onClick:e.onMoveUpItem,title:"Move up",children:"↑"}),e.hasMoveDown&&R.jsx("button",{type:"button",className:"gz-btn-icon",onClick:e.onMoveDownItem,title:"Move down",children:"↓"}),e.hasRemove&&R.jsx("button",{type:"button",className:"gz-btn-icon gz-btn-remove",onClick:e.onRemoveItem,title:"Remove",children:"×"})]})}function bk(e){var o;return((o=e.fieldPathId)==null?void 0:o.$id)==="root"?R.jsx(R.Fragment,{children:e.properties.map(t=>t.content)}):R.jsx("div",{className:"gz-object-inline",children:e.properties.map(t=>t.content)})}function hk(e){return R.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onClick,disabled:e.disabled,children:"+ Add"})}const Gt=new Map;function vk(e){const r=Gt.get(e);if(r)return r;const o=t=>{var u;const n=U.useRef(null),a=U.useRef(null),i=U.useRef(!1),[l,s]=U.useState(!0),[d,f]=U.useState(null),c=(u=t.registry)==null?void 0:u.formContext;return U.useEffect(()=>{if(!(c!=null&&c.fieldsBaseUrl)){f("No fields base URL configured"),s(!1);return}const g=`${c.fieldsBaseUrl}/${e}`;(async()=>{for(const h of[".tsx",".ts",".js"])try{const p=await ho(()=>import(`${g}${h}`),[]);a.current=p.default??p,s(!1);return}catch{}f(`Failed to load field "${e}"`),s(!1)})()},[c==null?void 0:c.fieldsBaseUrl]),U.useEffect(()=>{if(l||!n.current||!a.current)return;const g=n.current,h=a.current;return h.mount(g,{value:t.value,schema:t.schema,theme:(c==null?void 0:c.theme)??"dark",onChange:p=>t.onChange(p)}),i.current=!0,()=>{h.unmount(g),i.current=!1}},[l]),U.useEffect(()=>{!i.current||!n.current||!a.current||a.current.mount(n.current,{value:t.value,schema:t.schema,theme:(c==null?void 0:c.theme)??"dark",onChange:g=>t.onChange(g)})},[t.value]),l?R.jsxs("div",{style:{color:"var(--gz-text-hint)",fontSize:"0.75rem",padding:"0.5rem 0"},children:["Loading ",e,"..."]}):d?R.jsx("div",{style:{color:"var(--gz-error)",fontSize:"0.75rem"},children:d}):R.jsx("div",{ref:n})};return Gt.set(e,o),o}const yk={markdown:nk,toggle:ak,color:ik,tags:lk,richtext:gk,image:sk,link:ck,slug:dk,code:uk,json:fk};function xk(e){const r={...yk},o=e.properties;if(!o)return r;for(const t of Object.values(o)){const n=t.field;n&&(r[`custom-field:${n}`]=vk(n))}return r}const kk={ArrayFieldTemplate:pk,ArrayFieldItemTemplate:mk,ArrayFieldItemButtonsTemplate:ua,ObjectFieldTemplate:bk,ButtonTemplates:{AddButton:hk}};function fa({schema:e,content:r,onChange:o,fieldsBaseUrl:t,theme:n}){const a=U.useMemo(()=>ok(e),[e]),i=U.useMemo(()=>xk(e),[e]),[l,s]=U.useState(r),d=U.useRef(l);d.current=l;const f=U.useRef([]),c=U.useRef([]),u=U.useRef(!1),g=$=>{u.current||(f.current.push($),f.current.length>50&&f.current.shift(),c.current=[])},h=$=>{s($),o($)},p=$=>{g(d.current),s($.formData),o($.formData)};U.useEffect(()=>{const $=A=>{if((A.metaKey||A.ctrlKey)&&A.key==="z")if(A.preventDefault(),A.shiftKey){if(c.current.length===0)return;const P=c.current.pop();f.current.push(d.current),u.current=!0,h(P),u.current=!1}else{if(f.current.length===0)return;const P=f.current.pop();c.current.push(d.current),u.current=!0,h(P),u.current=!1}};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[]);const m=U.useCallback(($,A,P)=>{s(_=>{g(_);const j=$.replace(/^root_/,"").split("_")[0],q=_[j];if(!Array.isArray(q))return _;const re=[...q],[Q]=re.splice(A,1);re.splice(P,0,Q);const V={..._,[j]:re};return o(V),V})},[o]),y=U.useMemo(()=>({reorderArray:m,fieldsBaseUrl:t,theme:n}),[m,t,n]);return R.jsxs(R.Fragment,{children:[R.jsx("style",{children:Qx}),R.jsx("div",{className:"gz-editor",children:R.jsx(Ra,{schema:e,uiSchema:a,formData:l,onChange:p,validator:Da,widgets:i,templates:kk,formContext:y,liveValidate:!1,omitExtraData:!0,noHtml5Validate:!0,autoComplete:"off"})})]})}function ga(e){return{mount(r,{content:o,schema:t,theme:n,onChange:a,fieldsBaseUrl:i}){const l=Rr.get(r);l&&l.unmount();const s=Sa.createRoot(r);Rr.set(r,s),s.render(R.jsx(fa,{schema:t??e,content:o,theme:n,fieldsBaseUrl:i,onChange:a}))},unmount(r){const o=Rr.get(r);o&&(o.unmount(),Rr.delete(r))}}}const wk=Object.freeze(Object.defineProperty({__proto__:null,DefaultEditorForm:fa,createEditorMount:ga},Symbol.toStringTag,{value:"Module"})),Ck={key:0,class:"editor-error","data-testid":"editor-error"},$k={key:1,class:"editor-empty","data-testid":"editor-empty"},Bk={key:2},zk={key:1,class:"editor-no-schema"},Sk=we({__name:"EditorPanel",setup(e){const r=He(),o=Hr(),t=N(null),n=J(()=>{const g=r.schema;if(!g)return!1;const h=g.properties;return h&&Object.keys(h).length>0}),a=J(()=>!r.schema||!n.value?null:r.customEditorMount?r.customEditorMount:ga(r.schema)),i=J(()=>r.content),l=J(()=>r.schema),s=J(()=>o.dark?"dark":"light"),d=J(()=>r.mountVersion),f=J(()=>{var g;return(g=r.target)==null?void 0:g.fieldsBaseUrl});function c(g){r.markDirty(g)}A0(t,a,i,l,s,c,d,f),Ro("s",g=>{(g.metaKey||g.ctrlKey)&&(g.preventDefault(),r.dirty&&r.save())});const u=J(()=>o.dark?{"--gz-bg-input":"#161622","--gz-bg-card":"#1a1a28","--gz-bg-toolbar":"#1a1a2a","--gz-bg-chip":"#252538","--gz-bg-code":"#12121e","--gz-text":"#e0e0e0","--gz-text-secondary":"#ccc","--gz-text-label":"#8888a0","--gz-text-hint":"#444","--gz-border":"#2a2a3a","--gz-border-subtle":"#1e1e2e","--gz-accent":"#667eea","--gz-error":"#f87171","--gz-success":"#4ade80"}:{"--gz-bg-input":"#ffffff","--gz-bg-card":"#f9fafb","--gz-bg-toolbar":"#f3f4f6","--gz-bg-chip":"#e5e7eb","--gz-bg-code":"#f1f5f9","--gz-text":"#1a1a1a","--gz-text-secondary":"#4b5563","--gz-text-label":"#6b7280","--gz-text-hint":"#9ca3af","--gz-border":"#e5e7eb","--gz-border-subtle":"#f3f4f6","--gz-accent":"#667eea","--gz-error":"#dc2626","--gz-success":"#16a34a"});return(g,h)=>(S(),O("div",{class:"editor-panel","data-testid":"editor-panel",style:Wr(u.value)},[B(r).loadError?(S(),O("div",Ck,[h[0]||(h[0]=w("i",{class:"pi pi-exclamation-triangle"},null,-1)),w("p",null,ee(B(r).loadError),1)])):B(r).path?(S(),O("div",Bk,[w("h3",null,ee(B(r).template),1),n.value?(S(),O("div",{ref_key:"containerRef",ref:t,class:"editor-container","data-testid":"editor-container",key:B(r).path})):(S(),O("p",zk,"No editable content. Edit its children instead."))])):(S(),O("div",$k,[...h[1]||(h[1]=[w("i",{class:"pi pi-pencil",style:{"font-size":"2rem",opacity:"0.3","margin-bottom":"0.5rem"}},null,-1),w("p",null,"Select a component to edit",-1)])]))],4))}}),Rk=Re(Sk,[["__scopeId","data-v-568555bd"]]);var Ht=11;function Dk(e,r){var o=r.attributes,t,n,a,i,l;if(!(r.nodeType===Ht||e.nodeType===Ht)){for(var s=o.length-1;s>=0;s--)t=o[s],n=t.name,a=t.namespaceURI,i=t.value,a?(n=t.localName||n,l=e.getAttributeNS(a,n),l!==i&&(t.prefix==="xmlns"&&(n=t.name),e.setAttributeNS(a,n,i))):(l=e.getAttribute(n),l!==i&&e.setAttribute(n,i));for(var d=e.attributes,f=d.length-1;f>=0;f--)t=d[f],n=t.name,a=t.namespaceURI,a?(n=t.localName||n,r.hasAttributeNS(a,n)||e.removeAttributeNS(a,n)):r.hasAttribute(n)||e.removeAttribute(n)}}var Dr,Ek="http://www.w3.org/1999/xhtml",xe=typeof document>"u"?void 0:document,Ik=!!xe&&"content"in xe.createElement("template"),Pk=!!xe&&xe.createRange&&"createContextualFragment"in xe.createRange();function Ak(e){var r=xe.createElement("template");return r.innerHTML=e,r.content.childNodes[0]}function Ok(e){Dr||(Dr=xe.createRange(),Dr.selectNode(xe.body));var r=Dr.createContextualFragment(e);return r.childNodes[0]}function Tk(e){var r=xe.createElement("body");return r.innerHTML=e,r.childNodes[0]}function Nk(e){return e=e.trim(),Ik?Ak(e):Pk?Ok(e):Tk(e)}function Er(e,r){var o=e.nodeName,t=r.nodeName,n,a;return o===t?!0:(n=o.charCodeAt(0),a=t.charCodeAt(0),n<=90&&a>=97?o===t.toUpperCase():a<=90&&n>=97?t===o.toUpperCase():!1)}function _k(e,r){return!r||r===Ek?xe.createElement(e):xe.createElementNS(r,e)}function Lk(e,r){for(var o=e.firstChild;o;){var t=o.nextSibling;r.appendChild(o),o=t}return r}function mo(e,r,o){e[o]!==r[o]&&(e[o]=r[o],e[o]?e.setAttribute(o,""):e.removeAttribute(o))}var jt={OPTION:function(e,r){var o=e.parentNode;if(o){var t=o.nodeName.toUpperCase();t==="OPTGROUP"&&(o=o.parentNode,t=o&&o.nodeName.toUpperCase()),t==="SELECT"&&!o.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!r.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),o.selectedIndex=-1)}mo(e,r,"selected")},INPUT:function(e,r){mo(e,r,"checked"),mo(e,r,"disabled"),e.value!==r.value&&(e.value=r.value),r.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,r){var o=r.value;e.value!==o&&(e.value=o);var t=e.firstChild;if(t){var n=t.nodeValue;if(n==o||!o&&n==e.placeholder)return;t.nodeValue=o}},SELECT:function(e,r){if(!r.hasAttribute("multiple")){for(var o=-1,t=0,n=e.firstChild,a,i;n;)if(i=n.nodeName&&n.nodeName.toUpperCase(),i==="OPTGROUP")a=n,n=a.firstChild,n||(n=a.nextSibling,a=null);else{if(i==="OPTION"){if(n.hasAttribute("selected")){o=t;break}t++}n=n.nextSibling,!n&&a&&(n=a.nextSibling,a=null)}e.selectedIndex=o}}},sr=1,Ut=11,Vt=3,qt=8;function Fe(){}function Fk(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function Mk(e){return function(o,t,n){if(n||(n={}),typeof t=="string")if(o.nodeName==="#document"||o.nodeName==="HTML"){var a=t;t=xe.createElement("html"),t.innerHTML=a}else if(o.nodeName==="BODY"){var i=t;t=xe.createElement("html"),t.innerHTML=i;var l=t.querySelector("body");l&&(t=l)}else t=Nk(t);else t.nodeType===Ut&&(t=t.firstElementChild);var s=n.getNodeKey||Fk,d=n.onBeforeNodeAdded||Fe,f=n.onNodeAdded||Fe,c=n.onBeforeElUpdated||Fe,u=n.onElUpdated||Fe,g=n.onBeforeNodeDiscarded||Fe,h=n.onNodeDiscarded||Fe,p=n.onBeforeElChildrenUpdated||Fe,m=n.skipFromChildren||Fe,y=n.addChild||function(x,C){return x.appendChild(C)},$=n.childrenOnly===!0,A=Object.create(null),P=[];function _(x){P.push(x)}function L(x,C){if(x.nodeType===sr)for(var M=x.firstChild;M;){var G=void 0;C&&(G=s(M))?_(G):(h(M),M.firstChild&&L(M,C)),M=M.nextSibling}}function j(x,C,M){g(x)!==!1&&(C&&C.removeChild(x),h(x),L(x,M))}function q(x){if(x.nodeType===sr||x.nodeType===Ut)for(var C=x.firstChild;C;){var M=s(C);M&&(A[M]=C),q(C),C=C.nextSibling}}q(o);function re(x){f(x);for(var C=x.firstChild;C;){var M=C.nextSibling,G=s(C);if(G){var W=A[G];W&&Er(C,W)?(C.parentNode.replaceChild(W,C),V(W,C)):re(C)}else re(C);C=M}}function Q(x,C,M){for(;C;){var G=C.nextSibling;(M=s(C))?_(M):j(C,x,!0),C=G}}function V(x,C,M){var G=s(C);if(G&&delete A[G],!M){var W=c(x,C);if(W===!1||(W instanceof HTMLElement&&(x=W,q(x)),e(x,C),u(x),p(x,C)===!1))return}x.nodeName!=="TEXTAREA"?D(x,C):jt.TEXTAREA(x,C)}function D(x,C){var M=m(x,C),G=C.firstChild,W=x.firstChild,X,Z,ge,ke,me;e:for(;G;){for(ke=G.nextSibling,X=s(G);!M&&W;){if(ge=W.nextSibling,G.isSameNode&&G.isSameNode(W)){G=ke,W=ge;continue e}Z=s(W);var Ce=W.nodeType,De=void 0;if(Ce===G.nodeType&&(Ce===sr?(X?X!==Z&&((me=A[X])?ge===me?De=!1:(x.insertBefore(me,W),Z?_(Z):j(W,x,!0),W=me,Z=s(W)):De=!1):Z&&(De=!1),De=De!==!1&&Er(W,G),De&&V(W,G)):(Ce===Vt||Ce==qt)&&(De=!0,W.nodeValue!==G.nodeValue&&(W.nodeValue=G.nodeValue))),De){G=ke,W=ge;continue e}Z?_(Z):j(W,x,!0),W=ge}if(X&&(me=A[X])&&Er(me,G))M||y(x,me),V(me,G);else{var Cr=d(G);Cr!==!1&&(Cr&&(G=Cr),G.actualize&&(G=G.actualize(x.ownerDocument||xe)),y(x,G),re(G))}G=ke,W=ge}Q(x,W,Z);var be=jt[x.nodeName];be&&be(x,C)}var E=o,b=E.nodeType,v=t.nodeType;if(!$){if(b===sr)v===sr?Er(o,t)||(h(o),E=Lk(o,_k(t.nodeName,t.namespaceURI))):E=t;else if(b===Vt||b===qt){if(v===b)return E.nodeValue!==t.nodeValue&&(E.nodeValue=t.nodeValue),E;E=t}}if(E===t)h(o);else{if(t.isSameNode&&t.isSameNode(E))return;if(V(E,t,$),P)for(var z=0,T=P.length;z<T;z++){var k=A[P[z]];k&&j(k,k.parentNode,!1)}}return!$&&E!==o&&o.parentNode&&(E.actualize&&(E=E.actualize(o.ownerDocument||xe)),o.parentNode.replaceChild(E,o)),E}}var Wk=Mk(Dk);const Gk={key:0,class:"preview-empty","data-testid":"preview-empty"},Hk={class:"preview-toolbar"},jk={class:"preview-devices"},Uk=["title","onClick"],Vk={class:"preview-route"},qk={class:"preview-actions"},Yk=["value"],Xk=["value"],Jk=["title"],Kk=["title"],Qk={class:"preview-frame-wrapper"},Zk=`
|
|
373
|
-
<script>
|
|
374
|
-
(function() {
|
|
375
|
-
// Hover overlay — transient, subtle, fades
|
|
376
|
-
var hoverOvl = document.createElement('div');
|
|
377
|
-
hoverOvl.id = 'gz-hover';
|
|
378
|
-
hoverOvl.style.cssText = 'position:fixed;pointer-events:none;border:1px solid rgba(167,139,250,0.5);border-radius:4px;z-index:100000;transition:opacity 0.2s;display:none;opacity:0;';
|
|
379
|
-
document.body.appendChild(hoverOvl);
|
|
380
|
-
|
|
381
|
-
// Selection overlay — persistent, solid green
|
|
382
|
-
var selectOvl = document.createElement('div');
|
|
383
|
-
selectOvl.id = 'gz-select';
|
|
384
|
-
selectOvl.style.cssText = 'position:fixed;pointer-events:none;border:2px solid #22c55e;border-radius:4px;z-index:99999;display:none;';
|
|
385
|
-
document.body.appendChild(selectOvl);
|
|
386
|
-
|
|
387
|
-
// Fullscreen hides all overlays via CSS (preserves state for restore)
|
|
388
|
-
var gzStyle = document.createElement('style');
|
|
389
|
-
gzStyle.textContent = '[data-gz-mode="fullscreen"] #gz-hover, [data-gz-mode="fullscreen"] #gz-select, [data-gz-mode="fullscreen"] #gz-dim { display: none !important }';
|
|
390
|
-
document.head.appendChild(gzStyle);
|
|
391
|
-
|
|
392
|
-
// Dim overlay — fragment scope backdrop
|
|
393
|
-
var dimOverlay = document.createElement('div');
|
|
394
|
-
dimOverlay.id = 'gz-dim';
|
|
395
|
-
dimOverlay.style.cssText = 'position:fixed;inset:0;background:rgba(0,0,0,0.3);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:99998;pointer-events:none;display:none;transition:opacity 0.2s;opacity:0;';
|
|
396
|
-
document.body.appendChild(dimOverlay);
|
|
397
|
-
|
|
398
|
-
var hoveredEl = null;
|
|
399
|
-
var selectedEl = null;
|
|
400
|
-
var highlightScrollTimer = null;
|
|
401
|
-
var mode = 'browse';
|
|
402
|
-
var highlight = true;
|
|
403
|
-
var scopedEl = null;
|
|
404
|
-
var scopedOrigPos = '';
|
|
405
|
-
|
|
406
|
-
function findGz(el) {
|
|
407
|
-
while (el && el !== document.body) {
|
|
408
|
-
if (el.dataset && el.dataset.gz) return el;
|
|
409
|
-
el = el.parentElement;
|
|
410
|
-
}
|
|
411
|
-
return null;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
function isInteractive(el) {
|
|
415
|
-
var tag = el.tagName;
|
|
416
|
-
if (tag === 'BUTTON' || tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || tag === 'LABEL' || tag === 'A' || el.isContentEditable) return true;
|
|
417
|
-
var role = el.getAttribute && el.getAttribute('role');
|
|
418
|
-
return role === 'button' || role === 'link' || role === 'menuitem' || role === 'tab' || role === 'switch' || role === 'checkbox' || role === 'radio' || role === 'textbox' || role === 'combobox';
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
function positionOverlay(ovl, el) {
|
|
422
|
-
var rect = el.getBoundingClientRect();
|
|
423
|
-
ovl.style.display = 'block';
|
|
424
|
-
ovl.style.top = rect.top + 'px';
|
|
425
|
-
ovl.style.left = rect.left + 'px';
|
|
426
|
-
ovl.style.width = rect.width + 'px';
|
|
427
|
-
ovl.style.height = rect.height + 'px';
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
function refreshOverlays() {
|
|
431
|
-
if (hoveredEl && hoveredEl.isConnected) positionOverlay(hoverOvl, hoveredEl);
|
|
432
|
-
else { hoveredEl = null; hoverOvl.style.display = 'none'; }
|
|
433
|
-
if (selectedEl && selectedEl.isConnected) positionOverlay(selectOvl, selectedEl);
|
|
434
|
-
else { selectedEl = null; selectOvl.style.display = 'none'; }
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function showSelect(el) {
|
|
438
|
-
selectedEl = el;
|
|
439
|
-
positionOverlay(selectOvl, el);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
function clearSelect() {
|
|
443
|
-
selectedEl = null;
|
|
444
|
-
selectOvl.style.display = 'none';
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
function showHover(el) {
|
|
448
|
-
hoveredEl = el;
|
|
449
|
-
positionOverlay(hoverOvl, el);
|
|
450
|
-
hoverOvl.style.opacity = '1';
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
function clearHover() {
|
|
454
|
-
hoverOvl.style.opacity = '0';
|
|
455
|
-
setTimeout(function() { if (!hoveredEl) hoverOvl.style.display = 'none'; }, 200);
|
|
456
|
-
hoveredEl = null;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
function scrollIfOffscreen(el) {
|
|
460
|
-
var rect = el.getBoundingClientRect();
|
|
461
|
-
if (rect.top < 0 || rect.bottom > window.innerHeight) {
|
|
462
|
-
el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
function applyScope(gzId) {
|
|
467
|
-
if (scopedEl) {
|
|
468
|
-
scopedEl.style.position = scopedOrigPos;
|
|
469
|
-
scopedEl.style.zIndex = '';
|
|
470
|
-
scopedEl.style.cursor = '';
|
|
471
|
-
scopedEl = null;
|
|
472
|
-
}
|
|
473
|
-
dimOverlay.style.opacity = '0';
|
|
474
|
-
setTimeout(function() { if (!scopedEl) dimOverlay.style.display = 'none'; }, 200);
|
|
475
|
-
|
|
476
|
-
if (!gzId) {
|
|
477
|
-
if (mode === 'edit' && highlight) document.body.style.cursor = 'crosshair';
|
|
478
|
-
return;
|
|
479
|
-
}
|
|
480
|
-
var el = document.querySelector('[data-gz="' + gzId + '"]');
|
|
481
|
-
if (!el) return;
|
|
482
|
-
|
|
483
|
-
scopedOrigPos = el.style.position;
|
|
484
|
-
if (getComputedStyle(el).position === 'static') el.style.position = 'relative';
|
|
485
|
-
el.style.zIndex = '99999';
|
|
486
|
-
scopedEl = el;
|
|
487
|
-
if (mode === 'edit' && highlight) {
|
|
488
|
-
document.body.style.cursor = '';
|
|
489
|
-
el.style.cursor = 'crosshair';
|
|
490
|
-
}
|
|
491
|
-
el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
492
|
-
dimOverlay.style.display = 'block';
|
|
493
|
-
dimOverlay.offsetHeight;
|
|
494
|
-
dimOverlay.style.opacity = '1';
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
window.addEventListener('scroll', refreshOverlays, true);
|
|
498
|
-
window.addEventListener('resize', refreshOverlays);
|
|
499
|
-
|
|
500
|
-
function isInScope(el) {
|
|
501
|
-
return !scopedEl || scopedEl.contains(el);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
// Clear hover when mouse leaves the iframe
|
|
505
|
-
document.addEventListener('mouseleave', function() {
|
|
506
|
-
if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
// Edit mode: mousemove hover highlight in preview
|
|
510
|
-
document.addEventListener('mousemove', function(e) {
|
|
511
|
-
if (mode !== 'edit' || !highlight) {
|
|
512
|
-
if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
|
|
513
|
-
return;
|
|
514
|
-
}
|
|
515
|
-
var target = findGz(e.target);
|
|
516
|
-
if (target && target !== hoveredEl && isInScope(target)) {
|
|
517
|
-
showHover(target);
|
|
518
|
-
window.parent.postMessage({ type: 'gazetta:hover', gzId: target.dataset.gz }, '*');
|
|
519
|
-
} else if (!target || !isInScope(target)) {
|
|
520
|
-
if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
|
|
521
|
-
}
|
|
522
|
-
});
|
|
523
|
-
|
|
524
|
-
document.addEventListener('click', function(e) {
|
|
525
|
-
var link = e.target.closest ? e.target.closest('a[href]') : null;
|
|
526
|
-
if (link) {
|
|
527
|
-
var href = link.getAttribute('href');
|
|
528
|
-
if (href) {
|
|
529
|
-
e.preventDefault();
|
|
530
|
-
e.stopPropagation();
|
|
531
|
-
if (href.startsWith('/') || href.startsWith(location.origin)) {
|
|
532
|
-
var path = href.startsWith('/') ? href : new URL(href).pathname;
|
|
533
|
-
window.parent.postMessage({ type: 'gazetta:navigate', route: path }, '*');
|
|
534
|
-
} else {
|
|
535
|
-
window.parent.postMessage({ type: 'gazetta:external', url: href }, '*');
|
|
536
|
-
}
|
|
537
|
-
return;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
if (mode === 'fullscreen') return;
|
|
542
|
-
if (isInteractive(e.target)) return;
|
|
543
|
-
|
|
544
|
-
var target = findGz(e.target);
|
|
545
|
-
if (!target || !isInScope(target)) return;
|
|
546
|
-
|
|
547
|
-
e.preventDefault();
|
|
548
|
-
e.stopPropagation();
|
|
549
|
-
|
|
550
|
-
window.parent.postMessage({ type: 'gazetta:select', gzId: target.dataset.gz }, '*');
|
|
551
|
-
}, true);
|
|
552
|
-
|
|
553
|
-
document.addEventListener('keydown', function(e) {
|
|
554
|
-
if (e.key === 'Escape') window.parent.postMessage({ type: 'gazetta:escape' }, '*');
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
window.addEventListener('message', function(e) {
|
|
558
|
-
if (e.data && e.data.type === 'gazetta:mode') {
|
|
559
|
-
mode = e.data.mode || 'browse';
|
|
560
|
-
highlight = e.data.highlight !== false;
|
|
561
|
-
document.body.setAttribute('data-gz-mode', mode);
|
|
562
|
-
if (hoveredEl) clearHover();
|
|
563
|
-
refreshOverlays();
|
|
564
|
-
var cursorTarget = scopedEl || document.body;
|
|
565
|
-
document.body.style.cursor = '';
|
|
566
|
-
if (scopedEl) scopedEl.style.cursor = '';
|
|
567
|
-
cursorTarget.style.cursor = (mode === 'edit' && highlight) ? 'crosshair' : '';
|
|
568
|
-
}
|
|
569
|
-
if (e.data && e.data.type === 'gazetta:highlight') {
|
|
570
|
-
if (highlightScrollTimer) { clearTimeout(highlightScrollTimer); highlightScrollTimer = null; }
|
|
571
|
-
if (e.data.gzId) {
|
|
572
|
-
var el = document.querySelector('[data-gz="' + e.data.gzId + '"]');
|
|
573
|
-
if (el) {
|
|
574
|
-
showHover(el);
|
|
575
|
-
highlightScrollTimer = setTimeout(function() { scrollIfOffscreen(el); }, 150);
|
|
576
|
-
}
|
|
577
|
-
} else {
|
|
578
|
-
clearHover();
|
|
579
|
-
highlightScrollTimer = setTimeout(function() {
|
|
580
|
-
if (selectedEl) scrollIfOffscreen(selectedEl);
|
|
581
|
-
else window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
582
|
-
}, 150);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
if (e.data && e.data.type === 'gazetta:showSelect') {
|
|
586
|
-
if (e.data.gzId) {
|
|
587
|
-
var sel = document.querySelector('[data-gz="' + e.data.gzId + '"]');
|
|
588
|
-
if (sel) showSelect(sel);
|
|
589
|
-
else clearSelect();
|
|
590
|
-
} else {
|
|
591
|
-
clearSelect();
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
if (e.data && e.data.type === 'gazetta:scrollTo') {
|
|
595
|
-
if (e.data.gzId) {
|
|
596
|
-
var scrollEl = document.querySelector('[data-gz="' + e.data.gzId + '"]');
|
|
597
|
-
if (scrollEl) scrollIfOffscreen(scrollEl);
|
|
598
|
-
} else {
|
|
599
|
-
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
if (e.data && e.data.type === 'gazetta:scope') {
|
|
603
|
-
applyScope(e.data.gzId);
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
})();
|
|
607
|
-
<\/script>
|
|
608
|
-
`,ew=we({__name:"PreviewPanel",setup(e){function r(b){let v=2166136261;for(let z=0;z<b.length;z++)v^=b.charCodeAt(z),v=v*16777619>>>0;return v.toString(16).padStart(8,"0")}const o=Ne(),t=He(),n=Ae(),a=er(),i=Le(),l=fr(),s=xr(),d=N(null),f=N(!1);let c="",u=null;const g=So();function h(){var b,v;l.mode!=="fullscreen"&&((v=(b=d.value)==null?void 0:b.contentWindow)==null||v.postMessage({type:"gazetta:highlight",gzId:g.highlightGzId??null},"*"))}ye(()=>g.highlightGzId,h);function p(){var b,v;l.mode!=="fullscreen"&&((v=(b=d.value)==null?void 0:b.contentWindow)==null||v.postMessage({type:"gazetta:showSelect",gzId:g.selectedGzId??null},"*"))}ye(()=>g.selectedGzId,p);const m="/admin/".replace(/\/$/,""),y=J(()=>o.previewRoute?`${m}/preview${o.previewRoute}`:null),$=J(()=>o.type!=="fragment"||!o.name||!o.fragmentHostPage?null:r(`@${o.name}`)),A=[{label:"Desktop",width:"100%",icon:"pi pi-desktop"},{label:"Tablet",width:"768px",icon:"pi pi-tablet"},{label:"Mobile",width:"375px",icon:"pi pi-mobile"}],P=N(0),_=J(()=>A[P.value].width),L=N(!0);function j(){var b,v;(v=(b=d.value)==null?void 0:b.contentWindow)==null||v.postMessage({type:"gazetta:mode",mode:l.mode,highlight:L.value},"*")}ye(()=>l.mode,j),ye(L,j);function q(){var b,v;(v=(b=d.value)==null?void 0:b.contentWindow)==null||v.postMessage({type:"gazetta:scope",gzId:$.value},"*")}ye($,q);function re(b){return b.replace(/<script>new EventSource\([^)]+\)[^<]*<\/script>/g,"").replace("</body>",`${Zk}
|
|
609
|
-
</body>`)}async function Q(b){var v,z,T,k,x,C,M,G;if(((v=b.data)==null?void 0:v.type)==="gazetta:escape"&&l.mode==="fullscreen"&&l.toggleFullscreen(),((z=b.data)==null?void 0:z.type)==="gazetta:select"&&b.data.gzId){if((k=(T=d.value)==null?void 0:T.contentWindow)==null||k.postMessage({type:"gazetta:showSelect",gzId:b.data.gzId},"*"),g.setPending(b.data.gzId),o.name){const W=o.type==="page"?"/pages":"/fragments";s.push(`${W}/${o.name}/edit`)}(x=d.value)==null||x.blur()}if(((C=b.data)==null?void 0:C.type)==="gazetta:navigate"&&b.data.route){const W=i.pages.find(X=>X.route===b.data.route);W?s.push(`/pages/${W.name}`):a.show(`No page found for route ${b.data.route}`,{type:"error"})}((M=b.data)==null?void 0:M.type)==="gazetta:hover"&&(g.previewHover(b.data.gzId??null),u&&(clearTimeout(u),u=null),b.data.gzId||(u=setTimeout(()=>{var W,X;(X=(W=d.value)==null?void 0:W.contentWindow)==null||X.postMessage({type:"gazetta:scrollTo",gzId:g.selectedGzId??null},"*"),u=null},300))),((G=b.data)==null?void 0:G.type)==="gazetta:external"&&b.data.url&&a.show(b.data.url,{link:b.data.url,duration:5e3})}Zt(window,"message",Q);let V=null;Xe(()=>{try{V=new EventSource("/__reload"),V.onmessage=()=>D(!0),V.onerror=()=>{V==null||V.close(),V=null}}catch{}}),ba(()=>{V==null||V.close()});async function D(b=!0){if(!y.value){c="";return}f.value=!0;try{const v=t.allOverrides,z=Object.keys(v).length>0;let T;z?T=await fetch(y.value,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({overrides:v})}):T=await fetch(y.value);const k=re(await T.text());E(k,b),setTimeout(()=>{j(),q()},100)}catch{E('<pre style="color:red;padding:2rem">Failed to load preview</pre>',!1)}finally{f.value=!1}}function E(b,v){var T,k;const z=d.value;if(z){if(!v||!c||!((k=(T=z.contentDocument)==null?void 0:T.body)!=null&&k.innerHTML)){z.srcdoc=b,c=b;return}try{const x=z.contentDocument;if(!x){z.srcdoc=b,c=b;return}const M=new DOMParser().parseFromString(b,"text/html");Wk(x.body,M.body,{onBeforeNodeDiscarded(X){const Z=X.id;return!(Z==="gz-hover"||Z==="gz-select"||Z==="gz-dim")},onBeforeElUpdated(X,Z){return!(X.id==="gz-hover"||X.id==="gz-select"||X.id==="gz-dim"||X.isEqualNode(Z))}});const G=x.head.querySelectorAll("style"),W=M.head.querySelectorAll("style");G.forEach((X,Z)=>{W[Z]&&X.textContent!==W[Z].textContent&&(X.textContent=W[Z].textContent)}),c=b}catch{z.srcdoc=b,c=b}}}return ye(()=>n.version,()=>D(!0)),ye(y,()=>D(!1),{immediate:!0}),Um(()=>n.draftVersion,()=>D(!0),{debounce:300}),(b,v)=>{var z;return S(),O("div",{class:ie(["preview-panel",{fullscreen:B(l).mode==="fullscreen"}]),"data-testid":"preview-panel"},[y.value?(S(),O(ce,{key:1},[w("div",Hk,[w("div",jk,[(S(),O(ce,null,Te(A,(T,k)=>w("button",{key:T.label,class:ie(["device-btn",{active:P.value===k}]),title:T.label,onClick:x=>P.value=k},[w("i",{class:ie(T.icon)},null,2)],10,Uk)),64)),B(l).mode==="fullscreen"&&B(o).previewRoute?(S(),O(ce,{key:0},[v[5]||(v[5]=w("span",{class:"preview-separator"},null,-1)),w("span",Vk,[v[4]||(v[4]=w("i",{class:"pi pi-globe"},null,-1)),$e(ee(B(o).previewRoute),1)])],64)):te("",!0)]),w("div",qk,[B(o).type==="fragment"&&B(o).staticPages.length>1&&B(l).mode!=="fullscreen"?(S(),O("select",{key:0,class:"host-page-select","data-testid":"host-page-select",value:((z=B(o).fragmentHostPage)==null?void 0:z.name)??"",onChange:v[0]||(v[0]=T=>B(o).setFragmentHostPage(T.target.value))},[(S(!0),O(ce,null,Te(B(o).staticPages,T=>(S(),O("option",{key:T.name,value:T.name},ee(T.name),9,Xk))),128))],40,Yk)):te("",!0),B(l).mode==="edit"?(S(),O("button",{key:1,class:ie(["device-btn",{active:L.value}]),title:L.value?"Hide highlights":"Show highlights","data-testid":"highlight-toggle",onClick:v[1]||(v[1]=T=>L.value=!L.value)},[...v[6]||(v[6]=[w("i",{class:"pi pi-eye"},null,-1)])],10,Jk)):te("",!0),w("button",{class:"device-btn",title:B(l).mode==="fullscreen"?"Exit fullscreen":"Fullscreen","data-testid":"fullscreen-toggle",onClick:v[2]||(v[2]=T=>B(l).toggleFullscreen())},[w("i",{class:ie(B(l).mode==="fullscreen"?"pi pi-window-minimize":"pi pi-window-maximize")},null,2)],8,Kk)])]),w("div",Qk,[w("iframe",{ref_key:"iframeRef",ref:d,class:"preview-iframe","data-testid":"preview-iframe",style:Wr({width:_.value,maxWidth:"100%"})},null,4)])],64)):(S(),O("div",Gk,[...v[3]||(v[3]=[w("i",{class:"pi pi-eye",style:{"font-size":"2rem",color:"#ddd","margin-bottom":"0.5rem"}},null,-1),w("p",null,"Select a page or fragment to preview",-1)])]))],2)}}}),rw=Re(ew,[["__scopeId","data-v-4aacb015"]]),ow={class:"cms-editor"},tw={key:0,class:"cms-panel-content"},nw={class:"cms-panel-content"},aw={class:"cms-panel-content"},iw={class:"cms-preview"},lw=we({__name:"EditorView",setup(e){const r=xr(),o=fr(),t=Ne(),n=jr();return Ro("Escape",()=>{if(n.visible)return;if(o.mode==="fullscreen"){o.toggleFullscreen();return}if(o.mode!=="edit")return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.tagName==="SELECT"||a.isContentEditable)){a.blur();return}if(!t.name)return;const i=t.type==="page"?"/pages":"/fragments";r.push(`${i}/${t.name}`)}),(a,i)=>(S(),O("div",ow,[w("div",{class:ie(["cms-left",{"cms-left-wide":B(o).mode==="edit"}])},[B(o).mode==="browse"?(S(),O("div",tw,[Y(h0)])):(S(),se(B(Ca),{key:1,class:"cms-splitter"},{default:de(()=>[Y(B(Ko),{size:35,minSize:25,class:"cms-panel"},{default:de(()=>[w("div",nw,[Y(P0)])]),_:1}),Y(B(Ko),{size:65,minSize:35,class:"cms-panel"},{default:de(()=>[w("div",aw,[Y(Rk)])]),_:1})]),_:1}))],2),w("div",iw,[Y(rw)])]))}}),cr=Re(lw,[["__scopeId","data-v-f9c0172b"]]),sw={class:"playground","data-testid":"dev-playground"},cw={class:"playground-sidebar"},dw={key:0,class:"sidebar-loading"},uw={key:0,class:"sidebar-section"},fw=["data-testid","onClick"],gw={class:"item-name"},pw={key:1,class:"sidebar-section"},mw=["data-testid","onClick"],bw={class:"item-name"},hw={class:"sidebar-section"},vw=["data-testid","onClick"],yw={class:"item-name"},xw={key:2,class:"sidebar-empty"},kw={class:"playground-main"},ww={key:0,class:"main-empty"},Cw={key:1,class:"main-empty"},$w={class:"main-toolbar"},Bw={class:"toolbar-label"},zw={class:"toolbar-type"},Sw={key:0,class:"toolbar-hint"},Rw={class:"main-body"},Dw={key:0,class:"mount-error"},Ew={key:0,class:"value-inspector","data-testid":"playground-inspector"},Iw=["innerHTML"],Pw=we({__name:"DevPlayground",setup(e){const r=Hr(),o=xr(),t=Yt();Ro("Escape",()=>{const b=document.activeElement;if(b&&(b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.tagName==="SELECT"||b.isContentEditable)){b.blur();return}o.back()});const n=N([]),a=N([]),i=N(!0),l=N(null),s=N(!1),d=N(null),f=N(!1),c=N(null),u=N(!0),g=N(null);let h=null;async function p(){i.value=!0;try{const[b,v]=await Promise.all([K.getTemplates(),K.getFields()]),z=[];for(const T of b)try{const k=await K.getTemplateSchema(T.name);z.push({name:T.name,hasEditor:!!k.hasEditor})}catch{z.push({name:T.name,hasEditor:!1})}n.value=z,a.value=v}catch(b){console.error("Failed to load playground items:",b)}finally{i.value=!1}}p().then(()=>{const b=t.params.editor,v=t.params.field;b&&n.value.some(z=>z.name===b)?L(b):v&&a.value.some(z=>z.name===v)&&j(v)});const m=J(()=>n.value.filter(b=>b.hasEditor)),y=J(()=>n.value.filter(b=>!b.hasEditor)),$=J(()=>r.dark?"dark":"light"),A=J(()=>{try{return _(c.value)}catch{return P(String(c.value))}});function P(b){return b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function _(b,v=0){const z=" ".repeat(v);if(b===null)return'<span class="jv-null">null</span>';if(typeof b=="boolean")return`<span class="jv-bool">${b}</span>`;if(typeof b=="number")return`<span class="jv-num">${b}</span>`;if(typeof b=="string")return b.includes(`
|
|
610
|
-
`)?`<span class="jv-str">"${b.split(`
|
|
611
|
-
`).map(k=>P(k)).join(`<br>${z} `)}"</span>`:`<span class="jv-str">"${P(b)}"</span>`;if(Array.isArray(b))return b.length===0?"[]":`[
|
|
612
|
-
${b.map(k=>`${z} ${_(k,v+1)}`).join(`,
|
|
613
|
-
`)}
|
|
614
|
-
${z}]`;if(typeof b=="object"){const T=Object.entries(b);return T.length===0?"{}":`{
|
|
615
|
-
${T.map(([x,C])=>`${z} <span class="jv-key">"${P(x)}"</span>: ${_(C,v+1)}`).join(`,
|
|
616
|
-
`)}
|
|
617
|
-
${z}}`}return P(String(b))}async function L(b){s.value=!0,d.value=null;try{const v=await K.getTemplateSchema(b),{hasEditor:z,editorUrl:T,fieldsBaseUrl:k,...x}=v,C=await q(b);l.value={type:"editor",name:b,hasEditor:!!z,editorUrl:T,fieldsBaseUrl:k,schema:x,realContent:C},o.replace(`/dev/editor/${b}`)}catch(v){d.value=`Failed to load schema for "${b}": ${v.message}`,l.value=null}finally{s.value=!1}}async function j(b){let v="";if(n.value.length)try{v=(await K.getTemplateSchema(n.value[0].name)).fieldsBaseUrl??""}catch{}if(!v){d.value="No fieldsBaseUrl available";return}l.value={type:"field",name:b,fieldsBaseUrl:v},o.replace(`/dev/field/${b}`)}async function q(b){try{let v=function(k,x){for(const C of k)if(typeof C!="string"){if(C.template===x&&C.content)return C.content;if(C.components){const M=v(C.components,x);if(M)return M}}};const[z,T]=await Promise.all([K.getPages(),K.getFragments()]);for(const k of z)if(k.template===b){const x=await K.getPage(k.name);if(x.content&&Object.keys(x.content).length>0)return x.content}for(const k of T)if(k.template===b){const x=await K.getFragment(k.name);if(x.content&&Object.keys(x.content).length>0)return x.content}for(const k of z){const x=await K.getPage(k.name);if(!x.components)continue;const C=v(x.components,b);if(C)return C}for(const k of T){const x=await K.getFragment(k.name);if(!x.components)continue;const C=v(x.components,b);if(C)return C}}catch{}}function re(){if(h&&g.value){try{h.unmount(g.value)}catch{}h=null}d.value=null}async function Q(){if(re(),!l.value||!g.value)return;const b=g.value;try{if(l.value.type==="editor"){const v=l.value,z=v.realContent??D(v.schema);if(c.value=z,v.hasEditor&&v.editorUrl){const T=await import(v.editorUrl),k=T.default??T;k.mount(b,{content:z,schema:v.schema,theme:$.value,onChange:x=>{c.value=x},fieldsBaseUrl:v.fieldsBaseUrl}),h=k}else{const{createEditorMount:T}=await ho(async()=>{const{createEditorMount:x}=await Promise.resolve().then(()=>wk);return{createEditorMount:x}},[]),k=T(v.schema);k.mount(b,{content:z,schema:v.schema,theme:$.value,onChange:x=>{c.value=x},fieldsBaseUrl:v.fieldsBaseUrl}),h=k}}else{const v=l.value;c.value="";const z=`${v.fieldsBaseUrl}/${v.name}.tsx`;let T;try{T=await import(z)}catch{T=await ho(()=>import(`${v.fieldsBaseUrl}/${v.name}.ts`),[])}const k=T.default??T;k.mount(b,{value:"",schema:{},theme:$.value,onChange:x=>{c.value=x}}),h=k}}catch(v){d.value=v.message}}function V(){l.value&&Q()}ye(l,()=>Q(),{flush:"post"}),Jt(()=>re());function D(b){const v=b.properties;if(!v)return{};const z={};for(const[T,k]of Object.entries(v)){const x=k.type;x==="string"?z[T]=k.default??`Sample ${T}`:x==="number"||x==="integer"?z[T]=42:x==="boolean"?z[T]=!1:x==="array"?z[T]=[]:x==="object"&&(z[T]={})}return z}const E=J(()=>r.dark?{"--gz-bg-input":"#161622","--gz-bg-card":"#1a1a28","--gz-bg-toolbar":"#1a1a2a","--gz-bg-chip":"#252538","--gz-bg-code":"#12121e","--gz-text":"#e0e0e0","--gz-text-secondary":"#ccc","--gz-text-label":"#8888a0","--gz-text-hint":"#444","--gz-border":"#2a2a3a","--gz-border-subtle":"#1e1e2e","--gz-accent":"#667eea","--gz-error":"#f87171","--gz-success":"#4ade80"}:{"--gz-bg-input":"#ffffff","--gz-bg-card":"#f9fafb","--gz-bg-toolbar":"#f3f4f6","--gz-bg-chip":"#e5e7eb","--gz-bg-code":"#f1f5f9","--gz-text":"#1a1a1a","--gz-text-secondary":"#4b5563","--gz-text-label":"#6b7280","--gz-text-hint":"#9ca3af","--gz-border":"#e5e7eb","--gz-border-subtle":"#f3f4f6","--gz-accent":"#667eea","--gz-error":"#dc2626","--gz-success":"#16a34a"});return(b,v)=>(S(),O("div",sw,[w("div",cw,[v[8]||(v[8]=w("div",{class:"sidebar-header"},"Dev Playground",-1)),i.value?(S(),O("div",dw,"Loading...")):n.value.length||a.value.length?(S(),O(ce,{key:1},[m.value.length?(S(),O("div",uw,[v[3]||(v[3]=w("div",{class:"section-label"},"Custom Editors",-1)),(S(!0),O(ce,null,Te(m.value,z=>{var T;return S(),O("div",{key:"ce:"+z.name,class:ie(["sidebar-item",{active:((T=l.value)==null?void 0:T.type)==="editor"&&l.value.name===z.name}]),"data-testid":`playground-editor-${z.name}`,onClick:k=>L(z.name)},[v[2]||(v[2]=w("i",{class:"pi pi-pencil item-icon"},null,-1)),w("span",gw,ee(z.name),1)],10,fw)}),128))])):te("",!0),a.value.length?(S(),O("div",pw,[v[5]||(v[5]=w("div",{class:"section-label"},"Custom Fields",-1)),(S(!0),O(ce,null,Te(a.value,z=>{var T;return S(),O("div",{key:"f:"+z.name,class:ie(["sidebar-item",{active:((T=l.value)==null?void 0:T.type)==="field"&&l.value.name===z.name}]),"data-testid":`playground-field-${z.name}`,onClick:k=>j(z.name)},[v[4]||(v[4]=w("i",{class:"pi pi-sliders-h item-icon"},null,-1)),w("span",bw,ee(z.name),1)],10,mw)}),128))])):te("",!0),w("div",hw,[w("div",{class:"section-label section-label-toggle",onClick:v[0]||(v[0]=z=>f.value=!f.value)},[w("i",{class:ie([f.value?"pi pi-chevron-down":"pi pi-chevron-right","toggle-icon"])},null,2),$e(" All Templates ("+ee(n.value.length)+") ",1)]),f.value?(S(!0),O(ce,{key:0},Te(y.value,z=>{var T;return S(),O("div",{key:"te:"+z.name,class:ie(["sidebar-item",{active:((T=l.value)==null?void 0:T.type)==="editor"&&l.value.name===z.name}]),"data-testid":`playground-editor-${z.name}`,onClick:k=>L(z.name)},[v[6]||(v[6]=w("i",{class:"pi pi-file item-icon"},null,-1)),w("span",yw,ee(z.name),1)],10,vw)}),128)):te("",!0)])],64)):(S(),O("div",xw,[...v[7]||(v[7]=[w("p",null,"No custom editors or fields yet.",-1),w("p",{class:"hint"},[$e("Create an editor:"),w("br"),w("code",null,"admin/editors/{name}.tsx")],-1),w("p",{class:"hint"},[$e("Create a field:"),w("br"),w("code",null,"admin/fields/{name}.tsx")],-1)])]))]),w("div",kw,[!l.value&&!s.value?(S(),O("div",ww,[...v[9]||(v[9]=[w("i",{class:"pi pi-code",style:{"font-size":"2rem",opacity:"0.3","margin-bottom":"0.5rem"}},null,-1),w("p",null,"Select an editor or field to preview",-1)])])):s.value?(S(),O("div",Cw,[...v[10]||(v[10]=[w("p",null,"Loading schema...",-1)])])):l.value?(S(),O(ce,{key:2},[w("div",$w,[w("span",Bw,[w("span",zw,ee(l.value.type==="editor"?"Editor":"Field"),1),w("strong",null,ee(l.value.name),1),l.value.type==="editor"&&l.value.realContent?(S(),O("span",Sw,"using real content")):te("",!0)]),w("button",{class:"toolbar-btn","data-testid":"playground-reset",onClick:V,title:"Reset to initial state"},[...v[11]||(v[11]=[w("i",{class:"pi pi-refresh"},null,-1),$e(" Reset ",-1)])]),w("button",{class:"toolbar-btn","data-testid":"playground-toggle-inspector",onClick:v[1]||(v[1]=z=>u.value=!u.value)},[v[12]||(v[12]=w("i",{class:"pi pi-code"},null,-1)),$e(" "+ee(u.value?"Hide":"Show")+" Value ",1)])]),w("div",Rw,[w("div",{class:"main-content",style:Wr(E.value)},[d.value?(S(),O("div",Dw,ee(d.value),1)):te("",!0),w("div",{ref_key:"mountRef",ref:g,class:"mount-container","data-testid":"playground-mount"},null,512)],4),u.value?(S(),O("div",Ew,[v[13]||(v[13]=w("div",{class:"inspector-header"},"Value",-1)),w("pre",{class:"inspector-value",innerHTML:A.value},null,8,Iw)])):te("",!0)])],64)):te("",!0)])]))}}),bo=Re(Pw,[["__scopeId","data-v-9ffc60ee"]]);function Aw(){const r=ha({history:va("/admin/"),routes:[{path:"/",component:cr,name:"home"},{path:"/pages/:name",component:cr,name:"page-browse"},{path:"/pages/:name/edit",component:cr,name:"page-edit"},{path:"/fragments/:name",component:cr,name:"fragment-browse"},{path:"/fragments/:name/edit",component:cr,name:"fragment-edit"},{path:"/dev",component:bo,name:"dev"},{path:"/dev/editor/:editor",component:bo,name:"dev-editor"},{path:"/dev/field/:field",component:bo,name:"dev-field"},{path:"/:pathMatch(.*)*",redirect:"/"}]});return r.beforeEach(async(o,t)=>{var s,d,f,c,u,g,h;await Le().ensureLoaded();const a=p=>p==null?void 0:p.toString().startsWith("dev"),i=!a((s=o.name)==null?void 0:s.toString())&&o.name!=="home";if(t.name&&!a(t.name.toString())&&t.name!=="home"){const p=He(),m=t.params.name,y=o.params.name,$=(d=t.name)!=null&&d.toString().startsWith("page")?"page":"fragment",A=(f=o.name)!=null&&f.toString().startsWith("page")?"page":"fragment",P=(c=t.name)==null?void 0:c.toString().endsWith("-edit"),_=(u=o.name)==null?void 0:u.toString().endsWith("-edit");if((!i||m!==y||$!==A||P&&!_)&&p.hasPendingEdits){const re=await jr().guard();if(re==="cancel")return!1;re==="save"&&await p.save(),p.clear()}}if(i){const p=Ne(),m=fr(),y=o.params.name,$=(g=o.name)!=null&&g.toString().startsWith("page")?"page":"fragment",A=(h=o.name)==null?void 0:h.toString().endsWith("-edit");(p.type!==$||p.name!==y)&&($==="page"?await p.selectPage(y):await p.selectFragment(y)),A&&m.mode!=="edit"?m.enterEdit():!A&&m.mode==="edit"&&m.enterBrowse()}else if(o.name==="home"){const p=fr();p.mode==="edit"&&p.enterBrowse()}}),r}const Qr=ya(_m);Qr.use(xa());Qr.use($a,{theme:{preset:nm,options:{darkModeSelector:".dark"}}});Qr.use(Aw());Qr.mount("#app");
|