diff --git a/dist/css/tool.css b/dist/css/tool.css index 47376b2..5062df9 100644 --- a/dist/css/tool.css +++ b/dist/css/tool.css @@ -1 +1 @@ -/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.relative{position:relative}.m-2{margin:.5rem}.mr-2{margin-right:.5rem}.ml-auto{margin-left:auto}.mb-3{margin-bottom:.75rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.h-9{height:2.25rem}.w-1\/2{width:50%}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-3{padding:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-8{padding-bottom:2rem;padding-top:2rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pl-5{padding-left:1.25rem}.pr-5{padding-right:1.25rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tracking-wide{letter-spacing:.025em}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}@media (prefers-color-scheme:dark){.dark\:border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.dark\:bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.dark\:ring-gray-600{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.group:hover .dark\:group-hover\:bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}}@media (min-width:768px){.md\:text-2xl{font-size:1.5rem;line-height:2rem}} +/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.ns-m-2{margin:.5rem}.ns-mr-2{margin-right:.5rem}.ns-mb-6{margin-bottom:1.5rem}.ns-flex-row-reverse{flex-direction:row-reverse}.ns-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.ns-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.ns-bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.ns-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.ns-p-3{padding:.75rem}.ns-px-6{padding-left:1.5rem;padding-right:1.5rem}.ns-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.ns-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.ns-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.ns-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))} diff --git a/dist/js/tool.js b/dist/js/tool.js index 01ea782..abae2ce 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1 +1 @@ -(()=>{var e,a={746:(e,a,n)=>{"use strict";var i=n(740),t=n.n(i);function o(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var a=1;a{},744:(e,a)=>{"use strict";a.Z=(e,a)=>{const n=e.__vccOpts||e;for(const[e,i]of a)n[e]=i;return n}},588:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>d});var i=n(311),t={class:"flex justify-end p-2 py-3 border-b border-gray-200 dark:border-gray-700"},o={class:"m-2"},l=["id","value"],r=["for"];const s={props:{resource:{type:Object,required:!0}},data:function(){return{checkedColumns:this.$attrs.modelValue}}};const d=(0,n(744).Z)(s,[["render",function(e,a,n,s,d,u){var m=(0,i.resolveComponent)("DropdownTrigger"),c=(0,i.resolveComponent)("DropdownMenu"),g=(0,i.resolveComponent)("Dropdown");return(0,i.openBlock)(),(0,i.createElementBlock)("div",t,[(0,i.createVNode)(g,{placement:"bottom-end"},{menu:(0,i.withCtx)((function(){return[(0,i.createVNode)(c,{style:{width:"100%",columns:"25vw 3"},class:"p-3 text-90"},{default:(0,i.withCtx)((function(){return[n.resource?((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:0},(0,i.renderList)(n.resource,(function(n,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",o,[(0,i.withDirectives)((0,i.createElementVNode)("input",{class:"mr-2",type:"checkbox",id:t,value:t,"onUpdate:modelValue":a[0]||(a[0]=function(e){return d.checkedColumns=e}),onChange:a[1]||(a[1]=function(a){return e.$emit("checkedColumns",d.checkedColumns)})},null,40,l),[[i.vModelCheckbox,d.checkedColumns]]),(0,i.createElementVNode)("label",{for:t,class:"capitalize"},(0,i.toDisplayString)(e.__(t.replaceAll("_"," "))),9,r)])})),256)):(0,i.createCommentVNode)("",!0)]})),_:1})]})),default:(0,i.withCtx)((function(){return[(0,i.createVNode)(m,{class:"text-90 px-3 shadow rounded bg-gray-100 dark:bg-gray-800"},{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Select Columns")),1)]})),_:1})]})),_:1})])}]])},464:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>d});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800 rounded-b-lg"},o={key:0,class:"flex"},l=["disabled"],r=["disabled"];const s={props:{resource:{type:Array,required:!0},hasMore:{type:Boolean,required:!0},hasPrevious:{type:Boolean,required:!0}},methods:{previousPage:function(){this.$emit("previous")},nextPage:function(){this.$emit("next")}}};const d=(0,n(744).Z)(s,[["render",function(e,a,n,s,d,u){return(0,i.openBlock)(),(0,i.createElementBlock)("div",t,[n.resource.length>0?((0,i.openBlock)(),(0,i.createElementBlock)("nav",o,[(0,i.createElementVNode)("button",{disabled:!n.hasPrevious,class:(0,i.normalizeClass)(["btn btn-link py-3 px-4",{"text-gray-500 dark:text-gray-400":n.hasPrevious,"text-80 opacity-50 cursor-not-allowed":!n.hasPrevious}]),rel:"prev",onClick:a[0]||(a[0]=(0,i.withModifiers)((function(e){return u.previousPage()}),["prevent"])),dusk:"previous"},(0,i.toDisplayString)(e.__("Previous")),11,l),(0,i.createElementVNode)("button",{disabled:!n.hasMore,class:(0,i.normalizeClass)(["ml-auto btn btn-link py-3 px-4",{"text-gray-500 dark:text-gray-400":n.hasMore,"text-80 opacity-50 cursor-not-allowed":!n.hasMore}]),rel:"next",onClick:a[1]||(a[1]=(0,i.withModifiers)((function(e){return u.nextPage()}),["prevent"])),dusk:"next"},(0,i.toDisplayString)(e.__("Next")),11,r)])):(0,i.createCommentVNode)("",!0)])}]])},236:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>m});var i=n(311),t={class:"w-1/2"},o={class:"text-sm uppercase mb-2 text-80"},l={class:"text-2xl"},r={class:"w-1/2"},s={class:"text-sm uppercase mb-2 text-80"},d={class:"text-2xl"};const u={data:function(){return{initialLoading:!0,balance:{}}},methods:{getBalance:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/balance").then((function(a){e.balance=a.data.balance,e.initialLoading=!1}))}},created:function(){this.getBalance()}};const m=(0,n(744).Z)(u,[["render",function(e,a,n,u,m,c){var g=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(g,{loading:m.initialLoading,class:"flex flex-wrap py-8 mb-8 text-center"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[(0,i.createElementVNode)("p",o,(0,i.toDisplayString)(e.__("Available Balance")),1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.balance.available,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("p",l,(0,i.toDisplayString)(e.$filters.money(a.currency,a.amount)),1)])})),256))]),(0,i.createElementVNode)("div",r,[(0,i.createElementVNode)("p",s,(0,i.toDisplayString)(e.__("Pending Balance")),1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.balance.pending,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("p",d,(0,i.toDisplayString)(e.$filters.money(a.currency,a.amount)),1)])})),256))])]})),_:1},8,["loading"])}]])},200:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{chargeId:{type:String,required:!0}},data:function(){return{initialLoading:!0,charge:{amount:0,currency:""}}},computed:{fee:function(){return this.charge.balance_transaction?this.$filters.money(this.charge.balance_transaction.currency,this.charge.balance_transaction.fee):0},net:function(){return this.charge.balance_transaction?this.$filters.money(this.charge.currency,this.charge.amount-this.charge.balance_transaction.fee):0}},methods:{getCharge:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/charges/"+this.chargeId).then((function(a){e.charge=a.data.charge,e.initialLoading=!1,e.$emit("charge-loaded",a.data.charge)}))}},created:function(){this.getCharge()}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=this,s=(0,i.resolveComponent)("DetailTextField"),d=(0,i.resolveComponent)("DetailBooleanField"),u=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:o.initialLoading,class:"mb-6 px-6"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(s,{field:{name:e.__("ID"),value:o.charge.id}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Amount"),value:e.$filters.money(r.charge.currency,r.charge.amount)}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Fee"),value:l.fee}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Net"),value:l.net}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Status"),value:o.charge.status}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Created"),value:e.$filters.date(o.charge.created)}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Metadata"),value:o.charge.metadata}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Livemode"),value:o.charge.livemode}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Captured"),value:o.charge.captured}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Paid"),value:o.charge.paid}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Refunded"),value:o.charge.refunded}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Dispute"),value:o.charge.dispute}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Fraud Details"),value:o.charge.fraud_details}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Transfer Group"),value:o.charge.transfer_group}},null,8,["field"])]})),_:1},8,["loading"])}]])},407:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{customerId:{type:String,required:!0}},data:function(){return{customer:{},initialLoading:!0,shippingAddress:null}},methods:{loadCustomer:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/customers/"+this.customerId).then((function(a){e.customer=a.data.customer,e.initialLoading=!1}))},formatAddress:function(e){return null!=e&&e.line1?"".concat(e.line1,"\n ").concat(e.line2," \n ").concat(e.city,",\n ").concat(e.state,"\n ").concat(e.postal_code):"—"}},created:function(){this.loadCustomer()}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("DetailTextField"),s=(0,i.resolveComponent)("DetailBooleanField"),d=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(d,{loading:o.initialLoading,class:"mb-6 px-6"},{default:(0,i.withCtx)((function(){var a,n;return[(0,i.createVNode)(r,{field:{name:e.__("ID"),value:o.customer.id}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Name"),value:o.customer.name}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Address"),value:l.formatAddress(o.customer.address)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Email"),value:o.customer.email}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Phone"),value:o.customer.phone}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Balance"),value:e.$filters.money(null!==(a=o.customer.currency)&&void 0!==a?a:"usd",o.customer.balance)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Created"),value:e.$filters.date(o.customer.created)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Shipping Address"),value:l.formatAddress(null===(n=o.customer.shipping)||void 0===n?void 0:n.address)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Currency"),value:o.customer.currency}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Default Source"),value:o.customer.default_source}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Delinquent"),value:!o.customer.delinquent}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Description"),value:o.customer.description}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Discount"),value:o.customer.discount}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Invoice Prefix"),value:o.customer.invoice_prefix}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Livemode"),value:o.customer.livemode}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Metadata"),value:o.customer.metadata}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Next Invoice Sequence"),value:o.customer.next_invoice_sequence}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Preferred Locales"),value:o.customer.preferred_locales}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Tax Exempt"),value:o.customer.tax_exempt}},null,8,["field"])]})),_:1},8,["loading"])}]])},4:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"text-90 font-normal text-xl md:text-2xl mb-3 flex items-center"};const o={props:{meta:{type:Object,required:!0},heading:String}};const l=(0,n(744).Z)(o,[["render",function(e,a,n,o,l,r){var s=(0,i.resolveComponent)("Head");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(s,{title:e.__(n.meta.title)},null,8,["title"]),(0,i.createElementVNode)("h1",t,(0,i.toDisplayString)(e.__(n.heading)),1),(0,i.renderSlot)(e.$slots,"default")])}]])},426:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>m});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800"},o=(0,i.createTextVNode)(" "),l={class:"group"},r={key:0},s={key:1},d={key:3};const u={props:{columns:{type:Array,required:!0}},data:function(){return{charges:{},loading:!1,hasMore:!1,moneyColumns:["amount","amount_captured","amount_refunded","application_fee_amount"],dateColumns:["created"],statusClassList:{succeeded:"bg-green-100 text-green-600",pending:"bg-gray-100 text-gray-600",disputed:"bg-orange-100 text-orange-600",failed:"bg-red-100 text-red-600"},page:1}},methods:{listCharges:function(e){var a=this;this.loading=!0,Nova.request().get("/nova-vendor/nova-stripe/stripe/charges",{params:e}).then((function(e){a.charges=e.data.charges.data,a.charges.length>0&&a.$emit("charge",a.charges[0]),a.hasMore=e.data.charges.has_more,a.loading=!1}))},nextPage:function(){this.listCharges({starting_after:this.charges[this.charges.length-1].id})},previousPage:function(){this.listCharges(2!==this.page?{ending_before:this.charges[0].id}:{})},statusClass:function(e){var a=e.status;return e.refunded?a="pending":e.disputed&&(a="disputed"),this.statusClassList[a]},statusLabel:function(e){var a=e.status;return e.refunded?a="Refunded":e.disputed&&(a="Disputed"),a}},created:function(){this.listCharges()}};const m=(0,n(744).Z)(u,[["render",function(e,a,n,u,m,c){var g=(0,i.resolveComponent)("HeaderCell"),_=(0,i.resolveComponent)("BodyCell"),p=(0,i.resolveComponent)("HeroiconsOutlineEye"),b=(0,i.resolveComponent)("InertiaLink"),y=(0,i.resolveComponent)("BaseTable");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(y,{data:m.charges,"model-name":"charges",loading:m.loading,"has-more":m.hasMore,"get-previous-page":c.previousPage,"get-next-page":c.nextPage,onPageUpdated:a[0]||(a[0]=function(e){return m.page=e})},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("thead",t,[(0,i.createElementVNode)("tr",null,[n.columns?((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:0},(0,i.renderList)(n.columns,(function(a){return(0,i.openBlock)(),(0,i.createBlock)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__(a.replaceAll("_"," "))),1)]})),_:2},1024)})),256)):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[o]})),_:1})])]),(0,i.createElementVNode)("tbody",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.charges,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("tr",l,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.columns,(function(n){return(0,i.openBlock)(),(0,i.createBlock)(_,null,{default:(0,i.withCtx)((function(){return[m.moneyColumns.find((function(e){return e===n}))?((0,i.openBlock)(),(0,i.createElementBlock)("span",r,(0,i.toDisplayString)(e.$filters.money(a.currency,a[n])),1)):m.dateColumns.find((function(e){return e===n}))?((0,i.openBlock)(),(0,i.createElementBlock)("span",s,(0,i.toDisplayString)(e.$filters.date(a[n])),1)):"status"===n?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:2,class:(0,i.normalizeClass)(["rounded-lg px-3 py-1 capitalize text-xs font-bold",c.statusClass(a)])},(0,i.toDisplayString)(c.statusLabel(a)),3)):((0,i.openBlock)(),(0,i.createElementBlock)("span",d,(0,i.toDisplayString)(a[n]),1))]})),_:2},1024)})),256)),(0,i.createVNode)(_,null,{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(b,{href:"/nova/nova-stripe/charges/".concat(a.id),"aria-label":e.__("View")},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(p)]})),_:2},1032,["href","aria-label"])])]})),_:2},1024)])})),256))])]})),_:1},8,["data","loading","has-more","get-previous-page","get-next-page"])])}]])},294:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>u});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800"},o=(0,i.createTextVNode)(" "),l={class:"group"},r={key:0},s={key:1};const d={data:function(){return{customers:{},loading:!1,hasMore:!1,page:1}},methods:{listCustomers:function(e){var a=this;this.loading=!0,Nova.request().get("/nova-vendor/nova-stripe/stripe/customers",{params:e}).then((function(e){a.customers=e.data.customers.data,a.hasMore=e.data.customers.has_more,a.loading=!1}))},nextPage:function(){this.listCustomers({starting_after:this.customers[this.customers.length-1].id})},previousPage:function(){this.listCustomers({ending_before:this.customers[0].id})}},created:function(){this.listCustomers()}};const u=(0,n(744).Z)(d,[["render",function(e,a,n,d,u,m){var c=(0,i.resolveComponent)("HeaderCell"),g=(0,i.resolveComponent)("BodyCell"),_=(0,i.resolveComponent)("HeroiconsOutlineEye"),p=(0,i.resolveComponent)("InertiaLink"),b=(0,i.resolveComponent)("BaseTable");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(b,{data:u.customers,"model-name":"customers",loading:u.loading,"has-more":u.hasMore,"get-previous-page":m.previousPage,"get-next-page":m.nextPage,onPageUpdated:a[0]||(a[0]=function(e){return u.page=e})},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("thead",t,[(0,i.createElementVNode)("tr",null,[(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Customer ID")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Name")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Email")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Balance")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[o]})),_:1})])]),(0,i.createElementVNode)("tbody",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(u.customers,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("tr",l,[(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.id),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.name),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.email),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[a.currency?((0,i.openBlock)(),(0,i.createElementBlock)("span",r,(0,i.toDisplayString)(e.$filters.money(a.currency,a.balance)),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",s,"-"))]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(p,{href:"/nova/nova-stripe/customers/".concat(a.id),"aria-label":e.__("View")},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(_)]})),_:2},1032,["href","aria-label"])])]})),_:2},1024)])})),256))])]})),_:1},8,["data","loading","has-more","get-previous-page","get-next-page"])])}]])},624:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>s});var i=n(311),t={class:"overflow-hidden overflow-x-auto relative"},o={key:0,class:"w-full table-default","data-testid":"resource-table"},l={key:1,class:"w-full italic"};const r={props:{data:Array,modelName:String,loading:Boolean,hasMore:Boolean,getPreviousPage:Function,getNextPage:Function},data:function(){return{page:1,initialLoading:!0}},computed:{hasPrevious:function(){return this.page>1}},watch:{loading:function(){this.initialLoading=!1},page:function(e){this.$emit("page-updated",e)}},methods:{nextPage:function(){this.getNextPage(),this.page++},previousPage:function(){this.getPreviousPage(),this.hasPrevious&&this.page--}}};const s=(0,n(744).Z)(r,[["render",function(e,a,n,r,s,d){var u=(0,i.resolveComponent)("PaginationLinks"),m=(0,i.resolveComponent)("LoadingCard"),c=(0,i.resolveComponent)("LoadingView");return(0,i.openBlock)(),(0,i.createBlock)(c,{loading:s.initialLoading},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(m,{loading:n.loading,class:"card relative"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[n.data.length?((0,i.openBlock)(),(0,i.createElementBlock)("table",o,[(0,i.renderSlot)(e.$slots,"default")])):((0,i.openBlock)(),(0,i.createElementBlock)("div",l,"No "+(0,i.toDisplayString)(n.modelName),1))]),(0,i.createVNode)(u,{resource:n.data,hasMore:n.hasMore,hasPrevious:d.hasPrevious,onPrevious:d.previousPage,onNext:d.nextPage},null,8,["resource","hasMore","hasPrevious","onPrevious","onNext"])]})),_:3},8,["loading"])]})),_:3},8,["loading"])}]])},859:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"py-4 border-t border-gray-100 dark:border-gray-700 px-2 cursor-pointer pl-5 pr-5 dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"};const o={},l=(0,n(744).Z)(o,[["render",function(e,a){return(0,i.openBlock)(),(0,i.createElementBlock)("td",t,[(0,i.renderSlot)(e.$slots,"default")])}]])},186:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"text-left px-2 whitespace-nowrap uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"};const o={},l=(0,n(744).Z)(o,[["render",function(e,a){return(0,i.openBlock)(),(0,i.createElementBlock)("th",t,[(0,i.renderSlot)(e.$slots,"default")])}]])},722:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{customerId:{type:String,required:!0}}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("CustomerDetailCard"),s=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(s,{meta:{title:"Customer Details"},heading:"Customer Details"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r,{"customer-id":n.customerId},null,8,["customer-id"])]})),_:1})}]])},709:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={},o=(0,n(744).Z)(t,[["render",function(e,a){var n=(0,i.resolveComponent)("CustomersTable"),t=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(t,{meta:{title:"Customers"},heading:"Customers"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(n)]})),_:1})}]])},798:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>r});var i=n(311),t={class:"flex flex-row-reverse mb-3"},o=["disabled"];const l={props:{chargeId:{type:String,required:!0}},data:function(){return{charge:null,deleting:!1}},methods:{refund:function(){var e=this;this.deleting=!0,Nova.request().post("/nova-vendor/nova-stripe/stripe/charges/"+this.chargeId+"/refund").then((function(a){Nova.success("Charge Successfully Refunded!"),e.$refs.detail.getCharge()})),this.deleting=!1}}};const r=(0,n(744).Z)(l,[["render",function(e,a,n,l,r,s){var d=(0,i.resolveComponent)("ChargeDetailCard"),u=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(u,{meta:{title:"Charge Details"},heading:"Charge Details"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[r.charge&&!r.charge.refunded&&"succeeded"===r.charge.status?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"shadow rounded focus:outline-none ring-primary-200 dark:ring-gray-600 focus:ring bg-primary-500 hover:bg-primary-400 active:bg-primary-600 text-white dark:text-gray-800 inline-flex items-center font-bold px-4 h-9 text-sm",onClick:a[0]||(a[0]=function(){return s.refund&&s.refund.apply(s,arguments)}),disabled:r.deleting},(0,i.toDisplayString)(e.__("Refund")),9,o)):(0,i.createCommentVNode)("",!0)]),(0,i.createVNode)(d,{ref:"detail","charge-id":n.chargeId,onChargeLoaded:a[1]||(a[1]=function(e){return r.charge=e})},null,8,["charge-id"])]})),_:1})}]])},231:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={data:function(){return{selectedColumns:["id","amount","created","status"],singleCharge:{}}}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("BalanceCard"),s=(0,i.resolveComponent)("ColumnSelect"),d=(0,i.resolveComponent)("ChargesTable"),u=(0,i.resolveComponent)("Card"),m=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(m,{heading:"Stripe Dashboard",meta:{title:"Stripe Dashboard"}},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r),(0,i.createVNode)(u,null,{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(s,{modelValue:o.selectedColumns,"onUpdate:modelValue":a[0]||(a[0]=function(e){return o.selectedColumns=e}),resource:o.singleCharge,onCheckedColumns:a[1]||(a[1]=function(e){return o.selectedColumns=e})},null,8,["modelValue","resource"]),(0,i.createVNode)(d,{onCharge:a[2]||(a[2]=function(e){return o.singleCharge=e}),columns:o.selectedColumns},null,8,["columns"])]})),_:1})]})),_:1})}]])},642:(e,a,n)=>{var i={"./components/ColumnSelect.vue":588,"./components/PaginationLinks.vue":464,"./components/cards/BalanceCard.vue":236,"./components/cards/ChargeDetailCard.vue":200,"./components/cards/CustomerDetailCard.vue":407,"./components/layouts/NovaStripeLayout.vue":4,"./components/tables/ChargesTable.vue":426,"./components/tables/CustomersTable.vue":294,"./components/tables/_shared/BaseTable.vue":624,"./components/tables/_shared/BodyCell.vue":859,"./components/tables/_shared/HeaderCell.vue":186,"./pages/CustomerDetail.vue":722,"./pages/Customers.vue":709,"./pages/Detail.vue":798,"./pages/Tool.vue":231};function t(e){var a=o(e);return n(a)}function o(e){if(!n.o(i,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return i[e]}t.keys=function(){return Object.keys(i)},t.resolve=o,e.exports=t,t.id=642},311:e=>{"use strict";e.exports=Vue}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return a[e].call(o.exports,o,o.exports,i),o.exports}i.m=a,e=[],i.O=(a,n,t,o)=>{if(!n){var l=1/0;for(u=0;u=o)&&Object.keys(i.O).every((e=>i.O[e](n[s])))?n.splice(s--,1):(r=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,t,o]},i.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return i.d(a,{a}),a},i.d=(e,a)=>{for(var n in a)i.o(a,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},i.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={103:0,990:0};i.O.j=a=>0===e[a];var a=(a,n)=>{var t,o,[l,r,s]=n,d=0;if(l.some((a=>0!==e[a]))){for(t in r)i.o(r,t)&&(i.m[t]=r[t]);if(s)var u=s(i)}for(a&&a(n);di(746)));var t=i.O(void 0,[990],(()=>i(762)));t=i.O(t)})(); \ No newline at end of file +(()=>{var e,a={746:(e,a,n)=>{"use strict";var i=n(740),t=n.n(i);function o(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var a=1;a{},744:(e,a)=>{"use strict";a.Z=(e,a)=>{const n=e.__vccOpts||e;for(const[e,i]of a)n[e]=i;return n}},42:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>d});var i=n(311),t={class:"flex justify-end p-2 py-3 border-b border-gray-200 dark:border-gray-700"},o={class:"ns-m-2"},l=["id","value"],r=["for"];const s={props:{resource:{type:Object,required:!0}},data:function(){return{checkedColumns:this.$attrs.modelValue}}};const d=(0,n(744).Z)(s,[["render",function(e,a,n,s,d,u){var m=(0,i.resolveComponent)("DropdownTrigger"),c=(0,i.resolveComponent)("DropdownMenu"),g=(0,i.resolveComponent)("Dropdown");return(0,i.openBlock)(),(0,i.createElementBlock)("div",t,[(0,i.createVNode)(g,{placement:"bottom-end"},{menu:(0,i.withCtx)((function(){return[(0,i.createVNode)(c,{style:{width:"100%",columns:"25vw 3"},class:"ns-p-3 ns-text-90"},{default:(0,i.withCtx)((function(){return[n.resource?((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:0},(0,i.renderList)(n.resource,(function(n,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",o,[(0,i.withDirectives)((0,i.createElementVNode)("input",{class:"ns-mr-2",type:"checkbox",id:t,value:t,"onUpdate:modelValue":a[0]||(a[0]=function(e){return d.checkedColumns=e}),onChange:a[1]||(a[1]=function(a){return e.$emit("checkedColumns",d.checkedColumns)})},null,40,l),[[i.vModelCheckbox,d.checkedColumns]]),(0,i.createElementVNode)("label",{for:t,class:"capitalize"},(0,i.toDisplayString)(e.__(t.replaceAll("_"," "))),9,r)])})),256)):(0,i.createCommentVNode)("",!0)]})),_:1})]})),default:(0,i.withCtx)((function(){return[(0,i.createVNode)(m,{class:"text-90 px-3 shadow rounded bg-gray-100 dark:bg-gray-800"},{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Select Columns")),1)]})),_:1})]})),_:1})])}]])},464:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>d});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800 rounded-b-lg"},o={key:0,class:"flex"},l=["disabled"],r=["disabled"];const s={props:{resource:{type:Array,required:!0},hasMore:{type:Boolean,required:!0},hasPrevious:{type:Boolean,required:!0}},methods:{previousPage:function(){this.$emit("previous")},nextPage:function(){this.$emit("next")}}};const d=(0,n(744).Z)(s,[["render",function(e,a,n,s,d,u){return(0,i.openBlock)(),(0,i.createElementBlock)("div",t,[n.resource.length>0?((0,i.openBlock)(),(0,i.createElementBlock)("nav",o,[(0,i.createElementVNode)("button",{disabled:!n.hasPrevious,class:(0,i.normalizeClass)(["btn btn-link py-3 px-4",{"text-gray-500 dark:text-gray-400":n.hasPrevious,"text-80 opacity-50 cursor-not-allowed":!n.hasPrevious}]),rel:"prev",onClick:a[0]||(a[0]=(0,i.withModifiers)((function(e){return u.previousPage()}),["prevent"])),dusk:"previous"},(0,i.toDisplayString)(e.__("Previous")),11,l),(0,i.createElementVNode)("button",{disabled:!n.hasMore,class:(0,i.normalizeClass)(["ml-auto btn btn-link py-3 px-4",{"text-gray-500 dark:text-gray-400":n.hasMore,"text-80 opacity-50 cursor-not-allowed":!n.hasMore}]),rel:"next",onClick:a[1]||(a[1]=(0,i.withModifiers)((function(e){return u.nextPage()}),["prevent"])),dusk:"next"},(0,i.toDisplayString)(e.__("Next")),11,r)])):(0,i.createCommentVNode)("",!0)])}]])},236:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>m});var i=n(311),t={class:"w-1/2"},o={class:"text-sm uppercase mb-2 text-80"},l={class:"text-2xl"},r={class:"w-1/2"},s={class:"text-sm uppercase mb-2 text-80"},d={class:"text-2xl"};const u={data:function(){return{initialLoading:!0,balance:{}}},methods:{getBalance:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/balance").then((function(a){e.balance=a.data.balance,e.initialLoading=!1}))}},created:function(){this.getBalance()}};const m=(0,n(744).Z)(u,[["render",function(e,a,n,u,m,c){var g=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(g,{loading:m.initialLoading,class:"flex flex-wrap py-8 mb-8 text-center"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[(0,i.createElementVNode)("p",o,(0,i.toDisplayString)(e.__("Available Balance")),1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.balance.available,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("p",l,(0,i.toDisplayString)(e.$filters.money(a.currency,a.amount)),1)])})),256))]),(0,i.createElementVNode)("div",r,[(0,i.createElementVNode)("p",s,(0,i.toDisplayString)(e.__("Pending Balance")),1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.balance.pending,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("p",d,(0,i.toDisplayString)(e.$filters.money(a.currency,a.amount)),1)])})),256))])]})),_:1},8,["loading"])}]])},41:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{chargeId:{type:String,required:!0}},data:function(){return{initialLoading:!0,charge:{amount:0,currency:""}}},computed:{fee:function(){return this.charge.balance_transaction?this.$filters.money(this.charge.balance_transaction.currency,this.charge.balance_transaction.fee):0},net:function(){return this.charge.balance_transaction?this.$filters.money(this.charge.currency,this.charge.amount-this.charge.balance_transaction.fee):0}},methods:{getCharge:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/charges/"+this.chargeId).then((function(a){e.charge=a.data.charge,e.initialLoading=!1,e.$emit("charge-loaded",a.data.charge)}))}},created:function(){this.getCharge()}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=this,s=(0,i.resolveComponent)("DetailTextField"),d=(0,i.resolveComponent)("DetailBooleanField"),u=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:o.initialLoading,class:"ns-mb-6 ns-px-6"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(s,{field:{name:e.__("ID"),value:o.charge.id}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Amount"),value:e.$filters.money(r.charge.currency,r.charge.amount)}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Fee"),value:l.fee}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Net"),value:l.net}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Status"),value:o.charge.status}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Created"),value:e.$filters.date(o.charge.created)}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Metadata"),value:o.charge.metadata}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Livemode"),value:o.charge.livemode}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Captured"),value:o.charge.captured}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Paid"),value:o.charge.paid}},null,8,["field"]),(0,i.createVNode)(d,{field:{name:e.__("Refunded"),value:o.charge.refunded}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Dispute"),value:o.charge.dispute}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Fraud Details"),value:o.charge.fraud_details}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Transfer Group"),value:o.charge.transfer_group}},null,8,["field"])]})),_:1},8,["loading"])}]])},107:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{customerId:{type:String,required:!0}},data:function(){return{customer:{},initialLoading:!0,shippingAddress:null}},methods:{loadCustomer:function(){var e=this;Nova.request().get("/nova-vendor/nova-stripe/stripe/customers/"+this.customerId).then((function(a){e.customer=a.data.customer,e.initialLoading=!1}))},formatAddress:function(e){return null!=e&&e.line1?"".concat(e.line1,"\n ").concat(e.line2,"\n ").concat(e.city,",\n ").concat(e.state,"\n ").concat(e.postal_code):"—"}},created:function(){this.loadCustomer()}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("DetailTextField"),s=(0,i.resolveComponent)("DetailBooleanField"),d=(0,i.resolveComponent)("LoadingCard");return(0,i.openBlock)(),(0,i.createBlock)(d,{loading:o.initialLoading,class:"ns-mb-6 ns-px-6"},{default:(0,i.withCtx)((function(){var a,n;return[(0,i.createVNode)(r,{field:{name:e.__("ID"),value:o.customer.id}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Name"),value:o.customer.name}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Address"),value:l.formatAddress(o.customer.address)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Email"),value:o.customer.email}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Phone"),value:o.customer.phone}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Balance"),value:e.$filters.money(null!==(a=o.customer.currency)&&void 0!==a?a:"usd",o.customer.balance)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Created"),value:e.$filters.date(o.customer.created)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Shipping Address"),value:l.formatAddress(null===(n=o.customer.shipping)||void 0===n?void 0:n.address)}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Currency"),value:o.customer.currency}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Default Source"),value:o.customer.default_source}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Delinquent"),value:!o.customer.delinquent}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Description"),value:o.customer.description}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Discount"),value:o.customer.discount}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Invoice Prefix"),value:o.customer.invoice_prefix}},null,8,["field"]),(0,i.createVNode)(s,{field:{name:e.__("Livemode"),value:o.customer.livemode}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Metadata"),value:o.customer.metadata}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Next Invoice Sequence"),value:o.customer.next_invoice_sequence}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Preferred Locales"),value:o.customer.preferred_locales}},null,8,["field"]),(0,i.createVNode)(r,{field:{name:e.__("Tax Exempt"),value:o.customer.tax_exempt}},null,8,["field"])]})),_:1},8,["loading"])}]])},4:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"text-90 font-normal text-xl md:text-2xl mb-3 flex items-center"};const o={props:{meta:{type:Object,required:!0},heading:String}};const l=(0,n(744).Z)(o,[["render",function(e,a,n,o,l,r){var s=(0,i.resolveComponent)("Head");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(s,{title:e.__(n.meta.title)},null,8,["title"]),(0,i.createElementVNode)("h1",t,(0,i.toDisplayString)(e.__(n.heading)),1),(0,i.renderSlot)(e.$slots,"default")])}]])},982:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>m});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800"},o=(0,i.createTextVNode)(" "),l={class:"group"},r={key:0},s={key:1},d={key:3};const u={props:{columns:{type:Array,required:!0}},data:function(){return{charges:{},loading:!1,hasMore:!1,moneyColumns:["amount","amount_captured","amount_refunded","application_fee_amount"],dateColumns:["created"],statusClassList:{succeeded:"ns-bg-green-100 ns-text-green-600",pending:"ns-bg-gray-100 ns-text-gray-600",disputed:"ns-bg-orange-100 ns-text-orange-600",failed:"ns-bg-red-100 ns-text-red-600"},page:1}},methods:{listCharges:function(e){var a=this;this.loading=!0,Nova.request().get("/nova-vendor/nova-stripe/stripe/charges",{params:e}).then((function(e){a.charges=e.data.charges.data,a.charges.length>0&&a.$emit("charge",a.charges[0]),a.hasMore=e.data.charges.has_more,a.loading=!1}))},nextPage:function(){this.listCharges({starting_after:this.charges[this.charges.length-1].id})},previousPage:function(){this.listCharges(2!==this.page?{ending_before:this.charges[0].id}:{})},statusClass:function(e){var a=e.status;return e.refunded?a="pending":e.disputed&&(a="disputed"),this.statusClassList[a]},statusLabel:function(e){var a=e.status;return e.refunded?a="Refunded":e.disputed&&(a="Disputed"),a}},created:function(){this.listCharges()}};const m=(0,n(744).Z)(u,[["render",function(e,a,n,u,m,c){var g=(0,i.resolveComponent)("HeaderCell"),_=(0,i.resolveComponent)("BodyCell"),p=(0,i.resolveComponent)("HeroiconsOutlineEye"),b=(0,i.resolveComponent)("InertiaLink"),y=(0,i.resolveComponent)("BaseTable");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(y,{data:m.charges,"model-name":"charges",loading:m.loading,"has-more":m.hasMore,"get-previous-page":c.previousPage,"get-next-page":c.nextPage,onPageUpdated:a[0]||(a[0]=function(e){return m.page=e})},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("thead",t,[(0,i.createElementVNode)("tr",null,[n.columns?((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:0},(0,i.renderList)(n.columns,(function(a){return(0,i.openBlock)(),(0,i.createBlock)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__(a.replaceAll("_"," "))),1)]})),_:2},1024)})),256)):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[o]})),_:1})])]),(0,i.createElementVNode)("tbody",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(m.charges,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("tr",l,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.columns,(function(n){return(0,i.openBlock)(),(0,i.createBlock)(_,null,{default:(0,i.withCtx)((function(){return[m.moneyColumns.find((function(e){return e===n}))?((0,i.openBlock)(),(0,i.createElementBlock)("span",r,(0,i.toDisplayString)(e.$filters.money(a.currency,a[n])),1)):m.dateColumns.find((function(e){return e===n}))?((0,i.openBlock)(),(0,i.createElementBlock)("span",s,(0,i.toDisplayString)(e.$filters.date(a[n])),1)):"status"===n?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:2,class:(0,i.normalizeClass)(["rounded-lg px-3 py-1 capitalize text-xs font-bold",c.statusClass(a)])},(0,i.toDisplayString)(c.statusLabel(a)),3)):((0,i.openBlock)(),(0,i.createElementBlock)("span",d,(0,i.toDisplayString)(a[n]),1))]})),_:2},1024)})),256)),(0,i.createVNode)(_,null,{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(b,{href:"/nova/nova-stripe/charges/".concat(a.id),"aria-label":e.__("View")},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(p)]})),_:2},1032,["href","aria-label"])])]})),_:2},1024)])})),256))])]})),_:1},8,["data","loading","has-more","get-previous-page","get-next-page"])])}]])},294:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>u});var i=n(311),t={class:"bg-gray-50 dark:bg-gray-800"},o=(0,i.createTextVNode)(" "),l={class:"group"},r={key:0},s={key:1};const d={data:function(){return{customers:{},loading:!1,hasMore:!1,page:1}},methods:{listCustomers:function(e){var a=this;this.loading=!0,Nova.request().get("/nova-vendor/nova-stripe/stripe/customers",{params:e}).then((function(e){a.customers=e.data.customers.data,a.hasMore=e.data.customers.has_more,a.loading=!1}))},nextPage:function(){this.listCustomers({starting_after:this.customers[this.customers.length-1].id})},previousPage:function(){this.listCustomers({ending_before:this.customers[0].id})}},created:function(){this.listCustomers()}};const u=(0,n(744).Z)(d,[["render",function(e,a,n,d,u,m){var c=(0,i.resolveComponent)("HeaderCell"),g=(0,i.resolveComponent)("BodyCell"),_=(0,i.resolveComponent)("HeroiconsOutlineEye"),p=(0,i.resolveComponent)("InertiaLink"),b=(0,i.resolveComponent)("BaseTable");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(b,{data:u.customers,"model-name":"customers",loading:u.loading,"has-more":u.hasMore,"get-previous-page":m.previousPage,"get-next-page":m.nextPage,onPageUpdated:a[0]||(a[0]=function(e){return u.page=e})},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("thead",t,[(0,i.createElementVNode)("tr",null,[(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Customer ID")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Name")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Email")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.__("Balance")),1)]})),_:1}),(0,i.createVNode)(c,null,{default:(0,i.withCtx)((function(){return[o]})),_:1})])]),(0,i.createElementVNode)("tbody",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(u.customers,(function(a){return(0,i.openBlock)(),(0,i.createElementBlock)("tr",l,[(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.id),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.name),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(a.email),1)]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[a.currency?((0,i.openBlock)(),(0,i.createElementBlock)("span",r,(0,i.toDisplayString)(e.$filters.money(a.currency,a.balance)),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",s,"-"))]})),_:2},1024),(0,i.createVNode)(g,null,{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(p,{href:"/nova/nova-stripe/customers/".concat(a.id),"aria-label":e.__("View")},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(_)]})),_:2},1032,["href","aria-label"])])]})),_:2},1024)])})),256))])]})),_:1},8,["data","loading","has-more","get-previous-page","get-next-page"])])}]])},624:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>s});var i=n(311),t={class:"overflow-hidden overflow-x-auto relative"},o={key:0,class:"w-full table-default","data-testid":"resource-table"},l={key:1,class:"w-full italic"};const r={props:{data:Array,modelName:String,loading:Boolean,hasMore:Boolean,getPreviousPage:Function,getNextPage:Function},data:function(){return{page:1,initialLoading:!0}},computed:{hasPrevious:function(){return this.page>1}},watch:{loading:function(){this.initialLoading=!1},page:function(e){this.$emit("page-updated",e)}},methods:{nextPage:function(){this.getNextPage(),this.page++},previousPage:function(){this.getPreviousPage(),this.hasPrevious&&this.page--}}};const s=(0,n(744).Z)(r,[["render",function(e,a,n,r,s,d){var u=(0,i.resolveComponent)("PaginationLinks"),m=(0,i.resolveComponent)("LoadingCard"),c=(0,i.resolveComponent)("LoadingView");return(0,i.openBlock)(),(0,i.createBlock)(c,{loading:s.initialLoading},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(m,{loading:n.loading,class:"card relative"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[n.data.length?((0,i.openBlock)(),(0,i.createElementBlock)("table",o,[(0,i.renderSlot)(e.$slots,"default")])):((0,i.openBlock)(),(0,i.createElementBlock)("div",l,"No "+(0,i.toDisplayString)(n.modelName),1))]),(0,i.createVNode)(u,{resource:n.data,hasMore:n.hasMore,hasPrevious:d.hasPrevious,onPrevious:d.previousPage,onNext:d.nextPage},null,8,["resource","hasMore","hasPrevious","onPrevious","onNext"])]})),_:3},8,["loading"])]})),_:3},8,["loading"])}]])},859:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"py-4 border-t border-gray-100 dark:border-gray-700 px-2 cursor-pointer pl-5 pr-5 dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"};const o={},l=(0,n(744).Z)(o,[["render",function(e,a){return(0,i.openBlock)(),(0,i.createElementBlock)("td",t,[(0,i.renderSlot)(e.$slots,"default")])}]])},186:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>l});var i=n(311),t={class:"text-left px-2 whitespace-nowrap uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"};const o={},l=(0,n(744).Z)(o,[["render",function(e,a){return(0,i.openBlock)(),(0,i.createElementBlock)("th",t,[(0,i.renderSlot)(e.$slots,"default")])}]])},722:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={props:{customerId:{type:String,required:!0}}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("CustomerDetailCard"),s=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(s,{meta:{title:"Customer Details"},heading:"Customer Details"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r,{"customer-id":n.customerId},null,8,["customer-id"])]})),_:1})}]])},709:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={},o=(0,n(744).Z)(t,[["render",function(e,a){var n=(0,i.resolveComponent)("CustomersTable"),t=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(t,{meta:{title:"Customers"},heading:"Customers"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(n)]})),_:1})}]])},634:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>r});var i=n(311),t={class:"flex ns-flex-row-reverse mb-3"},o=["disabled"];const l={props:{chargeId:{type:String,required:!0}},data:function(){return{charge:null,deleting:!1}},methods:{refund:function(){var e=this;this.deleting=!0,Nova.request().post("/nova-vendor/nova-stripe/stripe/charges/"+this.chargeId+"/refund").then((function(a){Nova.success("Charge Successfully Refunded!"),e.$refs.detail.getCharge()})),this.deleting=!1}}};const r=(0,n(744).Z)(l,[["render",function(e,a,n,l,r,s){var d=(0,i.resolveComponent)("ChargeDetailCard"),u=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(u,{meta:{title:"Charge Details"},heading:"Charge Details"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",t,[r.charge&&!r.charge.refunded&&"succeeded"===r.charge.status?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"shadow rounded focus:outline-none ring-primary-200 dark:ring-gray-600 focus:ring bg-primary-500 hover:bg-primary-400 active:bg-primary-600 text-white dark:text-gray-800 inline-flex items-center font-bold px-4 h-9 text-sm",onClick:a[0]||(a[0]=function(){return s.refund&&s.refund.apply(s,arguments)}),disabled:r.deleting},(0,i.toDisplayString)(e.__("Refund")),9,o)):(0,i.createCommentVNode)("",!0)]),(0,i.createVNode)(d,{ref:"detail","charge-id":n.chargeId,onChargeLoaded:a[1]||(a[1]=function(e){return r.charge=e})},null,8,["charge-id"])]})),_:1})}]])},231:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>o});var i=n(311);const t={data:function(){return{selectedColumns:["id","amount","created","status"],singleCharge:{}}}};const o=(0,n(744).Z)(t,[["render",function(e,a,n,t,o,l){var r=(0,i.resolveComponent)("BalanceCard"),s=(0,i.resolveComponent)("ColumnSelect"),d=(0,i.resolveComponent)("ChargesTable"),u=(0,i.resolveComponent)("Card"),m=(0,i.resolveComponent)("NovaStripeLayout");return(0,i.openBlock)(),(0,i.createBlock)(m,{heading:"Stripe Dashboard",meta:{title:"Stripe Dashboard"}},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r),(0,i.createVNode)(u,null,{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(s,{modelValue:o.selectedColumns,"onUpdate:modelValue":a[0]||(a[0]=function(e){return o.selectedColumns=e}),resource:o.singleCharge,onCheckedColumns:a[1]||(a[1]=function(e){return o.selectedColumns=e})},null,8,["modelValue","resource"]),(0,i.createVNode)(d,{onCharge:a[2]||(a[2]=function(e){return o.singleCharge=e}),columns:o.selectedColumns},null,8,["columns"])]})),_:1})]})),_:1})}]])},642:(e,a,n)=>{var i={"./components/ColumnSelect.vue":42,"./components/PaginationLinks.vue":464,"./components/cards/BalanceCard.vue":236,"./components/cards/ChargeDetailCard.vue":41,"./components/cards/CustomerDetailCard.vue":107,"./components/layouts/NovaStripeLayout.vue":4,"./components/tables/ChargesTable.vue":982,"./components/tables/CustomersTable.vue":294,"./components/tables/_shared/BaseTable.vue":624,"./components/tables/_shared/BodyCell.vue":859,"./components/tables/_shared/HeaderCell.vue":186,"./pages/CustomerDetail.vue":722,"./pages/Customers.vue":709,"./pages/Detail.vue":634,"./pages/Tool.vue":231};function t(e){var a=o(e);return n(a)}function o(e){if(!n.o(i,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return i[e]}t.keys=function(){return Object.keys(i)},t.resolve=o,e.exports=t,t.id=642},311:e=>{"use strict";e.exports=Vue}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return a[e].call(o.exports,o,o.exports,i),o.exports}i.m=a,e=[],i.O=(a,n,t,o)=>{if(!n){var l=1/0;for(u=0;u=o)&&Object.keys(i.O).every((e=>i.O[e](n[s])))?n.splice(s--,1):(r=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,t,o]},i.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return i.d(a,{a}),a},i.d=(e,a)=>{for(var n in a)i.o(a,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},i.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={103:0,990:0};i.O.j=a=>0===e[a];var a=(a,n)=>{var t,o,[l,r,s]=n,d=0;if(l.some((a=>0!==e[a]))){for(t in r)i.o(r,t)&&(i.m[t]=r[t]);if(s)var u=s(i)}for(a&&a(n);di(746)));var t=i.O(void 0,[990],(()=>i(762)));t=i.O(t)})(); \ No newline at end of file diff --git a/resources/js/components/ColumnSelect.vue b/resources/js/components/ColumnSelect.vue index c582d46..df8b8ea 100644 --- a/resources/js/components/ColumnSelect.vue +++ b/resources/js/components/ColumnSelect.vue @@ -12,15 +12,15 @@