flowrix 1.0.1-beta.147 → 1.0.1-beta.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/SampleProductCard.d.vue.ts +13 -0
  3. package/dist/runtime/components/SampleProductCard.vue +362 -0
  4. package/dist/runtime/components/SampleProductCard.vue.d.ts +13 -0
  5. package/dist/runtime/components/WishList/dropdown.d.vue.ts +9 -0
  6. package/dist/runtime/components/WishList/dropdown.vue +417 -0
  7. package/dist/runtime/components/WishList/dropdown.vue.d.ts +9 -0
  8. package/dist/runtime/components/WishList/modal.d.vue.ts +13 -0
  9. package/dist/runtime/components/WishList/modal.vue +229 -0
  10. package/dist/runtime/components/WishList/modal.vue.d.ts +13 -0
  11. package/dist/runtime/components/product/AddToCart.d.vue.ts +15 -0
  12. package/dist/runtime/components/product/AddToCart.vue +176 -0
  13. package/dist/runtime/components/product/AddToCart.vue.d.ts +15 -0
  14. package/dist/runtime/components/product/AddtoCartSample.d.vue.ts +6 -0
  15. package/dist/runtime/components/product/AddtoCartSample.vue +110 -0
  16. package/dist/runtime/components/product/AddtoCartSample.vue.d.ts +6 -0
  17. package/dist/runtime/components/product/Badges.d.vue.ts +13 -0
  18. package/dist/runtime/components/product/Badges.vue +84 -0
  19. package/dist/runtime/components/product/Badges.vue.d.ts +13 -0
  20. package/dist/runtime/components/product/Description.d.vue.ts +9 -0
  21. package/dist/runtime/components/product/Description.vue +96 -0
  22. package/dist/runtime/components/product/Description.vue.d.ts +9 -0
  23. package/dist/runtime/components/product/Dynamic.d.vue.ts +9 -0
  24. package/dist/runtime/components/product/Dynamic.vue +136 -0
  25. package/dist/runtime/components/product/Dynamic.vue.d.ts +9 -0
  26. package/dist/runtime/components/product/Gallery.d.vue.ts +11 -0
  27. package/dist/runtime/components/product/Gallery.vue +133 -0
  28. package/dist/runtime/components/product/Gallery.vue.d.ts +11 -0
  29. package/dist/runtime/components/product/PopUpCart.d.vue.ts +11 -0
  30. package/dist/runtime/components/product/PopUpCart.vue +155 -0
  31. package/dist/runtime/components/product/PopUpCart.vue.d.ts +11 -0
  32. package/dist/runtime/components/product/ProductInfo.d.vue.ts +7 -0
  33. package/dist/runtime/components/product/ProductInfo.vue +105 -0
  34. package/dist/runtime/components/product/ProductInfo.vue.d.ts +7 -0
  35. package/dist/runtime/components/product/RequiredPopUp.d.vue.ts +9 -0
  36. package/dist/runtime/components/product/RequiredPopUp.vue +57 -0
  37. package/dist/runtime/components/product/RequiredPopUp.vue.d.ts +9 -0
  38. package/dist/runtime/components/product/bundleProduct/Bundle.d.vue.ts +13 -0
  39. package/dist/runtime/components/product/bundleProduct/Bundle.vue +35 -0
  40. package/dist/runtime/components/product/bundleProduct/Bundle.vue.d.ts +13 -0
  41. package/dist/runtime/components/product/bundleProduct/index.d.vue.ts +8 -0
  42. package/dist/runtime/components/product/bundleProduct/index.vue +32 -0
  43. package/dist/runtime/components/product/bundleProduct/index.vue.d.ts +8 -0
  44. package/dist/runtime/components/product/customProduct/AddtoCartSample.d.vue.ts +6 -0
  45. package/dist/runtime/components/product/customProduct/AddtoCartSample.vue +101 -0
  46. package/dist/runtime/components/product/customProduct/AddtoCartSample.vue.d.ts +6 -0
  47. package/dist/runtime/components/product/customProduct/Attributes.d.vue.ts +9 -0
  48. package/dist/runtime/components/product/customProduct/Attributes.vue +12 -0
  49. package/dist/runtime/components/product/customProduct/Attributes.vue.d.ts +9 -0
  50. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.d.vue.ts +13 -0
  51. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue +11 -0
  52. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue.d.ts +13 -0
  53. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.d.vue.ts +3 -0
  54. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue +253 -0
  55. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue.d.ts +3 -0
  56. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.d.vue.ts +3 -0
  57. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue +253 -0
  58. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue.d.ts +3 -0
  59. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.d.vue.ts +3 -0
  60. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue +214 -0
  61. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue.d.ts +3 -0
  62. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.d.vue.ts +13 -0
  63. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue +9 -0
  64. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue.d.ts +13 -0
  65. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.d.vue.ts +13 -0
  66. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue +9 -0
  67. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue.d.ts +13 -0
  68. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.d.vue.ts +9 -0
  69. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue +133 -0
  70. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue.d.ts +9 -0
  71. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.d.vue.ts +11 -0
  72. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue +35 -0
  73. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue.d.ts +11 -0
  74. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.d.vue.ts +13 -0
  75. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue +134 -0
  76. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue.d.ts +13 -0
  77. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.d.vue.ts +15 -0
  78. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue +138 -0
  79. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue.d.ts +15 -0
  80. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.d.vue.ts +11 -0
  81. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue +149 -0
  82. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue.d.ts +11 -0
  83. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.d.vue.ts +11 -0
  84. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue +82 -0
  85. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue.d.ts +11 -0
  86. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.d.vue.ts +11 -0
  87. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue +108 -0
  88. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue.d.ts +11 -0
  89. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.d.vue.ts +11 -0
  90. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue +104 -0
  91. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue.d.ts +11 -0
  92. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.d.vue.ts +11 -0
  93. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue +87 -0
  94. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue.d.ts +11 -0
  95. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.d.vue.ts +11 -0
  96. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue +219 -0
  97. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue.d.ts +11 -0
  98. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.d.vue.ts +11 -0
  99. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue +36 -0
  100. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue.d.ts +11 -0
  101. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.d.vue.ts +11 -0
  102. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue +45 -0
  103. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue.d.ts +11 -0
  104. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.d.vue.ts +13 -0
  105. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue +48 -0
  106. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue.d.ts +13 -0
  107. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.d.vue.ts +11 -0
  108. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue +154 -0
  109. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue.d.ts +11 -0
  110. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.d.vue.ts +11 -0
  111. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue +111 -0
  112. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue.d.ts +11 -0
  113. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.d.vue.ts +11 -0
  114. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue +269 -0
  115. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue.d.ts +11 -0
  116. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts +11 -0
  117. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue +63 -0
  118. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts +11 -0
  119. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts +11 -0
  120. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue +63 -0
  121. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts +11 -0
  122. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts +11 -0
  123. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue +220 -0
  124. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue.d.ts +11 -0
  125. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.d.vue.ts +11 -0
  126. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue +47 -0
  127. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue.d.ts +11 -0
  128. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.d.vue.ts +11 -0
  129. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue +91 -0
  130. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue.d.ts +11 -0
  131. package/dist/runtime/components/product/customProduct/ConfirmPopup.d.vue.ts +9 -0
  132. package/dist/runtime/components/product/customProduct/ConfirmPopup.vue +25 -0
  133. package/dist/runtime/components/product/customProduct/ConfirmPopup.vue.d.ts +9 -0
  134. package/dist/runtime/components/product/customProduct/RequiredPopUp.d.vue.ts +9 -0
  135. package/dist/runtime/components/product/customProduct/RequiredPopUp.vue +49 -0
  136. package/dist/runtime/components/product/customProduct/RequiredPopUp.vue.d.ts +9 -0
  137. package/dist/runtime/components/product/customProduct/Reviews.d.vue.ts +7 -0
  138. package/dist/runtime/components/product/customProduct/Reviews.vue +25 -0
  139. package/dist/runtime/components/product/customProduct/Reviews.vue.d.ts +7 -0
  140. package/dist/runtime/components/product/customProduct/SingleStep.d.vue.ts +11 -0
  141. package/dist/runtime/components/product/customProduct/SingleStep.vue +11 -0
  142. package/dist/runtime/components/product/customProduct/SingleStep.vue.d.ts +11 -0
  143. package/dist/runtime/components/product/customProduct/Steps.d.vue.ts +9 -0
  144. package/dist/runtime/components/product/customProduct/Steps.vue +221 -0
  145. package/dist/runtime/components/product/customProduct/Steps.vue.d.ts +9 -0
  146. package/dist/runtime/components/product/customProduct/index.d.vue.ts +9 -0
  147. package/dist/runtime/components/product/customProduct/index.vue +272 -0
  148. package/dist/runtime/components/product/customProduct/index.vue.d.ts +9 -0
  149. package/dist/runtime/components/product/index.d.vue.ts +8 -0
  150. package/dist/runtime/components/product/index.vue +90 -0
  151. package/dist/runtime/components/product/index.vue.d.ts +8 -0
  152. package/dist/runtime/components/product/sampleProduct/ProductVariation.d.vue.ts +11 -0
  153. package/dist/runtime/components/product/sampleProduct/ProductVariation.vue +61 -0
  154. package/dist/runtime/components/product/sampleProduct/ProductVariation.vue.d.ts +11 -0
  155. package/dist/runtime/components/product/sampleProduct/SampleDetails.d.vue.ts +7 -0
  156. package/dist/runtime/components/product/sampleProduct/SampleDetails.vue +74 -0
  157. package/dist/runtime/components/product/sampleProduct/SampleDetails.vue.d.ts +7 -0
  158. package/dist/runtime/components/product/sampleProduct/SampleFeatures.d.vue.ts +9 -0
  159. package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue +63 -0
  160. package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue.d.ts +9 -0
  161. package/dist/runtime/components/product/sampleProduct/index.d.vue.ts +8 -0
  162. package/dist/runtime/components/product/sampleProduct/index.vue +64 -0
  163. package/dist/runtime/components/product/sampleProduct/index.vue.d.ts +8 -0
  164. package/dist/runtime/components/product/simpleProduct/ProductVariation.d.vue.ts +11 -0
  165. package/dist/runtime/components/product/simpleProduct/ProductVariation.vue +61 -0
  166. package/dist/runtime/components/product/simpleProduct/ProductVariation.vue.d.ts +11 -0
  167. package/dist/runtime/components/product/simpleProduct/index.d.vue.ts +8 -0
  168. package/dist/runtime/components/product/simpleProduct/index.vue +34 -0
  169. package/dist/runtime/components/product/simpleProduct/index.vue.d.ts +8 -0
  170. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.d.ts +3 -0
  171. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.js +20 -0
  172. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.d.ts +70 -0
  173. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.js +63 -0
  174. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.d.ts +74 -0
  175. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.js +107 -0
  176. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.d.ts +159 -0
  177. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.js +2079 -0
  178. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.d.ts +4 -0
  179. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.js +27 -0
  180. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.d.ts +68 -0
  181. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.js +21 -0
  182. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.d.ts +67 -0
  183. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.js +15 -0
  184. package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.d.ts +88 -0
  185. package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.js +72 -0
  186. package/dist/runtime/composables/index.d.ts +8 -0
  187. package/dist/runtime/composables/index.js +8 -0
  188. package/dist/runtime/pages/flowrix-default.vue +15 -6
  189. package/dist/runtime/plugins/bootstrap.client.d.ts +2 -0
  190. package/dist/runtime/plugins/bootstrap.client.js +9 -0
  191. package/dist/runtime/server/api/cart/related.js +15 -2
  192. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ export default function (product: any, template?: string): {
2
+ CustomScript: import("pinia").Store<"CustomScriptDynamic", import("./useCustomeScriptDynamic.js").State, {}, {
3
+ CallScriptFIrstTime(): void;
4
+ initprocess(): Promise<void>;
5
+ getAvailableValues(aid: any, parent_value_id?: number): unknown[];
6
+ setWidthHeightbaseonStyle(): boolean;
7
+ setSummery(attrib: any, value: any): void;
8
+ unsetSummery(aid: any): void;
9
+ hideValue(h_aid: any, h_vid: any): void;
10
+ showValue(h_aid: any, h_vid: any): void;
11
+ showAttribute(aid: any): void;
12
+ hideAttribute(aid: any): void;
13
+ hideChildValues(aid: any, parent_id: any): void;
14
+ hideChildValuesOfParentValue(aid: any, parent_attribute_id: any, parent_value_id: any): void;
15
+ showChildValues(aid: any, parent_selected_val_id: any): void;
16
+ showGroup(gid: any): void;
17
+ hideGroup(gid: any): void;
18
+ markSelected(h_aid: any, h_vid: any): void;
19
+ markInputSelected(aid: any, vid: any, value?: any): void;
20
+ markUnselected(h_aid: any, h_vid: any): void;
21
+ findSelectedValue(values: any, parent_value_id?: number): unknown;
22
+ processAttributes(): void;
23
+ processAttribute(attributes: any): void;
24
+ processAttributeAfterCondition(attributes: any): void;
25
+ hideAttributeHirerachy(aid: any): void;
26
+ hideChildAttributes(child_attrib: any): void;
27
+ processChildAttribute(child_attrib: any): void;
28
+ setConditions(aid?: string, first_call?: boolean): Promise<boolean>;
29
+ createCondition(conditionArray: any): any;
30
+ getelement(classname: any): Element | undefined;
31
+ toggle(classname: any): Element | undefined;
32
+ getvalue(classname: any): any;
33
+ executeCondition(newcondition: any, c_aid: any, v_id: any, changed_values: any, msgValue: any, hiddenValues: any, child_Values: any, first_call: any, available?: any): {
34
+ msgValue: any;
35
+ changed_values: any;
36
+ hiddenValues: any;
37
+ child_Values: any;
38
+ };
39
+ hideAttributeOrGroup(c_aid: any): void;
40
+ unsetMsg(aid: any): void;
41
+ showValueAttributeOrGroup(c_aid: any, v_id: any): boolean;
42
+ selectOneValue(c_aid: any): void;
43
+ checkChangeAttributesMsg(c_aid: any, msgAttributes: any, msgValue: any, selected_value_hidden: any, child_Values: any, first_call: any, available: any): {
44
+ child_Values: any;
45
+ };
46
+ showbox(popUpMsg: any): Promise<unknown>;
47
+ confirmChange(changed_attribs: any, hiddenAttributes: any, aid: any, paid?: string): Promise<boolean>;
48
+ customRoundUp(value: any): number;
49
+ sqrunitprice(price: any, width: any, height: any, unit_relative: any): number;
50
+ sqrmeasureprice(price: any, measurement: any, unit_relative: any): number;
51
+ closest(num: any, arr: any): any;
52
+ lookupprice(price: any, width?: any, height?: any): any;
53
+ swatchimage(): void;
54
+ getMeasurement(attribute_type: any): number;
55
+ getMeasurementByID(attribute_id: any): number;
56
+ getSubHeights(): unknown[];
57
+ getSubWidths(): unknown[];
58
+ calculateMultiPrice(width: any, height: any, value: any, subWidths: any, subHeights: any): number;
59
+ getValuePrice(price_type: any, width: any, height: any, PRICE_TYPES: any, price: any, priceArray: any): number;
60
+ getValuePriceDiscount(discount_type: any, discount: any, value_price: any): void;
61
+ setValuePricePromotionsDiscount(attributes: any): void;
62
+ getValuePricePromotionDiscount(product_id: any, value_price: any): void;
63
+ calculatePrice(): void;
64
+ calculateDiscount(discounttype: any, discount: any, price: any): any;
65
+ calculateservicePrice(): void;
66
+ }>;
67
+ screenwidth: number;
68
+ firstHalf: (summary: any) => [string, unknown][] | undefined;
69
+ secondtHalf: (summary: any) => [string, unknown][] | undefined;
70
+ summaryShow: import("vue").Ref<boolean, boolean>;
71
+ Gallery: import("vue").Raw<object>;
72
+ Attributes: import("vue").Raw<object>;
73
+ ProductCard: import("vue").Raw<object>;
74
+ };
@@ -0,0 +1,107 @@
1
+ import { ref, defineAsyncComponent, markRaw } from "vue";
2
+ import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
3
+ export default function(product, template = "default") {
4
+ const CustomScript = useCustomeScriptDynamic();
5
+ CustomScript.attributeIdz = product.attributeIdz;
6
+ CustomScript.lookupprices = product.lookupprices;
7
+ CustomScript.servicePriceSetting = product.servicePriceSetting;
8
+ CustomScript.conditions = product.conditions;
9
+ CustomScript.TYPES = product.types;
10
+ CustomScript.PRICETYPE = product.pricetypes;
11
+ CustomScript.UNIT_RELATIVE = product.unit_relative;
12
+ CustomScript.DISCOUNTS = product.discounts;
13
+ CustomScript.measurementUnit = product.unit;
14
+ CustomScript.promotionSettings = product.promotionSettings;
15
+ CustomScript.linked_promotionSettings = product.inherit_promotions;
16
+ CustomScript.B2BTYPE = product.b2btype;
17
+ CustomScript.USEBASEPRICE = product.usebaseprice;
18
+ CustomScript.BASEPRICE = product.baseprice;
19
+ CustomScript.usefitting = product.usefitting;
20
+ CustomScript.sevice_price_type = product.servicePriceSetting.sevice_price_type;
21
+ CustomScript.serviceprice = 0;
22
+ const screenwidth = 1400;
23
+ const firstHalf = ((summary) => {
24
+ if (summary != {}) {
25
+ const dataArray = Object.entries(summary);
26
+ dataArray.sort((a, b) => {
27
+ const gsortA = a[1].gsortorder;
28
+ const gsortB = b[1].gsortorder;
29
+ const sortA = a[1].sortorder;
30
+ const sortB = b[1].sortorder;
31
+ if (gsortA < gsortB) return -1;
32
+ if (gsortA > gsortB) return 1;
33
+ if (sortA < sortB) return -1;
34
+ if (sortA > sortB) return 1;
35
+ return 0;
36
+ });
37
+ const midpoint = Math.ceil(dataArray.length / 2);
38
+ return dataArray.slice(0, midpoint);
39
+ }
40
+ });
41
+ const secondtHalf = ((summary) => {
42
+ if (summary != {}) {
43
+ const dataArray = Object.entries(summary);
44
+ dataArray.sort((a, b) => {
45
+ const gsortA = a[1].gsortorder;
46
+ const gsortB = b[1].gsortorder;
47
+ const sortA = a[1].sortorder;
48
+ const sortB = b[1].sortorder;
49
+ if (gsortA < gsortB) return -1;
50
+ if (gsortA > gsortB) return 1;
51
+ if (sortA < sortB) return -1;
52
+ if (sortA > sortB) return 1;
53
+ return 0;
54
+ });
55
+ const midpoint = Math.ceil(dataArray.length / 2);
56
+ return dataArray.slice(midpoint);
57
+ }
58
+ });
59
+ const summaryShow = ref(false);
60
+ const components = import.meta.glob("../../../components/product/*/**/*");
61
+ let Gallery = markRaw("");
62
+ Gallery = defineAsyncComponent({
63
+ loader: async () => {
64
+ try {
65
+ const path = `../../../components/product/Gallery.vue`;
66
+ return await components[path]?.();
67
+ } catch (error) {
68
+ const path = `../../../components/product/Gallery.vue`;
69
+ return await components[path]?.();
70
+ }
71
+ }
72
+ });
73
+ let Attributes = markRaw("");
74
+ Attributes = defineAsyncComponent({
75
+ loader: async () => {
76
+ try {
77
+ const path = `../../../components/product/customProduct/Attributes.vue`;
78
+ return await components[path]?.();
79
+ } catch (error) {
80
+ const path = `../../../components/product/customProduct/Attributes.vue`;
81
+ return await components[path]?.();
82
+ }
83
+ }
84
+ });
85
+ let ProductCard = markRaw("");
86
+ ProductCard = defineAsyncComponent({
87
+ loader: async () => {
88
+ try {
89
+ const path = `../../../components/product/ProductInfo.vue`;
90
+ return await components[path]?.();
91
+ } catch (error) {
92
+ const path = `../../../components/product/ProductInfo.vue`;
93
+ return await components[path]?.();
94
+ }
95
+ }
96
+ });
97
+ return {
98
+ CustomScript,
99
+ screenwidth,
100
+ firstHalf,
101
+ secondtHalf,
102
+ summaryShow,
103
+ Gallery,
104
+ Attributes,
105
+ ProductCard
106
+ };
107
+ }
@@ -0,0 +1,159 @@
1
+ export interface SelectedOptions {
2
+ name: Object;
3
+ }
4
+ export interface attributeIdz {
5
+ name: Object;
6
+ }
7
+ export interface lookupprices {
8
+ name: Object;
9
+ }
10
+ export interface servicePriceSetting {
11
+ name: Object;
12
+ }
13
+ export interface conditions {
14
+ name: Object;
15
+ }
16
+ export interface TYPES {
17
+ name: Object;
18
+ }
19
+ export interface PRICETYPE {
20
+ name: Object;
21
+ }
22
+ export interface UNIT_RELATIVE {
23
+ name: Object;
24
+ }
25
+ export interface DISCOUNTS {
26
+ name: Object;
27
+ }
28
+ export interface measurementUnit {
29
+ name: Object;
30
+ }
31
+ export interface promotionSettings {
32
+ name: Object;
33
+ }
34
+ export interface B2BTYPE {
35
+ name: Object;
36
+ }
37
+ export interface USEBASEPRICE {
38
+ name: Object;
39
+ }
40
+ export interface BASEPRICE {
41
+ name: Object;
42
+ }
43
+ export interface usefitting {
44
+ name: Object;
45
+ }
46
+ export interface sevice_price_type {
47
+ name: Object;
48
+ }
49
+ export interface serviceprice {
50
+ name: Object;
51
+ }
52
+ export interface With_this_selection_following_selections_will_be_changed {
53
+ name: Object;
54
+ }
55
+ export interface State {
56
+ SelectedOptions: Record<string, string> | any;
57
+ attributeIdz: object | any;
58
+ lookupprices: lookupprices | null;
59
+ servicePriceSetting: object | any;
60
+ conditions: conditions | null;
61
+ TYPES: Record<string, string> | any;
62
+ PRICETYPE: Record<string, string> | any;
63
+ UNIT_RELATIVE: Record<string, string> | any;
64
+ DISCOUNTS: Record<string, string> | any;
65
+ measurementUnit: Record<string, string> | any;
66
+ promotionSettings: Record<string, string> | any;
67
+ linked_promotionSettings: Record<string, string> | any;
68
+ B2BTYPE: Record<string, string> | any;
69
+ USEBASEPRICE: Record<string, string> | any;
70
+ BASEPRICE: Record<string, string> | any;
71
+ usefitting: Record<string, string> | any;
72
+ sevice_price_type: Record<string, string> | any;
73
+ serviceprice: Record<string, string> | any;
74
+ With_this_selection_following_selections_will_be_changed: string | null;
75
+ attributeOf: string | null;
76
+ attributeValuesClass: string | null;
77
+ attributeClass: string | null;
78
+ attributeClassName: string | null;
79
+ valueClassName: string | null;
80
+ valueClass: string | null;
81
+ valueChildClass: string | null;
82
+ groupClassName: string | null;
83
+ groupClass: string | null;
84
+ priceClass: string | null;
85
+ rrpriceClass: string | null;
86
+ qtyElement: string | null;
87
+ rrpriceWrapper: string | null;
88
+ imageElement: string | null;
89
+ useBackground: any | null;
90
+ pdpsummary: Record<string, string> | null;
91
+ msgStr: Record<string, string> | null;
92
+ productPrice: Record<number, number> | null;
93
+ productDiscountedPrice: Record<number, number> | null;
94
+ }
95
+ export declare const useCustomeScriptDynamic: import("pinia").StoreDefinition<"CustomScriptDynamic", State, {}, {
96
+ CallScriptFIrstTime(): void;
97
+ initprocess(): Promise<void>;
98
+ getAvailableValues(aid: any, parent_value_id?: number): unknown[];
99
+ setWidthHeightbaseonStyle(): boolean;
100
+ setSummery(attrib: any, value: any): void;
101
+ unsetSummery(aid: any): void;
102
+ hideValue(h_aid: any, h_vid: any): void;
103
+ showValue(h_aid: any, h_vid: any): void;
104
+ showAttribute(aid: any): void;
105
+ hideAttribute(aid: any): void;
106
+ hideChildValues(aid: any, parent_id: any): void;
107
+ hideChildValuesOfParentValue(aid: any, parent_attribute_id: any, parent_value_id: any): void;
108
+ showChildValues(aid: any, parent_selected_val_id: any): void;
109
+ showGroup(gid: any): void;
110
+ hideGroup(gid: any): void;
111
+ markSelected(h_aid: any, h_vid: any): void;
112
+ markInputSelected(aid: any, vid: any, value?: any): void;
113
+ markUnselected(h_aid: any, h_vid: any): void;
114
+ findSelectedValue(values: any, parent_value_id?: number): unknown;
115
+ processAttributes(): void;
116
+ processAttribute(attributes: any): void;
117
+ processAttributeAfterCondition(attributes: any): void;
118
+ hideAttributeHirerachy(aid: any): void;
119
+ hideChildAttributes(child_attrib: any): void;
120
+ processChildAttribute(child_attrib: any): void;
121
+ setConditions(aid?: string, first_call?: boolean): Promise<boolean>;
122
+ createCondition(conditionArray: any): any;
123
+ getelement(classname: any): Element | undefined;
124
+ toggle(classname: any): Element | undefined;
125
+ getvalue(classname: any): any;
126
+ executeCondition(newcondition: any, c_aid: any, v_id: any, changed_values: any, msgValue: any, hiddenValues: any, child_Values: any, first_call: any, available?: any): {
127
+ msgValue: any;
128
+ changed_values: any;
129
+ hiddenValues: any;
130
+ child_Values: any;
131
+ };
132
+ hideAttributeOrGroup(c_aid: any): void;
133
+ unsetMsg(aid: any): void;
134
+ showValueAttributeOrGroup(c_aid: any, v_id: any): boolean;
135
+ selectOneValue(c_aid: any): void;
136
+ checkChangeAttributesMsg(c_aid: any, msgAttributes: any, msgValue: any, selected_value_hidden: any, child_Values: any, first_call: any, available: any): {
137
+ child_Values: any;
138
+ };
139
+ showbox(popUpMsg: any): Promise<unknown>;
140
+ confirmChange(changed_attribs: any, hiddenAttributes: any, aid: any, paid?: string): Promise<boolean>;
141
+ customRoundUp(value: any): number;
142
+ sqrunitprice(price: any, width: any, height: any, unit_relative: any): number;
143
+ sqrmeasureprice(price: any, measurement: any, unit_relative: any): number;
144
+ closest(num: any, arr: any): any;
145
+ lookupprice(price: any, width?: any, height?: any): any;
146
+ swatchimage(): void;
147
+ getMeasurement(attribute_type: any): number;
148
+ getMeasurementByID(attribute_id: any): number;
149
+ getSubHeights(): unknown[];
150
+ getSubWidths(): unknown[];
151
+ calculateMultiPrice(width: any, height: any, value: any, subWidths: any, subHeights: any): number;
152
+ getValuePrice(price_type: any, width: any, height: any, PRICE_TYPES: any, price: any, priceArray: any): number;
153
+ getValuePriceDiscount(discount_type: any, discount: any, value_price: any): void;
154
+ setValuePricePromotionsDiscount(attributes: any): void;
155
+ getValuePricePromotionDiscount(product_id: any, value_price: any): void;
156
+ calculatePrice(): void;
157
+ calculateDiscount(discounttype: any, discount: any, price: any): any;
158
+ calculateservicePrice(): void;
159
+ }>;