From 464d96a05f18604437589ebcde6f7cab8008188c Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 2 Nov 2023 13:47:50 +0100 Subject: [PATCH 1/4] Panel dist files --- panel/dist/css/style.min.css | 2 +- panel/dist/img/icons.svg | 5 +++-- panel/dist/js/Docs.min.js | 1 + panel/dist/js/DocsView.min.js | 1 + panel/dist/js/IndexView.min.js | 2 +- panel/dist/js/PlaygroundView.min.js | 2 +- panel/dist/js/index.min.js | 2 +- panel/dist/ui/Autocomplete.json | 2 +- panel/dist/ui/Blocks.json | 2 +- panel/dist/ui/Collection.json | 2 +- panel/dist/ui/ColorField.json | 2 +- panel/dist/ui/ColorInput.json | 1 - panel/dist/ui/ColornameInput.json | 2 +- panel/dist/ui/ColoroptionsInput.json | 2 +- panel/dist/ui/ColorpickerInput.json | 2 +- panel/dist/ui/Items.json | 2 +- panel/dist/ui/Navigate.json | 2 +- 17 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 panel/dist/js/Docs.min.js create mode 100644 panel/dist/js/DocsView.min.js delete mode 100644 panel/dist/ui/ColorInput.json diff --git a/panel/dist/css/style.min.css b/panel/dist/css/style.min.css index 129662c932..351335e041 100644 --- a/panel/dist/css/style.min.css +++ b/panel/dist/css/style.min.css @@ -1 +1 @@ -.k-collection-footer{margin-top:var(--spacing-2);flex-wrap:wrap}.k-empty{max-width:100%}:root{--item-button-height:var(--height-md);--item-button-width:var(--height-md);--item-height:auto;--item-height-cardlet:calc(var(--height-md)*3)}.k-item{background:var(--color-white);box-shadow:var(--shadow);border-radius:var(--rounded);height:var(--item-height);position:relative;container-type:inline-size}.k-item:has(a:focus){outline:2px solid var(--color-focus)}@supports not selector(:has(*)){.k-item:focus-within{outline:2px solid var(--color-focus)}}.k-item .k-icon-frame{--back:var(--color-gray-300)}.k-item-content{padding:var(--spacing-2);line-height:1.25;overflow:hidden}.k-item-content a:focus{outline:0}.k-item-content a:after{content:"";position:absolute;inset:0}.k-item-info{color:var(--color-text-dimmed)}.k-item-options{z-index:1;justify-content:space-between;align-items:center;display:flex;transform:translate(0)}.k-item-options[data-only-option=true]{justify-content:flex-end}.k-item-options .k-button{--button-height:var(--item-button-height);--button-width:var(--item-button-width)}.k-item .k-sort-button{z-index:2;position:absolute}.k-item:not(:hover):not(.k-sortable-fallback) .k-sort-button{opacity:0}.k-item[data-layout=list]{--item-height:var(--field-input-height);--item-button-height:var(--item-height);--item-button-width:auto;height:var(--item-height);grid-template-columns:1fr auto;align-items:center;display:grid}.k-item[data-layout=list][data-has-image=true]{grid-template-columns:var(--item-height)1fr auto}.k-item[data-layout=list] .k-frame{--ratio:1/1;height:var(--item-height);border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded)}.k-item[data-layout=list] .k-item-content{white-space:nowrap;gap:var(--spacing-2);justify-content:space-between;min-width:0;display:flex}.k-item[data-layout=list] .k-item-title,.k-item[data-layout=list] .k-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-item[data-layout=list] .k-item-title{flex-shrink:1}.k-item[data-layout=list] .k-item-info{flex-shrink:2}@container (width<=30rem){.k-item[data-layout=list] .k-item-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-item[data-layout=list] .k-item-info{display:none}}.k-item[data-layout=list] .k-sort-button{--button-width:calc(1.5rem + var(--spacing-1));--button-height:var(--item-height);left:calc(-1*var(--button-width))}.k-item:is([data-layout=cardlets],[data-layout=cards]) .k-sort-button{top:var(--spacing-2);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);--button-width:1.5rem;--button-height:1.5rem;--button-rounded:var(--rounded-sm);--button-padding:0;--icon-size:14px;background:#ffffff80;inset-inline-start:var(--spacing-2);box-shadow:0 2px 5px #0003}.k-item:is([data-layout=cardlets],[data-layout=cards]) .k-sort-button:hover{background:#fffffff2}.k-item[data-layout=cardlets]{--item-height:var(--item-height-cardlet);grid-template-columns:1fr;grid-template-areas:"content""options";grid-template-rows:1fr var(--height-md);display:grid}.k-item[data-layout=cardlets][data-has-image=true]{grid-template-areas:"image content""image options";grid-template-columns:minmax(0,var(--item-height))1fr}.k-item[data-layout=cardlets] .k-frame{aspect-ratio:auto;height:var(--item-height);border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded);grid-area:image}.k-item[data-layout=cardlets] .k-item-content{grid-area:content}.k-item[data-layout=cardlets] .k-item-info{white-space:nowrap;text-overflow:ellipsis;margin-top:.125em;overflow:hidden}.k-item[data-layout=cardlets] .k-item-options{grid-area:options}.k-item[data-layout=cards]{flex-direction:column;display:flex}.k-item[data-layout=cards] .k-frame{border-start-start-radius:var(--rounded);border-start-end-radius:var(--rounded)}.k-item[data-layout=cards] .k-item-content{padding:var(--spacing-2);flex-grow:1}.k-item[data-layout=cards] .k-item-info{margin-top:.125em}.k-items{display:grid;position:relative;container-type:inline-size}.k-items[data-layout=list]{gap:2px}.k-items[data-layout=cardlets]{--items-size:1fr;grid-template-columns:repeat(auto-fill,minmax(var(--items-size),1fr));gap:.75rem;display:grid}@container (width>=15rem){.k-items[data-layout=cardlets]{--items-size:15rem}}.k-items[data-layout=cards]{grid-template-columns:1fr;gap:1.5rem;display:grid}@container (width>=6rem){.k-items[data-layout=cards][data-size=tiny]{grid-template-columns:repeat(auto-fill,minmax(6rem,1fr))}}@container (width>=9rem){.k-items[data-layout=cards][data-size=small]{grid-template-columns:repeat(auto-fill,minmax(9rem,1fr))}}@container (width>=12rem){.k-items[data-layout=cards][data-size=auto],.k-items[data-layout=cards][data-size=medium]{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}}@container (width>=15rem){.k-items[data-layout=cards][data-size=large]{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}}@container (width>=18rem){.k-items[data-layout=cards][data-size=huge]{grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}}.k-dialog-body{padding:var(--dialog-padding)}.k-dialog[data-has-footer=true] .k-dialog-body{padding-bottom:0}.k-button-group.k-dialog-buttons{gap:var(--spacing-3);--button-height:var(--height-lg);grid-template-columns:1fr 1fr;display:grid}.k-dialog-fields{padding-bottom:.5rem}.k-dialog-footer{padding:var(--dialog-padding);flex-shrink:0;line-height:1}.k-dialog .k-notification{border-start-start-radius:var(--dialog-rounded);border-start-end-radius:var(--dialog-rounded);margin-top:-1px;padding-block:.325rem}.k-dialog-search{--input-color-border:transparent;--input-color-back:var(--color-gray-300);margin-bottom:.75rem}:root{--dialog-color-back:var(--color-light);--dialog-color-text:currentColor;--dialog-margin:var(--spacing-6);--dialog-padding:var(--spacing-6);--dialog-rounded:var(--rounded-xl);--dialog-shadow:var(--shadow-xl);--dialog-width:22rem}.k-dialog-portal{padding:var(--dialog-margin)}.k-dialog{background:var(--dialog-color-back);color:var(--dialog-color-text);width:clamp(10rem,100%,var(--dialog-width));box-shadow:var(--dialog-shadow);border-radius:var(--dialog-rounded);flex-direction:column;line-height:1;display:flex;position:relative;overflow:clip}@media screen and (width>=20rem){.k-dialog[data-size=small]{--dialog-width:20rem}}@media screen and (width>=22rem){.k-dialog[data-size=default]{--dialog-width:22rem}}@media screen and (width>=30rem){.k-dialog[data-size=medium]{--dialog-width:30rem}}@media screen and (width>=40rem){.k-dialog[data-size=large]{--dialog-width:40rem}}@media screen and (width>=60rem){.k-dialog[data-size=huge]{--dialog-width:60rem}}.k-dialog .k-pagination{justify-content:center;align-items:center;margin-bottom:-1.5rem;display:flex}.k-changes-dialog .k-headline{margin-top:-.5rem;margin-bottom:var(--spacing-3)}.k-error-details{background:var(--color-white);font-size:var(--text-sm);margin-top:.75rem;padding:1rem;line-height:1.25em;display:block;overflow:auto}.k-error-details dt{color:var(--color-red-500);margin-bottom:.25rem}.k-error-details dd{overflow-wrap:break-word;text-overflow:ellipsis;overflow:hidden}.k-error-details dd:not(:last-of-type){margin-bottom:1.5em}.k-error-details li{white-space:pre-line}.k-error-details li:not(:last-child){border-bottom:1px solid var(--color-background);margin-bottom:.25rem;padding-bottom:.25rem}.k-models-dialog .k-list-item{cursor:pointer}.k-page-template-switch{margin-bottom:var(--spacing-6);padding-bottom:var(--spacing-6);border-bottom:1px dashed var(--color-gray-300)}.k-page-move-dialog .k-headline{margin-bottom:var(--spacing-2)}.k-page-move-parent{--tree-color-back:var(--color-white);--tree-color-hover-back:var(--color-light);padding:var(--spacing-3);background:var(--color-white);border-radius:var(--rounded);box-shadow:var(--shadow)}.k-pages-dialog-navbar{justify-content:center;align-items:center;margin-bottom:.5rem;padding-inline-end:38px;display:flex}.k-pages-dialog-navbar .k-button[aria-disabled]{opacity:0}.k-pages-dialog-navbar .k-headline{text-align:center;flex-grow:1}.k-pages-dialog-option[aria-disabled]{opacity:.25}.k-search-dialog{--dialog-padding:0;--dialog-rounded:var(--rounded);overflow:visible}.k-overlay[open][data-type=dialog]>.k-portal>.k-search-dialog{margin-top:0}.k-search-dialog-input{--button-height:var(--input-height);align-items:center;display:flex}.k-search-dialog-types{flex-shrink:0}.k-search-dialog-input input{height:var(--input-height);border-left:1px solid var(--color-border);line-height:var(--input-height);border-radius:var(--rounded);font-size:var(--input-font-size);flex-grow:1;padding-inline:.75rem}.k-search-dialog-input input:focus{outline:0}.k-search-dialog-input .k-search-dialog-close{flex-shrink:0}.k-search-dialog-results{border-top:1px solid var(--color-border);padding:1rem}.k-search-dialog-results .k-item[data-selected=true]{outline:var(--outline)}.k-search-dialog-footer{text-align:center}.k-search-dialog-footer p{color:var(--color-text-dimmed)}.k-search-dialog-footer .k-button{margin-top:var(--spacing-4)}.k-totp-dialog-headline{margin-bottom:var(--spacing-1)}.k-totp-dialog-intro{margin-bottom:var(--spacing-6)}.k-totp-dialog-grid{gap:var(--spacing-6);display:grid}@media screen and (width>=40rem){.k-totp-dialog-grid{gap:var(--spacing-8);grid-template-columns:1fr 1fr}}.k-totp-qrcode .k-box[data-theme]{padding:var(--box-padding-inline)}.k-totp-dialog-fields .k-field-name-confirm{--input-height:var(--height-xl);--input-rounded:var(--rounded-xl);--input-font-size:var(--text-3xl)}.k-upload-dialog.k-dialog{--dialog-width:40rem}.k-upload-items{gap:.25rem;display:grid}.k-upload-item{accent-color:var(--color-focus);grid-template-columns:6rem 1fr auto;grid-template-areas:"preview input input""preview body toggle";grid-template-rows:var(--input-height)1fr;border-radius:var(--rounded);background:var(--color-white);box-shadow:var(--shadow);min-height:6rem;display:grid}.k-upload-item-preview{border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded);grid-area:preview;width:100%;height:100%;display:flex;overflow:hidden}.k-upload-item-preview:focus{border-radius:var(--rounded);outline:2px solid var(--color-focus);z-index:1}.k-upload-item-body{padding:var(--spacing-2)var(--spacing-3);flex-direction:column;grid-area:body;justify-content:space-between;min-width:0;display:flex}.k-upload-item-input.k-input{--input-color-border:transparent;--input-padding:var(--spacing-2)var(--spacing-3);--input-rounded:0;font-size:var(--text-sm);border-bottom:1px solid var(--color-light);grid-area:input}.k-upload-item-input.k-input:focus-within{outline:2px solid var(--color-focus);z-index:1;border-radius:var(--rounded)}.k-upload-item-input .k-input-after{color:var(--color-gray-600)}.k-upload-item-meta{font-size:var(--text-xs);color:var(--color-gray-600)}.k-upload-item-error{font-size:var(--text-xs);color:var(--color-red-700);margin-top:.25rem}.k-upload-item-progress{--progress-height:.25rem;--progress-color-back:var(--color-light)}.k-upload-item-toggle{grid-area:toggle;align-self:end}.k-upload-item-toggle>*{padding:var(--spacing-3)}.k-upload-item[data-completed] .k-upload-item-progress{--progress-color-value:var(--color-green-400)}.k-upload-replace-dialog .k-upload-items{gap:var(--spacing-3);align-items:center;display:flex}.k-upload-original{border-radius:var(--rounded);box-shadow:var(--shadow);width:6rem;overflow:hidden}.k-upload-replace-dialog .k-upload-item{flex-grow:1}.k-drawer-body{padding:var(--drawer-body-padding);background:var(--color-background);flex-grow:1}.k-drawer-body .k-writer-input-wrapper:focus-within .k-toolbar:not([data-inline=true]),.k-drawer-body .k-textarea-input-wrapper:focus-within .k-toolbar,.k-drawer-body .k-table th{top:-1.5rem}.k-drawer-header{--button-height:calc(var(--drawer-header-height) - var(--spacing-1));height:var(--drawer-header-height);background:var(--color-white);line-height:1;font-size:var(--text-sm);flex-shrink:0;justify-content:space-between;align-items:center;padding-inline-start:var(--drawer-header-padding);display:flex}.k-drawer-breadcrumb{flex-grow:1}.k-drawer-options{align-items:center;padding-inline-end:.75rem;display:flex}.k-drawer-option{--button-width:var(--button-height)}.k-drawer-option[aria-disabled]{opacity:var(--opacity-disabled)}.k-notification.k-drawer-notification{padding:.625rem 1.5rem}.k-drawer-tabs{align-items:center;line-height:1;display:flex}.k-drawer-tab.k-button{--button-height:calc(var(--drawer-header-height) - var(--spacing-1));--button-padding:var(--spacing-3);font-size:var(--text-xs);align-items:center;display:flex;overflow-x:visible}.k-drawer-tab.k-button[aria-current]:after{bottom:-2px;inset-inline:var(--button-padding);content:"";background:var(--color-black);z-index:1;height:2px;position:absolute}:root{--drawer-body-padding:1.5rem;--drawer-color-back:var(--color-light);--drawer-header-height:2.5rem;--drawer-header-padding:1rem;--drawer-shadow:var(--shadow-xl);--drawer-width:50rem}.k-drawer-overlay+.k-drawer-overlay{--overlay-color-back:none}.k-drawer{--header-sticky-offset:calc(var(--drawer-body-padding)*-1);z-index:var(--z-toolbar);flex-basis:var(--drawer-width);background:var(--drawer-color-back);box-shadow:var(--drawer-shadow);flex-direction:column;display:flex;position:relative;container-type:inline-size}.k-drawer[aria-disabled]{pointer-events:none;display:none}.k-dropdown{position:relative}:root{--dropdown-color-bg:var(--color-black);--dropdown-color-text:var(--color-white);--dropdown-color-hr:#ffffff40;--dropdown-padding:var(--spacing-2);--dropdown-rounded:var(--rounded);--dropdown-shadow:var(--shadow-xl)}.k-dropdown-content{--dropdown-x:0;--dropdown-y:0;inset-block-start:0;inset-inline-start:initial;padding:var(--dropdown-padding);background:var(--dropdown-color-bg);border-radius:var(--dropdown-rounded);color:var(--dropdown-color-text);box-shadow:var(--dropdown-shadow);text-align:start;transform:translate(var(--dropdown-x),var(--dropdown-y));width:max-content;position:absolute;left:0}.k-dropdown-content::backdrop{background:0 0}.k-dropdown-content[data-align-x=end]{--dropdown-x:-100%}.k-dropdown-content[data-align-x=center]{--dropdown-x:-50%}.k-dropdown-content[data-align-y=top]{--dropdown-y:-100%}.k-dropdown-content hr{background:var(--dropdown-color-hr);height:1px;margin:.5rem 0}.k-dropdown-content[data-theme=light]{--dropdown-color-bg:var(--color-white);--dropdown-color-text:var(--color-black);--dropdown-color-hr:#0000001a}.k-dropdown-item.k-button{--button-align:flex-start;--button-color-text:var(--dropdown-color-text);--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-width:100%;gap:.75rem;display:flex}.k-dropdown-item.k-button[aria-current]{--button-color-text:var(--color-blue-500)}.k-dropdown-item.k-button:not([aria-disabled]):hover{--button-color-back:var(--dropdown-color-hr)}.k-options-dropdown{justify-content:center;align-items:center;display:flex}:root{--selector-color-highlight:var(--color-yellow-500)}.k-selector{--button-align:start;--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-width:100%}.k-selector-input{height:var(--button-height);padding:0 var(--button-padding);border-radius:var(--button-rounded)}.k-selector-input::placeholder{color:var(--color-text-dimmed)}.k-selector[data-has-current=true] .k-selector-input:focus{outline:0}.k-selector-empty{height:var(--button-height);padding-inline:var(--button-padding);color:var(--color-text-dimmed);align-items:center;display:flex}.k-selector-button[aria-current]{outline:var(--outline)}.k-selector-button b{color:var(--selector-color-highlight);font-weight:var(--font-normal)}.k-selector-add-button{--button-height:auto;padding-block:var(--button-padding)}.k-selector-add-button .k-button-icon{align-self:start}.k-selector-add-button .k-button-text strong{font-weight:var(--font-semi);margin-bottom:.25rem;display:block}.k-selector-preview{color:var(--selector-color-highlight)}.k-selector-dropdown-content{--color-text-dimmed:var(--color-gray-400);min-width:15rem;max-width:30rem;padding:0}.k-selector-dropdown .k-selector-header{border-bottom:1px solid var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-label{padding-inline:var(--spacing-3);height:var(--height-lg);font-weight:var(--font-semi);align-items:center;display:flex}.k-selector-dropdown .k-selector-search{padding:var(--dropdown-padding);border-top:1px solid var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-input{background:var(--color-gray-800)}.k-selector-dropdown .k-selector-footer{padding:var(--dropdown-padding)}.k-selector-dropdown .k-selector-body{max-height:calc((var(--button-height)*10) + calc(var(--dropdown-padding)*2));padding:var(--dropdown-padding);overscroll-behavior:contain;scroll-padding-top:var(--dropdown-padding);scroll-padding-bottom:var(--dropdown-padding);overflow-y:auto}.k-selector-dropdown .k-selector-button{gap:.75rem}.k-selector-dropdown .k-selector-button:hover{--button-color-back:var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-body+.k-selector-footer{border-top:1px solid var(--dropdown-color-hr)}.k-counter{font-size:var(--text-xs);color:var(--color-gray-900)}.k-counter[data-invalid=true]{box-shadow:none;color:var(--color-red-700);border:0}.k-counter-rules{color:var(--color-gray-600);font-weight:var(--font-normal);padding-inline-start:.5rem}.k-form-submitter{display:none}.k-field-header{margin-bottom:var(--spacing-2);position:relative}.k-field[data-disabled=true]{cursor:not-allowed}.k-field[data-disabled=true] *{pointer-events:none}.k-field[data-disabled=true] .k-text[data-theme=help] *{pointer-events:initial}.k-field:focus-within>.k-field-header>.k-field-counter{display:block}.k-field-footer{margin-top:var(--spacing-2)}.k-fieldset{border:0}:root{--input-color-back:var(--color-white);--input-color-border:var(--color-border);--input-color-description:var(--color-text-dimmed);--input-color-icon:currentColor;--input-color-placeholder:var(--color-gray-600);--input-color-text:currentColor;--input-font-family:var(--font-sans);--input-font-size:var(--text-sm);--input-height:2.25rem;--input-leading:1;--input-outline-focus:var(--outline);--input-padding:var(--spacing-2);--input-padding-multiline:.475rem var(--input-padding);--input-rounded:var(--rounded);--input-shadow:none}@media (pointer:coarse){:root{--input-font-size:var(--text-md);--input-padding-multiline:.375rem var(--input-padding)}}.k-input{line-height:var(--input-leading);background:var(--input-color-back);border-radius:var(--input-rounded);outline:1px solid var(--input-color-border);color:var(--input-color-text);min-height:var(--input-height);box-shadow:var(--input-shadow);font-family:var(--input-font-family);font-size:var(--input-font-size);border:0;align-items:center;display:flex}.k-input:focus-within{outline:var(--input-outline-focus)}.k-input-element{flex-grow:1}.k-input-icon{color:var(--input-color-icon);width:var(--input-height);justify-content:center;align-items:center;display:flex}.k-input-icon-button{flex-shrink:0;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.k-input-description{color:var(--input-color-description);padding-inline:var(--input-padding)}.k-input-before{padding-inline-end:0}.k-input-after{padding-inline-start:0}.k-input :where(.k-input-description,.k-input-icon){flex-shrink:0;align-self:stretch;align-items:center;display:flex}.k-input[data-disabled=true]{--input-color-back:var(--color-background);--input-color-icon:var(--color-gray-600);pointer-events:none}.k-login-code-form .k-user-info{margin-bottom:var(--spacing-6)}.k-structure-backdrop{z-index:2;height:100vh;position:absolute;inset:0}.k-structure-form section{z-index:3;border-radius:var(--rounded-xs);border:1px solid var(--color-border);background:var(--color-background);margin-bottom:1px;position:relative;box-shadow:0 0 0 3px #1111110d}.k-structure-form-fields{padding:1.5rem 1.5rem 2rem}.k-structure-form-buttons{border-top:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:.25rem .5rem;display:flex}@container (width<=30rem){.k-pagination-details{display:none}}:root{--toolbar-size:var(--height);--toolbar-text:var(--color-gray-400);--toolbar-back:var(--color-white);--toolbar-hover:#efefef80;--toolbar-border:var(--color-background)}.k-toolbar{height:var(--toolbar-size);color:var(--toolbar-text);background:var(--toolbar-back);border-bottom:1px solid var(--toolbar-border);border-start-start-radius:var(--rounded);border-start-end-radius:var(--rounded);align-items:center;max-width:100%;display:flex;overflow:auto hidden}.k-toolbar-divider{height:var(--toolbar-size);border-left:1px solid var(--toolbar-border);width:1px}.k-toolbar-button.k-button{--button-width:var(--toolbar-size);--button-height:var(--toolbar-size)}.k-toolbar-button:hover{--button-color-back:var(--toolbar-hover)}.k-writer-input:focus-within .k-toolbar:not([data-inline=true]),.k-textarea-input:focus-within .k-toolbar:not([data-inline=true]){top:var(--header-sticky-offset);z-index:1;--toolbar-text:var(--color-black);--toolbar-border:#0000001a;position:sticky;inset-inline:0;box-shadow:0 2px 5px #0000000d}.k-block-type-code-editor{--input-color-border:none;--input-color-back:var(--color-black);--input-color-text:var(--color-white);--input-font-family:var(--font-mono);--input-outline-focus:none;--input-padding:var(--spacing-3);--input-padding-multiline:var(--input-padding);position:relative}.k-block-type-code-editor .k-input[data-type=textarea]{white-space:pre-wrap}.k-block-type-code-editor-language{--input-font-size:var(--text-xs);inset-inline-end:0;position:absolute;bottom:0}.k-block-type-code-editor-language .k-input-element{padding-inline-start:1.5rem}.k-block-type-code-editor-language .k-input-icon{inset-inline-start:0}.k-block-type-default .k-block-title{line-height:1.5em}.k-block-container.k-block-container-type-fields{padding-block:0}.k-block-container:not([data-hidden=true]) .k-block-type-fields>:not([data-collapsed=true]){padding-bottom:var(--spacing-3)}.k-block-type-fields-header{background:var(--color-white);justify-content:space-between;display:flex}.k-block-type-fields-header .k-block-title{padding-block:var(--spacing-3);cursor:pointer}.k-block-type-fields-form{background-color:var(--color-gray-200);padding:var(--spacing-6)var(--spacing-6)var(--spacing-8);border-radius:var(--rounded-sm)}.k-block-container-type-fields[data-hidden=true] :where(.k-drawer-tabs,.k-block-type-fields-form){display:none}.k-block-type-gallery ul{grid-gap:.75rem;cursor:pointer;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));justify-content:center;align-items:center;line-height:0;display:grid}.k-block-type-gallery-placeholder{background:var(--color-background)}.k-block-type-gallery figcaption{color:var(--color-gray-600);font-size:var(--text-sm);text-align:center;padding-top:.5rem}.k-block-type-heading-input{line-height:1.25em;font-size:var(--text-size);font-weight:var(--font-bold);align-items:center;display:flex}.k-block-type-heading-input[data-level=h1]{--text-size:var(--text-3xl);line-height:1.125em}.k-block-type-heading-input[data-level=h2]{--text-size:var(--text-2xl)}.k-block-type-heading-input[data-level=h3]{--text-size:var(--text-xl)}.k-block-type-heading-input[data-level=h4]{--text-size:var(--text-lg)}.k-block-type-heading-input[data-level=h5]{--text-size:var(--text-md);line-height:1.5em}.k-block-type-heading-input[data-level=h6]{--text-size:var(--text-sm);line-height:1.5em}.k-block-type-heading-input .k-writer .ProseMirror strong{font-weight:700}.k-block-type-heading-level{--input-color-border:none;--input-color-text:var(--color-gray-600);font-weight:var(--font-bold);text-transform:uppercase}.k-block-type-image .k-block-figure-container{text-align:center;line-height:0}.k-block-type-image-auto{max-width:100%;max-height:30rem;margin-inline:auto}.k-block-type-line hr{border:0;border-top:1px solid var(--color-border);margin-block:.75rem}.k-block-type-list-input{--input-color-border:none;--input-outline-focus:none}.k-block-type-markdown-input{--input-color-back:var(--color-light);--input-color-border:none;--input-outline-focus:none;--input-padding-multiline:var(--spacing-3)}.k-block-type-quote-editor{border-inline-start:2px solid var(--color-black);padding-inline-start:var(--spacing-3)}.k-block-type-quote-text{font-size:var(--text-xl);margin-bottom:var(--spacing-1);line-height:1.25em}.k-block-type-quote-citation{color:var(--color-text-dimmed);font-style:italic}.k-block-type-table-preview{cursor:pointer;border:1px solid var(--color-gray-300);border-spacing:0;border-radius:var(--rounded-sm);overflow:hidden}.k-block-type-table-preview td,.k-block-type-table-preview th{text-align:start;line-height:1.5em;font-size:var(--text-sm)}.k-block-type-table-preview th{padding:.5rem .75rem}.k-block-type-table-preview td:not(.k-table-index-column){padding:0 .75rem}.k-block-type-table-preview td>*,.k-block-type-table-preview td [class$=-field-preview]{padding:0}.k-block-type-text-input{height:100%;line-height:1.5}.k-block-container.k-block-container-type-text{padding:0}.k-block-type-text-input.k-writer[data-toolbar-inline=true]{padding:var(--spacing-3)}.k-block-type-text-input.k-writer:not([data-toolbar-inline=true])>.ProseMirror,.k-block-type-text-input.k-writer:not([data-toolbar-inline=true])[data-placeholder][data-empty=true]:before{padding:var(--spacing-3)var(--spacing-6)}.k-block-container{background:var(--color-white);border-radius:var(--rounded);padding:.75rem;position:relative}.k-block-container:not(:last-of-type){border-bottom:1px dashed #0000001a}.k-block-container:focus{outline:0}.k-block-container[data-selected=true]{z-index:2;outline:var(--outline);border-bottom-color:#0000}.k-block-container[data-batched=true]:after{content:"";mix-blend-mode:multiply;background:#b1c2d82d;position:absolute;inset:0}.k-block-container .k-block-options{top:0;margin-top:calc(2px - 1.75rem);display:none;position:absolute;inset-inline-end:.75rem}.k-block-container[data-last-selected=true]>.k-block-options{display:flex}.k-block-container[data-hidden=true] .k-block{opacity:.25}.k-drawer-options .k-drawer-option[data-disabled=true]{vertical-align:middle;display:inline-grid}[data-disabled=true] .k-block-container{background:var(--color-background)}.k-block-container:is(.k-sortable-ghost,.k-sortable-fallback) .k-block{max-height:4rem;position:relative;overflow:hidden}.k-block-container:is(.k-sortable-ghost,.k-sortable-fallback) .k-block:after{content:"";background:linear-gradient(to top,var(--color-white),transparent);width:100%;height:2rem;position:absolute;bottom:0}.k-blocks{background:var(--color-white);box-shadow:var(--shadow);border-radius:var(--rounded)}[data-disabled=true] .k-blocks{background:var(--color-background)}.k-blocks[data-multi-select-key=true] .k-block-container *{pointer-events:none}.k-blocks[data-empty=true]{box-shadow:none;background:0 0;padding:0}.k-blocks .k-sortable-ghost{outline:2px solid var(--color-focus);cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing;box-shadow:0 5px 10px #11111140}.k-blocks-list>.k-blocks-empty{align-items:center;display:flex}.k-blocks-list>.k-blocks-empty:not(:only-child){display:none}.k-block-figure{cursor:pointer}.k-block-figure iframe{pointer-events:none;background:var(--color-black);border:0}.k-block-figure figcaption{color:var(--color-text-dimmed);font-size:var(--text-sm);text-align:center;padding-top:.5rem}.k-block-figure-empty{--button-width:100%;--button-height:6rem;--button-color-text:var(--color-text-dimmed);--button-color-back:var(--color-gray-200)}.k-block-figure-empty,.k-block-figure-container>*{border-radius:var(--rounded-sm)}.k-block-options{background:var(--color-white);z-index:var(--z-dropdown);box-shadow:var(--shadow-toolbar);color:var(--color-black);border-radius:var(--rounded);align-items:center;display:flex}.k-block-options-button{--block-options-button-size:30px;width:var(--block-options-button-size);height:var(--block-options-button-size);border-inline-end:1px solid var(--color-background);justify-content:center;align-items:center;line-height:1;display:inline-flex}.k-block-options-button:first-child{border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded)}.k-block-options-button:last-child{border-start-end-radius:var(--rounded);border-end-end-radius:var(--rounded)}.k-block-options-button:last-of-type{border-inline-end:0}.k-block-options-button[aria-current]{color:var(--color-focus)}.k-block-options-button:hover{background:var(--color-gray-100)}.k-block-options .k-dropdown-content{margin-top:.5rem}.k-block-importer .k-dialog-body{padding:0}.k-block-importer label{padding:var(--spacing-6)var(--spacing-6)0;color:var(--color-text-dimmed);line-height:var(--leading-normal);display:block}.k-block-importer label small{font-size:inherit;display:block}.k-block-importer textarea{font:inherit;color:var(--color-white);padding:var(--spacing-6);resize:none;background:0 0;border:0;width:100%;height:20rem}.k-block-importer textarea:focus{outline:0}.k-block-selector .k-headline{margin-bottom:1rem}.k-block-selector details+details{margin-top:var(--spacing-6)}.k-block-selector summary{font-size:var(--text-xs);cursor:pointer;color:var(--color-text-dimmed)}.k-block-selector details:only-of-type summary{pointer-events:none}.k-block-selector summary:focus{outline:0}.k-block-selector summary:focus-visible{color:var(--color-focus)}.k-block-types{grid-gap:2px;grid-template-columns:repeat(1,1fr);margin-top:.75rem;display:grid}.k-block-types .k-button{--button-color-icon:var(--color-text);--button-color-back:var(--color-white);--button-padding:var(--spacing-3);box-shadow:var(--shadow);justify-content:start;gap:1rem;width:100%}.k-block-types .k-button[aria-disabled]{opacity:var(--opacity-disabled);--button-color-back:var(--color-gray-200);box-shadow:none}.k-clipboard-hint{line-height:var(--leading-normal);font-size:var(--text-xs);color:var(--color-text-dimmed);padding-top:1.5rem}.k-clipboard-hint small{font-size:inherit;color:var(--color-text-dimmed);display:block}.k-block-title{align-items:center;gap:var(--spacing-2);min-width:0;padding-inline-end:.75rem;line-height:1;display:flex}.k-block-icon{--icon-color:var(--color-gray-600);width:1rem}.k-block-label{color:var(--color-text-dimmed);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-blocks-field{position:relative}.k-blocks-field>footer{margin-top:var(--spacing-3)}.k-color-input{font-family:var(--font-mono)}.k-color-field{--color-frame-size:calc(var(--input-height) - var(--spacing-2))}.k-color-field .k-input-before{align-items:center;padding-inline-start:var(--spacing-1)}.k-color-field-options{--color-frame-size:var(--input-height)}.k-color-field-picker{padding:var(--spacing-3)}.k-color-field-picker-toggle{--color-frame-rounded:var(--rounded-sm);border-radius:var(--color-frame-rounded)}.k-color-field .k-colorname-input{padding-inline:var(--input-padding)}.k-color-field .k-colorname-input:focus{outline:0}.k-date-field-body{gap:var(--spacing-2);display:grid}@container (width>=20rem){.k-date-field-body[data-has-time=true]{grid-template-columns:1fr minmax(6rem,9rem)}}.k-text-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-text-input:focus{outline:0}.k-text-input[data-font=monospace]{font-family:var(--font-mono)}.k-models-field[data-disabled=true] .k-item *{pointer-events:all!important}.k-headline-field{padding-top:1.5rem;position:relative}.k-fieldset>.k-grid .k-column:first-child .k-headline-field{padding-top:0}.k-headline-field h2.k-headline{font-weight:var(--font-normal)}.k-headline-field footer{margin-top:var(--spacing-2)}.k-info-field .k-headline{padding-bottom:.75rem;line-height:1.25rem}.k-line-field{border:0;width:auto;height:3rem;position:relative}.k-line-field:after{content:"";top:50%;background:var(--color-border);height:1px;margin-top:-1px;position:absolute;inset-inline:0}.k-link-input-header{height:var(--input-height);grid-area:header;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.25rem;display:grid}.k-link-input-toggle.k-button{--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-color-back:var(--color-gray-200);margin-inline-start:.25rem}.k-link-input-model{--tag-height:var(--height-sm);--tag-color-back:var(--color-gray-200);--tag-color-text:var(--color-black);--tag-color-toggle:var(--tag-color-text);--tag-color-toggle-border:var(--color-gray-300);--tag-color-focus-back:var(--tag-color-back);--tag-color-focus-text:var(--tag-color-text);--tag-rounded:var(--rounded-sm);justify-content:space-between;margin-inline-end:var(--spacing-1);display:flex;overflow:hidden}.k-link-input-model-placeholder.k-button{--button-align:flex-start;--button-color-text:var(--color-gray-600);--button-height:var(--height-sm);--button-padding:var(--spacing-2);white-space:nowrap;flex-grow:1;align-items:center;overflow:hidden}.k-link-input-model-toggle{--button-height:var(--height-sm);--button-width:var(--height-sm)}.k-link-input-body{border-top:1px solid var(--color-gray-300);background:var(--color-gray-100);--tree-color-back:var(--color-gray-100);--tree-color-hover-back:var(--color-gray-200);display:grid;overflow:hidden}.k-link-input-body[data-type=page] .k-page-browser{padding:var(--spacing-2);padding-bottom:calc(var(--spacing-2) - 1px);width:100%;overflow:auto;container-type:inline-size}.k-writer{gap:var(--spacing-1);grid-template-areas:"content";width:100%;display:grid;position:relative}.k-writer .ProseMirror{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;white-space:pre-wrap;font-variant-ligatures:none;padding:var(--input-padding-multiline);grid-area:content}.k-writer .ProseMirror:focus{outline:0}.k-writer .ProseMirror *{caret-color:currentColor}.k-writer .ProseMirror hr.ProseMirror-selectednode{outline:var(--outline)}.k-writer[data-placeholder][data-empty=true]:before{content:attr(data-placeholder);color:var(--input-color-placeholder);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;line-height:var(--text-line-height);padding:var(--input-padding-multiline);grid-area:content}.k-list-input.k-writer[data-placeholder][data-empty=true]:before{padding-inline-start:2.5em}.k-list-field .k-list-input .ProseMirror,.k-list-field .k-list-input:before{padding:.475rem .5rem .475rem .75rem}:root{--tags-gap:.375rem}.k-tags{gap:var(--tags-gap);flex-wrap:wrap;align-items:center;display:inline-flex}.k-tags .k-sortable-ghost{outline:var(--outline)}.k-tags[data-layout=list],.k-tags[data-layout=list] .k-tag{width:100%}.k-tags-toggle.k-button{--button-rounded:var(--rounded-sm);--button-color-icon:var(--color-gray-600);opacity:0;transition:opacity .3s}.k-tags:is(:hover,:focus-within) .k-tags-toggle{opacity:1}.k-tags .k-tags-toggle:is(:focus,:hover){--button-color-icon:var(--color-text)}.k-tags-input{padding:var(--tags-gap)}.k-number-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-number-input:focus{outline:0}.k-table.k-object-field-table{table-layout:auto}.k-table.k-object-field-table tbody td{max-width:0}.k-range-input{--range-track-height:1px;--range-track-back:var(--color-gray-300);--range-tooltip-back:var(--color-black);border-radius:var(--range-track-height);align-items:center;display:flex}.k-range-input input[type=range]:focus{outline:0}.k-range-input-tooltip{color:var(--color-white);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-align:center;border-radius:var(--rounded-sm);background:var(--range-tooltip-back);white-space:nowrap;align-items:center;max-width:20%;margin-inline-start:1rem;padding:0 .25rem;line-height:1;display:flex;position:relative}.k-range-input-tooltip:after{top:50%;border-block:3px solid #0000;border-inline-end:3px solid var(--range-tooltip-back);content:"";width:0;height:0;position:absolute;inset-inline-start:-3px;transform:translateY(-50%)}.k-range-input-tooltip>*{padding:var(--spacing-1)}.k-range-input[data-disabled=true]{--range-tooltip-back:var(--color-gray-600)}.k-input[data-type=range] .k-range-input{padding-inline:var(--input-padding)}.k-select-input{padding:var(--input-padding);border-radius:var(--input-rounded);display:block;position:relative;overflow:hidden}.k-select-input[data-empty=true]{color:var(--input-color-placeholder)}.k-select-input-native{opacity:0;z-index:1;position:absolute;inset:0}.k-select-input-native[disabled]{cursor:default}.k-input[data-type=select]{position:relative}.k-input[data-type=select] .k-input-icon{position:absolute;inset-block:0;inset-inline-end:0}.k-structure-field:not([data-disabled=true]) td.k-table-column{cursor:pointer}.k-structure-field .k-table+footer{margin-top:var(--spacing-3)}.k-field-counter{display:none}.k-text-field:focus-within .k-field-counter{display:block}.k-textarea-input[data-size=small]{--textarea-size:7.5rem}.k-textarea-input[data-size=medium]{--textarea-size:15rem}.k-textarea-input[data-size=large]{--textarea-size:30rem}.k-textarea-input[data-size=huge]{--textarea-size:45rem}.k-textarea-input-wrapper{display:block;position:relative}.k-textarea-input-native{resize:none;min-height:var(--textarea-size)}.k-textarea-input-native:focus{outline:0}.k-textarea-input-native[data-font=monospace]{font-family:var(--font-mono)}.k-input[data-type=textarea] .k-input-element{min-width:0}.k-input[data-type=textarea] .k-textarea-input-native{padding:var(--input-padding-multiline)}.k-input[data-type=toggle]{--input-color-border:transparent;--input-shadow:var(--shadow)}.k-input[data-type=toggle] .k-input-before{padding-inline-end:calc(var(--input-padding)/2)}.k-input[data-type=toggle] .k-toggle-input{padding-inline-start:var(--input-padding)}.k-input[data-type=toggle][data-disabled]{box-shadow:none}.k-input[data-type=toggles]{display:inline-flex}.k-input[data-type=toggles].grow{display:flex}.k-input[data-type=toggles]:has(.k-empty){outline:0;display:flex}.k-toggles-input{grid-template-columns:repeat(var(--options),minmax(0,1fr));border-radius:var(--rounded);background:var(--color-border);gap:1px;line-height:1;display:grid;overflow:hidden}.k-toggles-input li{height:var(--field-input-height);background:var(--color-white)}.k-toggles-input label{background:var(--color-white);cursor:pointer;font-size:var(--text-sm);padding:0 var(--spacing-3);justify-content:center;align-items:center;height:100%;line-height:1.25;display:flex}.k-toggles-input li[data-disabled=true] label{color:var(--color-text-dimmed);background:var(--color-light)}.k-toggles-input .k-icon+.k-toggles-text{margin-inline-start:var(--spacing-2)}.k-toggles-input input:focus:not(:checked)+label{background:var(--color-gray-200)}.k-toggles-input input:checked+label{background:var(--color-black);color:var(--color-white)}.k-alpha-input{--range-track-back:linear-gradient(to right,transparent,currentColor);color:#000;background:var(--color-white)var(--pattern-light);--range-track-height:var(--range-thumb-size)}.k-calendar-input{--button-height:var(--height-sm);--button-width:var(--button-height);--button-padding:0;padding:var(--spacing-2);width:min-content}.k-calendar-table{table-layout:fixed;min-width:15rem}.k-calendar-input .k-button{justify-content:center}.k-calendar-input>nav{direction:ltr;margin-bottom:var(--spacing-2);align-items:center;display:flex}.k-calendar-selects{flex-grow:1;justify-content:center;align-items:center;display:flex}[dir=ltr] .k-calendar-selects{direction:ltr}[dir=rtl] .k-calendar-selects{direction:rtl}.k-calendar-selects .k-select-input{text-align:center;height:var(--button-height);border-radius:var(--input-rounded);align-items:center;padding:0 .5rem;display:flex}.k-calendar-selects .k-select-input:focus-within{outline:var(--outline)}.k-calendar-input th{color:var(--color-gray-500);font-size:var(--text-xs);text-align:center;padding-block:.5rem}.k-calendar-day{padding:2px}.k-calendar-day[aria-current=date] .k-button{text-decoration:underline}.k-calendar-day[aria-selected=date] .k-button,.k-calendar-day[aria-selected=date] .k-button:focus{--button-color-text:var(--color-text);--button-color-back:var(--color-blue-500)}.k-calendar-day[aria-selected=date] .k-button:focus-visible{outline-offset:2px}.k-calendar-today{padding-top:var(--spacing-2);text-align:center}.k-calendar-today .k-button{--button-width:auto;--button-padding:var(--spacing-3);font-size:var(--text-xs);text-decoration:underline}.k-choice-input{gap:var(--spacing-3);min-width:0;display:flex}.k-choice-input input{top:2px}.k-choice-input-label{color:var(--choice-color-text);flex-direction:column;min-width:0;line-height:1.25rem;display:flex}.k-choice-input-label>*{text-overflow:ellipsis;display:block;overflow:hidden}.k-choice-input-label-info{color:var(--choice-color-info)}.k-choice-input[aria-disabled]{cursor:not-allowed}:where(.k-checkboxes-field,.k-radio-field) .k-choice-input{background:var(--input-color-back);min-height:var(--input-height);padding-block:var(--spacing-2);padding-inline:var(--spacing-3);border-radius:var(--input-rounded);box-shadow:var(--shadow)}.k-string-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-string-input:focus{outline:0}.k-string-input[data-font=monospace]{font-family:var(--font-mono)}.k-coloroptions-input{--color-preview-size:var(--input-height)}.k-coloroptions-input ul{grid-template-columns:repeat(auto-fill,var(--color-preview-size));gap:var(--spacing-2);display:grid}.k-coloroptions-input input:focus+.k-color-frame{outline:var(--outline)}.k-coloroptions-input[disabled] label{opacity:var(--opacity-disabled);cursor:not-allowed}.k-coloroptions-input input:checked+.k-color-frame{outline-offset:2px;outline:2px solid}.k-colorpicker-input{--h:0;--s:0%;--l:0%;--a:1;--range-thumb-size:.75rem;--range-track-height:.75rem;gap:var(--spacing-3);flex-direction:column;width:max-content;display:flex}.k-colorpicker-input .k-coords-input{border-radius:var(--rounded-sm);aspect-ratio:1;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--h),100%,50%))}.k-colorpicker-input .k-alpha-input{color:hsl(var(--h),var(--s),var(--l))}.k-colorpicker-input .k-coloroptions-input ul{grid-template-columns:repeat(6,1fr)}.k-coords-input{position:relative;display:block!important}.k-coords-input img{width:100%}.k-coords-input-thumb{aspect-ratio:1;width:var(--range-thumb-size);background:var(--range-thumb-color);border-radius:var(--range-thumb-size);box-shadow:var(--range-thumb-shadow);cursor:move;position:absolute;transform:translate(-50%,-50%)}.k-coords-input[data-empty] .k-coords-input-thumb{opacity:0}.k-coords-input-thumb:active{cursor:grabbing}.k-coords-input:focus-within{outline:var(--outline)}.k-coords-input[aria-disabled]{pointer-events:none;opacity:var(--opacity-disabled)}.k-coords-input .k-coords-input-thumb:focus{outline:var(--outline)}.k-hue-input{--range-track-back:linear-gradient(to right,red 0%,#ff0 16.67%,#0f0 33.33%,#0ff 50%,#00f 66.67%,#f0a 83.33%,red 100%)no-repeat;--range-track-height:var(--range-thumb-size)}.k-multiselect-input{padding:var(--tags-gap)}.k-timeoptions-input{--button-height:var(--height-sm);gap:var(--spacing-3);grid-template-columns:1fr 1fr;display:grid}.k-timeoptions-input h3{padding-inline:var(--button-padding);height:var(--button-height);margin-bottom:var(--spacing-1);align-items:center;display:flex}.k-timeoptions-input hr{margin:var(--spacing-2)var(--spacing-3)}.k-timeoptions-input .k-button[aria-selected=time]{--button-color-text:var(--color-text);--button-color-back:var(--color-blue-500)}.k-layout{--layout-border-color:var(--color-gray-300);--layout-toolbar-width:2rem;box-shadow:var(--shadow);background:#fff;padding-inline-end:var(--layout-toolbar-width);position:relative}[data-disabled=true] .k-layout{padding-inline-end:0}.k-layout:not(:last-of-type){margin-bottom:1px}.k-layout:focus{outline:0}.k-layout-toolbar{width:var(--layout-toolbar-width);padding-bottom:var(--spacing-2);font-size:var(--text-sm);background:var(--color-gray-100);border-inline-start:1px solid var(--color-light);color:var(--color-gray-500);flex-direction:column;justify-content:space-between;align-items:center;display:flex;position:absolute;inset-block:0;inset-inline-end:0}.k-layout-toolbar:hover{color:var(--color-black)}.k-layout-toolbar-button{width:var(--layout-toolbar-width);height:var(--layout-toolbar-width)}.k-layout-columns.k-grid{grid-gap:1px;background:var(--layout-border-color);background:var(--color-gray-300)}.k-layout:not(:first-child) .k-layout-columns.k-grid{border-top:0}.k-layout-column{background:var(--color-white);flex-direction:column;height:100%;min-height:6rem;display:flex;position:relative}.k-layout-column:focus{outline:0}.k-layout-column .k-blocks{box-shadow:none;background:0 0;background:var(--color-white);height:100%;min-height:4rem;padding:0}.k-layout-column .k-blocks[data-empty=true]{min-height:6rem}.k-layout-column .k-blocks-list{flex-direction:column;height:100%;display:flex}.k-layout-column .k-blocks .k-block-container:last-of-type{flex-grow:1}.k-layout-column .k-blocks-empty.k-box{--box-color-back:transparent;opacity:0;border:0;justify-content:center;transition:opacity .3s;position:absolute;inset:0}.k-layout-column .k-blocks-empty:hover{opacity:1}.k-layouts .k-sortable-ghost{outline:2px solid var(--color-focus);cursor:grabbing;z-index:1;position:relative;box-shadow:0 5px 10px #11111140}.k-layouts-footer{margin-top:var(--spacing-3)}.k-layout-selector h3{margin-top:-.5rem;margin-bottom:var(--spacing-3)}.k-layout-selector-options{gap:var(--spacing-6);grid-template-columns:repeat(3,1fr);display:grid}@media screen and (width>=65em){.k-layout-selector-options{grid-template-columns:repeat(var(--columns),1fr)}}.k-layout-selector-option{--color-border:hsla(var(--color-gray-hs),0%,6%);--color-back:var(--color-white);border-radius:var(--rounded)}.k-layout-selector-option:focus-visible{outline:var(--outline);outline-offset:-1px}.k-layout-selector-option .k-grid{border:1px solid var(--color-border);grid-template-columns:repeat(var(--columns),1fr);cursor:pointer;background:var(--color-border);border-radius:var(--rounded);box-shadow:var(--shadow);gap:1px;height:5rem;overflow:hidden}.k-layout-selector-option .k-column{grid-column:span var(--span);background:var(--color-back);height:100%}.k-layout-selector-option:hover{--color-border:var(--color-gray-500);--color-back:var(--color-gray-100)}.k-layout-selector-option[aria-current]{--color-border:var(--color-focus);--color-back:var(--color-blue-300)}.k-bubbles{gap:.25rem;display:flex}.k-bubbles-field-preview{--bubble-back:var(--color-light);--bubble-text:var(--color-black);padding:.375rem var(--table-cell-padding);overflow:hidden}.k-bubbles-field-preview .k-bubbles{gap:.375rem}.k-color-field-preview{--color-frame-rounded:var(--tag-rounded);--color-frame-size:var(--tag-height);padding:.375rem var(--table-cell-padding);align-items:center;gap:var(--spacing-2);display:flex}.k-text-field-preview{text-overflow:ellipsis;white-space:nowrap;padding:.325rem .75rem;overflow-x:hidden}.k-url-field-preview{padding-inline:var(--table-cell-padding)}.k-url-field-preview[data-link]{color:var(--link-color)}.k-url-field-preview a{height:var(--height-xs);padding-inline:var(--spacing-1);margin-inline:calc(var(--spacing-1)*-1);border-radius:var(--rounded);align-items:center;min-width:0;max-width:100%;display:inline-flex}.k-url-field-preview a>*{white-space:nowrap;text-overflow:ellipsis;text-underline-offset:var(--link-underline-offset);text-decoration:underline;overflow:hidden}.k-url-field-preview a:hover{color:var(--color-black)}.k-flag-field-preview{--button-height:var(--table-row-height);--button-width:100%;outline-offset:-2px}.k-html-field-preview{padding:.375rem var(--table-cell-padding);text-overflow:ellipsis;overflow:hidden}.k-image-field-preview{height:100%}.k-toggle-field-preview{padding-inline:var(--table-cell-padding)}.k-writer:not([data-toolbar-inline=true]):not([data-disabled=true]){grid-template-areas:"topbar""content";grid-template-rows:var(--toolbar-size)1fr;gap:0}.k-writer:focus-within .k-writer-toolbar .k-button[aria-current]{color:var(--color-focus)}.k-writer-toolbar[data-inline=true]{--toolbar-text:var(--color-white);--toolbar-back:var(--color-black);--toolbar-hover:#fff3;--toolbar-border:var(--color-gray-800);z-index:calc(var(--z-dropdown) + 1);box-shadow:var(--shadow-toolbar);border-radius:var(--rounded);position:absolute;transform:translate(-50%)translateY(-.75rem)}.k-aspect-ratio{padding-bottom:100%;display:block;position:relative;overflow:hidden}.k-aspect-ratio>*{object-fit:contain;width:100%;height:100%;inset:0;position:absolute!important}.k-aspect-ratio[data-cover=true]>*{object-fit:cover}.k-bar{--bar-height:var(--height-xs);align-items:center;gap:var(--spacing-3);height:var(--bar-height);justify-content:space-between;display:flex}.k-bar:where([data-align=center]){justify-content:center}.k-bar:where([data-align=end]):has(:first-child:last-child){justify-content:end}.k-bar-slot{flex-grow:1}.k-bar-slot[data-position=center]{text-align:center}.k-bar-slot[data-position=right]{text-align:end}.k-box{--box-color-back:none;--box-color-text:currentColor;--box-padding-inline:var(--spacing-2);--box-height:var(--field-input-height);--text-font-size:var(--text-sm);--icon-color:var(--box-color-icon);align-items:center;gap:var(--spacing-2);color:var(--box-color-text);background:var(--box-color-back);word-wrap:break-word;width:100%;display:flex}.k-box[data-theme]{--box-color-back:var(--theme-color-back);--box-color-text:var(--theme-color-text);--box-color-icon:var(--theme-color-700);min-height:var(--box-height);padding:.375rem var(--box-padding-inline);border-radius:var(--rounded);line-height:1.25}.k-box[data-theme=text],.k-box[data-theme=white]{box-shadow:var(--shadow)}.k-box[data-theme=text]{padding:var(--spacing-6)}.k-box[data-theme=none]{padding:0}.k-box[data-align=center]{justify-content:center}:root{--bubble-size:1.525rem;--bubble-back:var(--color-light);--bubble-text:var(--color-black)}.k-bubble{height:var(--bubble-size);white-space:nowrap;background:var(--bubble-back);color:var(--bubble-text);border-radius:var(--rounded);width:min-content;line-height:1.5;overflow:hidden}.k-bubble .k-frame{width:var(--bubble-size);height:var(--bubble-size)}.k-bubble[data-has-text=true]{gap:var(--spacing-2);font-size:var(--text-xs);align-items:center;padding-inline-end:.5rem;display:flex}.k-column{min-width:0}.k-column[data-sticky=true]{align-self:stretch}.k-column[data-sticky=true]>div{top:calc(var(--header-sticky-offset) + 2vh);z-index:2;position:sticky}.k-column[data-disabled=true]{cursor:not-allowed;opacity:.4}.k-column[data-disabled=true] *{pointer-events:none}.k-column[data-disabled=true] .k-text[data-theme=help] *{pointer-events:initial}.k-frame{--fit:contain;--ratio:1/1;aspect-ratio:var(--ratio);background:var(--back);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.k-frame:where([data-theme]){--back:var(--theme-color-back);color:var(--theme-color-text)}.k-frame :where(img,video,iframe,button){object-fit:var(--fit);width:100%;height:100%;position:absolute;inset:0}.k-frame>*{text-overflow:ellipsis;min-width:0;min-height:0;overflow:hidden}:root{--color-frame-rounded:var(--rounded);--color-frame-size:100%;--color-frame-darkness:0%}.k-color-frame.k-frame{background:var(--pattern-light);width:var(--color-frame-size);color:#0000;border-radius:var(--color-frame-rounded);background-clip:padding-box;overflow:hidden}.k-color-frame:after{border-radius:var(--color-frame-rounded);box-shadow:0 0 0 1px inset hsla(0,0%,var(--color-frame-darkness),.175);content:"";background-color:currentColor;position:absolute;inset:0}.k-dropzone{position:relative}.k-dropzone:after{content:"";pointer-events:none;z-index:1;border-radius:var(--rounded);display:none;position:absolute;inset:0}.k-dropzone[data-over=true]:after{background:hsla(var(--color-blue-hs),var(--color-blue-l-300),.6);outline:var(--outline);display:block}.k-grid{--columns:12;--grid-inline-gap:0;--grid-block-gap:0;grid-column-gap:var(--grid-inline-gap);grid-row-gap:var(--grid-block-gap);align-items:start;display:grid}.k-grid>*{--width:calc(1/var(--columns));--span:calc(var(--columns)*var(--width))}@container (width>=30rem){.k-grid{grid-template-columns:repeat(var(--columns),1fr)}.k-grid>*{grid-column:span var(--span)}.k-grid[data-gutter=small]{--grid-inline-gap:1rem;--grid-block-gap:1rem}.k-grid:where([data-gutter=medium],[data-gutter=large],[data-gutter=huge]){--grid-inline-gap:1.5rem;--grid-block-gap:1.5rem}}@container (width>=65em){.k-grid[data-gutter=large]{--grid-inline-gap:3rem}.k-grid[data-gutter=huge]{--grid-inline-gap:4.5rem}}@container (width>=90em){.k-grid[data-gutter=large]{--grid-inline-gap:4.5rem}.k-grid[data-gutter=huge]{--grid-inline-gap:6rem}}@container (width>=120em){.k-grid[data-gutter=large]{--grid-inline-gap:6rem}.k-grid[data-gutter=huge]{--grid-inline-gap:7.5rem}}:root{--columns-inline-gap:clamp(.75rem,6cqw,6rem);--columns-block-gap:clamp(var(--spacing-8),6vh,6rem)}.k-grid[data-variant=columns]{--grid-inline-gap:var(--columns-inline-gap);--grid-block-gap:var(--columns-block-gap)}.k-grid:where([data-variant=columns],[data-variant=fields])>*{container:column/inline-size}.k-grid[data-variant=fields]{gap:var(--spacing-8)}.k-grid[data-variant=choices]{align-items:stretch;gap:2px}:root{--header-color-back:var(--color-light);--header-padding-block:var(--spacing-4);--header-sticky-offset:calc(var(--scroll-top,0rem) + 4rem)}.k-header{border-bottom:1px solid var(--color-border);background:var(--header-color-back);padding-top:var(--header-padding-block);margin-bottom:var(--spacing-12);box-shadow:2px 0 0 0 var(--header-color-back),-2px 0 0 0 var(--header-color-back);flex-wrap:wrap;justify-content:space-between;align-items:baseline;display:flex;position:relative}.k-header-title{font-size:var(--text-h1);font-weight:var(--font-h1);line-height:var(--leading-h1);margin-bottom:var(--header-padding-block);min-width:0}.k-header-title-button{text-align:start;gap:var(--spacing-2);outline:0;align-items:baseline;max-width:100%;display:inline-flex}.k-header-title-text{text-overflow:ellipsis;overflow-x:clip}.k-header-title-icon{--icon-color:var(--color-text-dimmed);border-radius:var(--rounded);height:var(--height-sm);width:var(--height-sm);opacity:0;flex-shrink:0;place-items:center;transition:opacity .2s;display:grid}.k-header-title-button:is(:hover,:focus) .k-header-title-icon{opacity:1}.k-header-title-button:focus .k-header-title-icon{outline:var(--outline)}.k-header-buttons{gap:var(--spacing-2);margin-bottom:var(--header-padding-block);flex-shrink:0;display:flex}.k-header[data-has-buttons=true]{top:var(--scroll-top,0);z-index:var(--z-toolbar);position:sticky}:root{--icon-size:18px;--icon-color:currentColor}.k-icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);flex-shrink:0}.k-icon[data-type=loader]{animation:1.5s linear infinite Spin}@media only screen and (-webkit-device-pixel-ratio>=2),not all,not all,not all,only screen and (resolution>=192dpi),only screen and (resolution>=2x){.k-icon-frame [data-type=emoji]{font-size:1.25em}}.k-image[data-back=pattern]{--back:var(--color-black)var(--pattern)}.k-image[data-back=black]{--back:var(--color-black)}.k-image[data-back=white]{--back:var(--color-white);color:var(--color-gray-900)}:root{--overlay-color-back:var(--color-backdrop)}.k-overlay[open]{overscroll-behavior:contain;z-index:var(--z-dialog);background:0 0;width:100%;height:100dvh;position:fixed;inset:0;overflow:hidden;transform:translate(0)}.k-overlay[open]::backdrop{background:0 0}.k-overlay[open]>.k-portal{background:var(--overlay-color-back);position:fixed;inset:0;overflow:auto}.k-overlay[open][data-type=dialog]>.k-portal{display:inline-flex}.k-overlay[open][data-type=dialog]>.k-portal>*{margin:auto}.k-overlay[open][data-type=drawer]>.k-portal{--overlay-color-back:#0003;justify-content:flex-end;align-items:stretch;display:flex}html[data-overlay]{overflow:hidden}html[data-overlay] body{overflow:scroll}.k-stats{grid-gap:var(--spacing-2px);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));grid-auto-rows:1fr;display:grid}.k-stat{background:var(--color-white);box-shadow:var(--shadow);padding:var(--spacing-3)var(--spacing-6);line-height:var(--leading-normal);border-radius:var(--rounded);flex-direction:column;display:flex}.k-stat.k-link:hover{cursor:pointer;background:var(--color-gray-100)}.k-stat :where(dt,dd){display:block}.k-stat-value{font-size:var(--value);margin-bottom:var(--spacing-1);order:1}.k-stat-label{font-size:var(--text-xs);order:2}.k-stat-info{font-size:var(--text-xs);color:var(--theme,var(--color-text-dimmed));order:3}.k-stats[data-size=small]{--value:var(--text-md)}.k-stats[data-size=medium]{--value:var(--text-xl)}.k-stats[data-size=large]{--value:var(--text-2xl)}.k-stats[data-size=huge]{--value:var(--text-3xl)}:root{--table-cell-padding:var(--spacing-3);--table-color-back:var(--color-white);--table-color-border:var(--color-background);--table-color-hover:var(--color-gray-100);--table-color-th-back:var(--color-gray-100);--table-color-th-text:var(--color-text-dimmed);--table-row-height:var(--input-height)}.k-table{background:var(--table-color-back);box-shadow:var(--shadow);border-radius:var(--rounded);position:relative}.k-table table{table-layout:fixed}.k-table th,.k-table td{padding-inline:var(--table-cell-padding);height:var(--table-row-height);text-overflow:ellipsis;border-inline-end:1px solid var(--table-color-border);width:100%;line-height:1.25;overflow:hidden}.k-table tr>:last-child{border-inline-end:0}.k-table th,.k-table tr:not(:last-child) td{border-block-end:1px solid var(--table-color-border)}.k-table :where(td,th)[data-align]{text-align:var(--align)}.k-table th{padding-inline:var(--table-cell-padding);font-family:var(--font-mono);font-size:var(--text-xs);color:var(--table-color-th-text);background:var(--table-color-th-back)}.k-table th[data-has-button]{padding:0}.k-table th button{padding-inline:var(--table-cell-padding);border-radius:var(--rounded);text-align:start;width:100%;height:100%}.k-table th button:focus-visible{outline-offset:-2px}.k-table thead th:first-child{border-start-start-radius:var(--rounded)}.k-table thead th:last-child{border-start-end-radius:var(--rounded)}.k-table thead th{top:var(--header-sticky-offset);z-index:1;position:sticky;inset-inline:0}.k-table tbody tr:hover td{background:var(--table-color-hover)}.k-table tbody th{white-space:nowrap;border-radius:0;width:auto;overflow:visible}.k-table tbody tr:first-child th{border-start-start-radius:var(--rounded)}.k-table tbody tr:last-child th{border-block-end:0;border-end-start-radius:var(--rounded)}.k-table-row-ghost{background:var(--color-white);outline:var(--outline);border-radius:var(--rounded);cursor:grabbing;margin-bottom:2px}.k-table-row-fallback{opacity:0!important}.k-table .k-table-index-column{width:var(--table-row-height);text-align:center}.k-table .k-table-index{font-size:var(--text-xs);color:var(--color-text-dimmed);line-height:1.1em}.k-table .k-table-index-column .k-sort-handle{--button-width:100%;display:none}.k-table tr:hover .k-table-index-column[data-sortable=true] .k-table-index{display:none}.k-table tr:hover .k-table-index-column[data-sortable=true] .k-sort-handle{display:flex}.k-table .k-table-options-column{width:var(--table-row-height);text-align:center;padding:0}.k-table .k-table-options-column .k-options-dropdown-toggle{--button-width:100%;--button-height:100%;outline-offset:-2px}.k-table-empty{color:var(--color-text-dimmed);font-size:var(--text-sm)}.k-table[aria-disabled=true]{--table-color-back:transparent;--table-color-border:var(--color-border);--table-color-hover:transparent;--table-color-th-back:transparent;border:1px solid var(--table-color-border);box-shadow:none}.k-table[aria-disabled=true] thead th{position:static}@container (width<=40rem){.k-table{overflow-x:scroll}.k-table thead th{position:static}}.k-table .k-table-cell{padding:0}.k-tabs{--button-height:var(--height-md);--button-padding:var(--spacing-2);gap:var(--spacing-1);margin-bottom:var(--spacing-12);margin-inline:calc(var(--button-padding)*-1);display:flex}.k-tab-button.k-button{margin-block:2px;overflow-x:visible}.k-tab-button[aria-current]:after{content:"";inset-inline:var(--button-padding);background:currentColor;height:2px;position:absolute;bottom:-2px}.k-tabs-badge{font-variant-numeric:tabular-nums;top:2px;padding:0 var(--spacing-1);text-align:center;box-shadow:var(--shadow-md);background:var(--theme-color-back);border:1px solid var(--theme-color-500);color:var(--theme-color-text);z-index:1;border-radius:1rem;font-size:10px;line-height:1.5;position:absolute;inset-inline-end:var(--button-padding);transform:translate(75%)}.k-view{padding-inline:1.5rem}@container (width>=30rem){.k-view{padding-inline:3rem}}.k-view[data-align=center]{justify-content:center;align-items:center;height:100vh;padding:0 3rem;display:flex;overflow:auto}.k-view[data-align=center]>*{flex-basis:22.5rem}.k-fatal[open]{background:var(--overlay-color-back);padding:var(--spacing-6)}.k-fatal-box{box-shadow:var(--dialog-shadow);border-radius:var(--dialog-rounded);flex-direction:column;width:100%;height:calc(100dvh - 3rem);line-height:1;display:flex;position:relative;overflow:hidden}.k-fatal-iframe{background:var(--color-white);padding:var(--spacing-3);border:0;flex-grow:1;width:100%}.k-icons{width:0;height:0;position:absolute}.k-loader{z-index:1}.k-loader-icon{animation:.9s linear infinite Spin}.k-notification{background:var(--color-gray-900);color:var(--color-white);flex-shrink:0;align-items:center;width:100%;padding:.75rem 1.5rem;line-height:1.25rem;display:flex}.k-notification[data-theme]{background:var(--theme-color-back);color:var(--color-black)}.k-notification p{word-wrap:break-word;flex-grow:1;overflow:hidden}.k-notification .k-button{margin-inline-start:1rem;display:flex}.k-offline-warning{z-index:var(--z-offline);background:var(--color-backdrop);justify-content:center;align-items:center;line-height:1;display:flex;position:fixed;inset:0}.k-offline-warning p{background:var(--color-white);box-shadow:var(--shadow);border-radius:var(--rounded);align-items:center;gap:.5rem;padding:.75rem;display:flex}.k-offline-warning p .k-icon{color:var(--color-red-400)}:root{--progress-height:var(--spacing-2);--progress-color-back:var(--color-gray-300);--progress-color-value:var(--color-focus)}progress{height:var(--progress-height);border-radius:var(--progress-height);border:0;width:100%;display:block;overflow:hidden}progress::-webkit-progress-bar{background:var(--progress-color-back)}progress::-webkit-progress-value{background:var(--progress-color-value);border-radius:var(--progress-height)}progress::-moz-progress-bar{background:var(--progress-color-value)}progress:not([value])::-webkit-progress-bar{background:var(--progress-color-value)}progress:not([value])::-moz-progress-bar{background:var(--progress-color-value)}.k-sort-handle{cursor:grab;z-index:1}.k-sort-handle:active{cursor:grabbing}.k-breadcrumb{--breadcrumb-divider:"/";padding:2px;overflow-x:clip}.k-breadcrumb ol{align-items:center;gap:.125rem;display:none}.k-breadcrumb ol li{align-items:center;min-width:0;display:flex}.k-breadcrumb ol li:not(:last-child):after{content:var(--breadcrumb-divider);opacity:.175;flex-shrink:0}.k-breadcrumb ol li{min-width:0;transition:flex-shrink .1s}.k-breadcrumb .k-icon[data-type=loader]{opacity:.5}.k-breadcrumb ol li:is(:hover,:focus-within){flex-shrink:0}.k-button.k-breadcrumb-link{flex-shrink:1;justify-content:flex-start;min-width:0}.k-breadcrumb-dropdown{display:grid}.k-breadcrumb-dropdown .k-dropdown-content{width:15rem}@container (width>=40em){.k-breadcrumb ol{display:flex}.k-breadcrumb-dropdown{display:none}}.k-browser{font-size:var(--text-sm);container-type:inline-size}.k-browser-items{--browser-item-gap:1px;--browser-item-size:1fr;--browser-item-height:var(--height-sm);--browser-item-padding:.25rem;--browser-item-rounded:var(--rounded);column-gap:var(--browser-item-gap);row-gap:var(--browser-item-gap);grid-template-columns:repeat(auto-fill,minmax(var(--browser-item-size),1fr));display:grid}.k-browser-item{height:var(--browser-item-height);padding-inline:calc(var(--browser-item-padding) + 1px);border-radius:var(--browser-item-rounded);white-space:nowrap;cursor:pointer;flex-shrink:0;align-items:center;gap:.5rem;display:flex;overflow:hidden}.k-browser-item-image{height:calc(var(--browser-item-height) - var(--browser-item-padding)*2);aspect-ratio:1;border-radius:var(--rounded-sm);box-shadow:var(--shadow);flex-shrink:0}.k-browser-item-image.k-icon-frame{box-shadow:none;background:var(--color-white)}.k-browser-item-image svg{transform:scale(.8)}.k-browser-item input{box-shadow:var(--shadow);opacity:0;width:0;position:absolute}.k-browser-item[aria-selected]{background:var(--color-blue-300)}:root{--button-align:center;--button-height:var(--height-md);--button-width:auto;--button-color-back:none;--button-color-text:currentColor;--button-color-icon:currentColor;--button-padding:var(--spacing-2);--button-rounded:var(--spacing-1);--button-text-display:block;--button-icon-display:block}.k-button{align-items:center;justify-content:var(--button-align);padding-inline:var(--button-padding);white-space:nowrap;border-radius:var(--button-rounded);background:var(--button-color-back);height:var(--button-height);width:var(--button-width);color:var(--button-color-text);font-variant-numeric:tabular-nums;text-align:var(--button-align);flex-shrink:0;gap:.5rem;line-height:1;display:inline-flex;position:relative;overflow-x:clip}.k-button-icon{--icon-color:var(--button-color-icon);display:var(--button-icon-display);flex-shrink:0}.k-button-text{text-overflow:ellipsis;display:var(--button-text-display);min-width:0;overflow-x:clip}.k-button:where([data-theme]){--button-color-icon:var(--theme-color-icon);--button-color-text:var(--theme-color-text)}.k-button:where([data-variant=dimmed]){--button-color-icon:var(--color-text);--button-color-dimmed-on:var(--color-text-dimmed);--button-color-dimmed-off:var(--color-text);--button-color-text:var(--button-color-dimmed-on)}.k-button:where([data-variant=dimmed]):not([aria-disabled]):is(:hover,[aria-current]){--button-color-text:var(--button-color-dimmed-off)}.k-button:where([data-theme][data-variant=dimmed]){--button-color-icon:var(--theme-color-icon);--button-color-dimmed-on:var(--theme-color-text-dimmed);--button-color-dimmed-off:var(--theme-color-text)}.k-button:where([data-variant=filled]){--button-color-back:var(--color-gray-300)}.k-button:where([data-variant=filled]):not([aria-disabled]):hover{filter:brightness(97%)}.k-button:where([data-theme][data-variant=filled]){--button-color-icon:var(--theme-color-700);--button-color-back:var(--theme-color-back);--button-color-text:var(--theme-color-text)}.k-button:not([data-has-text=true]){--button-padding:0;aspect-ratio:1}@container (width<=30rem){.k-button[data-responsive=true][data-has-icon=true]{--button-padding:0;aspect-ratio:1;--button-text-display:none}.k-button[data-responsive=text][data-has-text=true]{--button-icon-display:none}.k-button[data-responsive][data-has-icon=true] .k-button-arrow{display:none}}.k-button:not(button,a,summary,label,.k-link){pointer-events:none}.k-button:where([data-size=xs]){--button-height:var(--height-xs);--button-padding:.325rem}.k-button:where([data-size=sm]){--button-height:var(--height-sm);--button-padding:.5rem}.k-button:where([data-size=lg]){--button-height:var(--height-lg)}.k-button-arrow{--icon-size:10px;width:max-content;margin-inline-start:-.125rem}.k-button:where([aria-disabled]){cursor:not-allowed}.k-button:where([aria-disabled])>*{opacity:var(--opacity-disabled)}.k-button-group{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.k-button-group:where([data-layout=collapsed]){gap:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:not(:first-child){border-left:1px solid var(--theme-color-500,var(--color-gray-400));border-start-start-radius:0;border-end-start-radius:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:focus-visible{z-index:1;border-radius:var(--button-rounded)}.k-file-browser{overflow:hidden;container-type:inline-size}.k-file-browser-layout{grid-template-columns:minmax(10rem,15rem) 1fr;display:grid}.k-file-browser-tree{padding:var(--spacing-2);border-right:1px solid var(--color-gray-300)}.k-file-browser-items{padding:var(--spacing-2);background:var(--color-gray-100)}.k-file-browser-back-button{display:none}@container (width<=30rem){.k-file-browser-layout{grid-template-columns:minmax(0,1fr);min-height:10rem}.k-file-browser-back-button{height:var(--height-sm);background:var(--color-gray-200);border-radius:var(--rounded);justify-content:flex-start;align-items:center;width:100%;margin-bottom:.5rem;padding-inline:.25rem;display:flex}.k-file-browser-tree{border-right:0}.k-file-browser[data-view=files] .k-file-browser-tree,.k-file-browser[data-view=tree] .k-file-browser-items{display:none}}:root{--tree-color-back:var(--color-gray-200);--tree-color-hover-back:var(--color-gray-300);--tree-color-selected-back:var(--color-blue-300);--tree-color-selected-text:var(--color-black);--tree-color-text:var(--color-gray-dimmed);--tree-level:0;--tree-indentation:.6rem}.k-tree-branch{align-items:center;margin-bottom:1px;padding-inline-start:calc(var(--tree-level)*var(--tree-indentation));display:flex}.k-tree-branch[data-has-subtree=true]{z-index:calc(100 - var(--tree-level));background:var(--tree-color-back);inset-block-start:calc(var(--tree-level)*1.5rem)}.k-tree-branch:hover,li[aria-current]>.k-tree-branch{--tree-color-text:var(--tree-color-selected-text);background:var(--tree-color-hover-back);border-radius:var(--rounded)}li[aria-current]>.k-tree-branch{background:var(--tree-color-selected-back)}.k-tree-toggle{--icon-size:12px;aspect-ratio:1;border-radius:var(--rounded-sm);flex-shrink:0;place-items:center;width:1rem;margin-inline-start:.25rem;padding:0;display:grid}.k-tree-toggle:hover{background:#00000013}.k-tree-toggle[disabled]{visibility:hidden}.k-tree-folder{height:var(--height-sm);border-radius:var(--rounded-sm);line-height:1.25;font-size:var(--text-sm);align-items:center;gap:.325rem;width:100%;min-width:3rem;padding-inline:.25rem;display:flex}@container (width<=15rem){.k-tree{--tree-indentation:.375rem}.k-tree-folder{padding-inline:.125rem}.k-tree-folder .k-icon{display:none}}.k-tree-folder>.k-frame{flex-shrink:0}.k-tree-folder-label{text-overflow:ellipsis;white-space:nowrap;color:currentColor;overflow:hidden}.k-tree-folder[disabled]{opacity:var(--opacity-disabled)}.k-pagination-details{--button-padding:var(--spacing-3);font-size:var(--text-xs)}.k-pagination-selector{--button-height:var(--height);--dropdown-padding:0;overflow:visible}.k-pagination-selector form{justify-content:space-between;align-items:center;display:flex}.k-pagination-selector label{padding-inline-start:var(--spacing-3);padding-inline-end:var(--spacing-2)}.k-pagination-selector select{--height:calc(var(--button-height) - .5rem);min-width:var(--height);height:var(--height);text-align:center;background:var(--color-gray-800);color:var(--color-white);border-radius:var(--rounded-sm);width:auto}.k-prev-next{direction:ltr;flex-shrink:0}:root{--tag-color-back:var(--color-black);--tag-color-text:var(--color-white);--tag-color-toggle:currentColor;--tag-color-disabled-back:var(--color-gray-600);--tag-color-disabled-text:var(--tag-color-text);--tag-height:var(--height-xs);--tag-rounded:var(--rounded-sm)}.k-tag{height:var(--tag-height);font-size:var(--text-sm);color:var(--tag-color-text);background-color:var(--tag-color-back);border-radius:var(--tag-rounded);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;line-height:1;display:flex;position:relative}.k-tag:focus{outline:var(--outline)}.k-tag-image{height:calc(var(--tag-height) - var(--spacing-2));border-radius:var(--tag-rounded);margin-inline-start:var(--spacing-1);overflow:hidden}.k-tag-text{line-height:var(--leading-tight);padding-inline:.5rem}.k-tag-toggle{width:var(--tag-height);height:var(--tag-height);filter:brightness(70%)}.k-tag-toggle:hover{filter:brightness()}.k-tag[data-has-toggle=true] .k-tag-text{padding-inline-end:0}.k-tag:where([aria-disabled]){background-color:var(--tag-color-disabled-back);color:var(--tag-color-disabled-text);cursor:not-allowed}.k-tag:where([aria-disabled]) .k-tag-toggle{display:none}.k-button[data-disabled=true]{opacity:.5;pointer-events:none;cursor:default}.k-card-options>.k-button[data-disabled=true]{display:inline-flex}.k-section+.k-section{margin-top:var(--columns-block-gap)}.k-section-header{margin-bottom:var(--spacing-2)}.k-fields-section input[type=submit]{display:none}[data-locked=true] .k-fields-section{opacity:.2;pointer-events:none}.k-models-section[data-processing=true]{pointer-events:none}.k-models-section-search.k-input{--input-color-back:var(--color-gray-300);--input-color-border:transparent;margin-bottom:var(--spacing-3)}:root{--code-color-back:var(--color-black);--code-color-icon:var(--color-gray-500);--code-color-text:var(--color-gray-200,white);--code-font-family:var(--font-mono);--code-font-size:1em;--code-inline-color-back:var(--color-blue-300);--code-inline-color-border:var(--color-blue-400);--code-inline-color-text:var(--color-blue-900);--code-inline-font-size:.9em}code{font-family:var(--code-font-family);font-size:var(--code-font-size);font-weight:var(--font-normal)}.k-code,.k-text pre{border-radius:var(--rounded,.5rem);background:var(--code-color-back);color:var(--code-color-text);white-space:nowrap;-moz-tab-size:2;tab-size:2;max-width:100%;padding:.75rem;line-height:1.5;display:block;position:relative;overflow:auto hidden}.k-code:not(code),.k-text pre{white-space:pre-wrap}.k-code:before{content:attr(data-language);font-size:calc(.75*var(--text-xs));background:var(--code-color-back);border-radius:var(--rounded,.5rem);padding:.5rem .5rem .25rem .25rem;position:absolute;inset-block-start:0;inset-inline-end:0}.k-text>code,.k-text :not(pre)>code{padding-inline:var(--spacing-1);font-size:var(--code-inline-font-size);color:var(--code-inline-color-text);background:var(--code-inline-color-back);border-radius:var(--rounded);outline:1px solid var(--code-inline-color-border);outline-offset:-1px;display:inline-flex}:root{--text-h1:2em;--text-h2:1.75em;--text-h3:1.5em;--text-h4:1.25em;--text-h5:1.125em;--text-h6:1em;--font-h1:var(--font-semi);--font-h2:var(--font-semi);--font-h3:var(--font-semi);--font-h4:var(--font-semi);--font-h5:var(--font-semi);--font-h6:var(--font-semi);--leading-h1:1.125;--leading-h2:1.125;--leading-h3:1.25;--leading-h4:1.375;--leading-h5:1.5;--leading-h6:1.5}.k-headline{line-height:1.5em;font-weight:var(--font-bold)}.h1,.k-text h1,.k-headline[data-size=huge]{color:var(--color-h1,var(--color-h));font-family:var(--font-family-h1);font-size:var(--text-h1);font-weight:var(--font-h1);line-height:var(--leading-h1)}.h2,.k-text h2,.k-headline[data-size=large]{color:var(--color-h2,var(--color-h));font-family:var(--font-family-h2);font-size:var(--text-h2);font-weight:var(--font-h2);line-height:var(--leading-h2)}.h3,.k-text h3{color:var(--color-h3,var(--color-h));font-family:var(--font-family-h3);font-size:var(--text-h3);font-weight:var(--font-h3);line-height:var(--leading-h3)}.h4,.k-text h4,.k-headline[data-size=small]{color:var(--color-h4,var(--color-h));font-family:var(--font-family-h4);font-size:var(--text-h4);font-weight:var(--font-h4);line-height:var(--leading-h4)}.h5,.k-text h5{color:var(--color-h5,var(--color-h));font-family:var(--font-family-h5);font-size:var(--text-h5);font-weight:var(--font-h5);line-height:var(--leading-h5)}.h6,.k-text h6{color:var(--color-h6,var(--color-h));font-family:var(--font-family-h6);font-size:var(--text-h6);font-weight:var(--font-h6);line-height:var(--leading-h6)}.k-text>*+h6{margin-block-start:calc(var(--text-line-height)*1.5em)}.k-headline[data-theme]{color:var(--theme)}.k-label{height:var(--height-xs);font-weight:var(--font-semi);align-items:center;min-width:0;display:flex;position:relative}[aria-disabled] .k-label{opacity:var(--opacity-disabled);cursor:not-allowed}.k-label>a{height:var(--height-xs);padding-inline:var(--spacing-2);border-radius:var(--rounded);align-items:center;min-width:0;margin-inline-start:calc(-1*var(--spacing-2));display:inline-flex}.k-label-text{text-overflow:ellipsis;white-space:nowrap;overflow-x:clip}.k-label abbr{font-size:var(--text-xs);color:var(--color-gray-500);margin-inline-start:var(--spacing-1)}.k-label abbr.k-label-invalid{color:var(--color-red-700);display:none}:where(.k-field:has([data-invalid]),.k-section:has([data-invalid]))>header>.k-label abbr.k-label-invalid{display:inline-block}.k-field:has([data-invalid])>.k-field-header>.k-label abbr:has(+abbr.k-label-invalid){display:none}:root{--text-font-size:1em;--text-line-height:1.5;--link-color:var(--color-blue-800);--link-underline-offset:2px}.k-text{font-size:var(--text-font-size);line-height:var(--text-line-height)}.k-text[data-size=tiny]{--text-font-size:var(--text-xs)}.k-text[data-size=small]{--text-font-size:var(--text-sm)}.k-text[data-size=medium]{--text-font-size:var(--text-md)}.k-text[data-size=large]{--text-font-size:var(--text-xl)}.k-text[data-align]{text-align:var(--align)}.k-text>:where(audio,blockquote,details,div,figure,h1,h2,h3,h4,h5,h6,hr,iframe,img,object,ol,p,picture,pre,table,ul)+*{margin-block-start:calc(var(--text-line-height)*1em)}.k-text :where(.k-link,a){color:var(--link-color);text-underline-offset:var(--link-underline-offset);border-radius:var(--rounded-xs);outline-offset:2px;text-decoration:underline}.k-text ol,.k-text ul{padding-inline-start:1.75em}.k-text ol{list-style:numeric}.k-text ol>li{list-style:decimal}.k-text ul>li{list-style:disc}.k-text ul ul>li{list-style:circle}.k-text ul ul ul>li{list-style:square}.k-text blockquote{font-size:var(--text-lg);border-inline-start:2px solid var(--color-black);padding-inline-start:var(--spacing-4);line-height:1.25}.k-text img{border-radius:var(--rounded)}.k-text iframe{aspect-ratio:16/9;border-radius:var(--rounded);width:100%}.k-text hr{background:var(--color-border);height:1px}.k-help{color:var(--color-text-dimmed)}:root{--main-padding-inline:clamp(var(--spacing-6),5cqw,var(--spacing-24))}.k-panel-main{padding:var(--spacing-3)var(--main-padding-inline)var(--spacing-24);min-height:100dvh;margin-inline-start:var(--main-start);container:main/inline-size}.k-panel-notification{--button-height:var(--height-sm);--button-color-icon:var(--theme-color-800);--button-color-text:var(--theme-color-800);outline:1px solid var(--theme-color-500);box-shadow:var(--shadow-lg);z-index:var(--z-notification);position:fixed;inset-block-end:var(--spacing-6);inset-inline-end:var(--spacing-6)}:root{--menu-button-height:var(--height);--menu-button-width:100%;--menu-color-back:var(--color-gray-250);--menu-color-border:var(--color-gray-300);--menu-display:none;--menu-display-backdrop:block;--menu-padding:var(--spacing-3);--menu-shadow:var(--shadow-xl);--menu-toggle-height:var(--menu-button-height);--menu-toggle-width:1rem;--menu-width-closed:calc(var(--menu-button-height) + 2*var(--menu-padding));--menu-width-open:12rem;--menu-width:var(--menu-width-open)}.k-panel-menu{z-index:var(--z-navigation);display:var(--menu-display);width:var(--menu-width);background-color:var(--menu-color-back);border-right:1px solid var(--menu-color-border);box-shadow:var(--menu-shadow);position:fixed;inset-block:0;inset-inline-start:0}.k-panel-menu-body{gap:var(--spacing-4);padding:var(--menu-padding);overscroll-behavior:contain;flex-direction:column;height:100%;display:flex;overflow:hidden auto}.k-panel-menu-search{margin-bottom:var(--spacing-8)}.k-panel-menu-buttons{flex-direction:column;width:100%;display:flex}.k-panel-menu-buttons[data-second-last=true]{flex-grow:1}.k-panel-menu-buttons:last-child{justify-content:flex-end}.k-panel-menu-button{--button-align:flex-start;--button-height:var(--menu-button-height);--button-width:var(--menu-button-width);flex-shrink:0}.k-panel-menu-button[aria-current]{--button-color-back:var(--color-white);box-shadow:var(--shadow)}.k-panel-menu-button:focus{z-index:1}.k-panel[data-menu=true]{--menu-button-width:100%;--menu-display:block;--menu-width:var(--menu-width-open)}.k-panel[data-menu=true]:after{content:"";background:var(--color-backdrop);display:var(--menu-display-backdrop);pointer-events:none;position:fixed;inset:0}.k-panel-menu-toggle{--button-align:flex-start;--button-height:100%;--button-width:var(--menu-toggle-width);opacity:0;border-radius:0;align-items:flex-start;transition:opacity .2s;position:absolute;inset-block:0;inset-inline-start:100%;overflow:visible}.k-panel-menu-toggle:focus{outline:0}.k-panel-menu-toggle .k-button-icon{height:var(--menu-toggle-height);width:var(--menu-toggle-width);margin-top:var(--menu-padding);border-block:1px solid var(--menu-color-border);border-inline-end:1px solid var(--menu-color-border);background:var(--menu-color-back);border-start-end-radius:var(--button-rounded);border-end-end-radius:var(--button-rounded);place-items:center;display:grid}@media (width>=60rem){.k-panel{--menu-display:block;--menu-display-backdrop:none;--menu-shadow:none;--main-start:var(--menu-width)}.k-panel[data-menu=false]{--menu-button-width:var(--menu-button-height);--menu-width:var(--menu-width-closed)}.k-panel-menu-proxy{display:none}.k-panel-menu-toggle:focus-visible,.k-panel-menu[data-hover] .k-panel-menu-toggle{opacity:1}.k-panel-menu-toggle:focus-visible .k-button-icon{outline:var(--outline);border-radius:var(--button-rounded)}}.k-panel.k-panel-outside{padding:var(--spacing-6);grid-template-rows:1fr;place-items:center;min-height:100dvh;display:grid}html{background:var(--color-light);overflow:hidden scroll}body{font-size:var(--text-sm)}.k-panel[data-loading=true]{animation:.5s LoadingCursor}.k-panel[data-loading=true]:after,.k-panel[data-dragging=true]{-webkit-user-select:none;user-select:none}.k-topbar{margin-inline:calc(var(--button-padding)*-1);margin-bottom:var(--spacing-8);align-items:center;gap:var(--spacing-1);display:flex;position:relative}.k-topbar-breadcrumb{margin-inline-start:-2px}.k-topbar-spacer{flex-grow:1}.k-topbar-signals{align-items:center;display:flex}.k-search-view .k-header{margin-bottom:0}.k-search-view-input{--input-color-border:transparent;--input-color-back:var(--color-gray-300);--input-height:var(--height-md);width:40cqw}.k-file-view-header,.k-file-view[data-has-tabs=true] .k-file-preview{margin-bottom:0}.k-file-preview{background:var(--color-gray-900);border-radius:var(--rounded-lg);margin-bottom:var(--spacing-12);align-items:stretch;display:grid;overflow:hidden}.k-file-preview-thumb-column{background:var(--pattern);aspect-ratio:1}.k-file-preview-thumb{padding:var(--spacing-12);justify-content:center;align-items:center;height:100%;display:flex;container-type:size}.k-file-preview-thumb img{width:auto;max-width:100cqw;max-height:100cqh}.k-file-preview-thumb>.k-icon{--icon-size:3rem}.k-file-preview-thumb>.k-button{top:var(--spacing-2);position:absolute;inset-inline-start:var(--spacing-2)}.k-file-preview .k-coords-input{--opacity-disabled:1;--range-thumb-color:#5c8dd6bf;--range-thumb-size:1.25rem;--range-thumb-shadow:none;cursor:crosshair}.k-file-preview .k-coords-input-thumb:after{--size:.4rem;--pos:calc(50% - (var(--size)/2));top:var(--pos);width:var(--size);height:var(--size);content:"";background:var(--color-white);border-radius:50%;position:absolute;inset-inline-start:var(--pos)}.k-file-preview:not([data-has-focus=true]) .k-coords-input-thumb{display:none}.k-file-preview-details{display:grid}.k-file-preview-details dl{grid-gap:var(--spacing-6)var(--spacing-12);padding:var(--spacing-6);grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));align-self:center;line-height:1.5em;display:grid}.k-file-preview-details dt{font-size:var(--text-sm);font-weight:500;font-weight:var(--font-semi);color:var(--color-gray-500);margin-bottom:var(--spacing-1)}.k-file-preview-details :where(dd,a){font-size:var(--text-xs);color:#ffffffbf;white-space:nowrap;text-overflow:ellipsis;font-size:var(--text-sm);overflow:hidden}.k-file-preview-focus-info dd{align-items:center;display:flex}.k-file-preview-focus-info .k-button{--button-padding:var(--spacing-2);--button-color-back:var(--color-gray-800)}.k-file-preview[data-has-focus=true] .k-file-preview-focus-info .k-button{flex-direction:row-reverse}@container (width>=36rem){.k-file-preview{grid-template-columns:50% auto}.k-file-preview-thumb-column{aspect-ratio:auto}}@container (width>=65rem){.k-file-preview{grid-template-columns:33.333% auto}.k-file-preview-thumb-column{aspect-ratio:1}}@container (width>=90rem){.k-file-preview-layout{grid-template-columns:25% auto}}.k-login-dialog{--dialog-color-back:var(--color-white);--dialog-shadow:var(--shadow);container-type:inline-size}.k-login-fields{position:relative}.k-login-toggler{top:-2px;z-index:1;color:var(--link-color);padding-inline:var(--spacing-2);text-decoration:underline;text-decoration-color:var(--link-color);text-underline-offset:1px;height:var(--height-xs);border-radius:var(--rounded);line-height:1;position:absolute;inset-inline-end:calc(var(--spacing-2)*-1)}.k-login-form label abbr{visibility:hidden}.k-login-buttons{--button-padding:var(--spacing-3);margin-top:var(--spacing-10);justify-content:space-between;align-items:center;gap:1.5rem;display:flex}.k-installation-dialog{--dialog-color-back:var(--color-white);--dialog-shadow:var(--shadow);container-type:inline-size}.k-installation-view .k-button{margin-top:var(--spacing-3);width:100%}.k-installation-view form .k-button{margin-top:var(--spacing-10)}.k-installation-view .k-headline{font-weight:var(--font-semi);margin-top:-.5rem;margin-bottom:.75rem}.k-installation-issues{line-height:1.5em;font-size:var(--text-sm)}.k-installation-issues li{padding:var(--spacing-6);background:var(--color-red-300);border-radius:var(--rounded);padding-inline-start:3.5rem;position:relative}.k-installation-issues .k-icon{top:calc(1.5rem + 2px);color:var(--color-red-700);position:absolute;inset-inline-start:1.5rem}.k-installation-issues li:not(:last-child){margin-bottom:2px}.k-installation-issues li code{font:inherit;color:var(--color-red-700)}.k-password-reset-view .k-user-info{margin-bottom:var(--spacing-8)}.k-user-info{font-size:var(--text-sm);height:var(--height-lg);padding-inline:var(--spacing-2);background:var(--color-white);box-shadow:var(--shadow);align-items:center;gap:.75rem;display:flex}.k-user-info :where(.k-image-frame,.k-icon-frame){border-radius:var(--rounded-sm);width:1.5rem}.k-page-view[data-has-tabs=true] .k-page-view-header{margin-bottom:0}.k-page-view-status{--button-color-back:var(--color-gray-300);--button-color-icon:var(--theme-color-600);--button-color-text:initial}.k-site-view[data-has-tabs=true] .k-site-view-header{margin-bottom:0}.k-system-info .k-stat-label{color:var(--theme,var(--color-black))}.k-table-update-status-cell{align-items:center;height:100%;padding:0 .75rem;display:flex}.k-table-update-status-cell-version,.k-table-update-status-cell-button{font-variant-numeric:tabular-nums}.k-plugin-info{column-gap:var(--spacing-3);padding:var(--button-padding);row-gap:2px;display:grid}.k-plugin-info dt{color:var(--color-gray-400)}.k-plugin-info dd[data-theme]{color:var(--theme-color-600)}@container (width<=30em){.k-plugin-info dd:not(:last-of-type){margin-bottom:var(--spacing-2)}}@container (width>=30em){.k-plugin-info{grid-template-columns:1fr auto;width:20rem}}.k-user-name-placeholder{color:var(--color-gray-500);transition:color .3s}.k-user-view-header[data-editable=true] .k-user-name-placeholder:hover{color:var(--color-gray-900)}.k-user-view-header{border-bottom:0;margin-bottom:0}.k-user-view .k-user-profile{margin-bottom:var(--spacing-12)}.k-user-view[data-has-tabs=true] .k-user-profile{margin-bottom:0}.k-user-view-image{padding:0}.k-user-view-image .k-frame{border-radius:var(--rounded);width:6rem;height:6rem;line-height:0}.k-user-view-image .k-icon-frame{--back:var(--color-black);--icon-color:var(--color-gray-200)}.k-user-profile{--button-height:auto;padding:var(--spacing-2);background:var(--color-white);border-radius:var(--rounded-lg);align-items:center;gap:var(--spacing-3);box-shadow:var(--shadow);display:flex}.k-user-profile .k-button-group{flex-direction:column;align-items:flex-start;display:flex}.k-users-view-header{margin-bottom:0}:root{--color-l-100:98%;--color-l-200:94%;--color-l-300:88%;--color-l-400:80%;--color-l-500:70%;--color-l-600:60%;--color-l-700:45%;--color-l-800:30%;--color-l-900:15%;--color-red-h:0;--color-red-s:80%;--color-red-hs:var(--color-red-h),var(--color-red-s);--color-red-boost:3%;--color-red-l-100:calc(var(--color-l-100) + var(--color-red-boost));--color-red-l-200:calc(var(--color-l-200) + var(--color-red-boost));--color-red-l-300:calc(var(--color-l-300) + var(--color-red-boost));--color-red-l-400:calc(var(--color-l-400) + var(--color-red-boost));--color-red-l-500:calc(var(--color-l-500) + var(--color-red-boost));--color-red-l-600:calc(var(--color-l-600) + var(--color-red-boost));--color-red-l-700:calc(var(--color-l-700) + var(--color-red-boost));--color-red-l-800:calc(var(--color-l-800) + var(--color-red-boost));--color-red-l-900:calc(var(--color-l-900) + var(--color-red-boost));--color-red-100:hsl(var(--color-red-hs),var(--color-red-l-100));--color-red-200:hsl(var(--color-red-hs),var(--color-red-l-200));--color-red-300:hsl(var(--color-red-hs),var(--color-red-l-300));--color-red-400:hsl(var(--color-red-hs),var(--color-red-l-400));--color-red-500:hsl(var(--color-red-hs),var(--color-red-l-500));--color-red-600:hsl(var(--color-red-hs),var(--color-red-l-600));--color-red-700:hsl(var(--color-red-hs),var(--color-red-l-700));--color-red-800:hsl(var(--color-red-hs),var(--color-red-l-800));--color-red-900:hsl(var(--color-red-hs),var(--color-red-l-900));--color-orange-h:28;--color-orange-s:80%;--color-orange-hs:var(--color-orange-h),var(--color-orange-s);--color-orange-boost:2.5%;--color-orange-l-100:calc(var(--color-l-100) + var(--color-orange-boost));--color-orange-l-200:calc(var(--color-l-200) + var(--color-orange-boost));--color-orange-l-300:calc(var(--color-l-300) + var(--color-orange-boost));--color-orange-l-400:calc(var(--color-l-400) + var(--color-orange-boost));--color-orange-l-500:calc(var(--color-l-500) + var(--color-orange-boost));--color-orange-l-600:calc(var(--color-l-600) + var(--color-orange-boost));--color-orange-l-700:calc(var(--color-l-700) + var(--color-orange-boost));--color-orange-l-800:calc(var(--color-l-800) + var(--color-orange-boost));--color-orange-l-900:calc(var(--color-l-900) + var(--color-orange-boost));--color-orange-100:hsl(var(--color-orange-hs),var(--color-orange-l-100));--color-orange-200:hsl(var(--color-orange-hs),var(--color-orange-l-200));--color-orange-300:hsl(var(--color-orange-hs),var(--color-orange-l-300));--color-orange-400:hsl(var(--color-orange-hs),var(--color-orange-l-400));--color-orange-500:hsl(var(--color-orange-hs),var(--color-orange-l-500));--color-orange-600:hsl(var(--color-orange-hs),var(--color-orange-l-600));--color-orange-700:hsl(var(--color-orange-hs),var(--color-orange-l-700));--color-orange-800:hsl(var(--color-orange-hs),var(--color-orange-l-800));--color-orange-900:hsl(var(--color-orange-hs),var(--color-orange-l-900));--color-yellow-h:47;--color-yellow-s:80%;--color-yellow-hs:var(--color-yellow-h),var(--color-yellow-s);--color-yellow-boost:0%;--color-yellow-l-100:calc(var(--color-l-100) + var(--color-yellow-boost));--color-yellow-l-200:calc(var(--color-l-200) + var(--color-yellow-boost));--color-yellow-l-300:calc(var(--color-l-300) + var(--color-yellow-boost));--color-yellow-l-400:calc(var(--color-l-400) + var(--color-yellow-boost));--color-yellow-l-500:calc(var(--color-l-500) + var(--color-yellow-boost));--color-yellow-l-600:calc(var(--color-l-600) + var(--color-yellow-boost));--color-yellow-l-700:calc(var(--color-l-700) + var(--color-yellow-boost));--color-yellow-l-800:calc(var(--color-l-800) + var(--color-yellow-boost));--color-yellow-l-900:calc(var(--color-l-900) + var(--color-yellow-boost));--color-yellow-100:hsl(var(--color-yellow-hs),var(--color-yellow-l-100));--color-yellow-200:hsl(var(--color-yellow-hs),var(--color-yellow-l-200));--color-yellow-300:hsl(var(--color-yellow-hs),var(--color-yellow-l-300));--color-yellow-400:hsl(var(--color-yellow-hs),var(--color-yellow-l-400));--color-yellow-500:hsl(var(--color-yellow-hs),var(--color-yellow-l-500));--color-yellow-600:hsl(var(--color-yellow-hs),var(--color-yellow-l-600));--color-yellow-700:hsl(var(--color-yellow-hs),var(--color-yellow-l-700));--color-yellow-800:hsl(var(--color-yellow-hs),var(--color-yellow-l-800));--color-yellow-900:hsl(var(--color-yellow-hs),var(--color-yellow-l-900));--color-green-h:80;--color-green-s:60%;--color-green-hs:var(--color-green-h),var(--color-green-s);--color-green-boost:-2.5%;--color-green-l-100:calc(var(--color-l-100) + var(--color-green-boost));--color-green-l-200:calc(var(--color-l-200) + var(--color-green-boost));--color-green-l-300:calc(var(--color-l-300) + var(--color-green-boost));--color-green-l-400:calc(var(--color-l-400) + var(--color-green-boost));--color-green-l-500:calc(var(--color-l-500) + var(--color-green-boost));--color-green-l-600:calc(var(--color-l-600) + var(--color-green-boost));--color-green-l-700:calc(var(--color-l-700) + var(--color-green-boost));--color-green-l-800:calc(var(--color-l-800) + var(--color-green-boost));--color-green-l-900:calc(var(--color-l-900) + var(--color-green-boost));--color-green-100:hsl(var(--color-green-hs),var(--color-green-l-100));--color-green-200:hsl(var(--color-green-hs),var(--color-green-l-200));--color-green-300:hsl(var(--color-green-hs),var(--color-green-l-300));--color-green-400:hsl(var(--color-green-hs),var(--color-green-l-400));--color-green-500:hsl(var(--color-green-hs),var(--color-green-l-500));--color-green-600:hsl(var(--color-green-hs),var(--color-green-l-600));--color-green-700:hsl(var(--color-green-hs),var(--color-green-l-700));--color-green-800:hsl(var(--color-green-hs),var(--color-green-l-800));--color-green-900:hsl(var(--color-green-hs),var(--color-green-l-900));--color-aqua-h:180;--color-aqua-s:50%;--color-aqua-hs:var(--color-aqua-h),var(--color-aqua-s);--color-aqua-boost:0%;--color-aqua-l-100:calc(var(--color-l-100) + var(--color-aqua-boost));--color-aqua-l-200:calc(var(--color-l-200) + var(--color-aqua-boost));--color-aqua-l-300:calc(var(--color-l-300) + var(--color-aqua-boost));--color-aqua-l-400:calc(var(--color-l-400) + var(--color-aqua-boost));--color-aqua-l-500:calc(var(--color-l-500) + var(--color-aqua-boost));--color-aqua-l-600:calc(var(--color-l-600) + var(--color-aqua-boost));--color-aqua-l-700:calc(var(--color-l-700) + var(--color-aqua-boost));--color-aqua-l-800:calc(var(--color-l-800) + var(--color-aqua-boost));--color-aqua-l-900:calc(var(--color-l-900) + var(--color-aqua-boost));--color-aqua-100:hsl(var(--color-aqua-hs),var(--color-aqua-l-100));--color-aqua-200:hsl(var(--color-aqua-hs),var(--color-aqua-l-200));--color-aqua-300:hsl(var(--color-aqua-hs),var(--color-aqua-l-300));--color-aqua-400:hsl(var(--color-aqua-hs),var(--color-aqua-l-400));--color-aqua-500:hsl(var(--color-aqua-hs),var(--color-aqua-l-500));--color-aqua-600:hsl(var(--color-aqua-hs),var(--color-aqua-l-600));--color-aqua-700:hsl(var(--color-aqua-hs),var(--color-aqua-l-700));--color-aqua-800:hsl(var(--color-aqua-hs),var(--color-aqua-l-800));--color-aqua-900:hsl(var(--color-aqua-hs),var(--color-aqua-l-900));--color-blue-h:210;--color-blue-s:65%;--color-blue-hs:var(--color-blue-h),var(--color-blue-s);--color-blue-boost:3%;--color-blue-l-100:calc(var(--color-l-100) + var(--color-blue-boost));--color-blue-l-200:calc(var(--color-l-200) + var(--color-blue-boost));--color-blue-l-300:calc(var(--color-l-300) + var(--color-blue-boost));--color-blue-l-400:calc(var(--color-l-400) + var(--color-blue-boost));--color-blue-l-500:calc(var(--color-l-500) + var(--color-blue-boost));--color-blue-l-600:calc(var(--color-l-600) + var(--color-blue-boost));--color-blue-l-700:calc(var(--color-l-700) + var(--color-blue-boost));--color-blue-l-800:calc(var(--color-l-800) + var(--color-blue-boost));--color-blue-l-900:calc(var(--color-l-900) + var(--color-blue-boost));--color-blue-100:hsl(var(--color-blue-hs),var(--color-blue-l-100));--color-blue-200:hsl(var(--color-blue-hs),var(--color-blue-l-200));--color-blue-300:hsl(var(--color-blue-hs),var(--color-blue-l-300));--color-blue-400:hsl(var(--color-blue-hs),var(--color-blue-l-400));--color-blue-500:hsl(var(--color-blue-hs),var(--color-blue-l-500));--color-blue-600:hsl(var(--color-blue-hs),var(--color-blue-l-600));--color-blue-700:hsl(var(--color-blue-hs),var(--color-blue-l-700));--color-blue-800:hsl(var(--color-blue-hs),var(--color-blue-l-800));--color-blue-900:hsl(var(--color-blue-hs),var(--color-blue-l-900));--color-purple-h:275;--color-purple-s:60%;--color-purple-hs:var(--color-purple-h),var(--color-purple-s);--color-purple-boost:0%;--color-purple-l-100:calc(var(--color-l-100) + var(--color-purple-boost));--color-purple-l-200:calc(var(--color-l-200) + var(--color-purple-boost));--color-purple-l-300:calc(var(--color-l-300) + var(--color-purple-boost));--color-purple-l-400:calc(var(--color-l-400) + var(--color-purple-boost));--color-purple-l-500:calc(var(--color-l-500) + var(--color-purple-boost));--color-purple-l-600:calc(var(--color-l-600) + var(--color-purple-boost));--color-purple-l-700:calc(var(--color-l-700) + var(--color-purple-boost));--color-purple-l-800:calc(var(--color-l-800) + var(--color-purple-boost));--color-purple-l-900:calc(var(--color-l-900) + var(--color-purple-boost));--color-purple-100:hsl(var(--color-purple-hs),var(--color-purple-l-100));--color-purple-200:hsl(var(--color-purple-hs),var(--color-purple-l-200));--color-purple-300:hsl(var(--color-purple-hs),var(--color-purple-l-300));--color-purple-400:hsl(var(--color-purple-hs),var(--color-purple-l-400));--color-purple-500:hsl(var(--color-purple-hs),var(--color-purple-l-500));--color-purple-600:hsl(var(--color-purple-hs),var(--color-purple-l-600));--color-purple-700:hsl(var(--color-purple-hs),var(--color-purple-l-700));--color-purple-800:hsl(var(--color-purple-hs),var(--color-purple-l-800));--color-purple-900:hsl(var(--color-purple-hs),var(--color-purple-l-900));--color-pink-h:320;--color-pink-s:70%;--color-pink-hs:var(--color-pink-h),var(--color-pink-s);--color-pink-boost:0%;--color-pink-l-100:calc(var(--color-l-100) + var(--color-pink-boost));--color-pink-l-200:calc(var(--color-l-200) + var(--color-pink-boost));--color-pink-l-300:calc(var(--color-l-300) + var(--color-pink-boost));--color-pink-l-400:calc(var(--color-l-400) + var(--color-pink-boost));--color-pink-l-500:calc(var(--color-l-500) + var(--color-pink-boost));--color-pink-l-600:calc(var(--color-l-600) + var(--color-pink-boost));--color-pink-l-700:calc(var(--color-l-700) + var(--color-pink-boost));--color-pink-l-800:calc(var(--color-l-800) + var(--color-pink-boost));--color-pink-l-900:calc(var(--color-l-900) + var(--color-pink-boost));--color-pink-100:hsl(var(--color-pink-hs),var(--color-pink-l-100));--color-pink-200:hsl(var(--color-pink-hs),var(--color-pink-l-200));--color-pink-300:hsl(var(--color-pink-hs),var(--color-pink-l-300));--color-pink-400:hsl(var(--color-pink-hs),var(--color-pink-l-400));--color-pink-500:hsl(var(--color-pink-hs),var(--color-pink-l-500));--color-pink-600:hsl(var(--color-pink-hs),var(--color-pink-l-600));--color-pink-700:hsl(var(--color-pink-hs),var(--color-pink-l-700));--color-pink-800:hsl(var(--color-pink-hs),var(--color-pink-l-800));--color-pink-900:hsl(var(--color-pink-hs),var(--color-pink-l-900));--color-gray-h:0;--color-gray-s:0%;--color-gray-hs:var(--color-gray-h),var(--color-gray-s);--color-gray-boost:0%;--color-gray-l-100:calc(var(--color-l-100) + var(--color-gray-boost));--color-gray-l-200:calc(var(--color-l-200) + var(--color-gray-boost));--color-gray-l-300:calc(var(--color-l-300) + var(--color-gray-boost));--color-gray-l-400:calc(var(--color-l-400) + var(--color-gray-boost));--color-gray-l-500:calc(var(--color-l-500) + var(--color-gray-boost));--color-gray-l-600:calc(var(--color-l-600) + var(--color-gray-boost));--color-gray-l-700:calc(var(--color-l-700) + var(--color-gray-boost));--color-gray-l-800:calc(var(--color-l-800) + var(--color-gray-boost));--color-gray-l-900:calc(var(--color-l-900) + var(--color-gray-boost));--color-gray-100:hsl(var(--color-gray-hs),var(--color-gray-l-100));--color-gray-200:hsl(var(--color-gray-hs),var(--color-gray-l-200));--color-gray-250:#e8e8e8;--color-gray-300:hsl(var(--color-gray-hs),var(--color-gray-l-300));--color-gray-400:hsl(var(--color-gray-hs),var(--color-gray-l-400));--color-gray-500:hsl(var(--color-gray-hs),var(--color-gray-l-500));--color-gray-600:hsl(var(--color-gray-hs),var(--color-gray-l-600));--color-gray-700:hsl(var(--color-gray-hs),var(--color-gray-l-700));--color-gray-800:hsl(var(--color-gray-hs),var(--color-gray-l-800));--color-gray-900:hsl(var(--color-gray-hs),var(--color-gray-l-900));--color-backdrop:#0009;--color-black:black;--color-border:var(--color-gray-300);--color-dark:var(--color-gray-900);--color-focus:var(--color-blue-600);--color-light:var(--color-gray-200);--color-text:var(--color-black);--color-text-dimmed:var(--color-gray-700);--color-white:white;--color-background:var(--color-light);--color-gray:var(--color-gray-600);--color-red:var(--color-red-600);--color-orange:var(--color-orange-600);--color-yellow:var(--color-yellow-600);--color-green:var(--color-green-600);--color-aqua:var(--color-aqua-600);--color-blue:var(--color-blue-600);--color-purple:var(--color-purple-600);--color-focus-light:var(--color-focus);--color-focus-outline:var(--color-focus);--color-negative:var(--color-red-700);--color-negative-light:var(--color-red-500);--color-negative-outline:var(--color-red-900);--color-notice:var(--color-orange-700);--color-notice-light:var(--color-orange-500);--color-positive:var(--color-green-700);--color-positive-light:var(--color-green-500);--color-positive-outline:var(--color-green-900);--color-text-light:var(--color-text-dimmed);--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-mono:"SFMono-Regular",Consolas,Liberation Mono,Menlo,Courier,monospace;--text-xs:.75rem;--text-sm:.875rem;--text-md:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.75rem;--text-4xl:2.5rem;--text-5xl:3rem;--text-6xl:4rem;--text-base:var(--text-md);--font-size-tiny:var(--text-xs);--font-size-small:var(--text-sm);--font-size-medium:var(--text-base);--font-size-large:var(--text-xl);--font-size-huge:var(--text-2xl);--font-size-monster:var(--text-3xl);--font-thin:300;--font-normal:400;--font-semi:500;--font-bold:600;--height-xs:1.5rem;--height-sm:1.75rem;--height-md:2rem;--height-lg:2.25rem;--height-xl:2.5rem;--height:var(--height-md);--opacity-disabled:.5;--rounded-xs:1px;--rounded-sm:.125rem;--rounded-md:.25rem;--rounded-lg:.375rem;--rounded-xl:.5rem;--rounded:var(--rounded-md);--shadow-sm:0 1px 3px 0 #0000000d,0 1px 2px 0 #00000006;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000d;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;--shadow-xl:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000d;--shadow:var(--shadow-sm);--shadow-toolbar:#0000001a -2px 0 5px,var(--shadow),var(--shadow-xl);--shadow-outline:var(--color-focus,currentColor)0 0 0 2px;--shadow-inset:inset 0 2px 4px 0 #0000000f;--shadow-sticky:#0000000d 0 2px 5px;--box-shadow-dropdown:var(--shadow-dropdown);--box-shadow-item:var(--shadow);--box-shadow-focus:var(--shadow-xl);--shadow-dropdown:var(--shadow-lg);--shadow-item:var(--shadow-sm);--spacing-0:0;--spacing-1:.25rem;--spacing-2:.5rem;--spacing-3:.75rem;--spacing-4:1rem;--spacing-6:1.5rem;--spacing-8:2rem;--spacing-12:3rem;--spacing-16:4rem;--spacing-24:6rem;--spacing-36:9rem;--spacing-48:12rem;--spacing-px:1px;--spacing-2px:2px;--spacing-5:1.25rem;--spacing-10:2.5rem;--spacing-20:5rem;--z-offline:1200;--z-fatal:1100;--z-loader:1000;--z-notification:900;--z-dialog:800;--z-navigation:700;--z-dropdown:600;--z-drawer:500;--z-dropzone:400;--z-toolbar:300;--z-content:200;--z-background:100;--pattern-size:16px;--pattern-light:repeating-conic-gradient(#fff 0% 25%,#e6e6e6 0% 50%)50%/var(--pattern-size)var(--pattern-size);--pattern-dark:repeating-conic-gradient(#262626 0% 25%,#383838 0% 50%)50%/var(--pattern-size)var(--pattern-size);--pattern:var(--pattern-dark)}:root{--container:80rem;--leading-none:1;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--field-input-padding:var(--input-padding);--field-input-height:var(--input-height);--field-input-line-height:var(--input-leading);--field-input-font-size:var(--input-font-size);--bg-pattern:var(--pattern)}:root{--choice-color-back:var(--color-white);--choice-color-border:var(--color-gray-500);--choice-color-checked:var(--color-black);--choice-color-disabled:var(--color-gray-400);--choice-color-icon:var(--color-light);--choice-color-info:var(--color-text-dimmed);--choice-color-text:var(--color-text);--choice-color-toggle:var(--choice-color-disabled);--choice-height:1rem;--choice-rounded:var(--rounded-sm)}input:where([type=checkbox],[type=radio]){cursor:pointer;height:var(--choice-height);aspect-ratio:1;border:1px solid var(--choice-color-border);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--choice-rounded);background:var(--choice-color-back);box-shadow:var(--shadow-sm);flex-shrink:0;position:relative;overflow:hidden}input:where([type=checkbox],[type=radio]):after{content:"";text-align:center;place-items:center;display:none;position:absolute}input:where([type=checkbox],[type=radio]):focus{outline:var(--outline);outline-offset:-1px;color:var(--color-focus)}input:where([type=checkbox]):checked{border-color:var(--color-color-checked)}input:where([type=checkbox],[type=radio]):checked:after{background:var(--choice-color-checked);display:grid}input:where([type=checkbox],[type=radio]):checked:focus{--choice-color-checked:var(--color-focus)}input:where([type=checkbox],[type=radio])[disabled]{--choice-color-back:none;--choice-color-border:var(--color-gray-300);--choice-color-checked:var(--choice-color-disabled);box-shadow:none}input[type=checkbox]:checked:after{content:"✓";color:var(--choice-color-icon);font-size:9px;font-weight:700;line-height:1;inset:0}input[type=radio]{--choice-rounded:50%}input[type=radio]:after{border-radius:var(--choice-rounded);inset:3px}input[type=checkbox][data-variant=toggle]{--choice-rounded:var(--choice-height);aspect-ratio:2}input[type=checkbox][data-variant=toggle]:after{background:var(--choice-color-toggle);border-radius:var(--choice-rounded);width:50%;display:grid;inset:1px}input[type=checkbox][data-variant=toggle]:checked{border-color:var(--choice-color-border)}input[type=checkbox][data-variant=toggle]:checked:after{background:var(--choice-color-checked);margin-inline-start:auto}:root{--range-thumb-color:var(--color-white);--range-thumb-focus-outline:var(--outline);--range-thumb-size:1rem;--range-thumb-shadow:#0000001a 0 2px 4px 2px,#00000020 0 0 0 1px;--range-track-back:var(--color-gray-250);--range-track-height:var(--range-thumb-size)}:where(input[type=range]){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:var(--range-thumb-size);border-radius:var(--range-track-size);align-items:center;width:100%;padding:0;display:flex}:where(input[type=range])::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--range-thumb-size);height:var(--range-thumb-size);background:var(--range-thumb-color);box-shadow:var(--range-thumb-shadow);margin-top:calc(((var(--range-thumb-size) - var(--range-track-height))/2)*-1);z-index:1;cursor:grab;border:0;border-radius:50%;transform:translate(0)}:where(input[type=range])::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--range-thumb-size);height:var(--range-thumb-size);background:var(--range-thumb-color);box-shadow:var(--range-thumb-shadow);z-index:1;cursor:grab;border:0;border-radius:50%;transform:translate(0)}:where(input[type=range])::-webkit-slider-thumb:active{cursor:grabbing}:where(input[type=range])::-moz-range-thumb:active{cursor:grabbing}:where(input[type=range])::-webkit-slider-runnable-track{background:var(--range-track-back);height:var(--range-track-height);border-radius:var(--range-track-height)}:where(input[type=range])::-moz-range-track{background:var(--range-track-back);height:var(--range-track-height);border-radius:var(--range-track-height)}:where(input[type=range][disabled]){--range-thumb-color:#fff3}:where(input[type=range][disabled])::-webkit-slider-thumb{cursor:not-allowed}:where(input[type=range][disabled])::-moz-range-thumb{cursor:not-allowed}:where(input[type=range]):focus{outline:var(--outline)}:where(input[type=range]):focus::-webkit-slider-thumb{outline:var(--range-thumb-focus-outline)}:where(input[type=range]):focus::-moz-range-thumb{outline:var(--range-thumb-focus-outline)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:where(b,strong){font-weight:var(--font-bold,600)}:where([hidden]){display:none!important}:where(abbr){text-decoration:none}:where(input,button,textarea,select){font:inherit;line-height:inherit;color:inherit;background:0 0;border:0}:where(fieldset){border:0}:where(legend){float:left;width:100%}:where(legend+*){clear:both}:where(select){-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-white);color:var(--color-black);cursor:pointer}:where(textarea,select,input:not([type=checkbox],[type=radio],[type=reset],[type=submit])){font-variant-numeric:tabular-nums;width:100%}:where(textarea){resize:vertical;line-height:1.5}:where(input)::-webkit-calendar-picker-indicator{display:none}:where(input[type=search]){-webkit-appearance:none;-moz-appearance:none;appearance:none}:where(input)::-webkit-search-cancel-button{display:none}:where(button,label,select,summary,[role=button],[role=option]){cursor:pointer}:where(select[multiple]) option{align-items:center;display:flex}:where(input:autofill){-webkit-background-clip:text;-webkit-text-fill-color:var(--input-color-text)!important}:where(:disabled){cursor:not-allowed}::placeholder{color:var(--input-color-placeholder);opacity:1}:where(a){color:currentColor;text-underline-offset:.2ex;text-decoration:none}:where(ul,ol){list-style:none}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(iframe){border:0}:where(img,picture,svg){block-size:auto;max-inline-size:100%}:where(p,h1,h2,h3,h4,h5,h6){overflow-wrap:break-word}:where(h1,h2,h3,h4,h5,h6){font:inherit}:where(:focus,:focus-visible,:focus-within){outline-color:var(--color-focus,currentColor);outline-offset:0}:where(:focus-visible){outline:var(--outline,2px solid var(--color-focus,currentColor))}:where(:invalid){box-shadow:none;outline:0}:where(dialog){border:0;max-width:none;max-height:none}:where(hr){border:0}:where(table){font:inherit;border-spacing:0;font-variant-numeric:tabular-nums;width:100%}:where(table th){font:inherit;text-align:start}:where(svg){fill:currentColor}body{font-family:var(--font-sans,sans-serif);font-size:var(--text-sm);accent-color:var(--color-focus,currentColor);line-height:1;position:relative}:where(sup,sub){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(sup){top:-.5em}:where(sub){bottom:-.25em}:where(mark){background:var(--color-yellow-300)}:where(kbd){padding-inline:var(--spacing-2);border-radius:var(--rounded);background:var(--color-white);box-shadow:var(--shadow);display:inline-block}[data-align=left]{--align:start}[data-align=center]{--align:center}[data-align=right]{--align:end}@keyframes LoadingCursor{to{cursor:progress}}@keyframes Spin{to{transform:rotate(360deg)}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[data-theme]{--theme-color-h:0;--theme-color-s:0%;--theme-color-hs:var(--theme-color-h),var(--theme-color-s);--theme-color-boost:3%;--theme-color-l-100:calc(var(--color-l-100) + var(--theme-color-boost));--theme-color-l-200:calc(var(--color-l-200) + var(--theme-color-boost));--theme-color-l-300:calc(var(--color-l-300) + var(--theme-color-boost));--theme-color-l-400:calc(var(--color-l-400) + var(--theme-color-boost));--theme-color-l-500:calc(var(--color-l-500) + var(--theme-color-boost));--theme-color-l-600:calc(var(--color-l-600) + var(--theme-color-boost));--theme-color-l-700:calc(var(--color-l-700) + var(--theme-color-boost));--theme-color-l-800:calc(var(--color-l-800) + var(--theme-color-boost));--theme-color-l-900:calc(var(--color-l-900) + var(--theme-color-boost));--theme-color-100:hsl(var(--theme-color-hs),var(--theme-color-l-100));--theme-color-200:hsl(var(--theme-color-hs),var(--theme-color-l-200));--theme-color-300:hsl(var(--theme-color-hs),var(--theme-color-l-300));--theme-color-400:hsl(var(--theme-color-hs),var(--theme-color-l-400));--theme-color-500:hsl(var(--theme-color-hs),var(--theme-color-l-500));--theme-color-600:hsl(var(--theme-color-hs),var(--theme-color-l-600));--theme-color-700:hsl(var(--theme-color-hs),var(--theme-color-l-700));--theme-color-800:hsl(var(--theme-color-hs),var(--theme-color-l-800));--theme-color-900:hsl(var(--theme-color-hs),var(--theme-color-l-900));--theme-color-text:var(--theme-color-900);--theme-color-text-dimmed:var(--theme-color-700);--theme-color-back:var(--theme-color-400);--theme-color-hover:var(--theme-color-500);--theme-color-icon:var(--theme-color-600)}[data-theme=error],[data-theme=negative]{--theme-color-h:var(--color-red-h);--theme-color-s:var(--color-red-s);--theme-color-boost:var(--color-red-boost)}[data-theme=notice]{--theme-color-h:var(--color-orange-h);--theme-color-s:var(--color-orange-s);--theme-color-boost:var(--color-orange-boost)}[data-theme=warning]{--theme-color-h:var(--color-yellow-h);--theme-color-s:var(--color-yellow-s);--theme-color-boost:var(--color-yellow-boost)}[data-theme=info]{--theme-color-h:var(--color-blue-h);--theme-color-s:var(--color-blue-s);--theme-color-boost:var(--color-blue-boost)}[data-theme=positive]{--theme-color-h:var(--color-green-h);--theme-color-s:var(--color-green-s);--theme-color-boost:var(--color-green-boost)}[data-theme=passive]{--theme-color-h:var(--color-gray-h);--theme-color-s:var(--color-gray-s);--theme-color-boost:10%}[data-theme=white],[data-theme=text]{--theme-color-back:var(--color-white);--theme-color-icon:var(--color-gray-800);--theme-color-text:var(--color-text);--color-h:var(--color-black)}[data-theme=dark]{--theme-color-h:var(--color-gray-h);--theme-color-s:var(--color-gray-s);--theme-color-boost:var(--color-gray-boost);--theme-color-back:var(--color-gray-800);--theme-color-icon:var(--color-gray-500);--theme-color-text:var(--color-gray-200)}[data-theme=code]{--theme-color-back:var(--code-color-back);--theme-color-hover:var(--color-black);--theme-color-icon:var(--code-color-icon);--theme-color-text:var(--code-color-text);font-family:var(--code-font-family);font-size:var(--code-font-size)}[data-theme=empty]{--theme-color-back:var(--color-light);--theme-color-border:var(--color-gray-400);--theme-color-icon:var(--color-gray-600);--theme-color-text:var(--color-text-dimmed);border:1px dashed var(--theme-color-border)}[data-theme=none]{--theme-color-back:transparent;--theme-color-border:transparent;--theme-color-icon:var(--color-text);--theme-color-text:var(--color-text)}[data-theme]{--theme:var(--theme-color-700);--theme-light:var(--theme-color-500);--theme-bg:var(--theme-color-500)}:root{--outline:2px solid var(--color-focus,currentColor)}.scroll-x,.scroll-x-auto,.scroll-y,.scroll-y-auto{-webkit-overflow-scrolling:touch;transform:translate(0)}.scroll-x{overflow:scroll hidden}.scroll-x-auto{overflow:auto hidden}.scroll-y{overflow:hidden scroll}.scroll-y-auto{overflow:hidden auto}.input-hidden{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0;width:0;height:0;position:absolute}.k-lab-index-view .k-list-items{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}.k-lab-docs-section+.k-lab-docs-section{margin-top:var(--spacing-12)}.k-lab-docs-section .k-headline{margin-bottom:var(--spacing-3)}.k-lab-docs-section .k-table td{padding:.375rem var(--table-cell-padding);vertical-align:top;line-height:1.5}.k-lab-docs-types{gap:.25rem;display:inline-flex}.k-lab-docs-types code[data-type=boolean]{color:var(--color-purple-800);outline-color:var(--color-purple-400);background:var(--color-purple-300)}.k-lab-docs-types code[data-type=string]{color:var(--color-green-800);outline-color:var(--color-green-500);background:var(--color-green-300)}.k-lab-docs-types code[data-type=number]{color:var(--color-orange-800);outline-color:var(--color-orange-500);background:var(--color-orange-300)}.k-lab-docs-types code[data-type=array]{color:var(--color-aqua-800);outline-color:var(--color-aqua-500);background:var(--color-aqua-300)}.k-lab-docs-types code[data-type=object]{color:var(--color-yellow-800);outline-color:var(--color-yellow-500);background:var(--color-yellow-300)}.k-lab-docs-types code[data-type=func]{color:var(--color-pink-800);outline-color:var(--color-pink-400);background:var(--color-pink-300)}.k-lab-example{outline-offset:-2px;border-radius:var(--rounded);border:1px solid var(--color-gray-300);max-width:100%;position:relative;container-type:inline-size}.k-lab-example+.k-lab-example{margin-top:var(--spacing-12)}.k-lab-example-header{height:var(--height-md);padding-block:var(--spacing-3);padding-inline:var(--spacing-2);border-bottom:1px solid var(--color-gray-300);justify-content:space-between;align-items:center;display:flex}.k-lab-example-label{color:var(--color-text-dimmed);font-size:12px}.k-lab-example-canvas,.k-lab-example-code{padding:var(--spacing-16)}.k-lab-example[data-flex] .k-lab-example-canvas{align-items:center;gap:var(--spacing-6);display:flex}.k-lab-example-inspector{--icon-size:13px;--button-color-icon:var(--color-gray-500)}.k-lab-example-inspector .k-button:not([data-theme]):hover{--button-color-icon:var(--color-gray-600)}.k-lab-example-inspector .k-button:where([data-theme]){--button-color-icon:var(--color-gray-800)}.k-lab-examples>:where(.k-text,.k-box){margin-bottom:var(--spacing-6)}.k-lab-form>footer{border-top:1px dashed var(--color-border);padding-top:var(--spacing-6)}.k-lab-input-examples :not([type=checkbox],[type=radio]):invalid{outline:2px solid var(--color-red-600)!important}.k-lab-options-input-examples fieldset:invalid,.k-lab-options-input-examples :not([type=checkbox],[type=radio]):invalid{outline:2px solid var(--color-red-600)}.k-lab-playground-view[data-has-tabs=true] .k-header{margin-bottom:0}.token.punctuation,.token.comment,.token.doctype{color:var(--color-gray-500)}.token.tag,.token.markup,.token.variable,.token.this,.token.selector,.token.key,.token.kirbytag-bracket,.token.prolog,.token.delimiter{color:var(--color-red-500)}.token.constant,.token.number,.token.boolean,.token.boolean.important,.token.attr-name,.token.kirbytag-attr,.token.kirbytag-name,.token.entity,.token.bold,.token.bold>.punctuation{color:var(--color-orange-500)}.token.keyword,.token.italic,.token.italic>.punctuation{color:var(--color-purple-500)}.token.function{color:var(--color-blue-500)}.token.operator,.token.title{color:var(--color-aqua-500)}.token.string,.token.attr-value,.token.attr-value .punctuation,.token.list.punctuation{color:var(--color-green-500)}.token.scope,.token.class-name,.token.property,.token.url{color:var(--color-yellow-500)}.token.title,.token.kirbytag-bracket,.token.list.punctuation,.token.bold{font-weight:var(--font-bold)}.token.title .punctuation{color:var(--color-gray-500)}.token.italic{font-style:italic} +.k-items{display:grid;position:relative;container-type:inline-size}.k-items[data-layout=list]{gap:2px}.k-items[data-layout=cardlets]{--items-size:1fr;grid-template-columns:repeat(auto-fill,minmax(var(--items-size),1fr));gap:.75rem;display:grid}@container (width>=15rem){.k-items[data-layout=cardlets]{--items-size:15rem}}.k-items[data-layout=cards]{grid-template-columns:1fr;gap:1.5rem;display:grid}@container (width>=6rem){.k-items[data-layout=cards][data-size=tiny]{grid-template-columns:repeat(auto-fill,minmax(6rem,1fr))}}@container (width>=9rem){.k-items[data-layout=cards][data-size=small]{grid-template-columns:repeat(auto-fill,minmax(9rem,1fr))}}@container (width>=12rem){.k-items[data-layout=cards][data-size=auto],.k-items[data-layout=cards][data-size=medium]{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}}@container (width>=15rem){.k-items[data-layout=cards][data-size=large]{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}}@container (width>=18rem){.k-items[data-layout=cards][data-size=huge]{grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}}.k-collection-footer{margin-top:var(--spacing-2);flex-wrap:wrap}.k-empty{max-width:100%}:root{--item-button-height:var(--height-md);--item-button-width:var(--height-md);--item-height:auto;--item-height-cardlet:calc(var(--height-md)*3)}.k-item{background:var(--color-white);box-shadow:var(--shadow);border-radius:var(--rounded);height:var(--item-height);position:relative;container-type:inline-size}.k-item:has(a:focus){outline:2px solid var(--color-focus)}@supports not selector(:has(*)){.k-item:focus-within{outline:2px solid var(--color-focus)}}.k-item .k-icon-frame{--back:var(--color-gray-300)}.k-item-content{padding:var(--spacing-2);line-height:1.25;overflow:hidden}.k-item-content a:focus{outline:0}.k-item-content a:after{content:"";position:absolute;inset:0}.k-item-info{color:var(--color-text-dimmed)}.k-item-options{z-index:1;justify-content:space-between;align-items:center;display:flex;transform:translate(0)}.k-item-options[data-only-option=true]{justify-content:flex-end}.k-item-options .k-button{--button-height:var(--item-button-height);--button-width:var(--item-button-width)}.k-item .k-sort-button{z-index:2;position:absolute}.k-item:not(:hover):not(.k-sortable-fallback) .k-sort-button{opacity:0}.k-item[data-layout=list]{--item-height:var(--field-input-height);--item-button-height:var(--item-height);--item-button-width:auto;height:var(--item-height);grid-template-columns:1fr auto;align-items:center;display:grid}.k-item[data-layout=list][data-has-image=true]{grid-template-columns:var(--item-height)1fr auto}.k-item[data-layout=list] .k-frame{--ratio:1/1;height:var(--item-height);border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded)}.k-item[data-layout=list] .k-item-content{white-space:nowrap;gap:var(--spacing-2);justify-content:space-between;min-width:0;display:flex}.k-item[data-layout=list] .k-item-title,.k-item[data-layout=list] .k-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-item[data-layout=list] .k-item-title{flex-shrink:1}.k-item[data-layout=list] .k-item-info{flex-shrink:2}@container (width<=30rem){.k-item[data-layout=list] .k-item-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-item[data-layout=list] .k-item-info{display:none}}.k-item[data-layout=list] .k-sort-button{--button-width:calc(1.5rem + var(--spacing-1));--button-height:var(--item-height);left:calc(-1*var(--button-width))}.k-item:is([data-layout=cardlets],[data-layout=cards]) .k-sort-button{top:var(--spacing-2);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);--button-width:1.5rem;--button-height:1.5rem;--button-rounded:var(--rounded-sm);--button-padding:0;--icon-size:14px;background:#ffffff80;inset-inline-start:var(--spacing-2);box-shadow:0 2px 5px #0003}.k-item:is([data-layout=cardlets],[data-layout=cards]) .k-sort-button:hover{background:#fffffff2}.k-item[data-layout=cardlets]{--item-height:var(--item-height-cardlet);grid-template-columns:1fr;grid-template-areas:"content""options";grid-template-rows:1fr var(--height-md);display:grid}.k-item[data-layout=cardlets][data-has-image=true]{grid-template-areas:"image content""image options";grid-template-columns:minmax(0,var(--item-height))1fr}.k-item[data-layout=cardlets] .k-frame{aspect-ratio:auto;height:var(--item-height);border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded);grid-area:image}.k-item[data-layout=cardlets] .k-item-content{grid-area:content}.k-item[data-layout=cardlets] .k-item-info{white-space:nowrap;text-overflow:ellipsis;margin-top:.125em;overflow:hidden}.k-item[data-layout=cardlets] .k-item-options{grid-area:options}.k-item[data-layout=cards]{flex-direction:column;display:flex}.k-item[data-layout=cards] .k-frame{border-start-start-radius:var(--rounded);border-start-end-radius:var(--rounded)}.k-item[data-layout=cards] .k-item-content{padding:var(--spacing-2);flex-grow:1}.k-item[data-layout=cards] .k-item-info{margin-top:.125em}.k-dialog-body{padding:var(--dialog-padding)}.k-dialog[data-has-footer=true] .k-dialog-body{padding-bottom:0}.k-button-group.k-dialog-buttons{gap:var(--spacing-3);--button-height:var(--height-lg);grid-template-columns:1fr 1fr;display:grid}.k-dialog-fields{padding-bottom:.5rem}.k-dialog-footer{padding:var(--dialog-padding);flex-shrink:0;line-height:1}.k-dialog .k-notification{border-start-start-radius:var(--dialog-rounded);border-start-end-radius:var(--dialog-rounded);margin-top:-1px;padding-block:.325rem}.k-dialog-search{--input-color-border:transparent;--input-color-back:var(--color-gray-300);margin-bottom:.75rem}:root{--dialog-color-back:var(--color-light);--dialog-color-text:currentColor;--dialog-margin:var(--spacing-6);--dialog-padding:var(--spacing-6);--dialog-rounded:var(--rounded-xl);--dialog-shadow:var(--shadow-xl);--dialog-width:22rem}.k-dialog-portal{padding:var(--dialog-margin)}.k-dialog{background:var(--dialog-color-back);color:var(--dialog-color-text);width:clamp(10rem,100%,var(--dialog-width));box-shadow:var(--dialog-shadow);border-radius:var(--dialog-rounded);flex-direction:column;line-height:1;display:flex;position:relative;overflow:clip;container-type:inline-size}@media screen and (width>=20rem){.k-dialog[data-size=small]{--dialog-width:20rem}}@media screen and (width>=22rem){.k-dialog[data-size=default]{--dialog-width:22rem}}@media screen and (width>=30rem){.k-dialog[data-size=medium]{--dialog-width:30rem}}@media screen and (width>=40rem){.k-dialog[data-size=large]{--dialog-width:40rem}}@media screen and (width>=60rem){.k-dialog[data-size=huge]{--dialog-width:60rem}}.k-dialog .k-pagination{justify-content:center;align-items:center;margin-bottom:-1.5rem;display:flex}.k-changes-dialog .k-headline{margin-top:-.5rem;margin-bottom:var(--spacing-3)}.k-error-details{background:var(--color-white);font-size:var(--text-sm);margin-top:.75rem;padding:1rem;line-height:1.25em;display:block;overflow:auto}.k-error-details dt{color:var(--color-red-500);margin-bottom:.25rem}.k-error-details dd{overflow-wrap:break-word;text-overflow:ellipsis;overflow:hidden}.k-error-details dd:not(:last-of-type){margin-bottom:1.5em}.k-error-details li{white-space:pre-line}.k-error-details li:not(:last-child){border-bottom:1px solid var(--color-background);margin-bottom:.25rem;padding-bottom:.25rem}.k-models-dialog .k-list-item{cursor:pointer}.k-page-template-switch{margin-bottom:var(--spacing-6);padding-bottom:var(--spacing-6);border-bottom:1px dashed var(--color-gray-300)}.k-page-move-dialog .k-headline{margin-bottom:var(--spacing-2)}.k-page-move-parent{--tree-color-back:var(--color-white);--tree-color-hover-back:var(--color-light);padding:var(--spacing-3);background:var(--color-white);border-radius:var(--rounded);box-shadow:var(--shadow)}.k-pages-dialog-navbar{justify-content:center;align-items:center;margin-bottom:.5rem;padding-inline-end:38px;display:flex}.k-pages-dialog-navbar .k-button[aria-disabled]{opacity:0}.k-pages-dialog-navbar .k-headline{text-align:center;flex-grow:1}.k-pages-dialog-option[aria-disabled]{opacity:.25}.k-search-dialog{--dialog-padding:0;--dialog-rounded:var(--rounded);overflow:visible}.k-overlay[open][data-type=dialog]>.k-portal>.k-search-dialog{margin-top:0}.k-search-dialog-input{--button-height:var(--input-height);align-items:center;display:flex}.k-search-dialog-types{flex-shrink:0}.k-search-dialog-input input{height:var(--input-height);border-left:1px solid var(--color-border);line-height:var(--input-height);border-radius:var(--rounded);font-size:var(--input-font-size);flex-grow:1;padding-inline:.75rem}.k-search-dialog-input input:focus{outline:0}.k-search-dialog-input .k-search-dialog-close{flex-shrink:0}.k-search-dialog-results{border-top:1px solid var(--color-border);padding:1rem}.k-search-dialog-results .k-item[data-selected=true]{outline:var(--outline)}.k-search-dialog-footer{text-align:center}.k-search-dialog-footer p{color:var(--color-text-dimmed)}.k-search-dialog-footer .k-button{margin-top:var(--spacing-4)}.k-totp-dialog-headline{margin-bottom:var(--spacing-1)}.k-totp-dialog-intro{margin-bottom:var(--spacing-6)}.k-totp-dialog-grid{gap:var(--spacing-6);display:grid}@media screen and (width>=40rem){.k-totp-dialog-grid{gap:var(--spacing-8);grid-template-columns:1fr 1fr}}.k-totp-qrcode .k-box[data-theme]{padding:var(--box-padding-inline)}.k-totp-dialog-fields .k-field-name-confirm{--input-height:var(--height-xl);--input-rounded:var(--rounded-xl);--input-font-size:var(--text-3xl)}.k-upload-dialog.k-dialog{--dialog-width:40rem}.k-upload-items{gap:.25rem;display:grid}.k-upload-item{accent-color:var(--color-focus);grid-template-columns:6rem 1fr auto;grid-template-areas:"preview input input""preview body toggle";grid-template-rows:var(--input-height)1fr;border-radius:var(--rounded);background:var(--color-white);box-shadow:var(--shadow);min-height:6rem;display:grid}.k-upload-item-preview{border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded);grid-area:preview;width:100%;height:100%;display:flex;overflow:hidden}.k-upload-item-preview:focus{border-radius:var(--rounded);outline:2px solid var(--color-focus);z-index:1}.k-upload-item-body{padding:var(--spacing-2)var(--spacing-3);flex-direction:column;grid-area:body;justify-content:space-between;min-width:0;display:flex}.k-upload-item-input.k-input{--input-color-border:transparent;--input-padding:var(--spacing-2)var(--spacing-3);--input-rounded:0;font-size:var(--text-sm);border-bottom:1px solid var(--color-light);grid-area:input}.k-upload-item-input.k-input:focus-within{outline:2px solid var(--color-focus);z-index:1;border-radius:var(--rounded)}.k-upload-item-input .k-input-after{color:var(--color-gray-600)}.k-upload-item-meta{font-size:var(--text-xs);color:var(--color-gray-600)}.k-upload-item-error{font-size:var(--text-xs);color:var(--color-red-700);margin-top:.25rem}.k-upload-item-progress{--progress-height:.25rem;--progress-color-back:var(--color-light)}.k-upload-item-toggle{grid-area:toggle;align-self:end}.k-upload-item-toggle>*{padding:var(--spacing-3)}.k-upload-item[data-completed] .k-upload-item-progress{--progress-color-value:var(--color-green-400)}.k-upload-replace-dialog .k-upload-items{gap:var(--spacing-3);align-items:center;display:flex}.k-upload-original{border-radius:var(--rounded);box-shadow:var(--shadow);width:6rem;overflow:hidden}.k-upload-replace-dialog .k-upload-item{flex-grow:1}.k-drawer-body{padding:var(--drawer-body-padding);background:var(--color-background);flex-grow:1}.k-drawer-body .k-writer-input-wrapper:focus-within .k-toolbar:not([data-inline=true]),.k-drawer-body .k-textarea-input-wrapper:focus-within .k-toolbar,.k-drawer-body .k-table th{top:-1.5rem}.k-drawer-header{--button-height:calc(var(--drawer-header-height) - var(--spacing-1));height:var(--drawer-header-height);background:var(--color-white);line-height:1;font-size:var(--text-sm);flex-shrink:0;justify-content:space-between;align-items:center;padding-inline-start:var(--drawer-header-padding);display:flex}.k-drawer-breadcrumb{flex-grow:1}.k-drawer-options{align-items:center;padding-inline-end:.75rem;display:flex}.k-drawer-option{--button-width:var(--button-height)}.k-drawer-option[aria-disabled]{opacity:var(--opacity-disabled)}.k-notification.k-drawer-notification{padding:.625rem 1.5rem}.k-drawer-tabs{align-items:center;line-height:1;display:flex}.k-drawer-tab.k-button{--button-height:calc(var(--drawer-header-height) - var(--spacing-1));--button-padding:var(--spacing-3);font-size:var(--text-xs);align-items:center;display:flex;overflow-x:visible}.k-drawer-tab.k-button[aria-current]:after{bottom:-2px;inset-inline:var(--button-padding);content:"";background:var(--color-black);z-index:1;height:2px;position:absolute}:root{--drawer-body-padding:1.5rem;--drawer-color-back:var(--color-light);--drawer-header-height:2.5rem;--drawer-header-padding:1rem;--drawer-shadow:var(--shadow-xl);--drawer-width:50rem}.k-drawer-overlay+.k-drawer-overlay{--overlay-color-back:none}.k-drawer{--header-sticky-offset:calc(var(--drawer-body-padding)*-1);z-index:var(--z-toolbar);flex-basis:var(--drawer-width);background:var(--drawer-color-back);box-shadow:var(--drawer-shadow);flex-direction:column;display:flex;position:relative;container-type:inline-size}.k-drawer[aria-disabled]{pointer-events:none;display:none}.k-dropdown{position:relative}:root{--dropdown-color-bg:var(--color-black);--dropdown-color-text:var(--color-white);--dropdown-color-hr:#ffffff40;--dropdown-padding:var(--spacing-2);--dropdown-rounded:var(--rounded);--dropdown-shadow:var(--shadow-xl)}.k-dropdown-content{--dropdown-x:0;--dropdown-y:0;inset-block-start:0;inset-inline-start:initial;padding:var(--dropdown-padding);background:var(--dropdown-color-bg);border-radius:var(--dropdown-rounded);color:var(--dropdown-color-text);box-shadow:var(--dropdown-shadow);text-align:start;transform:translate(var(--dropdown-x),var(--dropdown-y));width:max-content;position:absolute;left:0}.k-dropdown-content::backdrop{background:0 0}.k-dropdown-content[data-align-x=end]{--dropdown-x:-100%}.k-dropdown-content[data-align-x=center]{--dropdown-x:-50%}.k-dropdown-content[data-align-y=top]{--dropdown-y:-100%}.k-dropdown-content hr{background:var(--dropdown-color-hr);height:1px;margin:.5rem 0}.k-dropdown-content[data-theme=light]{--dropdown-color-bg:var(--color-white);--dropdown-color-text:var(--color-black);--dropdown-color-hr:#0000001a}.k-dropdown-item.k-button{--button-align:flex-start;--button-color-text:var(--dropdown-color-text);--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-width:100%;gap:.75rem;display:flex}.k-dropdown-item.k-button:focus{outline:var(--outline)}.k-dropdown-item.k-button[aria-current]{--button-color-text:var(--color-blue-500)}.k-dropdown-item.k-button:not([aria-disabled]):hover{--button-color-back:var(--dropdown-color-hr)}.k-options-dropdown{justify-content:center;align-items:center;display:flex}:root{--selector-color-highlight:var(--color-yellow-500)}.k-selector{--button-align:start;--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-width:100%}.k-selector-input{height:var(--button-height);padding:0 var(--button-padding);border-radius:var(--button-rounded)}.k-selector-input::placeholder{color:var(--color-text-dimmed)}.k-selector[data-has-current=true] .k-selector-input:focus{outline:0}.k-selector-empty{height:var(--button-height);padding-inline:var(--button-padding);color:var(--color-text-dimmed);align-items:center;display:flex}.k-selector-button[aria-current]{outline:var(--outline)}.k-selector-button b{color:var(--selector-color-highlight);font-weight:var(--font-normal)}.k-selector-add-button{--button-height:auto;padding-block:var(--button-padding)}.k-selector-add-button .k-button-icon{align-self:start}.k-selector-add-button .k-button-text strong{font-weight:var(--font-semi);margin-bottom:.25rem;display:block}.k-selector-preview{color:var(--selector-color-highlight)}.k-selector-dropdown-content{--color-text-dimmed:var(--color-gray-400);min-width:15rem;max-width:30rem;padding:0}.k-selector-dropdown .k-selector-header{border-bottom:1px solid var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-label{padding-inline:var(--spacing-3);height:var(--height-lg);font-weight:var(--font-semi);align-items:center;display:flex}.k-selector-dropdown .k-selector-search{padding:var(--dropdown-padding);border-top:1px solid var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-input{background:var(--color-gray-800)}.k-selector-dropdown .k-selector-footer{padding:var(--dropdown-padding)}.k-selector-dropdown .k-selector-body{max-height:calc((var(--button-height)*10) + calc(var(--dropdown-padding)*2));padding:var(--dropdown-padding);overscroll-behavior:contain;scroll-padding-top:var(--dropdown-padding);scroll-padding-bottom:var(--dropdown-padding);overflow-y:auto}.k-selector-dropdown .k-selector-button{gap:.75rem}.k-selector-dropdown .k-selector-button:hover{--button-color-back:var(--dropdown-color-hr)}.k-selector-dropdown .k-selector-body+.k-selector-footer{border-top:1px solid var(--dropdown-color-hr)}.k-counter{font-size:var(--text-xs);color:var(--color-gray-900)}.k-counter[data-invalid=true]{box-shadow:none;color:var(--color-red-700);border:0}.k-counter-rules{color:var(--color-gray-600);font-weight:var(--font-normal);padding-inline-start:.5rem}.k-form-submitter{display:none}.k-field-header{margin-bottom:var(--spacing-2);position:relative}.k-field[data-disabled=true]{cursor:not-allowed}.k-field[data-disabled=true] *{pointer-events:none}.k-field[data-disabled=true] .k-text[data-theme=help] *{pointer-events:initial}.k-field:focus-within>.k-field-header>.k-field-counter{display:block}.k-field-footer{margin-top:var(--spacing-2)}.k-fieldset{border:0}:root{--input-color-back:var(--color-white);--input-color-border:var(--color-border);--input-color-description:var(--color-text-dimmed);--input-color-icon:currentColor;--input-color-placeholder:var(--color-gray-600);--input-color-text:currentColor;--input-font-family:var(--font-sans);--input-font-size:var(--text-sm);--input-height:2.25rem;--input-leading:1;--input-outline-focus:var(--outline);--input-padding:var(--spacing-2);--input-padding-multiline:.475rem var(--input-padding);--input-rounded:var(--rounded);--input-shadow:none}@media (pointer:coarse){:root{--input-font-size:var(--text-md);--input-padding-multiline:.375rem var(--input-padding)}}.k-input{line-height:var(--input-leading);background:var(--input-color-back);border-radius:var(--input-rounded);outline:1px solid var(--input-color-border);color:var(--input-color-text);min-height:var(--input-height);box-shadow:var(--input-shadow);font-family:var(--input-font-family);font-size:var(--input-font-size);border:0;align-items:center;display:flex}.k-input:focus-within{outline:var(--input-outline-focus)}.k-input-element{flex-grow:1}.k-input-icon{color:var(--input-color-icon);width:var(--input-height);justify-content:center;align-items:center;display:flex}.k-input-icon-button{flex-shrink:0;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.k-input-description{color:var(--input-color-description);padding-inline:var(--input-padding)}.k-input-before{padding-inline-end:0}.k-input-after{padding-inline-start:0}.k-input :where(.k-input-description,.k-input-icon){flex-shrink:0;align-self:stretch;align-items:center;display:flex}.k-input[data-disabled=true]{--input-color-back:var(--color-background);--input-color-icon:var(--color-gray-600);pointer-events:none}.k-login-code-form .k-user-info{margin-bottom:var(--spacing-6)}.k-structure-backdrop{z-index:2;height:100vh;position:absolute;inset:0}.k-structure-form section{z-index:3;border-radius:var(--rounded-xs);border:1px solid var(--color-border);background:var(--color-background);margin-bottom:1px;position:relative;box-shadow:0 0 0 3px #1111110d}.k-structure-form-fields{padding:1.5rem 1.5rem 2rem}.k-structure-form-buttons{border-top:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:.25rem .5rem;display:flex}@container (width<=30rem){.k-pagination-details{display:none}}.k-block-type-code-editor{--input-color-border:none;--input-color-back:var(--color-black);--input-color-text:var(--color-white);--input-font-family:var(--font-mono);--input-outline-focus:none;--input-padding:var(--spacing-3);--input-padding-multiline:var(--input-padding);position:relative}.k-block-type-code-editor .k-input[data-type=textarea]{white-space:pre-wrap}.k-block-type-code-editor-language{--input-font-size:var(--text-xs);inset-inline-end:0;position:absolute;bottom:0}.k-block-type-code-editor-language .k-input-element{padding-inline-start:1.5rem}.k-block-type-code-editor-language .k-input-icon{inset-inline-start:0}.k-block-type-default .k-block-title{line-height:1.5em}.k-block-container.k-block-container-type-fields{padding-block:0}.k-block-container:not([data-hidden=true]) .k-block-type-fields>:not([data-collapsed=true]){padding-bottom:var(--spacing-3)}.k-block-type-fields-header{justify-content:space-between;display:flex}.k-block-type-fields-header .k-block-title{padding-block:var(--spacing-3);cursor:pointer}.k-block-type-fields-form{background-color:var(--color-gray-200);padding:var(--spacing-6)var(--spacing-6)var(--spacing-8);border-radius:var(--rounded-sm)}.k-block-container-type-fields[data-hidden=true] :where(.k-drawer-tabs,.k-block-type-fields-form){display:none}.k-block-type-gallery ul{grid-gap:.75rem;cursor:pointer;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));justify-content:center;align-items:center;line-height:0;display:grid}.k-block-type-gallery-placeholder{background:var(--color-background)}.k-block-type-gallery figcaption{color:var(--color-gray-600);font-size:var(--text-sm);text-align:center;padding-top:.5rem}.k-block-type-heading-input{line-height:1.25em;font-size:var(--text-size);font-weight:var(--font-bold);align-items:center;display:flex}.k-block-type-heading-input[data-level=h1]{--text-size:var(--text-3xl);line-height:1.125em}.k-block-type-heading-input[data-level=h2]{--text-size:var(--text-2xl)}.k-block-type-heading-input[data-level=h3]{--text-size:var(--text-xl)}.k-block-type-heading-input[data-level=h4]{--text-size:var(--text-lg)}.k-block-type-heading-input[data-level=h5]{--text-size:var(--text-md);line-height:1.5em}.k-block-type-heading-input[data-level=h6]{--text-size:var(--text-sm);line-height:1.5em}.k-block-type-heading-input .k-writer .ProseMirror strong{font-weight:700}.k-block-type-heading-level{--input-color-back:transparent;--input-color-border:none;--input-color-text:var(--color-gray-600);font-weight:var(--font-bold);text-transform:uppercase}.k-block-type-image .k-block-figure-container{text-align:center;line-height:0}.k-block-type-image-auto{max-width:100%;max-height:30rem;margin-inline:auto}.k-block-type-line hr{border:0;border-top:1px solid var(--color-border);margin-block:.75rem}.k-block-type-list-input{--input-color-border:none;--input-outline-focus:none}.k-block-type-markdown-input{--input-color-back:var(--color-light);--input-color-border:none;--input-outline-focus:none;--input-padding-multiline:var(--spacing-3)}.k-block-type-quote-editor{border-inline-start:2px solid var(--color-black);padding-inline-start:var(--spacing-3)}.k-block-type-quote-text{font-size:var(--text-xl);margin-bottom:var(--spacing-1);line-height:1.25em}.k-block-type-quote-citation{color:var(--color-text-dimmed);font-style:italic}.k-block-type-table-preview{cursor:pointer;border:1px solid var(--color-gray-300);border-spacing:0;border-radius:var(--rounded-sm);overflow:hidden}.k-block-type-table-preview td,.k-block-type-table-preview th{text-align:start;line-height:1.5em;font-size:var(--text-sm)}.k-block-type-table-preview th{padding:.5rem .75rem}.k-block-type-table-preview td:not(.k-table-index-column){padding:0 .75rem}.k-block-type-table-preview td>*,.k-block-type-table-preview td [class$=-field-preview]{padding:0}.k-block-type-text-input{height:100%;line-height:1.5}.k-block-container.k-block-container-type-text{padding:0}.k-block-type-text-input.k-writer[data-toolbar-inline=true]{padding:var(--spacing-3)}.k-block-type-text-input.k-writer:not([data-toolbar-inline=true])>.ProseMirror,.k-block-type-text-input.k-writer:not([data-toolbar-inline=true])[data-placeholder][data-empty=true]:before{padding:var(--spacing-3)var(--spacing-6)}.k-block-container{background:var(--color-white);border-radius:var(--rounded);padding:.75rem;position:relative}.k-block-container:not(:last-of-type){border-bottom:1px dashed #0000001a}.k-block-container:focus{outline:0}.k-block-container[data-selected=true]{z-index:2;outline:var(--outline);border-bottom-color:#0000}.k-block-container[data-batched=true]:after{content:"";mix-blend-mode:multiply;background:#b1c2d82d;position:absolute;inset:0}.k-block-container .k-block-options{top:0;margin-top:calc(2px - 1.75rem);display:none;position:absolute;inset-inline-end:.75rem}.k-block-container[data-last-selected=true]>.k-block-options{display:flex}.k-block-container[data-hidden=true] .k-block{opacity:.25}.k-drawer-options .k-drawer-option[data-disabled=true]{vertical-align:middle;display:inline-grid}[data-disabled=true] .k-block-container{background:var(--color-background)}.k-block-container:is(.k-sortable-ghost,.k-sortable-fallback) .k-block{max-height:4rem;position:relative;overflow:hidden}.k-block-container:is(.k-sortable-ghost,.k-sortable-fallback) .k-block:after{content:"";background:linear-gradient(to top,var(--color-white),transparent);width:100%;height:2rem;position:absolute;bottom:0}.k-blocks{border-radius:var(--rounded)}.k-blocks:not([data-empty=true],[data-disabled=true]){background:var(--color-white);box-shadow:var(--shadow)}.k-blocks[data-disabled=true]:not([data-empty=true]){border:1px solid var(--input-color-border)}.k-blocks-list[data-multi-select-key=true]>.k-block-container *{pointer-events:none}.k-blocks-list[data-multi-select-key=true]>.k-block-container .k-blocks *{pointer-events:all}.k-blocks .k-sortable-ghost{outline:2px solid var(--color-focus);cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing;box-shadow:0 5px 10px #11111140}.k-blocks-list>.k-blocks-empty{align-items:center;display:flex}.k-block-figure{cursor:pointer}.k-block-figure iframe{pointer-events:none;background:var(--color-black);border:0}.k-block-figure figcaption{color:var(--color-text-dimmed);font-size:var(--text-sm);text-align:center;padding-top:.5rem}.k-block-figure-empty{--button-width:100%;--button-height:6rem;--button-color-text:var(--color-text-dimmed);--button-color-back:var(--color-gray-200)}.k-block-figure-empty,.k-block-figure-container>*{border-radius:var(--rounded-sm)}.k-block-options{--toolbar-size:30px;box-shadow:var(--shadow-toolbar)}.k-block-options>.k-button:not(:last-of-type){border-inline-end:1px solid var(--color-background)}.k-block-options .k-dropdown-content{margin-top:.5rem}.k-block-importer .k-dialog-body{padding:0}.k-block-importer label{padding:var(--spacing-6)var(--spacing-6)0;color:var(--color-text-dimmed);line-height:var(--leading-normal);display:block}.k-block-importer label small{font-size:inherit;display:block}.k-block-importer textarea{font:inherit;color:var(--color-white);padding:var(--spacing-6);resize:none;background:0 0;border:0;width:100%;height:20rem}.k-block-importer textarea:focus{outline:0}.k-block-selector .k-headline{margin-bottom:1rem}.k-block-selector details+details{margin-top:var(--spacing-6)}.k-block-selector summary{font-size:var(--text-xs);cursor:pointer;color:var(--color-text-dimmed)}.k-block-selector details:only-of-type summary{pointer-events:none}.k-block-selector summary:focus{outline:0}.k-block-selector summary:focus-visible{color:var(--color-focus)}.k-block-types{grid-gap:2px;grid-template-columns:repeat(1,1fr);margin-top:.75rem;display:grid}.k-block-types .k-button{--button-color-icon:var(--color-text);--button-color-back:var(--color-white);--button-padding:var(--spacing-3);box-shadow:var(--shadow);justify-content:start;gap:1rem;width:100%}.k-block-types .k-button[aria-disabled]{opacity:var(--opacity-disabled);--button-color-back:var(--color-gray-200);box-shadow:none}.k-clipboard-hint{line-height:var(--leading-normal);font-size:var(--text-xs);color:var(--color-text-dimmed);padding-top:1.5rem}.k-clipboard-hint small{font-size:inherit;color:var(--color-text-dimmed);display:block}.k-block-title{align-items:center;gap:var(--spacing-2);min-width:0;padding-inline-end:.75rem;line-height:1;display:flex}.k-block-icon{--icon-color:var(--color-gray-600);width:1rem}.k-block-label{color:var(--color-text-dimmed);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-blocks-field{position:relative}.k-blocks-field>footer{margin-top:var(--spacing-3)}.k-string-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-string-input:focus{outline:0}.k-string-input[data-font=monospace]{font-family:var(--font-mono)}.k-color-field{--color-frame-size:calc(var(--input-height) - var(--spacing-2))}.k-color-field .k-input-before{align-items:center;padding-inline-start:var(--spacing-1)}.k-color-field-options{--color-frame-size:var(--input-height)}.k-color-field-picker{padding:var(--spacing-3)}.k-color-field-picker-toggle{--color-frame-rounded:var(--rounded-sm);border-radius:var(--color-frame-rounded)}.k-color-field .k-colorname-input{padding-inline:var(--input-padding)}.k-color-field .k-colorname-input:focus{outline:0}.k-date-field-body{gap:var(--spacing-2);display:grid}@container (width>=20rem){.k-date-field-body[data-has-time=true]{grid-template-columns:1fr minmax(6rem,9rem)}}.k-text-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-text-input:focus{outline:0}.k-text-input[data-font=monospace]{font-family:var(--font-mono)}.k-models-field[data-disabled=true] .k-item *{pointer-events:all!important}.k-headline-field{padding-top:1.5rem;position:relative}.k-fieldset>.k-grid .k-column:first-child .k-headline-field{padding-top:0}.k-headline-field h2.k-headline{font-weight:var(--font-normal)}.k-headline-field footer{margin-top:var(--spacing-2)}.k-info-field .k-headline{padding-bottom:.75rem;line-height:1.25rem}.k-layout-field>footer{margin-top:var(--spacing-3)}.k-line-field{border:0;width:auto;height:3rem;position:relative}.k-line-field:after{content:"";top:50%;background:var(--color-border);height:1px;margin-top:-1px;position:absolute;inset-inline:0}.k-link-input-header{height:var(--input-height);grid-area:header;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.25rem;display:grid}.k-link-input-toggle.k-button{--button-height:var(--height-sm);--button-rounded:var(--rounded-sm);--button-color-back:var(--color-gray-200);margin-inline-start:.25rem}.k-link-input-model{--tag-height:var(--height-sm);--tag-color-back:var(--color-gray-200);--tag-color-text:var(--color-black);--tag-color-toggle:var(--tag-color-text);--tag-color-toggle-border:var(--color-gray-300);--tag-color-focus-back:var(--tag-color-back);--tag-color-focus-text:var(--tag-color-text);--tag-rounded:var(--rounded-sm);justify-content:space-between;margin-inline-end:var(--spacing-1);display:flex;overflow:hidden}.k-link-input-model-placeholder.k-button{--button-align:flex-start;--button-color-text:var(--color-gray-600);--button-height:var(--height-sm);--button-padding:var(--spacing-2);white-space:nowrap;flex-grow:1;align-items:center;overflow:hidden}.k-link-input-model-toggle{--button-height:var(--height-sm);--button-width:var(--height-sm)}.k-link-input-body{border-top:1px solid var(--color-gray-300);background:var(--color-gray-100);--tree-color-back:var(--color-gray-100);--tree-color-hover-back:var(--color-gray-200);display:grid;overflow:hidden}.k-link-input-body[data-type=page] .k-page-browser{padding:var(--spacing-2);padding-bottom:calc(var(--spacing-2) - 1px);width:100%;overflow:auto;container-type:inline-size}.k-writer{gap:var(--spacing-1);grid-template-areas:"content";width:100%;display:grid;position:relative}.k-writer .ProseMirror{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;white-space:pre-wrap;font-variant-ligatures:none;padding:var(--input-padding-multiline);grid-area:content}.k-writer .ProseMirror:focus{outline:0}.k-writer .ProseMirror *{caret-color:currentColor}.k-writer .ProseMirror hr.ProseMirror-selectednode{outline:var(--outline)}.k-writer[data-placeholder][data-empty=true]:before{content:attr(data-placeholder);color:var(--input-color-placeholder);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;line-height:var(--text-line-height);padding:var(--input-padding-multiline);grid-area:content}.k-list-input.k-writer[data-placeholder][data-empty=true]:before{padding-inline-start:2.5em}.k-list-field .k-list-input .ProseMirror,.k-list-field .k-list-input:before{padding:.475rem .5rem .475rem .75rem}:root{--tags-gap:.375rem}.k-tags{gap:var(--tags-gap);flex-wrap:wrap;align-items:center;display:inline-flex}.k-tags .k-sortable-ghost{outline:var(--outline)}.k-tags[data-layout=list],.k-tags[data-layout=list] .k-tag{width:100%}.k-tags-toggle.k-button{--button-rounded:var(--rounded-sm);--button-color-icon:var(--color-gray-600);opacity:0;transition:opacity .3s}.k-tags:is(:hover,:focus-within) .k-tags-toggle{opacity:1}.k-tags .k-tags-toggle:is(:focus,:hover){--button-color-icon:var(--color-text)}.k-tags-input{padding:var(--tags-gap)}.k-number-input{padding:var(--input-padding);border-radius:var(--input-rounded)}.k-number-input:focus{outline:0}.k-table.k-object-field-table{table-layout:auto}.k-table.k-object-field-table tbody td{max-width:0}.k-range-input{--range-track-height:1px;--range-track-back:var(--color-gray-300);--range-tooltip-back:var(--color-black);border-radius:var(--range-track-height);align-items:center;display:flex}.k-range-input input[type=range]:focus{outline:0}.k-range-input-tooltip{color:var(--color-white);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-align:center;border-radius:var(--rounded-sm);background:var(--range-tooltip-back);white-space:nowrap;align-items:center;max-width:20%;margin-inline-start:1rem;padding:0 .25rem;line-height:1;display:flex;position:relative}.k-range-input-tooltip:after{top:50%;border-block:3px solid #0000;border-inline-end:3px solid var(--range-tooltip-back);content:"";width:0;height:0;position:absolute;inset-inline-start:-3px;transform:translateY(-50%)}.k-range-input-tooltip>*{padding:var(--spacing-1)}.k-range-input[data-disabled=true]{--range-tooltip-back:var(--color-gray-600)}.k-input[data-type=range] .k-range-input{padding-inline:var(--input-padding)}.k-select-input{padding:var(--input-padding);border-radius:var(--input-rounded);display:block;position:relative;overflow:hidden}.k-select-input[data-empty=true]{color:var(--input-color-placeholder)}.k-select-input-native{opacity:0;z-index:1;position:absolute;inset:0}.k-select-input-native[disabled]{cursor:default}.k-input[data-type=select]{position:relative}.k-input[data-type=select] .k-input-icon{position:absolute;inset-block:0;inset-inline-end:0}.k-structure-field:not([data-disabled=true]) td.k-table-column{cursor:pointer}.k-structure-field .k-table+footer{margin-top:var(--spacing-3)}.k-field-counter{display:none}.k-text-field:focus-within .k-field-counter{display:block}.k-toolbar.k-textarea-toolbar{border-bottom:1px solid var(--toolbar-border);border-end-end-radius:0;border-end-start-radius:0}.k-toolbar.k-textarea-toolbar>.k-button:first-child{border-end-start-radius:0}.k-toolbar.k-textarea-toolbar>.k-button:last-child{border-end-end-radius:0}.k-textarea-input[data-size=small]{--textarea-size:7.5rem}.k-textarea-input[data-size=medium]{--textarea-size:15rem}.k-textarea-input[data-size=large]{--textarea-size:30rem}.k-textarea-input[data-size=huge]{--textarea-size:45rem}.k-textarea-input-wrapper{display:block;position:relative}.k-textarea-input-native{resize:none;min-height:var(--textarea-size)}.k-textarea-input-native:focus{outline:0}.k-textarea-input-native[data-font=monospace]{font-family:var(--font-mono)}.k-input[data-type=textarea] .k-input-element{min-width:0}.k-input[data-type=textarea] .k-textarea-input-native{padding:var(--input-padding-multiline)}.k-input[data-type=toggle]{--input-color-border:transparent;--input-shadow:var(--shadow)}.k-input[data-type=toggle] .k-input-before{padding-inline-end:calc(var(--input-padding)/2)}.k-input[data-type=toggle] .k-toggle-input{padding-inline-start:var(--input-padding)}.k-input[data-type=toggle][data-disabled]{box-shadow:none}.k-input[data-type=toggles]{display:inline-flex}.k-input[data-type=toggles].grow{display:flex}.k-input[data-type=toggles]:has(.k-empty){outline:0;display:flex}.k-toggles-input{grid-template-columns:repeat(var(--options),minmax(0,1fr));border-radius:var(--rounded);background:var(--color-border);gap:1px;line-height:1;display:grid;overflow:hidden}.k-toggles-input li{height:var(--field-input-height);background:var(--color-white)}.k-toggles-input label{background:var(--color-white);cursor:pointer;font-size:var(--text-sm);padding:0 var(--spacing-3);justify-content:center;align-items:center;height:100%;line-height:1.25;display:flex}.k-toggles-input li[data-disabled=true] label{color:var(--color-text-dimmed);background:var(--color-light)}.k-toggles-input .k-icon+.k-toggles-text{margin-inline-start:var(--spacing-2)}.k-toggles-input input:focus:not(:checked)+label{background:var(--color-blue-200)}.k-toggles-input input:checked+label{background:var(--color-black);color:var(--color-white)}.k-alpha-input{--range-track-back:linear-gradient(to right,transparent,currentColor);--range-track-height:var(--range-thumb-size);color:#000;background:var(--color-white)var(--pattern-light)}.k-calendar-input{--button-height:var(--height-sm);--button-width:var(--button-height);--button-padding:0;padding:var(--spacing-2);width:min-content}.k-calendar-table{table-layout:fixed;min-width:15rem}.k-calendar-input .k-button{justify-content:center}.k-calendar-input>nav{direction:ltr;margin-bottom:var(--spacing-2);align-items:center;display:flex}.k-calendar-selects{flex-grow:1;justify-content:center;align-items:center;display:flex}[dir=ltr] .k-calendar-selects{direction:ltr}[dir=rtl] .k-calendar-selects{direction:rtl}.k-calendar-selects .k-select-input{text-align:center;height:var(--button-height);border-radius:var(--input-rounded);align-items:center;padding:0 .5rem;display:flex}.k-calendar-selects .k-select-input:focus-within{outline:var(--outline)}.k-calendar-input th{color:var(--color-gray-500);font-size:var(--text-xs);text-align:center;padding-block:.5rem}.k-calendar-day{padding:2px}.k-calendar-day[aria-current=date] .k-button{text-decoration:underline}.k-calendar-day[aria-selected=date] .k-button,.k-calendar-day[aria-selected=date] .k-button:focus{--button-color-text:var(--color-text);--button-color-back:var(--color-blue-500)}.k-calendar-day[aria-selected=date] .k-button:focus-visible{outline-offset:2px}.k-calendar-today{padding-top:var(--spacing-2);text-align:center}.k-calendar-today .k-button{--button-width:auto;--button-padding:var(--spacing-3);font-size:var(--text-xs);text-decoration:underline}.k-choice-input{gap:var(--spacing-3);min-width:0;display:flex}.k-choice-input input{top:2px}.k-choice-input-label{color:var(--choice-color-text);flex-direction:column;min-width:0;line-height:1.25rem;display:flex}.k-choice-input-label>*{text-overflow:ellipsis;display:block;overflow:hidden}.k-choice-input-label-info{color:var(--choice-color-info)}.k-choice-input[aria-disabled]{cursor:not-allowed}:where(.k-checkboxes-field,.k-radio-field) .k-choice-input{background:var(--input-color-back);min-height:var(--input-height);padding-block:var(--spacing-2);padding-inline:var(--spacing-3);border-radius:var(--input-rounded);box-shadow:var(--shadow)}.k-coloroptions-input{--color-preview-size:var(--input-height)}.k-coloroptions-input ul{grid-template-columns:repeat(auto-fill,var(--color-preview-size));gap:var(--spacing-2);display:grid}.k-coloroptions-input input:focus+.k-color-frame{outline:var(--outline)}.k-coloroptions-input[disabled] label{opacity:var(--opacity-disabled);cursor:not-allowed}.k-coloroptions-input input:checked+.k-color-frame{outline-offset:2px;outline:2px solid}.k-colorpicker-input{--h:0;--s:0%;--l:0%;--a:1;--range-thumb-size:.75rem;--range-track-height:.75rem;gap:var(--spacing-3);flex-direction:column;width:max-content;display:flex}.k-colorpicker-input .k-coords-input{border-radius:var(--rounded-sm);aspect-ratio:1;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--h),100%,50%))}.k-colorpicker-input .k-alpha-input{color:hsl(var(--h),var(--s),var(--l))}.k-colorpicker-input .k-coloroptions-input ul{grid-template-columns:repeat(6,1fr)}.k-coords-input{position:relative;display:block!important}.k-coords-input img{width:100%}.k-coords-input-thumb{aspect-ratio:1;width:var(--range-thumb-size);background:var(--range-thumb-color);border-radius:var(--range-thumb-size);box-shadow:var(--range-thumb-shadow);cursor:move;position:absolute;transform:translate(-50%,-50%)}.k-coords-input[data-empty] .k-coords-input-thumb{opacity:0}.k-coords-input-thumb:active{cursor:grabbing}.k-coords-input:focus-within{outline:var(--outline)}.k-coords-input[aria-disabled]{pointer-events:none;opacity:var(--opacity-disabled)}.k-coords-input .k-coords-input-thumb:focus{outline:var(--outline)}.k-hue-input{--range-track-back:linear-gradient(to right,red 0%,#ff0 16.67%,#0f0 33.33%,#0ff 50%,#00f 66.67%,#f0a 83.33%,red 100%)no-repeat;--range-track-height:var(--range-thumb-size)}.k-multiselect-input{padding:var(--tags-gap)}.k-timeoptions-input{--button-height:var(--height-sm);gap:var(--spacing-3);grid-template-columns:1fr 1fr;display:grid}.k-timeoptions-input h3{padding-inline:var(--button-padding);height:var(--button-height);margin-bottom:var(--spacing-1);align-items:center;display:flex}.k-timeoptions-input hr{margin:var(--spacing-2)var(--spacing-3)}.k-timeoptions-input .k-button[aria-selected=time]{--button-color-text:var(--color-text);--button-color-back:var(--color-blue-500)}.k-layout{--layout-border-color:var(--color-gray-300);--layout-toolbar-width:2rem;box-shadow:var(--shadow);background:#fff;padding-inline-end:var(--layout-toolbar-width);position:relative}[data-disabled=true] .k-layout{padding-inline-end:0}.k-layout:not(:last-of-type){margin-bottom:1px}.k-layout:focus{outline:0}.k-layout-toolbar{width:var(--layout-toolbar-width);padding-bottom:var(--spacing-2);font-size:var(--text-sm);background:var(--color-gray-100);border-inline-start:1px solid var(--color-light);color:var(--color-gray-500);flex-direction:column;justify-content:space-between;align-items:center;display:flex;position:absolute;inset-block:0;inset-inline-end:0}.k-layout-toolbar:hover{color:var(--color-black)}.k-layout-toolbar-button{width:var(--layout-toolbar-width);height:var(--layout-toolbar-width)}.k-layout-columns.k-grid{grid-gap:1px;background:var(--layout-border-color);background:var(--color-gray-300)}.k-layout:not(:first-child) .k-layout-columns.k-grid{border-top:0}.k-layout-column{background:var(--color-white);flex-direction:column;height:100%;min-height:6rem;display:flex;position:relative}.k-layout-column:focus{outline:0}.k-layout-column .k-blocks{box-shadow:none;background:0 0;background:var(--color-white);height:100%;min-height:4rem;padding:0}.k-layout-column .k-blocks[data-empty=true]{min-height:6rem}.k-layout-column .k-blocks-list{flex-direction:column;height:100%;display:flex}.k-layout-column .k-blocks .k-block-container:last-of-type{flex-grow:1}.k-layout-column .k-blocks-empty.k-box{--box-color-back:transparent;opacity:0;border:0;justify-content:center;transition:opacity .3s;position:absolute;inset:0}.k-layout-column .k-blocks-empty:hover{opacity:1}.k-layouts .k-sortable-ghost{outline:2px solid var(--color-focus);cursor:grabbing;z-index:1;position:relative;box-shadow:0 5px 10px #11111140}.k-layout-selector h3{margin-top:-.5rem;margin-bottom:var(--spacing-3)}.k-layout-selector-options{gap:var(--spacing-6);grid-template-columns:repeat(3,1fr);display:grid}@media screen and (width>=65em){.k-layout-selector-options{grid-template-columns:repeat(var(--columns),1fr)}}.k-layout-selector-option{--color-border:hsla(var(--color-gray-hs),0%,6%);--color-back:var(--color-white);border-radius:var(--rounded)}.k-layout-selector-option:focus-visible{outline:var(--outline);outline-offset:-1px}.k-layout-selector-option .k-grid{border:1px solid var(--color-border);grid-template-columns:repeat(var(--columns),1fr);cursor:pointer;background:var(--color-border);border-radius:var(--rounded);box-shadow:var(--shadow);gap:1px;height:5rem;overflow:hidden}.k-layout-selector-option .k-column{grid-column:span var(--span);background:var(--color-back);height:100%}.k-layout-selector-option:hover{--color-border:var(--color-gray-500);--color-back:var(--color-gray-100)}.k-layout-selector-option[aria-current]{--color-border:var(--color-focus);--color-back:var(--color-blue-300)}.k-bubbles{gap:.25rem;display:flex}.k-bubbles-field-preview{--bubble-back:var(--color-light);--bubble-text:var(--color-black);padding:.375rem var(--table-cell-padding);overflow:hidden}.k-bubbles-field-preview .k-bubbles{gap:.375rem}.k-color-field-preview{--color-frame-rounded:var(--tag-rounded);--color-frame-size:var(--tag-height);padding:.375rem var(--table-cell-padding);align-items:center;gap:var(--spacing-2);display:flex}.k-text-field-preview{text-overflow:ellipsis;white-space:nowrap;padding:.325rem .75rem;overflow-x:hidden}.k-url-field-preview{padding-inline:var(--table-cell-padding)}.k-url-field-preview[data-link]{color:var(--link-color)}.k-url-field-preview a{height:var(--height-xs);padding-inline:var(--spacing-1);margin-inline:calc(var(--spacing-1)*-1);border-radius:var(--rounded);align-items:center;min-width:0;max-width:100%;display:inline-flex}.k-url-field-preview a>*{white-space:nowrap;text-overflow:ellipsis;text-underline-offset:var(--link-underline-offset);text-decoration:underline;overflow:hidden}.k-url-field-preview a:hover{color:var(--color-black)}.k-flag-field-preview{--button-height:var(--table-row-height);--button-width:100%;outline-offset:-2px}.k-html-field-preview{padding:.375rem var(--table-cell-padding);text-overflow:ellipsis;overflow:hidden}.k-image-field-preview{height:100%}.k-toggle-field-preview{padding-inline:var(--table-cell-padding)}:root{--toolbar-size:var(--height);--toolbar-text:var(--color-black);--toolbar-back:var(--color-white);--toolbar-hover:#efefef80;--toolbar-border:#0000001a;--toolbar-current:var(--color-focus)}.k-toolbar{height:var(--toolbar-size);color:var(--toolbar-text);background:var(--toolbar-back);border-radius:var(--rounded);align-items:center;max-width:100%;display:flex;overflow:auto hidden}.k-toolbar[data-theme=dark]{--toolbar-text:var(--color-white);--toolbar-back:var(--color-black);--toolbar-hover:#fff3;--toolbar-border:var(--color-gray-800)}.k-toolbar>hr{height:var(--toolbar-size);border-left:1px solid var(--toolbar-border);width:1px}.k-toolbar-button.k-button{--button-width:var(--toolbar-size);--button-height:var(--toolbar-size);--button-rounded:0;outline-offset:-2px}.k-toolbar-button:hover{--button-color-back:var(--toolbar-hover)}.k-toolbar .k-button[aria-current]{--button-color-text:var(--toolbar-current)}.k-toolbar>.k-button:first-child{border-start-start-radius:var(--rounded);border-end-start-radius:var(--rounded)}.k-toolbar>.k-button:last-child{border-start-end-radius:var(--rounded);border-end-end-radius:var(--rounded)}:where(.k-textarea-input,.k-writer-input):not(:focus-within){--toolbar-text:var(--color-gray-400);--toolbar-border:var(--color-background)}:where(.k-textarea-input,.k-writer-input):focus-within .k-toolbar:not([data-inline=true]){top:var(--header-sticky-offset);z-index:1;position:sticky;inset-inline:0;box-shadow:0 2px 5px #0000000d}.k-writer:not([data-toolbar-inline=true]):not([data-disabled=true]){grid-template-areas:"topbar""content";grid-template-rows:var(--toolbar-size)1fr;gap:0}.k-writer:not(:focus-within){--toolbar-current:currentColor}.k-writer-toolbar[data-inline=true]{z-index:calc(var(--z-dropdown) + 1);box-shadow:var(--shadow-toolbar);max-width:none;position:absolute}.k-writer-toolbar:not([data-inline=true]){border-bottom:1px solid var(--toolbar-border);border-end-end-radius:0;border-end-start-radius:0}.k-writer-toolbar:not([data-inline=true])>.k-button:first-child{border-end-start-radius:0}.k-writer-toolbar:not([data-inline=true])>.k-button:last-child{border-end-end-radius:0}.k-aspect-ratio{padding-bottom:100%;display:block;position:relative;overflow:hidden}.k-aspect-ratio>*{object-fit:contain;width:100%;height:100%;inset:0;position:absolute!important}.k-aspect-ratio[data-cover=true]>*{object-fit:cover}:root{--bar-height:var(--height-xs)}.k-bar{align-items:center;gap:var(--spacing-3);height:var(--bar-height);justify-content:space-between;display:flex}.k-bar:where([data-align=center]){justify-content:center}.k-bar:where([data-align=end]):has(:first-child:last-child){justify-content:end}.k-bar-slot{flex-grow:1}.k-bar-slot[data-position=center]{text-align:center}.k-bar-slot[data-position=right]{text-align:end}:root{--box-height:var(--field-input-height);--box-padding-inline:var(--spacing-2);--box-font-size:var(--text-sm);--box-color-back:none;--box-color-text:currentColor}.k-box{--icon-color:var(--box-color-icon);--text-font-size:var(--box-font-size);align-items:center;gap:var(--spacing-2);color:var(--box-color-text);background:var(--box-color-back);word-wrap:break-word;width:100%;display:flex}.k-box[data-theme]{--box-color-back:var(--theme-color-back);--box-color-text:var(--theme-color-text);--box-color-icon:var(--theme-color-700);min-height:var(--box-height);padding:.375rem var(--box-padding-inline);border-radius:var(--rounded);line-height:1.25}.k-box[data-theme=text],.k-box[data-theme=white]{box-shadow:var(--shadow)}.k-box[data-theme=text]{padding:var(--spacing-6)}.k-box[data-theme=none]{padding:0}.k-box[data-align=center]{justify-content:center}:root{--bubble-size:1.525rem;--bubble-back:var(--color-light);--bubble-text:var(--color-black)}.k-bubble{height:var(--bubble-size);white-space:nowrap;background:var(--bubble-back);color:var(--bubble-text);border-radius:var(--rounded);width:min-content;line-height:1.5;overflow:hidden}.k-bubble .k-frame{width:var(--bubble-size);height:var(--bubble-size)}.k-bubble[data-has-text=true]{gap:var(--spacing-2);font-size:var(--text-xs);align-items:center;padding-inline-end:.5rem;display:flex}.k-column{min-width:0}.k-column[data-sticky=true]{align-self:stretch}.k-column[data-sticky=true]>div{top:calc(var(--header-sticky-offset) + 2vh);z-index:2;position:sticky}.k-column[data-disabled=true]{cursor:not-allowed;opacity:.4}.k-column[data-disabled=true] *{pointer-events:none}.k-column[data-disabled=true] .k-text[data-theme=help] *{pointer-events:initial}.k-frame{--fit:contain;--ratio:1/1;aspect-ratio:var(--ratio);background:var(--back);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.k-frame:where([data-theme]){--back:var(--theme-color-back);color:var(--theme-color-text)}.k-frame :where(img,video,iframe,button){object-fit:var(--fit);width:100%;height:100%;position:absolute;inset:0}.k-frame>*{text-overflow:ellipsis;min-width:0;min-height:0;overflow:hidden}:root{--color-frame-rounded:var(--rounded);--color-frame-size:100%;--color-frame-darkness:0%}.k-color-frame.k-frame{background:var(--pattern-light);width:var(--color-frame-size);color:#0000;border-radius:var(--color-frame-rounded);background-clip:padding-box;overflow:hidden}.k-color-frame:after{border-radius:var(--color-frame-rounded);box-shadow:0 0 0 1px inset hsla(0,0%,var(--color-frame-darkness),.175);content:"";background-color:currentColor;position:absolute;inset:0}.k-dropzone{position:relative}.k-dropzone:after{content:"";pointer-events:none;z-index:1;border-radius:var(--rounded);display:none;position:absolute;inset:0}.k-dropzone[data-over=true]:after{background:hsla(var(--color-blue-hs),var(--color-blue-l-300),.6);outline:var(--outline);display:block}.k-grid{--columns:12;--grid-inline-gap:0;--grid-block-gap:0;grid-column-gap:var(--grid-inline-gap);grid-row-gap:var(--grid-block-gap);align-items:start;display:grid}.k-grid>*{--width:calc(1/var(--columns));--span:calc(var(--columns)*var(--width))}@container (width>=30rem){.k-grid{grid-template-columns:repeat(var(--columns),1fr)}.k-grid>*{grid-column:span var(--span)}.k-grid[data-gutter=small]{--grid-inline-gap:1rem;--grid-block-gap:1rem}.k-grid:where([data-gutter=medium],[data-gutter=large],[data-gutter=huge]){--grid-inline-gap:1.5rem;--grid-block-gap:1.5rem}}@container (width>=65em){.k-grid[data-gutter=large]{--grid-inline-gap:3rem}.k-grid[data-gutter=huge]{--grid-inline-gap:4.5rem}}@container (width>=90em){.k-grid[data-gutter=large]{--grid-inline-gap:4.5rem}.k-grid[data-gutter=huge]{--grid-inline-gap:6rem}}@container (width>=120em){.k-grid[data-gutter=large]{--grid-inline-gap:6rem}.k-grid[data-gutter=huge]{--grid-inline-gap:7.5rem}}:root{--columns-inline-gap:clamp(.75rem,6cqw,6rem);--columns-block-gap:clamp(var(--spacing-8),6vh,6rem)}.k-grid[data-variant=columns]{--grid-inline-gap:var(--columns-inline-gap);--grid-block-gap:var(--columns-block-gap)}.k-grid:where([data-variant=columns],[data-variant=fields])>*{container:column/inline-size}.k-grid[data-variant=fields]{gap:var(--spacing-8)}.k-grid[data-variant=choices]{align-items:stretch;gap:2px}:root{--header-color-back:var(--color-light);--header-padding-block:var(--spacing-4);--header-sticky-offset:calc(var(--scroll-top,0rem) + 4rem)}.k-header{border-bottom:1px solid var(--color-border);background:var(--header-color-back);padding-top:var(--header-padding-block);margin-bottom:var(--spacing-12);box-shadow:2px 0 0 0 var(--header-color-back),-2px 0 0 0 var(--header-color-back);flex-wrap:wrap;justify-content:space-between;align-items:baseline;display:flex;position:relative}.k-header-title{font-size:var(--text-h1);font-weight:var(--font-h1);line-height:var(--leading-h1);margin-bottom:var(--header-padding-block);min-width:0}.k-header-title-button{text-align:start;gap:var(--spacing-2);outline:0;align-items:baseline;max-width:100%;display:inline-flex}.k-header-title-text{text-overflow:ellipsis;overflow-x:clip}.k-header-title-icon{--icon-color:var(--color-text-dimmed);border-radius:var(--rounded);height:var(--height-sm);width:var(--height-sm);opacity:0;flex-shrink:0;place-items:center;transition:opacity .2s;display:grid}.k-header-title-button:is(:hover,:focus) .k-header-title-icon{opacity:1}.k-header-title-button:focus .k-header-title-icon{outline:var(--outline)}.k-header-buttons{gap:var(--spacing-2);margin-bottom:var(--header-padding-block);flex-shrink:0;display:flex}.k-header[data-has-buttons=true]{top:var(--scroll-top,0);z-index:var(--z-toolbar);position:sticky}:root{--icon-size:18px;--icon-color:currentColor}.k-icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);flex-shrink:0}.k-icon[data-type=loader]{animation:1.5s linear infinite Spin}@media only screen and (-webkit-device-pixel-ratio>=2),not all,not all,not all,only screen and (resolution>=192dpi),only screen and (resolution>=2x){.k-icon-frame [data-type=emoji]{font-size:1.25em}}.k-image[data-back=pattern]{--back:var(--color-black)var(--pattern)}.k-image[data-back=black]{--back:var(--color-black)}.k-image[data-back=white]{--back:var(--color-white);color:var(--color-gray-900)}:root{--overlay-color-back:var(--color-backdrop)}.k-overlay[open]{overscroll-behavior:contain;z-index:var(--z-dialog);background:0 0;width:100%;height:100dvh;position:fixed;inset:0;overflow:hidden;transform:translate(0)}.k-overlay[open]::backdrop{background:0 0}.k-overlay[open]>.k-portal{background:var(--overlay-color-back);position:fixed;inset:0;overflow:auto}.k-overlay[open][data-type=dialog]>.k-portal{display:inline-flex}.k-overlay[open][data-type=dialog]>.k-portal>*{margin:auto}.k-overlay[open][data-type=drawer]>.k-portal{--overlay-color-back:#0003;justify-content:flex-end;align-items:stretch;display:flex}html[data-overlay]{overflow:hidden}html[data-overlay] body{overflow:scroll}:root{--stat-value-text-size:var(--text-2xl);--stat-info-text-color:var(--color-text-dimmed)}.k-stat{padding:var(--spacing-3)var(--spacing-6);background:var(--color-white);border-radius:var(--rounded);box-shadow:var(--shadow);line-height:var(--leading-normal);flex-direction:column;display:flex}.k-stat.k-link:hover{cursor:pointer;background:var(--color-gray-100)}.k-stat :where(dt,dd){display:block}.k-stat-value{font-size:var(--stat-value-text-size);margin-bottom:var(--spacing-1);order:1}.k-stat-label{font-size:var(--text-xs);order:2}.k-stat-info{font-size:var(--text-xs);color:var(--stat-info-text-color);order:3}.k-stat[data-theme] .k-stat-info{--stat-info-text-color:var(--theme-color-700)}.k-stats{grid-gap:var(--spacing-2px);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));grid-auto-rows:1fr;display:grid}.k-stats[data-size=small]{--stat-value-text-size:var(--text-md)}.k-stats[data-size=medium]{--stat-value-text-size:var(--text-xl)}.k-stats[data-size=large]{--stat-value-text-size:var(--text-2xl)}.k-stats[data-size=huge]{--stat-value-text-size:var(--text-3xl)}:root{--table-cell-padding:var(--spacing-3);--table-color-back:var(--color-white);--table-color-border:var(--color-background);--table-color-hover:var(--color-gray-100);--table-color-th-back:var(--color-gray-100);--table-color-th-text:var(--color-text-dimmed);--table-row-height:var(--input-height)}.k-table{background:var(--table-color-back);box-shadow:var(--shadow);border-radius:var(--rounded);position:relative}.k-table table{table-layout:fixed}.k-table th,.k-table td{padding-inline:var(--table-cell-padding);height:var(--table-row-height);text-overflow:ellipsis;border-inline-end:1px solid var(--table-color-border);width:100%;line-height:1.25;overflow:hidden}.k-table tr>:last-child{border-inline-end:0}.k-table th,.k-table tr:not(:last-child) td{border-block-end:1px solid var(--table-color-border)}.k-table :where(td,th)[data-align]{text-align:var(--align)}.k-table th{padding-inline:var(--table-cell-padding);font-family:var(--font-mono);font-size:var(--text-xs);color:var(--table-color-th-text);background:var(--table-color-th-back)}.k-table th[data-has-button]{padding:0}.k-table th button{padding-inline:var(--table-cell-padding);border-radius:var(--rounded);text-align:start;width:100%;height:100%}.k-table th button:focus-visible{outline-offset:-2px}.k-table thead th:first-child{border-start-start-radius:var(--rounded)}.k-table thead th:last-child{border-start-end-radius:var(--rounded)}.k-table thead th{top:var(--header-sticky-offset);z-index:1;position:sticky;inset-inline:0}.k-table tbody tr:hover td{background:var(--table-color-hover)}.k-table tbody th{white-space:nowrap;border-radius:0;width:auto;overflow:visible}.k-table tbody tr:first-child th{border-start-start-radius:var(--rounded)}.k-table tbody tr:last-child th{border-block-end:0;border-end-start-radius:var(--rounded)}.k-table-row-ghost{background:var(--color-white);outline:var(--outline);border-radius:var(--rounded);cursor:grabbing;margin-bottom:2px}.k-table-row-fallback{opacity:0!important}.k-table .k-table-index-column{width:var(--table-row-height);text-align:center}.k-table .k-table-index{font-size:var(--text-xs);color:var(--color-text-dimmed);line-height:1.1em}.k-table .k-table-index-column .k-sort-handle{--button-width:100%;display:none}.k-table tr:hover .k-table-index-column[data-sortable=true] .k-table-index{display:none}.k-table tr:hover .k-table-index-column[data-sortable=true] .k-sort-handle{display:flex}.k-table .k-table-options-column{width:var(--table-row-height);text-align:center;padding:0}.k-table .k-table-options-column .k-options-dropdown-toggle{--button-width:100%;--button-height:100%;outline-offset:-2px}.k-table-empty{color:var(--color-text-dimmed);font-size:var(--text-sm)}.k-table[aria-disabled=true]{--table-color-back:transparent;--table-color-border:var(--color-border);--table-color-hover:transparent;--table-color-th-back:transparent;border:1px solid var(--table-color-border);box-shadow:none}.k-table[aria-disabled=true] thead th{position:static}@container (width<=40rem){.k-table{overflow-x:scroll}.k-table thead th{position:static}}.k-table .k-table-cell{padding:0}.k-tabs{--button-height:var(--height-md);--button-padding:var(--spacing-2);gap:var(--spacing-1);margin-bottom:var(--spacing-12);margin-inline:calc(var(--button-padding)*-1);display:flex}.k-tab-button.k-button{margin-block:2px;overflow-x:visible}.k-tab-button[aria-current]:after{content:"";inset-inline:var(--button-padding);background:currentColor;height:2px;position:absolute;bottom:-2px}.k-tabs-badge{font-variant-numeric:tabular-nums;top:2px;padding:0 var(--spacing-1);text-align:center;box-shadow:var(--shadow-md);background:var(--theme-color-back);border:1px solid var(--theme-color-500);color:var(--theme-color-text);z-index:1;border-radius:1rem;font-size:10px;line-height:1.5;position:absolute;inset-inline-end:var(--button-padding);transform:translate(75%)}.k-view{padding-inline:1.5rem}@container (width>=30rem){.k-view{padding-inline:3rem}}.k-view[data-align=center]{justify-content:center;align-items:center;height:100vh;padding:0 3rem;display:flex;overflow:auto}.k-view[data-align=center]>*{flex-basis:22.5rem}.k-fatal[open]{background:var(--overlay-color-back);padding:var(--spacing-6)}.k-fatal-box{box-shadow:var(--dialog-shadow);border-radius:var(--dialog-rounded);flex-direction:column;width:100%;height:calc(100dvh - 3rem);line-height:1;display:flex;position:relative;overflow:hidden}.k-fatal-iframe{background:var(--color-white);padding:var(--spacing-3);border:0;flex-grow:1;width:100%}.k-icons{width:0;height:0;position:absolute}.k-loader{z-index:1}.k-loader-icon{animation:.9s linear infinite Spin}.k-notification{background:var(--color-gray-900);color:var(--color-white);flex-shrink:0;align-items:center;width:100%;padding:.75rem 1.5rem;line-height:1.25rem;display:flex}.k-notification[data-theme]{background:var(--theme-color-back);color:var(--color-black)}.k-notification p{word-wrap:break-word;flex-grow:1;overflow:hidden}.k-notification .k-button{margin-inline-start:1rem;display:flex}.k-offline-warning{z-index:var(--z-offline);background:var(--color-backdrop);justify-content:center;align-items:center;line-height:1;display:flex;position:fixed;inset:0}.k-offline-warning p{background:var(--color-white);box-shadow:var(--shadow);border-radius:var(--rounded);align-items:center;gap:.5rem;padding:.75rem;display:flex}.k-offline-warning p .k-icon{color:var(--color-red-400)}:root{--progress-height:var(--spacing-2);--progress-color-back:var(--color-gray-300);--progress-color-value:var(--color-focus)}progress{height:var(--progress-height);border-radius:var(--progress-height);border:0;width:100%;display:block;overflow:hidden}progress::-webkit-progress-bar{background:var(--progress-color-back)}progress::-webkit-progress-value{background:var(--progress-color-value);border-radius:var(--progress-height)}progress::-moz-progress-bar{background:var(--progress-color-value)}progress:not([value])::-webkit-progress-bar{background:var(--progress-color-value)}progress:not([value])::-moz-progress-bar{background:var(--progress-color-value)}.k-sort-handle{cursor:grab;z-index:1}.k-sort-handle:active{cursor:grabbing}.k-breadcrumb{--breadcrumb-divider:"/";padding:2px;overflow-x:clip}.k-breadcrumb ol{align-items:center;gap:.125rem;display:none}.k-breadcrumb ol li{align-items:center;min-width:0;display:flex}.k-breadcrumb ol li:not(:last-child):after{content:var(--breadcrumb-divider);opacity:.175;flex-shrink:0}.k-breadcrumb ol li{min-width:0;transition:flex-shrink .1s}.k-breadcrumb .k-icon[data-type=loader]{opacity:.5}.k-breadcrumb ol li:is(:hover,:focus-within){flex-shrink:0}.k-button.k-breadcrumb-link{flex-shrink:1;justify-content:flex-start;min-width:0}.k-breadcrumb-dropdown{display:grid}.k-breadcrumb-dropdown .k-dropdown-content{width:15rem}@container (width>=40em){.k-breadcrumb ol{display:flex}.k-breadcrumb-dropdown{display:none}}.k-browser{font-size:var(--text-sm);container-type:inline-size}.k-browser-items{--browser-item-gap:1px;--browser-item-size:1fr;--browser-item-height:var(--height-sm);--browser-item-padding:.25rem;--browser-item-rounded:var(--rounded);column-gap:var(--browser-item-gap);row-gap:var(--browser-item-gap);grid-template-columns:repeat(auto-fill,minmax(var(--browser-item-size),1fr));display:grid}.k-browser-item{height:var(--browser-item-height);padding-inline:calc(var(--browser-item-padding) + 1px);border-radius:var(--browser-item-rounded);white-space:nowrap;cursor:pointer;flex-shrink:0;align-items:center;gap:.5rem;display:flex;overflow:hidden}.k-browser-item-image{height:calc(var(--browser-item-height) - var(--browser-item-padding)*2);aspect-ratio:1;border-radius:var(--rounded-sm);box-shadow:var(--shadow);flex-shrink:0}.k-browser-item-image.k-icon-frame{box-shadow:none;background:var(--color-white)}.k-browser-item-image svg{transform:scale(.8)}.k-browser-item input{box-shadow:var(--shadow);opacity:0;width:0;position:absolute}.k-browser-item[aria-selected]{background:var(--color-blue-300)}:root{--button-align:center;--button-height:var(--height-md);--button-width:auto;--button-color-back:none;--button-color-text:currentColor;--button-color-icon:currentColor;--button-padding:var(--spacing-2);--button-rounded:var(--spacing-1);--button-text-display:block;--button-icon-display:block}.k-button{align-items:center;justify-content:var(--button-align);padding-inline:var(--button-padding);white-space:nowrap;border-radius:var(--button-rounded);background:var(--button-color-back);height:var(--button-height);width:var(--button-width);color:var(--button-color-text);font-variant-numeric:tabular-nums;text-align:var(--button-align);flex-shrink:0;gap:.5rem;line-height:1;display:inline-flex;position:relative;overflow-x:clip}.k-button-icon{--icon-color:var(--button-color-icon);display:var(--button-icon-display);flex-shrink:0}.k-button-text{text-overflow:ellipsis;display:var(--button-text-display);min-width:0;overflow-x:clip}.k-button:where([data-theme]){--button-color-icon:var(--theme-color-icon);--button-color-text:var(--theme-color-text)}.k-button:where([data-variant=dimmed]){--button-color-icon:var(--color-text);--button-color-dimmed-on:var(--color-text-dimmed);--button-color-dimmed-off:var(--color-text);--button-color-text:var(--button-color-dimmed-on)}.k-button:where([data-variant=dimmed]):not([aria-disabled]):is(:hover,[aria-current]){--button-color-text:var(--button-color-dimmed-off)}.k-button:where([data-theme][data-variant=dimmed]){--button-color-icon:var(--theme-color-icon);--button-color-dimmed-on:var(--theme-color-text-dimmed);--button-color-dimmed-off:var(--theme-color-text)}.k-button:where([data-variant=filled]){--button-color-back:var(--color-gray-300)}.k-button:where([data-variant=filled]):not([aria-disabled]):hover{filter:brightness(97%)}.k-button:where([data-theme][data-variant=filled]){--button-color-icon:var(--theme-color-700);--button-color-back:var(--theme-color-back);--button-color-text:var(--theme-color-text)}.k-button:not([data-has-text=true]){--button-padding:0;aspect-ratio:1}@container (width<=30rem){.k-button[data-responsive=true][data-has-icon=true]{--button-padding:0;aspect-ratio:1;--button-text-display:none}.k-button[data-responsive=text][data-has-text=true]{--button-icon-display:none}.k-button[data-responsive][data-has-icon=true] .k-button-arrow{display:none}}.k-button:not(button,a,summary,label,.k-link){pointer-events:none}.k-button:where([data-size=xs]){--button-height:var(--height-xs);--button-padding:.325rem}.k-button:where([data-size=sm]){--button-height:var(--height-sm);--button-padding:.5rem}.k-button:where([data-size=lg]){--button-height:var(--height-lg)}.k-button-arrow{--icon-size:10px;width:max-content;margin-inline-start:-.125rem}.k-button:where([aria-disabled]){cursor:not-allowed}.k-button:where([aria-disabled])>*{opacity:var(--opacity-disabled)}.k-button-group{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.k-button-group:where([data-layout=collapsed]){gap:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:not(:first-child){border-left:1px solid var(--theme-color-500,var(--color-gray-400));border-start-start-radius:0;border-end-start-radius:0}.k-button-group[data-layout=collapsed]>.k-button[data-variant=filled]:focus-visible{z-index:1;border-radius:var(--button-rounded)}.k-file-browser{overflow:hidden;container-type:inline-size}.k-file-browser-layout{grid-template-columns:minmax(10rem,15rem) 1fr;display:grid}.k-file-browser-tree{padding:var(--spacing-2);border-right:1px solid var(--color-gray-300)}.k-file-browser-items{padding:var(--spacing-2);background:var(--color-gray-100)}.k-file-browser-back-button{display:none}@container (width<=30rem){.k-file-browser-layout{grid-template-columns:minmax(0,1fr);min-height:10rem}.k-file-browser-back-button{height:var(--height-sm);background:var(--color-gray-200);border-radius:var(--rounded);justify-content:flex-start;align-items:center;width:100%;margin-bottom:.5rem;padding-inline:.25rem;display:flex}.k-file-browser-tree{border-right:0}.k-file-browser[data-view=files] .k-file-browser-tree,.k-file-browser[data-view=tree] .k-file-browser-items{display:none}}:root{--tree-color-back:var(--color-gray-200);--tree-color-hover-back:var(--color-gray-300);--tree-color-selected-back:var(--color-blue-300);--tree-color-selected-text:var(--color-black);--tree-color-text:var(--color-gray-dimmed);--tree-level:0;--tree-indentation:.6rem}.k-tree-branch{align-items:center;margin-bottom:1px;padding-inline-start:calc(var(--tree-level)*var(--tree-indentation));display:flex}.k-tree-branch[data-has-subtree=true]{z-index:calc(100 - var(--tree-level));background:var(--tree-color-back);inset-block-start:calc(var(--tree-level)*1.5rem)}.k-tree-branch:hover,li[aria-current]>.k-tree-branch{--tree-color-text:var(--tree-color-selected-text);background:var(--tree-color-hover-back);border-radius:var(--rounded)}li[aria-current]>.k-tree-branch{background:var(--tree-color-selected-back)}.k-tree-toggle{--icon-size:12px;aspect-ratio:1;border-radius:var(--rounded-sm);flex-shrink:0;place-items:center;width:1rem;margin-inline-start:.25rem;padding:0;display:grid}.k-tree-toggle:hover{background:#00000013}.k-tree-toggle[disabled]{visibility:hidden}.k-tree-folder{height:var(--height-sm);border-radius:var(--rounded-sm);line-height:1.25;font-size:var(--text-sm);align-items:center;gap:.325rem;width:100%;min-width:3rem;padding-inline:.25rem;display:flex}@container (width<=15rem){.k-tree{--tree-indentation:.375rem}.k-tree-folder{padding-inline:.125rem}.k-tree-folder .k-icon{display:none}}.k-tree-folder>.k-frame{flex-shrink:0}.k-tree-folder-label{text-overflow:ellipsis;white-space:nowrap;color:currentColor;overflow:hidden}.k-tree-folder[disabled]{opacity:var(--opacity-disabled)}.k-pagination-details{--button-padding:var(--spacing-3);font-size:var(--text-xs)}.k-pagination-selector{--button-height:var(--height);--dropdown-padding:0;overflow:visible}.k-pagination-selector form{justify-content:space-between;align-items:center;display:flex}.k-pagination-selector label{padding-inline-start:var(--spacing-3);padding-inline-end:var(--spacing-2)}.k-pagination-selector select{--height:calc(var(--button-height) - .5rem);min-width:var(--height);height:var(--height);text-align:center;background:var(--color-gray-800);color:var(--color-white);border-radius:var(--rounded-sm);width:auto}.k-prev-next{direction:ltr;flex-shrink:0}:root{--tag-color-back:var(--color-black);--tag-color-text:var(--color-white);--tag-color-toggle:currentColor;--tag-color-disabled-back:var(--color-gray-600);--tag-color-disabled-text:var(--tag-color-text);--tag-height:var(--height-xs);--tag-rounded:var(--rounded-sm)}.k-tag{height:var(--tag-height);font-size:var(--text-sm);color:var(--tag-color-text);background-color:var(--tag-color-back);border-radius:var(--tag-rounded);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;line-height:1;display:flex;position:relative}.k-tag:not([aria-disabled]):focus{outline:var(--outline)}.k-tag-image{height:calc(var(--tag-height) - var(--spacing-2));margin-inline:var(--spacing-1);border-radius:var(--tag-rounded);overflow:hidden}.k-tag-text{padding-inline:var(--spacing-2);line-height:var(--leading-tight)}.k-tag[data-has-image=true] .k-tag-text{padding-inline-start:var(--spacing-1)}.k-tag[data-has-toggle=true] .k-tag-text{padding-inline-end:0}.k-tag-toggle{width:var(--tag-height);height:var(--tag-height);filter:brightness(70%)}.k-tag-toggle:hover{filter:brightness()}.k-tag:where([aria-disabled]){background-color:var(--tag-color-disabled-back);color:var(--tag-color-disabled-text);cursor:not-allowed}.k-button[data-disabled=true]{opacity:.5;pointer-events:none;cursor:default}.k-card-options>.k-button[data-disabled=true]{display:inline-flex}.k-section+.k-section{margin-top:var(--columns-block-gap)}.k-section-header{margin-bottom:var(--spacing-2)}.k-fields-section input[type=submit]{display:none}[data-locked=true] .k-fields-section{opacity:.2;pointer-events:none}.k-models-section[data-processing=true]{pointer-events:none}.k-models-section-search.k-input{--input-color-back:var(--color-gray-300);--input-color-border:transparent;margin-bottom:var(--spacing-3)}:root{--code-color-back:var(--color-black);--code-color-icon:var(--color-gray-500);--code-color-text:var(--color-gray-200,white);--code-font-family:var(--font-mono);--code-font-size:1em;--code-inline-color-back:var(--color-blue-300);--code-inline-color-border:var(--color-blue-400);--code-inline-color-text:var(--color-blue-900);--code-inline-font-size:.9em;--code-padding:var(--spacing-3)}code{font-family:var(--code-font-family);font-size:var(--code-font-size);font-weight:var(--font-normal)}.k-code,.k-text pre{padding:var(--code-padding);border-radius:var(--rounded,.5rem);background:var(--code-color-back);color:var(--code-color-text);white-space:nowrap;-moz-tab-size:2;tab-size:2;max-width:100%;line-height:1.5;display:block;position:relative;overflow:auto hidden}.k-code:not(code),.k-text pre{white-space:pre-wrap}.k-code:before{content:attr(data-language);font-size:calc(.75*var(--text-xs));background:var(--code-color-back);border-radius:var(--rounded,.5rem);padding:.5rem .5rem .25rem .25rem;position:absolute;inset-block-start:0;inset-inline-end:0}.k-text>code,.k-text :not(pre)>code{padding-inline:var(--spacing-1);font-size:var(--code-inline-font-size);color:var(--code-inline-color-text);background:var(--code-inline-color-back);border-radius:var(--rounded);outline:1px solid var(--code-inline-color-border);outline-offset:-1px;display:inline-flex}:root{--text-h1:2em;--text-h2:1.75em;--text-h3:1.5em;--text-h4:1.25em;--text-h5:1.125em;--text-h6:1em;--font-h1:var(--font-semi);--font-h2:var(--font-semi);--font-h3:var(--font-semi);--font-h4:var(--font-semi);--font-h5:var(--font-semi);--font-h6:var(--font-semi);--leading-h1:1.125;--leading-h2:1.125;--leading-h3:1.25;--leading-h4:1.375;--leading-h5:1.5;--leading-h6:1.5}.k-headline{line-height:1.5em;font-weight:var(--font-bold)}.h1,.k-text h1,.k-headline[data-size=huge]{color:var(--color-h1,var(--color-h));font-family:var(--font-family-h1);font-size:var(--text-h1);font-weight:var(--font-h1);line-height:var(--leading-h1)}.h2,.k-text h2,.k-headline[data-size=large]{color:var(--color-h2,var(--color-h));font-family:var(--font-family-h2);font-size:var(--text-h2);font-weight:var(--font-h2);line-height:var(--leading-h2)}.h3,.k-text h3{color:var(--color-h3,var(--color-h));font-family:var(--font-family-h3);font-size:var(--text-h3);font-weight:var(--font-h3);line-height:var(--leading-h3)}.h4,.k-text h4,.k-headline[data-size=small]{color:var(--color-h4,var(--color-h));font-family:var(--font-family-h4);font-size:var(--text-h4);font-weight:var(--font-h4);line-height:var(--leading-h4)}.h5,.k-text h5{color:var(--color-h5,var(--color-h));font-family:var(--font-family-h5);font-size:var(--text-h5);font-weight:var(--font-h5);line-height:var(--leading-h5)}.h6,.k-text h6{color:var(--color-h6,var(--color-h));font-family:var(--font-family-h6);font-size:var(--text-h6);font-weight:var(--font-h6);line-height:var(--leading-h6)}.k-text>*+h6{margin-block-start:calc(var(--text-line-height)*1.5em)}.k-headline[data-theme]{color:var(--theme)}.k-label{height:var(--height-xs);font-weight:var(--font-semi);align-items:center;min-width:0;display:flex;position:relative}[aria-disabled] .k-label{opacity:var(--opacity-disabled);cursor:not-allowed}.k-label>a{height:var(--height-xs);padding-inline:var(--spacing-2);border-radius:var(--rounded);align-items:center;min-width:0;margin-inline-start:calc(-1*var(--spacing-2));display:inline-flex}.k-label-text{text-overflow:ellipsis;white-space:nowrap;overflow-x:clip}.k-label abbr{font-size:var(--text-xs);color:var(--color-gray-500);margin-inline-start:var(--spacing-1)}.k-label abbr.k-label-invalid{color:var(--color-red-700);display:none}:where(.k-field:has([data-invalid]),.k-section:has([data-invalid]))>header>.k-label abbr.k-label-invalid{display:inline-block}.k-field:has([data-invalid])>.k-field-header>.k-label abbr:has(+abbr.k-label-invalid){display:none}:root{--text-font-size:1em;--text-line-height:1.5;--link-color:var(--color-blue-800);--link-underline-offset:2px}.k-text{font-size:var(--text-font-size);line-height:var(--text-line-height)}.k-text[data-size=tiny]{--text-font-size:var(--text-xs)}.k-text[data-size=small]{--text-font-size:var(--text-sm)}.k-text[data-size=medium]{--text-font-size:var(--text-md)}.k-text[data-size=large]{--text-font-size:var(--text-xl)}.k-text[data-align]{text-align:var(--align)}.k-text>:where(audio,blockquote,details,div,figure,h1,h2,h3,h4,h5,h6,hr,iframe,img,object,ol,p,picture,pre,table,ul)+*{margin-block-start:calc(var(--text-line-height)*1em)}.k-text :where(.k-link,a){color:var(--link-color);text-underline-offset:var(--link-underline-offset);border-radius:var(--rounded-xs);outline-offset:2px;text-decoration:underline}.k-text ol,.k-text ul{padding-inline-start:1.75em}.k-text ol{list-style:numeric}.k-text ol>li{list-style:decimal}.k-text ul>li{list-style:disc}.k-text ul ul>li{list-style:circle}.k-text ul ul ul>li{list-style:square}.k-text blockquote{font-size:var(--text-lg);border-inline-start:2px solid var(--color-black);padding-inline-start:var(--spacing-4);line-height:1.25}.k-text img{border-radius:var(--rounded)}.k-text iframe{aspect-ratio:16/9;border-radius:var(--rounded);width:100%}.k-text hr{background:var(--color-border);height:1px}.k-help{color:var(--color-text-dimmed)}:root{--main-padding-inline:clamp(var(--spacing-6),5cqw,var(--spacing-24))}.k-panel-main{padding:var(--spacing-3)var(--main-padding-inline)var(--spacing-24);min-height:100dvh;margin-inline-start:var(--main-start);container:main/inline-size}.k-panel-notification{--button-height:var(--height-sm);--button-color-icon:var(--theme-color-800);--button-color-text:var(--theme-color-800);outline:1px solid var(--theme-color-500);box-shadow:var(--shadow-lg);z-index:var(--z-notification);position:fixed;inset-block-end:var(--spacing-6);inset-inline-end:var(--spacing-6)}:root{--menu-button-height:var(--height);--menu-button-width:100%;--menu-color-back:var(--color-gray-250);--menu-color-border:var(--color-gray-300);--menu-display:none;--menu-display-backdrop:block;--menu-padding:var(--spacing-3);--menu-shadow:var(--shadow-xl);--menu-toggle-height:var(--menu-button-height);--menu-toggle-width:1rem;--menu-width-closed:calc(var(--menu-button-height) + 2*var(--menu-padding));--menu-width-open:12rem;--menu-width:var(--menu-width-open)}.k-panel-menu{z-index:var(--z-navigation);display:var(--menu-display);width:var(--menu-width);background-color:var(--menu-color-back);border-right:1px solid var(--menu-color-border);box-shadow:var(--menu-shadow);position:fixed;inset-block:0;inset-inline-start:0}.k-panel-menu-body{gap:var(--spacing-4);padding:var(--menu-padding);overscroll-behavior:contain;flex-direction:column;height:100%;display:flex;overflow:hidden auto}.k-panel-menu-search{margin-bottom:var(--spacing-8)}.k-panel-menu-buttons{flex-direction:column;width:100%;display:flex}.k-panel-menu-buttons[data-second-last=true]{flex-grow:1}.k-panel-menu-buttons:last-child{justify-content:flex-end}.k-panel-menu-button{--button-align:flex-start;--button-height:var(--menu-button-height);--button-width:var(--menu-button-width);flex-shrink:0}.k-panel-menu-button[aria-current]{--button-color-back:var(--color-white);box-shadow:var(--shadow)}.k-panel-menu-button:focus{z-index:1}.k-panel[data-menu=true]{--menu-button-width:100%;--menu-display:block;--menu-width:var(--menu-width-open)}.k-panel[data-menu=true]:after{content:"";background:var(--color-backdrop);display:var(--menu-display-backdrop);pointer-events:none;position:fixed;inset:0}.k-panel-menu-toggle{--button-align:flex-start;--button-height:100%;--button-width:var(--menu-toggle-width);opacity:0;border-radius:0;align-items:flex-start;transition:opacity .2s;position:absolute;inset-block:0;inset-inline-start:100%;overflow:visible}.k-panel-menu-toggle:focus{outline:0}.k-panel-menu-toggle .k-button-icon{height:var(--menu-toggle-height);width:var(--menu-toggle-width);margin-top:var(--menu-padding);border-block:1px solid var(--menu-color-border);border-inline-end:1px solid var(--menu-color-border);background:var(--menu-color-back);border-start-end-radius:var(--button-rounded);border-end-end-radius:var(--button-rounded);place-items:center;display:grid}@media (width>=60rem){.k-panel{--menu-display:block;--menu-display-backdrop:none;--menu-shadow:none;--main-start:var(--menu-width)}.k-panel[data-menu=false]{--menu-button-width:var(--menu-button-height);--menu-width:var(--menu-width-closed)}.k-panel-menu-proxy{display:none}.k-panel-menu-toggle:focus-visible,.k-panel-menu[data-hover] .k-panel-menu-toggle{opacity:1}.k-panel-menu-toggle:focus-visible .k-button-icon{outline:var(--outline);border-radius:var(--button-rounded)}.k-panel-menu-search[aria-disabled=true]{opacity:0}}.k-panel.k-panel-outside{padding:var(--spacing-6);grid-template-rows:1fr;place-items:center;min-height:100dvh;display:grid}html{background:var(--color-light);overflow:hidden scroll}body{font-size:var(--text-sm)}.k-panel[data-loading=true]{animation:.5s LoadingCursor}.k-panel[data-loading=true]:after,.k-panel[data-dragging=true]{-webkit-user-select:none;user-select:none}.k-topbar{margin-inline:calc(var(--button-padding)*-1);margin-bottom:var(--spacing-8);align-items:center;gap:var(--spacing-1);display:flex;position:relative}.k-topbar-breadcrumb{margin-inline-start:-2px}.k-topbar-spacer{flex-grow:1}.k-topbar-signals{align-items:center;display:flex}.k-search-view .k-header{margin-bottom:0}.k-header+.k-search-view-results{margin-top:var(--spacing-12)}.k-search-view-input{--input-color-border:transparent;--input-color-back:var(--color-gray-300);--input-height:var(--height-md);width:40cqw}.k-file-view-header,.k-file-view[data-has-tabs=true] .k-file-preview{margin-bottom:0}.k-file-preview{background:var(--color-gray-900);border-radius:var(--rounded-lg);margin-bottom:var(--spacing-12);align-items:stretch;display:grid;overflow:hidden}.k-file-preview-thumb-column{background:var(--pattern);aspect-ratio:1}.k-file-preview-thumb{padding:var(--spacing-12);justify-content:center;align-items:center;height:100%;display:flex;container-type:size}.k-file-preview-thumb img{width:auto;max-width:100cqw;max-height:100cqh}.k-file-preview-thumb>.k-icon{--icon-size:3rem}.k-file-preview-thumb>.k-button{top:var(--spacing-2);position:absolute;inset-inline-start:var(--spacing-2)}.k-file-preview .k-coords-input{--opacity-disabled:1;--range-thumb-color:#5c8dd6bf;--range-thumb-size:1.25rem;--range-thumb-shadow:none;cursor:crosshair}.k-file-preview .k-coords-input-thumb:after{--size:.4rem;--pos:calc(50% - (var(--size)/2));top:var(--pos);width:var(--size);height:var(--size);content:"";background:var(--color-white);border-radius:50%;position:absolute;inset-inline-start:var(--pos)}.k-file-preview:not([data-has-focus=true]) .k-coords-input-thumb{display:none}.k-file-preview-details{display:grid}.k-file-preview-details dl{grid-gap:var(--spacing-6)var(--spacing-12);padding:var(--spacing-6);grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));align-self:center;line-height:1.5em;display:grid}.k-file-preview-details dt{font-size:var(--text-sm);font-weight:500;font-weight:var(--font-semi);color:var(--color-gray-500);margin-bottom:var(--spacing-1)}.k-file-preview-details :where(dd,a){font-size:var(--text-xs);color:#ffffffbf;white-space:nowrap;text-overflow:ellipsis;font-size:var(--text-sm);overflow:hidden}.k-file-preview-focus-info dd{align-items:center;display:flex}.k-file-preview-focus-info .k-button{--button-padding:var(--spacing-2);--button-color-back:var(--color-gray-800)}.k-file-preview[data-has-focus=true] .k-file-preview-focus-info .k-button{flex-direction:row-reverse}@container (width>=36rem){.k-file-preview{grid-template-columns:50% auto}.k-file-preview-thumb-column{aspect-ratio:auto}}@container (width>=65rem){.k-file-preview{grid-template-columns:33.333% auto}.k-file-preview-thumb-column{aspect-ratio:1}}@container (width>=90rem){.k-file-preview-layout{grid-template-columns:25% auto}}.k-login-dialog{--dialog-color-back:var(--color-white);--dialog-shadow:var(--shadow);container-type:inline-size}.k-login-fields{position:relative}.k-login-toggler{top:-2px;z-index:1;color:var(--link-color);padding-inline:var(--spacing-2);text-decoration:underline;text-decoration-color:var(--link-color);text-underline-offset:1px;height:var(--height-xs);border-radius:var(--rounded);line-height:1;position:absolute;inset-inline-end:calc(var(--spacing-2)*-1)}.k-login-form label abbr{visibility:hidden}.k-login-buttons{--button-padding:var(--spacing-3);margin-top:var(--spacing-10);justify-content:space-between;align-items:center;gap:1.5rem;display:flex}.k-installation-dialog{--dialog-color-back:var(--color-white);--dialog-shadow:var(--shadow);container-type:inline-size}.k-installation-view .k-button{margin-top:var(--spacing-3);width:100%}.k-installation-view form .k-button{margin-top:var(--spacing-10)}.k-installation-view .k-headline{font-weight:var(--font-semi);margin-top:-.5rem;margin-bottom:.75rem}.k-installation-issues{line-height:1.5em;font-size:var(--text-sm)}.k-installation-issues li{padding:var(--spacing-6);background:var(--color-red-300);border-radius:var(--rounded);padding-inline-start:3.5rem;position:relative}.k-installation-issues .k-icon{top:calc(1.5rem + 2px);color:var(--color-red-700);position:absolute;inset-inline-start:1.5rem}.k-installation-issues li:not(:last-child){margin-bottom:2px}.k-installation-issues li code{font:inherit;color:var(--color-red-700)}.k-password-reset-view .k-user-info{margin-bottom:var(--spacing-8)}.k-user-info{font-size:var(--text-sm);height:var(--height-lg);padding-inline:var(--spacing-2);background:var(--color-white);box-shadow:var(--shadow);align-items:center;gap:.75rem;display:flex}.k-user-info :where(.k-image-frame,.k-icon-frame){border-radius:var(--rounded-sm);width:1.5rem}.k-page-view[data-has-tabs=true] .k-page-view-header{margin-bottom:0}.k-page-view-status{--button-color-back:var(--color-gray-300);--button-color-icon:var(--theme-color-600);--button-color-text:initial}.k-site-view[data-has-tabs=true] .k-site-view-header{margin-bottom:0}.k-system-info .k-stat-label{color:var(--theme,var(--color-black))}.k-table-update-status-cell{align-items:center;height:100%;padding:0 .75rem;display:flex}.k-table-update-status-cell-version,.k-table-update-status-cell-button{font-variant-numeric:tabular-nums}.k-plugin-info{column-gap:var(--spacing-3);padding:var(--button-padding);row-gap:2px;display:grid}.k-plugin-info dt{color:var(--color-gray-400)}.k-plugin-info dd[data-theme]{color:var(--theme-color-600)}@container (width<=30em){.k-plugin-info dd:not(:last-of-type){margin-bottom:var(--spacing-2)}}@container (width>=30em){.k-plugin-info{grid-template-columns:1fr auto;width:20rem}}.k-user-name-placeholder{color:var(--color-gray-500);transition:color .3s}.k-user-view-header[data-editable=true] .k-user-name-placeholder:hover{color:var(--color-gray-900)}.k-user-view-header{border-bottom:0;margin-bottom:0}.k-user-view .k-user-profile{margin-bottom:var(--spacing-12)}.k-user-view[data-has-tabs=true] .k-user-profile{margin-bottom:0}.k-user-view-image{padding:0}.k-user-view-image .k-frame{border-radius:var(--rounded);width:6rem;height:6rem;line-height:0}.k-user-view-image .k-icon-frame{--back:var(--color-black);--icon-color:var(--color-gray-200)}.k-user-profile{--button-height:auto;padding:var(--spacing-2);background:var(--color-white);border-radius:var(--rounded-lg);align-items:center;gap:var(--spacing-3);box-shadow:var(--shadow);display:flex}.k-user-profile .k-button-group{flex-direction:column;align-items:flex-start;display:flex}.k-users-view-header{margin-bottom:0}:root{--color-l-100:98%;--color-l-200:94%;--color-l-300:88%;--color-l-400:80%;--color-l-500:70%;--color-l-600:60%;--color-l-700:45%;--color-l-800:30%;--color-l-900:15%;--color-red-h:0;--color-red-s:80%;--color-red-hs:var(--color-red-h),var(--color-red-s);--color-red-boost:3%;--color-red-l-100:calc(var(--color-l-100) + var(--color-red-boost));--color-red-l-200:calc(var(--color-l-200) + var(--color-red-boost));--color-red-l-300:calc(var(--color-l-300) + var(--color-red-boost));--color-red-l-400:calc(var(--color-l-400) + var(--color-red-boost));--color-red-l-500:calc(var(--color-l-500) + var(--color-red-boost));--color-red-l-600:calc(var(--color-l-600) + var(--color-red-boost));--color-red-l-700:calc(var(--color-l-700) + var(--color-red-boost));--color-red-l-800:calc(var(--color-l-800) + var(--color-red-boost));--color-red-l-900:calc(var(--color-l-900) + var(--color-red-boost));--color-red-100:hsl(var(--color-red-hs),var(--color-red-l-100));--color-red-200:hsl(var(--color-red-hs),var(--color-red-l-200));--color-red-300:hsl(var(--color-red-hs),var(--color-red-l-300));--color-red-400:hsl(var(--color-red-hs),var(--color-red-l-400));--color-red-500:hsl(var(--color-red-hs),var(--color-red-l-500));--color-red-600:hsl(var(--color-red-hs),var(--color-red-l-600));--color-red-700:hsl(var(--color-red-hs),var(--color-red-l-700));--color-red-800:hsl(var(--color-red-hs),var(--color-red-l-800));--color-red-900:hsl(var(--color-red-hs),var(--color-red-l-900));--color-orange-h:28;--color-orange-s:80%;--color-orange-hs:var(--color-orange-h),var(--color-orange-s);--color-orange-boost:2.5%;--color-orange-l-100:calc(var(--color-l-100) + var(--color-orange-boost));--color-orange-l-200:calc(var(--color-l-200) + var(--color-orange-boost));--color-orange-l-300:calc(var(--color-l-300) + var(--color-orange-boost));--color-orange-l-400:calc(var(--color-l-400) + var(--color-orange-boost));--color-orange-l-500:calc(var(--color-l-500) + var(--color-orange-boost));--color-orange-l-600:calc(var(--color-l-600) + var(--color-orange-boost));--color-orange-l-700:calc(var(--color-l-700) + var(--color-orange-boost));--color-orange-l-800:calc(var(--color-l-800) + var(--color-orange-boost));--color-orange-l-900:calc(var(--color-l-900) + var(--color-orange-boost));--color-orange-100:hsl(var(--color-orange-hs),var(--color-orange-l-100));--color-orange-200:hsl(var(--color-orange-hs),var(--color-orange-l-200));--color-orange-300:hsl(var(--color-orange-hs),var(--color-orange-l-300));--color-orange-400:hsl(var(--color-orange-hs),var(--color-orange-l-400));--color-orange-500:hsl(var(--color-orange-hs),var(--color-orange-l-500));--color-orange-600:hsl(var(--color-orange-hs),var(--color-orange-l-600));--color-orange-700:hsl(var(--color-orange-hs),var(--color-orange-l-700));--color-orange-800:hsl(var(--color-orange-hs),var(--color-orange-l-800));--color-orange-900:hsl(var(--color-orange-hs),var(--color-orange-l-900));--color-yellow-h:47;--color-yellow-s:80%;--color-yellow-hs:var(--color-yellow-h),var(--color-yellow-s);--color-yellow-boost:0%;--color-yellow-l-100:calc(var(--color-l-100) + var(--color-yellow-boost));--color-yellow-l-200:calc(var(--color-l-200) + var(--color-yellow-boost));--color-yellow-l-300:calc(var(--color-l-300) + var(--color-yellow-boost));--color-yellow-l-400:calc(var(--color-l-400) + var(--color-yellow-boost));--color-yellow-l-500:calc(var(--color-l-500) + var(--color-yellow-boost));--color-yellow-l-600:calc(var(--color-l-600) + var(--color-yellow-boost));--color-yellow-l-700:calc(var(--color-l-700) + var(--color-yellow-boost));--color-yellow-l-800:calc(var(--color-l-800) + var(--color-yellow-boost));--color-yellow-l-900:calc(var(--color-l-900) + var(--color-yellow-boost));--color-yellow-100:hsl(var(--color-yellow-hs),var(--color-yellow-l-100));--color-yellow-200:hsl(var(--color-yellow-hs),var(--color-yellow-l-200));--color-yellow-300:hsl(var(--color-yellow-hs),var(--color-yellow-l-300));--color-yellow-400:hsl(var(--color-yellow-hs),var(--color-yellow-l-400));--color-yellow-500:hsl(var(--color-yellow-hs),var(--color-yellow-l-500));--color-yellow-600:hsl(var(--color-yellow-hs),var(--color-yellow-l-600));--color-yellow-700:hsl(var(--color-yellow-hs),var(--color-yellow-l-700));--color-yellow-800:hsl(var(--color-yellow-hs),var(--color-yellow-l-800));--color-yellow-900:hsl(var(--color-yellow-hs),var(--color-yellow-l-900));--color-green-h:80;--color-green-s:60%;--color-green-hs:var(--color-green-h),var(--color-green-s);--color-green-boost:-2.5%;--color-green-l-100:calc(var(--color-l-100) + var(--color-green-boost));--color-green-l-200:calc(var(--color-l-200) + var(--color-green-boost));--color-green-l-300:calc(var(--color-l-300) + var(--color-green-boost));--color-green-l-400:calc(var(--color-l-400) + var(--color-green-boost));--color-green-l-500:calc(var(--color-l-500) + var(--color-green-boost));--color-green-l-600:calc(var(--color-l-600) + var(--color-green-boost));--color-green-l-700:calc(var(--color-l-700) + var(--color-green-boost));--color-green-l-800:calc(var(--color-l-800) + var(--color-green-boost));--color-green-l-900:calc(var(--color-l-900) + var(--color-green-boost));--color-green-100:hsl(var(--color-green-hs),var(--color-green-l-100));--color-green-200:hsl(var(--color-green-hs),var(--color-green-l-200));--color-green-300:hsl(var(--color-green-hs),var(--color-green-l-300));--color-green-400:hsl(var(--color-green-hs),var(--color-green-l-400));--color-green-500:hsl(var(--color-green-hs),var(--color-green-l-500));--color-green-600:hsl(var(--color-green-hs),var(--color-green-l-600));--color-green-700:hsl(var(--color-green-hs),var(--color-green-l-700));--color-green-800:hsl(var(--color-green-hs),var(--color-green-l-800));--color-green-900:hsl(var(--color-green-hs),var(--color-green-l-900));--color-aqua-h:180;--color-aqua-s:50%;--color-aqua-hs:var(--color-aqua-h),var(--color-aqua-s);--color-aqua-boost:0%;--color-aqua-l-100:calc(var(--color-l-100) + var(--color-aqua-boost));--color-aqua-l-200:calc(var(--color-l-200) + var(--color-aqua-boost));--color-aqua-l-300:calc(var(--color-l-300) + var(--color-aqua-boost));--color-aqua-l-400:calc(var(--color-l-400) + var(--color-aqua-boost));--color-aqua-l-500:calc(var(--color-l-500) + var(--color-aqua-boost));--color-aqua-l-600:calc(var(--color-l-600) + var(--color-aqua-boost));--color-aqua-l-700:calc(var(--color-l-700) + var(--color-aqua-boost));--color-aqua-l-800:calc(var(--color-l-800) + var(--color-aqua-boost));--color-aqua-l-900:calc(var(--color-l-900) + var(--color-aqua-boost));--color-aqua-100:hsl(var(--color-aqua-hs),var(--color-aqua-l-100));--color-aqua-200:hsl(var(--color-aqua-hs),var(--color-aqua-l-200));--color-aqua-300:hsl(var(--color-aqua-hs),var(--color-aqua-l-300));--color-aqua-400:hsl(var(--color-aqua-hs),var(--color-aqua-l-400));--color-aqua-500:hsl(var(--color-aqua-hs),var(--color-aqua-l-500));--color-aqua-600:hsl(var(--color-aqua-hs),var(--color-aqua-l-600));--color-aqua-700:hsl(var(--color-aqua-hs),var(--color-aqua-l-700));--color-aqua-800:hsl(var(--color-aqua-hs),var(--color-aqua-l-800));--color-aqua-900:hsl(var(--color-aqua-hs),var(--color-aqua-l-900));--color-blue-h:210;--color-blue-s:65%;--color-blue-hs:var(--color-blue-h),var(--color-blue-s);--color-blue-boost:3%;--color-blue-l-100:calc(var(--color-l-100) + var(--color-blue-boost));--color-blue-l-200:calc(var(--color-l-200) + var(--color-blue-boost));--color-blue-l-300:calc(var(--color-l-300) + var(--color-blue-boost));--color-blue-l-400:calc(var(--color-l-400) + var(--color-blue-boost));--color-blue-l-500:calc(var(--color-l-500) + var(--color-blue-boost));--color-blue-l-600:calc(var(--color-l-600) + var(--color-blue-boost));--color-blue-l-700:calc(var(--color-l-700) + var(--color-blue-boost));--color-blue-l-800:calc(var(--color-l-800) + var(--color-blue-boost));--color-blue-l-900:calc(var(--color-l-900) + var(--color-blue-boost));--color-blue-100:hsl(var(--color-blue-hs),var(--color-blue-l-100));--color-blue-200:hsl(var(--color-blue-hs),var(--color-blue-l-200));--color-blue-300:hsl(var(--color-blue-hs),var(--color-blue-l-300));--color-blue-400:hsl(var(--color-blue-hs),var(--color-blue-l-400));--color-blue-500:hsl(var(--color-blue-hs),var(--color-blue-l-500));--color-blue-600:hsl(var(--color-blue-hs),var(--color-blue-l-600));--color-blue-700:hsl(var(--color-blue-hs),var(--color-blue-l-700));--color-blue-800:hsl(var(--color-blue-hs),var(--color-blue-l-800));--color-blue-900:hsl(var(--color-blue-hs),var(--color-blue-l-900));--color-purple-h:275;--color-purple-s:60%;--color-purple-hs:var(--color-purple-h),var(--color-purple-s);--color-purple-boost:0%;--color-purple-l-100:calc(var(--color-l-100) + var(--color-purple-boost));--color-purple-l-200:calc(var(--color-l-200) + var(--color-purple-boost));--color-purple-l-300:calc(var(--color-l-300) + var(--color-purple-boost));--color-purple-l-400:calc(var(--color-l-400) + var(--color-purple-boost));--color-purple-l-500:calc(var(--color-l-500) + var(--color-purple-boost));--color-purple-l-600:calc(var(--color-l-600) + var(--color-purple-boost));--color-purple-l-700:calc(var(--color-l-700) + var(--color-purple-boost));--color-purple-l-800:calc(var(--color-l-800) + var(--color-purple-boost));--color-purple-l-900:calc(var(--color-l-900) + var(--color-purple-boost));--color-purple-100:hsl(var(--color-purple-hs),var(--color-purple-l-100));--color-purple-200:hsl(var(--color-purple-hs),var(--color-purple-l-200));--color-purple-300:hsl(var(--color-purple-hs),var(--color-purple-l-300));--color-purple-400:hsl(var(--color-purple-hs),var(--color-purple-l-400));--color-purple-500:hsl(var(--color-purple-hs),var(--color-purple-l-500));--color-purple-600:hsl(var(--color-purple-hs),var(--color-purple-l-600));--color-purple-700:hsl(var(--color-purple-hs),var(--color-purple-l-700));--color-purple-800:hsl(var(--color-purple-hs),var(--color-purple-l-800));--color-purple-900:hsl(var(--color-purple-hs),var(--color-purple-l-900));--color-pink-h:320;--color-pink-s:70%;--color-pink-hs:var(--color-pink-h),var(--color-pink-s);--color-pink-boost:0%;--color-pink-l-100:calc(var(--color-l-100) + var(--color-pink-boost));--color-pink-l-200:calc(var(--color-l-200) + var(--color-pink-boost));--color-pink-l-300:calc(var(--color-l-300) + var(--color-pink-boost));--color-pink-l-400:calc(var(--color-l-400) + var(--color-pink-boost));--color-pink-l-500:calc(var(--color-l-500) + var(--color-pink-boost));--color-pink-l-600:calc(var(--color-l-600) + var(--color-pink-boost));--color-pink-l-700:calc(var(--color-l-700) + var(--color-pink-boost));--color-pink-l-800:calc(var(--color-l-800) + var(--color-pink-boost));--color-pink-l-900:calc(var(--color-l-900) + var(--color-pink-boost));--color-pink-100:hsl(var(--color-pink-hs),var(--color-pink-l-100));--color-pink-200:hsl(var(--color-pink-hs),var(--color-pink-l-200));--color-pink-300:hsl(var(--color-pink-hs),var(--color-pink-l-300));--color-pink-400:hsl(var(--color-pink-hs),var(--color-pink-l-400));--color-pink-500:hsl(var(--color-pink-hs),var(--color-pink-l-500));--color-pink-600:hsl(var(--color-pink-hs),var(--color-pink-l-600));--color-pink-700:hsl(var(--color-pink-hs),var(--color-pink-l-700));--color-pink-800:hsl(var(--color-pink-hs),var(--color-pink-l-800));--color-pink-900:hsl(var(--color-pink-hs),var(--color-pink-l-900));--color-gray-h:0;--color-gray-s:0%;--color-gray-hs:var(--color-gray-h),var(--color-gray-s);--color-gray-boost:0%;--color-gray-l-100:calc(var(--color-l-100) + var(--color-gray-boost));--color-gray-l-200:calc(var(--color-l-200) + var(--color-gray-boost));--color-gray-l-300:calc(var(--color-l-300) + var(--color-gray-boost));--color-gray-l-400:calc(var(--color-l-400) + var(--color-gray-boost));--color-gray-l-500:calc(var(--color-l-500) + var(--color-gray-boost));--color-gray-l-600:calc(var(--color-l-600) + var(--color-gray-boost));--color-gray-l-700:calc(var(--color-l-700) + var(--color-gray-boost));--color-gray-l-800:calc(var(--color-l-800) + var(--color-gray-boost));--color-gray-l-900:calc(var(--color-l-900) + var(--color-gray-boost));--color-gray-100:hsl(var(--color-gray-hs),var(--color-gray-l-100));--color-gray-200:hsl(var(--color-gray-hs),var(--color-gray-l-200));--color-gray-250:#e8e8e8;--color-gray-300:hsl(var(--color-gray-hs),var(--color-gray-l-300));--color-gray-400:hsl(var(--color-gray-hs),var(--color-gray-l-400));--color-gray-500:hsl(var(--color-gray-hs),var(--color-gray-l-500));--color-gray-600:hsl(var(--color-gray-hs),var(--color-gray-l-600));--color-gray-700:hsl(var(--color-gray-hs),var(--color-gray-l-700));--color-gray-800:hsl(var(--color-gray-hs),var(--color-gray-l-800));--color-gray-900:hsl(var(--color-gray-hs),var(--color-gray-l-900));--color-backdrop:#0009;--color-black:black;--color-border:var(--color-gray-300);--color-dark:var(--color-gray-900);--color-focus:var(--color-blue-600);--color-light:var(--color-gray-200);--color-text:var(--color-black);--color-text-dimmed:var(--color-gray-700);--color-white:white;--color-background:var(--color-light);--color-gray:var(--color-gray-600);--color-red:var(--color-red-600);--color-orange:var(--color-orange-600);--color-yellow:var(--color-yellow-600);--color-green:var(--color-green-600);--color-aqua:var(--color-aqua-600);--color-blue:var(--color-blue-600);--color-purple:var(--color-purple-600);--color-focus-light:var(--color-focus);--color-focus-outline:var(--color-focus);--color-negative:var(--color-red-700);--color-negative-light:var(--color-red-500);--color-negative-outline:var(--color-red-900);--color-notice:var(--color-orange-700);--color-notice-light:var(--color-orange-500);--color-positive:var(--color-green-700);--color-positive-light:var(--color-green-500);--color-positive-outline:var(--color-green-900);--color-text-light:var(--color-text-dimmed);--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-mono:"SFMono-Regular",Consolas,Liberation Mono,Menlo,Courier,monospace;--text-xs:.75rem;--text-sm:.875rem;--text-md:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.75rem;--text-4xl:2.5rem;--text-5xl:3rem;--text-6xl:4rem;--text-base:var(--text-md);--font-size-tiny:var(--text-xs);--font-size-small:var(--text-sm);--font-size-medium:var(--text-base);--font-size-large:var(--text-xl);--font-size-huge:var(--text-2xl);--font-size-monster:var(--text-3xl);--font-thin:300;--font-normal:400;--font-semi:500;--font-bold:600;--height-xs:1.5rem;--height-sm:1.75rem;--height-md:2rem;--height-lg:2.25rem;--height-xl:2.5rem;--height:var(--height-md);--opacity-disabled:.5;--rounded-xs:1px;--rounded-sm:.125rem;--rounded-md:.25rem;--rounded-lg:.375rem;--rounded-xl:.5rem;--rounded:var(--rounded-md);--shadow-sm:0 1px 3px 0 #0000000d,0 1px 2px 0 #00000006;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000d;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;--shadow-xl:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000d;--shadow:var(--shadow-sm);--shadow-toolbar:#0000001a -2px 0 5px,var(--shadow),var(--shadow-xl);--shadow-outline:var(--color-focus,currentColor)0 0 0 2px;--shadow-inset:inset 0 2px 4px 0 #0000000f;--shadow-sticky:#0000000d 0 2px 5px;--box-shadow-dropdown:var(--shadow-dropdown);--box-shadow-item:var(--shadow);--box-shadow-focus:var(--shadow-xl);--shadow-dropdown:var(--shadow-lg);--shadow-item:var(--shadow-sm);--spacing-0:0;--spacing-1:.25rem;--spacing-2:.5rem;--spacing-3:.75rem;--spacing-4:1rem;--spacing-6:1.5rem;--spacing-8:2rem;--spacing-12:3rem;--spacing-16:4rem;--spacing-24:6rem;--spacing-36:9rem;--spacing-48:12rem;--spacing-px:1px;--spacing-2px:2px;--spacing-5:1.25rem;--spacing-10:2.5rem;--spacing-20:5rem;--z-offline:1200;--z-fatal:1100;--z-loader:1000;--z-notification:900;--z-dialog:800;--z-navigation:700;--z-dropdown:600;--z-drawer:500;--z-dropzone:400;--z-toolbar:300;--z-content:200;--z-background:100;--pattern-size:16px;--pattern-light:repeating-conic-gradient(#fff 0% 25%,#e6e6e6 0% 50%)50%/var(--pattern-size)var(--pattern-size);--pattern-dark:repeating-conic-gradient(#262626 0% 25%,#383838 0% 50%)50%/var(--pattern-size)var(--pattern-size);--pattern:var(--pattern-dark)}:root{--container:80rem;--leading-none:1;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--field-input-padding:var(--input-padding);--field-input-height:var(--input-height);--field-input-line-height:var(--input-leading);--field-input-font-size:var(--input-font-size);--bg-pattern:var(--pattern)}:root{--choice-color-back:var(--color-white);--choice-color-border:var(--color-gray-500);--choice-color-checked:var(--color-black);--choice-color-disabled:var(--color-gray-400);--choice-color-icon:var(--color-light);--choice-color-info:var(--color-text-dimmed);--choice-color-text:var(--color-text);--choice-color-toggle:var(--choice-color-disabled);--choice-height:1rem;--choice-rounded:var(--rounded-sm)}input:where([type=checkbox],[type=radio]){cursor:pointer;height:var(--choice-height);aspect-ratio:1;border:1px solid var(--choice-color-border);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--choice-rounded);background:var(--choice-color-back);box-shadow:var(--shadow-sm);flex-shrink:0;position:relative;overflow:hidden}input:where([type=checkbox],[type=radio]):after{content:"";text-align:center;place-items:center;display:none;position:absolute}input:where([type=checkbox],[type=radio]):focus{outline:var(--outline);outline-offset:-1px;color:var(--color-focus)}input:where([type=checkbox]):checked{border-color:var(--choice-color-checked)}input:where([type=checkbox],[type=radio]):checked:after{background:var(--choice-color-checked);display:grid}input:where([type=checkbox],[type=radio]):checked:focus{--choice-color-checked:var(--color-focus)}input:where([type=checkbox],[type=radio])[disabled]{--choice-color-back:none;--choice-color-border:var(--color-gray-300);--choice-color-checked:var(--choice-color-disabled);box-shadow:none;cursor:not-allowed}input[type=checkbox]:checked:after{content:"✓";color:var(--choice-color-icon);font-size:9px;font-weight:700;line-height:1;inset:0}input[type=radio]{--choice-rounded:50%}input[type=radio]:after{border-radius:var(--choice-rounded);inset:3px}input[type=checkbox][data-variant=toggle]{--choice-rounded:var(--choice-height);aspect-ratio:2}input[type=checkbox][data-variant=toggle]:after{background:var(--choice-color-toggle);border-radius:var(--choice-rounded);width:50%;display:grid;inset:1px}input[type=checkbox][data-variant=toggle]:checked{border-color:var(--choice-color-border)}input[type=checkbox][data-variant=toggle]:checked:after{background:var(--choice-color-checked);margin-inline-start:auto}:root{--range-thumb-color:var(--color-white);--range-thumb-focus-outline:var(--outline);--range-thumb-size:1rem;--range-thumb-shadow:#0000001a 0 2px 4px 2px,#00000020 0 0 0 1px;--range-track-back:var(--color-gray-250);--range-track-height:var(--range-thumb-size)}:where(input[type=range]){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:var(--range-thumb-size);border-radius:var(--range-track-size);align-items:center;width:100%;padding:0;display:flex}:where(input[type=range])::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--range-thumb-size);height:var(--range-thumb-size);background:var(--range-thumb-color);box-shadow:var(--range-thumb-shadow);margin-top:calc(((var(--range-thumb-size) - var(--range-track-height))/2)*-1);z-index:1;cursor:grab;border:0;border-radius:50%;transform:translate(0)}:where(input[type=range])::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--range-thumb-size);height:var(--range-thumb-size);background:var(--range-thumb-color);box-shadow:var(--range-thumb-shadow);z-index:1;cursor:grab;border:0;border-radius:50%;transform:translate(0)}:where(input[type=range])::-webkit-slider-thumb:active{cursor:grabbing}:where(input[type=range])::-moz-range-thumb:active{cursor:grabbing}:where(input[type=range])::-webkit-slider-runnable-track{background:var(--range-track-back);height:var(--range-track-height);border-radius:var(--range-track-height)}:where(input[type=range])::-moz-range-track{background:var(--range-track-back);height:var(--range-track-height);border-radius:var(--range-track-height)}:where(input[type=range][disabled]){--range-thumb-color:#fff3}:where(input[type=range][disabled])::-webkit-slider-thumb{cursor:not-allowed}:where(input[type=range][disabled])::-moz-range-thumb{cursor:not-allowed}:where(input[type=range]):focus{outline:var(--outline)}:where(input[type=range]):focus::-webkit-slider-thumb{outline:var(--range-thumb-focus-outline)}:where(input[type=range]):focus::-moz-range-thumb{outline:var(--range-thumb-focus-outline)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:where(b,strong){font-weight:var(--font-bold,600)}:where([hidden]){display:none!important}:where(abbr){text-decoration:none}:where(input,button,textarea,select){font:inherit;line-height:inherit;color:inherit;background:0 0;border:0}:where(fieldset){border:0}:where(legend){float:left;width:100%}:where(legend+*){clear:both}:where(select){-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-white);color:var(--color-black);cursor:pointer}:where(textarea,select,input:not([type=checkbox],[type=radio],[type=reset],[type=submit])){font-variant-numeric:tabular-nums;width:100%}:where(textarea){resize:vertical;line-height:1.5}:where(input)::-webkit-calendar-picker-indicator{display:none}:where(input[type=search]){-webkit-appearance:none;-moz-appearance:none;appearance:none}:where(input)::-webkit-search-cancel-button{display:none}:where(button,label,select,summary,[role=button],[role=option]){cursor:pointer}:where(select[multiple]) option{align-items:center;display:flex}:where(input:autofill){-webkit-background-clip:text;-webkit-text-fill-color:var(--input-color-text)!important}:where(:disabled){cursor:not-allowed}::placeholder{color:var(--input-color-placeholder);opacity:1}:where(a){color:currentColor;text-underline-offset:.2ex;text-decoration:none}:where(ul,ol){list-style:none}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(iframe){border:0}:where(img,picture,svg){block-size:auto;max-inline-size:100%}:where(p,h1,h2,h3,h4,h5,h6){overflow-wrap:break-word}:where(h1,h2,h3,h4,h5,h6){font:inherit}:where(:focus,:focus-visible,:focus-within){outline-color:var(--color-focus,currentColor);outline-offset:0}:where(:focus-visible){outline:var(--outline,2px solid var(--color-focus,currentColor))}:where(:invalid){box-shadow:none;outline:0}:where(dialog){border:0;max-width:none;max-height:none}:where(hr){border:0}:where(table){font:inherit;border-spacing:0;font-variant-numeric:tabular-nums;width:100%}:where(table th){font:inherit;text-align:start}:where(svg){fill:currentColor}body{font-family:var(--font-sans,sans-serif);font-size:var(--text-sm);accent-color:var(--color-focus,currentColor);line-height:1;position:relative}:where(sup,sub){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(sup){top:-.5em}:where(sub){bottom:-.25em}:where(mark){background:var(--color-yellow-300)}:where(kbd){padding-inline:var(--spacing-2);border-radius:var(--rounded);background:var(--color-white);box-shadow:var(--shadow);display:inline-block}[data-align=left]{--align:start}[data-align=center]{--align:center}[data-align=right]{--align:end}@keyframes LoadingCursor{to{cursor:progress}}@keyframes Spin{to{transform:rotate(360deg)}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[data-theme]{--theme-color-h:0;--theme-color-s:0%;--theme-color-hs:var(--theme-color-h),var(--theme-color-s);--theme-color-boost:3%;--theme-color-l-100:calc(var(--color-l-100) + var(--theme-color-boost));--theme-color-l-200:calc(var(--color-l-200) + var(--theme-color-boost));--theme-color-l-300:calc(var(--color-l-300) + var(--theme-color-boost));--theme-color-l-400:calc(var(--color-l-400) + var(--theme-color-boost));--theme-color-l-500:calc(var(--color-l-500) + var(--theme-color-boost));--theme-color-l-600:calc(var(--color-l-600) + var(--theme-color-boost));--theme-color-l-700:calc(var(--color-l-700) + var(--theme-color-boost));--theme-color-l-800:calc(var(--color-l-800) + var(--theme-color-boost));--theme-color-l-900:calc(var(--color-l-900) + var(--theme-color-boost));--theme-color-100:hsl(var(--theme-color-hs),var(--theme-color-l-100));--theme-color-200:hsl(var(--theme-color-hs),var(--theme-color-l-200));--theme-color-300:hsl(var(--theme-color-hs),var(--theme-color-l-300));--theme-color-400:hsl(var(--theme-color-hs),var(--theme-color-l-400));--theme-color-500:hsl(var(--theme-color-hs),var(--theme-color-l-500));--theme-color-600:hsl(var(--theme-color-hs),var(--theme-color-l-600));--theme-color-700:hsl(var(--theme-color-hs),var(--theme-color-l-700));--theme-color-800:hsl(var(--theme-color-hs),var(--theme-color-l-800));--theme-color-900:hsl(var(--theme-color-hs),var(--theme-color-l-900));--theme-color-text:var(--theme-color-900);--theme-color-text-dimmed:var(--theme-color-700);--theme-color-back:var(--theme-color-400);--theme-color-hover:var(--theme-color-500);--theme-color-icon:var(--theme-color-600)}[data-theme=error],[data-theme=negative]{--theme-color-h:var(--color-red-h);--theme-color-s:var(--color-red-s);--theme-color-boost:var(--color-red-boost)}[data-theme=notice]{--theme-color-h:var(--color-orange-h);--theme-color-s:var(--color-orange-s);--theme-color-boost:var(--color-orange-boost)}[data-theme=warning]{--theme-color-h:var(--color-yellow-h);--theme-color-s:var(--color-yellow-s);--theme-color-boost:var(--color-yellow-boost)}[data-theme=info]{--theme-color-h:var(--color-blue-h);--theme-color-s:var(--color-blue-s);--theme-color-boost:var(--color-blue-boost)}[data-theme=positive]{--theme-color-h:var(--color-green-h);--theme-color-s:var(--color-green-s);--theme-color-boost:var(--color-green-boost)}[data-theme=passive]{--theme-color-h:var(--color-gray-h);--theme-color-s:var(--color-gray-s);--theme-color-boost:10%}[data-theme=white],[data-theme=text]{--theme-color-back:var(--color-white);--theme-color-icon:var(--color-gray-800);--theme-color-text:var(--color-text);--color-h:var(--color-black)}[data-theme=dark]{--theme-color-h:var(--color-gray-h);--theme-color-s:var(--color-gray-s);--theme-color-boost:var(--color-gray-boost);--theme-color-back:var(--color-gray-800);--theme-color-icon:var(--color-gray-500);--theme-color-text:var(--color-gray-200)}[data-theme=code]{--theme-color-back:var(--code-color-back);--theme-color-hover:var(--color-black);--theme-color-icon:var(--code-color-icon);--theme-color-text:var(--code-color-text);font-family:var(--code-font-family);font-size:var(--code-font-size)}[data-theme=empty]{--theme-color-back:var(--color-light);--theme-color-border:var(--color-gray-400);--theme-color-icon:var(--color-gray-600);--theme-color-text:var(--color-text-dimmed);border:1px dashed var(--theme-color-border)}[data-theme=none]{--theme-color-back:transparent;--theme-color-border:transparent;--theme-color-icon:var(--color-text);--theme-color-text:var(--color-text)}[data-theme]{--theme:var(--theme-color-700);--theme-light:var(--theme-color-500);--theme-bg:var(--theme-color-500)}:root{--outline:2px solid var(--color-focus,currentColor)}.scroll-x,.scroll-x-auto,.scroll-y,.scroll-y-auto{-webkit-overflow-scrolling:touch;transform:translate(0)}.scroll-x{overflow:scroll hidden}.scroll-x-auto{overflow:auto hidden}.scroll-y{overflow:hidden scroll}.scroll-y-auto{overflow:hidden auto}.input-hidden{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0;width:0;height:0;position:absolute}.k-lab-index-view .k-header{margin-bottom:0}.k-lab-index-view .k-list-items{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}.k-lab-example{outline-offset:-2px;border-radius:var(--rounded);border:1px solid var(--color-gray-300);max-width:100%;position:relative;container-type:inline-size}.k-lab-example+.k-lab-example{margin-top:var(--spacing-12)}.k-lab-example-header{height:var(--height-md);padding-block:var(--spacing-3);padding-inline:var(--spacing-2);border-bottom:1px solid var(--color-gray-300);justify-content:space-between;align-items:center;display:flex}.k-lab-example-label{color:var(--color-text-dimmed);font-size:12px}.k-lab-example-canvas,.k-lab-example-code{padding:var(--spacing-16)}.k-lab-example[data-flex] .k-lab-example-canvas{align-items:center;gap:var(--spacing-6);display:flex}.k-lab-example-inspector{--icon-size:13px;--button-color-icon:var(--color-gray-500)}.k-lab-example-inspector .k-button:not([data-theme]):hover{--button-color-icon:var(--color-gray-600)}.k-lab-example-inspector .k-button:where([data-theme]){--button-color-icon:var(--color-gray-800)}.k-lab-examples>:where(.k-text,.k-box){margin-bottom:var(--spacing-6)}.k-lab-form>footer{border-top:1px dashed var(--color-border);padding-top:var(--spacing-6)}.k-lab-input-examples :not([type=checkbox],[type=radio]):invalid{outline:2px solid var(--color-red-600)!important}.k-lab-options-input-examples fieldset:invalid,.k-lab-options-input-examples :not([type=checkbox],[type=radio]):invalid{outline:2px solid var(--color-red-600)}.k-lab-playground-view[data-has-tabs=true] .k-header{margin-bottom:0}.k-lab-docs-deprecated .k-box{box-shadow:var(--shadow)}.k-lab-docs-examples .k-code+.k-code{margin-top:var(--spacing-4)}.k-lab-docs-prop-values{font-size:var(--text-xs);border-left:2px solid var(--color-blue-300);padding-inline-start:var(--spacing-2)}.k-lab-docs-prop-values dl{font-weight:var(--font-bold)}.k-lab-docs-prop-values dl+dl{margin-top:var(--spacing-2)}.k-lab-docs-prop-values dd{gap:var(--spacing-1);flex-wrap:wrap;display:inline-flex}.k-lab-docs-desc-header{justify-content:space-between;align-items:center;display:flex}.k-table .k-lab-docs-deprecated{--box-height:var(--height-xs);--text-font-size:var(--text-xs)}.k-labs-docs-params li{margin-inline-start:var(--spacing-3);list-style:square}.k-labs-docs-params .k-lab-docs-types{margin-inline:1ch}.k-lab-docs-types{gap:var(--spacing-1);flex-wrap:wrap;display:inline-flex}.k-lab-docs-types.k-text code{color:var(--color-gray-800);outline-color:var(--color-gray-400);background:var(--color-gray-300)}.k-lab-docs-types code:is([data-type=boolean],[data-type=Boolean]){color:var(--color-purple-800);outline-color:var(--color-purple-400);background:var(--color-purple-300)}.k-lab-docs-types code:is([data-type=string],[data-type=String]){color:var(--color-green-800);outline-color:var(--color-green-500);background:var(--color-green-300)}.k-lab-docs-types code:is([data-type=number],[data-type=Number]){color:var(--color-orange-800);outline-color:var(--color-orange-500);background:var(--color-orange-300)}.k-lab-docs-types code:is([data-type=array],[data-type=Array]){color:var(--color-aqua-800);outline-color:var(--color-aqua-500);background:var(--color-aqua-300)}.k-lab-docs-types code:is([data-type=object],[data-type=Object]){color:var(--color-yellow-800);outline-color:var(--color-yellow-500);background:var(--color-yellow-300)}.k-lab-docs-types code[data-type=func]{color:var(--color-pink-800);outline-color:var(--color-pink-400);background:var(--color-pink-300)}.k-lab-docs-section+.k-lab-docs-section{margin-top:var(--spacing-12)}.k-lab-docs-section .k-headline{margin-bottom:var(--spacing-3)}.k-lab-docs-section .k-table td{padding:.375rem var(--table-cell-padding);vertical-align:top;word-break:break-word;line-height:1.5}.k-lab-docs-description :where(.k-text,.k-box)+:where(.k-text,.k-box){margin-top:var(--spacing-3)}.k-lab-docs-required{vertical-align:super;color:var(--color-red-600);margin-inline-start:var(--spacing-1);font-size:.7rem}.k-lab-docs-since{margin-top:var(--spacing-1);font-size:var(--text-xs);color:var(--color-gray-600)}.token.punctuation,.token.comment,.token.doctype{color:var(--color-gray-500)}.token.tag,.token.markup,.token.variable,.token.this,.token.selector,.token.key,.token.kirbytag-bracket,.token.prolog,.token.delimiter{color:var(--color-red-500)}.token.constant,.token.number,.token.boolean,.token.boolean.important,.token.attr-name,.token.kirbytag-attr,.token.kirbytag-name,.token.entity,.token.bold,.token.bold>.punctuation{color:var(--color-orange-500)}.token.keyword,.token.italic,.token.italic>.punctuation{color:var(--color-purple-500)}.token.function{color:var(--color-blue-500)}.token.operator,.token.title{color:var(--color-aqua-500)}.token.string,.token.attr-value,.token.attr-value .punctuation,.token.list.punctuation{color:var(--color-green-500)}.token.scope,.token.class-name,.token.property,.token.url{color:var(--color-yellow-500)}.token.title,.token.kirbytag-bracket,.token.list.punctuation,.token.bold{font-weight:var(--font-bold)}.token.title .punctuation{color:var(--color-gray-500)}.token.italic{font-style:italic} diff --git a/panel/dist/img/icons.svg b/panel/dist/img/icons.svg index 5d19645e3c..e43c0d058d 100644 --- a/panel/dist/img/icons.svg +++ b/panel/dist/img/icons.svg @@ -212,7 +212,7 @@ - + @@ -226,8 +226,9 @@ + - + diff --git a/panel/dist/js/Docs.min.js b/panel/dist/js/Docs.min.js new file mode 100644 index 0000000000..c835a2397c --- /dev/null +++ b/panel/dist/js/Docs.min.js @@ -0,0 +1 @@ +import{n as t}from"./index.min.js";const e={props:{deprecated:String}};const s=t({mixins:[e]},(function(){var t=this,e=t._self._c;return t.deprecated.length?e("section",{staticClass:"k-lab-docs-section k-lab-docs-deprecated"},[e("k-lab-docs-deprecated",{attrs:{deprecated:t.deprecated}})],1):t._e()}),[],!1,null,null,null,null).exports,l={props:{description:String,since:String}};const a=t({mixins:[l]},(function(){var t,e,s,l=this,a=l._self._c;return(null==(t=l.description)?void 0:t.length)||(null==(e=l.since)?void 0:e.length)?a("section",{staticClass:"k-lab-docs-section"},[a("header",{staticClass:"k-lab-docs-desc-header"},[a("k-headline",{staticClass:"h3"},[l._v("Description")]),(null==(s=l.since)?void 0:s.length)?a("k-text",[l._v(" Since "),a("code",[l._v(l._s(l.since))])]):l._e()],1),a("k-box",{attrs:{theme:"text"}},[a("k-text",{attrs:{html:l.description}})],1)],1):l._e()}),[],!1,null,null,null,null).exports,n={props:{examples:{default:()=>[],type:Array}}};const c=t({mixins:[n]},(function(){var t=this,e=t._self._c;return t.examples.length?e("section",{staticClass:"k-lab-docs-section k-lab-docs-examples"},[e("k-headline",{staticClass:"h3"},[t._v("Examples")]),t._l(t.examples,(function(s,l){return e("k-code",{key:l,attrs:{language:"html"}},[t._v(t._s(s.content))])}))],2):t._e()}),[],!1,null,null,null,null).exports,r={props:{props:{default:()=>[],type:Array}}};const i=t({mixins:[r]},(function(){var t=this,e=t._self._c;return t.props.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Props")]),e("div",{staticClass:"k-table"},[e("table",[t._m(0),e("tbody",t._l(t.props,(function(s){var l,a,n,c,r,i,o,d,p;return e("tr",{key:s.name},[e("td",[e("k-text",[e("code",[t._v(t._s(s.name))]),s.required?e("abbr",{staticClass:"k-lab-docs-required"},[t._v("✶")]):t._e(),(null==(l=s.since)?void 0:l.length)?e("div",{staticClass:"k-lab-docs-since"},[t._v(" since "+t._s(s.since)+" ")]):t._e()])],1),e("td",[e("k-lab-docs-types",{attrs:{types:null==(a=s.type)?void 0:a.split("|")}})],1),e("td",[s.default?e("k-text",[e("code",[t._v(t._s(s.default))])]):t._e()],1),e("td",{staticClass:"k-lab-docs-description"},[e("k-lab-docs-deprecated",{attrs:{deprecated:s.deprecated}}),(null==(n=s.description)?void 0:n.length)?e("k-text",{attrs:{html:s.description}}):t._e(),(null==(c=s.value)?void 0:c.length)||(null==(r=s.values)?void 0:r.length)||(null==(i=s.example)?void 0:i.length)?e("k-text",{staticClass:"k-lab-docs-prop-values"},[(null==(o=s.value)?void 0:o.length)?e("dl",[e("dt",[t._v("Value")]),e("dd",[e("code",[t._v(t._s(s.value))])])]):t._e(),(null==(d=s.values)?void 0:d.length)?e("dl",[e("dt",[t._v("Values")]),e("dd",t._l(s.values,(function(s){return e("code",{key:s},[t._v(" "+t._s(s.replaceAll("`",""))+" ")])})),0)]):t._e(),(null==(p=s.example)?void 0:p.length)?e("dl",[e("dt",[t._v("Example")]),e("dd",[e("code",[t._v(t._s(s.example))])])]):t._e()]):t._e()],1)])})),0)])])],1):t._e()}),[function(){var t=this,e=t._self._c;return e("thead",[e("th",{staticStyle:{width:"10rem"}},[t._v("Name")]),e("th",{staticStyle:{width:"10rem"}},[t._v("Type")]),e("th",{staticStyle:{width:"10rem"}},[t._v("Default")]),e("th",[t._v("Description")])])}],!1,null,null,null,null).exports,o={props:{slots:{default:()=>[],type:Array}},computed:{hasBindings(){return this.slots.filter((t=>t.bindings.length)).length}}};const d=t({mixins:[o]},(function(){var t=this,e=t._self._c;return t.slots.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Slots")]),e("div",{staticClass:"k-table"},[e("table",[e("thead",[e("th",{staticStyle:{width:"10rem"}},[t._v("Slot")]),e("th",[t._v("Description")]),t.hasBindings?e("th",[t._v("Bindings")]):t._e()]),e("tbody",t._l(t.slots,(function(s){var l;return e("tr",{key:s.name},[e("td",{staticStyle:{width:"12rem"}},[e("k-text",[e("code",[t._v(t._s(s.name))]),(null==(l=s.since)?void 0:l.length)?e("div",{staticClass:"k-lab-docs-since"},[t._v(" since "+t._s(s.since)+" ")]):t._e()])],1),e("td",[e("k-lab-docs-deprecated",{attrs:{deprecated:s.deprecated}}),e("k-text",{attrs:{html:s.description}})],1),t.hasBindings?e("td",[e("k-lab-docs-params",{attrs:{params:s.bindings}})],1):t._e()])})),0)])])],1):t._e()}),[],!1,null,null,null,null).exports,p={props:{events:{default:()=>[],type:Array}},computed:{hasProperties(){return this.events.filter((t=>t.properties.length)).length}}};const u=t({mixins:[p]},(function(){var t=this,e=t._self._c;return t.events.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Events")]),e("div",{staticClass:"k-table"},[e("table",[e("thead",[e("th",{staticStyle:{width:"10rem"}},[t._v("Event")]),e("th",[t._v("Description")]),t.hasProperties?e("th",[t._v("Properties")]):t._e()]),e("tbody",t._l(t.events,(function(s){var l;return e("tr",{key:s.name},[e("td",[e("k-text",[e("code",[t._v(t._s(s.name))]),(null==(l=s.since)?void 0:l.length)?e("div",{staticClass:"k-lab-docs-since"},[t._v(" since "+t._s(s.since)+" ")]):t._e()])],1),e("td",[e("k-lab-docs-deprecated",{attrs:{deprecated:s.deprecated}}),e("k-text",{attrs:{html:s.description}})],1),t.hasProperties?e("td",[e("k-lab-docs-params",{attrs:{params:s.properties}})],1):t._e()])})),0)])])],1):t._e()}),[],!1,null,null,null,null).exports,_={props:{methods:{default:()=>[],type:Array}}};const h=t({mixins:[_]},(function(){var t=this,e=t._self._c;return t.methods.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Methods")]),e("div",{staticClass:"k-table"},[e("table",[t._m(0),e("tbody",t._l(t.methods,(function(s){var l;return e("tr",{key:s.name},[e("td",[e("k-text",[e("code",[t._v(t._s(s.name))]),(null==(l=s.since)?void 0:l.length)?e("div",{staticClass:"k-lab-docs-since"},[t._v(" since "+t._s(s.since)+" ")]):t._e()])],1),e("td",[e("k-lab-docs-deprecated",{attrs:{deprecated:s.deprecated}}),e("k-text",{attrs:{html:s.description}})],1),e("td",[e("k-lab-docs-params",{attrs:{params:s.params}})],1),e("td",[e("k-lab-docs-types",{attrs:{types:[s.returns]}})],1)])})),0)])])],1):t._e()}),[function(){var t=this,e=t._self._c;return e("thead",[e("th",{staticStyle:{width:"10rem"}},[t._v("Method")]),e("th",[t._v("Description")]),e("th",{staticStyle:{width:"16rem"}},[t._v("Params")]),e("th",{staticStyle:{width:"10rem"}},[t._v("Returns")])])}],!1,null,null,null,null).exports,v={props:{docBlock:String}};const k=t({mixins:[v]},(function(){var t,e=this,s=e._self._c;return(null==(t=e.docBlock)?void 0:t.length)?s("section",{staticClass:"k-lab-docs-section"},[s("header",[s("k-headline",{staticClass:"h3"},[e._v("Further information")])],1),s("k-box",{attrs:{theme:"text"}},[s("k-text",{attrs:{html:e.docBlock}})],1)],1):e._e()}),[],!1,null,null,null,null).exports;const m=t({props:{deprecated:{type:String}}},(function(){var t,e=this,s=e._self._c;return(null==(t=e.deprecated)?void 0:t.length)?s("k-box",{staticClass:"k-lab-docs-deprecated",attrs:{icon:"protected",theme:"warning"}},[s("k-text",{attrs:{html:"Deprecated: "+e.deprecated}})],1):e._e()}),[],!1,null,null,null,null).exports;const b=t({props:{params:{type:Array,default:()=>[]}}},(function(){var t=this,e=t._self._c;return t.params.length?e("ul",{staticClass:"k-labs-docs-params"},t._l(t.params,(function(s){return e("li",{key:s.name},[e("k-text",[e("code",[t._v(t._s(s.name))]),e("k-lab-docs-types",{attrs:{types:[s.type]}}),s.description.length?e("span",{domProps:{innerHTML:t._s(s.description)}}):t._e()],1)],1)})),0):t._e()}),[],!1,null,null,null,null).exports;const x=t({props:{types:{type:Array,default:()=>[]}}},(function(){var t=this,e=t._self._c;return e("k-text",{staticClass:"k-lab-docs-types"},t._l(t.types,(function(s){return e("code",{key:s,attrs:{"data-type":s}},[t._v(" "+t._s(s)+" ")])})),0)}),[],!1,null,null,null,null).exports;Vue.component("k-lab-docs-deprecated",m),Vue.component("k-lab-docs-params",b),Vue.component("k-lab-docs-types",x);const f=t({components:{"k-lab-docs-deprecated":s,"k-lab-docs-description":a,"k-lab-docs-examples":c,"k-lab-docs-props":i,"k-lab-docs-slots":d,"k-lab-docs-events":u,"k-lab-docs-methods":h,"k-lab-docs-docblock":k},mixins:[e,l,n,r,o,p,_,v],props:{component:String}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-lab-docs"},[e("k-lab-docs-deprecated",{attrs:{deprecated:t.deprecated}}),e("k-lab-docs-description",{attrs:{description:t.description,since:t.since}}),e("k-lab-docs-examples",{attrs:{examples:t.examples}}),e("k-lab-docs-props",{attrs:{props:t.props}}),e("k-lab-docs-slots",{attrs:{slots:t.slots}}),e("k-lab-docs-events",{attrs:{events:t.events}}),e("k-lab-docs-methods",{attrs:{methods:t.methods}}),e("k-lab-docs-docblock",{attrs:{"doc-block":t.docBlock}})],1)}),[],!1,null,null,null,null).exports;export{f as D}; diff --git a/panel/dist/js/DocsView.min.js b/panel/dist/js/DocsView.min.js new file mode 100644 index 0000000000..1ad9f61da1 --- /dev/null +++ b/panel/dist/js/DocsView.min.js @@ -0,0 +1 @@ +import{D as t}from"./Docs.min.js";import{n as s}from"./index.min.js";import"./vendor.min.js";const o=s({components:{"k-lab-docs":t},props:{component:String,docs:Object,lab:String},mounted(){},methods:{reloadDocs(){this.$panel.view.refresh()}}},(function(){var t=this,s=t._self._c;return s("k-panel-inside",{staticClass:"k-lab-docs-view"},[s("k-header",[t._v(" "+t._s(t.component)+" "),t.docs.github||t.lab?s("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[t.lab?s("k-button",{attrs:{icon:"lab",text:"Lab examples",size:"sm",variant:"filled",link:"/lab/"+t.lab}}):t._e(),t.docs.github?s("k-button",{attrs:{icon:"github",size:"sm",variant:"filled",link:t.docs.github,target:"_blank"}}):t._e()],1):t._e()],1),s("k-lab-docs",t._b({},"k-lab-docs",t.docs,!1))],1)}),[],!1,null,null,null,null).exports;export{o as default}; diff --git a/panel/dist/js/IndexView.min.js b/panel/dist/js/IndexView.min.js index ccb77911d9..4c2c2cd48c 100644 --- a/panel/dist/js/IndexView.min.js +++ b/panel/dist/js/IndexView.min.js @@ -1 +1 @@ -import{n as e}from"./index.min.js";import"./vendor.min.js";const t=e({props:{categories:Array}},(function(){var e=this,t=e._self._c;return t("k-panel-inside",{staticClass:"k-lab-index-view"},[t("k-header",[e._v("Lab")]),e._l(e.categories,(function(e){return t("k-section",{key:e.name,attrs:{headline:e.name}},[t("k-collection",{attrs:{items:e.examples,empty:{icon:e.icon,text:"Add examples to "+e.path}}})],1)}))],2)}),[],!1,null,null,null,null).exports;export{t as default}; +import{n as e}from"./index.min.js";import"./vendor.min.js";const a=e({props:{categories:Array,tab:String}},(function(){var e=this,a=e._self._c;return a("k-panel-inside",{staticClass:"k-lab-index-view"},[a("k-header",[e._v("Lab")]),a("k-tabs",{attrs:{tab:e.tab,tabs:[{name:"examples",label:"Examples",link:"/lab"},{name:"docs",label:"Docs",link:"/lab/docs"}]}}),e._l(e.categories,(function(e){return a("k-section",{key:e.name,attrs:{headline:e.name}},[a("k-collection",{attrs:{items:e.examples,empty:{icon:e.icon,text:"Add examples to "+e.path}}})],1)}))],2)}),[],!1,null,null,null,null).exports;export{a as default}; diff --git a/panel/dist/js/PlaygroundView.min.js b/panel/dist/js/PlaygroundView.min.js index d7611ed6e4..3e43a88285 100644 --- a/panel/dist/js/PlaygroundView.min.js +++ b/panel/dist/js/PlaygroundView.min.js @@ -1 +1 @@ -import{n as t,_ as e}from"./index.min.js";import"./vendor.min.js";const l=t({props:{component:String,description:String,examples:{default:()=>[],type:Array},slots:{default:()=>[],type:Array},props:{default:()=>[],type:Array}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-lab-docs"},[t.description.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Description")]),e("k-box",{attrs:{theme:"text"}},[e("k-text",{domProps:{innerHTML:t._s(t.description)}})],1)],1):t._e(),t.examples.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Examples")]),t._l(t.examples,(function(l,a){return e("k-code",{key:a,attrs:{language:"html"}},[t._v(t._s(l.content))])}))],2):t._e(),t.props.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Props")]),e("div",{staticClass:"k-table"},[e("table",[t._m(0),e("tbody",t._l(t.props,(function(l){var a;return e("tr",{key:l.name},[e("td",[e("k-text",[e("code",[t._v(t._s(l.name))])])],1),e("td",[e("k-text",{staticClass:"k-lab-docs-types"},t._l(l.type.name.split("|"),(function(l){return e("code",{key:l,attrs:{"data-type":l}},[t._v(" "+t._s(l)+" ")])})),0)],1),e("td",[l.defaultValue?e("code",[t._v(t._s(null==(a=l.defaultValue)?void 0:a.value))]):t._e()]),e("td",[e("k-text",{domProps:{innerHTML:t._s(l.description)}})],1)])})),0)])])],1):t._e(),t.slots.length?e("section",{staticClass:"k-lab-docs-section"},[e("k-headline",{staticClass:"h3"},[t._v("Slots")]),e("div",{staticClass:"k-table"},[e("table",[t._m(1),e("tbody",t._l(t.slots,(function(l){return e("tr",{key:l.name},[e("td",{staticStyle:{width:"12rem"}},[e("k-text",[e("code",[t._v(t._s(l.name))])])],1),e("td",[e("k-text",{domProps:{innerHTML:t._s(l.description)}})],1)])})),0)])])],1):t._e()])}),[function(){var t=this,e=t._self._c;return e("thead",[e("th",{staticStyle:{width:"8rem"}},[t._v("Name")]),e("th",{staticStyle:{width:"12rem"}},[t._v("Type")]),e("th",{staticStyle:{width:"10rem"}},[t._v("Default")]),e("th",[t._v("Description")])])},function(){var t=this,e=t._self._c;return e("thead",[e("th",{staticStyle:{width:"8rem"}},[t._v("Slot")]),e("th",[t._v("Description")])])}],!1,null,null,null,null).exports;const a=t({props:{docs:Object}},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-form-drawer",on:{submit:function(e){return t.$emit("cancel")}}},"k-drawer",t.$attrs,!1),[e("k-lab-docs",t._b({},"k-lab-docs",t.docs,!1))],1)}),[],!1,null,null,null,null).exports;const n=t({props:{code:{type:Boolean,default:!0},label:String,flex:Boolean},data:()=>({mode:"preview"}),computed:{component(){return window.UiExamples[this.label]}}},(function(){var t,e=this,l=e._self._c;return l("div",{staticClass:"k-lab-example",attrs:{"data-flex":e.flex,tabindex:"0"}},[l("header",{staticClass:"k-lab-example-header"},[l("h3",{staticClass:"k-lab-example-label"},[e._v(e._s(e.label))]),e.code?l("k-button-group",{staticClass:"k-lab-example-inspector",attrs:{layout:"collapsed"}},[l("k-button",{attrs:{theme:"preview"===e.mode?"info":null,icon:"preview",size:"xs",title:"Preview"},on:{click:function(t){e.mode="preview"}}}),l("k-button",{attrs:{theme:"inspect"===e.mode?"info":null,icon:"search",size:"xs",title:"Vue code"},on:{click:function(t){e.mode="inspect"}}}),l("k-button",{attrs:{theme:"raw"===e.mode?"info":null,icon:"code",size:"xs",title:"Rendered HTML"},on:{click:function(t){e.mode="raw"}}})],1):e._e()],1),l("div",{directives:[{name:"show",rawName:"v-show",value:"preview"===e.mode,expression:"mode === 'preview'"}],ref:"preview",staticClass:"k-lab-example-canvas"},[e._t("default")],2),l("div",{directives:[{name:"show",rawName:"v-show",value:"inspect"===e.mode,expression:"mode === 'inspect'"}],staticClass:"k-lab-example-code"},[l("k-code",{attrs:{language:"html"}},[e._v(e._s(e.component))])],1),l("div",{directives:[{name:"show",rawName:"v-show",value:"raw"===e.mode,expression:"mode === 'raw'"}],staticClass:"k-lab-example-code"},[l("k-code",{attrs:{language:"html"}},[e._v(e._s(null==(t=e.$refs.preview)?void 0:t.innerHTML))])],1)])}),[],!1,null,null,null,null).exports;const o=t({},(function(){return(0,this._self._c)("div",{staticClass:"k-lab-examples"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const i=t({props:{description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number,Array]}},data:()=>({input:null}),computed:{label(){return this.$helper.string.ucfirst(this.type)}},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{name:t.type,label:t.label,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{autofocus:!0,label:t.label,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Help"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,help:"This is some help text"},on:{input:t.emit}})],1),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{disabled:!0,label:t.label,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const s=t({props:{column:{default:()=>({}),type:Object},field:{default:()=>({}),type:Object},label:String,type:String,value:{}}},(function(){var t=this,e=t._self._c;return e("k-lab-example",{attrs:{label:t.label}},[e("div",{staticClass:"k-table"},[e("table",[e("thead",[e("tr",[e("th",{attrs:{"data-mobile":"true"}},[t._v(" "+t._s(t.$helper.string.ucfirst(t.type))+" Field Preview ")])])]),e("tbody",[e("tr",[e("td",{staticClass:"k-table-cell"},[e(`k-${t.type}-field-preview`,{tag:"component",attrs:{column:t.column,field:t.field,value:t.value},on:{input:function(e){return t.$emit("input",e)}}})],1)])])])])])}),[],!1,null,null,null,null).exports;const p=t({methods:{submit(t){const e=Object.fromEntries(new FormData(t));this.$panel.dialog.open({component:"k-lab-output-dialog",props:{code:JSON.stringify(e,null,2)}})}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-lab-form",on:{submit:function(e){return e.preventDefault(),t.submit(e.target)}}},[t._t("default"),e("footer",[e("k-button",{attrs:{type:"submit",icon:"check",theme:"positive",variant:"filled"}},[t._v(" Submit ")])],1)],2)}),[],!1,null,null,null,null).exports;const u=t({props:{placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number,Boolean,Object,Array]}},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",{staticClass:"k-lab-input-examples"},[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{name:t.type,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{autofocus:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Focus"}},[e(`k-${t.type}-input`,{ref:"input",tag:"component",staticStyle:{"margin-bottom":"1.5rem"},attrs:{value:t.input},on:{input:t.emit}}),e("k-button",{attrs:{variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.input.focus()}}},[t._v(" Focus ")])],1),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const r=t({props:{description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number]}},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{name:t.type,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{autofocus:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const c=t({props:{columns:{default:!0,type:Boolean},info:{default:!0,type:Boolean},type:String,value:{default:null,type:[Array,String]}},data:()=>({input:null}),computed:{label(){return this.$helper.string.ucfirst(this.type)},options:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],optionsWithInfo:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}]},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{name:t.type,label:t.label,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{autofocus:!0,label:t.label,options:t.options,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,required:!0,value:t.input},on:{input:t.emit}})],1),t.columns?e("k-lab-example",{attrs:{label:"Columns"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{columns:3,label:t.label,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const m=t({props:{info:{default:!0,type:Boolean},options:{default:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],type:Array},optionsWithInfo:{default:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}],type:Array},type:String,value:[Array,String,Number]},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",{staticClass:"k-lab-options-input-examples"},[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{name:t.type,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{autofocus:!0,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{options:t.options,required:!0,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Focus"}},[e("div",{staticStyle:{"margin-bottom":"1.5rem"}},[e(`k-${t.type}-input`,{ref:"input",tag:"component",staticStyle:{"margin-bottom":"1.5rem"},attrs:{options:t.info?t.optionsWithInfo:t.options,value:t.input},on:{input:t.emit}})],1),e("k-button",{attrs:{variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.input.focus()}}},[t._v(" Focus ")])],1),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{disabled:!0,options:t.info?t.optionsWithInfo:t.options,value:t.input},on:{input:t.emit}})],1),t._t("default",null,{options:t.options,optionsWithInfo:t.optionsWithInfo})],2)],1)}),[],!1,null,null,null,null).exports;const d=t({props:{columns:{default:!0,type:Boolean},description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},info:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[Array,String]}},data:()=>({input:null}),computed:{options:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],optionsWithInfo:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}]},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{name:t.type,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{autofocus:!0,options:t.options,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),t.columns?e("k-lab-example",{attrs:{label:"Columns"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{columns:3,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,disabled:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"No options"}},[e(`k-${t.type}-inputbox`,{tag:"component"})],1),t._t("default",null,{options:t.options,optionsWithInfo:t.optionsWithInfo})],2)],1)}),[],!1,null,null,null,null).exports;const b=t({props:{code:String,language:{default:"js",type:String}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({attrs:{size:"large","cancel-button":!1,"submit-button":!1},on:{cancel:function(e){return t.$emit("cancel")}}},"k-dialog",t.$attrs,!1),[e("k-code",{attrs:{language:t.language}},[t._v(t._s(t.code))])],1)}),[],!1,null,null,null,null).exports;Vue.component("k-lab-docs",l),Vue.component("k-lab-docs-drawer",a),Vue.component("k-lab-example",n),Vue.component("k-lab-examples",o),Vue.component("k-lab-field-examples",i),Vue.component("k-lab-field-preview-example",s),Vue.component("k-lab-form",p),Vue.component("k-lab-input-examples",u),Vue.component("k-lab-inputbox-examples",r),Vue.component("k-lab-options-field-examples",c),Vue.component("k-lab-options-input-examples",m),Vue.component("k-lab-options-inputbox-examples",d),Vue.component("k-lab-output-dialog",b);const f=t({props:{docs:String,examples:[Object,Array],file:String,github:String,props:[Object,Array],styles:String,tab:String,tabs:{type:Array,default:()=>[]},template:String,title:String},data:()=>({component:null}),watch:{tab:{handler(){this.createComponent()},immediate:!0}},methods:{async createComponent(){if(!this.file)return;const t=await e((()=>import(this.$panel.url(this.file))),[],import.meta.url);t.default.template=this.template,this.component=t.default,window.UiExamples=this.examples},openDocs(){this.$panel.drawer.open(`lab/docs/${this.docs}`)}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-lab-playground-view",attrs:{"data-has-tabs":t.tabs.length>1}},[e("k-header",[t._v(" "+t._s(t.title)+" "),t.docs||t.github?e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[t.docs?e("k-button",{attrs:{icon:"book",size:"sm",variant:"filled"},on:{click:t.openDocs}},[t._v(" Docs ")]):t._e(),t.github?e("k-button",{attrs:{icon:"github",size:"sm",variant:"filled",link:t.github,target:"_blank"}}):t._e()],1):t._e()],1),e("k-tabs",{attrs:{tab:t.tab,tabs:t.tabs}}),t.file?e(t.component,t._b({tag:"component"},"component",t.props,!1)):t._e(),t.styles?e("style",{tag:"component",domProps:{innerHTML:t._s(t.styles)}}):t._e()],1)}),[],!1,null,null,null,null).exports;export{f as default}; +import{n as t,_ as e}from"./index.min.js";import{D as n}from"./Docs.min.js";import"./vendor.min.js";const l=t({props:{docs:Object},computed:{options(){const t=[{icon:"expand",link:"lab/docs/"+this.docs.component}];return this.docs.github&&t.unshift({icon:"github",link:this.docs.github,target:"_blank"}),t}}},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-form-drawer",attrs:{options:t.options},on:{submit:function(e){return t.$emit("cancel")}}},"k-drawer",t.$attrs,!1),[e("k-lab-docs",t._b({},"k-lab-docs",t.docs,!1))],1)}),[],!1,null,null,null,null).exports;const a=t({props:{code:{type:Boolean,default:!0},label:String,flex:Boolean},data:()=>({mode:"preview"}),computed:{component(){return window.UiExamples[this.label]}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-lab-example",attrs:{"data-flex":t.flex,tabindex:"0"}},[e("header",{staticClass:"k-lab-example-header"},[e("h3",{staticClass:"k-lab-example-label"},[t._v(t._s(t.label))]),t.code?e("k-button-group",{staticClass:"k-lab-example-inspector",attrs:{layout:"collapsed"}},[e("k-button",{attrs:{theme:"preview"===t.mode?"info":null,icon:"preview",size:"xs",title:"Preview"},on:{click:function(e){t.mode="preview"}}}),e("k-button",{attrs:{theme:"inspect"===t.mode?"info":null,icon:"code",size:"xs",title:"Vue code"},on:{click:function(e){t.mode="inspect"}}})],1):t._e()],1),"preview"===t.mode?e("div",{staticClass:"k-lab-example-canvas"},[t._t("default")],2):t._e(),"inspect"===t.mode?e("div",{staticClass:"k-lab-example-code"},[e("k-code",{attrs:{language:"html"}},[t._v(t._s(t.component))])],1):t._e()])}),[],!1,null,null,null,null).exports;const o=t({},(function(){return(0,this._self._c)("div",{staticClass:"k-lab-examples"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const i=t({props:{description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number,Array]}},data:()=>({input:null}),computed:{label(){return this.$helper.string.ucfirst(this.type)}},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{name:t.type,label:t.label,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{autofocus:!0,label:t.label,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Help"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,help:"This is some help text"},on:{input:t.emit}})],1),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{disabled:!0,label:t.label,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const p=t({props:{column:{default:()=>({}),type:Object},field:{default:()=>({}),type:Object},label:String,type:String,value:{}}},(function(){var t=this,e=t._self._c;return e("k-lab-example",{attrs:{label:t.label}},[e("div",{staticClass:"k-table"},[e("table",[e("thead",[e("tr",[e("th",{attrs:{"data-mobile":"true"}},[t._v(" "+t._s(t.$helper.string.ucfirst(t.type))+" Field Preview ")])])]),e("tbody",[e("tr",[e("td",{staticClass:"k-table-cell"},[e(`k-${t.type}-field-preview`,{tag:"component",attrs:{column:t.column,field:t.field,value:t.value},on:{input:function(e){return t.$emit("input",e)}}})],1)])])])])])}),[],!1,null,null,null,null).exports;const s=t({methods:{submit(t){const e=Object.fromEntries(new FormData(t));this.$panel.dialog.open({component:"k-lab-output-dialog",props:{code:JSON.stringify(e,null,2)}})}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-lab-form",on:{submit:function(e){return e.preventDefault(),t.submit(e.target)}}},[t._t("default"),e("footer",[e("k-button",{attrs:{type:"submit",icon:"check",theme:"positive",variant:"filled"}},[t._v(" Submit ")])],1)],2)}),[],!1,null,null,null,null).exports;const u=t({props:{placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number,Boolean,Object,Array]}},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",{staticClass:"k-lab-input-examples"},[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{name:t.type,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{autofocus:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Focus"}},[e(`k-${t.type}-input`,{ref:"input",tag:"component",staticStyle:{"margin-bottom":"1.5rem"},attrs:{value:t.input},on:{input:t.emit}}),e("k-button",{attrs:{variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.input.focus()}}},[t._v(" Focus ")])],1),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const r=t({props:{description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[String,Number]}},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{name:t.type,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{autofocus:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const m=t({props:{columns:{default:!0,type:Boolean},info:{default:!0,type:Boolean},type:String,value:{default:null,type:[Array,String]}},data:()=>({input:null}),computed:{label(){return this.$helper.string.ucfirst(this.type)},options:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],optionsWithInfo:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}]},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{name:t.type,label:t.label,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{autofocus:!0,label:t.label,options:t.options,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,required:!0,value:t.input},on:{input:t.emit}})],1),t.columns?e("k-lab-example",{attrs:{label:"Columns"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{columns:3,label:t.label,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-field`,{tag:"component",attrs:{label:t.label,options:t.optionsWithInfo,disabled:!0,value:t.input},on:{input:t.emit}})],1),t._t("default")],2)],1)}),[],!1,null,null,null,null).exports;const c=t({props:{info:{default:!0,type:Boolean},options:{default:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],type:Array},optionsWithInfo:{default:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}],type:Array},type:String,value:[Array,String,Number]},data:()=>({input:null}),watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",{staticClass:"k-lab-options-input-examples"},[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{name:t.type,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{autofocus:!0,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{options:t.options,required:!0,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Focus"}},[e("div",{staticStyle:{"margin-bottom":"1.5rem"}},[e(`k-${t.type}-input`,{ref:"input",tag:"component",staticStyle:{"margin-bottom":"1.5rem"},attrs:{options:t.info?t.optionsWithInfo:t.options,value:t.input},on:{input:t.emit}})],1),e("k-button",{attrs:{variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.input.focus()}}},[t._v(" Focus ")])],1),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-input`,{tag:"component",attrs:{disabled:!0,options:t.info?t.optionsWithInfo:t.options,value:t.input},on:{input:t.emit}})],1),t._t("default",null,{options:t.options,optionsWithInfo:t.optionsWithInfo})],2)],1)}),[],!1,null,null,null,null).exports;const b=t({props:{columns:{default:!0,type:Boolean},description:{default:!0,type:Boolean},icon:{default:!0,type:Boolean},info:{default:!0,type:Boolean},placeholder:{default:!0,type:Boolean},type:String,value:{default:null,type:[Array,String]}},data:()=>({input:null}),computed:{options:()=>[{text:"Option A",value:"a"},{text:"Option B",value:"b"},{text:"Option C",value:"c"}],optionsWithInfo:()=>[{text:"Option A",value:"a",info:"This is some info text"},{text:"Option B",value:"b",info:"This is some info text"},{text:"Option C",value:"c",info:"This is some info text"}]},watch:{value:{handler(t){this.input=t},immediate:!0}},methods:{emit(t){this.input=t,this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-lab-form",[e("k-lab-examples",[e("k-lab-example",{attrs:{label:"Default"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{name:t.type,options:t.options,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"Autofocus"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{autofocus:!0,options:t.options,value:t.input},on:{input:t.emit}})],1),t.info?e("k-lab-example",{attrs:{label:"Options with info"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Required"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,required:!0,value:t.input},on:{input:t.emit}})],1),t.placeholder?e("k-lab-example",{attrs:{label:"Placeholder"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,placeholder:"Placeholder text …"},on:{input:t.emit}})],1):t._e(),t.description?e("k-lab-example",{attrs:{label:"Before & After"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,after:"After",before:"Before"},on:{input:t.emit}})],1):t._e(),t.icon?e("k-lab-example",{attrs:{label:"Icon"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.options,value:t.input,icon:"edit"},on:{input:t.emit}})],1):t._e(),t.columns?e("k-lab-example",{attrs:{label:"Columns"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{columns:3,options:t.optionsWithInfo,value:t.input},on:{input:t.emit}})],1):t._e(),e("k-lab-example",{attrs:{label:"Disabled"}},[e(`k-${t.type}-inputbox`,{tag:"component",attrs:{options:t.optionsWithInfo,disabled:!0,value:t.input},on:{input:t.emit}})],1),e("k-lab-example",{attrs:{label:"No options"}},[e(`k-${t.type}-inputbox`,{tag:"component"})],1),t._t("default",null,{options:t.options,optionsWithInfo:t.optionsWithInfo})],2)],1)}),[],!1,null,null,null,null).exports;const d=t({props:{code:String,language:{default:"js",type:String}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({attrs:{size:"large","cancel-button":!1,"submit-button":!1},on:{cancel:function(e){return t.$emit("cancel")}}},"k-dialog",t.$attrs,!1),[e("k-code",{attrs:{language:t.language}},[t._v(t._s(t.code))])],1)}),[],!1,null,null,null,null).exports;Vue.component("k-lab-docs",n),Vue.component("k-lab-docs-drawer",l),Vue.component("k-lab-example",a),Vue.component("k-lab-examples",o),Vue.component("k-lab-field-examples",i),Vue.component("k-lab-field-preview-example",p),Vue.component("k-lab-form",s),Vue.component("k-lab-input-examples",u),Vue.component("k-lab-inputbox-examples",r),Vue.component("k-lab-options-field-examples",m),Vue.component("k-lab-options-input-examples",c),Vue.component("k-lab-options-inputbox-examples",b),Vue.component("k-lab-output-dialog",d);const f=t({props:{docs:String,examples:[Object,Array],file:String,github:String,props:[Object,Array],styles:String,tab:String,tabs:{type:Array,default:()=>[]},template:String,title:String},data:()=>({component:null}),watch:{tab:{handler(){this.createComponent()},immediate:!0}},mounted(){this.$panel.view.path.replace(/lab\//,"")},methods:{async createComponent(){if(!this.file)return;const{default:t}=await e((()=>import(this.$panel.url(this.file)+"?cache="+Date.now())),[],import.meta.url);t.template=this.template,this.component={...t},window.UiExamples=this.examples},openDocs(){this.$panel.drawer.open(`lab/docs/${this.docs}`)},async reloadComponent(){await this.$panel.view.refresh(),this.createComponent()},reloadDocs(){this.$panel.drawer.isOpen&&this.$panel.drawer.refresh()}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-lab-playground-view",attrs:{"data-has-tabs":t.tabs.length>1}},[e("k-header",[t._v(" "+t._s(t.title)+" "),t.docs||t.github?e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[t.docs?e("k-button",{attrs:{text:t.docs,icon:"book",size:"sm",variant:"filled"},on:{click:t.openDocs}}):t._e(),t.github?e("k-button",{attrs:{icon:"github",size:"sm",variant:"filled",link:t.github,target:"_blank"}}):t._e()],1):t._e()],1),e("k-tabs",{attrs:{tab:t.tab,tabs:t.tabs}}),t.component?e(t.component,t._b({tag:"component"},"component",t.props,!1)):t._e(),t.styles?e("style",{tag:"component",domProps:{innerHTML:t._s(t.styles)}}):t._e()],1)}),[],!1,null,null,null,null).exports;export{f as default}; diff --git a/panel/dist/js/index.min.js b/panel/dist/js/index.min.js index e9d8676e4b..ad0614642c 100644 --- a/panel/dist/js/index.min.js +++ b/panel/dist/js/index.min.js @@ -1 +1 @@ -import{v as t,I as e,P as n,S as i,F as s,N as o,s as l,l as r,w as a,a as u,b as c,c as d,e as p,t as h,d as m,f,g,h as k,i as b,k as v,D as y,j as $,E as w,m as x,n as _,o as C,T as S,u as O,p as A,q as M,r as j,x as I,y as T,z as E,A as D,B as L,C as B,G as q,V as P,H as N}from"./vendor.min.js";const z={},F=function(t,e,n){if(!e||0===e.length)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map((t=>{if(t=function(t,e){return new URL(t,e).href}(t,n),t in z)return;z[t]=!0;const e=t.endsWith(".css"),s=e?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.href===t&&(!e||"stylesheet"===s.rel))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":"modulepreload",e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((e,n)=>{o.addEventListener("load",e),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0}))).then((()=>t())).catch((t=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=t,window.dispatchEvent(e),!e.defaultPrevented)throw t}))},R={created(){this.$panel.events.subscribe();for(const t of this.$panel.plugins.created)t(this);this.$panel.events.on("popstate",(()=>{this.$panel.open(window.location.href)})),this.$panel.events.on("drop",(()=>{this.$panel.drag.stop()})),this.$store.dispatch("content/init")},destroyed(){this.$panel.events.unsubscribe()},render(t){if(this.$panel.view.component)return t(this.$panel.view.component,{key:this.$panel.view.component,props:this.$panel.view.props})}};function Y(t,e,n,i,s,o,l,r){var a,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),l?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},u._ssrRegister=a):s&&(a=r?function(){s.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(t,e){return a.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:u}}const U=Y({props:{columns:{type:[Object,Array],default:()=>({})},empty:Object,help:String,items:{type:[Array,Object],default:()=>[]},layout:{type:String,default:"list"},link:{type:Boolean,default:!0},size:String,sortable:Boolean,pagination:{type:[Boolean,Object],default:!1}},computed:{hasPagination(){return!1!==this.pagination&&(!0!==this.paginationOptions.hide&&!(this.pagination.total<=this.pagination.limit))},paginationOptions(){return{limit:10,details:!0,keys:!1,total:0,hide:!1,..."object"!=typeof this.pagination?{}:this.pagination}}},watch:{$props(){this.$forceUpdate()}},methods:{onEmpty(t){t.stopPropagation(),this.$emit("empty")},onOption(...t){this.$emit("action",...t),this.$emit("option",...t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-collection"},[0===t.items.length?e("k-empty",t._g(t._b({attrs:{layout:t.layout}},"k-empty",t.empty,!1),t.$listeners.empty?{click:t.onEmpty}:{})):e("k-items",{attrs:{columns:t.columns,items:t.items,layout:t.layout,link:t.link,size:t.size,sortable:t.sortable},on:{change:function(e){return t.$emit("change",e)},item:function(e){return t.$emit("item",e)},option:t.onOption,sort:function(e){return t.$emit("sort",e)}},scopedSlots:t._u([{key:"options",fn:function({item:e,index:n}){return[t._t("options",null,null,{item:e,index:n})]}}],null,!0)}),t.help||t.hasPagination?e("footer",{staticClass:"k-bar k-collection-footer"},[e("k-text",{staticClass:"k-help k-collection-help",attrs:{html:t.help}}),t.hasPagination?e("k-pagination",t._b({on:{paginate:function(e){return t.$emit("paginate",e)}}},"k-pagination",t.paginationOptions,!1)):t._e()],1):t._e()],1)}),[],!1,null,null,null,null).exports;const H=Y({props:{text:String,icon:String,layout:{type:String,default:"list"}},computed:{attrs(){const t={button:void 0!==this.$listeners.click,icon:this.icon,theme:"empty"};return"cardlets"!==this.layout&&"cards"!==this.layout||(t.align="center",t.height="var(--item-height-cardlet)"),t}}},(function(){var t=this;return(0,t._self._c)("k-box",t._b({staticClass:"k-empty",nativeOn:{click:function(e){return t.$emit("click",e)}}},"k-box",t.attrs,!1),[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2)}),[],!1,null,null,null,null).exports;const V=Y({inheritAttrs:!1,props:{buttons:Array,data:Object,image:[Object,Boolean],info:String,layout:{type:String,default:"list"},link:{type:[Boolean,String,Function]},options:{type:[Array,Function,String]},sortable:Boolean,target:String,text:String,width:String},computed:{hasFigure(){return!1!==this.image&&this.$helper.object.length(this.image)>0},sizes(){switch(this.width){case"1/2":case"2/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 44em, 27em";case"1/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 29.333em, 27em";case"1/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 22em, 27em";case"2/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 27em, 27em";case"3/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 66em, 27em";default:return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 88em, 27em"}}},methods:{onOption(t){this.$emit("action",t),this.$emit("option",t)}}},(function(){var t,e=this,n=e._self._c;return n("div",e._b({staticClass:"k-item",class:!!e.layout&&"k-"+e.layout+"-item",attrs:{"data-has-image":e.hasFigure,"data-layout":e.layout},on:{click:function(t){return e.$emit("click",t)},dragstart:function(t){return e.$emit("drag",t)}}},"div",e.data,!1),[e._t("image",(function(){return[e.hasFigure?n("k-item-image",{attrs:{image:e.image,layout:e.layout,width:e.width}}):e._e()]})),e.sortable?n("k-sort-handle",{staticClass:"k-item-sort-handle",attrs:{tabindex:"-1"}}):e._e(),n("div",{staticClass:"k-item-content"},[n("h3",{staticClass:"k-item-title",attrs:{title:e.$helper.string.unescapeHTML(e.text)}},[!1!==e.link?n("k-link",{attrs:{target:e.target,to:e.link}},[n("span",{domProps:{innerHTML:e._s(e.text??"–")}})]):n("span",{domProps:{innerHTML:e._s(e.text??"–")}})],1),e.info?n("p",{staticClass:"k-item-info",domProps:{innerHTML:e._s(e.info)}}):e._e()]),n("div",{staticClass:"k-item-options",attrs:{"data-only-option":!(null==(t=e.buttons)?void 0:t.length)||!e.options&&!e.$slots.options}},[e._l(e.buttons,(function(t,i){return n("k-button",e._b({key:"button-"+i},"k-button",t,!1))})),e._t("options",(function(){return[e.options?n("k-options-dropdown",{staticClass:"k-item-options-dropdown",attrs:{options:e.options},on:{option:e.onOption}}):e._e()]}))],2)],2)}),[],!1,null,null,null,null).exports;const K=Y({inheritAttrs:!1,props:{image:[Object,Boolean],layout:{type:String,default:"list"},width:String},computed:{attrs(){return{back:this.image.back??"gray-500",cover:!0,...this.image,ratio:"list"===this.layout?"1/1":this.image.ratio,size:this.sizes}},sizes(){switch(this.width){case"1/2":case"2/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 44em, 27em";case"1/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 29.333em, 27em";case"1/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 22em, 27em";case"2/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 27em, 27em";case"3/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 66em, 27em";default:return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 88em, 27em"}}}},(function(){var t=this,e=t._self._c;return t.image.src?e("k-image-frame",t._b({staticClass:"k-item-image"},"k-image-frame",t.attrs,!1)):e("k-icon-frame",t._b({staticClass:"k-item-image"},"k-icon-frame",t.attrs,!1))}),[],!1,null,null,null,null).exports;const W=Y({inheritAttrs:!1,props:{columns:{type:[Object,Array],default:()=>[]},items:{type:Array,default:()=>[]},layout:{type:String,default:"list"},link:{type:Boolean,default:!0},image:{type:[Object,Boolean],default:()=>({})},sortable:Boolean,empty:{type:[String,Object]},size:{type:String,default:"medium"}},computed:{dragOptions(){return{sort:this.sortable,disabled:!1===this.sortable,draggable:".k-draggable-item"}},table(){return{columns:this.columns,rows:this.items,sortable:this.sortable}}},methods:{onDragStart(t,e){this.$panel.drag.start("text",e)},onOption(t,e,n){this.$emit("option",t,e,n)},imageOptions(t){let e=this.image,n=t.image;return!1!==e&&!1!==n&&("object"!=typeof e&&(e={}),"object"!=typeof n&&(n={}),{...n,...e})}}},(function(){var t=this,e=t._self._c;return"table"===t.layout?e("k-table",t._b({on:{change:function(e){return t.$emit("change",e)},sort:function(e){return t.$emit("sort",e)},option:t.onOption},scopedSlots:t._u([{key:"options",fn:function({row:e,rowIndex:n}){return[t._t("options",null,null,{item:e,index:n})]}}],null,!0)},"k-table",t.table,!1)):e("k-draggable",{staticClass:"k-items",class:"k-"+t.layout+"-items",attrs:{"data-layout":t.layout,"data-size":t.size,handle:!0,list:t.items,options:t.dragOptions},on:{change:function(e){return t.$emit("change",e)},end:function(e){return t.$emit("sort",t.items,e)}}},[t._l(t.items,(function(n,i){return[t._t("default",(function(){return[e("k-item",t._b({key:n.id??i,class:{"k-draggable-item":t.sortable&&n.sortable},attrs:{image:t.imageOptions(n),layout:t.layout,link:!!t.link&&n.link,sortable:t.sortable&&n.sortable,width:n.column},on:{click:function(e){return t.$emit("item",n,i)},drag:function(e){return t.onDragStart(e,n.dragText)},option:function(e){return t.onOption(e,n,i)}},nativeOn:{mouseover:function(e){return t.$emit("hover",e,n,i)}},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options",null,null,{item:n,index:i})]},proxy:!0}],null,!0)},"k-item",n,!1))]}),null,{item:n,itemIndex:i})]}))],2)}),[],!1,null,null,null,null).exports,J={install(t){t.component("k-collection",U),t.component("k-empty",H),t.component("k-item",V),t.component("k-item-image",K),t.component("k-items",W)}};const G=Y({},(function(){return(0,this._self._c)("div",{staticClass:"k-dialog-body"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;function X(t){if(void 0!==t)return JSON.parse(JSON.stringify(t))}function Q(t){return"object"==typeof t&&(null==t?void 0:t.constructor)===Object}function Z(t){return Object.keys(t??{}).length}function tt(t){return Object.keys(t).reduce(((e,n)=>(e[n.toLowerCase()]=t[n],e)),{})}const et={clone:X,isEmpty:function(t){return null==t||""===t||(!(!Q(t)||0!==Z(t))||0===t.length)},isObject:Q,length:Z,merge:function t(e,n={}){for(const i in n)n[i]instanceof Object&&Object.assign(n[i],t(e[i]??{},n[i]));return Object.assign(e??{},n),e},same:function(t,e){return JSON.stringify(t)===JSON.stringify(e)},toLowerKeys:tt},nt={props:{cancelButton:{default:!0,type:[Boolean,String,Object]},disabled:{default:!1,type:Boolean},icon:{default:"check",type:String},submitButton:{type:[Boolean,String,Object],default:!0},theme:{default:"positive",type:String}}};const it=Y({mixins:[nt],emits:["cancel"],computed:{cancel(){return this.button(this.cancelButton,{click:()=>this.$emit("cancel"),class:"k-dialog-button-cancel",icon:"cancel",text:this.$t("cancel"),variant:"filled"})},submit(){return this.button(this.submitButton,{class:"k-dialog-button-submit",disabled:this.disabled||this.$panel.dialog.isLoading,icon:this.icon,text:this.$t("confirm"),theme:this.theme,type:"submit",variant:"filled"})}},methods:{button:(t,e)=>"string"==typeof t?{...e,text:t}:!1!==t&&(!1===Q(t)?e:{...e,...t})}},(function(){var t=this,e=t._self._c;return e("k-button-group",{staticClass:"k-dialog-buttons"},[t.cancel?e("k-button",t._b({},"k-button",t.cancel,!1)):t._e(),t.submit?e("k-button",t._b({attrs:{icon:t.$panel.dialog.isLoading?"loader":t.submit.icon}},"k-button",t.submit,!1)):t._e()],1)}),[],!1,null,null,null,null).exports,st={props:{empty:{default:()=>window.panel.$t("dialog.fields.empty"),type:String},fields:{default:()=>[],type:[Array,Object]},novalidate:{default:!0,type:Boolean},value:{default:()=>({}),type:Object}}};const ot=Y({mixins:[st],emits:["input","submit"],computed:{hasFields(){return this.$helper.object.length(this.fields)>0}}},(function(){var t=this,e=t._self._c;return t.hasFields?e("k-fieldset",{staticClass:"k-dialog-fields",attrs:{novalidate:t.novalidate,fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports;const lt=Y({},(function(){return(0,this._self._c)("footer",{staticClass:"k-dialog-footer"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const rt=Y({},(function(){var t=this,e=t._self._c;return"dialog"===t.$panel.notification.context?e("k-notification",{staticClass:"k-dialog-notification"}):t._e()}),[],!1,null,null,null,null).exports;const at=Y({props:{autofocus:{default:!0,type:Boolean},placeholder:{default:()=>window.panel.$t("search")+" …",type:String},value:{type:String}},emits:["search"]},(function(){var t=this;return(0,t._self._c)("k-input",{staticClass:"k-dialog-search",attrs:{autofocus:t.autofocus,placeholder:t.placeholder,value:t.value,icon:"search",type:"text"},on:{input:function(e){return t.$emit("search",e)}}})}),[],!1,null,null,null,null).exports,ut={props:{empty:{type:String,default:()=>window.panel.$t("dialog.text.empty")},text:{type:String}}};const ct=Y({mixins:[ut]},(function(){var t=this,e=t._self._c;return t.text?e("k-text",{attrs:{html:t.text}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,dt={install(t){t.component("k-dialog-body",G),t.component("k-dialog-buttons",it),t.component("k-dialog-fields",ot),t.component("k-dialog-footer",lt),t.component("k-dialog-notification",rt),t.component("k-dialog-search",at),t.component("k-dialog-text",ct)}},pt={mixins:[nt],props:{size:{default:"default",type:String},visible:{default:!1,type:Boolean}},emits:["cancel","submit"],methods:{cancel(){this.$emit("cancel")},close(){this.$emit("close")},error(t){this.$panel.notification.error(t)},focus(t){this.$panel.dialog.focus(t)},input(t){this.$emit("input",t)},open(){this.$panel.dialog.open(this)},submit(){this.$emit("submit",this.value)},success(t){this.$emit("success",t)}}};const ht=Y({mixins:[pt],emits:["cancel","submit"]},(function(){var t=this,e=t._self._c;return t.visible?e("portal",{attrs:{to:"dialog"}},[e("form",{staticClass:"k-dialog",class:t.$vnode.data.staticClass,attrs:{"data-has-footer":t.cancelButton||t.submitButton,"data-size":t.size,method:"dialog"},on:{click:function(t){t.stopPropagation()},submit:function(e){return e.preventDefault(),t.$emit("submit")}}},[t._t("header",(function(){return[e("k-dialog-notification")]})),t.$slots.default?e("k-dialog-body",[t._t("default")],2):t._e(),t._t("footer",(function(){return[t.cancelButton||t.submitButton?e("k-dialog-footer",[e("k-dialog-buttons",{attrs:{"cancel-button":t.cancelButton,disabled:t.disabled,icon:t.icon,"submit-button":t.submitButton,theme:t.theme},on:{cancel:function(e){return t.$emit("cancel")}}})],1):t._e()]}))],2)]):t._e()}),[],!1,null,null,null,null).exports;const mt=Y({mixins:[pt],props:{cancelButton:{default:!1},changes:{type:Array},loading:{type:Boolean},size:{default:"medium"},submitButton:{default:!1}},computed:{ids(){return Object.keys(this.store).filter((t=>{var e;return this.$helper.object.length(null==(e=this.store[t])?void 0:e.changes)>0}))},store(){return this.$store.state.content.models}},watch:{ids:{handler(t){this.$panel.dialog.refresh({method:"POST",body:{ids:t}})},immediate:!0}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-changes-dialog"},"k-dialog",t.$props,!1),[!1===t.loading?[e("k-headline",[t._v(t._s(t.$t("lock.unsaved")))]),t.changes.length?e("k-items",{attrs:{items:t.changes,layout:"list"}}):e("k-empty",{attrs:{icon:"edit-line"}},[t._v(t._s(t.$t("lock.unsaved.empty")))])]:[e("k-icon",{attrs:{type:"loader"}})]],2)}),[],!1,null,null,null,null).exports;const ft=Y({mixins:[pt,st],props:{fields:{default:()=>({href:{label:window.panel.$t("email"),type:"email",icon:"email"},title:{label:window.panel.$t("link.text"),type:"text",icon:"title"}})},size:{default:"medium"},submitButton:{default:()=>window.panel.$t("insert")}},data(){return{values:{href:"",title:null,...this.value}}},methods:{submit(){this.$emit("submit",this.values)}}},(function(){var t=this;return(0,t._self._c)("k-form-dialog",t._b({attrs:{value:t.values},on:{cancel:function(e){return t.$emit("cancel")},input:function(e){t.values=e},submit:t.submit}},"k-form-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const gt=Y({mixins:[pt],props:{details:[Object,Array],message:String,size:{default:"medium",type:String}},emits:["cancel"],computed:{detailsList(){return Array.fromObject(this.details)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",{ref:"dialog",staticClass:"k-error-dialog",attrs:{"cancel-button":!1,"submit-button":!1,size:t.size,visible:t.visible},on:{cancel:function(e){return t.$emit("cancel")}}},[e("k-text",[t._v(t._s(t.message))]),t.detailsList.length?e("dl",{staticClass:"k-error-details"},[t._l(t.detailsList,(function(n,i){return[e("dt",{key:"detail-label-"+i},[t._v(" "+t._s(n.label)+" ")]),e("dd",{key:"detail-message-"+i},["object"==typeof n.message?[e("ul",t._l(n.message,(function(n,i){return e("li",{key:i},[t._v(" "+t._s(n)+" ")])})),0)]:[t._v(" "+t._s(n.message)+" ")]],2)]}))],2):t._e()],1)}),[],!1,null,null,null,null).exports;const kt=Y({},(function(){var t=this;return(0,t._self._c)(t.$panel.dialog.component,t._g(t._b({key:t.$panel.dialog.timestamp,tag:"component",attrs:{visible:!0}},"component",t.$panel.dialog.props,!1),t.$panel.dialog.listeners()))}),[],!1,null,null,null,null).exports,bt=(t,e)=>{let n=null;return(...i)=>{clearTimeout(n),n=setTimeout((()=>t.apply(globalThis,i)),e)}},vt={props:{delay:{default:200,type:Number},hasSearch:{default:!0,type:Boolean}},data:()=>({query:null}),watch:{query(){!1!==this.hasSearch&&this.search()}},created(){this.search=bt(this.search,this.delay)},methods:{async search(){console.warn("Search mixin: Please implement a `search` method.")}}},yt={props:{endpoint:String,empty:Object,fetchParams:Object,item:{type:Function,default:t=>t},max:Number,multiple:{type:Boolean,default:!0},size:{type:String,default:"medium"},value:{type:Array,default:()=>[]}}};const $t=Y({mixins:[pt,vt,yt],data(){return{models:[],selected:this.value.reduce(((t,e)=>({...t,[e]:{id:e}})),{}),pagination:{limit:20,page:1,total:0}}},computed:{items(){return this.models.map(this.item)}},watch:{fetchParams(t,e){!1===this.$helper.object.same(t,e)&&(this.pagination.page=1,this.fetch())}},created(){this.fetch()},methods:{async fetch(){const t={page:this.pagination.page,search:this.query,...this.fetchParams};try{this.$panel.dialog.isLoading=!0;const e=await this.$api.get(this.endpoint,t);this.models=e.data,this.pagination=e.pagination,this.$emit("fetched",e)}catch(e){this.$panel.error(e),this.models=[]}finally{this.$panel.dialog.isLoading=!1}},isSelected(t){return void 0!==this.selected[t.id]},paginate(t){this.pagination.page=t.page,this.pagination.limit=t.limit,this.fetch()},submit(){this.$emit("submit",Object.values(this.selected))},async search(){this.pagination.page=0,await this.fetch()},toggle(t){if(!1!==this.multiple&&1!==this.max||(this.selected={}),this.isSelected(t))return Vue.del(this.selected,t.id);this.max&&this.max<=this.$helper.object.length(this.selected)||Vue.set(this.selected,t.id,t)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-models-dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:t.submit}},"k-dialog",t.$props,!1),[t._t("header"),t.hasSearch?e("k-dialog-search",{attrs:{value:t.query},on:{search:function(e){t.query=e}}}):t._e(),e("k-collection",{attrs:{empty:{...t.empty,text:t.$panel.dialog.isLoading?t.$t("loading"):t.empty.text},items:t.items,link:!1,pagination:{details:!0,dropdown:!1,align:"center",...t.pagination},sortable:!1,layout:"list"},on:{item:t.toggle,paginate:t.paginate},scopedSlots:t._u([{key:"options",fn:function({item:n}){return[t.isSelected(n)?e("k-button",{attrs:{icon:t.multiple&&1!==t.max?"check":"circle-nested",title:t.$t("remove"),theme:"info"},on:{click:function(e){return e.stopPropagation(),t.toggle(n)}}}):e("k-button",{attrs:{title:t.$t("select"),icon:"circle-outline"},on:{click:function(e){return e.stopPropagation(),t.toggle(n)}}}),t._t("options",null,null,{item:n})]}}],null,!0)})],2)}),[],!1,null,null,null,null).exports;const wt=Y({mixins:[pt,yt],props:{empty:{type:Object,default:()=>({icon:"image",text:window.panel.$t("dialog.files.empty")})}}},(function(){var t=this;return(0,t._self._c)("k-models-dialog",t._b({on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",e)}}},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const xt=Y({mixins:[pt,st],props:{size:{default:"medium"},submitButton:{default:()=>window.panel.$t("save")},text:{type:String}},emits:["cancel","input","submit"]},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[t._t("default",(function(){return[t.text?e("k-dialog-text",{attrs:{text:t.text}}):t._e(),e("k-dialog-fields",{attrs:{fields:t.fields,novalidate:t.novalidate,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})]}))],2)}),[],!1,null,null,null,null).exports;const _t=Y({extends:xt,watch:{"value.name"(t){this.fields.code.disabled||this.onNameChanges(t)},"value.code"(t){this.fields.code.disabled||(this.value.code=this.$helper.slug(t,[this.$panel.system.ascii]),this.onCodeChanges(this.value.code))}},methods:{onCodeChanges(t){if(!t)return this.value.locale=null;if(t.length>=2)if(-1!==t.indexOf("-")){let e=t.split("-"),n=[e[0],e[1].toUpperCase()];this.value.locale=n.join("_")}else{let e=this.$panel.system.locales??[];this.value.locale=null==e?void 0:e[t]}},onNameChanges(t){this.value.code=this.$helper.slug(t,[this.value.rules,this.$panel.system.ascii]).substr(0,2)}}},null,null,!1,null,null,null,null).exports;const Ct=Y({mixins:[pt,st],props:{fields:{default:()=>({href:{label:window.panel.$t("link"),type:"link",placeholder:window.panel.$t("url.placeholder"),icon:"url"},title:{label:window.panel.$t("title"),type:"text",icon:"title"},target:{label:window.panel.$t("open.newWindow"),type:"toggle",text:[window.panel.$t("no"),window.panel.$t("yes")]}})},size:{default:"medium"},submitButton:{default:()=>window.panel.$t("insert")}},data(){return{values:{href:"",title:null,...this.value,target:Boolean(this.value.target??!1)}}},methods:{submit(){const t=this.values.href.replace("file://","/@/file/").replace("page://","/@/page/");this.$emit("submit",{...this.values,href:t,target:this.values.target?"_blank":null})}}},(function(){var t=this;return(0,t._self._c)("k-form-dialog",t._b({attrs:{value:t.values},on:{cancel:function(e){return t.$emit("cancel")},input:function(e){t.values=e},submit:t.submit}},"k-form-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const St=Y({mixins:[xt],props:{blueprints:{type:Array},size:{default:"medium",type:String},submitButton:{type:[String,Boolean],default:()=>window.panel.$t("save")},template:{type:String}},computed:{templates(){return this.blueprints.map((t=>({text:t.title,value:t.name})))}},methods:{pick(t){this.$panel.dialog.reload({query:{...this.$panel.dialog.query,slug:this.value.slug,template:t,title:this.value.title}})}}},(function(){var t=this,e=t._self._c;return e("k-form-dialog",t._b({ref:"dialog",staticClass:"k-page-create-dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-form-dialog",t.$props,!1),[t.templates.length>1?e("k-select-field",{staticClass:"k-page-template-switch",attrs:{empty:!1,label:t.$t("template"),options:t.templates,required:!0,value:t.template},on:{input:function(e){return t.pick(e)}}}):t._e(),e("k-dialog-fields",{attrs:{fields:t.fields,novalidate:t.novalidate,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],1)}),[],!1,null,null,null,null).exports;const Ot=Y({mixins:[pt],props:{value:{default:()=>({}),type:Object}},emits:["cancel","input","submit"],methods:{select(t){this.$emit("input",{...this.value,parent:t.id})}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",staticClass:"k-page-move-dialog",attrs:{"submit-button":{icon:"parent",text:t.$t("move")},size:"medium"},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[e("k-headline",[t._v(t._s(t.$t("page.move")))]),e("div",{staticClass:"k-page-move-parent",attrs:{tabindex:"0","data-autofocus":""}},[e("k-page-tree",{attrs:{current:t.value.parent,move:t.value.move,identifier:"id"},on:{select:t.select}})],1)],1)}),[],!1,null,null,null,null).exports;const At=Y({mixins:[pt,yt],props:{empty:{type:Object,default:()=>({icon:"page",text:window.panel.$t("dialog.pages.empty")})}},data:()=>({model:null,parent:null})},(function(){var t=this,e=t._self._c;return e("k-models-dialog",t._b({attrs:{"fetch-params":{parent:t.parent}},on:{cancel:function(e){return t.$emit("cancel")},fetched:function(e){t.model=e.model},submit:function(e){return t.$emit("submit",e)}},scopedSlots:t._u([t.model?{key:"header",fn:function(){return[e("header",{staticClass:"k-pages-dialog-navbar"},[e("k-button",{attrs:{disabled:!t.model.id,title:t.$t("back"),icon:"angle-left"},on:{click:function(e){t.parent=t.model.parent}}}),e("k-headline",[t._v(t._s(t.model.title))])],1)]},proxy:!0}:null,t.model?{key:"options",fn:function({item:n}){return[e("k-button",{staticClass:"k-pages-dialog-option",attrs:{disabled:!n.hasChildren,title:t.$t("open"),icon:"angle-right"},on:{click:function(e){e.stopPropagation(),t.parent=n.id}}})]}}:null],null,!0)},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const Mt=Y({mixins:[{mixins:[pt,ut]}]},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[t._t("default",(function(){return[e("k-dialog-text",{attrs:{text:t.text}})]}))],2)}),[],!1,null,null,null,null).exports;const jt=Y({mixins:[Mt],props:{icon:{default:"trash"},submitButton:{default:()=>window.panel.$t("delete")},theme:{default:"negative"}}},(function(){var t=this;return(0,t._self._c)("k-text-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-text-dialog",t.$props,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const It=Y({mixins:[pt,vt],emits:["cancel"],data(){return{isLoading:!1,items:[],pagination:{},selected:-1,type:this.$panel.view.search}},computed:{currentType(){return this.$panel.searches[this.type]??Object.values(this.$panel.searches)[0]}},watch:{type(){this.search()}},methods:{clear(){this.items=[],this.query=null},focus(){var t;null==(t=this.$refs.input)||t.focus()},navigate(t){t&&(this.$go(t.link),this.close())},onDown(){this.selected=0&&this.select(this.selected-1)},async search(){var t,e;this.isLoading=!0,null==(t=this.$refs.types)||t.close(),null==(e=this.select)||e.call(this,-1);try{if(null===this.query||this.query.length<2)throw Error("Empty query");const t=await this.$search(this.type,this.query);this.items=t.results,this.pagination=t.pagination}catch(n){this.items=[],this.pagination={}}finally{this.isLoading=!1}},select(t){var e;this.selected=t;const n=(null==(e=this.$refs.items)?void 0:e.$el.querySelectorAll(".k-item"))??[];for(const i of n)delete i.dataset.selected;t>=0&&(n[t].dataset.selected=!0)}}},(function(){var t,e=this,n=e._self._c;return n("k-dialog",e._b({staticClass:"k-search-dialog",attrs:{"cancel-button":!1,"submit-button":!1,role:"search",size:"medium"},on:{cancel:function(t){return e.$emit("cancel")},submit:e.submit}},"k-dialog",e.$props,!1),[n("div",{staticClass:"k-search-dialog-input"},[n("k-button",{staticClass:"k-search-dialog-types",attrs:{dropdown:!0,icon:e.currentType.icon,text:e.currentType.label,variant:"dimmed"},on:{click:function(t){return e.$refs.types.toggle()}}}),n("k-dropdown-content",{ref:"types"},e._l(e.$panel.searches,(function(t,i){return n("k-dropdown-item",{key:i,attrs:{icon:t.icon},on:{click:function(t){e.type=i,e.focus()}}},[e._v(" "+e._s(t.label)+" ")])})),1),n("k-search-input",{ref:"input",attrs:{"aria-label":e.$t("search"),autofocus:!0,value:e.query},on:{input:function(t){e.query=t}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter.apply(null,arguments)}]}}),n("k-button",{staticClass:"k-search-dialog-close",attrs:{icon:e.isLoading?"loader":"cancel",title:e.$t("close")},on:{click:e.close}})],1),(null==(t=e.query)?void 0:t.length)>1?n("div",{staticClass:"k-search-dialog-results"},[e.items.length?n("k-collection",{ref:"items",attrs:{items:e.items},nativeOn:{mouseout:function(t){return e.select(-1)}}}):e._e(),n("footer",{staticClass:"k-search-dialog-footer"},[e.items.length?e.items.length({text:window.panel.$t("activate"),icon:"lock",theme:"notice"})}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",attrs:{size:"large"},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[e("k-dialog-text",{staticClass:"k-totp-dialog-intro",attrs:{text:t.$t("login.totp.enable.intro")}}),e("div",{staticClass:"k-totp-dialog-grid"},[e("div",{staticClass:"k-totp-qrcode"},[e("k-info-field",{attrs:{label:t.$t("login.totp.enable.qr.label"),text:t.qr,help:t.$t("login.totp.enable.qr.help",{secret:t.value.secret}),theme:"passive"}})],1),e("k-dialog-fields",{staticClass:"k-totp-dialog-fields",attrs:{fields:{info:{label:t.$t("login.totp.enable.confirm.headline"),type:"info",text:t.$t("login.totp.enable.confirm.text"),theme:"none"},confirm:{label:t.$t("login.totp.enable.confirm.label"),type:"text",counter:!1,font:"monospace",required:!0,placeholder:t.$t("login.code.placeholder.totp"),help:t.$t("login.totp.enable.confirm.help")},secret:{type:"hidden"}},novalidate:!0,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],1)],1)}),[],!1,null,null,null,null).exports;const Et=Y({mixins:[pt],props:{submitButton:{type:[String,Boolean,Object],default:()=>({icon:"upload",text:window.panel.$t("upload")})}},methods:{isPreviewable:t=>["image/jpeg","image/jpg","image/gif","image/png","image/webp","image/avif","image/svg+xml"].includes(t)}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",staticClass:"k-upload-dialog",attrs:{disabled:t.disabled||0===t.$panel.upload.files.length},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[e("k-dropzone",{on:{drop:function(e){return t.$panel.upload.select(e)}}},[0===t.$panel.upload.files.length?[e("k-empty",{attrs:{icon:"upload",layout:"cards"},on:{click:function(e){return t.$panel.upload.pick()}}},[t._v(" "+t._s(t.$t("files.empty"))+" ")])]:[e("ul",{staticClass:"k-upload-items"},t._l(t.$panel.upload.files,(function(n){return e("li",{key:n.id,staticClass:"k-upload-item",attrs:{"data-completed":n.completed}},[e("a",{staticClass:"k-upload-item-preview",attrs:{href:n.url,target:"_blank"}},[t.isPreviewable(n.type)?e("k-image-frame",{attrs:{cover:!0,src:n.url,back:"pattern"}}):e("k-icon-frame",{attrs:{back:"black",color:"white",ratio:"1/1",icon:"file"}})],1),e("k-input",{staticClass:"k-upload-item-input",attrs:{disabled:n.completed,after:"."+n.extension,novalidate:!0,required:!0,type:"slug"},model:{value:n.name,callback:function(e){t.$set(n,"name",e)},expression:"file.name"}}),e("div",{staticClass:"k-upload-item-body"},[e("p",{staticClass:"k-upload-item-meta"},[t._v(" "+t._s(n.niceSize)+" "),n.progress?[t._v(" - "+t._s(n.progress)+"% ")]:t._e()],2),n.error?e("p",{staticClass:"k-upload-item-error"},[t._v(" "+t._s(n.error)+" ")]):n.progress?e("k-progress",{staticClass:"k-upload-item-progress",attrs:{value:n.progress}}):t._e()],1),e("div",{staticClass:"k-upload-item-toggle"},[n.completed||n.progress?n.completed?e("k-button",{attrs:{icon:"check",theme:"positive"},on:{click:function(e){return t.$panel.upload.remove(n.id)}}}):e("div",[e("k-icon",{attrs:{type:"loader"}})],1):e("k-button",{attrs:{icon:"remove"},on:{click:function(e){return t.$panel.upload.remove(n.id)}}})],1)],1)})),0)]],2)],1)}),[],!1,null,null,null,null).exports;const Dt=Y({extends:Et,props:{original:Object,submitButton:{type:[String,Boolean,Object],default:()=>({icon:"upload",text:window.panel.$t("replace")})}}},(function(){var t,e,n=this,i=n._self._c;return i("k-dialog",n._b({ref:"dialog",staticClass:"k-upload-dialog k-upload-replace-dialog",on:{cancel:function(t){return n.$emit("cancel")},submit:function(t){return n.$emit("submit")}}},"k-dialog",n.$props,!1),[i("ul",{staticClass:"k-upload-items"},[i("li",{staticClass:"k-upload-original"},[n.isPreviewable(n.original.mime)?i("k-image",{attrs:{cover:!0,src:n.original.url,back:"pattern"}}):i("k-icon-frame",{attrs:{color:(null==(t=n.original.image)?void 0:t.color)??"white",icon:(null==(e=n.original.image)?void 0:e.icon)??"file",back:"black",ratio:"1/1"}})],1),i("li",[n._v("←")]),n._l(n.$panel.upload.files,(function(t){var e,s;return i("li",{key:t.id,staticClass:"k-upload-item",attrs:{"data-completed":t.completed}},[i("a",{staticClass:"k-upload-item-preview",attrs:{href:t.url,target:"_blank"}},[n.isPreviewable(t.type)?i("k-image",{attrs:{cover:!0,src:t.url,back:"pattern"}}):i("k-icon-frame",{attrs:{color:(null==(e=n.original.image)?void 0:e.color)??"white",icon:(null==(s=n.original.image)?void 0:s.icon)??"file",back:"black",ratio:"1/1"}})],1),i("k-input",{staticClass:"k-upload-item-input",attrs:{value:n.$helper.file.name(n.original.filename),disabled:!0,after:"."+t.extension,type:"text"}}),i("div",{staticClass:"k-upload-item-body"},[i("p",{staticClass:"k-upload-item-meta"},[n._v(" "+n._s(t.niceSize)+" "),t.progress?[n._v(" - "+n._s(t.progress)+"% ")]:n._e()],2),i("p",{staticClass:"k-upload-item-error"},[n._v(n._s(t.error))])]),i("div",{staticClass:"k-upload-item-progress"},[t.progress>0&&!t.error?i("k-progress",{attrs:{value:t.progress}}):n._e()],1),i("div",{staticClass:"k-upload-item-toggle"},[t.completed?i("k-button",{attrs:{icon:"check",theme:"positive"},on:{click:function(e){return n.$panel.upload.remove(t.id)}}}):t.progress?i("div",[i("k-icon",{attrs:{type:"loader"}})],1):n._e()],1)],1)}))],2)])}),[],!1,null,null,null,null).exports;const Lt=Y({mixins:[pt,yt],props:{empty:{type:Object,default:()=>({icon:"users",text:window.panel.$t("dialog.users.empty")})},item:{type:Function,default:t=>({...t,key:t.email,info:t.info!==t.text?t.info:null})}}},(function(){var t=this;return(0,t._self._c)("k-models-dialog",t._b({on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",e)}}},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports,Bt={install(t){t.use(dt),t.component("k-dialog",ht),t.component("k-changes-dialog",mt),t.component("k-email-dialog",ft),t.component("k-error-dialog",gt),t.component("k-fiber-dialog",kt),t.component("k-files-dialog",wt),t.component("k-form-dialog",xt),t.component("k-link-dialog",Ct),t.component("k-language-dialog",_t),t.component("k-models-dialog",$t),t.component("k-page-create-dialog",St),t.component("k-page-move-dialog",Ot),t.component("k-pages-dialog",At),t.component("k-remove-dialog",jt),t.component("k-search-dialog",It),t.component("k-text-dialog",Mt),t.component("k-totp-dialog",Tt),t.component("k-upload-dialog",Et),t.component("k-upload-replace-dialog",Dt),t.component("k-users-dialog",Lt)}};const qt=Y({},(function(){return(0,this._self._c)("div",{staticClass:"k-drawer-body scroll-y-auto"},[this._t("default")],2)}),[],!1,null,null,null,null).exports,Pt={props:{empty:{type:String,default:()=>window.panel.$t("drawer.fields.empty")},fields:Object,novalidate:{type:Boolean,default:!0},value:Object}};const Nt=Y({mixins:[Pt],emits:["input","submit"],computed:{hasFields(){return this.$helper.object.length(this.fields)>0}}},(function(){var t=this,e=t._self._c;return t.hasFields?e("k-fieldset",{staticClass:"k-drawer-fields",attrs:{novalidate:t.novalidate,fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,zt={props:{breadcrumb:{default:()=>{},type:Array},tab:{type:String},tabs:{default:()=>{},type:Object}}};const Ft=Y({mixins:[zt],emits:["crumb","tab"]},(function(){var t=this,e=t._self._c;return e("header",{staticClass:"k-drawer-header"},[e("nav",{staticClass:"k-breadcrumb k-drawer-breadcrumb"},[e("ol",t._l(t.breadcrumb,(function(n,i){return e("li",{key:n.id},[e("k-button",{staticClass:"k-breadcrumb-link",attrs:{icon:n.props.icon,text:n.props.title,current:i===t.breadcrumb.length-1,variant:"dimmed"},on:{click:function(e){return t.$emit("crumb",n.id)}}})],1)})),0)]),e("k-drawer-tabs",{attrs:{tab:t.tab,tabs:t.tabs},on:{open:function(e){return t.$emit("tab",e)}}}),e("nav",{staticClass:"k-drawer-options"},[t._t("default"),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"check",type:"submit"}})],2)],1)}),[],!1,null,null,null,null).exports;const Rt=Y({},(function(){var t=this,e=t._self._c;return"drawer"===t.$panel.notification.context?e("k-notification",{staticClass:"k-drawer-notification"}):t._e()}),[],!1,null,null,null,null).exports;const Yt=Y({mixins:[{props:{tab:{type:String},tabs:{default:()=>{},type:[Array,Object]}}}],emits:["open"],computed:{hasTabs(){return this.$helper.object.length(this.tabs)>1}}},(function(){var t=this,e=t._self._c;return t.hasTabs?e("nav",{staticClass:"k-drawer-tabs"},t._l(t.tabs,(function(n){return e("k-button",{key:n.name,staticClass:"k-drawer-tab",attrs:{current:t.tab===n.name,text:n.label},on:{click:function(e){return t.$emit("open",n.name)}}})})),1):t._e()}),[],!1,null,null,null,null).exports,Ut={props:{empty:{type:String,default:()=>window.panel.$t("drawer.text.empty")},text:{type:String}}};const Ht=Y({mixins:[Ut]},(function(){var t=this,e=t._self._c;return t.text?e("k-text",{attrs:{html:t.text}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,Vt={install(t){t.component("k-drawer-body",qt),t.component("k-drawer-fields",Nt),t.component("k-drawer-header",Ft),t.component("k-drawer-notification",Rt),t.component("k-drawer-tabs",Yt),t.component("k-drawer-text",Ht)}},Kt={mixins:[zt],props:{disabled:{default:!1,type:Boolean},icon:String,id:String,options:{type:Array},title:String,visible:{default:!1,type:Boolean}}};const Wt=Y({mixins:[Kt],emits:["cancel","crumb","submit","tab"]},(function(){var t=this,e=t._self._c;return t.visible?e("portal",{attrs:{to:"drawer"}},[e("form",{staticClass:"k-drawer",class:t.$vnode.data.staticClass,attrs:{"aria-disabled":t.disabled,method:"dialog"},on:{submit:function(e){return e.preventDefault(),t.$emit("submit")}}},[e("k-drawer-notification"),e("k-drawer-header",{attrs:{breadcrumb:t.breadcrumb,tab:t.tab,tabs:t.tabs},on:{crumb:function(e){return t.$emit("crumb",e)},tab:function(e){return t.$emit("tab",e)}}},[t._t("options",(function(){return[t._l(t.options,(function(n,i){return[n.dropdown?[e("k-button",t._b({key:"btn-"+i,staticClass:"k-drawer-option",on:{click:function(e){t.$refs["dropdown-"+i][0].toggle()}}},"k-button",n,!1)),e("k-dropdown-content",{key:"dropdown-"+i,ref:"dropdown-"+i,refInFor:!0,attrs:{options:n.dropdown,"align-x":"end",theme:"light"}})]:e("k-button",t._b({key:i,staticClass:"k-drawer-option"},"k-button",n,!1))]}))]}))],2),e("k-drawer-body",[t._t("default")],2)],1)]):t._e()}),[],!1,null,null,null,null).exports,Jt={props:{hidden:{type:Boolean},next:{type:Object},prev:{type:Object}}};const Gt=Y({mixins:[Kt,Pt,Jt],emits:["cancel","crumb","input","next","prev","remove","show","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-form-drawer",t._b({ref:"drawer",staticClass:"k-block-drawer",on:{cancel:function(e){return t.$emit("cancel",e)},crumb:function(e){return t.$emit("crumb",e)},input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)},tab:function(e){return t.$emit("tab",e)}},scopedSlots:t._u([{key:"options",fn:function(){return[t.hidden?e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"hidden"},on:{click:function(e){return t.$emit("show")}}}):t._e(),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.prev,icon:"angle-left"},on:{click:function(e){return t.$emit("prev")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.next,icon:"angle-right"},on:{click:function(e){return t.$emit("next")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"trash"},on:{click:function(e){return t.$emit("remove")}}})]},proxy:!0}])},"k-form-drawer",t.$props,!1))}),[],!1,null,null,null,null).exports;const Xt=Y({methods:{isCurrent(t){return this.$panel.drawer.id===t}}},(function(){var t=this,e=t._self._c;return e("div",t._l(t.$panel.drawer.history.milestones,(function(n){return e(n.component,t._g(t._b({key:n.id,tag:"component",attrs:{breadcrumb:t.$panel.drawer.breadcrumb,disabled:!1===t.isCurrent(n.id),visible:!0}},"component",n.props,!1),t.isCurrent(n.id)?t.$panel.drawer.listeners():n.on))})),1)}),[],!1,null,null,null,null).exports;const Qt=Y({mixins:[Kt,Pt],emits:["cancel","crumb","input","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-form-drawer",on:{cancel:function(e){return t.$emit("cancel")},crumb:function(e){return t.$emit("crumb",e)},submit:function(e){return t.$emit("submit",t.value)},tab:function(e){return t.$emit("tab",e)}}},"k-drawer",t.$props,!1),[t._t("options",null,{slot:"options"}),e("k-drawer-fields",{attrs:{fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],2)}),[],!1,null,null,null,null).exports;const Zt=Y({mixins:[Kt,Pt,{props:{next:{type:Object},prev:{type:Object}}}],emits:["cancel","crumb","input","next","prev","remove","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-form-drawer",t._b({ref:"drawer",staticClass:"k-structure-drawer",on:{cancel:function(e){return t.$emit("cancel",e)},crumb:function(e){return t.$emit("crumb",e)},input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)},tab:function(e){return t.$emit("tab",e)}},scopedSlots:t._u([{key:"options",fn:function(){return[e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.prev,icon:"angle-left"},on:{click:function(e){return t.$emit("prev")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.next,icon:"angle-right"},on:{click:function(e){return t.$emit("next")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"trash"},on:{click:function(e){return t.$emit("remove")}}})]},proxy:!0}])},"k-form-drawer",t.$props,!1))}),[],!1,null,null,null,null).exports;const te=Y({mixins:[Kt,Ut],emits:["cancel","crumb","input","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-text-drawer",on:{cancel:function(e){return t.$emit("cancel")},crumb:function(e){return t.$emit("crumb",e)},submit:function(e){return t.$emit("submit",t.value)},tab:function(e){return t.$emit("tab",e)}}},"k-drawer",t.$props,!1),[t._t("options",null,{slot:"options"}),e("k-dialog-text",{attrs:{text:t.text}})],2)}),[],!1,null,null,null,null).exports,ee={install(t){t.use(Vt),t.component("k-drawer",Wt),t.component("k-block-drawer",Gt),t.component("k-fiber-drawer",Xt),t.component("k-form-drawer",Qt),t.component("k-structure-drawer",Zt),t.component("k-text-drawer",te)}};const ne=Y({created(){window.panel.deprecated(" will be removed in a future version. Since Kirby 4.0, you don't need it anymore as wrapper element. Use `` as standalone instead.")}},(function(){return(0,this._self._c)("span",{staticClass:"k-dropdown",on:{click:function(t){t.stopPropagation()}}},[this._t("default")],2)}),[],!1,null,null,null,null).exports;let ie=null;const se=Y({props:{align:{type:String},alignX:{type:String,default:"start"},alignY:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},navigate:{default:!0,type:Boolean},options:[Array,Function,String],theme:{type:String,default:"dark"}},emits:["action","close","open"],data(){return{axis:{x:this.alignX,y:this.alignY},position:{x:0,y:0},isOpen:!1,items:[],opener:null}},created(){this.align&&window.panel.deprecated(": `align` prop will be removed in a future version. Use the `alignX` prop instead.")},methods:{close(){var t;null==(t=this.$refs.dropdown)||t.close()},async fetchOptions(t){return this.options?"string"==typeof this.options?this.$dropdown(this.options)(t):"function"==typeof this.options?this.options(t):Array.isArray(this.options)?t(this.options):void 0:t(this.items)},focus(t=0){this.$refs.navigate.focus(t)},onClick(t){t.target===this.$el&&this.close()},onClose(){this.resetPosition(),this.isOpen=ie=!1,this.$emit("close"),window.removeEventListener("resize",this.setPosition)},async onOpen(){this.isOpen=!0;const t=window.scrollY;ie=this,await this.$nextTick(),this.$el&&this.opener&&(window.addEventListener("resize",this.setPosition),await this.setPosition(),window.scrollTo(0,t),this.$emit("open"))},onOptionClick(t){"function"==typeof t.click?t.click.call(this):t.click&&this.$emit("action",t.click)},open(t){var e,n;if(!0===this.disabled)return!1;ie&&ie!==this&&ie.close(),this.opener=t??(null==(e=window.event)?void 0:e.target.closest("button"))??(null==(n=window.event)?void 0:n.target),this.fetchOptions((t=>{this.items=t,this.onOpen()}))},async setPosition(){this.axis={x:this.alignX??this.align,y:this.alignY},"right"===this.axis.x?this.axis.x="end":"left"===this.axis.x&&(this.axis.x="start"),"rtl"===this.$panel.direction&&("start"===this.axis.x?this.axis.x="end":"end"===this.axis.x&&(this.axis.x="start")),this.opener instanceof Vue&&(this.opener=this.opener.$el);const t=this.opener.getBoundingClientRect();this.position.x=t.left+window.scrollX+t.width,this.position.y=t.top+window.scrollY+t.height,!0!==this.$el.open&&this.$el.showModal(),await this.$nextTick();const e=this.$el.getBoundingClientRect(),n=10;"end"===this.axis.x?t.left-e.widthwindow.innerWidth-n&&e.width+ne.top&&(this.axis.y="bottom"):t.top+e.height>window.innerHeight-n&&e.height+n!0===t.default));t.push(this.item(e)),t.push("-");const n=this.languages.filter((t=>!1===t.default));for(const i of n)t.push(this.item(i));return t}},methods:{change(t){this.$reload({query:{language:t.code}})},item(t){return{click:()=>this.change(t),current:t.code===this.language.code,text:t.name}}}},(function(){var t=this,e=t._self._c;return t.languages.length>1?e("div",{staticClass:"k-languages-dropdown"},[e("k-button",{attrs:{dropdown:!0,text:t.code,icon:"translate",responsive:"text",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.languages.toggle()}}}),e("k-dropdown-content",{ref:"languages",attrs:{options:t.options}})],1):t._e()}),[],!1,null,null,null,null).exports;const re=Y({props:{align:{type:String,default:"right"},disabled:{type:Boolean},icon:{type:String,default:"dots"},options:{type:[Array,Function,String],default:()=>[]},text:{type:[Boolean,String],default:!0},theme:{type:String,default:"dark"},size:String,variant:String},computed:{hasSingleOption(){return Array.isArray(this.options)&&1===this.options.length}},methods:{onAction(t,e,n){"function"==typeof t?t.call(this):(this.$emit("action",t,e,n),this.$emit("option",t,e,n))},toggle(t=this.$el){this.$refs.options.toggle(t)}}},(function(){var t=this,e=t._self._c;return t.hasSingleOption?e("k-button",{staticClass:"k-options-dropdown-toggle",attrs:{disabled:t.disabled,icon:t.options[0].icon??t.icon,size:t.options[0].size??t.size,title:t.options[0].title??t.options[0].tooltip??t.options[0].text,variant:t.options[0].variant??t.variant},on:{click:function(e){return t.onAction(t.options[0].option??t.options[0].click,t.options[0],0)}}},[!0===t.text?[t._v(" "+t._s(t.options[0].text)+" ")]:!1!==t.text?[t._v(" "+t._s(t.text)+" ")]:t._e()],2):t.options.length?e("div",{staticClass:"k-options-dropdown"},[e("k-button",{staticClass:"k-options-dropdown-toggle",attrs:{disabled:t.disabled,dropdown:!0,icon:t.icon,size:t.size,text:!0!==t.text&&!1!==t.text?t.text:null,title:t.$t("options"),variant:t.variant},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",staticClass:"k-options-dropdown-content",attrs:{"align-x":t.align,options:t.options},on:{action:t.onAction}})],1):t._e()}),[],!1,null,null,null,null).exports,ae={props:{accept:{type:String,default:"all"},icon:{type:String},ignore:{default:()=>[],type:Array},options:{default:()=>[],type:Array},search:{default:!0,type:[Object,Boolean]},value:{type:String}}};const ue=Y({mixins:[ae],emits:["create","escape","pick","select"],data(){return{query:this.value??"",selected:-1}},computed:{empty(){return this.$t("options.none")},filtered(){return!1===this.hasQuery?this.options:this.$helper.array.search(this.options,this.query,{field:"text"})},hasQuery(){const t=this.search.min??0;return this.query.length>=t},inputPlaceholder(){return"options"===this.accept?this.$t("filter"):this.$t("enter")},regex(){return new RegExp(`(${RegExp.escape(this.query)})`,"ig")},showCreateButton(){if("all"!==this.accept)return!1;if(0===this.query.length)return!1;if(!0===this.ignore.includes(this.query))return!1;return 0===this.options.filter((t=>t.text===this.query||t.value===this.query)).length},showEmpty(){return"options"===this.accept&&0===this.filtered.legnth&&this.options.length},showSearch(){return"all"===this.accept||!1!==this.search}},watch:{query(){this.selected=-1,!1!==this.hasQuery&&(!0===this.showCreateButton&&0===this.filtered.length?this.selected=this.filtered.length:this.filtered.length&&(this.selected=0))},selected(){-1===this.selected&&this.focus()}},mounted(){var t;null==(t=this.$refs.input)||t.select()},methods:{create(t){0!==(t=t.trim()).length&&this.$emit("create",t)},down(){this.pick(this.selected+1)},escape(){this.reset(),this.focus(),this.$emit("escape")},focus(){var t;null==(t=this.$refs.input)||t.focus()},async pick(t){var e,n;if(t>(this.showCreateButton?this.filtered.length:this.filtered.length-1)||t<-1)return!1;this.selected=t,this.$emit("pick",t),this.focus(),await this.$nextTick(),null==(n=null==(e=this.$refs.results)?void 0:e.$el.querySelector("[aria-current]"))||n.scrollIntoView({block:"nearest"})},reset(){this.query=""},select(t){this.pick(t);const e=this.filtered[this.selected];if(e)this.$emit("select",e);else{if(!this.showCreateButton)return;this.create(this.query)}this.query=""},tab(t){t.preventDefault(),t.shiftKey?this.up():this.down()},highlight(t){return t=this.$helper.string.stripHTML(t),0===this.query.length?t:t.replace(this.regex,"$1")},up(){this.pick(this.selected-1)}}},(function(){var t,e=this,n=e._self._c;return n("nav",{staticClass:"k-selector",attrs:{role:"search","data-has-current":null==(t=e.filtered)?void 0:t.includes(e.selected)}},[n("header",{staticClass:"k-selector-header"},[e.showSearch?n("div",{staticClass:"k-selector-search"},[n("input",{ref:"input",staticClass:"k-selector-input",attrs:{placeholder:e.inputPlaceholder+" …",type:"search"},domProps:{value:e.query},on:{click:function(t){return e.pick(-1)},input:function(t){e.query=t.target.value},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.down.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:(t.preventDefault(),e.escape())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.select(e.selected))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.tab.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.up.apply(null,arguments))}]}})]):e._e()]),e.filtered.length||e.showEmpty?n("div",{staticClass:"k-selector-body"},[e.filtered.length?n("k-navigate",{ref:"results",staticClass:"k-selector-results",attrs:{axis:"y"}},e._l(e.filtered,(function(t,i){return n("k-button",{key:i,staticClass:"k-selector-button",attrs:{current:e.selected===i,disabled:t.disabled,icon:t.icon??e.icon},on:{click:function(t){return e.select(i)}},nativeOn:{focus:function(t){return e.pick(i)}}},[n("span",{domProps:{innerHTML:e._s(e.highlight(t.text))}})])})),1):e.showEmpty?n("p",{staticClass:"k-selector-empty"},[e._v(e._s(e.empty))]):e._e()],1):e._e(),e.showCreateButton?n("footer",{staticClass:"k-selector-footer"},[n("k-button",{staticClass:"k-selector-button k-selector-add-button",attrs:{current:e.selected===e.filtered.length,icon:"add"},nativeOn:{focus:function(t){return e.select(e.filtered.length)}}},[n("strong",[e._v(e._s(e.value?e.$t("replace.with"):e.$t("create"))+":")]),n("span",{staticClass:"k-selector-preview"},[e._v(e._s(e.query))])])],1):e._e()])}),[],!1,null,null,null,null).exports;const ce=Y({mixins:[ae],props:{align:String,disabled:Boolean},emits:["create","select"],methods:{close(){this.$refs.dropdown.close()},create(t){this.$emit("create",t),this.close()},open(t){this.$refs.dropdown.open(t)},reset(){this.$refs.selector.reset()},select(t){this.$emit("select",t),this.close()},toggle(t){this.$refs.dropdown.toggle(t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-selector-dropdown"},[t._t("default"),e("k-dropdown-content",{ref:"dropdown",staticClass:"k-selector-dropdown-content",attrs:{"align-x":t.align,autofocus:!1,disabled:t.disabled,navigate:!1},on:{close:t.reset}},[e("k-selector",t._b({ref:"selector",on:{create:t.create,escape:function(e){return t.$refs.dropdown.close()},select:t.select}},"k-selector",t.$props,!1))],1)],2)}),[],!1,null,null,null,null).exports,de={install(t){t.component("k-dropdown",ne),t.component("k-dropdown-content",se),t.component("k-dropdown-item",oe),t.component("k-languages-dropdown",le),t.component("k-options-dropdown",re),t.component("k-selector-dropdown",ce)}};class pe extends HTMLElement{connectedCallback(){this.style.display="block",this.textareas=this.querySelectorAll("textarea");for(const t of this.textareas)t.style.resize="none",t.style.overflowY="hidden",t.autosize=()=>{t.style.height=0,t.style.height=t.scrollHeight+"px"},t.addEventListener("input",(()=>t.autosize()));this.resizer=new ResizeObserver((()=>{for(const t of this.textareas)t.autosize()})),this.resizer.observe(this)}disconnectedCallback(){this.resizer.unobserve(this)}}const he=Y({props:{html:{type:Boolean,default:!1},limit:{type:Number,default:10},skip:{type:Array,default:()=>[]},options:Array,query:String},emits:["leave","search","select"],data:()=>({matches:[],selected:{text:null}}),methods:{close(){this.$refs.dropdown.close()},onSelect(t){this.$emit("select",t),this.$refs.dropdown.close()},search(t){const e=this.options.filter((t=>-1!==this.skip.indexOf(t.value)));this.matches=this.$helper.array.search(e,t,{field:"text",limit:this.limit}),this.$emit("search",t,this.matches),this.$refs.dropdown.open()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-autocomplete"},[t._t("default"),e("k-dropdown-content",{ref:"dropdown",attrs:{autofocus:!0},on:{leave:function(e){return t.$emit("leave")}}},t._l(t.matches,(function(n,i){return e("k-dropdown-item",t._b({key:i,nativeOn:{mousedown:function(e){return t.onSelect(n)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:(e.preventDefault(),t.onSelect(n))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onSelect(n))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.close.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:(e.preventDefault(),t.close.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close.apply(null,arguments))}]}},"k-dropdown-item",n,!1),[e("span",{domProps:{innerHTML:t._s(t.html?n.text:t.$esc(n.text))}})])})),1),t._v(" "+t._s(t.query)+" ")],2)}),[],!1,null,null,null,null).exports;const me=Y({props:{count:Number,min:Number,max:Number,required:{type:Boolean,default:!1}},computed:{valid(){return!1===this.required&&0===this.count||(!0!==this.required||0!==this.count)&&(!(this.min&&this.countthis.max))}}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-counter",attrs:{"data-invalid":!t.valid}},[e("span",[t._v(t._s(t.count))]),t.min&&t.max?e("span",{staticClass:"k-counter-rules"},[t._v("("+t._s(t.min)+"–"+t._s(t.max)+")")]):t.min?e("span",{staticClass:"k-counter-rules"},[t._v("≥ "+t._s(t.min))]):t.max?e("span",{staticClass:"k-counter-rules"},[t._v("≤ "+t._s(t.max))]):t._e()])}),[],!1,null,null,null,null).exports;const fe=Y({props:{disabled:Boolean,config:Object,fields:{type:[Array,Object],default:()=>[]},novalidate:{type:Boolean,default:!1},value:{type:Object,default:()=>({})}},emits:["input","submit"],data:()=>({errors:{}}),methods:{focus(t){var e,n;null==(n=null==(e=this.$refs.fields)?void 0:e.focus)||n.call(e,t)},onFocus(t,e,n){this.$emit("focus",t,e,n)},onInput(t,e,n){this.$emit("input",t,e,n)},onInvalid(t){this.$emit("invalid",t)},onSubmit(){this.$emit("submit",this.value)},submit(){this.$refs.submitter.click()}}},(function(){var t=this,e=t._self._c;return e("form",{ref:"form",staticClass:"k-form",attrs:{method:"POST",autocomplete:"off",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t._t("header"),t._t("default",(function(){return[e("k-fieldset",{ref:"fields",attrs:{disabled:t.disabled,fields:t.fields,novalidate:t.novalidate,value:t.value},on:{focus:t.onFocus,input:t.onInput,invalid:t.onInvalid,submit:t.onSubmit}})]})),t._t("footer"),e("input",{ref:"submitter",staticClass:"k-form-submitter",attrs:{type:"submit"}})],2)}),[],!1,null,null,null,null).exports;const ge=Y({props:{lock:[Boolean,Object]},data:()=>({isLoading:null,isLocking:null}),computed:{api(){return[this.$panel.view.path+"/lock",null,null,!0]},buttons(){return"unlock"===this.mode?[{icon:"check",text:this.$t("lock.isUnlocked"),click:()=>this.resolve()},{icon:"download",text:this.$t("download"),click:()=>this.download()}]:"lock"===this.mode?[{icon:this.lock.data.unlockable?"unlock":"loader",text:this.$t("lock.isLocked",{email:this.$esc(this.lock.data.email)}),title:this.$t("lock.unlock"),disabled:!this.lock.data.unlockable,click:()=>this.unlock()}]:"changes"===this.mode?[{icon:"undo",text:this.$t("revert"),click:()=>this.revert()},{icon:"check",text:this.$t("save"),click:()=>this.save()}]:[]},disabled(){return"unlock"!==this.mode&&("lock"===this.mode?!this.lock.data.unlockable:"changes"===this.mode&&this.isDisabled)},hasChanges(){return this.$store.getters["content/hasChanges"]()},isDisabled(){return!1===this.$store.state.content.status.enabled},isLocked(){return"lock"===this.lockState},isUnlocked(){return"unlock"===this.lockState},mode(){return null!==this.lockState?this.lockState:!0===this.hasChanges?"changes":null},lockState(){return this.supportsLocking&&this.lock?this.lock.state:null},supportsLocking(){return!1!==this.lock},theme(){return"lock"===this.mode?"negative":"unlock"===this.mode?"info":"changes"===this.mode?"notice":null}},watch:{hasChanges:{handler(t,e){!0===this.supportsLocking&&!1===this.isLocked&&!1===this.isUnlocked&&(!0===t?(this.locking(),this.isLocking=setInterval(this.locking,3e4)):e&&(clearInterval(this.isLocking),this.locking(!1)))},immediate:!0},isLocked(t){!1===t&&this.$events.emit("model.reload")}},created(){this.supportsLocking&&(this.isLoading=setInterval(this.check,1e4)),this.$events.on("view.save",this.save)},destroyed(){clearInterval(this.isLoading),clearInterval(this.isLocking),this.$events.off("view.save",this.save)},methods:{async check(){const{lock:t}=await this.$api.get(...this.api);Vue.set(this.$panel.view.props,"lock",t)},download(){let t="";const e=this.$store.getters["content/changes"]();for(const i in e)t+=i+": \n\n"+e[i],t+="\n\n----\n\n";let n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),n.setAttribute("download",this.$panel.view.path+".txt"),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)},async locking(t=!0){if(!0===t)try{await this.$api.patch(...this.api)}catch(e){clearInterval(this.isLocking),this.$store.dispatch("content/revert")}else clearInterval(this.isLocking),await this.$api.delete(...this.api)},async resolve(){await this.unlock(!1),this.$store.dispatch("content/revert")},revert(){this.$panel.dialog.open({component:"k-remove-dialog",props:{submitButton:{icon:"undo",text:this.$t("revert")},text:this.$t("revert.confirm")},on:{submit:()=>{this.$store.dispatch("content/revert"),this.$panel.dialog.close()}}})},async save(t){var e;null==(e=null==t?void 0:t.preventDefault)||e.call(t),await this.$store.dispatch("content/save"),this.$events.emit("model.update"),this.$panel.notification.success()},async unlock(t=!0){const e=[this.$panel.view.path+"/unlock",null,null,!0];!0!==t?(await this.$api.delete(...e),this.$reload({silent:!0})):this.$panel.dialog.open({component:"k-remove-dialog",props:{submitButton:{icon:"unlock",text:this.$t("lock.unlock")},text:this.$t("lock.unlock.submit",{email:this.$esc(this.lock.data.email)})},on:{submit:async()=>{await this.$api.patch(...e),this.$panel.dialog.close(),this.$reload({silent:!0})}}})}}},(function(){var t=this,e=t._self._c;return t.buttons.length>0?e("k-button-group",{staticClass:"k-form-buttons",attrs:{layout:"collapsed"}},t._l(t.buttons,(function(n){return e("k-button",t._b({key:n.icon,attrs:{size:"sm",variant:"filled",disabled:t.isDisabled,responsive:!0,theme:t.theme}},"k-button",n,!1))})),1):t._e()}),[],!1,null,null,null,null).exports,ke={props:{after:String}},be={props:{autocomplete:String}},ve={props:{autofocus:Boolean}},ye={props:{before:String}},$e={props:{disabled:Boolean}},we={props:{font:String}},xe={props:{help:String}},_e={props:{id:{type:[Number,String],default(){return this._uid}}}},Ce={props:{invalid:Boolean}},Se={props:{label:String}},Oe={props:{maxlength:Number}},Ae={props:{minlength:Number}},Me={props:{name:[Number,String]}},je={props:{options:{default:()=>[],type:Array}}},Ie={props:{pattern:String}},Te={props:{placeholder:[Number,String]}},Ee={props:{required:Boolean}},De={props:{spellcheck:{type:[Boolean,String],default:"on"}}},Le={mixins:[$e,xe,Se,Me,Ee],props:{counter:[Boolean,Object],endpoints:Object,input:[String,Number],translate:Boolean,type:String}};const Be=Y({mixins:[Le],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("div",{class:"k-field k-field-name-"+t.name,attrs:{"data-disabled":t.disabled,"data-translate":t.translate},on:{focusin:function(e){return t.$emit("focus",e)},focusout:function(e){return t.$emit("blur",e)}}},[t._t("header",(function(){return[e("header",{staticClass:"k-bar k-field-header"},[t._t("label",(function(){return[e("k-label",{attrs:{input:t.input,required:t.required,type:"field"}},[t._v(" "+t._s(t.label)+" ")])]})),t._t("options"),t._t("counter",(function(){return[t.counter?e("k-counter",t._b({staticClass:"k-field-counter",attrs:{required:t.required}},"k-counter",t.counter,!1)):t._e()]}))],2)]})),t._t("default"),t._t("footer",(function(){return[t.help||t.$slots.help?e("footer",{staticClass:"k-field-footer"},[t._t("help",(function(){return[t.help?e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}}):t._e()]}))],2):t._e()]}))],2)}),[],!1,null,null,null,null).exports;const qe=Y({props:{config:Object,disabled:Boolean,fields:{type:[Array,Object],default:()=>[]},novalidate:{type:Boolean,default:!1},value:{type:Object,default:()=>({})}},emits:["focus","input","invalid","submit"],data(){return{values:this.value,errors:{}}},watch:{value(t){this.values=t}},methods:{focus(t){if(t)return void(this.hasField(t)&&"function"==typeof this.$refs[t][0].focus&&this.$refs[t][0].focus());const e=Object.keys(this.$refs)[0];this.focus(e)},hasFieldType(t){return this.$helper.isComponent(`k-${t}-field`)},hasField(t){var e;return null==(e=this.$refs[t])?void 0:e[0]},onInvalid(t,e,n,i){this.errors[i]=e,this.$emit("invalid",this.errors)},onInput(t,e,n){this.values={...this.value,[n]:t},this.$emit("input",this.values,e,n)},hasErrors(){return this.$helper.object.length(this.errors)>0}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-fieldset"},[e("k-grid",{attrs:{variant:"fields"}},[t._l(t.fields,(function(n,i){return[t.$helper.field.isVisible(n,t.value)?e("k-column",{key:n.signature,attrs:{width:n.width}},[e("k-error-boundary",[t.hasFieldType(n.type)?e("k-"+n.type+"-field",t._b({ref:i,refInFor:!0,tag:"component",attrs:{disabled:t.disabled||n.disabled,"form-data":t.value,name:i,novalidate:t.novalidate,value:t.values[i]},on:{input:function(e){return t.onInput(e,n,i)},focus:function(e){return t.$emit("focus",e,n,i)},invalid:(e,s)=>t.onInvalid(e,s,n,i),submit:function(e){return t.$emit("submit",e,n,i)}}},"component",n,!1)):e("k-box",{attrs:{theme:"negative"}},[e("k-text",{attrs:{size:"small"}},[t._v(" "+t._s(t.$t("error.field.type.missing",{name:i,type:n.type}))+" ")])],1)],1)],1):t._e()]}))],2)],1)}),[],!1,null,null,null,null).exports,Pe={mixins:[ke,ye,$e,Ce],inheritAttrs:!1,props:{autofocus:Boolean,type:String,icon:[String,Boolean],novalidate:{type:Boolean,default:!1},value:{type:[String,Boolean,Number,Object,Array],default:null}}};const Ne=Y({mixins:[Pe],data(){return{isInvalid:this.invalid,listeners:{...this.$listeners,invalid:(t,e)=>{this.isInvalid=t,this.$emit("invalid",t,e)}}}},computed:{inputProps(){return{...this.$props,...this.$attrs}}},watch:{invalid(){this.isInvalid=this.invalid}},methods:{blur(t){(null==t?void 0:t.relatedTarget)&&!1===this.$el.contains(t.relatedTarget)&&this.trigger(null,"blur")},focus(t){this.trigger(t,"focus")},select(t){this.trigger(t,"select")},trigger(t,e){var n,i,s;if("INPUT"===(null==(n=null==t?void 0:t.target)?void 0:n.tagName)&&"function"==typeof(null==(i=null==t?void 0:t.target)?void 0:i[e]))return void t.target[e]();if("function"==typeof(null==(s=this.$refs.input)?void 0:s[e]))return void this.$refs.input[e]();const o=this.$el.querySelector("input, select, textarea");"function"==typeof(null==o?void 0:o[e])&&o[e]()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-input",attrs:{"data-disabled":t.disabled,"data-invalid":!t.novalidate&&t.isInvalid,"data-type":t.type}},[t.$slots.before||t.before?e("span",{staticClass:"k-input-description k-input-before",on:{click:t.focus}},[t._t("before",(function(){return[t._v(t._s(t.before))]}))],2):t._e(),e("span",{staticClass:"k-input-element",on:{click:function(e){return e.stopPropagation(),t.focus.apply(null,arguments)}}},[t._t("default",(function(){return[e("k-"+t.type+"-input",t._g(t._b({ref:"input",tag:"component",attrs:{value:t.value}},"component",t.inputProps,!1),t.listeners))]}))],2),t.$slots.after||t.after?e("span",{staticClass:"k-input-description k-input-after",on:{click:t.focus}},[t._t("after",(function(){return[t._v(t._s(t.after))]}))],2):t._e(),t.$slots.icon||t.icon?e("span",{staticClass:"k-input-icon",on:{click:t.focus}},[t._t("icon",(function(){return[e("k-icon",{attrs:{type:t.icon}})]}))],2):t._e()])}),[],!1,null,null,null,null).exports;const ze=Y({props:{methods:Array},data:()=>({currentForm:null,isLoading:!1,user:{email:"",password:"",remember:!1}}),computed:{canToggle(){return null!==this.codeMode&&!0===this.methods.includes("password")&&(!0===this.methods.includes("password-reset")||!0===this.methods.includes("code"))},codeMode(){return!0===this.methods.includes("password-reset")?"password-reset":!0===this.methods.includes("code")?"code":null},fields(){let t={email:{autofocus:!0,label:this.$t("email"),type:"email",required:!0,link:!1}};return"email-password"===this.form&&(t.password={label:this.$t("password"),type:"password",minLength:8,required:!0,autocomplete:"current-password",counter:!1}),t},form(){return this.currentForm?this.currentForm:"password"===this.methods[0]?"email-password":"email"},isResetForm(){return"password-reset"===this.codeMode&&"email"===this.form},toggleText(){return this.$t("login.toggleText."+this.codeMode+"."+this.formOpposite(this.form))}},methods:{formOpposite:t=>"email-password"===t?"email":"email-password",async login(){this.$emit("error",null),this.isLoading=!0;let t=Object.assign({},this.user);"email"===this.currentForm&&(t.password=null),!0===this.isResetForm&&(t.remember=!1);try{await this.$api.auth.login(t),this.$reload({globals:["$system","$translation"]}),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"})}catch(e){this.$emit("error",e)}finally{this.isLoading=!1}},toggleForm(){this.currentForm=this.formOpposite(this.form),this.$refs.fieldset.focus("email")}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-login-form",on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("div",{staticClass:"k-login-fields"},[!0===t.canToggle?e("button",{staticClass:"k-login-toggler",attrs:{type:"button"},on:{click:t.toggleForm}},[t._v(" "+t._s(t.toggleText)+" ")]):t._e(),e("k-fieldset",{ref:"fieldset",attrs:{novalidate:!0,fields:t.fields,value:t.user},on:{input:function(e){t.user=e}}})],1),e("div",{staticClass:"k-login-buttons"},[!1===t.isResetForm?e("span",{staticClass:"k-login-checkbox"},[e("k-checkbox-input",{attrs:{value:t.user.remember,label:t.$t("login.remember")},on:{input:function(e){t.user.remember=e}}})],1):t._e(),e("k-button",{staticClass:"k-login-button",attrs:{icon:"check",size:"lg",theme:"positive",type:"submit",variant:"filled"}},[t._v(" "+t._s(t.$t("login"+(t.isResetForm?".reset":"")))+" "),t.isLoading?[t._v(" … ")]:t._e()],2)],1)])}),[],!1,null,null,null,null).exports;const Fe=Y({props:{methods:Array,pending:Object},data:()=>({code:"",isLoadingBack:!1,isLoadingLogin:!1}),computed:{mode(){return!0===this.methods.includes("password-reset")?"password-reset":"login"}},methods:{async back(){this.isLoadingBack=!0,this.$go("/logout")},async login(){this.$emit("error",null),this.isLoadingLogin=!0;try{await this.$api.auth.verifyCode(this.code),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"}),"password-reset"===this.mode?this.$go("reset-password"):this.$reload()}catch(t){this.$emit("error",t)}finally{this.isLoadingLogin=!1}}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-login-form k-login-code-form",on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("k-user-info",{attrs:{user:t.pending.email}}),e("k-text-field",{attrs:{autofocus:!0,counter:!1,help:t.$t("login.code.text."+t.pending.challenge),label:t.$t("login.code.label."+t.mode),novalidate:!0,placeholder:t.$t("login.code.placeholder."+t.pending.challenge),required:!0,value:t.code,autocomplete:"one-time-code",icon:"unlock",name:"code"},on:{input:function(e){t.code=e}}}),e("div",{staticClass:"k-login-buttons"},[e("k-button",{staticClass:"k-login-button k-login-back-button",attrs:{icon:"angle-left",size:"lg",variant:"filled"},on:{click:t.back}},[t._v(" "+t._s(t.$t("back"))+" "),t.isLoadingBack?[t._v(" … ")]:t._e()],2),e("k-button",{staticClass:"k-login-button",attrs:{icon:"check",size:"lg",type:"submit",theme:"positive",variant:"filled"}},[t._v(" "+t._s(t.$t("login"+("password-reset"===t.mode?".reset":"")))+" "),t.isLoadingLogin?[t._v(" … ")]:t._e()],2)],1)],1)}),[],!1,null,null,null,null).exports;const Re=Y({props:{accept:{type:String,default:"*"},attributes:{type:Object},max:{type:Number},method:{type:String,default:"POST"},multiple:{type:Boolean,default:!0},url:{type:String}},methods:{open(t){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.open()` instead."),this.$panel.upload.pick(this.params(t))},params(t){return{...this.$props,...t??{},on:{complete:(t,e)=>{this.$emit("success",t,e)}}}},select(t){this.$panel.upload.select(t.target.files)},drop(t,e){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.select()` instead."),this.$panel.upload.open(t,this.params(e))},upload(t,e){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.select()` instead."),this.$panel.upload.select(t,this.params(e)),this.$panel.upload.start()}},render:()=>""},null,null,!1,null,null,null,null).exports;const Ye=Y({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-notification k-login-alert",attrs:{"data-theme":"error"}},[e("p",[t._t("default")],2),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return t.$emit("click")}}})],1)}),[],!1,null,null,null,null).exports;const Ue=Y({props:{fields:Object,index:[Number,String],total:Number,value:Object},mounted(){this.$store.dispatch("content/disable"),this.$events.on("keydown.cmd.s",this.onSubmit),this.$events.on("keydown.esc",this.onDiscard)},destroyed(){this.$events.off("keydown.cmd.s",this.onSubmit),this.$events.off("keydown.esc",this.onDiscard),this.$store.dispatch("content/enable")},methods:{focus(t){this.$refs.form.focus(t)},onDiscard(){this.$emit("discard")},onInput(t){this.$emit("input",t)},onSubmit(){this.$emit("submit")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-structure-form"},[e("div",{staticClass:"k-structure-backdrop",on:{click:t.onDiscard}}),e("section",[e("k-form",{ref:"form",staticClass:"k-structure-form-fields",attrs:{value:t.value,fields:t.fields},on:{input:t.onInput,submit:t.onSubmit}}),e("footer",{staticClass:"k-structure-form-buttons"},[e("k-button",{staticClass:"k-structure-form-cancel-button",attrs:{text:t.$t("cancel"),icon:"cancel",size:"xs",variant:"filled"},on:{click:function(e){return t.$emit("close")}}}),"new"!==t.index?e("k-pagination",{attrs:{dropdown:!1,total:t.total,limit:1,page:t.index+1,details:!0},on:{paginate:function(e){return t.$emit("paginate",e)}}}):t._e(),e("k-button",{staticClass:"k-structure-form-submit-button",attrs:{text:t.$t("new"!==t.index?"confirm":"add"),icon:"check",size:"xs",variant:"filled"},on:{click:t.onSubmit}})],1)],1)])}),[],!1,null,null,null,null).exports,He=function(t){this.command("insert",((e,n)=>{let i=[];return n.split("\n").forEach(((e,n)=>{let s="ol"===t?n+1+".":"-";i.push(s+" "+e)})),i.join("\n")}))};const Ve=Y({layout:["headlines","|","bold","italic","code","|","link","email","file","|","ul","ol"],props:{buttons:{type:[Boolean,Array],default:!0},uploads:[Boolean,Object,Array]},data(){if(!1===this.buttons)return{};const t=this.commands(),e={},n={},i=Array.isArray(this.buttons)?this.buttons:this.$options.layout;for(const o in i){const s=i[o];if("|"!==s){if(t[s]){const i=t[s];e[s]=i,i.shortcut&&(n[i.shortcut]=s)}}else e["divider-"+o]={divider:!0}}const s=window.panel.plugins.textareaButtons??{};!0===this.buttons&&this.$helper.object.length(s)>0&&(e["divider-custom-buttons"]={divider:!0});for(const o in s){const t=s[o];if(!t.label||!t.icon||!t.command&&!t.dropdown)return;e[o]=t,t.shortcut&&(n[t.shortcut]=o)}return{layout:e,shortcuts:n}},methods:{command(t,e){if("function"==typeof t)return t.apply(this);this.$emit("command",t,e)},close(){for(const t in this.$refs){const e=this.$refs[t][0];"function"==typeof(null==e?void 0:e.close)&&e.close()}},fileCommandSetup(){const t={label:this.$t("toolbar.button.file"),icon:"attachment"};return!1===this.uploads?t.command="selectFile":t.dropdown={select:{label:this.$t("toolbar.button.file.select"),icon:"check",command:"selectFile"},upload:{label:this.$t("toolbar.button.file.upload"),icon:"upload",command:"uploadFile"}},t},commands(){return{headlines:{label:this.$t("toolbar.button.headings"),icon:"title",dropdown:{h1:{label:this.$t("toolbar.button.heading.1"),icon:"h1",command:"prepend",args:"#"},h2:{label:this.$t("toolbar.button.heading.2"),icon:"h2",command:"prepend",args:"##"},h3:{label:this.$t("toolbar.button.heading.3"),icon:"h3",command:"prepend",args:"###"}}},bold:{label:this.$t("toolbar.button.bold"),icon:"bold",command:"wrap",args:"**",shortcut:"b"},italic:{label:this.$t("toolbar.button.italic"),icon:"italic",command:"wrap",args:"*",shortcut:"i"},link:{label:this.$t("toolbar.button.link"),icon:"url",shortcut:"k",command:"dialog",args:"link"},email:{label:this.$t("toolbar.button.email"),icon:"email",shortcut:"e",command:"dialog",args:"email"},file:this.fileCommandSetup(),code:{label:this.$t("toolbar.button.code"),icon:"code",command:"wrap",args:"`"},ul:{label:this.$t("toolbar.button.ul"),icon:"list-bullet",command:()=>He.apply(this,["ul"])},ol:{label:this.$t("toolbar.button.ol"),icon:"list-numbers",command:()=>He.apply(this,["ol"])}}},shortcut(t,e){if(this.shortcuts[t]){const n=this.layout[this.shortcuts[t]];if(!n)return!1;e.preventDefault(),this.command(n.command,n.args)}}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-toolbar"},[t._l(t.layout,(function(n,i){return[n.divider?e("div",{key:i+"-divider",staticClass:"k-toolbar-divider"}):n.dropdown?[e("k-button",{key:i+"-dropdown-btn",staticClass:"k-toolbar-button",attrs:{icon:n.icon,title:n.label,tabindex:"-1"},on:{click:function(e){t.$refs[i+"-dropdown"][0].toggle()}}}),e("k-dropdown-content",{key:i+"-dropdown",ref:i+"-dropdown",refInFor:!0},t._l(n.dropdown,(function(n,i){return e("k-dropdown-item",{key:i,attrs:{icon:n.icon},on:{click:function(e){return t.command(n.command,n.args)}}},[t._v(" "+t._s(n.label)+" ")])})),1)]:e("k-button",{key:i+"-button",staticClass:"k-toolbar-button",attrs:{icon:n.icon,title:n.label,tabindex:"-1"},on:{click:function(e){return t.command(n.command,n.args)}}})]}))],2)}),[],!1,null,null,null,null).exports;const Ke=Y({extends:ft,methods:{submit(){const t=this.values.href??"",e=this.values.title??"";return this.$panel.config.kirbytext?(null==e?void 0:e.length)>0?this.$emit("submit",`(email: ${t} text: ${e})`):this.$emit("submit",`(email: ${t})`):(null==e?void 0:e.length)>0?this.$emit("submit",`[${e}](mailto:${t})`):this.$emit("submit",`<${t}>`)}}},null,null,!1,null,null,null,null).exports;const We=Y({extends:Ct,props:{fields:{default:()=>({href:{label:window.panel.$t("link"),type:"link",placeholder:window.panel.$t("url.placeholder"),icon:"url"},title:{label:window.panel.$t("link.text"),type:"text",icon:"title"}})}},methods:{submit(){const t=this.values.href??"",e=this.values.title??"";return this.$panel.config.kirbytext?(null==e?void 0:e.length)>0?this.$emit("submit",`(link: ${t} text: ${e})`):this.$emit("submit",`(link: ${t})`):(null==e?void 0:e.length)>0?this.$emit("submit",`[${e}](${t})`):this.$emit("submit",`<${t}>`)}}},null,null,!1,null,null,null,null).exports;const Je=Y({computed:{placeholder(){return this.field("code",{}).placeholder},languages(){return this.field("language",{options:[]}).options}},methods:{focus(){this.$refs.code.focus()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-code-editor"},[e("k-input",{ref:"code",attrs:{buttons:!1,placeholder:t.placeholder,spellcheck:!1,value:t.content.code,font:"monospace",type:"textarea"},on:{input:function(e){return t.update({code:e})}}}),t.languages.length?e("div",{staticClass:"k-block-type-code-editor-language"},[e("k-input",{ref:"language",attrs:{empty:!1,options:t.languages,value:t.content.language,icon:"code",type:"select"},on:{input:function(e){return t.update({language:e})}}})],1):t._e()],1)}),[],!1,null,null,null,null).exports,Ge=Object.freeze(Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"}));const Xe=Y({},(function(){var t=this;return(0,t._self._c)("k-block-title",{attrs:{content:t.content,fieldset:t.fieldset},nativeOn:{dblclick:function(e){return t.$emit("open")}}})}),[],!1,null,null,null,null).exports,Qe=Object.freeze(Object.defineProperty({__proto__:null,default:Xe},Symbol.toStringTag,{value:"Module"}));const Ze=Y({props:{endpoints:Object,tabs:Object},data(){return{collapsed:this.state(),tab:Object.keys(this.tabs)[0]}},computed:{fields(){var t;return null==(t=this.tabs[this.tab])?void 0:t.fields},values(){return Object.assign({},this.content)}},methods:{open(){this.$emit("open",this.tab)},state(t){const e=`kirby.fieldsBlock.${this.endpoints.field}.${this.id}`;if(void 0===t)return JSON.parse(sessionStorage.getItem(e));sessionStorage.setItem(e,t)},toggle(){this.collapsed=!this.collapsed,this.state(this.collapsed)}}},(function(){var t=this,e=t._self._c;return e("div",{attrs:{"data-collapsed":t.collapsed},on:{dblclick:function(e){!t.fieldset.wysiwyg&&t.$emit("open")}}},[e("header",{staticClass:"k-block-type-fields-header"},[e("k-block-title",{attrs:{content:t.values,fieldset:t.fieldset},nativeOn:{click:function(e){return t.toggle.apply(null,arguments)}}}),t.collapsed?t._e():e("k-drawer-tabs",{attrs:{tab:t.tab,tabs:t.fieldset.tabs},on:{open:function(e){t.tab=e}}})],1),t.collapsed?t._e():e("k-form",{ref:"form",staticClass:"k-block-type-fields-form",attrs:{autofocus:!0,disabled:!t.fieldset.wysiwyg,fields:t.fields,value:t.values},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null,null).exports,tn=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"}));const en=Y({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},crop(){return this.content.crop},ratio(){return this.content.ratio}}},(function(){var t,e=this,n=e._self._c;return n("figure",[n("ul",{on:{dblclick:e.open}},[(null==(t=e.content.images)?void 0:t.length)?e._l(e.content.images,(function(t){return n("li",{key:t.id},[n("k-image-frame",{attrs:{ratio:e.ratio,cover:e.crop,src:t.url,srcset:t.image.srcset,alt:t.alt}})],1)})):e._l(3,(function(t){return n("li",{key:t,staticClass:"k-block-type-gallery-placeholder"},[n("k-image-frame",{attrs:{ratio:e.ratio}})],1)}))],2),e.content.caption?n("figcaption",[n("k-writer",{attrs:{inline:!0,marks:e.captionMarks,value:e.content.caption},on:{input:function(t){return e.$emit("update",{caption:t})}}})],1):e._e()])}),[],!1,null,null,null,null).exports,nn=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"}));const sn=Y({computed:{isSplitable(){return this.content.text.length>0&&!1===this.$refs.input.isCursorAtStart&&!1===this.$refs.input.isCursorAtEnd},keys(){return{Enter:()=>!0===this.$refs.input.isCursorAtEnd?this.$emit("append","text"):this.split(),"Mod-Enter":this.split}},levels(){return this.field("level",{options:[]}).options},textField(){return this.field("text",{marks:!0})}},methods:{focus(){this.$refs.input.focus()},merge(t){this.update({text:t.map((t=>t.content.text)).join(" ")})},split(){var t,e;const n=null==(e=(t=this.$refs.input).getSplitContent)?void 0:e.call(t);n&&this.$emit("split",[{text:n[0]},{level:"h"+Math.min(parseInt(this.content.level.slice(1))+1,6),text:n[1]}])}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-heading-input",attrs:{"data-level":t.content.level}},[e("k-writer",t._b({ref:"input",attrs:{inline:!0,keys:t.keys,value:t.content.text},on:{input:function(e){return t.update({text:e})}}},"k-writer",t.textField,!1)),t.levels.length>1?e("k-input",{ref:"level",staticClass:"k-block-type-heading-level",attrs:{empty:!1,options:t.levels,value:t.content.level,type:"select"},on:{input:function(e){return t.update({level:e})}}}):t._e()],1)}),[],!1,null,null,null,null).exports,on=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"}));const ln=Y({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},crop(){return this.content.crop??!1},src(){var t,e;return"web"===this.content.location?this.content.src:!!(null==(e=null==(t=this.content.image)?void 0:t[0])?void 0:e.url)&&this.content.image[0].url},ratio(){return this.content.ratio??!1}}},(function(){var t=this,e=t._self._c;return e("k-block-figure",{attrs:{caption:t.content.caption,"caption-marks":t.captionMarks,"empty-text":t.$t("field.blocks.image.placeholder")+" …","is-empty":!t.src,"empty-icon":"image"},on:{open:t.open,update:t.update}},[t.src?[t.ratio?e("k-image-frame",{attrs:{ratio:t.ratio,cover:t.crop,alt:t.content.alt,src:t.src}}):e("img",{staticClass:"k-block-type-image-auto",attrs:{alt:t.content.alt,src:t.src}})]:t._e()],2)}),[],!1,null,null,null,null).exports,rn=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"}));const an=Y({},(function(){return this._self._c,this._m(0)}),[function(){var t=this._self._c;return t("div",[t("hr")])}],!1,null,null,null,null).exports,un=Object.freeze(Object.defineProperty({__proto__:null,default:an},Symbol.toStringTag,{value:"Module"}));const cn=Y({computed:{isSplitable(){return this.content.text.length>0&&!1===this.input().isCursorAtStart&&!1===this.input().isCursorAtEnd},keys(){return{"Mod-Enter":this.split}},marks(){return this.field("text",{}).marks}},methods:{focus(){this.$refs.input.focus()},input(){return this.$refs.input.$refs.input.$refs.input},merge(t){this.update({text:t.map((t=>t.content.text)).join("").replaceAll("
    ","")})},split(){var t,e;const n=null==(e=(t=this.input()).getSplitContent)?void 0:e.call(t);n&&this.$emit("split",[{text:n[0].replace(/(
  • <\/p><\/li><\/ul>)$/,"

")},{text:n[1].replace(/^(
  • <\/p><\/li>)/,"

      ")}])}}},(function(){var t=this;return(0,t._self._c)("k-input",{ref:"input",staticClass:"k-block-type-list-input",attrs:{keys:t.keys,marks:t.marks,value:t.content.text,type:"list"},on:{input:function(e){return t.update({text:e})}}})}),[],!1,null,null,null,null).exports,dn=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));const pn=Y({computed:{placeholder(){return this.field("text",{}).placeholder}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this;return(0,t._self._c)("k-input",{ref:"input",staticClass:"k-block-type-markdown-input",attrs:{buttons:!1,placeholder:t.placeholder,spellcheck:!1,value:t.content.text,font:"monospace",type:"textarea"},on:{input:function(e){return t.update({text:e})}}})}),[],!1,null,null,null,null).exports,hn=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"}));const mn=Y({computed:{citationField(){return this.field("citation",{})},textField(){return this.field("text",{})}},methods:{focus(){this.$refs.text.focus()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-quote-editor"},[e("k-writer",{ref:"text",staticClass:"k-block-type-quote-text",attrs:{inline:t.textField.inline??!1,marks:t.textField.marks,placeholder:t.textField.placeholder,value:t.content.text},on:{input:function(e){return t.update({text:e})}}}),e("k-writer",{ref:"citation",staticClass:"k-block-type-quote-citation",attrs:{inline:t.citationField.inline??!0,marks:t.citationField.marks,placeholder:t.citationField.placeholder,value:t.content.citation},on:{input:function(e){return t.update({citation:e})}}})],1)}),[],!1,null,null,null,null).exports,fn=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));const gn=Y({inheritAttrs:!1,computed:{columns(){return this.table.columns??this.fields},fields(){return this.table.fields??{}},rows(){return this.content.rows??[]},table(){let t=null;for(const e of Object.values(this.fieldset.tabs??{}))e.fields.rows&&(t=e.fields.rows);return t??{}}}},(function(){var t=this;return(0,t._self._c)("k-table",{staticClass:"k-block-type-table-preview",attrs:{columns:t.columns,empty:t.$t("field.structure.empty"),rows:t.rows},nativeOn:{dblclick:function(e){return t.open.apply(null,arguments)}}})}),[],!1,null,null,null,null).exports,kn=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"}));const bn=Y({computed:{component(){const t="k-"+this.textField.type+"-input";return this.$helper.isComponent(t)?t:"k-writer-input"},isSplitable(){return this.content.text.length>0&&!1===this.input().isCursorAtStart&&!1===this.input().isCursorAtEnd},keys(){const t={"Mod-Enter":this.split};return!0===this.textField.inline&&(t.Enter=this.split),t},textField(){return this.field("text",{})}},methods:{focus(){this.$refs.input.focus()},input(){return this.$refs.input.$refs.input},merge(t){this.update({text:t.map((t=>t.content.text)).join(this.textField.inline?" ":"")})},split(){var t,e;const n=null==(e=(t=this.input()).getSplitContent)?void 0:e.call(t);n&&("writer"===this.textField.type&&(n[0]=n[0].replace(/(

      <\/p>)$/,""),n[1]=n[1].replace(/^(

      <\/p>)/,"")),this.$emit("split",n.map((t=>({text:t})))))}}},(function(){var t=this;return(0,t._self._c)(t.component,t._b({ref:"input",tag:"component",staticClass:"k-block-type-text-input",attrs:{keys:t.keys,value:t.content.text},on:{input:function(e){return t.update({text:e})}}},"component",t.textField,!1))}),[],!1,null,null,null,null).exports,vn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));const yn=Y({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},video(){return this.$helper.embed.video(this.content.url??"",!0)}}},(function(){var t=this,e=t._self._c;return e("k-block-figure",{attrs:{caption:t.content.caption,"caption-marks":t.captionMarks,"empty-text":t.$t("field.blocks.video.placeholder")+" …","is-empty":!t.video,"empty-icon":"video"},on:{open:t.open,update:t.update}},[e("k-frame",{attrs:{ratio:"16/9"}},[t.video?e("iframe",{attrs:{src:t.video,referrerpolicy:"strict-origin-when-cross-origin"}}):t._e()])],1)}),[],!1,null,null,null,null).exports,$n=Object.freeze(Object.defineProperty({__proto__:null,default:yn},Symbol.toStringTag,{value:"Module"}));const wn=Y({inheritAttrs:!1,props:{attrs:{default:()=>({}),type:[Array,Object]},content:{default:()=>({}),type:[Array,Object]},endpoints:{default:()=>({}),type:[Array,Object]},fieldset:{default:()=>({}),type:Object},id:String,isBatched:Boolean,isFull:Boolean,isHidden:Boolean,isLastSelected:Boolean,isMergable:Boolean,isSelected:Boolean,name:String,next:Object,prev:Object,type:String},emits:["append","chooseToAppend","chooseToConvert","chooseToPrepend","close","copy","duplicate","focus","hide","merge","open","paste","prepend","remove","selectDown","selectUp","show","sortDown","sortUp","split","submit","update"],computed:{className(){let t=["k-block-type-"+this.type];return this.fieldset.preview!==this.type&&t.push("k-block-type-"+this.fieldset.preview),!1===this.wysiwyg&&t.push("k-block-type-default"),t},containerType(){const t=this.fieldset.preview;return!1!==t&&(t&&this.$helper.isComponent("k-block-type-"+t)?t:!!this.$helper.isComponent("k-block-type-"+this.type)&&this.type)},customComponent(){return this.wysiwyg?this.wysiwygComponent:"k-block-type-default"},isEditable(){return!1!==this.fieldset.editable},listeners(){return{append:t=>this.$emit("append",t),chooseToAppend:t=>this.$emit("chooseToAppend",t),chooseToConvert:t=>this.$emit("chooseToConvert",t),chooseToPrepend:t=>this.$emit("chooseToPrepend",t),close:()=>this.$emit("close"),copy:()=>this.$emit("copy"),duplicate:()=>this.$emit("duplicate"),focus:()=>this.$emit("focus"),hide:()=>this.$emit("hide"),merge:()=>this.$emit("merge"),open:t=>this.open(t),paste:()=>this.$emit("paste"),prepend:t=>this.$emit("prepend",t),remove:()=>this.remove(),removeSelected:()=>this.$emit("removeSelected"),show:()=>this.$emit("show"),sortDown:()=>this.$emit("sortDown"),sortUp:()=>this.$emit("sortUp"),split:t=>this.$emit("split",t),update:t=>this.$emit("update",t)}},tabs(){const t=this.fieldset.tabs??{};for(const[e,n]of Object.entries(t))for(const[i]of Object.entries(n.fields??{}))t[e].fields[i].section=this.name,t[e].fields[i].endpoints={field:this.endpoints.field+"/fieldsets/"+this.type+"/fields/"+i,section:this.endpoints.section,model:this.endpoints.model};return t},wysiwyg(){return!1!==this.wysiwygComponent},wysiwygComponent(){return!!this.containerType&&"k-block-type-"+this.containerType}},methods:{backspace(t){if(t.target.matches("[contenteditable], input, textarea"))return!1;t.preventDefault(),this.remove()},close(){this.$panel.drawer.close(this.id)},focus(){var t,e;"function"==typeof(null==(t=this.$refs.editor)?void 0:t.focus)?this.$refs.editor.focus():null==(e=this.$refs.container)||e.focus()},goTo(t){var e;t&&(null==(e=t.$refs.container)||e.focus(),t.open(null,!0))},isSplitable(){var t;return!0!==this.isFull&&(!!this.$refs.editor&&((this.$refs.editor.isSplitable??!0)&&"function"==typeof(null==(t=this.$refs.editor)?void 0:t.split)))},onClose(){this.$emit("close"),this.focus()},onFocusIn(t){var e,n;(null==(n=null==(e=this.$refs.options)?void 0:e.$el)?void 0:n.contains(t.target))||this.$emit("focus",t)},onInput(t){this.$emit("update",t)},open(t,e=!1){this.isEditable&&!this.isBatched&&(this.$panel.drawer.open({component:"k-block-drawer",id:this.id,tab:t,on:{close:this.onClose,input:this.onInput,next:()=>this.goTo(this.next),prev:()=>this.goTo(this.prev),remove:this.remove,show:this.show,submit:this.submit},props:{hidden:this.isHidden,icon:this.fieldset.icon??"box",next:this.next,prev:this.prev,tabs:this.tabs,title:this.fieldset.name,value:this.content},replace:e}),this.$emit("open"))},remove(){if(this.isBatched)return this.$emit("removeSelected");this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm")},on:{submit:()=>{this.$panel.dialog.close(),this.close(),this.$emit("remove",this.id)}}})},show(){this.$emit("show")},submit(){this.close(),this.$emit("submit")}}},(function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"k-block-container",class:["k-block-container-fieldset-"+t.type,t.containerType?"k-block-container-type-"+t.containerType:""],attrs:{"data-batched":t.isBatched,"data-disabled":t.fieldset.disabled,"data-hidden":t.isHidden,"data-id":t.id,"data-last-selected":t.isLastSelected,"data-selected":t.isSelected,"data-translate":t.fieldset.translate,tabindex:"0"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"j",void 0,e.key,void 0)?null:e.ctrlKey?(e.preventDefault(),e.stopPropagation(),t.$emit("merge")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.ctrlKey&&e.altKey?(e.preventDefault(),e.stopPropagation(),t.$emit("selectDown")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.ctrlKey&&e.altKey?(e.preventDefault(),e.stopPropagation(),t.$emit("selectUp")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.ctrlKey&&e.shiftKey?(e.preventDefault(),e.stopPropagation(),t.$emit("sortDown")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.ctrlKey&&e.shiftKey?(e.preventDefault(),e.stopPropagation(),t.$emit("sortUp")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:e.ctrlKey?(e.stopPropagation(),t.backspace.apply(null,arguments)):null}],focus:function(e){return e.stopPropagation(),t.$emit("focus")},focusin:function(e){return e.stopPropagation(),t.onFocusIn.apply(null,arguments)}}},[e("div",{staticClass:"k-block",class:t.className},[e(t.customComponent,t._g(t._b({ref:"editor",tag:"component",attrs:{tabs:t.tabs}},"component",t.$props,!1),t.listeners))],1),e("k-block-options",t._g({ref:"options",attrs:{"is-batched":t.isBatched,"is-editable":t.isEditable,"is-full":t.isFull,"is-hidden":t.isHidden,"is-mergable":t.isMergable,"is-splitable":t.isSplitable()}},{...t.listeners,split:()=>t.$refs.editor.split(),open:()=>{"function"==typeof t.$refs.editor.open?t.$refs.editor.open():t.open()}}))],1)}),[],!1,null,null,null,null).exports;const xn=Y({inheritAttrs:!1,props:{autofocus:Boolean,empty:String,endpoints:Object,fieldsets:Object,fieldsetGroups:Object,group:String,max:{type:Number,default:null},value:{type:Array,default:()=>[]}},data(){return{isEditing:!1,isMultiSelectKey:!1,isPasteable:!1,blocks:this.value??[],selected:[]}},computed:{draggableOptions(){return{id:this._uid,handle:".k-sort-handle",list:this.blocks,move:this.move,delay:10,data:{fieldsets:this.fieldsets,isFull:this.isFull},options:{group:this.group}}},hasFieldsets(){return this.$helper.object.length(this.fieldsets)>0},isEmpty(){return 0===this.blocks.length},isFull(){return null!==this.max&&this.blocks.length>=this.max},isMergable(){if(this.selected.length<2)return!1;const t=this.selected.map((t=>this.find(t)));return!(new Set(t.map((t=>t.type))).size>1)&&"function"==typeof this.ref(t[0]).$refs.editor.merge}},watch:{value(){this.blocks=this.value}},created(){this.$events.on("blur",this.onBlur),this.$events.on("copy",this.onCopy),this.$events.on("focus",this.onOutsideFocus),this.$events.on("keydown",this.onKey),this.$events.on("keyup",this.onKey),this.$events.on("paste",this.onPaste)},destroyed(){this.$events.off("blur",this.onBlur),this.$events.off("copy",this.onCopy),this.$events.off("focus",this.onOutsideFocus),this.$events.off("keydown",this.onKey),this.$events.off("keyup",this.onKey),this.$events.off("paste",this.onPaste)},mounted(){!0===this.$props.autofocus&&setTimeout(this.focus,100)},methods:{async add(t="text",e){const n=await this.$api.get(this.endpoints.field+"/fieldsets/"+t);this.blocks.splice(e,0,n),this.save(),await this.$nextTick(),this.focusOrOpen(n)},choose(t){if(1===this.$helper.object.length(this.fieldsets))return this.add(Object.values(this.fieldsets)[0].type,t);this.$panel.dialog.open({component:"k-block-selector",props:{fieldsetGroups:this.fieldsetGroups,fieldsets:this.fieldsets},on:{submit:e=>{this.add(e,t),this.$panel.dialog.close()},paste:e=>{this.paste(e,t)}}})},chooseToConvert(t){this.$panel.dialog.open({component:"k-block-selector",props:{disabledFieldsets:[t.type],fieldsetGroups:this.fieldsetGroups,fieldsets:this.fieldsets,headline:this.$t("field.blocks.changeType")},on:{submit:e=>{this.convert(e,t),this.$panel.dialog.close()},paste:this.paste}})},click(t){this.$emit("click",t)},copy(t){if(0===this.blocks.length)return!1;if(0===this.selected.length)return!1;let e=[];for(const n of this.blocks)this.selected.includes(n.id)&&e.push(n);if(0===e.length)return!1;this.$helper.clipboard.write(e,t),this.selected=e.map((t=>t.id)),this.$panel.notification.success({message:this.$t("copy.success",{count:e.length}),icon:"template"})},copyAll(){this.selectAll(),this.copy(),this.deselectAll()},async convert(t,e){var n;const i=this.findIndex(e.id);if(-1===i)return!1;const s=t=>{let e={};for(const n of Object.values((null==t?void 0:t.tabs)??{}))e={...e,...n.fields};return e},o=this.blocks[i],l=await this.$api.get(this.endpoints.field+"/fieldsets/"+t),r=this.fieldsets[o.type],a=this.fieldsets[t];if(!a)return!1;let u=l.content;const c=s(a),d=s(r);for(const[p,h]of Object.entries(c)){const t=d[p];(null==t?void 0:t.type)===h.type&&(null==(n=null==o?void 0:o.content)?void 0:n[p])&&(u[p]=o.content[p])}this.blocks[i]={...l,id:o.id,content:u},this.save()},deselect(t){const e=this.selected.findIndex((e=>e===t.id));-1!==e&&this.selected.splice(e,1)},deselectAll(){this.selected=[]},async duplicate(t,e){const n={...this.$helper.clone(t),id:this.$helper.uuid()};this.blocks.splice(e+1,0,n),this.save()},fieldset(t){return this.fieldsets[t.type]??{icon:"box",name:t.type,tabs:{content:{fields:{}}},type:t.type}},find(t){return this.blocks.find((e=>e.id===t))},findIndex(t){return this.blocks.findIndex((e=>e.id===t))},focus(t){const e=this.ref(t);this.selected=[(null==t?void 0:t.id)??this.blocks[0]],null==e||e.focus(),null==e||e.$el.scrollIntoView({block:"nearest"})},focusOrOpen(t){this.fieldsets[t.type].wysiwyg?this.focus(t):this.open(t)},hide(t){Vue.set(t,"isHidden",!0),this.save()},isInputEvent(){const t=document.querySelector(":focus");return null==t?void 0:t.matches("input, textarea, [contenteditable], .k-writer")},isLastSelected(t){const[e]=this.selected.slice(-1);return e&&t.id===e},isOnlyInstance:()=>1===document.querySelectorAll(".k-blocks").length,isSelected(t){return this.selected.includes(t.id)},async merge(){if(this.isMergable){const t=this.selected.map((t=>this.find(t)));this.ref(t[0]).$refs.editor.merge(t);for(const e of t.slice(1))this.remove(e);await this.$nextTick(),this.focus(t[0])}},move(t){if(t.from!==t.to){const e=t.draggedContext.element,n=t.relatedContext.component.componentData||t.relatedContext.component.$parent.componentData;if(!1===Object.keys(n.fieldsets).includes(e.type))return!1;if(!0===n.isFull)return!1}return!0},onBlur(){0===this.selected.length&&(this.isMultiSelectKey=!1)},onClickBlock(t,e){e&&this.isMultiSelectKey&&this.onKey(e),this.isMultiSelectKey&&(this.isSelected(t)?this.deselect(t):this.select(t))},onCopy(t){return!1!==this.$el.contains(t.target)&&!0!==this.isEditing&&!0!==this.$panel.dialog.isOpen&&!0!==this.isInputEvent(t)&&this.copy(t)},onFocus(t){!1===this.isMultiSelectKey&&(this.selected=[t.id])},async onKey(t){if(this.isMultiSelectKey=t.metaKey??t.ctrlKey??t.altKey,"Escape"===t.code&&this.selected.length>1){const t=this.find(this.selected[0]);await this.$nextTick(),this.focus(t)}},onOutsideFocus(t){if("function"==typeof t.target.closest&&t.target.closest(".k-dialog"))return;const e=document.querySelector(".k-overlay:last-of-type");if(!1!==this.$el.contains(t.target)||e&&!1!==e.contains(t.target)){if(e){const e=this.$el.closest(".k-layout-column");if(!1===(null==e?void 0:e.contains(t.target)))return void(this.selected=[])}}else this.selected=[]},onPaste(t){return!0!==this.isInputEvent(t)&&(!0!==this.isEditing&&!0!==this.$panel.dialog.isOpen&&((0!==this.selected.length||!1!==this.$el.contains(t.target))&&this.paste(t)))},open(t){var e;null==(e=this.$refs["block-"+t.id])||e[0].open()},async paste(t,e){const n=this.$helper.clipboard.read(t);let i=await this.$api.post(this.endpoints.field+"/paste",{html:n});if(void 0===e){let t=this.selected[this.selected.length-1];-1===(e=this.findIndex(t))&&(e=this.blocks.length),e++}if(this.max){const t=this.max-this.blocks.length;i=i.slice(0,t)}this.blocks.splice(e,0,...i),this.save(),this.$panel.notification.success({message:this.$t("paste.success",{count:i.length}),icon:"download"})},pasteboard(){this.$panel.dialog.open({component:"k-block-pasteboard",on:{paste:this.paste}})},prevNext(t){var e;if(this.blocks[t])return null==(e=this.$refs["block-"+this.blocks[t].id])?void 0:e[0]},ref(t){var e,n;return null==(n=this.$refs["block-"+((null==t?void 0:t.id)??(null==(e=this.blocks[0])?void 0:e.id))])?void 0:n[0]},remove(t){const e=this.findIndex(t.id);-1!==e&&(this.deselect(t),this.$delete(this.blocks,e),this.save())},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm.all"),submitButton:this.$t("delete.all")},on:{submit:()=>{this.selected=[],this.blocks=[],this.save(),this.$panel.dialog.close()}}})},removeSelected(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm.selected")},on:{submit:()=>{for(const t of this.selected){const e=this.findIndex(t);-1!==e&&this.$delete(this.blocks,e)}this.deselectAll(),this.save(),this.$panel.dialog.close()}}})},save(){this.$emit("input",this.blocks)},select(t){!1===this.isSelected(t)&&(this.selected.push(t.id),this.selected.sort(((t,e)=>this.findIndex(t)-this.findIndex(e))))},selectDown(){const t=this.selected[this.selected.length-1],e=this.findIndex(t)+1;e=0&&this.select(this.blocks[e])},selectAll(){this.selected=Object.values(this.blocks).map((t=>t.id))},show(t){Vue.set(t,"isHidden",!1),this.save()},async sort(t,e,n){if(n<0)return;let i=this.$helper.clone(this.blocks);i.splice(e,1),i.splice(n,0,t),this.blocks=i,this.save(),await this.$nextTick(),this.focus(t)},async split(t,e,n){const i=this.$helper.clone(t);i.content={...i.content,...n[0]};const s=await this.$api.get(this.endpoints.field+"/fieldsets/"+t.type);s.content={...s.content,...i.content,...n[1]},this.blocks.splice(e,1,i,s),this.save(),await this.$nextTick(),this.focus(s)},update(t,e){const n=this.findIndex(t.id);if(-1!==n)for(const i in e)Vue.set(this.blocks[n].content,i,e[i]);this.save()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-blocks",attrs:{"data-empty":0===t.blocks.length,"data-multi-select-key":t.isMultiSelectKey}},[t.hasFieldsets?e("k-draggable",t._b({staticClass:"k-blocks-list",on:{sort:t.save},scopedSlots:t._u([{key:"footer",fn:function(){return[e("k-empty",{staticClass:"k-blocks-empty",attrs:{icon:"box"},on:{click:function(e){return t.choose(t.blocks.length)}}},[t._v(" "+t._s(t.empty??t.$t("field.blocks.empty"))+" ")])]},proxy:!0}],null,!1,529262840)},"k-draggable",t.draggableOptions,!1),t._l(t.blocks,(function(n,i){return e("k-block",t._b({key:n.id,ref:"block-"+n.id,refInFor:!0,attrs:{endpoints:t.endpoints,fieldset:t.fieldset(n),"is-batched":t.isSelected(n)&&t.selected.length>1,"is-last-selected":t.isLastSelected(n),"is-full":t.isFull,"is-hidden":!0===n.isHidden,"is-mergable":t.isMergable,"is-selected":t.isSelected(n),next:t.prevNext(i+1),prev:t.prevNext(i-1)},on:{append:function(e){return t.add(e,i+1)},chooseToAppend:function(e){return t.choose(i+1)},chooseToConvert:function(e){return t.chooseToConvert(n)},chooseToPrepend:function(e){return t.choose(i)},close:function(e){t.isEditing=!1},copy:function(e){return t.copy()},duplicate:function(e){return t.duplicate(n,i)},focus:function(e){return t.onFocus(n)},hide:function(e){return t.hide(n)},merge:function(e){return t.merge()},open:function(e){t.isEditing=!0},paste:function(e){return t.pasteboard()},prepend:function(e){return t.add(e,i)},remove:function(e){return t.remove(n)},removeSelected:t.removeSelected,show:function(e){return t.show(n)},selectDown:t.selectDown,selectUp:t.selectUp,sortDown:function(e){return t.sort(n,i,i+1)},sortUp:function(e){return t.sort(n,i,i-1)},split:function(e){return t.split(n,i,e)},update:function(e){return t.update(n,e)}},nativeOn:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.onClickBlock(n,e)}}},"k-block",n,!1))})),1):e("k-empty",{attrs:{icon:"box"}},[t._v(" "+t._s(t.$t("field.blocks.fieldsets.empty"))+" ")])],1)}),[],!1,null,null,null,null).exports;const _n=Y({inheritAttrs:!1,props:{caption:String,captionMarks:{default:!0,type:[Boolean,Array]},isEmpty:Boolean,emptyIcon:String,emptyText:String}},(function(){var t=this,e=t._self._c;return e("figure",{staticClass:"k-block-figure"},[t.isEmpty?e("k-button",{staticClass:"k-block-figure-empty",attrs:{icon:t.emptyIcon,text:t.emptyText},on:{click:function(e){return t.$emit("open")}}}):e("span",{staticClass:"k-block-figure-container",on:{dblclick:function(e){return t.$emit("open")}}},[t._t("default")],2),t.caption?e("figcaption",[e("k-writer",{attrs:{inline:!0,marks:t.captionMarks,value:t.caption},on:{input:function(e){return t.$emit("update",{caption:e})}}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const Cn=Y({props:{isBatched:Boolean,isEditable:Boolean,isFull:Boolean,isHidden:Boolean,isMergable:Boolean,isSplitable:Boolean},methods:{open(){this.$refs.options.open()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-options"},[t.isBatched?[e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("copy"),icon:"template"},on:{click:function(e){return t.$emit("copy")}}}),t.isMergable?e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("merge"),icon:"merge"},on:{click:function(e){return t.$emit("merge")}}}):t._e(),e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("remove"),icon:"trash"},on:{click:function(e){return t.$emit("removeSelected")}}})]:[t.isEditable?e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("edit"),icon:"edit"},on:{click:function(e){return t.$emit("open")}}}):t._e(),e("k-button",{staticClass:"k-block-options-button",attrs:{disabled:t.isFull,title:t.$t("insert.after"),icon:"add"},on:{click:function(e){return t.$emit("chooseToAppend")}}}),e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("delete"),icon:"trash"},on:{click:function(e){return t.$emit("remove")}}}),e("k-button",{staticClass:"k-block-options-button",attrs:{title:t.$t("more"),icon:"dots"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-button",{staticClass:"k-block-options-button k-sort-handle",attrs:{title:t.$t("sort.drag"),icon:"sort"},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.$emit("sortUp"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.$emit("sortDown"))}]}}),e("k-dropdown-content",{ref:"options",attrs:{"align-x":"end"}},[e("k-dropdown-item",{attrs:{disabled:t.isFull,icon:"angle-up"},on:{click:function(e){return t.$emit("chooseToPrepend")}}},[t._v(" "+t._s(t.$t("insert.before"))+" ")]),e("k-dropdown-item",{attrs:{disabled:t.isFull,icon:"angle-down"},on:{click:function(e){return t.$emit("chooseToAppend")}}},[t._v(" "+t._s(t.$t("insert.after"))+" ")]),e("hr"),t.isEditable?e("k-dropdown-item",{attrs:{icon:"edit"},on:{click:function(e){return t.$emit("open")}}},[t._v(" "+t._s(t.$t("edit"))+" ")]):t._e(),e("k-dropdown-item",{attrs:{icon:"refresh"},on:{click:function(e){return t.$emit("chooseToConvert")}}},[t._v(" "+t._s(t.$t("field.blocks.changeType"))+" ")]),t.isSplitable?e("k-dropdown-item",{attrs:{icon:"split"},on:{click:function(e){return t.$emit("split")}}},[t._v(" "+t._s(t.$t("split"))+" ")]):t._e(),e("hr"),e("k-dropdown-item",{attrs:{icon:"template"},on:{click:function(e){return t.$emit("copy")}}},[t._v(" "+t._s(t.$t("copy"))+" ")]),e("k-dropdown-item",{attrs:{disabled:t.isFull,icon:"download"},on:{click:function(e){return t.$emit("paste")}}},[t._v(" "+t._s(t.$t("paste.after"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{icon:t.isHidden?"preview":"hidden"},on:{click:function(e){return t.$emit(t.isHidden?"show":"hide")}}},[t._v(" "+t._s(!0===t.isHidden?t.$t("show"):t.$t("hide"))+" ")]),e("k-dropdown-item",{attrs:{disabled:t.isFull,icon:"copy"},on:{click:function(e){return t.$emit("duplicate")}}},[t._v(" "+t._s(t.$t("duplicate"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{icon:"trash"},on:{click:function(e){return t.$emit("remove")}}},[t._v(" "+t._s(t.$t("delete"))+" ")])],1)]],2)}),[],!1,null,null,null,null).exports;const Sn=Y({mixins:[pt],inheritAttrs:!1,props:{cancelButton:{default:!1},size:{default:"large"},submitButton:{default:!1}},computed:{shortcut(){return this.$helper.keyboard.metaKey()+"+v"}},methods:{paste(t){this.$emit("close"),this.$emit("paste",t)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",staticClass:"k-block-importer",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[e("label",{attrs:{for:"pasteboard"},domProps:{innerHTML:t._s(t.$t("field.blocks.fieldsets.paste",{shortcut:t.shortcut}))}}),e("textarea",{attrs:{id:"pasteboard"},on:{paste:function(e){return e.preventDefault(),t.paste.apply(null,arguments)}}})])}),[],!1,null,null,null,null).exports;const On=Y({mixins:[pt],inheritAttrs:!1,props:{cancelButton:{default:!1},disabledFieldsets:{default:()=>[],type:Array},fieldsets:{type:Object},fieldsetGroups:{type:Object},headline:{type:String},size:{default:"medium"},submitButton:{default:!1},value:{default:null,type:String}},data:()=>({selected:null}),computed:{groups(){const t={};let e=0;const n=this.fieldsetGroups??{blocks:{label:this.$t("field.blocks.fieldsets.label"),sets:Object.keys(this.fieldsets)}};for(const i in n){let s=n[i];if(s.open=!1!==s.open,s.fieldsets=s.sets.filter((t=>this.fieldsets[t])).map((t=>(e++,{...this.fieldsets[t],index:e}))),0===s.fieldsets.length)return;t[i]=s}return t},shortcut(){return this.$helper.keyboard.metaKey()+"+v"}},created(){this.$events.on("paste",this.paste)},destroyed(){this.$events.off("paste",this.paste)},methods:{paste(t){this.$emit("paste",t),this.close()}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-block-selector",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[t.headline?e("k-headline",[t._v(" "+t._s(t.headline)+" ")]):t._e(),t._l(t.groups,(function(n,i){return e("details",{key:i,attrs:{open:n.open}},[e("summary",[t._v(t._s(n.label))]),e("k-navigate",{staticClass:"k-block-types"},t._l(n.fieldsets,(function(n){return e("k-button",{key:n.name,attrs:{disabled:t.disabledFieldsets.includes(n.type),icon:n.icon??"box",text:n.name,size:"lg"},on:{click:function(e){return t.$emit("submit",n.type)}},nativeOn:{focus:function(e){return t.$emit("input",n.type)}}})})),1)],1)})),e("p",{staticClass:"k-clipboard-hint",domProps:{innerHTML:t._s(t.$t("field.blocks.fieldsets.paste",{shortcut:t.shortcut}))}})],2)}),[],!1,null,null,null,null).exports;const An=Y({inheritAttrs:!1,props:{fieldset:{default:()=>({}),type:Object},content:{default:()=>({}),type:Object}},computed:{icon(){return this.fieldset.icon??"box"},label(){if(!this.fieldset.label||0===this.fieldset.label.length)return!1;if(this.fieldset.label===this.fieldset.name)return!1;let t=this.$helper.string.template(this.fieldset.label,this.content);return"…"!==t&&(t=this.$helper.string.stripHTML(t),this.$helper.string.unescapeHTML(t))},name(){return this.fieldset.name}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-title"},[e("k-icon",{staticClass:"k-block-icon",attrs:{type:t.icon}}),t.name?e("span",{staticClass:"k-block-name"},[t._v(" "+t._s(t.name)+" ")]):t._e(),t.label?e("span",{staticClass:"k-block-label"},[t._v(" "+t._s(t.label)+" ")]):t._e()],1)}),[],!1,null,null,null,null).exports;const Mn=Y({inheritAttrs:!1,props:{content:[Object,Array],fieldset:Object,id:String},methods:{field(t,e=null){let n=null;for(const i of Object.values(this.fieldset.tabs??{}))i.fields[t]&&(n=i.fields[t]);return n??e},open(){this.$emit("open")},update(t){this.$emit("update",{...this.content,...t})}}},null,null,!1,null,null,null,null).exports,jn={install(t){t.component("k-block",wn),t.component("k-blocks",xn),t.component("k-block-figure",_n),t.component("k-block-options",Cn),t.component("k-block-pasteboard",Sn),t.component("k-block-selector",On),t.component("k-block-title",An),t.component("k-block-type",Mn);const e=Object.assign({"./Types/Code.vue":Ge,"./Types/Default.vue":Qe,"./Types/Fields.vue":tn,"./Types/Gallery.vue":nn,"./Types/Heading.vue":on,"./Types/Image.vue":rn,"./Types/Line.vue":un,"./Types/List.vue":dn,"./Types/Markdown.vue":hn,"./Types/Quote.vue":fn,"./Types/Table.vue":kn,"./Types/Text.vue":vn,"./Types/Video.vue":$n});for(const n in e){const i=n.match(/\/([a-zA-Z]*)\.vue/)[1].toLowerCase();let s=e[n].default;s.extends=Mn,t.component("k-block-type-"+i,s)}}};const In=Y({mixins:[Le],inheritAttrs:!1,props:{autofocus:Boolean,empty:String,fieldsets:Object,fieldsetGroups:Object,group:String,max:{type:Number,default:null},value:{type:Array,default:()=>[]}},data:()=>({opened:[]}),computed:{hasFieldsets(){return this.$helper.object.length(this.fieldsets)>0},isEmpty(){return 0===this.value.length},isFull(){return null!==this.max&&this.value.length>=this.max}},methods:{focus(){this.$refs.blocks.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-blocks-field",scopedSlots:t._u([t.hasFieldsets?{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,disabled:t.isFull,responsive:!0,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.blocks.choose(t.value.length)}}}),e("k-button",{attrs:{icon:"dots",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{"align-x":"end"}},[e("k-dropdown-item",{attrs:{disabled:t.isEmpty,icon:"template"},on:{click:function(e){return t.$refs.blocks.copyAll()}}},[t._v(" "+t._s(t.$t("copy.all"))+" ")]),e("k-dropdown-item",{attrs:{disabled:t.isFull,icon:"download"},on:{click:function(e){return t.$refs.blocks.pasteboard()}}},[t._v(" "+t._s(t.$t("paste"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{disabled:t.isEmpty,icon:"trash"},on:{click:function(e){return t.$refs.blocks.removeAll()}}},[t._v(" "+t._s(t.$t("delete.all"))+" ")])],1)],1)]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[e("k-blocks",t._g({ref:"blocks",attrs:{autofocus:t.autofocus,compact:!1,empty:t.empty,endpoints:t.endpoints,fieldsets:t.fieldsets,"fieldset-groups":t.fieldsetGroups,group:t.group,max:t.max,value:t.value},on:{close:function(e){t.opened=e},open:function(e){t.opened=e}}},t.$listeners)),t.isEmpty||t.isFull||!t.hasFieldsets?t._e():e("footer",{staticClass:"k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{icon:"add",size:"xs",variant:"filled",title:t.$t("add")},on:{click:function(e){return t.$refs.blocks.choose(t.value.length)}}})],1)],1)}),[],!1,null,null,null,null).exports,Tn={mixins:[ve,$e,_e,Me,Ee]},En={mixins:[Tn],inheritAttrs:!1,emits:["input"],methods:{focus(){this.$el.focus()}}},Dn={mixins:[Tn,je],props:{columns:{default:1,type:Number},max:Number,min:Number,theme:String,value:{type:Array,default:()=>[]}}};const Ln=Y({mixins:[En,Dn],data:()=>({selected:[]}),computed:{choices(){return this.options.map(((t,e)=>({autofocus:this.autofocus&&0===e,checked:this.selected.includes(t.value),disabled:this.disabled,info:t.info,label:t.text,name:this.name??this.id,type:"checkbox",value:t.value})))}},watch:{value:{handler(t){this.selected=Array.isArray(t)?t:[],this.validate()},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},input(t,e){if(!0===e)this.selected.push(t);else{const e=this.selected.indexOf(t);-1!==e&&this.selected.splice(e,1)}this.$emit("input",this.selected)},select(){this.focus()},validate(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{selected:{required:!this.required||t.required,min:!this.min||t.minLength(this.min),max:!this.max||t.maxLength(this.max)}}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-checkboxes-input k-grid",style:"--columns:"+t.columns,attrs:{"data-variant":"choices"}},t._l(t.choices,(function(n,i){return e("li",{key:i},[e("k-choice-input",t._b({on:{input:function(e){return t.input(n.value,e)}}},"k-choice-input",n,!1))],1)})),0)}),[],!1,null,null,null,null).exports,Bn={props:{counter:{type:Boolean,default:!0}},computed:{counterOptions(){const t=this.counterValue??this.value;if(null===t||this.disabled||!1===this.counter)return!1;let e=0;return t&&(e=Array.isArray(t)?t.length:String(t).length),{count:e,min:this.min??this.minlength,max:this.max??this.maxlength}}}};const qn=Y({mixins:[Le,Pe,Dn,Bn],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-checkboxes-field",attrs:{counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-checkboxes-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field"}},"k-checkboxes-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Pn={mixins:[Tn,Te],props:{alpha:{type:Boolean,default:!0},format:{type:String,default:"hex",validator:t=>["hex","rgb","hsl"].includes(t)},value:String}};const Nn=Y({mixins:[En,Pn],watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.onBlur(),this.$props.autofocus&&this.focus()},methods:{convert(t){try{return this.$library.colors.toString(t,this.format,this.alpha)}catch(e){return t}},onBlur(){const t=this.convert(this.value);this.onInput(t)},onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onPaste(t){t instanceof ClipboardEvent&&(t=this.$helper.clipboard.read(t,!0));const e=this.convert(t);this.onInput(e)},onSave(){this.onBlur(),this.$emit("submit")},select(){this.$refs.input.select()}},validations(){return{value:{color:t=>!t||null!==this.$library.colors.parse(t),required:!this.required||t.required}}}},(function(){var t=this;return(0,t._self._c)("input",t._b({ref:"input",staticClass:"k-text-input k-color-input",attrs:{autocomplete:"off",spellcheck:"false",type:"text"},on:{blur:t.onBlur,input:function(e){return t.onInput(e.target.value)},paste:t.onPaste,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.metaKey?(e.stopPropagation(),e.preventDefault(),t.onSave.apply(null,arguments)):null}}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,name:t.name,placeholder:t.placeholder,required:t.required,value:t.value},!1))}),[],!1,null,null,null,null).exports;const zn=Y({mixins:[Le,Pe,Pn],inheritAttrs:!1,props:{icon:{type:String,default:"pipette"},mode:{type:String,default:"picker",validator:t=>["picker","input","options"].includes(t)},options:{type:Array,default:()=>[]}},data:()=>({isInvalid:!1}),computed:{convertedOptions(){return this.options.map((t=>({...t,value:this.convert(t.value)})))},currentOption(){return this.convertedOptions.find((t=>t.value===this.value))}},methods:{convert(t){return this.$library.colors.toString(t,this.format,this.alpha)}}},(function(){var t,e=this,n=e._self._c;return n("k-field",e._b({staticClass:"k-color-field",attrs:{input:e._uid}},"k-field",e.$props,!1),["options"===e.mode?n("k-coloroptions-input",{staticClass:"k-color-field-options",attrs:{name:e.name,options:e.convertedOptions,value:e.value},on:{input:function(t){return e.$emit("input",t)}}}):n("k-input",e._b({attrs:{theme:"field",type:"color"},scopedSlots:e._u([{key:"before",fn:function(){return["picker"===e.mode?[n("button",{staticClass:"k-color-field-picker-toggle",attrs:{disabled:e.disabled,type:"button"},on:{click:function(t){return e.$refs.picker.toggle()}}},[n("k-color-frame",{attrs:{color:e.value}})],1),n("k-dropdown-content",{ref:"picker",staticClass:"k-color-field-picker"},[n("k-colorpicker-input",{ref:"color",attrs:{alpha:e.alpha,options:e.convertedOptions,required:e.required,value:e.value},on:{input:function(t){return e.$emit("input",t)}}})],1)]:n("k-color-frame",{attrs:{color:e.value}})]},proxy:!0},{key:"default",fn:function(){return[n("k-colorname-input",e._b({on:{input:function(t){return e.$emit("input",t)}}},"k-colorname-input",e.$props,!1))]},proxy:!0},(null==(t=e.currentOption)?void 0:t.text)?{key:"after",fn:function(){return[e._v(" "+e._s(e.currentOption.text)+" ")]},proxy:!0}:null,"picker"===e.mode?{key:"icon",fn:function(){return[n("k-button",{staticClass:"k-input-icon-button",attrs:{icon:e.icon},on:{click:function(t){return t.stopPropagation(),e.$refs.picker.toggle()}}})]},proxy:!0}:null],null,!0)},"k-input",e.$props,!1))],1)}),[],!1,null,null,null,null).exports,Fn={mixins:[Tn],props:{display:{type:String,default:"DD.MM.YYYY"},max:String,min:String,step:{type:Object,default:()=>({size:1,unit:"day"})},type:{type:String,default:"date"},value:String}};const Rn=Y({mixins:[En,Fn],data:()=>({dt:null,formatted:null}),computed:{inputType:()=>"date",pattern(){return this.$library.dayjs.pattern(this.display)},rounding(){return{...this.$options.props.step.default(),...this.step}}},watch:{value:{handler(t,e){if(t!==e){const e=this.toDatetime(t);this.commit(e)}},immediate:!0}},created(){this.$events.on("keydown.cmd.s",this.onBlur)},destroyed(){this.$events.off("keydown.cmd.s",this.onBlur)},methods:{async alter(t){let e=this.parse()??this.round(this.$library.dayjs()),n=this.rounding.unit,i=this.rounding.size;const s=this.selection();null!==s&&("meridiem"===s.unit?(t="pm"===e.format("a")?"subtract":"add",n="hour",i=12):(n=s.unit,n!==this.rounding.unit&&(i=1))),e=e[t](i,n).round(this.rounding.unit,this.rounding.size),this.commit(e),this.emit(e),await this.$nextTick(),this.select(s)},commit(t){this.dt=t,this.formatted=this.pattern.format(t),this.$emit("invalid",this.$v.$invalid,this.$v)},emit(t){this.$emit("input",this.toISO(t))},onArrowDown(){this.alter("subtract")},onArrowUp(){this.alter("add")},onBlur(){const t=this.parse();this.commit(t),this.emit(t)},async onEnter(){this.onBlur(),await this.$nextTick(),this.$emit("submit")},onInput(t){const e=this.parse(),n=this.pattern.format(e);if(!t||n==t)return this.commit(e),this.emit(e)},async onTab(t){if(""==this.$refs.input.value)return;this.onBlur(),await this.$nextTick();const e=this.selection();if(this.$refs.input&&e.start===this.$refs.input.selectionStart&&e.end===this.$refs.input.selectionEnd-1)if(t.shiftKey){if(0===e.index)return;this.selectPrev(e.index)}else{if(e.index===this.pattern.parts.length-1)return;this.selectNext(e.index)}else{if(this.$refs.input&&this.$refs.input.selectionStart==e.end+1&&e.index==this.pattern.parts.length-1)return;if(this.$refs.input&&this.$refs.input.selectionEnd-1>e.end){const t=this.pattern.at(this.$refs.input.selectionEnd,this.$refs.input.selectionEnd);this.select(this.pattern.parts[t.index])}else this.select(this.pattern.parts[e.index])}t.preventDefault()},parse(){let t=this.$refs.input.value;return t=this.$library.dayjs.interpret(t,this.inputType),this.round(t)},round(t){return null==t?void 0:t.round(this.rounding.unit,this.rounding.size)},select(t){var e;t||(t=this.selection()),null==(e=this.$refs.input)||e.setSelectionRange(t.start,t.end+1)},selectFirst(){this.select(this.pattern.parts[0])},selectLast(){this.select(this.pattern.parts[this.pattern.parts.length-1])},selectNext(t){this.select(this.pattern.parts[t+1])},selectPrev(t){this.select(this.pattern.parts[t-1])},selection(){return this.pattern.at(this.$refs.input.selectionStart,this.$refs.input.selectionEnd)},toDatetime(t){return this.round(this.$library.dayjs.iso(t,this.inputType))},toISO(t){return null==t?void 0:t.toISO(this.inputType)}},validations(){return{value:{min:!this.dt||!this.min||(()=>this.dt.validate(this.min,"min",this.rounding.unit)),max:!this.dt||!this.max||(()=>this.dt.validate(this.max,"max",this.rounding.unit)),required:!this.required||(()=>!!this.dt)}}}},(function(){var t=this;return(0,t._self._c)("input",{directives:[{name:"direction",rawName:"v-direction"}],ref:"input",class:`k-text-input k-${t.type}-input`,attrs:{id:t.id,autofocus:t.autofocus,disabled:t.disabled,placeholder:t.display,required:t.required,autocomplete:"off",spellcheck:"false",type:"text"},domProps:{value:t.formatted},on:{blur:t.onBlur,focus:function(e){return t.$emit("focus")},input:function(e){return t.onInput(e.target.value)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.stopPropagation(),e.preventDefault(),t.onArrowDown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.stopPropagation(),e.preventDefault(),t.onArrowUp.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.onEnter.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.onTab.apply(null,arguments)}]}})}),[],!1,null,null,null,null).exports;const Yn=Y({mixins:[Le,Pe,Fn],inheritAttrs:!1,props:{calendar:{type:Boolean,default:!0},icon:{type:String,default:"calendar"},time:{type:[Boolean,Object],default:()=>({})},times:{type:Boolean,default:!0}},data(){return{isInvalid:!1,iso:this.toIso(this.value)}},computed:{isEmpty(){return this.time?null===this.iso.date&&this.iso.time:null===this.iso.date}},watch:{value(t,e){t!==e&&(this.iso=this.toIso(t))}},methods:{focus(){this.$refs.dateInput.focus()},now(){const t=this.$library.dayjs();return{date:t.toISO("date"),time:this.time?t.toISO("time"):"00:00:00"}},onInput(){if(this.isEmpty)return this.$emit("input","");const t=this.$library.dayjs.iso(this.iso.date+" "+this.iso.time);(t||null!==this.iso.date&&null!==this.iso.time)&&this.$emit("input",(null==t?void 0:t.toISO())??"")},onCalendarInput(t){var e;null==(e=this.$refs.calendar)||e.close(),this.onDateInput(t)},onDateInput(t){t&&!this.iso.time&&(this.iso.time=this.now().time),this.iso.date=t,this.onInput()},onDateInvalid(t){this.isInvalid=t},onTimeInput(t){t&&!this.iso.date&&(this.iso.date=this.now().date),this.iso.time=t,this.onInput()},onTimesInput(t){var e;null==(e=this.$refs.times)||e.close(),this.onTimeInput(t+":00")},toIso(t){const e=this.$library.dayjs.iso(t);return{date:(null==e?void 0:e.toISO("date"))??null,time:(null==e?void 0:e.toISO("time"))??null}}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-date-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("div",{ref:"body",staticClass:"k-date-field-body",attrs:{"data-has-time":Boolean(t.time),"data-invalid":!t.novalidate&&t.isInvalid}},[e("k-input",t._b({ref:"dateInput",attrs:{id:t._uid,autofocus:t.autofocus,disabled:t.disabled,display:t.display,max:t.max,min:t.min,required:t.required,value:t.value,theme:"field",type:"date"},on:{invalid:t.onDateInvalid,input:t.onDateInput,submit:function(e){return t.$emit("submit")}},scopedSlots:t._u([t.calendar?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.icon,title:t.$t("date.select")},on:{click:function(e){return t.$refs.calendar.toggle()}}}),e("k-dropdown-content",{ref:"calendar",attrs:{"align-x":"end"}},[e("k-calendar",{attrs:{value:t.iso.date,min:t.min,max:t.max},on:{input:t.onCalendarInput}})],1)]},proxy:!0}:null],null,!0)},"k-input",t.$props,!1)),t.time?e("k-input",{ref:"timeInput",attrs:{disabled:t.disabled,display:t.time.display,required:t.required,step:t.time.step,value:t.iso.time,icon:t.time.icon,theme:"field",type:"time"},on:{input:t.onTimeInput,submit:function(e){return t.$emit("submit")}},scopedSlots:t._u([t.times?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.time.icon??"clock",title:t.$t("time.select")},on:{click:function(e){return t.$refs.times.toggle()}}}),e("k-dropdown-content",{ref:"times",attrs:{"align-x":"end"}},[e("k-timeoptions-input",{attrs:{display:t.time.display,value:t.value},on:{input:t.onTimesInput}})],1)]},proxy:!0}:null],null,!0)}):t._e()],1)])}),[],!1,null,null,null,null).exports,Un={mixins:[Tn,we,Oe,Ae,Ie,Te,De],props:{autocomplete:{type:[Boolean,String],default:"off"},preselect:Boolean,type:{type:String,default:"text"},value:String}};const Hn=Y({mixins:[En,Un],data(){return{listeners:{...this.$listeners,input:t=>this.onInput(t.target.value)}}},watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.$refs.input.select()}},validations(){return{value:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength),email:"email"!==this.type||t.email,url:"url"!==this.type||t.url,pattern:!this.pattern||(t=>!this.required&&!t||!this.$refs.input.validity.patternMismatch)}}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-text-input",attrs:{"data-font":t.font}},"input",{autocomplete:t.autocomplete,autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,type:t.type,value:t.value},!1),t.listeners))}),[],!1,null,null,null,null).exports,Vn={mixins:[Un],props:{autocomplete:{type:String,default:"email"},placeholder:{type:String,default:()=>window.panel.$t("email.placeholder")},type:{type:String,default:"email"}}};const Kn=Y({extends:Hn,mixins:[Vn]},null,null,!1,null,null,null,null).exports;const Wn=Y({mixins:[Le,Pe,Vn],inheritAttrs:!1,props:{link:{type:Boolean,default:!0},icon:{type:String,default:"email"}},computed:{mailto(){var t;return(null==(t=this.value)?void 0:t.length)>0?"mailto:"+this.value:null}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-email-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"email"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.link?e("k-button",{staticClass:"k-input-icon-button",attrs:{icon:t.icon,link:t.mailto,title:t.$t("open"),tabindex:"-1",target:"_blank"}}):t._e()]},proxy:!0}])},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Jn=Y({type:"model",mixins:[Le,ve],inheritAttrs:!1,props:{empty:String,info:String,link:Boolean,layout:{type:String,default:"list"},max:Number,multiple:Boolean,parent:String,search:Boolean,size:String,text:String,value:{type:Array,default:()=>[]}},data(){return{selected:this.value}},computed:{buttons(){return[{autofocus:this.autofocus,text:this.$t("select"),icon:"checklist",responsive:!0,click:()=>this.open()}]},collection(){return{empty:this.emptyProps,items:this.selected,layout:this.layout,link:this.link,size:this.size,sortable:!this.disabled&&this.selected.length>1}},hasDropzone:()=>!1,isInvalid(){return this.required&&0===this.selected.length||this.min&&this.selected.lengththis.max},more(){return!this.max||this.max>this.selected.length}},watch:{value(t){this.selected=t}},methods:{drop(){},focus(){},onInput(){this.$emit("input",this.selected)},open(){if(this.disabled)return!1;this.$panel.dialog.open({component:`k-${this.$options.type}-dialog`,props:{endpoint:this.endpoints.field,hasSearch:this.search,max:this.max,multiple:this.multiple,value:this.selected.map((t=>t.id))},on:{submit:t=>{this.select(t),this.$panel.dialog.close()}}})},remove(t){this.selected.splice(t,1),this.onInput()},removeById(t){this.selected=this.selected.filter((e=>e.id!==t)),this.onInput()},select(t){if(0===t.length)return this.selected=[],void this.onInput();this.selected=this.selected.filter((e=>t.find((t=>t.id===e.id))));for(const e of t)this.selected.find((t=>e.id===t.id))||this.selected.push(e);this.onInput()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({class:`k-models-field k-${t.$options.type}-field`,scopedSlots:t._u([t.disabled?null:{key:"options",fn:function(){return[e("k-button-group",{ref:"buttons",staticClass:"k-field-options",attrs:{buttons:t.buttons,layout:"collapsed",size:"xs",variant:"filled"}})]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-dropzone",{attrs:{disabled:!t.hasDropzone},on:{drop:t.drop}},[e("k-collection",t._b({on:{empty:t.open,sort:t.onInput,sortChange:function(e){return t.$emit("change",e)}},scopedSlots:t._u([t.disabled?null:{key:"options",fn:function({index:n}){return[e("k-button",{attrs:{title:t.$t("remove"),icon:"remove"},on:{click:function(e){return t.remove(n)}}})]}}],null,!0)},"k-collection",t.collection,!1))],1)],1)}),[],!1,null,null,null,null).exports;const Gn=Y({extends:Jn,type:"files",props:{uploads:[Boolean,Object,Array]},computed:{buttons(){const t=Jn.computed.buttons.call(this);return this.hasDropzone&&t.unshift({autofocus:this.autofocus,text:this.$t("upload"),responsive:!0,icon:"upload",click:()=>this.$panel.upload.pick(this.uploadOptions)}),t},emptyProps(){return{icon:"image",text:this.empty??this.$t("field.files.empty")}},hasDropzone(){return!this.disabled&&this.more&&this.uploads},uploadOptions(){return{accept:this.uploads.accept,max:this.max,multiple:this.multiple,url:this.$panel.urls.api+"/"+this.endpoints.field+"/upload",on:{done:t=>{!1===this.multiple&&(this.selected=[]);for(const e of t)void 0===this.selected.find((t=>t.id===e.id))&&this.selected.push(e);this.onInput(),this.$events.emit("model.update")}}}}},created(){this.$events.on("file.delete",this.removeById)},destroyed(){this.$events.off("file.delete",this.removeById)},methods:{drop(t){return!1!==this.uploads&&this.$panel.upload.open(t,this.uploadOptions)}}},null,null,!1,null,null,null,null).exports;const Xn=Y({},(function(){return(0,this._self._c)("div",{staticClass:"k-field k-gap-field"})}),[],!1,null,null,null,null).exports;const Qn=Y({mixins:[xe,Se],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-headline-field"},[e("k-headline",{staticClass:"h2"},[t._v(" "+t._s(t.label)+" ")]),t.help?e("footer",{staticClass:"k-field-footer"},[e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const Zn=Y({mixins:[xe,Se],props:{icon:String,text:String,theme:{type:String,default:"info"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-field k-info-field"},[t.label?e("k-headline",[t._v(t._s(t.label))]):t._e(),e("k-box",{attrs:{icon:t.icon,theme:t.theme}},[e("k-text",{attrs:{html:t.text}})],1),t.help?e("footer",{staticClass:"k-field-footer"},[e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const ti=Y({mixins:[Le],inheritAttrs:!1,props:{autofocus:Boolean,empty:String,fieldsetGroups:Object,fieldsets:Object,layouts:{type:Array,default:()=>[["1/1"]]},selector:Object,settings:Object,value:{type:Array,default:()=>[]}},computed:{isEmpty(){return 0===this.value.length}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-layout-field",scopedSlots:t._u([{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.layouts.select(0)}}}),e("k-button",{attrs:{icon:"dots",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{"align-x":"end"}},[e("k-dropdown-item",{attrs:{disabled:t.isEmpty,icon:"template"},on:{click:function(e){return t.$refs.layouts.copy()}}},[t._v(" "+t._s(t.$t("copy.all"))+" ")]),e("k-dropdown-item",{attrs:{icon:"download"},on:{click:function(e){return t.$refs.layouts.pasteboard()}}},[t._v(" "+t._s(t.$t("paste"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{disabled:t.isEmpty,icon:"trash"},on:{click:function(e){return t.$refs.layouts.removeAll()}}},[t._v(" "+t._s(t.$t("delete.all"))+" ")])],1)],1)]},proxy:!0}])},"k-field",t.$props,!1),[e("k-layouts",t._b({ref:"layouts",on:{input:function(e){return t.$emit("input",e)}}},"k-layouts",t.$props,!1))],1)}),[],!1,null,null,null,null).exports;const ei=Y({},(function(){return(0,this._self._c)("hr",{staticClass:"k-line-field"})}),[],!1,null,null,null,null).exports;const ni=Y({mixins:[{mixins:[Le,Pe,je],props:{value:{default:"",type:String}}}],inheritAttrs:!1,data:()=>({model:null,linkType:null,linkValue:null,expanded:!1,isInvalid:!1}),computed:{currentType(){return this.activeTypes[this.linkType]??Object.values(this.activeTypes)[0]},availableTypes(){return{url:{detect:t=>/^(http|https):\/\//.test(t),icon:"url",label:this.$t("url"),link:t=>t,placeholder:this.$t("url.placeholder"),input:"url",value:t=>t},page:{detect:t=>!0===this.isPageUUID(t),icon:"page",label:this.$t("page"),link:t=>t,placeholder:this.$t("select")+" …",input:"text",value:t=>t},file:{detect:t=>!0===this.isFileUUID(t),icon:"file",label:this.$t("file"),link:t=>t,placeholder:this.$t("select")+" …",value:t=>t},email:{detect:t=>t.startsWith("mailto:"),icon:"email",label:this.$t("email"),link:t=>t.replace(/^mailto:/,""),placeholder:this.$t("email.placeholder"),input:"email",value:t=>"mailto:"+t},tel:{detect:t=>t.startsWith("tel:"),icon:"phone",label:this.$t("tel"),link:t=>t.replace(/^tel:/,""),pattern:"[+]{0,1}[0-9]+",placeholder:this.$t("tel.placeholder"),input:"tel",value:t=>"tel:"+t},anchor:{detect:t=>t.startsWith("#"),icon:"anchor",label:"Anchor",link:t=>t,pattern:"^#.+",placeholder:"#element",input:"text",value:t=>t},custom:{detect:()=>!0,icon:"title",label:this.$t("custom"),link:t=>t,input:"text",value:t=>t}}},activeTypes(){var t;if(!(null==(t=this.options)?void 0:t.length))return this.availableTypes;const e={};for(const n of this.options)e[n]=this.availableTypes[n];return e}},watch:{value:{handler(t,e){if(t===e)return;const n=this.detect(t);this.linkType=this.linkType??n.type,this.linkValue=n.link,t!==e&&this.preview(n)},immediate:!0}},created(){this.$events.on("click",this.onOutsideClick)},destroyed(){this.$events.off("click",this.onOutsideClick)},methods:{clear(){this.$emit("input",""),this.expanded=!1},detect(t){if(0===(t=t??"").length)return{type:"url",link:""};for(const e in this.availableTypes)if(!0===this.availableTypes[e].detect(t))return{type:e,link:this.availableTypes[e].link(t)}},focus(){var t;null==(t=this.$refs.input)||t.focus()},getFileUUID:t=>t.replace("/@/file/","file://"),getPageUUID:t=>t.replace("/@/page/","page://"),isFileUUID:t=>!0===t.startsWith("file://")||!0===t.startsWith("/@/file/"),isPageUUID:t=>"site://"===t||!0===t.startsWith("page://")||!0===t.startsWith("/@/page/"),onInput(t){const e=(null==t?void 0:t.trim())??"";if(!e.length)return this.$emit("input","");this.$emit("input",this.currentType.value(e))},onInvalid(t){this.isInvalid=!!t},onOutsideClick(t){!1===this.$el.contains(t.target)&&(this.expanded=!1)},async preview({type:t,link:e}){this.model="page"===t&&e?await this.previewForPage(e):"file"===t&&e?await this.previewForFile(e):e?{label:e}:null},async previewForFile(t){try{const e=await this.$api.files.get(null,t,{select:"filename, panelImage"});return{label:e.filename,image:e.panelImage}}catch(e){return null}},async previewForPage(t){if("site://"===t)return{label:this.$t("view.site")};try{return{label:(await this.$api.pages.get(t,{select:"title"})).title}}catch(e){return null}},selectModel(t){t.uuid?this.onInput(t.uuid):(this.switchType("url"),this.onInput(t.url))},async switchType(t){t!==this.linkType&&(this.isInvalid=!1,this.linkType=t,this.linkValue="","page"===this.linkType||"file"===this.linkType?this.expanded=!0:this.expanded=!1,this.$emit("input",""),await this.$nextTick(),this.focus())},toggle(){this.expanded=!this.expanded}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-link-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._b({attrs:{invalid:t.isInvalid,icon:!1,theme:"field"}},"k-input",t.$props,!1),[e("div",{staticClass:"k-link-input-header"},[e("k-button",{staticClass:"k-link-input-toggle",attrs:{disabled:t.disabled,dropdown:!0,icon:t.currentType.icon,variant:"filled"},on:{click:function(e){return t.$refs.types.toggle()}}},[t._v(" "+t._s(t.currentType.label)+" ")]),e("k-dropdown-content",{ref:"types"},t._l(t.activeTypes,(function(n,i){return e("k-dropdown-item",{key:i,attrs:{current:i===t.linkType,icon:n.icon},on:{click:function(e){return t.switchType(i)}}},[t._v(" "+t._s(n.label)+" ")])})),1),"page"===t.linkType||"file"===t.linkType?e("div",{staticClass:"k-link-input-model",on:{click:t.toggle}},[t.model?e("k-tag",{staticClass:"k-link-input-model-preview",attrs:{image:t.model.image?{...t.model.image,cover:!0,back:"gray-200"}:null,removable:!t.disabled},on:{remove:t.clear}},[t._v(" "+t._s(t.model.label)+" ")]):e("k-button",{staticClass:"k-link-input-model-placeholder"},[t._v(" "+t._s(t.currentType.placeholder)+" ")]),e("k-button",{staticClass:"k-link-input-model-toggle",attrs:{icon:"bars"}})],1):e("k-"+t.currentType.input+"-input",{ref:"input",tag:"component",attrs:{id:t._uid,pattern:t.currentType.pattern??null,placeholder:t.currentType.placeholder,value:t.linkValue},on:{invalid:t.onInvalid,input:t.onInput}})],1),"page"===t.linkType?e("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"k-link-input-body",attrs:{"data-type":"page"}},[e("div",{staticClass:"k-page-browser"},[e("k-page-tree",{attrs:{current:t.getPageUUID(t.value),root:!1},on:{select:function(e){return t.selectModel(e)}}})],1)]):"file"===t.linkType?e("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"k-link-input-body",attrs:{"data-type":"file"}},[e("k-file-browser",{attrs:{selected:t.getFileUUID(t.value)},on:{select:function(e){return t.selectModel(e)}}})],1):t._e()])],1)}),[],!1,null,null,null,null).exports;const ii=t=>({$from:e})=>((t,e)=>{for(let n=t.depth;n>0;n--){const i=t.node(n);if(e(i))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:i}}})(e,t),si=t=>e=>{if((t=>t instanceof o)(e)){const{node:n,$from:i}=e;if(((t,e)=>Array.isArray(t)&&t.indexOf(e.type)>-1||e.type===t)(t,n))return{node:n,pos:i.pos,depth:i.depth}}},oi=(t,e,n={})=>{const i=si(e)(t.selection)||ii((t=>t.type===e))(t.selection);return 0!==Z(n)&&i?i.node.hasMarkup(e,{...i.node.attrs,...n}):!!i};function li(t=null,e=null){if(!t||!e)return!1;const n=t.parent.childAfter(t.parentOffset);if(!n.node)return!1;const i=n.node.marks.find((t=>t.type===e));if(!i)return!1;let s=t.index(),o=t.start()+n.offset,l=s+1,r=o+n.node.nodeSize;for(;s>0&&i.isInSet(t.parent.child(s-1).marks);)s-=1,o-=t.parent.child(s).nodeSize;for(;l{s=[...s,...t.marks]}));const o=s.find((t=>t.type.name===e.name));return o?o.attrs:{}},getNodeAttrs:function(t,e){const{from:n,to:i}=t.selection;let s=[];t.doc.nodesBetween(n,i,(t=>{s=[...s,t]}));const o=s.reverse().find((t=>t.type.name===e.name));return o?o.attrs:{}},markInputRule:function(t,n,i){return new e(t,((t,e,s,o)=>{const l=i instanceof Function?i(e):i,{tr:r}=t,a=e.length-1;let u=o,c=s;if(e[a]){const i=s+e[0].indexOf(e[a-1]),l=i+e[a-1].length-1,d=i+e[a-1].lastIndexOf(e[a]),p=d+e[a].length,h=function(t,e,n){let i=[];return n.doc.nodesBetween(t,e,((t,e)=>{i=[...i,...t.marks.map((n=>({start:e,end:e+t.nodeSize,mark:n})))]})),i}(s,o,t).filter((t=>{const{excluded:e}=t.mark.type;return e.find((t=>t.name===n.name))})).filter((t=>t.end>i));if(h.length)return!1;pi&&r.delete(i,d),c=i,u=c+e[a].length}return r.addMark(c,u,n.create(l)),r.removeStoredMark(n),r}))},markIsActive:function(t,e){const{from:n,$from:i,to:s,empty:o}=t.selection;return o?!!e.isInSet(t.storedMarks||i.marks()):!!t.doc.rangeHasMark(n,s,e)},markPasteRule:function(t,e,o){const l=(n,i)=>{const r=[];return n.forEach((n=>{var s;if(n.isText){const{text:l,marks:a}=n;let u,c=0;const d=!!a.filter((t=>"link"===t.type.name))[0];for(;!d&&null!==(u=t.exec(l));)if((null==(s=null==i?void 0:i.type)?void 0:s.allowsMarkType(e))&&u[1]){const t=u.index,i=t+u[0].length,s=t+u[0].indexOf(u[1]),l=s+u[1].length,a=o instanceof Function?o(u):o;t>0&&r.push(n.cut(c,t)),r.push(n.cut(s,l).mark(e.create(a).addToSet(n.marks))),c=i}cnew i(l(t.content),t.openStart,t.openEnd)}})},minMax:function(t=0,e=0,n=0){return Math.min(Math.max(parseInt(t,10),e),n)},nodeIsActive:oi,nodeInputRule:function(t,n,i){return new e(t,((t,e,s,o)=>{const l=i instanceof Function?i(e):i,{tr:r}=t;return e[0]&&r.replaceWith(s-1,o,n.create(l)),r}))},pasteRule:function(t,e,o){const l=n=>{const i=[];return n.forEach((n=>{if(n.isText){const{text:s}=n;let l,r=0;do{if(l=t.exec(s),l){const t=l.index,s=t+l[0].length,a=o instanceof Function?o(l[0]):o;t>0&&i.push(n.cut(r,t)),i.push(n.cut(t,s).mark(e.create(a).addToSet(n.marks))),r=s}}while(l);rnew i(l(t.content),t.openStart,t.openEnd)}})},removeMark:function(t){return(e,n)=>{const{tr:i,selection:s}=e;let{from:o,to:l}=s;const{$from:r,empty:a}=s;if(a){const e=li(r,t);o=e.from,l=e.to}return i.removeMark(o,l,t),n(i)}},toggleBlockType:function(t,e,n={}){return(i,s,o)=>oi(i,t,n)?l(e)(i,s,o):l(t,n)(i,s,o)},toggleList:function(t,e){return(n,i,s)=>{const{schema:o,selection:l}=n,{$from:u,$to:c}=l,d=u.blockRange(c);if(!d)return!1;const p=ii((t=>ri(t,o)))(l);if(d.depth>=1&&p&&d.depth-p.depth<=1){if(p.node.type===t)return r(e)(n,i,s);if(ri(p.node,o)&&t.validContent(p.node.content)){const{tr:e}=n;return e.setNodeMarkup(p.pos,t),i&&i(e),!1}}return a(t)(n,i,s)}},toggleWrap:function(t,e={}){return(n,i,s)=>oi(n,t,e)?u(n,i):c(t,e)(n,i,s)},updateMark:function(t,e){return(n,i)=>{const{tr:s,selection:o,doc:l}=n,{ranges:r,empty:a}=o;if(a){const{from:n,to:i}=li(o.$from,t);l.rangeHasMark(n,i,t)&&s.removeMark(n,i,t),s.addMark(n,i,t.create(e))}else r.forEach((n=>{const{$to:i,$from:o}=n;l.rangeHasMark(o.pos,i.pos,t)&&s.removeMark(o.pos,i.pos,t),s.addMark(o.pos,i.pos,t.create(e))}));return i(s)}}};class ui{emit(t,...e){this._callbacks=this._callbacks??{};const n=this._callbacks[t]??[];for(const i of n)i.apply(this,e);return this}off(t,e){if(arguments.length){const n=this._callbacks?this._callbacks[t]:null;n&&(e?this._callbacks[t]=n.filter((t=>t!==e)):delete this._callbacks[t])}else this._callbacks={};return this}on(t,e){return this._callbacks=this._callbacks??{},this._callbacks[t]=this._callbacks[t]??[],this._callbacks[t].push(e),this}}class ci{constructor(t=[],e){for(const n of t)n.bindEditor(e),n.init();this.extensions=t}commands({schema:t,view:e}){return this.extensions.filter((t=>t.commands)).reduce(((n,i)=>{const{name:s,type:o}=i,l={},r=i.commands({schema:t,utils:ai,...["node","mark"].includes(o)?{type:t[`${o}s`][s]}:{}}),a=(t,n)=>{l[t]=t=>{if("function"!=typeof n||!e.editable)return!1;e.focus();const i=n(t);return"function"==typeof i?i(e.state,e.dispatch,e):i}};if("object"==typeof r)for(const[t,e]of Object.entries(r))a(t,e);else a(s,r);return{...n,...l}}),{})}buttons(t="mark"){const e={};for(const n of this.extensions)if(n.type===t&&n.button)if(Array.isArray(n.button))for(const t of n.button)e[t.id??t.name]=t;else e[n.name]=n.button;return e}getAllowedExtensions(t){return t instanceof Array||!t?t instanceof Array?this.extensions.filter((e=>!t.includes(e.name))):this.extensions:[]}getFromExtensions(t,e,n=this.extensions){return n.filter((t=>["extension"].includes(t.type))).filter((e=>e[t])).map((n=>n[t]({...e,utils:ai})))}getFromNodesAndMarks(t,e,n=this.extensions){return n.filter((t=>["node","mark"].includes(t.type))).filter((e=>e[t])).map((n=>n[t]({...e,type:e.schema[`${n.type}s`][n.name],utils:ai})))}inputRules({schema:t,excludedExtensions:e}){const n=this.getAllowedExtensions(e);return[...this.getFromExtensions("inputRules",{schema:t},n),...this.getFromNodesAndMarks("inputRules",{schema:t},n)].reduce(((t,e)=>[...t,...e]),[])}keymaps({schema:t}){return[...this.getFromExtensions("keys",{schema:t}),...this.getFromNodesAndMarks("keys",{schema:t})].map((t=>v(t)))}get marks(){return this.extensions.filter((t=>"mark"===t.type)).reduce(((t,{name:e,schema:n})=>({...t,[e]:n})),{})}get nodes(){return this.extensions.filter((t=>"node"===t.type)).reduce(((t,{name:e,schema:n})=>({...t,[e]:n})),{})}get options(){const{view:t}=this;return this.extensions.reduce(((e,n)=>({...e,[n.name]:new Proxy(n.options,{set(e,n,i){const s=e[n]!==i;return Object.assign(e,{[n]:i}),s&&t.updateState(t.state),!0}})})),{})}pasteRules({schema:t,excludedExtensions:e}){const n=this.getAllowedExtensions(e);return[...this.getFromExtensions("pasteRules",{schema:t},n),...this.getFromNodesAndMarks("pasteRules",{schema:t},n)].reduce(((t,e)=>[...t,...e]),[])}plugins({schema:t}){return[...this.getFromExtensions("plugins",{schema:t}),...this.getFromNodesAndMarks("plugins",{schema:t})].reduce(((t,e)=>[...t,...e]),[]).map((t=>t instanceof n?t:new n(t)))}}class di{constructor(t={}){this.options={...this.defaults,...t}}init(){return null}bindEditor(t=null){this.editor=t}get name(){return null}get type(){return"extension"}get defaults(){return{}}plugins(){return[]}inputRules(){return[]}pasteRules(){return[]}keys(){return{}}}class pi extends di{constructor(t={}){super(t)}get type(){return"node"}get schema(){return{}}commands(){return{}}}class hi extends pi{get defaults(){return{inline:!1}}get name(){return"doc"}get schema(){return{content:this.options.inline?"inline*":"block+"}}}class mi extends pi{get button(){return{id:this.name,icon:"paragraph",label:window.panel.$t("toolbar.button.paragraph"),name:this.name,separator:!0}}commands({utils:t,type:e}){return{paragraph:()=>t.setBlockType(e)}}get schema(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:()=>["p",0]}}get name(){return"paragraph"}}let fi=class extends pi{get name(){return"text"}get schema(){return{group:"inline"}}};class gi extends ui{constructor(t={}){super(),this.defaults={autofocus:!1,content:"",disableInputRules:!1,disablePasteRules:!1,editable:!0,element:null,extensions:[],emptyDocument:{type:"doc",content:[]},events:{},inline:!1,parseOptions:{},topNode:"doc",useBuiltInExtensions:!0},this.init(t)}blur(){this.view.dom.blur()}get builtInExtensions(){return!0!==this.options.useBuiltInExtensions?[]:[new hi({inline:this.options.inline}),new fi,new mi]}buttons(t){return this.extensions.buttons(t)}clearContent(t=!1){this.setContent(this.options.emptyDocument,t)}command(t,...e){var n,i;null==(i=(n=this.commands)[t])||i.call(n,...e)}createCommands(){return this.extensions.commands({schema:this.schema,view:this.view})}createDocument(t,e=this.options.parseOptions){if(null===t)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"==typeof t)try{return this.schema.nodeFromJSON(t)}catch(n){return window.console.warn("Invalid content.","Passed value:",t,"Error:",n),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"==typeof t){const n=`

      ${t}
      `,i=(new window.DOMParser).parseFromString(n,"text/html").body.firstElementChild;return y.fromSchema(this.schema).parse(i,e)}return!1}createEvents(){const t=this.options.events??{};for(const[e,n]of Object.entries(t))this.on(e,n);return t}createExtensions(){return new ci([...this.builtInExtensions,...this.options.extensions],this)}createFocusEvents(){const t=(t,e,n=!0)=>{this.focused=n,this.emit(n?"focus":"blur",{event:e,state:t.state,view:t});const i=this.state.tr.setMeta("focused",n);this.view.dispatch(i)};return new n({props:{attributes:{tabindex:0},handleDOMEvents:{focus:(e,n)=>t(e,n,!0),blur:(e,n)=>t(e,n,!1)}}})}createInputRules(){return this.extensions.inputRules({schema:this.schema,excludedExtensions:this.options.disableInputRules})}createKeymaps(){return this.extensions.keymaps({schema:this.schema})}createMarks(){return this.extensions.marks}createNodes(){return this.extensions.nodes}createPasteRules(){return this.extensions.pasteRules({schema:this.schema,excludedExtensions:this.options.disablePasteRules})}createPlugins(){return this.extensions.plugins({schema:this.schema})}createSchema(){return new $({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return w.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,x({rules:this.inputRules}),...this.pasteRules,...this.keymaps,v({Backspace:O}),v(A),this.createFocusEvents()]})}createView(){return new _(this.element,{dispatchTransaction:this.dispatchTransaction.bind(this),attributes:{class:"k-text"},editable:()=>this.options.editable,handlePaste:(t,e)=>{if("function"==typeof this.events.paste){const t=e.clipboardData.getData("text/html"),n=e.clipboardData.getData("text/plain");if(!0===this.events.paste(e,t,n))return!0}},handleDrop:(...t)=>{this.emit("drop",...t)},state:this.createState()})}destroy(){this.view&&this.view.destroy()}dispatchTransaction(t){const e=this.state,n=this.state.apply(t);this.view.updateState(n),this.setActiveNodesAndMarks();const i={editor:this,getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:t};this.emit("transaction",i),!t.docChanged&&t.getMeta("preventUpdate")||this.emit("update",i);const{from:s,to:o}=this.state.selection,l=!e||!e.selection.eq(n.selection);this.emit(n.selection.empty?"deselect":"select",{...i,from:s,hasChanged:l,to:o})}focus(t=null){if(this.view.focused&&null===t||!1===t)return;const{from:e,to:n}=this.selectionAtPosition(t);this.setSelection(e,n),setTimeout((()=>this.view.focus()),10)}getHTML(t=this.state.doc.content){const e=document.createElement("div"),n=C.fromSchema(this.schema).serializeFragment(t);return e.appendChild(n),this.options.inline&&e.querySelector("p")?e.querySelector("p").innerHTML:e.innerHTML}getHTMLStartToSelection(){const t=this.state.doc.slice(0,this.selection.head).content;return this.getHTML(t)}getHTMLSelectionToEnd(){const t=this.state.doc.slice(this.selection.head).content;return this.getHTML(t)}getHTMLStartToSelectionToEnd(){return[this.getHTMLStartToSelection(),this.getHTMLSelectionToEnd()]}getJSON(){return this.state.doc.toJSON()}getMarkAttrs(t=null){return this.activeMarkAttrs[t]}getSchemaJSON(){return JSON.parse(JSON.stringify({nodes:this.nodes,marks:this.marks}))}init(t={}){this.options={...this.defaults,...t},this.element=this.options.element,this.focused=!1,this.events=this.createEvents(),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.plugins=this.createPlugins(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),!1!==this.options.autofocus&&this.focus(this.options.autofocus),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view,this.setContent(this.options.content,!0)}insertText(t,e=!1){const{tr:n}=this.state,i=n.insertText(t);if(this.view.dispatch(i),e){const e=n.selection.from,i=e-t.length;this.setSelection(i,e)}}isEditable(){return this.options.editable}isEmpty(){if(this.state)return 0===this.state.doc.textContent.length}get isActive(){return Object.entries({...this.activeMarks,...this.activeNodes}).reduce(((t,[e,n])=>({...t,[e]:(t={})=>n(t)})),{})}removeMark(t){if(this.schema.marks[t])return ai.removeMark(this.schema.marks[t])(this.state,this.view.dispatch)}get selection(){return this.state.selection}get selectionAtEnd(){return S.atEnd(this.state.doc)}get selectionIsAtEnd(){return this.selection.head===this.selectionAtEnd.head}get selectionAtStart(){return S.atStart(this.state.doc)}get selectionIsAtStart(){return this.selection.head===this.selectionAtStart.head}selectionAtPosition(t=null){return null===t?this.selection:"start"===t||!0===t?this.selectionAtStart:"end"===t?this.selectionAtEnd:{from:t,to:t}}setActiveNodesAndMarks(){this.activeMarks=Object.values(this.schema.marks).filter((t=>ai.markIsActive(this.state,t))).map((t=>t.name)),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce(((t,[e,n])=>({...t,[e]:ai.getMarkAttrs(this.state,n)})),{}),this.activeNodes=Object.values(this.schema.nodes).filter((t=>ai.nodeIsActive(this.state,t))).map((t=>t.name)),this.activeNodeAttrs=Object.entries(this.schema.nodes).reduce(((t,[e,n])=>({...t,[e]:ai.getNodeAttrs(this.state,n)})),{})}setContent(t={},e=!1,n){const{doc:i,tr:s}=this.state,o=this.createDocument(t,n),l=s.replaceWith(0,i.content.size,o).setMeta("preventUpdate",!e);this.view.dispatch(l)}setSelection(t=0,e=0){const{doc:n,tr:i}=this.state,s=ai.minMax(t,0,n.content.size),o=ai.minMax(e,0,n.content.size),l=S.create(n,s,o),r=i.setSelection(l);this.view.dispatch(r)}get state(){var t;return null==(t=this.view)?void 0:t.state}toggleMark(t){if(this.schema.marks[t])return ai.toggleMark(this.schema.marks[t])(this.state,this.view.dispatch)}updateMark(t,e){if(this.schema.marks[t])return ai.updateMark(this.schema.marks[t],e)(this.state,this.view.dispatch)}}class ki extends di{command(){return()=>{}}remove(){this.editor.removeMark(this.name)}get schema(){return{}}get type(){return"mark"}toggle(){return this.editor.toggleMark(this.name)}update(t){this.editor.updateMark(this.name,t)}}class bi extends ki{get button(){return{icon:"bold",label:window.panel.$t("toolbar.button.bold")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,t)]}keys(){return{"Mod-b":()=>this.toggle()}}get name(){return"bold"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,t)]}get schema(){return{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM:()=>["strong",0]}}}class vi extends ki{get button(){return{icon:"clear",label:window.panel.$t("toolbar.button.clear")}}commands(){return()=>this.clear()}clear(){const{state:t}=this.editor,{from:e,to:n}=t.tr.selection;for(const i of this.editor.activeMarks){const s=t.schema.marks[i],o=this.editor.state.tr.removeMark(e,n,s);this.editor.view.dispatch(o)}}get name(){return"clear"}}let yi=class extends ki{get button(){return{icon:"code",label:window.panel.$t("toolbar.button.code")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:`)([^`]+)(?:`)$/,t)]}keys(){return{"Mod-`":()=>this.toggle()}}get name(){return"code"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/(?:`)([^`]+)(?:`)/g,t)]}get schema(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:()=>["code",0]}}};class $i extends ki{get button(){return{icon:"email",label:window.panel.$t("toolbar.button.email")}}commands(){return{email:t=>{if(t.altKey||t.metaKey)return this.remove();this.editor.emit("email",this.editor)},insertEmail:(t={})=>{const{selection:e}=this.editor.state;if(e.empty&&this.editor.insertText(t.href,!0),t.href)return this.update(t)},removeEmail:()=>this.remove(),toggleEmail:(t={})=>{var e;(null==(e=t.href)?void 0:e.length)>0?this.editor.command("insertEmail",t):this.editor.command("removeEmail")}}}get defaults(){return{target:null}}get name(){return"email"}pasteRules({type:t,utils:e}){return[e.pasteRule(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/gi,t,(t=>({href:t})))]}plugins(){return[{props:{handleClick:(t,e,n)=>{const i=this.editor.getMarkAttrs("email");i.href&&!0===n.altKey&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(i.href))}}}]}get schema(){return{attrs:{href:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href^='mailto:']",getAttrs:t=>({href:t.getAttribute("href").replace("mailto:",""),title:t.getAttribute("title")})}],toDOM:t=>["a",{...t.attrs,href:"mailto:"+t.attrs.href},0]}}}class wi extends ki{get button(){return{icon:"italic",label:window.panel.$t("toolbar.button.italic")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,t),e.markInputRule(/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,t)]}keys(){return{"Mod-i":()=>this.toggle()}}get name(){return"italic"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/_([^_]+)_/g,t),e.markPasteRule(/\*([^*]+)\*/g,t)]}get schema(){return{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}}}let xi=class extends ki{get button(){return{icon:"url",label:window.panel.$t("toolbar.button.link")}}commands(){return{link:t=>{if(t.altKey||t.metaKey)return this.remove();this.editor.emit("link",this.editor)},insertLink:(t={})=>{const{selection:e}=this.editor.state;if(e.empty&&!1===this.editor.activeMarks.includes("link")&&this.editor.insertText(t.href,!0),t.href)return this.update(t)},removeLink:()=>this.remove(),toggleLink:(t={})=>{var e;(null==(e=t.href)?void 0:e.length)>0?this.editor.command("insertLink",t):this.editor.command("removeLink")}}}get defaults(){return{target:null}}get name(){return"link"}pasteRules({type:t,utils:e}){return[e.pasteRule(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,]*)/gi,t,(t=>({href:t})))]}plugins(){return[{props:{handleClick:(t,e,n)=>{const i=this.editor.getMarkAttrs("link");i.href&&!0===n.altKey&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(i.href,i.target))}}}]}get schema(){return{attrs:{href:{default:null},target:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]:not([href^='mailto:'])",getAttrs:t=>({href:t.getAttribute("href"),target:t.getAttribute("target"),title:t.getAttribute("title")})}],toDOM:t=>["a",{...t.attrs},0]}}};class _i extends ki{get button(){return{icon:"strikethrough",label:window.panel.$t("toolbar.button.strike")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/~([^~]+)~$/,t)]}keys(){return{"Mod-d":()=>this.toggle()}}get name(){return"strike"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/~([^~]+)~/g,t)]}get schema(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:t=>"line-through"===t}],toDOM:()=>["s",0]}}}let Ci=class extends ki{get button(){return{icon:"superscript",label:window.panel.$t("toolbar.button.sup")}}commands(){return()=>this.toggle()}get name(){return"sup"}get schema(){return{parseDOM:[{tag:"sup"}],toDOM:()=>["sup",0]}}};class Si extends ki{get button(){return{icon:"subscript",label:window.panel.$t("toolbar.button.sub")}}commands(){return()=>this.toggle()}get name(){return"sub"}get schema(){return{parseDOM:[{tag:"sub"}],toDOM:()=>["sub",0]}}}class Oi extends ki{get button(){return{icon:"underline",label:window.panel.$t("toolbar.button.underline")}}commands(){return()=>this.toggle()}keys(){return{"Mod-u":()=>this.toggle()}}get name(){return"underline"}get schema(){return{parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:t=>"underline"===t}],toDOM:()=>["u",0]}}}class Ai extends pi{get button(){return{id:this.name,icon:"list-bullet",label:window.panel.$t("toolbar.button.ul"),name:this.name,when:["listItem","bulletList","orderedList"]}}commands({type:t,schema:e,utils:n}){return()=>n.toggleList(t,e.nodes.listItem)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^\s*([-+*])\s$/,t)]}keys({type:t,schema:e,utils:n}){return{"Shift-Ctrl-8":n.toggleList(t,e.nodes.listItem)}}get name(){return"bulletList"}get schema(){return{content:"listItem+",group:"block",parseDOM:[{tag:"ul"}],toDOM:()=>["ul",0]}}}class Mi extends pi{commands({utils:t,type:e}){return()=>this.createHardBreak(t,e)}createHardBreak(t,e){return t.chainCommands(t.exitCode,((t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0)))}get defaults(){return{enter:!1,text:!1}}keys({utils:t,type:e}){const n=this.createHardBreak(t,e);let i={"Mod-Enter":n,"Shift-Enter":n};return this.options.enter&&(i.Enter=n),i}get name(){return"hardBreak"}get schema(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}}}class ji extends pi{get button(){const t=this.options.levels.map((t=>({id:`h${t}`,command:`h${t}`,icon:`h${t}`,label:window.panel.$t("toolbar.button.heading."+t),attrs:{level:t},name:this.name,when:["heading","paragraph"]})));return t[t.length-1].separator=!0,t}commands({type:t,schema:e,utils:n}){let i={toggleHeading:i=>n.toggleBlockType(t,e.nodes.paragraph,i)};for(const s of this.options.levels)i[`h${s}`]=()=>n.toggleBlockType(t,e.nodes.paragraph,{level:s});return i}get defaults(){return{levels:[1,2,3,4,5,6]}}inputRules({type:t,utils:e}){return this.options.levels.map((n=>e.textblockTypeInputRule(new RegExp(`^(#{1,${n}})\\s$`),t,(()=>({level:n})))))}keys({type:t,utils:e}){return this.options.levels.reduce(((n,i)=>({...n,[`Shift-Ctrl-${i}`]:e.setBlockType(t,{level:i})})),{})}get name(){return"heading"}get schema(){return{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,draggable:!1,parseDOM:this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}}))),toDOM:t=>[`h${t.attrs.level}`,0]}}}class Ii extends pi{commands({type:t}){return()=>(e,n)=>n(e.tr.replaceSelectionWith(t.create()))}inputRules({type:t,utils:e}){return[e.nodeInputRule(/^(?:---|___\s|\*\*\*\s)$/,t)]}get name(){return"horizontalRule"}get schema(){return{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["hr"]}}}class Ti extends pi{keys({type:t,utils:e}){return{Enter:e.splitListItem(t),"Shift-Tab":e.liftListItem(t),Tab:e.sinkListItem(t)}}get name(){return"listItem"}get schema(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}}}class Ei extends pi{get button(){return{id:this.name,icon:"list-numbers",label:window.panel.$t("toolbar.button.ol"),name:this.name,when:["listItem","bulletList","orderedList"],separator:!0}}commands({type:t,schema:e,utils:n}){return()=>n.toggleList(t,e.nodes.listItem)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^(\d+)\.\s$/,t,(t=>({order:+t[1]})),((t,e)=>e.childCount+e.attrs.order===+t[1]))]}keys({type:t,schema:e,utils:n}){return{"Shift-Ctrl-9":n.toggleList(t,e.nodes.listItem)}}get name(){return"orderedList"}get schema(){return{attrs:{order:{default:1}},content:"listItem+",group:"block",parseDOM:[{tag:"ol",getAttrs:t=>({order:t.hasAttribute("start")?+t.getAttribute("start"):1})}],toDOM:t=>1===t.attrs.order?["ol",0]:["ol",{start:t.attrs.order},0]}}}class Di extends pi{get button(){return{id:this.name,icon:"quote",label:window.panel.$t("field.blocks.quote.name"),name:this.name}}commands({type:t,utils:e}){return()=>e.toggleWrap(t)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^\s*>\s$/,t)]}keys({utils:t}){return{"Shift-Tab":(e,n)=>t.lift(e,n)}}get name(){return"quote"}get schema(){return{content:"block+",group:"block",defining:!0,draggable:!1,parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]}}}let Li=class extends di{commands(){return{undo:()=>M,redo:()=>j,undoDepth:()=>I,redoDepth:()=>T}}get defaults(){return{depth:"",newGroupDelay:""}}keys(){return{"Mod-z":M,"Mod-y":j,"Shift-Mod-z":j,"Mod-я":M,"Shift-Mod-я":j}}get name(){return"history"}plugins(){return[E({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}};class Bi extends di{commands(){return{insertHtml:t=>(e,n)=>{let i=document.createElement("div");i.innerHTML=t.trim();const s=y.fromSchema(e.schema).parse(i);n(e.tr.replaceSelectionWith(s).scrollIntoView())}}}}class qi extends di{keys(){const t={};for(const e in this.options)t[e]=()=>(this.options[e](),!0);return t}}let Pi=class extends di{constructor(t){super(),this.writer=t}get component(){return this.writer.$refs.toolbar}init(){this.editor.on("blur",(({event:t})=>{var e;return null==(e=this.component)?void 0:e.close(t)})),this.editor.on("deselect",(({event:t})=>{var e;return null==(e=this.component)?void 0:e.close(t)})),this.editor.on("select",(({hasChanged:t})=>{var e;!1!==t&&(null==(e=this.component)||e.open())}))}get type(){return"toolbar"}};const Ni={mixins:[ve,$e,Te,De],props:{breaks:Boolean,code:Boolean,emptyDocument:{type:Object,default:()=>({type:"doc",content:[]})},extensions:Array,headings:{default:()=>[1,2,3,4,5,6],type:[Array,Boolean]},inline:Boolean,keys:Object,marks:{type:[Array,Boolean],default:!0},nodes:{type:[Array,Boolean],default:()=>["heading","bulletList","orderedList"]},paste:{type:Function,default:()=>()=>!1},toolbar:{type:Object,default:()=>({inline:!0})},value:{type:String,default:""}}};const zi=Y({mixins:[Ni],data(){return{editor:null,json:{},html:this.value,isEmpty:!0}},computed:{isCursorAtEnd(){return this.editor.selectionIsAtEnd},isCursorAtStart(){return this.editor.selectionIsAtStart}},watch:{value(t,e){t!==e&&t!==this.html&&(this.html=t,this.editor.setContent(this.html))}},mounted(){this.editor=new gi({autofocus:this.autofocus,content:this.value,editable:!this.disabled,element:this.$el,emptyDocument:this.emptyDocument,parseOptions:{preserveWhitespace:!0},events:{link:t=>{this.$panel.dialog.open({component:"k-link-dialog",props:{value:t.getMarkAttrs("link")},on:{cancel:()=>t.focus(),submit:e=>{this.$panel.dialog.close(),t.command("toggleLink",e)}}})},email:t=>{this.$panel.dialog.open({component:"k-email-dialog",props:{value:this.editor.getMarkAttrs("email")},on:{cancel:()=>t.focus(),submit:e=>{this.$panel.dialog.close(),t.command("toggleEmail",e)}}})},paste:this.paste,update:t=>{if(!this.editor)return;const e=JSON.stringify(this.editor.getJSON());e!==JSON.stringify(this.json)&&(this.json=e,this.isEmpty=t.editor.isEmpty(),this.html=t.editor.getHTML(),this.isEmpty&&(0===t.editor.activeNodes.length||t.editor.activeNodes.includes("paragraph"))&&(this.html=""),this.$emit("input",this.html))}},extensions:[...this.createMarks(),...this.createNodes(),new qi(this.keys),new Li,new Bi,new Pi(this),...this.extensions||[]],inline:this.inline}),this.isEmpty=this.editor.isEmpty(),this.json=this.editor.getJSON()},beforeDestroy(){this.editor.destroy()},methods:{command(t,...e){this.editor.command(t,...e)},createMarks(){return this.filterExtensions({clear:new vi,code:new yi,underline:new Oi,strike:new _i,link:new xi,email:new $i,bold:new bi,italic:new wi,sup:new Ci,sub:new Si,...this.createMarksFromPanelPlugins()},this.marks)},createMarksFromPanelPlugins(){const t=window.panel.plugins.writerMarks??{},e={};for(const n in t)e[n]=Object.create(ki.prototype,Object.getOwnPropertyDescriptors({name:n,...t[n]}));return e},createNodes(){const t=new Mi({text:!0,enter:this.inline});return!0===this.inline?[t]:this.filterExtensions({bulletList:new Ai,orderedList:new Ei,heading:new ji({levels:this.headings}),horizontalRule:new Ii,listItem:new Ti,quote:new Di,...this.createNodesFromPanelPlugins()},this.nodes,((e,n)=>((e.includes("bulletList")||e.includes("orderedList"))&&n.push(new Ti),n.push(t),n)))},createNodesFromPanelPlugins(){const t=window.panel.plugins.writerNodes??{},e={};for(const n in t)e[n]=Object.create(pi.prototype,Object.getOwnPropertyDescriptors({name:n,...t[n]}));return e},getHTML(){return this.editor.getHTML()},filterExtensions(t,e,n){!1===e?e=[]:!0!==e&&!1!==Array.isArray(e)||(e=Object.keys(t));let i=[];for(const s in t)e.includes(s)&&i.push(t[s]);return"function"==typeof n&&(i=n(e,i)),i},focus(){this.editor.focus()},getSplitContent(){return this.editor.getHTMLStartToSelectionToEnd()},onCommand(t,...e){this.editor.command(t,...e)}}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"direction",rawName:"v-direction"}],ref:"editor",staticClass:"k-writer",attrs:{"data-disabled":t.disabled,"data-empty":t.isEmpty,"data-placeholder":t.placeholder,"data-toolbar-inline":Boolean(t.toolbar.inline),spellcheck:t.spellcheck}},[t.editor&&!t.disabled?e("k-writer-toolbar",t._b({ref:"toolbar",attrs:{editor:t.editor},on:{command:t.onCommand}},"k-writer-toolbar",t.toolbar,!1)):t._e()],1)}),[],!1,null,null,null,null).exports,Fi={mixins:[Tn,Ni,Oe,Ae],computed:{counterValue(){const t=this.$helper.string.stripHTML(this.value);return this.$helper.string.unescapeHTML(t)}}};const Ri=Y({mixins:[En,Fi],watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){this.$refs.input.focus()},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{counterValue:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength)}}}},(function(){var t=this;return(0,t._self._c)("k-writer",t._b({ref:"input",staticClass:"k-writer-input",on:{input:function(e){return t.$emit("input",e)}}},"k-writer",t.$props,!1))}),[],!1,null,null,null,null).exports;class Yi extends hi{get schema(){return{content:this.options.nodes.join("|")}}}const Ui={mixins:[Fi],inheritAttrs:!1,props:{nodes:{type:Array,default:()=>["bulletList","orderedList"]}}};const Hi=Y({mixins:[En,Ui],data(){return{list:this.value,html:this.value}},computed:{listExtensions(){return[new Yi({inline:!0,nodes:this.nodes})]}},watch:{value(t){t!==this.html&&(this.list=t,this.html=t)}},methods:{focus(){this.$refs.input.focus()},onInput(t){let e=(new DOMParser).parseFromString(t,"text/html").querySelector("ul, ol");e&&0!==e.textContent.trim().length?(this.list=t,this.html=t.replace(/(

      |<\/p>)/gi,""),this.$emit("input",this.html)):this.$emit("input",this.list="")}}},(function(){var t=this;return(0,t._self._c)("k-writer",t._b({ref:"input",staticClass:"k-list-input",attrs:{extensions:t.listExtensions,value:t.list},on:{input:t.onInput}},"k-writer",t.$props,!1))}),[],!1,null,null,null,null).exports;const Vi=Y({mixins:[Le,Pe,Ui],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-list-field",attrs:{input:t._uid,counter:!1}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{id:t._uid,type:"list",theme:"field"},on:{input:function(e){return t.$emit("input",e)}}},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,Ki={mixins:[ve,$e,_e,ae],inheritAttrs:!1,props:{draggable:{default:!0,type:Boolean},layout:String,max:Number,min:Number,sort:{default:!1,type:Boolean},value:{default:()=>[],type:Array}}};const Wi=Y({mixins:[Ki],data:()=>({editing:null,tags:[]}),computed:{dragOptions(){return{delay:1,disabled:!this.isDraggable,draggable:".k-tag",handle:".k-tag-text"}},isDraggable(){return!0!==this.sort&&!1!==this.draggable&&0!==this.tags.length&&!0!==this.disabled},isFull(){return!!this.max&&this.tags.length>=this.max},replacable(){return this.options.filter((t=>{var e;return!1===this.value.includes(t.value)||t.value===(null==(e=this.editing)?void 0:e.tag.value)}))},selectable(){return this.options.filter((t=>!1===this.value.includes(t.value)))},selectorOptions(){return{accept:this.accept,disabled:this.disabled,ignore:this.value,search:this.search}},showAddSelector(){return!0!==this.disabled&&(!0!==this.isFull&&("all"===this.accept||0!==this.selectable.length))}},watch:{value:{handler(){!0===this.sort?this.tags=this.sortByOptions(this.value):this.tags=this.value.map(this.tag).filter((t=>t))},immediate:!0}},methods:{add(t){return t=this.tag(t),!0!==this.isFull&&(!1!==this.isAllowed(t)&&(this.tags.push(t),void this.save()))},edit(t,e,n){return this.editing={index:t,tag:e},this.$refs.editor.open(n.target.closest(".k-tag"))},focus(t="last"){this.$refs.navigation.move(t)},index(t){return this.tags.findIndex((e=>e.value===t.value))},isAllowed(t){return"object"==typeof t&&0!==t.value.length&&(!("options"===this.accept&&!this.option(t))&&!0!==this.isDuplicate(t))},isDuplicate(t){return!0===this.value.includes(t.value)},navigate(t){this.focus(t)},remove(t){this.tags.splice(t,1),0===this.tags.length?this.navigate("last"):this.navigate("prev"),this.save()},replace(t){const{index:e}=this.editing,n=this.tag(t);if(!1===this.isAllowed(n))return!1;this.$set(this.tags,e,n),this.save(),this.navigate(e),this.editing=null},open(){this.$refs.selector?(this.$refs.toggle.focus(),this.$refs.selector.open(this.$refs.toggle)):this.focus()},option(t){return this.options.find((e=>e.value===t.value))},select(){this.focus()},save(){this.$emit("input",this.tags.map((t=>t.value)))},sortByOptions(t){t=this.$helper.object.clone(t);const e=[];for(const n of this.options){const i=t.indexOf(n.value);-1!==i&&(e.push(n),t.splice(i,1))}for(const n of t)e.push(this.tag(n));return e},tag(t){"object"!=typeof t&&(t={value:t});const e=this.option(t);return"options"===this.accept?e:e||{text:this.$helper.string.escapeHTML(t.text??t.value),value:t.value}},toggle(t){if(t.metaKey||t.altKey||t.ctrlKey)return!1;String.fromCharCode(t.keyCode).match(/(\w)/g)&&this.$refs.selector.open()}}},(function(){var t=this,e=t._self._c;return e("k-navigate",{ref:"navigation",attrs:{axis:"list"===t.layout?"y":"x"}},[e("k-draggable",{staticClass:"k-tags",attrs:{list:t.tags,options:t.dragOptions,"data-layout":t.layout},on:{end:t.save},scopedSlots:t._u([{key:"footer",fn:function(){var n;return[t.showAddSelector?e("k-selector-dropdown",t._b({ref:"selector",attrs:{options:t.selectable},on:{create:function(e){return t.add(e)},select:function(e){return t.add(e)}}},"k-selector-dropdown",t.selectorOptions,!1),[e("k-button",{ref:"toggle",staticClass:"k-tags-toggle",attrs:{id:t.id,autofocus:t.autofocus,icon:"add",size:"xs"},nativeOn:{click:function(e){return t.$refs.selector.open()},keydown:[function(e){return t.toggle.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.navigate(t.tags.length-1)}]}})],1):t._e(),e("k-selector-dropdown",t._b({ref:"editor",attrs:{options:t.replacable,value:null==(n=t.editing)?void 0:n.tag.text},on:{create:function(e){return t.replace(e)},select:function(e){return t.replace(e)}}},"k-selector-dropdown",t.selectorOptions,!1))]},proxy:!0}])},t._l(t.tags,(function(n,i){return e("k-tag",{key:i,attrs:{disabled:t.disabled,image:n.image,removable:!t.disabled,name:"tag"},on:{remove:function(e){return t.remove(i,n)}},nativeOn:{click:function(t){t.stopPropagation()},keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.edit(i,n,e)},dblclick:function(e){return t.edit(i,n,e)}}},[e("span",{domProps:{innerHTML:t._s(n.text)}})])})),1)],1)}),[],!1,null,null,null,null).exports,Ji={mixins:[Me,Ee,Ki]};const Gi=Y({mixins:[En,Ji],watch:{value:{handler(){this.$emit("invalid",this.$v.$invalid,this.$v)},immediate:!0}},methods:{focus(){this.$refs.tags.open()}},validations(){return{value:{required:!this.required||t.required,minLength:!this.min||t.minLength(this.min),maxLength:!this.max||t.maxLength(this.max)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-tags-input"},[e("k-tags",t._b({ref:"tags",on:{input:function(e){return t.$emit("input",e)}},nativeOn:{click:function(t){t.stopPropagation()}}},"k-tags",t.$props,!1))],1)}),[],!1,null,null,null,null).exports;const Xi=Y({mixins:[Le,Pe,Ji,Bn],inheritAttrs:!1,computed:{hasNoOptions(){return 0===this.options.length&&"options"===this.accept}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-tags-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[t.hasNoOptions?e("k-empty",{attrs:{icon:t.icon,text:t.$t("options.none")}}):e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"tags"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Qi=Y({extends:Xi,inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-multiselect-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[t.hasNoOptions?e("k-empty",{attrs:{icon:t.icon,text:t.$t("options.none")}}):e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"multiselect"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Zi={mixins:[Tn,Te],props:{max:Number,min:Number,name:[Number,String],preselect:Boolean,step:[Number,String],value:{type:[Number,String],default:""}}};const ts=Y({mixins:[En,Zi],data(){return{number:this.format(this.value),stepNumber:this.format(this.step),timeout:null,listeners:{...this.$listeners,input:t=>this.onInput(t.target.value),blur:this.onBlur}}},watch:{value(t){this.number=t},number:{immediate:!0,handler(){this.onInvalid()}}},mounted(){this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{decimals(){const t=Number(this.step??0);return Math.floor(t)===t?0:-1!==t.toString().indexOf("e")?parseInt(t.toFixed(16).split(".")[1].split("").reverse().join("")).toString().length:t.toString().split(".")[1].length??0},format(t){if(isNaN(t)||""===t)return"";const e=this.decimals();return t=e?parseFloat(t).toFixed(e):Number.isInteger(this.step)?parseInt(t):parseFloat(t)},clean(){this.number=this.format(this.number)},emit(t){t=parseFloat(t),isNaN(t)&&(t=""),t!==this.value&&this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.number=t,this.emit(t)},onBlur(){this.clean(),this.emit(this.number)},select(){this.$refs.input.select()}},validations(){return{value:{required:!this.required||t.required,min:!this.min||t.minValue(this.min),max:!this.max||t.maxValue(this.max)}}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({ref:"input",staticClass:"k-number-input",attrs:{step:t.stepNumber,type:"number"},domProps:{value:t.number},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.ctrlKey?t.clean.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.metaKey?t.clean.apply(null,arguments):null}]}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,max:t.max,min:t.min,name:t.name,placeholder:t.placeholder,required:t.required},!1),t.listeners))}),[],!1,null,null,null,null).exports;const es=Y({mixins:[Le,Pe,Zi],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-number-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"number"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const ns=Y({mixins:[Le,Pe],props:{empty:String,fields:[Object,Array],value:[String,Object]},data:()=>({object:null}),computed:{hasFields(){return this.$helper.object.length(this.fields)>0},isEmpty(){return null===this.object},isInvalid(){return!0===this.required&&this.isEmpty}},watch:{value:{handler(t){this.object=this.valueToObject(t)},immediate:!0}},methods:{add(){this.object=this.$helper.field.form(this.fields),this.save(),this.open()},cell(t,e){Vue.set(this.object,t,e),this.save()},form(t){const e=this.$helper.field.subfields(this,this.fields);if(t)for(const n in e)e[n].autofocus=n===t;return e},remove(){this.object=null,this.save()},open(t){if(this.disabled)return!1;this.$panel.drawer.open({component:"k-form-drawer",props:{breadcrumb:[],icon:"box",tab:"object",tabs:{object:{fields:this.form(t)}},title:this.label,value:this.object},on:{input:t=>{for(const e in t)this.$set(this.object,e,t[e]);this.save()}}})},save(){this.$emit("input",this.object)},valueToObject:t=>"object"!=typeof t?null:t}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-object-field",scopedSlots:t._u([!t.disabled&&t.hasFields?{key:"options",fn:function(){return[t.isEmpty?e("k-button",{attrs:{icon:"add",size:"xs",variant:"filled"},on:{click:t.add}}):e("k-button",{attrs:{icon:"remove",size:"xs",variant:"filled"},on:{click:t.remove}})]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[t.hasFields?[t.isEmpty?e("k-empty",{attrs:{"data-invalid":t.isInvalid,icon:"box"},on:{click:t.add}},[t._v(" "+t._s(t.empty??t.$t("field.object.empty"))+" ")]):e("table",{staticClass:"k-table k-object-field-table",attrs:{"data-invalid":t.isInvalid}},[e("tbody",[t._l(t.fields,(function(n){return[n.saveable&&t.$helper.field.isVisible(n,t.value)?e("tr",{key:n.name,on:{click:function(e){return t.open(n.name)}}},[e("th",{attrs:{"data-has-button":"","data-mobile":"true"}},[e("button",{attrs:{type:"button"}},[t._v(t._s(n.label))])]),e("k-table-cell",{attrs:{column:n,field:n,mobile:!0,value:t.object[n.name]},on:{input:function(e){return t.cell(n.name,e)}}})],1):t._e()]}))],2)])]:[e("k-empty",{attrs:{icon:"box"}},[t._v(t._s(t.$t("fields.empty")))])]],2)}),[],!1,null,null,null,null).exports;const is=Y({extends:Jn,type:"pages",computed:{emptyProps(){return{icon:"page",text:this.empty??this.$t("field.pages.empty")}}}},null,null,!1,null,null,null,null).exports,ss={mixins:[Un],props:{autocomplete:{type:String,default:"new-password"},type:{type:String,default:"password"}}};const os=Y({extends:Hn,mixins:[ss]},null,null,!1,null,null,null,null).exports;const ls=Y({mixins:[Le,Pe,ss,Bn],inheritAttrs:!1,props:{minlength:{type:Number,default:8},icon:{type:String,default:"key"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-password-field",attrs:{input:t._uid,counter:t.counterOptions},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options")]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"password"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,rs={mixins:[Tn,je],props:{columns:Number,reset:{default:!0,type:Boolean},theme:String,value:[String,Number,Boolean]}};const as=Y({mixins:[En,rs],computed:{choices(){return this.options.map(((t,e)=>({autofocus:this.autofocus&&0===e,checked:this.value===t.value,disabled:this.disabled,info:t.info,label:t.text,name:this.name??this.id,type:"radio",value:t.value})))}},watch:{value:{handler(){this.validate()},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},select(){this.focus()},toggle(t){t===this.value&&this.reset&&!this.required&&this.$emit("input","")},validate(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-radio-input k-grid",style:"--columns:"+t.columns,attrs:{"data-variant":"choices"}},t._l(t.choices,(function(n,i){return e("li",{key:i},[e("k-choice-input",t._b({on:{input:function(e){return t.$emit("input",n.value)}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(n.value)}}},"k-choice-input",n,!1))],1)})),0)}),[],!1,null,null,null,null).exports;const us=Y({mixins:[Le,Pe,rs],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-radio-field"},"k-field",t.$props,!1),[e("k-radio-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field"}},"k-radio-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,cs={mixins:[Tn],props:{default:[Number,String],max:{type:Number,default:100},min:{type:Number,default:0},step:{type:[Number,String],default:1},tooltip:{type:[Boolean,Object],default:()=>({before:null,after:null})},value:[Number,String]}};const ds=Y({mixins:[En,cs],computed:{baseline(){return this.min<0?0:this.min},label(){return this.required||this.value||0===this.value?this.format(this.position):"–"},position(){return this.value||0===this.value?this.value:this.default??this.baseline}},watch:{position(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},format(t){const e=document.lang?document.lang.replace("_","-"):"en",n=this.step.toString().split("."),i=n.length>1?n[1].length:0;return new Intl.NumberFormat(e,{minimumFractionDigits:i}).format(t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.$emit("input",t)}},validations(){return{position:{required:!this.required||t.required,min:!this.min||t.minValue(this.min),max:!this.max||t.maxValue(this.max)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-range-input",attrs:{"data-disabled":t.disabled}},[e("input",t._b({ref:"range",attrs:{type:"range"},domProps:{value:t.position},on:{input:function(e){return t.$emit("input",e.target.valueAsNumber)}}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,max:t.max,min:t.min,name:t.name,required:t.required,step:t.step},!1)),t.tooltip?e("output",{staticClass:"k-range-input-tooltip",attrs:{for:t.id}},[t.tooltip.before?e("span",{staticClass:"k-range-input-tooltip-before"},[t._v(t._s(t.tooltip.before))]):t._e(),e("span",{staticClass:"k-range-input-tooltip-text"},[t._v(t._s(t.label))]),t.tooltip.after?e("span",{staticClass:"k-range-input-tooltip-after"},[t._v(t._s(t.tooltip.after))]):t._e()]):t._e()])}),[],!1,null,null,null,null).exports;const ps=Y({mixins:[Pe,Le,cs],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-range-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"range"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,hs={mixins:[Tn,je,Te],props:{ariaLabel:String,default:String,empty:{type:[Boolean,String],default:!0},value:{type:[String,Number,Boolean],default:""}}};const ms=Y({mixins:[En,hs],data(){return{selected:this.value,listeners:{...this.$listeners,click:t=>this.onClick(t),change:t=>this.onInput(t.target.value),input:()=>{}}}},computed:{emptyOption(){return this.placeholder??"—"},hasEmptyOption(){return!1!==this.empty&&!(this.required&&this.default)},isEmpty(){return null===this.selected||void 0===this.selected||""===this.selected},label(){const t=this.text(this.selected);return""===this.selected||null===this.selected||null===t?this.emptyOption:t}},watch:{value(t){this.selected=t,this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){this.$refs.input.focus()},onClick(t){t.stopPropagation(),this.$emit("click",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.selected=t,this.$emit("input",this.selected)},select(){this.focus()},text(t){let e=null;for(const n of this.options)n.value==t&&(e=n.text);return e}},validations(){return{selected:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-select-input",attrs:{"data-disabled":t.disabled,"data-empty":t.isEmpty}},[e("select",t._g({ref:"input",staticClass:"k-select-input-native",attrs:{id:t.id,autofocus:t.autofocus,"aria-label":t.ariaLabel,disabled:t.disabled,name:t.name,required:t.required},domProps:{value:t.selected}},t.listeners),[t.hasEmptyOption?e("option",{attrs:{disabled:t.required,value:""}},[t._v(" "+t._s(t.emptyOption)+" ")]):t._e(),t._l(t.options,(function(n){return e("option",{key:n.value,attrs:{disabled:n.disabled},domProps:{value:n.value}},[t._v(" "+t._s(n.text)+" ")])}))],2),t._v(" "+t._s(t.label)+" ")])}),[],!1,null,null,null,null).exports;const fs=Y({mixins:[Le,Pe,hs],inheritAttrs:!1,props:{icon:{type:String,default:"angle-down"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-select-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"select"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,gs={mixins:[Un],props:{allow:{type:String,default:""},formData:{type:Object,default:()=>({})},sync:{type:String}}};const ks=Y({extends:Hn,mixins:[gs],data(){return{slug:this.sluggify(this.value),slugs:this.$panel.language.rules??this.$panel.system.slugs,syncValue:null}},watch:{formData:{handler(t){return!this.disabled&&(!(!this.sync||void 0===t[this.sync])&&(t[this.sync]!=this.syncValue&&(this.syncValue=t[this.sync],void this.onInput(this.sluggify(this.syncValue)))))},deep:!0,immediate:!0},value(t){(t=this.sluggify(t))!==this.slug&&(this.slug=t,this.$emit("input",this.slug))}},methods:{sluggify(t){return this.$helper.slug(t,[this.slugs,this.$panel.system.ascii],this.allow)},onInput(t){this.slug=this.sluggify(t),this.$emit("input",this.slug)}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-text-input",attrs:{autocomplete:"off",spellcheck:"false",type:"text"},domProps:{value:t.slug}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required},!1),t.listeners))}),[],!1,null,null,null,null).exports;const bs=Y({mixins:[Le,Pe,gs],inheritAttrs:!1,props:{icon:{type:String,default:"url"},path:{type:String},wizard:{type:[Boolean,Object],default:!1}},data(){return{slug:this.value}},computed:{preview(){return void 0!==this.help?this.help:void 0!==this.path?this.path+this.value:null}},watch:{value(){this.slug=this.value}},methods:{focus(){this.$refs.input.focus()},onWizard(){var t;this.formData[null==(t=this.wizard)?void 0:t.field]&&(this.slug=this.formData[this.wizard.field])}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-slug-field",attrs:{input:t._uid,help:t.preview},scopedSlots:t._u([t.wizard&&t.wizard.text?{key:"options",fn:function(){return[e("k-button",{attrs:{text:t.wizard.text,icon:"sparkling"},on:{click:t.onWizard}})]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,value:t.slug,theme:"field",type:"slug"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const vs=Y({mixins:[Le],inheritAttrs:!1,props:{autofocus:Boolean,columns:Object,duplicate:{type:Boolean,default:!0},empty:String,fields:[Array,Object],limit:Number,max:Number,min:Number,prepend:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},sortBy:String,value:{type:Array,default:()=>[]}},data:()=>({items:[],page:1}),computed:{dragOptions(){return{disabled:!this.isSortable,fallbackClass:"k-sortable-row-fallback"}},index(){return this.limit?(this.page-1)*this.limit+1:1},more(){return!0!==this.disabled&&!(this.max&&this.items.length>=this.max)},hasFields(){return this.$helper.object.length(this.fields)>0},isInvalid(){return!0!==this.disabled&&(!!(this.min&&this.items.lengththis.max))},isSortable(){return!this.sortBy&&(!this.limit&&(!0!==this.disabled&&(!(this.items.length<=1)&&!1!==this.sortable)))},pagination(){let t=0;return this.limit&&(t=(this.page-1)*this.limit),{page:this.page,offset:t,limit:this.limit,total:this.items.length,align:"center",details:!0}},options(){if(this.disabled)return[];let t=[],e=this.duplicate&&this.more;return t.push({icon:"edit",text:this.$t("edit"),click:"edit"}),t.push({disabled:!e,icon:"copy",text:this.$t("duplicate"),click:"duplicate"}),t.push("-"),t.push({icon:"trash",text:e?this.$t("delete"):null,click:"remove"}),t},paginatedItems(){return this.limit?this.items.slice(this.pagination.offset,this.pagination.offset+this.limit):this.items}},watch:{value:{handler(t){t!==this.items&&(this.items=this.toItems(t))},immediate:!0}},methods:{add(t=null){if(!1===this.more)return!1;(t=t??this.$helper.field.form(this.fields))._id=t._id??this.$helper.uuid(),!0===this.prepend?this.items.unshift(t):this.items.push(t),this.save(),this.open(t)},close(){this.$panel.drawer.close(this._uid)},focus(){var t,e;null==(e=null==(t=this.$refs.add)?void 0:t.focus)||e.call(t)},form(t){const e=this.$helper.field.subfields(this,this.fields);if(t)for(const n in e)e[n].autofocus=n===t;return e},findIndex(t){return this.items.findIndex((e=>e._id===t._id))},navigate(t,e){const n=this.findIndex(t);!0!==this.disabled&&-1!==n&&this.open(this.items[n+e],null,!0)},open(t,e,n=!1){const i=this.findIndex(t);if(!0===this.disabled||-1===i)return!1;this.$panel.drawer.open({component:"k-structure-drawer",id:this._uid,props:{icon:this.icon??"list-bullet",next:this.items[i+1],prev:this.items[i-1],tabs:{content:{fields:this.form(e)}},title:this.label,value:t},replace:n,on:{input:e=>{const n=this.findIndex(t);this.$panel.drawer.props.next=this.items[n+1],this.$panel.drawer.props.prev=this.items[n-1],this.$set(this.items,n,e),this.save()},next:()=>{this.navigate(t,1)},prev:()=>{this.navigate(t,-1)},remove:()=>{this.remove(t)}}})},option(t,e){switch(t){case"remove":this.remove(e);break;case"duplicate":this.add({...e,_id:this.$helper.uuid()});break;case"edit":this.open(e)}},paginate({page:t}){this.page=t},remove(t){const e=this.findIndex(t);this.disabled||-1===e||this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.structure.delete.confirm")},on:{submit:()=>{this.items.splice(e,1),this.save(),this.$panel.dialog.close(),this.close(),0===this.paginatedItems.length&&this.page>1&&this.page--}}})},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.structure.delete.confirm.all")},on:{submit:()=>{this.page=1,this.items=[],this.save(),this.$panel.dialog.close()}}})},save(t=this.items){this.$emit("input",t)},sort(t){return this.sortBy?t.sortBy(this.sortBy):t},toItems(t){return!1===Array.isArray(t)?[]:(t=t.map((t=>({_id:t._id??this.$helper.uuid(),...t}))),this.sort(t))}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-structure-field",nativeOn:{click:function(t){t.stopPropagation()}},scopedSlots:t._u([t.hasFields&&!t.disabled?{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,disabled:!t.more,responsive:!0,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.add()}}}),e("k-button",{attrs:{icon:"dots",size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{"align-x":"end"}},[e("k-dropdown-item",{attrs:{disabled:!t.more,icon:"add"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("add"))+" ")]),e("k-dropdown-item",{attrs:{disabled:0===t.items.length||t.disabled,icon:"trash"},on:{click:t.removeAll}},[t._v(" "+t._s(t.$t("delete.all"))+" ")])],1)],1)]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[t.hasFields?[0===t.items.length?e("k-empty",{attrs:{"data-invalid":t.isInvalid,icon:"list-bullet"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.empty??t.$t("field.structure.empty"))+" ")]):[e("k-table",{attrs:{columns:t.columns,disabled:t.disabled,fields:t.fields,empty:t.$t("field.structure.empty"),index:t.index,options:t.options,pagination:!!t.limit&&t.pagination,rows:t.paginatedItems,sortable:t.isSortable,"data-invalid":t.isInvalid},on:{cell:function(e){return t.open(e.row,e.columnIndex)},input:t.save,option:t.option,paginate:t.paginate}}),t.more?e("footer",{staticClass:"k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{title:t.$t("add"),icon:"add",size:"xs",variant:"filled"},on:{click:function(e){return t.add()}}})],1):t._e()]]:[e("k-empty",{attrs:{icon:"list-bullet"}},[t._v(t._s(t.$t("fields.empty")))])]],2)}),[],!1,null,null,null,null).exports,ys={mixins:[Un],props:{autocomplete:{default:"tel"},placeholder:{default:()=>window.panel.$t("tel.placeholder")},type:{default:"tel"}}};const $s=Y({extends:Hn,mixins:[ys]},null,null,!1,null,null,null,null).exports;const ws=Y({mixins:[Le,Pe,ys],inheritAttrs:!1,props:{icon:{type:String,default:"phone"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-tel-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"tel"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const xs=Y({mixins:[Le,Pe,Un,Bn],inheritAttrs:!1,computed:{inputType(){return this.$helper.isComponent(`k-${this.type}-input`)?this.type:"text"}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-text-field",attrs:{input:t._uid,counter:t.counterOptions},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options")]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,type:t.inputType,theme:"field"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,_s={mixins:[Tn,we,Oe,Ae,Te,De],props:{buttons:{type:[Boolean,Array],default:!0},endpoints:Object,preselect:Boolean,size:String,theme:String,uploads:[Boolean,Object,Array],value:String}};const Cs=Y({mixins:[En,_s],data:()=>({over:!1}),computed:{uploadOptions(){return{url:this.$panel.urls.api+"/"+this.endpoints.field+"/upload",multiple:!1,on:{done:this.insertUpload}}}},watch:{value(){this.onInvalid(),this.$nextTick((()=>{this.$refs.input.autosize()}))}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{dialog(t){const e=this.$refs.input.selectionStart,n=this.$refs.input.selectionEnd,i=t=>{setTimeout((()=>{this.$refs.input.setSelectionRange(e,n),t&&t()}))};this.$panel.dialog.open({component:"k-toolbar-"+t+"-dialog",props:{value:this.parseSelection()},on:{cancel:i,submit:t=>{this.$panel.dialog.close(),i((()=>this.insert(t)))}}})},focus(){this.$refs.input.focus()},insert(t){const e=this.$refs.input;setTimeout((()=>{e.focus(),e.setRangeText(t,e.selectionStart,e.selectionEnd),this.$emit("input",e.value)}))},insertFile(t){(null==t?void 0:t.length)>0&&this.insert(t.map((t=>t.dragText)).join("\n\n"))},insertUpload(t){this.insertFile(t),this.$events.emit("model.update")},onCommand(t,e){if("function"!=typeof this[t])return console.warn(t+" is not a valid command");"function"==typeof e&&(e=e(this.$refs.input,this.selection())),this[t](e)},onDrop(t){if(this.uploads&&this.$helper.isUploadEvent(t))return this.$panel.upload.open(t.dataTransfer.files,this.uploadOptions);"text"===this.$panel.drag.type&&(this.focus(),this.insert(this.$panel.drag.data))},onFocus(t){this.$emit("focus",t)},onInput(t){this.$emit("input",t.target.value)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onOut(){this.$refs.input.blur(),this.over=!1},onOver(t){if(this.uploads&&this.$helper.isUploadEvent(t))return t.dataTransfer.dropEffect="copy",this.focus(),void(this.over=!0);"text"===this.$panel.drag.type&&(t.dataTransfer.dropEffect="copy",this.focus(),this.over=!0)},onShortcut(t){var e;!1!==this.buttons&&"Meta"!==t.key&&"Control"!==t.key&&(null==(e=this.$refs.toolbar)||e.shortcut(t.key,t))},onSubmit(t){return this.$emit("submit",t)},parseSelection(){const t=this.selection();if(0===(null==t?void 0:t.length))return{href:null,title:null};let e;e=this.$panel.config.kirbytext?/^\(link:\s*(?.*?)(?:\s*text:\s*(?.*?))?\)$/is:/^(\[(?.*?)\]\((?.*?)\))|(<(?.*?)>)$/is;const n=e.exec(t);return null!==n?{href:n.groups.url??n.groups.link,title:n.groups.text??null}:{href:null,title:t}},prepend(t){this.insert(t+" "+this.selection())},select(){this.$refs.select()},selectFile(){this.$panel.dialog.open({component:"k-files-dialog",props:{endpoint:this.endpoints.field+"/files",multiple:!1},on:{cancel:this.cancel,submit:t=>{this.insertFile(t),this.$panel.dialog.close()}}})},selection(){return this.$refs.input.value.substring(this.$refs.input.selectionStart,this.$refs.input.selectionEnd)},uploadFile(){this.$panel.upload.pick(this.uploadOptions)},wrap(t){this.insert(t+this.selection()+t)}},validations(){return{value:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-textarea-input",attrs:{"data-over":t.over,"data-size":t.size}},[e("div",{staticClass:"k-textarea-input-wrapper"},[t.buttons&&!t.disabled?e("k-toolbar",{ref:"toolbar",attrs:{buttons:t.buttons,disabled:t.disabled,uploads:t.uploads},on:{command:t.onCommand},nativeOn:{mousedown:function(t){t.preventDefault()}}}):t._e(),e("k-autosize",[e("textarea",t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-textarea-input-native",attrs:{"data-font":t.font},on:{click:function(e){var n;null==(n=t.$refs.toolbar)||n.close()},focus:t.onFocus,input:t.onInput,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.metaKey?t.onSubmit.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.ctrlKey?t.onSubmit.apply(null,arguments):null},function(e){return e.metaKey?e.ctrlKey||e.shiftKey||e.altKey?null:t.onShortcut.apply(null,arguments):null},function(e){return e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onShortcut.apply(null,arguments):null}],dragover:t.onOver,dragleave:t.onOut,drop:t.onDrop}},"textarea",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,value:t.value},!1))])],1)])}),[],!1,null,null,null,null).exports;const Ss=Y({mixins:[Le,Pe,_s,Bn],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-textarea-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,type:"textarea",theme:"field"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Os={props:{display:{type:String,default:"HH:mm"},max:String,min:String,step:{type:Object,default:()=>({size:5,unit:"minute"})},type:{type:String,default:"time"},value:String}};const As=Y({mixins:[Rn,Os],computed:{inputType:()=>"time"}},null,null,!1,null,null,null,null).exports;const Ms=Y({mixins:[Le,Pe,Os],inheritAttrs:!1,props:{icon:{type:String,default:"clock"},times:{type:Boolean,default:!0}},methods:{focus(){this.$refs.input.focus()},select(t){var e;this.$emit("input",t),null==(e=this.$refs.times)||e.close()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-time-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"time"},on:{input:function(e){return t.$emit("input",e??"")}},scopedSlots:t._u([t.times?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.icon??"clock",title:t.$t("time.select")},on:{click:function(e){return t.$refs.times.toggle()}}}),e("k-dropdown-content",{ref:"times",attrs:{"align-x":"end"}},[e("k-timeoptions-input",{attrs:{display:t.display,value:t.value},on:{input:t.select}})],1)]},proxy:!0}:null],null,!0)},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,js={props:{autofocus:Boolean,disabled:Boolean,id:[Number,String],text:{type:[Array,String]},required:Boolean,value:Boolean}};const Is=Y({mixins:[En,js],computed:{label(){const t=this.text??[this.$t("off"),this.$t("on")];return Array.isArray(t)?this.value?t[1]:t[0]:t}},watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{onEnter(t){"Enter"===t.key&&this.$refs.input.click()},onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.$refs.input.focus()}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this;return(0,t._self._c)("k-choice-input",{ref:"input",staticClass:"k-toggle-input",attrs:{id:t.id,checked:t.value,disabled:t.disabled,label:t.label,type:"checkbox",variant:"toggle"},on:{input:function(e){return t.$emit("input",e)}}})}),[],!1,null,null,null,null).exports;const Ts=Y({mixins:[Le,Pe,js],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-toggle-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"toggle"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Es={mixins:[Tn],props:{columns:Number,grow:Boolean,labels:Boolean,options:Array,reset:Boolean,value:[String,Number,Boolean]}};const Ds=Y({mixins:[En,Es],watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){var t;null==(t=this.$el.querySelector("input[checked]")||this.$el.querySelector("input"))||t.focus()},onClick(t){t===this.value&&this.reset&&!this.required&&this.$emit("input","")},onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.focus()}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return t.options.length?e("ul",{staticClass:"k-toggles-input",style:"--options:"+(t.columns??t.options.length),attrs:{"data-invalid":t.$v.$invalid,"data-labels":t.labels}},t._l(t.options,(function(n,i){return e("li",{key:i,attrs:{"data-disabled":t.disabled}},[e("input",{staticClass:"input-hidden",attrs:{id:t.id+"-"+i,"aria-label":n.text,disabled:t.disabled,name:t.id,type:"radio"},domProps:{value:n.value,checked:t.value===n.value},on:{click:function(e){return t.onClick(n.value)},change:function(e){return t.onInput(n.value)}}}),e("label",{attrs:{for:t.id+"-"+i,title:n.text}},[n.icon?e("k-icon",{attrs:{type:n.icon}}):t._e(),t.labels||!n.icon?e("span",{staticClass:"k-toggles-text",domProps:{innerHTML:t._s(n.text)}}):t._e()],1)])})),0):e("k-empty",{attrs:{icon:"info",theme:"info"}},[t._v(t._s(t.$t("options.none")))])}),[],!1,null,null,null,null).exports;const Ls=Y({mixins:[Le,Pe,Es],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()},onInput(t){this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-toggles-field"},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",class:{grow:t.grow},attrs:{id:t._uid,theme:"field",type:"toggles"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Bs={mixins:[Un],props:{autocomplete:{type:String,default:"url"},placeholder:{type:String,default:()=>window.panel.$t("url.placeholder")},type:{type:String,default:"url"}}};const qs=Y({extends:Hn,mixins:[Bs]},null,null,!1,null,null,null,null).exports;const Ps=Y({mixins:[Le,Pe,Bs],inheritAttrs:!1,props:{link:{type:Boolean,default:!0},icon:{type:String,default:"url"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-url-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"url"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.link?e("k-button",{staticClass:"k-input-icon-button",attrs:{icon:t.icon,link:t.value,title:t.$t("open"),tabindex:"-1",target:"_blank"}}):t._e()]},proxy:!0}])},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Ns=Y({extends:Jn,type:"users",computed:{emptyProps(){return{icon:"users",text:this.empty??this.$t("field.users.empty")}}}},null,null,!1,null,null,null,null).exports;const zs=Y({mixins:[Le,Pe,Fi,Bn],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-writer-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{after:t.after,before:t.before,icon:t.icon,theme:"field",type:"writer"},on:{input:function(e){return t.$emit("input",e)}}},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,Fs={install(t){t.component("k-blocks-field",In),t.component("k-checkboxes-field",qn),t.component("k-color-field",zn),t.component("k-date-field",Yn),t.component("k-email-field",Wn),t.component("k-files-field",Gn),t.component("k-gap-field",Xn),t.component("k-headline-field",Qn),t.component("k-info-field",Zn),t.component("k-layout-field",ti),t.component("k-line-field",ei),t.component("k-link-field",ni),t.component("k-list-field",Vi),t.component("k-multiselect-field",Qi),t.component("k-number-field",es),t.component("k-object-field",ns),t.component("k-pages-field",is),t.component("k-password-field",ls),t.component("k-radio-field",us),t.component("k-range-field",ps),t.component("k-select-field",fs),t.component("k-slug-field",bs),t.component("k-structure-field",vs),t.component("k-tags-field",Xi),t.component("k-text-field",xs),t.component("k-textarea-field",Ss),t.component("k-tel-field",ws),t.component("k-time-field",Ms),t.component("k-toggle-field",Ts),t.component("k-toggles-field",Ls),t.component("k-url-field",Ps),t.component("k-users-field",Ns),t.component("k-writer-field",zs)}},Rs={mixins:[cs],props:{max:{default:1,type:Number},min:{default:0,type:Number},step:{default:.01,type:Number},tooltip:{default:!1,type:[Boolean,Object]}}};const Ys=Y({mixins:[ds,Rs]},(function(){var t=this;return(0,t._self._c)("k-range-input",t._b({staticClass:"k-alpha-input",on:{input:function(e){return t.$emit("input",e)}}},"k-range-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const Us=Y({mixins:[Tn],props:{max:String,min:String,value:{default:"",type:String}},data(){return{maxdate:null,mindate:null,month:null,selected:null,today:this.$library.dayjs(),year:null}},computed:{numberOfDays(){return this.toDate().daysInMonth()},firstWeekday(){const t=this.toDate().day();return t>0?t:7},weekdays(){return["mon","tue","wed","thu","fri","sat","sun"].map((t=>this.$t("days."+t)))},weeks(){const t=this.firstWeekday-1;return Math.ceil((this.numberOfDays+t)/7)},monthnames(){return["january","february","march","april","may","june","july","august","september","october","november","december"].map((t=>this.$t("months."+t)))},months(){var t=[];return this.monthnames.forEach(((e,n)=>{t.push({value:n,text:e})})),t},years(){const t=this.year-20,e=this.year+20;return this.toOptions(t,e)}},watch:{max:{handler(t,e){t!==e&&(this.maxdate=this.$library.dayjs.interpret(t,"date"))},immediate:!0},min:{handler(t,e){t!==e&&(this.mindate=this.$library.dayjs.interpret(t,"date"))},immediate:!0},value:{handler(t,e){t!==e&&(this.selected=this.$library.dayjs.interpret(t,"date"),this.show(this.selected))},immediate:!0}},methods:{days(t){let e=[];const n=7*(t-1)+1,i=n+7;for(let s=n;sthis.numberOfDays;e.push(n?"":t)}return e},isDisabled(t){const e=this.toDate(t);return this.disabled||e.isBefore(this.mindate,"day")||e.isAfter(this.maxdate,"day")},isSelected(t){return this.toDate(t).isSame(this.selected,"day")},isToday(t){return this.toDate(t).isSame(this.today,"day")},onNext(){const t=this.toDate().add(1,"month");this.show(t)},onPrev(){const t=this.toDate().subtract(1,"month");this.show(t)},select(t){this.$emit("input",(null==t?void 0:t.toISO("date"))??null)},show(t){this.month=(t??this.today).month(),this.year=(t??this.today).year()},toDate(t=1,e=this.month){return this.$library.dayjs(`${this.year}-${e+1}-${t}`)},toOptions(t,e){for(var n=[],i=t;i<=e;i++)n.push({value:i,text:this.$helper.pad(i)});return n}}},(function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"k-calendar-input"},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("date.select")))]),e("nav",[e("k-button",{attrs:{title:t.$t("prev"),icon:"angle-left"},on:{click:t.onPrev}}),e("span",{staticClass:"k-calendar-selects"},[e("k-select-input",{attrs:{"aria-label":t.$t("month"),autofocus:t.autofocus,options:t.months,empty:!1,required:!0,value:t.month},on:{input:function(e){t.month=Number(e)}}}),e("k-select-input",{attrs:{"aria-label":t.$t("year"),options:t.years,empty:!1,required:!0,value:t.year},on:{input:function(e){t.year=Number(e)}}})],1),e("k-button",{attrs:{title:t.$t("next"),icon:"angle-right"},on:{click:t.onNext}})],1),e("table",{key:t.year+"-"+t.month,staticClass:"k-calendar-table"},[e("thead",[e("tr",t._l(t.weekdays,(function(n){return e("th",{key:"weekday_"+n},[t._v(" "+t._s(n)+" ")])})),0)]),e("tbody",t._l(t.weeks,(function(n){return e("tr",{key:"week_"+n},t._l(t.days(n),(function(n,i){return e("td",{key:"day_"+i,staticClass:"k-calendar-day",attrs:{"aria-current":!!t.isToday(n)&&"date","aria-selected":!!t.isSelected(n)&&"date"}},[n?e("k-button",{attrs:{disabled:t.isDisabled(n),text:n},on:{click:function(e){t.select(t.toDate(n))}}}):t._e()],1)})),0)})),0),e("tfoot",[e("tr",[e("td",{staticClass:"k-calendar-today",attrs:{colspan:"7"}},[e("k-button",{attrs:{disabled:t.disabled,text:t.$t("today")},on:{click:function(e){return t.select(t.today)}}})],1)])])]),e("input",{staticClass:"sr-only",attrs:{id:t.id,disabled:t.disabled,min:t.min,max:t.max,name:t.name,required:t.required,tabindex:"-1",type:"date"},domProps:{value:t.value}})])}),[],!1,null,null,null,null).exports;const Hs=Y({mixins:[En,{mixins:[Tn],props:{checked:{type:Boolean},info:{type:String},label:{type:String},type:{default:"checkbox",type:String},value:{type:[Boolean,Number,String]},variant:{type:String}}}]},(function(){var t=this,e=t._self._c;return e("label",{staticClass:"k-choice-input",attrs:{"aria-disabled":t.disabled}},[e("input",t._b({class:{"sr-only":"invisible"===t.variant},attrs:{"data-variant":t.variant},on:{input:function(e){return t.$emit("input",e.target.checked)}}},"input",{autofocus:t.autofocus,id:t.id,checked:t.checked,disabled:t.disabled,name:t.name,required:t.required,type:t.type,value:t.value},!1)),t.label||t.info?e("span",{staticClass:"k-choice-input-label"},[e("span",{staticClass:"k-choice-input-label-text",domProps:{innerHTML:t._s(t.label)}}),t.info?e("span",{staticClass:"k-choice-input-label-info",domProps:{innerHTML:t._s(t.info)}}):t._e()]):t._e()])}),[],!1,null,null,null,null).exports;const Vs=Y({extends:Hs},null,null,!1,null,null,null,null).exports,Ks={mixins:[Tn,be,we,Oe,Ae,Ie,Te,De],props:{ariaLabel:String,type:{default:"text",type:String},value:{type:String}}};const Ws=Y({mixins:[En,Ks]},(function(){var t=this;return(0,t._self._c)("input",t._b({directives:[{name:"direction",rawName:"v-direction"}],staticClass:"k-string-input",attrs:{"aria-label":t.ariaLabel,"data-font":t.font},on:{input:function(e){return t.$emit("input",e.target.value)}}},"input",{autocomplete:t.autocomplete,autofocus:t.autofocus,disabled:t.disabled,id:t.id,maxlength:t.maxlength,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,type:t.type,value:t.value},!1))}),[],!1,null,null,null,null).exports,Js={mixins:[Ks],props:{alpha:{type:Boolean,default:!0},autocomplete:{default:"off",type:String},format:{type:String,default:"hex",validator:t=>["hex","rgb","hsl"].includes(t)},spellcheck:{default:"false",type:String}}};const Gs=Y({mixins:[Ws,Js],watch:{value(){this.validate()}},mounted(){this.validate()},methods:{convert(t){if(!t)return t;const e=document.createElement("div");e.style.color=t,document.body.append(e),t=window.getComputedStyle(e).color,e.remove();try{return this.$library.colors.toString(t,this.format,this.alpha)}catch(n){return t}},convertAndEmit(t){this.emit(this.convert(t))},emit(t){this.$emit("input",t)},onBlur(){this.convertAndEmit(this.value)},onPaste(t){t instanceof ClipboardEvent&&(t=this.$helper.clipboard.read(t,!0)),this.convertAndEmit(t)},async onSave(){var t;this.convertAndEmit(this.value),await this.$nextTick(),null==(t=this.$el.form)||t.requestSubmit()},validate(){let t="";null===this.$library.colors.parse(this.value)&&(t=this.$t("error.validation.color",{format:this.format})),this.$el.setCustomValidity(t)}}},(function(){var t=this;return(0,t._self._c)("k-string-input",t._b({staticClass:"k-colorname-input",attrs:{type:"text"},on:{input:function(e){return t.$emit("input",e)}},nativeOn:{blur:function(e){return t.onBlur.apply(null,arguments)},paste:function(e){return t.onPaste.apply(null,arguments)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.metaKey?(e.stopPropagation(),e.preventDefault(),t.onSave.apply(null,arguments)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSave.apply(null,arguments)}]}},"k-string-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const Xs=Y({mixins:[as,{mixins:[rs],props:{format:{type:String,default:"hex",validator:t=>["hex","rgb","hsl"].includes(t)},value:{type:String}}}],computed:{choices(){return this.options.map((t=>({...t,title:t.text??t.value,value:this.colorToString(t.value)})))}},methods:{colorToString(t){try{return this.$library.colors.toString(t,this.format)}catch{return t}}}},(function(){var t=this,e=t._self._c;return t.choices.length?e("fieldset",{staticClass:"k-coloroptions-input",attrs:{disabled:t.disabled}},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("options")))]),e("ul",t._l(t.choices,(function(n,i){return e("li",{key:i},[e("label",{attrs:{title:n.title}},[e("input",{staticClass:"input-hidden",attrs:{autofocus:t.autofocus&&0===i,disabled:t.disabled,name:t.name??t._uid,required:t.required,type:"radio"},domProps:{checked:n.value===t.value,value:n.value},on:{click:function(e){return t.toggle(n.value)},input:function(e){return t.$emit("input",n.value)}}}),e("k-color-frame",{attrs:{color:n.value}})],1)])})),0)]):t._e()}),[],!1,null,null,null,null).exports;const Qs=Y({mixins:[En,{mixins:[Tn,je],props:{alpha:{default:!0,type:Boolean},format:{default:"hex",type:String,validator:t=>["hex","rgb","hsl"].includes(t)},value:{type:[Object,String]}}}],data:()=>({color:{h:0,s:0,v:1,a:1},formatted:null}),computed:{coords(){return this.value?{x:100*this.color.s,y:100*(1-this.color.v)}:null},hsl(){try{const t=this.$library.colors.convert(this.color,"hsl");return{h:t.h,s:(100*t.s).toFixed()+"%",l:(100*t.l).toFixed()+"%",a:t.a}}catch{return{h:0,s:"0%",l:"0%",a:1}}}},watch:{value:{handler(t,e){if(t===e||t===this.formatted)return;const n=this.$library.colors.parseAs(t??"","hsv");n?(this.formatted=this.$library.colors.toString(n,this.format),this.color=n):(this.formatted=null,this.color={h:0,s:0,v:1,a:1})},immediate:!0}},methods:{between:(t,e,n)=>Math.min(Math.max(t,e),n),emit(){return this.formatted=this.$library.colors.toString(this.color,this.format),this.$emit("input",this.formatted)},focus(){this.$refs.coords.focus()},setAlpha(t){this.color.a=this.alpha?this.between(Number(t),0,1):1,this.emit()},setCoords(t){if(!t)return this.$emit("input","");const e=Math.round(t.x),n=Math.round(t.y);this.color.s=this.between(e/100,0,1),this.color.v=this.between(1-n/100,0,1),this.emit()},setHue(t){this.color.h=this.between(Number(t),0,360),this.emit()}}},(function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"k-colorpicker-input",style:{"--h":t.hsl.h,"--s":t.hsl.s,"--l":t.hsl.l,"--a":t.hsl.a}},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("color")))]),e("k-coords-input",{ref:"coords",attrs:{autofocus:t.autofocus,disabled:t.disabled,required:t.required,value:t.coords},on:{input:function(e){return t.setCoords(e)}}}),e("label",{attrs:{"aria-label":t.$t("hue")}},[e("k-hue-input",{attrs:{disabled:t.disabled,required:t.required,value:t.color.h},on:{input:function(e){return t.setHue(e)}}})],1),t.alpha?e("label",{attrs:{"aria-label":t.$t("alpha")}},[e("k-alpha-input",{attrs:{disabled:t.disabled,required:t.required,value:t.color.a},on:{input:function(e){return t.setAlpha(e)}}})],1):t._e(),e("k-coloroptions-input",{attrs:{disabled:t.disabled,format:t.format,options:t.options,required:t.required,value:t.value},on:{input:function(e){return t.$emit("input",e)}}}),e("input",{staticClass:"input-hidden",attrs:{name:t.name,required:t.required,tabindex:"-1",type:"text"},domProps:{value:t.formatted}})],1)}),[],!1,null,null,null,null).exports;const Zs=Y({mixins:[En,{mixins:[Tn],props:{reset:{default:!0,type:Boolean},value:{default:()=>({x:0,y:0}),type:Object}}}],data:()=>({x:0,y:0}),watch:{value:{handler(t){const e=this.parse(t);this.x=(null==e?void 0:e.x)??0,this.y=(null==e?void 0:e.y)??0},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("button"))||t.focus()},getCoords:(t,e)=>({x:Math.min(Math.max(t.clientX-e.left,0),e.width),y:Math.min(Math.max(t.clientY-e.top,0),e.height)}),onDelete(){this.reset&&!this.required&&this.$emit("input",null)},onDrag(t){if(0!==t.button)return;const e=t=>this.onMove(t),n=()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",e),window.addEventListener("mouseup",n)},onEnter(){var t;null==(t=this.$el.form)||t.requestSubmit()},onInput(t,e){if(t.preventDefault(),t.stopPropagation(),this.disabled)return!1;this.x=Math.min(Math.max(parseFloat(e.x??this.x??0),0),100),this.y=Math.min(Math.max(parseFloat(e.y??this.y??0),0),100),this.$emit("input",{x:this.x,y:this.y})},onKeys(t){const e=t.shiftKey?10:1,n={ArrowUp:{y:this.y-e},ArrowDown:{y:this.y+e},ArrowLeft:{x:this.x-e},ArrowRight:{x:this.x+e}};n[t.key]&&this.onInput(t,n[t.key])},async onMove(t){const e=this.$el.getBoundingClientRect(),n=this.getCoords(t,e),i=n.x/e.width*100,s=n.y/e.height*100;this.onInput(t,{x:i,y:s}),await this.$nextTick(),this.focus()},parse(t){if("object"==typeof t)return t;const e={"top left":{x:0,y:0},"top center":{x:50,y:0},"top right":{x:100,y:0},"center left":{x:0,y:50},center:{x:50,y:50},"center center":{x:50,y:50},"center right":{x:100,y:50},"bottom left":{x:0,y:100},"bottom center":{x:50,y:100},"bottom right":{x:100,y:100}};if(e[t])return e[t];const n=t.split(",").map((t=>t.trim()));return{x:n[0],y:n[1]??0}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-coords-input",attrs:{"aria-disabled":t.disabled,"data-empty":!t.value},on:{mousedown:t.onDrag,click:t.onMove,keydown:t.onKeys}},[t._t("default"),e("button",{staticClass:"k-coords-input-thumb",style:{left:`${t.x}%`,top:`${t.y}%`},attrs:{id:t.id,autofocus:t.autofocus,disabled:t.disabled},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onEnter.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.onDelete.apply(null,arguments)}]}}),e("input",{staticClass:"input-hidden",attrs:{name:t.name,required:t.required,tabindex:"-1",type:"text"},domProps:{value:t.value?[t.value.x,t.value.y]:null}})],2)}),[],!1,null,null,null,null).exports,to={mixins:[cs],props:{max:{default:360,type:Number},min:{default:0,type:Number},step:{default:1,type:Number},tooltip:{default:!1,type:[Boolean,Object]}}};const eo=Y({mixins:[ds,to]},(function(){var t=this;return(0,t._self._c)("k-range-input",t._b({staticClass:"k-hue-input",on:{input:function(e){return t.$emit("input",e)}}},"k-range-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const no=Y({extends:Gi,mixins:[{mixins:[Ji],props:{accept:{default:"string",type:String}}}]},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-multiselect-input"},[e("k-tags",t._b({ref:"tags",on:{input:function(e){return t.$emit("input",e)}},nativeOn:{click:function(t){t.stopPropagation()}}},"k-tags",t.$props,!1))],1)}),[],!1,null,null,null,null).exports;const io=Y({mixins:[Ws,{mixins:[Ks],props:{placeholder:{default:()=>window.panel.$t("search")+" …",type:String}}}]},(function(){var t=this;return(0,t._self._c)("k-string-input",t._b({staticClass:"k-search-input",attrs:{type:"search"},on:{input:function(e){return t.$emit("input",e)}}},"k-string-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const so=Y({mixins:[En,{mixins:[Tn]}],props:{display:{type:String,default:"HH:mm"},value:String},computed:{day(){return this.formatTimes([6,7,8,9,10,11,"-",12,13,14,15,16,17])},night(){return this.formatTimes([18,19,20,21,22,23,"-",0,1,2,3,4,5])}},methods:{focus(){this.$el.querySelector("button").focus()},formatTimes(t){return t.map((t=>{if("-"===t)return t;const e=this.$library.dayjs(t+":00","H:mm");return{display:e.format(this.display),select:e.toISO("time")}}))},select(t){this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-timeoptions-input"},[e("div",[e("h3",[e("k-icon",{attrs:{type:"sun"}}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v(t._s(t.$t("day")))])],1),e("ul",t._l(t.day,(function(n,i){return e("li",{key:n.select},["-"===n?e("hr"):e("k-button",{attrs:{autofocus:t.autofocus&&0===i,disabled:t.disabled,selected:n.select===t.value&&"time"},on:{click:function(e){return t.select(n.select)}}},[t._v(" "+t._s(n.display)+" ")])],1)})),0)]),e("div",[e("h3",[e("k-icon",{attrs:{type:"moon"}}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v(t._s(t.$t("night")))])],1),e("ul",t._l(t.night,(function(n){return e("li",{key:n.select},["-"===n?e("hr"):e("k-button",{attrs:{disabled:t.disabled,selected:n.select===t.value&&"time"},on:{click:function(e){return t.select(n.select)}}},[t._v(" "+t._s(n.display)+" ")])],1)})),0)])])}),[],!1,null,null,null,null).exports,oo={install(t){t.component("k-alpha-input",Ys),t.component("k-calendar-input",Us),t.component("k-checkbox-input",Vs),t.component("k-checkboxes-input",Ln),t.component("k-choice-input",Hs),t.component("k-color-input",Nn),t.component("k-colorname-input",Gs),t.component("k-coloroptions-input",Xs),t.component("k-colorpicker-input",Qs),t.component("k-coords-input",Zs),t.component("k-date-input",Rn),t.component("k-email-input",Kn),t.component("k-hue-input",eo),t.component("k-list-input",Hi),t.component("k-multiselect-input",no),t.component("k-number-input",ts),t.component("k-password-input",os),t.component("k-radio-input",as),t.component("k-range-input",ds),t.component("k-search-input",io),t.component("k-select-input",ms),t.component("k-slug-input",ks),t.component("k-string-input",Ws),t.component("k-tags-input",Gi),t.component("k-tel-input",$s),t.component("k-text-input",Hn),t.component("k-textarea-input",Cs),t.component("k-time-input",As),t.component("k-timeoptions-input",so),t.component("k-toggle-input",Is),t.component("k-toggles-input",Ds),t.component("k-url-input",qs),t.component("k-writer-input",Ri),t.component("k-calendar",Us),t.component("k-times",so)}};const lo=Y({props:{attrs:[Array,Object],columns:Array,disabled:Boolean,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,id:String,isSelected:Boolean,layouts:Array,settings:Object},computed:{tabs(){let t=this.settings.tabs;for(const[e,n]of Object.entries(t))for(const i in n.fields)t[e].fields[i].endpoints={field:this.endpoints.field+"/fields/"+i,section:this.endpoints.section,model:this.endpoints.model};return t}},methods:{openSettings(){this.$panel.drawer.open({component:"k-form-drawer",props:{icon:"settings",tabs:this.tabs,title:this.$t("settings"),value:this.attrs},on:{input:t=>this.$emit("updateAttrs",t)}})},remove(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.layout.delete.confirm")},on:{submit:()=>{this.$emit("remove"),this.$panel.dialog.close()}}})}}},(function(){var t=this,e=t._self._c;return e("section",{staticClass:"k-layout",attrs:{"data-selected":t.isSelected,tabindex:"0"},on:{click:function(e){return t.$emit("select")}}},[e("k-grid",{staticClass:"k-layout-columns"},t._l(t.columns,(function(n,i){return e("k-layout-column",t._b({key:n.id,attrs:{endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets},on:{input:function(e){return t.$emit("updateColumn",{column:n,columnIndex:i,blocks:e})}}},"k-layout-column",n,!1))})),1),t.disabled?t._e():e("nav",{staticClass:"k-layout-toolbar"},[t.settings?e("k-button",{staticClass:"k-layout-toolbar-button",attrs:{title:t.$t("settings"),icon:"settings"},on:{click:t.openSettings}}):t._e(),e("k-button",{staticClass:"k-layout-toolbar-button",attrs:{icon:"angle-down"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{"align-x":"end"}},[e("k-dropdown-item",{attrs:{icon:"angle-up"},on:{click:function(e){return t.$emit("prepend")}}},[t._v(" "+t._s(t.$t("insert.before"))+" ")]),e("k-dropdown-item",{attrs:{icon:"angle-down"},on:{click:function(e){return t.$emit("append")}}},[t._v(" "+t._s(t.$t("insert.after"))+" ")]),e("hr"),t.settings?e("k-dropdown-item",{attrs:{icon:"settings"},on:{click:t.openSettings}},[t._v(" "+t._s(t.$t("settings"))+" ")]):t._e(),e("k-dropdown-item",{attrs:{icon:"copy"},on:{click:function(e){return t.$emit("duplicate")}}},[t._v(" "+t._s(t.$t("duplicate"))+" ")]),e("k-dropdown-item",{attrs:{disabled:1===t.layouts.length,icon:"dashboard"},on:{click:function(e){return t.$emit("change")}}},[t._v(" "+t._s(t.$t("field.layout.change"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{icon:"template"},on:{click:function(e){return t.$emit("copy")}}},[t._v(" "+t._s(t.$t("copy"))+" ")]),e("k-dropdown-item",{attrs:{icon:"download"},on:{click:function(e){return t.$emit("paste")}}},[t._v(" "+t._s(t.$t("paste.after"))+" ")]),e("hr"),e("k-dropdown-item",{attrs:{icon:"trash"},on:{click:t.remove}},[t._v(" "+t._s(t.$t("field.layout.delete"))+" ")])],1),e("k-sort-handle")],1)],1)}),[],!1,null,null,null,null).exports;const ro=Y({props:{blocks:Array,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,id:String,isSelected:Boolean,width:{type:String,default:"1/1"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-column k-layout-column",style:"--width: "+t.width,attrs:{id:t.id,tabindex:"0"},on:{dblclick:function(e){return t.$refs.blocks.choose(t.blocks.length)}}},[e("k-blocks",{ref:"blocks",attrs:{endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets,value:t.blocks,group:"layout"},on:{input:function(e){return t.$emit("input",e)}},nativeOn:{dblclick:function(t){t.stopPropagation()}}})],1)}),[],!1,null,null,null,null).exports;const ao=Y({props:{disabled:Boolean,empty:String,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,layouts:Array,max:Number,selector:Object,settings:Object,value:Array},data(){return{current:null,nextIndex:null,rows:this.value,selected:null}},computed:{draggableOptions(){return{id:this._uid,handle:!0,list:this.rows}}},watch:{value(){this.rows=this.value}},methods:{copy(t,e){if(0===this.rows.length)return!1;const n=void 0!==e?this.rows[e]:this.rows;this.$helper.clipboard.write(JSON.stringify(n),t),this.$panel.notification.success({message:this.$t("copy.success",{count:n.length??1}),icon:"template"})},change(t,e){const n=e.columns.map((t=>t.width)),i=this.layouts.findIndex((t=>t.toString()===n.toString()));this.$panel.dialog.open({component:"k-layout-selector",props:{label:this.$t("field.layout.change"),layouts:this.layouts,selector:this.selector,value:this.layouts[i]},on:{submit:n=>{this.onChange(n,i,{rowIndex:t,layoutIndex:i,layout:e}),this.$panel.dialog.close()}}})},duplicate(t,e){const n=this.$helper.clone(e),i=this.updateIds(n);this.rows.splice(t+1,0,...i),this.save()},async onAdd(t){let e=await this.$api.post(this.endpoints.field+"/layout",{columns:t});this.rows.splice(this.nextIndex,0,e),this.save()},async onChange(t,e,n){if(e===this.layouts[n.layoutIndex])return;const i=n.layout,s=await this.$api.post(this.endpoints.field+"/layout",{attrs:i.attrs,columns:t}),o=i.columns.filter((t=>{var e;return(null==(e=null==t?void 0:t.blocks)?void 0:e.length)>0})),l=[];if(0===o.length)l.push(s);else{const t=Math.ceil(o.length/s.columns.length)*s.columns.length;for(let e=0;e{var i;return t.blocks=(null==(i=o[n+e])?void 0:i.blocks)??[],t})),t.columns.filter((t=>{var e;return null==(e=null==t?void 0:t.blocks)?void 0:e.length})).length&&l.push(t)}}this.rows.splice(n.rowIndex,1,...l),this.save()},async paste(t,e=this.rows.length){let n=await this.$api.post(this.endpoints.field+"/layout/paste",{json:this.$helper.clipboard.read(t)});n.length&&(this.rows.splice(e,0,...n),this.save()),this.$panel.notification.success({message:this.$t("paste.success",{count:n.length}),icon:"download"})},pasteboard(t){this.$panel.dialog.open({component:"k-block-pasteboard",on:{paste:e=>this.paste(e,t)}})},remove(t){const e=this.rows.findIndex((e=>e.id===t.id));-1!==e&&this.$delete(this.rows,e),this.save()},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.layout.delete.confirm.all")},on:{submit:()=>{this.rows=[],this.save(),this.$panel.dialog.close()}}})},save(){this.$emit("input",this.rows)},select(t){if(this.nextIndex=t,1===this.layouts.length)return this.onAdd(this.layouts[0]);this.$panel.dialog.open({component:"k-layout-selector",props:{layouts:this.layouts,selector:this.selector,value:null},on:{submit:t=>{this.onAdd(t),this.$panel.dialog.close()}}})},updateAttrs(t,e){this.rows[t].attrs=e,this.save()},updateColumn(t){this.rows[t.index].columns[t.columnIndex].blocks=t.blocks,this.save()},updateIds(t){return!1===Array.isArray(t)&&(t=[t]),t.map((t=>(t.id=this.$helper.uuid(),t.columns=t.columns.map((t=>(t.id=this.$helper.uuid(),t.blocks=t.blocks.map((t=>(t.id=this.$helper.uuid(),t))),t))),t)))}}},(function(){var t=this,e=t._self._c;return e("div",[t.rows.length?[e("k-draggable",t._b({staticClass:"k-layouts",on:{sort:t.save}},"k-draggable",t.draggableOptions,!1),t._l(t.rows,(function(n,i){return e("k-layout",t._b({key:n.id,attrs:{disabled:t.disabled,endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets,"is-selected":t.selected===n.id,layouts:t.layouts,settings:t.settings},on:{append:function(e){return t.select(i+1)},change:function(e){return t.change(i,n)},copy:function(e){return t.copy(e,i)},duplicate:function(e){return t.duplicate(i,n)},paste:function(e){return t.pasteboard(i+1)},prepend:function(e){return t.select(i)},remove:function(e){return t.remove(n)},select:function(e){t.selected=n.id},updateAttrs:function(e){return t.updateAttrs(i,e)},updateColumn:function(e){return t.updateColumn({layout:n,index:i,...e})}}},"k-layout",n,!1))})),1),t.disabled?t._e():e("footer",{staticClass:"k-layouts-footer k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{title:t.$t("add"),icon:"add",size:"xs",variant:"filled"},on:{click:function(e){return t.select(t.rows.length)}}})],1)]:[e("k-empty",{staticClass:"k-layout-empty",attrs:{icon:"dashboard"},on:{click:function(e){return t.select(0)}}},[t._v(" "+t._s(t.empty??t.$t("field.layout.empty"))+" ")])]],2)}),[],!1,null,null,null,null).exports;const uo=Y({mixins:[pt],inheritAttrs:!1,props:{cancelButton:{default:!1},label:{default(){return this.$t("field.layout.select")},type:String},layouts:{type:Array},selector:Object,submitButton:{default:!1},value:{type:Array}}},(function(){var t,e,n=this,i=n._self._c;return i("k-dialog",n._b({staticClass:"k-layout-selector",attrs:{size:(null==(t=n.selector)?void 0:t.size)??"medium"},on:{cancel:function(t){return n.$emit("cancel")},submit:function(t){return n.$emit("submit",n.value)}}},"k-dialog",n.$props,!1),[i("h3",{staticClass:"k-label"},[n._v(n._s(n.label))]),i("k-navigate",{staticClass:"k-layout-selector-options",style:"--columns:"+Number((null==(e=n.selector)?void 0:e.columns)??3),attrs:{axis:"x"}},n._l(n.layouts,(function(t,e){return i("button",{key:e,staticClass:"k-layout-selector-option",attrs:{"aria-current":n.value===t,"aria-label":t.join(","),value:t},on:{click:function(e){return n.$emit("input",t)}}},[i("k-grid",{attrs:{"aria-hidden":""}},n._l(t,(function(t,e){return i("k-column",{key:e,attrs:{width:t}})})),1)],1)})),0)],1)}),[],!1,null,null,null,null).exports,co={install(t){t.component("k-layout",lo),t.component("k-layout-column",ro),t.component("k-layouts",ao),t.component("k-layout-selector",uo)}},po={inheritAttrs:!1,props:{column:{default:()=>({}),type:Object},field:{default:()=>({}),type:Object},value:{}}},ho={props:{html:{type:Boolean}}};const mo=Y({mixins:[ho],inheritAttrs:!1,props:{bubbles:[Array,String]},computed:{items(){let t=this.bubbles;return"string"==typeof t&&(t=t.split(",")),t.map((t=>"string"===t?{text:t}:t))}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-bubbles"},t._l(t.items,(function(n,i){return e("li",{key:i},[e("k-bubble",t._b({attrs:{html:t.html}},"k-bubble",n,!1))],1)})),0)}),[],!1,null,null,null,null).exports;const fo=Y({mixins:[po,ho],props:{value:{default:()=>[],type:[Array,String]}},computed:{bubbles(){let t=this.value;const e=this.column.options??this.field.options??[];return"string"==typeof t&&(t=t.split(",")),(t??[]).map((t=>{"string"==typeof t&&(t={value:t,text:t});for(const n of e)n.value===t.value&&(t.text=n.text);return t}))}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-bubbles-field-preview",class:t.$options.class},[e("k-bubbles",{attrs:{bubbles:t.bubbles,html:t.html}})],1)}),[],!1,null,null,null,null).exports;const go=Y({extends:fo,inheritAttrs:!1,class:"k-array-field-preview",computed:{bubbles(){return[{text:1===this.value.length?`1 ${this.$t("entry")}`:`${this.value.length} ${this.$t("entries")}`}]}}},null,null,!1,null,null,null,null).exports;const ko=Y({mixins:[po],props:{value:String},computed:{text(){var t;if(!this.value)return;const e=this.$library.colors.toString(this.value,this.field.format,this.field.alpha),n=null==(t=this.field.options)?void 0:t.find((t=>this.$library.colors.toString(t.value,this.field.format,this.field.alpha)===e));return n?n.text:null}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-color-field-preview"},[e("k-color-frame",{attrs:{color:t.value}}),t.text?[t._v(" "+t._s(t.text)+" ")]:t._e()],2)}),[],!1,null,null,null,null).exports;const bo=Y({mixins:[po],inheritAttrs:!1,computed:{text(){return this.value}}},(function(){var t=this;return(0,t._self._c)("p",{staticClass:"k-text-field-preview",class:t.$options.class},[t._v(" "+t._s(t.column.before)+" "),t._t("default",(function(){return[t._v(t._s(t.text))]})),t._v(" "+t._s(t.column.after)+" ")],2)}),[],!1,null,null,null,null).exports;const vo=Y({extends:bo,props:{value:String},class:"k-date-field-preview",computed:{display(){return this.column.display??this.field.display},format(){var t;let e=this.display??"YYYY-MM-DD";return(null==(t=this.time)?void 0:t.display)&&(e+=" "+this.time.display),e},parsed(){return this.$library.dayjs(this.value)},text(){var t;return null==(t=this.parsed)?void 0:t.format(this.format)},time(){return this.column.time??this.field.time}}},null,null,!1,null,null,null,null).exports;const yo=Y({mixins:[po],props:{value:[String,Object]},computed:{link(){return"object"==typeof this.value?this.value.href:this.value},text(){return"object"==typeof this.value?this.value.text:this.link}}},(function(){var t=this,e=t._self._c;return e("p",{staticClass:"k-url-field-preview",class:t.$options.class,attrs:{"data-link":t.link}},[t._v(" "+t._s(t.column.before)+" "),e("k-link",{attrs:{to:t.link},nativeOn:{click:function(t){t.stopPropagation()}}},[e("span",[t._v(t._s(t.text))])]),t._v(" "+t._s(t.column.after)+" ")],1)}),[],!1,null,null,null,null).exports;const $o=Y({extends:yo,class:"k-email-field-preview"},null,null,!1,null,null,null,null).exports;const wo=Y({extends:fo,class:"k-files-field-preview",props:{html:{type:Boolean,default:!0}},computed:{bubbles(){return this.value.map((t=>({text:t.filename,link:t.link,image:t.image})))}}},null,null,!1,null,null,null,null).exports;const xo=Y({mixins:[po],props:{value:Object},computed:{status(){var t;return{...this.$helper.page.status(null==(t=this.value)?void 0:t.status),...this.value}}}},(function(){var t=this,e=t._self._c;return t.value?e("k-button",t._b({staticClass:"k-flag-field-preview",attrs:{size:"md"}},"k-button",t.status,!1)):t._e()}),[],!1,null,null,null,null).exports;const _o=Y({mixins:[po],props:{value:String},computed:{html(){return this.value}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-html-field-preview",class:t.$options.class},[t._v(" "+t._s(t.column.before)+" "),e("div",{staticClass:"k-text",domProps:{innerHTML:t._s(t.html)}}),t._v(" "+t._s(t.column.after)+" ")])}),[],!1,null,null,null,null).exports;const Co=Y({mixins:[po],props:{value:[Object]}},(function(){var t=this,e=t._self._c;return t.value?e("k-item-image",{staticClass:"k-image-field-preview",attrs:{image:t.value}}):t._e()}),[],!1,null,null,null,null).exports;const So=Y({extends:fo,class:"k-object-field-preview",props:{value:[Array,Object]},computed:{bubbles(){return this.value?[{text:"{ ... }"}]:[]}}},null,null,!1,null,null,null,null).exports;const Oo=Y({extends:fo,inheritAttrs:!1,class:"k-pages-field-preview",props:{html:{type:Boolean,default:!0}}},null,null,!1,null,null,null,null).exports;const Ao=Y({extends:vo,class:"k-time-field-preview",computed:{format(){return this.display??"HH:mm"},parsed(){return this.$library.dayjs.iso(this.value,"time")},text(){var t;return null==(t=this.parsed)?void 0:t.format(this.format)}}},null,null,!1,null,null,null,null).exports;const Mo=Y({mixins:[po],computed:{text(){return!1!==this.column.text?this.field.text:null}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-toggle-field-preview"},[e("k-toggle-input",{attrs:{text:t.text,value:t.value},on:{input:function(e){return t.$emit("input",e)}}})],1)}),[],!1,null,null,null,null).exports;const jo=Y({extends:fo,class:"k-users-field-preview",computed:{bubble(){return this.value.map((t=>({text:t.username,link:t.link,image:t.image})))}}},null,null,!1,null,null,null,null).exports,Io={install(t){t.component("k-array-field-preview",go),t.component("k-bubbles-field-preview",fo),t.component("k-color-field-preview",ko),t.component("k-date-field-preview",vo),t.component("k-email-field-preview",$o),t.component("k-files-field-preview",wo),t.component("k-flag-field-preview",xo),t.component("k-html-field-preview",_o),t.component("k-image-field-preview",Co),t.component("k-object-field-preview",So),t.component("k-pages-field-preview",Oo),t.component("k-text-field-preview",bo),t.component("k-toggle-field-preview",Mo),t.component("k-time-field-preview",Ao),t.component("k-url-field-preview",yo),t.component("k-users-field-preview",jo),t.component("k-list-field-preview",_o),t.component("k-writer-field-preview",_o),t.component("k-checkboxes-field-preview",fo),t.component("k-multiselect-field-preview",fo),t.component("k-radio-field-preview",fo),t.component("k-select-field-preview",fo),t.component("k-tags-field-preview",fo),t.component("k-toggles-field-preview",fo)}};const To=Y({props:{editor:{required:!0,type:Object},inline:{default:!0,type:Boolean},marks:{default:()=>["bold","italic","underline","strike","code","|","link","email","|","clear"],type:[Array,Boolean]},nodes:{default:!0,type:[Array,Boolean]}},data:()=>({isOpen:!1,position:{x:0,y:0}}),computed:{activeMarks(){return this.editor.activeMarks},activeNodes(){return this.editor.activeNodes},activeNode(){return Object.values(this.nodeButtons).find((t=>this.isNodeActive(t)))??!1},hasMarks(){return this.$helper.object.length(this.markButtons)>0},hasNodes(){return this.$helper.object.length(this.nodeButtons)>1},markButtons(){if(!1===this.marks)return{};const t=this.editor.buttons("mark");if(!0===this.marks)return t;const e={};for(const[n,i]of this.marks.entries())"|"===i?e["divider"+n]="|":t[i]&&(e[i]=t[i]);return e},nodeButtons(){if(!1===this.nodes)return{};const t=this.editor.buttons("node");if(!0===Array.isArray(this.nodes)&&3!==this.nodes.length&&!1===this.nodes.includes("paragraph")&&t.paragraph&&delete t.paragraph,!0===this.nodes)return t;const e={};for(const n of this.nodes)t[n]&&(e[n]=t[n]);return e}},methods:{close(t){t&&!1!==this.$el.contains(t.relatedTarget)||(this.isOpen=!1)},command(t,...e){this.$emit("command",t,...e)},isNodeActive(t){if(!1===this.activeNodes.includes(t.name))return!1;if("paragraph"===t.name)return 1===this.activeNodes.length;if(t.attrs){if(Object.values(this.editor.activeNodeAttrs).find((t=>JSON.stringify(t)===JSON.stringify(t.attrs))))return!0}return!1},open(){this.isOpen=!0,this.inline&&this.$nextTick(this.setPosition)},setPosition(){const{from:t,to:e}=this.editor.selection,n=this.editor.view.coordsAtPos(t),i=this.editor.view.coordsAtPos(e,!0),s=this.editor.element.getBoundingClientRect();let o=(n.left+i.left)/2-s.left,l=Math.round(s.bottom-n.top)-10;const r=this.$el.clientWidth;o-r/2<0&&(o=o+(r/2-o)-10),o+r/2>s.width&&(o=o-(o+r/2-s.width)+10),this.position={y:l,x:o}}}},(function(){var t=this,e=t._self._c;return t.isOpen||!t.inline?e("nav",{staticClass:"k-toolbar k-writer-toolbar",style:{bottom:t.position.y+"px",left:t.position.x+"px"},attrs:{"data-inline":t.inline}},[t.hasNodes?e("div",{on:{mousedown:function(t){t.preventDefault()}}},[e("k-button",{staticClass:"k-toolbar-button k-writer-toolbar-nodes",attrs:{current:Boolean(t.activeNode),icon:t.activeNode.icon??"title"},on:{click:function(e){return t.$refs.nodes.toggle()}}}),e("k-dropdown-content",{ref:"nodes",attrs:{theme:t.inline?"light":"dark"}},[t._l(t.nodeButtons,(function(n,i,s){var o,l,r;return[e("k-dropdown-item",{key:i,attrs:{current:(null==(o=t.activeNode)?void 0:o.id)===n.id,disabled:!1===(null==(r=null==(l=t.activeNode)?void 0:l.when)?void 0:r.includes(n.name)),icon:n.icon},on:{click:function(e){return t.command(n.command??i)}}},[t._v(" "+t._s(n.label)+" ")]),!0===n.separator&&s!==Object.keys(t.nodeButtons).length-1?e("hr",{key:i+"-divider"}):t._e()]}))],2)],1):t._e(),t.hasNodes&&t.hasMarks?e("div",{staticClass:"k-toolbar-divider"}):t._e(),t._l(t.markButtons,(function(n,i){return["|"===n?e("div",{key:i,staticClass:"k-toolbar-divider"}):e("k-button",{key:i,staticClass:"k-toolbar-button",attrs:{current:t.activeMarks.includes(i),icon:n.icon,title:n.label},nativeOn:{mousedown:function(e){return e.preventDefault(),t.command(n.command??i,e)}}})]}))],2):t._e()}),[],!1,null,null,null,null).exports,Eo={install(t){t.component("k-writer-toolbar",To),t.component("k-writer",zi)}},Do={install(t){customElements.define("k-autosize",pe),t.component("k-counter",me),t.component("k-autocomplete",he),t.component("k-form",fe),t.component("k-form-buttons",ge),t.component("k-field",Be),t.component("k-fieldset",qe),t.component("k-input",Ne),t.component("k-login",ze),t.component("k-login-code",Fe),t.component("k-selector",ue),t.component("k-upload",Re),t.component("k-login-alert",Ye),t.component("k-structure-form",Ue),t.component("k-toolbar",Ve),t.component("k-toolbar-email-dialog",Ke),t.component("k-toolbar-link-dialog",We),t.use(jn),t.use(oo),t.use(Fs),t.use(co),t.use(Io),t.use(Eo)}},Lo=()=>F((()=>import("./IndexView.min.js")),["./IndexView.min.js","./vendor.min.js"],import.meta.url),Bo=()=>F((()=>import("./PlaygroundView.min.js")),["./PlaygroundView.min.js","./vendor.min.js"],import.meta.url),qo={install(t){t.component("k-lab-index-view",Lo),t.component("k-lab-playground-view",Bo)}};const Po=Y({props:{cover:Boolean,ratio:String},computed:{ratioPadding(){return this.$helper.ratio(this.ratio)}},created(){window.panel.deprecated(" will be removed in a future version. Use the instead.")}},(function(){var t=this;return(0,t._self._c)("span",{staticClass:"k-aspect-ratio",style:{"padding-bottom":t.ratioPadding},attrs:{"data-cover":t.cover}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const No=Y({props:{align:{type:String}},mounted(){(this.$slots.left||this.$slots.center||this.$slots.right)&&window.panel.deprecated(": left/centre/right slots will be removed in a future version. Use with default slot only instead.")}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-bar",attrs:{"data-align":t.align}},[t.$slots.left||t.$slots.center||t.$slots.right?[t.$slots.left?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"left"}},[t._t("left")],2):t._e(),t.$slots.center?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"center"}},[t._t("center")],2):t._e(),t.$slots.right?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"right"}},[t._t("right")],2):t._e()]:t._t("default")],2)}),[],!1,null,null,null,null).exports;const zo=Y({props:{align:String,button:Boolean,height:String,icon:String,theme:{type:String},text:String,html:{type:Boolean}},computed:{element(){return this.button?"button":"div"},type(){return this.button?"button":null}}},(function(){var t=this,e=t._self._c;return e(t.element,{tag:"component",staticClass:"k-box",style:t.height?"--box-height: "+t.height:null,attrs:{"data-align":t.align,"data-theme":t.theme,type:t.type}},[t.icon?e("k-icon",{attrs:{type:t.icon}}):t._e(),t._t("default",(function(){return[t.html?e("k-text",{attrs:{html:t.text}}):e("k-text",[t._v(" "+t._s(t.text)+" ")])]}))],2)}),[],!1,null,null,null,null).exports;const Fo=Y({inheritAttrs:!1,props:{back:String,color:String,element:{type:String,default:"li"},html:{type:Boolean},image:Object,link:String,text:String},created(){this.back&&window.panel.deprecated(": `back` prop will be removed in a future version. Use the `--bubble-back` CSS property instead."),this.color&&window.panel.deprecated(": `color` prop will be removed in a future version. Use the `--bubble-text` CSS property instead.")}},(function(){var t=this,e=t._self._c;return e(t.link?"k-link":"p",{tag:"component",staticClass:"k-bubble",style:{color:t.$helper.color(t.color),background:t.$helper.color(t.back)},attrs:{to:t.link,"data-has-text":Boolean(t.text)},nativeOn:{click:function(t){t.stopPropagation()}}},[t._t("image",(function(){var n;return[(null==(n=t.image)?void 0:n.src)?e("k-image-frame",t._b({},"k-image-frame",t.image,!1)):t.image?e("k-icon-frame",t._b({},"k-icon-frame",t.image,!1)):e("span")]})),t.text?[t.html?e("span",{staticClass:"k-bubble-text",domProps:{innerHTML:t._s(t.text)}}):e("span",{staticClass:"k-bubble-text"},[t._v(t._s(t.text))])]:t._e()],2)}),[],!1,null,null,null,null).exports;const Ro=Y({props:{width:{type:String,default:"1/1"},sticky:Boolean}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-column",style:"--width:"+t.width,attrs:{"data-sticky":t.sticky}},[t.sticky?e("div",[t._t("default")],2):t._t("default")],2)}),[],!1,null,null,null,null).exports,Yo={props:{element:{type:String,default:"div"},fit:String,ratio:String,cover:Boolean,back:String,theme:String}};const Uo=Y({mixins:[Yo],inheritAttrs:!1,computed:{background(){return this.$helper.color(this.back)}}},(function(){var t=this;return(0,t._self._c)(t.element,{tag:"compontent",staticClass:"k-frame",style:{"--fit":t.fit??(t.cover?"cover":"contain"),"--ratio":t.ratio,"--back":t.background},attrs:{"data-theme":t.theme}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Ho=Y({mixins:[{mixins:[Yo],props:{color:String}}],inheritAttrs:!1},(function(){var t=this;return(0,t._self._c)("k-frame",t._b({staticClass:"k-color-frame",style:`color: ${t.color}`},"k-frame",t.$props,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Vo=Y({props:{disabled:{type:Boolean}},emits:["drop"],data:()=>({files:[],dragging:!1,over:!1}),methods:{cancel(){this.reset()},reset(){this.dragging=!1,this.over=!1},onDrop(t){return!0===this.disabled||!1===this.$helper.isUploadEvent(t)?this.reset():(this.$events.emit("dropzone.drop"),this.files=t.dataTransfer.files,this.$emit("drop",this.files),void this.reset())},onEnter(t){!1===this.disabled&&this.$helper.isUploadEvent(t)&&(this.dragging=!0)},onLeave(){this.reset()},onOver(t){!1===this.disabled&&this.$helper.isUploadEvent(t)&&(t.dataTransfer.dropEffect="copy",this.over=!0)}}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-dropzone",attrs:{"data-dragging":t.dragging,"data-over":t.over},on:{dragenter:t.onEnter,dragleave:t.onLeave,dragover:t.onOver,drop:t.onDrop}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Ko=Y({props:{gutter:String,variant:String},created(){this.gutter&&window.panel.deprecated(': the `gutter` prop will be removed in a future version. Use `style="gap: "` or `variant` prop instead.')}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-grid",attrs:{"data-gutter":t.gutter,"data-variant":t.variant}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Wo=Y({props:{editable:{type:Boolean}},mounted(){(this.$slots.left||this.$slots.right)&&window.panel.deprecated(": left/right slots will be removed in a future version. Use `buttons` slot instead.")}},(function(){var t=this,e=t._self._c;return e("header",{staticClass:"k-header",attrs:{"data-has-buttons":Boolean(t.$slots.buttons||t.$slots.left||t.$slots.right)}},[e("h1",{staticClass:"k-header-title"},[t.editable?e("button",{staticClass:"k-header-title-button",attrs:{type:"button"},on:{click:function(e){return t.$emit("edit")}}},[e("span",{staticClass:"k-header-title-text"},[t._t("default")],2),e("span",{staticClass:"k-header-title-icon"},[e("k-icon",{attrs:{type:"edit"}})],1)]):e("span",{staticClass:"k-header-title-text"},[t._t("default")],2)]),t.$slots.buttons||t.$slots.left||t.$slots.right?e("div",{staticClass:"k-header-buttons"},[t._t("buttons"),t._t("left"),t._t("right")],2):t._e()])}),[],!1,null,null,null,null).exports,Jo={props:{alt:String,color:String,type:String}};const Go=Y({mixins:[Jo]},(function(){var t=this,e=t._self._c;return e("svg",{staticClass:"k-icon",style:{color:t.$helper.color(t.color)},attrs:{"aria-label":t.alt,role:t.alt?"img":null,"aria-hidden":!t.alt,"data-type":t.type}},[e("use",{attrs:{"xlink:href":"#icon-"+t.type}})])}),[],!1,null,null,null,null).exports;const Xo=Y({mixins:[{mixins:[Yo,Jo],props:{type:null,icon:String}}],inheritAttrs:!1,computed:{isEmoji(){return this.$helper.string.hasEmoji(this.icon)}}},(function(){var t=this,e=t._self._c;return e("k-frame",t._b({staticClass:"k-icon-frame",attrs:{element:"figure"}},"k-frame",t.$props,!1),[t.isEmoji?e("span",{attrs:{"data-type":"emoji"}},[t._v(t._s(t.icon))]):e("k-icon",t._b({},"k-icon",{color:t.color,type:t.icon,alt:t.alt},!1))],1)}),[],!1,null,null,null,null).exports;const Qo=Y({mixins:[{mixins:[Yo],props:{alt:String,sizes:String,src:String,srcset:String}}],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("k-frame",t._g(t._b({staticClass:"k-image-frame k-image",attrs:{element:"figure"}},"k-frame",t.$props,!1),t.$listeners),[t.src?e("img",{key:t.src,attrs:{alt:t.alt??"",src:t.src,srcset:t.srcset,sizes:t.sizes},on:{dragstart:function(t){t.preventDefault()}}}):t._e()])}),[],!1,null,null,null,null).exports;const Zo=Y({mixins:[{props:{autofocus:{default:!0,type:Boolean},nested:{default:!1,type:Boolean},type:{default:"overlay",type:String},visible:{default:!1,type:Boolean}}}],inheritAttrs:!0,watch:{visible(t,e){t!==e&&this.toggle()}},mounted(){this.toggle()},methods:{cancel(){this.$emit("cancel"),this.close()},close(){if(!1!==this.$refs.overlay.open)return this.nested?this.onClose():void this.$refs.overlay.close()},focus(){this.$helper.focus(this.$refs.overlay)},onCancel(t){this.nested&&(t.preventDefault(),this.cancel())},onClick(t){t.target.matches(".k-portal")&&this.cancel()},onClose(){this.$emit("close")},open(){!0!==this.$refs.overlay.open&&this.$refs.overlay.showModal(),setTimeout((()=>{!0===this.autofocus&&this.focus(),this.$emit("open")}))},toggle(){!0===this.visible?this.open():this.close()}}},(function(){var t=this;return(0,t._self._c)("dialog",{ref:"overlay",staticClass:"k-overlay",attrs:{"data-type":t.type},on:{cancel:t.onCancel,mousedown:t.onClick,touchdown:t.onClick,close:t.onClose}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const tl=Y({props:{reports:Array,size:{type:String,default:"large"}},methods:{component(t){return null!==this.target(t)?"k-link":"div"},target(t){return t.link?t.link:t.click?t.click:t.dialog?()=>this.$dialog(t.dialog):null}}},(function(){var t=this,e=t._self._c;return e("dl",{staticClass:"k-stats",attrs:{"data-size":t.size}},t._l(t.reports,(function(n,i){return e(t.component(n),{key:i,tag:"component",staticClass:"k-stat",attrs:{"data-theme":n.theme,to:t.target(n)}},[e("dt",{staticClass:"k-stat-label"},[t._v(t._s(n.label))]),e("dd",{staticClass:"k-stat-value"},[t._v(t._s(n.value))]),e("dd",{staticClass:"k-stat-info"},[t._v(t._s(n.info))])])})),1)}),[],!1,null,null,null,null).exports;const el=Y({inheritAttrs:!1,props:{columns:Object,disabled:Boolean,fields:{type:Object,default:()=>({})},empty:String,index:{type:[Number,Boolean],default:1},rows:Array,options:[Array,Function],pagination:[Object,Boolean],sortable:Boolean},data(){return{values:this.rows}},computed:{colspan(){let t=this.columnsCount;return this.hasIndexColumn&&t++,this.hasOptions&&t++,t},columnsCount(){return this.$helper.object.length(this.columns)},dragOptions(){return{disabled:!this.sortable,fallbackClass:"k-table-row-fallback",ghostClass:"k-table-row-ghost"}},hasIndexColumn(){return this.sortable||!1!==this.index},hasOptions(){var t;return this.$scopedSlots.options||(null==(t=this.options)?void 0:t.length)>0||Object.values(this.values).filter((t=>t.options)).length>0}},watch:{rows(){this.values=this.rows}},methods:{isColumnEmpty(t){return 0===this.rows.filter((e=>!1===this.$helper.object.isEmpty(e[t]))).length},label(t,e){return t.label??this.$helper.string.ucfirst(e)},onChange(t){this.$emit("change",t)},onCell(t){this.$emit("cell",t)},onCellUpdate({columnIndex:t,rowIndex:e,value:n}){this.values[e][t]=n,this.$emit("input",this.values)},onHeader(t){this.$emit("header",t)},onOption(t,e,n){this.$emit("option",t,e,n)},onSort(){this.$emit("input",this.values),this.$emit("sort",this.values)},width(t){return"string"!=typeof t?"auto":!1===t.includes("/")?t:this.$helper.ratio(t,"auto",!1)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-table",attrs:{"aria-disabled":t.disabled}},[e("table",{attrs:{"data-disabled":t.disabled,"data-indexed":t.hasIndexColumn}},[e("thead",[e("tr",[t.hasIndexColumn?e("th",{staticClass:"k-table-index-column",attrs:{"data-mobile":""}},[t._v(" # ")]):t._e(),t._l(t.columns,(function(n,i){return e("th",{key:i+"-header",staticClass:"k-table-column",style:"width:"+t.width(n.width),attrs:{"data-align":n.align,"data-mobile":n.mobile},on:{click:function(e){return t.onHeader({column:n,columnIndex:i})}}},[t._t("header",(function(){return[t._v(" "+t._s(t.label(n,i))+" ")]}),null,{column:n,columnIndex:i,label:t.label(n,i)})],2)})),t.hasOptions?e("th",{staticClass:"k-table-options-column",attrs:{"data-mobile":""}}):t._e()],2)]),e("k-draggable",{attrs:{list:t.values,options:t.dragOptions,handle:!0,element:"tbody"},on:{change:t.onChange,end:t.onSort}},[0===t.rows.length?e("tr",[e("td",{staticClass:"k-table-empty",attrs:{colspan:t.colspan}},[t._v(" "+t._s(t.empty)+" ")])]):t._l(t.values,(function(n,i){return e("tr",{key:i},[t.hasIndexColumn?e("td",{staticClass:"k-table-index-column",attrs:{"data-sortable":t.sortable&&!1!==n.sortable,"data-mobile":""}},[t._t("index",(function(){return[e("div",{staticClass:"k-table-index",domProps:{textContent:t._s(t.index+i)}})]}),null,{row:n,rowIndex:i}),t.sortable&&!1!==n.sortable?e("k-sort-handle",{staticClass:"k-table-sort-handle"}):t._e()],2):t._e(),t._l(t.columns,(function(s,o){return e("k-table-cell",{key:i+"-"+o,staticClass:"k-table-column",style:"width:"+t.width(s.width),attrs:{column:s,field:t.fields[o],row:n,mobile:s.mobile,value:n[o]},on:{input:function(e){return t.onCellUpdate({columnIndex:o,rowIndex:i,value:e})}},nativeOn:{click:function(e){return t.onCell({row:n,rowIndex:i,column:s,columnIndex:o})}}})})),t.hasOptions?e("td",{staticClass:"k-table-options-column",attrs:{"data-mobile":""}},[t._t("options",(function(){return[e("k-options-dropdown",{attrs:{options:n.options??t.options,text:(n.options??t.options).length>1},on:{option:function(e){return t.onOption(e,n,i)}}})]}),null,{row:n,rowIndex:i})],2):t._e()],2)}))],2)],1),t.pagination?e("k-pagination",t._b({staticClass:"k-table-pagination",on:{paginate:function(e){return t.$emit("paginate",e)}}},"k-pagination",t.pagination,!1)):t._e()],1)}),[],!1,null,null,null,null).exports;const nl=Y({inheritAttrs:!1,props:{column:Object,field:Object,mobile:{type:Boolean,default:!1},row:Object,value:{default:""}},computed:{component(){return this.$helper.isComponent(`k-${this.type}-field-preview`)?`k-${this.type}-field-preview`:this.$helper.isComponent(`k-table-${this.type}-cell`)?`k-table-${this.type}-cell`:Array.isArray(this.value)?"k-array-field-preview":"object"==typeof this.value?"k-object-field-preview":"k-text-field-preview"},type(){var t;return this.column.type??(null==(t=this.field)?void 0:t.type)}}},(function(){var t=this,e=t._self._c;return e("td",{staticClass:"k-table-cell",attrs:{"data-align":t.column.align,"data-mobile":t.mobile}},[!1===t.$helper.object.isEmpty(t.value)?[e(t.component,{tag:"component",attrs:{column:t.column,field:t.field,row:t.row,value:t.value},on:{input:function(e){return t.$emit("input",e)}}})]:t._e()],2)}),[],!1,null,null,null,null).exports;const il=Y({props:{tab:String,tabs:{type:Array,default:()=>[]},theme:String},data(){return{observer:null,visible:this.tabs,invisible:[]}},computed:{current(){const t=this.tabs.find((t=>t.name===this.tab))??this.tabs[0];return null==t?void 0:t.name}},watch:{tabs:{async handler(){var t;null==(t=this.observer)||t.disconnect(),await this.$nextTick(),this.$el instanceof Element&&(this.observer=new ResizeObserver(this.resize),this.observer.observe(this.$el))},immediate:!0}},destroyed(){var t;null==(t=this.observer)||t.disconnect()},methods:{button(t){return{link:t.link,current:t.name===this.current,icon:t.icon,title:t.label}},async resize(){const t=this.$el.offsetWidth;this.visible=this.tabs,this.invisible=[],await this.$nextTick();const e=[...this.$refs.visible].map((t=>t.$el.offsetWidth));let n=32;for(let i=0;it)return this.visible=this.tabs.slice(0,i),void(this.invisible=this.tabs.slice(i))}}},(function(){var t=this,e=t._self._c;return t.tabs.length>1?e("nav",{staticClass:"k-tabs"},[t._l(t.visible,(function(n){return e("k-button",t._b({key:n.name,ref:"visible",refInFor:!0,staticClass:"k-tab-button",attrs:{variant:"dimmed"}},"k-button",t.button(n),!1),[t._v(" "+t._s(n.label??n.text??n.name)+" "),n.badge?e("span",{staticClass:"k-tabs-badge",attrs:{"data-theme":t.theme}},[t._v(" "+t._s(n.badge)+" ")]):t._e()])})),t.invisible.length?[e("k-button",{staticClass:"k-tab-button k-tabs-dropdown-button",attrs:{current:!!t.invisible.find((e=>t.tab===e.name)),title:t.$t("more"),icon:"dots",variant:"dimmed"},on:{click:function(e){return e.stopPropagation(),t.$refs.more.toggle()}}}),e("k-dropdown-content",{ref:"more",staticClass:"k-tabs-dropdown",attrs:{"align-x":"end"}},t._l(t.invisible,(function(n){return e("k-dropdown-item",t._b({key:"more-"+n.name},"k-dropdown-item",t.button(n),!1),[t._v(" "+t._s(n.label??n.text??n.name)+" ")])})),1)]:t._e()],2):t._e()}),[],!1,null,null,null,null).exports;const sl=Y({props:{align:String},created(){window.panel.deprecated(" will be removed in a future version.")}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-view",attrs:{"data-align":t.align}},[t._t("default")],2)}),[],!1,null,null,null,null).exports,ol={install(t){t.component("k-aspect-ratio",Po),t.component("k-bar",No),t.component("k-box",zo),t.component("k-bubble",Fo),t.component("k-bubbles",mo),t.component("k-color-frame",Ho),t.component("k-column",Ro),t.component("k-dropzone",Vo),t.component("k-frame",Uo),t.component("k-grid",Ko),t.component("k-header",Wo),t.component("k-icon-frame",Xo),t.component("k-image-frame",Qo),t.component("k-image",Qo),t.component("k-overlay",Zo),t.component("k-stats",tl),t.component("k-table",el),t.component("k-table-cell",nl),t.component("k-tabs",il),t.component("k-view",sl)}};const ll=Y({components:{draggable:()=>F((()=>import("./vuedraggable.min.js")),[],import.meta.url)},props:{data:Object,element:String,handle:[String,Boolean],list:[Array,Object],move:Function,options:Object},emits:["change","end","sort","start"],computed:{dragOptions(){let t=this.handle;return!0===t&&(t=".k-sort-handle"),{fallbackClass:"k-sortable-fallback",fallbackOnBody:!0,forceFallback:!0,ghostClass:"k-sortable-ghost",handle:t,scroll:document.querySelector(".k-panel-main"),...this.options}}},methods:{onStart(t){this.$panel.drag.start("data",{}),this.$emit("start",t)},onEnd(t){this.$panel.drag.stop(),this.$emit("end",t)}}},(function(){var t=this;return(0,t._self._c)("draggable",t._b({staticClass:"k-draggable",attrs:{"component-data":t.data,tag:t.element,list:t.list,move:t.move},on:{change:function(e){return t.$emit("change",e)},end:t.onEnd,sort:function(e){return t.$emit("sort",e)},start:t.onStart},scopedSlots:t._u([{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}],null,!0)},"draggable",t.dragOptions,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const rl=Y({data:()=>({error:null}),errorCaptured(t){return this.$panel.debug&&window.console.warn(t),this.error=t,!1},render(){return this.error?this.$slots.error?this.$slots.error[0]:this.$scopedSlots.error?this.$scopedSlots.error({error:this.error}):Vue.h("k-box",{attrs:{theme:"negative"}},this.error.message??this.error):this.$slots.default[0]}},null,null,!1,null,null,null,null).exports;const al=Y({props:{html:String},mounted(){try{let t=this.$refs.iframe.contentWindow.document;t.open(),t.write(this.html),t.close()}catch(t){console.error(t)}}},(function(){var t=this,e=t._self._c;return e("k-overlay",{staticClass:"k-fatal",attrs:{visible:!0}},[e("div",{staticClass:"k-fatal-box"},[e("div",{staticClass:"k-notification",attrs:{"data-theme":"negative"}},[e("p",[t._v("The JSON response could not be parsed")]),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return e.stopPropagation(),t.$panel.notification.close()}}})],1),e("iframe",{ref:"iframe",staticClass:"k-fatal-iframe"})])])}),[],!1,null,null,null,null).exports;const ul=Y({icons:window.panel.plugins.icons,methods:{viewbox(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.innerHTML=e,document.body.appendChild(n);const i=n.getBBox(),s=(i.width+2*i.x+(i.height+2*i.y))/2,o=Math.abs(s-16),l=Math.abs(s-24);return document.body.removeChild(n),o element with the corresponding viewBox attribute.`),"0 0 16 16"):"0 0 24 24"}}},(function(){var t=this,e=t._self._c;return e("svg",{staticClass:"k-icons",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",overflow:"hidden"}},[e("defs",t._l(t.$options.icons,(function(n,i){return e("symbol",{key:i,attrs:{id:"icon-"+i,viewBox:t.viewbox(i,n)},domProps:{innerHTML:t._s(n)}})})),0)])}),[],!1,null,null,null,null).exports;const cl=Y({created(){window.panel.deprecated(' will be removed in a future version. Use instead.')}},(function(){var t=this._self._c;return t("span",{staticClass:"k-loader"},[t("k-icon",{staticClass:"k-loader-icon",attrs:{type:"loader"}})],1)}),[],!1,null,null,null,null).exports;const dl=Y({},(function(){var t=this,e=t._self._c;return t.$panel.notification.isOpen?e("div",{staticClass:"k-notification",attrs:{"data-theme":t.$panel.notification.theme}},[e("p",[t._v(t._s(t.$panel.notification.message))]),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return t.$panel.notification.close()}}})],1):t._e()}),[],!1,null,null,null,null).exports;const pl=Y({data:()=>({offline:!1}),created(){this.$events.on("offline",this.isOffline),this.$events.on("online",this.isOnline)},destroyed(){this.$events.off("offline",this.isOffline),this.$events.off("online",this.isOnline)},methods:{isOnline(){this.offline=!1},isOffline(){this.offline=!0}}},(function(){var t=this,e=t._self._c;return t.offline?e("div",{staticClass:"k-offline-warning"},[e("p",[e("k-icon",{attrs:{type:"bolt"}}),t._v(" "+t._s(t.$t("error.offline")))],1)]):t._e()}),[],!1,null,null,null,null).exports,hl=(t,e=!1)=>{if(t>=0&&t<=100)return!0;if(e)throw new Error("value has to be between 0 and 100");return!1};const ml=Y({props:{value:{type:Number,default:0,validator:hl}},data(){return{state:this.value}},watch:{value(t){this.state=t}},methods:{set(t){window.panel.deprecated(": `set` method will be removed in a future version. Use the `value` prop instead."),hl(t,!0),this.state=t}}},(function(){var t=this;return(0,t._self._c)("progress",{staticClass:"k-progress",attrs:{max:"100"},domProps:{value:t.state}},[t._v(t._s(t.state)+"%")])}),[],!1,null,null,null,null).exports;const fl=Y({},(function(){return(0,this._self._c)("k-button",{staticClass:"k-sort-handle k-sort-button",attrs:{title:this.$t("sort.drag"),icon:"sort","aria-hidden":"true"}})}),[],!1,null,null,null,null).exports,gl={install(t){t.component("k-draggable",ll),t.component("k-error-boundary",rl),t.component("k-fatal",al),t.component("k-icon",Go),t.component("k-icons",ul),t.component("k-loader",cl),t.component("k-notification",dl),t.component("k-offline-warning",pl),t.component("k-progress",ml),t.component("k-sort-handle",fl)}};const kl=Y({props:{crumbs:{type:Array,default:()=>[]},label:{type:String,default:"Breadcrumb"},view:Object},computed:{dropdown(){return this.segments.map((t=>({...t,text:t.label,icon:"angle-right"})))},segments(){const t=[];return this.view&&t.push({link:this.view.link,label:this.view.breadcrumbLabel,icon:this.view.icon,loading:this.$panel.isLoading}),[...t,...this.crumbs]}},methods:{isLast(t){return this.crumbs.length-1===t}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-breadcrumb",attrs:{"aria-label":t.label}},[t.segments.length>1?e("div",{staticClass:"k-breadcrumb-dropdown"},[e("k-button",{attrs:{icon:"home"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{options:t.dropdown}})],1):t._e(),e("ol",t._l(t.segments,(function(n,i){return e("li",{key:i},[e("k-button",{staticClass:"k-breadcrumb-link",attrs:{icon:n.loading?"loader":n.icon,link:n.link,disabled:!n.link,text:n.text??n.label,title:n.text??n.label,current:!!t.isLast(i-1)&&"page",variant:"dimmed",size:"sm"}})],1)})),0)])}),[],!1,null,null,null,null).exports;const bl=Y({props:{items:{type:Array},name:{default:"items",type:String},selected:{type:String},type:{default:"radio",type:String}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-browser"},[e("div",{staticClass:"k-browser-items"},t._l(t.items,(function(n){return e("label",{key:n.value,staticClass:"k-browser-item",attrs:{"aria-selected":t.selected===n.value}},[e("input",{attrs:{name:t.name,type:t.type},domProps:{checked:t.selected===n.value},on:{change:function(e){return t.$emit("select",n)}}}),n.image?e("k-item-image",{staticClass:"k-browser-item-image",attrs:{image:{...n.image,cover:!0,back:"black"}}}):t._e(),e("span",{staticClass:"k-browser-item-info"},[t._v(" "+t._s(n.label)+" ")])],1)})),0)])}),[],!1,null,null,null,null).exports;const vl=Y({inheritAttrs:!1,props:{autofocus:Boolean,click:{type:Function,default:()=>{}},current:[String,Boolean],dialog:String,disabled:Boolean,drawer:String,dropdown:Boolean,element:String,icon:String,id:[String,Number],link:String,responsive:[Boolean,String],rel:String,role:String,selected:[String,Boolean],size:String,target:String,tabindex:String,text:[String,Number],theme:String,title:String,tooltip:String,type:{type:String,default:"button"},variant:String},computed:{attrs(){const t={"aria-current":this.current,"aria-disabled":this.disabled,"aria-selected":this.selected,"data-responsive":this.responsive,"data-size":this.size,"data-theme":this.theme,"data-variant":this.variant,id:this.id,tabindex:this.tabindex,title:this.title??this.tooltip};return"k-link"===this.component?(t.disabled=this.disabled,t.to=this.link,t.rel=this.rel,t.role=this.role,t.target=this.target):"button"===this.component&&(t.autofocus=this.autofocus,t.type=this.type),this.dropdown&&(t["aria-haspopup"]="menu",t["data-dropdown"]=this.dropdown),t},component(){return this.element?this.element:this.link?"k-link":"button"}},created(){this.tooltip&&window.panel.deprecated(": the `tooltip` prop will be removed in a future version. Use the `title` prop instead.")},methods:{focus(){var t,e;null==(e=(t=this.$el).focus)||e.call(t)},onClick(t){var e;return this.disabled?(t.preventDefault(),!1):this.dialog?this.$dialog(this.dialog):this.drawer?this.$drawer(this.drawer):(null==(e=this.click)||e.call(this,t),void this.$emit("click",t))}}},(function(){var t=this,e=t._self._c;return e(t.component,t._b({tag:"component",staticClass:"k-button",attrs:{"data-has-icon":Boolean(t.icon),"data-has-text":Boolean(t.text||t.$slots.default)},on:{click:t.onClick}},"component",t.attrs,!1),[t.icon?e("span",{staticClass:"k-button-icon"},[e("k-icon",{attrs:{type:t.icon}})],1):t._e(),t.text||t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2):t._e(),t.dropdown&&(t.text||t.$slots.default)?e("span",{staticClass:"k-button-arrow"},[e("k-icon",{attrs:{type:"angle-down"}})],1):t._e()])}),[],!1,null,null,null,null).exports;const yl=Y({props:{buttons:Array,layout:String,variant:String,theme:String,size:String,responsive:Boolean}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-button-group",attrs:{"data-layout":t.layout}},[t.$slots.default?t._t("default"):t._l(t.buttons,(function(n,i){return e("k-button",t._b({key:i},"k-button",{variant:t.variant,theme:t.theme,size:t.size,responsive:t.responsive,...n},!1))}))],2)}),[],!1,null,null,null,null).exports;const $l=Y({props:{selected:{type:String}},data:()=>({files:[],page:null,view:"tree"}),methods:{selectFile(t){this.$emit("select",t)},async selectPage(t){this.page=t;const e="/"===t.id?"/site/files":"/pages/"+this.$api.pages.id(t.id)+"/files",{data:n}=await this.$api.get(e,{select:"filename,id,panelImage,url,uuid"});this.files=n.map((t=>({label:t.filename,image:t.panelImage,id:t.id,url:t.url,uuid:t.uuid,value:t.uuid??t.url}))),this.view="files"},async togglePage(){await this.$nextTick(),this.$refs.tree.scrollIntoView({behaviour:"smooth",block:"nearest",inline:"nearest"})}}},(function(){var t,e,n=this,i=n._self._c;return i("div",{staticClass:"k-file-browser",attrs:{"data-view":n.view}},[i("div",{staticClass:"k-file-browser-layout"},[i("aside",{ref:"tree",staticClass:"k-file-browser-tree"},[i("k-page-tree",{attrs:{current:null==(t=n.page)?void 0:t.value},on:{select:n.selectPage,toggleBranch:n.togglePage}})],1),i("div",{ref:"items",staticClass:"k-file-browser-items"},[i("k-button",{staticClass:"k-file-browser-back-button",attrs:{icon:"angle-left",text:null==(e=n.page)?void 0:e.label},on:{click:function(t){n.view="tree"}}}),n.files.length?i("k-browser",{attrs:{items:n.files,selected:n.selected},on:{select:n.selectFile}}):n._e()],1)])])}),[],!1,null,null,null,null).exports;const wl=Y({props:{disabled:Boolean,rel:String,tabindex:[String,Number],target:String,title:String,to:[String,Function]},emits:["click"],computed:{href(){return"function"==typeof this.to?"":"/"!==this.to[0]||this.target?!0===this.to.includes("@")&&!1===this.to.includes("/")&&!1===this.to.startsWith("mailto:")?"mailto:"+this.to:this.to:this.$url(this.to)},relAttr(){return"_blank"===this.target?"noreferrer noopener":this.rel}},methods:{isRoutable(t){if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)return!1;if(t.defaultPrevented)return!1;if(void 0!==t.button&&0!==t.button)return!1;if(this.target)return!1;if("string"==typeof this.href){if(this.href.includes("://")||this.href.startsWith("//"))return!1;if(this.href.includes("mailto:"))return!1}return!0},onClick(t){if(!0===this.disabled)return t.preventDefault(),!1;"function"==typeof this.to&&(t.preventDefault(),this.to()),this.isRoutable(t)&&(t.preventDefault(),this.$go(this.to)),this.$emit("click",t)}}},(function(){var t=this,e=t._self._c;return t.to&&!t.disabled?e("a",{ref:"link",staticClass:"k-link",attrs:{href:t.href,rel:t.relAttr,tabindex:t.tabindex,target:t.target,title:t.title},on:{click:t.onClick}},[t._t("default")],2):e("span",{staticClass:"k-link",attrs:{title:t.title,"aria-disabled":""}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const xl=Y({props:{tab:String,tabs:{type:Array,default:()=>[]}},computed:{withBadges(){const t=Object.keys(this.$store.getters["content/changes"]());return this.tabs.map((e=>{const n=[];for(const t in e.columns)for(const i in e.columns[t].sections)if("fields"===e.columns[t].sections[i].type)for(const s in e.columns[t].sections[i].fields)n.push(s);return e.badge=n.filter((e=>t.includes(e.toLowerCase()))).length,e}))}}},(function(){var t=this;return(0,t._self._c)("k-tabs",{staticClass:"k-model-tabs",attrs:{tab:t.tab,tabs:t.withBadges,theme:"notice"}})}),[],!1,null,null,null,null).exports;const _l=Y({props:{axis:String,disabled:Boolean,select:String},computed:{elements(){return Array.from(this.$el.querySelectorAll(this.select??":where(button, a):not(:disabled)"))},keys(){switch(this.axis){case"x":return{ArrowLeft:this.prev,ArrowRight:this.next};case"y":return{ArrowUp:this.prev,ArrowDown:this.next};default:return{ArrowLeft:this.prev,ArrowRight:this.next,ArrowUp:this.prev,ArrowDown:this.next}}}},mounted(){this.$el.addEventListener("keydown",this.keydown)},destroyed(){this.$el.removeEventListener("keydown",this.keydown)},methods:{focus(t=0,e){this.move(t,e)},keydown(t){var e;if(this.disabled)return!1;null==(e=this.keys[t.key])||e.apply(this,[t])},move(t=0,e){var n;const i=this.elements;let s=i.indexOf(document.activeElement);switch(-1===s&&(s=0),t){case"first":t=0;break;case"next":t=s+1;break;case"last":t=i.length-1;break;case"prev":t=s-1}null==e||e.preventDefault(),null==(n=i[t])||n.focus()},next(t){this.move("next",t)},prev(t){this.move("prev",t)}}},(function(){return(0,this._self._c)("div",{staticClass:"k-navigate"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const Cl=Y({name:"k-tree",inheritAttrs:!1,props:{element:{type:String,default:"k-tree"},current:{type:String},items:{type:[Array,Object]},level:{default:0,type:Number}},data(){return{state:this.items}},methods:{arrow:t=>!0===t.loading?"loader":t.open?"angle-down":"angle-right",close(t){this.$set(t,"open",!1),this.$emit("close",t)},open(t){this.$set(t,"open",!0),this.$emit("open",t)},select(t){this.$emit("select",t)},toggle(t){this.$emit("toggle",t),!0===t.open?this.close(t):this.open(t)}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-tree",class:t.$options.name,style:{"--tree-level":t.level}},t._l(t.state,(function(n,i){return e("li",{key:i,attrs:{"aria-expanded":n.open,"aria-current":n.value===t.current}},[e("p",{staticClass:"k-tree-branch",attrs:{"data-has-subtree":n.hasChildren&&n.open}},[e("button",{staticClass:"k-tree-toggle",attrs:{disabled:!n.hasChildren,type:"button"},on:{click:function(e){return t.toggle(n)}}},[e("k-icon",{attrs:{type:t.arrow(n)}})],1),e("button",{staticClass:"k-tree-folder",attrs:{disabled:n.disabled,type:"button"},on:{click:function(e){return t.select(n)},dblclick:function(e){return t.toggle(n)}}},[e("k-icon-frame",{attrs:{icon:n.icon??"folder"}}),e("span",{staticClass:"k-tree-folder-label"},[t._v(t._s(n.label))])],1)]),n.hasChildren&&n.open?[e(t.$options.name,t._b({tag:"component",attrs:{items:n.children,level:t.level+1},on:{close:function(e){return t.$emit("close",e)},open:function(e){return t.$emit("open",e)},select:function(e){return t.$emit("select",e)},toggle:function(e){return t.$emit("toggle",e)}}},"component",t.$props,!1))]:t._e()],2)})),0)}),[],!1,null,null,null,null).exports;const Sl=Y({name:"k-page-tree",extends:Cl,inheritAttrs:!1,props:{root:{default:!0,type:Boolean},current:{type:String},move:{type:String}},data:()=>({state:[]}),async created(){if(this.items)this.state=this.items;else{const t=await this.load(null);await this.open(t[0]),this.state=this.root?t:t[0].children}},methods:{async load(t){return await this.$panel.get("site/tree",{query:{move:this.move??null,parent:t}})},async open(t){if(!1===t.hasChildren)return!1;this.$set(t,"loading",!0),"string"==typeof t.children&&(t.children=await this.load(t.children)),this.$set(t,"open",!0),this.$set(t,"loading",!1)}}},null,null,!1,null,null,null,null).exports;const Ol=Y({props:{details:Boolean,limit:{type:Number,default:10},page:{type:Number,default:1},total:{type:Number,default:0},validate:{type:Function,default:()=>Promise.resolve()}},computed:{end(){return Math.min(this.start-1+this.limit,this.total)},detailsText(){return 1===this.limit?this.start:this.start+"-"+this.end},offset(){return this.start-1},pages(){return Math.ceil(this.total/this.limit)},start(){return(this.page-1)*this.limit+1}},methods:{async goTo(t){var e;try{await this.validate(t),null==(e=this.$refs.dropdown)||e.close();const n=((t=Math.max(1,Math.min(t,this.pages)))-1)*this.limit+1;this.$emit("paginate",{page:t,start:n,end:Math.min(n-1+this.limit,this.total),limit:this.limit,offset:n-1,total:this.total})}catch(n){}},prev(){this.goTo(this.page-1)},next(){this.goTo(this.page+1)}}},(function(){var t=this,e=t._self._c;return t.pages>1?e("k-button-group",{staticClass:"k-pagination",attrs:{layout:"collapsed"},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.prev.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.next.apply(null,arguments)}]}},[e("k-button",{attrs:{disabled:t.start<=1,title:t.$t("prev"),icon:"angle-left",size:"xs",variant:"filled"},on:{click:t.prev}}),t.details?[e("k-button",{staticClass:"k-pagination-details",attrs:{disabled:t.total<=t.limit,text:t.total>1?`${t.detailsText} / ${t.total}`:t.total,size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",staticClass:"k-pagination-selector",attrs:{"align-x":"end"},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void e.stopPropagation()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:void e.stopPropagation()}]}},[e("form",{attrs:{method:"dialog"},on:{submit:function(e){return t.goTo(t.$refs.page.value)}}},[e("label",{attrs:{for:t._uid}},[t._v(t._s(t.$t("pagination.page"))+":")]),e("select",{ref:"page",attrs:{id:t._uid,autofocus:!0}},t._l(t.pages,(function(n){return e("option",{key:n,domProps:{selected:t.page===n,value:n}},[t._v(" "+t._s(n)+" ")])})),0),e("k-button",{attrs:{type:"submit",icon:"check"}})],1)])]:t._e(),e("k-button",{attrs:{disabled:t.end>=t.total,title:t.$t("next"),icon:"angle-right",size:"xs",variant:"filled"},on:{click:t.next}})],2):t._e()}),[],!1,null,null,null,null).exports;const Al=Y({props:{prev:{type:[Boolean,Object],default:!1},next:{type:[Boolean,Object],default:!1}},computed:{buttons(){return[{...this.button(this.prev),icon:"angle-left"},{...this.button(this.next),icon:"angle-right"}]},isFullyDisabled(){return 0===this.buttons.filter((t=>!t.disabled)).length}},methods:{button:t=>t||{disabled:!0,link:"#"}}},(function(){var t=this,e=t._self._c;return t.isFullyDisabled?t._e():e("k-button-group",{staticClass:"k-prev-next",attrs:{buttons:t.buttons,layout:"collapsed",size:"xs"}})}),[],!1,null,null,null,null).exports;const Ml=Y({props:{disabled:Boolean,image:{type:Object},removable:Boolean},methods:{remove(){this.removable&&this.$emit("remove")},focus(){this.$refs.button.focus()}}},(function(){var t=this,e=t._self._c;return e("button",{ref:"button",staticClass:"k-tag",attrs:{"aria-disabled":t.disabled,"data-has-toggle":t.removable,type:"button"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.remove.apply(null,arguments))}}},[t._t("image",(function(){var n;return[(null==(n=t.image)?void 0:n.src)?e("k-image-frame",t._b({staticClass:"k-tag-image"},"k-image-frame",t.image,!1)):t.image?e("k-icon-frame",t._b({staticClass:"k-tag-image"},"k-icon-frame",t.image,!1)):t._e()]})),t.$slots.default?e("span",{staticClass:"k-tag-text"},[t._t("default")],2):t._e(),t.removable?e("k-icon-frame",{staticClass:"k-tag-toggle",attrs:{icon:"cancel-small"},nativeOn:{click:function(e){return t.remove.apply(null,arguments)}}}):t._e()],2)}),[],!1,null,null,null,null).exports;const jl=Y({inheritAttrs:!1,props:{icon:String,id:[String,Number],responsive:Boolean,theme:String,tooltip:String},created(){window.panel.deprecated(' will be removed in a future version. Use instead.')}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-button",attrs:{id:t.id,"data-disabled":!0,"data-responsive":t.responsive,"data-theme":t.theme,title:t.tooltip}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports;const Il=Y({inheritAttrs:!1,props:{autofocus:Boolean,current:[String,Boolean],icon:String,id:[String,Number],link:String,rel:String,responsive:Boolean,role:String,target:String,tabindex:String,theme:String,tooltip:String},created(){window.panel.deprecated(' will be removed in a future version. Use instead.')},methods:{focus(){this.$el.focus()}}},(function(){var t=this,e=t._self._c;return e("k-link",{staticClass:"k-button",attrs:{id:t.id,"aria-current":t.current,autofocus:t.autofocus,"data-theme":t.theme,"data-responsive":t.responsive,rel:t.rel,role:t.role,tabindex:t.tabindex,target:t.target,title:t.tooltip,to:t.link}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports;const Tl=Y({inheritAttrs:!1,props:{autofocus:Boolean,click:{type:Function,default:()=>{}},current:[String,Boolean],icon:String,id:[String,Number],responsive:Boolean,role:String,tabindex:String,theme:String,tooltip:String,type:{type:String,default:"button"}},created(){window.panel.deprecated(" will be removed in a future version. Use instead.")}},(function(){var t=this,e=t._self._c;return e("button",{staticClass:"k-button",attrs:{id:t.id,"aria-current":t.current,autofocus:t.autofocus,"data-theme":t.theme,"data-responsive":t.responsive,role:t.role,tabindex:t.tabindex,title:t.tooltip,type:t.type},on:{click:t.click}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports,El={install(t){t.component("k-breadcrumb",kl),t.component("k-browser",bl),t.component("k-button",vl),t.component("k-button-group",yl),t.component("k-file-browser",$l),t.component("k-link",wl),t.component("k-model-tabs",xl),t.component("k-navigate",_l),t.component("k-page-tree",Sl),t.component("k-pagination",Ol),t.component("k-prev-next",Al),t.component("k-tag",Ml),t.component("k-tags",Wi),t.component("k-tree",Cl),t.component("k-button-disabled",jl),t.component("k-button-link",Il),t.component("k-button-native",Tl)}};const Dl=Y({props:{buttons:Array,headline:String,invalid:Boolean,link:String,required:Boolean}},(function(){var t=this,e=t._self._c;return e("section",{staticClass:"k-section",attrs:{"data-invalid":t.invalid}},[t.headline||t.buttons?e("header",{staticClass:"k-bar k-section-header"},[e("k-label",{attrs:{invalid:t.invalid,link:t.link,required:t.required,type:"section"}},[t._v(" "+t._s(t.headline)+" ")]),t.buttons?e("k-button-group",{attrs:{buttons:t.buttons,size:"xs",variant:"filled"}}):t._e()],1):t._e(),t._t("default")],2)}),[],!1,null,null,null,null).exports;const Ll=Y({props:{empty:String,blueprint:String,lock:[Boolean,Object],parent:String,tab:Object},computed:{content(){return this.$store.getters["content/values"]()}},methods:{exists(t){return this.$helper.isComponent(`k-${t}-section`)}}},(function(){var t=this,e=t._self._c;return 0===t.tab.columns.length?e("k-box",{attrs:{html:!0,text:t.empty,theme:"info"}}):e("k-grid",{staticClass:"k-sections",attrs:{variant:"columns"}},t._l(t.tab.columns,(function(n,i){return e("k-column",{key:t.parent+"-column-"+i,attrs:{width:n.width,sticky:n.sticky}},[t._l(n.sections,(function(s,o){return[t.$helper.field.isVisible(s,t.content)?[t.exists(s.type)?e("k-"+s.type+"-section",t._b({key:t.parent+"-column-"+i+"-section-"+o+"-"+t.blueprint,tag:"component",class:"k-section-name-"+s.name,attrs:{column:n.width,lock:t.lock,name:s.name,parent:t.parent,timestamp:t.$panel.view.timestamp},on:{submit:function(e){return t.$emit("submit",e)}}},"component",s,!1)):[e("k-box",{key:t.parent+"-column-"+i+"-section-"+o,attrs:{text:t.$t("error.section.type.invalid",{type:s.type}),icon:"alert",theme:"negative"}})]]:t._e()]}))],2)})),1)}),[],!1,null,null,null,null).exports,Bl={props:{blueprint:String,lock:[Boolean,Object],help:String,name:String,parent:String,timestamp:Number},methods:{load(){return this.$api.get(this.parent+"/sections/"+this.name)}}};const ql=Y({mixins:[Bl],inheritAttrs:!1,data:()=>({fields:{},isLoading:!0,issue:null}),computed:{values(){return this.$store.getters["content/values"]()}},watch:{timestamp(){this.fetch()}},created(){this.onInput=bt(this.onInput,50),this.fetch()},methods:{async fetch(){try{const t=await this.load();this.fields=t.fields;for(const e in this.fields)this.fields[e].section=this.name,this.fields[e].endpoints={field:this.parent+"/fields/"+e,section:this.parent+"/sections/"+this.name,model:this.parent}}catch(t){this.issue=t}finally{this.isLoading=!1}},onInput(t,e,n){this.$store.dispatch("content/update",[n,t[n]])},onSubmit(t){this.$store.dispatch("content/update",[null,t]),this.$events.emit("keydown.cmd.s",t)}}},(function(){var t=this,e=t._self._c;return t.isLoading?t._e():e("k-section",{staticClass:"k-fields-section",attrs:{headline:t.issue?"Error":null}},[t.issue?e("k-box",{attrs:{text:t.issue.message,html:!1,icon:"alert",theme:"negative"}}):t._e(),e("k-form",{attrs:{fields:t.fields,validate:!0,value:t.values,disabled:t.lock&&"lock"===t.lock.state},on:{input:t.onInput,submit:t.onSubmit}})],1)}),[],!1,null,null,null,null).exports;const Pl=Y({inheritAttrs:!1,props:{blueprint:String,column:String,parent:String,name:String,timestamp:Number},data:()=>({data:[],error:null,isLoading:!1,isProcessing:!1,options:{columns:{},empty:null,headline:null,help:null,layout:"list",link:null,max:null,min:null,size:null,sortable:null},pagination:{page:null},searchterm:null,searching:!1}),computed:{addIcon:()=>"add",buttons(){let t=[];return this.canSearch&&t.push({icon:"filter",text:this.$t("filter"),click:this.onSearchToggle,responsive:!0}),this.canAdd&&t.push({icon:this.addIcon,text:this.$t("add"),click:this.onAdd,responsive:!0}),t},canAdd:()=>!0,canDrop:()=>!1,canSearch(){return this.options.search},collection(){return{columns:this.options.columns,empty:this.emptyPropsWithSearch,layout:this.options.layout,help:this.options.help,items:this.items,pagination:this.pagination,sortable:!this.isProcessing&&this.options.sortable,size:this.options.size}},emptyProps(){return{icon:"page",text:this.$t("pages.empty")}},emptyPropsWithSearch(){return{...this.emptyProps,text:this.searching?this.$t("search.results.none"):this.options.empty??this.emptyProps.text}},items(){return this.data},isInvalid(){var t;return!((null==(t=this.searchterm)?void 0:t.length)>0)&&(!!(this.options.min&&this.data.lengththis.options.max))},paginationId(){return"kirby$pagination$"+this.parent+"/"+this.name},type:()=>"models"},watch:{searchterm(){this.search()},timestamp(){this.reload()}},created(){this.search=bt(this.search,200),this.load()},methods:{async load(t){this.isProcessing=!0,t||(this.isLoading=!0);const e=this.pagination.page??localStorage.getItem(this.paginationId)??1;try{const t=await this.$api.get(this.parent+"/sections/"+this.name,{page:e,searchterm:this.searchterm});this.options=t.options,this.pagination=t.pagination,this.data=t.data}catch(n){this.error=n.message}finally{this.isProcessing=!1,this.isLoading=!1}},onAction(){},onAdd(){},onChange(){},onDrop(){},onSort(){},onPaginate(t){localStorage.setItem(this.paginationId,t.page),this.pagination=t,this.reload()},onSearchToggle(){this.searching=!this.searching,this.searchterm=null},async reload(){await this.load(!0)},async search(){this.pagination.page=0,await this.reload()},update(){this.reload(),this.$events.emit("model.update")}}},(function(){var t=this,e=t._self._c;return!1===t.isLoading?e("k-section",{class:`k-models-section k-${t.type}-section`,attrs:{buttons:t.buttons,"data-processing":t.isProcessing,headline:t.options.headline??" ",invalid:t.isInvalid,link:t.options.link,required:Boolean(t.options.min)}},[t.error?e("k-box",{attrs:{icon:"alert",theme:"negative"}},[e("k-text",{attrs:{size:"small"}},[e("strong",[t._v(" "+t._s(t.$t("error.section.notLoaded",{name:t.name}))+": ")]),t._v(" "+t._s(t.error)+" ")])],1):[e("k-dropzone",{attrs:{disabled:!t.canDrop},on:{drop:t.onDrop}},[t.searching&&t.options.search?e("k-input",{staticClass:"k-models-section-search",attrs:{autofocus:!0,placeholder:t.$t("filter")+" …",value:t.searchterm,icon:"search",type:"text"},on:{input:function(e){t.searchterm=e},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onSearchToggle.apply(null,arguments)}}}):t._e(),e("k-collection",t._g(t._b({on:{action:t.onAction,change:t.onChange,sort:t.onSort,paginate:t.onPaginate}},"k-collection",t.collection,!1),t.canAdd?{empty:t.onAdd}:{}))],1)]],2):t._e()}),[],!1,null,null,null,null).exports;const Nl=Y({extends:Pl,computed:{addIcon:()=>"upload",canAdd(){return this.$panel.permissions.files.create&&!1!==this.options.upload},canDrop(){return!1!==this.canAdd},emptyProps(){return{icon:"image",text:this.$t("files.empty")}},items(){return this.data.map((t=>(t.sortable=this.options.sortable,t.column=this.column,t.options=this.$dropdown(t.link,{query:{view:"list",update:this.options.sortable,delete:this.data.length>this.options.min}}),t.data={"data-id":t.id,"data-template":t.template},t)))},type:()=>"files",uploadOptions(){return{...this.options.upload,url:this.$panel.urls.api+"/"+this.options.upload.api,on:{complete:()=>{this.$panel.notification.success({context:"view"})}}}}},created(){this.$events.on("model.update",this.reload),this.$events.on("file.sort",this.reload)},destroyed(){this.$events.off("model.update",this.reload),this.$events.off("file.sort",this.reload)},methods:{onAction(t,e){"replace"===t&&this.replace(e)},onAdd(){this.canAdd&&this.$panel.upload.pick(this.uploadOptions)},onDrop(t){this.canAdd&&this.$panel.upload.open(t,this.uploadOptions)},async onSort(t){if(!1===this.options.sortable)return!1;this.isProcessing=!0;try{await this.$api.patch(this.options.apiUrl+"/files/sort",{files:t.map((t=>t.id)),index:this.pagination.offset}),this.$panel.notification.success(),this.$events.emit("file.sort")}catch(e){this.$panel.error(e),this.reload()}finally{this.isProcessing=!1}},replace(t){this.$panel.upload.replace(t,this.uploadOptions)}}},null,null,!1,null,null,null,null).exports;const zl=Y({mixins:[Bl],inheritAttrs:!1,data:()=>({icon:null,label:null,text:null,theme:null}),async created(){const t=await this.load();this.icon=t.icon,this.label=t.label,this.text=t.text,this.theme=t.theme??"info"}},(function(){var t=this,e=t._self._c;return e("k-section",{staticClass:"k-info-section",attrs:{headline:t.label}},[e("k-box",{attrs:{html:!0,icon:t.icon,text:t.text,theme:t.theme}})],1)}),[],!1,null,null,null,null).exports;const Fl=Y({extends:Pl,computed:{canAdd(){return this.options.add&&this.$panel.permissions.pages.create},items(){return this.data.map((t=>{const e=!1===t.permissions.changeStatus,n=this.$helper.page.status(t.status,e);return n.click=()=>this.$dialog(t.link+"/changeStatus"),t.flag={status:t.status,disabled:e,click:()=>this.$dialog(t.link+"/changeStatus")},t.sortable=t.permissions.sort&&this.options.sortable,t.deletable=this.data.length>this.options.min,t.column=this.column,t.buttons=[n,...t.buttons??[]],t.options=this.$dropdown(t.link,{query:{view:"list",delete:t.deletable,sort:t.sortable}}),t.data={"data-id":t.id,"data-status":t.status,"data-template":t.template},t}))},type:()=>"pages"},created(){this.$events.on("page.changeStatus",this.reload),this.$events.on("page.sort",this.reload)},destroyed(){this.$events.off("page.changeStatus",this.reload),this.$events.off("page.sort",this.reload)},methods:{onAdd(){this.canAdd&&this.$dialog("pages/create",{query:{parent:this.options.link??this.parent,view:this.parent,section:this.name}})},async onChange(t){let e=null;if(t.added&&(e="added"),t.moved&&(e="moved"),e){this.isProcessing=!0;const i=t[e].element,s=t[e].newIndex+1+this.pagination.offset;try{await this.$api.pages.changeStatus(i.id,"listed",s),this.$panel.notification.success(),this.$events.emit("page.sort",i)}catch(n){this.$panel.error({message:n.message,details:n.details}),await this.reload()}finally{this.isProcessing=!1}}}}},null,null,!1,null,null,null,null).exports;const Rl=Y({mixins:[Bl],data:()=>({headline:null,isLoading:!0,reports:null,size:null}),async created(){const t=await this.load();this.isLoading=!1,this.headline=t.headline,this.reports=t.reports,this.size=t.size},methods:{}},(function(){var t=this,e=t._self._c;return!1===t.isLoading?e("k-section",{staticClass:"k-stats-section",attrs:{headline:t.headline}},[t.reports.length>0?e("k-stats",{attrs:{reports:t.reports,size:t.size}}):e("k-empty",{attrs:{icon:"chart"}},[t._v(" "+t._s(t.$t("stats.empty")))])],1):t._e()}),[],!1,null,null,null,null).exports,Yl={install(t){t.component("k-section",Dl),t.component("k-sections",Ll),t.component("k-fields-section",ql),t.component("k-files-section",Nl),t.component("k-info-section",zl),t.component("k-pages-section",Fl),t.component("k-stats-section",Rl)}};const Ul=Y({components:{"k-highlight":()=>F((()=>import("./Highlight.min.js")),["./Highlight.min.js","./vendor.min.js"],import.meta.url)},props:{language:{type:String}}},(function(){var t=this,e=t._self._c;return e("k-highlight",[e("pre",{staticClass:"k-code",attrs:{"data-language":t.language}},[e("code",{class:t.language?`language-${t.language}`:null},[t._t("default")],2)])])}),[],!1,null,null,null,null).exports;const Hl=Y({props:{link:String,size:{type:String},tag:{type:String,default:"h2"},theme:{type:String}},emits:["click"],created(){this.size&&window.panel.deprecated(": the `size` prop will be removed in a future version. Use the `tag` prop instead."),this.theme&&window.panel.deprecated(": the `theme` prop will be removed in a future version.")}},(function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"k-headline",attrs:{"data-theme":t.theme,"data-size":t.size},on:{click:function(e){return t.$emit("click",e)}}},[t.link?e("k-link",{attrs:{to:t.link}},[t._t("default")],2):t._t("default")],2)}),[],!1,null,null,null,null).exports;const Vl=Y({props:{input:{type:[String,Number]},invalid:{type:Boolean},link:{type:String},required:{default:!1,type:Boolean},type:{default:"field",type:String}},computed:{element(){return"section"===this.type?"h2":"label"}}},(function(){var t=this,e=t._self._c;return e(t.element,{tag:"component",staticClass:"k-label",class:"k-"+t.type+"-label",attrs:{for:t.input,"data-invalid":t.invalid}},[t.link?e("k-link",{attrs:{to:t.link}},[e("span",{staticClass:"k-label-text"},[t._t("default")],2)]):e("span",{staticClass:"k-label-text"},[t._t("default")],2),t.required&&!t.invalid?e("abbr",{attrs:{title:t.$t(t.type+".required")}},[t._v("✶")]):t._e(),e("abbr",{staticClass:"k-label-invalid",attrs:{title:t.$t(t.type+".invalid")}},[t._v("×")])],1)}),[],!1,null,null,null,null).exports;const Kl=Y({props:{align:String,html:String,size:String,theme:String},computed:{attrs(){return{class:"k-text","data-align":this.align,"data-size":this.size,"data-theme":this.theme}}},created(){this.theme&&window.panel.deprecated(': the `theme` prop will be removed in a future version. For help text, add `.k-help "` CSS class instead.')}},(function(){var t=this,e=t._self._c;return t.html?e("div",t._b({domProps:{innerHTML:t._s(t.html)}},"div",t.attrs,!1)):e("div",t._b({},"div",t.attrs,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports,Wl={install(t){t.component("k-code",Ul),t.component("k-headline",Hl),t.component("k-label",Vl),t.component("k-text",Kl)}};const Jl=Y({computed:{notification(){return"view"!==this.$panel.notification.context||this.$panel.notification.isFatal?null:this.$panel.notification}}},(function(){var t=this,e=t._self._c;return e("k-panel",{staticClass:"k-panel-inside"},[e("k-panel-menu"),e("main",{staticClass:"k-panel-main"},[e("k-topbar",{attrs:{breadcrumb:t.$panel.view.breadcrumb,view:t.$panel.view}},[t._t("topbar")],2),t._t("default")],2),t.notification&&"error"!==t.notification.type?e("k-button",{staticClass:"k-panel-notification",attrs:{icon:t.notification.icon,text:t.notification.message,theme:t.notification.theme,variant:"filled"},on:{click:function(e){return t.notification.close()}}}):t._e()],1)}),[],!1,null,null,null,null).exports;const Gl=Y({data:()=>({over:!1}),computed:{menus(){return this.$panel.menu.entries.split("-")}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-panel-menu",attrs:{"aria-label":t.$t("menu"),"data-hover":t.$panel.menu.hover},on:{mouseenter:function(e){t.$panel.menu.hover=!0},mouseleave:function(e){t.$panel.menu.hover=!1}}},[e("div",{staticClass:"k-panel-menu-body"},[e("k-button",{staticClass:"k-panel-menu-search k-panel-menu-button",attrs:{text:t.$t("search"),icon:"search"},on:{click:function(e){return t.$panel.search()}}}),t._l(t.menus,(function(n,i){return e("menu",{key:i,staticClass:"k-panel-menu-buttons",attrs:{"data-second-last":i===t.menus.length-2}},t._l(n,(function(n){return e("k-button",t._b({key:n.id,staticClass:"k-panel-menu-button",attrs:{title:n.title??n.text}},"k-button",n,!1))})),1)}))],2),e("k-button",{staticClass:"k-panel-menu-toggle",attrs:{icon:t.$panel.menu.isOpen?"angle-left":"angle-right",title:t.$panel.menu.isOpen?t.$t("collapse"):t.$t("expand"),size:"xs"},on:{click:function(e){return t.$panel.menu.toggle()}}})],1)}),[],!1,null,null,null,null).exports;const Xl=Y({},(function(){return(0,this._self._c)("k-panel",{staticClass:"k-panel-outside",attrs:{tabindex:"0"}},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const Ql=Y({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-panel",attrs:{"data-dragging":t.$panel.drag.isDragging,"data-loading":t.$panel.isLoading,"data-language":t.$panel.language.code,"data-language-default":t.$panel.language.isDefault,"data-menu":t.$panel.menu.isOpen?"true":"false","data-role":t.$panel.user.role,"data-translation":t.$panel.translation.code,"data-user":t.$panel.user.id,dir:t.$panel.direction}},[t._t("default"),t.$panel.dialog.isOpen&&!t.$panel.dialog.legacy?e("k-fiber-dialog"):t._e(),t.$panel.drawer.isOpen&&!t.$panel.drawer.legacy?e("k-fiber-drawer"):t._e(),t.$panel.notification.isFatal&&t.$panel.notification.isOpen?e("k-fatal",{attrs:{html:t.$panel.notification.message}}):t._e(),!1===t.$panel.system.isLocal?e("k-offline-warning"):t._e(),e("k-icons"),e("k-overlay",{attrs:{nested:t.$panel.drawer.history.milestones.length>1,visible:t.$panel.drawer.isOpen,type:"drawer"},on:{close:function(e){return t.$panel.drawer.close()}}},[e("portal-target",{staticClass:"k-drawer-portal k-portal",attrs:{name:"drawer",multiple:""}})],1),e("k-overlay",{attrs:{visible:t.$panel.dialog.isOpen,type:"dialog"},on:{close:function(e){return t.$panel.dialog.close()}}},[e("portal-target",{staticClass:"k-dialog-portal k-portal",attrs:{name:"dialog",multiple:""}})],1),e("portal-target",{staticClass:"k-overlay-portal k-portal",attrs:{name:"overlay",multiple:""}})],2)}),[],!1,null,null,null,null).exports;const Zl=Y({props:{breadcrumb:Array,license:Boolean,menu:Array,title:String,view:Object}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-topbar"},[e("k-button",{staticClass:"k-panel-menu-proxy",attrs:{icon:"bars"},on:{click:function(e){return t.$panel.menu.toggle()}}}),e("k-breadcrumb",{staticClass:"k-topbar-breadcrumb",attrs:{crumbs:t.breadcrumb,view:t.view}}),e("div",{staticClass:"k-topbar-spacer"}),e("div",{staticClass:"k-topbar-signals"},[t._t("default")],2)],1)}),[],!1,null,null,null,null).exports,tr={install(t){t.component("k-panel",Ql),t.component("k-panel-inside",Jl),t.component("k-panel-menu",Gl),t.component("k-panel-outside",Xl),t.component("k-topbar",Zl),t.component("k-inside",Jl),t.component("k-outside",Xl)}};const er=Y({props:{error:String,layout:String}},(function(){var t=this,e=t._self._c;return e(`k-panel-${t.layout}`,{tag:"component",staticClass:"k-error-view"},["outside"===t.layout?[e("div",[e("k-box",{attrs:{icon:"alert",theme:"negative"}},[t._v(t._s(t.error))])],1)]:[e("k-header",[t._v(t._s(t.$t("error")))]),e("k-box",{attrs:{icon:"alert",theme:"negative"}},[t._v(t._s(t.error))])]],2)}),[],!1,null,null,null,null).exports;const nr=Y({mixins:[vt],props:{type:{default:"pages",type:String}},data(){return{items:[],query:this.getQuery(),pagination:{}}},computed:{tabs(){const t=[];for(const e in this.$panel.searches){const n=this.$panel.searches[e];t.push({label:n.label,link:"/search/?type="+e+"&query="+this.query,name:e})}return t}},watch:{query:{handler(){this.search()},immediate:!0},type(){this.search()}},methods:{focus(){var t;null==(t=this.$refs.input)||t.focus()},getQuery:()=>new URLSearchParams(window.location.search).get("query"),onPaginate(t){this.search(t.page)},async search(t){this.$panel.isLoading=!0,t||(t=new URLSearchParams(window.location.search).get("page")??1);const e=this.$panel.url(window.location,{type:this.type,query:this.query,page:t>1?t:null});window.history.pushState("","",e.toString());try{if(null===this.query||this.query.length<2)throw Error("Empty query");const e=await this.$search(this.type,this.query,{page:t,limit:15});this.items=e.results,this.pagination=e.pagination}catch(n){this.items=[],this.pagination={}}finally{this.$panel.isLoading=!1}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-search-view"},[e("k-header",[t._v(" Search "),e("k-input",{ref:"input",staticClass:"k-search-view-input",attrs:{slot:"buttons","aria-label":t.$t("search"),autofocus:!0,placeholder:t.$t("search")+" …",value:t.query,icon:"search",type:"text"},on:{input:function(e){t.query=e}},slot:"buttons"})],1),e("k-tabs",{attrs:{tab:t.type,tabs:t.tabs}}),e("div",{staticClass:"k-search-view-results"},[t.query?e("k-collection",{attrs:{items:t.items,empty:{icon:"search",text:t.$t("search.results.none")},pagination:t.pagination},on:{paginate:t.onPaginate}}):t._e()],1)],1)}),[],!1,null,null,null,null).exports;const ir=Y({props:{blueprint:String,next:Object,prev:Object,permissions:{type:Object,default:()=>({})},lock:{type:[Boolean,Object]},model:{type:Object,default:()=>({})},tab:{type:Object,default:()=>({columns:[]})},tabs:{type:Array,default:()=>[]}},computed:{id(){return this.model.link},isLocked(){var t;return"lock"===(null==(t=this.lock)?void 0:t.state)},protectedFields:()=>[]},watch:{"$panel.view.timestamp":{handler(){this.$store.dispatch("content/create",{id:this.id,api:this.id,content:this.model.content,ignore:this.protectedFields})},immediate:!0}},created(){this.$events.on("model.reload",this.$reload),this.$events.on("keydown.left",this.toPrev),this.$events.on("keydown.right",this.toNext)},destroyed(){this.$events.off("model.reload",this.$reload),this.$events.off("keydown.left",this.toPrev),this.$events.off("keydown.right",this.toNext)},methods:{toPrev(t){this.prev&&"body"===t.target.localName&&this.$go(this.prev.link)},toNext(t){this.next&&"body"===t.target.localName&&this.$go(this.next.link)}}},null,null,!1,null,null,null,null).exports;const sr=Y({extends:ir,props:{preview:Object},computed:{focus(){const t=this.$store.getters["content/values"]().focus;if(!t)return;const[e,n]=t.replaceAll("%","").split(" ");return{x:parseFloat(e),y:parseFloat(n)}},isFocusable(){return!this.isLocked&&this.preview.image.src&&this.permissions.update&&(!window.panel.multilang||0===window.panel.languages.length||window.panel.language.default)}},methods:{action(t){if("replace"===t)return this.$panel.upload.replace({...this.preview,...this.model})},setFocus(t){!0===this.$helper.object.isObject(t)&&(t=`${t.x}% ${t.y}%`),this.$store.dispatch("content/update",["focus",t])}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-file-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[e("k-prev-next",{attrs:{prev:t.prev,next:t.next}})]},proxy:!0}])},[e("k-header",{staticClass:"k-file-view-header",attrs:{editable:t.permissions.changeName&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeName")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-file-view-options",attrs:{link:t.preview.url,responsive:!0,title:t.$t("open"),icon:"open",size:"sm",target:"_blank",variant:"filled"}}),e("k-button",{staticClass:"k-file-view-options",attrs:{disabled:t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{options:t.$dropdown(t.id),"align-x":"end"},on:{action:t.action}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.filename)+" ")]),e("k-file-preview",t._b({attrs:{focus:t.focus},on:{focus:t.setFocus}},"k-file-preview",t.preview,!1)),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("file.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const or=Y({props:{details:{default:()=>[],type:Array},focus:{type:Object},focusable:Boolean,image:{default:()=>({}),type:Object},url:String},computed:{options(){const t=[{icon:"open",text:this.$t("open"),link:this.url,target:"_blank"}];return this.focusable&&(this.focus?t.push({icon:"cancel",text:this.$t("file.focus.reset"),click:()=>this.$refs.focus.reset()}):t.push({icon:"preview",text:this.$t("file.focus.placeholder"),click:()=>this.$refs.focus.set()})),t}},methods:{setFocus(t){if(!t)return this.$emit("focus",null);this.$emit("focus",{x:t.x.toFixed(1),y:t.y.toFixed(1)})}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-file-preview",attrs:{"data-has-focus":Boolean(t.focus)}},[e("div",{staticClass:"k-file-preview-thumb-column"},[e("div",{staticClass:"k-file-preview-thumb"},[t.image.src?[e("k-coords-input",{attrs:{disabled:!t.focusable,value:t.focus},on:{input:function(e){return t.setFocus(e)}}},[e("img",t._b({on:{dragstart:function(t){t.preventDefault()}}},"img",t.image,!1))]),e("k-button",{staticStyle:{color:"var(--color-gray-500)"},attrs:{icon:"dots",size:"xs"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{options:t.options,theme:"light"}})]:e("k-icon",{staticClass:"k-item-icon",attrs:{color:t.$helper.color(t.image.color),type:t.image.icon}})],2)]),e("div",{staticClass:"k-file-preview-details"},[e("dl",[t._l(t.details,(function(n){return e("div",{key:n.title},[e("dt",[t._v(t._s(n.title))]),e("dd",[n.link?e("k-link",{attrs:{to:n.link,tabindex:"-1",target:"_blank"}},[t._v(" /"+t._s(n.text)+" ")]):[t._v(" "+t._s(n.text)+" ")]],2)])})),t.image.src?e("div",{staticClass:"k-file-preview-focus-info"},[e("dt",[t._v(t._s(t.$t("file.focus.title")))]),e("dd",[t.focusable?e("k-file-focus-button",{ref:"focus",attrs:{focus:t.focus},on:{set:t.setFocus}}):t.focus?[t._v(" "+t._s(t.focus.x)+"% "+t._s(t.focus.y)+"% ")]:[t._v("–")]],2)]):t._e()],2)])])}),[],!1,null,null,null,null).exports;const lr=Y({props:{focus:Object},methods:{set(){this.$emit("set",{x:50,y:50})},reset(){this.$emit("set",void 0)}}},(function(){var t=this;return(0,t._self._c)("k-button",{attrs:{icon:t.focus?"cancel-small":"preview",title:t.focus?t.$t("file.focus.reset"):void 0,size:"xs",variant:"filled"},on:{click:function(e){t.focus?t.reset():t.set()}}},[t.focus?[t._v(t._s(t.focus.x)+"% "+t._s(t.focus.y)+"%")]:[t._v(t._s(t.$t("file.focus.placeholder")))]],2)}),[],!1,null,null,null,null).exports;const rr=Y({props:{languages:{type:Array,default:()=>[]},variables:{type:Boolean,default:!0}},computed:{languagesCollection(){return this.languages.map((t=>({...t,image:{back:"black",color:"gray",icon:"translate"},link:()=>{if(!1===this.variables)return null;this.$go(`languages/${t.id}`)},options:[{icon:"edit",text:this.$t("edit"),disabled:!1===this.variables,click:()=>this.$go(`languages/${t.id}`)},{icon:"cog",text:this.$t("settings"),click:()=>this.$dialog(`languages/${t.id}/update`)},{icon:"trash",text:this.$t("delete"),disabled:!1===t.deletable,click:()=>this.$dialog(`languages/${t.id}/delete`)}]})))},primaryLanguage(){return this.languagesCollection.filter((t=>t.default))},secondaryLanguages(){return this.languagesCollection.filter((t=>!1===t.default))}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-languages-view"},[e("k-header",[t._v(" "+t._s(t.$t("view.languages"))+" "),e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[e("k-button",{attrs:{text:t.$t("language.create"),icon:"add",size:"sm",variant:"filled"},on:{click:function(e){return t.$dialog("languages/create")}}})],1)],1),t.languages.length>0?[e("k-section",{attrs:{headline:t.$t("languages.default")}},[e("k-collection",{attrs:{items:t.primaryLanguage}})],1),e("k-section",{attrs:{headline:t.$t("languages.secondary")}},[t.secondaryLanguages.length?e("k-collection",{attrs:{items:t.secondaryLanguages}}):e("k-empty",{attrs:{icon:"translate"},on:{click:function(e){return t.$dialog("languages/create")}}},[t._v(" "+t._s(t.$t("languages.secondary.empty"))+" ")])],1)]:0===t.languages.length?[e("k-empty",{attrs:{icon:"translate"},on:{click:function(e){return t.$dialog("languages/create")}}},[t._v(" "+t._s(t.$t("languages.empty"))+" ")])]:t._e()],2)}),[],!1,null,null,null,null).exports;const ar=Y({props:{code:String,deletable:Boolean,direction:String,id:String,info:Array,next:Object,name:String,prev:Object,translations:Array,url:String},methods:{createTranslation(){this.$dialog(`languages/${this.id}/translations/create`)},option(t,e){this.$dialog(`languages/${this.id}/translations/${window.btoa(encodeURIComponent(e.key))}/${t}`)},remove(){this.$dialog(`languages/${this.id}/delete`)},update(t){this.$dialog(`languages/${this.id}/update`,{on:{ready:()=>{this.$panel.dialog.focus(t)}}})},updateTranslation({row:t}){this.$dialog(`languages/${this.id}/translations/${window.btoa(encodeURIComponent(t.key))}/update`)}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-language-view",scopedSlots:t._u([{key:"topbar",fn:function(){return[e("k-prev-next",{attrs:{prev:t.prev,next:t.next}})]},proxy:!0}])},[e("k-header",{attrs:{editable:!0},on:{edit:function(e){return t.update()}}},[t._v(" "+t._s(t.name)+" "),e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[e("k-button",{attrs:{link:t.url,title:t.$t("open"),icon:"open",size:"sm",target:"_blank",variant:"filled"}}),e("k-button",{attrs:{title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.update()}}}),t.deletable?e("k-button",{attrs:{title:t.$t("delete"),icon:"trash",size:"sm",variant:"filled"},on:{click:function(e){return t.remove()}}}):t._e()],1)],1),e("k-section",{attrs:{headline:t.$t("language.settings")}},[e("k-stats",{attrs:{reports:t.info,size:"small"}})],1),e("k-section",{attrs:{buttons:[{click:t.createTranslation,icon:"add",text:t.$t("add")}],headline:t.$t("language.variables")}},[t.translations.length?[e("k-table",{attrs:{columns:{key:{label:t.$t("language.variable.key"),mobile:!0,width:"1/4"},value:{label:t.$t("language.variable.value"),mobile:!0}},rows:t.translations},on:{cell:t.updateTranslation,option:t.option}})]:[e("k-empty",{attrs:{icon:"translate"},on:{click:t.createTranslation}},[t._v(" "+t._s(t.$t("language.variables.empty"))+" ")])]],2)],1)}),[],!1,null,null,null,null).exports;const ur=Y({components:{"k-login-plugin":window.panel.plugins.login??ze},props:{methods:Array,pending:Object},data:()=>({issue:""}),computed:{form(){return this.pending.email?"code":"login"},viewClass(){return"code"===this.form?"k-login-code-view":"k-login-view"}},created(){this.$store.dispatch("content/clear")},methods:{async onError(t){null!==t?(!0===t.details.challengeDestroyed&&await this.$reload({globals:["$system"]}),this.issue=t.message):this.issue=null}}},(function(){var t=this,e=t._self._c;return e("k-panel-outside",{class:t.viewClass},[e("div",{staticClass:"k-dialog k-login-dialog"},[e("h1",{staticClass:"sr-only"},[t._v(" "+t._s(t.$t("login"))+" ")]),t.issue?e("k-login-alert",{nativeOn:{click:function(e){t.issue=null}}},[t._v(" "+t._s(t.issue)+" ")]):t._e(),e("k-dialog-body",["code"===t.form?e("k-login-code",t._b({on:{error:t.onError}},"k-login-code",t.$props,!1)):e("k-login-plugin",{attrs:{methods:t.methods},on:{error:t.onError}})],1)],1)])}),[],!1,null,null,null,null).exports;const cr=Y({props:{isInstallable:Boolean,isInstalled:Boolean,isOk:Boolean,requirements:Object,translations:Array},data(){return{user:{name:"",email:"",language:this.$panel.translation.code,password:"",role:"admin"}}},computed:{fields(){return{email:{label:this.$t("email"),type:"email",link:!1,autofocus:!0,required:!0},password:{label:this.$t("password"),type:"password",placeholder:this.$t("password")+" …",required:!0},language:{label:this.$t("language"),type:"select",options:this.translations,icon:"translate",empty:!1,required:!0}}},isReady(){return this.isOk&&this.isInstallable},isComplete(){return this.isOk&&this.isInstalled}},methods:{async install(){try{await this.$api.system.install(this.user),await this.$reload({globals:["$system","$translation"]}),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"})}catch(t){this.$panel.error(t)}}}},(function(){var t=this,e=t._self._c;return e("k-panel-outside",{staticClass:"k-installation-view"},[e("div",{staticClass:"k-dialog k-installation-dialog"},[e("k-dialog-body",[t.isComplete?e("k-text",[e("k-headline",[t._v(t._s(t.$t("installation.completed")))]),e("k-link",{attrs:{to:"/login"}},[t._v(" "+t._s(t.$t("login"))+" ")])],1):t.isReady?e("form",{on:{submit:function(e){return e.preventDefault(),t.install.apply(null,arguments)}}},[e("h1",{staticClass:"sr-only"},[t._v(" "+t._s(t.$t("installation"))+" ")]),e("k-fieldset",{attrs:{fields:t.fields,novalidate:!0,value:t.user},on:{input:function(e){t.user=e}}}),e("k-button",{attrs:{text:t.$t("install"),icon:"check",size:"lg",theme:"positive",type:"submit",variant:"filled"}})],1):e("div",[e("k-headline",[t._v(" "+t._s(t.$t("installation.issues.headline"))+" ")]),e("ul",{staticClass:"k-installation-issues"},[!1===t.isInstallable?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.disabled"))}})],1):t._e(),!1===t.requirements.php?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.php"))}})],1):t._e(),!1===t.requirements.server?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.server"))}})],1):t._e(),!1===t.requirements.mbstring?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.mbstring"))}})],1):t._e(),!1===t.requirements.curl?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.curl"))}})],1):t._e(),!1===t.requirements.accounts?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.accounts"))}})],1):t._e(),!1===t.requirements.content?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.content"))}})],1):t._e(),!1===t.requirements.media?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.media"))}})],1):t._e(),!1===t.requirements.sessions?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.sessions"))}})],1):t._e()]),e("k-button",{attrs:{text:t.$t("retry"),icon:"refresh",size:"lg",theme:"positive",variant:"filled"},on:{click:t.$reload}})],1)],1)],1)])}),[],!1,null,null,null,null).exports;const dr=Y({data:()=>({isLoading:!1,values:{password:null,passwordConfirmation:null}}),computed:{fields(){return{password:{autofocus:!0,label:this.$t("user.changePassword.new"),icon:"key",type:"password",width:"1/2"},passwordConfirmation:{label:this.$t("user.changePassword.new.confirm"),icon:"key",type:"password",width:"1/2"}}}},mounted(){this.$panel.title=this.$t("view.resetPassword")},methods:{async submit(){if(!this.values.password||this.values.password.length<8)return this.$panel.notification.error(this.$t("error.user.password.invalid"));if(this.values.password!==this.values.passwordConfirmation)return this.$panel.notification.error(this.$t("error.user.password.notSame"));this.isLoading=!0;try{await this.$api.users.changePassword(this.$panel.user.id,this.values.password),this.$panel.notification.success(),this.$go("/")}catch(t){this.$panel.notification.error(t)}finally{this.isLoading=!1}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-password-reset-view"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("k-header",{scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button",{attrs:{icon:"check",theme:"notice",type:"submit",variant:"filled",size:"sm"}},[t._v(" "+t._s(t.$t("change"))+" "),t.isLoading?[t._v(" … ")]:t._e()],2)]},proxy:!0}])},[t._v(" "+t._s(t.$t("view.resetPassword"))+" ")]),e("k-user-info",{attrs:{user:t.$panel.user}}),e("k-fieldset",{attrs:{fields:t.fields,value:t.values}})],1)])}),[],!1,null,null,null,null).exports;const pr=Y({props:{user:[Object,String]}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-user-info"},[t.user.avatar?e("k-image-frame",{attrs:{cover:!0,src:t.user.avatar.url,ratio:"1/1"}}):e("k-icon-frame",{attrs:{color:"white",back:"black",icon:"user"}}),t._v(" "+t._s(t.user.name??t.user.email??t.user)+" ")],1)}),[],!1,null,null,null,null).exports;const hr=Y({extends:ir,props:{status:Object},computed:{protectedFields:()=>["title"],statusBtn(){return{...this.$helper.page.status.call(this,this.model.status,!this.permissions.changeStatus||this.isLocked),responsive:!0,size:"sm",text:this.status.label,variant:"filled"}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-page-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[t.model.id?e("k-prev-next",{attrs:{prev:t.prev,next:t.next}}):t._e()]},proxy:!0}])},[e("k-header",{staticClass:"k-page-view-header",attrs:{editable:t.permissions.changeTitle&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeTitle")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[t.permissions.preview&&t.model.previewUrl?e("k-button",{staticClass:"k-page-view-preview",attrs:{link:t.model.previewUrl,title:t.$t("open"),icon:"open",target:"_blank",variant:"filled",size:"sm"}}):t._e(),e("k-button",{staticClass:"k-page-view-options",attrs:{disabled:!0===t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{options:t.$dropdown(t.id),"align-x":"end"}}),e("k-languages-dropdown"),t.status?e("k-button",t._b({staticClass:"k-page-view-status",attrs:{variant:"filled"},on:{click:function(e){return t.$dialog(t.id+"/changeStatus")}}},"k-button",t.statusBtn,!1)):t._e()],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.title)+" ")]),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("page.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const mr=Y({extends:ir,computed:{protectedFields:()=>["title"]}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-site-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-locked":t.isLocked,"data-id":"/","data-template":"site"}},[e("k-header",{staticClass:"k-site-view-header",attrs:{editable:t.permissions.changeTitle&&!t.isLocked},on:{edit:function(e){return t.$dialog("site/changeTitle")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-site-view-preview",attrs:{link:t.model.previewUrl,title:t.$t("open"),icon:"open",target:"_blank",variant:"filled",size:"sm"}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.title)+" ")]),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("site.blueprint"),lock:t.lock,tab:t.tab,parent:"site"},on:{submit:function(e){return t.$emit("submit",e)}}})],1)}),[],!1,null,null,null,null).exports;const fr=Y({components:{Plugins:Y({props:{plugins:Array}},(function(){var t=this,e=t._self._c;return t.plugins.length?e("k-section",{attrs:{headline:t.$t("plugins"),link:"https://getkirby.com/plugins"}},[e("k-table",{attrs:{index:!1,columns:{name:{label:t.$t("name"),type:"url",mobile:!0},author:{label:t.$t("author")},license:{label:t.$t("license")},version:{label:t.$t("version"),type:"update-status",mobile:!0,width:"10rem"}},rows:t.plugins}})],1):t._e()}),[],!1,null,null,null,null).exports,Security:Y({props:{exceptions:Array,security:Array,urls:Object},data(){return{issues:X(this.security)}},async created(){console.info("Running system health checks for the Panel system view; failed requests in the following console output are expected behavior.");const t=(Promise.allSettled??Promise.all).bind(Promise),e=Object.entries(this.urls).map(this.check);await t(e),console.info(`System health checks ended. ${this.issues.length-this.security.length} issues with accessible files/folders found (see the security list in the system view).`)},methods:{async check([t,e]){if(!e)return;const{status:n}=await fetch(e,{cache:"no-store"});n<400&&this.issues.push({id:t,text:this.$t("system.issues."+t),link:"https://getkirby.com/security/"+t,icon:"folder"})},retry(){this.$go(window.location.href)}}},(function(){var t=this,e=t._self._c;return t.issues.length?e("k-section",{attrs:{headline:t.$t("security"),buttons:[{title:t.$t("retry"),icon:"refresh",click:t.retry}]}},[e("k-items",{attrs:{items:t.issues.map((t=>({image:{back:"var(--color-red-200)",icon:t.icon??"alert",color:"var(--color-red)"},target:"_blank",...t})))}})],1):t._e()}),[],!1,null,null,null,null).exports},props:{environment:Array,exceptions:Array,plugins:Array,security:Array,urls:Object},created(){this.exceptions.length>0&&(console.info("The following errors occurred during the update check of Kirby and/or plugins:"),this.exceptions.map((t=>console.warn(t))),console.info("End of errors from the update check."))}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-system-view"},[e("k-header",[t._v(" "+t._s(t.$t("view.system"))+" ")]),e("k-section",{attrs:{headline:t.$t("environment")}},[e("k-stats",{staticClass:"k-system-info",attrs:{reports:t.environment,size:"medium"}})],1),e("security",{attrs:{security:t.security,urls:t.urls}}),e("plugins",{attrs:{plugins:t.plugins}})],1)}),[],!1,null,null,null,null).exports;const gr=Y({props:{value:[String,Object]}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-table-update-status-cell"},["string"==typeof t.value?e("span",{staticClass:"k-table-update-status-cell-version"},[t._v(" "+t._s(t.value)+" ")]):[e("k-button",{staticClass:"k-table-update-status-cell-button",attrs:{dropdown:!0,icon:t.value.icon,href:t.value.url,text:t.value.currentVersion,theme:t.value.theme,size:"xs",variant:"filled"},on:{click:function(e){return e.stopPropagation(),t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{"align-x":"end"}},[e("dl",{staticClass:"k-plugin-info"},[e("dt",[t._v(t._s(t.$t("plugin")))]),e("dd",[t._v(t._s(t.value.pluginName))]),e("dt",[t._v(t._s(t.$t("version.current")))]),e("dd",[t._v(t._s(t.value.currentVersion))]),e("dt",[t._v(t._s(t.$t("version.latest")))]),e("dd",[t._v(t._s(t.value.latestVersion))]),e("dt",[t._v(t._s(t.$t("system.updateStatus")))]),e("dd",{attrs:{"data-theme":t.value.theme}},[t._v(t._s(t.value.label))])]),t.value.url?[e("hr"),e("k-button",{attrs:{icon:"open",link:t.value.url}},[t._v(" "+t._s(t.$t("versionInformation"))+" ")])]:t._e()],2)]],2)}),[],!1,null,null,null,null).exports;const kr=Y({extends:ir},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-user-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[t.model.account?e("k-prev-next",{attrs:{prev:t.prev,next:t.next}}):t._e()]},proxy:!0}])},[e("k-header",{staticClass:"k-user-view-header",attrs:{editable:t.permissions.changeName&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeName")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-user-view-options",attrs:{disabled:t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{"align-x":"end",options:t.$dropdown(t.id)}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t.model.name&&0!==t.model.name.length?[t._v(" "+t._s(t.model.name)+" ")]:e("span",{staticClass:"k-user-name-placeholder"},[t._v(" "+t._s(t.$t("name"))+" … ")])],2),e("k-user-profile",{attrs:{"is-locked":t.isLocked,model:t.model,permissions:t.permissions}}),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("user.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const br=Y({extends:kr,prevnext:!1},null,null,!1,null,null,null,null).exports;const vr=Y({props:{model:Object},methods:{async deleteAvatar(){await this.$api.users.deleteAvatar(this.model.id),this.$panel.notification.success(),this.$reload()},uploadAvatar(){this.$panel.upload.pick({url:this.$panel.urls.api+"/"+this.model.link+"/avatar",accept:"image/*",immediate:!0,multiple:!1})}}},(function(){var t=this,e=t._self._c;return e("div",[e("k-button",{staticClass:"k-user-view-image",attrs:{title:t.$t("avatar"),variant:"filled"},on:{click:function(e){t.model.avatar?t.$refs.avatar.toggle():t.uploadAvatar()}}},[t.model.avatar?e("k-image-frame",{attrs:{cover:!0,src:t.model.avatar}}):e("k-icon-frame",{attrs:{icon:"user"}})],1),t.model.avatar?e("k-dropdown-content",{ref:"avatar",attrs:{options:[{icon:"upload",text:t.$t("change"),click:t.uploadAvatar},{icon:"trash",text:t.$t("delete"),click:t.deleteAvatar}]}}):t._e()],1)}),[],!1,null,null,null,null).exports;const yr=Y({props:{isLocked:Boolean,model:Object,permissions:Object}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-user-profile"},[e("k-user-avatar",{attrs:{model:t.model,"aria-disabled":t.isLocked}}),e("k-button-group",{attrs:{buttons:[{icon:"email",text:`${t.model.email}`,title:`${t.$t("email")}: ${t.model.email}`,disabled:!t.permissions.changeEmail||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeEmail")},{icon:"bolt",text:`${t.model.role}`,title:`${t.$t("role")}: ${t.model.role}`,disabled:!t.permissions.changeRole||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeRole")},{icon:"translate",text:`${t.model.language}`,title:`${t.$t("language")}: ${t.model.language}`,disabled:!t.permissions.changeLanguage||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeLanguage")}]}})],1)}),[],!1,null,null,null,null).exports;const $r=Y({props:{role:Object,roles:Array,search:String,title:String,users:Object},computed:{empty(){return{icon:"users",text:this.$t("role.empty")}},items(){return this.users.data.map((t=>(t.options=this.$dropdown(t.link),t)))},tabs(){const t=[{name:"all",label:this.$t("role.all"),link:"/users"}];for(const e of this.roles)t.push({name:e.id,label:e.title,link:"/users?role="+e.id});return t}},methods:{create(){var t;this.$dialog("users/create",{query:{role:null==(t=this.role)?void 0:t.id}})},paginate(t){this.$reload({query:{page:t.page}})}}},(function(){var t,e=this,n=e._self._c;return n("k-panel-inside",{staticClass:"k-users-view"},[n("k-header",{staticClass:"k-users-view-header",scopedSlots:e._u([{key:"buttons",fn:function(){return[n("k-button",{attrs:{disabled:!e.$panel.permissions.users.create,text:e.$t("user.create"),icon:"add",size:"sm",variant:"filled"},on:{click:e.create}})]},proxy:!0}])},[e._v(" "+e._s(e.$t("view.users"))+" ")]),n("k-tabs",{attrs:{tab:(null==(t=e.role)?void 0:t.id)??"all",tabs:e.tabs}}),n("k-collection",{attrs:{empty:e.empty,items:e.items,pagination:e.users.pagination},on:{paginate:e.paginate}})],1)}),[],!1,null,null,null,null).exports;const wr=Y({props:{id:String}},(function(){var t=this._self._c;return t("k-panel-inside",[t("k-"+this.id+"-plugin-view",{tag:"component"})],1)}),[],!1,null,null,null,null).exports,xr={install(t){t.component("k-error-view",er),t.component("k-search-view",nr),t.component("k-file-view",sr),t.component("k-file-preview",or),t.component("k-file-focus-button",lr),t.component("k-languages-view",rr),t.component("k-language-view",ar),t.component("k-login-view",ur),t.component("k-installation-view",cr),t.component("k-reset-password-view",dr),t.component("k-user-info",pr),t.component("k-page-view",hr),t.component("k-site-view",mr),t.component("k-system-view",fr),t.component("k-table-update-status-cell",gr),t.component("k-account-view",br),t.component("k-user-avatar",vr),t.component("k-user-profile",yr),t.component("k-user-view",kr),t.component("k-users-view",$r),t.component("k-plugin-view",wr)}},_r={install(t){t.use(J),t.use(Bt),t.use(ee),t.use(de),t.use(Do),t.use(qo),t.use(ol),t.use(gl),t.use(El),t.use(Wl),t.use(Yl),t.use(Wl),t.use(tr),t.use(xr),t.use(D)}},Cr={install(t){window.onunhandledrejection=t=>{t.preventDefault(),window.panel.error(t.reason)},t.config.errorHandler=window.panel.error.bind(window.panel)}},Sr=(t={})=>{var e=t.desc?-1:1,n=-e,i=/^0/,s=/\s+/g,o=/^\s+|\s+$/g,l=/[^\x00-\x80]/,r=/^0x[0-9a-f]+$/i,a=/(0x[\da-fA-F]+|(^[\+\-]?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?(?=\D|\s|$))|\d+)/g,u=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=t.insensitive?function(t){return function(t){if(t.toLocaleLowerCase)return t.toLocaleLowerCase();return t.toLowerCase()}(""+t).replace(o,"")}:function(t){return(""+t).replace(o,"")};function d(t){return t.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")}function p(t,e){return(!t.match(i)||1===e)&&parseFloat(t)||t.replace(s," ").replace(o,"")||0}return function(t,i){var s=c(t),o=c(i);if(!s&&!o)return 0;if(!s&&o)return n;if(s&&!o)return e;var a=d(s),h=d(o),m=parseInt(s.match(r),16)||1!==a.length&&Date.parse(s),f=parseInt(o.match(r),16)||m&&o.match(u)&&Date.parse(o)||null;if(f){if(mf)return e}for(var g=a.length,k=h.length,b=0,v=Math.max(g,k);b0)return e;if(w<0)return n;if(b===v-1)return 0}else{if(y<$)return n;if(y>$)return e}}return 0}};RegExp.escape=function(t){return t.replace(new RegExp("[-/\\\\^$*+?.()[\\]{}]","gu"),"\\$&")},Array.fromObject=function(t){return Array.isArray(t)?t:Object.values(t??{})};Array.prototype.sortBy=function(t){const e=t.split(" "),n=e[0],i=e[1]??"asc",s=Sr({desc:"desc"===i,insensitive:!0});return this.sort(((t,e)=>{const i=String(t[n]??""),o=String(e[n]??"");return s(i,o)}))},Array.prototype.split=function(t){return this.reduce(((e,n)=>(n===t?e.push([]):e[e.length-1].push(n),e)),[[]])},Array.wrap=function(t){return Array.isArray(t)?t:[t]};const Or={search:(t,e,n={})=>{if((e??"").length<=(n.min??0))return t;const i=new RegExp(RegExp.escape(e),"ig"),s=n.field??"text",o=t.filter((t=>!!t[s]&&null!==t[s].match(i)));return n.limit?o.slice(0,n.limit):o}};const Ar={read:function(t,e=!1){if(!t)return null;if("string"==typeof t)return t;if(t instanceof ClipboardEvent){if(t.preventDefault(),!0===e)return t.clipboardData.getData("text/plain");const n=t.clipboardData.getData("text/html")||t.clipboardData.getData("text/plain")||null;if(n)return n.replace(/\u00a0/g," ")}return null},write:function(t,e){if("string"!=typeof t&&(t=JSON.stringify(t,null,2)),e&&e instanceof ClipboardEvent)return e.preventDefault(),e.clipboardData.setData("text/plain",t),!0;const n=document.createElement("textarea");if(n.value=t,document.body.append(n),navigator.userAgent.match(/ipad|ipod|iphone/i)){n.contentEditable=!0,n.readOnly=!0;const t=document.createRange();t.selectNodeContents(n);const e=window.getSelection();e.removeAllRanges(),e.addRange(t),n.setSelectionRange(0,999999)}else n.select();return document.execCommand("copy"),n.remove(),!0}};function Mr(t){if("string"==typeof t){if("pattern"===(t=t.toLowerCase()))return"var(--pattern)";if(!1===t.startsWith("#")&&!1===t.startsWith("var(")){const e="--color-"+t;if(window.getComputedStyle(document.documentElement).getPropertyValue(e))return`var(${e})`}return t}}function jr(t,e=!1){if(!t.match("youtu"))return!1;let n=null;try{n=new URL(t)}catch(d){return!1}const i=n.pathname.split("/").filter((t=>""!==t)),s=i[0],o=i[1],l="https://"+(!0===e?"www.youtube-nocookie.com":n.host)+"/embed",r=t=>!!t&&null!==t.match(/^[a-zA-Z0-9_-]+$/);let a=n.searchParams,u=null;switch(i.join("/")){case"embed/videoseries":case"playlist":r(a.get("list"))&&(u=l+"/videoseries");break;case"watch":r(a.get("v"))&&(u=l+"/"+a.get("v"),a.has("t")&&a.set("start",a.get("t")),a.delete("v"),a.delete("t"));break;default:n.host.includes("youtu.be")&&r(s)?(u=!0===e?"https://www.youtube-nocookie.com/embed/"+s:"https://www.youtube.com/embed/"+s,a.has("t")&&a.set("start",a.get("t")),a.delete("t")):["embed","shorts"].includes(s)&&r(o)&&(u=l+"/"+o)}if(!u)return!1;const c=a.toString();return c.length&&(u+="?"+c),u}function Ir(t,e=!1){let n=null;try{n=new URL(t)}catch(a){return!1}const i=n.pathname.split("/").filter((t=>""!==t));let s=n.searchParams,o=null;switch(!0===e&&s.append("dnt",1),n.host){case"vimeo.com":case"www.vimeo.com":o=i[0];break;case"player.vimeo.com":o=i[1]}if(!o||!o.match(/^[0-9]*$/))return!1;let l="https://player.vimeo.com/video/"+o;const r=s.toString();return r.length&&(l+="?"+r),l}const Tr={youtube:jr,vimeo:Ir,video:function(t,e=!1){return!0===t.includes("youtu")?jr(t,e):!0===t.includes("vimeo")&&Ir(t,e)}};const Er={form:function(t){const e={};for(const n in t)e[n]=X(t[n].default);return e},isVisible:function(t,e){if("hidden"===t.type||!0===t.hidden)return!1;if(!t.when)return!0;for(const n in t.when){const i=e[n.toLowerCase()],s=t.when[n];if((void 0!==i||""!==s&&s!==[])&&i!==s)return!1}return!0},subfields:function(t,e){let n={};for(const i in e){const s=e[i];s.section=t.name,t.endpoints&&(s.endpoints={field:t.endpoints.field+"+"+i,section:t.endpoints.section,model:t.endpoints.model}),n[i]=s}return n}},Dr=t=>t.split(".").slice(-1).join(""),Lr=t=>t.split(".").slice(0,-1).join("."),Br=t=>Intl.NumberFormat("en",{notation:"compact",style:"unit",unit:"byte",unitDisplay:"narrow"}).format(t),qr={extension:Dr,name:Lr,niceSize:Br};function Pr(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t)return!1;if(!e&&t.contains(document.activeElement)&&t!==document.activeElement)return!1;const n=["[autofocus]","[data-autofocus]","input","textarea","select","[contenteditable=true]","[type=submit]","button"];e&&n.unshift(`[name="${e}"]`);const i=function(t,e){for(const n of e){const e=t.querySelector(n);if(!0===Nr(e))return e}return null}(t,n);return i?(i.focus(),i):!0===Nr(t)&&(t.focus(),t)}function Nr(t){return!!t&&(!t.matches("[disabled], [aria-disabled], input[type=hidden]")&&(!t.closest("[aria-disabled]")&&!t.closest("[disabled]")&&"function"==typeof t.focus))}const zr=t=>"function"==typeof window.Vue.options.components[t],Fr=t=>!!t.dataTransfer&&(!!t.dataTransfer.types&&(!0===t.dataTransfer.types.includes("Files")&&!1===t.dataTransfer.types.includes("text/plain")));const Rr={metaKey:function(){return window.navigator.userAgent.indexOf("Mac")>-1?"cmd":"ctrl"}};const Yr={status:function(t,e=!1){const n={class:"k-status-icon",icon:"status-"+t,title:window.panel.$t("page.status")+": "+window.panel.$t("page.status."+t),disabled:e,size:"xs",style:"--icon-size: 15px"};return e&&(n.title+=` (${window.panel.$t("disabled")})`),n.theme="draft"===t?"negative":"unlisted"===t?"info":"positive",n}},Ur=(t="3/2",e="100%",n=!0)=>{const i=String(t).split("/");if(2!==i.length)return e;const s=Number(i[0]),o=Number(i[1]);let l=100;return 0!==s&&0!==o&&(l=n?l/s*o:l/o*s,l=parseFloat(String(l)).toFixed(2)),l+"%"},Hr={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Vr(t){return String(t).replace(/[&<>"'`=/]/g,(t=>Hr[t]))}function Kr(t){return!t||0===String(t).length}function Wr(t){const e=String(t);return e.charAt(0).toLowerCase()+e.slice(1)}function Jr(t="",e=""){const n=new RegExp(`^(${e})+`,"g");return t.replace(n,"")}function Gr(t="",e=""){const n=new RegExp(`(${e})+$`,"g");return t.replace(n,"")}function Xr(t,e={}){const n=(t,e={})=>{const i=e[Vr(t.shift())]??"…";return"…"===i||0===t.length?i:n(t,i)},i="[{]{1,2}[\\s]?",s="[\\s]?[}]{1,2}";return(t=t.replace(new RegExp(`${i}(.*?)${s}`,"gi"),((t,i)=>n(i.split("."),e)))).replace(new RegExp(`${i}.*${s}`,"gi"),"…")}function Qr(t){const e=String(t);return e.charAt(0).toUpperCase()+e.slice(1)}function Zr(){let t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,8!=t&&12!=t&&16!=t&&20!=t||(n+="-"),n+=(12==t?4:16==t?3&e|8:e).toString(16);return n}const ta={camelToKebab:function(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()},escapeHTML:Vr,hasEmoji:function(t){if("string"!=typeof t)return!1;const e=t.match(/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c\ude32-\ude3a]|[\ud83c\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/i);return null!==e&&null!==e.length},isEmpty:Kr,lcfirst:Wr,ltrim:Jr,pad:function(t,e=2){t=String(t);let n="";for(;n.length]+)>)/gi,"")},template:Xr,ucfirst:Qr,ucwords:function(t){return String(t).split(/ /g).map((t=>Qr(t))).join(" ")},unescapeHTML:function(t){for(const e in Hr)t=String(t).replaceAll(Hr[e],e);return t},uuid:Zr},ea=async(t,e)=>new Promise(((n,i)=>{const s={url:"/",field:"file",method:"POST",filename:t.name,headers:{},attributes:{},complete:()=>{},error:()=>{},success:()=>{},progress:()=>{}},o=Object.assign(s,e),l=new XMLHttpRequest,r=new FormData;r.append(o.field,t,o.filename);for(const t in o.attributes)r.append(t,o.attributes[t]);const a=e=>{if(e.lengthComputable&&o.progress){const n=Math.max(0,Math.min(100,Math.ceil(e.loaded/e.total*100)));o.progress(l,t,n)}};l.upload.addEventListener("loadstart",a),l.upload.addEventListener("progress",a),l.addEventListener("load",(e=>{let s=null;try{s=JSON.parse(e.target.response)}catch(r){s={status:"error",message:"The file could not be uploaded"}}"error"===s.status?(o.error(l,t,s),i(s)):(o.progress(l,t,100),o.success(l,t,s),n(s))})),l.addEventListener("error",(e=>{const n=JSON.parse(e.target.response);o.progress(l,t,100),o.error(l,t,n),i(n)})),l.open(o.method,o.url,!0);for(const t in o.headers)l.setRequestHeader(t,o.headers[t]);l.send(r)}));function na(){var t;return new URL((null==(t=document.querySelector("base"))?void 0:t.href)??window.location.origin)}function ia(t={},e={}){e instanceof URL&&(e=e.search);const n=new URLSearchParams(e);for(const[i,s]of Object.entries(t))null!==s&&n.set(i,s);return n}function sa(t="",e={},n){return(t=ua(t,n)).search=ia(e,t.search),t}function oa(t){return null!==String(t).match(/^https?:\/\//)}function la(t){return ua(t).origin===window.location.origin}function ra(t){if(t instanceof URL||t instanceof Location)return!0;if("string"!=typeof t)return!1;try{return new URL(t,window.location),!0}catch(e){return!1}}function aa(t,e){return!0===oa(t)?t:(e=e??na(),(e=String(e).replaceAll(/\/$/g,""))+"/"+(t=String(t).replaceAll(/^\//g,"")))}function ua(t,e){return t instanceof URL?t:new URL(aa(t,e))}const ca={base:na,buildUrl:sa,buildQuery:ia,isAbsolute:oa,isSameOrigin:la,isUrl:ra,makeAbsolute:aa,toObject:ua},da={install(t){t.prototype.$helper={array:Or,clipboard:Ar,clone:et.clone,color:Mr,embed:Tr,focus:Pr,isComponent:zr,isUploadEvent:Fr,debounce:bt,field:Er,file:qr,keyboard:Rr,object:et,page:Yr,pad:ta.pad,ratio:Ur,slug:ta.slug,sort:Sr,string:ta,upload:ea,url:ca,uuid:ta.uuid},t.prototype.$esc=ta.escapeHTML}},pa={install(t){t.directive("direction",{inserted(t,e,n){!0!==n.context.disabled?t.dir=window.panel.translation.direction:t.dir=null}})}},ha={install(t){window.panel.redirect=window.panel.redirect.bind(window.panel),window.panel.reload=window.panel.reload.bind(window.panel),window.panel.request=window.panel.request.bind(window.panel),window.panel.search=window.panel.search.bind(window.panel);const e=["api","config","direction","events","language","languages","license","menu","multilang","permissions","search","searches","system","t","translation","url","urls","user","view"];for(const n of e){const e=`$${n}`;t.prototype[e]=window.panel[e]=window.panel[n]}window.panel.$vue=window.panel.app}},ma=/^#([\da-f]{3}){1,2}$/i,fa=/^#([\da-f]{4}){1,2}$/i,ga=/^rgba?\(\s*(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i,ka=/^hsla?\(\s*(\d{1,3}\.?\d*)(deg|rad|grad|turn)?(?:,|\s)+(\d{1,3})%(?:,|\s)+(\d{1,3})%(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i;function ba(t){return"string"==typeof t&&(ma.test(t)||fa.test(t))}function va(t){return Q(t)&&"r"in t&&"g"in t&&"b"in t}function ya(t){return Q(t)&&"h"in t&&"s"in t&&"l"in t}function $a({h:t,s:e,v:n,a:i}){if(0===n)return{h:t,s:0,l:0,a:i};if(0===e&&1===n)return{h:t,s:1,l:1,a:i};const s=n*(2-e)/2;return{h:t,s:e=n*e/(1-Math.abs(2*s-1)),l:s,a:i}}function wa({h:t,s:e,l:n,a:i}){const s=e*(n<.5?n:1-n);return{h:t,s:e=0===s?0:2*s/(n+s),v:n+s,a:i}}function xa(t){if(!0===ma.test(t)){3===(t=t.slice(1)).length&&(t=t.split("").reduce(((t,e)=>t+e+e),""));const e=parseInt(t,16);return{r:e>>16,g:e>>8&255,b:255&e,a:1}}if(!0===fa.test(t)){4===(t=t.slice(1)).length&&(t=t.split("").reduce(((t,e)=>t+e+e),""));const e=parseInt(t,16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/255*100)/100}}throw new Error(`unknown hex color: ${t}`)}function _a({r:t,g:e,b:n,a:i=1}){let s="#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1);return i<1&&(s+=(256|Math.round(255*i)).toString(16).slice(1)),s}function Ca({h:t,s:e,l:n,a:i}){const s=e*Math.min(n,1-n),o=(e,i=(e+t/30)%12)=>n-s*Math.max(Math.min(i-3,9-i,1),-1);return{r:255*o(0),g:255*o(8),b:255*o(4),a:i}}function Sa({r:t,g:e,b:n,a:i}){t/=255,e/=255,n/=255;const s=Math.max(t,e,n),o=s-Math.min(t,e,n),l=1-Math.abs(s+s-o-1);let r=o&&(s==t?(e-n)/o:s==e?2+(n-t)/o:4+(t-e)/o);return r=60*(r<0?r+6:r),{h:r,s:l?o/l:0,l:(s+s-o)/2,a:i}}function Oa(t){return _a(Ca(t))}function Aa(t){return Sa(xa(t))}function Ma(t,e){return t=Number(t),"grad"===e?t*=.9:"rad"===e?t*=180/Math.PI:"turn"===e&&(t*=360),parseInt(t%360)}function ja(t,e){if(!0===ba(t))switch(e){case"hex":return t;case"rgb":return xa(t);case"hsl":return Aa(t);case"hsv":return wa(Aa(t))}if(!0===va(t))switch(e){case"hex":return _a(t);case"rgb":return t;case"hsl":return Sa(t);case"hsv":return function({r:t,g:e,b:n,a:i}){t/=255,e/=255,n/=255;const s=Math.max(t,e,n),o=s-Math.min(t,e,n);let l=o&&(s==t?(e-n)/o:s==e?2+(n-t)/o:4+(t-e)/o);return l=60*(l<0?l+6:l),{h:l,s:s&&o/s,v:s,a:i}}(t)}if(!0===ya(t))switch(e){case"hex":return Oa(t);case"rgb":return Ca(t);case"hsl":return t;case"hsv":return wa(t)}if(!0===function(t){return Q(t)&&"h"in t&&"s"in t&&"v"in t}(t))switch(e){case"hex":return Oa($a(t));case"rgb":return function({h:t,s:e,v:n,a:i}){const s=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return{r:255*s(5),g:255*s(3),b:255*s(1),a:i}}(t);case"hsl":return $a(t);case"hsv":return t}throw new Error(`Invalid color conversion: ${JSON.stringify(t)} -> ${e}`)}function Ia(t){let e;if(!t||"string"!=typeof t)return!1;if(ba(t))return t;if(e=t.match(ga)){const t={r:Number(e[1]),g:Number(e[3]),b:Number(e[5]),a:Number(e[7]||1)};return"%"===e[2]&&(t.r=Math.ceil(2.55*t.r)),"%"===e[4]&&(t.g=Math.ceil(2.55*t.g)),"%"===e[6]&&(t.b=Math.ceil(2.55*t.b)),"%"===e[8]&&(t.a=t.a/100),t}if(e=t.match(ka)){let[t,n,i,s,o]=e.slice(1);const l={h:Ma(t,n),s:Number(i)/100,l:Number(s)/100,a:Number(o||1)};return"%"===e[6]&&(l.a=l.a/100),l}return null}const Ta={convert:ja,parse:Ia,parseAs:function(t,e){const n=Ia(t);return n&&e?ja(n,e):n},toString:function(t,e,n=!0){var i,s;let o=t;if("string"==typeof o&&(o=Ia(t)),o&&e&&(o=ja(o,e)),!0===ba(o))return!0!==n&&(5===o.length?o=o.slice(0,4):o.length>7&&(o=o.slice(0,7))),o.toLowerCase();if(!0===va(o)){const t=o.r.toFixed(),e=o.g.toFixed(),s=o.b.toFixed(),l=null==(i=o.a)?void 0:i.toFixed(2);return n&&l&&l<1?`rgb(${t} ${e} ${s} / ${l})`:`rgb(${t} ${e} ${s})`}if(!0===ya(o)){const t=o.h.toFixed(),e=(100*o.s).toFixed(),i=(100*o.l).toFixed(),l=null==(s=o.a)?void 0:s.toFixed(2);return n&&l&&l<1?`hsl(${t} ${e}% ${i}% / ${l})`:`hsl(${t} ${e}% ${i}%)`}throw new Error(`Unsupported color: ${JSON.stringify(t)}`)}};L.extend(B),L.extend(((t,e,n)=>{n.interpret=(t,e="date")=>{const i={date:{"YYYY-MM-DD":!0,"YYYY-MM-D":!0,"YYYY-MM-":!0,"YYYY-MM":!0,"YYYY-M-DD":!0,"YYYY-M-D":!0,"YYYY-M-":!0,"YYYY-M":!0,"YYYY-":!0,YYYYMMDD:!0,"MMM DD YYYY":!1,"MMM D YYYY":!1,"MMM DD YY":!1,"MMM D YY":!1,"MMM YYYY":!0,"MMM DD":!1,"MMM D":!1,"MM YYYY":!0,"M YYYY":!0,"DD MMMM YYYY":!1,"DD MMMM YY":!1,"DD MMMM":!1,"D MMMM YYYY":!1,"D MMMM YY":!1,"D MMMM":!1,"DD MMM YYYY":!1,"D MMM YYYY":!1,"DD MMM YY":!1,"D MMM YY":!1,"DD MMM":!1,"D MMM":!1,"DD MM YYYY":!1,"DD M YYYY":!1,"D MM YYYY":!1,"D M YYYY":!1,"DD MM YY":!1,"D MM YY":!1,"DD M YY":!1,"D M YY":!1,YYYY:!0,MMMM:!0,MMM:!0,"DD MM":!1,"DD M":!1,"D MM":!1,"D M":!1,DD:!1,D:!1},time:{"HH:mm:ss a":!1,"HH:mm:ss":!1,"HH:mm a":!1,"HH:mm":!1,"HH a":!1,HH:!1}};if("string"==typeof t&&""!==t)for(const s in i[e]){const o=n(t,s,i[e][s]);if(!0===o.isValid())return o}return null}})),L.extend(((t,e,n)=>{const i=t=>"date"===t?"YYYY-MM-DD":"time"===t?"HH:mm:ss":"YYYY-MM-DD HH:mm:ss";e.prototype.toISO=function(t="datetime"){return this.format(i(t))},n.iso=function(t,e="datetime"){const s=n(t,i(e));return s&&s.isValid()?s:null}})),L.extend(((t,e)=>{e.prototype.merge=function(t,e="date"){let n=this.clone();if(!t||!t.isValid())return this;if("string"==typeof e){const t={date:["year","month","date"],time:["hour","minute","second"]};if(!1===Object.hasOwn(t,e))throw new Error("Invalid merge unit alias");e=t[e]}for(const i of e)n=n.set(i,t.get(i));return n}})),L.extend(((t,e,n)=>{n.pattern=t=>new class{constructor(t,e){this.dayjs=t,this.pattern=e;const n={year:["YY","YYYY"],month:["M","MM","MMM","MMMM"],day:["D","DD"],hour:["h","hh","H","HH"],minute:["m","mm"],second:["s","ss"],meridiem:["a"]};this.parts=this.pattern.split(/\W/).map(((t,e)=>{const i=this.pattern.indexOf(t);return{index:e,unit:Object.keys(n)[Object.values(n).findIndex((e=>e.includes(t)))],start:i,end:i+(t.length-1)}}))}at(t,e=t){const n=this.parts.filter((n=>n.start<=t&&n.end>=e-1));return n[0]?n[0]:this.parts.filter((e=>e.start<=t)).pop()}format(t){return t&&t.isValid()?t.format(this.pattern):null}}(n,t)})),L.extend(((t,e)=>{e.prototype.round=function(t="date",e=1){const n=["second","minute","hour","date","month","year"];if("day"===t&&(t="date"),!1===n.includes(t))throw new Error("Invalid rounding unit");if(["date","month","year"].includes(t)&&1!==e||"hour"===t&&24%e!=0||["second","minute"].includes(t)&&60%e!=0)throw"Invalid rounding size for "+t;let i=this.clone();const s=n.indexOf(t),o=n.slice(0,s),l=o.pop();for(const r of o)i=i.startOf(r);if(l){const e={month:12,date:i.daysInMonth(),hour:24,minute:60,second:60}[l];Math.round(i.get(l)/e)*e===e&&(i=i.add(1,"date"===t?"day":t)),i=i.startOf(t)}return i=i.set(t,Math.round(i.get(t)/e)*e),i}})),L.extend(((t,e,n)=>{e.prototype.validate=function(t,e,i="day"){if(!this.isValid())return!1;if(!t)return!0;t=n.iso(t);const s={min:"isAfter",max:"isBefore"}[e];return this.isSame(t,i)||this[s](t,i)}}));const Ea={install(t){t.prototype.$library={colors:Ta,dayjs:L}}},Da=t=>({async changeName(e,n,i){return t.patch(this.url(e,n,"name"),{name:i})},async delete(e,n){return t.delete(this.url(e,n))},async get(e,n,i){let s=await t.get(this.url(e,n),i);return!0===Array.isArray(s.content)&&(s.content={}),s},id:t=>!0===t.startsWith("/@/file/")?t.replace("/@/file/","@"):!0===t.startsWith("file://")?t.replace("file://","@"):t,link(t,e,n){return"/"+this.url(t,e,n)},async update(e,n,i){return t.patch(this.url(e,n),i)},url(t,e,n){let i="files/"+this.id(e);return t&&(i=t+"/"+i),n&&(i+="/"+n),i}}),La=t=>({async blueprint(e){return t.get("pages/"+this.id(e)+"/blueprint")},async blueprints(e,n){return t.get("pages/"+this.id(e)+"/blueprints",{section:n})},async changeSlug(e,n){return t.patch("pages/"+this.id(e)+"/slug",{slug:n})},async changeStatus(e,n,i){return t.patch("pages/"+this.id(e)+"/status",{status:n,position:i})},async changeTemplate(e,n){return t.patch("pages/"+this.id(e)+"/template",{template:n})},async changeTitle(e,n){return t.patch("pages/"+this.id(e)+"/title",{title:n})},async children(e,n){return t.post("pages/"+this.id(e)+"/children/search",n)},async create(e,n){return null===e||"/"===e?t.post("site/children",n):t.post("pages/"+this.id(e)+"/children",n)},async delete(e,n){return t.delete("pages/"+this.id(e),n)},async duplicate(e,n,i){return t.post("pages/"+this.id(e)+"/duplicate",{slug:n,children:i.children??!1,files:i.files??!1})},async get(e,n){let i=await t.get("pages/"+this.id(e),n);return!0===Array.isArray(i.content)&&(i.content={}),i},id:t=>!0===t.startsWith("/@/page/")?t.replace("/@/page/","@"):!0===t.startsWith("page://")?t.replace("page://","@"):t.replace(/\//g,"+"),async files(e,n){return t.post("pages/"+this.id(e)+"/files/search",n)},link(t){return"/"+this.url(t)},async preview(t){return(await this.get(this.id(t),{select:"previewUrl"})).previewUrl},async search(e,n){return e?t.post("pages/"+this.id(e)+"/children/search?select=id,title,hasChildren",n):t.post("site/children/search?select=id,title,hasChildren",n)},async update(e,n){return t.patch("pages/"+this.id(e),n)},url(t,e){let n=null===t?"pages":"pages/"+String(t).replace(/\//g,"+");return e&&(n+="/"+e),n}});class Ba extends Error{constructor(t,{request:e,response:n,cause:i}){super(n.json.message??t,{cause:i}),this.request=e,this.response=n}state(){return this.response.json}}class qa extends Ba{}class Pa extends Ba{state(){return{message:this.message,text:this.response.text}}}const Na=t=>(window.location.href=aa(t),!1),za=async(t,e={})=>{var n;(e={cache:"no-store",credentials:"same-origin",mode:"same-origin",...e}).body=((n=e.body)instanceof HTMLFormElement&&(n=new FormData(n)),n instanceof FormData&&(n=Object.fromEntries(n)),"object"==typeof n?JSON.stringify(n):n),e.headers=((t={},e={})=>{return{"content-type":"application/json","x-csrf":e.csrf??!1,"x-fiber":!0,"x-fiber-globals":(n=e.globals,!!n&&(!1===Array.isArray(n)?String(n):n.join(","))),"x-fiber-referrer":e.referrer??!1,...tt(t)};var n})(e.headers,e),e.url=sa(t,e.query);const i=new Request(e.url,e);return!1===la(i.url)?Na(i.url):await Fa(i,await fetch(i))},Fa=async(t,e)=>{var n;if(!1===e.headers.get("Content-Type").includes("application/json"))return Na(e.url);try{e.text=await e.text(),e.json=JSON.parse(e.text)}catch(i){throw new Pa("Invalid JSON response",{cause:i,request:t,response:e})}if(401===e.status)throw new qa("Unauthenticated",{request:t,response:e});if("error"===(null==(n=e.json)?void 0:n.status))throw e.json;if(!1===e.ok)throw new Ba(`The request to ${e.url} failed`,{request:t,response:e});return{request:t,response:e}},Ra=t=>({blueprint:async e=>t.get("users/"+e+"/blueprint"),blueprints:async(e,n)=>t.get("users/"+e+"/blueprints",{section:n}),changeEmail:async(e,n)=>t.patch("users/"+e+"/email",{email:n}),changeLanguage:async(e,n)=>t.patch("users/"+e+"/language",{language:n}),changeName:async(e,n)=>t.patch("users/"+e+"/name",{name:n}),changePassword:async(e,n)=>t.patch("users/"+e+"/password",{password:n}),changeRole:async(e,n)=>t.patch("users/"+e+"/role",{role:n}),create:async e=>t.post("users",e),delete:async e=>t.delete("users/"+e),deleteAvatar:async e=>t.delete("users/"+e+"/avatar"),link(t,e){return"/"+this.url(t,e)},async list(e){return t.post(this.url(null,"search"),e)},get:async(e,n)=>t.get("users/"+e,n),async roles(e){return(await t.get(this.url(e,"roles"))).data.map((t=>({info:t.description??`(${window.panel.$t("role.description.placeholder")})`,text:t.title,value:t.name})))},search:async e=>t.post("users/search",e),update:async(e,n)=>t.patch("users/"+e,n),url(t,e){let n=t?"users/"+t:"users";return e&&(n+="/"+e),n}}),Ya=t=>{const e={csrf:t.system.csrf,endpoint:Gr(t.urls.api,"/"),methodOverwrite:!0,ping:null,requests:[],running:0},n=()=>{clearInterval(e.ping),e.ping=setInterval(e.auth.ping,3e5)};return e.request=async(i,s={},o=!1)=>{const l=i+"/"+JSON.stringify(s);e.requests.push(l),!1===o&&(t.isLoading=!0),e.language=t.language.code;try{return await(t=>async(e,n={})=>{n={cache:"no-store",credentials:"same-origin",mode:"same-origin",headers:{"content-type":"application/json","x-csrf":t.csrf,"x-language":t.language,...tt(n.headers??{})},...n},t.methodOverwrite&&"GET"!==n.method&&"POST"!==n.method&&(n.headers["x-http-method-override"]=n.method,n.method="POST"),n.url=Gr(t.endpoint,"/")+"/"+Jr(e,"/");const i=new Request(n.url,n),{response:s}=await Fa(i,await fetch(i));let o=s.json;return o.data&&"model"===o.type&&(o=o.data),o})(e)(i,s)}finally{n(),e.requests=e.requests.filter((t=>t!==l)),0===e.requests.length&&(t.isLoading=!1)}},e.auth=(t=>({async login(e){const n={long:e.remember??!1,email:e.email,password:e.password};return t.post("auth/login",n)},logout:async()=>t.post("auth/logout"),ping:async()=>t.post("auth/ping"),user:async e=>t.get("auth",e),verifyCode:async e=>t.post("auth/code",{code:e})}))(e),e.delete=(t=>async(e,n,i,s=!1)=>t.post(e,n,i,"DELETE",s))(e),e.files=Da(e),e.get=(t=>async(e,n,i,s=!1)=>(n&&(e+="?"+Object.keys(n).filter((t=>void 0!==n[t]&&null!==n[t])).map((t=>t+"="+n[t])).join("&")),t.request(e,Object.assign(i??{},{method:"GET"}),s)))(e),e.languages=(t=>({create:async e=>t.post("languages",e),delete:async e=>t.delete("languages/"+e),get:async e=>t.get("languages/"+e),list:async()=>t.get("languages"),update:async(e,n)=>t.patch("languages/"+e,n)}))(e),e.pages=La(e),e.patch=(t=>async(e,n,i,s=!1)=>t.post(e,n,i,"PATCH",s))(e),e.post=(t=>async(e,n,i,s="POST",o=!1)=>t.request(e,Object.assign(i??{},{method:s,body:JSON.stringify(n)}),o))(e),e.roles=(t=>({list:async e=>t.get("roles",e),get:async e=>t.get("roles/"+e)}))(e),e.system=(t=>({get:async(e={view:"panel"})=>t.get("system",e),install:async e=>(await t.post("system/install",e)).user,register:async e=>t.post("system/register",e)}))(e),e.site=(t=>({blueprint:async()=>t.get("site/blueprint"),blueprints:async()=>t.get("site/blueprints"),changeTitle:async e=>t.patch("site/title",{title:e}),children:async e=>t.post("site/children/search",e),get:async(e={view:"panel"})=>t.get("site",e),update:async e=>t.post("site",e)}))(e),e.translations=(t=>({list:async()=>t.get("translations"),get:async e=>t.get("translations/"+e)}))(e),e.users=Ra(e),n(),e},Ua=()=>({addEventListener(t,e){"function"==typeof e&&(this.on[t]=e)},addEventListeners(t){if(!1!==Q(t))for(const e in t)this.addEventListener(e,t[e])},emit(t,...e){return this.hasEventListener(t)?this.on[t](...e):()=>{}},hasEventListener(t){return"function"==typeof this.on[t]},listeners(){return this.on},on:{}}),Ha=(t,e={})=>({...e,key:()=>t,defaults:()=>e,reset(){return this.set(this.defaults())},set(t){this.validateState(t);for(const e in this.defaults())this[e]=t[e]??this.defaults()[e];return this.state()},state(){const t={};for(const e in this.defaults())t[e]=this[e]??this.defaults()[e];return t},validateState(t){if(!1===Q(t))throw new Error(`Invalid ${this.key()} state`);return!0}}),Va=(t,e,n)=>{const i=Ha(e,n);return{...i,...Ua(),async load(e,n={}){return!0!==n.silent&&(this.isLoading=!0),await t.open(e,n),this.isLoading=!1,this.addEventListeners(n.on),this.state()},async open(t,e={}){return"function"==typeof e&&(e={on:{submit:e}}),!0===ra(t)?this.load(t,e):(this.set(t),this.addEventListeners(e.on),this.emit("open",t,e),this.state())},async post(e,n={}){var i;if(!this.path)throw new Error(`The ${this.key()} cannot be posted`);this.isLoading=!0,e=e??(null==(i=this.props)?void 0:i.value)??{};try{return await t.post(this.path,e,n)}catch(s){t.error(s)}finally{this.isLoading=!1}return!1},async refresh(e={}){e.url=e.url??this.url();const n=(await t.get(e.url,e))["$"+this.key()];if(n&&n.component===this.component)return this.props=n.props,this.state()},async reload(t={}){if(!this.path)return!1;this.open(this.url(),t)},set(t){return i.set.call(this,t),this.on={},this.addEventListeners(t.on??{}),this.state()},url(){return t.url(this.path,this.query)}}},Ka=(t,e,n)=>{const i=Va(t,e,n);return{...i,async cancel(){this.isOpen&&this.emit("cancel"),this.close()},async close(){!1!==this.isOpen&&(this.isOpen=!1,this.emit("close"),this.reset(),0===t.overlays().length&&(document.documentElement.removeAttribute("data-overlay"),document.documentElement.style.removeProperty("--scroll-top")))},focus(t){Pr(`.k-${this.key()}-portal`,t)},input(t){!1!==this.isOpen&&(Vue.set(this.props,"value",t),this.emit("input",t))},isOpen:!1,listeners(){return{...this.on,cancel:this.cancel.bind(this),close:this.close.bind(this),input:this.input.bind(this),submit:this.submit.bind(this),success:this.success.bind(this)}},async open(e,n){return!1===this.isOpen&&t.notification.close(),document.documentElement.setAttribute("data-overlay","true"),document.documentElement.style.setProperty("--scroll-top",window.scrollY+"px"),await i.open.call(this,e,n),this.isOpen=!0,this.state()},async submit(t,e={}){if(t=t??this.props.value,this.hasEventListener("submit"))return this.emit("submit",t,e);if(!this.path)return this.close();const n=await this.post(t,e);return!1===Q(n)?n:this.success(n["$"+this.key()]??{})},success(e){return this.hasEventListener("success")?this.emit("success",e):("string"==typeof e&&t.notification.success(e),this.close(),this.successNotification(e),this.successEvents(e),this.successDispatch(e),e.route||e.redirect?this.successRedirect(e):t.view.reload(e.reload),e)},successDispatch(e){if(!1!==Q(e.dispatch))for(const n in e.dispatch){const i=e.dispatch[n];t.app.$store.dispatch(n,!0===Array.isArray(i)?[...i]:i)}},successEvents(e){if(e.event){const n=Array.wrap(e.event);for(const i of n)"string"==typeof i&&t.events.emit(i,e)}!1!==e.emit&&t.events.emit("success",e)},successNotification(e){e.message&&t.notification.success(e.message)},successRedirect(e){const n=e.route??e.redirect;return!!n&&("string"==typeof n?t.open(n):t.open(n.url,n.options))},get value(){var t;return null==(t=this.props)?void 0:t.value}}},Wa=t=>{t.events.on("dialog.save",(e=>{var n;null==(n=null==e?void 0:e.preventDefault)||n.call(e),t.dialog.submit()}));const e=Ka(t,"dialog",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,legacy:!1,ref:null});return{...e,async close(){this.ref&&(this.ref.visible=!1),e.close.call(this)},async open(t,n={}){return t instanceof window.Vue?this.openComponent(t):("string"==typeof t&&(t=`/dialogs/${t}`),e.open.call(this,t,n))},async openComponent(n){t.deprecated("Dialog components should no longer be used in your templates");const i=await e.open.call(this,{component:n.$options._componentTag,legacy:!0,props:{...n.$attrs,...n.$props},ref:n}),s=this.listeners();for(const t in s)n.$on(t,s[t]);return n.visible=!0,i}}},Ja=()=>({...Ha("drag",{type:null,data:{}}),get isDragging(){return null!==this.type},start(t,e){this.type=t,this.data=e},stop(){this.type=null,this.data={}}}),Ga=()=>({add(t){if(!t.id)throw new Error("The state needs an ID");!0!==this.has(t.id)&&this.milestones.push(t)},at(t){return this.milestones.at(t)},get(t=null){return null===t?this.milestones:this.milestones.find((e=>e.id===t))},goto(t){const e=this.index(t);if(-1!==e)return this.milestones=this.milestones.slice(0,e+1),this.milestones[e]},has(t){return void 0!==this.get(t)},index(t){return this.milestones.findIndex((e=>e.id===t))},isEmpty(){return 0===this.milestones.length},last(){return this.milestones.at(-1)},milestones:[],remove(t=null){return null===t?this.removeLast():this.milestones=this.milestones.filter((e=>e.id!==t))},removeLast(){return this.milestones=this.milestones.slice(0,-1)},replace(t,e){-1===t&&(t=this.milestones.length-1),Vue.set(this.milestones,t,e)}}),Xa=t=>{const e=Ka(t,"drawer",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,id:null});return t.events.on("drawer.save",(e=>{e.preventDefault(),t.drawer.submit()})),{...e,get breadcrumb(){return this.history.milestones},async close(t){if(!1!==this.isOpen&&(void 0===t||t===this.id)){if(this.history.removeLast(),!0!==this.history.isEmpty())return this.open(this.history.last());e.close.call(this)}},goTo(t){const e=this.history.goto(t);void 0!==e&&this.open(e)},history:Ga(),get icon(){return this.props.icon??"box"},input(t){Vue.set(this.props,"value",t),this.emit("input",this.props.value)},listeners(){return{...this.on,cancel:this.cancel.bind(this),close:this.close.bind(this),crumb:this.goTo.bind(this),input:this.input.bind(this),submit:this.submit.bind(this),success:this.success.bind(this),tab:this.tab.bind(this)}},async open(t,n={}){"string"==typeof t&&(t=`/drawers/${t}`),await e.open.call(this,t,n),this.tab(t.tab);const i=this.state();return!0===t.replace?this.history.replace(-1,i):this.history.add(i),this.focus(),i},set(t){return e.set.call(this,t),this.id=this.id??Zr(),this.state()},tab(t){const e=this.props.tabs??{};if(!(t=t??Object.keys(e??{})[0]))return!1;Vue.set(this.props,"fields",e[t].fields),Vue.set(this.props,"tab",t),this.emit("tab",t),setTimeout((()=>{this.focus()}))}}},Qa=t=>{const e=Va(t,"dropdown",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null});return{...e,close(){this.emit("close"),this.reset()},open(t,n={}){return"string"==typeof t&&(t=`/dropdowns/${t}`),e.open.call(this,t,n)},openAsync(t,e={}){return async n=>{await this.open(t,e);const i=this.options();if(0===i.length)throw Error("The dropdown is empty");n(i)}},options(){return!1===Array.isArray(this.props.options)?[]:this.props.options.map((e=>e.dialog?(e.click=()=>{const n="string"==typeof e.dialog?e.dialog:e.dialog.url,i="object"==typeof e.dialog?e.dialog:{};return t.app.$dialog(n,i)},e):e))},set(t){return t.options&&(t.props={options:t.options}),e.set.call(this,t)}}},Za=t=>{const e=q();e.on("keydown.cmd.s",(n=>{e.emit(t.context+".save",n)})),e.on("keydown.cmd.shift.f",(()=>t.search())),e.on("keydown.cmd./",(()=>t.search()));const n={document:{blur:!0,click:!1,copy:!0,focus:!0,paste:!0},window:{dragenter:!1,dragexit:!1,dragleave:!1,dragover:!1,drop:!1,keydown:!1,keyup:!1,offline:!1,online:!1,popstate:!1}};return{blur(t){this.emit("blur",t)},click(t){this.emit("click",t)},copy(t){this.emit("copy",t)},dragenter(t){this.entered=t.target,this.prevent(t),this.emit("dragenter",t)},dragexit(t){this.prevent(t),this.entered=null,this.emit("dragexit",t)},dragleave(t){this.prevent(t),this.entered===t.target&&(this.entered=null,this.emit("dragleave",t))},dragover(t){this.prevent(t),this.emit("dragover",t)},drop(t){this.prevent(t),this.entered=null,this.emit("drop",t)},emit:e.emit,entered:null,focus(t){this.emit("focus",t)},keychain(t,e){let n=[t];(e.metaKey||e.ctrlKey)&&n.push("cmd"),!0===e.altKey&&n.push("alt"),!0===e.shiftKey&&n.push("shift");let i=e.key?Wr(e.key):null;const s={escape:"esc",arrowUp:"up",arrowDown:"down",arrowLeft:"left",arrowRight:"right"};return s[i]&&(i=s[i]),i&&!1===["alt","control","shift","meta"].includes(i)&&n.push(i),n.join(".")},keydown(t){this.emit(this.keychain("keydown",t),t),this.emit("keydown",t)},keyup(t){this.emit(this.keychain("keyup",t),t),this.emit("keyup",t)},off:e.off,offline(t){this.emit("offline",t)},on:e.on,online(t){this.emit("online",t)},paste(t){this.emit("paste",t)},popstate(t){this.emit("popstate",t)},prevent(t){t.stopPropagation(),t.preventDefault()},subscribe(){for(const t in n.document)document.addEventListener(t,this[t].bind(this),n.document[t]);for(const t in n.window)window.addEventListener(t,this[t].bind(this),n.window[t])},unsubscribe(){for(const t in n.document)document.removeEventListener(t,this[t]);for(const t in n.window)window.removeEventListener(t,this[t])},$on(...t){window.panel.deprecated("`events.$on` will be removed in a future version. Use `events.on` instead."),e.on(...t)},$emit(...t){window.panel.deprecated("`events.$emit` will be removed in a future version. Use `events.emit` instead."),e.emit(...t)},$off(...t){window.panel.deprecated("`events.$off` will be removed in a future version. Use `events.off` instead."),e.off(...t)}}},tu={interval:null,start(t,e){this.stop(),t&&(this.interval=setInterval(e,t))},stop(){clearInterval(this.interval),this.interval=null}},eu=(t={})=>({...Ha("notification",{context:null,details:null,icon:null,isOpen:!1,message:null,timeout:null,type:null}),close(){return this.timer.stop(),this.reset(),this.state()},deprecated(t){console.warn("Deprecated: "+t)},error(e){if(e instanceof qa&&t.user.id)return t.redirect("logout");if(e instanceof Pa)return this.fatal(e);if(e instanceof Ba){const t=Object.values(e.response.json).find((t=>"string"==typeof(null==t?void 0:t.error)));t&&(e.message=t.error)}return"string"==typeof e&&(e={message:e,type:"error"}),e={message:e.message??"Something went wrong",details:e.details??{}},"view"===t.context&&t.dialog.open({component:"k-error-dialog",props:e,type:"error"}),this.open({message:e.message,type:"error",icon:"alert"})},get isFatal(){return"fatal"===this.type},fatal(t){return"string"==typeof t?this.open({message:t,type:"fatal"}):t instanceof Pa?this.open({message:t.response.text,type:"fatal"}):this.open({message:t.message??"Something went wrong",type:"fatal"})},open(e){return this.timer.stop(),"string"==typeof e?this.success(e):(this.set({context:t.context,...e}),this.isOpen=!0,this.timer.start(this.timeout,(()=>this.close())),this.state())},success(t){return t||(t={}),"string"==typeof t&&(t={message:t}),this.open({timeout:4e3,type:"success",icon:"check",...t})},get theme(){return"error"===this.type?"negative":"positive"},timer:tu}),nu=()=>({...Ha("language",{code:null,default:!1,direction:"ltr",name:null,rules:null}),get isDefault(){return this.default}}),iu=(t,e,n)=>{if(!n.template&&!n.render&&!n.extends)throw new Error(`Neither template nor render method provided. Nor extending a component when loading plugin component "${e}". The component has not been registered.`);return(n=su(t,e,n)).template&&(n.render=null),n=ou(n),!0===zr(e)&&window.console.warn(`Plugin is replacing "${e}"`),t.component(e,n),n},su=(t,e,n)=>"string"!=typeof(null==n?void 0:n.extends)?n:!1===zr(n.extends)?(window.console.warn(`Problem with plugin trying to register component "${e}": cannot extend non-existent component "${n.extends}"`),n.extends=null,n):(n.extends=t.options.components[n.extends].extend({options:n,components:{...t.options.components,...n.components??{}}}),n),ou=t=>{if(!1===Array.isArray(t.mixins))return t;const e={dialog:pt,drawer:Kt,section:Bl};return t.mixins=t.mixins.map((t=>"string"==typeof t?e[t]:t)),t},lu=(t,e={})=>((e={components:{},created:[],icons:{},login:null,textareaButtons:{},use:[],thirdParty:{},writerMarks:{},writerNodes:{},...e}).use=((t,e)=>{if(!1===Array.isArray(e))return[];for(const n of e)t.use(n);return e})(t,e.use),e.components=((t,e)=>{if(!1===Q(e))return;const n={};for(const[s,o]of Object.entries(e))try{n[s]=iu(t,s,o)}catch(i){window.console.warn(i.message)}return n})(t,e.components),e),ru=t=>{var e;const n=Ha("menu",{entries:[],hover:!1,isOpen:!1}),i=null==(e=window.matchMedia)?void 0:e.call(window,"(max-width: 60rem)"),s={...n,blur(t){if(!1===i.matches)return!1;const e=document.querySelector(".k-panel-menu");!1===document.querySelector(".k-panel-menu-proxy").contains(t.target)&&!1===e.contains(t.target)&&this.close()},close(){this.isOpen=!1,!1===i.matches&&localStorage.setItem("kirby$menu",!0)},escape(){if(!1===i.matches)return!1;this.close()},open(){this.isOpen=!0,!1===i.matches&&localStorage.removeItem("kirby$menu")},resize(){if(i.matches)return this.close();null!==localStorage.getItem("kirby$menu")?this.isOpen=!1:this.isOpen=!0},set(t){return this.entries=t,this.resize(),this.state()},toggle(){this.isOpen?this.close():this.open()}};return t.events.on("keydown.esc",s.escape.bind(s)),t.events.on("click",s.blur.bind(s)),null==i||i.addEventListener("change",s.resize.bind(s)),s},au=()=>{const t=Ha("translation",{code:null,data:{},direction:"ltr",name:null});return{...t,set(e){return t.set.call(this,e),document.documentElement.lang=this.code,document.body.dir=this.direction,this.state()},translate(t,e,n=null){if("string"!=typeof t)return;const i=this.data[t]??n;return"string"!=typeof i?i:Xr(i,e)}}};const uu=t=>{const e=Ha("upload",{accept:"*",attributes:{},files:[],max:null,multiple:!0,replacing:null,url:null});return{...e,...Ua(),input:null,cancel(){this.emit("cancel"),this.completed.length>0&&(this.emit("complete",this.completed),t.view.reload()),this.reset()},get completed(){return this.files.filter((t=>t.completed)).map((t=>t.model))},done(){t.dialog.close(),this.completed.length>0&&(this.emit("done",this.completed),!1===t.drawer.isOpen&&(t.notification.success({context:"view"}),t.view.reload())),this.reset()},findDuplicate(t){return this.files.findLastIndex((e=>e.src.name===t.src.name&&e.src.type===t.src.type&&e.src.size===t.src.size&&e.src.lastModified===t.src.lastModified))},hasUniqueName(t){return this.files.filter((e=>e.name===t.name&&e.extension===t.extension)).length<2},file(t){const e=URL.createObjectURL(t);return{completed:!1,error:null,extension:Dr(t.name),filename:t.name,id:Zr(),model:null,name:Lr(t.name),niceSize:Br(t.size),progress:0,size:t.size,src:t,type:t.type,url:e}},open(e,n){e instanceof FileList?(this.set(n),this.select(e)):this.set(e);const i={component:"k-upload-dialog",on:{cancel:()=>this.cancel(),submit:async()=>{t.dialog.isLoading=!0,await this.submit(),t.dialog.isLoading=!1}}};this.replacing&&(i.component="k-upload-replace-dialog",i.props={original:this.replacing}),t.dialog.open(i)},pick(t){this.set(t),this.input=document.createElement("input"),this.input.type="file",this.input.classList.add("sr-only"),this.input.value=null,this.input.accept=this.accept,this.input.multiple=this.multiple,this.input.click(),this.input.addEventListener("change",(e=>{!0===(null==t?void 0:t.immediate)?(this.set(t),this.select(e.target.files),this.submit()):this.open(e.target.files,t),this.input.remove()}))},remove(t){this.files=this.files.filter((e=>e.id!==t))},replace(e,n){this.pick({...n,url:t.urls.api+"/"+e.link,accept:"."+e.extension+","+e.mime,multiple:!1,replacing:e})},reset(){e.reset.call(this),this.files.splice(0)},select(t,e){if(this.set(e),t instanceof Event&&(t=t.target.files),t instanceof FileList==!1)throw new Error("Please provide a FileList");t=(t=[...t]).map((t=>this.file(t))),this.files=[...this.files,...t],this.files=this.files.filter(((t,e)=>this.findDuplicate(t)===e)),null!==this.max&&(this.files=this.files.slice(-1*this.max)),this.emit("select",this.files)},set(t){if(t)return e.set.call(this,t),this.on={},this.addEventListeners(t.on??{}),1===this.max&&(this.multiple=!1),!1===this.multiple&&(this.max=1),this.state()},async submit(){var e;if(!this.url)throw new Error("The upload URL is missing");const n=[];for(const i of this.files)!0!==i.completed&&(!1!==this.hasUniqueName(i)?(i.error=null,i.progress=0,n.push((async()=>await this.upload(i))),void 0!==(null==(e=this.attributes)?void 0:e.sort)&&this.attributes.sort++):i.error=t.t("error.file.name.unique"));if(await async function(t,e=20){let n=0,i=0;return new Promise((s=>{const o=e=>i=>{t[e]=i,n--,l()},l=()=>{if(n{e.progress=i}});e.completed=!0,e.model=n.data}catch(n){t.error(n,!1),e.error=n.message,e.progress=0}}}},cu=t=>{const e=Va(t,"view",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,breadcrumb:[],breadcrumbLabel:null,icon:null,id:null,link:null,search:"pages",title:null});return{...e,set(n){e.set.call(this,n),t.title=this.title;const i=this.url().toString();window.location.toString()!==i&&(window.history.pushState(null,null,i),window.scrollTo(0,0))},async submit(){throw new Error("Not yet implemented")}}},du={config:{},languages:[],license:!1,multilang:!1,permissions:{},searches:{},urls:{}},pu=["dialog","drawer"],hu=["dropdown","language","menu","notification","system","translation","user"],mu={create(t={}){return this.isLoading=!1,this.drag=Ja(),this.events=Za(this),this.upload=uu(this),this.language=nu(),this.menu=ru(this),this.notification=eu(this),this.system=Ha("system",{ascii:{},csrf:null,isLocal:null,locales:{},slugs:[],title:null}),this.translation=au(),this.user=Ha("user",{email:null,id:null,language:null,role:null,username:null}),this.dropdown=Qa(this),this.view=cu(this),this.drawer=Xa(this),this.dialog=Wa(this),this.redirect=Na,this.reload=this.view.reload.bind(this.view),this.t=this.translation.translate.bind(this.translation),this.plugins=lu(window.Vue,t),this.set(window.fiber),this.api=Ya(this),Vue.reactive(this)},get context(){return this.dialog.isOpen?"dialog":this.drawer.isOpen?"drawer":"view"},get debug(){return!0===this.config.debug},deprecated(t){this.notification.deprecated(t)},get direction(){return this.translation.direction},error(t,e=!0){if(!0===this.debug&&console.error(t),!0===e)return this.notification.error(t)},async get(t,e={}){const{response:n}=await this.request(t,{method:"GET",...e});return(null==n?void 0:n.json)??{}},async open(t,e={}){try{if(!1===ra(t))this.set(t);else{this.isLoading=!0;const n=await this.get(t,e);this.set(n),this.isLoading=!1}return this.state()}catch(n){return this.error(n)}},overlays(){const t=[];return!0===this.drawer.isOpen&&t.push("drawer"),!0===this.dialog.isOpen&&t.push("dialog"),t},async post(t,e={},n={}){const{response:i}=await this.request(t,{method:"POST",body:e,...n});return i.json},async request(t,e={}){return za(t,{referrer:this.view.path,csrf:this.system.csrf,...e})},async search(t,e,n){if(!t&&!e)return this.menu.escape(),this.dialog.open({component:"k-search-dialog"});const{$search:i}=await this.get(`/search/${t}`,{query:{query:e,...n}});return i},set(t={}){t=Object.fromEntries(Object.entries(t).map((([t,e])=>[t.replace("$",""),e])));for(const e in du){const n=t[e]??this[e]??du[e];typeof n==typeof du[e]&&(this[e]=n)}for(const e of hu)(Q(t[e])||Array.isArray(t[e]))&&this[e].set(t[e]);for(const e of pu)!0===Q(t[e])?this[e].open(t[e]):void 0!==t[e]&&this[e].close();!0===Q(t.dropdown)?this.dropdown.open(t.dropdown):void 0!==t.dropdown&&this.dropdown.close(),!0===Q(t.view)&&this.view.open(t.view)},state(){const t={};for(const e in du)t[e]=this[e]??du[e];for(const e of hu)t[e]=this[e].state();for(const e of pu)t[e]=this[e].state();return t.dropdown=this.dropdown.state(),t.view=this.view.state(),t},get title(){return document.title},set title(t){!1===Kr(this.system.title)&&(t+=" | "+this.system.title),document.title=t},url:(t="",e={},n)=>sa(t,e,n)},fu=(t,e)=>{localStorage.setItem("kirby$content$"+t,JSON.stringify(e))},gu={namespaced:!0,state:{current:null,models:{},status:{enabled:!0}},getters:{exists:t=>e=>Object.hasOwn(t.models,e),hasChanges:(t,e)=>t=>Z(e.model(t).changes)>0,isCurrent:t=>e=>t.current===e,id:t=>e=>(e=e??t.current)+"?language="+window.panel.language.code,model:(t,e)=>n=>(n=n??t.current,!0===e.exists(n)?t.models[n]:{api:null,originals:{},values:{},changes:{}}),originals:(t,e)=>t=>X(e.model(t).originals),values:(t,e)=>t=>({...e.originals(t),...e.changes(t)}),changes:(t,e)=>t=>X(e.model(t).changes)},mutations:{CLEAR(t){for(const e in t.models)t.models[e].changes={};for(const e in localStorage)e.startsWith("kirby$content$")&&localStorage.removeItem(e)},CREATE(t,[e,n]){if(!n)return!1;let i=t.models[e]?t.models[e].changes:n.changes;Vue.set(t.models,e,{api:n.api,originals:n.originals,changes:i??{}})},CURRENT(t,e){t.current=e},MOVE(t,[e,n]){const i=X(t.models[e]);Vue.del(t.models,e),Vue.set(t.models,n,i);const s=localStorage.getItem("kirby$content$"+e);localStorage.removeItem("kirby$content$"+e),localStorage.setItem("kirby$content$"+n,s)},REMOVE(t,e){Vue.del(t.models,e),localStorage.removeItem("kirby$content$"+e)},REVERT(t,e){t.models[e]&&(Vue.set(t.models[e],"changes",{}),localStorage.removeItem("kirby$content$"+e))},STATUS(t,e){Vue.set(t.status,"enabled",e)},UPDATE(t,[e,n,i]){if(!t.models[e])return!1;void 0===i&&(i=null),i=X(i);const s=JSON.stringify(i);JSON.stringify(t.models[e].originals[n]??null)==s?Vue.del(t.models[e].changes,n):Vue.set(t.models[e].changes,n,i),fu(e,{api:t.models[e].api,originals:t.models[e].originals,changes:t.models[e].changes})}},actions:{init(t){for(const n in localStorage)if(n.startsWith("kirby$content$")){const e=n.split("kirby$content$")[1],i=localStorage.getItem("kirby$content$"+e);t.commit("CREATE",[e,JSON.parse(i)])}else if(n.startsWith("kirby$form$")){const i=n.split("kirby$form$")[1],s=localStorage.getItem("kirby$form$"+i);let o=null;try{o=JSON.parse(s)}catch(e){}if(!o||!o.api)return localStorage.removeItem("kirby$form$"+i),!1;const l={api:o.api,originals:o.originals,changes:o.values};t.commit("CREATE",[i,l]),fu(i,l),localStorage.removeItem("kirby$form$"+i)}},clear(t){t.commit("CLEAR")},create(t,e){const n=X(e.content);if(Array.isArray(e.ignore))for(const s of e.ignore)delete n[s];e.id=t.getters.id(e.id);const i={api:e.api,originals:n,changes:{}};t.commit("CREATE",[e.id,i]),t.dispatch("current",e.id)},current(t,e){t.commit("CURRENT",e)},disable(t){t.commit("STATUS",!1)},enable(t){t.commit("STATUS",!0)},move(t,[e,n]){e=t.getters.id(e),n=t.getters.id(n),t.commit("MOVE",[e,n])},remove(t,e){t.commit("REMOVE",e),t.getters.isCurrent(e)&&t.commit("CURRENT",null)},revert(t,e){e=e??t.state.current,t.commit("REVERT",e)},async save(t,e){if(e=e??t.state.current,t.getters.isCurrent(e)&&!1===t.state.status.enabled)return!1;t.dispatch("disable");const n=t.getters.model(e),i={...n.originals,...n.changes};try{await window.panel.api.patch(n.api,i),t.commit("CREATE",[e,{...n,originals:i}]),t.dispatch("revert",e)}finally{t.dispatch("enable")}},update(t,[e,n,i]){if(i=i??t.state.current,null===e)for(const s in n)t.commit("UPDATE",[i,s,n[s]]);else t.commit("UPDATE",[i,e,n])}}},ku={namespaced:!0,actions:{close(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.close(e)},goto(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.goto(e)},open(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.goto(e)}}},bu={namespaced:!0,actions:{close(){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.close()},deprecated(t,e){window.panel.deprecated("`$store.notification.deprecated` will be removed in a future version. Use `$panel.deprecated` instead."),window.panel.notification.deprecated(e)},error(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.error(e)},open(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.open(e)},success(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.success(e)}}};Vue.use(P);const vu=new P.Store({strict:!1,actions:{dialog(t,e){window.panel.deprecated("`$store.dialog` will be removed in a future version. Use `$panel.dialog.open()` instead."),window.panel.dialog.open(e)},drag(t,e){window.panel.deprecated("`$store.drag` will be removed in a future version. Use `$panel.drag.start(type, data)` instead."),window.panel.drag.start(...e)},fatal(t,e){window.panel.deprecated("`$store.fatal` will be removed in a future version. Use `$panel.notification.fatal()` instead."),window.panel.notification.fatal(e)},isLoading(t,e){window.panel.deprecated("`$store.isLoading` will be removed in a future version. Use `$panel.isLoading` instead."),window.panel.isLoading=e},navigate(){window.panel.deprecated("`$store.navigate` will be removed in a future version."),window.panel.dialog.close(),window.panel.drawer.close()}},modules:{content:gu,drawers:ku,notification:bu}});Vue.config.productionTip=!1,Vue.config.devtools=!0,Vue.use(da),Vue.use(Ea),Vue.use(N),Vue.use(_r),window.panel=Vue.prototype.$panel=mu.create(window.panel.plugins),Vue.prototype.$dialog=window.panel.dialog.open.bind(window.panel.dialog),Vue.prototype.$drawer=window.panel.drawer.open.bind(window.panel.drawer),Vue.prototype.$dropdown=window.panel.dropdown.openAsync.bind(window.panel.dropdown),Vue.prototype.$go=window.panel.view.open.bind(window.panel.view),Vue.prototype.$reload=window.panel.reload.bind(window.panel),window.panel.app=new Vue({store:vu,render:()=>Vue.h(R)}),Vue.use(pa),Vue.use(Cr),Vue.use(ha),!1===CSS.supports("container","foo / inline-size")&&F((()=>import("./container-query-polyfill.modern.min.js")),[],import.meta.url),window.panel.app.$mount("#app");export{F as _,Y as n}; +import{v as t,I as e,P as i,S as n,F as s,N as o,s as l,l as r,w as a,a as u,b as c,c as d,e as p,t as h,d as m,f,g,h as k,i as b,k as v,D as y,j as $,E as w,m as x,n as _,o as S,T as C,u as O,p as A,q as M,r as j,x as I,y as T,z as E,A as L,B as D,C as B,G as q,V as P,H as N}from"./vendor.min.js";const z={},F=function(t,e,i){if(!e||0===e.length)return t();const n=document.getElementsByTagName("link");return Promise.all(e.map((t=>{if(t=function(t,e){return new URL(t,e).href}(t,i),t in z)return;z[t]=!0;const e=t.endsWith(".css"),s=e?'[rel="stylesheet"]':"";if(!!i)for(let i=n.length-1;i>=0;i--){const s=n[i];if(s.href===t&&(!e||"stylesheet"===s.rel))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":"modulepreload",e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((e,i)=>{o.addEventListener("load",e),o.addEventListener("error",(()=>i(new Error(`Unable to preload CSS for ${t}`))))})):void 0}))).then((()=>t())).catch((t=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=t,window.dispatchEvent(e),!e.defaultPrevented)throw t}))},R={created(){this.$panel.events.subscribe();for(const t of this.$panel.plugins.created)t(this);this.$panel.events.on("popstate",(()=>{this.$panel.open(window.location.href)})),this.$panel.events.on("drop",(()=>{this.$panel.drag.stop()})),this.$store.dispatch("content/init")},destroyed(){this.$panel.events.unsubscribe()},render(t){if(this.$panel.view.component)return t(this.$panel.view.component,{key:this.$panel.view.component,props:this.$panel.view.props})}},Y={props:{after:String}},U={props:{autocomplete:String}},H={props:{autofocus:Boolean}},V={props:{before:String}},K={props:{disabled:Boolean}},W={props:{font:String}},J={props:{help:String}},G={props:{id:{type:[Number,String],default(){return this._uid}}}},X={props:{invalid:Boolean}},Z={props:{label:String}},Q={props:{layout:{type:String,default:"list"}}},tt={props:{maxlength:Number}},et={props:{minlength:Number}},it={props:{name:[Number,String]}},nt={props:{options:{default:()=>[],type:Array}}},st={props:{pattern:String}},ot={props:{placeholder:[Number,String]}},lt={props:{required:Boolean}},rt={props:{spellcheck:{type:Boolean,default:!0}}};function at(t,e,i,n,s,o,l,r){var a,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),l?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},u._ssrRegister=a):s&&(a=r?function(){s.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(t,e){return a.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:u}}const ut={mixins:[Q],inheritAttrs:!1,props:{columns:{type:[Object,Array],default:()=>({})},items:{type:Array,default:()=>[]},link:{type:Boolean,default:!0},sortable:Boolean,size:{type:String,default:"medium"}}};const ct=at({mixins:[ut],props:{image:{type:[Object,Boolean],default:()=>({})}},computed:{dragOptions(){return{sort:this.sortable,disabled:!1===this.sortable,draggable:".k-draggable-item"}},table(){return{columns:this.columns,rows:this.items,sortable:this.sortable}}},methods:{onDragStart(t,e){this.$panel.drag.start("text",e)},onOption(t,e,i){this.$emit("option",t,e,i)},imageOptions(t){let e=this.image,i=t.image;return!1!==e&&!1!==i&&("object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),{...i,...e})}}},(function(){var t=this,e=t._self._c;return"table"===t.layout?e("k-table",t._b({on:{change:function(e){return t.$emit("change",e)},sort:function(e){return t.$emit("sort",e)},option:t.onOption},scopedSlots:t._u([t.$scopedSlots.options?{key:"options",fn:function({row:e,rowIndex:i}){return[t._t("options",null,null,{item:e,index:i})]}}:null],null,!0)},"k-table",t.table,!1)):e("k-draggable",{staticClass:"k-items",class:"k-"+t.layout+"-items",attrs:{"data-layout":t.layout,"data-size":t.size,handle:!0,list:t.items,options:t.dragOptions},on:{change:function(e){return t.$emit("change",e)},end:function(e){return t.$emit("sort",t.items,e)}}},[t._l(t.items,(function(i,n){return[t._t("default",(function(){return[e("k-item",t._b({key:i.id??n,class:{"k-draggable-item":t.sortable&&i.sortable},attrs:{image:t.imageOptions(i),layout:t.layout,link:!!t.link&&i.link,sortable:t.sortable&&i.sortable,width:i.column},on:{click:function(e){return t.$emit("item",i,n)},drag:function(e){return t.onDragStart(e,i.dragText)},option:function(e){return t.onOption(e,i,n)}},nativeOn:{mouseover:function(e){return t.$emit("hover",e,i,n)}},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options",null,null,{item:i,index:n})]},proxy:!0}],null,!0)},"k-item",i,!1))]}),null,{item:i,itemIndex:n})]}))],2)}),[],!1,null,null,null,null).exports;const dt=at({mixins:[ut],props:{empty:{type:Object,default:()=>({})},help:String,pagination:{type:[Boolean,Object],default:!1}},computed:{hasPagination(){return!1!==this.pagination&&(!0!==this.paginationOptions.hide&&!(this.pagination.total<=this.pagination.limit))},paginationOptions(){return{limit:10,details:!0,keys:!1,total:0,hide:!1,..."object"!=typeof this.pagination?{}:this.pagination}}},watch:{$props(){this.$forceUpdate()}},methods:{onEmpty(t){t.stopPropagation(),this.$emit("empty")},onOption(...t){this.$emit("action",...t),this.$emit("option",...t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-collection"},[0===t.items.length?e("k-empty",t._g(t._b({attrs:{layout:t.layout}},"k-empty",t.empty,!1),t.$listeners.empty?{click:t.onEmpty}:{})):e("k-items",{attrs:{columns:t.columns,items:t.items,layout:t.layout,link:t.link,size:t.size,sortable:t.sortable},on:{change:function(e){return t.$emit("change",e)},item:function(e){return t.$emit("item",e)},option:t.onOption,sort:function(e){return t.$emit("sort",e)}},scopedSlots:t._u([{key:"options",fn:function({item:e,index:i}){return[t._t("options",null,null,{item:e,index:i})]}}],null,!0)}),t.help||t.hasPagination?e("footer",{staticClass:"k-bar k-collection-footer"},[e("k-text",{staticClass:"k-help k-collection-help",attrs:{html:t.help}}),t.hasPagination?e("k-pagination",t._b({on:{paginate:function(e){return t.$emit("paginate",e)}}},"k-pagination",t.paginationOptions,!1)):t._e()],1):t._e()],1)}),[],!1,null,null,null,null).exports;const pt=at({mixins:[Q],props:{text:String,icon:String},computed:{attrs(){const t={button:void 0!==this.$listeners.click,icon:this.icon,theme:"empty"};return"cardlets"!==this.layout&&"cards"!==this.layout||(t.align="center",t.height="var(--item-height-cardlet)"),t}}},(function(){var t=this;return(0,t._self._c)("k-box",t._b({staticClass:"k-empty",nativeOn:{click:function(e){return t.$emit("click",e)}}},"k-box",t.attrs,!1),[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2)}),[],!1,null,null,null,null).exports,ht={mixins:[Q],props:{image:[Object,Boolean],width:{type:String,default:"1/1"}}};const mt=at({mixins:[ht],inheritAttrs:!1,computed:{attrs(){return{back:this.image.back??"gray-500",cover:!0,...this.image,ratio:"list"===this.layout?"auto":this.image.ratio,size:this.sizes}},sizes(){switch(this.width){case"1/2":case"2/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 44em, 27em";case"1/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 29.333em, 27em";case"1/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 22em, 27em";case"2/3":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 27em, 27em";case"3/4":return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 66em, 27em";default:return"(min-width: 30em) and (max-width: 65em) 59em, (min-width: 65em) 88em, 27em"}}}},(function(){var t=this,e=t._self._c;return t.image.src?e("k-image-frame",t._b({staticClass:"k-item-image"},"k-image-frame",t.attrs,!1)):e("k-icon-frame",t._b({staticClass:"k-item-image"},"k-icon-frame",t.attrs,!1))}),[],!1,null,null,null,null).exports;const ft=at({mixins:[ht,Q],inheritAttrs:!1,props:{buttons:{type:Array,default:()=>[]},data:Object,info:String,link:{type:[Boolean,String,Function]},options:{type:[Array,Function,String]},sortable:Boolean,target:String,text:String},computed:{hasFigure(){return!1!==this.image&&this.$helper.object.length(this.image)>0},title(){return this.$helper.string.stripHTML(this.$helper.string.unescapeHTML(this.text)).trim()}},methods:{onOption(t){this.$emit("action",t),this.$emit("option",t)}}},(function(){var t,e=this,i=e._self._c;return i("div",e._b({staticClass:"k-item",class:!!e.layout&&"k-"+e.layout+"-item",attrs:{"data-has-image":e.hasFigure,"data-layout":e.layout},on:{click:function(t){return e.$emit("click",t)},dragstart:function(t){return e.$emit("drag",t)}}},"div",e.data,!1),[e._t("image",(function(){return[e.hasFigure?i("k-item-image",{attrs:{image:e.image,layout:e.layout,width:e.width}}):e._e()]})),e.sortable?i("k-sort-handle",{staticClass:"k-item-sort-handle",attrs:{tabindex:"-1"}}):e._e(),i("div",{staticClass:"k-item-content"},[i("h3",{staticClass:"k-item-title",attrs:{title:e.title}},[!1!==e.link?i("k-link",{attrs:{target:e.target,to:e.link}},[i("span",{domProps:{innerHTML:e._s(e.text??"–")}})]):i("span",{domProps:{innerHTML:e._s(e.text??"–")}})],1),e.info?i("p",{staticClass:"k-item-info",domProps:{innerHTML:e._s(e.info)}}):e._e()]),i("div",{staticClass:"k-item-options",attrs:{"data-only-option":!(null==(t=e.buttons)?void 0:t.length)||!e.options&&!e.$slots.options}},[e._l(e.buttons,(function(t,n){return i("k-button",e._b({key:"button-"+n},"k-button",t,!1))})),e._t("options",(function(){return[e.options?i("k-options-dropdown",{staticClass:"k-item-options-dropdown",attrs:{options:e.options},on:{option:e.onOption}}):e._e()]}))],2)],2)}),[],!1,null,null,null,null).exports,gt={install(t){t.component("k-collection",dt),t.component("k-empty",pt),t.component("k-item",ft),t.component("k-item-image",mt),t.component("k-items",ct)}};const kt=at({},(function(){return(0,this._self._c)("div",{staticClass:"k-dialog-body"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;function bt(t){if(void 0!==t)return JSON.parse(JSON.stringify(t))}function vt(t){return"object"==typeof t&&(null==t?void 0:t.constructor)===Object}function yt(t){return Object.keys(t??{}).length}function $t(t){return Object.keys(t).reduce(((e,i)=>(e[i.toLowerCase()]=t[i],e)),{})}const wt={clone:bt,isEmpty:function(t){return null==t||""===t||(!(!vt(t)||0!==yt(t))||0===t.length)},isObject:vt,length:yt,merge:function t(e,i={}){for(const n in i)i[n]instanceof Object&&Object.assign(i[n],t(e[n]??{},i[n]));return Object.assign(e??{},i),e},same:function(t,e){return JSON.stringify(t)===JSON.stringify(e)},toLowerKeys:$t},xt={props:{cancelButton:{default:!0,type:[Boolean,String,Object]},disabled:{default:!1,type:Boolean},icon:{default:"check",type:String},submitButton:{type:[Boolean,String,Object],default:!0},theme:{default:"positive",type:String}}};const _t=at({mixins:[xt],emits:["cancel"],computed:{cancel(){return this.button(this.cancelButton,{click:()=>this.$emit("cancel"),class:"k-dialog-button-cancel",icon:"cancel",text:this.$t("cancel"),variant:"filled"})},submit(){return this.button(this.submitButton,{class:"k-dialog-button-submit",disabled:this.disabled||this.$panel.dialog.isLoading,icon:this.icon,text:this.$t("confirm"),theme:this.theme,type:"submit",variant:"filled"})}},methods:{button:(t,e)=>"string"==typeof t?{...e,text:t}:!1!==t&&(!1===vt(t)?e:{...e,...t})}},(function(){var t=this,e=t._self._c;return e("k-button-group",{staticClass:"k-dialog-buttons"},[t.cancel?e("k-button",t._b({},"k-button",t.cancel,!1)):t._e(),t.submit?e("k-button",t._b({attrs:{icon:t.$panel.dialog.isLoading?"loader":t.submit.icon}},"k-button",t.submit,!1)):t._e()],1)}),[],!1,null,null,null,null).exports,St={props:{empty:{default:()=>window.panel.$t("dialog.fields.empty"),type:String},fields:{default:()=>[],type:[Array,Object]},novalidate:{default:!0,type:Boolean},value:{default:()=>({}),type:Object}}};const Ct=at({mixins:[St],emits:["input","submit"],computed:{hasFields(){return this.$helper.object.length(this.fields)>0}}},(function(){var t=this,e=t._self._c;return t.hasFields?e("k-fieldset",{staticClass:"k-dialog-fields",attrs:{novalidate:t.novalidate,fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports;const Ot=at({},(function(){return(0,this._self._c)("footer",{staticClass:"k-dialog-footer"},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const At=at({},(function(){var t=this,e=t._self._c;return"dialog"===t.$panel.notification.context?e("k-notification",{staticClass:"k-dialog-notification"}):t._e()}),[],!1,null,null,null,null).exports;const Mt=at({props:{autofocus:{default:!0,type:Boolean},placeholder:{default:()=>window.panel.$t("search")+" …",type:String},value:{type:String}},emits:["search"]},(function(){var t=this;return(0,t._self._c)("k-input",{staticClass:"k-dialog-search",attrs:{autofocus:t.autofocus,placeholder:t.placeholder,spellcheck:!1,value:t.value,icon:"search",type:"text"},on:{input:function(e){return t.$emit("search",e)}}})}),[],!1,null,null,null,null).exports,jt={props:{empty:{type:String,default:()=>window.panel.$t("dialog.text.empty")},text:{type:String}}};const It=at({mixins:[jt]},(function(){var t=this,e=t._self._c;return t.text?e("k-text",{attrs:{html:t.text}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,Tt={install(t){t.component("k-dialog-body",kt),t.component("k-dialog-buttons",_t),t.component("k-dialog-fields",Ct),t.component("k-dialog-footer",Ot),t.component("k-dialog-notification",At),t.component("k-dialog-search",Mt),t.component("k-dialog-text",It)}},Et={mixins:[xt],props:{size:{default:"default",type:String},visible:{default:!1,type:Boolean}},emits:["cancel","submit"],methods:{cancel(){this.$emit("cancel")},close(){this.$emit("close")},error(t){this.$panel.notification.error(t)},focus(t){this.$panel.dialog.focus(t)},input(t){this.$emit("input",t)},open(){this.$panel.dialog.open(this)},submit(){this.$emit("submit",this.value)},success(t){this.$emit("success",t)}}};const Lt=at({mixins:[Et],emits:["cancel","submit"]},(function(){var t=this,e=t._self._c;return t.visible?e("portal",{attrs:{to:"dialog"}},[e("form",{staticClass:"k-dialog",class:t.$vnode.data.staticClass,attrs:{"data-has-footer":t.cancelButton||t.submitButton,"data-size":t.size,method:"dialog"},on:{click:function(t){t.stopPropagation()},submit:function(e){return e.preventDefault(),t.$emit("submit")}}},[t._t("header",(function(){return[e("k-dialog-notification")]})),t.$slots.default?e("k-dialog-body",[t._t("default")],2):t._e(),t._t("footer",(function(){return[t.cancelButton||t.submitButton?e("k-dialog-footer",[e("k-dialog-buttons",{attrs:{"cancel-button":t.cancelButton,disabled:t.disabled,icon:t.icon,"submit-button":t.submitButton,theme:t.theme},on:{cancel:function(e){return t.$emit("cancel")}}})],1):t._e()]}))],2)]):t._e()}),[],!1,null,null,null,null).exports;const Dt=at({mixins:[Et],props:{cancelButton:{default:!1},changes:{type:Array},loading:{type:Boolean},size:{default:"medium"},submitButton:{default:!1}},computed:{ids(){return Object.keys(this.store).filter((t=>{var e;return this.$helper.object.length(null==(e=this.store[t])?void 0:e.changes)>0}))},store(){return this.$store.state.content.models}},watch:{ids:{handler(t){this.$panel.dialog.refresh({method:"POST",body:{ids:t}})},immediate:!0}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-changes-dialog"},"k-dialog",t.$props,!1),[!1===t.loading?[e("k-headline",[t._v(t._s(t.$t("lock.unsaved")))]),t.changes.length?e("k-items",{attrs:{items:t.changes,layout:"list"}}):e("k-empty",{attrs:{icon:"edit-line"}},[t._v(t._s(t.$t("lock.unsaved.empty")))])]:[e("k-icon",{attrs:{type:"loader"}})]],2)}),[],!1,null,null,null,null).exports;const Bt=at({mixins:[Et,St],props:{fields:{default:()=>({href:{label:window.panel.$t("email"),type:"email",icon:"email"},title:{label:window.panel.$t("link.text"),type:"text",icon:"title"}})},size:{default:"medium"},submitButton:{default:()=>window.panel.$t("insert")}},data(){return{values:{href:"",title:null,...this.value}}},methods:{submit(){this.$emit("submit",this.values)}}},(function(){var t=this;return(0,t._self._c)("k-form-dialog",t._b({attrs:{value:t.values},on:{cancel:function(e){return t.$emit("cancel")},input:function(e){t.values=e},submit:t.submit}},"k-form-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const qt=at({mixins:[Et],props:{details:[Object,Array],message:String,size:{default:"medium",type:String}},emits:["cancel"],computed:{detailsList(){return Array.fromObject(this.details)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",{ref:"dialog",staticClass:"k-error-dialog",attrs:{"cancel-button":!1,"submit-button":!1,size:t.size,visible:t.visible},on:{cancel:function(e){return t.$emit("cancel")}}},[e("k-text",[t._v(t._s(t.message))]),t.detailsList.length?e("dl",{staticClass:"k-error-details"},[t._l(t.detailsList,(function(i,n){return[e("dt",{key:"detail-label-"+n},[t._v(" "+t._s(i.label)+" ")]),e("dd",{key:"detail-message-"+n},["object"==typeof i.message?[e("ul",t._l(i.message,(function(i,n){return e("li",{key:n},[t._v(" "+t._s(i)+" ")])})),0)]:[t._v(" "+t._s(i.message)+" ")]],2)]}))],2):t._e()],1)}),[],!1,null,null,null,null).exports;const Pt=at({},(function(){var t=this;return(0,t._self._c)(t.$panel.dialog.component,t._g(t._b({key:t.$panel.dialog.timestamp,tag:"component",attrs:{visible:!0}},"component",t.$panel.dialog.props,!1),t.$panel.dialog.listeners()))}),[],!1,null,null,null,null).exports,Nt=(t,e)=>{let i=null;return(...n)=>{clearTimeout(i),i=setTimeout((()=>t.apply(globalThis,n)),e)}},zt={props:{delay:{default:200,type:Number},hasSearch:{default:!0,type:Boolean}},data:()=>({query:null}),watch:{query(){!1!==this.hasSearch&&this.search()}},created(){this.search=Nt(this.search,this.delay)},methods:{async search(){console.warn("Search mixin: Please implement a `search` method.")}}},Ft={props:{endpoint:String,empty:Object,fetchParams:Object,item:{type:Function,default:t=>t},max:Number,multiple:{type:Boolean,default:!0},size:{type:String,default:"medium"},value:{type:Array,default:()=>[]}}};const Rt=at({mixins:[Et,zt,Ft],data(){return{models:[],selected:this.value.reduce(((t,e)=>({...t,[e]:{id:e}})),{}),pagination:{limit:20,page:1,total:0}}},computed:{items(){return this.models.map(this.item)}},watch:{fetchParams(t,e){!1===this.$helper.object.same(t,e)&&(this.pagination.page=1,this.fetch())}},created(){this.fetch()},methods:{async fetch(){const t={page:this.pagination.page,search:this.query,...this.fetchParams};try{this.$panel.dialog.isLoading=!0;const e=await this.$api.get(this.endpoint,t);this.models=e.data,this.pagination=e.pagination,this.$emit("fetched",e)}catch(e){this.$panel.error(e),this.models=[]}finally{this.$panel.dialog.isLoading=!1}},isSelected(t){return void 0!==this.selected[t.id]},paginate(t){this.pagination.page=t.page,this.pagination.limit=t.limit,this.fetch()},submit(){this.$emit("submit",Object.values(this.selected))},async search(){this.pagination.page=0,await this.fetch()},toggle(t){if(!1!==this.multiple&&1!==this.max||(this.selected={}),this.isSelected(t))return Vue.del(this.selected,t.id);this.max&&this.max<=this.$helper.object.length(this.selected)||Vue.set(this.selected,t.id,t)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-models-dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:t.submit}},"k-dialog",t.$props,!1),[t._t("header"),t.hasSearch?e("k-dialog-search",{attrs:{value:t.query},on:{search:function(e){t.query=e}}}):t._e(),e("k-collection",{attrs:{empty:{...t.empty,text:t.$panel.dialog.isLoading?t.$t("loading"):t.empty.text},items:t.items,link:!1,pagination:{details:!0,dropdown:!1,align:"center",...t.pagination},sortable:!1,layout:"list"},on:{item:t.toggle,paginate:t.paginate},scopedSlots:t._u([{key:"options",fn:function({item:i}){return[t.isSelected(i)?e("k-button",{attrs:{icon:t.multiple&&1!==t.max?"check":"circle-nested",title:t.$t("remove"),theme:"info"},on:{click:function(e){return e.stopPropagation(),t.toggle(i)}}}):e("k-button",{attrs:{title:t.$t("select"),icon:"circle-outline"},on:{click:function(e){return e.stopPropagation(),t.toggle(i)}}}),t._t("options",null,null,{item:i})]}}],null,!0)})],2)}),[],!1,null,null,null,null).exports;const Yt=at({mixins:[Et,Ft],props:{empty:{type:Object,default:()=>({icon:"image",text:window.panel.$t("dialog.files.empty")})}}},(function(){var t=this;return(0,t._self._c)("k-models-dialog",t._b({on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",e)}}},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const Ut=at({mixins:[Et,St],props:{size:{default:"medium"},submitButton:{default:()=>window.panel.$t("save")},text:{type:String}},emits:["cancel","input","submit"]},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[t._t("default",(function(){return[t.text?e("k-dialog-text",{attrs:{text:t.text}}):t._e(),e("k-dialog-fields",{attrs:{fields:t.fields,novalidate:t.novalidate,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})]}))],2)}),[],!1,null,null,null,null).exports;const Ht=at({extends:Ut,watch:{"value.name"(t){this.fields.code.disabled||this.onNameChanges(t)},"value.code"(t){this.fields.code.disabled||(this.value.code=this.$helper.slug(t,[this.$panel.system.ascii]),this.onCodeChanges(this.value.code))}},methods:{onCodeChanges(t){if(!t)return this.value.locale=null;if(t.length>=2)if(-1!==t.indexOf("-")){let e=t.split("-"),i=[e[0],e[1].toUpperCase()];this.value.locale=i.join("_")}else{let e=this.$panel.system.locales??[];this.value.locale=null==e?void 0:e[t]}},onNameChanges(t){this.value.code=this.$helper.slug(t,[this.value.rules,this.$panel.system.ascii]).substr(0,2)}}},null,null,!1,null,null,null,null).exports;const Vt=at({mixins:[Et,St],props:{fields:{default:()=>({href:{label:window.panel.$t("link"),type:"link",placeholder:window.panel.$t("url.placeholder"),icon:"url"},title:{label:window.panel.$t("title"),type:"text",icon:"title"},target:{label:window.panel.$t("open.newWindow"),type:"toggle",text:[window.panel.$t("no"),window.panel.$t("yes")]}})},size:{default:"medium"},submitButton:{default:()=>window.panel.$t("insert")}},data(){return{values:{href:"",title:null,...this.value,target:Boolean(this.value.target??!1)}}},methods:{submit(){const t=this.values.href.replace("file://","/@/file/").replace("page://","/@/page/");this.$emit("submit",{...this.values,href:t,target:this.values.target?"_blank":null})}}},(function(){var t=this;return(0,t._self._c)("k-form-dialog",t._b({attrs:{value:t.values},on:{cancel:function(e){return t.$emit("cancel")},input:function(e){t.values=e},submit:t.submit}},"k-form-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const Kt=at({mixins:[Ut],props:{blueprints:{type:Array},size:{default:"medium",type:String},submitButton:{type:[String,Boolean],default:()=>window.panel.$t("save")},template:{type:String}},computed:{templates(){return this.blueprints.map((t=>({text:t.title,value:t.name})))}},methods:{pick(t){this.$panel.dialog.reload({query:{...this.$panel.dialog.query,slug:this.value.slug,template:t,title:this.value.title}})}}},(function(){var t=this,e=t._self._c;return e("k-form-dialog",t._b({ref:"dialog",staticClass:"k-page-create-dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-form-dialog",t.$props,!1),[t.templates.length>1?e("k-select-field",{staticClass:"k-page-template-switch",attrs:{empty:!1,label:t.$t("template"),options:t.templates,required:!0,value:t.template},on:{input:function(e){return t.pick(e)}}}):t._e(),e("k-dialog-fields",{attrs:{fields:t.fields,novalidate:t.novalidate,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],1)}),[],!1,null,null,null,null).exports;const Wt=at({mixins:[Et],props:{value:{default:()=>({}),type:Object}},emits:["cancel","input","submit"],methods:{select(t){this.$emit("input",{...this.value,parent:t.id})}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",staticClass:"k-page-move-dialog",attrs:{"submit-button":{icon:"parent",text:t.$t("move")},size:"medium"},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[e("k-headline",[t._v(t._s(t.$t("page.move")))]),e("div",{staticClass:"k-page-move-parent",attrs:{tabindex:"0","data-autofocus":""}},[e("k-page-tree",{attrs:{current:t.value.parent,move:t.value.move,identifier:"id"},on:{select:t.select}})],1)],1)}),[],!1,null,null,null,null).exports;const Jt=at({mixins:[Et,Ft],props:{empty:{type:Object,default:()=>({icon:"page",text:window.panel.$t("dialog.pages.empty")})}},data:()=>({model:null,parent:null})},(function(){var t=this,e=t._self._c;return e("k-models-dialog",t._b({attrs:{"fetch-params":{parent:t.parent}},on:{cancel:function(e){return t.$emit("cancel")},fetched:function(e){t.model=e.model},submit:function(e){return t.$emit("submit",e)}},scopedSlots:t._u([t.model?{key:"header",fn:function(){return[e("header",{staticClass:"k-pages-dialog-navbar"},[e("k-button",{attrs:{disabled:!t.model.id,title:t.$t("back"),icon:"angle-left"},on:{click:function(e){t.parent=t.model.parent}}}),e("k-headline",[t._v(t._s(t.model.title))])],1)]},proxy:!0}:null,t.model?{key:"options",fn:function({item:i}){return[e("k-button",{staticClass:"k-pages-dialog-option",attrs:{disabled:!i.hasChildren,title:t.$t("open"),icon:"angle-right"},on:{click:function(e){e.stopPropagation(),t.parent=i.id}}})]}}:null],null,!0)},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports;const Gt=at({mixins:[{mixins:[Et,jt]}]},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[t._t("default",(function(){return[e("k-dialog-text",{attrs:{text:t.text}})]}))],2)}),[],!1,null,null,null,null).exports;const Xt=at({mixins:[Gt],props:{icon:{default:"trash"},submitButton:{default:()=>window.panel.$t("delete")},theme:{default:"negative"}}},(function(){var t=this;return(0,t._self._c)("k-text-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-text-dialog",t.$props,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Zt=at({mixins:[Et,zt],emits:["cancel"],data(){return{isLoading:!1,items:[],pagination:{},selected:-1,type:this.$panel.searches[this.$panel.view.search]?this.$panel.view.search:Object.keys(this.$panel.searches)[0]}},computed:{currentType(){return this.$panel.searches[this.type]??this.types[0]},types(){return Object.values(this.$panel.searches).map((t=>({...t,current:this.type===t.id,click:()=>{this.type=t.id,this.focus()}})))}},watch:{type(){this.search()}},methods:{clear(){this.items=[],this.query=null},focus(){var t;null==(t=this.$refs.input)||t.focus()},navigate(t){t&&(this.$go(t.link),this.close())},onDown(){this.selected=0&&this.select(this.selected-1)},async search(){var t,e;this.isLoading=!0,null==(t=this.$refs.types)||t.close(),null==(e=this.select)||e.call(this,-1);try{if(null===this.query||this.query.length<2)throw Error("Empty query");const t=await this.$search(this.type,this.query);this.items=t.results,this.pagination=t.pagination}catch(i){this.items=[],this.pagination={}}finally{this.isLoading=!1}},select(t){var e;this.selected=t;const i=(null==(e=this.$refs.items)?void 0:e.$el.querySelectorAll(".k-item"))??[];for(const n of i)delete n.dataset.selected;t>=0&&(i[t].dataset.selected=!0)}}},(function(){var t,e=this,i=e._self._c;return i("k-dialog",e._b({staticClass:"k-search-dialog",attrs:{"cancel-button":!1,"submit-button":!1,role:"search",size:"medium"},on:{cancel:function(t){return e.$emit("cancel")},submit:e.submit}},"k-dialog",e.$props,!1),[i("div",{staticClass:"k-search-dialog-input"},[i("k-button",{staticClass:"k-search-dialog-types",attrs:{dropdown:!0,icon:e.currentType.icon,text:e.currentType.label,variant:"dimmed"},on:{click:function(t){return e.$refs.types.toggle()}}}),i("k-dropdown-content",{ref:"types",attrs:{options:e.types}}),i("k-search-input",{ref:"input",attrs:{"aria-label":e.$t("search"),autofocus:!0,value:e.query},on:{input:function(t){e.query=t}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter.apply(null,arguments)}]}}),i("k-button",{staticClass:"k-search-dialog-close",attrs:{icon:e.isLoading?"loader":"cancel",title:e.$t("close")},on:{click:e.close}})],1),(null==(t=e.query)?void 0:t.length)>1?i("div",{staticClass:"k-search-dialog-results"},[e.items.length?i("k-collection",{ref:"items",attrs:{items:e.items},nativeOn:{mouseout:function(t){return e.select(-1)}}}):e._e(),i("footer",{staticClass:"k-search-dialog-footer"},[e.items.length?e.items.length({text:window.panel.$t("activate"),icon:"lock",theme:"notice"})}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[e("k-dialog-text",{staticClass:"k-totp-dialog-intro",attrs:{text:t.$t("login.totp.enable.intro")}}),e("div",{staticClass:"k-totp-dialog-grid"},[e("div",{staticClass:"k-totp-qrcode"},[e("k-info-field",{attrs:{label:t.$t("login.totp.enable.qr.label"),text:t.qr,help:t.$t("login.totp.enable.qr.help",{secret:t.value.secret}),theme:"passive"}})],1),e("k-dialog-fields",{staticClass:"k-totp-dialog-fields",attrs:{fields:{info:{label:t.$t("login.totp.enable.confirm.headline"),type:"info",text:t.$t("login.totp.enable.confirm.text"),theme:"none"},confirm:{label:t.$t("login.totp.enable.confirm.label"),type:"text",counter:!1,font:"monospace",required:!0,placeholder:t.$t("login.code.placeholder.totp"),help:t.$t("login.totp.enable.confirm.help")},secret:{type:"hidden"}},novalidate:!0,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],1)],1)}),[],!1,null,null,null,null).exports;const te=at({mixins:[Et],props:{submitButton:{type:[String,Boolean,Object],default:()=>({icon:"upload",text:window.panel.$t("upload")})}},methods:{isPreviewable:t=>["image/jpeg","image/jpg","image/gif","image/png","image/webp","image/avif","image/svg+xml"].includes(t)}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({ref:"dialog",staticClass:"k-upload-dialog",attrs:{disabled:t.disabled||0===t.$panel.upload.files.length},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},"k-dialog",t.$props,!1),[e("k-dropzone",{on:{drop:function(e){return t.$panel.upload.select(e)}}},[0===t.$panel.upload.files.length?[e("k-empty",{attrs:{icon:"upload",layout:"cards"},on:{click:function(e){return t.$panel.upload.pick()}}},[t._v(" "+t._s(t.$t("files.empty"))+" ")])]:[e("ul",{staticClass:"k-upload-items"},t._l(t.$panel.upload.files,(function(i){return e("li",{key:i.id,staticClass:"k-upload-item",attrs:{"data-completed":i.completed}},[e("a",{staticClass:"k-upload-item-preview",attrs:{href:i.url,target:"_blank"}},[t.isPreviewable(i.type)?e("k-image-frame",{attrs:{cover:!0,src:i.url,back:"pattern"}}):e("k-icon-frame",{attrs:{back:"black",color:"white",ratio:"1/1",icon:"file"}})],1),e("k-input",{staticClass:"k-upload-item-input",attrs:{disabled:i.completed,after:"."+i.extension,novalidate:!0,required:!0,type:"slug"},model:{value:i.name,callback:function(e){t.$set(i,"name",e)},expression:"file.name"}}),e("div",{staticClass:"k-upload-item-body"},[e("p",{staticClass:"k-upload-item-meta"},[t._v(" "+t._s(i.niceSize)+" "),i.progress?[t._v(" - "+t._s(i.progress)+"% ")]:t._e()],2),i.error?e("p",{staticClass:"k-upload-item-error"},[t._v(" "+t._s(i.error)+" ")]):i.progress?e("k-progress",{staticClass:"k-upload-item-progress",attrs:{value:i.progress}}):t._e()],1),e("div",{staticClass:"k-upload-item-toggle"},[i.completed||i.progress?i.completed?e("k-button",{attrs:{icon:"check",theme:"positive"},on:{click:function(e){return t.$panel.upload.remove(i.id)}}}):e("div",[e("k-icon",{attrs:{type:"loader"}})],1):e("k-button",{attrs:{icon:"remove"},on:{click:function(e){return t.$panel.upload.remove(i.id)}}})],1)],1)})),0)]],2)],1)}),[],!1,null,null,null,null).exports;const ee=at({extends:te,props:{original:Object,submitButton:{type:[String,Boolean,Object],default:()=>({icon:"upload",text:window.panel.$t("replace")})}}},(function(){var t,e,i=this,n=i._self._c;return n("k-dialog",i._b({ref:"dialog",staticClass:"k-upload-dialog k-upload-replace-dialog",on:{cancel:function(t){return i.$emit("cancel")},submit:function(t){return i.$emit("submit")}}},"k-dialog",i.$props,!1),[n("ul",{staticClass:"k-upload-items"},[n("li",{staticClass:"k-upload-original"},[i.isPreviewable(i.original.mime)?n("k-image",{attrs:{cover:!0,src:i.original.url,back:"pattern"}}):n("k-icon-frame",{attrs:{color:(null==(t=i.original.image)?void 0:t.color)??"white",icon:(null==(e=i.original.image)?void 0:e.icon)??"file",back:"black",ratio:"1/1"}})],1),n("li",[i._v("←")]),i._l(i.$panel.upload.files,(function(t){var e,s;return n("li",{key:t.id,staticClass:"k-upload-item",attrs:{"data-completed":t.completed}},[n("a",{staticClass:"k-upload-item-preview",attrs:{href:t.url,target:"_blank"}},[i.isPreviewable(t.type)?n("k-image",{attrs:{cover:!0,src:t.url,back:"pattern"}}):n("k-icon-frame",{attrs:{color:(null==(e=i.original.image)?void 0:e.color)??"white",icon:(null==(s=i.original.image)?void 0:s.icon)??"file",back:"black",ratio:"1/1"}})],1),n("k-input",{staticClass:"k-upload-item-input",attrs:{value:i.$helper.file.name(i.original.filename),disabled:!0,after:"."+t.extension,type:"text"}}),n("div",{staticClass:"k-upload-item-body"},[n("p",{staticClass:"k-upload-item-meta"},[i._v(" "+i._s(t.niceSize)+" "),t.progress?[i._v(" - "+i._s(t.progress)+"% ")]:i._e()],2),n("p",{staticClass:"k-upload-item-error"},[i._v(i._s(t.error))])]),n("div",{staticClass:"k-upload-item-progress"},[t.progress>0&&!t.error?n("k-progress",{attrs:{value:t.progress}}):i._e()],1),n("div",{staticClass:"k-upload-item-toggle"},[t.completed?n("k-button",{attrs:{icon:"check",theme:"positive"},on:{click:function(e){return i.$panel.upload.remove(t.id)}}}):t.progress?n("div",[n("k-icon",{attrs:{type:"loader"}})],1):i._e()],1)],1)}))],2)])}),[],!1,null,null,null,null).exports;const ie=at({mixins:[Et,Ft],props:{empty:{type:Object,default:()=>({icon:"users",text:window.panel.$t("dialog.users.empty")})},item:{type:Function,default:t=>({...t,key:t.email,info:t.info!==t.text?t.info:null})}}},(function(){var t=this;return(0,t._self._c)("k-models-dialog",t._b({on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",e)}}},"k-models-dialog",t.$props,!1))}),[],!1,null,null,null,null).exports,ne={install(t){t.use(Tt),t.component("k-dialog",Lt),t.component("k-changes-dialog",Dt),t.component("k-email-dialog",Bt),t.component("k-error-dialog",qt),t.component("k-fiber-dialog",Pt),t.component("k-files-dialog",Yt),t.component("k-form-dialog",Ut),t.component("k-link-dialog",Vt),t.component("k-language-dialog",Ht),t.component("k-models-dialog",Rt),t.component("k-page-create-dialog",Kt),t.component("k-page-move-dialog",Wt),t.component("k-pages-dialog",Jt),t.component("k-remove-dialog",Xt),t.component("k-search-dialog",Zt),t.component("k-text-dialog",Gt),t.component("k-totp-dialog",Qt),t.component("k-upload-dialog",te),t.component("k-upload-replace-dialog",ee),t.component("k-users-dialog",ie)}};const se=at({},(function(){return(0,this._self._c)("div",{staticClass:"k-drawer-body scroll-y-auto"},[this._t("default")],2)}),[],!1,null,null,null,null).exports,oe={props:{empty:{type:String,default:()=>window.panel.$t("drawer.fields.empty")},fields:Object,novalidate:{type:Boolean,default:!0},value:Object}};const le=at({mixins:[oe],emits:["input","submit"],computed:{hasFields(){return this.$helper.object.length(this.fields)>0}}},(function(){var t=this,e=t._self._c;return t.hasFields?e("k-fieldset",{staticClass:"k-drawer-fields",attrs:{novalidate:t.novalidate,fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,re={props:{breadcrumb:{default:()=>[],type:Array},tab:{type:String},tabs:{default:()=>({}),type:Object}}};const ae=at({mixins:[re],emits:["crumb","tab"]},(function(){var t=this,e=t._self._c;return e("header",{staticClass:"k-drawer-header"},[e("nav",{staticClass:"k-breadcrumb k-drawer-breadcrumb"},[e("ol",t._l(t.breadcrumb,(function(i,n){return e("li",{key:i.id},[e("k-button",{staticClass:"k-breadcrumb-link",attrs:{icon:i.props.icon,text:i.props.title,current:n===t.breadcrumb.length-1,variant:"dimmed"},on:{click:function(e){return t.$emit("crumb",i.id)}}})],1)})),0)]),e("k-drawer-tabs",{attrs:{tab:t.tab,tabs:t.tabs},on:{open:function(e){return t.$emit("tab",e)}}}),e("nav",{staticClass:"k-drawer-options"},[t._t("default"),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"check",type:"submit"}})],2)],1)}),[],!1,null,null,null,null).exports;const ue=at({},(function(){var t=this,e=t._self._c;return"drawer"===t.$panel.notification.context?e("k-notification",{staticClass:"k-drawer-notification"}):t._e()}),[],!1,null,null,null,null).exports;const ce=at({mixins:[{props:{tab:{type:String},tabs:{default:()=>({}),type:[Array,Object]}}}],emits:["open"],computed:{hasTabs(){return this.$helper.object.length(this.tabs)>1}}},(function(){var t=this,e=t._self._c;return t.hasTabs?e("nav",{staticClass:"k-drawer-tabs"},t._l(t.tabs,(function(i){return e("k-button",{key:i.name,staticClass:"k-drawer-tab",attrs:{current:t.tab===i.name,text:i.label},on:{click:function(e){return t.$emit("open",i.name)}}})})),1):t._e()}),[],!1,null,null,null,null).exports,de={props:{empty:{type:String,default:()=>window.panel.$t("drawer.text.empty")},text:{type:String}}};const pe=at({mixins:[de]},(function(){var t=this,e=t._self._c;return t.text?e("k-text",{attrs:{html:t.text}}):e("k-box",{attrs:{theme:"info"}},[t._v(t._s(t.empty))])}),[],!1,null,null,null,null).exports,he={install(t){t.component("k-drawer-body",se),t.component("k-drawer-fields",le),t.component("k-drawer-header",ae),t.component("k-drawer-notification",ue),t.component("k-drawer-tabs",ce),t.component("k-drawer-text",pe)}},me={mixins:[re],props:{disabled:{default:!1,type:Boolean},icon:String,id:String,options:{type:Array},title:String,visible:{default:!1,type:Boolean}}};const fe=at({mixins:[me],emits:["cancel","crumb","submit","tab"]},(function(){var t=this,e=t._self._c;return t.visible?e("portal",{attrs:{to:"drawer"}},[e("form",{staticClass:"k-drawer",class:t.$vnode.data.staticClass,attrs:{"aria-disabled":t.disabled,method:"dialog"},on:{submit:function(e){return e.preventDefault(),t.$emit("submit")}}},[e("k-drawer-notification"),e("k-drawer-header",{attrs:{breadcrumb:t.breadcrumb,tab:t.tab,tabs:t.tabs},on:{crumb:function(e){return t.$emit("crumb",e)},tab:function(e){return t.$emit("tab",e)}}},[t._t("options",(function(){return[t._l(t.options,(function(i,n){return[i.dropdown?[e("k-button",t._b({key:"btn-"+n,staticClass:"k-drawer-option",on:{click:function(e){t.$refs["dropdown-"+n][0].toggle()}}},"k-button",i,!1)),e("k-dropdown-content",{key:"dropdown-"+n,ref:"dropdown-"+n,refInFor:!0,attrs:{options:i.dropdown,"align-x":"end",theme:"light"}})]:e("k-button",t._b({key:n,staticClass:"k-drawer-option"},"k-button",i,!1))]}))]}))],2),e("k-drawer-body",[t._t("default")],2)],1)]):t._e()}),[],!1,null,null,null,null).exports,ge={props:{hidden:{type:Boolean},next:{type:Object},prev:{type:Object}}};const ke=at({mixins:[me,oe,ge],emits:["cancel","crumb","input","next","prev","remove","show","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-form-drawer",t._b({ref:"drawer",staticClass:"k-block-drawer",on:{cancel:function(e){return t.$emit("cancel",e)},crumb:function(e){return t.$emit("crumb",e)},input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)},tab:function(e){return t.$emit("tab",e)}},scopedSlots:t._u([{key:"options",fn:function(){return[t.hidden?e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"hidden"},on:{click:function(e){return t.$emit("show")}}}):t._e(),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.prev,icon:"angle-left"},on:{click:function(e){return t.$emit("prev")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.next,icon:"angle-right"},on:{click:function(e){return t.$emit("next")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"trash"},on:{click:function(e){return t.$emit("remove")}}})]},proxy:!0}])},"k-form-drawer",t.$props,!1))}),[],!1,null,null,null,null).exports;const be=at({methods:{isCurrent(t){return this.$panel.drawer.id===t}}},(function(){var t=this,e=t._self._c;return e("div",t._l(t.$panel.drawer.history.milestones,(function(i){return e(i.component,t._g(t._b({key:i.id,tag:"component",attrs:{breadcrumb:t.$panel.drawer.breadcrumb,disabled:!1===t.isCurrent(i.id),visible:!0}},"component",t.isCurrent(i.id)?t.$panel.drawer.props:i.props,!1),t.isCurrent(i.id)?t.$panel.drawer.listeners():i.on))})),1)}),[],!1,null,null,null,null).exports;const ve=at({mixins:[me,oe],emits:["cancel","crumb","input","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-form-drawer",on:{cancel:function(e){return t.$emit("cancel")},crumb:function(e){return t.$emit("crumb",e)},submit:function(e){return t.$emit("submit",t.value)},tab:function(e){return t.$emit("tab",e)}}},"k-drawer",t.$props,!1),[t._t("options",null,{slot:"options"}),e("k-drawer-fields",{attrs:{fields:t.fields,value:t.value},on:{input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)}}})],2)}),[],!1,null,null,null,null).exports;const ye=at({mixins:[me,oe,{props:{next:{type:Object},prev:{type:Object}}}],emits:["cancel","crumb","input","next","prev","remove","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-form-drawer",t._b({ref:"drawer",staticClass:"k-structure-drawer",on:{cancel:function(e){return t.$emit("cancel",e)},crumb:function(e){return t.$emit("crumb",e)},input:function(e){return t.$emit("input",e)},submit:function(e){return t.$emit("submit",e)},tab:function(e){return t.$emit("tab",e)}},scopedSlots:t._u([{key:"options",fn:function(){return[e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.prev,icon:"angle-left"},on:{click:function(e){return t.$emit("prev")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{disabled:!t.next,icon:"angle-right"},on:{click:function(e){return t.$emit("next")}}}),e("k-button",{staticClass:"k-drawer-option",attrs:{icon:"trash"},on:{click:function(e){return t.$emit("remove")}}})]},proxy:!0}])},"k-form-drawer",t.$props,!1))}),[],!1,null,null,null,null).exports;const $e=at({mixins:[me,de],emits:["cancel","crumb","input","submit","tab"]},(function(){var t=this,e=t._self._c;return e("k-drawer",t._b({ref:"drawer",staticClass:"k-text-drawer",on:{cancel:function(e){return t.$emit("cancel")},crumb:function(e){return t.$emit("crumb",e)},submit:function(e){return t.$emit("submit",t.value)},tab:function(e){return t.$emit("tab",e)}}},"k-drawer",t.$props,!1),[t._t("options",null,{slot:"options"}),e("k-dialog-text",{attrs:{text:t.text}})],2)}),[],!1,null,null,null,null).exports,we={install(t){t.use(he),t.component("k-drawer",fe),t.component("k-block-drawer",ke),t.component("k-fiber-drawer",be),t.component("k-form-drawer",ve),t.component("k-structure-drawer",ye),t.component("k-text-drawer",$e)}};const xe=at({created(){window.panel.deprecated(" will be removed in a future version. Since Kirby 4.0, you don't need it anymore as wrapper element. Use `` as standalone instead.")}},(function(){return(0,this._self._c)("span",{staticClass:"k-dropdown",on:{click:function(t){t.stopPropagation()}}},[this._t("default")],2)}),[],!1,null,null,null,null).exports;let _e=null;const Se=at({props:{align:{type:String},alignX:{type:String,default:"start"},alignY:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},navigate:{default:!0,type:Boolean},options:[Array,Function,String],theme:{type:String,default:"dark"}},emits:["action","close","open"],data(){return{axis:{x:this.alignX,y:this.alignY},position:{x:0,y:0},isOpen:!1,items:[],opener:null}},created(){this.align&&window.panel.deprecated(": `align` prop will be removed in a future version. Use the `alignX` prop instead.")},methods:{close(){var t;null==(t=this.$refs.dropdown)||t.close()},async fetchOptions(t){return this.options?"string"==typeof this.options?this.$dropdown(this.options)(t):"function"==typeof this.options?this.options(t):Array.isArray(this.options)?t(this.options):void 0:t(this.items)},focus(t=0){this.$refs.navigate.focus(t)},onClick(){this.close()},onClose(){this.resetPosition(),this.isOpen=_e=!1,this.$emit("close"),window.removeEventListener("resize",this.setPosition)},async onOpen(){this.isOpen=!0;const t=window.scrollY;_e=this,await this.$nextTick(),this.$el&&this.opener&&(window.addEventListener("resize",this.setPosition),await this.setPosition(),window.scrollTo(0,t),this.$emit("open"))},onOptionClick(t){this.close(),"function"==typeof t.click?t.click.call(this):t.click&&this.$emit("action",t.click)},open(t){var e,i;if(!0===this.disabled)return!1;_e&&_e!==this&&_e.close(),this.opener=t??(null==(e=window.event)?void 0:e.target.closest("button"))??(null==(i=window.event)?void 0:i.target),this.fetchOptions((t=>{this.items=t,this.onOpen()}))},async setPosition(){this.axis={x:this.alignX??this.align,y:this.alignY},"right"===this.axis.x?this.axis.x="end":"left"===this.axis.x&&(this.axis.x="start"),"rtl"===this.$panel.direction&&("start"===this.axis.x?this.axis.x="end":"end"===this.axis.x&&(this.axis.x="start")),this.opener instanceof Vue&&(this.opener=this.opener.$el);const t=this.opener.getBoundingClientRect();this.position.x=t.left+window.scrollX+t.width,this.position.y=t.top+window.scrollY+t.height,!0!==this.$el.open&&this.$el.showModal(),await this.$nextTick();const e=this.$el.getBoundingClientRect(),i=10;"end"===this.axis.x?t.left-e.widthwindow.innerWidth-i&&e.width+ie.top&&(this.axis.y="bottom"):t.top+e.height>window.innerHeight-i&&e.height+i!0===t.default));t.push(this.item(e)),t.push("-");const i=this.languages.filter((t=>!1===t.default));for(const n of i)t.push(this.item(n));return t}},methods:{change(t){this.$reload({query:{language:t.code}})},item(t){return{click:()=>this.change(t),current:t.code===this.language.code,text:t.name}}}},(function(){var t=this,e=t._self._c;return t.languages.length>1?e("div",{staticClass:"k-languages-dropdown"},[e("k-button",{attrs:{dropdown:!0,text:t.code,icon:"translate",responsive:"text",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.languages.toggle()}}}),e("k-dropdown-content",{ref:"languages",attrs:{options:t.options}})],1):t._e()}),[],!1,null,null,null,null).exports;const Ae=at({props:{align:{type:String,default:"right"},disabled:{type:Boolean},icon:{type:String,default:"dots"},options:{type:[Array,Function,String],default:()=>[]},text:{type:[Boolean,String],default:!0},theme:{type:String,default:"dark"},size:String,variant:String},computed:{hasSingleOption(){return Array.isArray(this.options)&&1===this.options.length}},methods:{onAction(t,e,i){"function"==typeof t?t.call(this):(this.$emit("action",t,e,i),this.$emit("option",t,e,i))},toggle(t=this.$el){this.$refs.options.toggle(t)}}},(function(){var t=this,e=t._self._c;return t.hasSingleOption?e("k-button",{staticClass:"k-options-dropdown-toggle",attrs:{disabled:t.disabled,icon:t.options[0].icon??t.icon,size:t.options[0].size??t.size,title:t.options[0].title??t.options[0].tooltip??t.options[0].text,variant:t.options[0].variant??t.variant},on:{click:function(e){return t.onAction(t.options[0].option??t.options[0].click,t.options[0],0)}}},[!0===t.text?[t._v(" "+t._s(t.options[0].text)+" ")]:!1!==t.text?[t._v(" "+t._s(t.text)+" ")]:t._e()],2):t.options.length?e("div",{staticClass:"k-options-dropdown"},[e("k-button",{staticClass:"k-options-dropdown-toggle",attrs:{disabled:t.disabled,dropdown:!0,icon:t.icon,size:t.size,text:!0!==t.text&&!1!==t.text?t.text:null,title:t.$t("options"),variant:t.variant},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",staticClass:"k-options-dropdown-content",attrs:{"align-x":t.align,options:t.options},on:{action:t.onAction}})],1):t._e()}),[],!1,null,null,null,null).exports,Me={props:{accept:{type:String,default:"all"},icon:{type:String},ignore:{default:()=>[],type:Array},options:{default:()=>[],type:Array},search:{default:!0,type:[Object,Boolean]},value:{type:String}}};const je=at({mixins:[Me],emits:["create","escape","pick","select"],data(){return{query:this.value??"",selected:-1}},computed:{empty(){return this.$t("options.none")},filtered(){return!1===this.hasQuery?this.options:this.$helper.array.search(this.options,this.query,{field:"text"})},hasQuery(){const t=this.search.min??0;return this.query.length>=t},inputPlaceholder(){return"options"===this.accept?this.$t("filter"):this.$t("enter")},regex(){return new RegExp(`(${RegExp.escape(this.query)})`,"ig")},showCreateButton(){if("all"!==this.accept)return!1;if(0===this.query.length)return!1;if(!0===this.ignore.includes(this.query))return!1;return 0===this.options.filter((t=>t.text===this.query||t.value===this.query)).length},showEmpty(){return"options"===this.accept&&0===this.filtered.legnth&&this.options.length},showSearch(){return"all"===this.accept||!1!==this.search}},watch:{query(){this.selected=-1,!1!==this.hasQuery&&(!0===this.showCreateButton&&0===this.filtered.length?this.selected=this.filtered.length:this.filtered.length&&(this.selected=0))},selected(){-1===this.selected&&this.focus()}},mounted(){var t;null==(t=this.$refs.input)||t.select()},methods:{create(t){0!==(t=t.trim()).length&&this.$emit("create",t)},down(){this.pick(this.selected+1)},escape(){this.reset(),this.focus(),this.$emit("escape")},focus(){var t;null==(t=this.$refs.input)||t.focus()},async pick(t){var e,i;if(t>(this.showCreateButton?this.filtered.length:this.filtered.length-1)||t<-1)return!1;this.selected=t,this.$emit("pick",t),this.focus(),await this.$nextTick(),null==(i=null==(e=this.$refs.results)?void 0:e.$el.querySelector("[aria-current]"))||i.scrollIntoView({block:"nearest"})},reset(){this.query=""},select(t){this.pick(t);const e=this.filtered[this.selected];if(e)this.$emit("select",e);else{if(!this.showCreateButton)return;this.create(this.query)}this.query=""},tab(t){t.preventDefault(),t.shiftKey?this.up():this.down()},highlight(t){return t=this.$helper.string.stripHTML(t),0===this.query.length?t:t.replace(this.regex,"$1")},up(){this.pick(this.selected-1)}}},(function(){var t,e=this,i=e._self._c;return i("nav",{staticClass:"k-selector",attrs:{role:"search","data-has-current":null==(t=e.filtered)?void 0:t.includes(e.selected)}},[i("header",{staticClass:"k-selector-header"},[e.showSearch?i("div",{staticClass:"k-selector-search"},[i("input",{ref:"input",staticClass:"k-selector-input",attrs:{placeholder:e.inputPlaceholder+" …",type:"search"},domProps:{value:e.query},on:{click:function(t){return e.pick(-1)},input:function(t){e.query=t.target.value},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.down.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:(t.preventDefault(),e.escape())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.select(e.selected))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.tab.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.up.apply(null,arguments))}]}})]):e._e()]),e.filtered.length||e.showEmpty?i("div",{staticClass:"k-selector-body"},[e.filtered.length?i("k-navigate",{ref:"results",staticClass:"k-selector-results",attrs:{axis:"y"}},e._l(e.filtered,(function(t,n){return i("k-button",{key:n,staticClass:"k-selector-button",attrs:{current:e.selected===n,disabled:t.disabled,icon:t.icon??e.icon},on:{click:function(t){return e.select(n)}},nativeOn:{focus:function(t){return e.pick(n)}}},[i("span",{domProps:{innerHTML:e._s(e.highlight(t.text))}})])})),1):e.showEmpty?i("p",{staticClass:"k-selector-empty"},[e._v(e._s(e.empty))]):e._e()],1):e._e(),e.showCreateButton?i("footer",{staticClass:"k-selector-footer"},[i("k-button",{staticClass:"k-selector-button k-selector-add-button",attrs:{current:e.selected===e.filtered.length,icon:"add"},nativeOn:{focus:function(t){return e.select(e.filtered.length)}}},[i("strong",[e._v(e._s(e.value?e.$t("replace.with"):e.$t("create"))+":")]),i("span",{staticClass:"k-selector-preview"},[e._v(e._s(e.query))])])],1):e._e()])}),[],!1,null,null,null,null).exports;const Ie=at({mixins:[Me],props:{align:String,disabled:Boolean},emits:["create","select"],methods:{close(){this.$refs.dropdown.close()},create(t){this.$emit("create",t),this.close()},open(t){this.$refs.dropdown.open(t)},reset(){this.$refs.selector.reset()},select(t){this.$emit("select",t),this.close()},toggle(t){this.$refs.dropdown.toggle(t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-selector-dropdown"},[t._t("default"),e("k-dropdown-content",{ref:"dropdown",staticClass:"k-selector-dropdown-content",attrs:{"align-x":t.align,autofocus:!1,disabled:t.disabled,navigate:!1},on:{close:t.reset}},[e("k-selector",t._b({ref:"selector",on:{create:t.create,escape:function(e){return t.$refs.dropdown.close()},select:t.select}},"k-selector",t.$props,!1))],1)],2)}),[],!1,null,null,null,null).exports,Te={install(t){t.component("k-dropdown",xe),t.component("k-dropdown-content",Se),t.component("k-dropdown-item",Ce),t.component("k-languages-dropdown",Oe),t.component("k-options-dropdown",Ae),t.component("k-selector-dropdown",Ie)}};class Ee extends HTMLElement{connectedCallback(){this.style.display="block",this.textareas=this.querySelectorAll("textarea");for(const t of this.textareas)t.style.resize="none",t.style.overflowY="hidden",t.autosize=()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px",this.restoreScroll()},t.addEventListener("input",(()=>t.autosize())),t.addEventListener("beforeinput",(()=>this.storeScroll()));this.resizer=new ResizeObserver((()=>{for(const t of this.textareas)t.autosize()})),this.resizer.observe(this)}disconnectedCallback(){this.resizer.unobserve(this)}restoreScroll(){void 0!==this.scrollY&&(window.scroll(0,this.scrollY),this.scroll=void 0)}storeScroll(){this.scrollY=window.scrollY}}const Le=at({props:{html:{type:Boolean,default:!1},limit:{type:Number,default:10},skip:{type:Array,default:()=>[]},options:Array,query:String},emits:["leave","search","select"],data:()=>({matches:[],selected:{text:null}}),created(){window.panel.deprecated(" will be removed in a future version.")},methods:{close(){this.$refs.dropdown.close()},onSelect(t){this.$emit("select",t),this.$refs.dropdown.close()},search(t){const e=this.options.filter((t=>-1!==this.skip.indexOf(t.value)));this.matches=this.$helper.array.search(e,t,{field:"text",limit:this.limit}),this.$emit("search",t,this.matches),this.$refs.dropdown.open()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-autocomplete"},[t._t("default"),e("k-dropdown-content",{ref:"dropdown",attrs:{autofocus:!0},on:{leave:function(e){return t.$emit("leave")}}},t._l(t.matches,(function(i,n){return e("k-dropdown-item",t._b({key:n,nativeOn:{mousedown:function(e){return t.onSelect(i)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:(e.preventDefault(),t.onSelect(i))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onSelect(i))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.close.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:(e.preventDefault(),t.close.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close.apply(null,arguments))}]}},"k-dropdown-item",i,!1),[e("span",{domProps:{innerHTML:t._s(t.html?i.text:t.$esc(i.text))}})])})),1),t._v(" "+t._s(t.query)+" ")],2)}),[],!1,null,null,null,null).exports;const De=at({props:{count:Number,min:Number,max:Number,required:{type:Boolean,default:!1}},computed:{valid(){return!1===this.required&&0===this.count||(!0!==this.required||0!==this.count)&&(!(this.min&&this.countthis.max))}}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-counter",attrs:{"data-invalid":!t.valid}},[e("span",[t._v(t._s(t.count))]),t.min&&t.max?e("span",{staticClass:"k-counter-rules"},[t._v("("+t._s(t.min)+"–"+t._s(t.max)+")")]):t.min?e("span",{staticClass:"k-counter-rules"},[t._v("≥ "+t._s(t.min))]):t.max?e("span",{staticClass:"k-counter-rules"},[t._v("≤ "+t._s(t.max))]):t._e()])}),[],!1,null,null,null,null).exports;const Be=at({props:{disabled:Boolean,config:Object,fields:{type:[Array,Object],default:()=>[]},novalidate:{type:Boolean,default:!1},value:{type:Object,default:()=>({})}},emits:["input","submit"],data:()=>({errors:{}}),methods:{focus(t){var e,i;null==(i=null==(e=this.$refs.fields)?void 0:e.focus)||i.call(e,t)},onFocus(t,e,i){this.$emit("focus",t,e,i)},onInput(t,e,i){this.$emit("input",t,e,i)},onInvalid(t){this.$emit("invalid",t)},onSubmit(){this.$emit("submit",this.value)},submit(){this.$refs.submitter.click()}}},(function(){var t=this,e=t._self._c;return e("form",{ref:"form",staticClass:"k-form",attrs:{method:"POST",autocomplete:"off",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t._t("header"),t._t("default",(function(){return[e("k-fieldset",{ref:"fields",attrs:{disabled:t.disabled,fields:t.fields,novalidate:t.novalidate,value:t.value},on:{focus:t.onFocus,input:t.onInput,invalid:t.onInvalid,submit:t.onSubmit}})]})),t._t("footer"),e("input",{ref:"submitter",staticClass:"k-form-submitter",attrs:{type:"submit"}})],2)}),[],!1,null,null,null,null).exports;const qe=at({props:{lock:[Boolean,Object]},data:()=>({isLoading:null,isLocking:null}),computed:{api(){return[this.$panel.view.path+"/lock",null,null,!0]},buttons(){return"unlock"===this.mode?[{icon:"check",text:this.$t("lock.isUnlocked"),click:()=>this.resolve()},{icon:"download",text:this.$t("download"),click:()=>this.download()}]:"lock"===this.mode?[{icon:this.lock.data.unlockable?"unlock":"loader",text:this.$t("lock.isLocked",{email:this.$esc(this.lock.data.email)}),title:this.$t("lock.unlock"),disabled:!this.lock.data.unlockable,click:()=>this.unlock()}]:"changes"===this.mode?[{icon:"undo",text:this.$t("revert"),click:()=>this.revert()},{icon:"check",text:this.$t("save"),click:()=>this.save()}]:[]},disabled(){return"unlock"!==this.mode&&("lock"===this.mode?!this.lock.data.unlockable:"changes"===this.mode&&this.isDisabled)},hasChanges(){return this.$store.getters["content/hasChanges"]()},isDisabled(){return!1===this.$store.state.content.status.enabled},isLocked(){return"lock"===this.lockState},isUnlocked(){return"unlock"===this.lockState},mode(){return null!==this.lockState?this.lockState:!0===this.hasChanges?"changes":null},lockState(){return this.supportsLocking&&this.lock?this.lock.state:null},supportsLocking(){return!1!==this.lock},theme(){return"lock"===this.mode?"negative":"unlock"===this.mode?"info":"changes"===this.mode?"notice":null}},watch:{hasChanges:{handler(t,e){!0===this.supportsLocking&&!1===this.isLocked&&!1===this.isUnlocked&&(!0===t?(this.locking(),this.isLocking=setInterval(this.locking,3e4)):e&&(clearInterval(this.isLocking),this.locking(!1)))},immediate:!0},isLocked(t){!1===t&&this.$events.emit("model.reload")}},created(){this.supportsLocking&&(this.isLoading=setInterval(this.check,1e4)),this.$events.on("view.save",this.save)},destroyed(){clearInterval(this.isLoading),clearInterval(this.isLocking),this.$events.off("view.save",this.save)},methods:{async check(){if(!1===this.$panel.isOffline){const{lock:t}=await this.$api.get(...this.api);Vue.set(this.$panel.view.props,"lock",t)}},download(){let t="";const e=this.$store.getters["content/changes"]();for(const n in e){const i=e[n];t+=n+": \n\n","object"==typeof i&&Object.keys(i).length||Array.isArray(i)&&i.length?t+=JSON.stringify(i,null,2):t+=i,t+="\n\n----\n\n"}let i=document.createElement("a");i.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),i.setAttribute("download",this.$panel.view.path+".txt"),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)},async locking(t=!0){if(!0!==this.$panel.isOffline)if(!0===t)try{await this.$api.patch(...this.api)}catch(e){clearInterval(this.isLocking),this.$store.dispatch("content/revert")}else clearInterval(this.isLocking),await this.$api.delete(...this.api)},async resolve(){await this.unlock(!1),this.$store.dispatch("content/revert")},revert(){this.$panel.dialog.open({component:"k-remove-dialog",props:{submitButton:{icon:"undo",text:this.$t("revert")},text:this.$t("revert.confirm")},on:{submit:()=>{this.$store.dispatch("content/revert"),this.$panel.dialog.close()}}})},async save(t){var e;null==(e=null==t?void 0:t.preventDefault)||e.call(t),await this.$store.dispatch("content/save"),this.$events.emit("model.update"),this.$panel.notification.success()},async unlock(t=!0){const e=[this.$panel.view.path+"/unlock",null,null,!0];!0!==t?(await this.$api.delete(...e),this.$reload({silent:!0})):this.$panel.dialog.open({component:"k-remove-dialog",props:{submitButton:{icon:"unlock",text:this.$t("lock.unlock")},text:this.$t("lock.unlock.submit",{email:this.$esc(this.lock.data.email)})},on:{submit:async()=>{await this.$api.patch(...e),this.$panel.dialog.close(),this.$reload({silent:!0})}}})}}},(function(){var t=this,e=t._self._c;return t.buttons.length>0?e("k-button-group",{staticClass:"k-form-buttons",attrs:{layout:"collapsed"}},t._l(t.buttons,(function(i){return e("k-button",t._b({key:i.icon,attrs:{size:"sm",variant:"filled",disabled:t.isDisabled,responsive:!0,theme:t.theme}},"k-button",i,!1))})),1):t._e()}),[],!1,null,null,null,null).exports,Pe={mixins:[K,J,Z,it,lt],props:{counter:[Boolean,Object],endpoints:Object,input:[String,Number],translate:Boolean,type:String}};const Ne=at({mixins:[Pe],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("div",{class:"k-field k-field-name-"+t.name,attrs:{"data-disabled":t.disabled,"data-translate":t.translate},on:{focusin:function(e){return t.$emit("focus",e)},focusout:function(e){return t.$emit("blur",e)}}},[t._t("header",(function(){return[e("header",{staticClass:"k-bar k-field-header"},[t._t("label",(function(){return[e("k-label",{attrs:{input:t.input,required:t.required,type:"field"}},[t._v(" "+t._s(t.label)+" ")])]})),t._t("options"),t._t("counter",(function(){return[t.counter?e("k-counter",t._b({staticClass:"k-field-counter",attrs:{required:t.required}},"k-counter",t.counter,!1)):t._e()]}))],2)]})),t._t("default"),t._t("footer",(function(){return[t.help||t.$slots.help?e("footer",{staticClass:"k-field-footer"},[t._t("help",(function(){return[t.help?e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}}):t._e()]}))],2):t._e()]}))],2)}),[],!1,null,null,null,null).exports;const ze=at({props:{config:Object,disabled:Boolean,fields:{type:[Array,Object],default:()=>({})},novalidate:{type:Boolean,default:!1},value:{type:Object,default:()=>({})}},emits:["focus","input","invalid","submit"],data:()=>({errors:{}}),methods:{focus(t){if(t)return void(this.hasField(t)&&"function"==typeof this.$refs[t][0].focus&&this.$refs[t][0].focus());const e=Object.keys(this.$refs)[0];this.focus(e)},hasFieldType(t){return this.$helper.isComponent(`k-${t}-field`)},hasField(t){var e;return null==(e=this.$refs[t])?void 0:e[0]},onInvalid(t,e,i,n){this.errors[n]=e,this.$emit("invalid",this.errors)},onInput(t,e,i){const n=this.value;this.$set(n,i,t),this.$emit("input",n,e,i)},hasErrors(){return this.$helper.object.length(this.errors)>0}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-fieldset"},[e("k-grid",{attrs:{variant:"fields"}},[t._l(t.fields,(function(i,n){return[t.$helper.field.isVisible(i,t.value)?e("k-column",{key:i.signature,attrs:{width:i.width}},[t.hasFieldType(i.type)?e("k-"+i.type+"-field",t._b({ref:n,refInFor:!0,tag:"component",attrs:{disabled:t.disabled||i.disabled,"form-data":t.value,name:n,novalidate:t.novalidate,value:t.value[n]},on:{input:function(e){return t.onInput(e,i,n)},focus:function(e){return t.$emit("focus",e,i,n)},invalid:(e,s)=>t.onInvalid(e,s,i,n),submit:function(e){return t.$emit("submit",e,i,n)}}},"component",i,!1)):e("k-box",{attrs:{theme:"negative"}},[e("k-text",{attrs:{size:"small"}},[t._v(" "+t._s(t.$t("error.field.type.missing",{name:n,type:i.type}))+" ")])],1)],1):t._e()]}))],2)],1)}),[],!1,null,null,null,null).exports,Fe={mixins:[Y,V,K,X],inheritAttrs:!1,props:{autofocus:Boolean,type:String,icon:[String,Boolean],novalidate:{type:Boolean,default:!1},value:{type:[String,Boolean,Number,Object,Array],default:null}}};const Re=at({mixins:[Fe],data(){return{isInvalid:this.invalid,listeners:{...this.$listeners,invalid:(t,e)=>{this.isInvalid=t,this.$emit("invalid",t,e)}}}},computed:{inputProps(){return{...this.$props,...this.$attrs}}},watch:{invalid(){this.isInvalid=this.invalid}},methods:{blur(t){(null==t?void 0:t.relatedTarget)&&!1===this.$el.contains(t.relatedTarget)&&this.trigger(null,"blur")},focus(t){this.trigger(t,"focus")},select(t){this.trigger(t,"select")},trigger(t,e){var i,n,s;if("INPUT"===(null==(i=null==t?void 0:t.target)?void 0:i.tagName)&&"function"==typeof(null==(n=null==t?void 0:t.target)?void 0:n[e]))return void t.target[e]();if("function"==typeof(null==(s=this.$refs.input)?void 0:s[e]))return void this.$refs.input[e]();const o=this.$el.querySelector("input, select, textarea");"function"==typeof(null==o?void 0:o[e])&&o[e]()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-input",attrs:{"data-disabled":t.disabled,"data-invalid":!t.novalidate&&t.isInvalid,"data-type":t.type}},[t.$slots.before||t.before?e("span",{staticClass:"k-input-description k-input-before",on:{click:t.focus}},[t._t("before",(function(){return[t._v(t._s(t.before))]}))],2):t._e(),e("span",{staticClass:"k-input-element",on:{click:function(e){return e.stopPropagation(),t.focus.apply(null,arguments)}}},[t._t("default",(function(){return[e("k-"+t.type+"-input",t._g(t._b({ref:"input",tag:"component",attrs:{value:t.value}},"component",t.inputProps,!1),t.listeners))]}))],2),t.$slots.after||t.after?e("span",{staticClass:"k-input-description k-input-after",on:{click:t.focus}},[t._t("after",(function(){return[t._v(t._s(t.after))]}))],2):t._e(),t.$slots.icon||t.icon?e("span",{staticClass:"k-input-icon",on:{click:t.focus}},[t._t("icon",(function(){return[e("k-icon",{attrs:{type:t.icon}})]}))],2):t._e()])}),[],!1,null,null,null,null).exports;const Ye=at({props:{methods:Array},data:()=>({currentForm:null,isLoading:!1,user:{email:"",password:"",remember:!1}}),computed:{canToggle(){return null!==this.codeMode&&!0===this.methods.includes("password")&&(!0===this.methods.includes("password-reset")||!0===this.methods.includes("code"))},codeMode(){return!0===this.methods.includes("password-reset")?"password-reset":!0===this.methods.includes("code")?"code":null},fields(){let t={email:{autofocus:!0,label:this.$t("email"),type:"email",required:!0,link:!1}};return"email-password"===this.form&&(t.password={label:this.$t("password"),type:"password",minLength:8,required:!0,autocomplete:"current-password",counter:!1}),t},form(){return this.currentForm?this.currentForm:"password"===this.methods[0]?"email-password":"email"},isResetForm(){return"password-reset"===this.codeMode&&"email"===this.form},toggleText(){return this.$t("login.toggleText."+this.codeMode+"."+this.formOpposite(this.form))}},methods:{formOpposite:t=>"email-password"===t?"email":"email-password",async login(){this.$emit("error",null),this.isLoading=!0;let t=Object.assign({},this.user);"email"===this.currentForm&&(t.password=null),!0===this.isResetForm&&(t.remember=!1);try{await this.$api.auth.login(t),this.$reload({globals:["$system","$translation"]}),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"})}catch(e){this.$emit("error",e)}finally{this.isLoading=!1}},toggleForm(){this.currentForm=this.formOpposite(this.form),this.$refs.fieldset.focus("email")}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-login-form",on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("div",{staticClass:"k-login-fields"},[!0===t.canToggle?e("button",{staticClass:"k-login-toggler",attrs:{type:"button"},on:{click:t.toggleForm}},[t._v(" "+t._s(t.toggleText)+" ")]):t._e(),e("k-fieldset",{ref:"fieldset",attrs:{novalidate:!0,fields:t.fields,value:t.user},on:{input:function(e){t.user=e}}})],1),e("div",{staticClass:"k-login-buttons"},[!1===t.isResetForm?e("span",{staticClass:"k-login-checkbox"},[e("k-checkbox-input",{attrs:{value:t.user.remember,label:t.$t("login.remember")},on:{input:function(e){t.user.remember=e}}})],1):t._e(),e("k-button",{staticClass:"k-login-button",attrs:{icon:"check",size:"lg",theme:"positive",type:"submit",variant:"filled"}},[t._v(" "+t._s(t.$t("login"+(t.isResetForm?".reset":"")))+" "),t.isLoading?[t._v(" … ")]:t._e()],2)],1)])}),[],!1,null,null,null,null).exports;const Ue=at({props:{methods:Array,pending:Object},data:()=>({code:"",isLoadingBack:!1,isLoadingLogin:!1}),computed:{mode(){return!0===this.methods.includes("password-reset")?"password-reset":"login"}},methods:{async back(){this.isLoadingBack=!0,this.$go("/logout")},async login(){this.$emit("error",null),this.isLoadingLogin=!0;try{await this.$api.auth.verifyCode(this.code),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"}),"password-reset"===this.mode?this.$go("reset-password"):this.$reload()}catch(t){this.$emit("error",t)}finally{this.isLoadingLogin=!1}}}},(function(){var t=this,e=t._self._c;return e("form",{staticClass:"k-login-form k-login-code-form",on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("k-user-info",{attrs:{user:t.pending.email}}),e("k-text-field",{attrs:{autofocus:!0,counter:!1,help:t.$t("login.code.text."+t.pending.challenge),label:t.$t("login.code.label."+t.mode),novalidate:!0,placeholder:t.$t("login.code.placeholder."+t.pending.challenge),required:!0,value:t.code,autocomplete:"one-time-code",icon:"unlock",name:"code"},on:{input:function(e){t.code=e}}}),e("div",{staticClass:"k-login-buttons"},[e("k-button",{staticClass:"k-login-button k-login-back-button",attrs:{icon:"angle-left",size:"lg",variant:"filled"},on:{click:t.back}},[t._v(" "+t._s(t.$t("back"))+" "),t.isLoadingBack?[t._v(" … ")]:t._e()],2),e("k-button",{staticClass:"k-login-button",attrs:{icon:"check",size:"lg",type:"submit",theme:"positive",variant:"filled"}},[t._v(" "+t._s(t.$t("login"+("password-reset"===t.mode?".reset":"")))+" "),t.isLoadingLogin?[t._v(" … ")]:t._e()],2)],1)],1)}),[],!1,null,null,null,null).exports;const He=at({props:{accept:{type:String,default:"*"},attributes:{type:Object},max:{type:Number},method:{type:String,default:"POST"},multiple:{type:Boolean,default:!0},url:{type:String}},methods:{open(t){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.open()` instead."),this.$panel.upload.pick(this.params(t))},params(t){return{...this.$props,...t??{},on:{complete:(t,e)=>{this.$emit("success",t,e)}}}},select(t){this.$panel.upload.select(t.target.files)},drop(t,e){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.select()` instead."),this.$panel.upload.open(t,this.params(e))},upload(t,e){window.panel.deprecated(" will be removed in a future version. Use `$panel.upload.select()` instead."),this.$panel.upload.select(t,this.params(e)),this.$panel.upload.start()}},render:()=>""},null,null,!1,null,null,null,null).exports;const Ve=at({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-notification k-login-alert",attrs:{"data-theme":"error"}},[e("p",[t._t("default")],2),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return t.$emit("click")}}})],1)}),[],!1,null,null,null,null).exports;const Ke=at({props:{fields:Object,index:[Number,String],total:Number,value:Object},mounted(){this.$store.dispatch("content/disable"),this.$events.on("keydown.cmd.s",this.onSubmit),this.$events.on("keydown.esc",this.onDiscard)},destroyed(){this.$events.off("keydown.cmd.s",this.onSubmit),this.$events.off("keydown.esc",this.onDiscard),this.$store.dispatch("content/enable")},methods:{focus(t){this.$refs.form.focus(t)},onDiscard(){this.$emit("discard")},onInput(t){this.$emit("input",t)},onSubmit(){this.$emit("submit")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-structure-form"},[e("div",{staticClass:"k-structure-backdrop",on:{click:t.onDiscard}}),e("section",[e("k-form",{ref:"form",staticClass:"k-structure-form-fields",attrs:{value:t.value,fields:t.fields},on:{input:t.onInput,submit:t.onSubmit}}),e("footer",{staticClass:"k-structure-form-buttons"},[e("k-button",{staticClass:"k-structure-form-cancel-button",attrs:{text:t.$t("cancel"),icon:"cancel",size:"xs",variant:"filled"},on:{click:function(e){return t.$emit("close")}}}),"new"!==t.index?e("k-pagination",{attrs:{dropdown:!1,total:t.total,limit:1,page:t.index+1,details:!0},on:{paginate:function(e){return t.$emit("paginate",e)}}}):t._e(),e("k-button",{staticClass:"k-structure-form-submit-button",attrs:{text:t.$t("new"!==t.index?"confirm":"add"),icon:"check",size:"xs",variant:"filled"},on:{click:t.onSubmit}})],1)],1)])}),[],!1,null,null,null,null).exports;const We=at({computed:{placeholder(){return this.field("code",{}).placeholder},languages(){return this.field("language",{options:[]}).options}},methods:{focus(){this.$refs.code.focus()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-code-editor"},[e("k-input",{ref:"code",attrs:{buttons:!1,placeholder:t.placeholder,spellcheck:!1,value:t.content.code,font:"monospace",type:"textarea"},on:{input:function(e){return t.update({code:e})}}}),t.languages.length?e("div",{staticClass:"k-block-type-code-editor-language"},[e("k-input",{ref:"language",attrs:{empty:!1,options:t.languages,value:t.content.language,icon:"code",type:"select"},on:{input:function(e){return t.update({language:e})}}})],1):t._e()],1)}),[],!1,null,null,null,null).exports,Je=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));const Ge=at({},(function(){var t=this;return(0,t._self._c)("k-block-title",{attrs:{content:t.content,fieldset:t.fieldset},nativeOn:{dblclick:function(e){return t.$emit("open")}}})}),[],!1,null,null,null,null).exports,Xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));const Ze=at({props:{endpoints:Object,tabs:Object},data(){return{collapsed:this.state(),tab:Object.keys(this.tabs)[0]}},computed:{fields(){var t;return null==(t=this.tabs[this.tab])?void 0:t.fields},values(){return Object.assign({},this.content)}},methods:{open(){this.$emit("open",this.tab)},state(t){const e=`kirby.fieldsBlock.${this.endpoints.field}.${this.id}`;if(void 0===t)return JSON.parse(sessionStorage.getItem(e));sessionStorage.setItem(e,t)},toggle(){this.collapsed=!this.collapsed,this.state(this.collapsed)}}},(function(){var t=this,e=t._self._c;return e("div",{attrs:{"data-collapsed":t.collapsed},on:{dblclick:function(e){!t.fieldset.wysiwyg&&t.$emit("open")}}},[e("header",{staticClass:"k-block-type-fields-header"},[e("k-block-title",{attrs:{content:t.values,fieldset:t.fieldset},nativeOn:{click:function(e){return t.toggle.apply(null,arguments)}}}),t.collapsed?t._e():e("k-drawer-tabs",{attrs:{tab:t.tab,tabs:t.fieldset.tabs},on:{open:function(e){t.tab=e}}})],1),t.collapsed?t._e():e("k-form",{ref:"form",staticClass:"k-block-type-fields-form",attrs:{autofocus:!0,disabled:!t.fieldset.wysiwyg,fields:t.fields,value:t.values},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null,null).exports,Qe=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"}));const ti=at({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},crop(){return this.content.crop},ratio(){return this.content.ratio}}},(function(){var t,e=this,i=e._self._c;return i("figure",[i("ul",{on:{dblclick:e.open}},[(null==(t=e.content.images)?void 0:t.length)?e._l(e.content.images,(function(t){return i("li",{key:t.id},[i("k-image-frame",{attrs:{ratio:e.ratio,cover:e.crop,src:t.url,srcset:t.image.srcset,alt:t.alt}})],1)})):e._l(3,(function(t){return i("li",{key:t,staticClass:"k-block-type-gallery-placeholder"},[i("k-image-frame",{attrs:{ratio:e.ratio}})],1)}))],2),e.content.caption?i("figcaption",[i("k-writer",{attrs:{inline:!0,marks:e.captionMarks,value:e.content.caption},on:{input:function(t){return e.$emit("update",{caption:t})}}})],1):e._e()])}),[],!1,null,null,null,null).exports,ei=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));const ii=at({computed:{isSplitable(){return this.content.text.length>0&&!1===this.$refs.input.isCursorAtStart&&!1===this.$refs.input.isCursorAtEnd},keys(){return{Enter:()=>!0===this.$refs.input.isCursorAtEnd?this.$emit("append","text"):this.split(),"Mod-Enter":this.split}},levels(){return this.field("level",{options:[]}).options},textField(){return this.field("text",{marks:!0})}},methods:{focus(){this.$refs.input.focus()},merge(t){this.update({text:t.map((t=>t.content.text)).join(" ")})},split(){var t,e;const i=null==(e=(t=this.$refs.input).getSplitContent)?void 0:e.call(t);i&&this.$emit("split",[{text:i[0]},{level:"h"+Math.min(parseInt(this.content.level.slice(1))+1,6),text:i[1]}])}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-heading-input",attrs:{"data-level":t.content.level}},[e("k-writer",t._b({ref:"input",attrs:{inline:!0,keys:t.keys,value:t.content.text},on:{input:function(e){return t.update({text:e})}}},"k-writer",t.textField,!1)),t.levels.length>1?e("k-input",{ref:"level",staticClass:"k-block-type-heading-level",attrs:{empty:!1,options:t.levels,value:t.content.level,type:"select"},on:{input:function(e){return t.update({level:e})}}}):t._e()],1)}),[],!1,null,null,null,null).exports,ni=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"}));const si=at({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},crop(){return this.content.crop??!1},src(){var t,e;return"web"===this.content.location?this.content.src:!!(null==(e=null==(t=this.content.image)?void 0:t[0])?void 0:e.url)&&this.content.image[0].url},ratio(){return this.content.ratio??!1}}},(function(){var t=this,e=t._self._c;return e("k-block-figure",{attrs:{caption:t.content.caption,"caption-marks":t.captionMarks,"empty-text":t.$t("field.blocks.image.placeholder")+" …","is-empty":!t.src,"empty-icon":"image"},on:{open:t.open,update:t.update}},[t.src?[t.ratio?e("k-image-frame",{attrs:{ratio:t.ratio,cover:t.crop,alt:t.content.alt,src:t.src}}):e("img",{staticClass:"k-block-type-image-auto",attrs:{alt:t.content.alt,src:t.src}})]:t._e()],2)}),[],!1,null,null,null,null).exports,oi=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));const li=at({},(function(){return this._self._c,this._m(0)}),[function(){var t=this._self._c;return t("div",[t("hr")])}],!1,null,null,null,null).exports,ri=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"}));const ai=at({computed:{isSplitable(){return this.content.text.length>0&&!1===this.input().isCursorAtStart&&!1===this.input().isCursorAtEnd},keys(){return{"Mod-Enter":this.split}},marks(){return this.field("text",{}).marks}},methods:{focus(){this.$refs.input.focus()},input(){return this.$refs.input.$refs.input.$refs.input},merge(t){this.update({text:t.map((t=>t.content.text)).join("").replaceAll("

      ","")})},split(){var t,e;const i=null==(e=(t=this.input()).getSplitContent)?void 0:e.call(t);i&&this.$emit("split",[{text:i[0].replace(/(
    • <\/p><\/li><\/ul>)$/,"

    ")},{text:i[1].replace(/^(
    • <\/p><\/li>)/,"

        ")}])}}},(function(){var t=this;return(0,t._self._c)("k-input",{ref:"input",staticClass:"k-block-type-list-input",attrs:{keys:t.keys,marks:t.marks,value:t.content.text,type:"list"},on:{input:function(e){return t.update({text:e})}}})}),[],!1,null,null,null,null).exports,ui=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"}));const ci=at({computed:{placeholder(){return this.field("text",{}).placeholder}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this;return(0,t._self._c)("k-input",{ref:"input",staticClass:"k-block-type-markdown-input",attrs:{buttons:!1,placeholder:t.placeholder,spellcheck:!1,value:t.content.text,font:"monospace",type:"textarea"},on:{input:function(e){return t.update({text:e})}}})}),[],!1,null,null,null,null).exports,di=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"}));const pi=at({computed:{citationField(){return this.field("citation",{})},textField(){return this.field("text",{})}},methods:{focus(){this.$refs.text.focus()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-type-quote-editor"},[e("k-writer",{ref:"text",staticClass:"k-block-type-quote-text",attrs:{inline:t.textField.inline??!1,marks:t.textField.marks,placeholder:t.textField.placeholder,value:t.content.text},on:{input:function(e){return t.update({text:e})}}}),e("k-writer",{ref:"citation",staticClass:"k-block-type-quote-citation",attrs:{inline:t.citationField.inline??!0,marks:t.citationField.marks,placeholder:t.citationField.placeholder,value:t.content.citation},on:{input:function(e){return t.update({citation:e})}}})],1)}),[],!1,null,null,null,null).exports,hi=Object.freeze(Object.defineProperty({__proto__:null,default:pi},Symbol.toStringTag,{value:"Module"}));const mi=at({inheritAttrs:!1,computed:{columns(){return this.table.columns??this.fields},fields(){return this.table.fields??{}},rows(){return this.content.rows??[]},table(){let t=null;for(const e of Object.values(this.fieldset.tabs??{}))e.fields.rows&&(t=e.fields.rows);return t??{}}}},(function(){var t=this;return(0,t._self._c)("k-table",{staticClass:"k-block-type-table-preview",attrs:{columns:t.columns,empty:t.$t("field.structure.empty"),rows:t.rows},nativeOn:{dblclick:function(e){return t.open.apply(null,arguments)}}})}),[],!1,null,null,null,null).exports,fi=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"}));const gi=at({computed:{component(){const t="k-"+this.textField.type+"-input";return this.$helper.isComponent(t)?t:"k-writer-input"},isSplitable(){return this.content.text.length>0&&!1===this.input().isCursorAtStart&&!1===this.input().isCursorAtEnd},keys(){const t={"Mod-Enter":this.split};return!0===this.textField.inline&&(t.Enter=this.split),t},textField(){return this.field("text",{})}},methods:{focus(){this.$refs.input.focus()},input(){return this.$refs.input.$refs.input},merge(t){this.update({text:t.map((t=>t.content.text)).join(this.textField.inline?" ":"")})},split(){var t,e;const i=null==(e=(t=this.input()).getSplitContent)?void 0:e.call(t);i&&("writer"===this.textField.type&&(i[0]=i[0].replace(/(

        <\/p>)$/,""),i[1]=i[1].replace(/^(

        <\/p>)/,"")),this.$emit("split",i.map((t=>({text:t})))))}}},(function(){var t=this;return(0,t._self._c)(t.component,t._b({ref:"input",tag:"component",staticClass:"k-block-type-text-input",attrs:{keys:t.keys,value:t.content.text},on:{input:function(e){return t.update({text:e})}}},"component",t.textField,!1))}),[],!1,null,null,null,null).exports,ki=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"}));const bi=at({computed:{captionMarks(){return this.field("caption",{marks:!0}).marks},video(){return this.$helper.embed.video(this.content.url??"",!0)}}},(function(){var t=this,e=t._self._c;return e("k-block-figure",{attrs:{caption:t.content.caption,"caption-marks":t.captionMarks,"empty-text":t.$t("field.blocks.video.placeholder")+" …","is-empty":!t.video,"empty-icon":"video"},on:{open:t.open,update:t.update}},[e("k-frame",{attrs:{ratio:"16/9"}},[t.video?e("iframe",{attrs:{src:t.video,referrerpolicy:"strict-origin-when-cross-origin"}}):t._e()])],1)}),[],!1,null,null,null,null).exports,vi=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"}));const yi=at({inheritAttrs:!1,props:{attrs:{default:()=>({}),type:[Array,Object]},content:{default:()=>({}),type:[Array,Object]},endpoints:{default:()=>({}),type:[Array,Object]},fieldset:{default:()=>({}),type:Object},id:String,isBatched:Boolean,isFull:Boolean,isHidden:Boolean,isLastSelected:Boolean,isMergable:Boolean,isSelected:Boolean,name:String,next:Object,prev:Object,type:String},emits:["append","chooseToAppend","chooseToConvert","chooseToPrepend","close","copy","duplicate","focus","hide","merge","open","paste","prepend","remove","selectDown","selectUp","show","sortDown","sortUp","split","submit","update"],computed:{className(){let t=["k-block-type-"+this.type];return this.fieldset.preview!==this.type&&t.push("k-block-type-"+this.fieldset.preview),!1===this.wysiwyg&&t.push("k-block-type-default"),t},containerType(){const t=this.fieldset.preview;return!1!==t&&(t&&this.$helper.isComponent("k-block-type-"+t)?t:!!this.$helper.isComponent("k-block-type-"+this.type)&&this.type)},customComponent(){return this.wysiwyg?this.wysiwygComponent:"k-block-type-default"},isEditable(){return!1!==this.fieldset.editable},listeners(){return{append:t=>this.$emit("append",t),chooseToAppend:t=>this.$emit("chooseToAppend",t),chooseToConvert:t=>this.$emit("chooseToConvert",t),chooseToPrepend:t=>this.$emit("chooseToPrepend",t),close:()=>this.$emit("close"),copy:()=>this.$emit("copy"),duplicate:()=>this.$emit("duplicate"),focus:()=>this.$emit("focus"),hide:()=>this.$emit("hide"),merge:()=>this.$emit("merge"),open:t=>this.open(t),paste:()=>this.$emit("paste"),prepend:t=>this.$emit("prepend",t),remove:()=>this.remove(),removeSelected:()=>this.$emit("removeSelected"),show:()=>this.$emit("show"),sortDown:()=>this.$emit("sortDown"),sortUp:()=>this.$emit("sortUp"),split:t=>this.$emit("split",t),update:t=>this.$emit("update",t)}},tabs(){const t=this.fieldset.tabs??{};for(const[e,i]of Object.entries(t))for(const[n]of Object.entries(i.fields??{}))t[e].fields[n].section=this.name,t[e].fields[n].endpoints={field:this.endpoints.field+"/fieldsets/"+this.type+"/fields/"+n,section:this.endpoints.section,model:this.endpoints.model};return t},wysiwyg(){return!1!==this.wysiwygComponent},wysiwygComponent(){return!!this.containerType&&"k-block-type-"+this.containerType}},methods:{backspace(t){if(t.target.matches("[contenteditable], input, textarea"))return!1;t.preventDefault(),this.remove()},close(){this.$panel.drawer.close(this.id)},focus(){var t,e;"function"==typeof(null==(t=this.$refs.editor)?void 0:t.focus)?this.$refs.editor.focus():null==(e=this.$refs.container)||e.focus()},goTo(t){var e;t&&(null==(e=t.$refs.container)||e.focus(),t.open(null,!0))},isSplitable(){var t;return!0!==this.isFull&&(!!this.$refs.editor&&((this.$refs.editor.isSplitable??!0)&&"function"==typeof(null==(t=this.$refs.editor)?void 0:t.split)))},onClose(){this.$emit("close"),this.focus()},onFocusIn(t){var e,i;(null==(i=null==(e=this.$refs.options)?void 0:e.$el)?void 0:i.contains(t.target))||this.$emit("focus",t)},onInput(t){this.$emit("update",t)},open(t,e=!1){this.isEditable&&!this.isBatched&&(this.$panel.drawer.open({component:"k-block-drawer",id:this.id,tab:t,on:{close:this.onClose,input:this.onInput,next:()=>this.goTo(this.next),prev:()=>this.goTo(this.prev),remove:this.remove,show:this.show,submit:this.submit},props:{hidden:this.isHidden,icon:this.fieldset.icon??"box",next:this.next,prev:this.prev,tabs:this.tabs,title:this.fieldset.name,value:this.content},replace:e}),this.$emit("open"))},remove(){if(this.isBatched)return this.$emit("removeSelected");this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm")},on:{submit:()=>{this.$panel.dialog.close(),this.close(),this.$emit("remove",this.id)}}})},show(){this.$emit("show")},submit(){this.close(),this.$emit("submit")}}},(function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"k-block-container",class:["k-block-container-fieldset-"+t.type,t.containerType?"k-block-container-type-"+t.containerType:""],attrs:{"data-batched":t.isBatched,"data-disabled":t.fieldset.disabled,"data-hidden":t.isHidden,"data-id":t.id,"data-last-selected":t.isLastSelected,"data-selected":t.isSelected,"data-translate":t.fieldset.translate,tabindex:"0"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"j",void 0,e.key,void 0)?null:e.ctrlKey?(e.preventDefault(),e.stopPropagation(),t.$emit("merge")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.ctrlKey&&e.altKey?(e.preventDefault(),e.stopPropagation(),t.$emit("selectDown")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.ctrlKey&&e.altKey?(e.preventDefault(),e.stopPropagation(),t.$emit("selectUp")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.ctrlKey&&e.shiftKey?(e.preventDefault(),e.stopPropagation(),t.$emit("sortDown")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.ctrlKey&&e.shiftKey?(e.preventDefault(),e.stopPropagation(),t.$emit("sortUp")):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:e.ctrlKey?(e.stopPropagation(),t.backspace.apply(null,arguments)):null}],focus:function(e){return e.stopPropagation(),t.$emit("focus")},focusin:function(e){return e.stopPropagation(),t.onFocusIn.apply(null,arguments)}}},[e("div",{staticClass:"k-block",class:t.className},[e(t.customComponent,t._g(t._b({ref:"editor",tag:"component",attrs:{tabs:t.tabs}},"component",t.$props,!1),t.listeners))],1),e("k-block-options",t._g({ref:"options",attrs:{"is-batched":t.isBatched,"is-editable":t.isEditable,"is-full":t.isFull,"is-hidden":t.isHidden,"is-mergable":t.isMergable,"is-splitable":t.isSplitable()}},{...t.listeners,split:()=>t.$refs.editor.split(),open:()=>{"function"==typeof t.$refs.editor.open?t.$refs.editor.open():t.open()}}))],1)}),[],!1,null,null,null,null).exports;const $i=at({inheritAttrs:!1,props:{autofocus:Boolean,disabled:Boolean,empty:String,endpoints:Object,fieldsets:Object,fieldsetGroups:Object,group:String,max:{type:Number,default:null},value:{type:Array,default:()=>[]}},data(){return{blocks:this.value??[],isEditing:!1,isMultiSelectKey:!1,selected:[]}},computed:{draggableOptions(){return{id:this._uid,handle:".k-sort-handle",list:this.blocks,move:this.move,delay:10,data:{fieldsets:this.fieldsets,isFull:this.isFull},options:{group:this.group}}},hasFieldsets(){return this.$helper.object.length(this.fieldsets)>0},isEmpty(){return 0===this.blocks.length},isFull(){return null!==this.max&&this.blocks.length>=this.max},isMergable(){if(this.selected.length<2)return!1;const t=this.selected.map((t=>this.find(t)));return!(new Set(t.map((t=>t.type))).size>1)&&"function"==typeof this.ref(t[0]).$refs.editor.merge}},watch:{value(){this.blocks=this.value}},created(){this.$events.on("blur",this.onBlur),this.$events.on("click",this.onClickGlobal),this.$events.on("copy",this.onCopy),this.$events.on("keydown",this.onKey),this.$events.on("keyup",this.onKey),this.$events.on("paste",this.onPaste)},destroyed(){this.$events.off("blur",this.onBlur),this.$events.off("click",this.onClickGlobal),this.$events.off("copy",this.onCopy),this.$events.off("keydown",this.onKey),this.$events.off("keyup",this.onKey),this.$events.off("paste",this.onPaste)},mounted(){!0===this.$props.autofocus&&setTimeout(this.focus,100)},methods:{async add(t="text",e){const i=await this.$api.get(this.endpoints.field+"/fieldsets/"+t);this.blocks.splice(e,0,i),this.save(),await this.$nextTick(),this.focusOrOpen(i)},choose(t){if(1===this.$helper.object.length(this.fieldsets))return this.add(Object.values(this.fieldsets)[0].type,t);this.$panel.dialog.open({component:"k-block-selector",props:{fieldsetGroups:this.fieldsetGroups,fieldsets:this.fieldsets},on:{submit:e=>{this.add(e,t),this.$panel.dialog.close()},paste:e=>{this.paste(e,t)}}})},chooseToConvert(t){this.$panel.dialog.open({component:"k-block-selector",props:{disabledFieldsets:[t.type],fieldsetGroups:this.fieldsetGroups,fieldsets:this.fieldsets,headline:this.$t("field.blocks.changeType")},on:{submit:e=>{this.convert(e,t),this.$panel.dialog.close()},paste:this.paste}})},copy(t){if(0===this.blocks.length)return!1;if(0===this.selected.length)return!1;let e=[];for(const i of this.blocks)this.selected.includes(i.id)&&e.push(i);if(0===e.length)return!1;this.$helper.clipboard.write(e,t),this.selected=e.map((t=>t.id)),this.$panel.notification.success({message:this.$t("copy.success",{count:e.length}),icon:"template"})},copyAll(){this.selectAll(),this.copy(),this.deselectAll()},async convert(t,e){var i;const n=this.findIndex(e.id);if(-1===n)return!1;const s=t=>{let e={};for(const i of Object.values((null==t?void 0:t.tabs)??{}))e={...e,...i.fields};return e},o=this.blocks[n],l=await this.$api.get(this.endpoints.field+"/fieldsets/"+t),r=this.fieldsets[o.type],a=this.fieldsets[t];if(!a)return!1;let u=l.content;const c=s(a),d=s(r);for(const[p,h]of Object.entries(c)){const t=d[p];(null==t?void 0:t.type)===h.type&&(null==(i=null==o?void 0:o.content)?void 0:i[p])&&(u[p]=o.content[p])}this.blocks[n]={...l,id:o.id,content:u},this.save()},deselect(t){const e=this.selected.findIndex((e=>e===t.id));-1!==e&&this.selected.splice(e,1)},deselectAll(){this.selected=[]},async duplicate(t,e){const i={...this.$helper.clone(t),id:this.$helper.uuid()};this.blocks.splice(e+1,0,i),this.save()},fieldset(t){return this.fieldsets[t.type]??{icon:"box",name:t.type,tabs:{content:{fields:{}}},type:t.type}},find(t){return this.blocks.find((e=>e.id===t))},findIndex(t){return this.blocks.findIndex((e=>e.id===t))},focus(t){const e=this.ref(t);this.selected=[(null==t?void 0:t.id)??this.blocks[0]],null==e||e.focus(),null==e||e.$el.scrollIntoView({block:"nearest"})},focusOrOpen(t){this.fieldsets[t.type].wysiwyg?this.focus(t):this.open(t)},hide(t){Vue.set(t,"isHidden",!0),this.save()},isInputEvent(){const t=document.querySelector(":focus");return null==t?void 0:t.matches("input, textarea, [contenteditable], .k-writer")},isLastSelected(t){const[e]=this.selected.slice(-1);return e&&t.id===e},isOnlyInstance:()=>1===document.querySelectorAll(".k-blocks").length,isSelected(t){return this.selected.includes(t.id)},async merge(){if(this.isMergable){const t=this.selected.map((t=>this.find(t)));this.ref(t[0]).$refs.editor.merge(t);for(const e of t.slice(1))this.remove(e);await this.$nextTick(),this.focus(t[0])}},move(t){if(t.from!==t.to){const e=t.draggedContext.element,i=t.relatedContext.component.componentData||t.relatedContext.component.$parent.componentData;if(!1===Object.keys(i.fieldsets).includes(e.type))return!1;if(!0===i.isFull)return!1}return!0},onBlur(){0===this.selected.length&&(this.isMultiSelectKey=!1)},onClickBlock(t,e){e&&this.isMultiSelectKey&&this.onKey(e),this.isMultiSelectKey&&(e.preventDefault(),e.stopPropagation(),this.isSelected(t)?this.deselect(t):this.select(t))},onClickGlobal(t){var e;if("function"==typeof t.target.closest&&(t.target.closest(".k-dialog")||t.target.closest(".k-drawer")))return;const i=document.querySelector(".k-overlay:last-of-type");!1!==this.$el.contains(t.target)||!1!==(null==i?void 0:i.contains(t.target))?i&&!1===(null==(e=this.$el.closest(".k-layout-column"))?void 0:e.contains(t.target))&&this.deselectAll():this.deselectAll()},onCopy(t){return!1!==this.$el.contains(t.target)&&!0!==this.isEditing&&!0!==this.$panel.dialog.isOpen&&!0!==this.isInputEvent(t)&&this.copy(t)},onFocus(t){!1===this.isMultiSelectKey&&(this.selected=[t.id])},async onKey(t){if(this.isMultiSelectKey=t.metaKey||t.ctrlKey||t.altKey,"Escape"===t.code&&this.selected.length>1){const t=this.find(this.selected[0]);await this.$nextTick(),this.focus(t)}},onPaste(t){return!0!==this.isInputEvent(t)&&(!0!==this.isEditing&&!0!==this.$panel.dialog.isOpen&&((0!==this.selected.length||!1!==this.$el.contains(t.target))&&this.paste(t)))},open(t){var e;null==(e=this.$refs["block-"+t.id])||e[0].open()},async paste(t,e){const i=this.$helper.clipboard.read(t);let n=await this.$api.post(this.endpoints.field+"/paste",{html:i});if(void 0===e){let t=this.selected[this.selected.length-1];-1===(e=this.findIndex(t))&&(e=this.blocks.length),e++}if(this.max){const t=this.max-this.blocks.length;n=n.slice(0,t)}this.blocks.splice(e,0,...n),this.save(),this.$panel.notification.success({message:this.$t("paste.success",{count:n.length}),icon:"download"})},pasteboard(){this.$panel.dialog.open({component:"k-block-pasteboard",on:{paste:this.paste}})},prevNext(t){var e;if(this.blocks[t])return null==(e=this.$refs["block-"+this.blocks[t].id])?void 0:e[0]},ref(t){var e,i;return null==(i=this.$refs["block-"+((null==t?void 0:t.id)??(null==(e=this.blocks[0])?void 0:e.id))])?void 0:i[0]},remove(t){const e=this.findIndex(t.id);-1!==e&&(this.deselect(t),this.$delete(this.blocks,e),this.save())},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm.all"),submitButton:this.$t("delete.all")},on:{submit:()=>{this.selected=[],this.blocks=[],this.save(),this.$panel.dialog.close()}}})},removeSelected(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.blocks.delete.confirm.selected")},on:{submit:()=>{for(const t of this.selected){const e=this.findIndex(t);-1!==e&&this.$delete(this.blocks,e)}this.deselectAll(),this.save(),this.$panel.dialog.close()}}})},save(){this.$emit("input",this.blocks)},select(t){!1===this.isSelected(t)&&(this.selected.push(t.id),this.selected.sort(((t,e)=>this.findIndex(t)-this.findIndex(e))))},selectDown(){const t=this.selected[this.selected.length-1],e=this.findIndex(t)+1;e=0&&this.select(this.blocks[e])},selectAll(){this.selected=Object.values(this.blocks).map((t=>t.id))},show(t){Vue.set(t,"isHidden",!1),this.save()},async sort(t,e,i){if(i<0)return;let n=this.$helper.clone(this.blocks);n.splice(e,1),n.splice(i,0,t),this.blocks=n,this.save(),await this.$nextTick(),this.focus(t)},async split(t,e,i){const n=this.$helper.clone(t);n.content={...n.content,...i[0]};const s=await this.$api.get(this.endpoints.field+"/fieldsets/"+t.type);s.content={...s.content,...n.content,...i[1]},this.blocks.splice(e,1,n,s),this.save(),await this.$nextTick(),this.focus(s)},update(t,e){const i=this.findIndex(t.id);if(-1!==i)for(const n in e)Vue.set(this.blocks[i].content,n,e[n]);this.save()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-blocks",attrs:{"data-disabled":t.disabled,"data-empty":0===t.blocks.length}},[t.hasFieldsets?[t.blocks.length?e("k-draggable",t._b({staticClass:"k-blocks-list",attrs:{"data-multi-select-key":t.isMultiSelectKey},on:{sort:t.save}},"k-draggable",t.draggableOptions,!1),t._l(t.blocks,(function(i,n){return e("k-block",t._b({key:i.id,ref:"block-"+i.id,refInFor:!0,attrs:{endpoints:t.endpoints,fieldset:t.fieldset(i),"is-batched":t.isSelected(i)&&t.selected.length>1,"is-last-selected":t.isLastSelected(i),"is-full":t.isFull,"is-hidden":!0===i.isHidden,"is-mergable":t.isMergable,"is-selected":t.isSelected(i),next:t.prevNext(n+1),prev:t.prevNext(n-1)},on:{append:function(e){return t.add(e,n+1)},chooseToAppend:function(e){return t.choose(n+1)},chooseToConvert:function(e){return t.chooseToConvert(i)},chooseToPrepend:function(e){return t.choose(n)},close:function(e){t.isEditing=!1},copy:function(e){return t.copy()},duplicate:function(e){return t.duplicate(i,n)},focus:function(e){return t.onFocus(i)},hide:function(e){return t.hide(i)},merge:function(e){return t.merge()},open:function(e){t.isEditing=!0},paste:function(e){return t.pasteboard()},prepend:function(e){return t.add(e,n)},remove:function(e){return t.remove(i)},removeSelected:t.removeSelected,show:function(e){return t.show(i)},selectDown:t.selectDown,selectUp:t.selectUp,sortDown:function(e){return t.sort(i,n,n+1)},sortUp:function(e){return t.sort(i,n,n-1)},split:function(e){return t.split(i,n,e)},update:function(e){return t.update(i,e)}},nativeOn:{click:function(e){return t.onClickBlock(i,e)}}},"k-block",i,!1))})),1):e("k-empty",{staticClass:"k-blocks-empty",attrs:{icon:"box"},on:{click:function(e){return t.choose(t.blocks.length)}}},[t._v(" "+t._s(t.empty??t.$t("field.blocks.empty"))+" ")])]:e("k-empty",{attrs:{icon:"box"}},[t._v(" "+t._s(t.$t("field.blocks.fieldsets.empty"))+" ")])],2)}),[],!1,null,null,null,null).exports;const wi=at({inheritAttrs:!1,props:{caption:String,captionMarks:{default:!0,type:[Boolean,Array]},isEmpty:Boolean,emptyIcon:String,emptyText:String}},(function(){var t=this,e=t._self._c;return e("figure",{staticClass:"k-block-figure"},[t.isEmpty?e("k-button",{staticClass:"k-block-figure-empty",attrs:{icon:t.emptyIcon,text:t.emptyText},on:{click:function(e){return t.$emit("open")}}}):e("span",{staticClass:"k-block-figure-container",on:{dblclick:function(e){return t.$emit("open")}}},[t._t("default")],2),t.caption?e("figcaption",[e("k-writer",{attrs:{inline:!0,marks:t.captionMarks,value:t.caption},on:{input:function(e){return t.$emit("update",{caption:e})}}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const xi=at({props:{isBatched:Boolean,isEditable:Boolean,isFull:Boolean,isHidden:Boolean,isMergable:Boolean,isSplitable:Boolean},computed:{buttons(){return this.isBatched?[{icon:"template",title:this.$t("copy"),click:()=>this.$emit("copy")},{when:this.isMergable,icon:"merge",title:this.$t("merge"),click:()=>this.$emit("merge")},{icon:"trash",title:this.$t("remove"),click:()=>this.$emit("removeSelected")}]:[{when:this.isEditable,icon:"edit",title:this.$t("edit"),click:()=>this.$emit("open")},{icon:"add",title:this.$t("insert.after"),disabled:this.isFull,click:()=>this.$emit("chooseToAppend")},{icon:"trash",title:this.$t("delete"),click:()=>this.$emit("remove")},{icon:"sort",title:this.$t("sort.drag"),class:"k-sort-handle",key:t=>this.sort(t)},{icon:"dots",title:this.$t("more"),dropdown:[{icon:"angle-up",label:this.$t("insert.before"),disabled:this.isFull,click:()=>this.$emit("chooseToPrepend")},{icon:"angle-down",label:this.$t("insert.after"),disabled:this.isFull,click:()=>this.$emit("chooseToAppend")},"-",{when:this.isEditable,icon:"edit",label:this.$t("edit"),click:()=>this.$emit("open")},{icon:"refresh",label:this.$t("field.blocks.changeType"),click:()=>this.$emit("chooseToConvert")},{when:this.isSplitable,icon:"split",label:this.$t("split"),click:()=>this.$emit("split")},"-",{icon:"template",label:this.$t("copy"),click:()=>this.$emit("copy")},{icon:"download",label:this.$t("paste.after"),disabled:this.isFull,click:()=>this.$emit("paste")},"-",{icon:this.isHidden?"preview":"hidden",label:this.isHidden?this.$t("show"):this.$t("hide"),click:()=>this.$emit(this.isHidden?"show":"hide")},{icon:"copy",label:this.$t("duplicate"),click:()=>this.$emit("duplicate")},"-",{icon:"trash",label:this.$t("delete"),click:()=>this.$emit("remove")}]}]}},methods:{open(){this.$refs.options.open()},sort(t){switch(t.preventDefault(),t.key){case"ArrowUp":this.$emit("sortUp");break;case"ArrowDown":this.$emit("sortDown")}}}},(function(){return(0,this._self._c)("k-toolbar",{staticClass:"k-block-options",attrs:{buttons:this.buttons},nativeOn:{mousedown:function(t){t.preventDefault()}}})}),[],!1,null,null,null,null).exports;const _i=at({inheritAttrs:!1,computed:{shortcut(){return this.$helper.keyboard.metaKey()+"+v"}},methods:{paste(t){this.$emit("close"),this.$emit("paste",t)}}},(function(){var t=this,e=t._self._c;return e("k-dialog",{ref:"dialog",staticClass:"k-block-importer",attrs:{"cancel-button":!1,"submit-button":!1,visible:!0,size:"large"},on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit")}}},[e("label",{attrs:{for:"pasteboard"},domProps:{innerHTML:t._s(t.$t("field.blocks.fieldsets.paste",{shortcut:t.shortcut}))}}),e("textarea",{attrs:{id:"pasteboard"},on:{paste:function(e){return e.preventDefault(),t.paste.apply(null,arguments)}}})])}),[],!1,null,null,null,null).exports;const Si=at({mixins:[Et],inheritAttrs:!1,props:{cancelButton:{default:!1},disabledFieldsets:{default:()=>[],type:Array},fieldsets:{type:Object},fieldsetGroups:{type:Object},headline:{type:String},size:{default:"medium"},submitButton:{default:!1},value:{default:null,type:String}},data:()=>({selected:null}),computed:{groups(){const t={};let e=0;const i=this.fieldsetGroups??{blocks:{label:this.$t("field.blocks.fieldsets.label"),sets:Object.keys(this.fieldsets)}};for(const n in i){let s=i[n];if(s.open=!1!==s.open,s.fieldsets=s.sets.filter((t=>this.fieldsets[t])).map((t=>(e++,{...this.fieldsets[t],index:e}))),0===s.fieldsets.length)return;t[n]=s}return t},shortcut(){return this.$helper.keyboard.metaKey()+"+v"}},created(){this.$events.on("paste",this.paste)},destroyed(){this.$events.off("paste",this.paste)},methods:{paste(t){this.$emit("paste",t),this.close()}}},(function(){var t=this,e=t._self._c;return e("k-dialog",t._b({staticClass:"k-block-selector",on:{cancel:function(e){return t.$emit("cancel")},submit:function(e){return t.$emit("submit",t.value)}}},"k-dialog",t.$props,!1),[t.headline?e("k-headline",[t._v(" "+t._s(t.headline)+" ")]):t._e(),t._l(t.groups,(function(i,n){return e("details",{key:n,attrs:{open:i.open}},[e("summary",[t._v(t._s(i.label))]),e("k-navigate",{staticClass:"k-block-types"},t._l(i.fieldsets,(function(i){return e("k-button",{key:i.name,attrs:{disabled:t.disabledFieldsets.includes(i.type),icon:i.icon??"box",text:i.name,size:"lg"},on:{click:function(e){return t.$emit("submit",i.type)}},nativeOn:{focus:function(e){return t.$emit("input",i.type)}}})})),1)],1)})),e("p",{staticClass:"k-clipboard-hint",domProps:{innerHTML:t._s(t.$t("field.blocks.fieldsets.paste",{shortcut:t.shortcut}))}})],2)}),[],!1,null,null,null,null).exports;const Ci=at({inheritAttrs:!1,props:{fieldset:{default:()=>({}),type:Object},content:{default:()=>({}),type:Object}},computed:{icon(){return this.fieldset.icon??"box"},label(){if(!this.fieldset.label||0===this.fieldset.label.length)return!1;if(this.fieldset.label===this.fieldset.name)return!1;let t=this.$helper.string.template(this.fieldset.label,this.content);return"…"!==t&&(t=this.$helper.string.stripHTML(t),this.$helper.string.unescapeHTML(t))},name(){return this.fieldset.name}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-block-title"},[e("k-icon",{staticClass:"k-block-icon",attrs:{type:t.icon}}),t.name?e("span",{staticClass:"k-block-name"},[t._v(" "+t._s(t.name)+" ")]):t._e(),t.label?e("span",{staticClass:"k-block-label"},[t._v(" "+t._s(t.label)+" ")]):t._e()],1)}),[],!1,null,null,null,null).exports;const Oi=at({inheritAttrs:!1,props:{content:[Object,Array],fieldset:Object,id:String},methods:{field(t,e=null){let i=null;for(const n of Object.values(this.fieldset.tabs??{}))n.fields[t]&&(i=n.fields[t]);return i??e},open(){this.$emit("open")},update(t){this.$emit("update",{...this.content,...t})}}},null,null,!1,null,null,null,null).exports,Ai={install(t){t.component("k-block",yi),t.component("k-blocks",$i),t.component("k-block-figure",wi),t.component("k-block-options",xi),t.component("k-block-pasteboard",_i),t.component("k-block-selector",Si),t.component("k-block-title",Ci),t.component("k-block-type",Oi);const e=Object.assign({"./Types/Code.vue":Je,"./Types/Default.vue":Xe,"./Types/Fields.vue":Qe,"./Types/Gallery.vue":ei,"./Types/Heading.vue":ni,"./Types/Image.vue":oi,"./Types/Line.vue":ri,"./Types/List.vue":ui,"./Types/Markdown.vue":di,"./Types/Quote.vue":hi,"./Types/Table.vue":fi,"./Types/Text.vue":ki,"./Types/Video.vue":vi});for(const i in e){const n=i.match(/\/([a-zA-Z]*)\.vue/)[1].toLowerCase();let s=e[i].default;s.extends=Oi,t.component("k-block-type-"+n,s)}}};const Mi=at({mixins:[Pe],inheritAttrs:!1,props:{autofocus:Boolean,empty:String,fieldsets:Object,fieldsetGroups:Object,group:String,max:{type:Number,default:null},value:{type:Array,default:()=>[]}},data:()=>({opened:[]}),computed:{hasFieldsets(){return this.$helper.object.length(this.fieldsets)>0},isEmpty(){return 0===this.value.length},isFull(){return null!==this.max&&this.value.length>=this.max},options(){return[{click:()=>this.$refs.blocks.copyAll(),disabled:this.isEmpty,icon:"template",text:this.$t("copy.all")},{click:()=>this.$refs.blocks.pasteboard(),disabled:this.isFull,icon:"download",text:this.$t("paste")},"-",{click:()=>this.$refs.blocks.removeAll(),disabled:this.isEmpty,icon:"trash",text:this.$t("delete.all")}]}},methods:{focus(){this.$refs.blocks.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-blocks-field",scopedSlots:t._u([!t.disabled&&t.hasFieldsets?{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,disabled:t.isFull,responsive:!0,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.blocks.choose(t.value.length)}}}),e("k-button",{attrs:{icon:"dots",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{options:t.options,"align-x":"end"}})],1)]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[e("k-blocks",t._g({ref:"blocks",attrs:{autofocus:t.autofocus,compact:!1,disabled:t.disabled,empty:t.empty,endpoints:t.endpoints,fieldsets:t.fieldsets,"fieldset-groups":t.fieldsetGroups,group:t.group,max:t.max,value:t.value},on:{close:function(e){t.opened=e},open:function(e){t.opened=e}}},t.$listeners)),t.disabled||t.isEmpty||t.isFull||!t.hasFieldsets?t._e():e("footer",{staticClass:"k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{title:t.$t("add"),icon:"add",size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.blocks.choose(t.value.length)}}})],1)],1)}),[],!1,null,null,null,null).exports,ji={mixins:[H,K,G,it,lt]},Ii={mixins:[ji],inheritAttrs:!1,emits:["input"],methods:{focus(){this.$el.focus()}}},Ti={mixins:[ji,nt],props:{columns:{default:1,type:Number},max:Number,min:Number,theme:String,value:{type:Array,default:()=>[]}}};const Ei=at({mixins:[Ii,Ti],data:()=>({selected:[]}),computed:{choices(){return this.options.map(((t,e)=>({autofocus:this.autofocus&&0===e,checked:this.selected.includes(t.value),disabled:this.disabled||t.disabled,info:t.info,label:t.text,name:this.name??this.id,type:"checkbox",value:t.value})))}},watch:{value:{handler(t){this.selected=Array.isArray(t)?t:[],this.validate()},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},input(t,e){if(!0===e)this.selected.push(t);else{const e=this.selected.indexOf(t);-1!==e&&this.selected.splice(e,1)}this.$emit("input",this.selected)},select(){this.focus()},validate(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{selected:{required:!this.required||t.required,min:!this.min||t.minLength(this.min),max:!this.max||t.maxLength(this.max)}}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-checkboxes-input k-grid",style:"--columns:"+t.columns,attrs:{"data-variant":"choices"}},t._l(t.choices,(function(i,n){return e("li",{key:n},[e("k-choice-input",t._b({on:{input:function(e){return t.input(i.value,e)}}},"k-choice-input",i,!1))],1)})),0)}),[],!1,null,null,null,null).exports,Li={props:{counter:{type:Boolean,default:!0}},computed:{counterOptions(){const t=this.counterValue??this.value;if(null===t||this.disabled||!1===this.counter)return!1;let e=0;return t&&(e=Array.isArray(t)?t.length:String(t).length),{count:e,min:this.min??this.minlength,max:this.max??this.maxlength}}}};const Di=at({mixins:[Pe,Fe,Ti,Li],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-checkboxes-field",attrs:{counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-checkboxes-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field"}},"k-checkboxes-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Bi={mixins:[ji,U,W,tt,et,st,ot,rt],props:{ariaLabel:String,type:{default:"text",type:String},value:{type:String}}};const qi=at({mixins:[Ii,Bi]},(function(){var t=this;return(0,t._self._c)("input",t._b({directives:[{name:"direction",rawName:"v-direction"}],staticClass:"k-string-input",attrs:{"aria-label":t.ariaLabel,"data-font":t.font},on:{input:function(e){return t.$emit("input",e.target.value)}}},"input",{autocomplete:t.autocomplete,autofocus:t.autofocus,disabled:t.disabled,id:t.id,maxlength:t.maxlength,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,type:t.type,value:t.value},!1))}),[],!1,null,null,null,null).exports,Pi={mixins:[Bi],props:{alpha:{type:Boolean,default:!0},autocomplete:{default:"off",type:String},format:{type:String,default:"hex",validator:t=>["hex","rgb","hsl"].includes(t)},spellcheck:{default:!1,type:Boolean}}};const Ni=at({mixins:[qi,Pi],watch:{value(){this.validate()}},mounted(){this.validate()},methods:{convert(t){if(!t)return t;const e=document.createElement("div");e.style.color=t,document.body.append(e),t=window.getComputedStyle(e).color,e.remove();try{return this.$library.colors.toString(t,this.format,this.alpha)}catch(i){return t}},convertAndEmit(t){this.emit(this.convert(t))},emit(t){this.$emit("input",t)},onBlur(){this.convertAndEmit(this.value)},onPaste(t){t instanceof ClipboardEvent&&(t=this.$helper.clipboard.read(t,!0)),this.convertAndEmit(t)},async onSave(){var t;this.convertAndEmit(this.value),await this.$nextTick(),null==(t=this.$el.form)||t.requestSubmit()},validate(){let t="";null===this.$library.colors.parse(this.value)&&(t=this.$t("error.validation.color",{format:this.format})),this.$el.setCustomValidity(t)}}},(function(){var t=this;return(0,t._self._c)("k-string-input",t._b({staticClass:"k-colorname-input",attrs:{type:"text"},on:{input:function(e){return t.$emit("input",e)}},nativeOn:{blur:function(e){return t.onBlur.apply(null,arguments)},paste:function(e){return t.onPaste.apply(null,arguments)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.metaKey?(e.stopPropagation(),e.preventDefault(),t.onSave.apply(null,arguments)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSave.apply(null,arguments)}]}},"k-string-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const zi=at({mixins:[Pe,Fe,Pi],inheritAttrs:!1,props:{icon:{type:String,default:"pipette"},mode:{type:String,default:"picker",validator:t=>["picker","input","options"].includes(t)},options:{type:Array,default:()=>[]}},data:()=>({isInvalid:!1}),computed:{convertedOptions(){return this.options.map((t=>({...t,value:this.convert(t.value)})))},currentOption(){return this.convertedOptions.find((t=>t.value===this.value))}},methods:{convert(t){return this.$library.colors.toString(t,this.format,this.alpha)}}},(function(){var t,e=this,i=e._self._c;return i("k-field",e._b({staticClass:"k-color-field",attrs:{input:e._uid}},"k-field",e.$props,!1),["options"===e.mode?i("k-coloroptions-input",e._b({staticClass:"k-color-field-options",attrs:{options:e.convertedOptions},on:{input:function(t){return e.$emit("input",t)}}},"k-coloroptions-input",e.$props,!1)):i("k-input",e._b({attrs:{theme:"field",type:"color"},scopedSlots:e._u([{key:"before",fn:function(){return["picker"===e.mode?[i("button",{staticClass:"k-color-field-picker-toggle",attrs:{disabled:e.disabled,type:"button"},on:{click:function(t){return e.$refs.picker.toggle()}}},[i("k-color-frame",{attrs:{color:e.value}})],1),i("k-dropdown-content",{ref:"picker",staticClass:"k-color-field-picker"},[i("k-colorpicker-input",e._b({ref:"color",attrs:{options:e.convertedOptions},on:{input:function(t){return e.$emit("input",t)}},nativeOn:{click:function(t){t.stopPropagation()}}},"k-colorpicker-input",e.$props,!1))],1)]:i("k-color-frame",{attrs:{color:e.value}})]},proxy:!0},{key:"default",fn:function(){return[i("k-colorname-input",e._b({on:{input:function(t){return e.$emit("input",t)}}},"k-colorname-input",e.$props,!1))]},proxy:!0},(null==(t=e.currentOption)?void 0:t.text)?{key:"after",fn:function(){return[e._v(" "+e._s(e.currentOption.text)+" ")]},proxy:!0}:null,"picker"===e.mode?{key:"icon",fn:function(){return[i("k-button",{staticClass:"k-input-icon-button",attrs:{icon:e.icon},on:{click:function(t){return t.stopPropagation(),e.$refs.picker.toggle()}}})]},proxy:!0}:null],null,!0)},"k-input",e.$props,!1))],1)}),[],!1,null,null,null,null).exports,Fi={mixins:[ji],props:{display:{type:String,default:"DD.MM.YYYY"},max:String,min:String,step:{type:Object,default:()=>({size:1,unit:"day"})},type:{type:String,default:"date"},value:String}};const Ri=at({mixins:[Ii,Fi],data:()=>({dt:null,formatted:null}),computed:{inputType:()=>"date",pattern(){return this.$library.dayjs.pattern(this.display)},rounding(){return{...this.$options.props.step.default(),...this.step}}},watch:{value:{handler(t,e){if(t!==e){const e=this.toDatetime(t);this.commit(e)}},immediate:!0}},created(){this.$events.on("keydown.cmd.s",this.onBlur)},destroyed(){this.$events.off("keydown.cmd.s",this.onBlur)},methods:{async alter(t){let e=this.parse()??this.round(this.$library.dayjs()),i=this.rounding.unit,n=this.rounding.size;const s=this.selection();null!==s&&("meridiem"===s.unit?(t="pm"===e.format("a")?"subtract":"add",i="hour",n=12):(i=s.unit,i!==this.rounding.unit&&(n=1))),e=e[t](n,i).round(this.rounding.unit,this.rounding.size),this.commit(e),this.emit(e),await this.$nextTick(),this.select(s)},commit(t){this.dt=t,this.formatted=this.pattern.format(t),this.$emit("invalid",this.$v.$invalid,this.$v)},emit(t){this.$emit("input",this.toISO(t))},onArrowDown(){this.alter("subtract")},onArrowUp(){this.alter("add")},onBlur(){const t=this.parse();this.commit(t),this.emit(t)},async onEnter(){this.onBlur(),await this.$nextTick(),this.$emit("submit")},onInput(t){const e=this.parse(),i=this.pattern.format(e);if(!t||i==t)return this.commit(e),this.emit(e)},async onTab(t){if(""==this.$refs.input.value)return;this.onBlur(),await this.$nextTick();const e=this.selection();if(this.$refs.input&&e.start===this.$refs.input.selectionStart&&e.end===this.$refs.input.selectionEnd-1)if(t.shiftKey){if(0===e.index)return;this.selectPrev(e.index)}else{if(e.index===this.pattern.parts.length-1)return;this.selectNext(e.index)}else{if(this.$refs.input&&this.$refs.input.selectionStart==e.end+1&&e.index==this.pattern.parts.length-1)return;if(this.$refs.input&&this.$refs.input.selectionEnd-1>e.end){const t=this.pattern.at(this.$refs.input.selectionEnd,this.$refs.input.selectionEnd);this.select(this.pattern.parts[t.index])}else this.select(this.pattern.parts[e.index])}t.preventDefault()},parse(){let t=this.$refs.input.value;return t=this.$library.dayjs.interpret(t,this.inputType),this.round(t)},round(t){return null==t?void 0:t.round(this.rounding.unit,this.rounding.size)},select(t){var e;t||(t=this.selection()),null==(e=this.$refs.input)||e.setSelectionRange(t.start,t.end+1)},selectFirst(){this.select(this.pattern.parts[0])},selectLast(){this.select(this.pattern.parts[this.pattern.parts.length-1])},selectNext(t){this.select(this.pattern.parts[t+1])},selectPrev(t){this.select(this.pattern.parts[t-1])},selection(){return this.pattern.at(this.$refs.input.selectionStart,this.$refs.input.selectionEnd)},toDatetime(t){return this.round(this.$library.dayjs.iso(t,this.inputType))},toISO(t){return null==t?void 0:t.toISO(this.inputType)}},validations(){return{value:{min:!this.dt||!this.min||(()=>this.dt.validate(this.min,"min",this.rounding.unit)),max:!this.dt||!this.max||(()=>this.dt.validate(this.max,"max",this.rounding.unit)),required:!this.required||(()=>!!this.dt)}}}},(function(){var t=this;return(0,t._self._c)("input",{directives:[{name:"direction",rawName:"v-direction"}],ref:"input",class:`k-text-input k-${t.type}-input`,attrs:{id:t.id,autofocus:t.autofocus,disabled:t.disabled,placeholder:t.display,required:t.required,autocomplete:"off",spellcheck:"false",type:"text"},domProps:{value:t.formatted},on:{blur:t.onBlur,focus:function(e){return t.$emit("focus")},input:function(e){return t.onInput(e.target.value)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.stopPropagation(),e.preventDefault(),t.onArrowDown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.stopPropagation(),e.preventDefault(),t.onArrowUp.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.onEnter.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.onTab.apply(null,arguments)}]}})}),[],!1,null,null,null,null).exports;const Yi=at({mixins:[Pe,Fe,Fi],inheritAttrs:!1,props:{calendar:{type:Boolean,default:!0},icon:{type:String,default:"calendar"},time:{type:[Boolean,Object],default:()=>({})},times:{type:Boolean,default:!0}},data(){return{isInvalid:!1,iso:this.toIso(this.value)}},computed:{isEmpty(){return this.time?null===this.iso.date&&this.iso.time:null===this.iso.date}},watch:{value(t,e){t!==e&&(this.iso=this.toIso(t))}},methods:{focus(){this.$refs.dateInput.focus()},now(){const t=this.$library.dayjs();return{date:t.toISO("date"),time:this.time?t.toISO("time"):"00:00:00"}},onInput(){if(this.isEmpty)return this.$emit("input","");const t=this.$library.dayjs.iso(this.iso.date+" "+this.iso.time);(t||null!==this.iso.date&&null!==this.iso.time)&&this.$emit("input",(null==t?void 0:t.toISO())??"")},onCalendarInput(t){var e;null==(e=this.$refs.calendar)||e.close(),this.onDateInput(t)},onDateInput(t){t&&!this.iso.time&&(this.iso.time=this.now().time),this.iso.date=t,this.onInput()},onDateInvalid(t){this.isInvalid=t},onTimeInput(t){t&&!this.iso.date&&(this.iso.date=this.now().date),this.iso.time=t,this.onInput()},onTimesInput(t){var e;null==(e=this.$refs.times)||e.close(),this.onTimeInput(t+":00")},toIso(t){const e=this.$library.dayjs.iso(t);return{date:(null==e?void 0:e.toISO("date"))??null,time:(null==e?void 0:e.toISO("time"))??null}}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-date-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("div",{ref:"body",staticClass:"k-date-field-body",attrs:{"data-has-time":Boolean(t.time),"data-invalid":!t.novalidate&&t.isInvalid}},[e("k-input",t._b({ref:"dateInput",attrs:{id:t._uid,autofocus:t.autofocus,disabled:t.disabled,display:t.display,max:t.max,min:t.min,required:t.required,value:t.value,theme:"field",type:"date"},on:{invalid:t.onDateInvalid,input:t.onDateInput,submit:function(e){return t.$emit("submit")}},scopedSlots:t._u([t.calendar?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.icon,title:t.$t("date.select")},on:{click:function(e){return t.$refs.calendar.toggle()}}}),e("k-dropdown-content",{ref:"calendar",attrs:{"align-x":"end"}},[e("k-calendar",{attrs:{value:t.iso.date,min:t.min,max:t.max},on:{input:t.onCalendarInput}})],1)]},proxy:!0}:null],null,!0)},"k-input",t.$props,!1)),t.time?e("k-input",{ref:"timeInput",attrs:{disabled:t.disabled,display:t.time.display,required:t.required,step:t.time.step,value:t.iso.time,icon:t.time.icon,theme:"field",type:"time"},on:{input:t.onTimeInput,submit:function(e){return t.$emit("submit")}},scopedSlots:t._u([t.times?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.time.icon??"clock",title:t.$t("time.select")},on:{click:function(e){return t.$refs.times.toggle()}}}),e("k-dropdown-content",{ref:"times",attrs:{"align-x":"end"}},[e("k-timeoptions-input",{attrs:{display:t.time.display,value:t.value},on:{input:t.onTimesInput}})],1)]},proxy:!0}:null],null,!0)}):t._e()],1)])}),[],!1,null,null,null,null).exports,Ui={mixins:[ji,W,tt,et,st,ot,rt],props:{autocomplete:{type:[Boolean,String],default:"off"},preselect:Boolean,type:{type:String,default:"text"},value:String}};const Hi=at({mixins:[Ii,Ui],data(){return{listeners:{...this.$listeners,input:t=>this.onInput(t.target.value)}}},watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.$refs.input.select()}},validations(){return{value:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength),email:"email"!==this.type||t.email,url:"url"!==this.type||t.url,pattern:!this.pattern||(t=>!this.required&&!t||!this.$refs.input.validity.patternMismatch)}}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-text-input",attrs:{"data-font":t.font}},"input",{autocomplete:t.autocomplete,autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,type:t.type,value:t.value},!1),t.listeners))}),[],!1,null,null,null,null).exports,Vi={mixins:[Ui],props:{autocomplete:{type:String,default:"email"},placeholder:{type:String,default:()=>window.panel.$t("email.placeholder")},type:{type:String,default:"email"}}};const Ki=at({extends:Hi,mixins:[Vi]},null,null,!1,null,null,null,null).exports;const Wi=at({mixins:[Pe,Fe,Vi],inheritAttrs:!1,props:{link:{type:Boolean,default:!0},icon:{type:String,default:"email"}},computed:{mailto(){var t;return(null==(t=this.value)?void 0:t.length)>0?"mailto:"+this.value:null}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-email-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"email"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.link?e("k-button",{staticClass:"k-input-icon-button",attrs:{icon:t.icon,link:t.mailto,title:t.$t("open"),tabindex:"-1",target:"_blank"}}):t._e()]},proxy:!0}])},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Ji=at({type:"model",mixins:[Pe,H,Q],inheritAttrs:!1,props:{empty:String,info:String,link:Boolean,max:Number,multiple:Boolean,parent:String,search:Boolean,size:String,text:String,value:{type:Array,default:()=>[]}},data(){return{selected:this.value}},computed:{buttons(){return[{autofocus:this.autofocus,text:this.$t("select"),icon:"checklist",responsive:!0,click:()=>this.open()}]},collection(){return{empty:this.emptyProps,items:this.selected,layout:this.layout,link:this.link,size:this.size,sortable:!this.disabled&&this.selected.length>1}},hasDropzone:()=>!1,isInvalid(){return this.required&&0===this.selected.length||this.min&&this.selected.lengththis.max},more(){return!this.max||this.max>this.selected.length}},watch:{value(t){this.selected=t}},methods:{drop(){},focus(){},onInput(){this.$emit("input",this.selected)},open(){if(this.disabled)return!1;this.$panel.dialog.open({component:`k-${this.$options.type}-dialog`,props:{endpoint:this.endpoints.field,hasSearch:this.search,max:this.max,multiple:this.multiple,value:this.selected.map((t=>t.id))},on:{submit:t=>{this.select(t),this.$panel.dialog.close()}}})},remove(t){this.selected.splice(t,1),this.onInput()},removeById(t){this.selected=this.selected.filter((e=>e.id!==t)),this.onInput()},select(t){if(0===t.length)return this.selected=[],void this.onInput();this.selected=this.selected.filter((e=>t.find((t=>t.id===e.id))));for(const e of t)this.selected.find((t=>e.id===t.id))||this.selected.push(e);this.onInput()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({class:`k-models-field k-${t.$options.type}-field`,scopedSlots:t._u([t.disabled?null:{key:"options",fn:function(){return[e("k-button-group",{ref:"buttons",staticClass:"k-field-options",attrs:{buttons:t.buttons,layout:"collapsed",size:"xs",variant:"filled"}})]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-dropzone",{attrs:{disabled:!t.hasDropzone},on:{drop:t.drop}},[e("k-collection",t._b({on:{empty:t.open,sort:t.onInput,sortChange:function(e){return t.$emit("change",e)}},scopedSlots:t._u([t.disabled?null:{key:"options",fn:function({index:i}){return[e("k-button",{attrs:{title:t.$t("remove"),icon:"remove"},on:{click:function(e){return t.remove(i)}}})]}}],null,!0)},"k-collection",t.collection,!1))],1)],1)}),[],!1,null,null,null,null).exports;const Gi=at({extends:Ji,type:"files",props:{uploads:[Boolean,Object,Array]},computed:{buttons(){const t=Ji.computed.buttons.call(this);return this.hasDropzone&&t.unshift({autofocus:this.autofocus,text:this.$t("upload"),responsive:!0,icon:"upload",click:()=>this.$panel.upload.pick(this.uploadOptions)}),t},emptyProps(){return{icon:"image",text:this.empty??this.$t("field.files.empty")}},hasDropzone(){return!this.disabled&&this.more&&this.uploads},uploadOptions(){return{accept:this.uploads.accept,max:this.max,multiple:this.multiple,url:this.$panel.urls.api+"/"+this.endpoints.field+"/upload",on:{done:t=>{!1===this.multiple&&(this.selected=[]);for(const e of t)void 0===this.selected.find((t=>t.id===e.id))&&this.selected.push(e);this.onInput(),this.$events.emit("model.update")}}}}},created(){this.$events.on("file.delete",this.removeById)},destroyed(){this.$events.off("file.delete",this.removeById)},methods:{drop(t){return!1!==this.uploads&&this.$panel.upload.open(t,this.uploadOptions)}}},null,null,!1,null,null,null,null).exports;const Xi=at({},(function(){return(0,this._self._c)("div",{staticClass:"k-field k-gap-field"})}),[],!1,null,null,null,null).exports;const Zi=at({mixins:[J,Z],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-headline-field"},[e("k-headline",{staticClass:"h2"},[t._v(" "+t._s(t.label)+" ")]),t.help?e("footer",{staticClass:"k-field-footer"},[e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const Qi=at({mixins:[J,Z],props:{icon:String,text:String,theme:{type:String,default:"info"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-field k-info-field"},[t.label?e("k-headline",[t._v(t._s(t.label))]):t._e(),e("k-box",{attrs:{icon:t.icon,theme:t.theme}},[e("k-text",{attrs:{html:t.text}})],1),t.help?e("footer",{staticClass:"k-field-footer"},[e("k-text",{staticClass:"k-help k-field-help",attrs:{html:t.help}})],1):t._e()],1)}),[],!1,null,null,null,null).exports;const tn=at({mixins:[Pe],inheritAttrs:!1,props:{autofocus:Boolean,empty:String,fieldsetGroups:Object,fieldsets:Object,layouts:{type:Array,default:()=>[["1/1"]]},selector:Object,settings:Object,value:{type:Array,default:()=>[]}},computed:{isEmpty(){return 0===this.value.length},options(){return[{click:()=>this.$refs.layouts.copy(),disabled:this.isEmpty,icon:"template",text:this.$t("copy.all")},{click:()=>this.$refs.layouts.pasteboard(),icon:"download",text:this.$t("paste")},"-",{click:()=>this.$refs.layouts.removeAll(),disabled:this.isEmpty,icon:"trash",text:this.$t("delete.all")}]}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-layout-field",scopedSlots:t._u([t.disabled?null:{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.layouts.select(0)}}}),e("k-button",{attrs:{icon:"dots",variant:"filled",size:"xs"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{options:t.options,"align-x":"end"}})],1)]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-layouts",t._b({ref:"layouts",on:{input:function(e){return t.$emit("input",e)}}},"k-layouts",t.$props,!1)),t.disabled?t._e():e("footer",{staticClass:"k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{title:t.$t("add"),icon:"add",size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.layouts.select(t.value.length)}}})],1)],1)}),[],!1,null,null,null,null).exports;const en=at({},(function(){return(0,this._self._c)("hr",{staticClass:"k-line-field"})}),[],!1,null,null,null,null).exports;const nn=at({mixins:[{mixins:[Pe,Fe,nt],props:{value:{default:"",type:String}}}],inheritAttrs:!1,data:()=>({model:null,linkType:null,linkValue:null,expanded:!1,isInvalid:!1}),computed:{currentType(){return this.activeTypes[this.linkType]??Object.values(this.activeTypes)[0]},availableTypes(){return{url:{detect:t=>/^(http|https):\/\//.test(t),icon:"url",label:this.$t("url"),link:t=>t,placeholder:this.$t("url.placeholder"),input:"url",value:t=>t},page:{detect:t=>!0===this.isPageUUID(t),icon:"page",label:this.$t("page"),link:t=>t,placeholder:this.$t("select")+" …",input:"text",value:t=>t},file:{detect:t=>!0===this.isFileUUID(t),icon:"file",label:this.$t("file"),link:t=>t,placeholder:this.$t("select")+" …",value:t=>t},email:{detect:t=>t.startsWith("mailto:"),icon:"email",label:this.$t("email"),link:t=>t.replace(/^mailto:/,""),placeholder:this.$t("email.placeholder"),input:"email",value:t=>"mailto:"+t},tel:{detect:t=>t.startsWith("tel:"),icon:"phone",label:this.$t("tel"),link:t=>t.replace(/^tel:/,""),pattern:"[+]{0,1}[0-9]+",placeholder:this.$t("tel.placeholder"),input:"tel",value:t=>"tel:"+t},anchor:{detect:t=>t.startsWith("#"),icon:"anchor",label:"Anchor",link:t=>t,pattern:"^#.+",placeholder:"#element",input:"text",value:t=>t},custom:{detect:()=>!0,icon:"title",label:this.$t("custom"),link:t=>t,input:"text",value:t=>t}}},activeTypes(){var t;if(!(null==(t=this.options)?void 0:t.length))return this.availableTypes;const e={};for(const i of this.options)e[i]=this.availableTypes[i];return e},activeTypesOptions(){const t=[];for(const e in this.activeTypes)t.push({click:()=>this.switchType(e),current:e===this.linkType,icon:this.activeTypes[e].icon,label:this.activeTypes[e].label});return t}},watch:{value:{handler(t,e){if(t===e)return;const i=this.detect(t);this.linkType=this.linkType??i.type,this.linkValue=i.link,t!==e&&this.preview(i)},immediate:!0}},created(){this.$events.on("click",this.onOutsideClick)},destroyed(){this.$events.off("click",this.onOutsideClick)},methods:{clear(){this.$emit("input",""),this.expanded=!1},detect(t){if(0===(t=t??"").length)return{type:"url",link:""};for(const e in this.availableTypes)if(!0===this.availableTypes[e].detect(t))return{type:e,link:this.availableTypes[e].link(t)}},focus(){var t;null==(t=this.$refs.input)||t.focus()},getFileUUID:t=>t.replace("/@/file/","file://"),getPageUUID:t=>t.replace("/@/page/","page://"),isFileUUID:t=>!0===t.startsWith("file://")||!0===t.startsWith("/@/file/"),isPageUUID:t=>"site://"===t||!0===t.startsWith("page://")||!0===t.startsWith("/@/page/"),onInput(t){const e=(null==t?void 0:t.trim())??"";if(!e.length)return this.$emit("input","");this.$emit("input",this.currentType.value(e))},onInvalid(t){this.isInvalid=!!t},onOutsideClick(t){!1===this.$el.contains(t.target)&&(this.expanded=!1)},async preview({type:t,link:e}){this.model="page"===t&&e?await this.previewForPage(e):"file"===t&&e?await this.previewForFile(e):e?{label:e}:null},async previewForFile(t){try{const e=await this.$api.files.get(null,t,{select:"filename, panelImage"});return{label:e.filename,image:e.panelImage}}catch(e){return null}},async previewForPage(t){if("site://"===t)return{label:this.$t("view.site")};try{return{label:(await this.$api.pages.get(t,{select:"title"})).title}}catch(e){return null}},selectModel(t){t.uuid?this.onInput(t.uuid):(this.switchType("url"),this.onInput(t.url))},async switchType(t){t!==this.linkType&&(this.isInvalid=!1,this.linkType=t,this.linkValue="","page"===this.linkType||"file"===this.linkType?this.expanded=!0:this.expanded=!1,this.$emit("input",""),await this.$nextTick(),this.focus())},toggle(){this.expanded=!this.expanded}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-link-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._b({attrs:{invalid:t.isInvalid,icon:!1,theme:"field"}},"k-input",t.$props,!1),[e("div",{staticClass:"k-link-input-header"},[e("k-button",{staticClass:"k-link-input-toggle",attrs:{disabled:t.disabled,dropdown:!0,icon:t.currentType.icon,variant:"filled"},on:{click:function(e){return t.$refs.types.toggle()}}},[t._v(" "+t._s(t.currentType.label)+" ")]),e("k-dropdown-content",{ref:"types",attrs:{options:t.activeTypesOptions}}),"page"===t.linkType||"file"===t.linkType?e("div",{staticClass:"k-link-input-model",on:{click:t.toggle}},[t.model?e("k-tag",{staticClass:"k-link-input-model-preview",attrs:{image:t.model.image?{...t.model.image,cover:!0,back:"gray-200"}:null,removable:!t.disabled},on:{remove:t.clear}},[t._v(" "+t._s(t.model.label)+" ")]):e("k-button",{staticClass:"k-link-input-model-placeholder"},[t._v(" "+t._s(t.currentType.placeholder)+" ")]),e("k-button",{staticClass:"k-link-input-model-toggle",attrs:{icon:"bars"}})],1):e("k-"+t.currentType.input+"-input",{ref:"input",tag:"component",attrs:{id:t._uid,pattern:t.currentType.pattern??null,placeholder:t.currentType.placeholder,value:t.linkValue},on:{invalid:t.onInvalid,input:t.onInput}})],1),"page"===t.linkType?e("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"k-link-input-body",attrs:{"data-type":"page"}},[e("div",{staticClass:"k-page-browser"},[e("k-page-tree",{attrs:{current:t.getPageUUID(t.value),root:!1},on:{select:function(e){return t.selectModel(e)}}})],1)]):"file"===t.linkType?e("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"k-link-input-body",attrs:{"data-type":"file"}},[e("k-file-browser",{attrs:{selected:t.getFileUUID(t.value)},on:{select:function(e){return t.selectModel(e)}}})],1):t._e()])],1)}),[],!1,null,null,null,null).exports;const sn=t=>({$from:e})=>((t,e)=>{for(let i=t.depth;i>0;i--){const n=t.node(i);if(e(n))return{pos:i>0?t.before(i):0,start:t.start(i),depth:i,node:n}}})(e,t),on=t=>e=>{if((t=>t instanceof o)(e)){const{node:i,$from:n}=e;if(((t,e)=>Array.isArray(t)&&t.indexOf(e.type)>-1||e.type===t)(t,i))return{node:i,pos:n.pos,depth:n.depth}}},ln=(t,e,i={})=>{const n=on(e)(t.selection)||sn((t=>t.type===e))(t.selection);return 0!==yt(i)&&n?n.node.hasMarkup(e,{...n.node.attrs,...i}):!!n};function rn(t=null,e=null){if(!t||!e)return!1;const i=t.parent.childAfter(t.parentOffset);if(!i.node)return!1;const n=i.node.marks.find((t=>t.type===e));if(!n)return!1;let s=t.index(),o=t.start()+i.offset,l=s+1,r=o+i.node.nodeSize;for(;s>0&&n.isInSet(t.parent.child(s-1).marks);)s-=1,o-=t.parent.child(s).nodeSize;for(;l{s=[...s,...t.marks]}));const o=s.find((t=>t.type.name===e.name));return o?o.attrs:{}},getNodeAttrs:function(t,e){const{from:i,to:n}=t.selection;let s=[];t.doc.nodesBetween(i,n,(t=>{s=[...s,t]}));const o=s.reverse().find((t=>t.type.name===e.name));return o?o.attrs:{}},markInputRule:function(t,i,n){return new e(t,((t,e,s,o)=>{const l=n instanceof Function?n(e):n,{tr:r}=t,a=e.length-1;let u=o,c=s;if(e[a]){const n=s+e[0].indexOf(e[a-1]),l=n+e[a-1].length-1,d=n+e[a-1].lastIndexOf(e[a]),p=d+e[a].length,h=function(t,e,i){let n=[];return i.doc.nodesBetween(t,e,((t,e)=>{n=[...n,...t.marks.map((i=>({start:e,end:e+t.nodeSize,mark:i})))]})),n}(s,o,t).filter((t=>{const{excluded:e}=t.mark.type;return e.find((t=>t.name===i.name))})).filter((t=>t.end>n));if(h.length)return!1;pn&&r.delete(n,d),c=n,u=c+e[a].length}return r.addMark(c,u,i.create(l)),r.removeStoredMark(i),r}))},markIsActive:function(t,e){const{from:i,$from:n,to:s,empty:o}=t.selection;return o?!!e.isInSet(t.storedMarks||n.marks()):!!t.doc.rangeHasMark(i,s,e)},markPasteRule:function(t,e,o){const l=(i,n)=>{const r=[];return i.forEach((i=>{var s;if(i.isText){const{text:l,marks:a}=i;let u,c=0;const d=!!a.filter((t=>"link"===t.type.name))[0];for(;!d&&null!==(u=t.exec(l));)if((null==(s=null==n?void 0:n.type)?void 0:s.allowsMarkType(e))&&u[1]){const t=u.index,n=t+u[0].length,s=t+u[0].indexOf(u[1]),l=s+u[1].length,a=o instanceof Function?o(u):o;t>0&&r.push(i.cut(c,t)),r.push(i.cut(s,l).mark(e.create(a).addToSet(i.marks))),c=n}cnew n(l(t.content),t.openStart,t.openEnd)}})},minMax:function(t=0,e=0,i=0){return Math.min(Math.max(parseInt(t,10),e),i)},nodeIsActive:ln,nodeInputRule:function(t,i,n){return new e(t,((t,e,s,o)=>{const l=n instanceof Function?n(e):n,{tr:r}=t;return e[0]&&r.replaceWith(s-1,o,i.create(l)),r}))},pasteRule:function(t,e,o){const l=i=>{const n=[];return i.forEach((i=>{if(i.isText){const{text:s}=i;let l,r=0;do{if(l=t.exec(s),l){const t=l.index,s=t+l[0].length,a=o instanceof Function?o(l[0]):o;t>0&&n.push(i.cut(r,t)),n.push(i.cut(t,s).mark(e.create(a).addToSet(i.marks))),r=s}}while(l);rnew n(l(t.content),t.openStart,t.openEnd)}})},removeMark:function(t){return(e,i)=>{const{tr:n,selection:s}=e;let{from:o,to:l}=s;const{$from:r,empty:a}=s;if(a){const e=rn(r,t);o=e.from,l=e.to}return n.removeMark(o,l,t),i(n)}},toggleBlockType:function(t,e,i={}){return(n,s,o)=>ln(n,t,i)?l(e)(n,s,o):l(t,i)(n,s,o)},toggleList:function(t,e){return(i,n,s)=>{const{schema:o,selection:l}=i,{$from:u,$to:c}=l,d=u.blockRange(c);if(!d)return!1;const p=sn((t=>an(t,o)))(l);if(d.depth>=1&&p&&d.depth-p.depth<=1){if(p.node.type===t)return r(e)(i,n,s);if(an(p.node,o)&&t.validContent(p.node.content)){const{tr:e}=i;return e.setNodeMarkup(p.pos,t),n&&n(e),!1}}return a(t)(i,n,s)}},toggleWrap:function(t,e={}){return(i,n,s)=>ln(i,t,e)?u(i,n):c(t,e)(i,n,s)},updateMark:function(t,e){return(i,n)=>{const{tr:s,selection:o,doc:l}=i,{ranges:r,empty:a}=o;if(a){const{from:i,to:n}=rn(o.$from,t);l.rangeHasMark(i,n,t)&&s.removeMark(i,n,t),s.addMark(i,n,t.create(e))}else r.forEach((i=>{const{$to:n,$from:o}=i;l.rangeHasMark(o.pos,n.pos,t)&&s.removeMark(o.pos,n.pos,t),s.addMark(o.pos,n.pos,t.create(e))}));return n(s)}}};class cn{emit(t,...e){this._callbacks=this._callbacks??{};const i=this._callbacks[t]??[];for(const n of i)n.apply(this,e);return this}off(t,e){if(arguments.length){const i=this._callbacks?this._callbacks[t]:null;i&&(e?this._callbacks[t]=i.filter((t=>t!==e)):delete this._callbacks[t])}else this._callbacks={};return this}on(t,e){return this._callbacks=this._callbacks??{},this._callbacks[t]=this._callbacks[t]??[],this._callbacks[t].push(e),this}}class dn{constructor(t=[],e){for(const i of t)i.bindEditor(e),i.init();this.extensions=t}commands({schema:t,view:e}){return this.extensions.filter((t=>t.commands)).reduce(((i,n)=>{const{name:s,type:o}=n,l={},r=n.commands({schema:t,utils:un,...["node","mark"].includes(o)?{type:t[`${o}s`][s]}:{}}),a=(t,i)=>{l[t]=t=>{if("function"!=typeof i||!e.editable)return!1;e.focus();const n=i(t);return"function"==typeof n?n(e.state,e.dispatch,e):n}};if("object"==typeof r)for(const[t,e]of Object.entries(r))a(t,e);else a(s,r);return{...i,...l}}),{})}buttons(t="mark"){const e={};for(const i of this.extensions)if(i.type===t&&i.button)if(Array.isArray(i.button))for(const t of i.button)e[t.id??t.name]=t;else e[i.name]=i.button;return e}getAllowedExtensions(t){return t instanceof Array||!t?t instanceof Array?this.extensions.filter((e=>!t.includes(e.name))):this.extensions:[]}getFromExtensions(t,e,i=this.extensions){return i.filter((t=>["extension"].includes(t.type))).filter((e=>e[t])).map((i=>i[t]({...e,utils:un})))}getFromNodesAndMarks(t,e,i=this.extensions){return i.filter((t=>["node","mark"].includes(t.type))).filter((e=>e[t])).map((i=>i[t]({...e,type:e.schema[`${i.type}s`][i.name],utils:un})))}inputRules({schema:t,excludedExtensions:e}){const i=this.getAllowedExtensions(e);return[...this.getFromExtensions("inputRules",{schema:t},i),...this.getFromNodesAndMarks("inputRules",{schema:t},i)].reduce(((t,e)=>[...t,...e]),[])}keymaps({schema:t}){return[...this.getFromExtensions("keys",{schema:t}),...this.getFromNodesAndMarks("keys",{schema:t})].map((t=>v(t)))}get marks(){return this.extensions.filter((t=>"mark"===t.type)).reduce(((t,{name:e,schema:i})=>({...t,[e]:i})),{})}get nodes(){return this.extensions.filter((t=>"node"===t.type)).reduce(((t,{name:e,schema:i})=>({...t,[e]:i})),{})}get options(){const{view:t}=this;return this.extensions.reduce(((e,i)=>({...e,[i.name]:new Proxy(i.options,{set(e,i,n){const s=e[i]!==n;return Object.assign(e,{[i]:n}),s&&t.updateState(t.state),!0}})})),{})}pasteRules({schema:t,excludedExtensions:e}){const i=this.getAllowedExtensions(e);return[...this.getFromExtensions("pasteRules",{schema:t},i),...this.getFromNodesAndMarks("pasteRules",{schema:t},i)].reduce(((t,e)=>[...t,...e]),[])}plugins({schema:t}){return[...this.getFromExtensions("plugins",{schema:t}),...this.getFromNodesAndMarks("plugins",{schema:t})].reduce(((t,e)=>[...t,...e]),[]).map((t=>t instanceof i?t:new i(t)))}}class pn{constructor(t={}){this.options={...this.defaults,...t}}init(){return null}bindEditor(t=null){this.editor=t}get name(){return null}get type(){return"extension"}get defaults(){return{}}plugins(){return[]}inputRules(){return[]}pasteRules(){return[]}keys(){return{}}}class hn extends pn{constructor(t={}){super(t)}get type(){return"node"}get schema(){return{}}commands(){return{}}}class mn extends hn{get defaults(){return{inline:!1}}get name(){return"doc"}get schema(){return{content:this.options.inline?"inline*":"block+"}}}class fn extends hn{get button(){return{id:this.name,icon:"paragraph",label:window.panel.$t("toolbar.button.paragraph"),name:this.name,separator:!0}}commands({utils:t,schema:e,type:i}){return{paragraph:()=>this.editor.activeNodes.includes("bulletList")?t.toggleList(e.nodes.bulletList,e.nodes.listItem):this.editor.activeNodes.includes("orderedList")?t.toggleList(e.nodes.orderedList,e.nodes.listItem):this.editor.activeNodes.includes("quote")?t.toggleWrap(e.nodes.quote):t.setBlockType(i)}}get schema(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:()=>["p",0]}}get name(){return"paragraph"}}let gn=class extends hn{get name(){return"text"}get schema(){return{group:"inline"}}};class kn extends cn{constructor(t={}){super(),this.defaults={autofocus:!1,content:"",disableInputRules:!1,disablePasteRules:!1,editable:!0,element:null,extensions:[],emptyDocument:{type:"doc",content:[]},events:{},inline:!1,parseOptions:{},topNode:"doc",useBuiltInExtensions:!0},this.init(t)}blur(){this.view.dom.blur()}get builtInExtensions(){return!0!==this.options.useBuiltInExtensions?[]:[new mn({inline:this.options.inline}),new gn,new fn]}buttons(t){return this.extensions.buttons(t)}clearContent(t=!1){this.setContent(this.options.emptyDocument,t)}command(t,...e){var i,n;null==(n=(i=this.commands)[t])||n.call(i,...e)}createCommands(){return this.extensions.commands({schema:this.schema,view:this.view})}createDocument(t,e=this.options.parseOptions){if(null===t)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"==typeof t)try{return this.schema.nodeFromJSON(t)}catch(i){return window.console.warn("Invalid content.","Passed value:",t,"Error:",i),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"==typeof t){const i=`

        ${t}
        `,n=(new window.DOMParser).parseFromString(i,"text/html").body.firstElementChild;return y.fromSchema(this.schema).parse(n,e)}return!1}createEvents(){const t=this.options.events??{};for(const[e,i]of Object.entries(t))this.on(e,i);return t}createExtensions(){return new dn([...this.builtInExtensions,...this.options.extensions],this)}createFocusEvents(){const t=(t,e,i=!0)=>{this.focused=i,this.emit(i?"focus":"blur",{event:e,state:t.state,view:t});const n=this.state.tr.setMeta("focused",i);this.view.dispatch(n)};return new i({props:{attributes:{tabindex:0},handleDOMEvents:{focus:(e,i)=>t(e,i,!0),blur:(e,i)=>t(e,i,!1)}}})}createInputRules(){return this.extensions.inputRules({schema:this.schema,excludedExtensions:this.options.disableInputRules})}createKeymaps(){return this.extensions.keymaps({schema:this.schema})}createMarks(){return this.extensions.marks}createNodes(){return this.extensions.nodes}createPasteRules(){return this.extensions.pasteRules({schema:this.schema,excludedExtensions:this.options.disablePasteRules})}createPlugins(){return this.extensions.plugins({schema:this.schema})}createSchema(){return new $({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return w.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,x({rules:this.inputRules}),...this.pasteRules,...this.keymaps,v({Backspace:O}),v(A),this.createFocusEvents()]})}createView(){return new _(this.element,{dispatchTransaction:this.dispatchTransaction.bind(this),attributes:{class:"k-text"},editable:()=>this.options.editable,handlePaste:(t,e)=>{if("function"==typeof this.events.paste){const t=e.clipboardData.getData("text/html"),i=e.clipboardData.getData("text/plain");if(!0===this.events.paste(e,t,i))return!0}},handleDrop:(...t)=>{this.emit("drop",...t)},state:this.createState()})}destroy(){this.view&&this.view.destroy()}dispatchTransaction(t){const e=this.state,i=this.state.apply(t);this.view.updateState(i),this.setActiveNodesAndMarks();const n={editor:this,getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:t};this.emit("transaction",n),!t.docChanged&&t.getMeta("preventUpdate")||this.emit("update",n);const{from:s,to:o}=this.state.selection,l=!e||!e.selection.eq(i.selection);this.emit(i.selection.empty?"deselect":"select",{...n,from:s,hasChanged:l,to:o})}focus(t=null){if(this.view.focused&&null===t||!1===t)return;const{from:e,to:i}=this.selectionAtPosition(t);this.setSelection(e,i),setTimeout((()=>this.view.focus()),10)}getHTML(t=this.state.doc.content){const e=document.createElement("div"),i=S.fromSchema(this.schema).serializeFragment(t);return e.appendChild(i),this.options.inline&&e.querySelector("p")?e.querySelector("p").innerHTML:e.innerHTML}getHTMLStartToSelection(){const t=this.state.doc.slice(0,this.selection.head).content;return this.getHTML(t)}getHTMLSelectionToEnd(){const t=this.state.doc.slice(this.selection.head).content;return this.getHTML(t)}getHTMLStartToSelectionToEnd(){return[this.getHTMLStartToSelection(),this.getHTMLSelectionToEnd()]}getJSON(){return this.state.doc.toJSON()}getMarkAttrs(t=null){return this.activeMarkAttrs[t]}getSchemaJSON(){return JSON.parse(JSON.stringify({nodes:this.nodes,marks:this.marks}))}init(t={}){this.options={...this.defaults,...t},this.element=this.options.element,this.focused=!1,this.events=this.createEvents(),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.plugins=this.createPlugins(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),!1!==this.options.autofocus&&this.focus(this.options.autofocus),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view,this.setContent(this.options.content,!0)}insertText(t,e=!1){const{tr:i}=this.state,n=i.insertText(t);if(this.view.dispatch(n),e){const e=i.selection.from,n=e-t.length;this.setSelection(n,e)}}isEditable(){return this.options.editable}isEmpty(){if(this.state)return 0===this.state.doc.textContent.length}get isActive(){return Object.entries({...this.activeMarks,...this.activeNodes}).reduce(((t,[e,i])=>({...t,[e]:(t={})=>i(t)})),{})}removeMark(t){if(this.schema.marks[t])return un.removeMark(this.schema.marks[t])(this.state,this.view.dispatch)}get selection(){return this.state.selection}get selectionAtEnd(){return C.atEnd(this.state.doc)}get selectionIsAtEnd(){return this.selection.head===this.selectionAtEnd.head}get selectionAtStart(){return C.atStart(this.state.doc)}get selectionIsAtStart(){return this.selection.head===this.selectionAtStart.head}selectionAtPosition(t=null){return null===t?this.selection:"start"===t||!0===t?this.selectionAtStart:"end"===t?this.selectionAtEnd:{from:t,to:t}}setActiveNodesAndMarks(){this.activeMarks=Object.values(this.schema.marks).filter((t=>un.markIsActive(this.state,t))).map((t=>t.name)),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce(((t,[e,i])=>({...t,[e]:un.getMarkAttrs(this.state,i)})),{}),this.activeNodes=Object.values(this.schema.nodes).filter((t=>un.nodeIsActive(this.state,t))).map((t=>t.name)),this.activeNodeAttrs=Object.entries(this.schema.nodes).reduce(((t,[e,i])=>({...t,[e]:un.getNodeAttrs(this.state,i)})),{})}setContent(t={},e=!1,i){const{doc:n,tr:s}=this.state,o=this.createDocument(t,i),l=s.replaceWith(0,n.content.size,o).setMeta("preventUpdate",!e);this.view.dispatch(l)}setSelection(t=0,e=0){const{doc:i,tr:n}=this.state,s=un.minMax(t,0,i.content.size),o=un.minMax(e,0,i.content.size),l=C.create(i,s,o),r=n.setSelection(l);this.view.dispatch(r)}get state(){var t;return null==(t=this.view)?void 0:t.state}toggleMark(t){if(this.schema.marks[t])return un.toggleMark(this.schema.marks[t])(this.state,this.view.dispatch)}updateMark(t,e){if(this.schema.marks[t])return un.updateMark(this.schema.marks[t],e)(this.state,this.view.dispatch)}}class bn extends pn{command(){return()=>{}}remove(){this.editor.removeMark(this.name)}get schema(){return{}}get type(){return"mark"}toggle(){return this.editor.toggleMark(this.name)}update(t){this.editor.updateMark(this.name,t)}}class vn extends bn{get button(){return{icon:"bold",label:window.panel.$t("toolbar.button.bold")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,t)]}keys(){return{"Mod-b":()=>this.toggle()}}get name(){return"bold"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,t)]}get schema(){return{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM:()=>["strong",0]}}}class yn extends bn{get button(){return{icon:"clear",label:window.panel.$t("toolbar.button.clear")}}commands(){return()=>this.clear()}clear(){const{state:t}=this.editor,{from:e,to:i}=t.tr.selection;for(const n of this.editor.activeMarks){const s=t.schema.marks[n],o=this.editor.state.tr.removeMark(e,i,s);this.editor.view.dispatch(o)}}get name(){return"clear"}}let $n=class extends bn{get button(){return{icon:"code",label:window.panel.$t("toolbar.button.code")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:`)([^`]+)(?:`)$/,t)]}keys(){return{"Mod-`":()=>this.toggle()}}get name(){return"code"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/(?:`)([^`]+)(?:`)/g,t)]}get schema(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:()=>["code",0]}}};class wn extends bn{get button(){return{icon:"email",label:window.panel.$t("toolbar.button.email")}}commands(){return{email:t=>{if(t.altKey||t.metaKey)return this.remove();this.editor.emit("email",this.editor)},insertEmail:(t={})=>{const{selection:e}=this.editor.state;if(e.empty&&this.editor.insertText(t.href,!0),t.href)return this.update(t)},removeEmail:()=>this.remove(),toggleEmail:(t={})=>{var e;(null==(e=t.href)?void 0:e.length)>0?this.editor.command("insertEmail",t):this.editor.command("removeEmail")}}}get defaults(){return{target:null}}get name(){return"email"}pasteRules({type:t,utils:e}){return[e.pasteRule(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/gi,t,(t=>({href:t})))]}plugins(){return[{props:{handleClick:(t,e,i)=>{const n=this.editor.getMarkAttrs("email");n.href&&!0===i.altKey&&i.target instanceof HTMLAnchorElement&&(i.stopPropagation(),window.open(n.href))}}}]}get schema(){return{attrs:{href:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href^='mailto:']",getAttrs:t=>({href:t.getAttribute("href").replace("mailto:",""),title:t.getAttribute("title")})}],toDOM:t=>["a",{...t.attrs,href:"mailto:"+t.attrs.href},0]}}}class xn extends bn{get button(){return{icon:"italic",label:window.panel.$t("toolbar.button.italic")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,t),e.markInputRule(/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,t)]}keys(){return{"Mod-i":()=>this.toggle()}}get name(){return"italic"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/_([^_]+)_/g,t),e.markPasteRule(/\*([^*]+)\*/g,t)]}get schema(){return{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}}}let _n=class extends bn{get button(){return{icon:"url",label:window.panel.$t("toolbar.button.link")}}commands(){return{link:t=>{if(t.altKey||t.metaKey)return this.remove();this.editor.emit("link",this.editor)},insertLink:(t={})=>{const{selection:e}=this.editor.state;if(e.empty&&!1===this.editor.activeMarks.includes("link")&&this.editor.insertText(t.href,!0),t.href)return this.update(t)},removeLink:()=>this.remove(),toggleLink:(t={})=>{var e;(null==(e=t.href)?void 0:e.length)>0?this.editor.command("insertLink",t):this.editor.command("removeLink")}}}get defaults(){return{target:null}}get name(){return"link"}pasteRules({type:t,utils:e}){return[e.pasteRule(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,]*)/gi,t,(t=>({href:t})))]}plugins(){return[{props:{handleClick:(t,e,i)=>{const n=this.editor.getMarkAttrs("link");n.href&&!0===i.altKey&&i.target instanceof HTMLAnchorElement&&(i.stopPropagation(),window.open(n.href,n.target))}}}]}get schema(){return{attrs:{href:{default:null},target:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]:not([href^='mailto:'])",getAttrs:t=>({href:t.getAttribute("href"),target:t.getAttribute("target"),title:t.getAttribute("title")})}],toDOM:t=>["a",{...t.attrs},0]}}};class Sn extends bn{get button(){return{icon:"strikethrough",label:window.panel.$t("toolbar.button.strike")}}commands(){return()=>this.toggle()}inputRules({type:t,utils:e}){return[e.markInputRule(/~([^~]+)~$/,t)]}keys(){return{"Mod-d":()=>this.toggle()}}get name(){return"strike"}pasteRules({type:t,utils:e}){return[e.markPasteRule(/~([^~]+)~/g,t)]}get schema(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:t=>"line-through"===t}],toDOM:()=>["s",0]}}}let Cn=class extends bn{get button(){return{icon:"superscript",label:window.panel.$t("toolbar.button.sup")}}commands(){return()=>this.toggle()}get name(){return"sup"}get schema(){return{parseDOM:[{tag:"sup"}],toDOM:()=>["sup",0]}}};class On extends bn{get button(){return{icon:"subscript",label:window.panel.$t("toolbar.button.sub")}}commands(){return()=>this.toggle()}get name(){return"sub"}get schema(){return{parseDOM:[{tag:"sub"}],toDOM:()=>["sub",0]}}}class An extends bn{get button(){return{icon:"underline",label:window.panel.$t("toolbar.button.underline")}}commands(){return()=>this.toggle()}keys(){return{"Mod-u":()=>this.toggle()}}get name(){return"underline"}get schema(){return{parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:t=>"underline"===t}],toDOM:()=>["u",0]}}}class Mn extends hn{get button(){return{id:this.name,icon:"list-bullet",label:window.panel.$t("toolbar.button.ul"),name:this.name,when:["listItem","bulletList","orderedList","paragraph"]}}commands({type:t,schema:e,utils:i}){return()=>i.toggleList(t,e.nodes.listItem)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^\s*([-+*])\s$/,t)]}keys({type:t,schema:e,utils:i}){return{"Shift-Ctrl-8":i.toggleList(t,e.nodes.listItem)}}get name(){return"bulletList"}get schema(){return{content:"listItem+",group:"block",parseDOM:[{tag:"ul"}],toDOM:()=>["ul",0]}}}class jn extends hn{commands({utils:t,type:e}){return()=>this.createHardBreak(t,e)}createHardBreak(t,e){return t.chainCommands(t.exitCode,((t,i)=>(i(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0)))}get defaults(){return{enter:!1,text:!1}}keys({utils:t,type:e}){const i=this.createHardBreak(t,e);let n={"Mod-Enter":i,"Shift-Enter":i};return this.options.enter&&(n.Enter=i),n}get name(){return"hardBreak"}get schema(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}}}class In extends hn{get button(){const t=this.options.levels.map((t=>({id:`h${t}`,command:`h${t}`,icon:`h${t}`,label:window.panel.$t("toolbar.button.heading."+t),attrs:{level:t},name:this.name,when:["heading","paragraph"]})));return t[t.length-1].separator=!0,t}commands({type:t,schema:e,utils:i}){let n={toggleHeading:n=>i.toggleBlockType(t,e.nodes.paragraph,n)};for(const s of this.options.levels)n[`h${s}`]=()=>i.toggleBlockType(t,e.nodes.paragraph,{level:s});return n}get defaults(){return{levels:[1,2,3,4,5,6]}}inputRules({type:t,utils:e}){return this.options.levels.map((i=>e.textblockTypeInputRule(new RegExp(`^(#{1,${i}})\\s$`),t,(()=>({level:i})))))}keys({type:t,utils:e}){return this.options.levels.reduce(((i,n)=>({...i,[`Shift-Ctrl-${n}`]:e.setBlockType(t,{level:n})})),{})}get name(){return"heading"}get schema(){return{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,draggable:!1,parseDOM:this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}}))),toDOM:t=>[`h${t.attrs.level}`,0]}}}class Tn extends hn{commands({type:t}){return()=>(e,i)=>i(e.tr.replaceSelectionWith(t.create()))}inputRules({type:t,utils:e}){return[e.nodeInputRule(/^(?:---|___\s|\*\*\*\s)$/,t)]}get name(){return"horizontalRule"}get schema(){return{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["hr"]}}}class En extends hn{keys({type:t,utils:e}){return{Enter:e.splitListItem(t),"Shift-Tab":e.liftListItem(t),Tab:e.sinkListItem(t)}}get name(){return"listItem"}get schema(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}}}class Ln extends hn{get button(){return{id:this.name,icon:"list-numbers",label:window.panel.$t("toolbar.button.ol"),name:this.name,when:["listItem","bulletList","orderedList","paragraph"],separator:!0}}commands({type:t,schema:e,utils:i}){return()=>i.toggleList(t,e.nodes.listItem)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^(\d+)\.\s$/,t,(t=>({order:+t[1]})),((t,e)=>e.childCount+e.attrs.order===+t[1]))]}keys({type:t,schema:e,utils:i}){return{"Shift-Ctrl-9":i.toggleList(t,e.nodes.listItem)}}get name(){return"orderedList"}get schema(){return{attrs:{order:{default:1}},content:"listItem+",group:"block",parseDOM:[{tag:"ol",getAttrs:t=>({order:t.hasAttribute("start")?+t.getAttribute("start"):1})}],toDOM:t=>1===t.attrs.order?["ol",0]:["ol",{start:t.attrs.order},0]}}}class Dn extends hn{get button(){return{id:this.name,icon:"quote",label:window.panel.$t("field.blocks.quote.name"),name:this.name}}commands({type:t,utils:e}){return()=>e.toggleWrap(t)}inputRules({type:t,utils:e}){return[e.wrappingInputRule(/^\s*>\s$/,t)]}keys({utils:t}){return{"Shift-Tab":(e,i)=>t.lift(e,i)}}get name(){return"quote"}get schema(){return{content:"block+",group:"block",defining:!0,draggable:!1,parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]}}}let Bn=class extends pn{commands(){return{undo:()=>M,redo:()=>j,undoDepth:()=>I,redoDepth:()=>T}}get defaults(){return{depth:"",newGroupDelay:""}}keys(){return{"Mod-z":M,"Mod-y":j,"Shift-Mod-z":j,"Mod-я":M,"Shift-Mod-я":j}}get name(){return"history"}plugins(){return[E({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}};class qn extends pn{commands(){return{insertHtml:t=>(e,i)=>{let n=document.createElement("div");n.innerHTML=t.trim();const s=y.fromSchema(e.schema).parse(n);i(e.tr.replaceSelectionWith(s).scrollIntoView())}}}}class Pn extends pn{keys(){const t={};for(const e in this.options)t[e]=()=>(this.options[e](),!0);return t}}let Nn=class extends pn{constructor(t){super(),this.writer=t}get component(){return this.writer.$refs.toolbar}init(){this.editor.on("deselect",(({event:t})=>{var e;return null==(e=this.component)?void 0:e.close(t)})),this.editor.on("select",(({hasChanged:t})=>{var e;!1!==t&&(null==(e=this.component)||e.open())}))}get type(){return"toolbar"}};const zn={mixins:[H,K,ot,rt],props:{breaks:Boolean,code:Boolean,emptyDocument:{type:Object,default:()=>({type:"doc",content:[]})},extensions:Array,headings:{default:()=>[1,2,3,4,5,6],type:[Array,Boolean]},inline:Boolean,keys:Object,marks:{type:[Array,Boolean],default:!0},nodes:{type:[Array,Boolean],default:()=>["heading","bulletList","orderedList"]},paste:{type:Function,default:()=>()=>!1},toolbar:{type:Object,default:()=>({inline:!0})},value:{type:String,default:""}}};const Fn=at({mixins:[zn],data(){return{editor:null,json:{},html:this.value,isEmpty:!0}},computed:{isCursorAtEnd(){return this.editor.selectionIsAtEnd},isCursorAtStart(){return this.editor.selectionIsAtStart},toolbarOptions(){return{marks:Array.isArray(this.marks)?this.marks:void 0,...this.toolbar,editor:this.editor}}},watch:{value(t,e){t!==e&&t!==this.html&&(this.html=t,this.editor.setContent(this.html))}},mounted(){this.editor=new kn({autofocus:this.autofocus,content:this.value,editable:!this.disabled,element:this.$el,emptyDocument:this.emptyDocument,parseOptions:{preserveWhitespace:!0},events:{link:t=>{this.$panel.dialog.open({component:"k-link-dialog",props:{value:t.getMarkAttrs("link")},on:{cancel:()=>t.focus(),submit:e=>{this.$panel.dialog.close(),t.command("toggleLink",e)}}})},email:t=>{this.$panel.dialog.open({component:"k-email-dialog",props:{value:this.editor.getMarkAttrs("email")},on:{cancel:()=>t.focus(),submit:e=>{this.$panel.dialog.close(),t.command("toggleEmail",e)}}})},paste:this.paste,update:t=>{if(!this.editor)return;const e=JSON.stringify(this.editor.getJSON());e!==JSON.stringify(this.json)&&(this.json=e,this.isEmpty=t.editor.isEmpty(),this.html=t.editor.getHTML(),this.isEmpty&&(0===t.editor.activeNodes.length||t.editor.activeNodes.includes("paragraph"))&&(this.html=""),this.$emit("input",this.html))}},extensions:[...this.createMarks(),...this.createNodes(),new Pn(this.keys),new Bn,new qn,new Nn(this),...this.extensions||[]],inline:this.inline}),this.isEmpty=this.editor.isEmpty(),this.json=this.editor.getJSON(),this.$panel.events.on("click",this.onBlur),this.$panel.events.on("focus",this.onBlur)},beforeDestroy(){this.editor.destroy(),this.$panel.events.off("click",this.onBlur),this.$panel.events.off("focus",this.onBlur)},methods:{command(t,...e){this.editor.command(t,...e)},createMarks(){return this.filterExtensions({clear:new yn,code:new $n,underline:new An,strike:new Sn,link:new _n,email:new wn,bold:new vn,italic:new xn,sup:new Cn,sub:new On,...this.createMarksFromPanelPlugins()},this.marks)},createMarksFromPanelPlugins(){const t=window.panel.plugins.writerMarks??{},e={};for(const i in t)e[i]=Object.create(bn.prototype,Object.getOwnPropertyDescriptors({name:i,...t[i]}));return e},createNodes(){const t=new jn({text:!0,enter:this.inline});return!0===this.inline?[t]:this.filterExtensions({bulletList:new Mn,orderedList:new Ln,heading:new In({levels:this.headings}),horizontalRule:new Tn,listItem:new En,quote:new Dn,...this.createNodesFromPanelPlugins()},this.nodes,((e,i)=>((e.includes("bulletList")||e.includes("orderedList"))&&i.push(new En),i.push(t),i)))},createNodesFromPanelPlugins(){const t=window.panel.plugins.writerNodes??{},e={};for(const i in t)e[i]=Object.create(hn.prototype,Object.getOwnPropertyDescriptors({name:i,...t[i]}));return e},getHTML(){return this.editor.getHTML()},filterExtensions(t,e,i){!1===e?e=[]:!0!==e&&!1!==Array.isArray(e)||(e=Object.keys(t));let n=[];for(const s in t)e.includes(s)&&n.push(t[s]);return"function"==typeof i&&(n=i(e,n)),n},focus(){this.editor.focus()},getSplitContent(){return this.editor.getHTMLStartToSelectionToEnd()},onBlur(t){var e;!1===this.$el.contains(t.target)&&(null==(e=this.$refs.toolbar)||e.close())},onCommand(t,...e){this.editor.command(t,...e)}}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"direction",rawName:"v-direction"}],ref:"editor",staticClass:"k-writer",attrs:{"data-disabled":t.disabled,"data-empty":t.isEmpty,"data-placeholder":t.placeholder,"data-toolbar-inline":Boolean(t.toolbar.inline),spellcheck:t.spellcheck}},[t.editor&&!t.disabled?e("k-writer-toolbar",t._b({ref:"toolbar",on:{command:t.onCommand}},"k-writer-toolbar",t.toolbarOptions,!1)):t._e()],1)}),[],!1,null,null,null,null).exports,Rn={mixins:[ji,zn,tt,et],computed:{counterValue(){const t=this.$helper.string.stripHTML(this.value);return this.$helper.string.unescapeHTML(t)}}};const Yn=at({mixins:[Ii,Rn],watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){this.$refs.input.focus()},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{counterValue:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength)}}}},(function(){var t=this;return(0,t._self._c)("k-writer",t._b({ref:"input",staticClass:"k-writer-input",on:{input:function(e){return t.$emit("input",e)}}},"k-writer",t.$props,!1))}),[],!1,null,null,null,null).exports;class Un extends mn{get schema(){return{content:this.options.nodes.join("|")}}}const Hn={mixins:[Rn],inheritAttrs:!1,props:{nodes:{type:Array,default:()=>["bulletList","orderedList"]}}};const Vn=at({mixins:[Ii,Hn],data(){return{list:this.value,html:this.value}},computed:{listExtensions(){return[new Un({inline:!0,nodes:this.nodes})]}},watch:{value(t){t!==this.html&&(this.list=t,this.html=t)}},methods:{focus(){this.$refs.input.focus()},onInput(t){let e=(new DOMParser).parseFromString(t,"text/html").querySelector("ul, ol");e&&0!==e.textContent.trim().length?(this.list=t,this.html=t.replace(/(

        |<\/p>)/gi,""),this.$emit("input",this.html)):this.$emit("input",this.list="")}}},(function(){var t=this;return(0,t._self._c)("k-writer",t._b({ref:"input",staticClass:"k-list-input",attrs:{extensions:t.listExtensions,value:t.list},on:{input:t.onInput}},"k-writer",t.$props,!1))}),[],!1,null,null,null,null).exports;const Kn=at({mixins:[Pe,Fe,Hn],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-list-field",attrs:{input:t._uid,counter:!1}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{id:t._uid,type:"list",theme:"field"},on:{input:function(e){return t.$emit("input",e)}}},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,Wn={mixins:[H,K,G,Me],inheritAttrs:!1,props:{draggable:{default:!0,type:Boolean},layout:String,max:Number,min:Number,sort:{default:!1,type:Boolean},value:{default:()=>[],type:Array}}};const Jn=at({mixins:[Wn],data:()=>({editing:null,tags:[]}),computed:{dragOptions(){return{delay:1,disabled:!this.isDraggable,draggable:".k-tag",handle:".k-tag-text"}},isDraggable(){return!0!==this.sort&&!1!==this.draggable&&0!==this.tags.length&&!0!==this.disabled},isFull(){return!!this.max&&this.tags.length>=this.max},replacable(){return this.options.filter((t=>{var e;return!1===this.value.includes(t.value)||t.value===(null==(e=this.editing)?void 0:e.tag.value)}))},selectable(){return this.options.filter((t=>!1===this.value.includes(t.value)))},selectorOptions(){return{accept:this.accept,disabled:this.disabled,ignore:this.value,search:this.search}},showAddSelector(){return!0!==this.disabled&&(!0!==this.isFull&&("all"===this.accept||0!==this.selectable.length))}},watch:{value:{handler(){!0===this.sort?this.tags=this.sortByOptions(this.value):this.tags=this.value.map(this.tag).filter((t=>t))},immediate:!0}},methods:{add(t){return t=this.tag(t),!0!==this.isFull&&(!1!==this.isAllowed(t)&&(this.tags.push(t),void this.save()))},edit(t,e,i){return this.editing={index:t,tag:e},this.$refs.editor.open(i.target.closest(".k-tag"))},focus(t="last"){this.$refs.navigation.move(t)},index(t){return this.tags.findIndex((e=>e.value===t.value))},isAllowed(t){return"object"==typeof t&&0!==t.value.length&&(!("options"===this.accept&&!this.option(t))&&!0!==this.isDuplicate(t))},isDuplicate(t){return!0===this.value.includes(t.value)},navigate(t){this.focus(t)},remove(t){this.tags.splice(t,1),0===this.tags.length?this.navigate("last"):this.navigate("prev"),this.save()},replace(t){const{index:e}=this.editing,i=this.tag(t);if(!1===this.isAllowed(i))return!1;this.$set(this.tags,e,i),this.save(),this.navigate(e),this.editing=null},open(){this.$refs.selector?(this.$refs.toggle.focus(),this.$refs.selector.open(this.$refs.toggle)):this.focus()},option(t){return this.options.find((e=>e.value===t.value))},select(){this.focus()},save(){this.$emit("input",this.tags.map((t=>t.value)))},sortByOptions(t){t=this.$helper.object.clone(t);const e=[];for(const i of this.options){const n=t.indexOf(i.value);-1!==n&&(e.push(i),t.splice(n,1))}for(const i of t)e.push(this.tag(i));return e},tag(t){"object"!=typeof t&&(t={value:t});const e=this.option(t);return"options"===this.accept?e:e||{text:this.$helper.string.escapeHTML(t.text??t.value),value:t.value}},toggle(t){if(t.metaKey||t.altKey||t.ctrlKey)return!1;String.fromCharCode(t.keyCode).match(/(\w)/g)&&this.$refs.selector.open()}}},(function(){var t=this,e=t._self._c;return e("k-navigate",{ref:"navigation",attrs:{axis:"list"===t.layout?"y":"x"}},[e("k-draggable",{staticClass:"k-tags",attrs:{list:t.tags,options:t.dragOptions,"data-layout":t.layout},on:{end:t.save},scopedSlots:t._u([{key:"footer",fn:function(){var i;return[t.showAddSelector?e("k-selector-dropdown",t._b({ref:"selector",attrs:{options:t.selectable},on:{create:function(e){return t.add(e)},select:function(e){return t.add(e)}}},"k-selector-dropdown",t.selectorOptions,!1),[e("k-button",{ref:"toggle",staticClass:"k-tags-toggle",attrs:{id:t.id,autofocus:t.autofocus,icon:"add",size:"xs"},nativeOn:{click:function(e){return t.$refs.selector.open()},keydown:[function(e){return t.toggle.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.navigate(t.tags.length-1)}]}})],1):t._e(),e("k-selector-dropdown",t._b({ref:"editor",attrs:{options:t.replacable,value:null==(i=t.editing)?void 0:i.tag.text},on:{create:function(e){return t.replace(e)},select:function(e){return t.replace(e)}}},"k-selector-dropdown",t.selectorOptions,!1))]},proxy:!0}])},t._l(t.tags,(function(i,n){return e("k-tag",{key:n,attrs:{disabled:t.disabled,image:i.image,removable:!t.disabled,name:"tag"},on:{remove:function(e){return t.remove(n,i)}},nativeOn:{click:function(t){t.stopPropagation()},keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.edit(n,i,e)},dblclick:function(e){return t.edit(n,i,e)}}},[e("span",{domProps:{innerHTML:t._s(i.text)}})])})),1)],1)}),[],!1,null,null,null,null).exports,Gn={mixins:[it,lt,Wn]};const Xn=at({mixins:[Ii,Gn],watch:{value:{handler(){this.$emit("invalid",this.$v.$invalid,this.$v)},immediate:!0}},methods:{focus(){this.$refs.tags.open()}},validations(){return{value:{required:!this.required||t.required,minLength:!this.min||t.minLength(this.min),maxLength:!this.max||t.maxLength(this.max)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-tags-input"},[e("k-tags",t._b({ref:"tags",on:{input:function(e){return t.$emit("input",e)}},nativeOn:{click:function(t){t.stopPropagation()}}},"k-tags",t.$props,!1))],1)}),[],!1,null,null,null,null).exports;const Zn=at({mixins:[Pe,Fe,Gn,Li],inheritAttrs:!1,computed:{hasNoOptions(){return 0===this.options.length&&"options"===this.accept}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-tags-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[t.hasNoOptions?e("k-empty",{attrs:{icon:t.icon,text:t.$t("options.none")}}):e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"tags"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Qn=at({extends:Zn,inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-multiselect-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[t.hasNoOptions?e("k-empty",{attrs:{icon:t.icon,text:t.$t("options.none")}}):e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"multiselect"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,ts={mixins:[ji,ot],props:{max:Number,min:Number,name:[Number,String],preselect:Boolean,step:[Number,String],value:{type:[Number,String],default:""}}};const es=at({mixins:[Ii,ts],data(){return{number:this.format(this.value),stepNumber:this.format(this.step),timeout:null,listeners:{...this.$listeners,input:t=>this.onInput(t.target.value),blur:this.onBlur}}},watch:{value(t){this.number=t},number:{immediate:!0,handler(){this.onInvalid()}}},mounted(){this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{decimals(){const t=Number(this.step??0);return Math.floor(t)===t?0:-1!==t.toString().indexOf("e")?parseInt(t.toFixed(16).split(".")[1].split("").reverse().join("")).toString().length:t.toString().split(".")[1].length??0},format(t){if(isNaN(t)||""===t)return"";const e=this.decimals();return t=e?parseFloat(t).toFixed(e):Number.isInteger(this.step)?parseInt(t):parseFloat(t)},clean(){this.number=this.format(this.number)},emit(t){t=parseFloat(t),isNaN(t)&&(t=""),t!==this.value&&this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.number=t,this.emit(t)},onBlur(){this.clean(),this.emit(this.number)},select(){this.$refs.input.select()}},validations(){return{value:{required:!this.required||t.required,min:!this.min||t.minValue(this.min),max:!this.max||t.maxValue(this.max)}}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({ref:"input",staticClass:"k-number-input",attrs:{step:t.stepNumber,type:"number"},domProps:{value:t.number},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.ctrlKey?t.clean.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"s",void 0,e.key,void 0)?null:e.metaKey?t.clean.apply(null,arguments):null}]}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,max:t.max,min:t.min,name:t.name,placeholder:t.placeholder,required:t.required},!1),t.listeners))}),[],!1,null,null,null,null).exports;const is=at({mixins:[Pe,Fe,ts],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-number-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"number"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const ns=at({mixins:[Pe,Fe],props:{empty:String,fields:[Object,Array],value:[String,Object]},data:()=>({object:{}}),computed:{hasFields(){return this.$helper.object.length(this.fields)>0},isEmpty(){return null===this.object||0===this.$helper.object.length(this.object)},isInvalid(){return!0===this.required&&this.isEmpty}},watch:{value:{handler(t){this.object=this.valueToObject(t)},immediate:!0}},methods:{add(){this.object=this.$helper.field.form(this.fields),this.save(),this.open()},cell(t,e){this.$set(this.object,t,e),this.save()},form(t){const e=this.$helper.field.subfields(this,this.fields);if(t)for(const i in e)e[i].autofocus=i===t;return e},remove(){this.object={},this.save()},open(t){if(this.disabled)return!1;this.$panel.drawer.open({component:"k-form-drawer",props:{breadcrumb:[],icon:"box",tab:"object",tabs:{object:{fields:this.form(t)}},title:this.label,value:this.object},on:{input:t=>{for(const e in t)this.$set(this.object,e,t[e]);this.save()}}})},save(){this.$emit("input",this.object)},valueToObject:t=>"object"!=typeof t?{}:t}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-object-field",scopedSlots:t._u([!t.disabled&&t.hasFields?{key:"options",fn:function(){return[t.isEmpty?e("k-button",{attrs:{icon:"add",size:"xs",variant:"filled"},on:{click:t.add}}):e("k-button",{attrs:{icon:"remove",size:"xs",variant:"filled"},on:{click:t.remove}})]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[t.hasFields?[t.isEmpty?e("k-empty",{attrs:{"data-invalid":t.isInvalid,icon:"box"},on:{click:t.add}},[t._v(" "+t._s(t.empty??t.$t("field.object.empty"))+" ")]):e("table",{staticClass:"k-table k-object-field-table",attrs:{"data-invalid":t.isInvalid}},[e("tbody",[t._l(t.fields,(function(i){return[i.saveable&&t.$helper.field.isVisible(i,t.value)?e("tr",{key:i.name,on:{click:function(e){return t.open(i.name)}}},[e("th",{attrs:{"data-has-button":"","data-mobile":"true"}},[e("button",{attrs:{type:"button"}},[t._v(t._s(i.label))])]),e("k-table-cell",{attrs:{column:i,field:i,mobile:!0,value:t.object[i.name]},on:{input:function(e){return t.cell(i.name,e)}}})],1):t._e()]}))],2)])]:[e("k-empty",{attrs:{icon:"box"}},[t._v(t._s(t.$t("fields.empty")))])]],2)}),[],!1,null,null,null,null).exports;const ss=at({extends:Ji,type:"pages",computed:{emptyProps(){return{icon:"page",text:this.empty??this.$t("field.pages.empty")}}}},null,null,!1,null,null,null,null).exports,os={mixins:[Ui],props:{autocomplete:{type:String,default:"new-password"},type:{type:String,default:"password"}}};const ls=at({extends:Hi,mixins:[os]},null,null,!1,null,null,null,null).exports;const rs=at({mixins:[Pe,Fe,os,Li],inheritAttrs:!1,props:{minlength:{type:Number,default:8},icon:{type:String,default:"key"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-password-field",attrs:{input:t._uid,counter:t.counterOptions},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options")]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"password"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,as={mixins:[ji,nt],props:{columns:Number,reset:{default:!0,type:Boolean},theme:String,value:[String,Number,Boolean]}};const us=at({mixins:[Ii,as],computed:{choices(){return this.options.map(((t,e)=>({autofocus:this.autofocus&&0===e,checked:this.value===t.value,disabled:this.disabled||t.disabled,info:t.info,label:t.text,name:this.name??this.id,type:"radio",value:t.value})))}},watch:{value:{handler(){this.validate()},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},select(){this.focus()},toggle(t){t===this.value&&this.reset&&!this.required&&this.$emit("input","")},validate(){this.$emit("invalid",this.$v.$invalid,this.$v)}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-radio-input k-grid",style:"--columns:"+t.columns,attrs:{"data-variant":"choices"}},t._l(t.choices,(function(i,n){return e("li",{key:n},[e("k-choice-input",t._b({on:{input:function(e){return t.$emit("input",i.value)}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(i.value)}}},"k-choice-input",i,!1))],1)})),0)}),[],!1,null,null,null,null).exports;const cs=at({mixins:[Pe,Fe,as],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-radio-field"},"k-field",t.$props,!1),[e("k-radio-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field"}},"k-radio-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,ds={mixins:[ji],props:{default:[Number,String],max:{type:Number,default:100},min:{type:Number,default:0},step:{type:[Number,String],default:1},tooltip:{type:[Boolean,Object],default:()=>({before:null,after:null})},value:[Number,String]}};const ps=at({mixins:[Ii,ds],computed:{baseline(){return this.min<0?0:this.min},label(){return this.required||this.value||0===this.value?this.format(this.position):"–"},position(){return this.value||0===this.value?this.value:this.default??this.baseline}},watch:{position(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){var t;null==(t=this.$el.querySelector("input"))||t.focus()},format(t){const e=document.lang?document.lang.replace("_","-"):"en",i=this.step.toString().split("."),n=i.length>1?i[1].length:0;return new Intl.NumberFormat(e,{minimumFractionDigits:n}).format(t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.$emit("input",t)}},validations(){return{position:{required:!this.required||t.required,min:!this.min||t.minValue(this.min),max:!this.max||t.maxValue(this.max)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-range-input",attrs:{"data-disabled":t.disabled}},[e("input",t._b({ref:"range",attrs:{type:"range"},domProps:{value:t.position},on:{input:function(e){return t.$emit("input",e.target.valueAsNumber)}}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,max:t.max,min:t.min,name:t.name,required:t.required,step:t.step},!1)),t.tooltip?e("output",{staticClass:"k-range-input-tooltip",attrs:{for:t.id}},[t.tooltip.before?e("span",{staticClass:"k-range-input-tooltip-before"},[t._v(t._s(t.tooltip.before))]):t._e(),e("span",{staticClass:"k-range-input-tooltip-text"},[t._v(t._s(t.label))]),t.tooltip.after?e("span",{staticClass:"k-range-input-tooltip-after"},[t._v(t._s(t.tooltip.after))]):t._e()]):t._e()])}),[],!1,null,null,null,null).exports;const hs=at({mixins:[Fe,Pe,ds],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-range-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"range"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,ms={mixins:[ji,nt,ot],props:{ariaLabel:String,default:String,empty:{type:[Boolean,String],default:!0},value:{type:[String,Number,Boolean],default:""}}};const fs=at({mixins:[Ii,ms],data(){return{selected:this.value,listeners:{...this.$listeners,click:t=>this.onClick(t),change:t=>this.onInput(t.target.value),input:()=>{}}}},computed:{emptyOption(){return this.placeholder??"—"},hasEmptyOption(){return!1!==this.empty&&!(this.required&&this.default)},isEmpty(){return null===this.selected||void 0===this.selected||""===this.selected},label(){const t=this.text(this.selected);return""===this.selected||null===this.selected||null===t?this.emptyOption:t}},watch:{value(t){this.selected=t,this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){this.$refs.input.focus()},onClick(t){t.stopPropagation(),this.$emit("click",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onInput(t){this.selected=t,this.$emit("input",this.selected)},select(){this.focus()},text(t){let e=null;for(const i of this.options)i.value==t&&(e=i.text);return e}},validations(){return{selected:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-select-input",attrs:{"data-disabled":t.disabled,"data-empty":t.isEmpty}},[e("select",t._g({ref:"input",staticClass:"k-select-input-native",attrs:{id:t.id,autofocus:t.autofocus,"aria-label":t.ariaLabel,disabled:t.disabled,name:t.name,required:t.required},domProps:{value:t.selected}},t.listeners),[t.hasEmptyOption?e("option",{attrs:{disabled:t.required,value:""}},[t._v(" "+t._s(t.emptyOption)+" ")]):t._e(),t._l(t.options,(function(i){return e("option",{key:i.value,attrs:{disabled:i.disabled},domProps:{value:i.value}},[t._v(" "+t._s(i.text)+" ")])}))],2),t._v(" "+t._s(t.label)+" ")])}),[],!1,null,null,null,null).exports;const gs=at({mixins:[Pe,Fe,ms],inheritAttrs:!1,props:{icon:{type:String,default:"angle-down"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-select-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"select"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,ks={mixins:[Ui],props:{allow:{type:String,default:""},formData:{type:Object,default:()=>({})},sync:{type:String}}};const bs=at({extends:Hi,mixins:[ks],data(){return{slug:this.sluggify(this.value),slugs:this.$panel.language.rules??this.$panel.system.slugs,syncValue:null}},watch:{formData:{handler(t){return!this.disabled&&(!(!this.sync||void 0===t[this.sync])&&(t[this.sync]!=this.syncValue&&(this.syncValue=t[this.sync],void this.onInput(this.sluggify(this.syncValue)))))},deep:!0,immediate:!0},value(t){(t=this.sluggify(t))!==this.slug&&(this.slug=t,this.$emit("input",this.slug))}},methods:{sluggify(t){return this.$helper.slug(t,[this.slugs,this.$panel.system.ascii],this.allow)},onInput(t){this.slug=this.sluggify(t),this.$emit("input",this.slug)}}},(function(){var t=this;return(0,t._self._c)("input",t._g(t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-text-input",attrs:{autocomplete:"off",spellcheck:"false",type:"text"},domProps:{value:t.slug}},"input",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,pattern:t.pattern,placeholder:t.placeholder,required:t.required},!1),t.listeners))}),[],!1,null,null,null,null).exports;const vs=at({mixins:[Pe,Fe,ks],inheritAttrs:!1,props:{icon:{type:String,default:"url"},path:{type:String},wizard:{type:[Boolean,Object],default:!1}},data(){return{slug:this.value}},computed:{preview(){return void 0!==this.help?this.help:void 0!==this.path?this.path+this.value:null}},watch:{value(){this.slug=this.value}},methods:{focus(){this.$refs.input.focus()},onWizard(){var t;this.formData[null==(t=this.wizard)?void 0:t.field]&&(this.slug=this.formData[this.wizard.field])}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-slug-field",attrs:{input:t._uid,help:t.preview},scopedSlots:t._u([t.wizard&&t.wizard.text?{key:"options",fn:function(){return[e("k-button",{attrs:{text:t.wizard.text,icon:"sparkling"},on:{click:t.onWizard}})]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,value:t.slug,theme:"field",type:"slug"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const ys=at({mixins:[Pe],inheritAttrs:!1,props:{autofocus:Boolean,columns:Object,duplicate:{type:Boolean,default:!0},empty:String,fields:[Array,Object],limit:Number,max:Number,min:Number,prepend:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},sortBy:String,value:{type:Array,default:()=>[]}},data:()=>({items:[],page:1}),computed:{dragOptions(){return{disabled:!this.isSortable,fallbackClass:"k-sortable-row-fallback"}},index(){return this.limit?(this.page-1)*this.limit+1:1},more(){return!0!==this.disabled&&!(this.max&&this.items.length>=this.max)},hasFields(){return this.$helper.object.length(this.fields)>0},isInvalid(){return!0!==this.disabled&&(!!(this.min&&this.items.lengththis.max))},isSortable(){return!this.sortBy&&(!this.limit&&(!0!==this.disabled&&(!(this.items.length<=1)&&!1!==this.sortable)))},pagination(){let t=0;return this.limit&&(t=(this.page-1)*this.limit),{page:this.page,offset:t,limit:this.limit,total:this.items.length,align:"center",details:!0}},options(){if(this.disabled)return[];let t=[],e=this.duplicate&&this.more;return t.push({icon:"edit",text:this.$t("edit"),click:"edit"}),t.push({disabled:!e,icon:"copy",text:this.$t("duplicate"),click:"duplicate"}),t.push("-"),t.push({icon:"trash",text:e?this.$t("delete"):null,click:"remove"}),t},paginatedItems(){return this.limit?this.items.slice(this.pagination.offset,this.pagination.offset+this.limit):this.items}},watch:{value:{handler(t){t!==this.items&&(this.items=this.toItems(t))},immediate:!0}},methods:{add(t=null){if(!1===this.more)return!1;(t=t??this.$helper.field.form(this.fields))._id=t._id??this.$helper.uuid(),!0===this.prepend?this.items.unshift(t):this.items.push(t),this.save(),this.open(t)},close(){this.$panel.drawer.close(this._uid)},focus(){var t,e;null==(e=null==(t=this.$refs.add)?void 0:t.focus)||e.call(t)},form(t){const e=this.$helper.field.subfields(this,this.fields);if(t)for(const i in e)e[i].autofocus=i===t;return e},findIndex(t){return this.items.findIndex((e=>e._id===t._id))},navigate(t,e){const i=this.findIndex(t);!0!==this.disabled&&-1!==i&&this.open(this.items[i+e],null,!0)},open(t,e,i=!1){const n=this.findIndex(t);if(!0===this.disabled||-1===n)return!1;this.$panel.drawer.open({component:"k-structure-drawer",id:this._uid,props:{icon:this.icon??"list-bullet",next:this.items[n+1],prev:this.items[n-1],tabs:{content:{fields:this.form(e)}},title:this.label,value:t},replace:i,on:{input:e=>{const i=this.findIndex(t);this.$panel.drawer.props.next=this.items[i+1],this.$panel.drawer.props.prev=this.items[i-1],this.$set(this.items,i,e),this.save()},next:()=>{this.navigate(t,1)},prev:()=>{this.navigate(t,-1)},remove:()=>{this.remove(t)}}})},option(t,e){switch(t){case"remove":this.remove(e);break;case"duplicate":this.add({...e,_id:this.$helper.uuid()});break;case"edit":this.open(e)}},paginate({page:t}){this.page=t},remove(t){const e=this.findIndex(t);this.disabled||-1===e||this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.structure.delete.confirm")},on:{submit:()=>{this.items.splice(e,1),this.save(),this.$panel.dialog.close(),this.close(),0===this.paginatedItems.length&&this.page>1&&this.page--}}})},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.structure.delete.confirm.all")},on:{submit:()=>{this.page=1,this.items=[],this.save(),this.$panel.dialog.close()}}})},save(t=this.items){this.$emit("input",t)},sort(t){return this.sortBy?t.sortBy(this.sortBy):t},toItems(t){return!1===Array.isArray(t)?[]:(t=t.map((t=>({_id:t._id??this.$helper.uuid(),...t}))),this.sort(t))}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-structure-field",nativeOn:{click:function(t){t.stopPropagation()}},scopedSlots:t._u([t.hasFields&&!t.disabled?{key:"options",fn:function(){return[e("k-button-group",{attrs:{layout:"collapsed"}},[e("k-button",{attrs:{autofocus:t.autofocus,disabled:!t.more,responsive:!0,text:t.$t("add"),icon:"add",variant:"filled",size:"xs"},on:{click:function(e){return t.add()}}}),e("k-button",{attrs:{icon:"dots",size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{options:[{click:()=>t.add(),disabled:!t.more,icon:"add",text:t.$t("add")},{click:()=>t.removeAll(),disabled:0===t.items.length||t.disabled,icon:"trash",text:t.$t("delete.all")}],"align-x":"end"}})],1)]},proxy:!0}:null],null,!0)},"k-field",t.$props,!1),[t.hasFields?[0===t.items.length?e("k-empty",{attrs:{"data-invalid":t.isInvalid,icon:"list-bullet"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.empty??t.$t("field.structure.empty"))+" ")]):[e("k-table",{attrs:{columns:t.columns,disabled:t.disabled,fields:t.fields,empty:t.$t("field.structure.empty"),index:t.index,options:t.options,pagination:!!t.limit&&t.pagination,rows:t.paginatedItems,sortable:t.isSortable,"data-invalid":t.isInvalid},on:{cell:function(e){return t.open(e.row,e.columnIndex)},input:t.save,option:t.option,paginate:t.paginate}}),t.more?e("footer",{staticClass:"k-bar",attrs:{"data-align":"center"}},[e("k-button",{attrs:{title:t.$t("add"),icon:"add",size:"xs",variant:"filled"},on:{click:function(e){return t.add()}}})],1):t._e()]]:[e("k-empty",{attrs:{icon:"list-bullet"}},[t._v(t._s(t.$t("fields.empty")))])]],2)}),[],!1,null,null,null,null).exports,$s={mixins:[Ui],props:{autocomplete:{default:"tel"},placeholder:{default:()=>window.panel.$t("tel.placeholder")},type:{default:"tel"}}};const ws=at({extends:Hi,mixins:[$s]},null,null,!1,null,null,null,null).exports;const xs=at({mixins:[Pe,Fe,$s],inheritAttrs:!1,props:{icon:{type:String,default:"phone"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-tel-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"tel"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const _s=at({mixins:[Pe,Fe,Ui,Li],inheritAttrs:!1,computed:{inputType(){return this.$helper.isComponent(`k-${this.type}-input`)?this.type:"text"}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-text-field",attrs:{input:t._uid,counter:t.counterOptions},scopedSlots:t._u([{key:"options",fn:function(){return[t._t("options")]},proxy:!0}],null,!0)},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,type:t.inputType,theme:"field"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Ss={props:{buttons:{type:[Array,Boolean],default:!0},uploads:[Boolean,Object,Array]}};const Cs=at({mixins:[Ss],computed:{commands(){return{headlines:{label:this.$t("toolbar.button.headings"),icon:"title",dropdown:[{label:this.$t("toolbar.button.heading.1"),icon:"h1",click:()=>this.command("prepend","#")},{label:this.$t("toolbar.button.heading.2"),icon:"h2",click:()=>this.command("prepend","##")},{label:this.$t("toolbar.button.heading.3"),icon:"h3",click:()=>this.command("prepend","###")}]},bold:{label:this.$t("toolbar.button.bold"),icon:"bold",click:()=>this.command("toggle","**"),shortcut:"b"},italic:{label:this.$t("toolbar.button.italic"),icon:"italic",click:()=>this.command("toggle","*"),shortcut:"i"},link:{label:this.$t("toolbar.button.link"),icon:"url",click:()=>this.command("dialog","link"),shortcut:"k"},email:{label:this.$t("toolbar.button.email"),icon:"email",click:()=>this.command("dialog","email"),shortcut:"e"},file:{label:this.$t("toolbar.button.file"),icon:"attachment",click:()=>this.command("file"),dropdown:this.uploads?[{label:this.$t("toolbar.button.file.select"),icon:"check",click:()=>this.command("file")},{label:this.$t("toolbar.button.file.upload"),icon:"upload",click:()=>this.command("upload")}]:void 0},code:{label:this.$t("toolbar.button.code"),icon:"code",click:()=>this.command("toggle","`")},ul:{label:this.$t("toolbar.button.ul"),icon:"list-bullet",click:()=>this.command("insert",((t,e)=>e.split("\n").map((t=>"- "+t)).join("\n")))},ol:{label:this.$t("toolbar.button.ol"),icon:"list-numbers",click:()=>this.command("insert",((t,e)=>e.split("\n").map(((t,e)=>e+1+". "+t)).join("\n")))}}},default:()=>["headlines","|","bold","italic","code","|","link","email","file","|","ul","ol"],layout(){var t;if(!1===this.buttons)return[];const e=[],i=Array.isArray(this.buttons)?this.buttons:this.default,n={...this.commands,...window.panel.plugins.textareaButtons??{}};for(const s of i)if("|"===s)e.push("|");else if(n[s]){const i=n[s];i.click=null==(t=i.click)?void 0:t.bind(this),e.push(i)}return e}},methods:{close(){this.$refs.toolbar.close()},command(t,...e){this.$emit("command",t,...e)},shortcut(t,e){var i;const n=this.layout.find((e=>e.shortcut===t));n&&(e.preventDefault(),null==(i=n.click)||i.call(n))}}},(function(){return(0,this._self._c)("k-toolbar",{ref:"toolbar",staticClass:"k-textarea-toolbar",attrs:{buttons:this.layout}})}),[],!1,null,null,null,null).exports,Os={mixins:[Ss,ji,W,tt,et,ot,rt],props:{endpoints:Object,preselect:Boolean,size:String,theme:String,value:String}};const As=at({mixins:[Ii,Os],data:()=>({over:!1}),computed:{uploadOptions(){const t=this.restoreSelectionCallback();return{url:this.$panel.urls.api+"/"+this.endpoints.field+"/upload",multiple:!1,on:{cancel:t,done:e=>{t((()=>this.insertUpload(e)))}}}}},watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus(),this.$props.preselect&&this.select()},methods:{dialog(t){const e=this.restoreSelectionCallback();this.$panel.dialog.open({component:"k-toolbar-"+t+"-dialog",props:{value:this.parseSelection()},on:{cancel:e,submit:t=>{this.$panel.dialog.close(),e((()=>this.insert(t)))}}})},file(){const t=this.restoreSelectionCallback();this.$panel.dialog.open({component:"k-files-dialog",props:{endpoint:this.endpoints.field+"/files",multiple:!1},on:{cancel:t,submit:e=>{t((()=>this.insertFile(e))),this.$panel.dialog.close()}}})},focus(){this.$refs.input.focus()},insert(t){const e=this.$refs.input,i=e.value;"function"==typeof t&&(t=t(this.$refs.input,this.selection())),setTimeout((()=>{if(e.focus(),document.execCommand("insertText",!1,t),e.value===i){const i=e.selectionStart,n=e.selectionEnd,s=i===n?"end":"select";e.setRangeText(t,i,n,s)}this.$emit("input",e.value)}))},insertFile(t){(null==t?void 0:t.length)>0&&this.insert(t.map((t=>t.dragText)).join("\n\n"))},insertUpload(t){this.insertFile(t),this.$events.emit("model.update")},onCommand(t,...e){if("function"!=typeof this[t])return console.warn(t+" is not a valid command");this[t](...e)},onDrop(t){if(this.uploads&&this.$helper.isUploadEvent(t))return this.$panel.upload.open(t.dataTransfer.files,this.uploadOptions);"text"===this.$panel.drag.type&&(this.focus(),this.insert(this.$panel.drag.data))},onFocus(t){this.$emit("focus",t)},onInput(t){this.$emit("input",t.target.value)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},onOut(){this.$refs.input.blur(),this.over=!1},onOver(t){if(this.uploads&&this.$helper.isUploadEvent(t))return t.dataTransfer.dropEffect="copy",this.focus(),void(this.over=!0);"text"===this.$panel.drag.type&&(t.dataTransfer.dropEffect="copy",this.focus(),this.over=!0)},onShortcut(t){var e;!1!==this.buttons&&"Meta"!==t.key&&"Control"!==t.key&&(null==(e=this.$refs.toolbar)||e.shortcut(t.key,t))},onSubmit(t){return this.$emit("submit",t)},parseSelection(){const t=this.selection();if(0===(null==t?void 0:t.length))return{href:null,title:null};let e;e=this.$panel.config.kirbytext?/^\(link:\s*(?.*?)(?:\s*text:\s*(?.*?))?\)$/is:/^(\[(?.*?)\]\((?.*?)\))|(<(?.*?)>)$/is;const i=e.exec(t);return null!==i?{href:i.groups.url??i.groups.link,title:i.groups.text??null}:{href:null,title:t}},prepend(t){this.insert(t+" "+this.selection())},restoreSelectionCallback(){const t=this.$refs.input.selectionStart,e=this.$refs.input.selectionEnd;return i=>{setTimeout((()=>{this.$refs.input.setSelectionRange(t,e),i&&i()}))}},select(){this.$refs.select()},selection(){return this.$refs.input.value.substring(this.$refs.input.selectionStart,this.$refs.input.selectionEnd)},toggle(t,e){e=e??t;const i=this.selection();return i.startsWith(t)&&i.endsWith(e)?this.insert(i.slice(t.length).slice(0,i.length-t.length-e.length)):this.wrap(t,e)},upload(){this.$panel.upload.pick(this.uploadOptions)},wrap(t,e){this.insert(t+this.selection()+(e??t))}},validations(){return{value:{required:!this.required||t.required,minLength:!this.minlength||t.minLength(this.minlength),maxLength:!this.maxlength||t.maxLength(this.maxlength)}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-textarea-input",attrs:{"data-over":t.over,"data-size":t.size}},[e("div",{staticClass:"k-textarea-input-wrapper"},[t.buttons&&!t.disabled?e("k-textarea-toolbar",{ref:"toolbar",attrs:{buttons:t.buttons,disabled:t.disabled,uploads:t.uploads},on:{command:t.onCommand},nativeOn:{mousedown:function(t){t.preventDefault()}}}):t._e(),e("k-autosize",[e("textarea",t._b({directives:[{name:"direction",rawName:"v-direction"}],ref:"input",staticClass:"k-textarea-input-native",attrs:{"data-font":t.font},on:{click:function(e){var i;null==(i=t.$refs.toolbar)||i.close()},focus:t.onFocus,input:t.onInput,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.metaKey?t.onSubmit.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.ctrlKey?t.onSubmit.apply(null,arguments):null},function(e){return e.metaKey?e.ctrlKey||e.shiftKey||e.altKey?null:t.onShortcut.apply(null,arguments):null},function(e){return e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onShortcut.apply(null,arguments):null}],dragover:t.onOver,dragleave:t.onOut,drop:t.onDrop}},"textarea",{autofocus:t.autofocus,disabled:t.disabled,id:t.id,minlength:t.minlength,name:t.name,placeholder:t.placeholder,required:t.required,spellcheck:t.spellcheck,value:t.value},!1))])],1)])}),[],!1,null,null,null,null).exports;const Ms=at({mixins:[Pe,Fe,Os,Li],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-textarea-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,type:"textarea",theme:"field"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,js={props:{display:{type:String,default:"HH:mm"},max:String,min:String,step:{type:Object,default:()=>({size:5,unit:"minute"})},type:{type:String,default:"time"},value:String}};const Is=at({mixins:[Ri,js],computed:{inputType:()=>"time"}},null,null,!1,null,null,null,null).exports;const Ts=at({mixins:[Pe,Fe,js],inheritAttrs:!1,props:{icon:{type:String,default:"clock"},times:{type:Boolean,default:!0}},methods:{focus(){this.$refs.input.focus()},select(t){var e;this.$emit("input",t),null==(e=this.$refs.times)||e.close()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-time-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"time"},on:{input:function(e){return t.$emit("input",e??"")}},scopedSlots:t._u([t.times?{key:"icon",fn:function(){return[e("k-button",{staticClass:"k-input-icon-button",attrs:{disabled:t.disabled,icon:t.icon??"clock",title:t.$t("time.select")},on:{click:function(e){return t.$refs.times.toggle()}}}),e("k-dropdown-content",{ref:"times",attrs:{"align-x":"end"}},[e("k-timeoptions-input",{attrs:{display:t.display,value:t.value},on:{input:t.select}})],1)]},proxy:!0}:null],null,!0)},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,Es={props:{autofocus:Boolean,disabled:Boolean,id:[Number,String],text:{type:[Array,String]},required:Boolean,value:Boolean}};const Ls=at({mixins:[Ii,Es],computed:{label(){const t=this.text??[this.$t("off"),this.$t("on")];return Array.isArray(t)?this.value?t[1]:t[0]:t}},watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{onEnter(t){"Enter"===t.key&&this.$refs.input.click()},onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.$refs.input.focus()}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this;return(0,t._self._c)("k-choice-input",{ref:"input",staticClass:"k-toggle-input",attrs:{id:t.id,checked:t.value,disabled:t.disabled,label:t.label,type:"checkbox",variant:"toggle"},on:{input:function(e){return t.$emit("input",e)}}})}),[],!1,null,null,null,null).exports;const Ds=at({mixins:[Pe,Fe,Es],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-toggle-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"toggle"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Bs={mixins:[ji],props:{columns:Number,grow:Boolean,labels:Boolean,options:Array,reset:Boolean,value:[String,Number,Boolean]}};const qs=at({mixins:[Ii,Bs],watch:{value(){this.onInvalid()}},mounted(){this.onInvalid(),this.$props.autofocus&&this.focus()},methods:{focus(){var t;null==(t=this.$el.querySelector("input[checked]")||this.$el.querySelector("input"))||t.focus()},onClick(t){t===this.value&&this.reset&&!this.required&&this.$emit("input","")},onInput(t){this.$emit("input",t)},onInvalid(){this.$emit("invalid",this.$v.$invalid,this.$v)},select(){this.focus()}},validations(){return{value:{required:!this.required||t.required}}}},(function(){var t=this,e=t._self._c;return t.options.length?e("ul",{staticClass:"k-toggles-input",style:"--options:"+(t.columns??t.options.length),attrs:{"data-invalid":t.$v.$invalid,"data-labels":t.labels}},t._l(t.options,(function(i,n){return e("li",{key:n,attrs:{"data-disabled":t.disabled}},[e("input",{staticClass:"input-hidden",attrs:{id:t.id+"-"+n,"aria-label":i.text,disabled:t.disabled,name:t.id,type:"radio"},domProps:{value:i.value,checked:t.value===i.value},on:{click:function(e){return t.onClick(i.value)},change:function(e){return t.onInput(i.value)}}}),e("label",{attrs:{for:t.id+"-"+n,title:i.text}},[i.icon?e("k-icon",{attrs:{type:i.icon}}):t._e(),t.labels||!i.icon?e("span",{staticClass:"k-toggles-text",domProps:{innerHTML:t._s(i.text)}}):t._e()],1)])})),0):e("k-empty",{attrs:{icon:"info",theme:"info"}},[t._v(t._s(t.$t("options.none")))])}),[],!1,null,null,null,null).exports;const Ps=at({mixins:[Pe,Fe,Bs],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()},onInput(t){this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-toggles-field"},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",class:{grow:t.grow},attrs:{id:t._uid,theme:"field",type:"toggles"}},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports,Ns={mixins:[Ui],props:{autocomplete:{type:String,default:"url"},placeholder:{type:String,default:()=>window.panel.$t("url.placeholder")},type:{type:String,default:"url"}}};const zs=at({extends:Hi,mixins:[Ns]},null,null,!1,null,null,null,null).exports;const Fs=at({mixins:[Pe,Fe,Ns],inheritAttrs:!1,props:{link:{type:Boolean,default:!0},icon:{type:String,default:"url"}},methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-url-field",attrs:{input:t._uid}},"k-field",t.$props,!1),[e("k-input",t._g(t._b({ref:"input",attrs:{id:t._uid,theme:"field",type:"url"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.link?e("k-button",{staticClass:"k-input-icon-button",attrs:{icon:t.icon,link:t.value,title:t.$t("open"),tabindex:"-1",target:"_blank"}}):t._e()]},proxy:!0}])},"k-input",t.$props,!1),t.$listeners))],1)}),[],!1,null,null,null,null).exports;const Rs=at({extends:Ji,type:"users",computed:{emptyProps(){return{icon:"users",text:this.empty??this.$t("field.users.empty")}}}},null,null,!1,null,null,null,null).exports;const Ys=at({mixins:[Pe,Fe,Rn,Li],inheritAttrs:!1,methods:{focus(){this.$refs.input.focus()}}},(function(){var t=this,e=t._self._c;return e("k-field",t._b({staticClass:"k-writer-field",attrs:{input:t._uid,counter:t.counterOptions}},"k-field",t.$props,!1),[e("k-input",t._b({ref:"input",attrs:{after:t.after,before:t.before,icon:t.icon,theme:"field",type:"writer"},on:{input:function(e){return t.$emit("input",e)}}},"k-input",t.$props,!1))],1)}),[],!1,null,null,null,null).exports,Us={install(t){t.component("k-blocks-field",Mi),t.component("k-checkboxes-field",Di),t.component("k-color-field",zi),t.component("k-date-field",Yi),t.component("k-email-field",Wi),t.component("k-files-field",Gi),t.component("k-gap-field",Xi),t.component("k-headline-field",Zi),t.component("k-info-field",Qi),t.component("k-layout-field",tn),t.component("k-line-field",en),t.component("k-link-field",nn),t.component("k-list-field",Kn),t.component("k-multiselect-field",Qn),t.component("k-number-field",is),t.component("k-object-field",ns),t.component("k-pages-field",ss),t.component("k-password-field",rs),t.component("k-radio-field",cs),t.component("k-range-field",hs),t.component("k-select-field",gs),t.component("k-slug-field",vs),t.component("k-structure-field",ys),t.component("k-tags-field",Zn),t.component("k-text-field",_s),t.component("k-textarea-field",Ms),t.component("k-tel-field",xs),t.component("k-time-field",Ts),t.component("k-toggle-field",Ds),t.component("k-toggles-field",Ps),t.component("k-url-field",Fs),t.component("k-users-field",Rs),t.component("k-writer-field",Ys)}},Hs={mixins:[ds],props:{max:{default:1,type:Number},min:{default:0,type:Number},step:{default:.01,type:Number},tooltip:{default:!1,type:[Boolean,Object]}}};const Vs=at({mixins:[ps,Hs]},(function(){var t=this;return(0,t._self._c)("k-range-input",t._b({staticClass:"k-alpha-input",on:{input:function(e){return t.$emit("input",e)}}},"k-range-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const Ks=at({mixins:[ji],props:{max:String,min:String,value:{default:"",type:String}},data(){return{maxdate:null,mindate:null,month:null,selected:null,today:this.$library.dayjs(),year:null}},computed:{numberOfDays(){return this.toDate().daysInMonth()},firstWeekday(){const t=this.toDate().day();return t>0?t:7},weekdays(){return["mon","tue","wed","thu","fri","sat","sun"].map((t=>this.$t("days."+t)))},weeks(){const t=this.firstWeekday-1;return Math.ceil((this.numberOfDays+t)/7)},monthnames(){return["january","february","march","april","may","june","july","august","september","october","november","december"].map((t=>this.$t("months."+t)))},months(){var t=[];return this.monthnames.forEach(((e,i)=>{t.push({value:i,text:e})})),t},years(){const t=this.year-20,e=this.year+20;return this.toOptions(t,e)}},watch:{max:{handler(t,e){t!==e&&(this.maxdate=this.$library.dayjs.interpret(t,"date"))},immediate:!0},min:{handler(t,e){t!==e&&(this.mindate=this.$library.dayjs.interpret(t,"date"))},immediate:!0},value:{handler(t,e){t!==e&&(this.selected=this.$library.dayjs.interpret(t,"date"),this.show(this.selected))},immediate:!0}},methods:{days(t){let e=[];const i=7*(t-1)+1,n=i+7;for(let s=i;sthis.numberOfDays;e.push(i?"":t)}return e},isDisabled(t){const e=this.toDate(t);return this.disabled||e.isBefore(this.mindate,"day")||e.isAfter(this.maxdate,"day")},isSelected(t){return this.toDate(t).isSame(this.selected,"day")},isToday(t){return this.toDate(t).isSame(this.today,"day")},onNext(){const t=this.toDate().add(1,"month");this.show(t)},onPrev(){const t=this.toDate().subtract(1,"month");this.show(t)},select(t){this.$emit("input",(null==t?void 0:t.toISO("date"))??null)},show(t){this.month=(t??this.today).month(),this.year=(t??this.today).year()},toDate(t=1,e=this.month){return this.$library.dayjs(`${this.year}-${e+1}-${t}`)},toOptions(t,e){for(var i=[],n=t;n<=e;n++)i.push({value:n,text:this.$helper.pad(n)});return i}}},(function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"k-calendar-input"},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("date.select")))]),e("nav",[e("k-button",{attrs:{title:t.$t("prev"),icon:"angle-left"},on:{click:t.onPrev}}),e("span",{staticClass:"k-calendar-selects"},[e("k-select-input",{attrs:{"aria-label":t.$t("month"),autofocus:t.autofocus,options:t.months,empty:!1,required:!0,value:t.month},on:{input:function(e){t.month=Number(e)}}}),e("k-select-input",{attrs:{"aria-label":t.$t("year"),options:t.years,empty:!1,required:!0,value:t.year},on:{input:function(e){t.year=Number(e)}}})],1),e("k-button",{attrs:{title:t.$t("next"),icon:"angle-right"},on:{click:t.onNext}})],1),e("table",{key:t.year+"-"+t.month,staticClass:"k-calendar-table"},[e("thead",[e("tr",t._l(t.weekdays,(function(i){return e("th",{key:"weekday_"+i},[t._v(" "+t._s(i)+" ")])})),0)]),e("tbody",t._l(t.weeks,(function(i){return e("tr",{key:"week_"+i},t._l(t.days(i),(function(i,n){return e("td",{key:"day_"+n,staticClass:"k-calendar-day",attrs:{"aria-current":!!t.isToday(i)&&"date","aria-selected":!!t.isSelected(i)&&"date"}},[i?e("k-button",{attrs:{disabled:t.isDisabled(i),text:i},on:{click:function(e){t.select(t.toDate(i))}}}):t._e()],1)})),0)})),0),e("tfoot",[e("tr",[e("td",{staticClass:"k-calendar-today",attrs:{colspan:"7"}},[e("k-button",{attrs:{disabled:t.disabled,text:t.$t("today")},on:{click:function(e){return t.select(t.today)}}})],1)])])]),e("input",{staticClass:"sr-only",attrs:{id:t.id,disabled:t.disabled,min:t.min,max:t.max,name:t.name,required:t.required,tabindex:"-1",type:"date"},domProps:{value:t.value}})])}),[],!1,null,null,null,null).exports;const Ws=at({mixins:[Ii,{mixins:[ji],props:{checked:{type:Boolean},info:{type:String},label:{type:String},type:{default:"checkbox",type:String},value:{type:[Boolean,Number,String]},variant:{type:String}}}]},(function(){var t=this,e=t._self._c;return e("label",{staticClass:"k-choice-input",attrs:{"aria-disabled":t.disabled}},[e("input",t._b({class:{"sr-only":"invisible"===t.variant},attrs:{"data-variant":t.variant},on:{input:function(e){return t.$emit("input",e.target.checked)}}},"input",{autofocus:t.autofocus,id:t.id,checked:t.checked,disabled:t.disabled,name:t.name,required:t.required,type:t.type,value:t.value},!1)),t.label||t.info?e("span",{staticClass:"k-choice-input-label"},[e("span",{staticClass:"k-choice-input-label-text",domProps:{innerHTML:t._s(t.label)}}),t.info?e("span",{staticClass:"k-choice-input-label-info",domProps:{innerHTML:t._s(t.info)}}):t._e()]):t._e()])}),[],!1,null,null,null,null).exports;const Js=at({extends:Ws},null,null,!1,null,null,null,null).exports;const Gs=at({mixins:[us,{mixins:[as],props:{format:{type:String,default:"hex",validator:t=>["hex","rgb","hsl"].includes(t)},value:{type:String}}}],computed:{choices(){return this.options.map((t=>({...t,title:t.text??t.value,value:this.colorToString(t.value)})))}},methods:{colorToString(t){try{return this.$library.colors.toString(t,this.format)}catch{return t}}}},(function(){var t=this,e=t._self._c;return t.choices.length?e("fieldset",{staticClass:"k-coloroptions-input",attrs:{disabled:t.disabled}},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("options")))]),e("ul",t._l(t.choices,(function(i,n){return e("li",{key:n},[e("label",{attrs:{title:i.title}},[e("input",{staticClass:"input-hidden",attrs:{autofocus:t.autofocus&&0===n,disabled:t.disabled,name:t.name??t._uid,required:t.required,type:"radio"},domProps:{checked:i.value===t.value,value:i.value},on:{click:function(e){return t.toggle(i.value)},input:function(e){return t.$emit("input",i.value)}}}),e("k-color-frame",{attrs:{color:i.value}})],1)])})),0)]):t._e()}),[],!1,null,null,null,null).exports;const Xs=at({mixins:[Ii,{mixins:[ji,nt],props:{alpha:{default:!0,type:Boolean},format:{default:"hex",type:String,validator:t=>["hex","rgb","hsl"].includes(t)},value:{type:[Object,String]}}}],data:()=>({color:{h:0,s:0,v:1,a:1},formatted:null}),computed:{coords(){return this.value?{x:100*this.color.s,y:100*(1-this.color.v)}:null},hsl(){try{const t=this.$library.colors.convert(this.color,"hsl");return{h:t.h,s:(100*t.s).toFixed()+"%",l:(100*t.l).toFixed()+"%",a:t.a}}catch{return{h:0,s:"0%",l:"0%",a:1}}}},watch:{value:{handler(t,e){if(t===e||t===this.formatted)return;const i=this.$library.colors.parseAs(t??"","hsv");i?(this.formatted=this.$library.colors.toString(i,this.format),this.color=i):(this.formatted=null,this.color={h:0,s:0,v:1,a:1})},immediate:!0}},methods:{between:(t,e,i)=>Math.min(Math.max(t,e),i),emit(){return this.formatted=this.$library.colors.toString(this.color,this.format),this.$emit("input",this.formatted)},focus(){this.$refs.coords.focus()},setAlpha(t){this.color.a=this.alpha?this.between(Number(t),0,1):1,this.emit()},setCoords(t){if(!t)return this.$emit("input","");const e=Math.round(t.x),i=Math.round(t.y);this.color.s=this.between(e/100,0,1),this.color.v=this.between(1-i/100,0,1),this.emit()},setHue(t){this.color.h=this.between(Number(t),0,360),this.emit()}}},(function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"k-colorpicker-input",style:{"--h":t.hsl.h,"--s":t.hsl.s,"--l":t.hsl.l,"--a":t.hsl.a}},[e("legend",{staticClass:"sr-only"},[t._v(t._s(t.$t("color")))]),e("k-coords-input",{ref:"coords",attrs:{autofocus:t.autofocus,disabled:t.disabled,required:t.required,value:t.coords},on:{input:function(e){return t.setCoords(e)}}}),e("label",{attrs:{"aria-label":t.$t("hue")}},[e("k-hue-input",{attrs:{disabled:t.disabled,required:t.required,value:t.color.h},on:{input:function(e){return t.setHue(e)}}})],1),t.alpha?e("label",{attrs:{"aria-label":t.$t("alpha")}},[e("k-alpha-input",{attrs:{disabled:t.disabled,required:t.required,value:t.color.a},on:{input:function(e){return t.setAlpha(e)}}})],1):t._e(),e("k-coloroptions-input",{attrs:{disabled:t.disabled,format:t.format,options:t.options,required:t.required,value:t.value},on:{input:function(e){return t.$emit("input",e)}}}),e("input",{staticClass:"input-hidden",attrs:{name:t.name,required:t.required,tabindex:"-1",type:"text"},domProps:{value:t.formatted}})],1)}),[],!1,null,null,null,null).exports;const Zs=at({mixins:[Ii,{mixins:[ji],props:{reset:{default:!0,type:Boolean},value:{default:()=>({x:0,y:0}),type:Object}}}],data:()=>({x:0,y:0}),watch:{value:{handler(t){const e=this.parse(t);this.x=(null==e?void 0:e.x)??0,this.y=(null==e?void 0:e.y)??0},immediate:!0}},methods:{focus(){var t;null==(t=this.$el.querySelector("button"))||t.focus()},getCoords:(t,e)=>({x:Math.min(Math.max(t.clientX-e.left,0),e.width),y:Math.min(Math.max(t.clientY-e.top,0),e.height)}),onDelete(){this.reset&&!this.required&&this.$emit("input",null)},onDrag(t){if(0!==t.button)return;const e=t=>this.onMove(t),i=()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",i)};window.addEventListener("mousemove",e),window.addEventListener("mouseup",i)},onEnter(){var t;null==(t=this.$el.form)||t.requestSubmit()},onInput(t,e){if(t.preventDefault(),t.stopPropagation(),this.disabled)return!1;this.x=Math.min(Math.max(parseFloat(e.x??this.x??0),0),100),this.y=Math.min(Math.max(parseFloat(e.y??this.y??0),0),100),this.$emit("input",{x:this.x,y:this.y})},onKeys(t){const e=t.shiftKey?10:1,i={ArrowUp:{y:this.y-e},ArrowDown:{y:this.y+e},ArrowLeft:{x:this.x-e},ArrowRight:{x:this.x+e}};i[t.key]&&this.onInput(t,i[t.key])},async onMove(t){const e=this.$el.getBoundingClientRect(),i=this.getCoords(t,e),n=i.x/e.width*100,s=i.y/e.height*100;this.onInput(t,{x:n,y:s}),await this.$nextTick(),this.focus()},parse(t){if("object"==typeof t)return t;const e={"top left":{x:0,y:0},"top center":{x:50,y:0},"top right":{x:100,y:0},"center left":{x:0,y:50},center:{x:50,y:50},"center center":{x:50,y:50},"center right":{x:100,y:50},"bottom left":{x:0,y:100},"bottom center":{x:50,y:100},"bottom right":{x:100,y:100}};if(e[t])return e[t];const i=t.split(",").map((t=>t.trim()));return{x:i[0],y:i[1]??0}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-coords-input",attrs:{"aria-disabled":t.disabled,"data-empty":!t.value},on:{mousedown:t.onDrag,click:t.onMove,keydown:t.onKeys}},[t._t("default"),e("button",{staticClass:"k-coords-input-thumb",style:{left:`${t.x}%`,top:`${t.y}%`},attrs:{id:t.id,autofocus:t.autofocus,disabled:t.disabled},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onEnter.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.onDelete.apply(null,arguments)}]}}),e("input",{staticClass:"input-hidden",attrs:{name:t.name,required:t.required,tabindex:"-1",type:"text"},domProps:{value:t.value?[t.value.x,t.value.y]:null}})],2)}),[],!1,null,null,null,null).exports,Qs={mixins:[ds],props:{max:{default:360,type:Number},min:{default:0,type:Number},step:{default:1,type:Number},tooltip:{default:!1,type:[Boolean,Object]}}};const to=at({mixins:[ps,Qs]},(function(){var t=this;return(0,t._self._c)("k-range-input",t._b({staticClass:"k-hue-input",on:{input:function(e){return t.$emit("input",e)}}},"k-range-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const eo=at({extends:Xn,mixins:[{mixins:[Gn],props:{accept:{default:"string",type:String}}}]},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-multiselect-input"},[e("k-tags",t._b({ref:"tags",on:{input:function(e){return t.$emit("input",e)}},nativeOn:{click:function(t){t.stopPropagation()}}},"k-tags",t.$props,!1))],1)}),[],!1,null,null,null,null).exports;const io=at({mixins:[qi,{mixins:[Bi],props:{autocomplete:{default:"off"},placeholder:{default:()=>window.panel.$t("search")+" …",type:String},spellcheck:{default:!1}}}]},(function(){var t=this;return(0,t._self._c)("k-string-input",t._b({staticClass:"k-search-input",attrs:{type:"search"},on:{input:function(e){return t.$emit("input",e)}}},"k-string-input",t.$props,!1))}),[],!1,null,null,null,null).exports;const no=at({mixins:[Ii,{mixins:[ji]}],props:{display:{type:String,default:"HH:mm"},value:String},computed:{day(){return this.formatTimes([6,7,8,9,10,11,"-",12,13,14,15,16,17])},night(){return this.formatTimes([18,19,20,21,22,23,"-",0,1,2,3,4,5])}},methods:{focus(){this.$el.querySelector("button").focus()},formatTimes(t){return t.map((t=>{if("-"===t)return t;const e=this.$library.dayjs(t+":00","H:mm");return{display:e.format(this.display),select:e.toISO("time")}}))},select(t){this.$emit("input",t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-timeoptions-input"},[e("div",[e("h3",[e("k-icon",{attrs:{type:"sun"}}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v(t._s(t.$t("day")))])],1),e("ul",t._l(t.day,(function(i,n){return e("li",{key:i.select},["-"===i?e("hr"):e("k-button",{attrs:{autofocus:t.autofocus&&0===n,disabled:t.disabled,selected:i.select===t.value&&"time"},on:{click:function(e){return t.select(i.select)}}},[t._v(" "+t._s(i.display)+" ")])],1)})),0)]),e("div",[e("h3",[e("k-icon",{attrs:{type:"moon"}}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v(t._s(t.$t("night")))])],1),e("ul",t._l(t.night,(function(i){return e("li",{key:i.select},["-"===i?e("hr"):e("k-button",{attrs:{disabled:t.disabled,selected:i.select===t.value&&"time"},on:{click:function(e){return t.select(i.select)}}},[t._v(" "+t._s(i.display)+" ")])],1)})),0)])])}),[],!1,null,null,null,null).exports,so={install(t){t.component("k-alpha-input",Vs),t.component("k-calendar-input",Ks),t.component("k-checkbox-input",Js),t.component("k-checkboxes-input",Ei),t.component("k-choice-input",Ws),t.component("k-colorname-input",Ni),t.component("k-coloroptions-input",Gs),t.component("k-colorpicker-input",Xs),t.component("k-coords-input",Zs),t.component("k-date-input",Ri),t.component("k-email-input",Ki),t.component("k-hue-input",to),t.component("k-list-input",Vn),t.component("k-multiselect-input",eo),t.component("k-number-input",es),t.component("k-password-input",ls),t.component("k-radio-input",us),t.component("k-range-input",ps),t.component("k-search-input",io),t.component("k-select-input",fs),t.component("k-slug-input",bs),t.component("k-string-input",qi),t.component("k-tags-input",Xn),t.component("k-tel-input",ws),t.component("k-text-input",Hi),t.component("k-textarea-input",As),t.component("k-time-input",Is),t.component("k-timeoptions-input",no),t.component("k-toggle-input",Ls),t.component("k-toggles-input",qs),t.component("k-url-input",zs),t.component("k-writer-input",Yn),t.component("k-calendar",Ks),t.component("k-times",no)}};const oo=at({props:{attrs:[Array,Object],columns:Array,disabled:Boolean,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,id:String,isSelected:Boolean,layouts:Array,settings:Object},computed:{options(){return[{click:()=>this.$emit("prepend"),icon:"angle-up",text:this.$t("insert.before")},{click:()=>this.$emit("append"),icon:"angle-down",text:this.$t("insert.after")},"-",{click:()=>this.openSettings(),icon:"settings",text:this.$t("settings"),when:!1===this.$helper.object.isEmpty(this.settings)},{click:()=>this.$emit("duplicate"),icon:"copy",text:this.$t("duplicate")},{click:()=>this.$emit("change"),disabled:1===this.layouts.length,icon:"dashboard",text:this.$t("field.layout.change")},"-",{click:()=>this.$emit("copy"),icon:"template",text:this.$t("copy")},{click:()=>this.$emit("paste"),icon:"download",text:this.$t("paste.after")},"-",{click:()=>this.remove(),icon:"trash",text:this.$t("field.layout.delete")}]},tabs(){let t=this.settings.tabs;for(const[e,i]of Object.entries(t))for(const n in i.fields)t[e].fields[n].endpoints={field:this.endpoints.field+"/fields/"+n,section:this.endpoints.section,model:this.endpoints.model};return t}},methods:{openSettings(){this.$panel.drawer.open({component:"k-form-drawer",props:{icon:"settings",tabs:this.tabs,title:this.$t("settings"),value:this.attrs},on:{input:t=>this.$emit("updateAttrs",t)}})},remove(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.layout.delete.confirm")},on:{submit:()=>{this.$emit("remove"),this.$panel.dialog.close()}}})}}},(function(){var t=this,e=t._self._c;return e("section",{staticClass:"k-layout",attrs:{"data-selected":t.isSelected,tabindex:"0"},on:{click:function(e){return t.$emit("select")}}},[e("k-grid",{staticClass:"k-layout-columns"},t._l(t.columns,(function(i,n){return e("k-layout-column",t._b({key:i.id,attrs:{endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets},on:{input:function(e){return t.$emit("updateColumn",{column:i,columnIndex:n,blocks:e})}}},"k-layout-column",i,!1))})),1),t.disabled?t._e():e("nav",{staticClass:"k-layout-toolbar"},[t.settings?e("k-button",{staticClass:"k-layout-toolbar-button",attrs:{title:t.$t("settings"),icon:"settings"},on:{click:t.openSettings}}):t._e(),e("k-button",{staticClass:"k-layout-toolbar-button",attrs:{icon:"angle-down"},on:{click:function(e){return t.$refs.options.toggle()}}}),e("k-dropdown-content",{ref:"options",attrs:{options:t.options,"align-x":"end"}}),e("k-sort-handle")],1)],1)}),[],!1,null,null,null,null).exports;const lo=at({props:{blocks:Array,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,id:String,isSelected:Boolean,width:{type:String,default:"1/1"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-column k-layout-column",style:"--width: "+t.width,attrs:{id:t.id,tabindex:"0"},on:{dblclick:function(e){return t.$refs.blocks.choose(t.blocks.length)}}},[e("k-blocks",{ref:"blocks",attrs:{endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets,value:t.blocks,group:"layout"},on:{input:function(e){return t.$emit("input",e)}},nativeOn:{dblclick:function(t){t.stopPropagation()}}})],1)}),[],!1,null,null,null,null).exports;const ro=at({props:{disabled:Boolean,empty:String,endpoints:Object,fieldsetGroups:Object,fieldsets:Object,layouts:Array,max:Number,selector:Object,settings:Object,value:Array},data(){return{current:null,nextIndex:null,rows:this.value,selected:null}},computed:{draggableOptions(){return{id:this._uid,handle:!0,list:this.rows}}},watch:{value(){this.rows=this.value}},methods:{copy(t,e){if(0===this.rows.length)return!1;const i=void 0!==e?this.rows[e]:this.rows;this.$helper.clipboard.write(JSON.stringify(i),t),this.$panel.notification.success({message:this.$t("copy.success",{count:i.length??1}),icon:"template"})},change(t,e){const i=e.columns.map((t=>t.width)),n=this.layouts.findIndex((t=>t.toString()===i.toString()));this.$panel.dialog.open({component:"k-layout-selector",props:{label:this.$t("field.layout.change"),layouts:this.layouts,selector:this.selector,value:this.layouts[n]},on:{submit:i=>{this.onChange(i,n,{rowIndex:t,layoutIndex:n,layout:e}),this.$panel.dialog.close()}}})},duplicate(t,e){const i=this.$helper.clone(e),n=this.updateIds(i);this.rows.splice(t+1,0,...n),this.save()},async onAdd(t){let e=await this.$api.post(this.endpoints.field+"/layout",{columns:t});this.rows.splice(this.nextIndex,0,e),this.save()},async onChange(t,e,i){if(e===this.layouts[i.layoutIndex])return;const n=i.layout,s=await this.$api.post(this.endpoints.field+"/layout",{attrs:n.attrs,columns:t}),o=n.columns.filter((t=>{var e;return(null==(e=null==t?void 0:t.blocks)?void 0:e.length)>0})),l=[];if(0===o.length)l.push(s);else{const t=Math.ceil(o.length/s.columns.length)*s.columns.length;for(let e=0;e{var n;return t.blocks=(null==(n=o[i+e])?void 0:n.blocks)??[],t})),t.columns.filter((t=>{var e;return null==(e=null==t?void 0:t.blocks)?void 0:e.length})).length&&l.push(t)}}this.rows.splice(i.rowIndex,1,...l),this.save()},async paste(t,e=this.rows.length){let i=await this.$api.post(this.endpoints.field+"/layout/paste",{json:this.$helper.clipboard.read(t)});i.length&&(this.rows.splice(e,0,...i),this.save()),this.$panel.notification.success({message:this.$t("paste.success",{count:i.length}),icon:"download"})},pasteboard(t){this.$panel.dialog.open({component:"k-block-pasteboard",on:{paste:e=>this.paste(e,t)}})},remove(t){const e=this.rows.findIndex((e=>e.id===t.id));-1!==e&&this.$delete(this.rows,e),this.save()},removeAll(){this.$panel.dialog.open({component:"k-remove-dialog",props:{text:this.$t("field.layout.delete.confirm.all")},on:{submit:()=>{this.rows=[],this.save(),this.$panel.dialog.close()}}})},save(){this.$emit("input",this.rows)},select(t){if(this.nextIndex=t,1===this.layouts.length)return this.onAdd(this.layouts[0]);this.$panel.dialog.open({component:"k-layout-selector",props:{layouts:this.layouts,selector:this.selector,value:null},on:{submit:t=>{this.onAdd(t),this.$panel.dialog.close()}}})},updateAttrs(t,e){this.rows[t].attrs=e,this.save()},updateColumn(t){this.rows[t.index].columns[t.columnIndex].blocks=t.blocks,this.save()},updateIds(t){return!1===Array.isArray(t)&&(t=[t]),t.map((t=>(t.id=this.$helper.uuid(),t.columns=t.columns.map((t=>(t.id=this.$helper.uuid(),t.blocks=t.blocks.map((t=>(t.id=this.$helper.uuid(),t))),t))),t)))}}},(function(){var t=this,e=t._self._c;return e("div",[t.rows.length?[e("k-draggable",t._b({staticClass:"k-layouts",on:{sort:t.save}},"k-draggable",t.draggableOptions,!1),t._l(t.rows,(function(i,n){return e("k-layout",t._b({key:i.id,attrs:{disabled:t.disabled,endpoints:t.endpoints,"fieldset-groups":t.fieldsetGroups,fieldsets:t.fieldsets,"is-selected":t.selected===i.id,layouts:t.layouts,settings:t.settings},on:{append:function(e){return t.select(n+1)},change:function(e){return t.change(n,i)},copy:function(e){return t.copy(e,n)},duplicate:function(e){return t.duplicate(n,i)},paste:function(e){return t.pasteboard(n+1)},prepend:function(e){return t.select(n)},remove:function(e){return t.remove(i)},select:function(e){t.selected=i.id},updateAttrs:function(e){return t.updateAttrs(n,e)},updateColumn:function(e){return t.updateColumn({layout:i,index:n,...e})}}},"k-layout",i,!1))})),1)]:e("k-empty",{staticClass:"k-layout-empty",attrs:{icon:"dashboard"},on:{click:function(e){return t.select(0)}}},[t._v(" "+t._s(t.empty??t.$t("field.layout.empty"))+" ")])],2)}),[],!1,null,null,null,null).exports;const ao=at({mixins:[Et],inheritAttrs:!1,props:{cancelButton:{default:!1},label:{default(){return this.$t("field.layout.select")},type:String},layouts:{type:Array},selector:Object,submitButton:{default:!1},value:{type:Array}}},(function(){var t,e,i=this,n=i._self._c;return n("k-dialog",i._b({staticClass:"k-layout-selector",attrs:{size:(null==(t=i.selector)?void 0:t.size)??"medium"},on:{cancel:function(t){return i.$emit("cancel")},submit:function(t){return i.$emit("submit",i.value)}}},"k-dialog",i.$props,!1),[n("h3",{staticClass:"k-label"},[i._v(i._s(i.label))]),n("k-navigate",{staticClass:"k-layout-selector-options",style:"--columns:"+Number((null==(e=i.selector)?void 0:e.columns)??3),attrs:{axis:"x"}},i._l(i.layouts,(function(t,e){return n("button",{key:e,staticClass:"k-layout-selector-option",attrs:{"aria-current":i.value===t,"aria-label":t.join(","),value:t},on:{click:function(e){return i.$emit("input",t)}}},[n("k-grid",{attrs:{"aria-hidden":""}},i._l(t,(function(t,e){return n("k-column",{key:e,attrs:{width:t}})})),1)],1)})),0)],1)}),[],!1,null,null,null,null).exports,uo={install(t){t.component("k-layout",oo),t.component("k-layout-column",lo),t.component("k-layouts",ro),t.component("k-layout-selector",ao)}},co={inheritAttrs:!1,props:{column:{default:()=>({}),type:Object},field:{default:()=>({}),type:Object},value:{}}},po={props:{html:{type:Boolean}}};const ho=at({mixins:[po],inheritAttrs:!1,props:{bubbles:[Array,String]},computed:{items(){let t=this.bubbles;return"string"==typeof t&&(t=t.split(",")),t.map((t=>"string"===t?{text:t}:t))}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-bubbles"},t._l(t.items,(function(i,n){return e("li",{key:n},[e("k-bubble",t._b({attrs:{html:t.html}},"k-bubble",i,!1))],1)})),0)}),[],!1,null,null,null,null).exports;const mo=at({mixins:[co,po],props:{value:{default:()=>[],type:[Array,String]}},computed:{bubbles(){let t=this.value;const e=this.column.options??this.field.options??[];return"string"==typeof t&&(t=t.split(",")),(t??[]).map((t=>{"string"==typeof t&&(t={value:t,text:t});for(const i of e)i.value===t.value&&(t.text=i.text);return t}))}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-bubbles-field-preview",class:t.$options.class},[e("k-bubbles",{attrs:{bubbles:t.bubbles,html:t.html}})],1)}),[],!1,null,null,null,null).exports;const fo=at({extends:mo,inheritAttrs:!1,class:"k-array-field-preview",computed:{bubbles(){return[{text:1===this.value.length?`1 ${this.$t("entry")}`:`${this.value.length} ${this.$t("entries")}`}]}}},null,null,!1,null,null,null,null).exports;const go=at({mixins:[co],props:{value:String},computed:{text(){var t;if(!this.value)return;const e=this.$library.colors.toString(this.value,this.field.format,this.field.alpha),i=null==(t=this.field.options)?void 0:t.find((t=>this.$library.colors.toString(t.value,this.field.format,this.field.alpha)===e));return i?i.text:null}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-color-field-preview"},[e("k-color-frame",{attrs:{color:t.value}}),t.text?[t._v(" "+t._s(t.text)+" ")]:t._e()],2)}),[],!1,null,null,null,null).exports;const ko=at({mixins:[co],inheritAttrs:!1,computed:{text(){return this.value}}},(function(){var t=this;return(0,t._self._c)("p",{staticClass:"k-text-field-preview",class:t.$options.class},[t._v(" "+t._s(t.column.before)+" "),t._t("default",(function(){return[t._v(t._s(t.text))]})),t._v(" "+t._s(t.column.after)+" ")],2)}),[],!1,null,null,null,null).exports;const bo=at({extends:ko,props:{value:String},class:"k-date-field-preview",computed:{display(){return this.column.display??this.field.display},format(){var t;let e=this.display??"YYYY-MM-DD";return(null==(t=this.time)?void 0:t.display)&&(e+=" "+this.time.display),e},parsed(){return this.$library.dayjs(this.value)},text(){var t;return null==(t=this.parsed)?void 0:t.format(this.format)},time(){return this.column.time??this.field.time}}},null,null,!1,null,null,null,null).exports;const vo=at({mixins:[co],props:{value:[String,Object]},computed:{link(){return"object"==typeof this.value?this.value.href:this.value},text(){return"object"==typeof this.value?this.value.text:this.link}}},(function(){var t=this,e=t._self._c;return e("p",{staticClass:"k-url-field-preview",class:t.$options.class,attrs:{"data-link":t.link}},[t._v(" "+t._s(t.column.before)+" "),e("k-link",{attrs:{to:t.link},nativeOn:{click:function(t){t.stopPropagation()}}},[e("span",[t._v(t._s(t.text))])]),t._v(" "+t._s(t.column.after)+" ")],1)}),[],!1,null,null,null,null).exports;const yo=at({extends:vo,class:"k-email-field-preview"},null,null,!1,null,null,null,null).exports;const $o=at({extends:mo,class:"k-files-field-preview",props:{html:{type:Boolean,default:!0}},computed:{bubbles(){return this.value.map((t=>({text:t.filename,link:t.link,image:t.image})))}}},null,null,!1,null,null,null,null).exports;const wo=at({mixins:[co],props:{value:Object},computed:{status(){var t;return{...this.$helper.page.status(null==(t=this.value)?void 0:t.status),...this.value}}}},(function(){var t=this,e=t._self._c;return t.value?e("k-button",t._b({staticClass:"k-flag-field-preview",attrs:{size:"md"}},"k-button",t.status,!1)):t._e()}),[],!1,null,null,null,null).exports;const xo=at({mixins:[co],props:{value:String},computed:{html(){return this.value}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-html-field-preview",class:t.$options.class},[t._v(" "+t._s(t.column.before)+" "),e("k-text",{attrs:{html:t.html}}),t._v(" "+t._s(t.column.after)+" ")],1)}),[],!1,null,null,null,null).exports;const _o=at({mixins:[co],props:{value:[Object]}},(function(){var t=this,e=t._self._c;return t.value?e("k-item-image",{staticClass:"k-image-field-preview",attrs:{image:t.value}}):t._e()}),[],!1,null,null,null,null).exports;const So=at({extends:mo,class:"k-object-field-preview",props:{value:[Array,Object]},computed:{bubbles(){return this.value?[{text:"{ ... }"}]:[]}}},null,null,!1,null,null,null,null).exports;const Co=at({extends:mo,inheritAttrs:!1,class:"k-pages-field-preview",props:{html:{type:Boolean,default:!0}}},null,null,!1,null,null,null,null).exports;const Oo=at({extends:bo,class:"k-time-field-preview",computed:{format(){return this.display??"HH:mm"},parsed(){return this.$library.dayjs.iso(this.value,"time")},text(){var t;return null==(t=this.parsed)?void 0:t.format(this.format)}}},null,null,!1,null,null,null,null).exports;const Ao=at({mixins:[co],computed:{text(){return!1!==this.column.text?this.field.text:null}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-toggle-field-preview"},[e("k-toggle-input",{attrs:{text:t.text,value:t.value},on:{input:function(e){return t.$emit("input",e)}},nativeOn:{click:function(t){t.stopPropagation()}}})],1)}),[],!1,null,null,null,null).exports;const Mo=at({extends:mo,class:"k-users-field-preview",computed:{bubble(){return this.value.map((t=>({text:t.username,link:t.link,image:t.image})))}}},null,null,!1,null,null,null,null).exports,jo={install(t){t.component("k-array-field-preview",fo),t.component("k-bubbles-field-preview",mo),t.component("k-color-field-preview",go),t.component("k-date-field-preview",bo),t.component("k-email-field-preview",yo),t.component("k-files-field-preview",$o),t.component("k-flag-field-preview",wo),t.component("k-html-field-preview",xo),t.component("k-image-field-preview",_o),t.component("k-object-field-preview",So),t.component("k-pages-field-preview",Co),t.component("k-text-field-preview",ko),t.component("k-toggle-field-preview",Ao),t.component("k-time-field-preview",Oo),t.component("k-url-field-preview",vo),t.component("k-users-field-preview",Mo),t.component("k-list-field-preview",xo),t.component("k-writer-field-preview",xo),t.component("k-checkboxes-field-preview",mo),t.component("k-multiselect-field-preview",mo),t.component("k-radio-field-preview",mo),t.component("k-select-field-preview",mo),t.component("k-tags-field-preview",mo),t.component("k-toggles-field-preview",mo)}};const Io=at({mixins:[{props:{buttons:{type:Array,default:()=>[]},theme:{type:String,default:"light"}}}],methods:{close(){for(const t in this.$refs){const e=this.$refs[t][0];"function"==typeof(null==e?void 0:e.close)&&e.close()}}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-toolbar",attrs:{"data-theme":t.theme}},[t._l(t.buttons,(function(i,n){var s;return["|"===i?e("hr",{key:n}):i.when??1?e("k-button",{key:n,class:["k-toolbar-button",i.class],attrs:{current:i.current,disabled:i.disabled,icon:i.icon,title:i.label,tabindex:"0"},on:{click:function(e){var s,o;(null==(s=i.dropdown)?void 0:s.length)?t.$refs[n+"-dropdown"][0].toggle():null==(o=i.click)||o.call(i,e)}},nativeOn:{keydown:function(t){var e;null==(e=i.key)||e.call(i,t)}}}):t._e(),(i.when??1)&&(null==(s=i.dropdown)?void 0:s.length)?e("k-dropdown-content",{key:n+"-dropdown",ref:n+"-dropdown",refInFor:!0,attrs:{options:i.dropdown,theme:"dark"===t.theme?"light":"dark"}}):t._e()]}))],2)}),[],!1,null,null,null,null).exports;const To=at({extends:Bt,methods:{submit(){const t=this.values.href??"",e=this.values.title??"";return this.$panel.config.kirbytext?(null==e?void 0:e.length)>0?this.$emit("submit",`(email: ${t} text: ${e})`):this.$emit("submit",`(email: ${t})`):(null==e?void 0:e.length)>0?this.$emit("submit",`[${e}](mailto:${t})`):this.$emit("submit",`<${t}>`)}}},null,null,!1,null,null,null,null).exports;const Eo=at({extends:Vt,props:{fields:{default:()=>({href:{label:window.panel.$t("link"),type:"link",placeholder:window.panel.$t("url.placeholder"),icon:"url"},title:{label:window.panel.$t("link.text"),type:"text",icon:"title"}})}},methods:{submit(){const t=this.values.href??"",e=this.values.title??"";return this.$panel.config.kirbytext?(null==e?void 0:e.length)>0?this.$emit("submit",`(link: ${t} text: ${e})`):this.$emit("submit",`(link: ${t})`):(null==e?void 0:e.length)>0?this.$emit("submit",`[${e}](${t})`):this.$emit("submit",`<${t}>`)}}},null,null,!1,null,null,null,null).exports,Lo={install(t){t.component("k-toolbar",Io),t.component("k-textarea-toolbar",Cs),t.component("k-toolbar-email-dialog",To),t.component("k-toolbar-link-dialog",Eo)}};const Do=at({props:{editor:{required:!0,type:Object},inline:{default:!0,type:Boolean},marks:{default:()=>["bold","italic","underline","strike","code","|","link","email","|","clear"],type:[Array,Boolean]},nodes:{default:!0,type:[Array,Boolean]}},data:()=>({isOpen:!1,position:{x:0,y:0}}),computed:{activeNode(){return Object.values(this.nodeButtons).find((t=>this.isNodeActive(t)))??!1},buttons(){var t,e,i;const n=[];if(this.hasNodes){const s=[];let o=0;for(const n in this.nodeButtons){const l=this.nodeButtons[n];s.push({current:(null==(t=this.activeNode)?void 0:t.id)===l.id,disabled:!1===(null==(i=null==(e=this.activeNode)?void 0:e.when)?void 0:i.includes(l.name)),icon:l.icon,label:l.label,click:()=>this.command(l.command??n)}),!0===l.separator&&o!==Object.keys(this.nodeButtons).length-1&&s.push("-"),o++}n.push({current:Boolean(this.activeNode),icon:this.activeNode.icon??"title",dropdown:s})}if(this.hasNodes&&this.hasMarks&&n.push("|"),this.hasMarks)for(const s in this.markButtons){const t=this.markButtons[s];"|"!==t?n.push({current:this.editor.activeMarks.includes(s),icon:t.icon,label:t.label,click:e=>this.command(t.command??s,e)}):n.push("|")}return n},hasMarks(){return this.$helper.object.length(this.markButtons)>0},hasNodes(){return this.$helper.object.length(this.nodeButtons)>1},markButtons(){const t=this.editor.buttons("mark");if(!1===this.marks||0===this.$helper.object.length(t))return{};if(!0===this.marks)return t;const e={};for(const[i,n]of this.marks.entries())"|"===n?e["divider"+i]="|":t[n]&&(e[n]=t[n]);return e},nodeButtons(){const t=this.editor.buttons("node");if(!1===this.nodes||0===this.$helper.object.length(t))return{};if("block+"!==this.editor.nodes.doc.content&&t.paragraph&&delete t.paragraph,!0===this.nodes)return t;const e={};for(const i of this.nodes)t[i]&&(e[i]=t[i]);return e}},methods:{close(t){t&&!1!==this.$el.contains(t.relatedTarget)||(this.isOpen=!1)},command(t,...e){this.$emit("command",t,...e)},isNodeActive(t){if(!1===this.editor.activeNodes.includes(t.name))return!1;if("paragraph"===t.name)return!1===this.editor.activeNodes.includes("listItem")&&!1===this.editor.activeNodes.includes("quote");if(t.attrs){if(void 0===Object.values(this.editor.activeNodeAttrs).find((e=>JSON.stringify(e)===JSON.stringify(t.attrs))))return!1}return!0},open(){this.isOpen=!0,this.inline&&this.$nextTick(this.setPosition)},setPosition(){const t=this.$el.getBoundingClientRect(),e=this.editor.element.getBoundingClientRect(),i=document.querySelector(".k-panel-menu").getBoundingClientRect(),{from:n,to:s}=this.editor.selection,o=this.editor.view.coordsAtPos(n),l=this.editor.view.coordsAtPos(s,!0),r=new DOMRect(o.left,o.top,l.right-o.left,l.bottom-o.top);let a=r.x-e.x+r.width/2-t.width/2,u=r.y-e.y-t.height-5;if(t.widthe.width&&(a=e.width-t.width);else{const n=e.x+a,s=n+t.width,o=i.width+20,l=20;nwindow.innerWidth-l&&(a-=s-(window.innerWidth-l))}this.position={x:a,y:u}}}},(function(){var t=this,e=t._self._c;return t.isOpen||!t.inline?e("k-toolbar",{ref:"toolbar",staticClass:"k-writer-toolbar",style:{top:t.position.y+"px",left:t.position.x+"px"},attrs:{buttons:t.buttons,"data-inline":t.inline,theme:t.inline?"dark":"light"}}):t._e()}),[],!1,null,null,null,null).exports,Bo={install(t){t.component("k-writer-toolbar",Do),t.component("k-writer",Fn)}},qo={install(t){customElements.define("k-autosize",Ee),t.component("k-counter",De),t.component("k-autocomplete",Le),t.component("k-form",Be),t.component("k-form-buttons",qe),t.component("k-field",Ne),t.component("k-fieldset",ze),t.component("k-input",Re),t.component("k-login",Ye),t.component("k-login-code",Ue),t.component("k-selector",je),t.component("k-upload",He),t.component("k-login-alert",Ve),t.component("k-structure-form",Ke),t.use(Ai),t.use(so),t.use(Us),t.use(uo),t.use(jo),t.use(Lo),t.use(Bo)}},Po=()=>F((()=>import("./IndexView.min.js")),["./IndexView.min.js","./vendor.min.js"],import.meta.url),No=()=>F((()=>import("./DocsView.min.js")),["./DocsView.min.js","./Docs.min.js","./vendor.min.js"],import.meta.url),zo=()=>F((()=>import("./PlaygroundView.min.js")),["./PlaygroundView.min.js","./Docs.min.js","./vendor.min.js"],import.meta.url),Fo={install(t){t.component("k-lab-index-view",Po),t.component("k-lab-docs-view",No),t.component("k-lab-playground-view",zo)}};const Ro=at({props:{cover:Boolean,ratio:String},computed:{ratioPadding(){return this.$helper.ratio(this.ratio)}},created(){window.panel.deprecated(" will be removed in a future version. Use the instead.")}},(function(){var t=this;return(0,t._self._c)("span",{staticClass:"k-aspect-ratio",style:{"padding-bottom":t.ratioPadding},attrs:{"data-cover":t.cover}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Yo=at({props:{align:{type:String,default:"start"}},mounted(){(this.$slots.left||this.$slots.center||this.$slots.right)&&window.panel.deprecated(": left/centre/right slots will be removed in a future version. Use with default slot only instead.")}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-bar",attrs:{"data-align":t.align}},[t.$slots.left||t.$slots.center||t.$slots.right?[t.$slots.left?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"left"}},[t._t("left")],2):t._e(),t.$slots.center?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"center"}},[t._t("center")],2):t._e(),t.$slots.right?e("div",{staticClass:"k-bar-slot",attrs:{"data-position":"right"}},[t._t("right")],2):t._e()]:t._t("default")],2)}),[],!1,null,null,null,null).exports;const Uo=at({props:{align:{type:String,default:"start"},button:Boolean,height:String,icon:String,theme:{type:String},text:String,html:{type:Boolean}},computed:{element(){return this.button?"button":"div"},type(){return this.button?"button":null}}},(function(){var t=this,e=t._self._c;return e(t.element,{tag:"component",staticClass:"k-box",style:t.height?"--box-height: "+t.height:null,attrs:{"data-align":t.align,"data-theme":t.theme,type:t.type}},[t.icon?e("k-icon",{attrs:{type:t.icon}}):t._e(),t._t("default",(function(){return[t.html?e("k-text",{attrs:{html:t.text}}):e("k-text",[t._v(" "+t._s(t.text)+" ")])]}),null,{html:t.html,text:t.text})],2)}),[],!1,null,null,null,null).exports;const Ho=at({inheritAttrs:!1,props:{back:String,color:String,element:{type:String,default:"li"},html:{type:Boolean},image:Object,link:String,text:String},created(){this.back&&window.panel.deprecated(": `back` prop will be removed in a future version. Use the `--bubble-back` CSS property instead."),this.color&&window.panel.deprecated(": `color` prop will be removed in a future version. Use the `--bubble-text` CSS property instead.")}},(function(){var t=this,e=t._self._c;return e(t.link?"k-link":"p",{tag:"component",staticClass:"k-bubble",style:{color:t.$helper.color(t.color),background:t.$helper.color(t.back)},attrs:{to:t.link,"data-has-text":Boolean(t.text)},nativeOn:{click:function(t){t.stopPropagation()}}},[t._t("image",(function(){var i;return[(null==(i=t.image)?void 0:i.src)?e("k-image-frame",t._b({},"k-image-frame",t.image,!1)):t.image?e("k-icon-frame",t._b({},"k-icon-frame",t.image,!1)):e("span")]})),t.text?[t.html?e("span",{staticClass:"k-bubble-text",domProps:{innerHTML:t._s(t.text)}}):e("span",{staticClass:"k-bubble-text"},[t._v(t._s(t.text))])]:t._e()],2)}),[],!1,null,null,null,null).exports;const Vo=at({props:{width:{type:String,default:"1/1"},sticky:Boolean}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-column",style:"--width:"+t.width,attrs:{"data-sticky":t.sticky}},[t.sticky?e("div",[t._t("default")],2):t._t("default")],2)}),[],!1,null,null,null,null).exports,Ko={props:{element:{type:String,default:"div"},fit:String,ratio:String,cover:Boolean,back:String,theme:String}};const Wo=at({mixins:[Ko],inheritAttrs:!1,computed:{background(){return this.$helper.color(this.back)}}},(function(){var t=this;return(0,t._self._c)(t.element,{tag:"compontent",staticClass:"k-frame",style:{"--fit":t.fit??(t.cover?"cover":"contain"),"--ratio":t.ratio,"--back":t.background},attrs:{"data-theme":t.theme}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Jo=at({mixins:[{mixins:[Ko],props:{color:String}}],inheritAttrs:!1},(function(){var t=this;return(0,t._self._c)("k-frame",t._b({staticClass:"k-color-frame",style:`color: ${t.color}`},"k-frame",t.$props,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Go=at({props:{disabled:{type:Boolean}},emits:["drop"],data:()=>({files:[],dragging:!1,over:!1}),methods:{cancel(){this.reset()},reset(){this.dragging=!1,this.over=!1},onDrop(t){return!0===this.disabled||!1===this.$helper.isUploadEvent(t)?this.reset():(this.$events.emit("dropzone.drop"),this.files=t.dataTransfer.files,this.$emit("drop",this.files),void this.reset())},onEnter(t){!1===this.disabled&&this.$helper.isUploadEvent(t)&&(this.dragging=!0)},onLeave(){this.reset()},onOver(t){!1===this.disabled&&this.$helper.isUploadEvent(t)&&(t.dataTransfer.dropEffect="copy",this.over=!0)}}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-dropzone",attrs:{"data-dragging":t.dragging,"data-over":t.over},on:{dragenter:t.onEnter,dragleave:t.onLeave,dragover:t.onOver,drop:t.onDrop}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Xo=at({props:{gutter:String,variant:String},created(){this.gutter&&window.panel.deprecated(': the `gutter` prop will be removed in a future version. Use `style="gap: "` or `variant` prop instead.')}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-grid",attrs:{"data-gutter":t.gutter,"data-variant":t.variant}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Zo=at({props:{editable:{type:Boolean}},created(){(this.$slots.left||this.$slots.right)&&window.panel.deprecated(": left/right slots will be removed in a future version. Use `buttons` slot instead.")}},(function(){var t=this,e=t._self._c;return e("header",{staticClass:"k-header",attrs:{"data-has-buttons":Boolean(t.$slots.buttons||t.$slots.left||t.$slots.right)}},[e("h1",{staticClass:"k-header-title"},[t.editable?e("button",{staticClass:"k-header-title-button",attrs:{type:"button"},on:{click:function(e){return t.$emit("edit")}}},[e("span",{staticClass:"k-header-title-text"},[t._t("default")],2),e("span",{staticClass:"k-header-title-icon"},[e("k-icon",{attrs:{type:"edit"}})],1)]):e("span",{staticClass:"k-header-title-text"},[t._t("default")],2)]),t.$slots.buttons||t.$slots.left||t.$slots.right?e("div",{staticClass:"k-header-buttons"},[t._t("buttons"),t._t("left"),t._t("right")],2):t._e()])}),[],!1,null,null,null,null).exports,Qo={props:{alt:String,color:String,type:String}};const tl=at({mixins:[Qo]},(function(){var t=this,e=t._self._c;return e("svg",{staticClass:"k-icon",style:{color:t.$helper.color(t.color)},attrs:{"aria-label":t.alt,role:t.alt?"img":null,"aria-hidden":!t.alt,"data-type":t.type}},[e("use",{attrs:{"xlink:href":"#icon-"+t.type}})])}),[],!1,null,null,null,null).exports;const el=at({mixins:[{mixins:[Ko,Qo],props:{type:null,icon:String}}],inheritAttrs:!1,computed:{isEmoji(){return this.$helper.string.hasEmoji(this.icon)}}},(function(){var t=this,e=t._self._c;return e("k-frame",t._b({staticClass:"k-icon-frame",attrs:{element:"figure"}},"k-frame",t.$props,!1),[t.isEmoji?e("span",{attrs:{"data-type":"emoji"}},[t._v(t._s(t.icon))]):e("k-icon",t._b({},"k-icon",{color:t.color,type:t.icon,alt:t.alt},!1))],1)}),[],!1,null,null,null,null).exports;const il=at({mixins:[{mixins:[Ko],props:{alt:String,sizes:String,src:String,srcset:String}}],inheritAttrs:!1},(function(){var t=this,e=t._self._c;return e("k-frame",t._g(t._b({staticClass:"k-image-frame k-image",attrs:{element:"figure"}},"k-frame",t.$props,!1),t.$listeners),[t.src?e("img",{key:t.src,attrs:{alt:t.alt??"",src:t.src,srcset:t.srcset,sizes:t.sizes},on:{dragstart:function(t){t.preventDefault()}}}):t._e()])}),[],!1,null,null,null,null).exports;const nl=at({mixins:[{props:{autofocus:{default:!0,type:Boolean},nested:{default:!1,type:Boolean},type:{default:"overlay",type:String},visible:{default:!1,type:Boolean}}}],inheritAttrs:!0,watch:{visible(t,e){t!==e&&this.toggle()}},mounted(){this.toggle()},methods:{cancel(){this.$emit("cancel"),this.close()},close(){if(!1!==this.$refs.overlay.open)return this.nested?this.onClose():void this.$refs.overlay.close()},focus(){this.$helper.focus(this.$refs.overlay)},onCancel(t){this.nested&&(t.preventDefault(),this.cancel())},onClick(t){t.target.matches(".k-portal")&&this.cancel()},onClose(){this.$emit("close")},open(){!0!==this.$refs.overlay.open&&this.$refs.overlay.showModal(),setTimeout((()=>{!0===this.autofocus&&this.focus(),this.$emit("open")}))},toggle(){!0===this.visible?this.open():this.close()}}},(function(){var t=this;return(0,t._self._c)("dialog",{ref:"overlay",staticClass:"k-overlay",attrs:{"data-type":t.type},on:{cancel:t.onCancel,mousedown:t.onClick,touchdown:t.onClick,close:t.onClose}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const sl=at({props:{label:{type:String},value:{type:String},info:{type:String},theme:{type:String},link:{type:String},click:{type:Function},dialog:{type:[String,Object]}},computed:{component(){return null!==this.target?"k-link":"div"},target(){return this.link?this.link:this.click?this.click:this.dialog?()=>this.$dialog(this.dialog):null}}},(function(){var t=this,e=t._self._c;return e(t.component,{tag:"component",staticClass:"k-stat",attrs:{"data-theme":t.theme,to:t.target}},[t.label?e("dt",{staticClass:"k-stat-label"},[t._v(t._s(t.label))]):t._e(),t.value?e("dd",{staticClass:"k-stat-value"},[t._v(t._s(t.value))]):t._e(),t.info?e("dd",{staticClass:"k-stat-info"},[t._v(t._s(t.info))]):t._e()])}),[],!1,null,null,null,null).exports;const ol=at({props:{reports:{type:Array,default:()=>[]},size:{type:String,default:"large"}},methods:{component(t){return null!==this.target(t)?"k-link":"div"},target(t){return t.link?t.link:t.click?t.click:t.dialog?()=>this.$dialog(t.dialog):null}}},(function(){var t=this,e=t._self._c;return e("dl",{staticClass:"k-stats",attrs:{"data-size":t.size}},t._l(t.reports,(function(i,n){return e("k-stat",t._b({key:n},"k-stat",i,!1))})),1)}),[],!1,null,null,null,null).exports;const ll=at({inheritAttrs:!1,props:{columns:{type:Object,default:()=>({})},disabled:Boolean,fields:{type:Object,default:()=>({})},empty:String,index:{type:[Number,Boolean],default:1},rows:Array,options:{default:()=>[],type:[Array,Function]},pagination:[Object,Boolean],sortable:Boolean},data(){return{values:this.rows}},computed:{colspan(){let t=this.columnsCount;return this.hasIndexColumn&&t++,this.hasOptions&&t++,t},columnsCount(){return this.$helper.object.length(this.columns)},dragOptions(){return{disabled:!this.sortable,fallbackClass:"k-table-row-fallback",ghostClass:"k-table-row-ghost"}},hasIndexColumn(){return this.sortable||!1!==this.index},hasOptions(){var t;return this.$scopedSlots.options||(null==(t=this.options)?void 0:t.length)>0||Object.values(this.values).filter((t=>null==t?void 0:t.options)).length>0}},watch:{rows(){this.values=this.rows}},methods:{isColumnEmpty(t){return 0===this.rows.filter((e=>!1===this.$helper.object.isEmpty(e[t]))).length},label(t,e){return t.label??this.$helper.string.ucfirst(e)},onChange(t){this.$emit("change",t)},onCell(t){this.$emit("cell",t)},onCellUpdate({columnIndex:t,rowIndex:e,value:i}){this.values[e][t]=i,this.$emit("input",this.values)},onHeader(t){this.$emit("header",t)},onOption(t,e,i){this.$emit("option",t,e,i)},onSort(){this.$emit("input",this.values),this.$emit("sort",this.values)},width(t){return"string"!=typeof t?"auto":!1===t.includes("/")?t:this.$helper.ratio(t,"auto",!1)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-table",attrs:{"aria-disabled":t.disabled}},[e("table",{attrs:{"data-disabled":t.disabled,"data-indexed":t.hasIndexColumn}},[e("thead",[e("tr",[t.hasIndexColumn?e("th",{staticClass:"k-table-index-column",attrs:{"data-mobile":""}},[t._v(" # ")]):t._e(),t._l(t.columns,(function(i,n){return e("th",{key:n+"-header",staticClass:"k-table-column",style:"width:"+t.width(i.width),attrs:{"data-align":i.align,"data-mobile":i.mobile},on:{click:function(e){return t.onHeader({column:i,columnIndex:n})}}},[t._t("header",(function(){return[t._v(" "+t._s(t.label(i,n))+" ")]}),null,{column:i,columnIndex:n,label:t.label(i,n)})],2)})),t.hasOptions?e("th",{staticClass:"k-table-options-column",attrs:{"data-mobile":""}}):t._e()],2)]),e("k-draggable",{attrs:{list:t.values,options:t.dragOptions,handle:!0,element:"tbody"},on:{change:t.onChange,end:t.onSort}},[0===t.rows.length?e("tr",[e("td",{staticClass:"k-table-empty",attrs:{colspan:t.colspan}},[t._v(" "+t._s(t.empty)+" ")])]):t._l(t.values,(function(i,n){return e("tr",{key:n},[t.hasIndexColumn?e("td",{staticClass:"k-table-index-column",attrs:{"data-sortable":t.sortable&&!1!==i.sortable,"data-mobile":""}},[t._t("index",(function(){return[e("div",{staticClass:"k-table-index",domProps:{textContent:t._s(t.index+n)}})]}),null,{row:i,rowIndex:n}),t.sortable&&!1!==i.sortable?e("k-sort-handle",{staticClass:"k-table-sort-handle"}):t._e()],2):t._e(),t._l(t.columns,(function(s,o){return e("k-table-cell",{key:n+"-"+o,staticClass:"k-table-column",style:"width:"+t.width(s.width),attrs:{column:s,field:t.fields[o],row:i,mobile:s.mobile,value:i[o]},on:{input:function(e){return t.onCellUpdate({columnIndex:o,rowIndex:n,value:e})}},nativeOn:{click:function(e){return t.onCell({row:i,rowIndex:n,column:s,columnIndex:o})}}})})),t.hasOptions?e("td",{staticClass:"k-table-options-column",attrs:{"data-mobile":""}},[t._t("options",(function(){return[e("k-options-dropdown",{attrs:{options:i.options??t.options,text:(i.options??t.options).length>1},on:{option:function(e){return t.onOption(e,i,n)}}})]}),null,{row:i,rowIndex:n})],2):t._e()],2)}))],2)],1),t.pagination?e("k-pagination",t._b({staticClass:"k-table-pagination",on:{paginate:function(e){return t.$emit("paginate",e)}}},"k-pagination",t.pagination,!1)):t._e()],1)}),[],!1,null,null,null,null).exports;const rl=at({inheritAttrs:!1,props:{column:Object,field:Object,mobile:{type:Boolean,default:!1},row:Object,value:{default:""}},computed:{component(){return this.$helper.isComponent(`k-${this.type}-field-preview`)?`k-${this.type}-field-preview`:this.$helper.isComponent(`k-table-${this.type}-cell`)?`k-table-${this.type}-cell`:Array.isArray(this.value)?"k-array-field-preview":"object"==typeof this.value?"k-object-field-preview":"k-text-field-preview"},type(){var t;return this.column.type??(null==(t=this.field)?void 0:t.type)}}},(function(){var t=this,e=t._self._c;return e("td",{staticClass:"k-table-cell",attrs:{"data-align":t.column.align,"data-mobile":t.mobile}},[!1===t.$helper.object.isEmpty(t.value)?e(t.component,{tag:"component",attrs:{column:t.column,field:t.field,row:t.row,value:t.value},on:{input:function(e){return t.$emit("input",e)}}}):t._e()],1)}),[],!1,null,null,null,null).exports;const al=at({props:{tab:String,tabs:{type:Array,default:()=>[]},theme:String},data(){return{observer:null,visible:this.tabs,invisible:[]}},computed:{current(){const t=this.tabs.find((t=>t.name===this.tab))??this.tabs[0];return null==t?void 0:t.name},dropdown(){return this.invisible.map(this.button)}},watch:{tabs:{async handler(){var t;null==(t=this.observer)||t.disconnect(),await this.$nextTick(),this.$el instanceof Element&&(this.observer=new ResizeObserver(this.resize),this.observer.observe(this.$el))},immediate:!0}},destroyed(){var t;null==(t=this.observer)||t.disconnect()},methods:{button(t){return{link:t.link,current:t.name===this.current,icon:t.icon,title:t.label,text:t.label??t.text??t.name}},async resize(){const t=this.$el.offsetWidth;this.visible=this.tabs,this.invisible=[],await this.$nextTick();const e=[...this.$refs.visible].map((t=>t.$el.offsetWidth));let i=32;for(let n=0;nt)return this.visible=this.tabs.slice(0,n),void(this.invisible=this.tabs.slice(n))}}},(function(){var t=this,e=t._self._c;return t.tabs.length>1?e("nav",{staticClass:"k-tabs"},[t._l(t.visible,(function(i){return e("k-button",t._b({key:i.name,ref:"visible",refInFor:!0,staticClass:"k-tab-button",attrs:{variant:"dimmed"}},"k-button",i=t.button(i),!1),[t._v(" "+t._s(i.text)+" "),i.badge?e("span",{staticClass:"k-tabs-badge",attrs:{"data-theme":t.theme}},[t._v(" "+t._s(i.badge)+" ")]):t._e()])})),t.invisible.length?[e("k-button",{staticClass:"k-tab-button k-tabs-dropdown-button",attrs:{current:!!t.invisible.find((e=>t.tab===e.name)),title:t.$t("more"),icon:"dots",variant:"dimmed"},on:{click:function(e){return e.stopPropagation(),t.$refs.more.toggle()}}}),e("k-dropdown-content",{ref:"more",staticClass:"k-tabs-dropdown",attrs:{options:t.dropdown,"align-x":"end"}})]:t._e()],2):t._e()}),[],!1,null,null,null,null).exports;const ul=at({props:{align:String},created(){window.panel.deprecated(" will be removed in a future version.")}},(function(){var t=this;return(0,t._self._c)("div",{staticClass:"k-view",attrs:{"data-align":t.align}},[t._t("default")],2)}),[],!1,null,null,null,null).exports,cl={install(t){t.component("k-aspect-ratio",Ro),t.component("k-bar",Yo),t.component("k-box",Uo),t.component("k-bubble",Ho),t.component("k-bubbles",ho),t.component("k-color-frame",Jo),t.component("k-column",Vo),t.component("k-dropzone",Go),t.component("k-frame",Wo),t.component("k-grid",Xo),t.component("k-header",Zo),t.component("k-icon-frame",el),t.component("k-image-frame",il),t.component("k-image",il),t.component("k-overlay",nl),t.component("k-stat",sl),t.component("k-stats",ol),t.component("k-table",ll),t.component("k-table-cell",rl),t.component("k-tabs",al),t.component("k-view",ul)}};const dl=at({components:{draggable:()=>F((()=>import("./vuedraggable.min.js")),[],import.meta.url)},props:{data:Object,element:{type:String,default:"div"},handle:[String,Boolean],list:[Array,Object],move:Function,options:Object},emits:["change","end","sort","start"],computed:{dragOptions(){let t=this.handle;return!0===t&&(t=".k-sort-handle"),{fallbackClass:"k-sortable-fallback",fallbackOnBody:!0,forceFallback:!0,ghostClass:"k-sortable-ghost",handle:t,scroll:document.querySelector(".k-panel-main"),...this.options}}},methods:{onStart(t){this.$panel.drag.start("data",{}),this.$emit("start",t)},onEnd(t){this.$panel.drag.stop(),this.$emit("end",t)}}},(function(){var t=this;return(0,t._self._c)("draggable",t._b({staticClass:"k-draggable",attrs:{"component-data":t.data,tag:t.element,list:t.list,move:t.move},on:{change:function(e){return t.$emit("change",e)},end:t.onEnd,sort:function(e){return t.$emit("sort",e)},start:t.onStart},scopedSlots:t._u([{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}],null,!0)},"draggable",t.dragOptions,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports;const pl=at({data:()=>({error:null}),errorCaptured(t){return this.$panel.debug&&window.console.warn(t),this.error=t,!1},render(){return this.error?this.$slots.error?this.$slots.error[0]:this.$scopedSlots.error?this.$scopedSlots.error({error:this.error}):Vue.h("k-box",{attrs:{theme:"negative"}},this.error.message??this.error):this.$slots.default[0]}},null,null,!1,null,null,null,null).exports;const hl=at({props:{html:String},mounted(){try{let t=this.$refs.iframe.contentWindow.document;t.open(),t.write(this.html),t.close()}catch(t){console.error(t)}}},(function(){var t=this,e=t._self._c;return e("k-overlay",{staticClass:"k-fatal",attrs:{visible:!0}},[e("div",{staticClass:"k-fatal-box"},[e("div",{staticClass:"k-notification",attrs:{"data-theme":"negative"}},[e("p",[t._v("The JSON response could not be parsed")]),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return e.stopPropagation(),t.$panel.notification.close()}}})],1),e("iframe",{ref:"iframe",staticClass:"k-fatal-iframe"})])])}),[],!1,null,null,null,null).exports;const ml=at({icons:window.panel.plugins.icons,methods:{viewbox(t,e){const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.innerHTML=e,document.body.appendChild(i);const n=i.getBBox(),s=(n.width+2*n.x+(n.height+2*n.y))/2,o=Math.abs(s-16),l=Math.abs(s-24);return document.body.removeChild(i),o element with the corresponding viewBox attribute.`),"0 0 16 16"):"0 0 24 24"}}},(function(){var t=this,e=t._self._c;return e("svg",{staticClass:"k-icons",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",overflow:"hidden"}},[e("defs",t._l(t.$options.icons,(function(i,n){return e("symbol",{key:n,attrs:{id:"icon-"+n,viewBox:t.viewbox(n,i)},domProps:{innerHTML:t._s(i)}})})),0)])}),[],!1,null,null,null,null).exports;const fl=at({created(){window.panel.deprecated(' will be removed in a future version. Use instead.')}},(function(){var t=this._self._c;return t("span",{staticClass:"k-loader"},[t("k-icon",{staticClass:"k-loader-icon",attrs:{type:"loader"}})],1)}),[],!1,null,null,null,null).exports;const gl=at({},(function(){var t=this,e=t._self._c;return t.$panel.notification.isOpen?e("div",{staticClass:"k-notification",attrs:{"data-theme":t.$panel.notification.theme}},[e("p",[t._v(t._s(t.$panel.notification.message))]),e("k-button",{attrs:{icon:"cancel"},on:{click:function(e){return t.$panel.notification.close()}}})],1):t._e()}),[],!1,null,null,null,null).exports;const kl=at({},(function(){var t=this,e=t._self._c;return t.$panel.isOffline?e("div",{staticClass:"k-offline-warning"},[e("p",[e("k-icon",{attrs:{type:"bolt"}}),t._v(" "+t._s(t.$t("error.offline")))],1)]):t._e()}),[],!1,null,null,null,null).exports,bl=(t,e=!1)=>{if(t>=0&&t<=100)return!0;if(e)throw new Error("value has to be between 0 and 100");return!1};const vl=at({props:{value:{type:Number,default:0,validator:bl}},data(){return{state:this.value}},watch:{value(t){this.state=t}},methods:{set(t){window.panel.deprecated(": `set` method will be removed in a future version. Use the `value` prop instead."),bl(t,!0),this.state=t}}},(function(){var t=this;return(0,t._self._c)("progress",{staticClass:"k-progress",attrs:{max:"100"},domProps:{value:t.state}},[t._v(t._s(t.state)+"%")])}),[],!1,null,null,null,null).exports;const yl=at({},(function(){return(0,this._self._c)("k-button",{staticClass:"k-sort-handle k-sort-button",attrs:{title:this.$t("sort.drag"),icon:"sort","aria-hidden":"true"}})}),[],!1,null,null,null,null).exports,$l={install(t){t.component("k-draggable",dl),t.component("k-error-boundary",pl),t.component("k-fatal",hl),t.component("k-icon",tl),t.component("k-icons",ml),t.component("k-loader",fl),t.component("k-notification",gl),t.component("k-offline-warning",kl),t.component("k-progress",vl),t.component("k-sort-handle",yl)}};const wl=at({props:{crumbs:{type:Array,default:()=>[]},label:{type:String,default:"Breadcrumb"},view:Object},computed:{dropdown(){return this.segments.map((t=>({...t,text:t.label,icon:"angle-right"})))},segments(){const t=[];return this.view&&t.push({link:this.view.link,label:this.view.label??this.view.breadcrumbLabel,icon:this.view.icon,loading:this.$panel.isLoading}),[...t,...this.crumbs]}},created(){this.view&&window.panel.deprecated(": `view` prop will be removed in a future version. Use `crumbs` instead.")}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-breadcrumb",attrs:{"aria-label":t.label}},[t.segments.length>1?e("div",{staticClass:"k-breadcrumb-dropdown"},[e("k-button",{attrs:{icon:"home"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{options:t.dropdown}})],1):t._e(),e("ol",t._l(t.segments,(function(i,n){return e("li",{key:n},[e("k-button",{staticClass:"k-breadcrumb-link",attrs:{icon:i.loading?"loader":i.icon,link:i.link,disabled:!i.link,text:i.text??i.label,title:i.text??i.label,current:n===t.segments.length-1&&"page",variant:"dimmed",size:"sm"}})],1)})),0)])}),[],!1,null,null,null,null).exports;const xl=at({props:{items:{type:Array},name:{default:"items",type:String},selected:{type:String},type:{default:"radio",type:String}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-browser"},[e("div",{staticClass:"k-browser-items"},t._l(t.items,(function(i){return e("label",{key:i.value,staticClass:"k-browser-item",attrs:{"aria-selected":t.selected===i.value}},[e("input",{attrs:{name:t.name,type:t.type},domProps:{checked:t.selected===i.value},on:{change:function(e){return t.$emit("select",i)}}}),i.image?e("k-item-image",{staticClass:"k-browser-item-image",attrs:{image:{...i.image,cover:!0,back:"black"}}}):t._e(),e("span",{staticClass:"k-browser-item-info"},[t._v(" "+t._s(i.label)+" ")])],1)})),0)])}),[],!1,null,null,null,null).exports;const _l=at({inheritAttrs:!1,props:{autofocus:Boolean,click:{type:Function,default:()=>{}},current:[String,Boolean],dialog:String,disabled:Boolean,drawer:String,dropdown:Boolean,element:String,icon:String,id:[String,Number],link:String,responsive:[Boolean,String],rel:String,role:String,selected:[String,Boolean],size:String,target:String,tabindex:String,text:[String,Number],theme:String,title:String,tooltip:String,type:{type:String,default:"button"},variant:String},computed:{attrs(){const t={"aria-current":this.current,"aria-disabled":this.disabled,"aria-selected":this.selected,"data-responsive":this.responsive,"data-size":this.size,"data-theme":this.theme,"data-variant":this.variant,id:this.id,tabindex:this.tabindex,title:this.title??this.tooltip};return"k-link"===this.component?(t.disabled=this.disabled,t.to=this.link,t.rel=this.rel,t.role=this.role,t.target=this.target):"button"===this.component&&(t.autofocus=this.autofocus,t.type=this.type),this.dropdown&&(t["aria-haspopup"]="menu",t["data-dropdown"]=this.dropdown),t},component(){return this.element?this.element:this.link?"k-link":"button"}},created(){this.tooltip&&window.panel.deprecated(": the `tooltip` prop will be removed in a future version. Use the `title` prop instead.")},methods:{focus(){var t,e;null==(e=(t=this.$el).focus)||e.call(t)},onClick(t){var e;return this.disabled?(t.preventDefault(),!1):this.dialog?this.$dialog(this.dialog):this.drawer?this.$drawer(this.drawer):(null==(e=this.click)||e.call(this,t),void this.$emit("click",t))}}},(function(){var t=this,e=t._self._c;return e(t.component,t._b({tag:"component",staticClass:"k-button",attrs:{"data-has-icon":Boolean(t.icon),"data-has-text":Boolean(t.text||t.$slots.default)},on:{click:t.onClick}},"component",t.attrs,!1),[t.icon?e("span",{staticClass:"k-button-icon"},[e("k-icon",{attrs:{type:t.icon}})],1):t._e(),t.text||t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2):t._e(),t.dropdown&&(t.text||t.$slots.default)?e("span",{staticClass:"k-button-arrow"},[e("k-icon",{attrs:{type:"angle-down"}})],1):t._e()])}),[],!1,null,null,null,null).exports;const Sl=at({props:{buttons:Array,layout:String,variant:String,theme:String,size:String,responsive:Boolean}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-button-group",attrs:{"data-layout":t.layout}},[t.$slots.default?t._t("default"):t._l(t.buttons,(function(i,n){return e("k-button",t._b({key:n},"k-button",{variant:t.variant,theme:t.theme,size:t.size,responsive:t.responsive,...i},!1))}))],2)}),[],!1,null,null,null,null).exports;const Cl=at({props:{selected:{type:String}},data:()=>({files:[],page:null,view:"tree"}),methods:{selectFile(t){this.$emit("select",t)},async selectPage(t){this.page=t;const e="/"===t.id?"/site/files":"/pages/"+this.$api.pages.id(t.id)+"/files",{data:i}=await this.$api.get(e,{select:"filename,id,panelImage,url,uuid"});this.files=i.map((t=>({label:t.filename,image:t.panelImage,id:t.id,url:t.url,uuid:t.uuid,value:t.uuid??t.url}))),this.view="files"},async togglePage(){await this.$nextTick(),this.$refs.tree.scrollIntoView({behaviour:"smooth",block:"nearest",inline:"nearest"})}}},(function(){var t,e,i=this,n=i._self._c;return n("div",{staticClass:"k-file-browser",attrs:{"data-view":i.view}},[n("div",{staticClass:"k-file-browser-layout"},[n("aside",{ref:"tree",staticClass:"k-file-browser-tree"},[n("k-page-tree",{attrs:{current:null==(t=i.page)?void 0:t.value},on:{select:i.selectPage,toggleBranch:i.togglePage}})],1),n("div",{ref:"items",staticClass:"k-file-browser-items"},[n("k-button",{staticClass:"k-file-browser-back-button",attrs:{icon:"angle-left",text:null==(e=i.page)?void 0:e.label},on:{click:function(t){i.view="tree"}}}),i.files.length?n("k-browser",{attrs:{items:i.files,selected:i.selected},on:{select:i.selectFile}}):i._e()],1)])])}),[],!1,null,null,null,null).exports;const Ol=at({props:{disabled:Boolean,rel:String,tabindex:[String,Number],target:String,title:String,to:[String,Function]},emits:["click"],computed:{href(){return"function"==typeof this.to?"":"/"!==this.to[0]||this.target?!0===this.to.includes("@")&&!1===this.to.includes("/")&&!1===this.to.startsWith("mailto:")?"mailto:"+this.to:this.to:this.$url(this.to)},relAttr(){return"_blank"===this.target?"noreferrer noopener":this.rel}},methods:{isRoutable(t){if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)return!1;if(t.defaultPrevented)return!1;if(void 0!==t.button&&0!==t.button)return!1;if(this.target)return!1;if("string"==typeof this.href){if(this.href.includes("://")||this.href.startsWith("//"))return!1;if(this.href.includes("mailto:"))return!1}return!0},onClick(t){if(!0===this.disabled)return t.preventDefault(),!1;"function"==typeof this.to&&(t.preventDefault(),this.to()),this.isRoutable(t)&&(t.preventDefault(),this.$go(this.to)),this.$emit("click",t)}}},(function(){var t=this,e=t._self._c;return t.to&&!t.disabled?e("a",{ref:"link",staticClass:"k-link",attrs:{href:t.href,rel:t.relAttr,tabindex:t.tabindex,target:t.target,title:t.title},on:{click:t.onClick}},[t._t("default")],2):e("span",{staticClass:"k-link",attrs:{title:t.title,"aria-disabled":""}},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const Al=at({props:{tab:String,tabs:{type:Array,default:()=>[]}},computed:{withBadges(){const t=Object.keys(this.$store.getters["content/changes"]());return this.tabs.map((e=>{const i=[];for(const t in e.columns)for(const n in e.columns[t].sections)if("fields"===e.columns[t].sections[n].type)for(const s in e.columns[t].sections[n].fields)i.push(s);return e.badge=i.filter((e=>t.includes(e.toLowerCase()))).length,e}))}}},(function(){var t=this;return(0,t._self._c)("k-tabs",{staticClass:"k-model-tabs",attrs:{tab:t.tab,tabs:t.withBadges,theme:"notice"}})}),[],!1,null,null,null,null).exports;const Ml=at({props:{axis:String,disabled:Boolean,element:{type:String,default:"div"},select:{type:String,default:":where(button, a):not(:disabled)"}},computed:{keys(){switch(this.axis){case"x":return{ArrowLeft:this.prev,ArrowRight:this.next};case"y":return{ArrowUp:this.prev,ArrowDown:this.next};default:return{ArrowLeft:this.prev,ArrowRight:this.next,ArrowUp:this.prev,ArrowDown:this.next}}}},mounted(){this.$el.addEventListener("keydown",this.keydown)},destroyed(){this.$el.removeEventListener("keydown",this.keydown)},methods:{focus(t=0,e){this.move(t,e)},keydown(t){var e;if(this.disabled)return!1;null==(e=this.keys[t.key])||e.apply(this,[t])},move(t=0,e){var i;const n=[...this.$el.querySelectorAll(this.select)];let s=n.findIndex((t=>t===document.activeElement||t.contains(document.activeElement)));switch(-1===s&&(s=0),t){case"first":t=0;break;case"next":t=s+1;break;case"last":t=n.length-1;break;case"prev":t=s-1}t<0?this.$emit("prev"):t>=n.length?this.$emit("next"):null==(i=n[t])||i.focus(),null==e||e.preventDefault()},next(t){this.move("next",t)},prev(t){this.move("prev",t)}}},(function(){var t=this;return(0,t._self._c)(t.element,{tag:"component",staticClass:"k-navigate"},[t._t("default")],2)}),[],!1,null,null,null,null).exports;const jl=at({name:"k-tree",inheritAttrs:!1,props:{element:{type:String,default:"k-tree"},current:{type:String},items:{type:[Array,Object]},level:{default:0,type:Number}},data(){return{state:this.items}},methods:{arrow:t=>!0===t.loading?"loader":t.open?"angle-down":"angle-right",close(t){this.$set(t,"open",!1),this.$emit("close",t)},open(t){this.$set(t,"open",!0),this.$emit("open",t)},select(t){this.$emit("select",t)},toggle(t){this.$emit("toggle",t),!0===t.open?this.close(t):this.open(t)}}},(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"k-tree",class:t.$options.name,style:{"--tree-level":t.level}},t._l(t.state,(function(i,n){return e("li",{key:n,attrs:{"aria-expanded":i.open,"aria-current":i.value===t.current}},[e("p",{staticClass:"k-tree-branch",attrs:{"data-has-subtree":i.hasChildren&&i.open}},[e("button",{staticClass:"k-tree-toggle",attrs:{disabled:!i.hasChildren,type:"button"},on:{click:function(e){return t.toggle(i)}}},[e("k-icon",{attrs:{type:t.arrow(i)}})],1),e("button",{staticClass:"k-tree-folder",attrs:{disabled:i.disabled,type:"button"},on:{click:function(e){return t.select(i)},dblclick:function(e){return t.toggle(i)}}},[e("k-icon-frame",{attrs:{icon:i.icon??"folder"}}),e("span",{staticClass:"k-tree-folder-label"},[t._v(t._s(i.label))])],1)]),i.hasChildren&&i.open?[e(t.$options.name,t._b({tag:"component",attrs:{items:i.children,level:t.level+1},on:{close:function(e){return t.$emit("close",e)},open:function(e){return t.$emit("open",e)},select:function(e){return t.$emit("select",e)},toggle:function(e){return t.$emit("toggle",e)}}},"component",t.$props,!1))]:t._e()],2)})),0)}),[],!1,null,null,null,null).exports;const Il=at({name:"k-page-tree",extends:jl,inheritAttrs:!1,props:{root:{default:!0,type:Boolean},current:{type:String},move:{type:String}},data:()=>({state:[]}),async created(){if(this.items)this.state=this.items;else{const t=await this.load(null);await this.open(t[0]),this.state=this.root?t:t[0].children}},methods:{async load(t){return await this.$panel.get("site/tree",{query:{move:this.move??null,parent:t}})},async open(t){if(!1===t.hasChildren)return!1;this.$set(t,"loading",!0),"string"==typeof t.children&&(t.children=await this.load(t.children)),this.$set(t,"open",!0),this.$set(t,"loading",!1)}}},null,null,!1,null,null,null,null).exports;const Tl=at({props:{details:Boolean,limit:{type:Number,default:10},page:{type:Number,default:1},total:{type:Number,default:0},validate:{type:Function,default:()=>Promise.resolve()}},computed:{end(){return Math.min(this.start-1+this.limit,this.total)},detailsText(){return 1===this.limit?this.start:this.start+"-"+this.end},offset(){return this.start-1},pages(){return Math.ceil(this.total/this.limit)},start(){return(this.page-1)*this.limit+1}},methods:{async goTo(t){var e;try{await this.validate(t),null==(e=this.$refs.dropdown)||e.close();const i=((t=Math.max(1,Math.min(t,this.pages)))-1)*this.limit+1;this.$emit("paginate",{page:t,start:i,end:Math.min(i-1+this.limit,this.total),limit:this.limit,offset:i-1,total:this.total})}catch(i){}},prev(){this.goTo(this.page-1)},next(){this.goTo(this.page+1)}}},(function(){var t=this,e=t._self._c;return t.pages>1?e("k-button-group",{staticClass:"k-pagination",attrs:{layout:"collapsed"},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.prev.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.next.apply(null,arguments)}]}},[e("k-button",{attrs:{disabled:t.start<=1,title:t.$t("prev"),icon:"angle-left",size:"xs",variant:"filled"},on:{click:t.prev}}),t.details?[e("k-button",{staticClass:"k-pagination-details",attrs:{disabled:t.total<=t.limit,text:t.total>1?`${t.detailsText} / ${t.total}`:t.total,size:"xs",variant:"filled"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",staticClass:"k-pagination-selector",attrs:{"align-x":"end"},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void e.stopPropagation()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:void e.stopPropagation()}]}},[e("form",{attrs:{method:"dialog"},on:{submit:function(e){return t.goTo(t.$refs.page.value)}}},[e("label",{attrs:{for:t._uid}},[t._v(t._s(t.$t("pagination.page"))+":")]),e("select",{ref:"page",attrs:{id:t._uid,autofocus:!0}},t._l(t.pages,(function(i){return e("option",{key:i,domProps:{selected:t.page===i,value:i}},[t._v(" "+t._s(i)+" ")])})),0),e("k-button",{attrs:{type:"submit",icon:"check"}})],1)])]:t._e(),e("k-button",{attrs:{disabled:t.end>=t.total,title:t.$t("next"),icon:"angle-right",size:"xs",variant:"filled"},on:{click:t.next}})],2):t._e()}),[],!1,null,null,null,null).exports;const El=at({props:{prev:{type:[Boolean,Object],default:!1},next:{type:[Boolean,Object],default:!1}},computed:{buttons(){return[{...this.button(this.prev),icon:"angle-left"},{...this.button(this.next),icon:"angle-right"}]},isFullyDisabled(){return 0===this.buttons.filter((t=>!t.disabled)).length}},methods:{button:t=>t||{disabled:!0,link:"#"}}},(function(){var t=this,e=t._self._c;return t.isFullyDisabled?t._e():e("k-button-group",{staticClass:"k-prev-next",attrs:{buttons:t.buttons,layout:"collapsed",size:"xs"}})}),[],!1,null,null,null,null).exports;const Ll=at({props:{disabled:Boolean,image:{type:Object},removable:Boolean},computed:{isRemovable(){return this.removable&&!this.disabled}},methods:{remove(){this.isRemovable&&this.$emit("remove")},focus(){this.$refs.button.focus()}}},(function(){var t=this,e=t._self._c;return e("button",{ref:"button",staticClass:"k-tag",attrs:{"aria-disabled":t.disabled,"data-has-image":Boolean(t.image),"data-has-toggle":t.isRemovable,type:"button"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.remove.apply(null,arguments))}}},[t._t("image",(function(){var i;return[(null==(i=t.image)?void 0:i.src)?e("k-image-frame",t._b({staticClass:"k-tag-image"},"k-image-frame",t.image,!1)):t.image?e("k-icon-frame",t._b({staticClass:"k-tag-image"},"k-icon-frame",t.image,!1)):t._e()]})),t.$slots.default?e("span",{staticClass:"k-tag-text"},[t._t("default")],2):t._e(),t.isRemovable?e("k-icon-frame",{staticClass:"k-tag-toggle",attrs:{icon:"cancel-small"},nativeOn:{click:function(e){return e.stopPropagation(),t.remove.apply(null,arguments)}}}):t._e()],2)}),[],!1,null,null,null,null).exports;const Dl=at({inheritAttrs:!1,props:{icon:String,id:[String,Number],responsive:Boolean,theme:String,tooltip:String},created(){window.panel.deprecated(' will be removed in a future version. Use instead.')}},(function(){var t=this,e=t._self._c;return e("span",{staticClass:"k-button",attrs:{id:t.id,"data-disabled":!0,"data-responsive":t.responsive,"data-theme":t.theme,title:t.tooltip}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports;const Bl=at({inheritAttrs:!1,props:{autofocus:Boolean,current:[String,Boolean],icon:String,id:[String,Number],link:String,rel:String,responsive:Boolean,role:String,target:String,tabindex:String,theme:String,tooltip:String},created(){window.panel.deprecated(' will be removed in a future version. Use instead.')},methods:{focus(){this.$el.focus()}}},(function(){var t=this,e=t._self._c;return e("k-link",{staticClass:"k-button",attrs:{id:t.id,"aria-current":t.current,autofocus:t.autofocus,"data-theme":t.theme,"data-responsive":t.responsive,rel:t.rel,role:t.role,tabindex:t.tabindex,target:t.target,title:t.tooltip,to:t.link}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports;const ql=at({inheritAttrs:!1,props:{autofocus:Boolean,click:{type:Function,default:()=>{}},current:[String,Boolean],icon:String,id:[String,Number],responsive:Boolean,role:String,tabindex:String,theme:String,tooltip:String,type:{type:String,default:"button"}},created(){window.panel.deprecated(" will be removed in a future version. Use instead.")}},(function(){var t=this,e=t._self._c;return e("button",{staticClass:"k-button",attrs:{id:t.id,"aria-current":t.current,autofocus:t.autofocus,"data-theme":t.theme,"data-responsive":t.responsive,role:t.role,tabindex:t.tabindex,title:t.tooltip,type:t.type},on:{click:t.click}},[t.icon?e("k-icon",{staticClass:"k-button-icon",attrs:{type:t.icon,alt:t.tooltip}}):t._e(),t.$slots.default?e("span",{staticClass:"k-button-text"},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null,null).exports,Pl={install(t){t.component("k-breadcrumb",wl),t.component("k-browser",xl),t.component("k-button",_l),t.component("k-button-group",Sl),t.component("k-file-browser",Cl),t.component("k-link",Ol),t.component("k-model-tabs",Al),t.component("k-navigate",Ml),t.component("k-page-tree",Il),t.component("k-pagination",Tl),t.component("k-prev-next",El),t.component("k-tag",Ll),t.component("k-tags",Jn),t.component("k-tree",jl),t.component("k-button-disabled",Dl),t.component("k-button-link",Bl),t.component("k-button-native",ql)}};const Nl=at({props:{buttons:Array,headline:String,invalid:Boolean,link:String,required:Boolean}},(function(){var t=this,e=t._self._c;return e("section",{staticClass:"k-section",attrs:{"data-invalid":t.invalid}},[t.headline||t.buttons?e("header",{staticClass:"k-bar k-section-header"},[e("k-label",{attrs:{invalid:t.invalid,link:t.link,required:t.required,type:"section"}},[t._v(" "+t._s(t.headline)+" ")]),t.buttons?e("k-button-group",{attrs:{buttons:t.buttons,size:"xs",variant:"filled"}}):t._e()],1):t._e(),t._t("default")],2)}),[],!1,null,null,null,null).exports;const zl=at({props:{empty:String,blueprint:String,lock:[Boolean,Object],parent:String,tab:Object},computed:{content(){return this.$store.getters["content/values"]()}},methods:{exists(t){return this.$helper.isComponent(`k-${t}-section`)}}},(function(){var t=this,e=t._self._c;return 0===t.tab.columns.length?e("k-box",{attrs:{html:!0,text:t.empty,theme:"info"}}):e("k-grid",{staticClass:"k-sections",attrs:{variant:"columns"}},t._l(t.tab.columns,(function(i,n){return e("k-column",{key:t.parent+"-column-"+n,attrs:{width:i.width,sticky:i.sticky}},[t._l(i.sections,(function(s,o){return[t.$helper.field.isVisible(s,t.content)?[t.exists(s.type)?e("k-"+s.type+"-section",t._b({key:t.parent+"-column-"+n+"-section-"+o+"-"+t.blueprint,tag:"component",class:"k-section-name-"+s.name,attrs:{column:i.width,lock:t.lock,name:s.name,parent:t.parent,timestamp:t.$panel.view.timestamp},on:{submit:function(e){return t.$emit("submit",e)}}},"component",s,!1)):[e("k-box",{key:t.parent+"-column-"+n+"-section-"+o,attrs:{text:t.$t("error.section.type.invalid",{type:s.type}),icon:"alert",theme:"negative"}})]]:t._e()]}))],2)})),1)}),[],!1,null,null,null,null).exports,Fl={props:{blueprint:String,lock:[Boolean,Object],help:String,name:String,parent:String,timestamp:Number},methods:{load(){return this.$api.get(this.parent+"/sections/"+this.name)}}};const Rl=at({mixins:[Fl],inheritAttrs:!1,data:()=>({fields:{},isLoading:!0,issue:null}),computed:{values(){return this.$store.getters["content/values"]()}},watch:{timestamp(){this.fetch()}},created(){this.onInput=Nt(this.onInput,50),this.fetch()},methods:{async fetch(){try{const t=await this.load();this.fields=t.fields;for(const e in this.fields)this.fields[e].section=this.name,this.fields[e].endpoints={field:this.parent+"/fields/"+e,section:this.parent+"/sections/"+this.name,model:this.parent}}catch(t){this.issue=t}finally{this.isLoading=!1}},onInput(t,e,i){this.$store.dispatch("content/update",[i,t[i]])},onSubmit(t){this.$store.dispatch("content/update",[null,t]),this.$events.emit("keydown.cmd.s",t)}}},(function(){var t=this,e=t._self._c;return t.isLoading?t._e():e("k-section",{staticClass:"k-fields-section",attrs:{headline:t.issue?"Error":null}},[t.issue?e("k-box",{attrs:{text:t.issue.message,html:!1,icon:"alert",theme:"negative"}}):t._e(),e("k-form",{attrs:{fields:t.fields,validate:!0,value:t.values,disabled:t.lock&&"lock"===t.lock.state},on:{input:t.onInput,submit:t.onSubmit}})],1)}),[],!1,null,null,null,null).exports;const Yl=at({inheritAttrs:!1,props:{blueprint:String,column:String,parent:String,name:String,timestamp:Number},data:()=>({data:[],error:null,isLoading:!1,isProcessing:!1,options:{columns:{},empty:null,headline:null,help:null,layout:"list",link:null,max:null,min:null,size:null,sortable:null},pagination:{page:null},searchterm:null,searching:!1}),computed:{addIcon:()=>"add",buttons(){let t=[];return this.canSearch&&t.push({icon:"filter",text:this.$t("filter"),click:this.onSearchToggle,responsive:!0}),this.canAdd&&t.push({icon:this.addIcon,text:this.$t("add"),click:this.onAdd,responsive:!0}),t},canAdd:()=>!0,canDrop:()=>!1,canSearch(){return this.options.search},collection(){return{columns:this.options.columns,empty:this.emptyPropsWithSearch,layout:this.options.layout,help:this.options.help,items:this.items,pagination:this.pagination,sortable:!this.isProcessing&&this.options.sortable,size:this.options.size}},emptyProps(){return{icon:"page",text:this.$t("pages.empty")}},emptyPropsWithSearch(){return{...this.emptyProps,text:this.searching?this.$t("search.results.none"):this.options.empty??this.emptyProps.text}},items(){return this.data},isInvalid(){var t;return!((null==(t=this.searchterm)?void 0:t.length)>0)&&(!!(this.options.min&&this.data.lengththis.options.max))},paginationId(){return"kirby$pagination$"+this.parent+"/"+this.name},type:()=>"models"},watch:{searchterm(){this.search()},timestamp(){this.reload()}},created(){this.search=Nt(this.search,200),this.load()},methods:{async load(t){this.isProcessing=!0,t||(this.isLoading=!0);const e=this.pagination.page??localStorage.getItem(this.paginationId)??1;try{const t=await this.$api.get(this.parent+"/sections/"+this.name,{page:e,searchterm:this.searchterm});this.options=t.options,this.pagination=t.pagination,this.data=t.data}catch(i){this.error=i.message}finally{this.isProcessing=!1,this.isLoading=!1}},onAction(){},onAdd(){},onChange(){},onDrop(){},onSort(){},onPaginate(t){localStorage.setItem(this.paginationId,t.page),this.pagination=t,this.reload()},onSearchToggle(){this.searching=!this.searching,this.searchterm=null},async reload(){await this.load(!0)},async search(){this.pagination.page=0,await this.reload()},update(){this.reload(),this.$events.emit("model.update")}}},(function(){var t=this,e=t._self._c;return!1===t.isLoading?e("k-section",{class:`k-models-section k-${t.type}-section`,attrs:{buttons:t.buttons,"data-processing":t.isProcessing,headline:t.options.headline??" ",invalid:t.isInvalid,link:t.options.link,required:Boolean(t.options.min)}},[t.error?e("k-box",{attrs:{icon:"alert",theme:"negative"}},[e("k-text",{attrs:{size:"small"}},[e("strong",[t._v(" "+t._s(t.$t("error.section.notLoaded",{name:t.name}))+": ")]),t._v(" "+t._s(t.error)+" ")])],1):[e("k-dropzone",{attrs:{disabled:!t.canDrop},on:{drop:t.onDrop}},[t.searching&&t.options.search?e("k-input",{staticClass:"k-models-section-search",attrs:{autofocus:!0,placeholder:t.$t("filter")+" …",value:t.searchterm,icon:"search",type:"text"},on:{input:function(e){t.searchterm=e},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onSearchToggle.apply(null,arguments)}}}):t._e(),e("k-collection",t._g(t._b({on:{action:t.onAction,change:t.onChange,sort:t.onSort,paginate:t.onPaginate}},"k-collection",t.collection,!1),t.canAdd?{empty:t.onAdd}:{}))],1)]],2):t._e()}),[],!1,null,null,null,null).exports;const Ul=at({extends:Yl,computed:{addIcon:()=>"upload",canAdd(){return this.$panel.permissions.files.create&&!1!==this.options.upload},canDrop(){return!1!==this.canAdd},emptyProps(){return{icon:"image",text:this.$t("files.empty")}},items(){return this.data.map((t=>(t.sortable=this.options.sortable,t.column=this.column,t.options=this.$dropdown(t.link,{query:{view:"list",update:this.options.sortable,delete:this.data.length>this.options.min}}),t.data={"data-id":t.id,"data-template":t.template},t)))},type:()=>"files",uploadOptions(){return{...this.options.upload,url:this.$panel.urls.api+"/"+this.options.upload.api,on:{complete:()=>{this.$panel.notification.success({context:"view"})}}}}},created(){this.$events.on("model.update",this.reload),this.$events.on("file.sort",this.reload)},destroyed(){this.$events.off("model.update",this.reload),this.$events.off("file.sort",this.reload)},methods:{onAction(t,e){"replace"===t&&this.replace(e)},onAdd(){this.canAdd&&this.$panel.upload.pick(this.uploadOptions)},onDrop(t){this.canAdd&&this.$panel.upload.open(t,this.uploadOptions)},async onSort(t){if(!1===this.options.sortable)return!1;this.isProcessing=!0;try{await this.$api.patch(this.options.apiUrl+"/files/sort",{files:t.map((t=>t.id)),index:this.pagination.offset}),this.$panel.notification.success(),this.$events.emit("file.sort")}catch(e){this.$panel.error(e),this.reload()}finally{this.isProcessing=!1}},replace(t){this.$panel.upload.replace(t,this.uploadOptions)}}},null,null,!1,null,null,null,null).exports;const Hl=at({mixins:[Fl],inheritAttrs:!1,data:()=>({icon:null,label:null,text:null,theme:null}),async created(){const t=await this.load();this.icon=t.icon,this.label=t.label,this.text=t.text,this.theme=t.theme??"info"}},(function(){var t=this,e=t._self._c;return e("k-section",{staticClass:"k-info-section",attrs:{headline:t.label}},[e("k-box",{attrs:{html:!0,icon:t.icon,text:t.text,theme:t.theme}})],1)}),[],!1,null,null,null,null).exports;const Vl=at({extends:Yl,computed:{canAdd(){return this.options.add&&this.$panel.permissions.pages.create},items(){return this.data.map((t=>{const e=!1===t.permissions.changeStatus,i=this.$helper.page.status(t.status,e);return i.click=()=>this.$dialog(t.link+"/changeStatus"),t.flag={status:t.status,disabled:e,click:()=>this.$dialog(t.link+"/changeStatus")},t.sortable=t.permissions.sort&&this.options.sortable,t.deletable=this.data.length>this.options.min,t.column=this.column,t.buttons=[i,...t.buttons??[]],t.options=this.$dropdown(t.link,{query:{view:"list",delete:t.deletable,sort:t.sortable}}),t.data={"data-id":t.id,"data-status":t.status,"data-template":t.template},t}))},type:()=>"pages"},created(){this.$events.on("page.changeStatus",this.reload),this.$events.on("page.sort",this.reload)},destroyed(){this.$events.off("page.changeStatus",this.reload),this.$events.off("page.sort",this.reload)},methods:{onAdd(){this.canAdd&&this.$dialog("pages/create",{query:{parent:this.options.link??this.parent,view:this.parent,section:this.name}})},async onChange(t){let e=null;if(t.added&&(e="added"),t.moved&&(e="moved"),e){this.isProcessing=!0;const n=t[e].element,s=t[e].newIndex+1+this.pagination.offset;try{await this.$api.pages.changeStatus(n.id,"listed",s),this.$panel.notification.success(),this.$events.emit("page.sort",n)}catch(i){this.$panel.error({message:i.message,details:i.details}),await this.reload()}finally{this.isProcessing=!1}}}}},null,null,!1,null,null,null,null).exports;const Kl=at({mixins:[Fl],data:()=>({headline:null,isLoading:!0,reports:null,size:null}),async created(){const t=await this.load();this.isLoading=!1,this.headline=t.headline,this.reports=t.reports,this.size=t.size},methods:{}},(function(){var t=this,e=t._self._c;return!1===t.isLoading?e("k-section",{staticClass:"k-stats-section",attrs:{headline:t.headline}},[t.reports.length>0?e("k-stats",{attrs:{reports:t.reports,size:t.size}}):e("k-empty",{attrs:{icon:"chart"}},[t._v(" "+t._s(t.$t("stats.empty")))])],1):t._e()}),[],!1,null,null,null,null).exports,Wl={install(t){t.component("k-section",Nl),t.component("k-sections",zl),t.component("k-fields-section",Rl),t.component("k-files-section",Ul),t.component("k-info-section",Hl),t.component("k-pages-section",Vl),t.component("k-stats-section",Kl)}};const Jl=at({components:{"k-highlight":()=>F((()=>import("./Highlight.min.js")),["./Highlight.min.js","./vendor.min.js"],import.meta.url)},props:{language:{type:String}}},(function(){var t=this,e=t._self._c;return e("k-highlight",[e("div",[e("pre",{staticClass:"k-code",attrs:{"data-language":t.language}},[e("code",{key:t.$slots.default[0].text+"-"+t.language,class:t.language?`language-${t.language}`:null},[t._t("default")],2)])])])}),[],!1,null,null,null,null).exports;const Gl=at({props:{link:String,size:{type:String},tag:{type:String,default:"h2"},theme:{type:String}},emits:["click"],created(){this.size&&window.panel.deprecated(": the `size` prop will be removed in a future version. Use the `tag` prop instead."),this.theme&&window.panel.deprecated(": the `theme` prop will be removed in a future version.")}},(function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"k-headline",attrs:{"data-theme":t.theme,"data-size":t.size},on:{click:function(e){return t.$emit("click",e)}}},[t.link?e("k-link",{attrs:{to:t.link}},[t._t("default")],2):t._t("default")],2)}),[],!1,null,null,null,null).exports;const Xl=at({props:{input:{type:[String,Number]},invalid:{type:Boolean},link:{type:String},required:{default:!1,type:Boolean},type:{default:"field",type:String}},computed:{element(){return"section"===this.type?"h2":"label"}}},(function(){var t=this,e=t._self._c;return e(t.element,{tag:"component",staticClass:"k-label",class:"k-"+t.type+"-label",attrs:{for:t.input,"data-invalid":t.invalid}},[t.link?e("k-link",{attrs:{to:t.link}},[e("span",{staticClass:"k-label-text"},[t._t("default")],2)]):e("span",{staticClass:"k-label-text"},[t._t("default")],2),t.required&&!t.invalid?e("abbr",{attrs:{title:t.$t(t.type+".required")}},[t._v("✶")]):t._e(),e("abbr",{staticClass:"k-label-invalid",attrs:{title:t.$t(t.type+".invalid")}},[t._v("×")])],1)}),[],!1,null,null,null,null).exports;const Zl=at({props:{align:String,html:String,size:String,theme:String},computed:{attrs(){return{class:"k-text","data-align":this.align,"data-size":this.size,"data-theme":this.theme}}},created(){this.theme&&window.panel.deprecated(': the `theme` prop will be removed in a future version. For help text, add `.k-help "` CSS class instead.')}},(function(){var t=this,e=t._self._c;return t.html?e("div",t._b({domProps:{innerHTML:t._s(t.html)}},"div",t.attrs,!1)):e("div",t._b({},"div",t.attrs,!1),[t._t("default")],2)}),[],!1,null,null,null,null).exports,Ql={install(t){t.component("k-code",Jl),t.component("k-headline",Gl),t.component("k-label",Xl),t.component("k-text",Zl)}};const tr=at({computed:{notification(){return"view"!==this.$panel.notification.context||this.$panel.notification.isFatal?null:this.$panel.notification}}},(function(){var t=this,e=t._self._c;return e("k-panel",{staticClass:"k-panel-inside"},[e("k-panel-menu"),e("main",{staticClass:"k-panel-main"},[e("k-topbar",{attrs:{breadcrumb:t.$panel.view.breadcrumb,view:t.$panel.view}},[t._t("topbar")],2),t._t("default")],2),t.notification&&"error"!==t.notification.type?e("k-button",{staticClass:"k-panel-notification",attrs:{icon:t.notification.icon,text:t.notification.message,theme:t.notification.theme,variant:"filled"},on:{click:function(e){return t.notification.close()}}}):t._e()],1)}),[],!1,null,null,null,null).exports;const er=at({data:()=>({over:!1}),computed:{hasSearch(){return this.$helper.object.length(this.$panel.searches)>0},menus(){return this.$panel.menu.entries.split("-")}}},(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"k-panel-menu",attrs:{"aria-label":t.$t("menu"),"data-hover":t.$panel.menu.hover},on:{mouseenter:function(e){t.$panel.menu.hover=!0},mouseleave:function(e){t.$panel.menu.hover=!1}}},[e("div",{staticClass:"k-panel-menu-body"},[t.hasSearch?e("k-button",{staticClass:"k-panel-menu-search k-panel-menu-button",attrs:{text:t.$t("search"),icon:"search"},on:{click:function(e){return t.$panel.search()}}}):t._e(),t._l(t.menus,(function(i,n){return e("menu",{key:n,staticClass:"k-panel-menu-buttons",attrs:{"data-second-last":n===t.menus.length-2}},t._l(i,(function(i){return e("k-button",t._b({key:i.id,staticClass:"k-panel-menu-button",attrs:{title:i.title??i.text}},"k-button",i,!1))})),1)}))],2),e("k-button",{staticClass:"k-panel-menu-toggle",attrs:{icon:t.$panel.menu.isOpen?"angle-left":"angle-right",title:t.$panel.menu.isOpen?t.$t("collapse"):t.$t("expand"),size:"xs"},on:{click:function(e){return t.$panel.menu.toggle()}}})],1)}),[],!1,null,null,null,null).exports;const ir=at({},(function(){return(0,this._self._c)("k-panel",{staticClass:"k-panel-outside",attrs:{tabindex:"0"}},[this._t("default")],2)}),[],!1,null,null,null,null).exports;const nr=at({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-panel",attrs:{"data-dragging":t.$panel.drag.isDragging,"data-loading":t.$panel.isLoading,"data-language":t.$panel.language.code,"data-language-default":t.$panel.language.isDefault,"data-menu":t.$panel.menu.isOpen?"true":"false","data-role":t.$panel.user.role,"data-translation":t.$panel.translation.code,"data-user":t.$panel.user.id,dir:t.$panel.direction}},[t._t("default"),t.$panel.dialog.isOpen&&!t.$panel.dialog.legacy?e("k-fiber-dialog"):t._e(),t.$panel.drawer.isOpen&&!t.$panel.drawer.legacy?e("k-fiber-drawer"):t._e(),t.$panel.notification.isFatal&&t.$panel.notification.isOpen?e("k-fatal",{attrs:{html:t.$panel.notification.message}}):t._e(),e("k-offline-warning"),e("k-icons"),e("k-overlay",{attrs:{nested:t.$panel.drawer.history.milestones.length>1,visible:t.$panel.drawer.isOpen,type:"drawer"},on:{close:function(e){return t.$panel.drawer.close()}}},[e("portal-target",{staticClass:"k-drawer-portal k-portal",attrs:{name:"drawer",multiple:""}})],1),e("k-overlay",{attrs:{visible:t.$panel.dialog.isOpen,type:"dialog"},on:{close:function(e){return t.$panel.dialog.close()}}},[e("portal-target",{staticClass:"k-dialog-portal k-portal",attrs:{name:"dialog",multiple:""}})],1),e("portal-target",{staticClass:"k-overlay-portal k-portal",attrs:{name:"overlay",multiple:""}})],2)}),[],!1,null,null,null,null).exports;const sr=at({props:{breadcrumb:Array,view:Object},computed:{crumbs(){return[{link:this.view.link,label:this.view.label??this.view.breadcrumbLabel,icon:this.view.icon,loading:this.$panel.isLoading},...this.breadcrumb]}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-topbar"},[e("k-button",{staticClass:"k-panel-menu-proxy",attrs:{icon:"bars"},on:{click:function(e){return t.$panel.menu.toggle()}}}),e("k-breadcrumb",{staticClass:"k-topbar-breadcrumb",attrs:{crumbs:t.crumbs}}),e("div",{staticClass:"k-topbar-spacer"}),e("div",{staticClass:"k-topbar-signals"},[t._t("default")],2)],1)}),[],!1,null,null,null,null).exports,or={install(t){t.component("k-panel",nr),t.component("k-panel-inside",tr),t.component("k-panel-menu",er),t.component("k-panel-outside",ir),t.component("k-topbar",sr),t.component("k-inside",tr),t.component("k-outside",ir)}};const lr=at({props:{error:String,layout:String}},(function(){var t=this,e=t._self._c;return e(`k-panel-${t.layout}`,{tag:"component",staticClass:"k-error-view"},["outside"===t.layout?[e("div",[e("k-box",{attrs:{icon:"alert",theme:"negative"}},[t._v(t._s(t.error))])],1)]:[e("k-header",[t._v(t._s(t.$t("error")))]),e("k-box",{attrs:{icon:"alert",theme:"negative"}},[t._v(t._s(t.error))])]],2)}),[],!1,null,null,null,null).exports;const rr=at({mixins:[zt],props:{type:{default:"pages",type:String}},data:()=>({items:[],query:new URLSearchParams(window.location.search).get("query"),pagination:{}}),computed:{currentType(){return this.$panel.searches[this.type]??Object.values(this.$panel.searches)[0]},tabs(){const t=[];for(const e in this.$panel.searches){const i=this.$panel.searches[e];t.push({label:i.label,link:"/search/?type="+e+"&query="+this.query,name:e})}return t}},watch:{query:{handler(){this.search(1)},immediate:!0},type(){this.search()}},methods:{focus(){var t;null==(t=this.$refs.input)||t.focus()},onPaginate(t){this.search(t.page)},async search(t){this.$panel.isLoading=!0,t||(t=new URLSearchParams(window.location.search).get("page")??1);const e=this.$panel.url(window.location,{type:this.currentType.id,query:this.query,page:t});window.history.pushState("","",e.toString());try{if(null===this.query||this.query.length<2)throw Error("Empty query");const e=await this.$search(this.currentType.id,this.query,{page:t,limit:15});this.items=e.results,this.pagination=e.pagination}catch(i){this.items=[],this.pagination={}}finally{this.$panel.isLoading=!1}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-search-view"},[e("k-header",[t._v(" "+t._s(t.$t("search"))+" "),e("k-input",{ref:"input",staticClass:"k-search-view-input",attrs:{slot:"buttons","aria-label":t.$t("search"),autofocus:!0,placeholder:t.$t("search")+" …",spellcheck:!1,value:t.query,icon:"search",type:"text"},on:{input:function(e){t.query=e}},slot:"buttons"})],1),e("k-tabs",{attrs:{tab:t.currentType.id,tabs:t.tabs}}),e("div",{staticClass:"k-search-view-results"},[e("k-collection",{attrs:{items:t.items,empty:{icon:"search",text:t.$t("search.results.none")},pagination:t.pagination},on:{paginate:t.onPaginate}})],1)],1)}),[],!1,null,null,null,null).exports;const ar=at({props:{blueprint:String,next:Object,prev:Object,permissions:{type:Object,default:()=>({})},lock:{type:[Boolean,Object]},model:{type:Object,default:()=>({})},tab:{type:Object,default:()=>({columns:[]})},tabs:{type:Array,default:()=>[]}},computed:{id(){return this.model.link},isLocked(){var t;return"lock"===(null==(t=this.lock)?void 0:t.state)},protectedFields:()=>[]},watch:{"$panel.view.timestamp":{handler(){this.$store.dispatch("content/create",{id:this.id,api:this.id,content:this.model.content,ignore:this.protectedFields})},immediate:!0}},created(){this.$events.on("model.reload",this.$reload),this.$events.on("keydown.left",this.toPrev),this.$events.on("keydown.right",this.toNext)},destroyed(){this.$events.off("model.reload",this.$reload),this.$events.off("keydown.left",this.toPrev),this.$events.off("keydown.right",this.toNext)},methods:{toPrev(t){this.prev&&"body"===t.target.localName&&this.$go(this.prev.link)},toNext(t){this.next&&"body"===t.target.localName&&this.$go(this.next.link)}}},null,null,!1,null,null,null,null).exports;const ur=at({extends:ar,props:{preview:Object},computed:{focus(){const t=this.$store.getters["content/values"]().focus;if(!t)return;const[e,i]=t.replaceAll("%","").split(" ");return{x:parseFloat(e),y:parseFloat(i)}},isFocusable(){return!this.isLocked&&this.preview.image.src&&this.permissions.update&&(!window.panel.multilang||0===window.panel.languages.length||window.panel.language.default)}},methods:{action(t){if("replace"===t)return this.$panel.upload.replace({...this.preview,...this.model})},setFocus(t){!0===this.$helper.object.isObject(t)&&(t=`${t.x}% ${t.y}%`),this.$store.dispatch("content/update",["focus",t])}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-file-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[e("k-prev-next",{attrs:{prev:t.prev,next:t.next}})]},proxy:!0}])},[e("k-header",{staticClass:"k-file-view-header",attrs:{editable:t.permissions.changeName&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeName")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-file-view-options",attrs:{link:t.preview.url,responsive:!0,title:t.$t("open"),icon:"open",size:"sm",target:"_blank",variant:"filled"}}),e("k-button",{staticClass:"k-file-view-options",attrs:{disabled:t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{options:t.$dropdown(t.id),"align-x":"end"},on:{action:t.action}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.filename)+" ")]),e("k-file-preview",t._b({attrs:{focus:t.focus},on:{focus:t.setFocus}},"k-file-preview",t.preview,!1)),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("file.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const cr=at({props:{details:{default:()=>[],type:Array},focus:{type:Object},focusable:Boolean,image:{default:()=>({}),type:Object},url:String},computed:{options(){return[{icon:"open",text:this.$t("open"),link:this.url,target:"_blank"},{icon:"cancel",text:this.$t("file.focus.reset"),click:()=>this.$refs.focus.reset(),when:this.focusable&&this.focus},{icon:"preview",text:this.$t("file.focus.placeholder"),click:()=>this.$refs.focus.set(),when:this.focusable&&!this.focus}]}},methods:{setFocus(t){if(!t)return this.$emit("focus",null);this.$emit("focus",{x:t.x.toFixed(1),y:t.y.toFixed(1)})}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-file-preview",attrs:{"data-has-focus":Boolean(t.focus)}},[e("div",{staticClass:"k-file-preview-thumb-column"},[e("div",{staticClass:"k-file-preview-thumb"},[t.image.src?[e("k-coords-input",{attrs:{disabled:!t.focusable,value:t.focus},on:{input:function(e){return t.setFocus(e)}}},[e("img",t._b({on:{dragstart:function(t){t.preventDefault()}}},"img",t.image,!1))]),e("k-button",{staticStyle:{color:"var(--color-gray-500)"},attrs:{icon:"dots",size:"xs"},on:{click:function(e){return t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{options:t.options,theme:"light"}})]:e("k-icon",{staticClass:"k-item-icon",attrs:{color:t.$helper.color(t.image.color),type:t.image.icon}})],2)]),e("div",{staticClass:"k-file-preview-details"},[e("dl",[t._l(t.details,(function(i){return e("div",{key:i.title},[e("dt",[t._v(t._s(i.title))]),e("dd",[i.link?e("k-link",{attrs:{to:i.link,tabindex:"-1",target:"_blank"}},[t._v(" /"+t._s(i.text)+" ")]):[t._v(" "+t._s(i.text)+" ")]],2)])})),t.image.src?e("div",{staticClass:"k-file-preview-focus-info"},[e("dt",[t._v(t._s(t.$t("file.focus.title")))]),e("dd",[t.focusable?e("k-file-focus-button",{ref:"focus",attrs:{focus:t.focus},on:{set:t.setFocus}}):t.focus?[t._v(" "+t._s(t.focus.x)+"% "+t._s(t.focus.y)+"% ")]:[t._v("–")]],2)]):t._e()],2)])])}),[],!1,null,null,null,null).exports;const dr=at({props:{focus:Object},methods:{set(){this.$emit("set",{x:50,y:50})},reset(){this.$emit("set",void 0)}}},(function(){var t=this;return(0,t._self._c)("k-button",{attrs:{icon:t.focus?"cancel-small":"preview",title:t.focus?t.$t("file.focus.reset"):void 0,size:"xs",variant:"filled"},on:{click:function(e){t.focus?t.reset():t.set()}}},[t.focus?[t._v(t._s(t.focus.x)+"% "+t._s(t.focus.y)+"%")]:[t._v(t._s(t.$t("file.focus.placeholder")))]],2)}),[],!1,null,null,null,null).exports;const pr=at({props:{languages:{type:Array,default:()=>[]},variables:{type:Boolean,default:!0}},computed:{languagesCollection(){return this.languages.map((t=>({...t,image:{back:"black",color:"gray",icon:"translate"},link:()=>{if(!1===this.variables)return null;this.$go(`languages/${t.id}`)},options:[{icon:"edit",text:this.$t("edit"),disabled:!1===this.variables,click:()=>this.$go(`languages/${t.id}`)},{icon:"cog",text:this.$t("settings"),click:()=>this.$dialog(`languages/${t.id}/update`)},{icon:"trash",text:this.$t("delete"),disabled:!1===t.deletable,click:()=>this.$dialog(`languages/${t.id}/delete`)}]})))},primaryLanguage(){return this.languagesCollection.filter((t=>t.default))},secondaryLanguages(){return this.languagesCollection.filter((t=>!1===t.default))}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-languages-view"},[e("k-header",[t._v(" "+t._s(t.$t("view.languages"))+" "),e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[e("k-button",{attrs:{text:t.$t("language.create"),icon:"add",size:"sm",variant:"filled"},on:{click:function(e){return t.$dialog("languages/create")}}})],1)],1),t.languages.length>0?[e("k-section",{attrs:{headline:t.$t("languages.default")}},[e("k-collection",{attrs:{items:t.primaryLanguage}})],1),e("k-section",{attrs:{headline:t.$t("languages.secondary")}},[t.secondaryLanguages.length?e("k-collection",{attrs:{items:t.secondaryLanguages}}):e("k-empty",{attrs:{icon:"translate"},on:{click:function(e){return t.$dialog("languages/create")}}},[t._v(" "+t._s(t.$t("languages.secondary.empty"))+" ")])],1)]:0===t.languages.length?[e("k-empty",{attrs:{icon:"translate"},on:{click:function(e){return t.$dialog("languages/create")}}},[t._v(" "+t._s(t.$t("languages.empty"))+" ")])]:t._e()],2)}),[],!1,null,null,null,null).exports;const hr=at({props:{code:String,deletable:Boolean,direction:String,id:String,info:Array,next:Object,name:String,prev:Object,translations:Array,url:String},methods:{createTranslation(){this.$dialog(`languages/${this.id}/translations/create`)},option(t,e){this.$dialog(`languages/${this.id}/translations/${window.btoa(encodeURIComponent(e.key))}/${t}`)},remove(){this.$dialog(`languages/${this.id}/delete`)},update(t){this.$dialog(`languages/${this.id}/update`,{on:{ready:()=>{this.$panel.dialog.focus(t)}}})},updateTranslation({row:t}){this.$dialog(`languages/${this.id}/translations/${window.btoa(encodeURIComponent(t.key))}/update`)}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-language-view",scopedSlots:t._u([{key:"topbar",fn:function(){return[e("k-prev-next",{attrs:{prev:t.prev,next:t.next}})]},proxy:!0}])},[e("k-header",{attrs:{editable:!0},on:{edit:function(e){return t.update()}}},[t._v(" "+t._s(t.name)+" "),e("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[e("k-button",{attrs:{link:t.url,title:t.$t("open"),icon:"open",size:"sm",target:"_blank",variant:"filled"}}),e("k-button",{attrs:{title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.update()}}}),t.deletable?e("k-button",{attrs:{title:t.$t("delete"),icon:"trash",size:"sm",variant:"filled"},on:{click:function(e){return t.remove()}}}):t._e()],1)],1),e("k-section",{attrs:{headline:t.$t("language.settings")}},[e("k-stats",{attrs:{reports:t.info,size:"small"}})],1),e("k-section",{attrs:{buttons:[{click:t.createTranslation,icon:"add",text:t.$t("add")}],headline:t.$t("language.variables")}},[t.translations.length?[e("k-table",{attrs:{columns:{key:{label:t.$t("language.variable.key"),mobile:!0,width:"1/4"},value:{label:t.$t("language.variable.value"),mobile:!0}},rows:t.translations},on:{cell:t.updateTranslation,option:t.option}})]:[e("k-empty",{attrs:{icon:"translate"},on:{click:t.createTranslation}},[t._v(" "+t._s(t.$t("language.variables.empty"))+" ")])]],2)],1)}),[],!1,null,null,null,null).exports;const mr=at({components:{"k-login-plugin":window.panel.plugins.login??Ye},props:{methods:Array,pending:Object},data:()=>({issue:""}),computed:{form(){return this.pending.email?"code":"login"},viewClass(){return"code"===this.form?"k-login-code-view":"k-login-view"}},created(){this.$store.dispatch("content/clear")},methods:{async onError(t){null!==t?(!0===t.details.challengeDestroyed&&await this.$reload({globals:["$system"]}),this.issue=t.message):this.issue=null}}},(function(){var t=this,e=t._self._c;return e("k-panel-outside",{class:t.viewClass},[e("div",{staticClass:"k-dialog k-login-dialog"},[e("h1",{staticClass:"sr-only"},[t._v(" "+t._s(t.$t("login"))+" ")]),t.issue?e("k-login-alert",{nativeOn:{click:function(e){t.issue=null}}},[t._v(" "+t._s(t.issue)+" ")]):t._e(),e("k-dialog-body",["code"===t.form?e("k-login-code",t._b({on:{error:t.onError}},"k-login-code",t.$props,!1)):e("k-login-plugin",{attrs:{methods:t.methods},on:{error:t.onError}})],1)],1)])}),[],!1,null,null,null,null).exports;const fr=at({props:{isInstallable:Boolean,isInstalled:Boolean,isOk:Boolean,requirements:Object,translations:Array},data(){return{user:{name:"",email:"",language:this.$panel.translation.code,password:"",role:"admin"}}},computed:{fields(){return{email:{label:this.$t("email"),type:"email",link:!1,autofocus:!0,required:!0},password:{label:this.$t("password"),type:"password",placeholder:this.$t("password")+" …",required:!0},language:{label:this.$t("language"),type:"select",options:this.translations,icon:"translate",empty:!1,required:!0}}},isReady(){return this.isOk&&this.isInstallable},isComplete(){return this.isOk&&this.isInstalled}},methods:{async install(){try{await this.$api.system.install(this.user),await this.$reload({globals:["$system","$translation"]}),this.$panel.notification.success({message:this.$t("welcome")+"!",icon:"smile"})}catch(t){this.$panel.error(t)}}}},(function(){var t=this,e=t._self._c;return e("k-panel-outside",{staticClass:"k-installation-view"},[e("div",{staticClass:"k-dialog k-installation-dialog"},[e("k-dialog-body",[t.isComplete?e("k-text",[e("k-headline",[t._v(t._s(t.$t("installation.completed")))]),e("k-link",{attrs:{to:"/login"}},[t._v(" "+t._s(t.$t("login"))+" ")])],1):t.isReady?e("form",{on:{submit:function(e){return e.preventDefault(),t.install.apply(null,arguments)}}},[e("h1",{staticClass:"sr-only"},[t._v(" "+t._s(t.$t("installation"))+" ")]),e("k-fieldset",{attrs:{fields:t.fields,novalidate:!0,value:t.user},on:{input:function(e){t.user=e}}}),e("k-button",{attrs:{text:t.$t("install"),icon:"check",size:"lg",theme:"positive",type:"submit",variant:"filled"}})],1):e("div",[e("k-headline",[t._v(" "+t._s(t.$t("installation.issues.headline"))+" ")]),e("ul",{staticClass:"k-installation-issues"},[!1===t.isInstallable?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.disabled"))}})],1):t._e(),!1===t.requirements.php?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.php"))}})],1):t._e(),!1===t.requirements.server?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.server"))}})],1):t._e(),!1===t.requirements.mbstring?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.mbstring"))}})],1):t._e(),!1===t.requirements.curl?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.curl"))}})],1):t._e(),!1===t.requirements.accounts?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.accounts"))}})],1):t._e(),!1===t.requirements.content?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.content"))}})],1):t._e(),!1===t.requirements.media?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.media"))}})],1):t._e(),!1===t.requirements.sessions?e("li",[e("k-icon",{attrs:{type:"alert"}}),e("span",{domProps:{innerHTML:t._s(t.$t("installation.issues.sessions"))}})],1):t._e()]),e("k-button",{attrs:{text:t.$t("retry"),icon:"refresh",size:"lg",theme:"positive",variant:"filled"},on:{click:t.$reload}})],1)],1)],1)])}),[],!1,null,null,null,null).exports;const gr=at({data:()=>({isLoading:!1,values:{password:null,passwordConfirmation:null}}),computed:{fields(){return{password:{autofocus:!0,label:this.$t("user.changePassword.new"),icon:"key",type:"password",width:"1/2"},passwordConfirmation:{label:this.$t("user.changePassword.new.confirm"),icon:"key",type:"password",width:"1/2"}}}},mounted(){this.$panel.title=this.$t("view.resetPassword")},methods:{async submit(){if(!this.values.password||this.values.password.length<8)return this.$panel.notification.error(this.$t("error.user.password.invalid"));if(this.values.password!==this.values.passwordConfirmation)return this.$panel.notification.error(this.$t("error.user.password.notSame"));this.isLoading=!0;try{await this.$api.users.changePassword(this.$panel.user.id,this.values.password),this.$panel.notification.success(),this.$go("/")}catch(t){this.$panel.notification.error(t)}finally{this.isLoading=!1}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-password-reset-view"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("k-header",{scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button",{attrs:{icon:"check",theme:"notice",type:"submit",variant:"filled",size:"sm"}},[t._v(" "+t._s(t.$t("change"))+" "),t.isLoading?[t._v(" … ")]:t._e()],2)]},proxy:!0}])},[t._v(" "+t._s(t.$t("view.resetPassword"))+" ")]),e("k-user-info",{attrs:{user:t.$panel.user}}),e("k-fieldset",{attrs:{fields:t.fields,value:t.values}})],1)])}),[],!1,null,null,null,null).exports;const kr=at({props:{user:[Object,String]}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-user-info"},[t.user.avatar?e("k-image-frame",{attrs:{cover:!0,src:t.user.avatar.url,ratio:"1/1"}}):e("k-icon-frame",{attrs:{color:"white",back:"black",icon:"user"}}),t._v(" "+t._s(t.user.name??t.user.email??t.user)+" ")],1)}),[],!1,null,null,null,null).exports;const br=at({extends:ar,props:{status:Object},computed:{protectedFields:()=>["title"],statusBtn(){return{...this.$helper.page.status.call(this,this.model.status,!this.permissions.changeStatus||this.isLocked),responsive:!0,size:"sm",text:this.status.label,variant:"filled"}}}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-page-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[t.model.id?e("k-prev-next",{attrs:{prev:t.prev,next:t.next}}):t._e()]},proxy:!0}])},[e("k-header",{staticClass:"k-page-view-header",attrs:{editable:t.permissions.changeTitle&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeTitle")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[t.permissions.preview&&t.model.previewUrl?e("k-button",{staticClass:"k-page-view-preview",attrs:{link:t.model.previewUrl,title:t.$t("open"),icon:"open",target:"_blank",variant:"filled",size:"sm"}}):t._e(),e("k-button",{staticClass:"k-page-view-options",attrs:{disabled:!0===t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",variant:"filled",size:"sm"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{options:t.$dropdown(t.id),"align-x":"end"}}),e("k-languages-dropdown"),t.status?e("k-button",t._b({staticClass:"k-page-view-status",attrs:{variant:"filled"},on:{click:function(e){return t.$dialog(t.id+"/changeStatus")}}},"k-button",t.statusBtn,!1)):t._e()],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.title)+" ")]),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("page.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const vr=at({extends:ar,computed:{protectedFields:()=>["title"]}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-site-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-locked":t.isLocked,"data-id":"/","data-template":"site"}},[e("k-header",{staticClass:"k-site-view-header",attrs:{editable:t.permissions.changeTitle&&!t.isLocked},on:{edit:function(e){return t.$dialog("site/changeTitle")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-site-view-preview",attrs:{link:t.model.previewUrl,title:t.$t("open"),icon:"open",target:"_blank",variant:"filled",size:"sm"}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t._v(" "+t._s(t.model.title)+" ")]),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("site.blueprint"),lock:t.lock,tab:t.tab,parent:"site"},on:{submit:function(e){return t.$emit("submit",e)}}})],1)}),[],!1,null,null,null,null).exports;const yr=at({components:{Plugins:at({props:{plugins:Array}},(function(){var t=this,e=t._self._c;return t.plugins.length?e("k-section",{attrs:{headline:t.$t("plugins"),link:"https://getkirby.com/plugins"}},[e("k-table",{attrs:{index:!1,columns:{name:{label:t.$t("name"),type:"url",mobile:!0},author:{label:t.$t("author")},license:{label:t.$t("license")},version:{label:t.$t("version"),type:"update-status",mobile:!0,width:"10rem"}},rows:t.plugins}})],1):t._e()}),[],!1,null,null,null,null).exports,Security:at({props:{exceptions:Array,security:Array,urls:Object},data(){return{issues:bt(this.security)}},async created(){console.info("Running system health checks for the Panel system view; failed requests in the following console output are expected behavior.");const t=(Promise.allSettled??Promise.all).bind(Promise),e=Object.entries(this.urls).map(this.check);await t(e),console.info(`System health checks ended. ${this.issues.length-this.security.length} issues with accessible files/folders found (see the security list in the system view).`)},methods:{async check([t,e]){if(!e)return;const{status:i}=await fetch(e,{cache:"no-store"});i<400&&this.issues.push({id:t,text:this.$t("system.issues."+t),link:"https://getkirby.com/security/"+t,icon:"folder"})},retry(){this.$go(window.location.href)}}},(function(){var t=this,e=t._self._c;return t.issues.length?e("k-section",{attrs:{headline:t.$t("security"),buttons:[{title:t.$t("retry"),icon:"refresh",click:t.retry}]}},[e("k-items",{attrs:{items:t.issues.map((t=>({image:{back:"var(--color-red-200)",icon:t.icon??"alert",color:"var(--color-red)"},target:"_blank",...t})))}})],1):t._e()}),[],!1,null,null,null,null).exports},props:{environment:Array,exceptions:Array,plugins:Array,security:Array,urls:Object},created(){this.exceptions.length>0&&(console.info("The following errors occurred during the update check of Kirby and/or plugins:"),this.exceptions.map((t=>console.warn(t))),console.info("End of errors from the update check."))}},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-system-view"},[e("k-header",[t._v(" "+t._s(t.$t("view.system"))+" ")]),e("k-section",{attrs:{headline:t.$t("environment")}},[e("k-stats",{staticClass:"k-system-info",attrs:{reports:t.environment,size:"medium"}})],1),e("security",{attrs:{security:t.security,urls:t.urls}}),e("plugins",{attrs:{plugins:t.plugins}})],1)}),[],!1,null,null,null,null).exports;const $r=at({props:{value:[String,Object]}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-table-update-status-cell"},["string"==typeof t.value?e("span",{staticClass:"k-table-update-status-cell-version"},[t._v(" "+t._s(t.value)+" ")]):[e("k-button",{staticClass:"k-table-update-status-cell-button",attrs:{dropdown:!0,icon:t.value.icon,href:t.value.url,text:t.value.currentVersion,theme:t.value.theme,size:"xs",variant:"filled"},on:{click:function(e){return e.stopPropagation(),t.$refs.dropdown.toggle()}}}),e("k-dropdown-content",{ref:"dropdown",attrs:{"align-x":"end"}},[e("dl",{staticClass:"k-plugin-info"},[e("dt",[t._v(t._s(t.$t("plugin")))]),e("dd",[t._v(t._s(t.value.pluginName))]),e("dt",[t._v(t._s(t.$t("version.current")))]),e("dd",[t._v(t._s(t.value.currentVersion))]),e("dt",[t._v(t._s(t.$t("version.latest")))]),e("dd",[t._v(t._s(t.value.latestVersion))]),e("dt",[t._v(t._s(t.$t("system.updateStatus")))]),e("dd",{attrs:{"data-theme":t.value.theme}},[t._v(t._s(t.value.label))])]),t.value.url?[e("hr"),e("k-button",{attrs:{icon:"open",link:t.value.url}},[t._v(" "+t._s(t.$t("versionInformation"))+" ")])]:t._e()],2)]],2)}),[],!1,null,null,null,null).exports;const wr=at({extends:ar},(function(){var t=this,e=t._self._c;return e("k-panel-inside",{staticClass:"k-user-view",attrs:{"data-has-tabs":t.tabs.length>1,"data-id":t.model.id,"data-locked":t.isLocked,"data-template":t.blueprint},scopedSlots:t._u([{key:"topbar",fn:function(){return[t.model.account?e("k-prev-next",{attrs:{prev:t.prev,next:t.next}}):t._e()]},proxy:!0}])},[e("k-header",{staticClass:"k-user-view-header",attrs:{editable:t.permissions.changeName&&!t.isLocked},on:{edit:function(e){return t.$dialog(t.id+"/changeName")}},scopedSlots:t._u([{key:"buttons",fn:function(){return[e("k-button-group",[e("k-button",{staticClass:"k-user-view-options",attrs:{disabled:t.isLocked,dropdown:!0,title:t.$t("settings"),icon:"cog",size:"sm",variant:"filled"},on:{click:function(e){return t.$refs.settings.toggle()}}}),e("k-dropdown-content",{ref:"settings",attrs:{"align-x":"end",options:t.$dropdown(t.id)}}),e("k-languages-dropdown")],1),e("k-form-buttons",{attrs:{lock:t.lock}})]},proxy:!0}])},[t.model.name&&0!==t.model.name.length?[t._v(" "+t._s(t.model.name)+" ")]:e("span",{staticClass:"k-user-name-placeholder"},[t._v(" "+t._s(t.$t("name"))+" … ")])],2),e("k-user-profile",{attrs:{"is-locked":t.isLocked,model:t.model,permissions:t.permissions}}),e("k-model-tabs",{attrs:{tab:t.tab.name,tabs:t.tabs}}),e("k-sections",{attrs:{blueprint:t.blueprint,empty:t.$t("user.blueprint",{blueprint:t.$esc(t.blueprint)}),lock:t.lock,parent:t.id,tab:t.tab}})],1)}),[],!1,null,null,null,null).exports;const xr=at({extends:wr,prevnext:!1},null,null,!1,null,null,null,null).exports;const _r=at({props:{model:Object},methods:{async deleteAvatar(){await this.$api.users.deleteAvatar(this.model.id),this.$panel.notification.success(),this.$reload()},uploadAvatar(){this.$panel.upload.pick({url:this.$panel.urls.api+"/"+this.model.link+"/avatar",accept:"image/*",immediate:!0,multiple:!1})}}},(function(){var t=this,e=t._self._c;return e("div",[e("k-button",{staticClass:"k-user-view-image",attrs:{title:t.$t("avatar"),variant:"filled"},on:{click:function(e){t.model.avatar?t.$refs.avatar.toggle():t.uploadAvatar()}}},[t.model.avatar?e("k-image-frame",{attrs:{cover:!0,src:t.model.avatar}}):e("k-icon-frame",{attrs:{icon:"user"}})],1),t.model.avatar?e("k-dropdown-content",{ref:"avatar",attrs:{options:[{icon:"upload",text:t.$t("change"),click:t.uploadAvatar},{icon:"trash",text:t.$t("delete"),click:t.deleteAvatar}]}}):t._e()],1)}),[],!1,null,null,null,null).exports;const Sr=at({props:{isLocked:Boolean,model:Object,permissions:Object}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"k-user-profile"},[e("k-user-avatar",{attrs:{model:t.model,"aria-disabled":t.isLocked}}),e("k-button-group",{attrs:{buttons:[{icon:"email",text:`${t.model.email}`,title:`${t.$t("email")}: ${t.model.email}`,disabled:!t.permissions.changeEmail||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeEmail")},{icon:"bolt",text:`${t.model.role}`,title:`${t.$t("role")}: ${t.model.role}`,disabled:!t.permissions.changeRole||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeRole")},{icon:"translate",text:`${t.model.language}`,title:`${t.$t("language")}: ${t.model.language}`,disabled:!t.permissions.changeLanguage||t.isLocked,click:()=>t.$dialog(t.model.link+"/changeLanguage")}]}})],1)}),[],!1,null,null,null,null).exports;const Cr=at({props:{role:Object,roles:Array,search:String,title:String,users:Object},computed:{empty(){return{icon:"users",text:this.$t("role.empty")}},items(){return this.users.data.map((t=>(t.options=this.$dropdown(t.link),t)))},tabs(){const t=[{name:"all",label:this.$t("role.all"),link:"/users"}];for(const e of this.roles)t.push({name:e.id,label:e.title,link:"/users?role="+e.id});return t}},methods:{create(){var t;this.$dialog("users/create",{query:{role:null==(t=this.role)?void 0:t.id}})},paginate(t){this.$reload({query:{page:t.page}})}}},(function(){var t,e=this,i=e._self._c;return i("k-panel-inside",{staticClass:"k-users-view"},[i("k-header",{staticClass:"k-users-view-header",scopedSlots:e._u([{key:"buttons",fn:function(){return[i("k-button",{attrs:{disabled:!e.$panel.permissions.users.create,text:e.$t("user.create"),icon:"add",size:"sm",variant:"filled"},on:{click:e.create}})]},proxy:!0}])},[e._v(" "+e._s(e.$t("view.users"))+" ")]),i("k-tabs",{attrs:{tab:(null==(t=e.role)?void 0:t.id)??"all",tabs:e.tabs}}),i("k-collection",{attrs:{empty:e.empty,items:e.items,pagination:e.users.pagination},on:{paginate:e.paginate}})],1)}),[],!1,null,null,null,null).exports;const Or=at({props:{id:String},created(){window.panel.deprecated(" will be removed in a future version.")}},(function(){var t=this._self._c;return t("k-panel-inside",[t("k-"+this.id+"-plugin-view",{tag:"component"})],1)}),[],!1,null,null,null,null).exports,Ar={install(t){t.component("k-error-view",lr),t.component("k-search-view",rr),t.component("k-file-view",ur),t.component("k-file-preview",cr),t.component("k-file-focus-button",dr),t.component("k-languages-view",pr),t.component("k-language-view",hr),t.component("k-login-view",mr),t.component("k-installation-view",fr),t.component("k-reset-password-view",gr),t.component("k-user-info",kr),t.component("k-page-view",br),t.component("k-site-view",vr),t.component("k-system-view",yr),t.component("k-table-update-status-cell",$r),t.component("k-account-view",xr),t.component("k-user-avatar",_r),t.component("k-user-profile",Sr),t.component("k-user-view",wr),t.component("k-users-view",Cr),t.component("k-plugin-view",Or)}},Mr={install(t){t.use(gt),t.use(ne),t.use(we),t.use(Te),t.use(qo),t.use(Fo),t.use(cl),t.use($l),t.use(Pl),t.use(Ql),t.use(Wl),t.use(Ql),t.use(or),t.use(Ar),t.use(L)}},jr={install(t){window.onunhandledrejection=t=>{t.preventDefault(),window.panel.error(t.reason)},t.config.errorHandler=window.panel.error.bind(window.panel)}},Ir=(t={})=>{var e=t.desc?-1:1,i=-e,n=/^0/,s=/\s+/g,o=/^\s+|\s+$/g,l=/[^\x00-\x80]/,r=/^0x[0-9a-f]+$/i,a=/(0x[\da-fA-F]+|(^[\+\-]?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?(?=\D|\s|$))|\d+)/g,u=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=t.insensitive?function(t){return function(t){if(t.toLocaleLowerCase)return t.toLocaleLowerCase();return t.toLowerCase()}(""+t).replace(o,"")}:function(t){return(""+t).replace(o,"")};function d(t){return t.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")}function p(t,e){return(!t.match(n)||1===e)&&parseFloat(t)||t.replace(s," ").replace(o,"")||0}return function(t,n){var s=c(t),o=c(n);if(!s&&!o)return 0;if(!s&&o)return i;if(s&&!o)return e;var a=d(s),h=d(o),m=parseInt(s.match(r),16)||1!==a.length&&Date.parse(s),f=parseInt(o.match(r),16)||m&&o.match(u)&&Date.parse(o)||null;if(f){if(mf)return e}for(var g=a.length,k=h.length,b=0,v=Math.max(g,k);b0)return e;if(w<0)return i;if(b===v-1)return 0}else{if(y<$)return i;if(y>$)return e}}return 0}};RegExp.escape=function(t){return t.replace(new RegExp("[-/\\\\^$*+?.()[\\]{}]","gu"),"\\$&")},Array.fromObject=function(t){return Array.isArray(t)?t:Object.values(t??{})};Array.prototype.sortBy=function(t){const e=t.split(" "),i=e[0],n=e[1]??"asc",s=Ir({desc:"desc"===n,insensitive:!0});return this.sort(((t,e)=>{const n=String(t[i]??""),o=String(e[i]??"");return s(n,o)}))},Array.prototype.split=function(t){return this.reduce(((e,i)=>(i===t?e.push([]):e[e.length-1].push(i),e)),[[]])},Array.wrap=function(t){return Array.isArray(t)?t:[t]};const Tr={search:(t,e,i={})=>{if((e??"").length<=(i.min??0))return t;const n=new RegExp(RegExp.escape(e),"ig"),s=i.field??"text",o=t.filter((t=>!!t[s]&&null!==t[s].match(n)));return i.limit?o.slice(0,i.limit):o}};const Er={read:function(t,e=!1){if(!t)return null;if("string"==typeof t)return t;if(t instanceof ClipboardEvent){if(t.preventDefault(),!0===e)return t.clipboardData.getData("text/plain");const i=t.clipboardData.getData("text/html")||t.clipboardData.getData("text/plain")||null;if(i)return i.replace(/\u00a0/g," ")}return null},write:function(t,e){if("string"!=typeof t&&(t=JSON.stringify(t,null,2)),e&&e instanceof ClipboardEvent)return e.preventDefault(),e.clipboardData.setData("text/plain",t),!0;const i=document.createElement("textarea");if(i.value=t,document.body.append(i),navigator.userAgent.match(/ipad|ipod|iphone/i)){i.contentEditable=!0,i.readOnly=!0;const t=document.createRange();t.selectNodeContents(i);const e=window.getSelection();e.removeAllRanges(),e.addRange(t),i.setSelectionRange(0,999999)}else i.select();return document.execCommand("copy"),i.remove(),!0}};function Lr(t){if("string"==typeof t){if("pattern"===(t=t.toLowerCase()))return"var(--pattern)";if(!1===t.startsWith("#")&&!1===t.startsWith("var(")){const e="--color-"+t;if(window.getComputedStyle(document.documentElement).getPropertyValue(e))return`var(${e})`}return t}}function Dr(t,e=!1){if(!t.match("youtu"))return!1;let i=null;try{i=new URL(t)}catch(d){return!1}const n=i.pathname.split("/").filter((t=>""!==t)),s=n[0],o=n[1],l="https://"+(!0===e?"www.youtube-nocookie.com":i.host)+"/embed",r=t=>!!t&&null!==t.match(/^[a-zA-Z0-9_-]+$/);let a=i.searchParams,u=null;switch(n.join("/")){case"embed/videoseries":case"playlist":r(a.get("list"))&&(u=l+"/videoseries");break;case"watch":r(a.get("v"))&&(u=l+"/"+a.get("v"),a.has("t")&&a.set("start",a.get("t")),a.delete("v"),a.delete("t"));break;default:i.host.includes("youtu.be")&&r(s)?(u=!0===e?"https://www.youtube-nocookie.com/embed/"+s:"https://www.youtube.com/embed/"+s,a.has("t")&&a.set("start",a.get("t")),a.delete("t")):["embed","shorts"].includes(s)&&r(o)&&(u=l+"/"+o)}if(!u)return!1;const c=a.toString();return c.length&&(u+="?"+c),u}function Br(t,e=!1){let i=null;try{i=new URL(t)}catch(a){return!1}const n=i.pathname.split("/").filter((t=>""!==t));let s=i.searchParams,o=null;switch(!0===e&&s.append("dnt",1),i.host){case"vimeo.com":case"www.vimeo.com":o=n[0];break;case"player.vimeo.com":o=n[1]}if(!o||!o.match(/^[0-9]*$/))return!1;let l="https://player.vimeo.com/video/"+o;const r=s.toString();return r.length&&(l+="?"+r),l}const qr={youtube:Dr,vimeo:Br,video:function(t,e=!1){return!0===t.includes("youtu")?Dr(t,e):!0===t.includes("vimeo")&&Br(t,e)}};function Pr(t){if(void 0!==t.default)return bt(t.default);const e=window.panel.app.$options.components[`k-${t.type}-field`],i=null==e?void 0:e.options.props.value;if(void 0===i)return;const n=null==i?void 0:i.default;return"function"==typeof n?n():void 0!==n?n:null}const Nr={defaultValue:Pr,form:function(t){const e={};for(const i in t){const n=Pr(t[i]);void 0!==n&&(e[i]=n)}return e},isVisible:function(t,e){if("hidden"===t.type||!0===t.hidden)return!1;if(!t.when)return!0;for(const i in t.when){const n=e[i.toLowerCase()],s=t.when[i];if((void 0!==n||""!==s&&s!==[])&&n!==s)return!1}return!0},subfields:function(t,e){let i={};for(const n in e){const s=e[n];s.section=t.name,t.endpoints&&(s.endpoints={field:t.endpoints.field+"+"+n,section:t.endpoints.section,model:t.endpoints.model}),i[n]=s}return i}},zr=t=>t.split(".").slice(-1).join(""),Fr=t=>t.split(".").slice(0,-1).join("."),Rr=t=>Intl.NumberFormat("en",{notation:"compact",style:"unit",unit:"byte",unitDisplay:"narrow"}).format(t),Yr={extension:zr,name:Fr,niceSize:Rr};function Ur(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t)return!1;if(!e&&t.contains(document.activeElement)&&t!==document.activeElement)return!1;const i=["[autofocus]","[data-autofocus]","input","textarea","select","[contenteditable=true]","[type=submit]","button"];e&&i.unshift(`[name="${e}"]`);const n=function(t,e){for(const i of e){const e=t.querySelector(i);if(!0===Hr(e))return e}return null}(t,i);return n?(n.focus(),n):!0===Hr(t)&&(t.focus(),t)}function Hr(t){return!!t&&(!t.matches("[disabled], [aria-disabled], input[type=hidden]")&&(!t.closest("[aria-disabled]")&&!t.closest("[disabled]")&&"function"==typeof t.focus))}const Vr=t=>"function"==typeof window.Vue.options.components[t],Kr=t=>!!t.dataTransfer&&(!!t.dataTransfer.types&&(!0===t.dataTransfer.types.includes("Files")&&!1===t.dataTransfer.types.includes("text/plain")));const Wr={metaKey:function(){return window.navigator.userAgent.indexOf("Mac")>-1?"cmd":"ctrl"}};const Jr={status:function(t,e=!1){const i={class:"k-status-icon",icon:"status-"+t,title:window.panel.$t("page.status")+": "+window.panel.$t("page.status."+t),disabled:e,size:"xs",style:"--icon-size: 15px"};return e&&(i.title+=` (${window.panel.$t("disabled")})`),i.theme="draft"===t?"negative":"unlisted"===t?"info":"positive",i}},Gr=(t="3/2",e="100%",i=!0)=>{const n=String(t).split("/");if(2!==n.length)return e;const s=Number(n[0]),o=Number(n[1]);let l=100;return 0!==s&&0!==o&&(l=i?l/s*o:l/o*s,l=parseFloat(String(l)).toFixed(2)),l+"%"},Xr={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Zr(t){return String(t).replace(/[&<>"'`=/]/g,(t=>Xr[t]))}function Qr(t){return!t||0===String(t).length}function ta(t){const e=String(t);return e.charAt(0).toLowerCase()+e.slice(1)}function ea(t="",e=""){const i=new RegExp(`^(${e})+`,"g");return t.replace(i,"")}function ia(t="",e=""){const i=new RegExp(`(${e})+$`,"g");return t.replace(i,"")}function na(t,e={}){const i=(t,e={})=>{const n=e[Zr(t.shift())]??"…";return"…"===n||0===t.length?n:i(t,n)},n="[{]{1,2}[\\s]?",s="[\\s]?[}]{1,2}";return(t=t.replace(new RegExp(`${n}(.*?)${s}`,"gi"),((t,n)=>i(n.split("."),e)))).replace(new RegExp(`${n}.*${s}`,"gi"),"…")}function sa(t){const e=String(t);return e.charAt(0).toUpperCase()+e.slice(1)}function oa(){let t,e,i="";for(t=0;t<32;t++)e=16*Math.random()|0,8!=t&&12!=t&&16!=t&&20!=t||(i+="-"),i+=(12==t?4:16==t?3&e|8:e).toString(16);return i}const la={camelToKebab:function(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()},escapeHTML:Zr,hasEmoji:function(t){if("string"!=typeof t)return!1;const e=t.match(/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c\ude32-\ude3a]|[\ud83c\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/i);return null!==e&&null!==e.length},isEmpty:Qr,lcfirst:ta,ltrim:ea,pad:function(t,e=2){t=String(t);let i="";for(;i.length]+)>)/gi,"")},template:na,ucfirst:sa,ucwords:function(t){return String(t).split(/ /g).map((t=>sa(t))).join(" ")},unescapeHTML:function(t){for(const e in Xr)t=String(t).replaceAll(Xr[e],e);return t},uuid:oa},ra=async(t,e)=>new Promise(((i,n)=>{const s={url:"/",field:"file",method:"POST",filename:t.name,headers:{},attributes:{},complete:()=>{},error:()=>{},success:()=>{},progress:()=>{}},o=Object.assign(s,e),l=new XMLHttpRequest,r=new FormData;r.append(o.field,t,o.filename);for(const t in o.attributes)r.append(t,o.attributes[t]);const a=e=>{if(e.lengthComputable&&o.progress){const i=Math.max(0,Math.min(100,Math.ceil(e.loaded/e.total*100)));o.progress(l,t,i)}};l.upload.addEventListener("loadstart",a),l.upload.addEventListener("progress",a),l.addEventListener("load",(e=>{let s=null;try{s=JSON.parse(e.target.response)}catch(r){s={status:"error",message:"The file could not be uploaded"}}"error"===s.status?(o.error(l,t,s),n(s)):(o.progress(l,t,100),o.success(l,t,s),i(s))})),l.addEventListener("error",(e=>{const i=JSON.parse(e.target.response);o.progress(l,t,100),o.error(l,t,i),n(i)})),l.open(o.method,o.url,!0);for(const t in o.headers)l.setRequestHeader(t,o.headers[t]);l.send(r)}));function aa(){var t;return new URL((null==(t=document.querySelector("base"))?void 0:t.href)??window.location.origin)}function ua(t={},e={}){e instanceof URL&&(e=e.search);const i=new URLSearchParams(e);for(const[n,s]of Object.entries(t))null!==s&&i.set(n,s);return i}function ca(t="",e={},i){return(t=fa(t,i)).search=ua(e,t.search),t}function da(t){return null!==String(t).match(/^https?:\/\//)}function pa(t){return fa(t).origin===window.location.origin}function ha(t){if(t instanceof URL||t instanceof Location)return!0;if("string"!=typeof t)return!1;try{return new URL(t,window.location),!0}catch(e){return!1}}function ma(t,e){return!0===da(t)?t:(e=e??aa(),(e=String(e).replaceAll(/\/$/g,""))+"/"+(t=String(t).replaceAll(/^\//g,"")))}function fa(t,e){return t instanceof URL?t:new URL(ma(t,e))}const ga={base:aa,buildUrl:ca,buildQuery:ua,isAbsolute:da,isSameOrigin:pa,isUrl:ha,makeAbsolute:ma,toObject:fa},ka={install(t){t.prototype.$helper={array:Tr,clipboard:Er,clone:wt.clone,color:Lr,embed:qr,focus:Ur,isComponent:Vr,isUploadEvent:Kr,debounce:Nt,field:Nr,file:Yr,keyboard:Wr,object:wt,page:Jr,pad:la.pad,ratio:Gr,slug:la.slug,sort:Ir,string:la,upload:ra,url:ga,uuid:la.uuid},t.prototype.$esc=la.escapeHTML}},ba={install(t){t.directive("direction",{inserted(t,e,i){!0!==i.context.disabled?t.dir=window.panel.translation.direction:t.dir=null}})}},va={install(t){window.panel.redirect=window.panel.redirect.bind(window.panel),window.panel.reload=window.panel.reload.bind(window.panel),window.panel.request=window.panel.request.bind(window.panel),window.panel.search=window.panel.search.bind(window.panel);const e=["api","config","direction","events","language","languages","license","menu","multilang","permissions","search","searches","system","t","translation","url","urls","user","view"];for(const i of e){const e=`$${i}`;t.prototype[e]=window.panel[e]=window.panel[i]}window.panel.$vue=window.panel.app}},ya=/^#([\da-f]{3}){1,2}$/i,$a=/^#([\da-f]{4}){1,2}$/i,wa=/^rgba?\(\s*(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i,xa=/^hsla?\(\s*(\d{1,3}\.?\d*)(deg|rad|grad|turn)?(?:,|\s)+(\d{1,3})%(?:,|\s)+(\d{1,3})%(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i;function _a(t){return"string"==typeof t&&(ya.test(t)||$a.test(t))}function Sa(t){return vt(t)&&"r"in t&&"g"in t&&"b"in t}function Ca(t){return vt(t)&&"h"in t&&"s"in t&&"l"in t}function Oa({h:t,s:e,v:i,a:n}){if(0===i)return{h:t,s:0,l:0,a:n};if(0===e&&1===i)return{h:t,s:1,l:1,a:n};const s=i*(2-e)/2;return{h:t,s:e=i*e/(1-Math.abs(2*s-1)),l:s,a:n}}function Aa({h:t,s:e,l:i,a:n}){const s=e*(i<.5?i:1-i);return{h:t,s:e=0===s?0:2*s/(i+s),v:i+s,a:n}}function Ma(t){if(!0===ya.test(t)){3===(t=t.slice(1)).length&&(t=t.split("").reduce(((t,e)=>t+e+e),""));const e=parseInt(t,16);return{r:e>>16,g:e>>8&255,b:255&e,a:1}}if(!0===$a.test(t)){4===(t=t.slice(1)).length&&(t=t.split("").reduce(((t,e)=>t+e+e),""));const e=parseInt(t,16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/255*100)/100}}throw new Error(`unknown hex color: ${t}`)}function ja({r:t,g:e,b:i,a:n=1}){let s="#"+(1<<24|t<<16|e<<8|i).toString(16).slice(1);return n<1&&(s+=(256|Math.round(255*n)).toString(16).slice(1)),s}function Ia({h:t,s:e,l:i,a:n}){const s=e*Math.min(i,1-i),o=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return{r:255*o(0),g:255*o(8),b:255*o(4),a:n}}function Ta({r:t,g:e,b:i,a:n}){t/=255,e/=255,i/=255;const s=Math.max(t,e,i),o=s-Math.min(t,e,i),l=1-Math.abs(s+s-o-1);let r=o&&(s==t?(e-i)/o:s==e?2+(i-t)/o:4+(t-e)/o);return r=60*(r<0?r+6:r),{h:r,s:l?o/l:0,l:(s+s-o)/2,a:n}}function Ea(t){return ja(Ia(t))}function La(t){return Ta(Ma(t))}function Da(t,e){return t=Number(t),"grad"===e?t*=.9:"rad"===e?t*=180/Math.PI:"turn"===e&&(t*=360),parseInt(t%360)}function Ba(t,e){if(!0===_a(t))switch(e){case"hex":return t;case"rgb":return Ma(t);case"hsl":return La(t);case"hsv":return Aa(La(t))}if(!0===Sa(t))switch(e){case"hex":return ja(t);case"rgb":return t;case"hsl":return Ta(t);case"hsv":return function({r:t,g:e,b:i,a:n}){t/=255,e/=255,i/=255;const s=Math.max(t,e,i),o=s-Math.min(t,e,i);let l=o&&(s==t?(e-i)/o:s==e?2+(i-t)/o:4+(t-e)/o);return l=60*(l<0?l+6:l),{h:l,s:s&&o/s,v:s,a:n}}(t)}if(!0===Ca(t))switch(e){case"hex":return Ea(t);case"rgb":return Ia(t);case"hsl":return t;case"hsv":return Aa(t)}if(!0===function(t){return vt(t)&&"h"in t&&"s"in t&&"v"in t}(t))switch(e){case"hex":return Ea(Oa(t));case"rgb":return function({h:t,s:e,v:i,a:n}){const s=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return{r:255*s(5),g:255*s(3),b:255*s(1),a:n}}(t);case"hsl":return Oa(t);case"hsv":return t}throw new Error(`Invalid color conversion: ${JSON.stringify(t)} -> ${e}`)}function qa(t){let e;if(!t||"string"!=typeof t)return!1;if(_a(t))return t;if(e=t.match(wa)){const t={r:Number(e[1]),g:Number(e[3]),b:Number(e[5]),a:Number(e[7]||1)};return"%"===e[2]&&(t.r=Math.ceil(2.55*t.r)),"%"===e[4]&&(t.g=Math.ceil(2.55*t.g)),"%"===e[6]&&(t.b=Math.ceil(2.55*t.b)),"%"===e[8]&&(t.a=t.a/100),t}if(e=t.match(xa)){let[t,i,n,s,o]=e.slice(1);const l={h:Da(t,i),s:Number(n)/100,l:Number(s)/100,a:Number(o||1)};return"%"===e[6]&&(l.a=l.a/100),l}return null}const Pa={convert:Ba,parse:qa,parseAs:function(t,e){const i=qa(t);return i&&e?Ba(i,e):i},toString:function(t,e,i=!0){var n,s;let o=t;if("string"==typeof o&&(o=qa(t)),o&&e&&(o=Ba(o,e)),!0===_a(o))return!0!==i&&(5===o.length?o=o.slice(0,4):o.length>7&&(o=o.slice(0,7))),o.toLowerCase();if(!0===Sa(o)){const t=o.r.toFixed(),e=o.g.toFixed(),s=o.b.toFixed(),l=null==(n=o.a)?void 0:n.toFixed(2);return i&&l&&l<1?`rgb(${t} ${e} ${s} / ${l})`:`rgb(${t} ${e} ${s})`}if(!0===Ca(o)){const t=o.h.toFixed(),e=(100*o.s).toFixed(),n=(100*o.l).toFixed(),l=null==(s=o.a)?void 0:s.toFixed(2);return i&&l&&l<1?`hsl(${t} ${e}% ${n}% / ${l})`:`hsl(${t} ${e}% ${n}%)`}throw new Error(`Unsupported color: ${JSON.stringify(t)}`)}};D.extend(B),D.extend(((t,e,i)=>{i.interpret=(t,e="date")=>{const n={date:{"YYYY-MM-DD":!0,"YYYY-MM-D":!0,"YYYY-MM-":!0,"YYYY-MM":!0,"YYYY-M-DD":!0,"YYYY-M-D":!0,"YYYY-M-":!0,"YYYY-M":!0,"YYYY-":!0,YYYYMMDD:!0,"MMM DD YYYY":!1,"MMM D YYYY":!1,"MMM DD YY":!1,"MMM D YY":!1,"MMM YYYY":!0,"MMM DD":!1,"MMM D":!1,"MM YYYY":!0,"M YYYY":!0,"DD MMMM YYYY":!1,"DD MMMM YY":!1,"DD MMMM":!1,"D MMMM YYYY":!1,"D MMMM YY":!1,"D MMMM":!1,"DD MMM YYYY":!1,"D MMM YYYY":!1,"DD MMM YY":!1,"D MMM YY":!1,"DD MMM":!1,"D MMM":!1,"DD MM YYYY":!1,"DD M YYYY":!1,"D MM YYYY":!1,"D M YYYY":!1,"DD MM YY":!1,"D MM YY":!1,"DD M YY":!1,"D M YY":!1,YYYY:!0,MMMM:!0,MMM:!0,"DD MM":!1,"DD M":!1,"D MM":!1,"D M":!1,DD:!1,D:!1},time:{"HH:mm:ss a":!1,"HH:mm:ss":!1,"HH:mm a":!1,"HH:mm":!1,"HH a":!1,HH:!1}};if("string"==typeof t&&""!==t)for(const s in n[e]){const o=i(t,s,n[e][s]);if(!0===o.isValid())return o}return null}})),D.extend(((t,e,i)=>{const n=t=>"date"===t?"YYYY-MM-DD":"time"===t?"HH:mm:ss":"YYYY-MM-DD HH:mm:ss";e.prototype.toISO=function(t="datetime"){return this.format(n(t))},i.iso=function(t,e="datetime"){const s=i(t,n(e));return s&&s.isValid()?s:null}})),D.extend(((t,e)=>{e.prototype.merge=function(t,e="date"){let i=this.clone();if(!t||!t.isValid())return this;if("string"==typeof e){const t={date:["year","month","date"],time:["hour","minute","second"]};if(!1===Object.hasOwn(t,e))throw new Error("Invalid merge unit alias");e=t[e]}for(const n of e)i=i.set(n,t.get(n));return i}})),D.extend(((t,e,i)=>{i.pattern=t=>new class{constructor(t,e){this.dayjs=t,this.pattern=e;const i={year:["YY","YYYY"],month:["M","MM","MMM","MMMM"],day:["D","DD"],hour:["h","hh","H","HH"],minute:["m","mm"],second:["s","ss"],meridiem:["a"]};this.parts=this.pattern.split(/\W/).map(((t,e)=>{const n=this.pattern.indexOf(t);return{index:e,unit:Object.keys(i)[Object.values(i).findIndex((e=>e.includes(t)))],start:n,end:n+(t.length-1)}}))}at(t,e=t){const i=this.parts.filter((i=>i.start<=t&&i.end>=e-1));return i[0]?i[0]:this.parts.filter((e=>e.start<=t)).pop()}format(t){return t&&t.isValid()?t.format(this.pattern):null}}(i,t)})),D.extend(((t,e)=>{e.prototype.round=function(t="date",e=1){const i=["second","minute","hour","date","month","year"];if("day"===t&&(t="date"),!1===i.includes(t))throw new Error("Invalid rounding unit");if(["date","month","year"].includes(t)&&1!==e||"hour"===t&&24%e!=0||["second","minute"].includes(t)&&60%e!=0)throw"Invalid rounding size for "+t;let n=this.clone();const s=i.indexOf(t),o=i.slice(0,s),l=o.pop();for(const r of o)n=n.startOf(r);if(l){const e={month:12,date:n.daysInMonth(),hour:24,minute:60,second:60}[l];Math.round(n.get(l)/e)*e===e&&(n=n.add(1,"date"===t?"day":t)),n=n.startOf(t)}return n=n.set(t,Math.round(n.get(t)/e)*e),n}})),D.extend(((t,e,i)=>{e.prototype.validate=function(t,e,n="day"){if(!this.isValid())return!1;if(!t)return!0;t=i.iso(t);const s={min:"isAfter",max:"isBefore"}[e];return this.isSame(t,n)||this[s](t,n)}}));const Na={install(t){t.prototype.$library={colors:Pa,dayjs:D}}},za=t=>({async changeName(e,i,n){return t.patch(this.url(e,i,"name"),{name:n})},async delete(e,i){return t.delete(this.url(e,i))},async get(e,i,n){let s=await t.get(this.url(e,i),n);return!0===Array.isArray(s.content)&&(s.content={}),s},id:t=>!0===t.startsWith("/@/file/")?t.replace("/@/file/","@"):!0===t.startsWith("file://")?t.replace("file://","@"):t,link(t,e,i){return"/"+this.url(t,e,i)},async update(e,i,n){return t.patch(this.url(e,i),n)},url(t,e,i){let n="files/"+this.id(e);return t&&(n=t+"/"+n),i&&(n+="/"+i),n}}),Fa=t=>({async blueprint(e){return t.get("pages/"+this.id(e)+"/blueprint")},async blueprints(e,i){return t.get("pages/"+this.id(e)+"/blueprints",{section:i})},async changeSlug(e,i){return t.patch("pages/"+this.id(e)+"/slug",{slug:i})},async changeStatus(e,i,n){return t.patch("pages/"+this.id(e)+"/status",{status:i,position:n})},async changeTemplate(e,i){return t.patch("pages/"+this.id(e)+"/template",{template:i})},async changeTitle(e,i){return t.patch("pages/"+this.id(e)+"/title",{title:i})},async children(e,i){return t.post("pages/"+this.id(e)+"/children/search",i)},async create(e,i){return null===e||"/"===e?t.post("site/children",i):t.post("pages/"+this.id(e)+"/children",i)},async delete(e,i){return t.delete("pages/"+this.id(e),i)},async duplicate(e,i,n){return t.post("pages/"+this.id(e)+"/duplicate",{slug:i,children:n.children??!1,files:n.files??!1})},async get(e,i){let n=await t.get("pages/"+this.id(e),i);return!0===Array.isArray(n.content)&&(n.content={}),n},id:t=>!0===t.startsWith("/@/page/")?t.replace("/@/page/","@"):!0===t.startsWith("page://")?t.replace("page://","@"):t.replace(/\//g,"+"),async files(e,i){return t.post("pages/"+this.id(e)+"/files/search",i)},link(t){return"/"+this.url(t)},async preview(t){return(await this.get(this.id(t),{select:"previewUrl"})).previewUrl},async search(e,i){return e?t.post("pages/"+this.id(e)+"/children/search?select=id,title,hasChildren",i):t.post("site/children/search?select=id,title,hasChildren",i)},async update(e,i){return t.patch("pages/"+this.id(e),i)},url(t,e){let i=null===t?"pages":"pages/"+String(t).replace(/\//g,"+");return e&&(i+="/"+e),i}});class Ra extends Error{constructor(t,{request:e,response:i,cause:n}){super(i.json.message??t,{cause:n}),this.request=e,this.response=i}state(){return this.response.json}}class Ya extends Ra{}class Ua extends Ra{state(){return{message:this.message,text:this.response.text}}}const Ha=t=>(window.location.href=ma(t),!1),Va=async(t,e={})=>{var i;(e={cache:"no-store",credentials:"same-origin",mode:"same-origin",...e}).body=((i=e.body)instanceof HTMLFormElement&&(i=new FormData(i)),i instanceof FormData&&(i=Object.fromEntries(i)),"object"==typeof i?JSON.stringify(i):i),e.headers=((t={},e={})=>{return{"content-type":"application/json","x-csrf":e.csrf??!1,"x-fiber":!0,"x-fiber-globals":(i=e.globals,!!i&&(!1===Array.isArray(i)?String(i):i.join(","))),"x-fiber-referrer":e.referrer??!1,...$t(t)};var i})(e.headers,e),e.url=ca(t,e.query);const n=new Request(e.url,e);return!1===pa(n.url)?Ha(n.url):await Ka(n,await fetch(n))},Ka=async(t,e)=>{var i;if(!1===e.headers.get("Content-Type").includes("application/json"))return Ha(e.url);try{e.text=await e.text(),e.json=JSON.parse(e.text)}catch(n){throw new Ua("Invalid JSON response",{cause:n,request:t,response:e})}if(401===e.status)throw new Ya("Unauthenticated",{request:t,response:e});if("error"===(null==(i=e.json)?void 0:i.status))throw e.json;if(!1===e.ok)throw new Ra(`The request to ${e.url} failed`,{request:t,response:e});return{request:t,response:e}},Wa=t=>({blueprint:async e=>t.get("users/"+e+"/blueprint"),blueprints:async(e,i)=>t.get("users/"+e+"/blueprints",{section:i}),changeEmail:async(e,i)=>t.patch("users/"+e+"/email",{email:i}),changeLanguage:async(e,i)=>t.patch("users/"+e+"/language",{language:i}),changeName:async(e,i)=>t.patch("users/"+e+"/name",{name:i}),changePassword:async(e,i)=>t.patch("users/"+e+"/password",{password:i}),changeRole:async(e,i)=>t.patch("users/"+e+"/role",{role:i}),create:async e=>t.post("users",e),delete:async e=>t.delete("users/"+e),deleteAvatar:async e=>t.delete("users/"+e+"/avatar"),link(t,e){return"/"+this.url(t,e)},async list(e){return t.post(this.url(null,"search"),e)},get:async(e,i)=>t.get("users/"+e,i),async roles(e){return(await t.get(this.url(e,"roles"))).data.map((t=>({info:t.description??`(${window.panel.$t("role.description.placeholder")})`,text:t.title,value:t.name})))},search:async e=>t.post("users/search",e),update:async(e,i)=>t.patch("users/"+e,i),url(t,e){let i=t?"users/"+t:"users";return e&&(i+="/"+e),i}}),Ja=t=>{const e={csrf:t.system.csrf,endpoint:ia(t.urls.api,"/"),methodOverwrite:!0,ping:null,requests:[],running:0},i=()=>{clearInterval(e.ping),e.ping=setInterval(e.auth.ping,3e5)};return e.request=async(n,s={},o=!1)=>{const l=n+"/"+JSON.stringify(s);e.requests.push(l),!1===o&&(t.isLoading=!0),e.language=t.language.code;try{return await(t=>async(e,i={})=>{i={cache:"no-store",credentials:"same-origin",mode:"same-origin",headers:{"content-type":"application/json","x-csrf":t.csrf,"x-language":t.language,...$t(i.headers??{})},...i},t.methodOverwrite&&"GET"!==i.method&&"POST"!==i.method&&(i.headers["x-http-method-override"]=i.method,i.method="POST"),i.url=ia(t.endpoint,"/")+"/"+ea(e,"/");const n=new Request(i.url,i),{response:s}=await Ka(n,await fetch(n));let o=s.json;return o.data&&"model"===o.type&&(o=o.data),o})(e)(n,s)}finally{i(),e.requests=e.requests.filter((t=>t!==l)),0===e.requests.length&&(t.isLoading=!1)}},e.auth=(t=>({async login(e){const i={long:e.remember??!1,email:e.email,password:e.password};return t.post("auth/login",i)},logout:async()=>t.post("auth/logout"),ping:async()=>t.post("auth/ping"),user:async e=>t.get("auth",e),verifyCode:async e=>t.post("auth/code",{code:e})}))(e),e.delete=(t=>async(e,i,n,s=!1)=>t.post(e,i,n,"DELETE",s))(e),e.files=za(e),e.get=(t=>async(e,i,n,s=!1)=>(i&&(e+="?"+Object.keys(i).filter((t=>void 0!==i[t]&&null!==i[t])).map((t=>t+"="+i[t])).join("&")),t.request(e,Object.assign(n??{},{method:"GET"}),s)))(e),e.languages=(t=>({create:async e=>t.post("languages",e),delete:async e=>t.delete("languages/"+e),get:async e=>t.get("languages/"+e),list:async()=>t.get("languages"),update:async(e,i)=>t.patch("languages/"+e,i)}))(e),e.pages=Fa(e),e.patch=(t=>async(e,i,n,s=!1)=>t.post(e,i,n,"PATCH",s))(e),e.post=(t=>async(e,i,n,s="POST",o=!1)=>t.request(e,Object.assign(n??{},{method:s,body:JSON.stringify(i)}),o))(e),e.roles=(t=>({list:async e=>t.get("roles",e),get:async e=>t.get("roles/"+e)}))(e),e.system=(t=>({get:async(e={view:"panel"})=>t.get("system",e),install:async e=>(await t.post("system/install",e)).user,register:async e=>t.post("system/register",e)}))(e),e.site=(t=>({blueprint:async()=>t.get("site/blueprint"),blueprints:async()=>t.get("site/blueprints"),changeTitle:async e=>t.patch("site/title",{title:e}),children:async e=>t.post("site/children/search",e),get:async(e={view:"panel"})=>t.get("site",e),update:async e=>t.post("site",e)}))(e),e.translations=(t=>({list:async()=>t.get("translations"),get:async e=>t.get("translations/"+e)}))(e),e.users=Wa(e),i(),e},Ga=()=>({addEventListener(t,e){"function"==typeof e&&(this.on[t]=e)},addEventListeners(t){if(!1!==vt(t))for(const e in t)this.addEventListener(e,t[e])},emit(t,...e){return this.hasEventListener(t)?this.on[t](...e):()=>{}},hasEventListener(t){return"function"==typeof this.on[t]},listeners(){return this.on},on:{}}),Xa=(t,e={})=>({...e,key:()=>t,defaults:()=>e,reset(){return this.set(this.defaults())},set(t){this.validateState(t);for(const e in this.defaults())this[e]=t[e]??this.defaults()[e];return this.state()},state(){const t={};for(const e in this.defaults())t[e]=this[e]??this.defaults()[e];return t},validateState(t){if(!1===vt(t))throw new Error(`Invalid ${this.key()} state`);return!0}}),Za=(t,e,i)=>{const n=Xa(e,i);return{...n,...Ga(),async load(e,i={}){return!0!==i.silent&&(this.isLoading=!0),await t.open(e,i),this.isLoading=!1,this.addEventListeners(i.on),this.state()},async open(t,e={}){return"function"==typeof e&&(e={on:{submit:e}}),!0===ha(t)?this.load(t,e):(this.set(t),this.addEventListeners(e.on),this.emit("open",t,e),this.state())},async post(e,i={}){var n;if(!this.path)throw new Error(`The ${this.key()} cannot be posted`);this.isLoading=!0,e=e??(null==(n=this.props)?void 0:n.value)??{};try{return await t.post(this.path,e,i)}catch(s){t.error(s)}finally{this.isLoading=!1}return!1},async refresh(e={}){e.url=e.url??this.url();const i=(await t.get(e.url,e))["$"+this.key()];if(i&&i.component===this.component)return this.props=i.props,this.state()},async reload(t={}){if(!this.path)return!1;this.open(this.url(),t)},set(t){return n.set.call(this,t),this.on={},this.addEventListeners(t.on??{}),this.state()},url(){return t.url(this.path,this.query)}}},Qa=(t,e,i)=>{const n=Za(t,e,i);return{...n,async cancel(){this.isOpen&&this.emit("cancel"),this.close()},async close(){!1!==this.isOpen&&(this.isOpen=!1,this.emit("close"),this.reset(),0===t.overlays().length&&(document.documentElement.removeAttribute("data-overlay"),document.documentElement.style.removeProperty("--scroll-top")))},focus(t){Ur(`.k-${this.key()}-portal`,t)},input(t){!1!==this.isOpen&&(Vue.set(this.props,"value",t),this.emit("input",t))},isOpen:!1,listeners(){return{...this.on,cancel:this.cancel.bind(this),close:this.close.bind(this),input:this.input.bind(this),submit:this.submit.bind(this),success:this.success.bind(this)}},async open(e,i){return!1===this.isOpen&&t.notification.close(),document.documentElement.setAttribute("data-overlay","true"),document.documentElement.style.setProperty("--scroll-top",window.scrollY+"px"),await n.open.call(this,e,i),this.isOpen=!0,this.state()},async submit(t,e={}){if(t=t??this.props.value,this.hasEventListener("submit"))return this.emit("submit",t,e);if(!this.path)return this.close();const i=await this.post(t,e);return!1===vt(i)?i:this.success(i["$"+this.key()]??{})},success(e){return this.hasEventListener("success")?this.emit("success",e):("string"==typeof e&&t.notification.success(e),this.close(),this.successNotification(e),this.successEvents(e),this.successDispatch(e),e.route||e.redirect?this.successRedirect(e):t.view.reload(e.reload),e)},successDispatch(e){if(!1!==vt(e.dispatch))for(const i in e.dispatch){const n=e.dispatch[i];t.app.$store.dispatch(i,!0===Array.isArray(n)?[...n]:n)}},successEvents(e){if(e.event){const i=Array.wrap(e.event);for(const n of i)"string"==typeof n&&t.events.emit(n,e)}!1!==e.emit&&t.events.emit("success",e)},successNotification(e){e.message&&t.notification.success(e.message)},successRedirect(e){const i=e.route??e.redirect;return!!i&&("string"==typeof i?t.open(i):t.open(i.url,i.options))},get value(){var t;return null==(t=this.props)?void 0:t.value}}},tu=t=>{t.events.on("dialog.save",(e=>{var i;null==(i=null==e?void 0:e.preventDefault)||i.call(e),t.dialog.submit()}));const e=Qa(t,"dialog",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,legacy:!1,ref:null});return{...e,async close(){this.ref&&(this.ref.visible=!1),e.close.call(this)},async open(t,i={}){return t instanceof window.Vue?this.openComponent(t):("string"==typeof t&&(t=`/dialogs/${t}`),e.open.call(this,t,i))},async openComponent(i){t.deprecated("Dialog components should no longer be used in your templates");const n=await e.open.call(this,{component:i.$options._componentTag,legacy:!0,props:{...i.$attrs,...i.$props},ref:i}),s=this.listeners();for(const t in s)i.$on(t,s[t]);return i.visible=!0,n}}},eu=()=>({...Xa("drag",{type:null,data:{}}),get isDragging(){return null!==this.type},start(t,e){this.type=t,this.data=e},stop(){this.type=null,this.data={}}}),iu=()=>({add(t){if(!t.id)throw new Error("The state needs an ID");!0!==this.has(t.id)&&this.milestones.push(t)},at(t){return this.milestones.at(t)},get(t=null){return null===t?this.milestones:this.milestones.find((e=>e.id===t))},goto(t){const e=this.index(t);if(-1!==e)return this.milestones=this.milestones.slice(0,e+1),this.milestones[e]},has(t){return void 0!==this.get(t)},index(t){return this.milestones.findIndex((e=>e.id===t))},isEmpty(){return 0===this.milestones.length},last(){return this.milestones.at(-1)},milestones:[],remove(t=null){return null===t?this.removeLast():this.milestones=this.milestones.filter((e=>e.id!==t))},removeLast(){return this.milestones=this.milestones.slice(0,-1)},replace(t,e){-1===t&&(t=this.milestones.length-1),Vue.set(this.milestones,t,e)}}),nu=t=>{const e=Qa(t,"drawer",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,id:null});return t.events.on("drawer.save",(e=>{e.preventDefault(),t.drawer.submit()})),{...e,get breadcrumb(){return this.history.milestones},async close(t){if(!1!==this.isOpen&&(void 0===t||t===this.id)){if(this.history.removeLast(),!0!==this.history.isEmpty())return this.open(this.history.last());e.close.call(this)}},goTo(t){const e=this.history.goto(t);void 0!==e&&this.open(e)},history:iu(),get icon(){return this.props.icon??"box"},input(t){Vue.set(this.props,"value",t),this.emit("input",this.props.value)},listeners(){return{...this.on,cancel:this.cancel.bind(this),close:this.close.bind(this),crumb:this.goTo.bind(this),input:this.input.bind(this),submit:this.submit.bind(this),success:this.success.bind(this),tab:this.tab.bind(this)}},async open(t,i={}){"string"==typeof t&&(t=`/drawers/${t}`),await e.open.call(this,t,i),this.tab(t.tab);const n=this.state();return!0===t.replace?this.history.replace(-1,n):this.history.add(n),this.focus(),n},set(t){return e.set.call(this,t),this.id=this.id??oa(),this.state()},tab(t){const e=this.props.tabs??{};if(!(t=t??Object.keys(e??{})[0]))return!1;Vue.set(this.props,"fields",e[t].fields),Vue.set(this.props,"tab",t),this.emit("tab",t),setTimeout((()=>{this.focus()}))}}},su=t=>{const e=Za(t,"dropdown",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null});return{...e,close(){this.emit("close"),this.reset()},open(t,i={}){return"string"==typeof t&&(t=`/dropdowns/${t}`),e.open.call(this,t,i)},openAsync(t,e={}){return async i=>{await this.open(t,e);const n=this.options();if(0===n.length)throw Error("The dropdown is empty");i(n)}},options(){return!1===Array.isArray(this.props.options)?[]:this.props.options.map((e=>e.dialog?(e.click=()=>{const i="string"==typeof e.dialog?e.dialog:e.dialog.url,n="object"==typeof e.dialog?e.dialog:{};return t.app.$dialog(i,n)},e):e))},set(t){return t.options&&(t.props={options:t.options}),e.set.call(this,t)}}},ou=t=>{const e=q();e.on("online",(()=>{t.isOffline=!1})),e.on("offline",(()=>{t.isOffline=!0})),e.on("keydown.cmd.s",(i=>{e.emit(t.context+".save",i)})),e.on("keydown.cmd.shift.f",(()=>t.search())),e.on("keydown.cmd./",(()=>t.search()));const i={document:{blur:!0,click:!1,copy:!0,focus:!0,paste:!0},window:{dragenter:!1,dragexit:!1,dragleave:!1,dragover:!1,drop:!1,keydown:!1,keyup:!1,offline:!1,online:!1,popstate:!1}};return{blur(t){this.emit("blur",t)},click(t){this.emit("click",t)},copy(t){this.emit("copy",t)},dragenter(t){this.entered=t.target,this.prevent(t),this.emit("dragenter",t)},dragexit(t){this.prevent(t),this.entered=null,this.emit("dragexit",t)},dragleave(t){this.prevent(t),this.entered===t.target&&(this.entered=null,this.emit("dragleave",t))},dragover(t){this.prevent(t),this.emit("dragover",t)},drop(t){this.prevent(t),this.entered=null,this.emit("drop",t)},emit:e.emit,entered:null,focus(t){this.emit("focus",t)},keychain(t,e){let i=[t];(e.metaKey||e.ctrlKey)&&i.push("cmd"),!0===e.altKey&&i.push("alt"),!0===e.shiftKey&&i.push("shift");let n=e.key?ta(e.key):null;const s={escape:"esc",arrowUp:"up",arrowDown:"down",arrowLeft:"left",arrowRight:"right"};return s[n]&&(n=s[n]),n&&!1===["alt","control","shift","meta"].includes(n)&&i.push(n),i.join(".")},keydown(t){this.emit(this.keychain("keydown",t),t),this.emit("keydown",t)},keyup(t){this.emit(this.keychain("keyup",t),t),this.emit("keyup",t)},off:e.off,offline(t){this.emit("offline",t)},on:e.on,online(t){this.emit("online",t)},paste(t){this.emit("paste",t)},popstate(t){this.emit("popstate",t)},prevent(t){t.stopPropagation(),t.preventDefault()},subscribe(){for(const t in i.document)document.addEventListener(t,this[t].bind(this),i.document[t]);for(const t in i.window)window.addEventListener(t,this[t].bind(this),i.window[t])},unsubscribe(){for(const t in i.document)document.removeEventListener(t,this[t]);for(const t in i.window)window.removeEventListener(t,this[t])},$on(...t){window.panel.deprecated("`events.$on` will be removed in a future version. Use `events.on` instead."),e.on(...t)},$emit(...t){window.panel.deprecated("`events.$emit` will be removed in a future version. Use `events.emit` instead."),e.emit(...t)},$off(...t){window.panel.deprecated("`events.$off` will be removed in a future version. Use `events.off` instead."),e.off(...t)}}},lu={interval:null,start(t,e){this.stop(),t&&(this.interval=setInterval(e,t))},stop(){clearInterval(this.interval),this.interval=null}},ru=(t={})=>({...Xa("notification",{context:null,details:null,icon:null,isOpen:!1,message:null,timeout:null,type:null}),close(){return this.timer.stop(),this.reset(),this.state()},deprecated(t){console.warn("Deprecated: "+t)},error(e){if(e instanceof Ya&&t.user.id)return t.redirect("logout");if(e instanceof Ua)return this.fatal(e);if(e instanceof Ra){const t=Object.values(e.response.json).find((t=>"string"==typeof(null==t?void 0:t.error)));t&&(e.message=t.error)}return"string"==typeof e&&(e={message:e,type:"error"}),e={message:e.message??"Something went wrong",details:e.details??{}},"view"===t.context&&t.dialog.open({component:"k-error-dialog",props:e,type:"error"}),this.open({message:e.message,type:"error",icon:"alert"})},get isFatal(){return"fatal"===this.type},fatal(t){return"string"==typeof t?this.open({message:t,type:"fatal"}):t instanceof Ua?this.open({message:t.response.text,type:"fatal"}):this.open({message:t.message??"Something went wrong",type:"fatal"})},open(e){return this.timer.stop(),"string"==typeof e?this.success(e):(this.set({context:t.context,...e}),this.isOpen=!0,this.timer.start(this.timeout,(()=>this.close())),this.state())},success(t){return t||(t={}),"string"==typeof t&&(t={message:t}),this.open({timeout:4e3,type:"success",icon:"check",...t})},get theme(){return"error"===this.type?"negative":"positive"},timer:lu}),au=()=>({...Xa("language",{code:null,default:!1,direction:"ltr",name:null,rules:null}),get isDefault(){return this.default}}),uu=(t,e,i)=>{if(!i.template&&!i.render&&!i.extends)throw new Error(`Neither template nor render method provided. Nor extending a component when loading plugin component "${e}". The component has not been registered.`);return(i=cu(t,e,i)).template&&(i.render=null),i=du(i),!0===Vr(e)&&window.console.warn(`Plugin is replacing "${e}"`),t.component(e,i),i},cu=(t,e,i)=>"string"!=typeof(null==i?void 0:i.extends)?i:!1===Vr(i.extends)?(window.console.warn(`Problem with plugin trying to register component "${e}": cannot extend non-existent component "${i.extends}"`),i.extends=null,i):(i.extends=t.options.components[i.extends].extend({options:i,components:{...t.options.components,...i.components??{}}}),i),du=t=>{if(!1===Array.isArray(t.mixins))return t;const e={dialog:Et,drawer:me,section:Fl};return t.mixins=t.mixins.map((t=>"string"==typeof t?e[t]:t)),t},pu=(t,e={})=>((e={components:{},created:[],icons:{},login:null,textareaButtons:{},use:[],thirdParty:{},writerMarks:{},writerNodes:{},...e}).use=((t,e)=>{if(!1===Array.isArray(e))return[];for(const i of e)t.use(i);return e})(t,e.use),e.components=((t,e)=>{if(!1===vt(e))return;const i={};for(const[s,o]of Object.entries(e))try{i[s]=uu(t,s,o)}catch(n){window.console.warn(n.message)}return i})(t,e.components),e),hu=t=>{var e;const i=Xa("menu",{entries:[],hover:!1,isOpen:!1}),n=null==(e=window.matchMedia)?void 0:e.call(window,"(max-width: 60rem)"),s={...i,blur(t){if(!1===n.matches)return!1;const e=document.querySelector(".k-panel-menu");!1===document.querySelector(".k-panel-menu-proxy").contains(t.target)&&!1===e.contains(t.target)&&this.close()},close(){this.isOpen=!1,!1===n.matches&&localStorage.setItem("kirby$menu",!0)},escape(){if(!1===n.matches)return!1;this.close()},open(){this.isOpen=!0,!1===n.matches&&localStorage.removeItem("kirby$menu")},resize(){if(n.matches)return this.close();null!==localStorage.getItem("kirby$menu")?this.isOpen=!1:this.isOpen=!0},set(t){return this.entries=t,this.resize(),this.state()},toggle(){this.isOpen?this.close():this.open()}};return t.events.on("keydown.esc",s.escape.bind(s)),t.events.on("click",s.blur.bind(s)),null==n||n.addEventListener("change",s.resize.bind(s)),s},mu=()=>{const t=Xa("translation",{code:null,data:{},direction:"ltr",name:null});return{...t,set(e){return t.set.call(this,e),document.documentElement.lang=this.code,document.body.dir=this.direction,this.state()},translate(t,e,i=null){if("string"!=typeof t)return;const n=this.data[t]??i;return"string"!=typeof n?n:na(n,e)}}};const fu=t=>{const e=Xa("upload",{accept:"*",attributes:{},files:[],max:null,multiple:!0,replacing:null,url:null});return{...e,...Ga(),input:null,cancel(){this.emit("cancel"),this.completed.length>0&&(this.emit("complete",this.completed),t.view.reload()),this.reset()},get completed(){return this.files.filter((t=>t.completed)).map((t=>t.model))},done(){t.dialog.close(),this.completed.length>0&&(this.emit("done",this.completed),!1===t.drawer.isOpen&&(t.notification.success({context:"view"}),t.view.reload())),this.reset()},findDuplicate(t){return this.files.findLastIndex((e=>e.src.name===t.src.name&&e.src.type===t.src.type&&e.src.size===t.src.size&&e.src.lastModified===t.src.lastModified))},hasUniqueName(t){return this.files.filter((e=>e.name===t.name&&e.extension===t.extension)).length<2},file(t){const e=URL.createObjectURL(t);return{completed:!1,error:null,extension:zr(t.name),filename:t.name,id:oa(),model:null,name:Fr(t.name),niceSize:Rr(t.size),progress:0,size:t.size,src:t,type:t.type,url:e}},open(e,i){e instanceof FileList?(this.set(i),this.select(e)):this.set(e);const n={component:"k-upload-dialog",on:{cancel:()=>this.cancel(),submit:async()=>{t.dialog.isLoading=!0,await this.submit(),t.dialog.isLoading=!1}}};this.replacing&&(n.component="k-upload-replace-dialog",n.props={original:this.replacing}),t.dialog.open(n)},pick(t){this.set(t),this.input=document.createElement("input"),this.input.type="file",this.input.classList.add("sr-only"),this.input.value=null,this.input.accept=this.accept,this.input.multiple=this.multiple,this.input.click(),this.input.addEventListener("change",(e=>{!0===(null==t?void 0:t.immediate)?(this.set(t),this.select(e.target.files),this.submit()):this.open(e.target.files,t),this.input.remove()}))},remove(t){this.files=this.files.filter((e=>e.id!==t))},replace(e,i){this.pick({...i,url:t.urls.api+"/"+e.link,accept:"."+e.extension+","+e.mime,multiple:!1,replacing:e})},reset(){e.reset.call(this),this.files.splice(0)},select(t,e){if(this.set(e),t instanceof Event&&(t=t.target.files),t instanceof FileList==!1)throw new Error("Please provide a FileList");t=(t=[...t]).map((t=>this.file(t))),this.files=[...this.files,...t],this.files=this.files.filter(((t,e)=>this.findDuplicate(t)===e)),null!==this.max&&(this.files=this.files.slice(-1*this.max)),this.emit("select",this.files)},set(t){if(t)return e.set.call(this,t),this.on={},this.addEventListeners(t.on??{}),1===this.max&&(this.multiple=!1),!1===this.multiple&&(this.max=1),this.state()},async submit(){var e;if(!this.url)throw new Error("The upload URL is missing");const i=[];for(const n of this.files)!0!==n.completed&&(!1!==this.hasUniqueName(n)?(n.error=null,n.progress=0,i.push((async()=>await this.upload(n))),void 0!==(null==(e=this.attributes)?void 0:e.sort)&&this.attributes.sort++):n.error=t.t("error.file.name.unique"));if(await async function(t,e=20){let i=0,n=0;return new Promise((s=>{const o=e=>n=>{t[e]=n,i--,l()},l=()=>{if(i{e.progress=n}});e.completed=!0,e.model=i.data}catch(i){t.error(i,!1),e.error=i.message,e.progress=0}}}},gu=t=>{const e=Za(t,"view",{component:null,isLoading:!1,on:{},path:null,props:{},query:{},referrer:null,timestamp:null,breadcrumb:[],breadcrumbLabel:null,icon:null,id:null,link:null,search:"pages",title:null});return{...e,set(i){e.set.call(this,i),t.title=this.title;const n=this.url().toString();window.location.toString()!==n&&(window.history.pushState(null,null,n),window.scrollTo(0,0))},async submit(){throw new Error("Not yet implemented")}}},ku={config:{},languages:[],license:!1,multilang:!1,permissions:{},searches:{},urls:{}},bu=["dialog","drawer"],vu=["dropdown","language","menu","notification","system","translation","user"],yu={create(t={}){return this.isLoading=!1,this.isOffline=!1,this.drag=eu(),this.events=ou(this),this.upload=fu(this),this.language=au(),this.menu=hu(this),this.notification=ru(this),this.system=Xa("system",{ascii:{},csrf:null,isLocal:null,locales:{},slugs:[],title:null}),this.translation=mu(),this.user=Xa("user",{email:null,id:null,language:null,role:null,username:null}),this.dropdown=su(this),this.view=gu(this),this.drawer=nu(this),this.dialog=tu(this),this.redirect=Ha,this.reload=this.view.reload.bind(this.view),this.t=this.translation.translate.bind(this.translation),this.plugins=pu(window.Vue,t),this.set(window.fiber),this.api=Ja(this),Vue.reactive(this)},get context(){return this.dialog.isOpen?"dialog":this.drawer.isOpen?"drawer":"view"},get debug(){return!0===this.config.debug},deprecated(t){this.notification.deprecated(t)},get direction(){return this.translation.direction},error(t,e=!0){if(!0===this.debug&&console.error(t),!0===e)return this.notification.error(t)},async get(t,e={}){const{response:i}=await this.request(t,{method:"GET",...e});return(null==i?void 0:i.json)??{}},async open(t,e={}){try{if(!1===ha(t))this.set(t);else{this.isLoading=!0;const i=await this.get(t,e);this.set(i),this.isLoading=!1}return this.state()}catch(i){return this.error(i)}},overlays(){const t=[];return!0===this.drawer.isOpen&&t.push("drawer"),!0===this.dialog.isOpen&&t.push("dialog"),t},async post(t,e={},i={}){const{response:n}=await this.request(t,{method:"POST",body:e,...i});return n.json},async request(t,e={}){return Va(t,{referrer:this.view.path,csrf:this.system.csrf,...e})},async search(t,e,i){if(!t&&!e)return this.menu.escape(),this.dialog.open({component:"k-search-dialog"});const{$search:n}=await this.get(`/search/${t}`,{query:{query:e,...i}});return n},set(t={}){t=Object.fromEntries(Object.entries(t).map((([t,e])=>[t.replace("$",""),e])));for(const e in ku){const i=t[e]??this[e]??ku[e];typeof i==typeof ku[e]&&(this[e]=i)}for(const e of vu)(vt(t[e])||Array.isArray(t[e]))&&this[e].set(t[e]);for(const e of bu)!0===vt(t[e])?this[e].open(t[e]):void 0!==t[e]&&this[e].close();!0===vt(t.dropdown)?this.dropdown.open(t.dropdown):void 0!==t.dropdown&&this.dropdown.close(),!0===vt(t.view)&&this.view.open(t.view)},state(){const t={};for(const e in ku)t[e]=this[e]??ku[e];for(const e of vu)t[e]=this[e].state();for(const e of bu)t[e]=this[e].state();return t.dropdown=this.dropdown.state(),t.view=this.view.state(),t},get title(){return document.title},set title(t){!1===Qr(this.system.title)&&(t+=" | "+this.system.title),document.title=t},url:(t="",e={},i)=>ca(t,e,i)},$u=(t,e)=>{localStorage.setItem("kirby$content$"+t,JSON.stringify(e))},wu={namespaced:!0,state:{current:null,models:{},status:{enabled:!0}},getters:{exists:t=>e=>Object.hasOwn(t.models,e),hasChanges:(t,e)=>t=>yt(e.model(t).changes)>0,isCurrent:t=>e=>t.current===e,id:t=>e=>(e=e??t.current)+"?language="+window.panel.language.code,model:(t,e)=>i=>(i=i??t.current,!0===e.exists(i)?t.models[i]:{api:null,originals:{},values:{},changes:{}}),originals:(t,e)=>t=>bt(e.model(t).originals),values:(t,e)=>t=>({...e.originals(t),...e.changes(t)}),changes:(t,e)=>t=>bt(e.model(t).changes)},mutations:{CLEAR(t){for(const e in t.models)t.models[e].changes={};for(const e in localStorage)e.startsWith("kirby$content$")&&localStorage.removeItem(e)},CREATE(t,[e,i]){if(!i)return!1;let n=t.models[e]?t.models[e].changes:i.changes;Vue.set(t.models,e,{api:i.api,originals:i.originals,changes:n??{}})},CURRENT(t,e){t.current=e},MOVE(t,[e,i]){const n=bt(t.models[e]);Vue.del(t.models,e),Vue.set(t.models,i,n);const s=localStorage.getItem("kirby$content$"+e);localStorage.removeItem("kirby$content$"+e),localStorage.setItem("kirby$content$"+i,s)},REMOVE(t,e){Vue.del(t.models,e),localStorage.removeItem("kirby$content$"+e)},REVERT(t,e){t.models[e]&&(Vue.set(t.models[e],"changes",{}),localStorage.removeItem("kirby$content$"+e))},STATUS(t,e){Vue.set(t.status,"enabled",e)},UPDATE(t,[e,i,n]){if(!t.models[e])return!1;void 0===n&&(n=null),n=bt(n);const s=JSON.stringify(n);JSON.stringify(t.models[e].originals[i]??null)==s?Vue.del(t.models[e].changes,i):Vue.set(t.models[e].changes,i,n),$u(e,{api:t.models[e].api,originals:t.models[e].originals,changes:t.models[e].changes})}},actions:{init(t){for(const i in localStorage)if(i.startsWith("kirby$content$")){const e=i.split("kirby$content$")[1],n=localStorage.getItem("kirby$content$"+e);t.commit("CREATE",[e,JSON.parse(n)])}else if(i.startsWith("kirby$form$")){const n=i.split("kirby$form$")[1],s=localStorage.getItem("kirby$form$"+n);let o=null;try{o=JSON.parse(s)}catch(e){}if(!o||!o.api)return localStorage.removeItem("kirby$form$"+n),!1;const l={api:o.api,originals:o.originals,changes:o.values};t.commit("CREATE",[n,l]),$u(n,l),localStorage.removeItem("kirby$form$"+n)}},clear(t){t.commit("CLEAR")},create(t,e){const i=bt(e.content);if(Array.isArray(e.ignore))for(const s of e.ignore)delete i[s];e.id=t.getters.id(e.id);const n={api:e.api,originals:i,changes:{}};t.commit("CREATE",[e.id,n]),t.dispatch("current",e.id)},current(t,e){t.commit("CURRENT",e)},disable(t){t.commit("STATUS",!1)},enable(t){t.commit("STATUS",!0)},move(t,[e,i]){e=t.getters.id(e),i=t.getters.id(i),t.commit("MOVE",[e,i])},remove(t,e){t.commit("REMOVE",e),t.getters.isCurrent(e)&&t.commit("CURRENT",null)},revert(t,e){e=e??t.state.current,t.commit("REVERT",e)},async save(t,e){if(e=e??t.state.current,t.getters.isCurrent(e)&&!1===t.state.status.enabled)return!1;t.dispatch("disable");const i=t.getters.model(e),n={...i.originals,...i.changes};try{await window.panel.api.patch(i.api,n),t.commit("CREATE",[e,{...i,originals:n}]),t.dispatch("revert",e)}finally{t.dispatch("enable")}},update(t,[e,i,n]){if(n=n??t.state.current,null===e)for(const s in i)t.commit("UPDATE",[n,s,i[s]]);else t.commit("UPDATE",[n,e,i])}}},xu={namespaced:!0,actions:{close(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.close(e)},goto(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.goto(e)},open(t,e){window.panel.deprecated("`$store.drawer` will be removed in a future version. Use `$panel.drawer` instead."),window.panel.drawer.goto(e)}}},_u={namespaced:!0,actions:{close(){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.close()},deprecated(t,e){window.panel.deprecated("`$store.notification.deprecated` will be removed in a future version. Use `$panel.deprecated` instead."),window.panel.notification.deprecated(e)},error(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.error(e)},open(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.open(e)},success(t,e){window.panel.deprecated("`$store.notification` will be removed in a future version. Use `$panel.notification` instead."),window.panel.notification.success(e)}}};Vue.use(P);const Su=new P.Store({strict:!1,actions:{dialog(t,e){window.panel.deprecated("`$store.dialog` will be removed in a future version. Use `$panel.dialog.open()` instead."),window.panel.dialog.open(e)},drag(t,e){window.panel.deprecated("`$store.drag` will be removed in a future version. Use `$panel.drag.start(type, data)` instead."),window.panel.drag.start(...e)},fatal(t,e){window.panel.deprecated("`$store.fatal` will be removed in a future version. Use `$panel.notification.fatal()` instead."),window.panel.notification.fatal(e)},isLoading(t,e){window.panel.deprecated("`$store.isLoading` will be removed in a future version. Use `$panel.isLoading` instead."),window.panel.isLoading=e},navigate(){window.panel.deprecated("`$store.navigate` will be removed in a future version."),window.panel.dialog.close(),window.panel.drawer.close()}},modules:{content:wu,drawers:xu,notification:_u}});Vue.config.productionTip=!1,Vue.config.devtools=!0,Vue.use(ka),Vue.use(Na),Vue.use(N),Vue.use(Mr),window.panel=Vue.prototype.$panel=yu.create(window.panel.plugins),Vue.prototype.$dialog=window.panel.dialog.open.bind(window.panel.dialog),Vue.prototype.$drawer=window.panel.drawer.open.bind(window.panel.drawer),Vue.prototype.$dropdown=window.panel.dropdown.openAsync.bind(window.panel.dropdown),Vue.prototype.$go=window.panel.view.open.bind(window.panel.view),Vue.prototype.$reload=window.panel.reload.bind(window.panel),window.panel.app=new Vue({store:Su,render:()=>Vue.h(R)}),Vue.use(ba),Vue.use(jr),Vue.use(va),!1===CSS.supports("container","foo / inline-size")&&F((()=>import("./container-query-polyfill.modern.min.js")),[],import.meta.url),window.panel.app.$mount("#app");export{F as _,at as n}; diff --git a/panel/dist/ui/Autocomplete.json b/panel/dist/ui/Autocomplete.json index 419c067019..508758093d 100644 --- a/panel/dist/ui/Autocomplete.json +++ b/panel/dist/ui/Autocomplete.json @@ -1 +1 @@ -{"description":"The Autocomplete component can be wrapped around any form of input to get an flexible starting point to provide an real-time autocomplete dropdown. We use it for our `TagsInput` component.","tags":{},"displayName":"Autocomplete","props":[{"name":"html","description":"If set to `true`, the text of the options is rendered as HTML","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"limit","description":"Maximum number of displayed results","type":{"name":"number"},"defaultValue":{"value":"10"}},{"name":"skip","description":"You can pass an array of strings, which should be ignored in the search.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"options","description":"Options for the autocomplete dropdown must be passed as an array of\nobjects. Each object can have as many items as you like, but a text\nitem is required to match agains the query","tags":{"example":[{"description":"[ { text: \"this will be searched\", id: \"anything else is optional\" }, ];","title":"example"}]},"type":{"name":"array"}},{"name":"query","description":"Term to filter options","type":{"name":"string"}}],"events":[{"name":"leave"},{"name":"search","type":{"names":["undefined"]},"description":"Search has been performed","properties":[{"type":{"names":["string"]},"name":"query"},{"type":{"names":["array"]},"name":"matches","description":"all options that match the search query"}]},{"name":"select","type":{"names":["undefined"]},"description":"New value has been selected","properties":[{"type":{"names":["object"]},"name":"item","description":"option item"}]}],"methods":[{"name":"search","description":"Opens the dropdown and filters the options","params":[{"name":"query","type":{"name":"string"},"description":"search term"}],"tags":{"access":[{"description":"public"}],"params":[{"title":"param","type":{"name":"string"},"name":"query","description":"search term"}]}}],"slots":[{"name":"default","description":"Use to insert your input"}],"component":"k-autocomplete","sourceFile":"src/components/Forms/Autocomplete.vue"} \ No newline at end of file +{"description":"The Autocomplete component can be wrapped around any form of input to get an flexible starting point to provide an real-time autocomplete dropdown. We use it for our `TagsInput` component.","tags":{"deprecated":[{"description":"4.0.0","title":"deprecated"}]},"displayName":"Autocomplete","props":[{"name":"html","description":"If set to `true`, the text of the options is rendered as HTML","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"limit","description":"Maximum number of displayed results","type":{"name":"number"},"defaultValue":{"value":"10"}},{"name":"skip","description":"You can pass an array of strings, which should be ignored in the search.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"options","description":"Options for the autocomplete dropdown must be passed as an array of\nobjects. Each object can have as many items as you like, but a text\nitem is required to match agains the query","tags":{"example":[{"description":"[ { text: \"this will be searched\", id: \"anything else is optional\" }, ];","title":"example"}]},"type":{"name":"array"}},{"name":"query","description":"Term to filter options","type":{"name":"string"}}],"events":[{"name":"leave"},{"name":"search","type":{"names":["undefined"]},"description":"Search has been performed","properties":[{"type":{"names":["string"]},"name":"query"},{"type":{"names":["array"]},"name":"matches","description":"all options that match the search query"}]},{"name":"select","type":{"names":["undefined"]},"description":"New value has been selected","properties":[{"type":{"names":["object"]},"name":"item","description":"option item"}]}],"methods":[{"name":"search","description":"Opens the dropdown and filters the options","params":[{"name":"query","type":{"name":"string"},"description":"search term"}],"tags":{"access":[{"description":"public"}],"params":[{"title":"param","type":{"name":"string"},"name":"query","description":"search term"}]}}],"slots":[{"name":"default","description":"Use to insert your input"}],"component":"k-autocomplete","sourceFile":"src/components/Forms/Autocomplete.vue"} \ No newline at end of file diff --git a/panel/dist/ui/Blocks.json b/panel/dist/ui/Blocks.json index 892c897c1b..db2a50579b 100644 --- a/panel/dist/ui/Blocks.json +++ b/panel/dist/ui/Blocks.json @@ -1 +1 @@ -{"displayName":"Blocks","description":"","tags":{},"props":[{"name":"autofocus","type":{"name":"boolean"}},{"name":"empty","type":{"name":"string"}},{"name":"endpoints","type":{"name":"object"}},{"name":"fieldsets","type":{"name":"object"}},{"name":"fieldsetGroups","type":{"name":"object"}},{"name":"group","type":{"name":"string"}},{"name":"max","type":{"name":"number"},"defaultValue":{"value":"null"}},{"name":"value","type":{"name":"array"},"defaultValue":{"value":"[]"}}],"events":[{"name":"click","type":{"names":["undefined"]}},{"name":"input","type":{"names":["undefined"]}}],"component":"k-blocks","sourceFile":"src/components/Forms/Blocks/Blocks.vue"} \ No newline at end of file +{"displayName":"Blocks","description":"","tags":{},"props":[{"name":"autofocus","type":{"name":"boolean"}},{"name":"disabled","type":{"name":"boolean"}},{"name":"empty","type":{"name":"string"}},{"name":"endpoints","type":{"name":"object"}},{"name":"fieldsets","type":{"name":"object"}},{"name":"fieldsetGroups","type":{"name":"object"}},{"name":"group","type":{"name":"string"}},{"name":"max","type":{"name":"number"},"defaultValue":{"value":"null"}},{"name":"value","type":{"name":"array"},"defaultValue":{"value":"[]"}}],"events":[{"name":"input","type":{"names":["undefined"]}}],"component":"k-blocks","sourceFile":"src/components/Forms/Blocks/Blocks.vue"} \ No newline at end of file diff --git a/panel/dist/ui/Collection.json b/panel/dist/ui/Collection.json index 75bafbabbf..10b533423d 100644 --- a/panel/dist/ui/Collection.json +++ b/panel/dist/ui/Collection.json @@ -1 +1 @@ -{"displayName":"Collection","description":"The `k-collection` component is a wrapper around `k-items`\nthat adds sortabilty and pagination to the items.","tags":{},"props":[{"name":"layout","description":"Display layout","tags":{},"values":["\"list\"","\"cards\"","\"cardlets\"","\"table\""],"type":{"name":"string"},"defaultValue":{"value":"\"list\""}},{"name":"columns","description":"Optional column settings for the table layout","type":{"name":"object|array"},"defaultValue":{"value":"() => ({})"}},{"name":"items","description":"Array of item definitions. See `k-item` for available options.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"link","description":"Enable/disable that each item is a clickable link","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"sortable","description":"Whether items are generally sortable.\nEach item can disable this individually.","type":{"name":"boolean"}},{"name":"size","description":"Card sizes","tags":{},"values":["\"tiny\"","\"small\"","\"medium\"","\"large\"","\"huge\""],"type":{"name":"string"},"defaultValue":{"value":"\"medium\""}},{"name":"empty","description":"Empty state, see `k-empty` for all options","type":{"name":"object"},"defaultValue":{"value":"{}"}},{"name":"help","description":"Help text to show below the collection","type":{"name":"string"}},{"name":"pagination","description":"Whether pagination should be shown, and if,\npagination options (see `k-pagination` for details)","type":{"name":"boolean|object"},"defaultValue":{"value":"false"}}],"events":[{"name":"change"},{"name":"item"},{"name":"sort"},{"name":"paginate","description":"Emitted when the pagination changes","properties":[{"type":{"names":["object"]},"name":"pagination"}]},{"name":"hover"},{"name":"empty"},{"name":"action","type":{"names":["undefined"]}},{"name":"option","type":{"names":["undefined"]}}],"slots":[{"name":"options","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"index","title":"binding"}]},{"name":"default","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"itemIndex","title":"binding"}]}],"component":"k-collection","sourceFile":"src/components/Collection/Collection.vue"} \ No newline at end of file +{"displayName":"Collection","description":"The `k-collection` component is a wrapper around `k-items`\nthat adds sortabilty and pagination to the items.","tags":{},"props":[{"name":"layout","description":"Display layout","tags":{},"values":["\"list\"","\"cards\"","\"cardlets\"","\"table\""],"type":{"name":"string"},"defaultValue":{"value":"\"list\""}},{"name":"columns","description":"Optional column settings for the table layout","type":{"name":"object|array"},"defaultValue":{"value":"() => ({})"}},{"name":"items","description":"Array of item definitions. See `k-item` for available options.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"link","description":"Enable/disable that each item is a clickable link","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"sortable","description":"Whether items are generally sortable.\nEach item can disable this individually.","type":{"name":"boolean"}},{"name":"size","description":"Card sizes","tags":{},"values":["\"tiny\"","\"small\"","\"medium\"","\"large\"","\"huge\"","\"full\""],"type":{"name":"string"},"defaultValue":{"value":"\"medium\""}},{"name":"empty","description":"Empty state, see `k-empty` for all options","type":{"name":"object"},"defaultValue":{"value":"{}"}},{"name":"help","description":"Help text to show below the collection","type":{"name":"string"}},{"name":"pagination","description":"Whether pagination should be shown, and if,\npagination options (see `k-pagination` for details)","type":{"name":"boolean|object"},"defaultValue":{"value":"false"}}],"events":[{"name":"change"},{"name":"item"},{"name":"sort"},{"name":"paginate","description":"Emitted when the pagination changes","properties":[{"type":{"names":["object"]},"name":"pagination"}]},{"name":"hover"},{"name":"empty"},{"name":"action","type":{"names":["undefined"]}},{"name":"option","type":{"names":["undefined"]}}],"slots":[{"name":"options","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"index","title":"binding"}]},{"name":"default","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"itemIndex","title":"binding"}]}],"component":"k-collection","sourceFile":"src/components/Collection/Collection.vue"} \ No newline at end of file diff --git a/panel/dist/ui/ColorField.json b/panel/dist/ui/ColorField.json index 49d81edc8f..7a39752ac5 100644 --- a/panel/dist/ui/ColorField.json +++ b/panel/dist/ui/ColorField.json @@ -1 +1 @@ -{"displayName":"ColorField","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"props":[{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"help","description":"Optional help text below the field","type":{"name":"string"}},{"name":"label","description":"A descriptive label for the field","type":{"name":"string"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"counter","type":{"name":"boolean|object"}},{"name":"endpoints","type":{"name":"object"}},{"name":"input","type":{"name":"string|number"}},{"name":"translate","type":{"name":"boolean"}},{"name":"type","type":{"name":"string"}},{"name":"after","description":"Optional text that will be shown after the input","type":{"name":"string"}},{"name":"before","description":"Optional text that will be shown before the input","type":{"name":"string"}},{"name":"invalid","description":"Marks the field/input as invalid","type":{"name":"boolean"}},{"name":"autofocus","type":{"name":"boolean"}},{"name":"icon","type":{"name":"string"},"defaultValue":{"value":"\"pipette\""}},{"name":"novalidate","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"value","type":{"name":"string"},"defaultValue":{"value":"null"}},{"name":"placeholder","description":"Custom placeholder text, when the field is empty","type":{"name":"number|string"}},{"name":"alpha","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}},{"name":"mode","description":"Display mode","tags":{},"values":["\"picker\"","\"input\"","\"options\""],"type":{"name":"string"},"defaultValue":{"value":"\"picker\""}},{"name":"options","description":"Array of color options","type":{"name":"array"},"defaultValue":{"value":"[]"}}],"events":[{"name":"input"},{"name":"focus"},{"name":"blur"}],"slots":[{"name":"header"},{"name":"label"},{"name":"options"},{"name":"counter"},{"name":"default"},{"name":"footer"},{"name":"help"},{"name":"before"},{"name":"after"},{"name":"icon"}],"component":"k-color-field","sourceFile":"src/components/Forms/Field/ColorField.vue"} \ No newline at end of file +{"displayName":"ColorField","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"props":[{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"help","description":"Optional help text below the field","type":{"name":"string"}},{"name":"label","description":"A descriptive label for the field","type":{"name":"string"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"counter","type":{"name":"boolean|object"}},{"name":"endpoints","type":{"name":"object"}},{"name":"input","type":{"name":"string|number"}},{"name":"translate","type":{"name":"boolean"}},{"name":"type","type":{"name":"string"},"defaultValue":{"value":"\"text\""}},{"name":"after","description":"Optional text that will be shown after the input","type":{"name":"string"}},{"name":"before","description":"Optional text that will be shown before the input","type":{"name":"string"}},{"name":"invalid","description":"Marks the field/input as invalid","type":{"name":"boolean"}},{"name":"autofocus","type":{"name":"boolean"}},{"name":"icon","type":{"name":"string"},"defaultValue":{"value":"\"pipette\""}},{"name":"novalidate","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"value","type":{"name":"string"},"defaultValue":{"value":"null"}},{"name":"autocomplete","description":"Sets the HTML5 autocomplete mode for the input","type":{"name":"string"},"defaultValue":{"value":"\"off\""}},{"name":"font","description":"Changes the font of the input to monospace or sans","type":{"name":"string"}},{"name":"maxlength","description":"Maximum number of allowed characters","type":{"name":"number"}},{"name":"minlength","description":"Minimum number of required characters","type":{"name":"number"}},{"name":"pattern","description":"A regular expression, which will be used to validate the input","type":{"name":"string"}},{"name":"placeholder","description":"Custom placeholder text, when the field is empty","type":{"name":"number|string"}},{"name":"spellcheck","description":"If false, spellchecking will be disabled","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"ariaLabel","type":{"name":"string"}},{"name":"alpha","description":"Add the alpha value to the color name","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}},{"name":"mode","description":"Display mode","tags":{},"values":["\"picker\"","\"input\"","\"options\""],"type":{"name":"string"},"defaultValue":{"value":"\"picker\""}},{"name":"options","description":"Array of color options","type":{"name":"array"},"defaultValue":{"value":"[]"}}],"events":[{"name":"input"},{"name":"focus"},{"name":"blur"}],"slots":[{"name":"header"},{"name":"label"},{"name":"options"},{"name":"counter"},{"name":"default"},{"name":"footer"},{"name":"help"},{"name":"before"},{"name":"after"},{"name":"icon"}],"component":"k-color-field","sourceFile":"src/components/Forms/Field/ColorField.vue"} \ No newline at end of file diff --git a/panel/dist/ui/ColorInput.json b/panel/dist/ui/ColorInput.json deleted file mode 100644 index 7b42baef0d..0000000000 --- a/panel/dist/ui/ColorInput.json +++ /dev/null @@ -1 +0,0 @@ -{"displayName":"ColorInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"placeholder","description":"Custom placeholder text, when the field is empty","type":{"name":"number|string"}},{"name":"alpha","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}},{"name":"value","type":{"name":"string"}}],"events":[{"name":"input","type":{"names":["undefined"]}},{"name":"invalid","type":{"names":["undefined"]},"properties":[{"type":{"names":["undefined"]},"name":""}]},{"name":"submit"}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-color-input","sourceFile":"src/components/Forms/Input/ColorInput.vue"} \ No newline at end of file diff --git a/panel/dist/ui/ColornameInput.json b/panel/dist/ui/ColornameInput.json index 20de8fdd48..8d73f2d2c4 100644 --- a/panel/dist/ui/ColornameInput.json +++ b/panel/dist/ui/ColornameInput.json @@ -1 +1 @@ -{"displayName":"ColornameInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}],"examples":[{"title":"example","content":""}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"autocomplete","description":"Sets the HTML5 autocomplete mode for the input","type":{"name":"string"},"defaultValue":{"value":"\"off\""}},{"name":"font","description":"Changes the font of the input to monospace or sans","type":{"name":"string"}},{"name":"maxlength","description":"Maximum number of allowed characters","type":{"name":"number"}},{"name":"minlength","description":"Minimum number of required characters","type":{"name":"number"}},{"name":"pattern","description":"A regular expression, which will be used to validate the input","type":{"name":"string"}},{"name":"placeholder","description":"Custom placeholder text, when the field is empty","type":{"name":"number|string"}},{"name":"spellcheck","description":"If false, spellchecking will be disabled","type":{"name":"string"},"defaultValue":{"value":"\"false\""}},{"name":"ariaLabel","type":{"name":"string"}},{"name":"type","type":{"name":"string"},"defaultValue":{"value":"\"text\""}},{"name":"value","type":{"name":"string"}},{"name":"alpha","description":"Add the alpha value to the color name","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}}],"events":[{"name":"input","type":{"names":["undefined"]}}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-colorname-input","sourceFile":"src/components/Forms/Input/ColornameInput.vue"} \ No newline at end of file +{"displayName":"ColornameInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}],"examples":[{"title":"example","content":""}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"autocomplete","description":"Sets the HTML5 autocomplete mode for the input","type":{"name":"string"},"defaultValue":{"value":"\"off\""}},{"name":"font","description":"Changes the font of the input to monospace or sans","type":{"name":"string"}},{"name":"maxlength","description":"Maximum number of allowed characters","type":{"name":"number"}},{"name":"minlength","description":"Minimum number of required characters","type":{"name":"number"}},{"name":"pattern","description":"A regular expression, which will be used to validate the input","type":{"name":"string"}},{"name":"placeholder","description":"Custom placeholder text, when the field is empty","type":{"name":"number|string"}},{"name":"spellcheck","description":"If false, spellchecking will be disabled","type":{"name":"boolean"},"defaultValue":{"value":"false"}},{"name":"ariaLabel","type":{"name":"string"}},{"name":"type","type":{"name":"string"},"defaultValue":{"value":"\"text\""}},{"name":"value","type":{"name":"string"}},{"name":"alpha","description":"Add the alpha value to the color name","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}}],"events":[{"name":"input","type":{"names":["undefined"]}}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-colorname-input","sourceFile":"src/components/Forms/Input/ColornameInput.vue"} \ No newline at end of file diff --git a/panel/dist/ui/ColoroptionsInput.json b/panel/dist/ui/ColoroptionsInput.json index 6b686cddb9..de3a0552d3 100644 --- a/panel/dist/ui/ColoroptionsInput.json +++ b/panel/dist/ui/ColoroptionsInput.json @@ -1 +1 @@ -{"displayName":"ColoroptionsInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}],"examples":[{"title":"example","content":""}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"options","description":"An array of option objects `{ value, text, info }`","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"columns","type":{"name":"number"}},{"name":"reset","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"theme","type":{"name":"string"}},{"name":"value","type":{"name":"string"}},{"name":"format","type":{"name":"string"},"defaultValue":{"value":"\"hex\""},"values":["hex","rgb","hsl"]}],"events":[{"name":"input","type":{"names":["undefined"]}},{"name":"invalid","type":{"names":["undefined"]},"properties":[{"type":{"names":["undefined"]},"name":""}]}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-coloroptions-input","sourceFile":"src/components/Forms/Input/ColoroptionsInput.vue"} \ No newline at end of file +{"displayName":"ColoroptionsInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}],"examples":[{"title":"example","content":""}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"options","description":"An array of option objects `{ value, text, info }`","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"columns","type":{"name":"number"}},{"name":"reset","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"theme","type":{"name":"string"}},{"name":"value","type":{"name":"string"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}}],"events":[{"name":"input","type":{"names":["undefined"]}},{"name":"invalid","type":{"names":["undefined"]},"properties":[{"type":{"names":["undefined"]},"name":""}]}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-coloroptions-input","sourceFile":"src/components/Forms/Input/ColoroptionsInput.vue"} \ No newline at end of file diff --git a/panel/dist/ui/ColorpickerInput.json b/panel/dist/ui/ColorpickerInput.json index afbcab809b..4601ab8849 100644 --- a/panel/dist/ui/ColorpickerInput.json +++ b/panel/dist/ui/ColorpickerInput.json @@ -1 +1 @@ -{"displayName":"ColorpickerInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"options","description":"An array of option objects `{ value, text, info }`","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"alpha","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","type":{"name":"string"},"defaultValue":{"value":"\"hex\""},"values":["hex","rgb","hsl"]},{"name":"value","type":{"name":"object|string"}}],"events":[{"name":"input","type":{"names":["undefined"]}}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-colorpicker-input","sourceFile":"src/components/Forms/Input/ColorpickerInput.vue"} \ No newline at end of file +{"displayName":"ColorpickerInput","description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"props":[{"name":"autofocus","description":"Sets the focus on this field when the form loads. Only the first field with this label gets","type":{"name":"boolean"}},{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"options","description":"An array of option objects `{ value, text, info }`","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"alpha","description":"Show the alpha tange input","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"format","tags":{},"values":["\"hex\"","\"rgb\"","\"hsl\""],"type":{"name":"string"},"defaultValue":{"value":"\"hex\""}},{"name":"value","type":{"name":"object|string"}}],"events":[{"name":"input","type":{"names":["undefined"]}}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"component":"k-colorpicker-input","sourceFile":"src/components/Forms/Input/ColorpickerInput.vue"} \ No newline at end of file diff --git a/panel/dist/ui/Items.json b/panel/dist/ui/Items.json index 35225dfc43..205ce955d6 100644 --- a/panel/dist/ui/Items.json +++ b/panel/dist/ui/Items.json @@ -1 +1 @@ -{"displayName":"Items","description":"Collection items that can be displayed in various layouts","tags":{},"props":[{"name":"layout","description":"Display layout","tags":{},"values":["\"list\"","\"cards\"","\"cardlets\"","\"table\""],"type":{"name":"string"},"defaultValue":{"value":"\"list\""}},{"name":"columns","description":"Optional column settings for the table layout","type":{"name":"object|array"},"defaultValue":{"value":"() => ({})"}},{"name":"items","description":"Array of item definitions. See `k-item` for available options.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"link","description":"Enable/disable that each item is a clickable link","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"sortable","description":"Whether items are generally sortable.\nEach item can disable this individually.","type":{"name":"boolean"}},{"name":"size","description":"Card sizes","tags":{},"values":["\"tiny\"","\"small\"","\"medium\"","\"large\"","\"huge\""],"type":{"name":"string"},"defaultValue":{"value":"\"medium\""}},{"name":"image","description":"Globale image/icon settings. Will be merged with the image settings of each item. See `k-item-image` for available options.","type":{"name":"object|boolean"},"defaultValue":{"value":"() => ({})"}}],"events":[{"name":"change"},{"name":"sort"},{"name":"item"},{"name":"hover"},{"name":"option","type":{"names":["undefined"]},"properties":[{"type":{"names":["undefined"]},"name":""},{"type":{"names":["undefined"]},"name":""}]}],"slots":[{"name":"options","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"index","title":"binding"}]},{"name":"default","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"itemIndex","title":"binding"}]}],"component":"k-items","sourceFile":"src/components/Collection/Items.vue"} \ No newline at end of file +{"displayName":"Items","description":"Collection items that can be displayed in various layouts","tags":{},"props":[{"name":"layout","description":"Display layout","tags":{},"values":["\"list\"","\"cards\"","\"cardlets\"","\"table\""],"type":{"name":"string"},"defaultValue":{"value":"\"list\""}},{"name":"columns","description":"Optional column settings for the table layout","type":{"name":"object|array"},"defaultValue":{"value":"() => ({})"}},{"name":"items","description":"Array of item definitions. See `k-item` for available options.","type":{"name":"array"},"defaultValue":{"value":"[]"}},{"name":"link","description":"Enable/disable that each item is a clickable link","type":{"name":"boolean"},"defaultValue":{"value":"true"}},{"name":"sortable","description":"Whether items are generally sortable.\nEach item can disable this individually.","type":{"name":"boolean"}},{"name":"size","description":"Card sizes","tags":{},"values":["\"tiny\"","\"small\"","\"medium\"","\"large\"","\"huge\"","\"full\""],"type":{"name":"string"},"defaultValue":{"value":"\"medium\""}},{"name":"image","description":"Globale image/icon settings. Will be merged with the image settings of each item. See `k-item-image` for available options.","type":{"name":"object|boolean"},"defaultValue":{"value":"() => ({})"}}],"events":[{"name":"change"},{"name":"sort"},{"name":"item"},{"name":"hover"},{"name":"option","type":{"names":["undefined"]},"properties":[{"type":{"names":["undefined"]},"name":""},{"type":{"names":["undefined"]},"name":""}]}],"slots":[{"name":"options","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"index","title":"binding"}]},{"name":"default","scoped":true,"bindings":[{"name":"item","title":"binding"},{"name":"itemIndex","title":"binding"}]}],"component":"k-items","sourceFile":"src/components/Collection/Items.vue"} \ No newline at end of file diff --git a/panel/dist/ui/Navigate.json b/panel/dist/ui/Navigate.json index 0b36321743..cb37b5e188 100644 --- a/panel/dist/ui/Navigate.json +++ b/panel/dist/ui/Navigate.json @@ -1 +1 @@ -{"description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"displayName":"Navigate","props":[{"name":"axis","type":{"name":"string"}},{"name":"disabled","type":{"name":"boolean"}},{"name":"select","type":{"name":"string"}}],"slots":[{"name":"default"}],"component":"k-navigate","sourceFile":"src/components/Navigation/Navigate.vue"} \ No newline at end of file +{"description":"","tags":{"since":[{"description":"4.0.0","title":"since"}]},"displayName":"Navigate","props":[{"name":"axis","type":{"name":"string"}},{"name":"disabled","type":{"name":"boolean"}},{"name":"element","type":{"name":"string"},"defaultValue":{"value":"\"div\""}},{"name":"select","type":{"name":"string"},"defaultValue":{"value":"\":where(button, a):not(:disabled)\""}}],"events":[{"name":"prev"},{"name":"next"}],"slots":[{"name":"default"}],"component":"k-navigate","sourceFile":"src/components/Navigation/Navigate.vue"} \ No newline at end of file From 3cc7752356773cec263c349aaa9c7e6d5524f4eb Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 2 Nov 2023 13:49:24 +0100 Subject: [PATCH 2/4] Update translations --- i18n/translations/cs.json | 144 +++++++++++++++++------------------ i18n/translations/fr.json | 10 +-- i18n/translations/is_IS.json | 18 ++--- i18n/translations/ko.json | 68 ++++++++--------- i18n/translations/pl.json | 142 +++++++++++++++++----------------- i18n/translations/ro.json | 12 +-- i18n/translations/ru.json | 12 +-- i18n/translations/sk.json | 16 ++-- i18n/translations/sv_SE.json | 138 ++++++++++++++++----------------- i18n/translations/tr.json | 138 ++++++++++++++++----------------- 10 files changed, 349 insertions(+), 349 deletions(-) diff --git a/i18n/translations/cs.json b/i18n/translations/cs.json index 1e191f8571..459e96505f 100644 --- a/i18n/translations/cs.json +++ b/i18n/translations/cs.json @@ -4,24 +4,24 @@ "account.delete.confirm": "Opravdu chcete smazat svůj účet? Budete okamžitě odhlášeni. Účet nemůže být zpětně obnoven.", "add": "P\u0159idat", - "alpha": "Alpha", + "alpha": "Alfa", "author": "Autor", "avatar": "Profilov\u00fd obr\u00e1zek", "back": "Zpět", "cancel": "Zru\u0161it", "change": "Zm\u011bnit", "close": "Zavřít", - "changes": "Changes", + "changes": "Změny", "confirm": "Ok", "collapse": "Sbalit", "collapse.all": "Sbalit vše", - "color": "Color", - "coordinates": "Coordinates", + "color": "Barva", + "coordinates": "Souřadnice", "copy": "Kopírovat", "copy.all": "Kopírovat vše", - "copy.success": "{count} copied!", + "copy.success": "{count} zkopírováno!", "create": "Vytvořit", - "custom": "Custom", + "custom": "Vlastní", "date": "Datum", "date.select": "Vyberte datum", @@ -40,17 +40,17 @@ "delete": "Smazat", "delete.all": "Smazat vše", - "dialog.fields.empty": "This dialog has no fields", + "dialog.fields.empty": "Tento dialog neobsahuje žádná pole", "dialog.files.empty": "Žádné soubory k výběru", "dialog.pages.empty": "Žádné stránky k výběru", - "dialog.text.empty": "This dialog does not define any text", + "dialog.text.empty": "Tento dialog nemá definovaný žádný text", "dialog.users.empty": "Žádní uživatelé k výběru", "dimensions": "Rozměry", "disabled": "Zakázáno", "discard": "Zahodit", - "drawer.fields.empty": "This drawer has no fields", + "drawer.fields.empty": "Tento vysouvací panel nemá žádná pole", "download": "Stáhnout", "duplicate": "Duplikovat", @@ -60,13 +60,13 @@ "email": "Email", "email.placeholder": "mail@example.com", - "enter": "Enter", + "enter": "Zapsat", "entries": "Záznamy", "entry": "Záznam", "environment": "Prostředí", - "error": "Error", + "error": "Chyba", "error.access.code": "Neplatný kód", "error.access.login": "Neplatné přihlášení", "error.access.panel": "Nemáte oprávnění k přihlášení do panelu", @@ -94,8 +94,8 @@ "error.file.changeName.empty": "Toto jméno nesmí být prázdné", "error.file.changeName.permission": "Nemáte povoleno změnit jméno souboru \"{filename}\"", - "error.file.changeTemplate.invalid": "The template for the file \"{id}\" cannot be changed to \"{template}\" (valid: \"{blueprints}\")", - "error.file.changeTemplate.permission": "You are not allowed to change the template for the file \"{id}\"", + "error.file.changeTemplate.invalid": "Šablonu souboru \"{id}\" nelze změnit na \"{template}\" (platné: \"{blueprints}\")", + "error.file.changeTemplate.permission": "Nemáte dovoleno změnit šablonu souboru \"{id}\"", "error.file.duplicate": "Soubor s názvem \"{filename}\" již existuje", "error.file.extension.forbidden": "Přípona souboru \"{extension}\" není povolena", @@ -111,7 +111,7 @@ "error.file.minheight": "Výška obrázku musí být alespoň {height} pixelů", "error.file.minsize": "Soubor je příliš malý", "error.file.minwidth": "Šířka obrázku musí být alespoň {width} pixelů", - "error.file.name.unique": "The filename must be unique", + "error.file.name.unique": "Název souboru musí být unikátní", "error.file.name.missing": "Název souboru nesmí být prázdný", "error.file.notFound": "Soubor se nepoda\u0159ilo nal\u00e9zt", "error.file.orientation": "Orientace obrázku másí být \"{orientation}\"", @@ -139,7 +139,7 @@ "error.offline": "Panel je v současnosti off-line", "error.page.changeSlug.permission": "Nem\u016f\u017eete zm\u011bnit URL t\u00e9to str\u00e1nky", - "error.page.changeSlug.reserved": "The path of top-level pages must not start with \"{path}\"", + "error.page.changeSlug.reserved": "Cesta k stránkám na nevyšší úrovni nesmí začínat jako \"{path}\"", "error.page.changeStatus.incomplete": "Stránka obsahuje chyby a nemohla být zveřejněna", "error.page.changeStatus.permission": "Status této stránky nelze změnit", "error.page.changeStatus.toDraft.invalid": "Stránka \"{slug}\" nemůže být převedena na koncept", @@ -155,12 +155,12 @@ "error.page.draft.duplicate": "Koncept stránky, který obsahuje v adrese URL \"{slug}\" již existuje ", "error.page.duplicate": "Stránka, která v adrese URL obsahuje \"{slug}\" již existuje", "error.page.duplicate.permission": "Nemáte dovoleno duplikovat \"{slug}\"", - "error.page.move.ancestor": "The page cannot be moved into itself", - "error.page.move.directory": "The page directory cannot be moved", - "error.page.move.duplicate": "A sub page with the URL appendix \"{slug}\" already exists", - "error.page.move.notFound": "The moved page could not be found", - "error.page.move.permission": "You are not allowed to move \"{slug}\"", - "error.page.move.template": "The \"{template}\" template is not accepted as a subpage of \"{parent}\"", + "error.page.move.ancestor": "Stránka nemůže být přesunuta sama do sebe", + "error.page.move.directory": "Adresář stránky nelze přesunout", + "error.page.move.duplicate": "Podstránka s URL \"{slug}\" již existuje", + "error.page.move.notFound": "Přesunutá stránka nebyla nalezena", + "error.page.move.permission": "Nemáte dovoleno přesunout stránku \"{slug}\"", + "error.page.move.template": "Šablonu \"{template}\" nelze použít pro podstránku \"{parent}\"", "error.page.notFound": "Str\u00e1nku se nepoda\u0159ilo nal\u00e9zt.", "error.page.num.invalid": "Zadejte prosím platné pořadové číslo. Čísla nesmí být záporná.", "error.page.slug.invalid": "Podtržení", @@ -187,7 +187,7 @@ "error.site.changeTitle.permission": "Nemáte dovoleno změnit titulek stránky", "error.site.update.permission": "Nemáte dovoleno upravit stránku", - "error.structure.validation": "There's an error on the \"{field}\" field in row {index}", + "error.structure.validation": "Chyba v poli \"{field}\" na řádku {index}", "error.template.default.notFound": "Výchozí šablona neexistuje", @@ -221,10 +221,10 @@ "error.validation.accepted": "Potvrďte prosím", "error.validation.alpha": "Zadávejte prosím pouze znaky v rozmezí a-z", "error.validation.alphanum": "Zadávejte prosím pouze znaky v rozmezí a-z nebo čísla v rozmezí 0-9", - "error.validation.anchor": "Please enter a correct link anchor", + "error.validation.anchor": "Zadejte správný název kotvy", "error.validation.between": "Zadejte prosím hodnotu mez \"{min}\" a \"{max}\"", "error.validation.boolean": "Potvrďte prosím, nebo odmítněte", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Zadejte platnou barvu ve formátu {format}", "error.validation.contains": "Zadejte prosím hodnotu, která obsahuje \"{needle}\"", "error.validation.date": "Zadejte prosím platné datum", "error.validation.date.after": "Zadejte prosím datum po {date}", @@ -239,7 +239,7 @@ "error.validation.integer": "Zadejte prosím platné celé číslo", "error.validation.ip": "Zadejte prosím platnou IP adresu", "error.validation.less": "Zadejte prosím hodnotu menší než {max}", - "error.validation.linkType": "The link type is not allowed", + "error.validation.linkType": "Typ odkazu není povolen", "error.validation.match": "Hodnota neodpovídá očekávanému vzoru", "error.validation.max": "Zadejte prosím hodnotu rovnou, nebo menší než {max}", "error.validation.maxlength": "Zadaná hodnota je příliš dlouhá. (Povoleno nejvýše {max} znaků)", @@ -256,18 +256,18 @@ "error.validation.same": "Zadejte prosím \"{other}\"", "error.validation.size": "Velikost hodnoty musí být \"{size}\"", "error.validation.startswith": "Hodnota musí začínat \"{start}\"", - "error.validation.tel": "Please enter an unformatted phone number", + "error.validation.tel": "Zadejte neformátované telefonní číslo ", "error.validation.time": "Zadejte prosím platný čas", "error.validation.time.after": "Zadejte prosím čas po {time}", "error.validation.time.before": "Zadejte prosím čas před {time}", "error.validation.time.between": "Zadejte prosím čas v rozmezí od {min} do {max}", - "error.validation.uuid": "Please enter a valid UUID", + "error.validation.uuid": "Zadejte platné UUID", "error.validation.url": "Zadejte prosím platnou adresu URL", "expand": "Rozbalit", "expand.all": "Rozbalit vše", - "field.invalid": "The field is invalid", + "field.invalid": "Pole není platné", "field.required": "Pole musí být vyplněno.", "field.blocks.changeType": "Změnit typ", "field.blocks.code.name": "Kód", @@ -277,9 +277,9 @@ "field.blocks.delete.confirm.all": "Opravdu chcete smazat všechny bloky?", "field.blocks.delete.confirm.selected": "Opravdu chcete smazat vybrané bloky?", "field.blocks.empty": "Zatím žádné bloky", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Zatím žádné fieldsets", "field.blocks.fieldsets.label": "Vyberte prosím typ bloku …", - "field.blocks.fieldsets.paste": "Press {{ shortcut }} to import layouts/blocks from your clipboard Only those allowed in the current field will get inserted.", + "field.blocks.fieldsets.paste": "Stiskněte{{ shortcut }} pro vložení rozvržení/bloků ze schránky Vloženy budou jen ty, které jsou v aktuálním poli povolené.", "field.blocks.gallery.name": "Galerie", "field.blocks.gallery.images.empty": "Zatím žádné obrázky", "field.blocks.gallery.images.label": "Obrázky", @@ -292,8 +292,8 @@ "field.blocks.image.crop": "Oříznout", "field.blocks.image.link": "Odkaz", "field.blocks.image.location": "Umístění", - "field.blocks.image.location.internal": "This website", - "field.blocks.image.location.external": "External source", + "field.blocks.image.location.internal": "Tato webová stránka", + "field.blocks.image.location.external": "Externí zdroj", "field.blocks.image.name": "Obrázek", "field.blocks.image.placeholder": "Vyberte obrázek", "field.blocks.image.ratio": "Poměr stran", @@ -318,12 +318,12 @@ "field.files.empty": "Nebyly zatím vybrány žádné soubory", - "field.layout.change": "Change layout", - "field.layout.delete": "Smazat rozložení", - "field.layout.delete.confirm": "Opravdu chcete smazat toto rozložení?", - "field.layout.delete.confirm.all": "Do you really want to delete all layouts?", + "field.layout.change": "Změnit rozvržení", + "field.layout.delete": "Smazat rozvržení", + "field.layout.delete.confirm": "Opravdu chcete smazat toto rozvržení?", + "field.layout.delete.confirm.all": "Opravdu chcete smazat všechna rozvržení?", "field.layout.empty": "Zatím žádné řádky", - "field.layout.select": "Vyberte rozložení", + "field.layout.select": "Vyberte rozvržení", "field.object.empty": "Zatím žádná informace", @@ -335,26 +335,26 @@ "field.users.empty": "Nebyli zatím vybráni žádní uživatelé", - "fields.empty": "No fields yet", + "fields.empty": "Zatím žádné pole", "file": "Soubor", "file.blueprint": "Tento typ souboru nemá blueprint. Blueprint můžete definovat v /site/blueprints/files/{blueprint}.yml", "file.changeTemplate": "Změnit šablonu", - "file.changeTemplate.notice": "Changing the file's template will remove content for fields that don't match in type. If the new template defines certain rules, e.g. image dimensions, those will also be applied irreversibly. Use with caution.", + "file.changeTemplate.notice": "Změna šablony souboru změní obsah pro pole, která mají odlišný typ. Pokud má nová šablona nastaveny určitá pravidla (jako rozměry obrázku), tyto pravidla budou také aplikovány. Používejte obezřetně.", "file.delete.confirm": "Opravdu chcete smazat tento soubor?", - "file.focus.placeholder": "Set focal point", - "file.focus.reset": "Remove focal point", - "file.focus.title": "Focus", + "file.focus.placeholder": "Nastavit ohnisko", + "file.focus.reset": "Odstranit ohnisko", + "file.focus.title": "Zaměřit na", "file.sort": "Změnit pozici", "files": "Soubory", "files.empty": "Zatím žádné soubory", - "filter": "Filter", + "filter": "Filtr", "hide": "Skrýt", "hour": "Hodina", - "hue": "Hue", + "hue": "Odstín", "import": "Import", "info": "Informace", "insert": "Vlo\u017eit", @@ -389,16 +389,16 @@ "language.locale": "Řetězec lokalizace PHP", "language.locale.warning": "Používáte vlastní jazykové nastavení. Upravte prosím soubor s nastavením v /site/languages", "language.name": "Jméno", - "language.secondary": "Secondary language", - "language.settings": "Language settings", + "language.secondary": "Sekundární jazyk", + "language.settings": "Nastavení jazyka", "language.updated": "Jazyk byl aktualizován", - "language.variables": "Language variables", - "language.variables.empty": "No translations yet", + "language.variables": "Jazykové proměnné", + "language.variables.empty": "Zatím žádné překlady", - "language.variable.delete.confirm": "Do you really want to delete the variable for {key}?", - "language.variable.key": "Key", - "language.variable.notFound": "The variable could not be found", - "language.variable.value": "Value", + "language.variable.delete.confirm": "Doopravdy chcete smazat proměnou {key}?", + "language.variable.key": "Klíč", + "language.variable.notFound": "Proměnná nebyla nalezena", + "language.variable.value": "Hodnota", "languages": "Jazyky", "languages.default": "Výchozí jazyk", @@ -425,10 +425,10 @@ "lock.unsaved": "Neuložené změny", "lock.unsaved.empty": "Nezbývají již žádné neuložené změny.", - "lock.isLocked": "Unsaved changes by {email}", + "lock.isLocked": "Neuložené změny od {email}", "lock.unlock": "Odemknout", - "lock.unlock.submit": "Unlock and overwrite unsaved changes by {email}", - "lock.isUnlocked": "Was unlocked by another user", + "lock.unlock.submit": "Odemknout a přepsat neuložené změny od {email}", + "lock.isUnlocked": "Bylo odemknuto jiným uživatelem", "login": "Přihlásit se", "login.code.label.login": "Kód pro přihlášení", @@ -448,7 +448,7 @@ "logout": "Odhlásit se", - "merge": "Merge", + "merge": "Spojit", "menu": "Menu", "meridiem": "AM/PM", "mime": "Typ média", @@ -469,16 +469,16 @@ "months.september": "Z\u00e1\u0159\u00ed", "more": "Více", - "move": "Move", + "move": "Přesunout", "name": "Jméno", "next": "Další", - "night": "Night", + "night": "Noc", "no": "ne", "off": "vypnuto", "on": "zapnuto", "open": "Otevřít", "open.newWindow": "Otevřít v novém okně", - "option": "Option", + "option": "Možnost", "options": "Možnosti", "options.none": "Žádné možnosti", @@ -487,7 +487,7 @@ "orientation.portrait": "Na výšku", "orientation.square": "Čtverec", - "page": "Page", + "page": "Stránka", "page.blueprint": "Tento typ stránky nemá blueprint. Blueprint můžete definovat v /site/blueprints/pages/{blueprint}.yml", "page.changeSlug": "Zm\u011bnit URL", "page.changeSlug.fromTitle": "Vytvo\u0159it z n\u00e1zvu", @@ -495,15 +495,15 @@ "page.changeStatus.position": "Vyberte prosím pozici", "page.changeStatus.select": "Vybrat nový status", "page.changeTemplate": "Změnit šablonu", - "page.changeTemplate.notice": "Changing the page's template will remove content for fields that don't match in type. Use with caution.", - "page.create": "Create as {status}", + "page.changeTemplate.notice": "Změna šablony stránky odstraní obsah pro pole, jejichž typy se neshodují. Používejte obezřetně.", + "page.create": "Vytvořit jako {status}", "page.delete.confirm": "Opravdu chcete smazat tuto str\u00e1nku?", "page.delete.confirm.subpages": "Tato stránka má podstránky.
        Všechny podstránky budou vymazány.", "page.delete.confirm.title": "Pro potvrzení zadejte titulek stránky", "page.duplicate.appendix": "Kopírovat", "page.duplicate.files": "Kopírovat soubory", "page.duplicate.pages": "Kopírovat stránky", - "page.move": "Move page", + "page.move": "Přesunout stránku", "page.sort": "Změnit pozici", "page.status": "Stav", "page.status.draft": "Koncept", @@ -524,7 +524,7 @@ "password": "Heslo", "paste": "Vložit", "paste.after": "Vložit za", - "paste.success": "{count} pasted!", + "paste.success": "{count} vloženo!", "pixel": "Pixel", "plugin": "Doplňek", "plugins": "Doplňky", @@ -533,7 +533,7 @@ "remove": "Odstranit", "rename": "Přejmenovat", "replace": "Nahradit", - "replace.with": "Replace with", + "replace.with": "Nahradit pomocí", "retry": "Zkusit znovu", "revert": "Zahodit", "revert.confirm": "Opravdu chcete smazat všechny provedené změny?", @@ -553,7 +553,7 @@ "search.all": "Zobrazit vše", "search.results.none": "Žádné výsledky", - "section.invalid": "The section is invalid", + "section.invalid": "Sekce je neplatná", "section.required": "Sekce musí být vyplněna", "security": "Zabezpečení", @@ -565,8 +565,8 @@ "size": "Velikost", "slug": "P\u0159\u00edpona URL", "sort": "Řadit", - "sort.drag": "Drag to sort …", - "split": "Split", + "sort.drag": "Táhnout pro změnu řazení ...", + "split": "Rozdělit", "stats.empty": "Žádná hlášení", "system.issues.content": "Složka content je zřejmě přístupná zvenčí", @@ -589,13 +589,13 @@ "system.updateStatus.update": "Je dostupná bezplatná nová verze { version }", "system.updateStatus.upgrade": "Je dostupný upgrade na verzi { version }", - "tel": "Phone", + "tel": "Telefon", "tel.placeholder": "+49123456789", "template": "\u0160ablona", "title": "Název", "today": "Dnes", - "toolbar.button.clear": "Clear formatting", + "toolbar.button.clear": "Odstranit formátování", "toolbar.button.code": "Kód", "toolbar.button.bold": "Tu\u010dn\u00fd text", "toolbar.button.email": "Email", @@ -613,8 +613,8 @@ "toolbar.button.link": "Odkaz", "toolbar.button.paragraph": "Odstavec", "toolbar.button.strike": "Přeškrtnutí", - "toolbar.button.sub": "Subscript", - "toolbar.button.sup": "Superscript", + "toolbar.button.sub": "Dolní index", + "toolbar.button.sup": "Horní index", "toolbar.button.ol": "Číslovaný seznam", "toolbar.button.underline": "Podtržení", "toolbar.button.ul": "Odrážkový seznam", diff --git a/i18n/translations/fr.json b/i18n/translations/fr.json index 80cb5c0736..c5d298c88b 100644 --- a/i18n/translations/fr.json +++ b/i18n/translations/fr.json @@ -15,8 +15,8 @@ "confirm": "Ok", "collapse": "Replier", "collapse.all": "Tout replier", - "color": "Color", - "coordinates": "Coordinates", + "color": "Couleur", + "coordinates": "Coordonnées", "copy": "Copier", "copy.all": "Tout copier", "copy.success": "Copié : {count}", @@ -224,7 +224,7 @@ "error.validation.anchor": "Veuillez entrer un lien ancré correct", "error.validation.between": "Veuillez saisir une valeur entre « {min} » et « {max} »", "error.validation.boolean": "Veuillez confirmer ou refuser", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Veuillez entrer une couleur valide dans le format {format}", "error.validation.contains": "Veuillez saisir une valeur contenant « {needle} »", "error.validation.date": "Veuillez saisir une date correcte", "error.validation.date.after": "Veuillez saisir une date après {date}", @@ -277,7 +277,7 @@ "field.blocks.delete.confirm.all": "Voulez-vous vraiment supprimer tous les blocs ?", "field.blocks.delete.confirm.selected": "Voulez-vous vraiment supprimer les blocs sélectionnés ?", "field.blocks.empty": "Pas encore de blocs", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Pas encore d‘ensembles de champs", "field.blocks.fieldsets.label": "Veuillez sélectionner un type de bloc…", "field.blocks.fieldsets.paste": "Pressez {{ shortcut }} pour importer des dispositions ou blocs depuis votre presse-papier Seuls ceux autorisés dans le champ actuel seront insérés.", "field.blocks.gallery.name": "Galerie", @@ -354,7 +354,7 @@ "hide": "Masquer", "hour": "Heure", - "hue": "Hue", + "hue": "Teinte", "import": "Importer", "info": "Info", "insert": "Insérer", diff --git a/i18n/translations/is_IS.json b/i18n/translations/is_IS.json index 9e8e03412b..3b5ca1d38e 100644 --- a/i18n/translations/is_IS.json +++ b/i18n/translations/is_IS.json @@ -4,7 +4,7 @@ "account.delete.confirm": "Ertu alveg viss um að þú viljir endanlega eyða reikningnum þínum? Þú munt verða útskráð/ur án tafar. Ómögulegt verður að endurheimta reikninginn þinn.", "add": "Bæta við", - "alpha": "Alpha", + "alpha": "Gagnsæi", "author": "Höfundur", "avatar": "Prófíl mynd", "back": "Til baka", @@ -15,8 +15,8 @@ "confirm": "OK", "collapse": "Fella", "collapse.all": "Fella allt", - "color": "Color", - "coordinates": "Coordinates", + "color": "Litur", + "coordinates": "Hnit", "copy": "Afrita", "copy.all": "Afrita allt", "copy.success": "Afritaði {count}!", @@ -224,7 +224,7 @@ "error.validation.anchor": "Vinsamlegast rétt og gillt merki", "error.validation.between": "Gildi milli \"{min}\" og \"{max}\"", "error.validation.boolean": "Staðfestu eða hafnaðu þessu", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Endilega settu inn gildan lit í sniðinu {format}", "error.validation.contains": "Settu inni gildi er inniheldur \"{needle}\"", "error.validation.date": "Ákjósanlega dagsetningu", "error.validation.date.after": "Dagsetningu eftir {date}", @@ -267,7 +267,7 @@ "expand": "Þenja út", "expand.all": "Þenja allt út", - "field.invalid": "Þetta svið er bara ógillt.", + "field.invalid": "Þetta svið er bara ógillt sem stendur.", "field.required": "Þetta svið er nauðsynlegt", "field.blocks.changeType": "Breyta um bálkagerð", "field.blocks.code.name": "Kóði", @@ -277,7 +277,7 @@ "field.blocks.delete.confirm.all": "Ertu nú alveg viss um að þú viljir eyða öllum þessum bálkum?", "field.blocks.delete.confirm.selected": "Viltu virkilega eyða völdum bálkum?", "field.blocks.empty": "Öngvir bálkar enn", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Engin sviðasett enn", "field.blocks.fieldsets.label": "Veldu bálkagerð …", "field.blocks.fieldsets.paste": "Ýttu á {{ shortcut }} til þess að flytja raðir/bálka hingað Aðeins þeir sem eru gildir hér mun verða færðir hingað.", "field.blocks.gallery.name": "Myndasafn", @@ -354,7 +354,7 @@ "hide": "Fela", "hour": "Klukkustund", - "hue": "Hue", + "hue": "Blær", "import": "Hlaða inn", "info": "Upplýsingar", "insert": "Setja inn", @@ -496,7 +496,7 @@ "page.changeStatus.select": "Veldu nýja stöðu", "page.changeTemplate": "Breyta sniðmáti", "page.changeTemplate.notice": "Að breyta sniðmáti síðunnar mun fjarlægja efni fyrir svið er ekki passa við gerð nýja sniðmátsins. Notist með gát.", - "page.create": "Stofna sem {Status}", + "page.create": "Stofna", "page.delete.confirm": "Viltu virkilega farga {title}?", "page.delete.confirm.subpages": "Þessi síða hefur undirsíður.
        Þeim mun verða fargað líka.", "page.delete.confirm.title": "Skráðu síðutitilinn til staðfestingar", @@ -553,7 +553,7 @@ "search.all": "Sýna allt", "search.results.none": "Engar niðurstöður", - "section.invalid": "Þetta svæði er bara ógillt.", + "section.invalid": "Þetta svæði er bara ógillt sem stendur.", "section.required": "Þetta svæði er nauðsynlegt", "security": "Öryggi", diff --git a/i18n/translations/ko.json b/i18n/translations/ko.json index a1d4670620..9177ecdc4b 100644 --- a/i18n/translations/ko.json +++ b/i18n/translations/ko.json @@ -209,7 +209,7 @@ "error.user.email.invalid": "올바른 이메일 주소를 입력하세요.", "error.user.language.invalid": "올바른 언어를 입력하세요.", "error.user.notFound": "사용자({name})가 없습니다.", - "error.user.password.excessive": "Please enter a valid password. Passwords must not be longer than 1000 characters.", + "error.user.password.excessive": "올바른 암호를 입력하세요. 암호는 1,000자를 넘을 수 없습니다.", "error.user.password.invalid": "암호를 8자 이상으로 설정하세요.", "error.user.password.notSame": "\uc554\ud638\ub97c \ud655\uc778\ud558\uc138\uc694.", "error.user.password.undefined": "암호가 설정되지 않았습니다.", @@ -256,18 +256,18 @@ "error.validation.same": "이 값({other})을 입력하세요.", "error.validation.size": "값의 크기({size})를 확인하세요. ", "error.validation.startswith": "값은 다음({start})으로 시작해야 합니다.", - "error.validation.tel": "Please enter an unformatted phone number", + "error.validation.tel": "숫자만 입력하세요.", "error.validation.time": "올바른 시각을 입력하세요.", "error.validation.time.after": "{time} 이후 시각을 입력하세요.", "error.validation.time.before": "{time} 이전 시각을 입력하세요.", "error.validation.time.between": "{min}, {max} 사이의 시각을 입력하세요.", - "error.validation.uuid": "Please enter a valid UUID", + "error.validation.uuid": "올바른 UUID를 입력하세요.", "error.validation.url": "올바른 URL을 입력하세요.", "expand": "열기", "expand.all": "모두 열기", - "field.invalid": "The field is invalid", + "field.invalid": "필드가 올바르지 않습니다.", "field.required": "필드를 채우세요.", "field.blocks.changeType": "유형 변경", "field.blocks.code.name": "코드", @@ -292,8 +292,8 @@ "field.blocks.image.crop": "자르기", "field.blocks.image.link": "링크", "field.blocks.image.location": "위치", - "field.blocks.image.location.internal": "This website", - "field.blocks.image.location.external": "External source", + "field.blocks.image.location.internal": "이 웹사이트", + "field.blocks.image.location.external": "외부 소스", "field.blocks.image.name": "이미지", "field.blocks.image.placeholder": "이미지 선택", "field.blocks.image.ratio": "비율", @@ -318,10 +318,10 @@ "field.files.empty": "선택한 파일이 없습니다.", - "field.layout.change": "Change layout", + "field.layout.change": "레이아웃 변경", "field.layout.delete": "레이아웃 삭제", "field.layout.delete.confirm": "레이아웃을 삭제할까요?", - "field.layout.delete.confirm.all": "Do you really want to delete all layouts?", + "field.layout.delete.confirm.all": "모든 레이아웃을 삭제할까요?", "field.layout.empty": "행이 없습니다.", "field.layout.select": "레이아웃 선택", @@ -340,21 +340,21 @@ "file": "파일", "file.blueprint": "블루프린트(/site/blueprints/files/{blueprint}.yml)를 설정하세요.", "file.changeTemplate": "템플릿 변경", - "file.changeTemplate.notice": "Changing the file's template will remove content for fields that don't match in type. If the new template defines certain rules, e.g. image dimensions, those will also be applied irreversibly. Use with caution.", + "file.changeTemplate.notice": "템플릿을 변경하면 유형이 일치하지 않은 필드에 입력한 콘텐츠가 삭제됩니다. 템플릿에서 이미지 크기 등 특정 규칙이 지정된 경우 해당 규칙을 되돌릴 수 없습니다.", "file.delete.confirm": "파일({filename})을 삭제할까요?", - "file.focus.placeholder": "Set focal point", - "file.focus.reset": "Remove focal point", - "file.focus.title": "Focus", + "file.focus.placeholder": "초점 설정", + "file.focus.reset": "초점 삭제", + "file.focus.title": "초점", "file.sort": "순서 변경", "files": "파일", "files.empty": "파일이 없습니다.", - "filter": "Filter", + "filter": "필터", "hide": "숨기기", "hour": "시", - "hue": "Hue", + "hue": "색상", "import": "가져오기", "info": "정보", "insert": "\uc0bd\uc785", @@ -389,16 +389,16 @@ "language.locale": "PHP 로캘 문자열", "language.locale.warning": "사용자 지정 로캘을 사용 중입니다. /site/languages 폴더의 언어 파일을 수정하세요.", "language.name": "언어명", - "language.secondary": "Secondary language", - "language.settings": "Language settings", + "language.secondary": "보조 언어", + "language.settings": "언어 설정", "language.updated": "언어를 변경했습니다.", - "language.variables": "Language variables", - "language.variables.empty": "No translations yet", + "language.variables": "언어 변수", + "language.variables.empty": "번역이 없습니다.", "language.variable.delete.confirm": "Do you really want to delete the variable for {key}?", "language.variable.key": "Key", "language.variable.notFound": "The variable could not be found", - "language.variable.value": "Value", + "language.variable.value": "값", "languages": "언어", "languages.default": "기본 언어", @@ -448,7 +448,7 @@ "logout": "로그아웃", - "merge": "Merge", + "merge": "합치기", "menu": "메뉴", "meridiem": "오전/오후", "mime": "MIME 형식", @@ -469,16 +469,16 @@ "months.september": "9\uc6d4", "more": "더 보기", - "move": "Move", + "move": "이동", "name": "이름", "next": "다음", - "night": "Night", + "night": "밤", "no": "아니요", "off": "끔", "on": "켬", "open": "열기", "open.newWindow": "새 창에서 열기", - "option": "Option", + "option": "옵션", "options": "옵션", "options.none": "옵션이 없습니다.", @@ -495,7 +495,7 @@ "page.changeStatus.position": "순서를 지정하세요.", "page.changeStatus.select": "새 상태 선택", "page.changeTemplate": "템플릿 변경", - "page.changeTemplate.notice": "Changing the page's template will remove content for fields that don't match in type. Use with caution.", + "page.changeTemplate.notice": "템플릿을 변경하면 유형이 일치하지 않은 필드에 입력한 콘텐츠가 삭제됩니다.", "page.create": "Create as {status}", "page.delete.confirm": "페이지({title})를 삭제할까요?", "page.delete.confirm.subpages": "페이지에 하위 페이지가 있습니다. 모든 하위 페이지가 삭제됩니다.", @@ -503,7 +503,7 @@ "page.duplicate.appendix": "복사", "page.duplicate.files": "파일 복사", "page.duplicate.pages": "페이지 복사", - "page.move": "Move page", + "page.move": "페이지 이동", "page.sort": "순서 변경", "page.status": "상태", "page.status.draft": "초안", @@ -511,7 +511,7 @@ "page.status.listed": "공개", "page.status.listed.description": "누구나 읽을 수 있습니다.", "page.status.unlisted": "비공개", - "page.status.unlisted.description": "URL을 통해 접근할 수 있습니다.", + "page.status.unlisted.description": "오직 URL을 통해 접근할 수 있습니다.", "pages": "페이지", "pages.empty": "페이지가 없습니다.", @@ -533,7 +533,7 @@ "remove": "삭제", "rename": "이름 변경", "replace": "\uad50\uccb4", - "replace.with": "Replace with", + "replace.with": "다음으로 교체", "retry": "\ub2e4\uc2dc \uc2dc\ub3c4", "revert": "복원", "revert.confirm": "저장되지 않은 내용을 삭제할까요?", @@ -553,7 +553,7 @@ "search.all": "모두 보기", "search.results.none": "해당하는 결과가 없습니다.", - "section.invalid": "The section is invalid", + "section.invalid": "섹션이 올바르지 않습니다.", "section.required": "섹션이 필요합니다.", "security": "보안", @@ -566,7 +566,7 @@ "slug": "고유 주소", "sort": "정렬", "sort.drag": "Drag to sort …", - "split": "Split", + "split": "나누기", "stats.empty": "관련 기록이 없습니다.", "system.issues.content": "/content 폴더의 권한을 확인하세요.", @@ -582,8 +582,8 @@ "system.updateStatus": "업데이트 상태", "system.updateStatus.error": "업데이트를 확인할 수 없습니다.", "system.updateStatus.not-vulnerable": "알려진 취약성이 없습니다.", - "system.updateStatus.security-update": "Free security update { version } available", - "system.updateStatus.security-upgrade": "Upgrade { version } with security fixes available", + "system.updateStatus.security-update": "{ version } 버전으로 무료 보안 업데이트", + "system.updateStatus.security-upgrade": "{ version } 버전으로 보안 업그레이드", "system.updateStatus.unreleased": "출시 전 버전", "system.updateStatus.up-to-date": "최신 버전입니다.", "system.updateStatus.update": "{ version } 버전으로 무료 업데이트", @@ -595,7 +595,7 @@ "title": "제목", "today": "오늘", - "toolbar.button.clear": "Clear formatting", + "toolbar.button.clear": "서식 제거", "toolbar.button.code": "코드", "toolbar.button.bold": "강조", "toolbar.button.email": "이메일 주소", @@ -613,8 +613,8 @@ "toolbar.button.link": "링크", "toolbar.button.paragraph": "문단", "toolbar.button.strike": "취소선", - "toolbar.button.sub": "Subscript", - "toolbar.button.sup": "Superscript", + "toolbar.button.sub": "아래 첨자", + "toolbar.button.sup": "위 첨자", "toolbar.button.ol": "숫자 목록", "toolbar.button.underline": "밑줄", "toolbar.button.ul": "기호 목록", diff --git a/i18n/translations/pl.json b/i18n/translations/pl.json index 9a743f0613..a6f1b8489a 100644 --- a/i18n/translations/pl.json +++ b/i18n/translations/pl.json @@ -4,24 +4,24 @@ "account.delete.confirm": "Czy na pewno chcesz usunąć swoje konto? Zostaniesz natychmiast wylogowany. Twojego konta nie da się odzyskać.", "add": "Dodaj", - "alpha": "Alpha", + "alpha": "Alfa", "author": "Autor", "avatar": "Zdj\u0119cie profilowe", "back": "Wróć", "cancel": "Anuluj", "change": "Zmie\u0144", "close": "Zamknij", - "changes": "Changes", + "changes": "Zmiany", "confirm": "Ok", "collapse": "Zwiń", "collapse.all": "Zwiń wszystkie", - "color": "Color", - "coordinates": "Coordinates", + "color": "Kolor", + "coordinates": "Współrzędne", "copy": "Kopiuj", "copy.all": "Skopiuj wszystko", - "copy.success": "{count} copied!", + "copy.success": "{count} skopiowanych!", "create": "Utwórz", - "custom": "Custom", + "custom": "Niestandardowe", "date": "Data", "date.select": "Wybierz datę", @@ -40,17 +40,17 @@ "delete": "Usu\u0144", "delete.all": "Usuń wszystkie", - "dialog.fields.empty": "This dialog has no fields", + "dialog.fields.empty": "To okno dialogowe nie zawiera żadnych pól", "dialog.files.empty": "Brak plików do wyboru", "dialog.pages.empty": "Brak stron do wyboru", - "dialog.text.empty": "This dialog does not define any text", + "dialog.text.empty": "To okno dialogowe nie definiuje żadnego tekstu", "dialog.users.empty": "Brak użytkowników do wyboru", "dimensions": "Wymiary", "disabled": "Wyłączone", "discard": "Odrzu\u0107", - "drawer.fields.empty": "This drawer has no fields", + "drawer.fields.empty": "Ten panel nie zawiera żadnych pól", "download": "Pobierz", "duplicate": "Zduplikuj", @@ -60,13 +60,13 @@ "email": "Email", "email.placeholder": "mail@example.com", - "enter": "Enter", + "enter": "Wprowadź", "entries": "Wpisy", "entry": "Wpis", "environment": "Środowisko", - "error": "Error", + "error": "Błąd", "error.access.code": "Nieprawidłowy kod", "error.access.login": "Nieprawidłowy login", "error.access.panel": "Nie masz uprawnień by dostać się do panelu", @@ -94,8 +94,8 @@ "error.file.changeName.empty": "Imię nie może być puste", "error.file.changeName.permission": "Nie masz uprawnień, by zmienić nazwę \"{filename}\"", - "error.file.changeTemplate.invalid": "The template for the file \"{id}\" cannot be changed to \"{template}\" (valid: \"{blueprints}\")", - "error.file.changeTemplate.permission": "You are not allowed to change the template for the file \"{id}\"", + "error.file.changeTemplate.invalid": "Szablonu pliku \"{id}\" nie można zmienić na \"{template}\" (poprawne: \"{blueprints}\")", + "error.file.changeTemplate.permission": "Nie masz uprawnień, by zmieniać szablon pliku \"{id}\"", "error.file.duplicate": "Istnieje już plik o nazwie \"{filename}\"", "error.file.extension.forbidden": "Rozszerzenie \"{extension}\" jest niedozwolone", @@ -111,7 +111,7 @@ "error.file.minheight": "Wysokość obrazka musi wynosić co najmniej {height} pikseli", "error.file.minsize": "Plik jest za mały", "error.file.minwidth": "Szerokość obrazka musi wynosić co najmniej {width} pikseli", - "error.file.name.unique": "The filename must be unique", + "error.file.name.unique": "Nazwa pliku musi być unikalna", "error.file.name.missing": "Nazwa pliku nie może być pusta", "error.file.notFound": "Nie można znaleźć pliku \"{filename}\"", "error.file.orientation": "Orientacja obrazka musi być \"{orientation}\"", @@ -139,7 +139,7 @@ "error.offline": "Panel jest obecnie offline", "error.page.changeSlug.permission": "Nie możesz zmienić końcówki adresu URL w \"{slug}\"", - "error.page.changeSlug.reserved": "The path of top-level pages must not start with \"{path}\"", + "error.page.changeSlug.reserved": "Ścieżka stron najwyższego poziomu nie może zaczynać się od \"{path}\"", "error.page.changeStatus.incomplete": "Strona zawiera błędy i nie można jej opublikować", "error.page.changeStatus.permission": "Status tej strony nie może zostać zmieniony", "error.page.changeStatus.toDraft.invalid": "Strony \"{slug}\" nie można przekonwertować na szkic", @@ -155,12 +155,12 @@ "error.page.draft.duplicate": "Istnieje już szkic z końcówką URL \"{slug}\"", "error.page.duplicate": "Istnieje już strona z końcówką URL \"{slug}\"", "error.page.duplicate.permission": "Nie masz uprawnień, by zduplikować \"{slug}\"", - "error.page.move.ancestor": "The page cannot be moved into itself", - "error.page.move.directory": "The page directory cannot be moved", - "error.page.move.duplicate": "A sub page with the URL appendix \"{slug}\" already exists", - "error.page.move.notFound": "The moved page could not be found", - "error.page.move.permission": "You are not allowed to move \"{slug}\"", - "error.page.move.template": "The \"{template}\" template is not accepted as a subpage of \"{parent}\"", + "error.page.move.ancestor": "Strony nie można przenieść do siebie samej", + "error.page.move.directory": "Nie można przenieść katalogu strony", + "error.page.move.duplicate": "Istnieje już podstrona z końcówką URL \"{slug}\"", + "error.page.move.notFound": "Przeniesiona strona nie została odnaleziona", + "error.page.move.permission": "Nie masz uprawnień, by przenieść \"{slug}\"", + "error.page.move.template": "Szablon \"{template}\" nie jest akceptowany jako podstrona \"{parent}\"", "error.page.notFound": "Nie można znaleźć strony \"{slug}\"", "error.page.num.invalid": "Wprowadź poprawny numer sortujący. Liczby nie mogą być ujemne.", "error.page.slug.invalid": "Wprowadź poprawną końcówkę adresu URL", @@ -187,7 +187,7 @@ "error.site.changeTitle.permission": "Nie masz uprawnień, by zmienić tytuł strony", "error.site.update.permission": "Nie masz uprawnień, by zaktualizować stronę", - "error.structure.validation": "There's an error on the \"{field}\" field in row {index}", + "error.structure.validation": "Wystąpił błąd w polu \"{field}\" w wierszu {index}", "error.template.default.notFound": "Domyślny szablon nie istnieje", @@ -209,7 +209,7 @@ "error.user.email.invalid": "Wprowadź poprawny adres email", "error.user.language.invalid": "Proszę podać poprawny język", "error.user.notFound": "Nie można znaleźć użytkownika \"{name}\"", - "error.user.password.excessive": "Please enter a valid password. Passwords must not be longer than 1000 characters.", + "error.user.password.excessive": "Wpisz prawidłowe hasło. Hasła nie mogą być dłuższe niż 1000 znaków.", "error.user.password.invalid": "Wprowadź prawidłowe hasło. Hasła muszą mieć co najmniej 8 znaków.", "error.user.password.notSame": "Hasła nie są takie same", "error.user.password.undefined": "Użytkownik nie ma hasła", @@ -221,10 +221,10 @@ "error.validation.accepted": "Proszę potwierdzić", "error.validation.alpha": "Wprowadź tylko znaki między a-z", "error.validation.alphanum": "Wprowadź tylko znaki między a-z lub cyfry 0-9", - "error.validation.anchor": "Please enter a correct link anchor", + "error.validation.anchor": "Wprowadź poprawny odnośnik", "error.validation.between": "Wprowadź wartość między \"{min}\" i \"{max}\"", "error.validation.boolean": "Potwierdź lub odmów", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Wprowadź poprawny kolor w formacie {format}", "error.validation.contains": "Wprowadź wartość, która zawiera \"{needle}\"", "error.validation.date": "Wprowadź poprawną datę", "error.validation.date.after": "Wprowadź datę późniejszą niż {date}", @@ -239,7 +239,7 @@ "error.validation.integer": "Wprowadź poprawną liczbę całkowitą", "error.validation.ip": "Wprowadź poprawny adres IP", "error.validation.less": "Wprowadź wartość mniejszą niż {max}", - "error.validation.linkType": "The link type is not allowed", + "error.validation.linkType": "Typ łącza jest niedozwolony", "error.validation.match": "Wartość nie jest zgodna z oczekiwanym wzorcem", "error.validation.max": "Wprowadź wartość równą lub mniejszą niż {max}", "error.validation.maxlength": "Wprowadź krótszą wartość. (maks. {max} znaków)", @@ -256,18 +256,18 @@ "error.validation.same": "Wprowadź \"{other}\"", "error.validation.size": "Rozmiar wartości musi wynosić \"{size}\"", "error.validation.startswith": "Wartość musi zaczynać się od \"{start}\"", - "error.validation.tel": "Please enter an unformatted phone number", + "error.validation.tel": "Wprowadź niesformatowany numer telefonu", "error.validation.time": "Wprowadź poprawny czas", "error.validation.time.after": "Wprowadź czas późniejszy niż {time}", "error.validation.time.before": "Wprowadź czas wcześniejszy niż {time}", "error.validation.time.between": "Wprowadź czas między {min} a {max}", - "error.validation.uuid": "Please enter a valid UUID", + "error.validation.uuid": "Wprowadź prawidłowy identyfikator UUID", "error.validation.url": "Wprowadź poprawny adres URL", "expand": "Rozwiń", "expand.all": "Rozwiń wszystkie", - "field.invalid": "The field is invalid", + "field.invalid": "Pole jest nieprawidłowe", "field.required": "Pole jest wymagane", "field.blocks.changeType": "Zmień typ", "field.blocks.code.name": "Kod", @@ -277,9 +277,9 @@ "field.blocks.delete.confirm.all": "Czy na pewno chcesz usunąć wszystkie bloki?", "field.blocks.delete.confirm.selected": "Czy na pewno chcesz usunąć wszystkie wybrane bloki?", "field.blocks.empty": "Nie ma jeszcze żadnych bloków", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Nie ma jeszcze zestawów pól", "field.blocks.fieldsets.label": "Wybierz typ bloku …", - "field.blocks.fieldsets.paste": "Press {{ shortcut }} to import layouts/blocks from your clipboard Only those allowed in the current field will get inserted.", + "field.blocks.fieldsets.paste": "Naciśnij {{ shortcut }}, aby zaimportować układy/bloki ze schowka. Zostaną wstawione tylko te, które są dozwolone w bieżącym polu.", "field.blocks.gallery.name": "Galeria", "field.blocks.gallery.images.empty": "Nie ma jeszcze żadnych obrazków", "field.blocks.gallery.images.label": "Obrazki", @@ -292,8 +292,8 @@ "field.blocks.image.crop": "Przytnij", "field.blocks.image.link": "Link", "field.blocks.image.location": "Lokalizacja", - "field.blocks.image.location.internal": "This website", - "field.blocks.image.location.external": "External source", + "field.blocks.image.location.internal": "Ta witryna", + "field.blocks.image.location.external": "Zewnętrzne źródło", "field.blocks.image.name": "Obrazek", "field.blocks.image.placeholder": "Wybierz obrazek", "field.blocks.image.ratio": "Proporcje", @@ -318,10 +318,10 @@ "field.files.empty": "Nie wybrano jeszcze żadnych plików", - "field.layout.change": "Change layout", + "field.layout.change": "Zmień układ", "field.layout.delete": "Usuń układ", "field.layout.delete.confirm": "Czy na pewno chcesz usunąć ten układ?", - "field.layout.delete.confirm.all": "Do you really want to delete all layouts?", + "field.layout.delete.confirm.all": "Czy na pewno chcesz usunąć wszystkie układy?", "field.layout.empty": "Nie ma jeszcze żadnych rzędów", "field.layout.select": "Wybierz układ", @@ -335,26 +335,26 @@ "field.users.empty": "Nie wybrano jeszcze żadnych użytkowników", - "fields.empty": "No fields yet", + "fields.empty": "Nie ma jeszcze żadnych pól", "file": "Plik", "file.blueprint": "Ten plik nie ma jeszcze wzorca. Możesz go zdefiniować w /site/blueprints/files/{blueprint}.yml", "file.changeTemplate": "Zmień szablon", - "file.changeTemplate.notice": "Changing the file's template will remove content for fields that don't match in type. If the new template defines certain rules, e.g. image dimensions, those will also be applied irreversibly. Use with caution.", + "file.changeTemplate.notice": "Zmiana szablonu pliku spowoduje usunięcie zawartości pól, które nie pasują pod względem typu. Jeżeli nowy szablon określa pewne zasady, np. wymiarów obrazu, one również zostaną zastosowane nieodwracalnie. Używaj ostrożnie.", "file.delete.confirm": "Czy na pewno chcesz usunąć
        {filename}?", - "file.focus.placeholder": "Set focal point", - "file.focus.reset": "Remove focal point", - "file.focus.title": "Focus", + "file.focus.placeholder": "Ustaw punkt centralny", + "file.focus.reset": "Usuń punkt centralny", + "file.focus.title": "Punkt centralny", "file.sort": "Zmień pozycję", "files": "Pliki", "files.empty": "Nie ma jeszcze żadnych plików", - "filter": "Filter", + "filter": "Filtr", "hide": "Ukryj", "hour": "Godzina", - "hue": "Hue", + "hue": "Odcień", "import": "Importuj", "info": "Informacje", "insert": "Wstaw", @@ -389,16 +389,16 @@ "language.locale": "PHP locale string", "language.locale.warning": "Używasz niestandardowej konfiguracji ustawień regionalnych. Zmodyfikuj to w pliku języka w /site/langugaes", "language.name": "Nazwa", - "language.secondary": "Secondary language", - "language.settings": "Language settings", + "language.secondary": "Drugorzędny język", + "language.settings": "Ustawienia języków", "language.updated": "Język został zaktualizowany", - "language.variables": "Language variables", - "language.variables.empty": "No translations yet", + "language.variables": "Zmienne językowe", + "language.variables.empty": "Nie ma jeszcze żadnych tłumaczeń", - "language.variable.delete.confirm": "Do you really want to delete the variable for {key}?", - "language.variable.key": "Key", - "language.variable.notFound": "The variable could not be found", - "language.variable.value": "Value", + "language.variable.delete.confirm": "Czy na pewno chcesz usunąć zmienną przypisaną do klucza {key}?", + "language.variable.key": "Klucz", + "language.variable.notFound": "Nie udało się odnaleźć zmiennej", + "language.variable.value": "Wartość", "languages": "Języki", "languages.default": "Domyślny język", @@ -425,10 +425,10 @@ "lock.unsaved": "Niezapisane zmiany", "lock.unsaved.empty": "Nie ma już żadnych niezapisanych zmian", - "lock.isLocked": "Unsaved changes by {email}", + "lock.isLocked": "Niezapisane zmiany autorstwa {email}", "lock.unlock": "Odblokuj", - "lock.unlock.submit": "Unlock and overwrite unsaved changes by {email}", - "lock.isUnlocked": "Was unlocked by another user", + "lock.unlock.submit": "Odblokuj i nadpisz niezapisane zmiany autorstwa {email}", + "lock.isUnlocked": "Zostało odblokowane przez innego użytkownika", "login": "Zaloguj się", "login.code.label.login": "Kod logowania się", @@ -448,7 +448,7 @@ "logout": "Wyloguj się", - "merge": "Merge", + "merge": "Połącz", "menu": "Menu", "meridiem": "AM/PM", "mime": "Typ multimediów", @@ -469,16 +469,16 @@ "months.september": "Wrzesie\u0144", "more": "Więcej", - "move": "Move", + "move": "Przenieś", "name": "Nazwa", "next": "Następne", - "night": "Night", + "night": "Noc", "no": "nie", "off": "wyłączone", "on": "włączone", "open": "Otwórz", "open.newWindow": "Otwórz w nowym oknie", - "option": "Option", + "option": "Opcja", "options": "Opcje", "options.none": "Brak opcji", @@ -487,7 +487,7 @@ "orientation.portrait": "Pionowa", "orientation.square": "Kwadrat", - "page": "Page", + "page": "Strona", "page.blueprint": "Ta strona nie ma jeszcze wzorca. Możesz go zdefiniować w /site/blueprints/pages/{blueprint}.yml", "page.changeSlug": "Zmie\u0144 URL", "page.changeSlug.fromTitle": "Utw\u00f3rz na podstawie tytu\u0142u", @@ -495,15 +495,15 @@ "page.changeStatus.position": "Wybierz pozycję", "page.changeStatus.select": "Wybierz nowy status", "page.changeTemplate": "Zmień szablon", - "page.changeTemplate.notice": "Changing the page's template will remove content for fields that don't match in type. Use with caution.", - "page.create": "Create as {status}", + "page.changeTemplate.notice": "Zmiana szablonu strony spowoduje usunięcie treści z pól, które nie pasują pod względem typu. Używaj ostrożnie.", + "page.create": "Utwórz jako {status}", "page.delete.confirm": "Czy na pewno chcesz usunąć {title}?", "page.delete.confirm.subpages": "Ta strona zawiera podstrony.
        Wszystkie podstrony również zostaną usunięte.", "page.delete.confirm.title": "Wprowadź tytuł strony, aby potwierdzić", "page.duplicate.appendix": "Kopiuj", "page.duplicate.files": "Kopiuj pliki", "page.duplicate.pages": "Kopiuj strony", - "page.move": "Move page", + "page.move": "Przenieś stronę", "page.sort": "Zmień pozycję", "page.status": "Status", "page.status.draft": "Szkic", @@ -524,7 +524,7 @@ "password": "Has\u0142o", "paste": "Wklej", "paste.after": "Wklej po", - "paste.success": "{count} pasted!", + "paste.success": "{count} wklejonych!", "pixel": "Piksel", "plugin": "Wtyczka", "plugins": "Wtyczki", @@ -533,7 +533,7 @@ "remove": "Usuń", "rename": "Zmień nazwę", "replace": "Zamie\u0144", - "replace.with": "Replace with", + "replace.with": "Zamień z", "retry": "Pon\u00f3w pr\u00f3b\u0119", "revert": "Odrzu\u0107", "revert.confirm": "Czy na pewno chcesz usunąć wszystkie niezapisane zmiany?", @@ -553,7 +553,7 @@ "search.all": "Pokaż wzystkie", "search.results.none": "Brak wyników", - "section.invalid": "The section is invalid", + "section.invalid": "Sekcja jest nieprawidłowa", "section.required": "Sekcja jest wymagana", "security": "Bezpieczeństwo", @@ -565,8 +565,8 @@ "size": "Rozmiar", "slug": "Końcówka URL", "sort": "Sortuj", - "sort.drag": "Drag to sort …", - "split": "Split", + "sort.drag": "Przeciągnij, aby posortować…", + "split": "Podziel", "stats.empty": "Brak raportów", "system.issues.content": "Zdaje się, że folder „content” jest wystawiony na publiczny dostęp", @@ -589,13 +589,13 @@ "system.updateStatus.update": "Dostępna darmowa aktualizacja { version }", "system.updateStatus.upgrade": "Dostępna aktualizacja { version }", - "tel": "Phone", - "tel.placeholder": "+49123456789", + "tel": "Telefon", + "tel.placeholder": "+48123456789", "template": "Szablon", "title": "Tytuł", "today": "Dzisiaj", - "toolbar.button.clear": "Clear formatting", + "toolbar.button.clear": "Wyczyść formatowanie", "toolbar.button.code": "Kod", "toolbar.button.bold": "Pogrubienie", "toolbar.button.email": "Email", @@ -613,8 +613,8 @@ "toolbar.button.link": "Link", "toolbar.button.paragraph": "Akapit", "toolbar.button.strike": "Przekreślenie", - "toolbar.button.sub": "Subscript", - "toolbar.button.sup": "Superscript", + "toolbar.button.sub": "Indeks dolny", + "toolbar.button.sup": "Indeks górny", "toolbar.button.ol": "Lista numerowana", "toolbar.button.underline": "Podkreślenie", "toolbar.button.ul": "Lista wypunktowana", diff --git a/i18n/translations/ro.json b/i18n/translations/ro.json index a5d3b95797..10b4b5a9cb 100644 --- a/i18n/translations/ro.json +++ b/i18n/translations/ro.json @@ -4,7 +4,7 @@ "account.delete.confirm": "Chiar vrei să îți ștergi contul? Vei fi deconectat imediat. Contul nu poate fi recuperat.", "add": "Adaug\u0103", - "alpha": "Alpha", + "alpha": "Alfa", "author": "Autor", "avatar": "Imagine de profil", "back": "Înapoi", @@ -15,8 +15,8 @@ "confirm": "Ok", "collapse": "Pliază", "collapse.all": "Pliază toate", - "color": "Color", - "coordinates": "Coordinates", + "color": "Culoare", + "coordinates": "Coordonate", "copy": "Copiază", "copy.all": "Copiază toate", "copy.success": "copiat {count}!", @@ -224,7 +224,7 @@ "error.validation.anchor": "Te rog introdu o ancoră corectă pentru legătură", "error.validation.between": "Te rog introdu o valoare între \"{min}\" și \"{max}\"", "error.validation.boolean": "Te rog confirmă sau refuză", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Te rog introdu o culoare validă în formatul {format}", "error.validation.contains": "Te rog introdu o valoare care conține \"{needle}\"", "error.validation.date": "Te rog introdu o dată validă", "error.validation.date.after": "Te rog introdu o dată după {date}", @@ -277,7 +277,7 @@ "field.blocks.delete.confirm.all": "Chiar vrei să ștergi toate blocurile?", "field.blocks.delete.confirm.selected": "Chiar vrei să ștergi blocurile selectate?", "field.blocks.empty": "Niciun bloc deocamdată", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Niciun set de câmpuri încă", "field.blocks.fieldsets.label": "Te rog alege un tip de bloc …", "field.blocks.fieldsets.paste": "Apasă {{ shortcut }} pentru a importa aranjamente/blocuri din clipboard Doar cele permise pentru câmpul curent vor fi inserate.", "field.blocks.gallery.name": "Galerie", @@ -354,7 +354,7 @@ "hide": "Ascunde", "hour": "Ora", - "hue": "Hue", + "hue": "Nuanță", "import": "Importă", "info": "Informații", "insert": "Inserează", diff --git a/i18n/translations/ru.json b/i18n/translations/ru.json index d54e324974..14bcb950fb 100644 --- a/i18n/translations/ru.json +++ b/i18n/translations/ru.json @@ -4,7 +4,7 @@ "account.delete.confirm": "Вы действительно хотите удалить свой аккаунт? Вы сразу покинете панель управления, а аккаунт нельзя будет восстановить.", "add": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c", - "alpha": "Alpha", + "alpha": "Альфа", "author": "Автор", "avatar": "\u0410\u0432\u0430\u0442\u0430\u0440 (\u0444\u043e\u0442\u043e)", "back": "Назад", @@ -15,8 +15,8 @@ "confirm": "Ок", "collapse": "Свернуть", "collapse.all": "Свернуть все", - "color": "Color", - "coordinates": "Coordinates", + "color": "Цвет", + "coordinates": "Координаты", "copy": "Скопировать", "copy.all": "Копировать все", "copy.success": "{count} скопировано", @@ -224,7 +224,7 @@ "error.validation.anchor": "Пожалуйста, введите правильную ссылку на якорь", "error.validation.between": "Пожалуйста, введите значение от \"{min}\" до \"{max}\"", "error.validation.boolean": "Пожалуйста, подтвердите или отмените", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Пожалуйста, введите верное значение цвета в формате {format}", "error.validation.contains": "Пожалуйста, впишите значение, которое содержит \"{needle}\"", "error.validation.date": "Пожалуйста, укажите правильную дату", "error.validation.date.after": "Пожалуйста, укажите дату после {date}", @@ -277,7 +277,7 @@ "field.blocks.delete.confirm.all": "Вы действительно хотите удалить все блоки?", "field.blocks.delete.confirm.selected": "Вы действительно хотите удалить эти блоки?", "field.blocks.empty": "Блоков нет", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Пока нет наборов полей", "field.blocks.fieldsets.label": "Пожалуйста, выберите тип блока…", "field.blocks.fieldsets.paste": "Нажмите {{ shortcut }} чтобы импортировать макеты/блоки из буфера обмена Будут вставлены только те, которые разрешены в текущем поле.", "field.blocks.gallery.name": "Галерея", @@ -354,7 +354,7 @@ "hide": "Скрыть", "hour": "Час", - "hue": "Hue", + "hue": "Оттенок", "import": "Импортировать", "info": "Информация", "insert": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c", diff --git a/i18n/translations/sk.json b/i18n/translations/sk.json index a052099754..43c2a95f0e 100644 --- a/i18n/translations/sk.json +++ b/i18n/translations/sk.json @@ -1,22 +1,22 @@ { - "account.changeName": "Change your name", - "account.delete": "Delete your account", + "account.changeName": "Zmeniť vaše meno", + "account.delete": "Zmazať váš účet", "account.delete.confirm": "Do you really want to delete your account? You will be logged out immediately. Your account cannot be recovered.", "add": "Pridať", "alpha": "Alpha", - "author": "Author", + "author": "Autor", "avatar": "Profilový obrázok", "back": "Späť", "cancel": "Zrušiť", "change": "Zmeniť", "close": "Zavrieť", - "changes": "Changes", + "changes": "Zmeny", "confirm": "Ok", "collapse": "Zabaliť", "collapse.all": "Zabaliť všetky", - "color": "Color", - "coordinates": "Coordinates", + "color": "Farba", + "coordinates": "Koordináty", "copy": "Kopírovať", "copy.all": "Copy all", "copy.success": "{count} copied!", @@ -44,7 +44,7 @@ "dialog.files.empty": "No files to select", "dialog.pages.empty": "No pages to select", "dialog.text.empty": "This dialog does not define any text", - "dialog.users.empty": "No users to select", + "dialog.users.empty": "Zvolení neboli žiadni uživátelia", "dimensions": "Rozmery", "disabled": "Disabled", @@ -74,7 +74,7 @@ "error.avatar.create.fail": "Profilový obrázok sa nepodarilo nahrať", "error.avatar.delete.fail": "Profilový obrázok sa nepodarilo zmazať", - "error.avatar.dimensions.invalid": "Prosím, dodržte, aby šírka a výška profilového obrázka bola menšia ako 3000 pixelov.", + "error.avatar.dimensions.invalid": "Prosím, dodržte, aby šírka a výška profilového obrázka bola menšia ako 3000 pixelov", "error.avatar.mime.forbidden": "Profilový obrázok musí byť súbor JPEG alebo PNG.", "error.blueprint.notFound": "Blueprint \"{name}\" sa nepodarilo načítať", diff --git a/i18n/translations/sv_SE.json b/i18n/translations/sv_SE.json index 1fe38f3589..bcb5d4229f 100644 --- a/i18n/translations/sv_SE.json +++ b/i18n/translations/sv_SE.json @@ -11,17 +11,17 @@ "cancel": "Avbryt", "change": "\u00c4ndra", "close": "St\u00e4ng", - "changes": "Changes", + "changes": "Ändringar", "confirm": "Spara", "collapse": "Kollapsa", "collapse.all": "Kollapsa alla", - "color": "Color", - "coordinates": "Coordinates", + "color": "Färg", + "coordinates": "Koordinater", "copy": "Kopiera", "copy.all": "Kopiera alla", - "copy.success": "{count} copied!", + "copy.success": "{count} kopierad!", "create": "Skapa", - "custom": "Custom", + "custom": "Anpassad", "date": "Datum", "date.select": "Välj ett datum", @@ -40,17 +40,17 @@ "delete": "Radera", "delete.all": "Radera allt", - "dialog.fields.empty": "This dialog has no fields", + "dialog.fields.empty": "Den här dialogrutan har inga fält", "dialog.files.empty": "Inga filer att välja", "dialog.pages.empty": "Inga sidor att välja", - "dialog.text.empty": "This dialog does not define any text", + "dialog.text.empty": "Den här dialogrutan definierar ingen text", "dialog.users.empty": "Inga användare att välja", "dimensions": "Dimensioner", "disabled": "Inaktiverad", "discard": "Kassera", - "drawer.fields.empty": "This drawer has no fields", + "drawer.fields.empty": "Denna vy har inga fält", "download": "Ladda ner", "duplicate": "Duplicera", @@ -66,7 +66,7 @@ "environment": "Miljö", - "error": "Error", + "error": "Fel", "error.access.code": "Ogiltig kod", "error.access.login": "Ogiltig inloggning", "error.access.panel": "Du saknar behörighet att nå panelen", @@ -94,8 +94,8 @@ "error.file.changeName.empty": "Namnet får inte vara tomt", "error.file.changeName.permission": "Du har inte behörighet att ändra namnet på \"{filename}\"", - "error.file.changeTemplate.invalid": "The template for the file \"{id}\" cannot be changed to \"{template}\" (valid: \"{blueprints}\")", - "error.file.changeTemplate.permission": "You are not allowed to change the template for the file \"{id}\"", + "error.file.changeTemplate.invalid": "Mallen för filen \"{id}\" kan inte ändras till \"{template}\" (giltiga mallar: \"{blueprints}\")", + "error.file.changeTemplate.permission": "Du saknar behörighet för att ändra mallen för filen \"{id}\"", "error.file.duplicate": "En fil med namnet \"{filename}\" existerar redan", "error.file.extension.forbidden": "Filändelsen \"{extension}\" är inte tillåten", @@ -111,7 +111,7 @@ "error.file.minheight": "Bildens höjd måste vara minst {height} pixlar", "error.file.minsize": "Filen är för liten", "error.file.minwidth": "Bildens bredd måste vara minst {width} pixlar", - "error.file.name.unique": "The filename must be unique", + "error.file.name.unique": "Filnamnet måste vara unikt", "error.file.name.missing": "Filnamnet får inte vara tomt", "error.file.notFound": "Filen \"{filename}\" kan ej hittas", "error.file.orientation": "Bildens orientering måste vara \"{orientation}\"", @@ -139,7 +139,7 @@ "error.offline": "Panelen är för närvarande offline", "error.page.changeSlug.permission": "Du har inte behörighet att ändra URL-appendixen för \"{slug}\"", - "error.page.changeSlug.reserved": "The path of top-level pages must not start with \"{path}\"", + "error.page.changeSlug.reserved": "Sökvägen till sidor på toppnivå får inte börja med \"{path}\"", "error.page.changeStatus.incomplete": "Sidan innehåller fel och kan inte publiceras", "error.page.changeStatus.permission": "Statusen för denna sida kan inte ändras", "error.page.changeStatus.toDraft.invalid": "Statusen för sidan \"{slug}\" kan inte ändras till utkast", @@ -155,12 +155,12 @@ "error.page.draft.duplicate": "Ett utkast med URL-appendixen \"{slug}\" existerar redan", "error.page.duplicate": "En sida med URL-appendixen \"{slug}\" existerar redan", "error.page.duplicate.permission": "Du har inte behörighet att duplicera \"{slug}\"", - "error.page.move.ancestor": "The page cannot be moved into itself", - "error.page.move.directory": "The page directory cannot be moved", - "error.page.move.duplicate": "A sub page with the URL appendix \"{slug}\" already exists", - "error.page.move.notFound": "The moved page could not be found", - "error.page.move.permission": "You are not allowed to move \"{slug}\"", - "error.page.move.template": "The \"{template}\" template is not accepted as a subpage of \"{parent}\"", + "error.page.move.ancestor": "Sidan kan inte flyttas in i sig själv", + "error.page.move.directory": "Sidans mapp kan inte flyttas", + "error.page.move.duplicate": "En undersida med URL-appendixen \"{slug}\" existerar redan", + "error.page.move.notFound": "Den flyttade sidan kunde inte hittas", + "error.page.move.permission": "Du saknar behörighet för att flytta \"{slug}\"", + "error.page.move.template": "Mallen \"{template}\" accepteras inte som en undersida till \"{parent}\"", "error.page.notFound": "Sidan \"{slug}\" kan inte hittas", "error.page.num.invalid": "Ange ett giltigt nummer för sortering. Numret får inte vara negativt.", "error.page.slug.invalid": "Ange en giltig URL-appendix", @@ -187,7 +187,7 @@ "error.site.changeTitle.permission": "Du har inte behörighet att ändra titeln på webbplatsen", "error.site.update.permission": "Du har inte behörighet att uppdatera webbplatsen", - "error.structure.validation": "There's an error on the \"{field}\" field in row {index}", + "error.structure.validation": "Det finns ett fel i fältet \"{field}\" i rad {index}", "error.template.default.notFound": "Standardmallen finns inte", @@ -209,7 +209,7 @@ "error.user.email.invalid": "Ange en giltig e-postadress", "error.user.language.invalid": "Ange ett giltigt språk", "error.user.notFound": "Användaren \"{name}\" kan ej hittas", - "error.user.password.excessive": "Please enter a valid password. Passwords must not be longer than 1000 characters.", + "error.user.password.excessive": "Var vänlig skriv in ett giltigt lösenord. Lösenord får inte vara längre än 1000 tecken.", "error.user.password.invalid": "Ange ett giltigt lösenord. Lösenordet måste vara minst 8 tecken långt.", "error.user.password.notSame": "Lösenorden matchar inte", "error.user.password.undefined": "Användaren har inget lösenord", @@ -221,10 +221,10 @@ "error.validation.accepted": "Vänligen bekräfta", "error.validation.alpha": "Ange endast tecken mellan a-z", "error.validation.alphanum": "Ange endast tecken mellan a-z eller siffror 0-9", - "error.validation.anchor": "Please enter a correct link anchor", + "error.validation.anchor": "Vänligen ange en korrekt länk", "error.validation.between": "Ange ett värde mellan \"{min}\" och \"{max}\"", "error.validation.boolean": "Bekräfta eller neka", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Ange en giltig färg i formatet {format}", "error.validation.contains": "Ange ett värde som innehåller \"{needle}\"", "error.validation.date": "Ange ett giltigt datum", "error.validation.date.after": "Ange ett datum efter {date}", @@ -239,7 +239,7 @@ "error.validation.integer": "Ange en giltig heltalssiffra", "error.validation.ip": "Ange en giltig IP-adress", "error.validation.less": "Ange ett värde lägre än {max}", - "error.validation.linkType": "The link type is not allowed", + "error.validation.linkType": "Länktypen är inte tillåten", "error.validation.match": "Värdet matchar inte det förväntade mönstret", "error.validation.max": "Ange ett värde som är lika med eller lägre än {max}", "error.validation.maxlength": "Ange ett kortare värde. (max {max} tecken)", @@ -256,18 +256,18 @@ "error.validation.same": "Ange \"{other}\"", "error.validation.size": "Storleken av värdet måste vara \"{size}\"", "error.validation.startswith": "Värdet måste börja med \"{start}\"", - "error.validation.tel": "Please enter an unformatted phone number", + "error.validation.tel": "Ange ett oformaterat telefonnummer", "error.validation.time": "Ange en giltig tid", "error.validation.time.after": "Ange en tid efter {time}", "error.validation.time.before": "Ange en tid före {time}", "error.validation.time.between": "Ange en tid mellan {min} och {max}", - "error.validation.uuid": "Please enter a valid UUID", + "error.validation.uuid": "Ange ett giltigt UUID", "error.validation.url": "Ange en giltig URL", "expand": "Expandera", "expand.all": "Expandera alla", - "field.invalid": "The field is invalid", + "field.invalid": "Fältet är ogiltigt", "field.required": "Fältet krävs", "field.blocks.changeType": "Ändra typ", "field.blocks.code.name": "Kod", @@ -277,9 +277,9 @@ "field.blocks.delete.confirm.all": "Vill du verkligen radera alla block?", "field.blocks.delete.confirm.selected": "Vill du verkligen radera de valda blocken?", "field.blocks.empty": "Inga block än", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Inga fältuppsättningar ännu", "field.blocks.fieldsets.label": "Välj en typ av block …", - "field.blocks.fieldsets.paste": "Press {{ shortcut }} to import layouts/blocks from your clipboard Only those allowed in the current field will get inserted.", + "field.blocks.fieldsets.paste": "Tryck på {{ shortcut }} för att importera layouter/block från urklipp Endast de som är tillåtna i det aktuella fältet kommer att infogas.", "field.blocks.gallery.name": "Galleri", "field.blocks.gallery.images.empty": "Inga bilder än", "field.blocks.gallery.images.label": "Bilder", @@ -292,8 +292,8 @@ "field.blocks.image.crop": "Beskär", "field.blocks.image.link": "Länk", "field.blocks.image.location": "Plats", - "field.blocks.image.location.internal": "This website", - "field.blocks.image.location.external": "External source", + "field.blocks.image.location.internal": "Denna webbplats", + "field.blocks.image.location.external": "Extern källa", "field.blocks.image.name": "Bild", "field.blocks.image.placeholder": "Välj en bild", "field.blocks.image.ratio": "Bildförhållande", @@ -318,10 +318,10 @@ "field.files.empty": "Inga filer valda än", - "field.layout.change": "Change layout", + "field.layout.change": "Ändra layout", "field.layout.delete": "Radera layout", "field.layout.delete.confirm": "Vill du verkligen radera denna layout?", - "field.layout.delete.confirm.all": "Do you really want to delete all layouts?", + "field.layout.delete.confirm.all": "Vill du verkligen ta bort alla layouter?", "field.layout.empty": "Inga rader än", "field.layout.select": "Välj en layout", @@ -335,16 +335,16 @@ "field.users.empty": "Inga användare valda än", - "fields.empty": "No fields yet", + "fields.empty": "Inga fält ännu", - "file": "File", + "file": "Fil", "file.blueprint": "Denna fil har ingen blueprint än. Du kan skapa en i /site/blueprints/files/{blueprint}.yml", "file.changeTemplate": "Ändra mall", - "file.changeTemplate.notice": "Changing the file's template will remove content for fields that don't match in type. If the new template defines certain rules, e.g. image dimensions, those will also be applied irreversibly. Use with caution.", + "file.changeTemplate.notice": "Att ändra filens mall kommer att ta bort innehåll för fält som inte matchar fältets typ. Om den nya mallen definierar vissa regler, t.ex. bilddimensioner, kommer de också att tillämpas oåterkalleligt. Använd med försiktighet.", "file.delete.confirm": "Vill du verkligen radera
        {filename}?", - "file.focus.placeholder": "Set focal point", - "file.focus.reset": "Remove focal point", - "file.focus.title": "Focus", + "file.focus.placeholder": "Ange fokuspunkt", + "file.focus.reset": "Ta bort fokuspunkt", + "file.focus.title": "Fokus", "file.sort": "Ändra position", "files": "Filer", @@ -354,7 +354,7 @@ "hide": "Göm", "hour": "Timme", - "hue": "Hue", + "hue": "Nyans", "import": "Importera", "info": "Info", "insert": "Infoga", @@ -389,16 +389,16 @@ "language.locale": "PHP locale string", "language.locale.warning": "Du använder en anpassad språkinställning. Ändra den i språkfilen i mappen /site/languages", "language.name": "Namn", - "language.secondary": "Secondary language", - "language.settings": "Language settings", + "language.secondary": "Sekundärt språk", + "language.settings": "Språkinställningar", "language.updated": "Språket har uppdaterats", - "language.variables": "Language variables", - "language.variables.empty": "No translations yet", + "language.variables": "Språkvariabler", + "language.variables.empty": "Inga översättningar ännu", - "language.variable.delete.confirm": "Do you really want to delete the variable for {key}?", - "language.variable.key": "Key", - "language.variable.notFound": "The variable could not be found", - "language.variable.value": "Value", + "language.variable.delete.confirm": "Vill du verkligen ta bort variabeln för {key}?", + "language.variable.key": "Nyckel", + "language.variable.notFound": "Variabeln kunde inte hittas", + "language.variable.value": "Värde", "languages": "Språk", "languages.default": "Standardspråk", @@ -425,10 +425,10 @@ "lock.unsaved": "Osparade ändringar", "lock.unsaved.empty": "Det finns inga fler osparade ändringar", - "lock.isLocked": "Unsaved changes by {email}", + "lock.isLocked": "Osparade ändringar av {email}", "lock.unlock": "Lås upp", - "lock.unlock.submit": "Unlock and overwrite unsaved changes by {email}", - "lock.isUnlocked": "Was unlocked by another user", + "lock.unlock.submit": "Lås upp och skriv över osparade ändringar av {email}", + "lock.isUnlocked": "Låstes upp av en annan användare", "login": "Logga in", "login.code.label.login": "Inloggningskod", @@ -448,7 +448,7 @@ "logout": "Logga ut", - "merge": "Merge", + "merge": "Slå ihop", "menu": "Meny", "meridiem": "a.m./p.m.", "mime": "Mediatyp", @@ -469,16 +469,16 @@ "months.september": "September", "more": "Mer", - "move": "Move", + "move": "Flytta", "name": "Namn", "next": "Nästa", - "night": "Night", + "night": "Natt", "no": "nej", "off": "av", "on": "på", "open": "Öppna", "open.newWindow": "Öppna i nytt fönster", - "option": "Option", + "option": "Alternativ", "options": "Alternativ", "options.none": "Inga alternativ", @@ -487,7 +487,7 @@ "orientation.portrait": "Stående", "orientation.square": "Kvadrat", - "page": "Page", + "page": "Sida", "page.blueprint": "Denna sida har ingen blueprint än. Du kan skapa en i /site/blueprints/pages/{blueprint}.yml", "page.changeSlug": "Ändra URL", "page.changeSlug.fromTitle": "Skapa utifr\u00e5n titel", @@ -495,15 +495,15 @@ "page.changeStatus.position": "Välj en ny position", "page.changeStatus.select": "Välj en ny status", "page.changeTemplate": "Ändra mall", - "page.changeTemplate.notice": "Changing the page's template will remove content for fields that don't match in type. Use with caution.", - "page.create": "Create as {status}", + "page.changeTemplate.notice": "Att ändra filens mall kommer att ta bort innehåll för fält som inte matchar fältets typ. Använd med försiktighet.", + "page.create": "Skapa som {status}", "page.delete.confirm": "Vill du verkligen radera {title}?", "page.delete.confirm.subpages": "Denna sida har undersidor.
        Alla undersidor kommer också att raderas.", "page.delete.confirm.title": "Fyll i sidans titel för att bekräfta", "page.duplicate.appendix": "Kopiera", "page.duplicate.files": "Kopiera filer", "page.duplicate.pages": "Kopiera sidor", - "page.move": "Move page", + "page.move": "Flytta sidan", "page.sort": "Ändra position", "page.status": "Status", "page.status.draft": "Utkast", @@ -524,7 +524,7 @@ "password": "L\u00f6senord", "paste": "Klistra in", "paste.after": "Klistra in efter", - "paste.success": "{count} pasted!", + "paste.success": "{count} har klistrats in!", "pixel": "Pixel", "plugin": "Tillägg", "plugins": "Tillägg", @@ -533,7 +533,7 @@ "remove": "Ta bort", "rename": "Byt namn", "replace": "Ersätt", - "replace.with": "Replace with", + "replace.with": "Ersätt med", "retry": "F\u00f6rs\u00f6k igen", "revert": "Återgå", "revert.confirm": "Vill du verkligen radera alla osparade ändringar?", @@ -553,7 +553,7 @@ "search.all": "Visa alla", "search.results.none": "Inga träffar", - "section.invalid": "The section is invalid", + "section.invalid": "Sektionen är ogiltig", "section.required": "Sektionen krävs", "security": "Säkerhet", @@ -565,8 +565,8 @@ "size": "Storlek", "slug": "URL-appendix", "sort": "Sortera", - "sort.drag": "Drag to sort …", - "split": "Split", + "sort.drag": "Dra för att sortera …", + "split": "Dela", "stats.empty": "Inga rapporter", "system.issues.content": "Mappen content verkar vara exponerad", @@ -589,13 +589,13 @@ "system.updateStatus.update": "Gratis uppdatering { version } tillgänglig", "system.updateStatus.upgrade": "Uppgradering { version } tillgänglig", - "tel": "Phone", - "tel.placeholder": "+49123456789", + "tel": "Telefon", + "tel.placeholder": "+46701234567", "template": "Mall", "title": "Titel", "today": "Idag", - "toolbar.button.clear": "Clear formatting", + "toolbar.button.clear": "Rensa formatering", "toolbar.button.code": "Kod", "toolbar.button.bold": "Fet", "toolbar.button.email": "E-post", @@ -613,8 +613,8 @@ "toolbar.button.link": "L\u00e4nk", "toolbar.button.paragraph": "Stycke", "toolbar.button.strike": "Genomstruken", - "toolbar.button.sub": "Subscript", - "toolbar.button.sup": "Superscript", + "toolbar.button.sub": "Nedsänkt", + "toolbar.button.sup": "Upphöjd", "toolbar.button.ol": "Sorterad lista", "toolbar.button.underline": "Understruken", "toolbar.button.ul": "Punktlista", diff --git a/i18n/translations/tr.json b/i18n/translations/tr.json index 388c635db9..6fed476f82 100644 --- a/i18n/translations/tr.json +++ b/i18n/translations/tr.json @@ -4,24 +4,24 @@ "account.delete.confirm": "Hesabınızı gerçekten silmek istiyor musunuz? Oturumunuz hemen sonlandırılacaktır. Hesabınız daha sonra geri alınamaz.", "add": "Ekle", - "alpha": "Alpha", + "alpha": "Alfa", "author": "Yazar", "avatar": "Profil resmi", "back": "Geri", "cancel": "\u0130ptal", "change": "De\u011fi\u015ftir", "close": "Kapat", - "changes": "Changes", + "changes": "Değişiklikler", "confirm": "Tamam", "collapse": "Daralt", "collapse.all": "Tümünü daralt", - "color": "Color", - "coordinates": "Coordinates", + "color": "Renk", + "coordinates": "Koordinatlar", "copy": "Kopyala", "copy.all": "Tümünü kopyala", - "copy.success": "{count} copied!", + "copy.success": "{count} kopyalandı!", "create": "Oluştur", - "custom": "Custom", + "custom": "Özel", "date": "Tarih", "date.select": "Bir tarih seçiniz", @@ -40,17 +40,17 @@ "delete": "Sil", "delete.all": "Tümünü sil", - "dialog.fields.empty": "This dialog has no fields", + "dialog.fields.empty": "Bu iletişim kutusunda alan yok", "dialog.files.empty": "Seçilecek dosya yok", "dialog.pages.empty": "Seçilecek sayfa yok", - "dialog.text.empty": "This dialog does not define any text", + "dialog.text.empty": "Bu iletişim kutusu herhangi bir metin tanımlamaz", "dialog.users.empty": "Seçilecek kullanıcı yok", "dimensions": "Boyutlar", "disabled": "Devredışı", "discard": "Vazge\u00e7", - "drawer.fields.empty": "This drawer has no fields", + "drawer.fields.empty": "Bu çekmecede alan yok", "download": "İndir", "duplicate": "Kopyala", @@ -60,13 +60,13 @@ "email": "E-Posta", "email.placeholder": "eposta@ornek.com", - "enter": "Enter", + "enter": "Giriş", "entries": "Girdiler", "entry": "Girdi", "environment": "Ortam", - "error": "Error", + "error": "Hata", "error.access.code": "Geçersiz kod", "error.access.login": "Geçersiz giriş", "error.access.panel": "Panel'e erişim izniniz yok", @@ -94,8 +94,8 @@ "error.file.changeName.empty": "İsim boş olmamalıdır", "error.file.changeName.permission": "\"{filename}\" adını değiştiremezsiniz", - "error.file.changeTemplate.invalid": "The template for the file \"{id}\" cannot be changed to \"{template}\" (valid: \"{blueprints}\")", - "error.file.changeTemplate.permission": "You are not allowed to change the template for the file \"{id}\"", + "error.file.changeTemplate.invalid": "\"{id}\" dosyası için şablon \"{template}\" olarak değiştirilemez (geçerli: \"{blueprints}\")", + "error.file.changeTemplate.permission": "\"{id}\" dosyası için şablonu değiştirmenize izin verilmiyor", "error.file.duplicate": "\"{filename}\" isimli bir dosya zaten var", "error.file.extension.forbidden": "\"{extension}\" dosya uzantısına izin verilmiyor", @@ -111,7 +111,7 @@ "error.file.minheight": "Resmin yüksekliği en az {height} piksel olmalıdır", "error.file.minsize": "Dosya çok küçük", "error.file.minwidth": "Resmin genişliği en az {width} piksel olmalıdır", - "error.file.name.unique": "The filename must be unique", + "error.file.name.unique": "Dosya adı benzersiz olmalıdır", "error.file.name.missing": "Dosya adı boş bırakılamaz", "error.file.notFound": "\"{filename}\" dosyası bulunamadı", "error.file.orientation": "Resmin oryantasyonu \"{orientation}\" olmalıdır", @@ -139,7 +139,7 @@ "error.offline": "Panel şu anda çevrimdışı", "error.page.changeSlug.permission": "\"{slug}\" uzantısına sahip bu sayfanın adresini değiştirilemez", - "error.page.changeSlug.reserved": "The path of top-level pages must not start with \"{path}\"", + "error.page.changeSlug.reserved": "Üst düzey sayfaların yolu \"{path}\" ile başlamamalıdır", "error.page.changeStatus.incomplete": "Sayfada hatalar var ve yayınlanamadı", "error.page.changeStatus.permission": "Bu sayfanın durumu değiştirilemez", "error.page.changeStatus.toDraft.invalid": "\"{slug}\" sayfası bir taslak haline dönüştürülemiyor", @@ -155,12 +155,12 @@ "error.page.draft.duplicate": "\"{slug}\" adres eki olan bir sayfa taslağı zaten mevcut", "error.page.duplicate": "\"{slug}\" adres eki içeren bir sayfa zaten mevcut", "error.page.duplicate.permission": "\"{slug}\" öğesini çoğaltmanıza izin verilmiyor", - "error.page.move.ancestor": "The page cannot be moved into itself", - "error.page.move.directory": "The page directory cannot be moved", - "error.page.move.duplicate": "A sub page with the URL appendix \"{slug}\" already exists", - "error.page.move.notFound": "The moved page could not be found", - "error.page.move.permission": "You are not allowed to move \"{slug}\"", - "error.page.move.template": "The \"{template}\" template is not accepted as a subpage of \"{parent}\"", + "error.page.move.ancestor": "Sayfa kendi içine taşınamaz", + "error.page.move.directory": "Sayfa dizini taşınamaz", + "error.page.move.duplicate": "\"{slug}\" URL ekine sahip bir alt sayfa zaten mevcut", + "error.page.move.notFound": "Taşınan sayfa bulunamadı", + "error.page.move.permission": "\"{slug}\" öğesini taşımanıza izin verilmiyor", + "error.page.move.template": "\"{template}\" şablonu \"{parent}\" alt sayfası olarak kabul edilmiyor", "error.page.notFound": "\"{slug}\" uzantısındaki sayfa bulunamadı", "error.page.num.invalid": "Lütfen geçerli bir sıralama numarası girin. Sayılar negatif olmamalıdır.", "error.page.slug.invalid": "Lütfen geçerli bir URL eki girin", @@ -187,7 +187,7 @@ "error.site.changeTitle.permission": "Sitenin başlığını değiştiremezsin", "error.site.update.permission": "Siteyi güncellemenize izin verilmiyor", - "error.structure.validation": "There's an error on the \"{field}\" field in row {index}", + "error.structure.validation": "{index} satırındaki \"{field}\" alanında bir hata var", "error.template.default.notFound": "Varsayılan şablon yok", @@ -221,10 +221,10 @@ "error.validation.accepted": "Lütfen onaylayın", "error.validation.alpha": "Lütfen sadece a-z arasındaki karakterleri girin", "error.validation.alphanum": "Lütfen sadece a-z veya 0-9 arasındaki rakamları girin", - "error.validation.anchor": "Please enter a correct link anchor", + "error.validation.anchor": "Lütfen doğru bir bağlantı çapası girin", "error.validation.between": "Lütfen \"{min}\" ile \"{max}\" arasında bir değer girin", "error.validation.boolean": "Lütfen onaylayın veya reddedin", - "error.validation.color": "Please enter a valid color in the {format} format", + "error.validation.color": "Lütfen {format} biçiminde geçerli bir renk girin", "error.validation.contains": "Lütfen \"{needle}\" içeren bir değer girin", "error.validation.date": "Lütfen geçerli bir tarih girin", "error.validation.date.after": "Lütfen {date} tarihinden sonra bir tarih girin", @@ -239,7 +239,7 @@ "error.validation.integer": "Lütfen geçerli bir tamsayı girin", "error.validation.ip": "Lütfen geçerli bir ip adresi girin", "error.validation.less": "Lütfen {max} 'dan daha düşük bir değer girin", - "error.validation.linkType": "The link type is not allowed", + "error.validation.linkType": "Bağlantı türüne izin verilmiyor", "error.validation.match": "Değer beklenen modelle eşleşmiyor", "error.validation.max": "Lütfen {max} 'a eşit veya daha küçük bir değer girin", "error.validation.maxlength": "Lütfen daha kısa bir değer girin. (maks. {max} karakter)", @@ -256,18 +256,18 @@ "error.validation.same": "Lütfen \"{other}\" yazınız", "error.validation.size": "Değerin boyutu \"{size}\" olmalıdır", "error.validation.startswith": "Değer \"{start}\" ile başlamalıdır", - "error.validation.tel": "Please enter an unformatted phone number", + "error.validation.tel": "Lütfen biçimlendirilmemiş bir telefon numarası girin", "error.validation.time": "Lütfen geçerli bir zaman girin", "error.validation.time.after": "Lütfen {time} sonrası bir tarih girin", "error.validation.time.before": "Lütfen {time} öncesi bir tarih girin", "error.validation.time.between": "Lütfen {min} ile {max} arasında bir tarih girin", - "error.validation.uuid": "Please enter a valid UUID", + "error.validation.uuid": "Lütfen geçerli bir UUID girin", "error.validation.url": "Lütfen geçerli bir adres girin", "expand": "Genişlet", "expand.all": "Tümünü genişlet", - "field.invalid": "The field is invalid", + "field.invalid": "Bu alan geçersizdir", "field.required": "Alan gereklidir", "field.blocks.changeType": "Türü değiştir", "field.blocks.code.name": "Kod", @@ -277,9 +277,9 @@ "field.blocks.delete.confirm.all": "Tüm blokları gerçekten silmek istiyor musunuz?", "field.blocks.delete.confirm.selected": "Seçilen blokları gerçekten silmek istiyor musunuz?", "field.blocks.empty": "Henüz blok yok", - "field.blocks.fieldsets.empty": "No fieldsets yet", + "field.blocks.fieldsets.empty": "Henüz alan kümesi yok", "field.blocks.fieldsets.label": "Lütfen bir blok türü seçiniz …", - "field.blocks.fieldsets.paste": "Press {{ shortcut }} to import layouts/blocks from your clipboard Only those allowed in the current field will get inserted.", + "field.blocks.fieldsets.paste": "Panonuzdan düzenleri/blokları içe aktarmak için {{ shortcut }} tuşuna basın Yalnızca geçerli alanda izin verilenler eklenecektir.", "field.blocks.gallery.name": "Galeri", "field.blocks.gallery.images.empty": "Henüz görsel yok", "field.blocks.gallery.images.label": "Görseller", @@ -292,8 +292,8 @@ "field.blocks.image.crop": "Kırp", "field.blocks.image.link": "Bağlantı", "field.blocks.image.location": "Lokasyon", - "field.blocks.image.location.internal": "This website", - "field.blocks.image.location.external": "External source", + "field.blocks.image.location.internal": "Bu website", + "field.blocks.image.location.external": "Dış kaynak", "field.blocks.image.name": "Görsel", "field.blocks.image.placeholder": "Bir görsel seçin", "field.blocks.image.ratio": "Oran", @@ -318,10 +318,10 @@ "field.files.empty": "Henüz dosya seçilmedi", - "field.layout.change": "Change layout", + "field.layout.change": "Düzeni değiştir", "field.layout.delete": "Düzeni sil", "field.layout.delete.confirm": "Bu düzeni gerçekten silmek istiyor musunuz?", - "field.layout.delete.confirm.all": "Do you really want to delete all layouts?", + "field.layout.delete.confirm.all": "Gerçekten tüm düzenleri silmek istiyor musunuz?", "field.layout.empty": "Henüz satır yok", "field.layout.select": "Bir düzen seçin", @@ -335,26 +335,26 @@ "field.users.empty": "Henüz kullanıcı seçilmedi", - "fields.empty": "No fields yet", + "fields.empty": "Henüz alan yok", "file": "Dosya", "file.blueprint": "Bu dosyanın henüz bir planı yok. Kurulumu /site/blueprints/files/{blueprint}.yml dosyasında tanımlayabilirsiniz.", "file.changeTemplate": "Şablonu değiştir", - "file.changeTemplate.notice": "Changing the file's template will remove content for fields that don't match in type. If the new template defines certain rules, e.g. image dimensions, those will also be applied irreversibly. Use with caution.", + "file.changeTemplate.notice": "Dosyanın şablonunun değiştirilmesi, tür olarak eşleşmeyen alanların içeriğini kaldıracaktır. Yeni şablon, görüntü boyutları gibi belirli kuralları tanımlıyorsa, bunlar da geri döndürülemez şekilde uygulanacaktır. Dikkatli kullanın.", "file.delete.confirm": "{filename} dosyasını silmek istediğinizden emin misiniz?", - "file.focus.placeholder": "Set focal point", - "file.focus.reset": "Remove focal point", - "file.focus.title": "Focus", + "file.focus.placeholder": "Odak noktasını belirleyin", + "file.focus.reset": "Odak noktasını kaldırın", + "file.focus.title": "Odak", "file.sort": "Pozisyon değiştir", "files": "Dosyalar", "files.empty": "Henüz dosya yok", - "filter": "Filter", + "filter": "Filtre", "hide": "Gizle", "hour": "Saat", - "hue": "Hue", + "hue": "Renk tonu", "import": "İçe aktar", "info": "Bilgi", "insert": "Ekle", @@ -389,16 +389,16 @@ "language.locale": "PHP yerel dizesi", "language.locale.warning": "Özel bir yerel ayar kullanıyorsunuz. Lütfen /site/languages konumundaki dil dosyasından değiştirin.", "language.name": "İsim", - "language.secondary": "Secondary language", - "language.settings": "Language settings", + "language.secondary": "İkincil dil", + "language.settings": "Dil ayarları", "language.updated": "Dil güncellendi", - "language.variables": "Language variables", - "language.variables.empty": "No translations yet", + "language.variables": "Dil değişkenleri", + "language.variables.empty": "Henüz çeviri yok", - "language.variable.delete.confirm": "Do you really want to delete the variable for {key}?", - "language.variable.key": "Key", - "language.variable.notFound": "The variable could not be found", - "language.variable.value": "Value", + "language.variable.delete.confirm": "Gerçekten {key} değişkenini silmek istiyor musunuz?", + "language.variable.key": "Anahtar", + "language.variable.notFound": "Değişken bulunamadı", + "language.variable.value": "Değer", "languages": "Diller", "languages.default": "Varsayılan dil", @@ -425,10 +425,10 @@ "lock.unsaved": "Kaydedilmemiş değişiklikler", "lock.unsaved.empty": "Daha fazla kaydedilmemiş değişiklik yok", - "lock.isLocked": "Unsaved changes by {email}", + "lock.isLocked": "{email} tarafından yapılan kaydedilmemiş değişiklikler", "lock.unlock": "Kilidi Aç", - "lock.unlock.submit": "Unlock and overwrite unsaved changes by {email}", - "lock.isUnlocked": "Was unlocked by another user", + "lock.unlock.submit": "Kaydedilmemiş değişikliklerin kilidini {email} ile açın ve üzerine yazın", + "lock.isUnlocked": "Başka bir kullanıcı tarafından kilidi açıldı", "login": "Giriş", "login.code.label.login": "Giriş kodu", @@ -448,7 +448,7 @@ "logout": "Oturumu kapat", - "merge": "Merge", + "merge": "Birleştir", "menu": "Menü", "meridiem": "AM/PM", "mime": "Medya Türü", @@ -469,16 +469,16 @@ "months.september": "Eyl\u00fcl", "more": "Daha Fazla", - "move": "Move", + "move": "Taşı", "name": "İsim", "next": "Sonraki", - "night": "Night", + "night": "Gece", "no": "hayır", "off": "kapalı", "on": "açık", "open": "Önizleme", "open.newWindow": "Yeni pencerede aç", - "option": "Option", + "option": "Seçenek", "options": "Seçenekler", "options.none": "Seçenek yok", @@ -487,7 +487,7 @@ "orientation.portrait": "Dikey", "orientation.square": "Kare", - "page": "Page", + "page": "Sayfa", "page.blueprint": "Bu dosyanın henüz bir planı yok. Kurulumu /site/blueprints/pages/{blueprint}.yml dosyasında tanımlayabilirsiniz.", "page.changeSlug": "Web Adresini Değiştir", "page.changeSlug.fromTitle": "Ba\u015fl\u0131ktan olu\u015ftur", @@ -495,15 +495,15 @@ "page.changeStatus.position": "Lütfen bir pozisyon seçin", "page.changeStatus.select": "Yeni bir durum seçin", "page.changeTemplate": "Şablonu değiştir", - "page.changeTemplate.notice": "Changing the page's template will remove content for fields that don't match in type. Use with caution.", - "page.create": "Create as {status}", + "page.changeTemplate.notice": "Sayfanın şablonunu değiştirmek, tür olarak eşleşmeyen alanların içeriğini kaldıracaktır. Dikkatli kullanın.", + "page.create": "{status} olarak oluştur", "page.delete.confirm": "{title} sayfasını silmek istediğinizden emin misiniz?", "page.delete.confirm.subpages": "Bu sayfada alt sayfalar var.
        Tüm alt sayfalar da silinecek.", "page.delete.confirm.title": "Onaylamak için sayfa başlığını girin", "page.duplicate.appendix": "Kopya", "page.duplicate.files": "Dosyaları kopyala", "page.duplicate.pages": "Sayfaları kopyala", - "page.move": "Move page", + "page.move": "Sayfayı taşı", "page.sort": "Pozisyon değiştir", "page.status": "Durum", "page.status.draft": "Taslak", @@ -524,7 +524,7 @@ "password": "\u015eifre", "paste": "Yapıştır", "paste.after": "Sonrasına yapıştır", - "paste.success": "{count} pasted!", + "paste.success": "{count} yapıştırıldı!", "pixel": "Piksel", "plugin": "Eklenti", "plugins": "Eklentiler", @@ -533,7 +533,7 @@ "remove": "Kaldır", "rename": "Yeniden Adlandır", "replace": "De\u011fi\u015ftir", - "replace.with": "Replace with", + "replace.with": "Değiştir", "retry": "Tekrar Dene", "revert": "Vazge\u00e7", "revert.confirm": "Gerçekten kaydedilmemiş tüm değişiklikleri silmek istiyor musunuz?", @@ -553,7 +553,7 @@ "search.all": "Tümünü göster", "search.results.none": "Sonuç yok", - "section.invalid": "The section is invalid", + "section.invalid": "Bu bölüm geçersizdir", "section.required": "Bölüm gereklidir", "security": "Güvenlik", @@ -565,8 +565,8 @@ "size": "Boyut", "slug": "Web Adres Uzantısı", "sort": "Sırala", - "sort.drag": "Drag to sort …", - "split": "Split", + "sort.drag": "Sıralamak için sürükleyin …", + "split": "Ayır", "stats.empty": "Rapor yok", "system.issues.content": "İçerik klasörü açığa çıkmış görünüyor", @@ -589,13 +589,13 @@ "system.updateStatus.update": "Ücretsiz güncelleme { version } mevcut", "system.updateStatus.upgrade": "{ version } yükseltme mevcut", - "tel": "Phone", + "tel": "Telefon", "tel.placeholder": "+49123456789", "template": "\u015eablon", "title": "Başlık", "today": "Bugün", - "toolbar.button.clear": "Clear formatting", + "toolbar.button.clear": "Biçimlendirmeyi temizle", "toolbar.button.code": "Kod", "toolbar.button.bold": "Kalın Yazı", "toolbar.button.email": "E-Posta", @@ -613,8 +613,8 @@ "toolbar.button.link": "Ba\u011flant\u0131", "toolbar.button.paragraph": "Paragraf", "toolbar.button.strike": "Üstü çizili", - "toolbar.button.sub": "Subscript", - "toolbar.button.sup": "Superscript", + "toolbar.button.sub": "Alt simge", + "toolbar.button.sup": "Üst simge", "toolbar.button.ol": "Sıralı liste", "toolbar.button.underline": "Altı çizili", "toolbar.button.ul": "Madde listesi", From 508bb1fc91245e135469d28b821e945ed33cb874 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 2 Nov 2023 13:51:08 +0100 Subject: [PATCH 3/4] Update composer dependencies --- composer.json | 4 +- composer.lock | 2 +- vendor/composer/ClassLoader.php | 96 ++++++++++++++------------- vendor/composer/InstalledVersions.php | 17 ++--- vendor/composer/autoload_classmap.php | 3 + vendor/composer/autoload_static.php | 3 + vendor/composer/installed.php | 8 +-- 7 files changed, 69 insertions(+), 64 deletions(-) diff --git a/composer.json b/composer.json index c4f98a604a..22cac7ee64 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "The Kirby core", "license": "proprietary", "type": "kirby-cms", - "version": "4.0.0-beta.2", + "version": "4.0.0-beta.3", "keywords": [ "kirby", "cms", @@ -46,7 +46,7 @@ "phpmailer/phpmailer": "6.8.1", "symfony/polyfill-intl-idn": "1.28.0", "symfony/polyfill-mbstring": "1.28.0", - "symfony/yaml": "6.3.3" + "symfony/yaml": "6.3.7" }, "replace": { "symfony/polyfill-php72": "*" diff --git a/composer.lock b/composer.lock index 488afed30a..ad7624bf92 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cc0313d735fb9b6fd6fd78fa12dca801", + "content-hash": "2a7a03197b9625e82cec7a7d3a8f2059", "packages": [ { "name": "christian-riesen/base32", diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index 7824d8f7ea..a72151c77c 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -45,34 +45,35 @@ class ClassLoader /** @var \Closure(string):void */ private static $includeFile; - /** @var string|null */ + /** @var ?string */ private $vendorDir; // PSR-4 /** - * @var array> + * @var array[] + * @psalm-var array> */ private $prefixLengthsPsr4 = array(); /** - * @var array> + * @var array[] + * @psalm-var array> */ private $prefixDirsPsr4 = array(); /** - * @var list + * @var array[] + * @psalm-var array */ private $fallbackDirsPsr4 = array(); // PSR-0 /** - * List of PSR-0 prefixes - * - * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) - * - * @var array>> + * @var array[] + * @psalm-var array> */ private $prefixesPsr0 = array(); /** - * @var list + * @var array[] + * @psalm-var array */ private $fallbackDirsPsr0 = array(); @@ -80,7 +81,8 @@ class ClassLoader private $useIncludePath = false; /** - * @var array + * @var string[] + * @psalm-var array */ private $classMap = array(); @@ -88,20 +90,21 @@ class ClassLoader private $classMapAuthoritative = false; /** - * @var array + * @var bool[] + * @psalm-var array */ private $missingClasses = array(); - /** @var string|null */ + /** @var ?string */ private $apcuPrefix; /** - * @var array + * @var self[] */ private static $registeredLoaders = array(); /** - * @param string|null $vendorDir + * @param ?string $vendorDir */ public function __construct($vendorDir = null) { @@ -110,7 +113,7 @@ public function __construct($vendorDir = null) } /** - * @return array> + * @return string[] */ public function getPrefixes() { @@ -122,7 +125,8 @@ public function getPrefixes() } /** - * @return array> + * @return array[] + * @psalm-return array> */ public function getPrefixesPsr4() { @@ -130,7 +134,8 @@ public function getPrefixesPsr4() } /** - * @return list + * @return array[] + * @psalm-return array */ public function getFallbackDirs() { @@ -138,7 +143,8 @@ public function getFallbackDirs() } /** - * @return list + * @return array[] + * @psalm-return array */ public function getFallbackDirsPsr4() { @@ -146,7 +152,8 @@ public function getFallbackDirsPsr4() } /** - * @return array Array of classname => path + * @return string[] Array of classname => path + * @psalm-return array */ public function getClassMap() { @@ -154,7 +161,8 @@ public function getClassMap() } /** - * @param array $classMap Class to filename map + * @param string[] $classMap Class to filename map + * @psalm-param array $classMap * * @return void */ @@ -171,25 +179,24 @@ public function addClassMap(array $classMap) * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories * * @return void */ public function add($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, - $paths + (array) $paths ); } @@ -198,19 +205,19 @@ public function add($prefix, $paths, $prepend = false) $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = $paths; + $this->prefixesPsr0[$first][$prefix] = (array) $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], - $paths + (array) $paths ); } } @@ -219,9 +226,9 @@ public function add($prefix, $paths, $prepend = false) * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException * @@ -229,18 +236,17 @@ public function add($prefix, $paths, $prepend = false) */ public function addPsr4($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, - $paths + (array) $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { @@ -250,18 +256,18 @@ public function addPsr4($prefix, $paths, $prepend = false) throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = $paths; + $this->prefixDirsPsr4[$prefix] = (array) $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], - $paths + (array) $paths ); } } @@ -270,8 +276,8 @@ public function addPsr4($prefix, $paths, $prepend = false) * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 base directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories * * @return void */ @@ -288,8 +294,8 @@ public function set($prefix, $paths) * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException * @@ -475,9 +481,9 @@ public function findFile($class) } /** - * Returns the currently registered loaders keyed by their corresponding vendor directories. + * Returns the currently registered loaders indexed by their corresponding vendor directories. * - * @return array + * @return self[] */ public static function getRegisteredLoaders() { diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index 51e734a774..c6b54af7ba 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -98,7 +98,7 @@ public static function isInstalled($packageName, $includeDevRequirements = true) { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); } } @@ -119,7 +119,7 @@ public static function isInstalled($packageName, $includeDevRequirements = true) */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints((string) $constraint); + $constraint = $parser->parseConstraints($constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -328,9 +328,7 @@ private static function getInstalled() if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -342,17 +340,12 @@ private static function getInstalled() // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require __DIR__ . '/installed.php'; - self::$installed = $required; + self::$installed = require __DIR__ . '/installed.php'; } else { self::$installed = array(); } } - - if (self::$installed !== array()) { - $installed[] = self::$installed; - } + $installed[] = self::$installed; return $installed; } diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 8cfb6680c8..42bfdc5b2f 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -115,6 +115,7 @@ 'Kirby\\Cms\\Permissions' => $baseDir . '/src/Cms/Permissions.php', 'Kirby\\Cms\\Picker' => $baseDir . '/src/Cms/Picker.php', 'Kirby\\Cms\\Plugin' => $baseDir . '/src/Cms/Plugin.php', + 'Kirby\\Cms\\PluginAsset' => $baseDir . '/src/Cms/PluginAsset.php', 'Kirby\\Cms\\PluginAssets' => $baseDir . '/src/Cms/PluginAssets.php', 'Kirby\\Cms\\R' => $baseDir . '/src/Cms/R.php', 'Kirby\\Cms\\Responder' => $baseDir . '/src/Cms/Responder.php', @@ -249,6 +250,7 @@ 'Kirby\\Panel\\Home' => $baseDir . '/src/Panel/Home.php', 'Kirby\\Panel\\Json' => $baseDir . '/src/Panel/Json.php', 'Kirby\\Panel\\Lab\\Category' => $baseDir . '/src/Panel/Lab/Category.php', + 'Kirby\\Panel\\Lab\\Docs' => $baseDir . '/src/Panel/Lab/Docs.php', 'Kirby\\Panel\\Lab\\Example' => $baseDir . '/src/Panel/Lab/Example.php', 'Kirby\\Panel\\Lab\\Snippet' => $baseDir . '/src/Panel/Lab/Snippet.php', 'Kirby\\Panel\\Lab\\Template' => $baseDir . '/src/Panel/Lab/Template.php', @@ -318,6 +320,7 @@ 'Kirby\\Toolkit\\Properties' => $baseDir . '/src/Toolkit/Properties.php', 'Kirby\\Toolkit\\Silo' => $baseDir . '/src/Toolkit/Silo.php', 'Kirby\\Toolkit\\Str' => $baseDir . '/src/Toolkit/Str.php', + 'Kirby\\Toolkit\\SymmetricCrypto' => $baseDir . '/src/Toolkit/SymmetricCrypto.php', 'Kirby\\Toolkit\\Totp' => $baseDir . '/src/Toolkit/Totp.php', 'Kirby\\Toolkit\\Tpl' => $baseDir . '/src/Toolkit/Tpl.php', 'Kirby\\Toolkit\\V' => $baseDir . '/src/Toolkit/V.php', diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index e1fd4782e3..2479e11d6f 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -236,6 +236,7 @@ class ComposerStaticInita8011b477bb239488e5d139cdeb7b31e 'Kirby\\Cms\\Permissions' => __DIR__ . '/../..' . '/src/Cms/Permissions.php', 'Kirby\\Cms\\Picker' => __DIR__ . '/../..' . '/src/Cms/Picker.php', 'Kirby\\Cms\\Plugin' => __DIR__ . '/../..' . '/src/Cms/Plugin.php', + 'Kirby\\Cms\\PluginAsset' => __DIR__ . '/../..' . '/src/Cms/PluginAsset.php', 'Kirby\\Cms\\PluginAssets' => __DIR__ . '/../..' . '/src/Cms/PluginAssets.php', 'Kirby\\Cms\\R' => __DIR__ . '/../..' . '/src/Cms/R.php', 'Kirby\\Cms\\Responder' => __DIR__ . '/../..' . '/src/Cms/Responder.php', @@ -370,6 +371,7 @@ class ComposerStaticInita8011b477bb239488e5d139cdeb7b31e 'Kirby\\Panel\\Home' => __DIR__ . '/../..' . '/src/Panel/Home.php', 'Kirby\\Panel\\Json' => __DIR__ . '/../..' . '/src/Panel/Json.php', 'Kirby\\Panel\\Lab\\Category' => __DIR__ . '/../..' . '/src/Panel/Lab/Category.php', + 'Kirby\\Panel\\Lab\\Docs' => __DIR__ . '/../..' . '/src/Panel/Lab/Docs.php', 'Kirby\\Panel\\Lab\\Example' => __DIR__ . '/../..' . '/src/Panel/Lab/Example.php', 'Kirby\\Panel\\Lab\\Snippet' => __DIR__ . '/../..' . '/src/Panel/Lab/Snippet.php', 'Kirby\\Panel\\Lab\\Template' => __DIR__ . '/../..' . '/src/Panel/Lab/Template.php', @@ -439,6 +441,7 @@ class ComposerStaticInita8011b477bb239488e5d139cdeb7b31e 'Kirby\\Toolkit\\Properties' => __DIR__ . '/../..' . '/src/Toolkit/Properties.php', 'Kirby\\Toolkit\\Silo' => __DIR__ . '/../..' . '/src/Toolkit/Silo.php', 'Kirby\\Toolkit\\Str' => __DIR__ . '/../..' . '/src/Toolkit/Str.php', + 'Kirby\\Toolkit\\SymmetricCrypto' => __DIR__ . '/../..' . '/src/Toolkit/SymmetricCrypto.php', 'Kirby\\Toolkit\\Totp' => __DIR__ . '/../..' . '/src/Toolkit/Totp.php', 'Kirby\\Toolkit\\Tpl' => __DIR__ . '/../..' . '/src/Toolkit/Tpl.php', 'Kirby\\Toolkit\\V' => __DIR__ . '/../..' . '/src/Toolkit/V.php', diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index c98221ff29..3458cc56d7 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,8 +1,8 @@ array( 'name' => 'getkirby/cms', - 'pretty_version' => '4.0.0-beta.2', - 'version' => '4.0.0.0-beta2', + 'pretty_version' => '4.0.0-beta.3', + 'version' => '4.0.0.0-beta3', 'reference' => NULL, 'type' => 'kirby-cms', 'install_path' => __DIR__ . '/../../', @@ -47,8 +47,8 @@ 'dev_requirement' => false, ), 'getkirby/cms' => array( - 'pretty_version' => '4.0.0-beta.2', - 'version' => '4.0.0.0-beta2', + 'pretty_version' => '4.0.0-beta.3', + 'version' => '4.0.0.0-beta3', 'reference' => NULL, 'type' => 'kirby-cms', 'install_path' => __DIR__ . '/../../', From 46286a6d43ec5e0917ebb2ddf8f73e460291fd37 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 2 Nov 2023 13:53:48 +0100 Subject: [PATCH 4/4] Fix composer dependency update --- composer.lock | 12 ++++++------ vendor/bin/yaml-lint | 5 +++-- vendor/bin/yaml-lint.bat | 5 ----- vendor/composer/installed.json | 14 +++++++------- vendor/composer/installed.php | 6 +++--- vendor/symfony/yaml/Inline.php | 4 ++++ 6 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 vendor/bin/yaml-lint.bat diff --git a/composer.lock b/composer.lock index ad7624bf92..759b3a5da5 100644 --- a/composer.lock +++ b/composer.lock @@ -1029,16 +1029,16 @@ }, { "name": "symfony/yaml", - "version": "v6.3.3", + "version": "v6.3.7", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add" + "reference": "9758b6c69d179936435d0ffb577c3708d57e38a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e23292e8c07c85b971b44c1c4b87af52133e2add", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add", + "url": "https://api.github.com/repos/symfony/yaml/zipball/9758b6c69d179936435d0ffb577c3708d57e38a8", + "reference": "9758b6c69d179936435d0ffb577c3708d57e38a8", "shasum": "" }, "require": { @@ -1081,7 +1081,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.3.3" + "source": "https://github.com/symfony/yaml/tree/v6.3.7" }, "funding": [ { @@ -1097,7 +1097,7 @@ "type": "tidelift" } ], - "time": "2023-07-31T07:08:24+00:00" + "time": "2023-10-28T23:31:00+00:00" } ], "packages-dev": [], diff --git a/vendor/bin/yaml-lint b/vendor/bin/yaml-lint index 388092f5b4..b5cdff984a 100755 --- a/vendor/bin/yaml-lint +++ b/vendor/bin/yaml-lint @@ -112,8 +112,9 @@ if (PHP_VERSION_ID < 80000) { (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) ) { - return include("phpvfscomposer://" . __DIR__ . '/..'.'/symfony/yaml/Resources/bin/yaml-lint'); + include("phpvfscomposer://" . __DIR__ . '/..'.'/symfony/yaml/Resources/bin/yaml-lint'); + exit(0); } } -return include __DIR__ . '/..'.'/symfony/yaml/Resources/bin/yaml-lint'; +include __DIR__ . '/..'.'/symfony/yaml/Resources/bin/yaml-lint'; diff --git a/vendor/bin/yaml-lint.bat b/vendor/bin/yaml-lint.bat deleted file mode 100644 index fbce06e043..0000000000 --- a/vendor/bin/yaml-lint.bat +++ /dev/null @@ -1,5 +0,0 @@ -@ECHO OFF -setlocal DISABLEDELAYEDEXPANSION -SET BIN_TARGET=%~dp0/yaml-lint -SET COMPOSER_RUNTIME_BIN_DIR=%~dp0 -php "%BIN_TARGET%" %* diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index c35e3b921d..bec6c1aada 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1068,17 +1068,17 @@ }, { "name": "symfony/yaml", - "version": "v6.3.3", - "version_normalized": "6.3.3.0", + "version": "v6.3.7", + "version_normalized": "6.3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add" + "reference": "9758b6c69d179936435d0ffb577c3708d57e38a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e23292e8c07c85b971b44c1c4b87af52133e2add", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add", + "url": "https://api.github.com/repos/symfony/yaml/zipball/9758b6c69d179936435d0ffb577c3708d57e38a8", + "reference": "9758b6c69d179936435d0ffb577c3708d57e38a8", "shasum": "" }, "require": { @@ -1092,7 +1092,7 @@ "require-dev": { "symfony/console": "^5.4|^6.0" }, - "time": "2023-07-31T07:08:24+00:00", + "time": "2023-10-28T23:31:00+00:00", "bin": [ "Resources/bin/yaml-lint" ], @@ -1123,7 +1123,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.3.3" + "source": "https://github.com/symfony/yaml/tree/v6.3.7" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 3458cc56d7..b3a98ed23e 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -167,9 +167,9 @@ ), ), 'symfony/yaml' => array( - 'pretty_version' => 'v6.3.3', - 'version' => '6.3.3.0', - 'reference' => 'e23292e8c07c85b971b44c1c4b87af52133e2add', + 'pretty_version' => 'v6.3.7', + 'version' => '6.3.7.0', + 'reference' => '9758b6c69d179936435d0ffb577c3708d57e38a8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/yaml', 'aliases' => array(), diff --git a/vendor/symfony/yaml/Inline.php b/vendor/symfony/yaml/Inline.php index c2a93bab6c..1bd2fe0c7a 100644 --- a/vendor/symfony/yaml/Inline.php +++ b/vendor/symfony/yaml/Inline.php @@ -57,6 +57,10 @@ public static function initialize(int $flags, int $parsedLineNumber = null, stri */ public static function parse(string $value = null, int $flags = 0, array &$references = []): mixed { + if (null === $value) { + return ''; + } + self::initialize($flags); $value = trim($value);