@craftile/editor 1.0.4 → 1.0.5
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 +475 -459
- package/dist/managers/inspector.d.ts +3 -0
- package/dist/managers/preview.d.ts +3 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-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 xn, 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 G, 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 C, normalizeClass as Ce, toDisplayString as
|
|
3
|
-
import { C as xe, c as Fe, u as F, b as j, d as Gt, r as fe, e as J, f as wt, g as dn, s as ir, h as Ye, n as Ls, i as je, j as gt, D as ft, k as Ut, 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 Gs, y as Or, z as Tr, A as ga, B as fa, E as un, 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 Us, N as
|
|
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 xn, 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 G, 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 C, normalizeClass as Ce, toDisplayString as W, resolveDynamicComponent as ut, onUnmounted as Mo, toRaw as wr, nextTick as ao, isRef as xt, 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
|
+
import { C as xe, c as Fe, u as F, b as j, d as Gt, r as fe, e as J, f as wt, g as dn, s as ir, h as Ye, n as Ls, i as je, j as gt, D as ft, k as Ut, 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 Gs, y as Or, z as Tr, A as ga, B as fa, E as un, 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 Us, N as Wt, O as go, Q as lt, S as Hn, T as va, U as Gn, 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 Un, 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 jo, ad as Xr, ae as wa, af as Ca, ag as Ys, ah as pn, 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 zo, 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 Ga, aM as Ua, 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, hn = (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) {
|
|
6
6
|
const i = e.blocks[t];
|
|
@@ -95,7 +95,7 @@ class oi {
|
|
|
95
95
|
t ? this.listeners.delete(t) : this.listeners.clear();
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
class
|
|
98
|
+
class za {
|
|
99
99
|
schemas = /* @__PURE__ */ new Map();
|
|
100
100
|
patternCache = /* @__PURE__ */ new Map();
|
|
101
101
|
/**
|
|
@@ -177,7 +177,7 @@ class Wa {
|
|
|
177
177
|
return this.patternCache.get(o).test(t);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class Wa {
|
|
181
181
|
history = [];
|
|
182
182
|
currentIndex = -1;
|
|
183
183
|
/**
|
|
@@ -841,7 +841,7 @@ class cr extends oi {
|
|
|
841
841
|
blocksManager;
|
|
842
842
|
historyManager;
|
|
843
843
|
constructor(t = {}) {
|
|
844
|
-
super(), this.blocksManager = t.blocksManager || new
|
|
844
|
+
super(), this.blocksManager = t.blocksManager || new za(), this.historyManager = new Wa(), this.setPage(t.page ? t.page : { blocks: {}, regions: [{ id: "main", name: "main", blocks: [] }] }), t.blockSchemas && t.blockSchemas.length > 0 && t.blockSchemas.forEach((o) => {
|
|
845
845
|
this.blocksManager.register(o.type, o);
|
|
846
846
|
});
|
|
847
847
|
}
|
|
@@ -1239,7 +1239,7 @@ const Mr = Q({ name: "heroicons-x-mark", render: tl }), [ni, No] = Fe("Accordion
|
|
|
1239
1239
|
}, 16, ["as-child"]));
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
|
-
var il = wt("collapsible").parts("root", "trigger", "content", "indicator"),
|
|
1242
|
+
var il = wt("collapsible").parts("root", "trigger", "content", "indicator"), Wo = il.build(), al = (e) => e.ids?.root ?? `collapsible:${e.id}`, dr = (e) => e.ids?.content ?? `collapsible:${e.id}:content`, ll = (e) => e.ids?.trigger ?? `collapsible:${e.id}:trigger`, Ko = (e) => e.getById(dr(e));
|
|
1243
1243
|
function cl(e, t) {
|
|
1244
1244
|
const { state: o, send: n, context: r, scope: s, prop: i } = e, d = o.matches("open") || o.matches("closing"), l = o.matches("open"), { width: c, height: u } = r.get("size"), m = !!i("disabled"), h = !r.get("initial") && l, p = "ltr";
|
|
1245
1245
|
return {
|
|
@@ -1254,7 +1254,7 @@ function cl(e, t) {
|
|
|
1254
1254
|
},
|
|
1255
1255
|
getRootProps() {
|
|
1256
1256
|
return t.element({
|
|
1257
|
-
...
|
|
1257
|
+
...Wo.root.attrs,
|
|
1258
1258
|
"data-state": l ? "open" : "closed",
|
|
1259
1259
|
dir: p,
|
|
1260
1260
|
id: al(s)
|
|
@@ -1262,7 +1262,7 @@ function cl(e, t) {
|
|
|
1262
1262
|
},
|
|
1263
1263
|
getContentProps() {
|
|
1264
1264
|
return t.element({
|
|
1265
|
-
...
|
|
1265
|
+
...Wo.content.attrs,
|
|
1266
1266
|
"data-collapsible": "",
|
|
1267
1267
|
"data-state": h ? void 0 : l ? "open" : "closed",
|
|
1268
1268
|
id: dr(s),
|
|
@@ -1276,7 +1276,7 @@ function cl(e, t) {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
getTriggerProps() {
|
|
1278
1278
|
return t.element({
|
|
1279
|
-
...
|
|
1279
|
+
...Wo.trigger.attrs,
|
|
1280
1280
|
id: ll(s),
|
|
1281
1281
|
dir: p,
|
|
1282
1282
|
type: "button",
|
|
@@ -1291,7 +1291,7 @@ function cl(e, t) {
|
|
|
1291
1291
|
},
|
|
1292
1292
|
getIndicatorProps() {
|
|
1293
1293
|
return t.element({
|
|
1294
|
-
...
|
|
1294
|
+
...Wo.indicator.attrs,
|
|
1295
1295
|
dir: p,
|
|
1296
1296
|
"data-state": l ? "open" : "closed",
|
|
1297
1297
|
"data-disabled": J(m)
|
|
@@ -2063,11 +2063,11 @@ function Hl(e, t) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
return r;
|
|
2065
2065
|
}
|
|
2066
|
-
var Kt = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Xo = {},
|
|
2066
|
+
var Kt = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Xo = {}, zn = 0, ii = (e) => e && (e.host || ii(e.parentNode)), Gl = (e, t) => t.map((o) => {
|
|
2067
2067
|
if (e.contains(o)) return o;
|
|
2068
2068
|
const n = ii(o);
|
|
2069
2069
|
return n && e.contains(n) ? n : (console.error("[zag-js > ariaHidden] target", o, "in not contained inside", e, ". Doing nothing"), null);
|
|
2070
|
-
}).filter((o) => !!o), Ul = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), jl = (e) => Ul.has(e.localName) || e.role === "status" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"),
|
|
2070
|
+
}).filter((o) => !!o), Ul = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), jl = (e) => Ul.has(e.localName) || e.role === "status" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"), zl = (e, t) => {
|
|
2071
2071
|
const { parentNode: o, markerName: n, controlAttribute: r } = t, s = Gl(o, Array.isArray(e) ? e : [e]);
|
|
2072
2072
|
Xo[n] || (Xo[n] = /* @__PURE__ */ new WeakMap());
|
|
2073
2073
|
const i = Xo[n], d = [], l = /* @__PURE__ */ new Set(), c = new Set(s), u = (h) => {
|
|
@@ -2088,15 +2088,15 @@ var Kt = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Xo =
|
|
|
2088
2088
|
}
|
|
2089
2089
|
});
|
|
2090
2090
|
};
|
|
2091
|
-
return m(o), l.clear(),
|
|
2091
|
+
return m(o), l.clear(), zn++, () => {
|
|
2092
2092
|
d.forEach((h) => {
|
|
2093
2093
|
const p = Kt.get(h) - 1, v = i.get(h) - 1;
|
|
2094
2094
|
Kt.set(h, p), i.set(h, v), p || (qo.has(h) || h.removeAttribute(r), qo.delete(h)), v || h.removeAttribute(n);
|
|
2095
|
-
}),
|
|
2095
|
+
}), zn--, zn || (Kt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Xo = {});
|
|
2096
2096
|
};
|
|
2097
|
-
},
|
|
2097
|
+
}, Wl = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, Kl = (e, t = Wl(e), o = "data-aria-hidden") => {
|
|
2098
2098
|
if (t)
|
|
2099
|
-
return
|
|
2099
|
+
return zl(e, {
|
|
2100
2100
|
parentNode: t,
|
|
2101
2101
|
markerName: o,
|
|
2102
2102
|
controlAttribute: "aria-hidden"
|
|
@@ -2421,7 +2421,7 @@ var oc = Object.defineProperty, nc = (e, t, o) => t in e ? oc(e, t, { enumerable
|
|
|
2421
2421
|
let u = this.state.tabbableGroups.findIndex(
|
|
2422
2422
|
({ firstTabbableNode: m }) => i === m
|
|
2423
2423
|
);
|
|
2424
|
-
if (u < 0 && (c?.container === i || Gn(i) && !
|
|
2424
|
+
if (u < 0 && (c?.container === i || Gn(i) && !Wt(i) && !c?.nextTabbableNode(i, !1)) && (u = l), u >= 0) {
|
|
2425
2425
|
const m = u === 0 ? this.state.tabbableGroups.length - 1 : u - 1, h = this.state.tabbableGroups[m];
|
|
2426
2426
|
d = go(i) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
|
|
2427
2427
|
} else mo(r) || (d = c?.nextTabbableNode(i, !1));
|
|
@@ -2429,7 +2429,7 @@ var oc = Object.defineProperty, nc = (e, t, o) => t in e ? oc(e, t, { enumerable
|
|
|
2429
2429
|
let u = this.state.tabbableGroups.findIndex(
|
|
2430
2430
|
({ lastTabbableNode: m }) => i === m
|
|
2431
2431
|
);
|
|
2432
|
-
if (u < 0 && (c?.container === i || Gn(i) && !
|
|
2432
|
+
if (u < 0 && (c?.container === i || Gn(i) && !Wt(i) && !c?.nextTabbableNode(i)) && (u = l), u >= 0) {
|
|
2433
2433
|
const m = u === this.state.tabbableGroups.length - 1 ? 0 : u + 1, h = this.state.tabbableGroups[m];
|
|
2434
2434
|
d = go(i) >= 0 ? h.firstTabbableNode : h.firstDomTabbableNode;
|
|
2435
2435
|
} else mo(r) || (d = c?.nextTabbableNode(i));
|
|
@@ -2466,10 +2466,10 @@ var oc = Object.defineProperty, nc = (e, t, o) => t in e ? oc(e, t, { enumerable
|
|
|
2466
2466
|
}
|
|
2467
2467
|
updateTabbableNodes() {
|
|
2468
2468
|
if (this.state.containerGroups = this.state.containers.map((e) => {
|
|
2469
|
-
const t = ma(e), o = Us(e), n = t.length > 0 ? t[0] : void 0, r = t.length > 0 ? t[t.length - 1] : void 0, s = o.find((c) =>
|
|
2469
|
+
const t = ma(e), o = Us(e), n = t.length > 0 ? t[0] : void 0, r = t.length > 0 ? t[t.length - 1] : void 0, s = o.find((c) => Wt(c)), i = o.slice().reverse().find((c) => Wt(c)), d = !!t.find((c) => go(c) > 0);
|
|
2470
2470
|
function l(c, u = !0) {
|
|
2471
2471
|
const m = t.indexOf(c);
|
|
2472
|
-
return m < 0 ? u ? o.slice(o.indexOf(c) + 1).find((h) =>
|
|
2472
|
+
return m < 0 ? u ? o.slice(o.indexOf(c) + 1).find((h) => Wt(h)) : o.slice(0, o.indexOf(c)).reverse().find((h) => Wt(h)) : t[m + (u ? 1 : -1)];
|
|
2473
2473
|
}
|
|
2474
2474
|
return {
|
|
2475
2475
|
container: e,
|
|
@@ -2544,16 +2544,16 @@ function di(e, t = {}) {
|
|
|
2544
2544
|
o?.deactivate(), n();
|
|
2545
2545
|
};
|
|
2546
2546
|
}
|
|
2547
|
-
var
|
|
2547
|
+
var Wn = "data-scroll-lock";
|
|
2548
2548
|
function lc(e) {
|
|
2549
2549
|
const t = e.getBoundingClientRect().left;
|
|
2550
2550
|
return Math.round(t) + e.scrollLeft ? "paddingLeft" : "paddingRight";
|
|
2551
2551
|
}
|
|
2552
2552
|
function ui(e) {
|
|
2553
2553
|
const t = e ?? document, o = t.defaultView ?? window, { documentElement: n, body: r } = t;
|
|
2554
|
-
if (r.hasAttribute(
|
|
2554
|
+
if (r.hasAttribute(Wn)) return;
|
|
2555
2555
|
const i = o.innerWidth - n.clientWidth;
|
|
2556
|
-
r.setAttribute(
|
|
2556
|
+
r.setAttribute(Wn, "");
|
|
2557
2557
|
const d = () => ba(n, "--scrollbar-width", `${i}px`), l = lc(n), c = () => ir(r, {
|
|
2558
2558
|
overflow: "hidden",
|
|
2559
2559
|
[l]: `${i}px`
|
|
@@ -2571,7 +2571,7 @@ function ui(e) {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
}, m = [d(), ya() ? u() : c()];
|
|
2573
2573
|
return () => {
|
|
2574
|
-
m.forEach((h) => h?.()), r.removeAttribute(
|
|
2574
|
+
m.forEach((h) => h?.()), r.removeAttribute(Wn);
|
|
2575
2575
|
};
|
|
2576
2576
|
}
|
|
2577
2577
|
var cc = wt("dialog").parts(
|
|
@@ -3076,7 +3076,7 @@ const bc = (e = {}, t) => {
|
|
|
3076
3076
|
hasHelperText: !1
|
|
3077
3077
|
}), n = rt(), r = y(() => ke(e).id ?? n), s = re(null), i = y(() => ke(e).ids?.control ?? `field::${r.value}`), d = y(() => ke(e).ids?.errorText ?? `field::${r.value}::error-text`), l = y(() => ke(e).ids?.helperText ?? `field::${r.value}::helper-text`), c = y(() => ke(e).ids?.label ?? `field::${r.value}::label`);
|
|
3078
3078
|
nt(() => {
|
|
3079
|
-
const f =
|
|
3079
|
+
const f = zs(s);
|
|
3080
3080
|
if (!f) return;
|
|
3081
3081
|
const P = () => {
|
|
3082
3082
|
const S = t.value.getRootNode();
|
|
@@ -3116,7 +3116,7 @@ const bc = (e = {}, t) => {
|
|
|
3116
3116
|
const f = ke(e);
|
|
3117
3117
|
return {
|
|
3118
3118
|
"aria-describedby": h.value.join(" ") || void 0,
|
|
3119
|
-
"aria-invalid":
|
|
3119
|
+
"aria-invalid": Ws(f.invalid),
|
|
3120
3120
|
"data-invalid": J(f.invalid),
|
|
3121
3121
|
"data-required": J(f.required),
|
|
3122
3122
|
"data-readonly": J(f.readOnly),
|
|
@@ -3262,7 +3262,7 @@ const Dc = /* @__PURE__ */ T({
|
|
|
3262
3262
|
setup(e, { emit: t }) {
|
|
3263
3263
|
const o = e, n = Ot(), r = t, s = re();
|
|
3264
3264
|
return nt(() => {
|
|
3265
|
-
const i =
|
|
3265
|
+
const i = zs(s);
|
|
3266
3266
|
if (!i || !o.autoresize) return;
|
|
3267
3267
|
const d = Rc(i);
|
|
3268
3268
|
wn(() => d?.());
|
|
@@ -3417,7 +3417,7 @@ const Dc = /* @__PURE__ */ T({
|
|
|
3417
3417
|
_: 3
|
|
3418
3418
|
}, 16, ["as-child"]));
|
|
3419
3419
|
}
|
|
3420
|
-
}),
|
|
3420
|
+
}), zc = /* @__PURE__ */ T({
|
|
3421
3421
|
__name: "menu-item-group",
|
|
3422
3422
|
props: {
|
|
3423
3423
|
id: {},
|
|
@@ -3432,7 +3432,7 @@ const Dc = /* @__PURE__ */ T({
|
|
|
3432
3432
|
_: 3
|
|
3433
3433
|
}, 16, ["as-child"]));
|
|
3434
3434
|
}
|
|
3435
|
-
}),
|
|
3435
|
+
}), Wc = /* @__PURE__ */ T({
|
|
3436
3436
|
__name: "menu-item-indicator",
|
|
3437
3437
|
props: {
|
|
3438
3438
|
asChild: { type: Boolean }
|
|
@@ -3629,7 +3629,7 @@ function ud(e, t) {
|
|
|
3629
3629
|
...Se.item.attrs,
|
|
3630
3630
|
id: L,
|
|
3631
3631
|
role: "menuitem",
|
|
3632
|
-
"aria-disabled":
|
|
3632
|
+
"aria-disabled": Ws(S.disabled),
|
|
3633
3633
|
"data-disabled": J(S.disabled),
|
|
3634
3634
|
"data-ownedby": Co(d),
|
|
3635
3635
|
"data-highlighted": J(S.highlighted),
|
|
@@ -3938,7 +3938,7 @@ function ud(e, t) {
|
|
|
3938
3938
|
}
|
|
3939
3939
|
};
|
|
3940
3940
|
}
|
|
3941
|
-
var { not:
|
|
3941
|
+
var { not: ze, and: qt, or: pd } = Er(), hd = Gt({
|
|
3942
3942
|
props({ props: e }) {
|
|
3943
3943
|
return {
|
|
3944
3944
|
closeOnSelect: !0,
|
|
@@ -4093,7 +4093,7 @@ var { not: We, and: qt, or: pd } = Er(), hd = Gt({
|
|
|
4093
4093
|
}
|
|
4094
4094
|
],
|
|
4095
4095
|
TRIGGER_FOCUS: {
|
|
4096
|
-
guard:
|
|
4096
|
+
guard: ze("isSubmenu"),
|
|
4097
4097
|
target: "closed"
|
|
4098
4098
|
},
|
|
4099
4099
|
TRIGGER_POINTERMOVE: {
|
|
@@ -4297,11 +4297,11 @@ var { not: We, and: qt, or: pd } = Er(), hd = Gt({
|
|
|
4297
4297
|
],
|
|
4298
4298
|
TRIGGER_CLICK: [
|
|
4299
4299
|
{
|
|
4300
|
-
guard: qt(
|
|
4300
|
+
guard: qt(ze("isTriggerItem"), "isOpenControlled"),
|
|
4301
4301
|
actions: ["invokeOnClose"]
|
|
4302
4302
|
},
|
|
4303
4303
|
{
|
|
4304
|
-
guard:
|
|
4304
|
+
guard: ze("isTriggerItem"),
|
|
4305
4305
|
target: "closed",
|
|
4306
4306
|
actions: ["invokeOnClose"]
|
|
4307
4307
|
}
|
|
@@ -4347,7 +4347,7 @@ var { not: We, and: qt, or: pd } = Er(), hd = Gt({
|
|
|
4347
4347
|
],
|
|
4348
4348
|
ITEM_POINTERMOVE: [
|
|
4349
4349
|
{
|
|
4350
|
-
guard:
|
|
4350
|
+
guard: ze("isPointerSuspended"),
|
|
4351
4351
|
actions: ["setHighlightedItem", "focusMenu"]
|
|
4352
4352
|
},
|
|
4353
4353
|
{
|
|
@@ -4355,28 +4355,28 @@ var { not: We, and: qt, or: pd } = Er(), hd = Gt({
|
|
|
4355
4355
|
}
|
|
4356
4356
|
],
|
|
4357
4357
|
ITEM_POINTERLEAVE: {
|
|
4358
|
-
guard: qt(
|
|
4358
|
+
guard: qt(ze("isPointerSuspended"), ze("isTriggerItem")),
|
|
4359
4359
|
actions: ["clearHighlightedItem"]
|
|
4360
4360
|
},
|
|
4361
4361
|
ITEM_CLICK: [
|
|
4362
4362
|
// == grouped ==
|
|
4363
4363
|
{
|
|
4364
4364
|
guard: qt(
|
|
4365
|
-
|
|
4366
|
-
|
|
4365
|
+
ze("isTriggerItemHighlighted"),
|
|
4366
|
+
ze("isHighlightedItemEditable"),
|
|
4367
4367
|
"closeOnSelect",
|
|
4368
4368
|
"isOpenControlled"
|
|
4369
4369
|
),
|
|
4370
4370
|
actions: ["invokeOnSelect", "setOptionState", "closeRootMenu", "invokeOnClose"]
|
|
4371
4371
|
},
|
|
4372
4372
|
{
|
|
4373
|
-
guard: qt(
|
|
4373
|
+
guard: qt(ze("isTriggerItemHighlighted"), ze("isHighlightedItemEditable"), "closeOnSelect"),
|
|
4374
4374
|
target: "closed",
|
|
4375
4375
|
actions: ["invokeOnSelect", "setOptionState", "closeRootMenu", "invokeOnClose"]
|
|
4376
4376
|
},
|
|
4377
4377
|
//
|
|
4378
4378
|
{
|
|
4379
|
-
guard: qt(
|
|
4379
|
+
guard: qt(ze("isTriggerItemHighlighted"), ze("isHighlightedItemEditable")),
|
|
4380
4380
|
actions: ["invokeOnSelect", "setOptionState"]
|
|
4381
4381
|
},
|
|
4382
4382
|
{ actions: ["setHighlightedItem"] }
|
|
@@ -4853,9 +4853,9 @@ const md = (e = {}, t) => {
|
|
|
4853
4853
|
Indicator: Gc,
|
|
4854
4854
|
Item: qc,
|
|
4855
4855
|
ItemContext: Uc,
|
|
4856
|
-
ItemGroup:
|
|
4856
|
+
ItemGroup: zc,
|
|
4857
4857
|
ItemGroupLabel: jc,
|
|
4858
|
-
ItemIndicator:
|
|
4858
|
+
ItemIndicator: Wc,
|
|
4859
4859
|
ItemText: Kc,
|
|
4860
4860
|
Positioner: Xc,
|
|
4861
4861
|
RadioItem: Jc,
|
|
@@ -5537,13 +5537,13 @@ const Pi = (e = {}, t) => {
|
|
|
5537
5537
|
_: 3
|
|
5538
5538
|
}, 16, ["as-child"]));
|
|
5539
5539
|
}
|
|
5540
|
-
}),
|
|
5540
|
+
}), zd = /* @__PURE__ */ T({
|
|
5541
5541
|
__name: "tabs-context",
|
|
5542
5542
|
setup(e) {
|
|
5543
5543
|
const t = Vo();
|
|
5544
5544
|
return (o, n) => M(o.$slots, "default", Ae(Ne(a(t))));
|
|
5545
5545
|
}
|
|
5546
|
-
}),
|
|
5546
|
+
}), Wd = /* @__PURE__ */ T({
|
|
5547
5547
|
__name: "tabs-root-provider",
|
|
5548
5548
|
props: {
|
|
5549
5549
|
value: {},
|
|
@@ -6057,11 +6057,11 @@ const su = (e = {}, t) => {
|
|
|
6057
6057
|
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6058
6058
|
__proto__: null,
|
|
6059
6059
|
Content: Hd,
|
|
6060
|
-
Context:
|
|
6060
|
+
Context: zd,
|
|
6061
6061
|
Indicator: Gd,
|
|
6062
6062
|
List: Ud,
|
|
6063
6063
|
Root: iu,
|
|
6064
|
-
RootProvider:
|
|
6064
|
+
RootProvider: Wd,
|
|
6065
6065
|
Trigger: jd
|
|
6066
6066
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6067
6067
|
var au = wt("toast").parts(
|
|
@@ -6755,8 +6755,8 @@ function ku(e = {}) {
|
|
|
6755
6755
|
w && (d(w), n.unshift(w));
|
|
6756
6756
|
}
|
|
6757
6757
|
}, u = (w) => {
|
|
6758
|
-
const b = w.id ?? `toast:${Zs()}`, A = n.find((
|
|
6759
|
-
return r.has(b) && r.delete(b), A ? n = n.map((
|
|
6758
|
+
const b = w.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 ? d({ ...z, ...w, id: b }) : z) : l({
|
|
6760
6760
|
id: b,
|
|
6761
6761
|
duration: t.duration,
|
|
6762
6762
|
removeDelay: t.removeDelay,
|
|
@@ -6789,33 +6789,33 @@ function ku(e = {}) {
|
|
|
6789
6789
|
Vs("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");
|
|
6790
6790
|
return;
|
|
6791
6791
|
}
|
|
6792
|
-
const
|
|
6792
|
+
const z = u({
|
|
6793
6793
|
...A,
|
|
6794
6794
|
...b.loading,
|
|
6795
6795
|
promise: w,
|
|
6796
6796
|
type: "loading"
|
|
6797
6797
|
});
|
|
6798
6798
|
let Z = !0, ae;
|
|
6799
|
-
const Ve =
|
|
6799
|
+
const Ve = zo(w).then(async (de) => {
|
|
6800
6800
|
if (ae = ["resolve", de], Iu(de) && !de.ok) {
|
|
6801
6801
|
Z = !1;
|
|
6802
|
-
const Oe =
|
|
6803
|
-
u({ ...A, ...Oe, id:
|
|
6802
|
+
const Oe = zo(b.error, `HTTP Error! status: ${de.status}`);
|
|
6803
|
+
u({ ...A, ...Oe, id: z, type: "error" });
|
|
6804
6804
|
} else if (b.success !== void 0) {
|
|
6805
6805
|
Z = !1;
|
|
6806
|
-
const Oe =
|
|
6807
|
-
u({ ...A, ...Oe, id:
|
|
6806
|
+
const Oe = zo(b.success, de);
|
|
6807
|
+
u({ ...A, ...Oe, id: z, type: "success" });
|
|
6808
6808
|
}
|
|
6809
6809
|
}).catch(async (de) => {
|
|
6810
6810
|
if (ae = ["reject", de], b.error !== void 0) {
|
|
6811
6811
|
Z = !1;
|
|
6812
|
-
const Oe =
|
|
6813
|
-
u({ ...A, ...Oe, id:
|
|
6812
|
+
const Oe = zo(b.error, de);
|
|
6813
|
+
u({ ...A, ...Oe, id: z, type: "error" });
|
|
6814
6814
|
}
|
|
6815
6815
|
}).finally(() => {
|
|
6816
|
-
Z && m(
|
|
6816
|
+
Z && m(z), b.finally?.();
|
|
6817
6817
|
});
|
|
6818
|
-
return { id:
|
|
6818
|
+
return { id: z, unwrap: () => new Promise(
|
|
6819
6819
|
(de, Oe) => Ve.then(() => ae[0] === "reject" ? Oe(ae[1]) : de(ae[1])).catch(Oe)
|
|
6820
6820
|
) };
|
|
6821
6821
|
},
|
|
@@ -7021,7 +7021,7 @@ const xu = (e) => ku(e), [wu, po] = Fe("ToastContext"), Cu = /* @__PURE__ */ T({
|
|
|
7021
7021
|
a(s)[h].title ? (g(), O("div", Ru, [
|
|
7022
7022
|
C(a(St).Title, { class: "text-lg font-semibold text-gray-900" }, {
|
|
7023
7023
|
default: _(() => [
|
|
7024
|
-
le(
|
|
7024
|
+
le(W(a(s)[h].title), 1)
|
|
7025
7025
|
]),
|
|
7026
7026
|
_: 2
|
|
7027
7027
|
}, 1024),
|
|
@@ -7154,7 +7154,7 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7154
7154
|
x("div", Lu, [
|
|
7155
7155
|
C(a(yo).Title, { class: "text-sm font-medium leading-snug" }, {
|
|
7156
7156
|
default: _(() => [
|
|
7157
|
-
le(
|
|
7157
|
+
le(W(i.title), 1)
|
|
7158
7158
|
]),
|
|
7159
7159
|
_: 2
|
|
7160
7160
|
}, 1024),
|
|
@@ -7163,7 +7163,7 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7163
7163
|
class: "mt-1 text-sm leading-snug opacity-80"
|
|
7164
7164
|
}, {
|
|
7165
7165
|
default: _(() => [
|
|
7166
|
-
le(
|
|
7166
|
+
le(W(i.description), 1)
|
|
7167
7167
|
]),
|
|
7168
7168
|
_: 2
|
|
7169
7169
|
}, 1024)) : X("", !0),
|
|
@@ -7172,7 +7172,7 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7172
7172
|
class: "toast-action mt-2"
|
|
7173
7173
|
}, {
|
|
7174
7174
|
default: _(() => [
|
|
7175
|
-
le(
|
|
7175
|
+
le(W(i.action.label), 1)
|
|
7176
7176
|
]),
|
|
7177
7177
|
_: 2
|
|
7178
7178
|
}, 1024)) : X("", !0)
|
|
@@ -7180,7 +7180,7 @@ const Lu = { class: "toast-content" }, Vu = { class: "sr-only" }, Hu = /* @__PUR
|
|
|
7180
7180
|
C(a(yo).CloseTrigger, { class: "toast-close" }, {
|
|
7181
7181
|
default: _(() => [
|
|
7182
7182
|
C(s, { class: "h-4 w-4" }),
|
|
7183
|
-
x("span", Vu,
|
|
7183
|
+
x("span", Vu, W(a(t)("common.close")), 1)
|
|
7184
7184
|
]),
|
|
7185
7185
|
_: 1
|
|
7186
7186
|
})
|
|
@@ -7212,7 +7212,7 @@ function Uu(e, t) {
|
|
|
7212
7212
|
const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
7213
7213
|
key: 0,
|
|
7214
7214
|
class: "text-center text-gray-500 py-8"
|
|
7215
|
-
},
|
|
7215
|
+
}, zu = { key: 0 }, Wu = { key: 1 }, Ku = {
|
|
7216
7216
|
key: 1,
|
|
7217
7217
|
class: "h-full flex"
|
|
7218
7218
|
}, qu = { class: "w-60 border-r overflow-y-auto" }, Xu = { class: "text-xs font-medium text-gray-700" }, Yu = { class: "pb-1" }, Ju = ["onClick", "onMouseenter"], Qu = ["innerHTML"], Zu = { class: "flex-1 min-w-0" }, ep = { class: "text-xs text-gray-900 truncate" }, tp = { class: "flex-1 p-2 bg-gray-50" }, op = {
|
|
@@ -7243,7 +7243,7 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
|
7243
7243
|
return (c, u) => {
|
|
7244
7244
|
const m = Lr;
|
|
7245
7245
|
return Object.keys(c.blocksByCategory).length === 0 ? (g(), O("div", ju, [
|
|
7246
|
-
c.searchQuery.trim() ? (g(), O("p",
|
|
7246
|
+
c.searchQuery.trim() ? (g(), O("p", zu, W(a(r)("blocksPopover.noBlocksFound")) + ' "' + W(c.searchQuery) + '"', 1)) : (g(), O("p", Wu, W(a(r)("blocksPopover.noBlocksAvailable")), 1))
|
|
7247
7247
|
])) : (g(), O("div", Ku, [
|
|
7248
7248
|
x("div", qu, [
|
|
7249
7249
|
C(a(et).Root, {
|
|
@@ -7260,7 +7260,7 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
|
7260
7260
|
default: _(() => [
|
|
7261
7261
|
C(a(et).ItemTrigger, { class: "flex w-full items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors" }, {
|
|
7262
7262
|
default: _(() => [
|
|
7263
|
-
x("span", Xu,
|
|
7263
|
+
x("span", Xu, W(h), 1),
|
|
7264
7264
|
C(a(et).ItemIndicator, { class: "transition-transform duration-200" }, {
|
|
7265
7265
|
default: _(() => [
|
|
7266
7266
|
C(m, { class: "w-3 h-3 text-gray-500" })
|
|
@@ -7285,7 +7285,7 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
|
7285
7285
|
innerHTML: p.icon || ""
|
|
7286
7286
|
}, null, 8, Qu),
|
|
7287
7287
|
x("div", Zu, [
|
|
7288
|
-
x("div", ep,
|
|
7288
|
+
x("div", ep, W(p.name), 1)
|
|
7289
7289
|
])
|
|
7290
7290
|
], 42, Ju))), 128))
|
|
7291
7291
|
])
|
|
@@ -7307,8 +7307,8 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
|
7307
7307
|
innerHTML: a(i).icon || ""
|
|
7308
7308
|
}, null, 8, rp),
|
|
7309
7309
|
x("div", sp, [
|
|
7310
|
-
x("h3", ip,
|
|
7311
|
-
a(i).description ? (g(), O("p", ap,
|
|
7310
|
+
x("h3", ip, W(a(i).name), 1),
|
|
7311
|
+
a(i).description ? (g(), O("p", ap, W(a(i).description), 1)) : X("", !0)
|
|
7312
7312
|
])
|
|
7313
7313
|
]),
|
|
7314
7314
|
x("div", lp, [
|
|
@@ -7318,11 +7318,11 @@ const Lr = Q({ name: "heroicons-chevron-down", render: Uu }), ju = {
|
|
|
7318
7318
|
alt: `Preview of ${a(i).name}`,
|
|
7319
7319
|
class: "w-full h-full object-contain"
|
|
7320
7320
|
}, null, 8, cp)) : (g(), O("div", dp, [
|
|
7321
|
-
x("div", up,
|
|
7322
|
-
x("div", pp,
|
|
7321
|
+
x("div", up, W(a(r)("blocksPopover.noPreviewAvailable")), 1),
|
|
7322
|
+
x("div", pp, W(a(i).blockType), 1)
|
|
7323
7323
|
]))
|
|
7324
7324
|
])
|
|
7325
|
-
])) : (g(), O("div", hp,
|
|
7325
|
+
])) : (g(), O("div", hp, W(a(r)("blocksPopover.hoverToSeeDetails")), 1))
|
|
7326
7326
|
])
|
|
7327
7327
|
]));
|
|
7328
7328
|
};
|
|
@@ -7340,8 +7340,8 @@ function fp(e, t) {
|
|
|
7340
7340
|
if (o)
|
|
7341
7341
|
n = e, r = !0;
|
|
7342
7342
|
else {
|
|
7343
|
-
const b = e || {}, { autoSync: A = !0, ...
|
|
7344
|
-
n = new cr(
|
|
7343
|
+
const b = e || {}, { autoSync: A = !0, ...z } = b;
|
|
7344
|
+
n = new cr(z), r = A;
|
|
7345
7345
|
}
|
|
7346
7346
|
const s = re({
|
|
7347
7347
|
blocks: {},
|
|
@@ -7349,14 +7349,14 @@ function fp(e, t) {
|
|
|
7349
7349
|
}), i = y(() => s.value.blocks), d = y(() => s.value.regions), l = re(n.canUndo()), c = re(n.canRedo()), u = y(() => {
|
|
7350
7350
|
const b = [];
|
|
7351
7351
|
for (const A of d.value)
|
|
7352
|
-
for (const
|
|
7353
|
-
const Z = i.value[
|
|
7352
|
+
for (const z of A.blocks) {
|
|
7353
|
+
const Z = i.value[z];
|
|
7354
7354
|
Z && b.push(Z);
|
|
7355
7355
|
}
|
|
7356
7356
|
return b;
|
|
7357
7357
|
}), m = (b) => i.value[b], h = (b) => Object.values(i.value).filter((A) => A.type === b), p = (b) => {
|
|
7358
7358
|
const A = i.value[b];
|
|
7359
|
-
return A ? A.children.map((
|
|
7359
|
+
return A ? A.children.map((z) => i.value[z]).filter(Boolean) : [];
|
|
7360
7360
|
}, v = () => {
|
|
7361
7361
|
const b = wr(n.getPage());
|
|
7362
7362
|
s.value = b, ao(() => {
|
|
@@ -7377,23 +7377,23 @@ function fp(e, t) {
|
|
|
7377
7377
|
"undo",
|
|
7378
7378
|
"redo"
|
|
7379
7379
|
].forEach((A) => {
|
|
7380
|
-
const
|
|
7380
|
+
const z = n.on(A, () => {
|
|
7381
7381
|
v();
|
|
7382
7382
|
});
|
|
7383
|
-
k.push(
|
|
7383
|
+
k.push(z);
|
|
7384
7384
|
});
|
|
7385
7385
|
const E = (b, A) => {
|
|
7386
|
-
const
|
|
7387
|
-
return r || v(),
|
|
7388
|
-
}, B = (b, A,
|
|
7389
|
-
const Z = n.insertBlockFromPreset(b, A,
|
|
7386
|
+
const z = n.insertBlock(b, A);
|
|
7387
|
+
return r || v(), z;
|
|
7388
|
+
}, B = (b, A, z) => {
|
|
7389
|
+
const Z = n.insertBlockFromPreset(b, A, z);
|
|
7390
7390
|
return r || v(), Z;
|
|
7391
7391
|
}, H = (b) => {
|
|
7392
7392
|
n.removeBlock(b), r || v();
|
|
7393
7393
|
}, D = (b, A) => {
|
|
7394
7394
|
n.moveBlock(b, A), r || v();
|
|
7395
|
-
}, f = (b, A,
|
|
7396
|
-
n.setBlockProperty(b, A,
|
|
7395
|
+
}, f = (b, A, z) => {
|
|
7396
|
+
n.setBlockProperty(b, A, z), r || v();
|
|
7397
7397
|
}, P = (b, A) => {
|
|
7398
7398
|
n.setBlockName(b, A), r || v();
|
|
7399
7399
|
}, $ = (b, A) => {
|
|
@@ -7402,8 +7402,8 @@ function fp(e, t) {
|
|
|
7402
7402
|
const A = n.duplicateBlock(b);
|
|
7403
7403
|
return r || v(), A;
|
|
7404
7404
|
}, S = (b, A) => {
|
|
7405
|
-
const
|
|
7406
|
-
return r || v(),
|
|
7405
|
+
const z = n.pasteBlock(b, A);
|
|
7406
|
+
return r || v(), z;
|
|
7407
7407
|
}, L = () => {
|
|
7408
7408
|
const b = n.undo();
|
|
7409
7409
|
return r || v(), b;
|
|
@@ -7687,7 +7687,7 @@ const mp = {
|
|
|
7687
7687
|
class: "flex-1 py-1.5 rounded data-selected:bg-white data-selected:shadow"
|
|
7688
7688
|
}, {
|
|
7689
7689
|
default: _(() => [
|
|
7690
|
-
le(
|
|
7690
|
+
le(W(a(t)("blocksPopover.tabBlocks")), 1)
|
|
7691
7691
|
]),
|
|
7692
7692
|
_: 1
|
|
7693
7693
|
}),
|
|
@@ -7696,7 +7696,7 @@ const mp = {
|
|
|
7696
7696
|
class: "flex-1 py-1.5 rounded data-selected:bg-white data-selected:shadow"
|
|
7697
7697
|
}, {
|
|
7698
7698
|
default: _(() => [
|
|
7699
|
-
le(
|
|
7699
|
+
le(W(a(t)("blocksPopover.tabSaved")), 1)
|
|
7700
7700
|
]),
|
|
7701
7701
|
_: 1
|
|
7702
7702
|
})
|
|
@@ -7977,7 +7977,7 @@ function Pt() {
|
|
|
7977
7977
|
const Hp = {
|
|
7978
7978
|
key: 0,
|
|
7979
7979
|
class: "border-b border-gray-200 bg-white px-3 py-2 flex-none"
|
|
7980
|
-
}, Gp = { class: "flex items-center gap-2" }, Up = ["aria-label"], jp = { class: "flex-1 min-w-0" },
|
|
7980
|
+
}, Gp = { class: "flex items-center gap-2" }, Up = ["aria-label"], jp = { class: "flex-1 min-w-0" }, zp = /* @__PURE__ */ T({
|
|
7981
7981
|
__name: "ConfigurationHeader",
|
|
7982
7982
|
props: {
|
|
7983
7983
|
isOverlay: { type: Boolean, default: !1 }
|
|
@@ -8066,7 +8066,7 @@ const Hp = {
|
|
|
8066
8066
|
!c.value || c.value.static || (d(c.value.id), u());
|
|
8067
8067
|
}
|
|
8068
8068
|
return (U, w) => {
|
|
8069
|
-
const b = Vp, A = Np,
|
|
8069
|
+
const b = Vp, A = Np, z = Ai, Z = $p, ae = Pp, Ve = Ur, Ke = Gr, de = Hr;
|
|
8070
8070
|
return a(c) ? (g(), O("div", Hp, [
|
|
8071
8071
|
x("div", Gp, [
|
|
8072
8072
|
t.isOverlay ? (g(), O("button", {
|
|
@@ -8094,7 +8094,7 @@ const Hp = {
|
|
|
8094
8094
|
key: 1,
|
|
8095
8095
|
onClick: k,
|
|
8096
8096
|
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"
|
|
8097
|
-
},
|
|
8097
|
+
}, W(a(m)), 1))
|
|
8098
8098
|
]),
|
|
8099
8099
|
C(a(ie).Root, { positioning: { strategy: "fixed", placement: "bottom-end" } }, {
|
|
8100
8100
|
default: _(() => [
|
|
@@ -8115,8 +8115,8 @@ const Hp = {
|
|
|
8115
8115
|
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"
|
|
8116
8116
|
}, {
|
|
8117
8117
|
default: _(() => [
|
|
8118
|
-
C(
|
|
8119
|
-
le(" " +
|
|
8118
|
+
C(z, { class: "w-4 h-4" }),
|
|
8119
|
+
le(" " + W(a(o)("block.duplicate")), 1)
|
|
8120
8120
|
]),
|
|
8121
8121
|
_: 1
|
|
8122
8122
|
}, 8, ["disabled"]),
|
|
@@ -8128,7 +8128,7 @@ const Hp = {
|
|
|
8128
8128
|
}, {
|
|
8129
8129
|
default: _(() => [
|
|
8130
8130
|
C(Z, { class: "w-4 h-4" }),
|
|
8131
|
-
le(" " +
|
|
8131
|
+
le(" " + W(a(o)("block.moveToPrevious")), 1)
|
|
8132
8132
|
]),
|
|
8133
8133
|
_: 1
|
|
8134
8134
|
}, 8, ["disabled"]),
|
|
@@ -8140,7 +8140,7 @@ const Hp = {
|
|
|
8140
8140
|
}, {
|
|
8141
8141
|
default: _(() => [
|
|
8142
8142
|
C(ae, { class: "w-4 h-4" }),
|
|
8143
|
-
le(" " +
|
|
8143
|
+
le(" " + W(a(o)("block.moveToNext")), 1)
|
|
8144
8144
|
]),
|
|
8145
8145
|
_: 1
|
|
8146
8146
|
}, 8, ["disabled"]),
|
|
@@ -8157,7 +8157,7 @@ const Hp = {
|
|
|
8157
8157
|
key: 1,
|
|
8158
8158
|
class: "w-4 h-4"
|
|
8159
8159
|
})),
|
|
8160
|
-
le(" " +
|
|
8160
|
+
le(" " + W(a(c).disabled ? a(o)("block.enable") : a(o)("block.disable")), 1)
|
|
8161
8161
|
]),
|
|
8162
8162
|
_: 1
|
|
8163
8163
|
}),
|
|
@@ -8169,7 +8169,7 @@ const Hp = {
|
|
|
8169
8169
|
}, {
|
|
8170
8170
|
default: _(() => [
|
|
8171
8171
|
C(de, { class: "w-4 h-4" }),
|
|
8172
|
-
le(" " +
|
|
8172
|
+
le(" " + W(a(o)("block.remove")), 1)
|
|
8173
8173
|
]),
|
|
8174
8174
|
_: 1
|
|
8175
8175
|
}, 8, ["disabled"])
|
|
@@ -8186,7 +8186,7 @@ const Hp = {
|
|
|
8186
8186
|
])) : X("", !0);
|
|
8187
8187
|
};
|
|
8188
8188
|
}
|
|
8189
|
-
}),
|
|
8189
|
+
}), Wp = { class: "h-full w-full flex flex-col bg-white relative" }, Kp = { class: "flex-1 overflow-y-auto" }, qp = {
|
|
8190
8190
|
key: 1,
|
|
8191
8191
|
class: "flex-1 overflow-y-auto"
|
|
8192
8192
|
}, Xp = {
|
|
@@ -8200,8 +8200,8 @@ const Hp = {
|
|
|
8200
8200
|
setup(e) {
|
|
8201
8201
|
const t = Ee(xe), { t: o } = Pe(), { configurationPanels: n } = it(), { hasSelection: r } = Pt(), s = re("properties"), i = y(() => n.value.length >= 2), d = y(() => r.value && n.value.length > 0 ? n.value[0] : null);
|
|
8202
8202
|
return (l, c) => {
|
|
8203
|
-
const u =
|
|
8204
|
-
return g(), O("div",
|
|
8203
|
+
const u = zp, m = Ao, h = _p;
|
|
8204
|
+
return g(), O("div", Wp, [
|
|
8205
8205
|
C(u, {
|
|
8206
8206
|
"is-overlay": l.isOverlay,
|
|
8207
8207
|
class: "flex-none"
|
|
@@ -8231,7 +8231,7 @@ const Hp = {
|
|
|
8231
8231
|
"render-fn": p.icon,
|
|
8232
8232
|
class: "w-3 h-3"
|
|
8233
8233
|
}, null, 8, ["render-fn"])) : X("", !0),
|
|
8234
|
-
le(" " +
|
|
8234
|
+
le(" " + W(p.title), 1)
|
|
8235
8235
|
]),
|
|
8236
8236
|
_: 2
|
|
8237
8237
|
}, 1032, ["value"]))), 128))
|
|
@@ -8271,8 +8271,8 @@ const Hp = {
|
|
|
8271
8271
|
x("div", Yp, [
|
|
8272
8272
|
C(h, { class: "w-8 h-8 text-gray-400" })
|
|
8273
8273
|
]),
|
|
8274
|
-
x("h3", Jp,
|
|
8275
|
-
x("p", Qp,
|
|
8274
|
+
x("h3", Jp, W(a(o)("configPanels.properties")), 1),
|
|
8275
|
+
x("p", Qp, W(a(o)("configPanels.selectedBlock")), 1)
|
|
8276
8276
|
]))
|
|
8277
8277
|
]);
|
|
8278
8278
|
};
|
|
@@ -8444,14 +8444,14 @@ const mh = {
|
|
|
8444
8444
|
);
|
|
8445
8445
|
const L = y(() => {
|
|
8446
8446
|
if (!i.value || !d.value) return {};
|
|
8447
|
-
const V = i.value, U = d.value, { width: w, height: b } = B.value, A = 2,
|
|
8447
|
+
const V = i.value, U = d.value, { width: w, height: b } = B.value, A = 2, z = t.zoomScale, Z = V.width * z, Ve = V.top - U.top < b + A ? V.height + A : -((b + A) / z), Ke = Z <= w, de = {
|
|
8448
8448
|
position: "absolute",
|
|
8449
8449
|
top: `${Ve}px`
|
|
8450
8450
|
};
|
|
8451
8451
|
return Ke ? de.left = "0px" : de.right = "0px", de;
|
|
8452
8452
|
});
|
|
8453
8453
|
return (V, U) => {
|
|
8454
|
-
const w = fh, b = ph, A = dh,
|
|
8454
|
+
const w = fh, b = ph, A = dh, z = ah, Z = rh, ae = th;
|
|
8455
8455
|
return a(H) ? (g(), O("div", {
|
|
8456
8456
|
key: 0,
|
|
8457
8457
|
class: "absolute inset-0 w-full h-full pointer-events-none z-10",
|
|
@@ -8462,7 +8462,7 @@ const mh = {
|
|
|
8462
8462
|
class: "w-3 h-3 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8463
8463
|
innerHTML: a($)
|
|
8464
8464
|
}, null, 8, vh),
|
|
8465
|
-
x("span", null,
|
|
8465
|
+
x("span", null, W(a(P)), 1)
|
|
8466
8466
|
])) : X("", !0),
|
|
8467
8467
|
U[0] || (U[0] = x("div", { class: "absolute inset-0 border border-blue-500 bg-blue-500/5" }, null, -1)),
|
|
8468
8468
|
x("div", {
|
|
@@ -8499,7 +8499,7 @@ const mh = {
|
|
|
8499
8499
|
onClick: a(p)
|
|
8500
8500
|
}, {
|
|
8501
8501
|
default: _(() => [
|
|
8502
|
-
C(
|
|
8502
|
+
C(z)
|
|
8503
8503
|
]),
|
|
8504
8504
|
_: 1
|
|
8505
8505
|
}, 8, ["title", "onClick"])),
|
|
@@ -8547,7 +8547,7 @@ function _h(e, t) {
|
|
|
8547
8547
|
const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
8548
8548
|
key: 0,
|
|
8549
8549
|
class: "absolute top-0 left-0 w-full h-full pointer-events-none z-[1000]"
|
|
8550
|
-
}, Ih = { class: "bg-blue-500 text-white px-1 py-0.5 rounded-t font-medium text-[0.60rem] flex items-center gap-0.5 pointer-events-none absolute -left-[1px] -top-[19px]" }, xh = ["innerHTML"], wh = /* @__PURE__ */ T({
|
|
8550
|
+
}, Ih = { class: "bg-blue-500 text-white px-1 py-0.5 rounded-t font-medium text-[0.60rem] flex items-center gap-0.5 pointer-events-none absolute -left-[1px] -top-[19px] max-w-full overflow-hidden" }, xh = ["innerHTML"], wh = { class: "truncate min-w-0" }, Ch = /* @__PURE__ */ T({
|
|
8551
8551
|
__name: "HoveredBlockOverlay",
|
|
8552
8552
|
emits: ["insertBefore", "insertAfter", "buttonEnter", "buttonLeave"],
|
|
8553
8553
|
setup(e, { emit: t }) {
|
|
@@ -8589,10 +8589,10 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8589
8589
|
}, [
|
|
8590
8590
|
x("div", Ih, [
|
|
8591
8591
|
x("span", {
|
|
8592
|
-
class: "w-3 h-3 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8592
|
+
class: "w-3 h-3 shrink-0 flex items-center justify-center [&_svg]:w-full [&_svg]:h-full [&_svg]:fill-current",
|
|
8593
8593
|
innerHTML: a(E)
|
|
8594
8594
|
}, null, 8, xh),
|
|
8595
|
-
x("span",
|
|
8595
|
+
x("span", wh, W(a(k)), 1)
|
|
8596
8596
|
]),
|
|
8597
8597
|
x("button", {
|
|
8598
8598
|
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", {
|
|
@@ -8621,7 +8621,7 @@ const Sn = Q({ name: "heroicons-plus", render: _h }), kh = {
|
|
|
8621
8621
|
};
|
|
8622
8622
|
}
|
|
8623
8623
|
});
|
|
8624
|
-
function
|
|
8624
|
+
function Eh() {
|
|
8625
8625
|
const e = Ee(xe);
|
|
8626
8626
|
if (!e)
|
|
8627
8627
|
throw new Error("usePreview must be used within a component that has access to CraftileEditor");
|
|
@@ -8639,10 +8639,10 @@ function Ch() {
|
|
|
8639
8639
|
getFrame: e.preview.getFrame.bind(e.preview)
|
|
8640
8640
|
};
|
|
8641
8641
|
}
|
|
8642
|
-
const
|
|
8642
|
+
const Oh = ["src"], Th = /* @__PURE__ */ T({
|
|
8643
8643
|
__name: "PreviewCanvas",
|
|
8644
8644
|
setup(e) {
|
|
8645
|
-
const { currentDeviceData: t } = Dr(), { currentPreviewUrl: o, registerFrame: n, sendMessage: r } =
|
|
8645
|
+
const { currentDeviceData: t } = Dr(), { currentPreviewUrl: o, registerFrame: n, sendMessage: r } = Eh(), { updateIframeRect: s, clearHoveredBlock: i } = Bn(), { open: d, getInsertionContext: l } = ho(), { clearSelection: c } = Pt(), u = re(), m = re(), h = y(() => t.value?.width), p = () => m.value?.getBoundingClientRect().width || 0, v = y(() => {
|
|
8646
8646
|
const $ = p();
|
|
8647
8647
|
if ($ <= 0 || !h.value || h.value === 0 || h.value <= $)
|
|
8648
8648
|
return 1;
|
|
@@ -8685,7 +8685,7 @@ const Eh = ["src"], Oh = /* @__PURE__ */ T({
|
|
|
8685
8685
|
}), Mo(() => {
|
|
8686
8686
|
window.removeEventListener("scroll", E);
|
|
8687
8687
|
}), ($, R) => {
|
|
8688
|
-
const S =
|
|
8688
|
+
const S = Ch, L = bh;
|
|
8689
8689
|
return g(), O("div", {
|
|
8690
8690
|
ref_key: "previewWrapper",
|
|
8691
8691
|
ref: m,
|
|
@@ -8702,7 +8702,7 @@ const Eh = ["src"], Oh = /* @__PURE__ */ T({
|
|
|
8702
8702
|
src: a(o),
|
|
8703
8703
|
class: "w-full h-full border-0 preview-iframe",
|
|
8704
8704
|
onLoad: B
|
|
8705
|
-
}, null, 40,
|
|
8705
|
+
}, null, 40, Oh),
|
|
8706
8706
|
C(S, {
|
|
8707
8707
|
onButtonEnter: H,
|
|
8708
8708
|
onButtonLeave: D,
|
|
@@ -8714,7 +8714,7 @@ const Eh = ["src"], Oh = /* @__PURE__ */ T({
|
|
|
8714
8714
|
], 512);
|
|
8715
8715
|
};
|
|
8716
8716
|
}
|
|
8717
|
-
}),
|
|
8717
|
+
}), Ph = /* @__PURE__ */ T({
|
|
8718
8718
|
__name: "AddBlockBtn",
|
|
8719
8719
|
props: {
|
|
8720
8720
|
blockId: {}
|
|
@@ -8744,13 +8744,13 @@ const Eh = ["src"], Oh = /* @__PURE__ */ T({
|
|
|
8744
8744
|
], 512);
|
|
8745
8745
|
};
|
|
8746
8746
|
}
|
|
8747
|
-
}),
|
|
8747
|
+
}), Bh = {
|
|
8748
8748
|
viewBox: "0 0 24 24",
|
|
8749
8749
|
width: "1.2em",
|
|
8750
8750
|
height: "1.2em"
|
|
8751
8751
|
};
|
|
8752
|
-
function
|
|
8753
|
-
return g(), O("svg",
|
|
8752
|
+
function Sh(e, t) {
|
|
8753
|
+
return g(), O("svg", Bh, [...t[0] || (t[0] = [
|
|
8754
8754
|
x("path", {
|
|
8755
8755
|
fill: "none",
|
|
8756
8756
|
stroke: "currentColor",
|
|
@@ -8761,13 +8761,13 @@ function Bh(e, t) {
|
|
|
8761
8761
|
}, null, -1)
|
|
8762
8762
|
])]);
|
|
8763
8763
|
}
|
|
8764
|
-
const
|
|
8764
|
+
const $h = Q({ name: "heroicons-code-bracket", render: Sh }), Rh = {
|
|
8765
8765
|
viewBox: "0 0 24 24",
|
|
8766
8766
|
width: "1.2em",
|
|
8767
8767
|
height: "1.2em"
|
|
8768
8768
|
};
|
|
8769
|
-
function
|
|
8770
|
-
return g(), O("svg",
|
|
8769
|
+
function Dh(e, t) {
|
|
8770
|
+
return g(), O("svg", Rh, [...t[0] || (t[0] = [
|
|
8771
8771
|
x("path", {
|
|
8772
8772
|
fill: "none",
|
|
8773
8773
|
stroke: "currentColor",
|
|
@@ -8778,13 +8778,13 @@ function Rh(e, t) {
|
|
|
8778
8778
|
}, null, -1)
|
|
8779
8779
|
])]);
|
|
8780
8780
|
}
|
|
8781
|
-
const
|
|
8781
|
+
const Mh = Q({ name: "heroicons-arrow-down-on-square", render: Dh }), Ah = {
|
|
8782
8782
|
viewBox: "0 0 24 24",
|
|
8783
8783
|
width: "1.2em",
|
|
8784
8784
|
height: "1.2em"
|
|
8785
8785
|
};
|
|
8786
|
-
function
|
|
8787
|
-
return g(), O("svg",
|
|
8786
|
+
function Nh(e, t) {
|
|
8787
|
+
return g(), O("svg", Ah, [...t[0] || (t[0] = [
|
|
8788
8788
|
x("path", {
|
|
8789
8789
|
fill: "none",
|
|
8790
8790
|
stroke: "currentColor",
|
|
@@ -8795,13 +8795,13 @@ function Ah(e, t) {
|
|
|
8795
8795
|
}, null, -1)
|
|
8796
8796
|
])]);
|
|
8797
8797
|
}
|
|
8798
|
-
const
|
|
8798
|
+
const Fh = Q({ name: "heroicons-arrow-up-on-square", render: Nh }), Lh = {
|
|
8799
8799
|
viewBox: "0 0 24 24",
|
|
8800
8800
|
width: "1.2em",
|
|
8801
8801
|
height: "1.2em"
|
|
8802
8802
|
};
|
|
8803
|
-
function
|
|
8804
|
-
return g(), O("svg",
|
|
8803
|
+
function Vh(e, t) {
|
|
8804
|
+
return g(), O("svg", Lh, [...t[0] || (t[0] = [
|
|
8805
8805
|
x("path", {
|
|
8806
8806
|
fill: "none",
|
|
8807
8807
|
stroke: "currentColor",
|
|
@@ -8812,13 +8812,13 @@ function Lh(e, t) {
|
|
|
8812
8812
|
}, null, -1)
|
|
8813
8813
|
])]);
|
|
8814
8814
|
}
|
|
8815
|
-
const
|
|
8815
|
+
const Hh = Q({ name: "heroicons-arrow-long-down", render: Vh }), Gh = {
|
|
8816
8816
|
viewBox: "0 0 24 24",
|
|
8817
8817
|
width: "1.2em",
|
|
8818
8818
|
height: "1.2em"
|
|
8819
8819
|
};
|
|
8820
|
-
function
|
|
8821
|
-
return g(), O("svg",
|
|
8820
|
+
function Uh(e, t) {
|
|
8821
|
+
return g(), O("svg", Gh, [...t[0] || (t[0] = [
|
|
8822
8822
|
x("path", {
|
|
8823
8823
|
fill: "none",
|
|
8824
8824
|
stroke: "currentColor",
|
|
@@ -8829,13 +8829,13 @@ function Gh(e, t) {
|
|
|
8829
8829
|
}, null, -1)
|
|
8830
8830
|
])]);
|
|
8831
8831
|
}
|
|
8832
|
-
const
|
|
8832
|
+
const jh = Q({ name: "heroicons-arrow-long-up", render: Uh }), zh = {
|
|
8833
8833
|
viewBox: "0 0 24 24",
|
|
8834
8834
|
width: "1.2em",
|
|
8835
8835
|
height: "1.2em"
|
|
8836
8836
|
};
|
|
8837
8837
|
function Wh(e, t) {
|
|
8838
|
-
return g(), O("svg",
|
|
8838
|
+
return g(), O("svg", zh, [...t[0] || (t[0] = [
|
|
8839
8839
|
x("path", {
|
|
8840
8840
|
fill: "none",
|
|
8841
8841
|
stroke: "currentColor",
|
|
@@ -8846,13 +8846,13 @@ function Wh(e, t) {
|
|
|
8846
8846
|
}, null, -1)
|
|
8847
8847
|
])]);
|
|
8848
8848
|
}
|
|
8849
|
-
const
|
|
8849
|
+
const Kh = Q({ name: "heroicons-clipboard", render: Wh }), qh = {
|
|
8850
8850
|
viewBox: "0 0 24 24",
|
|
8851
8851
|
width: "1.2em",
|
|
8852
8852
|
height: "1.2em"
|
|
8853
8853
|
};
|
|
8854
|
-
function
|
|
8855
|
-
return g(), O("svg",
|
|
8854
|
+
function Xh(e, t) {
|
|
8855
|
+
return g(), O("svg", qh, [...t[0] || (t[0] = [
|
|
8856
8856
|
x("path", {
|
|
8857
8857
|
fill: "none",
|
|
8858
8858
|
stroke: "currentColor",
|
|
@@ -8863,7 +8863,7 @@ function qh(e, t) {
|
|
|
8863
8863
|
}, null, -1)
|
|
8864
8864
|
])]);
|
|
8865
8865
|
}
|
|
8866
|
-
const
|
|
8866
|
+
const Yh = Q({ name: "heroicons-clipboard-document", render: Xh });
|
|
8867
8867
|
function Fi(e) {
|
|
8868
8868
|
const {
|
|
8869
8869
|
engine: t,
|
|
@@ -8956,7 +8956,7 @@ function Fi(e) {
|
|
|
8956
8956
|
}
|
|
8957
8957
|
};
|
|
8958
8958
|
}
|
|
8959
|
-
function
|
|
8959
|
+
function Jh() {
|
|
8960
8960
|
const e = Ee(xe);
|
|
8961
8961
|
if (!e)
|
|
8962
8962
|
throw new Error("useClipboard must be used within a component that has access to CraftileEditor");
|
|
@@ -9046,13 +9046,13 @@ function Yh() {
|
|
|
9046
9046
|
copyBlockAsJSON: u
|
|
9047
9047
|
};
|
|
9048
9048
|
}
|
|
9049
|
-
const
|
|
9049
|
+
const Qh = /* @__PURE__ */ T({
|
|
9050
9050
|
__name: "BlockContextMenu",
|
|
9051
9051
|
props: {
|
|
9052
9052
|
blockId: {}
|
|
9053
9053
|
},
|
|
9054
9054
|
setup(e) {
|
|
9055
|
-
const t = e, { t: o } = Pe(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: d, blocks: l, regions: c } = Le(), { open: u, getInsertionContext: m } = ho(), { block: h, parent: p, index: v } = Fi(t.blockId), { toaster: k } = it(), { copyBlock: E, canPasteAfter: B, pasteBlockAfter: H, hasCopiedBlock: D, copyBlockAsJSON: f } =
|
|
9055
|
+
const t = e, { t: o } = Pe(), { engine: n, moveBlock: r, duplicateBlock: s, toggleBlock: i, removeBlock: d, blocks: l, regions: c } = Le(), { open: u, getInsertionContext: m } = ho(), { block: h, parent: p, index: v } = Fi(t.blockId), { toaster: k } = it(), { copyBlock: E, canPasteAfter: B, pasteBlockAfter: H, hasCopiedBlock: D, copyBlockAsJSON: f } = Jh(), P = y(() => h.value?.static === !0), $ = y(() => !h.value?.parentId), R = y(() => {
|
|
9056
9056
|
if (!h.value)
|
|
9057
9057
|
return null;
|
|
9058
9058
|
const oe = n.getPage(), ve = h.value;
|
|
@@ -9098,7 +9098,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9098
9098
|
function A() {
|
|
9099
9099
|
s(t.blockId);
|
|
9100
9100
|
}
|
|
9101
|
-
function
|
|
9101
|
+
function z() {
|
|
9102
9102
|
i(t.blockId);
|
|
9103
9103
|
}
|
|
9104
9104
|
function Z(oe) {
|
|
@@ -9176,7 +9176,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9176
9176
|
f(t.blockId);
|
|
9177
9177
|
}
|
|
9178
9178
|
return (oe, ve) => {
|
|
9179
|
-
const Re =
|
|
9179
|
+
const Re = Yh, De = Kh, zt = Ai, An = Ur, Nn = Gr, Fn = jh, Ln = Hh, Vn = Fh, at = Mh, aa = $h, la = Hr;
|
|
9180
9180
|
return a(h) ? (g(), I(a(ie).Root, { key: 0 }, {
|
|
9181
9181
|
default: _(() => [
|
|
9182
9182
|
C(a(ie).ContextTrigger, {
|
|
@@ -9200,7 +9200,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9200
9200
|
}, {
|
|
9201
9201
|
default: _(() => [
|
|
9202
9202
|
C(Re, { class: "w-4 h-4" }),
|
|
9203
|
-
le(" " +
|
|
9203
|
+
le(" " + W(a(o)("block.copy")), 1)
|
|
9204
9204
|
]),
|
|
9205
9205
|
_: 1
|
|
9206
9206
|
}),
|
|
@@ -9212,7 +9212,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9212
9212
|
}, {
|
|
9213
9213
|
default: _(() => [
|
|
9214
9214
|
C(De, { class: "w-4 h-4" }),
|
|
9215
|
-
le(" " +
|
|
9215
|
+
le(" " + W(a(o)("block.pasteAfter")), 1)
|
|
9216
9216
|
]),
|
|
9217
9217
|
_: 1
|
|
9218
9218
|
}, 8, ["disabled"]),
|
|
@@ -9223,14 +9223,14 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9223
9223
|
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"
|
|
9224
9224
|
}, {
|
|
9225
9225
|
default: _(() => [
|
|
9226
|
-
C(
|
|
9227
|
-
le(" " +
|
|
9226
|
+
C(zt, { class: "w-4 h-4" }),
|
|
9227
|
+
le(" " + W(a(o)("block.duplicate")), 1)
|
|
9228
9228
|
]),
|
|
9229
9229
|
_: 1
|
|
9230
9230
|
}, 8, ["disabled"]),
|
|
9231
9231
|
C(a(ie).Item, {
|
|
9232
9232
|
value: "toggle",
|
|
9233
|
-
onSelect:
|
|
9233
|
+
onSelect: z,
|
|
9234
9234
|
class: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer"
|
|
9235
9235
|
}, {
|
|
9236
9236
|
default: _(() => [
|
|
@@ -9241,7 +9241,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9241
9241
|
key: 1,
|
|
9242
9242
|
class: "w-4 h-4"
|
|
9243
9243
|
})),
|
|
9244
|
-
le(" " +
|
|
9244
|
+
le(" " + W(a(h).disabled ? a(o)("block.enable") : a(o)("block.disable")), 1)
|
|
9245
9245
|
]),
|
|
9246
9246
|
_: 1
|
|
9247
9247
|
}),
|
|
@@ -9254,7 +9254,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9254
9254
|
}, {
|
|
9255
9255
|
default: _(() => [
|
|
9256
9256
|
C(Fn, { class: "w-4 h-4" }),
|
|
9257
|
-
le(" " +
|
|
9257
|
+
le(" " + W(a(o)("block.moveToPrevious")), 1)
|
|
9258
9258
|
]),
|
|
9259
9259
|
_: 1
|
|
9260
9260
|
}, 8, ["disabled"]),
|
|
@@ -9266,7 +9266,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9266
9266
|
}, {
|
|
9267
9267
|
default: _(() => [
|
|
9268
9268
|
C(Ln, { class: "w-4 h-4" }),
|
|
9269
|
-
le(" " +
|
|
9269
|
+
le(" " + W(a(o)("block.moveToNext")), 1)
|
|
9270
9270
|
]),
|
|
9271
9271
|
_: 1
|
|
9272
9272
|
}, 8, ["disabled"]),
|
|
@@ -9279,7 +9279,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9279
9279
|
}, {
|
|
9280
9280
|
default: _(() => [
|
|
9281
9281
|
C(Vn, { class: "w-4 h-4" }),
|
|
9282
|
-
le(" " +
|
|
9282
|
+
le(" " + W(a(Dn)), 1)
|
|
9283
9283
|
]),
|
|
9284
9284
|
_: 1
|
|
9285
9285
|
}, 8, ["disabled"]),
|
|
@@ -9291,7 +9291,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9291
9291
|
}, {
|
|
9292
9292
|
default: _(() => [
|
|
9293
9293
|
C(at, { class: "w-4 h-4" }),
|
|
9294
|
-
le(" " +
|
|
9294
|
+
le(" " + W(a(Mn)), 1)
|
|
9295
9295
|
]),
|
|
9296
9296
|
_: 1
|
|
9297
9297
|
}, 8, ["disabled"]),
|
|
@@ -9303,7 +9303,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9303
9303
|
}, {
|
|
9304
9304
|
default: _(() => [
|
|
9305
9305
|
C(aa, { class: "w-4 h-4" }),
|
|
9306
|
-
le(" " +
|
|
9306
|
+
le(" " + W(a(o)("block.copyAsJson")), 1)
|
|
9307
9307
|
]),
|
|
9308
9308
|
_: 1
|
|
9309
9309
|
}),
|
|
@@ -9315,7 +9315,7 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9315
9315
|
}, {
|
|
9316
9316
|
default: _(() => [
|
|
9317
9317
|
C(la, { class: "w-4 h-4" }),
|
|
9318
|
-
le(" " +
|
|
9318
|
+
le(" " + W(a(o)("block.remove")), 1)
|
|
9319
9319
|
]),
|
|
9320
9320
|
_: 1
|
|
9321
9321
|
}, 8, ["disabled"])
|
|
@@ -9330,13 +9330,13 @@ const Jh = /* @__PURE__ */ T({
|
|
|
9330
9330
|
})) : X("", !0);
|
|
9331
9331
|
};
|
|
9332
9332
|
}
|
|
9333
|
-
}),
|
|
9333
|
+
}), Zh = {
|
|
9334
9334
|
viewBox: "0 0 24 24",
|
|
9335
9335
|
width: "1.2em",
|
|
9336
9336
|
height: "1.2em"
|
|
9337
9337
|
};
|
|
9338
|
-
function
|
|
9339
|
-
return g(), O("svg",
|
|
9338
|
+
function eg(e, t) {
|
|
9339
|
+
return g(), O("svg", Zh, [...t[0] || (t[0] = [
|
|
9340
9340
|
x("path", {
|
|
9341
9341
|
fill: "none",
|
|
9342
9342
|
stroke: "currentColor",
|
|
@@ -9347,13 +9347,13 @@ function Zh(e, t) {
|
|
|
9347
9347
|
}, null, -1)
|
|
9348
9348
|
])]);
|
|
9349
9349
|
}
|
|
9350
|
-
const
|
|
9350
|
+
const tg = Q({ name: "heroicons-lock-closed", render: eg }), og = {
|
|
9351
9351
|
viewBox: "0 0 24 24",
|
|
9352
9352
|
width: "1.2em",
|
|
9353
9353
|
height: "1.2em"
|
|
9354
9354
|
};
|
|
9355
|
-
function
|
|
9356
|
-
return g(), O("svg",
|
|
9355
|
+
function ng(e, t) {
|
|
9356
|
+
return g(), O("svg", og, [...t[0] || (t[0] = [
|
|
9357
9357
|
x("path", {
|
|
9358
9358
|
fill: "none",
|
|
9359
9359
|
stroke: "currentColor",
|
|
@@ -9364,13 +9364,13 @@ function og(e, t) {
|
|
|
9364
9364
|
}, null, -1)
|
|
9365
9365
|
])]);
|
|
9366
9366
|
}
|
|
9367
|
-
const
|
|
9367
|
+
const rg = Q({ name: "heroicons-squares-plus", render: ng }), sg = {
|
|
9368
9368
|
viewBox: "0 0 24 24",
|
|
9369
9369
|
width: "1.2em",
|
|
9370
9370
|
height: "1.2em"
|
|
9371
9371
|
};
|
|
9372
|
-
function
|
|
9373
|
-
return g(), O("svg",
|
|
9372
|
+
function ig(e, t) {
|
|
9373
|
+
return g(), O("svg", sg, [...t[0] || (t[0] = [
|
|
9374
9374
|
x("path", {
|
|
9375
9375
|
fill: "none",
|
|
9376
9376
|
stroke: "currentColor",
|
|
@@ -9381,13 +9381,13 @@ function sg(e, t) {
|
|
|
9381
9381
|
}, null, -1)
|
|
9382
9382
|
])]);
|
|
9383
9383
|
}
|
|
9384
|
-
const
|
|
9384
|
+
const ag = Q({ name: "heroicons-arrow-path", render: ig }), lg = {
|
|
9385
9385
|
viewBox: "0 0 24 24",
|
|
9386
9386
|
width: "1.2em",
|
|
9387
9387
|
height: "1.2em"
|
|
9388
9388
|
};
|
|
9389
|
-
function
|
|
9390
|
-
return g(), O("svg",
|
|
9389
|
+
function cg(e, t) {
|
|
9390
|
+
return g(), O("svg", lg, [...t[0] || (t[0] = [
|
|
9391
9391
|
x("path", {
|
|
9392
9392
|
fill: "none",
|
|
9393
9393
|
stroke: "currentColor",
|
|
@@ -9398,13 +9398,13 @@ function lg(e, t) {
|
|
|
9398
9398
|
}, null, -1)
|
|
9399
9399
|
])]);
|
|
9400
9400
|
}
|
|
9401
|
-
const
|
|
9401
|
+
const dg = Q({ name: "heroicons-cube", render: cg }), ug = {
|
|
9402
9402
|
viewBox: "0 0 24 24",
|
|
9403
9403
|
width: "1.2em",
|
|
9404
9404
|
height: "1.2em"
|
|
9405
9405
|
};
|
|
9406
|
-
function
|
|
9407
|
-
return g(), O("svg",
|
|
9406
|
+
function pg(e, t) {
|
|
9407
|
+
return g(), O("svg", ug, [...t[0] || (t[0] = [
|
|
9408
9408
|
x("path", {
|
|
9409
9409
|
fill: "none",
|
|
9410
9410
|
stroke: "currentColor",
|
|
@@ -9415,8 +9415,8 @@ function ug(e, t) {
|
|
|
9415
9415
|
}, null, -1)
|
|
9416
9416
|
])]);
|
|
9417
9417
|
}
|
|
9418
|
-
const
|
|
9419
|
-
var
|
|
9418
|
+
const hg = Q({ name: "heroicons-chevron-right", render: pg });
|
|
9419
|
+
var gg = Object.defineProperty, vn = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, vs = (e, t, o) => t in e ? gg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, to = (e, t) => {
|
|
9420
9420
|
for (var o in t || (t = {}))
|
|
9421
9421
|
Li.call(t, o) && vs(e, o, t[o]);
|
|
9422
9422
|
if (vn)
|
|
@@ -9433,20 +9433,20 @@ var hg = Object.defineProperty, vn = Object.getOwnPropertySymbols, Li = Object.p
|
|
|
9433
9433
|
return o;
|
|
9434
9434
|
};
|
|
9435
9435
|
const Gi = "[vue-draggable-plus]: ";
|
|
9436
|
-
function
|
|
9436
|
+
function fg(e) {
|
|
9437
9437
|
console.warn(Gi + e);
|
|
9438
9438
|
}
|
|
9439
|
-
function
|
|
9439
|
+
function mg(e) {
|
|
9440
9440
|
console.error(Gi + e);
|
|
9441
9441
|
}
|
|
9442
9442
|
function bs(e, t, o) {
|
|
9443
9443
|
return o >= 0 && o < e.length && e.splice(o, 0, e.splice(t, 1)[0]), e;
|
|
9444
9444
|
}
|
|
9445
|
-
function
|
|
9445
|
+
function vg(e) {
|
|
9446
9446
|
return e.replace(/-(\w)/g, (t, o) => o ? o.toUpperCase() : "");
|
|
9447
9447
|
}
|
|
9448
|
-
function
|
|
9449
|
-
return Object.keys(e).reduce((t, o) => (typeof e[o] < "u" && (t[
|
|
9448
|
+
function bg(e) {
|
|
9449
|
+
return Object.keys(e).reduce((t, o) => (typeof e[o] < "u" && (t[vg(o)] = e[o]), t), {});
|
|
9450
9450
|
}
|
|
9451
9451
|
function ys(e, t) {
|
|
9452
9452
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
@@ -9454,10 +9454,10 @@ function ys(e, t) {
|
|
|
9454
9454
|
function _s(e, t, o) {
|
|
9455
9455
|
return Array.isArray(e) && e.splice(t, 0, o), e;
|
|
9456
9456
|
}
|
|
9457
|
-
function
|
|
9457
|
+
function yg(e) {
|
|
9458
9458
|
return typeof e > "u";
|
|
9459
9459
|
}
|
|
9460
|
-
function
|
|
9460
|
+
function _g(e) {
|
|
9461
9461
|
return typeof e == "string";
|
|
9462
9462
|
}
|
|
9463
9463
|
function ks(e, t, o) {
|
|
@@ -9467,23 +9467,23 @@ function ks(e, t, o) {
|
|
|
9467
9467
|
function Xn(e) {
|
|
9468
9468
|
e.parentNode && e.parentNode.removeChild(e);
|
|
9469
9469
|
}
|
|
9470
|
-
function
|
|
9470
|
+
function kg(e, t = document) {
|
|
9471
9471
|
var o;
|
|
9472
9472
|
let n = null;
|
|
9473
|
-
return typeof t?.querySelector == "function" ? n = (o = t?.querySelector) == null ? void 0 : o.call(t, e) : n = document.querySelector(e), n ||
|
|
9473
|
+
return typeof t?.querySelector == "function" ? n = (o = t?.querySelector) == null ? void 0 : o.call(t, e) : n = document.querySelector(e), n || fg(`Element not found: ${e}`), n;
|
|
9474
9474
|
}
|
|
9475
|
-
function
|
|
9475
|
+
function Ig(e, t, o = null) {
|
|
9476
9476
|
return function(...n) {
|
|
9477
9477
|
return e.apply(o, n), t.apply(o, n);
|
|
9478
9478
|
};
|
|
9479
9479
|
}
|
|
9480
|
-
function
|
|
9480
|
+
function xg(e, t) {
|
|
9481
9481
|
const o = to({}, e);
|
|
9482
9482
|
return Object.keys(t).forEach((n) => {
|
|
9483
|
-
o[n] ? o[n] =
|
|
9483
|
+
o[n] ? o[n] = Ig(e[n], t[n]) : o[n] = t[n];
|
|
9484
9484
|
}), o;
|
|
9485
9485
|
}
|
|
9486
|
-
function
|
|
9486
|
+
function wg(e) {
|
|
9487
9487
|
return e instanceof HTMLElement;
|
|
9488
9488
|
}
|
|
9489
9489
|
function Is(e, t) {
|
|
@@ -9491,11 +9491,11 @@ function Is(e, t) {
|
|
|
9491
9491
|
t(o, e[o]);
|
|
9492
9492
|
});
|
|
9493
9493
|
}
|
|
9494
|
-
function
|
|
9494
|
+
function Cg(e) {
|
|
9495
9495
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
9496
9496
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
9497
9497
|
}
|
|
9498
|
-
const
|
|
9498
|
+
const Eg = Object.assign;
|
|
9499
9499
|
/**!
|
|
9500
9500
|
* Sortable 1.15.2
|
|
9501
9501
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -9516,7 +9516,7 @@ function ot(e) {
|
|
|
9516
9516
|
for (var t = 1; t < arguments.length; t++) {
|
|
9517
9517
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
9518
9518
|
t % 2 ? xs(Object(o), !0).forEach(function(n) {
|
|
9519
|
-
|
|
9519
|
+
Og(e, n, o[n]);
|
|
9520
9520
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : xs(Object(o)).forEach(function(n) {
|
|
9521
9521
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
9522
9522
|
});
|
|
@@ -9531,7 +9531,7 @@ function rn(e) {
|
|
|
9531
9531
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
9532
9532
|
}, rn(e);
|
|
9533
9533
|
}
|
|
9534
|
-
function
|
|
9534
|
+
function Og(e, t, o) {
|
|
9535
9535
|
return t in e ? Object.defineProperty(e, t, {
|
|
9536
9536
|
value: o,
|
|
9537
9537
|
enumerable: !0,
|
|
@@ -9549,7 +9549,7 @@ function ht() {
|
|
|
9549
9549
|
return e;
|
|
9550
9550
|
}, ht.apply(this, arguments);
|
|
9551
9551
|
}
|
|
9552
|
-
function
|
|
9552
|
+
function Tg(e, t) {
|
|
9553
9553
|
if (e == null)
|
|
9554
9554
|
return {};
|
|
9555
9555
|
var o = {}, n = Object.keys(e), r, s;
|
|
@@ -9557,10 +9557,10 @@ function Og(e, t) {
|
|
|
9557
9557
|
r = n[s], !(t.indexOf(r) >= 0) && (o[r] = e[r]);
|
|
9558
9558
|
return o;
|
|
9559
9559
|
}
|
|
9560
|
-
function
|
|
9560
|
+
function Pg(e, t) {
|
|
9561
9561
|
if (e == null)
|
|
9562
9562
|
return {};
|
|
9563
|
-
var o =
|
|
9563
|
+
var o = Tg(e, t), n, r;
|
|
9564
9564
|
if (Object.getOwnPropertySymbols) {
|
|
9565
9565
|
var s = Object.getOwnPropertySymbols(e);
|
|
9566
9566
|
for (r = 0; r < s.length; r++)
|
|
@@ -9568,20 +9568,20 @@ function Tg(e, t) {
|
|
|
9568
9568
|
}
|
|
9569
9569
|
return o;
|
|
9570
9570
|
}
|
|
9571
|
-
var
|
|
9571
|
+
var Bg = "1.15.2";
|
|
9572
9572
|
function pt(e) {
|
|
9573
9573
|
if (typeof window < "u" && window.navigator)
|
|
9574
9574
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
9575
9575
|
}
|
|
9576
|
-
var mt = pt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Go = pt(/Edge/i), ws = pt(/firefox/i), Oo = pt(/safari/i) && !pt(/chrome/i) && !pt(/android/i), Ui = pt(/iP(ad|od|hone)/i), ji = pt(/chrome/i) && pt(/android/i),
|
|
9576
|
+
var mt = pt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Go = pt(/Edge/i), ws = pt(/firefox/i), Oo = pt(/safari/i) && !pt(/chrome/i) && !pt(/android/i), Ui = pt(/iP(ad|od|hone)/i), ji = pt(/chrome/i) && pt(/android/i), zi = {
|
|
9577
9577
|
capture: !1,
|
|
9578
9578
|
passive: !1
|
|
9579
9579
|
};
|
|
9580
9580
|
function te(e, t, o) {
|
|
9581
|
-
e.addEventListener(t, o, !mt &&
|
|
9581
|
+
e.addEventListener(t, o, !mt && zi);
|
|
9582
9582
|
}
|
|
9583
9583
|
function ee(e, t, o) {
|
|
9584
|
-
e.removeEventListener(t, o, !mt &&
|
|
9584
|
+
e.removeEventListener(t, o, !mt && zi);
|
|
9585
9585
|
}
|
|
9586
9586
|
function bn(e, t) {
|
|
9587
9587
|
if (t) {
|
|
@@ -9599,7 +9599,7 @@ function bn(e, t) {
|
|
|
9599
9599
|
return !1;
|
|
9600
9600
|
}
|
|
9601
9601
|
}
|
|
9602
|
-
function
|
|
9602
|
+
function Sg(e) {
|
|
9603
9603
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
9604
9604
|
}
|
|
9605
9605
|
function Xe(e, t, o, n) {
|
|
@@ -9610,7 +9610,7 @@ function Xe(e, t, o, n) {
|
|
|
9610
9610
|
return e;
|
|
9611
9611
|
if (e === o)
|
|
9612
9612
|
break;
|
|
9613
|
-
} while (e =
|
|
9613
|
+
} while (e = Sg(e));
|
|
9614
9614
|
}
|
|
9615
9615
|
return null;
|
|
9616
9616
|
}
|
|
@@ -9644,7 +9644,7 @@ function ro(e, t) {
|
|
|
9644
9644
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
9645
9645
|
return r && new r(o);
|
|
9646
9646
|
}
|
|
9647
|
-
function
|
|
9647
|
+
function Wi(e, t, o) {
|
|
9648
9648
|
if (e) {
|
|
9649
9649
|
var n = e.getElementsByTagName(t), r = 0, s = n.length;
|
|
9650
9650
|
if (o)
|
|
@@ -9710,7 +9710,7 @@ function jr(e, t) {
|
|
|
9710
9710
|
o = o.previousElementSibling;
|
|
9711
9711
|
return o || null;
|
|
9712
9712
|
}
|
|
9713
|
-
function
|
|
9713
|
+
function We(e, t) {
|
|
9714
9714
|
var o = 0;
|
|
9715
9715
|
if (!e || !e.parentNode)
|
|
9716
9716
|
return -1;
|
|
@@ -9727,7 +9727,7 @@ function Os(e) {
|
|
|
9727
9727
|
} while (e !== n && (e = e.parentNode));
|
|
9728
9728
|
return [t, o];
|
|
9729
9729
|
}
|
|
9730
|
-
function
|
|
9730
|
+
function $g(e, t) {
|
|
9731
9731
|
for (var o in e)
|
|
9732
9732
|
if (e.hasOwnProperty(o)) {
|
|
9733
9733
|
for (var n in t)
|
|
@@ -9754,7 +9754,7 @@ function It(e, t) {
|
|
|
9754
9754
|
while (o = o.parentNode);
|
|
9755
9755
|
return tt();
|
|
9756
9756
|
}
|
|
9757
|
-
function
|
|
9757
|
+
function Rg(e, t) {
|
|
9758
9758
|
if (e && t)
|
|
9759
9759
|
for (var o in t)
|
|
9760
9760
|
t.hasOwnProperty(o) && (e[o] = t[o]);
|
|
@@ -9774,7 +9774,7 @@ function Ki(e, t) {
|
|
|
9774
9774
|
}
|
|
9775
9775
|
};
|
|
9776
9776
|
}
|
|
9777
|
-
function
|
|
9777
|
+
function Dg() {
|
|
9778
9778
|
clearTimeout(To), To = void 0;
|
|
9779
9779
|
}
|
|
9780
9780
|
function qi(e, t, o) {
|
|
@@ -9795,7 +9795,7 @@ function Yi(e, t, o) {
|
|
|
9795
9795
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
9796
9796
|
}
|
|
9797
9797
|
var Ue = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
9798
|
-
function
|
|
9798
|
+
function Mg() {
|
|
9799
9799
|
var e = [], t;
|
|
9800
9800
|
return {
|
|
9801
9801
|
captureAnimationState: function() {
|
|
@@ -9821,7 +9821,7 @@ function Dg() {
|
|
|
9821
9821
|
e.push(o);
|
|
9822
9822
|
},
|
|
9823
9823
|
removeAnimationState: function(o) {
|
|
9824
|
-
e.splice(
|
|
9824
|
+
e.splice($g(e, {
|
|
9825
9825
|
target: o
|
|
9826
9826
|
}), 1);
|
|
9827
9827
|
},
|
|
@@ -9835,7 +9835,7 @@ function Dg() {
|
|
|
9835
9835
|
e.forEach(function(i) {
|
|
9836
9836
|
var d = 0, l = i.target, c = l.fromRect, u = ye(l), m = l.prevFromRect, h = l.prevToRect, p = i.rect, v = ro(l, !0);
|
|
9837
9837
|
v && (u.top -= v.f, u.left -= v.e), l.toRect = u, l.thisAnimationDuration && Yn(m, u) && !Yn(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
9838
|
-
(p.top - u.top) / (p.left - u.left) === (c.top - u.top) / (c.left - u.left) && (d =
|
|
9838
|
+
(p.top - u.top) / (p.left - u.left) === (c.top - u.top) / (c.left - u.left) && (d = Ng(p, m, h, n.options)), Yn(u, c) || (l.prevFromRect = c, l.prevToRect = u, d || (d = n.options.animation), n.animate(l, p, u, d)), d && (r = !0, s = Math.max(s, d), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
|
|
9839
9839
|
l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
|
|
9840
9840
|
}, d), l.thisAnimationDuration = d);
|
|
9841
9841
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -9846,17 +9846,17 @@ function Dg() {
|
|
|
9846
9846
|
if (s) {
|
|
9847
9847
|
K(o, "transition", ""), K(o, "transform", "");
|
|
9848
9848
|
var i = ro(this.el), d = i && i.a, l = i && i.d, c = (n.left - r.left) / (d || 1), u = (n.top - r.top) / (l || 1);
|
|
9849
|
-
o.animatingX = !!c, o.animatingY = !!u, K(o, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy =
|
|
9849
|
+
o.animatingX = !!c, o.animatingY = !!u, K(o, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Ag(o), K(o, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), K(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
9850
9850
|
K(o, "transition", ""), K(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
9851
9851
|
}, s);
|
|
9852
9852
|
}
|
|
9853
9853
|
}
|
|
9854
9854
|
};
|
|
9855
9855
|
}
|
|
9856
|
-
function
|
|
9856
|
+
function Ag(e) {
|
|
9857
9857
|
return e.offsetWidth;
|
|
9858
9858
|
}
|
|
9859
|
-
function
|
|
9859
|
+
function Ng(e, t, o, n) {
|
|
9860
9860
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) * n.animation;
|
|
9861
9861
|
}
|
|
9862
9862
|
var Jt = [], Jn = {
|
|
@@ -9911,7 +9911,7 @@ var Jt = [], Jn = {
|
|
|
9911
9911
|
}), n;
|
|
9912
9912
|
}
|
|
9913
9913
|
};
|
|
9914
|
-
function
|
|
9914
|
+
function Fg(e) {
|
|
9915
9915
|
var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl, s = e.cloneEl, i = e.toEl, d = e.fromEl, l = e.oldIndex, c = e.newIndex, u = e.oldDraggableIndex, m = e.newDraggableIndex, h = e.originalEvent, p = e.putSortable, v = e.extraEventProperties;
|
|
9916
9916
|
if (t = t || o && o[Ue], !!t) {
|
|
9917
9917
|
var k, E = t.options, B = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
@@ -9925,8 +9925,8 @@ function Ng(e) {
|
|
|
9925
9925
|
o && o.dispatchEvent(k), E[B] && E[B].call(t, k);
|
|
9926
9926
|
}
|
|
9927
9927
|
}
|
|
9928
|
-
var
|
|
9929
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = o.evt, r =
|
|
9928
|
+
var Lg = ["evt"], Me = function(e, t) {
|
|
9929
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = o.evt, r = Pg(o, Lg);
|
|
9930
9930
|
Uo.pluginEvent.bind(q)(e, t, ot({
|
|
9931
9931
|
dragEl: N,
|
|
9932
9932
|
parentEl: he,
|
|
@@ -9962,7 +9962,7 @@ var Fg = ["evt"], Me = function(e, t) {
|
|
|
9962
9962
|
}, r));
|
|
9963
9963
|
};
|
|
9964
9964
|
function $e(e) {
|
|
9965
|
-
|
|
9965
|
+
Fg(ot({
|
|
9966
9966
|
putSortable: we,
|
|
9967
9967
|
cloneEl: pe,
|
|
9968
9968
|
targetEl: N,
|
|
@@ -9973,7 +9973,7 @@ function $e(e) {
|
|
|
9973
9973
|
newDraggableIndex: _t
|
|
9974
9974
|
}, e));
|
|
9975
9975
|
}
|
|
9976
|
-
var N, he, Y, ce, Mt, sn, pe, kt, oo, Ge, Po, _t, Zo, we, eo = !1, yn = !1, _n = [], Rt, qe, Qn, Zn, Ts, Ps, Io, Qt, Bo, So = !1, en = !1, an, Te, er = [], yr = !1, kn = [], $n = typeof document < "u", tn = Ui, Bs = Go || mt ? "cssFloat" : "float",
|
|
9976
|
+
var N, he, Y, ce, Mt, sn, pe, kt, oo, Ge, Po, _t, Zo, we, eo = !1, yn = !1, _n = [], Rt, qe, Qn, Zn, Ts, Ps, Io, Qt, Bo, So = !1, en = !1, an, Te, er = [], yr = !1, kn = [], $n = typeof document < "u", tn = Ui, Bs = Go || mt ? "cssFloat" : "float", Vg = $n && !ji && !Ui && "draggable" in document.createElement("div"), Ji = (function() {
|
|
9977
9977
|
if ($n) {
|
|
9978
9978
|
if (mt)
|
|
9979
9979
|
return !1;
|
|
@@ -9991,10 +9991,10 @@ var N, he, Y, ce, Mt, sn, pe, kt, oo, Ge, Po, _t, Zo, we, eo = !1, yn = !1, _n =
|
|
|
9991
9991
|
return s && (d.clear === "both" || d.clear === u) ? "vertical" : "horizontal";
|
|
9992
9992
|
}
|
|
9993
9993
|
return r && (i.display === "block" || i.display === "flex" || i.display === "table" || i.display === "grid" || l >= n && o[Bs] === "none" || s && o[Bs] === "none" && l + c > n) ? "vertical" : "horizontal";
|
|
9994
|
-
},
|
|
9994
|
+
}, Hg = function(e, t, o) {
|
|
9995
9995
|
var n = o ? e.left : e.top, r = o ? e.right : e.bottom, s = o ? e.width : e.height, i = o ? t.left : t.top, d = o ? t.right : t.bottom, l = o ? t.width : t.height;
|
|
9996
9996
|
return n === i || r === d || n + s / 2 === i + l / 2;
|
|
9997
|
-
},
|
|
9997
|
+
}, Gg = function(e, t) {
|
|
9998
9998
|
var o;
|
|
9999
9999
|
return _n.some(function(n) {
|
|
10000
10000
|
var r = n[Ue].options.emptyInsertThreshold;
|
|
@@ -10036,7 +10036,7 @@ $n && !ji && document.addEventListener("click", function(e) {
|
|
|
10036
10036
|
var Dt = function(e) {
|
|
10037
10037
|
if (N) {
|
|
10038
10038
|
e = e.touches ? e.touches[0] : e;
|
|
10039
|
-
var t =
|
|
10039
|
+
var t = Gg(e.clientX, e.clientY);
|
|
10040
10040
|
if (t) {
|
|
10041
10041
|
var o = {};
|
|
10042
10042
|
for (var n in e)
|
|
@@ -10044,7 +10044,7 @@ var Dt = function(e) {
|
|
|
10044
10044
|
o.target = o.rootEl = t, o.preventDefault = void 0, o.stopPropagation = void 0, t[Ue]._onDragOver(o);
|
|
10045
10045
|
}
|
|
10046
10046
|
}
|
|
10047
|
-
},
|
|
10047
|
+
}, Ug = function(e) {
|
|
10048
10048
|
N && N.parentNode[Ue]._isOutsideThisEl(e.target);
|
|
10049
10049
|
};
|
|
10050
10050
|
function q(e, t) {
|
|
@@ -10102,7 +10102,7 @@ function q(e, t) {
|
|
|
10102
10102
|
Zi(t);
|
|
10103
10103
|
for (var r in this)
|
|
10104
10104
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
10105
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
10105
|
+
this.nativeDraggable = t.forceFallback ? !1 : Vg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? te(e, "pointerdown", this._onTapStart) : (te(e, "mousedown", this._onTapStart), te(e, "touchstart", this._onTapStart)), this.nativeDraggable && (te(e, "dragover", this), te(e, "dragenter", this)), _n.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ht(this, Mg());
|
|
10106
10106
|
}
|
|
10107
10107
|
q.prototype = /** @lends Sortable.prototype */
|
|
10108
10108
|
{
|
|
@@ -10116,8 +10116,8 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10116
10116
|
_onTapStart: function(e) {
|
|
10117
10117
|
if (e.cancelable) {
|
|
10118
10118
|
var t = this, o = this.el, n = this.options, r = n.preventOnFilter, s = e.type, i = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, d = (i || e).target, l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || d, c = n.filter;
|
|
10119
|
-
if (
|
|
10120
|
-
if (oo =
|
|
10119
|
+
if (Jg(o), !N && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || n.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Oo && d && d.tagName.toUpperCase() === "SELECT") && (d = Xe(d, n.draggable, o, !1), !(d && d.animated) && sn !== d)) {
|
|
10120
|
+
if (oo = We(d), Po = We(d, n.draggable), typeof c == "function") {
|
|
10121
10121
|
if (c.call(this, e, d, this)) {
|
|
10122
10122
|
$e({
|
|
10123
10123
|
sortable: t,
|
|
@@ -10172,7 +10172,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10172
10172
|
originalEvent: e
|
|
10173
10173
|
}), He(N, s.chosenClass, !0);
|
|
10174
10174
|
}, s.ignore.split(",").forEach(function(c) {
|
|
10175
|
-
|
|
10175
|
+
Wi(N, c.trim(), tr);
|
|
10176
10176
|
}), te(i, "dragover", Dt), te(i, "mousemove", Dt), te(i, "touchmove", Dt), te(i, "mouseup", n._onDrop), te(i, "touchend", n._onDrop), te(i, "touchcancel", n._onDrop), ws && this.nativeDraggable && (this.options.touchStartThreshold = 4, N.draggable = !0), Me("delayStart", this, {
|
|
10177
10177
|
evt: e
|
|
10178
10178
|
}), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Go || mt))) {
|
|
@@ -10209,7 +10209,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10209
10209
|
if (eo = !1, ce && N) {
|
|
10210
10210
|
Me("dragStarted", this, {
|
|
10211
10211
|
evt: t
|
|
10212
|
-
}), this.nativeDraggable && te(document, "dragover",
|
|
10212
|
+
}), this.nativeDraggable && te(document, "dragover", Ug);
|
|
10213
10213
|
var o = this.options;
|
|
10214
10214
|
!e && He(N, o.dragClass, !1), He(N, o.ghostClass, !0), q.active = this, e && this._appendGhost(), $e({
|
|
10215
10215
|
sortable: this,
|
|
@@ -10324,7 +10324,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10324
10324
|
}), p !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === N && !N.animated || o === t && !o.animated) && (Qt = null), !i.dragoverBubble && !e.rootEl && o !== document && (N.parentNode[Ue]._isOutsideThisEl(e.target), !ae && Dt(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
10325
10325
|
}
|
|
10326
10326
|
function H() {
|
|
10327
|
-
Ge =
|
|
10327
|
+
Ge = We(N), _t = We(N, i.draggable), $e({
|
|
10328
10328
|
sortable: p,
|
|
10329
10329
|
name: "change",
|
|
10330
10330
|
toEl: t,
|
|
@@ -10343,7 +10343,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10343
10343
|
if (s)
|
|
10344
10344
|
return he = ce, E(), this._hideClone(), k("revert"), q.eventCanceled || (Mt ? ce.insertBefore(N, Mt) : ce.appendChild(N)), B(!0);
|
|
10345
10345
|
var D = jr(t, i.draggable);
|
|
10346
|
-
if (!D ||
|
|
10346
|
+
if (!D || Kg(e, h, this) && !D.animated) {
|
|
10347
10347
|
if (D === N)
|
|
10348
10348
|
return B(!1);
|
|
10349
10349
|
if (D && t === e.target && (o = D), o && (r = ye(o)), on(ce, t, N, n, o, r, e, !!o) !== !1)
|
|
@@ -10356,11 +10356,11 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10356
10356
|
return E(), t.insertBefore(N, f), he = t, H(), B(!0);
|
|
10357
10357
|
} else if (o.parentNode === t) {
|
|
10358
10358
|
r = ye(o);
|
|
10359
|
-
var P = 0, $, R = N.parentNode !== t, S = !
|
|
10360
|
-
Qt !== o && ($ = r[L], So = !1, en = !S && i.invertSwap || R), P =
|
|
10359
|
+
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"), U = V ? V.scrollTop : void 0;
|
|
10360
|
+
Qt !== o && ($ = r[L], So = !1, en = !S && i.invertSwap || R), P = qg(e, o, r, h, S ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, en, Qt === o);
|
|
10361
10361
|
var w;
|
|
10362
10362
|
if (P !== 0) {
|
|
10363
|
-
var b =
|
|
10363
|
+
var b = We(N);
|
|
10364
10364
|
do
|
|
10365
10365
|
b -= P, w = he.children[b];
|
|
10366
10366
|
while (w && (K(w, "display") === "none" || w === Y));
|
|
@@ -10368,11 +10368,11 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10368
10368
|
if (P === 0 || w === o)
|
|
10369
10369
|
return B(!1);
|
|
10370
10370
|
Qt = o, Bo = P;
|
|
10371
|
-
var A = o.nextElementSibling,
|
|
10372
|
-
|
|
10373
|
-
var Z = on(ce, t, N, n, o, r, e,
|
|
10371
|
+
var A = o.nextElementSibling, z = !1;
|
|
10372
|
+
z = P === 1;
|
|
10373
|
+
var Z = on(ce, t, N, n, o, r, e, z);
|
|
10374
10374
|
if (Z !== !1)
|
|
10375
|
-
return (Z === 1 || Z === -1) && (
|
|
10375
|
+
return (Z === 1 || Z === -1) && (z = Z === 1), yr = !0, setTimeout(zg, 30), E(), z && !A ? t.appendChild(N) : o.parentNode.insertBefore(N, z ? A : o), V && qi(V, 0, U - V.scrollTop), he = N.parentNode, $ !== void 0 && !en && (an = Math.abs($ - ye(o)[L])), H(), B(!0);
|
|
10376
10376
|
}
|
|
10377
10377
|
if (t.contains(N))
|
|
10378
10378
|
return B(!1);
|
|
@@ -10389,9 +10389,9 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10389
10389
|
},
|
|
10390
10390
|
_onDrop: function(e) {
|
|
10391
10391
|
var t = this.el, o = this.options;
|
|
10392
|
-
if (Ge =
|
|
10392
|
+
if (Ge = We(N), _t = We(N, o.draggable), Me("drop", this, {
|
|
10393
10393
|
evt: e
|
|
10394
|
-
}), he = N && N.parentNode, Ge =
|
|
10394
|
+
}), he = N && N.parentNode, Ge = We(N), _t = We(N, o.draggable), q.eventCanceled) {
|
|
10395
10395
|
this._nulling();
|
|
10396
10396
|
return;
|
|
10397
10397
|
}
|
|
@@ -10454,7 +10454,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10454
10454
|
break;
|
|
10455
10455
|
case "dragenter":
|
|
10456
10456
|
case "dragover":
|
|
10457
|
-
N && (this._onDragOver(e),
|
|
10457
|
+
N && (this._onDragOver(e), jg(e));
|
|
10458
10458
|
break;
|
|
10459
10459
|
case "selectstart":
|
|
10460
10460
|
e.preventDefault();
|
|
@@ -10467,7 +10467,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10467
10467
|
*/
|
|
10468
10468
|
toArray: function() {
|
|
10469
10469
|
for (var e = [], t, o = this.el.children, n = 0, r = o.length, s = this.options; n < r; n++)
|
|
10470
|
-
t = o[n], Xe(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) ||
|
|
10470
|
+
t = o[n], Xe(t, s.draggable, this.el, !1) && e.push(t.getAttribute(s.dataIdAttr) || Yg(t));
|
|
10471
10471
|
return e;
|
|
10472
10472
|
},
|
|
10473
10473
|
/**
|
|
@@ -10541,7 +10541,7 @@ q.prototype = /** @lends Sortable.prototype */
|
|
|
10541
10541
|
}
|
|
10542
10542
|
}
|
|
10543
10543
|
};
|
|
10544
|
-
function
|
|
10544
|
+
function jg(e) {
|
|
10545
10545
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
10546
10546
|
}
|
|
10547
10547
|
function on(e, t, o, n, r, s, i, d) {
|
|
@@ -10554,18 +10554,18 @@ function on(e, t, o, n, r, s, i, d) {
|
|
|
10554
10554
|
function tr(e) {
|
|
10555
10555
|
e.draggable = !1;
|
|
10556
10556
|
}
|
|
10557
|
-
function
|
|
10557
|
+
function zg() {
|
|
10558
10558
|
yr = !1;
|
|
10559
10559
|
}
|
|
10560
10560
|
function Wg(e, t, o) {
|
|
10561
10561
|
var n = ye(so(o.el, 0, o.options, !0)), r = Yi(o.el, o.options, Y), s = 10;
|
|
10562
10562
|
return t ? e.clientX < r.left - s || e.clientY < n.top && e.clientX < n.right : e.clientY < r.top - s || e.clientY < n.bottom && e.clientX < n.left;
|
|
10563
10563
|
}
|
|
10564
|
-
function
|
|
10564
|
+
function Kg(e, t, o) {
|
|
10565
10565
|
var n = ye(jr(o.el, o.options.draggable)), r = Yi(o.el, o.options, Y), s = 10;
|
|
10566
10566
|
return t ? e.clientX > r.right + s || e.clientY > n.bottom && e.clientX > n.left : e.clientY > r.bottom + s || e.clientX > n.right && e.clientY > n.top;
|
|
10567
10567
|
}
|
|
10568
|
-
function
|
|
10568
|
+
function qg(e, t, o, n, r, s, i, d) {
|
|
10569
10569
|
var l = n ? e.clientY : e.clientX, c = n ? o.height : o.width, u = n ? o.top : o.left, m = n ? o.bottom : o.right, h = !1;
|
|
10570
10570
|
if (!i) {
|
|
10571
10571
|
if (d && an < c * r) {
|
|
@@ -10574,19 +10574,19 @@ function Kg(e, t, o, n, r, s, i, d) {
|
|
|
10574
10574
|
else if (Bo === 1 ? l < u + an : l > m - an)
|
|
10575
10575
|
return -Bo;
|
|
10576
10576
|
} else if (l > u + c * (1 - r) / 2 && l < m - c * (1 - r) / 2)
|
|
10577
|
-
return
|
|
10577
|
+
return Xg(t);
|
|
10578
10578
|
}
|
|
10579
10579
|
return h = h || i, h && (l < u + c * s / 2 || l > m - c * s / 2) ? l > u + c / 2 ? 1 : -1 : 0;
|
|
10580
10580
|
}
|
|
10581
|
-
function qg(e) {
|
|
10582
|
-
return ze(N) < ze(e) ? 1 : -1;
|
|
10583
|
-
}
|
|
10584
10581
|
function Xg(e) {
|
|
10582
|
+
return We(N) < We(e) ? 1 : -1;
|
|
10583
|
+
}
|
|
10584
|
+
function Yg(e) {
|
|
10585
10585
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, o = t.length, n = 0; o--; )
|
|
10586
10586
|
n += t.charCodeAt(o);
|
|
10587
10587
|
return n.toString(36);
|
|
10588
10588
|
}
|
|
10589
|
-
function
|
|
10589
|
+
function Jg(e) {
|
|
10590
10590
|
kn.length = 0;
|
|
10591
10591
|
for (var t = e.getElementsByTagName("input"), o = t.length; o--; ) {
|
|
10592
10592
|
var n = t[o];
|
|
@@ -10606,16 +10606,16 @@ q.utils = {
|
|
|
10606
10606
|
on: te,
|
|
10607
10607
|
off: ee,
|
|
10608
10608
|
css: K,
|
|
10609
|
-
find:
|
|
10609
|
+
find: Wi,
|
|
10610
10610
|
is: function(e, t) {
|
|
10611
10611
|
return !!Xe(e, t, e, !1);
|
|
10612
10612
|
},
|
|
10613
|
-
extend:
|
|
10613
|
+
extend: Rg,
|
|
10614
10614
|
throttle: Ki,
|
|
10615
10615
|
closest: Xe,
|
|
10616
10616
|
toggleClass: He,
|
|
10617
10617
|
clone: Xi,
|
|
10618
|
-
index:
|
|
10618
|
+
index: We,
|
|
10619
10619
|
nextTick: ln,
|
|
10620
10620
|
cancelNextTick: _r,
|
|
10621
10621
|
detectDirection: Qi,
|
|
@@ -10636,9 +10636,9 @@ q.mount = function() {
|
|
|
10636
10636
|
q.create = function(e, t) {
|
|
10637
10637
|
return new q(e, t);
|
|
10638
10638
|
};
|
|
10639
|
-
q.version =
|
|
10639
|
+
q.version = Bg;
|
|
10640
10640
|
var be = [], xo, kr, Ir = !1, or, nr, In, wo;
|
|
10641
|
-
function
|
|
10641
|
+
function Qg() {
|
|
10642
10642
|
function e() {
|
|
10643
10643
|
this.defaults = {
|
|
10644
10644
|
scroll: !0,
|
|
@@ -10660,7 +10660,7 @@ function Jg() {
|
|
|
10660
10660
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
10661
10661
|
},
|
|
10662
10662
|
drop: function() {
|
|
10663
|
-
this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), Ss(), cn(),
|
|
10663
|
+
this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), Ss(), cn(), Dg();
|
|
10664
10664
|
},
|
|
10665
10665
|
nulling: function() {
|
|
10666
10666
|
In = kr = xo = Ir = wo = or = nr = null, be.length = 0;
|
|
@@ -10712,8 +10712,8 @@ var rr = Ki(function(e, t, o, n) {
|
|
|
10712
10712
|
be[A] || (be[A] = {});
|
|
10713
10713
|
(be[m].vx != w || be[m].vy != b || be[m].el !== p) && (be[m].el = p, be[m].vx = w, be[m].vy = b, clearInterval(be[m].pid), (w != 0 || b != 0) && (c = !0, be[m].pid = setInterval((function() {
|
|
10714
10714
|
n && this.layer === 0 && q.active._onTouchMove(In);
|
|
10715
|
-
var
|
|
10716
|
-
typeof u == "function" && u.call(q.dragged.parentNode[Ue], Z,
|
|
10715
|
+
var z = be[this.layer].vy ? be[this.layer].vy * d : 0, Z = be[this.layer].vx ? be[this.layer].vx * d : 0;
|
|
10716
|
+
typeof u == "function" && u.call(q.dragged.parentNode[Ue], Z, z, e, In, be[this.layer].el) !== "continue" || qi(be[this.layer].el, Z, z);
|
|
10717
10717
|
}).bind({
|
|
10718
10718
|
layer: m
|
|
10719
10719
|
}), 24))), m++;
|
|
@@ -10732,9 +10732,9 @@ var rr = Ki(function(e, t, o, n) {
|
|
|
10732
10732
|
}));
|
|
10733
10733
|
}
|
|
10734
10734
|
};
|
|
10735
|
-
function
|
|
10735
|
+
function zr() {
|
|
10736
10736
|
}
|
|
10737
|
-
|
|
10737
|
+
zr.prototype = {
|
|
10738
10738
|
startIndex: null,
|
|
10739
10739
|
dragStart: function(e) {
|
|
10740
10740
|
var t = e.oldDraggableIndex;
|
|
@@ -10748,44 +10748,44 @@ Wr.prototype = {
|
|
|
10748
10748
|
},
|
|
10749
10749
|
drop: oa
|
|
10750
10750
|
};
|
|
10751
|
-
ht(
|
|
10751
|
+
ht(zr, {
|
|
10752
10752
|
pluginName: "revertOnSpill"
|
|
10753
10753
|
});
|
|
10754
|
-
function
|
|
10754
|
+
function Wr() {
|
|
10755
10755
|
}
|
|
10756
|
-
|
|
10756
|
+
Wr.prototype = {
|
|
10757
10757
|
onSpill: function(e) {
|
|
10758
10758
|
var t = e.dragEl, o = e.putSortable, n = o || this.sortable;
|
|
10759
10759
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
10760
10760
|
},
|
|
10761
10761
|
drop: oa
|
|
10762
10762
|
};
|
|
10763
|
-
ht(
|
|
10763
|
+
ht(Wr, {
|
|
10764
10764
|
pluginName: "removeOnSpill"
|
|
10765
10765
|
});
|
|
10766
|
-
q.mount(new
|
|
10767
|
-
q.mount(
|
|
10768
|
-
function
|
|
10766
|
+
q.mount(new Qg());
|
|
10767
|
+
q.mount(Wr, zr);
|
|
10768
|
+
function Zg(e) {
|
|
10769
10769
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
10770
10770
|
}
|
|
10771
|
-
function
|
|
10771
|
+
function ef(e) {
|
|
10772
10772
|
Cr() && Mo(e);
|
|
10773
10773
|
}
|
|
10774
|
-
function
|
|
10774
|
+
function tf(e) {
|
|
10775
10775
|
Cr() ? nt(e) : ao(e);
|
|
10776
10776
|
}
|
|
10777
10777
|
let na = null, ra = null;
|
|
10778
10778
|
function $s(e = null, t = null) {
|
|
10779
10779
|
na = e, ra = t;
|
|
10780
10780
|
}
|
|
10781
|
-
function
|
|
10781
|
+
function of() {
|
|
10782
10782
|
return {
|
|
10783
10783
|
data: na,
|
|
10784
10784
|
clonedData: ra
|
|
10785
10785
|
};
|
|
10786
10786
|
}
|
|
10787
10787
|
const Rs = Symbol("cloneElement");
|
|
10788
|
-
function
|
|
10788
|
+
function nf(...e) {
|
|
10789
10789
|
var t, o;
|
|
10790
10790
|
const n = (t = Cr()) == null ? void 0 : t.proxy;
|
|
10791
10791
|
let r = null;
|
|
@@ -10795,7 +10795,7 @@ function of(...e) {
|
|
|
10795
10795
|
let l = null;
|
|
10796
10796
|
const {
|
|
10797
10797
|
immediate: c = !0,
|
|
10798
|
-
clone: u =
|
|
10798
|
+
clone: u = Zg,
|
|
10799
10799
|
customUpdate: m
|
|
10800
10800
|
} = (o = a(d)) != null ? o : {};
|
|
10801
10801
|
function h(S) {
|
|
@@ -10807,7 +10807,7 @@ function of(...e) {
|
|
|
10807
10807
|
}
|
|
10808
10808
|
function p(S) {
|
|
10809
10809
|
const L = S.item[Rs];
|
|
10810
|
-
if (!
|
|
10810
|
+
if (!yg(L)) {
|
|
10811
10811
|
if (Xn(S.item), xt(i)) {
|
|
10812
10812
|
const V = [...a(i)];
|
|
10813
10813
|
i.value = _s(V, S.newDraggableIndex, L);
|
|
@@ -10823,8 +10823,8 @@ function of(...e) {
|
|
|
10823
10823
|
return;
|
|
10824
10824
|
}
|
|
10825
10825
|
if (xt(i)) {
|
|
10826
|
-
const
|
|
10827
|
-
i.value = ys(
|
|
10826
|
+
const z = [...a(i)];
|
|
10827
|
+
i.value = ys(z, w);
|
|
10828
10828
|
return;
|
|
10829
10829
|
}
|
|
10830
10830
|
ys(a(i), w);
|
|
@@ -10852,16 +10852,16 @@ function of(...e) {
|
|
|
10852
10852
|
const A = L === V && U === w;
|
|
10853
10853
|
try {
|
|
10854
10854
|
if (A) {
|
|
10855
|
-
let
|
|
10855
|
+
let z = null;
|
|
10856
10856
|
r?.some((Z, ae) => {
|
|
10857
|
-
if (
|
|
10858
|
-
return U.insertBefore(
|
|
10857
|
+
if (z && r?.length !== w.childNodes.length)
|
|
10858
|
+
return U.insertBefore(z, Z.nextSibling), !0;
|
|
10859
10859
|
const Ve = w.childNodes[ae];
|
|
10860
|
-
|
|
10860
|
+
z = w?.replaceChild(Z, Ve);
|
|
10861
10861
|
});
|
|
10862
10862
|
}
|
|
10863
|
-
} catch (
|
|
10864
|
-
b =
|
|
10863
|
+
} catch (z) {
|
|
10864
|
+
b = z;
|
|
10865
10865
|
} finally {
|
|
10866
10866
|
r = null;
|
|
10867
10867
|
}
|
|
@@ -10879,17 +10879,17 @@ function of(...e) {
|
|
|
10879
10879
|
};
|
|
10880
10880
|
function H(S) {
|
|
10881
10881
|
const L = a(s);
|
|
10882
|
-
return S || (S =
|
|
10882
|
+
return S || (S = _g(L) ? kg(L, n?.$el) : L), S && !wg(S) && (S = S.$el), S || mg("Root element not found"), S;
|
|
10883
10883
|
}
|
|
10884
10884
|
function D() {
|
|
10885
10885
|
var S;
|
|
10886
10886
|
const L = (S = a(d)) != null ? S : {}, { immediate: V, clone: U } = L, w = Hi(L, ["immediate", "clone"]);
|
|
10887
10887
|
return Is(w, (b, A) => {
|
|
10888
|
-
|
|
10889
|
-
const ae =
|
|
10890
|
-
return
|
|
10888
|
+
Cg(b) && (w[b] = (z, ...Z) => {
|
|
10889
|
+
const ae = of();
|
|
10890
|
+
return Eg(z, ae), A(z, ...Z);
|
|
10891
10891
|
});
|
|
10892
|
-
}),
|
|
10892
|
+
}), xg(
|
|
10893
10893
|
i === null ? {} : B,
|
|
10894
10894
|
w
|
|
10895
10895
|
);
|
|
@@ -10915,9 +10915,9 @@ function of(...e) {
|
|
|
10915
10915
|
toArray: () => l?.toArray(),
|
|
10916
10916
|
closest: (...S) => l?.closest(...S)
|
|
10917
10917
|
}, $ = () => P?.option("disabled", !0), R = () => P?.option("disabled", !1);
|
|
10918
|
-
return
|
|
10918
|
+
return tf(() => {
|
|
10919
10919
|
c && f();
|
|
10920
|
-
}),
|
|
10920
|
+
}), ef(P.destroy), to({ start: f, pause: $, resume: R }, P);
|
|
10921
10921
|
}
|
|
10922
10922
|
const xr = [
|
|
10923
10923
|
"update",
|
|
@@ -10932,7 +10932,7 @@ const xr = [
|
|
|
10932
10932
|
"clone",
|
|
10933
10933
|
"move",
|
|
10934
10934
|
"change"
|
|
10935
|
-
],
|
|
10935
|
+
], rf = [
|
|
10936
10936
|
"clone",
|
|
10937
10937
|
"animation",
|
|
10938
10938
|
"ghostClass",
|
|
@@ -10983,7 +10983,7 @@ const xr = [
|
|
|
10983
10983
|
prop: "modelValue",
|
|
10984
10984
|
event: "update:modelValue"
|
|
10985
10985
|
},
|
|
10986
|
-
props:
|
|
10986
|
+
props: rf,
|
|
10987
10987
|
emits: ["update:modelValue", ...xr],
|
|
10988
10988
|
setup(e, { slots: t, emit: o, expose: n, attrs: r }) {
|
|
10989
10989
|
const s = xr.reduce((u, m) => {
|
|
@@ -10994,20 +10994,20 @@ const xr = [
|
|
|
10994
10994
|
const B = a(E);
|
|
10995
10995
|
return B !== void 0 && (v[k] = B), v;
|
|
10996
10996
|
}, {});
|
|
10997
|
-
return to(to({}, s),
|
|
10997
|
+
return to(to({}, s), bg(to(to({}, r), p)));
|
|
10998
10998
|
}), d = y({
|
|
10999
10999
|
get: () => e.modelValue,
|
|
11000
11000
|
set: (u) => o("update:modelValue", u)
|
|
11001
11001
|
}), l = re(), c = io(
|
|
11002
|
-
|
|
11002
|
+
nf(e.target || l, d, i)
|
|
11003
11003
|
);
|
|
11004
11004
|
return n(c), () => {
|
|
11005
11005
|
var u;
|
|
11006
11006
|
return Fs(e.tag || "div", { ref: l }, (u = t?.default) == null ? void 0 : u.call(t, c));
|
|
11007
11007
|
};
|
|
11008
11008
|
}
|
|
11009
|
-
}),
|
|
11010
|
-
function
|
|
11009
|
+
}), sf = (e, t) => e.name ? e.name : t?.meta?.name ? t.meta.name : e.type.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase());
|
|
11010
|
+
function af() {
|
|
11011
11011
|
const e = Ee(xe), { engine: t, getBlockById: o } = Le(), n = e?.blockLabelFunction, r = (l) => {
|
|
11012
11012
|
const c = o(l);
|
|
11013
11013
|
if (!c || !n)
|
|
@@ -11019,7 +11019,7 @@ function sf() {
|
|
|
11019
11019
|
if (!c)
|
|
11020
11020
|
return "Unknown Block";
|
|
11021
11021
|
const u = t.getBlockSchema(c.type);
|
|
11022
|
-
return
|
|
11022
|
+
return sf(c, u);
|
|
11023
11023
|
};
|
|
11024
11024
|
return {
|
|
11025
11025
|
getBlockLabel: r,
|
|
@@ -11028,19 +11028,19 @@ function sf() {
|
|
|
11028
11028
|
getBlockSchemaNameReactive: (l) => y(() => s(l))
|
|
11029
11029
|
};
|
|
11030
11030
|
}
|
|
11031
|
-
const
|
|
11031
|
+
const lf = ["data-block-id"], cf = ["data-block-id", "data-selected"], df = {
|
|
11032
11032
|
key: 1,
|
|
11033
11033
|
class: "w-5 h-full"
|
|
11034
|
-
},
|
|
11034
|
+
}, uf = { class: "w-4 h-4 mr-1 flex items-center justify-center relative" }, pf = ["innerHTML"], hf = { class: "flex-1 flex items-center gap-1 min-w-0" }, gf = { class: "shrink-0" }, ff = {
|
|
11035
11035
|
key: 0,
|
|
11036
11036
|
class: "italic text-gray-500 truncate text-xs"
|
|
11037
|
-
},
|
|
11037
|
+
}, mf = { class: "flex items-center gap-0.5" }, vf = ["title"], bf = ["title"], yf = {
|
|
11038
11038
|
key: 0,
|
|
11039
11039
|
class: "ml-3 space-y-1"
|
|
11040
|
-
},
|
|
11040
|
+
}, _f = {
|
|
11041
11041
|
key: 0,
|
|
11042
11042
|
class: ""
|
|
11043
|
-
},
|
|
11043
|
+
}, kf = /* @__PURE__ */ T({
|
|
11044
11044
|
__name: "BlockItem",
|
|
11045
11045
|
props: {
|
|
11046
11046
|
blockId: {},
|
|
@@ -11058,7 +11058,7 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11058
11058
|
toggle: u,
|
|
11059
11059
|
moveChild: m,
|
|
11060
11060
|
schema: h
|
|
11061
|
-
} = Fi(t.blockId), { isExpanded: p, toggleExpanded: v } = Vr(), { getBlockLabelReactive: k, getBlockSchemaNameReactive: E } =
|
|
11061
|
+
} = Fi(t.blockId), { isExpanded: p, toggleExpanded: v } = Vr(), { getBlockLabelReactive: k, getBlockSchemaNameReactive: E } = 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), U = y(() => p(t.blockId)), w = y(() => r.value?.static === !0), b = y(() => r.value?.repeated === !0), A = y(() => r.value?.ghost === !0), z = E(t.blockId), Z = k(t.blockId), ae = y(() => h.value?.meta?.icon), Ve = y(() => {
|
|
11062
11062
|
if (c.value === void 0 || c.value < 0)
|
|
11063
11063
|
return !0;
|
|
11064
11064
|
const me = c.value + 1, se = l.value?.children ?? S.value.find((Be) => Be.blocks.includes(t.blockId))?.blocks;
|
|
@@ -11105,9 +11105,9 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11105
11105
|
m(ve, Be);
|
|
11106
11106
|
return;
|
|
11107
11107
|
}
|
|
11108
|
-
const
|
|
11109
|
-
|
|
11110
|
-
targetParentId:
|
|
11108
|
+
const zt = oe?.parentElement?.closest?.("[data-block-id]")?.getAttribute?.("data-block-id");
|
|
11109
|
+
zt && P(ve, {
|
|
11110
|
+
targetParentId: zt,
|
|
11111
11111
|
targetIndex: Be
|
|
11112
11112
|
});
|
|
11113
11113
|
} catch (De) {
|
|
@@ -11124,7 +11124,7 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11124
11124
|
$(t.blockId);
|
|
11125
11125
|
}
|
|
11126
11126
|
return (me, se) => {
|
|
11127
|
-
const Be =
|
|
11127
|
+
const Be = hg, vt = dg, oe = ag, ve = rg, Re = tg, De = Gr, zt = Ur, An = Hr, Nn = Qh, Fn = da("BlockItem", !0), Ln = Sn, Vn = Ph;
|
|
11128
11128
|
return a(r) ? (g(), O("div", {
|
|
11129
11129
|
key: 0,
|
|
11130
11130
|
class: Ce({ "bg-gray-100": a(n), "is-static": a(w) }),
|
|
@@ -11152,8 +11152,8 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11152
11152
|
C(Be, {
|
|
11153
11153
|
class: Ce(["w-3 h-3 transition-transform duration-200", { "rotate-90": a(U) }])
|
|
11154
11154
|
}, null, 8, ["class"])
|
|
11155
|
-
])) : (g(), O("div",
|
|
11156
|
-
x("div",
|
|
11155
|
+
])) : (g(), O("div", df)),
|
|
11156
|
+
x("div", uf, [
|
|
11157
11157
|
a(A) ? (g(), I(vt, {
|
|
11158
11158
|
key: 0,
|
|
11159
11159
|
class: Ce([{ "group-hover:opacity-0": a(w) }, "w-4 h-4 transition-opacity text-gray-400"])
|
|
@@ -11164,7 +11164,7 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11164
11164
|
key: 2,
|
|
11165
11165
|
innerHTML: a(ae),
|
|
11166
11166
|
class: Ce([{ "group-hover:opacity-0": a(w) }, "[&>svg]:w-4 [&>svg]:h-4 h-4 w-4 transition-opacity"])
|
|
11167
|
-
}, null, 10,
|
|
11167
|
+
}, null, 10, pf)) : (g(), I(ve, {
|
|
11168
11168
|
key: 3,
|
|
11169
11169
|
class: Ce([{ "group-hover:opacity-0": a(w) }, "transition-opacity"])
|
|
11170
11170
|
}, null, 8, ["class"])),
|
|
@@ -11173,11 +11173,11 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11173
11173
|
class: "w-4 h-4 absolute opacity-0 group-hover:opacity-100 transition-opacity text-gray-400"
|
|
11174
11174
|
})) : X("", !0)
|
|
11175
11175
|
]),
|
|
11176
|
-
x("div",
|
|
11177
|
-
x("span",
|
|
11178
|
-
a(Z) ? (g(), O("span",
|
|
11176
|
+
x("div", hf, [
|
|
11177
|
+
x("span", gf, W(a(z)), 1),
|
|
11178
|
+
a(Z) ? (g(), O("span", ff, "- " + W(a(Z)), 1)) : X("", !0)
|
|
11179
11179
|
]),
|
|
11180
|
-
x("div",
|
|
11180
|
+
x("div", mf, [
|
|
11181
11181
|
x("button", {
|
|
11182
11182
|
onClick: se[1] || (se[1] = Nt(() => a(u)(), ["stop"])),
|
|
11183
11183
|
class: Ce(["p-1 hover:bg-gray-200 rounded text-gray-500 hover:text-gray-700 transition-colors", { "opacity-100": a(r).disabled, "opacity-0 group-hover:opacity-100": !a(r).disabled }]),
|
|
@@ -11186,11 +11186,11 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11186
11186
|
a(r).disabled ? (g(), I(De, {
|
|
11187
11187
|
key: 0,
|
|
11188
11188
|
class: "w-4 h-4"
|
|
11189
|
-
})) : (g(), I(
|
|
11189
|
+
})) : (g(), I(zt, {
|
|
11190
11190
|
key: 1,
|
|
11191
11191
|
class: "w-4 h-4"
|
|
11192
11192
|
}))
|
|
11193
|
-
], 10,
|
|
11193
|
+
], 10, vf),
|
|
11194
11194
|
a(w) ? X("", !0) : (g(), O("button", {
|
|
11195
11195
|
key: 0,
|
|
11196
11196
|
onClick: se[2] || (se[2] = Nt(() => Mn(), ["stop"])),
|
|
@@ -11198,13 +11198,13 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11198
11198
|
title: a(o)("block.remove")
|
|
11199
11199
|
}, [
|
|
11200
11200
|
C(An, { class: "w-4 h-4" })
|
|
11201
|
-
], 8,
|
|
11201
|
+
], 8, bf))
|
|
11202
11202
|
])
|
|
11203
|
-
], 10,
|
|
11203
|
+
], 10, cf)
|
|
11204
11204
|
]),
|
|
11205
11205
|
_: 1
|
|
11206
11206
|
}, 8, ["block-id"]),
|
|
11207
|
-
a(d) && a(U) ? (g(), O("div",
|
|
11207
|
+
a(d) && a(U) ? (g(), O("div", yf, [
|
|
11208
11208
|
C(a(sa), {
|
|
11209
11209
|
"model-value": a(r).children,
|
|
11210
11210
|
animation: 200,
|
|
@@ -11225,13 +11225,13 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11225
11225
|
]),
|
|
11226
11226
|
_: 1
|
|
11227
11227
|
}, 8, ["model-value", "group"]),
|
|
11228
|
-
a(i) ? X("", !0) : (g(), O("div",
|
|
11228
|
+
a(i) ? X("", !0) : (g(), O("div", _f, [
|
|
11229
11229
|
x("button", {
|
|
11230
11230
|
onClick: se[4] || (se[4] = (at) => Ke(at)),
|
|
11231
11231
|
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"
|
|
11232
11232
|
}, [
|
|
11233
11233
|
C(Ln, { class: "w-3 h-3" }),
|
|
11234
|
-
x("span", null,
|
|
11234
|
+
x("span", null, W(a(o)("layers.addBlockToBlock")), 1)
|
|
11235
11235
|
])
|
|
11236
11236
|
]))
|
|
11237
11237
|
])) : X("", !0),
|
|
@@ -11241,7 +11241,7 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11241
11241
|
onMouseenter: se[5] || (se[5] = (at) => n.value = !0),
|
|
11242
11242
|
onMouseleave: se[6] || (se[6] = (at) => n.value = !1)
|
|
11243
11243
|
}, null, 8, ["block-id"])) : X("", !0)
|
|
11244
|
-
], 10,
|
|
11244
|
+
], 10, lf)) : X("", !0);
|
|
11245
11245
|
};
|
|
11246
11246
|
}
|
|
11247
11247
|
}), Rn = (e, t) => {
|
|
@@ -11249,20 +11249,20 @@ const af = ["data-block-id"], lf = ["data-block-id", "data-selected"], cf = {
|
|
|
11249
11249
|
for (const [n, r] of t)
|
|
11250
11250
|
o[n] = r;
|
|
11251
11251
|
return o;
|
|
11252
|
-
},
|
|
11252
|
+
}, If = {}, xf = {
|
|
11253
11253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11254
11254
|
viewBox: "0 0 24 24",
|
|
11255
11255
|
class: "w-4 h-4"
|
|
11256
11256
|
};
|
|
11257
|
-
function
|
|
11258
|
-
return g(), O("svg",
|
|
11257
|
+
function wf(e, t) {
|
|
11258
|
+
return g(), O("svg", xf, [...t[0] || (t[0] = [
|
|
11259
11259
|
x("path", {
|
|
11260
11260
|
fill: "currentColor",
|
|
11261
11261
|
d: "M4 2a2 2 0 0 0-2 2v10h2V4h10V2zm4 4a2 2 0 0 0-2 2v10h2V8h10V6zm12 6v8h-8v-8zm0-2h-8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2m-1 7h-6v-2h6z"
|
|
11262
11262
|
}, null, -1)
|
|
11263
11263
|
])]);
|
|
11264
11264
|
}
|
|
11265
|
-
const
|
|
11265
|
+
const Cf = /* @__PURE__ */ Rn(If, [["render", wf]]), _o = {
|
|
11266
11266
|
small: 640,
|
|
11267
11267
|
medium: 768,
|
|
11268
11268
|
large: 1024,
|
|
@@ -11286,13 +11286,13 @@ function ia() {
|
|
|
11286
11286
|
isExtraExtraLarge: i
|
|
11287
11287
|
};
|
|
11288
11288
|
}
|
|
11289
|
-
const
|
|
11289
|
+
const Ef = { class: "h-full flex flex-col overflow-y-hidden relative" }, Of = { class: "flex-none h-12 flex items-center border-b px-4" }, Tf = { class: "flex-1 overflow-y-auto" }, Pf = { class: "flex items-center justify-between" }, Bf = { class: "text-sm capitalize" }, Sf = ["title", "onClick"], $f = { class: "my-2" }, Rf = {
|
|
11290
11290
|
key: 0,
|
|
11291
11291
|
class: "flex items-center justify-center py-2"
|
|
11292
|
-
},
|
|
11292
|
+
}, Df = ["onClick"], Mf = {
|
|
11293
11293
|
key: 0,
|
|
11294
11294
|
class: "absolute inset-0 z-10"
|
|
11295
|
-
},
|
|
11295
|
+
}, Af = /* @__PURE__ */ T({
|
|
11296
11296
|
__name: "LayersPanel",
|
|
11297
11297
|
setup(e) {
|
|
11298
11298
|
const { t } = Pe(), { regions: o, moveBlock: n } = Le(), { collapseRegion: r, expandAncestors: s } = Vr(), { open: i } = ho(), d = Mi(), { isExtraExtraLarge: l } = ia(), { hasSelection: c } = Pt();
|
|
@@ -11328,28 +11328,28 @@ const Cf = { class: "h-full flex flex-col overflow-y-hidden relative" }, Ef = {
|
|
|
11328
11328
|
});
|
|
11329
11329
|
}
|
|
11330
11330
|
return (v, k) => {
|
|
11331
|
-
const E =
|
|
11332
|
-
return g(), O("div",
|
|
11333
|
-
x("div", Ef, [
|
|
11334
|
-
x("h2", null, z(a(t)("layers.header")), 1)
|
|
11335
|
-
]),
|
|
11331
|
+
const E = kf, B = Sn, H = Ni;
|
|
11332
|
+
return g(), O("div", Ef, [
|
|
11336
11333
|
x("div", Of, [
|
|
11334
|
+
x("h2", null, W(a(t)("layers.header")), 1)
|
|
11335
|
+
]),
|
|
11336
|
+
x("div", Tf, [
|
|
11337
11337
|
(g(!0), O(ge, null, Ie(a(u), (D) => (g(), O("div", {
|
|
11338
11338
|
key: a(ne)(D),
|
|
11339
11339
|
class: "not-last:border-b px-4 mt-2"
|
|
11340
11340
|
}, [
|
|
11341
|
-
x("div",
|
|
11342
|
-
x("h3",
|
|
11341
|
+
x("div", Pf, [
|
|
11342
|
+
x("h3", Bf, W(D.name), 1),
|
|
11343
11343
|
D.blocks.length > 0 ? (g(), O("button", {
|
|
11344
11344
|
key: 0,
|
|
11345
11345
|
class: "p-1 hover:bg-gray-200 rounded text-gray-500 hover:text-gray-700 transition-colors",
|
|
11346
11346
|
title: a(t)("layers.collapseAll"),
|
|
11347
11347
|
onClick: (f) => a(r)(a(ne)(D))
|
|
11348
11348
|
}, [
|
|
11349
|
-
C(
|
|
11350
|
-
], 8,
|
|
11349
|
+
C(Cf, { class: "w-4 h-4" })
|
|
11350
|
+
], 8, Sf)) : X("", !0)
|
|
11351
11351
|
]),
|
|
11352
|
-
x("div",
|
|
11352
|
+
x("div", $f, [
|
|
11353
11353
|
C(a(sa), {
|
|
11354
11354
|
"model-value": D.blocks,
|
|
11355
11355
|
animation: 200,
|
|
@@ -11369,31 +11369,31 @@ const Cf = { class: "h-full flex flex-col overflow-y-hidden relative" }, Ef = {
|
|
|
11369
11369
|
]),
|
|
11370
11370
|
_: 2
|
|
11371
11371
|
}, 1032, ["model-value", "onEnd"]),
|
|
11372
|
-
D.blocks.length === 0 ? (g(), O("div",
|
|
11372
|
+
D.blocks.length === 0 ? (g(), O("div", Rf, [
|
|
11373
11373
|
x("button", {
|
|
11374
11374
|
onClick: (f) => p(f, a(ne)(D)),
|
|
11375
11375
|
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"
|
|
11376
11376
|
}, [
|
|
11377
11377
|
C(B, { class: "w-4 h-4" }),
|
|
11378
|
-
le(" " +
|
|
11379
|
-
], 8,
|
|
11378
|
+
le(" " + W(a(t)("layers.addBlockToRegion")), 1)
|
|
11379
|
+
], 8, Df)
|
|
11380
11380
|
])) : X("", !0)
|
|
11381
11381
|
])
|
|
11382
11382
|
]))), 128))
|
|
11383
11383
|
]),
|
|
11384
|
-
a(c) && !a(l) ? (g(), O("div",
|
|
11384
|
+
a(c) && !a(l) ? (g(), O("div", Mf, [
|
|
11385
11385
|
C(H, { "is-overlay": "" })
|
|
11386
11386
|
])) : X("", !0)
|
|
11387
11387
|
]);
|
|
11388
11388
|
};
|
|
11389
11389
|
}
|
|
11390
|
-
}),
|
|
11390
|
+
}), Nf = { class: "h-full w-75 border-r flex-none relative" }, Ff = /* @__PURE__ */ T({
|
|
11391
11391
|
__name: "Panels",
|
|
11392
11392
|
setup(e) {
|
|
11393
11393
|
const t = Ee(xe), { activeSidebarPanel: o, sidebarPanels: n } = it(), r = y(() => n.value.find((s) => s.id === o.value));
|
|
11394
11394
|
return (s, i) => {
|
|
11395
|
-
const d =
|
|
11396
|
-
return g(), O("aside",
|
|
11395
|
+
const d = Af, l = Ao;
|
|
11396
|
+
return g(), O("aside", Nf, [
|
|
11397
11397
|
a(o) === "layers" ? (g(), I(d, {
|
|
11398
11398
|
key: 0,
|
|
11399
11399
|
class: "h-full"
|
|
@@ -11411,13 +11411,13 @@ const Cf = { class: "h-full flex flex-col overflow-y-hidden relative" }, Ef = {
|
|
|
11411
11411
|
]);
|
|
11412
11412
|
};
|
|
11413
11413
|
}
|
|
11414
|
-
}),
|
|
11414
|
+
}), Lf = {
|
|
11415
11415
|
viewBox: "0 0 24 24",
|
|
11416
11416
|
width: "1.2em",
|
|
11417
11417
|
height: "1.2em"
|
|
11418
11418
|
};
|
|
11419
|
-
function
|
|
11420
|
-
return g(), O("svg",
|
|
11419
|
+
function Vf(e, t) {
|
|
11420
|
+
return g(), O("svg", Lf, [...t[0] || (t[0] = [
|
|
11421
11421
|
x("path", {
|
|
11422
11422
|
fill: "none",
|
|
11423
11423
|
stroke: "currentColor",
|
|
@@ -11428,14 +11428,14 @@ function Lf(e, t) {
|
|
|
11428
11428
|
}, null, -1)
|
|
11429
11429
|
])]);
|
|
11430
11430
|
}
|
|
11431
|
-
const
|
|
11431
|
+
const Hf = Q({ name: "heroicons-square3-stack3d", render: Vf }), Gf = { class: "h-full w-14 border-r bg-white" }, Uf = { class: "flex flex-col gap-1 p-1.5" }, jf = ["title"], zf = ["onClick", "title"], Wf = { key: 2 }, Kf = /* @__PURE__ */ T({
|
|
11432
11432
|
__name: "Sidebar",
|
|
11433
11433
|
setup(e) {
|
|
11434
11434
|
const { t } = Pe(), { activeSidebarPanel: o, setActiveSidebarPanel: n, sidebarPanels: r } = it(), s = Ee(xe);
|
|
11435
11435
|
return (i, d) => {
|
|
11436
|
-
const l =
|
|
11437
|
-
return g(), O("div",
|
|
11438
|
-
x("div",
|
|
11436
|
+
const l = Hf, c = Ao;
|
|
11437
|
+
return g(), O("div", Gf, [
|
|
11438
|
+
x("div", Uf, [
|
|
11439
11439
|
x("button", {
|
|
11440
11440
|
onClick: d[0] || (d[0] = (u) => a(n)("layers")),
|
|
11441
11441
|
class: Ce([
|
|
@@ -11445,7 +11445,7 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11445
11445
|
title: a(t)("layers.title")
|
|
11446
11446
|
}, [
|
|
11447
11447
|
C(l, { class: "w-5" })
|
|
11448
|
-
], 10,
|
|
11448
|
+
], 10, jf),
|
|
11449
11449
|
(g(!0), O(ge, null, Ie(a(r), (u) => (g(), O("button", {
|
|
11450
11450
|
key: "panel-icon-" + u.id,
|
|
11451
11451
|
onClick: (m) => a(n)(u.id),
|
|
@@ -11463,13 +11463,13 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11463
11463
|
key: 1,
|
|
11464
11464
|
"render-fn": u.icon,
|
|
11465
11465
|
class: "w-5 h-5"
|
|
11466
|
-
}, null, 8, ["render-fn"])) : (g(), O("span", Wf,
|
|
11467
|
-
], 10,
|
|
11466
|
+
}, null, 8, ["render-fn"])) : (g(), O("span", Wf, W(u.title.charAt(0).toUpperCase()), 1))
|
|
11467
|
+
], 10, zf))), 128))
|
|
11468
11468
|
])
|
|
11469
11469
|
]);
|
|
11470
11470
|
};
|
|
11471
11471
|
}
|
|
11472
|
-
}),
|
|
11472
|
+
}), qf = /* @__PURE__ */ T({
|
|
11473
11473
|
__name: "HeaderActionRenderer",
|
|
11474
11474
|
props: {
|
|
11475
11475
|
action: {}
|
|
@@ -11490,7 +11490,7 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11490
11490
|
onClick: s
|
|
11491
11491
|
}, {
|
|
11492
11492
|
default: _(() => [
|
|
11493
|
-
le(
|
|
11493
|
+
le(W(i.action.button.text), 1)
|
|
11494
11494
|
]),
|
|
11495
11495
|
_: 1
|
|
11496
11496
|
}, 8, ["variant", "loading"])) : a(Ft)(i.action.render) || a(Lt)(i.action.render) ? (g(), I(ut(i.action.render), {
|
|
@@ -11503,26 +11503,26 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11503
11503
|
], 1024);
|
|
11504
11504
|
};
|
|
11505
11505
|
}
|
|
11506
|
-
}),
|
|
11506
|
+
}), Xf = { class: "h-14 flex items-center justify-between relative z-50 px-4 border-b bg-white" }, Yf = { class: "flex items-center gap-2" }, Jf = { class: "flex items-center gap-2" }, Qf = { class: "flex items-center gap-2" }, Zf = /* @__PURE__ */ T({
|
|
11507
11507
|
__name: "Header",
|
|
11508
11508
|
setup(e) {
|
|
11509
11509
|
const { headerActions: t } = it(), o = y(() => t.value.filter((s) => s.slot === "left")), n = y(() => t.value.filter((s) => s.slot === "center")), r = y(() => t.value.filter((s) => s.slot === "right"));
|
|
11510
11510
|
return (s, i) => {
|
|
11511
|
-
const d =
|
|
11512
|
-
return g(), O("header",
|
|
11513
|
-
x("div",
|
|
11511
|
+
const d = qf;
|
|
11512
|
+
return g(), O("header", Xf, [
|
|
11513
|
+
x("div", Yf, [
|
|
11514
11514
|
(g(!0), O(ge, null, Ie(a(o), (l) => (g(), I(d, {
|
|
11515
11515
|
key: l.id,
|
|
11516
11516
|
action: l
|
|
11517
11517
|
}, null, 8, ["action"]))), 128))
|
|
11518
11518
|
]),
|
|
11519
|
-
x("div",
|
|
11519
|
+
x("div", Jf, [
|
|
11520
11520
|
(g(!0), O(ge, null, Ie(a(n), (l) => (g(), I(d, {
|
|
11521
11521
|
key: l.id,
|
|
11522
11522
|
action: l
|
|
11523
11523
|
}, null, 8, ["action"]))), 128))
|
|
11524
11524
|
]),
|
|
11525
|
-
x("div",
|
|
11525
|
+
x("div", Qf, [
|
|
11526
11526
|
(g(!0), O(ge, null, Ie(a(r), (l) => (g(), I(d, {
|
|
11527
11527
|
key: l.id,
|
|
11528
11528
|
action: l
|
|
@@ -11531,10 +11531,10 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11531
11531
|
]);
|
|
11532
11532
|
};
|
|
11533
11533
|
}
|
|
11534
|
-
}),
|
|
11534
|
+
}), em = { class: "h-full w-full flex flex-col overflow-hidden" }, tm = { class: "flex-1 flex overflow-hidden relative" }, om = { class: "flex-1 p-3 bg-gray-100 overflow-auto preview-container flex justify-center" }, nm = {
|
|
11535
11535
|
key: 0,
|
|
11536
11536
|
class: "h-full flex-none overflow-y-hidden w-75 border-l"
|
|
11537
|
-
},
|
|
11537
|
+
}, rm = /* @__PURE__ */ T({
|
|
11538
11538
|
__name: "Editor",
|
|
11539
11539
|
setup(e) {
|
|
11540
11540
|
const { isExtraExtraLarge: t } = ia(), { keyboardShortcuts: o } = it(), n = Ee(xe), r = (s) => {
|
|
@@ -11548,22 +11548,22 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11548
11548
|
d && (s.preventDefault(), s.stopPropagation(), d.handler({ editor: n }));
|
|
11549
11549
|
};
|
|
11550
11550
|
return (s, i) => {
|
|
11551
|
-
const d =
|
|
11551
|
+
const d = Zf, l = Kf, c = Ff, u = Th, m = Ni, h = vp, p = Hu, v = Du;
|
|
11552
11552
|
return g(), O("div", {
|
|
11553
11553
|
class: "__craftile",
|
|
11554
11554
|
style: { height: "100%", width: "100%" },
|
|
11555
11555
|
tabindex: "0",
|
|
11556
11556
|
onKeydown: r
|
|
11557
11557
|
}, [
|
|
11558
|
-
x("div",
|
|
11558
|
+
x("div", em, [
|
|
11559
11559
|
C(d),
|
|
11560
|
-
x("main",
|
|
11560
|
+
x("main", tm, [
|
|
11561
11561
|
C(l),
|
|
11562
11562
|
C(c),
|
|
11563
|
-
x("div",
|
|
11563
|
+
x("div", om, [
|
|
11564
11564
|
C(u)
|
|
11565
11565
|
]),
|
|
11566
|
-
a(t) ? (g(), O("aside",
|
|
11566
|
+
a(t) ? (g(), O("aside", nm, [
|
|
11567
11567
|
C(m)
|
|
11568
11568
|
])) : X("", !0)
|
|
11569
11569
|
])
|
|
@@ -11575,7 +11575,7 @@ const Vf = Q({ name: "heroicons-square3-stack3d", render: Lf }), Hf = { class: "
|
|
|
11575
11575
|
};
|
|
11576
11576
|
}
|
|
11577
11577
|
});
|
|
11578
|
-
class
|
|
11578
|
+
class sm {
|
|
11579
11579
|
events;
|
|
11580
11580
|
state;
|
|
11581
11581
|
toaster;
|
|
@@ -11698,16 +11698,16 @@ class rm {
|
|
|
11698
11698
|
this.state.clipboard.copiedBlock = null, this.events.emit("ui:clipboard:clear", {});
|
|
11699
11699
|
}
|
|
11700
11700
|
}
|
|
11701
|
-
const
|
|
11701
|
+
const im = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow-hidden text-ellipsis" }, am = { class: "flex items-center justify-between px-4 py-3 border-b border-solid" }, lm = { class: "text-sm font-semibold text-gray-900 m-0" }, cm = { class: "rounded cursor-pointer text-gray-500 transition-all duration-200 flex items-center justify-center p-1 hover:text-gray-700" }, dm = { class: "flex flex-col gap-1 p-2" }, um = ["onClick"], pm = { class: "text-xs ml-auto" }, hm = { class: "px-4 py-3 border-t" }, gm = { class: "text-[13px] font-semibold text-gray-700 mt-0 mb-3 mx-0" }, fm = { class: "flex flex-wrap gap-2" }, mm = { class: "flex-1" }, vm = {
|
|
11702
11702
|
for: "custom-width",
|
|
11703
11703
|
class: "block text-xs text-gray-500 mb-1"
|
|
11704
|
-
},
|
|
11704
|
+
}, bm = {
|
|
11705
11705
|
key: 0,
|
|
11706
11706
|
class: "mt-4"
|
|
11707
|
-
},
|
|
11707
|
+
}, ym = { class: "flex flex-col gap-1 mt-2" }, _m = ["onClick"], km = { class: "flex-1" }, Im = ["onClick"], xm = {
|
|
11708
11708
|
inheritAttrs: !1
|
|
11709
|
-
},
|
|
11710
|
-
...
|
|
11709
|
+
}, wm = /* @__PURE__ */ T({
|
|
11710
|
+
...xm,
|
|
11711
11711
|
__name: "DeviceModeSwitcher",
|
|
11712
11712
|
setup(e) {
|
|
11713
11713
|
const { t } = Pe(), {
|
|
@@ -11747,7 +11747,7 @@ const sm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11747
11747
|
C(f, { class: "gap-1" }, {
|
|
11748
11748
|
default: _(() => [
|
|
11749
11749
|
(g(), I(ut(p()), { class: "device-icon" })),
|
|
11750
|
-
x("span",
|
|
11750
|
+
x("span", im, W(a(n).label), 1),
|
|
11751
11751
|
C(a(ct).Indicator, { "as-child": "" }, {
|
|
11752
11752
|
default: _(() => [
|
|
11753
11753
|
C(D, { class: "w-3.5 h-3.5 transition-transform duration-200 data-[state=open]:rotate-180" })
|
|
@@ -11764,33 +11764,33 @@ const sm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11764
11764
|
default: _(() => [
|
|
11765
11765
|
C(a(ct).Content, { class: "w-72 border shadow-xs overflow-hidden mt-1 rounded-lg bg-white" }, {
|
|
11766
11766
|
default: _(() => [
|
|
11767
|
-
x("div",
|
|
11768
|
-
x("h4",
|
|
11767
|
+
x("div", am, [
|
|
11768
|
+
x("h4", lm, W(a(t)("header.devicePreview")), 1),
|
|
11769
11769
|
C(a(ct).CloseTrigger, { "as-child": "" }, {
|
|
11770
11770
|
default: _(() => [
|
|
11771
|
-
x("button",
|
|
11771
|
+
x("button", cm, [
|
|
11772
11772
|
C(P, { class: "w-4 h-4" })
|
|
11773
11773
|
])
|
|
11774
11774
|
]),
|
|
11775
11775
|
_: 1
|
|
11776
11776
|
})
|
|
11777
11777
|
]),
|
|
11778
|
-
x("div",
|
|
11778
|
+
x("div", dm, [
|
|
11779
11779
|
(g(!0), O(ge, null, Ie(a(r), (R) => (g(), O("button", {
|
|
11780
11780
|
key: R.id,
|
|
11781
11781
|
class: Ce(["flex items-center gap-2 cursor-pointer text-left text-sm text-gray-700 transition-[background] duration-[0.2s] px-3 py-2.5 rounded-md border-[none]", { "text-accent! bg-accent/8": a(o) === R.id }]),
|
|
11782
11782
|
onClick: (S) => v(R.id)
|
|
11783
11783
|
}, [
|
|
11784
11784
|
(g(), I(ut(h(R.icon)), { class: "w-5 h-5" })),
|
|
11785
|
-
x("span", null,
|
|
11786
|
-
x("span",
|
|
11787
|
-
], 10,
|
|
11785
|
+
x("span", null, W(R.label), 1),
|
|
11786
|
+
x("span", pm, W(R.width === 0 ? a(t)("header.auto") : R.width + "px"), 1)
|
|
11787
|
+
], 10, um))), 128))
|
|
11788
11788
|
]),
|
|
11789
|
-
x("div",
|
|
11790
|
-
x("h5",
|
|
11791
|
-
x("div",
|
|
11792
|
-
x("div",
|
|
11793
|
-
x("label",
|
|
11789
|
+
x("div", hm, [
|
|
11790
|
+
x("h5", gm, W(a(t)("header.customDeviceSize")), 1),
|
|
11791
|
+
x("div", fm, [
|
|
11792
|
+
x("div", mm, [
|
|
11793
|
+
x("label", vm, W(a(t)("header.deviceWidthPx")), 1),
|
|
11794
11794
|
As(x("input", {
|
|
11795
11795
|
"onUpdate:modelValue": H[0] || (H[0] = (R) => xt(u) ? u.value = R : null),
|
|
11796
11796
|
type: "number",
|
|
@@ -11805,11 +11805,11 @@ const sm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11805
11805
|
x("button", {
|
|
11806
11806
|
class: "w-full text-accent-foreground bg-accent rounded text-[13px] font-medium cursor-pointer transition-[background] duration-[0.2s] mt-2 p-2 border-[none]",
|
|
11807
11807
|
onClick: k
|
|
11808
|
-
},
|
|
11808
|
+
}, W(a(t)("header.apply")), 1)
|
|
11809
11809
|
]),
|
|
11810
|
-
a(s).length > 0 ? (g(), O("div",
|
|
11811
|
-
x("h5", null,
|
|
11812
|
-
x("div",
|
|
11810
|
+
a(s).length > 0 ? (g(), O("div", bm, [
|
|
11811
|
+
x("h5", null, W(a(t)("header.savedCustomDevices")), 1),
|
|
11812
|
+
x("div", ym, [
|
|
11813
11813
|
(g(!0), O(ge, null, Ie(a(s), (R) => (g(), O("div", {
|
|
11814
11814
|
key: R.id,
|
|
11815
11815
|
role: "button",
|
|
@@ -11817,14 +11817,14 @@ const sm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11817
11817
|
onClick: (S) => v(R.id)
|
|
11818
11818
|
}, [
|
|
11819
11819
|
C($, { class: "w-5 h-5 flex-none" }),
|
|
11820
|
-
x("span",
|
|
11820
|
+
x("span", km, W(R.width) + "px", 1),
|
|
11821
11821
|
x("button", {
|
|
11822
11822
|
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",
|
|
11823
11823
|
onClick: Nt((S) => E(R.id), ["stop"])
|
|
11824
11824
|
}, [
|
|
11825
11825
|
C(P)
|
|
11826
|
-
], 8,
|
|
11827
|
-
], 10,
|
|
11826
|
+
], 8, Im)
|
|
11827
|
+
], 10, _m))), 128))
|
|
11828
11828
|
])
|
|
11829
11829
|
])) : X("", !0)
|
|
11830
11830
|
])
|
|
@@ -11839,13 +11839,13 @@ const sm = { class: "text-xs whitespace-nowrap capitalize max-w-[120px] overflow
|
|
|
11839
11839
|
}, 8, ["open"]);
|
|
11840
11840
|
};
|
|
11841
11841
|
}
|
|
11842
|
-
}),
|
|
11842
|
+
}), Cm = {
|
|
11843
11843
|
viewBox: "0 0 24 24",
|
|
11844
11844
|
width: "1.2em",
|
|
11845
11845
|
height: "1.2em"
|
|
11846
11846
|
};
|
|
11847
|
-
function
|
|
11848
|
-
return g(), O("svg",
|
|
11847
|
+
function Em(e, t) {
|
|
11848
|
+
return g(), O("svg", Cm, [...t[0] || (t[0] = [
|
|
11849
11849
|
x("path", {
|
|
11850
11850
|
fill: "none",
|
|
11851
11851
|
stroke: "currentColor",
|
|
@@ -11856,9 +11856,9 @@ function Cm(e, t) {
|
|
|
11856
11856
|
}, null, -1)
|
|
11857
11857
|
])]);
|
|
11858
11858
|
}
|
|
11859
|
-
const
|
|
11860
|
-
function
|
|
11861
|
-
const o =
|
|
11859
|
+
const Om = Q({ name: "heroicons-arrow-left", render: Em }), Tm = {};
|
|
11860
|
+
function Pm(e, t) {
|
|
11861
|
+
const o = Om, n = uo;
|
|
11862
11862
|
return g(), I(n, {
|
|
11863
11863
|
square: "",
|
|
11864
11864
|
title: "Back"
|
|
@@ -11869,7 +11869,7 @@ function Tm(e, t) {
|
|
|
11869
11869
|
_: 1
|
|
11870
11870
|
});
|
|
11871
11871
|
}
|
|
11872
|
-
const
|
|
11872
|
+
const Bm = /* @__PURE__ */ Rn(Tm, [["render", Pm]]), Sm = /* @__PURE__ */ T({
|
|
11873
11873
|
__name: "RedoButton",
|
|
11874
11874
|
setup(e) {
|
|
11875
11875
|
const { t } = Pe(), { redo: o, canRedo: n } = Le(), r = () => {
|
|
@@ -11890,17 +11890,17 @@ const Pm = /* @__PURE__ */ Rn(Om, [["render", Tm]]), Bm = /* @__PURE__ */ T({
|
|
|
11890
11890
|
}, 8, ["disabled", "title"]);
|
|
11891
11891
|
};
|
|
11892
11892
|
}
|
|
11893
|
-
}),
|
|
11894
|
-
function
|
|
11895
|
-
return g(), O("h1",
|
|
11893
|
+
}), $m = {}, Rm = { class: "text-xl" };
|
|
11894
|
+
function Dm(e, t) {
|
|
11895
|
+
return g(), O("h1", Rm, "Craftile Editor");
|
|
11896
11896
|
}
|
|
11897
|
-
const
|
|
11897
|
+
const Mm = /* @__PURE__ */ Rn($m, [["render", Dm]]), Am = {
|
|
11898
11898
|
viewBox: "0 0 24 24",
|
|
11899
11899
|
width: "1.2em",
|
|
11900
11900
|
height: "1.2em"
|
|
11901
11901
|
};
|
|
11902
|
-
function
|
|
11903
|
-
return g(), O("svg",
|
|
11902
|
+
function Nm(e, t) {
|
|
11903
|
+
return g(), O("svg", Am, [...t[0] || (t[0] = [
|
|
11904
11904
|
x("path", {
|
|
11905
11905
|
fill: "none",
|
|
11906
11906
|
stroke: "currentColor",
|
|
@@ -11911,14 +11911,14 @@ function Am(e, t) {
|
|
|
11911
11911
|
}, null, -1)
|
|
11912
11912
|
])]);
|
|
11913
11913
|
}
|
|
11914
|
-
const
|
|
11914
|
+
const Fm = Q({ name: "heroicons-arrow-uturn-left", render: Nm }), Lm = /* @__PURE__ */ T({
|
|
11915
11915
|
__name: "UndoButton",
|
|
11916
11916
|
setup(e) {
|
|
11917
11917
|
const { t } = Pe(), { undo: o, canUndo: n } = Le(), r = () => {
|
|
11918
11918
|
o();
|
|
11919
11919
|
};
|
|
11920
11920
|
return (s, i) => {
|
|
11921
|
-
const d =
|
|
11921
|
+
const d = Fm, l = uo;
|
|
11922
11922
|
return g(), I(l, {
|
|
11923
11923
|
square: "",
|
|
11924
11924
|
disabled: !a(n),
|
|
@@ -11932,14 +11932,14 @@ const Nm = Q({ name: "heroicons-arrow-uturn-left", render: Am }), Fm = /* @__PUR
|
|
|
11932
11932
|
}, 8, ["disabled", "title"]);
|
|
11933
11933
|
};
|
|
11934
11934
|
}
|
|
11935
|
-
}),
|
|
11935
|
+
}), Vm = {}, Hm = {
|
|
11936
11936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11937
11937
|
width: "32",
|
|
11938
11938
|
height: "32",
|
|
11939
11939
|
viewBox: "0 0 24 24"
|
|
11940
11940
|
};
|
|
11941
|
-
function
|
|
11942
|
-
return g(), O("svg",
|
|
11941
|
+
function Gm(e, t) {
|
|
11942
|
+
return g(), O("svg", Hm, [...t[0] || (t[0] = [
|
|
11943
11943
|
x("g", { fill: "none" }, [
|
|
11944
11944
|
x("path", { d: "m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z" }),
|
|
11945
11945
|
x("path", {
|
|
@@ -11949,12 +11949,12 @@ function Hm(e, t) {
|
|
|
11949
11949
|
], -1)
|
|
11950
11950
|
])]);
|
|
11951
11951
|
}
|
|
11952
|
-
const
|
|
11952
|
+
const Um = /* @__PURE__ */ Rn(Vm, [["render", Gm]]), jm = /* @__PURE__ */ T({
|
|
11953
11953
|
__name: "ToggleInspector",
|
|
11954
11954
|
setup(e) {
|
|
11955
11955
|
const { t } = Pe(), { isEnabled: o, toggle: n } = Bn();
|
|
11956
11956
|
return (r, s) => {
|
|
11957
|
-
const i =
|
|
11957
|
+
const i = Um, d = uo;
|
|
11958
11958
|
return g(), I(d, {
|
|
11959
11959
|
onClick: a(n),
|
|
11960
11960
|
variant: a(o) ? "sutble" : "default",
|
|
@@ -11969,36 +11969,36 @@ const Gm = /* @__PURE__ */ Rn(Lm, [["render", Hm]]), Um = /* @__PURE__ */ T({
|
|
|
11969
11969
|
};
|
|
11970
11970
|
}
|
|
11971
11971
|
});
|
|
11972
|
-
function
|
|
11972
|
+
function zm(e) {
|
|
11973
11973
|
e.registerHeaderAction({
|
|
11974
11974
|
id: "back-button",
|
|
11975
11975
|
slot: "left",
|
|
11976
|
-
render:
|
|
11976
|
+
render: Bm,
|
|
11977
11977
|
order: -20
|
|
11978
11978
|
}), e.registerHeaderAction({
|
|
11979
11979
|
id: "title",
|
|
11980
11980
|
slot: "left",
|
|
11981
|
-
render:
|
|
11981
|
+
render: Mm,
|
|
11982
11982
|
order: -10
|
|
11983
11983
|
}), e.registerHeaderAction({
|
|
11984
11984
|
id: "device-mode",
|
|
11985
11985
|
slot: "right",
|
|
11986
|
-
render:
|
|
11986
|
+
render: wm,
|
|
11987
11987
|
order: -40
|
|
11988
11988
|
}), e.registerHeaderAction({
|
|
11989
11989
|
id: "inspection-mode",
|
|
11990
11990
|
slot: "right",
|
|
11991
|
-
render:
|
|
11991
|
+
render: jm,
|
|
11992
11992
|
order: -30
|
|
11993
11993
|
}), e.registerHeaderAction({
|
|
11994
11994
|
id: "undo",
|
|
11995
11995
|
slot: "right",
|
|
11996
|
-
render:
|
|
11996
|
+
render: Lm,
|
|
11997
11997
|
order: -20
|
|
11998
11998
|
}), e.registerHeaderAction({
|
|
11999
11999
|
id: "redo",
|
|
12000
12000
|
slot: "right",
|
|
12001
|
-
render:
|
|
12001
|
+
render: Sm,
|
|
12002
12002
|
order: -10
|
|
12003
12003
|
});
|
|
12004
12004
|
}
|
|
@@ -12028,7 +12028,7 @@ function Wm(e) {
|
|
|
12028
12028
|
});
|
|
12029
12029
|
}
|
|
12030
12030
|
const Ms = "craftile-editor:custom-devices";
|
|
12031
|
-
class
|
|
12031
|
+
class Km {
|
|
12032
12032
|
state;
|
|
12033
12033
|
devicePresets;
|
|
12034
12034
|
constructor(t = {}) {
|
|
@@ -12086,13 +12086,13 @@ class zm {
|
|
|
12086
12086
|
}
|
|
12087
12087
|
}
|
|
12088
12088
|
}
|
|
12089
|
-
const
|
|
12089
|
+
const qm = { key: 0 }, Xm = { class: "text-sm font-medium text-gray-700 capitalize" }, Ym = { class: "p-3" }, Jm = {
|
|
12090
12090
|
key: 1,
|
|
12091
12091
|
class: "p-4"
|
|
12092
|
-
},
|
|
12092
|
+
}, Qm = {
|
|
12093
12093
|
key: 1,
|
|
12094
12094
|
class: "text-center py-8"
|
|
12095
|
-
},
|
|
12095
|
+
}, Zm = { class: "text-sm text-gray-500" }, ev = /* @__PURE__ */ T({
|
|
12096
12096
|
__name: "PropertiesPanel",
|
|
12097
12097
|
setup(e) {
|
|
12098
12098
|
const { t } = Pe(), { selectedBlock: o } = Pt(), { engine: n, setBlockProperty: r } = Le(), { currentDevice: s } = Dr(), i = y(() => {
|
|
@@ -12126,7 +12126,7 @@ const Km = { key: 0 }, qm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12126
12126
|
}
|
|
12127
12127
|
return (h, p) => {
|
|
12128
12128
|
const v = Lr, k = ja;
|
|
12129
|
-
return a(o) ? (g(), O("div",
|
|
12129
|
+
return a(o) ? (g(), O("div", qm, [
|
|
12130
12130
|
a(i).length > 0 ? (g(), O(ge, { key: 0 }, [
|
|
12131
12131
|
a(d) ? (g(), I(a(et).Root, {
|
|
12132
12132
|
key: 0,
|
|
@@ -12143,7 +12143,7 @@ const Km = { key: 0 }, qm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12143
12143
|
default: _(() => [
|
|
12144
12144
|
C(a(et).ItemTrigger, { class: "flex w-full items-center justify-between p-3 text-left hover:bg-gray-50 transition-colors" }, {
|
|
12145
12145
|
default: _(() => [
|
|
12146
|
-
x("span",
|
|
12146
|
+
x("span", Xm, W(E.label), 1),
|
|
12147
12147
|
C(a(et).ItemIndicator, { class: "transition-transform duration-200 data-[state=open]:rotate-180" }, {
|
|
12148
12148
|
default: _(() => [
|
|
12149
12149
|
C(v, { class: "w-4 h-4 text-gray-500" })
|
|
@@ -12155,7 +12155,7 @@ const Km = { key: 0 }, qm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12155
12155
|
}, 1024),
|
|
12156
12156
|
C(a(et).ItemContent, { class: "overflow-hidden" }, {
|
|
12157
12157
|
default: _(() => [
|
|
12158
|
-
x("div",
|
|
12158
|
+
x("div", Ym, [
|
|
12159
12159
|
C(Kr, {
|
|
12160
12160
|
name: "property-field",
|
|
12161
12161
|
tag: "div",
|
|
@@ -12180,7 +12180,7 @@ const Km = { key: 0 }, qm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12180
12180
|
}, 1032, ["value"]))), 128))
|
|
12181
12181
|
]),
|
|
12182
12182
|
_: 1
|
|
12183
|
-
}, 8, ["default-value"])) : (g(), O("div",
|
|
12183
|
+
}, 8, ["default-value"])) : (g(), O("div", Jm, [
|
|
12184
12184
|
C(Kr, {
|
|
12185
12185
|
name: "property-field",
|
|
12186
12186
|
tag: "div",
|
|
@@ -12197,22 +12197,22 @@ const Km = { key: 0 }, qm = { class: "text-sm font-medium text-gray-700 capitali
|
|
|
12197
12197
|
_: 1
|
|
12198
12198
|
})
|
|
12199
12199
|
]))
|
|
12200
|
-
], 64)) : (g(), O("div",
|
|
12201
|
-
x("p",
|
|
12200
|
+
], 64)) : (g(), O("div", Qm, [
|
|
12201
|
+
x("p", Zm, W(a(t)("configPanels.noProperties")), 1)
|
|
12202
12202
|
]))
|
|
12203
12203
|
])) : X("", !0);
|
|
12204
12204
|
};
|
|
12205
12205
|
}
|
|
12206
12206
|
});
|
|
12207
|
-
function
|
|
12207
|
+
function tv(e) {
|
|
12208
12208
|
e.registerConfigurationPanel({
|
|
12209
12209
|
id: "properties",
|
|
12210
12210
|
title: "Properties",
|
|
12211
|
-
render:
|
|
12211
|
+
render: ev,
|
|
12212
12212
|
order: -10
|
|
12213
12213
|
});
|
|
12214
12214
|
}
|
|
12215
|
-
class
|
|
12215
|
+
class ov {
|
|
12216
12216
|
editor;
|
|
12217
12217
|
plugins = /* @__PURE__ */ new Set();
|
|
12218
12218
|
constructor(t) {
|
|
@@ -12233,7 +12233,7 @@ class tv {
|
|
|
12233
12233
|
return Array.from(this.plugins.values());
|
|
12234
12234
|
}
|
|
12235
12235
|
}
|
|
12236
|
-
class
|
|
12236
|
+
class nv {
|
|
12237
12237
|
handlers = /* @__PURE__ */ new Map();
|
|
12238
12238
|
targetWindow;
|
|
12239
12239
|
targetOrigin;
|
|
@@ -12265,14 +12265,15 @@ class ov {
|
|
|
12265
12265
|
this.fallbackHandler = t;
|
|
12266
12266
|
}
|
|
12267
12267
|
}
|
|
12268
|
-
function
|
|
12269
|
-
return new
|
|
12268
|
+
function rv(e, t = "*") {
|
|
12269
|
+
return new nv(e.contentWindow, t);
|
|
12270
12270
|
}
|
|
12271
|
-
class
|
|
12271
|
+
class sv {
|
|
12272
12272
|
state;
|
|
12273
12273
|
messenger;
|
|
12274
12274
|
readyListenerInitialized = !1;
|
|
12275
12275
|
readyCallbacks = [];
|
|
12276
|
+
documentReadyCallbacks = [];
|
|
12276
12277
|
constructor() {
|
|
12277
12278
|
this.state = io({
|
|
12278
12279
|
previewUrl: "about:blank",
|
|
@@ -12295,8 +12296,8 @@ class rv {
|
|
|
12295
12296
|
return this.state.previewFrame;
|
|
12296
12297
|
}
|
|
12297
12298
|
_registerFrame(t) {
|
|
12298
|
-
this.state.previewFrame = t, this.messenger =
|
|
12299
|
-
this.state.isIframeReady = !0, this.runReadyCallbacks(), this.flushMessageQueue();
|
|
12299
|
+
this.state.previewFrame = t, this.state.isIframeReady = !1, this.messenger = rv(t), this.readyListenerInitialized || (this.messenger.listen("craftile.preview.ready", () => {
|
|
12300
|
+
this.state.isIframeReady = !0, this.runReadyCallbacks(), this.runDocumentReadyCallbacks(), this.flushMessageQueue();
|
|
12300
12301
|
}), this.readyListenerInitialized = !0);
|
|
12301
12302
|
}
|
|
12302
12303
|
sendMessage(t, o) {
|
|
@@ -12308,9 +12309,15 @@ class rv {
|
|
|
12308
12309
|
onReady(t) {
|
|
12309
12310
|
this.readyCallbacks.push(t);
|
|
12310
12311
|
}
|
|
12312
|
+
onDocumentReady(t) {
|
|
12313
|
+
this.documentReadyCallbacks.push(t);
|
|
12314
|
+
}
|
|
12311
12315
|
runReadyCallbacks() {
|
|
12312
12316
|
this.readyCallbacks.forEach((t) => t.call(this)), this.readyCallbacks = [];
|
|
12313
12317
|
}
|
|
12318
|
+
runDocumentReadyCallbacks() {
|
|
12319
|
+
this.documentReadyCallbacks.forEach((t) => t.call(this));
|
|
12320
|
+
}
|
|
12314
12321
|
flushMessageQueue() {
|
|
12315
12322
|
if (this.state.isIframeReady && this.state.previewFrame?.contentWindow)
|
|
12316
12323
|
for (; this.state.messageQueue.length > 0; ) {
|
|
@@ -12319,7 +12326,7 @@ class rv {
|
|
|
12319
12326
|
}
|
|
12320
12327
|
}
|
|
12321
12328
|
}
|
|
12322
|
-
function
|
|
12329
|
+
function iv(e, t) {
|
|
12323
12330
|
const o = t.blocks[e];
|
|
12324
12331
|
if (!o)
|
|
12325
12332
|
return;
|
|
@@ -12355,7 +12362,7 @@ function sv(e, t) {
|
|
|
12355
12362
|
}
|
|
12356
12363
|
return { parentId: r, regionId: s, afterId: d, beforeId: l };
|
|
12357
12364
|
}
|
|
12358
|
-
function
|
|
12365
|
+
function av(e, t) {
|
|
12359
12366
|
const o = {
|
|
12360
12367
|
added: /* @__PURE__ */ new Set(),
|
|
12361
12368
|
updated: /* @__PURE__ */ new Set(),
|
|
@@ -12385,7 +12392,7 @@ function iv(e, t) {
|
|
|
12385
12392
|
});
|
|
12386
12393
|
const m = {};
|
|
12387
12394
|
o.positions.forEach((h) => {
|
|
12388
|
-
const p =
|
|
12395
|
+
const p = iv(h, l);
|
|
12389
12396
|
p && (m[h] = p);
|
|
12390
12397
|
}), t?.onUpdates({
|
|
12391
12398
|
blocks: u,
|
|
@@ -12455,12 +12462,13 @@ function iv(e, t) {
|
|
|
12455
12462
|
n && clearTimeout(n), r.forEach((l) => l());
|
|
12456
12463
|
};
|
|
12457
12464
|
}
|
|
12458
|
-
class
|
|
12465
|
+
class lv {
|
|
12459
12466
|
state;
|
|
12460
12467
|
events;
|
|
12461
12468
|
preview;
|
|
12462
12469
|
ui;
|
|
12463
12470
|
engine;
|
|
12471
|
+
previewListenersInitialized = !1;
|
|
12464
12472
|
constructor(t, o, n, r) {
|
|
12465
12473
|
this.events = t, this.preview = o, this.ui = n, this.engine = r, this.state = io({
|
|
12466
12474
|
enabled: !0,
|
|
@@ -12472,15 +12480,9 @@ class av {
|
|
|
12472
12480
|
selectedBlockRect: null,
|
|
12473
12481
|
iframeRect: null
|
|
12474
12482
|
}), this.preview.onReady(() => {
|
|
12475
|
-
this.
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
this.setSelectedBlock(s.blockId, s.blockRect), this.ui.setSelectedBlock(s.blockId);
|
|
12479
|
-
}), this.preview.onMessage("craftile.preview.update-selected-block", (s) => {
|
|
12480
|
-
this.state.selectedBlockId && this.setSelectedBlock(s.blockId, s.blockRect);
|
|
12481
|
-
}), this.preview.onMessage("craftile.preview.block-leave", () => {
|
|
12482
|
-
this.clearHoveredBlock();
|
|
12483
|
-
});
|
|
12483
|
+
this.initializePreviewListeners();
|
|
12484
|
+
}), this.preview.onDocumentReady(() => {
|
|
12485
|
+
this.syncInspectionModeToPreview();
|
|
12484
12486
|
}), this.events.on("ui:block:select", (s) => {
|
|
12485
12487
|
this.engine.getPage().blocks[s.blockId]?.ghost !== !0 && this.preview.sendMessage("craftile.editor.select-block", { blockId: s.blockId });
|
|
12486
12488
|
}), this.events.on("ui:block:clear-selection", () => {
|
|
@@ -12511,8 +12513,22 @@ class av {
|
|
|
12511
12513
|
setIframeRect(t) {
|
|
12512
12514
|
this.state.iframeRect = t;
|
|
12513
12515
|
}
|
|
12516
|
+
initializePreviewListeners() {
|
|
12517
|
+
this.previewListenersInitialized || (this.preview.onMessage("craftile.preview.block-hover", (t) => {
|
|
12518
|
+
this.setHoveredBlock(t.blockId, t.blockRect, t.parentRect), this.state.parentFlexDirection = t.parentFlexDirection;
|
|
12519
|
+
}), this.preview.onMessage("craftile.preview.block-select", (t) => {
|
|
12520
|
+
this.setSelectedBlock(t.blockId, t.blockRect), this.ui.setSelectedBlock(t.blockId);
|
|
12521
|
+
}), this.preview.onMessage("craftile.preview.update-selected-block", (t) => {
|
|
12522
|
+
this.state.selectedBlockId && this.setSelectedBlock(t.blockId, t.blockRect);
|
|
12523
|
+
}), this.preview.onMessage("craftile.preview.block-leave", () => {
|
|
12524
|
+
this.clearHoveredBlock();
|
|
12525
|
+
}), this.previewListenersInitialized = !0);
|
|
12526
|
+
}
|
|
12527
|
+
syncInspectionModeToPreview() {
|
|
12528
|
+
this.preview.sendMessage(this.state.enabled ? "craftile.inspector.enable" : "craftile.inspector.disable");
|
|
12529
|
+
}
|
|
12514
12530
|
}
|
|
12515
|
-
class
|
|
12531
|
+
class cv {
|
|
12516
12532
|
engine;
|
|
12517
12533
|
ui;
|
|
12518
12534
|
i18n;
|
|
@@ -12526,7 +12542,7 @@ class lv {
|
|
|
12526
12542
|
previewUpdateDelay;
|
|
12527
12543
|
vueApp = null;
|
|
12528
12544
|
constructor(t = {}) {
|
|
12529
|
-
this.engine = new cr({ blockSchemas: t.blockSchemas, page: t.initialPage }), this.events = new oi(), this.i18n = Nu(t.i18n), this.devices = new
|
|
12545
|
+
this.engine = new cr({ blockSchemas: t.blockSchemas, page: t.initialPage }), this.events = new oi(), this.i18n = Nu(t.i18n), this.devices = new Km(t.devices), this.preview = new sv(), this.ui = new sm(this.events), this.plugins = new ov(this), this.inspector = new lv(this.events, this.preview, this.ui, this.engine), this.blockLabelFunction = t.blockLabelFunction, this.blockFilterFunction = t.blockFilterFunction, this.previewUpdateDelay = t.previewUpdateDelay, t.plugins?.forEach((o) => this.plugins.register(o)), this.setup();
|
|
12530
12546
|
}
|
|
12531
12547
|
/**
|
|
12532
12548
|
* Shortcut method to get the current selected block
|
|
@@ -12542,7 +12558,7 @@ class lv {
|
|
|
12542
12558
|
return this.engine.setBlockProperty(t, o, n);
|
|
12543
12559
|
}
|
|
12544
12560
|
setup() {
|
|
12545
|
-
|
|
12561
|
+
zm(this.ui), Wm(this.ui), tv(this.ui), this.vueApp = pa({
|
|
12546
12562
|
setup: () => {
|
|
12547
12563
|
ha(xe, this);
|
|
12548
12564
|
const t = this.setupEngineWatcher(this.previewUpdateDelay ?? 150), o = this.engine.on("block:remove", ({ blockId: n }) => {
|
|
@@ -12550,12 +12566,12 @@ class lv {
|
|
|
12550
12566
|
});
|
|
12551
12567
|
return wn(() => {
|
|
12552
12568
|
t(), o();
|
|
12553
|
-
}), () => Fs(
|
|
12569
|
+
}), () => Fs(rm);
|
|
12554
12570
|
}
|
|
12555
12571
|
}), this.plugins.setupPlugins(this.vueApp);
|
|
12556
12572
|
}
|
|
12557
12573
|
setupEngineWatcher(t) {
|
|
12558
|
-
return
|
|
12574
|
+
return av(this.engine, {
|
|
12559
12575
|
debounceMs: t,
|
|
12560
12576
|
onUpdates: (o) => {
|
|
12561
12577
|
this.preview.sendMessage("craftile.editor.updates", o), this.events.emit("updates", o);
|
|
@@ -12566,12 +12582,12 @@ class lv {
|
|
|
12566
12582
|
this.vueApp.mount(t);
|
|
12567
12583
|
}
|
|
12568
12584
|
}
|
|
12569
|
-
function
|
|
12570
|
-
const { el: t, ...o } = e, n = new
|
|
12585
|
+
function pv(e = {}) {
|
|
12586
|
+
const { el: t, ...o } = e, n = new cv(o);
|
|
12571
12587
|
return t && n.mount(t), n;
|
|
12572
12588
|
}
|
|
12573
12589
|
export {
|
|
12574
|
-
|
|
12575
|
-
|
|
12590
|
+
cv as CraftileEditor,
|
|
12591
|
+
pv as createCraftileEditor,
|
|
12576
12592
|
Ua as evaluateVisibilityRule
|
|
12577
12593
|
};
|