@dropins/storefront-auth 0.0.1-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/103.js +1 -0
- package/180.js +2 -0
- package/180.js.LICENSE.txt +1 -0
- package/221.js +1 -0
- package/235.js +2 -0
- package/235.js.LICENSE.txt +1 -0
- package/246.js +2 -0
- package/246.js.LICENSE.txt +1 -0
- package/25.js +2 -0
- package/25.js.LICENSE.txt +1 -0
- package/406.js +1 -0
- package/42.js +2 -0
- package/42.js.LICENSE.txt +1 -0
- package/508.js +1 -0
- package/591.js +1 -0
- package/666.js +2 -0
- package/666.js.LICENSE.txt +1 -0
- package/728.js +1 -0
- package/739.js +2 -0
- package/739.js.LICENSE.txt +1 -0
- package/920.js +1 -0
- package/api.js +2 -0
- package/api.js.LICENSE.txt +1 -0
- package/containers/AuthCombine.js +1 -0
- package/containers/ResetPassword.js +1 -0
- package/containers/SignIn.js +1 -0
- package/containers/SignUp.js +1 -0
- package/containers/SuccessNotification.js +1 -0
- package/containers/UpdatePassword.js +2 -0
- package/containers/UpdatePassword.js.LICENSE.txt +1 -0
- package/package.json +1 -0
- package/render.js +1 -0
- package/runtime.js +1 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see UpdatePassword.js.LICENSE.txt */
|
|
2
|
+
import*as t from"@dropins/tools/event-bus.js";import*as r from"@dropins/tools/fetch-graphql.js";import*as e from"@dropins/tools/preact-compat.js";import*as n from"@dropins/tools/preact-hooks.js";import*as o from"@dropins/tools/preact-jsx-runtime.js";import*as a from"@dropins/tools/preact.js";export const id=846;export const ids=[846];export const modules={7636:(t,r,e)=>{e.d(r,{A:()=>i});var n,o=e(9094);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(this,arguments)}const i=function(t){return o.createElement("svg",a({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),n||(n=o.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.36 5.64 5.63 18.37M18.36 18.37 5.63 5.64",stroke:"currentColor"})))}},1260:(t,r,e)=>{e.d(r,{A:()=>u});var n,o,a=e(9094);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},i.apply(this,arguments)}const u=function(t){return a.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),n||(n=a.createElement("g",{clipPath:"url(#Locker_svg__a)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},a.createElement("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"}))),o||(o=a.createElement("defs",null,a.createElement("clipPath",{id:"Locker_svg__a"},a.createElement("path",{fill:"#fff",transform:"translate(5.25 2.25)",d:"M0 0h13.5v19.5H0z"})))))}},9960:(t,r,e)=>{e.d(r,{A:()=>i});var n,o=e(9094);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(this,arguments)}const i=function(t){return o.createElement("svg",a({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),n||(n=o.createElement("path",{d:"M17.333 11.75H6.667",strokeWidth:1.5,strokeLinecap:"square",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke",stroke:"currentColor"})))}},6613:(t,r,e)=>{function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,a,i,u=[],s=!0,c=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;s=!1}else for(;!(s=(n=a.call(e)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return o(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{L:()=>a});var a=function(t){return t.reduce((function(t,r){if(!r)return t;if("string"==typeof r&&(t+=" ".concat(r)),Array.isArray(r)){var e=n(r,2),o=e[0],a=e[1];o&&a&&(t+=" ".concat(o))}return t}),"").trim()}},1764:(t,r,e)=>{e.d(r,{G:()=>l});var n=e(294),o=e(5883),a=function(t){var r,e,n,o;return{autocompleteOnStorefront:(null==t||null===(r=t.data)||void 0===r||null===(r=r.storeConfig)||void 0===r?void 0:r.autocomplete_on_storefront)||!1,minLength:(null==t||null===(e=t.data)||void 0===e||null===(e=e.storeConfig)||void 0===e?void 0:e.minimum_password_length)||3,requiredCharacterClasses:+(null==t||null===(n=t.data)||void 0===n||null===(n=n.storeConfig)||void 0===n?void 0:n.required_character_classes_number)||0,createAccountConfirmation:(null==t||null===(o=t.data)||void 0===o||null===(o=o.storeConfig)||void 0===o?void 0:o.create_account_confirmation)||!1}},i=e(6129);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(){s=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var a=r&&r.prototype instanceof w?r:w,i=Object.create(a.prototype),u=new F(n||[]);return o(i,"_invoke",{value:O(t,e,u)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,i,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(A([])));E&&E!==e&&n.call(E,i)&&(_=E);var S=x.prototype=w.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(o,a,i,s){var c=p(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):r.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return e("throw",t,i,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return a=a?a.then(o,o):o()}})}function O(r,e,n){var o=d;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var s=C(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=p(r,e,n);if("normal"===c.type){if(o=n.done?y:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function C(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,C(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,r.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[r.resultName]=i.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[i];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(u(r)+" is not iterable")}return b.prototype=x,o(S,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,c,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new P(h(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(S),f(S,l,"Generator"),f(S,i,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,F.prototype={constructor:F,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function c(t,r,e,n,o,a,i){try{var u=t[a](i),s=u.value}catch(t){return void e(t)}u.done?r(s):Promise.resolve(s).then(n,o)}var l=function(){var t,r=(t=s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.AZ)("\n query GET_STORE_CONFIG {\n storeConfig {\n autocomplete_on_storefront\n minimum_password_length\n required_character_classes_number\n store_code\n store_name\n store_group_code\n locale\n create_account_confirmation\n }\n }\n",{method:"GET",cache:"force-cache"}).then((function(t){var r;return null!==(r=t.errors)&&void 0!==r&&r.length?(0,i.T)(t.errors):a(t)})).catch(o.n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function i(t){c(a,n,o,i,u,"next",t)}function u(t){c(a,n,o,i,u,"throw",t)}i(void 0)}))});return function(){return r.apply(this,arguments)}}()},5678:(t,r,e)=>{e.d(r,{x:()=>c});var n=e(5883),o=e(294),a=function(t){var r,e,n,o="";return null!=t&&null!==(r=t.errors)&&void 0!==r&&r.length&&(o=null==t||null===(e=t.errors[0])||void 0===e?void 0:e.message),{message:o,success:Boolean(null==t||null===(n=t.data)||void 0===n?void 0:n.resetPassword)}};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(){u=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var a=r&&r.prototype instanceof w?r:w,i=Object.create(a.prototype),u=new F(n||[]);return o(i,"_invoke",{value:O(t,e,u)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,s,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(A([])));E&&E!==e&&n.call(E,s)&&(_=E);var S=x.prototype=w.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(o,a,u,s){var c=p(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==i(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,u,s)}),(function(t){e("throw",t,u,s)})):r.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return e("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return a=a?a.then(o,o):o()}})}function O(r,e,n){var o=d;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var s=C(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=p(r,e,n);if("normal"===c.type){if(o=n.done?y:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function C(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,C(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,r.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[r.resultName]=i.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[s];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(i(r)+" is not iterable")}return b.prototype=x,o(S,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,c,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new P(h(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(S),f(S,l,"Generator"),f(S,s,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,F.prototype={constructor:F,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function s(t,r,e,n,o,a,i){try{var u=t[a](i),s=u.value}catch(t){return void e(t)}u.done?r(s):Promise.resolve(s).then(n,o)}var c=function(){var t,r=(t=u().mark((function t(r,e,i){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.AZ)("\n mutation RESET_PASSWORD($email: String!, $resetPasswordToken: String!, $newPassword: String!){\n resetPassword(email: $email,resetPasswordToken: $resetPasswordToken,newPassword: $newPassword)\n }\n",{method:"POST",variables:{email:r,resetPasswordToken:e,newPassword:i}}).then((function(t){return a(t)})).catch(n.n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function i(t){s(a,n,o,i,u,"next",t)}function u(t){s(a,n,o,i,u,"throw",t)}i(void 0)}))});return function(t,e,n){return r.apply(this,arguments)}}()},1414:(t,r,e)=>{e.d(r,{R:()=>$,A:()=>$});var n=e(6613),o=e(5292),a=e.n(o),i=e(9893),u=e.n(i),s=e(9383),c=e.n(s),l=e(6884),f=e.n(l),h=e(9088),p=e.n(h),d=e(7997),m=e.n(d),v=e(7871),y={};y.styleTagTransform=m(),y.setAttributes=f(),y.insert=c().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p();a()(v.A,y);v.A&&v.A.locals&&v.A.locals;var g=e(6705),w=e(6263),b=e(1880),x=e(5678),_=e(2739),L=e(446),E=function(t,r){return t.split("&").filter((function(t){return t.includes(r)})).map((function(t){return t.split("=")[1]}))[0]},S=e(7622),j=e(2885),P=e(5808);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function C(){C=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var a=r&&r.prototype instanceof y?r:y,i=Object.create(a.prototype),u=new F(n||[]);return o(i,"_invoke",{value:j(t,e,u)}),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",m="completed",v={};function y(){}function g(){}function w(){}var b={};c(b,i,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(A([])));_&&_!==e&&n.call(_,i)&&(b=_);var L=w.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,r){function e(o,a,i,u){var s=f(t[o],t,a);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==O(l)&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,i,u)}),(function(t){e("throw",t,i,u)})):r.resolve(l).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,u)}))}u(s.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return a=a?a.then(o,o):o()}})}function j(r,e,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var s=P(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=f(r,e,n);if("normal"===c.type){if(o=n.done?m:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function P(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,P(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=f(o,r.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,v;var i=a.arg;return i?i.done?(e[r.resultName]=i.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[i];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(O(r)+" is not iterable")}return g.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=c(w,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new S(l(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),c(L,s,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,F.prototype={constructor:F,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}function k(t,r,e,n,o,a,i){try{var u=t[a](i),s=u.value}catch(t){return void e(t)}u.done?r(s):Promise.resolve(s).then(n,o)}function N(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,a,i,u=[],s=!0,c=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;s=!1}else for(;!(s=(n=a.call(e)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return F(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return F(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var A=function(t){var r=t.signInOnSuccess,e=t.passwordConfigs,n=t.routeRedirectOnSignIn,o=t.routeWrongUrlRedirect,a=t.onErrorCallback,i=t.onSuccessCallback,u=t.handleSetUpdateNotification,s=(0,P.FV)({errorNotification:"Auth.Notification.errorNotification"}),c=N((0,j.useState)({userName:"",status:!1}),2),l=c[0],f=c[1],h=N((0,j.useState)(""),2),p=h[0],d=h[1],m=N((0,j.useState)(!1),2),v=m[0],y=m[1],g=N((0,j.useState)(""),2),w=g[0],b=g[1],O=N((0,j.useState)(""),2),F=O[0],A=O[1],T=N((0,j.useState)(!1),2),I=T[0],G=T[1];(0,j.useEffect)((function(){var t=window.location.search;t.includes("token=")||t.includes("email=")||"function"!=typeof o||(window.location.href=null==o?void 0:o());var r=decodeURIComponent(t),e=E(r,"token"),n=E(r,"email");b(n),A(e)}),[o]);var R=(0,j.useCallback)(function(){var t,o=(t=C().mark((function t(o){var c,l,h,p,d,m,v,g;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.preventDefault(),G(!0),c=(0,L.r)(o.target),l=(null==c?void 0:c.password)&&w&&F,h=(null==e?void 0:e.requiredCharacterClasses)||0,p=(null==e?void 0:e.minLength)||0,(0,S.L)(null==c?void 0:c.password,h)&&!(c.password<p)){t.next=10;break}return y(!0),G(!1),t.abrupt("return");case 10:if(l){t.next=14;break}return null==u||u({status:"error",text:s.errorNotification}),G(!1),t.abrupt("return");case 14:return t.next=16,(0,x.x)(w,F,c.password);case 16:if(d=t.sent,m=d.message,!(v=d.success)||"function"!=typeof u){t.next=27;break}return r||"function"!=typeof n||(window.location.href=n()),t.next=23,(0,_.o)({email:w,password:c.password,handleSetUpdateNotification:u,onErrorCallback:a});case 23:null!=(g=t.sent)&&g.userName&&("function"==typeof n?window.location.href=n():(f({userName:null==g?void 0:g.userName,status:!0}),null==i||i(null==g?void 0:g.userName))),t.next=29;break;case 27:null==u||u({status:"error",text:m}),null==a||a({message:m,success:v});case 29:G(!1);case 30:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function i(t){k(a,n,o,i,u,"next",t)}function u(t){k(a,n,o,i,u,"throw",t)}i(void 0)}))});return function(t){return o.apply(this,arguments)}}(),[w,F,null==e?void 0:e.requiredCharacterClasses,null==e?void 0:e.minLength,u,s.errorNotification,r,a,n,i]);return{isSuccessful:l,updatePasswordValue:p,isClickSubmit:v,isLoading:I,submitUpdatePassword:R,handleSetUpdatePasswordValue:(0,j.useCallback)((function(t){d(t)}),[])}},T=e(9738),I=e(2623),G=e(5296),R=e(586),U=e(8837),M=e(7660),q=e(5127),V=function(t){var r=t.signInOnSuccess,e=void 0===r||r,o=t.formSize,a=void 0===o?"default":o,i=t.routeRedirectOnSignIn,u=t.routeWrongUrlRedirect,s=t.successNotificationForm,c=t.onErrorCallback,l=t.onSuccessCallback,f=(0,P.FV)({title:"Auth.UpdatePasswordForm.title",buttonPrimary:"Auth.UpdatePasswordForm.buttonPrimary"}),h=(0,w.i)().passwordConfigs,p=(0,M.S)(),d=p.updateNotification,m=p.handleSetUpdateNotification,v=A({signInOnSuccess:e,passwordConfigs:h,routeRedirectOnSignIn:i,routeWrongUrlRedirect:u,onErrorCallback:c,onSuccessCallback:l,handleSetUpdateNotification:m}),y=v.isSuccessful,x=v.updatePasswordValue,_=v.isClickSubmit,L=v.isLoading,E=v.submitUpdatePassword,S=v.handleSetUpdatePasswordValue,j=(0,b.d)({password:x,isClickSubmit:_,passwordConfigs:h}),O=j.isValidUniqueSymbols,C=j.defaultLengthMessage;return s&&y.status?s(y.userName):(0,q.jsxs)("div",{className:(0,n.L)(["auth-updatePasswordForm",a]),children:[(0,q.jsx)(T.h,{text:f.title,bottomLine:!1,className:"auth-updatePasswordForm__title"}),(0,q.jsx)(U.G,{className:"auth-updatePasswordForm__notification",notificationStatus:d.status,notificationText:d.text}),(0,q.jsxs)(I.l,{name:"updatePassword_form",className:"auth-updatePasswordForm__form",submitCallback:E,isLoading:L,fieldsConfig:[],children:[(0,q.jsx)(G.s,{initialPassword:x,required:!0,className:"auth-updatePasswordForm__form__item",setPasswordValueCallback:S,isError:"error"===O||"error"===(null==C?void 0:C.status),children:(0,q.jsx)(g.k,{minLength:null==h?void 0:h.minLength,requiredCharacterClasses:null==h?void 0:h.requiredCharacterClasses,validateLengthConfig:C,isValidUniqueSymbols:O})}),(0,q.jsx)("div",{className:"auth-updatePasswordForm__button",children:(0,q.jsx)(R.$,{type:"submit",buttonText:f.buttonPrimary,variant:"primary",enableLoader:L})})]})]})},$=function(t){var r=t.formSize,e=t.signInOnSuccess,n=t.loginOnPasswordUpdate,o=t.routeRedirectOnSignIn,a=t.routeWrongUrlRedirect,i=t.successNotificationForm,u=t.onErrorCallback,s=t.onSuccessCallback;return(0,q.jsx)("div",{className:"auth-update-password",children:(0,q.jsx)(V,{formSize:r,signInOnSuccess:e,loginOnPasswordUpdate:n,routeRedirectOnSignIn:o,routeWrongUrlRedirect:a,onErrorCallback:u,onSuccessCallback:s,successNotificationForm:i})})}},7871:(t,r,e)=>{e.d(r,{A:()=>u});var n=e(8645),o=e.n(n),a=e(278),i=e.n(a)()(o());i.push([t.id,".auth-updatePasswordForm{\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-updatePasswordForm{\n padding:var(--spacing-big) var(--spacing-xxbig) var(--spacing-xxbig) var(--spacing-xxbig);\n }\n}\n\n.auth-updatePasswordForm.small{\n padding:var(--spacing-small) var(--spacing-small) var(--spacing-medium) var(--spacing-small);\n}\n\n.auth-updatePasswordForm.small .auth-updatePasswordForm__form__item{\n margin-bottom:var(--spacing-big);\n}\n\n.auth-updatePasswordForm.small .auth-updatePasswordForm__title{\n margin-bottom:var(--spacing-small);\n}\n\n.auth-updatePasswordForm__title{\n margin-bottom:var(--spacing-big);\n}\n\n@media (min-width: 768px){\n .auth-updatePasswordForm__title{\n margin-bottom:var(--spacing-xxbig);\n }\n}\n\n.auth-updatePasswordForm__form .auth-updatePasswordForm__form__item{\n margin-bottom:var(--spacing-big);\n}\n\n@media (min-width: 768px){\n .auth-updatePasswordForm__form .auth-updatePasswordForm__form__item{\n margin-bottom:var(--spacing-xxbig);\n }\n}\n\n.auth-updatePasswordForm__notification{\n margin-bottom:var(--spacing-medium);\n}\n",""]);const u=i},278:t=>{t.exports=function(t){var r=[];return r.toString=function(){return this.map((function(r){var e="",n=void 0!==r[5];return r[4]&&(e+="@supports (".concat(r[4],") {")),r[2]&&(e+="@media ".concat(r[2]," {")),n&&(e+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),e+=t(r),n&&(e+="}"),r[2]&&(e+="}"),r[4]&&(e+="}"),e})).join("")},r.i=function(t,e,n,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(n)for(var u=0;u<this.length;u++){var s=this[u][0];null!=s&&(i[s]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);n&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),e&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=e):l[2]=e),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),r.push(l))}},r}},8645:t=>{t.exports=function(t){return t[1]}},5292:t=>{var r=[];function e(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function n(t,n){for(var a={},i=[],u=0;u<t.length;u++){var s=t[u],c=n.base?s[0]+n.base:s[0],l=a[c]||0,f="".concat(c," ").concat(l);a[c]=l+1;var h=e(f),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==h)r[h].references++,r[h].updater(p);else{var d=o(p,n);n.byIndex=u,r.splice(u,0,{identifier:f,updater:d,references:1})}i.push(f)}return i}function o(t,r){var e=r.domAPI(r);e.update(t);return function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap&&r.supports===t.supports&&r.layer===t.layer)return;e.update(t=r)}else e.remove()}}t.exports=function(t,o){var a=n(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var u=e(a[i]);r[u].references--}for(var s=n(t,o),c=0;c<a.length;c++){var l=e(a[c]);0===r[l].references&&(r[l].updater(),r.splice(l,1))}a=s}}},9383:t=>{var r={};t.exports=function(t,e){var n=function(t){if(void 0===r[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}r[t]=e}return r[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}},9088:t=>{t.exports=function(t){var r=document.createElement("style");return t.setAttributes(r,t.attributes),t.insert(r,t.options),r}},6884:(t,r,e)=>{t.exports=function(t){var r=e.nc;r&&t.setAttribute("nonce",r)}},9893:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var r=t.insertStyleElement(t);return{update:function(e){!function(t,r,e){var n="";e.supports&&(n+="@supports (".concat(e.supports,") {")),e.media&&(n+="@media ".concat(e.media," {"));var o=void 0!==e.layer;o&&(n+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),n+=e.css,o&&(n+="}"),e.media&&(n+="}"),e.supports&&(n+="}");var a=e.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),r.styleTagTransform(n,t,r.options)}(r,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)}}}},7997:t=>{t.exports=function(t,r){if(r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}},1178:(r,e,n)=>{r.exports=(t=>{var r={};return n.d(r,t),r})({events:()=>t.events})},5867:(t,e,n)=>{t.exports=(t=>{var r={};return n.d(r,t),r})({FetchGraphQL:()=>r.FetchGraphQL})},1771:(t,r,n)=>{t.exports=(t=>{var r={};return n.d(r,t),r})({Suspense:()=>e.Suspense,createContext:()=>e.createContext,lazy:()=>e.lazy,memo:()=>e.memo,useRef:()=>e.useRef,useState:()=>e.useState})},2885:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({useCallback:()=>n.useCallback,useContext:()=>n.useContext,useDebugValue:()=>n.useDebugValue,useEffect:()=>n.useEffect,useId:()=>n.useId,useImperativeHandle:()=>n.useImperativeHandle,useLayoutEffect:()=>n.useLayoutEffect,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState})},997:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs})},7706:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({Component:()=>a.Component,Fragment:()=>a.Fragment,cloneElement:()=>a.cloneElement,createContext:()=>a.createContext,createElement:()=>a.createElement,createRef:()=>a.createRef,h:()=>a.h,hydrate:()=>a.hydrate,options:()=>a.options,render:()=>a.render,toChildArray:()=>a.toChildArray})},5127:(t,r,e)=>{e(1771);var n=e(997);e.o(n,"Fragment")&&e.d(r,{Fragment:function(){return n.Fragment}}),e.o(n,"jsx")&&e.d(r,{jsx:function(){return n.jsx}}),e.o(n,"jsxs")&&e.d(r,{jsxs:function(){return n.jsxs}})}};import i from"../runtime.js";import*as u from"../591.js";i.C(u);import*as s from"../246.js";i.C(s);import*as c from"../920.js";i.C(c);import*as l from"../739.js";i.C(l);import*as f from"../406.js";i.C(f);import*as h from"./UpdatePassword.js";i.C(h);var p,d=(p=1414,i(i.s=p)),m=d.R,v=d.A;export{m as UpdatePassword,v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name": "@dropins/storefront-auth", "version": "0.0.1-alpha1", "dependencies": { "@dropins/tools": "~0.19.0" } }
|
package/render.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"@dropins/tools/event-bus.js";import*as r from"@dropins/tools/preact-compat.js";import*as t from"@dropins/tools/preact-hooks.js";import*as o from"@dropins/tools/preact-jsx-runtime.js";import*as a from"@dropins/tools/preact.js";export const id=375;export const ids=[375];export const modules={7694:(e,r,t)=>{t.d(r,{X:()=>m});var o=t(6360),a=t(2885),n=t(6486),s=t(1178),i=t(5127);function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,a,n,s,i=[],u=!0,l=!1;try{if(n=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=n.call(t)).done)&&(i.push(o.value),i.length!==r);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw a}}return i}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return l(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}s.events.enableLogger(!0);var c={default:t(6601)},d=function(e){var r=e.children,t=u((0,a.useState)("en_US"),2),o=t[0],l=t[1];return(0,a.useEffect)((function(){var e=s.events.on("locale",(function(e){l(e)}),{eager:!0});return function(){null==e||e.off()}}),[]),(0,i.jsx)(n.i,{lang:o,langDefinitions:c,children:r})},m=new o.d((0,i.jsx)(d,{}))},1178:(r,t,o)=>{r.exports=(e=>{var r={};return o.d(r,e),r})({events:()=>e.events})},1771:(e,t,o)=>{e.exports=(e=>{var r={};return o.d(r,e),r})({Suspense:()=>r.Suspense,createContext:()=>r.createContext,lazy:()=>r.lazy,memo:()=>r.memo,useRef:()=>r.useRef,useState:()=>r.useState})},2885:(e,r,o)=>{e.exports=(e=>{var r={};return o.d(r,e),r})({useCallback:()=>t.useCallback,useContext:()=>t.useContext,useDebugValue:()=>t.useDebugValue,useEffect:()=>t.useEffect,useId:()=>t.useId,useImperativeHandle:()=>t.useImperativeHandle,useLayoutEffect:()=>t.useLayoutEffect,useMemo:()=>t.useMemo,useReducer:()=>t.useReducer,useRef:()=>t.useRef,useState:()=>t.useState})},997:(e,r,t)=>{e.exports=(e=>{var r={};return t.d(r,e),r})({Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs})},7706:(e,r,t)=>{e.exports=(e=>{var r={};return t.d(r,e),r})({Component:()=>a.Component,Fragment:()=>a.Fragment,cloneElement:()=>a.cloneElement,createContext:()=>a.createContext,createElement:()=>a.createElement,createRef:()=>a.createRef,h:()=>a.h,hydrate:()=>a.hydrate,options:()=>a.options,render:()=>a.render,toChildArray:()=>a.toChildArray})},6601:e=>{e.exports=JSON.parse('{"Auth":{"PasswordValidationMessage":{"chartTwoSymbols":"Use characters and numbers or symbols","chartThreeSymbols":"Use characters, numbers and symbols","chartFourSymbols":"Use uppercase characters, lowercase characters, numbers and symbols","messageLengthPassword":"At least {minLength} characters long"},"ResetPasswordForm":{"title":"Reset your password","buttonPrimary":"Reset password","buttonSecondary":"Back to sign in"},"SignInForm":{"title":"Sign in","buttonPrimary":"Sign in","buttonSecondary":"Sign up","buttonTertiary":"Forgot password?"},"SignUpForm":{"title":"Sign up","buttonPrimary":"Create account","buttonSecondary":"Already a member? Sign in","privacyPolicyDefaultText":"I’ve read and accept the Terms of Use and Privacy Policy.","subscribedDefaultText":"Subscribe to our newsletter and be the first to know about new arrivals, sales and exclusive offers.","keepMeLoggedText":"Keep me logged in after account creation"},"UpdatePasswordForm":{"title":"Update password","buttonPrimary":"Update password"},"FormText":{"requiredFieldError":"This is a required field."},"Notification":{"errorNotification":"Your password update failed due to validation errors. Please check your information and try again.","successPasswordResetEmailNotification":"If there is an account associated with {email} you will receive an email with a link to reset your password."},"Api":{"customerTokenErrorMessage":"Error - Unable to retrieve the user token"}}}')}};import n from"./runtime.js";import*as s from"./591.js";n.C(s);import*as i from"./25.js";n.C(i);import*as u from"./render.js";n.C(u);var l,c=(l=7694,n(n.s=l)).X;export{c as render};
|
package/runtime.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r,o={},t={};function i(e){var r=t[e];if(void 0!==r)return r.exports;var n=t[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.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:n,modules:a,runtime:l}=r,d=0;for(o in a)i.o(a,o)&&(i.m[o]=a[o]);for(l&&l(i);d<n.length;d++)t=n[d],i.o(e,t)&&e[t]&&e[t][0](),e[n[d]]=0},i.f.j=(o,t)=>{var n=i.o(e,o)?e[o]:void 0;if(0!==n)if(n)t.push(n[1]);else if(121!=o){var a=import("./"+i.u(o)).then(r,(r=>{throw 0!==e[o]&&(e[o]=void 0),r}));a=Promise.race([a,new Promise((r=>n=e[o]=[r]))]),t.push(n[1]=a)}else e[o]=0},i.C=r,i.nc=void 0;
|