@mieweb/forms-editor 2.0.1 → 2.1.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/dist/index.js CHANGED
@@ -5,21 +5,21 @@
5
5
  if (!document.querySelector('#questionnaire-editor-styles')) {
6
6
  const style = document.createElement('style');
7
7
  style.id = 'questionnaire-editor-styles';
8
- style.textContent = "/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');\n@layer properties;\n:root, :host {\n --mie-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',\n monospace;\n --mie-color-blue-500: oklch(62.3% 0.214 259.815);\n --mie-color-blue-600: oklch(54.6% 0.245 262.881);\n --mie-color-gray-200: oklch(92.8% 0.006 264.531);\n --mie-color-gray-900: oklch(21% 0.034 264.665);\n --mie-color-white: #fff;\n --mie-spacing: 0.25rem;\n --mie-container-md: 28rem;\n --mie-container-xl: 36rem;\n --mie-container-4xl: 56rem;\n --mie-container-7xl: 80rem;\n --mie-text-xs: 0.75rem;\n --mie-text-xs--line-height: calc(1 / 0.75);\n --mie-text-sm: 0.875rem;\n --mie-text-sm--line-height: calc(1.25 / 0.875);\n --mie-text-base: 1rem;\n --mie-text-base--line-height: calc(1.5 / 1);\n --mie-text-lg: 1.125rem;\n --mie-text-lg--line-height: calc(1.75 / 1.125);\n --mie-text-xl: 1.25rem;\n --mie-text-xl--line-height: calc(1.75 / 1.25);\n --mie-font-weight-light: 300;\n --mie-font-weight-normal: 400;\n --mie-font-weight-medium: 500;\n --mie-font-weight-semibold: 600;\n --mie-tracking-wide: 0.025em;\n --mie-leading-relaxed: 1.625;\n --mie-radius-md: 0.375rem;\n --mie-radius-lg: 0.5rem;\n --mie-radius-xl: 0.75rem;\n --mie-radius-2xl: 1rem;\n --mie-default-transition-duration: 150ms;\n --mie-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --mie-font-titillium: \"Titillium Web\", sans-serif;\n --mie-color-mieprimary: #3b82f6;\n --mie-color-miesecondary: #6b7280;\n --mie-color-mieaccent: #10b981;\n --mie-color-miedanger: #ef4444;\n --mie-color-miewarning: #f97316;\n --mie-color-miesurface: #ffffff;\n --mie-color-mieborder: #e5e7eb;\n --mie-color-mieborderinactive: #9ca3af;\n --mie-color-mietext: #111827;\n --mie-color-mietextsecondary: #f8fafc;\n --mie-color-mietextmuted: #6b7280;\n --mie-color-miebackground: #f9fafb;\n --mie-color-miebackgroundsecondary: #f3f4f6;\n --mie-color-miebackgroundhover: #eceef1;\n --mie-color-mieoverlay: rgba(0, 0, 0, 0.5);\n}\n.mie\\:pointer-events-none {\n pointer-events: none;\n}\n.mie\\:absolute {\n position: absolute;\n}\n.mie\\:fixed {\n position: fixed;\n}\n.mie\\:relative {\n position: relative;\n}\n.mie\\:sticky {\n position: sticky;\n}\n.mie\\:inset-0 {\n inset: calc(var(--mie-spacing) * 0);\n}\n.mie\\:top-0 {\n top: calc(var(--mie-spacing) * 0);\n}\n.mie\\:top-1\\/2 {\n top: calc(1/2 * 100%);\n}\n.mie\\:top-2 {\n top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:top-3 {\n top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:top-11 {\n top: calc(var(--mie-spacing) * 11);\n}\n.mie\\:right-0 {\n right: calc(var(--mie-spacing) * 0);\n}\n.mie\\:right-2 {\n right: calc(var(--mie-spacing) * 2);\n}\n.mie\\:right-3 {\n right: calc(var(--mie-spacing) * 3);\n}\n.mie\\:bottom-0 {\n bottom: calc(var(--mie-spacing) * 0);\n}\n.mie\\:bottom-5 {\n bottom: calc(var(--mie-spacing) * 5);\n}\n.mie\\:bottom-full {\n bottom: 100%;\n}\n.mie\\:-left-2 {\n left: calc(var(--mie-spacing) * -2);\n}\n.mie\\:left-0 {\n left: calc(var(--mie-spacing) * 0);\n}\n.mie\\:left-5 {\n left: calc(var(--mie-spacing) * 5);\n}\n.mie\\:z-10 {\n z-index: 10;\n}\n.mie\\:z-20 {\n z-index: 20;\n}\n.mie\\:z-40 {\n z-index: 40;\n}\n.mie\\:z-50 {\n z-index: 50;\n}\n.mie\\:z-9999 {\n z-index: 9999;\n}\n.mie\\:m-0 {\n margin: calc(var(--mie-spacing) * 0);\n}\n.mie\\:-mx-6 {\n margin-inline: calc(var(--mie-spacing) * -6);\n}\n.mie\\:mx-4 {\n margin-inline: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mx-auto {\n margin-inline: auto;\n}\n.mie\\:my-2 {\n margin-block: calc(var(--mie-spacing) * 2);\n}\n.mie\\:my-9 {\n margin-block: calc(var(--mie-spacing) * 9);\n}\n.mie\\:-mt-6 {\n margin-top: calc(var(--mie-spacing) * -6);\n}\n.mie\\:mt-1 {\n margin-top: calc(var(--mie-spacing) * 1);\n}\n.mie\\:mt-2 {\n margin-top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:mt-3 {\n margin-top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:mt-4 {\n margin-top: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mb-1 {\n margin-bottom: calc(var(--mie-spacing) * 1);\n}\n.mie\\:mb-1\\.5 {\n margin-bottom: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:mb-2 {\n margin-bottom: calc(var(--mie-spacing) * 2);\n}\n.mie\\:mb-3 {\n margin-bottom: calc(var(--mie-spacing) * 3);\n}\n.mie\\:mb-4 {\n margin-bottom: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mb-6 {\n margin-bottom: calc(var(--mie-spacing) * 6);\n}\n.mie\\:ml-2 {\n margin-left: calc(var(--mie-spacing) * 2);\n}\n.mie\\:ml-auto {\n margin-left: auto;\n}\n.mie\\:block {\n display: block;\n}\n.mie\\:flex {\n display: flex;\n}\n.mie\\:grid {\n display: grid;\n}\n.mie\\:hidden {\n display: none;\n}\n.mie\\:inline-flex {\n display: inline-flex;\n}\n.mie\\:h-1 {\n height: calc(var(--mie-spacing) * 1);\n}\n.mie\\:h-3 {\n height: calc(var(--mie-spacing) * 3);\n}\n.mie\\:h-3\\.5 {\n height: calc(var(--mie-spacing) * 3.5);\n}\n.mie\\:h-4 {\n height: calc(var(--mie-spacing) * 4);\n}\n.mie\\:h-5 {\n height: calc(var(--mie-spacing) * 5);\n}\n.mie\\:h-6 {\n height: calc(var(--mie-spacing) * 6);\n}\n.mie\\:h-7 {\n height: calc(var(--mie-spacing) * 7);\n}\n.mie\\:h-8 {\n height: calc(var(--mie-spacing) * 8);\n}\n.mie\\:h-10 {\n height: calc(var(--mie-spacing) * 10);\n}\n.mie\\:h-11 {\n height: calc(var(--mie-spacing) * 11);\n}\n.mie\\:h-12 {\n height: calc(var(--mie-spacing) * 12);\n}\n.mie\\:h-24 {\n height: calc(var(--mie-spacing) * 24);\n}\n.mie\\:h-72 {\n height: calc(var(--mie-spacing) * 72);\n}\n.mie\\:h-auto {\n height: auto;\n}\n.mie\\:h-fit {\n height: fit-content;\n}\n.mie\\:h-full {\n height: 100%;\n}\n.mie\\:max-h-32 {\n max-height: calc(var(--mie-spacing) * 32);\n}\n.mie\\:max-h-48 {\n max-height: calc(var(--mie-spacing) * 48);\n}\n.mie\\:max-h-56 {\n max-height: calc(var(--mie-spacing) * 56);\n}\n.mie\\:max-h-60 {\n max-height: calc(var(--mie-spacing) * 60);\n}\n.mie\\:max-h-64 {\n max-height: calc(var(--mie-spacing) * 64);\n}\n.mie\\:max-h-75 {\n max-height: calc(var(--mie-spacing) * 75);\n}\n.mie\\:max-h-\\[60vh\\] {\n max-height: 60vh;\n}\n.mie\\:max-h-\\[calc\\(100svh-13rem\\)\\] {\n max-height: calc(100svh - 13rem);\n}\n.mie\\:max-h-\\[calc\\(100svh-24rem\\)\\] {\n max-height: calc(100svh - 24rem);\n}\n.mie\\:max-h-none {\n max-height: none;\n}\n.mie\\:max-h-screen {\n max-height: 100vh;\n}\n.mie\\:min-h-10 {\n min-height: calc(var(--mie-spacing) * 10);\n}\n.mie\\:min-h-24 {\n min-height: calc(var(--mie-spacing) * 24);\n}\n.mie\\:min-h-64 {\n min-height: calc(var(--mie-spacing) * 64);\n}\n.mie\\:w-1\\/2 {\n width: calc(1/2 * 100%);\n}\n.mie\\:w-3 {\n width: calc(var(--mie-spacing) * 3);\n}\n.mie\\:w-3\\.5 {\n width: calc(var(--mie-spacing) * 3.5);\n}\n.mie\\:w-3\\/4 {\n width: calc(3/4 * 100%);\n}\n.mie\\:w-4 {\n width: calc(var(--mie-spacing) * 4);\n}\n.mie\\:w-5 {\n width: calc(var(--mie-spacing) * 5);\n}\n.mie\\:w-6 {\n width: calc(var(--mie-spacing) * 6);\n}\n.mie\\:w-7 {\n width: calc(var(--mie-spacing) * 7);\n}\n.mie\\:w-8 {\n width: calc(var(--mie-spacing) * 8);\n}\n.mie\\:w-12 {\n width: calc(var(--mie-spacing) * 12);\n}\n.mie\\:w-20 {\n width: calc(var(--mie-spacing) * 20);\n}\n.mie\\:w-32 {\n width: calc(var(--mie-spacing) * 32);\n}\n.mie\\:w-fit {\n width: fit-content;\n}\n.mie\\:w-full {\n width: 100%;\n}\n.mie\\:w-px {\n width: 1px;\n}\n.mie\\:max-w-4xl {\n max-width: var(--mie-container-4xl);\n}\n.mie\\:max-w-7xl {\n max-width: var(--mie-container-7xl);\n}\n.mie\\:max-w-\\[80vw\\] {\n max-width: 80vw;\n}\n.mie\\:max-w-full {\n max-width: 100%;\n}\n.mie\\:max-w-md {\n max-width: var(--mie-container-md);\n}\n.mie\\:max-w-xl {\n max-width: var(--mie-container-xl);\n}\n.mie\\:min-w-0 {\n min-width: calc(var(--mie-spacing) * 0);\n}\n.mie\\:min-w-\\[44px\\] {\n min-width: 44px;\n}\n.mie\\:flex-1 {\n flex: 1;\n}\n.mie\\:shrink-0 {\n flex-shrink: 0;\n}\n.mie\\:-translate-y-1\\/2 {\n --tw-translate-y: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n}\n.mie\\:scale-105 {\n --tw-scale-x: 105%;\n --tw-scale-y: 105%;\n --tw-scale-z: 105%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n}\n.mie\\:rotate-180 {\n rotate: 180deg;\n}\n.mie\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.mie\\:cursor-pointer {\n cursor: pointer;\n}\n.mie\\:touch-manipulation {\n touch-action: manipulation;\n}\n.mie\\:resize-y {\n resize: vertical;\n}\n.mie\\:appearance-none {\n appearance: none;\n}\n.mie\\:grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.mie\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.mie\\:flex-col {\n flex-direction: column;\n}\n.mie\\:flex-wrap {\n flex-wrap: wrap;\n}\n.mie\\:items-center {\n align-items: center;\n}\n.mie\\:items-end {\n align-items: flex-end;\n}\n.mie\\:items-start {\n align-items: flex-start;\n}\n.mie\\:justify-between {\n justify-content: space-between;\n}\n.mie\\:justify-center {\n justify-content: center;\n}\n.mie\\:justify-end {\n justify-content: flex-end;\n}\n.mie\\:justify-evenly {\n justify-content: space-evenly;\n}\n.mie\\:justify-start {\n justify-content: flex-start;\n}\n.mie\\:gap-0 {\n gap: calc(var(--mie-spacing) * 0);\n}\n.mie\\:gap-1 {\n gap: calc(var(--mie-spacing) * 1);\n}\n.mie\\:gap-1\\.5 {\n gap: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:gap-2 {\n gap: calc(var(--mie-spacing) * 2);\n}\n.mie\\:gap-3 {\n gap: calc(var(--mie-spacing) * 3);\n}\n.mie\\:gap-4 {\n gap: calc(var(--mie-spacing) * 4);\n}\n.mie\\:space-y-1 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 1) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-2 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 2) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-3 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 3) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-4 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mie\\:overflow-auto {\n overflow: auto;\n}\n.mie\\:overflow-hidden {\n overflow: hidden;\n}\n.mie\\:overflow-visible {\n overflow: visible;\n}\n.mie\\:overflow-y-auto {\n overflow-y: auto;\n}\n.mie\\:rounded {\n border-radius: 0.25rem;\n}\n.mie\\:rounded-2xl {\n border-radius: var(--mie-radius-2xl);\n}\n.mie\\:rounded-full {\n border-radius: calc(infinity * 1px);\n}\n.mie\\:rounded-lg {\n border-radius: var(--mie-radius-lg);\n}\n.mie\\:rounded-md {\n border-radius: var(--mie-radius-md);\n}\n.mie\\:rounded-xl {\n border-radius: var(--mie-radius-xl);\n}\n.mie\\:rounded-t-2xl {\n border-top-left-radius: var(--mie-radius-2xl);\n border-top-right-radius: var(--mie-radius-2xl);\n}\n.mie\\:rounded-t-lg {\n border-top-left-radius: var(--mie-radius-lg);\n border-top-right-radius: var(--mie-radius-lg);\n}\n.mie\\:border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n}\n.mie\\:border-0 {\n border-style: var(--tw-border-style);\n border-width: 0px;\n}\n.mie\\:border-2 {\n border-style: var(--tw-border-style);\n border-width: 2px;\n}\n.mie\\:border-t {\n border-top-style: var(--tw-border-style);\n border-top-width: 1px;\n}\n.mie\\:border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n}\n.mie\\:border-dashed {\n --tw-border-style: dashed;\n border-style: dashed;\n}\n.mie\\:border-gray-200 {\n border-color: var(--mie-color-gray-200);\n}\n.mie\\:border-mieborder {\n border-color: var(--mie-color-mieborder);\n}\n.mie\\:border-mieborderinactive {\n border-color: var(--mie-color-mieborderinactive);\n}\n.mie\\:border-miedanger\\/30 {\n border-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-miedanger) 30%, transparent);\n }\n}\n.mie\\:border-miedanger\\/50 {\n border-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-miedanger) 50%, transparent);\n }\n}\n.mie\\:border-mieprimary {\n border-color: var(--mie-color-mieprimary);\n}\n.mie\\:border-mieprimary\\/30 {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 30%, transparent);\n }\n}\n.mie\\:border-mieprimary\\/50 {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 50%, transparent);\n }\n}\n.mie\\:border-miewarning {\n border-color: var(--mie-color-miewarning);\n}\n.mie\\:border-transparent {\n border-color: transparent;\n}\n.mie\\:bg-blue-500 {\n background-color: var(--mie-color-blue-500);\n}\n.mie\\:bg-miebackground {\n background-color: var(--mie-color-miebackground);\n}\n.mie\\:bg-miebackgroundsecondary {\n background-color: var(--mie-color-miebackgroundsecondary);\n}\n.mie\\:bg-mieborder {\n background-color: var(--mie-color-mieborder);\n}\n.mie\\:bg-miedanger\\/10 {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 10%, transparent);\n }\n}\n.mie\\:bg-mieoverlay {\n background-color: var(--mie-color-mieoverlay);\n}\n.mie\\:bg-mieprimary {\n background-color: var(--mie-color-mieprimary);\n}\n.mie\\:bg-mieprimary\\/10 {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n}\n.mie\\:bg-mieprimary\\/20 {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 20%, transparent);\n }\n}\n.mie\\:bg-miesurface {\n background-color: var(--mie-color-miesurface);\n}\n.mie\\:bg-mietext {\n background-color: var(--mie-color-mietext);\n}\n.mie\\:bg-miewarning {\n background-color: var(--mie-color-miewarning);\n}\n.mie\\:bg-miewarning\\/10 {\n background-color: var(--mie-color-miewarning);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miewarning) 10%, transparent);\n }\n}\n.mie\\:bg-transparent {\n background-color: transparent;\n}\n.mie\\:bg-white {\n background-color: var(--mie-color-white);\n}\n.mie\\:bg-linear-to-br {\n --tw-gradient-position: to bottom right;\n @supports (background-image: linear-gradient(in lab, red, red)) {\n --tw-gradient-position: to bottom right in oklab;\n }\n background-image: linear-gradient(var(--tw-gradient-stops));\n}\n.mie\\:from-miebackground {\n --tw-gradient-from: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:from-mieprimary\\/10 {\n --tw-gradient-from: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-from: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:to-miebackground {\n --tw-gradient-to: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:to-mieborder\\/30 {\n --tw-gradient-to: var(--mie-color-mieborder);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-to: color-mix(in oklab, var(--mie-color-mieborder) 30%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:object-contain {\n object-fit: contain;\n}\n.mie\\:p-0 {\n padding: calc(var(--mie-spacing) * 0);\n}\n.mie\\:p-1 {\n padding: calc(var(--mie-spacing) * 1);\n}\n.mie\\:p-1\\.5 {\n padding: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:p-2 {\n padding: calc(var(--mie-spacing) * 2);\n}\n.mie\\:p-3 {\n padding: calc(var(--mie-spacing) * 3);\n}\n.mie\\:p-4 {\n padding: calc(var(--mie-spacing) * 4);\n}\n.mie\\:p-6 {\n padding: calc(var(--mie-spacing) * 6);\n}\n.mie\\:p-8 {\n padding: calc(var(--mie-spacing) * 8);\n}\n.mie\\:px-0 {\n padding-inline: calc(var(--mie-spacing) * 0);\n}\n.mie\\:px-0\\.5 {\n padding-inline: calc(var(--mie-spacing) * 0.5);\n}\n.mie\\:px-2 {\n padding-inline: calc(var(--mie-spacing) * 2);\n}\n.mie\\:px-2\\.5 {\n padding-inline: calc(var(--mie-spacing) * 2.5);\n}\n.mie\\:px-3 {\n padding-inline: calc(var(--mie-spacing) * 3);\n}\n.mie\\:px-4 {\n padding-inline: calc(var(--mie-spacing) * 4);\n}\n.mie\\:px-6 {\n padding-inline: calc(var(--mie-spacing) * 6);\n}\n.mie\\:px-8 {\n padding-inline: calc(var(--mie-spacing) * 8);\n}\n.mie\\:py-0\\.5 {\n padding-block: calc(var(--mie-spacing) * 0.5);\n}\n.mie\\:py-1 {\n padding-block: calc(var(--mie-spacing) * 1);\n}\n.mie\\:py-1\\.5 {\n padding-block: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:py-2 {\n padding-block: calc(var(--mie-spacing) * 2);\n}\n.mie\\:py-2\\.5 {\n padding-block: calc(var(--mie-spacing) * 2.5);\n}\n.mie\\:py-3 {\n padding-block: calc(var(--mie-spacing) * 3);\n}\n.mie\\:py-4 {\n padding-block: calc(var(--mie-spacing) * 4);\n}\n.mie\\:py-5 {\n padding-block: calc(var(--mie-spacing) * 5);\n}\n.mie\\:py-10 {\n padding-block: calc(var(--mie-spacing) * 10);\n}\n.mie\\:pt-1 {\n padding-top: calc(var(--mie-spacing) * 1);\n}\n.mie\\:pt-2 {\n padding-top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:pt-3 {\n padding-top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:pt-4 {\n padding-top: calc(var(--mie-spacing) * 4);\n}\n.mie\\:pt-6 {\n padding-top: calc(var(--mie-spacing) * 6);\n}\n.mie\\:pr-10 {\n padding-right: calc(var(--mie-spacing) * 10);\n}\n.mie\\:pr-16 {\n padding-right: calc(var(--mie-spacing) * 16);\n}\n.mie\\:pb-2 {\n padding-bottom: calc(var(--mie-spacing) * 2);\n}\n.mie\\:pb-4 {\n padding-bottom: calc(var(--mie-spacing) * 4);\n}\n.mie\\:pb-8 {\n padding-bottom: calc(var(--mie-spacing) * 8);\n}\n.mie\\:pl-32 {\n padding-left: calc(var(--mie-spacing) * 32);\n}\n.mie\\:text-center {\n text-align: center;\n}\n.mie\\:text-left {\n text-align: left;\n}\n.mie\\:font-mono {\n font-family: var(--mie-font-mono);\n}\n.mie\\:font-titillium {\n font-family: var(--mie-font-titillium);\n}\n.mie\\:text-base {\n font-size: var(--mie-text-base);\n line-height: var(--tw-leading, var(--mie-text-base--line-height));\n}\n.mie\\:text-lg {\n font-size: var(--mie-text-lg);\n line-height: var(--tw-leading, var(--mie-text-lg--line-height));\n}\n.mie\\:text-sm {\n font-size: var(--mie-text-sm);\n line-height: var(--tw-leading, var(--mie-text-sm--line-height));\n}\n.mie\\:text-xl {\n font-size: var(--mie-text-xl);\n line-height: var(--tw-leading, var(--mie-text-xl--line-height));\n}\n.mie\\:text-xs {\n font-size: var(--mie-text-xs);\n line-height: var(--tw-leading, var(--mie-text-xs--line-height));\n}\n.mie\\:leading-relaxed {\n --tw-leading: var(--mie-leading-relaxed);\n line-height: var(--mie-leading-relaxed);\n}\n.mie\\:font-light {\n --tw-font-weight: var(--mie-font-weight-light);\n font-weight: var(--mie-font-weight-light);\n}\n.mie\\:font-medium {\n --tw-font-weight: var(--mie-font-weight-medium);\n font-weight: var(--mie-font-weight-medium);\n}\n.mie\\:font-normal {\n --tw-font-weight: var(--mie-font-weight-normal);\n font-weight: var(--mie-font-weight-normal);\n}\n.mie\\:font-semibold {\n --tw-font-weight: var(--mie-font-weight-semibold);\n font-weight: var(--mie-font-weight-semibold);\n}\n.mie\\:tracking-wide {\n --tw-tracking: var(--mie-tracking-wide);\n letter-spacing: var(--mie-tracking-wide);\n}\n.mie\\:wrap-break-word {\n overflow-wrap: break-word;\n}\n.mie\\:whitespace-nowrap {\n white-space: nowrap;\n}\n.mie\\:whitespace-pre-line {\n white-space: pre-line;\n}\n.mie\\:text-gray-900 {\n color: var(--mie-color-gray-900);\n}\n.mie\\:text-mieborder {\n color: var(--mie-color-mieborder);\n}\n.mie\\:text-miedanger {\n color: var(--mie-color-miedanger);\n}\n.mie\\:text-mieprimary {\n color: var(--mie-color-mieprimary);\n}\n.mie\\:text-miesurface {\n color: var(--mie-color-miesurface);\n}\n.mie\\:text-mietext {\n color: var(--mie-color-mietext);\n}\n.mie\\:text-mietextmuted {\n color: var(--mie-color-mietextmuted);\n}\n.mie\\:text-mietextmuted\\/50 {\n color: var(--mie-color-mietextmuted);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--mie-color-mietextmuted) 50%, transparent);\n }\n}\n.mie\\:text-mietextmuted\\/70 {\n color: var(--mie-color-mietextmuted);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--mie-color-mietextmuted) 70%, transparent);\n }\n}\n.mie\\:text-mietextsecondary {\n color: var(--mie-color-mietextsecondary);\n}\n.mie\\:text-miewarning {\n color: var(--mie-color-miewarning);\n}\n.mie\\:uppercase {\n text-transform: uppercase;\n}\n.mie\\:italic {\n font-style: italic;\n}\n.mie\\:accent-mieprimary {\n accent-color: var(--mie-color-mieprimary);\n}\n.mie\\:opacity-0 {\n opacity: 0%;\n}\n.mie\\:opacity-50 {\n opacity: 50%;\n}\n.mie\\:shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-2xl {\n --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-lg {\n --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-md {\n --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-sm {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:ring-2 {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:ring-mieprimary {\n --tw-ring-color: var(--mie-color-mieprimary);\n}\n.mie\\:ring-offset-2 {\n --tw-ring-offset-width: 2px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n}\n.mie\\:transition {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-all {\n transition-property: all;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-colors {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-transform {\n transition-property: transform, translate, scale, rotate;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:duration-150 {\n --tw-duration: 150ms;\n transition-duration: 150ms;\n}\n.mie\\:outline-none {\n --tw-outline-style: none;\n outline-style: none;\n}\n.mie\\:select-none {\n -webkit-user-select: none;\n user-select: none;\n}\n.mie\\:group-hover\\:text-mietextsecondary {\n &:is(:where(.mie\\:group):hover *) {\n @media (hover: hover) {\n color: var(--mie-color-mietextsecondary);\n }\n }\n}\n.mie\\:placeholder\\:text-mietextmuted {\n &::placeholder {\n color: var(--mie-color-mietextmuted);\n }\n}\n.mie\\:hover\\:flex {\n &:hover {\n @media (hover: hover) {\n display: flex;\n }\n }\n}\n.mie\\:hover\\:scale-105 {\n &:hover {\n @media (hover: hover) {\n --tw-scale-x: 105%;\n --tw-scale-y: 105%;\n --tw-scale-z: 105%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n }\n }\n}\n.mie\\:hover\\:border-mieprimary {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:border-mieprimary\\/50 {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 50%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:border-mietextmuted {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mietextmuted);\n }\n }\n}\n.mie\\:hover\\:bg-blue-600 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-blue-600);\n }\n }\n}\n.mie\\:hover\\:bg-miebackground {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miebackground);\n }\n }\n}\n.mie\\:hover\\:bg-miebackgroundhover {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miebackgroundhover);\n }\n }\n}\n.mie\\:hover\\:bg-mieborder {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieborder);\n }\n }\n}\n.mie\\:hover\\:bg-miedanger\\/10 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 10%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-miedanger\\/20 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 20%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/10 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/80 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 80%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/90 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 90%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-miesurface {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miesurface);\n }\n }\n}\n.mie\\:hover\\:bg-miewarning\\/90 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miewarning);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miewarning) 90%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:from-mieprimary\\/20 {\n &:hover {\n @media (hover: hover) {\n --tw-gradient-from: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-from: color-mix(in oklab, var(--mie-color-mieprimary) 20%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n }\n}\n.mie\\:hover\\:to-miebackground {\n &:hover {\n @media (hover: hover) {\n --tw-gradient-to: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n }\n}\n.mie\\:hover\\:text-miedanger {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-miedanger);\n }\n }\n}\n.mie\\:hover\\:text-mieprimary {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:text-mietext {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mietext);\n }\n }\n}\n.mie\\:hover\\:text-mietextsecondary {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mietextsecondary);\n }\n }\n}\n.mie\\:hover\\:shadow {\n &:hover {\n @media (hover: hover) {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n}\n.mie\\:hover\\:ring-2 {\n &:hover {\n @media (hover: hover) {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n}\n.mie\\:hover\\:ring-mieborder {\n &:hover {\n @media (hover: hover) {\n --tw-ring-color: var(--mie-color-mieborder);\n }\n }\n}\n.mie\\:focus\\:border-mieprimary {\n &:focus {\n border-color: var(--mie-color-mieprimary);\n }\n}\n.mie\\:focus\\:ring-1 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n.mie\\:focus\\:ring-2 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n.mie\\:focus\\:ring-mieprimary {\n &:focus {\n --tw-ring-color: var(--mie-color-mieprimary);\n }\n}\n.mie\\:focus\\:ring-mieprimary\\/30 {\n &:focus {\n --tw-ring-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-ring-color: color-mix(in oklab, var(--mie-color-mieprimary) 30%, transparent);\n }\n }\n}\n.mie\\:focus\\:ring-offset-2 {\n &:focus {\n --tw-ring-offset-width: 2px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n }\n}\n.mie\\:focus\\:outline-none {\n &:focus {\n --tw-outline-style: none;\n outline-style: none;\n }\n}\n.mie\\:disabled\\:cursor-not-allowed {\n &:disabled {\n cursor: not-allowed;\n }\n}\n.mie\\:disabled\\:opacity-40 {\n &:disabled {\n opacity: 40%;\n }\n}\n.mie\\:disabled\\:opacity-50 {\n &:disabled {\n opacity: 50%;\n }\n}\n.mie\\:sm\\:grid-cols-2 {\n @media (width >= 40rem) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n.mie\\:md\\:w-80 {\n @media (width >= 48rem) {\n width: calc(var(--mie-spacing) * 80);\n }\n}\n.mie\\:md\\:max-w-\\[75vw\\] {\n @media (width >= 48rem) {\n max-width: 75vw;\n }\n}\n.mie\\:md\\:flex-row {\n @media (width >= 48rem) {\n flex-direction: row;\n }\n}\n.mie\\:md\\:px-6 {\n @media (width >= 48rem) {\n padding-inline: calc(var(--mie-spacing) * 6);\n }\n}\n.mie\\:lg\\:block {\n @media (width >= 64rem) {\n display: block;\n }\n}\n.mie\\:lg\\:flex {\n @media (width >= 64rem) {\n display: flex;\n }\n}\n.mie\\:lg\\:hidden {\n @media (width >= 64rem) {\n display: none;\n }\n}\n.mie\\:lg\\:h-4 {\n @media (width >= 64rem) {\n height: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:max-h-\\[calc\\(100dvh-11rem\\)\\] {\n @media (width >= 64rem) {\n max-height: calc(100dvh - 11rem);\n }\n}\n.mie\\:lg\\:max-h-\\[calc\\(100dvh-20rem\\)\\] {\n @media (width >= 64rem) {\n max-height: calc(100dvh - 20rem);\n }\n}\n.mie\\:lg\\:w-4 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:w-72 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 72);\n }\n}\n.mie\\:lg\\:w-90 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 90);\n }\n}\n.mie\\:lg\\:max-w-full {\n @media (width >= 64rem) {\n max-width: 100%;\n }\n}\n.mie\\:lg\\:grid-cols-2 {\n @media (width >= 64rem) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n.mie\\:lg\\:flex-row {\n @media (width >= 64rem) {\n flex-direction: row;\n }\n}\n.mie\\:lg\\:items-center {\n @media (width >= 64rem) {\n align-items: center;\n }\n}\n.mie\\:lg\\:justify-center {\n @media (width >= 64rem) {\n justify-content: center;\n }\n}\n.mie\\:lg\\:gap-2 {\n @media (width >= 64rem) {\n gap: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:gap-3 {\n @media (width >= 64rem) {\n gap: calc(var(--mie-spacing) * 3);\n }\n}\n.mie\\:lg\\:px-3 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 3);\n }\n}\n.mie\\:lg\\:px-4 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:px-6 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 6);\n }\n}\n.mie\\:lg\\:py-2 {\n @media (width >= 64rem) {\n padding-block: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:pr-2 {\n @media (width >= 64rem) {\n padding-right: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:pb-4 {\n @media (width >= 64rem) {\n padding-bottom: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:text-sm {\n @media (width >= 64rem) {\n font-size: var(--mie-text-sm);\n line-height: var(--tw-leading, var(--mie-text-sm--line-height));\n }\n}\n@layer base {\n .qb-editor-root, .qb-editor-root *, .qb-editor-root *::before, .qb-editor-root *::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n }\n .qb-editor-root {\n font-family: \"Titillium Web\", ui-sans-serif, system-ui, sans-serif;\n }\n .qb-editor-root input, .qb-editor-root textarea, .qb-editor-root select, .qb-editor-root button {\n font-family: inherit;\n font-size: inherit;\n }\n}\ndiv:focus-visible, button:focus-visible {\n outline: none;\n}\n.qb-editor-root.dark {\n --mie-color-mieprimary: #6b7fa3;\n --mie-color-miesecondary: #9ca3af;\n --mie-color-mieaccent: #34d399;\n --mie-color-miedanger: #f87171;\n --mie-color-miewarning: #fb923c;\n --mie-color-miesurface: #252526;\n --mie-color-mieborder: #3c3c3c;\n --mie-color-mieborderinactive: #5a5a5a;\n --mie-color-mietext: #d4d4d4;\n --mie-color-mietextsecondary: #1e1e1e;\n --mie-color-mietextmuted: #808080;\n --mie-color-miebackground: #1e1e1e;\n --mie-color-miebackgroundsecondary: #252526;\n --mie-color-miebackgroundhover: #2a2d2e;\n --mie-color-mieoverlay: rgba(0, 0, 0, 0.7);\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar {\n width: 4px;\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar-thumb {\n background: transparent;\n border-radius: 9999px;\n transition: background 0.2s;\n}\n.mie\\:custom-scrollbar:hover::-webkit-scrollbar-thumb {\n background: #d1d5db;\n}\n.mie\\:custom-scrollbar {\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n}\n.mie\\:custom-scrollbar:hover {\n scrollbar-color: #d1d5db transparent;\n}\n@property --tw-translate-x {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-y {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-z {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-scale-x {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-scale-y {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-scale-z {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-space-y-reverse {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-gradient-position {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-from {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-via {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-to {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-stops {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-via-stops {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-from-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 0%;\n}\n@property --tw-gradient-via-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 50%;\n}\n@property --tw-gradient-to-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-leading {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-tracking {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-inset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-offset-width {\n syntax: \"<length>\";\n inherits: false;\n initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n syntax: \"*\";\n inherits: false;\n initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-duration {\n syntax: \"*\";\n inherits: false;\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-scale-z: 1;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-gradient-position: initial;\n --tw-gradient-from: #0000;\n --tw-gradient-via: #0000;\n --tw-gradient-to: #0000;\n --tw-gradient-stops: initial;\n --tw-gradient-via-stops: initial;\n --tw-gradient-from-position: 0%;\n --tw-gradient-via-position: 50%;\n --tw-gradient-to-position: 100%;\n --tw-leading: initial;\n --tw-font-weight: initial;\n --tw-tracking: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-duration: initial;\n }\n }\n}\n";
8
+ style.textContent = "/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');\n@layer properties;\n:root, :host {\n --mie-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',\n monospace;\n --mie-color-blue-500: oklch(62.3% 0.214 259.815);\n --mie-color-blue-600: oklch(54.6% 0.245 262.881);\n --mie-color-gray-200: oklch(92.8% 0.006 264.531);\n --mie-color-gray-900: oklch(21% 0.034 264.665);\n --mie-color-white: #fff;\n --mie-spacing: 0.25rem;\n --mie-container-md: 28rem;\n --mie-container-xl: 36rem;\n --mie-container-4xl: 56rem;\n --mie-container-7xl: 80rem;\n --mie-text-xs: 0.75rem;\n --mie-text-xs--line-height: calc(1 / 0.75);\n --mie-text-sm: 0.875rem;\n --mie-text-sm--line-height: calc(1.25 / 0.875);\n --mie-text-base: 1rem;\n --mie-text-base--line-height: calc(1.5 / 1);\n --mie-text-lg: 1.125rem;\n --mie-text-lg--line-height: calc(1.75 / 1.125);\n --mie-text-xl: 1.25rem;\n --mie-text-xl--line-height: calc(1.75 / 1.25);\n --mie-font-weight-light: 300;\n --mie-font-weight-normal: 400;\n --mie-font-weight-medium: 500;\n --mie-font-weight-semibold: 600;\n --mie-tracking-wide: 0.025em;\n --mie-leading-relaxed: 1.625;\n --mie-radius-md: 0.375rem;\n --mie-radius-lg: 0.5rem;\n --mie-radius-xl: 0.75rem;\n --mie-radius-2xl: 1rem;\n --mie-default-transition-duration: 150ms;\n --mie-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --mie-font-titillium: \"Titillium Web\", sans-serif;\n --mie-color-mieprimary: #3b82f6;\n --mie-color-miesecondary: #6b7280;\n --mie-color-mieaccent: #10b981;\n --mie-color-miedanger: #ef4444;\n --mie-color-miewarning: #f97316;\n --mie-color-miesurface: #ffffff;\n --mie-color-mieborder: #e5e7eb;\n --mie-color-mieborderinactive: #9ca3af;\n --mie-color-mietext: #111827;\n --mie-color-mietextsecondary: #f8fafc;\n --mie-color-mietextmuted: #6b7280;\n --mie-color-miebackground: #f9fafb;\n --mie-color-miebackgroundsecondary: #f3f4f6;\n --mie-color-miebackgroundhover: #eceef1;\n --mie-color-mieoverlay: rgba(0, 0, 0, 0.5);\n}\n.mie\\:pointer-events-none {\n pointer-events: none;\n}\n.mie\\:absolute {\n position: absolute;\n}\n.mie\\:fixed {\n position: fixed;\n}\n.mie\\:relative {\n position: relative;\n}\n.mie\\:sticky {\n position: sticky;\n}\n.mie\\:inset-0 {\n inset: calc(var(--mie-spacing) * 0);\n}\n.mie\\:top-0 {\n top: calc(var(--mie-spacing) * 0);\n}\n.mie\\:top-1\\/2 {\n top: calc(1/2 * 100%);\n}\n.mie\\:top-2 {\n top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:top-3 {\n top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:top-11 {\n top: calc(var(--mie-spacing) * 11);\n}\n.mie\\:right-0 {\n right: calc(var(--mie-spacing) * 0);\n}\n.mie\\:right-2 {\n right: calc(var(--mie-spacing) * 2);\n}\n.mie\\:right-3 {\n right: calc(var(--mie-spacing) * 3);\n}\n.mie\\:bottom-0 {\n bottom: calc(var(--mie-spacing) * 0);\n}\n.mie\\:bottom-5 {\n bottom: calc(var(--mie-spacing) * 5);\n}\n.mie\\:bottom-full {\n bottom: 100%;\n}\n.mie\\:-left-2 {\n left: calc(var(--mie-spacing) * -2);\n}\n.mie\\:left-0 {\n left: calc(var(--mie-spacing) * 0);\n}\n.mie\\:left-5 {\n left: calc(var(--mie-spacing) * 5);\n}\n.mie\\:z-10 {\n z-index: 10;\n}\n.mie\\:z-20 {\n z-index: 20;\n}\n.mie\\:z-40 {\n z-index: 40;\n}\n.mie\\:z-50 {\n z-index: 50;\n}\n.mie\\:z-9999 {\n z-index: 9999;\n}\n.mie\\:m-0 {\n margin: calc(var(--mie-spacing) * 0);\n}\n.mie\\:-mx-6 {\n margin-inline: calc(var(--mie-spacing) * -6);\n}\n.mie\\:mx-4 {\n margin-inline: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mx-auto {\n margin-inline: auto;\n}\n.mie\\:my-2 {\n margin-block: calc(var(--mie-spacing) * 2);\n}\n.mie\\:-mt-6 {\n margin-top: calc(var(--mie-spacing) * -6);\n}\n.mie\\:mt-1 {\n margin-top: calc(var(--mie-spacing) * 1);\n}\n.mie\\:mt-2 {\n margin-top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:mt-3 {\n margin-top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:mt-4 {\n margin-top: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mb-1 {\n margin-bottom: calc(var(--mie-spacing) * 1);\n}\n.mie\\:mb-1\\.5 {\n margin-bottom: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:mb-2 {\n margin-bottom: calc(var(--mie-spacing) * 2);\n}\n.mie\\:mb-3 {\n margin-bottom: calc(var(--mie-spacing) * 3);\n}\n.mie\\:mb-4 {\n margin-bottom: calc(var(--mie-spacing) * 4);\n}\n.mie\\:mb-6 {\n margin-bottom: calc(var(--mie-spacing) * 6);\n}\n.mie\\:ml-2 {\n margin-left: calc(var(--mie-spacing) * 2);\n}\n.mie\\:ml-auto {\n margin-left: auto;\n}\n.mie\\:block {\n display: block;\n}\n.mie\\:flex {\n display: flex;\n}\n.mie\\:grid {\n display: grid;\n}\n.mie\\:hidden {\n display: none;\n}\n.mie\\:inline-flex {\n display: inline-flex;\n}\n.mie\\:h-1 {\n height: calc(var(--mie-spacing) * 1);\n}\n.mie\\:h-3 {\n height: calc(var(--mie-spacing) * 3);\n}\n.mie\\:h-3\\.5 {\n height: calc(var(--mie-spacing) * 3.5);\n}\n.mie\\:h-4 {\n height: calc(var(--mie-spacing) * 4);\n}\n.mie\\:h-5 {\n height: calc(var(--mie-spacing) * 5);\n}\n.mie\\:h-6 {\n height: calc(var(--mie-spacing) * 6);\n}\n.mie\\:h-7 {\n height: calc(var(--mie-spacing) * 7);\n}\n.mie\\:h-8 {\n height: calc(var(--mie-spacing) * 8);\n}\n.mie\\:h-10 {\n height: calc(var(--mie-spacing) * 10);\n}\n.mie\\:h-11 {\n height: calc(var(--mie-spacing) * 11);\n}\n.mie\\:h-12 {\n height: calc(var(--mie-spacing) * 12);\n}\n.mie\\:h-24 {\n height: calc(var(--mie-spacing) * 24);\n}\n.mie\\:h-72 {\n height: calc(var(--mie-spacing) * 72);\n}\n.mie\\:h-auto {\n height: auto;\n}\n.mie\\:h-fit {\n height: fit-content;\n}\n.mie\\:h-full {\n height: 100%;\n}\n.mie\\:max-h-32 {\n max-height: calc(var(--mie-spacing) * 32);\n}\n.mie\\:max-h-48 {\n max-height: calc(var(--mie-spacing) * 48);\n}\n.mie\\:max-h-56 {\n max-height: calc(var(--mie-spacing) * 56);\n}\n.mie\\:max-h-60 {\n max-height: calc(var(--mie-spacing) * 60);\n}\n.mie\\:max-h-64 {\n max-height: calc(var(--mie-spacing) * 64);\n}\n.mie\\:max-h-75 {\n max-height: calc(var(--mie-spacing) * 75);\n}\n.mie\\:max-h-\\[60vh\\] {\n max-height: 60vh;\n}\n.mie\\:max-h-\\[calc\\(100svh-13rem\\)\\] {\n max-height: calc(100svh - 13rem);\n}\n.mie\\:max-h-\\[calc\\(100svh-24rem\\)\\] {\n max-height: calc(100svh - 24rem);\n}\n.mie\\:max-h-none {\n max-height: none;\n}\n.mie\\:min-h-10 {\n min-height: calc(var(--mie-spacing) * 10);\n}\n.mie\\:min-h-24 {\n min-height: calc(var(--mie-spacing) * 24);\n}\n.mie\\:min-h-64 {\n min-height: calc(var(--mie-spacing) * 64);\n}\n.mie\\:w-1\\/2 {\n width: calc(1/2 * 100%);\n}\n.mie\\:w-3 {\n width: calc(var(--mie-spacing) * 3);\n}\n.mie\\:w-3\\.5 {\n width: calc(var(--mie-spacing) * 3.5);\n}\n.mie\\:w-3\\/4 {\n width: calc(3/4 * 100%);\n}\n.mie\\:w-4 {\n width: calc(var(--mie-spacing) * 4);\n}\n.mie\\:w-5 {\n width: calc(var(--mie-spacing) * 5);\n}\n.mie\\:w-6 {\n width: calc(var(--mie-spacing) * 6);\n}\n.mie\\:w-7 {\n width: calc(var(--mie-spacing) * 7);\n}\n.mie\\:w-8 {\n width: calc(var(--mie-spacing) * 8);\n}\n.mie\\:w-12 {\n width: calc(var(--mie-spacing) * 12);\n}\n.mie\\:w-20 {\n width: calc(var(--mie-spacing) * 20);\n}\n.mie\\:w-32 {\n width: calc(var(--mie-spacing) * 32);\n}\n.mie\\:w-fit {\n width: fit-content;\n}\n.mie\\:w-full {\n width: 100%;\n}\n.mie\\:w-px {\n width: 1px;\n}\n.mie\\:max-w-4xl {\n max-width: var(--mie-container-4xl);\n}\n.mie\\:max-w-7xl {\n max-width: var(--mie-container-7xl);\n}\n.mie\\:max-w-\\[80vw\\] {\n max-width: 80vw;\n}\n.mie\\:max-w-full {\n max-width: 100%;\n}\n.mie\\:max-w-md {\n max-width: var(--mie-container-md);\n}\n.mie\\:max-w-xl {\n max-width: var(--mie-container-xl);\n}\n.mie\\:min-w-0 {\n min-width: calc(var(--mie-spacing) * 0);\n}\n.mie\\:min-w-\\[44px\\] {\n min-width: 44px;\n}\n.mie\\:flex-1 {\n flex: 1;\n}\n.mie\\:shrink-0 {\n flex-shrink: 0;\n}\n.mie\\:-translate-y-1\\/2 {\n --tw-translate-y: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n}\n.mie\\:scale-105 {\n --tw-scale-x: 105%;\n --tw-scale-y: 105%;\n --tw-scale-z: 105%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n}\n.mie\\:rotate-180 {\n rotate: 180deg;\n}\n.mie\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.mie\\:cursor-pointer {\n cursor: pointer;\n}\n.mie\\:touch-manipulation {\n touch-action: manipulation;\n}\n.mie\\:resize-y {\n resize: vertical;\n}\n.mie\\:appearance-none {\n appearance: none;\n}\n.mie\\:grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.mie\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.mie\\:flex-col {\n flex-direction: column;\n}\n.mie\\:flex-wrap {\n flex-wrap: wrap;\n}\n.mie\\:items-center {\n align-items: center;\n}\n.mie\\:items-end {\n align-items: flex-end;\n}\n.mie\\:items-start {\n align-items: flex-start;\n}\n.mie\\:justify-between {\n justify-content: space-between;\n}\n.mie\\:justify-center {\n justify-content: center;\n}\n.mie\\:justify-end {\n justify-content: flex-end;\n}\n.mie\\:justify-evenly {\n justify-content: space-evenly;\n}\n.mie\\:justify-start {\n justify-content: flex-start;\n}\n.mie\\:gap-0 {\n gap: calc(var(--mie-spacing) * 0);\n}\n.mie\\:gap-1 {\n gap: calc(var(--mie-spacing) * 1);\n}\n.mie\\:gap-1\\.5 {\n gap: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:gap-2 {\n gap: calc(var(--mie-spacing) * 2);\n}\n.mie\\:gap-3 {\n gap: calc(var(--mie-spacing) * 3);\n}\n.mie\\:gap-4 {\n gap: calc(var(--mie-spacing) * 4);\n}\n.mie\\:space-y-1 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 1) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-2 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 2) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-3 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 3) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:space-y-4 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--mie-spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--mie-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n}\n.mie\\:truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mie\\:overflow-auto {\n overflow: auto;\n}\n.mie\\:overflow-hidden {\n overflow: hidden;\n}\n.mie\\:overflow-visible {\n overflow: visible;\n}\n.mie\\:overflow-y-auto {\n overflow-y: auto;\n}\n.mie\\:rounded {\n border-radius: 0.25rem;\n}\n.mie\\:rounded-2xl {\n border-radius: var(--mie-radius-2xl);\n}\n.mie\\:rounded-full {\n border-radius: calc(infinity * 1px);\n}\n.mie\\:rounded-lg {\n border-radius: var(--mie-radius-lg);\n}\n.mie\\:rounded-md {\n border-radius: var(--mie-radius-md);\n}\n.mie\\:rounded-xl {\n border-radius: var(--mie-radius-xl);\n}\n.mie\\:rounded-t-2xl {\n border-top-left-radius: var(--mie-radius-2xl);\n border-top-right-radius: var(--mie-radius-2xl);\n}\n.mie\\:rounded-t-lg {\n border-top-left-radius: var(--mie-radius-lg);\n border-top-right-radius: var(--mie-radius-lg);\n}\n.mie\\:border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n}\n.mie\\:border-0 {\n border-style: var(--tw-border-style);\n border-width: 0px;\n}\n.mie\\:border-2 {\n border-style: var(--tw-border-style);\n border-width: 2px;\n}\n.mie\\:border-t {\n border-top-style: var(--tw-border-style);\n border-top-width: 1px;\n}\n.mie\\:border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n}\n.mie\\:border-dashed {\n --tw-border-style: dashed;\n border-style: dashed;\n}\n.mie\\:border-gray-200 {\n border-color: var(--mie-color-gray-200);\n}\n.mie\\:border-mieborder {\n border-color: var(--mie-color-mieborder);\n}\n.mie\\:border-mieborderinactive {\n border-color: var(--mie-color-mieborderinactive);\n}\n.mie\\:border-miedanger\\/30 {\n border-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-miedanger) 30%, transparent);\n }\n}\n.mie\\:border-miedanger\\/50 {\n border-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-miedanger) 50%, transparent);\n }\n}\n.mie\\:border-mieprimary {\n border-color: var(--mie-color-mieprimary);\n}\n.mie\\:border-mieprimary\\/30 {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 30%, transparent);\n }\n}\n.mie\\:border-mieprimary\\/50 {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 50%, transparent);\n }\n}\n.mie\\:border-miewarning {\n border-color: var(--mie-color-miewarning);\n}\n.mie\\:border-transparent {\n border-color: transparent;\n}\n.mie\\:bg-blue-500 {\n background-color: var(--mie-color-blue-500);\n}\n.mie\\:bg-miebackground {\n background-color: var(--mie-color-miebackground);\n}\n.mie\\:bg-miebackgroundsecondary {\n background-color: var(--mie-color-miebackgroundsecondary);\n}\n.mie\\:bg-mieborder {\n background-color: var(--mie-color-mieborder);\n}\n.mie\\:bg-miedanger\\/10 {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 10%, transparent);\n }\n}\n.mie\\:bg-mieoverlay {\n background-color: var(--mie-color-mieoverlay);\n}\n.mie\\:bg-mieprimary {\n background-color: var(--mie-color-mieprimary);\n}\n.mie\\:bg-mieprimary\\/10 {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n}\n.mie\\:bg-mieprimary\\/20 {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 20%, transparent);\n }\n}\n.mie\\:bg-miesurface {\n background-color: var(--mie-color-miesurface);\n}\n.mie\\:bg-mietext {\n background-color: var(--mie-color-mietext);\n}\n.mie\\:bg-miewarning {\n background-color: var(--mie-color-miewarning);\n}\n.mie\\:bg-miewarning\\/10 {\n background-color: var(--mie-color-miewarning);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miewarning) 10%, transparent);\n }\n}\n.mie\\:bg-transparent {\n background-color: transparent;\n}\n.mie\\:bg-white {\n background-color: var(--mie-color-white);\n}\n.mie\\:bg-linear-to-br {\n --tw-gradient-position: to bottom right;\n @supports (background-image: linear-gradient(in lab, red, red)) {\n --tw-gradient-position: to bottom right in oklab;\n }\n background-image: linear-gradient(var(--tw-gradient-stops));\n}\n.mie\\:from-miebackground {\n --tw-gradient-from: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:from-mieprimary\\/10 {\n --tw-gradient-from: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-from: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:to-miebackground {\n --tw-gradient-to: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:to-mieborder\\/30 {\n --tw-gradient-to: var(--mie-color-mieborder);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-to: color-mix(in oklab, var(--mie-color-mieborder) 30%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n}\n.mie\\:object-contain {\n object-fit: contain;\n}\n.mie\\:p-0 {\n padding: calc(var(--mie-spacing) * 0);\n}\n.mie\\:p-1 {\n padding: calc(var(--mie-spacing) * 1);\n}\n.mie\\:p-1\\.5 {\n padding: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:p-2 {\n padding: calc(var(--mie-spacing) * 2);\n}\n.mie\\:p-3 {\n padding: calc(var(--mie-spacing) * 3);\n}\n.mie\\:p-4 {\n padding: calc(var(--mie-spacing) * 4);\n}\n.mie\\:p-6 {\n padding: calc(var(--mie-spacing) * 6);\n}\n.mie\\:p-8 {\n padding: calc(var(--mie-spacing) * 8);\n}\n.mie\\:px-0 {\n padding-inline: calc(var(--mie-spacing) * 0);\n}\n.mie\\:px-0\\.5 {\n padding-inline: calc(var(--mie-spacing) * 0.5);\n}\n.mie\\:px-2 {\n padding-inline: calc(var(--mie-spacing) * 2);\n}\n.mie\\:px-2\\.5 {\n padding-inline: calc(var(--mie-spacing) * 2.5);\n}\n.mie\\:px-3 {\n padding-inline: calc(var(--mie-spacing) * 3);\n}\n.mie\\:px-4 {\n padding-inline: calc(var(--mie-spacing) * 4);\n}\n.mie\\:px-6 {\n padding-inline: calc(var(--mie-spacing) * 6);\n}\n.mie\\:px-8 {\n padding-inline: calc(var(--mie-spacing) * 8);\n}\n.mie\\:py-0\\.5 {\n padding-block: calc(var(--mie-spacing) * 0.5);\n}\n.mie\\:py-1 {\n padding-block: calc(var(--mie-spacing) * 1);\n}\n.mie\\:py-1\\.5 {\n padding-block: calc(var(--mie-spacing) * 1.5);\n}\n.mie\\:py-2 {\n padding-block: calc(var(--mie-spacing) * 2);\n}\n.mie\\:py-2\\.5 {\n padding-block: calc(var(--mie-spacing) * 2.5);\n}\n.mie\\:py-3 {\n padding-block: calc(var(--mie-spacing) * 3);\n}\n.mie\\:py-4 {\n padding-block: calc(var(--mie-spacing) * 4);\n}\n.mie\\:py-5 {\n padding-block: calc(var(--mie-spacing) * 5);\n}\n.mie\\:py-10 {\n padding-block: calc(var(--mie-spacing) * 10);\n}\n.mie\\:pt-1 {\n padding-top: calc(var(--mie-spacing) * 1);\n}\n.mie\\:pt-2 {\n padding-top: calc(var(--mie-spacing) * 2);\n}\n.mie\\:pt-3 {\n padding-top: calc(var(--mie-spacing) * 3);\n}\n.mie\\:pt-4 {\n padding-top: calc(var(--mie-spacing) * 4);\n}\n.mie\\:pt-6 {\n padding-top: calc(var(--mie-spacing) * 6);\n}\n.mie\\:pr-10 {\n padding-right: calc(var(--mie-spacing) * 10);\n}\n.mie\\:pr-16 {\n padding-right: calc(var(--mie-spacing) * 16);\n}\n.mie\\:pb-2 {\n padding-bottom: calc(var(--mie-spacing) * 2);\n}\n.mie\\:pb-4 {\n padding-bottom: calc(var(--mie-spacing) * 4);\n}\n.mie\\:pb-8 {\n padding-bottom: calc(var(--mie-spacing) * 8);\n}\n.mie\\:pl-32 {\n padding-left: calc(var(--mie-spacing) * 32);\n}\n.mie\\:text-center {\n text-align: center;\n}\n.mie\\:text-left {\n text-align: left;\n}\n.mie\\:font-mono {\n font-family: var(--mie-font-mono);\n}\n.mie\\:font-titillium {\n font-family: var(--mie-font-titillium);\n}\n.mie\\:text-base {\n font-size: var(--mie-text-base);\n line-height: var(--tw-leading, var(--mie-text-base--line-height));\n}\n.mie\\:text-lg {\n font-size: var(--mie-text-lg);\n line-height: var(--tw-leading, var(--mie-text-lg--line-height));\n}\n.mie\\:text-sm {\n font-size: var(--mie-text-sm);\n line-height: var(--tw-leading, var(--mie-text-sm--line-height));\n}\n.mie\\:text-xl {\n font-size: var(--mie-text-xl);\n line-height: var(--tw-leading, var(--mie-text-xl--line-height));\n}\n.mie\\:text-xs {\n font-size: var(--mie-text-xs);\n line-height: var(--tw-leading, var(--mie-text-xs--line-height));\n}\n.mie\\:leading-relaxed {\n --tw-leading: var(--mie-leading-relaxed);\n line-height: var(--mie-leading-relaxed);\n}\n.mie\\:font-light {\n --tw-font-weight: var(--mie-font-weight-light);\n font-weight: var(--mie-font-weight-light);\n}\n.mie\\:font-medium {\n --tw-font-weight: var(--mie-font-weight-medium);\n font-weight: var(--mie-font-weight-medium);\n}\n.mie\\:font-normal {\n --tw-font-weight: var(--mie-font-weight-normal);\n font-weight: var(--mie-font-weight-normal);\n}\n.mie\\:font-semibold {\n --tw-font-weight: var(--mie-font-weight-semibold);\n font-weight: var(--mie-font-weight-semibold);\n}\n.mie\\:tracking-wide {\n --tw-tracking: var(--mie-tracking-wide);\n letter-spacing: var(--mie-tracking-wide);\n}\n.mie\\:wrap-break-word {\n overflow-wrap: break-word;\n}\n.mie\\:whitespace-nowrap {\n white-space: nowrap;\n}\n.mie\\:whitespace-pre-line {\n white-space: pre-line;\n}\n.mie\\:text-gray-900 {\n color: var(--mie-color-gray-900);\n}\n.mie\\:text-mieborder {\n color: var(--mie-color-mieborder);\n}\n.mie\\:text-miedanger {\n color: var(--mie-color-miedanger);\n}\n.mie\\:text-mieprimary {\n color: var(--mie-color-mieprimary);\n}\n.mie\\:text-miesurface {\n color: var(--mie-color-miesurface);\n}\n.mie\\:text-mietext {\n color: var(--mie-color-mietext);\n}\n.mie\\:text-mietextmuted {\n color: var(--mie-color-mietextmuted);\n}\n.mie\\:text-mietextmuted\\/50 {\n color: var(--mie-color-mietextmuted);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--mie-color-mietextmuted) 50%, transparent);\n }\n}\n.mie\\:text-mietextmuted\\/70 {\n color: var(--mie-color-mietextmuted);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--mie-color-mietextmuted) 70%, transparent);\n }\n}\n.mie\\:text-mietextsecondary {\n color: var(--mie-color-mietextsecondary);\n}\n.mie\\:text-miewarning {\n color: var(--mie-color-miewarning);\n}\n.mie\\:uppercase {\n text-transform: uppercase;\n}\n.mie\\:italic {\n font-style: italic;\n}\n.mie\\:accent-mieprimary {\n accent-color: var(--mie-color-mieprimary);\n}\n.mie\\:opacity-0 {\n opacity: 0%;\n}\n.mie\\:opacity-50 {\n opacity: 50%;\n}\n.mie\\:shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-2xl {\n --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-lg {\n --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-md {\n --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:shadow-sm {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:ring-2 {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n}\n.mie\\:ring-mieprimary {\n --tw-ring-color: var(--mie-color-mieprimary);\n}\n.mie\\:ring-offset-2 {\n --tw-ring-offset-width: 2px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n}\n.mie\\:transition {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-all {\n transition-property: all;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-colors {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:transition-transform {\n transition-property: transform, translate, scale, rotate;\n transition-timing-function: var(--tw-ease, var(--mie-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--mie-default-transition-duration));\n}\n.mie\\:duration-150 {\n --tw-duration: 150ms;\n transition-duration: 150ms;\n}\n.mie\\:outline-none {\n --tw-outline-style: none;\n outline-style: none;\n}\n.mie\\:select-none {\n -webkit-user-select: none;\n user-select: none;\n}\n.mie\\:group-hover\\:text-mietextsecondary {\n &:is(:where(.mie\\:group):hover *) {\n @media (hover: hover) {\n color: var(--mie-color-mietextsecondary);\n }\n }\n}\n.mie\\:placeholder\\:text-mietextmuted {\n &::placeholder {\n color: var(--mie-color-mietextmuted);\n }\n}\n.mie\\:hover\\:flex {\n &:hover {\n @media (hover: hover) {\n display: flex;\n }\n }\n}\n.mie\\:hover\\:scale-105 {\n &:hover {\n @media (hover: hover) {\n --tw-scale-x: 105%;\n --tw-scale-y: 105%;\n --tw-scale-z: 105%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n }\n }\n}\n.mie\\:hover\\:border-mieprimary {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:border-mieprimary\\/50 {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--mie-color-mieprimary) 50%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:border-mietextmuted {\n &:hover {\n @media (hover: hover) {\n border-color: var(--mie-color-mietextmuted);\n }\n }\n}\n.mie\\:hover\\:bg-blue-600 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-blue-600);\n }\n }\n}\n.mie\\:hover\\:bg-miebackground {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miebackground);\n }\n }\n}\n.mie\\:hover\\:bg-miebackgroundhover {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miebackgroundhover);\n }\n }\n}\n.mie\\:hover\\:bg-mieborder {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieborder);\n }\n }\n}\n.mie\\:hover\\:bg-miedanger\\/10 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 10%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-miedanger\\/20 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miedanger);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miedanger) 20%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/10 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 10%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/80 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 80%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-mieprimary\\/90 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-mieprimary) 90%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:bg-miesurface {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miesurface);\n }\n }\n}\n.mie\\:hover\\:bg-miewarning\\/90 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--mie-color-miewarning);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--mie-color-miewarning) 90%, transparent);\n }\n }\n }\n}\n.mie\\:hover\\:from-mieprimary\\/20 {\n &:hover {\n @media (hover: hover) {\n --tw-gradient-from: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-gradient-from: color-mix(in oklab, var(--mie-color-mieprimary) 20%, transparent);\n }\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n }\n}\n.mie\\:hover\\:to-miebackground {\n &:hover {\n @media (hover: hover) {\n --tw-gradient-to: var(--mie-color-miebackground);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n }\n}\n.mie\\:hover\\:text-miedanger {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-miedanger);\n }\n }\n}\n.mie\\:hover\\:text-mieprimary {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mieprimary);\n }\n }\n}\n.mie\\:hover\\:text-mietext {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mietext);\n }\n }\n}\n.mie\\:hover\\:text-mietextsecondary {\n &:hover {\n @media (hover: hover) {\n color: var(--mie-color-mietextsecondary);\n }\n }\n}\n.mie\\:hover\\:shadow {\n &:hover {\n @media (hover: hover) {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n}\n.mie\\:hover\\:ring-2 {\n &:hover {\n @media (hover: hover) {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n}\n.mie\\:hover\\:ring-mieborder {\n &:hover {\n @media (hover: hover) {\n --tw-ring-color: var(--mie-color-mieborder);\n }\n }\n}\n.mie\\:focus\\:border-mieprimary {\n &:focus {\n border-color: var(--mie-color-mieprimary);\n }\n}\n.mie\\:focus\\:ring-1 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n.mie\\:focus\\:ring-2 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n.mie\\:focus\\:ring-mieprimary {\n &:focus {\n --tw-ring-color: var(--mie-color-mieprimary);\n }\n}\n.mie\\:focus\\:ring-mieprimary\\/30 {\n &:focus {\n --tw-ring-color: var(--mie-color-mieprimary);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-ring-color: color-mix(in oklab, var(--mie-color-mieprimary) 30%, transparent);\n }\n }\n}\n.mie\\:focus\\:ring-offset-2 {\n &:focus {\n --tw-ring-offset-width: 2px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n }\n}\n.mie\\:focus\\:outline-none {\n &:focus {\n --tw-outline-style: none;\n outline-style: none;\n }\n}\n.mie\\:disabled\\:cursor-not-allowed {\n &:disabled {\n cursor: not-allowed;\n }\n}\n.mie\\:disabled\\:opacity-40 {\n &:disabled {\n opacity: 40%;\n }\n}\n.mie\\:disabled\\:opacity-50 {\n &:disabled {\n opacity: 50%;\n }\n}\n.mie\\:sm\\:grid-cols-2 {\n @media (width >= 40rem) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n.mie\\:md\\:w-80 {\n @media (width >= 48rem) {\n width: calc(var(--mie-spacing) * 80);\n }\n}\n.mie\\:md\\:max-w-\\[75vw\\] {\n @media (width >= 48rem) {\n max-width: 75vw;\n }\n}\n.mie\\:md\\:flex-row {\n @media (width >= 48rem) {\n flex-direction: row;\n }\n}\n.mie\\:md\\:px-6 {\n @media (width >= 48rem) {\n padding-inline: calc(var(--mie-spacing) * 6);\n }\n}\n.mie\\:lg\\:block {\n @media (width >= 64rem) {\n display: block;\n }\n}\n.mie\\:lg\\:flex {\n @media (width >= 64rem) {\n display: flex;\n }\n}\n.mie\\:lg\\:hidden {\n @media (width >= 64rem) {\n display: none;\n }\n}\n.mie\\:lg\\:h-4 {\n @media (width >= 64rem) {\n height: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:max-h-\\[calc\\(100dvh-11rem\\)\\] {\n @media (width >= 64rem) {\n max-height: calc(100dvh - 11rem);\n }\n}\n.mie\\:lg\\:max-h-\\[calc\\(100dvh-20rem\\)\\] {\n @media (width >= 64rem) {\n max-height: calc(100dvh - 20rem);\n }\n}\n.mie\\:lg\\:w-4 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:w-72 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 72);\n }\n}\n.mie\\:lg\\:w-90 {\n @media (width >= 64rem) {\n width: calc(var(--mie-spacing) * 90);\n }\n}\n.mie\\:lg\\:max-w-full {\n @media (width >= 64rem) {\n max-width: 100%;\n }\n}\n.mie\\:lg\\:grid-cols-2 {\n @media (width >= 64rem) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n.mie\\:lg\\:flex-row {\n @media (width >= 64rem) {\n flex-direction: row;\n }\n}\n.mie\\:lg\\:items-center {\n @media (width >= 64rem) {\n align-items: center;\n }\n}\n.mie\\:lg\\:justify-center {\n @media (width >= 64rem) {\n justify-content: center;\n }\n}\n.mie\\:lg\\:gap-2 {\n @media (width >= 64rem) {\n gap: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:gap-3 {\n @media (width >= 64rem) {\n gap: calc(var(--mie-spacing) * 3);\n }\n}\n.mie\\:lg\\:px-3 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 3);\n }\n}\n.mie\\:lg\\:px-4 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:px-6 {\n @media (width >= 64rem) {\n padding-inline: calc(var(--mie-spacing) * 6);\n }\n}\n.mie\\:lg\\:py-2 {\n @media (width >= 64rem) {\n padding-block: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:pr-2 {\n @media (width >= 64rem) {\n padding-right: calc(var(--mie-spacing) * 2);\n }\n}\n.mie\\:lg\\:pb-4 {\n @media (width >= 64rem) {\n padding-bottom: calc(var(--mie-spacing) * 4);\n }\n}\n.mie\\:lg\\:text-sm {\n @media (width >= 64rem) {\n font-size: var(--mie-text-sm);\n line-height: var(--tw-leading, var(--mie-text-sm--line-height));\n }\n}\n@layer base {\n .qb-editor-root, .qb-editor-root *, .qb-editor-root *::before, .qb-editor-root *::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n }\n .qb-editor-root {\n font-family: \"Titillium Web\", ui-sans-serif, system-ui, sans-serif;\n }\n .qb-editor-root input, .qb-editor-root textarea, .qb-editor-root select, .qb-editor-root button {\n font-family: inherit;\n font-size: inherit;\n }\n}\ndiv:focus-visible, button:focus-visible {\n outline: none;\n}\n.qb-editor-root.dark {\n --mie-color-mieprimary: #6b7fa3;\n --mie-color-miesecondary: #9ca3af;\n --mie-color-mieaccent: #34d399;\n --mie-color-miedanger: #f87171;\n --mie-color-miewarning: #fb923c;\n --mie-color-miesurface: #252526;\n --mie-color-mieborder: #3c3c3c;\n --mie-color-mieborderinactive: #5a5a5a;\n --mie-color-mietext: #d4d4d4;\n --mie-color-mietextsecondary: #1e1e1e;\n --mie-color-mietextmuted: #808080;\n --mie-color-miebackground: #1e1e1e;\n --mie-color-miebackgroundsecondary: #252526;\n --mie-color-miebackgroundhover: #2a2d2e;\n --mie-color-mieoverlay: rgba(0, 0, 0, 0.7);\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar {\n width: 4px;\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n}\n.mie\\:custom-scrollbar::-webkit-scrollbar-thumb {\n background: transparent;\n border-radius: 9999px;\n transition: background 0.2s;\n}\n.mie\\:custom-scrollbar:hover::-webkit-scrollbar-thumb {\n background: #d1d5db;\n}\n.mie\\:custom-scrollbar {\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n}\n.mie\\:custom-scrollbar:hover {\n scrollbar-color: #d1d5db transparent;\n}\n@property --tw-translate-x {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-y {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-z {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-scale-x {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-scale-y {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-scale-z {\n syntax: \"*\";\n inherits: false;\n initial-value: 1;\n}\n@property --tw-space-y-reverse {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-gradient-position {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-from {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-via {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-to {\n syntax: \"<color>\";\n inherits: false;\n initial-value: #0000;\n}\n@property --tw-gradient-stops {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-via-stops {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-gradient-from-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 0%;\n}\n@property --tw-gradient-via-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 50%;\n}\n@property --tw-gradient-to-position {\n syntax: \"<length-percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-leading {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-tracking {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-inset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-offset-width {\n syntax: \"<length>\";\n inherits: false;\n initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n syntax: \"*\";\n inherits: false;\n initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-duration {\n syntax: \"*\";\n inherits: false;\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-scale-z: 1;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-gradient-position: initial;\n --tw-gradient-from: #0000;\n --tw-gradient-via: #0000;\n --tw-gradient-to: #0000;\n --tw-gradient-stops: initial;\n --tw-gradient-via-stops: initial;\n --tw-gradient-from-position: 0%;\n --tw-gradient-via-position: 50%;\n --tw-gradient-to-position: 100%;\n --tw-leading: initial;\n --tw-font-weight: initial;\n --tw-tracking: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-duration: initial;\n }\n }\n}\n";
9
9
  document.head.appendChild(style);
10
10
  }
