From b633967b8696a236d94403c35888af028c9f1a3f Mon Sep 17 00:00:00 2001 From: John Puddephatt Date: Sat, 31 Aug 2024 11:04:35 +0100 Subject: [PATCH] build --- auth.json | 8 ++++++++ dist/js/field.js | 2 +- dist/js/field.js.LICENSE.txt | 2 +- package.json | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 auth.json diff --git a/auth.json b/auth.json new file mode 100644 index 00000000..cafe621b --- /dev/null +++ b/auth.json @@ -0,0 +1,8 @@ +{ + "http-basic": { + "nova.laravel.com": { + "username": "john@letsdance.agency", + "password": "UFatuHRAicf5Wi8EGJHxBA1FoweIFvZNs2S0QFeLgb7M4RR2Dl" + } + } +} diff --git a/dist/js/field.js b/dist/js/field.js index b16a06bb..a93aabb7 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1,2 +1,2 @@ /*! For license information please see field.js.LICENSE.txt */ -(()=>{var e,t={5757:(e,t,n)=>{Nova.booting((function(e){e.component("detail-nova-flexible-content",n(190).Z),e.component("detail-nova-flexible-content-group",n(696).Z),e.component("form-nova-flexible-content",n(9329).Z),e.component("form-nova-flexible-content-group",n(3790).Z),e.component("form-nova-flexible-content-group-with-preview",n(963).Z),e.component("flexible-drop-menu",n(3526).Z),e.component("flexible-search-menu",n(944).Z),e.component("delete-flexible-content-group-modal",n(1496).Z)}))},7181:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns});var s=function(){function e(t,n,r,i,a,l){var s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];o(this,e),this.name=t,this.title=n,this.fields=r,this.key=a||this.getTemporaryUniqueKey(i.attribute),this.preview=l,this.collapsed=s,this.readonly=i.readonly,this.renameFields()}var t,n,r;return t=e,(n=[{key:"values",value:function(){for(var e=new FormData,t=0;t=0;t--)this.fields[t].attribute=this.key+"__"+this.fields[t].attribute,this.fields[t].validationKey=this.fields[t].attribute,this.fields[t].dependsOn&&Object.keys(this.fields[t].dependsOn).forEach((function(n){e.fields[t].dependsOn["".concat(e.key,"__").concat(n)]=e.fields[t].dependsOn[n],delete e.fields[t].dependsOn[n]}))}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={emits:["actionExecuted"],props:["resourceName","resourceId","resource","panel"],methods:{actionExecuted:function(){this.$emit("actionExecuted")}}}},878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".flexible-search-menu-multiselect .multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.flexible-search-menu-multiselect .multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.flexible-search-menu-multiselect .multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.flexible-search-menu-multiselect .multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.flexible-search-menu-multiselect .multiselect.is-active{box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.flexible-search-menu-multiselect .multiselect-multiple-label,.flexible-search-menu-multiselect .multiselect-placeholder,.flexible-search-menu-multiselect .multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.flexible-search-menu-multiselect .multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.flexible-search-menu-multiselect .multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flexible-search-menu-multiselect .multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.flexible-search-menu-multiselect .multiselect-search::-webkit-search-cancel-button,.flexible-search-menu-multiselect .multiselect-search::-webkit-search-decoration,.flexible-search-menu-multiselect .multiselect-search::-webkit-search-results-button,.flexible-search-menu-multiselect .multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.flexible-search-menu-multiselect .multiselect-tags{align-items:center;display:flex;flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.flexible-search-menu-multiselect .multiselect-tag{align-items:center;background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);display:flex;font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.flexible-search-menu-multiselect .multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.flexible-search-menu-multiselect .multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.flexible-search-menu-multiselect .multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.flexible-search-menu-multiselect .multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E\");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.flexible-search-menu-multiselect .multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.flexible-search-menu-multiselect .multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.flexible-search-menu-multiselect .multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.flexible-search-menu-multiselect .multiselect-tags-search::-webkit-search-cancel-button,.flexible-search-menu-multiselect .multiselect-tags-search::-webkit-search-decoration,.flexible-search-menu-multiselect .multiselect-tags-search::-webkit-search-results-button,.flexible-search-menu-multiselect .multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.flexible-search-menu-multiselect .multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.flexible-search-menu-multiselect .multiselect-inifite-spinner,.flexible-search-menu-multiselect .multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E\");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.flexible-search-menu-multiselect .multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.flexible-search-menu-multiselect .multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.flexible-search-menu-multiselect .multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.flexible-search-menu-multiselect .multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E\");transition:.3s}.flexible-search-menu-multiselect .multiselect-caret,.flexible-search-menu-multiselect .multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.flexible-search-menu-multiselect .multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E\");pointer-events:none;position:relative;transform:rotate(0deg);transition:transform .3s;z-index:10}.flexible-search-menu-multiselect .multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.flexible-search-menu-multiselect .multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:15rem;max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.flexible-search-menu-multiselect .multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.flexible-search-menu-multiselect .multiselect-dropdown.is-hidden{display:none}.flexible-search-menu-multiselect .multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.flexible-search-menu-multiselect .multiselect-group{margin:0;padding:0}.flexible-search-menu-multiselect .multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.flexible-search-menu-multiselect .multiselect-group-label.is-pointable{cursor:pointer}.flexible-search-menu-multiselect .multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.flexible-search-menu-multiselect .multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.flexible-search-menu-multiselect .multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.flexible-search-menu-multiselect .multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.flexible-search-menu-multiselect .multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.flexible-search-menu-multiselect .multiselect-group-options{margin:0;padding:0}.flexible-search-menu-multiselect .multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.flexible-search-menu-multiselect .multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.flexible-search-menu-multiselect .multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.flexible-search-menu-multiselect .multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.flexible-search-menu-multiselect .multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.flexible-search-menu-multiselect .multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.flexible-search-menu-multiselect .multiselect-no-options,.flexible-search-menu-multiselect .multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.flexible-search-menu-multiselect .multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.flexible-search-menu-multiselect .multiselect-fake-input:active,.flexible-search-menu-multiselect .multiselect-fake-input:focus{outline:none}.flexible-search-menu-multiselect .multiselect-spacer{display:none}.flexible-search-menu-multiselect [dir=rtl] .multiselect-multiple-label,.flexible-search-menu-multiselect [dir=rtl] .multiselect-placeholder,.flexible-search-menu-multiselect [dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}.flexible-search-menu-multiselect [dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}.flexible-search-menu-multiselect [dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}.flexible-search-menu-multiselect [dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}.flexible-search-menu-multiselect [dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}.flexible-search-menu-multiselect [dir=rtl] .multiselect-caret,.flexible-search-menu-multiselect [dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}.flexible-search-menu-multiselect [dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",""]);const a=i},550:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".w-screen{width:100vw}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.self-stretch{align-self:stretch}.fields .md\\:px-8,.fields .px-8{padding-left:1.5rem;padding-right:1.5rem}.fields label .flex{flex-direction:column;gap:.5rem}.fields .form-file,.fields .md\\:w-1\\/4,.fields .md\\:w-3\\/5,.fields .md\\:w-4\\/5,.fields .w-1\\/2{width:100%}.nsr-w-full.nsr-flex.nsr-border-b.nsr-py-2{display:none}.fields .simple-repeatable-fields-wrapper{flex-direction:column;gap:.5em}.fields .simple-repeatable.form-field .simple-repeatable-row{margin-left:0;padding-left:0;width:100%}.fields .simple-repeatable.form-field .simple-repeatable-row .delete-icon,.simple-repeatable.form-field .simple-repeatable-row .vue-draggable-handle,.simple-repeatable.form-field .simple-repeatable-row>.simple-repeatable-fields-wrapper .translatable-field>div:not(:first-child)>div,.simple-repeatable.form-field .simple-repeatable-row>.simple-repeatable-fields-wrapper>*{margin-right:0}.hover\\:border-gray-200:hover{border-color:rgba(var(--colors-gray-200))}",""]);const a=i},9573:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".ml-sidebar{margin-left:20%}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mx-8{margin-left:-2rem;margin-right:-2rem}",""]);const a=i},706:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".group-control:focus{outline:none}.group-control:hover{color:rgb(var(--colors-primary-400))}.confirm-message{background-color:var(--20);border:1px solid #b7cad6;border-radius:4px;bottom:0;overflow:visible;padding:6px 7px;position:absolute;right:38px;white-space:nowrap;width:auto}[dir=rtl] .confirm-message{left:35px;right:auto}.confirm-message .text-danger{color:#ee3f22}.rounded-l{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.box-content{box-sizing:content-box}.grow{flex-grow:1}.grow-0{flex-grow:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}",""]);const a=i},7490:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".group-control:focus{outline:none}.group-control:hover{color:rgb(var(--colors-primary-400))}.confirm-message{background-color:var(--20);border:1px solid #b7cad6;border-radius:4px;bottom:0;overflow:visible;padding:6px 7px;position:absolute;right:38px;white-space:nowrap;width:auto}[dir=rtl] .confirm-message{left:35px;right:auto}.confirm-message .text-danger{color:#ee3f22}.rounded-l{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.box-content{box-sizing:content-box}.grow{flex-grow:1}.grow-0{flex-grow:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.right-\\[3px\\]{right:3px}.group:hover .group-hover\\:block{display:block}",""]);const a=i},3606:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".pin-b,.top-full{top:100%}.pin-b{bottom:auto}.pin-t{bottom:100%;top:auto}",""]);const a=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a{},4155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,s=[],u=!1,c=-1;function p(){u&&l&&(u=!1,l.length?s=l.concat(s):c=-1,s.length&&d())}function d(){if(!u){var e=o(p);u=!0;for(var t=s.length;t;){for(l=s,s=[];++c1)for(var n=1;n{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function l(e){for(var t=-1,n=0;n{"use strict";let t=null;function n(e){if(null!==t&&(t.property,1)){const e=t;return t=n.prototype=null,e}return t=n.prototype=null==e?Object.create(null):e,new n}n(),e.exports=function(e){return n(e)}},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},1496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(311),i={key:0,class:"leading-normal"},a={key:1,class:"leading-normal"},o={class:"ml-auto"};const l={props:["message","yes","no"],emits:["close","confirm"],mounted:function(){this.$nextTick((function(){}))}};const s=(0,n(3744).Z)(l,[["render",function(e,t,n,l,s,u){var c=this,p=(0,r.resolveComponent)("ModalHeader"),d=(0,r.resolveComponent)("ModalContent"),f=(0,r.resolveComponent)("link-button"),y=(0,r.resolveComponent)("danger-button"),m=(0,r.resolveComponent)("ModalFooter"),v=(0,r.resolveComponent)("Modal");return(0,r.openBlock)(),(0,r.createBlock)(v,{show:!0},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("form",{onSubmit:t[1]||(t[1]=(0,r.withModifiers)((function(t){return e.$emit("confirm")}),["prevent"])),class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},[(0,r.renderSlot)(e.$slots,"default",{},(function(){return[(0,r.createVNode)(p,{textContent:(0,r.toDisplayString)(e.__("Delete Group"))},null,8,["textContent"]),(0,r.createVNode)(d,null,{default:(0,r.withCtx)((function(){return[n.message?((0,r.openBlock)(),(0,r.createElementBlock)("p",i,(0,r.toDisplayString)(n.message),1)):((0,r.openBlock)(),(0,r.createElementBlock)("p",a,(0,r.toDisplayString)(e.__("Are you sure you want to delete this group?")),1))]})),_:1})]})),(0,r.createVNode)(m,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(f,{type:"button","data-testid":"cancel-button",dusk:"cancel-delete-button",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(e){return c.$emit("close")}),["prevent"])),class:"mr-3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.no),1)]})),_:1}),(0,r.createVNode)(y,{ref:"confirmButton",dusk:"confirm-delete-button",processing:e.working,disabled:e.working,type:"submit"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.yes),1)]})),_:1},8,["processing","disabled"])])]})),_:1})],32)]})),_:3})}]])},190:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(311);var i=n(7181);const a={props:["resource","resourceName","resourceId","field"],computed:{groups:function(){var e,t=this;return this.field.value.reduce((function(n,r){return(e=t.getGroup(r))?(n.push(e),n):n}),[])}},methods:{getLayout:function(e){if(this.field.layouts)return this.field.layouts.find((function(t){return t.name==e}))},getGroup:function(e){var t=this.getLayout(e.layout);if(t)return new i.Z(t.name,t.title,e.attributes,this.field,e.key,t.preview)}}};const o=(0,n(3744).Z)(a,[["render",function(e,t,n,i,a,o){var l=(0,r.resolveComponent)("detail-nova-flexible-content-group"),s=(0,r.resolveComponent)("PanelItem");return(0,r.openBlock)(),(0,r.createBlock)(s,{field:n.field},{value:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.groups,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(l,{index:t,last:t===o.groups.length-1,group:e,resourceName:n.resourceName,resourceId:n.resourceId,attribute:n.field.attribute,previewStylesheet:n.field.enablePreview},null,8,["index","last","group","resourceName","resourceId","attribute","previewStylesheet"])])})),256))]})),_:1},8,["field"])}]]),l=o},696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(311),i=["dusk"],a={class:"block float-left border-r border-gray-100 dark:border-gray-700 pr-4 mr-4"},o=(0,r.createElementVNode)("span",{class:"text-60 text-xs"},"#",-1),l={class:"text-80"},s={class:"font-bold"};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}const c={components:{PreviewIframe:n(5893).Z},props:["attribute","group","index","last","resource","resourceName","resourceId","previewStylesheet"],computed:{componentStyle:function(){return this.last?[]:["border-b border-50 pb-4 mb-4"]},titleStyle:function(){return["pb-4","border-b","border-gray-100","dark:border-gray-700"]}},data:function(){return{form:new FormData,initialPreviewHtml:null,updatedPreviewHtml:null}},mounted:function(){var e=this;this.$nextTick((function(){e.group.fields.forEach((function(t){var n;e.form.set("__key",e.group.key),e.form.set(t.attribute,"object"===u(t.value)&&null!==t.value?JSON.stringify(t.value):null!==(n=t.value)&&void 0!==n?n:"")})),e.getPreview()}))},methods:{getPreview:function(){var e=this;fetch("/nova-vendor/flexible/view/".concat(this.resourceName,"/").concat(this.resourceId,"/").concat(this.attribute,"/").concat(this.group.name),{method:"post",body:this.form,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content}}).then((function(e){return e.json()})).then((function(t){!e.initialPreviewHtml||t.has_uploads?e.initialPreviewHtml=t.view:e.updatedPreviewHtml=t.view}))}}};const p=(0,n(3744).Z)(c,[["render",function(e,t,n,u,c,p){var d=(0,r.resolveComponent)("preview-iframe");return n.previewStylesheet?c.initialPreviewHtml?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,stylesheet:n.previewStylesheet,flexible_key:n.group.key,initialPreviewHtml:c.initialPreviewHtml,updatedPreviewHtml:c.updatedPreviewHtml},null,8,["stylesheet","flexible_key","initialPreviewHtml","updatedPreviewHtml"])):(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(p.componentStyle),dusk:"detail-"+n.attribute+"-"+n.index},[n.group.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(p.titleStyle)},[(0,r.createElementVNode)("span",a,[o,(0,r.createElementVNode)("span",l,(0,r.toDisplayString)(n.index+1),1)]),(0,r.createElementVNode)("span",s,(0,r.toDisplayString)(n.group.title),1)],2)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.group.fields,(function(e,t){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)("detail-"+e.component),{key:t,"resource-name":n.resourceName,"resource-id":n.resourceId,field:e,"validation-errors":null,class:(0,r.normalizeClass)({"remove-bottom-border":t==n.group.fields.length-1})},null,8,["resource-name","resource-id","field","class"])})),128))],10,i))}]])},9329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Kn});var r=n(311),i={key:0,class:"px-4 py-2 z-20 bg-white border-b text-center"};var a={class:"py-6 px-8 w-full"},o={key:0,class:"mb-6"},l={key:0,class:"text-danger text-sm"};var s=n(9226);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={mixins:[s.HandlesValidationErrors],props:function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var E=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),x=g(/Edge/i),P=g(/firefox/i),O=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),A=g(/iP(ad|od|hone)/i),w=g(/chrome/i)&&g(/android/i),N={capture:!1,passive:!1};function I(e,t,n){e.addEventListener(t,n,!E&&N)}function D(e,t,n){e.removeEventListener(t,n,!E&&N)}function C(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function _(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function L(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&C(e,t):C(e,t))||r&&e===n)return e;if(e===n)break}while(e=_(e))}return null}var j,k=/\s+/g;function B(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function M(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function F(e,t){var n="";if("string"==typeof e)n=e;else do{var r=M(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function R(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a:i<=a))return r;if(r===V())break;r=z(r,!1)}return!1}function X(e,t,n,r){for(var i=0,a=0,o=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=h(n,ie);ne.pluginEvent.bind(Ge)(e,t,v({dragEl:le,parentEl:se,ghostEl:ue,rootEl:ce,nextEl:pe,lastDownEl:de,cloneEl:fe,cloneHidden:ye,dragStarted:we,putSortable:he,activeSortable:Ge.active,originalEvent:r,oldIndex:me,oldDraggableIndex:be,newIndex:ve,newDraggableIndex:Te,hideGhostForTarget:ze,unhideGhostForTarget:We,cloneNowHidden:function(){ye=!0},cloneNowShown:function(){ye=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(v({putSortable:he,cloneEl:fe,targetEl:le,rootEl:ce,oldIndex:me,oldDraggableIndex:be,newIndex:ve,newDraggableIndex:Te},e))}var le,se,ue,ce,pe,de,fe,ye,me,ve,be,Te,Se,he,ge,Ee,xe,Pe,Oe,Ae,we,Ne,Ie,De,Ce,_e=!1,Le=!1,je=[],ke=!1,Be=!1,Me=[],Fe=!1,Re=[],Ve="undefined"!=typeof document,Ke=A,Ye=x||E?"cssFloat":"float",Xe=Ve&&!w&&!A&&"draggable"in document.createElement("div"),Je=function(){if(Ve){if(E)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ue=function(e,t){var n=M(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=X(e,0,t),a=X(e,1,t),o=i&&M(i),l=a&&M(a),s=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+K(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+K(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&"none"!==o.float){var c="left"===o.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||s>=r&&"none"===n[Ye]||a&&"none"===n[Ye]&&s+u>r)?"vertical":"horizontal"},qe=function(e){function t(e,n){return function(r,i,a,o){var l=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,a,o),n)(r,i,a,o);var s=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==b(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ze=function(){!Je&&ue&&M(ue,"display","none")},We=function(){!Je&&ue&&M(ue,"display","")};Ve&&!w&&document.addEventListener("click",(function(e){if(Le)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Le=!1,!1}),!0);var He=function(e){if(le){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,a=e.clientY,je.some((function(e){var t=e[Z].options.emptyInsertThreshold;if(t&&!J(e)){var n=K(e),r=i>=n.left-t&&i<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?o=e:void 0}})),o);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}var i,a,o},$e=function(e){le&&le.parentNode[Z]._isOutsideThisEl(e.target)};function Ge(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=S({},t),e[Z]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ue(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ge.supportPointer&&"PointerEvent"in window&&!O,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in qe(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Xe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?I(e,"pointerdown",this._onTapStart):(I(e,"mousedown",this._onTapStart),I(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(I(e,"dragover",this),I(e,"dragenter",this)),je.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),S(this,Q())}function Ze(e,t,n,r,i,a,o,l){var s,u,c=e[Z],p=c.options.onMove;return!window.CustomEvent||E||x?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=i||t,s.relatedRect=a||K(t),s.willInsertAfter=l,s.originalEvent=o,e.dispatchEvent(s),p&&(u=p.call(c,s,o)),u}function Qe(e){e.draggable=!1}function et(){Fe=!1}function tt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function nt(e){return setTimeout(e,0)}function rt(e){return clearTimeout(e)}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ne=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,le):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(o||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){Re.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Re.push(r)}}(n),!le&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!O||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=L(l,r.draggable,n,!1))&&l.animated||de===l)){if(me=U(l),be=U(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return oe({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),ae("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=L(s,r.trim(),n,!1))return oe({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),ae("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!L(s,r.handle,n,!1)||this._prepareDragStart(e,o,l)}}},_prepareDragStart:function(e,t,n){var r,i=this,a=i.el,o=i.options,l=a.ownerDocument;if(n&&!le&&n.parentNode===a){var s=K(n);if(ce=a,se=(le=n).parentNode,pe=le.nextSibling,de=n,Se=o.group,Ge.dragged=le,ge={target:le,clientX:(t||e).clientX,clientY:(t||e).clientY},Oe=ge.clientX-s.left,Ae=ge.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,le.style["will-change"]="all",r=function(){ae("delayEnded",i,{evt:e}),Ge.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!P&&i.nativeDraggable&&(le.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),B(le,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){R(le,e.trim(),Qe)})),I(l,"dragover",He),I(l,"mousemove",He),I(l,"touchmove",He),I(l,"mouseup",i._onDrop),I(l,"touchend",i._onDrop),I(l,"touchcancel",i._onDrop),P&&this.nativeDraggable&&(this.options.touchStartThreshold=4,le.draggable=!0),ae("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(x||E))r();else{if(Ge.eventCanceled)return void this._onDrop();I(l,"mouseup",i._disableDelayedDrag),I(l,"touchend",i._disableDelayedDrag),I(l,"touchcancel",i._disableDelayedDrag),I(l,"mousemove",i._delayedDragTouchMoveHandler),I(l,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&I(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){le&&Qe(le),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;D(e,"mouseup",this._disableDelayedDrag),D(e,"touchend",this._disableDelayedDrag),D(e,"touchcancel",this._disableDelayedDrag),D(e,"mousemove",this._delayedDragTouchMoveHandler),D(e,"touchmove",this._delayedDragTouchMoveHandler),D(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?I(document,"pointermove",this._onTouchMove):I(document,t?"touchmove":"mousemove",this._onTouchMove):(I(le,"dragend",this),I(ce,"dragstart",this._onDragStart));try{document.selection?nt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_e=!1,ce&&le){ae("dragStarted",this,{evt:t}),this.nativeDraggable&&I(document,"dragover",$e);var n=this.options;!e&&B(le,n.dragClass,!1),B(le,n.ghostClass,!0),Ge.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ee){this._lastX=Ee.clientX,this._lastY=Ee.clientY,ze();for(var e=document.elementFromPoint(Ee.clientX,Ee.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ee.clientX,Ee.clientY))!==t;)t=e;if(le.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]){if(t[Z]._onDragOver({clientX:Ee.clientX,clientY:Ee.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);We()}},_onTouchMove:function(e){if(ge){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=ue&&F(ue,!0),o=ue&&a&&a.a,l=ue&&a&&a.d,s=Ke&&Ce&&q(Ce),u=(i.clientX-ge.clientX+r.x)/(o||1)+(s?s[0]-Me[0]:0)/(o||1),c=(i.clientY-ge.clientY+r.y)/(l||1)+(s?s[1]-Me[1]:0)/(l||1);if(!Ge.active&&!_e){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}(e,i,this)&&!m.animated){if(m===le)return _(!1);if(m&&a===e.target&&(o=m),o&&(n=K(o)),!1!==Ze(ce,a,le,t,o,n,e,!!o))return C(),m&&m.nextSibling?a.insertBefore(le,m.nextSibling):a.appendChild(le),se=a,j(),_(!0)}else if(m&&function(e,t,n){var r=K(X(n.el,0,n.options,!0)),i=10;return t?e.clientXc+u*a/2:sp-De)return-Ie}else if(s>c+u*(1-i)/2&&sp-u*a/2))return s>c+u/2?1:-1;return 0}(e,o,n,i,E?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Be,Ne===o),0!==T){var A=U(le);do{A-=T,h=se.children[A]}while(h&&("none"===M(h,"display")||h===ue))}if(0===T||h===o)return _(!1);Ne=o,Ie=T;var w=o.nextElementSibling,N=!1,I=Ze(ce,a,le,t,o,n,e,N=1===T);if(!1!==I)return 1!==I&&-1!==I||(N=1===I),Fe=!0,setTimeout(et,30),C(),N&&!w?a.appendChild(le):o.parentNode.insertBefore(le,N?w:o),P&&$(P,0,O-P.scrollTop),se=le.parentNode,void 0===S||Be||(De=Math.abs(S-K(o)[x])),j(),_(!0)}if(a.contains(le))return _(!1)}return!1}function D(l,s){ae(l,f,v({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:d,target:o,completed:_,onMove:function(n,r){return Ze(ce,a,le,t,n,K(n),e,r)},changed:j},s))}function C(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==d&&d.captureAnimationState()}function _(t){return D("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(f),f!==d&&(B(le,he?he.options.ghostClass:u.options.ghostClass,!1),B(le,l.ghostClass,!0)),he!==f&&f!==Ge.active?he=f:f===Ge.active&&he&&(he=null),d===f&&(f._ignoreWhileAnimating=o),f.animateAll((function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(o===le&&!le.animated||o===a&&!o.animated)&&(Ne=null),l.dragoverBubble||e.rootEl||o===document||(le.parentNode[Z]._isOutsideThisEl(e.target),!t&&He(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function j(){ve=U(le),Te=U(le,l.draggable),oe({sortable:f,name:"change",toEl:a,newIndex:ve,newDraggableIndex:Te,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){D(document,"mousemove",this._onTouchMove),D(document,"touchmove",this._onTouchMove),D(document,"pointermove",this._onTouchMove),D(document,"dragover",He),D(document,"mousemove",He),D(document,"touchmove",He)},_offUpEvents:function(){var e=this.el.ownerDocument;D(e,"mouseup",this._onDrop),D(e,"touchend",this._onDrop),D(e,"pointerup",this._onDrop),D(e,"touchcancel",this._onDrop),D(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ve=U(le),Te=U(le,n.draggable),ae("drop",this,{evt:e}),se=le&&le.parentNode,ve=U(le),Te=U(le,n.draggable),Ge.eventCanceled||(_e=!1,Be=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rt(this.cloneId),rt(this._dragStartId),this.nativeDraggable&&(D(document,"drop",this),D(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),O&&M(document.body,"user-select",""),M(le,"transform",""),e&&(we&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ue&&ue.parentNode&&ue.parentNode.removeChild(ue),(ce===se||he&&"clone"!==he.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),le&&(this.nativeDraggable&&D(le,"dragend",this),Qe(le),le.style["will-change"]="",we&&!_e&&B(le,he?he.options.ghostClass:this.options.ghostClass,!1),B(le,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ce!==se?(ve>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),he&&he.save()):ve!==me&&ve>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Ge.active&&(null!=ve&&-1!==ve||(ve=me,Te=be),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ae("nulling",this),ce=le=se=ue=pe=fe=de=ye=ge=Ee=we=ve=Te=me=be=Ne=Ie=he=Se=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,Re.forEach((function(e){e.checked=!0})),Re.length=xe=Pe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":le&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,a=this.options;r"string"==typeof e,xt=(Object.prototype.toString,e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}),Pt=/-(\w)/g,Ot=(xt((e=>e.replace(Pt,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),At=(xt((e=>e.replace(Ot,"-$1").toLowerCase())),xt((e=>e.charAt(0).toUpperCase()+e.slice(1))));xt((e=>e?`on${At(e)}`:""));function wt(e,t,n,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const Nt=Symbol(""),It=(Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol("")),Dt=Symbol(""),Ct=Symbol(""),_t=Symbol(""),Lt=Symbol(""),jt=Symbol(""),kt=(Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol("")),Bt=Symbol(""),Mt=(Symbol(""),Symbol(""),Symbol("")),Ft=Symbol(""),Rt=Symbol(""),Vt=Symbol(""),Kt=Symbol(""),Yt=Symbol(""),Xt=Symbol(""),Jt=(Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol(""),Symbol("")),Ut=Symbol("");const qt={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function zt(e,t,n,r,i,a,o,l=!1,s=!1,u=!1,c=qt){return e&&(l?(e.helper(It),e.helper(fn(e.inSSR,u))):e.helper(dn(e.inSSR,u)),o&&e.helper(kt)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:l,disableTracking:s,isComponent:u,loc:c}}function Wt(e,t=qt){return{type:15,loc:t,properties:e}}function Ht(e,t){return{type:16,loc:qt,key:Et(e)?$t(e,!0):e,value:t}}function $t(e,t=!1,n=qt,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Gt(e,t=qt){return{type:8,loc:t,children:e}}function Zt(e,t=[],n=qt){return{type:14,loc:n,callee:e,arguments:t}}function Qt(e,t,n=!1,r=!1,i=qt){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function en(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:qt}}const tn=e=>4===e.type&&e.isStatic;function nn(e,t,n){const r={source:e.source.slice(t,t+n),start:rn(e.start,e.source,t),end:e.end};return null!=n&&(r.end=rn(e.start,e.source,t+n)),r}function rn(e,t,n=t.length){return an(ht({},e),t,n)}function an(e,t,n=t.length){let r=0,i=-1;for(let e=0;e4===e.key.type&&e.key.content===r))}return n}function Tn(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(dn(r,e.isComponent)),t(It),t(fn(r,e.isComponent)))}new Set([Rt,Vt,Kt,Yt]);function Sn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(un))return;const a=[];for(let o=0;ofunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(wt(28,t.loc)),t.exp=$t("true",!1,r)}0;if("if"===t.name){const i=gn(e,t),a={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-- >=-1;){const o=i[a];if(o&&3===o.type)n.removeNode(o);else{if(!o||2!==o.type||o.content.trim().length){if(o&&9===o.type){"else-if"===t.name&&void 0===o.branches[o.branches.length-1].condition&&n.onError(wt(30,e.loc)),n.removeNode();const i=gn(e,t);0,o.branches.push(i);const a=r&&r(o,i,!1);Sn(i,n),a&&a(),n.currentNode=null}else n.onError(wt(30,e.loc));break}n.removeNode(o)}}}}(e,t,n,((e,t,r)=>{const i=n.parent.children;let a=i.indexOf(e),o=0;for(;a-- >=0;){const e=i[a];e&&9===e.type&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=En(t,o,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=En(t,o+e.branches.length-1,n)}}}))));function gn(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!on(e,"for")?e.children:[e],userKey:ln(e,"key"),isTemplateIf:n}}function En(e,t,n){return e.condition?en(e.condition,xn(e,t,n),Zt(n.helper(jt),['""',"true"])):xn(e,t,n)}function xn(e,t,n){const{helper:r}=n,i=Ht("key",$t(`${t}`,!1,qt,2)),{children:a}=e,o=a[0];if(1!==a.length||1!==o.type){if(1===a.length&&11===o.type){const e=o.codegenNode;return vn(e,i,n),e}{let t=64;return zt(n,r(Nt),Wt([i]),a,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=o.codegenNode,t=14===(l=e).type&&l.callee===Jt?l.arguments[1].returns:l;return 13===t.type&&Tn(t,n),vn(t,i,n),e}var l}hn("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(wt(31,t.loc));const i=wn(t.exp,n);if(!i)return void n.onError(wt(32,t.loc));const{addIdentifiers:a,removeIdentifiers:o,scopes:l}=n,{source:s,value:u,key:c,index:p}=i,d={type:11,loc:t.loc,source:s,valueAlias:u,keyAlias:c,objectIndexAlias:p,parseResult:i,children:cn(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const f=r&&r(d);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const a=Zt(r(Bt),[t.source]),o=cn(e),l=on(e,"memo"),s=ln(e,"key"),u=s&&(6===s.type?$t(s.value.content,!0):s.exp),c=s?Ht("key",u):null,p=4===t.source.type&&t.source.constType>0,d=p?64:s?128:256;return t.codegenNode=zt(n,r(Nt),void 0,a,d+"",void 0,void 0,!0,!p,!1,e.loc),()=>{let s;const{children:d}=t;const f=1!==d.length||1!==d[0].type,y=pn(e)?e:o&&1===e.children.length&&pn(e.children[0])?e.children[0]:null;if(y?(s=y.codegenNode,o&&c&&vn(s,c,n)):f?s=zt(n,r(Nt),c?Wt([c]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(s=d[0].codegenNode,o&&c&&vn(s,c,n),s.isBlock!==!p&&(s.isBlock?(i(It),i(fn(n.inSSR,s.isComponent))):i(dn(n.inSSR,s.isComponent))),s.isBlock=!p,s.isBlock?(r(It),r(fn(n.inSSR,s.isComponent))):r(dn(n.inSSR,s.isComponent))),l){const e=Qt(In(t.parseResult,[$t("_cached")]));e.body={type:21,body:[Gt(["const _memo = (",l.exp,")"]),Gt(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Ut)}(_cached, _memo)) return _cached`]),Gt(["const _item = ",s]),$t("_item.memo = _memo"),$t("return _item")],loc:qt},a.arguments.push(e,$t("_cache"),$t(String(n.cached++)))}else a.arguments.push(Qt(In(t.parseResult),s,!0))}}))}));const Pn=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,On=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,An=/^\(|\)$/g;function wn(e,t){const n=e.loc,r=e.content,i=r.match(Pn);if(!i)return;const[,a,o]=i,l={source:Nn(n,o.trim(),r.indexOf(o,a.length)),value:void 0,key:void 0,index:void 0};let s=a.trim().replace(An,"").trim();const u=a.indexOf(s),c=s.match(On);if(c){s=s.replace(On,"").trim();const e=c[1].trim();let t;if(e&&(t=r.indexOf(e,u+s.length),l.key=Nn(n,e,t)),c[2]){const i=c[2].trim();i&&(l.index=Nn(n,i,r.indexOf(i,l.key?t+e.length:u+s.length)))}}return s&&(l.value=Nn(n,s,u)),l}function Nn(e,t,n){return $t(t,!1,nn(e,n,t.length))}function In({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||$t("_".repeat(t+1),!1)))}([e,t,n,...r])}$t("undefined",!1);new WeakMap;const Dn=/-(\w)/g;(e=>{const t=Object.create(null)})((e=>e.replace(Dn,((e,t)=>t?t.toUpperCase():""))));new WeakSet;new WeakSet;function Cn(e){return Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(e)}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t=this.order.length-1||this.order.splice(t+1,0,this.order.splice(t,1)[0])},remove:function(e){var t=this.order.indexOf(e);t<0||(this.order.splice(t,1),delete this.groups[e])},initSortable:function(){var e=this,t=this.$refs.flexibleFieldContainer;t&&!this.sortableInstance&&(this.sortableInstance=Tt.create(t,{ghostClass:"nova-flexible-content-sortable-ghost",dragClass:"nova-flexible-content-sortable-drag",chosenClass:"nova-flexible-content-sortable-chosen",direction:"vertical",handle:".nova-flexible-content-drag-button",scrollSpeed:5,animation:500,onEnd:function(t){var n=t.item.id,r=t.oldIndex,i=t.newIndex;ir&&e.moveDown(n)}}))}}};var Bn=n(3379),Mn=n.n(Bn),Fn=n(9573),Rn={insert:"head",singleton:!1};Mn()(Fn.Z,Rn);Fn.Z.locals;const Vn=(0,f.Z)(kn,[["render",function(e,t,n,a,o,l){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.currentField.fullWidth?"FullWidthField":"default-field"),{dusk:e.currentField.attribute,field:e.currentField,errors:e.errors,"show-help-text":e.showHelpText,"full-width-content":"",class:"relative",onKeyup:t[2]||(t[2]=(0,r.withKeys)((function(e){return l.selectGroup(null)}),["escape"]))},{field:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"-mx-8 -mt-6":e.currentField.enablePreview&&!o.fullScreen,"fixed inset-0 bg-gray-50 z-50 flex flex-col":o.fullScreen})},[o.fullScreen?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("button",{class:"shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3",onClick:t[0]||(t[0]=function(e){return l.selectGroup(null)})},"Exit full screen mode")])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref:"flexibleFieldContainer",class:(0,r.normalizeClass)({"mb-4":e.currentField.enablePreview&&!o.fullScreen,"flex-grow overflow-y-auto ml-sidebar border-l":e.currentField.enablePreview&&o.fullScreen})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.orderedGroups,(function(t,n){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.currentField.enablePreview?"form-nova-flexible-content-group-with-preview":"form-nova-flexible-content-group"),{dusk:e.currentField.attribute+"-"+n,key:t.key,field:e.currentField,group:t,index:n,"resource-name":e.resourceName,"resource-id":e.resourceId,errors:e.errors,mode:e.mode,selectedGroup:o.selectedGroupKey==t.key,"full-screen":o.fullScreen,onMoveUp:function(e){return l.moveUp(t.key)},onMoveDown:function(e){return l.moveDown(t.key)},onRemove:function(e){return l.remove(t.key)},onGroupSelected:function(e){return l.selectGroup(t.key,e)}},null,40,["dusk","field","group","index","resource-name","resource-id","errors","mode","selectedGroup","full-screen","onMoveUp","onMoveDown","onRemove","onGroupSelected"])})),128))],2),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.currentField.menu.component),{layouts:l.layouts,field:e.currentField,"limit-counter":l.limitCounter,"limit-per-layout-counter":l.limitPerLayoutCounter,errors:e.errors,"resource-name":e.resourceName,"resource-id":e.resourceId,onAddGroup:t[1]||(t[1]=function(e){return l.addGroup(e)}),class:(0,r.normalizeClass)({"px-8":e.currentField.enablePreview,"fixed z-50 border-t bg-100 ml-sidebar p-2 border-l":e.currentField.enablePreview&&o.fullScreen})},null,40,["layouts","field","limit-counter","limit-per-layout-counter","errors","resource-name","resource-id","class"]))],2)]})),_:1},40,["dusk","field","errors","show-help-text"])}]]),Kn=Vn},3790:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(311),i=["id"],a={class:"w-full shrink"},o=["title"],l=["title"],s={class:"text-80 grow px-4"},u={class:"mr-3 font-semibold"},c={key:2,class:"flex"},p=["title"],d=["title"],f=["title"],y=["title"];var m=n(2778),v=n(9226);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={mixins:[m.Z],props:function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>xr});var r={};n.r(r),n.d(r,{VERSION:()=>A,after:()=>nn,all:()=>xn,allKeys:()=>Fe,any:()=>Pn,assign:()=>nt,before:()=>rn,bind:()=>Jt,bindAll:()=>zt,chain:()=>Vt,chunk:()=>or,clone:()=>ot,collect:()=>bn,compact:()=>Hn,compose:()=>tn,constant:()=>he,contains:()=>On,countBy:()=>Rn,create:()=>at,debounce:()=>Zt,default:()=>ur,defaults:()=>rt,defer:()=>$t,delay:()=>Ht,detect:()=>yn,difference:()=>Gn,drop:()=>zn,each:()=>vn,escape:()=>Nt,every:()=>xn,extend:()=>tt,extendOwn:()=>nt,filter:()=>gn,find:()=>yn,findIndex:()=>sn,findKey:()=>on,findLastIndex:()=>un,findWhere:()=>mn,first:()=>qn,flatten:()=>$n,foldl:()=>Sn,foldr:()=>hn,forEach:()=>vn,functions:()=>Qe,get:()=>pt,groupBy:()=>Mn,has:()=>dt,head:()=>qn,identity:()=>ft,include:()=>On,includes:()=>On,indexBy:()=>Fn,indexOf:()=>dn,initial:()=>Un,inject:()=>Sn,intersection:()=>tr,invert:()=>Ze,invoke:()=>An,isArguments:()=>be,isArray:()=>ye,isArrayBuffer:()=>ae,isBoolean:()=>$,isDataView:()=>fe,isDate:()=>te,isElement:()=>G,isEmpty:()=>De,isEqual:()=>Me,isError:()=>re,isFinite:()=>Te,isFunction:()=>se,isMap:()=>qe,isMatch:()=>Ce,isNaN:()=>Se,isNull:()=>W,isNumber:()=>ee,isObject:()=>z,isRegExp:()=>ne,isSet:()=>We,isString:()=>Q,isSymbol:()=>ie,isTypedArray:()=>Ae,isUndefined:()=>H,isWeakMap:()=>ze,isWeakSet:()=>He,iteratee:()=>Tt,keys:()=>Ie,last:()=>Wn,lastIndexOf:()=>fn,map:()=>bn,mapObject:()=>ht,matcher:()=>yt,matches:()=>yt,max:()=>In,memoize:()=>Wt,methods:()=>Qe,min:()=>Dn,mixin:()=>sr,negate:()=>en,noop:()=>gt,now:()=>Ot,object:()=>ir,omit:()=>Jn,once:()=>an,pairs:()=>Ge,partial:()=>Xt,partition:()=>Vn,pick:()=>Xn,pluck:()=>wn,property:()=>mt,propertyOf:()=>Et,random:()=>Pt,range:()=>ar,reduce:()=>Sn,reduceRight:()=>hn,reject:()=>En,rest:()=>zn,restArguments:()=>q,result:()=>Mt,sample:()=>Ln,select:()=>gn,shuffle:()=>jn,size:()=>Kn,some:()=>Pn,sortBy:()=>kn,sortedIndex:()=>cn,tail:()=>zn,take:()=>qn,tap:()=>lt,template:()=>Bt,templateSettings:()=>Dt,throttle:()=>Gt,times:()=>xt,toArray:()=>_n,toPath:()=>st,transpose:()=>nr,unescape:()=>It,union:()=>er,uniq:()=>Qn,unique:()=>Qn,uniqueId:()=>Rt,unzip:()=>nr,values:()=>$e,where:()=>Nn,without:()=>Zn,wrap:()=>Qt,zip:()=>rr});var i=n(311),a=["id"],o={class:"w-full relative"},l={key:0,class:"flex"},s=["title"],u=["title"],c=["title"],p=["title"],d={class:"absolute top-0 left-0 md:w-1/5 bottom-0 h-full bg-gray-50 overflow-y-scroll self-stretch"},f={class:"w-full py-5"},y={class:"px-6 py-6 gap-2 flex flex-row items-center"},m=["aria-label"],v={class:"font-semibold"};var b=n(2778),T={key:0,class:"font-bold z-20 mt-3 ml-3 border shadow absolute bg-white px-4 py-2 rounded"},S={class:"absolute pt-4 top-0 left-0 md:w-1/5 bottom-0 h-full bg-gray-50 overflow-y-scroll self-stretch"},h={class:"w-full py-5"},g={class:"px-6 py-6 gap-2 flex flex-row items-center"},E=["aria-label"],x={class:"font-semibold"},P={class:"fields relative divide-y divide-gray-100 dark:divide-gray-700",style:{"margin-left":"-0.25rem","margin-right":"-0.25rem"}},O={ref:"fieldset"};n(6067);var A="1.13.6",w="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},N=Array.prototype,I=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,C=N.push,_=N.slice,L=I.toString,j=I.hasOwnProperty,k="undefined"!=typeof ArrayBuffer,B="undefined"!=typeof DataView,M=Array.isArray,F=Object.keys,R=Object.create,V=k&&ArrayBuffer.isView,K=isNaN,Y=isFinite,X=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=Math.pow(2,53)-1;function q(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i=0&&n<=U}}function Ee(e){return function(t){return null==t?void 0:t[e]}}const xe=Ee("byteLength"),Pe=ge(xe);var Oe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const Ae=k?function(e){return V?V(e)&&!fe(e):Pe(e)&&Oe.test(L.call(e))}:he(!1),we=Ee("length");function Ne(e,t){t=function(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},Nt=At(wt),It=At(Ze(wt)),Dt=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Ct=/(.)^/,_t={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Lt=/\\|'|\r|\n|\u2028|\u2029/g;function jt(e){return"\\"+_t[e]}var kt=/^\s*(\w|\$)+\s*$/;function Bt(e,t,n){!t&&n&&(t=n),t=rt({},t,_e.templateSettings);var r=RegExp([(t.escape||Ct).source,(t.interpolate||Ct).source,(t.evaluate||Ct).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,(function(t,n,r,o,l){return a+=e.slice(i,l).replace(Lt,jt),i=l+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t})),a+="';\n";var o,l=t.variable;if(l){if(!kt.test(l))throw new Error("variable is not a bare identifier: "+l)}else a="with(obj||{}){\n"+a+"}\n",l="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(l,"_",a)}catch(e){throw e.source=a,e}var s=function(e){return o.call(this,e,_e)};return s.source="function("+l+"){\n"+a+"}",s}function Mt(e,t,n){var r=(t=ut(t)).length;if(!r)return se(n)?n.call(e):n;for(var i=0;i1)qt(l,t-1,n,r),i=r.length;else for(var s=0,u=l.length;st?(r&&(clearTimeout(r),r=null),l=u,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o};return u.cancel=function(){clearTimeout(r),l=0,r=i=a=null},u}function Zt(e,t,n){var r,i,a,o,l,s=function(){var u=Ot()-i;t>u?r=setTimeout(s,t-u):(r=null,n||(o=e.apply(l,a)),r||(a=l=null))},u=q((function(u){return l=this,a=u,i=Ot(),r||(r=setTimeout(s,t),n&&(o=e.apply(l,a))),o}));return u.cancel=function(){clearTimeout(r),r=a=l=null},u}function Qt(e,t){return Xt(t,e)}function en(e){return function(){return!e.apply(this,arguments)}}function tn(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function nn(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function rn(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const an=Xt(rn,2);function on(e,t,n){t=St(t,n);for(var r,i=Ie(e),a=0,o=i.length;a0?0:i-1;a>=0&&a0?o=a>=0?a:Math.max(a+l,o):l=a>=0?Math.min(a+1,l):a+l+1;else if(n&&a&&l)return r[a=n(r,i)]===i?a:-1;if(i!=i)return(a=t(_.call(r,o,l),Se))>=0?a+o:-1;for(a=e>0?o:l-1;a>=0&&a0?0:o-1;for(i||(r=t[a?a[l]:l],l+=e);l>=0&&l=3;return t(e,vt(n,i,4),r,a)}}const Sn=Tn(1),hn=Tn(-1);function gn(e,t,n){var r=[];return t=St(t,n),vn(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function En(e,t,n){return gn(e,en(St(t)),n)}function xn(e,t,n){t=St(t,n);for(var r=!Ut(e)&&Ie(e),i=(r||e).length,a=0;a=0}const An=q((function(e,t,n){var r,i;return se(t)?i=t:(t=ut(t),r=t.slice(0,-1),t=t[t.length-1]),bn(e,(function(e){var a=i;if(!a){if(r&&r.length&&(e=ct(e,r)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function wn(e,t){return bn(e,mt(t))}function Nn(e,t){return gn(e,yt(t))}function In(e,t,n){var r,i,a=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=Ut(e)?e:$e(e)).length;la&&(a=r);else t=St(t,n),vn(e,(function(e,n,r){((i=t(e,n,r))>o||i===-1/0&&a===-1/0)&&(a=e,o=i)}));return a}function Dn(e,t,n){var r,i,a=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=Ut(e)?e:$e(e)).length;lr||void 0===n)return 1;if(n1&&(r=vt(r,t[1])),t=Fe(e)):(r=Yn,t=qt(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i1&&(n=t[1])):(t=bn(qt(t,!1,!1),String),r=function(e,n){return!On(t,n)}),Xn(e,r,n)}));function Un(e,t,n){return _.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function qn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Un(e,e.length-t)}function zn(e,t,n){return _.call(e,null==t||n?1:t)}function Wn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:zn(e,Math.max(0,e.length-t))}function Hn(e){return gn(e,Boolean)}function $n(e,t){return qt(e,t,!1)}const Gn=q((function(e,t){return t=qt(t,!0,!0),gn(e,(function(e){return!On(t,e)}))})),Zn=q((function(e,t){return Gn(e,t)}));function Qn(e,t,n,r){$(t)||(r=n,n=t,t=!1),null!=n&&(n=St(n,r));for(var i=[],a=[],o=0,l=we(e);o{"use strict";n.d(t,{Z:()=>f});var r=n(311),i={key:0,class:"relative"},a={class:"list-reset"},o=["dusk","onClick"],l={class:"text-90"};const s={props:["layouts","field","resourceName","resourceId","resource","errors","limitCounter","limitPerLayoutCounter"],emits:["addGroup"],data:function(){return{isLayoutsDropdownOpen:!1,dropdownOrientation:"bottom"}},computed:{filteredLayouts:function(){var e=this;return this.layouts.filter((function(t){var n=e.limitPerLayoutCounter[t.name];return null===n||n>0||void 0===n}))},isBelowLayoutLimits:function(){return(this.limitCounter>0||null===this.limitCounter)&&this.filteredLayouts.length>0},dropdownClasses:function(){return{"mt-3":"bottom"===this.dropdownOrientation,"pin-b":"bottom"===this.dropdownOrientation,"mb-3":"top"===this.dropdownOrientation,"pin-t":"top"===this.dropdownOrientation}}},methods:{toggleLayoutsDropdownOrAddDefault:function(e){var t=this;if(1===this.layouts.length)return this.addGroup(this.layouts[0]);this.isLayoutsDropdownOpen=!this.isLayoutsDropdownOpen,this.$nextTick((function(){t.isLayoutsDropdownOpen?t.$refs.dropdown.getBoundingClientRect().bottom>window.innerHeight&&(t.dropdownOrientation="top"):t.dropdownOrientation="bottom"}))},addGroup:function(e){e&&(this.$emit("addGroup",e),Nova.$emit("nova-flexible-content-add-group",e),this.isLayoutsDropdownOpen=!1,this.dropdownOrientation="top")}}};var u=n(3379),c=n.n(u),p=n(3606),d={insert:"head",singleton:!1};c()(p.Z,d);p.Z.locals;const f=(0,n(3744).Z)(s,[["render",function(e,t,n,s,u,c){var p=(0,r.resolveComponent)("default-button");return n.layouts?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[u.isLayoutsDropdownOpen&&n.layouts.length>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,ref:"dropdown",class:(0,r.normalizeClass)(["z-20 absolute rounded-lg shadow-lg max-w-full max-h-search overflow-y-auto border border-40",c.dropdownClasses])},[(0,r.createElementVNode)("ul",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.filteredLayouts,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"border-b border-gray-100 dark:border-gray-700",key:"add-"+e.name},[(0,r.createElementVNode)("a",{dusk:"add-"+e.name,onClick:function(t){return c.addGroup(e)},class:"cursor-pointer flex items-center hover:bg-gray-50 dark:hover:bg-gray-900 block py-2 px-3 no-underline font-normal bg-white dark:bg-gray-800"},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",l,(0,r.toDisplayString)(e.title),1)])],8,o)])})),128))])],2)):(0,r.createCommentVNode)("",!0),c.isBelowLayoutLimits?((0,r.openBlock)(),(0,r.createBlock)(p,{key:1,dusk:"toggle-layouts-dropdown-or-add-default",type:"button",tabindex:"0",ref:"dropdownButton",onClick:c.toggleLayoutsDropdownOrAddDefault},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.field.button),1)]})),_:1},8,["onClick"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]])},5893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(311),i=["srcdoc"];const a={props:{stylesheet:null,flexible_key:null,fullScreen:!1,initialPreviewHtml:null,updatedPreviewHtml:null},data:function(){return{scale:1,iframeHeight:960,iframeWidth:.8*window.innerWidth,iframeParentHeight:1200}},mounted:function(){var e=this;window.addEventListener("message",(function(t){t.data==e.flexible_key&&e.setIframeScaleThenHeight()}),!1),window.addEventListener("resize",(function(){e.setIframeScaleThenHeight()}),!1)},watch:{fullScreen:function(){var e=this;this.$nextTick((function(){e.setIframeScaleThenHeight()}))},updatedPreviewHtml:function(){this.$refs.iframe.contentWindow.postMessage(this.updatedPreviewHtml,"*")}},methods:{setIframeScaleThenHeight:function(){var e=this;if(!this.$refs.iframe)return!1;this.setIframeScale(),this.$nextTick((function(){e.setIframeHeight()}))},setIframeScale:function(){var e=Math.min(window.innerWidth,1800),t=this.$refs.iframe.parentNode.clientWidth/e;this.scale=Math.floor(1e3*t)/1e3,this.iframeWidth=e},setIframeHeight:function(){this.iframeHeight=this.$refs.iframe.contentWindow.document.body.clientHeight,this.iframeParentHeight=this.iframeHeight*this.scale}}};const o=(0,n(3744).Z)(a,[["render",function(e,t,n,a,o,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"relative",style:(0,r.normalizeStyle)({height:"".concat(o.iframeParentHeight,"px")})},[(0,r.createElementVNode)("iframe",{style:(0,r.normalizeStyle)({transform:"translate(-50%,-50%) scale(".concat(o.scale,")"),height:"".concat(o.iframeHeight,"px"),width:"".concat(o.iframeWidth,"px")}),class:"absolute block left-1/2 top-1/2 h-full transform w-screen",ref:"iframe",srcdoc:"\n \n \n \n \n