wip
This commit is contained in:
1 parent
0ba2f0ce8b
commit
005a906776
15 files changed
+1006
-650
No files matched your search
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
/*! For license information please see vendor.js.LICENSE.txt */
|
||||
(self.webpackChunklaravel_nova=self.webpackChunklaravel_nova||[]).push([[660],{39038:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(72307)),o=n(70821),a=r(n(83465)),s=n(9680);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(){var e=[].slice.call(arguments),t="string"==typeof e[0]?e[0]:null,n=("string"==typeof e[0]?e[1]:e[0])||{},r=t?s.Inertia.restore(t):null,c=a(n),u=null,p=null,d=function(e){return e},f=o.reactive(l({},r?r.data:n,{isDirty:!1,errors:r?r.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(n).reduce((function(t,n){return t[n]=e[n],t}),{})},transform:function(e){return d=e,this},defaults:function(e,t){var n;return c=void 0===e?this.data():Object.assign({},a(c),t?((n={})[e]=t,n):e),this},reset:function(){var e=[].slice.call(arguments),t=a(c);return Object.assign(this,0===e.length?t:Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),{})),this},setError:function(e,t){var n;return Object.assign(this.errors,t?((n={})[e]=t,n):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,t=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce((function(n,r){var i;return l({},n,t.length>0&&!t.includes(r)?((i={})[r]=e.errors[r],i):{})}),{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,t,n){var r=this,i=this;void 0===n&&(n={});var o=d(this.data()),f=l({},n,{onCancelToken:function(e){if(u=e,n.onCancelToken)return n.onCancelToken(e)},onBefore:function(e){if(i.wasSuccessful=!1,i.recentlySuccessful=!1,clearTimeout(p),n.onBefore)return n.onBefore(e)},onStart:function(e){if(i.processing=!0,n.onStart)return n.onStart(e)},onProgress:function(e){if(i.progress=e,n.onProgress)return n.onProgress(e)},onSuccess:function(e){try{var t=function(e){return c=a(r.data()),r.isDirty=!1,e};return r.processing=!1,r.progress=null,r.clearErrors(),r.wasSuccessful=!0,r.recentlySuccessful=!0,p=setTimeout((function(){return r.recentlySuccessful=!1}),2e3),Promise.resolve(n.onSuccess?Promise.resolve(n.onSuccess(e)).then(t):t(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(i.processing=!1,i.progress=null,i.clearErrors().setError(e),n.onError)return n.onError(e)},onCancel:function(){if(i.processing=!1,i.progress=null,n.onCancel)return n.onCancel()},onFinish:function(){if(i.processing=!1,i.progress=null,u=null,n.onFinish)return n.onFinish()}});"delete"===e?s.Inertia.delete(t,l({},f,{data:o})):s.Inertia[e](t,o,f)},get:function(e,t){this.submit("get",e,t)},post:function(e,t){this.submit("post",e,t)},put:function(e,t){this.submit("put",e,t)},patch:function(e,t){this.submit("patch",e,t)},delete:function(e,t){this.submit("delete",e,t)},cancel:function(){u&&u.cancel()},__rememberable:null===t,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),this.setError(e.errors)}}));return o.watch(f,(function(e){f.isDirty=!i(f.data(),c),t&&s.Inertia.remember(a(e.__remember()),t)}),{immediate:!0,deep:!0}),f}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var t=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,n=s.Inertia.restore(t),r=this.$options.remember.data.filter((function(t){return!(null!==e[t]&&"object"==typeof e[t]&&!1===e[t].__rememberable)})),i=function(t){return null!==e[t]&&"object"==typeof e[t]&&"function"==typeof e[t].__remember&&"function"==typeof e[t].__restore};r.forEach((function(o){void 0!==e[o]&&void 0!==n&&void 0!==n[o]&&(i(o)?e[o].__restore(n[o]):e[o]=n[o]),e.$watch(o,(function(){s.Inertia.remember(r.reduce((function(t,n){var r;return l({},t,((r={})[n]=a(i(n)?e[n].__remember():e[n]),r))}),{}),t)}),{immediate:!0,deep:!0})}))}}},p=o.ref(null),d=o.ref({}),f=o.ref(null),h=null,m={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var t=e.initialPage,n=e.initialComponent,r=e.resolveComponent,i=e.titleCallback,a=e.onHeadUpdate;p.value=n?o.markRaw(n):null,d.value=t,f.value=null;var c="undefined"==typeof window;return h=s.createHeadManager(c,i,a),c||s.Inertia.init({initialPage:t,resolveComponent:r,swapCompoLine truncated
|
||||
(self.webpackChunklaravel_nova=self.webpackChunklaravel_nova||[]).push([[660],{11094:(e,t,n)=>{"use strict";n.d(t,{YF:()=>l});var r=n(63853),o=n(70821);function i(e){var t;return null!=(t=null==e?void 0:e.$el)?t:e}function a(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){const n=a(e);return Math.round(t*n)/n}function l(e,t,n){void 0===n&&(n={});const l=n.whileElementsMounted,c=(0,o.computed)((()=>{var e;return null==(e=(0,o.unref)(n.open))||e})),u=(0,o.computed)((()=>(0,o.unref)(n.middleware))),d=(0,o.computed)((()=>{var e;return null!=(e=(0,o.unref)(n.placement))?e:"bottom"})),p=(0,o.computed)((()=>{var e;return null!=(e=(0,o.unref)(n.strategy))?e:"absolute"})),h=(0,o.computed)((()=>{var e;return null==(e=(0,o.unref)(n.transform))||e})),f=(0,o.computed)((()=>i(e.value))),m=(0,o.computed)((()=>i(t.value))),g=(0,o.ref)(0),v=(0,o.ref)(0),y=(0,o.ref)(p.value),w=(0,o.ref)(d.value),b=(0,o.shallowRef)({}),x=(0,o.ref)(!1),k=(0,o.computed)((()=>{const e={position:y.value,left:"0",top:"0"};if(!m.value)return e;const t=s(m.value,g.value),n=s(m.value,v.value);return h.value?{...e,transform:"translate("+t+"px, "+n+"px)",...a(m.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:t+"px",top:n+"px"}}));let A;function C(){null!=f.value&&null!=m.value&&(0,r.oo)(f.value,m.value,{middleware:u.value,placement:d.value,strategy:p.value}).then((e=>{g.value=e.x,v.value=e.y,y.value=e.strategy,w.value=e.placement,b.value=e.middlewareData,x.value=!0}))}function _(){"function"==typeof A&&(A(),A=void 0)}return(0,o.watch)([u,d,p],C,{flush:"sync"}),(0,o.watch)([f,m],(function(){_(),void 0!==l?null==f.value||null==m.value||(A=l(f.value,m.value,C)):C()}),{flush:"sync"}),(0,o.watch)(c,(function(){c.value||(x.value=!1)}),{flush:"sync"}),(0,o.getCurrentScope)()&&(0,o.onScopeDispose)(_),{x:(0,o.shallowReadonly)(g),y:(0,o.shallowReadonly)(v),strategy:(0,o.shallowReadonly)(y),placement:(0,o.shallowReadonly)(w),middlewareData:(0,o.shallowReadonly)(b),isPositioned:(0,o.shallowReadonly)(x),floatingStyles:k,update:C}}},39038:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(72307)),i=n(70821),a=r(n(83465)),s=n(9680);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(){var e=[].slice.call(arguments),t="string"==typeof e[0]?e[0]:null,n=("string"==typeof e[0]?e[1]:e[0])||{},r=t?s.Inertia.restore(t):null,c=a(n),u=null,d=null,p=function(e){return e},h=i.reactive(l({},r?r.data:n,{isDirty:!1,errors:r?r.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(n).reduce((function(t,n){return t[n]=e[n],t}),{})},transform:function(e){return p=e,this},defaults:function(e,t){var n;return c=void 0===e?this.data():Object.assign({},a(c),t?((n={})[e]=t,n):e),this},reset:function(){var e=[].slice.call(arguments),t=a(c);return Object.assign(this,0===e.length?t:Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),{})),this},setError:function(e,t){var n;return Object.assign(this.errors,t?((n={})[e]=t,n):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,t=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce((function(n,r){var o;return l({},n,t.length>0&&!t.includes(r)?((o={})[r]=e.errors[r],o):{})}),{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,t,n){var r=this,o=this;void 0===n&&(n={});var i=p(this.data()),h=l({},n,{onCancelToken:function(e){if(u=e,n.onCancelToken)return n.onCancelToken(e)},onBefore:function(e){if(o.wasSuccessful=!1,o.recentlySuccessful=!1,clearTimeout(d),n.onBefore)return n.onBefore(e)},onStart:function(e){if(o.processing=!0,n.onStart)return n.onStart(e)},onProgress:function(e){if(o.progress=e,n.onProgress)return n.onProgress(e)},onSuccess:function(e){try{var t=function(e){return c=a(r.data()),r.isDirty=!1,e};return r.processing=!1,r.progress=null,r.clearErrors(),r.wasSuccessful=!0,r.recentlySuccessful=!0,d=setTimeout((function(){return r.recentlySuccessful=!1}),2e3),Promise.resolve(n.onSuccess?Promise.resolve(n.onSuccess(e)).then(t):t(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(o.processing=!1,o.progress=null,o.clearErrors().setError(e),n.onError)return n.onError(e)},onCancel:function(){if(o.processing=!1,o.progress=null,n.onCancel)return n.onCancel()},onFinish:function(){if(o.processing=!1,o.progress=null,u=null,n.onFinish)return n.onFinish()}});"delete"===e?s.Inertia.delete(t,l({},h,{data:i})):s.Inertia[e](t,i,h)},get:function(e,t){this.submit("get",e,t)},post:function(e,t){this.submit("post",e,t)},put:function(e,t){this.submit("put",e,t)},patch:function(e,t){this.submit("patch",e,t)},delete:function(e,t){this.submit("delLine truncated
|
||||
//# sourceMappingURL=vendor.js.map
|
||||
Reference in new issue
Block a user