flowrix 1.0.1-beta.16 → 1.0.1-beta.160
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/module.d.mts +1 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +126 -155
- package/dist/runtime/components/DynamicComponents/SubscriptionForm.d.vue.ts +3 -0
- package/dist/runtime/components/DynamicComponents/SubscriptionForm.vue +60 -0
- package/dist/runtime/components/DynamicComponents/SubscriptionForm.vue.d.ts +3 -0
- package/dist/runtime/components/DynamicComponents/WebForm.d.vue.ts +7 -0
- package/dist/runtime/components/DynamicComponents/WebForm.vue +115 -0
- package/dist/runtime/components/DynamicComponents/WebForm.vue.d.ts +7 -0
- package/dist/runtime/components/Pages/dynamic.d.vue.ts +7 -0
- package/dist/runtime/components/Pages/dynamic.vue +124 -0
- package/dist/runtime/components/Pages/dynamic.vue.d.ts +7 -0
- package/dist/runtime/components/Pages/index.d.vue.ts +7 -0
- package/dist/runtime/components/Pages/index.vue +214 -0
- package/dist/runtime/components/Pages/index.vue.d.ts +7 -0
- package/dist/runtime/components/Product/AddToCart.d.vue.ts +15 -0
- package/dist/runtime/components/Product/AddToCart.vue +176 -0
- package/dist/runtime/components/Product/AddToCart.vue.d.ts +15 -0
- package/dist/runtime/components/Product/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/Product/AddtoCartSample.vue +110 -0
- package/dist/runtime/components/Product/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/Product/Badges.d.vue.ts +13 -0
- package/dist/runtime/components/Product/Badges.vue +84 -0
- package/dist/runtime/components/Product/Badges.vue.d.ts +13 -0
- package/dist/runtime/components/Product/Description.d.vue.ts +9 -0
- package/dist/runtime/components/Product/Description.vue +96 -0
- package/dist/runtime/components/Product/Description.vue.d.ts +9 -0
- package/dist/runtime/components/Product/Dynamic.d.vue.ts +9 -0
- package/dist/runtime/components/Product/Dynamic.vue +136 -0
- package/dist/runtime/components/Product/Dynamic.vue.d.ts +9 -0
- package/dist/runtime/components/Product/Gallery.d.vue.ts +11 -0
- package/dist/runtime/components/Product/Gallery.vue +133 -0
- package/dist/runtime/components/Product/Gallery.vue.d.ts +11 -0
- package/dist/runtime/components/Product/PopUpCart.d.vue.ts +11 -0
- package/dist/runtime/components/Product/PopUpCart.vue +155 -0
- package/dist/runtime/components/Product/PopUpCart.vue.d.ts +11 -0
- package/dist/runtime/components/Product/ProductInfo.d.vue.ts +7 -0
- package/dist/runtime/components/Product/ProductInfo.vue +105 -0
- package/dist/runtime/components/Product/ProductInfo.vue.d.ts +7 -0
- package/dist/runtime/components/Product/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/Product/RequiredPopUp.vue +57 -0
- package/dist/runtime/components/Product/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/Product/bundleProduct/Bundle.d.vue.ts +13 -0
- package/dist/runtime/components/Product/bundleProduct/Bundle.vue +35 -0
- package/dist/runtime/components/Product/bundleProduct/Bundle.vue.d.ts +13 -0
- package/dist/runtime/components/Product/bundleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/Product/bundleProduct/index.vue +32 -0
- package/dist/runtime/components/Product/bundleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/Product/customProduct/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/Product/customProduct/AddtoCartSample.vue +101 -0
- package/dist/runtime/components/Product/customProduct/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/Product/customProduct/Attributes.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/Attributes.vue +12 -0
- package/dist/runtime/components/Product/customProduct/Attributes.vue.d.ts +9 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/drop-down.d.vue.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/drop-down.vue +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/drop-down.vue.d.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-collection.d.vue.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-collection.vue +253 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-collection.vue.d.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-colors.d.vue.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-colors.vue +253 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-colors.vue.d.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-values.d.vue.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-values.vue +214 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/multi-values.vue.d.ts +3 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/style.d.vue.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/style.vue +9 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/style.vue.d.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/swatch.d.vue.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/swatch.vue +9 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/AttributeType/swatch.vue.d.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/PopupContent/Popup.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/PopupContent/Popup.vue +133 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/PopupContent/Popup.vue.d.ts +9 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/SingleAttribute.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/SingleAttribute.vue +35 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/SingleAttribute.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlide.d.vue.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlide.vue +134 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlide.vue.d.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.d.vue.ts +15 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue +138 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue.d.ts +15 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/button.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/button.vue +149 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/button.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdown.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdown.vue +82 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdown.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdownWithIcon.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue +108 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/height.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/height.vue +104 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/height.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBox.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBox.vue +87 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBox.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue +219 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/message.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/message.vue +36 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/message.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/number.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/number.vue +45 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/number.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/orderSample/button.d.vue.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/orderSample/button.vue +48 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/orderSample/button.vue.d.ts +13 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/radio.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/radio.vue +154 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/radio.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/slider.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/slider.vue +111 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/slider.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue +269 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subheight.vue +63 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subwidth.vue +63 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/swatch.vue +220 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/swatch.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/text.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/text.vue +47 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/text.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/width.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/width.vue +91 -0
- package/dist/runtime/components/Product/customProduct/AttributesComponents/Styles/width.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/ConfirmPopup.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/ConfirmPopup.vue +25 -0
- package/dist/runtime/components/Product/customProduct/ConfirmPopup.vue.d.ts +9 -0
- package/dist/runtime/components/Product/customProduct/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/RequiredPopUp.vue +49 -0
- package/dist/runtime/components/Product/customProduct/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/Product/customProduct/Reviews.d.vue.ts +7 -0
- package/dist/runtime/components/Product/customProduct/Reviews.vue +25 -0
- package/dist/runtime/components/Product/customProduct/Reviews.vue.d.ts +7 -0
- package/dist/runtime/components/Product/customProduct/SingleStep.d.vue.ts +11 -0
- package/dist/runtime/components/Product/customProduct/SingleStep.vue +11 -0
- package/dist/runtime/components/Product/customProduct/SingleStep.vue.d.ts +11 -0
- package/dist/runtime/components/Product/customProduct/Steps.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/Steps.vue +221 -0
- package/dist/runtime/components/Product/customProduct/Steps.vue.d.ts +9 -0
- package/dist/runtime/components/Product/customProduct/index.d.vue.ts +9 -0
- package/dist/runtime/components/Product/customProduct/index.vue +272 -0
- package/dist/runtime/components/Product/customProduct/index.vue.d.ts +9 -0
- package/dist/runtime/components/Product/index.d.vue.ts +8 -0
- package/dist/runtime/components/Product/index.vue +88 -0
- package/dist/runtime/components/Product/index.vue.d.ts +8 -0
- package/dist/runtime/components/Product/sampleProduct/ProductVariation.d.vue.ts +5 -0
- package/dist/runtime/components/Product/sampleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/Product/sampleProduct/ProductVariation.vue.d.ts +5 -0
- package/dist/runtime/components/Product/sampleProduct/SampleDetails.d.vue.ts +7 -0
- package/dist/runtime/components/Product/sampleProduct/SampleDetails.vue +74 -0
- package/dist/runtime/components/Product/sampleProduct/SampleDetails.vue.d.ts +7 -0
- package/dist/runtime/components/Product/sampleProduct/SampleFeatures.d.vue.ts +9 -0
- package/dist/runtime/components/Product/sampleProduct/SampleFeatures.vue +63 -0
- package/dist/runtime/components/Product/sampleProduct/SampleFeatures.vue.d.ts +9 -0
- package/dist/runtime/components/Product/sampleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/Product/sampleProduct/index.vue +64 -0
- package/dist/runtime/components/Product/sampleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/Product/simpleProduct/ProductVariation.d.vue.ts +5 -0
- package/dist/runtime/components/Product/simpleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/Product/simpleProduct/ProductVariation.vue.d.ts +5 -0
- package/dist/runtime/components/Product/simpleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/Product/simpleProduct/index.vue +34 -0
- package/dist/runtime/components/Product/simpleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/SampleProductCard.d.vue.ts +13 -0
- package/dist/runtime/components/SampleProductCard.vue +362 -0
- package/dist/runtime/components/SampleProductCard.vue.d.ts +13 -0
- package/dist/runtime/components/Types/brand/index.d.vue.ts +6 -0
- package/dist/runtime/components/Types/brand/index.vue +12 -0
- package/dist/runtime/components/Types/brand/index.vue.d.ts +6 -0
- package/dist/runtime/components/Types/category/index.d.vue.ts +6 -0
- package/dist/runtime/components/Types/category/index.vue +50 -0
- package/dist/runtime/components/Types/category/index.vue.d.ts +6 -0
- package/dist/runtime/components/Types/dynamic.d.vue.ts +7 -0
- package/dist/runtime/components/Types/dynamic.vue +160 -0
- package/dist/runtime/components/Types/dynamic.vue.d.ts +7 -0
- package/dist/runtime/components/Types/page/index.d.vue.ts +7 -0
- package/dist/runtime/components/Types/page/index.vue +47 -0
- package/dist/runtime/components/Types/page/index.vue.d.ts +7 -0
- package/dist/runtime/components/Types/post/index.d.vue.ts +6 -0
- package/dist/runtime/components/Types/post/index.vue +51 -0
- package/dist/runtime/components/Types/post/index.vue.d.ts +6 -0
- package/dist/runtime/components/Types/product/index.d.vue.ts +6 -0
- package/dist/runtime/components/Types/product/index.vue +10 -0
- package/dist/runtime/components/Types/product/index.vue.d.ts +6 -0
- package/dist/runtime/components/WishList/dropdown.d.vue.ts +9 -0
- package/dist/runtime/components/WishList/dropdown.vue +417 -0
- package/dist/runtime/components/WishList/dropdown.vue.d.ts +9 -0
- package/dist/runtime/components/WishList/modal.d.vue.ts +13 -0
- package/dist/runtime/components/WishList/modal.vue +229 -0
- package/dist/runtime/components/WishList/modal.vue.d.ts +13 -0
- package/dist/runtime/composables/Blog/useBlogIndex.d.ts +2 -5
- package/dist/runtime/composables/Blog/useBlogSingle.js +6 -9
- package/dist/runtime/composables/Brand/brand.d.ts +1 -1
- package/dist/runtime/composables/Brand/brand.js +30 -2
- package/dist/runtime/composables/Cart/useCart.d.ts +40 -0
- package/dist/runtime/composables/Cart/useCart.js +10 -0
- package/dist/runtime/composables/Cart/useCartComponent.d.ts +1 -0
- package/dist/runtime/composables/Cart/useCartComponent.js +11 -0
- package/dist/runtime/composables/Cart/useCartDetail.d.ts +15 -5
- package/dist/runtime/composables/Cart/useCartDetail.js +3 -0
- package/dist/runtime/composables/Category/useCategoryIndex.d.ts +25 -32
- package/dist/runtime/composables/Category/useCategoryIndex.js +63 -44
- package/dist/runtime/composables/Checkout/PaymentMethods/useDirectDeposit.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.js +16 -6
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaymentMethods.js +3 -14
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaypal.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.d.ts +2 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useZippay.js +8 -0
- package/dist/runtime/composables/Checkout/useCheckout.d.ts +90 -73
- package/dist/runtime/composables/Checkout/useCheckout.js +117 -53
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.d.ts +43 -0
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.js +84 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.d.ts +55 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.js +196 -0
- package/dist/runtime/composables/Checkout/useCreateAccount.d.ts +7 -7
- package/dist/runtime/composables/Checkout/useCreateAccount.js +3 -1
- package/dist/runtime/composables/Checkout/useDeliveryMethod.d.ts +2 -2
- package/dist/runtime/composables/Checkout/useDeliveryMethod.js +8 -27
- package/dist/runtime/composables/Customer/useBillingAddress.d.ts +115 -0
- package/dist/runtime/composables/Customer/useBillingAddress.js +95 -0
- package/dist/runtime/composables/Customer/useLogin.d.ts +9 -0
- package/dist/runtime/composables/Customer/useLogin.js +34 -0
- package/dist/runtime/composables/Customer/useOrders.d.ts +29 -0
- package/dist/runtime/composables/Customer/useOrders.js +56 -0
- package/dist/runtime/composables/Customer/usePasswordReset.d.ts +26 -0
- package/dist/runtime/composables/Customer/usePasswordReset.js +258 -0
- package/dist/runtime/composables/Customer/useProfile.d.ts +75 -0
- package/dist/runtime/composables/Customer/useProfile.js +106 -0
- package/dist/runtime/composables/Customer/useQuotations.d.ts +32 -0
- package/dist/runtime/composables/Customer/useQuotations.js +40 -0
- package/dist/runtime/composables/Customer/useRegister.d.ts +121 -13
- package/dist/runtime/composables/Customer/useRegister.js +310 -35
- package/dist/runtime/composables/Customer/useShippingAddress.d.ts +124 -0
- package/dist/runtime/composables/Customer/useShippingAddress.js +146 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.d.ts +21 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.js +130 -0
- package/dist/runtime/composables/Customer/useUserCards.d.ts +22 -0
- package/dist/runtime/composables/Customer/useUserCards.js +65 -0
- package/dist/runtime/composables/{useWishlists.d.ts → Customer/useWishlists.d.ts} +7 -20
- package/dist/runtime/composables/{useWishlists.js → Customer/useWishlists.js} +21 -30
- package/dist/runtime/composables/Extras/useCountry.d.ts +11 -6
- package/dist/runtime/composables/Extras/useCountry.js +5 -4
- package/dist/runtime/composables/Footer/useFooter.d.ts +4 -4
- package/dist/runtime/composables/Footer/useFooter.js +12 -8
- package/dist/runtime/composables/Header/useHeader.d.ts +6 -20
- package/dist/runtime/composables/Header/useHeader.js +3 -2
- package/dist/runtime/composables/Product/CustomProduct/useAttributes.js +4 -0
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.d.ts +4 -0
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +9 -16
- package/dist/runtime/composables/Product/CustomProduct/useSteps.d.ts +1 -1
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.d.ts +3 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.js +20 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.d.ts +70 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.js +63 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.d.ts +74 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.js +107 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.d.ts +159 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.js +2079 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.d.ts +4 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.js +27 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.d.ts +68 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.js +21 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.d.ts +67 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.js +15 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.d.ts +88 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.js +72 -0
- package/dist/runtime/composables/Product/useProductCard.d.ts +90 -9
- package/dist/runtime/composables/Product/useProductCard.js +257 -55
- package/dist/runtime/composables/Product/useProductComponent.d.ts +1 -3
- package/dist/runtime/composables/Product/useProductComponent.js +105 -1
- package/dist/runtime/composables/Product/useProductSlug.d.ts +8 -1
- package/dist/runtime/composables/Product/useQuickView.d.ts +8 -0
- package/dist/runtime/composables/Product/useQuickView.js +26 -0
- package/dist/runtime/composables/Product/useService.d.ts +31 -15
- package/dist/runtime/composables/Product/useService.js +138 -49
- package/dist/runtime/composables/Samples/useSamples.d.ts +5 -6
- package/dist/runtime/composables/Samples/useSamples.js +19 -15
- package/dist/runtime/composables/SideBar/Filters/useFilters.d.ts +2 -2
- package/dist/runtime/composables/SideBar/Filters/useSorting.d.ts +2 -2
- package/dist/runtime/composables/index.d.ts +28 -13
- package/dist/runtime/composables/index.js +28 -13
- package/dist/runtime/composables/useAddresses.js +29 -8
- package/dist/runtime/composables/useApp.d.ts +1 -0
- package/dist/runtime/composables/useApp.js +87 -0
- package/dist/runtime/composables/useCards.js +2 -3
- package/dist/runtime/composables/useClientApi.d.ts +8 -8
- package/dist/runtime/composables/useClientApi.js +74 -30
- package/dist/runtime/composables/useCookieConsent.d.ts +48 -0
- package/dist/runtime/composables/useCookieConsent.js +185 -0
- package/dist/runtime/composables/useDataLayer.js +1 -1
- package/dist/runtime/composables/useDotDigital.d.ts +3 -0
- package/dist/runtime/composables/useDotDigital.js +122 -0
- package/dist/runtime/composables/useLocation.d.ts +49 -19
- package/dist/runtime/composables/useLocation.js +332 -25
- package/dist/runtime/composables/useMetaLayer.js +13 -13
- package/dist/runtime/composables/usePriceCalculation.d.ts +33 -0
- package/dist/runtime/composables/usePriceCalculation.js +107 -0
- package/dist/runtime/composables/useQuotationCheckout.d.ts +78 -0
- package/dist/runtime/composables/useQuotationCheckout.js +137 -0
- package/dist/runtime/composables/useSubscriptions.d.ts +17 -10
- package/dist/runtime/composables/useSubscriptions.js +68 -33
- package/dist/runtime/composables/useTikTokDatalayer.js +7 -7
- package/dist/runtime/composables/useWebforms.d.ts +38 -9
- package/dist/runtime/composables/useWebforms.js +93 -60
- package/dist/runtime/middleware/flowrix.d.ts +5 -4
- package/dist/runtime/middleware/flowrix.js +41 -23
- package/dist/runtime/middleware/flowrixs3.d.ts +3 -0
- package/dist/runtime/middleware/flowrixs3.js +65 -0
- package/dist/runtime/pages/404.d.vue.ts +3 -0
- package/dist/runtime/pages/404.vue +6 -0
- package/dist/runtime/pages/404.vue.d.ts +3 -0
- package/dist/runtime/pages/flowrix-default.d.vue.ts +3 -0
- package/dist/runtime/pages/flowrix-default.vue +112 -0
- package/dist/runtime/pages/flowrix-default.vue.d.ts +3 -0
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugins/bootstrap.client.d.ts +3 -0
- package/dist/runtime/plugins/bootstrap.client.js +4 -0
- package/dist/runtime/plugins/full-reload.client.d.ts +2 -0
- package/dist/runtime/plugins/full-reload.client.js +28 -0
- package/dist/runtime/plugins/router.d.ts +2 -0
- package/dist/runtime/plugins/router.js +11 -0
- package/dist/runtime/server/api/albums.js +15 -14
- package/dist/runtime/server/api/auth/login.d.ts +0 -11
- package/dist/runtime/server/api/auth/login.js +0 -69
- package/dist/runtime/server/api/banners.d.ts +0 -1
- package/dist/runtime/server/api/banners.js +15 -37
- package/dist/runtime/server/api/brand/[...slug].js +26 -0
- package/dist/runtime/server/api/brand/index.js +20 -0
- package/dist/runtime/server/api/cache/[...slug].delete.d.ts +4 -1
- package/dist/runtime/server/api/cache/[...slug].delete.js +3 -7
- package/dist/runtime/server/api/cache/clean.get.d.ts +5 -0
- package/dist/runtime/server/api/cache/clean.get.js +3 -7
- package/dist/runtime/server/api/cart/[slug]/add.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/add.js +0 -21
- package/dist/runtime/server/api/cart/[slug]/update.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/update.js +0 -21
- package/dist/runtime/server/api/cart/related.d.ts +0 -0
- package/dist/runtime/server/api/cart/related.js +0 -0
- package/dist/runtime/server/api/cart/remove.d.ts +0 -2
- package/dist/runtime/server/api/cart/remove.js +0 -21
- package/dist/runtime/server/api/catalog/brands.js +20 -0
- package/dist/runtime/server/api/catalog/categories.d.ts +0 -1
- package/dist/runtime/server/api/catalog/categories.js +16 -39
- package/dist/runtime/server/api/catalog/categoriesall.js +20 -0
- package/dist/runtime/server/api/catalog/featured.d.ts +0 -1
- package/dist/runtime/server/api/catalog/featured.js +16 -37
- package/dist/runtime/server/api/catalog/posts.js +20 -0
- package/dist/runtime/server/api/catalog/samples.d.ts +0 -1
- package/dist/runtime/server/api/catalog/samples.js +16 -40
- package/dist/runtime/server/api/catalog/search.d.ts +0 -1
- package/dist/runtime/server/api/catalog/search.js +16 -40
- package/dist/runtime/server/api/category/[...slug].d.ts +1 -2
- package/dist/runtime/server/api/category/[...slug].js +37 -41
- package/dist/runtime/server/api/checkout/applyCoupon.d.ts +0 -2
- package/dist/runtime/server/api/checkout/applyCoupon.js +0 -20
- package/dist/runtime/server/api/checkout/configs.d.ts +0 -2
- package/dist/runtime/server/api/checkout/configs.js +0 -20
- package/dist/runtime/server/api/checkout/countries.d.ts +0 -2
- package/dist/runtime/server/api/checkout/countries.js +0 -17
- package/dist/runtime/server/api/checkout/paymentmethod.d.ts +0 -2
- package/dist/runtime/server/api/checkout/paymentmethod.js +0 -20
- package/dist/runtime/server/api/checkout/quotation/guest/customer.d.ts +0 -0
- package/dist/runtime/server/api/checkout/quotation/guest/customer.js +0 -0
- package/dist/runtime/server/api/{blog/[slug].d.ts → checkvariables.d.ts} +1 -1
- package/dist/runtime/server/api/checkvariables.js +36 -0
- package/dist/runtime/server/api/cmspost/[...slug].js +23 -0
- package/dist/runtime/server/api/cmspost/all.d.ts +3 -0
- package/dist/runtime/server/api/cmspost/all.js +51 -0
- package/dist/runtime/server/api/company/profile.js +15 -14
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.d.ts +0 -3
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.js +0 -19
- package/dist/runtime/server/api/countries.js +19 -0
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +0 -46
- package/dist/runtime/server/api/featured.d.ts +0 -0
- package/dist/runtime/server/api/featured.js +0 -0
- package/dist/runtime/server/api/generate/robots.get.d.ts +2 -0
- package/dist/runtime/server/api/generate/robots.get.js +18 -0
- package/dist/runtime/server/api/generate/sitemap.get.js +28 -0
- package/dist/runtime/server/api/global/[...slug].js +20 -0
- package/dist/runtime/server/api/location.d.ts +0 -2
- package/dist/runtime/server/api/location.js +0 -13
- package/dist/runtime/server/api/nav/[id]/links.js +21 -15
- package/dist/runtime/server/api/page/[...slug].js +23 -0
- package/dist/runtime/server/api/permalink/[...slug].get.js +31 -0
- package/dist/runtime/server/api/product/[...slug].d.ts +0 -1
- package/dist/runtime/server/api/product/[...slug].js +18 -37
- package/dist/runtime/server/api/quickview/[slug].js +22 -0
- package/dist/runtime/server/api/reviews.d.ts +2 -0
- package/dist/runtime/server/api/reviews.js +22 -0
- package/dist/runtime/server/api/reviews3.d.ts +2 -0
- package/dist/runtime/server/api/reviews3.js +19 -0
- package/dist/runtime/server/api/samples.d.ts +2 -0
- package/dist/runtime/server/api/samples.js +20 -0
- package/dist/runtime/server/api/search.d.ts +2 -0
- package/dist/runtime/server/api/search.js +20 -0
- package/dist/runtime/server/api/service/[slug].d.ts +0 -1
- package/dist/runtime/server/api/service/[slug].js +15 -40
- package/dist/runtime/server/api/service/availability.js +14 -12
- package/dist/runtime/server/api/service/getall.d.ts +2 -0
- package/dist/runtime/server/api/service/getall.js +19 -0
- package/dist/runtime/server/api/shop.d.ts +2 -0
- package/dist/runtime/server/api/shop.js +20 -0
- package/dist/runtime/server/api/subscribe.d.ts +0 -2
- package/dist/runtime/server/api/subscribe.js +0 -16
- package/dist/runtime/server/api/webform.d.ts +0 -0
- package/dist/runtime/server/api/webform.js +0 -0
- package/dist/runtime/server/middleware/powertools.d.ts +9 -0
- package/dist/runtime/server/middleware/powertools.js +30 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/stores/Booking.js +23 -7
- package/dist/runtime/stores/Cart.d.ts +12 -0
- package/dist/runtime/stores/Cart.js +87 -17
- package/dist/runtime/stores/Checkout.d.ts +9 -15
- package/dist/runtime/stores/Checkout.js +57 -50
- package/dist/runtime/stores/NavMenu.js +2 -4
- package/dist/runtime/stores/Search.d.ts +1 -1
- package/dist/runtime/stores/Search.js +9 -3
- package/dist/runtime/stores/Services.d.ts +5 -0
- package/dist/runtime/stores/Services.js +59 -8
- package/dist/runtime/stores/auth.d.ts +30 -6
- package/dist/runtime/stores/auth.js +380 -8
- package/dist/runtime/stores/countries.d.ts +1 -3
- package/dist/runtime/stores/countries.js +4 -8
- package/dist/runtime/stores/index.d.ts +0 -1
- package/dist/runtime/stores/index.js +0 -1
- package/dist/runtime/stores/locations.d.ts +1 -5
- package/dist/runtime/stores/locations.js +8 -5
- package/dist/runtime/stores/product/README.md +6 -6
- package/dist/runtime/stores/product/slug.d.ts +1 -17
- package/dist/runtime/stores/product.js +9 -3
- package/dist/runtime/stores/promotions.d.ts +51 -0
- package/dist/runtime/stores/promotions.js +65 -0
- package/dist/runtime/stores/useCompanyProfile.js +5 -2
- package/dist/runtime/stores/webforms.d.ts +24 -9
- package/dist/runtime/stores/webforms.js +105 -5
- package/dist/runtime/stores/wishlists.d.ts +125 -8
- package/dist/runtime/stores/wishlists.js +212 -20
- package/dist/runtime/utils/htmlCache.d.ts +2 -2
- package/dist/runtime/utils/htmlCache.js +23 -13
- package/dist/types.d.mts +6 -2
- package/package.json +27 -7
- package/dist/runtime/composables/Checkout/useBillingAddress.d.ts +0 -19
- package/dist/runtime/composables/Checkout/useBillingAddress.js +0 -82
- package/dist/runtime/composables/Checkout/useShippingAddress.d.ts +0 -9
- package/dist/runtime/composables/Checkout/useShippingAddress.js +0 -121
- package/dist/runtime/composables/useAuth.d.ts +0 -45
- package/dist/runtime/composables/useAuth.js +0 -180
- package/dist/runtime/composables/useCountries.d.ts +0 -12
- package/dist/runtime/composables/useCountries.js +0 -50
- package/dist/runtime/composables/useLocations.d.ts +0 -12
- package/dist/runtime/composables/useLocations.js +0 -53
- package/dist/runtime/composables/useOrders.d.ts +0 -21
- package/dist/runtime/composables/useOrders.js +0 -82
- package/dist/runtime/composables/useQuotations.d.ts +0 -14
- package/dist/runtime/composables/useQuotations.js +0 -50
- package/dist/runtime/server/api/auth/forgot.d.ts +0 -5
- package/dist/runtime/server/api/auth/forgot.js +0 -44
- package/dist/runtime/server/api/auth/logout.d.ts +0 -5
- package/dist/runtime/server/api/auth/logout.js +0 -23
- package/dist/runtime/server/api/auth/register.js +0 -51
- package/dist/runtime/server/api/auth/session.get.js +0 -46
- package/dist/runtime/server/api/auth/user/reset-password.d.ts +0 -5
- package/dist/runtime/server/api/auth/user/reset-password.js +0 -40
- package/dist/runtime/server/api/auth/user/session.js +0 -43
- package/dist/runtime/server/api/auth/user/verify-token.d.ts +0 -6
- package/dist/runtime/server/api/auth/user/verify-token.js +0 -50
- package/dist/runtime/server/api/blog/[slug].js +0 -51
- package/dist/runtime/server/api/blog/blog.d.ts +0 -3
- package/dist/runtime/server/api/blog/blog.js +0 -17
- package/dist/runtime/server/api/brand/[slug].d.ts +0 -3
- package/dist/runtime/server/api/brand/[slug].js +0 -58
- package/dist/runtime/server/api/cart/service/[slug]/add.js +0 -16
- package/dist/runtime/server/api/contact-center/webforms/create.js +0 -16
- package/dist/runtime/server/api/customer/address/add.d.ts +0 -14
- package/dist/runtime/server/api/customer/address/add.js +0 -33
- package/dist/runtime/server/api/customer/address/delete.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/delete.js +0 -37
- package/dist/runtime/server/api/customer/address/setshipping.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/setshipping.js +0 -41
- package/dist/runtime/server/api/customer/address/update.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/update.js +0 -42
- package/dist/runtime/server/api/customer/cards/delete.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/delete.js +0 -23
- package/dist/runtime/server/api/customer/cards/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/get.js +0 -17
- package/dist/runtime/server/api/customer/change-password.d.ts +0 -14
- package/dist/runtime/server/api/customer/change-password.js +0 -34
- package/dist/runtime/server/api/customer/checkout.js +0 -20
- package/dist/runtime/server/api/customer/orders.d.ts +0 -2
- package/dist/runtime/server/api/customer/orders.js +0 -17
- package/dist/runtime/server/api/customer/profile/update.d.ts +0 -14
- package/dist/runtime/server/api/customer/profile/update.js +0 -34
- package/dist/runtime/server/api/customer/quotations.d.ts +0 -2
- package/dist/runtime/server/api/customer/quotations.js +0 -17
- package/dist/runtime/server/api/customer/search.js +0 -15
- package/dist/runtime/server/api/customer/tax-invoice.d.ts +0 -8
- package/dist/runtime/server/api/customer/tax-invoice.js +0 -36
- package/dist/runtime/server/api/customer/wishlist/add.js +0 -30
- package/dist/runtime/server/api/customer/wishlist/createWishList.js +0 -29
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +0 -30
- package/dist/runtime/server/api/customer/wishlist/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/get.js +0 -17
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +0 -21
- package/dist/runtime/server/api/customer/wishlist/updateWishList.js +0 -30
- package/dist/runtime/server/api/page/[slug].d.ts +0 -3
- package/dist/runtime/server/api/page/[slug].js +0 -51
- package/dist/runtime/server/api/v2/[...slug].d.ts +0 -3
- package/dist/runtime/server/api/v2/[...slug].js +0 -9
- package/dist/runtime/stores/IpLocation.d.ts +0 -18
- package/dist/runtime/stores/IpLocation.js +0 -29
- package/dist/runtime/utils/api.d.ts +0 -13
- package/dist/runtime/utils/api.js +0 -102
- /package/dist/runtime/server/api/{auth/register.d.ts → brand/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{auth/session.get.d.ts → brand/index.d.ts} +0 -0
- /package/dist/runtime/server/api/{auth/user/session.d.ts → catalog/brands.d.ts} +0 -0
- /package/dist/runtime/server/api/{cart/service/[slug]/add.d.ts → catalog/categoriesall.d.ts} +0 -0
- /package/dist/runtime/server/api/{contact-center/webforms/create.d.ts → catalog/posts.d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/checkout.d.ts → cmspost/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/search.d.ts → countries.d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/wishlist/add.d.ts → generate/sitemap.get.d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/wishlist/createWishList.d.ts → global/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/wishlist/deleteWishList.d.ts → page/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/wishlist/getWishListItems.d.ts → permalink/[...slug].get.d.ts} +0 -0
- /package/dist/runtime/server/api/{customer/wishlist/updateWishList.d.ts → quickview/[slug].d.ts} +0 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const isModalOpen = ref(false);
|
|
3
|
+
const openCustomizeModal = () => isModalOpen.value = true;
|
|
4
|
+
const closeModal = () => isModalOpen.value = false;
|
|
5
|
+
const Wishlist = defineAsyncComponent(() => import("./WishList/modal.vue"));
|
|
6
|
+
const cartStore = useCartStore();
|
|
7
|
+
const openWishlistModal = ref(false);
|
|
8
|
+
const wishlistModalRef = ref(null);
|
|
9
|
+
const activeFlowBiteId = useState("activeFlowBiteId", () => null);
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
swatch: Array,
|
|
12
|
+
otherColor: Boolean,
|
|
13
|
+
from: String
|
|
14
|
+
});
|
|
15
|
+
const isInCart = ref(false);
|
|
16
|
+
watchEffect(() => {
|
|
17
|
+
if (cartStore.cart.items) {
|
|
18
|
+
isInCart.value = Object.values(cartStore.cart.items).some(
|
|
19
|
+
(item) => item.slug === props.swatch.slug
|
|
20
|
+
);
|
|
21
|
+
} else {
|
|
22
|
+
isInCart.value = false;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const addToCart = async (product, qty) => {
|
|
26
|
+
await cartStore.addToCart(product, qty, product);
|
|
27
|
+
};
|
|
28
|
+
const removeProduct = async (productId) => {
|
|
29
|
+
if (cartStore.cart.items) {
|
|
30
|
+
const productToRemove = Object.values(cartStore.cart.items).find(
|
|
31
|
+
(item) => item.slug === productId
|
|
32
|
+
);
|
|
33
|
+
if (productToRemove) {
|
|
34
|
+
await cartStore.removeFromCart(productToRemove.rowId, productToRemove);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const toggleCart = async () => {
|
|
39
|
+
if (isInCart.value) {
|
|
40
|
+
await removeProduct(props.swatch.slug);
|
|
41
|
+
} else {
|
|
42
|
+
await addToCart(props.swatch, 1);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const toggleFlowBite = () => {
|
|
46
|
+
if (activeFlowBiteId.value === props.swatch.slug) {
|
|
47
|
+
activeFlowBiteId.value = null;
|
|
48
|
+
} else {
|
|
49
|
+
activeFlowBiteId.value = props.swatch.slug;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const isFlowBiteOpen = computed(() => {
|
|
53
|
+
return activeFlowBiteId.value === props.swatch.slug;
|
|
54
|
+
});
|
|
55
|
+
const handleClickOutside = (event) => {
|
|
56
|
+
const target = event.target;
|
|
57
|
+
if (!target.closest(".flow-bite") && !target.closest(".flow-bite-box")) {
|
|
58
|
+
activeFlowBiteId.value = null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
onMounted(() => {
|
|
62
|
+
document.addEventListener("click", handleClickOutside);
|
|
63
|
+
});
|
|
64
|
+
onUnmounted(() => {
|
|
65
|
+
document.removeEventListener("click", handleClickOutside);
|
|
66
|
+
});
|
|
67
|
+
const swatchimagesSrcset = ((swatchImage) => {
|
|
68
|
+
var swatchImage = swatchImage;
|
|
69
|
+
let swatchImage150 = swatchImage?.replace(/.webp/gi, "150.webp");
|
|
70
|
+
let swatchImage320 = swatchImage?.replace(/.webp/gi, "320.webp");
|
|
71
|
+
let swatchImage640 = swatchImage?.replace(/.webp/gi, "640.webp");
|
|
72
|
+
let swatchImage1024 = swatchImage?.replace(/.webp/gi, "1024.webp");
|
|
73
|
+
return swatchImage640;
|
|
74
|
+
});
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<div class="card shadow-sm position-relative">
|
|
79
|
+
<div class="flow-bite" @click="toggleFlowBite">
|
|
80
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="flow-bite-icon"
|
|
81
|
+
:class="{ 'rotated': isFlowBiteOpen }">
|
|
82
|
+
<path fill="none" stroke="#333333" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
|
83
|
+
d="M9 9L4 4m0 0v4m0-4h4m7 5l5-5m0 0v4m0-4h-4M9 15l-5 5m0 0v-4m0 4h4m7-5l5 5m0 0v-4m0 4h-4" />
|
|
84
|
+
</svg>
|
|
85
|
+
<Teleport to="body">
|
|
86
|
+
<transition name="flow-bite-fade" appear>
|
|
87
|
+
<div v-if="isFlowBiteOpen" class="flow-bite-box">
|
|
88
|
+
<div class="position-absolute end-0 bg-white p-1 rounded-1 me-2 mt-2 cursor-pointer"
|
|
89
|
+
@click.stop="activeFlowBiteId = null">
|
|
90
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
91
|
+
<path fill="#333333"
|
|
92
|
+
d="M16.95 8.464a1 1 0 0 0-1.414-1.414L12 10.586L8.464 7.05A1 1 0 1 0 7.05 8.464L10.586 12L7.05 15.536a1 1 0 1 0 1.414 1.414L12 13.414l3.536 3.536a1 1 0 1 0 1.414-1.414L13.414 12z" />
|
|
93
|
+
</svg>
|
|
94
|
+
</div>
|
|
95
|
+
<img :src="swatchimagesSrcset(swatch.image)" :alt="swatch.name" class="swatch-image mb-2">
|
|
96
|
+
<div class="swatch-name mb-2 fw-semibold ms-2">{{ swatch.name }}</div>
|
|
97
|
+
</div>
|
|
98
|
+
</transition>
|
|
99
|
+
</Teleport>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<img :src="swatchimagesSrcset(swatch.image)" :alt="swatch.name" class="card-img-top">
|
|
103
|
+
|
|
104
|
+
<!-- <NuxtLink :to="{ name: 'sample-slug', params: { slug: swatch.slug } }" class="explore-more">
|
|
105
|
+
<button class="btn btn-secondary rounded-5 text-white fw-semibold px-3 py-2">Explore More</button>
|
|
106
|
+
</NuxtLink> -->
|
|
107
|
+
|
|
108
|
+
<div class="eye-icon" @click="openCustomizeModal">
|
|
109
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
110
|
+
<path fill="none" stroke="#333333" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
|
111
|
+
d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0" />
|
|
112
|
+
<path fill="none" stroke="#333333" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
|
113
|
+
d="M2 12c1.6-4.097 5.336-7 10-7s8.4 2.903 10 7c-1.6 4.097-5.336 7-10 7s-8.4-2.903-10-7" />
|
|
114
|
+
</svg>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div class="cart-icon" @click="toggleCart">
|
|
118
|
+
<svg v-if="isInCart" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
119
|
+
<path fill="#333333"
|
|
120
|
+
d="m15.85 13l-2.025-2h1.725l2.75-5H8.825l-2-2H19.95q.575 0 .888.488t.012 1.062l-3.55 6.4q-.275.5-.7.775t-.75.275M7 22q-.825 0-1.412-.587T5 20t.588-1.412T7 18t1.413.588T9 20t-.587 1.413T7 22m13.5 1.3L14.15 17H7.6q-1.1 0-1.675-.937T5.85 14.1l1.05-2.15L5.1 7.9L.7 3.5l1.4-1.4l19.8 19.8zM12.15 15l-2-2H8.6l-1 2zm3.4-4h-1.725zM17 22q-.825 0-1.412-.587T15 20t.588-1.412T17 18t1.413.588T19 20t-.587 1.413T17 22" />
|
|
121
|
+
</svg>
|
|
122
|
+
<svg v-else xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
123
|
+
<g fill="none" stroke="#333333" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
|
|
124
|
+
<path d="M6 6h12l-2 8H8m8 4H8L4 4H2" />
|
|
125
|
+
<circle cx="18" cy="20" r="2" />
|
|
126
|
+
<circle cx="8" cy="20" r="2" />
|
|
127
|
+
</g>
|
|
128
|
+
</svg>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="wishlist-icon" @click="openWishlistModal = !openWishlistModal">
|
|
132
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
133
|
+
<path
|
|
134
|
+
:fill="wishlistModalRef?.wishlists?.some((w) => wishlistModalRef?.isInWishlist(swatch.id, w.id)) ? '#ff4d4f' : '#000'"
|
|
135
|
+
d="m12.67 20.74l-.67.61l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 1.43-.5 2.76-1.38 4.11c-.62-.3-1.31-.5-2.03-.57C19.5 10.8 20 9.65 20 8.5c0-2-1.5-3.5-3.5-3.5c-1.54 0-3.04 1-3.57 2.36h-1.86C10.54 6 9.04 5 7.5 5C5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.89 10.05l.11.1l.04-.04c.08.76.3 1.48.63 2.13M17 14v3h-3v2h3v3h2v-3h3v-2h-3v-3z" />
|
|
136
|
+
</svg>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<Wishlist v-if="openWishlistModal" @closewish="openWishlistModal = false" ref="wishlistModalRef"
|
|
140
|
+
:product="swatch" />
|
|
141
|
+
|
|
142
|
+
<ShopFreeSample v-if="isModalOpen" @close-modal="closeModal" :sampleData="swatch" />
|
|
143
|
+
<div class="card-body text-center" v-if="from == 'sampleSingle'">
|
|
144
|
+
<h5 class="card-title mb-0 text-custom">
|
|
145
|
+
<NuxtLink :to="swatch.slug">{{ swatch.name }}</NuxtLink>
|
|
146
|
+
</h5>
|
|
147
|
+
|
|
148
|
+
</div>
|
|
149
|
+
<div class="card-body text-center" v-else>
|
|
150
|
+
<h5 class="card-title mb-0 text-custom">
|
|
151
|
+
<NuxtLink :to="swatch.url">{{ swatch.name }}</NuxtLink>
|
|
152
|
+
</h5>
|
|
153
|
+
<div><a href="#" class="text-primary fw-semibold" v-if="otherColor">Order a Sample</a></div>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
</div>
|
|
157
|
+
</template>
|
|
158
|
+
|
|
159
|
+
<style scoped>
|
|
160
|
+
.card {
|
|
161
|
+
border-radius: 12px;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
background: #fff;
|
|
164
|
+
transition: box-shadow 0.2s;
|
|
165
|
+
position: relative;
|
|
166
|
+
border: none;
|
|
167
|
+
overflow: visible;
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
height: 100%;
|
|
171
|
+
min-height: 200px;
|
|
172
|
+
}
|
|
173
|
+
.card:hover {
|
|
174
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
175
|
+
}
|
|
176
|
+
.card:hover .explore-more {
|
|
177
|
+
display: block;
|
|
178
|
+
position: absolute;
|
|
179
|
+
bottom: 30%;
|
|
180
|
+
left: 50%;
|
|
181
|
+
transform: translateX(-50%);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.card-body {
|
|
185
|
+
background-color: var(--bs-cream);
|
|
186
|
+
flex-grow: 1;
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
}
|
|
190
|
+
.card-body .card-title a {
|
|
191
|
+
text-decoration: none;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
color: #333;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.card-img-top {
|
|
197
|
+
border-top-left-radius: 12px;
|
|
198
|
+
border-top-right-radius: 12px;
|
|
199
|
+
width: 100%;
|
|
200
|
+
height: 280px;
|
|
201
|
+
object-fit: cover;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.eye-icon {
|
|
206
|
+
background-color: var(--bs-white);
|
|
207
|
+
position: absolute;
|
|
208
|
+
bottom: 20px;
|
|
209
|
+
right: 20px;
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
top: 57px;
|
|
212
|
+
padding: 6px;
|
|
213
|
+
border-radius: 5px;
|
|
214
|
+
border: 1px solid #ddd;
|
|
215
|
+
display: flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
width: 32px;
|
|
219
|
+
height: 32px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.flow-bite {
|
|
223
|
+
background-color: var(--bs-white);
|
|
224
|
+
position: absolute;
|
|
225
|
+
top: 15px;
|
|
226
|
+
right: 20px;
|
|
227
|
+
padding: 6px;
|
|
228
|
+
border-radius: 5px;
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
border: 1px solid #ddd;
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
width: 32px;
|
|
235
|
+
height: 32px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.cart-icon {
|
|
239
|
+
background-color: var(--bs-white);
|
|
240
|
+
position: absolute;
|
|
241
|
+
top: 98px;
|
|
242
|
+
right: 19px;
|
|
243
|
+
padding: 6px;
|
|
244
|
+
border-radius: 5px;
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
border: 1px solid #ddd;
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
width: 32px;
|
|
251
|
+
height: 32px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.explore-more {
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.wishlist-icon {
|
|
259
|
+
background-color: var(--bs-white);
|
|
260
|
+
position: absolute;
|
|
261
|
+
top: 139px;
|
|
262
|
+
right: 19px;
|
|
263
|
+
padding: 6px;
|
|
264
|
+
border-radius: 5px;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
border: 1px solid #ddd;
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
justify-content: center;
|
|
270
|
+
width: 32px;
|
|
271
|
+
height: 32px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.swatch-image {
|
|
275
|
+
border-radius: 8px;
|
|
276
|
+
border: 1px solid #eee;
|
|
277
|
+
width: 600px !important;
|
|
278
|
+
/* Override inline width */
|
|
279
|
+
height: 400px !important;
|
|
280
|
+
/* Match card-img-top height */
|
|
281
|
+
object-fit: cover;
|
|
282
|
+
/* Ensure image scales properly */
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.flow-bite-box {
|
|
286
|
+
position: fixed;
|
|
287
|
+
top: 30%;
|
|
288
|
+
left: 35%;
|
|
289
|
+
background: #fff;
|
|
290
|
+
border: 1px solid #ddd;
|
|
291
|
+
border-radius: 8px;
|
|
292
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
293
|
+
padding: 6px;
|
|
294
|
+
z-index: 10;
|
|
295
|
+
min-width: 160px;
|
|
296
|
+
transform-origin: top right;
|
|
297
|
+
}
|
|
298
|
+
.flow-bite-box .cursor-pointer {
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.flow-bite-icon {
|
|
303
|
+
transition: transform 0.3s ease;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.flow-bite-icon.rotated {
|
|
307
|
+
transform: rotate(45deg);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.flow-bite-fade-enter-active,
|
|
311
|
+
.flow-bite-fade-leave-active {
|
|
312
|
+
transition: all 0.3s ease;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.flow-bite-fade-enter-from {
|
|
316
|
+
opacity: 0;
|
|
317
|
+
transform: scale(0.8) translateY(-10px);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.flow-bite-fade-leave-to {
|
|
321
|
+
opacity: 0;
|
|
322
|
+
transform: scale(0.8) translateY(-10px);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.flow-bite-fade-enter-to,
|
|
326
|
+
.flow-bite-fade-leave-from {
|
|
327
|
+
opacity: 1;
|
|
328
|
+
transform: scale(1) translateY(0);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@media only screen and (max-width: 768px) {
|
|
332
|
+
.card {
|
|
333
|
+
min-height: 350px;
|
|
334
|
+
}
|
|
335
|
+
.card-img-top {
|
|
336
|
+
height: 250px;
|
|
337
|
+
}
|
|
338
|
+
.swatch-image {
|
|
339
|
+
width: 359px !important;
|
|
340
|
+
height: 350px !important;
|
|
341
|
+
}
|
|
342
|
+
.explore-more {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
.flow-bite-box {
|
|
346
|
+
left: 7%;
|
|
347
|
+
top: 13%;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
@media only screen and (max-width: 400px) {
|
|
351
|
+
.flow-bite-box {
|
|
352
|
+
left: 0%;
|
|
353
|
+
top: 20%;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
@media only screen and (min-width: 769px) and (max-width: 1024px) {
|
|
357
|
+
.flow-bite-box {
|
|
358
|
+
left: 10%;
|
|
359
|
+
top: 30%;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
swatch: ArrayConstructor;
|
|
3
|
+
otherColor: BooleanConstructor;
|
|
4
|
+
from: StringConstructor;
|
|
5
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
swatch: ArrayConstructor;
|
|
7
|
+
otherColor: BooleanConstructor;
|
|
8
|
+
from: StringConstructor;
|
|
9
|
+
}>> & Readonly<{}>, {
|
|
10
|
+
otherColor: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
import { useRoute } from "vue-router";
|
|
4
|
+
import { useHead } from "#app";
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
const slug = route.params.slug || "home";
|
|
7
|
+
const DynamicComponent = defineAsyncComponent(() => import("../dynamic.vue"));
|
|
8
|
+
const { data: fetchData, error } = await useFetch(`/api/category/${slug}`, {});
|
|
9
|
+
defineProps({
|
|
10
|
+
data: { type: null, required: true }
|
|
11
|
+
});
|
|
12
|
+
const fullPath = ((fullUrl = "") => {
|
|
13
|
+
if (process.server) {
|
|
14
|
+
const headers = useRequestHeaders();
|
|
15
|
+
const protocol = headers["x-forwarded-proto"] || "http";
|
|
16
|
+
const host = headers.host || "localhost";
|
|
17
|
+
fullUrl = `${protocol}://${host}${route.fullPath}`;
|
|
18
|
+
} else {
|
|
19
|
+
fullUrl = `${window.location.origin}${route.fullPath}`;
|
|
20
|
+
}
|
|
21
|
+
return fullUrl;
|
|
22
|
+
});
|
|
23
|
+
useHead({
|
|
24
|
+
title: fetchData.value?.data?.meta_title || "",
|
|
25
|
+
meta: [
|
|
26
|
+
{
|
|
27
|
+
name: "description",
|
|
28
|
+
content: fetchData.value?.data?.meta_description || ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "og:title",
|
|
32
|
+
content: fetchData.value?.data?.meta_title || ""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "og:description",
|
|
36
|
+
content: fetchData.value?.data?.meta_description || ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "og:url",
|
|
40
|
+
content: fullPath()
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
47
|
+
<div class="post-wraper">
|
|
48
|
+
<DynamicComponent :data="data.content"/>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
|
+
data?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
data?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, onMounted, nextTick, defineAsyncComponent } from "vue";
|
|
3
|
+
import { createApp, h } from "vue";
|
|
4
|
+
import { useRoute } from "vue-router";
|
|
5
|
+
import { useHead } from "#app";
|
|
6
|
+
const route = useRoute();
|
|
7
|
+
const slug = route.params.slug || "";
|
|
8
|
+
const { data } = defineProps(["data"]);
|
|
9
|
+
const grapeContainer = ref(null);
|
|
10
|
+
const WebForm = defineAsyncComponent(
|
|
11
|
+
() => import("../DynamicComponents/WebForm.vue")
|
|
12
|
+
);
|
|
13
|
+
const SubscriptionForm = defineAsyncComponent(
|
|
14
|
+
() => import("../DynamicComponents/SubscriptionForm.vue")
|
|
15
|
+
);
|
|
16
|
+
onMounted(async () => {
|
|
17
|
+
await nextTick();
|
|
18
|
+
const container = grapeContainer.value;
|
|
19
|
+
if (!container) return;
|
|
20
|
+
container.innerHTML = data?.html || '<div class="container text-center fs-4">No content Found</div>';
|
|
21
|
+
const formDivs = container.querySelectorAll("div[form_id]");
|
|
22
|
+
formDivs.forEach((el) => {
|
|
23
|
+
const formId = el.getAttribute("form_id");
|
|
24
|
+
if (!formId) return;
|
|
25
|
+
const mountEl = document.createElement("div");
|
|
26
|
+
el.replaceWith(mountEl);
|
|
27
|
+
createApp({
|
|
28
|
+
render() {
|
|
29
|
+
return h(WebForm, {
|
|
30
|
+
form_id: formId
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}).mount(mountEl);
|
|
34
|
+
});
|
|
35
|
+
const subscriptionForms = container.querySelectorAll("[subscription_form], .orix-subscription-form");
|
|
36
|
+
subscriptionForms.forEach((el) => {
|
|
37
|
+
const mountEl = document.createElement("div");
|
|
38
|
+
el.replaceWith(mountEl);
|
|
39
|
+
createApp({
|
|
40
|
+
render() {
|
|
41
|
+
return h(SubscriptionForm);
|
|
42
|
+
}
|
|
43
|
+
}).mount(mountEl);
|
|
44
|
+
});
|
|
45
|
+
const scripts = container.querySelectorAll("script");
|
|
46
|
+
console.log("scripts", scripts);
|
|
47
|
+
scripts.forEach((oldScript) => {
|
|
48
|
+
const newScript = document.createElement("script");
|
|
49
|
+
for (const attr of oldScript.attributes) {
|
|
50
|
+
newScript.setAttribute(attr.name, attr.value);
|
|
51
|
+
}
|
|
52
|
+
newScript.textContent = oldScript.textContent;
|
|
53
|
+
oldScript.parentNode?.replaceChild(newScript, oldScript);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
onMounted(async () => {
|
|
57
|
+
await nextTick();
|
|
58
|
+
const sections = document.querySelectorAll("[id]");
|
|
59
|
+
let activeLink = null;
|
|
60
|
+
const observer = new IntersectionObserver(
|
|
61
|
+
(entries) => {
|
|
62
|
+
entries.forEach((entry) => {
|
|
63
|
+
if (!entry.isIntersecting) return;
|
|
64
|
+
const id = entry.target.id;
|
|
65
|
+
const link = document.querySelector(`a[href="#${id}"]`);
|
|
66
|
+
if (!link) return;
|
|
67
|
+
if (activeLink && activeLink !== link) {
|
|
68
|
+
activeLink.style.backgroundColor = "";
|
|
69
|
+
activeLink.style.color = "";
|
|
70
|
+
}
|
|
71
|
+
link.style.backgroundColor = "rgb(0, 82, 137)";
|
|
72
|
+
link.style.color = "#ffffff";
|
|
73
|
+
activeLink = link;
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
threshold: 0.4
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
sections.forEach((section) => observer.observe(section));
|
|
81
|
+
});
|
|
82
|
+
function scopeCss(css, scope = ".dynamicContent") {
|
|
83
|
+
return css.replace(
|
|
84
|
+
/(^|})\s*([^@}{]+)\s*\{/g,
|
|
85
|
+
(match, brace, selector) => {
|
|
86
|
+
if (selector.trim().startsWith("@")) {
|
|
87
|
+
return `${brace} ${selector} {`;
|
|
88
|
+
}
|
|
89
|
+
const scopedSelector = selector.split(",").map((sel) => {
|
|
90
|
+
sel = sel.trim();
|
|
91
|
+
if (sel.startsWith(scope)) return sel;
|
|
92
|
+
sel = sel.replace(/^body\b/, "").replace(/^html\b/, "").replace(/^\*/, "").trim();
|
|
93
|
+
return sel ? `${scope} ${sel}` : scope;
|
|
94
|
+
}).join(", ");
|
|
95
|
+
return `${brace} ${scopedSelector} {`;
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
useHead(() => {
|
|
100
|
+
const css = data?.css || "";
|
|
101
|
+
const globalcss = data?.globalstyles?.globalCSS || "";
|
|
102
|
+
if (!css) return {};
|
|
103
|
+
return {
|
|
104
|
+
style: [
|
|
105
|
+
{
|
|
106
|
+
innerHTML: scopeCss(css),
|
|
107
|
+
id: "scoped-css",
|
|
108
|
+
type: "text/css",
|
|
109
|
+
tagPosition: "bodyClose"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
innerHTML: globalcss,
|
|
113
|
+
id: "global-css",
|
|
114
|
+
type: "text/css",
|
|
115
|
+
tagPosition: "bodyClose"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
</script>
|
|
121
|
+
|
|
122
|
+
<template>
|
|
123
|
+
<div class="dynamicContent">
|
|
124
|
+
<div ref="grapeContainer"></div>
|
|
125
|
+
</div>
|
|
126
|
+
</template>
|
|
127
|
+
|
|
128
|
+
<style scoped>
|
|
129
|
+
:deep() .gjs-cell {
|
|
130
|
+
flex-grow: unset !important;
|
|
131
|
+
flex-basis: unset !important;
|
|
132
|
+
}
|
|
133
|
+
:deep() .accordion-button:not(.collapsed) {
|
|
134
|
+
background: none !important;
|
|
135
|
+
background-color: none !important;
|
|
136
|
+
color: unset !important;
|
|
137
|
+
font-weight: 500 !important;
|
|
138
|
+
}
|
|
139
|
+
:deep() .accordion-button:focus {
|
|
140
|
+
outline: none !important;
|
|
141
|
+
box-shadow: none !important;
|
|
142
|
+
}
|
|
143
|
+
:deep() .accordion-item {
|
|
144
|
+
margin: 20px 0;
|
|
145
|
+
border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color) !important;
|
|
146
|
+
}
|
|
147
|
+
:deep() .accordion-header {
|
|
148
|
+
border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color) !important;
|
|
149
|
+
}
|
|
150
|
+
:deep() {
|
|
151
|
+
/* Scroll offset for anchor links - prevents content from hiding behind fixed header */
|
|
152
|
+
}
|
|
153
|
+
:deep() [id] {
|
|
154
|
+
scroll-margin-top: 150px;
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
157
|
+
|
|
158
|
+
<style>
|
|
159
|
+
.dynamicContent .accordion .accordion-button.collapsed{background-color:unset!important}.dynamicContent .accordion .accordion-button:not(.collapsed){background-color:unset!important;box-shadow:unset!important;color:unset!important;font-weight:500!important}
|
|
160
|
+
</style>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
|
+
data?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
data?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
|
+
data?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
data?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|