@dropins/storefront-pdp 0.2.0-beta1 → 0.2.1-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/315.js +1 -0
- package/480.js +2 -0
- package/619.js +2 -0
- package/713.js +2 -0
- package/713.js.LICENSE.txt +1 -0
- package/api.js +1 -1
- package/containers/ProductDetails.js +1 -1
- package/package.json +1 -1
- package/render.js +1 -1
- package/153.js +0 -2
- package/650.js +0 -2
- package/757.js +0 -1
- /package/{153.js.LICENSE.txt → 480.js.LICENSE.txt} +0 -0
- /package/{650.js.LICENSE.txt → 619.js.LICENSE.txt} +0 -0
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={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:()=>d});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 u(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,u=[],c=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,r)||function(t,r){if(t){if("string"==typeof t)return c(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)?c(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 c(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 h(t,r,e){return r&&s(t.prototype,r),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(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 d=h((function t(r){var e=this,n=r.init,o=r.listeners;p(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)}})),m=function(){function t(){p(this,t)}return h(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=u(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=u(t,2),n=e[0],o=e[1];null===(r=n.init)||void 0===r||r.call(n,o)}))}}]),t}();y(m,"_initializers",[]),y(m,"_mounted",!1)},5377:(r,e,n)=>{n.d(e,{gX:()=>s,iE:()=>h,XV:()=>l,gO:()=>u,mv:()=>c,yg:()=>f});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),u=a.setEndpoint,c=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,f=a.setFetchGraphQlHeaders,s=a.fetchGraphQl,h=a.getConfig},2675:(t,r,e)=>{e.d(r,{b:()=>u});var n=e(5377);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 t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function s(t,r,e,o){var i=r&&r.prototype instanceof y?r:y,a=Object.create(i.prototype),u=new P(o||[]);return n(a,"_invoke",{value:E(t,e,u)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function y(){}function v(){}function d(){}var m={};f(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(_([])));b&&b!==r&&e.call(b,u)&&(m=b);var w=d.prototype=y.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function i(n,a,u,c){var l=h(t[n],t,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==o(s)&&e.call(s,"__await")?r.resolve(s.__await).then((function(t){i("next",t,u,c)}),(function(t){i("throw",t,u,c)})):r.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return i("throw",t,u,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function E(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 u=x(a,e);if(u){if(u===p)continue;return u}}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 c=h(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function x(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,x(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function _(t){if(t){var r=t[u];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=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:v,configurable:!0}),v.displayName=f(d,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,d):(t.__proto__=d,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),f(j.prototype,c,(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,u,(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=_,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(S),!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 u=e.call(i,"catchLoc"),c=e.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,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,p):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),p},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),S(e),p}},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;S(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),p}},t}function a(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}var u=function(){var t,r=(t=i().mark((function t(r){var e,o,a,u,c,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 u=t.sent,c=u.data,null==(l=null==c||null===(e=c.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 u(t){a(i,n,o,u,c,"next",t)}function c(t){a(i,n,o,u,c,"throw",t)}u(void 0)}))});return function(t){return r.apply(this,arguments)}}()},693:(t,r,e)=>{e.d(r,{vc:()=>n.v,gX:()=>o.gX,iE:()=>o.iE,b6:()=>i.b,j2:()=>n.j,XV:()=>o.XV,gO:()=>o.gO,mv:()=>o.mv,yg:()=>o.yg});var n=e(4114),o=e(5377),i=e(2675)},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:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,a=Object.create(o.prototype),u=new P(n||[]);return i(a,"_invoke",{value:E(t,e,u)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function y(){}function v(){}function d(){}var m={};f(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(_([])));b&&b!==r&&e.call(b,u)&&(m=b);var w=d.prototype=y.prototype=Object.create(m);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,u,c){var l=h(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,u,c)}),(function(t){o("throw",t,u,c)})):r.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return o("throw",t,u,c)}))}c(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 E(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 u=x(a,e);if(u){if(u===p)continue;return u}}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 c=h(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function x(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,x(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function _(t){if(t){var r=t[u];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=d,i(w,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:v,configurable:!0}),v.displayName=f(d,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,d):(t.__proto__=d,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),f(j.prototype,c,(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,u,(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=_,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(S),!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 u=e.call(i,"catchLoc"),c=e.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,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,p):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),p},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),S(e),p}},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;S(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),p}},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){u(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 u(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 c(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}e.d(r,{j:()=>s,v:()=>h});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){c(o,e,n,i,a,"next",t)}function a(t){c(o,e,n,i,a,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)}),listeners:function(){return[]}}),h=s.config}};import r from"./runtime.js";import*as e from"./api.js";r.C(e);var n=(693,r(r.s=693)),o=n.vc,i=n.gX,a=n.iE,u=n.b6,c=n.j2,l=n.XV,f=n.gO,s=n.mv,h=n.yg;export{o as config,i as fetchGraphQl,a as getConfig,u as getProductData,c 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,(i=o.key,a=void 0,a=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,r||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}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,n;return r=t,(e=[{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(t){this.config=t}}])&&o(r.prototype,e),n&&o(r,n),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)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,r||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");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)}})),g=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(g,"_initializers",[]),y(g,"_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 g={};f(g,c,(function(){return this}));var d=Object.getPrototypeOf,b=d&&d(d(_([])));b&&b!==r&&e.call(b,c)&&(g=b);var w=m.prototype=y.prototype=Object.create(g);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 k()}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,r||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");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)=>{r.exports=(t=>{var r={};return n.d(r,t),r})({FetchGraphQL:()=>t.FetchGraphQL})}};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,i=(o=1195,r(r.s=o)),a=i.vc,c=i.gX,u=i.iE,l=i.b6,f=i.R3,s=i.j2,p=i.XV,h=i.gO,y=i.mv,v=i.yg;export{a as config,c as fetchGraphQl,u as getConfig,l as getProductData,f as getRefinedProduct,s as initialize,p as removeFetchGraphQlHeader,h as setEndpoint,y as setFetchGraphQlHeader,v 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 e from"@dropins/elsie/event-bus.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={5377:(e,n,r)=>{r.d(n,{gX:()=>p,iE:()=>d,XV:()=>u,gO:()=>l,mv:()=>c,yg:()=>s});var o,a,i=(new((o={FetchGraphQL:()=>t.FetchGraphQL},a={},r.d(a,o),a).FetchGraphQL)).getMethods(),l=i.setEndpoint,c=i.setFetchGraphQlHeader,u=i.removeFetchGraphQlHeader,s=i.setFetchGraphQlHeaders,p=i.fetchGraphQl,d=i.getConfig},2675:(t,e,n)=>{n.d(e,{b:()=>l});var r=n(5377);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 t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),l=new k(o||[]);return r(i,"_invoke",{value:j(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function y(){}function m(){}var v={};s(v,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==e&&n.call(b,l)&&(v=b);var _=m.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function a(r,i,l,c){var u=d(t[r],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==o(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){a("next",t,l,c)}),(function(t){a("throw",t,l,c)})):e.resolve(p).then((function(t){s.value=t,l(s)}),(function(t){return a("throw",t,l,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){a(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function j(t,e,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=O(i,n);if(l){if(l===f)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=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return y.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(p(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(_),s(_,u,"Generator"),s(_,l,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=E,k.prototype={constructor:k,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(P),!t)for(var e in this)"t"===e.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.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(t,e){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"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function i(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}var l=function(){var t,e=(t=a().mark((function t(e){var n,o,i,l,c,u,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,r.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:[e]}});case 2:return l=t.sent,c=l.data,null==(u=null==c||null===(n=c.products)||void 0===n?void 0:n[0])||null===(o=u.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),null==(s=null==u||null===(i=u.attributes)||void 0===i?void 0:i.filter((function(t){var e=t.roles;return-1!==(null==e?void 0:e.indexOf("visible_in_pdp"))})))||s.map((function(t,e){var n=t.label,r=t.value;return r=r.toString().split(",").join(", "),u.attributes[e]={label:n,value:r}})),t.abrupt("return",u);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function l(t){i(a,r,o,l,c,"next",t)}function c(t){i(a,r,o,l,c,"throw",t)}l(void 0)}))});return function(t){return e.apply(this,arguments)}}()},3713:(t,e,n)=>{n.d(e,{f:()=>Nt,Z:()=>Nt});var r=n(4853),o=n(3889),a=n(746),i=n(1072),l=n(5894),c=n(9853),u=n(7373),s=n(5587),p=n(9724),d=n(1892),f=n.n(d),h=n(5760),y=n.n(h),m=n(8311),v=n.n(m),g=n(8192),b=n.n(g),_=n(8060),w=n.n(_),x=n(4865),j=n.n(x),O=n(9834),S={};S.styleTagTransform=j(),S.setAttributes=b(),S.insert=v().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=w(),f()(O.Z,S),O.Z&&O.Z.locals&&O.Z.locals;var P=n(7188);function k(t){return k="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},k(t)}var E=["children","gap","className","style"];function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===k(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var D=function(t){var e=t.children,n=t.gap,o=void 0===n?null:n,a=t.className,i=t.style,l=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,E);return(0,P.jsx)("div",A(A({},l),{},{className:(0,s.S)(["pdp-gallery-grid",a]),style:A({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},i),children:r.Children.map(e,(function(t,e){return(0,P.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,P.jsx)(t.type,A(A({},t.props),{},{loading:0===e?"eager":"lazy"}))},e)}))}))},C=n(7654),I=n(8991),T=n(9188),X={};function M(t){return M="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},M(t)}X.styleTagTransform=j(),X.setAttributes=b(),X.insert=v().bind(null,"head"),X.domAPI=y(),X.insertStyleElement=w(),f()(T.Z,X),T.Z&&T.Z.locals&&T.Z.locals;var Z=["show","scrollbar","peak","arrows","controls","loop","gap","direction","width","height","defaultIndex","className","children"];function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==M(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===M(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t){return function(t){if(Array.isArray(t))return H(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||B(t)||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 R(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,e)||B(t,e)||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(t,e){if(t){if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Q=function(t){var e=t.show,n=void 0===e?1:e,o=t.scrollbar,a=void 0!==o&&o,l=t.peak,u=void 0!==l&&l,d=t.arrows,f=void 0!==d&&d,h=t.controls,y=void 0!==h&&h,m=t.loop,v=void 0!==m&&m,g=t.gap,b=void 0===g?null:g,_=t.direction,w=void 0===_?"horizontal":_,x=t.width,j=void 0===x?"100%":x,O=t.height,S=void 0===O?"100%":O,k=t.defaultIndex,E=void 0===k?0:k,L=t.className,A=t.children,N=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Z),D=(0,p.XK)("PDP.Carousel.label").label,T=(0,p.XK)("PDP.Carousel.Slide.label").label,X=(0,p.XK)("PDP.Carousel.Previous.label").label,M=(0,p.XK)("PDP.Carousel.Next.label").label,G=(0,p.XK)("PDP.Carousel.Controls.label").label,F=(0,p.XK)("PDP.Carousel.Controls.Button.label").label,B=R((0,r.useState)((function(){return q(n)})),2),H=B[0],Q=B[1],W=Math.ceil(r.Children.toArray(A).length/H),U=u?24:0,V=b?{small:16,medium:24,large:64}[b]:0,Y=r.Children.toArray(A).length%H,$=R((0,r.useState)(v?E+1:E),2),J=$[0],tt=$[1],et=(0,r.useMemo)((function(){var t=r.Children.toArray(A).reduce((function(t,e,n){return n%H==0?[].concat(K(t),[[e]]):[].concat(K(t.slice(0,-1)),[[].concat(K(t[t.length-1]),[e])])}),[]);return v&&1!==t.length?v&&r.Children.toArray(A).length%H==0?[t[W-1]].concat(t).concat([t[0],t[1]]):[r.Children.toArray(A).slice(-H)].concat(t).concat([t[0],t[1]]):t}),[A,H,W,v]),nt=(0,r.useRef)(null);(0,r.useEffect)((function(){var t=document.body,e=new ResizeObserver((function(){var t=window.innerWidth,e=q(n,t);e!==H&&Q(e)}));return e.observe(t),function(){e.unobserve(t)}}),[H,n]);var rt=function t(e,n,r){var o=nt.current,a=U?o.offsetWidth-U:o.offsetWidth-U+V;if(Array.from(o.querySelectorAll("[data-index]")).filter((function(t){var e=Number(t.getAttribute("data-index"));return!isNaN(e)&&e>-1}))[e]){if(r){var i=0===e?W:0,l=a*(W+(Y||H)/H);return o.scrollLeft>=0&&o.scrollLeft<a?void t(1,!0):o.scrollLeft>l-a&&o.scrollLeft<=l?void t(W,!0):(o.style.scrollBehavior="auto",o.scrollLeft=0===i?0:l,void t(0===i?1:W,!0))}var c=(o.offsetWidth-V)/H*et[e].length-U;o.style.scrollBehavior=n?"smooth":"auto",o.scrollLeft=et[e].length===H?a*e:a*(e-1)+c}},ot=(0,r.useCallback)((function(){v?rt(J-1,!0,1===J):rt(J<=0?0:J-1,!0)}),[J,v,et.length]),at=(0,r.useCallback)((function(){var t=et.length-1;v?rt(J+1,!0,J===W):rt(J>=t?t:J+1,!0)}),[J,v,et.length,W]);(0,r.useEffect)((function(){var t=function(t){"ArrowLeft"===t.key&&(t.preventDefault(),ot()),"ArrowRight"===t.key&&(t.preventDefault(),at())};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[at,ot]),(0,r.useEffect)((function(){rt(v?E+1:E,!1)}),[E,v]);var it=(0,C.D)((function(){var t=nt.current,e=U?t.offsetWidth-U:t.offsetWidth-U+V,n=Math.ceil(t.scrollLeft/e);if(v){var r=e*(W+(Y||H)/H);if(Math.ceil(t.scrollLeft)>=Math.ceil(r))return t.style.scrollBehavior="auto",void(t.scrollLeft=1*t.offsetWidth+(Math.ceil(t.scrollLeft)-Math.ceil(r)-U));if(0===t.scrollLeft)return t.style.scrollBehavior="auto",void(t.scrollLeft=r-t.offsetWidth+U)}J!==n&&tt(n)}),20);return(0,r.useEffect)((function(){var t=nt.current;return null==t||t.addEventListener("scroll",it),function(){null==t||t.removeEventListener("scroll",it)}}),[it]),(0,P.jsxs)("div",z(z({role:"region","aria-roledescription":D,className:(0,s.S)(["pdp-carousel",["pdp-carousel--arrows",f],L])},N),{},{children:[f&&(0,P.jsx)(c.z,{className:(0,s.S)(["pdp-carousel__button","pdp-carousel__button--prev"]),variant:"tertiary","aria-label":X,onClick:ot,disabled:!v&&J<1,children:(0,P.jsx)(i.J,{className:(0,s.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--prev"]),size:"32",source:I.Z})}),(0,P.jsx)("div",{ref:nt,className:(0,s.S)(["pdp-carousel__wrapper","pdp-carousel__wrapper--".concat(w),["pdp-carousel__wrapper--scrollbar",a],["pdp-carousel__wrapper--peak",u]]),style:{"--width":j,"--height":S,"--gap":b?"var(--spacing-".concat(b,")"):"0px","--per-page":H},tabIndex:0,children:et.map((function(t,e){var n=t.length<H;return(0,P.jsx)("div",{role:"group","aria-roledescription":T,"data-index":e,className:(0,s.S)(["pdp-carousel__slide","pdp-carousel__slide--".concat(w),["pdp-carousel__slide--active",J===e],["pdp-carousel__slide--orphan",n]]),style:{"--length":t.length},children:t},e)}))}),f&&(0,P.jsx)(c.z,{className:(0,s.S)(["pdp-carousel__button","pdp-carousel__button--next"]),variant:"tertiary","aria-label":M,onClick:at,disabled:!v&&J>=et.length-1,children:(0,P.jsx)(i.J,{className:(0,s.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--next"]),size:"32",source:I.Z})}),y&&(0,P.jsx)("div",{role:"group","aria-label":G,className:"pdp-carousel__controls",children:(v?et.slice(0,W):et).map((function(t,e){var n=v?W:et.length,r=v?J-1===e:J===e;return(0,P.jsx)("button",{"aria-label":F.replace("{key}",String(e+1)).replace("{total}",String(n)),onClick:function(){rt(v?e+1:e,!0)},className:(0,s.S)(["pdp-carousel__controls__button",["pdp-carousel__controls__button--active",r]])},e)}))})]}))};function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("number"==typeof t)return t;var n=t.small,r=t.medium,o=t.large;return e>1024?o:e>786?r:n}var W=n(7498),U=n(7162),V={};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)}V.styleTagTransform=j(),V.setAttributes=b(),V.insert=v().bind(null,"head"),V.domAPI=y(),V.insertStyleElement=w(),f()(U.Z,V),U.Z&&U.Z.locals&&U.Z.locals;var $=["centered","onClose","className","children"];function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nt=function(t){var e=t.centered,n=t.onClose,o=t.className,a=t.children,i=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,$),l=(0,p.XK)("PDP.Overlay.Close.label").label,u=(0,r.useCallback)((function(){null==n||n()}),[n]);return(0,r.useEffect)((function(){var t=function(t){"Escape"===t.key&&u()};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}),[u]),(0,r.useEffect)((function(){var t=document.scrollingElement,e=t.style.overflow;return t.style.overflow="hidden",function(){t.style.overflow=e}}),[]),(0,P.jsxs)("div",tt(tt({},i),{},{className:(0,s.S)(["pdp-overlay",["pdp-overlay--centered",e],o]),children:[(0,P.jsx)("div",{className:"pdp-overlay__content",children:a}),(0,P.jsx)(c.z,{"aria-label":l,variant:"tertiary",className:"pdp-overlay__close-button",onClick:u,icon:(0,P.jsx)(W.Z,{})})]}))},rt=n(4330),ot={};function at(t){return at="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},at(t)}ot.styleTagTransform=j(),ot.setAttributes=b(),ot.insert=v().bind(null,"head"),ot.domAPI=y(),ot.insertStyleElement=w(),f()(rt.Z,ot),rt.Z&&rt.Z.locals&&rt.Z.locals;var it=["title","sku","outOfStock","hideSku","shortDescription","description","attributes","images","price","specialPrice","className","children","fields","actions"];function lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==at(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===at(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var pt=function(t){var e,n,o=t.title,a=t.sku,i=t.outOfStock,l=t.hideSku,c=t.shortDescription,u=t.description,d=t.attributes,f=t.images,h=t.price,y=t.specialPrice,m=t.className,v=(t.children,t.fields),g=t.actions,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,it),_=(0,p.XK)("PDP.Product.RegularPrice.label").label,w=(0,p.XK)("PDP.Product.SpecialPrice.label").label,x=(0,p.XK)("PDP.Product.OutOfStock.label").label,j=(0,p.XK)("PDP.Product.Details.label").label,O=(0,p.XK)("PDP.Product.Image.label").label,S=(e=(0,r.useState)(null),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,n)||function(t,e){if(t){if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}(e,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.")}()),k=S[0],E=S[1],L=null!=f&&f.length?f.map((function(t,e){return(0,P.jsx)(t.type,ct(ct({},t.props),{},{loading:0===e?"eager":"lazy","aria-label":null==O?void 0:O.replace("{product}",o).replace("{key}",String(e+1)).replace("{total}",String(f.length)),"aria-hidden":i,onClick:function(){return E(e)}}),e)})):(0,P.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0});return(0,P.jsxs)("div",ct(ct({},b),{},{className:(0,s.S)(["pdp-product",m]),children:[(0,P.jsx)("div",{className:"pdp-product__column-container pdp-product__gallery-column",children:(0,P.jsx)("div",{className:"pdp-product__column-body",children:(0,P.jsx)(D,{className:"pdp-product__images",gap:"small",children:L})})}),(0,P.jsx)("div",{className:"pdp-product__column-container pdp-product__content-column",children:(0,P.jsxs)("div",{className:"pdp-product__column-body",children:[(0,P.jsxs)("div",{className:"pdp-product__header",children:[(0,P.jsx)("h1",{className:"pdp-product__title",children:o}),!l&&a&&(0,P.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",a]}),(0,P.jsxs)("div",{className:"pdp-product__prices",children:[h&&(0,P.jsx)(h.type,ct(ct({},h.props),{},{className:(0,s.S)([h.props.className,"pdp-product__price",["pdp-product__price--grey",y]]),"aria-label":_})),y&&(0,P.jsx)(h.type,ct(ct({},y.props),{},{className:(0,s.S)([y.props.className,"pdp-product__price-special"]),"aria-label":w}))]})]}),(0,P.jsx)(Q,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:L}),(0,P.jsxs)("div",{className:(0,s.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",i]]),children:[i&&(0,P.jsx)("div",{className:"pdp-product__out-of-stock__text",children:x}),null==v?void 0:v.map((function(t,e){var n;return(0,P.jsx)(t.type,ct({ref:t.ref},t.props),null!==(n=t.key)&&void 0!==n?n:e)})),g&&(0,P.jsx)(g.type,ct(ct({ref:g.ref},g.props),{},{className:(0,s.S)([g.props.className,"pdp-product__buttons"])}))]}),c&&(0,P.jsx)(c.type,ct(ct({},c.props),{},{className:(0,s.S)([c.props.className,"pdp-product__short_description"])})),u&&(0,P.jsx)(u.type,ct(ct({},u.props),{},{className:(0,s.S)([u.props.className,"pdp-product__description"])})),null!=d&&d.length?(0,P.jsxs)("div",{className:"pdp-product__attributes",children:[j,(0,P.jsx)("ul",{children:d.map((function(t,e){return(0,P.jsx)(t.type,ct({},t.props),e)}))})]}):null]})}),null===k?null:(0,P.jsx)(nt,{className:"pdp-product__overlay",onClose:function(){return E(null)},centered:!0,children:(0,P.jsx)(Q,{className:"pdp-product__overlay__carousel",arrows:(null==f?void 0:f.length)>1,controls:(null==f?void 0:f.length)>1,loop:(null==f?void 0:f.length)>1,width:"100%",height:"100%",defaultIndex:k||0,children:L})})]}))},dt=n(1148),ft=n(2675),ht=n(6765),yt=n(92);function mt(t){return mt="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},mt(t)}var vt=["sku","hideSku","hideQuantity","slots","children","initialData","onAddToCart"],gt=["text","icon"],bt=["text"];function _t(){_t=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),l=new S(o||[]);return r(i,"_invoke",{value:w(t,n,l)}),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function d(){}function f(){}function h(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(P([])));v&&v!==e&&n.call(v,a)&&(y=v);var g=h.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(r,a,i,l){var c=s(t[r],t,a);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==mt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,i,l)}),(function(t){o("throw",t,i,l)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function w(t,e,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=s(t,e,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(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=s(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],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 f.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new _(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),c(g,l,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,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(O),!t)for(var e in this)"t"===e.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.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(t,e){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"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function wt(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function xt(t){return function(t){if(Array.isArray(t))return Et(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||kt(t)||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 jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==mt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===mt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,e)||kt(t,e)||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 kt(t,e){if(t){if("string"==typeof t)return Et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(t,e):void 0}}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function At(t){var e=yt[t];return e?(0,P.jsx)(i.J,{source:e}):void 0}var Nt=function(t){var e,n,s=t.sku,d=t.hideSku,f=t.hideQuantity,h=t.slots,y=(t.children,t.initialData),m=t.onAddToCart,v=Lt(t,vt),g=(0,p.XK)("PDP.Product.AddToCart.label").label,b=(0,p.XK)("PDP.Product.Incrementer.label").label,_=Pt((0,r.useState)("en_US"),2),w=_[0],x=_[1],j=Pt((0,r.useState)(y),2),O=j[0],S=j[1],k=Pt((0,r.useState)({sku:s,quantity:1}),2),E=k[0],L=k[1],A={sku:s,quantity:1};(0,r.useEffect)((function(){var t=ht.events.on("locale",(function(t){t!==w&&(x(t),(0,ft.b)(s).then((function(t){S(t)})))}));return function(){null==t||t.off()}}),[w,s]);var N=null==O||null===(e=O.attributes)||void 0===e?void 0:e.map((function(t,e){var n=t.label,r=t.value;return r=isNaN(r)&&!isNaN(Date.parse(r))?-1!==r.indexOf("00:00:00")?new Date(r).toLocaleDateString((0,o.A)(w)):new Date(r).toLocaleString((0,o.A)(w)):r.toString(),(0,P.jsxs)("li",{children:[n,": ",(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})]},e)})),D=(0,r.useMemo)((function(){var t=[];return!f&&null!=O&&O.inStock&&t.push((0,P.jsx)(l.u,{name:"quantity",defaultValue:E.quantity.toString(),min:1,"aria-label":b,className:"pdp-product__quantity",onValue:function(t){return e={quantity:Number(t)},void L((function(t){return Ot(Ot({},t),e)}));var e}})),t}),[b,f,null==O?void 0:O.inStock,E]);return(0,P.jsx)("div",Ot(Ot({},v),{},{children:(0,P.jsx)(pt,{title:null==O?void 0:O.name,sku:!d&&(null==O?void 0:O.sku),fields:D,actions:null!=h&&h.Actions?(0,P.jsx)(a.g,{slot:h.Actions,context:{values:E,data:O,appendButton:function(t){var e=t.text,n=t.icon,r=Lt(t,gt),o=(0,P.jsx)(c.z,Ot(Ot({type:"button"},r),{},{icon:n&&At(n),children:e}));this._setContent((function(t){return[].concat(xt(t),[o])}))},appendLink:function(t){var e=t.text,n=Lt(t,bt),r=(0,P.jsx)("a",Ot(Ot({},n),{},{children:e}));this._setContent((function(t){return[].concat(xt(t),[r])}))},appendHTMLElement:function(t){var e=(0,P.jsx)("div",{});e.ref=function(e){return null==e?void 0:e.appendChild(t)},this._setContent((function(t){return[].concat(xt(t),[e])}))}}}):(0,P.jsx)("div",{children:(0,P.jsx)(c.z,{size:"medium",type:"submit",icon:(0,P.jsx)(i.J,{source:dt.Z}),disabled:!(null!=O&&O.inStock),"aria-label":g,onClick:function(){return null==m?void 0:m(f?A:E)},children:g})}),shortDescription:(null==O?void 0:O.shortDescription)&&(0,P.jsx)("div",{dangerouslySetInnerHTML:{__html:O.shortDescription}}),description:(null==O?void 0:O.description)&&(0,P.jsx)("div",{dangerouslySetInnerHTML:{__html:O.description}}),images:null==O||null===(n=O.images)||void 0===n?void 0:n.map((function(t,e){var n=t.label,r=t.url;return(0,P.jsx)(u.E,{title:n,alt:n,src:r,width:960,height:1191,params:{width:960}},e)})),outOfStock:!(null!=O&&O.inStock),attributes:N})}))};Nt.getInitialData=function(){var t,e=(t=_t().mark((function t(e){var n;return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.sku,t.next=3,(0,ft.b)(n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){wt(a,r,o,i,l,"next",t)}function l(t){wt(a,r,o,i,l,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}()},9188:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([t.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:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.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},7162:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.n(a)()(o());i.push([t.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},4330:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(4933),o=n.n(r),a=n(3476),i=n.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__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 max-height: 60vh;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n.pdp-product__buttons {\n display: grid;\n grid-auto-rows: max-content;\n grid-gap: var(--grid-1-gutters);\n}\n\n.pdp-product__buttons a {\n text-align: center;\n}\n\n.pdp-product__buttons a:hover {\n text-decoration: none;\n}\n\n.pdp-product__overlay .pdp-overlay__content {\n width: 100%;\n height: 100%;\n}\n\n.pdp-product__overlay__carousel {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n}\n\n.pdp-product__overlay__carousel img {\n width: 100%;\n height: 100%;\n object-fit: contain;\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 position: relative;\n }\n\n .pdp-product__column-container {\n position: relative;\n display: flex;\n }\n\n .pdp-product__column-body {\n position: sticky;\n bottom: 30%;\n align-self: flex-end;\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\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 }\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},6765:(t,n,r)=>{var o,a;t.exports=(o={events:()=>e.events},a={},r.d(a,o),a)},4853:(t,e,r)=>{var o,a;t.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:(t,e,n)=>{var o,a;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},a={},n.d(a,o),a)},4142:(t,e,n)=>{var r,a;t.exports=(r={jsx:()=>o.jsx,jsxs:()=>o.jsxs},a={},n.d(a,r),a)},3474:(t,e,n)=>{var r,o;t.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"../757.js";i.C(l);import*as c from"../153.js";i.C(c);import*as u from"./ProductDetails.js";i.C(u);var s=(3713,i(i.s=3713)),p=s.f,d=s.Z;export{p as ProductDetails,d as default};
|
|
2
|
+
import*as t from"@dropins/elsie/event-bus.js";import*as r from"@dropins/elsie/fetch-graphql.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 i from"@dropins/elsie/preact.js";export const id=175;export const ids=[175];export const modules={885:(t,r,e)=>{e.d(r,{f:()=>vr,Z:()=>vr});var n=e(4853),o=e(746),i=e(3889),a=e(3622),l=e(4188),c=e(2669),u=e(6987),s=e(7230),p=e(1177),d=e(5587),f=e(9724),m=e(1892),y=e.n(m),v=e(5760),b=e.n(v),g=e(8311),h=e.n(g),_=e(8192),w=e.n(_),j=e(8060),x=e.n(j),O=e(4865),S=e.n(O),P=e(5848),k={};k.styleTagTransform=S(),k.setAttributes=w(),k.insert=h().bind(null,"head"),k.domAPI=b(),k.insertStyleElement=x();y()(P.Z,k);P.Z&&P.Z.locals&&P.Z.locals;var A=e(7188);function E(t){return E="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},E(t)}var N=["children","gap","className","style"];function C(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 D(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?C(Object(e),!0).forEach((function(r){L(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):C(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function L(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==E(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===E(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function I(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var T=function(t){var r=t.children,e=t.gap,o=void 0===e?null:e,i=t.className,a=t.style,l=I(t,N),c=n.Children.count(r);return(0,A.jsx)("div",D(D({},l),{},{className:(0,d.S)(["pdp-gallery-grid",i]),style:D({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},a),children:n.Children.map(r,(function(t,r){return(0,A.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,A.jsx)(p.F,{node:t,loading:0===r?"eager":"lazy"},t.props.src)},c+r)}))}))},Z=e(7654),F=e(8991),M=e(7675),q={};q.styleTagTransform=S(),q.setAttributes=w(),q.insert=h().bind(null,"head"),q.domAPI=b(),q.insertStyleElement=x();y()(M.Z,q);M.Z&&M.Z.locals&&M.Z.locals;function z(t){return z="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},z(t)}var R=["show","scrollbar","peak","arrows","controls","loop","gap","direction","width","height","defaultIndex","className","children"];function K(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 U(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?K(Object(e),!0).forEach((function(r){X(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):K(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function X(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==z(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===z(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function B(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$(t)||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 G(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,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||$(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,r){if(t){if("string"==typeof t)return W(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)?W(t,r):void 0}}function W(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 H(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var V=function(t){var r=t.show,e=void 0===r?1:r,o=t.scrollbar,i=void 0!==o&&o,l=t.peak,c=void 0!==l&&l,s=t.arrows,p=void 0!==s&&s,m=t.controls,y=void 0!==m&&m,v=t.loop,b=void 0!==v&&v,g=t.gap,h=void 0===g?null:g,_=t.direction,w=void 0===_?"horizontal":_,j=t.width,x=void 0===j?"100%":j,O=t.height,S=void 0===O?"100%":O,P=t.defaultIndex,k=void 0===P?0:P,E=t.className,N=t.children,C=H(t,R),D=(0,f.XK)("PDP.Carousel.label").label,L=(0,f.XK)("PDP.Carousel.Slide.label").label,I=(0,f.XK)("PDP.Carousel.Previous.label").label,T=(0,f.XK)("PDP.Carousel.Next.label").label,M=(0,f.XK)("PDP.Carousel.Controls.label").label,q=(0,f.XK)("PDP.Carousel.Controls.Button.label").label,z=G((0,n.useState)((function(){return Q(e)})),2),K=z[0],X=z[1],$=Math.ceil(n.Children.toArray(N).length/K),W=c?24:0,V=h?{small:16,medium:24,large:64}[h]:0,J=n.Children.toArray(N).length%K,Y=G((0,n.useState)(b?k+1:k),2),tt=Y[0],rt=Y[1],et=(0,n.useMemo)((function(){var t=n.Children.toArray(N).reduce((function(t,r,e){return e%K==0?[].concat(B(t),[[r]]):[].concat(B(t.slice(0,-1)),[[].concat(B(t[t.length-1]),[r])])}),[]);return b&&1!==t.length?b&&n.Children.toArray(N).length%K==0?[t[$-1]].concat(t).concat([t[0],t[1]]):[n.Children.toArray(N).slice(-K)].concat(t).concat([t[0],t[1]]):t}),[N,K,$,b]),nt=(0,n.useRef)(null);(0,n.useEffect)((function(){var t=document.body,r=new ResizeObserver((function(){var t=window.innerWidth,r=Q(e,t);r!==K&&X(r)}));return r.observe(t),function(){r.unobserve(t)}}),[K,e]);var ot=(0,n.useCallback)((function(t,r,e){var n=nt.current,o=W?n.offsetWidth-W:n.offsetWidth-W+V;if(Array.from(n.querySelectorAll("[data-index]")).filter((function(t){var r=Number(t.getAttribute("data-index"));return!isNaN(r)&&r>-1}))[t]){if(e){var i=0===t?$:0,a=o*($+(J||K)/K);return n.scrollLeft>=0&&n.scrollLeft<o?void ot(1,!0):n.scrollLeft>a-o&&n.scrollLeft<=a?void ot($,!0):(n.style.scrollBehavior="auto",n.scrollLeft=0===i?0:a,void ot(0===i?1:$,!0))}var l=(n.offsetWidth-V)/K*et[t].length-W;n.style.scrollBehavior=r?"smooth":"auto",n.scrollLeft=et[t].length===K?o*t:o*(t-1)+l}}),[V,$,W,K,J,et]),it=(0,n.useCallback)((function(){b?ot(tt-1,!0,1===tt):ot(tt<=0?0:tt-1,!0)}),[tt,ot,b]),at=(0,n.useCallback)((function(){var t=et.length-1;b?ot(tt+1,!0,tt===$):ot(tt>=t?t:tt+1,!0)}),[et.length,b,tt,ot,$]);(0,n.useEffect)((function(){var t=function(t){"ArrowLeft"===t.key&&(t.preventDefault(),it()),"ArrowRight"===t.key&&(t.preventDefault(),at())};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[at,it]),(0,n.useEffect)((function(){ot(b?k+1:k,!1)}),[k,ot,b]);var lt=(0,Z.D)((function(){var t=nt.current,r=W?t.offsetWidth-W:t.offsetWidth-W+V,e=Math.ceil(t.scrollLeft/r);if(b){var n=r*($+(J||K)/K);if(Math.ceil(t.scrollLeft)>=Math.ceil(n))return t.style.scrollBehavior="auto",void(t.scrollLeft=1*t.offsetWidth+(Math.ceil(t.scrollLeft)-Math.ceil(n)-W));if(0===t.scrollLeft)return t.style.scrollBehavior="auto",void(t.scrollLeft=n-t.offsetWidth+W)}tt!==e&&rt(e)}),20);return(0,n.useEffect)((function(){var t=nt.current;return null==t||t.addEventListener("scroll",lt),function(){null==t||t.removeEventListener("scroll",lt)}}),[lt]),(0,A.jsxs)("div",U(U({role:"region","aria-roledescription":D,className:(0,d.S)(["pdp-carousel",["pdp-carousel--arrows",p],E])},C),{},{children:[p&&(0,A.jsx)(u.z,{className:(0,d.S)(["pdp-carousel__button","pdp-carousel__button--prev"]),variant:"tertiary","aria-label":I,onClick:it,disabled:!b&&tt<1,children:(0,A.jsx)(a.J,{className:(0,d.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--prev"]),size:"32",source:F.Z})}),(0,A.jsx)("div",{ref:nt,className:(0,d.S)(["pdp-carousel__wrapper","pdp-carousel__wrapper--".concat(w),["pdp-carousel__wrapper--scrollbar",i],["pdp-carousel__wrapper--peak",c]]),style:{"--width":x,"--height":S,"--gap":h?"var(--spacing-".concat(h,")"):"0px","--per-page":K},tabIndex:0,children:et.map((function(t,r){var e=t.length<K;return(0,A.jsx)("div",{role:"group","aria-roledescription":L,"data-index":r,className:(0,d.S)(["pdp-carousel__slide","pdp-carousel__slide--".concat(w),["pdp-carousel__slide--active",tt===r],["pdp-carousel__slide--orphan",e]]),style:{"--length":t.length},children:t},r)}))}),p&&(0,A.jsx)(u.z,{className:(0,d.S)(["pdp-carousel__button","pdp-carousel__button--next"]),variant:"tertiary","aria-label":T,onClick:at,disabled:!b&&tt>=et.length-1,children:(0,A.jsx)(a.J,{className:(0,d.S)(["pdp-carousel__button__icon","pdp-carousel__button__icon--next"]),size:"32",source:F.Z})}),y&&(0,A.jsx)("div",{role:"group","aria-label":M,className:"pdp-carousel__controls",children:(b?et.slice(0,$):et).map((function(t,r){var e=b?$:et.length,n=b?tt-1===r:tt===r;return(0,A.jsx)("button",{"aria-label":q.replace("{key}",String(r+1)).replace("{total}",String(e)),onClick:function(){ot(b?r+1:r,!0)},className:(0,d.S)(["pdp-carousel__controls__button",["pdp-carousel__controls__button--active",n]])},r)}))})]}))};function Q(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("number"==typeof t)return t;var e=t.small,n=t.medium,o=t.large;return r>1024?o:r>786?n:e}var J=e(7498),Y=e(5340),tt={};tt.styleTagTransform=S(),tt.setAttributes=w(),tt.insert=h().bind(null,"head"),tt.domAPI=b(),tt.insertStyleElement=x();y()(Y.Z,tt);Y.Z&&Y.Z.locals&&Y.Z.locals;function rt(t){return rt="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},rt(t)}var et=["centered","onClose","className","children"];function nt(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 ot(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?nt(Object(e),!0).forEach((function(r){it(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):nt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function it(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==rt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===rt(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function at(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var lt=function(t){var r=t.centered,e=t.onClose,o=t.className,i=t.children,a=at(t,et),l=(0,f.XK)("PDP.Overlay.Close.label").label,c=(0,n.useCallback)((function(){null==e||e()}),[e]);return(0,n.useEffect)((function(){var t=function(t){"Escape"===t.key&&c()};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}),[c]),(0,n.useEffect)((function(){var t=document.scrollingElement,r=t.style.overflow;return t.style.overflow="hidden",function(){t.style.overflow=r}}),[]),(0,A.jsxs)("div",ot(ot({},a),{},{className:(0,d.S)(["pdp-overlay",["pdp-overlay--centered",r],o]),children:[(0,A.jsx)("div",{className:"pdp-overlay__content",children:i}),(0,A.jsx)(u.z,{"aria-label":l,variant:"tertiary",className:"pdp-overlay__close-button",onClick:c,icon:(0,A.jsx)(J.Z,{})})]}))},ct=e(1994),ut={};ut.styleTagTransform=S(),ut.setAttributes=w(),ut.insert=h().bind(null,"head"),ut.domAPI=b(),ut.insertStyleElement=x();y()(ct.Z,ut);ct.Z&&ct.Z.locals&&ct.Z.locals;function st(t){return st="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},st(t)}var pt=["title","breadcrumbs","sku","outOfStock","hideSku","shortDescription","description","attributes","images","options","price","specialPrice","className","children","quantity","actions"];function dt(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 ft(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?dt(Object(e),!0).forEach((function(r){mt(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):dt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function mt(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==st(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==st(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===st(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function yt(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,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return vt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return vt(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(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 bt(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var gt=function(t){var r=t.title,e=void 0===r?"":r,o=t.breadcrumbs,i=t.sku,a=t.outOfStock,l=t.hideSku,c=t.shortDescription,u=t.description,s=t.attributes,m=t.images,y=t.options,v=t.price,b=t.specialPrice,g=t.className,h=(t.children,t.quantity),_=t.actions,w=bt(t,pt),j=(0,f.XK)("PDP.Product.RegularPrice.label").label,x=(0,f.XK)("PDP.Product.SpecialPrice.label").label,O=(0,f.XK)("PDP.Product.OutOfStock.label").label,S=(0,f.XK)("PDP.Product.Details.label").label,P=(0,f.XK)("PDP.Product.Image.label").label,k=yt((0,n.useState)(null),2),E=k[0],N=k[1],C=null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(p.F,{node:t,loading:0===r?"eager":"lazy",alt:null==P?void 0:P.replace("{product}",e).replace("{key}",String(r+1)).replace("{total}",String(m.length)),onClick:function(){return N(r)}},r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0});return(0,A.jsxs)("div",ft(ft({},w),{},{className:(0,d.S)(["pdp-product",g]),children:[o&&(0,A.jsx)(p.F,{node:o,className:"pdp-product__breadcrumbs"}),(0,A.jsx)("div",{className:"pdp-product__column-container pdp-product__gallery-column",children:(0,A.jsx)("div",{className:"pdp-product__column-body",children:(0,A.jsx)(T,{className:"pdp-product__images",gap:"small",children:C})})}),(0,A.jsx)("div",{className:"pdp-product__column-container pdp-product__content-column",children:(0,A.jsxs)("div",{className:"pdp-product__column-body",children:[(0,A.jsxs)("div",{className:"pdp-product__header",children:[(0,A.jsx)("h1",{className:"pdp-product__title",children:e}),!l&&i&&(0,A.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",i]}),(0,A.jsxs)("div",{className:"pdp-product__prices",children:[v&&(0,A.jsx)(p.F,{node:v,className:(0,d.S)(["pdp-product__price",["pdp-product__price--grey",b]]),"aria-label":j,role:"text"}),b&&(0,A.jsx)(p.F,{node:b,className:(0,d.S)(["pdp-product__price-special"]),"aria-label":x,role:"text"})]})]}),(0,A.jsx)(V,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:C}),(0,A.jsxs)("div",{className:(0,d.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",a]]),children:[a&&(0,A.jsx)("div",{className:"pdp-product__out-of-stock__text",children:O}),y&&(0,A.jsx)(p.F,{node:y,className:(0,d.S)(["pdp-product__options"])}),h&&(0,A.jsx)("div",{className:"pdp-product__quantity",children:(0,A.jsx)(p.F,{node:h})}),_&&(0,A.jsx)(p.F,{node:_,className:(0,d.S)(["pdp-product__buttons"])})]}),c&&(0,A.jsx)(p.F,{node:c,className:(0,d.S)(["pdp-product__short_description"])}),u&&(0,A.jsx)(p.F,{node:u,className:(0,d.S)(["pdp-product__description"])}),null!=s&&s.length?(0,A.jsxs)("div",{className:"pdp-product__attributes",children:[S,(0,A.jsx)("ul",{children:s.map((function(t,r){return(0,A.jsx)(p.F,{node:t},r)}))})]}):null]})}),null===E?null:(0,A.jsx)(lt,{className:"pdp-product__overlay",onClose:function(){return N(null)},centered:!0,children:(0,A.jsx)(V,{className:"pdp-product__overlay__carousel",arrows:(null==m?void 0:m.length)>1,controls:(null==m?void 0:m.length)>1,loop:(null==m?void 0:m.length)>1,width:"100%",height:"100%",defaultIndex:E||0,children:C})})]}))},ht=e(6354),_t=e(1827),wt=e(6888),jt=e(2696),xt={};xt.styleTagTransform=S(),xt.setAttributes=w(),xt.insert=h().bind(null,"head"),xt.domAPI=b(),xt.insertStyleElement=x();y()(jt.Z,xt);jt.Z&&jt.Z.locals&&jt.Z.locals;function Ot(t){return Ot="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},Ot(t)}var St=["options","onValues","onErrors","className","children"];function Pt(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 kt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Pt(Object(e),!0).forEach((function(r){At(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function At(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==Ot(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==Ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===Ot(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,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,i,a,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return Nt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Nt(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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}function Ct(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var Dt=["text","image","color"],Lt=function(t){var r=t.options,e=t.onValues,o=t.onErrors,i=t.className,a=(t.children,Ct(t,St)),l=(0,f.XK)("PDP.Swatches.Required.label").label,c=Et((0,n.useState)((function(){return null==r?void 0:r.reduce((function(t,r){var e=r.items.find((function(t){return t.selected}));return e?kt(kt({},t),{},At({},r.id,{label:e.label,value:e.id})):t}),{})})),2),u=c[0],s=c[1];(0,n.useMemo)((function(){var t=null==r?void 0:r.reduce((function(t,r){return r.items.forEach((function(e){var n,o=(null===(n=u[r.id])||void 0===n?void 0:n.value)===e.id;r.required&&!o&&(t[r.id]=l)})),t}),{});return null==o||o(t),t}),[u]);var p=(0,n.useCallback)((function(t,r,n){s((function(o){var i=kt(kt({},o),{},At({},t,{label:r,value:n}));return null==e||e(i,n),i}))}),[e]),m=(0,n.useCallback)((function(t){var r=t.items,e=t.id,n=t.required,o=t.type,i=t.selected,a=t.label;return(0,A.jsx)("div",{className:(0,d.S)(["pdp-swatches__options"]),children:null==r?void 0:r.map((function(t){var r={key:t.id,id:t.id,name:e,value:t.value,label:t.label,groupAriaLabel:a,selected:i===t.id,outOfStock:!t.inStock,required:null===n||n,onValue:function(){p(e,t.label,t.id)}};switch(o){case"text":return(0,A.jsx)(ht.m,kt(kt({},r),{},{label:t.label}));case"image":return(0,A.jsx)(_t.k,kt(kt({},r),{},{src:t.value,alt:t.label}));case"color":return(0,A.jsx)(wt.b,kt(kt({},r),{},{size:"large",color:t.value}));default:return console.warn("Invalid swatch type ".concat(o)),null}}))})}),[p]);return(0,A.jsx)("div",kt(kt({},a),{},{className:(0,d.S)(["pdp-swatches",i]),children:null==r?void 0:r.map((function(t){var r,e=t.type,n=t.label,o=t.id,i=t.multiple,a=t.required,l=t.items;return Dt.includes(e)||console.warn("Invalid swatch type ".concat(e)),i&&console.warn("Multiple selection swatches are not currently supported."),(0,A.jsxs)("div",{id:"swatch-item-".concat(o),className:"pdp-swatches__field",children:[(0,A.jsx)("div",{className:"pdp-swatches__field__label",children:u[o]?"".concat(n,": ").concat(u[o].label):n}),(0,A.jsx)(m,{id:o,type:e,required:a,items:l,label:n,selected:null===(r=u[o])||void 0===r?void 0:r.value})]},"swatch-item-".concat(o))}))}))},It=e(4321),Tt={};Tt.styleTagTransform=S(),Tt.setAttributes=w(),Tt.insert=h().bind(null,"head"),Tt.domAPI=b(),Tt.insertStyleElement=x();y()(It.Z,Tt);It.Z&&It.Z.locals&&It.Z.locals;var Zt=e(5140);function Ft(t){return Ft="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},Ft(t)}var Mt=["amount","currency","locale","variant","sale","minimumAmount","maximumAmount","className"];function qt(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 zt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?qt(Object(e),!0).forEach((function(r){Rt(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):qt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function Rt(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==Ft(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===Ft(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Kt(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var Ut=function(t){var r=t.amount,e=t.currency,n=t.locale,o=t.variant,i=t.sale,a=t.minimumAmount,l=t.maximumAmount,c=t.className,u=Kt(t,Mt);return(0,A.jsx)(A.Fragment,{children:r||a===l?(0,A.jsx)("div",zt(zt({className:"pdp-price-range"},u),{},{children:(0,A.jsx)(Zt.t,{amount:r||a,currency:e,locale:n,variant:o,sale:i,className:c})})):(0,A.jsxs)("div",zt(zt({className:"pdp-price-range"},u),{},{children:[(0,A.jsx)(Zt.t,{amount:a,currency:e,locale:n,className:c}),(0,A.jsx)("span",{className:"pdp-price-range__label",children:"-"}),(0,A.jsx)(Zt.t,{amount:l,currency:e,locale:n,className:c})]}))})},Xt=e(1148),Bt=e(2675),Gt=e(6052),$t=e(6765);function Wt(t){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(r){return r.test(t)})))return!1;var r=new Date(t);return!isNaN(r.getTime())}function Ht(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,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return Vt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Vt(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(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 Qt(){var t=new URLSearchParams(window.location.search),r={};return t.forEach((function(t,e){r[e]=t})),r}var Jt=e(3717),Yt=e(3354);function tr(t){return tr="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},tr(t)}var rr=["sku","hideSku","hideQuantity","slots","children","initialData","onAddToCart"],er=["text"],nr=["text","icon"],or=["text"];function ir(){ir=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function u(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),l=new S(o||[]);return n(a,"_invoke",{value:w(t,e,l)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function d(){}function f(){}function m(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(P([])));b&&b!==r&&e.call(b,i)&&(y=b);var g=m.prototype=d.prototype=Object.create(y);function h(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,r){function o(n,i,a,l){var c=s(t[n],t,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==tr(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,a,l)}),(function(t){o("throw",t,a,l)})):r.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return i=i?i.then(n,n):n()}})}function w(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 k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var l=j(a,e);if(l){if(l===p)continue;return l}}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 c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function j(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,j(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function x(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 O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function P(t){if(t){var r=t[i];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 f.prototype=m,n(g,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:f,configurable:!0}),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===f||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},h(_.prototype),c(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(u(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},h(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"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=P,S.prototype={constructor:S,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(O),!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 l=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){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,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,p):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),p},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),O(e),p}},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;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:P(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function ar(t,r,e,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void e(t)}l.done?r(c):Promise.resolve(c).then(n,o)}function lr(t){return function(t){if(Array.isArray(t))return fr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||dr(t)||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 cr(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 ur(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?cr(Object(e),!0).forEach((function(r){sr(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):cr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function sr(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==tr(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===tr(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function pr(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,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||dr(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 dr(t,r){if(t){if("string"==typeof t)return fr(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)?fr(t,r):void 0}}function fr(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 mr(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function yr(t){var r=Jt[t];return r?(0,A.jsx)(a.J,{source:r}):void 0}var vr=function(t){var r,e,p,d,m,y=t.sku,v=t.hideSku,b=t.hideQuantity,g=t.slots,h=(t.children,t.initialData),_=t.onAddToCart,w=mr(t,rr),j=(0,f.XK)("PDP.Product.AddToCart.label").label,x=(0,f.XK)("PDP.Product.Incrementer.label").label,O=pr((0,n.useState)("en_US"),2),S=O[0],P=O[1],k=pr((0,n.useState)(h),2),E=k[0],N=k[1],C=pr((0,n.useState)(!0),2),D=C[0],L=C[1],I=pr((0,n.useState)((function(){var t={sku:y,quantity:1};return null!=E&&E.optionUIDs&&(t.optionsUIDs=E.optionUIDs),t})),2),T=I[0],Z=I[1];(0,n.useEffect)((function(){var t=$t.events.on("locale",(function(t){t!==S&&(P(t),(0,Bt.b)(y).then(N))}));return function(){null==t||t.off()}}),[S,y]);var F=(0,Yt.useCallback)((function(t){Z((function(r){return ur(ur({},r),t)}))}),[]),M=(0,Yt.useCallback)((function(t){var r=Object.keys(t).map((function(r){return t[r].value}));!function(t){var r=new URLSearchParams(window.location.search);Object.entries(t).forEach((function(t){var e=Ht(t,2),n=e[0],o=e[1];null===o?r.delete(n):r.set(n,String(o))}));var e=window.location.pathname;e+="?".concat(r.toString()),e+=window.location.hash,window.history.replaceState({},"",e)}({optionsUIDs:r.join(",")}),Z((function(t){return ur(ur({},t),{},{optionsUIDs:r})})),(0,Gt.R)(y,r).then((function(t){N(t)}))}),[y]),q=(0,Yt.useCallback)((function(t){L(0===Object.keys(t).length)}),[]),z=null==E||null===(r=E.attributes)||void 0===r?void 0:r.map((function(t,r){var e=t.label,n=t.value,o=Wt(n)?function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US";if(!Wt(t))throw Error("Invalid date string");return t.split(" ")[1]||(t="".concat(t," 00:00:00")),new Date(t).toLocaleDateString((0,i.A)(r)).toString()}(n,S):n.toString();return(0,A.jsxs)("li",{children:[e,": ",(0,A.jsx)("span",{dangerouslySetInnerHTML:{__html:o}})]},r)})),R=!b&&null!=E&&E.inStock?(0,A.jsx)(l.u,{name:"quantity",defaultValue:T.quantity.toString(),min:1,"aria-label":x,className:"pdp-product__quantity",onValue:function(t){F({quantity:Number(t)})}},"quantity"):void 0;return(0,A.jsx)("div",ur(ur({},w),{},{children:(0,A.jsx)(gt,{title:null==E?void 0:E.name,sku:v||null==E?void 0:E.sku,options:(null==E?void 0:E.options)&&(0,A.jsx)(Lt,{options:E.options,onValues:M,onErrors:q}),breadcrumbs:(null==g?void 0:g.Breadcrumbs)&&(0,A.jsx)(o.g,{slot:g.Breadcrumbs,context:{data:null!=E?E:null,setSeparator:function(t){var r=yr(t);this._setContent((function(t){var e=(null==t?void 0:t.props)||{};return(0,A.jsx)(c.O,ur(ur({},e),{},{separator:r}))}))},appendLink:function(t){var r=t.text,e=mr(t,er),n=(0,A.jsx)("a",ur(ur({},e),{},{children:r}));this._setContent((function(t){var r=(null==t?void 0:t.props)||{};return(0,A.jsx)(c.O,ur(ur({},r),{},{categories:[].concat(lr(r.categories||[]),[n])}))}))},appendHTMLElement:function(t){var r=(0,A.jsx)("span",{ref:function(r){return null==r?void 0:r.replaceWith(t)}});this._setContent((function(t){var e,n=(null==t?void 0:t.props)||{};return(0,A.jsx)(c.O,ur(ur({},n),{},{categories:[].concat(lr(n.categories||[]),[(0,A.jsx)("span",{children:r},(null===(e=n.categories)||void 0===e?void 0:e.length)+1)])}))}))}}}),quantity:R,actions:null!=g&&g.Actions?(0,A.jsx)(o.g,{slot:g.Actions,context:{values:T,valid:D,data:null!=E?E:null,appendButton:function(t){var r=t.text,e=t.icon,n=mr(t,nr),o=(0,A.jsx)(u.z,ur(ur({type:"button"},n),{},{icon:e&&yr(e),children:r}));this._setContent((function(t){return[].concat(lr(t),[o])}))},appendLink:function(t){var r=t.text,e=mr(t,or),n=(0,A.jsx)("a",ur(ur({},e),{},{children:r}));this._setContent((function(t){return[].concat(lr(t),[n])}))},appendHTMLElement:function(t){var r=(0,A.jsx)("div",{});r.ref=function(r){return null==r?void 0:r.appendChild(t)},this._setContent((function(t){return[].concat(lr(t),[r])}))}}}):(0,A.jsx)("div",{children:(0,A.jsx)(u.z,{size:"medium",type:"submit",icon:(0,A.jsx)(a.J,{source:Xt.Z}),disabled:!(null!=E&&E.inStock&&D),"aria-label":j,onClick:function(){return null==_?void 0:_(T)},children:j})}),shortDescription:null!=E&&E.shortDescription?(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:E.shortDescription}}):void 0,description:null!=E&&E.description?(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:E.description}}):void 0,images:null!==(e=null==E||null===(p=E.images)||void 0===p?void 0:p.map((function(t){var r=t.label,e=t.url;return(0,A.jsx)(s.E,{title:r,alt:r,src:e,width:960,height:1191,params:{width:960}},e)})))&&void 0!==e?e:[],price:null!=E&&null!==(d=E.prices)&&void 0!==d&&d.visible?(0,A.jsx)(Ut,ur(ur({},E.prices.final),{},{locale:(0,i.A)(S)})):void 0,specialPrice:null!=E&&null!==(m=E.prices)&&void 0!==m&&m.visible&&E.prices.regular&&E.prices.final.amount!==(null==E?void 0:E.prices.regular.amount)?(0,A.jsx)(Ut,ur(ur({},E.prices.regular),{},{locale:(0,i.A)(S)})):void 0,outOfStock:!(null!=E&&E.inStock),attributes:z})}))};vr.getInitialData=function(){var t,r=(t=ir().mark((function t(r){var e,n,o;return ir().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.sku,!(o=null===(e=Qt().optionsUIDs)||void 0===e?void 0:e.split(","))){t.next=6;break}return t.next=5,(0,Gt.R)(n,o);case 5:case 8:return t.abrupt("return",t.sent);case 6:return t.next=8,(0,Bt.b)(n);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 a(t){ar(i,n,o,a,l,"next",t)}function l(t){ar(i,n,o,a,l,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},7675:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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.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.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.pdp-carousel__wrapper--horizontal{\n overflow-x:auto;\n overflow-y:hidden;\n scroll-snap-type:x mandatory;\n}\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.pdp-carousel__wrapper--peak{\n --peak:calc(var(--spacing-medium) + var(--gap));\n}\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;\n height:4px;\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",""]);const l=a},5848:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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 height:100%;\n max-width:100%;\n min-width:100%;\n vertical-align:middle;\n width:100%;\n object-fit:contain;\n}\n.pdp-gallery-grid__item:only-child{\n grid-column:1 / span 2;\n}\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@media only screen and (min-width: 1024px){\n .pdp-gallery-grid{\n grid-template-columns:repeat(2, 1fr);\n }\n}\n",""]);const l=a},5340:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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",""]);const l=a},4321:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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=a},1994:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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__breadcrumbs{\n grid-column:1 / -1;\n padding:var(--spacing-medium) 0 var(--spacing-xxbig);\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.pdp-product__quantity{\n grid-column:1 / span 4;\n}\n.pdp-product__buttons{\n grid-column:1 / span 4;\n}\n@media only screen and (min-width: 1024px){\n .pdp-product__breadcrumbs{\n grid-column:2 / -2;\n }\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",""]);const l=a},2696:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(4933),o=e.n(n),i=e(3476),a=e.n(i)()(o());a.push([t.id,".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",""]);const l=a},6765:(r,e,n)=>{r.exports=(t=>{var r={};return n.d(r,t),r})({events:()=>t.events})},9699:(t,e,n)=>{t.exports=(t=>{var r={};return n.d(r,t),r})({FetchGraphQL:()=>r.FetchGraphQL})},4853:(t,r,n)=>{t.exports=(t=>{var r={};return n.d(r,t),r})({Children:()=>e.Children,createContext:()=>e.createContext,useCallback:()=>e.useCallback,useEffect:()=>e.useEffect,useMemo:()=>e.useMemo,useRef:()=>e.useRef,useState:()=>e.useState})},5437:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({useCallback:()=>n.useCallback,useContext:()=>n.useContext,useDebugValue:()=>n.useDebugValue,useEffect:()=>n.useEffect,useId:()=>n.useId,useImperativeHandle:()=>n.useImperativeHandle,useLayoutEffect:()=>n.useLayoutEffect,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState})},4142:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs})},3474:(t,r,e)=>{t.exports=(t=>{var r={};return e.d(r,t),r})({Component:()=>i.Component,Fragment:()=>i.Fragment,cloneElement:()=>i.cloneElement,createContext:()=>i.createContext,createElement:()=>i.createElement,createRef:()=>i.createRef,h:()=>i.h,hydrate:()=>i.hydrate,options:()=>i.options,render:()=>i.render,toChildArray:()=>i.toChildArray})}};import a from"../runtime.js";import*as l from"../315.js";a.C(l);import*as c from"../480.js";a.C(c);import*as u from"../713.js";a.C(u);import*as s from"./ProductDetails.js";a.C(s);var p,d=(p=885,a(a.s=p)),f=d.f,m=d.Z;export{f as ProductDetails,m as default};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-pdp", "version": "0.2.
|
|
1
|
+
{"name": "@dropins/storefront-pdp", "version": "0.2.1-alpha1", "@dropins/elsie": "^0.14.0"}
|
package/render.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see render.js.LICENSE.txt */
|
|
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={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}"}},"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"./757.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};
|
|
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 L(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(P([])));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 k()}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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(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=P,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(C),!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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(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,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");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:()=>d});var n=r(3516),o=r(5437),i=r(9276),a=r(6765),u=r(4114),c=r(1857),l=r.n(c),s=r(7188);function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||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}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t,e)||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 p(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 h={default:r(7770)},v=function(t){var e,r=t.children,n=f((0,o.useState)(),2),c=n[0],p=n[1],v=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!==c&&p(t)}),{eager:!0});return function(){null==t||t.off()}}),[c]);var d=l()(h,null!=v?v:{});return(0,s.jsx)(i.J,{lang:c,langDefinitions:d,children:r})},d=new n.H((0,s.jsx)(v,{}))},6765:(e,r,n)=>{e.exports=(t=>{var e={};return n.d(e,t),e})({events:()=>t.events})},4853:(t,r,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({Children:()=>e.Children,createContext:()=>e.createContext,useCallback:()=>e.useCallback,useEffect:()=>e.useEffect,useMemo:()=>e.useMemo,useRef:()=>e.useRef,useState:()=>e.useState})},5437:(t,e,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({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})},4142:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({Fragment:()=>n.Fragment,jsx:()=>n.jsx,jsxs:()=>n.jsxs})},3474:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({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})},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"./619.js";i.C(u);import*as c from"./render.js";i.C(c);var l,s=(l=4560,i(i.s=l)).s;export{s as render};
|