From bb980e3a04b00f8fd3d008d47104a6c8c59b8cee Mon Sep 17 00:00:00 2001 From: vladcazacu Date: Thu, 10 Nov 2022 13:26:21 +0100 Subject: [PATCH 1/2] rendering the contents of a tab only if it's active --- dist/js/field.js | 2 +- resources/js/components/DetailTabs.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/js/field.js b/dist/js/field.js index c915cbd..3894c3c 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1 +1 @@ -(()=>{var e,t={1105:(e,t,r)=>{"use strict";const n=Vue;var o={class:"tab-group"},a=["innerHTML"],i={id:"tabs"},s={class:"block"},l={"aria-label":"Tabs",class:"tab-menu"},u=["dusk","onClick"],c={class:"capitalize"},p=["label"];const f={emits:["actionExecuted"],props:["resourceName","resourceId","resource","panel"],methods:{actionExecuted:function(){this.$emit("actionExecuted")}}},d=LaravelNova;function v(){return window.location.hash.split("&").reduce((function(e,t){var r=decodeURIComponent(t).split("=");return r[0].length&&(e[r[0].replace("#","")]=r[1]),e}),{})}function b(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(e[r]));history.replaceState(history.state,"","#"+t.join("&"))}for(var h=r(5472),m=r.n(h),g=(r(8601),36);g--;)g.toString(36);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _={props:function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectedTab=e,Nova.$emit("nova-tabs-changed",this.getTabsReference(),e),t&&this.setLocationHash(),r&&this.refreshCodeMirror(e)},refreshCodeMirror:function(e){var t=this;setTimeout((function(){var r=t.getTabRefName(e);if(r){var n=t.$refs[r];n.length&&n.forEach((function(e){var t=e.querySelectorAll(".CodeMirror");t.length&&t.forEach((function(e){return e.CodeMirror.refresh()}))}))}}),1)},setLocationHash:function(){var e=v();e[this.getTabsReference()]=this.selectedTab.slug,b(e)},getComponentName:function(e){return e.prefixComponent?this.tabMode+"-"+e.component:e.component},getTabsReference:function(){var e;return null!==(e=this.panel.slug)&&void 0!==e?e:this.panel.name},getBodyClass:function(e){return e.properties.bodyClass},getTabRefName:function(e){return"tab-".concat(e.slug)},getIsTabCurrent:function(e){return this.selectedTab===e||!this.selectedTab&&this.tabs[Object.keys(this.tabs)[0]]===e},getSortedTabs:function(e){return m()(e,[function(e){return e.position}],["asc"])},getNestedObject:function(e,t,r){var n;return JSON.stringify(e,(function(e,o){return o&&o[t]===r&&(n=o),o})),n},getCurrentColor:function(){var e;return null!==(e=this.panel.currentColor)&&void 0!==e?e:"primary"},getErrorColor:function(){var e;return null!==(e=this.panel.errorColor)&&void 0!==e?e:"red"}}},j={mixins:[f,_],data:function(){return{tabMode:"detail"}}};var k=r(3744);const O=(0,k.Z)(j,[["render",function(e,t,r,f,d,v){var b=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",o,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,a)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("nav",l,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,dusk:t.slug+"-tab",class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",c,(0,n.toDisplayString)(t.properties.title),1)],10,u)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+r,ref_for:!0,ref:e.getTabRefName(t),class:(0,n.normalizeClass)(["tab",t.slug,t.classes]),label:t.name},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(t)])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.fields,(function(r,o){return(0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,{key:o},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(r)),{class:(0,n.normalizeClass)({"remove-bottom-border":o===t.fields.length-1}),field:r,index:o,resource:e.resource,"resource-id":e.resourceId,"resource-name":e.resourceName,onActionExecuted:e.actionExecuted},null,40,["class","field","index","resource","resource-id","resource-name","onActionExecuted"]))],1024)})),128))],2)],10,p)),[[n.vShow,e.getIsTabCurrent(t)]])})),128))],2)])],2)}]]);var w={class:"tab-group"},C=["innerHTML"],T={id:"tabs"},E={class:"block"},B={"aria-label":"Tabs",class:"tab-menu"},N=["dusk","onClick"],S={class:"capitalize"},z=["label"];const A={mixins:[f,_],data:function(){return{tabMode:"form"}}},I=(0,k.Z)(A,[["render",function(e,t,r,o,a,i){var s=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",w,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,C)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",T,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("nav",B,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),dusk:t.slug+"-tab",ref_for:!0,ref:t.slug+"-tab",onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",S,(0,n.toDisplayString)(t.properties.title),1)],10,N)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(r,o){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+o,ref_for:!0,ref:e.getTabRefName(r),class:(0,n.normalizeClass)(["tab fields-tab",e.getIsTabCurrent(r)?"block":"hidden",r.slug]),label:r.name},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(r)])},[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.fields,(function(o,a){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:"tab-"+a},[o.from?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:0,ref_for:!0,ref:"fields",class:(0,n.normalizeClass)({"remove-bottom-border":a===r.fields.length-1}),errors:e.validationErrors,field:o,"form-unique-id":e.formUniqueId,"related-resource-id":e.relatedResourceId,"related-resource-name":e.relatedResourceName,"resource-id":e.resourceId,"resource-name":e.resourceName,"show-help-text":null!=o.helpText,"shown-via-new-relation-modal":e.shownViaNewRelationModal,"via-relationship":e.viaRelationship,"via-resource":e.viaResource,"via-resource-id":e.viaResourceId,onFieldChanged:t[0]||(t[0]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[1]||(t[1]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[2]||(t[2]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[3]||(t[3]=function(t){return e.$emit("file-upload-finished")})},null,40,["class","errors","field","form-unique-id","related-resource-id","related-resource-name","resource-id","resource-name","show-help-text","shown-via-new-relation-modal","via-relationship","via-resource","via-resource-id"])),o.from?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:1,errors:e.validationErrors,"resource-id":e.getResourceId(o),"resource-name":o.resourceName,field:o,"via-resource":o.from.viaResource,"via-resource-id":o.from.viaResourceId,"via-relationship":o.from.viaRelationship,"form-unique-id":e.relationFormUniqueId,onFieldChanged:t[4]||(t[4]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[5]||(t[5]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[6]||(t[6]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[7]||(t[7]=function(t){return e.$emit("file-upload-finished")}),"show-help-text":null!=o.helpText},null,40,["errors","resource-id","resource-name","field","via-resource","via-resource-id","via-relationship","form-unique-id","show-help-text"])):(0,n.createCommentVNode)("",!0)],64)})),128))],1024))],2)],10,z)),[[n.vShow,e.getIsTabCurrent(r)]])})),128))],2)])],2)}]]);Nova.booting((function(e){e.component("detail-tabs",O),e.component("form-tabs",I)}))},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),a=r(2385);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),s=r(4758),l=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),s=r(5776),l=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&o(e),p=!r&&!c&&i(e),f=!r&&!c&&!p&&l(e),d=r||c||p||f,v=d?n(e.length,String):[],b=v.length;for(var h in e)!t&&!u.call(e,h)||d&&("length"==h||p&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,b))||v.push(h);return v}},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9881:(e,t,r)=>{var n=r(7816),o=r(9291)(n);e.exports=o},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},7816:(e,t,r)=>{var n=r(8483),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,s))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),a=r(8351),i=r(6096),s=r(4160),l=r(1469),u=r(4144),c=r(6719),p="[object Arguments]",f="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,h,m){var g=l(e),y=l(t),x=g?f:s(e),_=y?f:s(t),j=(x=x==p?d:x)==d,k=(_=_==p?d:_)==d,O=x==_;if(O&&u(e)){if(!u(t))return!1;g=!0,j=!1}if(O&&!j)return m||(m=new n),g||c(e)?o(e,t,r,b,h,m):a(e,t,x,r,b,h,m);if(!(1&r)){var w=j&&v.call(e,"__wrapped__"),C=k&&v.call(t,"__wrapped__");if(w||C){var T=w?e.value():e,E=C?t.value():t;return m||(m=new n),h(T,E,r,b,m)}}return!!O&&(m||(m=new n),i(e,t,r,b,h,m))}},2958:(e,t,r)=>{var n=r(6384),o=r(939);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var n=r(3560),o=r(5346),a=r(3218),i=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},7206:(e,t,r)=>{var n=r(1573),o=r(6432),a=r(6557),i=r(1469),s=r(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9199:(e,t,r)=>{var n=r(9881),o=r(8612);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},1573:(e,t,r)=>{var n=r(2958),o=r(1499),a=r(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},6432:(e,t,r)=>{var n=r(939),o=r(7361),a=r(9095),i=r(5403),s=r(9162),l=r(2634),u=r(327);e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},2689:(e,t,r)=>{var n=r(9932),o=r(7786),a=r(7206),i=r(9199),s=r(1131),l=r(1717),u=r(5022),c=r(6557),p=r(1469);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return p(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=n(t,l(a));var d=i(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++f,value:e}}));return s(d,(function(e,t){return u(e,t,r)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,r)=>{var n=r(7786);e.exports=function(e){return function(t){return n(t,e)}}},4259:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(2705),o=r(9932),a=r(1469),i=r(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,r)=>{var n=r(1811),o=r(928),a=r(292),i=r(327);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),a=r(5514),i=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},6393:(e,t,r)=>{var n=r(3448);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e{var n=r(6393);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=r.length;++o=l?u:u*("desc"==r[o]?-1:1)}return e.index-t.index}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},9291:(e,t,r)=>{var n=r(8612);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},7114:(e,t,r)=>{var n=r(8668),o=r(2908),a=r(4757);e.exports=function(e,t,r,i,s,l){var u=1&r,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var f=l.get(e),d=l.get(t);if(f&&d)return f==t&&d==e;var v=-1,b=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++v{var n=r(2705),o=r(1149),a=r(7813),i=r(7114),s=r(8776),l=r(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var v=1&n;if(d||(d=l),e.size!=t.size&&!v)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var h=i(d(e),d(t),n,u,p,f);return f.delete(e),h;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var p=c;p--;){var f=u[p];if(!(l?f in t:o.call(t,f)))return!1}var d=s.get(e),v=s.get(t);if(d&&v)return d==t&&v==e;var b=!0;s.set(e,t),s.set(t,e);for(var h=l;++p{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),a=r(3674);e.exports=function(e){return n(e,a,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(9162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),s=r(577),l=r(4239),u=r(346),c="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",v="[object DataView]",b=u(n),h=u(o),m=u(a),g=u(i),y=u(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=c||a&&x(a.resolve())!=p||i&&x(new i)!=f||s&&x(new s)!=d)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return v;case h:return c;case m:return p;case g:return f;case y:return d}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,r)=>{var n=r(1811),o=r(5694),a=r(1469),i=r(5776),s=r(1780),l=r(327);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,p=!1;++u{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(1469),o=r(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9162:(e,t,r)=>{var n=r(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),a=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},2634:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},292:(e,t,r)=>{var n=r(7786),o=r(4259);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),a=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},9095:(e,t,r)=>{var n=r(13),o=r(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),a=r(8612);e.exports=function(e){return a(e)?n(e):o(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5472:(e,t,r)=>{var n=r(2689),o=r(1469);e.exports=function(e,t,r,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=a?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},9601:(e,t,r)=>{var n=r(371),o=r(9152),a=r(5403),i=r(327);e.exports=function(e){return a(e)?n(i(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},8601:(e,t,r)=>{var n=r(7406);e.exports=function(e,t){return null==e||n(e,t)}},6381:()=>{},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(c=0;c=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[r,o,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={175:0,546:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,s,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var c=l(n)}for(t&&t(r);un(1105)));var o=n.O(void 0,[546],(()=>n(6381)));o=n.O(o)})(); \ No newline at end of file +(()=>{var e,t={886:(e,t,r)=>{"use strict";const n=Vue;var o={class:"tab-group"},a=["innerHTML"],i={id:"tabs"},s={class:"block"},l={"aria-label":"Tabs",class:"tab-menu"},u=["dusk","onClick"],c={class:"capitalize"},p=["label"];const f={emits:["actionExecuted"],props:["resourceName","resourceId","resource","panel"],methods:{actionExecuted:function(){this.$emit("actionExecuted")}}},d=LaravelNova;function v(){return window.location.hash.split("&").reduce((function(e,t){var r=decodeURIComponent(t).split("=");return r[0].length&&(e[r[0].replace("#","")]=r[1]),e}),{})}function b(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(e[r]));history.replaceState(history.state,"","#"+t.join("&"))}for(var h=r(5472),m=r.n(h),g=(r(8601),36);g--;)g.toString(36);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _={props:function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectedTab=e,Nova.$emit("nova-tabs-changed",this.getTabsReference(),e),t&&this.setLocationHash(),r&&this.refreshCodeMirror(e)},refreshCodeMirror:function(e){var t=this;setTimeout((function(){var r=t.getTabRefName(e);if(r){var n=t.$refs[r];n.length&&n.forEach((function(e){var t=e.querySelectorAll(".CodeMirror");t.length&&t.forEach((function(e){return e.CodeMirror.refresh()}))}))}}),1)},setLocationHash:function(){var e=v();e[this.getTabsReference()]=this.selectedTab.slug,b(e)},getComponentName:function(e){return e.prefixComponent?this.tabMode+"-"+e.component:e.component},getTabsReference:function(){var e;return null!==(e=this.panel.slug)&&void 0!==e?e:this.panel.name},getBodyClass:function(e){return e.properties.bodyClass},getTabRefName:function(e){return"tab-".concat(e.slug)},getIsTabCurrent:function(e){return this.selectedTab===e||!this.selectedTab&&this.tabs[Object.keys(this.tabs)[0]]===e},getSortedTabs:function(e){return m()(e,[function(e){return e.position}],["asc"])},getNestedObject:function(e,t,r){var n;return JSON.stringify(e,(function(e,o){return o&&o[t]===r&&(n=o),o})),n},getCurrentColor:function(){var e;return null!==(e=this.panel.currentColor)&&void 0!==e?e:"primary"},getErrorColor:function(){var e;return null!==(e=this.panel.errorColor)&&void 0!==e?e:"red"}}},j={mixins:[f,_],data:function(){return{tabMode:"detail"}}};var k=r(3744);const O=(0,k.Z)(j,[["render",function(e,t,r,f,d,v){var b=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",o,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,a)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("nav",l,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,dusk:t.slug+"-tab",class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",c,(0,n.toDisplayString)(t.properties.title),1)],10,u)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+r,ref_for:!0,ref:e.getTabRefName(t),class:(0,n.normalizeClass)(["tab",t.slug,t.classes]),label:t.name},[e.getIsTabCurrent(t)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(t)])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.fields,(function(r,o){return(0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,{key:o},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(r)),{class:(0,n.normalizeClass)({"remove-bottom-border":o===t.fields.length-1}),field:r,index:o,resource:e.resource,"resource-id":e.resourceId,"resource-name":e.resourceName,onActionExecuted:e.actionExecuted},null,40,["class","field","index","resource","resource-id","resource-name","onActionExecuted"]))],1024)})),128))],2)):(0,n.createCommentVNode)("",!0)],10,p)),[[n.vShow,e.getIsTabCurrent(t)]])})),128))],2)])],2)}]]);var w={class:"tab-group"},C=["innerHTML"],T={id:"tabs"},E={class:"block"},B={"aria-label":"Tabs",class:"tab-menu"},N=["dusk","onClick"],S={class:"capitalize"},z=["label"];const A={mixins:[f,_],data:function(){return{tabMode:"form"}}},I=(0,k.Z)(A,[["render",function(e,t,r,o,a,i){var s=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",w,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,C)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",T,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("nav",B,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),dusk:t.slug+"-tab",ref_for:!0,ref:t.slug+"-tab",onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",S,(0,n.toDisplayString)(t.properties.title),1)],10,N)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(r,o){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+o,ref_for:!0,ref:e.getTabRefName(r),class:(0,n.normalizeClass)(["tab fields-tab",e.getIsTabCurrent(r)?"block":"hidden",r.slug]),label:r.name},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(r)])},[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.fields,(function(o,a){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:"tab-"+a},[o.from?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:0,ref_for:!0,ref:"fields",class:(0,n.normalizeClass)({"remove-bottom-border":a===r.fields.length-1}),errors:e.validationErrors,field:o,"form-unique-id":e.formUniqueId,"related-resource-id":e.relatedResourceId,"related-resource-name":e.relatedResourceName,"resource-id":e.resourceId,"resource-name":e.resourceName,"show-help-text":null!=o.helpText,"shown-via-new-relation-modal":e.shownViaNewRelationModal,"via-relationship":e.viaRelationship,"via-resource":e.viaResource,"via-resource-id":e.viaResourceId,onFieldChanged:t[0]||(t[0]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[1]||(t[1]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[2]||(t[2]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[3]||(t[3]=function(t){return e.$emit("file-upload-finished")})},null,40,["class","errors","field","form-unique-id","related-resource-id","related-resource-name","resource-id","resource-name","show-help-text","shown-via-new-relation-modal","via-relationship","via-resource","via-resource-id"])),o.from?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:1,errors:e.validationErrors,"resource-id":e.getResourceId(o),"resource-name":o.resourceName,field:o,"via-resource":o.from.viaResource,"via-resource-id":o.from.viaResourceId,"via-relationship":o.from.viaRelationship,"form-unique-id":e.relationFormUniqueId,onFieldChanged:t[4]||(t[4]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[5]||(t[5]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[6]||(t[6]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[7]||(t[7]=function(t){return e.$emit("file-upload-finished")}),"show-help-text":null!=o.helpText},null,40,["errors","resource-id","resource-name","field","via-resource","via-resource-id","via-relationship","form-unique-id","show-help-text"])):(0,n.createCommentVNode)("",!0)],64)})),128))],1024))],2)],10,z)),[[n.vShow,e.getIsTabCurrent(r)]])})),128))],2)])],2)}]]);Nova.booting((function(e){e.component("detail-tabs",O),e.component("form-tabs",I)}))},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),a=r(2385);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),s=r(4758),l=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),s=r(5776),l=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&o(e),p=!r&&!c&&i(e),f=!r&&!c&&!p&&l(e),d=r||c||p||f,v=d?n(e.length,String):[],b=v.length;for(var h in e)!t&&!u.call(e,h)||d&&("length"==h||p&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,b))||v.push(h);return v}},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9881:(e,t,r)=>{var n=r(7816),o=r(9291)(n);e.exports=o},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},7816:(e,t,r)=>{var n=r(8483),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,s))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),a=r(8351),i=r(6096),s=r(4160),l=r(1469),u=r(4144),c=r(6719),p="[object Arguments]",f="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,h,m){var g=l(e),y=l(t),x=g?f:s(e),_=y?f:s(t),j=(x=x==p?d:x)==d,k=(_=_==p?d:_)==d,O=x==_;if(O&&u(e)){if(!u(t))return!1;g=!0,j=!1}if(O&&!j)return m||(m=new n),g||c(e)?o(e,t,r,b,h,m):a(e,t,x,r,b,h,m);if(!(1&r)){var w=j&&v.call(e,"__wrapped__"),C=k&&v.call(t,"__wrapped__");if(w||C){var T=w?e.value():e,E=C?t.value():t;return m||(m=new n),h(T,E,r,b,m)}}return!!O&&(m||(m=new n),i(e,t,r,b,h,m))}},2958:(e,t,r)=>{var n=r(6384),o=r(939);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var n=r(3560),o=r(5346),a=r(3218),i=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},7206:(e,t,r)=>{var n=r(1573),o=r(6432),a=r(6557),i=r(1469),s=r(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9199:(e,t,r)=>{var n=r(9881),o=r(8612);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},1573:(e,t,r)=>{var n=r(2958),o=r(1499),a=r(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},6432:(e,t,r)=>{var n=r(939),o=r(7361),a=r(9095),i=r(5403),s=r(9162),l=r(2634),u=r(327);e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},2689:(e,t,r)=>{var n=r(9932),o=r(7786),a=r(7206),i=r(9199),s=r(1131),l=r(1717),u=r(5022),c=r(6557),p=r(1469);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return p(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=n(t,l(a));var d=i(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++f,value:e}}));return s(d,(function(e,t){return u(e,t,r)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,r)=>{var n=r(7786);e.exports=function(e){return function(t){return n(t,e)}}},4259:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(2705),o=r(9932),a=r(1469),i=r(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,r)=>{var n=r(1811),o=r(928),a=r(292),i=r(327);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),a=r(5514),i=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},6393:(e,t,r)=>{var n=r(3448);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e{var n=r(6393);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=r.length;++o=l?u:u*("desc"==r[o]?-1:1)}return e.index-t.index}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},9291:(e,t,r)=>{var n=r(8612);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},7114:(e,t,r)=>{var n=r(8668),o=r(2908),a=r(4757);e.exports=function(e,t,r,i,s,l){var u=1&r,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var f=l.get(e),d=l.get(t);if(f&&d)return f==t&&d==e;var v=-1,b=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++v{var n=r(2705),o=r(1149),a=r(7813),i=r(7114),s=r(8776),l=r(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var v=1&n;if(d||(d=l),e.size!=t.size&&!v)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var h=i(d(e),d(t),n,u,p,f);return f.delete(e),h;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var p=c;p--;){var f=u[p];if(!(l?f in t:o.call(t,f)))return!1}var d=s.get(e),v=s.get(t);if(d&&v)return d==t&&v==e;var b=!0;s.set(e,t),s.set(t,e);for(var h=l;++p{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),a=r(3674);e.exports=function(e){return n(e,a,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(9162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),s=r(577),l=r(4239),u=r(346),c="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",v="[object DataView]",b=u(n),h=u(o),m=u(a),g=u(i),y=u(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=c||a&&x(a.resolve())!=p||i&&x(new i)!=f||s&&x(new s)!=d)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return v;case h:return c;case m:return p;case g:return f;case y:return d}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,r)=>{var n=r(1811),o=r(5694),a=r(1469),i=r(5776),s=r(1780),l=r(327);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,p=!1;++u{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(1469),o=r(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9162:(e,t,r)=>{var n=r(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),a=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},2634:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},292:(e,t,r)=>{var n=r(7786),o=r(4259);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),a=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},9095:(e,t,r)=>{var n=r(13),o=r(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),a=r(8612);e.exports=function(e){return a(e)?n(e):o(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5472:(e,t,r)=>{var n=r(2689),o=r(1469);e.exports=function(e,t,r,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=a?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},9601:(e,t,r)=>{var n=r(371),o=r(9152),a=r(5403),i=r(327);e.exports=function(e){return a(e)?n(i(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},8601:(e,t,r)=>{var n=r(7406);e.exports=function(e,t){return null==e||n(e,t)}},6381:()=>{},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(c=0;c=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[r,o,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={175:0,546:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,s,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var c=l(n)}for(t&&t(r);un(886)));var o=n.O(void 0,[546],(()=>n(6381)));o=n.O(o)})(); \ No newline at end of file diff --git a/resources/js/components/DetailTabs.vue b/resources/js/components/DetailTabs.vue index c072bee..5399b59 100644 --- a/resources/js/components/DetailTabs.vue +++ b/resources/js/components/DetailTabs.vue @@ -14,8 +14,8 @@
@@ -42,14 +42,14 @@ :key="'related-tabs-fields' + index" :ref="getTabRefName(tab)" :class="[ - 'tab', - tab.slug, - tab.classes - ]" + 'tab', + tab.slug, + tab.classes + ]" :label="tab.name" v-show="getIsTabCurrent(tab)" > -
+
Date: Mon, 28 Nov 2022 17:16:15 +0100 Subject: [PATCH 2/2] added option to conditionally preload tabs --- README.md | 1 + dist/js/field.js | 2 +- resources/js/components/DetailTabs.vue | 2 +- src/Tab.php | 23 +++++++++++++++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41688dc..f35c006 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ As of v1.4.0 it's possible to use a `Tab` class instead of an array to represent | name | `string` | `null` | The name of the tab, used for the slug. Defaults to the title if not set | | showIf | `bool` or `Closure` | `null` | If the result is truthy the tab will be shown. `showIf` takes priority over `showUnless` and if neither are set, `true` is assumed. | | showUnless | `bool` or `Closure` | `null` | If the result is falsy the tab will be shown. `showIf` takes priority over `showUnless` and if neither are set, `true` is assumed. | +| preload | `bool` or `Closure` | `null` | If the result is truthy the tab will be rendered on the initial page load. This may affect initial page load performance, as any requests required by the tab's fields will also be executed. | | bodyClass | `string` or `array` | Empty array | A string or string array of classes to add to the tab's body. This sets the `bodyClass` property, if you want to append you can use `addBodyClass` instead. | ## Customization diff --git a/dist/js/field.js b/dist/js/field.js index 3894c3c..f33e998 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1 +1 @@ -(()=>{var e,t={886:(e,t,r)=>{"use strict";const n=Vue;var o={class:"tab-group"},a=["innerHTML"],i={id:"tabs"},s={class:"block"},l={"aria-label":"Tabs",class:"tab-menu"},u=["dusk","onClick"],c={class:"capitalize"},p=["label"];const f={emits:["actionExecuted"],props:["resourceName","resourceId","resource","panel"],methods:{actionExecuted:function(){this.$emit("actionExecuted")}}},d=LaravelNova;function v(){return window.location.hash.split("&").reduce((function(e,t){var r=decodeURIComponent(t).split("=");return r[0].length&&(e[r[0].replace("#","")]=r[1]),e}),{})}function b(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(e[r]));history.replaceState(history.state,"","#"+t.join("&"))}for(var h=r(5472),m=r.n(h),g=(r(8601),36);g--;)g.toString(36);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _={props:function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectedTab=e,Nova.$emit("nova-tabs-changed",this.getTabsReference(),e),t&&this.setLocationHash(),r&&this.refreshCodeMirror(e)},refreshCodeMirror:function(e){var t=this;setTimeout((function(){var r=t.getTabRefName(e);if(r){var n=t.$refs[r];n.length&&n.forEach((function(e){var t=e.querySelectorAll(".CodeMirror");t.length&&t.forEach((function(e){return e.CodeMirror.refresh()}))}))}}),1)},setLocationHash:function(){var e=v();e[this.getTabsReference()]=this.selectedTab.slug,b(e)},getComponentName:function(e){return e.prefixComponent?this.tabMode+"-"+e.component:e.component},getTabsReference:function(){var e;return null!==(e=this.panel.slug)&&void 0!==e?e:this.panel.name},getBodyClass:function(e){return e.properties.bodyClass},getTabRefName:function(e){return"tab-".concat(e.slug)},getIsTabCurrent:function(e){return this.selectedTab===e||!this.selectedTab&&this.tabs[Object.keys(this.tabs)[0]]===e},getSortedTabs:function(e){return m()(e,[function(e){return e.position}],["asc"])},getNestedObject:function(e,t,r){var n;return JSON.stringify(e,(function(e,o){return o&&o[t]===r&&(n=o),o})),n},getCurrentColor:function(){var e;return null!==(e=this.panel.currentColor)&&void 0!==e?e:"primary"},getErrorColor:function(){var e;return null!==(e=this.panel.errorColor)&&void 0!==e?e:"red"}}},j={mixins:[f,_],data:function(){return{tabMode:"detail"}}};var k=r(3744);const O=(0,k.Z)(j,[["render",function(e,t,r,f,d,v){var b=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",o,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,a)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("nav",l,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,dusk:t.slug+"-tab",class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",c,(0,n.toDisplayString)(t.properties.title),1)],10,u)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+r,ref_for:!0,ref:e.getTabRefName(t),class:(0,n.normalizeClass)(["tab",t.slug,t.classes]),label:t.name},[e.getIsTabCurrent(t)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(t)])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.fields,(function(r,o){return(0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,{key:o},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(r)),{class:(0,n.normalizeClass)({"remove-bottom-border":o===t.fields.length-1}),field:r,index:o,resource:e.resource,"resource-id":e.resourceId,"resource-name":e.resourceName,onActionExecuted:e.actionExecuted},null,40,["class","field","index","resource","resource-id","resource-name","onActionExecuted"]))],1024)})),128))],2)):(0,n.createCommentVNode)("",!0)],10,p)),[[n.vShow,e.getIsTabCurrent(t)]])})),128))],2)])],2)}]]);var w={class:"tab-group"},C=["innerHTML"],T={id:"tabs"},E={class:"block"},B={"aria-label":"Tabs",class:"tab-menu"},N=["dusk","onClick"],S={class:"capitalize"},z=["label"];const A={mixins:[f,_],data:function(){return{tabMode:"form"}}},I=(0,k.Z)(A,[["render",function(e,t,r,o,a,i){var s=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",w,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,C)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",T,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("nav",B,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),dusk:t.slug+"-tab",ref_for:!0,ref:t.slug+"-tab",onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",S,(0,n.toDisplayString)(t.properties.title),1)],10,N)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(r,o){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+o,ref_for:!0,ref:e.getTabRefName(r),class:(0,n.normalizeClass)(["tab fields-tab",e.getIsTabCurrent(r)?"block":"hidden",r.slug]),label:r.name},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(r)])},[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.fields,(function(o,a){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:"tab-"+a},[o.from?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:0,ref_for:!0,ref:"fields",class:(0,n.normalizeClass)({"remove-bottom-border":a===r.fields.length-1}),errors:e.validationErrors,field:o,"form-unique-id":e.formUniqueId,"related-resource-id":e.relatedResourceId,"related-resource-name":e.relatedResourceName,"resource-id":e.resourceId,"resource-name":e.resourceName,"show-help-text":null!=o.helpText,"shown-via-new-relation-modal":e.shownViaNewRelationModal,"via-relationship":e.viaRelationship,"via-resource":e.viaResource,"via-resource-id":e.viaResourceId,onFieldChanged:t[0]||(t[0]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[1]||(t[1]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[2]||(t[2]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[3]||(t[3]=function(t){return e.$emit("file-upload-finished")})},null,40,["class","errors","field","form-unique-id","related-resource-id","related-resource-name","resource-id","resource-name","show-help-text","shown-via-new-relation-modal","via-relationship","via-resource","via-resource-id"])),o.from?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:1,errors:e.validationErrors,"resource-id":e.getResourceId(o),"resource-name":o.resourceName,field:o,"via-resource":o.from.viaResource,"via-resource-id":o.from.viaResourceId,"via-relationship":o.from.viaRelationship,"form-unique-id":e.relationFormUniqueId,onFieldChanged:t[4]||(t[4]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[5]||(t[5]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[6]||(t[6]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[7]||(t[7]=function(t){return e.$emit("file-upload-finished")}),"show-help-text":null!=o.helpText},null,40,["errors","resource-id","resource-name","field","via-resource","via-resource-id","via-relationship","form-unique-id","show-help-text"])):(0,n.createCommentVNode)("",!0)],64)})),128))],1024))],2)],10,z)),[[n.vShow,e.getIsTabCurrent(r)]])})),128))],2)])],2)}]]);Nova.booting((function(e){e.component("detail-tabs",O),e.component("form-tabs",I)}))},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),a=r(2385);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),s=r(4758),l=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),s=r(5776),l=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&o(e),p=!r&&!c&&i(e),f=!r&&!c&&!p&&l(e),d=r||c||p||f,v=d?n(e.length,String):[],b=v.length;for(var h in e)!t&&!u.call(e,h)||d&&("length"==h||p&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,b))||v.push(h);return v}},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9881:(e,t,r)=>{var n=r(7816),o=r(9291)(n);e.exports=o},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},7816:(e,t,r)=>{var n=r(8483),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,s))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),a=r(8351),i=r(6096),s=r(4160),l=r(1469),u=r(4144),c=r(6719),p="[object Arguments]",f="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,h,m){var g=l(e),y=l(t),x=g?f:s(e),_=y?f:s(t),j=(x=x==p?d:x)==d,k=(_=_==p?d:_)==d,O=x==_;if(O&&u(e)){if(!u(t))return!1;g=!0,j=!1}if(O&&!j)return m||(m=new n),g||c(e)?o(e,t,r,b,h,m):a(e,t,x,r,b,h,m);if(!(1&r)){var w=j&&v.call(e,"__wrapped__"),C=k&&v.call(t,"__wrapped__");if(w||C){var T=w?e.value():e,E=C?t.value():t;return m||(m=new n),h(T,E,r,b,m)}}return!!O&&(m||(m=new n),i(e,t,r,b,h,m))}},2958:(e,t,r)=>{var n=r(6384),o=r(939);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var n=r(3560),o=r(5346),a=r(3218),i=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},7206:(e,t,r)=>{var n=r(1573),o=r(6432),a=r(6557),i=r(1469),s=r(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9199:(e,t,r)=>{var n=r(9881),o=r(8612);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},1573:(e,t,r)=>{var n=r(2958),o=r(1499),a=r(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},6432:(e,t,r)=>{var n=r(939),o=r(7361),a=r(9095),i=r(5403),s=r(9162),l=r(2634),u=r(327);e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},2689:(e,t,r)=>{var n=r(9932),o=r(7786),a=r(7206),i=r(9199),s=r(1131),l=r(1717),u=r(5022),c=r(6557),p=r(1469);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return p(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=n(t,l(a));var d=i(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++f,value:e}}));return s(d,(function(e,t){return u(e,t,r)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,r)=>{var n=r(7786);e.exports=function(e){return function(t){return n(t,e)}}},4259:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(2705),o=r(9932),a=r(1469),i=r(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,r)=>{var n=r(1811),o=r(928),a=r(292),i=r(327);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),a=r(5514),i=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},6393:(e,t,r)=>{var n=r(3448);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e{var n=r(6393);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=r.length;++o=l?u:u*("desc"==r[o]?-1:1)}return e.index-t.index}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},9291:(e,t,r)=>{var n=r(8612);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},7114:(e,t,r)=>{var n=r(8668),o=r(2908),a=r(4757);e.exports=function(e,t,r,i,s,l){var u=1&r,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var f=l.get(e),d=l.get(t);if(f&&d)return f==t&&d==e;var v=-1,b=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++v{var n=r(2705),o=r(1149),a=r(7813),i=r(7114),s=r(8776),l=r(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var v=1&n;if(d||(d=l),e.size!=t.size&&!v)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var h=i(d(e),d(t),n,u,p,f);return f.delete(e),h;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var p=c;p--;){var f=u[p];if(!(l?f in t:o.call(t,f)))return!1}var d=s.get(e),v=s.get(t);if(d&&v)return d==t&&v==e;var b=!0;s.set(e,t),s.set(t,e);for(var h=l;++p{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),a=r(3674);e.exports=function(e){return n(e,a,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(9162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),s=r(577),l=r(4239),u=r(346),c="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",v="[object DataView]",b=u(n),h=u(o),m=u(a),g=u(i),y=u(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=c||a&&x(a.resolve())!=p||i&&x(new i)!=f||s&&x(new s)!=d)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return v;case h:return c;case m:return p;case g:return f;case y:return d}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,r)=>{var n=r(1811),o=r(5694),a=r(1469),i=r(5776),s=r(1780),l=r(327);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,p=!1;++u{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(1469),o=r(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9162:(e,t,r)=>{var n=r(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),a=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},2634:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},292:(e,t,r)=>{var n=r(7786),o=r(4259);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),a=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},9095:(e,t,r)=>{var n=r(13),o=r(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),a=r(8612);e.exports=function(e){return a(e)?n(e):o(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5472:(e,t,r)=>{var n=r(2689),o=r(1469);e.exports=function(e,t,r,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=a?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},9601:(e,t,r)=>{var n=r(371),o=r(9152),a=r(5403),i=r(327);e.exports=function(e){return a(e)?n(i(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},8601:(e,t,r)=>{var n=r(7406);e.exports=function(e,t){return null==e||n(e,t)}},6381:()=>{},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(c=0;c=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[r,o,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={175:0,546:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,s,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var c=l(n)}for(t&&t(r);un(886)));var o=n.O(void 0,[546],(()=>n(6381)));o=n.O(o)})(); \ No newline at end of file +(()=>{var e,t={8777:(e,t,r)=>{"use strict";const n=Vue;var o={class:"tab-group"},a=["innerHTML"],i={id:"tabs"},s={class:"block"},l={"aria-label":"Tabs",class:"tab-menu"},u=["dusk","onClick"],c={class:"capitalize"},f=["label"];const p={emits:["actionExecuted"],props:["resourceName","resourceId","resource","panel"],methods:{actionExecuted:function(){this.$emit("actionExecuted")}}},d=LaravelNova;function v(){return window.location.hash.split("&").reduce((function(e,t){var r=decodeURIComponent(t).split("=");return r[0].length&&(e[r[0].replace("#","")]=r[1]),e}),{})}function b(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(e[r]));history.replaceState(history.state,"","#"+t.join("&"))}for(var h=r(5472),m=r.n(h),y=(r(8601),36);y--;)y.toString(36);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j={props:function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectedTab=e,Nova.$emit("nova-tabs-changed",this.getTabsReference(),e),t&&this.setLocationHash(),r&&this.refreshCodeMirror(e)},refreshCodeMirror:function(e){var t=this;setTimeout((function(){var r=t.getTabRefName(e);if(r){var n=t.$refs[r];n.length&&n.forEach((function(e){var t=e.querySelectorAll(".CodeMirror");t.length&&t.forEach((function(e){return e.CodeMirror.refresh()}))}))}}),1)},setLocationHash:function(){var e=v();e[this.getTabsReference()]=this.selectedTab.slug,b(e)},getComponentName:function(e){return e.prefixComponent?this.tabMode+"-"+e.component:e.component},getTabsReference:function(){var e;return null!==(e=this.panel.slug)&&void 0!==e?e:this.panel.name},getBodyClass:function(e){return e.properties.bodyClass},getTabRefName:function(e){return"tab-".concat(e.slug)},getIsTabCurrent:function(e){return this.selectedTab===e||!this.selectedTab&&this.tabs[Object.keys(this.tabs)[0]]===e},getSortedTabs:function(e){return m()(e,[function(e){return e.position}],["asc"])},getNestedObject:function(e,t,r){var n;return JSON.stringify(e,(function(e,o){return o&&o[t]===r&&(n=o),o})),n},getCurrentColor:function(){var e;return null!==(e=this.panel.currentColor)&&void 0!==e?e:"primary"},getErrorColor:function(){var e;return null!==(e=this.panel.errorColor)&&void 0!==e?e:"red"}}},k={mixins:[p,j],data:function(){return{tabMode:"detail"}}};var O=r(3744);const w=(0,O.Z)(k,[["render",function(e,t,r,p,d,v){var b=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",o,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,a)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("nav",l,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,dusk:t.slug+"-tab",class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",c,(0,n.toDisplayString)(t.properties.title),1)],10,u)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+r,ref_for:!0,ref:e.getTabRefName(t),class:(0,n.normalizeClass)(["tab",t.slug,t.classes]),label:t.name},[t.properties.preload||e.getIsTabCurrent(t)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(t)])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.fields,(function(r,o){return(0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,{key:o},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(r)),{class:(0,n.normalizeClass)({"remove-bottom-border":o===t.fields.length-1}),field:r,index:o,resource:e.resource,"resource-id":e.resourceId,"resource-name":e.resourceName,onActionExecuted:e.actionExecuted},null,40,["class","field","index","resource","resource-id","resource-name","onActionExecuted"]))],1024)})),128))],2)):(0,n.createCommentVNode)("",!0)],10,f)),[[n.vShow,e.getIsTabCurrent(t)]])})),128))],2)])],2)}]]);var C={class:"tab-group"},T=["innerHTML"],E={id:"tabs"},B={class:"block"},S={"aria-label":"Tabs",class:"tab-menu"},N=["dusk","onClick"],z={class:"capitalize"},A=["label"];const I={mixins:[p,j],data:function(){return{tabMode:"form"}}},R=(0,O.Z)(I,[["render",function(e,t,r,o,a,i){var s=(0,n.resolveComponent)("Heading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.darkModeClass)},[(0,n.createElementVNode)("div",C,[(0,n.renderSlot)(e.$slots,"default",{},(function(){return[e.panel.showTitle?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,level:1,textContent:(0,n.toDisplayString)(e.panel.name)},null,8,["textContent"])):(0,n.createCommentVNode)("",!0),e.panel.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)([e.panel.helpText?"tabs-mt-2":"tabs-mt-3","tabs-text-gray-500 tabs-text-sm tabs-font-semibold tabs-italic"]),innerHTML:e.panel.helpText},null,10,T)):(0,n.createCommentVNode)("",!0)]})),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["tab-card",[e.panel.showTitle&&!e.panel.showToolbar?"tabs-mt-3":""]])},[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("div",B,[(0,n.createElementVNode)("nav",S,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(t,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{key:r,class:(0,n.normalizeClass)([e.getIsTabCurrent(t)?"active tabs-text-"+e.getCurrentColor()+"-500 tabs-font-bold tabs-border-b-2 tabs-border-b-"+e.getCurrentColor()+"-500":"tabs-text-gray-600 hover:tabs-text-gray-800 dark:tabs-text-gray-400 hover:dark:tabs-text-gray-200","tab-item border-gray-200"]),dusk:t.slug+"-tab",ref_for:!0,ref:t.slug+"-tab",onClick:(0,n.withModifiers)((function(r){return e.handleTabClick(t)}),["prevent"])},[(0,n.createElementVNode)("span",z,(0,n.toDisplayString)(t.properties.title),1)],10,N)})),128))])])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getSortedTabs(e.tabs),(function(r,o){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:"related-tabs-fields"+o,ref_for:!0,ref:e.getTabRefName(r),class:(0,n.normalizeClass)(["tab fields-tab",e.getIsTabCurrent(r)?"block":"hidden",r.slug]),label:r.name},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["divide-y divide-gray-100 dark:divide-gray-700",e.getBodyClass(r)])},[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.fields,(function(o,a){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:"tab-"+a},[o.from?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:0,ref_for:!0,ref:"fields",class:(0,n.normalizeClass)({"remove-bottom-border":a===r.fields.length-1}),errors:e.validationErrors,field:o,"form-unique-id":e.formUniqueId,"related-resource-id":e.relatedResourceId,"related-resource-name":e.relatedResourceName,"resource-id":e.resourceId,"resource-name":e.resourceName,"show-help-text":null!=o.helpText,"shown-via-new-relation-modal":e.shownViaNewRelationModal,"via-relationship":e.viaRelationship,"via-resource":e.viaResource,"via-resource-id":e.viaResourceId,onFieldChanged:t[0]||(t[0]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[1]||(t[1]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[2]||(t[2]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[3]||(t[3]=function(t){return e.$emit("file-upload-finished")})},null,40,["class","errors","field","form-unique-id","related-resource-id","related-resource-name","resource-id","resource-name","show-help-text","shown-via-new-relation-modal","via-relationship","via-resource","via-resource-id"])),o.from?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getComponentName(o)),{key:1,errors:e.validationErrors,"resource-id":e.getResourceId(o),"resource-name":o.resourceName,field:o,"via-resource":o.from.viaResource,"via-resource-id":o.from.viaResourceId,"via-relationship":o.from.viaRelationship,"form-unique-id":e.relationFormUniqueId,onFieldChanged:t[4]||(t[4]=function(t){return e.$emit("field-changed")}),onFileDeleted:t[5]||(t[5]=function(t){return e.$emit("update-last-retrieved-at-timestamp")}),onFileUploadStarted:t[6]||(t[6]=function(t){return e.$emit("file-upload-started")}),onFileUploadFinished:t[7]||(t[7]=function(t){return e.$emit("file-upload-finished")}),"show-help-text":null!=o.helpText},null,40,["errors","resource-id","resource-name","field","via-resource","via-resource-id","via-relationship","form-unique-id","show-help-text"])):(0,n.createCommentVNode)("",!0)],64)})),128))],1024))],2)],10,A)),[[n.vShow,e.getIsTabCurrent(r)]])})),128))],2)])],2)}]]);Nova.booting((function(e){e.component("detail-tabs",w),e.component("form-tabs",R)}))},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),a=r(2385);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),s=r(4758),l=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),s=r(5776),l=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&o(e),f=!r&&!c&&i(e),p=!r&&!c&&!f&&l(e),d=r||c||f||p,v=d?n(e.length,String):[],b=v.length;for(var h in e)!t&&!u.call(e,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,b))||v.push(h);return v}},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9881:(e,t,r)=>{var n=r(7816),o=r(9291)(n);e.exports=o},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},7816:(e,t,r)=>{var n=r(8483),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,s))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),a=r(8351),i=r(6096),s=r(4160),l=r(1469),u=r(4144),c=r(6719),f="[object Arguments]",p="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,h,m){var y=l(e),g=l(t),x=y?p:s(e),_=g?p:s(t),j=(x=x==f?d:x)==d,k=(_=_==f?d:_)==d,O=x==_;if(O&&u(e)){if(!u(t))return!1;y=!0,j=!1}if(O&&!j)return m||(m=new n),y||c(e)?o(e,t,r,b,h,m):a(e,t,x,r,b,h,m);if(!(1&r)){var w=j&&v.call(e,"__wrapped__"),C=k&&v.call(t,"__wrapped__");if(w||C){var T=w?e.value():e,E=C?t.value():t;return m||(m=new n),h(T,E,r,b,m)}}return!!O&&(m||(m=new n),i(e,t,r,b,h,m))}},2958:(e,t,r)=>{var n=r(6384),o=r(939);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var n=r(3560),o=r(5346),a=r(3218),i=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(i(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},7206:(e,t,r)=>{var n=r(1573),o=r(6432),a=r(6557),i=r(1469),s=r(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9199:(e,t,r)=>{var n=r(9881),o=r(8612);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},1573:(e,t,r)=>{var n=r(2958),o=r(1499),a=r(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},6432:(e,t,r)=>{var n=r(939),o=r(7361),a=r(9095),i=r(5403),s=r(9162),l=r(2634),u=r(327);e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},2689:(e,t,r)=>{var n=r(9932),o=r(7786),a=r(7206),i=r(9199),s=r(1131),l=r(1717),u=r(5022),c=r(6557),f=r(1469);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var p=-1;t=n(t,l(a));var d=i(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++p,value:e}}));return s(d,(function(e,t){return u(e,t,r)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,r)=>{var n=r(7786);e.exports=function(e){return function(t){return n(t,e)}}},4259:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(2705),o=r(9932),a=r(1469),i=r(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,r)=>{var n=r(1811),o=r(928),a=r(292),i=r(327);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),a=r(5514),i=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},6393:(e,t,r)=>{var n=r(3448);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e{var n=r(6393);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=r.length;++o=l?u:u*("desc"==r[o]?-1:1)}return e.index-t.index}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},9291:(e,t,r)=>{var n=r(8612);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},7114:(e,t,r)=>{var n=r(8668),o=r(2908),a=r(4757);e.exports=function(e,t,r,i,s,l){var u=1&r,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var p=l.get(e),d=l.get(t);if(p&&d)return p==t&&d==e;var v=-1,b=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++v{var n=r(2705),o=r(1149),a=r(7813),i=r(7114),s=r(8776),l=r(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var v=1&n;if(d||(d=l),e.size!=t.size&&!v)return!1;var b=p.get(e);if(b)return b==t;n|=2,p.set(e,t);var h=i(d(e),d(t),n,u,f,p);return p.delete(e),h;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var f=c;f--;){var p=u[f];if(!(l?p in t:o.call(t,p)))return!1}var d=s.get(e),v=s.get(t);if(d&&v)return d==t&&v==e;var b=!0;s.set(e,t),s.set(t,e);for(var h=l;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),a=r(3674);e.exports=function(e){return n(e,a,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(9162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),s=r(577),l=r(4239),u=r(346),c="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",v="[object DataView]",b=u(n),h=u(o),m=u(a),y=u(i),g=u(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=c||a&&x(a.resolve())!=f||i&&x(new i)!=p||s&&x(new s)!=d)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return v;case h:return c;case m:return f;case y:return p;case g:return d}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,r)=>{var n=r(1811),o=r(5694),a=r(1469),i=r(5776),s=r(1780),l=r(327);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(1469),o=r(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9162:(e,t,r)=>{var n=r(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),a=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},2634:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},292:(e,t,r)=>{var n=r(7786),o=r(4259);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),a=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},9095:(e,t,r)=>{var n=r(13),o=r(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),a=r(8612);e.exports=function(e){return a(e)?n(e):o(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5472:(e,t,r)=>{var n=r(2689),o=r(1469);e.exports=function(e,t,r,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=a?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},9601:(e,t,r)=>{var n=r(371),o=r(9152),a=r(5403),i=r(327);e.exports=function(e){return a(e)?n(i(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},8601:(e,t,r)=>{var n=r(7406);e.exports=function(e,t){return null==e||n(e,t)}},6381:()=>{},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(c=0;c=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[r,o,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={175:0,546:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,s,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var c=l(n)}for(t&&t(r);un(8777)));var o=n.O(void 0,[546],(()=>n(6381)));o=n.O(o)})(); \ No newline at end of file diff --git a/resources/js/components/DetailTabs.vue b/resources/js/components/DetailTabs.vue index 5399b59..52669d5 100644 --- a/resources/js/components/DetailTabs.vue +++ b/resources/js/components/DetailTabs.vue @@ -49,7 +49,7 @@ :label="tab.name" v-show="getIsTabCurrent(tab)" > -
+
preload = $preload; + + return $this; + } + public function showIf($condition): self { if (is_bool($condition) || is_callable($condition)) { @@ -114,6 +128,7 @@ public function toArray(): array 'slug' => $this->getSlug(), 'shouldShow' => $this->shouldShow(), 'bodyClass' => $this->getBodyClass(), + 'preload' => $this->getPreload(), ]; } @@ -133,6 +148,14 @@ public function getTitle(): string return (string) $this->resolve($this->title); } + /** + * @return Closure|bool + */ + public function getPreload(): bool + { + return (bool) $this->resolve($this->preload); + } + private function resolve($value) { if ($value instanceof Closure) {