@dropins/storefront-auth 0.0.1-alpha2 → 0.0.1-alpha21

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 (229) hide show
  1. package/api/confirmEmail/confirmEmail.d.ts +4 -0
  2. package/api/confirmEmail/graphql/confirmEmail.graphql.d.ts +2 -0
  3. package/api/confirmEmail/index.d.ts +2 -0
  4. package/api/createCustomer/createCustomer.d.ts +4 -0
  5. package/api/createCustomer/graphql/createCustomer.graphql.d.ts +2 -0
  6. package/api/createCustomer/graphql/createCustomerV2.graphql.d.ts +2 -0
  7. package/api/createCustomer/index.d.ts +2 -0
  8. package/api/createCustomerAddress/createCustomerAddress.d.ts +4 -0
  9. package/api/createCustomerAddress/graphql/createCustomerAddress.graphql.d.ts +2 -0
  10. package/api/createCustomerAddress/index.d.ts +2 -0
  11. package/api/fetch-graphql/fetch-graphql.d.ts +8 -0
  12. package/api/fetch-graphql/index.d.ts +2 -0
  13. package/api/getAttributesForm/getAttributesForm.d.ts +4 -0
  14. package/api/getAttributesForm/graphql/getAttributesForm.graphql.d.ts +2 -0
  15. package/api/getAttributesForm/index.d.ts +2 -0
  16. package/api/getCustomerData/getCustomerData.d.ts +4 -0
  17. package/api/getCustomerData/graphql/getCustomerData.graphql.d.ts +2 -0
  18. package/api/getCustomerData/index.d.ts +2 -0
  19. package/api/getCustomerToken/getCustomerToken.d.ts +15 -0
  20. package/api/getCustomerToken/graphql/getCustomerToken.graphql.d.ts +2 -0
  21. package/api/getCustomerToken/index.d.ts +2 -0
  22. package/api/getStoreConfig/getStoreConfig.d.ts +4 -0
  23. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +2 -0
  24. package/api/getStoreConfig/index.d.ts +2 -0
  25. package/api/index.d.ts +14 -0
  26. package/api/initialize/index.d.ts +2 -0
  27. package/api/initialize/initialize.d.ts +14 -0
  28. package/api/requestPasswordResetEmail/graphql/requestPasswordResetEmail.graphql.d.ts +2 -0
  29. package/api/requestPasswordResetEmail/index.d.ts +2 -0
  30. package/api/requestPasswordResetEmail/requestPasswordResetEmail.d.ts +4 -0
  31. package/api/resendConfirmationEmail/graphql/resendConfirmationEmail.graphql.d.ts +2 -0
  32. package/api/resendConfirmationEmail/index.d.ts +2 -0
  33. package/api/resendConfirmationEmail/resendConfirmationEmail.d.ts +4 -0
  34. package/api/resetPassword/graphql/resetPassword.graphql.d.ts +2 -0
  35. package/api/resetPassword/index.d.ts +2 -0
  36. package/api/resetPassword/resetPassword.d.ts +4 -0
  37. package/api/revokeCustomerToken/graphql/revokeCustomerToken.graphql.d.ts +2 -0
  38. package/api/revokeCustomerToken/index.d.ts +2 -0
  39. package/api/revokeCustomerToken/revokeCustomerToken.d.ts +4 -0
  40. package/api.d.ts +1 -0
  41. package/api.js +1 -1
  42. package/chunks/EmailConfirmationForm.js +1 -0
  43. package/chunks/ResetPasswordForm.js +1 -0
  44. package/chunks/SignInForm.js +1 -0
  45. package/chunks/SignUpForm.js +1 -0
  46. package/chunks/SkeletonLoader.js +1 -0
  47. package/chunks/confirmEmail.js +12 -0
  48. package/chunks/createCustomerAddress.js +61 -0
  49. package/chunks/getCustomerToken.js +15 -0
  50. package/chunks/getStoreConfig.js +15 -0
  51. package/chunks/index.js +1 -0
  52. package/chunks/index2.js +1 -0
  53. package/chunks/index3.js +1 -0
  54. package/chunks/initialize.js +1 -0
  55. package/chunks/network-error.js +1 -0
  56. package/chunks/requestPasswordResetEmail.js +5 -0
  57. package/chunks/resendConfirmationEmail.js +4 -0
  58. package/chunks/resetPassword.js +5 -0
  59. package/chunks/revokeCustomerToken.js +8 -0
  60. package/chunks/setReCaptchaToken.js +1 -0
  61. package/chunks/simplifyTransformAttributesForm.js +1 -0
  62. package/chunks/transform-attributes-form.js +1 -0
  63. package/chunks/useInLineAlert.js +1 -0
  64. package/chunks/usePasswordValidationMessage.js +1 -0
  65. package/components/EmailConfirmationForm/EmailConfirmationForm.d.ts +5 -0
  66. package/components/EmailConfirmationForm/index.d.ts +3 -0
  67. package/components/ResetPasswordForm/ResetPasswordForm.d.ts +6 -0
  68. package/components/ResetPasswordForm/index.d.ts +3 -0
  69. package/components/SignInForm/SignInForm.d.ts +5 -0
  70. package/components/SignInForm/index.d.ts +3 -0
  71. package/components/SignUpForm/SignUpForm.d.ts +5 -0
  72. package/components/SignUpForm/index.d.ts +3 -0
  73. package/components/SkeletonLoader/SkeletonLoader.d.ts +5 -0
  74. package/components/SkeletonLoader/Skeletons/ResetPasswordSkeleton.d.ts +2 -0
  75. package/components/SkeletonLoader/Skeletons/SignInSkeleton.d.ts +2 -0
  76. package/components/SkeletonLoader/Skeletons/SignUpSkeleton.d.ts +2 -0
  77. package/components/SkeletonLoader/Skeletons/index.d.ts +4 -0
  78. package/components/SkeletonLoader/index.d.ts +3 -0
  79. package/components/SuccessNotificationForm/SuccessNotificationForm.d.ts +6 -0
  80. package/components/SuccessNotificationForm/index.d.ts +3 -0
  81. package/components/UI/Button/Button.d.ts +16 -0
  82. package/components/UI/Button/index.d.ts +3 -0
  83. package/components/UI/Form/Form.d.ts +4 -0
  84. package/components/UI/Form/index.d.ts +3 -0
  85. package/components/UI/FormInputs/FormInputs.d.ts +5 -0
  86. package/components/UI/FormInputs/index.d.ts +3 -0
  87. package/components/UI/index.d.ts +4 -0
  88. package/components/UpdatePasswordForm/UpdatePasswordForm.d.ts +5 -0
  89. package/components/UpdatePasswordForm/index.d.ts +3 -0
  90. package/components/index.d.ts +10 -0
  91. package/configs/cookieConfigs.d.ts +7 -0
  92. package/configs/defaultCreateUserConfigs.d.ts +9 -0
  93. package/configs/patternConfigs.d.ts +3 -0
  94. package/containers/AuthCombine/AuthCombine.d.ts +5 -0
  95. package/containers/AuthCombine/index.d.ts +3 -0
  96. package/containers/AuthCombine.d.ts +3 -0
  97. package/containers/AuthCombine.js +1 -1
  98. package/containers/ResetPassword/ResetPassword.d.ts +5 -0
  99. package/containers/ResetPassword/index.d.ts +3 -0
  100. package/containers/ResetPassword.d.ts +3 -0
  101. package/containers/ResetPassword.js +1 -1
  102. package/containers/SignIn/SignIn.d.ts +5 -0
  103. package/containers/SignIn/index.d.ts +3 -0
  104. package/containers/SignIn.d.ts +3 -0
  105. package/containers/SignIn.js +1 -1
  106. package/containers/SignUp/SignUp.d.ts +5 -0
  107. package/containers/SignUp/index.d.ts +3 -0
  108. package/containers/SignUp.d.ts +3 -0
  109. package/containers/SignUp.js +1 -1
  110. package/containers/SuccessNotification/SuccessNotification.d.ts +5 -0
  111. package/containers/SuccessNotification/index.d.ts +3 -0
  112. package/containers/SuccessNotification.d.ts +3 -0
  113. package/containers/SuccessNotification.js +1 -1
  114. package/containers/UpdatePassword/UpdatePassword.d.ts +5 -0
  115. package/containers/UpdatePassword/index.d.ts +3 -0
  116. package/containers/UpdatePassword.d.ts +3 -0
  117. package/containers/UpdatePassword.js +1 -1
  118. package/containers/index.d.ts +7 -0
  119. package/data/models/attributes-form.d.ts +44 -0
  120. package/data/models/customer-data.d.ts +6 -0
  121. package/data/models/index.d.ts +7 -0
  122. package/data/models/password-reset-email.d.ts +5 -0
  123. package/data/models/reset-password.d.ts +5 -0
  124. package/data/models/revoke-customer-token.d.ts +5 -0
  125. package/data/models/store-config.d.ts +8 -0
  126. package/data/transforms/index.d.ts +7 -0
  127. package/data/transforms/transform-attributes-form.d.ts +6 -0
  128. package/data/transforms/transform-auth.d.ts +37 -0
  129. package/data/transforms/transform-customer-data.d.ts +5 -0
  130. package/data/transforms/transform-password-reset-email.d.ts +5 -0
  131. package/data/transforms/transform-reset-password.d.ts +5 -0
  132. package/data/transforms/transform-revoke-customer-token.d.ts +5 -0
  133. package/data/transforms/transform-store-config.d.ts +5 -0
  134. package/hooks/api/useGetAttributesForm.d.ts +14 -0
  135. package/hooks/api/useGetStoreConfigs.d.ts +8 -0
  136. package/hooks/components/useEmailConfirmationForm.d.ts +7 -0
  137. package/hooks/components/usePasswordValidationMessage.d.ts +16 -0
  138. package/hooks/components/useResetPasswordForm.d.ts +8 -0
  139. package/hooks/components/useSignInForm.d.ts +23 -0
  140. package/hooks/components/useSignUpForm.d.ts +20 -0
  141. package/hooks/components/useUpdatePasswordForm.d.ts +16 -0
  142. package/hooks/ui/useForm.d.ts +12 -0
  143. package/hooks/useEmailConfirmation.d.ts +11 -0
  144. package/hooks/useInLineAlert.d.ts +7 -0
  145. package/i18n/en_US.json.d.ts +76 -0
  146. package/lib/acdl.d.ts +9 -0
  147. package/lib/checkIsFunction.d.ts +2 -0
  148. package/lib/clearUrlAndReplace.d.ts +2 -0
  149. package/lib/convertToInputDateFormat.d.ts +2 -0
  150. package/lib/cookieUtils.d.ts +3 -0
  151. package/lib/fetch-error.d.ts +5 -0
  152. package/lib/generateRandomDigits.d.ts +2 -0
  153. package/lib/getFormValues.d.ts +2 -0
  154. package/lib/getUrlParam.d.ts +2 -0
  155. package/lib/mergeFormObjects.d.ts +3 -0
  156. package/lib/network-error.d.ts +6 -0
  157. package/lib/setReCaptchaToken.d.ts +2 -0
  158. package/lib/simplifyTransformAttributesForm.d.ts +2 -0
  159. package/lib/validationUniqueSymbolsPassword.d.ts +2 -0
  160. package/package.json +1 -1
  161. package/render/Provider.d.ts +8 -0
  162. package/render/index.d.ts +2 -0
  163. package/render/render.d.ts +4 -0
  164. package/render.d.ts +1 -0
  165. package/render.js +8 -1
  166. package/types/api/confirmEmail.types.d.ts +17 -0
  167. package/types/api/createCustomer.types.d.ts +24 -0
  168. package/types/api/createCustomerAddress.types.d.ts +47 -0
  169. package/types/api/getAttributesForm.types.d.ts +31 -0
  170. package/types/api/getCustomerData.types.d.ts +13 -0
  171. package/types/api/getCustomerToken.types.d.ts +11 -0
  172. package/types/api/passwordResetEmail.types.d.ts +9 -0
  173. package/types/api/resendConfirmationEmail.types.d.ts +9 -0
  174. package/types/api/resetPassword.types.d.ts +9 -0
  175. package/types/api/revokeCustomerToken.types.d.ts +9 -0
  176. package/types/api/storeConfig.types.d.ts +16 -0
  177. package/types/authCombine.types.d.ts +12 -0
  178. package/types/emailConfirmationForm.types.d.ts +14 -0
  179. package/types/form.types.d.ts +31 -0
  180. package/types/index.d.ts +22 -0
  181. package/types/notification.types.d.ts +19 -0
  182. package/types/resetPassword.types.d.ts +15 -0
  183. package/types/signIn.types.d.ts +44 -0
  184. package/types/signUp.types.d.ts +51 -0
  185. package/types/skeletonLoader.types.d.ts +6 -0
  186. package/types/successNotification.types.d.ts +16 -0
  187. package/types/updatePassword.types.d.ts +34 -0
  188. package/101.js +0 -1
  189. package/15.js +0 -1
  190. package/243.js +0 -1
  191. package/260.js +0 -1
  192. package/280.js +0 -1
  193. package/304.js +0 -1
  194. package/378.js +0 -1
  195. package/38.js +0 -1
  196. package/407.js +0 -1
  197. package/408.js +0 -1
  198. package/412.js +0 -1
  199. package/436.js +0 -1
  200. package/442.js +0 -1
  201. package/474.js +0 -1
  202. package/498.js +0 -1
  203. package/508.js +0 -1
  204. package/55.js +0 -1
  205. package/591.js +0 -1
  206. package/592.js +0 -1
  207. package/595.js +0 -1
  208. package/604.js +0 -1
  209. package/606.js +0 -1
  210. package/634.js +0 -1
  211. package/636.js +0 -1
  212. package/708.js +0 -1
  213. package/728.js +0 -1
  214. package/739.js +0 -1
  215. package/761.js +0 -1
  216. package/77.js +0 -1
  217. package/835.js +0 -1
  218. package/868.js +0 -1
  219. package/884.js +0 -1
  220. package/902.js +0 -1
  221. package/906.js +0 -1
  222. package/912.js +0 -1
  223. package/93.js +0 -1
  224. package/940.js +0 -1
  225. package/952.js +0 -1
  226. package/960.js +0 -1
  227. package/964.js +0 -1
  228. package/993.js +0 -1
  229. package/runtime.js +0 -1
