@dropins/storefront-pdp 0.1.0-alpha10 → 0.1.0-alpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/containers/ProductDetails.js +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see api.js.LICENSE.txt */
|
|
2
|
-
import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>f,iE:()=>h,XV:()=>l,gO:()=>c,mv:()=>u,yg:()=>s});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,u=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,s=a.setFetchGraphQlHeaders,f=a.fetchGraphQl,h=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return 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:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var i=r&&r.prototype instanceof v?r:v,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function i(n,a,c,u){var l=h(t[n],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==o(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(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 c=O(a,e);if(c){if(c===p)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(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,O(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 j(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 P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"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=_,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(P),!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,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),P(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;P(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 c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("👀",(0,n.iE)()),t.next=3,(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\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 3:return a=t.sent,c=a.data,null==(u=null==c||null===(e=c.products)||void 0===e?void 0:e[0])||null===(o=u.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},567:(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 s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,a=Object.create(o.prototype),c=new S(n||[]);return i(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function o(i,a,c,u){var l=h(t[i],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(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 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 c=O(a,e);if(c){if(c===p)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(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,O(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 j(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 P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,i(b,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"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=_,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(P),!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,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),P(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;P(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){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}e.d(r,{vc:()=>h,gX:()=>p.gX,iE:()=>p.iE,b6:()=>v.b,j2:()=>f,XV:()=>p.XV,gO:()=>p.gO,mv:()=>p.mv,yg:()=>p.yg});var l,s,f=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={},f.config.setConfig(a(a({},e),r));case 2:case"end":return t.stop()}}),t)})),s=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=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 s.apply(this,arguments)}),listeners:function(){return[]}}),h=f.config,p=e(377),v=e(675)}};import r from"./runtime.js";import*as e from"./743.js";r.C(e);import*as n from"./api.js";r.C(n);var o=(567,r(r.s=567)),i=o.vc,a=o.gX,c=o.iE,u=o.b6,l=o.j2,s=o.XV,f=o.gO,h=o.mv,p=o.yg;export{i as config,a as fetchGraphQl,c as getConfig,u as getProductData,l as initialize,s as removeFetchGraphQlHeader,f as setEndpoint,h as setFetchGraphQlHeader,p as setFetchGraphQlHeaders};
|
|
2
|
+
import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>f,iE:()=>h,XV:()=>l,gO:()=>c,mv:()=>u,yg:()=>s});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,u=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,s=a.setFetchGraphQlHeaders,f=a.fetchGraphQl,h=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return 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:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var i=r&&r.prototype instanceof v?r:v,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function i(n,a,c,u){var l=h(t[n],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==o(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(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 c=O(a,e);if(c){if(c===p)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(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,O(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 j(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 P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"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=_,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(P),!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,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),P(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;P(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 c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,u;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\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 a=t.sent,c=a.data,null==(u=null==c||null===(e=c.products)||void 0===e?void 0:e[0])||null===(o=u.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},567:(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 s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,a=Object.create(o.prototype),c=new S(n||[]);return i(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function o(i,a,c,u){var l=h(t[i],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(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 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 c=O(a,e);if(c){if(c===p)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(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,O(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 j(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 P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,i(b,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"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=_,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(P),!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,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),P(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;P(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){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}e.d(r,{vc:()=>h,gX:()=>p.gX,iE:()=>p.iE,b6:()=>v.b,j2:()=>f,XV:()=>p.XV,gO:()=>p.gO,mv:()=>p.mv,yg:()=>p.yg});var l,s,f=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={},f.config.setConfig(a(a({},e),r));case 2:case"end":return t.stop()}}),t)})),s=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=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 s.apply(this,arguments)}),listeners:function(){return[]}}),h=f.config,p=e(377),v=e(675)}};import r from"./runtime.js";import*as e from"./743.js";r.C(e);import*as n from"./api.js";r.C(n);var o=(567,r(r.s=567)),i=o.vc,a=o.gX,c=o.iE,u=o.b6,l=o.j2,s=o.XV,f=o.gO,h=o.mv,p=o.yg;export{i as config,a as fetchGraphQl,c as getConfig,u as getProductData,l as initialize,s as removeFetchGraphQlHeader,f as setEndpoint,h as setFetchGraphQlHeader,p as setFetchGraphQlHeaders};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see ProductDetails.js.LICENSE.txt */
|
|
2
|
-
import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/preact-compat.js";import*as e 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=175;export const ids=[175];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>p,iE:()=>d,XV:()=>s,gO:()=>c,mv:()=>l,yg:()=>u});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,l=a.setFetchGraphQlHeader,s=a.removeFetchGraphQlHeader,u=a.setFetchGraphQlHeaders,p=a.fetchGraphQl,d=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return 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:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function p(t,r,e,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:j(t,e,c)}),a}function d(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function m(){}function g(){}var y={};u(y,c,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(A([])));b&&b!==r&&e.call(b,c)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function i(n,a,c,l){var s=d(t[n],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==o(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,c,l)}),(function(t){i("throw",t,c,l)})):r.resolve(p).then((function(t){u.value=t,c(u)}),(function(t){return i("throw",t,c,l)}))}l(s.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 j(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===f)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 l=d(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.arg)}}}function O(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,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),f;var o=d(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,f;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,f):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}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 k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(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:E}}function E(){return{value:void 0,done:!0}}return m.prototype=g,n(w,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(p(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),u(w,s,"Generator"),u(w,c,(function(){return this})),u(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=A,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(k),!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"),l=e.call(i,"finallyLoc");if(c&&l){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(!l)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,f):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),f},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),k(e),f}},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;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:A(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},t}function a(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("👀",(0,n.iE)()),t.next=3,(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\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 3:return a=t.sent,c=a.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?:/,"")})),t.abrupt("return",l);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,l,"next",t)}function l(t){a(i,n,o,c,l,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,e)=>{e.d(r,{f:()=>it,Z:()=>it});var n=e(373),o=e(988),i=e(625),a=e(587),c=e(769),l=e(341),s=e(72),u=e(724),p=e(148),d=e(949),f=e(853),h=e(892),m=e.n(h),g=e(760),y=e.n(g),v=e(311),b=e.n(v),w=e(192),_=e.n(w),x=e(60),j=e.n(x),O=e(865),P=e.n(O),k=e(834),S={};S.styleTagTransform=P(),S.setAttributes=_(),S.insert=b().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=j(),m()(k.Z,S),k.Z&&k.Z.locals&&k.Z.locals;var A=e(220);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 L=["children","gap","className","style"];function N(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function T(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?N(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function D(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,"string");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);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}var C=function(t){var r=t.children,e=t.gap,n=void 0===e?null:e,o=t.className,i=t.style,c=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},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}(t,L);return(0,A.jsx)("div",T(T({},c),{},{className:(0,a.S)(["pdp-gallery-grid",o]),style:T({"--gap":n?"var(--spacing-".concat(n,")"):"0px"},i),children:f.Children.map(r,(function(t,r){return(0,A.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,A.jsx)(t.type,T(T({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},I=e(202),G={};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)}G.styleTagTransform=P(),G.setAttributes=_(),G.insert=b().bind(null,"head"),G.domAPI=y(),G.insertStyleElement=j(),m()(I.Z,G),I.Z&&I.Z.locals&&I.Z.locals;var F=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function X(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 M(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?X(Object(e),!0).forEach((function(r){R(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):X(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function R(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,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);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}var z=function(t){var r=t.show,e=void 0===r?1:r,n=t.scrollbar,o=void 0!==n&&n,i=t.peak,c=void 0!==i&&i,l=t.gap,s=void 0===l?null:l,u=t.direction,p=void 0===u?"horizontal":u,d=t.width,h=void 0===d?"100%":d,m=t.height,g=void 0===m?"100%":m,y=t.className,v=t.style,b=t.children,w=function(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}(t,F),_=f.Children.count(b),x="number"==typeof e?{small:e,medium:e,large:e}:e,j=function(t){return t<1||1===_?"horizontal"===p?h:g:t>=_?"calc((100% / ".concat(_,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,A.jsx)("div",M(M({},w),{},{className:(0,a.S)(["pdp-carousel","pdp-carousel--".concat(p),["pdp-carousel--scrollbar",o],["pdp-carousel--peak",c],y]),style:M(M({},v),{},{"--container-width":h,"--container-height":g,"--pdp-carousel-gap":s?"var(--spacing-".concat(s,")"):"0px","--pdp-carousel-width-small":j(x.small),"--pdp-carousel-width-medium":j(x.medium),"--pdp-carousel-width-large":j(x.large)}),children:f.Children.map(b,(function(t,r){return(0,A.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},children:(0,A.jsx)(t.type,M({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},H=e(330),Q={};function B(t){return B="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},B(t)}Q.styleTagTransform=P(),Q.setAttributes=_(),Q.insert=b().bind(null,"head"),Q.domAPI=y(),Q.insertStyleElement=j(),m()(H.Z,Q),H.Z&&H.Z.locals&&H.Z.locals;var W=["title","sku","outOfStock","hideSku","shortDescription","description","images","price","specialPrice","onAddToCart","onAddToWishlist","className","children"];function q(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function V(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?q(Object(e),!0).forEach((function(r){Y(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function Y(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==B(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===B(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var J=function(t){var r=t.title,e=t.sku,n=t.outOfStock,o=t.hideSku,f=t.shortDescription,h=t.description,m=t.images,g=t.price,y=t.specialPrice,v=t.onAddToCart,b=t.onAddToWishlist,w=t.className,_=(t.children,function(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}(t,W));return(0,A.jsxs)("div",V(V({},_),{},{className:(0,a.S)(["pdp-product",w]),children:[(0,A.jsx)("div",{className:"pdp-product__gallery-column",children:(0,A.jsx)(C,{className:"pdp-product__images",gap:"small",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,A.jsxs)("div",{className:"pdp-product__content-column",children:[(0,A.jsxs)("div",{className:"pdp-product__header",children:[(0,A.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&e&&(0,A.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",e]}),(0,A.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,A.jsx)(g.type,V(V({},g.props),{},{className:(0,a.S)([g.props.className,"pdp-product__price",["pdp-product__price--grey",y]])})),y&&(0,A.jsx)(g.type,V(V({},y.props),{},{className:(0,a.S)([y.props.className,"pdp-product__price-special"])}))]})]}),(0,A.jsx)(z,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,A.jsx)(u.Cf,{children:(0,A.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,i.X)(t.target).quantity;null==v||v({quantity:Number(r)})},className:(0,a.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",n]]),children:[n&&(0,A.jsx)("div",{className:"pdp-product__out-of-stock__text",children:(0,A.jsx)(u.xv,{id:"PDP.Product.OutOfStock.label"})}),!n&&(0,A.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.Incrementer.label"}),className:"pdp-product__quantity"}),(0,A.jsxs)("div",{className:"pdp-product__buttons",children:[(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,A.jsx)(s.J,{source:p.Z}),disabled:!v||n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-cart__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"})})}),b&&(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,A.jsx)(s.J,{source:d.Z}),size:"medium",onClick:function(){null==b||b()},"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"})})})]})]})}),f&&(0,A.jsx)(f.type,V(V({},f.props),{},{className:(0,a.S)([f.props.className,"pdp-product__short_description"])})),h&&(0,A.jsx)(h.type,V(V({},h.props),{},{className:(0,a.S)([h.props.className,"pdp-product__description"])}))]})]}))},U=e(675);function $(t){return $="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},$(t)}var K=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function tt(){tt=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",c=o.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function s(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),c=new P(o||[]);return n(a,"_invoke",{value:_(t,e,c)}),a}function u(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 d(){}function f(){}function h(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&e.call(y,i)&&(m=y);var v=h.prototype=d.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function w(t,r){function o(n,i,a,c){var l=u(t[n],t,i);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==$(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):r.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(l.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 _(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=x(a,e);if(c){if(c===p)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 l=u(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.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=u(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 j(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(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:S}}function S(){return{value:void 0,done:!0}}return f.prototype=h,n(v,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,c,"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,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new w(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,c,"Generator"),l(v,i,(function(){return this})),l(v,"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=k,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(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 c=e.call(i,"catchLoc"),l=e.call(i,"finallyLoc");if(c&&l){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(!l)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:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function rt(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}function et(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 nt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?et(Object(e),!0).forEach((function(r){ot(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):et(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ot(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==$(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var it=function(t){var r,e=t.sku,i=t.hideSku,a=t.onAddToCart,c=t.onAddToWishlist,l=(t.children,t.initialData),s=function(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}(t,K),u=l,p=null==u?void 0:u.price.regular.amount.value,d=null==u?void 0:u.price.regular.amount.currency,f=null==u?void 0:u.price.final.amount.value,h=null==u?void 0:u.price.final.amount.currency;return(0,A.jsx)("div",nt(nt({},s),{},{children:(0,A.jsx)(J,{title:null==u?void 0:u.name,sku:!i&&(null==u?void 0:u.sku),shortDescription:(null==u?void 0:u.shortDescription)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.shortDescription}}),description:(null==u?void 0:u.description)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.description}}),images:null==u||null===(r=u.images)||void 0===r?void 0:r.map((function(t,r){var e=t.label,o=t.url;return(0,A.jsx)(n.E,{alt:e,src:o,width:400},r)})),price:(null==u?void 0:u.price.roles.includes("visible"))&&(0,A.jsx)(o.t,{amount:p,currency:d,variant:p===f?"default":"strikethrough"}),specialPrice:(null==u?void 0:u.price.roles.includes("visible"))&&f!==p&&(0,A.jsx)(o.t,{amount:f,currency:h,variant:"default"}),outOfStock:!(null!=u&&u.inStock),onAddToCart:(null==u?void 0:u.addToCartAllowed)&&function(t){null==a||a(nt({sku:e},t))},onAddToWishlist:c&&function(){null==c||c({sku:e})}})}))};it.getInitialData=function(){var t,r=(t=tt().mark((function t(r){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.sku,t.next=3,(0,U.b)(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){rt(i,n,o,a,c,"next",t)}function c(t){rt(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},202:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-carousel {\n --width: var(--pdp-carousel-width-small);\n --peak: 0%;\n display: grid;\n grid-gap: var(--pdp-carousel-gap);\n scroll-padding: var(--peak);\n width: var(--container-width);\n height: var(--container-height);\n}\n\n.pdp-carousel--peak {\n --peak: 5%;\n}\n\n.pdp-carousel--horizontal {\n grid-auto-columns: var(--width);\n grid-auto-flow: column;\n grid-auto-rows: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n}\n\n.pdp-carousel--vertical {\n grid-auto-columns: 100%;\n grid-auto-flow: row;\n grid-auto-rows: var(--width);\n overflow-x: hidden;\n overflow-y: auto;\n scroll-snap-type: y mandatory;\n}\n\n/* Items */\n.pdp-carousel__item {\n scroll-snap-align: center;\n}\n\n.pdp-carousel__item > * {\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n}\n\n.pdp-carousel__item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n/* Scrollbar */\n.pdp-carousel--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar)::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n@media only screen and (min-width: 768px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-medium);\n }\n}\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n@media only screen and (min-width: 1366px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-large);\n }\n}\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},834:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.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: cover;\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 c=a},330:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.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}\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 color: var(--color-neutral-800);\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 color: var(--color-neutral-800);\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n\n.pdp-product__buttons {\n grid-column: 1;\n display: grid;\n grid-gap: var(--spacing-small);\n}\n\n.pdp-product__short_description {\n 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 font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n\n.pdp-product__short_description p,\n.pdp-product__description p {\n margin: 0;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n grid-row: 1 / 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n position: sticky;\n top: var(--spacing-medium);\n }\n\n .pdp-product__images--carousel {\n display: none;\n }\n\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n grid-template-columns: 1fr auto;\n }\n\n .pdp-product__add-to-wishlist {\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-right: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n }\n\n .pdp-product__add-to-wishlist__label {\n display: none;\n }\n\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},853:(t,e,n)=>{var o,i;t.exports=(o={Children:()=>r.Children,useMemo:()=>r.useMemo},i={},n.d(i,o),i)},437:(t,r,n)=>{var o,i;t.exports=(o={useCallback:()=>e.useCallback,useContext:()=>e.useContext,useDebugValue:()=>e.useDebugValue,useEffect:()=>e.useEffect,useId:()=>e.useId,useImperativeHandle:()=>e.useImperativeHandle,useLayoutEffect:()=>e.useLayoutEffect,useMemo:()=>e.useMemo,useReducer:()=>e.useReducer,useRef:()=>e.useRef,useState:()=>e.useState},i={},n.d(i,o),i)},142:(t,r,e)=>{var o,i;t.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},i={},e.d(i,o),i)},474:(t,r,e)=>{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={},e.d(i,n),i)}};import i from"../runtime.js";import*as a from"../757.js";i.C(a);import*as c from"../285.js";i.C(c);import*as l from"./ProductDetails.js";i.C(l);var s=(42,i(i.s=42)),u=s.f,p=s.Z;export{u as ProductDetails,p as default};
|
|
2
|
+
import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/preact-compat.js";import*as e 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=175;export const ids=[175];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>p,iE:()=>d,XV:()=>s,gO:()=>c,mv:()=>l,yg:()=>u});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,l=a.setFetchGraphQlHeader,s=a.removeFetchGraphQlHeader,u=a.setFetchGraphQlHeaders,p=a.fetchGraphQl,d=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return 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:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function p(t,r,e,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:j(t,e,c)}),a}function d(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function m(){}function g(){}var y={};u(y,c,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(A([])));b&&b!==r&&e.call(b,c)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function i(n,a,c,l){var s=d(t[n],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==o(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,c,l)}),(function(t){i("throw",t,c,l)})):r.resolve(p).then((function(t){u.value=t,c(u)}),(function(t){return i("throw",t,c,l)}))}l(s.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 j(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===f)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 l=d(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.arg)}}}function O(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,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),f;var o=d(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,f;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,f):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}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 k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(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:E}}function E(){return{value:void 0,done:!0}}return m.prototype=g,n(w,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(p(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),u(w,s,"Generator"),u(w,c,(function(){return this})),u(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=A,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(k),!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"),l=e.call(i,"finallyLoc");if(c&&l){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(!l)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,f):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),f},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),k(e),f}},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;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:A(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},t}function a(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,l;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\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 a=t.sent,c=a.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?:/,"")})),t.abrupt("return",l);case 7:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,l,"next",t)}function l(t){a(i,n,o,c,l,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,e)=>{e.d(r,{f:()=>it,Z:()=>it});var n=e(373),o=e(988),i=e(625),a=e(587),c=e(769),l=e(341),s=e(72),u=e(724),p=e(148),d=e(949),f=e(853),h=e(892),m=e.n(h),g=e(760),y=e.n(g),v=e(311),b=e.n(v),w=e(192),_=e.n(w),x=e(60),j=e.n(x),O=e(865),P=e.n(O),k=e(834),S={};S.styleTagTransform=P(),S.setAttributes=_(),S.insert=b().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=j(),m()(k.Z,S),k.Z&&k.Z.locals&&k.Z.locals;var A=e(220);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 L=["children","gap","className","style"];function N(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function T(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?N(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function D(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,"string");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);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}var C=function(t){var r=t.children,e=t.gap,n=void 0===e?null:e,o=t.className,i=t.style,c=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},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}(t,L);return(0,A.jsx)("div",T(T({},c),{},{className:(0,a.S)(["pdp-gallery-grid",o]),style:T({"--gap":n?"var(--spacing-".concat(n,")"):"0px"},i),children:f.Children.map(r,(function(t,r){return(0,A.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,A.jsx)(t.type,T(T({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},I=e(202),G={};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)}G.styleTagTransform=P(),G.setAttributes=_(),G.insert=b().bind(null,"head"),G.domAPI=y(),G.insertStyleElement=j(),m()(I.Z,G),I.Z&&I.Z.locals&&I.Z.locals;var F=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function X(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 M(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?X(Object(e),!0).forEach((function(r){R(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):X(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function R(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,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);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}var z=function(t){var r=t.show,e=void 0===r?1:r,n=t.scrollbar,o=void 0!==n&&n,i=t.peak,c=void 0!==i&&i,l=t.gap,s=void 0===l?null:l,u=t.direction,p=void 0===u?"horizontal":u,d=t.width,h=void 0===d?"100%":d,m=t.height,g=void 0===m?"100%":m,y=t.className,v=t.style,b=t.children,w=function(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}(t,F),_=f.Children.count(b),x="number"==typeof e?{small:e,medium:e,large:e}:e,j=function(t){return t<1||1===_?"horizontal"===p?h:g:t>=_?"calc((100% / ".concat(_,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,A.jsx)("div",M(M({},w),{},{className:(0,a.S)(["pdp-carousel","pdp-carousel--".concat(p),["pdp-carousel--scrollbar",o],["pdp-carousel--peak",c],y]),style:M(M({},v),{},{"--container-width":h,"--container-height":g,"--pdp-carousel-gap":s?"var(--spacing-".concat(s,")"):"0px","--pdp-carousel-width-small":j(x.small),"--pdp-carousel-width-medium":j(x.medium),"--pdp-carousel-width-large":j(x.large)}),children:f.Children.map(b,(function(t,r){return(0,A.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},children:(0,A.jsx)(t.type,M({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},H=e(330),Q={};function B(t){return B="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},B(t)}Q.styleTagTransform=P(),Q.setAttributes=_(),Q.insert=b().bind(null,"head"),Q.domAPI=y(),Q.insertStyleElement=j(),m()(H.Z,Q),H.Z&&H.Z.locals&&H.Z.locals;var W=["title","sku","outOfStock","hideSku","shortDescription","description","images","price","specialPrice","onAddToCart","onAddToWishlist","className","children"];function q(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function V(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?q(Object(e),!0).forEach((function(r){Y(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function Y(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==B(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===B(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var J=function(t){var r=t.title,e=t.sku,n=t.outOfStock,o=t.hideSku,f=t.shortDescription,h=t.description,m=t.images,g=t.price,y=t.specialPrice,v=t.onAddToCart,b=t.onAddToWishlist,w=t.className,_=(t.children,function(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}(t,W));return(0,A.jsxs)("div",V(V({},_),{},{className:(0,a.S)(["pdp-product",w]),children:[(0,A.jsx)("div",{className:"pdp-product__gallery-column",children:(0,A.jsx)(C,{className:"pdp-product__images",gap:"small",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,A.jsxs)("div",{className:"pdp-product__content-column",children:[(0,A.jsxs)("div",{className:"pdp-product__header",children:[(0,A.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&e&&(0,A.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",e]}),(0,A.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,A.jsx)(g.type,V(V({},g.props),{},{className:(0,a.S)([g.props.className,"pdp-product__price",["pdp-product__price--grey",y]])})),y&&(0,A.jsx)(g.type,V(V({},y.props),{},{className:(0,a.S)([y.props.className,"pdp-product__price-special"])}))]})]}),(0,A.jsx)(z,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,A.jsx)(u.Cf,{children:(0,A.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,i.X)(t.target).quantity;null==v||v({quantity:Number(r)})},className:(0,a.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",n]]),children:[n&&(0,A.jsx)("div",{className:"pdp-product__out-of-stock__text",children:(0,A.jsx)(u.xv,{id:"PDP.Product.OutOfStock.label"})}),!n&&(0,A.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.Incrementer.label"}),className:"pdp-product__quantity"}),(0,A.jsxs)("div",{className:"pdp-product__buttons",children:[(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,A.jsx)(s.J,{source:p.Z}),disabled:!v||n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-cart__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"})})}),b&&(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,A.jsx)(s.J,{source:d.Z}),size:"medium",onClick:function(){null==b||b()},"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"})})})]})]})}),f&&(0,A.jsx)(f.type,V(V({},f.props),{},{className:(0,a.S)([f.props.className,"pdp-product__short_description"])})),h&&(0,A.jsx)(h.type,V(V({},h.props),{},{className:(0,a.S)([h.props.className,"pdp-product__description"])}))]})]}))},U=e(675);function $(t){return $="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},$(t)}var K=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function tt(){tt=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",c=o.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function s(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),c=new P(o||[]);return n(a,"_invoke",{value:_(t,e,c)}),a}function u(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 d(){}function f(){}function h(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&e.call(y,i)&&(m=y);var v=h.prototype=d.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function w(t,r){function o(n,i,a,c){var l=u(t[n],t,i);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==$(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):r.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(l.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 _(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=x(a,e);if(c){if(c===p)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 l=u(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.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=u(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 j(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(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:S}}function S(){return{value:void 0,done:!0}}return f.prototype=h,n(v,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,c,"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,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new w(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,c,"Generator"),l(v,i,(function(){return this})),l(v,"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=k,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(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 c=e.call(i,"catchLoc"),l=e.call(i,"finallyLoc");if(c&&l){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(!l)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:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function rt(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}function et(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 nt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?et(Object(e),!0).forEach((function(r){ot(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):et(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ot(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==$(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var it=function(t){var r,e=t.sku,i=t.hideSku,a=t.onAddToCart,c=t.onAddToWishlist,l=(t.children,t.initialData),s=function(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}(t,K),u=l,p=null==u?void 0:u.price.regular.amount.value,d=null==u?void 0:u.price.regular.amount.currency,f=null==u?void 0:u.price.final.amount.value,h=null==u?void 0:u.price.final.amount.currency;return(0,A.jsx)("div",nt(nt({},s),{},{children:(0,A.jsx)(J,{title:null==u?void 0:u.name,sku:!i&&(null==u?void 0:u.sku),shortDescription:(null==u?void 0:u.shortDescription)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.shortDescription}}),description:(null==u?void 0:u.description)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.description}}),images:null==u||null===(r=u.images)||void 0===r?void 0:r.map((function(t,r){var e=t.label,o=t.url;return(0,A.jsx)(n.E,{alt:e,src:o,width:400},r)})),price:(null==u?void 0:u.price.roles.includes("visible"))&&(0,A.jsx)(o.t,{amount:p,currency:d,variant:p===f?"default":"strikethrough"}),specialPrice:(null==u?void 0:u.price.roles.includes("visible"))&&f!==p&&(0,A.jsx)(o.t,{amount:f,currency:h,variant:"default"}),outOfStock:!(null!=u&&u.inStock),onAddToCart:(null==u?void 0:u.addToCartAllowed)&&function(t){null==a||a(nt({sku:e},t))},onAddToWishlist:c&&function(){null==c||c({sku:e})}})}))};it.getInitialData=function(){var t,r=(t=tt().mark((function t(r){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.sku,t.next=3,(0,U.b)(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){rt(i,n,o,a,c,"next",t)}function c(t){rt(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},202:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-carousel {\n --width: var(--pdp-carousel-width-small);\n --peak: 0%;\n display: grid;\n grid-gap: var(--pdp-carousel-gap);\n scroll-padding: var(--peak);\n width: var(--container-width);\n height: var(--container-height);\n}\n\n.pdp-carousel--peak {\n --peak: 5%;\n}\n\n.pdp-carousel--horizontal {\n grid-auto-columns: var(--width);\n grid-auto-flow: column;\n grid-auto-rows: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n}\n\n.pdp-carousel--vertical {\n grid-auto-columns: 100%;\n grid-auto-flow: row;\n grid-auto-rows: var(--width);\n overflow-x: hidden;\n overflow-y: auto;\n scroll-snap-type: y mandatory;\n}\n\n/* Items */\n.pdp-carousel__item {\n scroll-snap-align: center;\n}\n\n.pdp-carousel__item > * {\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n}\n\n.pdp-carousel__item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n/* Scrollbar */\n.pdp-carousel--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar)::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n@media only screen and (min-width: 768px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-medium);\n }\n}\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n@media only screen and (min-width: 1366px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-large);\n }\n}\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},834:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.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: cover;\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 c=a},330:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.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}\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 color: var(--color-neutral-800);\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 color: var(--color-neutral-800);\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n\n.pdp-product__buttons {\n grid-column: 1;\n display: grid;\n grid-gap: var(--spacing-small);\n}\n\n.pdp-product__short_description {\n 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 font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n\n.pdp-product__short_description p,\n.pdp-product__description p {\n margin: 0;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n grid-row: 1 / 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n position: sticky;\n top: var(--spacing-medium);\n }\n\n .pdp-product__images--carousel {\n display: none;\n }\n\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n grid-template-columns: 1fr auto;\n }\n\n .pdp-product__add-to-wishlist {\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-right: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n }\n\n .pdp-product__add-to-wishlist__label {\n display: none;\n }\n\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},853:(t,e,n)=>{var o,i;t.exports=(o={Children:()=>r.Children,useMemo:()=>r.useMemo},i={},n.d(i,o),i)},437:(t,r,n)=>{var o,i;t.exports=(o={useCallback:()=>e.useCallback,useContext:()=>e.useContext,useDebugValue:()=>e.useDebugValue,useEffect:()=>e.useEffect,useId:()=>e.useId,useImperativeHandle:()=>e.useImperativeHandle,useLayoutEffect:()=>e.useLayoutEffect,useMemo:()=>e.useMemo,useReducer:()=>e.useReducer,useRef:()=>e.useRef,useState:()=>e.useState},i={},n.d(i,o),i)},142:(t,r,e)=>{var o,i;t.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},i={},e.d(i,o),i)},474:(t,r,e)=>{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={},e.d(i,n),i)}};import i from"../runtime.js";import*as a from"../757.js";i.C(a);import*as c from"../285.js";i.C(c);import*as l from"./ProductDetails.js";i.C(l);var s=(42,i(i.s=42)),u=s.f,p=s.Z;export{u as ProductDetails,p as default};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-pdp", "version": "0.1.0-
|
|
1
|
+
{"name": "@dropins/storefront-pdp", "version": "0.1.0-alpha11", "dependencies": { "@dropins/elsie": "0.4.0-beta3" } }
|