@dropins/storefront-pdp 0.1.0 → 0.2.0-beta2

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/api.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see api.js.LICENSE.txt */
2
- import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>s,iE:()=>h,XV:()=>l,gO:()=>c,mv:()=>u,yg:()=>f});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,u=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,f=a.setFetchGraphQlHeaders,s=a.fetchGraphQl,h=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);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 i(){i=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof b?r:b,i=Object.create(o.prototype),c=new F(n||[]);return a(i,"_invoke",{value:_(t,e,c)}),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 y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function O(){}var E={};s(E,u,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(N([])));j&&j!==e&&n.call(j,u)&&(E=j);var x=O.prototype=b.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(i,a,c,u){var l=p(t[i],t,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==o(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):r.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return e("throw",t,c,u)}))}u(l.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=y;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(r,e,n);if("normal"===l.type){if(o=n.done?g:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(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,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function G(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 T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function N(r){if(r||""===r){var e=r[u];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,a=function e(){for(;++i<r.length;)if(n.call(r,i))return e.value=r[i],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 w.prototype=O,a(x,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:w,configurable:!0}),w.displayName=s(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s(t,f,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},S(P.prototype),s(P.prototype,l,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new P(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),s(x,f,"Generator"),s(x,u,(function(){return this})),s(x,"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=N,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(T),!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 c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},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),m},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),T(e),m}},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;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:N(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function a(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,u,l,f;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n attributes {\n label\n value\n roles\n }\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 2:return c=t.sent,u=c.data,null==(l=null==u||null===(e=u.products)||void 0===e?void 0:e[0])||null===(o=l.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),null==(f=null==l||null===(a=l.attributes)||void 0===a?void 0:a.filter((function(t){var r=t.roles;return-1!==(null==r?void 0:r.indexOf("visible_in_pdp"))})))||f.map((function(t,r){var e=t.label,n=t.value;return n=n.toString().split(",").join(", "),l.attributes[r]={label:e,value:n}})),t.abrupt("return",l);case 9:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},750:(t,r,e)=>{function n(t){return n="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},n(t)}function o(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(i)?i:String(i)),o)}var i}e.d(r,{vc:()=>_,gX:()=>k.gX,iE:()=>k.iE,b6:()=>G.b,j2:()=>P,XV:()=>k.XV,gO:()=>k.gO,mv:()=>k.mv,yg:()=>k.yg});var i=function(){function t(r){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=r}var r,e;return r=t,(e=[{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(t){this.config=t}}])&&o(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}();function a(t){return a="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},a(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},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var i=r&&r.prototype instanceof b?r:b,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:_(t,e,c)}),a}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 y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function O(){}var E={};s(E,u,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(N([])));j&&j!==e&&n.call(j,u)&&(E=j);var x=O.prototype=b.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(o,i,c,u){var l=p(t[o],t,i);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==a(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):r.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return e("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=y;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(r,e,n);if("normal"===l.type){if(o=n.done?g:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(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,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function G(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 T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function N(r){if(r||""===r){var e=r[u];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=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 i.next=i}}throw new TypeError(a(r)+" is not iterable")}return w.prototype=O,o(x,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=s(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s(t,f,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},S(P.prototype),s(P.prototype,l,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new P(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),s(x,f,"Generator"),s(x,u,(function(){return this})),s(x,"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=N,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(T),!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 c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},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),m},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),T(e),m}},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;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:N(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}function l(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,i,a,c=[],u=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return f(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(t,r):void 0}}(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}function s(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?s(Object(e),!0).forEach((function(r){d(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function y(t,r,e){return r&&p(t.prototype,r),e&&p(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function d(t,r,e){return(r=g(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function g(t){var r=function(t,r){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(r)?r:String(r)}var m=y((function t(r){var e=this,n=r.init,o=r.listeners;v(this,t),d(this,"_listeners",[]),d(this,"config",new i({})),this.listeners=function(t){return e._listeners.forEach((function(t){return t.off()})),e._listeners=o(t)},this.init=function(t){return e.config.setConfig(h(h({},e.config.getConfig()),t)),n(t)}})),b=function(){function t(){v(this,t)}return y(t,null,[{key:"register",value:function(r,e){t._initializers.push([r,e])}},{key:"mount",value:function(){var r,e;null===(r=t._initializers)||void 0===r||r.forEach((function(t){var r,e=l(t,2),n=e[0],o=e[1];null===(r=n.listeners)||void 0===r||r.call(n,o)})),null===(e=t._initializers)||void 0===e||e.forEach(function(){var t,r=(t=c().mark((function t(r){var e,n,o,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=l(r,2),o=n[0],i=n[1],null===(e=o.init)||void 0===e||e.call(o,i);case 2:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}())}}]),t}();function w(t){return w="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},w(t)}function O(){O=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof g?r:g,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:_(t,e,c)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",d={};function g(){}function m(){}function b(){}var E={};l(E,a,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(N([])));j&&j!==e&&n.call(j,a)&&(E=j);var x=b.prototype=g.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==w(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=s(r,e,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function k(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,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=s(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function G(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 T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function N(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=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 i.next=i}}throw new TypeError(w(r)+" is not iterable")}return m.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},S(P.prototype),l(P.prototype,c,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new P(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),l(x,u,"Generator"),l(x,a,(function(){return this})),l(x,"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=N,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(T),!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 c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},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),d},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),T(e),d}},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;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:N(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),d}},r}function E(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function L(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?E(Object(e),!0).forEach((function(r){var n,o,i;n=t,o=r,i=e[r],(o=function(t){var r=function(t,r){if("object"!==w(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===w(r)?r:String(r)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function j(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}d(b,"_initializers",[]);var x,S,P=new m({init:(x=O().mark((function t(r){var e;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e={},P.config.setConfig(L(L({},e),r));case 2:case"end":return t.stop()}}),t)})),S=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=x.apply(t,r);function i(t){j(o,e,n,i,a,"next",t)}function a(t){j(o,e,n,i,a,"throw",t)}i(void 0)}))},function(t){return S.apply(this,arguments)}),listeners:function(){return[]}}),_=P.config,k=e(377),G=e(675)}};import r from"./runtime.js";import*as e from"./api.js";r.C(e);var n=(750,r(r.s=750)),o=n.vc,i=n.gX,a=n.iE,c=n.b6,u=n.j2,l=n.XV,f=n.gO,s=n.mv,h=n.yg;export{o as config,i as fetchGraphQl,a as getConfig,c as getProductData,u as initialize,l as removeFetchGraphQlHeader,f as setEndpoint,s as setFetchGraphQlHeader,h as setFetchGraphQlHeaders};
2
+ import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={743:(t,r,e)=>{function n(t){return n="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},n(t)}function o(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(i)?i:String(i)),o)}var i}e.d(r,{m:()=>m});var i=function(){function t(r){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=r}var r,e;return r=t,(e=[{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(t){this.config=t}}])&&o(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}();function a(t){return a="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},a(t)}function c(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,i,a,c=[],u=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,r):void 0}}(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 u(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}function l(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function f(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){y(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function s(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function p(t,r,e){return r&&s(t.prototype,r),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function y(t,r,e){return(r=v(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function v(t){var r=function(t,r){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(r)?r:String(r)}var m=p((function t(r){var e=this,n=r.init,o=r.listeners;h(this,t),y(this,"_listeners",[]),y(this,"config",new i({})),this.listeners=function(t){return e._listeners.forEach((function(t){return t.off()})),e._listeners=o(t)},this.init=function(t){return e.config.setConfig(f(f({},e.config.getConfig()),t)),n(t)}})),d=function(){function t(){h(this,t)}return p(t,null,[{key:"register",value:function(r,e){var n,o;t._mounted&&(null===(n=r.listeners)||void 0===n||n.call(r,e),null===(o=r.init)||void 0===o||o.call(r,e)),t._initializers.push([r,e])}},{key:"mount",value:function(){var r,e;t._mounted=!0,null===(r=t._initializers)||void 0===r||r.forEach((function(t){var r,e=c(t,2),n=e[0],o=e[1];null===(r=n.listeners)||void 0===r||r.call(n,o)})),null===(e=t._initializers)||void 0===e||e.forEach((function(t){var r,e=c(t,2),n=e[0],o=e[1];null===(r=n.init)||void 0===r||r.call(n,o)}))}}]),t}();y(d,"_initializers",[]),y(d,"_mounted",!1)},1195:(t,r,e)=>{e.d(r,{vc:()=>n.v,gX:()=>o.gX,iE:()=>o.iE,b6:()=>i.b,R3:()=>a.R,j2:()=>n.j,XV:()=>o.XV,gO:()=>o.gO,mv:()=>o.mv,yg:()=>o.yg});var n=e(4114),o=e(7322),i=e(2675),a=e(6052)},4114:(t,r,e)=>{function n(t){return n="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},n(t)}function o(){o=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=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 s(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,a=Object.create(o.prototype),c=new L(n||[]);return i(a,"_invoke",{value:S(t,e,c)}),a}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function y(){}function v(){}function m(){}var d={};f(d,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(_([])));b&&b!==r&&e.call(b,c)&&(d=b);var w=m.prototype=y.prototype=Object.create(d);function O(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function o(i,a,c,u){var l=p(t[i],t,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==n(s)&&e.call(s,"__await")?r.resolve(s.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):r.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return o("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function S(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=E(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=p(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function E(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,E(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),h;var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function P(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 x(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function _(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=m,i(w,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===v||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),f(j.prototype,u,(function(){return this})),t.AsyncIterator=j,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new j(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),f(w,l,"Generator"),f(w,c,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=_,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},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),x(e),h}},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;x(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}function i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function a(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?i(Object(e),!0).forEach((function(r){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}e.d(r,{j:()=>s,v:()=>p});var l,f,s=new(e(743).m)({init:(l=o().mark((function t(r){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e={},s.config.setConfig(a(a({},e),r));case 2:case"end":return t.stop()}}),t)})),f=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=l.apply(t,r);function i(t){u(o,e,n,i,a,"next",t)}function a(t){u(o,e,n,i,a,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)}),listeners:function(){return[]}}),p=s.config},9699:(r,e,n)=>{var o,i;r.exports=(o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i)}};import r from"./runtime.js";import*as e from"./713.js";r.C(e);import*as n from"./api.js";r.C(n);var o=(1195,r(r.s=1195)),i=o.vc,a=o.gX,c=o.iE,u=o.b6,l=o.R3,f=o.j2,s=o.XV,p=o.gO,h=o.mv,y=o.yg;export{i as config,a as fetchGraphQl,c as getConfig,u as getProductData,l as getRefinedProduct,f as initialize,s as removeFetchGraphQlHeader,p as setEndpoint,h as setFetchGraphQlHeader,y as setFetchGraphQlHeaders};
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see ProductDetails.js.LICENSE.txt */
2
- import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/event-bus.js";import*as e from"@dropins/elsie/preact-compat.js";import*as n from"@dropins/elsie/preact-hooks.js";import*as o from"@dropins/elsie/preact-jsx-runtime.js";import*as a from"@dropins/elsie/preact.js";export const id=175;export const ids=[175];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>p,iE:()=>d,XV:()=>s,gO:()=>l,mv:()=>c,yg:()=>u});var o,a,i=(new((o={FetchGraphQL:()=>t.FetchGraphQL},a={},n.d(a,o),a).FetchGraphQL)).getMethods(),l=i.setEndpoint,c=i.setFetchGraphQlHeader,s=i.removeFetchGraphQlHeader,u=i.setFetchGraphQlHeaders,p=i.fetchGraphQl,d=i.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>l});var n=e(377);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 a(){a=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{p({},"")}catch(t){p=function(t,r,e){return t[r]=e}}function d(t,r,e,n){var o=r&&r.prototype instanceof b?r:b,a=Object.create(o.prototype),l=new T(n||[]);return i(a,"_invoke",{value:L(t,e,l)}),a}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function _(){}function w(){}var x={};p(x,c,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(D([])));O&&O!==e&&n.call(O,c)&&(x=O);var S=w.prototype=b.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(r){p(t,r,(function(t){return this._invoke(r,t)}))}))}function k(t,r){function e(a,i,l,c){var s=f(t[a],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==o(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){e("next",t,l,c)}),(function(t){e("throw",t,l,c)})):r.resolve(p).then((function(t){u.value=t,l(u)}),(function(t){return e("throw",t,l,c)}))}c(s.arg)}var a;i(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 L(r,e,n){var o=h;return function(a,i){if(o===g)throw new 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 l=n.delegate;if(l){var c=A(l,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=f(r,e,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function A(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,A(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 E(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 T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function D(r){if(r||""===r){var e=r[c];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var a=-1,i=function e(){for(;++a<r.length;)if(n.call(r,a))return e.value=r[a],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(o(r)+" is not iterable")}return _.prototype=w,i(S,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:_,configurable:!0}),_.displayName=p(w,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===_||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,p(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},P(k.prototype),p(k.prototype,s,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new k(d(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(S),p(S,u,"Generator"),p(S,c,(function(){return this})),p(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=D,T.prototype={constructor:T,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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new 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 new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:D(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}function i(t,r,e,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void e(t)}l.done?r(c):Promise.resolve(c).then(n,o)}var l=function(){var t,r=(t=a().mark((function t(r){var e,o,i,l,c,s,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n attributes {\n label\n value\n roles\n }\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 2:return l=t.sent,c=l.data,null==(s=null==c||null===(e=c.products)||void 0===e?void 0:e[0])||null===(o=s.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),null==(u=null==s||null===(i=s.attributes)||void 0===i?void 0:i.filter((function(t){var r=t.roles;return-1!==(null==r?void 0:r.indexOf("visible_in_pdp"))})))||u.map((function(t,r){var e=t.label,n=t.value;return n=n.toString().split(",").join(", "),s.attributes[r]={label:e,value:n}})),t.abrupt("return",s);case 9: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 l(t){i(a,n,o,l,c,"next",t)}function c(t){i(a,n,o,l,c,"throw",t)}l(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,e)=>{e.d(r,{f:()=>ot,Z:()=>ot});var n=e(853),o=e(373),a=e(988),i=e(625),l=e(587),c=e(769),s=e(341),u=e(72),p=e(724),d=e(148),f=e(949),h=e(892),m=e.n(h),g=e(760),y=e.n(g),v=e(311),b=e.n(v),_=e(192),w=e.n(_),x=e(60),j=e.n(x),O=e(865),S=e.n(O),P=e(834),k={};k.styleTagTransform=S(),k.setAttributes=w(),k.insert=b().bind(null,"head"),k.domAPI=y(),k.insertStyleElement=j(),m()(P.Z,k),P.Z&&P.Z.locals&&P.Z.locals;var L=e(188);function A(t){return A="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},A(t)}var E=["children","gap","className","style"];function N(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function T(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?N(Object(e),!0).forEach((function(r){var n,o,a;n=t,o=r,a=e[r],(o=function(t){var r=function(t,r){if("object"!==A(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===A(r)?r:String(r)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var D=function(t){var r=t.children,e=t.gap,o=void 0===e?null:e,a=t.className,i=t.style,c=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,E);return(0,L.jsx)("div",T(T({},c),{},{className:(0,l.S)(["pdp-gallery-grid",a]),style:T({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},i),children:n.Children.map(r,(function(t,r){return(0,L.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,L.jsx)(t.type,T(T({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},I=e(202),C={};function G(t){return G="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},G(t)}C.styleTagTransform=S(),C.setAttributes=w(),C.insert=b().bind(null,"head"),C.domAPI=y(),C.insertStyleElement=j(),m()(I.Z,C),I.Z&&I.Z.locals&&I.Z.locals;var Z=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function F(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function R(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?F(Object(e),!0).forEach((function(r){var n,o,a;n=t,o=r,a=e[r],(o=function(t){var r=function(t,r){if("object"!==G(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===G(r)?r:String(r)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):F(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var M=function(t){var r=t.show,e=void 0===r?1:r,o=t.scrollbar,a=void 0!==o&&o,i=t.peak,c=void 0!==i&&i,s=t.gap,u=void 0===s?null:s,p=t.direction,d=void 0===p?"horizontal":p,f=t.width,h=void 0===f?"100%":f,m=t.height,g=void 0===m?"100%":m,y=t.className,v=t.style,b=t.children,_=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,Z),w=n.Children.count(b),x="number"==typeof e?{small:e,medium:e,large:e}:e,j=function(t){return t<1||1===w?"horizontal"===d?h:g:t>=w?"calc((100% / ".concat(w,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,L.jsx)("div",R(R({},_),{},{className:(0,l.S)(["pdp-carousel","pdp-carousel--".concat(d),["pdp-carousel--scrollbar",a],["pdp-carousel--peak",c],y]),style:R(R({},v),{},{"--container-width":h,"--container-height":g,"--pdp-carousel-gap":u?"var(--spacing-".concat(u,")"):"0px","--pdp-carousel-width-small":j(x.small),"--pdp-carousel-width-medium":j(x.medium),"--pdp-carousel-width-large":j(x.large)}),tabIndex:0,children:n.Children.map(b,(function(t,r){return(0,L.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},tabIndex:0,children:(0,L.jsx)(t.type,R({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},X=e(330),z={};function H(t){return H="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},H(t)}z.styleTagTransform=S(),z.setAttributes=w(),z.insert=b().bind(null,"head"),z.domAPI=y(),z.insertStyleElement=j(),m()(X.Z,z),X.Z&&X.Z.locals&&X.Z.locals;var B=["title","sku","outOfStock","hideSku","shortDescription","description","attributes","images","price","specialPrice","onAddToCart","onAddToWishlist","className","children","AddToCartLabel","AddToWishListLabel","RegularPriceLabel","SpecialPriceLabel","IncrementerLabel","OutOfStockLabel","DetailsLabel","ImagesLabel"];function Q(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function W(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Q(Object(e),!0).forEach((function(r){var n,o,a;n=t,o=r,a=e[r],(o=function(t){var r=function(t,r){if("object"!==H(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===H(r)?r:String(r)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Q(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var q=(0,p.zB)({AddToCartLabel:"PDP.Product.AddToCart.label",AddToWishListLabel:"PDP.Product.AddToWishlist.label",RegularPriceLabel:"PDP.Product.RegularPrice.label",SpecialPriceLabel:"PDP.Product.SpecialPrice.label",IncrementerLabel:"PDP.Product.Incrementer.label",OutOfStockLabel:"PDP.Product.OutOfStock.label",DetailsLabel:"PDP.Product.Details.label",ImagesLabel:"PDP.Product.Image.label"})((function(t){var r=t.title,e=t.sku,n=t.outOfStock,o=t.hideSku,a=t.shortDescription,p=t.description,h=t.attributes,m=t.images,g=t.price,y=t.specialPrice,v=t.onAddToCart,b=t.onAddToWishlist,_=t.className,w=(t.children,t.AddToCartLabel),x=t.AddToWishListLabel,j=t.RegularPriceLabel,O=t.SpecialPriceLabel,S=t.IncrementerLabel,P=t.OutOfStockLabel,k=t.DetailsLabel,A=t.ImagesLabel,E=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,B);return(0,L.jsxs)("div",W(W({},E),{},{className:(0,l.S)(["pdp-product",_]),children:[(0,L.jsx)("div",{className:"pdp-product__gallery-column",children:(0,L.jsx)(D,{className:"pdp-product__images",gap:"small",children:null!=m&&m.length?m.map((function(t,e){return(0,L.jsx)(t.type,W(W({},t.props),{},{"aria-label":null==A?void 0:A.replace("{product}",r).replace("{key}",String(e+1)).replace("{total}",String(m.length)),"aria-hidden":n}),e)})):(0,L.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,L.jsxs)("div",{className:"pdp-product__content-column",children:[(0,L.jsxs)("div",{className:"pdp-product__header",children:[(0,L.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&e&&(0,L.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",e]}),(0,L.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,L.jsx)(g.type,W(W({},g.props),{},{className:(0,l.S)([g.props.className,"pdp-product__price",["pdp-product__price--grey",y]]),"aria-label":j})),y&&(0,L.jsx)(g.type,W(W({},y.props),{},{className:(0,l.S)([y.props.className,"pdp-product__price-special"]),"aria-label":O}))]})]}),(0,L.jsx)(M,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:null!=m&&m.length?m.map((function(t,e){return(0,L.jsx)(t.type,W(W({},t.props),{},{"aria-label":null==A?void 0:A.replace("{product}",r).replace("{key}",String(e+1)).replace("{total}",String(m.length)),"aria-hidden":n}),e)})):(0,L.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,L.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,i.X)(t.target).quantity;null==v||v({quantity:Number(r)})},className:(0,l.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",n]]),children:[n&&(0,L.jsx)("div",{className:"pdp-product__out-of-stock__text",children:P}),!n&&(0,L.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:n,"aria-label":S,className:"pdp-product__quantity"}),(0,L.jsxs)("div",{className:"pdp-product__buttons",children:[(0,L.jsx)(s.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,L.jsx)(u.J,{source:d.Z}),disabled:!v||n,"aria-label":w,children:(0,L.jsx)("span",{className:"pdp-product__add-to-cart__label",children:w})}),b&&(0,L.jsx)(s.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,L.jsx)(u.J,{source:f.Z}),size:"medium",onClick:function(){null==b||b()},"aria-label":x,children:(0,L.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:x})})]})]}),a&&(0,L.jsx)(a.type,W(W({},a.props),{},{className:(0,l.S)([a.props.className,"pdp-product__short_description"])})),p&&(0,L.jsx)(p.type,W(W({},p.props),{},{className:(0,l.S)([p.props.className,"pdp-product__description"])})),null!=h&&h.length?(0,L.jsxs)("div",{className:"pdp-product__attributes",children:[k,(0,L.jsx)("ul",{children:h.map((function(t,r){return(0,L.jsx)(t.type,W({},t.props),r)}))})]}):null]})]}))})),V=e(675),U=e(765);function Y(t){return Y="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},Y(t)}var $=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function J(){J=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",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var a=r&&r.prototype instanceof y?r:y,i=Object.create(a.prototype),l=new E(n||[]);return o(i,"_invoke",{value:P(t,e,l)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var _={};s(_,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==e&&n.call(x,i)&&(_=x);var j=b.prototype=y.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,r){function e(o,a,i,l){var c=p(t[o],t,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Y(u)&&n.call(u,"__await")?r.resolve(u.__await).then((function(t){e("next",t,i,l)}),(function(t){e("throw",t,i,l)})):r.resolve(u).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,l)}))}l(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 P(r,e,n){var o=d;return function(a,i){if(o===h)throw new 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 l=n.delegate;if(l){var c=k(l,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(r,e,n);if("normal"===s.type){if(o=n.done?m:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(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,k(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 L(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 A(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(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(Y(r)+" is not iterable")}return v.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===v||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},r.awrap=function(t){return{__await:t}},O(S.prototype),s(S.prototype,l,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new S(u(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(j),s(j,c,"Generator"),s(j,i,(function(){return this})),s(j,"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=N,E.prototype={constructor:E,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(A),!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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new 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),A(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;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:N(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function K(t,r,e,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void e(t)}l.done?r(c):Promise.resolve(c).then(n,o)}function tt(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function rt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?tt(Object(e),!0).forEach((function(r){var n,o,a;n=t,o=r,a=e[r],(o=function(t){var r=function(t,r){if("object"!==Y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(r)?r:String(r)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):tt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function et(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,l=[],c=!0,s=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=a.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return nt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?nt(t,r):void 0}}(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 nt(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 ot=function(t){var r,e,i=t.sku,l=t.hideSku,c=t.onAddToCart,s=t.onAddToWishlist,u=(t.children,t.initialData),p=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,$),d=et((0,n.useState)(),2),f=d[0],h=void 0===f?u:f,m=d[1],g=et((0,n.useState)("en_US"),2),y=g[0],v=g[1],b=null==h?void 0:h.price.regular.amount.value,_=null==h?void 0:h.price.regular.amount.currency,w=null==h?void 0:h.price.final.amount.value,x=null==h?void 0:h.price.final.amount.currency;(0,n.useEffect)((function(){var t=U.events.on("locale",(function(t){v(t),(0,V.b)(i).then((function(t){m(t)}))}));return function(){null==t||t.off()}}),[i]);var j=y.replace("_","-"),O=null==h||null===(r=h.attributes)||void 0===r?void 0:r.map((function(t,r){var e=t.label,n=t.value;return n=isNaN(n)&&!isNaN(Date.parse(n))?-1!==n.indexOf("00:00:00")?new Date(n).toLocaleDateString(j):new Date(n).toLocaleString(j):n.toString(),(0,L.jsxs)("li",{children:[e,": ",(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})]},r)}));return(0,L.jsx)("div",rt(rt({},p),{},{children:(0,L.jsx)(q,{title:null==h?void 0:h.name,sku:!l&&(null==h?void 0:h.sku),shortDescription:(null==h?void 0:h.shortDescription)&&(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:h.shortDescription}}),description:(null==h?void 0:h.description)&&(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:h.description}}),images:null==h||null===(e=h.images)||void 0===e?void 0:e.map((function(t,r){var e=t.label,n=t.url;return(0,L.jsx)(o.E,{title:n,alt:e,src:n,params:{width:960}},r)})),price:(null==h?void 0:h.price.roles.includes("visible"))&&(0,L.jsx)(a.t,{amount:b,currency:_,locale:j,variant:b===w?"default":"strikethrough"}),specialPrice:(null==h?void 0:h.price.roles.includes("visible"))&&w!==b&&(0,L.jsx)(a.t,{amount:w,currency:x,variant:"default"}),outOfStock:!(null!=h&&h.inStock),onAddToCart:(null==h?void 0:h.addToCartAllowed)&&function(t){null==c||c(rt({sku:i},t))},onAddToWishlist:s&&function(){null==s||s({sku:i})},attributes:O})}))};ot.getInitialData=function(){var t,r=(t=J().mark((function t(r){var e;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.sku,t.next=3,(0,V.b)(e);case 3:return t.abrupt("return",t.sent);case 4: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,l,"next",t)}function l(t){K(a,n,o,i,l,"throw",t)}i(void 0)}))});return function(t){return r.apply(this,arguments)}}()},202:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(933),o=e.n(n),a=e(476),i=e.n(a)()(o());i.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-carousel {\n --width: var(--pdp-carousel-width-small);\n --peak: 0%;\n display: grid;\n grid-gap: var(--pdp-carousel-gap);\n scroll-padding: var(--peak);\n width: var(--container-width);\n height: var(--container-height);\n}\n\n.pdp-carousel--peak {\n --peak: 5%;\n}\n\n.pdp-carousel--horizontal {\n grid-auto-columns: var(--width);\n grid-auto-flow: column;\n grid-auto-rows: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n}\n\n.pdp-carousel--vertical {\n grid-auto-columns: 100%;\n grid-auto-flow: row;\n grid-auto-rows: var(--width);\n overflow-x: hidden;\n overflow-y: auto;\n scroll-snap-type: y mandatory;\n}\n\n/* Items */\n.pdp-carousel__item {\n scroll-snap-align: center;\n}\n\n.pdp-carousel__item > * {\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n}\n\n.pdp-carousel__item img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n/* Scrollbar */\n.pdp-carousel--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar)::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n@media only screen and (min-width: 768px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-medium);\n }\n}\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n@media only screen and (min-width: 1366px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-large);\n }\n}\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},834:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(933),o=e.n(n),a=e(476),i=e.n(a)()(o());i.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-gallery-grid {\n display: grid;\n grid-gap: var(--gap);\n grid-template-columns: repeat(1, 1fr);\n grid-auto-rows: max-content;\n}\n\n/* .pdp-gallery-grid__item { } */\n\n.pdp-gallery-grid__item > * {\n height: 100%;\n max-width: 100%;\n min-width: 100%;\n vertical-align: middle;\n width: 100%;\n object-fit: contain;\n}\n\n/* Only One Item */\n.pdp-gallery-grid__item:only-child {\n grid-column: 1 / span 2;\n}\n\n/* Only Two Items */\n.pdp-gallery-grid__item:first-child:nth-last-child(2) {\n grid-column: 1 / span 2;\n grid-row: 1;\n}\n\n.pdp-gallery-grid__item:nth-child(2):last-child {\n grid-column: 1 / 3;\n grid-row: 2;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-gallery-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},330:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(933),o=e.n(n),a=e(476),i=e.n(a)()(o());i.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-product {\n display: grid;\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n margin: 0 var(--grid-1-margins);\n}\n\n.pdp-product__gallery-column {\n display: none;\n}\n\n.pdp-product__content-column {\n grid-column: 1 / span 4;\n color: var(--color-neutral-800);\n}\n\n.pdp-product__header {\n display: grid;\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-medium);\n}\n\n.pdp-product__title {\n font: var(--type-display-3-font);\n letter-spacing: var(--type-display-3-letter-spacing);\n margin: 0;\n}\n\n.pdp-product__sku {\n font: var(--type-body-1-default-font);\n max-width: 600px;\n}\n\n.pdp-product__prices {\n margin-top: var(--spacing-medium);\n}\n\n.pdp-product__out-of-stock__text {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__price-special {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__sku,\n.pdp-product__price-special,\n.pdp-product__out-of-stock__text {\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n\n.pdp-product__buttons {\n grid-column: 1;\n display: grid;\n grid-gap: var(--spacing-small);\n}\n\n.pdp-product__short_description,\n.pdp-product__attributes {\n font: var(--type-body-1-strong-font);\n letter-spacing: var(--type-body-1-strong-letter-spacing);\n margin-bottom: var(--spacing-small);\n}\n\n.pdp-product__description,\n.pdp-product__attributes li {\n font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n\n.pdp-product__attributes {\n margin-top: var(--spacing-xsmall);\n}\n\n.pdp-product__short_description p,\n.pdp-product__description p,\n.pdp-product__attributes li p {\n margin: 0;\n}\n\n.pdp-product__short_description figure,\n.pdp-product__description figure {\n margin: 0;\n}\n\n.pdp-product__short_description img,\n.pdp-product__description img {\n max-width: 100%;\n}\n\n.pdp-product__images--carousel {\n width: 100%;\n height: 60vh;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n grid-row: 1 / 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n position: sticky;\n top: 0;\n padding-top: var(--spacing-medium);\n }\n\n .pdp-product__images--carousel {\n display: none;\n }\n\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n grid-template-columns: 1fr auto;\n }\n\n .pdp-product__add-to-wishlist {\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-right: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n }\n\n .pdp-product__add-to-wishlist__label {\n display: none;\n }\n\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},765:(t,e,n)=>{var o,a;t.exports=(o={events:()=>r.events},a={},n.d(a,o),a)},853:(t,r,n)=>{var o,a;t.exports=(o={Children:()=>e.Children,useEffect:()=>e.useEffect,useMemo:()=>e.useMemo,useState:()=>e.useState},a={},n.d(a,o),a)},437:(t,r,e)=>{var o,a;t.exports=(o={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},a={},e.d(a,o),a)},142:(t,r,e)=>{var n,a;t.exports=(n={jsx:()=>o.jsx,jsxs:()=>o.jsxs},a={},e.d(a,n),a)},474:(t,r,e)=>{var n,o;t.exports=(n={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},o={},e.d(o,n),o)}};import i from"../runtime.js";import*as l from"../757.js";i.C(l);import*as c from"../285.js";i.C(c);import*as s from"./ProductDetails.js";i.C(s);var u=(42,i(i.s=42)),p=u.f,d=u.Z;export{p as ProductDetails,d as default};
2
+ import*as e from"@dropins/elsie/event-bus.js";import*as t from"@dropins/elsie/fetch-graphql.js";import*as n from"@dropins/elsie/preact-compat.js";import*as r from"@dropins/elsie/preact-hooks.js";import*as o from"@dropins/elsie/preact-jsx-runtime.js";import*as a from"@dropins/elsie/preact.js";export const id=175;export const ids=[175];export const modules={6512:(e,t,n)=>{n.d(t,{f:()=>at,Z:()=>at});var r=n(4853),o=n(746),a=n(3889),i=n(1072),l=n(5894),c=n(9853),s=n(7373),u=n(1177),p=n(5587),d=n(9724),f=n(1892),m=n.n(f),y=n(5760),v=n.n(y),g=n(8311),b=n.n(g),h=n(8192),_=n.n(h),w=n(8060),x=n.n(w),j=n(4865),O=n.n(j),S=n(9834),P={};P.styleTagTransform=O(),P.setAttributes=_(),P.insert=b().bind(null,"head"),P.domAPI=v(),P.insertStyleElement=x(),m()(S.Z,P),S.Z&&S.Z.locals&&S.Z.locals;var k=n(7188);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var E=["children","gap","className","style"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){var t=e.children,n=e.gap,o=void 0===n?null:n,a=e.className,i=e.style,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,E),c=r.Children.count(t);return(0,k.jsx)("div",D(D({},l),{},{className:(0,p.S)(["pdp-gallery-grid",a]),style:D({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},i),children:r.Children.map(t,(function(e,t){return(0,k.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,k.jsx)(u.F,{node:e,loading:0===t?"eager":"lazy"},e.props.src)},c+t)}))}))},I=n(7654),T=n(8991),Z=n(9188),X={};function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}X.styleTagTransform=O(),X.setAttributes=_(),X.insert=b().bind(null,"head"),X.domAPI=v(),X.insertStyleElement=x(),m()(Z.Z,X),Z.Z&&Z.Z.locals&&Z.Z.locals;var F=["show","scrollbar","peak","arrows","controls","loop","gap","direction","width","height","defaultIndex","className","children"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===M(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||B(e,t)||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 B(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $=function(e){var t=e.show,n=void 0===t?1:t,o=e.scrollbar,a=void 0!==o&&o,l=e.peak,s=void 0!==l&&l,u=e.arrows,f=void 0!==u&&u,m=e.controls,y=void 0!==m&&m,v=e.loop,g=void 0!==v&&v,b=e.gap,h=void 0===b?null:b,_=e.direction,w=void 0===_?"horizontal":_,x=e.width,j=void 0===x?"100%":x,O=e.height,S=void 0===O?"100%":O,P=e.defaultIndex,A=void 0===P?0:P,E=e.className,N=e.children,D=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,F),L=(0,d.XK)("PDP.Carousel.label").label,C=(0,d.XK)("PDP.Carousel.Slide.label").label,Z=(0,d.XK)("PDP.Carousel.Previous.label").label,X=(0,d.XK)("PDP.Carousel.Next.label").label,M=(0,d.XK)("PDP.Carousel.Controls.label").label,R=(0,d.XK)("PDP.Carousel.Controls.Button.label").label,z=U((0,r.useState)((function(){return W(n)})),2),B=z[0],G=z[1],$=Math.ceil(r.Children.toArray(N).length/B),V=s?24:0,H=h?{small:16,medium:24,large:64}[h]:0,Q=r.Children.toArray(N).length%B,J=U((0,r.useState)(g?A+1:A),2),Y=J[0],ee=J[1],te=(0,r.useMemo)((function(){var e=r.Children.toArray(N).reduce((function(e,t,n){return n%B==0?[].concat(K(e),[[t]]):[].concat(K(e.slice(0,-1)),[[].concat(K(e[e.length-1]),[t])])}),[]);return g&&1!==e.length?g&&r.Children.toArray(N).length%B==0?[e[$-1]].concat(e).concat([e[0],e[1]]):[r.Children.toArray(N).slice(-B)].concat(e).concat([e[0],e[1]]):e}),[N,B,$,g]),ne=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=document.body,t=new ResizeObserver((function(){var e=window.innerWidth,t=W(n,e);t!==B&&G(t)}));return t.observe(e),function(){t.unobserve(e)}}),[B,n]);var re=(0,r.useCallback)((function(e,t,n){var r=ne.current,o=V?r.offsetWidth-V:r.offsetWidth-V+H;if(Array.from(r.querySelectorAll("[data-index]")).filter((function(e){var t=Number(e.getAttribute("data-index"));return!isNaN(t)&&t>-1}))[e]){if(n){var a=0===e?$:0,i=o*($+(Q||B)/B);return r.scrollLeft>=0&&r.scrollLeft<o?void re(1,!0):r.scrollLeft>i-o&&r.scrollLeft<=i?void re($,!0):(r.style.scrollBehavior="auto",r.scrollLeft=0===a?0:i,void re(0===a?1:$,!0))}var l=(r.offsetWidth-H)/B*te[e].length-V;r.style.scrollBehavior=t?"smooth":"auto",r.scrollLeft=te[e].length===B?o*e:o*(e-1)+l}}),[H,$,V,B,Q,te]),oe=(0,r.useCallback)((function(){g?re(Y-1,!0,1===Y):re(Y<=0?0:Y-1,!0)}),[Y,re,g]),ae=(0,r.useCallback)((function(){var e=te.length-1;g?re(Y+1,!0,Y===$):re(Y>=e?e:Y+1,!0)}),[te.length,g,Y,re,$]);(0,r.useEffect)((function(){var e=function(e){"ArrowLeft"===e.key&&(e.preventDefault(),oe()),"ArrowRight"===e.key&&(e.preventDefault(),ae())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[ae,oe]),(0,r.useEffect)((function(){re(g?A+1:A,!1)}),[A,re,g]);var ie=(0,I.D)((function(){var e=ne.current,t=V?e.offsetWidth-V:e.offsetWidth-V+H,n=Math.ceil(e.scrollLeft/t);if(g){var r=t*($+(Q||B)/B);if(Math.ceil(e.scrollLeft)>=Math.ceil(r))return e.style.scrollBehavior="auto",void(e.scrollLeft=1*e.offsetWidth+(Math.ceil(e.scrollLeft)-Math.ceil(r)-V));if(0===e.scrollLeft)return e.style.scrollBehavior="auto",void(e.scrollLeft=r-e.offsetWidth+V)}Y!==n&&ee(n)}),20);return(0,r.useEffect)((function(){var e=ne.current;return null==e||e.addEventListener("scroll",ie),function(){null==e||e.removeEventListener("scroll",ie)}}),[ie]),(0,k.jsxs)("div",q(q({role:"region","aria-roledescription":L,className:(0,p.S)(["pdp-carousel",["pdp-carousel--arrows",f],E])},D),{},{children:[f&&(0,k.jsx)(c.z,{className:(0,p.S)(["pdp-carousel__button","pdp-carousel__button--prev"]),variant:"tertiary","aria-label":Z,onClick:oe,disabled:!g&&Y<1,children:(0,k.jsx)(i.J,{className:(0,p.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--prev"]),size:"32",source:T.Z})}),(0,k.jsx)("div",{ref:ne,className:(0,p.S)(["pdp-carousel__wrapper","pdp-carousel__wrapper--".concat(w),["pdp-carousel__wrapper--scrollbar",a],["pdp-carousel__wrapper--peak",s]]),style:{"--width":j,"--height":S,"--gap":h?"var(--spacing-".concat(h,")"):"0px","--per-page":B},tabIndex:0,children:te.map((function(e,t){var n=e.length<B;return(0,k.jsx)("div",{role:"group","aria-roledescription":C,"data-index":t,className:(0,p.S)(["pdp-carousel__slide","pdp-carousel__slide--".concat(w),["pdp-carousel__slide--active",Y===t],["pdp-carousel__slide--orphan",n]]),style:{"--length":e.length},children:e},t)}))}),f&&(0,k.jsx)(c.z,{className:(0,p.S)(["pdp-carousel__button","pdp-carousel__button--next"]),variant:"tertiary","aria-label":X,onClick:ae,disabled:!g&&Y>=te.length-1,children:(0,k.jsx)(i.J,{className:(0,p.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--next"]),size:"32",source:T.Z})}),y&&(0,k.jsx)("div",{role:"group","aria-label":M,className:"pdp-carousel__controls",children:(g?te.slice(0,$):te).map((function(e,t){var n=g?$:te.length,r=g?Y-1===t:Y===t;return(0,k.jsx)("button",{"aria-label":R.replace("{key}",String(t+1)).replace("{total}",String(n)),onClick:function(){re(g?t+1:t,!0)},className:(0,p.S)(["pdp-carousel__controls__button",["pdp-carousel__controls__button--active",r]])},t)}))})]}))};function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("number"==typeof e)return e;var n=e.small,r=e.medium,o=e.large;return t>1024?o:t>786?r:n}var V=n(7498),H=n(7162),Q={};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}Q.styleTagTransform=O(),Q.setAttributes=_(),Q.insert=b().bind(null,"head"),Q.domAPI=v(),Q.insertStyleElement=x(),m()(H.Z,Q),H.Z&&H.Z.locals&&H.Z.locals;var Y=["centered","onClose","className","children"];function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==J(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===J(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=function(e){var t=e.centered,n=e.onClose,o=e.className,a=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y),l=(0,d.XK)("PDP.Overlay.Close.label").label,s=(0,r.useCallback)((function(){null==n||n()}),[n]);return(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&s()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[s]),(0,r.useEffect)((function(){var e=document.scrollingElement,t=e.style.overflow;return e.style.overflow="hidden",function(){e.style.overflow=t}}),[]),(0,k.jsxs)("div",te(te({},i),{},{className:(0,p.S)(["pdp-overlay",["pdp-overlay--centered",t],o]),children:[(0,k.jsx)("div",{className:"pdp-overlay__content",children:a}),(0,k.jsx)(c.z,{"aria-label":l,variant:"tertiary",className:"pdp-overlay__close-button",onClick:s,icon:(0,k.jsx)(V.Z,{})})]}))},oe=n(4330),ae={};function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}ae.styleTagTransform=O(),ae.setAttributes=_(),ae.insert=b().bind(null,"head"),ae.domAPI=v(),ae.insertStyleElement=x(),m()(oe.Z,ae),oe.Z&&oe.Z.locals&&oe.Z.locals;var le=["title","sku","outOfStock","hideSku","shortDescription","description","attributes","images","options","price","specialPrice","className","children","quantity","actions"];function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ie(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ie(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de=function(e){var t,n,o=e.title,a=void 0===o?"":o,i=e.sku,l=e.outOfStock,c=e.hideSku,s=e.shortDescription,f=e.description,m=e.attributes,y=e.images,v=e.options,g=e.price,b=e.specialPrice,h=e.className,_=(e.children,e.quantity),w=e.actions,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,le),j=(0,d.XK)("PDP.Product.RegularPrice.label").label,O=(0,d.XK)("PDP.Product.SpecialPrice.label").label,S=(0,d.XK)("PDP.Product.OutOfStock.label").label,P=(0,d.XK)("PDP.Product.Details.label").label,A=(0,d.XK)("PDP.Product.Image.label").label,E=(t=(0,r.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(t,n)||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.")}()),N=E[0],D=E[1],L=null!=y&&y.length?y.map((function(e,t){return(0,k.jsx)(u.F,{node:e,loading:0===t?"eager":"lazy",alt:null==A?void 0:A.replace("{product}",a).replace("{key}",String(t+1)).replace("{total}",String(y.length)),onClick:function(){return D(t)}},t)})):(0,k.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0});return(0,k.jsxs)("div",se(se({},x),{},{className:(0,p.S)(["pdp-product",h]),children:[(0,k.jsx)("div",{className:"pdp-product__column-container pdp-product__gallery-column",children:(0,k.jsx)("div",{className:"pdp-product__column-body",children:(0,k.jsx)(C,{className:"pdp-product__images",gap:"small",children:L})})}),(0,k.jsx)("div",{className:"pdp-product__column-container pdp-product__content-column",children:(0,k.jsxs)("div",{className:"pdp-product__column-body",children:[(0,k.jsxs)("div",{className:"pdp-product__header",children:[(0,k.jsx)("h1",{className:"pdp-product__title",children:a}),!c&&i&&(0,k.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",i]}),(0,k.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,k.jsx)(u.F,{node:g,className:(0,p.S)(["pdp-product__price",["pdp-product__price--grey",b]]),"aria-label":j,role:"text"}),b&&(0,k.jsx)(u.F,{node:b,className:(0,p.S)(["pdp-product__price-special"]),"aria-label":O,role:"text"})]})]}),(0,k.jsx)($,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:L}),(0,k.jsxs)("div",{className:(0,p.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",l]]),children:[l&&(0,k.jsx)("div",{className:"pdp-product__out-of-stock__text",children:S}),v&&(0,k.jsx)(u.F,{node:v,className:(0,p.S)(["pdp-product__options"])}),_&&(0,k.jsx)("div",{className:"pdp-product__quantity",children:(0,k.jsx)(u.F,{node:_})}),w&&(0,k.jsx)(u.F,{node:w,className:(0,p.S)(["pdp-product__buttons"])})]}),s&&(0,k.jsx)(u.F,{node:s,className:(0,p.S)(["pdp-product__short_description"])}),f&&(0,k.jsx)(u.F,{node:f,className:(0,p.S)(["pdp-product__description"])}),null!=m&&m.length?(0,k.jsxs)("div",{className:"pdp-product__attributes",children:[P,(0,k.jsx)("ul",{children:m.map((function(e,t){return(0,k.jsx)(u.F,{node:e},t)}))})]}):null]})}),null===N?null:(0,k.jsx)(re,{className:"pdp-product__overlay",onClose:function(){return D(null)},centered:!0,children:(0,k.jsx)($,{className:"pdp-product__overlay__carousel",arrows:(null==y?void 0:y.length)>1,controls:(null==y?void 0:y.length)>1,loop:(null==y?void 0:y.length)>1,width:"100%",height:"100%",defaultIndex:N||0,children:L})})]}))},fe=n(5768),me=n(9151),ye=n(7426),ve=n(5957),ge={};function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}ge.styleTagTransform=O(),ge.setAttributes=_(),ge.insert=b().bind(null,"head"),ge.domAPI=v(),ge.insertStyleElement=x(),m()(ve.Z,ge),ve.Z&&ve.Z.locals&&ve.Z.locals;var he=["options","onValues","onErrors","className","children"];function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==be(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===be(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=["text","image","color"],Se=function(e){var t,n,o=e.options,a=e.onValues,i=e.onErrors,l=e.className,c=(e.children,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,he)),s=(0,d.XK)("PDP.Swatches.Required.label").label,u=(t=(0,r.useState)((function(){return null==o?void 0:o.reduce((function(e,t){var n=t.items.find((function(e){return e.selected}));return n?we(we({},e),{},xe({},t.id,{label:n.label,value:n.id})):e}),{})})),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}(t,n)||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.")}()),f=u[0],m=u[1];(0,r.useMemo)((function(){var e=null==o?void 0:o.reduce((function(e,t){return t.items.forEach((function(n){var r,o=(null===(r=f[t.id])||void 0===r?void 0:r.value)===n.id;t.required&&!o&&(e[t.id]=s)})),e}),{});return null==i||i(e),e}),[f]);var y=(0,r.useCallback)((function(e,t,n){m((function(r){var o=we(we({},r),{},xe({},e,{label:t,value:n}));return null==a||a(o,n),o}))}),[a]),v=(0,r.useCallback)((function(e){var t=e.items,n=e.id,r=e.required,o=e.type,a=e.selected,i=e.label;return(0,k.jsx)("div",{className:(0,p.S)(["pdp-swatches__options"]),children:null==t?void 0:t.map((function(e){var t={key:e.id,id:e.id,name:n,value:e.value,label:e.label,groupAriaLabel:i,selected:a===e.id,outOfStock:!e.inStock,required:null===r||r,onValue:function(){y(n,e.label,e.id)}};switch(o){case"text":return(0,k.jsx)(fe.m,we(we({},t),{},{label:e.label}));case"image":return(0,k.jsx)(me.k,we(we({},t),{},{src:e.value,alt:e.label}));case"color":return(0,k.jsx)(ye.b,we(we({},t),{},{size:"large",color:e.value}));default:return console.warn("Invalid swatch type ".concat(o)),null}}))})}),[y]);return(0,k.jsx)("div",we(we({},c),{},{className:(0,p.S)(["pdp-swatches",l]),children:null==o?void 0:o.map((function(e){var t,n=e.type,r=e.label,o=e.id,a=e.multiple,i=e.required,l=e.items;return Oe.includes(n)||console.warn("Invalid swatch type ".concat(n)),a&&console.warn("Multiple selection swatches are not currently supported."),(0,k.jsxs)("div",{id:"swatch-item-".concat(o),className:"pdp-swatches__field",children:[(0,k.jsx)("div",{className:"pdp-swatches__field__label",children:f[o]?"".concat(r,": ").concat(f[o].label):r}),(0,k.jsx)(v,{id:o,type:n,required:i,items:l,label:r,selected:null===(t=f[o])||void 0===t?void 0:t.value})]},"swatch-item-".concat(o))}))}))},Pe=n(2330),ke={};ke.styleTagTransform=O(),ke.setAttributes=_(),ke.insert=b().bind(null,"head"),ke.domAPI=v(),ke.insertStyleElement=x(),m()(Pe.Z,ke),Pe.Z&&Pe.Z.locals&&Pe.Z.locals;var Ae=n(1988);function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}var Ne=["amount","currency","locale","variant","sale","minimumAmount","maximumAmount","className"];function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function(e){var t=e.amount,n=e.currency,r=e.locale,o=e.variant,a=e.sale,i=e.minimumAmount,l=e.maximumAmount,c=e.className,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ne);return(0,k.jsx)(k.Fragment,{children:t||i===l?(0,k.jsx)("div",Le(Le({className:"pdp-price-range"},s),{},{children:(0,k.jsx)(Ae.t,{amount:t||i,currency:n,locale:r,variant:o,sale:a,className:c})})):(0,k.jsxs)("div",Le(Le({className:"pdp-price-range"},s),{},{children:[(0,k.jsx)(Ae.t,{amount:i,currency:n,locale:r,className:c}),(0,k.jsx)("span",{className:"pdp-price-range__label",children:"-"}),(0,k.jsx)(Ae.t,{amount:l,currency:n,locale:r,className:c})]}))})},Te=n(1148),Ze=n(2675),Xe=n(6052),Me=n(6765);function Fe(e){if(![/^\d{4}-\d{2}-\d{2}$/,/^\d{1,2}\/\d{1,2}\/\d{4}$/,/^\d{2}\/\d{2}\/\d{4}$/,/^\d{4}\/\d{2}\/\d{2}$/,/^\d{1,2}\.\d{1,2}\.\d{4}$/,/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/].some((function(t){return t.test(e)})))return!1;var t=new Date(e);return!isNaN(t.getTime())}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qe(){var e=new URLSearchParams(window.location.search),t={};return e.forEach((function(e,n){t[n]=e})),t}var ze=n(7034),Ke=n(3354);function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}var Be=["sku","hideSku","hideQuantity","slots","children","initialData","onAddToCart"],Ge=["text","icon"],$e=["text"];function We(){We=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),l=new S(o||[]);return r(i,"_invoke",{value:w(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function d(){}function f(){}function m(){}var y={};c(y,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(P([])));g&&g!==t&&n.call(g,a)&&(y=g);var b=m.prototype=d.prototype=Object.create(y);function h(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(r,a,i,l){var c=u(e[r],e,a);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==Ue(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=x(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:f,configurable:!0}),f.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},h(_.prototype),c(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},h(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Ve(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function He(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ue(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ue(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||tt(e,t)||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 tt(e,t){if(e){if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ot(e){var t=ze[e];return t?(0,k.jsx)(i.J,{source:t}):void 0}var at=function(e){var t,n,u,p,f,m=e.sku,y=e.hideSku,v=e.hideQuantity,g=e.slots,b=(e.children,e.initialData),h=e.onAddToCart,_=rt(e,Be),w=(0,d.XK)("PDP.Product.AddToCart.label").label,x=(0,d.XK)("PDP.Product.Incrementer.label").label,j=et((0,r.useState)("en_US"),2),O=j[0],S=j[1],P=et((0,r.useState)(b),2),A=P[0],E=P[1],N=et((0,r.useState)(!0),2),D=N[0],L=N[1],C=et((0,r.useState)((function(){var e={sku:m,quantity:1};return null!=A&&A.optionUIDs&&(e.optionUIDs=A.optionUIDs),e})),2),I=C[0],T=C[1];(0,r.useEffect)((function(){var e=Me.events.on("locale",(function(e){e!==O&&(S(e),(0,Ze.b)(m).then(E))}));return function(){null==e||e.off()}}),[O,m]);var Z=(0,Ke.useCallback)((function(e){T((function(t){return Je(Je({},t),e)}))}),[]),X=(0,Ke.useCallback)((function(e){var t=Object.keys(e).map((function(t){return e[t].value}));!function(e){var t=new URLSearchParams(window.location.search);Object.entries(e).forEach((function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,t):void 0}}(n,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.")}()),a=o[0],i=o[1];null===i?t.delete(a):t.set(a,String(i))}));var n=window.location.pathname;n+="?".concat(t.toString()),n+=window.location.hash,window.history.replaceState({},"",n)}({optionUIDs:t.join(",")}),T((function(e){return Je(Je({},e),{},{optionUIDs:t})})),(0,Xe.R)(m,t).then((function(e){E(e)}))}),[m]),M=(0,Ke.useCallback)((function(e){L(0===Object.keys(e).length)}),[]),F=null==A||null===(t=A.attributes)||void 0===t?void 0:t.map((function(e,t){var n=e.label,r=e.value,o=Fe(r)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US";if(!Fe(e))throw Error("Invalid date string");return e.split(" ")[1]||(e="".concat(e," 00:00:00")),new Date(e).toLocaleDateString((0,a.A)(t)).toString()}(r,O):r.toString();return(0,k.jsxs)("li",{children:[n,": ",(0,k.jsx)("span",{dangerouslySetInnerHTML:{__html:o}})]},t)})),R=!v&&null!=A&&A.inStock?(0,k.jsx)(l.u,{name:"quantity",defaultValue:I.quantity.toString(),min:1,"aria-label":x,className:"pdp-product__quantity",onValue:function(e){Z({quantity:Number(e)})}},"quantity"):void 0;return(0,k.jsx)("div",Je(Je({},_),{},{children:(0,k.jsx)(de,{title:null==A?void 0:A.name,sku:y||null==A?void 0:A.sku,options:(null==A?void 0:A.options)&&(0,k.jsx)(Se,{options:A.options,onValues:X,onErrors:M}),quantity:R,actions:null!=g&&g.Actions?(0,k.jsx)(o.g,{slot:g.Actions,context:{values:I,valid:D,data:null!=A?A:null,appendButton:function(e){var t=e.text,n=e.icon,r=rt(e,Ge),o=(0,k.jsx)(c.z,Je(Je({type:"button"},r),{},{icon:n&&ot(n),children:t}));this._setContent((function(e){return[].concat(He(e),[o])}))},appendLink:function(e){var t=e.text,n=rt(e,$e),r=(0,k.jsx)("a",Je(Je({},n),{},{children:t}));this._setContent((function(e){return[].concat(He(e),[r])}))},appendHTMLElement:function(e){var t=(0,k.jsx)("div",{});t.ref=function(t){return null==t?void 0:t.appendChild(e)},this._setContent((function(e){return[].concat(He(e),[t])}))}}}):(0,k.jsx)("div",{children:(0,k.jsx)(c.z,{size:"medium",type:"submit",icon:(0,k.jsx)(i.J,{source:Te.Z}),disabled:!(null!=A&&A.inStock&&D),"aria-label":w,onClick:function(){return null==h?void 0:h(I)},children:w})}),shortDescription:null!=A&&A.shortDescription?(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:A.shortDescription}}):void 0,description:null!=A&&A.description?(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:A.description}}):void 0,images:null!==(n=null==A||null===(u=A.images)||void 0===u?void 0:u.map((function(e){var t=e.label,n=e.url;return(0,k.jsx)(s.E,{title:t,alt:t,src:n,width:960,height:1191,params:{width:960}},n)})))&&void 0!==n?n:[],price:null!=A&&null!==(p=A.prices)&&void 0!==p&&p.visible?(0,k.jsx)(Ie,Je(Je({},A.prices.final),{},{locale:(0,a.A)(O)})):void 0,specialPrice:null!=A&&null!==(f=A.prices)&&void 0!==f&&f.visible&&A.prices.regular&&A.prices.final.amount!==(null==A?void 0:A.prices.regular.amount)?(0,k.jsx)(Ie,Je(Je({},A.prices.regular),{},{locale:(0,a.A)(O)})):void 0,outOfStock:!(null!=A&&A.inStock),attributes:F})}))};at.getInitialData=function(){var e,t=(e=We().mark((function e(t){var n,r,o;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.sku,!(o=null===(n=qe().optionUIDs)||void 0===n?void 0:n.split(","))){e.next=6;break}return e.next=5,(0,Xe.R)(r,o);case 5:case 8:return e.abrupt("return",e.sent);case 6:return e.next=8,(0,Ze.b)(r);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ve(a,r,o,i,l,"next",e)}function l(e){Ve(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}()},9188:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-carousel {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-small);\n}\n\n.pdp-carousel--arrows {\n padding-left: 40px;\n padding-right: 40px;\n}\n\n/* Arrows */\n.pdp-carousel__button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n padding: 0;\n}\n\n.pdp-carousel__button--prev {\n left: 0;\n}\n\n.pdp-carousel__button--next {\n right: 0;\n}\n\n.pdp-carousel__button__icon--prev {\n transform: rotate(90deg);\n}\n\n.pdp-carousel__button__icon--next {\n right: 0;\n transform: rotate(-90deg);\n}\n\n/* Wrapper */\n\n.pdp-carousel__wrapper {\n --peak: 0px;\n scroll-padding: var(--peak);\n width: var(--width);\n height: var(--height);\n display: flex;\n flex-wrap: nowrap;\n gap: var(--gap);\n -webkit-overflow-scrolling: touch;\n}\n\n/* Directions */\n\n.pdp-carousel__wrapper--horizontal {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n}\n\n/* Slides */\n\n.pdp-carousel__slide {\n display: grid;\n grid-gap: var(--gap);\n grid-auto-columns: 1fr;\n grid-auto-rows: 100%;\n scroll-snap-align: end;\n scroll-snap-stop: always;\n flex-shrink: 0;\n}\n\n.pdp-carousel__slide--horizontal {\n grid-auto-flow: column;\n width: calc(var(--width) - var(--peak));\n}\n\n.pdp-carousel__slide--horizontal.pdp-carousel__slide--orphan {\n width: calc((var(--width) / var(--per-page) * var(--length)) - var(--peak) / var(--per-page) * var(--length) - var(--gap) / var(--per-page) * (var(--per-page) - var(--length)));\n}\n\n.pdp-carousel__slide > * {\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n}\n\n.pdp-carousel__slide > img {\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n/* Peak */\n.pdp-carousel__wrapper--peak {\n --peak: calc(var(--spacing-medium) + var(--gap));\n}\n\n/* Scrollbar */\n.pdp-carousel__wrapper--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel__wrapper:not(.pdp-carousel__wrapper--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel__wrapper:not(\n .pdp-carousel__wrapper--scrollbar\n )::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel__wrapper--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel__wrapper--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel__wrapper--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n.pdp-carousel__controls {\n display: flex;\n gap: var(--spacing-xsmall);\n}\n\n.pdp-carousel__controls__button {\n border-radius: 50%;\n width: 10px;\n height: 10px;\n padding: 0;\n border: none;\n background: var(--color-neutral-400);\n cursor: pointer;\n}\n\n.pdp-carousel__controls__button:hover {\n background: var(--color-neutral-500);\n}\n\n.pdp-carousel__controls__button:active,\n.pdp-carousel__controls__button--active {\n background: var(--color-neutral-600);\n}\n\n.pdp-carousel__slide--last {\n width: calc(var(--width));\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},9834:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-gallery-grid {\n display: grid;\n grid-gap: var(--gap);\n grid-template-columns: repeat(1, 1fr);\n grid-auto-rows: max-content;\n}\n\n/* .pdp-gallery-grid__item { } */\n\n.pdp-gallery-grid__item > * {\n height: 100%;\n max-width: 100%;\n min-width: 100%;\n vertical-align: middle;\n width: 100%;\n object-fit: contain;\n}\n\n/* Only One Item */\n.pdp-gallery-grid__item:only-child {\n grid-column: 1 / span 2;\n}\n\n/* Only Two Items */\n.pdp-gallery-grid__item:first-child:nth-last-child(2) {\n grid-column: 1 / span 2;\n grid-row: 1;\n}\n\n.pdp-gallery-grid__item:nth-child(2):last-child {\n grid-column: 1 / 3;\n grid-row: 2;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-gallery-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},7162:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-overlay {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1000;\n right: 0;\n bottom: 0;\n background-color: var(--color-neutral-50);\n display: flex;\n padding: var(--spacing-medium);\n}\n\n.pdp-overlay--centered {\n align-items: center;\n justify-content: center;\n}\n\n.pdp-overlay__close-button {\n position: absolute;\n top: var(--spacing-medium);\n right: var(--spacing-medium);\n z-index: 1001;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},2330:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/*\nADOBE CONFIDENTIAL\nCopyright 2023 Adobe\nAll Rights Reserved.\nNOTICE: All information contained herein is, and remains\nthe property of Adobe and its suppliers, if any. The intellectual\nand technical concepts contained herein are proprietary to Adobe\nand its suppliers and are protected by all applicable intellectual\nproperty laws, including trade secret and copyright laws.\nDissemination of this information or reproduction of this material\nis strictly forbidden unless prior written permission is obtained\nfrom Adobe.\n*/\n\n/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-price-range .elsie-price {\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-price-range__label {\n font: var(--type-headline-2-strong-font);\n letter-spacing: var(--type-body-1-strong-letter-spacing);\n margin-left: 5px;\n margin-right: 5px;\n}\n",""]);const l=i},4330:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n.pdp-product {\n display: grid;\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n margin: 0 var(--grid-1-margins);\n}\n.pdp-product__gallery-column {\n display: none;\n}\n.pdp-product__content-column {\n grid-column: 1 / span 4;\n color: var(--color-neutral-800);\n}\n.pdp-product__header {\n display: grid;\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-medium);\n}\n.pdp-product__title {\n font: var(--type-display-3-font);\n letter-spacing: var(--type-display-3-letter-spacing);\n margin: 0;\n}\n.pdp-product__sku {\n font: var(--type-body-1-default-font);\n max-width: 600px;\n}\n.pdp-product__prices {\n display: flex;\n margin-top: var(--spacing-medium);\n}\n.pdp-product__out-of-stock__text {\n font: var(--type-headline-2-strong-font);\n}\n.pdp-product__options {\n grid-column: 1 / span 4;\n}\n.pdp-product__price,\n.pdp-product__price-special {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__sku,\n.pdp-product__price-special,\n.pdp-product__out-of-stock__text {\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n.pdp-product__short_description,\n.pdp-product__attributes {\n font: var(--type-body-1-strong-font);\n letter-spacing: var(--type-body-1-strong-letter-spacing);\n margin-bottom: var(--spacing-small);\n}\n.pdp-product__description,\n.pdp-product__attributes li {\n font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n.pdp-product__attributes {\n margin-top: var(--spacing-xsmall);\n}\n.pdp-product__short_description p,\n.pdp-product__description p,\n.pdp-product__attributes li p {\n margin: 0;\n}\n.pdp-product__short_description figure,\n.pdp-product__description figure {\n margin: 0;\n}\n.pdp-product__short_description img,\n.pdp-product__description img {\n max-width: 100%;\n}\n.pdp-product__images--carousel {\n width: 100%;\n max-height: 60vh;\n}\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n.pdp-product__buttons {\n display: grid;\n grid-auto-rows: max-content;\n grid-gap: var(--grid-1-gutters);\n}\n.pdp-product__buttons a {\n text-align: center;\n}\n.pdp-product__buttons a:hover {\n text-decoration: none;\n}\n.pdp-product__overlay .pdp-overlay__content {\n width: 100%;\n height: 100%;\n}\n.pdp-product__overlay__carousel {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n}\n.pdp-product__overlay__carousel img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n.pdp-product__quantity {\n grid-column: 1 / span 4;\n}\n.pdp-product__buttons {\n grid-column: 1 / span 4;\n}\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n position: relative;\n }\n .pdp-product__column-container {\n position: relative;\n display: flex;\n }\n .pdp-product__column-body {\n position: sticky;\n bottom: 30%;\n align-self: flex-end;\n }\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n }\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n padding-top: var(--spacing-medium);\n }\n .pdp-product__images--carousel {\n display: none;\n }\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n .pdp-product__quantity {\n grid-column: 1 / span 2;\n }\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n }\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},5957:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-swatches {\n display: grid;\n grid-auto-flow: row;\n grid-gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n}\n\n.pdp-swatches__field {\n display: grid;\n font: var(--type-body-2-strong-font);\n grid-auto-rows: max-content;\n gap: var(--spacing-xsmall);\n}\n\n.pdp-swatches__field__label {\n font: var(--type-details-caption-1-font);\n letter-spacing: var(--type-details-caption-1-letter-spacing);\n color: var(--color-neutral-800);\n}\n\n.pdp-swatches__options {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-xsmall);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=i},6765:(t,n,r)=>{var o,a;t.exports=(o={events:()=>e.events},a={},r.d(a,o),a)},9699:(e,n,r)=>{var o,a;e.exports=(o={FetchGraphQL:()=>t.FetchGraphQL},a={},r.d(a,o),a)},4853:(e,t,r)=>{var o,a;e.exports=(o={Children:()=>n.Children,useCallback:()=>n.useCallback,useEffect:()=>n.useEffect,useMemo:()=>n.useMemo,useRef:()=>n.useRef,useState:()=>n.useState},a={},r.d(a,o),a)},5437:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},4142:(e,t,n)=>{var r,a;e.exports=(r={Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs},a={},n.d(a,r),a)},3474:(e,t,n)=>{var r,o;e.exports=(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},o={},n.d(o,r),o)}};import i from"../runtime.js";import*as l from"../315.js";i.C(l);import*as c from"../895.js";i.C(c);import*as s from"../713.js";i.C(s);import*as u from"./ProductDetails.js";i.C(u);var p=(6512,i(i.s=6512)),d=p.f,f=p.Z;export{d as ProductDetails,f as default};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-pdp", "version": "0.1.0", "dependencies": { "@dropins/elsie": "~0.5.0" } }
1
+ {"name": "@dropins/storefront-pdp", "version": "0.2.0-beta2", "@dropins/elsie": "~0.11.0"}
package/render.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see render.js.LICENSE.txt */
2
- import*as e from"@dropins/elsie/event-bus.js";import*as t from"@dropins/elsie/preact-compat.js";import*as r from"@dropins/elsie/preact-hooks.js";import*as n from"@dropins/elsie/preact-jsx-runtime.js";import*as o from"@dropins/elsie/preact.js";export const id=70;export const ids=[70];export const modules={597:(e,t,r)=>{r.d(t,{s:()=>xe});var n=r(474),o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,a=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i=/[\s\n\\/='"\0<>]/,l=/^xlink:?./,s=/["&<]/;function c(e){if(!1===s.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var u=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},f=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},p={},d=/([A-Z])/g;function y(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:p[r]||(p[r]=r.replace(d,"-$1").toLowerCase()),t="number"==typeof n&&!1===o.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function m(e,t){return Array.isArray(t)?t.reduce(m,e):null!=t&&!1!==t&&e.push(t),e}function h(){this.__d=!0}function b(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:[]}}function v(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var g=[];function x(e,t,r,o,s,p){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);var d=r.pretty,h=d&&"string"==typeof d?d:"\t";if(Array.isArray(e)){for(var _="",w=0;w<e.length;w++)d&&w>0&&(_+="\n"),_+=x(e[w],t,r,o,s,p);return _}if(void 0!==e.constructor)return"";var O,j=e.type,S=e.props,A=!1;if("function"==typeof j){if(A=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(j===n.Fragment){var k=[];return m(k,e.props.children),x(k,t,r,!1!==r.shallowHighOrder,s,p)}var E,P=e.__c=b(e,t);n.options.__b&&n.options.__b(e);var L=n.options.__r;if(j.prototype&&"function"==typeof j.prototype.render){var C=v(j,t);(P=e.__c=new j(S,C)).__v=e,P._dirty=P.__d=!0,P.props=S,null==P.state&&(P.state={}),null==P._nextState&&null==P.__s&&(P._nextState=P.__s=P.state),P.context=C,j.getDerivedStateFromProps?P.state=Object.assign({},P.state,j.getDerivedStateFromProps(P.props,P.state)):P.componentWillMount&&(P.componentWillMount(),P.state=P._nextState!==P.state?P._nextState:P.__s!==P.state?P.__s:P.state),L&&L(e),E=P.render(P.props,P.state,P.context)}else for(var D=v(j,t),I=0;P.__d&&I++<25;)P.__d=!1,L&&L(e),E=j.call(e.__c,S,D);return P.getChildContext&&(t=Object.assign({},t,P.getChildContext())),n.options.diffed&&n.options.diffed(e),x(E,t,r,!1!==r.shallowHighOrder,s,p)}j=(O=j).displayName||O!==Function&&O.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=g.length;n--;)if(g[n]===e){r=n;break}r<0&&(r=g.push(e)-1),t="UnnamedComponent"+r}return t}(O)}var M,T,F="<"+j;if(S){var N=Object.keys(S);r&&!0===r.sortAttributes&&N.sort();for(var R=0;R<N.length;R++){var H=N[R],Z=S[H];if("children"!==H){if(!i.test(H)&&(r&&r.allAttributes||"key"!==H&&"ref"!==H&&"__self"!==H&&"__source"!==H)){if("defaultValue"===H)H="value";else if("defaultChecked"===H)H="checked";else if("defaultSelected"===H)H="selected";else if("className"===H){if(void 0!==S.class)continue;H="class"}else s&&l.test(H)&&(H=H.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===H){if(S.for)continue;H="for"}"style"===H&&Z&&"object"==typeof Z&&(Z=y(Z)),"a"===H[0]&&"r"===H[1]&&"boolean"==typeof Z&&(Z=String(Z));var G=r.attributeHook&&r.attributeHook(H,Z,t,r,A);if(G||""===G)F+=G;else if("dangerouslySetInnerHTML"===H)T=Z&&Z.__html;else if("textarea"===j&&"value"===H)M=Z;else if((Z||0===Z||""===Z)&&"function"!=typeof Z){if(!(!0!==Z&&""!==Z||(Z=H,r&&r.xml))){F=F+" "+H;continue}if("value"===H){if("select"===j){p=Z;continue}"option"===j&&p==Z&&void 0===S.selected&&(F+=" selected")}F=F+" "+H+'="'+c(Z)+'"'}}}else M=Z}}if(d){var U=F.replace(/\n\s*/," ");U===F||~U.indexOf("\n")?d&&~F.indexOf("\n")&&(F+="\n"):F=U}if(F+=">",i.test(j))throw new Error(j+" is not a valid HTML tag name in "+F);var $,W=a.test(j)||r.voidElements&&r.voidElements.test(j),Q=[];if(T)d&&f(T)&&(T="\n"+h+u(T,h)),F+=T;else if(null!=M&&m($=[],M).length){for(var z=d&&~F.indexOf("\n"),J=!1,B=0;B<$.length;B++){var V=$[B];if(null!=V&&!1!==V){var q=x(V,t,r,!0,"svg"===j||"foreignObject"!==j&&s,p);if(d&&!z&&f(q)&&(z=!0),q)if(d){var Y=q.length>0&&"<"!=q[0];J&&Y?Q[Q.length-1]+=q:Q.push(q),J=Y}else Q.push(q)}}if(d&&z)for(var K=Q.length;K--;)Q[K]="\n"+h+u(Q[K],h)}if(Q.length||T)F+=Q.join("");else if(r&&r.xml)return F.substring(0,F.length-1)+" />";return!W||$||T?(d&&~F.indexOf("\n")&&(F+="\n"),F=F+"</"+j+">"):F=F.replace(/>$/," />"),F}var _={shallow:!0};O.render=O;var w=[];function O(e,t,r){t=t||{};var o=n.options.__s;n.options.__s=!0;var a,i=(0,n.h)(n.Fragment,null);return i.__k=[e],a=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?x(e,t,r):P(e,t,!1,void 0,i),n.options.__c&&n.options.__c(e,w),n.options.__s=o,w.length=0,a}function j(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,n.h)(null,null,e):e}function S(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function A(e,t){return"style"===e&&null!=t&&"object"==typeof t?y(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var k=Array.isArray,E=Object.assign;function P(e,t,r,o,l){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);if(k(e)){var s="";l.__k=e;for(var u=0;u<e.length;u++)s+=P(e[u],t,r,o,l),e[u]=j(e[u]);return s}if(void 0!==e.constructor)return"";e.__=l,n.options.__b&&n.options.__b(e);var f=e.type,p=e.props;if("function"==typeof f){var d;if(f===n.Fragment)d=p.children;else{d=f.prototype&&"function"==typeof f.prototype.render?function(e,t){var r=e.type,o=v(r,t),a=new r(e.props,o);e.__c=a,a.__v=e,a.__d=!0,a.props=e.props,null==a.state&&(a.state={}),null==a.__s&&(a.__s=a.state),a.context=o,r.getDerivedStateFromProps?a.state=E({},a.state,r.getDerivedStateFromProps(a.props,a.state)):a.componentWillMount&&(a.componentWillMount(),a.state=a.__s!==a.state?a.__s:a.state);var i=n.options.__r;return i&&i(e),a.render(a.props,a.state,a.context)}(e,t):function(e,t){var r,o=b(e,t),a=v(e.type,t);e.__c=o;for(var i=n.options.__r,l=0;o.__d&&l++<25;)o.__d=!1,i&&i(e),r=e.type.call(o,e.props,a);return r}(e,t);var y=e.__c;y.getChildContext&&(t=E({},t,y.getChildContext()))}var m=P(d=null!=d&&d.type===n.Fragment&&null==d.key?d.props.children:d,t,r,o,e);return n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),m}var h,g,x="<";if(x+=f,p)for(var _ in h=p.children,p){var w=p[_];if(!("key"===_||"ref"===_||"__self"===_||"__source"===_||"children"===_||"className"===_&&"class"in p||"htmlFor"===_&&"for"in p||i.test(_)))if(w=A(_=S(_,r),w),"dangerouslySetInnerHTML"===_)g=w&&w.__html;else if("textarea"===f&&"value"===_)h=w;else if((w||0===w||""===w)&&"function"!=typeof w){if(!0===w||""===w){w=_,x=x+" "+_;continue}if("value"===_){if("select"===f){o=w;continue}"option"!==f||o!=w||"selected"in p||(x+=" selected")}x=x+" "+_+'="'+c(w)+'"'}}var O=x;if(x+=">",i.test(f))throw new Error(f+" is not a valid HTML tag name in "+x);var L="",C=!1;if(g)L+=g,C=!0;else if("string"==typeof h)L+=c(h),C=!0;else if(k(h)){e.__k=h;for(var D=0;D<h.length;D++){var I=h[D];if(h[D]=j(I),null!=I&&!1!==I){var M=P(I,t,"svg"===f||"foreignObject"!==f&&r,o,e);M&&(L+=M,C=!0)}}}else if(null!=h&&!1!==h&&!0!==h){e.__k=[j(h)];var T=P(h,t,"svg"===f||"foreignObject"!==f&&r,o,e);T&&(L+=T,C=!0)}if(n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),C)x+=L;else if(a.test(f))return O+" />";return x+"</"+f+">"}O.shallowRender=function(e,t){return O(e,t,_)};const L=O;var C=r(188);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function I(){I=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),l=new L(n||[]);return o(i,"_invoke",{value:A(e,r,l)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",y="executing",m="completed",h={};function b(){}function v(){}function g(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==r&&n.call(w,i)&&(x=w);var O=g.prototype=b.prototype=Object.create(x);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,l){var s=f(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==D(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function A(t,r,n){var o=p;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var s=k(l,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=f(t,r,n);if("normal"===c.type){if(o=n.done?m:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(D(t)+" is not iterable")}return v.prototype=g,o(O,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=c(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},j(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(O),c(O,s,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=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 new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){var n,o,a;n=e,o=t,a=r[t],(o=H(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r,n,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function N(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){F(a,n,o,i,l,"next",e)}function l(e){F(a,n,o,i,l,"throw",e)}i(void 0)}))}}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===D(t)?t:String(t)}var Z=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}var t,r,o;return t=e,r=[{key:"render",value:function(e,t){var r=this;return function(){var o=N(I().mark((function o(a){var i,l,s;return I().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e){o.next=2;break}throw new Error("Component is not defined");case 2:if(a){o.next=4;break}throw new Error("Root element is not defined");case 4:return o.next=6,null===(l=e.getInitialData)||void 0===l?void 0:l.call(e,t);case 6:if(o.t1=i=o.sent,o.t0=null!==o.t1,!o.t0){o.next=10;break}o.t0=void 0!==i;case 10:if(!o.t0){o.next=14;break}o.t2=i,o.next=15;break;case 14:o.t2={};case 15:s=o.t2,(0,n.render)((0,C.jsx)(r._provider.type,T(T({},r._provider.props),{},{children:(0,C.jsx)(e,T(T({},t),{},{initialData:s}))})),a);case 17:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()}},{key:"toString",value:(o=N(I().mark((function e(t,r,n){var o,a,i;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("Component is not defined");case 2:return e.next=4,null===(a=t.getInitialData)||void 0===a?void 0:a.call(t,r);case 4:if(e.t1=o=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==o;case 8:if(!e.t0){e.next=12;break}e.t2=o,e.next=13;break;case 12:e.t2={};case 13:return i=e.t2,e.abrupt("return",L((0,C.jsx)(this._provider.type,T(T({},this._provider.props),{},{children:(0,C.jsx)(t,T(T({},r),{},{initialData:i}))})),{},T({},n)));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return o.apply(this,arguments)})}],r&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),G=r(437),U=r(857),$=r.n(U),W=r(587);const Q=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Decrease Quantity","increaseLabel":"Increase Quantity","label":"Quantity"}}}'),z=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Diminuer la quantité","increaseLabel":"Augmenter la quantité","label":"Quantité"}}}');var J=r(724),B={default:Q,en_US:Q,fr_FR:z},V=r(892),q=r.n(V),Y=r(760),K=r.n(Y),X=r(311),ee=r.n(X),te=r(192),re=r.n(te),ne=r(60),oe=r.n(ne),ae=r(865),ie=r.n(ae),le=r(80),se={};se.styleTagTransform=ie(),se.setAttributes=re(),se.insert=ee().bind(null,"head"),se.domAPI=K(),se.insertStyleElement=oe(),q()(le.Z,se),le.Z&&le.Z.locals&&le.Z.locals;var ce=r(763),ue={};function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}ue.styleTagTransform=ie(),ue.setAttributes=re(),ue.insert=ee().bind(null,"head"),ue.domAPI=K(),ue.insertStyleElement=oe(),q()(ce.Z,ue),ce.Z&&ce.Z.locals&&ce.Z.locals;var pe=["lang","langDefinitions","className","children"];function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?de(Object(r),!0).forEach((function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):de(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var me=function(e){var t,r=e.lang,n=void 0===r?"en_US":r,o=e.langDefinitions,a=void 0===o?{}:o,i=e.className,l=e.children,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,pe),c=$()(a.default,null!==(t=a[n])&&void 0!==t?t:{}),u=$()(function(e){return $()(B.default,B[e]||{})}(n),c);return(0,C.jsx)(J.Pj,{definition:u,children:(0,C.jsx)("div",ye(ye({},s),{},{className:(0,W.S)(["elsie-base-design",i]),children:l}))})},he=r(765);function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}he.events.enableLogger(!0);var ve={default:r(770),en_US:r(770),fr_FR:r(842)},ge=function(e){var t=e.children,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?be(e,t):void 0}}(e,t)||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.")}()}((0,G.useState)("en_US"),2),n=r[0],o=r[1];return(0,G.useEffect)((function(){var e=he.events.on("locale",(function(e){o(e)}),{eager:!0});return function(){e.off()}}),[]),(0,C.jsx)(me,{lang:n,langDefinitions:ve,children:t})},xe=new Z((0,C.jsx)(ge,{}))},80:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,"/**\n * Do not edit directly\n * Generated on Fri, 14 Jul 2023 19:01:45 GMT\n */\n\n.elsie-base-design {\n --color-brand-500: #454545; /* Brand buttons default - AAA */\n --color-brand-600: #383838; /* Brand buttons on hover - AAA */\n --color-brand-700: #2b2b2b; /* Brand buttons selected */\n --color-neutral-50: #ffffff; /* Lightest surface / Text & components On Dark surface - AAA */\n --color-neutral-100: #fafafa; /* Light surface - AAA */\n --color-neutral-200: #f5f5f5; /* Light surface - AAA */\n --color-neutral-300: #e8e8e8; /* Disabled surfaces - AAA */\n --color-neutral-400: #d6d6d6; /* Ornamental elements (ie. Divider) */\n --color-neutral-500: #b8b8b8; /* Disabled text */\n --color-neutral-600: #8f8f8f; /* Component borders (ie. Text field border) - AA Large text */\n --color-neutral-700: #666666; /* Secondary text - AAA */\n --color-neutral-800: #3d3d3d; /* Default text - AAA */\n --color-neutral-900: #292929; /* Default text on hover - AAA */\n --color-positive-200: #eff5ef; /* Semantic positive surface - AA Large text */\n --color-positive-500: #7fb078; /* Semantic positive surface */\n --color-positive-800: #53824c; /* Semantic Positive text - On Light AA */\n --color-informational-200: #eeeffb; /* Semantic informational surface - AA Large text */\n --color-informational-500: #6978d9; /* Semantic informational surface */\n --color-informational-800: #5d6dd6; /* Semantic informational text, Highlights - On Light AA */\n --color-warning-200: #fdf3e9; /* Semantic warning surface - AA Large text */\n --color-warning-500: #e79f5c; /* Semantic warning surface */\n --color-warning-800: #cc7a2e; /* Semantic warning text - On Light AA */\n --color-alert-200: #ffebeb; /* Semantic alert surface - AA Large text */\n --color-alert-500: #db7070; /* Semantic alert surface */\n --color-alert-800: #c35050; /* Semantic alert text - On light AA */\n --color-opacity-16: rgba(255, 255, 255, 0.16);\n --color-opacity-24: rgba(255, 255, 255, 0.24);\n --grid-1-columns: 4;\n --grid-1-margins: 0;\n --grid-1-gutters: 16px;\n --grid-2-columns: 12;\n --grid-2-margins: 0;\n --grid-2-gutters: 16px;\n --grid-3-columns: 12;\n --grid-3-margins: 0;\n --grid-3-gutters: 24px;\n --grid-4-columns: 12;\n --grid-4-margins: 0;\n --grid-4-gutters: 24px;\n --grid-5-columns: 12;\n --grid-5-margins: 0;\n --grid-5-gutters: 24px;\n --shape-border-radius-1: 3px;\n --shape-border-radius-2: 8px;\n --shape-border-radius-3: 24px;\n --shape-border-width-1: 1px;\n --shape-border-width-2: 1.5px;\n --shape-border-width-3: 2px;\n --shape-border-width-4: 4px;\n --shape-shadow-1: 0 0 16px 0 rgba(0, 0, 0, 0.16); /* Elevated panels (ie. Page side panel, Mobile bottom bar) */\n --shape-shadow-2: 0 2px 16px 0 rgba(0, 0, 0, 0.16); /* Elevated dialogs (ie. Modal) */\n --shape-shadow-3: 0 2px 3px 0 rgba(0, 0, 0, 0.16); /* Elevated container (ie. Card) */\n --shape-icon-stroke-1: 1px;\n --shape-icon-stroke-2: 1.5px;\n --shape-icon-stroke-3: 2px;\n --shape-icon-stroke-4: 4px;\n --spacing-xxsmall: 4px;\n --spacing-xsmall: 8px;\n --spacing-small: 16px;\n --spacing-medium: 24px;\n --spacing-big: 32px;\n --spacing-xbig: 40px;\n --spacing-xxbig: 48px;\n --spacing-large: 64px;\n --spacing-xlarge: 72px;\n --spacing-xxlarge: 96px;\n --spacing-huge: 120px;\n --spacing-xhuge: 144px;\n --spacing-xxhuge: 192px;\n --type-base-font-family: system-ui, sans-serif;\n --type-display-1-font: normal normal 300 60px/72px\n var(--type-base-font-family); /* Hero title */\n --type-display-1-letter-spacing: 0.04em;\n --type-display-2-font: normal normal 300 48px/56px\n var(--type-base-font-family); /* Banner title */\n --type-display-2-letter-spacing: 0.04em;\n --type-display-3-font: normal normal 300 34px/40px\n var(--type-base-font-family); /* Desktop & tablet section title */\n --type-display-3-letter-spacing: 0.04em;\n --type-headline-1-font: normal normal 400 24px/32px\n var(--type-base-font-family); /* Desktop & tablet page title */\n --type-headline-1-letter-spacing: 0.04em;\n --type-headline-2-default-font: normal normal 300 20px/24px\n var(--type-base-font-family); /* Rail title */\n --type-headline-2-default-letter-spacing: 0.04em;\n --type-headline-2-strong-font: normal normal 400 20px/24px\n var(--type-base-font-family); /* Mobile page and section title */\n --type-headline-2-strong-letter-spacing: 0.04em;\n --type-body-1-default-font: normal normal 300 16px/24px\n var(--type-base-font-family); /* Normal text paragraph */\n --type-body-1-default-letter-spacing: 0.04em;\n --type-body-1-strong-font: normal normal 400 16px/24px\n var(--type-base-font-family);\n --type-body-1-strong-letter-spacing: 0.04em;\n --type-body-1-emphasized-font: normal normal 700 16px/24px\n var(--type-base-font-family);\n --type-body-1-emphasized-letter-spacing: 0.04em;\n --type-body-2-default-font: normal normal 300 14px/20px\n var(--type-base-font-family);\n --type-body-2-default-letter-spacing: 0.04em;\n --type-body-2-strong-font: normal normal 400 14px/20px\n var(--type-base-font-family);\n --type-body-2-strong-letter-spacing: 0.04em;\n --type-body-2-emphasized-font: normal normal 700 14px/20px\n var(--type-base-font-family);\n --type-body-2-emphasized-letter-spacing: 0.04em;\n --type-button-1-font: normal normal 400 20px/26px var(--type-base-font-family); /* Primary button text */\n --type-button-1-letter-spacing: 0.08em;\n --type-button-2-font: normal normal 400 16px/24px var(--type-base-font-family); /* Small buttons */\n --type-button-2-letter-spacing: 0.08em;\n --type-details-caption-1-font: normal normal 400 12px/16px\n var(--type-base-font-family);\n --type-details-caption-1-letter-spacing: 0.08em;\n --type-details-caption-2-font: normal normal 300 12px/16px\n var(--type-base-font-family);\n --type-details-caption-2-letter-spacing: 0.08em;\n --type-details-overline-font: normal normal 700 12px/20px\n var(--type-base-font-family);\n --type-details-overline-letter-spacing: 0.16em;\n}\n",""]);const l=i},763:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,".elsie-base-design a {\n --textColor: var(--color-brand-500);\n --textFont: var(--type-body-1-strong-font)\n --textLetterSpacing: var(--type-body-1-strong-letter-spacing);\n color: var(--textColor);\n font: var(--textFont);\n letter-spacing: var(--textLetterSpacing);\n text-decoration: none;\n}\n\n.elsie-base-design a:hover {\n --textColor: var(--color-brand-700);\n text-decoration: solid underline var(--textColor);\n text-underline-offset: 6px;\n}\n\n.elsie-base-design a:focus-visible {\n outline: solid var(--shape-border-width-4) var(--color-neutral-400);\n border: var(--shape-border-width-1) solid var(--color-neutral-800); \n border-radius: var(--shape-border-radius-1);\n}\n",""]);const l=i},857:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var o={};return r.isMergeableObject(e)&&a(e).forEach((function(t){o[t]=n(e[t],r)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):o[a]=n(t[a],r))})),o}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},765:(t,r,n)=>{var o,a;t.exports=(o={events:()=>e.events},a={},n.d(a,o),a)},853:(e,r,n)=>{var o,a;e.exports=(o={Children:()=>t.Children,useEffect:()=>t.useEffect,useMemo:()=>t.useMemo,useState:()=>t.useState},a={},n.d(a,o),a)},437:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},142:(e,t,r)=>{var o,a;e.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},a={},r.d(a,o),a)},474:(e,t,r)=>{var n,a;e.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},a={},r.d(a,n),a)},770:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"AddToWishlist":{"label":"Add to Wishlist"},"Details":{"label":"Details"},"RegularPrice":{"label":"Regular Price"},"SpecialPrice":{"label":"Special Price"},"Image":{"label":"{product} Image {key} of {total}"}}}}')},842:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Quantité D\'articles"},"OutOfStock":{"label":"Rupture de stock"},"AddToCart":{"label":"Ajouter au Panier"},"AddToWishlist":{"label":"Ajouter à la Liste de Souhaits"},"Details":{"label":"Détails"},"RegularPrice":{"label":"Prix habituel"},"SpecialPrice":{"label":"Prix spécial"},"Image":{"label":"{produit} Image {clé} de {totale}"}}}}')}};import a from"./runtime.js";import*as i from"./757.js";a.C(i);import*as l from"./render.js";a.C(l);var s=(597,a(a.s=597)).s;export{s as render};
2
+ import*as t from"@dropins/elsie/event-bus.js";import*as e from"@dropins/elsie/preact-compat.js";import*as r from"@dropins/elsie/preact-hooks.js";import*as n from"@dropins/elsie/preact-jsx-runtime.js";import*as o from"@dropins/elsie/preact.js";export const id=70;export const ids=[70];export const modules={4114:(t,e,r)=>{function n(t){return n="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},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),u=new P(n||[]);return i(a,"_invoke",{value:O(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function v(){}function d(){}function y(){}var m={};s(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==e&&r.call(b,u)&&(m=b);var w=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(i,a,u,c){var l=p(t[i],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return o("throw",t,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:d,configurable:!0}),d.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(j.prototype),s(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,u,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}r.d(e,{j:()=>f,v:()=>p});var l,s,f=new(r(743).m)({init:(l=o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={},f.config.setConfig(a(a({},r),e));case 2:case"end":return t.stop()}}),t)})),s=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=l.apply(t,e);function i(t){c(o,r,n,i,a,"next",t)}function a(t){c(o,r,n,i,a,"throw",t)}i(void 0)}))},function(t){return s.apply(this,arguments)}),listeners:function(){return[]}}),p=f.config},4560:(t,e,r)=>{r.d(e,{s:()=>v});var n=r(3516),o=r(5437),i=r(9978),a=r(6765),u=r(4114),c=r(1857),l=r.n(c),s=r(7188);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}a.events.enableLogger(!0);var p={default:r(7770)},h=function(t){var e,r,n,c=t.children,h=(r=(0,o.useState)(),n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(r,n)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(r,n)||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.")}()),v=h[0],d=h[1],y=null===(e=u.v.getConfig())||void 0===e?void 0:e.langDefinitions;(0,o.useEffect)((function(){var t=a.events.on("locale",(function(t){t!==v&&d(t)}),{eager:!0});return function(){null==t||t.off()}}),[v]);var m=l()(p,null!=y?y:{});return(0,s.jsx)(i.J,{lang:v,langDefinitions:m,children:c})},v=new n.H((0,s.jsx)(h,{}))},6765:(e,r,n)=>{var o,i;e.exports=(o={events:()=>t.events},i={},n.d(i,o),i)},4853:(t,r,n)=>{var o,i;t.exports=(o={Children:()=>e.Children,useCallback:()=>e.useCallback,useEffect:()=>e.useEffect,useMemo:()=>e.useMemo,useRef:()=>e.useRef,useState:()=>e.useState},i={},n.d(i,o),i)},5437:(t,e,n)=>{var o,i;t.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},i={},n.d(i,o),i)},4142:(t,e,r)=>{var o,i;t.exports=(o={Fragment:()=>n.Fragment,jsx:()=>n.jsx,jsxs:()=>n.jsxs},i={},r.d(i,o),i)},3474:(t,e,r)=>{var n,i;t.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},i={},r.d(i,n),i)},7770:t=>{t.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"Details":{"label":"Details"},"RegularPrice":{"label":"Regular Price"},"SpecialPrice":{"label":"Special Price"},"PriceRange":{"From":{"label":"From"},"To":{"label":"to"}},"Image":{"label":"{product} Image {key} of {total}"}},"Swatches":{"Required":{"label":"Required"}},"Carousel":{"label":"Carousel","Next":{"label":"Next"},"Previous":{"label":"Previous"},"Slide":{"label":"Slide"},"Controls":{"label":"Carousel Controls","Button":{"label":"Show slide {key} of {total}"}}},"Overlay":{"Close":{"label":"Close"}}}}')}};import i from"./runtime.js";import*as a from"./315.js";i.C(a);import*as u from"./650.js";i.C(u);import*as c from"./render.js";i.C(c);var l=(4560,i(i.s=4560)).s;export{l as render};
package/runtime.js CHANGED
@@ -1 +1 @@
1
- var r,e={},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var a=o[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}t.m=e,t.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return t.d(e,{a:e}),e},t.d=(r,e)=>{for(var o in e)t.o(e,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);export default t;r={666:0},t.C=e=>{var o,n,{ids:a,modules:d,runtime:i}=e,l=0;for(o in d)t.o(d,o)&&(t.m[o]=d[o]);for(i&&i(t);l<a.length;l++)n=a[l],t.o(r,n)&&r[n]&&r[n][0](),r[a[l]]=0},t.nc=void 0;
1
+ var e,r={},o={};function t(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={id:e,exports:{}};return r[e].call(a.exports,a,a.exports,t),a.exports}t.m=r,t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};export default t;e={666:0},t.C=r=>{var o,n,{ids:a,modules:d,runtime:l}=r,i=0;for(o in d)t.o(d,o)&&(t.m[o]=d[o]);for(l&&l(t);i<a.length;i++)n=a[i],t.o(e,n)&&e[n]&&e[n][0](),e[a[i]]=0},t.nc=void 0;