forge-edit 0.1.0-beta.10 → 0.1.0-beta.12
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 +182 -180
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-100:oklch(96.7% .003 264.542);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-\\[1px\\]{top:1px}.top-\\[calc\\(100\\%\\+4px\\)\\]{top:calc(100% + 4px)}.top-\\[calc\\(100\\%\\+8px\\)\\]{top:calc(100% + 8px)}.top-full{top:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[-7px\\]{left:-7px}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[5\\]{z-index:5}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-40{height:calc(var(--spacing) * 40)}.h-\\[30px\\]{height:30px}.h-full{height:100%}.h-px{height:1px}.max-h-24{max-height:calc(var(--spacing) * 24)}.max-h-\\[220px\\]{max-height:220px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[120px\\]{min-height:120px}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-40{width:calc(var(--spacing) * 40)}.w-\\[1px\\]{width:1px}.w-full{width:100%}.max-w-\\[65px\\]{max-width:65px}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-\\[18px\\]{min-width:18px}.min-w-\\[28px\\]{min-width:28px}.min-w-\\[70px\\]{min-width:70px}.min-w-\\[110px\\]{min-width:110px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[150px\\]{min-width:150px}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.cursor-s-resize{cursor:s-resize}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-\\[4px\\]{gap:4px}.gap-px{gap:1px}:where(.-space-x-px>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(-1px * var(--tw-space-x-reverse));margin-inline-end:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-\\[\\#ccc\\]>:not(:last-child)){border-color:#ccc}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[3px\\]{border-top-left-radius:3px;border-top-right-radius:3px}.rounded-b-\\[3px\\]{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-7{border-right-style:var(--tw-border-style);border-right-width:7px}.border-r-8{border-right-style:var(--tw-border-style);border-right-width:8px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-7{border-bottom-style:var(--tw-border-style);border-bottom-width:7px}.border-b-8{border-bottom-style:var(--tw-border-style);border-bottom-width:8px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-7{border-left-style:var(--tw-border-style);border-left-width:7px}.border-l-8{border-left-style:var(--tw-border-style);border-left-width:8px}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#2c2c2c\\]{border-color:#2c2c2c}.border-\\[\\#4a90d9\\]{border-color:#4a90d9}.border-\\[\\#ccc\\]{border-color:#ccc}.border-\\[\\#d1d5db\\]{border-color:#d1d5db}.border-\\[\\#ddd\\]{border-color:#ddd}.border-\\[\\#eee\\]{border-color:#eee}.border-black{border-color:var(--color-black)}.border-r-transparent{border-right-color:#0000}.border-b-\\[\\#ccc\\]{border-bottom-color:#ccc}.border-b-white{border-bottom-color:var(--color-white)}.border-l-transparent{border-left-color:#0000}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#888\\]{background-color:#888}.bg-\\[\\#e2e8f0\\]{background-color:#e2e8f0}.bg-\\[\\#e5e7eb\\]{background-color:#e5e7eb}.bg-\\[\\#f0f0f0\\]{background-color:#f0f0f0}.bg-\\[\\#f5f5f5\\]{background-color:#f5f5f5}.bg-\\[rgba\\(74\\,144\\,217\\,0\\.4\\)\\]{background-color:#4a90d966}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/30{background-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.bg-white\\/30{background-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.bg-\\[linear-gradient\\(rgba\\(0\\,0\\,0\\,0\\.05\\)_1px\\,transparent_1px\\)\\,linear-gradient\\(90deg\\,rgba\\(0\\,0\\,0\\,0\\.05\\)_1px\\,transparent_1px\\)\\]{background-image:linear-gradient(#0000000d 1px,#0000 1px),linear-gradient(90deg,#0000000d 1px,#0000 1px)}.bg-\\[size\\:16px_16px\\]{background-size:16px 16px}.fill-current{fill:currentColor}.fill-none{fill:none}.stroke-black{stroke:var(--color-black)}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-\\[5px\\]{padding:5px}.p-\\[10px\\]{padding:10px}.px-0{padding-inline:0}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-\\[7px\\]{padding-inline:7px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pr-1{padding-right:var(--spacing)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:var(--spacing)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-serif{font-family:var(--font-serif)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-black{color:var(--color-black)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.not-italic{font-style:normal}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.shadow-\\[0_2px_6px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 2px 6px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_8px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[inset_0_1px_3px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow:inset 0 1px 3px var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\.is-open\\]\\:hidden:is(:where(.group):has(.is-open) *){display:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:bottom-full:before{content:var(--tw-content);bottom:100%}.before\\:left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:-translate-x-1\\/2:before{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.before\\:border-x-\\[5px\\]:before{content:var(--tw-content);border-inline-style:var(--tw-border-style);border-inline-width:5px}.before\\:border-t-0:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:0}.before\\:border-b-\\[5px\\]:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:5px}.before\\:border-solid:before{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.before\\:border-x-transparent:before{content:var(--tw-content);border-inline-color:#0000}.before\\:border-b-\\[\\#2c2c2c\\]:before{content:var(--tw-content);border-bottom-color:#2c2c2c}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:bottom-full:after{content:var(--tw-content);bottom:100%}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.after\\:translate-y-\\[1px\\]:after{content:var(--tw-content);--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.after\\:border-x-\\[4px\\]:after{content:var(--tw-content);border-inline-style:var(--tw-border-style);border-inline-width:4px}.after\\:border-t-0:after{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:0}.after\\:border-b-\\[4px\\]:after{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:4px}.after\\:border-solid:after{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.after\\:border-x-transparent:after{content:var(--tw-content);border-inline-color:#0000}.after\\:border-b-\\[\\#1e1e1e\\]:after{content:var(--tw-content);border-bottom-color:#1e1e1e}.last\\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\\:pr-0:last-child{padding-right:0}@media (hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-\\[\\#999\\]:hover{border-color:#999}.hover\\:border-\\[\\#aaa\\]:hover{border-color:#aaa}.hover\\:border-black:hover{border-color:var(--color-black)}.hover\\:bg-\\[\\#e6e6e6\\]:hover{background-color:#e6e6e6}.hover\\:bg-\\[\\#f0f0f0\\]:hover{background-color:#f0f0f0}.hover\\:bg-\\[\\#f5f5f5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#f9f9f9\\]:hover{background-color:#f9f9f9}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-px:active{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:bg-\\[\\#d0d0d0\\]:active{background-color:#d0d0d0}.active\\:bg-\\[\\#e8e8e8\\]:active{background-color:#e8e8e8}.rtl\\:right-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){right:0}.rtl\\:left-1\\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){left:50%}.rtl\\:left-auto:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){left:auto}.rtl\\:-translate-x-1\\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:where(.rtl\\:divide-x-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)>:not(:last-child)){--tw-divide-x-reverse:1}.\\[\\&_blockquote\\]\\:my-2 blockquote{margin-block:calc(var(--spacing) * 2)}.\\[\\&_blockquote\\]\\:border-l-4 blockquote{border-left-style:var(--tw-border-style);border-left-width:4px}.\\[\\&_blockquote\\]\\:border-\\[\\#ccc\\] blockquote{border-color:#ccc}.\\[\\&_blockquote\\]\\:pl-4 blockquote{padding-left:calc(var(--spacing) * 4)}.\\[\\&_blockquote\\]\\:italic blockquote{font-style:italic}.\\[\\&_h1\\]\\:text-2xl h1{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.\\[\\&_h1\\]\\:font-bold h1{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h2\\]\\:text-xl h2{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.\\[\\&_h2\\]\\:font-bold h2{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h3\\]\\:text-lg h3{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\\[\\&_h3\\]\\:font-bold h3{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_pre\\]\\:rounded pre{border-radius:.25rem}.\\[\\&_pre\\]\\:bg-\\[\\#f4f4f4\\] pre{background-color:#f4f4f4}.\\[\\&_pre\\]\\:p-2 pre{padding:calc(var(--spacing) * 2)}.\\[\\&\\.is-active\\]\\:bg-\\[\\#e5e5e5\\].is-active{background-color:#e5e5e5}.\\[\\&\\.is-open\\]\\:block.is-open{display:block}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-100:oklch(96.7% .003 264.542);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-\\[1px\\]{top:1px}.top-\\[calc\\(100\\%\\+4px\\)\\]{top:calc(100% + 4px)}.top-\\[calc\\(100\\%\\+8px\\)\\]{top:calc(100% + 8px)}.top-full{top:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[-7px\\]{left:-7px}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[5\\]{z-index:5}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-40{height:calc(var(--spacing) * 40)}.h-\\[30px\\]{height:30px}.h-full{height:100%}.h-px{height:1px}.max-h-24{max-height:calc(var(--spacing) * 24)}.max-h-\\[220px\\]{max-height:220px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[120px\\]{min-height:120px}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-40{width:calc(var(--spacing) * 40)}.w-\\[1px\\]{width:1px}.w-\\[70px\\]{width:70px}.w-full{width:100%}.max-w-\\[50px\\]{max-width:50px}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-\\[18px\\]{min-width:18px}.min-w-\\[28px\\]{min-width:28px}.min-w-\\[110px\\]{min-width:110px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[150px\\]{min-width:150px}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.cursor-s-resize{cursor:s-resize}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-\\[4px\\]{gap:4px}.gap-px{gap:1px}:where(.-space-x-px>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(-1px * var(--tw-space-x-reverse));margin-inline-end:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-\\[\\#ccc\\]>:not(:last-child)){border-color:#ccc}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[3px\\]{border-top-left-radius:3px;border-top-right-radius:3px}.rounded-b-\\[3px\\]{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-7{border-right-style:var(--tw-border-style);border-right-width:7px}.border-r-8{border-right-style:var(--tw-border-style);border-right-width:8px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-7{border-bottom-style:var(--tw-border-style);border-bottom-width:7px}.border-b-8{border-bottom-style:var(--tw-border-style);border-bottom-width:8px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-7{border-left-style:var(--tw-border-style);border-left-width:7px}.border-l-8{border-left-style:var(--tw-border-style);border-left-width:8px}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#2c2c2c\\]{border-color:#2c2c2c}.border-\\[\\#4a90d9\\]{border-color:#4a90d9}.border-\\[\\#ccc\\]{border-color:#ccc}.border-\\[\\#d1d5db\\]{border-color:#d1d5db}.border-\\[\\#ddd\\]{border-color:#ddd}.border-\\[\\#eee\\]{border-color:#eee}.border-black{border-color:var(--color-black)}.border-r-transparent{border-right-color:#0000}.border-b-\\[\\#ccc\\]{border-bottom-color:#ccc}.border-b-white{border-bottom-color:var(--color-white)}.border-l-transparent{border-left-color:#0000}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#888\\]{background-color:#888}.bg-\\[\\#e2e8f0\\]{background-color:#e2e8f0}.bg-\\[\\#e5e7eb\\]{background-color:#e5e7eb}.bg-\\[\\#f0f0f0\\]{background-color:#f0f0f0}.bg-\\[\\#f5f5f5\\]{background-color:#f5f5f5}.bg-\\[rgba\\(74\\,144\\,217\\,0\\.4\\)\\]{background-color:#4a90d966}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/30{background-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.bg-white\\/30{background-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.bg-\\[linear-gradient\\(rgba\\(0\\,0\\,0\\,0\\.05\\)_1px\\,transparent_1px\\)\\,linear-gradient\\(90deg\\,rgba\\(0\\,0\\,0\\,0\\.05\\)_1px\\,transparent_1px\\)\\]{background-image:linear-gradient(#0000000d 1px,#0000 1px),linear-gradient(90deg,#0000000d 1px,#0000 1px)}.bg-\\[size\\:16px_16px\\]{background-size:16px 16px}.fill-current{fill:currentColor}.fill-none{fill:none}.stroke-black{stroke:var(--color-black)}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-\\[5px\\]{padding:5px}.p-\\[10px\\]{padding:10px}.px-0{padding-inline:0}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-\\[7px\\]{padding-inline:7px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pr-1{padding-right:var(--spacing)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:var(--spacing)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-serif{font-family:var(--font-serif)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-black{color:var(--color-black)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.not-italic{font-style:normal}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.shadow-\\[0_2px_6px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 2px 6px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_8px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[inset_0_1px_3px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow:inset 0 1px 3px var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\.is-open\\]\\:hidden:is(:where(.group):has(.is-open) *){display:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:bottom-full:before{content:var(--tw-content);bottom:100%}.before\\:left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:-translate-x-1\\/2:before{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.before\\:border-x-\\[5px\\]:before{content:var(--tw-content);border-inline-style:var(--tw-border-style);border-inline-width:5px}.before\\:border-t-0:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:0}.before\\:border-b-\\[5px\\]:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:5px}.before\\:border-solid:before{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.before\\:border-x-transparent:before{content:var(--tw-content);border-inline-color:#0000}.before\\:border-b-\\[\\#2c2c2c\\]:before{content:var(--tw-content);border-bottom-color:#2c2c2c}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:bottom-full:after{content:var(--tw-content);bottom:100%}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.after\\:translate-y-\\[1px\\]:after{content:var(--tw-content);--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.after\\:border-x-\\[4px\\]:after{content:var(--tw-content);border-inline-style:var(--tw-border-style);border-inline-width:4px}.after\\:border-t-0:after{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:0}.after\\:border-b-\\[4px\\]:after{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:4px}.after\\:border-solid:after{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.after\\:border-x-transparent:after{content:var(--tw-content);border-inline-color:#0000}.after\\:border-b-\\[\\#1e1e1e\\]:after{content:var(--tw-content);border-bottom-color:#1e1e1e}.last\\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\\:pr-0:last-child{padding-right:0}@media (hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-\\[\\#999\\]:hover{border-color:#999}.hover\\:border-\\[\\#aaa\\]:hover{border-color:#aaa}.hover\\:border-black:hover{border-color:var(--color-black)}.hover\\:bg-\\[\\#e6e6e6\\]:hover{background-color:#e6e6e6}.hover\\:bg-\\[\\#f0f0f0\\]:hover{background-color:#f0f0f0}.hover\\:bg-\\[\\#f5f5f5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#f9f9f9\\]:hover{background-color:#f9f9f9}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-px:active{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:bg-\\[\\#d0d0d0\\]:active{background-color:#d0d0d0}.active\\:bg-\\[\\#e8e8e8\\]:active{background-color:#e8e8e8}.rtl\\:right-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){right:0}.rtl\\:left-1\\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){left:50%}.rtl\\:left-auto:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){left:auto}.rtl\\:-translate-x-1\\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:where(.rtl\\:divide-x-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)>:not(:last-child)){--tw-divide-x-reverse:1}.\\[\\&_blockquote\\]\\:my-2 blockquote{margin-block:calc(var(--spacing) * 2)}.\\[\\&_blockquote\\]\\:border-l-4 blockquote{border-left-style:var(--tw-border-style);border-left-width:4px}.\\[\\&_blockquote\\]\\:border-\\[\\#ccc\\] blockquote{border-color:#ccc}.\\[\\&_blockquote\\]\\:pl-4 blockquote{padding-left:calc(var(--spacing) * 4)}.\\[\\&_blockquote\\]\\:italic blockquote{font-style:italic}.\\[\\&_h1\\]\\:text-2xl h1{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.\\[\\&_h1\\]\\:font-bold h1{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h2\\]\\:text-xl h2{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.\\[\\&_h2\\]\\:font-bold h2{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h3\\]\\:text-lg h3{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\\[\\&_h3\\]\\:font-bold h3{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_pre\\]\\:rounded pre{border-radius:.25rem}.\\[\\&_pre\\]\\:bg-\\[\\#f4f4f4\\] pre{background-color:#f4f4f4}.\\[\\&_pre\\]\\:p-2 pre{padding:calc(var(--spacing) * 2)}.\\[\\&\\.is-active\\]\\:bg-\\[\\#e5e5e5\\].is-active{background-color:#e5e5e5}.\\[\\&\\.is-open\\]\\:block.is-open{display:block}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
4
4
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
@@ -753,18 +753,21 @@ function J() {
|
|
|
753
753
|
}
|
|
754
754
|
//#endregion
|
|
755
755
|
//#region src/components/shared/toolbar/FontName/Hooks/fontNameHandler.jsx
|
|
756
|
-
|
|
756
|
+
function We(e, t) {
|
|
757
|
+
let n = document.createElement("span");
|
|
758
|
+
n.style.fontFamily = t;
|
|
759
|
+
try {
|
|
760
|
+
return n.appendChild(e.extractContents()), e.insertNode(n), n;
|
|
761
|
+
} catch {
|
|
762
|
+
return null;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
var Ge = (e, t, n) => {
|
|
757
766
|
let r = n || "Arial";
|
|
758
767
|
if (!e || !t) return;
|
|
759
768
|
if (!e.collapsed) {
|
|
760
|
-
let n =
|
|
761
|
-
n
|
|
762
|
-
try {
|
|
763
|
-
n.appendChild(e.extractContents()), e.insertNode(n);
|
|
764
|
-
} catch {
|
|
765
|
-
document.execCommand("fontName", !1, r);
|
|
766
|
-
return;
|
|
767
|
-
}
|
|
769
|
+
let n = We(e, r);
|
|
770
|
+
if (!n) return;
|
|
768
771
|
let i = document.createRange();
|
|
769
772
|
i.selectNodeContents(n), t.removeAllRanges(), t.addRange(i);
|
|
770
773
|
return;
|
|
@@ -775,7 +778,7 @@ var We = (e, t, n) => {
|
|
|
775
778
|
i.appendChild(a), e.insertNode(i);
|
|
776
779
|
let o = document.createRange();
|
|
777
780
|
o.setStart(i.firstChild, 1), o.collapse(!0), t.removeAllRanges(), t.addRange(o);
|
|
778
|
-
},
|
|
781
|
+
}, Ke = (e) => {
|
|
779
782
|
let t = window.getSelection();
|
|
780
783
|
if (!t || t.rangeCount === 0) return null;
|
|
781
784
|
let n = t.anchorNode;
|
|
@@ -787,12 +790,11 @@ var We = (e, t, n) => {
|
|
|
787
790
|
}
|
|
788
791
|
n = n.parentNode;
|
|
789
792
|
}
|
|
790
|
-
|
|
791
|
-
return r ? r.split(",")[0].replace(/['"]/g, "").trim() : null;
|
|
793
|
+
return null;
|
|
792
794
|
};
|
|
793
795
|
//#endregion
|
|
794
796
|
//#region src/components/shared/toolbar/FontName/Hooks/fontNameLogic.jsx
|
|
795
|
-
function
|
|
797
|
+
function qe(e) {
|
|
796
798
|
let [t, n] = G("Arial"), r = q("Arial"), i = q(null), a = () => {
|
|
797
799
|
let t = window.getSelection();
|
|
798
800
|
if (t && t.rangeCount > 0) {
|
|
@@ -802,7 +804,7 @@ function Ke(e) {
|
|
|
802
804
|
}, o = () => {
|
|
803
805
|
let t = e?.current;
|
|
804
806
|
if (!t) return;
|
|
805
|
-
let i =
|
|
807
|
+
let i = Ke(t);
|
|
806
808
|
i && (n(i), r.current = i);
|
|
807
809
|
};
|
|
808
810
|
return K(() => {
|
|
@@ -842,13 +844,13 @@ function Ke(e) {
|
|
|
842
844
|
let e = document.createRange();
|
|
843
845
|
e.selectNodeContents(s), e.collapse(!1), c.removeAllRanges(), c.addRange(e), l = e;
|
|
844
846
|
}
|
|
845
|
-
|
|
847
|
+
Ge(l, c, o), a();
|
|
846
848
|
}
|
|
847
849
|
};
|
|
848
850
|
}
|
|
849
851
|
//#endregion
|
|
850
852
|
//#region src/components/shared/toolbar/Hooks/dropdown.js
|
|
851
|
-
function
|
|
853
|
+
function Je(e, t) {
|
|
852
854
|
function n() {
|
|
853
855
|
t.classList.remove("is-open"), e.classList.remove("is-active"), document.removeEventListener("click", r);
|
|
854
856
|
}
|
|
@@ -870,7 +872,7 @@ function qe(e, t) {
|
|
|
870
872
|
}
|
|
871
873
|
//#endregion
|
|
872
874
|
//#region src/components/shared/toolbar/FontName/Components/FontNameToolbar.jsx
|
|
873
|
-
var
|
|
875
|
+
var Ye = [
|
|
874
876
|
"Arial",
|
|
875
877
|
"Arial Black",
|
|
876
878
|
"Comic Sans MS",
|
|
@@ -882,29 +884,29 @@ var Je = [
|
|
|
882
884
|
"Verdana",
|
|
883
885
|
"Nunito Sans",
|
|
884
886
|
"Segoe UI"
|
|
885
|
-
],
|
|
886
|
-
function
|
|
887
|
+
], Xe = 32;
|
|
888
|
+
function Ze({ currentFont: e, applyFont: t }) {
|
|
887
889
|
let n = q(null), r = q(null);
|
|
888
890
|
K(() => {
|
|
889
|
-
if (n.current && r.current) return
|
|
891
|
+
if (n.current && r.current) return Je(n.current, r.current);
|
|
890
892
|
}, []);
|
|
891
893
|
let i = (e) => {
|
|
892
894
|
t(e), r.current && r.current.classList.remove("is-open"), n.current && n.current.classList.remove("is-active");
|
|
893
895
|
}, a = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]";
|
|
894
896
|
return /* @__PURE__ */ R("div", {
|
|
895
|
-
className: "forge-toolbar-group forge-toolbar-fontname relative flex items-center",
|
|
897
|
+
className: "forge-toolbar-group forge-toolbar-fontname relative flex shrink-0 items-center",
|
|
896
898
|
children: [/* @__PURE__ */ R("div", {
|
|
897
899
|
className: "forge-color-button-group flex h-[30px] items-center overflow-visible rounded border border-[#ccc] bg-white hover:border-[#aaa] hover:bg-[#f9f9f9]",
|
|
898
900
|
children: [/* @__PURE__ */ R("button", {
|
|
899
901
|
type: "button",
|
|
900
|
-
className: "forge-fontname-main group relative flex h-full items-center justify-center
|
|
902
|
+
className: "forge-fontname-main group relative flex h-full w-[70px] shrink-0 items-center justify-center cursor-pointer border-none bg-transparent px-2 hover:bg-black/5",
|
|
901
903
|
onMouseDown: (e) => e.preventDefault(),
|
|
902
904
|
onClick: () => {
|
|
903
905
|
n.current && n.current.click();
|
|
904
906
|
},
|
|
905
907
|
"aria-label": "Current font",
|
|
906
908
|
children: [/* @__PURE__ */ R("span", {
|
|
907
|
-
className: "forge-current-fontname max-w-[
|
|
909
|
+
className: "forge-current-fontname inline-block max-w-[50px] truncate text-xs text-[#333]",
|
|
908
910
|
style: { fontFamily: e },
|
|
909
911
|
children: e
|
|
910
912
|
}), /* @__PURE__ */ R("span", {
|
|
@@ -915,7 +917,7 @@ function Xe({ currentFont: e, applyFont: t }) {
|
|
|
915
917
|
}), /* @__PURE__ */ R("button", {
|
|
916
918
|
ref: n,
|
|
917
919
|
type: "button",
|
|
918
|
-
className: "forge-fontname-dropdown-btn group relative flex h-full items-center justify-center min-w-[18px] cursor-pointer border-l border-[#ccc] bg-transparent px-1 hover:bg-black/5",
|
|
920
|
+
className: "forge-fontname-dropdown-btn group relative flex h-full shrink-0 items-center justify-center min-w-[18px] cursor-pointer border-l border-[#ccc] bg-transparent px-1 hover:bg-black/5",
|
|
919
921
|
onMouseDown: (e) => e.preventDefault(),
|
|
920
922
|
"aria-label": "More fonts",
|
|
921
923
|
children: [/* @__PURE__ */ R(() => /* @__PURE__ */ R("svg", {
|
|
@@ -933,12 +935,12 @@ function Xe({ currentFont: e, applyFont: t }) {
|
|
|
933
935
|
ref: r,
|
|
934
936
|
className: "forge-toolbar-dropdown forge-dropdown-fontname absolute left-0 top-full z-20 hidden mt-1 min-w-[150px] overflow-y-auto rounded border border-[#ccc] bg-white p-1 shadow-md rtl:left-auto rtl:right-0 [&.is-open]:block",
|
|
935
937
|
style: { maxHeight: "128px" },
|
|
936
|
-
children:
|
|
938
|
+
children: Ye.map((e) => /* @__PURE__ */ R("button", {
|
|
937
939
|
type: "button",
|
|
938
940
|
className: "forge-dropdown-item flex w-full cursor-pointer items-center whitespace-nowrap rounded-sm px-2 text-left text-xs text-[#333] hover:bg-[#f0f0f0]",
|
|
939
941
|
style: {
|
|
940
942
|
fontFamily: e,
|
|
941
|
-
height: `${
|
|
943
|
+
height: `${Xe}px`
|
|
942
944
|
},
|
|
943
945
|
onMouseDown: (e) => e.preventDefault(),
|
|
944
946
|
onClick: () => i(e),
|
|
@@ -949,16 +951,16 @@ function Xe({ currentFont: e, applyFont: t }) {
|
|
|
949
951
|
}
|
|
950
952
|
//#endregion
|
|
951
953
|
//#region src/components/shared/toolbar/FontName/Components/index.jsx
|
|
952
|
-
function
|
|
953
|
-
let { currentFont: t, applyFont: n } =
|
|
954
|
-
return /* @__PURE__ */ R(
|
|
954
|
+
function Qe({ editorRef: e }) {
|
|
955
|
+
let { currentFont: t, applyFont: n } = qe(e);
|
|
956
|
+
return /* @__PURE__ */ R(Ze, {
|
|
955
957
|
currentFont: t,
|
|
956
958
|
applyFont: n
|
|
957
959
|
});
|
|
958
960
|
}
|
|
959
961
|
//#endregion
|
|
960
962
|
//#region src/components/shared/toolbar/Color/Components/colorPalette.jsx
|
|
961
|
-
var
|
|
963
|
+
var $e = [
|
|
962
964
|
[
|
|
963
965
|
"#000000",
|
|
964
966
|
"#424242",
|
|
@@ -1040,10 +1042,10 @@ var Qe = [
|
|
|
1040
1042
|
"#4A1031"
|
|
1041
1043
|
]
|
|
1042
1044
|
];
|
|
1043
|
-
function
|
|
1045
|
+
function Y({ event: e, onApply: t, currentColor: n }) {
|
|
1044
1046
|
return /* @__PURE__ */ R("div", {
|
|
1045
1047
|
className: "forge-color-palette flex flex-col gap-1",
|
|
1046
|
-
children:
|
|
1048
|
+
children: $e.map((r, i) => /* @__PURE__ */ R("div", {
|
|
1047
1049
|
className: "forge-color-row flex gap-1 justify-between",
|
|
1048
1050
|
children: r.map((r) => {
|
|
1049
1051
|
let i = n?.toLowerCase() === r.toLowerCase();
|
|
@@ -1063,12 +1065,12 @@ function $e({ event: e, onApply: t, currentColor: n }) {
|
|
|
1063
1065
|
}
|
|
1064
1066
|
//#endregion
|
|
1065
1067
|
//#region src/components/shared/toolbar/Color/Components/ColorToolbar.jsx
|
|
1066
|
-
function
|
|
1068
|
+
function et({ logic: e }) {
|
|
1067
1069
|
let { applyColor: t, applyRecentColor: n, resetColor: r, recentForeColor: i, recentBackColor: a } = e, o = q(null), s = q(null), c = q(null), l = q(null);
|
|
1068
1070
|
K(() => {
|
|
1069
|
-
if (o.current && s.current) return
|
|
1071
|
+
if (o.current && s.current) return Je(o.current, s.current);
|
|
1070
1072
|
}, []), K(() => {
|
|
1071
|
-
if (c.current && l.current) return
|
|
1073
|
+
if (c.current && l.current) return Je(c.current, l.current);
|
|
1072
1074
|
}, []);
|
|
1073
1075
|
let u = (e, n) => {
|
|
1074
1076
|
t(e, n), s.current && s.current.classList.remove("is-open"), o.current && o.current.classList.remove("is-active");
|
|
@@ -1137,7 +1139,7 @@ function Y({ logic: e }) {
|
|
|
1137
1139
|
onClick: f,
|
|
1138
1140
|
children: "Reset"
|
|
1139
1141
|
})]
|
|
1140
|
-
}), /* @__PURE__ */ R(
|
|
1142
|
+
}), /* @__PURE__ */ R(Y, {
|
|
1141
1143
|
event: "foreColor",
|
|
1142
1144
|
onApply: u
|
|
1143
1145
|
})]
|
|
@@ -1194,7 +1196,7 @@ function Y({ logic: e }) {
|
|
|
1194
1196
|
onClick: p,
|
|
1195
1197
|
children: "White"
|
|
1196
1198
|
})]
|
|
1197
|
-
}), /* @__PURE__ */ R(
|
|
1199
|
+
}), /* @__PURE__ */ R(Y, {
|
|
1198
1200
|
event: "backColor",
|
|
1199
1201
|
onApply: d
|
|
1200
1202
|
})]
|
|
@@ -1205,23 +1207,23 @@ function Y({ logic: e }) {
|
|
|
1205
1207
|
}
|
|
1206
1208
|
//#endregion
|
|
1207
1209
|
//#region src/components/shared/toolbar/Color/Hooks/colorUtils.jsx
|
|
1208
|
-
function
|
|
1210
|
+
function tt(e) {
|
|
1209
1211
|
let t = document.createElement("span");
|
|
1210
1212
|
t.style.color = e, document.body.appendChild(t);
|
|
1211
1213
|
let n = window.getComputedStyle(t).color;
|
|
1212
1214
|
return document.body.removeChild(t), n;
|
|
1213
1215
|
}
|
|
1214
|
-
function
|
|
1216
|
+
function nt(e, t) {
|
|
1215
1217
|
let n = e;
|
|
1216
1218
|
for (; n && n !== document.body;) {
|
|
1217
|
-
if (n.nodeType === Node.ELEMENT_NODE && n.tagName === "SPAN" && n.style.color &&
|
|
1219
|
+
if (n.nodeType === Node.ELEMENT_NODE && n.tagName === "SPAN" && n.style.color && tt(n.style.color) === t) return n;
|
|
1218
1220
|
n = n.parentElement;
|
|
1219
1221
|
}
|
|
1220
1222
|
return null;
|
|
1221
1223
|
}
|
|
1222
1224
|
//#endregion
|
|
1223
1225
|
//#region src/components/shared/toolbar/Color/Hooks/usePenMode.jsx
|
|
1224
|
-
function
|
|
1226
|
+
function rt(e, t) {
|
|
1225
1227
|
K(() => {
|
|
1226
1228
|
function n(n) {
|
|
1227
1229
|
if (n.inputType !== "insertText" || !n.data || !e.current) return;
|
|
@@ -1231,9 +1233,9 @@ function nt(e, t) {
|
|
|
1231
1233
|
if (!i || !i.rangeCount) return;
|
|
1232
1234
|
let a = i.getRangeAt(0);
|
|
1233
1235
|
if (!a.collapsed) return;
|
|
1234
|
-
let o =
|
|
1236
|
+
let o = tt(e.current), s = a.startContainer;
|
|
1235
1237
|
s.nodeType === Node.TEXT_NODE && (s = s.parentElement);
|
|
1236
|
-
let c =
|
|
1238
|
+
let c = nt(s, o);
|
|
1237
1239
|
if (n.preventDefault(), c) {
|
|
1238
1240
|
let e = document.createTextNode(n.data);
|
|
1239
1241
|
a.insertNode(e), a.setStartAfter(e), a.collapse(!0), i.removeAllRanges(), i.addRange(a);
|
|
@@ -1249,7 +1251,7 @@ function nt(e, t) {
|
|
|
1249
1251
|
}
|
|
1250
1252
|
//#endregion
|
|
1251
1253
|
//#region src/components/shared/toolbar/Color/Hooks/foreColorHandler.jsx
|
|
1252
|
-
var
|
|
1254
|
+
var it = (e, t, n) => {
|
|
1253
1255
|
let r = n || "#000000";
|
|
1254
1256
|
if (!e) return;
|
|
1255
1257
|
if (!e.collapsed) {
|
|
@@ -1266,12 +1268,12 @@ var rt = (e, t, n) => {
|
|
|
1266
1268
|
};
|
|
1267
1269
|
//#endregion
|
|
1268
1270
|
//#region src/components/shared/toolbar/Color/Hooks/useForeColor.jsx
|
|
1269
|
-
function
|
|
1271
|
+
function at(e = "forge-editor__content") {
|
|
1270
1272
|
let [t, n] = G("#000000"), r = q(null);
|
|
1271
|
-
|
|
1273
|
+
rt(r, e);
|
|
1272
1274
|
let i = (e) => {
|
|
1273
1275
|
let t = e || "#000000", i = window.getSelection();
|
|
1274
|
-
i && i.rangeCount > 0 &&
|
|
1276
|
+
i && i.rangeCount > 0 && it(i.getRangeAt(0), i, t), r.current = t, n(t);
|
|
1275
1277
|
};
|
|
1276
1278
|
return {
|
|
1277
1279
|
recentForeColor: t,
|
|
@@ -1286,7 +1288,7 @@ function it(e = "forge-editor__content") {
|
|
|
1286
1288
|
}
|
|
1287
1289
|
//#endregion
|
|
1288
1290
|
//#region src/components/shared/toolbar/Color/Hooks/usePenModeBack.jsx
|
|
1289
|
-
function
|
|
1291
|
+
function ot(e, t) {
|
|
1290
1292
|
K(() => {
|
|
1291
1293
|
let n = (n) => {
|
|
1292
1294
|
if (!e.current || n.inputType !== "insertText" || !n.data) return;
|
|
@@ -1307,7 +1309,7 @@ function at(e, t) {
|
|
|
1307
1309
|
}
|
|
1308
1310
|
//#endregion
|
|
1309
1311
|
//#region src/components/shared/toolbar/Color/Hooks/backColorHandler.jsx
|
|
1310
|
-
var
|
|
1312
|
+
var st = (e, t, n) => {
|
|
1311
1313
|
let r = n || "#FFFFFF";
|
|
1312
1314
|
if (!e) return;
|
|
1313
1315
|
if (!e.collapsed) {
|
|
@@ -1324,12 +1326,12 @@ var ot = (e, t, n) => {
|
|
|
1324
1326
|
};
|
|
1325
1327
|
//#endregion
|
|
1326
1328
|
//#region src/components/shared/toolbar/Color/Hooks/useBackColor.jsx
|
|
1327
|
-
function
|
|
1329
|
+
function ct(e = "forge-editor__content") {
|
|
1328
1330
|
let [t, n] = G("#FFFFFF"), r = q(null);
|
|
1329
|
-
|
|
1331
|
+
ot(r, e);
|
|
1330
1332
|
let i = (e) => {
|
|
1331
1333
|
let t = e || "#FFFFFF", i = window.getSelection();
|
|
1332
|
-
i && i.rangeCount > 0 &&
|
|
1334
|
+
i && i.rangeCount > 0 && st(i.getRangeAt(0), i, t), r.current = t, n(t);
|
|
1333
1335
|
};
|
|
1334
1336
|
return {
|
|
1335
1337
|
recentBackColor: t,
|
|
@@ -1344,8 +1346,8 @@ function st(e = "forge-editor__content") {
|
|
|
1344
1346
|
}
|
|
1345
1347
|
//#endregion
|
|
1346
1348
|
//#region src/components/shared/toolbar/Color/Hooks/colorLogic.jsx
|
|
1347
|
-
function
|
|
1348
|
-
let e =
|
|
1349
|
+
function lt() {
|
|
1350
|
+
let e = at(), t = ct();
|
|
1349
1351
|
return {
|
|
1350
1352
|
applyColor: (n, r) => {
|
|
1351
1353
|
n === "foreColor" ? e.applyForeColor(r) : n === "backColor" && t.applyBackColor(r);
|
|
@@ -1362,12 +1364,12 @@ function ct() {
|
|
|
1362
1364
|
}
|
|
1363
1365
|
//#endregion
|
|
1364
1366
|
//#region src/components/shared/toolbar/Color/Components/index.jsx
|
|
1365
|
-
function
|
|
1366
|
-
return /* @__PURE__ */ R(
|
|
1367
|
+
function ut() {
|
|
1368
|
+
return /* @__PURE__ */ R(et, { logic: lt() });
|
|
1367
1369
|
}
|
|
1368
1370
|
//#endregion
|
|
1369
1371
|
//#region src/components/shared/toolbar/Paragraph/Components/ParagraphToolbar.jsx
|
|
1370
|
-
function
|
|
1372
|
+
function dt({ logic: e = {} }) {
|
|
1371
1373
|
let { saveSelectionRange: t, toggleUnorderedList: n, toggleOrderedList: r, setAlignment: i, outdent: a, indent: o } = e, [s, c] = G(!1), l = q(null);
|
|
1372
1374
|
K(() => {
|
|
1373
1375
|
let e = (e) => {
|
|
@@ -1850,16 +1852,16 @@ function ut({ logic: e = {} }) {
|
|
|
1850
1852
|
}
|
|
1851
1853
|
//#endregion
|
|
1852
1854
|
//#region src/components/shared/toolbar/Paragraph/Hooks/paragraphLogic.jsx
|
|
1853
|
-
function
|
|
1855
|
+
function ft() {
|
|
1854
1856
|
let e = window.getSelection();
|
|
1855
1857
|
return e && e.rangeCount > 0 ? e.getRangeAt(0).cloneRange() : null;
|
|
1856
1858
|
}
|
|
1857
|
-
function
|
|
1859
|
+
function pt(e) {
|
|
1858
1860
|
if (!e) return;
|
|
1859
1861
|
let t = window.getSelection();
|
|
1860
1862
|
t && (t.removeAllRanges(), t.addRange(e));
|
|
1861
1863
|
}
|
|
1862
|
-
function
|
|
1864
|
+
function X(e) {
|
|
1863
1865
|
if (!e) return;
|
|
1864
1866
|
let t = document.createRange();
|
|
1865
1867
|
t.selectNodeContents(e), t.collapse(!1);
|
|
@@ -1916,9 +1918,9 @@ function bt(e, t) {
|
|
|
1916
1918
|
}
|
|
1917
1919
|
function xt() {
|
|
1918
1920
|
let e = q(null), t = () => {
|
|
1919
|
-
e.current =
|
|
1921
|
+
e.current = ft();
|
|
1920
1922
|
}, n = (t) => {
|
|
1921
|
-
|
|
1923
|
+
pt(e.current);
|
|
1922
1924
|
let n = window.getSelection();
|
|
1923
1925
|
if (!n || !n.rangeCount) return;
|
|
1924
1926
|
let r = n.anchorNode;
|
|
@@ -1930,12 +1932,12 @@ function xt() {
|
|
|
1930
1932
|
if (n && (n.tagName === "UL" || n.tagName === "OL")) {
|
|
1931
1933
|
if (n.tagName.toLowerCase() === t) {
|
|
1932
1934
|
let e = yt(n);
|
|
1933
|
-
e &&
|
|
1935
|
+
e && X(e);
|
|
1934
1936
|
} else {
|
|
1935
1937
|
let e = bt(n, t).lastElementChild;
|
|
1936
|
-
e &&
|
|
1938
|
+
e && X(e);
|
|
1937
1939
|
}
|
|
1938
|
-
e.current =
|
|
1940
|
+
e.current = ft();
|
|
1939
1941
|
return;
|
|
1940
1942
|
}
|
|
1941
1943
|
}
|
|
@@ -1943,9 +1945,9 @@ function xt() {
|
|
|
1943
1945
|
if (a) {
|
|
1944
1946
|
if (a.getAttribute && a.getAttribute("contenteditable") === "true") {
|
|
1945
1947
|
let e = document.createElement("div");
|
|
1946
|
-
e.innerHTML = a.innerHTML, a.innerHTML = "", a.appendChild(e),
|
|
1947
|
-
} else
|
|
1948
|
-
e.current =
|
|
1948
|
+
e.innerHTML = a.innerHTML, a.innerHTML = "", a.appendChild(e), X(vt(e, t));
|
|
1949
|
+
} else X(vt(a, t));
|
|
1950
|
+
e.current = ft();
|
|
1949
1951
|
}
|
|
1950
1952
|
};
|
|
1951
1953
|
return {
|
|
@@ -1953,17 +1955,17 @@ function xt() {
|
|
|
1953
1955
|
toggleUnorderedList: () => n("ul"),
|
|
1954
1956
|
toggleOrderedList: () => n("ol"),
|
|
1955
1957
|
setAlignment: (t) => {
|
|
1956
|
-
|
|
1958
|
+
pt(e.current);
|
|
1957
1959
|
let n = window.getSelection();
|
|
1958
1960
|
if (!n || !n.rangeCount) return;
|
|
1959
1961
|
let r = n.anchorNode;
|
|
1960
1962
|
if (!r) return;
|
|
1961
1963
|
r.nodeType === 3 && (r = r.parentNode);
|
|
1962
1964
|
let i = r.closest("p, div, h1, h2, h3, h4, h5, h6, li, blockquote, pre");
|
|
1963
|
-
i && (i.style.textAlign = t), e.current =
|
|
1965
|
+
i && (i.style.textAlign = t), e.current = ft();
|
|
1964
1966
|
},
|
|
1965
1967
|
indent: () => {
|
|
1966
|
-
|
|
1968
|
+
pt(e.current);
|
|
1967
1969
|
let t = window.getSelection();
|
|
1968
1970
|
if (!t || !t.rangeCount) return;
|
|
1969
1971
|
let n = t.anchorNode;
|
|
@@ -1976,17 +1978,17 @@ function xt() {
|
|
|
1976
1978
|
let t = r.previousElementSibling;
|
|
1977
1979
|
if (!t || t.tagName !== "LI") return;
|
|
1978
1980
|
let n = t.querySelector(":scope > ul, :scope > ol");
|
|
1979
|
-
n || (n = _t(e.tagName.toLowerCase()), t.appendChild(n)), n.appendChild(r),
|
|
1981
|
+
n || (n = _t(e.tagName.toLowerCase()), t.appendChild(n)), n.appendChild(r), X(r);
|
|
1980
1982
|
} else {
|
|
1981
1983
|
let e = ht(n);
|
|
1982
1984
|
if (!e) return;
|
|
1983
1985
|
let t = parseInt(e.style.marginLeft) || 0;
|
|
1984
1986
|
e.style.marginLeft = t + 20 + "px";
|
|
1985
1987
|
}
|
|
1986
|
-
e.current =
|
|
1988
|
+
e.current = ft();
|
|
1987
1989
|
},
|
|
1988
1990
|
outdent: () => {
|
|
1989
|
-
|
|
1991
|
+
pt(e.current);
|
|
1990
1992
|
let t = window.getSelection();
|
|
1991
1993
|
if (!t || !t.rangeCount) return;
|
|
1992
1994
|
let n = t.anchorNode;
|
|
@@ -1997,12 +1999,12 @@ function xt() {
|
|
|
1997
1999
|
let e = r.parentNode;
|
|
1998
2000
|
if (!e || e.tagName !== "UL" && e.tagName !== "OL") return;
|
|
1999
2001
|
let t = e.parentNode;
|
|
2000
|
-
if (t && t.tagName === "LI") t.parentNode.insertBefore(r, t.nextSibling), e.children.length === 0 && e.remove(),
|
|
2002
|
+
if (t && t.tagName === "LI") t.parentNode.insertBefore(r, t.nextSibling), e.children.length === 0 && e.remove(), X(r);
|
|
2001
2003
|
else {
|
|
2002
2004
|
let t = document.createElement("div");
|
|
2003
2005
|
t.innerHTML = r.innerHTML;
|
|
2004
2006
|
let n = e.parentNode;
|
|
2005
|
-
e.children.length === 1 ? n.replaceChild(t, e) : (n.insertBefore(t, e.nextSibling), e.removeChild(r)),
|
|
2007
|
+
e.children.length === 1 ? n.replaceChild(t, e) : (n.insertBefore(t, e.nextSibling), e.removeChild(r)), X(t);
|
|
2006
2008
|
}
|
|
2007
2009
|
} else {
|
|
2008
2010
|
let e = ht(n);
|
|
@@ -2010,14 +2012,14 @@ function xt() {
|
|
|
2010
2012
|
let t = parseInt(e.style.marginLeft) || 0;
|
|
2011
2013
|
e.style.marginLeft = Math.max(0, t - 20) + "px";
|
|
2012
2014
|
}
|
|
2013
|
-
e.current =
|
|
2015
|
+
e.current = ft();
|
|
2014
2016
|
}
|
|
2015
2017
|
};
|
|
2016
2018
|
}
|
|
2017
2019
|
//#endregion
|
|
2018
2020
|
//#region src/components/shared/toolbar/Paragraph/Components/index.jsx
|
|
2019
2021
|
function St() {
|
|
2020
|
-
return /* @__PURE__ */ R(
|
|
2022
|
+
return /* @__PURE__ */ R(dt, { logic: xt() });
|
|
2021
2023
|
}
|
|
2022
2024
|
//#endregion
|
|
2023
2025
|
//#region src/components/shared/toolbar/Table/Components/TableToolbar.jsx
|
|
@@ -2666,35 +2668,35 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2666
2668
|
}
|
|
2667
2669
|
z(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), ve(n, "width", t.imageWidth), ve(n, "height", t.imageHeight), n.className = l.image, F(n, t, "image");
|
|
2668
2670
|
}
|
|
2669
|
-
}, ut = !1, dt = 0, ft = 0, pt = 0,
|
|
2670
|
-
e.addEventListener("mousedown",
|
|
2671
|
+
}, ut = !1, dt = 0, ft = 0, pt = 0, X = 0, mt = (e) => {
|
|
2672
|
+
e.addEventListener("mousedown", gt), document.body.addEventListener("mousemove", _t), e.addEventListener("mouseup", vt), e.addEventListener("touchstart", gt), document.body.addEventListener("touchmove", _t), e.addEventListener("touchend", vt);
|
|
2673
|
+
}, ht = (e) => {
|
|
2674
|
+
e.removeEventListener("mousedown", gt), document.body.removeEventListener("mousemove", _t), e.removeEventListener("mouseup", vt), e.removeEventListener("touchstart", gt), document.body.removeEventListener("touchmove", _t), e.removeEventListener("touchend", vt);
|
|
2671
2675
|
}, gt = (e) => {
|
|
2672
|
-
e.removeEventListener("mousedown", _t), document.body.removeEventListener("mousemove", vt), e.removeEventListener("mouseup", yt), e.removeEventListener("touchstart", _t), document.body.removeEventListener("touchmove", vt), e.removeEventListener("touchend", yt);
|
|
2673
|
-
}, _t = (e) => {
|
|
2674
2676
|
let t = E();
|
|
2675
2677
|
if (!t) return;
|
|
2676
2678
|
let n = D();
|
|
2677
2679
|
if (e.target === t || n && n.contains(e.target)) {
|
|
2678
2680
|
ut = !0;
|
|
2679
|
-
let n =
|
|
2680
|
-
dt = n.clientX, ft = n.clientY, pt = parseInt(t.style.insetInlineStart) || 0,
|
|
2681
|
+
let n = yt(e);
|
|
2682
|
+
dt = n.clientX, ft = n.clientY, pt = parseInt(t.style.insetInlineStart) || 0, X = parseInt(t.style.insetBlockStart) || 0, I(t, "swal2-dragging");
|
|
2681
2683
|
}
|
|
2682
|
-
},
|
|
2684
|
+
}, _t = (e) => {
|
|
2683
2685
|
let t = E();
|
|
2684
2686
|
if (t && ut) {
|
|
2685
|
-
let { clientX: n, clientY: r } =
|
|
2686
|
-
t.style.insetInlineStart = `${pt + (a.isRTL ? -i : i)}px`, t.style.insetBlockStart = `${
|
|
2687
|
+
let { clientX: n, clientY: r } = yt(e), i = n - dt;
|
|
2688
|
+
t.style.insetInlineStart = `${pt + (a.isRTL ? -i : i)}px`, t.style.insetBlockStart = `${X + (r - ft)}px`;
|
|
2687
2689
|
}
|
|
2688
|
-
},
|
|
2690
|
+
}, vt = () => {
|
|
2689
2691
|
let e = E();
|
|
2690
2692
|
ut = !1, L(e, "swal2-dragging");
|
|
2691
|
-
},
|
|
2693
|
+
}, yt = (e) => {
|
|
2692
2694
|
let t = e.type.startsWith("touch") ? e.touches[0] : e;
|
|
2693
2695
|
return {
|
|
2694
2696
|
clientX: t.clientX,
|
|
2695
2697
|
clientY: t.clientY
|
|
2696
2698
|
};
|
|
2697
|
-
},
|
|
2699
|
+
}, bt = (e, t) => {
|
|
2698
2700
|
let n = C(), r = E();
|
|
2699
2701
|
if (!(!n || !r)) {
|
|
2700
2702
|
if (t.toast) {
|
|
@@ -2702,12 +2704,12 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2702
2704
|
let e = M();
|
|
2703
2705
|
e && r.insertBefore(e, D());
|
|
2704
2706
|
} else ve(r, "width", t.width);
|
|
2705
|
-
ve(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), B(re()),
|
|
2707
|
+
ve(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), B(re()), xt(r, t), t.draggable && !t.toast ? (I(r, l.draggable), mt(r)) : (L(r, l.draggable), ht(r));
|
|
2706
2708
|
}
|
|
2707
|
-
},
|
|
2709
|
+
}, xt = (e, t) => {
|
|
2708
2710
|
let n = t.showClass || {};
|
|
2709
2711
|
e.className = `${l.popup} ${H(e) ? n.popup : ""}`, t.toast ? (I([document.documentElement, document.body], l["toast-shown"]), I(e, l.toast)) : I(e, l.modal), F(e, t, "popup"), typeof t.customClass == "string" && I(e, t.customClass), t.icon && I(e, l[`icon-${t.icon}`]);
|
|
2710
|
-
},
|
|
2712
|
+
}, St = (e, t) => {
|
|
2711
2713
|
let n = ne();
|
|
2712
2714
|
if (!n) return;
|
|
2713
2715
|
let { progressSteps: r, currentProgressStep: i } = t;
|
|
@@ -2716,40 +2718,40 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2716
2718
|
return;
|
|
2717
2719
|
}
|
|
2718
2720
|
z(n), n.textContent = "", i >= r.length && p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), r.forEach((e, a) => {
|
|
2719
|
-
let o =
|
|
2721
|
+
let o = Ct(e);
|
|
2720
2722
|
if (n.appendChild(o), a === i && I(o, l["active-progress-step"]), a !== r.length - 1) {
|
|
2721
|
-
let e =
|
|
2723
|
+
let e = wt(t);
|
|
2722
2724
|
n.appendChild(e);
|
|
2723
2725
|
}
|
|
2724
2726
|
});
|
|
2725
|
-
},
|
|
2727
|
+
}, Ct = (e) => {
|
|
2726
2728
|
let t = document.createElement("li");
|
|
2727
2729
|
return I(t, l["progress-step"]), N(t, e), t;
|
|
2728
|
-
},
|
|
2730
|
+
}, wt = (e) => {
|
|
2729
2731
|
let t = document.createElement("li");
|
|
2730
2732
|
return I(t, l["progress-step-line"]), e.progressStepsDistance && ve(t, "width", e.progressStepsDistance), t;
|
|
2731
|
-
},
|
|
2733
|
+
}, Tt = (e, t) => {
|
|
2732
2734
|
let n = ee();
|
|
2733
2735
|
n && (ye(n), be(n, !!(t.title || t.titleText), "block"), t.title && je(t.title, n), t.titleText && (n.innerText = t.titleText), F(n, t, "title"));
|
|
2734
|
-
},
|
|
2736
|
+
}, Et = (e, t) => {
|
|
2735
2737
|
var n;
|
|
2736
|
-
|
|
2738
|
+
bt(e, t), Be(e, t), St(e, t), nt(e, t), lt(e, t), Tt(e, t), ze(e, t), et(e, t), Pe(e, t), tt(e, t);
|
|
2737
2739
|
let r = E();
|
|
2738
2740
|
typeof t.didRender == "function" && r && t.didRender(r), (n = a.eventEmitter) == null || n.emit("didRender", r);
|
|
2739
|
-
},
|
|
2741
|
+
}, Dt = () => H(E()), Ot = () => A()?.click(), kt = () => j()?.click(), At = () => ie()?.click(), Z = Object.freeze({
|
|
2740
2742
|
cancel: "cancel",
|
|
2741
2743
|
backdrop: "backdrop",
|
|
2742
2744
|
close: "close",
|
|
2743
2745
|
esc: "esc",
|
|
2744
2746
|
timer: "timer"
|
|
2745
|
-
}),
|
|
2747
|
+
}), jt = (e) => {
|
|
2746
2748
|
if (e.keydownTarget && e.keydownHandlerAdded && e.keydownHandler) {
|
|
2747
2749
|
let t = e.keydownHandler;
|
|
2748
2750
|
e.keydownTarget.removeEventListener("keydown", t, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !1;
|
|
2749
2751
|
}
|
|
2750
|
-
},
|
|
2751
|
-
if (
|
|
2752
|
-
let r = (e) =>
|
|
2752
|
+
}, Mt = (e, t, n) => {
|
|
2753
|
+
if (jt(e), !t.toast) {
|
|
2754
|
+
let r = (e) => It(t, e, n);
|
|
2753
2755
|
e.keydownHandler = r;
|
|
2754
2756
|
let i = t.keydownListenerCapture ? window : E();
|
|
2755
2757
|
if (i) {
|
|
@@ -2758,25 +2760,25 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2758
2760
|
e.keydownTarget.addEventListener("keydown", n, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !0;
|
|
2759
2761
|
}
|
|
2760
2762
|
}
|
|
2761
|
-
},
|
|
2763
|
+
}, Nt = (e, t) => {
|
|
2762
2764
|
var n;
|
|
2763
2765
|
let r = ue();
|
|
2764
2766
|
return r.length ? (e += t, e === -2 && (e = r.length - 1), e === r.length ? e = 0 : e === -1 && (e = r.length - 1), r[e].focus(), !(S() && r[e] instanceof HTMLIFrameElement)) : ((n = E()) == null || n.focus(), !0);
|
|
2765
|
-
},
|
|
2766
|
-
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ?
|
|
2767
|
-
},
|
|
2767
|
+
}, Pt = ["ArrowRight", "ArrowDown"], Ft = ["ArrowLeft", "ArrowUp"], It = (e, t, n) => {
|
|
2768
|
+
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? Lt(t, e) : t.key === "Tab" ? Rt(t) : [...Pt, ...Ft].includes(t.key) ? zt(t.key) : t.key === "Escape" && Bt(t, e, n)));
|
|
2769
|
+
}, Lt = (e, t) => {
|
|
2768
2770
|
if (!v(t.allowEnterKey)) return;
|
|
2769
2771
|
let n = E();
|
|
2770
2772
|
if (!n || !t.input) return;
|
|
2771
2773
|
let r = he(n, t.input);
|
|
2772
2774
|
if (e.target && r && e.target instanceof HTMLElement && e.target.outerHTML === r.outerHTML) {
|
|
2773
2775
|
if (["textarea", "file"].includes(t.input)) return;
|
|
2774
|
-
|
|
2776
|
+
Ot(), e.preventDefault();
|
|
2775
2777
|
}
|
|
2776
|
-
},
|
|
2778
|
+
}, Rt = (e) => {
|
|
2777
2779
|
let t = e.target, n = ue().findIndex((e) => e === t), r = !0;
|
|
2778
|
-
r = e.shiftKey ?
|
|
2779
|
-
},
|
|
2780
|
+
r = e.shiftKey ? Nt(n, -1) : Nt(n, 1), e.stopPropagation(), r && e.preventDefault();
|
|
2781
|
+
}, zt = (e) => {
|
|
2780
2782
|
let t = oe(), n = A(), r = j(), i = ie();
|
|
2781
2783
|
if (!t || !n || !r || !i) return;
|
|
2782
2784
|
let a = [
|
|
@@ -2785,7 +2787,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2785
2787
|
i
|
|
2786
2788
|
];
|
|
2787
2789
|
if (document.activeElement instanceof HTMLElement && !a.includes(document.activeElement)) return;
|
|
2788
|
-
let o =
|
|
2790
|
+
let o = Pt.includes(e) ? "nextElementSibling" : "previousElementSibling", s = document.activeElement;
|
|
2789
2791
|
if (s) {
|
|
2790
2792
|
for (let e = 0; e < t.children.length; e++) {
|
|
2791
2793
|
if (s = s[o], !s) return;
|
|
@@ -2793,58 +2795,58 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2793
2795
|
}
|
|
2794
2796
|
s instanceof HTMLButtonElement && s.focus();
|
|
2795
2797
|
}
|
|
2796
|
-
},
|
|
2797
|
-
e.preventDefault(), v(t.allowEscapeKey) && n(
|
|
2798
|
+
}, Bt = (e, t, n) => {
|
|
2799
|
+
e.preventDefault(), v(t.allowEscapeKey) && n(Z.esc);
|
|
2798
2800
|
};
|
|
2799
|
-
var
|
|
2801
|
+
var Vt = {
|
|
2800
2802
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
2801
2803
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
2802
2804
|
};
|
|
2803
|
-
let
|
|
2805
|
+
let Ht = () => {
|
|
2804
2806
|
let e = C();
|
|
2805
2807
|
Array.from(document.body.children).forEach((t) => {
|
|
2806
2808
|
t.contains(e) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden") || ""), t.setAttribute("aria-hidden", "true"));
|
|
2807
2809
|
});
|
|
2808
|
-
},
|
|
2810
|
+
}, Ut = () => {
|
|
2809
2811
|
Array.from(document.body.children).forEach((e) => {
|
|
2810
2812
|
e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden") || ""), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
|
|
2811
2813
|
});
|
|
2812
|
-
},
|
|
2813
|
-
if (
|
|
2814
|
+
}, Wt = typeof window < "u" && !!window.GestureEvent, Gt = Wt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Kt = () => {
|
|
2815
|
+
if (Wt && !P(document.body, l.iosfix)) {
|
|
2814
2816
|
let e = document.body.scrollTop;
|
|
2815
|
-
document.body.style.top = `${e * -1}px`, I(document.body, l.iosfix),
|
|
2817
|
+
document.body.style.top = `${e * -1}px`, I(document.body, l.iosfix), qt();
|
|
2816
2818
|
}
|
|
2817
|
-
},
|
|
2819
|
+
}, qt = () => {
|
|
2818
2820
|
let e = C();
|
|
2819
2821
|
if (!e) return;
|
|
2820
2822
|
let t;
|
|
2821
2823
|
e.ontouchstart = (e) => {
|
|
2822
|
-
t =
|
|
2824
|
+
t = Jt(e);
|
|
2823
2825
|
}, e.ontouchmove = (e) => {
|
|
2824
2826
|
t && (e.preventDefault(), e.stopPropagation());
|
|
2825
2827
|
};
|
|
2826
|
-
},
|
|
2828
|
+
}, Jt = (e) => {
|
|
2827
2829
|
let t = e.target, n = C(), r = te();
|
|
2828
|
-
return !n || !r ||
|
|
2829
|
-
},
|
|
2830
|
+
return !n || !r || Yt(e) || Xt(e) ? !1 : t === n || !Se(n) && t instanceof HTMLElement && !U(t, r) && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !(Se(r) && r.contains(t));
|
|
2831
|
+
}, Yt = (e) => !!(e.touches && e.touches.length && e.touches[0].touchType === "stylus"), Xt = (e) => e.touches && e.touches.length > 1, Zt = () => {
|
|
2830
2832
|
if (P(document.body, l.iosfix)) {
|
|
2831
2833
|
let e = parseInt(document.body.style.top, 10);
|
|
2832
2834
|
L(document.body, l.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
|
|
2833
2835
|
}
|
|
2834
|
-
},
|
|
2836
|
+
}, Qt = () => {
|
|
2835
2837
|
let e = document.createElement("div");
|
|
2836
2838
|
e.className = l["scrollbar-measure"], document.body.appendChild(e);
|
|
2837
2839
|
let t = e.getBoundingClientRect().width - e.clientWidth;
|
|
2838
2840
|
return document.body.removeChild(e), t;
|
|
2839
|
-
},
|
|
2840
|
-
|
|
2841
|
-
},
|
|
2842
|
-
|
|
2841
|
+
}, $t = null, en = (e) => {
|
|
2842
|
+
$t === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && ($t = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${$t + Qt()}px`);
|
|
2843
|
+
}, tn = () => {
|
|
2844
|
+
$t !== null && (document.body.style.paddingRight = `${$t}px`, $t = null);
|
|
2843
2845
|
};
|
|
2844
|
-
function
|
|
2845
|
-
fe() ? fn(e, r) : (s(n).then(() => fn(e, r)),
|
|
2846
|
+
function nn(e, t, n, r) {
|
|
2847
|
+
fe() ? fn(e, r) : (s(n).then(() => fn(e, r)), jt(a)), Wt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), de() && (tn(), Zt(), Ut()), rn();
|
|
2846
2848
|
}
|
|
2847
|
-
function
|
|
2849
|
+
function rn() {
|
|
2848
2850
|
L([document.documentElement, document.body], [
|
|
2849
2851
|
l.shown,
|
|
2850
2852
|
l["height-auto"],
|
|
@@ -2852,9 +2854,9 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2852
2854
|
l["toast-shown"]
|
|
2853
2855
|
]);
|
|
2854
2856
|
}
|
|
2855
|
-
function
|
|
2857
|
+
function an(e) {
|
|
2856
2858
|
e = ln(e);
|
|
2857
|
-
let t =
|
|
2859
|
+
let t = Vt.swalPromiseResolve.get(this), n = on(this);
|
|
2858
2860
|
this.isAwaitingPromise ? e.isDismissed || (cn(this), t(e)) : n && t(e);
|
|
2859
2861
|
}
|
|
2860
2862
|
let on = (e) => {
|
|
@@ -2867,7 +2869,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2867
2869
|
return L(r, n.showClass.backdrop), I(r, n.hideClass.backdrop), un(e, t, n), !0;
|
|
2868
2870
|
};
|
|
2869
2871
|
function sn(e) {
|
|
2870
|
-
let t =
|
|
2872
|
+
let t = Vt.swalPromiseReject.get(this);
|
|
2871
2873
|
cn(this), t && t(e);
|
|
2872
2874
|
}
|
|
2873
2875
|
let cn = (e) => {
|
|
@@ -2883,9 +2885,9 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2883
2885
|
}, e), un = (e, t, n) => {
|
|
2884
2886
|
var r;
|
|
2885
2887
|
let i = C(), o = Ce(t);
|
|
2886
|
-
typeof n.willClose == "function" && n.willClose(t), (r = a.eventEmitter) == null || r.emit("willClose", t), o && i ? dn(e, t, i, !!n.returnFocus, n.didClose) : i &&
|
|
2888
|
+
typeof n.willClose == "function" && n.willClose(t), (r = a.eventEmitter) == null || r.emit("willClose", t), o && i ? dn(e, t, i, !!n.returnFocus, n.didClose) : i && nn(e, i, !!n.returnFocus, n.didClose);
|
|
2887
2889
|
}, dn = (e, t, n, r, i) => {
|
|
2888
|
-
a.swalCloseEventFinishedCallback =
|
|
2890
|
+
a.swalCloseEventFinishedCallback = nn.bind(null, e, n, r, i);
|
|
2889
2891
|
let o = function(e) {
|
|
2890
2892
|
if (e.target === t) {
|
|
2891
2893
|
var n;
|
|
@@ -2974,7 +2976,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
2974
2976
|
let t = J.innerParams.get(e);
|
|
2975
2977
|
e.disableButtons(), t.returnInputValueOnDeny ? kn(e, "deny") : jn(e, !1);
|
|
2976
2978
|
}, On = (e, t) => {
|
|
2977
|
-
e.disableButtons(), t(
|
|
2979
|
+
e.disableButtons(), t(Z.cancel);
|
|
2978
2980
|
}, kn = (e, t) => {
|
|
2979
2981
|
let n = J.innerParams.get(e);
|
|
2980
2982
|
if (!n.input) {
|
|
@@ -3213,7 +3215,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3213
3215
|
return;
|
|
3214
3216
|
}
|
|
3215
3217
|
let i = ir(e), a = Object.assign({}, r, i);
|
|
3216
|
-
nr(a), t && (t.dataset.swal2Theme = a.theme),
|
|
3218
|
+
nr(a), t && (t.dataset.swal2Theme = a.theme), Et(this, a), J.innerParams.set(this, a), Object.defineProperties(this, { params: {
|
|
3217
3219
|
value: Object.assign({}, this.params, e),
|
|
3218
3220
|
writable: !1,
|
|
3219
3221
|
enumerable: !0
|
|
@@ -3237,17 +3239,17 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3237
3239
|
let or = (e) => {
|
|
3238
3240
|
sr(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
|
|
3239
3241
|
}, sr = (e) => {
|
|
3240
|
-
e.isAwaitingPromise ? (cr(J, e), e.isAwaitingPromise = !0) : (cr(
|
|
3242
|
+
e.isAwaitingPromise ? (cr(J, e), e.isAwaitingPromise = !0) : (cr(Vt, e), cr(J, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
|
|
3241
3243
|
}, cr = (e, t) => {
|
|
3242
3244
|
for (let n in e) e[n].delete(t);
|
|
3243
3245
|
};
|
|
3244
3246
|
var lr = /*#__PURE__*/ Object.freeze({
|
|
3245
3247
|
__proto__: null,
|
|
3246
3248
|
_destroy: ar,
|
|
3247
|
-
close:
|
|
3248
|
-
closeModal:
|
|
3249
|
-
closePopup:
|
|
3250
|
-
closeToast:
|
|
3249
|
+
close: an,
|
|
3250
|
+
closeModal: an,
|
|
3251
|
+
closePopup: an,
|
|
3252
|
+
closeToast: an,
|
|
3251
3253
|
disableButtons: Vn,
|
|
3252
3254
|
disableInput: Un,
|
|
3253
3255
|
disableLoading: Fn,
|
|
@@ -3265,7 +3267,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3265
3267
|
e.toast ? dr(e, t, n) : (mr(t), hr(t), gr(e, t, n));
|
|
3266
3268
|
}, dr = (e, t, n) => {
|
|
3267
3269
|
t.popup.onclick = () => {
|
|
3268
|
-
e && (fr(e) || e.timer || e.input) || n(
|
|
3270
|
+
e && (fr(e) || e.timer || e.input) || n(Z.close);
|
|
3269
3271
|
};
|
|
3270
3272
|
}, fr = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton), pr = !1, mr = (e) => {
|
|
3271
3273
|
e.popup.onmousedown = () => {
|
|
@@ -3285,7 +3287,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3285
3287
|
pr = !1;
|
|
3286
3288
|
return;
|
|
3287
3289
|
}
|
|
3288
|
-
r.target === t.container && v(e.allowOutsideClick) && n(
|
|
3290
|
+
r.target === t.container && v(e.allowOutsideClick) && n(Z.backdrop);
|
|
3289
3291
|
};
|
|
3290
3292
|
}, _r = (e) => typeof e == "object" && !!e && "jquery" in e, vr = (e) => e instanceof Element || _r(e), yr = (e) => {
|
|
3291
3293
|
let t = {};
|
|
@@ -3379,9 +3381,9 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3379
3381
|
__proto__: null,
|
|
3380
3382
|
argsToParams: yr,
|
|
3381
3383
|
bindClickHandler: Ar,
|
|
3382
|
-
clickCancel:
|
|
3383
|
-
clickConfirm:
|
|
3384
|
-
clickDeny:
|
|
3384
|
+
clickCancel: At,
|
|
3385
|
+
clickConfirm: Ot,
|
|
3386
|
+
clickDeny: kt,
|
|
3385
3387
|
enableLoading: pn,
|
|
3386
3388
|
fire: br,
|
|
3387
3389
|
getActions: oe,
|
|
@@ -3410,7 +3412,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3410
3412
|
isTimerRunning: Dr,
|
|
3411
3413
|
isUpdatableParameter: Zn,
|
|
3412
3414
|
isValidParameter: Xn,
|
|
3413
|
-
isVisible:
|
|
3415
|
+
isVisible: Dt,
|
|
3414
3416
|
mixin: xr,
|
|
3415
3417
|
off: (e, t) => {
|
|
3416
3418
|
if (a.eventEmitter) {
|
|
@@ -3566,7 +3568,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3566
3568
|
let o = window.getComputedStyle(document.body).overflowY;
|
|
3567
3569
|
if (Xr(r, i, e), setTimeout(() => {
|
|
3568
3570
|
Jr(r, i);
|
|
3569
|
-
}, 10), de() && (Yr(r, e.scrollbarPadding !== void 0 && e.scrollbarPadding, o),
|
|
3571
|
+
}, 10), de() && (Yr(r, e.scrollbarPadding !== void 0 && e.scrollbarPadding, o), Ht()), Gt && e.backdrop === !1 && i.scrollHeight > r.clientHeight && (r.style.pointerEvents = "auto"), !fe() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
|
|
3570
3572
|
let t = e.didOpen;
|
|
3571
3573
|
setTimeout(() => t(i));
|
|
3572
3574
|
}
|
|
@@ -3579,7 +3581,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3579
3581
|
}, Jr = (e, t) => {
|
|
3580
3582
|
Ce(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", qr), t.addEventListener("transitionend", qr)) : e.style.overflowY = "auto";
|
|
3581
3583
|
}, Yr = (e, t, n) => {
|
|
3582
|
-
|
|
3584
|
+
Kt(), t && n !== "hidden" && en(n), setTimeout(() => {
|
|
3583
3585
|
e.scrollTop = 0;
|
|
3584
3586
|
});
|
|
3585
3587
|
}, Xr = (e, t, n) => {
|
|
@@ -3617,14 +3619,14 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3617
3619
|
}
|
|
3618
3620
|
_main(e, t = {}) {
|
|
3619
3621
|
if (nr(Object.assign({}, t, e)), a.currentInstance) {
|
|
3620
|
-
let e =
|
|
3621
|
-
a.currentInstance._destroy(), t || e({ isDismissed: !0 }), de() &&
|
|
3622
|
+
let e = Vt.swalPromiseResolve.get(a.currentInstance), { isAwaitingPromise: t } = a.currentInstance;
|
|
3623
|
+
a.currentInstance._destroy(), t || e({ isDismissed: !0 }), de() && Ut();
|
|
3622
3624
|
}
|
|
3623
3625
|
a.currentInstance = Q;
|
|
3624
3626
|
let n = ri(e, t);
|
|
3625
3627
|
ei(n), Object.freeze(n), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
|
|
3626
3628
|
let r = ii(Q);
|
|
3627
|
-
return
|
|
3629
|
+
return Et(Q, n), J.innerParams.set(Q, n), ni(Q, r, n);
|
|
3628
3630
|
}
|
|
3629
3631
|
then(e) {
|
|
3630
3632
|
return n(ti, this).then(e);
|
|
@@ -3642,15 +3644,15 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3642
3644
|
isDenied: !1
|
|
3643
3645
|
});
|
|
3644
3646
|
};
|
|
3645
|
-
|
|
3647
|
+
Vt.swalPromiseResolve.set(e, r), Vt.swalPromiseReject.set(e, i), t.confirmButton.onclick = () => {
|
|
3646
3648
|
En(e);
|
|
3647
3649
|
}, t.denyButton.onclick = () => {
|
|
3648
3650
|
Dn(e);
|
|
3649
3651
|
}, t.cancelButton.onclick = () => {
|
|
3650
3652
|
On(e, o);
|
|
3651
3653
|
}, t.closeButton.onclick = () => {
|
|
3652
|
-
o(
|
|
3653
|
-
}, ur(n, t, o),
|
|
3654
|
+
o(Z.close);
|
|
3655
|
+
}, ur(n, t, o), Mt(a, n, o), hn(e, n), Kr(n), ai(a, n, o), oi(t, n), setTimeout(() => {
|
|
3654
3656
|
t.container.scrollTop = 0;
|
|
3655
3657
|
});
|
|
3656
3658
|
}), ri = (e, t) => {
|
|
@@ -3683,18 +3685,18 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3683
3685
|
_("allowEnterKey", "preConfirm: () => false"), e.popup.focus();
|
|
3684
3686
|
return;
|
|
3685
3687
|
}
|
|
3686
|
-
si(e) || ci(e, t) ||
|
|
3688
|
+
si(e) || ci(e, t) || Nt(-1, 1);
|
|
3687
3689
|
}
|
|
3688
3690
|
}, si = (e) => {
|
|
3689
3691
|
let t = Array.from(e.popup.querySelectorAll("[autofocus]"));
|
|
3690
3692
|
for (let e of t) if (e instanceof HTMLElement && H(e)) return e.focus(), !0;
|
|
3691
3693
|
return !1;
|
|
3692
3694
|
}, ci = (e, t) => t.focusDeny && H(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && H(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && H(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1;
|
|
3693
|
-
$.prototype.disableButtons = Vn, $.prototype.enableButtons = Bn, $.prototype.getInput = Ln, $.prototype.disableInput = Un, $.prototype.enableInput = Hn, $.prototype.hideLoading = Fn, $.prototype.disableLoading = Fn, $.prototype.showValidationMessage = Wn, $.prototype.resetValidationMessage = Gn, $.prototype.close =
|
|
3695
|
+
$.prototype.disableButtons = Vn, $.prototype.enableButtons = Bn, $.prototype.getInput = Ln, $.prototype.disableInput = Un, $.prototype.enableInput = Hn, $.prototype.hideLoading = Fn, $.prototype.disableLoading = Fn, $.prototype.showValidationMessage = Wn, $.prototype.resetValidationMessage = Gn, $.prototype.close = an, $.prototype.closePopup = an, $.prototype.closeModal = an, $.prototype.closeToast = an, $.prototype.rejectPromise = sn, $.prototype.update = rr, $.prototype._destroy = ar, Object.assign($, Nr), Object.keys(lr).forEach((e) => {
|
|
3694
3696
|
$[e] = function(...t) {
|
|
3695
3697
|
if (Q && Q[e]) return Q[e](...t);
|
|
3696
3698
|
};
|
|
3697
|
-
}), $.DismissReason =
|
|
3699
|
+
}), $.DismissReason = Z, $.version = "11.26.25";
|
|
3698
3700
|
let li = $;
|
|
3699
3701
|
return li.default = li, li;
|
|
3700
3702
|
})), e !== void 0 && e.Sweetalert2 && (e.swal = e.sweetAlert = e.Swal = e.SweetAlert = e.Sweetalert2), typeof document < "u" && function(e, t) {
|
|
@@ -3707,7 +3709,7 @@ var At = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
3707
3709
|
}
|
|
3708
3710
|
}(document, ":root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:\"top-start top top-end\" \"center-start center center-end\" \"bottom-start bottom-center bottom-end\";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}");
|
|
3709
3711
|
})))(), 1);
|
|
3710
|
-
function
|
|
3712
|
+
function Z({ title: e, inputs: t, confirmText: n, cancelText: r }) {
|
|
3711
3713
|
let i = t.map((e, t) => `<input id="${`swal-input-${t}`}" class="swal2-input" placeholder="${e.placeholder || ""}" value="${e.value || ""}">`).join("");
|
|
3712
3714
|
return At.default.fire({
|
|
3713
3715
|
title: e,
|
|
@@ -3729,7 +3731,7 @@ function jt({ title: e, inputs: t, confirmText: n, cancelText: r }) {
|
|
|
3729
3731
|
}
|
|
3730
3732
|
//#endregion
|
|
3731
3733
|
//#region src/components/shared/toolbar/Insert/Hooks/insertLogic.jsx
|
|
3732
|
-
function
|
|
3734
|
+
function jt() {
|
|
3733
3735
|
let e = window.getSelection();
|
|
3734
3736
|
return e && e.rangeCount > 0 ? e.getRangeAt(0).cloneRange() : null;
|
|
3735
3737
|
}
|
|
@@ -3763,7 +3765,7 @@ function Pt(e) {
|
|
|
3763
3765
|
function Ft() {
|
|
3764
3766
|
return {
|
|
3765
3767
|
insertLink: async () => {
|
|
3766
|
-
let e =
|
|
3768
|
+
let e = jt(), t = await Z({
|
|
3767
3769
|
title: "Insert Link",
|
|
3768
3770
|
inputs: [{
|
|
3769
3771
|
placeholder: "URL",
|
|
@@ -3781,7 +3783,7 @@ function Ft() {
|
|
|
3781
3783
|
}
|
|
3782
3784
|
},
|
|
3783
3785
|
insertImage: async () => {
|
|
3784
|
-
let e =
|
|
3786
|
+
let e = jt(), t = await Z({
|
|
3785
3787
|
title: "Insert Image",
|
|
3786
3788
|
inputs: [{
|
|
3787
3789
|
placeholder: "Image URL",
|
|
@@ -3802,7 +3804,7 @@ function Ft() {
|
|
|
3802
3804
|
}
|
|
3803
3805
|
},
|
|
3804
3806
|
insertVideo: async () => {
|
|
3805
|
-
let e =
|
|
3807
|
+
let e = jt(), t = await Z({
|
|
3806
3808
|
title: "Insert Video",
|
|
3807
3809
|
inputs: [{
|
|
3808
3810
|
placeholder: "Video URL (YouTube/Vimeo)",
|
|
@@ -3898,13 +3900,13 @@ function zt() {
|
|
|
3898
3900
|
//#region src/components/shared/toolbar/Index/index.jsx
|
|
3899
3901
|
function Bt({ editorRef: e }) {
|
|
3900
3902
|
return /* @__PURE__ */ R("div", {
|
|
3901
|
-
className: "forge-editor__toolbar sticky top-0 z-10 m-0 flex flex-shrink-0 flex-wrap items-center gap-[4px] rounded-t-[3px] border-b border-[#ddd] bg-[#f5f5f5] p-[5px] text-[#333]",
|
|
3903
|
+
className: "forge-editor__toolbar sticky top-0 z-10 m-0 flex flex-shrink-0 flex-wrap items-center justify-between gap-[4px] rounded-t-[3px] border-b border-[#ddd] bg-[#f5f5f5] p-[5px] text-[#333]",
|
|
3902
3904
|
role: "toolbar",
|
|
3903
3905
|
children: [
|
|
3904
3906
|
/* @__PURE__ */ R(z, {}),
|
|
3905
3907
|
/* @__PURE__ */ R(J, {}),
|
|
3906
|
-
/* @__PURE__ */ R(
|
|
3907
|
-
/* @__PURE__ */ R(
|
|
3908
|
+
/* @__PURE__ */ R(Qe, { editorRef: e }),
|
|
3909
|
+
/* @__PURE__ */ R(ut, {}),
|
|
3908
3910
|
/* @__PURE__ */ R(St, {}),
|
|
3909
3911
|
/* @__PURE__ */ R(Ot, {}),
|
|
3910
3912
|
/* @__PURE__ */ R(It, {}),
|
|
@@ -3968,7 +3970,7 @@ function Wt(e) {
|
|
|
3968
3970
|
function Gt(e) {
|
|
3969
3971
|
if (!e) return;
|
|
3970
3972
|
let t = e.querySelector("[data-command='style']"), n = e.querySelector(".forge-dropdown-style");
|
|
3971
|
-
!t || !n || (
|
|
3973
|
+
!t || !n || (Je(t, n), n.querySelectorAll(".forge-dropdown-item").forEach((e) => {
|
|
3972
3974
|
e.addEventListener("mousedown", (r) => {
|
|
3973
3975
|
r.preventDefault(), r.stopPropagation();
|
|
3974
3976
|
let i = e.dataset.value || e.getAttribute("data-value");
|
|
@@ -4328,13 +4330,13 @@ function rn(e) {
|
|
|
4328
4330
|
}
|
|
4329
4331
|
//#endregion
|
|
4330
4332
|
//#region src/main/main.jsx
|
|
4331
|
-
var an = document.querySelectorAll("forge-editor"),
|
|
4333
|
+
var an = document.querySelectorAll("forge-editor"), on = [];
|
|
4332
4334
|
an.forEach((e) => {
|
|
4333
4335
|
let t = rn(e);
|
|
4334
|
-
t &&
|
|
4335
|
-
}), window.forgeEditors =
|
|
4336
|
-
var
|
|
4337
|
-
|
|
4338
|
-
|
|
4336
|
+
t && on.push(t);
|
|
4337
|
+
}), window.forgeEditors = on;
|
|
4338
|
+
var sn = document.getElementById("get-html-btn"), cn = document.getElementById("html-output");
|
|
4339
|
+
sn && cn && on[0] && sn.addEventListener("click", () => {
|
|
4340
|
+
cn.value = on[0].getHTML();
|
|
4339
4341
|
});
|
|
4340
4342
|
//#endregion
|