@ikas/storefront 3.0.0-beta.1 → 4.0.0-alpha.11

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 (1682) hide show
  1. package/package.json +40 -98
  2. package/src/analytics/analytics.ts +536 -0
  3. package/src/analytics/events.ts +116 -0
  4. package/src/analytics/facebookPixel.ts +226 -0
  5. package/src/analytics/googleAnalytics.ts +227 -0
  6. package/src/analytics/googleTagManager.ts +341 -0
  7. package/src/analytics/googleUniversal.ts +136 -0
  8. package/src/analytics/head/index.tsx +135 -0
  9. package/src/analytics/ikas.ts +558 -0
  10. package/src/analytics/index.ts +2 -0
  11. package/src/analytics/tiktokPixel.ts +223 -0
  12. package/src/components/checkout/components/address-form/index.tsx +406 -0
  13. package/src/components/checkout/components/address-form/model.ts +397 -0
  14. package/src/components/checkout/components/button/index.tsx +44 -0
  15. package/src/components/checkout/components/button/style.module.scss +103 -0
  16. package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
  17. package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
  18. package/src/components/checkout/components/cart-summary/index.tsx +481 -0
  19. package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
  20. package/src/components/checkout/components/checkbox/check.tsx +23 -0
  21. package/src/components/checkout/components/checkbox/index.tsx +50 -0
  22. package/src/components/checkout/components/checkbox/style.module.scss +72 -0
  23. package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
  24. package/src/components/checkout/components/credit-card-form/model.ts +56 -0
  25. package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
  26. package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
  27. package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
  28. package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
  29. package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
  30. package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
  31. package/src/components/checkout/components/customer-addresses/model.ts +126 -0
  32. package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
  33. package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
  34. package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
  35. package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
  36. package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
  37. package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
  38. package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
  39. package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
  40. package/src/components/checkout/components/error/index.tsx +54 -0
  41. package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
  42. package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
  43. package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
  44. package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
  45. package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
  46. package/src/components/checkout/components/expandable-section/index.tsx +37 -0
  47. package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
  48. package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
  49. package/src/components/checkout/components/form-item/index.tsx +207 -0
  50. package/src/components/checkout/components/form-item/model.ts +145 -0
  51. package/src/components/checkout/components/form-item/style.module.scss +216 -0
  52. package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
  53. package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
  54. package/src/components/checkout/components/input-with-button/index.tsx +53 -0
  55. package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
  56. package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
  57. package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
  58. package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
  59. package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
  60. package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
  61. package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
  62. package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
  63. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
  64. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
  65. package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
  66. package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
  67. package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
  68. package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
  69. package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
  70. package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
  71. package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
  72. package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
  73. package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
  74. package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
  75. package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
  76. package/src/components/checkout/components/modal/index.tsx +41 -0
  77. package/src/components/checkout/components/modal/style.module.scss +68 -0
  78. package/src/components/checkout/components/modal/useEscape.tsx +20 -0
  79. package/src/components/checkout/components/notification-box/index.tsx +70 -0
  80. package/src/components/checkout/components/notification-box/style.module.scss +69 -0
  81. package/src/components/checkout/components/offer-product/index.tsx +180 -0
  82. package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
  83. package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
  84. package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
  85. package/src/components/checkout/components/offer-product/style.module.scss +117 -0
  86. package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
  87. package/src/components/checkout/components/phone-number-input/get-countries.ts +52 -0
  88. package/src/components/checkout/components/phone-number-input/index.tsx +125 -0
  89. package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
  90. package/src/components/checkout/components/select-box/index.tsx +60 -0
  91. package/src/components/checkout/components/select-box/style.module.scss +55 -0
  92. package/src/components/checkout/components/step-container/index.tsx +107 -0
  93. package/src/components/checkout/components/step-container/style.module.scss +86 -0
  94. package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
  95. package/src/components/checkout/components/stripe/index.tsx +91 -0
  96. package/src/components/checkout/components/stripe/style.module.scss +75 -0
  97. package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
  98. package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
  99. package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
  100. package/src/components/checkout/components/svg/cross.tsx +23 -0
  101. package/src/components/checkout/components/svg/discount.tsx +34 -0
  102. package/src/components/checkout/components/svg/external.tsx +101 -0
  103. package/src/components/checkout/components/svg/gift.tsx +40 -0
  104. package/src/components/checkout/components/svg/ikas.tsx +39 -0
  105. package/src/components/checkout/components/svg/lock.tsx +23 -0
  106. package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
  107. package/src/components/checkout/components/svg/success-circle.tsx +26 -0
  108. package/src/components/checkout/components/svg/tag.tsx +23 -0
  109. package/src/components/checkout/components/svg/warning.tsx +30 -0
  110. package/src/components/checkout/components/toggle/index.tsx +51 -0
  111. package/src/components/checkout/components/toggle/style.module.scss +75 -0
  112. package/src/components/checkout/components/tooltip/index.tsx +27 -0
  113. package/src/components/checkout/components/tooltip/style.module.scss +86 -0
  114. package/src/components/checkout/index.tsx +641 -0
  115. package/src/components/checkout/model.ts +1466 -0
  116. package/src/components/checkout/modelMasterPass.ts +1001 -0
  117. package/src/components/checkout/steps/step-info/index.tsx +85 -0
  118. package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
  119. package/src/components/checkout/steps/step-payment/index.tsx +104 -0
  120. package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
  121. package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
  122. package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
  123. package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
  124. package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
  125. package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
  126. package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
  127. package/src/components/checkout/steps/step-success/index.tsx +366 -0
  128. package/src/components/checkout/steps/step-success/style.module.scss +161 -0
  129. package/src/components/checkout/style.module.scss +366 -0
  130. package/src/components/checkout/styles/common.module.scss +59 -0
  131. package/src/components/checkout/styles/variables.scss +40 -0
  132. package/src/components/image/index.tsx +43 -0
  133. package/src/components/index.ts +5 -0
  134. package/src/components/link/index.tsx +26 -0
  135. package/src/components/page/ThemeComponent.tsx +108 -0
  136. package/src/components/page/head.tsx +358 -0
  137. package/src/components/page/index.tsx +219 -0
  138. package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
  139. package/src/components/page-editor/error/index.tsx +18 -0
  140. package/src/components/page-editor/index.tsx +194 -0
  141. package/src/components/page-editor/loader/index.tsx +18 -0
  142. package/src/components/page-editor/loader/style.module.scss +59 -0
  143. package/src/components/page-editor/model.ts +847 -0
  144. package/src/index.ts +6 -0
  145. package/src/models/data/base/index.ts +15 -0
  146. package/src/models/data/blog/category/index.ts +36 -0
  147. package/src/models/data/blog/content/index.ts +16 -0
  148. package/src/models/data/blog/index.ts +75 -0
  149. package/src/models/data/blog/meta-data/index.ts +39 -0
  150. package/src/models/data/blog/tag/index.ts +16 -0
  151. package/src/models/data/blog/writer/index.ts +17 -0
  152. package/src/models/data/brand/index.ts +58 -0
  153. package/src/models/data/brand/translation/index.ts +16 -0
  154. package/src/models/data/campaign-offer/index.ts +79 -0
  155. package/src/models/data/campaign-offer/product/index.ts +69 -0
  156. package/src/models/data/cart/available-shipping-method/index.ts +25 -0
  157. package/src/models/data/cart/campaign-offer/index.ts +43 -0
  158. package/src/models/data/cart/index.ts +38 -0
  159. package/src/models/data/category/index.ts +69 -0
  160. package/src/models/data/category/init.ts +33 -0
  161. package/src/models/data/category/path-item/index.ts +42 -0
  162. package/src/models/data/category/translations/index.ts +16 -0
  163. package/src/models/data/checkout/index.ts +55 -0
  164. package/src/models/data/checkout-settings/index.ts +63 -0
  165. package/src/models/data/checkout-settings/option/index.ts +14 -0
  166. package/src/models/data/checkout-settings/price/index.ts +14 -0
  167. package/src/models/data/city/index.ts +34 -0
  168. package/src/models/data/contact-form/index.ts +20 -0
  169. package/src/models/data/country/index.ts +46 -0
  170. package/src/models/data/customer/address/city/index.ts +16 -0
  171. package/src/models/data/customer/address/country/index.ts +20 -0
  172. package/src/models/data/customer/address/district/index.ts +16 -0
  173. package/src/models/data/customer/address/index.tsx +136 -0
  174. package/src/models/data/customer/address/state/index.ts +16 -0
  175. package/src/models/data/customer/attribute/index.ts +61 -0
  176. package/src/models/data/customer/attribute/option/index.ts +20 -0
  177. package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
  178. package/src/models/data/customer/attribute/translation/index.ts +23 -0
  179. package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
  180. package/src/models/data/customer/attribute/value/index.ts +29 -0
  181. package/src/models/data/customer/index.ts +122 -0
  182. package/src/models/data/customer/review/index.ts +70 -0
  183. package/src/models/data/customer/review/settings/index.ts +14 -0
  184. package/src/models/data/customer/review/summary/index.ts +29 -0
  185. package/src/models/data/customer/review/summary/star/index.ts +16 -0
  186. package/src/models/data/district/index.ts +36 -0
  187. package/src/models/data/favorite-product/index.ts +23 -0
  188. package/src/models/data/filter-category/index.ts +30 -0
  189. package/src/models/data/html-meta-data/index.ts +69 -0
  190. package/src/models/data/html-meta-data/translations/index.ts +16 -0
  191. package/src/models/data/image/index.ts +33 -0
  192. package/src/models/data/index.ts +192 -0
  193. package/src/models/data/last-viewed-product/index.ts +14 -0
  194. package/src/models/data/merchant-settings/index.ts +26 -0
  195. package/src/models/data/order/address/city/index.ts +16 -0
  196. package/src/models/data/order/address/country/index.ts +20 -0
  197. package/src/models/data/order/address/district/index.ts +16 -0
  198. package/src/models/data/order/address/index.ts +96 -0
  199. package/src/models/data/order/address/state/index.ts +16 -0
  200. package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
  201. package/src/models/data/order/adjustment/index.ts +39 -0
  202. package/src/models/data/order/customer/index.ts +24 -0
  203. package/src/models/data/order/gift-line/index.ts +14 -0
  204. package/src/models/data/order/index.ts +241 -0
  205. package/src/models/data/order/invoice/index.ts +29 -0
  206. package/src/models/data/order/line-item/discount/index.ts +23 -0
  207. package/src/models/data/order/line-item/index.ts +153 -0
  208. package/src/models/data/order/line-item/option/index.ts +24 -0
  209. package/src/models/data/order/line-item/option/value/index.ts +16 -0
  210. package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
  211. package/src/models/data/order/line-item/variant/category/index.ts +36 -0
  212. package/src/models/data/order/line-item/variant/index.ts +62 -0
  213. package/src/models/data/order/line-item/variant/price/index.ts +20 -0
  214. package/src/models/data/order/line-item/variant/value/index.ts +31 -0
  215. package/src/models/data/order/package/index.ts +41 -0
  216. package/src/models/data/order/package/tracking-info/index.ts +20 -0
  217. package/src/models/data/order/payment-method/index.ts +23 -0
  218. package/src/models/data/order/refund/index.ts +17 -0
  219. package/src/models/data/order/refund/line-item/index.ts +16 -0
  220. package/src/models/data/order/refund/settings/index.ts +16 -0
  221. package/src/models/data/order/shipping-line/index.ts +29 -0
  222. package/src/models/data/order/tax-line/index.ts +14 -0
  223. package/src/models/data/order/transaction/error/index.ts +16 -0
  224. package/src/models/data/order/transaction/index.ts +58 -0
  225. package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
  226. package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
  227. package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
  228. package/src/models/data/payment-gateway/index.ts +90 -0
  229. package/src/models/data/payment-gateway/settings/index.ts +21 -0
  230. package/src/models/data/payment-gateway/translation/index.ts +18 -0
  231. package/src/models/data/product/attribute/index.ts +37 -0
  232. package/src/models/data/product/attribute/option/index.ts +14 -0
  233. package/src/models/data/product/attribute/table-cell/index.ts +16 -0
  234. package/src/models/data/product/attribute/table-template/index.ts +19 -0
  235. package/src/models/data/product/attribute/translation/index.ts +39 -0
  236. package/src/models/data/product/attribute-value/index.ts +69 -0
  237. package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
  238. package/src/models/data/product/campaign/data/index.ts +70 -0
  239. package/src/models/data/product/campaign/filter/index.ts +19 -0
  240. package/src/models/data/product/campaign/index.ts +15 -0
  241. package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
  242. package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
  243. package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
  244. package/src/models/data/product/filter/index.ts +285 -0
  245. package/src/models/data/product/image/index.ts +22 -0
  246. package/src/models/data/product/index.ts +298 -0
  247. package/src/models/data/product/option-set/index.ts +94 -0
  248. package/src/models/data/product/option-set/option/index.ts +245 -0
  249. package/src/models/data/product/tag/index.ts +14 -0
  250. package/src/models/data/product/variant/index.ts +104 -0
  251. package/src/models/data/product/variant/price/index.ts +58 -0
  252. package/src/models/data/product/variant-type/index.ts +17 -0
  253. package/src/models/data/product/variant-type/init.ts +15 -0
  254. package/src/models/data/raffle/index.ts +155 -0
  255. package/src/models/data/sales-channel/index.ts +56 -0
  256. package/src/models/data/state/index.ts +18 -0
  257. package/src/models/data/stock-location/address/city/index.ts +16 -0
  258. package/src/models/data/stock-location/address/country/index.ts +18 -0
  259. package/src/models/data/stock-location/address/district/index.ts +18 -0
  260. package/src/models/data/stock-location/address/index.ts +34 -0
  261. package/src/models/data/stock-location/address/state/index.ts +18 -0
  262. package/src/models/data/stock-location/available/index.ts +22 -0
  263. package/src/models/data/stock-location/index.ts +35 -0
  264. package/src/models/data/storefront/domain/index.ts +20 -0
  265. package/src/models/data/storefront/index.ts +65 -0
  266. package/src/models/data/storefront/localization/index.tsx +18 -0
  267. package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
  268. package/src/models/data/storefront/routing/index.tsx +25 -0
  269. package/src/models/data/storefront/theme/index.tsx +25 -0
  270. package/src/models/data/storefront/theme-localization/index.tsx +31 -0
  271. package/src/models/data/theme-json/component/index.ts +41 -0
  272. package/src/models/data/theme-json/component/prop/index.ts +55 -0
  273. package/src/models/data/theme-json/custom-data/index.ts +132 -0
  274. package/src/models/data/theme-json/index.ts +210 -0
  275. package/src/models/data/theme-json/page/component/index.ts +22 -0
  276. package/src/models/data/theme-json/page/index.ts +54 -0
  277. package/src/models/data/theme-json/settings/color/index.ts +35 -0
  278. package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
  279. package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
  280. package/src/models/data/theme-json/settings/index.ts +30 -0
  281. package/src/models/data/variant-type/index.ts +44 -0
  282. package/src/models/data/variant-type/variant-value/index.ts +32 -0
  283. package/src/models/index.ts +2 -0
  284. package/src/models/ui/blog-category-list/index.ts +169 -0
  285. package/src/models/ui/blog-list/index.ts +175 -0
  286. package/src/models/ui/brand-list/index.ts +237 -0
  287. package/src/models/ui/category-list/index.ts +237 -0
  288. package/src/models/ui/component-renderer/index.ts +9 -0
  289. package/src/models/ui/customer-review-list/index.ts +173 -0
  290. package/src/models/ui/customer-review-summary-list/index.ts +175 -0
  291. package/src/models/ui/index.ts +40 -0
  292. package/src/models/ui/navigation-link/index.ts +23 -0
  293. package/src/models/ui/product-attribute-detail/index.ts +29 -0
  294. package/src/models/ui/product-attribute-list/index.ts +52 -0
  295. package/src/models/ui/product-list/index.ts +998 -0
  296. package/src/models/ui/raffle-list/index.ts +178 -0
  297. package/src/models/ui/validator/form/account-info.ts +167 -0
  298. package/src/models/ui/validator/form/address.ts +490 -0
  299. package/src/models/ui/validator/form/contact-form.ts +177 -0
  300. package/src/models/ui/validator/form/customer-review.ts +132 -0
  301. package/src/models/ui/validator/form/forgot-password.ts +96 -0
  302. package/src/models/ui/validator/form/login.ts +128 -0
  303. package/src/models/ui/validator/form/raffle-form.ts +276 -0
  304. package/src/models/ui/validator/form/recover-password.ts +148 -0
  305. package/src/models/ui/validator/form/register.ts +206 -0
  306. package/src/models/ui/validator/index.ts +121 -0
  307. package/src/models/ui/validator/rules/index.ts +310 -0
  308. package/src/page-data-init/index.ts +904 -0
  309. package/src/pages/404.tsx +10 -0
  310. package/src/pages/[slug]/index.tsx +9 -0
  311. package/src/pages/account/addresses.tsx +10 -0
  312. package/src/pages/account/favorite-products.tsx +9 -0
  313. package/src/pages/account/forgot-password.tsx +9 -0
  314. package/src/pages/account/index.tsx +9 -0
  315. package/src/pages/account/login.tsx +9 -0
  316. package/src/pages/account/orders/[id].tsx +9 -0
  317. package/src/pages/account/orders/index.tsx +9 -0
  318. package/src/pages/account/raffles.tsx +9 -0
  319. package/src/pages/account/recover-password.tsx +9 -0
  320. package/src/pages/account/register.tsx +9 -0
  321. package/src/pages/blog/[slug].tsx +9 -0
  322. package/src/pages/blog/index.tsx +9 -0
  323. package/src/pages/cart.tsx +9 -0
  324. package/src/pages/checkout.tsx +163 -0
  325. package/src/pages/editor.tsx +30 -0
  326. package/src/pages/home.tsx +10 -0
  327. package/src/pages/index.ts +22 -0
  328. package/src/pages/pages/[slug].tsx +9 -0
  329. package/src/pages/raffle/[slug].tsx +9 -0
  330. package/src/pages/raffle/index.tsx +9 -0
  331. package/src/pages/search.tsx +9 -0
  332. package/src/store/base.ts +238 -0
  333. package/src/store/blog/index.ts +49 -0
  334. package/src/store/brand/index.ts +16 -0
  335. package/src/store/cart/api.ts +58 -0
  336. package/src/store/cart/index.ts +311 -0
  337. package/src/store/category/index.ts +16 -0
  338. package/src/store/checkout/index.ts +92 -0
  339. package/src/store/customer/api.ts +273 -0
  340. package/src/store/customer/index.ts +658 -0
  341. package/src/store/html-meta-data/index.ts +16 -0
  342. package/src/store/index.ts +1 -0
  343. package/src/store/location/index.ts +56 -0
  344. package/src/store/merchant/index.ts +16 -0
  345. package/src/store/product/index.ts +113 -0
  346. package/src/store/raffle/index.ts +58 -0
  347. package/src/store/storefront/index.ts +18 -0
  348. package/src/typings/global.d.ts +7 -0
  349. package/src/utils/constants.ts +2 -0
  350. package/src/utils/currency.ts +250 -0
  351. package/src/utils/google-fonts.ts +52 -0
  352. package/src/utils/helper.ts +77 -0
  353. package/src/utils/i18n.ts +126 -0
  354. package/src/utils/index.ts +3 -0
  355. package/build/__generated__/global-types.d.ts +0 -772
  356. package/build/__generated__/global-types.js +0 -1
  357. package/build/_virtual/Observable.js_commonjs-proxy.js +0 -1
  358. package/build/_virtual/Parser.js_commonjs-proxy.js +0 -1
  359. package/build/_virtual/ReactPropTypesSecret.js_commonjs-proxy.js +0 -1
  360. package/build/_virtual/Tokenizer.js_commonjs-proxy.js +0 -1
  361. package/build/_virtual/_DataView.js_commonjs-proxy.js +0 -1
  362. package/build/_virtual/_Hash.js_commonjs-proxy.js +0 -1
  363. package/build/_virtual/_ListCache.js_commonjs-proxy.js +0 -1
  364. package/build/_virtual/_Map.js_commonjs-proxy.js +0 -1
  365. package/build/_virtual/_MapCache.js_commonjs-proxy.js +0 -1
  366. package/build/_virtual/_Promise.js_commonjs-proxy.js +0 -1
  367. package/build/_virtual/_Set.js_commonjs-proxy.js +0 -1
  368. package/build/_virtual/_SetCache.js_commonjs-proxy.js +0 -1
  369. package/build/_virtual/_Stack.js_commonjs-proxy.js +0 -1
  370. package/build/_virtual/_Symbol.js_commonjs-proxy.js +0 -1
  371. package/build/_virtual/_Uint8Array.js_commonjs-proxy.js +0 -1
  372. package/build/_virtual/_WeakMap.js_commonjs-proxy.js +0 -1
  373. package/build/_virtual/_apply.js_commonjs-proxy.js +0 -1
  374. package/build/_virtual/_arrayAggregator.js_commonjs-proxy.js +0 -1
  375. package/build/_virtual/_arrayEach.js_commonjs-proxy.js +0 -1
  376. package/build/_virtual/_arrayFilter.js_commonjs-proxy.js +0 -1
  377. package/build/_virtual/_arrayIncludes.js_commonjs-proxy.js +0 -1
  378. package/build/_virtual/_arrayIncludesWith.js_commonjs-proxy.js +0 -1
  379. package/build/_virtual/_arrayLikeKeys.js_commonjs-proxy.js +0 -1
  380. package/build/_virtual/_arrayMap.js_commonjs-proxy.js +0 -1
  381. package/build/_virtual/_arrayPush.js_commonjs-proxy.js +0 -1
  382. package/build/_virtual/_arraySome.js_commonjs-proxy.js +0 -1
  383. package/build/_virtual/_assignValue.js_commonjs-proxy.js +0 -1
  384. package/build/_virtual/_assocIndexOf.js_commonjs-proxy.js +0 -1
  385. package/build/_virtual/_baseAggregator.js_commonjs-proxy.js +0 -1
  386. package/build/_virtual/_baseAssign.js_commonjs-proxy.js +0 -1
  387. package/build/_virtual/_baseAssignIn.js_commonjs-proxy.js +0 -1
  388. package/build/_virtual/_baseAssignValue.js_commonjs-proxy.js +0 -1
  389. package/build/_virtual/_baseClone.js_commonjs-proxy.js +0 -1
  390. package/build/_virtual/_baseCreate.js_commonjs-proxy.js +0 -1
  391. package/build/_virtual/_baseEach.js_commonjs-proxy.js +0 -1
  392. package/build/_virtual/_baseFindIndex.js_commonjs-proxy.js +0 -1
  393. package/build/_virtual/_baseFlatten.js_commonjs-proxy.js +0 -1
  394. package/build/_virtual/_baseFor.js_commonjs-proxy.js +0 -1
  395. package/build/_virtual/_baseForOwn.js_commonjs-proxy.js +0 -1
  396. package/build/_virtual/_baseGet.js_commonjs-proxy.js +0 -1
  397. package/build/_virtual/_baseGetAllKeys.js_commonjs-proxy.js +0 -1
  398. package/build/_virtual/_baseGetTag.js_commonjs-proxy.js +0 -1
  399. package/build/_virtual/_baseHasIn.js_commonjs-proxy.js +0 -1
  400. package/build/_virtual/_baseIndexOf.js_commonjs-proxy.js +0 -1
  401. package/build/_virtual/_baseIsArguments.js_commonjs-proxy.js +0 -1
  402. package/build/_virtual/_baseIsEqual.js_commonjs-proxy.js +0 -1
  403. package/build/_virtual/_baseIsEqualDeep.js_commonjs-proxy.js +0 -1
  404. package/build/_virtual/_baseIsMap.js_commonjs-proxy.js +0 -1
  405. package/build/_virtual/_baseIsMatch.js_commonjs-proxy.js +0 -1
  406. package/build/_virtual/_baseIsNaN.js_commonjs-proxy.js +0 -1
  407. package/build/_virtual/_baseIsNative.js_commonjs-proxy.js +0 -1
  408. package/build/_virtual/_baseIsSet.js_commonjs-proxy.js +0 -1
  409. package/build/_virtual/_baseIsTypedArray.js_commonjs-proxy.js +0 -1
  410. package/build/_virtual/_baseIteratee.js_commonjs-proxy.js +0 -1
  411. package/build/_virtual/_baseKeys.js_commonjs-proxy.js +0 -1
  412. package/build/_virtual/_baseKeysIn.js_commonjs-proxy.js +0 -1
  413. package/build/_virtual/_baseMap.js_commonjs-proxy.js +0 -1
  414. package/build/_virtual/_baseMatches.js_commonjs-proxy.js +0 -1
  415. package/build/_virtual/_baseMatchesProperty.js_commonjs-proxy.js +0 -1
  416. package/build/_virtual/_baseOrderBy.js_commonjs-proxy.js +0 -1
  417. package/build/_virtual/_baseProperty.js_commonjs-proxy.js +0 -1
  418. package/build/_virtual/_basePropertyDeep.js_commonjs-proxy.js +0 -1
  419. package/build/_virtual/_baseRest.js_commonjs-proxy.js +0 -1
  420. package/build/_virtual/_baseSetToString.js_commonjs-proxy.js +0 -1
  421. package/build/_virtual/_baseSortBy.js_commonjs-proxy.js +0 -1
  422. package/build/_virtual/_baseTimes.js_commonjs-proxy.js +0 -1
  423. package/build/_virtual/_baseToString.js_commonjs-proxy.js +0 -1
  424. package/build/_virtual/_baseUnary.js_commonjs-proxy.js +0 -1
  425. package/build/_virtual/_baseUniq.js_commonjs-proxy.js +0 -1
  426. package/build/_virtual/_cacheHas.js_commonjs-proxy.js +0 -1
  427. package/build/_virtual/_castFunction.js_commonjs-proxy.js +0 -1
  428. package/build/_virtual/_castPath.js_commonjs-proxy.js +0 -1
  429. package/build/_virtual/_cloneArrayBuffer.js_commonjs-proxy.js +0 -1
  430. package/build/_virtual/_cloneBuffer.js_commonjs-proxy.js +0 -1
  431. package/build/_virtual/_cloneDataView.js_commonjs-proxy.js +0 -1
  432. package/build/_virtual/_cloneRegExp.js_commonjs-proxy.js +0 -1
  433. package/build/_virtual/_cloneSymbol.js_commonjs-proxy.js +0 -1
  434. package/build/_virtual/_cloneTypedArray.js_commonjs-proxy.js +0 -1
  435. package/build/_virtual/_commonjsHelpers.js +0 -1
  436. package/build/_virtual/_compareAscending.js_commonjs-proxy.js +0 -1
  437. package/build/_virtual/_compareMultiple.js_commonjs-proxy.js +0 -1
  438. package/build/_virtual/_copyArray.js_commonjs-proxy.js +0 -1
  439. package/build/_virtual/_copyObject.js_commonjs-proxy.js +0 -1
  440. package/build/_virtual/_copySymbols.js_commonjs-proxy.js +0 -1
  441. package/build/_virtual/_copySymbolsIn.js_commonjs-proxy.js +0 -1
  442. package/build/_virtual/_coreJsData.js_commonjs-proxy.js +0 -1
  443. package/build/_virtual/_createAggregator.js_commonjs-proxy.js +0 -1
  444. package/build/_virtual/_createBaseEach.js_commonjs-proxy.js +0 -1
  445. package/build/_virtual/_createBaseFor.js_commonjs-proxy.js +0 -1
  446. package/build/_virtual/_createSet.js_commonjs-proxy.js +0 -1
  447. package/build/_virtual/_defineProperty.js_commonjs-proxy.js +0 -1
  448. package/build/_virtual/_equalArrays.js_commonjs-proxy.js +0 -1
  449. package/build/_virtual/_equalByTag.js_commonjs-proxy.js +0 -1
  450. package/build/_virtual/_equalObjects.js_commonjs-proxy.js +0 -1
  451. package/build/_virtual/_freeGlobal.js_commonjs-proxy.js +0 -1
  452. package/build/_virtual/_getAllKeys.js_commonjs-proxy.js +0 -1
  453. package/build/_virtual/_getAllKeysIn.js_commonjs-proxy.js +0 -1
  454. package/build/_virtual/_getMapData.js_commonjs-proxy.js +0 -1
  455. package/build/_virtual/_getMatchData.js_commonjs-proxy.js +0 -1
  456. package/build/_virtual/_getNative.js_commonjs-proxy.js +0 -1
  457. package/build/_virtual/_getPrototype.js_commonjs-proxy.js +0 -1
  458. package/build/_virtual/_getRawTag.js_commonjs-proxy.js +0 -1
  459. package/build/_virtual/_getSymbols.js_commonjs-proxy.js +0 -1
  460. package/build/_virtual/_getSymbolsIn.js_commonjs-proxy.js +0 -1
  461. package/build/_virtual/_getTag.js_commonjs-proxy.js +0 -1
  462. package/build/_virtual/_getValue.js_commonjs-proxy.js +0 -1
  463. package/build/_virtual/_hasPath.js_commonjs-proxy.js +0 -1
  464. package/build/_virtual/_hashClear.js_commonjs-proxy.js +0 -1
  465. package/build/_virtual/_hashDelete.js_commonjs-proxy.js +0 -1
  466. package/build/_virtual/_hashGet.js_commonjs-proxy.js +0 -1
  467. package/build/_virtual/_hashHas.js_commonjs-proxy.js +0 -1
  468. package/build/_virtual/_hashSet.js_commonjs-proxy.js +0 -1
  469. package/build/_virtual/_initCloneArray.js_commonjs-proxy.js +0 -1
  470. package/build/_virtual/_initCloneByTag.js_commonjs-proxy.js +0 -1
  471. package/build/_virtual/_initCloneObject.js_commonjs-proxy.js +0 -1
  472. package/build/_virtual/_isFlattenable.js_commonjs-proxy.js +0 -1
  473. package/build/_virtual/_isIndex.js_commonjs-proxy.js +0 -1
  474. package/build/_virtual/_isIterateeCall.js_commonjs-proxy.js +0 -1
  475. package/build/_virtual/_isKey.js_commonjs-proxy.js +0 -1
  476. package/build/_virtual/_isKeyable.js_commonjs-proxy.js +0 -1
  477. package/build/_virtual/_isMasked.js_commonjs-proxy.js +0 -1
  478. package/build/_virtual/_isPrototype.js_commonjs-proxy.js +0 -1
  479. package/build/_virtual/_isStrictComparable.js_commonjs-proxy.js +0 -1
  480. package/build/_virtual/_listCacheClear.js_commonjs-proxy.js +0 -1
  481. package/build/_virtual/_listCacheDelete.js_commonjs-proxy.js +0 -1
  482. package/build/_virtual/_listCacheGet.js_commonjs-proxy.js +0 -1
  483. package/build/_virtual/_listCacheHas.js_commonjs-proxy.js +0 -1
  484. package/build/_virtual/_listCacheSet.js_commonjs-proxy.js +0 -1
  485. package/build/_virtual/_mapCacheClear.js_commonjs-proxy.js +0 -1
  486. package/build/_virtual/_mapCacheDelete.js_commonjs-proxy.js +0 -1
  487. package/build/_virtual/_mapCacheGet.js_commonjs-proxy.js +0 -1
  488. package/build/_virtual/_mapCacheHas.js_commonjs-proxy.js +0 -1
  489. package/build/_virtual/_mapCacheSet.js_commonjs-proxy.js +0 -1
  490. package/build/_virtual/_mapToArray.js_commonjs-proxy.js +0 -1
  491. package/build/_virtual/_matchesStrictComparable.js_commonjs-proxy.js +0 -1
  492. package/build/_virtual/_memoizeCapped.js_commonjs-proxy.js +0 -1
  493. package/build/_virtual/_nativeCreate.js_commonjs-proxy.js +0 -1
  494. package/build/_virtual/_nativeKeys.js_commonjs-proxy.js +0 -1
  495. package/build/_virtual/_nativeKeysIn.js_commonjs-proxy.js +0 -1
  496. package/build/_virtual/_nodeUtil.js_commonjs-proxy.js +0 -1
  497. package/build/_virtual/_objectToString.js_commonjs-proxy.js +0 -1
  498. package/build/_virtual/_overArg.js_commonjs-proxy.js +0 -1
  499. package/build/_virtual/_overRest.js_commonjs-proxy.js +0 -1
  500. package/build/_virtual/_registry.js_commonjs-proxy.js +0 -1
  501. package/build/_virtual/_root.js_commonjs-proxy.js +0 -1
  502. package/build/_virtual/_setCacheAdd.js_commonjs-proxy.js +0 -1
  503. package/build/_virtual/_setCacheHas.js_commonjs-proxy.js +0 -1
  504. package/build/_virtual/_setToArray.js_commonjs-proxy.js +0 -1
  505. package/build/_virtual/_setToString.js_commonjs-proxy.js +0 -1
  506. package/build/_virtual/_shortOut.js_commonjs-proxy.js +0 -1
  507. package/build/_virtual/_stackClear.js_commonjs-proxy.js +0 -1
  508. package/build/_virtual/_stackDelete.js_commonjs-proxy.js +0 -1
  509. package/build/_virtual/_stackGet.js_commonjs-proxy.js +0 -1
  510. package/build/_virtual/_stackHas.js_commonjs-proxy.js +0 -1
  511. package/build/_virtual/_stackSet.js_commonjs-proxy.js +0 -1
  512. package/build/_virtual/_stream_duplex.js_commonjs-proxy.js +0 -1
  513. package/build/_virtual/_stream_passthrough.js_commonjs-proxy.js +0 -1
  514. package/build/_virtual/_stream_readable.js_commonjs-proxy.js +0 -1
  515. package/build/_virtual/_stream_transform.js_commonjs-proxy.js +0 -1
  516. package/build/_virtual/_stream_writable.js_commonjs-proxy.js +0 -1
  517. package/build/_virtual/_strictIndexOf.js_commonjs-proxy.js +0 -1
  518. package/build/_virtual/_stringToPath.js_commonjs-proxy.js +0 -1
  519. package/build/_virtual/_toKey.js_commonjs-proxy.js +0 -1
  520. package/build/_virtual/_toSource.js_commonjs-proxy.js +0 -1
  521. package/build/_virtual/async_iterator.js_commonjs-proxy.js +0 -1
  522. package/build/_virtual/attributes-to-props.js_commonjs-proxy.js +0 -1
  523. package/build/_virtual/buffer_list.js_commonjs-proxy.js +0 -1
  524. package/build/_virtual/checkPropTypes.js_commonjs-proxy.js +0 -1
  525. package/build/_virtual/constant.js_commonjs-proxy.js +0 -1
  526. package/build/_virtual/decode_codepoint.js_commonjs-proxy.js +0 -1
  527. package/build/_virtual/destroy.js_commonjs-proxy.js +0 -1
  528. package/build/_virtual/dom-to-react.js_commonjs-proxy.js +0 -1
  529. package/build/_virtual/end-of-stream.js_commonjs-proxy.js +0 -1
  530. package/build/_virtual/eq.js_commonjs-proxy.js +0 -1
  531. package/build/_virtual/errors.js_commonjs-proxy.js +0 -1
  532. package/build/_virtual/factoryWithThrowingShims.js_commonjs-proxy.js +0 -1
  533. package/build/_virtual/factoryWithTypeCheckers.js_commonjs-proxy.js +0 -1
  534. package/build/_virtual/from.js_commonjs-proxy.js +0 -1
  535. package/build/_virtual/get.js_commonjs-proxy.js +0 -1
  536. package/build/_virtual/hasIn.js_commonjs-proxy.js +0 -1
  537. package/build/_virtual/html-to-dom.js_commonjs-proxy.js +0 -1
  538. package/build/_virtual/identity.js_commonjs-proxy.js +0 -1
  539. package/build/_virtual/index.js_commonjs-proxy.js +0 -1
  540. package/build/_virtual/index.js_commonjs-proxy10.js +0 -1
  541. package/build/_virtual/index.js_commonjs-proxy11.js +0 -1
  542. package/build/_virtual/index.js_commonjs-proxy12.js +0 -1
  543. package/build/_virtual/index.js_commonjs-proxy13.js +0 -1
  544. package/build/_virtual/index.js_commonjs-proxy2.js +0 -1
  545. package/build/_virtual/index.js_commonjs-proxy3.js +0 -1
  546. package/build/_virtual/index.js_commonjs-proxy4.js +0 -1
  547. package/build/_virtual/index.js_commonjs-proxy5.js +0 -1
  548. package/build/_virtual/index.js_commonjs-proxy6.js +0 -1
  549. package/build/_virtual/index.js_commonjs-proxy7.js +0 -1
  550. package/build/_virtual/index.js_commonjs-proxy8.js +0 -1
  551. package/build/_virtual/index.js_commonjs-proxy9.js +0 -1
  552. package/build/_virtual/inherits.js_commonjs-proxy.js +0 -1
  553. package/build/_virtual/inherits_browser.js_commonjs-proxy.js +0 -1
  554. package/build/_virtual/isArguments.js_commonjs-proxy.js +0 -1
  555. package/build/_virtual/isArray.js_commonjs-proxy.js +0 -1
  556. package/build/_virtual/isArrayLike.js_commonjs-proxy.js +0 -1
  557. package/build/_virtual/isBuffer.js_commonjs-proxy.js +0 -1
  558. package/build/_virtual/isFunction.js_commonjs-proxy.js +0 -1
  559. package/build/_virtual/isLength.js_commonjs-proxy.js +0 -1
  560. package/build/_virtual/isMap.js_commonjs-proxy.js +0 -1
  561. package/build/_virtual/isObject.js_commonjs-proxy.js +0 -1
  562. package/build/_virtual/isObjectLike.js_commonjs-proxy.js +0 -1
  563. package/build/_virtual/isSet.js_commonjs-proxy.js +0 -1
  564. package/build/_virtual/isSymbol.js_commonjs-proxy.js +0 -1
  565. package/build/_virtual/isTypedArray.js_commonjs-proxy.js +0 -1
  566. package/build/_virtual/keys.js_commonjs-proxy.js +0 -1
  567. package/build/_virtual/keysIn.js_commonjs-proxy.js +0 -1
  568. package/build/_virtual/memoize.js_commonjs-proxy.js +0 -1
  569. package/build/_virtual/node.js_commonjs-proxy.js +0 -1
  570. package/build/_virtual/node.js_commonjs-proxy2.js +0 -1
  571. package/build/_virtual/noop.js_commonjs-proxy.js +0 -1
  572. package/build/_virtual/now.js_commonjs-proxy.js +0 -1
  573. package/build/_virtual/parser.mjs_commonjs-proxy.js +0 -1
  574. package/build/_virtual/pipeline.js_commonjs-proxy.js +0 -1
  575. package/build/_virtual/possibleStandardNamesOptimized.js_commonjs-proxy.js +0 -1
  576. package/build/_virtual/property.js_commonjs-proxy.js +0 -1
  577. package/build/_virtual/react-is.development.js_commonjs-proxy.js +0 -1
  578. package/build/_virtual/react-is.production.min.js_commonjs-proxy.js +0 -1
  579. package/build/_virtual/readable.js_commonjs-proxy.js +0 -1
  580. package/build/_virtual/state.js_commonjs-proxy.js +0 -1
  581. package/build/_virtual/stream.js_commonjs-proxy.js +0 -1
  582. package/build/_virtual/string_decoder.js_commonjs-proxy.js +0 -1
  583. package/build/_virtual/stubArray.js_commonjs-proxy.js +0 -1
  584. package/build/_virtual/stubFalse.js_commonjs-proxy.js +0 -1
  585. package/build/_virtual/toNumber.js_commonjs-proxy.js +0 -1
  586. package/build/_virtual/toString.js_commonjs-proxy.js +0 -1
  587. package/build/_virtual/utilities.js_commonjs-proxy.js +0 -1
  588. package/build/_virtual/utilities.js_commonjs-proxy2.js +0 -1
  589. package/build/_virtual/utilities.js_commonjs-proxy3.js +0 -1
  590. package/build/analytics/analytics.d.ts +0 -38
  591. package/build/analytics/analytics.js +0 -1
  592. package/build/analytics/events.d.ts +0 -37
  593. package/build/analytics/events.js +0 -1
  594. package/build/analytics/facebookPixel.d.ts +0 -15
  595. package/build/analytics/facebookPixel.js +0 -1
  596. package/build/analytics/googleAnalytics.d.ts +0 -13
  597. package/build/analytics/googleAnalytics.js +0 -1
  598. package/build/analytics/googleTagManager.d.ts +0 -203
  599. package/build/analytics/googleTagManager.js +0 -1
  600. package/build/analytics/googleUniversal.d.ts +0 -8
  601. package/build/analytics/googleUniversal.js +0 -1
  602. package/build/analytics/head/index.d.ts +0 -7
  603. package/build/analytics/head/index.js +0 -1
  604. package/build/analytics/ikas.d.ts +0 -133
  605. package/build/analytics/ikas.js +0 -1
  606. package/build/analytics/index.d.ts +0 -2
  607. package/build/api/apollo.d.ts +0 -10
  608. package/build/api/apollo.js +0 -1
  609. package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +0 -24
  610. package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +0 -19
  611. package/build/api/back-in-stock-reminder/index.d.ts +0 -23
  612. package/build/api/back-in-stock-reminder/index.js +0 -1
  613. package/build/api/blog/__generated__/getBlog.d.ts +0 -110
  614. package/build/api/blog/__generated__/listBlog.d.ts +0 -113
  615. package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -65
  616. package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -57
  617. package/build/api/blog/index.d.ts +0 -32
  618. package/build/api/blog/index.js +0 -1
  619. package/build/api/brand/__generated__/listProductBrand.d.ts +0 -88
  620. package/build/api/brand/index.d.ts +0 -16
  621. package/build/api/brand/index.js +0 -1
  622. package/build/api/cart/__generated__/getCart.d.ts +0 -178
  623. package/build/api/cart/__generated__/saveItemToCart.d.ts +0 -210
  624. package/build/api/cart/index.d.ts +0 -5
  625. package/build/api/cart/index.js +0 -1
  626. package/build/api/category/__generated__/listCategory.d.ts +0 -99
  627. package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -32
  628. package/build/api/category/index.d.ts +0 -18
  629. package/build/api/category/index.js +0 -1
  630. package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +0 -11
  631. package/build/api/checkout/__generated__/checkStocks.d.ts +0 -18
  632. package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +0 -22
  633. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +0 -10
  634. package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -574
  635. package/build/api/checkout/__generated__/getOrder.d.ts +0 -620
  636. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -34
  637. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +0 -42
  638. package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +0 -23
  639. package/build/api/checkout/__generated__/saveCheckout.d.ts +0 -11
  640. package/build/api/checkout/index.d.ts +0 -35
  641. package/build/api/checkout/index.js +0 -1
  642. package/build/api/city/__generated__/listCity.d.ts +0 -20
  643. package/build/api/city/index.d.ts +0 -4
  644. package/build/api/city/index.js +0 -1
  645. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -10
  646. package/build/api/contact-form/index.d.ts +0 -11
  647. package/build/api/contact-form/index.js +0 -1
  648. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -6
  649. package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
  650. package/build/api/country/__generated__/listCountry.d.ts +0 -41
  651. package/build/api/country/index.d.ts +0 -6
  652. package/build/api/country/index.js +0 -1
  653. package/build/api/customer/__generated__/checkCustomerEmail.d.ts +0 -10
  654. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
  655. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -590
  656. package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -7
  657. package/build/api/customer/__generated__/customerLogin.d.ts +0 -174
  658. package/build/api/customer/__generated__/customerRecoverPassword.d.ts +0 -8
  659. package/build/api/customer/__generated__/customerRefreshToken.d.ts +0 -11
  660. package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -173
  661. package/build/api/customer/__generated__/getCustomerOrders.d.ts +0 -620
  662. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
  663. package/build/api/customer/__generated__/getMyCustomer.d.ts +0 -156
  664. package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -621
  665. package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +0 -13
  666. package/build/api/customer/__generated__/listOrderTransactions.d.ts +0 -53
  667. package/build/api/customer/__generated__/registerCustomer.d.ts +0 -175
  668. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
  669. package/build/api/customer/__generated__/saveMyCustomer.d.ts +0 -171
  670. package/build/api/customer/index.d.ts +0 -51
  671. package/build/api/customer/index.js +0 -1
  672. package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
  673. package/build/api/customer-attribute/index.d.ts +0 -4
  674. package/build/api/customer-attribute/index.js +0 -1
  675. package/build/api/customer-review/__generated__/createCustomerReview.d.ts +0 -11
  676. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +0 -53
  677. package/build/api/customer-review/index.d.ts +0 -24
  678. package/build/api/customer-review/index.js +0 -1
  679. package/build/api/customer-review-summary/__generated__/listCustomerReviewSummary.d.ts +0 -59
  680. package/build/api/customer-review-summary/index.d.ts +0 -21
  681. package/build/api/customer-review-summary/index.js +0 -1
  682. package/build/api/district/__generated__/listDistrict.d.ts +0 -16
  683. package/build/api/district/index.d.ts +0 -4
  684. package/build/api/district/index.js +0 -1
  685. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
  686. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
  687. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
  688. package/build/api/favorite-product/index.d.ts +0 -6
  689. package/build/api/favorite-product/index.js +0 -1
  690. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +0 -38
  691. package/build/api/html-meta-data/index.d.ts +0 -4
  692. package/build/api/html-meta-data/index.js +0 -1
  693. package/build/api/index.d.ts +0 -25
  694. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -9
  695. package/build/api/merchant/index.d.ts +0 -4
  696. package/build/api/merchant/index.js +0 -1
  697. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +0 -72
  698. package/build/api/product-attribute/index.d.ts +0 -4
  699. package/build/api/product-campaign/__generated__/getProductCampaigns.d.ts +0 -91
  700. package/build/api/product-campaign/index.d.ts +0 -10
  701. package/build/api/product-campaign/index.js +0 -1
  702. package/build/api/product-option-file/__generated__/getOrderLineFile.d.ts +0 -7
  703. package/build/api/product-option-file/index.d.ts +0 -7
  704. package/build/api/product-option-file/index.js +0 -1
  705. package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +0 -104
  706. package/build/api/product-option-set/index.d.ts +0 -4
  707. package/build/api/product-option-set/index.js +0 -1
  708. package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -61
  709. package/build/api/product-search/__generated__/getRelatedProducts.d.ts +0 -14
  710. package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
  711. package/build/api/product-search/index.d.ts +0 -38
  712. package/build/api/product-search/index.js +0 -1
  713. package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +0 -44
  714. package/build/api/raffle/__generated__/listRaffle.d.ts +0 -85
  715. package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -22
  716. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +0 -30
  717. package/build/api/raffle/index.d.ts +0 -24
  718. package/build/api/raffle/index.js +0 -1
  719. package/build/api/state/__generated__/listState.d.ts +0 -19
  720. package/build/api/state/index.d.ts +0 -4
  721. package/build/api/state/index.js +0 -1
  722. package/build/api/stock-location/__generated__/listStockLocation.d.ts +0 -7
  723. package/build/api/stock-location/index.d.ts +0 -4
  724. package/build/api/storefront/__generated__/getStorefront.d.ts +0 -63
  725. package/build/api/storefront/index.d.ts +0 -4
  726. package/build/api/storefront/index.js +0 -1
  727. package/build/api/variant-type/__generated__/listVariantType.d.ts +0 -76
  728. package/build/api/variant-type/index.d.ts +0 -4
  729. package/build/assets/translations/checkout/en.js +0 -1
  730. package/build/assets/translations/checkout/tr.js +0 -1
  731. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  732. package/build/components/checkout/components/address-form/index.js +0 -1
  733. package/build/components/checkout/components/address-form/model.d.ts +0 -133
  734. package/build/components/checkout/components/address-form/model.js +0 -1
  735. package/build/components/checkout/components/button/index.d.ts +0 -12
  736. package/build/components/checkout/components/button/index.js +0 -1
  737. package/build/components/checkout/components/button/style.module.scss.js +0 -1
  738. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
  739. package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
  740. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
  741. package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
  742. package/build/components/checkout/components/cart-summary/index.js +0 -1
  743. package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
  744. package/build/components/checkout/components/checkbox/check.d.ts +0 -6
  745. package/build/components/checkout/components/checkbox/check.js +0 -1
  746. package/build/components/checkout/components/checkbox/index.d.ts +0 -10
  747. package/build/components/checkout/components/checkbox/index.js +0 -1
  748. package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
  749. package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
  750. package/build/components/checkout/components/credit-card-form/index.js +0 -1
  751. package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
  752. package/build/components/checkout/components/credit-card-form/model.js +0 -1
  753. package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
  754. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
  755. package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
  756. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
  757. package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
  758. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
  759. package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
  760. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
  761. package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
  762. package/build/components/checkout/components/customer-addresses/index.d.ts +0 -15
  763. package/build/components/checkout/components/customer-addresses/index.js +0 -1
  764. package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
  765. package/build/components/checkout/components/customer-addresses/model.js +0 -1
  766. package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
  767. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
  768. package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
  769. package/build/components/checkout/components/error/index.d.ts +0 -7
  770. package/build/components/checkout/components/error/index.js +0 -1
  771. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -4
  772. package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
  773. package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
  774. package/build/components/checkout/components/error/payment-error/index.js +0 -1
  775. package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
  776. package/build/components/checkout/components/error/stock-error/index.js +0 -1
  777. package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
  778. package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -6
  779. package/build/components/checkout/components/error/unknown-error/index.js +0 -1
  780. package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
  781. package/build/components/checkout/components/expandable-section/index.js +0 -1
  782. package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
  783. package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
  784. package/build/components/checkout/components/form-item/caret-down.js +0 -1
  785. package/build/components/checkout/components/form-item/index.d.ts +0 -3
  786. package/build/components/checkout/components/form-item/index.js +0 -1
  787. package/build/components/checkout/components/form-item/model.d.ts +0 -59
  788. package/build/components/checkout/components/form-item/model.js +0 -1
  789. package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
  790. package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
  791. package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
  792. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
  793. package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
  794. package/build/components/checkout/components/input-with-button/index.js +0 -1
  795. package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
  796. package/build/components/checkout/components/modal/index.d.ts +0 -8
  797. package/build/components/checkout/components/modal/index.js +0 -1
  798. package/build/components/checkout/components/modal/style.module.scss.js +0 -1
  799. package/build/components/checkout/components/notification-box/index.d.ts +0 -9
  800. package/build/components/checkout/components/notification-box/index.js +0 -1
  801. package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
  802. package/build/components/checkout/components/select-box/index.d.ts +0 -13
  803. package/build/components/checkout/components/select-box/index.js +0 -1
  804. package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
  805. package/build/components/checkout/components/step-container/index.d.ts +0 -15
  806. package/build/components/checkout/components/step-container/index.js +0 -1
  807. package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
  808. package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
  809. package/build/components/checkout/components/svg/arrow-down.js +0 -1
  810. package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
  811. package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
  812. package/build/components/checkout/components/svg/cross.d.ts +0 -6
  813. package/build/components/checkout/components/svg/cross.js +0 -1
  814. package/build/components/checkout/components/svg/discount.d.ts +0 -6
  815. package/build/components/checkout/components/svg/external.d.ts +0 -6
  816. package/build/components/checkout/components/svg/external.js +0 -1
  817. package/build/components/checkout/components/svg/gift.d.ts +0 -7
  818. package/build/components/checkout/components/svg/gift.js +0 -1
  819. package/build/components/checkout/components/svg/ikas.d.ts +0 -6
  820. package/build/components/checkout/components/svg/ikas.js +0 -1
  821. package/build/components/checkout/components/svg/lock.d.ts +0 -6
  822. package/build/components/checkout/components/svg/lock.js +0 -1
  823. package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
  824. package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
  825. package/build/components/checkout/components/svg/success-circle.js +0 -1
  826. package/build/components/checkout/components/svg/tag.d.ts +0 -6
  827. package/build/components/checkout/components/svg/warning.d.ts +0 -6
  828. package/build/components/checkout/components/svg/warning.js +0 -1
  829. package/build/components/checkout/components/toggle/index.d.ts +0 -10
  830. package/build/components/checkout/components/toggle/index.js +0 -1
  831. package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
  832. package/build/components/checkout/components/tooltip/index.d.ts +0 -8
  833. package/build/components/checkout/components/tooltip/index.js +0 -1
  834. package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
  835. package/build/components/checkout/index.d.ts +0 -33
  836. package/build/components/checkout/index.js +0 -1
  837. package/build/components/checkout/model.d.ts +0 -124
  838. package/build/components/checkout/model.js +0 -1
  839. package/build/components/checkout/steps/step-info/index.d.ts +0 -7
  840. package/build/components/checkout/steps/step-info/index.js +0 -1
  841. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
  842. package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
  843. package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
  844. package/build/components/checkout/steps/step-payment/index.js +0 -1
  845. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
  846. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
  847. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
  848. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
  849. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
  850. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
  851. package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
  852. package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
  853. package/build/components/checkout/steps/step-shipping/index.js +0 -1
  854. package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
  855. package/build/components/checkout/steps/step-success/index.d.ts +0 -7
  856. package/build/components/checkout/steps/step-success/index.js +0 -1
  857. package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
  858. package/build/components/checkout/style.module.scss.js +0 -1
  859. package/build/components/checkout/styles/common.module.scss.js +0 -1
  860. package/build/components/image/index.d.ts +0 -10
  861. package/build/components/image/index.js +0 -1
  862. package/build/components/index.d.ts +0 -4
  863. package/build/components/page/ThemeComponent.d.ts +0 -21
  864. package/build/components/page/ThemeComponent.js +0 -1
  865. package/build/components/page/head.d.ts +0 -14
  866. package/build/components/page/head.js +0 -1
  867. package/build/components/page/index.d.ts +0 -20
  868. package/build/components/page/index.js +0 -1
  869. package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
  870. package/build/components/page-editor/ThemeComponentEditor.js +0 -1
  871. package/build/components/page-editor/error/index.d.ts +0 -5
  872. package/build/components/page-editor/error/index.js +0 -1
  873. package/build/components/page-editor/index.d.ts +0 -4
  874. package/build/components/page-editor/index.js +0 -1
  875. package/build/components/page-editor/loader/index.d.ts +0 -6
  876. package/build/components/page-editor/loader/index.js +0 -1
  877. package/build/components/page-editor/loader/style.module.scss.js +0 -1
  878. package/build/components/page-editor/model.d.ts +0 -75
  879. package/build/components/page-editor/model.js +0 -1
  880. package/build/ext/@apollo/client/cache/core/cache.js +0 -1
  881. package/build/ext/@apollo/client/cache/core/types/common.js +0 -1
  882. package/build/ext/@apollo/client/cache/inmemory/entityStore.js +0 -1
  883. package/build/ext/@apollo/client/cache/inmemory/helpers.js +0 -1
  884. package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +0 -1
  885. package/build/ext/@apollo/client/cache/inmemory/policies.js +0 -1
  886. package/build/ext/@apollo/client/cache/inmemory/reactiveVars.js +0 -1
  887. package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +0 -1
  888. package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +0 -1
  889. package/build/ext/@apollo/client/core/ApolloClient.js +0 -1
  890. package/build/ext/@apollo/client/core/LocalState.js +0 -1
  891. package/build/ext/@apollo/client/core/ObservableQuery.js +0 -1
  892. package/build/ext/@apollo/client/core/QueryInfo.js +0 -1
  893. package/build/ext/@apollo/client/core/QueryManager.js +0 -1
  894. package/build/ext/@apollo/client/core/Reobserver.js +0 -1
  895. package/build/ext/@apollo/client/core/networkStatus.js +0 -1
  896. package/build/ext/@apollo/client/errors/index.js +0 -1
  897. package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +0 -15
  898. package/build/ext/@apollo/client/link/context/index.js +0 -1
  899. package/build/ext/@apollo/client/link/core/ApolloLink.js +0 -1
  900. package/build/ext/@apollo/client/link/core/execute.js +0 -1
  901. package/build/ext/@apollo/client/link/error/index.js +0 -1
  902. package/build/ext/@apollo/client/link/http/HttpLink.js +0 -1
  903. package/build/ext/@apollo/client/link/http/checkFetcher.js +0 -1
  904. package/build/ext/@apollo/client/link/http/createHttpLink.js +0 -1
  905. package/build/ext/@apollo/client/link/http/createSignalIfSupported.js +0 -1
  906. package/build/ext/@apollo/client/link/http/parseAndCheckHttpResponse.js +0 -1
  907. package/build/ext/@apollo/client/link/http/rewriteURIForGET.js +0 -1
  908. package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +0 -1
  909. package/build/ext/@apollo/client/link/http/selectURI.js +0 -1
  910. package/build/ext/@apollo/client/link/http/serializeFetchParameter.js +0 -1
  911. package/build/ext/@apollo/client/link/utils/createOperation.js +0 -1
  912. package/build/ext/@apollo/client/link/utils/fromError.js +0 -1
  913. package/build/ext/@apollo/client/link/utils/throwServerError.js +0 -1
  914. package/build/ext/@apollo/client/link/utils/transformOperation.js +0 -1
  915. package/build/ext/@apollo/client/link/utils/validateOperation.js +0 -1
  916. package/build/ext/@apollo/client/utilities/common/arrays.js +0 -1
  917. package/build/ext/@apollo/client/utilities/common/canUse.js +0 -1
  918. package/build/ext/@apollo/client/utilities/common/cloneDeep.js +0 -1
  919. package/build/ext/@apollo/client/utilities/common/compact.js +0 -1
  920. package/build/ext/@apollo/client/utilities/common/environment.js +0 -1
  921. package/build/ext/@apollo/client/utilities/common/errorHandling.js +0 -1
  922. package/build/ext/@apollo/client/utilities/common/filterInPlace.js +0 -1
  923. package/build/ext/@apollo/client/utilities/common/maybeDeepFreeze.js +0 -1
  924. package/build/ext/@apollo/client/utilities/common/mergeDeep.js +0 -1
  925. package/build/ext/@apollo/client/utilities/graphql/directives.js +0 -1
  926. package/build/ext/@apollo/client/utilities/graphql/fragments.js +0 -1
  927. package/build/ext/@apollo/client/utilities/graphql/getFromAST.js +0 -1
  928. package/build/ext/@apollo/client/utilities/graphql/storeUtils.js +0 -1
  929. package/build/ext/@apollo/client/utilities/graphql/transform.js +0 -1
  930. package/build/ext/@apollo/client/utilities/observables/Concast.js +0 -1
  931. package/build/ext/@apollo/client/utilities/observables/Observable.js +0 -1
  932. package/build/ext/@apollo/client/utilities/observables/asyncMap.js +0 -1
  933. package/build/ext/@apollo/client/utilities/observables/iteration.js +0 -1
  934. package/build/ext/@apollo/client/version.js +0 -1
  935. package/build/ext/@ikas/react-phone-number-input/locale/en.json.js +0 -1
  936. package/build/ext/@ikas/react-phone-number-input/min/index.js +0 -1
  937. package/build/ext/@ikas/react-phone-number-input/modules/CountryIcon.js +0 -1
  938. package/build/ext/@ikas/react-phone-number-input/modules/CountrySelect.js +0 -1
  939. package/build/ext/@ikas/react-phone-number-input/modules/Flag.js +0 -1
  940. package/build/ext/@ikas/react-phone-number-input/modules/InputBasic.js +0 -1
  941. package/build/ext/@ikas/react-phone-number-input/modules/InputSmart.js +0 -1
  942. package/build/ext/@ikas/react-phone-number-input/modules/InternationalIcon.js +0 -1
  943. package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountry.js +0 -1
  944. package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountryDefault.js +0 -1
  945. package/build/ext/@ikas/react-phone-number-input/modules/PropTypes.js +0 -1
  946. package/build/ext/@ikas/react-phone-number-input/modules/helpers/countries.js +0 -1
  947. package/build/ext/@ikas/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.js +0 -1
  948. package/build/ext/@ikas/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.js +0 -1
  949. package/build/ext/@ikas/react-phone-number-input/modules/helpers/inputValuePrefix.js +0 -1
  950. package/build/ext/@ikas/react-phone-number-input/modules/helpers/phoneInputHelpers.js +0 -1
  951. package/build/ext/@ungap/global-this/esm/index.js +0 -1
  952. package/build/ext/@wry/context/lib/context.esm.js +0 -1
  953. package/build/ext/@wry/equality/lib/equality.esm.js +0 -1
  954. package/build/ext/@wry/trie/lib/trie.esm.js +0 -1
  955. package/build/ext/classnames/index.js +0 -6
  956. package/build/ext/country-flag-icons/modules/unicode.js +0 -1
  957. package/build/ext/decode-uri-component/index.js +0 -1
  958. package/build/ext/domhandler/ext/domelementtype/lib/index.js +0 -1
  959. package/build/ext/domhandler/lib/index.js +0 -1
  960. package/build/ext/domhandler/lib/node.js +0 -1
  961. package/build/ext/entities/lib/decode_codepoint.js +0 -1
  962. package/build/ext/entities/lib/maps/decode.json.js +0 -1
  963. package/build/ext/entities/lib/maps/entities.json.js +0 -1
  964. package/build/ext/entities/lib/maps/legacy.json.js +0 -1
  965. package/build/ext/entities/lib/maps/xml.json.js +0 -1
  966. package/build/ext/fast-json-stable-stringify/index.js +0 -1
  967. package/build/ext/graphql/error/GraphQLError.mjs.js +0 -1
  968. package/build/ext/graphql/error/syntaxError.mjs.js +0 -1
  969. package/build/ext/graphql/jsutils/defineInspect.mjs.js +0 -1
  970. package/build/ext/graphql/jsutils/devAssert.mjs.js +0 -1
  971. package/build/ext/graphql/jsutils/inspect.mjs.js +0 -1
  972. package/build/ext/graphql/jsutils/instanceOf.mjs.js +0 -1
  973. package/build/ext/graphql/jsutils/invariant.mjs.js +0 -1
  974. package/build/ext/graphql/jsutils/isObjectLike.mjs.js +0 -1
  975. package/build/ext/graphql/jsutils/nodejsCustomInspectSymbol.mjs.js +0 -1
  976. package/build/ext/graphql/language/ast.mjs.js +0 -1
  977. package/build/ext/graphql/language/blockString.mjs.js +0 -1
  978. package/build/ext/graphql/language/directiveLocation.mjs.js +0 -1
  979. package/build/ext/graphql/language/kinds.mjs.js +0 -1
  980. package/build/ext/graphql/language/lexer.mjs.js +0 -1
  981. package/build/ext/graphql/language/location.mjs.js +0 -1
  982. package/build/ext/graphql/language/parser.mjs.js +0 -1
  983. package/build/ext/graphql/language/printLocation.mjs.js +0 -1
  984. package/build/ext/graphql/language/printer.mjs.js +0 -1
  985. package/build/ext/graphql/language/source.mjs.js +0 -1
  986. package/build/ext/graphql/language/tokenKind.mjs.js +0 -1
  987. package/build/ext/graphql/language/visitor.mjs.js +0 -1
  988. package/build/ext/graphql/polyfills/symbols.mjs.js +0 -1
  989. package/build/ext/graphql-tag/src/index.js +0 -1
  990. package/build/ext/html-dom-parser/index.js +0 -1
  991. package/build/ext/html-dom-parser/lib/server/html-to-dom.js +0 -1
  992. package/build/ext/html-dom-parser/lib/server/utilities.js +0 -1
  993. package/build/ext/html-react-parser/index.js +0 -1
  994. package/build/ext/html-react-parser/index.mjs.js +0 -1
  995. package/build/ext/html-react-parser/lib/attributes-to-props.js +0 -1
  996. package/build/ext/html-react-parser/lib/dom-to-react.js +0 -1
  997. package/build/ext/html-react-parser/lib/utilities.js +0 -1
  998. package/build/ext/htmlparser2/lib/Parser.js +0 -1
  999. package/build/ext/htmlparser2/lib/Tokenizer.js +0 -1
  1000. package/build/ext/inherits/inherits.js +0 -1
  1001. package/build/ext/inherits/inherits_browser.js +0 -1
  1002. package/build/ext/inline-style-parser/index.js +0 -1
  1003. package/build/ext/input-format/modules/closeBraces.js +0 -1
  1004. package/build/ext/input-format/modules/dom.js +0 -1
  1005. package/build/ext/input-format/modules/edit.js +0 -1
  1006. package/build/ext/input-format/modules/format.js +0 -1
  1007. package/build/ext/input-format/modules/helpers.js +0 -1
  1008. package/build/ext/input-format/modules/inputControl.js +0 -1
  1009. package/build/ext/input-format/modules/parse.js +0 -1
  1010. package/build/ext/input-format/modules/react/Input.js +0 -1
  1011. package/build/ext/input-format/modules/templateFormatter.js +0 -1
  1012. package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
  1013. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
  1014. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
  1015. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
  1016. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
  1017. package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
  1018. package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
  1019. package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
  1020. package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
  1021. package/build/ext/libphonenumber-js/es6/constants.js +0 -1
  1022. package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
  1023. package/build/ext/libphonenumber-js/es6/format_.js +0 -1
  1024. package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
  1025. package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
  1026. package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
  1027. package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  1028. package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
  1029. package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
  1030. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  1031. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  1032. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  1033. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
  1034. package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
  1035. package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
  1036. package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
  1037. package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
  1038. package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
  1039. package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
  1040. package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
  1041. package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
  1042. package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
  1043. package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
  1044. package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
  1045. package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
  1046. package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
  1047. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
  1048. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
  1049. package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
  1050. package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
  1051. package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
  1052. package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
  1053. package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
  1054. package/build/ext/lodash/_DataView.js +0 -1
  1055. package/build/ext/lodash/_Hash.js +0 -1
  1056. package/build/ext/lodash/_ListCache.js +0 -1
  1057. package/build/ext/lodash/_Map.js +0 -1
  1058. package/build/ext/lodash/_MapCache.js +0 -1
  1059. package/build/ext/lodash/_Promise.js +0 -1
  1060. package/build/ext/lodash/_Set.js +0 -1
  1061. package/build/ext/lodash/_SetCache.js +0 -1
  1062. package/build/ext/lodash/_Stack.js +0 -1
  1063. package/build/ext/lodash/_Symbol.js +0 -1
  1064. package/build/ext/lodash/_Uint8Array.js +0 -1
  1065. package/build/ext/lodash/_WeakMap.js +0 -1
  1066. package/build/ext/lodash/_apply.js +0 -1
  1067. package/build/ext/lodash/_arrayAggregator.js +0 -1
  1068. package/build/ext/lodash/_arrayEach.js +0 -1
  1069. package/build/ext/lodash/_arrayFilter.js +0 -1
  1070. package/build/ext/lodash/_arrayIncludes.js +0 -1
  1071. package/build/ext/lodash/_arrayIncludesWith.js +0 -1
  1072. package/build/ext/lodash/_arrayLikeKeys.js +0 -1
  1073. package/build/ext/lodash/_arrayMap.js +0 -1
  1074. package/build/ext/lodash/_arrayPush.js +0 -1
  1075. package/build/ext/lodash/_arraySome.js +0 -1
  1076. package/build/ext/lodash/_assignValue.js +0 -1
  1077. package/build/ext/lodash/_assocIndexOf.js +0 -1
  1078. package/build/ext/lodash/_baseAggregator.js +0 -1
  1079. package/build/ext/lodash/_baseAssign.js +0 -1
  1080. package/build/ext/lodash/_baseAssignIn.js +0 -1
  1081. package/build/ext/lodash/_baseAssignValue.js +0 -1
  1082. package/build/ext/lodash/_baseClone.js +0 -1
  1083. package/build/ext/lodash/_baseCreate.js +0 -1
  1084. package/build/ext/lodash/_baseEach.js +0 -1
  1085. package/build/ext/lodash/_baseFindIndex.js +0 -1
  1086. package/build/ext/lodash/_baseFlatten.js +0 -1
  1087. package/build/ext/lodash/_baseFor.js +0 -1
  1088. package/build/ext/lodash/_baseForOwn.js +0 -1
  1089. package/build/ext/lodash/_baseGet.js +0 -1
  1090. package/build/ext/lodash/_baseGetAllKeys.js +0 -1
  1091. package/build/ext/lodash/_baseGetTag.js +0 -1
  1092. package/build/ext/lodash/_baseHasIn.js +0 -1
  1093. package/build/ext/lodash/_baseIndexOf.js +0 -1
  1094. package/build/ext/lodash/_baseIsArguments.js +0 -1
  1095. package/build/ext/lodash/_baseIsEqual.js +0 -1
  1096. package/build/ext/lodash/_baseIsEqualDeep.js +0 -1
  1097. package/build/ext/lodash/_baseIsMap.js +0 -1
  1098. package/build/ext/lodash/_baseIsMatch.js +0 -1
  1099. package/build/ext/lodash/_baseIsNaN.js +0 -1
  1100. package/build/ext/lodash/_baseIsNative.js +0 -1
  1101. package/build/ext/lodash/_baseIsSet.js +0 -1
  1102. package/build/ext/lodash/_baseIsTypedArray.js +0 -1
  1103. package/build/ext/lodash/_baseIteratee.js +0 -1
  1104. package/build/ext/lodash/_baseKeys.js +0 -1
  1105. package/build/ext/lodash/_baseKeysIn.js +0 -1
  1106. package/build/ext/lodash/_baseMap.js +0 -1
  1107. package/build/ext/lodash/_baseMatches.js +0 -1
  1108. package/build/ext/lodash/_baseMatchesProperty.js +0 -1
  1109. package/build/ext/lodash/_baseOrderBy.js +0 -1
  1110. package/build/ext/lodash/_baseProperty.js +0 -1
  1111. package/build/ext/lodash/_basePropertyDeep.js +0 -1
  1112. package/build/ext/lodash/_baseRest.js +0 -1
  1113. package/build/ext/lodash/_baseSetToString.js +0 -1
  1114. package/build/ext/lodash/_baseSortBy.js +0 -1
  1115. package/build/ext/lodash/_baseTimes.js +0 -1
  1116. package/build/ext/lodash/_baseToString.js +0 -1
  1117. package/build/ext/lodash/_baseUnary.js +0 -1
  1118. package/build/ext/lodash/_baseUniq.js +0 -1
  1119. package/build/ext/lodash/_cacheHas.js +0 -1
  1120. package/build/ext/lodash/_castFunction.js +0 -1
  1121. package/build/ext/lodash/_castPath.js +0 -1
  1122. package/build/ext/lodash/_cloneArrayBuffer.js +0 -1
  1123. package/build/ext/lodash/_cloneBuffer.js +0 -1
  1124. package/build/ext/lodash/_cloneDataView.js +0 -1
  1125. package/build/ext/lodash/_cloneRegExp.js +0 -1
  1126. package/build/ext/lodash/_cloneSymbol.js +0 -1
  1127. package/build/ext/lodash/_cloneTypedArray.js +0 -1
  1128. package/build/ext/lodash/_compareAscending.js +0 -1
  1129. package/build/ext/lodash/_compareMultiple.js +0 -1
  1130. package/build/ext/lodash/_copyArray.js +0 -1
  1131. package/build/ext/lodash/_copyObject.js +0 -1
  1132. package/build/ext/lodash/_copySymbols.js +0 -1
  1133. package/build/ext/lodash/_copySymbolsIn.js +0 -1
  1134. package/build/ext/lodash/_coreJsData.js +0 -1
  1135. package/build/ext/lodash/_createAggregator.js +0 -1
  1136. package/build/ext/lodash/_createBaseEach.js +0 -1
  1137. package/build/ext/lodash/_createBaseFor.js +0 -1
  1138. package/build/ext/lodash/_createSet.js +0 -1
  1139. package/build/ext/lodash/_defineProperty.js +0 -1
  1140. package/build/ext/lodash/_equalArrays.js +0 -1
  1141. package/build/ext/lodash/_equalByTag.js +0 -1
  1142. package/build/ext/lodash/_equalObjects.js +0 -1
  1143. package/build/ext/lodash/_freeGlobal.js +0 -1
  1144. package/build/ext/lodash/_getAllKeys.js +0 -1
  1145. package/build/ext/lodash/_getAllKeysIn.js +0 -1
  1146. package/build/ext/lodash/_getMapData.js +0 -1
  1147. package/build/ext/lodash/_getMatchData.js +0 -1
  1148. package/build/ext/lodash/_getNative.js +0 -1
  1149. package/build/ext/lodash/_getPrototype.js +0 -1
  1150. package/build/ext/lodash/_getRawTag.js +0 -1
  1151. package/build/ext/lodash/_getSymbols.js +0 -1
  1152. package/build/ext/lodash/_getSymbolsIn.js +0 -1
  1153. package/build/ext/lodash/_getTag.js +0 -1
  1154. package/build/ext/lodash/_getValue.js +0 -1
  1155. package/build/ext/lodash/_hasPath.js +0 -1
  1156. package/build/ext/lodash/_hashClear.js +0 -1
  1157. package/build/ext/lodash/_hashDelete.js +0 -1
  1158. package/build/ext/lodash/_hashGet.js +0 -1
  1159. package/build/ext/lodash/_hashHas.js +0 -1
  1160. package/build/ext/lodash/_hashSet.js +0 -1
  1161. package/build/ext/lodash/_initCloneArray.js +0 -1
  1162. package/build/ext/lodash/_initCloneByTag.js +0 -1
  1163. package/build/ext/lodash/_initCloneObject.js +0 -1
  1164. package/build/ext/lodash/_isFlattenable.js +0 -1
  1165. package/build/ext/lodash/_isIndex.js +0 -1
  1166. package/build/ext/lodash/_isIterateeCall.js +0 -1
  1167. package/build/ext/lodash/_isKey.js +0 -1
  1168. package/build/ext/lodash/_isKeyable.js +0 -1
  1169. package/build/ext/lodash/_isMasked.js +0 -1
  1170. package/build/ext/lodash/_isPrototype.js +0 -1
  1171. package/build/ext/lodash/_isStrictComparable.js +0 -1
  1172. package/build/ext/lodash/_listCacheClear.js +0 -1
  1173. package/build/ext/lodash/_listCacheDelete.js +0 -1
  1174. package/build/ext/lodash/_listCacheGet.js +0 -1
  1175. package/build/ext/lodash/_listCacheHas.js +0 -1
  1176. package/build/ext/lodash/_listCacheSet.js +0 -1
  1177. package/build/ext/lodash/_mapCacheClear.js +0 -1
  1178. package/build/ext/lodash/_mapCacheDelete.js +0 -1
  1179. package/build/ext/lodash/_mapCacheGet.js +0 -1
  1180. package/build/ext/lodash/_mapCacheHas.js +0 -1
  1181. package/build/ext/lodash/_mapCacheSet.js +0 -1
  1182. package/build/ext/lodash/_mapToArray.js +0 -1
  1183. package/build/ext/lodash/_matchesStrictComparable.js +0 -1
  1184. package/build/ext/lodash/_memoizeCapped.js +0 -1
  1185. package/build/ext/lodash/_nativeCreate.js +0 -1
  1186. package/build/ext/lodash/_nativeKeys.js +0 -1
  1187. package/build/ext/lodash/_nativeKeysIn.js +0 -1
  1188. package/build/ext/lodash/_nodeUtil.js +0 -1
  1189. package/build/ext/lodash/_objectToString.js +0 -1
  1190. package/build/ext/lodash/_overArg.js +0 -1
  1191. package/build/ext/lodash/_overRest.js +0 -1
  1192. package/build/ext/lodash/_root.js +0 -1
  1193. package/build/ext/lodash/_setCacheAdd.js +0 -1
  1194. package/build/ext/lodash/_setCacheHas.js +0 -1
  1195. package/build/ext/lodash/_setToArray.js +0 -1
  1196. package/build/ext/lodash/_setToString.js +0 -1
  1197. package/build/ext/lodash/_shortOut.js +0 -1
  1198. package/build/ext/lodash/_stackClear.js +0 -1
  1199. package/build/ext/lodash/_stackDelete.js +0 -1
  1200. package/build/ext/lodash/_stackGet.js +0 -1
  1201. package/build/ext/lodash/_stackHas.js +0 -1
  1202. package/build/ext/lodash/_stackSet.js +0 -1
  1203. package/build/ext/lodash/_strictIndexOf.js +0 -1
  1204. package/build/ext/lodash/_stringToPath.js +0 -1
  1205. package/build/ext/lodash/_toKey.js +0 -1
  1206. package/build/ext/lodash/_toSource.js +0 -1
  1207. package/build/ext/lodash/cloneDeep.js +0 -1
  1208. package/build/ext/lodash/constant.js +0 -1
  1209. package/build/ext/lodash/debounce.js +0 -1
  1210. package/build/ext/lodash/eq.js +0 -1
  1211. package/build/ext/lodash/flatten.js +0 -1
  1212. package/build/ext/lodash/forEach.js +0 -1
  1213. package/build/ext/lodash/get.js +0 -1
  1214. package/build/ext/lodash/groupBy.js +0 -1
  1215. package/build/ext/lodash/hasIn.js +0 -1
  1216. package/build/ext/lodash/identity.js +0 -1
  1217. package/build/ext/lodash/isArguments.js +0 -1
  1218. package/build/ext/lodash/isArray.js +0 -1
  1219. package/build/ext/lodash/isArrayLike.js +0 -1
  1220. package/build/ext/lodash/isBuffer.js +0 -1
  1221. package/build/ext/lodash/isFunction.js +0 -1
  1222. package/build/ext/lodash/isLength.js +0 -1
  1223. package/build/ext/lodash/isMap.js +0 -1
  1224. package/build/ext/lodash/isObject.js +0 -1
  1225. package/build/ext/lodash/isObjectLike.js +0 -1
  1226. package/build/ext/lodash/isSet.js +0 -1
  1227. package/build/ext/lodash/isSymbol.js +0 -1
  1228. package/build/ext/lodash/isTypedArray.js +0 -1
  1229. package/build/ext/lodash/keys.js +0 -1
  1230. package/build/ext/lodash/keysIn.js +0 -1
  1231. package/build/ext/lodash/memoize.js +0 -1
  1232. package/build/ext/lodash/noop.js +0 -1
  1233. package/build/ext/lodash/now.js +0 -1
  1234. package/build/ext/lodash/property.js +0 -1
  1235. package/build/ext/lodash/sortBy.js +0 -1
  1236. package/build/ext/lodash/stubArray.js +0 -1
  1237. package/build/ext/lodash/stubFalse.js +0 -1
  1238. package/build/ext/lodash/toNumber.js +0 -1
  1239. package/build/ext/lodash/toString.js +0 -1
  1240. package/build/ext/lodash/uniq.js +0 -1
  1241. package/build/ext/lodash/uniqBy.js +0 -1
  1242. package/build/ext/lzutf8/build/production/lzutf8.js +0 -11
  1243. package/build/ext/object-assign/index.js +0 -6
  1244. package/build/ext/optimism/lib/bundle.esm.js +0 -1
  1245. package/build/ext/prop-types/checkPropTypes.js +0 -1
  1246. package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
  1247. package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
  1248. package/build/ext/prop-types/index.js +0 -1
  1249. package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
  1250. package/build/ext/query-string/index.js +0 -1
  1251. package/build/ext/react-is/cjs/react-is.development.js +0 -9
  1252. package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
  1253. package/build/ext/react-is/index.js +0 -1
  1254. package/build/ext/react-property/lib/index.js +0 -1
  1255. package/build/ext/react-property/lib/possibleStandardNamesOptimized.js +0 -1
  1256. package/build/ext/react-tooltip/dist/index.es.js +0 -1
  1257. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/bytesToUuid.js +0 -1
  1258. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/rng.js +0 -1
  1259. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/v4.js +0 -1
  1260. package/build/ext/readable-stream/errors.js +0 -1
  1261. package/build/ext/readable-stream/lib/_registry.js +0 -1
  1262. package/build/ext/readable-stream/lib/_stream_duplex.js +0 -1
  1263. package/build/ext/readable-stream/lib/_stream_passthrough.js +0 -1
  1264. package/build/ext/readable-stream/lib/_stream_readable.js +0 -1
  1265. package/build/ext/readable-stream/lib/_stream_transform.js +0 -1
  1266. package/build/ext/readable-stream/lib/_stream_writable.js +0 -1
  1267. package/build/ext/readable-stream/lib/internal/streams/async_iterator.js +0 -1
  1268. package/build/ext/readable-stream/lib/internal/streams/buffer_list.js +0 -1
  1269. package/build/ext/readable-stream/lib/internal/streams/destroy.js +0 -1
  1270. package/build/ext/readable-stream/lib/internal/streams/end-of-stream.js +0 -1
  1271. package/build/ext/readable-stream/lib/internal/streams/from.js +0 -1
  1272. package/build/ext/readable-stream/lib/internal/streams/pipeline.js +0 -1
  1273. package/build/ext/readable-stream/lib/internal/streams/state.js +0 -1
  1274. package/build/ext/readable-stream/lib/internal/streams/stream.js +0 -1
  1275. package/build/ext/readable-stream/readable.js +0 -1
  1276. package/build/ext/safe-buffer/index.js +0 -1
  1277. package/build/ext/split-on-first/index.js +0 -1
  1278. package/build/ext/strict-uri-encode/index.js +0 -1
  1279. package/build/ext/string_decoder/lib/string_decoder.js +0 -1
  1280. package/build/ext/style-inject/dist/style-inject.es.js +0 -1
  1281. package/build/ext/style-to-js/cjs/index.js +0 -1
  1282. package/build/ext/style-to-js/cjs/utilities.js +0 -1
  1283. package/build/ext/style-to-object/index.js +0 -1
  1284. package/build/ext/symbol-observable/es/index.js +0 -1
  1285. package/build/ext/symbol-observable/es/ponyfill.js +0 -1
  1286. package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +0 -15
  1287. package/build/ext/ts-invariant/lib/invariant.esm.js +0 -1
  1288. package/build/ext/tslib/tslib.es6.js +0 -15
  1289. package/build/ext/util-deprecate/node.js +0 -1
  1290. package/build/ext/uuid/dist/esm-browser/regex.js +0 -1
  1291. package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
  1292. package/build/ext/uuid/dist/esm-browser/stringify.js +0 -1
  1293. package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
  1294. package/build/ext/uuid/dist/esm-browser/validate.js +0 -1
  1295. package/build/ext/zen-observable/index.js +0 -1
  1296. package/build/ext/zen-observable/lib/Observable.js +0 -1
  1297. package/build/ikas.js +0 -30
  1298. package/build/index.d.ts +0 -9
  1299. package/build/index.js +0 -1
  1300. package/build/models/data/blog/index.d.ts +0 -67
  1301. package/build/models/data/blog/index.js +0 -1
  1302. package/build/models/data/brand/index.d.ts +0 -21
  1303. package/build/models/data/brand/index.js +0 -1
  1304. package/build/models/data/cart/index.d.ts +0 -47
  1305. package/build/models/data/cart/index.js +0 -1
  1306. package/build/models/data/category/index.d.ts +0 -52
  1307. package/build/models/data/category/index.js +0 -1
  1308. package/build/models/data/checkout/index.d.ts +0 -103
  1309. package/build/models/data/checkout/index.js +0 -1
  1310. package/build/models/data/checkout-settings/index.d.ts +0 -25
  1311. package/build/models/data/checkout-settings/index.js +0 -1
  1312. package/build/models/data/city/index.d.ts +0 -4
  1313. package/build/models/data/contact-form/index.d.ts +0 -7
  1314. package/build/models/data/contact-form/index.js +0 -1
  1315. package/build/models/data/country/index.d.ts +0 -8
  1316. package/build/models/data/customer/address/index.d.ts +0 -52
  1317. package/build/models/data/customer/address/index.js +0 -1
  1318. package/build/models/data/customer/attribute-value/index.d.ts +0 -9
  1319. package/build/models/data/customer/attribute-value/index.js +0 -1
  1320. package/build/models/data/customer/index.d.ts +0 -36
  1321. package/build/models/data/customer/index.js +0 -1
  1322. package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +0 -5
  1323. package/build/models/data/customer-attribute/customer-attribute-option/index.js +0 -1
  1324. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +0 -17
  1325. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +0 -1
  1326. package/build/models/data/customer-attribute/index.d.ts +0 -35
  1327. package/build/models/data/customer-attribute/index.js +0 -1
  1328. package/build/models/data/customer-review/index.d.ts +0 -26
  1329. package/build/models/data/customer-review/index.js +0 -1
  1330. package/build/models/data/customer-review-settings/index.d.ts +0 -4
  1331. package/build/models/data/customer-review-summary/index.d.ts +0 -16
  1332. package/build/models/data/customer-review-summary/index.js +0 -1
  1333. package/build/models/data/district/index.d.ts +0 -4
  1334. package/build/models/data/favorite-product/index.d.ts +0 -6
  1335. package/build/models/data/favorite-product/index.js +0 -1
  1336. package/build/models/data/html-meta-data/index.d.ts +0 -23
  1337. package/build/models/data/html-meta-data/index.js +0 -1
  1338. package/build/models/data/image/index.d.ts +0 -19
  1339. package/build/models/data/image/index.js +0 -1
  1340. package/build/models/data/index.d.ts +0 -44
  1341. package/build/models/data/installment-info/index.d.ts +0 -30
  1342. package/build/models/data/installment-info/index.js +0 -1
  1343. package/build/models/data/language/index.d.ts +0 -6
  1344. package/build/models/data/merchant-settings/index.d.ts +0 -8
  1345. package/build/models/data/merchant-settings/index.js +0 -1
  1346. package/build/models/data/order/address/index.d.ts +0 -51
  1347. package/build/models/data/order/address/index.js +0 -1
  1348. package/build/models/data/order/adjustment/index.d.ts +0 -16
  1349. package/build/models/data/order/gift-line/index.d.ts +0 -4
  1350. package/build/models/data/order/index.d.ts +0 -147
  1351. package/build/models/data/order/index.js +0 -1
  1352. package/build/models/data/order/line-item/discount/index.d.ts +0 -11
  1353. package/build/models/data/order/line-item/discount/index.js +0 -1
  1354. package/build/models/data/order/line-item/index.d.ts +0 -42
  1355. package/build/models/data/order/line-item/index.js +0 -1
  1356. package/build/models/data/order/line-item/options/index.d.ts +0 -11
  1357. package/build/models/data/order/line-item/options/index.js +0 -1
  1358. package/build/models/data/order/line-item/options/options-value/index.d.ts +0 -6
  1359. package/build/models/data/order/line-item/options/options-value/index.js +0 -1
  1360. package/build/models/data/order/line-item/variant/index.d.ts +0 -32
  1361. package/build/models/data/order/line-item/variant/index.js +0 -1
  1362. package/build/models/data/order/refund/index.d.ts +0 -6
  1363. package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
  1364. package/build/models/data/order/refund/settings.d.ts +0 -6
  1365. package/build/models/data/order/refund/settings.js +0 -1
  1366. package/build/models/data/order/shipping-line/index.d.ts +0 -7
  1367. package/build/models/data/order-transaction/index.d.ts +0 -74
  1368. package/build/models/data/order-transaction/index.js +0 -1
  1369. package/build/models/data/payment-gateway/index.d.ts +0 -61
  1370. package/build/models/data/payment-gateway/index.js +0 -1
  1371. package/build/models/data/product/attribute-value/index.d.ts +0 -20
  1372. package/build/models/data/product/attribute-value/index.js +0 -1
  1373. package/build/models/data/product/index.d.ts +0 -36
  1374. package/build/models/data/product/index.js +0 -1
  1375. package/build/models/data/product/variant/index.d.ts +0 -27
  1376. package/build/models/data/product/variant/index.js +0 -1
  1377. package/build/models/data/product/variant/price/index.d.ts +0 -11
  1378. package/build/models/data/product/variant/price/index.js +0 -1
  1379. package/build/models/data/product/variant-type/index.d.ts +0 -6
  1380. package/build/models/data/product/variant-type/index.js +0 -1
  1381. package/build/models/data/product-attribute/index.d.ts +0 -34
  1382. package/build/models/data/product-attribute/index.js +0 -1
  1383. package/build/models/data/product-attribute/product-attribute-option/index.d.ts +0 -5
  1384. package/build/models/data/product-attribute/product-attribute-option/index.js +0 -1
  1385. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
  1386. package/build/models/data/product-attribute/product-attribute-table-cell/index.js +0 -1
  1387. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
  1388. package/build/models/data/product-attribute/product-attribute-table-template/index.js +0 -1
  1389. package/build/models/data/product-back-in-stock-settings/index.d.ts +0 -3
  1390. package/build/models/data/product-campaing/campaign/index.d.ts +0 -41
  1391. package/build/models/data/product-campaing/campaign/index.js +0 -1
  1392. package/build/models/data/product-campaing/filter/index.d.ts +0 -13
  1393. package/build/models/data/product-campaing/filter/index.js +0 -1
  1394. package/build/models/data/product-campaing/index.d.ts +0 -6
  1395. package/build/models/data/product-campaing/index.js +0 -1
  1396. package/build/models/data/product-campaing/product-buyx-then-gety/index.d.ts +0 -19
  1397. package/build/models/data/product-campaing/product-buyx-then-gety/index.js +0 -1
  1398. package/build/models/data/product-campaing/product-campaign-date-range-field/index.d.ts +0 -5
  1399. package/build/models/data/product-campaing/product-campaign-date-range-field/index.js +0 -1
  1400. package/build/models/data/product-campaing/product-fixed-discount/index.d.ts +0 -13
  1401. package/build/models/data/product-campaing/product-fixed-discount/index.js +0 -1
  1402. package/build/models/data/product-cart-item-options/index.d.ts +0 -6
  1403. package/build/models/data/product-cart-item-options/index.js +0 -1
  1404. package/build/models/data/product-filter/index.d.ts +0 -114
  1405. package/build/models/data/product-filter/index.js +0 -1
  1406. package/build/models/data/product-option-set/index.d.ts +0 -114
  1407. package/build/models/data/product-option-set/index.js +0 -1
  1408. package/build/models/data/product-tag/index.d.ts +0 -5
  1409. package/build/models/data/product-tag/index.js +0 -1
  1410. package/build/models/data/raffle/index.d.ts +0 -66
  1411. package/build/models/data/raffle/index.js +0 -1
  1412. package/build/models/data/sales-channel/index.d.ts +0 -18
  1413. package/build/models/data/sales-channel/index.js +0 -1
  1414. package/build/models/data/simple-product/index.d.ts +0 -138
  1415. package/build/models/data/slider/index.d.ts +0 -5
  1416. package/build/models/data/slider/index.js +0 -1
  1417. package/build/models/data/state/index.d.ts +0 -5
  1418. package/build/models/data/storefront/domain/index.d.ts +0 -8
  1419. package/build/models/data/storefront/domain/index.js +0 -1
  1420. package/build/models/data/storefront/index.d.ts +0 -25
  1421. package/build/models/data/storefront/index.js +0 -1
  1422. package/build/models/data/storefront/localization/index.d.ts +0 -7
  1423. package/build/models/data/storefront/localization/index.js +0 -1
  1424. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -5
  1425. package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
  1426. package/build/models/data/storefront/routing/index.d.ts +0 -11
  1427. package/build/models/data/storefront/routing/index.js +0 -1
  1428. package/build/models/data/storefront/theme/index.d.ts +0 -13
  1429. package/build/models/data/storefront/theme/index.js +0 -1
  1430. package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
  1431. package/build/models/data/storefront/theme-localization/index.js +0 -1
  1432. package/build/models/data/variant-type/index.d.ts +0 -26
  1433. package/build/models/data/variant-type/index.js +0 -1
  1434. package/build/models/data/variant-type/variant-value/index.d.ts +0 -11
  1435. package/build/models/data/variant-type/variant-value/index.js +0 -1
  1436. package/build/models/index.d.ts +0 -3
  1437. package/build/models/theme/component/index.d.ts +0 -19
  1438. package/build/models/theme/component/index.js +0 -1
  1439. package/build/models/theme/component/prop/index.d.ts +0 -63
  1440. package/build/models/theme/component/prop/index.js +0 -1
  1441. package/build/models/theme/custom-data/index.d.ts +0 -43
  1442. package/build/models/theme/custom-data/index.js +0 -1
  1443. package/build/models/theme/index.d.ts +0 -20
  1444. package/build/models/theme/page/component/index.d.ts +0 -6
  1445. package/build/models/theme/page/component/index.js +0 -1
  1446. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
  1447. package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
  1448. package/build/models/theme/page/component/prop-value/blog-category-list.d.ts +0 -7
  1449. package/build/models/theme/page/component/prop-value/blog-category-list.js +0 -1
  1450. package/build/models/theme/page/component/prop-value/blog-category.d.ts +0 -5
  1451. package/build/models/theme/page/component/prop-value/blog-category.js +0 -1
  1452. package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
  1453. package/build/models/theme/page/component/prop-value/blog-list.js +0 -1
  1454. package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
  1455. package/build/models/theme/page/component/prop-value/blog.js +0 -1
  1456. package/build/models/theme/page/component/prop-value/brand-list.d.ts +0 -9
  1457. package/build/models/theme/page/component/prop-value/brand-list.js +0 -1
  1458. package/build/models/theme/page/component/prop-value/brand.d.ts +0 -5
  1459. package/build/models/theme/page/component/prop-value/brand.js +0 -1
  1460. package/build/models/theme/page/component/prop-value/category-list.d.ts +0 -9
  1461. package/build/models/theme/page/component/prop-value/category-list.js +0 -1
  1462. package/build/models/theme/page/component/prop-value/category.d.ts +0 -5
  1463. package/build/models/theme/page/component/prop-value/category.js +0 -1
  1464. package/build/models/theme/page/component/prop-value/link.d.ts +0 -19
  1465. package/build/models/theme/page/component/prop-value/link.js +0 -1
  1466. package/build/models/theme/page/component/prop-value/product-detail.d.ts +0 -6
  1467. package/build/models/theme/page/component/prop-value/product-detail.js +0 -1
  1468. package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -18
  1469. package/build/models/theme/page/component/prop-value/product-list.js +0 -1
  1470. package/build/models/theme/page/component/prop-value/raffle-list.d.ts +0 -5
  1471. package/build/models/theme/page/component/prop-value/raffle-list.js +0 -1
  1472. package/build/models/theme/page/component/prop-value/raffle.d.ts +0 -5
  1473. package/build/models/theme/page/component/prop-value/raffle.js +0 -1
  1474. package/build/models/theme/page/index.d.ts +0 -44
  1475. package/build/models/theme/page/index.js +0 -1
  1476. package/build/models/theme/settings/color/index.d.ts +0 -14
  1477. package/build/models/theme/settings/color/index.js +0 -1
  1478. package/build/models/theme/settings/favicon/index.d.ts +0 -4
  1479. package/build/models/theme/settings/favicon/index.js +0 -1
  1480. package/build/models/theme/settings/font-family/index.d.ts +0 -5
  1481. package/build/models/theme/settings/font-family/index.js +0 -1
  1482. package/build/models/theme/settings/index.d.ts +0 -15
  1483. package/build/models/theme/settings/index.js +0 -1
  1484. package/build/models/theme/theme.d.ts +0 -16
  1485. package/build/models/theme/theme.js +0 -1
  1486. package/build/models/ui/blog-category-list/index.d.ts +0 -52
  1487. package/build/models/ui/blog-category-list/index.js +0 -1
  1488. package/build/models/ui/blog-list/index.d.ts +0 -56
  1489. package/build/models/ui/blog-list/index.js +0 -1
  1490. package/build/models/ui/brand-list/index.d.ts +0 -61
  1491. package/build/models/ui/brand-list/index.js +0 -1
  1492. package/build/models/ui/category-list/index.d.ts +0 -61
  1493. package/build/models/ui/category-list/index.js +0 -1
  1494. package/build/models/ui/component-renderer/index.d.ts +0 -7
  1495. package/build/models/ui/component-renderer/index.js +0 -1
  1496. package/build/models/ui/customer-review-list/index.d.ts +0 -43
  1497. package/build/models/ui/customer-review-list/index.js +0 -1
  1498. package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
  1499. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  1500. package/build/models/ui/index.d.ts +0 -27
  1501. package/build/models/ui/navigation-link/index.d.ts +0 -8
  1502. package/build/models/ui/navigation-link/index.js +0 -1
  1503. package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
  1504. package/build/models/ui/product-attribute-detail/index.js +0 -1
  1505. package/build/models/ui/product-attribute-list/index.d.ts +0 -9
  1506. package/build/models/ui/product-attribute-list/index.js +0 -1
  1507. package/build/models/ui/product-detail/index.d.ts +0 -39
  1508. package/build/models/ui/product-detail/index.js +0 -1
  1509. package/build/models/ui/product-list/index.d.ts +0 -141
  1510. package/build/models/ui/product-list/index.js +0 -1
  1511. package/build/models/ui/raffle-list/index.d.ts +0 -54
  1512. package/build/models/ui/raffle-list/index.js +0 -1
  1513. package/build/models/ui/validator/form/account-info.d.ts +0 -42
  1514. package/build/models/ui/validator/form/account-info.js +0 -1
  1515. package/build/models/ui/validator/form/address.d.ts +0 -78
  1516. package/build/models/ui/validator/form/address.js +0 -1
  1517. package/build/models/ui/validator/form/contact-form.d.ts +0 -45
  1518. package/build/models/ui/validator/form/contact-form.js +0 -1
  1519. package/build/models/ui/validator/form/customer-review.d.ts +0 -37
  1520. package/build/models/ui/validator/form/customer-review.js +0 -1
  1521. package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
  1522. package/build/models/ui/validator/form/forgot-password.js +0 -1
  1523. package/build/models/ui/validator/form/login.d.ts +0 -35
  1524. package/build/models/ui/validator/form/login.js +0 -1
  1525. package/build/models/ui/validator/form/raffle-form.d.ts +0 -60
  1526. package/build/models/ui/validator/form/raffle-form.js +0 -1
  1527. package/build/models/ui/validator/form/recover-password.d.ts +0 -36
  1528. package/build/models/ui/validator/form/recover-password.js +0 -1
  1529. package/build/models/ui/validator/form/register.d.ts +0 -52
  1530. package/build/models/ui/validator/form/register.js +0 -1
  1531. package/build/models/ui/validator/index.d.ts +0 -27
  1532. package/build/models/ui/validator/index.js +0 -1
  1533. package/build/models/ui/validator/rules/index.d.ts +0 -91
  1534. package/build/models/ui/validator/rules/index.js +0 -1
  1535. package/build/pages/404.d.ts +0 -6
  1536. package/build/pages/404.js +0 -1
  1537. package/build/pages/[slug]/index.d.ts +0 -7
  1538. package/build/pages/_slug_/index.js +0 -1
  1539. package/build/pages/account/addresses.d.ts +0 -6
  1540. package/build/pages/account/addresses.js +0 -1
  1541. package/build/pages/account/favorite-products.d.ts +0 -6
  1542. package/build/pages/account/favorite-products.js +0 -1
  1543. package/build/pages/account/forgot-password.d.ts +0 -6
  1544. package/build/pages/account/forgot-password.js +0 -1
  1545. package/build/pages/account/index.d.ts +0 -6
  1546. package/build/pages/account/index.js +0 -1
  1547. package/build/pages/account/login.d.ts +0 -6
  1548. package/build/pages/account/login.js +0 -1
  1549. package/build/pages/account/orders/[id].d.ts +0 -6
  1550. package/build/pages/account/orders/_id_.js +0 -1
  1551. package/build/pages/account/orders/index.d.ts +0 -6
  1552. package/build/pages/account/orders/index.js +0 -1
  1553. package/build/pages/account/raffles.d.ts +0 -6
  1554. package/build/pages/account/raffles.js +0 -1
  1555. package/build/pages/account/recover-password.d.ts +0 -6
  1556. package/build/pages/account/recover-password.js +0 -1
  1557. package/build/pages/account/register.d.ts +0 -6
  1558. package/build/pages/account/register.js +0 -1
  1559. package/build/pages/blog/[slug].d.ts +0 -7
  1560. package/build/pages/blog/_slug_.js +0 -1
  1561. package/build/pages/blog/index.d.ts +0 -6
  1562. package/build/pages/blog/index.js +0 -1
  1563. package/build/pages/cart.d.ts +0 -6
  1564. package/build/pages/cart.js +0 -1
  1565. package/build/pages/checkout.d.ts +0 -18
  1566. package/build/pages/checkout.js +0 -1
  1567. package/build/pages/editor.d.ts +0 -10
  1568. package/build/pages/editor.js +0 -1
  1569. package/build/pages/home.d.ts +0 -6
  1570. package/build/pages/home.js +0 -1
  1571. package/build/pages/index.d.ts +0 -22
  1572. package/build/pages/pages/[slug].d.ts +0 -7
  1573. package/build/pages/pages/_slug_.js +0 -1
  1574. package/build/pages/raffle/[slug].d.ts +0 -7
  1575. package/build/pages/raffle/_slug_.js +0 -1
  1576. package/build/pages/raffle/index.d.ts +0 -6
  1577. package/build/pages/raffle/index.js +0 -1
  1578. package/build/pages/search.d.ts +0 -6
  1579. package/build/pages/search.js +0 -1
  1580. package/build/providers/helpers/raffles.d.ts +0 -2
  1581. package/build/providers/helpers/raffles.js +0 -1
  1582. package/build/providers/page-data-get.d.ts +0 -67
  1583. package/build/providers/page-data-get.js +0 -1
  1584. package/build/providers/page-data-init.d.ts +0 -66
  1585. package/build/providers/page-data-init.js +0 -1
  1586. package/build/providers/page-data-next.d.ts +0 -268
  1587. package/build/providers/page-data-next.js +0 -1
  1588. package/build/providers/placeholders.d.ts +0 -7
  1589. package/build/providers/placeholders.js +0 -1
  1590. package/build/providers/prop-value/attribute-list.d.ts +0 -12
  1591. package/build/providers/prop-value/attribute-list.js +0 -1
  1592. package/build/providers/prop-value/attribute.d.ts +0 -12
  1593. package/build/providers/prop-value/attribute.js +0 -1
  1594. package/build/providers/prop-value/blog-category-list.d.ts +0 -7
  1595. package/build/providers/prop-value/blog-category-list.js +0 -1
  1596. package/build/providers/prop-value/blog-category.d.ts +0 -11
  1597. package/build/providers/prop-value/blog-category.js +0 -1
  1598. package/build/providers/prop-value/blog-list.d.ts +0 -9
  1599. package/build/providers/prop-value/blog-list.js +0 -1
  1600. package/build/providers/prop-value/blog.d.ts +0 -11
  1601. package/build/providers/prop-value/blog.js +0 -1
  1602. package/build/providers/prop-value/boolean.d.ts +0 -6
  1603. package/build/providers/prop-value/boolean.js +0 -1
  1604. package/build/providers/prop-value/brand-list.d.ts +0 -7
  1605. package/build/providers/prop-value/brand-list.js +0 -1
  1606. package/build/providers/prop-value/brand.d.ts +0 -11
  1607. package/build/providers/prop-value/brand.js +0 -1
  1608. package/build/providers/prop-value/category-list.d.ts +0 -7
  1609. package/build/providers/prop-value/category-list.js +0 -1
  1610. package/build/providers/prop-value/category.d.ts +0 -11
  1611. package/build/providers/prop-value/category.js +0 -1
  1612. package/build/providers/prop-value/color.d.ts +0 -6
  1613. package/build/providers/prop-value/color.js +0 -1
  1614. package/build/providers/prop-value/custom.d.ts +0 -45
  1615. package/build/providers/prop-value/custom.js +0 -1
  1616. package/build/providers/prop-value/image-list.d.ts +0 -7
  1617. package/build/providers/prop-value/image-list.js +0 -1
  1618. package/build/providers/prop-value/image.d.ts +0 -7
  1619. package/build/providers/prop-value/image.js +0 -1
  1620. package/build/providers/prop-value/index.d.ts +0 -3
  1621. package/build/providers/prop-value/link.d.ts +0 -16
  1622. package/build/providers/prop-value/link.js +0 -1
  1623. package/build/providers/prop-value/product-detail.d.ts +0 -11
  1624. package/build/providers/prop-value/product-detail.js +0 -1
  1625. package/build/providers/prop-value/product-list.d.ts +0 -15
  1626. package/build/providers/prop-value/product-list.js +0 -1
  1627. package/build/providers/prop-value/raffle-list.d.ts +0 -5
  1628. package/build/providers/prop-value/raffle-list.js +0 -1
  1629. package/build/providers/prop-value/raffle.d.ts +0 -11
  1630. package/build/providers/prop-value/raffle.js +0 -1
  1631. package/build/providers/prop-value/rich-text.d.ts +0 -6
  1632. package/build/providers/prop-value/rich-text.js +0 -1
  1633. package/build/providers/prop-value/slider.d.ts +0 -11
  1634. package/build/providers/prop-value/slider.js +0 -1
  1635. package/build/providers/prop-value/text.d.ts +0 -6
  1636. package/build/providers/prop-value/text.js +0 -1
  1637. package/build/scripts/generators/api/index.d.ts +0 -5
  1638. package/build/scripts/generators/api/index.js +0 -1
  1639. package/build/scripts/generators/api/info.d.ts +0 -12
  1640. package/build/scripts/generators/api/info.js +0 -1
  1641. package/build/scripts/generators/components/index.d.ts +0 -6
  1642. package/build/scripts/generators/components/index.js +0 -1
  1643. package/build/scripts/generators/config/content.d.ts +0 -37
  1644. package/build/scripts/generators/config/content.js +0 -1
  1645. package/build/scripts/generators/config/index.d.ts +0 -8
  1646. package/build/scripts/generators/config/index.js +0 -1
  1647. package/build/scripts/generators/index.d.ts +0 -7
  1648. package/build/scripts/generators/pages/index.d.ts +0 -7
  1649. package/build/scripts/generators/pages/index.js +0 -1
  1650. package/build/scripts/generators/pages/info.d.ts +0 -14
  1651. package/build/scripts/generators/pages/info.js +0 -1
  1652. package/build/scripts/generators/store/content.d.ts +0 -1
  1653. package/build/scripts/generators/store/content.js +0 -1
  1654. package/build/scripts/generators/store/index.d.ts +0 -3
  1655. package/build/scripts/generators/store/index.js +0 -1
  1656. package/build/scripts/generators/theme/index.d.ts +0 -6
  1657. package/build/scripts/generators/theme/index.js +0 -1
  1658. package/build/scripts/generators/types/index.d.ts +0 -21
  1659. package/build/scripts/generators/types/index.js +0 -1
  1660. package/build/scripts/ikas.d.ts +0 -2
  1661. package/build/store/base.d.ts +0 -27
  1662. package/build/store/base.js +0 -1
  1663. package/build/store/cart.d.ts +0 -29
  1664. package/build/store/cart.js +0 -1
  1665. package/build/store/customer.d.ts +0 -96
  1666. package/build/store/customer.js +0 -1
  1667. package/build/store/index.d.ts +0 -1
  1668. package/build/storefront/index.d.ts +0 -60
  1669. package/build/storefront/index.js +0 -1
  1670. package/build/utils/constants.d.ts +0 -1
  1671. package/build/utils/constants.js +0 -1
  1672. package/build/utils/currency.d.ts +0 -7
  1673. package/build/utils/currency.js +0 -1
  1674. package/build/utils/fs.d.ts +0 -28
  1675. package/build/utils/fs.js +0 -1
  1676. package/build/utils/google-fonts.d.ts +0 -2
  1677. package/build/utils/google-fonts.js +0 -1
  1678. package/build/utils/helper.d.ts +0 -11
  1679. package/build/utils/helper.js +0 -1
  1680. package/build/utils/i18n.d.ts +0 -20
  1681. package/build/utils/i18n.js +0 -1
  1682. package/build/utils/index.d.ts +0 -3
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import { ImageProps as NextImageProps } from "next/image.js";
3
- import { IkasImage } from "../../models";
4
- export declare const Image: React.FC<ImageProps>;
5
- declare type ImageProps = Omit<NextImageProps, "src" | "srcSet" | "blurDataURL" | "placeholder" | "loader" | "quality"> & {
6
- priority?: boolean;
7
- image: IkasImage;
8
- useBlur?: boolean;
9
- };
10
- export {};
@@ -1 +0,0 @@
1
- import{__rest as r,__assign as e}from'../../ext/tslib/tslib.es6.js';import*as t from"react";import a from"next/image.js";var o=[180,360,540,720,900,1080,1296,1512,1728,1950,2560,3840],u=function(u){var i=u.image,l=u.useBlur,m=r(u,["image","useBlur"]);return t.createElement(a,e({},m,{loader:function(r){var e=r.width,t=o.reduce((function(r,t){return Math.abs(t-e)<Math.abs(r-e)?t:r}));return i.getSrc(t)},quality:100,src:i.src,alt:m.alt||"Image",placeholder:l?"blur":"empty",blurDataURL:l?i.getSrc(10):void 0}))};export{u as Image};
@@ -1,4 +0,0 @@
1
- export { IkasPage } from "./page";
2
- export { IkasPageHead } from "./page/head";
3
- export { default as IkaspageEditor } from "./page-editor";
4
- export { Image } from "./image";
@@ -1,21 +0,0 @@
1
- import * as React from "react";
2
- import { IkasThemeSettings } from "../../models";
3
- import { IkasPageComponentPropValue } from "../../providers/page-data-get";
4
- declare type Props = {
5
- pageComponentPropValue: IkasPageComponentPropValue;
6
- index: number;
7
- settings: IkasThemeSettings;
8
- };
9
- export declare class ThemeComponent extends React.Component<Props> {
10
- state: {
11
- hasError: boolean;
12
- };
13
- constructor(props: Props);
14
- static getDerivedStateFromError(error: any): {
15
- hasError: boolean;
16
- };
17
- get hasNullValue(): boolean;
18
- get Component(): any;
19
- render(): JSX.Element;
20
- }
21
- export {};
@@ -1 +0,0 @@
1
- import{__extends as e,__assign as r}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{makeObservable as t,computed as n}from"mobx";import{IkasStorefrontConfig as p}from"../../storefront/index.js";import{IkasPageDataInit as i}from"../../providers/page-data-init.js";import{Observer as a}from"mobx-react-lite";import{IkasThemeComponentPropType as u}from"../../models/theme/component/prop/index.js";var l=function(l){function m(e){var r=l.call(this,e)||this;return r.state={hasError:!1},t(r,{hasNullValue:n,Component:n}),r}return e(m,l),m.getDerivedStateFromError=function(e){return console.error(e),{hasError:!0}},Object.defineProperty(m.prototype,"hasNullValue",{get:function(){var e=this.props.pageComponentPropValue,r=e.propValues;return e.component.props.some((function(o){if(o.isRequired){var t=(r||{})[o.name],n=null==e?void 0:e.component.props.find((function(e){return e.id===o.requiredPropId}));if(n){var p=(r||{})[n.name];if(n.type===u.BOOLEAN&&!p||n.type===u.CUSTOM&&p!==o.requiredEnumOptionValue)return!1}return null===t||null==t}}))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"Component",{get:function(){var e=this.props.pageComponentPropValue,r=p.currentPageComponents,o=e.pageComponent;return r?r[o.componentId]:null},enumerable:!1,configurable:!0}),m.prototype.render=function(){var e=this;return o.createElement(a,null,(function(){var t=e.props,n=t.index,a=t.pageComponentPropValue,u=t.settings,l=p.store,m=e.Component,s=a.pageComponent,c=a.propValues;return m?e.state.hasError?null:o.createElement("div",{id:n+""},e.hasNullValue?null:o.createElement(m,r({key:s.id},c,{settings:u,store:l,pageSpecificData:i.pageSpecificData}))):(console.error("COMPONENT NOT FOUND!"),null)}))},m}(o.Component);export{l as ThemeComponent};
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import { IkasThemePageType } from "../../models";
3
- declare type Props = {
4
- pageType: IkasThemePageType;
5
- pageTitle?: string | null;
6
- pageDescription?: string | null;
7
- canonicalUrl?: string | null;
8
- pageSpecificDataStr?: string;
9
- merchantSettingsStr?: string;
10
- addOgpMetas?: boolean;
11
- productReviewSummary?: string | null;
12
- };
13
- export declare const IkasPageHead: React.FC<Props>;
14
- export {};
@@ -1 +0,0 @@
1
- import{__assign as t,__spreadArray as e}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import r from"next/head.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as n}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasMerchantSettings as s}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as d}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as m}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as p}from"../../storefront/index.js";import{IkasPageDataInit as l}from"../../providers/page-data-init.js";var c=i((function(i){var c=i.pageType,u=i.pageTitle,f=i.pageDescription,h=i.canonicalUrl,g=i.pageSpecificDataStr,v=i.merchantSettingsStr,j=i.addOgpMetas,x=i.productReviewSummary,y="undefined"!=typeof window;o.useEffect((function(){var t;document.documentElement.lang=(null===(t=p.routings.find((function(t){return t.id===p.storefrontRoutingId})))||void 0===t?void 0:t.locale)||"tr"}),[c]);var b=o.useMemo((function(){if(v)return new s(JSON.parse(v))}),[v]),w=o.useMemo((function(){if(!g)return g;var t=JSON.parse(g);switch(c){case d.PRODUCT:return new m(t.product,t.selectedVariantValues);case d.CATEGORY:return new n(t);case d.BRAND:return new a(t);default:return g}}),[g]),O=o.useMemo((function(){if(w&&w.href)return"https://".concat(p.domain).concat(w.href)}),[w]),S=o.useMemo((function(){var t,e=[];if(j)if(e.push({property:"og:type",content:"website"}),e.push({property:"og:site_name",content:"https://"+p.domain}),u&&e.push({property:"og:title",content:u}),f&&e.push({property:"og:description",content:f}),e.push({property:"og:url",content:O||(y?window.location.href:"")||"https://".concat(p.domain)}),w&&c===d.PRODUCT){var o=w;o.selectedVariant.mainImage&&e.push({property:"og:image",content:null===(t=o.selectedVariant.mainImage)||void 0===t?void 0:t.src})}else b&&e.push({property:"og:image",content:b.logo.src});return e}),[u,w,O,f,b,j,b]),V=o.useMemo((function(){var o=[];if(b){var i={"@context":"https://schema.org","@type":"Website",url:"https://"+p.domain},r=function(t){var e,o;return{"@context":"https://schema.org","@type":"Store",name:null==t?void 0:t.merchantName,logo:null===(e=null==t?void 0:t.logo)||void 0===e?void 0:e.src,image:null===(o=null==t?void 0:t.logo)||void 0===o?void 0:o.src,url:"https://"+p.domain}}(b);o.push(i),o.push(r)}if(w&&c===d.PRODUCT){var a=function(e,o){var i,r;try{"undefined"!=typeof window&&l._initProductDetailOnBrowser(e);var a="https://".concat(p.domain).concat(e.href);return t(t({"@context":"https://schema.org/","@type":"Product",name:e.product.name,description:null===(i=e.product.metaData)||void 0===i?void 0:i.description,image:e.selectedVariant.images.map((function(t){return t.src})),productId:e.selectedVariant.id,sku:e.selectedVariant.sku,mpn:e.selectedVariant.barcodeList.length?e.selectedVariant.barcodeList[0]:"",brand:{"@type":"Brand",name:null===(r=e.product.brand)||void 0===r?void 0:r.name}},o&&{aggregateRating:{"@type":"AggregateRating",ratingValue:o.averageStar,reviewCount:o.totalReview}}),{offers:{"@type":"Offer",url:a,priceCurrency:e.selectedVariant.price.currency||"TRY",price:e.selectedVariant.price.finalPrice,priceValidUntil:"",itemCondition:"https://schema.org/NewCondition",availability:e.selectedVariant.stock>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}})}catch(t){}}(w,x?JSON.parse(x):null);a&&o.push(a)}if(w&&c===d.CATEGORY){var n=function(t){var e,o,i;try{return{"@context":"http://schema.org","@type":"CollectionPage",url:"https://".concat(p.domain).concat(t.href),name:null===(e=t.metaData)||void 0===e?void 0:e.pageTitle,description:null===(o=t.metaData)||void 0===o?void 0:o.description,image:null===(i=t.image)||void 0===i?void 0:i.src}}catch(t){}}(w),s=function(t){try{return{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:t.path.length?e(e([],t.path.map((function(t,e){return{"@type":"ListItem",position:e+1,name:t.name,item:"https://"+p.domain+t.href}})),!0),[{"@type":"ListItem",position:t.path.length+1,name:t.name,item:"https://"+p.domain+t.href}],!1):[{"@type":"ListItem",position:1,name:t.name,item:"https://"+p.domain+t.href}]}}catch(t){}}(w);n&&o.push(n),s&&o.push(s)}return o}),[w,b]);return o.createElement(r,null,o.createElement("title",null,u||""),o.createElement("meta",{name:"description",content:f||""}),!!j&&S.map((function(t,e){return o.createElement("meta",{key:"".concat(t.content,"-").concat(e),property:t.property,content:t.content})})),!!h&&o.createElement("link",{rel:"canonical",href:"https://".concat(p.domain,"/").concat(h)}),!!V.length&&V.map((function(t,e){return o.createElement("script",{key:e,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})))}));export{c as IkasPageHead};
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { IkasThemePageType, IkasThemeSettings } from "../../models";
3
- import { IkasPageComponentPropValue } from "../../providers/page-data-get";
4
- export declare type IkasPageProps = {
5
- propValuesStr: string;
6
- pageSpecificDataStr: string;
7
- pageType: IkasThemePageType;
8
- pageTitle: string | null;
9
- pageDescription?: string;
10
- canonicalUrl?: string | null;
11
- settingsStr: string;
12
- merchantSettingsStr: string;
13
- configJson: Record<string, any>;
14
- reInitOnBrowser?: boolean;
15
- addOgpMetas?: boolean;
16
- components?: Record<string, any>;
17
- productReviewSummary: string | null;
18
- };
19
- export declare const IkasPage: React.FC<IkasPageProps>;
20
- export declare const renderComponent: (pageComponentPropValue: IkasPageComponentPropValue, settings: IkasThemeSettings, index: number) => JSX.Element;
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as a}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as s}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeSettings as n}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{Analytics as m}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasPageDataInit as d}from"../../providers/page-data-init.js";import{ThemeComponent as p}from"./ThemeComponent.js";import{IkasPageHead as l}from"./head.js";import{IkasStorefrontConfig as u}from"../../storefront/index.js";import{initIkasEvents as c}from"../../analytics/events.js";var f=i((function(i){var p=i.propValuesStr,f=i.pageType,x=i.pageTitle,v=i.pageDescription,g=i.pageSpecificDataStr,h=i.canonicalUrl,S=i.settingsStr,w=i.merchantSettingsStr,y=i.configJson,b=i.reInitOnBrowser,C=i.addOgpMetas,E=i.components,O=i.productReviewSummary,T=r();u.initWithJson(y,T),u.currentPageComponents=E;var V=u.store;V.currentPageType=f;var D=o.useState(!1),P=D[0],J=D[1],R=o.useState(new n(JSON.parse(S)))[0],k=o.useMemo((function(){return d.setPageSpecificData(g,f,P),d.initPropValues(p,T,S,!0,P)}),[P,p,f,S,g]);o.useEffect((function(){b&&J("undefined"!=typeof window),V.cartStore.getCart(),V.checkLocalization(),c()}),[]),o.useEffect((function(){var e=function(){u.store.customerStore.routeChangeInit()};return T.events.on("routeChangeStart",e),function(){T.events.off("routeChangeStart",e)}}),[]),o.useEffect((function(){!function(o,i,r){e(this,void 0,void 0,(function(){var e,n,p,l,c;return t(this,(function(t){switch(t.label){case 0:m.pageView(o),t.label=1;case 1:return t.trys.push([1,4,,5]),o===a.PRODUCT&&(e=JSON.parse(i),n=new s(e.product,e.selectedVariantValues),"undefined"!=typeof window&&d._initProductDetailOnBrowser(n),m.productView(n),u.store.customerStore.onProductView(n.product.id,n.selectedVariant.id)),o===a.CATEGORY&&(p=JSON.parse(i),l=p.path.map((function(e){return e.name})).join(" > "),l=p.path.length>0?l+" > "+p.name:p.name,m.viewCategory(l,p)),o!==a.CART?[3,3]:[4,r.cartStore.waitUntilInitialized()];case 2:t.sent(),m.viewCart(r.cartStore.cart),t.label=3;case 3:return[3,5];case 4:return c=t.sent(),console.error(c),[3,5];case 5:return[2]}}))}))}(f,g,V)}),[f,g]);var M=o.useMemo((function(){var e=k.find((function(e){return e.component.isHeader})),t=k.find((function(e){return e.component.isFooter})),i=k.filter((function(e){return!e.component.isHeader&&!e.component.isFooter}))||[];return o.createElement("div",{style:{position:"relative",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"space-between"}},o.createElement("div",null,e&&j(e,R,-1),i.map((function(e,t){return j(e,R,t)}))),t&&j(t,R,-1))}),[k,R]);return o.createElement(o.Fragment,null,o.createElement(l,{pageType:f,pageTitle:x,pageDescription:v,pageSpecificDataStr:g,canonicalUrl:h,merchantSettingsStr:w,addOgpMetas:C,productReviewSummary:O}),M)})),j=function(e,t,i){return o.createElement(p,{key:e.pageComponent.id,index:i,pageComponentPropValue:e,settings:t})};export{f as IkasPage,j as renderComponent};
@@ -1,32 +0,0 @@
1
- import * as React from "react";
2
- import IkasPageEditorViewModel from "./model";
3
- import { IkasThemePageComponent } from "../../models";
4
- declare type Props = {
5
- vm: IkasPageEditorViewModel;
6
- pageComponent: IkasThemePageComponent;
7
- };
8
- export declare class ThemeEditorComponent extends React.Component<Props> {
9
- ref: React.RefObject<HTMLDivElement>;
10
- error: any;
11
- state: {
12
- hasError: boolean;
13
- };
14
- constructor(props: Props);
15
- componentDidMount(): void;
16
- componentDidUpdate(): void;
17
- static getDerivedStateFromError(error: any): {
18
- hasError: boolean;
19
- };
20
- get pageComponentPropValue(): import("../../providers/page-data-get").IkasPageComponentPropValue | undefined;
21
- get propValues(): Record<string, any> | undefined;
22
- get isSelected(): boolean;
23
- get isHovered(): boolean;
24
- get hasNullValue(): boolean;
25
- get rendered(): JSX.Element;
26
- get Component(): any;
27
- onMouseEnter: () => void;
28
- onMouseLeave: () => void;
29
- onClick: () => void;
30
- render(): JSX.Element;
31
- }
32
- export {};
@@ -1 +0,0 @@
1
- import{__extends as e,__assign as o}from'../../ext/tslib/tslib.es6.js';import*as t from"react";import r from"./error/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import{IkasCheckout as i}from"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{makeObservable as n,computed as a}from"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import{IkasOrderLineItem as s}from"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as m}from"../../models/theme/page/index.js";import{IkasThemeComponentPropType as p}from"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as d}from"../../storefront/index.js";import{IkasCheckoutSettings as l}from"../../models/data/checkout-settings/index.js";import u from"../checkout/index.js";import{IkasCart as c}from"../../models/data/cart/index.js";import{IkasPageDataInit as f}from"../../providers/page-data-init.js";import{Observer as v}from"mobx-react-lite";var j=function(j){function g(e){var o=j.call(this,e)||this;return o.state={hasError:!1},o.onMouseEnter=function(){var e=o.props,t=e.vm,r=e.pageComponent;t.onMouseOver(r.id)},o.onMouseLeave=function(){var e=o.props,t=e.vm,r=e.pageComponent;t.onMouseLeave(r.id)},o.onClick=function(){var e=o.props,t=e.vm,r=e.pageComponent;t.onClick(r.id)},o.ref=t.createRef(),n(o,{pageComponentPropValue:a,propValues:a,isSelected:a,isHovered:a,hasNullValue:a,rendered:a,Component:a}),o}return e(g,j),g.prototype.componentDidMount=function(){var e=this.props,o=e.vm,t=e.pageComponent;o.setComponentRef(this.ref.current,t)},g.prototype.componentDidUpdate=function(){var e=this.props,o=e.vm,t=e.pageComponent;o.setComponentRef(this.ref.current,t)},g.getDerivedStateFromError=function(e){return console.error(e),{hasError:!0}},Object.defineProperty(g.prototype,"pageComponentPropValue",{get:function(){var e=this.props,o=e.vm,t=e.pageComponent;return o.pageDataProvider.pageComponentPropValues.find((function(e){return e.pageComponent.id===t.id}))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"propValues",{get:function(){var e,t,r=this.props.vm,n=null===(e=this.pageComponentPropValue)||void 0===e?void 0:e.propValues;(null===(t=r.page)||void 0===t?void 0:t.type)===m.CHECKOUT&&(n={checkout:new i({cart:new c({items:[new s({currencyCode:"TRY",finalPrice:100,finalPriceWithQuantity:100,price:100,priceWithQuantity:100,quantity:1})]})}),checkoutSettings:new l,merchantSettings:null,customizationProps:o({},n),returnPolicy:"",privacyPolicy:"",termsOfService:""});return n},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isSelected",{get:function(){var e=this.props,o=e.vm,t=e.pageComponent;return o.selectedPageComponentId===t.id},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isHovered",{get:function(){var e=this.props,o=e.vm,t=e.pageComponent;return o.hoveredPageComponentId===t.id},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasNullValue",{get:function(){var e,o=this;return!!(null===(e=this.pageComponentPropValue)||void 0===e?void 0:e.component.props.some((function(e){var t;if(e.isRequired){var r=(o.propValues||{})[e.name],i=null===(t=o.pageComponentPropValue)||void 0===t?void 0:t.component.props.find((function(o){return o.id===e.requiredPropId}));if(i){var n=(o.propValues||{})[i.name];if(i.type===p.BOOLEAN&&!n||i.type===p.CUSTOM&&n!==e.requiredEnumOptionValue)return!1}return null===r||null==r}})))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"rendered",{get:function(){var e,i,n=this.Component,a=this.props.vm,s=d.store;return this.hasNullValue||this.state.hasError?t.createElement(r,{name:null===(e=this.pageComponentPropValue)||void 0===e?void 0:e.component.displayName}):t.createElement(n,o({},this.propValues,{store:s,settings:null===(i=a.theme)||void 0===i?void 0:i.settings,pageSpecificData:f.pageSpecificData}))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"Component",{get:function(){var e,o=this.props,t=o.vm,r=o.pageComponent,i=d.currentPageComponents;if(!i)return null;var n=i[r.componentId];return(null===(e=t.page)||void 0===e?void 0:e.type)===m.CHECKOUT&&(n=u),n},enumerable:!1,configurable:!0}),g.prototype.render=function(){var e=this;return t.createElement(v,null,(function(){var o;return e.state.hasError?t.createElement("div",{ref:e.ref,style:{position:"relative"},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},t.createElement(r,{name:null===(o=e.pageComponentPropValue)||void 0===o?void 0:o.component.displayName}),";"):d.currentPageComponents?t.createElement("div",{ref:e.ref,style:{position:"relative"},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.rendered):(console.error("Components for the page not found."),null)}))},g}(t.Component);export{j as ThemeEditorComponent};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare function ErrorComponent({ name }?: {
3
- name?: string;
4
- }): JSX.Element;
5
- export default ErrorComponent;
@@ -1 +0,0 @@
1
- import e from"react";function r(r){var o=(void 0===r?{}:r).name;return e.createElement("div",{style:t},"Error! Please fill the component ",o," fields")}var t={lineHeight:"50px",textAlign:"center",fontSize:"16px",margin:"10px 0",border:"2px solid rgb(255, 0, 0)",backgroundColor:"rgba(255, 0, 0, 0.5)"};export{r as default};
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import { WithRouterProps } from "next/dist/client/with-router";
3
- declare const _default: React.ComponentType<import("next/dist/client/with-router").ExcludeRouterProps<WithRouterProps>>;
4
- export default _default;
@@ -1 +0,0 @@
1
- import{__extends as e}from'../../ext/tslib/tslib.es6.js';import*as t from"react";import{Observer as o}from"mobx-react-lite";import{withRouter as n}from"next/router.js";import{ThemeEditorComponent as r}from"./ThemeComponentEditor.js";import i from"./model.js";import{IkasPageHead as a}from"../page/head.js";import{IkasEditorComponentLoader as m}from"./loader/index.js";import{reaction as l,makeObservable as p,computed as s}from"mobx";import{getGoogleFontHref as d}from"../../utils/google-fonts.js";var u=n(function(n){function u(e){var t=n.call(this,e)||this;return t.interceptClickEvent=function(e){var t=e.target;"A"===t.tagName&&(t.getAttribute("href"),e.preventDefault())},t.handleRouteChangeStart=function(e,o){throw t.vm.onPageChange(e),""},t.injectFontScript=function(){var e;if(null===(e=t.vm.theme)||void 0===e?void 0:e.settings.fontFamily.name){var o=t.vm.theme.settings.fontFamily,n=document.getElementById("ikas-font");n&&n.remove();var r=d(o);if(r){var i=document.createElement("link");i.setAttribute("id","ikas-font"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.getElementsByTagName("head")[0].appendChild(i),document.body.style.setProperty("font-family","'".concat(o.name,'\', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),"important")}}else document.body.style.setProperty("font-family",'-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif')},t.vm=new i(e.router),p(t,{headerPageComponent:s,footerPageComponent:s,otherComponents:s}),t}return e(u,n),u.prototype.componentDidMount=function(){var e=this;this.props.router.events.on("routeChangeStart",this.handleRouteChangeStart),document.addEventListener&&document.addEventListener("click",this.interceptClickEvent),this.disposer&&this.disposer(),this.disposer=l((function(){var t;return null===(t=e.vm.theme)||void 0===t?void 0:t.settings}),(function(){var t;null===(t=e.vm.theme)||void 0===t||t.settings.colors.map((function(e){return document.documentElement.style.setProperty(e.key,e.color)})),e.injectFontScript()}))},u.prototype.componentWillUnmount=function(){this.props.router.events.off("routeChangeStart",this.handleRouteChangeStart),document.removeEventListener("click",this.interceptClickEvent),this.disposer&&this.disposer()},Object.defineProperty(u.prototype,"headerPageComponent",{get:function(){var e,t=this.vm;return null===(e=t.pageComponents)||void 0===e?void 0:e.find((function(e){var o,n;return e.componentId===(null===(n=null===(o=t.theme)||void 0===o?void 0:o.headerComponent)||void 0===n?void 0:n.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"footerPageComponent",{get:function(){var e,t=this.vm;return null===(e=t.pageComponents)||void 0===e?void 0:e.find((function(e){var o,n;return e.componentId===(null===(n=null===(o=t.theme)||void 0===o?void 0:o.footerComponent)||void 0===n?void 0:n.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"otherComponents",{get:function(){var e,t=this.vm;return null===(e=t.pageComponents)||void 0===e?void 0:e.filter((function(e){var o,n,r,i;return e.componentId!==(null===(n=null===(o=t.theme)||void 0===o?void 0:o.headerComponent)||void 0===n?void 0:n.id)&&e.componentId!==(null===(i=null===(r=t.theme)||void 0===r?void 0:r.footerComponent)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),u.prototype.render=function(){var e=this,n=this.vm;return t.createElement(o,null,(function(){var o;return n.isLoading?t.createElement(m,{isFullPage:!0}):t.createElement(t.Fragment,null,!!n.page&&t.createElement(a,{pageType:n.page.type,pageTitle:n.page.pageTitle,pageDescription:n.page.description}),t.createElement("div",{style:c},t.createElement("div",null,!!e.headerPageComponent&&t.createElement(r,{key:e.headerPageComponent.id,vm:n,pageComponent:e.headerPageComponent}),null===(o=e.otherComponents)||void 0===o?void 0:o.map((function(e){return t.createElement(r,{key:e.id,vm:n,pageComponent:e})}))),!!e.footerPageComponent&&t.createElement(r,{key:e.footerPageComponent.id,vm:n,pageComponent:e.footerPageComponent})))}))},u}(t.Component)),c={minHeight:"100vh",width:"100vw",display:"flex",flexDirection:"column",justifyContent:"space-between"};export{u as default};
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- isFullPage?: boolean;
4
- };
5
- export declare const IkasEditorComponentLoader: React.FC<Props>;
6
- export {};
@@ -1 +0,0 @@
1
- import*as e from"react";import a from"./style.module.scss.js";var r=function(r){var t=r.isFullPage;return e.createElement("div",{className:[a.Container,t?a.fullPage:""].join(" ")},e.createElement("div",{className:a.loader}))};export{r as IkasEditorComponentLoader};
@@ -1 +0,0 @@
1
- import e from'../../../ext/style-inject/dist/style-inject.es.js';var n={Container:"style-module_Container__1eB6f",fullPage:"style-module_fullPage__3P2Pz",loader:"style-module_loader__1ahiK",load8:"style-module_load8__1jjFg"};e(".style-module_Container__1eB6f {\n width: 100%;\n height: 300px;\n background-color: white;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_Container__1eB6f.style-module_fullPage__3P2Pz {\n height: 100vh;\n}\n.style-module_Container__1eB6f .style-module_loader__1ahiK,\n.style-module_Container__1eB6f .style-module_loader__1ahiK:after {\n border-radius: 50%;\n width: 5em;\n height: 5em;\n}\n.style-module_Container__1eB6f .style-module_loader__1ahiK {\n font-size: 6px;\n position: relative;\n text-indent: -9999em;\n border-top: 0.5em solid rgba(255, 255, 255, 0.2);\n border-right: 0.5em solid rgba(255, 255, 255, 0.2);\n border-bottom: 0.5em solid rgba(255, 255, 255, 0.2);\n border-left: 0.5em solid black;\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: style-module_load8__1jjFg 1.1s infinite linear;\n animation: style-module_load8__1jjFg 1.1s infinite linear;\n}\n@-webkit-keyframes style-module_load8__1jjFg {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes style-module_load8__1jjFg {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}");export{n as default};
@@ -1,75 +0,0 @@
1
- import { NextRouter } from "next/router.js";
2
- import { IkasThemePage, IkasThemePageComponent, IkasTheme, IkasThemeComponent } from "../../models";
3
- import { IkasPageDataProvider } from "../../providers/page-data-get";
4
- import { IkasThemePageSpecification, IkasThemePageType } from "../../models/theme/page";
5
- export default class IkasPageEditorViewModel {
6
- theme?: IkasTheme | null;
7
- page?: IkasThemePage | null;
8
- selectedPageComponentId?: string | null;
9
- hoveredPageComponentId?: string | null;
10
- componentRefs: any;
11
- isLoading: boolean;
12
- updateId: string;
13
- locale: string;
14
- translations?: Record<string, any>;
15
- pageParams: Record<string, any>;
16
- apiKey?: string | null;
17
- pageDataProvider?: IkasPageDataProvider | null;
18
- router: NextRouter;
19
- constructor(router: NextRouter);
20
- get specification(): IkasThemePageSpecification | undefined;
21
- get pageComponents(): IkasThemePageComponent[];
22
- get selectedPageComponent(): IkasThemePageComponent | undefined;
23
- get selectedComponent(): IkasThemeComponent | undefined;
24
- createLoadingListener(): void;
25
- startMessaging: () => void;
26
- onMessage: (event: MessageEvent) => Promise<void>;
27
- onClick: (id: string) => void;
28
- onMouseOver: (id: string) => void;
29
- onMouseLeave: (id: string) => void;
30
- onPageChange: (url: string) => Promise<void>;
31
- onLoadingChange: () => void;
32
- getVariantIdFromParams(productId: string, queryParamsStr: string): Promise<string | undefined>;
33
- sendMessage: (type: BridgeMessageType, data?: any) => void;
34
- getPagePropValues: (theme: IkasTheme, pageType: IkasThemePageType, pageParams: Record<string, any>) => Promise<IkasPageDataProvider>;
35
- setComponentRef: (element: React.ElementType, component: IkasThemePageComponent) => void;
36
- isScrolledIntoView: (el: HTMLElement) => boolean;
37
- handleUpdateFrameData: (data: any) => Promise<void>;
38
- handleUpdateThemeJson: (data: any) => Promise<void>;
39
- handleUpdatePropValue: (data: any) => Promise<void>;
40
- handleUpdatePageParams: (data: any) => Promise<void>;
41
- handleUpdatePageComponentOrder: (data: any) => Promise<void>;
42
- handleAddNewComponent: (data: any) => void;
43
- handleDeleteComponent: (data: any) => void;
44
- handleUpdateComponent: (data: any) => void;
45
- handleAddNewPageComponent: (data: any) => Promise<void>;
46
- handleDeletePageComponent: (data: any) => void;
47
- handleSetSelectedComponent: (data: any) => void;
48
- handleSetHoveredComponent: (data: any) => void;
49
- handleScrollToComponent: (data: any) => void;
50
- handleEditorReload: () => void;
51
- updateThemeSettings: (data: any) => void;
52
- }
53
- export declare enum BridgeMessageType {
54
- FRAME_DID_LOAD = "FRAME_DID_LOAD",
55
- UPDATE_FRAME_DATA = "UPDATE_FRAME_DATA",
56
- UPDATE_THEME_JSON = "UPDATE_THEME_JSON",
57
- UPDATE_PROP_VALUE = "UPDATE_PROP_VALUE",
58
- UPDATE_PAGE_PARAMS = "UPDATE_PAGE_PARAMS",
59
- UPDATE_PAGE_COMPONENT_ORDER = "UPDATE_PAGE_COMPONENT_ORDER",
60
- ADD_COMPONENT = "ADD_COMPONENT",
61
- DELETE_COMPONENT = "DELETE_COMPONENT",
62
- UPDATE_COMPONENT = "UPDATE_COMPONENT",
63
- ADD_PAGE_COMPONENT = "ADD_PAGE_COMPONENT",
64
- DELETE_PAGE_COMPONENT = "DELETE_PAGE_COMPONENT",
65
- COMPONENT_MOUSE_OVER = "COMPONENT_MOUSE_OVER",
66
- COMPONENT_MOUSE_LEAVE = "COMPONENT_MOUSE_LEAVE",
67
- COMPONENT_CLICK = "COMPONENT_CLICK",
68
- SET_SELECTED_COMPONENT = "SET_SELECTED_COMPONENT",
69
- SET_HOVERED_COMPONENT = "SET_HOVERED_COMPONENT",
70
- SCROLL_TO_COMPONENT = "SCROLL_TO_COMPONENT",
71
- UPDATE_THEME_SETTINGS = "UPDATE_THEME_SETTINGS",
72
- EDITOR_PAGE_CHANGE = "EDITOR_PAGE_CHANGE",
73
- EDITOR_LOADING_CHANGE = "EDITOR_LOADING_CHANGE",
74
- EDITOR_RELOAD = "EDITOR_RELOAD"
75
- }
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import{reaction as i,makeAutoObservable as n,runInAction as o}from"mobx";import{IkasBlogMetadataTargetType as a}from"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasHTMLMetaDataTargetType as r}from"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import{IkasTheme as s}from"../../models/theme/theme.js";import{IkasThemePageType as d}from"../../models/theme/page/index.js";import{IkasThemePageComponent as p}from"../../models/theme/page/component/index.js";import{IkasThemeComponent as u}from"../../models/theme/component/index.js";import{IkasThemeComponentPropType as c}from"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeSettings as l}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasPageDataProvider as m}from"../../providers/page-data-get.js";import{IkasPageDataInit as h}from"../../providers/page-data-init.js";import{IkasBlogAPI as g}from"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import{IkasHTMLMetaDataAPI as f}from"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import{IkasProductSearchAPI as E}from"../../api/product-search/index.js";import{apollo as P}from"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import{IkasRaffleAPI as O}from"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{IkasStorefrontConfig as v}from"../../storefront/index.js";import{IkasStorefront as T}from"../../models/data/storefront/index.js";import C from'../../ext/uuid/dist/esm-browser/v4.js';var _,D=function(){function D(i){var E=this;this.theme=null,this.page=null,this.selectedPageComponentId=null,this.hoveredPageComponentId=null,this.componentRefs={},this.isLoading=!1,this.updateId="",this.locale="en",this.pageParams={},this.apiKey=null,this.pageDataProvider=null,this.startMessaging=function(){window.addEventListener("message",E.onMessage,!1),E.sendMessage(_.FRAME_DID_LOAD,"2.0.20"),E.createLoadingListener()},this.onMessage=function(i){return e(E,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:switch(e=i.data.type,n=i.data.data,e){case _.UPDATE_FRAME_DATA:return[3,1];case _.UPDATE_THEME_JSON:return[3,3];case _.UPDATE_PROP_VALUE:return[3,5];case _.UPDATE_PAGE_PARAMS:return[3,7];case _.UPDATE_PAGE_COMPONENT_ORDER:return[3,9];case _.ADD_COMPONENT:return[3,11];case _.DELETE_COMPONENT:return[3,12];case _.UPDATE_COMPONENT:return[3,13];case _.ADD_PAGE_COMPONENT:return[3,14];case _.DELETE_PAGE_COMPONENT:return[3,16];case _.SET_SELECTED_COMPONENT:return[3,17];case _.SET_HOVERED_COMPONENT:return[3,18];case _.SCROLL_TO_COMPONENT:return[3,19];case _.EDITOR_RELOAD:return[3,20];case _.UPDATE_THEME_SETTINGS:return[3,21]}return[3,22];case 1:return[4,this.handleUpdateFrameData(n)];case 2:case 4:case 6:case 8:case 10:case 15:return t.sent(),[3,23];case 3:return[4,this.handleUpdateThemeJson(n)];case 5:return[4,this.handleUpdatePropValue(n)];case 7:return[4,this.handleUpdatePageParams(n)];case 9:return[4,this.handleUpdatePageComponentOrder(n)];case 11:return this.handleAddNewComponent(n),[3,23];case 12:return this.handleDeleteComponent(n),[3,23];case 13:return this.handleUpdateComponent(n),[3,23];case 14:return[4,this.handleAddNewPageComponent(n)];case 16:return this.handleDeletePageComponent(n),[3,23];case 17:return this.handleSetSelectedComponent(n),[3,23];case 18:return this.handleSetHoveredComponent(n),[3,23];case 19:return this.handleScrollToComponent(n),[3,23];case 20:return this.handleEditorReload(),[3,23];case 21:return this.updateThemeSettings(n),[3,23];case 22:return[3,23];case 23:return[2]}}))}))},this.onClick=function(e){E.sendMessage(_.COMPONENT_CLICK,{componentId:e})},this.onMouseOver=function(e){E.sendMessage(_.COMPONENT_MOUSE_OVER,{componentId:e})},this.onMouseLeave=function(e){E.sendMessage(_.COMPONENT_MOUSE_LEAVE,{componentId:e})},this.onPageChange=function(i){return e(E,void 0,void 0,(function(){var e,n,s,p,u,c,l,m,h,E=this;return t(this,(function(t){switch(t.label){case 0:return e=i.slice(1),n=e.split("?"),e=n[0],s=n[1],this.pageParams={},i.startsWith("/account/orders/")?p=d.ORDER_DETAIL:i.startsWith("/account/orders")?p=d.ORDERS:i.startsWith("/account/addresses")?p=d.ADDRESSES:i.startsWith("/account/favorite-products")?p=d.FAVORITE_PRODUCTS:i.startsWith("/account/forgot-password")?p=d.FORGOT_PASSWORD:i.startsWith("/account/login")?p=d.LOGIN:i.startsWith("/account/raffles")?p=d.RAFFLE_ACCOUNT:i.startsWith("/account/recover-password")?p=d.RECOVER_PASSWORD:i.startsWith("/account/register")?p=d.REGISTER:i.startsWith("/account")?p=d.ACCOUNT:i.startsWith("/blog/")?p=d.BLOG:i.startsWith("/blog")?p=d.BLOG_INDEX:i.startsWith("/pages")?(p=d.CUSTOM,this.pageParams={slug:e.split("/")[1]}):p=i.startsWith("/raffle/")?d.RAFFLE_DETAIL:i.startsWith("/raffle")?d.RAFFLE:i.startsWith("/404")?d.NOT_FOUND:i.startsWith("/cart")?d.CART:i.startsWith("/checkout")?d.CHECKOUT:"/"===i?d.INDEX:i.startsWith("/search")?d.SEARCH:d.PRODUCT,p!==d.PRODUCT?[3,6]:[4,f.listHTMLMetaData(e)];case 1:return(c=t.sent()).length?(l=c[0]).targetType!==r.PRODUCT?[3,3]:[4,this.getVariantIdFromParams(l.targetId,s)]:[3,5];case 2:return u=t.sent(),this.pageParams={productId:l.targetId,variantId:u,slug:e},[3,4];case 3:if(l.targetType===r.CATEGORY)p=d.CATEGORY,this.pageParams={categoryId:l.targetId,slug:e};else{if(l.targetType!==r.BRAND)return[2];p=d.BRAND,this.pageParams={brandId:l.targetId,slug:e}}t.label=4;case 4:return[3,6];case 5:return[2];case 6:return p!==d.BLOG?[3,8]:[4,g.listBlogMetaData(e)];case 7:if(!(c=t.sent()).length)return[2];if((l=c[0]).targetType===a.BLOG)this.pageParams={blogId:l.targetId,slug:e};else{if(l.targetType!==a.BLOG_CATEGORY)return[2];p=d.BLOG_CATEGORY,this.pageParams={blogCategoryId:l.targetId,slug:e}}t.label=8;case 8:return p!==d.RAFFLE_DETAIL?[3,10]:[4,O.listRaffleMetaData(e)];case 9:if(!(c=t.sent()).length)return[2];l=c[0],this.pageParams={raffleId:l.targetId,slug:e},t.label=10;case 10:return this.isLoading=!0,[4,this.getPagePropValues(this.theme,p,this.pageParams)];case 11:return m=t.sent(),o((function(){var e,t;v.store.currentPageType=p,E.pageDataProvider=m,p===d.CUSTOM?E.page=null===(e=E.theme)||void 0===e?void 0:e.pages.find((function(e){return e.type===p&&e.slug===E.pageParams.slug})):E.page=null===(t=E.theme)||void 0===t?void 0:t.pages.find((function(e){return e.type===p})),requestAnimationFrame((function(){document.body.scrollTop=0,document.scrollingElement&&(document.scrollingElement.scrollTop=0)}))})),this.sendMessage(_.EDITOR_PAGE_CHANGE,{pageType:p,pageParams:this.pageParams,pageSpecificData:(null===(h=this.pageDataProvider)||void 0===h?void 0:h.pageSpecificData)||null}),this.isLoading=!1,[2]}}))}))},this.onLoadingChange=function(){E.sendMessage(_.EDITOR_LOADING_CHANGE,{isLoading:E.isLoading})},this.sendMessage=function(e,t){window.parent.postMessage({type:e,data:JSON.parse(JSON.stringify(t))},"*")},this.getPagePropValues=function(i,n,o){return e(E,void 0,void 0,(function(){var e,a,r;return t(this,(function(t){switch(t.label){case 0:return e=new m(i,o,n),(o.blogId||o.blogCategoryId)&&(e.possiblePageTypes=[d.BLOG,d.BLOG_CATEGORY]),o.raffleId&&(e.possiblePageTypes=[d.RAFFLE_DETAIL]),[4,e.getPageData()];case 1:return t.sent(),e.pageSpecificData?(h.setPageSpecificData(JSON.stringify(e.pageSpecificData),n,!0),n===d.PRODUCT&&h.pageSpecificData&&(a=h.pageSpecificData,(r=a.product.variants.find((function(e){return e.id===o.variantId})))&&(a.selectedVariantValues=r.variantValues))):h.pageSpecificData=void 0,e.pageComponentPropValues=h.initPropValues(JSON.stringify(e.pageComponentPropValues),this.router,JSON.stringify(i.settings),!1),[2,e]}}))}))},this.setComponentRef=function(e,t){E.componentRefs[t.id]=e},this.isScrolledIntoView=function(e){var t=e.getBoundingClientRect(),i=t.top,n=t.bottom;return i<window.innerHeight&&n>=0&&n<window.innerHeight&&i>0},this.handleUpdateFrameData=function(i){return e(E,void 0,void 0,(function(){var e,n,o,a,r,d=this;return t(this,(function(t){switch(t.label){case 0:return this.theme=new s(i.theme),this.page=this.theme.pages.find((function(e){return e.id===i.selectedPage.id})),this.pageParams=i.pageParams,this.apiKey=i.apiKey,this.locale=i.locale||"en",this.translations=i.translations||void 0,this.page?((e=i.storefront)&&(n=new T(e),o=n.routings.find((function(e){return e.locale===d.locale})),v.storefrontId=n.id,v.storefrontRoutingId=null==o?void 0:o.id,n.mainStorefrontThemeId&&(v.storefrontThemeId=n.mainStorefrontThemeId),n.salesChannelId&&(v.salesChannelId=n.salesChannelId),(null==o?void 0:o.priceListId)?v.priceListId=o.priceListId:v.priceListId=void 0,v.routings=n.routings,v.stockPreference=this.theme.settings.stockPreference),this.translations&&(v.translations=this.translations),v.isEditor=!0,P.createApolloClient(this.apiKey||void 0),window.editorApiKey=i.apiKey,a=C(),this.updateId=a,this.isLoading=!0,[4,this.getPagePropValues(this.theme,this.page.type,this.pageParams||{})]):[2];case 1:return r=t.sent(),this.updateId===a&&(this.pageDataProvider=r,this.isLoading=!1),[2]}}))}))},this.handleUpdateThemeJson=function(i){return e(E,void 0,void 0,(function(){return t(this,(function(e){return this.theme=new s(i.theme),[2]}))}))},this.handleUpdatePropValue=function(i){return e(E,void 0,void 0,(function(){var e,n,a,r,s,d,p,u,l=this;return t(this,(function(t){switch(t.label){case 0:return e=i.propName,n=i.value,(a=null===(p=null===(d=this.selectedComponent)||void 0===d?void 0:d.props)||void 0===p?void 0:p.find((function(t){return t.name===e})))&&this.selectedPageComponent?(r=null===(u=this.pageDataProvider)||void 0===u?void 0:u.pageComponentPropValues.find((function(e){return e.pageComponent.id===l.selectedPageComponentId})),this.selectedPageComponent.propValues[e]=n,this.pageDataProvider?[4,this.pageDataProvider.getPageComponentPropValue(this.selectedPageComponent,a)]:[2]):[2];case 1:return s=t.sent(),[4,this.pageDataProvider.setLinkSlugs()];case 2:return t.sent(),o((function(){r&&(r.propValues[e]=s,a.type===c.CUSTOM?h.initCustomDataPropValue(a,s,r,l.router,l.theme.settings,!0):a.type===c.COMPONENT?h.initComponentPropValue(a,s,r,l.router,l.theme.settings,!0):a.type===c.COMPONENT_LIST?h.initComponentListPropValue(a,s,r,l.router,l.theme.settings,!0):a.type===c.PRODUCT_DETAIL?h.initProductDetailPropValue(a,s,r,l.router):a.type===c.CATEGORY?h.initCategoryPropValue(a,s,r):a.type===c.BRAND?h.initBrandPropValue(a,s,r):a.type===c.BLOG?h.initBlogPropValue(a,s,r):a.type===c.BLOG_CATEGORY?h.initBlogCategoryPropValue(a,s,r):a.type===c.RAFFLE?h.initRafflePropValue(a,s,r):a.type!==c.LINK&&a.type!==c.LIST_OF_LINK||h.initLinkPropValue(a,s,r))})),[2]}}))}))},this.handleUpdatePageParams=function(i){return e(E,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return this.pageParams=i.pageParams,this.isLoading=!0,[4,this.getPagePropValues(this.theme,this.page.type,this.pageParams||{})];case 1:return e=t.sent(),this.pageDataProvider=e,this.isLoading=!1,[2]}}))}))},this.handleUpdatePageComponentOrder=function(i){return e(E,void 0,void 0,(function(){return t(this,(function(e){return this.specification?this.specification.components=i.pageComponents.map((function(e){return new p(e)})):this.page.components=i.pageComponents.map((function(e){return new p(e)})),[2]}))}))},this.handleAddNewComponent=function(e){var t,i=new u(e.component);null===(t=E.theme)||void 0===t||t.components.push(i)},this.handleDeleteComponent=function(e){var t,i;(null===(t=E.theme)||void 0===t?void 0:t.components)&&(E.theme.components=E.theme.components.filter((function(t){return t.id!==e.componentId})));var n=E.pageComponents.filter((function(t){return t.componentId!==e.componentId}))||[];E.specification&&E.specification.components&&(E.specification.components=n),!E.specification&&(null===(i=E.page)||void 0===i?void 0:i.components)&&(E.page.components=n)},this.handleUpdateComponent=function(e){var t=E.theme.components.findIndex((function(t){return t.id===e.component.id}));-1!==t&&(E.theme.components[t]=new u(e.component))},this.handleAddNewPageComponent=function(i){return e(E,void 0,void 0,(function(){var e,n,a=this;return t(this,(function(t){switch(t.label){case 0:return e=new p(i.pageComponent),this.pageComponents.some((function(t){return t.id===e.id}))?[2]:[4,this.pageDataProvider.getPageComponentPropValues(e)];case 1:return n=t.sent(),o((function(){n.component.props.filter((function(e){return e.type===c.CUSTOM})).forEach((function(e){h.initCustomDataPropValue(e,n.propValues[e.name],n,a.router,a.theme.settings,!0)})),a.pageDataProvider.pageComponentPropValues.push(n),a.pageComponents.push(e)})),[2]}}))}))},this.handleDeletePageComponent=function(e){E.specification?E.specification.components=E.pageComponents.filter((function(t){return t.id!==e.pageComponentId})):E.page.components=E.pageComponents.filter((function(t){return t.id!==e.pageComponentId}))},this.handleSetSelectedComponent=function(e){E.selectedPageComponentId=e.componentId},this.handleSetHoveredComponent=function(e){E.hoveredPageComponentId=e.componentId},this.handleScrollToComponent=function(e){var t=e.componentId,i=E.componentRefs[t];i&&(E.isScrolledIntoView(i)||window.scrollTo({top:i.offsetTop,behavior:"smooth"}))},this.handleEditorReload=function(){window.location.reload()},this.updateThemeSettings=function(e){var t=e.settings;E.theme&&(E.theme.settings=new l(t))},this.router=i,n(this),this.startMessaging()}return Object.defineProperty(D.prototype,"specification",{get:function(){var e,t,i,n,o,a,r,s=this,p=this.page;return(null==p?void 0:p.type)===d.PRODUCT&&(r=null===(e=p.specifications)||void 0===e?void 0:e.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.productId)}))),(null==p?void 0:p.type)===d.CATEGORY&&(r=null===(t=p.specifications)||void 0===t?void 0:t.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.categoryId)}))),(null==p?void 0:p.type)===d.BRAND&&(r=null===(i=p.specifications)||void 0===i?void 0:i.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.brandId)}))),(null==p?void 0:p.type)===d.BLOG&&(r=null===(n=p.specifications)||void 0===n?void 0:n.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.blogId)}))),(null==p?void 0:p.type)===d.BLOG_CATEGORY&&(r=null===(o=p.specifications)||void 0===o?void 0:o.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.blogCategoryId)}))),(null==p?void 0:p.type)===d.RAFFLE_DETAIL&&(r=null===(a=p.specifications)||void 0===a?void 0:a.find((function(e){var t;return e.id===(null===(t=s.pageParams)||void 0===t?void 0:t.raffleId)}))),r},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pageComponents",{get:function(){var e;return this.specification?this.specification.components:(null===(e=this.page)||void 0===e?void 0:e.components)||[]},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"selectedPageComponent",{get:function(){var e=this;return this.pageComponents.find((function(t){return t.id===e.selectedPageComponentId}))},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"selectedComponent",{get:function(){var e,t=this;return null===(e=this.theme)||void 0===e?void 0:e.components.find((function(e){var i;return e.id===(null===(i=t.selectedPageComponent)||void 0===i?void 0:i.componentId)}))},enumerable:!1,configurable:!0}),D.prototype.createLoadingListener=function(){var e=this;i((function(){return e.isLoading}),(function(){e.onLoadingChange()}))},D.prototype.getVariantIdFromParams=function(i,n){return e(this,void 0,void 0,(function(){var e,o,a,r,s,d,p;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=new URLSearchParams("?"+n),[4,E.searchProducts({productIdList:[i],priceListId:v.priceListId,salesChannelId:v.salesChannelId})];case 1:return(null==(o=t.sent())?void 0:o.data.length)?(a=o.data[0],r=a.variantTypes.map((function(e){return e.variantType.slug})),s=[],r.forEach((function(t,i){var n=a.variantTypes[i],o=e.get(t);if(o){var r=n.variantType.values.find((function(e){return e.slug===o}));r&&s.push(r)}})),(d=a.variants.find((function(e){return e.variantValues.every((function(e){return s.some((function(t){return t.id===e.id}))}))})))?[2,d.id]:[3,3]):[2];case 2:return p=t.sent(),console.error(p),[3,3];case 3:return[2]}}))}))},D}();!function(e){e.FRAME_DID_LOAD="FRAME_DID_LOAD",e.UPDATE_FRAME_DATA="UPDATE_FRAME_DATA",e.UPDATE_THEME_JSON="UPDATE_THEME_JSON",e.UPDATE_PROP_VALUE="UPDATE_PROP_VALUE",e.UPDATE_PAGE_PARAMS="UPDATE_PAGE_PARAMS",e.UPDATE_PAGE_COMPONENT_ORDER="UPDATE_PAGE_COMPONENT_ORDER",e.ADD_COMPONENT="ADD_COMPONENT",e.DELETE_COMPONENT="DELETE_COMPONENT",e.UPDATE_COMPONENT="UPDATE_COMPONENT",e.ADD_PAGE_COMPONENT="ADD_PAGE_COMPONENT",e.DELETE_PAGE_COMPONENT="DELETE_PAGE_COMPONENT",e.COMPONENT_MOUSE_OVER="COMPONENT_MOUSE_OVER",e.COMPONENT_MOUSE_LEAVE="COMPONENT_MOUSE_LEAVE",e.COMPONENT_CLICK="COMPONENT_CLICK",e.SET_SELECTED_COMPONENT="SET_SELECTED_COMPONENT",e.SET_HOVERED_COMPONENT="SET_HOVERED_COMPONENT",e.SCROLL_TO_COMPONENT="SCROLL_TO_COMPONENT",e.UPDATE_THEME_SETTINGS="UPDATE_THEME_SETTINGS",e.EDITOR_PAGE_CHANGE="EDITOR_PAGE_CHANGE",e.EDITOR_LOADING_CHANGE="EDITOR_LOADING_CHANGE",e.EDITOR_RELOAD="EDITOR_RELOAD"}(_||(_={}));export{_ as BridgeMessageType,D as default};
@@ -1 +0,0 @@
1
- import{wrap as t}from"../../../../optimism/lib/bundle.esm.js";import"../../../../ts-invariant/lib/invariant.esm.js";import{getFragmentQueryDocument as r}from"../../utilities/graphql/fragments.js";import"../../utilities/graphql/transform.js";import"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import"../../utilities/observables/Concast.js";var i=function(){function i(){this.getFragmentDoc=t(r)}return i.prototype.recordOptimisticTransaction=function(t,r){this.performTransaction(t,r)},i.prototype.transformDocument=function(t){return t},i.prototype.identify=function(t){},i.prototype.gc=function(){return[]},i.prototype.modify=function(t){return!1},i.prototype.transformForLink=function(t){return t},i.prototype.readQuery=function(t,r){return void 0===r&&(r=!!t.optimistic),this.read({rootId:t.id||"ROOT_QUERY",query:t.query,variables:t.variables,returnPartialData:t.returnPartialData,optimistic:r})},i.prototype.readFragment=function(t,r){return void 0===r&&(r=!!t.optimistic),this.read({query:this.getFragmentDoc(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,returnPartialData:t.returnPartialData,optimistic:r})},i.prototype.writeQuery=function(t){return this.write({dataId:t.id||"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables,broadcast:t.broadcast})},i.prototype.writeFragment=function(t){return this.write({dataId:t.id,result:t.data,variables:t.variables,query:this.getFragmentDoc(t.fragment,t.fragmentName),broadcast:t.broadcast})},i}();export{i as ApolloCache};
@@ -1 +0,0 @@
1
- var t=function(t,i,s,e,h){this.message=t,this.path=i,this.query=s,this.clientOnly=e,this.variables=h};export{t as MissingFieldError};
@@ -1 +0,0 @@
1
- import{__assign as t,__rest as e,__extends as r}from'../../ext/tslib/tslib.es6.js';import{dep as i}from"../../../../optimism/lib/bundle.esm.js";import o from"../../../../@wry/equality/lib/equality.esm.js";import"../../../../ts-invariant/lib/invariant.esm.js";import{isReference as n,makeReference as s}from"../../utilities/graphql/storeUtils.js";import"../../utilities/graphql/transform.js";import{DeepMerger as a}from"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import{maybeDeepFreeze as c}from"../../utilities/common/maybeDeepFreeze.js";import"../../utilities/observables/Concast.js";import{canUseWeakMap as u}from"../../utilities/common/canUse.js";import{hasOwn as p,fieldNameFromStoreName as f}from"./helpers.js";import{Trie as h}from"../../../../@wry/trie/lib/trie.esm.js";var l=Object.create(null),d=function(){return l},y=Object.create(null),m=function(){function r(t,e){var r=this;this.policies=t,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,e){return c(n(t)?r.get(t.__ref,e):t&&t[e])},this.canRead=function(t){return n(t)?r.has(t.__ref):"object"==typeof t},this.toReference=function(t,e){if("string"==typeof t)return s(t);if(n(t))return t;var i=r.policies.identify(t)[0];if(i){var o=s(i);return e&&r.merge(i,t),o}}}return r.prototype.toObject=function(){return t({},this.data)},r.prototype.has=function(t){return void 0!==this.lookup(t,!0)},r.prototype.get=function(t,e){if(this.group.depend(t,e),p.call(this.data,t)){var r=this.data[t];if(r&&p.call(r,e))return r[e]}return"__typename"===e&&p.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof b?this.parent.get(t,e):void 0},r.prototype.lookup=function(t,e){return e&&this.group.depend(t,"__exists"),p.call(this.data,t)?this.data[t]:this instanceof b?this.parent.lookup(t,e):this.policies.rootTypenamesById[t]?Object.create(null):void 0},r.prototype.merge=function(t,e){var r=this,i=this.lookup(t),o=new a(j).merge(i,e);if(this.data[t]=o,o!==i&&(delete this.refs[t],this.group.caching)){var n=Object.create(null);i||(n.__exists=1),Object.keys(e).forEach((function(t){if(!i||i[t]!==o[t]){n[t]=1;var e=f(t);e===t||r.policies.hasKeyArgs(o.__typename,e)||(n[e]=1),void 0!==o[t]||r instanceof b||delete o[t]}})),Object.keys(n).forEach((function(e){return r.group.dirty(t,e)}))}},r.prototype.modify=function(e,r){var i=this,o=this.lookup(e);if(o){var a=Object.create(null),u=!1,p=!0,h={DELETE:l,INVALIDATE:y,isReference:n,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return i.policies.readField("string"==typeof t?{fieldName:t,from:r||s(e)}:t,{store:i})}};if(Object.keys(o).forEach((function(n){var s=f(n),m=o[n];if(void 0!==m){var g="function"==typeof r?r:r[n]||r[s];if(g){var v=g===d?l:g(c(m),t(t({},h),{fieldName:s,storeFieldName:n,storage:i.getStorage(e,n)}));v===y?i.group.dirty(e,n):(v===l&&(v=void 0),v!==m&&(a[n]=v,u=!0,m=v))}void 0!==m&&(p=!1)}})),u)return this.merge(e,a),p&&(this instanceof b?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},r.prototype.delete=function(t,e,r){var i,o=this.lookup(t);if(o){var n=this.getFieldValue(o,"__typename"),s=e&&r?this.policies.getStoreFieldName({typename:n,fieldName:e,args:r}):e;return this.modify(t,s?((i={})[s]=d,i):d)}return!1},r.prototype.evict=function(t){var e=!1;return t.id&&(p.call(this.data,t.id)&&(e=this.delete(t.id,t.fieldName,t.args)),this instanceof b&&(e=this.parent.evict(t)||e),(t.fieldName||e)&&this.group.dirty(t.id,t.fieldName||"__exists")),e},r.prototype.clear=function(){this.replace(null)},r.prototype.extract=function(){var t=this,e=this.toObject(),r=[];return this.getRootIdSet().forEach((function(e){p.call(t.policies.rootTypenamesById,e)||r.push(e)})),r.length&&(e.__META={extraRootIds:r.sort()}),e},r.prototype.replace=function(t){var r=this;if(Object.keys(this.data).forEach((function(e){t&&p.call(t,e)||r.delete(e)})),t){var i=t.__META,o=e(t,["__META"]);Object.keys(o).forEach((function(t){r.merge(t,o[t])})),i&&i.extraRootIds.forEach(this.retain,this)}},r.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},r.prototype.release=function(t){if(this.rootIds[t]>0){var e=--this.rootIds[t];return e||delete this.rootIds[t],e}return 0},r.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof b?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},r.prototype.gc=function(){var t=this,e=this.getRootIdSet(),r=this.toObject();e.forEach((function(i){p.call(r,i)&&(Object.keys(t.findChildRefIds(i)).forEach(e.add,e),delete r[i])}));var i=Object.keys(r);if(i.length){for(var o=this;o instanceof b;)o=o.parent;i.forEach((function(t){return o.delete(t)}))}return i},r.prototype.findChildRefIds=function(t){if(!p.call(this.refs,t)){var e=this.refs[t]=Object.create(null),r=new Set([this.data[t]]),i=function(t){return null!==t&&"object"==typeof t};r.forEach((function(t){n(t)?e[t.__ref]=!0:i(t)&&Object.values(t).filter(i).forEach(r.add,r)}))}return this.refs[t]},r.prototype.makeCacheKey=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.group.keyMaker.lookupArray(t)},r}(),g=function(){function t(t){this.caching=t,this.d=null,this.keyMaker=new h(u),this.d=t?i():null}return t.prototype.depend=function(t,e){if(this.d){this.d(v(t,e));var r=f(e);r!==e&&this.d(v(t,r))}},t.prototype.dirty=function(t,e){this.d&&this.d.dirty(v(t,e))},t}();function v(t,e){return e+"#"+t}!function(t){var e=function(t){function e(e){var r=e.policies,i=e.resultCaching,o=void 0===i||i,n=e.seed,s=t.call(this,r,new g(o))||this;return s.storageTrie=new h(u),s.sharedLayerGroup=new g(o),n&&s.replace(n),s}return r(e,t),e.prototype.addLayer=function(t,e){return new b(t,this,e,this.sharedLayerGroup)},e.prototype.removeLayer=function(){return this},e.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},e}(t);t.Root=e}(m||(m={}));var b=function(e){function i(t,r,i,o){var n=e.call(this,r.policies,o)||this;return n.id=t,n.parent=r,n.replay=i,n.group=o,i(n),n}return r(i,e),i.prototype.addLayer=function(t,e){return new i(t,this,e,this.group)},i.prototype.removeLayer=function(t){var e=this,r=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(t){e.data[t]!==r.lookup(t)&&e.delete(t)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},i.prototype.toObject=function(){return t(t({},this.parent.toObject()),this.data)},i.prototype.findChildRefIds=function(r){var i=this.parent.findChildRefIds(r);return p.call(this.data,r)?t(t({},i),e.prototype.findChildRefIds.call(this,r)):i},i.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},i}(m);function j(t,e,r){var i=t[r],n=e[r];return o(i,n)?i:n}function _(t){return!!(t instanceof m&&t.group.caching)}export{m as EntityStore,_ as supportsResultCaching};
@@ -1 +0,0 @@
1
- import{shouldInclude as t}from"../../utilities/graphql/directives.js";import"../../../../ts-invariant/lib/invariant.esm.js";import{isReference as r,isField as e,resultKeyNameFromField as i}from"../../utilities/graphql/storeUtils.js";import"../../utilities/graphql/transform.js";import{DeepMerger as n}from"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import"../../utilities/observables/Concast.js";var o=Object.prototype.hasOwnProperty;function s(t,e){return r(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var a=/^[_a-z][_0-9a-z]*/i;function u(t){var r=t.match(a);return r?r[0]:t}function l(r,n,s){return!(!n||"object"!=typeof n)&&(Array.isArray(n)?n.every((function(t){return l(r,t,s)})):r.selections.every((function(r){if(e(r)&&t(r,s)){var a=i(r);return o.call(n,a)&&(!r.selectionSet||l(r.selectionSet,n[a],s))}return!0})))}function p(t){return null!==t&&"object"==typeof t&&!r(t)&&!Array.isArray(t)}function c(){return new n}export{a as TypeOrFieldNameRegExp,u as fieldNameFromStoreName,s as getTypenameFromStoreObject,o as hasOwn,c as makeProcessedFieldsMerger,l as selectionSetMatchesResult,p as storeValueIsStoreObject};
@@ -1 +0,0 @@
1
- import{__extends as t,__assign as i}from'../../ext/tslib/tslib.es6.js';import{wrap as a,dep as e}from"../../../../optimism/lib/bundle.esm.js";import{ApolloCache as r}from"../core/cache.js";import{MissingFieldError as o}from"../core/types/common.js";import"../../../../ts-invariant/lib/invariant.esm.js";import{isReference as s}from"../../utilities/graphql/storeUtils.js";import{addTypenameToDocument as c}from"../../utilities/graphql/transform.js";import"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import"../../utilities/observables/Concast.js";import{StoreReader as n}from"./readFromStore.js";import{StoreWriter as p}from"./writeToStore.js";import{EntityStore as m,supportsResultCaching as h}from"./entityStore.js";import{makeVar as d,forgetCache as u}from"./reactiveVars.js";import{Policies as l,defaultDataIdFromObject as f}from"./policies.js";import{hasOwn as y}from"./helpers.js";var b={dataIdFromObject:f,addTypename:!0,resultCaching:!0,typePolicies:{}},v=function(r){function f(t){void 0===t&&(t={});var o=r.call(this)||this;return o.watches=new Set,o.typenameDocumentCache=new Map,o.makeVar=d,o.txCount=0,o.maybeBroadcastWatch=a((function(t,i){return o.broadcastWatch.call(o,t,!!i)}),{makeCacheKey:function(t){var i=t.optimistic?o.optimisticData:o.data;if(h(i)){var a=t.optimistic,e=t.rootId,r=t.variables;return i.makeCacheKey(t.query,t.callback,JSON.stringify({optimistic:a,rootId:e,variables:r}))}}}),o.watchDep=e(),o.config=i(i({},b),t),o.addTypename=!!o.config.addTypename,o.policies=new l({cache:o,dataIdFromObject:o.config.dataIdFromObject,possibleTypes:o.config.possibleTypes,typePolicies:o.config.typePolicies}),o.data=new m.Root({policies:o.policies,resultCaching:o.config.resultCaching}),o.optimisticData=o.data,o.storeWriter=new p(o,o.storeReader=new n({cache:o,addTypename:o.addTypename})),o}return t(f,r),f.prototype.restore=function(t){return t&&this.data.replace(t),this},f.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},f.prototype.read=function(t){var i=t.returnPartialData,a=void 0!==i&&i;try{return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:t.query,variables:t.variables,rootId:t.rootId,config:this.config,returnPartialData:a}).result||null}catch(t){if(t instanceof o)return null;throw t}},f.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:t.query,result:t.result,dataId:t.dataId,variables:t.variables})}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},f.prototype.modify=function(t){if(y.call(t,"id")&&!t.id)return!1;var i=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,i.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},f.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",query:t.query,variables:t.variables,returnPartialData:t.returnPartialData,config:this.config})},f.prototype.watch=function(t){var i=this;return this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){i.watches.delete(t)&&!i.watches.size&&u(i),i.watchDep.dirty(t),i.maybeBroadcastWatch.forget(t)}},f.prototype.gc=function(){return this.optimisticData.gc()},f.prototype.retain=function(t,i){return(i?this.optimisticData:this.data).retain(t)},f.prototype.release=function(t,i){return(i?this.optimisticData:this.data).release(t)},f.prototype.identify=function(t){return s(t)?t.__ref:this.policies.identify(t)[0]},f.prototype.evict=function(t){if(!t.id){if(y.call(t,"id"))return!1;t=i(i({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},f.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},f.prototype.removeOptimistic=function(t){var i=this.optimisticData.removeLayer(t);i!==this.optimisticData&&(this.optimisticData=i,this.broadcastWatches())},f.prototype.performTransaction=function(t,i){var a=this,e=function(i){var e=a,r=e.data,o=e.optimisticData;++a.txCount,i&&(a.data=a.optimisticData=i);try{t(a)}finally{--a.txCount,a.data=r,a.optimisticData=o}},r=!1;"string"==typeof i?(this.optimisticData=this.optimisticData.addLayer(i,e),r=!0):null===i?e(this.data):e(),this.broadcastWatches(r)},f.prototype.transformDocument=function(t){if(this.addTypename){var i=this.typenameDocumentCache.get(t);return i||(i=c(t),this.typenameDocumentCache.set(t,i),this.typenameDocumentCache.set(i,i)),i}return t},f.prototype.broadcastWatches=function(t){var i=this;this.txCount||this.watches.forEach((function(a){return i.maybeBroadcastWatch(a,t)}))},f.prototype.broadcastWatch=function(t,i){this.watchDep.dirty(t),this.watchDep(t);var a=this.diff({query:t.query,variables:t.variables,optimistic:t.optimistic});t.optimistic&&i&&(a.fromOptimisticTransaction=!0),t.callback(a)},f}(r);export{v as InMemoryCache};
@@ -1 +0,0 @@
1
- import{__assign as e,__rest as t}from'../../ext/tslib/tslib.es6.js';import"../../../../optimism/lib/bundle.esm.js";import{invariant as i,InvariantError as r}from"../../../../ts-invariant/lib/invariant.esm.js";import{getFragmentFromSelection as o}from"../../utilities/graphql/fragments.js";import{getTypenameFromResult as n,argumentsObjectFromField as a,storeKeyNameFromField as s,getStoreKeyName as p,isReference as l,isField as c}from"../../utilities/graphql/storeUtils.js";import"../../utilities/graphql/transform.js";import"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import"../../utilities/observables/Concast.js";import{canUseWeakMap as y}from"../../utilities/common/canUse.js";import{compact as u}from"../../utilities/common/compact.js";import{hasOwn as f,TypeOrFieldNameRegExp as d,selectionSetMatchesResult as m,fieldNameFromStoreName as h,storeValueIsStoreObject as v}from"./helpers.js";import{cacheSlot as g}from"./reactiveVars.js";import{Trie as b}from"../../../../@wry/trie/lib/trie.esm.js";function j(e){return void 0!==e.args?e.args:e.field?a(e.field,e.variables):null}var O=function(e,t){var i=e.__typename,r=e.id,o=e._id;if("string"==typeof i&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==o?{_id:o}:void 0),void 0===r&&(r=o),void 0!==r))return i+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))},T=function(){},S=function(e,t){return t.fieldName},F=function(e,t,i){return(0,i.mergeObjects)(e,t)},P=function(e,t){return t},N=function(){function r(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=e({dataIdFromObject:O},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return r.prototype.identify=function(e,t,i){var r=t&&i?n(e,t,i):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a={typename:r,selectionSet:t,fragmentMap:i},s=r&&this.getTypePolicy(r),p=s&&s.keyFn||this.config.dataIdFromObject;p;){var l=p(e,a);if(!Array.isArray(l)){o=l;break}p=E(l)}return o=o&&String(o),a.keyObject?[o,a.keyObject]:[o]},r.prototype.addTypePolicies=function(e){var i=this;Object.keys(e).forEach((function(r){var o=e[r],n=o.queryType,a=o.mutationType,s=o.subscriptionType,p=t(o,["queryType","mutationType","subscriptionType"]);n&&i.setRootTypename("Query",r),a&&i.setRootTypename("Mutation",r),s&&i.setRootTypename("Subscription",r),f.call(i.toBeAdded,r)?i.toBeAdded[r].push(p):i.toBeAdded[r]=[p]}))},r.prototype.updateTypePolicy=function(e,t){var i=this,r=this.getTypePolicy(e),o=t.keyFields,n=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?F:!1===t?P:e.merge}a(r,t.merge),r.keyFn=!1===o?T:Array.isArray(o)?E(o):"function"==typeof o?o:r.keyFn,n&&Object.keys(n).forEach((function(t){var r=i.getFieldPolicy(e,t,!0),o=n[t];if("function"==typeof o)r.read=o;else{var s=o.keyArgs,p=o.read,l=o.merge;r.keyFn=!1===s?S:Array.isArray(s)?A(s):"function"==typeof s?s:r.keyFn,"function"==typeof p&&(r.read=p),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||S)}))},r.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),o=this.rootTypenamesById[r];t!==o&&("production"===process.env.NODE_ENV?i(!o||o===e,1):i(!o||o===e,"Cannot change root "+e+" __typename more than once"),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},r.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(i){t.getSupertypeSet(i,!0),e[i].forEach((function(e){t.getSupertypeSet(e,!0).add(i);var r=e.match(d);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},r.prototype.getTypePolicy=function(e){var i=this;if(!f.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(e);o&&o.size&&o.forEach((function(e){var o=i.getTypePolicy(e),n=o.fields,a=t(o,["fields"]);Object.assign(r,a),Object.assign(r.fields,n)}))}var n=this.toBeAdded[e];return n&&n.length&&this.updateTypePolicy(e,u.apply(void 0,n.splice(0))),this.typePolicies[e]},r.prototype.getFieldPolicy=function(e,t,i){if(e){var r=this.getTypePolicy(e).fields;return r[t]||i&&(r[t]=Object.create(null))}},r.prototype.getSupertypeSet=function(e,t){var i=this.supertypeMap.get(e);return!i&&t&&this.supertypeMap.set(e,i=new Set),i},r.prototype.fragmentMatches=function(e,t,r,o){var n=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),p=[s],l=function(e){var t=n.getSupertypeSet(e,!1);t&&t.size&&p.indexOf(t)<0&&p.push(t)},c=!(!r||!this.fuzzySubtypes.size),y=!1,u=0;u<p.length;++u){var f=p[u];if(f.has(a))return s.has(a)||(y&&("production"===process.env.NODE_ENV||i.warn("Inferring subtype "+t+" of supertype "+a)),s.add(a)),!0;f.forEach(l),c&&u===p.length-1&&m(e.selectionSet,r,o)&&(c=!1,y=!0,this.fuzzySubtypes.forEach((function(e,i){var r=t.match(e);r&&r[0]===t&&l(i)})))}return!1},r.prototype.hasKeyArgs=function(e,t){var i=this.getFieldPolicy(e,t,!1);return!(!i||!i.keyFn)},r.prototype.getStoreFieldName=function(e){var t,i=e.typename,r=e.fieldName,o=this.getFieldPolicy(i,r,!1),n=o&&o.keyFn;if(n&&i)for(var a={typename:i,fieldName:r,field:e.field||null,variables:e.variables},l=j(e);n;){var c=n(l,a);if(!Array.isArray(c)){t=c||r;break}n=A(c)}return void 0===t&&(t=e.field?s(e.field,e.variables):p(r,j(e))),r===h(t)?t:r+":"+t},r.prototype.readField=function(e,t){var i=e.from;if(i&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(i,"__typename");r&&(e.typename=r)}var o=this.getStoreFieldName(e),n=h(o),a=t.store.getFieldValue(i,o),s=this.getFieldPolicy(e.typename,n,!1),p=s&&s.read;if(p){var c=_(this,i,e,t,t.store.getStorage(l(i)?i.__ref:i,o));return g.withValue(this.cache,p,[a,c])}return a}},r.prototype.getMergeFunction=function(e,t,i){var r=this.getFieldPolicy(e,t,!1),o=r&&r.merge;return!o&&i&&(o=(r=this.getTypePolicy(i))&&r.merge),o},r.prototype.runMergeFunction=function(e,t,i,r,o){var n=i.field,a=i.typename,s=i.merge;return s===F?k(r.store.getFieldValue)(e,t):s===P?t:s(e,t,_(this,void 0,{typename:a,fieldName:n.name.value,field:n,variables:r.variables},r,o||Object.create(null)))},r}();function _(t,i,r,o,n){var a=t.getStoreFieldName(r),s=h(a),p=r.variables||o.variables,c=o.store,y=c.getFieldValue,u=c.toReference,f=c.canRead;return{args:j(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:p,isReference:l,toReference:u,storage:n,cache:t.cache,canRead:f,readField:function(r,n){var a="string"==typeof r?{fieldName:r,from:n}:e({},r);return void 0===a.from&&(a.from=i),void 0===a.variables&&(a.variables=p),t.readField(a,o)},mergeObjects:k(y)}}function k(t){return function(i,o){if(Array.isArray(i)||Array.isArray(o))throw"production"===process.env.NODE_ENV?new r(2):new r("Cannot automatically merge arrays");if(i&&"object"==typeof i&&o&&"object"==typeof o){var n=t(i,"__typename"),a=t(o,"__typename");return!(n&&a&&n!==a)&&v(i)&&v(o)?e(e({},i),o):o}return o}}function A(e){return function(t,i){return t?i.fieldName+":"+JSON.stringify(R(t,e,!1)):i.fieldName}}function E(e){var t=new b(y);return function(i,r){var o;if(r.selectionSet&&r.fragmentMap){var n=t.lookupArray([r.selectionSet,r.fragmentMap]);o=n.aliasMap||(n.aliasMap=M(r.selectionSet,r.fragmentMap))}var a=r.keyObject=R(i,e,!0,o);return r.typename+":"+JSON.stringify(a)}}function M(e,t){var i=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(c(e)){if(e.alias){var n=e.alias.value,a=e.name.value;if(a!==n)(i.aliases||(i.aliases=Object.create(null)))[a]=n}if(e.selectionSet)(i.subsets||(i.subsets=Object.create(null)))[e.name.value]=M(e.selectionSet,t)}else{var s=o(e,t);s&&r.add(s.selectionSet)}}))})),i}function R(e,t,r,o){var n,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof n){var s=o&&o.subsets,p=s&&s[n];a[n]=R(e[n],t,r,p)}}else{var l=o&&o.aliases,c=l&&l[t]||t;f.call(e,c)?a[n=t]=e[c]:("production"===process.env.NODE_ENV?i(!r,3):i(!r,"Missing field '"+c+"' while computing key fields"),n=void 0)}})),a}export{N as Policies,O as defaultDataIdFromObject};
@@ -1 +0,0 @@
1
- import{Slot as e}from"../../../../@wry/context/lib/context.esm.js";import{dep as t}from"../../../../optimism/lib/bundle.esm.js";var n=t(),r=new e;function a(e,t){if(e.size){var n=[];e.forEach((function(e){return n.push(e)})),e.clear(),n.forEach(t)}}var o=new WeakMap;function c(e){var t=o.get(e);t&&(a(t,(function(t){return t.forgetCache(e)})),o.delete(e))}function i(e){var t=new Set,c=new Set,i=function(o){if(arguments.length>0)e!==o&&(e=o,n.dirty(i),t.forEach(u),a(c,(function(t){return t(e)})));else{var d=r.getValue();d&&f(d),n(i)}return e};i.onNextChange=function(e){return c.add(e),function(){c.delete(e)}};var f=i.attachCache=function(e){t.add(e);var n=o.get(e);return n||o.set(e,n=new Set),n.add(i),i};return i.forgetCache=function(e){var n=t.delete(e);if(n){var r=o.get(e);r&&r.delete(i)}return n},i}function u(e){e.broadcastWatches&&e.broadcastWatches()}export{r as cacheSlot,c as forgetCache,i as makeVar};
@@ -1 +0,0 @@
1
- import{__assign as e}from'../../ext/tslib/tslib.es6.js';import{wrap as t}from"../../../../optimism/lib/bundle.esm.js";import{InvariantError as r,invariant as i}from"../../../../ts-invariant/lib/invariant.esm.js";import{shouldInclude as n}from"../../utilities/graphql/directives.js";import{createFragmentMap as s,getFragmentFromSelection as o}from"../../utilities/graphql/fragments.js";import{getDefaultValues as c,getQueryDefinition as a,getMainDefinition as l,getFragmentDefinitions as u}from"../../utilities/graphql/getFromAST.js";import{isReference as p,makeReference as f,isField as m,resultKeyNameFromField as d}from"../../utilities/graphql/storeUtils.js";import{addTypenameToDocument as y}from"../../utilities/graphql/transform.js";import{mergeDeepArray as v}from"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import{maybeDeepFreeze as h}from"../../utilities/common/maybeDeepFreeze.js";import"../../utilities/observables/Concast.js";import{supportsResultCaching as S}from"./entityStore.js";import{getTypenameFromStoreObject as g}from"./helpers.js";import{MissingFieldError as b}from"../core/types/common.js";function j(e,t){return new b(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var O=function(){function g(r){var i=this;this.config=r,this.executeSelectionSet=t((function(e){return i.execSelectionSetImpl(e)}),{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(S(r.store))return r.store.makeCacheKey(e,p(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=t((function(e){return i.execSubSelectedArrayImpl(e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,i=e.context;if(S(i.store))return i.store.makeCacheKey(t,r,i.varString)}}),this.config=e({addTypename:!0},r)}return g.prototype.diffQueryAgainstStore=function(t){var r=t.store,i=t.query,n=t.rootId,o=void 0===n?"ROOT_QUERY":n,p=t.variables,m=t.returnPartialData,d=void 0===m||m,y=this.config.cache.policies;p=e(e({},c(a(i))),p);var v=this.executeSelectionSet({selectionSet:l(i).selectionSet,objectOrReference:f(o),context:{store:r,query:i,policies:y,variables:p,varString:JSON.stringify(p),fragmentMap:s(u(i)),path:[],clientOnly:!1}}),h=v.missing&&v.missing.length>0;if(h&&!d)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!h}},g.prototype.isFresh=function(e,t,r,i){if(S(i.store)&&this.knownResults.get(e)===r){var n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1},g.prototype.execSelectionSetImpl=function(e){var t=this,s=e.selectionSet,c=e.objectOrReference,a=e.context;if(p(c)&&!a.policies.rootTypenamesById[c.__ref]&&!a.store.has(c.__ref))return{result:{},missing:[j("production"===process.env.NODE_ENV?new r(4):new r("Dangling reference to missing "+c.__ref+" object"),a)]};var l=a.variables,u=a.policies,f=a.store,S=[],g={result:null},b=f.getFieldValue(c,"__typename");function O(){return g.missing||(g.missing=[])}function x(e){var t;return e.missing&&(t=O()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof b&&!u.rootIdsByTypename[b]&&S.push({__typename:b});var E=new Set(s.selections);return E.forEach((function(e){var s;if(n(e,l))if(m(e)){var f=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:c},a),v=d(e);a.path.push(v);var g=a.clientOnly;a.clientOnly=g||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===f?y.added(e)||O().push(j("production"===process.env.NODE_ENV?new r(5):new r("Can't find field '"+e.name.value+"' on "+(p(c)?c.__ref+" object":"object "+JSON.stringify(c,null,2))),a)):Array.isArray(f)?f=x(t.executeSubSelectedArray({field:e,array:f,context:a})):e.selectionSet?null!=f&&(f=x(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:f,context:a}))):"production"!==process.env.NODE_ENV&&(_(a.store,e,f),h(f)),void 0!==f&&S.push(((s={})[v]=f,s)),a.clientOnly=g,i(a.path.pop()===v)}else{var N=o(e,a.fragmentMap);N&&u.fragmentMatches(N,b)&&N.selectionSet.selections.forEach(E.add,E)}})),g.result=v(S),"production"!==process.env.NODE_ENV&&Object.freeze(g.result),this.knownResults.set(g.result,s),g},g.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,s=e.array,o=e.context;function c(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),i(o.path.pop()===r),e.result}return n.selectionSet&&(s=s.filter(o.store.canRead)),s=s.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?c(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):("production"!==process.env.NODE_ENV&&_(o.store,n,e),i(o.path.pop()===t),e))})),"production"!==process.env.NODE_ENV&&Object.freeze(s),{result:s,missing:t}},g}();function _(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){r&&"object"==typeof r&&("production"===process.env.NODE_ENV?i(!p(r),6):i(!p(r),"Missing selection set for object of type "+g(e,r)+" returned for query field "+t.name.value),Object.values(r).forEach(n.add,n))}))}}export{O as StoreReader};
@@ -1 +0,0 @@
1
- import{__assign as e}from'../../ext/tslib/tslib.es6.js';import{InvariantError as t,invariant as r}from"../../../../ts-invariant/lib/invariant.esm.js";import i from"../../../../@wry/equality/lib/equality.esm.js";import{shouldInclude as n,hasDirectives as o}from"../../utilities/graphql/directives.js";import{createFragmentMap as a,getFragmentFromSelection as s}from"../../utilities/graphql/fragments.js";import{getOperationDefinition as l,getDefaultValues as c,getFragmentDefinitions as u}from"../../utilities/graphql/getFromAST.js";import{isReference as p,getTypenameFromResult as f,isField as m,resultKeyNameFromField as g,makeReference as d}from"../../utilities/graphql/storeUtils.js";import"../../utilities/graphql/transform.js";import"../../utilities/common/mergeDeep.js";import"../../utilities/observables/Observable.js";import{cloneDeep as v}from"../../utilities/common/cloneDeep.js";import"../../utilities/observables/Concast.js";import{makeProcessedFieldsMerger as h,storeValueIsStoreObject as y,fieldNameFromStoreName as b}from"./helpers.js";var S=function(){function S(e,t){this.cache=e,this.reader=t}return S.prototype.writeToStore=function(r){var i=r.query,n=r.result,o=r.dataId,s=r.store,f=r.variables,m=l(i),g=h();f=e(e({},c(m)),f);var d=this.processSelectionSet({result:n||Object.create(null),dataId:o,selectionSet:m.selectionSet,mergeTree:{map:new Map},context:{store:s,written:Object.create(null),merge:function(e,t){return g.merge(e,t)},variables:f,varString:JSON.stringify(f),fragmentMap:a(u(i))}});if(!p(d))throw"production"===process.env.NODE_ENV?new t(7):new t("Could not identify object "+JSON.stringify(n));return s.retain(d.__ref),d},S.prototype.processSelectionSet=function(e){var a=this,l=e.dataId,c=e.result,u=e.selectionSet,v=e.context,h=e.mergeTree,y=this.cache.policies,S=y.identify(c,u,v.fragmentMap),j=S[0],N=S[1];if("string"==typeof(l=l||j)){var O=v.written[l]||(v.written[l]=[]),F=d(l);if(O.indexOf(u)>=0)return F;if(O.push(u),this.reader&&this.reader.isFresh(c,F,u,v))return F}var M=Object.create(null);N&&(M=v.merge(M,N));var V=l&&y.rootTypenamesById[l]||f(c,u,v.fragmentMap)||l&&v.store.get(l,"__typename");"string"==typeof V&&(M.__typename=V);var A=new Set(u.selections);if(A.forEach((function(e){var r;if(n(e,v.variables))if(m(e)){var i=g(e),l=c[i];if(void 0!==l){var u=y.getStoreFieldName({typename:V,fieldName:e.name.value,field:e,variables:v.variables}),p=_(h,u),f=a.processFieldValue(l,e,v,p),d=e.selectionSet&&v.store.getFieldValue(f,"__typename")||void 0,b=y.getMergeFunction(V,e.name.value,d);b?p.info={field:e,typename:V,merge:b}:w(h,u),M=v.merge(M,((r={})[u]=f,r))}else if(y.usingPossibleTypes&&!o(["defer","client"],e))throw"production"===process.env.NODE_ENV?new t(8):new t("Missing field '"+i+"' in "+JSON.stringify(c,null,2).substring(0,100))}else{var S=s(e,v.fragmentMap);S&&y.fragmentMatches(S,V,c,v.variables)&&S.selectionSet.selections.forEach(A.add,A)}})),"string"==typeof l){var D=d(l);if(h.map.size&&(M=this.applyMerges(h,D,M,v)),"production"!==process.env.NODE_ENV){var q=new Set;A.forEach((function(e){m(e)&&e.selectionSet&&q.add(e.name.value)}));Object.keys(M).forEach((function(e){(function(e){return q.has(b(e))})(e)&&!function(e){var t=h.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,o){var a=function(e){var t=o.getFieldValue(e,n);return"object"==typeof t&&t},s=a(e);if(!s)return;var l=a(t);if(!l)return;if(p(s))return;if(i(s,l))return;if(Object.keys(s).every((function(e){return void 0!==o.getFieldValue(l,e)})))return;var c=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),u=b(n),f=c+"."+u;if(E.has(f))return;E.add(f);var m=[];Array.isArray(s)||Array.isArray(l)||[s,l].forEach((function(e){var t=o.getFieldValue(e,"__typename");"string"!=typeof t||m.includes(t)||m.push(t)}));"production"===process.env.NODE_ENV||r.warn("Cache data may be lost when replacing the "+u+" field of a "+c+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(m.length?"either ensure all objects of type "+m.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+f+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(s).slice(0,1e3)+"\n incoming: "+JSON.stringify(l).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}(D,M,e,v.store)}))}return v.store.merge(l,M),D}return M},S.prototype.processFieldValue=function(e,t,r,i){var n=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=n.processFieldValue(e,t,r,_(i,o));return w(i,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i}):"production"===process.env.NODE_ENV?e:v(e)},S.prototype.applyMerges=function(t,i,n,o,a){var s,l=this;if(t.map.size&&!p(n)){var c,u=Array.isArray(n)||!p(i)&&!y(i)?void 0:i,f=n;u&&!a&&(a=[p(u)?u.__ref:u]);var m=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};t.map.forEach((function(e,t){a&&a.push(t);var i=m(u,t),n=m(f,t),s=l.applyMerges(e,i,n,o,a);s!==n&&(c=c||new Map).set(t,s),a&&r(a.pop()===t)})),c&&(n=Array.isArray(f)?f.slice(0):e({},f),c.forEach((function(e,t){n[t]=e})))}return t.info?this.cache.policies.runMergeFunction(i,n,t.info,o,a&&(s=o.store).getStorage.apply(s,a)):n},S}(),j=[];function _(e,t){var r=e.map;return r.has(t)||r.set(t,j.pop()||{map:new Map}),r.get(t)}function w(e,t){var r=e.map,i=r.get(t);!i||i.info||i.map.size||(j.push(i),r.delete(t))}var E=new Set;export{S as StoreWriter};
@@ -1 +0,0 @@
1
- import{__assign as e}from'../ext/tslib/tslib.es6.js';import{InvariantError as t,invariant as r}from"../../../ts-invariant/lib/invariant.esm.js";import{ApolloLink as o}from"../link/core/ApolloLink.js";import{execute as i}from"../link/core/execute.js";import"../utilities/graphql/transform.js";import"../utilities/common/mergeDeep.js";import"../utilities/observables/Observable.js";import"../utilities/observables/Concast.js";import{compact as s}from"../utilities/common/compact.js";import{version as n}from"../version.js";import{HttpLink as a}from"../link/http/HttpLink.js";import{QueryManager as c}from"./QueryManager.js";import{LocalState as l}from"./LocalState.js";var u=!1;function h(t,r){return s(t,r,r.variables&&{variables:e(e({},t.variables),r.variables)})}var p=function(){function s(e){var i=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var s=e.uri,h=e.credentials,p=e.headers,f=e.cache,d=e.ssrMode,y=void 0!==d&&d,m=e.ssrForceFetchDelay,b=void 0===m?0:m,v=e.connectToDevTools,w=void 0===v?"object"==typeof window&&!window.__APOLLO_CLIENT__&&"production"!==process.env.NODE_ENV:v,k=e.queryDeduplication,g=void 0===k||k,O=e.defaultOptions,S=e.assumeImmutableResults,q=void 0!==S&&S,_=e.resolvers,M=e.typeDefs,Q=e.fragmentMatcher,F=e.name,C=e.version,j=e.link;if(j||(j=s?new a({uri:s,credentials:h,headers:p}):o.empty()),!f)throw"production"===process.env.NODE_ENV?new t(9):new t("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs");if(this.link=j,this.cache=f,this.disableNetworkFetches=y||b>0,this.queryDeduplication=g,this.defaultOptions=O||{},this.typeDefs=M,b&&setTimeout((function(){return i.disableNetworkFetches=!1}),b),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),w&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!u&&"production"!==process.env.NODE_ENV&&(u=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var L=window.navigator,P=L&&L.userAgent,D=void 0;"string"==typeof P&&(P.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":P.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&r.log("Download the Apollo DevTools for a better development experience: "+D)}this.version=n,this.localState=new l({cache:f,client:this,resolvers:_,fragmentMatcher:Q}),this.queryManager=new c({cache:this.cache,link:this.link,queryDeduplication:g,ssrMode:y,clientAwareness:{name:F,version:C},localState:this.localState,assumeImmutableResults:q,onBroadcast:w?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0})}return s.prototype.stop=function(){this.queryManager.stop()},s.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=h(this.defaultOptions.watchQuery,t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=e(e({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},s.prototype.query=function(t){return this.defaultOptions.query&&(t=h(this.defaultOptions.query,t)),"production"===process.env.NODE_ENV?r("cache-and-network"!==t.fetchPolicy,10):r("cache-and-network"!==t.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=e(e({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},s.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=h(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},s.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},s.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},s.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},s.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},s.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},s.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},s.prototype.__requestRaw=function(e){return i(this.link,e)},s.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},s.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},s.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},s.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},s.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},s.prototype.extract=function(e){return this.cache.extract(e)},s.prototype.restore=function(e){return this.cache.restore(e)},s.prototype.addResolvers=function(e){this.localState.addResolvers(e)},s.prototype.setResolvers=function(e){this.localState.setResolvers(e)},s.prototype.getResolvers=function(){return this.localState.getResolvers()},s.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},s.prototype.setLink=function(e){this.link=this.queryManager.link=e},s}();export{p as ApolloClient,h as mergeOptions};
@@ -1 +0,0 @@
1
- import{__awaiter as e,__assign as t,__generator as r}from'../ext/tslib/tslib.es6.js';import{invariant as o}from"../../../ts-invariant/lib/invariant.esm.js";import{hasDirectives as i,shouldInclude as n}from"../utilities/graphql/directives.js";import{createFragmentMap as s}from"../utilities/graphql/fragments.js";import{getMainDefinition as a,getFragmentDefinitions as u}from"../utilities/graphql/getFromAST.js";import{resultKeyNameFromField as l,argumentsObjectFromField as c,isField as v,isInlineFragment as h}from"../utilities/graphql/storeUtils.js";import{removeClientSetsFromDocument as p,buildQueryFromSelectionSet as m}from"../utilities/graphql/transform.js";import{mergeDeep as f,mergeDeepArray as d}from"../utilities/common/mergeDeep.js";import"../utilities/observables/Observable.js";import"../utilities/observables/Concast.js";import"../cache/core/cache.js";import"../cache/inmemory/inMemoryCache.js";import{cacheSlot as y}from"../cache/inmemory/reactiveVars.js";import"../cache/inmemory/policies.js";import{visit as g,BREAK as b}from"../../../graphql/language/visitor.mjs.js";var S=function(){function S(e){var t=e.cache,r=e.client,o=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),o&&this.addResolvers(o),i&&this.setFragmentMatcher(i)}return S.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=f(t.resolvers,e)})):this.resolvers=f(this.resolvers,e)},S.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},S.prototype.getResolvers=function(){return this.resolvers||{}},S.prototype.runResolvers=function(o){var i=o.document,n=o.remoteResult,s=o.context,a=o.variables,u=o.onlyRunForcedResolvers,l=void 0!==u&&u;return e(this,void 0,void 0,(function(){return r(this,(function(e){return i?[2,this.resolveDocument(i,n.data,s,a,this.fragmentMatcher,l).then((function(e){return t(t({},n),{data:e.result})}))]:[2,n]}))}))},S.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},S.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},S.prototype.clientQuery=function(e){return i(["client"],e)&&this.resolvers?e:null},S.prototype.serverQuery=function(e){return p(e)},S.prototype.prepareContext=function(e){var r=this.cache;return t(t({},e),{cache:r,getCacheKey:function(e){return r.identify(e)}})},S.prototype.addExportedVariables=function(o,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),e(this,void 0,void 0,(function(){return r(this,(function(e){return o?[2,this.resolveDocument(o,this.buildRootValueFromCache(o,i)||{},this.prepareContext(n),i).then((function(e){return t(t({},i),e.exportedVariables)}))]:[2,t({},i)]}))}))},S.prototype.shouldForceResolvers=function(e){var t=!1;return g(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return b}}}),t},S.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:m(e),variables:t,returnPartialData:!0,optimistic:!1}).result},S.prototype.resolveDocument=function(o,i,n,l,c,v){return void 0===n&&(n={}),void 0===l&&(l={}),void 0===c&&(c=function(){return!0}),void 0===v&&(v=!1),e(this,void 0,void 0,(function(){var e,h,p,m,f,d,y,g,b;return r(this,(function(r){return e=a(o),h=u(o),p=s(h),m=e.operation,f=m?m.charAt(0).toUpperCase()+m.slice(1):"Query",y=(d=this).cache,g=d.client,b={fragmentMap:p,context:t(t({},n),{cache:y,client:g}),variables:l,fragmentMatcher:c,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:v},[2,this.resolveSelectionSet(e.selectionSet,i,b).then((function(e){return{result:e,exportedVariables:b.exportedVariables}}))]}))}))},S.prototype.resolveSelectionSet=function(t,i,s){return e(this,void 0,void 0,(function(){var a,u,c,p,m,f=this;return r(this,(function(y){return a=s.fragmentMap,u=s.context,c=s.variables,p=[i],m=function(t){return e(f,void 0,void 0,(function(){var e,m;return r(this,(function(r){return n(t,c)?v(t)?[2,this.resolveField(t,i,s).then((function(e){var r;void 0!==e&&p.push(((r={})[l(t)]=e,r))}))]:(h(t)?e=t:(e=a[t.name.value],"production"===process.env.NODE_ENV?o(e,11):o(e,"No fragment named "+t.name.value)),e&&e.typeCondition&&(m=e.typeCondition.name.value,s.fragmentMatcher(i,m,u))?[2,this.resolveSelectionSet(e.selectionSet,i,s).then((function(e){p.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(m)).then((function(){return d(p)}))]}))}))},S.prototype.resolveField=function(t,o,i){return e(this,void 0,void 0,(function(){var e,n,s,a,u,v,h,p,m,f=this;return r(this,(function(r){return e=i.variables,n=t.name.value,s=l(t),a=n!==s,u=o[s]||o[n],v=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(h=o.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[h])&&(m=p[a?n:s])&&(v=Promise.resolve(y.withValue(this.cache,m,[o,c(t,e),i.context,{field:t,fragmentMap:i.fragmentMap}])))),[2,v.then((function(e){return void 0===e&&(e=u),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(i.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?f.resolveSubSelectedArray(t,e,i):t.selectionSet?f.resolveSelectionSet(t.selectionSet,e,i):void 0:e}))]}))}))},S.prototype.resolveSubSelectedArray=function(e,t,r){var o=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?o.resolveSubSelectedArray(e,t,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r):void 0})))},S}();export{S as LocalState};
@@ -1 +0,0 @@
1
- import{__extends as e,__assign as r}from'../ext/tslib/tslib.es6.js';import{invariant as t}from"../../../ts-invariant/lib/invariant.esm.js";import s from"../../../@wry/equality/lib/equality.esm.js";import{NetworkStatus as o,isNetworkRequestInFlight as i}from"./networkStatus.js";import{getOperationDefinition as n}from"../utilities/graphql/getFromAST.js";import"../utilities/graphql/transform.js";import"../utilities/common/mergeDeep.js";import"../utilities/observables/Observable.js";import{cloneDeep as a}from"../utilities/common/cloneDeep.js";import{iterateObserversSafely as u}from"../utilities/observables/iteration.js";import"../utilities/observables/Concast.js";import{isNonEmptyArray as l}from"../utilities/common/arrays.js";import{Reobserver as c}from"./Reobserver.js";import h from"../../../zen-observable/index.js";var p=!1,v=function(h){function v(e){var t=e.queryManager,s=e.queryInfo,i=e.options,a=h.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.observer={next:function(e){(a.lastError||a.isDifferentFromLastResult(e))&&(a.updateLastResult(e),u(a.observers,"next",e))},error:function(e){a.updateLastResult(r(r({},a.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:o.error,loading:!1})),u(a.observers,"error",a.lastError=e)}},a.isTornDown=!1,a.options=i,a.queryId=t.generateQueryId();var l=n(i.query);return a.queryName=l&&l.name&&l.name.value,a.queryManager=t,a.queryInfo=s,a}return e(v,h),Object.defineProperty(v.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),v.prototype.result=function(){var e=this;return new Promise((function(r,t){var s={next:function(t){r(t),e.observers.delete(s),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:t},o=e.subscribe(s)}))},v.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,s=this.queryInfo.networkStatus||t&&t.networkStatus||o.ready,n=r(r({},t),{loading:i(s),networkStatus:s});if(this.isTornDown)return n;var a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if("no-cache"===u||"network-only"===u)delete n.partial;else if(!n.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();n.data=l.complete||this.options.returnPartialData?l.result:void 0,l.complete?(n.networkStatus!==o.loading||"cache-first"!==u&&"cache-only"!==u||(n.networkStatus=o.ready,n.loading=!1),delete n.partial):n.partial=!0}return e&&this.updateLastResult(n),n},v.prototype.isDifferentFromLastResult=function(e){return!s(this.lastResultSnapshot,e)},v.prototype.getLastResult=function(){return this.lastResult},v.prototype.getLastError=function(){return this.lastError},v.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},v.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},v.prototype.refetch=function(e){var t={pollInterval:0},i=this.options.fetchPolicy;return"no-cache"!==i&&"cache-and-network"!==i&&(t.fetchPolicy="network-only",t.nextFetchPolicy=i||"cache-first"),e&&!s(this.options.variables,e)&&(t.variables=this.options.variables=r(r({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,o.refetch)},v.prototype.fetchMore=function(e){var s=this,i=r(r({},e.query?e:r(r(r({},this.options),e),{variables:r(r({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId();return i.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=o.fetchMore,this.observe()),this.queryManager.fetchQuery(n,i,o.fetchMore).then((function(r){var o=r.data,n=e.updateQuery;return n?("production"===process.env.NODE_ENV||p||("production"===process.env.NODE_ENV||t.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),p=!0),s.updateQuery((function(e){return n(e,{fetchMoreResult:o,variables:i.variables})}))):s.queryManager.cache.writeQuery({query:i.query,variables:i.variables,data:o}),r})).finally((function(){s.queryManager.stopQuery(n),s.reobserve()}))},v.prototype.subscribeToMore=function(e){var r=this,s=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(t){var s=e.updateQuery;s&&r.updateQuery((function(e,r){var o=r.variables;return s(e,{subscriptionData:t,variables:o})}))},error:function(r){e.onError?e.onError(r):"production"===process.env.NODE_ENV||t.error("Unhandled GraphQL subscription error",r)}});return this.subscriptions.add(s),function(){r.subscriptions.delete(s)&&s.unsubscribe()}},v.prototype.setOptions=function(e){return this.reobserve(e)},v.prototype.setVariables=function(e){if(s(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var r=this.options.fetchPolicy,t=void 0===r?"cache-first":r,i={fetchPolicy:t,variables:e};return"cache-first"!==t&&"no-cache"!==t&&"network-only"!==t&&(i.fetchPolicy="cache-and-network",i.nextFetchPolicy=t),this.reobserve(i,o.setVariables)},v.prototype.updateQuery=function(e){var r,t=this.queryManager,s=e(t.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(r=this.lastResult)||void 0===r?void 0:r.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});s&&(t.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),t.broadcastQueries())},v.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},v.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},v.prototype.updateLastResult=function(e){var r=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:a(e),l(e.errors)||delete this.lastError,r},v.prototype.onSubscribe=function(e){var r=this;if(e===this.observer)return function(){};try{var t=e._subscription._observer;t&&!t.error&&(t.error=b)}catch(e){}var s=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),s&&this.reobserve().catch((function(e){})),function(){r.observers.delete(e)&&!r.observers.size&&r.tearDownQuery()}},v.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},v.prototype.newReobserver=function(e){var t=this,s=this.queryManager,o=this.queryId;return s.setObservableQuery(this),new c(this.observer,e?this.options:r({},this.options),(function(e,r){return s.setObservableQuery(t),s.fetchQueryObservable(o,e,r)}),!s.ssrMode&&function(){return!i(t.queryInfo.networkStatus)})},v.prototype.reobserve=function(e,r){return this.isTornDown=!1,this.getReobserver().reobserve(e,r)},v.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},v.prototype.hasObservers=function(){return this.observers.size>0},v.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),delete this.options.context,this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},v}(h);function b(e){"production"===process.env.NODE_ENV||t.error("Unhandled error",e.message,e.stack)}export{v as ObservableQuery};
@@ -1 +0,0 @@
1
- import t from"../../../@wry/equality/lib/equality.esm.js";import"../../../ts-invariant/lib/invariant.esm.js";import"../utilities/graphql/transform.js";import"../utilities/common/mergeDeep.js";import"../utilities/observables/Observable.js";import"../utilities/observables/Concast.js";import{isNonEmptyArray as i}from"../utilities/common/arrays.js";import{graphQLResultHasError as e}from"../utilities/common/errorHandling.js";import{canUseWeakMap as r}from"../utilities/common/canUse.js";import{NetworkStatus as s,isNetworkRequestInFlight as o}from"./networkStatus.js";var a=new(r?WeakMap:Map);function n(t,i){var e=t[i];"function"==typeof e&&(t[i]=function(){return a.set(t,(a.get(t)+1)%1e15),e.apply(this,arguments)})}function h(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var u=function(){function e(t){this.cache=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,a.has(t)||(a.set(t,0),n(t,"evict"),n(t,"modify"),n(t,"reset"))}return e.prototype.init=function(i){var e=i.networkStatus||s.loading;return this.variables&&this.networkStatus!==s.loading&&!t(this.variables,i.variables)&&(e=s.setVariables),t(i.variables,this.variables)||(this.diff=null),Object.assign(this,{document:i.document,variables:i.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),i.observableQuery&&this.setObservableQuery(i.observableQuery),i.lastRequestId&&(this.lastRequestId=i.lastRequestId),this},e.prototype.getDiff=function(i){return void 0===i&&(i=this.variables),this.diff&&t(i,this.variables)?this.diff:(this.updateWatch(this.variables=i),this.diff=this.cache.diff({query:this.document,variables:i,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(t){var i=this,e=this.diff;this.diff=t,this.dirty||(t&&t.result)===(e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return i.notify()}),0)))},e.prototype.setObservableQuery=function(t){var i=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){i.getDiff().fromOptimisticTransaction?t.observe():t.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var t=this;h(this),this.shouldNotify()&&this.listeners.forEach((function(i){return i(t)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(o(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.cancel(),delete this.cancel,this.subscriptions.forEach((function(t){return t.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(i){var e=this;void 0===i&&(i=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&t(i,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:i,optimistic:!0,callback:function(t){return e.setDiff(t)}}))},e.prototype.shouldWrite=function(i,e){var r=this.lastWrite;return!(r&&r.dmCount===a.get(this.cache)&&t(e,r.variables)&&t(i.data,r.result.data))},e.prototype.markResult=function(t,e,r){var s=this;this.graphQLErrors=i(t.errors)?t.errors:[],h(this),"no-cache"===e.fetchPolicy?this.diff={result:t.data,complete:!0}:r&&(l(t,e.errorPolicy)?this.cache.performTransaction((function(i){if(s.shouldWrite(t,e.variables))i.writeQuery({query:s.document,data:t.data,variables:e.variables}),s.lastWrite={result:t,variables:e.variables,dmCount:a.get(s.cache)};else if(s.diff&&s.diff.complete)return void(t.data=s.diff.result);var r=i.diff({query:s.document,variables:e.variables,returnPartialData:!0,optimistic:!0});s.stopped||s.updateWatch(e.variables),s.diff=r,r.complete&&(t.data=r.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=s.ready},e.prototype.markError=function(t){return this.networkStatus=s.error,this.lastWrite=void 0,h(this),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function l(t,i){void 0===i&&(i="none");var r="ignore"===i||"all"===i,s=!e(t);return!s&&r&&t.data&&(s=!0),s}export{u as QueryInfo,l as shouldWriteResult};