11
11
  window.__QUESTIONNAIRE_EDITOR_CSS_INJECTED = true;
12
12
  })();
13
13
  import l, { useCallback as de, useMemo as Ee, memo as Ce, useState as ue, useRef as U, useEffect as J } from "react";
14
- import { useFormStore as V, useFormData as $e, useAlert as Ue, useUIApi as B, VEDITOR_ICON as tt, CODE_ICON as it, PICTURE_ICON as rt, UPLOAD_ICON as nt, DOWNLOAD_ICON as st, parseAndDetect as fe, adaptSchema as pe, fieldTypes as K, TOOLS_ICON as ot, X_ICON as at, PAPERCLIP_ICON as mt, MATRIX_ICON as lt, RANKING_ICON as ct, SELECTINPUT_ICON as dt, FOLDERS_ICON as ut, TEXTINPUT_ICON as ft, CustomCheckbox as pt, TRASHCANTWO_ICON as re, useFormApi as Ne, FormStoreContext as Oe, ARROWDOWN_ICON as ht, NUMERIC_EXPRESSION_FORMATS as xt, EDIT_ICON as bt, EYEEDIT_ICON as gt, useVisibleFields as vt, useUIStore as yt, getFieldComponent as jt, MIE_FORMS_SCHEMA_TYPE as ve, createFormStore as wt, createUIStore as Et, UIStoreContext as Nt, AlertProvider as Ct } from "@mieweb/forms-engine";
14
+ import { useFormStore as V, useFormDefinition as $e, useAlert as Ue, useUIApi as B, VEDITOR_ICON as ii, CODE_ICON as ti, PICTURE_ICON as ri, UPLOAD_ICON as ni, DOWNLOAD_ICON as si, parseAndDetect as fe, adaptSchema as pe, fieldTypes as K, TOOLS_ICON as oi, X_ICON as ai, PAPERCLIP_ICON as mi, MATRIX_ICON as li, RANKING_ICON as ci, SELECTINPUT_ICON as di, FOLDERS_ICON as ui, TEXTINPUT_ICON as fi, CustomCheckbox as pi, TRASHCANTWO_ICON as re, useFormApi as Ne, FormStoreContext as Oe, ARROWDOWN_ICON as hi, NUMERIC_EXPRESSION_FORMATS as xi, EDIT_ICON as bi, EYEEDIT_ICON as gi, useVisibleFields as vi, useUIStore as yi, getFieldComponent as ji, MIE_FORMS_SCHEMA_TYPE as ve, createFormStore as wi, createUIStore as Ei, UIStoreContext as Ni, AlertProvider as Ci } from "@mieweb/forms-engine";
15
15
  import ae from "js-yaml";
