@ikas/storefront 1.0.21 → 2.0.0-alpha.10

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 (1158) hide show
  1. package/build/__generated__/global-types.d.ts +35 -5
  2. package/build/__generated__/global-types.js +1 -0
  3. package/build/_virtual/Observable.js_commonjs-proxy.js +1 -0
  4. package/build/_virtual/Parser.js_commonjs-proxy.js +1 -0
  5. package/build/_virtual/ReactPropTypesSecret.js_commonjs-proxy.js +1 -0
  6. package/build/_virtual/Tokenizer.js_commonjs-proxy.js +1 -0
  7. package/build/_virtual/_DataView.js_commonjs-proxy.js +1 -0
  8. package/build/_virtual/_Hash.js_commonjs-proxy.js +1 -0
  9. package/build/_virtual/_ListCache.js_commonjs-proxy.js +1 -0
  10. package/build/_virtual/_Map.js_commonjs-proxy.js +1 -0
  11. package/build/_virtual/_MapCache.js_commonjs-proxy.js +1 -0
  12. package/build/_virtual/_Promise.js_commonjs-proxy.js +1 -0
  13. package/build/_virtual/_Set.js_commonjs-proxy.js +1 -0
  14. package/build/_virtual/_SetCache.js_commonjs-proxy.js +1 -0
  15. package/build/_virtual/_Stack.js_commonjs-proxy.js +1 -0
  16. package/build/_virtual/_Symbol.js_commonjs-proxy.js +1 -0
  17. package/build/_virtual/_Uint8Array.js_commonjs-proxy.js +1 -0
  18. package/build/_virtual/_WeakMap.js_commonjs-proxy.js +1 -0
  19. package/build/_virtual/_apply.js_commonjs-proxy.js +1 -0
  20. package/build/_virtual/_arrayAggregator.js_commonjs-proxy.js +1 -0
  21. package/build/_virtual/_arrayEach.js_commonjs-proxy.js +1 -0
  22. package/build/_virtual/_arrayFilter.js_commonjs-proxy.js +1 -0
  23. package/build/_virtual/_arrayIncludes.js_commonjs-proxy.js +1 -0
  24. package/build/_virtual/_arrayIncludesWith.js_commonjs-proxy.js +1 -0
  25. package/build/_virtual/_arrayLikeKeys.js_commonjs-proxy.js +1 -0
  26. package/build/_virtual/_arrayMap.js_commonjs-proxy.js +1 -0
  27. package/build/_virtual/_arrayPush.js_commonjs-proxy.js +1 -0
  28. package/build/_virtual/_arraySome.js_commonjs-proxy.js +1 -0
  29. package/build/_virtual/_assignValue.js_commonjs-proxy.js +1 -0
  30. package/build/_virtual/_assocIndexOf.js_commonjs-proxy.js +1 -0
  31. package/build/_virtual/_baseAggregator.js_commonjs-proxy.js +1 -0
  32. package/build/_virtual/_baseAssign.js_commonjs-proxy.js +1 -0
  33. package/build/_virtual/_baseAssignIn.js_commonjs-proxy.js +1 -0
  34. package/build/_virtual/_baseAssignValue.js_commonjs-proxy.js +1 -0
  35. package/build/_virtual/_baseClone.js_commonjs-proxy.js +1 -0
  36. package/build/_virtual/_baseCreate.js_commonjs-proxy.js +1 -0
  37. package/build/_virtual/_baseEach.js_commonjs-proxy.js +1 -0
  38. package/build/_virtual/_baseFindIndex.js_commonjs-proxy.js +1 -0
  39. package/build/_virtual/_baseFlatten.js_commonjs-proxy.js +1 -0
  40. package/build/_virtual/_baseFor.js_commonjs-proxy.js +1 -0
  41. package/build/_virtual/_baseForOwn.js_commonjs-proxy.js +1 -0
  42. package/build/_virtual/_baseGet.js_commonjs-proxy.js +1 -0
  43. package/build/_virtual/_baseGetAllKeys.js_commonjs-proxy.js +1 -0
  44. package/build/_virtual/_baseGetTag.js_commonjs-proxy.js +1 -0
  45. package/build/_virtual/_baseHasIn.js_commonjs-proxy.js +1 -0
  46. package/build/_virtual/_baseIndexOf.js_commonjs-proxy.js +1 -0
  47. package/build/_virtual/_baseIsArguments.js_commonjs-proxy.js +1 -0
  48. package/build/_virtual/_baseIsEqual.js_commonjs-proxy.js +1 -0
  49. package/build/_virtual/_baseIsEqualDeep.js_commonjs-proxy.js +1 -0
  50. package/build/_virtual/_baseIsMap.js_commonjs-proxy.js +1 -0
  51. package/build/_virtual/_baseIsMatch.js_commonjs-proxy.js +1 -0
  52. package/build/_virtual/_baseIsNaN.js_commonjs-proxy.js +1 -0
  53. package/build/_virtual/_baseIsNative.js_commonjs-proxy.js +1 -0
  54. package/build/_virtual/_baseIsSet.js_commonjs-proxy.js +1 -0
  55. package/build/_virtual/_baseIsTypedArray.js_commonjs-proxy.js +1 -0
  56. package/build/_virtual/_baseIteratee.js_commonjs-proxy.js +1 -0
  57. package/build/_virtual/_baseKeys.js_commonjs-proxy.js +1 -0
  58. package/build/_virtual/_baseKeysIn.js_commonjs-proxy.js +1 -0
  59. package/build/_virtual/_baseMap.js_commonjs-proxy.js +1 -0
  60. package/build/_virtual/_baseMatches.js_commonjs-proxy.js +1 -0
  61. package/build/_virtual/_baseMatchesProperty.js_commonjs-proxy.js +1 -0
  62. package/build/_virtual/_baseOrderBy.js_commonjs-proxy.js +1 -0
  63. package/build/_virtual/_baseProperty.js_commonjs-proxy.js +1 -0
  64. package/build/_virtual/_basePropertyDeep.js_commonjs-proxy.js +1 -0
  65. package/build/_virtual/_baseRest.js_commonjs-proxy.js +1 -0
  66. package/build/_virtual/_baseSetToString.js_commonjs-proxy.js +1 -0
  67. package/build/_virtual/_baseSortBy.js_commonjs-proxy.js +1 -0
  68. package/build/_virtual/_baseTimes.js_commonjs-proxy.js +1 -0
  69. package/build/_virtual/_baseToString.js_commonjs-proxy.js +1 -0
  70. package/build/_virtual/_baseUnary.js_commonjs-proxy.js +1 -0
  71. package/build/_virtual/_baseUniq.js_commonjs-proxy.js +1 -0
  72. package/build/_virtual/_cacheHas.js_commonjs-proxy.js +1 -0
  73. package/build/_virtual/_castFunction.js_commonjs-proxy.js +1 -0
  74. package/build/_virtual/_castPath.js_commonjs-proxy.js +1 -0
  75. package/build/_virtual/_cloneArrayBuffer.js_commonjs-proxy.js +1 -0
  76. package/build/_virtual/_cloneBuffer.js_commonjs-proxy.js +1 -0
  77. package/build/_virtual/_cloneDataView.js_commonjs-proxy.js +1 -0
  78. package/build/_virtual/_cloneRegExp.js_commonjs-proxy.js +1 -0
  79. package/build/_virtual/_cloneSymbol.js_commonjs-proxy.js +1 -0
  80. package/build/_virtual/_cloneTypedArray.js_commonjs-proxy.js +1 -0
  81. package/build/_virtual/_commonjsHelpers.js +1 -0
  82. package/build/_virtual/_compareAscending.js_commonjs-proxy.js +1 -0
  83. package/build/_virtual/_compareMultiple.js_commonjs-proxy.js +1 -0
  84. package/build/_virtual/_copyArray.js_commonjs-proxy.js +1 -0
  85. package/build/_virtual/_copyObject.js_commonjs-proxy.js +1 -0
  86. package/build/_virtual/_copySymbols.js_commonjs-proxy.js +1 -0
  87. package/build/_virtual/_copySymbolsIn.js_commonjs-proxy.js +1 -0
  88. package/build/_virtual/_coreJsData.js_commonjs-proxy.js +1 -0
  89. package/build/_virtual/_createAggregator.js_commonjs-proxy.js +1 -0
  90. package/build/_virtual/_createBaseEach.js_commonjs-proxy.js +1 -0
  91. package/build/_virtual/_createBaseFor.js_commonjs-proxy.js +1 -0
  92. package/build/_virtual/_createSet.js_commonjs-proxy.js +1 -0
  93. package/build/_virtual/_defineProperty.js_commonjs-proxy.js +1 -0
  94. package/build/_virtual/_equalArrays.js_commonjs-proxy.js +1 -0
  95. package/build/_virtual/_equalByTag.js_commonjs-proxy.js +1 -0
  96. package/build/_virtual/_equalObjects.js_commonjs-proxy.js +1 -0
  97. package/build/_virtual/_freeGlobal.js_commonjs-proxy.js +1 -0
  98. package/build/_virtual/_getAllKeys.js_commonjs-proxy.js +1 -0
  99. package/build/_virtual/_getAllKeysIn.js_commonjs-proxy.js +1 -0
  100. package/build/_virtual/_getMapData.js_commonjs-proxy.js +1 -0
  101. package/build/_virtual/_getMatchData.js_commonjs-proxy.js +1 -0
  102. package/build/_virtual/_getNative.js_commonjs-proxy.js +1 -0
  103. package/build/_virtual/_getPrototype.js_commonjs-proxy.js +1 -0
  104. package/build/_virtual/_getRawTag.js_commonjs-proxy.js +1 -0
  105. package/build/_virtual/_getSymbols.js_commonjs-proxy.js +1 -0
  106. package/build/_virtual/_getSymbolsIn.js_commonjs-proxy.js +1 -0
  107. package/build/_virtual/_getTag.js_commonjs-proxy.js +1 -0
  108. package/build/_virtual/_getValue.js_commonjs-proxy.js +1 -0
  109. package/build/_virtual/_hasPath.js_commonjs-proxy.js +1 -0
  110. package/build/_virtual/_hashClear.js_commonjs-proxy.js +1 -0
  111. package/build/_virtual/_hashDelete.js_commonjs-proxy.js +1 -0
  112. package/build/_virtual/_hashGet.js_commonjs-proxy.js +1 -0
  113. package/build/_virtual/_hashHas.js_commonjs-proxy.js +1 -0
  114. package/build/_virtual/_hashSet.js_commonjs-proxy.js +1 -0
  115. package/build/_virtual/_initCloneArray.js_commonjs-proxy.js +1 -0
  116. package/build/_virtual/_initCloneByTag.js_commonjs-proxy.js +1 -0
  117. package/build/_virtual/_initCloneObject.js_commonjs-proxy.js +1 -0
  118. package/build/_virtual/_isFlattenable.js_commonjs-proxy.js +1 -0
  119. package/build/_virtual/_isIndex.js_commonjs-proxy.js +1 -0
  120. package/build/_virtual/_isIterateeCall.js_commonjs-proxy.js +1 -0
  121. package/build/_virtual/_isKey.js_commonjs-proxy.js +1 -0
  122. package/build/_virtual/_isKeyable.js_commonjs-proxy.js +1 -0
  123. package/build/_virtual/_isMasked.js_commonjs-proxy.js +1 -0
  124. package/build/_virtual/_isPrototype.js_commonjs-proxy.js +1 -0
  125. package/build/_virtual/_isStrictComparable.js_commonjs-proxy.js +1 -0
  126. package/build/_virtual/_listCacheClear.js_commonjs-proxy.js +1 -0
  127. package/build/_virtual/_listCacheDelete.js_commonjs-proxy.js +1 -0
  128. package/build/_virtual/_listCacheGet.js_commonjs-proxy.js +1 -0
  129. package/build/_virtual/_listCacheHas.js_commonjs-proxy.js +1 -0
  130. package/build/_virtual/_listCacheSet.js_commonjs-proxy.js +1 -0
  131. package/build/_virtual/_mapCacheClear.js_commonjs-proxy.js +1 -0
  132. package/build/_virtual/_mapCacheDelete.js_commonjs-proxy.js +1 -0
  133. package/build/_virtual/_mapCacheGet.js_commonjs-proxy.js +1 -0
  134. package/build/_virtual/_mapCacheHas.js_commonjs-proxy.js +1 -0
  135. package/build/_virtual/_mapCacheSet.js_commonjs-proxy.js +1 -0
  136. package/build/_virtual/_mapToArray.js_commonjs-proxy.js +1 -0
  137. package/build/_virtual/_matchesStrictComparable.js_commonjs-proxy.js +1 -0
  138. package/build/_virtual/_memoizeCapped.js_commonjs-proxy.js +1 -0
  139. package/build/_virtual/_nativeCreate.js_commonjs-proxy.js +1 -0
  140. package/build/_virtual/_nativeKeys.js_commonjs-proxy.js +1 -0
  141. package/build/_virtual/_nativeKeysIn.js_commonjs-proxy.js +1 -0
  142. package/build/_virtual/_nodeUtil.js_commonjs-proxy.js +1 -0
  143. package/build/_virtual/_objectToString.js_commonjs-proxy.js +1 -0
  144. package/build/_virtual/_overArg.js_commonjs-proxy.js +1 -0
  145. package/build/_virtual/_overRest.js_commonjs-proxy.js +1 -0
  146. package/build/_virtual/_registry.js_commonjs-proxy.js +1 -0
  147. package/build/_virtual/_root.js_commonjs-proxy.js +1 -0
  148. package/build/_virtual/_setCacheAdd.js_commonjs-proxy.js +1 -0
  149. package/build/_virtual/_setCacheHas.js_commonjs-proxy.js +1 -0
  150. package/build/_virtual/_setToArray.js_commonjs-proxy.js +1 -0
  151. package/build/_virtual/_setToString.js_commonjs-proxy.js +1 -0
  152. package/build/_virtual/_shortOut.js_commonjs-proxy.js +1 -0
  153. package/build/_virtual/_stackClear.js_commonjs-proxy.js +1 -0
  154. package/build/_virtual/_stackDelete.js_commonjs-proxy.js +1 -0
  155. package/build/_virtual/_stackGet.js_commonjs-proxy.js +1 -0
  156. package/build/_virtual/_stackHas.js_commonjs-proxy.js +1 -0
  157. package/build/_virtual/_stackSet.js_commonjs-proxy.js +1 -0
  158. package/build/_virtual/_stream_duplex.js_commonjs-proxy.js +1 -0
  159. package/build/_virtual/_stream_passthrough.js_commonjs-proxy.js +1 -0
  160. package/build/_virtual/_stream_readable.js_commonjs-proxy.js +1 -0
  161. package/build/_virtual/_stream_transform.js_commonjs-proxy.js +1 -0
  162. package/build/_virtual/_stream_writable.js_commonjs-proxy.js +1 -0
  163. package/build/_virtual/_strictIndexOf.js_commonjs-proxy.js +1 -0
  164. package/build/_virtual/_stringToPath.js_commonjs-proxy.js +1 -0
  165. package/build/_virtual/_toKey.js_commonjs-proxy.js +1 -0
  166. package/build/_virtual/_toSource.js_commonjs-proxy.js +1 -0
  167. package/build/_virtual/async_iterator.js_commonjs-proxy.js +1 -0
  168. package/build/_virtual/attributes-to-props.js_commonjs-proxy.js +1 -0
  169. package/build/_virtual/buffer_list.js_commonjs-proxy.js +1 -0
  170. package/build/_virtual/checkPropTypes.js_commonjs-proxy.js +1 -0
  171. package/build/_virtual/constant.js_commonjs-proxy.js +1 -0
  172. package/build/_virtual/decode_codepoint.js_commonjs-proxy.js +1 -0
  173. package/build/_virtual/destroy.js_commonjs-proxy.js +1 -0
  174. package/build/_virtual/dom-to-react.js_commonjs-proxy.js +1 -0
  175. package/build/_virtual/end-of-stream.js_commonjs-proxy.js +1 -0
  176. package/build/_virtual/eq.js_commonjs-proxy.js +1 -0
  177. package/build/_virtual/errors.js_commonjs-proxy.js +1 -0
  178. package/build/_virtual/factoryWithThrowingShims.js_commonjs-proxy.js +1 -0
  179. package/build/_virtual/factoryWithTypeCheckers.js_commonjs-proxy.js +1 -0
  180. package/build/_virtual/from.js_commonjs-proxy.js +1 -0
  181. package/build/_virtual/get.js_commonjs-proxy.js +1 -0
  182. package/build/_virtual/hasIn.js_commonjs-proxy.js +1 -0
  183. package/build/_virtual/html-to-dom.js_commonjs-proxy.js +1 -0
  184. package/build/_virtual/identity.js_commonjs-proxy.js +1 -0
  185. package/build/_virtual/index.js_commonjs-proxy.js +1 -0
  186. package/build/_virtual/index.js_commonjs-proxy10.js +1 -0
  187. package/build/_virtual/index.js_commonjs-proxy11.js +1 -0
  188. package/build/_virtual/index.js_commonjs-proxy12.js +1 -0
  189. package/build/_virtual/index.js_commonjs-proxy13.js +1 -0
  190. package/build/_virtual/index.js_commonjs-proxy2.js +1 -0
  191. package/build/_virtual/index.js_commonjs-proxy3.js +1 -0
  192. package/build/_virtual/index.js_commonjs-proxy4.js +1 -0
  193. package/build/_virtual/index.js_commonjs-proxy5.js +1 -0
  194. package/build/_virtual/index.js_commonjs-proxy6.js +1 -0
  195. package/build/_virtual/index.js_commonjs-proxy7.js +1 -0
  196. package/build/_virtual/index.js_commonjs-proxy8.js +1 -0
  197. package/build/_virtual/index.js_commonjs-proxy9.js +1 -0
  198. package/build/_virtual/inherits.js_commonjs-proxy.js +1 -0
  199. package/build/_virtual/inherits_browser.js_commonjs-proxy.js +1 -0
  200. package/build/_virtual/isArguments.js_commonjs-proxy.js +1 -0
  201. package/build/_virtual/isArray.js_commonjs-proxy.js +1 -0
  202. package/build/_virtual/isArrayLike.js_commonjs-proxy.js +1 -0
  203. package/build/_virtual/isBuffer.js_commonjs-proxy.js +1 -0
  204. package/build/_virtual/isFunction.js_commonjs-proxy.js +1 -0
  205. package/build/_virtual/isLength.js_commonjs-proxy.js +1 -0
  206. package/build/_virtual/isMap.js_commonjs-proxy.js +1 -0
  207. package/build/_virtual/isObject.js_commonjs-proxy.js +1 -0
  208. package/build/_virtual/isObjectLike.js_commonjs-proxy.js +1 -0
  209. package/build/_virtual/isSet.js_commonjs-proxy.js +1 -0
  210. package/build/_virtual/isSymbol.js_commonjs-proxy.js +1 -0
  211. package/build/_virtual/isTypedArray.js_commonjs-proxy.js +1 -0
  212. package/build/_virtual/keys.js_commonjs-proxy.js +1 -0
  213. package/build/_virtual/keysIn.js_commonjs-proxy.js +1 -0
  214. package/build/_virtual/memoize.js_commonjs-proxy.js +1 -0
  215. package/build/_virtual/node.js_commonjs-proxy.js +1 -0
  216. package/build/_virtual/node.js_commonjs-proxy2.js +1 -0
  217. package/build/_virtual/noop.js_commonjs-proxy.js +1 -0
  218. package/build/_virtual/now.js_commonjs-proxy.js +1 -0
  219. package/build/_virtual/parser.mjs_commonjs-proxy.js +1 -0
  220. package/build/_virtual/pipeline.js_commonjs-proxy.js +1 -0
  221. package/build/_virtual/possibleStandardNamesOptimized.js_commonjs-proxy.js +1 -0
  222. package/build/_virtual/property.js_commonjs-proxy.js +1 -0
  223. package/build/_virtual/react-is.development.js_commonjs-proxy.js +1 -0
  224. package/build/_virtual/react-is.production.min.js_commonjs-proxy.js +1 -0
  225. package/build/_virtual/readable.js_commonjs-proxy.js +1 -0
  226. package/build/_virtual/state.js_commonjs-proxy.js +1 -0
  227. package/build/_virtual/stream.js_commonjs-proxy.js +1 -0
  228. package/build/_virtual/string_decoder.js_commonjs-proxy.js +1 -0
  229. package/build/_virtual/stubArray.js_commonjs-proxy.js +1 -0
  230. package/build/_virtual/stubFalse.js_commonjs-proxy.js +1 -0
  231. package/build/_virtual/toNumber.js_commonjs-proxy.js +1 -0
  232. package/build/_virtual/toString.js_commonjs-proxy.js +1 -0
  233. package/build/_virtual/utilities.js_commonjs-proxy.js +1 -0
  234. package/build/_virtual/utilities.js_commonjs-proxy2.js +1 -0
  235. package/build/_virtual/utilities.js_commonjs-proxy3.js +1 -0
  236. package/build/analytics/analytics.d.ts +2 -2
  237. package/build/analytics/analytics.js +1 -0
  238. package/build/analytics/events.js +1 -0
  239. package/build/analytics/facebookPixel.d.ts +2 -2
  240. package/build/analytics/facebookPixel.js +1 -0
  241. package/build/analytics/googleTagManager.d.ts +3 -3
  242. package/build/analytics/googleTagManager.js +1 -0
  243. package/build/analytics/head/index.js +1 -0
  244. package/build/analytics/ikas.d.ts +2 -2
  245. package/build/analytics/ikas.js +1 -0
  246. package/build/analytics/index.d.ts +1 -1
  247. package/build/api/apollo.js +1 -0
  248. package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +1 -1
  249. package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +1 -1
  250. package/build/api/back-in-stock-reminder/index.js +1 -0
  251. package/build/api/blog/__generated__/getBlog.d.ts +17 -15
  252. package/build/api/blog/__generated__/listBlog.d.ts +17 -15
  253. package/build/api/blog/__generated__/listBlogCategory.d.ts +17 -15
  254. package/build/api/blog/__generated__/listBlogMetaData.d.ts +17 -15
  255. package/build/api/blog/index.d.ts +1 -1
  256. package/build/api/blog/index.js +1 -0
  257. package/build/api/brand/__generated__/listProductBrand.d.ts +4 -4
  258. package/build/api/brand/index.d.ts +1 -1
  259. package/build/api/brand/index.js +1 -0
  260. package/build/api/cart/__generated__/getCart.d.ts +5 -3
  261. package/build/api/cart/__generated__/saveItemToCart.d.ts +5 -3
  262. package/build/api/cart/index.d.ts +1 -1
  263. package/build/api/cart/index.js +1 -0
  264. package/build/api/category/__generated__/listCategory.d.ts +4 -4
  265. package/build/api/category/__generated__/listCategoryPaths.d.ts +1 -1
  266. package/build/api/category/index.d.ts +2 -2
  267. package/build/api/category/index.js +1 -0
  268. package/build/api/checkout/__generated__/checkStocks.d.ts +1 -1
  269. package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +1 -1
  270. package/build/api/checkout/__generated__/getCheckoutById.d.ts +5 -3
  271. package/build/api/checkout/__generated__/getOrder.d.ts +12 -6
  272. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +2 -2
  273. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +1 -1
  274. package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +1 -1
  275. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  276. package/build/api/checkout/index.d.ts +3 -3
  277. package/build/api/checkout/index.js +1 -0
  278. package/build/api/city/__generated__/listCity.d.ts +1 -1
  279. package/build/api/city/index.d.ts +1 -1
  280. package/build/api/city/index.js +1 -0
  281. package/build/api/contact-form/index.js +1 -0
  282. package/build/api/country/__generated__/listCountry.d.ts +1 -1
  283. package/build/api/country/index.d.ts +1 -1
  284. package/build/api/country/index.js +1 -0
  285. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +1 -1
  286. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +12 -6
  287. package/build/api/customer/__generated__/customerLogin.d.ts +6 -13
  288. package/build/api/customer/__generated__/getCustomerOrders.d.ts +12 -6
  289. package/build/api/customer/__generated__/getMyCustomer.d.ts +6 -5
  290. package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +1 -1
  291. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  292. package/build/api/customer/__generated__/registerCustomer.d.ts +6 -13
  293. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +1 -1
  294. package/build/api/customer/__generated__/saveMyCustomer.d.ts +6 -13
  295. package/build/api/customer/index.d.ts +2 -7
  296. package/build/api/customer/index.js +1 -0
  297. package/build/api/customer-review/__generated__/createCustomerReview.d.ts +1 -1
  298. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +17 -15
  299. package/build/api/customer-review/index.d.ts +1 -1
  300. package/build/api/customer-review/index.js +1 -0
  301. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  302. package/build/api/district/index.d.ts +1 -1
  303. package/build/api/district/index.js +1 -0
  304. package/build/api/favorite-product/index.d.ts +1 -1
  305. package/build/api/favorite-product/index.js +1 -0
  306. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +1 -1
  307. package/build/api/html-meta-data/index.d.ts +1 -1
  308. package/build/api/html-meta-data/index.js +1 -0
  309. package/build/api/index.d.ts +22 -20
  310. package/build/api/merchant/index.d.ts +1 -1
  311. package/build/api/merchant/index.js +1 -0
  312. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +1 -1
  313. package/build/api/product-attribute/index.d.ts +1 -1
  314. package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +1 -1
  315. package/build/api/product-option-set/index.d.ts +2 -4
  316. package/build/api/product-option-set/index.js +1 -0
  317. package/build/api/product-search/__generated__/getProductFilterData.d.ts +1 -1
  318. package/build/api/product-search/__generated__/searchProducts.d.ts +1 -1
  319. package/build/api/product-search/index.d.ts +3 -3
  320. package/build/api/product-search/index.js +1 -0
  321. package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +44 -0
  322. package/build/api/raffle/__generated__/listRaffle.d.ts +83 -0
  323. package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +22 -0
  324. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +30 -0
  325. package/build/api/raffle/index.d.ts +24 -0
  326. package/build/api/raffle/index.js +1 -0
  327. package/build/api/state/__generated__/listState.d.ts +1 -1
  328. package/build/api/state/index.d.ts +1 -1
  329. package/build/api/state/index.js +1 -0
  330. package/build/api/storefront/__generated__/getStorefront.d.ts +1 -1
  331. package/build/api/storefront/index.d.ts +1 -1
  332. package/build/api/storefront/index.js +1 -0
  333. package/build/api/variant-type/__generated__/listVariantType.d.ts +8 -4
  334. package/build/api/variant-type/index.d.ts +1 -1
  335. package/build/assets/translations/checkout/en.js +1 -165
  336. package/build/assets/translations/checkout/tr.js +1 -164
  337. package/build/components/checkout/components/address-form/index.js +1 -0
  338. package/build/components/checkout/components/address-form/model.d.ts +2 -10
  339. package/build/components/checkout/components/address-form/model.js +1 -0
  340. package/build/components/checkout/components/button/index.js +1 -0
  341. package/build/components/checkout/components/button/style.module.scss.js +1 -0
  342. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +2 -2
  343. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
  344. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
  345. package/build/components/checkout/components/cart-summary/index.js +1 -0
  346. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
  347. package/build/components/checkout/components/checkbox/check.js +1 -0
  348. package/build/components/checkout/components/checkbox/index.js +1 -0
  349. package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
  350. package/build/components/checkout/components/credit-card-form/index.js +1 -0
  351. package/build/components/checkout/components/credit-card-form/model.js +1 -0
  352. package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
  353. package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
  354. package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
  355. package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
  356. package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
  357. package/build/components/checkout/components/customer-addresses/index.js +1 -0
  358. package/build/components/checkout/components/customer-addresses/model.d.ts +2 -2
  359. package/build/components/checkout/components/customer-addresses/model.js +1 -0
  360. package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
  361. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +1 -1
  362. package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
  363. package/build/components/checkout/components/error/index.js +1 -0
  364. package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
  365. package/build/components/checkout/components/error/payment-error/index.d.ts +1 -1
  366. package/build/components/checkout/components/error/payment-error/index.js +1 -0
  367. package/build/components/checkout/components/error/stock-error/index.d.ts +1 -1
  368. package/build/components/checkout/components/error/stock-error/index.js +1 -0
  369. package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
  370. package/build/components/checkout/components/error/unknown-error/index.js +1 -0
  371. package/build/components/checkout/components/expandable-section/index.js +1 -0
  372. package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
  373. package/build/components/checkout/components/form-item/caret-down.js +1 -0
  374. package/build/components/checkout/components/form-item/index.js +1 -0
  375. package/build/components/checkout/components/form-item/model.js +1 -0
  376. package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
  377. package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
  378. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
  379. package/build/components/checkout/components/input-with-button/index.js +1 -0
  380. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
  381. package/build/components/checkout/components/modal/index.js +1 -0
  382. package/build/components/checkout/components/modal/style.module.scss.js +1 -0
  383. package/build/components/checkout/components/notification-box/index.js +1 -0
  384. package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
  385. package/build/components/checkout/components/select-box/index.js +1 -0
  386. package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
  387. package/build/components/checkout/components/step-container/index.js +1 -0
  388. package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
  389. package/build/components/checkout/components/svg/arrow-down.js +1 -0
  390. package/build/components/checkout/components/svg/cross.js +1 -0
  391. package/build/components/checkout/components/svg/external.js +1 -0
  392. package/build/components/checkout/components/svg/gift.js +1 -0
  393. package/build/components/checkout/components/svg/ikas.js +1 -0
  394. package/build/components/checkout/components/svg/lock.js +1 -0
  395. package/build/components/checkout/components/svg/success-circle.js +1 -0
  396. package/build/components/checkout/components/svg/warning.js +1 -0
  397. package/build/components/checkout/components/toggle/index.js +1 -0
  398. package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
  399. package/build/components/checkout/components/tooltip/index.js +1 -0
  400. package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
  401. package/build/components/checkout/index.d.ts +2 -2
  402. package/build/components/checkout/index.js +1 -0
  403. package/build/components/checkout/model.d.ts +8 -10
  404. package/build/components/checkout/model.js +1 -0
  405. package/build/components/checkout/steps/step-info/index.js +1 -0
  406. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
  407. package/build/components/checkout/steps/step-payment/index.js +1 -0
  408. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
  409. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
  410. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
  411. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
  412. package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
  413. package/build/components/checkout/steps/step-shipping/index.js +1 -0
  414. package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
  415. package/build/components/checkout/steps/step-success/index.js +1 -0
  416. package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
  417. package/build/components/checkout/style.module.scss.js +1 -0
  418. package/build/components/checkout/styles/common.module.scss.js +1 -0
  419. package/build/components/image/index.d.ts +2 -2
  420. package/build/components/image/index.js +1 -0
  421. package/build/components/index.d.ts +3 -3
  422. package/build/components/page/ThemeComponent.d.ts +13 -2
  423. package/build/components/page/ThemeComponent.js +1 -0
  424. package/build/components/page/head.d.ts +1 -1
  425. package/build/components/page/head.js +1 -0
  426. package/build/components/page/index.d.ts +2 -1
  427. package/build/components/page/index.js +1 -0
  428. package/build/components/page-editor/ThemeComponentEditor.d.ts +26 -2
  429. package/build/components/page-editor/ThemeComponentEditor.js +1 -0
  430. package/build/components/{error → page-editor/error}/index.d.ts +0 -0
  431. package/build/components/page-editor/error/index.js +1 -0
  432. package/build/components/page-editor/index.js +1 -0
  433. package/build/components/page-editor/loader/index.d.ts +2 -0
  434. package/build/components/page-editor/loader/index.js +1 -0
  435. package/build/components/page-editor/loader/style.module.scss.js +1 -0
  436. package/build/components/page-editor/model.d.ts +3 -3
  437. package/build/components/page-editor/model.js +1 -0
  438. package/build/ext/@apollo/client/cache/core/cache.js +1 -0
  439. package/build/ext/@apollo/client/cache/core/types/common.js +1 -0
  440. package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -0
  441. package/build/ext/@apollo/client/cache/inmemory/helpers.js +1 -0
  442. package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -0
  443. package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -0
  444. package/build/ext/@apollo/client/cache/inmemory/reactiveVars.js +1 -0
  445. package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -0
  446. package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -0
  447. package/build/ext/@apollo/client/core/ApolloClient.js +1 -0
  448. package/build/ext/@apollo/client/core/LocalState.js +1 -0
  449. package/build/ext/@apollo/client/core/ObservableQuery.js +1 -0
  450. package/build/ext/@apollo/client/core/QueryInfo.js +1 -0
  451. package/build/ext/@apollo/client/core/QueryManager.js +1 -0
  452. package/build/ext/@apollo/client/core/Reobserver.js +1 -0
  453. package/build/ext/@apollo/client/core/networkStatus.js +1 -0
  454. package/build/ext/@apollo/client/errors/index.js +1 -0
  455. package/build/ext/@apollo/client/link/context/index.js +1 -0
  456. package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -0
  457. package/build/ext/@apollo/client/link/core/execute.js +1 -0
  458. package/build/ext/@apollo/client/link/error/index.js +1 -0
  459. package/build/ext/@apollo/client/link/http/HttpLink.js +1 -0
  460. package/build/ext/@apollo/client/link/http/checkFetcher.js +1 -0
  461. package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -0
  462. package/build/ext/@apollo/client/link/http/createSignalIfSupported.js +1 -0
  463. package/build/ext/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -0
  464. package/build/ext/@apollo/client/link/http/rewriteURIForGET.js +1 -0
  465. package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -0
  466. package/build/ext/@apollo/client/link/http/selectURI.js +1 -0
  467. package/build/ext/@apollo/client/link/http/serializeFetchParameter.js +1 -0
  468. package/build/ext/@apollo/client/link/utils/createOperation.js +1 -0
  469. package/build/ext/@apollo/client/link/utils/fromError.js +1 -0
  470. package/build/ext/@apollo/client/link/utils/throwServerError.js +1 -0
  471. package/build/ext/@apollo/client/link/utils/transformOperation.js +1 -0
  472. package/build/ext/@apollo/client/link/utils/validateOperation.js +1 -0
  473. package/build/ext/@apollo/client/utilities/common/arrays.js +1 -0
  474. package/build/ext/@apollo/client/utilities/common/canUse.js +1 -0
  475. package/build/ext/@apollo/client/utilities/common/cloneDeep.js +1 -0
  476. package/build/ext/@apollo/client/utilities/common/compact.js +1 -0
  477. package/build/ext/@apollo/client/utilities/common/environment.js +1 -0
  478. package/build/ext/@apollo/client/utilities/common/errorHandling.js +1 -0
  479. package/build/ext/@apollo/client/utilities/common/filterInPlace.js +1 -0
  480. package/build/ext/@apollo/client/utilities/common/maybeDeepFreeze.js +1 -0
  481. package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -0
  482. package/build/ext/@apollo/client/utilities/graphql/directives.js +1 -0
  483. package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -0
  484. package/build/ext/@apollo/client/utilities/graphql/getFromAST.js +1 -0
  485. package/build/ext/@apollo/client/utilities/graphql/storeUtils.js +1 -0
  486. package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -0
  487. package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -0
  488. package/build/ext/@apollo/client/utilities/observables/Observable.js +1 -0
  489. package/build/ext/@apollo/client/utilities/observables/asyncMap.js +1 -0
  490. package/build/ext/@apollo/client/utilities/observables/iteration.js +1 -0
  491. package/build/ext/@apollo/client/version.js +1 -0
  492. package/build/ext/@ikas/react-phone-number-input/locale/en.json.js +1 -0
  493. package/build/ext/@ikas/react-phone-number-input/min/index.js +1 -0
  494. package/build/ext/@ikas/react-phone-number-input/modules/CountryIcon.js +1 -0
  495. package/build/ext/@ikas/react-phone-number-input/modules/CountrySelect.js +1 -0
  496. package/build/ext/@ikas/react-phone-number-input/modules/Flag.js +1 -0
  497. package/build/ext/@ikas/react-phone-number-input/modules/InputBasic.js +1 -0
  498. package/build/ext/@ikas/react-phone-number-input/modules/InputSmart.js +1 -0
  499. package/build/ext/@ikas/react-phone-number-input/modules/InternationalIcon.js +1 -0
  500. package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountry.js +1 -0
  501. package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountryDefault.js +1 -0
  502. package/build/ext/@ikas/react-phone-number-input/modules/PropTypes.js +1 -0
  503. package/build/ext/@ikas/react-phone-number-input/modules/helpers/countries.js +1 -0
  504. package/build/ext/@ikas/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.js +1 -0
  505. package/build/ext/@ikas/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.js +1 -0
  506. package/build/ext/@ikas/react-phone-number-input/modules/helpers/inputValuePrefix.js +1 -0
  507. package/build/ext/@ikas/react-phone-number-input/modules/helpers/phoneInputHelpers.js +1 -0
  508. package/build/ext/@ungap/global-this/esm/index.js +1 -0
  509. package/build/ext/@wry/context/lib/context.esm.js +1 -0
  510. package/build/ext/@wry/equality/lib/equality.esm.js +1 -0
  511. package/build/ext/@wry/trie/lib/trie.esm.js +1 -0
  512. package/build/ext/classnames/index.js +6 -0
  513. package/build/ext/country-flag-icons/modules/unicode.js +1 -0
  514. package/build/ext/decode-uri-component/index.js +1 -0
  515. package/build/ext/domhandler/ext/domelementtype/lib/index.js +1 -0
  516. package/build/ext/domhandler/lib/index.js +1 -0
  517. package/build/ext/domhandler/lib/node.js +1 -0
  518. package/build/ext/entities/lib/decode_codepoint.js +1 -0
  519. package/build/ext/entities/lib/maps/decode.json.js +1 -0
  520. package/build/ext/entities/lib/maps/entities.json.js +1 -0
  521. package/build/ext/entities/lib/maps/legacy.json.js +1 -0
  522. package/build/ext/entities/lib/maps/xml.json.js +1 -0
  523. package/build/ext/fast-json-stable-stringify/index.js +1 -0
  524. package/build/ext/graphql/error/GraphQLError.mjs.js +1 -0
  525. package/build/ext/graphql/error/syntaxError.mjs.js +1 -0
  526. package/build/ext/graphql/jsutils/defineInspect.mjs.js +1 -0
  527. package/build/ext/graphql/jsutils/devAssert.mjs.js +1 -0
  528. package/build/ext/graphql/jsutils/inspect.mjs.js +1 -0
  529. package/build/ext/graphql/jsutils/instanceOf.mjs.js +1 -0
  530. package/build/ext/graphql/jsutils/invariant.mjs.js +1 -0
  531. package/build/ext/graphql/jsutils/isObjectLike.mjs.js +1 -0
  532. package/build/ext/graphql/jsutils/nodejsCustomInspectSymbol.mjs.js +1 -0
  533. package/build/ext/graphql/language/ast.mjs.js +1 -0
  534. package/build/ext/graphql/language/blockString.mjs.js +1 -0
  535. package/build/ext/graphql/language/directiveLocation.mjs.js +1 -0
  536. package/build/ext/graphql/language/kinds.mjs.js +1 -0
  537. package/build/ext/graphql/language/lexer.mjs.js +1 -0
  538. package/build/ext/graphql/language/location.mjs.js +1 -0
  539. package/build/ext/graphql/language/parser.mjs.js +1 -0
  540. package/build/ext/graphql/language/printLocation.mjs.js +1 -0
  541. package/build/ext/graphql/language/printer.mjs.js +1 -0
  542. package/build/ext/graphql/language/source.mjs.js +1 -0
  543. package/build/ext/graphql/language/tokenKind.mjs.js +1 -0
  544. package/build/ext/graphql/language/visitor.mjs.js +1 -0
  545. package/build/ext/graphql/polyfills/symbols.mjs.js +1 -0
  546. package/build/ext/graphql-tag/src/index.js +1 -0
  547. package/build/ext/html-dom-parser/index.js +1 -0
  548. package/build/ext/html-dom-parser/lib/server/html-to-dom.js +1 -0
  549. package/build/ext/html-dom-parser/lib/server/utilities.js +1 -0
  550. package/build/ext/html-react-parser/index.js +1 -0
  551. package/build/ext/html-react-parser/index.mjs.js +1 -0
  552. package/build/ext/html-react-parser/lib/attributes-to-props.js +1 -0
  553. package/build/ext/html-react-parser/lib/dom-to-react.js +1 -0
  554. package/build/ext/html-react-parser/lib/utilities.js +1 -0
  555. package/build/ext/htmlparser2/lib/Parser.js +1 -0
  556. package/build/ext/htmlparser2/lib/Tokenizer.js +1 -0
  557. package/build/ext/inherits/inherits.js +1 -0
  558. package/build/ext/inherits/inherits_browser.js +1 -0
  559. package/build/ext/inline-style-parser/index.js +1 -0
  560. package/build/ext/input-format/modules/closeBraces.js +1 -0
  561. package/build/ext/input-format/modules/dom.js +1 -0
  562. package/build/ext/input-format/modules/edit.js +1 -0
  563. package/build/ext/input-format/modules/format.js +1 -0
  564. package/build/ext/input-format/modules/helpers.js +1 -0
  565. package/build/ext/input-format/modules/inputControl.js +1 -0
  566. package/build/ext/input-format/modules/parse.js +1 -0
  567. package/build/ext/input-format/modules/react/Input.js +1 -0
  568. package/build/ext/input-format/modules/templateFormatter.js +1 -0
  569. package/build/ext/libphonenumber-js/es6/AsYouType.js +1 -0
  570. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +1 -0
  571. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +1 -0
  572. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +1 -0
  573. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +1 -0
  574. package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +1 -0
  575. package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +1 -0
  576. package/build/ext/libphonenumber-js/es6/ParseError.js +1 -0
  577. package/build/ext/libphonenumber-js/es6/PhoneNumber.js +1 -0
  578. package/build/ext/libphonenumber-js/es6/constants.js +1 -0
  579. package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  580. package/build/ext/libphonenumber-js/es6/format_.js +1 -0
  581. package/build/ext/libphonenumber-js/es6/getCountries.js +1 -0
  582. package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
  583. package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -0
  584. package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  585. package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +1 -0
  586. package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +1 -0
  587. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  588. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  589. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  590. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +1 -0
  591. package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -0
  592. package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +1 -0
  593. package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +1 -0
  594. package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +1 -0
  595. package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +1 -0
  596. package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +1 -0
  597. package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +1 -0
  598. package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +1 -0
  599. package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +1 -0
  600. package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +1 -0
  601. package/build/ext/libphonenumber-js/es6/metadata.js +1 -0
  602. package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +1 -0
  603. package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +1 -0
  604. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +1 -0
  605. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +1 -0
  606. package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +1 -0
  607. package/build/ext/libphonenumber-js/es6/parse_.js +1 -0
  608. package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +1 -0
  609. package/build/ext/libphonenumber-js/es6/validate_.js +1 -0
  610. package/build/ext/libphonenumber-js/metadata.min.json.js +1 -0
  611. package/build/ext/lodash/_DataView.js +1 -0
  612. package/build/ext/lodash/_Hash.js +1 -0
  613. package/build/ext/lodash/_ListCache.js +1 -0
  614. package/build/ext/lodash/_Map.js +1 -0
  615. package/build/ext/lodash/_MapCache.js +1 -0
  616. package/build/ext/lodash/_Promise.js +1 -0
  617. package/build/ext/lodash/_Set.js +1 -0
  618. package/build/ext/lodash/_SetCache.js +1 -0
  619. package/build/ext/lodash/_Stack.js +1 -0
  620. package/build/ext/lodash/_Symbol.js +1 -0
  621. package/build/ext/lodash/_Uint8Array.js +1 -0
  622. package/build/ext/lodash/_WeakMap.js +1 -0
  623. package/build/ext/lodash/_apply.js +1 -0
  624. package/build/ext/lodash/_arrayAggregator.js +1 -0
  625. package/build/ext/lodash/_arrayEach.js +1 -0
  626. package/build/ext/lodash/_arrayFilter.js +1 -0
  627. package/build/ext/lodash/_arrayIncludes.js +1 -0
  628. package/build/ext/lodash/_arrayIncludesWith.js +1 -0
  629. package/build/ext/lodash/_arrayLikeKeys.js +1 -0
  630. package/build/ext/lodash/_arrayMap.js +1 -0
  631. package/build/ext/lodash/_arrayPush.js +1 -0
  632. package/build/ext/lodash/_arraySome.js +1 -0
  633. package/build/ext/lodash/_assignValue.js +1 -0
  634. package/build/ext/lodash/_assocIndexOf.js +1 -0
  635. package/build/ext/lodash/_baseAggregator.js +1 -0
  636. package/build/ext/lodash/_baseAssign.js +1 -0
  637. package/build/ext/lodash/_baseAssignIn.js +1 -0
  638. package/build/ext/lodash/_baseAssignValue.js +1 -0
  639. package/build/ext/lodash/_baseClone.js +1 -0
  640. package/build/ext/lodash/_baseCreate.js +1 -0
  641. package/build/ext/lodash/_baseEach.js +1 -0
  642. package/build/ext/lodash/_baseFindIndex.js +1 -0
  643. package/build/ext/lodash/_baseFlatten.js +1 -0
  644. package/build/ext/lodash/_baseFor.js +1 -0
  645. package/build/ext/lodash/_baseForOwn.js +1 -0
  646. package/build/ext/lodash/_baseGet.js +1 -0
  647. package/build/ext/lodash/_baseGetAllKeys.js +1 -0
  648. package/build/ext/lodash/_baseGetTag.js +1 -0
  649. package/build/ext/lodash/_baseHasIn.js +1 -0
  650. package/build/ext/lodash/_baseIndexOf.js +1 -0
  651. package/build/ext/lodash/_baseIsArguments.js +1 -0
  652. package/build/ext/lodash/_baseIsEqual.js +1 -0
  653. package/build/ext/lodash/_baseIsEqualDeep.js +1 -0
  654. package/build/ext/lodash/_baseIsMap.js +1 -0
  655. package/build/ext/lodash/_baseIsMatch.js +1 -0
  656. package/build/ext/lodash/_baseIsNaN.js +1 -0
  657. package/build/ext/lodash/_baseIsNative.js +1 -0
  658. package/build/ext/lodash/_baseIsSet.js +1 -0
  659. package/build/ext/lodash/_baseIsTypedArray.js +1 -0
  660. package/build/ext/lodash/_baseIteratee.js +1 -0
  661. package/build/ext/lodash/_baseKeys.js +1 -0
  662. package/build/ext/lodash/_baseKeysIn.js +1 -0
  663. package/build/ext/lodash/_baseMap.js +1 -0
  664. package/build/ext/lodash/_baseMatches.js +1 -0
  665. package/build/ext/lodash/_baseMatchesProperty.js +1 -0
  666. package/build/ext/lodash/_baseOrderBy.js +1 -0
  667. package/build/ext/lodash/_baseProperty.js +1 -0
  668. package/build/ext/lodash/_basePropertyDeep.js +1 -0
  669. package/build/ext/lodash/_baseRest.js +1 -0
  670. package/build/ext/lodash/_baseSetToString.js +1 -0
  671. package/build/ext/lodash/_baseSortBy.js +1 -0
  672. package/build/ext/lodash/_baseTimes.js +1 -0
  673. package/build/ext/lodash/_baseToString.js +1 -0
  674. package/build/ext/lodash/_baseUnary.js +1 -0
  675. package/build/ext/lodash/_baseUniq.js +1 -0
  676. package/build/ext/lodash/_cacheHas.js +1 -0
  677. package/build/ext/lodash/_castFunction.js +1 -0
  678. package/build/ext/lodash/_castPath.js +1 -0
  679. package/build/ext/lodash/_cloneArrayBuffer.js +1 -0
  680. package/build/ext/lodash/_cloneBuffer.js +1 -0
  681. package/build/ext/lodash/_cloneDataView.js +1 -0
  682. package/build/ext/lodash/_cloneRegExp.js +1 -0
  683. package/build/ext/lodash/_cloneSymbol.js +1 -0
  684. package/build/ext/lodash/_cloneTypedArray.js +1 -0
  685. package/build/ext/lodash/_compareAscending.js +1 -0
  686. package/build/ext/lodash/_compareMultiple.js +1 -0
  687. package/build/ext/lodash/_copyArray.js +1 -0
  688. package/build/ext/lodash/_copyObject.js +1 -0
  689. package/build/ext/lodash/_copySymbols.js +1 -0
  690. package/build/ext/lodash/_copySymbolsIn.js +1 -0
  691. package/build/ext/lodash/_coreJsData.js +1 -0
  692. package/build/ext/lodash/_createAggregator.js +1 -0
  693. package/build/ext/lodash/_createBaseEach.js +1 -0
  694. package/build/ext/lodash/_createBaseFor.js +1 -0
  695. package/build/ext/lodash/_createSet.js +1 -0
  696. package/build/ext/lodash/_defineProperty.js +1 -0
  697. package/build/ext/lodash/_equalArrays.js +1 -0
  698. package/build/ext/lodash/_equalByTag.js +1 -0
  699. package/build/ext/lodash/_equalObjects.js +1 -0
  700. package/build/ext/lodash/_freeGlobal.js +1 -0
  701. package/build/ext/lodash/_getAllKeys.js +1 -0
  702. package/build/ext/lodash/_getAllKeysIn.js +1 -0
  703. package/build/ext/lodash/_getMapData.js +1 -0
  704. package/build/ext/lodash/_getMatchData.js +1 -0
  705. package/build/ext/lodash/_getNative.js +1 -0
  706. package/build/ext/lodash/_getPrototype.js +1 -0
  707. package/build/ext/lodash/_getRawTag.js +1 -0
  708. package/build/ext/lodash/_getSymbols.js +1 -0
  709. package/build/ext/lodash/_getSymbolsIn.js +1 -0
  710. package/build/ext/lodash/_getTag.js +1 -0
  711. package/build/ext/lodash/_getValue.js +1 -0
  712. package/build/ext/lodash/_hasPath.js +1 -0
  713. package/build/ext/lodash/_hashClear.js +1 -0
  714. package/build/ext/lodash/_hashDelete.js +1 -0
  715. package/build/ext/lodash/_hashGet.js +1 -0
  716. package/build/ext/lodash/_hashHas.js +1 -0
  717. package/build/ext/lodash/_hashSet.js +1 -0
  718. package/build/ext/lodash/_initCloneArray.js +1 -0
  719. package/build/ext/lodash/_initCloneByTag.js +1 -0
  720. package/build/ext/lodash/_initCloneObject.js +1 -0
  721. package/build/ext/lodash/_isFlattenable.js +1 -0
  722. package/build/ext/lodash/_isIndex.js +1 -0
  723. package/build/ext/lodash/_isIterateeCall.js +1 -0
  724. package/build/ext/lodash/_isKey.js +1 -0
  725. package/build/ext/lodash/_isKeyable.js +1 -0
  726. package/build/ext/lodash/_isMasked.js +1 -0
  727. package/build/ext/lodash/_isPrototype.js +1 -0
  728. package/build/ext/lodash/_isStrictComparable.js +1 -0
  729. package/build/ext/lodash/_listCacheClear.js +1 -0
  730. package/build/ext/lodash/_listCacheDelete.js +1 -0
  731. package/build/ext/lodash/_listCacheGet.js +1 -0
  732. package/build/ext/lodash/_listCacheHas.js +1 -0
  733. package/build/ext/lodash/_listCacheSet.js +1 -0
  734. package/build/ext/lodash/_mapCacheClear.js +1 -0
  735. package/build/ext/lodash/_mapCacheDelete.js +1 -0
  736. package/build/ext/lodash/_mapCacheGet.js +1 -0
  737. package/build/ext/lodash/_mapCacheHas.js +1 -0
  738. package/build/ext/lodash/_mapCacheSet.js +1 -0
  739. package/build/ext/lodash/_mapToArray.js +1 -0
  740. package/build/ext/lodash/_matchesStrictComparable.js +1 -0
  741. package/build/ext/lodash/_memoizeCapped.js +1 -0
  742. package/build/ext/lodash/_nativeCreate.js +1 -0
  743. package/build/ext/lodash/_nativeKeys.js +1 -0
  744. package/build/ext/lodash/_nativeKeysIn.js +1 -0
  745. package/build/ext/lodash/_nodeUtil.js +1 -0
  746. package/build/ext/lodash/_objectToString.js +1 -0
  747. package/build/ext/lodash/_overArg.js +1 -0
  748. package/build/ext/lodash/_overRest.js +1 -0
  749. package/build/ext/lodash/_root.js +1 -0
  750. package/build/ext/lodash/_setCacheAdd.js +1 -0
  751. package/build/ext/lodash/_setCacheHas.js +1 -0
  752. package/build/ext/lodash/_setToArray.js +1 -0
  753. package/build/ext/lodash/_setToString.js +1 -0
  754. package/build/ext/lodash/_shortOut.js +1 -0
  755. package/build/ext/lodash/_stackClear.js +1 -0
  756. package/build/ext/lodash/_stackDelete.js +1 -0
  757. package/build/ext/lodash/_stackGet.js +1 -0
  758. package/build/ext/lodash/_stackHas.js +1 -0
  759. package/build/ext/lodash/_stackSet.js +1 -0
  760. package/build/ext/lodash/_strictIndexOf.js +1 -0
  761. package/build/ext/lodash/_stringToPath.js +1 -0
  762. package/build/ext/lodash/_toKey.js +1 -0
  763. package/build/ext/lodash/_toSource.js +1 -0
  764. package/build/ext/lodash/cloneDeep.js +1 -0
  765. package/build/ext/lodash/constant.js +1 -0
  766. package/build/ext/lodash/debounce.js +1 -0
  767. package/build/ext/lodash/eq.js +1 -0
  768. package/build/ext/lodash/flatten.js +1 -0
  769. package/build/ext/lodash/forEach.js +1 -0
  770. package/build/ext/lodash/get.js +1 -0
  771. package/build/ext/lodash/groupBy.js +1 -0
  772. package/build/ext/lodash/hasIn.js +1 -0
  773. package/build/ext/lodash/identity.js +1 -0
  774. package/build/ext/lodash/isArguments.js +1 -0
  775. package/build/ext/lodash/isArray.js +1 -0
  776. package/build/ext/lodash/isArrayLike.js +1 -0
  777. package/build/ext/lodash/isBuffer.js +1 -0
  778. package/build/ext/lodash/isFunction.js +1 -0
  779. package/build/ext/lodash/isLength.js +1 -0
  780. package/build/ext/lodash/isMap.js +1 -0
  781. package/build/ext/lodash/isObject.js +1 -0
  782. package/build/ext/lodash/isObjectLike.js +1 -0
  783. package/build/ext/lodash/isSet.js +1 -0
  784. package/build/ext/lodash/isSymbol.js +1 -0
  785. package/build/ext/lodash/isTypedArray.js +1 -0
  786. package/build/ext/lodash/keys.js +1 -0
  787. package/build/ext/lodash/keysIn.js +1 -0
  788. package/build/ext/lodash/memoize.js +1 -0
  789. package/build/ext/lodash/noop.js +1 -0
  790. package/build/ext/lodash/now.js +1 -0
  791. package/build/ext/lodash/property.js +1 -0
  792. package/build/ext/lodash/sortBy.js +1 -0
  793. package/build/ext/lodash/stubArray.js +1 -0
  794. package/build/ext/lodash/stubFalse.js +1 -0
  795. package/build/ext/lodash/toNumber.js +1 -0
  796. package/build/ext/lodash/toString.js +1 -0
  797. package/build/ext/lodash/uniq.js +1 -0
  798. package/build/ext/lodash/uniqBy.js +1 -0
  799. package/build/ext/lzutf8/build/production/lzutf8.js +11 -0
  800. package/build/ext/object-assign/index.js +6 -0
  801. package/build/ext/optimism/lib/bundle.esm.js +1 -0
  802. package/build/ext/prop-types/checkPropTypes.js +1 -0
  803. package/build/ext/prop-types/factoryWithThrowingShims.js +1 -0
  804. package/build/ext/prop-types/factoryWithTypeCheckers.js +1 -0
  805. package/build/ext/prop-types/index.js +1 -0
  806. package/build/ext/prop-types/lib/ReactPropTypesSecret.js +1 -0
  807. package/build/ext/query-string/index.js +1 -0
  808. package/build/ext/react-is/cjs/react-is.development.js +9 -0
  809. package/build/ext/react-is/cjs/react-is.production.min.js +9 -0
  810. package/build/ext/react-is/index.js +1 -0
  811. package/build/ext/react-property/lib/index.js +1 -0
  812. package/build/ext/react-property/lib/possibleStandardNamesOptimized.js +1 -0
  813. package/build/ext/react-tooltip/dist/index.es.js +1 -0
  814. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/bytesToUuid.js +1 -0
  815. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/rng.js +1 -0
  816. package/build/ext/react-tooltip/ext/uuid/dist/esm-node/v4.js +1 -0
  817. package/build/ext/readable-stream/errors.js +1 -0
  818. package/build/ext/readable-stream/lib/_registry.js +1 -0
  819. package/build/ext/readable-stream/lib/_stream_duplex.js +1 -0
  820. package/build/ext/readable-stream/lib/_stream_passthrough.js +1 -0
  821. package/build/ext/readable-stream/lib/_stream_readable.js +1 -0
  822. package/build/ext/readable-stream/lib/_stream_transform.js +1 -0
  823. package/build/ext/readable-stream/lib/_stream_writable.js +1 -0
  824. package/build/ext/readable-stream/lib/internal/streams/async_iterator.js +1 -0
  825. package/build/ext/readable-stream/lib/internal/streams/buffer_list.js +1 -0
  826. package/build/ext/readable-stream/lib/internal/streams/destroy.js +1 -0
  827. package/build/ext/readable-stream/lib/internal/streams/end-of-stream.js +1 -0
  828. package/build/ext/readable-stream/lib/internal/streams/from.js +1 -0
  829. package/build/ext/readable-stream/lib/internal/streams/pipeline.js +1 -0
  830. package/build/ext/readable-stream/lib/internal/streams/state.js +1 -0
  831. package/build/ext/readable-stream/lib/internal/streams/stream.js +1 -0
  832. package/build/ext/readable-stream/readable.js +1 -0
  833. package/build/ext/safe-buffer/index.js +1 -0
  834. package/build/ext/split-on-first/index.js +1 -0
  835. package/build/ext/strict-uri-encode/index.js +1 -0
  836. package/build/ext/string_decoder/lib/string_decoder.js +1 -0
  837. package/build/ext/style-inject/dist/style-inject.es.js +1 -0
  838. package/build/ext/style-to-js/cjs/index.js +1 -0
  839. package/build/ext/style-to-js/cjs/utilities.js +1 -0
  840. package/build/ext/style-to-object/index.js +1 -0
  841. package/build/ext/symbol-observable/es/index.js +1 -0
  842. package/build/ext/symbol-observable/es/ponyfill.js +1 -0
  843. package/build/ext/ts-invariant/lib/invariant.esm.js +1 -0
  844. package/build/ext/tslib/tslib.es6.js +15 -0
  845. package/build/ext/util-deprecate/node.js +1 -0
  846. package/build/ext/uuid/dist/esm-browser/regex.js +1 -0
  847. package/build/ext/uuid/dist/esm-browser/rng.js +1 -0
  848. package/build/ext/uuid/dist/esm-browser/stringify.js +1 -0
  849. package/build/ext/uuid/dist/esm-browser/v4.js +1 -0
  850. package/build/ext/uuid/dist/esm-browser/validate.js +1 -0
  851. package/build/ext/zen-observable/index.js +1 -0
  852. package/build/ext/zen-observable/lib/Observable.js +1 -0
  853. package/build/ikas.js +16 -0
  854. package/build/index.d.ts +9 -8
  855. package/build/index.js +1 -74756
  856. package/build/models/data/blog/index.d.ts +1 -1
  857. package/build/models/data/blog/index.js +1 -0
  858. package/build/models/data/brand/index.d.ts +2 -2
  859. package/build/models/data/brand/index.js +1 -0
  860. package/build/models/data/cart/index.d.ts +2 -2
  861. package/build/models/data/cart/index.js +1 -0
  862. package/build/models/data/category/index.d.ts +2 -2
  863. package/build/models/data/category/index.js +1 -0
  864. package/build/models/data/checkout/index.d.ts +6 -6
  865. package/build/models/data/checkout/index.js +1 -0
  866. package/build/models/data/checkout-settings/index.d.ts +1 -1
  867. package/build/models/data/checkout-settings/index.js +1 -0
  868. package/build/models/data/contact-form/index.js +1 -0
  869. package/build/models/data/customer/address/index.d.ts +2 -5
  870. package/build/models/data/customer/address/index.js +1 -0
  871. package/build/models/data/customer/index.d.ts +1 -1
  872. package/build/models/data/customer/index.js +1 -0
  873. package/build/models/data/customer-review/index.js +1 -0
  874. package/build/models/data/favorite-product/index.js +1 -0
  875. package/build/models/data/html-meta-data/index.js +1 -0
  876. package/build/models/data/image/index.js +1 -0
  877. package/build/models/data/index.d.ts +36 -32
  878. package/build/models/data/installment-info/index.js +1 -0
  879. package/build/models/data/merchant-settings/index.d.ts +1 -1
  880. package/build/models/data/merchant-settings/index.js +1 -0
  881. package/build/models/data/order/address/index.d.ts +2 -3
  882. package/build/models/data/order/address/index.js +1 -0
  883. package/build/models/data/order/index.d.ts +4 -3
  884. package/build/models/data/order/index.js +1 -0
  885. package/build/models/data/order/line-item/discount/index.js +1 -0
  886. package/build/models/data/order/line-item/index.d.ts +3 -4
  887. package/build/models/data/order/line-item/index.js +1 -0
  888. package/build/models/data/order/line-item/options/index.d.ts +2 -2
  889. package/build/models/data/order/line-item/options/index.js +1 -0
  890. package/build/models/data/order/line-item/options/options-value/index.js +1 -0
  891. package/build/models/data/order/line-item/variant/index.d.ts +1 -1
  892. package/build/models/data/order/line-item/variant/index.js +1 -0
  893. package/build/models/data/order/refund/index.d.ts +1 -1
  894. package/build/models/data/order/refund/settings.js +1 -0
  895. package/build/models/data/order-transaction/index.js +1 -0
  896. package/build/models/data/payment-gateway/index.d.ts +1 -1
  897. package/build/models/data/payment-gateway/index.js +1 -0
  898. package/build/models/data/product/attribute-value/index.d.ts +2 -2
  899. package/build/models/data/product/attribute-value/index.js +1 -0
  900. package/build/models/data/product/index.d.ts +9 -9
  901. package/build/models/data/product/index.js +1 -0
  902. package/build/models/data/product/variant/index.d.ts +4 -4
  903. package/build/models/data/product/variant/index.js +1 -0
  904. package/build/models/data/product/variant/price/index.js +1 -0
  905. package/build/models/data/product/variant-type/index.d.ts +1 -1
  906. package/build/models/data/product/variant-type/index.js +1 -0
  907. package/build/models/data/product-attribute/index.d.ts +2 -2
  908. package/build/models/data/product-attribute/index.js +1 -0
  909. package/build/models/data/product-attribute/product-attribute-option/index.js +1 -0
  910. package/build/models/data/product-attribute/product-attribute-table-cell/index.js +1 -0
  911. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +1 -1
  912. package/build/models/data/product-attribute/product-attribute-table-template/index.js +1 -0
  913. package/build/models/data/product-cart-item-options/index.js +1 -0
  914. package/build/models/data/product-filter/index.d.ts +2 -2
  915. package/build/models/data/product-filter/index.js +1 -0
  916. package/build/models/data/product-option-set/index.d.ts +1 -5
  917. package/build/models/data/product-option-set/index.js +1 -0
  918. package/build/models/data/product-tag/index.js +1 -0
  919. package/build/models/data/raffle/index.d.ts +66 -0
  920. package/build/models/data/raffle/index.js +1 -0
  921. package/build/models/data/sales-channel/index.js +1 -0
  922. package/build/models/data/simple-product/index.d.ts +1 -1
  923. package/build/models/data/storefront/domain/index.js +1 -0
  924. package/build/models/data/storefront/index.d.ts +4 -4
  925. package/build/models/data/storefront/index.js +1 -0
  926. package/build/models/data/storefront/localization/index.js +1 -0
  927. package/build/models/data/storefront/routing/index.js +1 -0
  928. package/build/models/data/storefront/theme/index.js +1 -0
  929. package/build/models/data/storefront/theme-localization/index.d.ts +1 -1
  930. package/build/models/data/storefront/theme-localization/index.js +1 -0
  931. package/build/models/data/variant-type/index.d.ts +1 -1
  932. package/build/models/data/variant-type/index.js +1 -0
  933. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  934. package/build/models/data/variant-type/variant-value/index.js +1 -0
  935. package/build/models/index.d.ts +3 -3
  936. package/build/models/theme/component/index.d.ts +1 -1
  937. package/build/models/theme/component/index.js +1 -0
  938. package/build/models/theme/component/prop/index.d.ts +3 -1
  939. package/build/models/theme/component/prop/index.js +1 -0
  940. package/build/models/theme/custom-data/index.d.ts +2 -2
  941. package/build/models/theme/custom-data/index.js +1 -0
  942. package/build/models/theme/index.d.ts +8 -6
  943. package/build/models/theme/page/component/index.js +1 -0
  944. package/build/models/theme/page/component/prop-value/blog-category-list.d.ts +1 -1
  945. package/build/models/theme/page/component/prop-value/blog-category-list.js +1 -0
  946. package/build/models/theme/page/component/prop-value/blog-category.js +1 -0
  947. package/build/models/theme/page/component/prop-value/blog-list.d.ts +1 -1
  948. package/build/models/theme/page/component/prop-value/blog-list.js +1 -0
  949. package/build/models/theme/page/component/prop-value/blog.js +1 -0
  950. package/build/models/theme/page/component/prop-value/brand-list.d.ts +1 -1
  951. package/build/models/theme/page/component/prop-value/brand-list.js +1 -0
  952. package/build/models/theme/page/component/prop-value/brand.js +1 -0
  953. package/build/models/theme/page/component/prop-value/category-list.d.ts +1 -1
  954. package/build/models/theme/page/component/prop-value/category-list.js +1 -0
  955. package/build/models/theme/page/component/prop-value/category.js +1 -0
  956. package/build/models/theme/page/component/prop-value/link.d.ts +1 -1
  957. package/build/models/theme/page/component/prop-value/link.js +1 -0
  958. package/build/models/theme/page/component/prop-value/product-detail.js +1 -0
  959. package/build/models/theme/page/component/prop-value/product-list.d.ts +1 -1
  960. package/build/models/theme/page/component/prop-value/product-list.js +1 -0
  961. package/build/models/theme/page/component/prop-value/raffle-list.d.ts +5 -0
  962. package/build/models/theme/page/component/prop-value/raffle-list.js +1 -0
  963. package/build/models/theme/page/component/prop-value/raffle.d.ts +5 -0
  964. package/build/models/theme/page/component/prop-value/raffle.js +1 -0
  965. package/build/models/theme/page/index.d.ts +5 -2
  966. package/build/models/theme/page/index.js +1 -0
  967. package/build/models/theme/settings/index.d.ts +2 -2
  968. package/build/models/theme/settings/index.js +1 -0
  969. package/build/models/theme/settings/prop/color/index.js +1 -0
  970. package/build/models/theme/settings/prop/favicon/index.js +1 -0
  971. package/build/models/theme/theme.d.ts +4 -4
  972. package/build/models/theme/theme.js +1 -0
  973. package/build/models/ui/blog-category-list/index.d.ts +2 -2
  974. package/build/models/ui/blog-category-list/index.js +1 -0
  975. package/build/models/ui/blog-list/index.d.ts +2 -2
  976. package/build/models/ui/blog-list/index.js +1 -0
  977. package/build/models/ui/brand-list/index.d.ts +2 -2
  978. package/build/models/ui/brand-list/index.js +1 -0
  979. package/build/models/ui/category-list/index.d.ts +2 -2
  980. package/build/models/ui/category-list/index.js +1 -0
  981. package/build/models/ui/component-renderer/index.js +1 -0
  982. package/build/models/ui/customer-review-list/index.d.ts +1 -1
  983. package/build/models/ui/customer-review-list/index.js +1 -0
  984. package/build/models/ui/index.d.ts +18 -14
  985. package/build/models/ui/navigation-link/index.js +1 -0
  986. package/build/models/ui/product-attribute-detail/index.d.ts +3 -3
  987. package/build/models/ui/product-attribute-detail/index.js +1 -0
  988. package/build/models/ui/product-attribute-list/index.d.ts +3 -3
  989. package/build/models/ui/product-attribute-list/index.js +1 -0
  990. package/build/models/ui/product-detail/index.d.ts +3 -3
  991. package/build/models/ui/product-detail/index.js +1 -0
  992. package/build/models/ui/product-list/index.d.ts +7 -7
  993. package/build/models/ui/product-list/index.js +1 -0
  994. package/build/models/ui/raffle-list/index.d.ts +54 -0
  995. package/build/models/ui/raffle-list/index.js +1 -0
  996. package/build/models/ui/validator/form/account-info.d.ts +3 -3
  997. package/build/models/ui/validator/form/account-info.js +1 -0
  998. package/build/models/ui/validator/form/address.d.ts +4 -4
  999. package/build/models/ui/validator/form/address.js +1 -0
  1000. package/build/models/ui/validator/form/contact-form.d.ts +1 -1
  1001. package/build/models/ui/validator/form/contact-form.js +1 -0
  1002. package/build/models/ui/validator/form/customer-review.d.ts +1 -1
  1003. package/build/models/ui/validator/form/customer-review.js +1 -0
  1004. package/build/models/ui/validator/form/forgot-password.d.ts +1 -1
  1005. package/build/models/ui/validator/form/forgot-password.js +1 -0
  1006. package/build/models/ui/validator/form/login.d.ts +1 -1
  1007. package/build/models/ui/validator/form/login.js +1 -0
  1008. package/build/models/ui/validator/form/raffle-form.d.ts +60 -0
  1009. package/build/models/ui/validator/form/raffle-form.js +1 -0
  1010. package/build/models/ui/validator/form/recover-password.d.ts +1 -1
  1011. package/build/models/ui/validator/form/recover-password.js +1 -0
  1012. package/build/models/ui/validator/form/register.d.ts +1 -1
  1013. package/build/models/ui/validator/form/register.js +1 -0
  1014. package/build/models/ui/validator/index.d.ts +1 -1
  1015. package/build/models/ui/validator/index.js +1 -0
  1016. package/build/models/ui/validator/rules/index.d.ts +4 -0
  1017. package/build/models/ui/validator/rules/index.js +1 -0
  1018. package/build/pages/404.d.ts +1 -1
  1019. package/build/pages/404.js +1 -0
  1020. package/build/pages/[slug]/index.d.ts +1 -1
  1021. package/build/pages/_slug_/index.js +1 -0
  1022. package/build/pages/account/addresses.d.ts +1 -1
  1023. package/build/pages/account/addresses.js +1 -0
  1024. package/build/pages/account/favorite-products.d.ts +1 -1
  1025. package/build/pages/account/favorite-products.js +1 -0
  1026. package/build/pages/account/forgot-password.d.ts +1 -1
  1027. package/build/pages/account/forgot-password.js +1 -0
  1028. package/build/pages/account/index.d.ts +1 -1
  1029. package/build/pages/account/index.js +1 -0
  1030. package/build/pages/account/login.d.ts +1 -1
  1031. package/build/pages/account/login.js +1 -0
  1032. package/build/pages/account/orders/[id].d.ts +1 -1
  1033. package/build/pages/account/orders/_id_.js +1 -0
  1034. package/build/pages/account/orders/index.d.ts +1 -1
  1035. package/build/pages/account/orders/index.js +1 -0
  1036. package/build/pages/account/raffles.d.ts +6 -0
  1037. package/build/pages/account/raffles.js +1 -0
  1038. package/build/pages/account/recover-password.d.ts +1 -1
  1039. package/build/pages/account/recover-password.js +1 -0
  1040. package/build/pages/account/register.d.ts +1 -1
  1041. package/build/pages/account/register.js +1 -0
  1042. package/build/pages/blog/[slug].d.ts +1 -1
  1043. package/build/pages/blog/_slug_.js +1 -0
  1044. package/build/pages/blog/index.d.ts +1 -1
  1045. package/build/pages/blog/index.js +1 -0
  1046. package/build/pages/cart.d.ts +1 -1
  1047. package/build/pages/cart.js +1 -0
  1048. package/build/pages/checkout.d.ts +1 -1
  1049. package/build/pages/checkout.js +1 -0
  1050. package/build/pages/editor.d.ts +1 -0
  1051. package/build/pages/editor.js +1 -0
  1052. package/build/pages/home.d.ts +1 -1
  1053. package/build/pages/home.js +1 -0
  1054. package/build/pages/index.d.ts +22 -20
  1055. package/build/pages/pages/[slug].d.ts +1 -1
  1056. package/build/pages/pages/_slug_.js +1 -0
  1057. package/build/pages/raffle/[slug].d.ts +7 -0
  1058. package/build/pages/raffle/_slug_.js +1 -0
  1059. package/build/pages/raffle/index.d.ts +6 -0
  1060. package/build/pages/raffle/index.js +1 -0
  1061. package/build/pages/search.d.ts +1 -1
  1062. package/build/pages/search.js +1 -0
  1063. package/build/providers/helpers/raffles.d.ts +2 -0
  1064. package/build/providers/helpers/raffles.js +1 -0
  1065. package/build/providers/page-data-get.d.ts +4 -4
  1066. package/build/providers/page-data-get.js +1 -0
  1067. package/build/providers/page-data-init.d.ts +12 -6
  1068. package/build/providers/page-data-init.js +1 -0
  1069. package/build/providers/page-data-next.d.ts +8 -8
  1070. package/build/providers/page-data-next.js +1 -0
  1071. package/build/providers/placeholders.d.ts +2 -1
  1072. package/build/providers/placeholders.js +1 -0
  1073. package/build/providers/prop-value/attribute-list.d.ts +2 -2
  1074. package/build/providers/prop-value/attribute-list.js +1 -0
  1075. package/build/providers/prop-value/attribute.d.ts +2 -2
  1076. package/build/providers/prop-value/attribute.js +1 -0
  1077. package/build/providers/prop-value/blog-category-list.d.ts +2 -2
  1078. package/build/providers/prop-value/blog-category-list.js +1 -0
  1079. package/build/providers/prop-value/blog-category.d.ts +2 -2
  1080. package/build/providers/prop-value/blog-category.js +1 -0
  1081. package/build/providers/prop-value/blog-list.d.ts +2 -2
  1082. package/build/providers/prop-value/blog-list.js +1 -0
  1083. package/build/providers/prop-value/blog.d.ts +2 -2
  1084. package/build/providers/prop-value/blog.js +1 -0
  1085. package/build/providers/prop-value/boolean.d.ts +1 -1
  1086. package/build/providers/prop-value/boolean.js +1 -0
  1087. package/build/providers/prop-value/brand-list.d.ts +2 -2
  1088. package/build/providers/prop-value/brand-list.js +1 -0
  1089. package/build/providers/prop-value/brand.d.ts +2 -2
  1090. package/build/providers/prop-value/brand.js +1 -0
  1091. package/build/providers/prop-value/category-list.d.ts +2 -2
  1092. package/build/providers/prop-value/category-list.js +1 -0
  1093. package/build/providers/prop-value/category.d.ts +2 -2
  1094. package/build/providers/prop-value/category.js +1 -0
  1095. package/build/providers/prop-value/color.d.ts +1 -1
  1096. package/build/providers/prop-value/color.js +1 -0
  1097. package/build/providers/prop-value/custom.d.ts +4 -2
  1098. package/build/providers/prop-value/custom.js +1 -0
  1099. package/build/providers/prop-value/image-list.d.ts +2 -2
  1100. package/build/providers/prop-value/image-list.js +1 -0
  1101. package/build/providers/prop-value/image.d.ts +2 -2
  1102. package/build/providers/prop-value/image.js +1 -0
  1103. package/build/providers/prop-value/link.d.ts +2 -2
  1104. package/build/providers/prop-value/link.js +1 -0
  1105. package/build/providers/prop-value/product-detail.d.ts +2 -2
  1106. package/build/providers/prop-value/product-detail.js +1 -0
  1107. package/build/providers/prop-value/product-list.d.ts +2 -2
  1108. package/build/providers/prop-value/product-list.js +1 -0
  1109. package/build/providers/prop-value/raffle-list.d.ts +5 -0
  1110. package/build/providers/prop-value/raffle-list.js +1 -0
  1111. package/build/providers/prop-value/raffle.d.ts +11 -0
  1112. package/build/providers/prop-value/raffle.js +1 -0
  1113. package/build/providers/prop-value/rich-text.d.ts +1 -1
  1114. package/build/providers/prop-value/rich-text.js +1 -0
  1115. package/build/providers/prop-value/text.d.ts +1 -1
  1116. package/build/providers/prop-value/text.js +1 -0
  1117. package/build/scripts/generators/api/index.d.ts +5 -0
  1118. package/build/scripts/generators/api/index.js +1 -0
  1119. package/build/scripts/generators/api/info.d.ts +12 -0
  1120. package/build/scripts/generators/api/info.js +1 -0
  1121. package/build/scripts/generators/components/index.d.ts +6 -0
  1122. package/build/scripts/generators/components/index.js +1 -0
  1123. package/build/scripts/generators/config/content.d.ts +37 -0
  1124. package/build/scripts/generators/config/content.js +1 -0
  1125. package/build/scripts/generators/config/index.d.ts +8 -0
  1126. package/build/scripts/generators/config/index.js +1 -0
  1127. package/build/scripts/generators/index.d.ts +6 -0
  1128. package/build/scripts/generators/pages/index.d.ts +7 -0
  1129. package/build/scripts/generators/pages/index.js +1 -0
  1130. package/build/scripts/generators/pages/info.d.ts +14 -0
  1131. package/build/scripts/generators/pages/info.js +1 -0
  1132. package/build/scripts/generators/store/content.d.ts +1 -0
  1133. package/build/scripts/generators/store/content.js +1 -0
  1134. package/build/scripts/generators/store/index.d.ts +3 -0
  1135. package/build/scripts/generators/store/index.js +1 -0
  1136. package/build/scripts/generators/theme/index.d.ts +6 -0
  1137. package/build/scripts/generators/theme/index.js +1 -0
  1138. package/build/scripts/ikas.d.ts +2 -0
  1139. package/build/store/base.d.ts +2 -2
  1140. package/build/store/base.js +1 -0
  1141. package/build/store/cart.d.ts +2 -2
  1142. package/build/store/cart.js +1 -0
  1143. package/build/store/customer.d.ts +4 -22
  1144. package/build/store/customer.js +1 -0
  1145. package/build/storefront/index.d.ts +10 -12
  1146. package/build/storefront/index.js +1 -0
  1147. package/build/utils/currency.js +1 -0
  1148. package/build/utils/fs.d.ts +28 -0
  1149. package/build/utils/fs.js +1 -0
  1150. package/build/utils/helper.d.ts +2 -0
  1151. package/build/utils/helper.js +1 -0
  1152. package/build/utils/i18n.js +1 -0
  1153. package/package.json +25 -21
  1154. package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -161
  1155. package/build/index.css +0 -1521
  1156. package/build/index.es.css +0 -1521
  1157. package/build/index.es.js +0 -74627
  1158. package/build/providers/prop-value/checkout.d.ts +0 -4
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as o}from"mobx-react-lite";import{FormItem as t}from"../../components/form-item/index.js";import{FormItemType as r,FormItemInputType as m}from"../../components/form-item/model.js";import{Button as s}from"../../components/button/index.js";import{Checkbox as i}from"../../components/checkbox/index.js";import n from"../../components/error/index.js";import c from"../../styles/common.module.scss.js";import a from"../../components/customer-addresses/index.js";import l from"../../components/customer-addresses/model.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{useTranslation as u}from"../../../../utils/i18n.js";var p=o((function(o){var p,d,h,f=o.vm,g=u().t,k=e.useCallback((function(e){f.checkout.customer&&(f.checkout.customer.email=e?e.trim():e)}),[f,f.checkout,f.checkout.customer]),v=e.useMemo((function(){return new l(f,"shipping")}),[f]);return e.createElement("div",null,e.createElement(n,{vm:f}),!f.checkout.hasCustomer&&e.createElement("div",{style:{marginTop:"8px",marginBottom:"40px"}},e.createElement("div",{className:c.FormSectionTitle},e.createElement("div",{className:c.Title},g("checkout-page:contactInfo"))),e.createElement(t,{type:r.TEXT,inputType:m.EMAIL,label:g("checkout-page:email"),autocomplete:"email",value:(null===(p=f.checkout.customer)||void 0===p?void 0:p.email)||"",onChange:k,hasError:f.isErrorsVisible&&!(null===(d=f.checkout.customer)||void 0===d?void 0:d.email),errorText:g("checkout-page:emailError"),tooltipText:g("checkout-page:guestEmailTooltip")}),e.createElement(i,{value:(null===(h=f.checkout.customer)||void 0===h?void 0:h.notificationsAccepted)||!1,label:g("checkout-page:customerConsentCta"),onChange:f.setCustomerConsentGranted})),e.createElement(a,{vm:v}),!v.editingCustomerAddress&&e.createElement(s,{style:{width:"100%",marginTop:f.store.customerStore.customer?"0px":"32px"},text:g("checkout-page:actions.continueWithShipping"),isLoading:f.isStepLoading,isDisabled:!f.canProceedToShipping,onClick:f.onProceedToShippingClick}))}));export{p as default};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as r}from"mobx-react-lite";import{Checkbox as s}from"../../../components/checkbox/index.js";import o from"../../../components/customer-addresses/model.js";import t from"../../../components/customer-addresses/index.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{useTranslation as n}from"../../../../../utils/i18n.js";var i=r((function(r){var i=r.vm,m=n().t,d=e.useMemo((function(){return new o(i,"billing")}),[i]);return e.createElement(e.Fragment,null,e.createElement("div",{style:{marginTop:"32px",marginBottom:i.useDifferentAddress?"24px":"0px"}},e.createElement(s,{value:!i.useDifferentAddress,hasError:i.isErrorsVisible&&!i.isTermsAndConditionsChecked,label:m("checkout-page:useShippingForBilling"),onChange:function(e){return i.setUseDifferentAddress(!e)}})),i.useDifferentAddress&&e.createElement(t,{vm:d}))}));export{i as BillingAddress};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as o}from"mobx-react-lite";import{Checkbox as t}from"../../components/checkbox/index.js";import a from"../../components/error/index.js";import{PaymentGateways as r}from"./payment-gateways/index.js";import{BillingAddress as i}from"./billing-address/index.js";import n from"./style.module.scss.js";import{Button as s}from"../../components/button/index.js";import c from"../../components/svg/lock.js";import{IkasStorefrontConfig as m}from"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{createTranslationInputData as l,useTranslation as p}from"../../../../utils/i18n.js";var d=o((function(o){var d=o.vm,u=p().t,y=e.useCallback((function(e){e.stopPropagation(),d.policyModalTitle=u("checkout-page:privacyPolicy"),d.policyModalText=d.privacyPolicy}),[d,d.privacyPolicy]),k=e.useCallback((function(e){e.stopPropagation(),d.policyModalTitle=u("checkout-page:termsOfService"),d.policyModalText=d.termsOfService}),[d,d.termsOfService]),f=m.translations["checkout-page"],v=l(f.ackPoliciesSentence).map((function(o){return o.isVariable?e.createElement("span",{className:n.TermsLabelSpan,onClick:"{{ ackPrivacyPolicy }}"===o.value?y:k},"{{ ackPrivacyPolicy }}"===o.value?u("checkout-page:ackPrivacyPolicy"):u("checkout-page:ackTermsOfService")):o.value}));return e.createElement("div",{className:[n.StepPayment].join(" ")},e.createElement(a,{vm:d}),e.createElement(r,{vm:d}),e.createElement(i,{vm:d}),d.checkoutSettings.showTermsAndConditionsCheckbox&&e.createElement("div",{style:{marginTop:d.useDifferentAddress?"12px":"0px"}},e.createElement(t,{value:d.isTermsAndConditionsChecked,hasError:d.isErrorsVisible&&!d.isTermsAndConditionsChecked,label:e.createElement(e.Fragment,null,v),onChange:d.onTermsAndConditionsCheckedChange})),e.createElement(s,{style:{width:"100%",marginTop:"24px"},text:u("checkout-page:actions.completeOrder"),isLoading:d.isStepLoading,isDisabled:!d.canPerformPayment,onClick:d.onCompletePaymentClick}),!!u("checkout-page:securePaymentTooltip")&&e.createElement("div",{className:n.SecurePaymentContainer},e.createElement("span",{className:n.Lock},e.createElement(c,null)),e.createElement("span",null,u("checkout-page:securePaymentTooltip"))))}));export{d as CheckoutStepPayment};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import{IkasPaymentMethodType as n,IkasPaymentGatewayType as r,IkasPaymentGatewayAdditionalPriceAmountType as o,IkasPaymentMethodAdditionalPriceType as a}from"../../../../../models/data/payment-gateway/index.js";import{CreditCardForm as m}from"../../../components/credit-card-form/index.js";import{Installments as l}from"./installments/index.js";import i from"../../../components/select-box/index.js";import s from"./style.module.scss.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as d}from"../../../../../utils/currency.js";import{useTranslation as c}from"../../../../../utils/i18n.js";import p from"../../../components/svg/external.js";var u=t((function(t){var u=t.vm,y=c().t,f=function(t){return e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap"}},t.children)},E=function(t){return e.createElement("div",{className:s.AdditionalPrice},t.children)};return e.createElement(e.Fragment,null,u.paymentGateways.map((function(t,c){var g,h;return e.createElement(i,{key:t.id,label:t.paymentMethodType===n.CREDIT_CARD&&t.type===r.INTERNAL?y("checkout-page:creditCard"):t.name,isSelected:u.selectedPaymentGatewayIndex===c,rightContent:(null===(g=t.additionalPrices)||void 0===g?void 0:g.length)?e.createElement(E,null,(h=t.additionalPrices[0],0===h.amount?"":(h.amountType===o.AMOUNT?d(h.amount,u.cart.currencyCode):" %"+h.amount)+(h.type===a.DECREMENT?" "+y("checkout-page:paymentMethodDiscount"):" "+y("checkout-page:paymentMethodAdditionalPrice")))):e.createElement(f,null,!!t.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:t.logoUrl}))),bottomContent:t.paymentMethodType===n.CREDIT_CARD&&t.type===r.INTERNAL?e.createElement("div",null,e.createElement(m,{vm:u}),u.installmentInfo&&e.createElement(l,{vm:u})):t.description?e.createElement(e.Fragment,null,t.type===r.EXTERNAL&&e.createElement("div",{style:{height:"52px",display:"flex",justifyContent:"center",margin:"24px 0"}},e.createElement(p,null)),e.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})):void 0,onClick:function(){return u.selectedPaymentGatewayIndex!==c&&u.setPaymentGateway(c)}})})))}));export{u as PaymentGateways};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../../../storefront/index.js";import'../../../../../../ext/lodash/isArguments.js';import'../../../../../../ext/lodash/isBuffer.js';import'../../../../../../ext/lodash/isTypedArray.js';import'../../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as n}from"../../../../../../utils/currency.js";import{useTranslation as l}from"../../../../../../utils/i18n.js";import s from"./style.module.scss.js";import{Toggle as a}from"../../../../components/toggle/index.js";var o=t((function(t){var o,m=t.vm,r=l().t;return e.createElement("div",{className:s.Installments},e.createElement("div",{className:s.Title},r("checkout-page:installmentOptions")),e.createElement("div",{className:s.Container},null===(o=m.installmentInfo)||void 0===o?void 0:o.installmentPrices.map((function(t,l){return e.createElement("div",{className:s.Row,onClick:function(){return m.setInstallmentCount(t.installmentCount||1)}},e.createElement(a,{value:m.selectedInstallmentIndex===l}),e.createElement("div",{className:s.InstallmentInfo},e.createElement("div",{className:s.InstallmentCount},1===t.installmentCount?r("checkout-page:singleInstallment"):t.installmentCount+" "+r("checkout-page:installments")),1!==t.installmentCount&&e.createElement("div",{className:s.InstallmentPrice},n(t.installmentPrice,m.checkout.cart.currencyCode))),e.createElement("div",{className:s.Price},n(t.totalPrice,m.checkout.cart.currencyCode)))}))))}));export{o as Installments};
@@ -0,0 +1 @@
1
+ import e from'../../../../../../ext/style-inject/dist/style-inject.es.js';var l={Installments:"style-module_Installments__aM2lS",Title:"style-module_Title__15N6L",Container:"style-module_Container__12sJp",Row:"style-module_Row__dxeKi",InstallmentInfo:"style-module_InstallmentInfo__G8QDB",InstallmentCount:"style-module_InstallmentCount__22FOH",InstallmentPrice:"style-module_InstallmentPrice__1cJHw",Price:"style-module_Price__3gzwQ"};e(".style-module_Installments__aM2lS {\n margin-top: 32px;\n}\n.style-module_Installments__aM2lS .style-module_Title__15N6L {\n font-size: 16px;\n line-height: 24px;\n margin-bottom: 16px;\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp {\n border: 1px solid var(--checkout-border-color);\n border-radius: 8px;\n background: var(--checkout-primary-bg-color);\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi {\n height: 56px;\n display: flex;\n align-items: center;\n padding: 0 16px;\n border-bottom: 1px solid var(--checkout-border-color);\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi:last-of-type {\n border-bottom: none;\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi .style-module_InstallmentInfo__G8QDB {\n flex: 1 1 auto;\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi .style-module_InstallmentInfo__G8QDB .style-module_InstallmentCount__22FOH {\n font-size: 16px;\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi .style-module_InstallmentInfo__G8QDB .style-module_InstallmentPrice__1cJHw {\n font-size: 12px;\n color: var(--checkout-secondary-text-color);\n}\n.style-module_Installments__aM2lS .style-module_Container__12sJp .style-module_Row__dxeKi .style-module_Price__3gzwQ {\n flex: 0 0 auto;\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n}");export{l as default};
@@ -0,0 +1 @@
1
+ import e from'../../../../../ext/style-inject/dist/style-inject.es.js';var n={PaymentLogoContainer:"style-module_PaymentLogoContainer__224HZ",AdditionalPrice:"style-module_AdditionalPrice__gW28c"};e(".style-module_PaymentLogoContainer__224HZ {\n margin-left: 10px;\n font-size: 0.7em;\n}\n.style-module_PaymentLogoContainer__224HZ img {\n height: 20px;\n}\n\n.style-module_AdditionalPrice__gW28c {\n color: var(--checkout-primary-text-color);\n font-weight: 600;\n}");export{n as default};
@@ -0,0 +1 @@
1
+ import e from'../../../../ext/style-inject/dist/style-inject.es.js';var t={StepPayment:"style-module_StepPayment__3STxe",TermsLabelSpan:"style-module_TermsLabelSpan__35xVC",SecurePaymentContainer:"style-module_SecurePaymentContainer__8jSz4",Lock:"style-module_Lock__2gl_x"};e(".style-module_StepPayment__3STxe {\n margin-top: 8px;\n}\n.style-module_StepPayment__3STxe .style-module_TermsLabelSpan__35xVC {\n color: var(--checkout-primary-text-color);\n}\n.style-module_StepPayment__3STxe .style-module_TermsLabelSpan__35xVC:hover {\n text-decoration: underline;\n}\n.style-module_StepPayment__3STxe .style-module_SecurePaymentContainer__8jSz4 {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 24px;\n color: var(--checkout-secondary-text-color);\n}\n.style-module_StepPayment__3STxe .style-module_SecurePaymentContainer__8jSz4 .style-module_Lock__2gl_x {\n color: #CFCED3;\n margin-right: 8px;\n display: flex;\n align-items: center;\n position: relative;\n top: -1px;\n}");export{t as default};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as o}from"../../../../utils/currency.js";import{useTranslation as i}from"../../../../utils/i18n.js";import n from"./style.module.scss.js";import{Button as c}from"../../components/button/index.js";import{Checkbox as r}from"../../components/checkbox/index.js";import{FormItemType as a}from"../../components/form-item/model.js";import{FormItem as s}from"../../components/form-item/index.js";import m from"../../components/error/index.js";import l from"../../components/select-box/index.js";var p=t((function(t){var o=t.vm,r=i().t;return e.createElement("div",{className:[n.StepShipping].join(" ")},e.createElement(u,{vm:o}),e.createElement(d,{vm:o}),e.createElement(c,{style:{width:"100%",marginTop:"32px"},text:r("checkout-page:actions.continueWithPayment"),isLoading:o.isStepLoading,isDisabled:!o.canProceedToPayment,onClick:o.onProceedToPaymentClick}))})),u=t((function(t){var c=t.vm,r=i().t;return e.createElement("div",{className:[n.InfoBox,c.isChangingShippingMethod?n.Dimmed:""].join(" ")},e.createElement(m,{vm:c}),c.checkout.availableShippingMethods.map((function(t,i){return e.createElement(l,{key:t.shippingSettingsId+t.shippingZoneRateId,label:t.rateName,isSelected:c.checkout.shippingSettingsId===t.shippingSettingsId&&c.checkout.shippingZoneRateId===t.shippingZoneRateId,rightContent:e.createElement("div",{className:n.ShippingPrice},0===t.price?r("checkout-page:free"):o(t.price,c.checkout.cart.currencyCode)),onClick:function(){return c.onShippingMethodChange(t)}})})))})),d=t((function(t){var c=t.vm,m=i().t,l=e.useCallback((function(e){c.checkout.isGiftPackage=e}),[c]),p=e.useCallback((function(e){c.checkout.giftPackageNote=e}),[c,c.checkout]),u=e.useMemo((function(){var e;return null===(e=c.checkoutSettings.giftPackagePriceList)||void 0===e?void 0:e.find((function(e){var t;return e.currencyCode===(null===(t=c.cart)||void 0===t?void 0:t.currencyCode)}))}),[c,c.checkoutSettings,c.cart]),d=m("checkout-page:giftPackageCta")+(u&&u.price?" (+ "+o(u.price,u.currencyCode)+")":"");return c.checkoutSettings.isGiftPackageEnabled?e.createElement("div",{className:n.GiftSection},e.createElement(r,{value:c.checkout.isGiftPackage,label:d,onChange:l,removePadding:!0}),c.checkout.isGiftPackage&&e.createElement(s,{type:a.TEXT_AREA,label:"",value:c.checkout.giftPackageNote||"",onChange:p,style:{marginTop:"16px"},textAreaPlaceholder:m("checkout-page:giftPackageCtaPlaceholder")})):null}));export{p as CheckoutStepShipping};
@@ -0,0 +1 @@
1
+ import n from'../../../../ext/style-inject/dist/style-inject.es.js';var e={BackButtonContainer:"style-module_BackButtonContainer__2bAOw",Actions:"style-module_Actions__3fU7l",StepShipping:"style-module_StepShipping__3nOPT",InfoBox:"style-module_InfoBox__kyrCZ",Dimmed:"style-module_Dimmed__3dkFw",GiftSection:"style-module_GiftSection__2phwh",ShippingPrice:"style-module_ShippingPrice__KaEps"};n(".style-module_BackButtonContainer__2bAOw {\n display: flex;\n justify-content: center;\n position: relative;\n}\n.style-module_BackButtonContainer__2bAOw a {\n line-height: 0.9em;\n}\n\n.style-module_Actions__3fU7l {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_Actions__3fU7l {\n flex-direction: column-reverse;\n justify-content: flex-start;\n }\n .style-module_Actions__3fU7l a {\n margin-top: 1em;\n }\n}\n\n.style-module_StepShipping__3nOPT {\n margin-top: 8px;\n}\n\n.style-module_InfoBox__kyrCZ.style-module_Dimmed__3dkFw {\n opacity: 0.5;\n}\n\n.style-module_GiftSection__2phwh {\n margin-top: 32px;\n}\n\n.style-module_ShippingPrice__KaEps {\n font-weight: 600;\n}");export{e as default};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from'../../../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as a}from"mobx-react-lite";import{Button as s}from"../../components/button/index.js";import{CART_LS_KEY as r,CHECKOUT_LS_KEY as i}from"../../../../store/cart.js";import n from"./style.module.scss.js";import{Analytics as l}from"../../../../analytics/analytics.js";import"../../../../storefront/index.js";import'../../../../ext/html-react-parser/index.js';import"../../../../analytics/events.js";import c from"../../components/svg/success-circle.js";import m from"../../components/expandable-section/index.js";import{IkasTransactionCardAssociationEnum as d}from"../../../../models/data/order-transaction/index.js";import u from"../../components/credit-card-form/svg/amex.js";import p from"../../components/credit-card-form/svg/master-card.js";import v from"../../components/credit-card-form/svg/troy.js";import E from"../../components/credit-card-form/svg/visa.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as f}from"../../../../utils/currency.js";import{useTranslation as g}from"../../../../utils/i18n.js";import{Modal as h}from"../../components/modal/index.js";import{FormItem as x}from"../../components/form-item/index.js";import{FormItemType as j}from"../../components/form-item/model.js";import{ContactForm as k}from"../../../../models/ui/validator/form/contact-form.js";import T from"../../components/notification-box/index.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"../../../../models/data/html-meta-data/index.js";import"../../../../models/data/image/index.js";import"../../../../models/data/installment-info/index.js";import{IkasOrderPackageStatus as N}from"../../../../models/data/order/index.js";import"../../../../models/data/order/line-item/index.js";import"mobx";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/product-option-set/index.js";import"../../../../models/data/raffle/index.js";import"../../../../models/theme/theme.js";import"../../../../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"../../../../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/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/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{IkasPaymentMethodType as I,IkasPaymentGatewayType as y}from"../../../../models/data/payment-gateway/index.js";var A=a((function(e){var t,a,h,x,j=e.vm,k=g().t,T=o.useState(!1),N=T[0],A=T[1];o.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(r),t=localStorage.getItem(i);e&&e===j.checkout.cartId&&localStorage.removeItem(r),t&&t===j.checkout.id&&localStorage.removeItem(i)}j.successTransaction&&l.purchase(j.checkout,j.successTransaction)}),[]);var S=((null===(t=j.checkout.customer)||void 0===t?void 0:t.firstName)||"")+" "+((null===(a=j.checkout.customer)||void 0===a?void 0:a.lastName)||""),D=j.paymentGateways.find((function(e){var t;return e.id===(null===(t=j.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),R=null===(h=j.successTransaction)||void 0===h?void 0:h.paymentMethodDetail,b=o.useMemo((function(){var e,t,a,s;return o.createElement("div",{className:[n.InfoGrid].join(" ")},o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:paymentMethod")),D&&o.createElement(o.Fragment,null,!!D.logoUrl&&o.createElement("div",{className:n.PaymentLogoContainer},o.createElement("img",{src:D.logoUrl})),!D.logoUrl&&o.createElement("div",{className:n.InfoText},D.paymentMethodType===I.CREDIT_CARD&&D.type===y.INTERNAL?k("checkout-page:creditCard"):D.name),!!D.description&&D.type!==y.EXTERNAL&&o.createElement("div",{className:n.InfoText},o.createElement("div",{dangerouslySetInnerHTML:{__html:D.description}}))),"CREDIT_CARD"===(null===(e=j.successTransaction)||void 0===e?void 0:e.paymentMethod)&&o.createElement(o.Fragment,null,o.createElement("div",{className:n.InfoText},o.createElement("div",{className:n.CardLogoContainer},function(){var e,t;switch(null===(t=null===(e=j.successTransaction)||void 0===e?void 0:e.paymentMethodDetail)||void 0===t?void 0:t.cardAssociation){case d.AMERICAN_EXPRESS:return o.createElement(u,null);case d.MASTER_CARD:return o.createElement(p,null);case d.TROY:return o.createElement(v,null);case d.VISA:return o.createElement(E,null);default:return o.createElement("div",null)}}()),o.createElement("span",null,"**** "+((null==R?void 0:R.lastFourDigits)||""))),(null===(t=null==R?void 0:R.installment)||void 0===t?void 0:t.installmentCount)&&R.installment.installmentCount>1&&o.createElement(o.Fragment,null,o.createElement("div",{className:n.InfoText},R.installment.installmentCount+" "+k("checkout-page:installments")),null!==R.installment.installmentPrice&&o.createElement("div",{className:n.InfoText},R.installment.installmentCount+" x "+f(R.installment.installmentPrice,j.checkout.cart.currencyCode))))),o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:billingAddress")),!!(null===(a=j.checkout.billingAddress)||void 0===a?void 0:a.company)&&o.createElement("div",{className:[n.InfoText,n.InfoTextBold].join(" ")},j.checkout.billingAddress.company),o.createElement("div",{className:n.InfoText},null===(s=j.checkout.billingAddress)||void 0===s?void 0:s.addressText)))}),[]),_=o.useMemo((function(){var e,t,a,s,r;return o.createElement("div",{className:[n.InfoGrid].join(" ")},o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:contactInfo")),o.createElement("div",{className:n.InfoText},null===(e=j.checkout.customer)||void 0===e?void 0:e.email),o.createElement("div",{className:n.InfoText},S),!!(null===(t=j.checkout.shippingAddress)||void 0===t?void 0:t.phone)&&o.createElement("div",{className:n.InfoText},null===(a=j.checkout.shippingAddress)||void 0===a?void 0:a.phone)),o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:shippingAddress")),!!(null===(s=j.checkout.shippingAddress)||void 0===s?void 0:s.company)&&o.createElement("div",{className:[n.InfoText,n.InfoTextBold].join(" ")},j.checkout.shippingAddress.company),o.createElement("div",{className:n.InfoText},null===(r=j.checkout.shippingAddress)||void 0===r?void 0:r.addressText)))}),[]);return o.createElement("div",{className:n.StepSuccess},o.createElement("div",{className:n.SuccessTitleContainer},o.createElement(c,null),o.createElement("span",{className:n.SuccessTitle},k("checkout-page:orderSuccessTitle"))),o.createElement("div",{className:n.SuccessSubTitle},k("checkout-page:orderSuccessDescription",{customerName:S})),o.createElement("div",{className:[n.InfoGrid,n.WithBorder].join(" ")},o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:orderNoAndDate")),o.createElement("div",{className:[n.InfoText,n.InfoTextBold].join(" ")},"#"+(j.checkout.orderNumber||"")),o.createElement("div",{className:n.InfoText},j.checkout.dateStr),o.createElement(C,{vm:j})),o.createElement("div",null,o.createElement("div",{className:n.InfoTitle},k("checkout-page:contactInfo")),o.createElement("div",{className:n.InfoText},null===(x=j.checkout.customer)||void 0===x?void 0:x.email),o.createElement("div",{className:n.InfoText},S))),o.createElement(m,{title:k("checkout-page:paymentSummary")},b),o.createElement(m,{title:k("checkout-page:shippingSummary")},_),o.createElement("div",{className:n.Actions},o.createElement("div",{className:n.HelpText},o.createElement("span",null,k("checkout-page:helpCtaQuestion")),o.createElement("span",{className:n.Cta,onClick:function(){return A(!0)}},k("checkout-page:helpCta"))),o.createElement(s,{text:k("checkout-page:actions.backToShopping"),onClick:j.onBackToShoppingClick,style:{flex:"0 0 auto"}})),N&&o.createElement(L,{vm:j,setVisible:A}))})),L=a((function(a){var r,i,n=a.vm,l=a.setVisible,c=g().t,m=o.useState(!1),d=m[0],u=m[1],p=o.useState(!1),v=p[0],E=p[1],f=o.useState(new k({message:{requiredRule:"",emailRule:"",minRule:""},store:n.store}))[0];f.email=n.checkout.customerEmail,f.firstName=(null===(r=n.checkout.customer)||void 0===r?void 0:r.firstName)||"",f.lastName=(null===(i=n.checkout.customer)||void 0===i?void 0:i.lastName)||"";var N=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return v?[2,l(!1)]:(u(!0),[4,f.saveContactForm()]);case 1:return e.sent()&&E(!0),u(!1),[2]}}))}))}),[d]);return o.createElement(h,{title:c("checkout-page:contactForm"),modalContent:o.createElement("div",null,v&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(T,{type:"success",title:c("checkout-page:contactFormSent"),content:c("checkout-page:contactFormDescription")})),o.createElement(x,{type:j.TEXT_AREA,label:"",value:f.message||"",onChange:f.onMessageChange,textAreaPlaceholder:c("checkout-page:contactFormCta")}),o.createElement(s,{style:{width:"100%",marginTop:"24px"},text:c(v?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:d,isDisabled:!f.message,onClick:N})),onClose:function(){return l(!1)}})})),C=a((function(e){var t,a,s,r=e.vm,i=g().t,l=n.Yellow;switch(null===(t=r.order)||void 0===t?void 0:t.orderPackageStatus){case N.FULFILLED:case N.PARTIALLY_FULFILLED:case N.DELIVERED:case N.PARTIALLY_DELIVERED:l=n.Green;break;case N.CANCELLED:case N.PARTIALLY_CANCELLED:case N.CANCEL_REJECTED:case N.CANCEL_REQUESTED:l=n.Red}return o.createElement("div",{className:[n.OrderStatus,l].join(" ")},(null===(a=r.order)||void 0===a?void 0:a.orderPackageStatus)?null===(s=[{types:[N.UNFULFILLED],text:i("checkout-page:orderPackageStatus.unfulfilled")},{types:[N.READY_FOR_SHIPMENT],text:i("checkout-page:orderPackageStatus.readyForShipment")},{types:[N.PARTIALLY_FULFILLED],text:i("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[N.FULFILLED],text:i("checkout-page:orderPackageStatus.fulfilled")},{types:[N.DELIVERED,N.PARTIALLY_DELIVERED],text:i("checkout-page:orderPackageStatus.delivered")},{types:[N.UNABLE_TO_DELIVER],text:i("checkout-page:orderPackageStatus.unableToDeliver")},{types:[N.CANCELLED,N.PARTIALLY_CANCELLED],text:i("checkout-page:orderPackageStatus.cancelled")},{types:[N.CANCEL_REJECTED],text:i("checkout-page:orderPackageStatus.cancelRejected")},{types:[N.REFUNDED,N.PARTIALLY_REFUNDED],text:i("checkout-page:orderPackageStatus.refunded")},{types:[N.REFUND_REQUEST_ACCEPTED],text:i("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[N.REFUND_REJECTED],text:i("checkout-page:orderPackageStatus.refundRejected")},{types:[N.REFUND_REQUESTED],text:i("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(r.order.orderPackageStatus)})))||void 0===s?void 0:s.text:"")}));export{A as StepSuccess};
@@ -0,0 +1 @@
1
+ import e from'../../../../ext/style-inject/dist/style-inject.es.js';var t={StepSuccess:"style-module_StepSuccess__36Zg4",SuccessTitleContainer:"style-module_SuccessTitleContainer__3fT9P",SuccessTitle:"style-module_SuccessTitle__2cVxj",SuccessSubTitle:"style-module_SuccessSubTitle__2UvWI",InfoGrid:"style-module_InfoGrid__2VYXk",InfoTitle:"style-module_InfoTitle__2Whku",InfoText:"style-module_InfoText__1LHFw",InfoTextBold:"style-module_InfoTextBold__21977",WithBorder:"style-module_WithBorder__1aBHw",CardLogoContainer:"style-module_CardLogoContainer__3tymO",PaymentLogoContainer:"style-module_PaymentLogoContainer__AN08p",Actions:"style-module_Actions__3ZXaJ",HelpText:"style-module_HelpText__39LA1",Cta:"style-module_Cta__3sxNK",OrderStatus:"style-module_OrderStatus__CPd7s",Yellow:"style-module_Yellow__1mZZm",Green:"style-module_Green__2qwNg",Red:"style-module_Red__TKRy8"};e(".style-module_StepSuccess__36Zg4 {\n padding-top: 24px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_SuccessTitleContainer__3fT9P {\n margin-bottom: 24px;\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__36Zg4 .style-module_SuccessTitleContainer__3fT9P .style-module_SuccessTitle__2cVxj {\n font-size: 28px;\n font-weight: 600;\n margin-left: 16px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_SuccessSubTitle__2UvWI {\n margin: auto;\n margin-bottom: 32px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 48px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk .style-module_InfoTitle__2Whku {\n font-size: 16px;\n line-height: 24px;\n margin-bottom: 12px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk .style-module_InfoText__1LHFw {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk .style-module_InfoTextBold__21977 {\n font-weight: 600;\n color: var(--checkout-primary-text-color);\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk.style-module_WithBorder__1aBHw {\n border-bottom: 1px solid var(--checkout-border-color);\n padding-bottom: 24px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk .style-module_CardLogoContainer__3tymO {\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk .style-module_PaymentLogoContainer__AN08p img {\n height: 20px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ {\n width: 100%;\n display: flex;\n justify-content: space-between;\n margin: auto;\n margin-top: 24px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ .style-module_HelpText__39LA1 {\n display: flex;\n align-items: center;\n color: var(--checkout-secondary-text-color);\n flex-wrap: wrap;\n}\n.style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ .style-module_HelpText__39LA1 .style-module_Cta__3sxNK {\n color: var(--checkout-primary-text-color);\n margin-left: 4px;\n}\n.style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ .style-module_HelpText__39LA1 .style-module_Cta__3sxNK:hover {\n cursor: pointer;\n text-decoration: underline;\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ {\n flex-direction: column;\n }\n .style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ .style-module_HelpText__39LA1 {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__36Zg4 .style-module_Actions__3ZXaJ .style-module_HelpText__39LA1 .style-module_Cta__3sxNK {\n margin-left: 0;\n }\n}\n.style-module_StepSuccess__36Zg4 .style-module_OrderStatus__CPd7s {\n padding: 4px 8px;\n border-radius: 6px;\n margin-top: 8px;\n font-size: 14px;\n font-weight: 500;\n display: inline-flex;\n}\n.style-module_StepSuccess__36Zg4 .style-module_OrderStatus__CPd7s.style-module_Yellow__1mZZm {\n color: var(--checkout-warning-color);\n background-color: var(--checkout-warning-light-color);\n border: 1px solid var(--checkout-warning-color);\n}\n.style-module_StepSuccess__36Zg4 .style-module_OrderStatus__CPd7s.style-module_Green__2qwNg {\n color: var(--checkout-success-color);\n background-color: var(--checkout-success-light-color);\n border: 1px solid var(--checkout-success-color);\n}\n.style-module_StepSuccess__36Zg4 .style-module_OrderStatus__CPd7s.style-module_Red__TKRy8 {\n color: var(--checkout-error-color);\n background-color: var(--checkout-error-light-color);\n border: 1px solid var(--checkout-error-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_StepSuccess__36Zg4 {\n padding-left: 24px;\n padding-right: 24px;\n }\n .style-module_StepSuccess__36Zg4 .style-module_SuccessTitleContainer__3fT9P {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__36Zg4 .style-module_SuccessTitleContainer__3fT9P .style-module_SuccessTitle__2cVxj {\n font-size: 20px;\n }\n .style-module_StepSuccess__36Zg4 .style-module_SuccessSubTitle__2UvWI {\n max-width: 400px;\n margin-left: 56px;\n }\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__36Zg4 .style-module_InfoGrid__2VYXk {\n grid-template-columns: 1fr;\n grid-gap: 24px;\n }\n .style-module_StepSuccess__36Zg4 .style-module_SuccessSubTitle__2UvWI {\n margin-left: 0;\n }\n}");export{t as default};
@@ -0,0 +1 @@
1
+ import e from'../../ext/style-inject/dist/style-inject.es.js';var t={CheckoutPage:"style-module_CheckoutPage__A_f2V",Left:"style-module_Left__2dWz6",LeftContent:"style-module_LeftContent__1Tyb7",Space:"style-module_Space__1e2de",Footer:"style-module_Footer__ebdyg",FooterItem:"style-module_FooterItem__1ofBc",FooterBullet:"style-module_FooterBullet__1dD9S",AdressStepInfo:"style-module_AdressStepInfo__27aR0",Address:"style-module_Address__2tYiR",Text:"style-module_Text__FkGkR",WithMBottom:"style-module_WithMBottom__TQbZL",Gray:"style-module_Gray__3vyMM",EditBtn:"style-module_EditBtn__3aAlL",AddressStepInfoMobile:"style-module_AddressStepInfoMobile__uwl92",ErrorContainer:"style-module_ErrorContainer__3B5Gx",Header:"style-module_Header__1vfF1",Logo:"style-module_Logo__2E8Do",LoginText:"style-module_LoginText__3FSC9",LoginBtn:"style-module_LoginBtn__XVF05",CustomerInfo:"style-module_CustomerInfo__3aAq9",Name:"style-module_Name__11iSh",Email:"style-module_Email__1AITY",LoginCta:"style-module_LoginCta__2sZZF",MobileCartSummary:"style-module_MobileCartSummary__3NrcP",RowPB:"style-module_RowPB__3M7Tz",Right:"style-module_Right__3AN4f",RightContent:"style-module_RightContent__1TcO5",PoweredBy:"style-module_PoweredBy__2kV_J",LightText:"style-module_LightText__3dSVB",ReactTooltipWrap:"style-module_ReactTooltipWrap__2hp2P"};e('.style-module_CheckoutPage__A_f2V {\n all: unset;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex;\n color: var(--checkout-primary-text-color);\n background-color: var(--checkout-primary-bg-color);\n}\n.style-module_CheckoutPage__A_f2V input::placeholder, .style-module_CheckoutPage__A_f2V textarea::placeholder {\n all: unset;\n}\n.style-module_CheckoutPage__A_f2V a, .style-module_CheckoutPage__A_f2V a:hover, .style-module_CheckoutPage__A_f2V a:focus, .style-module_CheckoutPage__A_f2V a:active {\n color: inherit;\n}\n.style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal;\n line-height: unset;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 64px;\n background-color: var(--checkout-primary-bg-color);\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n height: 48px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: transparent;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n cursor: pointer;\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: var(--checkout-primary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterBullet__1dD9S {\n margin: 0 12px;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n text-align: center;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n display: flex;\n justify-content: space-between;\n padding-left: 78px;\n padding-top: 5px;\n width: 100%;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL {\n cursor: pointer;\n user-select: none;\n align-self: flex-start;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL:hover {\n text-decoration: underline;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n padding-top: 0;\n justify-content: flex-end;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: none;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: block;\n padding-top: 16px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 24px;\n }\n}\n@media only screen and (max-width: 480px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 10px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-weight: 500;\n font-size: 20px;\n margin-bottom: 44px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n flex: 1 1 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: calc(100% - 24px);\n max-width: 200px;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none;\n}\n@media only screen and (max-width: 1280px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n max-width: 150px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n font-size: 14px;\n text-align: right;\n flex: 0 0 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 span {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginBtn__XVF05 {\n margin-left: 4px;\n font-weight: bold;\n user-select: none;\n cursor: pointer;\n font-weight: 500;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-weight: 500;\n font-size: 14px;\n user-select: none;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n height: 72px;\n margin-bottom: 0;\n padding: 0 24px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 15px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-size: 13px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n display: flex;\n flex-direction: column;\n padding-bottom: 0;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n position: sticky;\n top: 0;\n z-index: 10;\n}\n@media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 16px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: var(--checkout-secondary-bg-color);\n display: flex;\n padding-left: 64px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto;\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 168px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J {\n width: 100%;\n padding: 16px 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--checkout-primary-text-color);\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J span {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n margin-right: 8px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J a {\n display: flex;\n align-items: center;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none;\n }\n}\n\n.style-module_LightText__3dSVB {\n color: var(--checkout-secondary-text-color);\n}\n\n.style-module_ReactTooltipWrap__2hp2P {\n max-width: 300px;\n}');export{t as default};
@@ -0,0 +1 @@
1
+ import o from'../../../ext/style-inject/dist/style-inject.es.js';var n={FormSectionTitle:"common-module_FormSectionTitle___Mykh",Title:"common-module_Title__3JTHt",WithSubTitle:"common-module_WithSubTitle__1VHWv",SubTitle:"common-module_SubTitle__1H4kH",Grid:"common-module_Grid__2CuvH",Grid2:"common-module_Grid2__9CCag",Grid3:"common-module_Grid3__3p0jJ",fadeInFromRight:"common-module_fadeInFromRight__3RYk5"};o(".common-module_FormSectionTitle___Mykh {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.common-module_FormSectionTitle___Mykh .common-module_Title__3JTHt {\n flex: 1 1 auto;\n padding-bottom: 16px;\n color: var(--checkout-primary-text-color);\n font-size: 20px;\n line-height: 32px;\n}\n.common-module_FormSectionTitle___Mykh .common-module_Title__3JTHt.common-module_WithSubTitle__1VHWv {\n line-height: auto;\n padding-bottom: 0;\n}\n\n.common-module_SubTitle__1H4kH {\n color: var(--checkout-secondary-text-color);\n font-size: 14px;\n padding-bottom: 16px;\n padding-top: 2px;\n}\n\n.common-module_Grid__2CuvH {\n display: grid;\n grid-gap: 16px;\n grid-template-columns: 1fr;\n}\n.common-module_Grid__2CuvH.common-module_Grid2__9CCag {\n grid-template-columns: repeat(2, 1fr);\n}\n.common-module_Grid__2CuvH.common-module_Grid3__3p0jJ {\n grid-template-columns: repeat(3, 1fr);\n}\n@media only screen and (max-width: 768px) {\n .common-module_Grid__2CuvH {\n grid-template-columns: 1fr !important;\n }\n}\n\n@keyframes common-module_fadeInFromRight__3RYk5 {\n from {\n opacity: 0;\n transform: translateY(10px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}");export{n as default};
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { ImageLoader } from "next/image";
3
- import { IkasImage } from "../../models/index";
2
+ import { ImageLoader } from "next/image.js";
3
+ import { IkasImage } from "../../models";
4
4
  export declare const Image: React.FC<ImageProps>;
5
5
  declare const VALID_LAYOUT_VALUES: readonly [
6
6
  "fill",
@@ -0,0 +1 @@
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 +1,4 @@
1
- export { IkasPage } from "./page/index";
1
+ export { IkasPage } from "./page";
2
2
  export { IkasPageHead } from "./page/head";
3
- export { IkasPageEditor } from "./page-editor/index";
4
- export { Image } from "./image/index";
3
+ export { IkasPageEditor } from "./page-editor";
4
+ export { Image } from "./image";
@@ -1,10 +1,21 @@
1
1
  import * as React from "react";
2
- import { IkasThemeSettings } from "../../models/index";
2
+ import { IkasThemeSettings } from "../../models";
3
3
  import { IkasPageComponentPropValue } from "../../providers/page-data-get";
4
4
  declare type Props = {
5
5
  pageComponentPropValue: IkasPageComponentPropValue;
6
6
  index: number;
7
7
  settings: IkasThemeSettings;
8
8
  };
9
- export declare const ThemeComponent: React.FC<Props>;
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
+ }
10
21
  export {};
@@ -0,0 +1 @@
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 a}from"../../providers/page-data-init.js";import{Observer as i}from"mobx-react-lite";var l=function(l){function u(e){var r=l.call(this,e)||this;return r.state={hasError:!1},t(r,{hasNullValue:n,Component:n}),r}return e(u,l),u.getDerivedStateFromError=function(e){return console.error(e),{hasError:!0}},Object.defineProperty(u.prototype,"hasNullValue",{get:function(){var e=this.props.pageComponentPropValue,r=e.propValues;return e.component.props.some((function(e){if(e.isRequired){var o=(r||{})[e.name];return null===o||null==o}}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.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}),u.prototype.render=function(){var e=this;return o.createElement(i,null,(function(){var t=e.props,n=t.index,i=t.pageComponentPropValue,l=t.settings,u=p.store,s=e.Component,m=i.pageComponent,c=i.propValues;return s?e.state.hasError?null:o.createElement("div",{id:n+""},e.hasNullValue?null:o.createElement(s,r({key:m.id},c,{settings:l,store:u,pageSpecificData:a.pageSpecificData}))):(console.error("COMPONENT NOT FOUND!"),null)}))},u}(o.Component);export{l as ThemeComponent};
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { IkasThemePageType } from "../../models/index";
2
+ import { IkasThemePageType } from "../../models";
3
3
  declare type Props = {
4
4
  pageType: IkasThemePageType;
5
5
  pageTitle?: string | null;
@@ -0,0 +1 @@
1
+ import*as t from"react";import{observer as e}from"mobx-react-lite";import o from"next/head.js";import"../../models/data/blog/index.js";import{IkasBrand as r}from"../../models/data/brand/index.js";import{IkasCategory as i}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"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasMerchantSettings as a}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";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/theme/theme.js";import{IkasThemePageType as n}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 d}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/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 s}from"../../storefront/index.js";import{IkasPageDataInit as m}from"../../providers/page-data-init.js";var p=e((function(e){var p=e.pageType,l=e.pageTitle,c=e.pageDescription,u=e.pageSpecificDataStr,f=e.merchantSettingsStr,h=e.addOgpMetas,v="undefined"!=typeof window;t.useEffect((function(){var t;document.documentElement.lang=(null===(t=s.routings.find((function(t){return t.id===s.storefrontRoutingId})))||void 0===t?void 0:t.locale)||"tr"}),[p]);var g=t.useMemo((function(){if(f)return new a(JSON.parse(f))}),[f]),j=t.useMemo((function(){if(!u)return u;var t=JSON.parse(u);switch(p){case n.PRODUCT:return new d(t.product,t.selectedVariantValues);case n.CATEGORY:return new i(t);case n.BRAND:return new r(t);default:return u}}),[u]),x=t.useMemo((function(){if(j&&j.href)return"https://"+s.domain+j.href}),[j]),y=t.useMemo((function(){var t,e=[];if(h)if(e.push({property:"og:type",content:"website"}),e.push({property:"og:site_name",content:"https://"+s.domain}),l&&e.push({property:"og:title",content:l}),c&&e.push({property:"og:description",content:c}),e.push({property:"og:url",content:x||(v?window.location.href:"")||"https://"+s.domain}),j&&p===n.PRODUCT){var o=j;o.selectedVariant.mainImage&&e.push({property:"og:image",content:null===(t=o.selectedVariant.mainImage)||void 0===t?void 0:t.src})}else g&&e.push({property:"og:image",content:g.logo.src});return e}),[l,j,x,c,g,h,g]),b=t.useMemo((function(){var t=[];if(g){var e={"@context":"https://schema.org","@type":"Website",url:"https://"+s.domain},o=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://"+s.domain}}(g);t.push(e),t.push(o)}if(j&&p===n.PRODUCT){var r=function(t){var e,o;try{"undefined"!=typeof window&&m._initProductDetailOnBrowser(t);var r="https://"+s.domain+t.href;return{"@context":"https://schema.org/","@type":"Product",name:t.product.name,description:null===(e=t.product.metaData)||void 0===e?void 0:e.description,image:t.selectedVariant.images.map((function(t){return t.src})),productId:t.selectedVariant.id,sku:t.selectedVariant.sku,mpn:t.selectedVariant.barcodeList.length?t.selectedVariant.barcodeList[0]:"",brand:{"@type":"Brand",name:null===(o=t.product.brand)||void 0===o?void 0:o.name},offers:{"@type":"Offer",url:r,priceCurrency:t.selectedVariant.price.currency||"TRY",price:t.selectedVariant.price.finalPrice,priceValidUntil:"",itemCondition:"https://schema.org/NewCondition",availability:t.selectedVariant.stock>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}}}catch(t){}}(j);r&&t.push(r)}if(j&&p===n.CATEGORY){var i=function(t){var e,o,r;try{return{"@context":"http://schema.org","@type":"CollectionPage",url:"https://"+s.domain+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===(r=t.image)||void 0===r?void 0:r.src}}catch(t){}}(j),a=function(t){try{return{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:t.path.map((function(t,e){return{"@type":"ListItem",position:e+1,name:t.name,item:"https://"+s.domain+t.href}}))}}catch(t){}}(j);i&&t.push(i),a&&t.push(a)}return t}),[j,g]);return t.createElement(o,null,t.createElement("title",null,l||""),t.createElement("meta",{name:"description",content:c||""}),!!h&&y.map((function(e,o){return t.createElement("meta",{key:e.content+"-"+o,property:e.property,content:e.content})})),!!b.length&&b.map((function(e,o){return t.createElement("script",{key:o,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}})})))}));export{p as IkasPageHead};
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { IkasThemePageType, IkasThemeSettings } from "../../models/index";
2
+ import { IkasThemePageType, IkasThemeSettings } from "../../models";
3
3
  import { IkasPageComponentPropValue } from "../../providers/page-data-get";
4
4
  export declare type IkasPageProps = {
5
5
  propValuesStr: string;
@@ -12,6 +12,7 @@ export declare type IkasPageProps = {
12
12
  configJson: Record<string, any>;
13
13
  reInitOnBrowser?: boolean;
14
14
  addOgpMetas?: boolean;
15
+ components?: Record<string, any>;
15
16
  };
16
17
  export declare const IkasPage: React.FC<IkasPageProps>;
17
18
  export declare const renderComponent: (pageComponentPropValue: IkasPageComponentPropValue, settings: IkasThemeSettings, index: number) => JSX.Element;
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as r}from"mobx-react-lite";import{useRouter as i}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"../../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"mobx";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/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/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{IkasStorefrontConfig as d}from"../../storefront/index.js";import'../../ext/html-react-parser/index.js';import{initIkasEvents as p}from"../../analytics/events.js";import{IkasPageDataInit as l}from"../../providers/page-data-init.js";import{ThemeComponent as u}from"./ThemeComponent.js";import{IkasPageHead as c}from"./head.js";var f=r((function(r){var u=r.propValuesStr,f=r.pageType,x=r.pageTitle,g=r.pageDescription,v=r.pageSpecificDataStr,h=r.settingsStr,S=r.merchantSettingsStr,w=r.configJson,y=r.reInitOnBrowser,b=r.addOgpMetas,C=r.components;d.initWithJson(w),d.currentPageComponents=C;var E=d.store;E.currentPageType=f;var O=i(),T=o.useState(!1),V=T[0],D=T[1],P=o.useState(new n(JSON.parse(h)))[0],J=o.useMemo((function(){return l.setPageSpecificData(v,f,V),l.initPropValues(u,O,h,!0,V)}),[V,u,f,h,v]);o.useEffect((function(){y&&D("undefined"!=typeof window),E.cartStore.getCart(),E.checkLocalization(),p()}),[]),o.useEffect((function(){var e=function(){d.store.customerStore.routeChangeInit()};return O.events.on("routeChangeStart",e),function(){O.events.off("routeChangeStart",e)}}),[]),o.useEffect((function(){!function(o,r,i){e(this,void 0,void 0,(function(){var e,n,p,u,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(r),n=new s(e.product,e.selectedVariantValues),"undefined"!=typeof window&&l._initProductDetailOnBrowser(n),m.productView(n),d.store.customerStore.onProductView(n.product.id,n.selectedVariant.id)),o===a.CATEGORY&&(p=JSON.parse(r),u=p.path.map((function(e){return e.name})).join(" > "),u=p.path.length>0?u+" > "+p.name:p.name,m.viewCategory(u,p)),o!==a.CART?[3,3]:[4,i.cartStore.waitUntilInitialized()];case 2:t.sent(),m.viewCart(i.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,v,E)}),[f,v,J]);var k=o.useMemo((function(){var e=J.find((function(e){return e.component.isHeader})),t=J.find((function(e){return e.component.isFooter})),r=J.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,P,-1),r.map((function(e,t){return j(e,P,t)}))),t&&j(t,P,-1))}),[J,P]);return o.createElement(o.Fragment,null,o.createElement(c,{pageType:f,pageTitle:x,pageDescription:g,pageSpecificDataStr:v,merchantSettingsStr:S,addOgpMetas:b}),k)})),j=function(e,t,r){return o.createElement(u,{key:e.pageComponent.id,index:r,pageComponentPropValue:e,settings:t})};export{f as IkasPage,j as renderComponent};
@@ -1,9 +1,33 @@
1
1
  import * as React from "react";
2
2
  import IkasPageEditorViewModel from "./model";
3
- import { IkasThemePageComponent } from "../../models/index";
3
+ import { IkasThemePageComponent } from "../../models";
4
4
  declare type Props = {
5
5
  vm: IkasPageEditorViewModel;
6
6
  pageComponent: IkasThemePageComponent;
7
7
  };
8
- export declare const ThemeEditorComponent: React.FC<Props>;
8
+ export declare class ThemeEditorComponent extends React.Component<Props> {
9
+ ref: React.RefObject<HTMLDivElement>;
10
+ error: any;
11
+ disposer?: () => void;
12
+ state: {
13
+ hasError: boolean;
14
+ };
15
+ constructor(props: Props);
16
+ componentDidMount(): void;
17
+ componentWillUnmount(): void;
18
+ static getDerivedStateFromError(error: any): {
19
+ hasError: boolean;
20
+ };
21
+ get pageComponentPropValue(): import("../../providers/page-data-get").IkasPageComponentPropValue | undefined;
22
+ get propValues(): Record<string, any> | undefined;
23
+ get isSelected(): boolean;
24
+ get isHovered(): boolean;
25
+ get hasNullValue(): boolean;
26
+ get rendered(): JSX.Element;
27
+ get Component(): any;
28
+ onMouseEnter: () => void;
29
+ onMouseLeave: () => void;
30
+ onClick: () => void;
31
+ render(): JSX.Element;
32
+ }
9
33
  export {};
@@ -0,0 +1 @@
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"../../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 n}from"../../models/data/order/line-item/index.js";import{reaction as s,makeObservable as a,computed as d}from"mobx";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/theme/theme.js";import{IkasThemePageType as m}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"../../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/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{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 v}from"../../providers/page-data-init.js";import{Observer as f}from"mobx-react-lite";var j=function(j){function h(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(),a(o,{pageComponentPropValue:d,propValues:d,isSelected:d,isHovered:d,hasNullValue:d,rendered:d,Component:d}),o}return e(h,j),h.prototype.componentDidMount=function(){var e=this.props.vm;this.disposer&&this.disposer(),this.disposer=s((function(){var o;return null===(o=e.theme)||void 0===o?void 0:o.settings}),(function(){var o;null===(o=e.theme)||void 0===o||o.settings.colors.map((function(e){return document.documentElement.style.setProperty(e.key,e.color)}))}))},h.prototype.componentWillUnmount=function(){this.disposer&&this.disposer()},h.getDerivedStateFromError=function(e){return console.error(e),{hasError:!0}},Object.defineProperty(h.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(h.prototype,"propValues",{get:function(){var e,t,r=this.props.vm,s=null===(e=this.pageComponentPropValue)||void 0===e?void 0:e.propValues;(null===(t=r.page)||void 0===t?void 0:t.type)===m.CHECKOUT&&(s={checkout:new i({cart:new c({items:[new n({currencyCode:"TRY",finalPrice:100,finalPriceWithQuantity:100,price:100,priceWithQuantity:100,quantity:1})]})}),checkoutSettings:new l,merchantSettings:null,customizationProps:o({},s),returnPolicy:"",privacyPolicy:"",termsOfService:""});return s},enumerable:!1,configurable:!0}),Object.defineProperty(h.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(h.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(h.prototype,"hasNullValue",{get:function(){var e,o=this;return!!(null===(e=this.pageComponentPropValue)||void 0===e?void 0:e.component.props.some((function(e){if(e.isRequired){var t=(o.propValues||{})[e.name];return null===t||null==t}})))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rendered",{get:function(){var e,i,n=this.Component,s=this.props.vm,a=p.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:a,settings:null===(i=s.theme)||void 0===i?void 0:i.settings,pageSpecificData:v.pageSpecificData}))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"Component",{get:function(){var e,o=this.props,t=o.vm,r=o.pageComponent,i=p.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}),h.prototype.render=function(){var e=this;return t.createElement(f,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}),";"):p.currentPageComponents?t.createElement("div",{ref:e.ref,style:{position:"relative"},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},e.rendered,(e.isSelected||e.isHovered)&&t.createElement("div",{style:g})):(console.error("Components for the page not found."),null)}))},h}(t.Component),g={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",border:"4px solid rgb(0, 161, 255)",zIndex:1e19};export{j as ThemeEditorComponent};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{observer as o}from"mobx-react-lite";import{useRouter as n}from"next/router.js";import{ThemeEditorComponent as t}from"./ThemeComponentEditor.js";import i from"./model.js";import{IkasPageHead as r}from"../page/head.js";var m=o((function(){var o,m,l,p=n(),a=e.useState((function(){return new i(p)}))[0];if(a.isLoading)return null;var v=null===(o=a.pageComponents)||void 0===o?void 0:o.find((function(e){var o,n;return e.componentId===(null===(n=null===(o=a.theme)||void 0===o?void 0:o.headerComponent)||void 0===n?void 0:n.id)})),u=null===(m=a.pageComponents)||void 0===m?void 0:m.find((function(e){var o,n;return e.componentId===(null===(n=null===(o=a.theme)||void 0===o?void 0:o.footerComponent)||void 0===n?void 0:n.id)})),c=null===(l=a.pageComponents)||void 0===l?void 0:l.filter((function(e){var o,n,t,i;return e.componentId!==(null===(n=null===(o=a.theme)||void 0===o?void 0:o.headerComponent)||void 0===n?void 0:n.id)&&e.componentId!==(null===(i=null===(t=a.theme)||void 0===t?void 0:t.footerComponent)||void 0===i?void 0:i.id)}));return e.createElement(e.Fragment,null,!!a.page&&e.createElement(r,{pageType:a.page.type,pageTitle:a.page.pageTitle,pageDescription:a.page.description}),e.createElement("div",{style:d},e.createElement("div",null,!!v&&e.createElement(t,{key:v.id,vm:a,pageComponent:v}),null==c?void 0:c.map((function(o){return e.createElement(t,{key:o.id,vm:a,pageComponent:o})}))),!!u&&e.createElement(t,{key:u.id,vm:a,pageComponent:u})))})),d={minHeight:"100vh",width:"100vw",display:"flex",flexDirection:"column",justifyContent:"space-between"};export{m as IkasPageEditor};
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const IkasEditorComponentLoader: React.FC;
@@ -0,0 +1 @@
1
+ import*as e from"react";import r from"./style.module.scss.js";var t=function(){return e.createElement("div",{className:r.Container},e.createElement("div",{className:r.loader}))};export{t as IkasEditorComponentLoader};
@@ -0,0 +1 @@
1
+ import e from'../../../ext/style-inject/dist/style-inject.es.js';var n={Container:"style-module_Container__1eB6f",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_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,7 +1,7 @@
1
- import { NextRouter } from "next/router";
2
- import { IkasThemePage, IkasThemePageComponent, IkasTheme, IkasThemeComponent } from "../../models/index";
1
+ import { NextRouter } from "next/router.js";
2
+ import { IkasThemePage, IkasThemePageComponent, IkasTheme, IkasThemeComponent } from "../../models";
3
3
  import { IkasPageDataProvider } from "../../providers/page-data-get";
4
- import { IkasThemePageSpecification } from "../../models/theme/page/index";
4
+ import { IkasThemePageSpecification } from "../../models/theme/page";
5
5
  export default class IkasPageEditorViewModel {
6
6
  theme?: IkasTheme | null;
7
7
  page?: IkasThemePage | null;
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import{makeAutoObservable as o,runInAction as n}from"mobx";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"../../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"../../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{IkasTheme as i}from"../../models/theme/theme.js";import{IkasThemePageType as r}from"../../models/theme/page/index.js";import{IkasThemePageComponent as s}from"../../models/theme/page/component/index.js";import{IkasThemeComponent as a}from"../../models/theme/component/index.js";import{IkasThemeComponentPropType as d}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/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 p}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 l}from"../../providers/page-data-init.js";import"../../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/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import{apollo as u}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"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import{IkasStorefrontConfig as c}from"../../storefront/index.js";import{IkasStorefront as h}from"../../models/data/storefront/index.js";var f,g=function(){function g(g){var P=this;this.theme=null,this.page=null,this.selectedPageComponentId=null,this.hoveredPageComponentId=null,this.componentRefs={},this.isLoading=!1,this.locale="en",this.pageParams={},this.queryParams={},this.apiKey=null,this.pageDataProvider=null,this.startMessaging=function(){window.addEventListener("message",P.onMessage,!1),P.sendMessage(f.FRAME_DID_LOAD,"0.2.0")},this.onMessage=function(o){return e(P,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:switch(e=o.data.type,n=o.data.data,e){case f.UPDATE_FRAME_DATA:return[3,1];case f.UPDATE_PROP_VALUE:return[3,3];case f.UPDATE_PAGE_PARAMS:return[3,5];case f.UPDATE_PAGE_COMPONENT_ORDER:return[3,7];case f.ADD_COMPONENT:return[3,9];case f.DELETE_COMPONENT:return[3,10];case f.UPDATE_COMPONENT:return[3,11];case f.ADD_PAGE_COMPONENT:return[3,12];case f.DELETE_PAGE_COMPONENT:return[3,14];case f.SET_SELECTED_COMPONENT:return[3,15];case f.SET_HOVERED_COMPONENT:return[3,16];case f.SCROLL_TO_COMPONENT:return[3,17];case f.UPDATE_THEME_SETTINGS:return[3,18]}return[3,19];case 1:return[4,this.handleUpdateFrameData(n)];case 2:case 4:case 6:case 8:case 13:return t.sent(),[3,20];case 3:return[4,this.handleUpdatePropValue(n)];case 5:return[4,this.handleUpdatePageParams(n)];case 7:return[4,this.handleUpdatePageComponentOrder(n)];case 9:return this.handleAddNewComponent(n),[3,20];case 10:return this.handleDeleteComponent(n),[3,20];case 11:return this.handleUpdateComponent(n),[3,20];case 12:return[4,this.handleAddNewPageComponent(n)];case 14:return this.handleDeletePageComponent(n),[3,20];case 15:return this.handleSetSelectedComponent(n),[3,20];case 16:return this.handleSetHoveredComponent(n),[3,20];case 17:return this.handleScrollToComponent(n),[3,20];case 18:return this.updateThemeSettings(n),[3,20];case 19:return[3,20];case 20:return[2]}}))}))},this.onClick=function(e){P.sendMessage(f.COMPONENT_CLICK,{componentId:e})},this.onMouseOver=function(e){P.sendMessage(f.COMPONENT_MOUSE_OVER,{componentId:e})},this.onMouseLeave=function(e){P.sendMessage(f.COMPONENT_MOUSE_LEAVE,{componentId:e})},this.sendMessage=function(e,t){window.parent.postMessage({type:e,data:t},"*")},this.getPagePropValues=function(){return e(P,void 0,void 0,(function(){var e,o,i,s,a,d=this;return t(this,(function(t){switch(t.label){case 0:return e=new m(this.theme,this.pageParams,null===(o=this.page)||void 0===o?void 0:o.type),((null===(i=this.pageParams)||void 0===i?void 0:i.blogId)||(null===(s=this.pageParams)||void 0===s?void 0:s.blogCategoryId))&&(e.possiblePageTypes=[r.BLOG,r.BLOG_CATEGORY]),(null===(a=this.pageParams)||void 0===a?void 0:a.raffleId)&&(e.possiblePageTypes=[r.RAFFLE_DETAIL]),this.isLoading=!0,[4,e.getPageData()];case 1:return t.sent(),e.pageSpecificData&&l.setPageSpecificData(JSON.stringify(e.pageSpecificData),this.page.type,!0),e.pageComponentPropValues=l.initPropValues(JSON.stringify(e.pageComponentPropValues),this.router,JSON.stringify(this.theme.settings),!1),n((function(){d.pageDataProvider=e,d.isLoading=!1})),[2]}}))}))},this.setComponentRef=function(e,t){P.componentRefs[t.id]=e},this.isScrolledIntoView=function(e){var t=e.getBoundingClientRect(),o=t.top,n=t.bottom;return o<window.innerHeight&&n>=0&&n<window.innerHeight&&o>0},this.handleUpdateFrameData=function(o){return e(P,void 0,void 0,(function(){var e,n,r,s=this;return t(this,(function(t){switch(t.label){case 0:return this.theme=new i(o.theme),this.page=this.theme.pages.find((function(e){return e.id===o.selectedPage.id})),this.pageParams=o.pageParams,this.queryParams=o.queryParams,this.apiKey=o.apiKey,this.locale=o.locale||"en",this.translations=o.translations||void 0,(e=o.storefront)&&(n=new h(e),r=n.routings.find((function(e){return e.locale===s.locale})),c.storefrontId=n.id,c.storefrontRoutingId=null==r?void 0:r.id,n.mainStorefrontThemeId&&(c.storefrontThemeId=n.mainStorefrontThemeId),n.salesChannelId&&(c.salesChannelId=n.salesChannelId),(null==r?void 0:r.priceListId)&&(c.priceListId=r.priceListId),c.routings=n.routings,c.stockPreference=this.theme.settings.stockPreference),this.translations&&(c.translations=this.translations),c.isEditor=!0,u.createApolloClient(this.apiKey||void 0),window.editorApiKey=o.apiKey,[4,this.getPagePropValues()];case 1:return t.sent(),[2]}}))}))},this.handleUpdatePropValue=function(o){return e(P,void 0,void 0,(function(){var e,i,r,s,a,p,m,u,c=this;return t(this,(function(t){switch(t.label){case 0:return e=o.propName,i=o.value,(r=null===(m=null===(p=this.selectedComponent)||void 0===p?void 0:p.props)||void 0===m?void 0:m.find((function(t){return t.name===e})))&&this.selectedPageComponent?(s=null===(u=this.pageDataProvider)||void 0===u?void 0:u.pageComponentPropValues.find((function(e){return e.pageComponent.id===c.selectedPageComponentId})),this.selectedPageComponent.propValues[e]=i,this.pageDataProvider?[4,this.pageDataProvider.getPageComponentPropValue(this.selectedPageComponent,r)]:[2]):[2];case 1:return a=t.sent(),n((function(){s&&(s.propValues[e]=a,r.type===d.CUSTOM?l.initCustomDataPropValue(r,a,s,c.router,c.theme.settings,!0):r.type===d.COMPONENT?l.initComponentPropValue(r,a,s,c.router,c.theme.settings,!0):r.type===d.COMPONENT_LIST&&l.initComponentListPropValue(r,a,s,c.router,c.theme.settings,!0))})),[2]}}))}))},this.handleUpdatePageParams=function(o){return e(P,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return this.pageParams=o.pageParams,this.queryParams=o.queryParams,[4,this.getPagePropValues()];case 1:return e.sent(),[2]}}))}))},this.handleUpdatePageComponentOrder=function(o){return e(P,void 0,void 0,(function(){return t(this,(function(e){return this.specification?this.specification.components=o.pageComponents.map((function(e){return new s(e)})):this.page.components=o.pageComponents.map((function(e){return new s(e)})),[2]}))}))},this.handleAddNewComponent=function(e){var t,o=new a(e.component);null===(t=P.theme)||void 0===t||t.components.push(o)},this.handleDeleteComponent=function(e){var t,o;(null===(t=P.theme)||void 0===t?void 0:t.components)&&(P.theme.components=P.theme.components.filter((function(t){return t.id!==e.componentId})));var n=P.pageComponents.filter((function(t){return t.componentId!==e.componentId}))||[];P.specification&&P.specification.components&&(P.specification.components=n),!P.specification&&(null===(o=P.page)||void 0===o?void 0:o.components)&&(P.page.components=n)},this.handleUpdateComponent=function(e){var t=P.theme.components.findIndex((function(t){return t.id===e.component.id}));-1!==t&&(P.theme.components[t]=new a(e.component))},this.handleAddNewPageComponent=function(o){return e(P,void 0,void 0,(function(){var e,i,r=this;return t(this,(function(t){switch(t.label){case 0:return e=new s(o.pageComponent),this.pageComponents.some((function(t){return t.id===e.id}))?[2]:[4,this.pageDataProvider.getPageComponentPropValues(e)];case 1:return i=t.sent(),n((function(){i.component.props.filter((function(e){return e.type===d.CUSTOM})).forEach((function(e){l.initCustomDataPropValue(e,i.propValues[e.name],i,r.router,r.theme.settings,!0)})),r.pageDataProvider.pageComponentPropValues.push(i),r.pageComponents.push(e)})),[2]}}))}))},this.handleDeletePageComponent=function(e){P.specification?P.specification.components=P.pageComponents.filter((function(t){return t.id!==e.pageComponentId})):P.page.components=P.pageComponents.filter((function(t){return t.id!==e.pageComponentId}))},this.handleSetSelectedComponent=function(e){P.selectedPageComponentId=e.componentId},this.handleSetHoveredComponent=function(e){P.hoveredPageComponentId=e.componentId},this.handleScrollToComponent=function(e){var t=e.componentId,o=P.componentRefs[t];o&&(P.isScrolledIntoView(o)||window.scrollTo({top:o.offsetTop,behavior:"smooth"}))},this.updateThemeSettings=function(e){var t=e.settings;P.theme&&(P.theme.settings=new p(t))},this.router=g,o(this),this.startMessaging()}return Object.defineProperty(g.prototype,"specification",{get:function(){var e,t,o,n,i,s,a,d=this,p=this.page;return(null==p?void 0:p.type)===r.PRODUCT&&(a=null===(e=p.specifications)||void 0===e?void 0:e.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.productId)}))),(null==p?void 0:p.type)===r.CATEGORY&&(a=null===(t=p.specifications)||void 0===t?void 0:t.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.categoryId)}))),(null==p?void 0:p.type)===r.BRAND&&(a=null===(o=p.specifications)||void 0===o?void 0:o.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.brandId)}))),(null==p?void 0:p.type)===r.BLOG&&(a=null===(n=p.specifications)||void 0===n?void 0:n.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.blogId)}))),(null==p?void 0:p.type)===r.BLOG_CATEGORY&&(a=null===(i=p.specifications)||void 0===i?void 0:i.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.blogCategoryId)}))),(null==p?void 0:p.type)===r.RAFFLE_DETAIL&&(a=null===(s=p.specifications)||void 0===s?void 0:s.find((function(e){var t;return e.id===(null===(t=d.pageParams)||void 0===t?void 0:t.raffleId)}))),a},enumerable:!1,configurable:!0}),Object.defineProperty(g.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(g.prototype,"selectedPageComponent",{get:function(){var e=this;return this.pageComponents.find((function(t){return t.id===e.selectedPageComponentId}))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectedComponent",{get:function(){var e,t=this;return null===(e=this.theme)||void 0===e?void 0:e.components.find((function(e){var o;return e.id===(null===(o=t.selectedPageComponent)||void 0===o?void 0:o.componentId)}))},enumerable:!1,configurable:!0}),g}();!function(e){e.FRAME_DID_LOAD="FRAME_DID_LOAD",e.UPDATE_FRAME_DATA="UPDATE_FRAME_DATA",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"}(f||(f={}));export{f as BridgeMessageType,g as default};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import{__assign as t,__rest as e,__extends as r}from"../../../../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 O(t){return!!(t instanceof m&&t.group.caching)}export{m as EntityStore,O as supportsResultCaching};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import{__extends as t,__assign as i}from"../../../../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 f,defaultDataIdFromObject as l}from"./policies.js";import{hasOwn as y}from"./helpers.js";var b={dataIdFromObject:l,addTypename:!0,resultCaching:!0,typePolicies:{}},v=function(r){function l(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 f({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(l,r),l.prototype.restore=function(t){return t&&this.data.replace(t),this},l.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},l.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}},l.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()}},l.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()}},l.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})},l.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)}},l.prototype.gc=function(){return this.optimisticData.gc()},l.prototype.retain=function(t,i){return(i?this.optimisticData:this.data).retain(t)},l.prototype.release=function(t,i){return(i?this.optimisticData:this.data).release(t)},l.prototype.identify=function(t){return s(t)?t.__ref:this.policies.identify(t)[0]},l.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()}},l.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},l.prototype.removeOptimistic=function(t){var i=this.optimisticData.removeLayer(t);i!==this.optimisticData&&(this.optimisticData=i,this.broadcastWatches())},l.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)},l.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},l.prototype.broadcastWatches=function(t){var i=this;this.txCount||this.watches.forEach((function(a){return i.maybeBroadcastWatch(a,t)}))},l.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)},l}(r);export{v as InMemoryCache};
@@ -0,0 +1 @@
1
+ import{__assign as e,__rest as t}from"../../../../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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"../../../../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 y}from"../../utilities/graphql/storeUtils.js";import{addTypenameToDocument as d}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,y=void 0===m||m,d=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:d,variables:p,varString:JSON.stringify(p),fragmentMap:s(u(i)),path:[],clientOnly:!1}}),h=v.missing&&v.missing.length>0;if(h&&!y)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 _(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=y(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?d.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=_(t.executeSubSelectedArray({field:e,array:f,context:a})):e.selectionSet?null!=f&&(f=_(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:f,context:a}))):"production"!==process.env.NODE_ENV&&(x(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&&x(o.store,n,e),i(o.path.pop()===t),e))})),"production"!==process.env.NODE_ENV&&Object.freeze(s),{result:s,missing:t}},g}();function x(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};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"../../../../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};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"../../../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};