@win2win/shared-ui 0.3.240 → 0.3.242
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/dist/w2w-shared-ui.js +26029 -0
- package/dist/w2w-shared-ui.umd.cjs +48 -0
- package/package.json +5 -21
- package/dist/_virtual/ProductPrice.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -4
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/_virtual/archivo.js +0 -4
- package/dist/_virtual/canal-props.js +0 -4
- package/dist/_virtual/captacion.js +0 -4
- package/dist/_virtual/captacion2.js +0 -4
- package/dist/_virtual/comision.js +0 -4
- package/dist/_virtual/conditions.js +0 -4
- package/dist/_virtual/control-types.js +0 -4
- package/dist/_virtual/countries.js +0 -4
- package/dist/_virtual/estado-effect.js +0 -4
- package/dist/_virtual/estado-rule.js +0 -4
- package/dist/_virtual/estado.js +0 -4
- package/dist/_virtual/flag.js +0 -4
- package/dist/_virtual/formatters.js +0 -4
- package/dist/_virtual/gama.js +0 -4
- package/dist/_virtual/garantia.js +0 -4
- package/dist/_virtual/iban.js +0 -4
- package/dist/_virtual/id.js +0 -4
- package/dist/_virtual/import_schema.js +0 -4
- package/dist/_virtual/importacion.js +0 -4
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index10.js +0 -4
- package/dist/_virtual/index11.js +0 -4
- package/dist/_virtual/index12.js +0 -4
- package/dist/_virtual/index13.js +0 -4
- package/dist/_virtual/index14.js +0 -4
- package/dist/_virtual/index15.js +0 -4
- package/dist/_virtual/index16.js +0 -4
- package/dist/_virtual/index17.js +0 -4
- package/dist/_virtual/index18.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/index5.js +0 -4
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/index9.js +0 -4
- package/dist/_virtual/item-liquidable.js +0 -4
- package/dist/_virtual/landing.js +0 -4
- package/dist/_virtual/languages.js +0 -4
- package/dist/_virtual/layout.js +0 -4
- package/dist/_virtual/layout2.js +0 -4
- package/dist/_virtual/liquidacion.js +0 -4
- package/dist/_virtual/liquidaciones.js +0 -4
- package/dist/_virtual/llamada.js +0 -4
- package/dist/_virtual/lodash.js +0 -4
- package/dist/_virtual/mappers.js +0 -4
- package/dist/_virtual/notificacion.js +0 -4
- package/dist/_virtual/options.js +0 -4
- package/dist/_virtual/page_sections.js +0 -4
- package/dist/_virtual/partner.js +0 -4
- package/dist/_virtual/pedido.js +0 -4
- package/dist/_virtual/perfiles.js +0 -4
- package/dist/_virtual/permisos.js +0 -4
- package/dist/_virtual/producto.js +0 -4
- package/dist/_virtual/producto2.js +0 -4
- package/dist/_virtual/query-params.js +0 -4
- package/dist/_virtual/regla.js +0 -4
- package/dist/_virtual/resultado.js +0 -4
- package/dist/_virtual/seguimiento.js +0 -4
- package/dist/_virtual/shared-types.js +0 -4
- package/dist/_virtual/shared.js +0 -4
- package/dist/_virtual/timestamp.js +0 -4
- package/dist/_virtual/validators.js +0 -4
- package/dist/_virtual/validators2.js +0 -4
- package/dist/_virtual/visibility.js +0 -4
- package/dist/components/Common/Button.vue.js +0 -52
- package/dist/components/Common/Button.vue2.js +0 -4
- package/dist/components/Common/Card.vue.js +0 -7
- package/dist/components/Common/Card.vue2.js +0 -66
- package/dist/components/Common/DynamicCarousel.vue.js +0 -102
- package/dist/components/Common/DynamicCarousel.vue3.js +0 -5
- package/dist/components/Common/FlagsIcons.vue.js +0 -7
- package/dist/components/Common/FlagsIcons.vue2.js +0 -45
- package/dist/components/Common/GeneratingError.vue.js +0 -25
- package/dist/components/Common/GeneratingError.vue2.js +0 -4
- package/dist/components/Common/GeneratingLoader.vue.js +0 -25
- package/dist/components/Common/GeneratingLoader.vue2.js +0 -4
- package/dist/components/Common/IconButton.vue.js +0 -7
- package/dist/components/Common/IconButton.vue2.js +0 -97
- package/dist/components/Common/IndicatorColor.vue.js +0 -7
- package/dist/components/Common/IndicatorColor.vue2.js +0 -20
- package/dist/components/Common/MenuButton.vue.js +0 -91
- package/dist/components/Common/MenuButton.vue2.js +0 -4
- package/dist/components/Common/SectionSpinner.vue.js +0 -7
- package/dist/components/Common/SectionSpinner.vue2.js +0 -36
- package/dist/components/Common/StateIndicator.vue.js +0 -7
- package/dist/components/Common/StateIndicator.vue2.js +0 -41
- package/dist/components/pdf/DomSection.vue.js +0 -19
- package/dist/components/pdf/DomSection.vue2.js +0 -4
- package/dist/components/pdf/PdfContainer.vue.js +0 -7
- package/dist/components/pdf/PdfContainer.vue2.js +0 -102
- package/dist/components/pdf/SectionWrapper.vue.js +0 -33
- package/dist/components/pdf/SectionWrapper.vue2.js +0 -4
- package/dist/components/pdf/SectionsContainer.vue.js +0 -9
- package/dist/components/pdf/SectionsContainer.vue2.js +0 -56
- package/dist/components/pdf/SectionsContainer.vue3.js +0 -6
- package/dist/components/pdf/helpers.js +0 -23
- package/dist/components/pdf/sections/Card.vue.js +0 -9
- package/dist/components/pdf/sections/Card.vue2.js +0 -52
- package/dist/components/pdf/sections/Card.vue3.js +0 -12
- package/dist/components/pdf/sections/CardGridSection.vue.js +0 -9
- package/dist/components/pdf/sections/CardGridSection.vue2.js +0 -30
- package/dist/components/pdf/sections/CardGridSection.vue3.js +0 -6
- package/dist/components/pdf/sections/ImageSection.vue.js +0 -9
- package/dist/components/pdf/sections/ImageSection.vue2.js +0 -26
- package/dist/components/pdf/sections/ImageSection.vue3.js +0 -6
- package/dist/components/pdf/sections/RadioButtonsSection.vue.js +0 -7
- package/dist/components/pdf/sections/RadioButtonsSection.vue2.js +0 -43
- package/dist/components/pdf/sections/SignatureSection.vue.js +0 -7
- package/dist/components/pdf/sections/SignatureSection.vue2.js +0 -115
- package/dist/components/pdf/sections/TableSection.vue.js +0 -9
- package/dist/components/pdf/sections/TableSection.vue2.js +0 -49
- package/dist/components/pdf/sections/TableSection.vue3.js +0 -6
- package/dist/components/pdf/sections/TextSection.vue.js +0 -9
- package/dist/components/pdf/sections/TextSection.vue2.js +0 -135
- package/dist/components/pdf/sections/TextSection.vue3.js +0 -11
- package/dist/components/pdf/sections/useData.js +0 -8
- package/dist/components/widgets/broker-card/BrokerCard.vue.js +0 -7
- package/dist/components/widgets/broker-card/BrokerCard.vue2.js +0 -171
- package/dist/components/widgets/broker-card/components/BrokerProps.vue.js +0 -7
- package/dist/components/widgets/broker-card/components/BrokerProps.vue2.js +0 -117
- package/dist/components/widgets/broker-card/mock-data.js +0 -452
- package/dist/components/widgets/broker-card/mock-props.js +0 -273
- package/dist/components/widgets/broker-card/schema.js +0 -11
- package/dist/components/widgets/broker-detail/BrokerDetail.vue.js +0 -7
- package/dist/components/widgets/broker-detail/BrokerDetail.vue2.js +0 -174
- package/dist/components/widgets/broker-detail/components/BrokertActions.vue.js +0 -7
- package/dist/components/widgets/broker-detail/components/BrokertActions.vue2.js +0 -31
- package/dist/components/widgets/broker-detail/components/ImagesMiniature.vue.js +0 -7
- package/dist/components/widgets/broker-detail/components/ImagesMiniature.vue2.js +0 -90
- package/dist/components/widgets/broker-detail/mock-data.js +0 -227
- package/dist/components/widgets/broker-detail/mock-props.js +0 -12
- package/dist/components/widgets/broker-detail/schema.js +0 -10
- package/dist/components/widgets/broker-detail/useContext.js +0 -32
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue2.js +0 -249
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue.js +0 -36
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue2.js +0 -4
- package/dist/components/widgets/linvermedia-product-card/mock-data.js +0 -1121
- package/dist/components/widgets/linvermedia-product-card/mock-props.js +0 -20
- package/dist/components/widgets/linvermedia-product-card/schema.js +0 -13
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue2.js +0 -151
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue2.js +0 -90
- package/dist/components/widgets/linvermedia-product-detail/components/ProductConfiguration.vue.js +0 -9
- package/dist/components/widgets/linvermedia-product-detail/components/ProductConfiguration.vue2.js +0 -147
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue.js +0 -37
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue2.js +0 -4
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue2.js +0 -61
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue2.js +0 -56
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue.js +0 -21
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue2.js +0 -4
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShopcartActions.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShopcartActions.vue2.js +0 -91
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue.js +0 -20
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue2.js +0 -4
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.js +0 -7
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue2.js +0 -49
- package/dist/components/widgets/linvermedia-product-detail/mock-data.js +0 -1005
- package/dist/components/widgets/linvermedia-product-detail/mock-props.js +0 -12
- package/dist/components/widgets/linvermedia-product-detail/schema.js +0 -11
- package/dist/components/widgets/linvermedia-product-detail/useContext.js +0 -43
- package/dist/components/widgets/linvermedia-solicitud-card/LinvermediaSolicitudCard.vue.js +0 -7
- package/dist/components/widgets/linvermedia-solicitud-card/LinvermediaSolicitudCard.vue2.js +0 -74
- package/dist/components/widgets/linvermedia-solicitud-card/mock-data.js +0 -580
- package/dist/components/widgets/linvermedia-solicitud-card/mock-props.js +0 -8
- package/dist/components/widgets/linvermedia-solicitud-card/schema.js +0 -5
- package/dist/components/widgets/perdm-telephony-product-detail/PerdmTelephonyProductDetail.vue.js +0 -7
- package/dist/components/widgets/perdm-telephony-product-detail/PerdmTelephonyProductDetail.vue2.js +0 -263
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductLongDescription.vue.js +0 -21
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductLongDescription.vue2.js +0 -4
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductShortDescription.vue.js +0 -20
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductShortDescription.vue2.js +0 -4
- package/dist/components/widgets/perdm-telephony-product-detail/mock-data.js +0 -1187
- package/dist/components/widgets/perdm-telephony-product-detail/mock-props.js +0 -12
- package/dist/components/widgets/perdm-telephony-product-detail/schema.js +0 -11
- package/dist/components/widgets/perdm-telephony-product-detail/useContext.js +0 -41
- package/dist/components/widgets/shared/LinvermediaGamaProps.js +0 -1688
- package/dist/components/widgets/shared/PerdmTelephonyGamaProps.js +0 -1688
- package/dist/components/widgets/shared/ProductPrice.vue.js +0 -7
- package/dist/components/widgets/shared/ProductPrice.vue2.js +0 -84
- package/dist/components/widgets/shared/ProductProps.vue.js +0 -294
- package/dist/components/widgets/shared/ProductProps.vue2.js +0 -4
- package/dist/components/widgets/shared/ProductTag.vue.js +0 -7
- package/dist/components/widgets/shared/ProductTag.vue2.js +0 -38
- package/dist/components/widgets/shared/helpers.js +0 -52
- package/dist/components/widgets/shared/schema.js +0 -17
- package/dist/components/widgets/shared/useWidgetEvent.js +0 -13
- package/dist/components/widgets/telephony-card/TelephonyCard.vue.js +0 -7
- package/dist/components/widgets/telephony-card/TelephonyCard.vue2.js +0 -292
- package/dist/components/widgets/telephony-card/mock-data.js +0 -1197
- package/dist/components/widgets/telephony-card/mock-props.js +0 -400
- package/dist/components/widgets/telephony-card/schema.js +0 -22
- package/dist/components/widgets/telmex-card/TelmexCard.vue.js +0 -7
- package/dist/components/widgets/telmex-card/TelmexCard.vue2.js +0 -232
- package/dist/components/widgets/telmex-card/mock-data.js +0 -1545
- package/dist/components/widgets/telmex-card/mock-props.js +0 -1332
- package/dist/components/widgets/telmex-card/schema.js +0 -22
- package/dist/components/widgets/telmex-product-detail/TelmexProductDetail.vue.js +0 -7
- package/dist/components/widgets/telmex-product-detail/TelmexProductDetail.vue2.js +0 -648
- package/dist/components/widgets/telmex-product-detail/components/ProductInfo.vue.js +0 -7
- package/dist/components/widgets/telmex-product-detail/components/ProductInfo.vue2.js +0 -316
- package/dist/components/widgets/telmex-product-detail/components/ProductLongDescription.vue.js +0 -21
- package/dist/components/widgets/telmex-product-detail/components/ProductLongDescription.vue2.js +0 -4
- package/dist/components/widgets/telmex-product-detail/components/ProductShortDescription.vue.js +0 -20
- package/dist/components/widgets/telmex-product-detail/components/ProductShortDescription.vue2.js +0 -4
- package/dist/components/widgets/telmex-product-detail/components/TotalOrder.vue.js +0 -7
- package/dist/components/widgets/telmex-product-detail/components/TotalOrder.vue2.js +0 -52
- package/dist/components/widgets/telmex-product-detail/mock-data.js +0 -1561
- package/dist/components/widgets/telmex-product-detail/mock-props.js +0 -10
- package/dist/components/widgets/telmex-product-detail/schema.js +0 -11
- package/dist/components/widgets/telmex-product-detail/useContext.js +0 -41
- package/dist/components.js +0 -31
- package/dist/composables/fetching/fetchUniqFactory.js +0 -21
- package/dist/composables/fetching/fetchUniqProvider.js +0 -15
- package/dist/composables/fetching/types.js +0 -11
- package/dist/composables/fetching/useFetch.js +0 -40
- package/dist/composables/fetching/useFetchPages.js +0 -101
- package/dist/composables/useDragAndDrop.js +0 -65
- package/dist/composables/utils.js +0 -11
- package/dist/composables.js +0 -17
- package/dist/index.js +0 -58
- package/dist/node_modules/@win2win/shared/dist/consts/countries.js +0 -1082
- package/dist/node_modules/@win2win/shared/dist/consts/index.js +0 -26
- package/dist/node_modules/@win2win/shared/dist/consts/languages.js +0 -173
- package/dist/node_modules/@win2win/shared/dist/consts/perfiles/index.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/consts/perfiles/perfiles.js +0 -38
- package/dist/node_modules/@win2win/shared/dist/consts/permisos/index.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/consts/permisos/permisos.js +0 -129
- package/dist/node_modules/@win2win/shared/dist/consts/visitas/index.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/consts/visitas/resultado.js +0 -40
- package/dist/node_modules/@win2win/shared/dist/enums/captacion.js +0 -14
- package/dist/node_modules/@win2win/shared/dist/enums/garantia.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/enums/importacion.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/enums/index.js +0 -32
- package/dist/node_modules/@win2win/shared/dist/enums/liquidacion.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/enums/notificacion.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/enums/pedido.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/enums/producto.js +0 -22
- package/dist/node_modules/@win2win/shared/dist/enums/shared.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/helpers/ProductPrice.js +0 -61
- package/dist/node_modules/@win2win/shared/dist/helpers/formatters.js +0 -76
- package/dist/node_modules/@win2win/shared/dist/helpers/index.js +0 -22
- package/dist/node_modules/@win2win/shared/dist/helpers/validators.js +0 -15
- package/dist/node_modules/@win2win/shared/dist/index.js +0 -24
- package/dist/node_modules/@win2win/shared/dist/interfaces/escaparates/canal-props.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/escaparates/index.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado-effect.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado-rule.js +0 -23
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/flag.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/index.js +0 -26
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/llamada.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/import_schema.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/index.js +0 -20
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/layout.js +0 -7
- package/dist/node_modules/@win2win/shared/dist/interfaces/index.js +0 -34
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/index.js +0 -20
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/landing.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/page_sections.js +0 -270
- package/dist/node_modules/@win2win/shared/dist/interfaces/layout_documentos/index.js +0 -18
- package/dist/node_modules/@win2win/shared/dist/interfaces/layout_documentos/layout.js +0 -15
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/comision.js +0 -11
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/index.js +0 -24
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/item-liquidable.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/liquidaciones.js +0 -10
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/regla.js +0 -27
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/conditions.js +0 -7
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/control-types.js +0 -27
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/index.js +0 -28
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/mappers.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/options.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/validators.js +0 -85
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/visibility.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/archivo.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/captacion.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/gama.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/index.js +0 -28
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/partner.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/producto.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/seguimiento.js +0 -17
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/id.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/index.js +0 -24
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/query-params.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/shared-types.js +0 -5
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/timestamp.js +0 -10
- package/dist/node_modules/better-dni/dist/index.js +0 -67
- package/dist/node_modules/iban/iban.js +0 -114
- package/dist/node_modules/lodash/lodash.js +0 -3676
- package/dist/widgets.js +0 -154
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, toRefs as D, computed as l, createElementBlock as n, openBlock as r, unref as s, createElementVNode as m, createBlock as f, createCommentVNode as p, normalizeClass as y, toDisplayString as i, createTextVNode as N, withCtx as L } from "vue";
|
|
2
|
-
import "../../../node_modules/@win2win/shared/dist/index.js";
|
|
3
|
-
import { mapKeys as O } from "lodash-es";
|
|
4
|
-
import { QBadge as R, QIcon as b } from "quasar";
|
|
5
|
-
import { __exports as x } from "../../../_virtual/index.js";
|
|
6
|
-
const h = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "q-my-xl"
|
|
9
|
-
}, g = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "row"
|
|
12
|
-
}, w = /* @__PURE__ */ B({
|
|
13
|
-
__name: "ProductPrice",
|
|
14
|
-
props: {
|
|
15
|
-
product: {},
|
|
16
|
-
size: {},
|
|
17
|
-
isPrivate: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(E) {
|
|
20
|
-
const d = E, { size: v = "medium", isPrivate: I } = D(d), c = l(
|
|
21
|
-
() => O(d.product || {}, (e, t) => t.toUpperCase())
|
|
22
|
-
), P = l(() => {
|
|
23
|
-
var e;
|
|
24
|
-
return ((e = c.value) == null ? void 0 : e.DETALLE_PACK) || [];
|
|
25
|
-
}), k = l(() => {
|
|
26
|
-
var e;
|
|
27
|
-
return x.toCurrency(Number(((e = c.value) == null ? void 0 : e.PRECIO) || 0));
|
|
28
|
-
}), _ = l(() => {
|
|
29
|
-
var e;
|
|
30
|
-
return (e = P.value) == null ? void 0 : e.reduce((t, o) => t + A(o), 0);
|
|
31
|
-
}), u = l(() => {
|
|
32
|
-
var o;
|
|
33
|
-
const e = Number(((o = c.value) == null ? void 0 : o.PRECIO) || 0), t = _.value;
|
|
34
|
-
return t > e ? Math.round((t - e) / t * 100) : null;
|
|
35
|
-
}), A = (e) => {
|
|
36
|
-
var C;
|
|
37
|
-
const t = Number(e.CANTIDAD || 0);
|
|
38
|
-
return Number(((C = e.DETALLE) == null ? void 0 : C.PRECIO) || 0) * t;
|
|
39
|
-
};
|
|
40
|
-
return (e, t) => {
|
|
41
|
-
var o, a;
|
|
42
|
-
return r(), n("div", null, [
|
|
43
|
-
(o = c.value) != null && o.OCULTAR_PRECIO_LANDING && !s(I) ? (r(), n("div", h)) : (r(), n("div", g, [
|
|
44
|
-
m("div", null, [
|
|
45
|
-
u.value ? (r(), n("div", {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: y([
|
|
48
|
-
"strikethrough",
|
|
49
|
-
s(v) === "small" ? "" : "text-h6",
|
|
50
|
-
"text-grey-7"
|
|
51
|
-
])
|
|
52
|
-
}, i(s(x.toCurrency)(_.value)), 3)) : p("", !0),
|
|
53
|
-
m("div", {
|
|
54
|
-
class: y(s(v) === "small" ? "price" : "text-h4")
|
|
55
|
-
}, [
|
|
56
|
-
N(i(k.value) + " ", 1),
|
|
57
|
-
u.value ? (r(), f(s(R), {
|
|
58
|
-
key: 0,
|
|
59
|
-
align: "middle",
|
|
60
|
-
color: "red",
|
|
61
|
-
class: "font-bold"
|
|
62
|
-
}, {
|
|
63
|
-
default: L(() => [
|
|
64
|
-
N(i(u.value) + "% OFF ", 1)
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
})) : p("", !0)
|
|
68
|
-
], 2),
|
|
69
|
-
t[0] || (t[0] = m("span", { class: "text-caption" }, i("IVA no incluido"), -1))
|
|
70
|
-
]),
|
|
71
|
-
(a = c.value) != null && a.OCULTAR_PRECIO_LANDING ? (r(), f(s(b), {
|
|
72
|
-
key: 0,
|
|
73
|
-
name: "visibility_off",
|
|
74
|
-
size: "sm",
|
|
75
|
-
class: "q-ml-xs"
|
|
76
|
-
})) : p("", !0)
|
|
77
|
-
]))
|
|
78
|
-
]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
w as default
|
|
84
|
-
};
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, toRefs as K, computed as h, createElementBlock as n, openBlock as r, createElementVNode as i, createCommentVNode as c, normalizeStyle as W, Fragment as L, renderList as X, normalizeClass as Y, createVNode as y, unref as s, toDisplayString as m, withCtx as Z, createTextVNode as u } from "vue";
|
|
2
|
-
import { isNil as ee, isArray as b } from "lodash-es";
|
|
3
|
-
import { Screen as oe, QIcon as v, QTooltip as te } from "quasar";
|
|
4
|
-
const se = { class: "overflow-hidden" }, ae = { class: "q-pl-xs" }, ie = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "q-mt-md text-black"
|
|
7
|
-
}, le = {
|
|
8
|
-
key: 0,
|
|
9
|
-
style: { "font-size": "14px" },
|
|
10
|
-
class: "row items-center"
|
|
11
|
-
}, ne = { class: "text-bold" }, re = {
|
|
12
|
-
key: 1,
|
|
13
|
-
style: { "font-size": "14px" },
|
|
14
|
-
class: "row items-center"
|
|
15
|
-
}, de = { class: "text-bold" }, ce = { class: "q-mt-md text-black" }, _e = {
|
|
16
|
-
key: 0,
|
|
17
|
-
style: { "font-size": "14px" }
|
|
18
|
-
}, me = { class: "text-bold" }, ue = {
|
|
19
|
-
key: 1,
|
|
20
|
-
style: { "font-size": "14px" }
|
|
21
|
-
}, pe = { class: "text-bold" }, ye = {
|
|
22
|
-
key: 2,
|
|
23
|
-
style: { "font-size": "14px" }
|
|
24
|
-
}, ve = { class: "text-bold" }, be = {
|
|
25
|
-
key: 3,
|
|
26
|
-
style: { "font-size": "14px" }
|
|
27
|
-
}, fe = { class: "text-bold" }, he = {
|
|
28
|
-
key: 4,
|
|
29
|
-
style: { "font-size": "14px" }
|
|
30
|
-
}, xe = { class: "text-bold" }, ge = {
|
|
31
|
-
key: 5,
|
|
32
|
-
style: { "font-size": "14px" }
|
|
33
|
-
}, ke = { class: "text-bold" }, we = {
|
|
34
|
-
key: 6,
|
|
35
|
-
style: { "font-size": "14px" }
|
|
36
|
-
}, ze = { class: "text-bold" }, Pe = {
|
|
37
|
-
key: 7,
|
|
38
|
-
style: { "font-size": "14px" }
|
|
39
|
-
}, qe = { class: "text-bold" }, Ce = { class: "q-mt-md" }, Ne = {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: "text-black row items-center"
|
|
42
|
-
}, Se = { class: "q-pl-xs text-grey-8" }, $e = { key: 0 }, Ve = {
|
|
43
|
-
key: 1,
|
|
44
|
-
class: "text-black row items-center"
|
|
45
|
-
}, Te = { class: "q-pl-xs text-grey-8" }, Me = /* @__PURE__ */ J({
|
|
46
|
-
__name: "ProductProps",
|
|
47
|
-
props: {
|
|
48
|
-
productProps: { default: () => ({}) },
|
|
49
|
-
gamaProps: { default: () => [] },
|
|
50
|
-
hiddenProps: {},
|
|
51
|
-
lite: { type: Boolean }
|
|
52
|
-
},
|
|
53
|
-
setup(Q) {
|
|
54
|
-
const p = Q, { productProps: t, gamaProps: R } = K(p), x = (o, e) => {
|
|
55
|
-
const a = o.find((l) => l.value === e);
|
|
56
|
-
return (a == null ? void 0 : a.label) || e;
|
|
57
|
-
}, d = (o) => {
|
|
58
|
-
var l;
|
|
59
|
-
const e = t.value[o], a = R.value.find((_) => _.code === o);
|
|
60
|
-
return (l = a == null ? void 0 : a.options) != null && l.length ? b(e) ? e.map((_) => x(a.options, _)).join(", ") : x(a.options, e) : e;
|
|
61
|
-
}, g = (o) => {
|
|
62
|
-
if (typeof o == "string") {
|
|
63
|
-
let e = Number(o.replace(/[^0-9.-]/g, "").trim());
|
|
64
|
-
return isNaN(e) ? 0 : e;
|
|
65
|
-
} else
|
|
66
|
-
return o;
|
|
67
|
-
}, A = () => {
|
|
68
|
-
var a;
|
|
69
|
-
const o = t.value;
|
|
70
|
-
let e = 0;
|
|
71
|
-
if (o.pitch) {
|
|
72
|
-
const l = (a = o == null ? void 0 : o.pitch) == null ? void 0 : a.replace("_mm", ""), _ = l == null ? void 0 : l.replace("_", ".");
|
|
73
|
-
e = parseFloat(_);
|
|
74
|
-
}
|
|
75
|
-
if (e && o.ancho && o.alto) {
|
|
76
|
-
let l = g(o.ancho), _ = g(o.alto);
|
|
77
|
-
return o.unidad_de_medida == "m" ? (l = l * 1e3, _ = _ * 1e3) : o.unidad_de_medida == "cm" && (l = l * 10, _ = _ * 10), `${Math.round(l / e)}x${Math.round(_ / e)} p`;
|
|
78
|
-
}
|
|
79
|
-
}, O = () => {
|
|
80
|
-
const o = t.value;
|
|
81
|
-
if (o.tamano)
|
|
82
|
-
return d("tamano");
|
|
83
|
-
let e = "";
|
|
84
|
-
return o.ancho && o.alto && (e = `${o.ancho || ""} x ${o.alto || ""}`, o.profundidad && (e += ` x ${o.profundidad || ""}`), e += ` ${o.unidad_de_medida || ""}`), e;
|
|
85
|
-
}, k = h(() => oe.lt.md), U = (o) => o == null ? void 0 : o.replace(/Pantalla/gi, "Pant."), H = h(
|
|
86
|
-
() => [
|
|
87
|
-
{
|
|
88
|
-
key: "gama",
|
|
89
|
-
icon: "sym_o_category",
|
|
90
|
-
value: k.value ? U(d("gama")) : d("gama"),
|
|
91
|
-
label: "Gama"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: "subgama",
|
|
95
|
-
icon: "sym_o_label",
|
|
96
|
-
value: d("subgama"),
|
|
97
|
-
label: "Subgama"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: "brillo",
|
|
101
|
-
icon: "sym_o_light_mode",
|
|
102
|
-
value: d("brillo"),
|
|
103
|
-
label: "Brillo"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
key: "resolucion",
|
|
107
|
-
icon: "sym_o_display_settings",
|
|
108
|
-
label: "Resolución",
|
|
109
|
-
value: t.value.pitch ? A() : d("resolucion")
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
key: "ancho",
|
|
113
|
-
icon: "sym_o_square_foot",
|
|
114
|
-
label: "Tamaño",
|
|
115
|
-
value: O()
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "pitch",
|
|
119
|
-
icon: "sym_o_lightbulb",
|
|
120
|
-
label: "Pitch",
|
|
121
|
-
value: d("pitch")
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "tasa_de_refresco_hz",
|
|
125
|
-
icon: "sym_o_visibility",
|
|
126
|
-
label: "Tasa de refresco",
|
|
127
|
-
value: t.value.tasa_de_refresco_hz ? `${t.value.tasa_de_refresco_hz} hz` : ""
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
key: "gran_formato_independiente",
|
|
131
|
-
icon: "sym_o_imagesmode",
|
|
132
|
-
label: "Formato de imagen",
|
|
133
|
-
value: t.value.gran_formato_independiente ? "Gran formato independiente" : ""
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
key: "peso_kg",
|
|
137
|
-
icon: "sym_o_weight",
|
|
138
|
-
label: "Peso",
|
|
139
|
-
value: t.value.peso_kg ? `${t.value.peso_kg} kg` : ""
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
key: "doble_cara",
|
|
143
|
-
label: "Es doble cara",
|
|
144
|
-
icon: "sym_o_splitscreen",
|
|
145
|
-
value: t.value.doble_cara ? "Doble cara" : ""
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
key: "compatible_videowall",
|
|
149
|
-
icon: "sym_o_smart_display",
|
|
150
|
-
label: "Es compatible con videowall",
|
|
151
|
-
value: t.value.compatible_videowall ? k.value ? "Videowall" : "Compatible con videowall" : ""
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
key: "interactivo",
|
|
155
|
-
icon: "sym_o_touch_app",
|
|
156
|
-
label: "Interactivo",
|
|
157
|
-
value: d("interactivo")
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
key: "sistema_operativo",
|
|
161
|
-
icon: "sym_o_android",
|
|
162
|
-
label: "Sistema operativo",
|
|
163
|
-
value: d("sistema_operativo")
|
|
164
|
-
}
|
|
165
|
-
].filter((o) => {
|
|
166
|
-
var e, a;
|
|
167
|
-
return ee(o.value) || o.value === "" ? !1 : p != null && p.hiddenProps && ((e = p == null ? void 0 : p.hiddenProps) != null && e.length) ? !((a = p == null ? void 0 : p.hiddenProps) != null && a.includes(o.key)) : !0;
|
|
168
|
-
})
|
|
169
|
-
), w = h(() => {
|
|
170
|
-
var o;
|
|
171
|
-
if (t.value.pitch) {
|
|
172
|
-
const e = (o = t.value.pitch) == null ? void 0 : o.replace("_", "."), a = e == null ? void 0 : e.replace(/[^0-9.]/g, "");
|
|
173
|
-
return parseFloat(a).toFixed(2);
|
|
174
|
-
}
|
|
175
|
-
return "";
|
|
176
|
-
});
|
|
177
|
-
return (o, e) => {
|
|
178
|
-
var a, l, _, z, P, q, C, N, S, $, V, T, B, F, E, M, G, j, D;
|
|
179
|
-
return r(), n("div", se, [
|
|
180
|
-
i("div", {
|
|
181
|
-
class: "q-mt-md row text-black justify-start",
|
|
182
|
-
style: W(`font-size: ${o.lite ? "15px" : "16px"}`)
|
|
183
|
-
}, [
|
|
184
|
-
(r(!0), n(L, null, X(H.value, (f, I) => (r(), n("div", {
|
|
185
|
-
key: I,
|
|
186
|
-
class: Y(
|
|
187
|
-
o.lite ? I % 2 ? "col-md-5 text-left col-6" : "col-md-7 q-pr-xs text-left col-6" : "col-md-6 col-12 flex items-center"
|
|
188
|
-
)
|
|
189
|
-
}, [
|
|
190
|
-
i("span", null, [
|
|
191
|
-
y(s(v), {
|
|
192
|
-
size: "xs",
|
|
193
|
-
name: f.icon
|
|
194
|
-
}, null, 8, ["name"]),
|
|
195
|
-
i("span", ae, m(f.value), 1),
|
|
196
|
-
y(s(te), null, {
|
|
197
|
-
default: Z(() => [
|
|
198
|
-
u(m(f.label), 1)
|
|
199
|
-
]),
|
|
200
|
-
_: 2
|
|
201
|
-
}, 1024)
|
|
202
|
-
])
|
|
203
|
-
], 2))), 128))
|
|
204
|
-
], 4),
|
|
205
|
-
o.lite ? c("", !0) : (r(), n(L, { key: 0 }, [
|
|
206
|
-
(a = s(t)) != null && a.consumo_maximo_w || (l = s(t)) != null && l.consumo_medio_w ? (r(), n("div", ie, [
|
|
207
|
-
(_ = s(t)) != null && _.consumo_medio_w ? (r(), n("div", le, [
|
|
208
|
-
y(s(v), {
|
|
209
|
-
color: "green",
|
|
210
|
-
name: "sym_o_flash_on",
|
|
211
|
-
class: "q-mr-xs",
|
|
212
|
-
size: "18px"
|
|
213
|
-
}),
|
|
214
|
-
i("div", null, [
|
|
215
|
-
e[0] || (e[0] = u(" Consumo medio: ", -1)),
|
|
216
|
-
i("span", ne, m((z = s(t)) == null ? void 0 : z.consumo_medio_w), 1)
|
|
217
|
-
])
|
|
218
|
-
])) : c("", !0),
|
|
219
|
-
(P = s(t)) != null && P.consumo_maximo_w ? (r(), n("div", re, [
|
|
220
|
-
y(s(v), {
|
|
221
|
-
color: "green",
|
|
222
|
-
name: "sym_o_flash_on",
|
|
223
|
-
class: "q-mr-xs",
|
|
224
|
-
size: "18px"
|
|
225
|
-
}),
|
|
226
|
-
i("div", null, [
|
|
227
|
-
e[1] || (e[1] = u(" Consumo máximo: ", -1)),
|
|
228
|
-
i("span", de, m((q = s(t)) == null ? void 0 : q.consumo_maximo_w), 1)
|
|
229
|
-
])
|
|
230
|
-
])) : c("", !0)
|
|
231
|
-
])) : c("", !0),
|
|
232
|
-
i("div", ce, [
|
|
233
|
-
w.value ? (r(), n("div", _e, [
|
|
234
|
-
e[2] || (e[2] = u(" Distancia recomendada: ", -1)),
|
|
235
|
-
i("span", me, "a partir de " + m(w.value) + " m", 1)
|
|
236
|
-
])) : c("", !0),
|
|
237
|
-
(C = s(t)) != null && C.serie ? (r(), n("div", ue, [
|
|
238
|
-
e[3] || (e[3] = u(" Serie: ", -1)),
|
|
239
|
-
i("span", pe, m(d("serie")), 1)
|
|
240
|
-
])) : c("", !0),
|
|
241
|
-
(N = s(t)) != null && N.material ? (r(), n("div", ye, [
|
|
242
|
-
e[4] || (e[4] = u(" Material: ", -1)),
|
|
243
|
-
i("span", ve, m(d("material")), 1)
|
|
244
|
-
])) : c("", !0),
|
|
245
|
-
(S = s(t)) != null && S.usos_habituales && s(b)(($ = s(t)) == null ? void 0 : $.usos_habituales) ? (r(), n("div", be, [
|
|
246
|
-
e[5] || (e[5] = u(" Usos habituales: ", -1)),
|
|
247
|
-
i("span", fe, m(d("usos_habituales")), 1)
|
|
248
|
-
])) : c("", !0),
|
|
249
|
-
(V = s(t)) != null && V.propositos_generales && s(b)((T = s(t)) == null ? void 0 : T.propositos_generales) ? (r(), n("div", he, [
|
|
250
|
-
e[6] || (e[6] = u(" Propositos generales: ", -1)),
|
|
251
|
-
i("span", xe, m(d("propositos_generales")), 1)
|
|
252
|
-
])) : c("", !0),
|
|
253
|
-
(B = s(t)) != null && B.controladoras_compatibles && s(b)((F = s(t)) == null ? void 0 : F.controladoras_compatibles) ? (r(), n("div", ge, [
|
|
254
|
-
e[7] || (e[7] = u(" Controladoras compatibles: ", -1)),
|
|
255
|
-
i("span", ke, m(d("controladoras_compatibles")), 1)
|
|
256
|
-
])) : c("", !0),
|
|
257
|
-
(E = s(t)) != null && E.tipo_de_instalacion ? (r(), n("div", we, [
|
|
258
|
-
e[8] || (e[8] = u(" Tipo de instalación: ", -1)),
|
|
259
|
-
i("span", ze, m(d("tipo_de_instalacion")), 1)
|
|
260
|
-
])) : c("", !0),
|
|
261
|
-
(M = s(t)) != null && M.tipo_servicio ? (r(), n("div", Pe, [
|
|
262
|
-
e[9] || (e[9] = u(" Conexiones y acceso a componentes: ", -1)),
|
|
263
|
-
i("span", qe, m(d("tipo_servicio")), 1)
|
|
264
|
-
])) : c("", !0)
|
|
265
|
-
]),
|
|
266
|
-
i("div", Ce, [
|
|
267
|
-
((G = s(t)) == null ? void 0 : G.gob) == "si" ? (r(), n("div", Ne, [
|
|
268
|
-
y(s(v), {
|
|
269
|
-
color: "yellow-9",
|
|
270
|
-
style: { "font-size": "20px" },
|
|
271
|
-
name: "sym_o_verified_user"
|
|
272
|
-
}),
|
|
273
|
-
i("div", Se, [
|
|
274
|
-
e[10] || (e[10] = u(" GOB ", -1)),
|
|
275
|
-
((j = s(t)) == null ? void 0 : j.gob) == "si" ? (r(), n("span", $e, " (mayor resistencia a golpes, humedad y polvo.)")) : c("", !0)
|
|
276
|
-
])
|
|
277
|
-
])) : c("", !0),
|
|
278
|
-
(D = s(t)) != null && D.proteccion_ip ? (r(), n("div", Ve, [
|
|
279
|
-
y(s(v), {
|
|
280
|
-
color: "yellow-9",
|
|
281
|
-
style: { "font-size": "20px" },
|
|
282
|
-
name: "sym_o_verified_user"
|
|
283
|
-
}),
|
|
284
|
-
i("div", Te, m(d("proteccion_ip")), 1)
|
|
285
|
-
])) : c("", !0)
|
|
286
|
-
])
|
|
287
|
-
], 64))
|
|
288
|
-
]);
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
export {
|
|
293
|
-
Me as default
|
|
294
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, computed as c, createBlock as p, createCommentVNode as s, openBlock as n, unref as u, withCtx as i, createTextVNode as m, toDisplayString as f } from "vue";
|
|
2
|
-
import { QChip as l } from "quasar";
|
|
3
|
-
import { capitalize as g } from "./helpers.js";
|
|
4
|
-
const w = /* @__PURE__ */ o({
|
|
5
|
-
__name: "ProductTag",
|
|
6
|
-
props: {
|
|
7
|
-
tag: {},
|
|
8
|
-
format: { default: "capitalize" }
|
|
9
|
-
},
|
|
10
|
-
setup(t) {
|
|
11
|
-
const e = t, a = c(() => {
|
|
12
|
-
if (!e.tag) return "";
|
|
13
|
-
switch (e.format) {
|
|
14
|
-
case "capitalize":
|
|
15
|
-
return g(e.tag, !0);
|
|
16
|
-
case "uppercase":
|
|
17
|
-
return e.tag.toUpperCase();
|
|
18
|
-
case "lowercase":
|
|
19
|
-
return e.tag.toLowerCase();
|
|
20
|
-
default:
|
|
21
|
-
return e.tag;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return (r, d) => r.tag ? (n(), p(u(l), {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "tag",
|
|
27
|
-
size: "12px"
|
|
28
|
-
}, {
|
|
29
|
-
default: i(() => [
|
|
30
|
-
m(f(a.value), 1)
|
|
31
|
-
]),
|
|
32
|
-
_: 1
|
|
33
|
-
})) : s("", !0);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
w as default
|
|
38
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { mapKeys as m } from "lodash-es";
|
|
2
|
-
const c = (r) => r.charAt(0).toUpperCase() + r.slice(1), u = (r, o = !1) => typeof r != "string" ? r : (r = r.toLowerCase(), o ? r.split(" ").map(c).join(" ") : c(r)), l = (r, o, e = "EUR") => {
|
|
3
|
-
const i = (r == null ? void 0 : r.toString().replace(/[^0-9.,]/g, "")) || 0;
|
|
4
|
-
return Number(i).toLocaleString("de-DE", {
|
|
5
|
-
style: "currency",
|
|
6
|
-
currency: e,
|
|
7
|
-
minimumFractionDigits: o ?? 2,
|
|
8
|
-
maximumFractionDigits: o ?? 2
|
|
9
|
-
});
|
|
10
|
-
}, d = {
|
|
11
|
-
negro: "#000000",
|
|
12
|
-
blanco: "#FFFFFF",
|
|
13
|
-
rojo: "#FF0000",
|
|
14
|
-
verde: "#00FF00",
|
|
15
|
-
azul: "#0000FF",
|
|
16
|
-
amarillo: "#FFFF00",
|
|
17
|
-
gris: "#808080",
|
|
18
|
-
naranja: "#FFA500",
|
|
19
|
-
rosado: "#FFC0CB",
|
|
20
|
-
morado: "#800080",
|
|
21
|
-
marrón: "#8B4513"
|
|
22
|
-
}, g = (r) => {
|
|
23
|
-
if (!r) return null;
|
|
24
|
-
const o = m(
|
|
25
|
-
r,
|
|
26
|
-
(t, s) => s.toLowerCase()
|
|
27
|
-
), e = o.id_producto || o.id, i = o.tabla_estado || o.r_estado || o.estado, a = (o.r_img || o.images || []).filter(Boolean).map((t) => F(t)).filter((t) => t.estado > -1).sort((t, s) => t.posicion - s.posicion);
|
|
28
|
-
return {
|
|
29
|
-
...o,
|
|
30
|
-
id: e,
|
|
31
|
-
estado: i,
|
|
32
|
-
images: a
|
|
33
|
-
};
|
|
34
|
-
}, F = (r) => {
|
|
35
|
-
const o = m(
|
|
36
|
-
r,
|
|
37
|
-
(a, t) => t.toLowerCase()
|
|
38
|
-
), e = o.id_archivo || o.id, i = o.public || o.publico, n = o.tipo || o.filetype;
|
|
39
|
-
return {
|
|
40
|
-
...o,
|
|
41
|
-
id: e,
|
|
42
|
-
public: i,
|
|
43
|
-
tipo: n
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
d as MAP_COLOR,
|
|
48
|
-
u as capitalize,
|
|
49
|
-
c as formatOneWord,
|
|
50
|
-
l as toCurrency,
|
|
51
|
-
g as toProductLite
|
|
52
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z as o } from "zod";
|
|
2
|
-
const n = o.object({
|
|
3
|
-
data: o.any().nullable(),
|
|
4
|
-
isPublic: o.boolean().optional(),
|
|
5
|
-
fetching: o.boolean().optional(),
|
|
6
|
-
scale: o.number().optional(),
|
|
7
|
-
count: o.number({
|
|
8
|
-
description: "Indicador de cantidad, útil en el contexto de shopcart"
|
|
9
|
-
}).optional(),
|
|
10
|
-
imageHeight: o.string().optional(),
|
|
11
|
-
borderRadius: o.string().optional(),
|
|
12
|
-
unelevated: o.boolean().optional(),
|
|
13
|
-
hoverable: o.boolean().optional()
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
n as WidgetPropsSchema
|
|
17
|
-
};
|