16
- import { useStore as Ot } from "zustand";
16
+ import { useStore as Oi } from "zustand";
17
17
  var me = { exports: {} }, Z = {};
18
18
  var Te;
19
- function Tt() {
19
+ function Ti() {
20
20
  if (Te) return Z;
21
21
  Te = 1;
22
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
22
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
23
23
  function r(n, s, o) {
24
24
  var d = null;
25
25
  if (o !== void 0 && (d = "" + o), s.key !== void 0 && (d = "" + s.key), "key" in s) {
@@ -35,11 +35,11 @@ function Tt() {
35
35
  props: o
36
36
  };
37
37
  }
38
- return Z.Fragment = i, Z.jsx = r, Z.jsxs = r, Z;
38
+ return Z.Fragment = t, Z.jsx = r, Z.jsxs = r, Z;
39
39
  }
40
40
  var ee = {};
41
41
  var Ie;
42
- function It() {
42
+ function Ii() {
43
43
  return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && (function() {
44
44
  function e(a) {
45
45
  if (a == null) return null;
@@ -84,12 +84,12 @@ function It() {
84
84
  }
85
85
  return null;
86
86
  }
87
- function i(a) {
87
+ function t(a) {
88
88
  return "" + a;
89
89
  }
90
90
  function r(a) {
91
91
  try {
92
- i(a);
92
+ t(a);
93
93
  var v = !1;
94
94
  } catch {
95
95
  v = !0;
@@ -101,7 +101,7 @@ function It() {
101
101
  v,
102
102
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
103
103
  D
104
- ), i(a);
104
+ ), t(a);
105
105
  }
106
106
  }
107
107
  function n(a) {
@@ -195,8 +195,8 @@ function It() {
195
195
  else g(L);
196
196
  if (C.call(v, "key")) {
197
197
  L = e(a);
198
- var X = Object.keys(v).filter(function(et) {
199
- return et !== "key";
198
+ var X = Object.keys(v).filter(function(ei) {
199
+ return ei !== "key";
200
200
  });
201
201
  D = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[L + D] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
202
202
  `A props object containing a "key" prop is being spread into JSX:
@@ -270,12 +270,12 @@ React keys must be passed directly to JSX without using spread:
270
270
  })()), ee;
271
271
  }
272
272
  var Se;
273
- function St() {
274
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? me.exports = Tt() : me.exports = It()), me.exports;
273
+ function Si() {
274
+ return Se || (Se = 1, process.env.NODE_ENV === "production" ? me.exports = Ti() : me.exports = Ii()), me.exports;
275
275
  }
276
- var t = St();
277
- function kt() {
278
- const [e, i] = l.useState(!1), [r, n] = l.useState(null), s = V((w) => w.replaceAll), o = $e(), { showAlert: d } = Ue(), m = B(), c = m.state.isPreview, u = m.state.isCodeEditor ?? !1, h = m.state.codeEditorHasError ?? !1, g = (w) => {
276
+ var i = Si();
277
+ function ki() {
278
+ const [e, t] = l.useState(!1), [r, n] = l.useState(null), s = V((w) => w.replaceAll), o = $e(), { showAlert: d } = Ue(), m = B(), c = m.state.isPreview, u = m.state.isCodeEditor ?? !1, h = m.state.codeEditorHasError ?? !1, g = (w) => {
279
279
  try {
280
280
  const A = String(w).replace(/^\uFEFF/, "").trim(), { data: T, schemaType: x } = fe(A);
281
281
  if (x !== "mieforms" && x !== "surveyjs") {
@@ -286,7 +286,7 @@ Detected: ${x}`,
286
286
  );
287
287
  return;
288
288
  }
289
- n({ data: T, detectedSchemaType: x }), i(!0);
289
+ n({ data: T, detectedSchemaType: x }), t(!0);
290
290
  } catch (A) {
291
291
  d(
292
292
  A?.message || "Invalid file format",
@@ -324,15 +324,15 @@ Unsupported: ${O} field(s)${O > 0 ? " ⚠️" : ""}`,
324
324
  Loaded ${x.length} field(s)`,
325
325
  { title: "✅ Import Successful" }
326
326
  );
327
- i(!1), n(null);
327
+ t(!1), n(null);
328
328
  } catch (A) {
329
329
  d(
330
330
  A?.message || "Invalid format",
331
331
  { title: "Import Failed" }
332
- ), i(!1), n(null);
332
+ ), t(!1), n(null);
333
333
  }
334
334
  }, q = () => {
335
- i(!1), n(null);
335
+ t(!1), n(null);
336
336
  }, _ = () => {
337
337
  m.preview.set(!1), m.codeEditor.set(!1);
338
338
  }, j = () => {
@@ -343,10 +343,10 @@ Loaded ${x.length} field(s)`,
343
343
  const w = JSON.stringify(o, null, 2), A = new Blob([w], { type: "application/json" }), T = URL.createObjectURL(A), x = document.createElement("a");
344
344
  x.href = T, x.download = "questionnaire.json", x.click(), URL.revokeObjectURL(T);
345
345
  };
346
- return /* @__PURE__ */ t.jsxs("header", { className: "editor-header mie:w-full mie:bg-miesurface mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm", children: [
347
- /* @__PURE__ */ t.jsx("div", { className: "mie:px-4 mie:py-4", children: /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:flex-wrap mie:items-center mie:justify-between mie:gap-3", children: [
348
- /* @__PURE__ */ t.jsxs("div", { className: "header-mode-toggle mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1 mie:w-fit", children: [
349
- /* @__PURE__ */ t.jsxs(
346
+ return /* @__PURE__ */ i.jsxs("header", { className: "editor-header mie:w-full mie:bg-miesurface mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm", children: [
347
+ /* @__PURE__ */ i.jsx("div", { className: "mie:px-4 mie:py-4", children: /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:flex-wrap mie:items-center mie:justify-between mie:gap-3", children: [
348
+ /* @__PURE__ */ i.jsxs("div", { className: "header-mode-toggle mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1 mie:w-fit", children: [
349
+ /* @__PURE__ */ i.jsxs(
350
350
  "button",
351
351
  {
352
352
  className: `mie:flex mie:items-center mie:justify-center mie:gap-2 mie:px-2 mie:lg:px-4 mie:py-2 mie:lg:py-2 mie:rounded-lg mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none ${!c && !u ? "mie:bg-mieprimary mie:text-mietextsecondary mie:shadow-sm" : h ? "mie:bg-transparent mie:text-mietextmuted/50 mie:cursor-not-allowed" : "mie:bg-transparent mie:text-mietextmuted mie:hover:text-mietext mie:hover:bg-miesurface"}`,
@@ -354,24 +354,24 @@ Loaded ${x.length} field(s)`,
354
354
  disabled: h,
355
355
  title: h ? "Fix code errors before switching" : "Visual Editor",
356
356
  children: [
357
- /* @__PURE__ */ t.jsx(tt, { className: "mie:w-5 mie:h-5" }),
358
- /* @__PURE__ */ t.jsx("span", { children: "Build" })
357
+ /* @__PURE__ */ i.jsx(ii, { className: "mie:w-5 mie:h-5" }),
358
+ /* @__PURE__ */ i.jsx("span", { children: "Build" })
359
359
  ]
360
360
  }
361
361
  ),
362
- /* @__PURE__ */ t.jsxs(
362
+ /* @__PURE__ */ i.jsxs(
363
363
  "button",
364
364
  {
365
365
  className: `mie:flex mie:items-center mie:justify-center mie:gap-2 mie:px-2 mie:lg:px-4 mie:py-2 mie:lg:py-2 mie:rounded-lg mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none ${u ? "mie:bg-mieprimary mie:text-mietextsecondary mie:shadow-sm" : "mie:bg-transparent mie:text-mietextmuted mie:hover:text-mietext mie:hover:bg-miesurface"}`,
366
366
  onClick: j,
367
367
  title: "Code Editor",
368
368
  children: [
369
- /* @__PURE__ */ t.jsx(it, { className: "mie:w-5 mie:h-5" }),
370
- /* @__PURE__ */ t.jsx("span", { children: "Code" })
369
+ /* @__PURE__ */ i.jsx(ti, { className: "mie:w-5 mie:h-5" }),
370
+ /* @__PURE__ */ i.jsx("span", { children: "Code" })
371
371
  ]
372
372
  }
373
373
  ),
374
- /* @__PURE__ */ t.jsxs(
374
+ /* @__PURE__ */ i.jsxs(
375
375
  "button",
376
376
  {
377
377
  className: `mie:flex mie:items-center mie:justify-center mie:gap-2 mie:px-2 mie:lg:px-4 mie:py-2 mie:lg:py-2 mie:rounded-lg mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none ${c ? "mie:bg-mieprimary mie:text-mietextsecondary mie:shadow-sm" : h ? "mie:bg-transparent mie:text-mietextmuted/50 mie:cursor-not-allowed" : "mie:bg-transparent mie:text-mietextmuted mie:hover:text-mietext mie:hover:bg-miesurface"}`,
@@ -379,17 +379,17 @@ Loaded ${x.length} field(s)`,
379
379
  disabled: h,
380
380
  title: h ? "Fix code errors before switching" : "Preview Form",
381
381
  children: [
382
- /* @__PURE__ */ t.jsx(rt, { className: "mie:w-5 mie:h-5" }),
383
- /* @__PURE__ */ t.jsx("span", { children: "Preview" })
382
+ /* @__PURE__ */ i.jsx(ri, { className: "mie:w-5 mie:h-5" }),
383
+ /* @__PURE__ */ i.jsx("span", { children: "Preview" })
384
384
  ]
385
385
  }
386
386
  )
387
387
  ] }),
388
- /* @__PURE__ */ t.jsxs("div", { className: "header-actions mie:flex mie:gap-1 mie:items-center", children: [
389
- /* @__PURE__ */ t.jsxs("label", { className: "header-import-label mie:group mie:px-2 mie:py-2 mie:lg:px-3 mie:lg:py-2 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miesurface mie:hover:bg-mieprimary mie:hover:text-mietextsecondary mie:hover:border-mieprimary mie:cursor-pointer mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:flex mie:items-center mie:lg:gap-2 mie:gap-0 mie:text-mietext", children: [
390
- /* @__PURE__ */ t.jsx(nt, { className: "mie:w-4 mie:h-4 mie:lg:w-4 mie:lg:h-4 mie:text-mietext mie:group-hover:text-mietextsecondary mie:transition-colors" }),
391
- /* @__PURE__ */ t.jsx("span", { className: "mie:hidden min-[445px]:inline", children: "Import" }),
392
- /* @__PURE__ */ t.jsx(
388
+ /* @__PURE__ */ i.jsxs("div", { className: "header-actions mie:flex mie:gap-1 mie:items-center", children: [
389
+ /* @__PURE__ */ i.jsxs("label", { className: "header-import-label mie:group mie:px-2 mie:py-2 mie:lg:px-3 mie:lg:py-2 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miesurface mie:hover:bg-mieprimary mie:hover:text-mietextsecondary mie:hover:border-mieprimary mie:cursor-pointer mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:flex mie:items-center mie:lg:gap-2 mie:gap-0 mie:text-mietext", children: [
390
+ /* @__PURE__ */ i.jsx(ni, { className: "mie:w-4 mie:h-4 mie:lg:w-4 mie:lg:h-4 mie:text-mietext mie:group-hover:text-mietextsecondary mie:transition-colors" }),
391
+ /* @__PURE__ */ i.jsx("span", { className: "mie:hidden min-[445px]:inline", children: "Import" }),
392
+ /* @__PURE__ */ i.jsx(
393
393
  "input",
394
394
  {
395
395
  className: "mie:hidden",
@@ -404,32 +404,32 @@ Loaded ${x.length} field(s)`,
404
404
  }
405
405
  )
406
406
  ] }),
407
- /* @__PURE__ */ t.jsxs(
407
+ /* @__PURE__ */ i.jsxs(
408
408
  "button",
409
409
  {
410
410
  className: "mie:group mie:px-2 mie:py-2 mie:lg:px-3 mie:lg:py-2 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miesurface mie:hover:bg-mieprimary mie:hover:text-mietextsecondary mie:hover:border-mieprimary mie:text-xs mie:lg:text-sm mie:font-medium mie:transition-colors mie:flex mie:items-center mie:lg:gap-2 mie:gap-0 mie:outline-none mie:focus:outline-none mie:text-mietext",
411
411
  onClick: R,
412
412
  title: "Export",
413
413
  children: [
414
- /* @__PURE__ */ t.jsx(st, { className: "mie:w-4 mie:h-4 mie:lg:w-4 mie:lg:h-4 mie:text-mietext mie:group-hover:text-mietextsecondary mie:transition-colors" }),
415
- /* @__PURE__ */ t.jsx("span", { className: "mie:hidden min-[445px]:inline", children: "Export" })
414
+ /* @__PURE__ */ i.jsx(si, { className: "mie:w-4 mie:h-4 mie:lg:w-4 mie:lg:h-4 mie:text-mietext mie:group-hover:text-mietextsecondary mie:transition-colors" }),
415
+ /* @__PURE__ */ i.jsx("span", { className: "mie:hidden min-[445px]:inline", children: "Export" })
416
416
  ]
417
417
  }
418
418
  )
419
419
  ] })
420
420
  ] }) }),
