@jsg-developer/vue-pack 0.0.9 → 0.0.10
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.
- package/README.md +85 -49
- package/THIRD_PARTY_LICENSES.json +28 -21
- package/THIRD_PARTY_LICENSES.md +6 -1
- package/dist/TabelData-DVOxNsS5.cjs +15 -0
- package/dist/TabelData-SXpPUn-t.js +8774 -0
- package/dist/components.cjs.js +1 -0
- package/dist/components.es.js +42 -0
- package/dist/index-CsEbGlOa.js +46 -0
- package/dist/index-D9djqelm.cjs +1 -0
- package/dist/indexedDB.cjs.js +1 -0
- package/dist/indexedDB.es.js +141 -0
- package/dist/init.cjs.js +1 -1
- package/dist/init.es.js +6 -5
- package/dist/jsgd-vue-pack.cjs.js +1 -1
- package/dist/jsgd-vue-pack.es.js +102 -1671
- package/dist/labels-B588RfM1.js +1153 -0
- package/dist/labels-BSx9XJ02.cjs +1 -0
- package/dist/register-BG47SL5y.js +15 -0
- package/dist/register-D85E754B.cjs +1 -0
- package/dist/secureFetch.cjs.js +1 -0
- package/dist/secureFetch.es.js +30 -0
- package/dist/style.css +1 -1
- package/dist/types/components/Form/FormFieldRenderer.vue.d.ts +1 -0
- package/dist/types/components/Form/FormFieldRenderer.vue.d.ts.map +1 -0
- package/dist/types/components/Form/FormModal.vue.d.ts +1 -0
- package/dist/types/components/Form/FormModal.vue.d.ts.map +1 -0
- package/dist/types/components/Form/composables/index.d.ts +1 -0
- package/dist/types/components/Form/composables/index.d.ts.map +1 -0
- package/dist/types/components/Form/composables/useFormFieldRenderer.d.ts +1 -0
- package/dist/types/components/Form/composables/useFormFieldRenderer.d.ts.map +1 -0
- package/dist/types/components/Form/composables/useFormModal.d.ts +1 -0
- package/dist/types/components/Form/composables/useFormModal.d.ts.map +1 -0
- package/dist/types/components/Form/index.d.ts +1 -0
- package/dist/types/components/Form/index.d.ts.map +1 -0
- package/dist/types/components/Tabel/TabelData.vue.d.ts +3 -2
- package/dist/types/components/Tabel/TabelData.vue.d.ts.map +1 -0
- package/dist/types/components/Tabel/composables/index.d.ts +1 -0
- package/dist/types/components/Tabel/composables/index.d.ts.map +1 -0
- package/dist/types/components/Tabel/composables/useDataNormalization.d.ts +1 -0
- package/dist/types/components/Tabel/composables/useDataNormalization.d.ts.map +1 -0
- package/dist/types/components/Tabel/composables/useDisplayHelpers.d.ts +1 -0
- package/dist/types/components/Tabel/composables/useDisplayHelpers.d.ts.map +1 -0
- package/dist/types/components/Tabel/composables/useFormHandling.d.ts +1 -0
- package/dist/types/components/Tabel/composables/useFormHandling.d.ts.map +1 -0
- package/dist/types/components/Tabel/composables/useTableLogic.d.ts +1 -0
- package/dist/types/components/Tabel/composables/useTableLogic.d.ts.map +1 -0
- package/dist/types/components/Tabel/index.d.ts +1 -0
- package/dist/types/components/Tabel/index.d.ts.map +1 -0
- package/dist/types/components/UI/Display/BaseImage.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/BaseImage.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +2 -16
- package/dist/types/components/UI/Display/BaseLabel.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/FieldDetailRenderer.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/FieldDetailRenderer.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/ImagePreview.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/ImagePreview.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/ModalDetailData.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/ModalDetailData.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/SafeHtml.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/SafeHtml.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/Tooltip.vue.d.ts +1 -0
- package/dist/types/components/UI/Display/Tooltip.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Display/index.d.ts +1 -0
- package/dist/types/components/UI/Display/index.d.ts.map +1 -0
- package/dist/types/components/UI/Feedback/AlertApp.vue.d.ts +1 -0
- package/dist/types/components/UI/Feedback/AlertApp.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Feedback/LoaderSuccessError.vue.d.ts +1 -0
- package/dist/types/components/UI/Feedback/LoaderSuccessError.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts +1 -0
- package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Feedback/index.d.ts +1 -0
- package/dist/types/components/UI/Feedback/index.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ArrayObject.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ArrayObject.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ColorPicker.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ColorPicker.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +3 -2
- package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/CurrencyInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/CurrencyInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/DateInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/DateInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/DateTimeInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/DateTimeInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/EmailInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/EmailInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/FileArrayInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/FileArrayInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/FileInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/FileInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/GroupRenderer.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/GroupRenderer.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ImageArrayInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ImageArrayInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/LocationPicker.vue.d.ts +70 -0
- package/dist/types/components/UI/Inputs/LocationPicker.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/NumberInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/NumberInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ObjectInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ObjectInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/PasswordInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/PasswordInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/RateInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/RateInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TagInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/TagInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TelInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/TelInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TextAreaInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/TextAreaInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +2 -1
- package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TextInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/TextInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/TimeInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/TimeInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/ToggleInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/ToggleInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/UrlInput.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/UrlInput.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +1 -0
- package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +29 -1
- package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/composables/index.d.ts +1 -0
- package/dist/types/components/UI/Inputs/composables/index.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/composables/useArrayObject.d.ts +1 -0
- package/dist/types/components/UI/Inputs/composables/useArrayObject.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/composables/useCurrencyInput.d.ts +1 -0
- package/dist/types/components/UI/Inputs/composables/useCurrencyInput.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/composables/useSchemaGroupRenderer.d.ts +1 -0
- package/dist/types/components/UI/Inputs/composables/useSchemaGroupRenderer.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/composables/useSingleObject.d.ts +1 -0
- package/dist/types/components/UI/Inputs/composables/useSingleObject.d.ts.map +1 -0
- package/dist/types/components/UI/Inputs/index.d.ts +2 -0
- package/dist/types/components/UI/Inputs/index.d.ts.map +1 -0
- package/dist/types/components/UI/index.d.ts +1 -0
- package/dist/types/components/UI/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/configs/defaults/index.d.ts +1 -0
- package/dist/types/configs/defaults/index.d.ts.map +1 -0
- package/dist/types/configs/defaults/table.d.ts +1 -0
- package/dist/types/configs/defaults/table.d.ts.map +1 -0
- package/dist/types/configs/i18n/errors.d.ts +1 -0
- package/dist/types/configs/i18n/errors.d.ts.map +1 -0
- package/dist/types/configs/i18n/index.d.ts +1 -0
- package/dist/types/configs/i18n/index.d.ts.map +1 -0
- package/dist/types/configs/i18n/inputs.d.ts +1 -0
- package/dist/types/configs/i18n/inputs.d.ts.map +1 -0
- package/dist/types/configs/i18n/labels.d.ts +1 -0
- package/dist/types/configs/i18n/labels.d.ts.map +1 -0
- package/dist/types/configs/i18n/register.d.ts +1 -0
- package/dist/types/configs/i18n/register.d.ts.map +1 -0
- package/dist/types/configs/index.d.ts +1 -0
- package/dist/types/configs/index.d.ts.map +1 -0
- package/dist/types/configs/types/base.types.d.ts +7 -5
- package/dist/types/configs/types/base.types.d.ts.map +1 -0
- package/dist/types/configs/types/date.types.d.ts +1 -0
- package/dist/types/configs/types/date.types.d.ts.map +1 -0
- package/dist/types/configs/types/field.types.d.ts +50 -2
- package/dist/types/configs/types/field.types.d.ts.map +1 -0
- package/dist/types/configs/types/globalText.types.d.ts +1 -0
- package/dist/types/configs/types/globalText.types.d.ts.map +1 -0
- package/dist/types/configs/types/index.d.ts +1 -0
- package/dist/types/configs/types/index.d.ts.map +1 -0
- package/dist/types/configs/types/modal-text.types.d.ts +1 -0
- package/dist/types/configs/types/modal-text.types.d.ts.map +1 -0
- package/dist/types/configs/types/plugin-config.types.d.ts +1 -0
- package/dist/types/configs/types/plugin-config.types.d.ts.map +1 -0
- package/dist/types/configs/types/props.types.d.ts +53 -1
- package/dist/types/configs/types/props.types.d.ts.map +1 -0
- package/dist/types/configs/types/schema.types.d.ts +4 -3
- package/dist/types/configs/types/schema.types.d.ts.map +1 -0
- package/dist/types/configs/types/seo.types.d.ts +1 -0
- package/dist/types/configs/types/seo.types.d.ts.map +1 -0
- package/dist/types/configs/types/submit-options.types.d.ts +1 -0
- package/dist/types/configs/types/submit-options.types.d.ts.map +1 -0
- package/dist/types/configs/types/table-data.types.d.ts +1 -0
- package/dist/types/configs/types/table-data.types.d.ts.map +1 -0
- package/dist/types/fetch/index.d.ts +1 -0
- package/dist/types/fetch/index.d.ts.map +1 -0
- package/dist/types/fetch/submitData.d.ts +1 -0
- package/dist/types/fetch/submitData.d.ts.map +1 -0
- package/dist/types/helpers/clientInfo.d.ts +1 -0
- package/dist/types/helpers/clientInfo.d.ts.map +1 -0
- package/dist/types/helpers/index.d.ts +1 -0
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/types/helpers/locale.d.ts +1 -0
- package/dist/types/helpers/locale.d.ts.map +1 -0
- package/dist/types/helpers/message.d.ts +1 -0
- package/dist/types/helpers/message.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/init.d.ts +1 -0
- package/dist/types/init.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/indexedDB.d.ts +1 -0
- package/dist/types/lib/indexedDB.d.ts.map +1 -0
- package/dist/types/lib/secureFetch.d.ts +1 -0
- package/dist/types/lib/secureFetch.d.ts.map +1 -0
- package/dist/types/plugin/vue.plugin.d.ts +1 -0
- package/dist/types/plugin/vue.plugin.d.ts.map +1 -0
- package/dist/types/untils/index.d.ts +1 -0
- package/dist/types/untils/index.d.ts.map +1 -0
- package/dist/types/untils/math.d.ts +1 -0
- package/dist/types/untils/math.d.ts.map +1 -0
- package/dist/types/untils/misc.d.ts +1 -0
- package/dist/types/untils/misc.d.ts.map +1 -0
- package/dist/types/untils/objectPath.d.ts +1 -0
- package/dist/types/untils/objectPath.d.ts.map +1 -0
- package/dist/types/untils/regex.d.ts +1 -0
- package/dist/types/untils/regex.d.ts.map +1 -0
- package/dist/types/untils/seo.d.ts +1 -0
- package/dist/types/untils/seo.d.ts.map +1 -0
- package/dist/types/validate/index.d.ts +1 -0
- package/dist/types/validate/index.d.ts.map +1 -0
- package/dist/types/validate/validate.d.ts +1 -0
- package/dist/types/validate/validate.d.ts.map +1 -0
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.es.js +9 -53
- package/package.json +48 -2
- package/dist/chunks/ArrayObject-0xuEhOhk.cjs.js +0 -1
- package/dist/chunks/ArrayObject-DOjuPD1E.es.js +0 -4
- package/dist/chunks/ColorPicker-9dL3PtG3.cjs.js +0 -1
- package/dist/chunks/ColorPicker-BHhrw8Wl.es.js +0 -4
- package/dist/chunks/ComboboxComponent-CCkruI47.es.js +0 -4
- package/dist/chunks/ComboboxComponent-CTx8Vw_9.cjs.js +0 -1
- package/dist/chunks/CurrencyInput-BtFZho2N.es.js +0 -4
- package/dist/chunks/CurrencyInput-ClSyBpnK.cjs.js +0 -1
- package/dist/chunks/DateInput-BThmjoqx.cjs.js +0 -1
- package/dist/chunks/DateInput-b7NB_vXk.es.js +0 -4
- package/dist/chunks/DateTimeInput--FP_u8Yt.es.js +0 -4
- package/dist/chunks/DateTimeInput-Cpl1gFSK.cjs.js +0 -1
- package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BrkVOH9p.es.js +0 -142
- package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-CILx0Aq6.cjs.js +0 -2
- package/dist/chunks/EmailInput-B9UAysfD.es.js +0 -4
- package/dist/chunks/EmailInput-eOIpKbZI.cjs.js +0 -1
- package/dist/chunks/FileArrayInput-6mVb0lZm.cjs.js +0 -1
- package/dist/chunks/FileArrayInput-YgwwMJ8d.es.js +0 -5
- package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-CvKWrmWs.cjs.js +0 -2
- package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-do6gh6pp.es.js +0 -198
- package/dist/chunks/FileInput-C0TwpVgG.es.js +0 -4
- package/dist/chunks/FileInput-DeYBBEUM.cjs.js +0 -1
- package/dist/chunks/GroupRenderer-Cz1hjI-2.es.js +0 -4
- package/dist/chunks/GroupRenderer-DCjLcNfJ.cjs.js +0 -1
- package/dist/chunks/ImageArrayInput-CQft-D0T.cjs.js +0 -1
- package/dist/chunks/ImageArrayInput-D5BB4r2J.es.js +0 -5
- package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-BZSS-Tzm.es.js +0 -421
- package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-oeMxAliE.cjs.js +0 -2
- package/dist/chunks/ImageInput-D1eTYtg7.cjs.js +0 -1
- package/dist/chunks/ImageInput-VbEI9JIR.es.js +0 -4
- package/dist/chunks/NumberInput-CMTLiG1b.cjs.js +0 -1
- package/dist/chunks/NumberInput-DS17O3Cn.es.js +0 -4
- package/dist/chunks/ObjectInput-EZWeOXLi.cjs.js +0 -1
- package/dist/chunks/ObjectInput-b19oeQba.es.js +0 -4
- package/dist/chunks/PasswordInput-CBEbd-Ud.es.js +0 -4
- package/dist/chunks/PasswordInput-CiM-mVrk.cjs.js +0 -1
- package/dist/chunks/RateInput-3FQoVl8h.es.js +0 -4
- package/dist/chunks/RateInput-Cl6JCRpp.cjs.js +0 -1
- package/dist/chunks/TabelData-B0Le_B_Q.cjs.js +0 -1
- package/dist/chunks/TabelData-BHJC8v6o.es.js +0 -2437
- package/dist/chunks/TagInput-CWz-bPwU.cjs.js +0 -1
- package/dist/chunks/TagInput-DkB_fD-R.es.js +0 -4
- package/dist/chunks/TelInput-DU-SCcTv.es.js +0 -4
- package/dist/chunks/TelInput-lfixYiaM.cjs.js +0 -1
- package/dist/chunks/TextAreaInput-BUbpY_xl.es.js +0 -4
- package/dist/chunks/TextAreaInput-D8RLKe9N.cjs.js +0 -1
- package/dist/chunks/TextAreaQuill-Bejqkd4x.es.js +0 -600
- package/dist/chunks/TextAreaQuill-DVN0ki8_.cjs.js +0 -1
- package/dist/chunks/TextInput-BtfPzo6G.cjs.js +0 -1
- package/dist/chunks/TextInput-DThEAetr.es.js +0 -4
- package/dist/chunks/TimeInput-DK-OIXEt.cjs.js +0 -1
- package/dist/chunks/TimeInput-LUsipRMe.es.js +0 -4
- package/dist/chunks/ToggleInput-BA6Q1ZAd.es.js +0 -4
- package/dist/chunks/ToggleInput-jjAYu5tM.cjs.js +0 -1
- package/dist/chunks/UrlInput-BcVGcszC.cjs.js +0 -1
- package/dist/chunks/UrlInput-CGMHyowb.es.js +0 -4
- package/dist/chunks/resize-Bn1jzV77.es.js +0 -6010
- package/dist/chunks/resize-BvELN8MY.cjs.js +0 -12
- package/dist/types/lib/demoData.d.ts +0 -313
- package/dist/types/schemas/CQ.d.ts +0 -2
- package/dist/types/schemas/TestSchema.d.ts +0 -3
- package/dist/types/schemas/categories.d.ts +0 -2
- package/dist/types/schemas/colors.d.ts +0 -2
- package/dist/types/schemas/expenditure.d.ts +0 -2
- package/dist/types/schemas/income.d.ts +0 -9
- package/dist/types/schemas/index.d.ts +0 -16
- package/dist/types/schemas/model.d.ts +0 -2
- package/dist/types/schemas/news.d.ts +0 -2
- package/dist/types/schemas/order.d.ts +0 -2
- package/dist/types/schemas/page.d.ts +0 -2
- package/dist/types/schemas/promo.d.ts +0 -2
- package/dist/types/schemas/qna.d.ts +0 -2
- package/dist/types/schemas/rate.d.ts +0 -2
- package/dist/types/schemas/service.d.ts +0 -2
- package/dist/types/schemas/subTools.d.ts +0 -2
- package/dist/types/schemas/tools.d.ts +0 -2
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ge, inject as N, ref as I, computed as E, watch as me, createElementBlock as j, openBlock as h, createElementVNode as g, createCommentVNode as H, normalizeClass as A, createTextVNode as X, createBlock as ce, toDisplayString as P, unref as M, withCtx as ue, Fragment as Y, renderList as G, normalizeStyle as he } from "vue";
|
|
2
|
-
import { U as je, z as pe, aa as c, S as J, a as fe } from "./resize-Bn1jzV77.es.js";
|
|
3
|
-
import "dompurify";
|
|
4
|
-
import "lodash.isequal";
|
|
5
|
-
import "zod";
|
|
6
|
-
const be = { class: "jsgd-w-full jsgd-mb-4" }, we = ["for"], xe = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "jsgd-mb-4 jsgd-p-4 jsgd-bg-blue-50 jsgd-border jsgd-border-blue-200 jsgd-rounded-lg dark:jsgd-bg-blue-900/20 dark:jsgd-border-blue-800"
|
|
9
|
-
}, ve = { class: "jsgd-flex jsgd-items-center jsgd-gap-4" }, ke = { class: "jsgd-shrink-0 jsgd-w-16 jsgd-h-16 jsgd-bg-white jsgd-rounded jsgd-border jsgd-border-slate-300 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-overflow-hidden dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600" }, ye = ["src"], Fe = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "jsgd-text-xs jsgd-text-slate-400"
|
|
12
|
-
}, We = { class: "jsgd-flex jsgd-flex-col jsgd-gap-2" }, Ue = { class: "jsgd-flex jsgd-gap-2" }, _e = {
|
|
13
|
-
key: 0,
|
|
14
|
-
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"
|
|
15
|
-
}, Ie = ["src", "alt"], Re = ["onClick"], Le = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 dark:jsgd-text-slate-500"
|
|
18
|
-
}, Se = { class: "jsgd-text-center jsgd-mt-4" }, Ce = ["id", "disabled"], He = ["for"], Pe = ["disabled"], Ve = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, Be = /* @__PURE__ */ ge({
|
|
19
|
-
__name: "ImageArrayInput",
|
|
20
|
-
props: {
|
|
21
|
-
id: { default: je },
|
|
22
|
-
label: {},
|
|
23
|
-
modelValue: { default: () => [] },
|
|
24
|
-
previewAlt: {},
|
|
25
|
-
disabled: { type: Boolean },
|
|
26
|
-
error: {},
|
|
27
|
-
previewImages: {},
|
|
28
|
-
validate: {},
|
|
29
|
-
watermark: {},
|
|
30
|
-
lang: {}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:modelValue", "push:error", "remove:error"],
|
|
33
|
-
setup(x, { emit: Q }) {
|
|
34
|
-
const t = x, b = Q, V = N("TableComponents", {
|
|
35
|
-
labels: I(pe[t.lang ?? "en"])
|
|
36
|
-
}).labels, F = N("TableComponents")?.ShowAlert, R = I([]), W = I([]), p = I(null), L = I(""), S = E(() => W.value.length > 0 ? W.value : typeof t.error == "string" ? [t.error] : Array.isArray(t.error) ? t.error : []), C = E(() => t.disabled ? !0 : !!(t.validate?.maxFiles && t.modelValue && t.modelValue.length >= t.validate.maxFiles)), B = E(() => {
|
|
37
|
-
if (!t.validate) return "";
|
|
38
|
-
const s = t.validate, a = [];
|
|
39
|
-
if (s.maxFiles && a.push(c("imageMaxFiles", { max: s.maxFiles }, t.lang ?? "en")), s.allowedTypes && a.push(c("imageType", {}, t.lang ?? "en") + ` (${s.allowedTypes.join(", ")})`), s.maxSize && a.push(c("imageMaxSize", { max: s.maxSize }, t.lang ?? "en")), s.pixel) {
|
|
40
|
-
const e = s.pixel;
|
|
41
|
-
("minWidth" in e || "maxWidth" in e || "minHeight" in e || "maxHeight" in e) && (e.minWidth && a.push(c("imageMinWidth", { min: e.minWidth }, t.lang ?? "en")), e.minHeight && a.push(c("imageMinHeight", { min: e.minHeight }, t.lang ?? "en")), e.maxWidth && a.push(c("imageMaxWidth", { max: e.maxWidth }, t.lang ?? "en")), e.maxHeight && a.push(c("imageMaxHeight", { max: e.maxHeight }, t.lang ?? "en"))), ("width" in e || "height" in e) && a.push(
|
|
42
|
-
c(
|
|
43
|
-
"imagePixel",
|
|
44
|
-
{ width: e.width ?? "any", height: e.height ?? "any" },
|
|
45
|
-
t.lang ?? "en"
|
|
46
|
-
)
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
return s.ratio && a.push(
|
|
50
|
-
c("imageRatio", { w: s.ratio.Width, h: s.ratio.Height }, t.lang ?? "en")
|
|
51
|
-
), a.join(`
|
|
52
|
-
`);
|
|
53
|
-
});
|
|
54
|
-
me(
|
|
55
|
-
() => t.modelValue,
|
|
56
|
-
async (s) => {
|
|
57
|
-
if (!s || s.length === 0) {
|
|
58
|
-
R.value = t.previewImages || [], K();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const a = s.map((e) => new Promise((d) => {
|
|
62
|
-
if (typeof e == "string")
|
|
63
|
-
d(e);
|
|
64
|
-
else if (e instanceof File) {
|
|
65
|
-
const r = new FileReader();
|
|
66
|
-
r.onload = (l) => d(l.target?.result), r.onerror = () => d(""), r.readAsDataURL(e);
|
|
67
|
-
} else
|
|
68
|
-
d("");
|
|
69
|
-
}));
|
|
70
|
-
R.value = await Promise.all(a), K();
|
|
71
|
-
},
|
|
72
|
-
{ immediate: !0, deep: !0 }
|
|
73
|
-
);
|
|
74
|
-
function Z() {
|
|
75
|
-
const s = prompt("Enter Watermark Image URL (https://...):");
|
|
76
|
-
s && (s.startsWith("http://") || s.startsWith("https://") ? (p.value = s, L.value = s) : F?.("error", "Invalid URL", ["URL must start with http:// or https://"]));
|
|
77
|
-
}
|
|
78
|
-
function ee(s) {
|
|
79
|
-
const a = s.target, e = a.files?.[0];
|
|
80
|
-
e && (p.value = e, L.value = URL.createObjectURL(e)), a.value = "";
|
|
81
|
-
}
|
|
82
|
-
function D(s, a = !1) {
|
|
83
|
-
return new Promise((e, d) => {
|
|
84
|
-
const r = new Image();
|
|
85
|
-
a && (r.crossOrigin = "anonymous"), r.onload = () => e(r), r.onerror = (l) => {
|
|
86
|
-
console.error("Failed to load image:", s, l), d(new Error(`Failed to load image: ${s}`));
|
|
87
|
-
}, r.src = s;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
async function O(s) {
|
|
91
|
-
if (!t.watermark)
|
|
92
|
-
return s;
|
|
93
|
-
let a = "";
|
|
94
|
-
if (t.watermark.url === "upload") {
|
|
95
|
-
if (!p.value)
|
|
96
|
-
return console.warn('Watermark config is "upload" but no watermark image set. Skipping watermark.'), s;
|
|
97
|
-
if (p.value instanceof File)
|
|
98
|
-
a = URL.createObjectURL(p.value);
|
|
99
|
-
else if (typeof p.value == "string")
|
|
100
|
-
a = p.value;
|
|
101
|
-
else
|
|
102
|
-
return console.warn("Unsupported watermark source type. Skipping watermark."), s;
|
|
103
|
-
} else
|
|
104
|
-
a = t.watermark.url;
|
|
105
|
-
const e = t.watermark, d = URL.createObjectURL(s);
|
|
106
|
-
try {
|
|
107
|
-
const [r, l] = await Promise.all([
|
|
108
|
-
D(d, !1),
|
|
109
|
-
D(a, !0)
|
|
110
|
-
]), o = document.createElement("canvas");
|
|
111
|
-
o.width = r.width, o.height = r.height;
|
|
112
|
-
const n = o.getContext("2d");
|
|
113
|
-
if (!n) return s;
|
|
114
|
-
n.drawImage(r, 0, 0);
|
|
115
|
-
let i = l.width, m = l.height;
|
|
116
|
-
if (typeof e.size == "number")
|
|
117
|
-
i = e.size, m = e.size;
|
|
118
|
-
else if (e.size) {
|
|
119
|
-
const u = e.size;
|
|
120
|
-
i = u.width, m = u.height;
|
|
121
|
-
}
|
|
122
|
-
let v = 0, k = 0, w = 0, U = 0;
|
|
123
|
-
if (e.margin !== void 0)
|
|
124
|
-
if (typeof e.margin == "number")
|
|
125
|
-
v = k = w = U = e.margin;
|
|
126
|
-
else {
|
|
127
|
-
const u = e.margin;
|
|
128
|
-
v = u.top ?? 0, k = u.right ?? 0, w = u.bottom ?? 0, U = u.left ?? 0;
|
|
129
|
-
}
|
|
130
|
-
let f = 0, y = 0;
|
|
131
|
-
const z = o.width, $ = o.height, _ = e.position ?? "bottom-right";
|
|
132
|
-
if (typeof _ == "string")
|
|
133
|
-
if (_ === "full")
|
|
134
|
-
f = 0, y = 0, i = z, m = $;
|
|
135
|
-
else
|
|
136
|
-
switch (_) {
|
|
137
|
-
case "top-left":
|
|
138
|
-
f = U, y = v;
|
|
139
|
-
break;
|
|
140
|
-
case "top-right":
|
|
141
|
-
f = z - i - k, y = v;
|
|
142
|
-
break;
|
|
143
|
-
case "bottom-left":
|
|
144
|
-
f = U, y = $ - m - w;
|
|
145
|
-
break;
|
|
146
|
-
case "bottom-right":
|
|
147
|
-
f = z - i - k, y = $ - m - w;
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
else if (typeof _ == "object") {
|
|
151
|
-
const u = _;
|
|
152
|
-
f = u.x, y = u.y;
|
|
153
|
-
}
|
|
154
|
-
n.save();
|
|
155
|
-
let T = 1;
|
|
156
|
-
e.opacity !== void 0 ? T = e.opacity : e.transparant !== void 0 && (T = e.transparant / 100), n.globalAlpha = T;
|
|
157
|
-
const de = f + i / 2, le = y + m / 2;
|
|
158
|
-
return n.translate(de, le), e.rotate && n.rotate(e.rotate * Math.PI / 180), n.drawImage(l, -i / 2, -m / 2, i, m), n.restore(), new Promise((u, oe) => {
|
|
159
|
-
o.toBlob((q) => {
|
|
160
|
-
if (q) {
|
|
161
|
-
const ne = new File([q], s.name, { type: s.type });
|
|
162
|
-
u(ne);
|
|
163
|
-
} else
|
|
164
|
-
oe(new Error("Canvas toBlob failed"));
|
|
165
|
-
}, s.type);
|
|
166
|
-
});
|
|
167
|
-
} catch (r) {
|
|
168
|
-
return console.error(`Watermark application failed for ${s.name}:`, r), F?.("error", `Watermark Error (${s.name})`, [
|
|
169
|
-
"Failed to apply watermark. Using original image."
|
|
170
|
-
]), s;
|
|
171
|
-
} finally {
|
|
172
|
-
URL.revokeObjectURL(d), t.watermark.url === "upload" && p.value instanceof File && URL.revokeObjectURL(a);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
async function te() {
|
|
176
|
-
if (t.disabled) return;
|
|
177
|
-
if (C.value) {
|
|
178
|
-
F?.(
|
|
179
|
-
"error",
|
|
180
|
-
c("imageMaxFiles", { max: t.validate.maxFiles }, t.lang ?? "en")
|
|
181
|
-
);
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const s = prompt(V.value.placeholder?.url ?? "Please enter the image URL");
|
|
185
|
-
if (s) {
|
|
186
|
-
if (!s.startsWith("http://") && !s.startsWith("https://")) {
|
|
187
|
-
F?.("error", "Invalid URL", [
|
|
188
|
-
"Please enter a valid URL starting with http:// or https://"
|
|
189
|
-
]);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
const a = t.modelValue || [];
|
|
193
|
-
if (!t.watermark || !p) {
|
|
194
|
-
b("update:modelValue", [...a, s]);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
try {
|
|
198
|
-
const e = await fetch(s, { mode: "cors" });
|
|
199
|
-
if (!e.ok) throw new Error("Failed to fetch image");
|
|
200
|
-
const d = await e.blob(), r = s.split("/").pop()?.split("?")[0] || `image-${Date.now()}.png`, l = new File([d], r, { type: d.type || "image/png" }), o = await O(l);
|
|
201
|
-
b("update:modelValue", [...a, o]);
|
|
202
|
-
} catch (e) {
|
|
203
|
-
console.error("URL Watermark Error:", e), confirm(
|
|
204
|
-
"Could not apply watermark due to security (CORS). Add original image instead?"
|
|
205
|
-
) && b("update:modelValue", [...a, s]);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
async function se(s) {
|
|
210
|
-
if (t.disabled) return;
|
|
211
|
-
const a = s.target, e = a.files;
|
|
212
|
-
if (!e || e.length === 0) return;
|
|
213
|
-
const d = t.modelValue || [], r = t.validate?.maxFiles;
|
|
214
|
-
if (r && d.length + e.length > r) {
|
|
215
|
-
F?.("error", c("imageMaxFiles", { max: r }, t.lang ?? "en")), a.value = "";
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const l = [], o = t.validate?.allowedTypes?.map((i) => i.toLowerCase()) ?? [];
|
|
219
|
-
for (const i of Array.from(e)) {
|
|
220
|
-
const m = i.name.split(".").pop()?.toLowerCase();
|
|
221
|
-
if (o.length > 0 && (!m || !o.includes(m))) {
|
|
222
|
-
F?.("error", "Invalid file type", [
|
|
223
|
-
c("imageType", {}, t.lang ?? "en") + ` (${t.validate?.allowedTypes?.join(", ")})`
|
|
224
|
-
]);
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
l.push(i);
|
|
228
|
-
}
|
|
229
|
-
let n = [];
|
|
230
|
-
if (t.watermark && p.value && l.length > 0)
|
|
231
|
-
try {
|
|
232
|
-
const i = l.map((m) => O(m));
|
|
233
|
-
n = await Promise.all(i);
|
|
234
|
-
} catch (i) {
|
|
235
|
-
console.error("Batch watermarking process failed:", i), a.value = "";
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
else
|
|
239
|
-
n = l;
|
|
240
|
-
n.length > 0 && b("update:modelValue", [...d, ...n]), a.value = "";
|
|
241
|
-
}
|
|
242
|
-
function ae(s) {
|
|
243
|
-
if (t.disabled) return;
|
|
244
|
-
const a = [...t.modelValue || []];
|
|
245
|
-
a.splice(s, 1), b("update:modelValue", a);
|
|
246
|
-
}
|
|
247
|
-
async function K() {
|
|
248
|
-
if (!t.validate || !t.modelValue || t.modelValue.length === 0) {
|
|
249
|
-
W.value = [], b("remove:error", t.id);
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
const s = [];
|
|
253
|
-
t.validate.maxFiles && t.modelValue.length > t.validate.maxFiles && s.push(c("imageMaxFiles", { max: t.validate.maxFiles }, t.lang ?? "en"));
|
|
254
|
-
const a = t.modelValue.map(
|
|
255
|
-
(d, r) => re(d, r + 1)
|
|
256
|
-
);
|
|
257
|
-
(await Promise.all(a)).forEach((d) => s.push(...d)), W.value = [...new Set(s)], W.value.length > 0 ? b("push:error", W.value, t.id) : b("remove:error", t.id);
|
|
258
|
-
}
|
|
259
|
-
async function re(s, a) {
|
|
260
|
-
const e = [];
|
|
261
|
-
if (!(s instanceof File))
|
|
262
|
-
return [];
|
|
263
|
-
const d = s, r = t.validate;
|
|
264
|
-
if (r.allowedTypes) {
|
|
265
|
-
const l = d.name.split(".").pop()?.toLowerCase();
|
|
266
|
-
(!l || !r.allowedTypes.map((o) => o.toLowerCase()).includes(l)) && e.push(
|
|
267
|
-
`File ${a}: ` + c("imageType", {}, t.lang ?? "en") + ` (${r.allowedTypes.join(", ")})`
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
if (r.maxSize && d.size / 1024 > r.maxSize && e.push(
|
|
271
|
-
`File ${a}: ` + c("imageMaxSize", { max: r.maxSize }, t.lang ?? "en")
|
|
272
|
-
), r.pixel || r.ratio) {
|
|
273
|
-
const l = await ie(d), o = l.width, n = l.height;
|
|
274
|
-
if (r.pixel) {
|
|
275
|
-
const i = r.pixel;
|
|
276
|
-
("minWidth" in i && i.minWidth && o < i.minWidth || "minHeight" in i && i.minHeight && n < i.minHeight || "maxWidth" in i && i.maxWidth && o > i.maxWidth || "maxHeight" in i && i.maxHeight && n > i.maxHeight) && e.push(`File ${a}: Invalid dimensions.`), ("width" in i && i.width && o !== i.width || "height" in i && i.height && n !== i.height) && e.push(
|
|
277
|
-
`File ${a}: ` + c(
|
|
278
|
-
"imagePixel",
|
|
279
|
-
{ width: i.width ?? o, height: i.height ?? n },
|
|
280
|
-
t.lang ?? "en"
|
|
281
|
-
)
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
if (r.ratio) {
|
|
285
|
-
const i = r.ratio.Width, m = r.ratio.Height, v = J(o, n), k = J(i, m);
|
|
286
|
-
let w = v.w === k.w && v.h === k.h;
|
|
287
|
-
if (!w) {
|
|
288
|
-
const U = o / n, f = i / m;
|
|
289
|
-
w = Math.abs(U - f) <= 0.01;
|
|
290
|
-
}
|
|
291
|
-
w || e.push(
|
|
292
|
-
`File ${a}: ` + c(
|
|
293
|
-
"imageRatio",
|
|
294
|
-
{ w: String(i), h: String(m) },
|
|
295
|
-
t.lang ?? "en"
|
|
296
|
-
)
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return e;
|
|
301
|
-
}
|
|
302
|
-
function ie(s) {
|
|
303
|
-
return new Promise((a) => {
|
|
304
|
-
const e = new FileReader();
|
|
305
|
-
e.onload = (d) => {
|
|
306
|
-
const r = new Image();
|
|
307
|
-
r.onload = () => a({ width: r.width, height: r.height }), r.onerror = () => a({ width: 0, height: 0 }), r.src = d.target?.result;
|
|
308
|
-
}, e.onerror = () => a({ width: 0, height: 0 }), e.readAsDataURL(s);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
return (s, a) => (h(), j("div", be, [
|
|
312
|
-
g("label", {
|
|
313
|
-
for: x.id,
|
|
314
|
-
class: A(["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": S.value.length !== 0 }])
|
|
315
|
-
}, [
|
|
316
|
-
X(P(x.label) + " ", 1),
|
|
317
|
-
B.value ? (h(), ce(M(fe), {
|
|
318
|
-
key: 0,
|
|
319
|
-
text: B.value,
|
|
320
|
-
as: "strong"
|
|
321
|
-
}, {
|
|
322
|
-
default: ue(() => [...a[0] || (a[0] = [
|
|
323
|
-
X(" ❓", -1)
|
|
324
|
-
])]),
|
|
325
|
-
_: 1
|
|
326
|
-
}, 8, ["text"])) : H("", !0)
|
|
327
|
-
], 10, we),
|
|
328
|
-
t.watermark?.url === "upload" ? (h(), j("div", xe, [
|
|
329
|
-
a[3] || (a[3] = g("p", { class: "jsgd-text-xs jsgd-font-bold jsgd-uppercase jsgd-text-blue-600 jsgd-mb-2 dark:jsgd-text-blue-400" }, " Configuration: Watermark Image ", -1)),
|
|
330
|
-
g("div", ve, [
|
|
331
|
-
g("div", ke, [
|
|
332
|
-
L.value ? (h(), j("img", {
|
|
333
|
-
key: 0,
|
|
334
|
-
src: L.value,
|
|
335
|
-
alt: "Watermark Preview",
|
|
336
|
-
class: "jsgd-w-full jsgd-h-full jsgd-object-contain"
|
|
337
|
-
}, null, 8, ye)) : (h(), j("span", Fe, "None"))
|
|
338
|
-
]),
|
|
339
|
-
g("div", We, [
|
|
340
|
-
g("div", Ue, [
|
|
341
|
-
g("input", {
|
|
342
|
-
type: "file",
|
|
343
|
-
accept: "image/*",
|
|
344
|
-
onChange: ee,
|
|
345
|
-
class: "jsgd-hidden",
|
|
346
|
-
id: "watermark-upload-input"
|
|
347
|
-
}, null, 32),
|
|
348
|
-
a[1] || (a[1] = g("label", {
|
|
349
|
-
for: "watermark-upload-input",
|
|
350
|
-
class: "jsgd-px-3 jsgd-py-1.5 jsgd-text-xs jsgd-font-medium jsgd-text-white jsgd-bg-slate-600 jsgd-rounded hover:jsgd-bg-slate-700 jsgd-cursor-pointer jsgd-transition-colors"
|
|
351
|
-
}, " Select Image ", -1)),
|
|
352
|
-
g("button", {
|
|
353
|
-
type: "button",
|
|
354
|
-
onClick: Z,
|
|
355
|
-
class: "jsgd-px-3 jsgd-py-1.5 jsgd-text-xs jsgd-font-medium jsgd-text-white jsgd-bg-slate-600 jsgd-rounded hover:jsgd-bg-slate-700 jsgd-cursor-pointer jsgd-transition-colors"
|
|
356
|
-
}, " Use URL ")
|
|
357
|
-
]),
|
|
358
|
-
a[2] || (a[2] = g("p", { class: "jsgd-text-[10px] jsgd-text-slate-500 dark:jsgd-text-slate-400" }, " Set this watermark before uploading your main images. ", -1))
|
|
359
|
-
])
|
|
360
|
-
])
|
|
361
|
-
])) : H("", !0),
|
|
362
|
-
g("div", {
|
|
363
|
-
class: A(["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": S.value.length !== 0 }])
|
|
364
|
-
}, [
|
|
365
|
-
R.value.length > 0 ? (h(), j("div", _e, [
|
|
366
|
-
(h(!0), j(Y, null, G(R.value, (e, d) => (h(), j("div", {
|
|
367
|
-
key: d,
|
|
368
|
-
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]",
|
|
369
|
-
style: he({ animationDelay: `${d * 50}ms` })
|
|
370
|
-
}, [
|
|
371
|
-
g("img", {
|
|
372
|
-
src: e,
|
|
373
|
-
alt: `${x.previewAlt} ${d + 1}`,
|
|
374
|
-
class: "jsgd-block jsgd-w-full jsgd-aspect-square jsgd-object-cover jsgd-bg-white dark:jsgd-bg-transparent"
|
|
375
|
-
}, null, 8, Ie),
|
|
376
|
-
x.disabled ? H("", !0) : (h(), j("button", {
|
|
377
|
-
key: 0,
|
|
378
|
-
onClick: (r) => ae(d),
|
|
379
|
-
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",
|
|
380
|
-
"aria-label": "Remove image"
|
|
381
|
-
}, " × ", 8, Re))
|
|
382
|
-
], 4))), 128))
|
|
383
|
-
])) : (h(), j("div", Le, [
|
|
384
|
-
g("p", null, P(M(V)?.message?.noItemSelected), 1)
|
|
385
|
-
])),
|
|
386
|
-
g("div", Se, [
|
|
387
|
-
g("input", {
|
|
388
|
-
id: x.id,
|
|
389
|
-
type: "file",
|
|
390
|
-
accept: "image/*",
|
|
391
|
-
multiple: "",
|
|
392
|
-
onChange: se,
|
|
393
|
-
class: "jsgd-hidden",
|
|
394
|
-
disabled: C.value
|
|
395
|
-
}, null, 40, Ce),
|
|
396
|
-
g("label", {
|
|
397
|
-
for: x.id,
|
|
398
|
-
class: A(["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", {
|
|
399
|
-
"jsgd-opacity-60 jsgd-cursor-not-allowed": C.value
|
|
400
|
-
}])
|
|
401
|
-
}, P(M(V)?.btn?.upload ?? "Upload"), 11, He),
|
|
402
|
-
g("button", {
|
|
403
|
-
type: "button",
|
|
404
|
-
onClick: te,
|
|
405
|
-
disabled: C.value,
|
|
406
|
-
class: "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-ml-2 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"
|
|
407
|
-
}, " URL ", 8, Pe)
|
|
408
|
-
])
|
|
409
|
-
], 2),
|
|
410
|
-
g("div", Ve, [
|
|
411
|
-
S.value.length > 0 ? (h(!0), j(Y, { key: 0 }, G(S.value, (e, d) => (h(), j("p", {
|
|
412
|
-
key: d,
|
|
413
|
-
class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
|
|
414
|
-
}, P(e), 1))), 128)) : H("", !0)
|
|
415
|
-
])
|
|
416
|
-
]));
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
export {
|
|
420
|
-
Be as _
|
|
421
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./resize-BvELN8MY.cjs.js");require("dompurify");require("lodash.isequal");require("zod");const J={class:"jsgd-w-full jsgd-mb-4"},Q=["for"],Z={key:0,class:"jsgd-mb-4 jsgd-p-4 jsgd-bg-blue-50 jsgd-border jsgd-border-blue-200 jsgd-rounded-lg dark:jsgd-bg-blue-900/20 dark:jsgd-border-blue-800"},ee={class:"jsgd-flex jsgd-items-center jsgd-gap-4"},te={class:"jsgd-shrink-0 jsgd-w-16 jsgd-h-16 jsgd-bg-white jsgd-rounded jsgd-border jsgd-border-slate-300 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-overflow-hidden dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600"},ae=["src"],se={key:1,class:"jsgd-text-xs jsgd-text-slate-400"},re={class:"jsgd-flex jsgd-flex-col jsgd-gap-2"},ie={class:"jsgd-flex jsgd-gap-2"},le={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"},oe=["src","alt"],de=["onClick"],ne={key:1,class:"jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 dark:jsgd-text-slate-500"},ge={class:"jsgd-text-center jsgd-mt-4"},ce=["id","disabled"],me=["for"],ue=["disabled"],he={class:"jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1"},je=e.defineComponent({__name:"ImageArrayInput",props:{id:{default:d.setUID},label:{},modelValue:{default:()=>[]},previewAlt:{},disabled:{type:Boolean},error:{},previewImages:{},validate:{},watermark:{},lang:{}},emits:["update:modelValue","push:error","remove:error"],setup(b,{emit:H}){const a=b,p=H,B=e.inject("TableComponents",{labels:e.ref(d.defaultTextLabelsMap[a.lang??"en"])}).labels,k=e.inject("TableComponents")?.ShowAlert,V=e.ref([]),y=e.ref([]),h=e.ref(null),W=e.ref(""),U=e.computed(()=>y.value.length>0?y.value:typeof a.error=="string"?[a.error]:Array.isArray(a.error)?a.error:[]),_=e.computed(()=>a.disabled?!0:!!(a.validate?.maxFiles&&a.modelValue&&a.modelValue.length>=a.validate.maxFiles)),I=e.computed(()=>{if(!a.validate)return"";const s=a.validate,r=[];if(s.maxFiles&&r.push(d.getMessage("imageMaxFiles",{max:s.maxFiles},a.lang??"en")),s.allowedTypes&&r.push(d.getMessage("imageType",{},a.lang??"en")+` (${s.allowedTypes.join(", ")})`),s.maxSize&&r.push(d.getMessage("imageMaxSize",{max:s.maxSize},a.lang??"en")),s.pixel){const t=s.pixel;("minWidth"in t||"maxWidth"in t||"minHeight"in t||"maxHeight"in t)&&(t.minWidth&&r.push(d.getMessage("imageMinWidth",{min:t.minWidth},a.lang??"en")),t.minHeight&&r.push(d.getMessage("imageMinHeight",{min:t.minHeight},a.lang??"en")),t.maxWidth&&r.push(d.getMessage("imageMaxWidth",{max:t.maxWidth},a.lang??"en")),t.maxHeight&&r.push(d.getMessage("imageMaxHeight",{max:t.maxHeight},a.lang??"en"))),("width"in t||"height"in t)&&r.push(d.getMessage("imagePixel",{width:t.width??"any",height:t.height??"any"},a.lang??"en"))}return s.ratio&&r.push(d.getMessage("imageRatio",{w:s.ratio.Width,h:s.ratio.Height},a.lang??"en")),r.join(`
|
|
2
|
-
`)});e.watch(()=>a.modelValue,async s=>{if(!s||s.length===0){V.value=a.previewImages||[],N();return}const r=s.map(t=>new Promise(o=>{if(typeof t=="string")o(t);else if(t instanceof File){const i=new FileReader;i.onload=n=>o(n.target?.result),i.onerror=()=>o(""),i.readAsDataURL(t)}else o("")}));V.value=await Promise.all(r),N()},{immediate:!0,deep:!0});function P(){const s=prompt("Enter Watermark Image URL (https://...):");s&&(s.startsWith("http://")||s.startsWith("https://")?(h.value=s,W.value=s):k?.("error","Invalid URL",["URL must start with http:// or https://"]))}function T(s){const r=s.target,t=r.files?.[0];t&&(h.value=t,W.value=URL.createObjectURL(t)),r.value=""}function L(s,r=!1){return new Promise((t,o)=>{const i=new Image;r&&(i.crossOrigin="anonymous"),i.onload=()=>t(i),i.onerror=n=>{console.error("Failed to load image:",s,n),o(new Error(`Failed to load image: ${s}`))},i.src=s})}async function S(s){if(!a.watermark)return s;let r="";if(a.watermark.url==="upload"){if(!h.value)return console.warn('Watermark config is "upload" but no watermark image set. Skipping watermark.'),s;if(h.value instanceof File)r=URL.createObjectURL(h.value);else if(typeof h.value=="string")r=h.value;else return console.warn("Unsupported watermark source type. Skipping watermark."),s}else r=a.watermark.url;const t=a.watermark,o=URL.createObjectURL(s);try{const[i,n]=await Promise.all([L(o,!1),L(r,!0)]),g=document.createElement("canvas");g.width=i.width,g.height=i.height;const c=g.getContext("2d");if(!c)return s;c.drawImage(i,0,0);let l=n.width,m=n.height;if(typeof t.size=="number")l=t.size,m=t.size;else if(t.size){const u=t.size;l=u.width,m=u.height}let w=0,x=0,f=0,F=0;if(t.margin!==void 0)if(typeof t.margin=="number")w=x=f=F=t.margin;else{const u=t.margin;w=u.top??0,x=u.right??0,f=u.bottom??0,F=u.left??0}let j=0,v=0;const M=g.width,C=g.height,E=t.position??"bottom-right";if(typeof E=="string")if(E==="full")j=0,v=0,l=M,m=C;else switch(E){case"top-left":j=F,v=w;break;case"top-right":j=M-l-x,v=w;break;case"bottom-left":j=F,v=C-m-f;break;case"bottom-right":j=M-l-x,v=C-m-f;break}else if(typeof E=="object"){const u=E;j=u.x,v=u.y}c.save();let R=1;t.opacity!==void 0?R=t.opacity:t.transparant!==void 0&&(R=t.transparant/100),c.globalAlpha=R;const K=j+l/2,X=v+m/2;return c.translate(K,X),t.rotate&&c.rotate(t.rotate*Math.PI/180),c.drawImage(n,-l/2,-m/2,l,m),c.restore(),new Promise((u,Y)=>{g.toBlob(z=>{if(z){const G=new File([z],s.name,{type:s.type});u(G)}else Y(new Error("Canvas toBlob failed"))},s.type)})}catch(i){return console.error(`Watermark application failed for ${s.name}:`,i),k?.("error",`Watermark Error (${s.name})`,["Failed to apply watermark. Using original image."]),s}finally{URL.revokeObjectURL(o),a.watermark.url==="upload"&&h.value instanceof File&&URL.revokeObjectURL(r)}}async function $(){if(a.disabled)return;if(_.value){k?.("error",d.getMessage("imageMaxFiles",{max:a.validate.maxFiles},a.lang??"en"));return}const s=prompt(B.value.placeholder?.url??"Please enter the image URL");if(s){if(!s.startsWith("http://")&&!s.startsWith("https://")){k?.("error","Invalid URL",["Please enter a valid URL starting with http:// or https://"]);return}const r=a.modelValue||[];if(!a.watermark||!h){p("update:modelValue",[...r,s]);return}try{const t=await fetch(s,{mode:"cors"});if(!t.ok)throw new Error("Failed to fetch image");const o=await t.blob(),i=s.split("/").pop()?.split("?")[0]||`image-${Date.now()}.png`,n=new File([o],i,{type:o.type||"image/png"}),g=await S(n);p("update:modelValue",[...r,g])}catch(t){console.error("URL Watermark Error:",t),confirm("Could not apply watermark due to security (CORS). Add original image instead?")&&p("update:modelValue",[...r,s])}}}async function A(s){if(a.disabled)return;const r=s.target,t=r.files;if(!t||t.length===0)return;const o=a.modelValue||[],i=a.validate?.maxFiles;if(i&&o.length+t.length>i){k?.("error",d.getMessage("imageMaxFiles",{max:i},a.lang??"en")),r.value="";return}const n=[],g=a.validate?.allowedTypes?.map(l=>l.toLowerCase())??[];for(const l of Array.from(t)){const m=l.name.split(".").pop()?.toLowerCase();if(g.length>0&&(!m||!g.includes(m))){k?.("error","Invalid file type",[d.getMessage("imageType",{},a.lang??"en")+` (${a.validate?.allowedTypes?.join(", ")})`]);continue}n.push(l)}let c=[];if(a.watermark&&h.value&&n.length>0)try{const l=n.map(m=>S(m));c=await Promise.all(l)}catch(l){console.error("Batch watermarking process failed:",l),r.value="";return}else c=n;c.length>0&&p("update:modelValue",[...o,...c]),r.value=""}function D(s){if(a.disabled)return;const r=[...a.modelValue||[]];r.splice(s,1),p("update:modelValue",r)}async function N(){if(!a.validate||!a.modelValue||a.modelValue.length===0){y.value=[],p("remove:error",a.id);return}const s=[];a.validate.maxFiles&&a.modelValue.length>a.validate.maxFiles&&s.push(d.getMessage("imageMaxFiles",{max:a.validate.maxFiles},a.lang??"en"));const r=a.modelValue.map((o,i)=>O(o,i+1));(await Promise.all(r)).forEach(o=>s.push(...o)),y.value=[...new Set(s)],y.value.length>0?p("push:error",y.value,a.id):p("remove:error",a.id)}async function O(s,r){const t=[];if(!(s instanceof File))return[];const o=s,i=a.validate;if(i.allowedTypes){const n=o.name.split(".").pop()?.toLowerCase();(!n||!i.allowedTypes.map(g=>g.toLowerCase()).includes(n))&&t.push(`File ${r}: `+d.getMessage("imageType",{},a.lang??"en")+` (${i.allowedTypes.join(", ")})`)}if(i.maxSize&&o.size/1024>i.maxSize&&t.push(`File ${r}: `+d.getMessage("imageMaxSize",{max:i.maxSize},a.lang??"en")),i.pixel||i.ratio){const n=await q(o),g=n.width,c=n.height;if(i.pixel){const l=i.pixel;("minWidth"in l&&l.minWidth&&g<l.minWidth||"minHeight"in l&&l.minHeight&&c<l.minHeight||"maxWidth"in l&&l.maxWidth&&g>l.maxWidth||"maxHeight"in l&&l.maxHeight&&c>l.maxHeight)&&t.push(`File ${r}: Invalid dimensions.`),("width"in l&&l.width&&g!==l.width||"height"in l&&l.height&&c!==l.height)&&t.push(`File ${r}: `+d.getMessage("imagePixel",{width:l.width??g,height:l.height??c},a.lang??"en"))}if(i.ratio){const l=i.ratio.Width,m=i.ratio.Height,w=d.simplifyRatio(g,c),x=d.simplifyRatio(l,m);let f=w.w===x.w&&w.h===x.h;if(!f){const F=g/c,j=l/m;f=Math.abs(F-j)<=.01}f||t.push(`File ${r}: `+d.getMessage("imageRatio",{w:String(l),h:String(m)},a.lang??"en"))}}return t}function q(s){return new Promise(r=>{const t=new FileReader;t.onload=o=>{const i=new Image;i.onload=()=>r({width:i.width,height:i.height}),i.onerror=()=>r({width:0,height:0}),i.src=o.target?.result},t.onerror=()=>r({width:0,height:0}),t.readAsDataURL(s)})}return(s,r)=>(e.openBlock(),e.createElementBlock("div",J,[e.createElementVNode("label",{for:b.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(b.label)+" ",1),I.value?(e.openBlock(),e.createBlock(e.unref(d._sfc_main$1),{key:0,text:I.value,as:"strong"},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode(" ❓",-1)])]),_:1},8,["text"])):e.createCommentVNode("",!0)],10,Q),a.watermark?.url==="upload"?(e.openBlock(),e.createElementBlock("div",Z,[r[3]||(r[3]=e.createElementVNode("p",{class:"jsgd-text-xs jsgd-font-bold jsgd-uppercase jsgd-text-blue-600 jsgd-mb-2 dark:jsgd-text-blue-400"}," Configuration: Watermark Image ",-1)),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[W.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:W.value,alt:"Watermark Preview",class:"jsgd-w-full jsgd-h-full jsgd-object-contain"},null,8,ae)):(e.openBlock(),e.createElementBlock("span",se,"None"))]),e.createElementVNode("div",re,[e.createElementVNode("div",ie,[e.createElementVNode("input",{type:"file",accept:"image/*",onChange:T,class:"jsgd-hidden",id:"watermark-upload-input"},null,32),r[1]||(r[1]=e.createElementVNode("label",{for:"watermark-upload-input",class:"jsgd-px-3 jsgd-py-1.5 jsgd-text-xs jsgd-font-medium jsgd-text-white jsgd-bg-slate-600 jsgd-rounded hover:jsgd-bg-slate-700 jsgd-cursor-pointer jsgd-transition-colors"}," Select Image ",-1)),e.createElementVNode("button",{type:"button",onClick:P,class:"jsgd-px-3 jsgd-py-1.5 jsgd-text-xs jsgd-font-medium jsgd-text-white jsgd-bg-slate-600 jsgd-rounded hover:jsgd-bg-slate-700 jsgd-cursor-pointer jsgd-transition-colors"}," Use URL ")]),r[2]||(r[2]=e.createElementVNode("p",{class:"jsgd-text-[10px] jsgd-text-slate-500 dark:jsgd-text-slate-400"}," Set this watermark before uploading your main images. ",-1))])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.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":U.value.length!==0}])},[V.value.length>0?(e.openBlock(),e.createElementBlock("div",le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,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:e.normalizeStyle({animationDelay:`${o*50}ms`})},[e.createElementVNode("img",{src:t,alt:`${b.previewAlt} ${o+1}`,class:"jsgd-block jsgd-w-full jsgd-aspect-square jsgd-object-cover jsgd-bg-white dark:jsgd-bg-transparent"},null,8,oe),b.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:i=>D(o),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,de))],4))),128))])):(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("p",null,e.toDisplayString(e.unref(B)?.message?.noItemSelected),1)])),e.createElementVNode("div",ge,[e.createElementVNode("input",{id:b.id,type:"file",accept:"image/*",multiple:"",onChange:A,class:"jsgd-hidden",disabled:_.value},null,40,ce),e.createElementVNode("label",{for:b.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":_.value}])},e.toDisplayString(e.unref(B)?.btn?.upload??"Upload"),11,me),e.createElementVNode("button",{type:"button",onClick:$,disabled:_.value,class:"jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-ml-2 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,ue)])],2),e.createElementVNode("div",he,[U.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(U.value,(t,o)=>(e.openBlock(),e.createElementBlock("p",{key:o,class:"jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},e.toDisplayString(t),1))),128)):e.createCommentVNode("",!0)])]))}});exports._sfc_main=je;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-BvELN8MY.cjs.js");exports.default=e._sfc_main$11;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-BvELN8MY.cjs.js");exports.default=e._sfc_main$12;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-BvELN8MY.cjs.js");exports.default=e._sfc_main$13;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-BvELN8MY.cjs.js");exports.default=e._sfc_main$14;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-BvELN8MY.cjs.js");exports.default=e._sfc_main$6;
|