diff --git a/app/package-lock.json b/app/package-lock.json index 13099fe4..efc50006 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "devDependencies": { - "@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.5.0.tgz", + "@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.5.5.tgz", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.2", "@vitejs/plugin-vue": "^3.0.0", @@ -113,9 +113,9 @@ } }, "node_modules/@protonemedia/laravel-splade": { - "version": "0.5.0", - "resolved": "file:../protonemedia-laravel-splade-0.5.0.tgz", - "integrity": "sha512-XLXymh4uzIMbKuMsb6Sp6835DiOFcj43FvnrfbYOcCcanlYSQgjgbwPxBTqcCAS/Or3+E+4UDaCrRgCwNR31/Q==", + "version": "0.5.5", + "resolved": "file:../protonemedia-laravel-splade-0.5.5.tgz", + "integrity": "sha512-ehbSoW9edNtnMgKUFK2bHrSP2L1OI4KZmmnghdbV6fGsiK6jDYU7Na7Qu4V+s3CeXs4banOIe+jRdaIVS1C3EQ==", "dev": true, "license": "MIT", "dependencies": { @@ -157,9 +157,9 @@ } }, "node_modules/@types/node": { - "version": "14.18.29", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.29.tgz", - "integrity": "sha512-LhF+9fbIX4iPzhsRLpK5H7iPdvW8L4IwGciXQIOEcuF62+9nw/VQVsOViAOOGxY3OlOKGLFv0sWwJXdwQeTn6A==", + "version": "14.18.31", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.31.tgz", + "integrity": "sha512-vQAnaReSQkEDa8uwAyQby8bYGKu84R/deEc6mg5T8fX6gzCn8QW6rziSgsti1fNvsrswKUKPnVTi7uoB+u62Mw==", "dev": true }, "node_modules/@vitejs/plugin-vue": { @@ -452,9 +452,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001409", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001409.tgz", - "integrity": "sha512-V0mnJ5dwarmhYv8/MzhJ//aW68UpvnQBXv8lJ2QUsvn2pHcmAuNtu8hQEDz37XnA1iE+lRR9CIfGWWpgJ5QedQ==", + "version": "1.0.30001412", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001412.tgz", + "integrity": "sha512-+TeEIee1gS5bYOiuf+PS/kp2mrXic37Hl66VY6EAfxasIk5fELTktK2oOezYed12H8w7jt3s512PpulQidPjwA==", "dev": true, "funding": [ { @@ -607,9 +607,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.257", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.257.tgz", - "integrity": "sha512-C65sIwHqNnPC2ADMfse/jWTtmhZMII+x6ADI9gENzrOiI7BpxmfKFE84WkIEl5wEg+7+SfIkwChDlsd1Erju2A==", + "version": "1.4.264", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.264.tgz", + "integrity": "sha512-AZ6ZRkucHOQT8wke50MktxtmcWZr67kE17X/nAXFf62NIdMdgY6xfsaJD5Szoy84lnkuPWH+4tTNE3s2+bPCiw==", "dev": true }, "node_modules/esbuild": { @@ -1940,8 +1940,8 @@ } }, "@protonemedia/laravel-splade": { - "version": "file:../protonemedia-laravel-splade-0.5.0.tgz", - "integrity": "sha512-XLXymh4uzIMbKuMsb6Sp6835DiOFcj43FvnrfbYOcCcanlYSQgjgbwPxBTqcCAS/Or3+E+4UDaCrRgCwNR31/Q==", + "version": "file:../protonemedia-laravel-splade-0.5.5.tgz", + "integrity": "sha512-ehbSoW9edNtnMgKUFK2bHrSP2L1OI4KZmmnghdbV6fGsiK6jDYU7Na7Qu4V+s3CeXs4banOIe+jRdaIVS1C3EQ==", "dev": true, "requires": { "autosize": "^5.0.1", @@ -1972,9 +1972,9 @@ } }, "@types/node": { - "version": "14.18.29", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.29.tgz", - "integrity": "sha512-LhF+9fbIX4iPzhsRLpK5H7iPdvW8L4IwGciXQIOEcuF62+9nw/VQVsOViAOOGxY3OlOKGLFv0sWwJXdwQeTn6A==", + "version": "14.18.31", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.31.tgz", + "integrity": "sha512-vQAnaReSQkEDa8uwAyQby8bYGKu84R/deEc6mg5T8fX6gzCn8QW6rziSgsti1fNvsrswKUKPnVTi7uoB+u62Mw==", "dev": true }, "@vitejs/plugin-vue": { @@ -2202,9 +2202,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001409", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001409.tgz", - "integrity": "sha512-V0mnJ5dwarmhYv8/MzhJ//aW68UpvnQBXv8lJ2QUsvn2pHcmAuNtu8hQEDz37XnA1iE+lRR9CIfGWWpgJ5QedQ==", + "version": "1.0.30001412", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001412.tgz", + "integrity": "sha512-+TeEIee1gS5bYOiuf+PS/kp2mrXic37Hl66VY6EAfxasIk5fELTktK2oOezYed12H8w7jt3s512PpulQidPjwA==", "dev": true }, "choices.js": { @@ -2314,9 +2314,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.4.257", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.257.tgz", - "integrity": "sha512-C65sIwHqNnPC2ADMfse/jWTtmhZMII+x6ADI9gENzrOiI7BpxmfKFE84WkIEl5wEg+7+SfIkwChDlsd1Erju2A==", + "version": "1.4.264", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.264.tgz", + "integrity": "sha512-AZ6ZRkucHOQT8wke50MktxtmcWZr67kE17X/nAXFf62NIdMdgY6xfsaJD5Szoy84lnkuPWH+4tTNE3s2+bPCiw==", "dev": true }, "esbuild": { diff --git a/app/package.json b/app/package.json index d04c5e71..2c92ae1f 100644 --- a/app/package.json +++ b/app/package.json @@ -6,7 +6,7 @@ "pre-publish": "npm upgrade && vite build" }, "devDependencies": { - "@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.5.0.tgz", + "@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.5.5.tgz", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.2", "@vitejs/plugin-vue": "^3.0.0", diff --git a/dist/protone-media-laravel-splade.umd.cjs b/dist/protone-media-laravel-splade.umd.cjs index 51a6b395..52c2e939 100644 --- a/dist/protone-media-laravel-splade.umd.cjs +++ b/dist/protone-media-laravel-splade.umd.cjs @@ -1,4 +1,4 @@ -(function(B,Ne){typeof exports=="object"&&typeof module<"u"?Ne(exports,require("axios"),require("vue")):typeof define=="function"&&define.amd?define(["exports","axios","vue"],Ne):(B=typeof globalThis<"u"?globalThis:B||self,Ne(B.ProtoneMediaLaravelSplade={},B.axios,B.Vue))})(this,function(B,Ne,a){"use strict";const Ln=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Ne),Od="",$d="";function Ui(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=bo}var wo="[object Arguments]",So="[object Array]",Oo="[object Boolean]",$o="[object Date]",Eo="[object Error]",_o="[object Function]",To="[object Map]",xo="[object Number]",Ao="[object Object]",Po="[object RegExp]",Co="[object Set]",Io="[object String]",Bo="[object WeakMap]",jo="[object ArrayBuffer]",Do="[object DataView]",ko="[object Float32Array]",Fo="[object Float64Array]",qo="[object Int8Array]",Mo="[object Int16Array]",Ro="[object Int32Array]",Lo="[object Uint8Array]",No="[object Uint8ClampedArray]",Vo="[object Uint16Array]",Ho="[object Uint32Array]",C={};C[ko]=C[Fo]=C[qo]=C[Mo]=C[Ro]=C[Lo]=C[No]=C[Vo]=C[Ho]=!0,C[wo]=C[So]=C[jo]=C[Oo]=C[Do]=C[$o]=C[Eo]=C[_o]=C[To]=C[xo]=C[Ao]=C[Po]=C[Co]=C[Io]=C[Bo]=!1;function Uo(e){return se(e)&&Mt(e.length)&&!!C[ae(e)]}function Wo(e){return function(t){return e(t)}}var Qn=typeof B=="object"&&B&&!B.nodeType&&B,He=Qn&&typeof module=="object"&&module&&!module.nodeType&&module,zo=He&&He.exports===Qn,Rt=zo&&Nn.process,Go=function(){try{var e=He&&He.require&&He.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch{}}();const Yn=Go;var Jn=Yn&&Yn.isTypedArray,Ko=Jn?Wo(Jn):Uo;const Zn=Ko;var Xo=Object.prototype,Qo=Xo.hasOwnProperty;function Yo(e,t){var n=q(e),r=!n&&zn(e),i=!n&&!r&&Ft(e),o=!n&&!r&&!i&&Zn(e),s=n||r||i||o,l=s?Ki(e.length,String):[],u=l.length;for(var c in e)(t||Qo.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qt(c,u)))&&l.push(c);return l}var Jo=Object.prototype;function Zo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jo;return e===n}function ea(e,t){return function(n){return e(t(n))}}var ta=ea(Object.keys,Object);const na=ta;var ra=Object.prototype,ia=ra.hasOwnProperty;function oa(e){if(!Zo(e))return na(e);var t=[];for(var n in Object(e))ia.call(e,n)&&n!="constructor"&&t.push(n);return t}function K(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var aa="[object AsyncFunction]",sa="[object Function]",la="[object GeneratorFunction]",ua="[object Proxy]";function er(e){if(!K(e))return!1;var t=ae(e);return t==sa||t==la||t==aa||t==ua}function rt(e){return e!=null&&Mt(e.length)&&!er(e)}function it(e){return rt(e)?Yo(e):oa(e)}function Lt(e,t){return e&&Gi(e,t,it)}function ca(e,t){return function(n,r){if(n==null)return n;if(!rt(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o-1}function ps(e,t){var n=this.__data__,r=st(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Y(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Cs(){this.__data__=new Y,this.size=0}function Is(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Bs(e){return this.__data__.get(e)}function js(e){return this.__data__.has(e)}var Ds=200;function ks(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!We||r.lengthl))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&il?new ut:void 0;for(o.set(e,t),o.set(t,e);++d=t||y<0||d&&S>=o}function x(){var g=nn();if(w(g))return A(g);l=setTimeout(x,b(g))}function A(g){return l=void 0,h&&r?p(g):(r=i=void 0,s)}function P(){l!==void 0&&clearTimeout(l),c=0,r=u=i=l=void 0}function E(){return l===void 0?s:A(nn())}function O(){var g=nn(),y=w(g);if(r=arguments,i=this,u=g,y){if(l===void 0)return v(u);if(d)return clearTimeout(l),l=setTimeout(x,t),p(u)}return l===void 0&&(l=setTimeout(x,t)),s}return O.cancel=P,O.flush=E,O}function zl(e,t,n){e=Xt(e),t=at(t);var r=e.length;n=n===void 0?r:dr(Ht(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Gl(e,t){var n=[];return Nt(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}function Kl(e,t){var n=q(e)?pr:Gl;return n(e,Ge(t))}function Xl(e){return function(t,n,r){var i=Object(t);if(!rt(t)){var o=Ge(n);t=it(t),n=function(l){return o(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Ql=Math.max;function Yl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ht(n);return i<0&&(i=Ql(r+i,0)),Ha(e,Ge(t),i)}var Jl=Xl(Yl);const Zl=Jl;function Ir(e){return e&&e.length?e[0]:void 0}function eu(e,t){var n=-1,r=rt(e)?Array(e.length):[];return Nt(e,function(i,o,s){r[++n]=t(i,o,s)}),r}function tu(e,t){var n=q(e)?rr:eu;return n(e,Ge(t))}function be(e,t){return e&&Lt(e,nr(t))}var nu=Object.prototype,ru=nu.hasOwnProperty;function iu(e,t){return e!=null&&ru.call(e,t)}function H(e,t){return e!=null&&Cr(e,t,iu)}var ou="[object String]";function dt(e){return typeof e=="string"||!q(e)&&se(e)&&ae(e)==ou}var au="[object Boolean]";function Br(e){return e===!0||e===!1||se(e)&&ae(e)==au}function jr(e,t){return ft(e,t)}function Dr(e,t){var n={};return t=Ge(t),Lt(e,function(r,i,o){cr(n,i,t(r,i,o))}),n}function su(e,t,n,r){if(!K(e))return e;t=Qt(t,e);for(var i=-1,o=t.length,s=o-1,l=e;l!=null&&++i"u";function lu(e,t,n){le||window.addEventListener("popstate",uu.bind(this)),Object.keys(t).length>0&&ht.value++,ln(n),mt(n.head),un(e);const r=le?"":location.href,i=on(r,n.head,e,t,{},rn.value,ht.value);Fr(i)}function uu(e){!e.state||(j.value=e.state,ee.value=0,mt(j.value.head),un(j.value.html,j.value.rememberedState.scrollY))}function on(e,t,n,r,i,o,s){const l={url:e,head:t,html:n,dynamics:r,rememberedState:i,pageVisitId:o,dynamicVisitId:s};return j.value=l,l}function cu(e){le||window.history.pushState(e,"",e.url)}function fu(e){const t=on(e,JSON.parse(JSON.stringify(j.value.head)),j.value.html,j.value.dynamics,{...j.value.rememberedState},j.value.pageVisitId,j.value.dynamicVisitId);le||window.history.replaceState(t,"",t.url)}function Fr(e){le||window.history.replaceState(e,"",e.url)}const j=a.ref({}),an=a.ref(0);function du(e,t){an.value++;const n=e.request.responseURL;if(e.data.splade.modal&&ee.value++,e.data.splade.lazy)return;ln(e.data.splade),mt(e.data.splade.head);const r=n===j.value.url;if(r&&(t=!0),e.data.splade.modal)return $u(e.data.html,e.data.splade.modal);if(e.data.splade.preventRefresh&&r)return;ee.value=0;let i=e.data.html,o=e.data.dynamics;const s=Object.keys(j.value.dynamics).length>0,l=Object.keys(o).length>0;t?(l&&be(o,(c,f)=>{o[f]+=``}),(!l||!s)&&(i+=``)):(l&&ht.value++,(!l||!s)&&rn.value++),un(i,0);const u=on(n,e.data.splade.head,i,o,j.value.rememberedState?{...j.value.rememberedState}:{},rn.value,ht.value);t?Fr(u):cu(u)}const ee=a.ref(0);function pu(){ee.value--,mt(mu(ee.value))}const qr=a.ref({}),Mr=a.ref({}),Rr=e=>Mr.value[e],hu=e=>Object.keys(Rr.value[e]).length>0,Lr=a.ref({}),mu=e=>Lr.value[e],Nr=a.ref({}),gu=e=>Nr.value[e],Ce=a.ref([]),vu=a.computed(()=>ma(Ce.value));function yu(e){Ce.value.push(e)}function bu(e){Ce.value[e].dismissed=!0,Ce.value[e].html=null}const sn=a.ref(null);function wu(e,t,n,r){let i,o;const s=new Promise((l,u)=>{i=l,o=u});return sn.value={title:e,text:t,confirmButton:n,cancelButton:r,resolvePromise:i,rejectPromise:o},s}function Su(){sn.value=null}function ln(e){qr.value=e.shared?e.shared:{},Nr.value[ee.value]=e.flash?e.flash:{},Lr.value[ee.value]=e.head?e.head:{},da(e.toasts?e.toasts:[],t=>{Ce.value.push(t)}),Mr.value[ee.value]=e.errors?e.errors:{}}function Ou(e){Kr.value(e)}function mt(e){Wr.value(e)}function un(e,t){zr.value(e,t)}function $u(e,t){Gr.value(e,t)}const Vr=a.ref({});function Hr(e,t,n){Vr.value[e]=t,n&&Eu(e,t)}function Eu(e,t){let n=JSON.parse(localStorage.getItem("splade")||"{}")||{};n[e]=t,localStorage.setItem("splade",JSON.stringify(n))}function _u(e,t){return t?(JSON.parse(localStorage.getItem("splade")||"{}")||{})[e]:Vr.value[e]}function gt(e,t){le||document.dispatchEvent(new CustomEvent(`splade:${e}`,{detail:t}))}function Ie(e,t,n,r,i){le||Hr("scrollY",window.scrollY),gt("request",{url:e,method:t,data:n,headers:r,replace:i});const o=Ln.default({method:t,url:e,data:n,headers:{"X-Splade":!0,"X-Requested-With":"XMLHttpRequest",Accept:"text/html, application/xhtml+xml",...r},onUploadProgress:s=>{n instanceof FormData&&(s.percentage=Math.round(s.loaded/s.total*100),gt("request-progress",{url:e,method:t,data:n,headers:r,replace:i,progress:s}))}});return o.then(s=>{du(s,i),gt("request-response",{url:e,method:t,data:n,headers:r,replace:i,response:s})}).catch(s=>{gt("request-error",{url:e,method:t,data:n,headers:r,replace:i,error:s});const l=s.response.data.splade;l&&(l.lazy||ln(l)),s.response.status!=422&&Ou(s.response.data.html?s.response.data.html:s.response.data)}),o}function Ur(e){return Ie(e,"GET",{},{},!0)}function Tu(e){return Ie(e,"GET",{},{},!1)}function xu(e){return Ie(e,"GET",{},{"X-Splade-Modal":"modal"},!1)}function Au(e){return Ie(e,"GET",{},{"X-Splade-Modal":"slideover"},!1)}function Pu(e,t){return Ie(e,"GET",{},{"X-Splade-Lazy":t},!1)}function Cu(){return Ur(j.value.url)}const Wr=a.ref(()=>{}),zr=a.ref(()=>{}),Gr=a.ref(()=>{}),Kr=a.ref(()=>{}),m={init:lu,replace:Ur,visit:Tu,modal:xu,slideover:Au,refresh:Cu,request:Ie,lazy:Pu,replaceUrlOfCurrentPage:fu,htmlForDynamicComponent(e){return j.value.dynamics[e]},setOnHead(e){Wr.value=e},setOnHtml(e){zr.value=e},setOnModal(e){Gr.value=e},setOnServerError(e){Kr.value=e},hasValidationErrors:hu,validationErrors:Rr,sharedData:qr,flashData:gu,toasts:Ce,toastsReversed:vu,confirmModal:sn,confirm:wu,clearConfirmModal:Su,pushToast:yu,dismissToast:bu,restore:_u,remember:Hr,popStack:pu,currentStack:ee,pageVisitId:a.computed(()=>j.value.pageVisitId),dynamicVisitId:a.computed(()=>j.value.dynamicVisitId),isSsr:le},te={__name:"Render",props:{html:{type:String,required:!1,default:""}},setup(e){const t=e,n=a.ref(null);function r(){n.value=a.h({template:t.html})}return a.watch(()=>t.html,r,{immediate:!0}),(i,o)=>e.html?(a.openBlock(),a.createBlock(a.unref(n),{key:0})):a.createCommentVNode("",!0)}},Iu={__name:"ServerError",props:{html:{type:String,required:!0}},emits:["close"],setup(e,{emit:t}){const n=e;function r(){document.body.style.overflow="visible",document.removeEventListener("keydown",s),t("close")}const i=a.ref(null);function o(){const l=document.createElement("html");l.innerHTML=n.html,l.querySelectorAll("a").forEach(c=>c.setAttribute("target","_top")),document.body.style.overflow="hidden";const u=i.value;if(!u.contentWindow)throw new Error("iframe not yet ready.");u.contentWindow.document.open(),u.contentWindow.document.write(l.outerHTML),u.contentWindow.document.close(),document.addEventListener("keydown",s)}function s(l){l.keyCode===27&&r()}return a.onMounted(()=>o()),(l,u)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px","z-index":"200000","box-sizing":"border-box",height:"100vh",width:"100vw","background-color":"rgb(0 0 0 / 0.75)",padding:"2rem"},onClick:r},[a.createElementVNode("iframe",{ref_key:"iframeElement",ref:i,class:"bg-white w-full h-full"},null,512)]))}},Xr={__name:"SpladeApp",props:{el:{type:[String,Object],required:!1,default:""},components:{type:String,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.components)||""}}},initialHtml:{type:String,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.html)||""}}},initialDynamics:{type:Object,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.dynamics)||{}}}},initialSpladeData:{type:Object,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.splade)||{}}}}},setup(e){const t=e;a.provide("stack",0);const n=a.ref(),r=a.ref([]),i=a.ref(null),o=a.computed(()=>m.currentStack.value<1?[]:{filter:"blur(4px)","transition-property":"filter","transition-duration":"150ms","transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"});function s(){i.value=null}function l(d){r[d]=null,m.popStack()}const u=a.inject("$spladeOptions")||{};function c(d,h){let p=document.querySelector(`meta[${d}="${h}"]`);return p||(p=document.createElement("meta"),p[d]=h,document.getElementsByTagName("head")[0].appendChild(p),p)}function f(d){const h=d.name?c("name",d.name):c("property",d.property);be(d,(p,v)=>{h[v]=p})}return m.setOnHead(d=>{m.isSsr||(document.title=d.title,d.meta.forEach(h=>{f(h)}))}),m.setOnHtml((d,h)=>{r.value=[],n.value=d,a.nextTick(()=>{m.isSsr||window.scrollTo(0,h),u.transform_anchors&&[...document.querySelectorAll("a")].forEach(p=>{p.href==""||p.href.charAt(0)=="#"||p.__vnode.dynamicProps===null&&(p.hasAttribute("download")||(p.onclick=function(v){v.preventDefault(),m.visit(p.href)}))})})}),m.setOnModal(function(d,h){r.value[m.currentStack.value]={html:d,type:h}}),m.setOnServerError(function(d){i.value=d}),m.init(t.initialHtml,t.initialDynamics,t.initialSpladeData),(d,h)=>(a.openBlock(),a.createElementBlock("div",null,[a.unref(m).isSsr?(a.openBlock(),a.createBlock(te,{key:`visit.${a.unref(m).pageVisitId.value}`,style:a.normalizeStyle(a.unref(o)),html:n.value},null,8,["style","html"])):(a.openBlock(),a.createBlock(a.KeepAlive,{key:0,max:a.unref(u).max_keep_alive},[(a.openBlock(),a.createBlock(te,{key:`visit.${a.unref(m).pageVisitId.value}`,style:a.normalizeStyle(a.unref(o)),html:n.value},null,8,["style","html"]))],1032,["max"])),a.createVNode(te,{html:e.components},null,8,["html"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m).currentStack.value,p=>(a.openBlock(),a.createBlock(te,{key:`modal.${p}`,type:r.value[p].type,html:r.value[p].html,stack:p,"on-top-of-stack":a.unref(m).currentStack.value===p,onClose:v=>l(p)},null,8,["type","html","stack","on-top-of-stack","onClose"]))),128)),i.value?(a.openBlock(),a.createBlock(Iu,{key:2,html:i.value,onClose:s},null,8,["html"])):a.createCommentVNode("",!0)]))}};function Bu(e){return()=>a.h(Xr,e)}function U(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,U),r}var vt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vt||{}),ue=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ue||{});function L({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...i}){var o;let s=ju(r,n),l=Object.assign(i,{props:s});if(e||t&2&&s.static)return cn(l);if(t&1){let u=(o=s.unmount)==null||o?0:1;return U(u,{[0](){return null},[1](){return cn({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return cn(l)}function cn({props:e,attrs:t,slots:n,slot:r,name:i}){var o;let{as:s,...l}=Yr(e,["unmount","static"]),u=(o=n.default)==null?void 0:o.call(n,r),c={};if(r){let f=!1,d=[];for(let[h,p]of Object.entries(r))typeof p=="boolean"&&(f=!0),p===!0&&d.push(h);f&&(c["data-headlessui-state"]=d.join(" "))}if(s==="template"){if(u=Qr(u),Object.keys(l).length>0||Object.keys(t).length>0){let[f,...d]=u!=null?u:[];if(!Du(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).sort((h,p)=>h.localeCompare(p)).map(h=>` - ${h}`).join(` +(function(B,Ne){typeof exports=="object"&&typeof module<"u"?Ne(exports,require("axios"),require("vue")):typeof define=="function"&&define.amd?define(["exports","axios","vue"],Ne):(B=typeof globalThis<"u"?globalThis:B||self,Ne(B.ProtoneMediaLaravelSplade={},B.axios,B.Vue))})(this,function(B,Ne,a){"use strict";const Ln=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Ne),Od="",$d="";function Ui(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=bo}var wo="[object Arguments]",So="[object Array]",Oo="[object Boolean]",$o="[object Date]",Eo="[object Error]",_o="[object Function]",To="[object Map]",xo="[object Number]",Ao="[object Object]",Po="[object RegExp]",Co="[object Set]",Io="[object String]",Bo="[object WeakMap]",jo="[object ArrayBuffer]",Do="[object DataView]",ko="[object Float32Array]",Fo="[object Float64Array]",qo="[object Int8Array]",Mo="[object Int16Array]",Ro="[object Int32Array]",Lo="[object Uint8Array]",No="[object Uint8ClampedArray]",Vo="[object Uint16Array]",Ho="[object Uint32Array]",C={};C[ko]=C[Fo]=C[qo]=C[Mo]=C[Ro]=C[Lo]=C[No]=C[Vo]=C[Ho]=!0,C[wo]=C[So]=C[jo]=C[Oo]=C[Do]=C[$o]=C[Eo]=C[_o]=C[To]=C[xo]=C[Ao]=C[Po]=C[Co]=C[Io]=C[Bo]=!1;function Uo(e){return se(e)&&Mt(e.length)&&!!C[ae(e)]}function Wo(e){return function(t){return e(t)}}var Qn=typeof B=="object"&&B&&!B.nodeType&&B,He=Qn&&typeof module=="object"&&module&&!module.nodeType&&module,zo=He&&He.exports===Qn,Rt=zo&&Nn.process,Go=function(){try{var e=He&&He.require&&He.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch{}}();const Yn=Go;var Jn=Yn&&Yn.isTypedArray,Ko=Jn?Wo(Jn):Uo;const Zn=Ko;var Xo=Object.prototype,Qo=Xo.hasOwnProperty;function Yo(e,t){var n=q(e),r=!n&&zn(e),i=!n&&!r&&Ft(e),o=!n&&!r&&!i&&Zn(e),s=n||r||i||o,l=s?Ki(e.length,String):[],u=l.length;for(var c in e)(t||Qo.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qt(c,u)))&&l.push(c);return l}var Jo=Object.prototype;function Zo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jo;return e===n}function ea(e,t){return function(n){return e(t(n))}}var ta=ea(Object.keys,Object);const na=ta;var ra=Object.prototype,ia=ra.hasOwnProperty;function oa(e){if(!Zo(e))return na(e);var t=[];for(var n in Object(e))ia.call(e,n)&&n!="constructor"&&t.push(n);return t}function K(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var aa="[object AsyncFunction]",sa="[object Function]",la="[object GeneratorFunction]",ua="[object Proxy]";function er(e){if(!K(e))return!1;var t=ae(e);return t==sa||t==la||t==aa||t==ua}function rt(e){return e!=null&&Mt(e.length)&&!er(e)}function it(e){return rt(e)?Yo(e):oa(e)}function Lt(e,t){return e&&Gi(e,t,it)}function ca(e,t){return function(n,r){if(n==null)return n;if(!rt(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o-1}function ps(e,t){var n=this.__data__,r=st(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Y(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Cs(){this.__data__=new Y,this.size=0}function Is(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Bs(e){return this.__data__.get(e)}function js(e){return this.__data__.has(e)}var Ds=200;function ks(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!We||r.lengthl))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&il?new ut:void 0;for(o.set(e,t),o.set(t,e);++d=t||y<0||d&&S>=o}function x(){var g=nn();if(w(g))return A(g);l=setTimeout(x,b(g))}function A(g){return l=void 0,h&&r?p(g):(r=i=void 0,s)}function P(){l!==void 0&&clearTimeout(l),c=0,r=u=i=l=void 0}function E(){return l===void 0?s:A(nn())}function O(){var g=nn(),y=w(g);if(r=arguments,i=this,u=g,y){if(l===void 0)return v(u);if(d)return clearTimeout(l),l=setTimeout(x,t),p(u)}return l===void 0&&(l=setTimeout(x,t)),s}return O.cancel=P,O.flush=E,O}function zl(e,t,n){e=Xt(e),t=at(t);var r=e.length;n=n===void 0?r:dr(Ht(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Gl(e,t){var n=[];return Nt(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}function Kl(e,t){var n=q(e)?pr:Gl;return n(e,Ge(t))}function Xl(e){return function(t,n,r){var i=Object(t);if(!rt(t)){var o=Ge(n);t=it(t),n=function(l){return o(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Ql=Math.max;function Yl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ht(n);return i<0&&(i=Ql(r+i,0)),Ha(e,Ge(t),i)}var Jl=Xl(Yl);const Zl=Jl;function Ir(e){return e&&e.length?e[0]:void 0}function eu(e,t){var n=-1,r=rt(e)?Array(e.length):[];return Nt(e,function(i,o,s){r[++n]=t(i,o,s)}),r}function tu(e,t){var n=q(e)?rr:eu;return n(e,Ge(t))}function be(e,t){return e&&Lt(e,nr(t))}var nu=Object.prototype,ru=nu.hasOwnProperty;function iu(e,t){return e!=null&&ru.call(e,t)}function H(e,t){return e!=null&&Cr(e,t,iu)}var ou="[object String]";function dt(e){return typeof e=="string"||!q(e)&&se(e)&&ae(e)==ou}var au="[object Boolean]";function Br(e){return e===!0||e===!1||se(e)&&ae(e)==au}function jr(e,t){return ft(e,t)}function Dr(e,t){var n={};return t=Ge(t),Lt(e,function(r,i,o){cr(n,i,t(r,i,o))}),n}function su(e,t,n,r){if(!K(e))return e;t=Qt(t,e);for(var i=-1,o=t.length,s=o-1,l=e;l!=null&&++i"u";function lu(e,t,n){le||window.addEventListener("popstate",uu.bind(this)),Object.keys(t).length>0&&ht.value++,ln(n),mt(n.head),un(e);const r=le?"":location.href,i=on(r,n.head,e,t,{},rn.value,ht.value);Fr(i)}function uu(e){!e.state||(j.value=e.state,ee.value=0,mt(j.value.head),un(j.value.html,j.value.rememberedState.scrollY))}function on(e,t,n,r,i,o,s){const l={url:e,head:t,html:n,dynamics:r,rememberedState:i,pageVisitId:o,dynamicVisitId:s};return j.value=l,l}function cu(e){le||window.history.pushState(e,"",e.url)}function fu(e){const t=on(e,JSON.parse(JSON.stringify(j.value.head)),j.value.html,j.value.dynamics,{...j.value.rememberedState},j.value.pageVisitId,j.value.dynamicVisitId);le||window.history.replaceState(t,"",t.url)}function Fr(e){le||window.history.replaceState(e,"",e.url)}const an=a.ref(0);function du(e,t){an.value++;const n=e.request.responseURL;if(e.data.splade.lazy)return;e.data.splade.modal&&ee.value++,ln(e.data.splade),mt(e.data.splade.head);const r=n===j.value.url;if(r&&(t=!0),e.data.splade.modal)return Ou(e.data.html,e.data.splade.modal);if(e.data.splade.preventRefresh&&r)return;ee.value=0;let i=e.data.html,o=e.data.dynamics;const s=Object.keys(j.value.dynamics).length>0,l=Object.keys(o).length>0;t?(l&&be(o,(c,f)=>{o[f]+=``}),(!l||!s)&&(i+=``)):(l&&ht.value++,(!l||!s)&&rn.value++),un(i,0);const u=on(n,e.data.splade.head,i,o,j.value.rememberedState?{...j.value.rememberedState}:{},rn.value,ht.value);t?Fr(u):cu(u)}function pu(){ee.value--,mt(mu(ee.value))}const qr=a.ref({}),Mr=e=>qr.value[e],hu=e=>Object.keys(Mr.value[e]).length>0,Rr=a.ref({}),mu=e=>Rr.value[e],Lr=a.ref({}),gu=e=>Lr.value[e],Ce=a.ref([]);function vu(e){Ce.value.push(e)}const yu=a.computed(()=>ma(Ce.value));function bu(e){Ce.value[e].dismissed=!0,Ce.value[e].html=null}const sn=a.ref(null);function wu(e,t,n,r){let i,o;const s=new Promise((l,u)=>{i=l,o=u});return sn.value={title:e,text:t,confirmButton:n,cancelButton:r,resolvePromise:i,rejectPromise:o},s}function Su(){sn.value=null}const Nr=a.ref({});function ln(e){Nr.value=e.shared?e.shared:{},Lr.value[ee.value]=e.flash?e.flash:{},Rr.value[ee.value]=e.head?e.head:{},da(e.toasts?e.toasts:[],t=>{Ce.value.push(t)}),qr.value[ee.value]=e.errors?e.errors:{}}const Vr=a.ref(()=>{}),Hr=a.ref(()=>{}),Ur=a.ref(()=>{}),Wr=a.ref(()=>{});function mt(e){Vr.value(e)}function un(e,t){Hr.value(e,t)}function Ou(e,t){Ur.value(e,t)}function $u(e){Wr.value(e)}const zr=a.ref({});function Gr(e,t,n){zr.value[e]=t,n&&Eu(e,t)}function Eu(e,t){let n=JSON.parse(localStorage.getItem("splade")||"{}")||{};n[e]=t,localStorage.setItem("splade",JSON.stringify(n))}function _u(e,t){return t?(JSON.parse(localStorage.getItem("splade")||"{}")||{})[e]:zr.value[e]}function gt(e,t){le||document.dispatchEvent(new CustomEvent(`splade:${e}`,{detail:t}))}function Ie(e,t,n,r,i){le||Gr("scrollY",window.scrollY),gt("request",{url:e,method:t,data:n,headers:r,replace:i});const o=Ln.default({method:t,url:e,data:n,headers:{"X-Splade":!0,"X-Requested-With":"XMLHttpRequest",Accept:"text/html, application/xhtml+xml",...r},onUploadProgress:s=>{n instanceof FormData&&(s.percentage=Math.round(s.loaded/s.total*100),gt("request-progress",{url:e,method:t,data:n,headers:r,replace:i,progress:s}))}});return o.then(s=>{du(s,i),gt("request-response",{url:e,method:t,data:n,headers:r,replace:i,response:s})}).catch(s=>{gt("request-error",{url:e,method:t,data:n,headers:r,replace:i,error:s});const l=s.response.data.splade;l&&(l.lazy||ln(l)),s.response.status!=422&&$u(s.response.data.html?s.response.data.html:s.response.data)}),o}function Kr(e){return Ie(e,"GET",{},{},!0)}function Tu(e){return Ie(e,"GET",{},{},!1)}function xu(e){return Ie(e,"GET",{},{"X-Splade-Modal":"modal"},!1)}function Au(e){return Ie(e,"GET",{},{"X-Splade-Modal":"slideover"},!1)}function Pu(e,t){return Ie(e,"GET",{},{"X-Splade-Lazy":t},!1)}function Cu(){return Kr(j.value.url)}const m={init:lu,replace:Kr,visit:Tu,modal:xu,slideover:Au,refresh:Cu,request:Ie,lazy:Pu,replaceUrlOfCurrentPage:fu,htmlForDynamicComponent(e){return j.value.dynamics[e]},setOnHead(e){Vr.value=e},setOnHtml(e){Hr.value=e},setOnModal(e){Ur.value=e},setOnServerError(e){Wr.value=e},hasValidationErrors:hu,validationErrors:Mr,sharedData:Nr,flashData:gu,toasts:Ce,toastsReversed:yu,confirmModal:sn,confirm:wu,clearConfirmModal:Su,pushToast:vu,dismissToast:bu,restore:_u,remember:Gr,popStack:pu,currentStack:ee,pageVisitId:a.computed(()=>j.value.pageVisitId),dynamicVisitId:a.computed(()=>j.value.dynamicVisitId),isSsr:le},te={__name:"Render",props:{html:{type:String,required:!1,default:""}},setup(e){const t=e,n=a.ref(null);function r(){n.value=a.h({template:t.html})}return a.watch(()=>t.html,r,{immediate:!0}),(i,o)=>e.html?(a.openBlock(),a.createBlock(a.unref(n),{key:0})):a.createCommentVNode("",!0)}},Iu={__name:"ServerError",props:{html:{type:String,required:!0}},emits:["close"],setup(e,{emit:t}){const n=e,r=a.ref(null);function i(){const l=document.createElement("html");l.innerHTML=n.html,l.querySelectorAll("a").forEach(c=>c.setAttribute("target","_top")),document.body.style.overflow="hidden";const u=r.value;if(!u.contentWindow)throw new Error("iframe not yet ready.");u.contentWindow.document.open(),u.contentWindow.document.write(l.outerHTML),u.contentWindow.document.close(),document.addEventListener("keydown",o)}function o(l){l.keyCode===27&&s()}function s(){document.body.style.overflow="visible",document.removeEventListener("keydown",o),t("close")}return a.onMounted(()=>i()),(l,u)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px","z-index":"200000","box-sizing":"border-box",height:"100vh",width:"100vw","background-color":"rgb(0 0 0 / 0.75)",padding:"2rem"},onClick:s},[a.createElementVNode("iframe",{ref_key:"iframeElement",ref:r,class:"bg-white w-full h-full"},null,512)]))}},Xr={__name:"SpladeApp",props:{el:{type:[String,Object],required:!1,default:""},components:{type:String,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.components)||""}}},initialHtml:{type:String,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.html)||""}}},initialDynamics:{type:Object,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.dynamics)||{}}}},initialSpladeData:{type:Object,required:!1,default:e=>{if(!m.isSsr){const t=dt(e.el)?document.getElementById(e.el):e.el;return JSON.parse(t.dataset.splade)||{}}}}},setup(e){const t=e;a.provide("stack",0);const n=a.ref(),r=a.ref([]),i=a.ref(null),o=a.inject("$spladeOptions")||{},s=a.computed(()=>m.currentStack.value<1?[]:{filter:"blur(4px)","transition-property":"filter","transition-duration":"150ms","transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"});function l(){i.value=null}function u(d){r[d]=null,m.popStack()}function c(d,h){let p=document.querySelector(`meta[${d}="${h}"]`);return p||(p=document.createElement("meta"),p[d]=h,document.getElementsByTagName("head")[0].appendChild(p),p)}function f(d){const h=d.name?c("name",d.name):c("property",d.property);be(d,(p,v)=>{h[v]=p})}return m.setOnHead(d=>{m.isSsr||(document.title=d.title,d.meta.forEach(h=>{f(h)}))}),m.setOnHtml((d,h)=>{r.value=[],n.value=d,a.nextTick(()=>{m.isSsr||window.scrollTo(0,h),o.transform_anchors&&[...document.querySelectorAll("a")].forEach(p=>{p.href==""||p.href.charAt(0)=="#"||p.__vnode.dynamicProps===null&&(p.hasAttribute("download")||(p.onclick=function(v){v.preventDefault(),m.visit(p.href)}))})})}),m.setOnModal(function(d,h){r.value[m.currentStack.value]={html:d,type:h}}),m.setOnServerError(function(d){i.value=d}),m.init(t.initialHtml,t.initialDynamics,t.initialSpladeData),(d,h)=>(a.openBlock(),a.createElementBlock("div",null,[a.unref(m).isSsr?(a.openBlock(),a.createBlock(te,{key:`visit.${a.unref(m).pageVisitId.value}`,style:a.normalizeStyle(a.unref(s)),html:n.value},null,8,["style","html"])):(a.openBlock(),a.createBlock(a.KeepAlive,{key:0,max:a.unref(o).max_keep_alive},[(a.openBlock(),a.createBlock(te,{key:`visit.${a.unref(m).pageVisitId.value}`,style:a.normalizeStyle(a.unref(s)),html:n.value},null,8,["style","html"]))],1032,["max"])),a.createVNode(te,{html:e.components},null,8,["html"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m).currentStack.value,p=>(a.openBlock(),a.createBlock(te,{key:`modal.${p}`,type:r.value[p].type,html:r.value[p].html,stack:p,"on-top-of-stack":a.unref(m).currentStack.value===p,onClose:v=>u(p)},null,8,["type","html","stack","on-top-of-stack","onClose"]))),128)),i.value?(a.openBlock(),a.createBlock(Iu,{key:2,html:i.value,onClose:l},null,8,["html"])):a.createCommentVNode("",!0)]))}};function Bu(e){return()=>a.h(Xr,e)}function U(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,U),r}var vt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vt||{}),ue=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ue||{});function L({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...i}){var o;let s=ju(r,n),l=Object.assign(i,{props:s});if(e||t&2&&s.static)return cn(l);if(t&1){let u=(o=s.unmount)==null||o?0:1;return U(u,{[0](){return null},[1](){return cn({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return cn(l)}function cn({props:e,attrs:t,slots:n,slot:r,name:i}){var o;let{as:s,...l}=Yr(e,["unmount","static"]),u=(o=n.default)==null?void 0:o.call(n,r),c={};if(r){let f=!1,d=[];for(let[h,p]of Object.entries(r))typeof p=="boolean"&&(f=!0),p===!0&&d.push(h);f&&(c["data-headlessui-state"]=d.join(" "))}if(s==="template"){if(u=Qr(u),Object.keys(l).length>0||Object.keys(t).length>0){let[f,...d]=u!=null?u:[];if(!Du(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).sort((h,p)=>h.localeCompare(p)).map(h=>` - ${h}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(` `)].join(` `));return a.cloneVNode(f,Object.assign({},l,c))}return Array.isArray(u)&&u.length===1?u[0]:u}return a.h(s,Object.assign({},l,c),u)}function Qr(e){return e.flatMap(t=>t.type===a.Fragment?Qr(t.children):[t])}function ju(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let l of s){if(i instanceof Event&&i.defaultPrevented)return;l(i,...o)}}});return t}function Yr(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Du(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let ku=0;function Fu(){return++ku}function we(){return Fu()}var Jr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Jr||{});function ne(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let Zr=Symbol("Context");var Se=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Se||{});function qu(){return fn()!==null}function fn(){return a.inject(Zr,null)}function Mu(e){a.provide(Zr,e)}const yt=typeof window>"u"||typeof document>"u";function Be(e){if(yt)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ne(e);if(t)return t.ownerDocument}return document}let dn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ke=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ke||{}),ei=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ei||{}),Ru=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ru||{});function Lu(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(dn))}var ti=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ti||{});function Nu(e,t=0){var n;return e===((n=Be(e))==null?void 0:n.body)?!1:U(t,{[0](){return e.matches(dn)},[1](){let r=e;for(;r!==null;){if(r.matches(dn))return!0;r=r.parentElement}return!1}})}function Xe(e){e==null||e.focus({preventScroll:!0})}let Vu=["textarea","input"].join(",");function Hu(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Vu))!=null?n:!1}function Uu(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function pn(e,t,n=!0,r=null){var i;let o=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,s=Array.isArray(e)?n?Uu(e):e:Lu(e);r=r!=null?r:o.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,d=s.length,h;do{if(f>=d||f+d<=0)return 0;let p=u+f;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}h=s[p],h==null||h.focus(c),f+=l}while(h!==o.activeElement);return t&6&&Hu(h)&&h.select(),h.hasAttribute("tabindex")||h.setAttribute("tabindex","0"),2}function hn(e,t,n){yt||a.watchEffect(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Wu(e,t,n=a.computed(()=>!0)){function r(o,s){if(!n.value||o.defaultPrevented)return;let l=s(o);if(l===null||!l.ownerDocument.documentElement.contains(l))return;let u=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let c of u){if(c===null)continue;let f=c instanceof HTMLElement?c:ne(c);if(f!=null&&f.contains(l))return}return!Nu(l,ti.Loose)&&l.tabIndex!==-1&&o.preventDefault(),t(o,l)}let i=a.ref(null);hn("mousedown",o=>{n.value&&(i.value=o.target)},!0),hn("click",o=>{!i.value||(r(o,()=>i.value),i.value=null)},!0),hn("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var bt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bt||{});let mn=a.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...i}=e,o={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return L({ourProps:o,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function zu(e,t,n){yt||a.watchEffect(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}var gn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(gn||{});function Gu(){let e=a.ref(0);return zu("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function ni(e,t,n,r){yt||a.watchEffect(i=>{e=e!=null?e:window,e.addEventListener(t,n,r),i(()=>e.removeEventListener(t,n,r))})}function Ku(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}var ri=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(ri||{});let Qe=Object.assign(a.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:Object,default:a.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let i=a.ref(null);r({el:i,$el:i});let o=a.computed(()=>Be(i));Xu({ownerDocument:o},a.computed(()=>Boolean(e.features&16)));let s=Qu({ownerDocument:o,container:i,initialFocus:a.computed(()=>e.initialFocus)},a.computed(()=>Boolean(e.features&2)));Yu({ownerDocument:o,container:i,containers:e.containers,previousActiveElement:s},a.computed(()=>Boolean(e.features&8)));let l=Gu();function u(){let c=ne(i);!c||U(l.value,{[gn.Forwards]:()=>pn(c,Ke.First),[gn.Backwards]:()=>pn(c,Ke.Last)})}return()=>{let c={},f={ref:i},{features:d,initialFocus:h,containers:p,...v}=e;return a.h(a.Fragment,[Boolean(d&4)&&a.h(mn,{as:"button",type:"button",onFocus:u,features:bt.Focusable}),L({ourProps:f,theirProps:{...t,...v},slot:c,attrs:t,slots:n,name:"FocusTrap"}),Boolean(d&4)&&a.h(mn,{as:"button",type:"button",onFocus:u,features:bt.Focusable})])}}}),{features:ri});function Xu({ownerDocument:e},t){let n=a.ref(null);function r(){var o;n.value||(n.value=(o=e.value)==null?void 0:o.activeElement)}function i(){!n.value||(Xe(n.value),n.value=null)}a.onMounted(()=>{a.watch(t,(o,s)=>{o!==s&&(o?r():i())},{immediate:!0})}),a.onUnmounted(i)}function Qu({ownerDocument:e,container:t,initialFocus:n},r){let i=a.ref(null),o=a.ref(!1);return a.onMounted(()=>o.value=!0),a.onUnmounted(()=>o.value=!1),a.onMounted(()=>{a.watch([t,n,r],(s,l)=>{if(s.every((c,f)=>(l==null?void 0:l[f])===c)||!r.value)return;let u=ne(t);!u||Ku(()=>{var c,f;if(!o.value)return;let d=ne(n),h=(c=e.value)==null?void 0:c.activeElement;if(d){if(d===h){i.value=h;return}}else if(u.contains(h)){i.value=h;return}d?Xe(d):pn(u,Ke.First|Ke.NoScroll)===ei.Error&&console.warn("There are no focusable elements inside the "),i.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),i}function Yu({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){var o;ni((o=e.value)==null?void 0:o.defaultView,"focus",s=>{if(!i.value)return;let l=new Set(n==null?void 0:n.value);l.add(t);let u=r.value;if(!u)return;let c=s.target;c&&c instanceof HTMLElement?Ju(l,c)?(r.value=c,Xe(c)):(s.preventDefault(),s.stopPropagation(),Xe(u)):Xe(r.value)},!0)}function Ju(e,t){var n;for(let r of e)if((n=r.value)!=null&&n.contains(t))return!0;return!1}let ii="body > *",je=new Set,ce=new Map;function oi(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ai(e){let t=ce.get(e);!t||(t["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function Zu(e,t=a.ref(!0)){a.watchEffect(n=>{if(!t.value||!e.value)return;let r=e.value,i=Be(r);if(i){je.add(r);for(let o of ce.keys())o.contains(r)&&(ai(o),ce.delete(o));i.querySelectorAll(ii).forEach(o=>{if(o instanceof HTMLElement){for(let s of je)if(o.contains(s))return;je.size===1&&(ce.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),oi(o))}}),n(()=>{if(je.delete(r),je.size>0)i.querySelectorAll(ii).forEach(o=>{if(o instanceof HTMLElement&&!ce.has(o)){for(let s of je)if(o.contains(s))return;ce.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),oi(o)}});else for(let o of ce.keys())ai(o),ce.delete(o)})}})}let si=Symbol("ForcePortalRootContext");function ec(){return a.inject(si,!1)}let vn=a.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return a.provide(si,e.force),()=>{let{force:r,...i}=e;return L({theirProps:i,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function tc(e){let t=Be(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}let li=a.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=a.ref(null),i=a.computed(()=>Be(r)),o=ec(),s=a.inject(ui,null),l=a.ref(o===!0||s==null?tc(r.value):s.resolveTarget());return a.watchEffect(()=>{o||s!=null&&(l.value=s.resolveTarget())}),a.onUnmounted(()=>{var u,c;let f=(u=i.value)==null?void 0:u.getElementById("headlessui-portal-root");!f||l.value===f&&l.value.children.length<=0&&((c=l.value.parentElement)==null||c.removeChild(l.value))}),()=>{if(l.value===null)return null;let u={ref:r,"data-headlessui-portal":""};return a.h(a.Teleport,{to:l.value},L({ourProps:u,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),ui=Symbol("PortalGroupContext"),nc=a.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=a.reactive({resolveTarget(){return e.target}});return a.provide(ui,r),()=>{let{target:i,...o}=e;return L({theirProps:o,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),ci=Symbol("StackContext");var yn=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(yn||{});function rc(){return a.inject(ci,()=>{})}function ic({type:e,enabled:t,element:n,onUpdate:r}){let i=rc();function o(...s){r==null||r(...s),i(...s)}a.onMounted(()=>{a.watch(t,(s,l)=>{s?o(0,e,n):l===!0&&o(1,e,n)},{immediate:!0,flush:"sync"})}),a.onUnmounted(()=>{t.value&&o(1,e,n)}),a.provide(ci,o)}let fi=Symbol("DescriptionContext");function oc(){let e=a.inject(fi,null);if(e===null)throw new Error("Missing parent");return e}function ac({slot:e=a.ref({}),name:t="Description",props:n={}}={}){let r=a.ref([]);function i(o){return r.value.push(o),()=>{let s=r.value.indexOf(o);s!==-1&&r.value.splice(s,1)}}return a.provide(fi,{register:i,slot:e,name:t,props:n}),a.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let sc=a.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},setup(e,{attrs:t,slots:n}){let r=oc(),i=`headlessui-description-${we()}`;return a.onMounted(()=>a.onUnmounted(r.register(i))),()=>{let{name:o="Description",slot:s=a.ref({}),props:l={}}=r,u=e,c={...Object.entries(l).reduce((f,[d,h])=>Object.assign(f,{[d]:a.unref(h)}),{}),id:i};return L({ourProps:c,theirProps:u,slot:s.value,attrs:t,slots:n,name:o})}}});function bn(){let e=[],t=[],n={enqueue(r){t.push(r)},addEventListener(r,i,o,s){return r.addEventListener(i,o,s),n.add(()=>r.removeEventListener(i,o,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);n.add(()=>cancelAnimationFrame(i))},nextFrame(...r){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...r)})},setTimeout(...r){let i=setTimeout(...r);n.add(()=>clearTimeout(i))},add(r){e.push(r)},dispose(){for(let r of e.splice(0))r()},async workQueue(){for(let r of t.splice(0))await r()}};return n}function lc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var uc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(uc||{});let wn=Symbol("DialogContext");function Ye(e){let t=a.inject(wn,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ye),n}return t}let wt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Sn=a.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:wt},initialFocus:{type:Object,default:null}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var o;let s=a.ref(!1);a.onMounted(()=>{s.value=!0});let l=a.ref(0),u=fn(),c=a.computed(()=>e.open===wt&&u!==null?U(u.value,{[Se.Open]:!0,[Se.Closed]:!1}):e.open),f=a.ref(new Set),d=a.ref(null),h=a.ref(null),p=a.computed(()=>Be(d));if(i({el:d,$el:d}),!(e.open!==wt||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===wt?void 0:e.open}`);let v=a.computed(()=>s.value&&c.value?0:1),b=a.computed(()=>v.value===0),w=a.computed(()=>l.value>1),x=a.inject(wn,null)!==null,A=a.computed(()=>w.value?"parent":"leaf");Zu(d,a.computed(()=>w.value?b.value:!1)),ic({type:"Dialog",enabled:a.computed(()=>v.value===0),element:d,onUpdate:(y,S,_)=>{if(S==="Dialog")return U(y,{[yn.Add](){f.value.add(_),l.value+=1},[yn.Remove](){f.value.delete(_),l.value-=1}})}});let P=ac({name:"DialogDescription",slot:a.computed(()=>({open:c.value}))}),E=`headlessui-dialog-${we()}`,O=a.ref(null),g={titleId:O,panelRef:a.ref(null),dialogState:v,setTitleId(y){O.value!==y&&(O.value=y)},close(){t("close",!1)}};return a.provide(wn,g),Wu(()=>{var y,S,_;return[...Array.from((S=(y=p.value)==null?void 0:y.querySelectorAll("body > *, [data-headlessui-portal]"))!=null?S:[]).filter(T=>!(!(T instanceof HTMLElement)||T.contains(ne(h))||g.panelRef.value&&T.contains(g.panelRef.value))),(_=g.panelRef.value)!=null?_:d.value]},(y,S)=>{g.close(),a.nextTick(()=>S==null?void 0:S.focus())},a.computed(()=>v.value===0&&!w.value)),ni((o=p.value)==null?void 0:o.defaultView,"keydown",y=>{y.defaultPrevented||y.key===Jr.Escape&&v.value===0&&(w.value||(y.preventDefault(),y.stopPropagation(),g.close()))}),a.watchEffect(y=>{var S;if(v.value!==0||x)return;let _=p.value;if(!_)return;let T=bn();function $(k,R,F){let M=k.style.getPropertyValue(R);return Object.assign(k.style,{[R]:F}),T.add(()=>{Object.assign(k.style,{[R]:M})})}let I=_==null?void 0:_.documentElement,D=((S=_.defaultView)!=null?S:window).innerWidth-I.clientWidth;if($(I,"overflow","hidden"),D>0){let k=I.clientWidth-I.offsetWidth,R=D-k;$(I,"paddingRight",`${R}px`)}if(lc()){let k=window.pageYOffset;$(I,"position","fixed"),$(I,"marginTop",`-${k}px`),$(I,"width","100%"),T.add(()=>window.scrollTo(0,k))}y(T.dispose)}),a.watchEffect(y=>{if(v.value!==0)return;let S=ne(d);if(!S)return;let _=new IntersectionObserver(T=>{for(let $ of T)$.boundingClientRect.x===0&&$.boundingClientRect.y===0&&$.boundingClientRect.width===0&&$.boundingClientRect.height===0&&g.close()});_.observe(S),y(()=>_.disconnect())}),()=>{let y={...n,ref:d,id:E,role:"dialog","aria-modal":v.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":P.value},{open:S,initialFocus:_,...T}=e,$={open:v.value===0};return a.h(vn,{force:!0},()=>[a.h(li,()=>a.h(nc,{target:d.value},()=>a.h(vn,{force:!1},()=>a.h(Qe,{initialFocus:_,containers:f,features:b.value?U(A.value,{parent:Qe.features.RestoreFocus,leaf:Qe.features.All&~Qe.features.FocusLock}):Qe.features.None},()=>L({ourProps:y,theirProps:T,slot:$,attrs:n,slots:r,visible:v.value===0,features:vt.RenderStrategy|vt.Static,name:"Dialog"}))))),a.h(mn,{features:bt.Hidden,ref:h})])}}});a.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){let r=Ye("DialogOverlay"),i=`headlessui-dialog-overlay-${we()}`;function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),r.close())}return()=>L({ourProps:{id:i,"aria-hidden":!0,onClick:o},theirProps:e,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}),a.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let i=Ye("DialogBackdrop"),o=`headlessui-dialog-backdrop-${we()}`,s=a.ref(null);return r({el:s,$el:s}),a.onMounted(()=>{if(i.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let l=e,u={id:o,ref:s,"aria-hidden":!0};return a.h(vn,{force:!0},()=>a.h(li,()=>L({ourProps:u,theirProps:{...t,...l},slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let On=a.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let i=Ye("DialogPanel"),o=`headlessui-dialog-panel-${we()}`;r({el:i.panelRef,$el:i.panelRef});function s(l){l.stopPropagation()}return()=>{let l={id:o,ref:i.panelRef,onClick:s};return L({ourProps:l,theirProps:e,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});a.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},setup(e,{attrs:t,slots:n}){let r=Ye("DialogTitle"),i=`headlessui-dialog-title-${we()}`;return a.onMounted(()=>{r.setTitleId(i),a.onUnmounted(()=>r.setTitleId(null))}),()=>L({ourProps:{id:i},theirProps:e,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}});function cc(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $n(e,...t){e&&t.length>0&&e.classList.add(...t)}function St(e,...t){e&&t.length>0&&e.classList.remove(...t)}var En=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(En||{});function fc(e,t){let n=bn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,s]=[r,i].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,f)=>f-c);return u});return o!==0?n.setTimeout(()=>t("finished"),o+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function di(e,t,n,r,i,o){let s=bn(),l=o!==void 0?cc(o):()=>{};return St(e,...i),$n(e,...t,...n),s.nextFrame(()=>{St(e,...n),$n(e,...r),s.add(fc(e,u=>(St(e,...r,...t),$n(e,...i),l(u))))}),s.add(()=>St(e,...t,...n,...r,...i)),s.add(()=>l("cancelled")),s.dispose}function Oe(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let _n=Symbol("TransitionContext");var dc=(e=>(e.Visible="visible",e.Hidden="hidden",e))(dc||{});function pc(){return a.inject(_n,null)!==null}function hc(){let e=a.inject(_n,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function mc(){let e=a.inject(Tn,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let Tn=Symbol("NestingContext");function Ot(e){return"children"in e?Ot(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function pi(e){let t=a.ref([]),n=a.ref(!1);a.onMounted(()=>n.value=!0),a.onUnmounted(()=>n.value=!1);function r(o,s=ue.Hidden){let l=t.value.findIndex(({id:u})=>u===o);l!==-1&&(U(s,{[ue.Unmount](){t.value.splice(l,1)},[ue.Hidden](){t.value[l].state="hidden"}}),!Ot(t)&&n.value&&(e==null||e()))}function i(o){let s=t.value.find(({id:l})=>l===o);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:o,state:"visible"}),()=>r(o,ue.Unmount)}return{children:t,register:i,unregister:r}}let hi=vt.RenderStrategy,De=a.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){if(!pc()&&qu())return()=>a.h(ke,{...e,onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave")},r);let o=a.ref(null),s=a.ref("visible"),l=a.computed(()=>e.unmount?ue.Unmount:ue.Hidden);i({el:o,$el:o});let{show:u,appear:c}=hc(),{register:f,unregister:d}=mc(),h={value:!0},p=we(),v={value:!1},b=pi(()=>{v.value||(s.value="hidden",d(p),t("afterLeave"))});a.onMounted(()=>{let S=f(p);a.onUnmounted(S)}),a.watchEffect(()=>{if(l.value===ue.Hidden&&!!p){if(u&&s.value!=="visible"){s.value="visible";return}U(s.value,{hidden:()=>d(p),visible:()=>f(p)})}});let w=Oe(e.enter),x=Oe(e.enterFrom),A=Oe(e.enterTo),P=Oe(e.entered),E=Oe(e.leave),O=Oe(e.leaveFrom),g=Oe(e.leaveTo);a.onMounted(()=>{a.watchEffect(()=>{if(s.value==="visible"){let S=ne(o);if(S instanceof Comment&&S.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function y(S){let _=h.value&&!c.value,T=ne(o);!T||!(T instanceof HTMLElement)||_||(v.value=!0,u.value&&t("beforeEnter"),u.value||t("beforeLeave"),S(u.value?di(T,w,x,A,P,$=>{v.value=!1,$===En.Finished&&t("afterEnter")}):di(T,E,O,g,P,$=>{v.value=!1,$===En.Finished&&(Ot(b)||(s.value="hidden",d(p),t("afterLeave")))})))}return a.onMounted(()=>{a.watch([u],(S,_,T)=>{y(T),h.value=!1},{immediate:!0})}),a.provide(Tn,b),Mu(a.computed(()=>U(s.value,{visible:Se.Open,hidden:Se.Closed}))),()=>{let{appear:S,show:_,enter:T,enterFrom:$,enterTo:I,entered:D,leave:k,leaveFrom:R,leaveTo:F,...M}=e;return L({theirProps:M,ourProps:{ref:o},slot:{},slots:r,attrs:n,features:hi,visible:s.value==="visible",name:"TransitionChild"})}}}),gc=De,ke=a.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let i=fn(),o=a.computed(()=>e.show===null&&i!==null?U(i.value,{[Se.Open]:!0,[Se.Closed]:!1}):e.show);a.watchEffect(()=>{if(![!0,!1].includes(o.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let s=a.ref(o.value?"visible":"hidden"),l=pi(()=>{s.value="hidden"}),u=a.ref(!0),c={show:o,appear:a.computed(()=>e.appear||!u.value)};return a.onMounted(()=>{a.watchEffect(()=>{u.value=!1,o.value?s.value="visible":Ot(l)||(s.value="hidden")})}),a.provide(Tn,l),a.provide(_n,c),()=>{let f=Yr(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return L({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[a.h(gc,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...f},r.default)]},attrs:{},features:hi,visible:s.value==="visible",name:"Transition"})}}});const vc={props:{defaultTitle:{type:String,required:!1,default:""},defaultText:{type:String,required:!1,default:""},defaultConfirmButton:{type:String,required:!1,default:""},defaultCancelButton:{type:String,required:!1,default:""}},data(){return{isOpen:!1}},computed:{hasConfirmModal:()=>!!m.confirmModal.value,title:function(){var e;return(e=m.confirmModal.value)!=null&&e.title?m.confirmModal.value.title:this.defaultTitle},text:function(){var e;return(e=m.confirmModal.value)!=null&&e.text?m.confirmModal.value.text:this.defaultText},confirmButton:function(){var e;return(e=m.confirmModal.value)!=null&&e.confirmButton?m.confirmModal.value.confirmButton:this.defaultConfirmButton},cancelButton:function(){var e;return(e=m.confirmModal.value)!=null&&e.cancelButton?m.confirmModal.value.cancelButton:this.defaultCancelButton}},watch:{hasConfirmModal(e){e&&(this.isOpen=!0)}},methods:{cancel(){m.confirmModal.value.rejectPromise(),this.setIsOpen(!1)},confirm(){m.confirmModal.value.resolvePromise(),this.setIsOpen(!1)},setIsOpen(e){this.isOpen=e},emitClose(){m.clearConfirmModal()}},render(){return this.$slots.default({title:this.title,text:this.text,confirmButton:this.confirmButton,cancelButton:this.cancelButton,isOpen:this.isOpen,setIsOpen:this.setIsOpen,cancel:this.cancel,confirm:this.confirm,emitClose:this.emitClose,Dialog:Sn,DialogPanel:On,TransitionRoot:ke,TransitionChild:De})}},yc={props:{default:{type:Object,default:()=>({}),required:!1},remember:{type:String,default:null,required:!1},localStorage:{type:Boolean,default:!1,required:!1}},data(){return{values:{}}},mounted(){if(this.remember){let e=m.restore(this.remember,this.localStorage);e||(e={}),this.values=Object.assign({},{...this.default,...e})}else this.values=Object.assign({},{...this.default})},updated(){this.remember&&m.remember(this.remember,{...this.values},this.localStorage)},render(){const e=this;return this.$slots.default(new Proxy(this.values,{ownKeys(){return Object.keys(e.values)},get(t,n){return Yt(e.values,n)},set(t,n,r){kr(e.values,n,r)}}))}},bc={props:{url:{type:String,required:!0},method:{type:String,required:!1,default:"GET"},acceptHeader:{type:String,required:!1,default:"application/json"},poll:{type:Number,required:!1,default:null},default:{type:Object,required:!1,default:()=>({})},request:{type:Object,required:!1,default:()=>({})}},data(){return{response:Object.assign({},{...this.default}),processing:!1}},mounted(){this.$nextTick(this.performRequest)},methods:{performRequest(){this.processing=!0;const e={url:this.url,method:this.method,headers:{Accept:this.acceptHeader}};Object.keys(this.request).length>0&&(e.data=this.request),Ln.default(e).then(t=>{this.response=t.data,this.processing=!1}).catch(()=>{this.processing=!1}),this.poll&&setTimeout(()=>{this.performRequest()},this.poll)}},render(){return this.$slots.default({processing:this.processing,response:this.response,reload:this.performRequest})}},wc={render(){return this.$slots.default({Dialog:Sn,DialogPanel:On})}},mi={__name:"OnClickOutside",props:{do:{type:Function,required:!0},opened:{type:Boolean,required:!0},closeOnEscape:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,n=a.ref(null),r=a.ref(null),i=a.ref(null);return a.onMounted(()=>{n.value=o=>{o.target===r.value||r.value.contains(o.target)||t.do()},document.addEventListener("click",n.value),document.addEventListener("touchstart",n.value),t.closeOnEscape&&(i.value=o=>{t.opened&&o.key==="Escape"&&t.do()},document.addEventListener("keydown",i.value))}),a.onBeforeUnmount(()=>{document.removeEventListener("click",n.value),document.removeEventListener("touchstart",n.value),t.closeOnEscape&&document.removeEventListener("keydown",i.value)}),(o,s)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"root",ref:r},[a.renderSlot(o.$slots,"default")],512))}};function N(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $e(e){var t=N(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=N(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xn(e){if(typeof ShadowRoot>"u")return!1;var t=N(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ee=Math.max,$t=Math.min,Fe=Math.round;function An(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gi(){return!/^((?!chrome|android).)*safari/i.test(An())}function qe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&V(e)&&(i=e.offsetWidth>0&&Fe(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Fe(r.height)/e.offsetHeight||1);var s=$e(e)?N(e):window,l=s.visualViewport,u=!gi()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/i,f=(r.top+(u&&l?l.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:f,right:c+d,bottom:f+h,left:c,x:c,y:f}}function Pn(e){var t=N(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oc(e){return e===N(e)||!V(e)?Pn(e):Sc(e)}function X(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){return(($e(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cn(e){return qe(fe(e)).left+Pn(e).scrollLeft}function W(e){return N(e).getComputedStyle(e)}function In(e){var t=W(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $c(e){var t=e.getBoundingClientRect(),n=Fe(t.width)/e.offsetWidth||1,r=Fe(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ec(e,t,n){n===void 0&&(n=!1);var r=V(t),i=V(t)&&$c(t),o=fe(t),s=qe(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((X(t)!=="body"||In(o))&&(l=Oc(t)),V(t)?(u=qe(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Cn(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function vi(e){var t=qe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Et(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(xn(e)?e.host:null)||fe(e)}function yi(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:V(e)&&In(e)?e:yi(Et(e))}function Je(e,t){var n;t===void 0&&(t=[]);var r=yi(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=N(r),s=i?[o].concat(o.visualViewport||[],In(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Je(Et(s)))}function _c(e){return["table","td","th"].indexOf(X(e))>=0}function bi(e){return!V(e)||W(e).position==="fixed"?null:e.offsetParent}function Tc(e){var t=/firefox/i.test(An()),n=/Trident/i.test(An());if(n&&V(e)){var r=W(e);if(r.position==="fixed")return null}var i=Et(e);for(xn(i)&&(i=i.host);V(i)&&["html","body"].indexOf(X(i))<0;){var o=W(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _t(e){for(var t=N(e),n=bi(e);n&&_c(n)&&W(n).position==="static";)n=bi(n);return n&&(X(n)==="html"||X(n)==="body"&&W(n).position==="static")?t:n||Tc(e)||t}var z="top",Q="bottom",de="right",re="left",Tt="auto",xt=[z,Q,de,re],Me="start",Ze="end",xc="clippingParents",wi="viewport",et="popper",Ac="reference",Si=xt.reduce(function(e,t){return e.concat([t+"-"+Me,t+"-"+Ze])},[]),Pc=[].concat(xt,[Tt]).reduce(function(e,t){return e.concat([t,t+"-"+Me,t+"-"+Ze])},[]),Cc="beforeRead",Ic="read",Bc="afterRead",jc="beforeMain",Dc="main",kc="afterMain",Fc="beforeWrite",qc="write",Mc="afterWrite",Bn=[Cc,Ic,Bc,jc,Dc,kc,Fc,qc,Mc];function Rc(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Lc(e){var t=Rc(e);return Bn.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Nc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0,r=n&&V(e)?_t(e):e;return $e(r)?t.filter(function(i){return $e(i)&&Kc(i,r)&&X(i)!=="body"}):[]}function Yc(e,t,n,r){var i=t==="clippingParents"?Qc(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(u,c){var f=$i(e,c,r);return u.top=Ee(f.top,u.top),u.right=$t(f.right,u.right),u.bottom=$t(f.bottom,u.bottom),u.left=Ee(f.left,u.left),u},$i(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Re(e){return e.split("-")[1]}function Ei(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _i(e){var t=e.reference,n=e.element,r=e.placement,i=r?ie(r):null,o=r?Re(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(i){case z:u={x:s,y:t.y-n.height};break;case Q:u={x:s,y:t.y+t.height};break;case de:u={x:t.x+t.width,y:l};break;case re:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?Ei(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Me:u[c]=u[c]-(t[f]/2-n[f]/2);break;case Ze:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Ti(){return{top:0,right:0,bottom:0,left:0}}function Jc(e){return Object.assign({},Ti(),e)}function Zc(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Dn(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,u=l===void 0?xc:l,c=n.rootBoundary,f=c===void 0?wi:c,d=n.elementContext,h=d===void 0?et:d,p=n.altBoundary,v=p===void 0?!1:p,b=n.padding,w=b===void 0?0:b,x=Jc(typeof w!="number"?w:Zc(w,xt)),A=h===et?Ac:et,P=e.rects.popper,E=e.elements[v?A:h],O=Yc($e(E)?E:E.contextElement||fe(e.elements.popper),u,f,s),g=qe(e.elements.reference),y=_i({reference:g,element:P,strategy:"absolute",placement:i}),S=jn(Object.assign({},P,y)),_=h===et?S:g,T={top:O.top-_.top+x.top,bottom:_.bottom-O.bottom+x.bottom,left:O.left-_.left+x.left,right:_.right-O.right+x.right},$=e.modifiersData.offset;if(h===et&&$){var I=$[i];Object.keys(T).forEach(function(D){var k=[de,Q].indexOf(D)>=0?1:-1,R=[z,Q].indexOf(D)>=0?"y":"x";T[D]+=I[R]*k})}return T}var xi="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ef="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ai={placement:"bottom",modifiers:[],strategy:"absolute"};function Pi(){for(var e=arguments.length,t=new Array(e),n=0;n100)){console.error(ef);break}if(f.reset===!0){f.reset=!1,O=-1;continue}var g=f.orderedModifiers[O],y=g.fn,S=g.options,_=S===void 0?{}:S,T=g.name;typeof y=="function"&&(f=y({state:f,options:_,name:T,instance:p})||f)}}},update:Nc(function(){return new Promise(function(w){p.forceUpdate(),w(f)})}),destroy:function(){b(),h=!0}};if(!Pi(l,u))return process.env.NODE_ENV!=="production"&&console.error(xi),p;p.setOptions(c).then(function(w){!h&&c.onFirstUpdate&&c.onFirstUpdate(w)});function v(){f.orderedModifiers.forEach(function(w){var x=w.name,A=w.options,P=A===void 0?{}:A,E=w.effect;if(typeof E=="function"){var O=E({state:f,name:x,instance:p,options:P}),g=function(){};d.push(O||g)}})}function b(){d.forEach(function(w){return w()}),d=[]}return p}}var At={passive:!0};function nf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,u=N(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,At)}),l&&u.addEventListener("resize",n.update,At),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,At)}),l&&u.removeEventListener("resize",n.update,At)}}const rf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nf,data:{}};function of(e){var t=e.state,n=e.name;t.modifiersData[n]=_i({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const af={name:"popperOffsets",enabled:!0,phase:"read",fn:of,data:{}};var sf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lf(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Fe(t*i)/i||0,y:Fe(n*i)/i||0}}function Ci(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=s.x,p=h===void 0?0:h,v=s.y,b=v===void 0?0:v,w=typeof f=="function"?f({x:p,y:b}):{x:p,y:b};p=w.x,b=w.y;var x=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),P=re,E=z,O=window;if(c){var g=_t(n),y="clientHeight",S="clientWidth";if(g===N(n)&&(g=fe(n),W(g).position!=="static"&&l==="absolute"&&(y="scrollHeight",S="scrollWidth")),g=g,i===z||(i===re||i===de)&&o===Ze){E=Q;var _=d&&g===O&&O.visualViewport?O.visualViewport.height:g[y];b-=_-r.height,b*=u?1:-1}if(i===re||(i===z||i===Q)&&o===Ze){P=de;var T=d&&g===O&&O.visualViewport?O.visualViewport.width:g[S];p-=T-r.width,p*=u?1:-1}}var $=Object.assign({position:l},c&&sf),I=f===!0?lf({x:p,y:b}):{x:p,y:b};if(p=I.x,b=I.y,u){var D;return Object.assign({},$,(D={},D[E]=A?"0":"",D[P]=x?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",D))}return Object.assign({},$,(t={},t[E]=A?b+"px":"",t[P]=x?p+"px":"",t.transform="",t))}function uf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var c=W(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(d){return c.indexOf(d)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` diff --git a/package-lock.json b/package-lock.json index 1999ce13..71037152 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@protonemedia/laravel-splade", - "version": "0.5.0", + "version": "0.5.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@protonemedia/laravel-splade", - "version": "0.5.0", + "version": "0.5.5", "license": "MIT", "dependencies": { "autosize": "^5.0.1", @@ -1086,13 +1086,13 @@ } }, "node_modules/eslint": { - "version": "8.23.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.1.tgz", - "integrity": "sha512-w7C1IXCc6fNqjpuYd0yPlcTKKmHlHHktRkzmBPZ+7cvNBQuiNjx0xaMTjAJGCafJhQkrFJooREv0CtrVzmHwqg==", + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.2", - "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/config-array": "^0.10.5", "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", "@humanwhocodes/module-importer": "^1.0.1", "ajv": "^6.10.0", @@ -3254,13 +3254,13 @@ "dev": true }, "eslint": { - "version": "8.23.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.1.tgz", - "integrity": "sha512-w7C1IXCc6fNqjpuYd0yPlcTKKmHlHHktRkzmBPZ+7cvNBQuiNjx0xaMTjAJGCafJhQkrFJooREv0CtrVzmHwqg==", + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.2", - "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/config-array": "^0.10.5", "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", "@humanwhocodes/module-importer": "^1.0.1", "ajv": "^6.10.0", diff --git a/package.json b/package.json index 6f0d6b68..486a977b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@protonemedia/laravel-splade", - "version": "0.5.0", + "version": "0.5.5", "description": "Laravel Splade: the magic of Inertia.js with the simplicity of Blade.", "private": false, "author": "Pascal Baljet ", diff --git a/src/Commands/SpladeInstallCommand.php b/src/Commands/SpladeInstallCommand.php index 05c27da4..e79ecc9e 100644 --- a/src/Commands/SpladeInstallCommand.php +++ b/src/Commands/SpladeInstallCommand.php @@ -30,7 +30,7 @@ public function handle(): int // Install NPM packages... $this->updateNodePackages(function ($packages) { return [ - '@protonemedia/laravel-splade' => '^0.5.0', + '@protonemedia/laravel-splade' => '^0.5.5', '@tailwindcss/forms' => '^0.5.2', '@tailwindcss/typography' => '^0.5.2', '@vitejs/plugin-vue' => '^3.0.0',