421
- e && r && /* @__PURE__ */ t.jsx("div", { className: "import-modal-overlay mie:fixed mie:inset-0 mie:z-50 mie:flex mie:items-center mie:justify-center mie:bg-mieoverlay mie:p-4", children: /* @__PURE__ */ t.jsxs("div", { className: "import-modal-content mie:bg-miesurface mie:rounded-2xl mie:shadow-2xl mie:max-w-md mie:w-full mie:p-6", children: [
422
- /* @__PURE__ */ t.jsxs("div", { className: "import-modal-header mie:mb-6", children: [
423
- /* @__PURE__ */ t.jsx("h3", { className: "mie:text-xl mie:font-semibold mie:text-mietext mie:mb-2", children: "Confirm Schema Type" }),
424
- /* @__PURE__ */ t.jsxs("p", { className: "mie:text-sm mie:text-mietextmuted", children: [
421
+ e && r && /* @__PURE__ */ i.jsx("div", { className: "import-modal-overlay mie:fixed mie:inset-0 mie:z-50 mie:flex mie:items-center mie:justify-center mie:bg-mieoverlay mie:p-4", children: /* @__PURE__ */ i.jsxs("div", { className: "import-modal-content mie:bg-miesurface mie:rounded-2xl mie:shadow-2xl mie:max-w-md mie:w-full mie:p-6", children: [
422
+ /* @__PURE__ */ i.jsxs("div", { className: "import-modal-header mie:mb-6", children: [
423
+ /* @__PURE__ */ i.jsx("h3", { className: "mie:text-xl mie:font-semibold mie:text-mietext mie:mb-2", children: "Confirm Schema Type" }),
424
+ /* @__PURE__ */ i.jsxs("p", { className: "mie:text-sm mie:text-mietextmuted", children: [
425
425
  "Is this a ",
426
- /* @__PURE__ */ t.jsx("strong", { className: "mie:text-mietext", children: r.detectedSchemaType === "surveyjs" ? "SurveyJS" : "MIE Forms" }),
426
+ /* @__PURE__ */ i.jsx("strong", { className: "mie:text-mietext", children: r.detectedSchemaType === "surveyjs" ? "SurveyJS" : "MIE Forms" }),
427
427
  " schema?"
428
428
  ] }),
429
- r.detectedSchemaType === "surveyjs" && /* @__PURE__ */ t.jsx("p", { className: "mie:text-xs mie:text-mietextmuted mie:mt-2", children: "SurveyJS schemas will be converted to MIE Forms format." })
429
+ r.detectedSchemaType === "surveyjs" && /* @__PURE__ */ i.jsx("p", { className: "mie:text-xs mie:text-mietextmuted mie:mt-2", children: "SurveyJS schemas will be converted to MIE Forms format." })
430
430
  ] }),
431
- /* @__PURE__ */ t.jsxs("div", { className: "import-modal-actions mie:flex mie:gap-3", children: [
432
- /* @__PURE__ */ t.jsx(
431
+ /* @__PURE__ */ i.jsxs("div", { className: "import-modal-actions mie:flex mie:gap-3", children: [
432
+ /* @__PURE__ */ i.jsx(
433
433
  "button",
434
434
  {
435
435
  onClick: () => S(r.detectedSchemaType),
@@ -437,7 +437,7 @@ Loaded ${x.length} field(s)`,
437
437
  children: "Yes, Import"
438
438
  }
439
439
  ),
440
- /* @__PURE__ */ t.jsx(
440
+ /* @__PURE__ */ i.jsx(
441
441
  "button",
442
442
  {
443
443
  onClick: q,
@@ -449,26 +449,26 @@ Loaded ${x.length} field(s)`,
449
449
  ] }) })
450
450
  ] });
451
451
  }
452
- const Rt = (e) => {
452
+ const Ri = (e) => {
453
453
  switch (e) {
454
454
  case "Text Fields":
455
- return ft;
455
+ return fi;
456
456
  case "Organization":
457
- return ut;
457
+ return ui;
458
458
  case "Selection Fields":
459
- return dt;
459
+ return di;
460
460
  case "Rating & Ranking":
461
- return ct;
461
+ return ci;
462
462
  case "Matrix Fields":
463
- return lt;
463
+ return li;
464
464
  case "Rich Content":
465
- return mt;
465
+ return mi;
466
466
  default:
467
467
  return null;
468
468
  }
469
- }, At = ({ isPreview: e = !1 }) => {
469
+ }, Ai = ({ isPreview: e = !1 }) => {
470
470
  if (e) return null;
471
- const i = V((u) => u.addField), r = B(), n = V(
471
+ const t = V((u) => u.addField), r = B(), n = V(
472
472
  de(
473
473
  (u) => r.selectedFieldId.value ? u.byId[r.selectedFieldId.value] : null,
474
474
  [r.selectedFieldId.value]
@@ -496,43 +496,43 @@ const Rt = (e) => {
496
496
  return Object.values(m).forEach((h) => {
497
497
  h.forEach(({ type: g }) => {
498
498
  u[g] = () => {
499
- s && n?.id ? i(g, { sectionId: n.id }) : i(g);
499
+ s && n?.id ? t(g, { sectionId: n.id }) : t(g);
500
500
  };
501
501
  });
502
502
  }), u;
503
- }, [m, i, s, n?.id]);
504
- return /* @__PURE__ */ t.jsx(
503
+ }, [m, t, s, n?.id]);
504
+ return /* @__PURE__ */ i.jsx(
505
505
  "div",
506
506
  {
507
507
  className: " mie:border mie:border-mieborder mie:rounded-lg mie:bg-miesurface mie:overflow-y-auto mie:custom-scrollbar mie:max-h-[calc(100svh-24rem)] mie:lg:max-h-[calc(100dvh-20rem)]",
508
508
  tabIndex: "-1",
509
- children: /* @__PURE__ */ t.jsxs("div", { className: "tool-panel-container mie:pb-4 mie:rounded-lg mie:shadow-sm", children: [
510
- /* @__PURE__ */ t.jsxs("h3", { className: "tool-panel-title mie:sticky mie:top-0 mie:z-20 mie:bg-miesurface mie:text-base mie:font-semibold mie:text-mietext mie:pb-2 mie:pt-3 mie:px-4 mie:border-b mie:border-mieborder mie:flex mie:items-center mie:justify-between mie:gap-2", children: [
511
- /* @__PURE__ */ t.jsxs("span", { className: "mie:flex mie:items-center mie:gap-2 mie:min-w-0", children: [
512
- /* @__PURE__ */ t.jsx(ot, { className: "mie:w-5 mie:h-5 mie:text-mietext mie:shrink-0" }),
513
- /* @__PURE__ */ t.jsx("span", { className: "mie:truncate mie:text-mietext", children: s ? `Add to "${o}"` : "Tools" })
509
+ children: /* @__PURE__ */ i.jsxs("div", { className: "tool-panel-container mie:pb-4 mie:rounded-lg mie:shadow-sm", children: [
510
+ /* @__PURE__ */ i.jsxs("h3", { className: "tool-panel-title mie:sticky mie:top-0 mie:z-20 mie:bg-miesurface mie:text-base mie:font-semibold mie:text-mietext mie:pb-2 mie:pt-3 mie:px-4 mie:border-b mie:border-mieborder mie:flex mie:items-center mie:justify-between mie:gap-2", children: [
511
+ /* @__PURE__ */ i.jsxs("span", { className: "mie:flex mie:items-center mie:gap-2 mie:min-w-0", children: [
512
+ /* @__PURE__ */ i.jsx(oi, { className: "mie:w-5 mie:h-5 mie:text-mietext mie:shrink-0" }),
513
+ /* @__PURE__ */ i.jsx("span", { className: "mie:truncate mie:text-mietext", children: s ? `Add to "${o}"` : "Tools" })
514
514
  ] }),
515
- s && /* @__PURE__ */ t.jsx(
515
+ s && /* @__PURE__ */ i.jsx(
516
516
  "button",
517
517
  {
518
518
  onClick: d,
519
519
  className: "mie:bg-transparent mie:text-mietextmuted mie:hover:text-miedanger mie:hover:bg-miedanger/10 mie:p-1 mie:rounded mie:transition-colors mie:shrink-0",
520
520
  title: "Unselect section",
521
- children: /* @__PURE__ */ t.jsx(at, { className: "mie:w-5 mie:h-5" })
521
+ children: /* @__PURE__ */ i.jsx(ai, { className: "mie:w-5 mie:h-5" })
522
522
  }
523
523
  )
524
524
  ] }),
525
- Object.entries(m).map(([u, h]) => /* @__PURE__ */ t.jsxs("div", { className: "tool-category", children: [
526
- /* @__PURE__ */ t.jsxs("h4", { className: "mie:sticky mie:top-11 mie:z-10 mie:bg-miebackground mie:text-sm mie:font-semibold mie:text-mietext mie:px-4 mie:py-3 mie:border-b mie:border-mieborder mie:uppercase mie:tracking-wide mie:flex mie:items-center mie:gap-2", children: [
525
+ Object.entries(m).map(([u, h]) => /* @__PURE__ */ i.jsxs("div", { className: "tool-category", children: [
526
+ /* @__PURE__ */ i.jsxs("h4", { className: "mie:sticky mie:top-11 mie:z-10 mie:bg-miebackground mie:text-sm mie:font-semibold mie:text-mietext mie:px-4 mie:py-3 mie:border-b mie:border-mieborder mie:uppercase mie:tracking-wide mie:flex mie:items-center mie:gap-2", children: [
527
527
  (() => {
528
- const g = Rt(u);
529
- return g ? /* @__PURE__ */ t.jsx(g, { className: "mie:w-4 mie:h-4 mie:text-mietextmuted" }) : null;
528
+ const g = Ri(u);
529
+ return g ? /* @__PURE__ */ i.jsx(g, { className: "mie:w-4 mie:h-4 mie:text-mietextmuted" }) : null;
530
530
  })(),
531
531
  u
532
532
  ] }),
533
- /* @__PURE__ */ t.jsx("div", { className: "tool-items mie:grid mie:grid-cols-1 mie:gap-2 mie:px-4 mie:py-3", children: h.map(({ type: g, label: S }) => {
533
+ /* @__PURE__ */ i.jsx("div", { className: "tool-items mie:grid mie:grid-cols-1 mie:gap-2 mie:px-4 mie:py-3", children: h.map(({ type: g, label: S }) => {
534
534
  const q = s && g === "section";
535
- return /* @__PURE__ */ t.jsxs(
535
+ return /* @__PURE__ */ i.jsxs(
536
536
  "button",
537
537
  {
538
538
  disabled: q,
@@ -551,10 +551,10 @@ const Rt = (e) => {
551
551
  ] })
552
552
  }
553
553
  );
554
- }, ke = l.memo(At, (e, i) => e.isPreview === i.isPreview);
554
+ }, ke = l.memo(Ai, (e, t) => e.isPreview === t.isPreview);
555
555
  function ze({
556
556
  id: e = "",
557
- label: i = "ID",
557
+ label: t = "ID",
558
558
  onCommit: r,
559
559
  validate: n,
560
560
  placeholder: s = "Enter unique ID…",
@@ -581,9 +581,9 @@ function ze({
581
581
  r?.(g);
582
582
  }
583
583
  }, [d, e, r, n]);
584
- return /* @__PURE__ */ t.jsxs("div", { className: o ? `draft-id-editor-container ${o}` : "draft-id-editor-container", children: [
585
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: i }),
586
- /* @__PURE__ */ t.jsx(
584
+ return /* @__PURE__ */ i.jsxs("div", { className: o ? `draft-id-editor-container ${o}` : "draft-id-editor-container", children: [
585
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: t }),
586
+ /* @__PURE__ */ i.jsx(
587
587
  "input",
588
588
  {
589
589
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:transition-colors",
@@ -598,11 +598,11 @@ function ze({
598
598
  placeholder: s
599
599
  }
600
600
  ),
601
- c ? /* @__PURE__ */ t.jsx("p", { className: "mie:text-xs mie:text-miedanger mie:mt-1", children: c }) : null
601
+ c ? /* @__PURE__ */ i.jsx("p", { className: "mie:text-xs mie:text-miedanger mie:mt-1", children: c }) : null
602
602
  ] });
603
603
  }
604
- const Pt = [
605
- { value: "text", label: "Text" },
604
+ const Pi = [
605
+ { value: "string", label: "String" },
606
606
  { value: "number", label: "Number" },
607
607
  { value: "email", label: "Email" },
608
608
  { value: "tel", label: "Phone Number" },
@@ -611,7 +611,7 @@ const Pt = [
611
611
  { value: "month", label: "Month" },
612
612
  { value: "time", label: "Time" },
613
613
  { value: "range", label: "Range" }
614
- ], Mt = {
614
+ ], Mi = {
615
615
  Length: [
616
616
  { value: "mm", label: "Millimeters (mm)" },
617
617
  { value: "cm", label: "Centimeters (cm)" },
@@ -649,39 +649,39 @@ const Pt = [
649
649
  { value: "mmHg", label: "mmHg (blood pressure)" }
650
650
  ]
651
651
  };
652
- function Ft({ field: e, onUpdate: i }) {
652
+ function Fi({ field: e, onUpdate: t }) {
653
653
  const r = e.inputType || "text", n = e.unit || "", s = r === "number" || r === "range";
654
- return /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
655
- /* @__PURE__ */ t.jsxs("div", { children: [
656
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Input Type" }),
657
- /* @__PURE__ */ t.jsx(
654
+ return /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
655
+ /* @__PURE__ */ i.jsxs("div", { children: [
656
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Input Type" }),
657
+ /* @__PURE__ */ i.jsx(
658
658
  "select",
659
659
  {
660
660
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:cursor-pointer mie:transition-colors",
661
661
  value: r,
662
- onChange: (o) => i("inputType", o.target.value),
663
- children: Pt.map((o) => /* @__PURE__ */ t.jsx("option", { value: o.value, children: o.label }, o.value))
662
+ onChange: (o) => t("inputType", o.target.value),
663
+ children: Pi.map((o) => /* @__PURE__ */ i.jsx("option", { value: o.value, children: o.label }, o.value))
664
664
  }
665
665
  )
666
666
  ] }),
667
- s && /* @__PURE__ */ t.jsxs("div", { children: [
668
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Unit (optional)" }),
669
- /* @__PURE__ */ t.jsxs(
667
+ s && /* @__PURE__ */ i.jsxs("div", { children: [
668
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Unit (optional)" }),
669
+ /* @__PURE__ */ i.jsxs(
670
670
  "select",
671
671
  {
672
672
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:cursor-pointer mie:transition-colors",
673
673
  value: n,
674
- onChange: (o) => i("unit", o.target.value),
674
+ onChange: (o) => t("unit", o.target.value),
675
675
  children: [
676
- /* @__PURE__ */ t.jsx("option", { value: "", children: "None" }),
677
- Object.entries(Mt).map(([o, d]) => /* @__PURE__ */ t.jsx("optgroup", { label: o, children: d.map((m) => /* @__PURE__ */ t.jsx("option", { value: m.value, children: m.label }, m.value)) }, o))
676
+ /* @__PURE__ */ i.jsx("option", { value: "", children: "None" }),
677
+ Object.entries(Mi).map(([o, d]) => /* @__PURE__ */ i.jsx("optgroup", { label: o, children: d.map((m) => /* @__PURE__ */ i.jsx("option", { value: m.value, children: m.label }, m.value)) }, o))
678
678
  ]
679
679
  }
680
680
  )
681
681
  ] })
682
682
  ] });
683
683
  }
684
- function We({ f: e, onUpdateField: i }) {
684
+ function We({ f: e, onUpdateField: t }) {
685
685
  const r = V(l.useCallback((s) => s.byId, [])), n = l.useCallback((s, o) => {
686
686
  if (!s?.trim()) return "ID cannot be empty.";
687
687
  if (s === o) return "";
@@ -690,46 +690,46 @@ function We({ f: e, onUpdateField: i }) {
690
690
  m?.fieldType === "section" && Array.isArray(m.fields) && m.fields.forEach((c) => d.add(c.id));
691
691
  }), d.has(s) ? `ID "${s}" already exists.` : "";
692
692
  }, [r]);
693
- return /* @__PURE__ */ t.jsxs("div", { className: "common-editor-container mie:space-y-3", children: [
694
- /* @__PURE__ */ t.jsx(
693
+ return /* @__PURE__ */ i.jsxs("div", { className: "common-editor-container mie:space-y-3", children: [
694
+ /* @__PURE__ */ i.jsx(
695
695
  ze,
696
696
  {
697
697
  id: e.id ?? "",
698
698
  validate: n,
699
- onCommit: (s) => i?.("id", s)
699
+ onCommit: (s) => t?.("id", s)
700
700
  }
701
701
  ),
702
- /* @__PURE__ */ t.jsxs("div", { children: [
703
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Label / Question" }),
704
- /* @__PURE__ */ t.jsx(
702
+ /* @__PURE__ */ i.jsxs("div", { children: [
703
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Label / Question" }),
704
+ /* @__PURE__ */ i.jsx(
705
705
  "input",
706
706
  {
707
707
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:transition-colors",
708
708
  value: e.question || "",
709
- onChange: (s) => i?.("question", s.target.value),
709
+ onChange: (s) => t?.("question", s.target.value),
710
710
  placeholder: "Enter question text"
711
711
  }
712
712
  )
713
713
  ] }),
714
- (e.fieldType === "text" || e.fieldType === "longtext") && /* @__PURE__ */ t.jsx(Ft, { field: e, onUpdate: i }),
715
- /* @__PURE__ */ t.jsxs("div", { className: "mie:min-w-0", children: [
716
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Sublabel (optional)" }),
717
- /* @__PURE__ */ t.jsx(
714
+ (e.fieldType === "text" || e.fieldType === "longtext") && /* @__PURE__ */ i.jsx(Fi, { field: e, onUpdate: t }),
715
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:min-w-0", children: [
716
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:text-mietext mie:mb-1", children: "Sublabel (optional)" }),
717
+ /* @__PURE__ */ i.jsx(
718
718
  "textarea",
719
719
  {
720
720
  className: "mie:w-full mie:min-w-0 mie:max-h-32 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:resize-y mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:transition-colors",
721
721
  value: e.sublabel || "",
722
- onChange: (s) => i("sublabel", s.target.value),
722
+ onChange: (s) => t("sublabel", s.target.value),
723
723
  placeholder: "Helper text / description"
724
724
  }
725
725
  )
726
726
  ] }),
727
- /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs("label", { className: "mie:inline-flex mie:items-center mie:gap-2 mie:text-sm mie:text-mietext mie:cursor-pointer", children: [
728
- /* @__PURE__ */ t.jsx(
729
- pt,
727
+ /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsxs("label", { className: "mie:inline-flex mie:items-center mie:gap-2 mie:text-sm mie:text-mietext mie:cursor-pointer", children: [
728
+ /* @__PURE__ */ i.jsx(
729
+ pi,
730
730
  {
731
731
  checked: !!e.required,
732
- onChange: (s) => i?.("required", s),
732
+ onChange: (s) => t?.("required", s),
733
733
  size: "md"
734
734
  }
735
735
  ),
@@ -737,7 +737,7 @@ function We({ f: e, onUpdateField: i }) {
737
737
  ] }) })
738
738
  ] });
739
739
  }
740
- function Ve({ field: e, api: i }) {
740
+ function Ve({ field: e, api: t }) {
741
741
  const r = e.options || [], n = e.fieldType === "boolean", s = e.fieldType === "multitext", o = l.useRef(null), d = l.useRef(r.length), m = s ? "Text Inputs" : "Options", c = s ? "Text Input" : "Option", u = s ? "Input label" : "Option text";
742
742
  return l.useEffect(() => {
743
743
  if (r.length > d.current && o.current) {
@@ -745,32 +745,32 @@ function Ve({ field: e, api: i }) {
745
745
  h && h.scrollIntoView({ behavior: "smooth", block: "nearest" });
746
746
  }
747
747
  d.current = r.length;
748
- }, [r.length]), /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
749
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: m }),
750
- /* @__PURE__ */ t.jsx("div", { ref: o, className: "mie:space-y-2", children: r.map((h) => /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
751
- /* @__PURE__ */ t.jsx(
748
+ }, [r.length]), /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
749
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: m }),
750
+ /* @__PURE__ */ i.jsx("div", { ref: o, className: "mie:space-y-2", children: r.map((h) => /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
751
+ /* @__PURE__ */ i.jsx(
752
752
  "input",
753
753
  {
754
754
  className: "mie:flex-1 mie:min-w-0 mie:outline-none mie:bg-transparent",
755
755
  value: h.value,
756
- onChange: (g) => i.option.update(h.id, g.target.value),
756
+ onChange: (g) => t.option.update(h.id, g.target.value),
757
757
  placeholder: u
758
758
  }
759
759
  ),
760
- !n && /* @__PURE__ */ t.jsx(
760
+ !n && /* @__PURE__ */ i.jsx(
761
761
  "button",
762
762
  {
763
- onClick: () => i.option.remove(h.id),
763
+ onClick: () => t.option.remove(h.id),
764
764
  className: "mie:shrink-0 mie:bg-transparent mie:text-mietextmuted/70 mie:hover:text-miedanger mie:transition-colors",
765
765
  title: "Remove option",
766
- children: /* @__PURE__ */ t.jsx(re, { className: "mie:w-5 mie:h-5" })
766
+ children: /* @__PURE__ */ i.jsx(re, { className: "mie:w-5 mie:h-5" })
767
767
  }
768
768
  )
769
769
  ] }, h.id)) }),
770
- !n && /* @__PURE__ */ t.jsxs(
770
+ !n && /* @__PURE__ */ i.jsxs(
771
771
  "button",
772
772
  {
773
- onClick: () => i.option.add(""),
773
+ onClick: () => t.option.add(""),
774
774
  className: "mie:w-full mie:px-3 mie:py-2 mie:text-sm mie:font-medium mie:bg-miesurface mie:text-mieprimary mie:border mie:border-mieprimary/50 mie:rounded-lg mie:hover:bg-mieprimary/10 mie:transition-colors",
775
775
  children: [
776
776
  "+ Add ",
@@ -780,7 +780,7 @@ function Ve({ field: e, api: i }) {
780
780
  )
781
781
  ] });
782
782
  }
783
- function He({ field: e, api: i }) {
783
+ function He({ field: e, api: t }) {
784
784
  const r = e.rows || [], n = e.columns || [], s = l.useRef(null), o = l.useRef(null), d = l.useRef(r.length), m = l.useRef(n.length);
785
785
  return l.useEffect(() => {
786
786
  if (r.length > d.current && s.current) {
@@ -794,64 +794,64 @@ function He({ field: e, api: i }) {
794
794
  c && c.scrollIntoView({ behavior: "smooth", block: "nearest" });
795
795
  }
796
796
  m.current = n.length;
797
- }, [n.length]), /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-4", children: [
798
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
799
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Rows" }),
800
- /* @__PURE__ */ t.jsx("div", { ref: s, className: "mie:space-y-2", children: r.map((c) => /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
801
- /* @__PURE__ */ t.jsx(
797
+ }, [n.length]), /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-4", children: [
798
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
799
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Rows" }),
800
+ /* @__PURE__ */ i.jsx("div", { ref: s, className: "mie:space-y-2", children: r.map((c) => /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
801
+ /* @__PURE__ */ i.jsx(
802
802
  "input",
803
803
  {
804
804
  className: "mie:flex-1 mie:min-w-0 mie:outline-none mie:bg-transparent mie:text-mietext mie:placeholder:text-mietextmuted",
805
805
  value: c.value,
806
- onChange: (u) => i.row.update(c.id, u.target.value),
806
+ onChange: (u) => t.row.update(c.id, u.target.value),
807
807
  placeholder: "Row text"
808
808
  }
809
809
  ),
810
- /* @__PURE__ */ t.jsx(
810
+ /* @__PURE__ */ i.jsx(
811
811
  "button",
812
812
  {
813
- onClick: () => i.row.remove(c.id),
813
+ onClick: () => t.row.remove(c.id),
814
814
  className: "mie:shrink-0 mie:bg-transparent mie:text-mietextmuted/70 mie:hover:text-miedanger mie:transition-colors",
815
815
  title: "Remove row",
816
- children: /* @__PURE__ */ t.jsx(re, { className: "mie:w-5 mie:h-5" })
816
+ children: /* @__PURE__ */ i.jsx(re, { className: "mie:w-5 mie:h-5" })
817
817
  }
818
818
  )
819
819
  ] }, c.id)) }),
820
- r.length >= 10 ? /* @__PURE__ */ t.jsx("div", { className: "mie:px-3 mie:py-2 mie:text-sm mie:text-mietextmuted mie:text-center mie:bg-miebackground mie:rounded-lg", children: "Max rows reached (10)" }) : /* @__PURE__ */ t.jsx(
820
+ r.length >= 10 ? /* @__PURE__ */ i.jsx("div", { className: "mie:px-3 mie:py-2 mie:text-sm mie:text-mietextmuted mie:text-center mie:bg-miebackground mie:rounded-lg", children: "Max rows reached (10)" }) : /* @__PURE__ */ i.jsx(
821
821
  "button",
822
822
  {
823
- onClick: () => i.row.add(""),
823
+ onClick: () => t.row.add(""),
824
824
  className: "mie:w-full mie:px-3 mie:py-2 mie:text-sm mie:font-medium mie:bg-miesurface mie:text-mieprimary mie:border mie:border-mieprimary/50 mie:rounded-lg mie:hover:bg-mieprimary/10 mie:transition-colors",
825
825
  children: "+ Add Row"
826
826
  }
827
827
  )
828
828
  ] }),
829
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
830
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Columns" }),
831
- /* @__PURE__ */ t.jsx("div", { ref: o, className: "mie:space-y-2", children: n.map((c) => /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
832
- /* @__PURE__ */ t.jsx(
829
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
830
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Columns" }),
831
+ /* @__PURE__ */ i.jsx("div", { ref: o, className: "mie:space-y-2", children: n.map((c) => /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2 mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm mie:hover:border-mieprimary/50 mie:transition-colors", children: [
832
+ /* @__PURE__ */ i.jsx(
833
833
  "input",
834
834
  {
835
835
  className: "mie:flex-1 mie:min-w-0 mie:outline-none mie:bg-transparent mie:text-mietext mie:placeholder:text-mietextmuted",
836
836
  value: c.value,
837
- onChange: (u) => i.column.update(c.id, u.target.value),
837
+ onChange: (u) => t.column.update(c.id, u.target.value),
838
838
  placeholder: "Column text"
839
839
  }
840
840
  ),
841
- /* @__PURE__ */ t.jsx(
841
+ /* @__PURE__ */ i.jsx(
842
842
  "button",
843
843
  {
844
- onClick: () => i.column.remove(c.id),
844
+ onClick: () => t.column.remove(c.id),
845
845
  className: "mie:shrink-0 mie:bg-transparent mie:text-mietextmuted/70 mie:hover:text-miedanger mie:transition-colors",
846
846
  title: "Remove column",
847
- children: /* @__PURE__ */ t.jsx(re, { className: "mie:w-5 mie:h-5" })
847
+ children: /* @__PURE__ */ i.jsx(re, { className: "mie:w-5 mie:h-5" })
848
848
  }
849
849
  )
850
850
  ] }, c.id)) }),
851
- n.length >= 10 ? /* @__PURE__ */ t.jsx("div", { className: "mie:px-3 mie:py-2 mie:text-sm mie:text-mietextmuted mie:text-center mie:bg-miebackground mie:rounded-lg", children: "Max columns reached (10)" }) : /* @__PURE__ */ t.jsx(
851
+ n.length >= 10 ? /* @__PURE__ */ i.jsx("div", { className: "mie:px-3 mie:py-2 mie:text-sm mie:text-mietextmuted mie:text-center mie:bg-miebackground mie:rounded-lg", children: "Max columns reached (10)" }) : /* @__PURE__ */ i.jsx(
852
852
  "button",
853
853
  {
854
- onClick: () => i.column.add(""),
854
+ onClick: () => t.column.add(""),
855
855
  className: "mie:w-full mie:px-3 mie:py-2 mie:text-sm mie:font-medium mie:bg-miesurface mie:text-mieprimary mie:border mie:border-mieprimary/50 mie:rounded-lg mie:hover:bg-mieprimary/10 mie:transition-colors",
856
856
  children: "+ Add Column"
857
857
  }
@@ -859,16 +859,16 @@ function He({ field: e, api: i }) {
859
859
  ] })
860
860
  ] });
861
861
  }
862
- function _t({ f: e }) {
863
- const i = Ne(e.id), r = l.useCallback(
864
- (d, m) => i.field.update(d, m),
865
- [i]
862
+ function _i({ f: e }) {
863
+ const t = Ne(e.id), r = l.useCallback(
864
+ (d, m) => t.field.update(d, m),
865
+ [t]
866
866
  ), n = K[e.fieldType] || {}, s = n.hasOptions || !1, o = n.hasMatrix || !1;
867
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
868
- /* @__PURE__ */ t.jsx(We, { f: e, onUpdateField: r }),
869
- e.fieldType === "input" && /* @__PURE__ */ t.jsxs("div", { className: "non-section-editor-default-answer mie:mt-4", children: [
870
- /* @__PURE__ */ t.jsx("div", { className: "mie:text-sm mie:font-medium mie:mb-1", children: "Default Answer" }),
871
- /* @__PURE__ */ t.jsx(
867
+ return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
868
+ /* @__PURE__ */ i.jsx(We, { f: e, onUpdateField: r }),
869
+ e.fieldType === "input" && /* @__PURE__ */ i.jsxs("div", { className: "non-section-editor-default-answer mie:mt-4", children: [
870
+ /* @__PURE__ */ i.jsx("div", { className: "mie:text-sm mie:font-medium mie:mb-1", children: "Default Answer" }),
871
+ /* @__PURE__ */ i.jsx(
872
872
  "input",
873
873
  {
874
874
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary mie:outline-none mie:transition-colors",
@@ -878,11 +878,11 @@ function _t({ f: e }) {
878
878
  }
879
879
  )
880
880
  ] }),
881
- s && /* @__PURE__ */ t.jsx(Ve, { field: e, api: i }),
882
- o && /* @__PURE__ */ t.jsx(He, { field: e, api: i })
881
+ s && /* @__PURE__ */ i.jsx(Ve, { field: e, api: t }),
882
+ o && /* @__PURE__ */ i.jsx(He, { field: e, api: t })
883
883
  ] });
884
884
  }
885
- function Dt({ section: e, onActiveChildChange: i }) {
885
+ function Di({ section: e, onActiveChildChange: t }) {
886
886
  const r = Ne(e.id), n = l.useContext(Oe), s = B();
887
887
  if (!n) throw new Error("Missing FormStoreContext.Provider in the tree");
888
888
  const o = Array.isArray(e.fields) ? e.fields : [], d = s.selectedChildId.ParentId, m = s.selectedChildId.ChildId, c = l.useMemo(() => d === e.id && m && o.some((b) => b.id === m) ? m : o[0]?.id || null, []), [u, h] = l.useState(c), g = l.useRef(m);
@@ -895,8 +895,8 @@ function Dt({ section: e, onActiveChildChange: i }) {
895
895
  }
896
896
  o.some((f) => f.id === u) || h(o[0].id);
897
897
  }, [o, u]), l.useEffect(() => {
898
- i?.(e.id, u || null);
899
- }, [e.id, u, i]);
898
+ t?.(e.id, u || null);
899
+ }, [e.id, u, t]);
900
900
  const S = l.useCallback(
901
901
  (b) => {
902
902
  h(b), s.selectedChildId.set(e.id, b);
@@ -943,19 +943,19 @@ function Dt({ section: e, onActiveChildChange: i }) {
943
943
  () => j && (K[j.fieldType] || {}).hasMatrix || !1,
944
944
  [j]
945
945
  );
946
- return /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-4", children: [
947
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
948
- /* @__PURE__ */ t.jsx("h3", { className: "mie:text-sm mie:font-semibold mie:text-mietext mie:uppercase mie:tracking-wide", children: "Section Properties" }),
949
- /* @__PURE__ */ t.jsx(
946
+ return /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-4", children: [
947
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
948
+ /* @__PURE__ */ i.jsx("h3", { className: "mie:text-sm mie:font-semibold mie:text-mietext mie:uppercase mie:tracking-wide", children: "Section Properties" }),
949
+ /* @__PURE__ */ i.jsx(
950
950
  ze,
951
951
  {
952
952
  id: e.id,
953
953
  onCommit: (b) => r.field.renameId(b)
954
954
  }
955
955
  ),
956
- /* @__PURE__ */ t.jsxs("div", { className: "section-editor-title", children: [
957
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext mie:mb-1", children: "Section Title" }),
958
- /* @__PURE__ */ t.jsx(
956
+ /* @__PURE__ */ i.jsxs("div", { className: "section-editor-title", children: [
957
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext mie:mb-1", children: "Section Title" }),
958
+ /* @__PURE__ */ i.jsx(
959
959
  "input",
960
960
  {
961
961
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none",
@@ -966,52 +966,52 @@ function Dt({ section: e, onActiveChildChange: i }) {
966
966
  )
967
967
  ] })
968
968
  ] }),
969
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
970
- /* @__PURE__ */ t.jsxs("h3", { className: "mie:text-sm mie:font-semibold mie:text-mietext mie:uppercase mie:tracking-wide", children: [
969
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
970
+ /* @__PURE__ */ i.jsxs("h3", { className: "mie:text-sm mie:font-semibold mie:text-mietext mie:uppercase mie:tracking-wide", children: [
971
971
  "Fields (",
972
972
  o.length,
973
973
  ")"
974
974
  ] }),
975
- o.length === 0 ? /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:flex-col mie:items-center mie:justify-center mie:p-6 mie:bg-miebackground mie:border-2 mie:border-dashed mie:border-mieborder mie:rounded-lg mie:text-center", children: [
976
- /* @__PURE__ */ t.jsx("p", { className: "mie:text-sm mie:text-mietextmuted", children: "No fields in this section" }),
977
- /* @__PURE__ */ t.jsx("p", { className: "mie:text-xs mie:text-mietextmuted/70 mie:mt-1", children: "Use the Tool Panel to add fields" })
978
- ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
979
- /* @__PURE__ */ t.jsxs("div", { className: "mie:relative", children: [
980
- /* @__PURE__ */ t.jsx(
975
+ o.length === 0 ? /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:flex-col mie:items-center mie:justify-center mie:p-6 mie:bg-miebackground mie:border-2 mie:border-dashed mie:border-mieborder mie:rounded-lg mie:text-center", children: [
976
+ /* @__PURE__ */ i.jsx("p", { className: "mie:text-sm mie:text-mietextmuted", children: "No fields in this section" }),
977
+ /* @__PURE__ */ i.jsx("p", { className: "mie:text-xs mie:text-mietextmuted/70 mie:mt-1", children: "Use the Tool Panel to add fields" })
978
+ ] }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
979
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:relative", children: [
980
+ /* @__PURE__ */ i.jsx(
981
981
  "select",
982
982
  {
983
983
  className: "mie:w-full mie:px-3 mie:py-2 mie:pr-10 mie:border mie:border-mieborder mie:rounded mie:bg-miesurface mie:text-mietext mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:appearance-none mie:cursor-pointer",
984
984
  value: u || "",
985
985
  onChange: (b) => S(b.target.value),
986
- children: o.map((b) => /* @__PURE__ */ t.jsxs("option", { value: b.id, children: [
986
+ children: o.map((b) => /* @__PURE__ */ i.jsxs("option", { value: b.id, children: [
987
987
  q(b),
988
988
  " — ",
989
989
  K[b.fieldType]?.label
990
990
  ] }, b.id))
991
991
  }
992
992
  ),
993
- /* @__PURE__ */ t.jsx(ht, { className: "mie:absolute mie:right-3 mie:top-1/2 mie:-translate-y-1/2 mie:w-4 mie:h-4 mie:text-mietextmuted mie:pointer-events-none" })
993
+ /* @__PURE__ */ i.jsx(hi, { className: "mie:absolute mie:right-3 mie:top-1/2 mie:-translate-y-1/2 mie:w-4 mie:h-4 mie:text-mietextmuted mie:pointer-events-none" })
994
994
  ] }),
995
- j && /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-4 mie:p-4 mie:bg-miebackground mie:border mie:border-mieborder mie:rounded-lg", children: [
996
- /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:justify-between", children: [
997
- /* @__PURE__ */ t.jsx("span", { className: "mie:inline-flex mie:items-center mie:px-2.5 mie:py-0.5 mie:rounded-full mie:text-xs mie:font-medium mie:bg-mieprimary/10 mie:text-mieprimary", children: K[j.fieldType]?.label || j.fieldType }),
998
- /* @__PURE__ */ t.jsxs(
995
+ j && /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-4 mie:p-4 mie:bg-miebackground mie:border mie:border-mieborder mie:rounded-lg", children: [
996
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:justify-between", children: [
997
+ /* @__PURE__ */ i.jsx("span", { className: "mie:inline-flex mie:items-center mie:px-2.5 mie:py-0.5 mie:rounded-full mie:text-xs mie:font-medium mie:bg-mieprimary/10 mie:text-mieprimary", children: K[j.fieldType]?.label || j.fieldType }),
998
+ /* @__PURE__ */ i.jsxs(
999
999
  "button",
1000
1000
  {
1001
1001
  className: "mie:flex mie:items-center mie:gap-1.5 mie:px-3 mie:py-1.5 mie:text-xs mie:font-medium mie:bg-miesurface mie:text-miedanger mie:hover:text-miedanger mie:hover:bg-miedanger/10 mie:border mie:border-miedanger/50 mie:rounded mie:transition-colors",
1002
1002
  onClick: A,
1003
1003
  title: "Delete this field",
1004
1004
  children: [
1005
- /* @__PURE__ */ t.jsx(re, { className: "mie:w-3.5 mie:h-3.5" }),
1005
+ /* @__PURE__ */ i.jsx(re, { className: "mie:w-3.5 mie:h-3.5" }),
1006
1006
  "Delete"
1007
1007
  ]
1008
1008
  }
1009
1009
  )
1010
1010
  ] }),
1011
- /* @__PURE__ */ t.jsx(We, { f: j, onUpdateField: w }),
1012
- j.fieldType === "input" && /* @__PURE__ */ t.jsxs("div", { className: "section-editor-default-answer", children: [
1013
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext mie:mb-1", children: "Default Answer" }),
1014
- /* @__PURE__ */ t.jsx(
1011
+ /* @__PURE__ */ i.jsx(We, { f: j, onUpdateField: w }),
1012
+ j.fieldType === "input" && /* @__PURE__ */ i.jsxs("div", { className: "section-editor-default-answer", children: [
1013
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext mie:mb-1", children: "Default Answer" }),
1014
+ /* @__PURE__ */ i.jsx(
1015
1015
  "input",
1016
1016
  {
1017
1017
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:bg-miesurface mie:text-mietext mie:rounded mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none",
@@ -1021,16 +1021,16 @@ function Dt({ section: e, onActiveChildChange: i }) {
1021
1021
  }
1022
1022
  )
1023
1023
  ] }),
1024
- T && R && /* @__PURE__ */ t.jsx(Ve, { field: j, api: R }),
1025
- x && R && /* @__PURE__ */ t.jsx(He, { field: j, api: R })
1024
+ T && R && /* @__PURE__ */ i.jsx(Ve, { field: j, api: R }),
1025
+ x && R && /* @__PURE__ */ i.jsx(He, { field: j, api: R })
1026
1026
  ] })
1027
1027
  ] })
1028
1028
  ] })
1029
1029
  ] });
1030
1030
  }
1031
- function Re(e, i, r) {
1031
+ function Re(e, t, r) {
1032
1032
  if (e === "expression")
1033
- return xt.includes(i) ? ["equals", "notEquals", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"] : ["equals", "notEquals", "contains", "empty", "notEmpty"];
1033
+ return xi.includes(t) ? ["equals", "notEquals", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"] : ["equals", "notEquals", "contains", "empty", "notEmpty"];
1034
1034
  switch (e) {
1035
1035
  case "text":
1036
1036
  case "longtext":
@@ -1050,7 +1050,7 @@ function Re(e, i, r) {
1050
1050
  return ["equals", "notEquals"];
1051
1051
  }
1052
1052
  }
1053
- function qt(e) {
1053
+ function qi(e) {
1054
1054
  switch (e) {
1055
1055
  case "check":
1056
1056
  case "multiselectdropdown":
@@ -1063,7 +1063,7 @@ function qt(e) {
1063
1063
  return [];
1064
1064
  }
1065
1065
  }
1066
- function Lt(e) {
1066
+ function Li(e) {
1067
1067
  switch (e) {
1068
1068
  case "equals":
1069
1069
  return "= (equals)";
@@ -1094,13 +1094,13 @@ function Ae(e) {
1094
1094
  const r = e.id ?? String(e.value ?? ""), n = String(e.value ?? e.label ?? e.id ?? "");
1095
1095
  return { id: r, value: n };
1096
1096
  }
1097
- const i = String(e ?? "");
1098
- return { id: i, value: i };
1097
+ const t = String(e ?? "");
1098
+ return { id: t, value: t };
1099
1099
  }
1100
- function $t() {
1101
- const e = B(), i = V((p) => p.byId), r = V((p) => p.setEnableWhen), n = V((p) => p.updateField), s = e?.selectedFieldId?.value ?? null;
1100
+ function $i() {
1101
+ const e = B(), t = V((p) => p.byId), r = V((p) => p.setEnableWhen), n = V((p) => p.updateField), s = e?.selectedFieldId?.value ?? null;
1102
1102
  e?.selectedChildId?.ParentId;
1103
- const o = e?.selectedChildId?.ChildId ?? null, d = s ? i[s] : null, m = d?.fieldType === "section", c = l.useMemo(() => m ? Array.isArray(d?.fields) ? d.fields : [] : [], [m, d]), u = l.useMemo(() => !m || !o ? !1 : c.some((p) => p.id === o), [m, o, c]), h = l.useMemo(() => m && u ? `child:${o}` : "", [m, u, o]), [g, S] = l.useState(h);
1103
+ const o = e?.selectedChildId?.ChildId ?? null, d = s ? t[s] : null, m = d?.fieldType === "section", c = l.useMemo(() => m ? Array.isArray(d?.fields) ? d.fields : [] : [], [m, d]), u = l.useMemo(() => !m || !o ? !1 : c.some((p) => p.id === o), [m, o, c]), h = l.useMemo(() => m && u ? `child:${o}` : "", [m, u, o]), [g, S] = l.useState(h);
1104
1104
  l.useEffect(() => {
1105
1105
  S(h);
1106
1106
  }, [h]);
@@ -1111,9 +1111,9 @@ function $t() {
1111
1111
  e.selectedChildId.set(s, C);
1112
1112
  } else
1113
1113
  e.selectedChildId.set(null, null);
1114
- }, [m, s, e]), _ = !!(m && g && g.startsWith("child:")), j = _ ? g.slice(6) : null, k = _ ? j : s, R = l.useMemo(() => k ? _ ? c.find((p) => p.id === j) ?? null : i[k] ?? null : null, [i, k, _, j, c]), w = l.useMemo(() => {
1114
+ }, [m, s, e]), _ = !!(m && g && g.startsWith("child:")), j = _ ? g.slice(6) : null, k = _ ? j : s, R = l.useMemo(() => k ? _ ? c.find((p) => p.id === j) ?? null : t[k] ?? null : null, [t, k, _, j, c]), w = l.useMemo(() => {
1115
1115
  const p = [];
1116
- for (const C of Object.values(i))
1116
+ for (const C of Object.values(t))
1117
1117
  if (C)
1118
1118
  if (C.fieldType === "section" && Array.isArray(C.fields)) {
1119
1119
  const M = C.title?.trim() || "Section";
@@ -1137,7 +1137,7 @@ function $t() {
1137
1137
  options: Array.isArray(C.options) ? C.options : []
1138
1138
  });
1139
1139
  return p;
1140
- }, [i]), A = l.useCallback(
1140
+ }, [t]), A = l.useCallback(
1141
1141
  (p) => w.find((C) => C.id === p) || null,
1142
1142
  [w]
1143
1143
  ), T = l.useCallback(
@@ -1178,26 +1178,26 @@ function $t() {
1178
1178
  () => w.filter((p) => p.id !== k),
1179
1179
  [w, k]
1180
1180
  ), P = !R || !k;
1181
- return /* @__PURE__ */ t.jsxs("div", { className: "logic-editor-container mie:space-y-4", children: [
1182
- m && /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-2", children: [
1183
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Target Field" }),
1184
- /* @__PURE__ */ t.jsxs(
1181
+ return /* @__PURE__ */ i.jsxs("div", { className: "logic-editor-container mie:space-y-4", children: [
1182
+ m && /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-2", children: [
1183
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Target Field" }),
1184
+ /* @__PURE__ */ i.jsxs(
1185
1185
  "select",
1186
1186
  {
1187
1187
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:cursor-pointer mie:transition-colors",
1188
1188
  value: g,
1189
1189
  onChange: (p) => q(p.target.value),
1190
1190
  children: [
1191
- /* @__PURE__ */ t.jsx("option", { value: "", children: "Section (this)" }),
1192
- c.map((p) => /* @__PURE__ */ t.jsx("option", { value: `child:${p.id}`, children: p.question?.trim() || p.title?.trim() || p.id }, p.id))
1191
+ /* @__PURE__ */ i.jsx("option", { value: "", children: "Section (this)" }),
1192
+ c.map((p) => /* @__PURE__ */ i.jsx("option", { value: `child:${p.id}`, children: p.question?.trim() || p.title?.trim() || p.id }, p.id))
1193
1193
  ]
1194
1194
  }
1195
1195
  )
1196
1196
  ] }),
1197
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
1198
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-2", children: [
1199
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Logic Operator" }),
1200
- /* @__PURE__ */ t.jsxs(
1197
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
1198
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-2", children: [
1199
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-sm mie:font-medium mie:text-mietext", children: "Logic Operator" }),
1200
+ /* @__PURE__ */ i.jsxs(
1201
1201
  "select",
1202
1202
  {
1203
1203
  value: x.logic || "AND",
@@ -1205,14 +1205,14 @@ function $t() {
1205
1205
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:cursor-pointer mie:transition-colors",
1206
1206
  disabled: P,
1207
1207
  children: [
1208
- /* @__PURE__ */ t.jsx("option", { value: "AND", children: "AND — All conditions must be true" }),
1209
- /* @__PURE__ */ t.jsx("option", { value: "OR", children: "OR — Any condition must be true" })
1208
+ /* @__PURE__ */ i.jsx("option", { value: "AND", children: "AND — All conditions must be true" }),
1209
+ /* @__PURE__ */ i.jsx("option", { value: "OR", children: "OR — Any condition must be true" })
1210
1210
  ]
1211
1211
  }
1212
1212
  )
1213
1213
  ] }),
1214
- /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:gap-2", children: [
1215
- /* @__PURE__ */ t.jsx(
1214
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:gap-2", children: [
1215
+ /* @__PURE__ */ i.jsx(
1216
1216
  "button",
1217
1217
  {
1218
1218
  type: "button",
@@ -1222,7 +1222,7 @@ function $t() {
1222
1222
  children: "+ Add Condition"
1223
1223
  }
1224
1224
  ),
1225
- /* @__PURE__ */ t.jsx(
1225
+ /* @__PURE__ */ i.jsx(
1226
1226
  "button",
1227
1227
  {
1228
1228
  type: "button",
@@ -1234,21 +1234,21 @@ function $t() {
1234
1234
  )
1235
1235
  ] })
1236
1236
  ] }),
1237
- x.conditions.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-3", children: [
1238
- /* @__PURE__ */ t.jsxs("h4", { className: "mie:text-sm mie:font-medium mie:text-mietext", children: [
1237
+ x.conditions.length > 0 && /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-3", children: [
1238
+ /* @__PURE__ */ i.jsxs("h4", { className: "mie:text-sm mie:font-medium mie:text-mietext", children: [
1239
1239
  "Conditions (",
1240
1240
  x.conditions.length,
1241
1241
  ")"
1242
1242
  ] }),
1243
- /* @__PURE__ */ t.jsx("div", { className: "mie:space-y-3", children: x.conditions.map((p, C) => {
1244
- const M = A(p.targetId), N = Re(M?.fieldType, M?.displayFormat, M?.inputType), F = M ? qt(M.fieldType) : [], $ = F.length > 0, z = Array.isArray(M?.options) ? M.options.map(Ae) : [], H = z.length > 0, Y = !["empty", "notEmpty"].includes(p.operator), v = ["greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"].includes(p.operator);
1245
- return /* @__PURE__ */ t.jsxs("div", { className: "mie:p-3 mie:bg-miebackground mie:border mie:border-mieborder mie:rounded-lg mie:space-y-2", children: [
1246
- /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:justify-between mie:mb-2", children: [
1247
- /* @__PURE__ */ t.jsxs("span", { className: "mie:text-xs mie:font-semibold mie:text-mietextmuted mie:uppercase mie:tracking-wide", children: [
1243
+ /* @__PURE__ */ i.jsx("div", { className: "mie:space-y-3", children: x.conditions.map((p, C) => {
1244
+ const M = A(p.targetId), N = Re(M?.fieldType, M?.displayFormat, M?.inputType), F = M ? qi(M.fieldType) : [], $ = F.length > 0, z = Array.isArray(M?.options) ? M.options.map(Ae) : [], H = z.length > 0, Y = !["empty", "notEmpty"].includes(p.operator), v = ["greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"].includes(p.operator);
1245
+ return /* @__PURE__ */ i.jsxs("div", { className: "mie:p-3 mie:bg-miebackground mie:border mie:border-mieborder mie:rounded-lg mie:space-y-2", children: [
1246
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:justify-between mie:mb-2", children: [
1247
+ /* @__PURE__ */ i.jsxs("span", { className: "mie:text-xs mie:font-semibold mie:text-mietextmuted mie:uppercase mie:tracking-wide", children: [
1248
1248
  "Condition ",
1249
1249
  C + 1
1250
1250
  ] }),
1251
- /* @__PURE__ */ t.jsx(
1251
+ /* @__PURE__ */ i.jsx(
1252
1252
  "button",
1253
1253
  {
1254
1254
  type: "button",
@@ -1256,14 +1256,14 @@ function $t() {
1256
1256
  className: "mie:bg-transparent mie:text-mietextmuted/70 mie:hover:text-miedanger mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none",
1257
1257
  title: "Remove condition",
1258
1258
  disabled: P,
1259
- children: /* @__PURE__ */ t.jsx(re, { className: "mie:w-4 mie:h-4" })
1259
+ children: /* @__PURE__ */ i.jsx(re, { className: "mie:w-4 mie:h-4" })
1260
1260
  }
1261
1261
  )
1262
1262
  ] }),
1263
- /* @__PURE__ */ t.jsxs("div", { className: "mie:space-y-2", children: [
1264
- /* @__PURE__ */ t.jsxs("div", { children: [
1265
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "When Field" }),
1266
- /* @__PURE__ */ t.jsxs(
1263
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:space-y-2", children: [
1264
+ /* @__PURE__ */ i.jsxs("div", { children: [
1265
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "When Field" }),
1266
+ /* @__PURE__ */ i.jsxs(
1267
1267
  "select",
1268
1268
  {
1269
1269
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:text-sm mie:cursor-pointer mie:transition-colors",
@@ -1271,15 +1271,15 @@ function $t() {
1271
1271
  onChange: (y) => E(C, { targetId: y.target.value }),
1272
1272
  disabled: P,
1273
1273
  children: [
1274
- /* @__PURE__ */ t.jsx("option", { value: "", children: "— Select field —" }),
1275
- I.map((y) => /* @__PURE__ */ t.jsx("option", { value: y.id, children: y.label }, y.id))
1274
+ /* @__PURE__ */ i.jsx("option", { value: "", children: "— Select field —" }),
1275
+ I.map((y) => /* @__PURE__ */ i.jsx("option", { value: y.id, children: y.label }, y.id))
1276
1276
  ]
1277
1277
  }
1278
1278
  )
1279
1279
  ] }),
1280
- $ && /* @__PURE__ */ t.jsxs("div", { children: [
1281
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Property (optional)" }),
1282
- /* @__PURE__ */ t.jsxs(
1280
+ $ && /* @__PURE__ */ i.jsxs("div", { children: [
1281
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Property (optional)" }),
1282
+ /* @__PURE__ */ i.jsxs(
1283
1283
  "select",
1284
1284
  {
1285
1285
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:text-sm mie:cursor-pointer mie:transition-colors",
@@ -1287,8 +1287,8 @@ function $t() {
1287
1287
  onChange: (y) => E(C, { propertyAccessor: y.target.value || void 0 }),
1288
1288
  disabled: P || !M,
1289
1289
  children: [
1290
- /* @__PURE__ */ t.jsx("option", { value: "", children: "— Direct value —" }),
1291
- F.map((y) => /* @__PURE__ */ t.jsxs("option", { value: y, children: [
1290
+ /* @__PURE__ */ i.jsx("option", { value: "", children: "— Direct value —" }),
1291
+ F.map((y) => /* @__PURE__ */ i.jsxs("option", { value: y, children: [
1292
1292
  ".",
1293
1293
  y,
1294
1294
  " (get ",
@@ -1298,25 +1298,25 @@ function $t() {
1298
1298
  ]
1299
1299
  }
1300
1300
  ),
1301
- /* @__PURE__ */ t.jsx("p", { className: "mie:text-xs mie:text-mietextmuted mie:mt-1", children: "Use .length or .count to compare the number of items" })
1301
+ /* @__PURE__ */ i.jsx("p", { className: "mie:text-xs mie:text-mietextmuted mie:mt-1", children: "Use .length or .count to compare the number of items" })
1302
1302
  ] }),
1303
- /* @__PURE__ */ t.jsxs("div", { className: "mie:grid mie:grid-cols-2 mie:gap-2", children: [
1304
- /* @__PURE__ */ t.jsxs("div", { children: [
1305
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Operator" }),
1306
- /* @__PURE__ */ t.jsx(
1303
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:grid mie:grid-cols-2 mie:gap-2", children: [
1304
+ /* @__PURE__ */ i.jsxs("div", { children: [
1305
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Operator" }),
1306
+ /* @__PURE__ */ i.jsx(
1307
1307
  "select",
1308
1308
  {
1309
1309
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:text-sm mie:cursor-pointer mie:transition-colors",
1310
1310
  value: p.operator,
1311
1311
  onChange: (y) => E(C, { operator: y.target.value }),
1312
1312
  disabled: P || !M,
1313
- children: (M ? N : ["equals"]).map((y) => /* @__PURE__ */ t.jsx("option", { value: y, children: Lt(y) }, y))
1313
+ children: (M ? N : ["equals"]).map((y) => /* @__PURE__ */ i.jsx("option", { value: y, children: Li(y) }, y))
1314
1314
  }
1315
1315
  )
1316
1316
  ] }),
1317
- /* @__PURE__ */ t.jsxs("div", { children: [
1318
- /* @__PURE__ */ t.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Value" }),
1319
- Y ? H && !p.propertyAccessor && !v ? /* @__PURE__ */ t.jsxs(
1317
+ /* @__PURE__ */ i.jsxs("div", { children: [
1318
+ /* @__PURE__ */ i.jsx("label", { className: "mie:block mie:text-xs mie:font-medium mie:text-mietextmuted mie:mb-1", children: "Value" }),
1319
+ Y ? H && !p.propertyAccessor && !v ? /* @__PURE__ */ i.jsxs(
1320
1320
  "select",
1321
1321
  {
1322
1322
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:text-sm mie:cursor-pointer mie:transition-colors",
@@ -1324,11 +1324,11 @@ function $t() {
1324
1324
  onChange: (y) => E(C, { value: y.target.value }),
1325
1325
  disabled: P || !M,
1326
1326
  children: [
1327
- /* @__PURE__ */ t.jsx("option", { value: "", children: "— Select option —" }),
1328
- z.map((y) => /* @__PURE__ */ t.jsx("option", { value: y.id, children: y.value }, y.id))
1327
+ /* @__PURE__ */ i.jsx("option", { value: "", children: "— Select option —" }),
1328
+ z.map((y) => /* @__PURE__ */ i.jsx("option", { value: y.id, children: y.value }, y.id))
1329
1329
  ]
1330
1330
  }
1331
- ) : /* @__PURE__ */ t.jsx(
1331
+ ) : /* @__PURE__ */ i.jsx(
1332
1332
  "input",
1333
1333
  {
1334
1334
  className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:focus:border-mieprimary mie:focus:ring-1 mie:focus:ring-mieprimary/30 mie:outline-none mie:bg-miesurface mie:text-mietext mie:text-sm mie:transition-colors",
@@ -1338,7 +1338,7 @@ function $t() {
1338
1338
  onChange: (y) => E(C, { value: y.target.value }),
1339
1339
  disabled: P || !M
1340
1340
  }
1341
- ) : /* @__PURE__ */ t.jsx("div", { className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:bg-miebackground mie:text-sm mie:text-mietextmuted mie:flex mie:items-center", children: "(no value needed)" })
1341
+ ) : /* @__PURE__ */ i.jsx("div", { className: "mie:w-full mie:px-3 mie:py-2 mie:border mie:border-mieborder mie:rounded-lg mie:bg-miebackground mie:text-sm mie:text-mietextmuted mie:flex mie:items-center", children: "(no value needed)" })
1342
1342
  ] })
1343
1343
  ] })
1344
1344
  ] })
@@ -1348,72 +1348,72 @@ function $t() {
1348
1348
  ] });
1349
1349
  }
1350
1350
  function Pe({ isMobileModal: e = !1 }) {
1351
- const i = B(), r = V(
1351
+ const t = B(), r = V(
1352
1352
  l.useCallback(
1353
- (c) => i.selectedFieldId.value ? c.byId[i.selectedFieldId.value] : null,
1354
- [i.selectedFieldId.value]
1353
+ (c) => t.selectedFieldId.value ? c.byId[t.selectedFieldId.value] : null,
1354
+ [t.selectedFieldId.value]
1355
1355
  )
1356
1356
  ), [n, s] = l.useState("EDIT"), o = l.useCallback(
1357
1357
  (c, u) => {
1358
- i.selectedChildId.set(c, u);
1358
+ t.selectedChildId.set(c, u);
1359
1359
  },
1360
- [i.selectedChildId.set]
1360
+ [t.selectedChildId.set]
1361
1361
  );
1362
1362
  if (l.useEffect(() => {
1363
- i.selectedChildId.set(null, null), s("EDIT");
1364
- }, [i.selectedFieldId.value]), i.state.isPreview) return null;
1363
+ t.selectedChildId.set(null, null), s("EDIT");
1364
+ }, [t.selectedFieldId.value]), t.state.isPreview) return null;
1365
1365
  const d = !r, m = r?.fieldType === "section";
1366
- return /* @__PURE__ */ t.jsxs(
1366
+ return /* @__PURE__ */ i.jsxs(
1367
1367
  "div",
1368
1368
  {
1369
1369
  className: `edit-panel-container mie:bg-miesurface mie:border mie:border-mieborder mie:rounded-lg mie:shadow-sm ${e ? "mie:overflow-visible mie:max-h-none" : "mie:overflow-y-auto mie:custom-scrollbar mie:max-h-[calc(100svh-24rem)] mie:lg:max-h-[calc(100dvh-20rem)]"}`,
1370
1370
  children: [
1371
- /* @__PURE__ */ t.jsx("div", { className: "mie:sticky mie:top-0 mie:z-20 mie:bg-miesurface mie:border-b mie:border-mieborder mie:px-4 mie:pt-3 mie:pb-2", children: /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1 mie:w-full", children: [
1372
- /* @__PURE__ */ t.jsxs(
1371
+ /* @__PURE__ */ i.jsx("div", { className: "mie:sticky mie:top-0 mie:z-20 mie:bg-miesurface mie:border-b mie:border-mieborder mie:px-4 mie:pt-3 mie:pb-2", children: /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1 mie:w-full", children: [
1372
+ /* @__PURE__ */ i.jsxs(
1373
1373
  "button",
1374
1374
  {
1375
1375
  type: "button",
1376
1376
  onClick: () => s("EDIT"),
1377
1377
  className: `mie:flex-1 mie:flex mie:items-center mie:justify-center mie:gap-2 mie:px-3 mie:py-2 mie:rounded-lg mie:text-xs mie:font-medium mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none ${n === "EDIT" ? "mie:bg-mieprimary mie:text-mietextsecondary mie:shadow-sm" : "mie:bg-transparent mie:text-mietextmuted mie:hover:text-mietext mie:hover:bg-miesurface"}`,
1378
1378
  children: [
1379
- /* @__PURE__ */ t.jsx(bt, { className: "mie:w-4 mie:h-4" }),
1380
- /* @__PURE__ */ t.jsx("span", { children: "Edit" })
1379
+ /* @__PURE__ */ i.jsx(bi, { className: "mie:w-4 mie:h-4" }),
1380
+ /* @__PURE__ */ i.jsx("span", { children: "Edit" })
1381
1381
  ]
1382
1382
  }
1383
1383
  ),
1384
- /* @__PURE__ */ t.jsxs(
1384
+ /* @__PURE__ */ i.jsxs(
1385
1385
  "button",
1386
1386
  {
1387
1387
  type: "button",
1388
1388
  onClick: () => s("LOGIC"),
1389
1389
  className: `mie:flex-1 mie:flex mie:items-center mie:justify-center mie:gap-2 mie:px-3 mie:py-2 mie:rounded-lg mie:text-xs mie:font-medium mie:transition-colors mie:border-0 mie:outline-none mie:focus:outline-none ${n === "LOGIC" ? "mie:bg-mieprimary mie:text-mietextsecondary mie:shadow-sm" : "mie:bg-transparent mie:text-mietextmuted mie:hover:text-mietext mie:hover:bg-miesurface"}`,
1390
1390
  children: [
1391
- /* @__PURE__ */ t.jsx(gt, { className: "mie:w-4 mie:h-4" }),
1392
- /* @__PURE__ */ t.jsx("span", { children: "Logic" })
1391
+ /* @__PURE__ */ i.jsx(gi, { className: "mie:w-4 mie:h-4" }),
1392
+ /* @__PURE__ */ i.jsx("span", { children: "Logic" })
1393
1393
  ]
1394
1394
  }
1395
1395
  )
1396
1396
  ] }) }),
1397
- /* @__PURE__ */ t.jsxs("div", { className: "mie:p-4", children: [
1398
- d && /* @__PURE__ */ t.jsx("div", { className: "edit-panel-empty mie:text-mietextmuted", children: /* @__PURE__ */ t.jsx("p", { children: "Select a field in the center panel to edit its properties." }) }),
1399
- !d && n === "EDIT" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1400
- !m && /* @__PURE__ */ t.jsx(_t, { f: r }),
1401
- m && /* @__PURE__ */ t.jsx(
1402
- Dt,
1397
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:p-4", children: [
1398
+ d && /* @__PURE__ */ i.jsx("div", { className: "edit-panel-empty mie:text-mietextmuted", children: /* @__PURE__ */ i.jsx("p", { children: "Select a field in the center panel to edit its properties." }) }),
1399
+ !d && n === "EDIT" && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1400
+ !m && /* @__PURE__ */ i.jsx(_i, { f: r }),
1401
+ m && /* @__PURE__ */ i.jsx(
1402
+ Di,
1403
1403
  {
1404
1404
  section: r,
1405
1405
  onActiveChildChange: o
1406
1406
  }
1407
1407
  )
1408
1408
  ] }),
1409
- !d && n === "LOGIC" && /* @__PURE__ */ t.jsx($t, {})
1409
+ !d && n === "LOGIC" && /* @__PURE__ */ i.jsx($i, {})
1410
1410
  ] })
1411
1411
  ]
1412
1412
  }
1413
1413
  );
1414
1414
  }
1415
- function Ut() {
1416
- const e = B(), { fields: i } = vt(e.state.isPreview), r = yt((m) => m.hideUnsupportedFields), n = V((m) => m.order), s = l.useRef(null), o = l.useRef(0), d = Ee(() => (r ? i.filter((c) => c.fieldType !== "unsupported") : i).map((c) => c.id), [i, r]);
1415
+ function Ui() {
1416
+ const e = B(), { fields: t } = vi(e.state.isPreview), r = yi((m) => m.hideUnsupportedFields), n = V((m) => m.order), s = l.useRef(null), o = l.useRef(0), d = Ee(() => (r ? t.filter((c) => c.fieldType !== "unsupported") : t).map((c) => c.id), [t, r]);
1417
1417
  return l.useEffect(() => {
1418
1418
  if (!e.state.isPreview) {
1419
1419
  if (n.length > o.current) {
@@ -1422,7 +1422,7 @@ function Ut() {
1422
1422
  }
1423
1423
  o.current = n.length;
1424
1424
  }
1425
- }, [n, e.selectedFieldId, e.state.isPreview]), /* @__PURE__ */ t.jsx(
1425
+ }, [n, e.selectedFieldId, e.state.isPreview]), /* @__PURE__ */ i.jsx(
1426
1426
  "div",
1427
1427
  {
1428
1428
  ref: s,
@@ -1430,36 +1430,36 @@ function Ut() {
1430
1430
  ${e.state.isPreview ? "mie:max-w-4xl" : "mie:max-w-xl"}
1431
1431
  mie:mx-auto mie:rounded-lg mie:overflow-y-auto mie:max-h-[calc(100svh-13rem)] mie:lg:max-h-[calc(100dvh-11rem)] mie:custom-scrollbar mie:lg:pr-2`,
1432
1432
  onClick: () => !e.state.isPreview && e.selectedFieldId.clear(),
1433
- children: d.length === 0 ? /* @__PURE__ */ t.jsx(Wt, {}) : d.map((m) => /* @__PURE__ */ t.jsx(zt, { id: m }, m))
1433
+ children: d.length === 0 ? /* @__PURE__ */ i.jsx(Wi, {}) : d.map((m) => /* @__PURE__ */ i.jsx(zi, { id: m }, m))
1434
1434
  }
1435
1435
  );
1436
1436
  }
1437
- const zt = l.memo(function({ id: i }) {
1438
- const r = V(l.useCallback((s) => s.byId[i], [i]));
1437
+ const zi = l.memo(function({ id: t }) {
1438
+ const r = V(l.useCallback((s) => s.byId[t], [t]));
1439
1439
  if (!r) return null;
1440
- const n = jt(r.fieldType);
1441
- return n ? /* @__PURE__ */ t.jsx("div", { className: "mie:mb-1.5", "data-field-type": r.fieldType, "data-field-id": r.id, children: /* @__PURE__ */ t.jsx(n, { field: r }) }) : null;
1440
+ const n = ji(r.fieldType);
1441
+ return n ? /* @__PURE__ */ i.jsx("div", { className: "mie:mb-1.5", "data-field-type": r.fieldType, "data-field-id": r.id, children: /* @__PURE__ */ i.jsx(n, { field: r }) }) : null;
1442
1442
  });
1443
- function Wt() {
1444
- return /* @__PURE__ */ t.jsxs(
1443
+ function Wi() {
1444
+ return /* @__PURE__ */ i.jsxs(
1445
1445
  "div",
1446
1446
  {
1447
1447
  className: "form-builder-empty-state mie:flex mie:flex-col mie:items-center mie:justify-center mie:h-72 mie:bg-miebackground mie:border-2 mie:border-dashed mie:border-mieprimary/30 mie:rounded-xl mie:shadow-md mie:text-center mie:px-8 mie:py-10",
1448
1448
  children: [
1449
- /* @__PURE__ */ t.jsx("div", { className: "empty-state-title mie:text-xl mie:font-semibold mie:text-mietext mie:mb-2", children: "Forms" }),
1450
- /* @__PURE__ */ t.jsxs("div", { className: "empty-state-description mie:text-base mie:text-mietextmuted", children: [
1451
- /* @__PURE__ */ t.jsxs("div", { className: "mie:lg:hidden", children: [
1449
+ /* @__PURE__ */ i.jsx("div", { className: "empty-state-title mie:text-xl mie:font-semibold mie:text-mietext mie:mb-2", children: "Forms" }),
1450
+ /* @__PURE__ */ i.jsxs("div", { className: "empty-state-description mie:text-base mie:text-mietextmuted", children: [
1451
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:lg:hidden", children: [
1452
1452
  "Tap the ",
1453
- /* @__PURE__ */ t.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Tool Panel" }),
1453
+ /* @__PURE__ */ i.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Tool Panel" }),
1454
1454
  " button to add fields."
1455
1455
  ] }),
1456
- /* @__PURE__ */ t.jsxs("div", { className: "mie:hidden mie:lg:block", children: [
1456
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:hidden mie:lg:block", children: [
1457
1457
  "Add fields using the ",
1458
- /* @__PURE__ */ t.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Tool Panel" }),
1458
+ /* @__PURE__ */ i.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Tool Panel" }),
1459
1459
  " on the left.",
1460
- /* @__PURE__ */ t.jsx("br", {}),
1460
+ /* @__PURE__ */ i.jsx("br", {}),
1461
1461
  "Edit field properties using the ",
1462
- /* @__PURE__ */ t.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Edit Panel" }),
1462
+ /* @__PURE__ */ i.jsx("span", { className: "mie:font-semibold mie:text-mieprimary", children: "Edit Panel" }),
1463
1463
  " on the right."
1464
1464
  ] })
1465
1465
  ] })
@@ -1467,28 +1467,28 @@ function Wt() {
1467
1467
  }
1468
1468
  );
1469
1469
  }
1470
- function Me(e, i) {
1471
- (i == null || i > e.length) && (i = e.length);
1472
- for (var r = 0, n = Array(i); r < i; r++) n[r] = e[r];
1470
+ function Me(e, t) {
1471
+ (t == null || t > e.length) && (t = e.length);
1472
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1473
1473
  return n;
1474
1474
  }
1475
- function Vt(e) {
1475
+ function Vi(e) {
1476
1476
  if (Array.isArray(e)) return e;
1477
1477
  }
1478
- function Ht(e, i, r) {
1479
- return (i = Qt(i)) in e ? Object.defineProperty(e, i, {
1478
+ function Hi(e, t, r) {
1479
+ return (t = Qi(t)) in e ? Object.defineProperty(e, t, {
1480
1480
  value: r,
1481
1481
  enumerable: !0,
1482
1482
  configurable: !0,
1483
1483
  writable: !0
1484
- }) : e[i] = r, e;
1484
+ }) : e[t] = r, e;
1485
1485
  }
1486
- function Yt(e, i) {
1486
+ function Yi(e, t) {
1487
1487
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1488
1488
  if (r != null) {
1489
1489
  var n, s, o, d, m = [], c = !0, u = !1;
1490
1490
  try {
1491
- if (o = (r = r.call(e)).next, i !== 0) for (; !(c = (n = o.call(r)).done) && (m.push(n.value), m.length !== i); c = !0) ;
1491
+ if (o = (r = r.call(e)).next, t !== 0) for (; !(c = (n = o.call(r)).done) && (m.push(n.value), m.length !== t); c = !0) ;
1492
1492
  } catch (h) {
1493
1493
  u = !0, s = h;
1494
1494
  } finally {
@@ -1501,154 +1501,154 @@ function Yt(e, i) {
1501
1501
  return m;
1502
1502
  }
1503
1503
  }
1504
- function Jt() {
1504
+ function Ji() {
1505
1505
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1506
1506
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1507
1507
  }
1508
- function Fe(e, i) {
1508
+ function Fe(e, t) {
1509
1509
  var r = Object.keys(e);
1510
1510
  if (Object.getOwnPropertySymbols) {
1511
1511
  var n = Object.getOwnPropertySymbols(e);
1512
- i && (n = n.filter(function(s) {
1512
+ t && (n = n.filter(function(s) {
1513
1513
  return Object.getOwnPropertyDescriptor(e, s).enumerable;
1514
1514
  })), r.push.apply(r, n);
1515
1515
  }
1516
1516
  return r;
1517
1517
  }
1518
1518
  function _e(e) {
1519
- for (var i = 1; i < arguments.length; i++) {
1520
- var r = arguments[i] != null ? arguments[i] : {};
1521
- i % 2 ? Fe(Object(r), !0).forEach(function(n) {
1522
- Ht(e, n, r[n]);
1519
+ for (var t = 1; t < arguments.length; t++) {
1520
+ var r = arguments[t] != null ? arguments[t] : {};
1521
+ t % 2 ? Fe(Object(r), !0).forEach(function(n) {
1522
+ Hi(e, n, r[n]);
1523
1523
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Fe(Object(r)).forEach(function(n) {
1524
1524
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1525
1525
  });
1526
1526
  }
1527
1527
  return e;
1528
1528
  }
1529
- function Bt(e, i) {
1529
+ function Bi(e, t) {
1530
1530
  if (e == null) return {};
1531
- var r, n, s = Gt(e, i);
1531
+ var r, n, s = Gi(e, t);
1532
1532
  if (Object.getOwnPropertySymbols) {
1533
1533
  var o = Object.getOwnPropertySymbols(e);
1534
- for (n = 0; n < o.length; n++) r = o[n], i.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (s[r] = e[r]);
1534
+ for (n = 0; n < o.length; n++) r = o[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (s[r] = e[r]);
1535
1535
  }
1536
1536
  return s;
1537
1537
  }
1538
- function Gt(e, i) {
1538
+ function Gi(e, t) {
1539
1539
  if (e == null) return {};
1540
1540
  var r = {};
1541
1541
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
1542
- if (i.indexOf(n) !== -1) continue;
1542
+ if (t.indexOf(n) !== -1) continue;
1543
1543
  r[n] = e[n];
1544
1544
  }
1545
1545
  return r;
1546
1546
  }
1547
- function Kt(e, i) {
1548
- return Vt(e) || Yt(e, i) || Zt(e, i) || Jt();
1547
+ function Ki(e, t) {
1548
+ return Vi(e) || Yi(e, t) || Zi(e, t) || Ji();
1549
1549
  }
1550
- function Xt(e, i) {
1550
+ function Xi(e, t) {
1551
1551
  if (typeof e != "object" || !e) return e;
1552
1552
  var r = e[Symbol.toPrimitive];
1553
1553
  if (r !== void 0) {
1554
- var n = r.call(e, i);
1554
+ var n = r.call(e, t);
1555
1555
  if (typeof n != "object") return n;
1556
1556
  throw new TypeError("@@toPrimitive must return a primitive value.");
1557
1557
  }
1558
- return (i === "string" ? String : Number)(e);
1558
+ return (t === "string" ? String : Number)(e);
1559
1559
  }
1560
- function Qt(e) {
1561
- var i = Xt(e, "string");
1562
- return typeof i == "symbol" ? i : i + "";
1560
+ function Qi(e) {
1561
+ var t = Xi(e, "string");
1562
+ return typeof t == "symbol" ? t : t + "";
1563
1563
  }
1564
- function Zt(e, i) {
1564
+ function Zi(e, t) {
1565
1565
  if (e) {
1566
- if (typeof e == "string") return Me(e, i);
1566
+ if (typeof e == "string") return Me(e, t);
1567
1567
  var r = {}.toString.call(e).slice(8, -1);
1568
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Me(e, i) : void 0;
1568
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Me(e, t) : void 0;
1569
1569
  }
1570
1570
  }
1571
- function ei(e, i, r) {
1572
- return i in e ? Object.defineProperty(e, i, {
1571
+ function et(e, t, r) {
1572
+ return t in e ? Object.defineProperty(e, t, {
1573
1573
  value: r,
1574
1574
  enumerable: !0,
1575
1575
  configurable: !0,
1576
1576
  writable: !0
1577
- }) : e[i] = r, e;
1577
+ }) : e[t] = r, e;
1578
1578
  }
1579
- function De(e, i) {
1579
+ function De(e, t) {
1580
1580
  var r = Object.keys(e);
1581
1581
  if (Object.getOwnPropertySymbols) {
1582
1582
  var n = Object.getOwnPropertySymbols(e);
1583
- i && (n = n.filter(function(s) {
1583
+ t && (n = n.filter(function(s) {
1584
1584
  return Object.getOwnPropertyDescriptor(e, s).enumerable;
1585
1585
  })), r.push.apply(r, n);
1586
1586
  }
1587
1587
  return r;
1588
1588
  }
1589
1589
  function qe(e) {
1590
- for (var i = 1; i < arguments.length; i++) {
1591
- var r = arguments[i] != null ? arguments[i] : {};
1592
- i % 2 ? De(Object(r), !0).forEach(function(n) {
1593
- ei(e, n, r[n]);
1590
+ for (var t = 1; t < arguments.length; t++) {
1591
+ var r = arguments[t] != null ? arguments[t] : {};
1592
+ t % 2 ? De(Object(r), !0).forEach(function(n) {
1593
+ et(e, n, r[n]);
1594
1594
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : De(Object(r)).forEach(function(n) {
1595
1595
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1596
1596
  });
1597
1597
  }
1598
1598
  return e;
1599
1599
  }
1600
- function ti() {
1601
- for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
1602
- i[r] = arguments[r];
1600
+ function it() {
1601
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1602
+ t[r] = arguments[r];
1603
1603
  return function(n) {
1604
- return i.reduceRight(function(s, o) {
1604
+ return t.reduceRight(function(s, o) {
1605
1605
  return o(s);
1606
1606
  }, n);
1607
1607
  };
1608
1608
  }
1609
- function te(e) {
1610
- return function i() {
1609
+ function ie(e) {
1610
+ return function t() {
1611
1611
  for (var r = this, n = arguments.length, s = new Array(n), o = 0; o < n; o++)
1612
1612
  s[o] = arguments[o];
1613
1613
  return s.length >= e.length ? e.apply(this, s) : function() {
1614
1614
  for (var d = arguments.length, m = new Array(d), c = 0; c < d; c++)
1615
1615
  m[c] = arguments[c];
1616
- return i.apply(r, [].concat(s, m));
1616
+ return t.apply(r, [].concat(s, m));
1617
1617
  };
1618
1618
  };
1619
1619
  }
1620
1620
  function he(e) {
1621
1621
  return {}.toString.call(e).includes("Object");
1622
1622
  }
1623
- function ii(e) {
1623
+ function tt(e) {
1624
1624
  return !Object.keys(e).length;
1625
1625
  }
1626
1626
  function ne(e) {
1627
1627
  return typeof e == "function";
1628
1628
  }
1629
- function ri(e, i) {
1630
- return Object.prototype.hasOwnProperty.call(e, i);
1629
+ function rt(e, t) {
1630
+ return Object.prototype.hasOwnProperty.call(e, t);
1631
1631
  }
1632
- function ni(e, i) {
1633
- return he(i) || G("changeType"), Object.keys(i).some(function(r) {
1634
- return !ri(e, r);
1635
- }) && G("changeField"), i;
1632
+ function nt(e, t) {
1633
+ return he(t) || G("changeType"), Object.keys(t).some(function(r) {
1634
+ return !rt(e, r);
1635
+ }) && G("changeField"), t;
1636
1636
  }
1637
- function si(e) {
1637
+ function st(e) {
1638
1638
  ne(e) || G("selectorType");
1639
1639
  }
1640
- function oi(e) {
1641
- ne(e) || he(e) || G("handlerType"), he(e) && Object.values(e).some(function(i) {
1642
- return !ne(i);
1640
+ function ot(e) {
1641
+ ne(e) || he(e) || G("handlerType"), he(e) && Object.values(e).some(function(t) {
1642
+ return !ne(t);
1643
1643
  }) && G("handlersType");
1644
1644
  }
1645
- function ai(e) {
1646
- e || G("initialIsRequired"), he(e) || G("initialType"), ii(e) && G("initialContent");
1645
+ function at(e) {
1646
+ e || G("initialIsRequired"), he(e) || G("initialType"), tt(e) && G("initialContent");
1647
1647
  }
1648
- function mi(e, i) {
1649
- throw new Error(e[i] || e.default);
1648
+ function mt(e, t) {
1649
+ throw new Error(e[t] || e.default);
1650
1650
  }
1651
- var li = {
1651
+ var lt = {
1652
1652
  initialIsRequired: "initial state is required",
1653
1653
  initialType: "initial state should be an object",
1654
1654
  initialContent: "initial state shouldn't be an empty object",
@@ -1658,18 +1658,18 @@ var li = {
1658
1658
  changeType: "provided value of changes should be an object",
1659
1659
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
1660
1660
  default: "an unknown error accured in `state-local` package"
1661
- }, G = te(mi)(li), le = {
1662
- changes: ni,
1663
- selector: si,
1664
- handler: oi,
1665
- initial: ai
1661
+ }, G = ie(mt)(lt), le = {
1662
+ changes: nt,
1663
+ selector: st,
1664
+ handler: ot,
1665
+ initial: at
1666
1666
  };
1667
- function ci(e) {
1668
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1669
- le.initial(e), le.handler(i);
1667
+ function ct(e) {
1668
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1669
+ le.initial(e), le.handler(t);
1670
1670
  var r = {
1671
1671
  current: e
1672
- }, n = te(fi)(r, i), s = te(ui)(r), o = te(le.changes)(e), d = te(di)(r);
1672
+ }, n = ie(ft)(r, t), s = ie(ut)(r), o = ie(le.changes)(e), d = ie(dt)(r);
1673
1673
  function m() {
1674
1674
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(h) {
1675
1675
  return h;
@@ -1677,55 +1677,55 @@ function ci(e) {
1677
1677
  return le.selector(u), u(r.current);
1678
1678
  }
1679
1679
  function c(u) {
1680
- ti(n, s, o, d)(u);
1680
+ it(n, s, o, d)(u);
1681
1681
  }
1682
1682
  return [m, c];
1683
1683
  }
1684
- function di(e, i) {
1685
- return ne(i) ? i(e.current) : i;
1684
+ function dt(e, t) {
1685
+ return ne(t) ? t(e.current) : t;
1686
1686
  }
1687
- function ui(e, i) {
1688
- return e.current = qe(qe({}, e.current), i), i;
1687
+ function ut(e, t) {
1688
+ return e.current = qe(qe({}, e.current), t), t;
1689
1689
  }
1690
- function fi(e, i, r) {
1691
- return ne(i) ? i(e.current) : Object.keys(r).forEach(function(n) {
1690
+ function ft(e, t, r) {
1691
+ return ne(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
1692
1692
  var s;
1693
- return (s = i[n]) === null || s === void 0 ? void 0 : s.call(i, e.current[n]);
1693
+ return (s = t[n]) === null || s === void 0 ? void 0 : s.call(t, e.current[n]);
1694
1694
  }), r;
1695
1695
  }
1696
- var pi = {
1697
- create: ci
1698
- }, hi = {
1696
+ var pt = {
1697
+ create: ct
1698
+ }, ht = {
1699
1699
  paths: {
1700
1700
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
1701
1701
  }
1702
1702
  };
1703
- function xi(e) {
1704
- return function i() {
1703
+ function xt(e) {
1704
+ return function t() {
1705
1705
  for (var r = this, n = arguments.length, s = new Array(n), o = 0; o < n; o++)
1706
1706
  s[o] = arguments[o];
1707
1707
  return s.length >= e.length ? e.apply(this, s) : function() {
1708
1708
  for (var d = arguments.length, m = new Array(d), c = 0; c < d; c++)
1709
1709
  m[c] = arguments[c];
1710
- return i.apply(r, [].concat(s, m));
1710
+ return t.apply(r, [].concat(s, m));
1711
1711
  };
1712
1712
  };
1713
1713
  }
1714
- function bi(e) {
1714
+ function bt(e) {
1715
1715
  return {}.toString.call(e).includes("Object");
1716
1716
  }
1717
- function gi(e) {
1718
- return e || Le("configIsRequired"), bi(e) || Le("configType"), e.urls ? (vi(), {
1717
+ function gt(e) {
1718
+ return e || Le("configIsRequired"), bt(e) || Le("configType"), e.urls ? (vt(), {
1719
1719
  paths: {
1720
1720
  vs: e.urls.monacoBase
1721
1721
  }
1722
1722
  }) : e;
1723
1723
  }
1724
- function vi() {
1724
+ function vt() {
1725
1725
  console.warn(Ye.deprecation);
1726
1726
  }
1727
- function yi(e, i) {
1728
- throw new Error(e[i] || e.default);
1727
+ function yt(e, t) {
1728
+ throw new Error(e[t] || e.default);
1729
1729
  }
1730
1730
  var Ye = {
1731
1731
  configIsRequired: "the configuration object is required",
@@ -1741,10 +1741,10 @@ var Ye = {
1741
1741
 
1742
1742
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
1743
1743
  `
1744
- }, Le = xi(yi)(Ye), ji = {
1745
- config: gi
1746
- }, wi = function() {
1747
- for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++)
1744
+ }, Le = xt(yt)(Ye), jt = {
1745
+ config: gt
1746
+ }, wt = function() {
1747
+ for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
1748
1748
  r[n] = arguments[n];
1749
1749
  return function(s) {
1750
1750
  return r.reduceRight(function(o, d) {
@@ -1752,34 +1752,34 @@ var Ye = {
1752
1752
  }, s);
1753
1753
  };
1754
1754
  };
1755
- function Je(e, i) {
1756
- return Object.keys(i).forEach(function(r) {
1757
- i[r] instanceof Object && e[r] && Object.assign(i[r], Je(e[r], i[r]));
1758
- }), _e(_e({}, e), i);
1755
+ function Je(e, t) {
1756
+ return Object.keys(t).forEach(function(r) {
1757
+ t[r] instanceof Object && e[r] && Object.assign(t[r], Je(e[r], t[r]));
1758
+ }), _e(_e({}, e), t);
1759
1759
  }
1760
- var Ei = {
1760
+ var Et = {
1761
1761
  type: "cancelation",
1762
1762
  msg: "operation is manually canceled"
1763
1763
  };
1764
1764
  function ye(e) {
1765
- var i = !1, r = new Promise(function(n, s) {
1765
+ var t = !1, r = new Promise(function(n, s) {
1766
1766
  e.then(function(o) {
1767
- return i ? s(Ei) : n(o);
1767
+ return t ? s(Et) : n(o);
1768
1768
  }), e.catch(s);
1769
1769
  });
1770
1770
  return r.cancel = function() {
1771
- return i = !0;
1771
+ return t = !0;
1772
1772
  }, r;
1773
1773
  }
1774
- var Ni = ["monaco"], Ci = pi.create({
1775
- config: hi,
1774
+ var Nt = ["monaco"], Ct = pt.create({
1775
+ config: ht,
1776
1776
  isInitialized: !1,
1777
1777
  resolve: null,
1778
1778
  reject: null,
1779
1779
  monaco: null
1780
- }), Be = Kt(Ci, 2), se = Be[0], xe = Be[1];
1781
- function Oi(e) {
1782
- var i = ji.config(e), r = i.monaco, n = Bt(i, Ni);
1780
+ }), Be = Ki(Ct, 2), se = Be[0], xe = Be[1];
1781
+ function Ot(e) {
1782
+ var t = jt.config(e), r = t.monaco, n = Bi(t, Nt);
1783
1783
  xe(function(s) {
1784
1784
  return {
1785
1785
  config: Je(s.config, n),
@@ -1787,9 +1787,9 @@ function Oi(e) {
1787
1787
  };
1788
1788
  });
1789
1789
  }
1790
- function Ti() {
1791
- var e = se(function(i) {
1792
- var r = i.monaco, n = i.isInitialized, s = i.resolve;
1790
+ function Tt() {
1791
+ var e = se(function(t) {
1792
+ var r = t.monaco, n = t.isInitialized, s = t.resolve;
1793
1793
  return {
1794
1794
  monaco: r,
1795
1795
  isInitialized: n,
@@ -1803,30 +1803,30 @@ function Ti() {
1803
1803
  return e.resolve(e.monaco), ye(je);
1804
1804
  if (window.monaco && window.monaco.editor)
1805
1805
  return Ge(window.monaco), e.resolve(window.monaco), ye(je);
1806
- wi(Ii, ki)(Ri);
1806
+ wt(It, kt)(Rt);
1807
1807
  }
1808
1808
  return ye(je);
1809
1809
  }
1810
- function Ii(e) {
1810
+ function It(e) {
1811
1811
  return document.body.appendChild(e);
1812
1812
  }
1813
- function Si(e) {
1814
- var i = document.createElement("script");
1815
- return e && (i.src = e), i;
1813
+ function St(e) {
1814
+ var t = document.createElement("script");
1815
+ return e && (t.src = e), t;
1816
1816
  }
1817
- function ki(e) {
1818
- var i = se(function(n) {
1817
+ function kt(e) {
1818
+ var t = se(function(n) {
1819
1819
  var s = n.config, o = n.reject;
1820
1820
  return {
1821
1821
  config: s,
1822
1822
  reject: o
1823
1823
  };
1824
- }), r = Si("".concat(i.config.paths.vs, "/loader.js"));
1824
+ }), r = St("".concat(t.config.paths.vs, "/loader.js"));
1825
1825
  return r.onload = function() {
1826
1826
  return e();
1827
- }, r.onerror = i.reject, r;
1827
+ }, r.onerror = t.reject, r;
1828
1828
  }
1829
- function Ri() {
1829
+ function Rt() {
1830
1830
  var e = se(function(r) {
1831
1831
  var n = r.config, s = r.resolve, o = r.reject;
1832
1832
  return {
@@ -1834,8 +1834,8 @@ function Ri() {
1834
1834
  resolve: s,
1835
1835
  reject: o
1836
1836
  };
1837
- }), i = window.require;
1838
- i.config(e.config), i(["vs/editor/editor.main"], function(r) {
1837
+ }), t = window.require;
1838
+ t.config(e.config), t(["vs/editor/editor.main"], function(r) {
1839
1839
  var n = r.m || r;
1840
1840
  Ge(n), e.resolve(n);
1841
1841
  }, function(r) {
@@ -1847,56 +1847,56 @@ function Ge(e) {
1847
1847
  monaco: e
1848
1848
  });
1849
1849
  }
1850
- function Ai() {
1850
+ function At() {
1851
1851
  return se(function(e) {
1852
- var i = e.monaco;
1853
- return i;
1852
+ var t = e.monaco;
1853
+ return t;
1854
1854
  });
1855
1855
  }
1856
- var je = new Promise(function(e, i) {
1856
+ var je = new Promise(function(e, t) {
1857
1857
  return xe({
1858
1858
  resolve: e,
1859
- reject: i
1859
+ reject: t
1860
1860
  });
1861
1861
  }), Ke = {
1862
- config: Oi,
1863
- init: Ti,
1864
- __getMonacoInstance: Ai
1865
- }, Pi = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, we = Pi, Mi = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Fi = Mi;
1866
- function _i({ children: e }) {
1867
- return l.createElement("div", { style: Fi.container }, e);
1868
- }
1869
- var Di = _i, qi = Di;
1870
- function Li({ width: e, height: i, isEditorReady: r, loading: n, _ref: s, className: o, wrapperProps: d }) {
1871
- return l.createElement("section", { style: { ...we.wrapper, width: e, height: i }, ...d }, !r && l.createElement(qi, null, n), l.createElement("div", { ref: s, style: { ...we.fullWidth, ...!r && we.hide }, className: o }));
1872
- }
1873
- var $i = Li, Xe = Ce($i);
1874
- function Ui(e) {
1862
+ config: Ot,
1863
+ init: Tt,
1864
+ __getMonacoInstance: At
1865
+ }, Pt = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, we = Pt, Mt = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Ft = Mt;
1866
+ function _t({ children: e }) {
1867
+ return l.createElement("div", { style: Ft.container }, e);
1868
+ }
1869
+ var Dt = _t, qt = Dt;
1870
+ function Lt({ width: e, height: t, isEditorReady: r, loading: n, _ref: s, className: o, wrapperProps: d }) {
1871
+ return l.createElement("section", { style: { ...we.wrapper, width: e, height: t }, ...d }, !r && l.createElement(qt, null, n), l.createElement("div", { ref: s, style: { ...we.fullWidth, ...!r && we.hide }, className: o }));
1872
+ }
1873
+ var $t = Lt, Xe = Ce($t);
1874
+ function Ut(e) {
1875
1875
  J(e, []);
1876
1876
  }
1877
- var Qe = Ui;
1878
- function zi(e, i, r = !0) {
1877
+ var Qe = Ut;
1878
+ function zt(e, t, r = !0) {
1879
1879
  let n = U(!0);
1880
1880
  J(n.current || !r ? () => {
1881
1881
  n.current = !1;
1882
- } : e, i);
1882
+ } : e, t);
1883
1883
  }
1884
- var W = zi;
1885
- function ie() {
1884
+ var W = zt;
1885
+ function te() {
1886
1886
  }
1887
- function Q(e, i, r, n) {
1888
- return Wi(e, n) || Vi(e, i, r, n);
1887
+ function Q(e, t, r, n) {
1888
+ return Wt(e, n) || Vt(e, t, r, n);
1889
1889
  }
1890
- function Wi(e, i) {
1891
- return e.editor.getModel(Ze(e, i));
1890
+ function Wt(e, t) {
1891
+ return e.editor.getModel(Ze(e, t));
1892
1892
  }
1893
- function Vi(e, i, r, n) {
1894
- return e.editor.createModel(i, r, n ? Ze(e, n) : void 0);
1893
+ function Vt(e, t, r, n) {
1894
+ return e.editor.createModel(t, r, n ? Ze(e, n) : void 0);
1895
1895
  }
1896
- function Ze(e, i) {
1897
- return e.Uri.parse(i);
1896
+ function Ze(e, t) {
1897
+ return e.Uri.parse(t);
1898
1898
  }
1899
- function Hi({ original: e, modified: i, language: r, originalLanguage: n, modifiedLanguage: s, originalModelPath: o, modifiedModelPath: d, keepCurrentOriginalModel: m = !1, keepCurrentModifiedModel: c = !1, theme: u = "light", loading: h = "Loading...", options: g = {}, height: S = "100%", width: q = "100%", className: _, wrapperProps: j = {}, beforeMount: k = ie, onMount: R = ie }) {
1899
+ function Ht({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: s, originalModelPath: o, modifiedModelPath: d, keepCurrentOriginalModel: m = !1, keepCurrentModifiedModel: c = !1, theme: u = "light", loading: h = "Loading...", options: g = {}, height: S = "100%", width: q = "100%", className: _, wrapperProps: j = {}, beforeMount: k = te, onMount: R = te }) {
1900
1900
  let [w, A] = ue(!1), [T, x] = ue(!0), b = U(null), f = U(null), O = U(null), E = U(R), I = U(k), P = U(!1);
1901
1901
  Qe(() => {
1902
1902
  let N = Ke.init();
@@ -1908,13 +1908,13 @@ function Hi({ original: e, modified: i, language: r, originalLanguage: n, modifi
1908
1908
  }
1909
1909
  }, [o], w), W(() => {
1910
1910
  if (b.current && f.current) {
1911
- let N = b.current.getModifiedEditor(), F = Q(f.current, i || "", s || r || "text", d || "");
1911
+ let N = b.current.getModifiedEditor(), F = Q(f.current, t || "", s || r || "text", d || "");
1912
1912
  F !== N.getModel() && N.setModel(F);
1913
1913
  }
1914
1914
  }, [d], w), W(() => {
1915
1915
  let N = b.current.getModifiedEditor();
1916
- N.getOption(f.current.editor.EditorOption.readOnly) ? N.setValue(i || "") : i !== N.getValue() && (N.executeEdits("", [{ range: N.getModel().getFullModelRange(), text: i || "", forceMoveMarkers: !0 }]), N.pushUndoStop());
1917
- }, [i], w), W(() => {
1916
+ N.getOption(f.current.editor.EditorOption.readOnly) ? N.setValue(t || "") : t !== N.getValue() && (N.executeEdits("", [{ range: N.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), N.pushUndoStop());
1917
+ }, [t], w), W(() => {
1918
1918
  b.current?.getModel()?.original.setValue(e || "");
1919
1919
  }, [e], w), W(() => {
1920
1920
  let { original: N, modified: F } = b.current.getModel();
@@ -1927,9 +1927,9 @@ function Hi({ original: e, modified: i, language: r, originalLanguage: n, modifi
1927
1927
  let p = de(() => {
1928
1928
  if (!f.current) return;
1929
1929
  I.current(f.current);
1930
- let N = Q(f.current, e || "", n || r || "text", o || ""), F = Q(f.current, i || "", s || r || "text", d || "");
1930
+ let N = Q(f.current, e || "", n || r || "text", o || ""), F = Q(f.current, t || "", s || r || "text", d || "");
1931
1931
  b.current?.setModel({ original: N, modified: F });
1932
- }, [r, i, s, e, n, o, d]), C = de(() => {
1932
+ }, [r, t, s, e, n, o, d]), C = de(() => {
1933
1933
  !P.current && O.current && (b.current = f.current.editor.createDiffEditor(O.current, { automaticLayout: !0, ...g }), p(), f.current?.editor.setTheme(u), A(!0), P.current = !0);
1934
1934
  }, [g, u, p]);
1935
1935
  J(() => {
@@ -1943,22 +1943,22 @@ function Hi({ original: e, modified: i, language: r, originalLanguage: n, modifi
1943
1943
  }
1944
1944
  return l.createElement(Xe, { width: q, height: S, isEditorReady: w, loading: h, _ref: O, className: _, wrapperProps: j });
1945
1945
  }
1946
- var Yi = Hi;
1947
- Ce(Yi);
1948
- function Ji(e) {
1949
- let i = U();
1946
+ var Yt = Ht;
1947
+ Ce(Yt);
1948
+ function Jt(e) {
1949
+ let t = U();
1950
1950
  return J(() => {
1951
- i.current = e;
1952
- }, [e]), i.current;
1951
+ t.current = e;
1952
+ }, [e]), t.current;
1953
1953
  }
1954
- var Bi = Ji, ce = /* @__PURE__ */ new Map();
1955
- function Gi({ defaultValue: e, defaultLanguage: i, defaultPath: r, value: n, language: s, path: o, theme: d = "light", line: m, loading: c = "Loading...", options: u = {}, overrideServices: h = {}, saveViewState: g = !0, keepCurrentModel: S = !1, width: q = "100%", height: _ = "100%", className: j, wrapperProps: k = {}, beforeMount: R = ie, onMount: w = ie, onChange: A, onValidate: T = ie }) {
1956
- let [x, b] = ue(!1), [f, O] = ue(!0), E = U(null), I = U(null), P = U(null), p = U(w), C = U(R), M = U(), N = U(n), F = Bi(o), $ = U(!1), z = U(!1);
1954
+ var Bt = Jt, ce = /* @__PURE__ */ new Map();
1955
+ function Gt({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: s, path: o, theme: d = "light", line: m, loading: c = "Loading...", options: u = {}, overrideServices: h = {}, saveViewState: g = !0, keepCurrentModel: S = !1, width: q = "100%", height: _ = "100%", className: j, wrapperProps: k = {}, beforeMount: R = te, onMount: w = te, onChange: A, onValidate: T = te }) {
1956
+ let [x, b] = ue(!1), [f, O] = ue(!0), E = U(null), I = U(null), P = U(null), p = U(w), C = U(R), M = U(), N = U(n), F = Bt(o), $ = U(!1), z = U(!1);
1957
1957
  Qe(() => {
1958
1958
  let a = Ke.init();
1959
1959
  return a.then((v) => (E.current = v) && O(!1)).catch((v) => v?.type !== "cancelation" && console.error("Monaco initialization: error:", v)), () => I.current ? Y() : a.cancel();
1960
1960
  }), W(() => {
1961
- let a = Q(E.current, e || n || "", i || s || "", o || r || "");
1961
+ let a = Q(E.current, e || n || "", t || s || "", o || r || "");
1962
1962
  a !== I.current?.getModel() && (g && ce.set(F, I.current?.saveViewState()), I.current?.setModel(a), g && I.current?.restoreViewState(ce.get(o)));
1963
1963
  }, [o], x), W(() => {
1964
1964
  I.current?.updateOptions(u);
@@ -1975,10 +1975,10 @@ function Gi({ defaultValue: e, defaultLanguage: i, defaultPath: r, value: n, lan
1975
1975
  let H = de(() => {
1976
1976
  if (!(!P.current || !E.current) && !$.current) {
1977
1977
  C.current(E.current);
1978
- let a = o || r, v = Q(E.current, n || e || "", i || s || "", a || "");
1978
+ let a = o || r, v = Q(E.current, n || e || "", t || s || "", a || "");
1979
1979
  I.current = E.current?.editor.create(P.current, { model: v, automaticLayout: !0, ...u }, h), g && I.current.restoreViewState(ce.get(a)), E.current.editor.setTheme(d), m !== void 0 && I.current.revealLine(m), b(!0), $.current = !0;
1980
1980
  }
1981
- }, [e, i, r, n, s, o, u, h, g, d, m]);
1981
+ }, [e, t, r, n, s, o, u, h, g, d, m]);
1982
1982
  J(() => {
1983
1983
  x && p.current(I.current, E.current);
1984
1984
  }, [x]), J(() => {
@@ -2008,9 +2008,9 @@ function Gi({ defaultValue: e, defaultLanguage: i, defaultPath: r, value: n, lan
2008
2008
  }
2009
2009
  return l.createElement(Xe, { width: q, height: _, isEditorReady: x, loading: c, _ref: P, className: j, wrapperProps: k });
2010
2010
  }
2011
- var Ki = Gi, Xi = Ce(Ki), Qi = Xi;
2012
- function Zi() {
2013
- const e = $e(), i = V((f) => f.replaceAll), r = B(), { showAlert: n } = Ue(), s = l.useRef(null), o = l.useRef(""), d = l.useRef(null), m = l.useRef(!1), [c, u] = l.useState("yaml"), [h, g] = l.useState(!1);
2011
+ var Kt = Gt, Xt = Ce(Kt), Qt = Xt;
2012
+ function Zt() {
2013
+ const e = $e(), t = V((f) => f.replaceAll), r = B(), { showAlert: n } = Ue(), s = l.useRef(null), o = l.useRef(""), d = l.useRef(null), m = l.useRef(!1), [c, u] = l.useState("yaml"), [h, g] = l.useState(!1);
2014
2014
  l.useEffect(() => {
2015
2015
  const f = document.querySelector(".qb-editor-root");
2016
2016
  if (!f) return;
@@ -2081,7 +2081,7 @@ Do you want to proceed with the conversion?`,
2081
2081
  ...M?.surveyMetadata || {},
2082
2082
  fields: C
2083
2083
  };
2084
- i(N);
2084
+ t(N);
2085
2085
  const F = A(N);
2086
2086
  j(F), o.current = F, f.setValue(F), R(""), m.current = !1, M && (r.setConversionReport(M), setTimeout(() => {
2087
2087
  const $ = M?.unsupportedFields?.length || 0;
@@ -2116,7 +2116,7 @@ Please use MIE Forms schema inside of code editor for the best experience in the
2116
2116
  return l.useEffect(() => () => {
2117
2117
  const f = o.current?.trim();
2118
2118
  if (!f) {
2119
- i({ schemaType: ve, fields: [] }), m.current = !1;
2119
+ t({ schemaType: ve, fields: [] }), m.current = !1;
2120
2120
  return;
2121
2121
  }
2122
2122
  try {
@@ -2127,13 +2127,13 @@ Please use MIE Forms schema inside of code editor for the best experience in the
2127
2127
  ...P?.surveyMetadata || {},
2128
2128
  fields: I
2129
2129
  };
2130
- P && r.setConversionReport(P), i(p), r.setCodeEditorHasError(!1), m.current = !1;
2130
+ P && r.setConversionReport(P), t(p), r.setCodeEditorHasError(!1), m.current = !1;
2131
2131
  } catch {
2132
2132
  }
2133
- }, [w, i, r, e]), /* @__PURE__ */ t.jsxs("div", { ref: s, className: "code-editor-container mie:flex mie:flex-col mie:bg-miebackground mie:max-w-7xl mie:w-full", style: { height: `${S}px` }, children: [
2134
- /* @__PURE__ */ t.jsxs("div", { className: "code-editor-header mie:flex mie:items-center mie:justify-between mie:gap-3 mie:p-4 mie:bg-miesurface mie:border-b mie:border-mieborder", children: [
2135
- /* @__PURE__ */ t.jsx("div", { className: "mie:flex mie:items-center mie:gap-2", children: /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1", children: [
2136
- /* @__PURE__ */ t.jsx(
2133
+ }, [w, t, r, e]), /* @__PURE__ */ i.jsxs("div", { ref: s, className: "code-editor-container mie:flex mie:flex-col mie:bg-miebackground mie:max-w-7xl mie:w-full", style: { height: `${S}px` }, children: [
2134
+ /* @__PURE__ */ i.jsxs("div", { className: "code-editor-header mie:flex mie:items-center mie:justify-between mie:gap-3 mie:p-4 mie:bg-miesurface mie:border-b mie:border-mieborder", children: [
2135
+ /* @__PURE__ */ i.jsx("div", { className: "mie:flex mie:items-center mie:gap-2", children: /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:gap-1 mie:rounded-lg mie:border mie:border-mieborder mie:bg-miebackground mie:p-1", children: [
2136
+ /* @__PURE__ */ i.jsx(
2137
2137
  "button",
2138
2138
  {
2139
2139
  onClick: () => b("yaml"),
@@ -2141,7 +2141,7 @@ Please use MIE Forms schema inside of code editor for the best experience in the
2141
2141
  children: "YAML"
2142
2142
  }
2143
2143
  ),
2144
- /* @__PURE__ */ t.jsx(
2144
+ /* @__PURE__ */ i.jsx(
2145
2145
  "button",
2146
2146
  {
2147
2147
  onClick: () => b("json"),
@@ -2150,13 +2150,13 @@ Please use MIE Forms schema inside of code editor for the best experience in the
2150
2150
  }
2151
2151
  )
2152
2152
  ] }) }),
2153
- /* @__PURE__ */ t.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2", children: [
2154
- /* @__PURE__ */ t.jsx("div", { className: "mie:text-xs mie:text-mietextmuted mie:px-3 mie:py-1", children: "Auto-saves when switching tabs" }),
2155
- k && /* @__PURE__ */ t.jsx("div", { className: "mie:text-xs mie:text-miedanger mie:bg-miedanger/10 mie:px-3 mie:py-1 mie:rounded-lg", children: k })
2153
+ /* @__PURE__ */ i.jsxs("div", { className: "mie:flex mie:items-center mie:gap-2", children: [
2154
+ /* @__PURE__ */ i.jsx("div", { className: "mie:text-xs mie:text-mietextmuted mie:px-3 mie:py-1", children: "Auto-saves when switching tabs" }),
2155
+ k && /* @__PURE__ */ i.jsx("div", { className: "mie:text-xs mie:text-miedanger mie:bg-miedanger/10 mie:px-3 mie:py-1 mie:rounded-lg", children: k })
2156
2156
  ] })
2157
2157
  ] }),
2158
- /* @__PURE__ */ t.jsx("div", { className: "code-editor-content mie:flex-1 mie:overflow-hidden", children: /* @__PURE__ */ t.jsx(
2159
- Qi,
2158
+ /* @__PURE__ */ i.jsx("div", { className: "code-editor-content mie:flex-1 mie:overflow-hidden", children: /* @__PURE__ */ i.jsx(
2159
+ Qt,
2160
2160
  {
2161
2161
  height: "100%",
2162
2162
  language: c,
@@ -2182,49 +2182,49 @@ Please use MIE Forms schema inside of code editor for the best experience in the
2182
2182
  ] });
2183
2183
  }
2184
2184
  function er({ selectedField: e }) {
2185
- const i = B(), [r, n] = l.useState(!1), s = i.state.isPreview, o = i.state.isCodeEditor, d = i.state.isEditModalOpen, m = i.state.panelResetKey, c = !s;
2186
- return /* @__PURE__ */ t.jsxs("div", { className: "layout-container mie:w-full mie:h-fit mie:rounded-lg mie:mt-3", children: [
2187
- o ? /* @__PURE__ */ t.jsx("div", { className: "mie:border mie:border-mieborder mie:rounded-lg", children: /* @__PURE__ */ t.jsx(Zi, {}) }) : /* @__PURE__ */ t.jsxs("div", { className: "layout-grid mie:flex mie:lg:gap-3 mie:h-full", children: [
2188
- c && /* @__PURE__ */ t.jsx("div", { className: "layout-tool-panel mie:hidden mie:lg:block mie:lg:w-72", children: /* @__PURE__ */ t.jsx(ke, {}) }),
2189
- /* @__PURE__ */ t.jsx("div", { className: "layout-main-content mie:flex-1 mie:min-w-0", children: /* @__PURE__ */ t.jsx(Ut, {}) }),
2190
- c && /* @__PURE__ */ t.jsx("div", { className: "layout-edit-panel mie:hidden mie:lg:block mie:lg:w-90 mie:md:w-80", children: /* @__PURE__ */ t.jsx(Pe, {}, m) }),
2191
- c && /* @__PURE__ */ t.jsx("div", { className: "layout-mobile-modal mie:lg:hidden", children: d && e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2192
- /* @__PURE__ */ t.jsx(
2185
+ const t = B(), [r, n] = l.useState(!1), s = t.state.isPreview, o = t.state.isCodeEditor, d = t.state.isEditModalOpen, m = t.state.panelResetKey, c = !s;
2186
+ return /* @__PURE__ */ i.jsxs("div", { className: "layout-container mie:w-full mie:h-fit mie:rounded-lg mie:mt-3", children: [
2187
+ o ? /* @__PURE__ */ i.jsx("div", { className: "mie:border mie:border-mieborder mie:rounded-lg", children: /* @__PURE__ */ i.jsx(Zt, {}) }) : /* @__PURE__ */ i.jsxs("div", { className: "layout-grid mie:flex mie:lg:gap-3 mie:h-full", children: [
2188
+ c && /* @__PURE__ */ i.jsx("div", { className: "layout-tool-panel mie:hidden mie:lg:block mie:lg:w-72", children: /* @__PURE__ */ i.jsx(ke, {}) }),
2189
+ /* @__PURE__ */ i.jsx("div", { className: "layout-main-content mie:flex-1 mie:min-w-0", children: /* @__PURE__ */ i.jsx(Ui, {}) }),
2190
+ c && /* @__PURE__ */ i.jsx("div", { className: "layout-edit-panel mie:hidden mie:lg:block mie:lg:w-90 mie:md:w-80", children: /* @__PURE__ */ i.jsx(Pe, {}, m) }),
2191
+ c && /* @__PURE__ */ i.jsx("div", { className: "layout-mobile-modal mie:lg:hidden", children: d && e && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2192
+ /* @__PURE__ */ i.jsx(
2193
2193
  "div",
2194
2194
  {
2195
2195
  className: "mie:fixed mie:inset-0 mie:z-40 mie:bg-mieoverlay mie:lg:hidden",
2196
- onClick: () => i.modal.set(!1)
2196
+ onClick: () => t.modal.set(!1)
2197
2197
  }
2198
2198
  ),
2199
- /* @__PURE__ */ t.jsx("div", { className: "mie:fixed mie:bottom-0 mie:left-0 mie:right-0 mie:z-50 mie:bg-miesurface mie:rounded-t-2xl mie:shadow-2xl mie:max-h-[60vh] mie:overflow-y-auto mie:custom-scrollbar mie:lg:hidden", children: /* @__PURE__ */ t.jsx(Pe, { isMobileModal: !0 }, m) })
2199
+ /* @__PURE__ */ i.jsx("div", { className: "mie:fixed mie:bottom-0 mie:left-0 mie:right-0 mie:z-50 mie:bg-miesurface mie:rounded-t-2xl mie:shadow-2xl mie:max-h-[60vh] mie:overflow-y-auto mie:custom-scrollbar mie:lg:hidden", children: /* @__PURE__ */ i.jsx(Pe, { isMobileModal: !0 }, m) })
2200
2200
  ] }) })
2201
2201
  ] }),
2202
- c && !o && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2203
- /* @__PURE__ */ t.jsx(
2202
+ c && !o && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2203
+ /* @__PURE__ */ i.jsx(
2204
2204
  "button",
2205
2205
  {
2206
2206
  onClick: () => n(!r),
2207
2207
  className: "mie:lg:hidden mie:fixed mie:bottom-5 mie:left-5 mie:z-40 mie:bg-mieprimary mie:hover:bg-mieprimary/90 mie:text-miesurface mie:rounded-full mie:w-12 mie:h-12 mie:flex mie:items-center mie:justify-center mie:shadow-lg mie:transition-all",
2208
2208
  title: "Add field",
2209
- children: /* @__PURE__ */ t.jsx("svg", { className: "mie:w-6 mie:h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" }) })
2209
+ children: /* @__PURE__ */ i.jsx("svg", { className: "mie:w-6 mie:h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ i.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" }) })
2210
2210
  }
2211
2211
  ),
2212
- r && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2213
- /* @__PURE__ */ t.jsx(
2212
+ r && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2213
+ /* @__PURE__ */ i.jsx(
2214
2214
  "div",
2215
2215
  {
2216
2216
  className: "mie:fixed mie:inset-0 mie:z-40 mie:bg-mieoverlay mie:lg:hidden",
2217
2217
  onClick: () => n(!1)
2218
2218
  }
2219
2219
  ),
2220
- /* @__PURE__ */ t.jsx("div", { className: "mie:fixed mie:bottom-0 mie:left-0 mie:right-0 mie:z-50 mie:bg-miesurface mie:rounded-t-2xl mie:shadow-2xl mie:max-h-[60vh] mie:overflow-y-auto mie:custom-scrollbar mie:lg:hidden", children: /* @__PURE__ */ t.jsx(ke, {}) })
2220
+ /* @__PURE__ */ i.jsx("div", { className: "mie:fixed mie:bottom-0 mie:left-0 mie:right-0 mie:z-50 mie:bg-miesurface mie:rounded-t-2xl mie:shadow-2xl mie:max-h-[60vh] mie:overflow-y-auto mie:custom-scrollbar mie:lg:hidden", children: /* @__PURE__ */ i.jsx(ke, {}) })
2221
2221
  ] })
2222
2222
  ] })
2223
2223
  ] });
2224
2224
  }
2225
- function tr({
2225
+ function ir({
2226
2226
  initialFormData: e,
2227
- schemaType: i,
2227
+ schemaType: t,
2228
2228
  onChange: r,
2229
2229
  className: n = "",
2230
2230
  showHeader: s = !0,
@@ -2237,7 +2237,7 @@ function tr({
2237
2237
  if (!(g.current || !S)) {
2238
2238
  if (e)
2239
2239
  try {
2240
- const { data: j, schemaType: k } = fe(e, i), R = pe(j, k);
2240
+ const { data: j, schemaType: k } = fe(e, t), R = pe(j, k);
2241
2241
  R.conversionReport && h.setConversionReport(R.conversionReport);
2242
2242
  const w = {
2243
2243
  schemaType: k === "surveyjs" ? "mieforms-v1.0" : j.schemaType || "mieforms-v1.0",
@@ -2255,7 +2255,7 @@ function tr({
2255
2255
  }
2256
2256
  h.preview.set(!!o), g.current = !0;
2257
2257
  }
2258
- }, [e, i, o, h, S]), l.useEffect(() => {
2258
+ }, [e, t, o, h, S]), l.useEffect(() => {
2259
2259
  h.setHideUnsupportedFields(d);
2260
2260
  }, [d, h]), l.useEffect(() => {
2261
2261
  if (!(!r || !S))
@@ -2267,18 +2267,18 @@ function tr({
2267
2267
  });
2268
2268
  });
2269
2269
  }, [r, S]);
2270
- const q = Ot(
2270
+ const q = Oi(
2271
2271
  S,
2272
2272
  (j) => h.selectedFieldId.value ? j.byId[h.selectedFieldId.value] : null
2273
2273
  ), _ = m === "dark";
2274
- return /* @__PURE__ */ t.jsx("div", { className: `qb-editor-root editor-container mie:w-full mie:max-w-7xl mie:mx-auto mie:bg-miebackground mie:font-titillium ${_ ? "dark" : ""} ${n}`, children: /* @__PURE__ */ t.jsxs(Ct, { children: [
2275
- s && /* @__PURE__ */ t.jsx(kt, { codeFormat: c, onCodeFormatChange: u }),
2276
- /* @__PURE__ */ t.jsx(er, { selectedField: q, codeFormat: c })
2274
+ return /* @__PURE__ */ i.jsx("div", { className: `qb-editor-root editor-container mie:w-full mie:max-w-7xl mie:mx-auto mie:bg-miebackground mie:font-titillium ${_ ? "dark" : ""} ${n}`, children: /* @__PURE__ */ i.jsxs(Ci, { children: [
2275
+ s && /* @__PURE__ */ i.jsx(ki, { codeFormat: c, onCodeFormatChange: u }),
2276
+ /* @__PURE__ */ i.jsx(er, { selectedField: q, codeFormat: c })
2277
2277
  ] }) });
2278
2278
  }
2279
2279
  function or(e) {
2280
- const i = l.useRef(wt()).current, r = l.useRef(Et()).current;
2281
- return /* @__PURE__ */ t.jsx(Oe.Provider, { value: i, children: /* @__PURE__ */ t.jsx(Nt.Provider, { value: r, children: /* @__PURE__ */ t.jsx(tr, { ...e }) }) });
2280
+ const t = l.useRef(wi()).current, r = l.useRef(Ei()).current;
2281
+ return /* @__PURE__ */ i.jsx(Oe.Provider, { value: t, children: /* @__PURE__ */ i.jsx(Ni.Provider, { value: r, children: /* @__PURE__ */ i.jsx(ir, { ...e }) }) });
2282
2282
  }
2283
2283
  export {
2284
2284
  or as QuestionnaireEditor