From 9a2b741ac6f0a107e5a400c619e7e422efd024d2 Mon Sep 17 00:00:00 2001 From: Angelos Michalopoulos Date: Mon, 1 Apr 2024 18:22:59 +0300 Subject: [PATCH] fix broken dependsOn functionality --- dist/css/entry.css | 2 +- dist/js/entry.js | 2 +- dist/js/entry.js.LICENSE.txt | 9 + package-lock.json | 1512 +++++++++++++------------ package.json | 26 +- resources/js/components/FormField.vue | 6 +- 6 files changed, 787 insertions(+), 770 deletions(-) diff --git a/dist/css/entry.css b/dist/css/entry.css index 7013375..3194e9a 100644 --- a/dist/css/entry.css +++ b/dist/css/entry.css @@ -1 +1 @@ -.o1-relative{position:relative}.o1-ml-3{margin-left:.75rem}.o1-ml-auto{margin-left:auto}.o1-mr-3{margin-right:.75rem}.o1-flex{display:flex}.o1-table{display:table}.o1-w-full{width:100%}.o1-cursor-pointer{cursor:pointer}.o1-items-center{align-items:center}.o1-justify-center{justify-content:center}.o1-overflow-hidden{overflow:hidden}.o1-rounded-lg{border-radius:.5rem}.o1-rounded-md{border-radius:.375rem}.o1-border{border-width:1px}.o1-border-b{border-bottom-width:1px}.o1-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity))}.o1-fill-current{fill:currentColor}.o1-fill-inherit{fill:inherit}.o1-py-2{padding-bottom:.5rem;padding-top:.5rem}.o1-pl-1{padding-left:.25rem}.o1-pl-3{padding-left:.75rem}.o1-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.o1-text-sm{font-size:.875rem;line-height:1.25rem}.o1-font-bold{font-weight:700}.o1-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.o1-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.odd\:o1-bg-slate-50:nth-child(odd){--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.hover\:o1-bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:o1-fill-red-600:hover{fill:#dc2626}:is(.o1-dark .dark\:o1-border-slate-600){--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity))}:is(.o1-dark .dark\:o1-bg-slate-800){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}:is(.o1-dark .dark\:odd\:o1-bg-slate-700:nth-child(odd)){--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}:is(.o1-dark .dark\:hover\:o1-bg-slate-600:hover){--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))} +.o1-relative{position:relative}.o1-ml-3{margin-left:.75rem}.o1-ml-auto{margin-left:auto}.o1-mr-3{margin-right:.75rem}.o1-flex{display:flex}.o1-table{display:table}.o1-w-full{width:100%}.o1-cursor-pointer{cursor:pointer}.o1-items-center{align-items:center}.o1-justify-center{justify-content:center}.o1-overflow-hidden{overflow:hidden}.o1-rounded-lg{border-radius:.5rem}.o1-rounded-md{border-radius:.375rem}.o1-border{border-width:1px}.o1-border-b{border-bottom-width:1px}.o1-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity))}.o1-fill-current{fill:currentColor}.o1-fill-inherit{fill:inherit}.o1-py-2{padding-bottom:.5rem;padding-top:.5rem}.o1-pl-1{padding-left:.25rem}.o1-pl-3{padding-left:.75rem}.o1-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.o1-text-sm{font-size:.875rem;line-height:1.25rem}.o1-font-bold{font-weight:700}.o1-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.o1-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.odd\:o1-bg-slate-50:nth-child(odd){--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.hover\:o1-bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:o1-fill-red-600:hover{fill:#dc2626}.dark\:o1-border-slate-600:is(.o1-dark *){--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity))}.dark\:o1-bg-slate-800:is(.o1-dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:odd\:o1-bg-slate-700:nth-child(odd):is(.o1-dark *){--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.dark\:hover\:o1-bg-slate-600:hover:is(.o1-dark *){--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))} diff --git a/dist/js/entry.js b/dist/js/entry.js index c212077..5a07de2 100644 --- a/dist/js/entry.js +++ b/dist/js/entry.js @@ -1,2 +1,2 @@ /*! For license information please see entry.js.LICENSE.txt */ -(()=>{var t,e={5540:(t,e,r)=>{function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=n(r(9899)),i=r(7392),a=n(r(8084));function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},r.handleBackForwardVisit=function(t){var e=this;window.history.state.version=t.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){e.restoreScrollPositions(),b(t)}))},r.locationVisit=function(t,e){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:e})),window.location.href=t.href,y(window.location).href===y(t).href&&window.location.reload()}catch(t){return!1}},r.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(t){return!1}},r.handleLocationVisit=function(t){var e,r,n,o,i=this,a=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),t.url+=window.location.hash,t.rememberedState=null!=(e=null==(r=window.history.state)?void 0:r.rememberedState)?e:{},t.scrollRegions=null!=(n=null==(o=window.history.state)?void 0:o.scrollRegions)?n:[],this.setPage(t,{preserveScroll:a.preserveScroll,preserveState:!0}).then((function(){a.preserveScroll&&i.restoreScrollPositions(),b(t)}))},r.isLocationVisitResponse=function(t){return t&&409===t.status&&t.headers["x-inertia-location"]},r.isInertiaResponse=function(t){return null==t?void 0:t.headers["x-inertia"]},r.createVisitId=function(){return this.visitId={},this.visitId},r.cancelVisit=function(t,e){var r=e.cancelled,n=void 0!==r&&r,o=e.interrupted,i=void 0!==o&&o;!t||t.completed||t.cancelled||t.interrupted||(t.cancelToken.cancel(),t.onCancel(),t.completed=!1,t.cancelled=n,t.interrupted=i,g(t),t.onFinish(t))},r.finishVisit=function(t){t.cancelled||t.interrupted||(t.completed=!0,t.cancelled=!1,t.interrupted=!1,g(t),t.onFinish(t))},r.resolvePreserveOption=function(t,e){return"function"==typeof t?t(e):"errors"===t?Object.keys(e.props.errors||{}).length>0:t},r.visit=function(t,r){var n=this,i=void 0===r?{}:r,a=i.method,s=void 0===a?e.c1.GET:a,u=i.data,p=void 0===u?{}:u,d=i.replace,g=void 0!==d&&d,b=i.preserveScroll,w=void 0!==b&&b,x=i.preserveState,S=void 0!==x&&x,O=i.only,E=void 0===O?[]:O,_=i.headers,j=void 0===_?{}:_,A=i.errorBag,P=void 0===A?"":A,k=i.forceFormData,C=void 0!==k&&k,T=i.onCancelToken,D=void 0===T?function(){}:T,I=i.onBefore,N=void 0===I?function(){}:I,M=i.onStart,F=void 0===M?function(){}:M,R=i.onProgress,L=void 0===R?function(){}:R,B=i.onFinish,V=void 0===B?function(){}:B,U=i.onCancel,$=void 0===U?function(){}:U,H=i.onSuccess,W=void 0===H?function(){}:H,q=i.onError,z=void 0===q?function(){}:q,G=i.queryStringArrayFormat,X=void 0===G?"brackets":G,Y="string"==typeof t?h(t):t;if(!function t(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some((function(e){return t(e)}))||"object"==typeof e&&null!==e&&Object.values(e).some((function(e){return t(e)}))}(p)&&!C||p instanceof FormData||(p=f(p)),!(p instanceof FormData)){var K=v(s,Y,p,X),J=K[1];Y=h(K[0]),p=J}var Q={url:Y,method:s,data:p,replace:g,preserveScroll:w,preserveState:S,only:E,headers:j,errorBag:P,forceFormData:C,queryStringArrayFormat:X,cancelled:!1,completed:!1,interrupted:!1};if(!1!==N(Q)&&function(t){return m("before",{cancelable:!0,detail:{visit:t}})}(Q)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=c({},Q,{onCancelToken:D,onBefore:N,onStart:F,onProgress:L,onFinish:V,onCancel:$,onSuccess:W,onError:z,queryStringArrayFormat:X,cancelToken:o.CancelToken.source()}),D({cancel:function(){n.activeVisit&&n.cancelVisit(n.activeVisit,{cancelled:!0})}}),function(t){m("start",{detail:{visit:t}})}(Q),F(Q),o({method:s,url:y(Y).href,data:s===e.c1.GET?{}:p,params:s===e.c1.GET?p:{},cancelToken:this.activeVisit.cancelToken.token,headers:c({},j,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},E.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":E.join(",")}:{},P&&P.length?{"X-Inertia-Error-Bag":P}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(t){p instanceof FormData&&(t.percentage=Math.round(t.loaded/t.total*100),function(t){m("progress",{detail:{progress:t}})}(t),L(t))}}).then((function(t){var e;if(!n.isInertiaResponse(t))return Promise.reject({response:t});var r=t.data;E.length&&r.component===n.page.component&&(r.props=c({},n.page.props,r.props)),w=n.resolvePreserveOption(w,r),(S=n.resolvePreserveOption(S,r))&&null!=(e=window.history.state)&&e.rememberedState&&r.component===n.page.component&&(r.rememberedState=window.history.state.rememberedState);var o=Y,i=h(r.url);return o.hash&&!i.hash&&y(o).href===i.href&&(i.hash=o.hash,r.url=i.href),n.setPage(r,{visitId:Z,replace:g,preserveScroll:w,preserveState:S})})).then((function(){var t=n.page.props.errors||{};if(Object.keys(t).length>0){var e=P?t[P]?t[P]:{}:t;return function(t){m("error",{detail:{errors:t}})}(e),z(e)}return m("success",{detail:{page:n.page}}),W(n.page)})).catch((function(t){if(n.isInertiaResponse(t.response))return n.setPage(t.response.data,{visitId:Z});if(n.isLocationVisitResponse(t.response)){var e=h(t.response.headers["x-inertia-location"]),r=Y;r.hash&&!e.hash&&y(r).href===e.href&&(e.hash=r.hash),n.locationVisit(e,!0===w)}else{if(!t.response)return Promise.reject(t);m("invalid",{cancelable:!0,detail:{response:t.response}})&&l.show(t.response.data)}})).then((function(){n.activeVisit&&n.finishVisit(n.activeVisit)})).catch((function(t){if(!o.isCancel(t)){var e=m("exception",{cancelable:!0,detail:{exception:t}});if(n.activeVisit&&n.finishVisit(n.activeVisit),e)return Promise.reject(t)}}))}},r.setPage=function(t,e){var r=this,n=void 0===e?{}:e,o=n.visitId,i=void 0===o?this.createVisitId():o,a=n.replace,c=void 0!==a&&a,s=n.preserveScroll,l=void 0!==s&&s,u=n.preserveState,f=void 0!==u&&u;return Promise.resolve(this.resolveComponent(t.component)).then((function(e){i===r.visitId&&(t.scrollRegions=t.scrollRegions||[],t.rememberedState=t.rememberedState||{},(c=c||h(t.url).href===window.location.href)?r.replaceState(t):r.pushState(t),r.swapComponent({component:e,page:t,preserveState:f}).then((function(){l||r.resetScrollPositions(),c||b(t)})))}))},r.pushState=function(t){this.page=t,window.history.pushState(t,"",t.url)},r.replaceState=function(t){this.page=t,window.history.replaceState(t,"",t.url)},r.handlePopstateEvent=function(t){var e=this;if(null!==t.state){var r=t.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(r.component)).then((function(t){n===e.visitId&&(e.page=r,e.swapComponent({component:t,page:r,preserveState:!1}).then((function(){e.restoreScrollPositions(),b(r)})))}))}else{var o=h(this.page.url);o.hash=window.location.hash,this.replaceState(c({},this.page,{url:o.href})),this.resetScrollPositions()}},r.get=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,c({},n,{method:e.c1.GET,data:r}))},r.reload=function(t){return void 0===t&&(t={}),this.visit(window.location.href,c({},t,{preserveScroll:!0,preserveState:!0}))},r.replace=function(t,e){var r;return void 0===e&&(e={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(r=e.method)?r:"get")+"() instead."),this.visit(t,c({preserveState:!0},e,{replace:!0}))},r.post=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,c({preserveState:!0},n,{method:e.c1.POST,data:r}))},r.put=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,c({preserveState:!0},n,{method:e.c1.PUT,data:r}))},r.patch=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,c({preserveState:!0},n,{method:e.c1.PATCH,data:r}))},r.delete=function(t,r){return void 0===r&&(r={}),this.visit(t,c({preserveState:!0},r,{method:e.c1.DELETE}))},r.remember=function(t,e){var r,n;void 0===e&&(e="default"),w||this.replaceState(c({},this.page,{rememberedState:c({},null==(r=this.page)?void 0:r.rememberedState,(n={},n[e]=t,n))}))},r.restore=function(t){var e,r;if(void 0===t&&(t="default"),!w)return null==(e=window.history.state)||null==(r=e.rememberedState)?void 0:r[t]},r.on=function(t,e){var r=function(t){var r=e(t);t.cancelable&&!t.defaultPrevented&&!1===r&&t.preventDefault()};return document.addEventListener("inertia:"+t,r),function(){return document.removeEventListener("inertia:"+t,r)}},t}(),S={buildDOMElement:function(t){var e=document.createElement("template");e.innerHTML=t;var r=e.content.firstChild;if(!t.startsWith("