@jsg-developer/vue-pack 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/ArrayObject-Cb0A6NL-.cjs +1 -0
  2. package/dist/ArrayObject-G-w4_LdV.js +4 -0
  3. package/dist/ColorPicker-BOU6KGlX.cjs +1 -0
  4. package/dist/ColorPicker-_HBqDi2i.js +4 -0
  5. package/dist/ComboboxComponent-BKzDSOlW.cjs +1 -0
  6. package/dist/ComboboxComponent-dHzbOpla.js +4 -0
  7. package/dist/CurrencyInput-BkEubeqv.js +4 -0
  8. package/dist/CurrencyInput-BoLzCKBI.cjs +1 -0
  9. package/dist/DEPENDENCY-LICENSES.txt +1 -96
  10. package/dist/DateInput-BOmJIkVs.js +4 -0
  11. package/dist/DateInput-CkwXQGkB.cjs +1 -0
  12. package/dist/DateTimeInput-COgGqch6.cjs +1 -0
  13. package/dist/DateTimeInput-Cy3evqKy.js +4 -0
  14. package/dist/DateTimeInput.vue_vue_type_script_setup_true_lang-PkNDbgK0.cjs +2 -0
  15. package/dist/DateTimeInput.vue_vue_type_script_setup_true_lang-T42eSMbp.js +142 -0
  16. package/dist/EmailInput-BFMPoqlz.js +4 -0
  17. package/dist/EmailInput-BH6wvnu5.cjs +1 -0
  18. package/dist/FileArrayInput-Cf_9Mrc6.js +5 -0
  19. package/dist/FileArrayInput-Crgama_k.cjs +1 -0
  20. package/dist/FileArrayInput.vue_vue_type_script_setup_true_lang-ChT-nLrY.js +198 -0
  21. package/dist/FileArrayInput.vue_vue_type_script_setup_true_lang-IBxome2w.cjs +2 -0
  22. package/dist/FileInput-Cv5K7drD.js +4 -0
  23. package/dist/FileInput-E05E9FcK.cjs +1 -0
  24. package/dist/GroupRenderer-BNf5s8mD.cjs +1 -0
  25. package/dist/GroupRenderer-CIgOBN5K.js +4 -0
  26. package/dist/ImageArrayInput-8Qgrvcbb.cjs +1 -0
  27. package/dist/ImageArrayInput-BPCMsKu1.js +5 -0
  28. package/dist/ImageArrayInput.vue_vue_type_script_setup_true_lang-BcE8UQhP.cjs +2 -0
  29. package/dist/ImageArrayInput.vue_vue_type_script_setup_true_lang-D7NOHKcL.js +322 -0
  30. package/dist/ImageInput-B4APQoOO.js +4 -0
  31. package/dist/ImageInput-Mj7_sYYX.cjs +1 -0
  32. package/dist/NumberInput-ClvWuXot.cjs +1 -0
  33. package/dist/NumberInput-Czd4poVa.js +4 -0
  34. package/dist/ObjectInput-CjB0V2zR.js +4 -0
  35. package/dist/ObjectInput-DjSJwhGr.cjs +1 -0
  36. package/dist/PasswordInput-DRh06StM.js +4 -0
  37. package/dist/PasswordInput-DTfrmgOD.cjs +1 -0
  38. package/dist/RateInput-BtyyMCbk.cjs +1 -0
  39. package/dist/RateInput-D5fJbQZN.js +4 -0
  40. package/dist/TabelData-BYu-G2SR.cjs +1 -0
  41. package/dist/TabelData-Dh93tqPE.js +2437 -0
  42. package/dist/TagInput-BzVaBoUE.cjs +1 -0
  43. package/dist/TagInput-CCAXe9xT.js +4 -0
  44. package/dist/TelInput-CbIiq52O.js +4 -0
  45. package/dist/TelInput-mPzO-Dus.cjs +1 -0
  46. package/dist/TextAreaInput-CfYiwJ4X.js +4 -0
  47. package/dist/TextAreaInput-Cs1aCwDH.cjs +1 -0
  48. package/dist/TextAreaQuill-DnN9J7_3.cjs +1 -0
  49. package/dist/TextAreaQuill-qInAEeeB.js +600 -0
  50. package/dist/TextInput-BlJmRFwH.cjs +1 -0
  51. package/dist/TextInput-DK78fqLR.js +4 -0
  52. package/dist/TimeInput-BrjXbwHE.cjs +1 -0
  53. package/dist/TimeInput-fS0dhh7j.js +4 -0
  54. package/dist/ToggleInput-CCNu8DT9.cjs +1 -0
  55. package/dist/ToggleInput-Dz5NPH5L.js +4 -0
  56. package/dist/UrlInput-BVJivcaK.js +4 -0
  57. package/dist/UrlInput-BbVaLK_E.cjs +1 -0
  58. package/dist/init.cjs.js +1 -1
  59. package/dist/init.es.js +1 -1
  60. package/dist/jsgd-vue-pack.cjs.js +1 -1
  61. package/dist/jsgd-vue-pack.es.js +1640 -310
  62. package/dist/plugin/vue.cjs.js +1 -1
  63. package/dist/plugin/vue.es.js +48 -41
  64. package/dist/resize-B2mDlzAG.cjs +12 -0
  65. package/dist/resize-DgY2sl-h.js +5942 -0
  66. package/dist/types/components/Form/composables/useFormModal.d.ts +9 -0
  67. package/dist/types/components/Tabel/TabelData.vue.d.ts +5 -4
  68. package/dist/types/components/Tabel/composables/useTableLogic.d.ts +0 -1
  69. package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts +1 -1
  70. package/dist/types/components/UI/Inputs/CurrencyInput.vue.d.ts +13 -0
  71. package/dist/types/components/UI/Inputs/FileInput.vue.d.ts +2 -2
  72. package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts +2 -2
  73. package/dist/types/components/UI/Inputs/RateInput.vue.d.ts +9 -0
  74. package/dist/types/components/UI/Inputs/TelInput.vue.d.ts +13 -0
  75. package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +3 -3
  76. package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +12 -0
  77. package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +23 -0
  78. package/dist/types/components/UI/Inputs/composables/index.d.ts +1 -0
  79. package/dist/types/components/UI/Inputs/composables/useCurrencyInput.d.ts +11 -0
  80. package/dist/types/components/UI/Inputs/index.d.ts +3 -0
  81. package/dist/types/configs/types/field.types.d.ts +50 -4
  82. package/dist/types/configs/types/globalText.types.d.ts +2 -1
  83. package/dist/types/configs/types/props.types.d.ts +53 -2
  84. package/dist/types/configs/types/schema.types.d.ts +3 -2
  85. package/dist/types/configs/types/table-data.types.d.ts +3 -11
  86. package/dist/types/lib/demoData.d.ts +313 -0
  87. package/dist/types/lib/index.d.ts +1 -0
  88. package/dist/types/schemas/CQ.d.ts +2 -0
  89. package/dist/types/schemas/TestSchema.d.ts +2 -1
  90. package/dist/types/schemas/categories.d.ts +2 -0
  91. package/dist/types/schemas/colors.d.ts +2 -0
  92. package/dist/types/schemas/expenditure.d.ts +2 -0
  93. package/dist/types/schemas/income.d.ts +9 -0
  94. package/dist/types/schemas/index.d.ts +16 -1
  95. package/dist/types/schemas/model.d.ts +2 -0
  96. package/dist/types/schemas/news.d.ts +2 -0
  97. package/dist/types/schemas/order.d.ts +2 -0
  98. package/dist/types/schemas/page.d.ts +2 -0
  99. package/dist/types/schemas/promo.d.ts +2 -0
  100. package/dist/types/schemas/qna.d.ts +2 -0
  101. package/dist/types/schemas/rate.d.ts +2 -0
  102. package/dist/types/schemas/service.d.ts +2 -0
  103. package/dist/types/schemas/subTools.d.ts +2 -0
  104. package/dist/types/schemas/tools.d.ts +2 -0
  105. package/dist/types/untils/regex.d.ts +1 -0
  106. package/dist/types/validate/validate.d.ts +2 -2
  107. package/dist/vue-pack.css +1 -1
  108. package/package.json +11 -4
  109. package/dist/TabelData-CbLGhrj4.js +0 -2266
  110. package/dist/TabelData-DG4yH_Qq.cjs +0 -1
  111. package/dist/quill.snow-BmRPvQLR.cjs +0 -15
  112. package/dist/quill.snow-mC12o3kU.js +0 -6400
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$2;
@@ -0,0 +1,4 @@
1
+ import { b as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$3;
@@ -0,0 +1,4 @@
1
+ import { c as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$4;
@@ -0,0 +1,4 @@
1
+ import { d as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { e } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$5;
@@ -1,96 +1 @@
1
- Name: zod
2
- Version: 4.3.5
3
- License: MIT
4
- Private: false
5
- Description: TypeScript-first schema declaration and validation library with static type inference
6
- Repository: git+https://github.com/colinhacks/zod.git
7
- Homepage: https://zod.dev
8
- Author: Colin McDonnell <zod@colinhacks.com>
9
- License Copyright:
10
- ===
11
-
12
- MIT License
13
-
14
- Copyright (c) 2025 Colin McDonnell
15
-
16
- Permission is hereby granted, free of charge, to any person obtaining a copy
17
- of this software and associated documentation files (the "Software"), to deal
18
- in the Software without restriction, including without limitation the rights
19
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- copies of the Software, and to permit persons to whom the Software is
21
- furnished to do so, subject to the following conditions:
22
-
23
- The above copyright notice and this permission notice shall be included in all
24
- copies or substantial portions of the Software.
25
-
26
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
- SOFTWARE.
33
-
34
- ---
35
-
36
- Name: lodash.isequal
37
- Version: 4.5.0
38
- License: MIT
39
- Private: false
40
- Description: The Lodash method `_.isEqual` exported as a module.
41
- Repository: undefined
42
- Homepage: https://lodash.com/
43
- Author: John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)
44
- Contributors:
45
- John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)
46
- Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)
47
- License Copyright:
48
- ===
49
-
50
- Copyright JS Foundation and other contributors <https://js.foundation/>
51
-
52
- Based on Underscore.js, copyright Jeremy Ashkenas,
53
- DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
54
-
55
- This software consists of voluntary contributions made by many
56
- individuals. For exact contribution history, see the revision history
57
- available at https://github.com/lodash/lodash
58
-
59
- The following license applies to all parts of this software except as
60
- documented below:
61
-
62
- ====
63
-
64
- Permission is hereby granted, free of charge, to any person obtaining
65
- a copy of this software and associated documentation files (the
66
- "Software"), to deal in the Software without restriction, including
67
- without limitation the rights to use, copy, modify, merge, publish,
68
- distribute, sublicense, and/or sell copies of the Software, and to
69
- permit persons to whom the Software is furnished to do so, subject to
70
- the following conditions:
71
-
72
- The above copyright notice and this permission notice shall be
73
- included in all copies or substantial portions of the Software.
74
-
75
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
76
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
77
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
78
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
79
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
80
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
81
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
82
-
83
- ====
84
-
85
- Copyright and related rights for sample code are waived via CC0. Sample
86
- code is defined as all source code displayed within the prose of the
87
- documentation.
88
-
89
- CC0: http://creativecommons.org/publicdomain/zero/1.0/
90
-
91
- ====
92
-
93
- Files located in the node_modules and vendor directories are externally
94
- maintained libraries used by this software which have their own
95
- licenses; we recommend you read them, as their terms may differ from the
96
- terms above.
1
+ No third parties dependencies
@@ -0,0 +1,4 @@
1
+ import { g as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$7;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateTimeInput.vue_vue_type_script_setup_true_lang-PkNDbgK0.cjs");exports.default=e._sfc_main;
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./DateTimeInput.vue_vue_type_script_setup_true_lang-T42eSMbp.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),g=require("./resize-B2mDlzAG.cjs");require("dompurify");require("lodash.isequal");require("zod");const T={class:"jsgd-w-full jsgd-relative jsgd-mb-4"},D=["for"],y={class:"jsgd-relative"},w=["id","value","disabled","min","max","placeholder"],V={key:0,class:"jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},M=e.defineComponent({__name:"DateTimeInput",props:{id:{type:String,default:()=>g.setUID()},label:{type:String,required:!0},placeholder:String,modelValue:{type:String,default:""},error:[String,Array],disabled:Boolean,validate:Object,lang:String,outputFormat:{type:String,default:"local-offset"}},emits:["update:modelValue","push:error","remove:error"],setup(n,{emit:b}){const t=n,k=e.inject("TableComponents",{labels:e.ref(g.defaultTextLabelsMap[t.lang??"en"])}).labels,j=b;function f(s){if(!s)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(s))return s;if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(s))return s.substring(0,16);try{const a=new Date(s);if(isNaN(a.getTime()))return"";const r=a.getFullYear(),d=(a.getMonth()+1).toString().padStart(2,"0"),i=a.getDate().toString().padStart(2,"0"),o=a.getHours().toString().padStart(2,"0"),l=a.getMinutes().toString().padStart(2,"0");return`${r}-${d}-${i}T${o}:${l}`}catch{return""}}const x=e.computed(()=>f(t.modelValue)),p=e.computed(()=>{if(t.validate){const s=t.validate,a=[];return s.minDateTime&&a.push(g.getMessage("dateTimeMin",{min:s.minDateTime},t.lang??"en")),s.maxDateTime&&a.push(g.getMessage("dateTimeMax",{max:s.maxDateTime},t.lang??"en")),a.join(`
2
+ `)}return""}),c=e.ref([]);e.watch(()=>({val:t.modelValue,disabled:t.disabled,validate:t.validate}),({val:s,disabled:a,validate:r})=>{if(a){c.value=[];return}const d=[],i=f(s);if(r){const{minDateTime:o,maxDateTime:l}=r;if(i){const u=o?f(o):void 0,m=l?f(l):void 0;u&&i<u&&d.push(g.getMessage("dateTimeMin",{min:String(u)},t.lang??"en")),m&&i>m&&d.push(g.getMessage("dateTimeMax",{max:String(m)},t.lang??"en"))}}c.value=d,d.length?j("push:error",d,t.id):j("remove:error",t.id)},{deep:!0,immediate:!0});const v=e.computed(()=>t.placeholder??k?.value?.placeholder?.datetime??"");function h(s){if(t.disabled)return;const r=s.target.value;if(!r){j("update:modelValue","",t.id);return}const d=`${r}:00`,i=new Date(d);let o="";if(t.outputFormat==="utc")o=i.toISOString();else{const l=i.getTimezoneOffset(),u=Math.abs(l/60),m=Math.abs(l%60),S=`${l>0?"-":"+"}${String(u).padStart(2,"0")}:${String(m).padStart(2,"0")}`;o=`${d}${S}`}j("update:modelValue",o,t.id)}return(s,a)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("label",{for:n.id,class:e.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100",{"jsgd-text-red-500 dark:jsgd-text-red-400":c.value.length||n.error}])},[e.createTextVNode(e.toDisplayString(n.label)+" ",1),p.value?(e.openBlock(),e.createBlock(e.unref(g._sfc_main$1),{key:0,text:p.value,as:"strong"},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode(" ❓",-1)])]),_:1},8,["text"])):e.createCommentVNode("",!0)],10,D),e.createElementVNode("div",y,[a[1]||(a[1]=e.createElementVNode("div",{class:"jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400"},[e.createElementVNode("span",{class:"jsgd-i-mdi-calendar-clock jsgd-w-5 jsgd-h-5"})],-1)),e.createElementVNode("input",{id:n.id,type:"datetime-local",value:x.value,disabled:n.disabled,min:t.validate?.minDateTime,max:t.validate?.maxDateTime,onInput:h,placeholder:v.value,class:e.normalizeClass(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6",{"jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25":c.value.length||n.error}])},null,42,w)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(r,d)=>(e.openBlock(),e.createElementBlock("p",{key:d,class:"jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},e.toDisplayString(r),1))),128)),typeof t.error=="string"&&c.value.length===0?(e.openBlock(),e.createElementBlock("p",V,e.toDisplayString(n.error),1)):e.createCommentVNode("",!0)]))}});exports._sfc_main=M;
@@ -0,0 +1,142 @@
1
+ import { defineComponent as _, inject as C, ref as v, computed as x, watch as N, createElementBlock as p, openBlock as u, createElementVNode as m, createCommentVNode as S, normalizeClass as T, createTextVNode as w, createBlock as B, toDisplayString as k, unref as F, withCtx as z, Fragment as L, renderList as O } from "vue";
2
+ import { U as E, z as H, a9 as b, a as U } from "./resize-DgY2sl-h.js";
3
+ import "dompurify";
4
+ import "lodash.isequal";
5
+ import "zod";
6
+ const q = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, A = ["for"], P = { class: "jsgd-relative" }, Y = ["id", "value", "disabled", "min", "max", "placeholder"], G = {
7
+ key: 0,
8
+ class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
9
+ }, ee = /* @__PURE__ */ _({
10
+ __name: "DateTimeInput",
11
+ props: {
12
+ id: { type: String, default: () => E() },
13
+ label: { type: String, required: !0 },
14
+ placeholder: String,
15
+ modelValue: { type: String, default: "" },
16
+ error: [String, Array],
17
+ disabled: Boolean,
18
+ validate: Object,
19
+ lang: String,
20
+ outputFormat: {
21
+ type: String,
22
+ default: "local-offset"
23
+ // Jadikan 'local-offset' sebagai default
24
+ }
25
+ },
26
+ emits: ["update:modelValue", "push:error", "remove:error"],
27
+ setup(r, { emit: D }) {
28
+ const e = r, y = C("TableComponents", {
29
+ labels: v(H[e.lang ?? "en"])
30
+ }).labels, j = D;
31
+ function f(a) {
32
+ if (!a) return "";
33
+ if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(a))
34
+ return a;
35
+ if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(a))
36
+ return a.substring(0, 16);
37
+ try {
38
+ const t = new Date(a);
39
+ if (isNaN(t.getTime())) return "";
40
+ const d = t.getFullYear(), s = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getDate().toString().padStart(2, "0"), i = t.getHours().toString().padStart(2, "0"), o = t.getMinutes().toString().padStart(2, "0");
41
+ return `${d}-${s}-${n}T${i}:${o}`;
42
+ } catch {
43
+ return "";
44
+ }
45
+ }
46
+ const $ = x(() => f(e.modelValue)), h = x(() => {
47
+ if (e.validate) {
48
+ const a = e.validate, t = [];
49
+ return a.minDateTime && t.push(b("dateTimeMin", { min: a.minDateTime }, e.lang ?? "en")), a.maxDateTime && t.push(b("dateTimeMax", { max: a.maxDateTime }, e.lang ?? "en")), t.join(`
50
+ `);
51
+ }
52
+ return "";
53
+ }), l = v([]);
54
+ N(
55
+ () => ({
56
+ val: e.modelValue,
57
+ disabled: e.disabled,
58
+ validate: e.validate
59
+ }),
60
+ ({ val: a, disabled: t, validate: d }) => {
61
+ if (t) {
62
+ l.value = [];
63
+ return;
64
+ }
65
+ const s = [], n = f(a);
66
+ if (d) {
67
+ const { minDateTime: i, maxDateTime: o } = d;
68
+ if (n) {
69
+ const g = i ? f(i) : void 0, c = o ? f(o) : void 0;
70
+ g && n < g && s.push(b("dateTimeMin", { min: String(g) }, e.lang ?? "en")), c && n > c && s.push(b("dateTimeMax", { max: String(c) }, e.lang ?? "en"));
71
+ }
72
+ }
73
+ l.value = s, s.length ? j("push:error", s, e.id) : j("remove:error", e.id);
74
+ },
75
+ { deep: !0, immediate: !0 }
76
+ );
77
+ const M = x(
78
+ () => e.placeholder ?? y?.value?.placeholder?.datetime ?? ""
79
+ );
80
+ function V(a) {
81
+ if (e.disabled) return;
82
+ const d = a.target.value;
83
+ if (!d) {
84
+ j("update:modelValue", "", e.id);
85
+ return;
86
+ }
87
+ const s = `${d}:00`, n = new Date(s);
88
+ let i = "";
89
+ if (e.outputFormat === "utc")
90
+ i = n.toISOString();
91
+ else {
92
+ const o = n.getTimezoneOffset(), g = Math.abs(o / 60), c = Math.abs(o % 60), I = `${o > 0 ? "-" : "+"}${String(g).padStart(2, "0")}:${String(c).padStart(2, "0")}`;
93
+ i = `${s}${I}`;
94
+ }
95
+ j("update:modelValue", i, e.id);
96
+ }
97
+ return (a, t) => (u(), p("div", q, [
98
+ m("label", {
99
+ for: r.id,
100
+ class: T(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": l.value.length || r.error }])
101
+ }, [
102
+ w(k(r.label) + " ", 1),
103
+ h.value ? (u(), B(F(U), {
104
+ key: 0,
105
+ text: h.value,
106
+ as: "strong"
107
+ }, {
108
+ default: z(() => [...t[0] || (t[0] = [
109
+ w(" ❓", -1)
110
+ ])]),
111
+ _: 1
112
+ }, 8, ["text"])) : S("", !0)
113
+ ], 10, A),
114
+ m("div", P, [
115
+ t[1] || (t[1] = m("div", { class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400" }, [
116
+ m("span", { class: "jsgd-i-mdi-calendar-clock jsgd-w-5 jsgd-h-5" })
117
+ ], -1)),
118
+ m("input", {
119
+ id: r.id,
120
+ type: "datetime-local",
121
+ value: $.value,
122
+ disabled: r.disabled,
123
+ min: e.validate?.minDateTime,
124
+ max: e.validate?.maxDateTime,
125
+ onInput: V,
126
+ placeholder: M.value,
127
+ class: T(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6", {
128
+ "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": l.value.length || r.error
129
+ }])
130
+ }, null, 42, Y)
131
+ ]),
132
+ (u(!0), p(L, null, O(l.value, (d, s) => (u(), p("p", {
133
+ key: s,
134
+ class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
135
+ }, k(d), 1))), 128)),
136
+ typeof e.error == "string" && l.value.length === 0 ? (u(), p("p", G, k(r.error), 1)) : S("", !0)
137
+ ]));
138
+ }
139
+ });
140
+ export {
141
+ ee as _
142
+ };
@@ -0,0 +1,4 @@
1
+ import { h as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$8;
@@ -0,0 +1,5 @@
1
+ import { _ as m } from "./FileArrayInput.vue_vue_type_script_setup_true_lang-ChT-nLrY.js";
2
+ import "./resize-DgY2sl-h.js";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileArrayInput.vue_vue_type_script_setup_true_lang-IBxome2w.cjs");require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main;
@@ -0,0 +1,198 @@
1
+ import { defineComponent as D, inject as C, ref as y, computed as k, watch as R, createElementBlock as n, openBlock as r, createElementVNode as a, normalizeClass as w, createTextVNode as $, createBlock as K, createCommentVNode as F, toDisplayString as c, unref as _, withCtx as N, Fragment as L, renderList as A, normalizeStyle as P } from "vue";
2
+ import { U as W, z as q, a9 as o, a as G } from "./resize-DgY2sl-h.js";
3
+ import "dompurify";
4
+ import "lodash.isequal";
5
+ import "zod";
6
+ const H = { class: "jsgd-w-full jsgd-mb-4" }, J = ["for"], O = {
7
+ key: 0,
8
+ class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-mb-6"
9
+ }, Q = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-min-w-0" }, X = { class: "jsgd-flex jsgd-flex-col jsgd-overflow-hidden" }, Y = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-truncate dark:jsgd-text-slate-100" }, Z = { class: "jsgd-text-xs jsgd-text-slate-500 dark:jsgd-text-slate-400" }, ee = ["onClick"], se = {
10
+ key: 1,
11
+ class: "jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 jsgd-italic dark:jsgd-text-slate-500"
12
+ }, te = { class: "jsgd-text-center jsgd-mt-4" }, de = ["id", "disabled"], le = ["for"], ae = ["disabled"], re = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, ce = /* @__PURE__ */ D({
13
+ __name: "FileArrayInput",
14
+ props: {
15
+ id: { default: W },
16
+ label: {},
17
+ modelValue: { default: () => [] },
18
+ disabled: { type: Boolean },
19
+ validate: {},
20
+ lang: {},
21
+ error: {}
22
+ },
23
+ emits: ["update:modelValue", "push:error", "remove:error"],
24
+ setup(g, { emit: U }) {
25
+ const e = g, j = U, v = C("TableComponents", {
26
+ labels: y(q[e.lang ?? "en"])
27
+ }).labels, m = C("TableComponents")?.ShowAlert, f = y([]), u = y([]), p = k(() => u.value.length > 0 ? u.value : typeof e.error == "string" ? [e.error] : Array.isArray(e.error) ? e.error : []), h = k(() => e.disabled ? !0 : e.validate?.maxFiles !== void 0 ? !!(e.modelValue && e.modelValue.length >= e.validate.maxFiles) : !1), z = k(() => {
28
+ if (!e.validate) return "";
29
+ const s = e.validate, t = [];
30
+ return s.maxFiles && t.push(o("fileMaxFiles", { max: s.maxFiles }, e.lang ?? "en")), s.allowedTypes && t.push(o("fileType", {}, e.lang ?? "en") + ` (${s.allowedTypes.join(", ")})`), s.maxSize && t.push(o("fileMaxSize", { max: s.maxSize }, e.lang ?? "en")), t.join(`
31
+ `);
32
+ });
33
+ R(
34
+ () => e.modelValue,
35
+ (s) => {
36
+ if (!s || s.length === 0) {
37
+ f.value = [], V();
38
+ return;
39
+ }
40
+ f.value = s.map((t) => t instanceof File ? {
41
+ name: t.name,
42
+ size: `${(t.size / 1024).toFixed(2)} KB`
43
+ } : {
44
+ name: t,
45
+ size: "N/A"
46
+ }), V();
47
+ },
48
+ { immediate: !0, deep: !0 }
49
+ );
50
+ function B() {
51
+ if (e.disabled) return;
52
+ if (h.value) {
53
+ m?.(
54
+ "error",
55
+ o("fileMaxFiles", { max: e.validate.maxFiles }, e.lang ?? "en")
56
+ );
57
+ return;
58
+ }
59
+ const s = prompt(v.value.placeholder?.url ?? "Please enter the file URL");
60
+ if (s)
61
+ if (s.startsWith("http://") || s.startsWith("https://")) {
62
+ const t = e.modelValue || [];
63
+ j("update:modelValue", [...t, s]);
64
+ } else
65
+ m?.("error", "Invalid URL", [
66
+ "Please enter a valid URL starting with http:// or https://"
67
+ ]);
68
+ }
69
+ function I(s) {
70
+ if (e.disabled) return;
71
+ const t = s.target, l = t.files;
72
+ if (!l || l.length === 0) return;
73
+ const d = e.modelValue || [], i = e.validate?.maxFiles;
74
+ if (i && d.length + l.length > i) {
75
+ m?.("error", o("fileMaxFiles", { max: i }, e.lang ?? "en")), t.value = "";
76
+ return;
77
+ }
78
+ const x = [], S = e.validate?.allowedTypes?.map((b) => b.toLowerCase()) ?? [];
79
+ for (const b of Array.from(l)) {
80
+ const T = b.name.split(".").pop()?.toLowerCase();
81
+ if (S.length > 0 && (!T || !S.includes(T))) {
82
+ m?.("error", "Invalid file type", [
83
+ o("fileType", {}, e.lang ?? "en") + ` (${e.validate?.allowedTypes?.join(", ")})`
84
+ ]);
85
+ continue;
86
+ }
87
+ x.push(b);
88
+ }
89
+ j("update:modelValue", [...d, ...x]), t.value = "";
90
+ }
91
+ function M(s) {
92
+ if (e.disabled) return;
93
+ const t = [...e.modelValue || []];
94
+ t.splice(s, 1), j("update:modelValue", t);
95
+ }
96
+ function V() {
97
+ if (!e.validate || !e.modelValue || e.modelValue.length === 0) {
98
+ u.value = [], j("remove:error", e.id);
99
+ return;
100
+ }
101
+ const s = [];
102
+ e.validate.maxFiles && e.modelValue.length > e.validate.maxFiles && s.push(o("fileMaxFiles", { max: e.validate.maxFiles }, e.lang ?? "en")), e.modelValue.forEach((t, l) => {
103
+ if (t instanceof File) {
104
+ const d = E(t, l + 1);
105
+ s.push(...d);
106
+ }
107
+ }), u.value = [...new Set(s)], u.value.length > 0 ? j("push:error", u.value, e.id) : j("remove:error", e.id);
108
+ }
109
+ function E(s, t) {
110
+ const l = [], d = e.validate;
111
+ if (d.allowedTypes) {
112
+ const i = s.name.split(".").pop()?.toLowerCase();
113
+ (!i || !d.allowedTypes.map((x) => x.toLowerCase()).includes(i)) && l.push(
114
+ `File #${t} (${s.name}): ` + o("fileType", {}, e.lang ?? "en") + ` (${d.allowedTypes.join(", ")})`
115
+ );
116
+ }
117
+ return d.maxSize && s.size / 1024 > d.maxSize && l.push(
118
+ `File #${t} (${s.name}): ` + o("fileMaxSize", { max: d.maxSize }, e.lang ?? "en")
119
+ ), l;
120
+ }
121
+ return (s, t) => (r(), n("div", H, [
122
+ a("label", {
123
+ for: g.id,
124
+ class: w(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": p.value.length !== 0 }])
125
+ }, [
126
+ $(c(g.label) + " ", 1),
127
+ z.value ? (r(), K(_(G), {
128
+ key: 0,
129
+ text: z.value,
130
+ as: "strong"
131
+ }, {
132
+ default: N(() => [...t[0] || (t[0] = [
133
+ $(" ❓", -1)
134
+ ])]),
135
+ _: 1
136
+ }, 8, ["text"])) : F("", !0)
137
+ ], 10, J),
138
+ a("div", {
139
+ class: w(["jsgd-bg-white jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", { "jsgd-border-red-300 dark:jsgd-border-red-800": p.value.length !== 0 }])
140
+ }, [
141
+ f.value.length > 0 ? (r(), n("div", O, [
142
+ (r(!0), n(L, null, A(f.value, (l, d) => (r(), n("div", {
143
+ key: d,
144
+ class: "jsgd-group jsgd-flex jsgd-items-center jsgd-justify-between jsgd-p-3 jsgd-bg-slate-50 jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-shadow-sm jsgd-transition-all jsgd-duration-200 jsgd-animate-[slideInFade_500ms_ease-out_backwards] hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-600",
145
+ style: P({ animationDelay: `${d * 60}ms` })
146
+ }, [
147
+ a("div", Q, [
148
+ t[1] || (t[1] = a("span", { class: "jsgd-text-2xl jsgd-text-slate-500 jsgd-shrink-0 dark:jsgd-text-slate-400" }, "📄", -1)),
149
+ a("div", X, [
150
+ a("span", Y, c(l.name), 1),
151
+ a("span", Z, c(l.size), 1)
152
+ ])
153
+ ]),
154
+ g.disabled ? F("", !0) : (r(), n("button", {
155
+ key: 0,
156
+ onClick: (i) => M(d),
157
+ class: "jsgd-w-6 jsgd-h-6 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-pb-[5px] jsgd-shrink-0 jsgd-ml-4 jsgd-text-xl jsgd-font-bold jsgd-text-white jsgd-bg-red-500 jsgd-rounded-full jsgd-border-none jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100",
158
+ "aria-label": "Remove file"
159
+ }, " × ", 8, ee))
160
+ ], 4))), 128))
161
+ ])) : (r(), n("div", se, [
162
+ a("p", null, c(_(v)?.message?.noItemSelected), 1)
163
+ ])),
164
+ a("div", te, [
165
+ a("input", {
166
+ id: g.id,
167
+ type: "file",
168
+ multiple: "",
169
+ onChange: I,
170
+ class: "jsgd-hidden",
171
+ disabled: h.value
172
+ }, null, 40, de),
173
+ a("label", {
174
+ for: g.id,
175
+ class: w(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-blue-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-600 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-600 dark:hover:jsgd-bg-blue-500 dark:disabled:jsgd-bg-slate-700 dark:disabled:jsgd-text-slate-400 before:jsgd-content-['+'] before:jsgd-text-lg before:jsgd-leading-none", {
176
+ "jsgd-opacity-60 jsgd-cursor-not-allowed": h.value
177
+ }])
178
+ }, c(_(v)?.btn?.upload ?? "Upload"), 11, le),
179
+ a("button", {
180
+ type: "button",
181
+ onClick: B,
182
+ disabled: h.value,
183
+ class: "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-slate-600 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-slate-700 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-500 dark:hover:jsgd-bg-slate-400"
184
+ }, " URL ", 8, ae)
185
+ ])
186
+ ], 2),
187
+ a("div", re, [
188
+ p.value.length > 0 ? (r(!0), n(L, { key: 0 }, A(p.value, (l, d) => (r(), n("p", {
189
+ key: d,
190
+ class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
191
+ }, c(l), 1))), 128)) : F("", !0)
192
+ ])
193
+ ]));
194
+ }
195
+ });
196
+ export {
197
+ ce as _
198
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),r=require("./resize-B2mDlzAG.cjs");require("dompurify");require("lodash.isequal");require("zod");const E={class:"jsgd-w-full jsgd-mb-4"},B=["for"],S={key:0,class:"jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-mb-6"},z={class:"jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-min-w-0"},C={class:"jsgd-flex jsgd-flex-col jsgd-overflow-hidden"},N={class:"jsgd-font-medium jsgd-text-slate-900 jsgd-truncate dark:jsgd-text-slate-100"},T={class:"jsgd-text-xs jsgd-text-slate-500 dark:jsgd-text-slate-400"},M=["onClick"],L={key:1,class:"jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 jsgd-italic dark:jsgd-text-slate-500"},$={class:"jsgd-text-center jsgd-mt-4"},D=["id","disabled"],A=["for"],I=["disabled"],U={class:"jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1"},q=e.defineComponent({__name:"FileArrayInput",props:{id:{default:r.setUID},label:{},modelValue:{default:()=>[]},disabled:{type:Boolean},validate:{},lang:{},error:{}},emits:["update:modelValue","push:error","remove:error"],setup(n,{emit:y}){const s=n,i=y,h=e.inject("TableComponents",{labels:e.ref(r.defaultTextLabelsMap[s.lang??"en"])}).labels,c=e.inject("TableComponents")?.ShowAlert,j=e.ref([]),g=e.ref([]),u=e.computed(()=>g.value.length>0?g.value:typeof s.error=="string"?[s.error]:Array.isArray(s.error)?s.error:[]),m=e.computed(()=>s.disabled?!0:s.validate?.maxFiles!==void 0?!!(s.modelValue&&s.modelValue.length>=s.validate.maxFiles):!1),x=e.computed(()=>{if(!s.validate)return"";const t=s.validate,l=[];return t.maxFiles&&l.push(r.getMessage("fileMaxFiles",{max:t.maxFiles},s.lang??"en")),t.allowedTypes&&l.push(r.getMessage("fileType",{},s.lang??"en")+` (${t.allowedTypes.join(", ")})`),t.maxSize&&l.push(r.getMessage("fileMaxSize",{max:t.maxSize},s.lang??"en")),l.join(`
2
+ `)});e.watch(()=>s.modelValue,t=>{if(!t||t.length===0){j.value=[],b();return}j.value=t.map(l=>l instanceof File?{name:l.name,size:`${(l.size/1024).toFixed(2)} KB`}:{name:l,size:"N/A"}),b()},{immediate:!0,deep:!0});function w(){if(s.disabled)return;if(m.value){c?.("error",r.getMessage("fileMaxFiles",{max:s.validate.maxFiles},s.lang??"en"));return}const t=prompt(h.value.placeholder?.url??"Please enter the file URL");if(t)if(t.startsWith("http://")||t.startsWith("https://")){const l=s.modelValue||[];i("update:modelValue",[...l,t])}else c?.("error","Invalid URL",["Please enter a valid URL starting with http:// or https://"])}function V(t){if(s.disabled)return;const l=t.target,a=l.files;if(!a||a.length===0)return;const d=s.modelValue||[],o=s.validate?.maxFiles;if(o&&d.length+a.length>o){c?.("error",r.getMessage("fileMaxFiles",{max:o},s.lang??"en")),l.value="";return}const p=[],v=s.validate?.allowedTypes?.map(f=>f.toLowerCase())??[];for(const f of Array.from(a)){const k=f.name.split(".").pop()?.toLowerCase();if(v.length>0&&(!k||!v.includes(k))){c?.("error","Invalid file type",[r.getMessage("fileType",{},s.lang??"en")+` (${s.validate?.allowedTypes?.join(", ")})`]);continue}p.push(f)}i("update:modelValue",[...d,...p]),l.value=""}function F(t){if(s.disabled)return;const l=[...s.modelValue||[]];l.splice(t,1),i("update:modelValue",l)}function b(){if(!s.validate||!s.modelValue||s.modelValue.length===0){g.value=[],i("remove:error",s.id);return}const t=[];s.validate.maxFiles&&s.modelValue.length>s.validate.maxFiles&&t.push(r.getMessage("fileMaxFiles",{max:s.validate.maxFiles},s.lang??"en")),s.modelValue.forEach((l,a)=>{if(l instanceof File){const d=_(l,a+1);t.push(...d)}}),g.value=[...new Set(t)],g.value.length>0?i("push:error",g.value,s.id):i("remove:error",s.id)}function _(t,l){const a=[],d=s.validate;if(d.allowedTypes){const o=t.name.split(".").pop()?.toLowerCase();(!o||!d.allowedTypes.map(p=>p.toLowerCase()).includes(o))&&a.push(`File #${l} (${t.name}): `+r.getMessage("fileType",{},s.lang??"en")+` (${d.allowedTypes.join(", ")})`)}return d.maxSize&&t.size/1024>d.maxSize&&a.push(`File #${l} (${t.name}): `+r.getMessage("fileMaxSize",{max:d.maxSize},s.lang??"en")),a}return(t,l)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("label",{for:n.id,class:e.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100",{"jsgd-text-red-500 dark:jsgd-text-red-400":u.value.length!==0}])},[e.createTextVNode(e.toDisplayString(n.label)+" ",1),x.value?(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{key:0,text:x.value,as:"strong"},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createTextVNode(" ❓",-1)])]),_:1},8,["text"])):e.createCommentVNode("",!0)],10,B),e.createElementVNode("div",{class:e.normalizeClass(["jsgd-bg-white jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400",{"jsgd-border-red-300 dark:jsgd-border-red-800":u.value.length!==0}])},[j.value.length>0?(e.openBlock(),e.createElementBlock("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(a,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"jsgd-group jsgd-flex jsgd-items-center jsgd-justify-between jsgd-p-3 jsgd-bg-slate-50 jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-shadow-sm jsgd-transition-all jsgd-duration-200 jsgd-animate-[slideInFade_500ms_ease-out_backwards] hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-600",style:e.normalizeStyle({animationDelay:`${d*60}ms`})},[e.createElementVNode("div",z,[l[1]||(l[1]=e.createElementVNode("span",{class:"jsgd-text-2xl jsgd-text-slate-500 jsgd-shrink-0 dark:jsgd-text-slate-400"},"📄",-1)),e.createElementVNode("div",C,[e.createElementVNode("span",N,e.toDisplayString(a.name),1),e.createElementVNode("span",T,e.toDisplayString(a.size),1)])]),n.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o=>F(d),class:"jsgd-w-6 jsgd-h-6 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-pb-[5px] jsgd-shrink-0 jsgd-ml-4 jsgd-text-xl jsgd-font-bold jsgd-text-white jsgd-bg-red-500 jsgd-rounded-full jsgd-border-none jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100","aria-label":"Remove file"}," × ",8,M))],4))),128))])):(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("p",null,e.toDisplayString(e.unref(h)?.message?.noItemSelected),1)])),e.createElementVNode("div",$,[e.createElementVNode("input",{id:n.id,type:"file",multiple:"",onChange:V,class:"jsgd-hidden",disabled:m.value},null,40,D),e.createElementVNode("label",{for:n.id,class:e.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-blue-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-600 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-600 dark:hover:jsgd-bg-blue-500 dark:disabled:jsgd-bg-slate-700 dark:disabled:jsgd-text-slate-400 before:jsgd-content-['+'] before:jsgd-text-lg before:jsgd-leading-none",{"jsgd-opacity-60 jsgd-cursor-not-allowed":m.value}])},e.toDisplayString(e.unref(h)?.btn?.upload??"Upload"),11,A),e.createElementVNode("button",{type:"button",onClick:w,disabled:m.value,class:"jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-slate-600 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-slate-700 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-500 dark:hover:jsgd-bg-slate-400"}," URL ",8,I)])],2),e.createElementVNode("div",U,[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,(a,d)=>(e.openBlock(),e.createElementBlock("p",{key:d,class:"jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},e.toDisplayString(a),1))),128)):e.createCommentVNode("",!0)])]))}});exports._sfc_main=q;
@@ -0,0 +1,4 @@
1
+ import { i as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$9;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main$10;
@@ -0,0 +1,4 @@
1
+ import { j as f } from "./resize-DgY2sl-h.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ImageArrayInput.vue_vue_type_script_setup_true_lang-BcE8UQhP.cjs");require("./resize-B2mDlzAG.cjs");exports.default=e._sfc_main;
@@ -0,0 +1,5 @@
1
+ import { _ as m } from "./ImageArrayInput.vue_vue_type_script_setup_true_lang-D7NOHKcL.js";
2
+ import "./resize-DgY2sl-h.js";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("vue"),o=require("./resize-B2mDlzAG.cjs");require("dompurify");require("lodash.isequal");require("zod");const P={class:"jsgd-w-full jsgd-mb-4"},R=["for"],T={key:0,class:"jsgd-grid jsgd-grid-cols-2 jsgd-gap-4 jsgd-mb-6 min-[480px]:jsgd-grid-cols-3 md:jsgd-grid-cols-4 lg:jsgd-grid-cols-5"},U=["src","alt"],$=["onClick"],z={key:1,class:"jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 dark:jsgd-text-slate-500"},A={class:"jsgd-text-center jsgd-mt-4"},D=["id","disabled"],N=["for"],q=["disabled"],K={class:"jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1"},G=t.defineComponent({__name:"ImageArrayInput",props:{id:{default:o.setUID},label:{},modelValue:{default:()=>[]},previewAlt:{},disabled:{type:Boolean},error:{},previewImages:{},validate:{},watermark:{},lang:{}},emits:["update:modelValue","push:error","remove:error"],setup(h,{emit:I}){const e=h,u=I,y=t.inject("TableComponents",{labels:t.ref(o.defaultTextLabelsMap[e.lang??"en"])}).labels,f=t.inject("TableComponents")?.ShowAlert,w=t.ref([]),j=t.ref([]),x=t.computed(()=>j.value.length>0?j.value:typeof e.error=="string"?[e.error]:Array.isArray(e.error)?e.error:[]),b=t.computed(()=>e.disabled?!0:!!(e.validate?.maxFiles&&e.modelValue&&e.modelValue.length>=e.validate.maxFiles)),M=t.computed(()=>{if(!e.validate)return"";const a=e.validate,r=[];if(a.maxFiles&&r.push(o.getMessage("imageMaxFiles",{max:a.maxFiles},e.lang??"en")),a.allowedTypes&&r.push(o.getMessage("imageType",{},e.lang??"en")+` (${a.allowedTypes.join(", ")})`),a.maxSize&&r.push(o.getMessage("imageMaxSize",{max:a.maxSize},e.lang??"en")),a.pixel){const s=a.pixel;("minWidth"in s||"maxWidth"in s||"minHeight"in s||"maxHeight"in s)&&(s.minWidth&&r.push(o.getMessage("imageMinWidth",{min:s.minWidth},e.lang??"en")),s.minHeight&&r.push(o.getMessage("imageMinHeight",{min:s.minHeight},e.lang??"en")),s.maxWidth&&r.push(o.getMessage("imageMaxWidth",{max:s.maxWidth},e.lang??"en")),s.maxHeight&&r.push(o.getMessage("imageMaxHeight",{max:s.maxHeight},e.lang??"en"))),("width"in s||"height"in s)&&r.push(o.getMessage("imagePixel",{width:s.width??"any",height:s.height??"any"},e.lang??"en"))}return a.ratio&&r.push(o.getMessage("imageRatio",{w:a.ratio.Width,h:a.ratio.Height},e.lang??"en")),r.join(`
2
+ `)});t.watch(()=>e.modelValue,async a=>{if(!a||a.length===0){w.value=e.previewImages||[],E();return}const r=a.map(s=>new Promise(d=>{if(typeof s=="string")d(s);else if(s instanceof File){const i=new FileReader;i.onload=g=>d(g.target?.result),i.onerror=()=>d(""),i.readAsDataURL(s)}else d("")}));w.value=await Promise.all(r),E()},{immediate:!0,deep:!0});function V(a,r=!1){return new Promise((s,d)=>{const i=new Image;r&&(i.crossOrigin="anonymous"),i.onload=()=>s(i),i.onerror=g=>{console.error("Failed to load image:",a,g),d(new Error(`Failed to load image: ${a}`))},i.src=a})}async function B(a){if(!e.watermark)return a;const r=e.watermark,s=URL.createObjectURL(a);try{const[d,i]=await Promise.all([V(s,!1),V(r.url,!0)]),g=document.createElement("canvas");g.width=d.width,g.height=d.height;const n=g.getContext("2d");if(!n)return a;n.drawImage(d,0,0),n.globalAlpha=r.transparant/100;let c=0,l=0;const m=10;switch(r.position){case"top-left":c=m,l=m,n.drawImage(i,c,l);break;case"top-right":c=d.width-i.width-m,l=m,n.drawImage(i,c,l);break;case"bottom-left":c=m,l=d.height-i.height-m,n.drawImage(i,c,l);break;case"bottom-right":c=d.width-i.width-m,l=d.height-i.height-m,n.drawImage(i,c,l);break;case"full":n.drawImage(i,0,0,d.width,d.height);break}return n.globalAlpha=1,new Promise((v,k)=>{g.toBlob(p=>{if(p){const F=new File([p],a.name,{type:a.type});v(F)}else k(new Error("Canvas toBlob failed"))},a.type)})}catch(d){throw console.error(`Watermark application failed for ${a.name}:`,d),f?.("error",`Watermark Error (${a.name})`,["Gagal menerapkan watermark pada gambar."]),d}finally{URL.revokeObjectURL(s)}}function _(){if(e.disabled)return;if(b.value){f?.("error",o.getMessage("imageMaxFiles",{max:e.validate.maxFiles},e.lang??"en"));return}const a=prompt(y.value.placeholder?.url??"Please enter the image URL");if(a)if(a.startsWith("http://")||a.startsWith("https://")){const r=e.modelValue||[];u("update:modelValue",[...r,a])}else f?.("error","Invalid URL",["Please enter a valid URL starting with http:// or https://"])}async function C(a){if(e.disabled)return;const r=a.target,s=r.files;if(!s||s.length===0)return;const d=e.modelValue||[],i=e.validate?.maxFiles;if(i&&d.length+s.length>i){f?.("error",o.getMessage("imageMaxFiles",{max:i},e.lang??"en")),r.value="";return}const g=[],n=e.validate?.allowedTypes?.map(l=>l.toLowerCase())??[];for(const l of Array.from(s)){const m=l.name.split(".").pop()?.toLowerCase();if(n.length>0&&(!m||!n.includes(m))){f?.("error","Invalid file type",[o.getMessage("imageType",{},e.lang??"en")+` (${e.validate?.allowedTypes?.join(", ")})`]);continue}g.push(l)}let c=[];if(e.watermark&&g.length>0)try{const l=g.map(m=>B(m));c=await Promise.all(l)}catch(l){console.error("Batch watermarking failed:",l),r.value="";return}else c=g;c.length>0&&u("update:modelValue",[...d,...c]),r.value=""}function W(a){if(e.disabled)return;const r=[...e.modelValue||[]];r.splice(a,1),u("update:modelValue",r)}async function E(){if(!e.validate||!e.modelValue||e.modelValue.length===0){j.value=[],u("remove:error",e.id);return}const a=[];e.validate.maxFiles&&e.modelValue.length>e.validate.maxFiles&&a.push(o.getMessage("imageMaxFiles",{max:e.validate.maxFiles},e.lang??"en"));const r=e.modelValue.map((d,i)=>S(d,i+1));(await Promise.all(r)).forEach(d=>a.push(...d)),j.value=[...new Set(a)],j.value.length>0?u("push:error",j.value,e.id):u("remove:error",e.id)}async function S(a,r){const s=[];if(!(a instanceof File))return typeof a=="string"&&(e.validate?.pixel||e.validate?.ratio),[];const d=a,i=e.validate;if(i.allowedTypes){const g=d.name.split(".").pop()?.toLowerCase();(!g||!i.allowedTypes.map(n=>n.toLowerCase()).includes(g))&&s.push(`File ${r}: `+o.getMessage("imageType",{},e.lang??"en")+` (${i.allowedTypes.join(", ")})`)}if(i.maxSize&&d.size/1024>i.maxSize&&s.push(`File ${r}: `+o.getMessage("imageMaxSize",{max:i.maxSize},e.lang??"en")),i.pixel||i.ratio){const g=await H(d),n=g.width,c=g.height;if(i.pixel){const l=i.pixel;("minWidth"in l&&l.minWidth&&n<l.minWidth||"minHeight"in l&&l.minHeight&&c<l.minHeight||"maxWidth"in l&&l.maxWidth&&n>l.maxWidth||"maxHeight"in l&&l.maxHeight&&c>l.maxHeight)&&s.push(`File ${r}: Invalid dimensions.`),("width"in l&&l.width&&n!==l.width||"height"in l&&l.height&&c!==l.height)&&s.push(`File ${r}: `+o.getMessage("imagePixel",{width:l.width??n,height:l.height??c},e.lang??"en"))}if(i.ratio){const l=i.ratio.Width,m=i.ratio.Height,v=o.simplifyRatio(n,c),k=o.simplifyRatio(l,m);let p=v.w===k.w&&v.h===k.h;if(!p){const F=n/c,L=l/m;p=Math.abs(F-L)<=.01}p||s.push(`File ${r}: `+o.getMessage("imageRatio",{w:String(l),h:String(m)},e.lang??"en"))}}return s}function H(a){return new Promise(r=>{const s=new FileReader;s.onload=d=>{const i=new Image;i.onload=()=>r({width:i.width,height:i.height}),i.onerror=()=>r({width:0,height:0}),i.src=d.target?.result},s.onerror=()=>r({width:0,height:0}),s.readAsDataURL(a)})}return(a,r)=>(t.openBlock(),t.createElementBlock("div",P,[t.createElementVNode("label",{for:h.id,class:t.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100",{"jsgd-text-red-500 dark:jsgd-text-red-400":x.value.length!==0}])},[t.createTextVNode(t.toDisplayString(h.label)+" ",1),M.value?(t.openBlock(),t.createBlock(t.unref(o._sfc_main$1),{key:0,text:M.value,as:"strong"},{default:t.withCtx(()=>[...r[0]||(r[0]=[t.createTextVNode(" ❓",-1)])]),_:1},8,["text"])):t.createCommentVNode("",!0)],10,R),t.createElementVNode("div",{class:t.normalizeClass(["jsgd-bg-slate-50 jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-100 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400",{"jsgd-border-red-300 dark:jsgd-border-red-800":x.value.length!==0}])},[w.value.length>0?(t.openBlock(),t.createElementBlock("div",T,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,(s,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"jsgd-relative jsgd-rounded-lg jsgd-overflow-hidden jsgd-shadow-sm jsgd-transition-all jsgd-duration-200 jsgd-group hover:jsgd-scale-105 hover:jsgd-shadow-lg jsgd-animate-[popIn_0.4s_ease-out_backwards]",style:t.normalizeStyle({animationDelay:`${d*50}ms`})},[t.createElementVNode("img",{src:s,alt:`${h.previewAlt} ${d+1}`,class:"jsgd-block jsgd-w-full jsgd-aspect-square jsgd-object-cover jsgd-bg-white dark:jsgd-bg-transparent"},null,8,U),h.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,onClick:i=>W(d),class:"jsgd-absolute jsgd-top-2 jsgd-right-2 jsgd-w-7 jsgd-h-7 jsgd-pb-[5px] jsgd-flex jsgd-items-center jsgd-justify-center jsgd-text-xl jsgd-font-bold jsgd-leading-none jsgd-text-white jsgd-bg-red-500/80 jsgd-backdrop-blur-sm jsgd-rounded-full jsgd-border-2 jsgd-border-white jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100","aria-label":"Remove image"}," × ",8,$))],4))),128))])):(t.openBlock(),t.createElementBlock("div",z,[t.createElementVNode("p",null,t.toDisplayString(t.unref(y)?.message?.noItemSelected),1)])),t.createElementVNode("div",A,[t.createElementVNode("input",{id:h.id,type:"file",accept:"image/*",multiple:"",onChange:C,class:"jsgd-hidden",disabled:b.value},null,40,D),t.createElementVNode("label",{for:h.id,class:t.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-blue-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-600 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-600 dark:hover:jsgd-bg-blue-500 dark:disabled:jsgd-bg-slate-700 dark:disabled:jsgd-text-slate-400 before:jsgd-content-['+'] before:jsgd-text-lg before:jsgd-leading-none",{"jsgd-opacity-60 jsgd-cursor-not-allowed":b.value}])},t.toDisplayString(t.unref(y)?.btn?.upload??"Upload"),11,N),t.createElementVNode("button",{type:"button",onClick:_,disabled:b.value,class:"jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-slate-600 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-slate-700 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-500 dark:hover:jsgd-bg-slate-400"}," URL ",8,q)])],2),t.createElementVNode("div",K,[x.value.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(x.value,(s,d)=>(t.openBlock(),t.createElementBlock("p",{key:d,class:"jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},t.toDisplayString(s),1))),128)):t.createCommentVNode("",!0)])]))}});exports._sfc_main=G;