@craftile/editor 1.0.6 → 1.0.7
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 +341 -336
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-gray-50:var(--color-gray-50,oklch(98.5% 0 0));--color-gray-100:var(--color-gray-100,oklch(96.7% .001 286.375));--color-gray-200:var(--color-gray-200,oklch(92% .004 286.32));--color-gray-300:var(--color-gray-300,oklch(87.1% .006 286.286));--color-gray-400:var(--color-gray-400,oklch(70.5% .015 286.067));--color-gray-500:var(--color-gray-500,oklch(55.2% .016 285.938));--color-gray-600:var(--color-gray-600,oklch(44.2% .017 285.786));--color-gray-700:var(--color-gray-700,oklch(37% .013 285.805));--color-gray-800:var(--color-gray-800,oklch(37% .013 285.805));--color-gray-900:var(--color-gray-900,oklch(37% .013 285.805));--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);--color-primary:var(--color-primary,oklch(14.7% .004 49.25));--color-primary-foreground:var(--color-primary-foreground,oklch(98.5% 0 0));--color-secondary:var(--color-secondary,oklch(92% .004 286.32));--color-secondary-foreground:var(--color-secondary-foreground,oklch(37% .013 285.805));--color-accent:var(--color-accent,oklch(54.6% .245 262.881));--color-accent-foreground:var(--color-accent-foreground,oklch(93.2% .032 255.585));--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 .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-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-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-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}.__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 T, inject as Ee, ref as re, onMounted as nt, watch as Mo, createElementBlock as O, openBlock as g, markRaw as Q, createElementVNode as x, renderSlot as M, normalizeProps as Ae, guardReactiveProps as Ne, unref as a, createBlock as I, createCommentVNode as X, mergeProps as U, withCtx as _, computed as y, useId as rt, toValue as ke, mergeDefaults as Je, createTextVNode as le, reactive as io, onBeforeUnmount as wn, Fragment as ge, renderList as Ie, createVNode as
|
|
2
|
+
import { defineComponent as T, inject as Ee, ref as re, onMounted as nt, watch as Mo, createElementBlock as O, openBlock as g, markRaw as Q, createElementVNode as x, renderSlot as M, normalizeProps as Ae, guardReactiveProps as Ne, unref as a, createBlock as I, createCommentVNode as X, mergeProps as U, withCtx as _, computed as y, useId as rt, toValue as ke, mergeDefaults as Je, createTextVNode as le, reactive as io, onBeforeUnmount as wn, Fragment as ge, renderList as Ie, createVNode as E, normalizeClass as Ce, toDisplayString as W, resolveDynamicComponent as ut, isRef as pt, onUnmounted as Ao, toRaw as wr, nextTick as ao, withDirectives as As, vModelText as Ns, withModifiers as Nt, normalizeStyle as $o, toRefs as ca, h as Fs, getCurrentInstance as Cr, resolveComponent as da, KeepAlive as ua, TransitionGroup as Kr, createApp as pa, provide as ha } from "vue";
|
|
3
3
|
import { C as xe, c as Fe, u as F, b as j, d as Ut, r as fe, e as J, f as wt, g as un, s as ir, h as Ye, n as Ls, i as je, j as ft, D as mt, k as Gt, l as jt, m as lo, o as Ct, p as Et, q as co, R as st, t as Er, w as Vs, v as Hs, x as Us, y as Or, z as Tr, A as ga, B as fa, E as pn, F as Pr, G as Br, H as Cn, P as En, I as Sr, J as On, K as $r, L as ma, M as Gs, N as Wt, O as go, Q as lt, S as Hn, T as va, U as Un, V as ba, W as ya, X as Rr, Y as Ot, Z as js, $ as zs, a0 as Ws, a1 as Ks, a2 as qs, a3 as Gn, a4 as qr, a5 as ar, a6 as no, a7 as _a, a8 as ka, a9 as Ia, aa as Xs, ab as xa, ac as zo, ad as Xr, ae as wa, af as Ca, ag as Ys, ah as hn, ai as Ea, aj as Oa, ak as Js, al as Qs, am as Ta, an as Pa, ao as lr, ap as Ba, aq as Sa, ar as $a, as as Ra, at as Da, au as Ma, av as Aa, aw as Na, ax as jn, ay as Fa, az as La, aA as Wo, aB as Zs, aC as Va, aD as it, aE as Ft, aF as Lt, aG as Vt, aH as Dr, _ as uo, aI as Yr, aJ as Ha, aK as Jr, aL as Ua, aM as Ga, a as ja } from "./PropertyField.vue_vue_type_script_setup_true_lang-2Bfcqb0W.js";
|
|
4
4
|
const Ro = () => crypto.randomUUID ? crypto.randomUUID() : Date.now().toString(36) + Math.random().toString(36).substr(2), ne = (e) => e.id || e.name, gn = (e, t) => t !== void 0 && t >= 0 && t <= e ? t : e, ei = (e, t) => t || e.regions[0] && ne(e.regions[0]) || "main", ti = (e, t, o, n) => {
|
|
5
5
|
if (t) {
|
|
@@ -1800,7 +1800,7 @@ function $l(e, t) {
|
|
|
1800
1800
|
},
|
|
1801
1801
|
onKeyDown(k) {
|
|
1802
1802
|
if (k.defaultPrevented || v.disabled) return;
|
|
1803
|
-
const
|
|
1803
|
+
const w = {
|
|
1804
1804
|
ArrowDown() {
|
|
1805
1805
|
i("isHorizontal") || o({ type: "GOTO.NEXT", value: p });
|
|
1806
1806
|
},
|
|
@@ -1822,7 +1822,7 @@ function $l(e, t) {
|
|
|
1822
1822
|
}, B = pn(k, {
|
|
1823
1823
|
dir: r("dir"),
|
|
1824
1824
|
orientation: r("orientation")
|
|
1825
|
-
}), H =
|
|
1825
|
+
}), H = w[B];
|
|
1826
1826
|
H && (H(k), k.preventDefault());
|
|
1827
1827
|
}
|
|
1828
1828
|
});
|
|
@@ -2081,8 +2081,8 @@ var Kt = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Yo =
|
|
|
2081
2081
|
else
|
|
2082
2082
|
try {
|
|
2083
2083
|
if (jl(p)) return;
|
|
2084
|
-
const k = p.getAttribute(r) === "true",
|
|
2085
|
-
Kt.set(p,
|
|
2084
|
+
const k = p.getAttribute(r) === "true", w = (Kt.get(p) || 0) + 1, B = (i.get(p) || 0) + 1;
|
|
2085
|
+
Kt.set(p, w), i.set(p, B), c.push(p), w === 1 && k && Xo.set(p, !0), B === 1 && p.setAttribute(n, ""), k || p.setAttribute(r, "true");
|
|
2086
2086
|
} catch (v) {
|
|
2087
2087
|
console.error("[zag-js > ariaHidden] cannot operate on ", p, v);
|
|
2088
2088
|
}
|
|
@@ -2558,10 +2558,10 @@ function ui(e) {
|
|
|
2558
2558
|
overflow: "hidden",
|
|
2559
2559
|
[l]: `${i}px`
|
|
2560
2560
|
}), u = () => {
|
|
2561
|
-
const { scrollX: h, scrollY: p, visualViewport: v } = o, k = v?.offsetLeft ?? 0,
|
|
2561
|
+
const { scrollX: h, scrollY: p, visualViewport: v } = o, k = v?.offsetLeft ?? 0, w = v?.offsetTop ?? 0, B = ir(r, {
|
|
2562
2562
|
position: "fixed",
|
|
2563
2563
|
overflow: "hidden",
|
|
2564
|
-
top: `${-(p - Math.floor(
|
|
2564
|
+
top: `${-(p - Math.floor(w))}px`,
|
|
2565
2565
|
left: `${-(h - Math.floor(k))}px`,
|
|
2566
2566
|
right: "0",
|
|
2567
2567
|
[l]: `${i}px`
|
|
@@ -3131,7 +3131,7 @@ const bc = (e = {}, t) => {
|
|
|
3131
3131
|
}), k = () => ({
|
|
3132
3132
|
...p(),
|
|
3133
3133
|
...yt.textarea.attrs
|
|
3134
|
-
}),
|
|
3134
|
+
}), w = () => ({
|
|
3135
3135
|
...p(),
|
|
3136
3136
|
...yt.select.attrs
|
|
3137
3137
|
}), B = () => {
|
|
@@ -3170,7 +3170,7 @@ const bc = (e = {}, t) => {
|
|
|
3170
3170
|
getRootProps: u,
|
|
3171
3171
|
getInputProps: v,
|
|
3172
3172
|
getTextareaProps: k,
|
|
3173
|
-
getSelectProps:
|
|
3173
|
+
getSelectProps: w,
|
|
3174
3174
|
getHelperTextProps: B,
|
|
3175
3175
|
getErrorTextProps: H,
|
|
3176
3176
|
getRequiredIndicatorProps: D
|
|
@@ -3606,7 +3606,7 @@ function ud(e, t) {
|
|
|
3606
3606
|
...i("positioning"),
|
|
3607
3607
|
placement: p ? "bottom" : h
|
|
3608
3608
|
});
|
|
3609
|
-
function
|
|
3609
|
+
function w(f) {
|
|
3610
3610
|
return {
|
|
3611
3611
|
id: Do(c, f.value),
|
|
3612
3612
|
disabled: !!f.disabled,
|
|
@@ -3619,12 +3619,12 @@ function ud(e, t) {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
function H(f) {
|
|
3621
3621
|
return {
|
|
3622
|
-
...
|
|
3622
|
+
...w(B(f)),
|
|
3623
3623
|
checked: !!f.checked
|
|
3624
3624
|
};
|
|
3625
3625
|
}
|
|
3626
3626
|
function D(f) {
|
|
3627
|
-
const { closeOnSelect: P, valueText: $, value: R } = f, S =
|
|
3627
|
+
const { closeOnSelect: P, valueText: $, value: R } = f, S = w(f), L = Do(c, R);
|
|
3628
3628
|
return t.element({
|
|
3629
3629
|
...Se.item.attrs,
|
|
3630
3630
|
id: L,
|
|
@@ -3645,8 +3645,8 @@ function ud(e, t) {
|
|
|
3645
3645
|
},
|
|
3646
3646
|
onPointerLeave(V) {
|
|
3647
3647
|
if (S.disabled || V.pointerType !== "mouse" || !e.event.previous()?.type.includes("POINTER")) return;
|
|
3648
|
-
const
|
|
3649
|
-
n({ type: "ITEM_POINTERLEAVE", id: L, target:
|
|
3648
|
+
const C = V.currentTarget;
|
|
3649
|
+
n({ type: "ITEM_POINTERLEAVE", id: L, target: C, closeOnSelect: P });
|
|
3650
3650
|
},
|
|
3651
3651
|
onPointerDown(V) {
|
|
3652
3652
|
if (S.disabled) return;
|
|
@@ -3876,7 +3876,7 @@ function ud(e, t) {
|
|
|
3876
3876
|
"aria-orientation": "horizontal"
|
|
3877
3877
|
});
|
|
3878
3878
|
},
|
|
3879
|
-
getItemState:
|
|
3879
|
+
getItemState: w,
|
|
3880
3880
|
getItemProps: D,
|
|
3881
3881
|
getOptionItemState: H,
|
|
3882
3882
|
getOptionItemProps(f) {
|
|
@@ -5658,9 +5658,9 @@ function ou(e, t) {
|
|
|
5658
5658
|
dir: s("dir"),
|
|
5659
5659
|
orientation: s("orientation")
|
|
5660
5660
|
});
|
|
5661
|
-
const
|
|
5662
|
-
if (
|
|
5663
|
-
p.preventDefault(),
|
|
5661
|
+
const w = v[k];
|
|
5662
|
+
if (w) {
|
|
5663
|
+
p.preventDefault(), w(p);
|
|
5664
5664
|
return;
|
|
5665
5665
|
}
|
|
5666
5666
|
}
|
|
@@ -5668,7 +5668,7 @@ function ou(e, t) {
|
|
|
5668
5668
|
},
|
|
5669
5669
|
getTriggerState: h,
|
|
5670
5670
|
getTriggerProps(p) {
|
|
5671
|
-
const { value: v, disabled: k } = p,
|
|
5671
|
+
const { value: v, disabled: k } = p, w = h(p);
|
|
5672
5672
|
return t.button({
|
|
5673
5673
|
...bo.trigger.attrs,
|
|
5674
5674
|
role: "tab",
|
|
@@ -5679,14 +5679,14 @@ function ou(e, t) {
|
|
|
5679
5679
|
"data-disabled": J(k),
|
|
5680
5680
|
"aria-disabled": k,
|
|
5681
5681
|
"data-value": v,
|
|
5682
|
-
"aria-selected":
|
|
5683
|
-
"data-selected": J(
|
|
5684
|
-
"data-focus": J(
|
|
5685
|
-
"aria-controls":
|
|
5682
|
+
"aria-selected": w.selected,
|
|
5683
|
+
"data-selected": J(w.selected),
|
|
5684
|
+
"data-focus": J(w.focused),
|
|
5685
|
+
"aria-controls": w.selected ? br(i, v) : void 0,
|
|
5686
5686
|
"data-ownedby": Eo(i),
|
|
5687
5687
|
"data-ssr": J(r.get("ssr")),
|
|
5688
5688
|
id: Ht(i, v),
|
|
5689
|
-
tabIndex:
|
|
5689
|
+
tabIndex: w.selected && m ? 0 : -1,
|
|
5690
5690
|
onFocus() {
|
|
5691
5691
|
n({ type: "TAB_FOCUS", value: v });
|
|
5692
5692
|
},
|
|
@@ -6419,11 +6419,11 @@ var mu = Ut({
|
|
|
6419
6419
|
}
|
|
6420
6420
|
});
|
|
6421
6421
|
function vu(e, t) {
|
|
6422
|
-
const { state: o, send: n, prop: r, scope: s, context: i, computed: c } = e, l = o.hasTag("visible"), d = o.hasTag("paused"), u = i.get("mounted"), m = c("frontmost"), h = r("parent").computed("placement"), p = r("type"), v = r("stacked"), k = r("title"),
|
|
6422
|
+
const { state: o, send: n, prop: r, scope: s, context: i, computed: c } = e, l = o.hasTag("visible"), d = o.hasTag("paused"), u = i.get("mounted"), m = c("frontmost"), h = r("parent").computed("placement"), p = r("type"), v = r("stacked"), k = r("title"), w = r("description"), B = r("action"), [H, D = "center"] = h.split("-");
|
|
6423
6423
|
return {
|
|
6424
6424
|
type: p,
|
|
6425
6425
|
title: k,
|
|
6426
|
-
description:
|
|
6426
|
+
description: w,
|
|
6427
6427
|
placement: h,
|
|
6428
6428
|
visible: l,
|
|
6429
6429
|
paused: d,
|
|
@@ -6455,7 +6455,7 @@ function vu(e, t) {
|
|
|
6455
6455
|
"data-overlap": J(!v),
|
|
6456
6456
|
role: "status",
|
|
6457
6457
|
"aria-atomic": "true",
|
|
6458
|
-
"aria-describedby":
|
|
6458
|
+
"aria-describedby": w ? ps(s) : void 0,
|
|
6459
6459
|
"aria-labelledby": k ? us(s) : void 0,
|
|
6460
6460
|
tabIndex: 0,
|
|
6461
6461
|
style: pu(e, l),
|
|
@@ -6740,51 +6740,51 @@ function ku(e = {}) {
|
|
|
6740
6740
|
pauseOnPageIdle: !0
|
|
6741
6741
|
});
|
|
6742
6742
|
let o = [], n = [], r = /* @__PURE__ */ new Set(), s = [];
|
|
6743
|
-
const i = (
|
|
6744
|
-
const b = o.indexOf(
|
|
6743
|
+
const i = (C) => (o.push(C), () => {
|
|
6744
|
+
const b = o.indexOf(C);
|
|
6745
6745
|
o.splice(b, 1);
|
|
6746
|
-
}), c = (
|
|
6746
|
+
}), c = (C) => (o.forEach((b) => b(C)), C), l = (C) => {
|
|
6747
6747
|
if (n.length >= t.max) {
|
|
6748
|
-
s.push(
|
|
6748
|
+
s.push(C);
|
|
6749
6749
|
return;
|
|
6750
6750
|
}
|
|
6751
|
-
c(
|
|
6751
|
+
c(C), n.unshift(C);
|
|
6752
6752
|
}, d = () => {
|
|
6753
6753
|
for (; s.length > 0 && n.length < t.max; ) {
|
|
6754
|
-
const
|
|
6755
|
-
|
|
6754
|
+
const C = s.shift();
|
|
6755
|
+
C && (c(C), n.unshift(C));
|
|
6756
6756
|
}
|
|
6757
|
-
}, u = (
|
|
6758
|
-
const b =
|
|
6759
|
-
return r.has(b) && r.delete(b), A ? n = n.map((z) => z.id === b ? c({ ...z, ...
|
|
6757
|
+
}, u = (C) => {
|
|
6758
|
+
const b = C.id ?? `toast:${Zs()}`, A = n.find((z) => z.id === b);
|
|
6759
|
+
return r.has(b) && r.delete(b), A ? n = n.map((z) => z.id === b ? c({ ...z, ...C, id: b }) : z) : l({
|
|
6760
6760
|
id: b,
|
|
6761
6761
|
duration: t.duration,
|
|
6762
6762
|
removeDelay: t.removeDelay,
|
|
6763
6763
|
type: "info",
|
|
6764
|
-
...
|
|
6764
|
+
...C,
|
|
6765
6765
|
stacked: !t.overlap,
|
|
6766
6766
|
gap: t.gap
|
|
6767
6767
|
}), b;
|
|
6768
|
-
}, m = (
|
|
6768
|
+
}, m = (C) => (r.add(C), C ? (o.forEach((b) => b({ id: C, dismiss: !0 })), n = n.filter((b) => b.id !== C), d()) : (n.forEach((b) => {
|
|
6769
6769
|
o.forEach((A) => A({ id: b.id, dismiss: !0 }));
|
|
6770
|
-
}), n = [], s = []),
|
|
6770
|
+
}), n = [], s = []), C);
|
|
6771
6771
|
return {
|
|
6772
6772
|
attrs: t,
|
|
6773
6773
|
subscribe: i,
|
|
6774
6774
|
create: u,
|
|
6775
|
-
update: (
|
|
6775
|
+
update: (C, b) => u({ id: C, ...b }),
|
|
6776
6776
|
remove: m,
|
|
6777
|
-
dismiss: (
|
|
6778
|
-
|
|
6779
|
-
},
|
|
6780
|
-
error: (
|
|
6781
|
-
success: (
|
|
6782
|
-
info: (
|
|
6783
|
-
warning: (
|
|
6784
|
-
loading: (
|
|
6785
|
-
getVisibleToasts: () => n.filter((
|
|
6777
|
+
dismiss: (C) => {
|
|
6778
|
+
C != null ? n = n.map((b) => b.id === C ? c({ ...b, message: "DISMISS" }) : b) : n = n.map((b) => c({ ...b, message: "DISMISS" }));
|
|
6779
|
+
},
|
|
6780
|
+
error: (C) => u({ ...C, type: "error" }),
|
|
6781
|
+
success: (C) => u({ ...C, type: "success" }),
|
|
6782
|
+
info: (C) => u({ ...C, type: "info" }),
|
|
6783
|
+
warning: (C) => u({ ...C, type: "warning" }),
|
|
6784
|
+
loading: (C) => u({ ...C, type: "loading" }),
|
|
6785
|
+
getVisibleToasts: () => n.filter((C) => !r.has(C.id)),
|
|
6786
6786
|
getCount: () => n.length,
|
|
6787
|
-
promise: (
|
|
6787
|
+
promise: (C, b, A = {}) => {
|
|
6788
6788
|
if (!b || !b.loading) {
|
|
6789
6789
|
Vs("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");
|
|
6790
6790
|
return;
|
|
@@ -6792,11 +6792,11 @@ function ku(e = {}) {
|
|
|
6792
6792
|
const z = u({
|
|
6793
6793
|
...A,
|
|
6794
6794
|
...b.loading,
|
|
6795
|
-
promise:
|
|
6795
|
+
promise: C,
|
|
6796
6796
|
type: "loading"
|
|
6797
6797
|
});
|
|
6798
6798
|
let Z = !0, ae;
|
|
6799
|
-
const Ve = Wo(
|
|
6799
|
+
const Ve = Wo(C).then(async (de) => {
|
|
6800
6800
|
if (ae = ["resolve", de], Iu(de) && !de.ok) {
|
|
6801
6801
|
Z = !1;
|
|
6802
6802
|
const Oe = Wo(b.error, `HTTP Error! status: ${de.status}`);
|
|
@@ -6819,19 +6819,19 @@ function ku(e = {}) {
|
|
|
6819
6819
|
(de, Oe) => Ve.then(() => ae[0] === "reject" ? Oe(ae[1]) : de(ae[1])).catch(Oe)
|
|
6820
6820
|
) };
|
|
6821
6821
|
},
|
|
6822
|
-
pause: (
|
|
6823
|
-
|
|
6822
|
+
pause: (C) => {
|
|
6823
|
+
C != null ? n = n.map((b) => b.id === C ? c({ ...b, message: "PAUSE" }) : b) : n = n.map((b) => c({ ...b, message: "PAUSE" }));
|
|
6824
6824
|
},
|
|
6825
|
-
resume: (
|
|
6826
|
-
|
|
6825
|
+
resume: (C) => {
|
|
6826
|
+
C != null ? n = n.map((b) => b.id === C ? c({ ...b, message: "RESUME" }) : b) : n = n.map((b) => c({ ...b, message: "RESUME" }));
|
|
6827
6827
|
},
|
|
6828
|
-
isVisible: (
|
|
6829
|
-
isDismissed: (
|
|
6828
|
+
isVisible: (C) => !r.has(C) && !!n.find((b) => b.id === C),
|
|
6829
|
+
isDismissed: (C) => r.has(C),
|
|
6830
6830
|
expand: () => {
|
|
6831
|
-
n = n.map((
|
|
6831
|
+
n = n.map((C) => c({ ...C, stacked: !0 }));
|
|
6832
6832
|
},
|
|
6833
6833
|
collapse: () => {
|
|
6834
|
-
n = n.map((
|
|
6834
|
+
n = n.map((C) => c({ ...C, stacked: !1 }));
|
|
6835
6835
|
}
|
|
6836
6836
|
};
|
|
6837
6837
|
}
|
|
@@ -7001,10 +7001,10 @@ const xu = (e) => ku(e), [wu, po] = Fe("ToastContext"), Cu = /* @__PURE__ */ T({
|
|
|
7001
7001
|
modal: !0
|
|
7002
7002
|
}, {
|
|
7003
7003
|
default: _(() => [
|
|
7004
|
-
|
|
7005
|
-
|
|
7004
|
+
E(a(St).Backdrop, { class: "fixed inset-0 bg-black/50 z-50" }),
|
|
7005
|
+
E(a(St).Positioner, { class: "fixed inset-0 z-50 flex items-center justify-center p-4" }, {
|
|
7006
7006
|
default: _(() => [
|
|
7007
|
-
|
|
7007
|
+
E(a(St).Content, {
|
|
7008
7008
|
class: Ce(`relative bg-white rounded-lg shadow-xl ${i(a(s)[h]?.size)} ${a(s)[h]?.size !== "full" ? "max-h-[90vh]" : ""} overflow-auto`)
|
|
7009
7009
|
}, {
|
|
7010
7010
|
default: _(() => [
|
|
@@ -7014,23 +7014,23 @@ const xu = (e) => ku(e), [wu, po] = Fe("ToastContext"), Cu = /* @__PURE__ */ T({
|
|
|
7014
7014
|
onClick: (p) => a(r)(h)
|
|
7015
7015
|
}, {
|
|
7016
7016
|
default: _(() => [
|
|
7017
|
-
|
|
7017
|
+
E(u, { class: "w-5 h-5" })
|
|
7018
7018
|
]),
|
|
7019
7019
|
_: 1
|
|
7020
7020
|
}, 8, ["onClick"])),
|
|
7021
7021
|
a(s)[h].title ? (g(), O("div", Ru, [
|
|
7022
|
-
|
|
7022
|
+
E(a(St).Title, { class: "text-lg font-semibold text-gray-900" }, {
|
|
7023
7023
|
default: _(() => [
|
|
7024
7024
|
le(W(a(s)[h].title), 1)
|
|
7025
7025
|
]),
|
|
7026
7026
|
_: 2
|
|
7027
7027
|
}, 1024),
|
|
7028
|
-
|
|
7028
|
+
E(a(St).CloseTrigger, {
|
|
7029
7029
|
class: "text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded p-1",
|
|
7030
7030
|
onClick: (p) => a(r)(h)
|
|
7031
7031
|
}, {
|
|
7032
7032
|
default: _(() => [
|
|
7033
|
-
|
|
7033
|
+
E(u, { class: "w-5 h-5" })
|
|
7034
7034
|
]),
|
|
7035
7035
|
_: 1
|
|
7036
7036
|
}, 8, ["onClick"])
|
|
@@ -7149,10 +7149,10 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7149
7149
|
const s = Mr;
|
|
7150
7150
|
return g(), I(a($u), { toaster: a(o) }, {
|
|
7151
7151
|
default: _((i) => [
|
|
7152
|
-
|
|
7152
|
+
E(a(yo).Root, { class: "toast-root" }, {
|
|
7153
7153
|
default: _(() => [
|
|
7154
7154
|
x("div", Lu, [
|
|
7155
|
-
|
|
7155
|
+
E(a(yo).Title, { class: "text-sm font-medium leading-snug" }, {
|
|
7156
7156
|
default: _(() => [
|
|
7157
7157
|
le(W(i.title), 1)
|
|
7158
7158
|
]),
|
|
@@ -7177,9 +7177,9 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7177
7177
|
_: 2
|
|
7178
7178
|
}, 1024)) : X("", !0)
|
|
7179
7179
|
]),
|
|
7180
|
-
|
|
7180
|
+
E(a(yo).CloseTrigger, { class: "toast-close" }, {
|
|
7181
7181
|
default: _(() => [
|
|
7182
|
-
|
|
7182
|
+
E(s, { class: "h-4 w-4" }),
|
|
7183
7183
|
x("span", Vu, W(a(t)("common.close")), 1)
|
|
7184
7184
|
]),
|
|
7185
7185
|
_: 1
|
|
@@ -7235,71 +7235,76 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Gu }), ju = {
|
|
|
7235
7235
|
},
|
|
7236
7236
|
emits: ["blockSelect"],
|
|
7237
7237
|
setup(e, { emit: t }) {
|
|
7238
|
-
const o = e, n = t, { t: r } = Pe(), s = y(() => Object.keys(o.blocksByCategory).sort((
|
|
7238
|
+
const o = e, n = t, { t: r } = Pe(), s = y(() => Object.keys(o.blocksByCategory).sort((m, h) => m.localeCompare(h))), i = y(() => {
|
|
7239
|
+
const m = {};
|
|
7240
|
+
for (const h of s.value)
|
|
7241
|
+
m[h] = [...o.blocksByCategory[h]].sort((p, v) => p.name.localeCompare(v.name));
|
|
7242
|
+
return m;
|
|
7243
|
+
}), c = re([]), l = re(null);
|
|
7239
7244
|
Mo(
|
|
7240
7245
|
s,
|
|
7241
|
-
(
|
|
7242
|
-
if (
|
|
7243
|
-
|
|
7246
|
+
(m) => {
|
|
7247
|
+
if (m.length === 0) {
|
|
7248
|
+
c.value = [];
|
|
7244
7249
|
return;
|
|
7245
7250
|
}
|
|
7246
|
-
const
|
|
7247
|
-
|
|
7251
|
+
const h = new Set(m), p = c.value.filter((k) => h.has(k)), v = m[0];
|
|
7252
|
+
v && !p.includes(v) && p.unshift(v), c.value = p;
|
|
7248
7253
|
},
|
|
7249
7254
|
{ immediate: !0 }
|
|
7250
7255
|
);
|
|
7251
|
-
const
|
|
7252
|
-
|
|
7253
|
-
},
|
|
7254
|
-
|
|
7256
|
+
const d = (m) => {
|
|
7257
|
+
l.value = m;
|
|
7258
|
+
}, u = () => {
|
|
7259
|
+
l.value = null;
|
|
7255
7260
|
};
|
|
7256
|
-
return (
|
|
7257
|
-
const
|
|
7258
|
-
return Object.keys(
|
|
7259
|
-
|
|
7261
|
+
return (m, h) => {
|
|
7262
|
+
const p = Lr;
|
|
7263
|
+
return Object.keys(m.blocksByCategory).length === 0 ? (g(), O("div", ju, [
|
|
7264
|
+
m.searchQuery.trim() ? (g(), O("p", zu, W(a(r)("blocksPopover.noBlocksFound")) + ' "' + W(m.searchQuery) + '"', 1)) : (g(), O("p", Wu, W(a(r)("blocksPopover.noBlocksAvailable")), 1))
|
|
7260
7265
|
])) : (g(), O("div", Ku, [
|
|
7261
7266
|
x("div", qu, [
|
|
7262
|
-
|
|
7263
|
-
modelValue: a(
|
|
7264
|
-
"onUpdate:modelValue":
|
|
7267
|
+
E(a(et).Root, {
|
|
7268
|
+
modelValue: a(c),
|
|
7269
|
+
"onUpdate:modelValue": h[0] || (h[0] = (v) => pt(c) ? c.value = v : null),
|
|
7265
7270
|
class: "w-full",
|
|
7266
7271
|
multiple: ""
|
|
7267
7272
|
}, {
|
|
7268
7273
|
default: _(() => [
|
|
7269
|
-
(g(!0), O(ge, null, Ie(a(s), (
|
|
7270
|
-
key:
|
|
7271
|
-
value:
|
|
7274
|
+
(g(!0), O(ge, null, Ie(a(s), (v) => (g(), I(a(et).Item, {
|
|
7275
|
+
key: v,
|
|
7276
|
+
value: v,
|
|
7272
7277
|
class: "border-b border-gray-100 last:border-b-0"
|
|
7273
7278
|
}, {
|
|
7274
7279
|
default: _(() => [
|
|
7275
|
-
|
|
7280
|
+
E(a(et).ItemTrigger, { class: "flex w-full items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors" }, {
|
|
7276
7281
|
default: _(() => [
|
|
7277
|
-
x("span", Xu, W(
|
|
7278
|
-
|
|
7282
|
+
x("span", Xu, W(v), 1),
|
|
7283
|
+
E(a(et).ItemIndicator, { class: "transition-transform duration-200" }, {
|
|
7279
7284
|
default: _(() => [
|
|
7280
|
-
|
|
7285
|
+
E(p, { class: "w-3 h-3 text-gray-500" })
|
|
7281
7286
|
]),
|
|
7282
7287
|
_: 1
|
|
7283
7288
|
})
|
|
7284
7289
|
]),
|
|
7285
7290
|
_: 2
|
|
7286
7291
|
}, 1024),
|
|
7287
|
-
|
|
7292
|
+
E(a(et).ItemContent, { class: "overflow-hidden" }, {
|
|
7288
7293
|
default: _(() => [
|
|
7289
7294
|
x("div", Yu, [
|
|
7290
|
-
(g(!0), O(ge, null, Ie(
|
|
7291
|
-
key:
|
|
7292
|
-
onClick: (
|
|
7293
|
-
onMouseenter: (
|
|
7294
|
-
onMouseleave:
|
|
7295
|
-
class: Ce(["flex items-center gap-2 px-3 py-2 w-full hover:bg-gray-50 transition-colors text-left", { "bg-gray-50": a(
|
|
7295
|
+
(g(!0), O(ge, null, Ie(a(i)[v], (k) => (g(), O("button", {
|
|
7296
|
+
key: k.blockType + "-" + (k.presetIndex ?? "default"),
|
|
7297
|
+
onClick: (w) => n("blockSelect", k),
|
|
7298
|
+
onMouseenter: (w) => d(k),
|
|
7299
|
+
onMouseleave: u,
|
|
7300
|
+
class: Ce(["flex items-center gap-2 px-3 py-2 w-full hover:bg-gray-50 transition-colors text-left", { "bg-gray-50": a(l) === k }])
|
|
7296
7301
|
}, [
|
|
7297
7302
|
x("div", {
|
|
7298
7303
|
class: "flex-none w-5 h-5 flex items-center justify-center text-gray-600 text-sm",
|
|
7299
|
-
innerHTML:
|
|
7304
|
+
innerHTML: k.icon || ""
|
|
7300
7305
|
}, null, 8, Qu),
|
|
7301
7306
|
x("div", Zu, [
|
|
7302
|
-
x("div", ep, W(
|
|
7307
|
+
x("div", ep, W(k.name), 1)
|
|
7303
7308
|
])
|
|
7304
7309
|
], 42, Ju))), 128))
|
|
7305
7310
|
])
|
|
@@ -7314,26 +7319,26 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Gu }), ju = {
|
|
|
7314
7319
|
}, 8, ["modelValue"])
|
|
7315
7320
|
]),
|
|
7316
7321
|
x("div", tp, [
|
|
7317
|
-
a(
|
|
7322
|
+
a(l) ? (g(), O("div", op, [
|
|
7318
7323
|
x("div", np, [
|
|
7319
7324
|
x("div", {
|
|
7320
7325
|
class: "flex-none w-12 h-12 flex items-center justify-center text-gray-600 text-2xl bg-white rounded border",
|
|
7321
|
-
innerHTML: a(
|
|
7326
|
+
innerHTML: a(l).icon || ""
|
|
7322
7327
|
}, null, 8, rp),
|
|
7323
7328
|
x("div", sp, [
|
|
7324
|
-
x("h3", ip, W(a(
|
|
7325
|
-
a(
|
|
7329
|
+
x("h3", ip, W(a(l).name), 1),
|
|
7330
|
+
a(l).description ? (g(), O("p", ap, W(a(l).description), 1)) : X("", !0)
|
|
7326
7331
|
])
|
|
7327
7332
|
]),
|
|
7328
7333
|
x("div", lp, [
|
|
7329
|
-
a(
|
|
7334
|
+
a(l).previewImageUrl ? (g(), O("img", {
|
|
7330
7335
|
key: 0,
|
|
7331
|
-
src: a(
|
|
7332
|
-
alt: `Preview of ${a(
|
|
7336
|
+
src: a(l).previewImageUrl,
|
|
7337
|
+
alt: `Preview of ${a(l).name}`,
|
|
7333
7338
|
class: "w-full h-full object-contain"
|
|
7334
7339
|
}, null, 8, cp)) : (g(), O("div", dp, [
|
|
7335
7340
|
x("div", up, W(a(r)("blocksPopover.noPreviewAvailable")), 1),
|
|
7336
|
-
x("div", pp, W(a(
|
|
7341
|
+
x("div", pp, W(a(l).blockType), 1)
|
|
7337
7342
|
]))
|
|
7338
7343
|
])
|
|
7339
7344
|
])) : (g(), O("div", hp, W(a(r)("blocksPopover.hoverToSeeDetails")), 1))
|
|
@@ -7396,7 +7401,7 @@ function fp(e, t) {
|
|
|
7396
7401
|
});
|
|
7397
7402
|
k.push(z);
|
|
7398
7403
|
});
|
|
7399
|
-
const
|
|
7404
|
+
const w = (b, A) => {
|
|
7400
7405
|
const z = n.insertBlock(b, A);
|
|
7401
7406
|
return r || v(), z;
|
|
7402
7407
|
}, B = (b, A, z) => {
|
|
@@ -7426,11 +7431,11 @@ function fp(e, t) {
|
|
|
7426
7431
|
return r || v(), b;
|
|
7427
7432
|
}, G = () => {
|
|
7428
7433
|
v();
|
|
7429
|
-
},
|
|
7434
|
+
}, C = () => {
|
|
7430
7435
|
k.forEach((b) => b()), k.length = 0;
|
|
7431
7436
|
};
|
|
7432
7437
|
return Ao(() => {
|
|
7433
|
-
|
|
7438
|
+
C();
|
|
7434
7439
|
}), {
|
|
7435
7440
|
// Reactive state
|
|
7436
7441
|
page: s,
|
|
@@ -7444,7 +7449,7 @@ function fp(e, t) {
|
|
|
7444
7449
|
getBlocksByType: h,
|
|
7445
7450
|
getChildrenBlocks: p,
|
|
7446
7451
|
// Command methods
|
|
7447
|
-
insertBlock:
|
|
7452
|
+
insertBlock: w,
|
|
7448
7453
|
insertBlockFromPreset: B,
|
|
7449
7454
|
removeBlock: H,
|
|
7450
7455
|
moveBlock: D,
|
|
@@ -7460,7 +7465,7 @@ function fp(e, t) {
|
|
|
7460
7465
|
canRedo: d,
|
|
7461
7466
|
// Utility methods
|
|
7462
7467
|
refresh: G,
|
|
7463
|
-
destroy:
|
|
7468
|
+
destroy: C
|
|
7464
7469
|
};
|
|
7465
7470
|
}
|
|
7466
7471
|
function Le() {
|
|
@@ -7576,8 +7581,8 @@ function Vr() {
|
|
|
7576
7581
|
if (!v || !v.children)
|
|
7577
7582
|
return [];
|
|
7578
7583
|
let k = [];
|
|
7579
|
-
return v.children.forEach((
|
|
7580
|
-
k.push(
|
|
7584
|
+
return v.children.forEach((w) => {
|
|
7585
|
+
k.push(w), k.push(...h(w));
|
|
7581
7586
|
}), k;
|
|
7582
7587
|
};
|
|
7583
7588
|
m.blocks.forEach((p) => {
|
|
@@ -7614,14 +7619,14 @@ const mp = {
|
|
|
7614
7619
|
fitViewport: !0,
|
|
7615
7620
|
getAnchorRect: () => u.value?.getBoundingClientRect() ?? null
|
|
7616
7621
|
}
|
|
7617
|
-
}),
|
|
7622
|
+
}), w = y(() => {
|
|
7618
7623
|
if (!m.value)
|
|
7619
7624
|
return [];
|
|
7620
7625
|
const $ = i(m.value);
|
|
7621
7626
|
return c($);
|
|
7622
7627
|
}), B = y(() => {
|
|
7623
7628
|
const $ = {};
|
|
7624
|
-
return
|
|
7629
|
+
return w.value.forEach((R) => {
|
|
7625
7630
|
const S = R.category || "Other";
|
|
7626
7631
|
$[S] || ($[S] = []), $[S].push(R);
|
|
7627
7632
|
}), $;
|
|
@@ -7632,8 +7637,8 @@ const mp = {
|
|
|
7632
7637
|
const R = {};
|
|
7633
7638
|
return Object.entries(B.value).forEach(([S, L]) => {
|
|
7634
7639
|
const V = L.filter((G) => {
|
|
7635
|
-
const
|
|
7636
|
-
return
|
|
7640
|
+
const C = G.name.toLowerCase(), b = (G.description || "").toLowerCase();
|
|
7641
|
+
return C.includes($) || b.includes($);
|
|
7637
7642
|
});
|
|
7638
7643
|
V.length > 0 && (R[S] = V);
|
|
7639
7644
|
}), R;
|
|
@@ -7673,13 +7678,13 @@ const mp = {
|
|
|
7673
7678
|
const S = gp;
|
|
7674
7679
|
return g(), I(a(ct).RootProvider, { value: a(k) }, {
|
|
7675
7680
|
default: _(() => [
|
|
7676
|
-
|
|
7681
|
+
E(a(ct).Positioner, { class: "!z-[1100]" }, {
|
|
7677
7682
|
default: _(() => [
|
|
7678
|
-
|
|
7683
|
+
E(a(ct).Content, { class: "bg-white shadow rounded-md w-[640px] h-[520px] border flex flex-col" }, {
|
|
7679
7684
|
default: _(() => [
|
|
7680
|
-
|
|
7685
|
+
E(a(os).Root, { class: "flex-none p-2" }, {
|
|
7681
7686
|
default: _(() => [
|
|
7682
|
-
|
|
7687
|
+
E(a(os).Input, {
|
|
7683
7688
|
modelValue: a(h),
|
|
7684
7689
|
"onUpdate:modelValue": R[0] || (R[0] = (L) => pt(h) ? h.value = L : null),
|
|
7685
7690
|
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",
|
|
@@ -7694,9 +7699,9 @@ const mp = {
|
|
|
7694
7699
|
defaultValue: "blocks"
|
|
7695
7700
|
}, {
|
|
7696
7701
|
default: _(() => [
|
|
7697
|
-
|
|
7702
|
+
E(a(dt).List, { class: "flex flex-none bg-gray-100 p-[2px] rounded mx-2" }, {
|
|
7698
7703
|
default: _(() => [
|
|
7699
|
-
|
|
7704
|
+
E(a(dt).Trigger, {
|
|
7700
7705
|
value: "blocks",
|
|
7701
7706
|
class: "flex-1 py-1.5 rounded data-selected:bg-white data-selected:shadow"
|
|
7702
7707
|
}, {
|
|
@@ -7705,7 +7710,7 @@ const mp = {
|
|
|
7705
7710
|
]),
|
|
7706
7711
|
_: 1
|
|
7707
7712
|
}),
|
|
7708
|
-
|
|
7713
|
+
E(a(dt).Trigger, {
|
|
7709
7714
|
value: "saved",
|
|
7710
7715
|
class: "flex-1 py-1.5 rounded data-selected:bg-white data-selected:shadow"
|
|
7711
7716
|
}, {
|
|
@@ -7717,12 +7722,12 @@ const mp = {
|
|
|
7717
7722
|
]),
|
|
7718
7723
|
_: 1
|
|
7719
7724
|
}),
|
|
7720
|
-
|
|
7725
|
+
E(a(dt).Content, {
|
|
7721
7726
|
value: "blocks",
|
|
7722
7727
|
class: "flex-1 overflow-hidden mt-2"
|
|
7723
7728
|
}, {
|
|
7724
7729
|
default: _(() => [
|
|
7725
|
-
|
|
7730
|
+
E(S, {
|
|
7726
7731
|
"blocks-by-category": a(H),
|
|
7727
7732
|
"search-query": a(h),
|
|
7728
7733
|
onBlockSelect: D
|
|
@@ -7733,7 +7738,7 @@ const mp = {
|
|
|
7733
7738
|
]),
|
|
7734
7739
|
_: 1
|
|
7735
7740
|
})) : (g(), O("div", mp, [
|
|
7736
|
-
|
|
7741
|
+
E(S, {
|
|
7737
7742
|
"blocks-by-category": a(H),
|
|
7738
7743
|
"search-query": a(h),
|
|
7739
7744
|
onBlockSelect: D
|
|
@@ -8003,7 +8008,7 @@ const Hp = {
|
|
|
8003
8008
|
v.value?.focus(), v.value?.select();
|
|
8004
8009
|
}));
|
|
8005
8010
|
}
|
|
8006
|
-
function
|
|
8011
|
+
function w() {
|
|
8007
8012
|
if (!d.value || !p.value.trim()) {
|
|
8008
8013
|
B();
|
|
8009
8014
|
return;
|
|
@@ -8015,14 +8020,14 @@ const Hp = {
|
|
|
8015
8020
|
h.value = !1, p.value = "";
|
|
8016
8021
|
}
|
|
8017
8022
|
function H(G) {
|
|
8018
|
-
G.key === "Enter" ? (G.preventDefault(),
|
|
8023
|
+
G.key === "Enter" ? (G.preventDefault(), w()) : G.key === "Escape" && (G.preventDefault(), B());
|
|
8019
8024
|
}
|
|
8020
8025
|
const D = y(() => {
|
|
8021
8026
|
if (!d.value)
|
|
8022
8027
|
return null;
|
|
8023
|
-
const G = n.getPage(),
|
|
8028
|
+
const G = n.getPage(), C = d.value;
|
|
8024
8029
|
for (const b of G.regions) {
|
|
8025
|
-
const A = b.blocks.indexOf(
|
|
8030
|
+
const A = b.blocks.indexOf(C.id);
|
|
8026
8031
|
if (A !== -1)
|
|
8027
8032
|
return {
|
|
8028
8033
|
parentType: "region",
|
|
@@ -8031,14 +8036,14 @@ const Hp = {
|
|
|
8031
8036
|
siblingCount: b.blocks.length
|
|
8032
8037
|
};
|
|
8033
8038
|
}
|
|
8034
|
-
if (
|
|
8035
|
-
const b = G.blocks[
|
|
8039
|
+
if (C.parentId) {
|
|
8040
|
+
const b = G.blocks[C.parentId];
|
|
8036
8041
|
if (b) {
|
|
8037
|
-
const A = b.children.indexOf(
|
|
8042
|
+
const A = b.children.indexOf(C.id);
|
|
8038
8043
|
if (A !== -1)
|
|
8039
8044
|
return {
|
|
8040
8045
|
parentType: "block",
|
|
8041
|
-
parentId:
|
|
8046
|
+
parentId: C.parentId,
|
|
8042
8047
|
currentIndex: A,
|
|
8043
8048
|
siblingCount: b.children.length
|
|
8044
8049
|
};
|
|
@@ -8079,27 +8084,27 @@ const Hp = {
|
|
|
8079
8084
|
function V() {
|
|
8080
8085
|
!d.value || d.value.static || (c(d.value.id), u());
|
|
8081
8086
|
}
|
|
8082
|
-
return (G,
|
|
8087
|
+
return (G, C) => {
|
|
8083
8088
|
const b = Vp, A = Np, z = Ai, Z = $p, ae = Pp, Ve = Gr, Ke = Ur, de = Hr;
|
|
8084
8089
|
return a(d) ? (g(), O("div", Hp, [
|
|
8085
8090
|
x("div", Up, [
|
|
8086
8091
|
t.isOverlay ? (g(), O("button", {
|
|
8087
8092
|
key: 0,
|
|
8088
|
-
onClick:
|
|
8093
|
+
onClick: C[0] || (C[0] = //@ts-ignore
|
|
8089
8094
|
(...Oe) => a(u) && a(u)(...Oe)),
|
|
8090
8095
|
class: "flex-none flex items-center justify-center w-8 h-8 rounded-md hover:bg-gray-100 transition-colors",
|
|
8091
8096
|
"aria-label": a(o)("common.close")
|
|
8092
8097
|
}, [
|
|
8093
|
-
|
|
8098
|
+
E(b, { class: "w-4 h-4 text-gray-600" })
|
|
8094
8099
|
], 8, Gp)) : X("", !0),
|
|
8095
8100
|
x("div", jp, [
|
|
8096
8101
|
a(h) ? As((g(), O("input", {
|
|
8097
8102
|
key: 0,
|
|
8098
8103
|
ref_key: "nameInputRef",
|
|
8099
8104
|
ref: v,
|
|
8100
|
-
"onUpdate:modelValue":
|
|
8105
|
+
"onUpdate:modelValue": C[1] || (C[1] = (Oe) => pt(p) ? p.value = Oe : null),
|
|
8101
8106
|
type: "text",
|
|
8102
|
-
onBlur:
|
|
8107
|
+
onBlur: w,
|
|
8103
8108
|
onKeydown: H,
|
|
8104
8109
|
class: "w-full text-sm font-medium text-gray-900 px-2 py-1 rounded border border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
8105
8110
|
}, null, 544)), [
|
|
@@ -8110,55 +8115,55 @@ const Hp = {
|
|
|
8110
8115
|
class: "w-full text-left text-sm font-medium text-gray-900 truncate capitalize px-2 py-1 rounded hover:bg-gray-100 transition-colors"
|
|
8111
8116
|
}, W(a(m)), 1))
|
|
8112
8117
|
]),
|
|
8113
|
-
|
|
8118
|
+
E(a(ie).Root, { positioning: { strategy: "fixed", placement: "bottom-end" } }, {
|
|
8114
8119
|
default: _(() => [
|
|
8115
|
-
|
|
8120
|
+
E(a(ie).Trigger, { class: "flex items-center justify-center w-8 h-8 rounded-md hover:bg-gray-100 transition-colors" }, {
|
|
8116
8121
|
default: _(() => [
|
|
8117
|
-
|
|
8122
|
+
E(A, { class: "w-4 h-4 text-gray-600" })
|
|
8118
8123
|
]),
|
|
8119
8124
|
_: 1
|
|
8120
8125
|
}),
|
|
8121
|
-
|
|
8126
|
+
E(a(ie).Positioner, { class: "!z-10" }, {
|
|
8122
8127
|
default: _(() => [
|
|
8123
|
-
|
|
8128
|
+
E(a(ie).Content, { class: "bg-white rounded-lg shadow-lg border border-gray-200 py-1 min-w-[160px] focus:outline-none" }, {
|
|
8124
8129
|
default: _(() => [
|
|
8125
|
-
|
|
8130
|
+
E(a(ie).Item, {
|
|
8126
8131
|
value: "duplicate",
|
|
8127
8132
|
disabled: a(d).static,
|
|
8128
8133
|
onSelect: $,
|
|
8129
8134
|
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"
|
|
8130
8135
|
}, {
|
|
8131
8136
|
default: _(() => [
|
|
8132
|
-
|
|
8137
|
+
E(z, { class: "w-4 h-4" }),
|
|
8133
8138
|
le(" " + W(a(o)("block.duplicate")), 1)
|
|
8134
8139
|
]),
|
|
8135
8140
|
_: 1
|
|
8136
8141
|
}, 8, ["disabled"]),
|
|
8137
|
-
|
|
8142
|
+
E(a(ie).Item, {
|
|
8138
8143
|
value: "move-next",
|
|
8139
8144
|
disabled: !a(f),
|
|
8140
8145
|
onSelect: S,
|
|
8141
8146
|
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"
|
|
8142
8147
|
}, {
|
|
8143
8148
|
default: _(() => [
|
|
8144
|
-
|
|
8149
|
+
E(Z, { class: "w-4 h-4" }),
|
|
8145
8150
|
le(" " + W(a(o)("block.moveToPrevious")), 1)
|
|
8146
8151
|
]),
|
|
8147
8152
|
_: 1
|
|
8148
8153
|
}, 8, ["disabled"]),
|
|
8149
|
-
|
|
8154
|
+
E(a(ie).Item, {
|
|
8150
8155
|
value: "move-next",
|
|
8151
8156
|
disabled: !a(P),
|
|
8152
8157
|
onSelect: R,
|
|
8153
8158
|
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"
|
|
8154
8159
|
}, {
|
|
8155
8160
|
default: _(() => [
|
|
8156
|
-
|
|
8161
|
+
E(ae, { class: "w-4 h-4" }),
|
|
8157
8162
|
le(" " + W(a(o)("block.moveToNext")), 1)
|
|
8158
8163
|
]),
|
|
8159
8164
|
_: 1
|
|
8160
8165
|
}, 8, ["disabled"]),
|
|
8161
|
-
|
|
8166
|
+
E(a(ie).Item, {
|
|
8162
8167
|
value: "toggle",
|
|
8163
8168
|
onSelect: L,
|
|
8164
8169
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
@@ -8175,14 +8180,14 @@ const Hp = {
|
|
|
8175
8180
|
]),
|
|
8176
8181
|
_: 1
|
|
8177
8182
|
}),
|
|
8178
|
-
|
|
8183
|
+
E(a(ie).Item, {
|
|
8179
8184
|
value: "remove",
|
|
8180
8185
|
disabled: a(d).static,
|
|
8181
8186
|
onSelect: V,
|
|
8182
8187
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-red-600 hover:bg-red-50 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"
|
|
8183
8188
|
}, {
|
|
8184
8189
|
default: _(() => [
|
|
8185
|
-
|
|
8190
|
+
E(de, { class: "w-4 h-4" }),
|
|
8186
8191
|
le(" " + W(a(o)("block.remove")), 1)
|
|
8187
8192
|
]),
|
|
8188
8193
|
_: 1
|
|
@@ -8216,7 +8221,7 @@ const Hp = {
|
|
|
8216
8221
|
return (l, d) => {
|
|
8217
8222
|
const u = zp, m = No, h = _p;
|
|
8218
8223
|
return g(), O("div", Wp, [
|
|
8219
|
-
|
|
8224
|
+
E(u, {
|
|
8220
8225
|
"is-overlay": l.isOverlay,
|
|
8221
8226
|
class: "flex-none"
|
|
8222
8227
|
}, null, 8, ["is-overlay"]),
|
|
@@ -8228,7 +8233,7 @@ const Hp = {
|
|
|
8228
8233
|
class: "flex-1 flex flex-col overflow-y-hidden"
|
|
8229
8234
|
}, {
|
|
8230
8235
|
default: _(() => [
|
|
8231
|
-
|
|
8236
|
+
E(a(dt).List, { class: "flex border-b flex-none" }, {
|
|
8232
8237
|
default: _(() => [
|
|
8233
8238
|
(g(!0), O(ge, null, Ie(a(n), (p) => (g(), I(a(dt).Trigger, {
|
|
8234
8239
|
key: p.id,
|
|
@@ -8283,7 +8288,7 @@ const Hp = {
|
|
|
8283
8288
|
])) : X("", !0)
|
|
8284
8289
|
], 64)) : (g(), O("div", Xp, [
|
|
8285
8290
|
x("div", Yp, [
|
|
8286
|
-
|
|
8291
|
+
E(h, { class: "w-8 h-8 text-gray-400" })
|
|
8287
8292
|
]),
|
|
8288
8293
|
x("h3", Jp, W(a(o)("configPanels.properties")), 1),
|
|
8289
8294
|
x("p", Qp, W(a(o)("configPanels.selectedBlock")), 1)
|
|
@@ -8424,7 +8429,7 @@ const mh = {
|
|
|
8424
8429
|
zoomScale: { default: 1 }
|
|
8425
8430
|
},
|
|
8426
8431
|
setup(e) {
|
|
8427
|
-
const t = e, { t: o } = Pe(), { engine: n, getBlockById: r } = Le(), { isEnabled: s, selectedBlockRect: i, iframeRect: c } = Bn(), { selectedBlock: l, canMoveToPrevious: d, canMoveToNext: u, moveToPrevious: m, moveToNext: h, duplicate: p, toggle: v, remove: k } = Pt(),
|
|
8432
|
+
const t = e, { t: o } = Pe(), { engine: n, getBlockById: r } = Le(), { isEnabled: s, selectedBlockRect: i, iframeRect: c } = Bn(), { selectedBlock: l, canMoveToPrevious: d, canMoveToNext: u, moveToPrevious: m, moveToNext: h, duplicate: p, toggle: v, remove: k } = Pt(), w = re(), B = re({ width: 200, height: 42 }), H = y(() => s.value && i.value && c.value && !l.value?.disabled && !l.value?.ghost), D = y(() => l.value?.static === !0), f = y(() => {
|
|
8428
8433
|
if (!l.value)
|
|
8429
8434
|
return { name: o("common.block"), icon: "" };
|
|
8430
8435
|
const V = r(l.value.id);
|
|
@@ -8447,10 +8452,10 @@ const mh = {
|
|
|
8447
8452
|
height: `${i.value.height}px`
|
|
8448
8453
|
});
|
|
8449
8454
|
Mo(
|
|
8450
|
-
[
|
|
8455
|
+
[w, H],
|
|
8451
8456
|
async () => {
|
|
8452
|
-
if (
|
|
8453
|
-
const V =
|
|
8457
|
+
if (w.value && H.value && (await ao(), w.value)) {
|
|
8458
|
+
const V = w.value.getBoundingClientRect();
|
|
8454
8459
|
B.value = { width: V.width, height: V.height };
|
|
8455
8460
|
}
|
|
8456
8461
|
},
|
|
@@ -8458,14 +8463,14 @@ const mh = {
|
|
|
8458
8463
|
);
|
|
8459
8464
|
const L = y(() => {
|
|
8460
8465
|
if (!i.value || !c.value) return {};
|
|
8461
|
-
const V = i.value, G = c.value, { width:
|
|
8466
|
+
const V = i.value, G = c.value, { width: C, height: b } = B.value, A = 2, z = t.zoomScale, Z = V.width * z, Ve = V.top - G.top < b + A ? V.height + A : -((b + A) / z), Ke = Z <= C, de = {
|
|
8462
8467
|
position: "absolute",
|
|
8463
8468
|
top: `${Ve}px`
|
|
8464
8469
|
};
|
|
8465
8470
|
return Ke ? de.left = "0px" : de.right = "0px", de;
|
|
8466
8471
|
});
|
|
8467
8472
|
return (V, G) => {
|
|
8468
|
-
const
|
|
8473
|
+
const C = fh, b = ph, A = dh, z = ah, Z = rh, ae = th;
|
|
8469
8474
|
return a(H) ? (g(), O("div", {
|
|
8470
8475
|
key: 0,
|
|
8471
8476
|
class: "absolute inset-0 w-full h-full pointer-events-none z-10",
|
|
@@ -8481,7 +8486,7 @@ const mh = {
|
|
|
8481
8486
|
G[0] || (G[0] = x("div", { class: "absolute inset-0 border border-blue-500 bg-blue-500/5" }, null, -1)),
|
|
8482
8487
|
x("div", {
|
|
8483
8488
|
ref_key: "toolbarElement",
|
|
8484
|
-
ref:
|
|
8489
|
+
ref: w,
|
|
8485
8490
|
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",
|
|
8486
8491
|
style: $o(a(L))
|
|
8487
8492
|
}, [
|
|
@@ -8492,7 +8497,7 @@ const mh = {
|
|
|
8492
8497
|
onClick: a(m)
|
|
8493
8498
|
}, {
|
|
8494
8499
|
default: _(() => [
|
|
8495
|
-
C
|
|
8500
|
+
E(C, { class: "w-3.5 h-3.5" })
|
|
8496
8501
|
]),
|
|
8497
8502
|
_: 1
|
|
8498
8503
|
}, 8, ["disabled", "title", "onClick"])),
|
|
@@ -8503,7 +8508,7 @@ const mh = {
|
|
|
8503
8508
|
onClick: a(h)
|
|
8504
8509
|
}, {
|
|
8505
8510
|
default: _(() => [
|
|
8506
|
-
|
|
8511
|
+
E(A)
|
|
8507
8512
|
]),
|
|
8508
8513
|
_: 1
|
|
8509
8514
|
}, 8, ["disabled", "title", "onClick"])),
|
|
@@ -8513,16 +8518,16 @@ const mh = {
|
|
|
8513
8518
|
onClick: a(p)
|
|
8514
8519
|
}, {
|
|
8515
8520
|
default: _(() => [
|
|
8516
|
-
|
|
8521
|
+
E(z)
|
|
8517
8522
|
]),
|
|
8518
8523
|
_: 1
|
|
8519
8524
|
}, 8, ["title", "onClick"])),
|
|
8520
|
-
|
|
8525
|
+
E(b, {
|
|
8521
8526
|
title: a(o)("block.disable"),
|
|
8522
8527
|
onClick: a(v)
|
|
8523
8528
|
}, {
|
|
8524
8529
|
default: _(() => [
|
|
8525
|
-
|
|
8530
|
+
E(Z)
|
|
8526
8531
|
]),
|
|
8527
8532
|
_: 1
|
|
8528
8533
|
}, 8, ["title", "onClick"]),
|
|
@@ -8533,7 +8538,7 @@ const mh = {
|
|
|
8533
8538
|
onClick: a(k)
|
|
8534
8539
|
}, {
|
|
8535
8540
|
default: _(() => [
|
|
8536
|
-
|
|
8541
|
+
E(ae)
|
|
8537
8542
|
]),
|
|
8538
8543
|
_: 1
|
|
8539
8544
|
}, 8, ["title", "onClick"]))
|
|
@@ -8576,7 +8581,7 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8576
8581
|
name: f?.meta?.name || D.type || n("common.block"),
|
|
8577
8582
|
icon: f?.meta?.icon || ""
|
|
8578
8583
|
};
|
|
8579
|
-
}), k = y(() => v.value.name),
|
|
8584
|
+
}), k = y(() => v.value.name), w = y(() => v.value.icon), B = y(() => !u.value || !c.value ? {} : {
|
|
8580
8585
|
position: "absolute",
|
|
8581
8586
|
left: `${u.value.left}px`,
|
|
8582
8587
|
top: `${u.value.top}px`,
|
|
@@ -8604,7 +8609,7 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8604
8609
|
x("div", Ih, [
|
|
8605
8610
|
x("span", {
|
|
8606
8611
|
class: "w-3 h-3 shrink-0 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8607
|
-
innerHTML: a(
|
|
8612
|
+
innerHTML: a(w)
|
|
8608
8613
|
}, null, 8, xh),
|
|
8609
8614
|
x("span", wh, W(a(k)), 1)
|
|
8610
8615
|
]),
|
|
@@ -8617,7 +8622,7 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8617
8622
|
onMouseleave: f[1] || (f[1] = ($) => o("buttonLeave", a(l))),
|
|
8618
8623
|
onClick: f[2] || (f[2] = Nt(($) => o("insertBefore", a(l), $), ["stop"]))
|
|
8619
8624
|
}, [
|
|
8620
|
-
|
|
8625
|
+
E(P, { class: "w-3 h-3 fill-current" })
|
|
8621
8626
|
], 34),
|
|
8622
8627
|
x("button", {
|
|
8623
8628
|
class: Ce(["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", {
|
|
@@ -8628,7 +8633,7 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8628
8633
|
onMouseleave: f[4] || (f[4] = ($) => o("buttonLeave", a(l))),
|
|
8629
8634
|
onClick: f[5] || (f[5] = Nt(($) => o("insertAfter", a(l), $), ["stop"]))
|
|
8630
8635
|
}, [
|
|
8631
|
-
|
|
8636
|
+
E(P, { class: "w-3 h-3 fill-current" })
|
|
8632
8637
|
], 34)
|
|
8633
8638
|
], 4)
|
|
8634
8639
|
])) : X("", !0);
|
|
@@ -8670,13 +8675,13 @@ const Oh = ["src"], Th = /* @__PURE__ */ T({
|
|
|
8670
8675
|
transform: S,
|
|
8671
8676
|
transformOrigin: "0 0"
|
|
8672
8677
|
};
|
|
8673
|
-
}),
|
|
8678
|
+
}), w = () => {
|
|
8674
8679
|
if (u.value) {
|
|
8675
8680
|
const $ = u.value.getBoundingClientRect();
|
|
8676
8681
|
s($);
|
|
8677
8682
|
}
|
|
8678
8683
|
}, B = ($) => {
|
|
8679
|
-
d(), i(), n($.target),
|
|
8684
|
+
d(), i(), n($.target), w();
|
|
8680
8685
|
}, H = ($) => {
|
|
8681
8686
|
r("craftile.inspector.overlay-button-enter", { blockId: $ });
|
|
8682
8687
|
}, D = ($) => {
|
|
@@ -8695,9 +8700,9 @@ const Oh = ["src"], Th = /* @__PURE__ */ T({
|
|
|
8695
8700
|
});
|
|
8696
8701
|
};
|
|
8697
8702
|
return nt(() => {
|
|
8698
|
-
window.addEventListener("scroll",
|
|
8703
|
+
window.addEventListener("scroll", w);
|
|
8699
8704
|
}), Ao(() => {
|
|
8700
|
-
window.removeEventListener("scroll",
|
|
8705
|
+
window.removeEventListener("scroll", w);
|
|
8701
8706
|
}), ($, R) => {
|
|
8702
8707
|
const S = Ch, L = bh;
|
|
8703
8708
|
return g(), O("div", {
|
|
@@ -8717,13 +8722,13 @@ const Oh = ["src"], Th = /* @__PURE__ */ T({
|
|
|
8717
8722
|
class: "w-full h-full border-0 preview-iframe",
|
|
8718
8723
|
onLoad: B
|
|
8719
8724
|
}, null, 40, Oh),
|
|
8720
|
-
|
|
8725
|
+
E(S, {
|
|
8721
8726
|
onButtonEnter: H,
|
|
8722
8727
|
onButtonLeave: D,
|
|
8723
8728
|
onInsertBefore: f,
|
|
8724
8729
|
onInsertAfter: P
|
|
8725
8730
|
}),
|
|
8726
|
-
|
|
8731
|
+
E(L)
|
|
8727
8732
|
], 4)
|
|
8728
8733
|
], 512);
|
|
8729
8734
|
};
|
|
@@ -8753,7 +8758,7 @@ const Oh = ["src"], Th = /* @__PURE__ */ T({
|
|
|
8753
8758
|
class: "bg-accent text-accent-foreground h-4 w-4 hidden group-hover:flex items-center justify-center absolute left-1/2 transform -translate-x-1/2 rounded-full cursor-pointer hover:ring-2 hover:ring-accent/40",
|
|
8754
8759
|
onClick: s
|
|
8755
8760
|
}, [
|
|
8756
|
-
|
|
8761
|
+
E(l, { class: "w-3 h-3" })
|
|
8757
8762
|
])
|
|
8758
8763
|
], 512);
|
|
8759
8764
|
};
|
|
@@ -8893,7 +8898,7 @@ function Fi(e) {
|
|
|
8893
8898
|
} = Le(), m = y(() => n(e)), h = y(() => m.value?.properties || {}), p = y(() => m.value?.type), v = y(() => m.value?.disabled), k = y(() => {
|
|
8894
8899
|
if (m.value)
|
|
8895
8900
|
return t.getBlockSchema(m.value.type);
|
|
8896
|
-
}),
|
|
8901
|
+
}), w = y(() => {
|
|
8897
8902
|
if (B.value)
|
|
8898
8903
|
return B.value.children?.indexOf(e) ?? -1;
|
|
8899
8904
|
for (const b of u.value) {
|
|
@@ -8911,30 +8916,30 @@ function Fi(e) {
|
|
|
8911
8916
|
return b;
|
|
8912
8917
|
}
|
|
8913
8918
|
}), H = y(() => r(e)), D = y(() => {
|
|
8914
|
-
if (!(
|
|
8919
|
+
if (!(w.value === void 0 || w.value <= 0)) {
|
|
8915
8920
|
if (B.value) {
|
|
8916
|
-
const b = B.value.children[
|
|
8921
|
+
const b = B.value.children[w.value - 1];
|
|
8917
8922
|
return n(b);
|
|
8918
8923
|
}
|
|
8919
8924
|
for (const b of u.value)
|
|
8920
8925
|
if (b.blocks.includes(e)) {
|
|
8921
|
-
const A = b.blocks[
|
|
8926
|
+
const A = b.blocks[w.value - 1];
|
|
8922
8927
|
return n(A);
|
|
8923
8928
|
}
|
|
8924
8929
|
}
|
|
8925
8930
|
}), f = y(() => {
|
|
8926
|
-
if (!(
|
|
8931
|
+
if (!(w.value === void 0 || w.value < 0)) {
|
|
8927
8932
|
if (B.value) {
|
|
8928
|
-
if (
|
|
8933
|
+
if (w.value >= B.value.children.length - 1)
|
|
8929
8934
|
return;
|
|
8930
|
-
const b = B.value.children[
|
|
8935
|
+
const b = B.value.children[w.value + 1];
|
|
8931
8936
|
return n(b);
|
|
8932
8937
|
}
|
|
8933
8938
|
for (const b of u.value)
|
|
8934
8939
|
if (b.blocks.includes(e)) {
|
|
8935
|
-
if (
|
|
8940
|
+
if (w.value >= b.blocks.length - 1)
|
|
8936
8941
|
return;
|
|
8937
|
-
const A = b.blocks[
|
|
8942
|
+
const A = b.blocks[w.value + 1];
|
|
8938
8943
|
return n(A);
|
|
8939
8944
|
}
|
|
8940
8945
|
}
|
|
@@ -8945,7 +8950,7 @@ function Fi(e) {
|
|
|
8945
8950
|
type: p,
|
|
8946
8951
|
disabled: v,
|
|
8947
8952
|
schema: k,
|
|
8948
|
-
index:
|
|
8953
|
+
index: w,
|
|
8949
8954
|
// Relationships
|
|
8950
8955
|
parent: B,
|
|
8951
8956
|
children: H,
|
|
@@ -9002,16 +9007,16 @@ function Jh() {
|
|
|
9002
9007
|
if (!h || !c(m))
|
|
9003
9008
|
return;
|
|
9004
9009
|
const p = wr(h), k = t.getBlockById(m).parentId;
|
|
9005
|
-
let
|
|
9010
|
+
let w;
|
|
9006
9011
|
try {
|
|
9007
9012
|
if (k)
|
|
9008
|
-
|
|
9013
|
+
w = t.getBlockById(k).children.indexOf(m) + 1, o(p, { parentId: k, index: w });
|
|
9009
9014
|
else {
|
|
9010
9015
|
const B = t.getPage();
|
|
9011
9016
|
for (const H of B.regions) {
|
|
9012
9017
|
const D = H.blocks.indexOf(m);
|
|
9013
9018
|
if (D !== -1) {
|
|
9014
|
-
|
|
9019
|
+
w = D + 1, o(p, { regionId: ne(H), index: w });
|
|
9015
9020
|
break;
|
|
9016
9021
|
}
|
|
9017
9022
|
}
|
|
@@ -9066,7 +9071,7 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9066
9071
|
blockId: {}
|
|
9067
9072
|
},
|
|
9068
9073
|
setup(e) {
|
|
9069
|
-
const t = e, { t: o } = Pe(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: c, blocks: l, regions: d } = Le(), { open: u, getInsertionContext: m } = ho(), { block: h, parent: p, index: v } = Fi(t.blockId), { toaster: k } = it(), { copyBlock:
|
|
9074
|
+
const t = e, { t: o } = Pe(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: c, blocks: l, regions: d } = Le(), { open: u, getInsertionContext: m } = ho(), { block: h, parent: p, index: v } = Fi(t.blockId), { toaster: k } = it(), { copyBlock: w, canPasteAfter: B, pasteBlockAfter: H, hasCopiedBlock: D, copyBlockAsJSON: f } = Jh(), P = y(() => h.value?.static === !0), $ = y(() => !h.value?.parentId), R = y(() => {
|
|
9070
9075
|
if (!h.value)
|
|
9071
9076
|
return null;
|
|
9072
9077
|
const oe = n.getPage(), ve = h.value;
|
|
@@ -9108,7 +9113,7 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9108
9113
|
return !0;
|
|
9109
9114
|
const oe = S.value.filter((ve) => ve !== t.blockId);
|
|
9110
9115
|
return At(oe, l.value, R.value.currentIndex + 1);
|
|
9111
|
-
}), G = y(() => v.value === void 0 || v.value < 0 || !S.value ? !0 : At(S.value, l.value, v.value)),
|
|
9116
|
+
}), G = y(() => v.value === void 0 || v.value < 0 || !S.value ? !0 : At(S.value, l.value, v.value)), C = y(() => v.value === void 0 || v.value < 0 || !S.value ? !0 : At(S.value, l.value, v.value + 1)), b = re(null);
|
|
9112
9117
|
function A() {
|
|
9113
9118
|
s(t.blockId);
|
|
9114
9119
|
}
|
|
@@ -9180,7 +9185,7 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9180
9185
|
() => $.value ? o("block.insertBlockAfter") : o("block.insertSiblingAfter")
|
|
9181
9186
|
);
|
|
9182
9187
|
function me() {
|
|
9183
|
-
|
|
9188
|
+
w(t.blockId);
|
|
9184
9189
|
}
|
|
9185
9190
|
const se = y(() => D.value && B(t.blockId));
|
|
9186
9191
|
function Be() {
|
|
@@ -9193,7 +9198,7 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9193
9198
|
const Re = Yh, De = Kh, zt = Ai, An = Gr, Nn = Ur, Fn = jh, Ln = Hh, Vn = Fh, at = Mh, aa = $h, la = Hr;
|
|
9194
9199
|
return a(h) ? (g(), I(a(ie).Root, { key: 0 }, {
|
|
9195
9200
|
default: _(() => [
|
|
9196
|
-
|
|
9201
|
+
E(a(ie).ContextTrigger, {
|
|
9197
9202
|
ref_key: "contextTriggerRef",
|
|
9198
9203
|
ref: b,
|
|
9199
9204
|
"as-child": ""
|
|
@@ -9203,46 +9208,46 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9203
9208
|
]),
|
|
9204
9209
|
_: 3
|
|
9205
9210
|
}, 512),
|
|
9206
|
-
|
|
9211
|
+
E(a(ie).Positioner, null, {
|
|
9207
9212
|
default: _(() => [
|
|
9208
|
-
|
|
9213
|
+
E(a(ie).Content, { class: "bg-white rounded-lg shadow-lg border border-gray-200 py-1 min-w-[180px] focus:outline-none z-50" }, {
|
|
9209
9214
|
default: _(() => [
|
|
9210
|
-
|
|
9215
|
+
E(a(ie).Item, {
|
|
9211
9216
|
value: "copy",
|
|
9212
9217
|
onSelect: me,
|
|
9213
9218
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
9214
9219
|
}, {
|
|
9215
9220
|
default: _(() => [
|
|
9216
|
-
|
|
9221
|
+
E(Re, { class: "w-4 h-4" }),
|
|
9217
9222
|
le(" " + W(a(o)("block.copy")), 1)
|
|
9218
9223
|
]),
|
|
9219
9224
|
_: 1
|
|
9220
9225
|
}),
|
|
9221
|
-
|
|
9226
|
+
E(a(ie).Item, {
|
|
9222
9227
|
value: "paste-after",
|
|
9223
9228
|
disabled: !a(se),
|
|
9224
9229
|
onSelect: Be,
|
|
9225
9230
|
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"
|
|
9226
9231
|
}, {
|
|
9227
9232
|
default: _(() => [
|
|
9228
|
-
|
|
9233
|
+
E(De, { class: "w-4 h-4" }),
|
|
9229
9234
|
le(" " + W(a(o)("block.pasteAfter")), 1)
|
|
9230
9235
|
]),
|
|
9231
9236
|
_: 1
|
|
9232
9237
|
}, 8, ["disabled"]),
|
|
9233
|
-
|
|
9238
|
+
E(a(ie).Item, {
|
|
9234
9239
|
value: "duplicate",
|
|
9235
9240
|
disabled: a(P),
|
|
9236
9241
|
onSelect: A,
|
|
9237
9242
|
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"
|
|
9238
9243
|
}, {
|
|
9239
9244
|
default: _(() => [
|
|
9240
|
-
|
|
9245
|
+
E(zt, { class: "w-4 h-4" }),
|
|
9241
9246
|
le(" " + W(a(o)("block.duplicate")), 1)
|
|
9242
9247
|
]),
|
|
9243
9248
|
_: 1
|
|
9244
9249
|
}, 8, ["disabled"]),
|
|
9245
|
-
|
|
9250
|
+
E(a(ie).Item, {
|
|
9246
9251
|
value: "toggle",
|
|
9247
9252
|
onSelect: z,
|
|
9248
9253
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
@@ -9259,76 +9264,76 @@ const Qh = /* @__PURE__ */ T({
|
|
|
9259
9264
|
]),
|
|
9260
9265
|
_: 1
|
|
9261
9266
|
}),
|
|
9262
|
-
|
|
9263
|
-
|
|
9267
|
+
E(a(ie).Separator, { class: "my-1 h-px bg-gray-200" }),
|
|
9268
|
+
E(a(ie).Item, {
|
|
9264
9269
|
value: "move-previous",
|
|
9265
9270
|
disabled: !a(L),
|
|
9266
9271
|
onSelect: ae,
|
|
9267
9272
|
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"
|
|
9268
9273
|
}, {
|
|
9269
9274
|
default: _(() => [
|
|
9270
|
-
|
|
9275
|
+
E(Fn, { class: "w-4 h-4" }),
|
|
9271
9276
|
le(" " + W(a(o)("block.moveToPrevious")), 1)
|
|
9272
9277
|
]),
|
|
9273
9278
|
_: 1
|
|
9274
9279
|
}, 8, ["disabled"]),
|
|
9275
|
-
|
|
9280
|
+
E(a(ie).Item, {
|
|
9276
9281
|
value: "move-next",
|
|
9277
9282
|
disabled: !a(V),
|
|
9278
9283
|
onSelect: Ve,
|
|
9279
9284
|
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"
|
|
9280
9285
|
}, {
|
|
9281
9286
|
default: _(() => [
|
|
9282
|
-
|
|
9287
|
+
E(Ln, { class: "w-4 h-4" }),
|
|
9283
9288
|
le(" " + W(a(o)("block.moveToNext")), 1)
|
|
9284
9289
|
]),
|
|
9285
9290
|
_: 1
|
|
9286
9291
|
}, 8, ["disabled"]),
|
|
9287
|
-
|
|
9288
|
-
|
|
9292
|
+
E(a(ie).Separator, { class: "my-1 h-px bg-gray-200" }),
|
|
9293
|
+
E(a(ie).Item, {
|
|
9289
9294
|
value: "insert-before",
|
|
9290
9295
|
disabled: !a(G),
|
|
9291
9296
|
onSelect: Ke,
|
|
9292
9297
|
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"
|
|
9293
9298
|
}, {
|
|
9294
9299
|
default: _(() => [
|
|
9295
|
-
|
|
9300
|
+
E(Vn, { class: "w-4 h-4" }),
|
|
9296
9301
|
le(" " + W(a(Dn)), 1)
|
|
9297
9302
|
]),
|
|
9298
9303
|
_: 1
|
|
9299
9304
|
}, 8, ["disabled"]),
|
|
9300
|
-
|
|
9305
|
+
E(a(ie).Item, {
|
|
9301
9306
|
value: "insert-after",
|
|
9302
|
-
disabled: !a(
|
|
9307
|
+
disabled: !a(C),
|
|
9303
9308
|
onSelect: de,
|
|
9304
9309
|
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"
|
|
9305
9310
|
}, {
|
|
9306
9311
|
default: _(() => [
|
|
9307
|
-
|
|
9312
|
+
E(at, { class: "w-4 h-4" }),
|
|
9308
9313
|
le(" " + W(a(Mn)), 1)
|
|
9309
9314
|
]),
|
|
9310
9315
|
_: 1
|
|
9311
9316
|
}, 8, ["disabled"]),
|
|
9312
|
-
|
|
9313
|
-
|
|
9317
|
+
E(a(ie).Separator, { class: "my-1 h-px bg-gray-200" }),
|
|
9318
|
+
E(a(ie).Item, {
|
|
9314
9319
|
value: "copy-as-json",
|
|
9315
9320
|
onSelect: bt,
|
|
9316
9321
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
9317
9322
|
}, {
|
|
9318
9323
|
default: _(() => [
|
|
9319
|
-
|
|
9324
|
+
E(aa, { class: "w-4 h-4" }),
|
|
9320
9325
|
le(" " + W(a(o)("block.copyAsJson")), 1)
|
|
9321
9326
|
]),
|
|
9322
9327
|
_: 1
|
|
9323
9328
|
}),
|
|
9324
|
-
|
|
9329
|
+
E(a(ie).Item, {
|
|
9325
9330
|
value: "remove",
|
|
9326
9331
|
disabled: a(P),
|
|
9327
9332
|
onSelect: Oe,
|
|
9328
9333
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-red-600 hover:bg-red-50 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"
|
|
9329
9334
|
}, {
|
|
9330
9335
|
default: _(() => [
|
|
9331
|
-
|
|
9336
|
+
E(la, { class: "w-4 h-4" }),
|
|
9332
9337
|
le(" " + W(a(o)("block.remove")), 1)
|
|
9333
9338
|
]),
|
|
9334
9339
|
_: 1
|
|
@@ -9928,7 +9933,7 @@ var Jt = [], Jn = {
|
|
|
9928
9933
|
function Fg(e) {
|
|
9929
9934
|
var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl, s = e.cloneEl, i = e.toEl, c = e.fromEl, l = e.oldIndex, d = e.newIndex, u = e.oldDraggableIndex, m = e.newDraggableIndex, h = e.originalEvent, p = e.putSortable, v = e.extraEventProperties;
|
|
9930
9935
|
if (t = t || o && o[Ge], !!t) {
|
|
9931
|
-
var k,
|
|
9936
|
+
var k, w = t.options, B = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
9932
9937
|
window.CustomEvent && !vt && !Go ? k = new CustomEvent(n, {
|
|
9933
9938
|
bubbles: !0,
|
|
9934
9939
|
cancelable: !0
|
|
@@ -9936,7 +9941,7 @@ function Fg(e) {
|
|
|
9936
9941
|
var H = ot(ot({}, v), jo.getEventProperties(n, t));
|
|
9937
9942
|
for (var D in H)
|
|
9938
9943
|
k[D] = H[D];
|
|
9939
|
-
o && o.dispatchEvent(k),
|
|
9944
|
+
o && o.dispatchEvent(k), w[B] && w[B].call(t, k);
|
|
9940
9945
|
}
|
|
9941
9946
|
}
|
|
9942
9947
|
var Lg = ["evt"], Me = function(e, t) {
|
|
@@ -10327,7 +10332,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10327
10332
|
changed: H
|
|
10328
10333
|
}, Ve));
|
|
10329
10334
|
}
|
|
10330
|
-
function
|
|
10335
|
+
function w() {
|
|
10331
10336
|
k("dragOverAnimationCapture"), p.captureAnimationState(), p !== m && m.captureAnimationState();
|
|
10332
10337
|
}
|
|
10333
10338
|
function B(ae) {
|
|
@@ -10355,38 +10360,38 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10355
10360
|
if (h = this._getDirection(e, o) === "vertical", n = ye(N), k("dragOverValid"), q.eventCanceled)
|
|
10356
10361
|
return v;
|
|
10357
10362
|
if (s)
|
|
10358
|
-
return he = ce,
|
|
10363
|
+
return he = ce, w(), this._hideClone(), k("revert"), q.eventCanceled || (Mt ? ce.insertBefore(N, Mt) : ce.appendChild(N)), B(!0);
|
|
10359
10364
|
var D = jr(t, i.draggable);
|
|
10360
10365
|
if (!D || Kg(e, h, this) && !D.animated) {
|
|
10361
10366
|
if (D === N)
|
|
10362
10367
|
return B(!1);
|
|
10363
10368
|
if (D && t === e.target && (o = D), o && (r = ye(o)), nn(ce, t, N, n, o, r, e, !!o) !== !1)
|
|
10364
|
-
return
|
|
10369
|
+
return w(), D && D.nextSibling ? t.insertBefore(N, D.nextSibling) : t.appendChild(N), he = t, H(), B(!0);
|
|
10365
10370
|
} else if (D && Wg(e, h, this)) {
|
|
10366
10371
|
var f = so(t, 0, i, !0);
|
|
10367
10372
|
if (f === N)
|
|
10368
10373
|
return B(!1);
|
|
10369
10374
|
if (o = f, r = ye(o), nn(ce, t, N, n, o, r, e, !1) !== !1)
|
|
10370
|
-
return
|
|
10375
|
+
return w(), t.insertBefore(N, f), he = t, H(), B(!0);
|
|
10371
10376
|
} else if (o.parentNode === t) {
|
|
10372
10377
|
r = ye(o);
|
|
10373
10378
|
var P = 0, $, R = N.parentNode !== t, S = !Hg(N.animated && N.toRect || n, o.animated && o.toRect || r, h), L = h ? "top" : "left", V = Es(o, "top", "top") || Es(N, "top", "top"), G = V ? V.scrollTop : void 0;
|
|
10374
10379
|
Qt !== o && ($ = r[L], So = !1, tn = !S && i.invertSwap || R), P = qg(e, o, r, h, S ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, tn, Qt === o);
|
|
10375
|
-
var
|
|
10380
|
+
var C;
|
|
10376
10381
|
if (P !== 0) {
|
|
10377
10382
|
var b = We(N);
|
|
10378
10383
|
do
|
|
10379
|
-
b -= P,
|
|
10380
|
-
while (
|
|
10384
|
+
b -= P, C = he.children[b];
|
|
10385
|
+
while (C && (K(C, "display") === "none" || C === Y));
|
|
10381
10386
|
}
|
|
10382
|
-
if (P === 0 ||
|
|
10387
|
+
if (P === 0 || C === o)
|
|
10383
10388
|
return B(!1);
|
|
10384
10389
|
Qt = o, Bo = P;
|
|
10385
10390
|
var A = o.nextElementSibling, z = !1;
|
|
10386
10391
|
z = P === 1;
|
|
10387
10392
|
var Z = nn(ce, t, N, n, o, r, e, z);
|
|
10388
10393
|
if (Z !== !1)
|
|
10389
|
-
return (Z === 1 || Z === -1) && (z = Z === 1), yr = !0, setTimeout(zg, 30),
|
|
10394
|
+
return (Z === 1 || Z === -1) && (z = Z === 1), yr = !0, setTimeout(zg, 30), w(), z && !A ? t.appendChild(N) : o.parentNode.insertBefore(N, z ? A : o), V && qi(V, 0, G - V.scrollTop), he = N.parentNode, $ !== void 0 && !tn && (ln = Math.abs($ - ye(o)[L])), H(), B(!0);
|
|
10390
10395
|
}
|
|
10391
10396
|
if (t.contains(N))
|
|
10392
10397
|
return B(!1);
|
|
@@ -10718,13 +10723,13 @@ var rr = Ki(function(e, t, o, n) {
|
|
|
10718
10723
|
kr !== o && (kr = o, dn(), xo = t.scroll, u = t.scrollFn, xo === !0 && (xo = xt(o, !0)));
|
|
10719
10724
|
var m = 0, h = xo;
|
|
10720
10725
|
do {
|
|
10721
|
-
var p = h, v = ye(p), k = v.top,
|
|
10726
|
+
var p = h, v = ye(p), k = v.top, w = v.bottom, B = v.left, H = v.right, D = v.width, f = v.height, P = void 0, $ = void 0, R = p.scrollWidth, S = p.scrollHeight, L = K(p), V = p.scrollLeft, G = p.scrollTop;
|
|
10722
10727
|
p === l ? (P = D < R && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), $ = f < S && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (P = D < R && (L.overflowX === "auto" || L.overflowX === "scroll"), $ = f < S && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
10723
|
-
var
|
|
10728
|
+
var C = P && (Math.abs(H - r) <= i && V + D < R) - (Math.abs(B - r) <= i && !!V), b = $ && (Math.abs(w - s) <= i && G + f < S) - (Math.abs(k - s) <= i && !!G);
|
|
10724
10729
|
if (!be[m])
|
|
10725
10730
|
for (var A = 0; A <= m; A++)
|
|
10726
10731
|
be[A] || (be[A] = {});
|
|
10727
|
-
(be[m].vx !=
|
|
10732
|
+
(be[m].vx != C || be[m].vy != b || be[m].el !== p) && (be[m].el = p, be[m].vx = C, be[m].vy = b, clearInterval(be[m].pid), (C != 0 || b != 0) && (d = !0, be[m].pid = setInterval((function() {
|
|
10728
10733
|
n && this.layer === 0 && q.active._onTouchMove(xn);
|
|
10729
10734
|
var z = be[this.layer].vy ? be[this.layer].vy * c : 0, Z = be[this.layer].vx ? be[this.layer].vx * c : 0;
|
|
10730
10735
|
typeof u == "function" && u.call(q.dragged.parentNode[Ge], Z, z, e, xn, be[this.layer].el) !== "continue" || qi(be[this.layer].el, Z, z);
|
|
@@ -10814,10 +10819,10 @@ function nf(...e) {
|
|
|
10814
10819
|
} = (o = a(c)) != null ? o : {};
|
|
10815
10820
|
function h(S) {
|
|
10816
10821
|
var L;
|
|
10817
|
-
const { from: V, oldIndex: G, item:
|
|
10822
|
+
const { from: V, oldIndex: G, item: C } = S;
|
|
10818
10823
|
r = Array.from(V.childNodes);
|
|
10819
10824
|
const b = a((L = a(i)) == null ? void 0 : L[G]), A = u(b);
|
|
10820
|
-
$s(b, A),
|
|
10825
|
+
$s(b, A), C[Rs] = A;
|
|
10821
10826
|
}
|
|
10822
10827
|
function p(S) {
|
|
10823
10828
|
const L = S.item[Rs];
|
|
@@ -10831,47 +10836,47 @@ function nf(...e) {
|
|
|
10831
10836
|
}
|
|
10832
10837
|
}
|
|
10833
10838
|
function v(S) {
|
|
10834
|
-
const { from: L, item: V, oldIndex: G, oldDraggableIndex:
|
|
10839
|
+
const { from: L, item: V, oldIndex: G, oldDraggableIndex: C, pullMode: b, clone: A } = S;
|
|
10835
10840
|
if (ks(L, V, G), b === "clone") {
|
|
10836
10841
|
Xn(A);
|
|
10837
10842
|
return;
|
|
10838
10843
|
}
|
|
10839
10844
|
if (pt(i)) {
|
|
10840
10845
|
const z = [...a(i)];
|
|
10841
|
-
i.value = ys(z,
|
|
10846
|
+
i.value = ys(z, C);
|
|
10842
10847
|
return;
|
|
10843
10848
|
}
|
|
10844
|
-
ys(a(i),
|
|
10849
|
+
ys(a(i), C);
|
|
10845
10850
|
}
|
|
10846
10851
|
function k(S) {
|
|
10847
10852
|
if (m) {
|
|
10848
10853
|
m(S);
|
|
10849
10854
|
return;
|
|
10850
10855
|
}
|
|
10851
|
-
const { from: L, item: V, oldIndex: G, oldDraggableIndex:
|
|
10856
|
+
const { from: L, item: V, oldIndex: G, oldDraggableIndex: C, newDraggableIndex: b } = S;
|
|
10852
10857
|
if (Xn(V), ks(L, V, G), pt(i)) {
|
|
10853
10858
|
const A = [...a(i)];
|
|
10854
10859
|
i.value = bs(
|
|
10855
10860
|
A,
|
|
10856
|
-
|
|
10861
|
+
C,
|
|
10857
10862
|
b
|
|
10858
10863
|
);
|
|
10859
10864
|
return;
|
|
10860
10865
|
}
|
|
10861
|
-
bs(a(i),
|
|
10866
|
+
bs(a(i), C, b);
|
|
10862
10867
|
}
|
|
10863
|
-
function
|
|
10864
|
-
const { newIndex: L, oldIndex: V, from: G, to:
|
|
10868
|
+
function w(S) {
|
|
10869
|
+
const { newIndex: L, oldIndex: V, from: G, to: C } = S;
|
|
10865
10870
|
let b = null;
|
|
10866
|
-
const A = L === V && G ===
|
|
10871
|
+
const A = L === V && G === C;
|
|
10867
10872
|
try {
|
|
10868
10873
|
if (A) {
|
|
10869
10874
|
let z = null;
|
|
10870
10875
|
r?.some((Z, ae) => {
|
|
10871
|
-
if (z && r?.length !==
|
|
10876
|
+
if (z && r?.length !== C.childNodes.length)
|
|
10872
10877
|
return G.insertBefore(z, Z.nextSibling), !0;
|
|
10873
|
-
const Ve =
|
|
10874
|
-
z =
|
|
10878
|
+
const Ve = C.childNodes[ae];
|
|
10879
|
+
z = C?.replaceChild(Z, Ve);
|
|
10875
10880
|
});
|
|
10876
10881
|
}
|
|
10877
10882
|
} catch (z) {
|
|
@@ -10889,7 +10894,7 @@ function nf(...e) {
|
|
|
10889
10894
|
onStart: h,
|
|
10890
10895
|
onAdd: p,
|
|
10891
10896
|
onRemove: v,
|
|
10892
|
-
onEnd:
|
|
10897
|
+
onEnd: w
|
|
10893
10898
|
};
|
|
10894
10899
|
function H(S) {
|
|
10895
10900
|
const L = a(s);
|
|
@@ -10897,15 +10902,15 @@ function nf(...e) {
|
|
|
10897
10902
|
}
|
|
10898
10903
|
function D() {
|
|
10899
10904
|
var S;
|
|
10900
|
-
const L = (S = a(c)) != null ? S : {}, { immediate: V, clone: G } = L,
|
|
10901
|
-
return Is(
|
|
10902
|
-
Cg(b) && (
|
|
10905
|
+
const L = (S = a(c)) != null ? S : {}, { immediate: V, clone: G } = L, C = Hi(L, ["immediate", "clone"]);
|
|
10906
|
+
return Is(C, (b, A) => {
|
|
10907
|
+
Cg(b) && (C[b] = (z, ...Z) => {
|
|
10903
10908
|
const ae = of();
|
|
10904
10909
|
return Eg(z, ae), A(z, ...Z);
|
|
10905
10910
|
});
|
|
10906
10911
|
}), xg(
|
|
10907
10912
|
i === null ? {} : B,
|
|
10908
|
-
|
|
10913
|
+
C
|
|
10909
10914
|
);
|
|
10910
10915
|
}
|
|
10911
10916
|
const f = (S) => {
|
|
@@ -11004,8 +11009,8 @@ const xr = [
|
|
|
11004
11009
|
const h = `on${m.replace(/^\S/, (p) => p.toUpperCase())}`;
|
|
11005
11010
|
return u[h] = (...p) => o(m, ...p), u;
|
|
11006
11011
|
}, {}), i = y(() => {
|
|
11007
|
-
const u = ca(e), { modelValue: m } = u, h = Hi(u, ["modelValue"]), p = Object.entries(h).reduce((v, [k,
|
|
11008
|
-
const B = a(
|
|
11012
|
+
const u = ca(e), { modelValue: m } = u, h = Hi(u, ["modelValue"]), p = Object.entries(h).reduce((v, [k, w]) => {
|
|
11013
|
+
const B = a(w);
|
|
11009
11014
|
return B !== void 0 && (v[k] = B), v;
|
|
11010
11015
|
}, {});
|
|
11011
11016
|
return to(to({}, s), bg(to(to({}, r), p)));
|
|
@@ -11072,7 +11077,7 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11072
11077
|
toggle: u,
|
|
11073
11078
|
moveChild: m,
|
|
11074
11079
|
schema: h
|
|
11075
|
-
} = Fi(t.blockId), { isExpanded: p, toggleExpanded: v } = Vr(), { getBlockLabelReactive: k, getBlockSchemaNameReactive:
|
|
11080
|
+
} = Fi(t.blockId), { isExpanded: p, toggleExpanded: v } = Vr(), { getBlockLabelReactive: k, getBlockSchemaNameReactive: w } = af(), { selectedBlockId: B, selectBlock: H } = Pt(), { open: D } = ho(), { engine: f, moveBlock: P, removeBlock: $, blocks: R, regions: S } = Le(), { toaster: L } = it(), V = y(() => B.value === t.blockId), G = y(() => p(t.blockId)), C = y(() => r.value?.static === !0), b = y(() => r.value?.repeated === !0), A = y(() => r.value?.ghost === !0), z = w(t.blockId), Z = k(t.blockId), ae = y(() => h.value?.meta?.icon), Ve = y(() => {
|
|
11076
11081
|
if (d.value === void 0 || d.value < 0)
|
|
11077
11082
|
return !0;
|
|
11078
11083
|
const me = d.value + 1, se = l.value?.children ?? S.value.find((Be) => Be.blocks.includes(t.blockId))?.blocks;
|
|
@@ -11141,10 +11146,10 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11141
11146
|
const Be = hg, bt = dg, oe = ag, ve = rg, Re = tg, De = Ur, zt = Gr, An = Hr, Nn = Qh, Fn = da("BlockItem", !0), Ln = Sn, Vn = Ph;
|
|
11142
11147
|
return a(r) ? (g(), O("div", {
|
|
11143
11148
|
key: 0,
|
|
11144
|
-
class: Ce({ "bg-gray-100": a(n), "is-static": a(
|
|
11149
|
+
class: Ce({ "bg-gray-100": a(n), "is-static": a(C) }),
|
|
11145
11150
|
"data-block-id": a(r).id
|
|
11146
11151
|
}, [
|
|
11147
|
-
|
|
11152
|
+
E(Nn, {
|
|
11148
11153
|
"block-id": a(r).id
|
|
11149
11154
|
}, {
|
|
11150
11155
|
default: _(() => [
|
|
@@ -11163,26 +11168,26 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11163
11168
|
onClick: se[0] || (se[0] = Nt(() => a(v)(t.blockId), ["stop"])),
|
|
11164
11169
|
class: "h-full mr-0.5 px-1 flex items-center justify-center hover:bg-gray-200 rounded cursor-pointer"
|
|
11165
11170
|
}, [
|
|
11166
|
-
|
|
11171
|
+
E(Be, {
|
|
11167
11172
|
class: Ce(["w-3 h-3 transition-transform duration-200", { "rotate-90": a(G) }])
|
|
11168
11173
|
}, null, 8, ["class"])
|
|
11169
11174
|
])) : (g(), O("div", df)),
|
|
11170
11175
|
x("div", uf, [
|
|
11171
11176
|
a(A) ? (g(), I(bt, {
|
|
11172
11177
|
key: 0,
|
|
11173
|
-
class: Ce([{ "group-hover:opacity-0": a(
|
|
11178
|
+
class: Ce([{ "group-hover:opacity-0": a(C) }, "w-4 h-4 transition-opacity text-gray-400"])
|
|
11174
11179
|
}, null, 8, ["class"])) : a(b) ? (g(), I(oe, {
|
|
11175
11180
|
key: 1,
|
|
11176
|
-
class: Ce([{ "group-hover:opacity-0": a(
|
|
11181
|
+
class: Ce([{ "group-hover:opacity-0": a(C) }, "w-4 h-4 transition-opacity"])
|
|
11177
11182
|
}, null, 8, ["class"])) : a(ae) ? (g(), O("span", {
|
|
11178
11183
|
key: 2,
|
|
11179
11184
|
innerHTML: a(ae),
|
|
11180
|
-
class: Ce([{ "group-hover:opacity-0": a(
|
|
11185
|
+
class: Ce([{ "group-hover:opacity-0": a(C) }, "[&>svg]:w-4 [&>svg]:h-4 h-4 w-4 transition-opacity"])
|
|
11181
11186
|
}, null, 10, pf)) : (g(), I(ve, {
|
|
11182
11187
|
key: 3,
|
|
11183
|
-
class: Ce([{ "group-hover:opacity-0": a(
|
|
11188
|
+
class: Ce([{ "group-hover:opacity-0": a(C) }, "transition-opacity"])
|
|
11184
11189
|
}, null, 8, ["class"])),
|
|
11185
|
-
a(
|
|
11190
|
+
a(C) ? (g(), I(Re, {
|
|
11186
11191
|
key: 4,
|
|
11187
11192
|
class: "w-4 h-4 absolute opacity-0 group-hover:opacity-100 transition-opacity text-gray-400"
|
|
11188
11193
|
})) : X("", !0)
|
|
@@ -11205,13 +11210,13 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11205
11210
|
class: "w-4 h-4"
|
|
11206
11211
|
}))
|
|
11207
11212
|
], 10, vf),
|
|
11208
|
-
a(
|
|
11213
|
+
a(C) ? X("", !0) : (g(), O("button", {
|
|
11209
11214
|
key: 0,
|
|
11210
11215
|
onClick: se[2] || (se[2] = Nt(() => Mn(), ["stop"])),
|
|
11211
11216
|
class: "p-1 hover:bg-red-100 rounded text-gray-500 hover:text-red-600 transition-colors opacity-0 group-hover:opacity-100",
|
|
11212
11217
|
title: a(o)("block.remove")
|
|
11213
11218
|
}, [
|
|
11214
|
-
|
|
11219
|
+
E(An, { class: "w-4 h-4" })
|
|
11215
11220
|
], 8, bf))
|
|
11216
11221
|
])
|
|
11217
11222
|
], 10, cf)
|
|
@@ -11219,7 +11224,7 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11219
11224
|
_: 1
|
|
11220
11225
|
}, 8, ["block-id"]),
|
|
11221
11226
|
a(c) && a(G) ? (g(), O("div", yf, [
|
|
11222
|
-
|
|
11227
|
+
E(a(sa), {
|
|
11223
11228
|
"model-value": a(r).children,
|
|
11224
11229
|
animation: 200,
|
|
11225
11230
|
group: { name: "blocks", pull: !0, put: de },
|
|
@@ -11244,7 +11249,7 @@ const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
|
11244
11249
|
onClick: se[4] || (se[4] = (at) => Ke(at)),
|
|
11245
11250
|
class: "flex items-center gap-1.5 w-full p-1.5 text-xs text-gray-400 hover:text-gray-600 hover:bg-gray-50 rounded transition-colors"
|
|
11246
11251
|
}, [
|
|
11247
|
-
|
|
11252
|
+
E(Ln, { class: "w-3 h-3" }),
|
|
11248
11253
|
x("span", null, W(a(o)("layers.addBlockToBlock")), 1)
|
|
11249
11254
|
])
|
|
11250
11255
|
]))
|
|
@@ -11318,13 +11323,13 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11318
11323
|
});
|
|
11319
11324
|
const u = y(() => Array.isArray(o.value) ? o.value : []);
|
|
11320
11325
|
function m(v, k) {
|
|
11321
|
-
const { oldIndex:
|
|
11322
|
-
if (typeof B > "u" ||
|
|
11326
|
+
const { oldIndex: w, newIndex: B } = v;
|
|
11327
|
+
if (typeof B > "u" || w === B)
|
|
11323
11328
|
return;
|
|
11324
11329
|
const H = u.value.find((f) => ne(f) === k);
|
|
11325
11330
|
if (!H)
|
|
11326
11331
|
return;
|
|
11327
|
-
const D = H.blocks[
|
|
11332
|
+
const D = H.blocks[w];
|
|
11328
11333
|
D && n(D, { targetRegionId: k, targetIndex: B });
|
|
11329
11334
|
}
|
|
11330
11335
|
function h(v) {
|
|
@@ -11332,9 +11337,9 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11332
11337
|
return !1;
|
|
11333
11338
|
}
|
|
11334
11339
|
function p(v, k) {
|
|
11335
|
-
const
|
|
11340
|
+
const w = v.target;
|
|
11336
11341
|
i({
|
|
11337
|
-
anchor:
|
|
11342
|
+
anchor: w,
|
|
11338
11343
|
context: {
|
|
11339
11344
|
regionId: k,
|
|
11340
11345
|
index: 0
|
|
@@ -11342,7 +11347,7 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11342
11347
|
});
|
|
11343
11348
|
}
|
|
11344
11349
|
return (v, k) => {
|
|
11345
|
-
const
|
|
11350
|
+
const w = kf, B = Sn, H = Ni;
|
|
11346
11351
|
return g(), O("div", Ef, [
|
|
11347
11352
|
x("div", Of, [
|
|
11348
11353
|
x("h2", null, W(a(t)("layers.header")), 1)
|
|
@@ -11360,11 +11365,11 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11360
11365
|
title: a(t)("layers.collapseAll"),
|
|
11361
11366
|
onClick: (f) => a(r)(a(ne)(D))
|
|
11362
11367
|
}, [
|
|
11363
|
-
|
|
11368
|
+
E(Cf, { class: "w-4 h-4" })
|
|
11364
11369
|
], 8, Sf)) : X("", !0)
|
|
11365
11370
|
]),
|
|
11366
11371
|
x("div", $f, [
|
|
11367
|
-
|
|
11372
|
+
E(a(sa), {
|
|
11368
11373
|
"model-value": D.blocks,
|
|
11369
11374
|
animation: 200,
|
|
11370
11375
|
"ghost-class": "ghost-block",
|
|
@@ -11375,7 +11380,7 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11375
11380
|
onMove: h
|
|
11376
11381
|
}, {
|
|
11377
11382
|
default: _(() => [
|
|
11378
|
-
(g(!0), O(ge, null, Ie(D.blocks, (f) => (g(), I(
|
|
11383
|
+
(g(!0), O(ge, null, Ie(D.blocks, (f) => (g(), I(w, {
|
|
11379
11384
|
key: f,
|
|
11380
11385
|
"block-id": f,
|
|
11381
11386
|
level: 0
|
|
@@ -11388,7 +11393,7 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11388
11393
|
onClick: (f) => p(f, a(ne)(D)),
|
|
11389
11394
|
class: "flex w-full items-center gap-2 px-2 py-1 text-sm text-accent/90 hover:text-accent hover:bg-accent-foreground rounded-lg transition-colors cursor-pointer"
|
|
11390
11395
|
}, [
|
|
11391
|
-
|
|
11396
|
+
E(B, { class: "w-4 h-4" }),
|
|
11392
11397
|
le(" " + W(a(t)("layers.addBlockToRegion")), 1)
|
|
11393
11398
|
], 8, Df)
|
|
11394
11399
|
])) : X("", !0)
|
|
@@ -11396,7 +11401,7 @@ const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = {
|
|
|
11396
11401
|
]))), 128))
|
|
11397
11402
|
]),
|
|
11398
11403
|
a(d) && !a(l) ? (g(), O("div", Mf, [
|
|
11399
|
-
|
|
11404
|
+
E(H, { "is-overlay": "" })
|
|
11400
11405
|
])) : X("", !0)
|
|
11401
11406
|
]);
|
|
11402
11407
|
};
|
|
@@ -11458,7 +11463,7 @@ const Hf = Q({ name: "heroicons-square3-stack3d", render: Vf }), Uf = { class: "
|
|
|
11458
11463
|
]),
|
|
11459
11464
|
title: a(t)("layers.title")
|
|
11460
11465
|
}, [
|
|
11461
|
-
|
|
11466
|
+
E(l, { class: "w-5" })
|
|
11462
11467
|
], 10, jf),
|
|
11463
11468
|
(g(!0), O(ge, null, Ie(a(r), (u) => (g(), O("button", {
|
|
11464
11469
|
key: "panel-icon-" + u.id,
|
|
@@ -11570,21 +11575,21 @@ const Hf = Q({ name: "heroicons-square3-stack3d", render: Vf }), Uf = { class: "
|
|
|
11570
11575
|
onKeydown: r
|
|
11571
11576
|
}, [
|
|
11572
11577
|
x("div", em, [
|
|
11573
|
-
|
|
11578
|
+
E(c),
|
|
11574
11579
|
x("main", tm, [
|
|
11575
|
-
|
|
11576
|
-
|
|
11580
|
+
E(l),
|
|
11581
|
+
E(d),
|
|
11577
11582
|
x("div", om, [
|
|
11578
|
-
|
|
11583
|
+
E(u)
|
|
11579
11584
|
]),
|
|
11580
11585
|
a(t) ? (g(), O("aside", nm, [
|
|
11581
|
-
|
|
11586
|
+
E(m)
|
|
11582
11587
|
])) : X("", !0)
|
|
11583
11588
|
])
|
|
11584
11589
|
]),
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11590
|
+
E(h),
|
|
11591
|
+
E(p),
|
|
11592
|
+
E(v)
|
|
11588
11593
|
], 32);
|
|
11589
11594
|
};
|
|
11590
11595
|
}
|
|
@@ -11745,7 +11750,7 @@ const im = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11745
11750
|
label: `${t("common.custom")} ${u.value}px`,
|
|
11746
11751
|
width: u.value
|
|
11747
11752
|
}), i(B), d.value = !1;
|
|
11748
|
-
},
|
|
11753
|
+
}, w = (B) => {
|
|
11749
11754
|
l(B);
|
|
11750
11755
|
};
|
|
11751
11756
|
return (B, H) => {
|
|
@@ -11756,15 +11761,15 @@ const im = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11756
11761
|
positioning: { placement: "top-end", gutter: 0 }
|
|
11757
11762
|
}, {
|
|
11758
11763
|
default: _(() => [
|
|
11759
|
-
|
|
11764
|
+
E(a(ct).Trigger, { "as-child": "" }, {
|
|
11760
11765
|
default: _(() => [
|
|
11761
|
-
|
|
11766
|
+
E(f, { class: "gap-1" }, {
|
|
11762
11767
|
default: _(() => [
|
|
11763
11768
|
(g(), I(ut(p()), { class: "device-icon" })),
|
|
11764
11769
|
x("span", im, W(a(n).label), 1),
|
|
11765
|
-
|
|
11770
|
+
E(a(ct).Indicator, { "as-child": "" }, {
|
|
11766
11771
|
default: _(() => [
|
|
11767
|
-
|
|
11772
|
+
E(D, { class: "w-3.5 h-3.5 transition-transform duration-200 data-[state=open]:rotate-180" })
|
|
11768
11773
|
]),
|
|
11769
11774
|
_: 1
|
|
11770
11775
|
})
|
|
@@ -11774,16 +11779,16 @@ const im = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11774
11779
|
]),
|
|
11775
11780
|
_: 1
|
|
11776
11781
|
}),
|
|
11777
|
-
|
|
11782
|
+
E(a(ct).Positioner, null, {
|
|
11778
11783
|
default: _(() => [
|
|
11779
|
-
|
|
11784
|
+
E(a(ct).Content, { class: "w-72 border shadow-xs overflow-hidden mt-1 rounded-lg bg-white" }, {
|
|
11780
11785
|
default: _(() => [
|
|
11781
11786
|
x("div", am, [
|
|
11782
11787
|
x("h4", lm, W(a(t)("header.devicePreview")), 1),
|
|
11783
|
-
|
|
11788
|
+
E(a(ct).CloseTrigger, { "as-child": "" }, {
|
|
11784
11789
|
default: _(() => [
|
|
11785
11790
|
x("button", cm, [
|
|
11786
|
-
|
|
11791
|
+
E(P, { class: "w-4 h-4" })
|
|
11787
11792
|
])
|
|
11788
11793
|
]),
|
|
11789
11794
|
_: 1
|
|
@@ -11830,13 +11835,13 @@ const im = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11830
11835
|
class: Ce(["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 }]),
|
|
11831
11836
|
onClick: (S) => v(R.id)
|
|
11832
11837
|
}, [
|
|
11833
|
-
|
|
11838
|
+
E($, { class: "w-5 h-5 flex-none" }),
|
|
11834
11839
|
x("span", km, W(R.width) + "px", 1),
|
|
11835
11840
|
x("button", {
|
|
11836
11841
|
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",
|
|
11837
|
-
onClick: Nt((S) =>
|
|
11842
|
+
onClick: Nt((S) => w(R.id), ["stop"])
|
|
11838
11843
|
}, [
|
|
11839
|
-
|
|
11844
|
+
E(P)
|
|
11840
11845
|
], 8, Im)
|
|
11841
11846
|
], 10, _m))), 128))
|
|
11842
11847
|
])
|
|
@@ -11878,7 +11883,7 @@ function Pm(e, t) {
|
|
|
11878
11883
|
title: "Back"
|
|
11879
11884
|
}, {
|
|
11880
11885
|
default: _(() => [
|
|
11881
|
-
|
|
11886
|
+
E(o)
|
|
11882
11887
|
]),
|
|
11883
11888
|
_: 1
|
|
11884
11889
|
});
|
|
@@ -11898,7 +11903,7 @@ const Bm = /* @__PURE__ */ Rn(Tm, [["render", Pm]]), Sm = /* @__PURE__ */ T({
|
|
|
11898
11903
|
title: a(t)("header.redo")
|
|
11899
11904
|
}, {
|
|
11900
11905
|
default: _(() => [
|
|
11901
|
-
|
|
11906
|
+
E(c)
|
|
11902
11907
|
]),
|
|
11903
11908
|
_: 1
|
|
11904
11909
|
}, 8, ["disabled", "title"]);
|
|
@@ -11940,7 +11945,7 @@ const Fm = Q({ name: "heroicons-arrow-uturn-left", render: Nm }), Lm = /* @__PUR
|
|
|
11940
11945
|
title: a(t)("header.undo")
|
|
11941
11946
|
}, {
|
|
11942
11947
|
default: _(() => [
|
|
11943
|
-
|
|
11948
|
+
E(c)
|
|
11944
11949
|
]),
|
|
11945
11950
|
_: 1
|
|
11946
11951
|
}, 8, ["disabled", "title"]);
|
|
@@ -11976,7 +11981,7 @@ const Gm = /* @__PURE__ */ Rn(Vm, [["render", Um]]), jm = /* @__PURE__ */ T({
|
|
|
11976
11981
|
title: a(o) ? a(t)("header.disableInspector") : a(t)("header.enableInspector")
|
|
11977
11982
|
}, {
|
|
11978
11983
|
default: _(() => [
|
|
11979
|
-
|
|
11984
|
+
E(i, { class: "w-4 h-4" })
|
|
11980
11985
|
]),
|
|
11981
11986
|
_: 1
|
|
11982
11987
|
}, 8, ["onClick", "variant", "title"]);
|
|
@@ -12133,8 +12138,8 @@ const qm = { key: 0 }, Xm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12133
12138
|
if (!o.value)
|
|
12134
12139
|
return;
|
|
12135
12140
|
const v = (k) => {
|
|
12136
|
-
const
|
|
12137
|
-
return Array.isArray(
|
|
12141
|
+
const w = wr(k);
|
|
12142
|
+
return Array.isArray(w) ? w.map(v) : w && typeof w == "object" && w.constructor === Object ? Object.fromEntries(Object.entries(w).map(([B, H]) => [B, v(H)])) : w;
|
|
12138
12143
|
};
|
|
12139
12144
|
r(o.value.id, h, v(p));
|
|
12140
12145
|
}
|
|
@@ -12149,34 +12154,34 @@ const qm = { key: 0 }, Xm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12149
12154
|
multiple: ""
|
|
12150
12155
|
}, {
|
|
12151
12156
|
default: _(() => [
|
|
12152
|
-
(g(!0), O(ge, null, Ie(a(l), (
|
|
12153
|
-
key:
|
|
12154
|
-
value:
|
|
12157
|
+
(g(!0), O(ge, null, Ie(a(l), (w) => (g(), I(a(et).Item, {
|
|
12158
|
+
key: w.id,
|
|
12159
|
+
value: w.id,
|
|
12155
12160
|
class: "border-b border-gray-100"
|
|
12156
12161
|
}, {
|
|
12157
12162
|
default: _(() => [
|
|
12158
|
-
|
|
12163
|
+
E(a(et).ItemTrigger, { class: "flex w-full items-center justify-between p-3 text-left hover:bg-gray-50 transition-colors" }, {
|
|
12159
12164
|
default: _(() => [
|
|
12160
|
-
x("span", Xm, W(
|
|
12161
|
-
|
|
12165
|
+
x("span", Xm, W(w.label), 1),
|
|
12166
|
+
E(a(et).ItemIndicator, { class: "transition-transform duration-200 data-[state=open]:rotate-180" }, {
|
|
12162
12167
|
default: _(() => [
|
|
12163
|
-
|
|
12168
|
+
E(v, { class: "w-4 h-4 text-gray-500" })
|
|
12164
12169
|
]),
|
|
12165
12170
|
_: 1
|
|
12166
12171
|
})
|
|
12167
12172
|
]),
|
|
12168
12173
|
_: 2
|
|
12169
12174
|
}, 1024),
|
|
12170
|
-
|
|
12175
|
+
E(a(et).ItemContent, { class: "overflow-hidden" }, {
|
|
12171
12176
|
default: _(() => [
|
|
12172
12177
|
x("div", Ym, [
|
|
12173
|
-
|
|
12178
|
+
E(Kr, {
|
|
12174
12179
|
name: "property-field",
|
|
12175
12180
|
tag: "div",
|
|
12176
12181
|
class: "space-y-4"
|
|
12177
12182
|
}, {
|
|
12178
12183
|
default: _(() => [
|
|
12179
|
-
(g(!0), O(ge, null, Ie(
|
|
12184
|
+
(g(!0), O(ge, null, Ie(w.fields, (B) => (g(), I(k, {
|
|
12180
12185
|
key: B.id,
|
|
12181
12186
|
field: B,
|
|
12182
12187
|
"model-value": u(B.id),
|
|
@@ -12195,17 +12200,17 @@ const qm = { key: 0 }, Xm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12195
12200
|
]),
|
|
12196
12201
|
_: 1
|
|
12197
12202
|
}, 8, ["default-value"])) : (g(), O("div", Jm, [
|
|
12198
|
-
|
|
12203
|
+
E(Kr, {
|
|
12199
12204
|
name: "property-field",
|
|
12200
12205
|
tag: "div",
|
|
12201
12206
|
class: "space-y-4"
|
|
12202
12207
|
}, {
|
|
12203
12208
|
default: _(() => [
|
|
12204
|
-
(g(!0), O(ge, null, Ie(a(i), (
|
|
12205
|
-
key:
|
|
12206
|
-
field:
|
|
12207
|
-
"model-value": u(
|
|
12208
|
-
"onUpdate:modelValue": (B) => m(
|
|
12209
|
+
(g(!0), O(ge, null, Ie(a(i), (w) => (g(), I(k, {
|
|
12210
|
+
key: w.id,
|
|
12211
|
+
field: w,
|
|
12212
|
+
"model-value": u(w.id),
|
|
12213
|
+
"onUpdate:modelValue": (B) => m(w.id, B)
|
|
12209
12214
|
}, null, 8, ["field", "model-value", "onUpdate:modelValue"]))), 128))
|
|
12210
12215
|
]),
|
|
12211
12216
|
_: 1
|
|
@@ -12449,10 +12454,10 @@ function av(e, t) {
|
|
|
12449
12454
|
toIndex: m ?? 0
|
|
12450
12455
|
}), o.positions.add(l), o.blocksToInclude.add(l), d && o.blocksToInclude.add(d), u && o.blocksToInclude.add(u);
|
|
12451
12456
|
const p = e.getPage(), v = (k) => {
|
|
12452
|
-
let
|
|
12453
|
-
for (;
|
|
12454
|
-
if (
|
|
12455
|
-
|
|
12457
|
+
let w = k ? p.blocks[k] : void 0;
|
|
12458
|
+
for (; w; ) {
|
|
12459
|
+
if (w.repeated) return !0;
|
|
12460
|
+
w = w.parentId ? p.blocks[w.parentId] : void 0;
|
|
12456
12461
|
}
|
|
12457
12462
|
return !1;
|
|
12458
12463
|
};
|