@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,22 +0,0 @@
|
|
|
1
|
-
import { z as o } from "zod";
|
|
2
|
-
import { WidgetPropsSchema as r } from "../shared/schema.js";
|
|
3
|
-
const i = r.extend({
|
|
4
|
-
descriptionLines: o.number().optional(),
|
|
5
|
-
hiddenProps: o.array(o.string()).optional(),
|
|
6
|
-
gamaProps: o.array(o.record(o.string(), o.any())),
|
|
7
|
-
context: o.enum(["captacion", "partner"]).default("captacion"),
|
|
8
|
-
isPublic: o.boolean().optional(),
|
|
9
|
-
filters: o.object({
|
|
10
|
-
grupo: o.string().optional(),
|
|
11
|
-
tipoDeServicio: o.string().optional()
|
|
12
|
-
}).optional(),
|
|
13
|
-
queryParams: o.record(o.any()).optional(),
|
|
14
|
-
cardColor: o.string().optional(),
|
|
15
|
-
headerColor: o.string().optional(),
|
|
16
|
-
nameColor: o.string().optional(),
|
|
17
|
-
titleHeight: o.string().optional(),
|
|
18
|
-
showHeader: o.boolean().optional()
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
i as TelmexCardPropsSchema
|
|
22
|
-
};
|
|
@@ -1,648 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Oe, useCssVars as we, toRefs as Ie, computed as v, ref as C, createElementBlock as i, openBlock as a, Fragment as V, createVNode as n, unref as s, withCtx as T, createElementVNode as o, toDisplayString as g, renderList as U, createBlock as j, normalizeStyle as P, createTextVNode as qe, createCommentVNode as _, normalizeClass as D, mergeProps as Se } from "vue";
|
|
2
|
-
import "axios";
|
|
3
|
-
import "lodash-es";
|
|
4
|
-
import { useFetch as Te } from "../../../composables/fetching/useFetch.js";
|
|
5
|
-
import "@tanstack/vue-query";
|
|
6
|
-
import { l as I } from "../../../node_modules/lodash/lodash.js";
|
|
7
|
-
import { useQuasar as Re, QDialog as Ve, QCard as De, QCardSection as L, QBadge as oe, QBtn as k, QSkeleton as ze, QIcon as A, QInput as G, QSelect as ae } from "quasar";
|
|
8
|
-
import { toProductLite as Ne } from "../shared/helpers.js";
|
|
9
|
-
import Be from "./components/ProductInfo.vue.js";
|
|
10
|
-
import Qe from "./components/TotalOrder.vue.js";
|
|
11
|
-
const Ue = { class: "text-h6" }, Ae = { class: "q-mt-sm" }, Ee = { key: 0 }, Me = { key: 0 }, $e = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "complements-grid"
|
|
14
|
-
}, je = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "complements-grid"
|
|
17
|
-
}, Le = ["onClick"], Ge = { class: "complement-image" }, Fe = ["src", "alt"], We = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "no-image"
|
|
20
|
-
}, Ke = { class: "complement-content" }, He = ["title"], Je = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "complement-price"
|
|
23
|
-
}, Xe = ["title"], Ye = {
|
|
24
|
-
key: 1,
|
|
25
|
-
class: "complement-tag"
|
|
26
|
-
}, Ze = {
|
|
27
|
-
key: 1,
|
|
28
|
-
class: "service-type-section"
|
|
29
|
-
}, el = { class: "service-type-options" }, ll = { class: "row justify-center q-col-gutter-md" }, tl = { class: "col-12 col-md-4" }, ol = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "col-12 col-md-4"
|
|
32
|
-
}, al = {
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "col-12 col-md-4"
|
|
35
|
-
}, sl = {
|
|
36
|
-
key: 2,
|
|
37
|
-
class: "portability-section"
|
|
38
|
-
}, il = {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "portability-quantity"
|
|
41
|
-
}, rl = { class: "quantity-selector" }, nl = { class: "row justify-center q-col-gutter-md q-mb-lg" }, ul = { class: "col-auto" }, cl = {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: "col-auto"
|
|
44
|
-
}, dl = {
|
|
45
|
-
key: 1,
|
|
46
|
-
class: "col-auto"
|
|
47
|
-
}, vl = {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "q-mb-lg"
|
|
50
|
-
}, ml = { class: "row justify-center" }, pl = { class: "col-12 col-md-8" }, _l = { class: "row justify-center q-mt-xl q-col-gutter-md" }, yl = { class: "col-6" }, bl = { class: "col-6" }, fl = {
|
|
51
|
-
key: 1,
|
|
52
|
-
class: "q-pa-sm"
|
|
53
|
-
}, Cl = { class: "row justify-between items-center q-mb-md" }, gl = { class: "text-subtitle1" }, kl = { class: "row justify-center q-mb-md" }, hl = { class: "portability-list" }, xl = { class: "row justify-between items-center q-mb-sm" }, Pl = { class: "text-weight-medium" }, Ol = { class: "row q-col-gutter-md" }, wl = { class: "col-12 col-md-6" }, Il = { class: "col-12 col-md-6" }, ql = {
|
|
54
|
-
key: 3,
|
|
55
|
-
class: "row justify-center q-my-lg"
|
|
56
|
-
}, Al = /* @__PURE__ */ Oe({
|
|
57
|
-
__name: "TelmexProductDetail",
|
|
58
|
-
props: {
|
|
59
|
-
isPublic: { type: Boolean },
|
|
60
|
-
fetching: { type: Boolean },
|
|
61
|
-
scale: {},
|
|
62
|
-
count: {},
|
|
63
|
-
imageHeight: {},
|
|
64
|
-
borderRadius: {},
|
|
65
|
-
unelevated: { type: Boolean },
|
|
66
|
-
hoverable: { type: Boolean },
|
|
67
|
-
view: {},
|
|
68
|
-
title: {},
|
|
69
|
-
data: {},
|
|
70
|
-
gamaProps: {},
|
|
71
|
-
cardColor: {},
|
|
72
|
-
color: { default: "#d83121" },
|
|
73
|
-
showPrice: {}
|
|
74
|
-
},
|
|
75
|
-
emits: ["on-event"],
|
|
76
|
-
setup(se, { emit: ie }) {
|
|
77
|
-
we((e) => ({
|
|
78
|
-
"33c7ad86": r.color
|
|
79
|
-
}));
|
|
80
|
-
const { screen: re } = Re(), E = ie, r = se, { data: z } = Ie(r), R = v(() => Ne(z.value)), ne = v(() => {
|
|
81
|
-
var e, l;
|
|
82
|
-
return (l = (e = R.value) == null ? void 0 : e.nombre) == null ? void 0 : l.toUpperCase();
|
|
83
|
-
}), F = v(() => {
|
|
84
|
-
var e;
|
|
85
|
-
return Number(((e = R.value) == null ? void 0 : e.precio) || 0);
|
|
86
|
-
}), N = C(!1), m = C("complements"), u = C(null), b = C([]), h = C([]), x = C(""), q = C(!1), d = C(null), f = C(null), W = v(
|
|
87
|
-
() => {
|
|
88
|
-
var e, l;
|
|
89
|
-
return !!((l = (e = z.value) == null ? void 0 : e.PROPS) != null && l.permite_alta_por_internet_recuperado);
|
|
90
|
-
}
|
|
91
|
-
), ue = v(
|
|
92
|
-
() => {
|
|
93
|
-
var e, l;
|
|
94
|
-
return !!((l = (e = z.value) == null ? void 0 : e.PROPS) != null && l.permite_portabilidad);
|
|
95
|
-
}
|
|
96
|
-
), B = v(() => {
|
|
97
|
-
var l, c;
|
|
98
|
-
const e = Number(((c = (l = z.value) == null ? void 0 : l.PROPS) == null ? void 0 : c.cantidad_maxima_portabilidad) || 0) || 100;
|
|
99
|
-
return Math.min(e, 100);
|
|
100
|
-
}), O = v(() => {
|
|
101
|
-
const e = [
|
|
102
|
-
{
|
|
103
|
-
id: "complements",
|
|
104
|
-
title: "Complementos",
|
|
105
|
-
description: "Selecciona los complementos"
|
|
106
|
-
}
|
|
107
|
-
];
|
|
108
|
-
return W.value && e.push({
|
|
109
|
-
id: "service-type",
|
|
110
|
-
title: "Tipo de servicio",
|
|
111
|
-
description: "Selecciona el tipo de servicio"
|
|
112
|
-
}), u.value === "portabilidad" && e.push({
|
|
113
|
-
id: "portability",
|
|
114
|
-
title: "Portabilidad",
|
|
115
|
-
description: "Indica la portabilidad"
|
|
116
|
-
}), u.value === "internet_recuperado" && e.push({
|
|
117
|
-
id: "internet-recovered",
|
|
118
|
-
title: "Compañía de internet",
|
|
119
|
-
description: "Selecciona la compañía de internet anterior"
|
|
120
|
-
}), e;
|
|
121
|
-
}), S = v(
|
|
122
|
-
() => O.value.findIndex((e) => e.id === m.value)
|
|
123
|
-
), K = v(
|
|
124
|
-
() => S.value === O.value.length - 1
|
|
125
|
-
), ce = v(
|
|
126
|
-
() => {
|
|
127
|
-
var e;
|
|
128
|
-
return ((e = O.value.find((l) => l.id === m.value)) == null ? void 0 : e.description) || "";
|
|
129
|
-
}
|
|
130
|
-
), de = v(() => {
|
|
131
|
-
var e, l;
|
|
132
|
-
return [
|
|
133
|
-
"complementos",
|
|
134
|
-
{ tipo_cliente: (l = (e = R.value) == null ? void 0 : e.props) == null ? void 0 : l.tipo_de_servicio }
|
|
135
|
-
];
|
|
136
|
-
}), ve = v(() => {
|
|
137
|
-
var e;
|
|
138
|
-
return {
|
|
139
|
-
customs: { idGama: 44 },
|
|
140
|
-
byEqualCol: {
|
|
141
|
-
"producto.ID_GAMA": 44,
|
|
142
|
-
"producto.PROPS.$tipo_de_servicio$contains": (e = R.value) == null ? void 0 : e.props.tipo_de_servicio
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}), { data: me, fetching: H } = Te(
|
|
146
|
-
de,
|
|
147
|
-
"/public/ecommerce/productos",
|
|
148
|
-
ve,
|
|
149
|
-
void 0,
|
|
150
|
-
{ defaultValue: [] }
|
|
151
|
-
), Q = v(
|
|
152
|
-
() => {
|
|
153
|
-
var e;
|
|
154
|
-
return I.orderBy(
|
|
155
|
-
((e = me.value) == null ? void 0 : e.items) || [],
|
|
156
|
-
(l) => ["promocion", "oferta"].some((c) => I.snakeCase(l.TAGS || "").includes(c)),
|
|
157
|
-
"desc"
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
), J = v(
|
|
161
|
-
() => Q.value.filter(
|
|
162
|
-
(e) => b.value.includes(e.ID_PRODUCTO)
|
|
163
|
-
)
|
|
164
|
-
), pe = v(
|
|
165
|
-
() => J.value.reduce(
|
|
166
|
-
(e, l) => e + (Number(l.PRECIO) || 0),
|
|
167
|
-
0
|
|
168
|
-
)
|
|
169
|
-
), X = v(() => F.value + pe.value), _e = v(() => d.value === 1 || d.value === 2 ? !0 : d.value === "more" ? f.value && f.value <= B.value : !1), Y = v(() => u.value !== "portabilidad" || !q.value ? !0 : h.value.every((e) => e.nip.trim() && e.numero.trim())), ye = v(() => m.value === "complements" ? !0 : m.value === "service-type" ? !!u.value : m.value === "portability" ? u.value !== "portabilidad" ? !0 : q.value ? Y.value && !!x.value : !1 : m.value === "internet-recovered" ? u.value !== "internet_recuperado" ? !0 : !!x.value : !0), be = v(() => m.value === "service-type" ? u.value ? u.value === "alta_nueva" ? "Contratar ahora" : "Siguiente" : "Selecciona una opción" : m.value === "portability" ? !Y.value || !x.value ? "Completa los datos de portabilidad" : "Contratar ahora" : K.value ? "Contratar ahora" : "Siguiente"), fe = (e) => {
|
|
170
|
-
const l = b.value.indexOf(e);
|
|
171
|
-
l > -1 ? b.value.splice(l, 1) : b.value.push(e);
|
|
172
|
-
}, M = (e) => {
|
|
173
|
-
u.value = e;
|
|
174
|
-
}, $ = (e) => {
|
|
175
|
-
d.value = e, e !== "more" && (f.value = null);
|
|
176
|
-
}, Ce = () => {
|
|
177
|
-
let e;
|
|
178
|
-
if (d.value === 1 || d.value === 2)
|
|
179
|
-
e = d.value;
|
|
180
|
-
else if (d.value === "more" && f.value)
|
|
181
|
-
e = f.value;
|
|
182
|
-
else return;
|
|
183
|
-
q.value = !0, h.value = Array(e).fill(null).map(() => ({
|
|
184
|
-
nip: "",
|
|
185
|
-
numero: "",
|
|
186
|
-
compania: ""
|
|
187
|
-
}));
|
|
188
|
-
}, ge = () => {
|
|
189
|
-
q.value = !1, d.value = null, f.value = null, h.value = [];
|
|
190
|
-
}, ke = () => {
|
|
191
|
-
if (m.value === "service-type" && u.value === "alta_nueva") {
|
|
192
|
-
ee();
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
if (K.value) {
|
|
196
|
-
ee();
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
const e = S.value + 1;
|
|
200
|
-
e < O.value.length && (m.value = O.value[e].id);
|
|
201
|
-
}, Z = () => {
|
|
202
|
-
const e = S.value - 1;
|
|
203
|
-
e >= 0 && (m.value = O.value[e].id);
|
|
204
|
-
}, ee = () => {
|
|
205
|
-
const e = I.omit(R.value, "images", "table_estado"), c = Q.value.filter(
|
|
206
|
-
(p) => b.value.includes(p.ID_PRODUCTO)
|
|
207
|
-
).map((p) => ({ product: p, quantity: 1, props: null })).concat({
|
|
208
|
-
product: I.mapKeys(
|
|
209
|
-
{ ...e, id_producto: e.id },
|
|
210
|
-
(p, w) => w.toUpperCase()
|
|
211
|
-
),
|
|
212
|
-
quantity: 1,
|
|
213
|
-
props: null
|
|
214
|
-
});
|
|
215
|
-
E("on-event", { code: "add_to_shopcart", payload: c });
|
|
216
|
-
const t = {}, y = x.value.trim();
|
|
217
|
-
if (u.value === "portabilidad") {
|
|
218
|
-
const p = h.value.filter(
|
|
219
|
-
(w) => w.nip && w.numero
|
|
220
|
-
);
|
|
221
|
-
p.length > 0 && (t.portabilidad = p.map((w) => ({
|
|
222
|
-
...w,
|
|
223
|
-
compania: y
|
|
224
|
-
})), t.compania_actual = y);
|
|
225
|
-
}
|
|
226
|
-
u.value === "internet_recuperado" && y !== "" && (t.compania_actual = y), u.value && (t.tipo_servicio = u.value), Object.keys(t).length > 0 && E("on-event", { code: "set_external_props", payload: t }), le();
|
|
227
|
-
}, le = () => {
|
|
228
|
-
N.value = !1, m.value = "complements", b.value = [], h.value = [], q.value = !1, d.value = null, f.value = null, u.value = null;
|
|
229
|
-
}, he = (e) => e === S.value || e < S.value ? r.color : "white", xe = (e) => e <= S.value ? "white" : "grey-7", Pe = (e) => I.orderBy(
|
|
230
|
-
(e.TAGS || "").split(",").map((c) => c.trim()),
|
|
231
|
-
(c) => I.snakeCase(c) === "promocion",
|
|
232
|
-
"desc"
|
|
233
|
-
)[0], te = [
|
|
234
|
-
...I.orderBy(
|
|
235
|
-
[
|
|
236
|
-
{ label: "Megacable", value: "Megacable" },
|
|
237
|
-
{ label: "Izzi", value: "Izzi" },
|
|
238
|
-
{ label: "Total Play", value: "Total Play" },
|
|
239
|
-
{ label: "Maxcom", value: "Maxcom" },
|
|
240
|
-
{ label: "Blue Telecomm", value: "Blue Telecomm" },
|
|
241
|
-
{ label: "Wizz", value: "Wizz" },
|
|
242
|
-
{ label: "Cablecom", value: "Cablecom" },
|
|
243
|
-
{ label: "Cablemas", value: "Cablemas" }
|
|
244
|
-
],
|
|
245
|
-
"label"
|
|
246
|
-
),
|
|
247
|
-
{ label: "Otra", value: "Otra" }
|
|
248
|
-
];
|
|
249
|
-
return (e, l) => (a(), i(V, null, [
|
|
250
|
-
n(s(Ve), {
|
|
251
|
-
modelValue: N.value,
|
|
252
|
-
"onUpdate:modelValue": l[9] || (l[9] = (c) => N.value = c),
|
|
253
|
-
maximized: s(re).lt.md
|
|
254
|
-
}, {
|
|
255
|
-
default: T(() => [
|
|
256
|
-
n(s(De), { class: "complements-card" }, {
|
|
257
|
-
default: T(() => [
|
|
258
|
-
n(s(L), { class: "row justify-between no-wrap items-start q-pa-md" }, {
|
|
259
|
-
default: T(() => [
|
|
260
|
-
o("div", null, [
|
|
261
|
-
o("div", Ue, g(ce.value), 1),
|
|
262
|
-
o("div", Ae, [
|
|
263
|
-
(a(!0), i(V, null, U(O.value, (c, t) => (a(), j(s(oe), {
|
|
264
|
-
key: c.id,
|
|
265
|
-
style: P({ backgroundColor: he(t) }),
|
|
266
|
-
"text-color": xe(t),
|
|
267
|
-
class: "q-mr-sm"
|
|
268
|
-
}, {
|
|
269
|
-
default: T(() => [
|
|
270
|
-
qe(g(t + 1) + ". " + g(c.title), 1)
|
|
271
|
-
]),
|
|
272
|
-
_: 2
|
|
273
|
-
}, 1032, ["style", "text-color"]))), 128))
|
|
274
|
-
])
|
|
275
|
-
]),
|
|
276
|
-
n(s(k), {
|
|
277
|
-
onClick: le,
|
|
278
|
-
icon: "close",
|
|
279
|
-
flat: ""
|
|
280
|
-
})
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}),
|
|
284
|
-
n(s(L), { class: "card-content" }, {
|
|
285
|
-
default: T(() => {
|
|
286
|
-
var c;
|
|
287
|
-
return [
|
|
288
|
-
m.value === "complements" ? (a(), i("div", Ee, [
|
|
289
|
-
s(H) || (c = Q.value) != null && c.length ? (a(), i("div", Me, [
|
|
290
|
-
s(H) ? (a(), i("div", $e, [
|
|
291
|
-
(a(), i(V, null, U(7, (t) => o("div", {
|
|
292
|
-
key: t,
|
|
293
|
-
class: "complement-card-container"
|
|
294
|
-
}, [
|
|
295
|
-
n(s(ze), { class: "complement-skeleton" })
|
|
296
|
-
])), 64))
|
|
297
|
-
])) : (a(), i("div", je, [
|
|
298
|
-
(a(!0), i(V, null, U(Q.value, (t) => {
|
|
299
|
-
var y, p;
|
|
300
|
-
return a(), i("div", {
|
|
301
|
-
key: t.ID_PRODUCTO,
|
|
302
|
-
class: "complement-card-container"
|
|
303
|
-
}, [
|
|
304
|
-
o("div", {
|
|
305
|
-
class: D(["complement-card", {
|
|
306
|
-
"complement-card--selected": b.value.includes(
|
|
307
|
-
t.ID_PRODUCTO
|
|
308
|
-
)
|
|
309
|
-
}]),
|
|
310
|
-
style: P({
|
|
311
|
-
"--selection-color": r.color,
|
|
312
|
-
borderColor: b.value.includes(
|
|
313
|
-
t.ID_PRODUCTO
|
|
314
|
-
) ? r.color : "#e0e0e0"
|
|
315
|
-
}),
|
|
316
|
-
onClick: (w) => fe(t.ID_PRODUCTO)
|
|
317
|
-
}, [
|
|
318
|
-
o("div", Ge, [
|
|
319
|
-
(p = (y = t == null ? void 0 : t.R_IMG) == null ? void 0 : y[0]) != null && p.LOCATION ? (a(), i("img", {
|
|
320
|
-
key: 0,
|
|
321
|
-
src: t.R_IMG[0].LOCATION,
|
|
322
|
-
alt: t.NOMBRE,
|
|
323
|
-
style: { "border-radius": "8px" }
|
|
324
|
-
}, null, 8, Fe)) : (a(), i("div", We, [...l[12] || (l[12] = [
|
|
325
|
-
o("span", null, "Sin imagen", -1)
|
|
326
|
-
])]))
|
|
327
|
-
]),
|
|
328
|
-
o("div", Ke, [
|
|
329
|
-
o("div", {
|
|
330
|
-
class: "complement-name",
|
|
331
|
-
title: t.NOMBRE
|
|
332
|
-
}, g(t.NOMBRE), 9, He),
|
|
333
|
-
t.PRECIO ? (a(), i("div", Je, " $" + g(t.PRECIO) + " al mes ", 1)) : _("", !0),
|
|
334
|
-
t.DESCRIPCION_CORTA ? (a(), i("div", {
|
|
335
|
-
key: 1,
|
|
336
|
-
class: "complement-description",
|
|
337
|
-
title: t.DESCRIPCION_CORTA
|
|
338
|
-
}, g(t.DESCRIPCION_CORTA), 9, Xe)) : _("", !0)
|
|
339
|
-
]),
|
|
340
|
-
b.value.includes(t.ID_PRODUCTO) ? (a(), i("div", {
|
|
341
|
-
key: 0,
|
|
342
|
-
class: "complement-check",
|
|
343
|
-
style: P({ backgroundColor: r.color })
|
|
344
|
-
}, [
|
|
345
|
-
n(s(A), {
|
|
346
|
-
name: "check",
|
|
347
|
-
color: "white",
|
|
348
|
-
size: "xs"
|
|
349
|
-
})
|
|
350
|
-
], 4)) : _("", !0),
|
|
351
|
-
t.TAGS ? (a(), i("div", Ye, [
|
|
352
|
-
n(s(oe), {
|
|
353
|
-
style: { border: "1px solid white" },
|
|
354
|
-
rounded: "",
|
|
355
|
-
color: "red",
|
|
356
|
-
label: Pe(t)
|
|
357
|
-
}, null, 8, ["label"])
|
|
358
|
-
])) : _("", !0)
|
|
359
|
-
], 14, Le)
|
|
360
|
-
]);
|
|
361
|
-
}), 128))
|
|
362
|
-
]))
|
|
363
|
-
])) : _("", !0)
|
|
364
|
-
])) : _("", !0),
|
|
365
|
-
m.value === "service-type" ? (a(), i("div", Ze, [
|
|
366
|
-
l[19] || (l[19] = o("div", { class: "text-h6 text-center q-mb-md" }, " Selecciona el tipo de servicio ", -1)),
|
|
367
|
-
l[20] || (l[20] = o("div", { class: "text-subtitle2 text-center text-grey-7 q-mb-xl" }, " Elige una opción para continuar ", -1)),
|
|
368
|
-
o("div", el, [
|
|
369
|
-
o("div", ll, [
|
|
370
|
-
o("div", tl, [
|
|
371
|
-
o("div", {
|
|
372
|
-
class: D(["service-option", {
|
|
373
|
-
"service-option--selected": u.value === "alta_nueva"
|
|
374
|
-
}]),
|
|
375
|
-
onClick: l[0] || (l[0] = (t) => M("alta_nueva"))
|
|
376
|
-
}, [
|
|
377
|
-
n(s(A), {
|
|
378
|
-
name: "add_circle",
|
|
379
|
-
size: "xl",
|
|
380
|
-
color: u.value === "alta_nueva" ? r.color : "grey-5",
|
|
381
|
-
class: "q-mb-md"
|
|
382
|
-
}, null, 8, ["color"]),
|
|
383
|
-
l[13] || (l[13] = o("div", { class: "service-title" }, "Alta nueva", -1)),
|
|
384
|
-
l[14] || (l[14] = o("div", { class: "service-description" }, " Instalación de nuevo servicio de internet ", -1))
|
|
385
|
-
], 2)
|
|
386
|
-
]),
|
|
387
|
-
W.value ? (a(), i("div", ol, [
|
|
388
|
-
o("div", {
|
|
389
|
-
class: D(["service-option", {
|
|
390
|
-
"service-option--selected": u.value === "internet_recuperado"
|
|
391
|
-
}]),
|
|
392
|
-
onClick: l[1] || (l[1] = (t) => M("internet_recuperado"))
|
|
393
|
-
}, [
|
|
394
|
-
n(s(A), {
|
|
395
|
-
name: "restart_alt",
|
|
396
|
-
size: "xl",
|
|
397
|
-
color: u.value === "internet_recuperado" ? r.color : "grey-5",
|
|
398
|
-
class: "q-mb-md"
|
|
399
|
-
}, null, 8, ["color"]),
|
|
400
|
-
l[15] || (l[15] = o("div", { class: "service-title" }, "Internet recuperado", -1)),
|
|
401
|
-
l[16] || (l[16] = o("div", { class: "service-description" }, " Reactivación de servicio anteriormente contratado ", -1))
|
|
402
|
-
], 2)
|
|
403
|
-
])) : _("", !0),
|
|
404
|
-
ue.value ? (a(), i("div", al, [
|
|
405
|
-
o("div", {
|
|
406
|
-
class: D(["service-option", {
|
|
407
|
-
"service-option--selected": u.value === "portabilidad"
|
|
408
|
-
}]),
|
|
409
|
-
onClick: l[2] || (l[2] = (t) => M("portabilidad"))
|
|
410
|
-
}, [
|
|
411
|
-
n(s(A), {
|
|
412
|
-
name: "contact_phone",
|
|
413
|
-
size: "xl",
|
|
414
|
-
color: u.value === "portabilidad" ? r.color : "grey-5",
|
|
415
|
-
class: "q-mb-md"
|
|
416
|
-
}, null, 8, ["color"]),
|
|
417
|
-
l[17] || (l[17] = o("div", { class: "service-title" }, "Portabilidad", -1)),
|
|
418
|
-
l[18] || (l[18] = o("div", { class: "service-description" }, " Cambia de operadora manteniendo tu número ", -1))
|
|
419
|
-
], 2)
|
|
420
|
-
])) : _("", !0)
|
|
421
|
-
])
|
|
422
|
-
])
|
|
423
|
-
])) : _("", !0),
|
|
424
|
-
m.value === "portability" ? (a(), i("div", sl, [
|
|
425
|
-
q.value ? (a(), i("div", fl, [
|
|
426
|
-
o("div", Cl, [
|
|
427
|
-
o("div", gl, " Ingrese los datos para " + g(h.value.length) + " portabilidad" + g(h.value.length > 1 ? "es" : ""), 1),
|
|
428
|
-
n(s(k), {
|
|
429
|
-
flat: "",
|
|
430
|
-
"no-caps": "",
|
|
431
|
-
color: r.color,
|
|
432
|
-
label: "Cambiar cantidad",
|
|
433
|
-
size: "sm",
|
|
434
|
-
onClick: ge
|
|
435
|
-
}, null, 8, ["color"])
|
|
436
|
-
]),
|
|
437
|
-
o("div", kl, [
|
|
438
|
-
n(s(ae), {
|
|
439
|
-
style: { width: "100%", "max-width": "400px" },
|
|
440
|
-
modelValue: x.value,
|
|
441
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) => x.value = t),
|
|
442
|
-
options: te,
|
|
443
|
-
label: "Compañía actual",
|
|
444
|
-
outlined: "",
|
|
445
|
-
rounded: "",
|
|
446
|
-
"emit-value": "",
|
|
447
|
-
"map-options": "",
|
|
448
|
-
rules: [(t) => !!t || "La compañía es requerida"]
|
|
449
|
-
}, null, 8, ["modelValue", "rules"])
|
|
450
|
-
]),
|
|
451
|
-
o("div", hl, [
|
|
452
|
-
(a(!0), i(V, null, U(h.value, (t, y) => (a(), i("div", {
|
|
453
|
-
key: y,
|
|
454
|
-
class: "portability-item q-mb-md q-pa-md"
|
|
455
|
-
}, [
|
|
456
|
-
o("div", xl, [
|
|
457
|
-
o("div", Pl, " Portabilidad " + g(y + 1), 1)
|
|
458
|
-
]),
|
|
459
|
-
o("div", Ol, [
|
|
460
|
-
o("div", wl, [
|
|
461
|
-
n(s(G), {
|
|
462
|
-
modelValue: t.nip,
|
|
463
|
-
"onUpdate:modelValue": (p) => t.nip = p,
|
|
464
|
-
label: "NIP",
|
|
465
|
-
outlined: "",
|
|
466
|
-
rounded: "",
|
|
467
|
-
rules: [(p) => !!p || "NIP es requerido"]
|
|
468
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules"])
|
|
469
|
-
]),
|
|
470
|
-
o("div", Il, [
|
|
471
|
-
n(s(G), {
|
|
472
|
-
modelValue: t.numero,
|
|
473
|
-
"onUpdate:modelValue": (p) => t.numero = p,
|
|
474
|
-
label: "Número a portar",
|
|
475
|
-
outlined: "",
|
|
476
|
-
rounded: "",
|
|
477
|
-
rules: [(p) => !!p || "Número es requerido"]
|
|
478
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules"])
|
|
479
|
-
])
|
|
480
|
-
])
|
|
481
|
-
]))), 128))
|
|
482
|
-
])
|
|
483
|
-
])) : (a(), i("div", il, [
|
|
484
|
-
l[21] || (l[21] = o("div", { class: "text-h6 text-center q-mb-md" }, " ¿Cuántas portabilidades desea realizar? ", -1)),
|
|
485
|
-
o("div", rl, [
|
|
486
|
-
o("div", nl, [
|
|
487
|
-
o("div", ul, [
|
|
488
|
-
n(s(k), {
|
|
489
|
-
outline: d.value !== 1,
|
|
490
|
-
color: r.color,
|
|
491
|
-
style: P(
|
|
492
|
-
d.value === 1 ? { backgroundColor: r.color } : {}
|
|
493
|
-
),
|
|
494
|
-
"text-color": d.value === 1 ? "white" : r.color,
|
|
495
|
-
label: "1",
|
|
496
|
-
onClick: l[3] || (l[3] = (t) => $(1)),
|
|
497
|
-
class: "quantity-btn",
|
|
498
|
-
size: "xl"
|
|
499
|
-
}, null, 8, ["outline", "color", "style", "text-color"])
|
|
500
|
-
]),
|
|
501
|
-
B.value >= 2 ? (a(), i("div", cl, [
|
|
502
|
-
n(s(k), {
|
|
503
|
-
outline: d.value !== 2,
|
|
504
|
-
color: r.color,
|
|
505
|
-
style: P(
|
|
506
|
-
d.value === 2 ? { backgroundColor: r.color } : {}
|
|
507
|
-
),
|
|
508
|
-
"text-color": d.value === 2 ? "white" : r.color,
|
|
509
|
-
label: "2",
|
|
510
|
-
onClick: l[4] || (l[4] = (t) => $(2)),
|
|
511
|
-
class: "quantity-btn",
|
|
512
|
-
size: "xl"
|
|
513
|
-
}, null, 8, ["outline", "color", "style", "text-color"])
|
|
514
|
-
])) : _("", !0),
|
|
515
|
-
B.value > 2 ? (a(), i("div", dl, [
|
|
516
|
-
n(s(k), {
|
|
517
|
-
outline: d.value !== "more",
|
|
518
|
-
color: r.color,
|
|
519
|
-
style: P(
|
|
520
|
-
d.value === "more" ? { backgroundColor: r.color } : {}
|
|
521
|
-
),
|
|
522
|
-
"text-color": d.value === "more" ? "white" : r.color,
|
|
523
|
-
label: "Más",
|
|
524
|
-
onClick: l[5] || (l[5] = (t) => $("more")),
|
|
525
|
-
class: "quantity-btn-more",
|
|
526
|
-
size: "lg",
|
|
527
|
-
"no-caps": ""
|
|
528
|
-
}, null, 8, ["outline", "color", "style", "text-color"])
|
|
529
|
-
])) : _("", !0)
|
|
530
|
-
]),
|
|
531
|
-
d.value === "more" ? (a(), i("div", vl, [
|
|
532
|
-
o("div", ml, [
|
|
533
|
-
o("div", pl, [
|
|
534
|
-
n(s(G), {
|
|
535
|
-
modelValue: f.value,
|
|
536
|
-
"onUpdate:modelValue": l[6] || (l[6] = (t) => f.value = t),
|
|
537
|
-
modelModifiers: { number: !0 },
|
|
538
|
-
type: "number",
|
|
539
|
-
label: "Ingresa la cantidad deseada",
|
|
540
|
-
outlined: "",
|
|
541
|
-
rounded: "",
|
|
542
|
-
hint: `Puedes ingresar hasta ${B.value}`
|
|
543
|
-
}, null, 8, ["modelValue", "hint"])
|
|
544
|
-
])
|
|
545
|
-
])
|
|
546
|
-
])) : _("", !0),
|
|
547
|
-
o("div", _l, [
|
|
548
|
-
o("div", yl, [
|
|
549
|
-
n(s(k), {
|
|
550
|
-
flat: "",
|
|
551
|
-
color: r.color,
|
|
552
|
-
label: "Atrás",
|
|
553
|
-
onClick: Z,
|
|
554
|
-
class: "full-width",
|
|
555
|
-
size: "lg",
|
|
556
|
-
"no-caps": ""
|
|
557
|
-
}, null, 8, ["color"])
|
|
558
|
-
]),
|
|
559
|
-
o("div", bl, [
|
|
560
|
-
n(s(k), {
|
|
561
|
-
color: r.color,
|
|
562
|
-
style: P({ backgroundColor: r.color }),
|
|
563
|
-
"text-color": "white",
|
|
564
|
-
label: "Confirmar",
|
|
565
|
-
onClick: Ce,
|
|
566
|
-
disabled: !_e.value,
|
|
567
|
-
class: "full-width",
|
|
568
|
-
size: "lg",
|
|
569
|
-
"no-caps": "",
|
|
570
|
-
unelevated: ""
|
|
571
|
-
}, null, 8, ["color", "style", "disabled"])
|
|
572
|
-
])
|
|
573
|
-
])
|
|
574
|
-
])
|
|
575
|
-
]))
|
|
576
|
-
])) : _("", !0),
|
|
577
|
-
m.value === "internet-recovered" ? (a(), i("div", ql, [
|
|
578
|
-
n(s(ae), {
|
|
579
|
-
style: { width: "100%", "max-width": "400px" },
|
|
580
|
-
modelValue: x.value,
|
|
581
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) => x.value = t),
|
|
582
|
-
options: te,
|
|
583
|
-
label: "Compañía actual",
|
|
584
|
-
outlined: "",
|
|
585
|
-
rounded: "",
|
|
586
|
-
"emit-value": "",
|
|
587
|
-
"map-options": "",
|
|
588
|
-
rules: [(t) => !!t || "La compañía es requerida"]
|
|
589
|
-
}, null, 8, ["modelValue", "rules"])
|
|
590
|
-
])) : _("", !0)
|
|
591
|
-
];
|
|
592
|
-
}),
|
|
593
|
-
_: 1
|
|
594
|
-
}),
|
|
595
|
-
n(s(L), { class: "card-footer" }, {
|
|
596
|
-
default: T(() => [
|
|
597
|
-
X.value > 0 ? (a(), j(Qe, {
|
|
598
|
-
key: 0,
|
|
599
|
-
totalPrice: X.value,
|
|
600
|
-
selectedComplementsData: J.value,
|
|
601
|
-
priceValue: F.value,
|
|
602
|
-
name: ne.value,
|
|
603
|
-
color: e.color
|
|
604
|
-
}, null, 8, ["totalPrice", "selectedComplementsData", "priceValue", "name", "color"])) : _("", !0),
|
|
605
|
-
o("div", {
|
|
606
|
-
class: D(m.value !== "complements" ? "grid-2" : "grid-1")
|
|
607
|
-
}, [
|
|
608
|
-
m.value !== "complements" ? (a(), j(s(k), {
|
|
609
|
-
key: 0,
|
|
610
|
-
outline: "",
|
|
611
|
-
color: r.color,
|
|
612
|
-
label: "Atrás",
|
|
613
|
-
onClick: Z,
|
|
614
|
-
class: "full-width",
|
|
615
|
-
size: "lg",
|
|
616
|
-
"no-caps": ""
|
|
617
|
-
}, null, 8, ["color"])) : _("", !0),
|
|
618
|
-
n(s(k), {
|
|
619
|
-
color: r.color,
|
|
620
|
-
style: P({ backgroundColor: r.color }),
|
|
621
|
-
label: be.value,
|
|
622
|
-
onClick: ke,
|
|
623
|
-
disabled: !ye.value,
|
|
624
|
-
class: "full-width",
|
|
625
|
-
size: "lg",
|
|
626
|
-
"no-caps": "",
|
|
627
|
-
unelevated: ""
|
|
628
|
-
}, null, 8, ["color", "style", "label", "disabled"])
|
|
629
|
-
], 2)
|
|
630
|
-
]),
|
|
631
|
-
_: 1
|
|
632
|
-
})
|
|
633
|
-
]),
|
|
634
|
-
_: 1
|
|
635
|
-
})
|
|
636
|
-
]),
|
|
637
|
-
_: 1
|
|
638
|
-
}, 8, ["modelValue", "maximized"]),
|
|
639
|
-
n(Be, Se(r, {
|
|
640
|
-
onClickContractar: l[10] || (l[10] = (c) => N.value = !0),
|
|
641
|
-
onOnEvent: l[11] || (l[11] = (c) => E("on-event", c))
|
|
642
|
-
}), null, 16)
|
|
643
|
-
], 64));
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
export {
|
|
647
|
-
Al as default
|
|
648
|
-
};
|