@craftile/editor 1.3.1 → 1.3.2
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 +306 -276
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.__craftile [data-scope=toast][data-part=root]{--toast-bg: #ffffff;--toast-fg: var(--color-gray-800);--toast-border: var(--color-gray-200);--toast-trigger-bg: var(--color-gray-100);--toast-trigger-border: var(--color-gray-300);min-width:22rem;max-width:26rem;display:flex;gap:.75rem;align-items:flex-start;position:relative;padding:.875rem 2.25rem .875rem 1rem;border-radius:.625rem;border:1px solid var(--toast-border);background:var(--toast-bg);color:var(--toast-fg);box-shadow:0 4px 12px #00000014,0 0 1px #0000002e;translate:var(--x) var(--y);scale:var(--scale);z-index:var(--z-index);height:var(--height);opacity:var(--opacity);will-change:translate,opacity,scale;transition:translate .4s cubic-bezier(.21,1.02,.73,1),scale .4s cubic-bezier(.21,1.02,.73,1),opacity .4s cubic-bezier(.21,1.02,.73,1),height .4s cubic-bezier(.21,1.02,.73,1),box-shadow .2s}.__craftile [data-scope=toast][data-part=root][data-state=closed]{transition:translate .4s cubic-bezier(.06,.71,.55,1),scale .4s cubic-bezier(.06,.71,.55,1),opacity .2s cubic-bezier(.06,.71,.55,1)}.__craftile [data-scope=toast][data-part=root][data-type=success],.__craftile [data-scope=toast][data-part=root][data-type=error],.__craftile [data-scope=toast][data-part=root][data-type=warning]{--toast-fg: #ffffff;--toast-border: transparent;--toast-trigger-bg: rgb(255 255 255 / .15);--toast-trigger-border: rgb(255 255 255 / .4)}.__craftile [data-scope=toast][data-part=root][data-type=success]{--toast-bg: #16a34a}.__craftile [data-scope=toast][data-part=root][data-type=error]{--toast-bg: #dc2626}.__craftile [data-scope=toast][data-part=root][data-type=warning]{--toast-bg: #ea580c}.__craftile .toast-content{flex:1 1 auto;min-width:0}.__craftile .toast-action{display:inline-flex;align-items:center;padding:.25rem .625rem;font-size:.75rem;font-weight:500;line-height:1rem;border-radius:.3125rem;border:1px solid var(--toast-trigger-border);background:transparent;color:inherit;cursor:pointer;transition:background .15s,border-color .15s}.__craftile .toast-action:hover{background:var(--toast-trigger-bg)}.__craftile .toast-close{position:absolute;top:.5rem;inset-inline-end:.5rem;width:1.5rem;height:1.5rem;display:inline-flex;align-items:center;justify-content:center;color:inherit;opacity:.65;border-radius:.3125rem;background:transparent;cursor:pointer;transition:opacity .15s,background .15s}.__craftile .toast-close:hover{opacity:1;background:var(--toast-trigger-bg)}/*! tailwindcss v4.1.13 | 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)))){.__craftile *,.__craftile :before,.__craftile :after,.__craftile ::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-y-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}}}@layer theme{.__craftile,.__craftile :host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-green-800:oklch(44.8% .119 151.328);--color-blue-500:oklch(62.3% .214 259.815);--color-slate-400:oklch(70.4% .04 256.788);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--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-medium:500;--font-weight-semibold:600;--leading-snug:1.375;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--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);--animate-enter:enter .1s ease-out;--animate-exit:exit .1s ease-out}}@layer base{.__craftile *,.__craftile :after,.__craftile :before,.__craftile ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.__craftile ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.__craftile,.__craftile :host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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}.__craftile hr{height:0;color:inherit;border-top-width:1px}.__craftile abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.__craftile h1,.__craftile h2,.__craftile h3,.__craftile h4,.__craftile h5,.__craftile h6{font-size:inherit;font-weight:inherit}.__craftile a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.__craftile b,.__craftile strong{font-weight:bolder}.__craftile code,.__craftile kbd,.__craftile samp,.__craftile 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}.__craftile small{font-size:80%}.__craftile sub,.__craftile sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.__craftile sub{bottom:-.25em}.__craftile sup{top:-.5em}.__craftile table{text-indent:0;border-color:inherit;border-collapse:collapse}.__craftile :-moz-focusring{outline:auto}.__craftile progress{vertical-align:baseline}.__craftile summary{display:list-item}.__craftile ol,.__craftile ul,.__craftile menu{list-style:none}.__craftile img,.__craftile svg,.__craftile video,.__craftile canvas,.__craftile audio,.__craftile iframe,.__craftile embed,.__craftile object{vertical-align:middle;display:block}.__craftile img,.__craftile video{max-width:100%;height:auto}.__craftile button,.__craftile input,.__craftile select,.__craftile optgroup,.__craftile textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.__craftile ::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}.__craftile :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.__craftile :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.__craftile ::file-selector-button{margin-inline-end:4px}.__craftile ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.__craftile ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.__craftile ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.__craftile textarea{resize:vertical}.__craftile ::-webkit-search-decoration{-webkit-appearance:none}.__craftile ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.__craftile ::-webkit-datetime-edit{display:inline-flex}.__craftile ::-webkit-datetime-edit-fields-wrapper{padding:0}.__craftile ::-webkit-datetime-edit{padding-block:0}.__craftile ::-webkit-datetime-edit-year-field{padding-block:0}.__craftile ::-webkit-datetime-edit-month-field{padding-block:0}.__craftile ::-webkit-datetime-edit-day-field{padding-block:0}.__craftile ::-webkit-datetime-edit-hour-field{padding-block:0}.__craftile ::-webkit-datetime-edit-minute-field{padding-block:0}.__craftile ::-webkit-datetime-edit-second-field{padding-block:0}.__craftile ::-webkit-datetime-edit-millisecond-field{padding-block:0}.__craftile ::-webkit-datetime-edit-meridiem-field{padding-block:0}.__craftile ::-webkit-calendar-picker-indicator{line-height:1}.__craftile :-moz-ui-invalid{box-shadow:none}.__craftile button,.__craftile input:where([type=button],[type=reset],[type=submit]){appearance:button}.__craftile ::file-selector-button{appearance:button}.__craftile ::-webkit-inner-spin-button{height:auto}.__craftile ::-webkit-outer-spin-button{height:auto}.__craftile [hidden]:where(:not([hidden=until-found])){display:none!important}.__craftile *,.__craftile :after,.__craftile :before,.__craftile ::backdrop{border-color:var(--color-gray-200,oklch(92% .004 286.32))}.__craftile ::file-selector-button{border-color:var(--color-gray-200,oklch(92% .004 286.32))}}@layer components{.__craftile .ghost-block{border-radius:var(--radius-md);border-style:var(--tw-border-style);--tw-border-style:dashed;border-style:dashed;border-width:2px;border-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .ghost-block{border-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))80%,transparent)}}.__craftile .ghost-block{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .ghost-block{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))20%,transparent)}}.__craftile .ghost-block{opacity:.3}.__craftile .configuration-panel-aside{width:18.75rem}.__craftile .configuration-panel-enter-active,.__craftile .configuration-panel-leave-active{transition:width .2s ease-out,opacity .2s ease-out;overflow:hidden}.__craftile .configuration-panel-enter-from,.__craftile .configuration-panel-leave-to{opacity:0;width:0}.__craftile .configuration-panel-enter-to,.__craftile .configuration-panel-leave-from{opacity:1;width:18.75rem}.__craftile .property-field-enter-active,.__craftile .property-field-leave-active{transition:all .2s;overflow:hidden}.__craftile .property-field-enter-from,.__craftile .property-field-leave-to{opacity:0;max-height:0}.__craftile .property-field-enter-to,.__craftile .property-field-leave-from{opacity:1;max-height:200px}}@layer utilities{.__craftile .pointer-events-auto{pointer-events:auto}.__craftile .pointer-events-none{pointer-events:none}.__craftile .invisible{visibility:hidden}.__craftile .visible{visibility:visible}.__craftile .sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.__craftile .absolute{position:absolute}.__craftile .fixed{position:fixed}.__craftile .relative{position:relative}.__craftile .static{position:static}.__craftile .inset-0{inset:calc(var(--spacing)*0)}.__craftile .-top-2{top:calc(var(--spacing)*-2)}.__craftile .-top-\\[18\\.5px\\]{top:-18.5px}.__craftile .-top-\\[19px\\]{top:-19px}.__craftile .top-0{top:calc(var(--spacing)*0)}.__craftile .top-1\\/2{top:50%}.__craftile .top-4{top:calc(var(--spacing)*4)}.__craftile .-right-2{right:calc(var(--spacing)*-2)}.__craftile .right-0{right:calc(var(--spacing)*0)}.__craftile .right-4{right:calc(var(--spacing)*4)}.__craftile .-bottom-2{bottom:calc(var(--spacing)*-2)}.__craftile .-left-2{left:calc(var(--spacing)*-2)}.__craftile .-left-\\[1px\\]{left:-1px}.__craftile .left-0{left:calc(var(--spacing)*0)}.__craftile .left-1\\/2{left:50%}.__craftile .\\!z-10{z-index:10!important}.__craftile .\\!z-\\[1100\\]{z-index:1100!important}.__craftile .z-5{z-index:5}.__craftile .z-10{z-index:10}.__craftile .z-50{z-index:50}.__craftile .z-\\[1000\\]{z-index:1000}.__craftile .container{width:100%}@media (min-width:40rem){.__craftile .container{max-width:40rem}}@media (min-width:48rem){.__craftile .container{max-width:48rem}}@media (min-width:64rem){.__craftile .container{max-width:64rem}}@media (min-width:80rem){.__craftile .container{max-width:80rem}}@media (min-width:96rem){.__craftile .container{max-width:96rem}}.__craftile .m-0{margin:calc(var(--spacing)*0)}.__craftile .mx-0{margin-inline:calc(var(--spacing)*0)}.__craftile .mx-2{margin-inline:calc(var(--spacing)*2)}.__craftile .mx-auto{margin-inline:auto}.__craftile .my-1{margin-block:calc(var(--spacing)*1)}.__craftile .my-2{margin-block:calc(var(--spacing)*2)}.__craftile .mt-0{margin-top:calc(var(--spacing)*0)}.__craftile .mt-1{margin-top:calc(var(--spacing)*1)}.__craftile .mt-2{margin-top:calc(var(--spacing)*2)}.__craftile .mt-4{margin-top:calc(var(--spacing)*4)}.__craftile .mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.__craftile .mr-1{margin-right:calc(var(--spacing)*1)}.__craftile .mb-1{margin-bottom:calc(var(--spacing)*1)}.__craftile .mb-2{margin-bottom:calc(var(--spacing)*2)}.__craftile .mb-3{margin-bottom:calc(var(--spacing)*3)}.__craftile .mb-4{margin-bottom:calc(var(--spacing)*4)}.__craftile .ml-2{margin-left:calc(var(--spacing)*2)}.__craftile .ml-3{margin-left:calc(var(--spacing)*3)}.__craftile .ml-auto{margin-left:auto}.__craftile .box-border{box-sizing:border-box}.__craftile .block{display:block}.__craftile .flex{display:flex}.__craftile .grid{display:grid}.__craftile .hidden{display:none}.__craftile .inline{display:inline}.__craftile .inline-flex{display:inline-flex}.__craftile .aspect-square{aspect-ratio:1}.__craftile .size-1\\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.__craftile .h-1\\.5{height:calc(var(--spacing)*1.5)}.__craftile .h-3{height:calc(var(--spacing)*3)}.__craftile .h-3\\.5{height:calc(var(--spacing)*3.5)}.__craftile .h-4{height:calc(var(--spacing)*4)}.__craftile .h-5{height:calc(var(--spacing)*5)}.__craftile .h-6{height:calc(var(--spacing)*6)}.__craftile .h-8{height:calc(var(--spacing)*8)}.__craftile .h-10{height:calc(var(--spacing)*10)}.__craftile .h-12{height:calc(var(--spacing)*12)}.__craftile .h-14{height:calc(var(--spacing)*14)}.__craftile .h-16{height:calc(var(--spacing)*16)}.__craftile .h-\\[2px\\]{height:2px}.__craftile .h-\\[520px\\]{height:520px}.__craftile .h-full{height:100%}.__craftile .h-px{height:1px}.__craftile .max-h-\\[90vh\\]{max-height:90vh}.__craftile .max-h-\\[calc\\(100vh-2rem\\)\\]{max-height:calc(100vh - 2rem)}.__craftile .w-0{width:calc(var(--spacing)*0)}.__craftile .w-3{width:calc(var(--spacing)*3)}.__craftile .w-3\\.5{width:calc(var(--spacing)*3.5)}.__craftile .w-4{width:calc(var(--spacing)*4)}.__craftile .w-5{width:calc(var(--spacing)*5)}.__craftile .w-6{width:calc(var(--spacing)*6)}.__craftile .w-8{width:calc(var(--spacing)*8)}.__craftile .w-10{width:calc(var(--spacing)*10)}.__craftile .w-12{width:calc(var(--spacing)*12)}.__craftile .w-14{width:calc(var(--spacing)*14)}.__craftile .w-16{width:calc(var(--spacing)*16)}.__craftile .w-60{width:calc(var(--spacing)*60)}.__craftile .w-72{width:calc(var(--spacing)*72)}.__craftile .w-75{width:calc(var(--spacing)*75)}.__craftile .w-\\[640px\\]{width:640px}.__craftile .w-full{width:100%}.__craftile .w-max{width:max-content}.__craftile .max-w-2xl{max-width:var(--container-2xl)}.__craftile .max-w-\\[120px\\]{max-width:120px}.__craftile .max-w-\\[calc\\(100vw-2rem\\)\\]{max-width:calc(100vw - 2rem)}.__craftile .max-w-full{max-width:100%}.__craftile .max-w-lg{max-width:var(--container-lg)}.__craftile .max-w-md{max-width:var(--container-md)}.__craftile .max-w-sm{max-width:var(--container-sm)}.__craftile .max-w-xl{max-width:var(--container-xl)}.__craftile .max-w-xs{max-width:var(--container-xs)}.__craftile .min-w-0{min-width:calc(var(--spacing)*0)}.__craftile .min-w-\\[160px\\]{min-width:160px}.__craftile .min-w-\\[180px\\]{min-width:180px}.__craftile .flex-1{flex:1}.__craftile .flex-none{flex:none}.__craftile .shrink-0{flex-shrink:0}.__craftile .-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.__craftile .-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.__craftile .rotate-45{rotate:45deg}.__craftile .rotate-90{rotate:90deg}.__craftile .rotate-180{rotate:180deg}.__craftile .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.__craftile .animate-spin{animation:var(--animate-spin)}.__craftile .cursor-grab{cursor:grab}.__craftile .cursor-pointer{cursor:pointer}.__craftile .resize{resize:both}.__craftile .flex-col{flex-direction:column}.__craftile .flex-wrap{flex-wrap:wrap}.__craftile .items-center{align-items:center}.__craftile .items-start{align-items:flex-start}.__craftile .justify-between{justify-content:space-between}.__craftile .justify-center{justify-content:center}.__craftile .justify-end{justify-content:flex-end}.__craftile .gap-0\\.5{gap:calc(var(--spacing)*.5)}.__craftile .gap-1{gap:calc(var(--spacing)*1)}.__craftile .gap-1\\.5{gap:calc(var(--spacing)*1.5)}.__craftile .gap-2{gap:calc(var(--spacing)*2)}.__craftile .gap-3{gap:calc(var(--spacing)*3)}.__craftile :where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.__craftile .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.__craftile .overflow-auto{overflow:auto}.__craftile .overflow-hidden{overflow:hidden}.__craftile .overflow-y-auto{overflow-y:auto}.__craftile .overflow-y-hidden{overflow-y:hidden}.__craftile .rounded{border-radius:.25rem}.__craftile .rounded-full{border-radius:3.40282e38px}.__craftile .rounded-lg{border-radius:var(--radius-lg)}.__craftile .rounded-md{border-radius:var(--radius-md)}.__craftile .rounded-xs{border-radius:var(--radius-xs)}.__craftile .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.__craftile .border{border-style:var(--tw-border-style);border-width:1px}.__craftile .border-0{border-style:var(--tw-border-style);border-width:0}.__craftile .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.__craftile .border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.__craftile .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.__craftile .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.__craftile .border-dashed{--tw-border-style:dashed;border-style:dashed}.__craftile .border-solid{--tw-border-style:solid;border-style:solid}.__craftile .border-\\[none\\]{border-color:none}.__craftile .border-blue-500{border-color:var(--color-blue-500)}.__craftile .border-gray-100{border-color:var(--color-gray-100,oklch(96.7% .001 286.375))}.__craftile .border-gray-200{border-color:var(--color-gray-200,oklch(92% .004 286.32))}.__craftile .border-gray-300\\/60{border-color:var(--color-gray-300,oklch(87.1% .006 286.286))}@supports (color:color-mix(in lab,red,red)){.__craftile .border-gray-300\\/60{border-color:color-mix(in oklab,var(--color-gray-300,oklch(87.1% .006 286.286))60%,transparent)}}.__craftile .border-red-200{border-color:var(--color-red-200)}.__craftile .border-slate-400{border-color:var(--color-slate-400)}.__craftile .border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.__craftile .border-white\\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.__craftile .bg-accent{background-color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .bg-accent-foreground{background-color:var(--color-accent-foreground,oklch(93.2% .032 255.585))}.__craftile .bg-accent\\/8{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-accent\\/8{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))8%,transparent)}}.__craftile .bg-accent\\/70{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-accent\\/70{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))70%,transparent)}}.__craftile .bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.__craftile .bg-blue-500{background-color:var(--color-blue-500)}.__craftile .bg-blue-500\\/5{background-color:#3080ff0d}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-blue-500\\/5{background-color:color-mix(in oklab,var(--color-blue-500)5%,transparent)}}.__craftile .bg-blue-500\\/90{background-color:#3080ffe6}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-blue-500\\/90{background-color:color-mix(in oklab,var(--color-blue-500)90%,transparent)}}.__craftile .bg-blue-500\\/95{background-color:#3080fff2}@supports (color:color-mix(in lab,red,red)){.__craftile .bg-blue-500\\/95{background-color:color-mix(in oklab,var(--color-blue-500)95%,transparent)}}.__craftile .bg-gray-50{background-color:var(--color-gray-50,oklch(98.5% 0 0))}.__craftile .bg-gray-100{background-color:var(--color-gray-100,oklch(96.7% .001 286.375))}.__craftile .bg-gray-200{background-color:var(--color-gray-200,oklch(92% .004 286.32))}.__craftile .bg-gray-800{background-color:var(--color-gray-800,oklch(37% .013 285.805))}.__craftile .bg-green-800{background-color:var(--color-green-800)}.__craftile .bg-primary{background-color:var(--color-primary,oklch(14.7% .004 49.25))}.__craftile .bg-red-50{background-color:var(--color-red-50)}.__craftile .bg-red-600{background-color:var(--color-red-600)}.__craftile .bg-secondary{background-color:var(--color-secondary,oklch(92% .004 286.32))}.__craftile .bg-transparent{background-color:#0000}.__craftile .bg-white{background-color:var(--color-white)}.__craftile .fill-current{fill:currentColor}.__craftile .object-contain{object-fit:contain}.__craftile .p-0{padding:calc(var(--spacing)*0)}.__craftile .p-0\\.5{padding:calc(var(--spacing)*.5)}.__craftile .p-1{padding:calc(var(--spacing)*1)}.__craftile .p-1\\.5{padding:calc(var(--spacing)*1.5)}.__craftile .p-2{padding:calc(var(--spacing)*2)}.__craftile .p-3{padding:calc(var(--spacing)*3)}.__craftile .p-4{padding:calc(var(--spacing)*4)}.__craftile .p-6{padding:calc(var(--spacing)*6)}.__craftile .p-\\[2px\\]{padding:2px}.__craftile .px-1{padding-inline:calc(var(--spacing)*1)}.__craftile .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.__craftile .px-2{padding-inline:calc(var(--spacing)*2)}.__craftile .px-3{padding-inline:calc(var(--spacing)*3)}.__craftile .px-4{padding-inline:calc(var(--spacing)*4)}.__craftile .px-6{padding-inline:calc(var(--spacing)*6)}.__craftile .py-0\\.5{padding-block:calc(var(--spacing)*.5)}.__craftile .py-1{padding-block:calc(var(--spacing)*1)}.__craftile .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.__craftile .py-2{padding-block:calc(var(--spacing)*2)}.__craftile .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.__craftile .py-3{padding-block:calc(var(--spacing)*3)}.__craftile .py-4{padding-block:calc(var(--spacing)*4)}.__craftile .py-8{padding-block:calc(var(--spacing)*8)}.__craftile .pb-1{padding-bottom:calc(var(--spacing)*1)}.__craftile .text-center{text-align:center}.__craftile .text-left{text-align:left}.__craftile .font-mono{font-family:var(--font-mono)}.__craftile .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.__craftile .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.__craftile .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.__craftile .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.__craftile .text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.__craftile .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.__craftile .text-\\[0\\.6rem\\],.__craftile .text-\\[0\\.60rem\\]{font-size:.6rem}.__craftile .text-\\[0\\.625rem\\]{font-size:.625rem}.__craftile .text-\\[13px\\]{font-size:13px}.__craftile .leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.__craftile .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.__craftile .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.__craftile .text-ellipsis{text-overflow:ellipsis}.__craftile .whitespace-nowrap{white-space:nowrap}.__craftile .text-accent{color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .text-accent\\!{color:var(--color-accent,oklch(54.6% .245 262.881))!important}.__craftile .text-accent-foreground{color:var(--color-accent-foreground,oklch(93.2% .032 255.585))}.__craftile .text-accent\\/90{color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .text-accent\\/90{color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))90%,transparent)}}.__craftile .text-gray-400{color:var(--color-gray-400,oklch(70.5% .015 286.067))}.__craftile .text-gray-500{color:var(--color-gray-500,oklch(55.2% .016 285.938))}.__craftile .text-gray-600{color:var(--color-gray-600,oklch(44.2% .017 285.786))}.__craftile .text-gray-700{color:var(--color-gray-700,oklch(37% .013 285.805))}.__craftile .text-gray-900{color:var(--color-gray-900,oklch(37% .013 285.805))}.__craftile .text-primary-foreground{color:var(--color-primary-foreground,oklch(98.5% 0 0))}.__craftile .text-red-600{color:var(--color-red-600)}.__craftile .text-secondary-foreground{color:var(--color-secondary-foreground,oklch(37% .013 285.805))}.__craftile .text-white{color:var(--color-white)}.__craftile .capitalize{text-transform:capitalize}.__craftile .italic{font-style:italic}.__craftile .opacity-0{opacity:0}.__craftile .opacity-25{opacity:.25}.__craftile .opacity-75{opacity:.75}.__craftile .opacity-80{opacity:.8}.__craftile .opacity-100{opacity:1}.__craftile .shadow{--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)}.__craftile .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)}.__craftile .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)}.__craftile .shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}.__craftile .shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .shadow-black\\/25{--tw-shadow-color:#00000040}@supports (color:color-mix(in lab,red,red)){.__craftile .shadow-black\\/25{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black)25%,transparent)var(--tw-shadow-alpha),transparent)}}.__craftile .ring-white\\/10{--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.__craftile .ring-white\\/10{--tw-ring-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.__craftile .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,)}.__craftile .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.__craftile .transition-\\[background\\]{transition-property:background;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.__craftile .transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.__craftile .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))}.__craftile .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))}.__craftile .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.__craftile .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))}.__craftile .duration-100{--tw-duration:.1s;transition-duration:.1s}.__craftile .duration-200{--tw-duration:.2s;transition-duration:.2s}.__craftile .duration-300{--tw-duration:.3s;transition-duration:.3s}.__craftile .duration-\\[0\\.2s\\]{--tw-duration:.2s;transition-duration:.2s}.__craftile .ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.__craftile .not-last\\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}@media (hover:hover){.__craftile .group-hover\\:flex:is(:where(.group):hover *){display:flex}.__craftile .group-hover\\:w-full:is(:where(.group):hover *){width:100%}.__craftile .group-hover\\:opacity-0:is(:where(.group):hover *){opacity:0}.__craftile .group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.__craftile .last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.__craftile .hover\\:bg-accent-foreground:hover{background-color:var(--color-accent-foreground,oklch(93.2% .032 255.585))}.__craftile .hover\\:bg-accent\\/90:hover{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .hover\\:bg-accent\\/90:hover{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))90%,transparent)}}.__craftile .hover\\:bg-blue-500:hover{background-color:var(--color-blue-500)}.__craftile .hover\\:bg-gray-50:hover{background-color:var(--color-gray-50,oklch(98.5% 0 0))}.__craftile .hover\\:bg-gray-100:hover{background-color:var(--color-gray-100,oklch(96.7% .001 286.375))}.__craftile .hover\\:bg-gray-200:hover{background-color:var(--color-gray-200,oklch(92% .004 286.32))}.__craftile .hover\\:bg-primary\\/90:hover{background-color:var(--color-primary,oklch(14.7% .004 49.25))}@supports (color:color-mix(in lab,red,red)){.__craftile .hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--color-primary,oklch(14.7% .004 49.25))90%,transparent)}}.__craftile .hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.__craftile .hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.__craftile .hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.__craftile .hover\\:bg-secondary\\/90:hover{background-color:var(--color-secondary,oklch(92% .004 286.32))}@supports (color:color-mix(in lab,red,red)){.__craftile .hover\\:bg-secondary\\/90:hover{background-color:color-mix(in oklab,var(--color-secondary,oklch(92% .004 286.32))90%,transparent)}}.__craftile .hover\\:text-accent:hover{color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .hover\\:text-gray-600:hover{color:var(--color-gray-600,oklch(44.2% .017 285.786))}.__craftile .hover\\:text-gray-700:hover{color:var(--color-gray-700,oklch(37% .013 285.805))}.__craftile .hover\\:text-red-600:hover{color:var(--color-red-600)}.__craftile .hover\\:opacity-100:hover{opacity:1}.__craftile .hover\\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .hover\\:ring-accent\\/40:hover{--tw-ring-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .hover\\:ring-accent\\/40:hover{--tw-ring-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))40%,transparent)}}}.__craftile .focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.__craftile .focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.__craftile .focus-visible\\:border-transparent:focus-visible{border-color:#0000}.__craftile .focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.__craftile .focus-visible\\:ring-accent:focus-visible{--tw-ring-color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.__craftile .focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.__craftile .active\\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.__craftile .hover\\:enabled\\:bg-gray-500:hover:enabled{background-color:var(--color-gray-500,oklch(55.2% .016 285.938))}.__craftile .hover\\:enabled\\:bg-red-800:hover:enabled{background-color:var(--color-red-800)}.__craftile .hover\\:enabled\\:text-gray-100:hover:enabled{color:var(--color-gray-100,oklch(96.7% .001 286.375))}.__craftile .hover\\:enabled\\:text-red-200:hover:enabled{color:var(--color-red-200)}}.__craftile .active\\:enabled\\:bg-gray-600:active:enabled{background-color:var(--color-gray-600,oklch(44.2% .017 285.786))}.__craftile .disabled\\:pointer-events-none:disabled{pointer-events:none}.__craftile .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.__craftile .disabled\\:text-gray-600:disabled{color:var(--color-gray-600,oklch(44.2% .017 285.786))}.__craftile .disabled\\:opacity-50:disabled{opacity:.5}.__craftile .data-selected\\:border[data-selected]{border-style:var(--tw-border-style);border-width:1px}.__craftile .data-selected\\:border-b-2[data-selected]{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.__craftile .data-selected\\:border-accent[data-selected],.__craftile .data-selected\\:border-accent\\/20[data-selected]{border-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .data-selected\\:border-accent\\/20[data-selected]{border-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))20%,transparent)}}.__craftile .data-selected\\:bg-accent\\/10[data-selected]{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .data-selected\\:bg-accent\\/10[data-selected]{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))10%,transparent)}}.__craftile .data-selected\\:bg-white[data-selected]{background-color:var(--color-white)}.__craftile .data-selected\\:text-accent[data-selected]{color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .data-selected\\:shadow[data-selected]{--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)}@media (hover:hover){.__craftile .data-selected\\:hover\\:bg-accent\\/10[data-selected]:hover{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .data-selected\\:hover\\:bg-accent\\/10[data-selected]:hover{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))10%,transparent)}}}.__craftile .data-\\[disabled\\]\\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.__craftile .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.__craftile .data-\\[state\\=checked\\]\\:bg-accent\\/10[data-state=checked]{background-color:var(--color-accent,oklch(54.6% .245 262.881))}@supports (color:color-mix(in lab,red,red)){.__craftile .data-\\[state\\=checked\\]\\:bg-accent\\/10[data-state=checked]{background-color:color-mix(in oklab,var(--color-accent,oklch(54.6% .245 262.881))10%,transparent)}}.__craftile .data-\\[state\\=checked\\]\\:text-accent[data-state=checked]{color:var(--color-accent,oklch(54.6% .245 262.881))}.__craftile .data-\\[state\\=closed\\]\\:animate-exit[data-state=closed]{animation:var(--animate-exit)}.__craftile .data-\\[state\\=open\\]\\:rotate-180[data-state=open]{rotate:180deg}.__craftile .data-\\[state\\=open\\]\\:animate-enter[data-state=open]{animation:var(--animate-enter)}.__craftile .\\[\\&_svg\\]\\:h-full svg{height:100%}.__craftile .\\[\\&_svg\\]\\:w-full svg{width:100%}.__craftile .\\[\\&_svg\\]\\:fill-current svg{fill:currentColor}.__craftile .\\[\\&\\>svg\\]\\:h-4>svg{height:calc(var(--spacing)*4)}.__craftile .\\[\\&\\>svg\\]\\:w-3\\.5>svg{width:calc(var(--spacing)*3.5)}.__craftile .\\[\\&\\>svg\\]\\:w-4>svg{width:calc(var(--spacing)*4)}}@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-y-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}@keyframes spin{to{transform:rotate(360deg)}}@keyframes enter{0%{opacity:0;transform:scale(.95)translateY(-10px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes exit{0%{opacity:1;transform:scale(1)translateY(0)}to{opacity:0;transform:scale(.95)translateY(-10px)}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { defineComponent as B, inject as Oe, ref as se, onMounted as nt, watch as Mo, createElementBlock as S, openBlock as g, markRaw as ee, createElementVNode as C, renderSlot as A, normalizeProps as Me, guardReactiveProps as Ae, unref as a, createBlock as x, createCommentVNode as J, mergeProps as U, withCtx as _, computed as b, useId as rt, toValue as we, mergeDefaults as Ye, createTextVNode as ue, reactive as jt, onBeforeUnmount as Cn, Fragment as me, renderList as Ce, createVNode as E, normalizeClass as Ie, toDisplayString as j, resolveDynamicComponent as pt, isRef as et, getCurrentInstance as En, onUnmounted as Ao, toRaw as xr, nextTick as uo, withDirectives as Ms, vModelText as As, withModifiers as Lt, normalizeStyle as
|
|
3
|
-
import { C as Ee, c as Ne, u as V, b as G, d as zt, r as ye, e as Z, f as Et, g as pn, s as sr, h as Xe, n as Fs, i as Ge, j as ft, D as mt, k as Wt, l as Kt, m as po, o as Pt, p as Ot, q as ho, R as st, t as wr, w as Ls, v as Vs, x as Hs, y as Cr, z as Er, A as va, B as ba, E as hn, F as Pr, G as Or, H as Pn, P as On, I as Tr, J as Tn, K as Br, L as ya, M as Us, N as qt, O as mo, Q as ct, S as Ln, T as _a, U as Vn, V as ka, W as Ia, X as Sr, Y as Tt, Z as Gs, $ as js, a0 as zs, a1 as Ws, a2 as Ks, a3 as Hn, a4 as Kr, a5 as ir, a6 as io, a7 as xa, a8 as wa, a9 as Ca, aa as qs, ab as Ea, ac as Wo, ad as qr, ae as Pa, af as Oa, ag as Xs, ah as gn, ai as Ta, aj as Ba, ak as Ys, al as Js, am as Sa, an as
|
|
2
|
+
import { defineComponent as B, inject as Oe, ref as se, onMounted as nt, watch as Mo, createElementBlock as S, openBlock as g, markRaw as ee, createElementVNode as C, renderSlot as A, normalizeProps as Me, guardReactiveProps as Ae, unref as a, createBlock as x, createCommentVNode as J, mergeProps as U, withCtx as _, computed as b, useId as rt, toValue as we, mergeDefaults as Ye, createTextVNode as ue, reactive as jt, onBeforeUnmount as Cn, Fragment as me, renderList as Ce, createVNode as E, normalizeClass as Ie, toDisplayString as j, resolveDynamicComponent as pt, isRef as et, getCurrentInstance as En, onUnmounted as Ao, toRaw as xr, nextTick as uo, withDirectives as Ms, vModelText as As, withModifiers as Lt, normalizeStyle as $o, toRefs as ua, h as Ns, resolveComponent as pa, KeepAlive as ha, Transition as ga, TransitionGroup as Wr, createApp as fa, provide as ma } from "vue";
|
|
3
|
+
import { C as Ee, c as Ne, u as V, b as G, d as zt, r as ye, e as Z, f as Et, g as pn, s as sr, h as Xe, n as Fs, i as Ge, j as ft, D as mt, k as Wt, l as Kt, m as po, o as Pt, p as Ot, q as ho, R as st, t as wr, w as Ls, v as Vs, x as Hs, y as Cr, z as Er, A as va, B as ba, E as hn, F as Pr, G as Or, H as Pn, P as On, I as Tr, J as Tn, K as Br, L as ya, M as Us, N as qt, O as mo, Q as ct, S as Ln, T as _a, U as Vn, V as ka, W as Ia, X as Sr, Y as Tt, Z as Gs, $ as js, a0 as zs, a1 as Ws, a2 as Ks, a3 as Hn, a4 as Kr, a5 as ir, a6 as io, a7 as xa, a8 as wa, a9 as Ca, aa as qs, ab as Ea, ac as Wo, ad as qr, ae as Pa, af as Oa, ag as Xs, ah as gn, ai as Ta, aj as Ba, ak as Ys, al as Js, am as Sa, an as Ra, ao as ar, ap as $a, aq as Da, ar as Ma, as as Aa, at as Na, au as Fa, av as La, aw as Va, ax as Un, ay as Ha, az as Ua, aA as Ko, aB as Qs, aC as Ga, aD as it, aE as Vt, aF as Ht, aG as Ut, aH as Rr, _ as go, aI as Xr, aJ as ja, aK as Yr, aL as za, aM as Wa, a as Ka } from "./PropertyField.vue_vue_type_script_setup_true_lang-2Bfcqb0W.js";
|
|
4
4
|
const lo = () => crypto.randomUUID ? crypto.randomUUID() : Date.now().toString(36) + Math.random().toString(36).substr(2), re = (e) => e.id || e.name, fn = (e, t) => t !== void 0 && t >= 0 && t <= e ? t : e, Zs = (e, t) => t || e.regions[0] && re(e.regions[0]) || "main", ei = (e, t, o, n) => {
|
|
5
5
|
if (t) {
|
|
6
6
|
const i = e.blocks[t];
|
|
@@ -339,6 +339,9 @@ class Jr {
|
|
|
339
339
|
blocksManager;
|
|
340
340
|
emit;
|
|
341
341
|
createdBlockIds = [];
|
|
342
|
+
// Child IDs in creation order, reused on redo so children keep their IDs
|
|
343
|
+
childIds = [];
|
|
344
|
+
childIdIndex = 0;
|
|
342
345
|
constructor(t, o) {
|
|
343
346
|
if (this.getPage = t, this.blockType = o.blockType, this.presetIndex = o.presetIndex, this.presetData = o.presetData, this.parentId = o.parentId, this.regionId = o.regionId, this.index = o.index, this.blockId = lo(), this.blocksManager = o.blocksManager, this.emit = o.emit, o.presetIndex === void 0 && !o.presetData)
|
|
344
347
|
throw new Error("Either presetIndex or presetData must be provided");
|
|
@@ -360,7 +363,7 @@ class Jr {
|
|
|
360
363
|
const t = this.getPage(), o = ei(t, this.parentId, this.regionId, this.index);
|
|
361
364
|
this.resolvedRegionId = o.kind === "region" ? o.regionId : void 0;
|
|
362
365
|
const n = this.blocksManager.get(this.blockType);
|
|
363
|
-
if (this.presetData)
|
|
366
|
+
if (this.createdBlockIds = [], this.childIdIndex = 0, this.presetData)
|
|
364
367
|
this.insertedBlock = {
|
|
365
368
|
...structuredClone(this.presetData),
|
|
366
369
|
type: this.blockType,
|
|
@@ -423,7 +426,7 @@ class Jr {
|
|
|
423
426
|
createChildrenFromPreset(t, o, n) {
|
|
424
427
|
const r = [];
|
|
425
428
|
for (const s of o) {
|
|
426
|
-
const i =
|
|
429
|
+
const i = this.nextChildId(), c = this.blocksManager.get(s.type);
|
|
427
430
|
if (!c) {
|
|
428
431
|
console.warn(`Block type '${s.type}' not found, skipping child`);
|
|
429
432
|
continue;
|
|
@@ -442,6 +445,9 @@ class Jr {
|
|
|
442
445
|
}
|
|
443
446
|
return r;
|
|
444
447
|
}
|
|
448
|
+
nextChildId() {
|
|
449
|
+
return this.childIdIndex === this.childIds.length && this.childIds.push(lo()), this.childIds[this.childIdIndex++];
|
|
450
|
+
}
|
|
445
451
|
buildProperties(t, o) {
|
|
446
452
|
const n = {};
|
|
447
453
|
if (t?.properties)
|
|
@@ -454,6 +460,7 @@ class Za {
|
|
|
454
460
|
getPage;
|
|
455
461
|
blockId;
|
|
456
462
|
removedBlock;
|
|
463
|
+
removedDescendants = [];
|
|
457
464
|
originalIndex;
|
|
458
465
|
originalParentId;
|
|
459
466
|
regionId;
|
|
@@ -472,6 +479,9 @@ class Za {
|
|
|
472
479
|
const o = t.regions.find((n) => n.blocks.includes(this.blockId));
|
|
473
480
|
o && (this.originalIndex = o.blocks.indexOf(this.blockId), this.regionId = re(o), o.blocks.splice(this.originalIndex, 1));
|
|
474
481
|
}
|
|
482
|
+
this.removedDescendants = this.collectDescendants(t, this.removedBlock);
|
|
483
|
+
for (const o of this.removedDescendants)
|
|
484
|
+
delete t.blocks[o.id];
|
|
475
485
|
delete t.blocks[this.blockId], this.emit("block:remove", {
|
|
476
486
|
blockId: this.blockId,
|
|
477
487
|
block: this.removedBlock,
|
|
@@ -483,7 +493,10 @@ class Za {
|
|
|
483
493
|
if (!this.removedBlock || this.originalIndex === void 0)
|
|
484
494
|
return;
|
|
485
495
|
const t = this.getPage();
|
|
486
|
-
|
|
496
|
+
t.blocks[this.blockId] = this.removedBlock;
|
|
497
|
+
for (const o of this.removedDescendants)
|
|
498
|
+
t.blocks[o.id] = o;
|
|
499
|
+
if (this.originalParentId) {
|
|
487
500
|
const o = t.blocks[this.originalParentId];
|
|
488
501
|
o && o.children.splice(this.originalIndex, 0, this.blockId);
|
|
489
502
|
} else if (this.regionId) {
|
|
@@ -504,6 +517,14 @@ class Za {
|
|
|
504
517
|
getRemovedBlock() {
|
|
505
518
|
return this.removedBlock;
|
|
506
519
|
}
|
|
520
|
+
collectDescendants(t, o) {
|
|
521
|
+
const n = [];
|
|
522
|
+
for (const r of o.children) {
|
|
523
|
+
const s = t.blocks[r];
|
|
524
|
+
s && n.push(s, ...this.collectDescendants(t, s));
|
|
525
|
+
}
|
|
526
|
+
return n;
|
|
527
|
+
}
|
|
507
528
|
}
|
|
508
529
|
class el {
|
|
509
530
|
getPage;
|
|
@@ -516,6 +537,8 @@ class el {
|
|
|
516
537
|
originalParentId;
|
|
517
538
|
originalIndex;
|
|
518
539
|
originalRegionId;
|
|
540
|
+
resolvedIndex;
|
|
541
|
+
resolvedRegionId;
|
|
519
542
|
emit;
|
|
520
543
|
constructor(t, o) {
|
|
521
544
|
this.getPage = t, this.blockId = o.blockId, this.targetParentId = o.targetParentId, this.targetIndex = o.targetIndex, this.targetRegionId = o.targetRegionId, this.emit = o.emit;
|
|
@@ -532,11 +555,11 @@ class el {
|
|
|
532
555
|
const r = t.regions.find((s) => re(s) === this.originalRegionId);
|
|
533
556
|
r && this.originalIndex !== -1 && r.blocks.splice(this.originalIndex, 1);
|
|
534
557
|
}
|
|
535
|
-
n.kind === "parent" ? (o.parentId = n.parent.id, n.parent.children.splice(n.index, 0, this.blockId)) : (o.parentId = void 0, t.regions.find((s) => re(s) === n.regionId).blocks.splice(n.index, 0, this.blockId)), this.moved = !0, this.emit("block:move", {
|
|
558
|
+
n.kind === "parent" ? (o.parentId = n.parent.id, n.parent.children.splice(n.index, 0, this.blockId)) : (o.parentId = void 0, t.regions.find((s) => re(s) === n.regionId).blocks.splice(n.index, 0, this.blockId)), this.moved = !0, this.resolvedIndex = n.index, this.resolvedRegionId = n.kind === "region" ? n.regionId : void 0, this.emit("block:move", {
|
|
536
559
|
blockId: this.blockId,
|
|
537
560
|
targetParentId: this.targetParentId,
|
|
538
|
-
targetIndex: this.
|
|
539
|
-
targetRegionId:
|
|
561
|
+
targetIndex: this.resolvedIndex,
|
|
562
|
+
targetRegionId: this.resolvedRegionId,
|
|
540
563
|
sourceParentId: this.originalParentId || null,
|
|
541
564
|
sourceRegionId: this.originalRegionId || null,
|
|
542
565
|
sourceIndex: this.originalIndex
|
|
@@ -607,8 +630,8 @@ class el {
|
|
|
607
630
|
targetIndex: this.originalIndex,
|
|
608
631
|
targetRegionId: this.originalRegionId,
|
|
609
632
|
sourceParentId: this.targetParentId || null,
|
|
610
|
-
sourceRegionId: this.
|
|
611
|
-
sourceIndex: this.
|
|
633
|
+
sourceRegionId: this.resolvedRegionId || null,
|
|
634
|
+
sourceIndex: this.resolvedIndex
|
|
612
635
|
});
|
|
613
636
|
}
|
|
614
637
|
}
|
|
@@ -725,14 +748,16 @@ class nl {
|
|
|
725
748
|
insertIndex;
|
|
726
749
|
regionId;
|
|
727
750
|
emit;
|
|
751
|
+
// Original descendant ID -> copy ID, reused on redo so the copy keeps its IDs
|
|
752
|
+
cloneIds = /* @__PURE__ */ new Map();
|
|
728
753
|
constructor(t, o) {
|
|
729
|
-
this.getPage = t, this.blockId = o.blockId, this.emit = o.emit;
|
|
754
|
+
this.getPage = t, this.blockId = o.blockId, this.duplicatedBlockId = lo(), this.emit = o.emit;
|
|
730
755
|
}
|
|
731
756
|
apply() {
|
|
732
757
|
const t = this.getPage(), o = t.blocks[this.blockId];
|
|
733
758
|
if (!o)
|
|
734
759
|
throw new Error(`Block not found: ${this.blockId}`);
|
|
735
|
-
this.
|
|
760
|
+
this.duplicatedBlock = this.cloneBlockWithNewIds(
|
|
736
761
|
t,
|
|
737
762
|
o,
|
|
738
763
|
this.duplicatedBlockId,
|
|
@@ -747,7 +772,12 @@ class nl {
|
|
|
747
772
|
});
|
|
748
773
|
}
|
|
749
774
|
revert() {
|
|
750
|
-
!this.duplicatedBlock || !this.duplicatedBlockId || this.removeDuplicatedBlock(this.getPage())
|
|
775
|
+
!this.duplicatedBlock || !this.duplicatedBlockId || (this.removeDuplicatedBlock(this.getPage()), this.emit("block:remove", {
|
|
776
|
+
blockId: this.duplicatedBlockId,
|
|
777
|
+
block: this.duplicatedBlock,
|
|
778
|
+
parentId: this.parentId || void 0,
|
|
779
|
+
regionId: this.regionId || void 0
|
|
780
|
+
}));
|
|
751
781
|
}
|
|
752
782
|
getBlockId() {
|
|
753
783
|
return this.blockId;
|
|
@@ -778,8 +808,8 @@ class nl {
|
|
|
778
808
|
for (const i of o.children) {
|
|
779
809
|
const c = t.blocks[i];
|
|
780
810
|
if (c) {
|
|
781
|
-
|
|
782
|
-
this.cloneBlockWithNewIds(t, c, l, n), s.children.push(l);
|
|
811
|
+
let l = this.cloneIds.get(i);
|
|
812
|
+
l || (l = lo(), this.cloneIds.set(i, l)), this.cloneBlockWithNewIds(t, c, l, n), s.children.push(l);
|
|
783
813
|
}
|
|
784
814
|
}
|
|
785
815
|
return t.blocks[n] = s, s;
|
|
@@ -1413,7 +1443,7 @@ function ll(e, t) {
|
|
|
1413
1443
|
}, null, -1)
|
|
1414
1444
|
])]);
|
|
1415
1445
|
}
|
|
1416
|
-
const
|
|
1446
|
+
const $r = ee({ name: "heroicons-x-mark", render: ll }), [oi, Fo] = Ne("AccordionContext"), cl = /* @__PURE__ */ B({
|
|
1417
1447
|
__name: "accordion-context",
|
|
1418
1448
|
setup(e) {
|
|
1419
1449
|
const t = Fo();
|
|
@@ -1922,7 +1952,7 @@ const bl = (e = {}, t) => {
|
|
|
1922
1952
|
}, 16, ["as-child"]));
|
|
1923
1953
|
}
|
|
1924
1954
|
});
|
|
1925
|
-
var
|
|
1955
|
+
var Rl = Et("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator"), vo = Rl.build(), mn = (e) => e.ids?.root ?? `accordion:${e.id}`, $l = (e, t) => e.ids?.item?.(t) ?? `accordion:${e.id}:item:${t}`, Qr = (e, t) => e.ids?.itemContent?.(t) ?? `accordion:${e.id}:content:${t}`, vn = (e, t) => e.ids?.itemTrigger?.(t) ?? `accordion:${e.id}:trigger:${t}`, Dl = (e) => e.getById(mn(e)), Bn = (e) => {
|
|
1926
1956
|
const o = `[aria-controls][data-ownedby='${CSS.escape(mn(e))}']:not([disabled])`;
|
|
1927
1957
|
return Or(Dl(e), o);
|
|
1928
1958
|
}, Ml = (e) => Er(Bn(e)), Al = (e) => Cr(Bn(e)), Nl = (e, t) => Hs(Bn(e), vn(e, t)), Fl = (e, t) => Vs(Bn(e), vn(e, t));
|
|
@@ -1957,7 +1987,7 @@ function Ll(e, t) {
|
|
|
1957
1987
|
return t.element({
|
|
1958
1988
|
...vo.item.attrs,
|
|
1959
1989
|
dir: r("dir"),
|
|
1960
|
-
id:
|
|
1990
|
+
id: $l(s, u.value),
|
|
1961
1991
|
"data-state": p.expanded ? "open" : "closed",
|
|
1962
1992
|
"data-focus": Z(p.focused),
|
|
1963
1993
|
"data-disabled": Z(p.disabled),
|
|
@@ -2798,7 +2828,7 @@ var mc = Et("dialog").parts(
|
|
|
2798
2828
|
"title",
|
|
2799
2829
|
"description",
|
|
2800
2830
|
"closeTrigger"
|
|
2801
|
-
),
|
|
2831
|
+
), $t = mc.build(), ui = (e) => e.ids?.positioner ?? `dialog:${e.id}:positioner`, pi = (e) => e.ids?.backdrop ?? `dialog:${e.id}:backdrop`, dr = (e) => e.ids?.content ?? `dialog:${e.id}:content`, hi = (e) => e.ids?.trigger ?? `dialog:${e.id}:trigger`, ur = (e) => e.ids?.title ?? `dialog:${e.id}:title`, pr = (e) => e.ids?.description ?? `dialog:${e.id}:description`, gi = (e) => e.ids?.closeTrigger ?? `dialog:${e.id}:close`, Qo = (e) => e.getById(dr(e)), vc = (e) => e.getById(ui(e)), bc = (e) => e.getById(pi(e)), yc = (e) => e.getById(hi(e)), _c = (e) => e.getById(ur(e)), kc = (e) => e.getById(pr(e)), Ic = (e) => e.getById(gi(e));
|
|
2802
2832
|
function xc(e, t) {
|
|
2803
2833
|
const { state: o, send: n, context: r, prop: s, scope: i } = e, c = s("aria-label"), l = o.matches("open");
|
|
2804
2834
|
return {
|
|
@@ -2808,7 +2838,7 @@ function xc(e, t) {
|
|
|
2808
2838
|
},
|
|
2809
2839
|
getTriggerProps() {
|
|
2810
2840
|
return t.button({
|
|
2811
|
-
|
|
2841
|
+
...$t.trigger.attrs,
|
|
2812
2842
|
dir: s("dir"),
|
|
2813
2843
|
id: hi(i),
|
|
2814
2844
|
"aria-haspopup": "dialog",
|
|
@@ -2823,7 +2853,7 @@ function xc(e, t) {
|
|
|
2823
2853
|
},
|
|
2824
2854
|
getBackdropProps() {
|
|
2825
2855
|
return t.element({
|
|
2826
|
-
|
|
2856
|
+
...$t.backdrop.attrs,
|
|
2827
2857
|
dir: s("dir"),
|
|
2828
2858
|
hidden: !l,
|
|
2829
2859
|
id: pi(i),
|
|
@@ -2832,7 +2862,7 @@ function xc(e, t) {
|
|
|
2832
2862
|
},
|
|
2833
2863
|
getPositionerProps() {
|
|
2834
2864
|
return t.element({
|
|
2835
|
-
|
|
2865
|
+
...$t.positioner.attrs,
|
|
2836
2866
|
dir: s("dir"),
|
|
2837
2867
|
id: ui(i),
|
|
2838
2868
|
style: {
|
|
@@ -2843,7 +2873,7 @@ function xc(e, t) {
|
|
|
2843
2873
|
getContentProps() {
|
|
2844
2874
|
const d = r.get("rendered");
|
|
2845
2875
|
return t.element({
|
|
2846
|
-
|
|
2876
|
+
...$t.content.attrs,
|
|
2847
2877
|
dir: s("dir"),
|
|
2848
2878
|
role: s("role"),
|
|
2849
2879
|
hidden: !l,
|
|
@@ -2858,21 +2888,21 @@ function xc(e, t) {
|
|
|
2858
2888
|
},
|
|
2859
2889
|
getTitleProps() {
|
|
2860
2890
|
return t.element({
|
|
2861
|
-
|
|
2891
|
+
...$t.title.attrs,
|
|
2862
2892
|
dir: s("dir"),
|
|
2863
2893
|
id: ur(i)
|
|
2864
2894
|
});
|
|
2865
2895
|
},
|
|
2866
2896
|
getDescriptionProps() {
|
|
2867
2897
|
return t.element({
|
|
2868
|
-
|
|
2898
|
+
...$t.description.attrs,
|
|
2869
2899
|
dir: s("dir"),
|
|
2870
2900
|
id: pr(i)
|
|
2871
2901
|
});
|
|
2872
2902
|
},
|
|
2873
2903
|
getCloseTriggerProps() {
|
|
2874
2904
|
return t.button({
|
|
2875
|
-
|
|
2905
|
+
...$t.closeTrigger.attrs,
|
|
2876
2906
|
dir: s("dir"),
|
|
2877
2907
|
id: gi(i),
|
|
2878
2908
|
type: "button",
|
|
@@ -3212,7 +3242,7 @@ const Cc = (e = {}, t) => {
|
|
|
3212
3242
|
_: 3
|
|
3213
3243
|
}, 16, ["as-child"]));
|
|
3214
3244
|
}
|
|
3215
|
-
}),
|
|
3245
|
+
}), Rc = /* @__PURE__ */ B({
|
|
3216
3246
|
__name: "field-input",
|
|
3217
3247
|
props: {
|
|
3218
3248
|
modelValue: {},
|
|
@@ -3232,7 +3262,7 @@ const Cc = (e = {}, t) => {
|
|
|
3232
3262
|
_: 3
|
|
3233
3263
|
}, 16, ["as-child", "value"]));
|
|
3234
3264
|
}
|
|
3235
|
-
}),
|
|
3265
|
+
}), $c = /* @__PURE__ */ B({
|
|
3236
3266
|
__name: "field-label",
|
|
3237
3267
|
props: {
|
|
3238
3268
|
asChild: { type: Boolean }
|
|
@@ -3295,13 +3325,13 @@ const Cc = (e = {}, t) => {
|
|
|
3295
3325
|
const f = js(s);
|
|
3296
3326
|
if (!f) return;
|
|
3297
3327
|
const P = () => {
|
|
3298
|
-
const
|
|
3299
|
-
o.hasErrorText =
|
|
3328
|
+
const $ = t.value.getRootNode();
|
|
3329
|
+
o.hasErrorText = !!$.getElementById(c.value), o.hasHelperText = !!$.getElementById(l.value);
|
|
3300
3330
|
};
|
|
3301
3331
|
P();
|
|
3302
|
-
const N = t.value.getWindow(),
|
|
3303
|
-
|
|
3304
|
-
|
|
3332
|
+
const N = t.value.getWindow(), R = new N.MutationObserver(P);
|
|
3333
|
+
R.observe(f, { childList: !0, subtree: !0 }), Cn(() => {
|
|
3334
|
+
R.disconnect();
|
|
3305
3335
|
});
|
|
3306
3336
|
});
|
|
3307
3337
|
const h = () => {
|
|
@@ -3502,8 +3532,8 @@ const Hc = /* @__PURE__ */ B({
|
|
|
3502
3532
|
Context: Tc,
|
|
3503
3533
|
ErrorText: Bc,
|
|
3504
3534
|
HelperText: Sc,
|
|
3505
|
-
Input:
|
|
3506
|
-
Label:
|
|
3535
|
+
Input: Rc,
|
|
3536
|
+
Label: $c,
|
|
3507
3537
|
RequiredIndicator: Dc,
|
|
3508
3538
|
Root: Fc,
|
|
3509
3539
|
RootProvider: Mc,
|
|
@@ -3804,7 +3834,7 @@ var ad = Et("menu").parts(
|
|
|
3804
3834
|
return Or(kt(e), o);
|
|
3805
3835
|
}, ud = (e) => Er(Vo(e)), pd = (e) => Cr(Vo(e)), Ar = (e, t) => t ? e.id === t || e.dataset.value === t : !1, hd = (e, t) => {
|
|
3806
3836
|
const o = Vo(e), n = o.findIndex((r) => Ar(r, t.value));
|
|
3807
|
-
return
|
|
3837
|
+
return Ra(o, n, { loop: t.loop ?? t.loopFocus });
|
|
3808
3838
|
}, gd = (e, t) => {
|
|
3809
3839
|
const o = Vo(e), n = o.findIndex((r) => Ar(r, t.value));
|
|
3810
3840
|
return Sa(o, n, { loop: t.loop ?? t.loopFocus });
|
|
@@ -3840,37 +3870,37 @@ function bd(e, t) {
|
|
|
3840
3870
|
};
|
|
3841
3871
|
}
|
|
3842
3872
|
function D(f) {
|
|
3843
|
-
const { closeOnSelect: P, valueText: N, value:
|
|
3873
|
+
const { closeOnSelect: P, valueText: N, value: R } = f, $ = I(f), L = Do(c, R);
|
|
3844
3874
|
return t.element({
|
|
3845
3875
|
...Se.item.attrs,
|
|
3846
3876
|
id: L,
|
|
3847
3877
|
role: "menuitem",
|
|
3848
|
-
"aria-disabled": zs(
|
|
3849
|
-
"data-disabled": Z(
|
|
3878
|
+
"aria-disabled": zs($.disabled),
|
|
3879
|
+
"data-disabled": Z($.disabled),
|
|
3850
3880
|
"data-ownedby": Eo(c),
|
|
3851
|
-
"data-highlighted": Z(
|
|
3852
|
-
"data-value":
|
|
3881
|
+
"data-highlighted": Z($.highlighted),
|
|
3882
|
+
"data-value": R,
|
|
3853
3883
|
"data-valuetext": N,
|
|
3854
3884
|
onDragStart(M) {
|
|
3855
3885
|
M.currentTarget.matches("a[href]") && M.preventDefault();
|
|
3856
3886
|
},
|
|
3857
3887
|
onPointerMove(M) {
|
|
3858
|
-
if (
|
|
3888
|
+
if ($.disabled || M.pointerType !== "mouse") return;
|
|
3859
3889
|
const z = M.currentTarget;
|
|
3860
|
-
|
|
3890
|
+
$.highlighted || n({ type: "ITEM_POINTERMOVE", id: L, target: z, closeOnSelect: P });
|
|
3861
3891
|
},
|
|
3862
3892
|
onPointerLeave(M) {
|
|
3863
|
-
if (
|
|
3893
|
+
if ($.disabled || M.pointerType !== "mouse" || !e.event.previous()?.type.includes("POINTER")) return;
|
|
3864
3894
|
const O = M.currentTarget;
|
|
3865
3895
|
n({ type: "ITEM_POINTERLEAVE", id: L, target: O, closeOnSelect: P });
|
|
3866
3896
|
},
|
|
3867
3897
|
onPointerDown(M) {
|
|
3868
|
-
if (
|
|
3898
|
+
if ($.disabled) return;
|
|
3869
3899
|
const z = M.currentTarget;
|
|
3870
3900
|
n({ type: "ITEM_POINTERDOWN", target: z, id: L, closeOnSelect: P });
|
|
3871
3901
|
},
|
|
3872
3902
|
onClick(M) {
|
|
3873
|
-
if (Kr(M) || ir(M) ||
|
|
3903
|
+
if (Kr(M) || ir(M) || $.disabled) return;
|
|
3874
3904
|
const z = M.currentTarget;
|
|
3875
3905
|
n({ type: "ITEM_CLICK", target: z, id: L, closeOnSelect: P });
|
|
3876
3906
|
}
|
|
@@ -3991,8 +4021,8 @@ function bd(e, t) {
|
|
|
3991
4021
|
}, N = hn(f, {
|
|
3992
4022
|
orientation: "vertical",
|
|
3993
4023
|
dir: i("dir")
|
|
3994
|
-
}),
|
|
3995
|
-
|
|
4024
|
+
}), R = P[N];
|
|
4025
|
+
R && (f.preventDefault(), R(f));
|
|
3996
4026
|
}
|
|
3997
4027
|
});
|
|
3998
4028
|
},
|
|
@@ -4050,7 +4080,7 @@ function bd(e, t) {
|
|
|
4050
4080
|
f.preventDefault();
|
|
4051
4081
|
return;
|
|
4052
4082
|
}
|
|
4053
|
-
const
|
|
4083
|
+
const R = {
|
|
4054
4084
|
ArrowDown() {
|
|
4055
4085
|
n({ type: "ARROW_DOWN" });
|
|
4056
4086
|
},
|
|
@@ -4067,7 +4097,7 @@ function bd(e, t) {
|
|
|
4067
4097
|
n({ type: "ENTER" });
|
|
4068
4098
|
},
|
|
4069
4099
|
Space(M) {
|
|
4070
|
-
h ? n({ type: "TYPEAHEAD", key: M.key }) :
|
|
4100
|
+
h ? n({ type: "TYPEAHEAD", key: M.key }) : R.Enter?.(M);
|
|
4071
4101
|
},
|
|
4072
4102
|
Home() {
|
|
4073
4103
|
n({ type: "HOME" });
|
|
@@ -4075,7 +4105,7 @@ function bd(e, t) {
|
|
|
4075
4105
|
End() {
|
|
4076
4106
|
n({ type: "END" });
|
|
4077
4107
|
}
|
|
4078
|
-
},
|
|
4108
|
+
}, $ = hn(f, { dir: i("dir") }), L = R[$];
|
|
4079
4109
|
if (L) {
|
|
4080
4110
|
L(f), f.stopPropagation(), f.preventDefault();
|
|
4081
4111
|
return;
|
|
@@ -4096,21 +4126,21 @@ function bd(e, t) {
|
|
|
4096
4126
|
getItemProps: D,
|
|
4097
4127
|
getOptionItemState: T,
|
|
4098
4128
|
getOptionItemProps(f) {
|
|
4099
|
-
const { type: P, disabled: N, closeOnSelect:
|
|
4129
|
+
const { type: P, disabled: N, closeOnSelect: R } = f, $ = k(f), L = T(f);
|
|
4100
4130
|
return {
|
|
4101
|
-
...D(
|
|
4131
|
+
...D($),
|
|
4102
4132
|
...t.element({
|
|
4103
4133
|
"data-type": P,
|
|
4104
4134
|
...Se.item.attrs,
|
|
4105
4135
|
dir: i("dir"),
|
|
4106
|
-
"data-value":
|
|
4136
|
+
"data-value": $.value,
|
|
4107
4137
|
role: `menuitem${P}`,
|
|
4108
4138
|
"aria-checked": !!L.checked,
|
|
4109
4139
|
"data-state": L.checked ? "checked" : "unchecked",
|
|
4110
4140
|
onClick(M) {
|
|
4111
4141
|
if (N || Kr(M) || ir(M)) return;
|
|
4112
4142
|
const z = M.currentTarget;
|
|
4113
|
-
n({ type: "ITEM_CLICK", target: z, option:
|
|
4143
|
+
n({ type: "ITEM_CLICK", target: z, option: $, closeOnSelect: R });
|
|
4114
4144
|
}
|
|
4115
4145
|
})
|
|
4116
4146
|
};
|
|
@@ -4722,7 +4752,7 @@ var { not: ze, and: Yt, or: yd } = wr(), _d = zt({
|
|
|
4722
4752
|
const n = () => {
|
|
4723
4753
|
if (e.current().type.startsWith("ITEM_POINTER")) return;
|
|
4724
4754
|
const s = t.getById(o("highlightedId")), i = kt(t);
|
|
4725
|
-
|
|
4755
|
+
$a(s, { rootEl: i, block: "nearest" });
|
|
4726
4756
|
};
|
|
4727
4757
|
return ye(() => n()), Ba(() => kt(t), {
|
|
4728
4758
|
defer: !0,
|
|
@@ -5137,7 +5167,7 @@ const xd = (e = {}, t) => {
|
|
|
5137
5167
|
_: 3
|
|
5138
5168
|
}, 16, ["as-child"]));
|
|
5139
5169
|
}
|
|
5140
|
-
}),
|
|
5170
|
+
}), Rd = /* @__PURE__ */ B({
|
|
5141
5171
|
__name: "popover-content",
|
|
5142
5172
|
props: {
|
|
5143
5173
|
asChild: { type: Boolean }
|
|
@@ -5151,7 +5181,7 @@ const xd = (e = {}, t) => {
|
|
|
5151
5181
|
_: 3
|
|
5152
5182
|
}, 16, ["as-child"]));
|
|
5153
5183
|
}
|
|
5154
|
-
}),
|
|
5184
|
+
}), $d = /* @__PURE__ */ B({
|
|
5155
5185
|
__name: "popover-context",
|
|
5156
5186
|
setup(e) {
|
|
5157
5187
|
const t = Je();
|
|
@@ -5680,8 +5710,8 @@ const Oi = (e = {}, t) => {
|
|
|
5680
5710
|
Arrow: Bd,
|
|
5681
5711
|
ArrowTip: Td,
|
|
5682
5712
|
CloseTrigger: Sd,
|
|
5683
|
-
Content:
|
|
5684
|
-
Context:
|
|
5713
|
+
Content: Rd,
|
|
5714
|
+
Context: $d,
|
|
5685
5715
|
Description: Dd,
|
|
5686
5716
|
Indicator: Md,
|
|
5687
5717
|
Positioner: Ad,
|
|
@@ -5787,8 +5817,8 @@ var eu = Et("tabs").parts("root", "list", "trigger", "content", "indicator"), _o
|
|
|
5787
5817
|
height: e?.offsetHeight ?? 0
|
|
5788
5818
|
}), lu = (e, t) => {
|
|
5789
5819
|
const o = La(Uo(e), Gt(e, t));
|
|
5790
|
-
return
|
|
5791
|
-
},
|
|
5820
|
+
return Ri(Si(o));
|
|
5821
|
+
}, Ri = (e) => ({
|
|
5792
5822
|
width: `${e.width}px`,
|
|
5793
5823
|
height: `${e.height}px`,
|
|
5794
5824
|
left: `${e.left}px`,
|
|
@@ -6187,7 +6217,7 @@ var { createMachine: du } = Na(), uu = du({
|
|
|
6187
6217
|
},
|
|
6188
6218
|
onEntry({ rects: l }) {
|
|
6189
6219
|
const [d] = l;
|
|
6190
|
-
e.set("indicatorRect",
|
|
6220
|
+
e.set("indicatorRect", Ri(d));
|
|
6191
6221
|
}
|
|
6192
6222
|
});
|
|
6193
6223
|
t.set("indicatorCleanup", c);
|
|
@@ -6287,7 +6317,7 @@ var gu = Et("toast").parts(
|
|
|
6287
6317
|
"description",
|
|
6288
6318
|
"actionTrigger",
|
|
6289
6319
|
"closeTrigger"
|
|
6290
|
-
), oo = gu.build(), fu = (e) => `toast-group:${e}`, ls = (e, t) => e.getById(`toast-group:${t}`),
|
|
6320
|
+
), oo = gu.build(), fu = (e) => `toast-group:${e}`, ls = (e, t) => e.getById(`toast-group:${t}`), $i = (e) => `toast:${e.id}`, cs = (e) => e.getById($i(e)), ds = (e) => `toast:${e.id}:title`, us = (e) => `toast:${e.id}:description`, mu = (e) => `toast${e.id}:close`, ps = {
|
|
6291
6321
|
info: 5e3,
|
|
6292
6322
|
error: 5e3,
|
|
6293
6323
|
success: 2e3,
|
|
@@ -6657,7 +6687,7 @@ function wu(e, t) {
|
|
|
6657
6687
|
return t.element({
|
|
6658
6688
|
...oo.root.attrs,
|
|
6659
6689
|
dir: r("dir"),
|
|
6660
|
-
id:
|
|
6690
|
+
id: $i(s),
|
|
6661
6691
|
"data-state": l ? "open" : "closed",
|
|
6662
6692
|
"data-type": p,
|
|
6663
6693
|
"data-placement": u,
|
|
@@ -7055,7 +7085,7 @@ var Tu = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolea
|
|
|
7055
7085
|
connect: Iu,
|
|
7056
7086
|
machine: xu
|
|
7057
7087
|
};
|
|
7058
|
-
const Bu = (e) => Ou(e), [Su, fo] = Ne("ToastContext"),
|
|
7088
|
+
const Bu = (e) => Ou(e), [Su, fo] = Ne("ToastContext"), Ru = /* @__PURE__ */ B({
|
|
7059
7089
|
__name: "toast-action-trigger",
|
|
7060
7090
|
props: {
|
|
7061
7091
|
asChild: { type: Boolean }
|
|
@@ -7069,7 +7099,7 @@ const Bu = (e) => Ou(e), [Su, fo] = Ne("ToastContext"), $u = /* @__PURE__ */ B({
|
|
|
7069
7099
|
_: 3
|
|
7070
7100
|
}, 16, ["as-child"]));
|
|
7071
7101
|
}
|
|
7072
|
-
}),
|
|
7102
|
+
}), $u = /* @__PURE__ */ B({
|
|
7073
7103
|
__name: "toast-close-trigger",
|
|
7074
7104
|
props: {
|
|
7075
7105
|
asChild: { type: Boolean }
|
|
@@ -7181,8 +7211,8 @@ const Bu = (e) => Ou(e), [Su, fo] = Ne("ToastContext"), $u = /* @__PURE__ */ B({
|
|
|
7181
7211
|
}
|
|
7182
7212
|
}), ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7183
7213
|
__proto__: null,
|
|
7184
|
-
ActionTrigger:
|
|
7185
|
-
CloseTrigger:
|
|
7214
|
+
ActionTrigger: Ru,
|
|
7215
|
+
CloseTrigger: $u,
|
|
7186
7216
|
Context: Du,
|
|
7187
7217
|
Description: Mu,
|
|
7188
7218
|
Root: Au,
|
|
@@ -7208,7 +7238,7 @@ const Bu = (e) => Ou(e), [Su, fo] = Ne("ToastContext"), $u = /* @__PURE__ */ B({
|
|
|
7208
7238
|
l.open || r(d);
|
|
7209
7239
|
};
|
|
7210
7240
|
return (l, d) => {
|
|
7211
|
-
const h =
|
|
7241
|
+
const h = $r, m = No;
|
|
7212
7242
|
return g(!0), S(me, null, Ce(a(o), (u) => (g(), S(me, { key: u }, [
|
|
7213
7243
|
a(s)[u] ? (g(), x(a(Dt).Root, {
|
|
7214
7244
|
key: 0,
|
|
@@ -7362,7 +7392,7 @@ const Wu = { class: "toast-content" }, Ku = { class: "sr-only" }, qu = /* @__PUR
|
|
|
7362
7392
|
setup(e) {
|
|
7363
7393
|
const { t } = Be(), { toaster: o } = it();
|
|
7364
7394
|
return (n, r) => {
|
|
7365
|
-
const s =
|
|
7395
|
+
const s = $r;
|
|
7366
7396
|
return g(), x(a(Lu), { toaster: a(o) }, {
|
|
7367
7397
|
default: _((i) => [
|
|
7368
7398
|
E(a(ko).Root, { class: "toast-root" }, {
|
|
@@ -7716,10 +7746,10 @@ function xp(e, t) {
|
|
|
7716
7746
|
n.setBlockName(H, Y), r || v();
|
|
7717
7747
|
}, N = (H, Y) => {
|
|
7718
7748
|
n.toggleBlock(H, Y), r || v();
|
|
7719
|
-
},
|
|
7749
|
+
}, R = (H) => {
|
|
7720
7750
|
const Y = n.duplicateBlock(H);
|
|
7721
7751
|
return r || v(), Y;
|
|
7722
|
-
},
|
|
7752
|
+
}, $ = (H, Y) => {
|
|
7723
7753
|
const ae = n.pasteBlock(H, Y);
|
|
7724
7754
|
return r || v(), ae;
|
|
7725
7755
|
}, L = (H) => {
|
|
@@ -7764,8 +7794,8 @@ function xp(e, t) {
|
|
|
7764
7794
|
setBlockProperty: f,
|
|
7765
7795
|
setBlockName: P,
|
|
7766
7796
|
toggleBlock: N,
|
|
7767
|
-
duplicateBlock:
|
|
7768
|
-
pasteBlock:
|
|
7797
|
+
duplicateBlock: R,
|
|
7798
|
+
pasteBlock: $,
|
|
7769
7799
|
replacePage: L,
|
|
7770
7800
|
replaceRegion: M,
|
|
7771
7801
|
patchBlocks: z,
|
|
@@ -7868,32 +7898,32 @@ const wp = {
|
|
|
7868
7898
|
return c(N);
|
|
7869
7899
|
}), k = b(() => {
|
|
7870
7900
|
const N = {};
|
|
7871
|
-
return I.value.forEach((
|
|
7872
|
-
const
|
|
7873
|
-
N[
|
|
7901
|
+
return I.value.forEach((R) => {
|
|
7902
|
+
const $ = R.category || "Other";
|
|
7903
|
+
N[$] || (N[$] = []), N[$].push(R);
|
|
7874
7904
|
}), N;
|
|
7875
7905
|
}), T = b(() => {
|
|
7876
7906
|
const N = u.value.trim().toLowerCase();
|
|
7877
7907
|
if (!N)
|
|
7878
7908
|
return k.value;
|
|
7879
|
-
const
|
|
7880
|
-
return Object.entries(k.value).forEach(([
|
|
7909
|
+
const R = {};
|
|
7910
|
+
return Object.entries(k.value).forEach(([$, L]) => {
|
|
7881
7911
|
const M = L.filter((z) => {
|
|
7882
7912
|
const O = z.name.toLowerCase(), w = (z.description || "").toLowerCase();
|
|
7883
7913
|
return O.includes(N) || w.includes(N);
|
|
7884
7914
|
});
|
|
7885
|
-
M.length > 0 && ($
|
|
7886
|
-
}),
|
|
7915
|
+
M.length > 0 && (R[$] = M);
|
|
7916
|
+
}), R;
|
|
7887
7917
|
}), D = (N) => {
|
|
7888
7918
|
if (!m.value)
|
|
7889
7919
|
return;
|
|
7890
|
-
let
|
|
7920
|
+
let R;
|
|
7891
7921
|
try {
|
|
7892
|
-
N.presetIndex !== void 0 ?
|
|
7922
|
+
N.presetIndex !== void 0 ? R = s(N.blockType, N.presetIndex, {
|
|
7893
7923
|
parentId: m.value.parentId,
|
|
7894
7924
|
regionId: m.value.regionId,
|
|
7895
7925
|
index: m.value.index
|
|
7896
|
-
}) :
|
|
7926
|
+
}) : R = r(N.blockType, {
|
|
7897
7927
|
parentId: m.value.parentId,
|
|
7898
7928
|
regionId: m.value.regionId,
|
|
7899
7929
|
index: m.value.index
|
|
@@ -7905,10 +7935,10 @@ const wp = {
|
|
|
7905
7935
|
}), P();
|
|
7906
7936
|
return;
|
|
7907
7937
|
}
|
|
7908
|
-
const
|
|
7909
|
-
|
|
7910
|
-
}, f = ({ anchor: N, context:
|
|
7911
|
-
h.value = N, m.value =
|
|
7938
|
+
const $ = n.getBlocksManager().get(N.blockType);
|
|
7939
|
+
$?.accepts && $.accepts.length > 0 && l(R, !0), P();
|
|
7940
|
+
}, f = ({ anchor: N, context: R }) => {
|
|
7941
|
+
h.value = N, m.value = R || null, y.value.setOpen(!0), y.value.reposition();
|
|
7912
7942
|
}, P = () => {
|
|
7913
7943
|
y.value.setOpen(!1), m.value = null, h.value = null, u.value = "";
|
|
7914
7944
|
};
|
|
@@ -7916,8 +7946,8 @@ const wp = {
|
|
|
7916
7946
|
o.on("blocks-popover:open", f), o.on("blocks-popover:close", P);
|
|
7917
7947
|
}), Ao(() => {
|
|
7918
7948
|
o.off("blocks-popover:open", f), o.off("blocks-popover:close", P);
|
|
7919
|
-
}), (N,
|
|
7920
|
-
const
|
|
7949
|
+
}), (N, R) => {
|
|
7950
|
+
const $ = Ip;
|
|
7921
7951
|
return g(), x(a(dt).RootProvider, { value: a(y) }, {
|
|
7922
7952
|
default: _(() => [
|
|
7923
7953
|
E(a(dt).Positioner, { class: "!z-[1100]" }, {
|
|
@@ -7928,7 +7958,7 @@ const wp = {
|
|
|
7928
7958
|
default: _(() => [
|
|
7929
7959
|
E(a(ts).Input, {
|
|
7930
7960
|
modelValue: a(u),
|
|
7931
|
-
"onUpdate:modelValue":
|
|
7961
|
+
"onUpdate:modelValue": R[0] || (R[0] = (L) => et(u) ? u.value = L : null),
|
|
7932
7962
|
class: "rounded border w-full text-sm h-8 px-3 focus-visible:ring-2 focus-visible:border-transparent focus-visible:ring-accent focus-visible:outline-none",
|
|
7933
7963
|
placeholder: a(t)("blocksPopover.searchPlaceholder")
|
|
7934
7964
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -7969,7 +7999,7 @@ const wp = {
|
|
|
7969
7999
|
class: "flex-1 overflow-hidden mt-2"
|
|
7970
8000
|
}, {
|
|
7971
8001
|
default: _(() => [
|
|
7972
|
-
E(
|
|
8002
|
+
E($, {
|
|
7973
8003
|
"blocks-by-category": a(T),
|
|
7974
8004
|
"search-query": a(u),
|
|
7975
8005
|
onBlockSelect: D
|
|
@@ -7980,7 +8010,7 @@ const wp = {
|
|
|
7980
8010
|
]),
|
|
7981
8011
|
_: 1
|
|
7982
8012
|
})) : (g(), S("div", wp, [
|
|
7983
|
-
E(
|
|
8013
|
+
E($, {
|
|
7984
8014
|
"blocks-by-category": a(T),
|
|
7985
8015
|
"search-query": a(u),
|
|
7986
8016
|
onBlockSelect: D
|
|
@@ -8036,7 +8066,7 @@ const Lr = ee({ name: "heroicons-trash", render: Bp }), Sp = {
|
|
|
8036
8066
|
width: "1.2em",
|
|
8037
8067
|
height: "1.2em"
|
|
8038
8068
|
};
|
|
8039
|
-
function
|
|
8069
|
+
function Rp(e, t) {
|
|
8040
8070
|
return g(), S("svg", Sp, [...t[0] || (t[0] = [
|
|
8041
8071
|
C("path", {
|
|
8042
8072
|
fill: "none",
|
|
@@ -8048,13 +8078,13 @@ function $p(e, t) {
|
|
|
8048
8078
|
}, null, -1)
|
|
8049
8079
|
])]);
|
|
8050
8080
|
}
|
|
8051
|
-
const Vr = ee({ name: "heroicons-eye-slash", render:
|
|
8081
|
+
const Vr = ee({ name: "heroicons-eye-slash", render: Rp }), $p = {
|
|
8052
8082
|
viewBox: "0 0 24 24",
|
|
8053
8083
|
width: "1.2em",
|
|
8054
8084
|
height: "1.2em"
|
|
8055
8085
|
};
|
|
8056
8086
|
function Dp(e, t) {
|
|
8057
|
-
return g(), S("svg",
|
|
8087
|
+
return g(), S("svg", $p, [...t[0] || (t[0] = [
|
|
8058
8088
|
C("g", {
|
|
8059
8089
|
fill: "none",
|
|
8060
8090
|
stroke: "currentColor",
|
|
@@ -8305,7 +8335,7 @@ const Xp = {
|
|
|
8305
8335
|
targetIndex: M
|
|
8306
8336
|
});
|
|
8307
8337
|
}
|
|
8308
|
-
function
|
|
8338
|
+
function R() {
|
|
8309
8339
|
if (!l.value || !T.value)
|
|
8310
8340
|
return;
|
|
8311
8341
|
const M = T.value.currentIndex - 1;
|
|
@@ -8317,7 +8347,7 @@ const Xp = {
|
|
|
8317
8347
|
targetIndex: M
|
|
8318
8348
|
});
|
|
8319
8349
|
}
|
|
8320
|
-
function
|
|
8350
|
+
function $() {
|
|
8321
8351
|
l.value && s(l.value.id);
|
|
8322
8352
|
}
|
|
8323
8353
|
function L() {
|
|
@@ -8380,7 +8410,7 @@ const Xp = {
|
|
|
8380
8410
|
E(a(ce).Item, {
|
|
8381
8411
|
value: "move-next",
|
|
8382
8412
|
disabled: !a(D),
|
|
8383
|
-
onSelect:
|
|
8413
|
+
onSelect: R,
|
|
8384
8414
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"
|
|
8385
8415
|
}, {
|
|
8386
8416
|
default: _(() => [
|
|
@@ -8403,7 +8433,7 @@ const Xp = {
|
|
|
8403
8433
|
}, 8, ["disabled"]),
|
|
8404
8434
|
E(a(ce).Item, {
|
|
8405
8435
|
value: "toggle",
|
|
8406
|
-
onSelect:
|
|
8436
|
+
onSelect: $,
|
|
8407
8437
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
8408
8438
|
}, {
|
|
8409
8439
|
default: _(() => [
|
|
@@ -8632,7 +8662,7 @@ function Ih(e, t) {
|
|
|
8632
8662
|
])]);
|
|
8633
8663
|
}
|
|
8634
8664
|
const xh = ee({ name: "heroicons-arrow-long-up16-solid", render: Ih });
|
|
8635
|
-
function
|
|
8665
|
+
function Rn() {
|
|
8636
8666
|
const e = Oe(Ee);
|
|
8637
8667
|
if (!e)
|
|
8638
8668
|
throw new Error("useInspector must be used within a component that has access to CraftileEditor");
|
|
@@ -8661,7 +8691,7 @@ const wh = {
|
|
|
8661
8691
|
zoomScale: { default: 1 }
|
|
8662
8692
|
},
|
|
8663
8693
|
setup(e) {
|
|
8664
|
-
const t = e, { t: o } = Be(), { engine: n, getBlockById: r } = Fe(), { isEnabled: s, selectedBlockRect: i, iframeRect: c } =
|
|
8694
|
+
const t = e, { t: o } = Be(), { engine: n, getBlockById: r } = Fe(), { isEnabled: s, selectedBlockRect: i, iframeRect: c } = Rn(), { selectedBlock: l, canMoveToPrevious: d, canMoveToNext: h, moveToPrevious: m, moveToNext: u, duplicate: p, toggle: v, remove: y } = vt(), I = se(), k = se({ width: 200, height: 42 }), T = b(() => s.value && i.value && c.value && !l.value?.disabled && !l.value?.ghost), D = b(() => l.value?.static === !0), f = b(() => {
|
|
8665
8695
|
if (!l.value)
|
|
8666
8696
|
return { name: o("common.block"), icon: "" };
|
|
8667
8697
|
const M = r(l.value.id);
|
|
@@ -8672,11 +8702,11 @@ const wh = {
|
|
|
8672
8702
|
name: z?.meta?.name || M.type || o("common.block"),
|
|
8673
8703
|
icon: z?.meta?.icon || ""
|
|
8674
8704
|
};
|
|
8675
|
-
}), P = b(() => f.value.name), N = b(() => f.value.icon),
|
|
8705
|
+
}), P = b(() => f.value.name), N = b(() => f.value.icon), R = b(() => {
|
|
8676
8706
|
if (!i.value || !P.value) return !1;
|
|
8677
8707
|
const M = 20 + P.value.length * 7 + 20;
|
|
8678
8708
|
return i.value.width >= M;
|
|
8679
|
-
}),
|
|
8709
|
+
}), $ = b(() => !i.value || !c.value ? {} : {
|
|
8680
8710
|
position: "absolute",
|
|
8681
8711
|
left: `${i.value.left}px`,
|
|
8682
8712
|
top: `${i.value.top}px`,
|
|
@@ -8706,9 +8736,9 @@ const wh = {
|
|
|
8706
8736
|
return a(T) ? (g(), S("div", {
|
|
8707
8737
|
key: 0,
|
|
8708
8738
|
class: "absolute inset-0 w-full h-full pointer-events-none z-10",
|
|
8709
|
-
style:
|
|
8739
|
+
style: $o(a($))
|
|
8710
8740
|
}, [
|
|
8711
|
-
a(
|
|
8741
|
+
a(R) ? (g(), S("div", wh, [
|
|
8712
8742
|
C("span", {
|
|
8713
8743
|
class: "w-3 h-3 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8714
8744
|
innerHTML: a(N)
|
|
@@ -8720,7 +8750,7 @@ const wh = {
|
|
|
8720
8750
|
ref_key: "toolbarElement",
|
|
8721
8751
|
ref: I,
|
|
8722
8752
|
class: "absolute flex gap-0.5 bg-gray-800 rounded p-0.5 shadow-lg shadow-black/25 ring-1 ring-white/10 z-10 pointer-events-auto",
|
|
8723
|
-
style:
|
|
8753
|
+
style: $o(a(L))
|
|
8724
8754
|
}, [
|
|
8725
8755
|
a(D) ? J("", !0) : (g(), x(w, {
|
|
8726
8756
|
key: 0,
|
|
@@ -8798,11 +8828,11 @@ function Oh(e, t) {
|
|
|
8798
8828
|
const Ur = ee({ name: "heroicons-plus", render: Oh }), Th = {
|
|
8799
8829
|
key: 0,
|
|
8800
8830
|
class: "absolute top-0 left-0 w-full h-full pointer-events-none z-[1000]"
|
|
8801
|
-
}, Bh = { class: "bg-blue-500 text-white px-1 py-0.5 rounded-t font-medium text-[0.60rem] flex items-center gap-0.5 pointer-events-none absolute -left-[1px] -top-[19px] max-w-full overflow-hidden" }, Sh = ["innerHTML"],
|
|
8831
|
+
}, Bh = { class: "bg-blue-500 text-white px-1 py-0.5 rounded-t font-medium text-[0.60rem] flex items-center gap-0.5 pointer-events-none absolute -left-[1px] -top-[19px] max-w-full overflow-hidden" }, Sh = ["innerHTML"], Rh = { class: "truncate min-w-0" }, $h = /* @__PURE__ */ B({
|
|
8802
8832
|
__name: "HoveredBlockOverlay",
|
|
8803
8833
|
emits: ["insertBefore", "insertAfter", "buttonEnter", "buttonLeave"],
|
|
8804
8834
|
setup(e, { emit: t }) {
|
|
8805
|
-
const o = t, { t: n } = Be(), { engine: r, getBlockById: s } = Fe(), { isEnabled: i, iframeRect: c, hoveredBlockId: l, hoveredBlockRect: d, hoveredParentRect: h, parentFlexDirection: m } =
|
|
8835
|
+
const o = t, { t: n } = Be(), { engine: r, getBlockById: s } = Fe(), { isEnabled: i, iframeRect: c, hoveredBlockId: l, hoveredBlockRect: d, hoveredParentRect: h, parentFlexDirection: m } = Rn(), { selectedBlockId: u } = vt(), p = b(() => i.value && l.value && l.value !== u.value), v = b(() => {
|
|
8806
8836
|
if (!l.value)
|
|
8807
8837
|
return { name: n("common.block"), icon: "" };
|
|
8808
8838
|
const D = s(l.value);
|
|
@@ -8832,18 +8862,18 @@ const Ur = ee({ name: "heroicons-plus", render: Oh }), Th = {
|
|
|
8832
8862
|
a(h) ? (g(), S("div", {
|
|
8833
8863
|
key: 0,
|
|
8834
8864
|
class: "border border-dashed border-slate-400 bg-transparent pointer-events-none box-border absolute",
|
|
8835
|
-
style:
|
|
8865
|
+
style: $o(a(k))
|
|
8836
8866
|
}, null, 4)) : J("", !0),
|
|
8837
8867
|
C("div", {
|
|
8838
8868
|
class: "border border-dashed border-blue-500 bg-transparent pointer-events-none box-border relative",
|
|
8839
|
-
style:
|
|
8869
|
+
style: $o(a(T))
|
|
8840
8870
|
}, [
|
|
8841
8871
|
C("div", Bh, [
|
|
8842
8872
|
C("span", {
|
|
8843
8873
|
class: "w-3 h-3 shrink-0 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8844
8874
|
innerHTML: a(I)
|
|
8845
8875
|
}, null, 8, Sh),
|
|
8846
|
-
C("span",
|
|
8876
|
+
C("span", Rh, j(a(y)), 1)
|
|
8847
8877
|
]),
|
|
8848
8878
|
C("button", {
|
|
8849
8879
|
class: Ie(["w-4 h-4 bg-blue-500/90 border border-white/20 rounded-full flex items-center justify-center text-white cursor-pointer pointer-events-auto opacity-80 shadow-sm hover:opacity-100 hover:bg-blue-500 absolute", {
|
|
@@ -8893,54 +8923,54 @@ function Dh() {
|
|
|
8893
8923
|
const Mh = ["src"], Ah = /* @__PURE__ */ B({
|
|
8894
8924
|
__name: "PreviewCanvas",
|
|
8895
8925
|
setup(e) {
|
|
8896
|
-
const { currentDeviceData: t } =
|
|
8926
|
+
const { currentDeviceData: t } = Rr(), { currentPreviewUrl: o, registerFrame: n, sendMessage: r } = Dh(), { updateIframeRect: s, clearHoveredBlock: i } = Rn(), { open: c, getInsertionContext: l } = Go(), { clearSelection: d } = vt(), h = se(), m = se(), u = b(() => t.value?.width), p = se(0);
|
|
8897
8927
|
let v;
|
|
8898
8928
|
const y = b(() => {
|
|
8899
|
-
const
|
|
8900
|
-
if (
|
|
8929
|
+
const R = p.value;
|
|
8930
|
+
if (R <= 0 || !u.value || u.value === 0 || u.value <= R)
|
|
8901
8931
|
return 1;
|
|
8902
|
-
const
|
|
8903
|
-
return Math.min(
|
|
8932
|
+
const $ = R / u.value;
|
|
8933
|
+
return Math.min($, 1);
|
|
8904
8934
|
}), I = b(() => {
|
|
8905
|
-
const
|
|
8935
|
+
const R = y.value, $ = u.value === 0 ? "100%" : `${u.value}px`, L = u.value === 0 ? "none" : `scale(${R})`;
|
|
8906
8936
|
return {
|
|
8907
|
-
width:
|
|
8908
|
-
height: `${100 /
|
|
8937
|
+
width: $,
|
|
8938
|
+
height: `${100 / R}%`,
|
|
8909
8939
|
transform: L,
|
|
8910
8940
|
transformOrigin: "0 0"
|
|
8911
8941
|
};
|
|
8912
8942
|
}), k = () => {
|
|
8913
8943
|
if (h.value) {
|
|
8914
|
-
const
|
|
8915
|
-
s(
|
|
8944
|
+
const R = h.value.getBoundingClientRect();
|
|
8945
|
+
s(R);
|
|
8916
8946
|
}
|
|
8917
|
-
}, T = (
|
|
8918
|
-
d(), i(), n(
|
|
8919
|
-
}, D = (
|
|
8920
|
-
r("craftile.inspector.overlay-button-enter", { blockId:
|
|
8921
|
-
}, f = (
|
|
8922
|
-
r("craftile.inspector.overlay-button-leave", { blockId:
|
|
8923
|
-
}, P = (
|
|
8924
|
-
const L = l(
|
|
8947
|
+
}, T = (R) => {
|
|
8948
|
+
d(), i(), n(R.target), k();
|
|
8949
|
+
}, D = (R) => {
|
|
8950
|
+
r("craftile.inspector.overlay-button-enter", { blockId: R });
|
|
8951
|
+
}, f = (R) => {
|
|
8952
|
+
r("craftile.inspector.overlay-button-leave", { blockId: R });
|
|
8953
|
+
}, P = (R, $) => {
|
|
8954
|
+
const L = l(R, "before");
|
|
8925
8955
|
c({
|
|
8926
|
-
anchor:
|
|
8956
|
+
anchor: $.target,
|
|
8927
8957
|
context: L
|
|
8928
8958
|
});
|
|
8929
|
-
}, N = (
|
|
8930
|
-
const L = l(
|
|
8959
|
+
}, N = (R, $) => {
|
|
8960
|
+
const L = l(R, "after");
|
|
8931
8961
|
c({
|
|
8932
|
-
anchor:
|
|
8962
|
+
anchor: $.target,
|
|
8933
8963
|
context: L
|
|
8934
8964
|
});
|
|
8935
8965
|
};
|
|
8936
8966
|
return nt(() => {
|
|
8937
|
-
window.addEventListener("scroll", k), m.value && (v = new ResizeObserver((
|
|
8938
|
-
p.value =
|
|
8967
|
+
window.addEventListener("scroll", k), m.value && (v = new ResizeObserver((R) => {
|
|
8968
|
+
p.value = R[0].contentRect.width, k();
|
|
8939
8969
|
}), v.observe(m.value));
|
|
8940
8970
|
}), Ao(() => {
|
|
8941
8971
|
window.removeEventListener("scroll", k), v?.disconnect();
|
|
8942
|
-
}), (
|
|
8943
|
-
const L =
|
|
8972
|
+
}), (R, $) => {
|
|
8973
|
+
const L = $h, M = Eh;
|
|
8944
8974
|
return g(), S("div", {
|
|
8945
8975
|
ref_key: "previewWrapper",
|
|
8946
8976
|
ref: m,
|
|
@@ -8950,7 +8980,7 @@ const Mh = ["src"], Ah = /* @__PURE__ */ B({
|
|
|
8950
8980
|
ref_key: "canvasContainer",
|
|
8951
8981
|
ref: h,
|
|
8952
8982
|
class: "bg-white mx-auto rounded-xs relative transition-transform duration-300 ease-out",
|
|
8953
|
-
style:
|
|
8983
|
+
style: $o(a(I))
|
|
8954
8984
|
}, [
|
|
8955
8985
|
C("iframe", {
|
|
8956
8986
|
ref: "previewFrame",
|
|
@@ -9210,7 +9240,7 @@ function Fi(e) {
|
|
|
9210
9240
|
return n(W);
|
|
9211
9241
|
}
|
|
9212
9242
|
}
|
|
9213
|
-
}), P = b(() => k.value === void 0), N = b(() => T.value.length > 0),
|
|
9243
|
+
}), P = b(() => k.value === void 0), N = b(() => T.value.length > 0), R = b(() => y.value?.accepts && y.value.accepts.length > 0 || N.value);
|
|
9214
9244
|
return {
|
|
9215
9245
|
block: m,
|
|
9216
9246
|
properties: u,
|
|
@@ -9223,7 +9253,7 @@ function Fi(e) {
|
|
|
9223
9253
|
children: T,
|
|
9224
9254
|
isRootLevel: P,
|
|
9225
9255
|
hasChildren: N,
|
|
9226
|
-
canHaveChildren:
|
|
9256
|
+
canHaveChildren: R,
|
|
9227
9257
|
previousSibling: D,
|
|
9228
9258
|
nextSibling: f,
|
|
9229
9259
|
// Actions
|
|
@@ -9338,49 +9368,49 @@ const ig = /* @__PURE__ */ B({
|
|
|
9338
9368
|
blockId: {}
|
|
9339
9369
|
},
|
|
9340
9370
|
setup(e) {
|
|
9341
|
-
const t = e, { t: o } = Be(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: c, blocks: l, regions: d } = Fe(), { open: h, getInsertionContext: m } = Go(), { block: u, parent: p, index: v } = Fi(t.blockId), { toaster: y } = it(), { copyBlock: I, canPasteAfter: k, pasteBlockAfter: T, hasCopiedBlock: D, copyBlockAsJSON: f } = sg(), P = b(() => u.value?.static === !0), N = b(() => !u.value?.parentId),
|
|
9371
|
+
const t = e, { t: o } = Be(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: c, blocks: l, regions: d } = Fe(), { open: h, getInsertionContext: m } = Go(), { block: u, parent: p, index: v } = Fi(t.blockId), { toaster: y } = it(), { copyBlock: I, canPasteAfter: k, pasteBlockAfter: T, hasCopiedBlock: D, copyBlockAsJSON: f } = sg(), P = b(() => u.value?.static === !0), N = b(() => !u.value?.parentId), R = b(() => {
|
|
9342
9372
|
if (!u.value)
|
|
9343
9373
|
return null;
|
|
9344
9374
|
const le = n.getPage(), be = u.value;
|
|
9345
|
-
for (const
|
|
9346
|
-
const lt =
|
|
9375
|
+
for (const $e of le.regions) {
|
|
9376
|
+
const lt = $e.blocks.indexOf(be.id);
|
|
9347
9377
|
if (lt !== -1)
|
|
9348
9378
|
return {
|
|
9349
9379
|
parentType: "region",
|
|
9350
|
-
parentId: re(
|
|
9380
|
+
parentId: re($e),
|
|
9351
9381
|
currentIndex: lt,
|
|
9352
|
-
siblingCount:
|
|
9382
|
+
siblingCount: $e.blocks.length
|
|
9353
9383
|
};
|
|
9354
9384
|
}
|
|
9355
9385
|
if (be.parentId) {
|
|
9356
|
-
const
|
|
9357
|
-
if (
|
|
9358
|
-
const lt =
|
|
9386
|
+
const $e = le.blocks[be.parentId];
|
|
9387
|
+
if ($e) {
|
|
9388
|
+
const lt = $e.children.indexOf(be.id);
|
|
9359
9389
|
if (lt !== -1)
|
|
9360
9390
|
return {
|
|
9361
9391
|
parentType: "block",
|
|
9362
9392
|
parentId: be.parentId,
|
|
9363
9393
|
currentIndex: lt,
|
|
9364
|
-
siblingCount:
|
|
9394
|
+
siblingCount: $e.children.length
|
|
9365
9395
|
};
|
|
9366
9396
|
}
|
|
9367
9397
|
}
|
|
9368
9398
|
return null;
|
|
9369
|
-
}),
|
|
9370
|
-
if (!u.value || P.value ||
|
|
9399
|
+
}), $ = b(() => p.value?.children ?? d.value.find((le) => le.blocks.includes(t.blockId))?.blocks), L = b(() => {
|
|
9400
|
+
if (!u.value || P.value || !R.value || R.value.currentIndex <= 0)
|
|
9371
9401
|
return !1;
|
|
9372
|
-
if (
|
|
9402
|
+
if (!$.value)
|
|
9373
9403
|
return !0;
|
|
9374
|
-
const le =
|
|
9375
|
-
return wt(le, l.value,
|
|
9404
|
+
const le = $.value.filter((be) => be !== t.blockId);
|
|
9405
|
+
return wt(le, l.value, R.value.currentIndex - 1);
|
|
9376
9406
|
}), M = b(() => {
|
|
9377
|
-
if (!u.value || P.value ||
|
|
9407
|
+
if (!u.value || P.value || !R.value || R.value.currentIndex >= R.value.siblingCount - 1)
|
|
9378
9408
|
return !1;
|
|
9379
|
-
if (
|
|
9409
|
+
if (!$.value)
|
|
9380
9410
|
return !0;
|
|
9381
|
-
const le =
|
|
9382
|
-
return wt(le, l.value,
|
|
9383
|
-
}), z = b(() => v.value === void 0 || v.value < 0 ||
|
|
9411
|
+
const le = $.value.filter((be) => be !== t.blockId);
|
|
9412
|
+
return wt(le, l.value, R.value.currentIndex + 1);
|
|
9413
|
+
}), z = b(() => v.value === void 0 || v.value < 0 || !$.value ? !0 : wt($.value, l.value, v.value)), O = b(() => v.value === void 0 || v.value < 0 || !$.value ? !0 : wt($.value, l.value, v.value + 1)), w = se(null);
|
|
9384
9414
|
function W() {
|
|
9385
9415
|
s(t.blockId);
|
|
9386
9416
|
}
|
|
@@ -9398,29 +9428,29 @@ const ig = /* @__PURE__ */ B({
|
|
|
9398
9428
|
}
|
|
9399
9429
|
}
|
|
9400
9430
|
function H() {
|
|
9401
|
-
if (!u.value ||
|
|
9431
|
+
if (!u.value || !R.value)
|
|
9402
9432
|
return;
|
|
9403
|
-
const le =
|
|
9433
|
+
const le = R.value.currentIndex - 1;
|
|
9404
9434
|
oe(() => {
|
|
9405
|
-
|
|
9406
|
-
targetRegionId:
|
|
9435
|
+
R.value.parentType === "region" ? r(t.blockId, {
|
|
9436
|
+
targetRegionId: R.value.parentId,
|
|
9407
9437
|
targetIndex: le
|
|
9408
|
-
}) :
|
|
9409
|
-
targetParentId:
|
|
9438
|
+
}) : R.value.parentType === "block" && r(t.blockId, {
|
|
9439
|
+
targetParentId: R.value.parentId,
|
|
9410
9440
|
targetIndex: le
|
|
9411
9441
|
});
|
|
9412
9442
|
});
|
|
9413
9443
|
}
|
|
9414
9444
|
function Y() {
|
|
9415
|
-
if (!u.value ||
|
|
9445
|
+
if (!u.value || !R.value)
|
|
9416
9446
|
return;
|
|
9417
|
-
const le =
|
|
9447
|
+
const le = R.value.currentIndex + 1;
|
|
9418
9448
|
oe(() => {
|
|
9419
|
-
|
|
9420
|
-
targetRegionId:
|
|
9449
|
+
R.value.parentType === "region" ? r(t.blockId, {
|
|
9450
|
+
targetRegionId: R.value.parentId,
|
|
9421
9451
|
targetIndex: le
|
|
9422
|
-
}) :
|
|
9423
|
-
targetParentId:
|
|
9452
|
+
}) : R.value.parentType === "block" && r(t.blockId, {
|
|
9453
|
+
targetParentId: R.value.parentId,
|
|
9424
9454
|
targetIndex: le
|
|
9425
9455
|
});
|
|
9426
9456
|
});
|
|
@@ -9462,7 +9492,7 @@ const ig = /* @__PURE__ */ B({
|
|
|
9462
9492
|
f(t.blockId);
|
|
9463
9493
|
}
|
|
9464
9494
|
return (le, be) => {
|
|
9465
|
-
const
|
|
9495
|
+
const $e = rg, lt = tg, Mn = Mi, An = Hr, Nn = Vr, Fn = Qh, Rt = Xh, aa = Wh, la = Gh, ca = Vh, da = Lr;
|
|
9466
9496
|
return a(u) ? (g(), x(a(ce).Root, { key: 0 }, {
|
|
9467
9497
|
default: _(() => [
|
|
9468
9498
|
E(a(ce).ContextTrigger, {
|
|
@@ -9485,7 +9515,7 @@ const ig = /* @__PURE__ */ B({
|
|
|
9485
9515
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
9486
9516
|
}, {
|
|
9487
9517
|
default: _(() => [
|
|
9488
|
-
E(
|
|
9518
|
+
E($e, { class: "w-4 h-4" }),
|
|
9489
9519
|
ue(" " + j(a(o)("block.copy")), 1)
|
|
9490
9520
|
]),
|
|
9491
9521
|
_: 1
|
|
@@ -9551,7 +9581,7 @@ const ig = /* @__PURE__ */ B({
|
|
|
9551
9581
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"
|
|
9552
9582
|
}, {
|
|
9553
9583
|
default: _(() => [
|
|
9554
|
-
E(
|
|
9584
|
+
E(Rt, { class: "w-4 h-4" }),
|
|
9555
9585
|
ue(" " + j(a(o)("block.moveToNext")), 1)
|
|
9556
9586
|
]),
|
|
9557
9587
|
_: 1
|
|
@@ -9769,7 +9799,7 @@ function Sg(e, t) {
|
|
|
9769
9799
|
o[n] ? o[n] = Bg(e[n], t[n]) : o[n] = t[n];
|
|
9770
9800
|
}), o;
|
|
9771
9801
|
}
|
|
9772
|
-
function
|
|
9802
|
+
function Rg(e) {
|
|
9773
9803
|
return e instanceof HTMLElement;
|
|
9774
9804
|
}
|
|
9775
9805
|
function ks(e, t) {
|
|
@@ -9777,7 +9807,7 @@ function ks(e, t) {
|
|
|
9777
9807
|
t(o, e[o]);
|
|
9778
9808
|
});
|
|
9779
9809
|
}
|
|
9780
|
-
function
|
|
9810
|
+
function $g(e) {
|
|
9781
9811
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
9782
9812
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
9783
9813
|
}
|
|
@@ -10239,7 +10269,7 @@ var Kg = ["evt"], De = function(e, t) {
|
|
|
10239
10269
|
xt = !1;
|
|
10240
10270
|
},
|
|
10241
10271
|
dispatchSortableEvent: function(s) {
|
|
10242
|
-
|
|
10272
|
+
Re({
|
|
10243
10273
|
sortable: t,
|
|
10244
10274
|
name: s,
|
|
10245
10275
|
originalEvent: n
|
|
@@ -10247,7 +10277,7 @@ var Kg = ["evt"], De = function(e, t) {
|
|
|
10247
10277
|
}
|
|
10248
10278
|
}, r));
|
|
10249
10279
|
};
|
|
10250
|
-
function
|
|
10280
|
+
function Re(e) {
|
|
10251
10281
|
Wg(ot({
|
|
10252
10282
|
putSortable: Pe,
|
|
10253
10283
|
cloneEl: he,
|
|
@@ -10259,8 +10289,8 @@ function $e(e) {
|
|
|
10259
10289
|
newDraggableIndex: It
|
|
10260
10290
|
}, e));
|
|
10261
10291
|
}
|
|
10262
|
-
var F, fe, Q, de, Ft, ln, he, xt, so, He, Bo, It, tn, Pe, no = !1, kn = !1, In = [], At, Ke, Yn, Jn, Ps, Os, xo, eo, So,
|
|
10263
|
-
if (
|
|
10292
|
+
var F, fe, Q, de, Ft, ln, he, xt, so, He, Bo, It, tn, Pe, no = !1, kn = !1, In = [], At, Ke, Yn, Jn, Ps, Os, xo, eo, So, Ro = !1, on = !1, cn, Te, Qn = [], br = !1, xn = [], $n = typeof document < "u", nn = Gi, Ts = jo || bt ? "cssFloat" : "float", qg = $n && !ji && !Gi && "draggable" in document.createElement("div"), Ji = (function() {
|
|
10293
|
+
if ($n) {
|
|
10264
10294
|
if (bt)
|
|
10265
10295
|
return !1;
|
|
10266
10296
|
var e = document.createElement("x");
|
|
@@ -10315,7 +10345,7 @@ var F, fe, Q, de, Ft, ln, he, xt, so, He, Bo, It, tn, Pe, no = !1, kn = !1, In =
|
|
|
10315
10345
|
}, ta = function() {
|
|
10316
10346
|
!Ji && Q && K(Q, "display", "");
|
|
10317
10347
|
};
|
|
10318
|
-
|
|
10348
|
+
$n && !ji && document.addEventListener("click", function(e) {
|
|
10319
10349
|
if (kn)
|
|
10320
10350
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), kn = !1, !1;
|
|
10321
10351
|
}, !0);
|
|
@@ -10405,7 +10435,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10405
10435
|
if (sf(o), !F && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || n.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Oo && c && c.tagName.toUpperCase() === "SELECT") && (c = qe(c, n.draggable, o, !1), !(c && c.animated) && ln !== c)) {
|
|
10406
10436
|
if (so = We(c), Bo = We(c, n.draggable), typeof d == "function") {
|
|
10407
10437
|
if (d.call(this, e, c, this)) {
|
|
10408
|
-
|
|
10438
|
+
Re({
|
|
10409
10439
|
sortable: t,
|
|
10410
10440
|
rootEl: l,
|
|
10411
10441
|
name: "filter",
|
|
@@ -10419,7 +10449,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10419
10449
|
}
|
|
10420
10450
|
} else if (d && (d = d.split(",").some(function(h) {
|
|
10421
10451
|
if (h = qe(l, h.trim(), o, !1), h)
|
|
10422
|
-
return
|
|
10452
|
+
return Re({
|
|
10423
10453
|
sortable: t,
|
|
10424
10454
|
rootEl: h,
|
|
10425
10455
|
name: "filter",
|
|
@@ -10452,7 +10482,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10452
10482
|
n._onDrop();
|
|
10453
10483
|
return;
|
|
10454
10484
|
}
|
|
10455
|
-
n._disableDelayedDragEvents(), !xs && n.nativeDraggable && (F.draggable = !0), n._triggerDragStart(e, t),
|
|
10485
|
+
n._disableDelayedDragEvents(), !xs && n.nativeDraggable && (F.draggable = !0), n._triggerDragStart(e, t), Re({
|
|
10456
10486
|
sortable: n,
|
|
10457
10487
|
name: "choose",
|
|
10458
10488
|
originalEvent: e
|
|
@@ -10497,7 +10527,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10497
10527
|
evt: t
|
|
10498
10528
|
}), this.nativeDraggable && ne(document, "dragover", Jg);
|
|
10499
10529
|
var o = this.options;
|
|
10500
|
-
!e && Ve(F, o.dragClass, !1), Ve(F, o.ghostClass, !0), q.active = this, e && this._appendGhost(),
|
|
10530
|
+
!e && Ve(F, o.dragClass, !1), Ve(F, o.ghostClass, !0), q.active = this, e && this._appendGhost(), Re({
|
|
10501
10531
|
sortable: this,
|
|
10502
10532
|
name: "start",
|
|
10503
10533
|
originalEvent: t
|
|
@@ -10570,7 +10600,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10570
10600
|
return;
|
|
10571
10601
|
}
|
|
10572
10602
|
De("setupClone", this), q.eventCanceled || (he = Xi(F), he.removeAttribute("id"), he.draggable = !1, he.style["will-change"] = "", this._hideClone(), Ve(he, this.options.chosenClass, !1), q.clone = he), o.cloneId = dn(function() {
|
|
10573
|
-
De("clone", o), !q.eventCanceled && (o.options.removeCloneOnHide || de.insertBefore(he, F), o._hideClone(),
|
|
10603
|
+
De("clone", o), !q.eventCanceled && (o.options.removeCloneOnHide || de.insertBefore(he, F), o._hideClone(), Re({
|
|
10574
10604
|
sortable: o,
|
|
10575
10605
|
name: "clone"
|
|
10576
10606
|
}));
|
|
@@ -10610,7 +10640,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10610
10640
|
}), p !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === F && !F.animated || o === t && !o.animated) && (eo = null), !i.dragoverBubble && !e.rootEl && o !== document && (F.parentNode[Ue]._isOutsideThisEl(e.target), !H && Nt(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
10611
10641
|
}
|
|
10612
10642
|
function T() {
|
|
10613
|
-
He = We(F), It = We(F, i.draggable),
|
|
10643
|
+
He = We(F), It = We(F, i.draggable), Re({
|
|
10614
10644
|
sortable: p,
|
|
10615
10645
|
name: "change",
|
|
10616
10646
|
toEl: t,
|
|
@@ -10642,8 +10672,8 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10642
10672
|
return I(), t.insertBefore(F, f), fe = t, T(), k(!0);
|
|
10643
10673
|
} else if (o.parentNode === t) {
|
|
10644
10674
|
r = ke(o);
|
|
10645
|
-
var P = 0, N,
|
|
10646
|
-
eo !== o && (N = r[L],
|
|
10675
|
+
var P = 0, N, R = F.parentNode !== t, $ = !Xg(F.animated && F.toRect || n, o.animated && o.toRect || r, u), L = u ? "top" : "left", M = Cs(o, "top", "top") || Cs(F, "top", "top"), z = M ? M.scrollTop : void 0;
|
|
10676
|
+
eo !== o && (N = r[L], Ro = !1, on = !$ && i.invertSwap || R), P = of(e, o, r, u, $ ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, on, eo === o);
|
|
10647
10677
|
var O;
|
|
10648
10678
|
if (P !== 0) {
|
|
10649
10679
|
var w = We(F);
|
|
@@ -10681,46 +10711,46 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10681
10711
|
this._nulling();
|
|
10682
10712
|
return;
|
|
10683
10713
|
}
|
|
10684
|
-
no = !1, on = !1,
|
|
10714
|
+
no = !1, on = !1, Ro = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yr(this.cloneId), yr(this._dragStartId), this.nativeDraggable && (te(document, "drop", this), te(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Oo && K(document.body, "user-select", ""), K(F, "transform", ""), e && (xo && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), Q && Q.parentNode && Q.parentNode.removeChild(Q), (de === fe || Pe && Pe.lastPutMode !== "clone") && he && he.parentNode && he.parentNode.removeChild(he), F && (this.nativeDraggable && te(F, "dragend", this), Zn(F), F.style["will-change"] = "", xo && !no && Ve(F, Pe ? Pe.options.ghostClass : this.options.ghostClass, !1), Ve(F, this.options.chosenClass, !1), Re({
|
|
10685
10715
|
sortable: this,
|
|
10686
10716
|
name: "unchoose",
|
|
10687
10717
|
toEl: fe,
|
|
10688
10718
|
newIndex: null,
|
|
10689
10719
|
newDraggableIndex: null,
|
|
10690
10720
|
originalEvent: e
|
|
10691
|
-
}), de !== fe ? (He >= 0 && (
|
|
10721
|
+
}), de !== fe ? (He >= 0 && (Re({
|
|
10692
10722
|
rootEl: fe,
|
|
10693
10723
|
name: "add",
|
|
10694
10724
|
toEl: fe,
|
|
10695
10725
|
fromEl: de,
|
|
10696
10726
|
originalEvent: e
|
|
10697
|
-
}),
|
|
10727
|
+
}), Re({
|
|
10698
10728
|
sortable: this,
|
|
10699
10729
|
name: "remove",
|
|
10700
10730
|
toEl: fe,
|
|
10701
10731
|
originalEvent: e
|
|
10702
|
-
}),
|
|
10732
|
+
}), Re({
|
|
10703
10733
|
rootEl: fe,
|
|
10704
10734
|
name: "sort",
|
|
10705
10735
|
toEl: fe,
|
|
10706
10736
|
fromEl: de,
|
|
10707
10737
|
originalEvent: e
|
|
10708
|
-
}),
|
|
10738
|
+
}), Re({
|
|
10709
10739
|
sortable: this,
|
|
10710
10740
|
name: "sort",
|
|
10711
10741
|
toEl: fe,
|
|
10712
10742
|
originalEvent: e
|
|
10713
|
-
})), Pe && Pe.save()) : He !== so && He >= 0 && (
|
|
10743
|
+
})), Pe && Pe.save()) : He !== so && He >= 0 && (Re({
|
|
10714
10744
|
sortable: this,
|
|
10715
10745
|
name: "update",
|
|
10716
10746
|
toEl: fe,
|
|
10717
10747
|
originalEvent: e
|
|
10718
|
-
}),
|
|
10748
|
+
}), Re({
|
|
10719
10749
|
sortable: this,
|
|
10720
10750
|
name: "sort",
|
|
10721
10751
|
toEl: fe,
|
|
10722
10752
|
originalEvent: e
|
|
10723
|
-
})), q.active && ((He == null || He === -1) && (He = so, It = Bo),
|
|
10753
|
+
})), q.active && ((He == null || He === -1) && (He = so, It = Bo), Re({
|
|
10724
10754
|
sortable: this,
|
|
10725
10755
|
name: "end",
|
|
10726
10756
|
toEl: fe,
|
|
@@ -10855,7 +10885,7 @@ function of(e, t, o, n, r, s, i, c) {
|
|
|
10855
10885
|
var l = n ? e.clientY : e.clientX, d = n ? o.height : o.width, h = n ? o.top : o.left, m = n ? o.bottom : o.right, u = !1;
|
|
10856
10886
|
if (!i) {
|
|
10857
10887
|
if (c && cn < d * r) {
|
|
10858
|
-
if (
|
|
10888
|
+
if (!Ro && (So === 1 ? l > h + d * s / 2 : l < m - d * s / 2) && (Ro = !0), Ro)
|
|
10859
10889
|
u = !0;
|
|
10860
10890
|
else if (So === 1 ? l < h + cn : l > m - cn)
|
|
10861
10891
|
return -So;
|
|
@@ -10885,7 +10915,7 @@ function dn(e) {
|
|
|
10885
10915
|
function yr(e) {
|
|
10886
10916
|
return clearTimeout(e);
|
|
10887
10917
|
}
|
|
10888
|
-
|
|
10918
|
+
$n && ne(document, "touchmove", function(e) {
|
|
10889
10919
|
(q.active || no) && e.cancelable && e.preventDefault();
|
|
10890
10920
|
});
|
|
10891
10921
|
q.utils = {
|
|
@@ -10990,9 +11020,9 @@ var or = Ki(function(e, t, o, n) {
|
|
|
10990
11020
|
_r !== o && (_r = o, un(), wo = t.scroll, h = t.scrollFn, wo === !0 && (wo = Ct(o, !0)));
|
|
10991
11021
|
var m = 0, u = wo;
|
|
10992
11022
|
do {
|
|
10993
|
-
var p = u, v = ke(p), y = v.top, I = v.bottom, k = v.left, T = v.right, D = v.width, f = v.height, P = void 0, N = void 0,
|
|
10994
|
-
p === l ? (P = D <
|
|
10995
|
-
var O = P && (Math.abs(T - r) <= i && M + D <
|
|
11023
|
+
var p = u, v = ke(p), y = v.top, I = v.bottom, k = v.left, T = v.right, D = v.width, f = v.height, P = void 0, N = void 0, R = p.scrollWidth, $ = p.scrollHeight, L = K(p), M = p.scrollLeft, z = p.scrollTop;
|
|
11024
|
+
p === l ? (P = D < R && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), N = f < $ && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (P = D < R && (L.overflowX === "auto" || L.overflowX === "scroll"), N = f < $ && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
11025
|
+
var O = P && (Math.abs(T - r) <= i && M + D < R) - (Math.abs(k - r) <= i && !!M), w = N && (Math.abs(I - s) <= i && z + f < $) - (Math.abs(y - s) <= i && !!z);
|
|
10996
11026
|
if (!_e[m])
|
|
10997
11027
|
for (var W = 0; W <= m; W++)
|
|
10998
11028
|
_e[W] || (_e[W] = {});
|
|
@@ -11070,7 +11100,7 @@ function uf() {
|
|
|
11070
11100
|
clonedData: ra
|
|
11071
11101
|
};
|
|
11072
11102
|
}
|
|
11073
|
-
const
|
|
11103
|
+
const Rs = Symbol("cloneElement");
|
|
11074
11104
|
function pf(...e) {
|
|
11075
11105
|
var t, o;
|
|
11076
11106
|
const n = (t = En()) == null ? void 0 : t.proxy;
|
|
@@ -11084,26 +11114,26 @@ function pf(...e) {
|
|
|
11084
11114
|
clone: h = lf,
|
|
11085
11115
|
customUpdate: m
|
|
11086
11116
|
} = (o = a(c)) != null ? o : {};
|
|
11087
|
-
function u(
|
|
11117
|
+
function u($) {
|
|
11088
11118
|
var L;
|
|
11089
|
-
const { from: M, oldIndex: z, item: O } =
|
|
11119
|
+
const { from: M, oldIndex: z, item: O } = $;
|
|
11090
11120
|
r = Array.from(M.childNodes);
|
|
11091
11121
|
const w = a((L = a(i)) == null ? void 0 : L[z]), W = h(w);
|
|
11092
|
-
Ss(w, W), O[
|
|
11122
|
+
Ss(w, W), O[Rs] = W;
|
|
11093
11123
|
}
|
|
11094
|
-
function p(
|
|
11095
|
-
const L =
|
|
11124
|
+
function p($) {
|
|
11125
|
+
const L = $.item[Rs];
|
|
11096
11126
|
if (!Pg(L)) {
|
|
11097
|
-
if (Kn(
|
|
11127
|
+
if (Kn($.item), et(i)) {
|
|
11098
11128
|
const M = [...a(i)];
|
|
11099
|
-
i.value = ys(M,
|
|
11129
|
+
i.value = ys(M, $.newDraggableIndex, L);
|
|
11100
11130
|
return;
|
|
11101
11131
|
}
|
|
11102
|
-
ys(a(i),
|
|
11132
|
+
ys(a(i), $.newDraggableIndex, L);
|
|
11103
11133
|
}
|
|
11104
11134
|
}
|
|
11105
|
-
function v(
|
|
11106
|
-
const { from: L, item: M, oldIndex: z, oldDraggableIndex: O, pullMode: w, clone: W } =
|
|
11135
|
+
function v($) {
|
|
11136
|
+
const { from: L, item: M, oldIndex: z, oldDraggableIndex: O, pullMode: w, clone: W } = $;
|
|
11107
11137
|
if (_s(L, M, z), w === "clone") {
|
|
11108
11138
|
Kn(W);
|
|
11109
11139
|
return;
|
|
@@ -11115,12 +11145,12 @@ function pf(...e) {
|
|
|
11115
11145
|
}
|
|
11116
11146
|
bs(a(i), O);
|
|
11117
11147
|
}
|
|
11118
|
-
function y(
|
|
11148
|
+
function y($) {
|
|
11119
11149
|
if (m) {
|
|
11120
|
-
m(
|
|
11150
|
+
m($);
|
|
11121
11151
|
return;
|
|
11122
11152
|
}
|
|
11123
|
-
const { from: L, item: M, oldIndex: z, oldDraggableIndex: O, newDraggableIndex: w } =
|
|
11153
|
+
const { from: L, item: M, oldIndex: z, oldDraggableIndex: O, newDraggableIndex: w } = $;
|
|
11124
11154
|
if (Kn(M), _s(L, M, z), et(i)) {
|
|
11125
11155
|
const W = [...a(i)];
|
|
11126
11156
|
i.value = vs(
|
|
@@ -11132,8 +11162,8 @@ function pf(...e) {
|
|
|
11132
11162
|
}
|
|
11133
11163
|
vs(a(i), O, w);
|
|
11134
11164
|
}
|
|
11135
|
-
function I(
|
|
11136
|
-
const { newIndex: L, oldIndex: M, from: z, to: O } =
|
|
11165
|
+
function I($) {
|
|
11166
|
+
const { newIndex: L, oldIndex: M, from: z, to: O } = $;
|
|
11137
11167
|
let w = null;
|
|
11138
11168
|
const W = L === M && z === O;
|
|
11139
11169
|
try {
|
|
@@ -11163,15 +11193,15 @@ function pf(...e) {
|
|
|
11163
11193
|
onRemove: v,
|
|
11164
11194
|
onEnd: I
|
|
11165
11195
|
};
|
|
11166
|
-
function T(
|
|
11196
|
+
function T($) {
|
|
11167
11197
|
const L = a(s);
|
|
11168
|
-
return
|
|
11198
|
+
return $ || ($ = Og(L) ? Tg(L, n?.$el) : L), $ && !Rg($) && ($ = $.$el), $ || wg("Root element not found"), $;
|
|
11169
11199
|
}
|
|
11170
11200
|
function D() {
|
|
11171
|
-
var
|
|
11172
|
-
const L = (
|
|
11201
|
+
var $;
|
|
11202
|
+
const L = ($ = a(c)) != null ? $ : {}, { immediate: M, clone: z } = L, O = Hi(L, ["immediate", "clone"]);
|
|
11173
11203
|
return ks(O, (w, W) => {
|
|
11174
|
-
|
|
11204
|
+
$g(w) && (O[w] = (X, ...oe) => {
|
|
11175
11205
|
const H = uf();
|
|
11176
11206
|
return Dg(X, H), W(X, ...oe);
|
|
11177
11207
|
});
|
|
@@ -11180,30 +11210,30 @@ function pf(...e) {
|
|
|
11180
11210
|
O
|
|
11181
11211
|
);
|
|
11182
11212
|
}
|
|
11183
|
-
const f = (
|
|
11184
|
-
|
|
11213
|
+
const f = ($) => {
|
|
11214
|
+
$ = T($), l && P.destroy(), l = new q($, D());
|
|
11185
11215
|
};
|
|
11186
11216
|
Mo(
|
|
11187
11217
|
() => c,
|
|
11188
11218
|
() => {
|
|
11189
|
-
l && ks(D(), (
|
|
11190
|
-
l?.option(
|
|
11219
|
+
l && ks(D(), ($, L) => {
|
|
11220
|
+
l?.option($, L);
|
|
11191
11221
|
});
|
|
11192
11222
|
},
|
|
11193
11223
|
{ deep: !0 }
|
|
11194
11224
|
);
|
|
11195
11225
|
const P = {
|
|
11196
|
-
option: (
|
|
11226
|
+
option: ($, L) => l?.option($, L),
|
|
11197
11227
|
destroy: () => {
|
|
11198
11228
|
l?.destroy(), l = null;
|
|
11199
11229
|
},
|
|
11200
11230
|
save: () => l?.save(),
|
|
11201
11231
|
toArray: () => l?.toArray(),
|
|
11202
|
-
closest: (
|
|
11203
|
-
}, N = () => P?.option("disabled", !0),
|
|
11232
|
+
closest: (...$) => l?.closest(...$)
|
|
11233
|
+
}, N = () => P?.option("disabled", !0), R = () => P?.option("disabled", !1);
|
|
11204
11234
|
return df(() => {
|
|
11205
11235
|
d && f();
|
|
11206
|
-
}), cf(P.destroy), ro({ start: f, pause: N, resume:
|
|
11236
|
+
}), cf(P.destroy), ro({ start: f, pause: N, resume: R }, P);
|
|
11207
11237
|
}
|
|
11208
11238
|
const Ir = [
|
|
11209
11239
|
"update",
|
|
@@ -11340,7 +11370,7 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11340
11370
|
toggle: d,
|
|
11341
11371
|
moveChild: h,
|
|
11342
11372
|
schema: m
|
|
11343
|
-
} = Fi(t.blockId), { isExpanded: u, toggleExpanded: p } = Fr(), { getBlockLabelReactive: v, getBlockSchemaNameReactive: y } = ff(), { selectedBlockId: I, selectBlock: k } = vt(), { engine: T, moveBlock: D, removeBlock: f, blocks: P, regions: N } = Fe(), { toaster:
|
|
11373
|
+
} = Fi(t.blockId), { isExpanded: u, toggleExpanded: p } = Fr(), { getBlockLabelReactive: v, getBlockSchemaNameReactive: y } = ff(), { selectedBlockId: I, selectBlock: k } = vt(), { engine: T, moveBlock: D, removeBlock: f, blocks: P, regions: N } = Fe(), { toaster: R } = it(), $ = b(() => I.value === t.blockId), L = b(() => u(t.blockId)), M = b(() => r.value?.static === !0), z = b(() => r.value?.repeated === !0), O = b(() => r.value?.ghost === !0), w = y(t.blockId), W = v(t.blockId), X = b(() => m.value?.meta?.icon), oe = b(() => {
|
|
11344
11374
|
if (l.value === void 0 || l.value < 0)
|
|
11345
11375
|
return !0;
|
|
11346
11376
|
const ve = l.value + 1, ge = c.value?.children ?? N.value.find((Le) => Le.blocks.includes(t.blockId))?.blocks;
|
|
@@ -11382,13 +11412,13 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11382
11412
|
h(St, Le);
|
|
11383
11413
|
return;
|
|
11384
11414
|
}
|
|
11385
|
-
const
|
|
11386
|
-
|
|
11387
|
-
targetParentId:
|
|
11415
|
+
const $e = at?.parentElement?.closest?.("[data-block-id]")?.getAttribute?.("data-block-id");
|
|
11416
|
+
$e && D(St, {
|
|
11417
|
+
targetParentId: $e,
|
|
11388
11418
|
targetIndex: Le
|
|
11389
11419
|
});
|
|
11390
11420
|
} catch (be) {
|
|
11391
|
-
|
|
11421
|
+
R.create({
|
|
11392
11422
|
title: be instanceof Error ? be.message : String(be),
|
|
11393
11423
|
type: "error"
|
|
11394
11424
|
});
|
|
@@ -11401,7 +11431,7 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11401
11431
|
f(t.blockId);
|
|
11402
11432
|
}
|
|
11403
11433
|
return (ve, ge) => {
|
|
11404
|
-
const Le = kg, yt = bg, at = fg, St = pg, le = cg, be = Vr,
|
|
11434
|
+
const Le = kg, yt = bg, at = fg, St = pg, le = cg, be = Vr, $e = Hr, lt = Lr, Mn = ig, An = pa("BlockItem", !0), Nn = Ni, Fn = Nh;
|
|
11405
11435
|
return a(r) ? (g(), S("div", {
|
|
11406
11436
|
key: 0,
|
|
11407
11437
|
class: Ie({ "bg-gray-100": a(n), "is-static": a(M) }),
|
|
@@ -11413,13 +11443,13 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11413
11443
|
default: _(() => [
|
|
11414
11444
|
C("div", {
|
|
11415
11445
|
"data-block-id": a(r).id,
|
|
11416
|
-
"data-selected": a(
|
|
11446
|
+
"data-selected": a($) ? "true" : void 0,
|
|
11417
11447
|
class: Ie(["flex items-center h-8 text-sm hover:bg-gray-50 data-selected:bg-accent/10 data-selected:border data-selected:border-accent/20 data-selected:hover:bg-accent/10 cursor-pointer rounded-md group transition-all duration-200", {
|
|
11418
11448
|
"text-gray-700": !a(r).disabled && !a(O),
|
|
11419
11449
|
"text-gray-500": a(O) && !a(r).disabled,
|
|
11420
11450
|
"text-gray-400": a(r).disabled
|
|
11421
11451
|
}]),
|
|
11422
|
-
onClick: ge[3] || (ge[3] = (
|
|
11452
|
+
onClick: ge[3] || (ge[3] = (Rt) => a(k)(a(r).id))
|
|
11423
11453
|
}, [
|
|
11424
11454
|
a(i) ? (g(), S("button", {
|
|
11425
11455
|
key: 0,
|
|
@@ -11463,7 +11493,7 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11463
11493
|
a(r).disabled ? (g(), x(be, {
|
|
11464
11494
|
key: 0,
|
|
11465
11495
|
class: "w-4 h-4"
|
|
11466
|
-
})) : (g(), x(
|
|
11496
|
+
})) : (g(), x($e, {
|
|
11467
11497
|
key: 1,
|
|
11468
11498
|
class: "w-4 h-4"
|
|
11469
11499
|
}))
|
|
@@ -11494,9 +11524,9 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11494
11524
|
onMove: ie
|
|
11495
11525
|
}, {
|
|
11496
11526
|
default: _(() => [
|
|
11497
|
-
(g(!0), S(me, null, Ce(a(s), (
|
|
11498
|
-
key:
|
|
11499
|
-
"block-id":
|
|
11527
|
+
(g(!0), S(me, null, Ce(a(s), (Rt) => (g(), x(An, {
|
|
11528
|
+
key: Rt.id,
|
|
11529
|
+
"block-id": Rt.id,
|
|
11500
11530
|
level: ve.level + 1
|
|
11501
11531
|
}, null, 8, ["block-id", "level"]))), 128))
|
|
11502
11532
|
]),
|
|
@@ -11513,8 +11543,8 @@ const mf = ["data-block-id"], vf = ["data-block-id", "data-selected"], bf = {
|
|
|
11513
11543
|
a(oe) ? (g(), x(Fn, {
|
|
11514
11544
|
key: `add-block-${a(r).id}`,
|
|
11515
11545
|
"block-id": a(r).id,
|
|
11516
|
-
onMouseenter: ge[4] || (ge[4] = (
|
|
11517
|
-
onMouseleave: ge[5] || (ge[5] = (
|
|
11546
|
+
onMouseenter: ge[4] || (ge[4] = (Rt) => n.value = !0),
|
|
11547
|
+
onMouseleave: ge[5] || (ge[5] = (Rt) => n.value = !1)
|
|
11518
11548
|
}, null, 8, ["block-id"])) : J("", !0)
|
|
11519
11549
|
], 10, mf)) : J("", !0);
|
|
11520
11550
|
};
|
|
@@ -11537,7 +11567,7 @@ function Sf(e, t) {
|
|
|
11537
11567
|
}, null, -1)
|
|
11538
11568
|
])]);
|
|
11539
11569
|
}
|
|
11540
|
-
const
|
|
11570
|
+
const Rf = /* @__PURE__ */ Dn(Tf, [["render", Sf]]), to = {
|
|
11541
11571
|
small: 640,
|
|
11542
11572
|
medium: 768,
|
|
11543
11573
|
large: 1024,
|
|
@@ -11563,7 +11593,7 @@ function ia() {
|
|
|
11563
11593
|
isUltraWide: c
|
|
11564
11594
|
};
|
|
11565
11595
|
}
|
|
11566
|
-
const
|
|
11596
|
+
const $f = { class: "h-full flex flex-col overflow-y-hidden relative" }, Df = { class: "flex-none h-12 flex items-center border-b px-4" }, Mf = { class: "flex-1 overflow-y-auto" }, Af = { class: "flex items-center justify-between" }, Nf = { class: "text-sm capitalize" }, Ff = ["title", "onClick"], Lf = { class: "my-2" }, Vf = { class: "flex items-center justify-center" }, Hf = {
|
|
11567
11597
|
key: 0,
|
|
11568
11598
|
class: "absolute inset-0 z-10"
|
|
11569
11599
|
}, Uf = /* @__PURE__ */ B({
|
|
@@ -11593,7 +11623,7 @@ const Rf = { class: "h-full flex flex-col overflow-y-hidden relative" }, Df = {
|
|
|
11593
11623
|
}
|
|
11594
11624
|
return (u, p) => {
|
|
11595
11625
|
const v = Of, y = Ni, I = Ai;
|
|
11596
|
-
return g(), S("div",
|
|
11626
|
+
return g(), S("div", $f, [
|
|
11597
11627
|
C("div", Df, [
|
|
11598
11628
|
C("h2", null, j(a(t)("layers.header")), 1)
|
|
11599
11629
|
]),
|
|
@@ -11610,7 +11640,7 @@ const Rf = { class: "h-full flex flex-col overflow-y-hidden relative" }, Df = {
|
|
|
11610
11640
|
title: a(t)("layers.collapseAll"),
|
|
11611
11641
|
onClick: (T) => a(r)(a(re)(k))
|
|
11612
11642
|
}, [
|
|
11613
|
-
E(
|
|
11643
|
+
E(Rf, { class: "w-4 h-4" })
|
|
11614
11644
|
], 8, Ff)) : J("", !0)
|
|
11615
11645
|
]),
|
|
11616
11646
|
C("div", Lf, [
|
|
@@ -11985,7 +12015,7 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11985
12015
|
setDeviceMode: i,
|
|
11986
12016
|
addCustomDevice: c,
|
|
11987
12017
|
removeCustomDevice: l
|
|
11988
|
-
} =
|
|
12018
|
+
} = Rr(), d = se(!1), h = se(768), m = {
|
|
11989
12019
|
desktop: Yr,
|
|
11990
12020
|
tablet: Xr,
|
|
11991
12021
|
mobile: ja
|
|
@@ -12002,10 +12032,10 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
12002
12032
|
l(k);
|
|
12003
12033
|
};
|
|
12004
12034
|
return (k, T) => {
|
|
12005
|
-
const D = Nr, f = go, P =
|
|
12035
|
+
const D = Nr, f = go, P = $r, N = Xr;
|
|
12006
12036
|
return g(), x(a(dt).Root, {
|
|
12007
12037
|
open: a(d),
|
|
12008
|
-
"onUpdate:open": T[1] || (T[1] = (
|
|
12038
|
+
"onUpdate:open": T[1] || (T[1] = (R) => et(d) ? d.value = R : null),
|
|
12009
12039
|
positioning: { placement: "top-end", gutter: 0 }
|
|
12010
12040
|
}, {
|
|
12011
12041
|
default: _(() => [
|
|
@@ -12043,14 +12073,14 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
12043
12073
|
})
|
|
12044
12074
|
]),
|
|
12045
12075
|
C("div", mm, [
|
|
12046
|
-
(g(!0), S(me, null, Ce(a(r), (
|
|
12047
|
-
key:
|
|
12048
|
-
class: Ie(["flex items-center gap-2 cursor-pointer text-left text-sm text-gray-700 transition-[background] duration-[0.2s] px-3 py-2.5 rounded-md border-[none]", { "text-accent! bg-accent/8": a(o) ===
|
|
12049
|
-
onClick: (
|
|
12076
|
+
(g(!0), S(me, null, Ce(a(r), (R) => (g(), S("button", {
|
|
12077
|
+
key: R.id,
|
|
12078
|
+
class: Ie(["flex items-center gap-2 cursor-pointer text-left text-sm text-gray-700 transition-[background] duration-[0.2s] px-3 py-2.5 rounded-md border-[none]", { "text-accent! bg-accent/8": a(o) === R.id }]),
|
|
12079
|
+
onClick: ($) => v(R.id)
|
|
12050
12080
|
}, [
|
|
12051
|
-
(g(), x(pt(u(
|
|
12052
|
-
C("span", null, j(
|
|
12053
|
-
C("span", bm, j(
|
|
12081
|
+
(g(), x(pt(u(R.icon)), { class: "w-5 h-5" })),
|
|
12082
|
+
C("span", null, j(R.label), 1),
|
|
12083
|
+
C("span", bm, j(R.width === 0 ? a(t)("header.auto") : R.width + "px"), 1)
|
|
12054
12084
|
], 10, vm))), 128))
|
|
12055
12085
|
]),
|
|
12056
12086
|
C("div", ym, [
|
|
@@ -12059,7 +12089,7 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
12059
12089
|
C("div", Im, [
|
|
12060
12090
|
C("label", xm, j(a(t)("header.deviceWidthPx")), 1),
|
|
12061
12091
|
Ms(C("input", {
|
|
12062
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
12092
|
+
"onUpdate:modelValue": T[0] || (T[0] = (R) => et(h) ? h.value = R : null),
|
|
12063
12093
|
type: "number",
|
|
12064
12094
|
id: "custom-width",
|
|
12065
12095
|
min: "320",
|
|
@@ -12077,17 +12107,17 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
12077
12107
|
a(s).length > 0 ? (g(), S("div", wm, [
|
|
12078
12108
|
C("h5", null, j(a(t)("header.savedCustomDevices")), 1),
|
|
12079
12109
|
C("div", Cm, [
|
|
12080
|
-
(g(!0), S(me, null, Ce(a(s), (
|
|
12081
|
-
key:
|
|
12110
|
+
(g(!0), S(me, null, Ce(a(s), (R) => (g(), S("div", {
|
|
12111
|
+
key: R.id,
|
|
12082
12112
|
role: "button",
|
|
12083
|
-
class: Ie(["flex items-center gap-2 rounded text-left text-sm text-gray-700 px-3 py-2 cursor-pointer", { "text-accent! bg-accent/8": a(o) ===
|
|
12084
|
-
onClick: (
|
|
12113
|
+
class: Ie(["flex items-center gap-2 rounded text-left text-sm text-gray-700 px-3 py-2 cursor-pointer", { "text-accent! bg-accent/8": a(o) === R.id }]),
|
|
12114
|
+
onClick: ($) => v(R.id)
|
|
12085
12115
|
}, [
|
|
12086
12116
|
E(N, { class: "w-5 h-5 flex-none" }),
|
|
12087
|
-
C("span", Pm, j(
|
|
12117
|
+
C("span", Pm, j(R.width) + "px", 1),
|
|
12088
12118
|
C("button", {
|
|
12089
12119
|
class: "flex-none rounded cursor-pointer text-gray-500 flex items-center justify-center transition-all duration-[0.2s] p-1 border-[none] hover:text-red-600",
|
|
12090
|
-
onClick: Lt((
|
|
12120
|
+
onClick: Lt(($) => I(R.id), ["stop"])
|
|
12091
12121
|
}, [
|
|
12092
12122
|
E(P)
|
|
12093
12123
|
], 8, Om)
|
|
@@ -12111,7 +12141,7 @@ const pm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
12111
12141
|
width: "1.2em",
|
|
12112
12142
|
height: "1.2em"
|
|
12113
12143
|
};
|
|
12114
|
-
function
|
|
12144
|
+
function Rm(e, t) {
|
|
12115
12145
|
return g(), S("svg", Sm, [...t[0] || (t[0] = [
|
|
12116
12146
|
C("path", {
|
|
12117
12147
|
fill: "none",
|
|
@@ -12123,9 +12153,9 @@ function $m(e, t) {
|
|
|
12123
12153
|
}, null, -1)
|
|
12124
12154
|
])]);
|
|
12125
12155
|
}
|
|
12126
|
-
const
|
|
12156
|
+
const $m = ee({ name: "heroicons-arrow-left", render: Rm }), Dm = {};
|
|
12127
12157
|
function Mm(e, t) {
|
|
12128
|
-
const o =
|
|
12158
|
+
const o = $m, n = go;
|
|
12129
12159
|
return g(), x(n, {
|
|
12130
12160
|
square: "",
|
|
12131
12161
|
title: "Back"
|
|
@@ -12219,7 +12249,7 @@ function qm(e, t) {
|
|
|
12219
12249
|
const Xm = /* @__PURE__ */ Dn(Wm, [["render", qm]]), Ym = /* @__PURE__ */ B({
|
|
12220
12250
|
__name: "ToggleInspector",
|
|
12221
12251
|
setup(e) {
|
|
12222
|
-
const { t } = Be(), { isEnabled: o, toggle: n } =
|
|
12252
|
+
const { t } = Be(), { isEnabled: o, toggle: n } = Rn();
|
|
12223
12253
|
return (r, s) => {
|
|
12224
12254
|
const i = Xm, c = go;
|
|
12225
12255
|
return g(), x(c, {
|
|
@@ -12269,7 +12299,7 @@ function Jm(e) {
|
|
|
12269
12299
|
order: -10
|
|
12270
12300
|
});
|
|
12271
12301
|
}
|
|
12272
|
-
const
|
|
12302
|
+
const $s = ({ editor: e }) => {
|
|
12273
12303
|
const t = e.engine;
|
|
12274
12304
|
t && t.canUndo() && t.undo();
|
|
12275
12305
|
}, nr = ({ editor: e }) => {
|
|
@@ -12279,10 +12309,10 @@ const Rs = ({ editor: e }) => {
|
|
|
12279
12309
|
function Qm(e) {
|
|
12280
12310
|
e.registerKeyboardShortcut({
|
|
12281
12311
|
key: "ctrl+z",
|
|
12282
|
-
handler:
|
|
12312
|
+
handler: $s
|
|
12283
12313
|
}), e.registerKeyboardShortcut({
|
|
12284
12314
|
key: "meta+z",
|
|
12285
|
-
handler:
|
|
12315
|
+
handler: $s
|
|
12286
12316
|
}), e.registerKeyboardShortcut({
|
|
12287
12317
|
key: "ctrl+y",
|
|
12288
12318
|
handler: nr
|
|
@@ -12362,7 +12392,7 @@ const ev = { key: 0 }, tv = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12362
12392
|
}, sv = { class: "text-sm text-gray-500" }, iv = /* @__PURE__ */ B({
|
|
12363
12393
|
__name: "PropertiesPanel",
|
|
12364
12394
|
setup(e) {
|
|
12365
|
-
const { t } = Be(), { selectedBlock: o, selectedBlockId: n } = vt(), { engine: r, setBlockProperty: s } = Fe(), { currentDevice: i } =
|
|
12395
|
+
const { t } = Be(), { selectedBlock: o, selectedBlockId: n } = vt(), { engine: r, setBlockProperty: s } = Fe(), { currentDevice: i } = Rr(), c = b(() => {
|
|
12366
12396
|
if (!o.value)
|
|
12367
12397
|
return [];
|
|
12368
12398
|
const y = r.getBlockSchema(o.value.type);
|