@dropins/storefront-pdp 0.1.0-alpha2 → 0.1.0-alpha4
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/render.js +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"elsie-sdk/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={318:(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(318);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 amount {\n value\n currency\n }\n }\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(318),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"elsie-sdk/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={318:(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(318);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(318),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"elsie-sdk/fetch-graphql.js";import*as r from"elsie-sdk/preact-compat.js";import*as n from"elsie-sdk/preact-hooks.js";import*as e from"elsie-sdk/preact-jsx-runtime.js";import*as o from"elsie-sdk/preact.js";export const id=175;export const ids=[175];export const modules={318:(r,n,e)=>{e.d(n,{gX:()=>u,iE:()=>d,XV:()=>s,gO:()=>l,mv:()=>c,yg:()=>p});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},e.d(i,o),i).FetchGraphQL)).getMethods(),l=a.setEndpoint,c=a.setFetchGraphQlHeader,s=a.removeFetchGraphQlHeader,p=a.setFetchGraphQlHeaders,u=a.fetchGraphQl,d=a.getConfig},675:(t,r,n)=>{n.d(r,{b:()=>l});var e=n(318);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,n=r.hasOwnProperty,e=Object.defineProperty||function(t,r,n){t[r]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function p(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{p({},"")}catch(t){p=function(t,r,n){return t[r]=n}}function u(t,r,n,o){var i=r&&r.prototype instanceof m?r:m,a=Object.create(i.prototype),l=new k(o||[]);return e(a,"_invoke",{value:j(t,n,l)}),a}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function m(){}function g(){}function h(){}var y={};p(y,l,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(P([])));b&&b!==r&&n.call(b,l)&&(y=b);var w=h.prototype=m.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(r){p(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function i(e,a,l,c){var s=d(t[e],t,a);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==o(u)&&n.call(u,"__await")?r.resolve(u.__await).then((function(t){i("next",t,l,c)}),(function(t){i("throw",t,l,c)})):r.resolve(u).then((function(t){p.value=t,l(p)}),(function(t){return i("throw",t,l,c)}))}c(s.arg)}var a;e(this,"_invoke",{value:function(t,n){function e(){return new r((function(r,e){i(t,n,r,e)}))}return a=a?a.then(e,e):e()}})}function j(t,r,n){var e="suspendedStart";return function(o,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===e)throw e="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);e="executing";var c=d(t,r,n);if("normal"===c.type){if(e=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(e="completed",n.method="throw",n.arg=c.arg)}}}function O(t,r){var n=r.method,e=t.iterator[n];if(void 0===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(e,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 S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function A(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],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 g.prototype=h,e(w,"constructor",{value:h,configurable:!0}),e(h,"constructor",{value:g,configurable:!0}),g.displayName=p(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,p(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),p(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(r,n,e,o,i){void 0===i&&(i=Promise);var a=new x(u(r,n,e,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),p(w,s,"Generator"),p(w,l,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.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 e(n,e){return a.type="throw",a.arg=t,r.next=n,e&&(r.method="next",r.arg=void 0),!!e}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var 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 n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),f}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var e=n.completion;if("throw"===e.type){var o=e.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function a(t,r,n,e,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?r(c):Promise.resolve(c).then(e,o)}var l=function(){var t,r=(t=i().mark((function t(r){var n,o,a,l,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("👀",(0,e.iE)()),t.next=3,(0,e.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 amount {\n value\n currency\n }\n }\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 3:return a=t.sent,l=a.data,null==(c=null==l||null===(n=l.products)||void 0===n?void 0:n[0])||null===(o=c.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,n=arguments;return new Promise((function(e,o){var i=t.apply(r,n);function l(t){a(i,e,o,l,c,"next",t)}function c(t){a(i,e,o,l,c,"throw",t)}l(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,n)=>{n.d(r,{f:()=>ot,Z:()=>ot});var e=n(493),o=n(373),i=n(988),a=n(625),l=n(587),c=n(769),s=n(853),p=n(72),u=n(724),d=n(148),f=n(949),m=n(892),g=n.n(m),h=n(760),y=n.n(h),v=n(311),b=n.n(v),w=n(192),_=n.n(w),x=n(60),j=n.n(x),O=n(865),S=n.n(O),A=n(834),k={};k.styleTagTransform=S(),k.setAttributes=_(),k.insert=b().bind(null,"head"),k.domAPI=y(),k.insertStyleElement=j(),g()(A.Z,k),A.Z&&A.Z.locals&&A.Z.locals;var P=n(188);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 n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function D(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?N(Object(n),!0).forEach((function(r){T(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function T(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==E(e))return e;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:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var C=function(t){var r=t.children,n=t.gap,o=void 0===n?null:n,i=t.className,a=t.style,c=function(t,r){if(null==t)return{};var n,e,o=function(t,r){if(null==t)return{};var n,e,o={},i=Object.keys(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,L);return(0,P.jsx)("div",D(D({},c),{},{className:(0,l.S)(["pdp-gallery-grid",i]),style:D({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},a),children:e.Children.map(r,(function(t,r){return(0,P.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,P.jsx)(t.type,D(D({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},I=n(202),Z={};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}Z.styleTagTransform=S(),Z.setAttributes=_(),Z.insert=b().bind(null,"head"),Z.domAPI=y(),Z.insertStyleElement=j(),g()(I.Z,Z),I.Z&&I.Z.locals&&I.Z.locals;var F=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function M(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function X(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?M(Object(n),!0).forEach((function(r){R(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function R(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==G(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==G(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===G(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var z=function(t){var r=t.show,n=void 0===r?1:r,o=t.scrollbar,i=void 0!==o&&o,a=t.peak,c=void 0!==a&&a,s=t.gap,p=void 0===s?null:s,u=t.direction,d=void 0===u?"horizontal":u,f=t.width,m=void 0===f?"100%":f,g=t.height,h=void 0===g?"100%":g,y=t.className,v=t.style,b=t.children,w=function(t,r){if(null==t)return{};var n,e,o=function(t,r){if(null==t)return{};var n,e,o={},i=Object.keys(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,F),_=e.Children.count(b),x="number"==typeof n?{small:n,medium:n,large:n}:n,j=function(t){return t<1||1===_?"horizontal"===d?m:h:t>=_?"calc((100% / ".concat(_,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,P.jsx)("div",X(X({},w),{},{className:(0,l.S)(["pdp-carousel","pdp-carousel--".concat(d),["pdp-carousel--scrollbar",i],["pdp-carousel--peak",c],y]),style:X(X({},v),{},{"--container-width":m,"--container-height":h,"--pdp-carousel-gap":p?"var(--spacing-".concat(p,")"):"0px","--pdp-carousel-width-small":j(x.small),"--pdp-carousel-width-medium":j(x.medium),"--pdp-carousel-width-large":j(x.large)}),children:e.Children.map(b,(function(t,r){return(0,P.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},children:(0,P.jsx)(t.type,X({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},H=n(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=S(),Q.setAttributes=_(),Q.insert=b().bind(null,"head"),Q.domAPI=y(),Q.insertStyleElement=j(),g()(H.Z,Q),H.Z&&H.Z.locals&&H.Z.locals;var W=["title","sku","outOfStock","hideSku","shortDescription","description","images","price","onAddToCart","onAddToWishlist","className","children"];function q(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function V(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?q(Object(n),!0).forEach((function(r){U(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function U(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==B(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==B(e))return e;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:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var $=function(t){var r=t.title,n=t.sku,e=t.outOfStock,o=t.hideSku,i=t.shortDescription,m=t.description,g=t.images,h=t.price,y=t.onAddToCart,v=t.onAddToWishlist,b=t.className,w=(t.children,function(t,r){if(null==t)return{};var n,e,o=function(t,r){if(null==t)return{};var n,e,o={},i=Object.keys(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,W));return(0,P.jsxs)("div",V(V({},w),{},{className:(0,l.S)(["pdp-product",b]),children:[(0,P.jsx)("div",{className:"pdp-product__gallery-column",children:(0,P.jsx)(C,{className:"pdp-product__images",gap:"small",children:null!=g&&g.length?g.map((function(t,r){return(0,P.jsx)(t.type,V({},t.props),r)})):(0,P.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,P.jsxs)("div",{className:"pdp-product__content-column",children:[(0,P.jsxs)("div",{className:"pdp-product__header",children:[(0,P.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&n&&(0,P.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",n]}),(0,P.jsx)(h.type,V(V({},h.props),{},{className:(0,l.S)([h.props.className,"pdp-product__price"])}))]}),(0,P.jsx)(z,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:null!=g&&g.length?g.map((function(t,r){return(0,P.jsx)(t.type,V({},t.props),r)})):(0,P.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,P.jsx)(u.Cf,{children:(0,P.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,a.X)(t.target).quantity;null==y||y({quantity:Number(r)})},className:(0,l.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",e]]),children:[e&&(0,P.jsx)("div",{className:"pdp-product__out-of-stock__text",children:(0,P.jsx)(u.xv,{id:"PDP.Product.OutOfStock.label"})}),!e&&(0,P.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:e,"aria-label":(0,P.jsx)(u.xv,{id:"PDP.Product.Incrementer.label"}),className:"pdp-product__quantity"}),(0,P.jsxs)("div",{className:"pdp-product__buttons",children:[(0,P.jsx)(s.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,P.jsx)(p.J,{source:d.Z}),disabled:!y||e,"aria-label":(0,P.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"}),children:(0,P.jsx)("span",{className:"pdp-product__add-to-cart__label",children:(0,P.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"})})}),v&&(0,P.jsx)(s.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,P.jsx)(p.J,{source:f.Z}),size:"medium",onClick:function(){null==v||v()},"aria-label":(0,P.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"}),children:(0,P.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:(0,P.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"})})})]})]})}),i&&(0,P.jsx)(i.type,V(V({},i.props),{},{className:(0,l.S)([i.props.className,"pdp-product__short_description"])})),m&&(0,P.jsx)(m.type,V(V({},m.props),{},{className:(0,l.S)([m.props.className,"pdp-product__description"])}))]})]}))},J=n(675);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}var K=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function tt(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function rt(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?tt(Object(n),!0).forEach((function(r){nt(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function nt(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==Y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==Y(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function et(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var ot=function(t){var r,n,a,l=t.sku,c=t.hideSku,s=t.onAddToCart,p=t.onAddToWishlist,u=(t.children,t.initialData),d=function(t,r){if(null==t)return{};var n,e,o=function(t,r){if(null==t)return{};var n,e,o={},i=Object.keys(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,K),f=(n=(0,e.useState)(u),a=2,function(t){if(Array.isArray(t))return t}(n)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(e=i.call(n)).done)&&(l.push(e.value),l.length!==r);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,a)||function(t,r){if(t){if("string"==typeof t)return et(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(t,r):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=f[0],g=f[1];return(0,e.useEffect)((function(){(0,J.b)(l).then(g)}),[l]),null!=m&&m.name?(0,P.jsx)("div",rt(rt({},d),{},{children:(0,P.jsx)($,{title:null==m?void 0:m.name,sku:!c&&(null==m?void 0:m.sku),shortDescription:(null==m?void 0:m.shortDescription)&&(0,P.jsx)("div",{dangerouslySetInnerHTML:{__html:m.shortDescription}}),description:(null==m?void 0:m.description)&&(0,P.jsx)("div",{dangerouslySetInnerHTML:{__html:m.description}}),images:null==m||null===(r=m.images)||void 0===r?void 0:r.map((function(t,r){var n=t.label,e=t.url;return(0,P.jsx)(o.E,{alt:n,src:e,width:400},r)})),price:(0,P.jsx)(i.t,{amount:null==m?void 0:m.price.regular.amount.value,currency:null==m?void 0:m.price.regular.amount.currency}),outOfStock:!(null!=m&&m.inStock),onAddToCart:(null==m?void 0:m.addToCartAllowed)&&function(t){null==s||s(rt({sku:l},t))},onAddToWishlist:p&&function(){null==p||p({sku:l})}})})):null}},202:(t,r,n)=>{n.d(r,{Z:()=>l});var e=n(933),o=n.n(e),i=n(476),a=n.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 l=a},834:(t,r,n)=>{n.d(r,{Z:()=>l});var e=n(933),o=n.n(e),i=n(476),a=n.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 l=a},330:(t,r,n)=>{n.d(r,{Z:()=>l});var e=n(933),o=n.n(e),i=n(476),a=n.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__price {\n font: var(--type-headline-2-strong-font);\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__sku,\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__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 l=a},493:(t,n,e)=>{var o,i;t.exports=(o={Children:()=>r.Children,useEffect:()=>r.useEffect,useMemo:()=>r.useMemo,useState:()=>r.useState},i={},e.d(i,o),i)},241:(t,r,e)=>{var o,i;t.exports=(o={useCallback:()=>n.useCallback,useContext:()=>n.useContext,useDebugValue:()=>n.useDebugValue,useEffect:()=>n.useEffect,useId:()=>n.useId,useImperativeHandle:()=>n.useImperativeHandle,useLayoutEffect:()=>n.useLayoutEffect,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState},i={},e.d(i,o),i)},76:(t,r,n)=>{var o,i;t.exports=(o={jsx:()=>e.jsx,jsxs:()=>e.jsxs},i={},n.d(i,o),i)},752:(t,r,n)=>{var e,i;t.exports=(e={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},i={},n.d(i,e),i)}};import i from"../runtime.js";import*as a from"../757.js";i.C(a);import*as l from"../285.js";i.C(l);import*as c from"./ProductDetails.js";i.C(c);var s=(42,i(i.s=42)),p=s.f,u=s.Z;export{p as ProductDetails,u as default};
|
|
2
|
+
import*as t from"elsie-sdk/fetch-graphql.js";import*as r from"elsie-sdk/preact-compat.js";import*as e from"elsie-sdk/preact-hooks.js";import*as n from"elsie-sdk/preact-jsx-runtime.js";import*as o from"elsie-sdk/preact.js";export const id=175;export const ids=[175];export const modules={318:(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(318);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 k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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(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"),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),P(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;P(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(853),s=e(72),u=e(724),p=e(148),d=e(949),f=e(493),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),k=e.n(O),P=e(834),S={};S.styleTagTransform=k(),S.setAttributes=_(),S.insert=b().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=j(),m()(P.Z,S),P.Z&&P.Z.locals&&P.Z.locals;var A=e(188);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=k(),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=k(),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 k(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(P([])));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 k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next: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=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:P(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},493:(t,e,n)=>{var o,i;t.exports=(o={Children:()=>r.Children,useMemo:()=>r.useMemo},i={},n.d(i,o),i)},241:(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)},76:(t,r,e)=>{var o,i;t.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},i={},e.d(i,o),i)},752:(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-alpha4" }
|
package/render.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see render.js.LICENSE.txt */
|
|
2
|
-
import*as e from"elsie-sdk/event-bus.js";import*as t from"elsie-sdk/preact-compat.js";import*as r from"elsie-sdk/preact-hooks.js";import*as n from"elsie-sdk/preact-jsx-runtime.js";import*as o from"elsie-sdk/preact.js";export const id=70;export const ids=[70];export const modules={570:(t,r,n)=>{n.d(r,{s:()=>Oe});var o=n(752),a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,l=/[\s\n\\/='"\0<>]/,s=/^xlink:?./,c=/["&<]/;function u(e){if(!1===c.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var f=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},p=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},d={},y=/([A-Z])/g;function m(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:d[r]||(d[r]=r.replace(y,"-$1").toLowerCase()),t="number"==typeof n&&!1===a.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function v(e,t){return Array.isArray(t)?t.reduce(v,e):null!=t&&!1!==t&&e.push(t),e}function h(){this.__d=!0}function g(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:[]}}function b(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var x=[];function _(e,t,r,n,a,c){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":u(e);var d=r.pretty,y=d&&"string"==typeof d?d:"\t";if(Array.isArray(e)){for(var h="",w=0;w<e.length;w++)d&&w>0&&(h+="\n"),h+=_(e[w],t,r,n,a,c);return h}if(void 0!==e.constructor)return"";var O,j=e.type,S=e.props,A=!1;if("function"==typeof j){if(A=!0,!r.shallow||!n&&!1!==r.renderRootComponent){if(j===o.Fragment){var k=[];return v(k,e.props.children),_(k,t,r,!1!==r.shallowHighOrder,a,c)}var E,L=e.__c=g(e,t);o.options.__b&&o.options.__b(e);var P=o.options.__r;if(j.prototype&&"function"==typeof j.prototype.render){var C=b(j,t);(L=e.__c=new j(S,C)).__v=e,L._dirty=L.__d=!0,L.props=S,null==L.state&&(L.state={}),null==L._nextState&&null==L.__s&&(L._nextState=L.__s=L.state),L.context=C,j.getDerivedStateFromProps?L.state=Object.assign({},L.state,j.getDerivedStateFromProps(L.props,L.state)):L.componentWillMount&&(L.componentWillMount(),L.state=L._nextState!==L.state?L._nextState:L.__s!==L.state?L.__s:L.state),P&&P(e),E=L.render(L.props,L.state,L.context)}else for(var D=b(j,t),M=0;L.__d&&M++<25;)L.__d=!1,P&&P(e),E=j.call(e.__c,S,D);return L.getChildContext&&(t=Object.assign({},t,L.getChildContext())),o.options.diffed&&o.options.diffed(e),_(E,t,r,!1!==r.shallowHighOrder,a,c)}j=(O=j).displayName||O!==Function&&O.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=x.length;n--;)if(x[n]===e){r=n;break}r<0&&(r=x.push(e)-1),t="UnnamedComponent"+r}return t}(O)}var F,I,T="<"+j;if(S){var N=Object.keys(S);r&&!0===r.sortAttributes&&N.sort();for(var H=0;H<N.length;H++){var R=N[H],Z=S[R];if("children"!==R){if(!l.test(R)&&(r&&r.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==S.class)continue;R="class"}else a&&s.test(R)&&(R=R.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===R){if(S.for)continue;R="for"}"style"===R&&Z&&"object"==typeof Z&&(Z=m(Z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof Z&&(Z=String(Z));var G=r.attributeHook&&r.attributeHook(R,Z,t,r,A);if(G||""===G)T+=G;else if("dangerouslySetInnerHTML"===R)I=Z&&Z.__html;else if("textarea"===j&&"value"===R)F=Z;else if((Z||0===Z||""===Z)&&"function"!=typeof Z){if(!(!0!==Z&&""!==Z||(Z=R,r&&r.xml))){T=T+" "+R;continue}if("value"===R){if("select"===j){c=Z;continue}"option"===j&&c==Z&&void 0===S.selected&&(T+=" selected")}T=T+" "+R+'="'+u(Z)+'"'}}}else F=Z}}if(d){var $=T.replace(/\n\s*/," ");$===T||~$.indexOf("\n")?d&&~T.indexOf("\n")&&(T+="\n"):T=$}if(T+=">",l.test(j))throw new Error(j+" is not a valid HTML tag name in "+T);var U,W=i.test(j)||r.voidElements&&r.voidElements.test(j),z=[];if(I)d&&p(I)&&(I="\n"+y+f(I,y)),T+=I;else if(null!=F&&v(U=[],F).length){for(var Q=d&&~T.indexOf("\n"),B=!1,J=0;J<U.length;J++){var V=U[J];if(null!=V&&!1!==V){var q=_(V,t,r,!0,"svg"===j||"foreignObject"!==j&&a,c);if(d&&!Q&&p(q)&&(Q=!0),q)if(d){var Y=q.length>0&&"<"!=q[0];B&&Y?z[z.length-1]+=q:z.push(q),B=Y}else z.push(q)}}if(d&&Q)for(var K=z.length;K--;)z[K]="\n"+y+f(z[K],y)}if(z.length||I)T+=z.join("");else if(r&&r.xml)return T.substring(0,T.length-1)+" />";return!W||U||I?(d&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+j+">"):T=T.replace(/>$/," />"),T}var w={shallow:!0};j.render=j;var O=[];function j(e,t,r){t=t||{};var n=o.options.__s;o.options.__s=!0;var a,i=(0,o.h)(o.Fragment,null);return i.__k=[e],a=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?_(e,t,r):P(e,t,!1,void 0,i),o.options.__c&&o.options.__c(e,O),o.options.__s=n,O.length=0,a}function S(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,o.h)(null,null,e):e}function A(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&s.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function k(e,t){return"style"===e&&null!=t&&"object"==typeof t?m(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var E=Array.isArray,L=Object.assign;function P(e,t,r,n,a){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":u(e);if(E(e)){var s="";a.__k=e;for(var c=0;c<e.length;c++)s+=P(e[c],t,r,n,a),e[c]=S(e[c]);return s}if(void 0!==e.constructor)return"";e.__=a,o.options.__b&&o.options.__b(e);var f=e.type,p=e.props;if("function"==typeof f){var d;if(f===o.Fragment)d=p.children;else{d=f.prototype&&"function"==typeof f.prototype.render?function(e,t){var r=e.type,n=b(r,t),a=new r(e.props,n);e.__c=a,a.__v=e,a.__d=!0,a.props=e.props,null==a.state&&(a.state={}),null==a.__s&&(a.__s=a.state),a.context=n,r.getDerivedStateFromProps?a.state=L({},a.state,r.getDerivedStateFromProps(a.props,a.state)):a.componentWillMount&&(a.componentWillMount(),a.state=a.__s!==a.state?a.__s:a.state);var i=o.options.__r;return i&&i(e),a.render(a.props,a.state,a.context)}(e,t):function(e,t){var r,n=g(e,t),a=b(e.type,t);e.__c=n;for(var i=o.options.__r,l=0;n.__d&&l++<25;)n.__d=!1,i&&i(e),r=e.type.call(n,e.props,a);return r}(e,t);var y=e.__c;y.getChildContext&&(t=L({},t,y.getChildContext()))}var m=P(d=null!=d&&d.type===o.Fragment&&null==d.key?d.props.children:d,t,r,n,e);return o.options.diffed&&o.options.diffed(e),e.__=void 0,o.options.unmount&&o.options.unmount(e),m}var v,h,x="<";if(x+=f,p)for(var _ in v=p.children,p){var w=p[_];if(!("key"===_||"ref"===_||"__self"===_||"__source"===_||"children"===_||"className"===_&&"class"in p||"htmlFor"===_&&"for"in p||l.test(_)))if(w=k(_=A(_,r),w),"dangerouslySetInnerHTML"===_)h=w&&w.__html;else if("textarea"===f&&"value"===_)v=w;else if((w||0===w||""===w)&&"function"!=typeof w){if(!0===w||""===w){w=_,x=x+" "+_;continue}if("value"===_){if("select"===f){n=w;continue}"option"!==f||n!=w||"selected"in p||(x+=" selected")}x=x+" "+_+'="'+u(w)+'"'}}var O=x;if(x+=">",l.test(f))throw new Error(f+" is not a valid HTML tag name in "+x);var j="",C=!1;if(h)j+=h,C=!0;else if("string"==typeof v)j+=u(v),C=!0;else if(E(v)){e.__k=v;for(var D=0;D<v.length;D++){var M=v[D];if(v[D]=S(M),null!=M&&!1!==M){var F=P(M,t,"svg"===f||"foreignObject"!==f&&r,n,e);F&&(j+=F,C=!0)}}}else if(null!=v&&!1!==v&&!0!==v){e.__k=[S(v)];var I=P(v,t,"svg"===f||"foreignObject"!==f&&r,n,e);I&&(j+=I,C=!0)}if(o.options.diffed&&o.options.diffed(e),e.__=void 0,o.options.unmount&&o.options.unmount(e),C)x+=j;else if(i.test(f))return O+" />";return x+"</"+f+">"}j.shallowRender=function(e,t){return j(e,t,w)};const C=j;var D=n(188);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function F(){F=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),l=new S(o||[]);return n(i,"_invoke",{value:_(e,r,l)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function d(){}function y(){}var m={};s(m,a,(function(){return this}));var v=Object.getPrototypeOf,h=v&&v(v(A([])));h&&h!==t&&r.call(h,a)&&(m=h);var g=y.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,a,i,l){var s=u(e[n],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==M(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,l)}))}l(s.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=w(i,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:d,configurable:!0}),d.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),s(g,l,"Generator"),s(g,a,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=A,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e,t,r,n,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){H(a,n,o,i,l,"next",e)}function l(e){H(a,n,o,i,l,"throw",e)}i(void 0)}))}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function G(e){var t=function(e,t){if("object"!==M(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===M(t)?t:String(t)}var $=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}var t,r,n;return t=e,r=[{key:"render",value:function(e,t){var r=this;return function(){var n=R(F().mark((function n(a){var i,l,s;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}throw new Error("Component is not defined");case 2:if(a){n.next=4;break}throw new Error("Root element is not defined");case 4:return n.next=6,null===(l=e.getInitialData)||void 0===l?void 0:l.call(e,t);case 6:if(n.t1=i=n.sent,n.t0=null!==n.t1,!n.t0){n.next=10;break}n.t0=void 0!==i;case 10:if(!n.t0){n.next=14;break}n.t2=i,n.next=15;break;case 14:n.t2={};case 15:s=n.t2,(0,o.render)((0,D.jsx)(r._provider.type,T(T({},r._provider.props),{},{children:(0,D.jsx)(e,T(T({},t),{},{initialData:s}))})),a);case 17:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}},{key:"toString",value:(n=R(F().mark((function e(t,r,n){var o,a,i;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("Component is not defined");case 2:return e.next=4,null===(a=t.getInitialData)||void 0===a?void 0:a.call(t,r);case 4:if(e.t1=o=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==o;case 8:if(!e.t0){e.next=12;break}e.t2=o,e.next=13;break;case 12:e.t2={};case 13:return i=e.t2,e.abrupt("return",C((0,D.jsx)(this._provider.type,T(T({},this._provider.props),{},{children:(0,D.jsx)(t,T(T({},r),{},{initialData:i}))})),{},T({},n)));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})}],r&&Z(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=n(241),W=n(857),z=n.n(W),Q=n(587);const B=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Decrease Quantity","increaseLabel":"Increase Quantity","label":"Quantity"}}}'),J=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Diminuer la quantité","increaseLabel":"Augmenter la quantité","label":"Quantité"}}}');var V=n(724),q={default:B,en_US:B,fr_FR:J},Y=n(892),K=n.n(Y),X=n(760),ee=n.n(X),te=n(311),re=n.n(te),ne=n(192),oe=n.n(ne),ae=n(60),ie=n.n(ae),le=n(865),se=n.n(le),ce=n(80),ue={};ue.styleTagTransform=se(),ue.setAttributes=oe(),ue.insert=re().bind(null,"head"),ue.domAPI=ee(),ue.insertStyleElement=ie(),K()(ce.Z,ue),ce.Z&&ce.Z.locals&&ce.Z.locals;var fe=n(763),pe={};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}pe.styleTagTransform=se(),pe.setAttributes=oe(),pe.insert=re().bind(null,"head"),pe.domAPI=ee(),pe.insertStyleElement=ie(),K()(fe.Z,pe),fe.Z&&fe.Z.locals&&fe.Z.locals;var ye=["lang","langDefinitions","className","children"];function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==de(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===de(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ge=function(e){var t,r=e.lang,n=void 0===r?"en_US":r,o=e.langDefinitions,a=void 0===o?{}:o,i=e.className,l=e.children,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ye),c=z()(a.default,null!==(t=a[n])&&void 0!==t?t:{}),u=z()(function(e){return z()(q.default,q[e]||{})}(n),c);return(0,D.jsx)(V.Pj,{definition:u,children:(0,D.jsx)("div",ve(ve({},s),{},{className:(0,Q.S)(["elsie-base-design",i]),children:l}))})};const be=(e=>{var t={};return n.d(t,e),t})({events:()=>e.events});function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}be.events.enableLogger(!0);var _e={default:n(770)},we=function(e){var t=e.children,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,U.useState)("en_US"),2),n=r[0],o=r[1];return(0,U.useEffect)((function(){var e=be.events.on("locale",(function(e){o(e)}));return function(){e.off()}}),[]),(0,D.jsx)(ge,{lang:n,langDefinitions:_e,children:t})},Oe=new $((0,D.jsx)(we,{}))},80:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,"/**\n * Do not edit directly\n * Generated on Fri, 14 Jul 2023 19:01:45 GMT\n */\n\n.elsie-base-design {\n --color-brand-500: #454545; /* Brand buttons default - AAA */\n --color-brand-600: #383838; /* Brand buttons on hover - AAA */\n --color-brand-700: #2b2b2b; /* Brand buttons selected */\n --color-neutral-50: #ffffff; /* Lightest surface / Text & components On Dark surface - AAA */\n --color-neutral-100: #fafafa; /* Light surface - AAA */\n --color-neutral-200: #f5f5f5; /* Light surface - AAA */\n --color-neutral-300: #e8e8e8; /* Disabled surfaces - AAA */\n --color-neutral-400: #d6d6d6; /* Ornamental elements (ie. Divider) */\n --color-neutral-500: #b8b8b8; /* Disabled text */\n --color-neutral-600: #8f8f8f; /* Component borders (ie. Text field border) - AA Large text */\n --color-neutral-700: #666666; /* Secondary text - AAA */\n --color-neutral-800: #3d3d3d; /* Default text - AAA */\n --color-neutral-900: #292929; /* Default text on hover - AAA */\n --color-positive-200: #eff5ef; /* Semantic positive surface - AA Large text */\n --color-positive-500: #7fb078; /* Semantic positive surface */\n --color-positive-800: #53824c; /* Semantic Positive text - On Light AA */\n --color-informational-200: #eeeffb; /* Semantic informational surface - AA Large text */\n --color-informational-500: #6978d9; /* Semantic informational surface */\n --color-informational-800: #5d6dd6; /* Semantic informational text, Highlights - On Light AA */\n --color-warning-200: #fdf3e9; /* Semantic warning surface - AA Large text */\n --color-warning-500: #e79f5c; /* Semantic warning surface */\n --color-warning-800: #cc7a2e; /* Semantic warning text - On Light AA */\n --color-alert-200: #ffebeb; /* Semantic alert surface - AA Large text */\n --color-alert-500: #db7070; /* Semantic alert surface */\n --color-alert-800: #c35050; /* Semantic alert text - On light AA */\n --color-opacity-16: rgba(255, 255, 255, 0.16);\n --color-opacity-24: rgba(255, 255, 255, 0.24);\n --grid-1-columns: 4;\n --grid-1-margins: 0;\n --grid-1-gutters: 16px;\n --grid-2-columns: 12;\n --grid-2-margins: 0;\n --grid-2-gutters: 16px;\n --grid-3-columns: 12;\n --grid-3-margins: 0;\n --grid-3-gutters: 24px;\n --grid-4-columns: 12;\n --grid-4-margins: 0;\n --grid-4-gutters: 24px;\n --grid-5-columns: 12;\n --grid-5-margins: 0;\n --grid-5-gutters: 24px;\n --shape-border-radius-1: 3px;\n --shape-border-radius-2: 8px;\n --shape-border-radius-3: 24px;\n --shape-border-width-1: 1px;\n --shape-border-width-2: 1.5px;\n --shape-border-width-3: 2px;\n --shape-border-width-4: 4px;\n --shape-shadow-1: 0 0 16px 0 rgba(0, 0, 0, 0.16); /* Elevated panels (ie. Page side panel, Mobile bottom bar) */\n --shape-shadow-2: 0 2px 16px 0 rgba(0, 0, 0, 0.16); /* Elevated dialogs (ie. Modal) */\n --shape-shadow-3: 0 2px 3px 0 rgba(0, 0, 0, 0.16); /* Elevated container (ie. Card) */\n --shape-icon-stroke-1: 1px;\n --shape-icon-stroke-2: 1.5px;\n --shape-icon-stroke-3: 2px;\n --shape-icon-stroke-4: 4px;\n --spacing-xxsmall: 4px;\n --spacing-xsmall: 8px;\n --spacing-small: 16px;\n --spacing-medium: 24px;\n --spacing-big: 32px;\n --spacing-xbig: 40px;\n --spacing-xxbig: 48px;\n --spacing-large: 64px;\n --spacing-xlarge: 72px;\n --spacing-xxlarge: 96px;\n --spacing-huge: 120px;\n --spacing-xhuge: 144px;\n --spacing-xxhuge: 192px;\n --type-base-font-family: system-ui, sans-serif;\n --type-display-1-font: normal normal 300 60px/72px\n var(--type-base-font-family); /* Hero title */\n --type-display-1-letter-spacing: 0.04em;\n --type-display-2-font: normal normal 300 48px/56px\n var(--type-base-font-family); /* Banner title */\n --type-display-2-letter-spacing: 0.04em;\n --type-display-3-font: normal normal 300 34px/40px\n var(--type-base-font-family); /* Desktop & tablet section title */\n --type-display-3-letter-spacing: 0.04em;\n --type-headline-1-font: normal normal 400 24px/32px\n var(--type-base-font-family); /* Desktop & tablet page title */\n --type-headline-1-letter-spacing: 0.04em;\n --type-headline-2-default-font: normal normal 300 20px/24px\n var(--type-base-font-family); /* Rail title */\n --type-headline-2-default-letter-spacing: 0.04em;\n --type-headline-2-strong-font: normal normal 400 20px/24px\n var(--type-base-font-family); /* Mobile page and section title */\n --type-headline-2-strong-letter-spacing: 0.04em;\n --type-body-1-default-font: normal normal 300 16px/24px\n var(--type-base-font-family); /* Normal text paragraph */\n --type-body-1-default-letter-spacing: 0.04em;\n --type-body-1-strong-font: normal normal 400 16px/24px\n var(--type-base-font-family);\n --type-body-1-strong-letter-spacing: 0.04em;\n --type-body-1-emphasized-font: normal normal 700 16px/24px\n var(--type-base-font-family);\n --type-body-1-emphasized-letter-spacing: 0.04em;\n --type-body-2-default-font: normal normal 300 14px/20px\n var(--type-base-font-family);\n --type-body-2-default-letter-spacing: 0.04em;\n --type-body-2-strong-font: normal normal 400 14px/20px\n var(--type-base-font-family);\n --type-body-2-strong-letter-spacing: 0.04em;\n --type-body-2-emphasized-font: normal normal 700 14px/20px\n var(--type-base-font-family);\n --type-body-2-emphasized-letter-spacing: 0.04em;\n --type-button-1-font: normal normal 400 20px/26px var(--type-base-font-family); /* Primary button text */\n --type-button-1-letter-spacing: 0.08em;\n --type-button-2-font: normal normal 400 16px/24px var(--type-base-font-family); /* Small buttons */\n --type-button-2-letter-spacing: 0.08em;\n --type-details-caption-1-font: normal normal 400 12px/16px\n var(--type-base-font-family);\n --type-details-caption-1-letter-spacing: 0.08em;\n --type-details-caption-2-font: normal normal 300 12px/16px\n var(--type-base-font-family);\n --type-details-caption-2-letter-spacing: 0.08em;\n --type-details-overline-font: normal normal 700 12px/20px\n var(--type-base-font-family);\n --type-details-overline-letter-spacing: 0.16em;\n}\n",""]);const l=i},763:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,".elsie-base-design a {\n --textColor: var(--color-brand-500);\n --textFont: var(--type-body-1-strong-font)\n --textLetterSpacing: var(--type-body-1-strong-letter-spacing);\n color: var(--textColor);\n font: var(--textFont);\n letter-spacing: var(--textLetterSpacing);\n text-decoration: none;\n}\n\n.elsie-base-design a:hover {\n --textColor: var(--color-brand-700);\n text-decoration: solid underline var(--textColor);\n text-underline-offset: 6px;\n}\n\n.elsie-base-design a:focus-visible {\n outline: solid var(--shape-border-width-4) var(--color-neutral-400);\n border: var(--shape-border-width-1) solid var(--color-neutral-800); \n border-radius: var(--shape-border-radius-1);\n}\n",""]);const l=i},857:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var o={};return r.isMergeableObject(e)&&a(e).forEach((function(t){o[t]=n(e[t],r)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):o[a]=n(t[a],r))})),o}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},493:(e,r,n)=>{var o,a;e.exports=(o={Children:()=>t.Children,useEffect:()=>t.useEffect,useMemo:()=>t.useMemo,useState:()=>t.useState},a={},n.d(a,o),a)},241:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},76:(e,t,r)=>{var o,a;e.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},a={},r.d(a,o),a)},752:(e,t,r)=>{var n,a;e.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},a={},r.d(a,n),a)},770:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"AddToWishlist":{"label":"Add to Wishlist"}}}}')}};import a from"./runtime.js";import*as i from"./757.js";a.C(i);import*as l from"./render.js";a.C(l);var s=(570,a(a.s=570)).s;export{s as render};
|
|
2
|
+
import*as e from"elsie-sdk/event-bus.js";import*as t from"elsie-sdk/preact-compat.js";import*as r from"elsie-sdk/preact-hooks.js";import*as n from"elsie-sdk/preact-jsx-runtime.js";import*as o from"elsie-sdk/preact.js";export const id=70;export const ids=[70];export const modules={570:(t,r,n)=>{n.d(r,{s:()=>Oe});var o=n(752),a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,l=/[\s\n\\/='"\0<>]/,s=/^xlink:?./,c=/["&<]/;function u(e){if(!1===c.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var f=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},p=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},d={},y=/([A-Z])/g;function m(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:d[r]||(d[r]=r.replace(y,"-$1").toLowerCase()),t="number"==typeof n&&!1===a.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function v(e,t){return Array.isArray(t)?t.reduce(v,e):null!=t&&!1!==t&&e.push(t),e}function h(){this.__d=!0}function g(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:[]}}function b(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var x=[];function _(e,t,r,n,a,c){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":u(e);var d=r.pretty,y=d&&"string"==typeof d?d:"\t";if(Array.isArray(e)){for(var h="",w=0;w<e.length;w++)d&&w>0&&(h+="\n"),h+=_(e[w],t,r,n,a,c);return h}if(void 0!==e.constructor)return"";var O,j=e.type,S=e.props,A=!1;if("function"==typeof j){if(A=!0,!r.shallow||!n&&!1!==r.renderRootComponent){if(j===o.Fragment){var k=[];return v(k,e.props.children),_(k,t,r,!1!==r.shallowHighOrder,a,c)}var E,L=e.__c=g(e,t);o.options.__b&&o.options.__b(e);var P=o.options.__r;if(j.prototype&&"function"==typeof j.prototype.render){var C=b(j,t);(L=e.__c=new j(S,C)).__v=e,L._dirty=L.__d=!0,L.props=S,null==L.state&&(L.state={}),null==L._nextState&&null==L.__s&&(L._nextState=L.__s=L.state),L.context=C,j.getDerivedStateFromProps?L.state=Object.assign({},L.state,j.getDerivedStateFromProps(L.props,L.state)):L.componentWillMount&&(L.componentWillMount(),L.state=L._nextState!==L.state?L._nextState:L.__s!==L.state?L.__s:L.state),P&&P(e),E=L.render(L.props,L.state,L.context)}else for(var D=b(j,t),M=0;L.__d&&M++<25;)L.__d=!1,P&&P(e),E=j.call(e.__c,S,D);return L.getChildContext&&(t=Object.assign({},t,L.getChildContext())),o.options.diffed&&o.options.diffed(e),_(E,t,r,!1!==r.shallowHighOrder,a,c)}j=(O=j).displayName||O!==Function&&O.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=x.length;n--;)if(x[n]===e){r=n;break}r<0&&(r=x.push(e)-1),t="UnnamedComponent"+r}return t}(O)}var F,I,T="<"+j;if(S){var N=Object.keys(S);r&&!0===r.sortAttributes&&N.sort();for(var H=0;H<N.length;H++){var R=N[H],Z=S[R];if("children"!==R){if(!l.test(R)&&(r&&r.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==S.class)continue;R="class"}else a&&s.test(R)&&(R=R.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===R){if(S.for)continue;R="for"}"style"===R&&Z&&"object"==typeof Z&&(Z=m(Z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof Z&&(Z=String(Z));var G=r.attributeHook&&r.attributeHook(R,Z,t,r,A);if(G||""===G)T+=G;else if("dangerouslySetInnerHTML"===R)I=Z&&Z.__html;else if("textarea"===j&&"value"===R)F=Z;else if((Z||0===Z||""===Z)&&"function"!=typeof Z){if(!(!0!==Z&&""!==Z||(Z=R,r&&r.xml))){T=T+" "+R;continue}if("value"===R){if("select"===j){c=Z;continue}"option"===j&&c==Z&&void 0===S.selected&&(T+=" selected")}T=T+" "+R+'="'+u(Z)+'"'}}}else F=Z}}if(d){var $=T.replace(/\n\s*/," ");$===T||~$.indexOf("\n")?d&&~T.indexOf("\n")&&(T+="\n"):T=$}if(T+=">",l.test(j))throw new Error(j+" is not a valid HTML tag name in "+T);var U,W=i.test(j)||r.voidElements&&r.voidElements.test(j),z=[];if(I)d&&p(I)&&(I="\n"+y+f(I,y)),T+=I;else if(null!=F&&v(U=[],F).length){for(var Q=d&&~T.indexOf("\n"),B=!1,J=0;J<U.length;J++){var V=U[J];if(null!=V&&!1!==V){var q=_(V,t,r,!0,"svg"===j||"foreignObject"!==j&&a,c);if(d&&!Q&&p(q)&&(Q=!0),q)if(d){var Y=q.length>0&&"<"!=q[0];B&&Y?z[z.length-1]+=q:z.push(q),B=Y}else z.push(q)}}if(d&&Q)for(var K=z.length;K--;)z[K]="\n"+y+f(z[K],y)}if(z.length||I)T+=z.join("");else if(r&&r.xml)return T.substring(0,T.length-1)+" />";return!W||U||I?(d&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+j+">"):T=T.replace(/>$/," />"),T}var w={shallow:!0};j.render=j;var O=[];function j(e,t,r){t=t||{};var n=o.options.__s;o.options.__s=!0;var a,i=(0,o.h)(o.Fragment,null);return i.__k=[e],a=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?_(e,t,r):P(e,t,!1,void 0,i),o.options.__c&&o.options.__c(e,O),o.options.__s=n,O.length=0,a}function S(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,o.h)(null,null,e):e}function A(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&s.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function k(e,t){return"style"===e&&null!=t&&"object"==typeof t?m(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var E=Array.isArray,L=Object.assign;function P(e,t,r,n,a){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":u(e);if(E(e)){var s="";a.__k=e;for(var c=0;c<e.length;c++)s+=P(e[c],t,r,n,a),e[c]=S(e[c]);return s}if(void 0!==e.constructor)return"";e.__=a,o.options.__b&&o.options.__b(e);var f=e.type,p=e.props;if("function"==typeof f){var d;if(f===o.Fragment)d=p.children;else{d=f.prototype&&"function"==typeof f.prototype.render?function(e,t){var r=e.type,n=b(r,t),a=new r(e.props,n);e.__c=a,a.__v=e,a.__d=!0,a.props=e.props,null==a.state&&(a.state={}),null==a.__s&&(a.__s=a.state),a.context=n,r.getDerivedStateFromProps?a.state=L({},a.state,r.getDerivedStateFromProps(a.props,a.state)):a.componentWillMount&&(a.componentWillMount(),a.state=a.__s!==a.state?a.__s:a.state);var i=o.options.__r;return i&&i(e),a.render(a.props,a.state,a.context)}(e,t):function(e,t){var r,n=g(e,t),a=b(e.type,t);e.__c=n;for(var i=o.options.__r,l=0;n.__d&&l++<25;)n.__d=!1,i&&i(e),r=e.type.call(n,e.props,a);return r}(e,t);var y=e.__c;y.getChildContext&&(t=L({},t,y.getChildContext()))}var m=P(d=null!=d&&d.type===o.Fragment&&null==d.key?d.props.children:d,t,r,n,e);return o.options.diffed&&o.options.diffed(e),e.__=void 0,o.options.unmount&&o.options.unmount(e),m}var v,h,x="<";if(x+=f,p)for(var _ in v=p.children,p){var w=p[_];if(!("key"===_||"ref"===_||"__self"===_||"__source"===_||"children"===_||"className"===_&&"class"in p||"htmlFor"===_&&"for"in p||l.test(_)))if(w=k(_=A(_,r),w),"dangerouslySetInnerHTML"===_)h=w&&w.__html;else if("textarea"===f&&"value"===_)v=w;else if((w||0===w||""===w)&&"function"!=typeof w){if(!0===w||""===w){w=_,x=x+" "+_;continue}if("value"===_){if("select"===f){n=w;continue}"option"!==f||n!=w||"selected"in p||(x+=" selected")}x=x+" "+_+'="'+u(w)+'"'}}var O=x;if(x+=">",l.test(f))throw new Error(f+" is not a valid HTML tag name in "+x);var j="",C=!1;if(h)j+=h,C=!0;else if("string"==typeof v)j+=u(v),C=!0;else if(E(v)){e.__k=v;for(var D=0;D<v.length;D++){var M=v[D];if(v[D]=S(M),null!=M&&!1!==M){var F=P(M,t,"svg"===f||"foreignObject"!==f&&r,n,e);F&&(j+=F,C=!0)}}}else if(null!=v&&!1!==v&&!0!==v){e.__k=[S(v)];var I=P(v,t,"svg"===f||"foreignObject"!==f&&r,n,e);I&&(j+=I,C=!0)}if(o.options.diffed&&o.options.diffed(e),e.__=void 0,o.options.unmount&&o.options.unmount(e),C)x+=j;else if(i.test(f))return O+" />";return x+"</"+f+">"}j.shallowRender=function(e,t){return j(e,t,w)};const C=j;var D=n(188);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function F(){F=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),l=new S(o||[]);return n(i,"_invoke",{value:_(e,r,l)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function d(){}function y(){}var m={};s(m,a,(function(){return this}));var v=Object.getPrototypeOf,h=v&&v(v(A([])));h&&h!==t&&r.call(h,a)&&(m=h);var g=y.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,a,i,l){var s=u(e[n],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==M(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,l)}))}l(s.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=w(i,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:d,configurable:!0}),d.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),s(g,l,"Generator"),s(g,a,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=A,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e,t,r,n,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){H(a,n,o,i,l,"next",e)}function l(e){H(a,n,o,i,l,"throw",e)}i(void 0)}))}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function G(e){var t=function(e,t){if("object"!==M(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===M(t)?t:String(t)}var $=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}var t,r,n;return t=e,r=[{key:"render",value:function(e,t){var r=this;return function(){var n=R(F().mark((function n(a){var i,l,s;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}throw new Error("Component is not defined");case 2:if(a){n.next=4;break}throw new Error("Root element is not defined");case 4:return n.next=6,null===(l=e.getInitialData)||void 0===l?void 0:l.call(e,t);case 6:if(n.t1=i=n.sent,n.t0=null!==n.t1,!n.t0){n.next=10;break}n.t0=void 0!==i;case 10:if(!n.t0){n.next=14;break}n.t2=i,n.next=15;break;case 14:n.t2={};case 15:s=n.t2,(0,o.render)((0,D.jsx)(r._provider.type,T(T({},r._provider.props),{},{children:(0,D.jsx)(e,T(T({},t),{},{initialData:s}))})),a);case 17:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}},{key:"toString",value:(n=R(F().mark((function e(t,r,n){var o,a,i;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("Component is not defined");case 2:return e.next=4,null===(a=t.getInitialData)||void 0===a?void 0:a.call(t,r);case 4:if(e.t1=o=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==o;case 8:if(!e.t0){e.next=12;break}e.t2=o,e.next=13;break;case 12:e.t2={};case 13:return i=e.t2,e.abrupt("return",C((0,D.jsx)(this._provider.type,T(T({},this._provider.props),{},{children:(0,D.jsx)(t,T(T({},r),{},{initialData:i}))})),{},T({},n)));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})}],r&&Z(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=n(241),W=n(857),z=n.n(W),Q=n(587);const B=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Decrease Quantity","increaseLabel":"Increase Quantity","label":"Quantity"}}}'),J=JSON.parse('{"Elsie":{"ExampleComponentName":{"item":{"label":"string"}},"Incrementer":{"decreaseLabel":"Diminuer la quantité","increaseLabel":"Augmenter la quantité","label":"Quantité"}}}');var V=n(724),q={default:B,en_US:B,fr_FR:J},Y=n(892),K=n.n(Y),X=n(760),ee=n.n(X),te=n(311),re=n.n(te),ne=n(192),oe=n.n(ne),ae=n(60),ie=n.n(ae),le=n(865),se=n.n(le),ce=n(80),ue={};ue.styleTagTransform=se(),ue.setAttributes=oe(),ue.insert=re().bind(null,"head"),ue.domAPI=ee(),ue.insertStyleElement=ie(),K()(ce.Z,ue),ce.Z&&ce.Z.locals&&ce.Z.locals;var fe=n(763),pe={};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}pe.styleTagTransform=se(),pe.setAttributes=oe(),pe.insert=re().bind(null,"head"),pe.domAPI=ee(),pe.insertStyleElement=ie(),K()(fe.Z,pe),fe.Z&&fe.Z.locals&&fe.Z.locals;var ye=["lang","langDefinitions","className","children"];function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==de(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===de(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ge=function(e){var t,r=e.lang,n=void 0===r?"en_US":r,o=e.langDefinitions,a=void 0===o?{}:o,i=e.className,l=e.children,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ye),c=z()(a.default,null!==(t=a[n])&&void 0!==t?t:{}),u=z()(function(e){return z()(q.default,q[e]||{})}(n),c);return(0,D.jsx)(V.Pj,{definition:u,children:(0,D.jsx)("div",ve(ve({},s),{},{className:(0,Q.S)(["elsie-base-design",i]),children:l}))})};const be=(e=>{var t={};return n.d(t,e),t})({events:()=>e.events});function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}be.events.enableLogger(!0);var _e={default:n(770)},we=function(e){var t=e.children,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,U.useState)("en_US"),2),n=r[0],o=r[1];return(0,U.useEffect)((function(){var e=be.events.on("locale",(function(e){o(e)}));return function(){e.off()}}),[]),(0,D.jsx)(ge,{lang:n,langDefinitions:_e,children:t})},Oe=new $((0,D.jsx)(we,{}))},80:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,"/**\n * Do not edit directly\n * Generated on Fri, 14 Jul 2023 19:01:45 GMT\n */\n\n.elsie-base-design {\n --color-brand-500: #454545; /* Brand buttons default - AAA */\n --color-brand-600: #383838; /* Brand buttons on hover - AAA */\n --color-brand-700: #2b2b2b; /* Brand buttons selected */\n --color-neutral-50: #ffffff; /* Lightest surface / Text & components On Dark surface - AAA */\n --color-neutral-100: #fafafa; /* Light surface - AAA */\n --color-neutral-200: #f5f5f5; /* Light surface - AAA */\n --color-neutral-300: #e8e8e8; /* Disabled surfaces - AAA */\n --color-neutral-400: #d6d6d6; /* Ornamental elements (ie. Divider) */\n --color-neutral-500: #b8b8b8; /* Disabled text */\n --color-neutral-600: #8f8f8f; /* Component borders (ie. Text field border) - AA Large text */\n --color-neutral-700: #666666; /* Secondary text - AAA */\n --color-neutral-800: #3d3d3d; /* Default text - AAA */\n --color-neutral-900: #292929; /* Default text on hover - AAA */\n --color-positive-200: #eff5ef; /* Semantic positive surface - AA Large text */\n --color-positive-500: #7fb078; /* Semantic positive surface */\n --color-positive-800: #53824c; /* Semantic Positive text - On Light AA */\n --color-informational-200: #eeeffb; /* Semantic informational surface - AA Large text */\n --color-informational-500: #6978d9; /* Semantic informational surface */\n --color-informational-800: #5d6dd6; /* Semantic informational text, Highlights - On Light AA */\n --color-warning-200: #fdf3e9; /* Semantic warning surface - AA Large text */\n --color-warning-500: #e79f5c; /* Semantic warning surface */\n --color-warning-800: #cc7a2e; /* Semantic warning text - On Light AA */\n --color-alert-200: #ffebeb; /* Semantic alert surface - AA Large text */\n --color-alert-500: #db7070; /* Semantic alert surface */\n --color-alert-800: #c35050; /* Semantic alert text - On light AA */\n --color-opacity-16: rgba(255, 255, 255, 0.16);\n --color-opacity-24: rgba(255, 255, 255, 0.24);\n --grid-1-columns: 4;\n --grid-1-margins: 0;\n --grid-1-gutters: 16px;\n --grid-2-columns: 12;\n --grid-2-margins: 0;\n --grid-2-gutters: 16px;\n --grid-3-columns: 12;\n --grid-3-margins: 0;\n --grid-3-gutters: 24px;\n --grid-4-columns: 12;\n --grid-4-margins: 0;\n --grid-4-gutters: 24px;\n --grid-5-columns: 12;\n --grid-5-margins: 0;\n --grid-5-gutters: 24px;\n --shape-border-radius-1: 3px;\n --shape-border-radius-2: 8px;\n --shape-border-radius-3: 24px;\n --shape-border-width-1: 1px;\n --shape-border-width-2: 1.5px;\n --shape-border-width-3: 2px;\n --shape-border-width-4: 4px;\n --shape-shadow-1: 0 0 16px 0 rgba(0, 0, 0, 0.16); /* Elevated panels (ie. Page side panel, Mobile bottom bar) */\n --shape-shadow-2: 0 2px 16px 0 rgba(0, 0, 0, 0.16); /* Elevated dialogs (ie. Modal) */\n --shape-shadow-3: 0 2px 3px 0 rgba(0, 0, 0, 0.16); /* Elevated container (ie. Card) */\n --shape-icon-stroke-1: 1px;\n --shape-icon-stroke-2: 1.5px;\n --shape-icon-stroke-3: 2px;\n --shape-icon-stroke-4: 4px;\n --spacing-xxsmall: 4px;\n --spacing-xsmall: 8px;\n --spacing-small: 16px;\n --spacing-medium: 24px;\n --spacing-big: 32px;\n --spacing-xbig: 40px;\n --spacing-xxbig: 48px;\n --spacing-large: 64px;\n --spacing-xlarge: 72px;\n --spacing-xxlarge: 96px;\n --spacing-huge: 120px;\n --spacing-xhuge: 144px;\n --spacing-xxhuge: 192px;\n --type-base-font-family: system-ui, sans-serif;\n --type-display-1-font: normal normal 300 60px/72px\n var(--type-base-font-family); /* Hero title */\n --type-display-1-letter-spacing: 0.04em;\n --type-display-2-font: normal normal 300 48px/56px\n var(--type-base-font-family); /* Banner title */\n --type-display-2-letter-spacing: 0.04em;\n --type-display-3-font: normal normal 300 34px/40px\n var(--type-base-font-family); /* Desktop & tablet section title */\n --type-display-3-letter-spacing: 0.04em;\n --type-headline-1-font: normal normal 400 24px/32px\n var(--type-base-font-family); /* Desktop & tablet page title */\n --type-headline-1-letter-spacing: 0.04em;\n --type-headline-2-default-font: normal normal 300 20px/24px\n var(--type-base-font-family); /* Rail title */\n --type-headline-2-default-letter-spacing: 0.04em;\n --type-headline-2-strong-font: normal normal 400 20px/24px\n var(--type-base-font-family); /* Mobile page and section title */\n --type-headline-2-strong-letter-spacing: 0.04em;\n --type-body-1-default-font: normal normal 300 16px/24px\n var(--type-base-font-family); /* Normal text paragraph */\n --type-body-1-default-letter-spacing: 0.04em;\n --type-body-1-strong-font: normal normal 400 16px/24px\n var(--type-base-font-family);\n --type-body-1-strong-letter-spacing: 0.04em;\n --type-body-1-emphasized-font: normal normal 700 16px/24px\n var(--type-base-font-family);\n --type-body-1-emphasized-letter-spacing: 0.04em;\n --type-body-2-default-font: normal normal 300 14px/20px\n var(--type-base-font-family);\n --type-body-2-default-letter-spacing: 0.04em;\n --type-body-2-strong-font: normal normal 400 14px/20px\n var(--type-base-font-family);\n --type-body-2-strong-letter-spacing: 0.04em;\n --type-body-2-emphasized-font: normal normal 700 14px/20px\n var(--type-base-font-family);\n --type-body-2-emphasized-letter-spacing: 0.04em;\n --type-button-1-font: normal normal 400 20px/26px var(--type-base-font-family); /* Primary button text */\n --type-button-1-letter-spacing: 0.08em;\n --type-button-2-font: normal normal 400 16px/24px var(--type-base-font-family); /* Small buttons */\n --type-button-2-letter-spacing: 0.08em;\n --type-details-caption-1-font: normal normal 400 12px/16px\n var(--type-base-font-family);\n --type-details-caption-1-letter-spacing: 0.08em;\n --type-details-caption-2-font: normal normal 300 12px/16px\n var(--type-base-font-family);\n --type-details-caption-2-letter-spacing: 0.08em;\n --type-details-overline-font: normal normal 700 12px/20px\n var(--type-base-font-family);\n --type-details-overline-letter-spacing: 0.16em;\n}\n",""]);const l=i},763:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,".elsie-base-design a {\n --textColor: var(--color-brand-500);\n --textFont: var(--type-body-1-strong-font)\n --textLetterSpacing: var(--type-body-1-strong-letter-spacing);\n color: var(--textColor);\n font: var(--textFont);\n letter-spacing: var(--textLetterSpacing);\n text-decoration: none;\n}\n\n.elsie-base-design a:hover {\n --textColor: var(--color-brand-700);\n text-decoration: solid underline var(--textColor);\n text-underline-offset: 6px;\n}\n\n.elsie-base-design a:focus-visible {\n outline: solid var(--shape-border-width-4) var(--color-neutral-400);\n border: var(--shape-border-width-1) solid var(--color-neutral-800); \n border-radius: var(--shape-border-radius-1);\n}\n",""]);const l=i},857:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var o={};return r.isMergeableObject(e)&&a(e).forEach((function(t){o[t]=n(e[t],r)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):o[a]=n(t[a],r))})),o}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},493:(e,r,n)=>{var o,a;e.exports=(o={Children:()=>t.Children,useMemo:()=>t.useMemo},a={},n.d(a,o),a)},241:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},76:(e,t,r)=>{var o,a;e.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},a={},r.d(a,o),a)},752:(e,t,r)=>{var n,a;e.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},a={},r.d(a,n),a)},770:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"AddToWishlist":{"label":"Add to Wishlist"}}}}')}};import a from"./runtime.js";import*as i from"./757.js";a.C(i);import*as l from"./render.js";a.C(l);var s=(570,a(a.s=570)).s;export{s as render};
|