package/902.js DELETED
@@ -1 +0,0 @@
1
- export const id=902;export const ids=[902,260];export const modules={1260:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});var r,i,o=e(9094);function a(){return a=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},a.apply(this,arguments)}const s=function(n){return o.n("svg",a({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r||(r=o.n("g",{clipPath:"url(#Locker_svg__a)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},o.n("path",{vectorEffect:"non-scaling-stroke",d:"M7.33 11h9.33c.74 0 1.33.81 1.33 1.82v6.36c0 1-.6 1.82-1.33 1.82H7.33C6.59 21 6 20.19 6 19.18v-6.36c0-1 .6-1.82 1.33-1.82ZM8.5 10.86V6.5C8.5 4.57 10.07 3 12 3s3.5 1.57 3.5 3.5v4.36"}))),i||(i=o.n("defs",null,o.n("clipPath",{id:"Locker_svg__a"},o.n("path",{fill:"#fff",transform:"translate(5.25 2.25)",d:"M0 0h13.5v19.5H0z"})))))}},6866:(n,t,e)=>{e.d(t,{H:()=>d});class r{constructor(n){this.config=n}getConfig(){return this.config}setConfig(n){this.config=n}}var i=new class{get map(){return this._map}set map(n){this._map=n}getMethods(){return{setMap:n=>{this.map=n},getMap:()=>this.map}}},{setMap:o,getMap:a}=i.getMethods(),s=["imageParamsKeyMap"];function l(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function u(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){c(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function m(n,t){if(null==n)return{};var e,r,i=function(n,t){if(null==n)return{};var e={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(t.indexOf(r)>=0)continue;e[r]=n[r]}return e}(n,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(n,e)&&(i[e]=n[e])}return i}function c(n,t,e){var r;return(t="symbol"==typeof(r=function(n,t){if("object"!=typeof n||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var r=e.call(n,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(t,"string"))?r:r+"")in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}class d{constructor(n){var{init:t,listeners:e}=n;c(this,"_listeners",[]),c(this,"config",new r({})),this.listeners=n=>(this._listeners.forEach((n=>n.off())),this._listeners=e(n)),this.init=n=>{var e=n,{imageParamsKeyMap:r}=e,i=m(e,s);return this.config.setConfig(u(u({},this.config.getConfig()),i)),o(r),t(n)}}}class f{static register(n,t){var e,r;f._mounted&&(null===(e=n.listeners)||void 0===e||e.call(n,t),null===(r=n.init)||void 0===r||r.call(n,t));f._initializers.push([n,t])}static mount(){var n,t;f._mounted=!0,null===(n=f._initializers)||void 0===n||n.forEach((n=>{var t,[e,r]=n;null===(t=e.listeners)||void 0===t||t.call(e,r)})),null===(t=f._initializers)||void 0===t||t.forEach((n=>{var t,[e,r]=n;null===(t=e.init)||void 0===t||t.call(e,u({imageParamsKeyMap:f._imageParamsKeyMap},r))}))}static setImageParamKeys(n){f._imageParamsKeyMap=n}}c(f,"_initializers",[]),c(f,"_mounted",!1),c(f,"_imageParamsKeyMap",void 0)},4141:(n,t,e)=>{e.d(t,{j:()=>a});var r=e(294),i=e(5883);function o(n,t,e,r,i,o,a){try{var s=n[o](a),l=s.value}catch(n){return void e(n)}s.done?t(l):Promise.resolve(l).then(r,i)}var a=function(){var n,t=(n=function*(n){var{customerEmail:t,customerConfirmationKey:e}=n;return yield(0,r.AZ)("\n mutation CONFIRM_EMAIL($email: String!, $confirmation_key: String!) {\n confirmEmail(input: {\n email: $email,\n confirmation_key: $confirmation_key\n }) {\n customer {\n email\n }\n }\n }\n",{method:"POST",variables:{email:t,confirmation_key:e}}).catch(i.n)},function(){var t=this,e=arguments;return new Promise((function(r,i){var a=n.apply(t,e);function s(n){o(a,r,i,s,l,"next",n)}function l(n){o(a,r,i,s,l,"throw",n)}s(void 0)}))});return function(n){return t.apply(this,arguments)}}()},6498:(n,t,e)=>{e.d(t,{b:()=>$});var r=e(6613),i=e(5292),o=e.n(i),a=e(9893),s=e.n(a),l=e(9383),u=e.n(l),m=e(8296),c=e.n(m),d=e(9088),f=e.n(d),g=e(6178),p={attributes:{"data-dropin":"storefront-auth","data-sdk":"0.21.2"},styleTagTransform:function(n,t){window._loadedStyles=window._loadedStyles??{};const e=n?.match(/^\.dropin-(\w+)/)?.[1],r=t.getAttribute("data-sdk"),i=e?`sdk/${e}`:t.getAttribute("data-dropin");t.setAttribute("data-dropin",i),t.removeAttribute("data-sdk");const o=window._loadedStyles[i];if(o){const i=function(n,t){const[e,r]=n.split("-"),[i,o]=t.split("-"),a=[...e.split("."),r],s=[...i.split("."),o],l=parseInt(a[0],10),u=parseInt(s[0],10);if(l!==u)return l>u?n:t;const m=parseInt(a[1],10),c=parseInt(s[1],10);if(m!==c)return m>c?n:t;const d=parseInt(a[2],10),f=parseInt(s[2],10);if(d!==f)return d>f?n:t;if(a[3]&&s[3]){const e=/(alpha|beta)(.*)/,r=a[3].match(e),i=s[3].match(e),o=r[1],l=i[1],u=parseInt(r[2],10),m=parseInt(i[2],10);if(o===l)return u>m?n:t;if("alpha"===o&&"beta"===l)return t;if("beta"===o&&"alpha"===l)return n}return a[3]?t:n}(r,o.sdk);if(!e||e&&i===o.sdk){const t=o.style.textContent;o.style.textContent=`${t}\n/* --- MERGED --- */\n${n}`}else e&&i!==o.sdk&&(o.style.textContent=`/* --- UPGRADED --- */\n${n}`);return void t.remove()}t.textContent=n,window._loadedStyles[i]={sdk:r,core:e,style:t};const a=document.querySelector("head"),{lastDropinStyleInjected:s,lastSDKStyleInjected:l}=window._loadedStyles;e?(l?a.insertBefore(t,l.nextSibling):a.insertBefore(t,a.firstChild),window._loadedStyles.lastSDKStyleInjected=t):(s?a.insertBefore(t,s.nextSibling):l?a.insertBefore(t,l.nextSibling):a.insertBefore(t,a.firstChild),window._loadedStyles.lastDropinStyleInjected=t)}};p.setAttributes=c(),p.insert=u().bind(null,"head"),p.domAPI=s(),p.insertStyleElement=f();o()(g.A,p);g.A&&g.A.locals&&g.A.locals;var h=e(446),b=e(3078),_=e(7042),v=e(2739),y=e(6953),w=e(8680),I=e(878),F=e(8294);function S(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function C(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?S(Object(e),!0).forEach((function(t){x(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):S(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function x(n,t,e){var r;return(t="symbol"==typeof(r=function(n,t){if("object"!=typeof n||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var r=e.call(n,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(t,"string"))?r:r+"")in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function P(n,t,e,r,i,o,a){try{var s=n[o](a),l=s.value}catch(n){return void e(n)}s.done?t(l):Promise.resolve(l).then(r,i)}function E(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(n){P(o,r,i,a,s,"next",n)}function s(n){P(o,r,i,a,s,"throw",n)}a(void 0)}))}}var O=n=>{var{emailConfirmationStatusMessage:t,translations:e,initialEmailValue:r,routeSignUp:i,routeForgotPassword:o,routeRedirectOnSignIn:a,onErrorCallback:s,setActiveComponent:l,onSuccessCallback:u,onSignUpLinkClick:m,handleSetUpdateNotification:c}=n,[d,f]=(0,b.J0)(""),[g,p]=(0,b.J0)(!1),[S,x]=(0,b.J0)(""),[P,O]=(0,b.J0)(!1),[k,j]=(0,b.J0)({userName:"",status:!1}),[N,M]=(0,b.J0)(!1),A=(0,b.hb)(function(){var n=E((function*(n){yield(0,_.v)(n),p(!0),null==c||c({text:"",status:""})}));return function(t){return n.apply(this,arguments)}}(),[c]);(0,b.vJ)((()=>{null!=t&&t.text&&(null==c||c(t))}),[t,c]);var L=(0,b.hb)((n=>e?(0,F.FD)("span",{className:"auth-signInForm__resend-email-notification",children:[e.resendEmailInformationText," ",(0,F.Y)("button",{onClick:()=>A(n),children:e.resendEmailButtonText})," ",e.resendEmailAdditionalText]}):""),[A,e]),T=(0,b.hb)(function(){var n=E((function*(n){M(!0);var t=(0,h.r)(n.target);if(t.password||(O(!0),M(!1)),null!=t&&t.email&&null!=t&&t.password){var e,{email:r,password:i}=t,o=yield(0,v.o)({email:r,password:i,handleSetUpdateNotification:c,onErrorCallback:s});if(null!=o&&null!==(e=o.errorMessage)&&void 0!==e&&e.length){f(r);var l=o.errorMessage.includes("This account isn't confirmed. Verify and try again.")?L(r):o.errorMessage;c({text:l,status:"error"})}null!=o&&o.userName&&((0,I.l)(a)?window.location.href=a():(null==u||u({userName:null==o?void 0:o.userName,status:!0}),j({userName:null==o?void 0:o.userName,status:!0}))),n.target.reset(),O(!1)}M(!1),x("")}));return function(t){return n.apply(this,arguments)}}(),[L,c,s,a,u]),U=(0,b.hb)((()=>{(0,I.l)(l)?l("resetPasswordForm"):(0,I.l)(o)&&(window.location.href=o())}),[o,l]),D=(0,b.hb)((()=>{(0,I.l)(m)&&m(),(0,I.l)(l)?l("signUpForm"):(0,I.l)(i)&&(window.location.href=i())}),[m,i,l]);return{userEmail:d,defaultEnhancedEmailFields:(0,b.Kr)((()=>{var n=(0,w.d)(y.F);return null!=r&&r.length?n.map((n=>C(C({},n),{},{defaultValue:r}))):n}),[r]),passwordError:P,isSuccessful:k,isLoading:N,signInPasswordValue:S,showEmailConfirmationForm:g,setShowEmailConfirmationForm:p,setSignInPasswordValue:x,submitLogInUser:T,forgotPasswordCallback:U,onSignUpLinkClickCallback:D}},k=e(1581),j=e(4141),N=e(5808);function M(n,t,e,r,i,o,a){try{var s=n[o](a),l=s.value}catch(n){return void e(n)}s.done?t(l):Promise.resolve(l).then(r,i)}var A=n=>{var{enableEmailConfirmation:t}=n,e=(0,N.FV)({accountConfirmMessage:"Auth.EmailConfirmationForm.accountConfirmMessage",accountConfirmationEmailSuccessMessage:"Auth.EmailConfirmationForm.accountConfirmationEmailSuccessMessage"}),[r,i]=(0,b.J0)({text:"",status:""});return(0,b.vJ)((()=>{if(t){var{search:n}=window.location;if(n.includes("email=")&&n.includes("key="))(function(){var t,r=(t=function*(){var t,r,o,a,s,l,u=new URLSearchParams(n),m=yield(0,j.j)({customerEmail:u.get("email")||"",customerConfirmationKey:u.get("key")||""});if(!m)return null;null!=m&&null!==(t=m.errors)&&void 0!==t&&t.length?i({text:(null==m?void 0:m.errors[0].message)||"",status:"error"}):(i({text:null!=m&&null!==(r=m.data)&&void 0!==r&&null!==(r=r.confirmEmail.customer)&&void 0!==r&&r.email?e.accountConfirmationEmailSuccessMessage.replace("{email}",(null==m||null===(o=m.data)||void 0===o||null===(o=o.confirmEmail.customer)||void 0===o?void 0:o.email)||""):e.accountConfirmMessage,status:"success"}),a=new URL(window.location.href),s=a.searchParams.get("email"),l=a.searchParams.get("key"),s&&l&&(a.searchParams.delete("email"),a.searchParams.delete("key"),window.history.replaceState({},document.title,a.toString())))},function(){var n=this,e=arguments;return new Promise((function(r,i){var o=t.apply(n,e);function a(n){M(o,r,i,a,s,"next",n)}function s(n){M(o,r,i,a,s,"throw",n)}a(void 0)}))});return function(){return r.apply(this,arguments)}})()()}}),[t,e]),{emailConfirmationStatusMessage:r}},L=e(1953),T=e(3689),U=e(4992),D=e(5961),V=e(574),K=e(7660),$=n=>{var{formSize:t="default",initialEmailValue:e="",renderSignUpLink:i=!1,enableEmailConfirmation:o=!1,hideCloseBtnOnEmailConfirmation:a=!1,routeRedirectOnEmailConfirmationClose:s,routeRedirectOnSignIn:l,routeForgotPassword:u,routeSignUp:m,onSuccessCallback:c,setActiveComponent:d,onErrorCallback:f,onSignUpLinkClick:g,successNotificationForm:p}=n,h=(0,N.FV)({title:"Auth.SignInForm.title",buttonPrimary:"Auth.SignInForm.buttonPrimary",buttonSecondary:"Auth.SignInForm.buttonSecondary",buttonTertiary:"Auth.SignInForm.buttonTertiary",resendEmailInformationText:"Auth.Notification.resendEmailNotification.informationText",resendEmailButtonText:"Auth.Notification.resendEmailNotification.buttonText",resendEmailAdditionalText:"Auth.Notification.resendEmailNotification.additionalText"}),{emailConfirmationStatusMessage:b}=A({enableEmailConfirmation:o}),{updateNotification:_,handleSetUpdateNotification:v}=(0,K.S)(),{userEmail:y,defaultEnhancedEmailFields:w,passwordError:S,isSuccessful:C,isLoading:x,signInPasswordValue:P,showEmailConfirmationForm:E,setShowEmailConfirmationForm:j,setSignInPasswordValue:M,submitLogInUser:$,forgotPasswordCallback:B,onSignUpLinkClickCallback:J}=O({translations:h,emailConfirmationStatusMessage:b,initialEmailValue:e,routeSignUp:m,routeForgotPassword:u,routeRedirectOnSignIn:l,setActiveComponent:d,onErrorCallback:f,onSuccessCallback:c,onSignUpLinkClick:g,handleSetUpdateNotification:v});return p&&C.status?p(C.userName):E?(0,F.Y)(L.o,{formSize:t,userEmail:y,updateNotification:_,hideCloseBtnOnEmailConfirmation:a,handleSetUpdateNotification:v,onPrimaryButtonClick:()=>{v({text:"",status:""}),(0,I.l)(s)?window.location.href=s():j(!1)}}):(0,F.FD)("div",{className:(0,r.L)(["auth-signInForm",t]),"data-testid":"signInForm",children:[(0,F.Y)(T.h,{text:h.title,bottomLine:!1,className:"auth-signInForm__title"}),(0,F.Y)(k.G,{className:"auth-signInForm__notification",notificationStatus:_.status,notificationText:_.text}),(0,F.FD)(U.l,{name:"signIn_form",className:"auth-signInForm__form",submitCallback:$,isLoading:x,fieldsConfig:w,children:[(0,F.Y)(D.s,{className:"auth-signInForm__form__password",isError:S,initialPassword:P,setPasswordValueCallback:M}),(0,F.FD)("div",{className:"auth-signInForm__form__buttons",children:[(0,F.FD)("div",{className:"auth-signInForm__form__buttons--combine",children:[(0,F.Y)(V.$,{type:"button",variant:"tertiary",style:{padding:0},buttonText:h.buttonTertiary,className:"auth-signInForm__button auth-signInForm__button--forgot",enableLoader:!1,onClick:B,"data-testid":"switchToSignUp"}),i?(0,F.Y)("span",{}):null,i?(0,F.Y)(V.$,{type:"button",variant:"tertiary",style:{padding:0},buttonText:h.buttonSecondary,className:"auth-signInForm__button auth-signInForm__button--signup",enableLoader:!1,onClick:J}):null]}),(0,F.Y)(V.$,{type:"submit",buttonText:h.buttonPrimary,variant:"primary",className:"auth-signInForm__button auth-signInForm__button--submit",enableLoader:x})]})]})]})}},6178:(n,t,e)=>{e.d(t,{A:()=>s});var r=e(8645),i=e.n(r),o=e(278),a=e.n(o)()(i());a.push([n.id,".auth-signInForm{\n border-radius:var(--shape-border-radius-2);\n background-color:var(--color-neutral-50, #fff);\n padding:var(--spacing-small) var(--spacing-small) var(--spacing-medium) var(--spacing-small);\n}\n\n@media (min-width: 768px){\n .auth-signInForm{\n padding:var(--spacing-big) var(--spacing-xxbig) var(--spacing-xxbig) var(--spacing-xxbig);\n }\n}\n\n.auth-signInForm__notification{\n margin-bottom:var(--spacing-medium);\n}\n\n.auth-signInForm.small{\n padding:var(--spacing-small) var(--spacing-small) var(--spacing-medium) var(--spacing-small);\n}\n\n.auth-signInForm.small .auth-signInForm__form__email,\n.auth-signInForm.small .auth-signInForm__form__password,\n.auth-signInForm.small .auth-signInForm__title{\n margin-bottom:var(--spacing-medium);\n}\n\n.auth-signInForm.small .auth-signInForm__form__buttons{\n grid-template-columns:1fr;\n gap:20px 0;\n}\n\n.auth-signInForm__title{\n margin-bottom:var(--spacing-big);\n}\n\n@media (min-width: 768px){\n .auth-signInForm__title{\n margin-bottom:var(--spacing-xxbig);\n }\n}\n\n.auth-signInForm__form{\n display:grid;\n grid-template-columns:1fr;\n}\n\n.auth-signInForm__form__email{\n margin-bottom:var(--spacing-medium);\n}\n\n.auth-signInForm__form__password{\n margin-bottom:var(--spacing-big);\n}\n\n.auth-signInForm__form__buttons{\n display:grid;\n grid-template-columns:auto auto;\n justify-content:space-between;\n}\n\n@media (max-width: 768px){\n .auth-signInForm__form__buttons{\n gap:20px 0;\n grid-template-columns:1fr;\n }\n}\n\n.auth-signInForm.small\n .auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine{\n justify-content:center;\n flex-wrap:wrap;\n}\n\n.auth-signInForm.small\n .auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine\n .auth-signInForm__button--signup{\n flex-basis:100%;\n margin-top:20px;\n}\n\n.auth-signInForm.small\n .auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine\n > span{\n display:none;\n}\n\n.auth-signInForm__form__buttons .auth-signInForm__form__buttons--combine{\n display:flex;\n}\n\n.auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine\n > span{\n border:var(--shape-border-width-1) solid var(--color-brand-500);\n margin:13px 10px;\n font:var(--type-button-2-font);\n}\n\n.auth-signInForm__resend-email-notification button{\n font:var(--type-button-3-font);\n color:var(--textColor);\n display:inline;\n background-color:transparent;\n border:none;\n cursor:pointer;\n padding:0;\n margin:0;\n}\n\n.auth-signInForm__resend-email-notification button:hover{\n color:var(--color-brand-700);\n text-decoration:solid underline var(--color-brand-700);\n text-underline-offset:6px;\n color:var(--color-informational-500);\n}\n\n@media (max-width: 768px){\n .auth-signInForm__form__buttons .auth-signInForm__form__buttons--combine{\n justify-content:center;\n flex-wrap:wrap;\n }\n\n .auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine\n .auth-signInForm__button--signup{\n flex-basis:100%;\n margin-top:20px;\n }\n\n .auth-signInForm__form__buttons\n .auth-signInForm__form__buttons--combine\n > span{\n display:none;\n }\n}\n",""]);const s=a}};
package/906.js DELETED
@@ -1 +0,0 @@
1
- export const id=906;export const ids=[906];export const modules={6906:(t,n,r)=>{r.r(n),r.d(n,{default:()=>c});var o,e,s=r(9094);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},a.apply(this,arguments)}const c=function(t){return s.n("svg",a({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=s.n("g",{clipPath:"url(#Cart_svg__a)",stroke:"currentColor",strokeLinejoin:"round"},s.n("path",{vectorEffect:"non-scaling-stroke",d:"M18.36 18.16H6.56L4.88 3H2.35m17.32 16.59a1.41 1.41 0 1 1-2.82 0 1.41 1.41 0 0 1 2.82 0Zm-12.24 0a1.41 1.41 0 1 1-2.82 0 1.41 1.41 0 0 1 2.82 0Z"}),s.n("path",{vectorEffect:"non-scaling-stroke",d:"m5.25 6.37 15.64 1.69-.75 6.74H6.19"}))),e||(e=s.n("defs",null,s.n("clipPath",{id:"Cart_svg__a"},s.n("path",{vectorEffect:"non-scaling-stroke",fill:"#fff",transform:"translate(2.35 2.25)",d:"M0 0h19.29v19.5H0z"})))))}}};
package/912.js DELETED
@@ -1 +0,0 @@
1
- export const id=912;export const ids=[912];export const modules={3912:(n,o,r)=>{r.r(o),r.d(o,{default:()=>a});var t,e,s,c=r(9094);function i(){return i=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},i.apply(this,arguments)}const a=function(n){return c.n("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t||(t=c.n("path",{vectorEffect:"non-scaling-stroke",d:"M12 22.212 2 18.375V5.762l10 3.9v12.55ZM12 22.212l10-3.837V5.762l-10 3.9v12.55Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),e||(e=c.n("path",{vectorEffect:"non-scaling-stroke",d:"M2 5.762 12 1.8l10 3.962-10 3.9-10-3.9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=c.n("path",{vectorEffect:"non-scaling-stroke",d:"m7.413 3.612 10 3.913v3.838",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})))}}};
package/93.js DELETED
@@ -1 +0,0 @@
1
- export const id=93;export const ids=[93];export const modules={3093:(t,n,r)=>{r.r(n),r.d(n,{default:()=>s});var o,e=r(9094);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},a.apply(this,arguments)}const s=function(t){return e.n("svg",a({"data-name":"Icon \\u2013 Chevron right \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},t),o||(o=e.n("path",{vectorEffect:"non-scaling-stroke",d:"m10.5 16.5 4.255-4.255L10.5 7.99",fill:"none",stroke:"currentColor","data-name":"Chevron right icon"})))}}};
package/940.js DELETED
@@ -1 +0,0 @@
1
- export const id=940;export const ids=[940];export const modules={4940:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c});var a,o=e(9094);function r(){return r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},r.apply(this,arguments)}const c=function(t){return o.n("svg",r({"data-name":"Icon \\u2013 Sort \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},t),a||(a=o.n("g",{"data-name":"Sort icon",fill:"none",stroke:"currentColor"},o.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Path 38562",d:"m19.048 15.003-1.5 1.5-1.5-1.5"}),o.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Line 510",d:"M4.951 12h6.833"}),o.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Line 511",d:"M4.951 8.136h8.121M17.544 7.491v9.017"}),o.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Line 512",d:"M4.951 15.864h5.545"}))))}}};
package/952.js DELETED
@@ -1 +0,0 @@
1
- export const id=952;export const ids=[952];export const modules={7952:(t,a,n)=>{n.r(a),n.d(a,{default:()=>l});var r,o=n(9094);function e(){return e=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}const l=function(t){return o.n("svg",e({"data-name":"Icon \\u2013 Star \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},t),r||(r=o.n("g",{"data-name":"Star icon"},o.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Path 884138",d:"m12.4 2.087 2.5 6.656a.285.285 0 0 0 .253.185l7.075.334a.431.431 0 0 1 .247.764l-5.518 4.453a.286.286 0 0 0-.1.3l1.867 6.865a.427.427 0 0 1-.646.472l-5.921-3.903a.285.285 0 0 0-.313 0l-5.921 3.906a.428.428 0 0 1-.646-.472l1.867-6.868a.286.286 0 0 0-.1-.3l-5.523-4.455a.431.431 0 0 1-.064-.6.427.427 0 0 1 .312-.159l7.075-.334a.285.285 0 0 0 .253-.185l2.5-6.653a.427.427 0 0 1 .8 0Z",stroke:"currentColor"}))))}}};
package/960.js DELETED
@@ -1 +0,0 @@
1
- export const id=960;export const ids=[960];export const modules={9960:(t,n,r)=>{r.r(n),r.d(n,{default:()=>i});var o,e=r(9094);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},s.apply(this,arguments)}const i=function(t){return e.n("svg",s({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=e.n("path",{d:"M17.333 11.75H6.667",strokeWidth:1.5,strokeLinecap:"square",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke",stroke:"currentColor"})))}}};
package/964.js DELETED
@@ -1 +0,0 @@
1
- export const id=964;export const ids=[964];export const modules={7964:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l});var r,o=e(9094);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},c.apply(this,arguments)}const l=function(t){return o.n("svg",c({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=o.n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.38 5.38 0 12 0s12 5.38 12 12-5.38 12-12 12S0 18.62 0 12Zm11.889-6.939c-.748 0-1.353.605-1.353 1.353v.159a1.28 1.28 0 0 0 1.353 1.194h.19c.7-.064 1.21-.669 1.162-1.353 0-.748-.604-1.353-1.352-1.353Zm1.305 11.761h.907c.159 0 .302.143.302.303v.604a.302.302 0 0 1-.302.303H9.883a.302.302 0 0 1-.302-.303v-.604c0-.175.143-.303.302-.303h.907v-6.031h-.907a.302.302 0 0 1-.302-.303v-.605c0-.175.143-.302.302-.302h2.706c.334 0 .604.27.604.605v6.636Z",fill:"currentColor"})))}}};
package/993.js DELETED
@@ -1 +0,0 @@
1
- export const id=993;export const ids=[993];export const modules={4993:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});var o,r=e(9094);function a(){return a=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},a.apply(this,arguments)}const s=function(n){return r.n("svg",a({"data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},n),o||(o=r.n("g",{"data-name":"Add icon",fill:"none",stroke:"currentColor"},r.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Line 579",d:"M11.95 5.65v12.7"}),r.n("path",{vectorEffect:"non-scaling-stroke","data-name":"Line 580",d:"M5.655 12h12.7"}))))}}};
package/runtime.js DELETED
@@ -1 +0,0 @@
1
- var e,r,o={},t={};function i(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={id:e,exports:{}};return o[e].call(a.exports,a,a.exports,i),a.exports}i.m=o,i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},i.d=(e,r)=>{for(var o in r)i.o(r,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,o)=>(i.f[o](e,r),r)),[])),i.u=e=>e+".js",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};export default i;e={121:0},r=r=>{var o,t,{ids:a,modules:l,runtime:n}=r,u=0;for(o in l)i.o(l,o)&&(i.m[o]=l[o]);for(n&&n(i);u<a.length;u++)t=a[u],i.o(e,t)&&e[t]&&e[t][0](),e[a[u]]=0},i.f.j=(o,t)=>{var a=i.o(e,o)?e[o]:void 0;if(0!==a)if(a)t.push(a[1]);else if(121!=o){var l=import("./"+i.u(o)).then(r,(r=>{throw 0!==e[o]&&(e[o]=void 0),r}));l=Promise.race([l,new Promise((r=>a=e[o]=[r]))]),t.push(a[1]=l)}else e[o]=0},i.C=r;