@dropins/storefront-pdp 0.1.0-alpha10 → 0.1.0-alpha12
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/285.js +1 -1
- package/757.js +1 -1
- package/api.js +1 -1
- package/containers/ProductDetails.js +1 -1
- package/package.json +1 -1
- package/render.js +1 -1
package/285.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 285.js.LICENSE.txt */
|
|
2
|
-
export const id=285;export const ids=[285];export const modules={148:(e,n,t)=>{t.d(n,{Z:()=>c});var r,o,i=t(354);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a.apply(this,arguments)}const c=function(e){return i.createElement("svg",a({width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M5.05 20.55a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18.05 20.55a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM17.4 17.54H5.63L3.84 1.44H1.16",stroke:"currentColor"})),o||(o=i.createElement("path",{d:"m4.24 5.02 16.6 1.79-.8 7.16H5.24",stroke:"currentColor"})))}},949:(e,n,t)=>{t.d(n,{Z:()=>a});var r,o=t(354);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(this,arguments)}const a=function(e){return o.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=o.createElement("path",{d:"M19.734 5.418a4.815 4.815 0 0 0-6.824 0l-.929.93-.929-.93a4.815 4.815 0 0 0-6.823.07 4.833 4.833 0 0 0 0 6.76l.929.93 6.823 6.83 6.824-6.83.929-.93a4.826 4.826 0 0 0 0-6.83Z",stroke:"currentColor"})))}},341:(e,n,t)=>{t.d(n,{z:()=>j});var r=t(587),o=t(892),i=t.n(o),a=t(760),c=t.n(a),l=t(311),u=t.n(l),s=t(192),p=t.n(s),f=t(60),d=t.n(f),b=t(865),v=t.n(b),m=t(367),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=d(),i()(m.Z,y),m.Z&&m.Z.locals&&m.Z.locals;var h=t(220);function g(e){return g="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},g(e)}var _=["value","variant","size","icon","className","children","disabled"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var j=function(e){var n=e.value,t=e.variant,o=void 0===t?"primary":t,i=e.size,a=void 0===i?"medium":i,c=e.icon,l=e.className,u=e.children,s=e.disabled,p=void 0!==s&&s,f=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),d="elsie-button";c&&!u&&(d="elsie-iconButton"),l=(0,r.S)([d,"".concat(d,"--").concat(a),"".concat(d,"--").concat(o),["".concat(d,"--").concat(o,"--disabled"),p],u&&c&&"".concat(d,"--with-icon"),l]);var b=(0,r.S)(["elsie-button-icon","elsie-button-icon--".concat(o),["elsie-button-icon--".concat(o,"--disabled"),p],null==c?void 0:c.props.className]);return(0,h.jsxs)("button",O(O({role:"button"},f),{},{value:n,className:l,disabled:p,children:[c&&(0,h.jsx)(c.type,O(O({},c.props),{},{className:b})),u&&("string"==typeof u?(0,h.jsx)("span",{children:u}):u)]}))}},72:(e,n,t)=>{t.d(n,{J:()=>j});var r=t(892),o=t.n(r),i=t(760),a=t.n(i),c=t(311),l=t.n(c),u=t(192),s=t.n(u),p=t(60),f=t.n(p),d=t(865),b=t.n(d),v=t(453),m={};m.styleTagTransform=b(),m.setAttributes=s(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),o()(v.Z,m),v.Z&&v.Z.locals&&v.Z.locals;var y=t(587),h=t(220);function g(e){return g="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},g(e)}var _=["source","size","stroke","viewBox","className"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){var n=e.source,t=e.size,r=void 0===t?"24":t,o=e.stroke,i=void 0===o?"2":o,a=e.viewBox,c=void 0===a?"0 0 24 24":a,l=e.className,u=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),s=n;return(0,h.jsx)(s,O(O({},u),{},{className:(0,y.S)(["elsie-icon","elsie-icon--shape-stroke-".concat(i),l]),width:r,height:r,viewBox:c}))}},373:(e,n,t)=>{t.d(n,{E:()=>T});var r=t(853);function o(e){return o="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},o(e)}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=4/3,s="default",p=new Map(Object.entries({ICON:40,THUMBNAIL:80,SMALL:160,REGULAR:320,LARGE:640,LARGER:960,XLARGE:1280,XXLARGE:1600,XXXLARGE:2560})),f=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!e)return"";var t=function(e,n){return function(t,r){return function(e,n,t){var r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({auto:"webp",quality:80,crop:!1,fit:"cover"},t),o=new URL(e),a=new URLSearchParams(o.search);return Object.entries(r).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];null!=r&&a.set(t,String(r))})),n?"".concat(o,"?").concat(a.toString()):"".concat(o)}(e,n,{width:t,height:r,fit:"cover"})}}(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1]);return Array.from(p,(function(e){return i(e,2)[1]})).map((function(e){return"".concat(t(e,Math.round(e/n))," ").concat(e,"w")})).join(",\n")},d=t(587),b=t(892),v=t.n(b),m=t(760),y=t.n(m),h=t(311),g=t.n(h),_=t(192),w=t.n(_),O=t(60),x=t.n(O),j=t(865),S=t.n(j),P=t(61),E={};E.styleTagTransform=S(),E.setAttributes=w(),E.insert=g().bind(null,"head"),E.domAPI=y(),E.insertStyleElement=x(),v()(P.Z,E),P.Z&&P.Z.locals&&P.Z.locals;var k=t(220);function L(e){return L="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},L(e)}var A=["className","onError","onLoad","src","resource","loading","alt","width","widths","height","ratio","includeOptions"];function N(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){I(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function I(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==L(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===L(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function B(e,n){if(e){if("string"==typeof e)return D(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?D(e,n):void 0}}function D(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var T=function(e){var n=e.className,t=e.onError,o=e.onLoad,i=e.src,a=e.resource,c=e.loading,l=void 0===c?"lazy":c,p=e.alt,b=e.width,v=e.widths,m=e.height,y=e.ratio,h=void 0===y?u:y,g=e.includeOptions,_=void 0===g||g,w=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,A),O=(0,r.useMemo)((function(){return a?f(a,_,h):""}),[a,_,h]),x=(0,r.useMemo)((function(){if(!v)return b?"".concat(b,"px"):"";var e,n,t,r=[],o=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=B(e))){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(v);try{for(o.s();!(e=o.n()).done;){var i=(n=e.value,t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,t)||B(n,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.")}()),a=i[0],c=i[1];a!==s&&r.push("(max-width: ".concat(a,"px) ").concat(c,"px"))}}catch(e){o.e(e)}finally{o.f()}return v.has(s)&&r.push("".concat(v.get(s),"px")),r.join(", ")}),[b,v]);return(0,k.jsx)("img",C(C({},w),{},{loading:l,alt:p,className:(0,d.S)(["elsie-image",n]),onError:t,onLoad:o,src:i,width:b,height:m,sizes:x,srcSet:O}))}},769:(e,n,t)=>{t.d(n,{u:()=>M});var r,o,i=t(437),a=t(587),c=t(354);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}const u=function(e){return c.createElement("svg",l({"data-name":"Icon \\u2013 Minus \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),r||(r=c.createElement("g",{"data-name":"Minus icon"},c.createElement("path",{"data-name":"Line 575",fill:"none",stroke:"currentColor",d:"M15.396 12H8.604"}))),o||(o=c.createElement("g",{"data-name":"Minus icon"},c.createElement("path",{"data-name":"Line 575",fill:"none",stroke:"currentColor",d:"M18 12H6"}))))};var s;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p.apply(this,arguments)}const f=function(e){return c.createElement("svg",p({"data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),s||(s=c.createElement("g",{"data-name":"Add icon",fill:"none",stroke:"currentColor"},c.createElement("path",{"data-name":"Line 579",d:"M11.95 5.65v12.7"}),c.createElement("path",{"data-name":"Line 580",d:"M5.655 12h12.7"}))))};var d=t(72),b=t(724),v=t(892),m=t.n(v),y=t(760),h=t.n(y),g=t(311),_=t.n(g),w=t(192),O=t.n(w),x=t(60),j=t.n(x),S=t(865),P=t.n(S),E=t(6),k={};k.styleTagTransform=P(),k.setAttributes=O(),k.insert=_().bind(null,"head"),k.domAPI=h(),k.insertStyleElement=j(),m()(E.Z,k),E.Z&&E.Z.locals&&E.Z.locals;var L=t(220);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var N=["name","value","className","disabled","error","success","min","max","onValue","onUpdateError","size"];function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){B(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function B(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==A(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(){D=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(e){l=function(e,n,t){return e[n]=t}}function u(e,n,t,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:w(e,t,c)}),a}function s(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function f(){}function d(){}function b(){}var v={};l(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(P([])));y&&y!==n&&t.call(y,i)&&(v=y);var h=b.prototype=f.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function _(e,n){function o(r,i,a,c){var l=s(e[r],e,i);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==A(p)&&t.call(p,"__await")?n.resolve(p.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):n.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,c)}))}c(l.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function w(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var c=O(a,t);if(c){if(c===p)continue;return c}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var l=s(e,n,t);if("normal"===l.type){if(r=t.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:t.done}}"throw"===l.type&&(r="completed",t.method="throw",t.arg=l.arg)}}}function O(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,O(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),p;var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function j(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=b,r(h,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:d,configurable:!0}),d.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(h),e},e.awrap=function(e){return{__await:e}},g(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new _(u(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(h),l(h,c,"Generator"),l(h,i,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),l=t.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,n){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&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),j(t),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;j(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:P(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),p}},e}function T(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function Z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var M=function(e){var n,t,r=e.name,o=e.value,c=void 0===o?"1":o,l=e.className,s=e.disabled,p=e.error,v=e.success,m=e.min,y=e.max,h=e.onValue,g=e.onUpdateError,_=e.size,w=void 0===_?"medium":_,O=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,N),x=(n=(0,i.useState)(Number(c)),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,t)||function(e,n){if(e){if("string"==typeof e)return Z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Z(e,n):void 0}}(n,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.")}()),j=x[0],S=x[1],P=Number(m),E=Number(y);(0,i.useEffect)((function(){S(Number(c))}),[c]);var k,A,C=(0,i.useCallback)((k=function(){var e,n=(e=D().mark((function e(n){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=9;break}return e.prev=1,e.next=4,h(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),g&&g(e.t0);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){T(i,r,o,a,c,"next",e)}function c(e){T(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),500,function(){for(var e=this,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];clearTimeout(A),A=setTimeout((function(){return k.apply(e,t)}),500)}),[h,g]),B=function(e){var n=e;e<P&&(n=P),e>E&&(n=E),C(n),S(n)};return(0,L.jsx)("div",{className:(0,a.S)(["elsie-incrementer","elsie-incrementer--".concat(w),l]),children:(0,L.jsxs)("div",{className:(0,a.S)(["elsie-incrementer__content","elsie-incrementer__content--".concat(w),["elsie-incrementer__content--error",p],["elsie-incrementer__content--success",v],["elsie-incrementer__content--disabled",s]]),children:[(0,L.jsx)("div",{className:(0,a.S)(["elsie-incrementer__button-container",["elsie-incrementer__button-container--disabled",s]]),children:(0,L.jsx)(b.Cf,{children:(0,L.jsx)("button",{type:"button",className:(0,a.S)(["elsie-incrementer__decrease-button",["elsie-incrementer__decrease-button--disabled",s]]),onClick:function(){return B(j-1)},disabled:s||j<P+1,"aria-label":(0,L.jsx)(b.xv,{id:"Elsie.Incrementer.decreaseLabel"}),children:(0,L.jsx)(d.J,{source:u,size:"16",stroke:"1",viewBox:"4 2 20 20",className:"elsie-incrementer__down"})})})}),(0,L.jsx)("input",I({className:"elsie-incrementer__input",max:y,min:m,step:1,type:"number",name:r,value:j,disabled:s,onChange:function(e){var n=e.currentTarget.value;""!==n&&B(Number(n))}},O)),(0,L.jsx)("div",{className:(0,a.S)(["elsie-incrementer__button-container",["elsie-incrementer__button-container--disabled",s]]),children:(0,L.jsx)(b.Cf,{children:(0,L.jsx)("button",{type:"button",className:(0,a.S)(["elsie-incrementer__increase-button",["elsie-incrementer__increase-button--disabled",s]]),onClick:function(){return B(j+1)},disabled:s||j>E-1,"aria-label":(0,L.jsx)(b.xv,{id:"Elsie.Incrementer.increaseLabel"}),children:(0,L.jsx)(d.J,{source:f,size:"16",stroke:"1",viewBox:"4 2 20 20",className:"elsie-incrementer__add"})})})})]})})}},988:(e,n,t)=>{t.d(n,{t:()=>j});var r=t(587),o=t(892),i=t.n(o),a=t(760),c=t.n(a),l=t(311),u=t.n(l),s=t(192),p=t.n(s),f=t(60),d=t.n(f),b=t(865),v=t.n(b),m=t(948),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=d(),i()(m.Z,y),m.Z&&m.Z.locals&&m.Z.locals;var h=t(220);function g(e){return g="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},g(e)}var _=["amount","currency","locale","variant","className","children","sale","formatOptions"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var j=function(e){var n=e.amount,t=void 0===n?0:n,o=e.currency,i=void 0===o?"USD":o,a=e.locale,c=void 0===a?void 0:a,l=e.variant,u=void 0===l?"default":l,s=e.className,p=(e.children,e.sale),f=void 0!==p&&p,d=e.formatOptions,b=void 0===d?{}:d,v=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),m=new Intl.NumberFormat(c,O({style:"currency",currency:i,minimumFractionDigits:2,maximumFractionDigits:2},b));return(0,h.jsx)("span",O(O({},v),{},{className:(0,r.S)(["elsie-price",s,"elsie-price--".concat(u),["elsie-price--sale",f]]),children:m.format(t)}))}},625:(e,n,t)=>{t.d(n,{X:()=>r});var r=function(e){var n=new FormData(e);return Object.fromEntries(n)}},367:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* Common button styles */\n.elsie-button,\n.elsie-iconButton {\n border: 0 none;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.elsie-button {\n border-radius: var(--shape-border-radius-3);\n font-size: var(--type-button-1-font);\n font-weight: var(--type-button-1-font);\n padding: var(--spacing-xsmall) var(--spacing-medium);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.elsie-iconButton {\n border-radius: 50%; /* Make the button a perfect circle */\n height: var(--spacing-xbig);\n width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button:disabled,\n.elsie-iconButton:disabled {\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button:not(:disabled),\n.elsie-iconButton:not(:disabled) {\n cursor: pointer;\n}\n\n.elsie-button:hover > svg,\n.elsie-iconButton:hover > svg {\n fill: var(--color-neutral-300);\n}\n\n.elsie-button:focus,\n.elsie-iconButton:focus {\n outline: var(--spacing-xxsmall) solid var(--color-neutral-400);\n}\n\n/* Primary */\n.elsie-button--primary,\n.elsie-iconButton--primary {\n border: none;\n background: var(--color-brand-500) 0 0% no-repeat padding-box;\n color: var(--color-neutral-50);\n text-align: left;\n margin-right: 0;\n}\n\n.elsie-iconButton--primary {\n border-radius: var(--spacing-xbig);\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button--primary--disabled,\n.elsie-iconButton--primary--disabled {\n background: var(--color-neutral-300) 0 0% no-repeat padding-box;\n color: var(--color-neutral-500);\n fill: var(--color-neutral-300);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--primary:hover,\n.elsie-iconButton--primary:hover {\n background: var(--color-brand-600) 0 0% no-repeat padding-box;\n}\n\n/* Secondary */\n.elsie-button--secondary,\n.elsie-iconButton--secondary {\n border: var(--shape-border-width-2) solid var(--color-brand-500);\n background: none 0 0% no-repeat padding-box;\n color: var(--color-brand-500);\n padding-top: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-left: calc(var(--spacing-medium) - var(--shape-border-width-2));\n}\n\n.elsie-iconButton--secondary {\n border-radius: var(--spacing-xbig);\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n padding-top: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n}\n\n.elsie-button--secondary--disabled,\n.elsie-iconButton--secondary--disabled {\n border: var(--shape-border-width-2) solid var(--color-neutral-300);\n background: none 0 0% no-repeat padding-box;\n color: var(--color-neutral-500);\n fill: var(--color-neutral-300);\n padding-top: var(--spacing-xsmall);\n padding-left: var(--spacing-medium);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--secondary:hover,\n.elsie-iconButton--secondary:hover {\n border: var(--shape-border-width-2) solid var(--color-brand-600);\n color: var(--color-brand-600);\n}\n\n/* Tertiary */\n.elsie-button--tertiary,\n.elsie-iconButton--tertiary {\n border: none;\n background: none 0 0% no-repeat padding-box;\n color: var(--color-brand-500);\n}\n\n.elsie-iconButton--tertiary {\n border: none;\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button--tertiary--disabled,\n.elsie-iconButton--tertiary--disabled {\n border: none;\n color: var(--color-neutral-500);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--tertiary:hover,\n.elsie-iconButton--tertiary:hover {\n color: var(--color-brand-600);\n}\n\n/* Button Sizes */\n.elsie-button--large {\n font: var(--type-button-1-font);\n letter-spacing: var(--type-button-1-letter-spacing);\n}\n\n.elsie-button--medium {\n font: var(--type-button-2-font);\n letter-spacing: var(--type-button-2-letter-spacing);\n}\n\n.elsie-button-icon {\n height: 24px;\n}\n\n/* No Icon */\n.elsie-button--with-icon {\n column-gap: var(--spacing-xsmall);\n row-gap: var(--spacing-xsmall);\n}\n",""]);const c=a},453:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.elsie-icon { \n}\n\n.elsie-icon--shape-stroke-1 { \n stroke-width: var(--shape-icon-stroke-1);\n}\n\n.elsie-icon--shape-stroke-2 { \n stroke-width: var(--shape-icon-stroke-2);\n}\n\n.elsie-icon--shape-stroke-3 { \n stroke-width: var(--shape-icon-stroke-3);\n}\n\n.elsie-icon--shape-stroke-4 {\n stroke-width: var(--shape-icon-stroke-4);\n}\n",""]);const c=a},61:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n/* .elsie-image { } */\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},6:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n/* Content */\n.elsie-incrementer__content {\n border-radius: var(--shape-border-radius-1);\n border: solid var(--shape-border-width-1) var(--color-neutral-600);\n display: grid;\n grid-template-columns: var(--spacing-xxbig) auto var(--spacing-xxbig);\n height: var(--spacing-xbig);\n opacity: 1;\n}\n\n.elsie-incrementer__content--disabled {\n background: var(--color-neutral-300);\n border-radius: var(--shape-border-radius-1);\n border: solid var(--shape-border-width-1) var(--color-neutral-500);\n}\n\n.elsie-incrementer__content--large {\n height: var(--spacing-xxbig);\n}\n\n.elsie-incrementer__content:focus-within {\n box-shadow: 0px 0px 0px var(--shape-border-width-1) var(--color-brand-500);\n}\n\n/* Footer */\n.elsie-incrementer__footer {\n font: var(--type-details-caption-2-font);\n}\n\n/* Buttons */\n.elsie-incrementer__decrease-button > svg,\n.elsie-incrementer__increase-button > svg {\n align-items: center;\n justify-content: center;\n}\n\n.elsie-incrementer__button-container {\n align-items: center;\n display: grid;\n justify-content: center;\n background: var(--color-neutral-50);\n}\n\n.elsie-incrementer__button-container--disabled {\n background-color: var(--color-neutral-300);\n}\n\n.elsie-incrementer__decrease-button,\n.elsie-incrementer__increase-button {\n align-items: center;\n background-color: var(--color-neutral-50);\n border-radius: var(--shape-border-radius-3);\n border: none;\n display: grid;\n height: var(--spacing-medium);\n width: var(--spacing-medium);\n}\n\n.elsie-incrementer__decrease-button--disabled,\n.elsie-incrementer__increase-button--disabled {\n background-color: var(--color-neutral-300);\n}\n\n.elsie-incrementer__decrease-button:hover:enabled,\n.elsie-incrementer__increase-button:hover:enabled,\n.elsie-incrementer__decrease-button:focus,\n.elsie-incrementer__increase-button:focus {\n background: var(--color-neutral-300);\n}\n\n.elsie-incrementer__increase-button:focus-visible,\n.elsie-incrementer__decrease-button:focus-visible {\n outline: var(--shape-border-width-1) solid var(--color-brand-500);\n box-shadow: 0px 0px 0px var(--shape-border-radius-1) var(--color-neutral-500);\n}\n\n/* Input */\n.elsie-incrementer__input {\n box-sizing: border-box;\n text-align: center;\n min-width: var(--spacing-xxbig);\n}\n\n.elsie-incrementer__input:disabled {\n background-color: var(--color-neutral-300);\n color: var(--color-neutral-500);\n}\n\n.elsie-incrementer__input::-webkit-outer-spin-button,\n.elsie-incrementer__input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n.elsie-incrementer__input:focus-within {\n border: none;\n box-sizing: border-box;\n text-align: center;\n}\n\n.elsie-incrementer__input:focus-within[type='number'] {\n box-shadow: none;\n}\n\n/* Firefox */\n.elsie-incrementer__input[type='number'] {\n -moz-appearance: textfield;\n box-shadow: none;\n border: none;\n}\n\ntextarea:focus,\ninput:focus {\n outline: none;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},948:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.elsie-price {\n color: var(--color-neutral-800);\n font: var(--type-body-2-emphasized-font);\n}\n\n.elsie-price--strikethrough {\n text-decoration: line-through;\n}\n\n.elsie-price--sale {\n color: var(--color-alert-800);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},354:(e,n,t)=>{t.d(n,{createElement:()=>r.createElement});var r=t(474),o=t(437);function i(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function a(e){this.props=e}(a.prototype=new r.Component).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,n){return i(this.props,e)||i(this.state,n)};var c=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var l=(r.toChildArray,r.options.__e);r.options.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);l(e,n,t,r)};var u=r.options.unmount;function s(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,n){for(var t in n)e[t]=n[t];return e}({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return s(e,n,t)}))),e}function p(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return p(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function f(){this.__u=0,this.t=null,this.__b=null}function d(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function b(){this.u=null,this.o=null}r.options.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),u&&u(e)},(f.prototype=new r.Component).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=d(r.__v),i=!1,a=function(){i||(i=!0,t.__R=null,o?o(c):c())};t.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=p(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},f.prototype.componentWillUnmount=function(){this.t=[]},f.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=s(this.__b,t,o.__O=o.__P)}this.__b=null}var i=n.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return i&&(i.__h=null),[(0,r.createElement)(r.Fragment,null,n.__a?null:e.children),i]};var v=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(b.prototype=new r.Component).__a=function(e){var n=this,t=d(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),v(n,e,r)):o()};t?t(i):i()}},b.prototype.render=function(e){this.u=null,this.o=new Map;var n=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){v(e,t,n)}))};var m="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,y=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,h=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,g=/[A-Z0-9]/g,_="undefined"!=typeof document,w=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var O=r.options.event;function x(){}function j(){return this.cancelBubble}function S(){return this.defaultPrevented}r.options.event=function(e){return O&&(e=O(e)),e.persist=x,e.isPropagationStopped=j,e.isDefaultPrevented=S,e.nativeEvent=e};var P={enumerable:!1,configurable:!0,get:function(){return this.class}},E=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,o={};for(var i in n){var a=n[i];if(!("value"===i&&"defaultValue"in n&&null==a||_&&"children"===i&&"noscript"===t||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==t&&"textarea"!==t||w(n.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":h.test(i)?i=c:-1===t.indexOf("-")&&y.test(i)?i=i.replace(g,"-$&").toLowerCase():null===a&&(a=void 0):c=i="oninput","oninput"===c&&o[i=c]&&(i="oninputCapture"),o[i]=a}}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.toChildArray)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.toChildArray)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",P)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(e),e.$$typeof=m,E&&E(e)};var k=r.options.__r;r.options.__r=function(e){k&&k(e),e.__c};var L=r.options.diffed;r.options.diffed=function(e){L&&L(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)},r.Fragment,o.useLayoutEffect,o.useState,o.useId,o.useReducer,o.useEffect,o.useLayoutEffect,o.useRef,o.useImperativeHandle,o.useMemo,o.useCallback,o.useContext,o.useDebugValue,r.createElement,r.createContext,r.createRef,r.Fragment,r.Component}};
|
|
2
|
+
export const id=285;export const ids=[285];export const modules={148:(e,n,t)=>{t.d(n,{Z:()=>c});var r,o,i=t(354);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a.apply(this,arguments)}const c=function(e){return i.createElement("svg",a({width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M5.05 20.55a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18.05 20.55a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM17.4 17.54H5.63L3.84 1.44H1.16",stroke:"currentColor"})),o||(o=i.createElement("path",{d:"m4.24 5.02 16.6 1.79-.8 7.16H5.24",stroke:"currentColor"})))}},949:(e,n,t)=>{t.d(n,{Z:()=>a});var r,o=t(354);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(this,arguments)}const a=function(e){return o.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=o.createElement("path",{d:"M19.734 5.418a4.815 4.815 0 0 0-6.824 0l-.929.93-.929-.93a4.815 4.815 0 0 0-6.823.07 4.833 4.833 0 0 0 0 6.76l.929.93 6.823 6.83 6.824-6.83.929-.93a4.826 4.826 0 0 0 0-6.83Z",stroke:"currentColor"})))}},341:(e,n,t)=>{t.d(n,{z:()=>j});var r=t(587),o=t(892),i=t.n(o),a=t(760),c=t.n(a),l=t(311),s=t.n(l),u=t(192),p=t.n(u),f=t(60),d=t.n(f),b=t(865),v=t.n(b),m=t(367),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=s().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=d(),i()(m.Z,y),m.Z&&m.Z.locals&&m.Z.locals;var h=t(188);function g(e){return g="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},g(e)}var _=["value","variant","size","icon","className","children","disabled"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var j=function(e){var n=e.value,t=e.variant,o=void 0===t?"primary":t,i=e.size,a=void 0===i?"medium":i,c=e.icon,l=e.className,s=e.children,u=e.disabled,p=void 0!==u&&u,f=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),d="elsie-button";c&&!s&&(d="elsie-iconButton"),l=(0,r.S)([d,"".concat(d,"--").concat(a),"".concat(d,"--").concat(o),["".concat(d,"--").concat(o,"--disabled"),p],s&&c&&"".concat(d,"--with-icon"),l]);var b=(0,r.S)(["elsie-button-icon","elsie-button-icon--".concat(o),["elsie-button-icon--".concat(o,"--disabled"),p],null==c?void 0:c.props.className]);return(0,h.jsxs)("button",O(O({role:"button"},f),{},{value:n,className:l,disabled:p,children:[c&&(0,h.jsx)(c.type,O(O({},c.props),{},{className:b})),s&&("string"==typeof s?(0,h.jsx)("span",{children:s}):s)]}))}},72:(e,n,t)=>{t.d(n,{J:()=>j});var r=t(892),o=t.n(r),i=t(760),a=t.n(i),c=t(311),l=t.n(c),s=t(192),u=t.n(s),p=t(60),f=t.n(p),d=t(865),b=t.n(d),v=t(453),m={};m.styleTagTransform=b(),m.setAttributes=u(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),o()(v.Z,m),v.Z&&v.Z.locals&&v.Z.locals;var y=t(587),h=t(188);function g(e){return g="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},g(e)}var _=["source","size","stroke","viewBox","className"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){var n=e.source,t=e.size,r=void 0===t?"24":t,o=e.stroke,i=void 0===o?"2":o,a=e.viewBox,c=void 0===a?"0 0 24 24":a,l=e.className,s=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),u=n;return(0,h.jsx)(u,O(O({},s),{},{className:(0,y.S)(["elsie-icon","elsie-icon--shape-stroke-".concat(i),l]),width:r,height:r,viewBox:c}))}},373:(e,n,t)=>{t.d(n,{E:()=>D});var r=t(853);function o(e){return o="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},o(e)}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u={medium:768,large:1024,xlarge:1366,xxlarge:1920},p=function(e,n){if(e&&null!=n&&n.width){return Object.entries(u).map((function(t){var r=i(t,2)[1],o=n.width*r/u.xxlarge;return"".concat(function(n){return t=e,r=l({},n),o=l({auto:"webp",quality:80,crop:!1,fit:"cover"},r),c=(a=i(t.split("?"),2))[0],s=a[1],u=new URLSearchParams(s),Object.entries(o).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];null!=r&&u.set(t,String(r))})),"".concat(c,"?").concat(u.toString());var t,r,o,a,c,s,u}(l(l({},n),{},{width:o}))," ").concat(r,"w")})).join(",\n")}},f=t(587),d=t(892),b=t.n(d),v=t(760),m=t.n(v),y=t(311),h=t.n(y),g=t(192),_=t.n(g),w=t(60),O=t.n(w),x=t(865),j=t.n(x),S=t(61),P={};P.styleTagTransform=j(),P.setAttributes=_(),P.insert=h().bind(null,"head"),P.domAPI=m(),P.insertStyleElement=O(),b()(S.Z,P),S.Z&&S.Z.locals&&S.Z.locals;var k=t(188);function E(e){return E="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},E(e)}var N=["className","src","params","loading","srcSet"];function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){C(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function C(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==E(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===E(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var D=function(e){var n=e.className,t=e.src,o=e.params,i=e.loading,a=void 0===i?"lazy":i,c=e.srcSet,l=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,N),s=(0,r.useMemo)((function(){return c||(t&&o?p(t,A({},o)):void 0)}),[o,t,c]);return(0,k.jsx)("img",A(A({},l),{},{className:(0,f.S)(["elsie-image",n]),loading:a,src:t,srcSet:s}))}},769:(e,n,t)=>{t.d(n,{u:()=>M});var r,o,i=t(437),a=t(587),c=t(354);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}const s=function(e){return c.createElement("svg",l({"data-name":"Icon \\u2013 Minus \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),r||(r=c.createElement("g",{"data-name":"Minus icon"},c.createElement("path",{"data-name":"Line 575",fill:"none",stroke:"currentColor",d:"M15.396 12H8.604"}))),o||(o=c.createElement("g",{"data-name":"Minus icon"},c.createElement("path",{"data-name":"Line 575",fill:"none",stroke:"currentColor",d:"M18 12H6"}))))};var u;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p.apply(this,arguments)}const f=function(e){return c.createElement("svg",p({"data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),u||(u=c.createElement("g",{"data-name":"Add icon",fill:"none",stroke:"currentColor"},c.createElement("path",{"data-name":"Line 579",d:"M11.95 5.65v12.7"}),c.createElement("path",{"data-name":"Line 580",d:"M5.655 12h12.7"}))))};var d=t(72),b=t(724),v=t(892),m=t.n(v),y=t(760),h=t.n(y),g=t(311),_=t.n(g),w=t(192),O=t.n(w),x=t(60),j=t.n(x),S=t(865),P=t.n(S),k=t(6),E={};E.styleTagTransform=P(),E.setAttributes=O(),E.insert=_().bind(null,"head"),E.domAPI=h(),E.insertStyleElement=j(),m()(k.Z,E),k.Z&&k.Z.locals&&k.Z.locals;var N=t(188);function L(e){return L="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},L(e)}var A=["name","value","className","disabled","error","success","min","max","onValue","onUpdateError","size"];function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){Z(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Z(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==L(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===L(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function B(){B=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(e){l=function(e,n,t){return e[n]=t}}function s(e,n,t,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:w(e,t,c)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function f(){}function d(){}function b(){}var v={};l(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(P([])));y&&y!==n&&t.call(y,i)&&(v=y);var h=b.prototype=f.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function _(e,n){function o(r,i,a,c){var l=u(e[r],e,i);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==L(p)&&t.call(p,"__await")?n.resolve(p.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):n.resolve(p).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,c)}))}c(l.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function w(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var c=O(a,t);if(c){if(c===p)continue;return c}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var l=u(e,n,t);if("normal"===l.type){if(r=t.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:t.done}}"throw"===l.type&&(r="completed",t.method="throw",t.arg=l.arg)}}}function O(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,O(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),p;var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function j(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=b,r(h,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:d,configurable:!0}),d.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(h),e},e.awrap=function(e){return{__await:e}},g(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new _(s(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(h),l(h,c,"Generator"),l(h,i,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),l=t.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,n){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&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),j(t),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;j(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:P(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),p}},e}function I(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var M=function(e){var n,t,r=e.name,o=e.value,c=void 0===o?"1":o,l=e.className,u=e.disabled,p=e.error,v=e.success,m=e.min,y=e.max,h=e.onValue,g=e.onUpdateError,_=e.size,w=void 0===_?"medium":_,O=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,A),x=(n=(0,i.useState)(Number(c)),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(n,t)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(n,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.")}()),j=x[0],S=x[1],P=Number(m),k=Number(y);(0,i.useEffect)((function(){S(Number(c))}),[c]);var E,L,C=(0,i.useCallback)((E=function(){var e,n=(e=B().mark((function e(n){return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=9;break}return e.prev=1,e.next=4,h(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),g&&g(e.t0);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){I(i,r,o,a,c,"next",e)}function c(e){I(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),500,function(){for(var e=this,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];clearTimeout(L),L=setTimeout((function(){return E.apply(e,t)}),500)}),[h,g]),Z=function(e){var n=e;e<P&&(n=P),e>k&&(n=k),C(n),S(n)};return(0,N.jsx)("div",{className:(0,a.S)(["elsie-incrementer","elsie-incrementer--".concat(w),l]),children:(0,N.jsxs)("div",{className:(0,a.S)(["elsie-incrementer__content","elsie-incrementer__content--".concat(w),["elsie-incrementer__content--error",p],["elsie-incrementer__content--success",v],["elsie-incrementer__content--disabled",u]]),children:[(0,N.jsx)("div",{className:(0,a.S)(["elsie-incrementer__button-container",["elsie-incrementer__button-container--disabled",u]]),children:(0,N.jsx)(b.Cf,{children:(0,N.jsx)("button",{type:"button",className:(0,a.S)(["elsie-incrementer__decrease-button",["elsie-incrementer__decrease-button--disabled",u]]),onClick:function(){return Z(j-1)},disabled:u||j<P+1,"aria-label":(0,N.jsx)(b.xv,{id:"Elsie.Incrementer.decreaseLabel"}),children:(0,N.jsx)(d.J,{source:s,size:"16",stroke:"1",viewBox:"4 2 20 20",className:"elsie-incrementer__down"})})})}),(0,N.jsx)("input",D({className:"elsie-incrementer__input",max:y,min:m,step:1,type:"number",name:r,value:j,disabled:u,onChange:function(e){var n=e.currentTarget.value;""!==n&&Z(Number(n))}},O)),(0,N.jsx)("div",{className:(0,a.S)(["elsie-incrementer__button-container",["elsie-incrementer__button-container--disabled",u]]),children:(0,N.jsx)(b.Cf,{children:(0,N.jsx)("button",{type:"button",className:(0,a.S)(["elsie-incrementer__increase-button",["elsie-incrementer__increase-button--disabled",u]]),onClick:function(){return Z(j+1)},disabled:u||j>k-1,"aria-label":(0,N.jsx)(b.xv,{id:"Elsie.Incrementer.increaseLabel"}),children:(0,N.jsx)(d.J,{source:f,size:"16",stroke:"1",viewBox:"4 2 20 20",className:"elsie-incrementer__add"})})})})]})})}},988:(e,n,t)=>{t.d(n,{t:()=>j});var r=t(587),o=t(892),i=t.n(o),a=t(760),c=t.n(a),l=t(311),s=t.n(l),u=t(192),p=t.n(u),f=t(60),d=t.n(f),b=t(865),v=t.n(b),m=t(948),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=s().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=d(),i()(m.Z,y),m.Z&&m.Z.locals&&m.Z.locals;var h=t(188);function g(e){return g="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},g(e)}var _=["amount","currency","locale","variant","className","children","sale","formatOptions"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var j=function(e){var n=e.amount,t=void 0===n?0:n,o=e.currency,i=void 0===o?"USD":o,a=e.locale,c=void 0===a?void 0:a,l=e.variant,s=void 0===l?"default":l,u=e.className,p=(e.children,e.sale),f=void 0!==p&&p,d=e.formatOptions,b=void 0===d?{}:d,v=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,_),m=new Intl.NumberFormat(c,O({style:"currency",currency:i,minimumFractionDigits:2,maximumFractionDigits:2},b));return(0,h.jsx)("span",O(O({},v),{},{className:(0,r.S)(["elsie-price",u,"elsie-price--".concat(s),["elsie-price--sale",f]]),children:m.format(t)}))}},625:(e,n,t)=>{t.d(n,{X:()=>r});var r=function(e){var n=new FormData(e);return Object.fromEntries(n)}},367:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* Common button styles */\n.elsie-button,\n.elsie-iconButton {\n border: 0 none;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.elsie-button {\n border-radius: var(--shape-border-radius-3);\n font-size: var(--type-button-1-font);\n font-weight: var(--type-button-1-font);\n padding: var(--spacing-xsmall) var(--spacing-medium);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.elsie-iconButton {\n border-radius: 50%; /* Make the button a perfect circle */\n height: var(--spacing-xbig);\n width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button:disabled,\n.elsie-iconButton:disabled {\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button:not(:disabled),\n.elsie-iconButton:not(:disabled) {\n cursor: pointer;\n}\n\n.elsie-button:hover > svg,\n.elsie-iconButton:hover > svg {\n fill: var(--color-neutral-300);\n}\n\n.elsie-button:focus,\n.elsie-iconButton:focus {\n outline: var(--spacing-xxsmall) solid var(--color-neutral-400);\n}\n\n/* Primary */\n.elsie-button--primary,\n.elsie-iconButton--primary {\n border: none;\n background: var(--color-brand-500) 0 0% no-repeat padding-box;\n color: var(--color-neutral-50);\n text-align: left;\n margin-right: 0;\n}\n\n.elsie-iconButton--primary {\n border-radius: var(--spacing-xbig);\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button--primary--disabled,\n.elsie-iconButton--primary--disabled {\n background: var(--color-neutral-300) 0 0% no-repeat padding-box;\n color: var(--color-neutral-500);\n fill: var(--color-neutral-300);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--primary:hover,\n.elsie-iconButton--primary:hover {\n background: var(--color-brand-600) 0 0% no-repeat padding-box;\n}\n\n/* Secondary */\n.elsie-button--secondary,\n.elsie-iconButton--secondary {\n border: var(--shape-border-width-2) solid var(--color-brand-500);\n background: none 0 0% no-repeat padding-box;\n color: var(--color-brand-500);\n padding-top: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-left: calc(var(--spacing-medium) - var(--shape-border-width-2));\n}\n\n.elsie-iconButton--secondary {\n border-radius: var(--spacing-xbig);\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n padding-top: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n}\n\n.elsie-button--secondary--disabled,\n.elsie-iconButton--secondary--disabled {\n border: var(--shape-border-width-2) solid var(--color-neutral-300);\n background: none 0 0% no-repeat padding-box;\n color: var(--color-neutral-500);\n fill: var(--color-neutral-300);\n padding-top: var(--spacing-xsmall);\n padding-left: var(--spacing-medium);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--secondary:hover,\n.elsie-iconButton--secondary:hover {\n border: var(--shape-border-width-2) solid var(--color-brand-600);\n color: var(--color-brand-600);\n}\n\n/* Tertiary */\n.elsie-button--tertiary,\n.elsie-iconButton--tertiary {\n border: none;\n background: none 0 0% no-repeat padding-box;\n color: var(--color-brand-500);\n}\n\n.elsie-iconButton--tertiary {\n border: none;\n min-height: var(--spacing-xbig);\n min-width: var(--spacing-xbig);\n padding: var(--spacing-xsmall);\n}\n\n.elsie-button--tertiary--disabled,\n.elsie-iconButton--tertiary--disabled {\n border: none;\n color: var(--color-neutral-500);\n pointer-events: none;\n user-select: none;\n}\n\n.elsie-button--tertiary:hover,\n.elsie-iconButton--tertiary:hover {\n color: var(--color-brand-600);\n}\n\n/* Button Sizes */\n.elsie-button--large {\n font: var(--type-button-1-font);\n letter-spacing: var(--type-button-1-letter-spacing);\n}\n\n.elsie-button--medium {\n font: var(--type-button-2-font);\n letter-spacing: var(--type-button-2-letter-spacing);\n}\n\n.elsie-button-icon {\n height: 24px;\n}\n\n/* No Icon */\n.elsie-button--with-icon {\n column-gap: var(--spacing-xsmall);\n row-gap: var(--spacing-xsmall);\n}\n",""]);const c=a},453:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.elsie-icon { \n}\n\n.elsie-icon--shape-stroke-1 { \n stroke-width: var(--shape-icon-stroke-1);\n}\n\n.elsie-icon--shape-stroke-2 { \n stroke-width: var(--shape-icon-stroke-2);\n}\n\n.elsie-icon--shape-stroke-3 { \n stroke-width: var(--shape-icon-stroke-3);\n}\n\n.elsie-icon--shape-stroke-4 {\n stroke-width: var(--shape-icon-stroke-4);\n}\n",""]);const c=a},61:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n/* .elsie-image { } */\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},6:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n/* Content */\n.elsie-incrementer__content {\n border-radius: var(--shape-border-radius-1);\n border: solid var(--shape-border-width-1) var(--color-neutral-600);\n display: grid;\n grid-template-columns: var(--spacing-xxbig) auto var(--spacing-xxbig);\n height: var(--spacing-xbig);\n opacity: 1;\n}\n\n.elsie-incrementer__content--disabled {\n background: var(--color-neutral-300);\n border-radius: var(--shape-border-radius-1);\n border: solid var(--shape-border-width-1) var(--color-neutral-500);\n}\n\n.elsie-incrementer__content--large {\n height: var(--spacing-xxbig);\n}\n\n.elsie-incrementer__content:focus-within {\n box-shadow: 0px 0px 0px var(--shape-border-width-1) var(--color-brand-500);\n}\n\n/* Footer */\n.elsie-incrementer__footer {\n font: var(--type-details-caption-2-font);\n}\n\n/* Buttons */\n.elsie-incrementer__decrease-button > svg,\n.elsie-incrementer__increase-button > svg {\n align-items: center;\n justify-content: center;\n}\n\n.elsie-incrementer__button-container {\n align-items: center;\n display: grid;\n justify-content: center;\n background: var(--color-neutral-50);\n}\n\n.elsie-incrementer__button-container--disabled {\n background-color: var(--color-neutral-300);\n}\n\n.elsie-incrementer__decrease-button,\n.elsie-incrementer__increase-button {\n align-items: center;\n background-color: var(--color-neutral-50);\n border-radius: var(--shape-border-radius-3);\n border: none;\n display: grid;\n height: var(--spacing-medium);\n width: var(--spacing-medium);\n}\n\n.elsie-incrementer__decrease-button--disabled,\n.elsie-incrementer__increase-button--disabled {\n background-color: var(--color-neutral-300);\n}\n\n.elsie-incrementer__decrease-button:hover:enabled,\n.elsie-incrementer__increase-button:hover:enabled,\n.elsie-incrementer__decrease-button:focus,\n.elsie-incrementer__increase-button:focus {\n background: var(--color-neutral-300);\n}\n\n.elsie-incrementer__increase-button:focus-visible,\n.elsie-incrementer__decrease-button:focus-visible {\n outline: var(--shape-border-width-1) solid var(--color-brand-500);\n box-shadow: 0px 0px 0px var(--shape-border-radius-1) var(--color-neutral-500);\n}\n\n/* Input */\n.elsie-incrementer__input {\n box-sizing: border-box;\n text-align: center;\n min-width: var(--spacing-xxbig);\n}\n\n.elsie-incrementer__input:disabled {\n background-color: var(--color-neutral-300);\n color: var(--color-neutral-500);\n}\n\n.elsie-incrementer__input::-webkit-outer-spin-button,\n.elsie-incrementer__input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n.elsie-incrementer__input:focus-within {\n border: none;\n box-sizing: border-box;\n text-align: center;\n}\n\n.elsie-incrementer__input:focus-within[type='number'] {\n box-shadow: none;\n}\n\n/* Firefox */\n.elsie-incrementer__input[type='number'] {\n -moz-appearance: textfield;\n box-shadow: none;\n border: none;\n}\n\ntextarea:focus,\ninput:focus {\n outline: none;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},948:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(933),o=t.n(r),i=t(476),a=t.n(i)()(o());a.push([e.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.elsie-price {\n color: var(--color-neutral-800);\n font: var(--type-body-2-emphasized-font);\n}\n\n.elsie-price--strikethrough {\n text-decoration: line-through;\n}\n\n.elsie-price--sale {\n color: var(--color-alert-800);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},354:(e,n,t)=>{t.d(n,{createElement:()=>r.createElement});var r=t(474),o=t(437);function i(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function a(e){this.props=e}(a.prototype=new r.Component).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,n){return i(this.props,e)||i(this.state,n)};var c=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var l=(r.toChildArray,r.options.__e);r.options.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);l(e,n,t,r)};var s=r.options.unmount;function u(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,n){for(var t in n)e[t]=n[t];return e}({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,n,t)}))),e}function p(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return p(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function f(){this.__u=0,this.t=null,this.__b=null}function d(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function b(){this.u=null,this.o=null}r.options.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),s&&s(e)},(f.prototype=new r.Component).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=d(r.__v),i=!1,a=function(){i||(i=!0,t.__R=null,o?o(c):c())};t.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=p(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},f.prototype.componentWillUnmount=function(){this.t=[]},f.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,t,o.__O=o.__P)}this.__b=null}var i=n.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return i&&(i.__h=null),[(0,r.createElement)(r.Fragment,null,n.__a?null:e.children),i]};var v=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(b.prototype=new r.Component).__a=function(e){var n=this,t=d(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),v(n,e,r)):o()};t?t(i):i()}},b.prototype.render=function(e){this.u=null,this.o=new Map;var n=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){v(e,t,n)}))};var m="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,y=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,h=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,g=/[A-Z0-9]/g,_="undefined"!=typeof document,w=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var O=r.options.event;function x(){}function j(){return this.cancelBubble}function S(){return this.defaultPrevented}r.options.event=function(e){return O&&(e=O(e)),e.persist=x,e.isPropagationStopped=j,e.isDefaultPrevented=S,e.nativeEvent=e};var P={enumerable:!1,configurable:!0,get:function(){return this.class}},k=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,o={};for(var i in n){var a=n[i];if(!("value"===i&&"defaultValue"in n&&null==a||_&&"children"===i&&"noscript"===t||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==t&&"textarea"!==t||w(n.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":h.test(i)?i=c:-1===t.indexOf("-")&&y.test(i)?i=i.replace(g,"-$&").toLowerCase():null===a&&(a=void 0):c=i="oninput","oninput"===c&&o[i=c]&&(i="oninputCapture"),o[i]=a}}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.toChildArray)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.toChildArray)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",P)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(e),e.$$typeof=m,k&&k(e)};var E=r.options.__r;r.options.__r=function(e){E&&E(e),e.__c};var N=r.options.diffed;r.options.diffed=function(e){N&&N(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)},r.Fragment,o.useLayoutEffect,o.useState,o.useId,o.useReducer,o.useEffect,o.useLayoutEffect,o.useRef,o.useImperativeHandle,o.useMemo,o.useCallback,o.useContext,o.useDebugValue,r.createElement,r.createContext,r.createRef,r.Fragment,r.Component}};
|
package/757.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const id=757;export const ids=[757];export const modules={587:(t,r,e)=>{function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{S:()=>o});var o=function(t){return t.reduce((function(t,r){if(!r)return t;if("string"==typeof r&&(t+=" ".concat(r)),Array.isArray(r)){var e=(u=2,function(t){if(Array.isArray(t))return t}(a=r)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(a,u)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(a,u)||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.")}()),o=e[0],i=e[1];o&&i&&(t+=" ".concat(o))}var a,u;return t}),"").trim()}},476:t=>{t.exports=function(t){var r=[];return r.toString=function(){return this.map((function(r){var e="",n=void 0!==r[5];return r[4]&&(e+="@supports (".concat(r[4],") {")),r[2]&&(e+="@media ".concat(r[2]," {")),n&&(e+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),e+=t(r),n&&(e+="}"),r[2]&&(e+="}"),r[4]&&(e+="}"),e})).join("")},r.i=function(t,e,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);n&&a[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),e&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=e):p[2]=e),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),r.push(p))}},r}},933:t=>{t.exports=function(t){return t[1]}},152:function(t){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},724:(t,r,e)=>{e.d(r,{Pj:()=>x,Cf:()=>E,xv:()=>S});var n,o=e(474),i=e(437),a=e(152),u=e.n(a),l={};function c(t,r,e){if(3===t.nodeType){var n="textContent"in t?t.textContent:t.nodeValue||"";if(!1!==c.options.trim){var o=0===r||r===e.length-1;if((!(n=n.match(/^[\s\n]+$/g)&&"all"!==c.options.trim?" ":n.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===c.options.trim||o?"":" "))||" "===n)&&e.length>1&&o)return null}return n}if(1!==t.nodeType)return null;var i=String(t.nodeName).toLowerCase();if("script"===i&&!c.options.allowScripts)return null;var a,u,l=c.h(i,function(t){var r=t&&t.length;if(!r)return null;for(var e={},n=0;n<r;n++){var o=t[n],i=o.name,a=o.value;"on"===i.substring(0,2)&&c.options.allowEvents&&(a=new Function(a)),e[i]=a}return e}(t.attributes),(u=(a=t.childNodes)&&Array.prototype.map.call(a,c).filter(s))&&u.length?u:null);return c.visitor&&c.visitor(l),l}var p,s=function(t){return t},f={};function d(t){var r=(t.type||"").toLowerCase(),e=d.map;e&&e.hasOwnProperty(r)?(t.type=e[r],t.props=Object.keys(t.props||{}).reduce((function(r,e){var n;return r[(n=e,n.replace(/-(.)/g,(function(t,r){return r.toUpperCase()})))]=t.props[e],r}),{})):t.type=r.replace(/[^a-z0-9-]/i,"")}const m=function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.setReviver=function(t){p=t},r.prototype.shouldComponentUpdate=function(t){var r=this.props;return t.wrap!==r.wrap||t.type!==r.type||t.markup!==r.markup},r.prototype.setComponents=function(t){if(this.map={},t)for(var r in t)if(t.hasOwnProperty(r)){var e=r.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[e]=t[r]}},r.prototype.render=function(t){var r=t.wrap;void 0===r&&(r=!0);var e,i=t.type,a=t.markup,u=t.components,s=t.reviver,m=t.onError,v=t["allow-scripts"],h=t["allow-events"],y=t.trim,g=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}(t,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),b=s||this.reviver||this.constructor.prototype.reviver||p||o.h;this.setComponents(u);var x={allowScripts:v,allowEvents:h,trim:y};try{e=function(t,r,e,o,i){var a=function(t,r){var e,o,i,a,u="html"===r?"text/html":"application/xml";"html"===r?(a="body",i="<!DOCTYPE html>\n<html><body>"+t+"</body></html>"):(a="xml",i='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+t+"</xml>");try{e=(new DOMParser).parseFromString(i,u)}catch(t){o=t}if(e||"html"!==r||((e=n||(n=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var t=document.createElement("iframe");return t.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",t.setAttribute("sandbox","allow-forms"),document.body.appendChild(t),t.contentWindow.document}())).open(),e.write(i),e.close()),e){var l=e.getElementsByTagName(a)[0],c=l.firstChild;return t&&!c&&(l.error="Document parse failed."),c&&"parsererror"===String(c.nodeName).toLowerCase()&&(c.removeChild(c.firstChild),c.removeChild(c.lastChild),l.error=c.textContent||c.nodeValue||o||"Unknown error",l.removeChild(c)),l}}(t,r);if(a&&a.error)throw new Error(a.error);var u=a&&a.body||a;d.map=o||f;var p=u&&function(t,r,e,n){return c.visitor=r,c.h=e,c.options=n||l,c(t)}(u,d,e,i);return d.map=null,p&&p.props&&p.props.children||null}(a,i,b,this.map,x)}catch(t){m?m({error:t}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+t)}if(!1===r)return e||null;var w=g.hasOwnProperty("className")?"className":"class",C=g[w];return C?C.splice?C.splice(0,0,"markup"):"string"==typeof C?g[w]+=" markup":"object"==typeof C&&(C.markup=!0):g[w]="markup",b("div",g,e||null)},r}(o.Component);var v=(0,o.createContext)({intl:{}});function h(t){return null!=t}function y(t,r){for(var e in r)t[e]=r[e];return t}function g(t,r){var e=y({},t);for(var n in r)r.hasOwnProperty(n)&&(t[n]&&r[n]&&"object"==typeof t[n]&&"object"==typeof r[n]?e[n]=g(t[n],r[n]):e[n]=t[n]||r[n]);return e}var b=/[?&#]intl=show/;function x(t){var r=t.scope,e=t.mark,n=t.definition,a=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}(t,["scope","mark","definition"]),u=y({},(0,i.useContext)(v).intl||{});return r&&(u.scope=r),n&&(u.dictionary=g(u.dictionary||{},n)),(e||"undefined"!=typeof location&&String(location).match(b))&&(u.mark=!0),(0,o.h)(v.Provider,{value:{intl:u}},a.children)}function w(t,r){if(arguments.length<2)return r=t,function(t){return w(t,r)};function e(e){return(0,o.h)(x,r||{},(0,o.h)(t,e))}return e.getWrappedComponent=t&&t.getWrappedComponent||function(){return t},e}var C={};function j(t,r,e,n){return t&&t.replace(/\{\{([\w.-]+)\}\}/g,O.bind(null,r||C,e,n))}function O(t,r,e,n,o){for(var i=o.split("."),a=t,u=0;u<i.length;u++){if(null==(a=a[i[u]]))return"";if(a&&a.type===S)return k(a.props.id,r,e,a.props.fields,a.props.plural,a.props.fallback)}return"string"==typeof a&&a.match(/\{\{/)&&(a=j(a,t)),a}function k(t,r,e,n,o,i){r&&(t=r+"."+t);var a=e&&u()(e,t);return(o||0===o)&&a&&"object"==typeof a&&(a=a.splice?a[o]||a[0]:0===o&&h(a.none||a.zero)?a.none||a.zero:1===o&&h(a.one||a.singular)?a.one||a.singular:a.some||a.many||a.plural||a.other||a),a&&j(a,n,r,e)||i||null}function T(t){var r=t.value,e=t.id,n=(0,i.useContext)(v).intl;if(n&&n.mark){var a="dictionary"+(n&&n.scope?"."+n.scope:"")+"."+e;return(0,o.h)("mark",{style:{background:r?u()(n,a)?"rgba(119,231,117,.5)":"rgba(229,226,41,.5)":"rgba(228,147,51,.5)"},title:e},r)}return r}function S(t){var r=t.id,e=t.children,n=t.plural,a=t.fields,u=(0,i.useContext)(v).intl,l=k(r,u&&u.scope,u&&u.dictionary,a,n,e);return(0,o.h)(T,{id:r,value:l})}function A(t,r,e){var n={};for(var o in r=r||{},t=function(t){if("string"==typeof(t=t||{})&&(t=t.split(",")),"join"in t){for(var r={},e=0;e<t.length;e++){var n=t[e].trim();n&&(r[n.split(".").pop()]=n)}return r}return t}(t),t)if(t.hasOwnProperty(o)&&t[o]){var i=t[o];e||"string"!=typeof i?i.type===S&&(i=y({fallback:i.props.children},i.props),n[o]=k(i.id,r.scope,r.dictionary,i.fields,i.plural,i.fallback)):n[o]=k(i,r.scope,r.dictionary)}return n}function E(t){var r=t.children,e=(0,i.useContext)(v).intl;return r&&r.length?r.map((function(t){return(0,o.cloneElement)(t,A(t.props,e,!0))})):r&&(0,o.cloneElement)(r,A(r.props,e,!0))}function P(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}function M(t){var r=t.html,e=t.id,n=P(t,["html","id"]);return(0,o.h)(T,{id:e,value:r?"string"==typeof r?(0,o.h)(m,Object.assign({},{type:"html",trim:!1},n,{markup:r})):(0,o.h)("span",null,r):r})}w.intl=w,w.IntlContext=v,w.IntlProvider=x,w.Text=S,w.MarkupText=function(t){var r=t.id,e=t.fields,n=t.plural,i=t.children,a=P(t,["id","fields","plural","children"]);return(0,o.h)(E,null,(0,o.h)(M,Object.assign({},{html:(0,o.h)(S,{id:r,fields:e,plural:n,children:i}),id:r},a)))},w.Localizer=E,w.withText=function(t){return function(r){function e(e,n){var a=(0,i.useContext)(v).intl,u=A("function"==typeof t?t(e,{intl:a}):t,a);return(0,o.h)(r,y(y({},e),u))}return e.getWrappedComponent=r&&r.getWrappedComponent||function(){return r},e}},w.useText=function(t){var r=(0,i.useContext)(v).intl;return A("function"==typeof t?t({intl:r}):t,r)},w.translate=k},892:t=>{var r=[];function e(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function n(t,n){for(var i={},a=[],u=0;u<t.length;u++){var l=t[u],c=n.base?l[0]+n.base:l[0],p=i[c]||0,s="".concat(c," ").concat(p);i[c]=p+1;var f=e(s),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)r[f].references++,r[f].updater(d);else{var m=o(d,n);n.byIndex=u,r.splice(u,0,{identifier:s,updater:m,references:1})}a.push(s)}return a}function o(t,r){var e=r.domAPI(r);return e.update(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap&&r.supports===t.supports&&r.layer===t.layer)return;e.update(t=r)}else e.remove()}}t.exports=function(t,o){var i=n(t=t||[],o=o||{});return function(t){t=t||[];for(var a=0;a<i.length;a++){var u=e(i[a]);r[u].references--}for(var l=n(t,o),c=0;c<i.length;c++){var p=e(i[c]);0===r[p].references&&(r[p].updater(),r.splice(p,1))}i=l}}},311:t=>{var r={};t.exports=function(t,e){var n=function(t){if(void 0===r[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}r[t]=e}return r[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}},60:t=>{t.exports=function(t){var r=document.createElement("style");return t.setAttributes(r,t.attributes),t.insert(r,t.options),r}},192:(t,r,e)=>{t.exports=function(t){var r=e.nc;r&&t.setAttribute("nonce",r)}},760:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var r=t.insertStyleElement(t);return{update:function(e){!function(t,r,e){var n="";e.supports&&(n+="@supports (".concat(e.supports,") {")),e.media&&(n+="@media ".concat(e.media," {"));var o=void 0!==e.layer;o&&(n+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),n+=e.css,o&&(n+="}"),e.media&&(n+="}"),e.supports&&(n+="}");var i=e.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleTagTransform(n,t,r.options)}(r,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)}}}},865:t=>{t.exports=function(t,r){if(r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}},220:(t,r,e)=>{e(853);var n=e(142);e.o(n,"jsx")&&e.d(r,{jsx:function(){return n.jsx}}),e.o(n,"jsxs")&&e.d(r,{jsxs:function(){return n.jsxs}})}};
|
|
1
|
+
export const id=757;export const ids=[757];export const modules={587:(t,r,e)=>{function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{S:()=>o});var o=function(t){return t.reduce((function(t,r){if(!r)return t;if("string"==typeof r&&(t+=" ".concat(r)),Array.isArray(r)){var e=(u=2,function(t){if(Array.isArray(t))return t}(a=r)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(a,u)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(a,u)||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.")}()),o=e[0],i=e[1];o&&i&&(t+=" ".concat(o))}var a,u;return t}),"").trim()}},476:t=>{t.exports=function(t){var r=[];return r.toString=function(){return this.map((function(r){var e="",n=void 0!==r[5];return r[4]&&(e+="@supports (".concat(r[4],") {")),r[2]&&(e+="@media ".concat(r[2]," {")),n&&(e+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),e+=t(r),n&&(e+="}"),r[2]&&(e+="}"),r[4]&&(e+="}"),e})).join("")},r.i=function(t,e,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);n&&a[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),e&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=e):p[2]=e),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),r.push(p))}},r}},933:t=>{t.exports=function(t){return t[1]}},152:function(t){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},724:(t,r,e)=>{e.d(r,{Pj:()=>x,Cf:()=>E,xv:()=>S,zB:()=>I});var n,o=e(474),i=e(437),a=e(152),u=e.n(a),l={};function c(t,r,e){if(3===t.nodeType){var n="textContent"in t?t.textContent:t.nodeValue||"";if(!1!==c.options.trim){var o=0===r||r===e.length-1;if((!(n=n.match(/^[\s\n]+$/g)&&"all"!==c.options.trim?" ":n.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===c.options.trim||o?"":" "))||" "===n)&&e.length>1&&o)return null}return n}if(1!==t.nodeType)return null;var i=String(t.nodeName).toLowerCase();if("script"===i&&!c.options.allowScripts)return null;var a,u,l=c.h(i,function(t){var r=t&&t.length;if(!r)return null;for(var e={},n=0;n<r;n++){var o=t[n],i=o.name,a=o.value;"on"===i.substring(0,2)&&c.options.allowEvents&&(a=new Function(a)),e[i]=a}return e}(t.attributes),(u=(a=t.childNodes)&&Array.prototype.map.call(a,c).filter(s))&&u.length?u:null);return c.visitor&&c.visitor(l),l}var p,s=function(t){return t},f={};function d(t){var r=(t.type||"").toLowerCase(),e=d.map;e&&e.hasOwnProperty(r)?(t.type=e[r],t.props=Object.keys(t.props||{}).reduce((function(r,e){var n;return r[(n=e,n.replace(/-(.)/g,(function(t,r){return r.toUpperCase()})))]=t.props[e],r}),{})):t.type=r.replace(/[^a-z0-9-]/i,"")}const m=function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.setReviver=function(t){p=t},r.prototype.shouldComponentUpdate=function(t){var r=this.props;return t.wrap!==r.wrap||t.type!==r.type||t.markup!==r.markup},r.prototype.setComponents=function(t){if(this.map={},t)for(var r in t)if(t.hasOwnProperty(r)){var e=r.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[e]=t[r]}},r.prototype.render=function(t){var r=t.wrap;void 0===r&&(r=!0);var e,i=t.type,a=t.markup,u=t.components,s=t.reviver,m=t.onError,v=t["allow-scripts"],h=t["allow-events"],y=t.trim,g=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}(t,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),b=s||this.reviver||this.constructor.prototype.reviver||p||o.h;this.setComponents(u);var x={allowScripts:v,allowEvents:h,trim:y};try{e=function(t,r,e,o,i){var a=function(t,r){var e,o,i,a,u="html"===r?"text/html":"application/xml";"html"===r?(a="body",i="<!DOCTYPE html>\n<html><body>"+t+"</body></html>"):(a="xml",i='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+t+"</xml>");try{e=(new DOMParser).parseFromString(i,u)}catch(t){o=t}if(e||"html"!==r||((e=n||(n=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var t=document.createElement("iframe");return t.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",t.setAttribute("sandbox","allow-forms"),document.body.appendChild(t),t.contentWindow.document}())).open(),e.write(i),e.close()),e){var l=e.getElementsByTagName(a)[0],c=l.firstChild;return t&&!c&&(l.error="Document parse failed."),c&&"parsererror"===String(c.nodeName).toLowerCase()&&(c.removeChild(c.firstChild),c.removeChild(c.lastChild),l.error=c.textContent||c.nodeValue||o||"Unknown error",l.removeChild(c)),l}}(t,r);if(a&&a.error)throw new Error(a.error);var u=a&&a.body||a;d.map=o||f;var p=u&&function(t,r,e,n){return c.visitor=r,c.h=e,c.options=n||l,c(t)}(u,d,e,i);return d.map=null,p&&p.props&&p.props.children||null}(a,i,b,this.map,x)}catch(t){m?m({error:t}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+t)}if(!1===r)return e||null;var w=g.hasOwnProperty("className")?"className":"class",C=g[w];return C?C.splice?C.splice(0,0,"markup"):"string"==typeof C?g[w]+=" markup":"object"==typeof C&&(C.markup=!0):g[w]="markup",b("div",g,e||null)},r}(o.Component);var v=(0,o.createContext)({intl:{}});function h(t){return null!=t}function y(t,r){for(var e in r)t[e]=r[e];return t}function g(t,r){var e=y({},t);for(var n in r)r.hasOwnProperty(n)&&(t[n]&&r[n]&&"object"==typeof t[n]&&"object"==typeof r[n]?e[n]=g(t[n],r[n]):e[n]=t[n]||r[n]);return e}var b=/[?&#]intl=show/;function x(t){var r=t.scope,e=t.mark,n=t.definition,a=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}(t,["scope","mark","definition"]),u=y({},(0,i.useContext)(v).intl||{});return r&&(u.scope=r),n&&(u.dictionary=g(u.dictionary||{},n)),(e||"undefined"!=typeof location&&String(location).match(b))&&(u.mark=!0),(0,o.h)(v.Provider,{value:{intl:u}},a.children)}function w(t,r){if(arguments.length<2)return r=t,function(t){return w(t,r)};function e(e){return(0,o.h)(x,r||{},(0,o.h)(t,e))}return e.getWrappedComponent=t&&t.getWrappedComponent||function(){return t},e}var C={};function j(t,r,e,n){return t&&t.replace(/\{\{([\w.-]+)\}\}/g,O.bind(null,r||C,e,n))}function O(t,r,e,n,o){for(var i=o.split("."),a=t,u=0;u<i.length;u++){if(null==(a=a[i[u]]))return"";if(a&&a.type===S)return k(a.props.id,r,e,a.props.fields,a.props.plural,a.props.fallback)}return"string"==typeof a&&a.match(/\{\{/)&&(a=j(a,t)),a}function k(t,r,e,n,o,i){r&&(t=r+"."+t);var a=e&&u()(e,t);return(o||0===o)&&a&&"object"==typeof a&&(a=a.splice?a[o]||a[0]:0===o&&h(a.none||a.zero)?a.none||a.zero:1===o&&h(a.one||a.singular)?a.one||a.singular:a.some||a.many||a.plural||a.other||a),a&&j(a,n,r,e)||i||null}function T(t){var r=t.value,e=t.id,n=(0,i.useContext)(v).intl;if(n&&n.mark){var a="dictionary"+(n&&n.scope?"."+n.scope:"")+"."+e;return(0,o.h)("mark",{style:{background:r?u()(n,a)?"rgba(119,231,117,.5)":"rgba(229,226,41,.5)":"rgba(228,147,51,.5)"},title:e},r)}return r}function S(t){var r=t.id,e=t.children,n=t.plural,a=t.fields,u=(0,i.useContext)(v).intl,l=k(r,u&&u.scope,u&&u.dictionary,a,n,e);return(0,o.h)(T,{id:r,value:l})}function A(t,r,e){var n={};for(var o in r=r||{},t=function(t){if("string"==typeof(t=t||{})&&(t=t.split(",")),"join"in t){for(var r={},e=0;e<t.length;e++){var n=t[e].trim();n&&(r[n.split(".").pop()]=n)}return r}return t}(t),t)if(t.hasOwnProperty(o)&&t[o]){var i=t[o];e||"string"!=typeof i?i.type===S&&(i=y({fallback:i.props.children},i.props),n[o]=k(i.id,r.scope,r.dictionary,i.fields,i.plural,i.fallback)):n[o]=k(i,r.scope,r.dictionary)}return n}function E(t){var r=t.children,e=(0,i.useContext)(v).intl;return r&&r.length?r.map((function(t){return(0,o.cloneElement)(t,A(t.props,e,!0))})):r&&(0,o.cloneElement)(r,A(r.props,e,!0))}function P(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===r.indexOf(n)&&(e[n]=t[n]);return e}function M(t){var r=t.html,e=t.id,n=P(t,["html","id"]);return(0,o.h)(T,{id:e,value:r?"string"==typeof r?(0,o.h)(m,Object.assign({},{type:"html",trim:!1},n,{markup:r})):(0,o.h)("span",null,r):r})}function I(t){return function(r){function e(e,n){var a=(0,i.useContext)(v).intl,u=A("function"==typeof t?t(e,{intl:a}):t,a);return(0,o.h)(r,y(y({},e),u))}return e.getWrappedComponent=r&&r.getWrappedComponent||function(){return r},e}}w.intl=w,w.IntlContext=v,w.IntlProvider=x,w.Text=S,w.MarkupText=function(t){var r=t.id,e=t.fields,n=t.plural,i=t.children,a=P(t,["id","fields","plural","children"]);return(0,o.h)(E,null,(0,o.h)(M,Object.assign({},{html:(0,o.h)(S,{id:r,fields:e,plural:n,children:i}),id:r},a)))},w.Localizer=E,w.withText=I,w.useText=function(t){var r=(0,i.useContext)(v).intl;return A("function"==typeof t?t({intl:r}):t,r)},w.translate=k},892:t=>{var r=[];function e(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function n(t,n){for(var i={},a=[],u=0;u<t.length;u++){var l=t[u],c=n.base?l[0]+n.base:l[0],p=i[c]||0,s="".concat(c," ").concat(p);i[c]=p+1;var f=e(s),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)r[f].references++,r[f].updater(d);else{var m=o(d,n);n.byIndex=u,r.splice(u,0,{identifier:s,updater:m,references:1})}a.push(s)}return a}function o(t,r){var e=r.domAPI(r);return e.update(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap&&r.supports===t.supports&&r.layer===t.layer)return;e.update(t=r)}else e.remove()}}t.exports=function(t,o){var i=n(t=t||[],o=o||{});return function(t){t=t||[];for(var a=0;a<i.length;a++){var u=e(i[a]);r[u].references--}for(var l=n(t,o),c=0;c<i.length;c++){var p=e(i[c]);0===r[p].references&&(r[p].updater(),r.splice(p,1))}i=l}}},311:t=>{var r={};t.exports=function(t,e){var n=function(t){if(void 0===r[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}r[t]=e}return r[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}},60:t=>{t.exports=function(t){var r=document.createElement("style");return t.setAttributes(r,t.attributes),t.insert(r,t.options),r}},192:(t,r,e)=>{t.exports=function(t){var r=e.nc;r&&t.setAttribute("nonce",r)}},760:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var r=t.insertStyleElement(t);return{update:function(e){!function(t,r,e){var n="";e.supports&&(n+="@supports (".concat(e.supports,") {")),e.media&&(n+="@media ".concat(e.media," {"));var o=void 0!==e.layer;o&&(n+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),n+=e.css,o&&(n+="}"),e.media&&(n+="}"),e.supports&&(n+="}");var i=e.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleTagTransform(n,t,r.options)}(r,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)}}}},865:t=>{t.exports=function(t,r){if(r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}},188:(t,r,e)=>{e(853);var n=e(142);e.o(n,"jsx")&&e.d(r,{jsx:function(){return n.jsx}}),e.o(n,"jsxs")&&e.d(r,{jsxs:function(){return n.jsxs}})}};
|
package/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see api.js.LICENSE.txt */
|
|
2
|
-
import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>f,iE:()=>h,XV:()=>l,gO:()=>c,mv:()=>u,yg:()=>s});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,u=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,s=a.setFetchGraphQlHeaders,f=a.fetchGraphQl,h=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var i=r&&r.prototype instanceof v?r:v,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function i(n,a,c,u){var l=h(t[n],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==o(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(l.arg)}var a;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function E(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function a(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("👀",(0,n.iE)()),t.next=3,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 3:return a=t.sent,c=a.data,null==(u=null==c||null===(e=c.products)||void 0===e?void 0:e[0])||null===(o=u.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},567:(t,r,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,a=Object.create(o.prototype),c=new S(n||[]);return i(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(_([])));w&&w!==r&&e.call(w,c)&&(g=w);var b=d.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function o(i,a,c,u){var l=h(t[i],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function E(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function O(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:G}}function G(){return{value:void 0,done:!0}}return y.prototype=d,i(b,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new L(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function a(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?i(Object(e),!0).forEach((function(r){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}e.d(r,{vc:()=>h,gX:()=>p.gX,iE:()=>p.iE,b6:()=>v.b,j2:()=>f,XV:()=>p.XV,gO:()=>p.gO,mv:()=>p.mv,yg:()=>p.yg});var l,s,f=new(e(743).m)({init:(l=o().mark((function t(r){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e={},f.config.setConfig(a(a({},e),r));case 2:case"end":return t.stop()}}),t)})),s=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=l.apply(t,r);function i(t){u(o,e,n,i,a,"next",t)}function a(t){u(o,e,n,i,a,"throw",t)}i(void 0)}))},function(t){return s.apply(this,arguments)}),listeners:function(){return[]}}),h=f.config,p=e(377),v=e(675)}};import r from"./runtime.js";import*as e from"./743.js";r.C(e);import*as n from"./api.js";r.C(n);var o=(567,r(r.s=567)),i=o.vc,a=o.gX,c=o.iE,u=o.b6,l=o.j2,s=o.XV,f=o.gO,h=o.mv,p=o.yg;export{i as config,a as fetchGraphQl,c as getConfig,u as getProductData,l as initialize,s as removeFetchGraphQlHeader,f as setEndpoint,h as setFetchGraphQlHeader,p as setFetchGraphQlHeaders};
|
|
2
|
+
import*as t from"@dropins/elsie/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>f,iE:()=>h,XV:()=>l,gO:()=>c,mv:()=>u,yg:()=>s});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,u=a.setFetchGraphQlHeader,l=a.removeFetchGraphQlHeader,s=a.setFetchGraphQlHeaders,f=a.fetchGraphQl,h=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function f(t,r,e,o){var i=r&&r.prototype instanceof v?r:v,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:E(t,e,c)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function y(){}function d(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(P([])));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 _(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 P(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=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!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),_(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;_(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 a(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,u,l,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n attributes {\n label\n value\n roles\n }\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 2:return c=t.sent,u=c.data,null==(l=null==u||null===(e=u.products)||void 0===e?void 0:e[0])||null===(o=l.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),null==(s=null==l||null===(a=l.attributes)||void 0===a?void 0:a.filter((function(t){var r=t.roles;return-1!==(null==r?void 0:r.indexOf("visible_in_pdp"))})))||s.map((function(t,r){var e=t.label,n=t.value;return n=n.toString().split(",").join(", "),l.attributes[r]={label:e,value:n}})),t.abrupt("return",l);case 9:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},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(P([])));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 _(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 P(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=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!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),_(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;_(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 i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function a(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?i(Object(e),!0).forEach((function(r){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}e.d(r,{vc:()=>h,gX:()=>p.gX,iE:()=>p.iE,b6:()=>v.b,j2:()=>f,XV:()=>p.XV,gO:()=>p.gO,mv:()=>p.mv,yg:()=>p.yg});var l,s,f=new(e(743).m)({init:(l=o().mark((function t(r){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e={},f.config.setConfig(a(a({},e),r));case 2:case"end":return t.stop()}}),t)})),s=function(){var t=this,r=arguments;return new Promise((function(e,n){var o=l.apply(t,r);function i(t){u(o,e,n,i,a,"next",t)}function a(t){u(o,e,n,i,a,"throw",t)}i(void 0)}))},function(t){return s.apply(this,arguments)}),listeners:function(){return[]}}),h=f.config,p=e(377),v=e(675)}};import r from"./runtime.js";import*as e from"./743.js";r.C(e);import*as n from"./api.js";r.C(n);var o=(567,r(r.s=567)),i=o.vc,a=o.gX,c=o.iE,u=o.b6,l=o.j2,s=o.XV,f=o.gO,h=o.mv,p=o.yg;export{i as config,a as fetchGraphQl,c as getConfig,u as getProductData,l as initialize,s as removeFetchGraphQlHeader,f as setEndpoint,h as setFetchGraphQlHeader,p as setFetchGraphQlHeaders};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see ProductDetails.js.LICENSE.txt */
|
|
2
|
-
import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/preact-compat.js";import*as e from"@dropins/elsie/preact-hooks.js";import*as n from"@dropins/elsie/preact-jsx-runtime.js";import*as o from"@dropins/elsie/preact.js";export const id=175;export const ids=[175];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>p,iE:()=>d,XV:()=>s,gO:()=>c,mv:()=>l,yg:()=>u});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),c=a.setEndpoint,l=a.setFetchGraphQlHeader,s=a.removeFetchGraphQlHeader,u=a.setFetchGraphQlHeaders,p=a.fetchGraphQl,d=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>c});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function p(t,r,e,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:j(t,e,c)}),a}function d(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function m(){}function g(){}var y={};u(y,c,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(A([])));b&&b!==r&&e.call(b,c)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function i(n,a,c,l){var s=d(t[n],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==o(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,c,l)}),(function(t){i("throw",t,c,l)})):r.resolve(p).then((function(t){u.value=t,c(u)}),(function(t){return i("throw",t,c,l)}))}l(s.arg)}var a;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function j(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===f)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var l=d(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.arg)}}}function O(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),f;var o=d(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,f;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=g,n(w,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(p(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),u(w,s,"Generator"),u(w,c,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),l=e.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),f},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),f}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:A(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},t}function a(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}var c=function(){var t,r=(t=i().mark((function t(r){var e,o,a,c,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("👀",(0,n.iE)()),t.next=3,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 3:return a=t.sent,c=a.data,null==(l=null==c||null===(e=c.products)||void 0===e?void 0:e[0])||null===(o=l.images)||void 0===o||o.forEach((function(t){t.url=t.url.replace(/^https?:/,"")})),t.abrupt("return",l);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){a(i,n,o,c,l,"next",t)}function l(t){a(i,n,o,c,l,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,e)=>{e.d(r,{f:()=>it,Z:()=>it});var n=e(373),o=e(988),i=e(625),a=e(587),c=e(769),l=e(341),s=e(72),u=e(724),p=e(148),d=e(949),f=e(853),h=e(892),m=e.n(h),g=e(760),y=e.n(g),v=e(311),b=e.n(v),w=e(192),_=e.n(w),x=e(60),j=e.n(x),O=e(865),P=e.n(O),k=e(834),S={};S.styleTagTransform=P(),S.setAttributes=_(),S.insert=b().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=j(),m()(k.Z,S),k.Z&&k.Z.locals&&k.Z.locals;var A=e(220);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}var L=["children","gap","className","style"];function N(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function T(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?N(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):N(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function D(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==E(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===E(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var C=function(t){var r=t.children,e=t.gap,n=void 0===e?null:e,o=t.className,i=t.style,c=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,L);return(0,A.jsx)("div",T(T({},c),{},{className:(0,a.S)(["pdp-gallery-grid",o]),style:T({"--gap":n?"var(--spacing-".concat(n,")"):"0px"},i),children:f.Children.map(r,(function(t,r){return(0,A.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,A.jsx)(t.type,T(T({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},I=e(202),G={};function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}G.styleTagTransform=P(),G.setAttributes=_(),G.insert=b().bind(null,"head"),G.domAPI=y(),G.insertStyleElement=j(),m()(I.Z,G),I.Z&&I.Z.locals&&I.Z.locals;var F=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function X(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function M(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?X(Object(e),!0).forEach((function(r){R(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):X(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function R(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==Z(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Z(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var z=function(t){var r=t.show,e=void 0===r?1:r,n=t.scrollbar,o=void 0!==n&&n,i=t.peak,c=void 0!==i&&i,l=t.gap,s=void 0===l?null:l,u=t.direction,p=void 0===u?"horizontal":u,d=t.width,h=void 0===d?"100%":d,m=t.height,g=void 0===m?"100%":m,y=t.className,v=t.style,b=t.children,w=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,F),_=f.Children.count(b),x="number"==typeof e?{small:e,medium:e,large:e}:e,j=function(t){return t<1||1===_?"horizontal"===p?h:g:t>=_?"calc((100% / ".concat(_,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,A.jsx)("div",M(M({},w),{},{className:(0,a.S)(["pdp-carousel","pdp-carousel--".concat(p),["pdp-carousel--scrollbar",o],["pdp-carousel--peak",c],y]),style:M(M({},v),{},{"--container-width":h,"--container-height":g,"--pdp-carousel-gap":s?"var(--spacing-".concat(s,")"):"0px","--pdp-carousel-width-small":j(x.small),"--pdp-carousel-width-medium":j(x.medium),"--pdp-carousel-width-large":j(x.large)}),children:f.Children.map(b,(function(t,r){return(0,A.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},children:(0,A.jsx)(t.type,M({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},H=e(330),Q={};function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}Q.styleTagTransform=P(),Q.setAttributes=_(),Q.insert=b().bind(null,"head"),Q.domAPI=y(),Q.insertStyleElement=j(),m()(H.Z,Q),H.Z&&H.Z.locals&&H.Z.locals;var W=["title","sku","outOfStock","hideSku","shortDescription","description","images","price","specialPrice","onAddToCart","onAddToWishlist","className","children"];function q(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function V(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?q(Object(e),!0).forEach((function(r){Y(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function Y(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==B(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===B(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var J=function(t){var r=t.title,e=t.sku,n=t.outOfStock,o=t.hideSku,f=t.shortDescription,h=t.description,m=t.images,g=t.price,y=t.specialPrice,v=t.onAddToCart,b=t.onAddToWishlist,w=t.className,_=(t.children,function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,W));return(0,A.jsxs)("div",V(V({},_),{},{className:(0,a.S)(["pdp-product",w]),children:[(0,A.jsx)("div",{className:"pdp-product__gallery-column",children:(0,A.jsx)(C,{className:"pdp-product__images",gap:"small",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,A.jsxs)("div",{className:"pdp-product__content-column",children:[(0,A.jsxs)("div",{className:"pdp-product__header",children:[(0,A.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&e&&(0,A.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",e]}),(0,A.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,A.jsx)(g.type,V(V({},g.props),{},{className:(0,a.S)([g.props.className,"pdp-product__price",["pdp-product__price--grey",y]])})),y&&(0,A.jsx)(g.type,V(V({},y.props),{},{className:(0,a.S)([y.props.className,"pdp-product__price-special"])}))]})]}),(0,A.jsx)(z,{className:"pdp-product__images pdp-product__images--carousel",peak:!0,width:"100%",height:"auto",children:null!=m&&m.length?m.map((function(t,r){return(0,A.jsx)(t.type,V({},t.props),r)})):(0,A.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,A.jsx)(u.Cf,{children:(0,A.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,i.X)(t.target).quantity;null==v||v({quantity:Number(r)})},className:(0,a.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",n]]),children:[n&&(0,A.jsx)("div",{className:"pdp-product__out-of-stock__text",children:(0,A.jsx)(u.xv,{id:"PDP.Product.OutOfStock.label"})}),!n&&(0,A.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.Incrementer.label"}),className:"pdp-product__quantity"}),(0,A.jsxs)("div",{className:"pdp-product__buttons",children:[(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,A.jsx)(s.J,{source:p.Z}),disabled:!v||n,"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-cart__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToCart.label"})})}),b&&(0,A.jsx)(l.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,A.jsx)(s.J,{source:d.Z}),size:"medium",onClick:function(){null==b||b()},"aria-label":(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"}),children:(0,A.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:(0,A.jsx)(u.xv,{id:"PDP.Product.AddToWishlist.label"})})})]})]})}),f&&(0,A.jsx)(f.type,V(V({},f.props),{},{className:(0,a.S)([f.props.className,"pdp-product__short_description"])})),h&&(0,A.jsx)(h.type,V(V({},h.props),{},{className:(0,a.S)([h.props.className,"pdp-product__description"])}))]})]}))},U=e(675);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var K=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function tt(){tt=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function s(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),c=new P(o||[]);return n(a,"_invoke",{value:_(t,e,c)}),a}function u(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function d(){}function f(){}function h(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&e.call(y,i)&&(m=y);var v=h.prototype=d.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function w(t,r){function o(n,i,a,c){var l=u(t[n],t,i);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==$(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):r.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return i=i?i.then(n,n):n()}})}function _(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=x(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var l=u(t,r,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.arg)}}}function x(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,x(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=h,n(v,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===f||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new w(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,c,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),l=e.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function rt(t,r,e,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void e(t)}c.done?r(l):Promise.resolve(l).then(n,o)}function et(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function nt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?et(Object(e),!0).forEach((function(r){ot(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):et(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ot(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==$(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var it=function(t){var r,e=t.sku,i=t.hideSku,a=t.onAddToCart,c=t.onAddToWishlist,l=(t.children,t.initialData),s=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,K),u=l,p=null==u?void 0:u.price.regular.amount.value,d=null==u?void 0:u.price.regular.amount.currency,f=null==u?void 0:u.price.final.amount.value,h=null==u?void 0:u.price.final.amount.currency;return(0,A.jsx)("div",nt(nt({},s),{},{children:(0,A.jsx)(J,{title:null==u?void 0:u.name,sku:!i&&(null==u?void 0:u.sku),shortDescription:(null==u?void 0:u.shortDescription)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.shortDescription}}),description:(null==u?void 0:u.description)&&(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:u.description}}),images:null==u||null===(r=u.images)||void 0===r?void 0:r.map((function(t,r){var e=t.label,o=t.url;return(0,A.jsx)(n.E,{alt:e,src:o,width:400},r)})),price:(null==u?void 0:u.price.roles.includes("visible"))&&(0,A.jsx)(o.t,{amount:p,currency:d,variant:p===f?"default":"strikethrough"}),specialPrice:(null==u?void 0:u.price.roles.includes("visible"))&&f!==p&&(0,A.jsx)(o.t,{amount:f,currency:h,variant:"default"}),outOfStock:!(null!=u&&u.inStock),onAddToCart:(null==u?void 0:u.addToCartAllowed)&&function(t){null==a||a(nt({sku:e},t))},onAddToWishlist:c&&function(){null==c||c({sku:e})}})}))};it.getInitialData=function(){var t,r=(t=tt().mark((function t(r){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.sku,t.next=3,(0,U.b)(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){rt(i,n,o,a,c,"next",t)}function c(t){rt(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},202:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-carousel {\n --width: var(--pdp-carousel-width-small);\n --peak: 0%;\n display: grid;\n grid-gap: var(--pdp-carousel-gap);\n scroll-padding: var(--peak);\n width: var(--container-width);\n height: var(--container-height);\n}\n\n.pdp-carousel--peak {\n --peak: 5%;\n}\n\n.pdp-carousel--horizontal {\n grid-auto-columns: var(--width);\n grid-auto-flow: column;\n grid-auto-rows: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n}\n\n.pdp-carousel--vertical {\n grid-auto-columns: 100%;\n grid-auto-flow: row;\n grid-auto-rows: var(--width);\n overflow-x: hidden;\n overflow-y: auto;\n scroll-snap-type: y mandatory;\n}\n\n/* Items */\n.pdp-carousel__item {\n scroll-snap-align: center;\n}\n\n.pdp-carousel__item > * {\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n}\n\n.pdp-carousel__item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n/* Scrollbar */\n.pdp-carousel--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar)::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n@media only screen and (min-width: 768px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-medium);\n }\n}\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n@media only screen and (min-width: 1366px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-large);\n }\n}\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},834:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-gallery-grid {\n display: grid;\n grid-gap: var(--gap);\n grid-template-columns: repeat(1, 1fr);\n grid-auto-rows: max-content;\n}\n\n/* .pdp-gallery-grid__item { } */\n\n.pdp-gallery-grid__item > * {\n height: 100%;\n max-width: 100%;\n min-width: 100%;\n vertical-align: middle;\n width: 100%;\n object-fit: cover;\n}\n\n/* Only One Item */\n.pdp-gallery-grid__item:only-child {\n grid-column: 1 / span 2;\n}\n\n/* Only Two Items */\n.pdp-gallery-grid__item:first-child:nth-last-child(2) {\n grid-column: 1 / span 2;\n grid-row: 1;\n}\n\n.pdp-gallery-grid__item:nth-child(2):last-child {\n grid-column: 1 / 3;\n grid-row: 2;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-gallery-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},330:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(933),o=e.n(n),i=e(476),a=e.n(i)()(o());a.push([t.id,"/* https://cssguidelin.es/#bem-like-naming */\n\n.pdp-product {\n display: grid;\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n margin: 0 var(--grid-1-margins);\n}\n\n.pdp-product__gallery-column {\n display: none;\n}\n\n.pdp-product__content-column {\n grid-column: 1 / span 4;\n}\n\n.pdp-product__header {\n display: grid;\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-medium);\n}\n\n.pdp-product__title {\n color: var(--color-neutral-800);\n font: var(--type-display-3-font);\n letter-spacing: var(--type-display-3-letter-spacing);\n margin: 0;\n}\n\n.pdp-product__sku {\n font: var(--type-body-1-default-font);\n max-width: 600px;\n}\n\n.pdp-product__prices {\n margin-top: var(--spacing-medium);\n}\n\n.pdp-product__out-of-stock__text {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__price-special {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__sku,\n.pdp-product__price-special,\n.pdp-product__out-of-stock__text {\n color: var(--color-neutral-800);\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n\n.pdp-product__buttons {\n grid-column: 1;\n display: grid;\n grid-gap: var(--spacing-small);\n}\n\n.pdp-product__short_description {\n font: var(--type-body-1-strong-font);\n letter-spacing: var(--type-body-1-strong-letter-spacing);\n margin-bottom: var(--spacing-small);\n}\n\n.pdp-product__description {\n font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n\n.pdp-product__short_description p,\n.pdp-product__description p {\n margin: 0;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n grid-row: 1 / 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n position: sticky;\n top: var(--spacing-medium);\n }\n\n .pdp-product__images--carousel {\n display: none;\n }\n\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n grid-template-columns: 1fr auto;\n }\n\n .pdp-product__add-to-wishlist {\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-right: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n }\n\n .pdp-product__add-to-wishlist__label {\n display: none;\n }\n\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const c=a},853:(t,e,n)=>{var o,i;t.exports=(o={Children:()=>r.Children,useMemo:()=>r.useMemo},i={},n.d(i,o),i)},437:(t,r,n)=>{var o,i;t.exports=(o={useCallback:()=>e.useCallback,useContext:()=>e.useContext,useDebugValue:()=>e.useDebugValue,useEffect:()=>e.useEffect,useId:()=>e.useId,useImperativeHandle:()=>e.useImperativeHandle,useLayoutEffect:()=>e.useLayoutEffect,useMemo:()=>e.useMemo,useReducer:()=>e.useReducer,useRef:()=>e.useRef,useState:()=>e.useState},i={},n.d(i,o),i)},142:(t,r,e)=>{var o,i;t.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},i={},e.d(i,o),i)},474:(t,r,e)=>{var n,i;t.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},i={},e.d(i,n),i)}};import i from"../runtime.js";import*as a from"../757.js";i.C(a);import*as c from"../285.js";i.C(c);import*as l from"./ProductDetails.js";i.C(l);var s=(42,i(i.s=42)),u=s.f,p=s.Z;export{u as ProductDetails,p as default};
|
|
2
|
+
import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/event-bus.js";import*as e from"@dropins/elsie/preact-compat.js";import*as n from"@dropins/elsie/preact-hooks.js";import*as o from"@dropins/elsie/preact-jsx-runtime.js";import*as i from"@dropins/elsie/preact.js";export const id=175;export const ids=[175];export const modules={377:(r,e,n)=>{n.d(e,{gX:()=>p,iE:()=>d,XV:()=>u,gO:()=>l,mv:()=>c,yg:()=>s});var o,i,a=(new((o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i).FetchGraphQL)).getMethods(),l=a.setEndpoint,c=a.setFetchGraphQlHeader,u=a.removeFetchGraphQlHeader,s=a.setFetchGraphQlHeaders,p=a.fetchGraphQl,d=a.getConfig},675:(t,r,e)=>{e.d(r,{b:()=>l});var n=e(377);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function 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:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=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 p(t,r,e,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype),l=new k(o||[]);return n(a,"_invoke",{value:j(t,e,l)}),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={};s(y,l,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(L([])));b&&b!==r&&e.call(b,l)&&(y=b);var _=g.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function i(n,a,l,c){var u=d(t[n],t,a);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==o(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,l,c)}),(function(t){i("throw",t,l,c)})):r.resolve(p).then((function(t){s.value=t,l(s)}),(function(t){return i("throw",t,l,c)}))}c(u.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 l=O(a,e);if(l){if(l===f)continue;return l}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=d(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.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 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 P(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 L(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 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:A}}function A(){return{value:void 0,done:!0}}return m.prototype=g,n(_,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,u,"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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(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(_),s(_,u,"Generator"),s(_,l,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,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:L(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 l=t[i](a),c=l.value}catch(t){return void e(t)}l.done?r(c):Promise.resolve(c).then(n,o)}var l=function(){var t,r=(t=i().mark((function t(r){var e,o,a,l,c,u,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.gX)("\n query GET_PRODUCT_DATA($skus: [String]) {\n products(skus: $skus) {\n id\n sku\n name\n shortDescription\n description\n inStock\n addToCartAllowed\n attributes {\n label\n value\n roles\n }\n\n images {\n label\n url\n }\n\n ...on SimpleProductView {\n price {\n regular {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n final {\n adjustments {\n amount \n code\n }\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n }\n",{variables:{skus:[r]}});case 2:return l=t.sent,c=l.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?:/,"")})),null==(s=null==u||null===(a=u.attributes)||void 0===a?void 0:a.filter((function(t){var r=t.roles;return-1!==(null==r?void 0:r.indexOf("visible_in_pdp"))})))||s.map((function(t,r){var e=t.label,n=t.value;return n=n.toString().split(",").join(", "),u.attributes[r]={label:e,value:n}})),t.abrupt("return",u);case 9:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function l(t){a(i,n,o,l,c,"next",t)}function c(t){a(i,n,o,l,c,"throw",t)}l(void 0)}))});return function(t){return r.apply(this,arguments)}}()},42:(t,r,e)=>{e.d(r,{f:()=>ct,Z:()=>ct});var n=e(853),o=e(373),i=e(988),a=e(625),l=e(587),c=e(769),u=e(341),s=e(72),p=e(724),d=e(148),f=e(949),h=e(892),m=e.n(h),g=e(760),y=e.n(g),v=e(311),b=e.n(v),_=e(192),w=e.n(_),x=e(60),j=e.n(x),O=e(865),S=e.n(O),P=e(834),k={};k.styleTagTransform=S(),k.setAttributes=w(),k.insert=b().bind(null,"head"),k.domAPI=y(),k.insertStyleElement=j(),m()(P.Z,k),P.Z&&P.Z.locals&&P.Z.locals;var L=e(188);function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var E=["children","gap","className","style"];function N(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function D(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){T(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 T(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==A(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===A(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var I=function(t){var r=t.children,e=t.gap,o=void 0===e?null:e,i=t.className,a=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,E);return(0,L.jsx)("div",D(D({},c),{},{className:(0,l.S)(["pdp-gallery-grid",i]),style:D({"--gap":o?"var(--spacing-".concat(o,")"):"0px"},a),children:n.Children.map(r,(function(t,r){return(0,L.jsx)("div",{className:"pdp-gallery-grid__item",children:(0,L.jsx)(t.type,D(D({},t.props),{},{loading:0===r?"eager":"lazy"}))},r)}))}))},C=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=S(),G.setAttributes=w(),G.insert=b().bind(null,"head"),G.domAPI=y(),G.insertStyleElement=j(),m()(C.Z,G),C.Z&&C.Z.locals&&C.Z.locals;var F=["show","scrollbar","peak","gap","direction","width","height","className","style","children"];function R(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?R(Object(e),!0).forEach((function(r){X(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):R(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function X(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==Z(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"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,o=t.scrollbar,i=void 0!==o&&o,a=t.peak,c=void 0!==a&&a,u=t.gap,s=void 0===u?null:u,p=t.direction,d=void 0===p?"horizontal":p,f=t.width,h=void 0===f?"100%":f,m=t.height,g=void 0===m?"100%":m,y=t.className,v=t.style,b=t.children,_=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},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),w=n.Children.count(b),x="number"==typeof e?{small:e,medium:e,large:e}:e,j=function(t){return t<1||1===w?"horizontal"===d?h:g:t>=w?"calc((100% / ".concat(w,") "):"calc((100% / ".concat(t,") - var(--pdp-carousel-gap) - var(--peak))")};return(0,L.jsx)("div",M(M({},_),{},{className:(0,l.S)(["pdp-carousel","pdp-carousel--".concat(d),["pdp-carousel--scrollbar",i],["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)}),tabIndex:0,children:n.Children.map(b,(function(t,r){return(0,L.jsx)("div",{className:"pdp-carousel__item",onClick:function(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},tabIndex:0,children:(0,L.jsx)(t.type,M({loading:0===r?"eager":"lazy"},t.props))},r)}))}))},H=e(330),B={};function Q(t){return Q="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},Q(t)}B.styleTagTransform=S(),B.setAttributes=w(),B.insert=b().bind(null,"head"),B.domAPI=y(),B.insertStyleElement=j(),m()(H.Z,B),H.Z&&H.Z.locals&&H.Z.locals;var W=["title","sku","outOfStock","hideSku","shortDescription","description","attributes","images","price","specialPrice","onAddToCart","onAddToWishlist","className","children","AddToCartLabel","AddToWishListLabel","RegularPriceLabel","SpecialPriceLabel","IncrementerLabel","OutOfStockLabel","DetailsLabel","ImagesLabel"];function q(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function 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){U(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 U(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==Q(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Q(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var Y=(0,p.zB)({AddToCartLabel:"PDP.Product.AddToCart.label",AddToWishListLabel:"PDP.Product.AddToWishlist.label",RegularPriceLabel:"PDP.Product.RegularPrice.label",SpecialPriceLabel:"PDP.Product.SpecialPrice.label",IncrementerLabel:"PDP.Product.Incrementer.label",OutOfStockLabel:"PDP.Product.OutOfStock.label",DetailsLabel:"PDP.Product.Details.label",ImagesLabel:"PDP.Product.Image.label"})((function(t){var r=t.title,e=t.sku,n=t.outOfStock,o=t.hideSku,i=t.shortDescription,p=t.description,h=t.attributes,m=t.images,g=t.price,y=t.specialPrice,v=t.onAddToCart,b=t.onAddToWishlist,_=t.className,w=(t.children,t.AddToCartLabel),x=t.AddToWishListLabel,j=t.RegularPriceLabel,O=t.SpecialPriceLabel,S=t.IncrementerLabel,P=t.OutOfStockLabel,k=t.DetailsLabel,A=t.ImagesLabel,E=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},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,L.jsxs)("div",V(V({},E),{},{className:(0,l.S)(["pdp-product",_]),children:[(0,L.jsx)("div",{className:"pdp-product__gallery-column",children:(0,L.jsx)(I,{className:"pdp-product__images",gap:"small",children:null!=m&&m.length?m.map((function(t,e){return(0,L.jsx)(t.type,V(V({},t.props),{},{"aria-label":null==A?void 0:A.replace("{product}",r).replace("{key}",String(e+1)).replace("{total}",String(m.length)),"aria-hidden":n}),e)})):(0,L.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})})}),(0,L.jsxs)("div",{className:"pdp-product__content-column",children:[(0,L.jsxs)("div",{className:"pdp-product__header",children:[(0,L.jsx)("h1",{className:"pdp-product__title",children:r}),!o&&e&&(0,L.jsxs)("div",{className:"pdp-product__sku",children:["SKU: ",e]}),(0,L.jsxs)("div",{className:"pdp-product__prices",children:[g&&(0,L.jsx)(g.type,V(V({},g.props),{},{className:(0,l.S)([g.props.className,"pdp-product__price",["pdp-product__price--grey",y]]),"aria-label":j})),y&&(0,L.jsx)(g.type,V(V({},y.props),{},{className:(0,l.S)([y.props.className,"pdp-product__price-special"]),"aria-label":O}))]})]}),(0,L.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,e){return(0,L.jsx)(t.type,V(V({},t.props),{},{"aria-label":null==A?void 0:A.replace("{product}",r).replace("{key}",String(e+1)).replace("{total}",String(m.length)),"aria-hidden":n}),e)})):(0,L.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",className:"pdp-product__images__placeholder","aria-hidden":!0})}),(0,L.jsxs)("form",{onSubmit:function(t){t.preventDefault();var r=(0,a.X)(t.target).quantity;null==v||v({quantity:Number(r)})},className:(0,l.S)(["pdp-product__actions",["pdp-product__actions--out-of-stock",n]]),children:[n&&(0,L.jsx)("div",{className:"pdp-product__out-of-stock__text",children:P}),!n&&(0,L.jsx)(c.u,{name:"quantity",value:"1",min:0,disabled:n,"aria-label":S,className:"pdp-product__quantity"}),(0,L.jsxs)("div",{className:"pdp-product__buttons",children:[(0,L.jsx)(u.z,{className:"pdp-product__button pdp-product__add-to-cart",size:"medium",type:"submit",icon:(0,L.jsx)(s.J,{source:d.Z}),disabled:!v||n,"aria-label":w,children:(0,L.jsx)("span",{className:"pdp-product__add-to-cart__label",children:w})}),b&&(0,L.jsx)(u.z,{className:"pdp-product__button pdp-product__add-to-wishlist",type:"button",variant:"secondary",icon:(0,L.jsx)(s.J,{source:f.Z}),size:"medium",onClick:function(){null==b||b()},"aria-label":x,children:(0,L.jsx)("span",{className:"pdp-product__add-to-wishlist__label",children:x})})]})]}),i&&(0,L.jsx)(i.type,V(V({},i.props),{},{className:(0,l.S)([i.props.className,"pdp-product__short_description"])})),p&&(0,L.jsx)(p.type,V(V({},p.props),{},{className:(0,l.S)([p.props.className,"pdp-product__description"])})),null!=h&&h.length?(0,L.jsxs)("div",{className:"pdp-product__attributes",children:[k,(0,L.jsx)("ul",{children:h.map((function(t,r){return(0,L.jsx)(t.type,V({},t.props),r)}))})]}):null]})]}))})),$=e(675),J=e(765);function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}var tt=["sku","hideSku","onAddToCart","onAddToWishlist","children","initialData"];function rt(){rt=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function u(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),l=new S(o||[]);return n(a,"_invoke",{value:w(t,e,l)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function d(){}function f(){}function h(){}var m={};c(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){c(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,r){function o(n,i,a,l){var c=s(t[n],t,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==K(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,a,l)}),(function(t){o("throw",t,a,l)})):r.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return i=i?i.then(n,n):n()}})}function w(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var l=x(a,e);if(l){if(l===p)continue;return l}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function 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=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function 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 S(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:k}}function k(){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=c(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===f||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,l,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(u(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),c(v,l,"Generator"),c(v,i,(function(){return this})),c(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,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:P(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function et(t,r,e,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void e(t)}l.done?r(c):Promise.resolve(c).then(n,o)}function nt(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function ot(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?nt(Object(e),!0).forEach((function(r){it(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):nt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function it(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==K(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===K(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function at(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return lt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?lt(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var ct=function(t){var r,e,a=t.sku,l=t.hideSku,c=t.onAddToCart,u=t.onAddToWishlist,s=(t.children,t.initialData),p=function(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},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,tt),d=at((0,n.useState)(),2),f=d[0],h=void 0===f?s:f,m=d[1],g=at((0,n.useState)("en_US"),2),y=g[0],v=g[1],b=null==h?void 0:h.price.regular.amount.value,_=null==h?void 0:h.price.regular.amount.currency,w=null==h?void 0:h.price.final.amount.value,x=null==h?void 0:h.price.final.amount.currency;(0,n.useEffect)((function(){var t=J.events.on("locale",(function(t){v(t),(0,$.b)(a).then((function(t){m(t)}))}));return function(){null==t||t.off()}}),[a]);var j=y.replace("_","-"),O=null==h||null===(r=h.attributes)||void 0===r?void 0:r.map((function(t,r){var e=t.label,n=t.value;return n=isNaN(n)&&!isNaN(Date.parse(n))?-1!==n.indexOf("00:00:00")?new Date(n).toLocaleDateString(j):new Date(n).toLocaleString(j):n.toString(),(0,L.jsxs)("li",{children:[e,": ",(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})]},r)}));return(0,L.jsx)("div",ot(ot({},p),{},{children:(0,L.jsx)(Y,{title:null==h?void 0:h.name,sku:!l&&(null==h?void 0:h.sku),shortDescription:(null==h?void 0:h.shortDescription)&&(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:h.shortDescription}}),description:(null==h?void 0:h.description)&&(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:h.description}}),images:null==h||null===(e=h.images)||void 0===e?void 0:e.map((function(t,r){var e=t.label,n=t.url;return(0,L.jsx)(o.E,{title:n,alt:e,src:n,params:{width:960}},r)})),price:(null==h?void 0:h.price.roles.includes("visible"))&&(0,L.jsx)(i.t,{amount:b,currency:_,locale:j,variant:b===w?"default":"strikethrough"}),specialPrice:(null==h?void 0:h.price.roles.includes("visible"))&&w!==b&&(0,L.jsx)(i.t,{amount:w,currency:x,variant:"default"}),outOfStock:!(null!=h&&h.inStock),onAddToCart:(null==h?void 0:h.addToCartAllowed)&&function(t){null==c||c(ot({sku:a},t))},onAddToWishlist:u&&function(){null==u||u({sku:a})},attributes:O})}))};ct.getInitialData=function(){var t,r=(t=rt().mark((function t(r){var e;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.sku,t.next=3,(0,$.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){et(i,n,o,a,l,"next",t)}function l(t){et(i,n,o,a,l,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},202:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(933),o=e.n(n),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: contain;\n}\n\n/* Scrollbar */\n.pdp-carousel--scrollbar {\n --scroll-foreground: var(--color-neutral-600);\n --scroll-background: var(--color-neutral-400);\n scrollbar-color: var(--scroll-foreground) var(--scroll-background);\n scrollbar-width: thin;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar) {\n scrollbar-width: none;\n}\n\n.pdp-carousel:not(.pdp-carousel--scrollbar)::-webkit-scrollbar {\n display: none;\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar {\n width: 4px; /* Mostly for vertical scrollbars */\n height: 4px; /* Mostly for horizontal scrollbars */\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-thumb {\n background: var(--scroll-foreground);\n}\n\n.pdp-carousel--scrollbar::-webkit-scrollbar-track {\n background: var(--scroll-background);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n@media only screen and (min-width: 768px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-medium);\n }\n}\n\n/* Large (landscape tablets, 1024px and up) */\n/* @media only screen and (min-width: 1024px) { } */\n\n/* XLarge (laptops/desktops, 1366px and up) */\n@media only screen and (min-width: 1366px) {\n .pdp-carousel {\n --width: var(--pdp-carousel-width-large);\n }\n}\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=a},834:(t,r,e)=>{e.d(r,{Z:()=>l});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: contain;\n}\n\n/* Only One Item */\n.pdp-gallery-grid__item:only-child {\n grid-column: 1 / span 2;\n}\n\n/* Only Two Items */\n.pdp-gallery-grid__item:first-child:nth-last-child(2) {\n grid-column: 1 / span 2;\n grid-row: 1;\n}\n\n.pdp-gallery-grid__item:nth-child(2):last-child {\n grid-column: 1 / 3;\n grid-row: 2;\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-gallery-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=a},330:(t,r,e)=>{e.d(r,{Z:()=>l});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 color: var(--color-neutral-800);\n}\n\n.pdp-product__header {\n display: grid;\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-medium);\n}\n\n.pdp-product__title {\n font: var(--type-display-3-font);\n letter-spacing: var(--type-display-3-letter-spacing);\n margin: 0;\n}\n\n.pdp-product__sku {\n font: var(--type-body-1-default-font);\n max-width: 600px;\n}\n\n.pdp-product__prices {\n margin-top: var(--spacing-medium);\n}\n\n.pdp-product__out-of-stock__text {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__price-special {\n font: var(--type-headline-2-strong-font);\n}\n\n.pdp-product__price,\n.pdp-product__sku,\n.pdp-product__price-special,\n.pdp-product__out-of-stock__text {\n letter-spacing: var(--type-headline-2-strong-letter-spacing);\n}\n\n.pdp-product__price-special {\n margin-left: var(--spacing-xsmall);\n}\n\n.pdp-product__price--grey {\n color: var(--color-neutral-500);\n}\n\n.pdp-product__actions,\n.pdp-product__actions--out-of-stock {\n display: grid;\n grid-auto-flow: row;\n gap: var(--grid-1-gutters);\n grid-auto-rows: max-content;\n margin-bottom: var(--spacing-xxbig);\n margin-top: var(--spacing-big);\n}\n\n.pdp-product__buttons {\n grid-column: 1;\n display: grid;\n grid-gap: var(--spacing-small);\n}\n\n.pdp-product__short_description,\n.pdp-product__attributes {\n font: var(--type-body-1-strong-font);\n letter-spacing: var(--type-body-1-strong-letter-spacing);\n margin-bottom: var(--spacing-small);\n}\n\n.pdp-product__description,\n.pdp-product__attributes li {\n font: var(--type-body-1-default-font);\n letter-spacing: var(--type-body-1-default-letter-spacing);\n}\n\n.pdp-product__attributes {\n margin-top: var(--spacing-xsmall);\n}\n\n.pdp-product__short_description p,\n.pdp-product__description p,\n.pdp-product__attributes li p {\n margin: 0;\n}\n\n.pdp-product__short_description figure,\n.pdp-product__description figure {\n margin: 0;\n}\n\n.pdp-product__short_description img,\n.pdp-product__description img {\n max-width: 100%;\n}\n\n.pdp-product__images--carousel {\n width: 100%;\n height: 60vh;\n}\n\n.pdp-product__images__placeholder {\n background-color: var(--color-neutral-200);\n}\n\n/* Medium (portrait tablets and large phones, 768px and up) */\n/* @media only screen and (min-width: 768px) { } */\n\n/* Large (landscape tablets, 1024px and up) */\n@media only screen and (min-width: 1024px) {\n .pdp-product {\n grid-template-columns: repeat(var(--grid-3-columns), 1fr);\n grid-column-gap: var(--grid-3-gutters);\n margin: 0 var(--grid-3-margins);\n }\n\n .pdp-product__gallery-column {\n display: block;\n grid-column: 2 / span 6;\n grid-row: 1 / 6;\n }\n\n .pdp-product__content-column {\n grid-column: 8 / span 4;\n position: sticky;\n top: 0;\n padding-top: var(--spacing-medium);\n }\n\n .pdp-product__images--carousel {\n display: none;\n }\n\n .pdp-product__header {\n margin-bottom: var(--spacing-small);\n }\n\n .pdp-product__actions {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-xxbig);\n }\n\n .pdp-product__actions--out-of-stock {\n grid-template-columns: repeat(var(--grid-1-columns), 1fr);\n grid-column-gap: var(--grid-1-gutters);\n grid-row-gap: var(--spacing-xxbig);\n margin-top: var(--spacing-small);\n }\n\n .pdp-product__buttons {\n grid-column: 1 / span 4;\n grid-template-columns: 1fr auto;\n }\n\n .pdp-product__add-to-wishlist {\n padding-left: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n padding-right: calc(var(--spacing-xsmall) - var(--shape-border-width-2));\n }\n\n .pdp-product__add-to-wishlist__label {\n display: none;\n }\n\n .pdp-product__out-of-stock__text {\n grid-column: 1 / span 2;\n }\n}\n\n/* XLarge (laptops/desktops, 1366px and up) */\n/* @media only screen and (min-width: 1366px) { } */\n\n/* XXlarge (large laptops and desktops, 1920px and up) */\n/* @media only screen and (min-width: 1920px) { } */\n",""]);const l=a},765:(t,e,n)=>{var o,i;t.exports=(o={events:()=>r.events},i={},n.d(i,o),i)},853:(t,r,n)=>{var o,i;t.exports=(o={Children:()=>e.Children,useEffect:()=>e.useEffect,useMemo:()=>e.useMemo,useState:()=>e.useState},i={},n.d(i,o),i)},437:(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)},142:(t,r,e)=>{var n,i;t.exports=(n={jsx:()=>o.jsx,jsxs:()=>o.jsxs},i={},e.d(i,n),i)},474:(t,r,e)=>{var n,o;t.exports=(n={Component:()=>i.Component,Fragment:()=>i.Fragment,cloneElement:()=>i.cloneElement,createContext:()=>i.createContext,createElement:()=>i.createElement,createRef:()=>i.createRef,h:()=>i.h,hydrate:()=>i.hydrate,options:()=>i.options,render:()=>i.render,toChildArray:()=>i.toChildArray},o={},e.d(o,n),o)}};import a from"../runtime.js";import*as l from"../757.js";a.C(l);import*as c from"../285.js";a.C(c);import*as u from"./ProductDetails.js";a.C(u);var s=(42,a(a.s=42)),p=s.f,d=s.Z;export{p as ProductDetails,d 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-alpha12", "dependencies": { "@dropins/elsie": "0.4.0-beta41" } }
|
package/render.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see render.js.LICENSE.txt */
|
|
2
|
-
import*as e from"@dropins/elsie/event-bus.js";import*as t from"@dropins/elsie/preact-compat.js";import*as r from"@dropins/elsie/preact-hooks.js";import*as n from"@dropins/elsie/preact-jsx-runtime.js";import*as o from"@dropins/elsie/preact.js";export const id=70;export const ids=[70];export const modules={188:(t,r,n)=>{n.d(r,{s:()=>Oe});var o=n(474),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(220);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(437),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},853:(e,r,n)=>{var o,a;e.exports=(o={Children:()=>t.Children,useMemo:()=>t.useMemo},a={},n.d(a,o),a)},437:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},142:(e,t,r)=>{var o,a;e.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},a={},r.d(a,o),a)},474:(e,t,r)=>{var n,a;e.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},a={},r.d(a,n),a)},770:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"AddToWishlist":{"label":"Add to Wishlist"}}}}')}};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=(188,a(a.s=188)).s;export{s as render};
|
|
2
|
+
import*as e from"@dropins/elsie/event-bus.js";import*as t from"@dropins/elsie/preact-compat.js";import*as r from"@dropins/elsie/preact-hooks.js";import*as n from"@dropins/elsie/preact-jsx-runtime.js";import*as o from"@dropins/elsie/preact.js";export const id=70;export const ids=[70];export const modules={597:(e,t,r)=>{r.d(t,{s:()=>we});var n=r(474),o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,a=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i=/[\s\n\\/='"\0<>]/,l=/^xlink:?./,s=/["&<]/;function c(e){if(!1===s.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o=""";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 u=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},f=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},p={},d=/([A-Z])/g;function y(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:p[r]||(p[r]=r.replace(d,"-$1").toLowerCase()),t="number"==typeof n&&!1===o.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function m(e,t){return Array.isArray(t)?t.reduce(m,e):null!=t&&!1!==t&&e.push(t),e}function v(){this.__d=!0}function h(e,t){return{__v:e,context:t,props:e.props,setState:v,forceUpdate:v,__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 g=[];function x(e,t,r,o,s,p){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);var d=r.pretty,v=d&&"string"==typeof d?d:"\t";if(Array.isArray(e)){for(var _="",w=0;w<e.length;w++)d&&w>0&&(_+="\n"),_+=x(e[w],t,r,o,s,p);return _}if(void 0!==e.constructor)return"";var O,j=e.type,S=e.props,A=!1;if("function"==typeof j){if(A=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(j===n.Fragment){var k=[];return m(k,e.props.children),x(k,t,r,!1!==r.shallowHighOrder,s,p)}var E,P=e.__c=h(e,t);n.options.__b&&n.options.__b(e);var L=n.options.__r;if(j.prototype&&"function"==typeof j.prototype.render){var C=b(j,t);(P=e.__c=new j(S,C)).__v=e,P._dirty=P.__d=!0,P.props=S,null==P.state&&(P.state={}),null==P._nextState&&null==P.__s&&(P._nextState=P.__s=P.state),P.context=C,j.getDerivedStateFromProps?P.state=Object.assign({},P.state,j.getDerivedStateFromProps(P.props,P.state)):P.componentWillMount&&(P.componentWillMount(),P.state=P._nextState!==P.state?P._nextState:P.__s!==P.state?P.__s:P.state),L&&L(e),E=P.render(P.props,P.state,P.context)}else for(var D=b(j,t),I=0;P.__d&&I++<25;)P.__d=!1,L&&L(e),E=j.call(e.__c,S,D);return P.getChildContext&&(t=Object.assign({},t,P.getChildContext())),n.options.diffed&&n.options.diffed(e),x(E,t,r,!1!==r.shallowHighOrder,s,p)}j=(O=j).displayName||O!==Function&&O.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=g.length;n--;)if(g[n]===e){r=n;break}r<0&&(r=g.push(e)-1),t="UnnamedComponent"+r}return t}(O)}var M,F,T="<"+j;if(S){var N=Object.keys(S);r&&!0===r.sortAttributes&&N.sort();for(var R=0;R<N.length;R++){var H=N[R],Z=S[H];if("children"!==H){if(!i.test(H)&&(r&&r.allAttributes||"key"!==H&&"ref"!==H&&"__self"!==H&&"__source"!==H)){if("defaultValue"===H)H="value";else if("defaultChecked"===H)H="checked";else if("defaultSelected"===H)H="selected";else if("className"===H){if(void 0!==S.class)continue;H="class"}else s&&l.test(H)&&(H=H.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===H){if(S.for)continue;H="for"}"style"===H&&Z&&"object"==typeof Z&&(Z=y(Z)),"a"===H[0]&&"r"===H[1]&&"boolean"==typeof Z&&(Z=String(Z));var G=r.attributeHook&&r.attributeHook(H,Z,t,r,A);if(G||""===G)T+=G;else if("dangerouslySetInnerHTML"===H)F=Z&&Z.__html;else if("textarea"===j&&"value"===H)M=Z;else if((Z||0===Z||""===Z)&&"function"!=typeof Z){if(!(!0!==Z&&""!==Z||(Z=H,r&&r.xml))){T=T+" "+H;continue}if("value"===H){if("select"===j){p=Z;continue}"option"===j&&p==Z&&void 0===S.selected&&(T+=" selected")}T=T+" "+H+'="'+c(Z)+'"'}}}else M=Z}}if(d){var U=T.replace(/\n\s*/," ");U===T||~U.indexOf("\n")?d&&~T.indexOf("\n")&&(T+="\n"):T=U}if(T+=">",i.test(j))throw new Error(j+" is not a valid HTML tag name in "+T);var $,W=a.test(j)||r.voidElements&&r.voidElements.test(j),Q=[];if(F)d&&f(F)&&(F="\n"+v+u(F,v)),T+=F;else if(null!=M&&m($=[],M).length){for(var z=d&&~T.indexOf("\n"),J=!1,B=0;B<$.length;B++){var V=$[B];if(null!=V&&!1!==V){var q=x(V,t,r,!0,"svg"===j||"foreignObject"!==j&&s,p);if(d&&!z&&f(q)&&(z=!0),q)if(d){var Y=q.length>0&&"<"!=q[0];J&&Y?Q[Q.length-1]+=q:Q.push(q),J=Y}else Q.push(q)}}if(d&&z)for(var K=Q.length;K--;)Q[K]="\n"+v+u(Q[K],v)}if(Q.length||F)T+=Q.join("");else if(r&&r.xml)return T.substring(0,T.length-1)+" />";return!W||$||F?(d&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+j+">"):T=T.replace(/>$/," />"),T}var _={shallow:!0};O.render=O;var w=[];function O(e,t,r){t=t||{};var o=n.options.__s;n.options.__s=!0;var a,i=(0,n.h)(n.Fragment,null);return i.__k=[e],a=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?x(e,t,r):P(e,t,!1,void 0,i),n.options.__c&&n.options.__c(e,w),n.options.__s=o,w.length=0,a}function j(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,n.h)(null,null,e):e}function S(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function A(e,t){return"style"===e&&null!=t&&"object"==typeof t?y(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var k=Array.isArray,E=Object.assign;function P(e,t,r,o,l){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);if(k(e)){var s="";l.__k=e;for(var u=0;u<e.length;u++)s+=P(e[u],t,r,o,l),e[u]=j(e[u]);return s}if(void 0!==e.constructor)return"";e.__=l,n.options.__b&&n.options.__b(e);var f=e.type,p=e.props;if("function"==typeof f){var d;if(f===n.Fragment)d=p.children;else{d=f.prototype&&"function"==typeof f.prototype.render?function(e,t){var r=e.type,o=b(r,t),a=new r(e.props,o);e.__c=a,a.__v=e,a.__d=!0,a.props=e.props,null==a.state&&(a.state={}),null==a.__s&&(a.__s=a.state),a.context=o,r.getDerivedStateFromProps?a.state=E({},a.state,r.getDerivedStateFromProps(a.props,a.state)):a.componentWillMount&&(a.componentWillMount(),a.state=a.__s!==a.state?a.__s:a.state);var i=n.options.__r;return i&&i(e),a.render(a.props,a.state,a.context)}(e,t):function(e,t){var r,o=h(e,t),a=b(e.type,t);e.__c=o;for(var i=n.options.__r,l=0;o.__d&&l++<25;)o.__d=!1,i&&i(e),r=e.type.call(o,e.props,a);return r}(e,t);var y=e.__c;y.getChildContext&&(t=E({},t,y.getChildContext()))}var m=P(d=null!=d&&d.type===n.Fragment&&null==d.key?d.props.children:d,t,r,o,e);return n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),m}var v,g,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||i.test(_)))if(w=A(_=S(_,r),w),"dangerouslySetInnerHTML"===_)g=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){o=w;continue}"option"!==f||o!=w||"selected"in p||(x+=" selected")}x=x+" "+_+'="'+c(w)+'"'}}var O=x;if(x+=">",i.test(f))throw new Error(f+" is not a valid HTML tag name in "+x);var L="",C=!1;if(g)L+=g,C=!0;else if("string"==typeof v)L+=c(v),C=!0;else if(k(v)){e.__k=v;for(var D=0;D<v.length;D++){var I=v[D];if(v[D]=j(I),null!=I&&!1!==I){var M=P(I,t,"svg"===f||"foreignObject"!==f&&r,o,e);M&&(L+=M,C=!0)}}}else if(null!=v&&!1!==v&&!0!==v){e.__k=[j(v)];var F=P(v,t,"svg"===f||"foreignObject"!==f&&r,o,e);F&&(L+=F,C=!0)}if(n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),C)x+=L;else if(a.test(f))return O+" />";return x+"</"+f+">"}O.shallowRender=function(e,t){return O(e,t,_)};const L=O;var C=r(188);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function I(){I=function(){return 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 b=y.prototype=p.prototype=Object.create(m);function g(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"==D(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(b,"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(b),e},e.awrap=function(e){return{__await:e}},g(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()}))},g(b),s(b,l,"Generator"),s(b,a,(function(){return this})),s(b,"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 M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=Z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(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){N(a,n,o,i,l,"next",e)}function l(e){N(a,n,o,i,l,"throw",e)}i(void 0)}))}}function H(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,Z(n.key),n)}}function Z(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===D(t)?t:String(t)}var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}var t,r,o;return t=e,r=[{key:"render",value:function(e,t){var r=this;return function(){var o=R(I().mark((function o(a){var i,l,s;return I().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e){o.next=2;break}throw new Error("Component is not defined");case 2:if(a){o.next=4;break}throw new Error("Root element is not defined");case 4:return o.next=6,null===(l=e.getInitialData)||void 0===l?void 0:l.call(e,t);case 6:if(o.t1=i=o.sent,o.t0=null!==o.t1,!o.t0){o.next=10;break}o.t0=void 0!==i;case 10:if(!o.t0){o.next=14;break}o.t2=i,o.next=15;break;case 14:o.t2={};case 15:s=o.t2,(0,n.render)((0,C.jsx)(r._provider.type,F(F({},r._provider.props),{},{children:(0,C.jsx)(e,F(F({},t),{},{initialData:s}))})),a);case 17:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()}},{key:"toString",value:(o=R(I().mark((function e(t,r,n){var o,a,i;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("Component is not defined");case 2:return e.next=4,null===(a=t.getInitialData)||void 0===a?void 0:a.call(t,r);case 4:if(e.t1=o=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==o;case 8:if(!e.t0){e.next=12;break}e.t2=o,e.next=13;break;case 12:e.t2={};case 13:return i=e.t2,e.abrupt("return",L((0,C.jsx)(this._provider.type,F(F({},this._provider.props),{},{children:(0,C.jsx)(t,F(F({},r),{},{initialData:i}))})),{},F({},n)));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return o.apply(this,arguments)})}],r&&H(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=r(437),$=r(857),W=r.n($),Q=r(587);const z=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 B=r(724),V={default:z,en_US:z,fr_FR:J},q=r(892),Y=r.n(q),K=r(760),X=r.n(K),ee=r(311),te=r.n(ee),re=r(192),ne=r.n(re),oe=r(60),ae=r.n(oe),ie=r(865),le=r.n(ie),se=r(80),ce={};ce.styleTagTransform=le(),ce.setAttributes=ne(),ce.insert=te().bind(null,"head"),ce.domAPI=X(),ce.insertStyleElement=ae(),Y()(se.Z,ce),se.Z&&se.Z.locals&&se.Z.locals;var ue=r(763),fe={};function pe(e){return pe="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},pe(e)}fe.styleTagTransform=le(),fe.setAttributes=ne(),fe.insert=te().bind(null,"head"),fe.domAPI=X(),fe.insertStyleElement=ae(),Y()(ue.Z,fe),ue.Z&&ue.Z.locals&&ue.Z.locals;var de=["lang","langDefinitions","className","children"];function ye(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 me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==pe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=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,de),c=W()(a.default,null!==(t=a[n])&&void 0!==t?t:{}),u=W()(function(e){return W()(V.default,V[e]||{})}(n),c);return(0,C.jsx)(B.Pj,{definition:u,children:(0,C.jsx)("div",me(me({},s),{},{className:(0,Q.S)(["elsie-base-design",i]),children:l}))})},be=r(765);function ge(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 xe={default:r(770),en_US:r(770),fr_FR:r(842)},_e=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 ge(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)?ge(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)}),{eager:!0});return function(){e.off()}}),[]),(0,C.jsx)(he,{lang:n,langDefinitions:xe,children:t})},we=new G((0,C.jsx)(_e,{}))},80:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,"/**\n * Do not edit directly\n * Generated on Fri, 14 Jul 2023 19:01:45 GMT\n */\n\n.elsie-base-design {\n --color-brand-500: #454545; /* Brand buttons default - AAA */\n --color-brand-600: #383838; /* Brand buttons on hover - AAA */\n --color-brand-700: #2b2b2b; /* Brand buttons selected */\n --color-neutral-50: #ffffff; /* Lightest surface / Text & components On Dark surface - AAA */\n --color-neutral-100: #fafafa; /* Light surface - AAA */\n --color-neutral-200: #f5f5f5; /* Light surface - AAA */\n --color-neutral-300: #e8e8e8; /* Disabled surfaces - AAA */\n --color-neutral-400: #d6d6d6; /* Ornamental elements (ie. Divider) */\n --color-neutral-500: #b8b8b8; /* Disabled text */\n --color-neutral-600: #8f8f8f; /* Component borders (ie. Text field border) - AA Large text */\n --color-neutral-700: #666666; /* Secondary text - AAA */\n --color-neutral-800: #3d3d3d; /* Default text - AAA */\n --color-neutral-900: #292929; /* Default text on hover - AAA */\n --color-positive-200: #eff5ef; /* Semantic positive surface - AA Large text */\n --color-positive-500: #7fb078; /* Semantic positive surface */\n --color-positive-800: #53824c; /* Semantic Positive text - On Light AA */\n --color-informational-200: #eeeffb; /* Semantic informational surface - AA Large text */\n --color-informational-500: #6978d9; /* Semantic informational surface */\n --color-informational-800: #5d6dd6; /* Semantic informational text, Highlights - On Light AA */\n --color-warning-200: #fdf3e9; /* Semantic warning surface - AA Large text */\n --color-warning-500: #e79f5c; /* Semantic warning surface */\n --color-warning-800: #cc7a2e; /* Semantic warning text - On Light AA */\n --color-alert-200: #ffebeb; /* Semantic alert surface - AA Large text */\n --color-alert-500: #db7070; /* Semantic alert surface */\n --color-alert-800: #c35050; /* Semantic alert text - On light AA */\n --color-opacity-16: rgba(255, 255, 255, 0.16);\n --color-opacity-24: rgba(255, 255, 255, 0.24);\n --grid-1-columns: 4;\n --grid-1-margins: 0;\n --grid-1-gutters: 16px;\n --grid-2-columns: 12;\n --grid-2-margins: 0;\n --grid-2-gutters: 16px;\n --grid-3-columns: 12;\n --grid-3-margins: 0;\n --grid-3-gutters: 24px;\n --grid-4-columns: 12;\n --grid-4-margins: 0;\n --grid-4-gutters: 24px;\n --grid-5-columns: 12;\n --grid-5-margins: 0;\n --grid-5-gutters: 24px;\n --shape-border-radius-1: 3px;\n --shape-border-radius-2: 8px;\n --shape-border-radius-3: 24px;\n --shape-border-width-1: 1px;\n --shape-border-width-2: 1.5px;\n --shape-border-width-3: 2px;\n --shape-border-width-4: 4px;\n --shape-shadow-1: 0 0 16px 0 rgba(0, 0, 0, 0.16); /* Elevated panels (ie. Page side panel, Mobile bottom bar) */\n --shape-shadow-2: 0 2px 16px 0 rgba(0, 0, 0, 0.16); /* Elevated dialogs (ie. Modal) */\n --shape-shadow-3: 0 2px 3px 0 rgba(0, 0, 0, 0.16); /* Elevated container (ie. Card) */\n --shape-icon-stroke-1: 1px;\n --shape-icon-stroke-2: 1.5px;\n --shape-icon-stroke-3: 2px;\n --shape-icon-stroke-4: 4px;\n --spacing-xxsmall: 4px;\n --spacing-xsmall: 8px;\n --spacing-small: 16px;\n --spacing-medium: 24px;\n --spacing-big: 32px;\n --spacing-xbig: 40px;\n --spacing-xxbig: 48px;\n --spacing-large: 64px;\n --spacing-xlarge: 72px;\n --spacing-xxlarge: 96px;\n --spacing-huge: 120px;\n --spacing-xhuge: 144px;\n --spacing-xxhuge: 192px;\n --type-base-font-family: system-ui, sans-serif;\n --type-display-1-font: normal normal 300 60px/72px\n var(--type-base-font-family); /* Hero title */\n --type-display-1-letter-spacing: 0.04em;\n --type-display-2-font: normal normal 300 48px/56px\n var(--type-base-font-family); /* Banner title */\n --type-display-2-letter-spacing: 0.04em;\n --type-display-3-font: normal normal 300 34px/40px\n var(--type-base-font-family); /* Desktop & tablet section title */\n --type-display-3-letter-spacing: 0.04em;\n --type-headline-1-font: normal normal 400 24px/32px\n var(--type-base-font-family); /* Desktop & tablet page title */\n --type-headline-1-letter-spacing: 0.04em;\n --type-headline-2-default-font: normal normal 300 20px/24px\n var(--type-base-font-family); /* Rail title */\n --type-headline-2-default-letter-spacing: 0.04em;\n --type-headline-2-strong-font: normal normal 400 20px/24px\n var(--type-base-font-family); /* Mobile page and section title */\n --type-headline-2-strong-letter-spacing: 0.04em;\n --type-body-1-default-font: normal normal 300 16px/24px\n var(--type-base-font-family); /* Normal text paragraph */\n --type-body-1-default-letter-spacing: 0.04em;\n --type-body-1-strong-font: normal normal 400 16px/24px\n var(--type-base-font-family);\n --type-body-1-strong-letter-spacing: 0.04em;\n --type-body-1-emphasized-font: normal normal 700 16px/24px\n var(--type-base-font-family);\n --type-body-1-emphasized-letter-spacing: 0.04em;\n --type-body-2-default-font: normal normal 300 14px/20px\n var(--type-base-font-family);\n --type-body-2-default-letter-spacing: 0.04em;\n --type-body-2-strong-font: normal normal 400 14px/20px\n var(--type-base-font-family);\n --type-body-2-strong-letter-spacing: 0.04em;\n --type-body-2-emphasized-font: normal normal 700 14px/20px\n var(--type-base-font-family);\n --type-body-2-emphasized-letter-spacing: 0.04em;\n --type-button-1-font: normal normal 400 20px/26px var(--type-base-font-family); /* Primary button text */\n --type-button-1-letter-spacing: 0.08em;\n --type-button-2-font: normal normal 400 16px/24px var(--type-base-font-family); /* Small buttons */\n --type-button-2-letter-spacing: 0.08em;\n --type-details-caption-1-font: normal normal 400 12px/16px\n var(--type-base-font-family);\n --type-details-caption-1-letter-spacing: 0.08em;\n --type-details-caption-2-font: normal normal 300 12px/16px\n var(--type-base-font-family);\n --type-details-caption-2-letter-spacing: 0.08em;\n --type-details-overline-font: normal normal 700 12px/20px\n var(--type-base-font-family);\n --type-details-overline-letter-spacing: 0.16em;\n}\n",""]);const l=i},763:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(933),o=r.n(n),a=r(476),i=r.n(a)()(o());i.push([e.id,".elsie-base-design a {\n --textColor: var(--color-brand-500);\n --textFont: var(--type-body-1-strong-font)\n --textLetterSpacing: var(--type-body-1-strong-letter-spacing);\n color: var(--textColor);\n font: var(--textFont);\n letter-spacing: var(--textLetterSpacing);\n text-decoration: none;\n}\n\n.elsie-base-design a:hover {\n --textColor: var(--color-brand-700);\n text-decoration: solid underline var(--textColor);\n text-underline-offset: 6px;\n}\n\n.elsie-base-design a:focus-visible {\n outline: solid var(--shape-border-width-4) var(--color-neutral-400);\n border: var(--shape-border-width-1) solid var(--color-neutral-800); \n border-radius: var(--shape-border-radius-1);\n}\n",""]);const l=i},857:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var o={};return r.isMergeableObject(e)&&a(e).forEach((function(t){o[t]=n(e[t],r)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):o[a]=n(t[a],r))})),o}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},765:(t,r,n)=>{var o,a;t.exports=(o={events:()=>e.events},a={},n.d(a,o),a)},853:(e,r,n)=>{var o,a;e.exports=(o={Children:()=>t.Children,useEffect:()=>t.useEffect,useMemo:()=>t.useMemo,useState:()=>t.useState},a={},n.d(a,o),a)},437:(e,t,n)=>{var o,a;e.exports=(o={useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useEffect:()=>r.useEffect,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState},a={},n.d(a,o),a)},142:(e,t,r)=>{var o,a;e.exports=(o={jsx:()=>n.jsx,jsxs:()=>n.jsxs},a={},r.d(a,o),a)},474:(e,t,r)=>{var n,a;e.exports=(n={Component:()=>o.Component,Fragment:()=>o.Fragment,cloneElement:()=>o.cloneElement,createContext:()=>o.createContext,createElement:()=>o.createElement,createRef:()=>o.createRef,h:()=>o.h,hydrate:()=>o.hydrate,options:()=>o.options,render:()=>o.render,toChildArray:()=>o.toChildArray},a={},r.d(a,n),a)},770:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Item Quantity"},"OutOfStock":{"label":"Out of Stock"},"AddToCart":{"label":"Add to Cart"},"AddToWishlist":{"label":"Add to Wishlist"},"Details":{"label":"Details"},"RegularPrice":{"label":"Regular Price"},"SpecialPrice":{"label":"Special Price"},"Image":{"label":"{product} Image {key} of {total}"}}}}')},842:e=>{e.exports=JSON.parse('{"PDP":{"Product":{"Incrementer":{"label":"Quantité D\'articles"},"OutOfStock":{"label":"Rupture de stock"},"AddToCart":{"label":"Ajouter au Panier"},"AddToWishlist":{"label":"Ajouter à la Liste de Souhaits"},"Details":{"label":"Détails"},"RegularPrice":{"label":"Prix habituel"},"SpecialPrice":{"label":"Prix spécial"},"Image":{"label":"{produit} Image {clé} de {totale}"}}}}')}};import a from"./runtime.js";import*as i from"./757.js";a.C(i);import*as l from"./render.js";a.C(l);var s=(597,a(a.s=597)).s;export{s as render};
|