1var jr=Object.defineProperty;var xr=(t,u,d)=>u in t?jr(t,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):t[u]=d;var Be=(t,u,d)=>xr(t,typeof u!="symbol"?u+"":u,d);import{au as X,r as W,j as e,L as Z,M as ie,ai as dt,m as q,w as Oe,ay as je,Q as be,av as Lr,a as Ge,b as Ar,N as ft,dM as Nr,dN as Ir,dO as Rr,dP as Tr,dQ as Br,dR as Dr,dS as Pr,a6 as wr,dT as Fr}from"./index-CFfBb8Jv.js";import{h as Ce,s as Mr}from"./helpApi-CoGjhapi.js";import{A as Kr}from"./AccentHeader-Ct1iRnhb.js";import{M as Hr}from"./MetaData-BJbolifP.js";import{c as kr}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{a as Gr,A as Je}from"./AccordionSection-Dckj1ptB.js";import{o as Ur}from"./omit-D8Wh_Cu-.js";import{S as qr}from"./Select-BlDxVGhE.js";import{i as $r}from"./isEmpty-Dl2Glcon.js";import"./canonicalUrl-BNp-ah6G.js";import"./open-filled-DLluRHIY.js";import"./_getAllKeysIn-DzZAJZ0H.js";import"./last-vjcX6_Ev.js";import"./_baseSlice-z0Zd1-Ev.js";var Ue={};(function(t){var u=W,d=function(){return d=Object.assign||function(L){for(var G,b=1,te=arguments.length;b<te;b++){G=arguments[b];for(var ne in G)Object.prototype.hasOwnProperty.call(G,ne)&&(L[ne]=G[ne])}return L},d.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof X<"u"?X:typeof self<"u"?self:{},f={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.BLOCKS=void 0;var i;(function(c){c.DOCUMENT="document",c.PARAGRAPH="paragraph",c.HEADING_1="heading-1",c.HEADING_2="heading-2",c.HEADING_3="heading-3",c.HEADING_4="heading-4",c.HEADING_5="heading-5",c.HEADING_6="heading-6",c.OL_LIST="ordered-list",c.UL_LIST="unordered-list",c.LIST_ITEM="list-item",c.HR="hr",c.QUOTE="blockquote",c.EMBEDDED_ENTRY="embedded-entry-block",c.EMBEDDED_ASSET="embedded-asset-block",c.EMBEDDED_RESOURCE="embedded-resource-block",c.TABLE="table",c.TABLE_ROW="table-row",c.TABLE_CELL="table-cell",c.TABLE_HEADER_CELL="table-header-cell"})(i||(s.BLOCKS=i={}));var n={};Object.defineProperty(n,"__esModule",{value:!0}),n.INLINES=void 0;var o;(function(c){c.ASSET_HYPERLINK="asset-hyperlink",c.EMBEDDED_ENTRY="embedded-entry-inline",c.EMBEDDED_RESOURCE="embedded-resource-inline",c.ENTRY_HYPERLINK="entry-hyperlink",c.HYPERLINK="hyperlink",c.RESOURCE_HYPERLINK="resource-hyperlink"})(o||(n.INLINES=o={}));var l={};Object.defineProperty(l,"__esModule",{value:!0}),l.MARKS=void 0;var v;(function(c){c.BOLD="bold",c.ITALIC="italic",c.UNDERLINE="underline",c.CODE="code",c.SUPERSCRIPT="superscript",c.SUBSCRIPT="subscript",c.STRIKETHROUGH="strikethrough"})(v||(l.MARKS=v={}));var C={};(function(c){var L=a&&a.__spreadArray||function(J,Q,ce){if(ce||arguments.length===2)for(var ae=0,oe=Q.length,U;ae<oe;ae++)(U||!(ae in Q))&&(U||(U=Array.prototype.slice.call(Q,0,ae)),U[ae]=Q[ae]);return J.concat(U||Array.prototype.slice.call(Q))},G;Object.defineProperty(c,"__esModule",{value:!0}),c.V1_MARKS=c.V1_NODE_TYPES=c.TEXT_CONTAINERS=c.HEADINGS=c.CONTAINERS=c.VOID_BLOCKS=c.TABLE_BLOCKS=c.LIST_ITEM_BLOCKS=c.TOP_LEVEL_BLOCKS=void 0;var b=s,te=n,ne=l;c.TOP_LEVEL_BLOCKS=[b.BLOCKS.PARAGRAPH,b.BLOCKS.HEADING_1,b.BLOCKS.HEADING_2,b.BLOCKS.HEADING_3,b.BLOCKS.HEADING_4,b.BLOCKS.HEADING_5,b.BLOCKS.HEADING_6,b.BLOCKS.OL_LIST,b.BLOCKS.UL_LIST,b.BLOCKS.HR,b.BLOCKS.QUOTE,b.BLOCKS.EMBEDDED_ENTRY,b.BLOCKS.EMBEDDED_ASSET,b.BLOCKS.EMBEDDED_RESOURCE,b.BLOCKS.TABLE],c.LIST_ITEM_BLOCKS=[b.BLOCKS.PARAGRAPH,b.BLOCKS.HEADING_1,b.BLOCKS.HEADING_2,b.BLOCKS.HEADING_3,b.BLOCKS.HEADING_4,b.BLOCKS.HEADING_5,b.BLOCKS.HEADING_6,b.BLOCKS.OL_LIST,b.BLOCKS.UL_LIST,b.BLOCKS.HR,b.BLOCKS.QUOTE,b.BLOCKS.EMBEDDED_ENTRY,b.BLOCKS.EMBEDDED_ASSET,b.BLOCKS.EMBEDDED_RESOURCE],c.TABLE_BLOCKS=[b.BLOCKS.TABLE,b.BLOCKS.TABLE_ROW,b.BLOCKS.TABLE_CELL,b.BLOCKS.TABLE_HEADER_CELL],c.VOID_BLOCKS=[b.BLOCKS.HR,b.BLOCKS.EMBEDDED_ENTRY,b.BLOCKS.EMBEDDED_ASSET,b.BLOCKS.EMBEDDED_RESOURCE],c.CONTAINERS=(G={},G[b.BLOCKS.OL_LIST]=[b.BLOCKS.LIST_ITEM],G[b.BLOCKS.UL_LIST]=[b.BLOCKS.LIST_ITEM],G[b.BLOCKS.LIST_ITEM]=c.LIST_ITEM_BLOCKS,G[b.BLOCKS.QUOTE]=[b.BLOCKS.PARAGRAPH],G[b.BLOCKS.TABLE]=[b.BLOCKS.TABLE_ROW],G[b.BLOCKS.TABLE_ROW]=[b.BLOCKS.TABLE_CELL,b.BLOCKS.TABLE_HEADER_CELL],G[b.BLOCKS.TABLE_CELL]=[b.BLOCKS.PARAGRAPH,b.BLOCKS.UL_LIST,b.BLOCKS.OL_LIST],G[b.BLOCKS.TABLE_HEADER_CELL]=[b.BLOCKS.PARAGRAPH],G),c.HEADINGS=[b.BLOCKS.HEADING_1,b.BLOCKS.HEADING_2,b.BLOCKS.HEADING_3,b.BLOCKS.HEADING_4,b.BLOCKS.HEADING_5,b.BLOCKS.HEADING_6],c.TEXT_CONTAINERS=L([b.BLOCKS.PARAGRAPH],c.HEADINGS,!0),c.V1_NODE_TYPES=[b.BLOCKS.DOCUMENT,b.BLOCKS.PARAGRAPH,b.BLOCKS.HEADING_1,b.BLOCKS.HEADING_2,b.BLOCKS.HEADING_3,b.BLOCKS.HEADING_4,b.BLOCKS.HEADING_5,b.BLOCKS.HEADING_6,b.BLOCKS.OL_LIST,b.BLOCKS.UL_LIST,b.BLOCKS.LIST_ITEM,b.BLOCKS.HR,b.BLOCKS.QUOTE,b.BLOCKS.EMBEDDED_ENTRY,b.BLOCKS.EMBEDDED_ASSET,te.INLINES.HYPERLINK,te.INLINES.ENTRY_HYPERLINK,te.INLINES.ASSET_HYPERLINK,te.INLINES.EMBEDDED_ENTRY,"text"],c.V1_MARKS=[ne.MARKS.BOLD,ne.MARKS.CODE,ne.MARKS.ITALIC,ne.MARKS.UNDERLINE]})(C);var j={};Object.defineProperty(j,"__esModule",{value:!0});var B={};Object.defineProperty(B,"__esModule",{value:!0});var x={};Object.defineProperty(x,"__esModule",{value:!0}),x.EMPTY_DOCUMENT=void 0;var D=s;x.EMPTY_DOCUMENT={nodeType:D.BLOCKS.DOCUMENT,data:{},content:[{nodeType:D.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var g={};
1Object.defineProperty(g,"__esModule",{value:!0}),g.isInline=E,g.isBlock=M,g.isText=k;var y=s,N=n;function I(c,L){for(var G=0,b=Object.keys(c);G<b.length;G++){var te=b[G];if(L===c[te])return!0}return!1}function E(c){return I(N.INLINES,c.nodeType)}function M(c){return I(y.BLOCKS,c.nodeType)}function k(c){return c.nodeType==="text"}function _(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.getSchemaWithNodeType=T;function T(c){try{return _("./generated/".concat(c,".json"))}catch{throw new Error('Schema for nodeType "'.concat(c,'" was not found.'))}}(function(c){var L=a&&a.__createBinding||(Object.create?function(U,re,z,ue){ue===void 0&&(ue=z);var pe=Object.getOwnPropertyDescriptor(re,z);(!pe||("get"in pe?!re.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return re[z]}}),Object.defineProperty(U,ue,pe)}:function(U,re,z,ue){ue===void 0&&(ue=z),U[ue]=re[z]}),G=a&&a.__setModuleDefault||(Object.create?function(U,re){Object.defineProperty(U,"default",{enumerable:!0,value:re})}:function(U,re){U.default=re}),b=a&&a.__exportStar||function(U,re){for(var z in U)z!=="default"&&!Object.prototype.hasOwnProperty.call(re,z)&&L(re,U,z)},te=a&&a.__importStar||function(U){if(U&&U.__esModule)return U;var re={};if(U!=null)for(var z in U)z!=="default"&&Object.prototype.hasOwnProperty.call(U,z)&&L(re,U,z);return G(re,U),re};Object.defineProperty(c,"__esModule",{value:!0}),c.getSchemaWithNodeType=c.helpers=c.EMPTY_DOCUMENT=c.MARKS=c.INLINES=c.BLOCKS=void 0;var ne=s;Object.defineProperty(c,"BLOCKS",{enumerable:!0,get:function(){return ne.BLOCKS}});var J=n;Object.defineProperty(c,"INLINES",{enumerable:!0,get:function(){return J.INLINES}});var Q=l;Object.defineProperty(c,"MARKS",{enumerable:!0,get:function(){return Q.MARKS}}),b(C,c),b(j,c),b(B,c);var ce=x;Object.defineProperty(c,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return ce.EMPTY_DOCUMENT}});var ae=te(g);c.helpers=ae;var oe=h;Object.defineProperty(c,"getSchemaWithNodeType",{enumerable:!0,get:function(){return oe.getSchemaWithNodeType}})})(f);function R(c,L){return u.isValidElement(c)&&c.key===null?u.cloneElement(c,{key:L}):c}function m(c,L){return c.map(function(G,b){return R(A(G,L),b)})}function A(c,L){var G=L.renderNode,b=L.renderMark,te=L.renderText,ne=L.preserveWhitespace;if(f.helpers.isText(c)){var J=te?te(c.value):c.value;if(ne&&!te){J=J.replace(/ {2,}/g,function(oe){return"Â ".repeat(oe.length)});var Q=J.split(` 2`),ce=[];Q.forEach(function(oe,U){ce.push(oe),U!==Q.length-1&&ce.push(u.createElement("br",null))}),J=ce}return c.marks.reduce(function(oe,U){return b[U.type]?b[U.type](oe):oe},J)}else{var ae=m(c.content,L);return!c.nodeType||!G[c.nodeType]?u.createElement(u.Fragment,null,ae):G[c.nodeType](c,ae)}}var O,P,K=(O={},O[f.BLOCKS.DOCUMENT]=function(c,L){return L},O[f.BLOCKS.PARAGRAPH]=function(c,L){return u.createElement("p",null,L)},O[f.BLOCKS.HEADING_1]=function(c,L){return u.createElement("h1",null,L)},O[f.BLOCKS.HEADING_2]=function(c,L){return u.createElement("h2",null,L)},O[f.BLOCKS.HEADING_3]=function(c,L){return u.createElement("h3",null,L)},O[f.BLOCKS.HEADING_4]=function(c,L){return u.createElement("h4",null,L)},O[f.BLOCKS.HEADING_5]=function(c,L){return u.createElement("h5",null,L)},O[f.BLOCKS.HEADING_6]=function(c,L){return u.createElement("h6",null,L)},O[f.BLOCKS.EMBEDDED_ENTRY]=function(c,L){return u.createElement("div",null,L)},O[f.BLOCKS.EMBEDDED_RESOURCE]=function(c,L){return u.createElement("div",null,L)},O[f.BLOCKS.UL_LIST]=function(c,L){return u.createElement("ul",null,L)},O[f.BLOCKS.OL_LIST]=function(c,L){return u.createElement("ol",null,L)},O[f.BLOCKS.LIST_ITEM]=function(c,L){return u.createElement("li",null,L)},O[f.BLOCKS.QUOTE]=function(c,L){return u.createElement("blockquote",null,L)},O[f.BLOCKS.HR]=function(){return u.createElement("hr",null)},O[f.BLOCKS.TABLE]=function(c,L){return u.createElement("table",null,u.createElement("tbody",null,L))},O[f.BLOCKS.TABLE_ROW]=function(c,L){return u.createElement("tr",null,L)},O[f.BLOCKS.TABLE_HEADER_CELL]=function(c,L){return u.createElement("th",
2null,L)},O[f.BLOCKS.TABLE_CELL]=function(c,L){return u.createElement("td",null,L)},O[f.INLINES.ASSET_HYPERLINK]=function(c){return he(f.INLINES.ASSET_HYPERLINK,c)},O[f.INLINES.ENTRY_HYPERLINK]=function(c){return he(f.INLINES.ENTRY_HYPERLINK,c)},O[f.INLINES.RESOURCE_HYPERLINK]=function(c){return me(f.INLINES.RESOURCE_HYPERLINK,c)},O[f.INLINES.EMBEDDED_ENTRY]=function(c){return he(f.INLINES.EMBEDDED_ENTRY,c)},O[f.INLINES.EMBEDDED_RESOURCE]=function(c,L){return me(f.INLINES.EMBEDDED_RESOURCE,c)},O[f.INLINES.HYPERLINK]=function(c,L){return u.createElement("a",{href:c.data.uri},L)},O),H=(P={},P[f.MARKS.BOLD]=function(c){return u.createElement("b",null,c)},P[f.MARKS.ITALIC]=function(c){return u.createElement("i",null,c)},P[f.MARKS.UNDERLINE]=function(c){return u.createElement("u",null,c)},P[f.MARKS.CODE]=function(c){return u.createElement("code",null,c)},P[f.MARKS.SUPERSCRIPT]=function(c){return u.createElement("sup",null,c)},P[f.MARKS.SUBSCRIPT]=function(c){return u.createElement("sub",null,c)},P[f.MARKS.STRIKETHROUGH]=function(c){return u.createElement("s",null,c)},P);function he(c,L){return u.createElement("span",{key:L.data.target.sys.id},"type: ",L.nodeType," id: ",L.data.target.sys.id)}function me(c,L){return u.createElement("span",{key:L.data.target.sys.urn},"type: ",L.nodeType," urn: ",L.data.target.sys.urn)}function ye(c,L){return L===void 0&&(L={}),c?A(c,{renderNode:d(d({},K),L.renderNode),renderMark:d(d({},H),L.renderMark),renderText:L.renderText,preserveWhitespace:L.preserveWhitespace}):null}t.documentToReactComponents=ye})(Ue);var fe={},Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.BLOCKS=void 0;var et;(function(t){t.DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell"})(et||(Ee.BLOCKS=et={}));var Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.INLINES=void 0;var tt;(function(t){t.ASSET_HYPERLINK="asset-hyperlink",t.EMBEDDED_ENTRY="embedded-entry-inline",t.EMBEDDED_RESOURCE="embedded-resource-inline",t.ENTRY_HYPERLINK="entry-hyperlink",t.HYPERLINK="hyperlink",t.RESOURCE_HYPERLINK="resource-hyperlink"})(tt||(Se.INLINES=tt={}));var xe={};Object.defineProperty(xe,"__esModule",{value:!0});xe.MARKS=void 0;var rt;(function(t){t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CODE="code",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.STRIKETHROUGH="strikethrough"})(rt||(xe.MARKS=rt={}));var pt={};(function(t){var u=X&&X.__spreadArray||function(i,n,o){if(o||arguments.length===2)for(var l=0,v=n.length,C;l<v;l++)(C||!(l in n))&&(C||(C=Array.prototype.slice.call(n,0,l)),C[l]=n[l]);return i.concat(C||Array.prototype.slice.call(n))},d;Object.defineProperty(t,"__esModule",{value:!0}),t.V1_MARKS=t.V1_NODE_TYPES=t.TEXT_CONTAINERS=t.HEADINGS=t.CONTAINERS=t.VOID_BLOCKS=t.TABLE_BLOCKS=t.LIST_ITEM_BLOCKS=t.TOP_LEVEL_BLOCKS=void 0;var a=Ee,f=Se,s=xe;t.TOP_LEVEL_BLOCKS=[a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE,a.BLOCKS.TABLE],t.LIST_ITEM_BLOCKS=[a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE],t.TABLE_BLOCKS=[a.BLOCKS.TABLE,a.BLOCKS.TABLE_ROW,a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],t.VOID_BLOCKS=[a.BLOCKS.HR,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE],t.CONTAINERS=(d={},d[a.BLOCKS.OL_LIST]=[a.BLOCKS.LIST_ITEM],d[a.BLOCKS.UL_LIST]=[a.BLOCKS.LIST_ITEM],d[a.BLOCKS.LIST_ITEM]=t.LIST_ITEM_BLOCKS,d[a.BLOCKS.QUOTE]=[a.BLOCKS.PARAGRAPH],d[a.BLOCKS.TABLE]=[a.BLOCKS.TABLE_ROW],d[a.BLOCKS.TABLE_ROW]=[a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],d[a.BLOCKS.TABLE_CELL]=[a.BLOCKS.PARAGRAPH,a.BLOCKS.UL_LIST,a.BLOCKS.OL_LIST],d[a.BLOCKS.TABLE_HEADER_CELL]=[a.BLOCKS.PARAGRAPH],d),t.HEADINGS=[a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6],t.TEXT_CONTAINERS=u([a.BLOCKS.PARAGRAPH],t.HEADINGS,!0),t.V1_NODE_TYPES=[a.BLOCKS.DOCUMENT,a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.LIST_ITEM,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,f.INLINES.HYPERLINK,f.INLINES.ENTRY_HYPERLINK,f.INLINES.ASSET_HYPERLINK,f.INLINES.EMBEDDED_ENTRY,"text"],t.V1_MARKS=[s.MARKS.BOLD,s.MARKS.CODE,s.MARKS.ITALIC,s.MARKS.UNDERLINE]})(pt);var ht={};
2Object.defineProperty(ht,"__esModule",{value:!0});var mt={};Object.defineProperty(mt,"__esModule",{value:!0});var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.EMPTY_DOCUMENT=void 0;var nt=Ee;Pe.EMPTY_DOCUMENT={nodeType:nt.BLOCKS.DOCUMENT,data:{},content:[{nodeType:nt.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var Le={};Object.defineProperty(Le,"__esModule",{value:!0});Le.isInline=Wr;Le.isBlock=Qr;Le.isText=zr;var Yr=Ee,Vr=Se;function yt(t,u){for(var d=0,a=Object.keys(t);d<a.length;d++){var f=a[d];if(u===t[f])return!0}return!1}function Wr(t){return yt(Vr.INLINES,t.nodeType)}function Qr(t){return yt(Yr.BLOCKS,t.nodeType)}function zr(t){return t.nodeType==="text"}var qe={};Object.defineProperty(qe,"__esModule",{value:!0});qe.getSchemaWithNodeType=Xr;function Xr(t){try{return kr("./generated/".concat(t,".json"))}catch{throw new Error('Schema for nodeType "'.concat(t,'" was not found.'))}}(function(t){var u=X&&X.__createBinding||(Object.create?function(C,j,B,x){x===void 0&&(x=B);var D=Object.getOwnPropertyDescriptor(j,B);(!D||("get"in D?!j.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return j[B]}}),Object.defineProperty(C,x,D)}:function(C,j,B,x){x===void 0&&(x=B),C[x]=j[B]}),d=X&&X.__setModuleDefault||(Object.create?function(C,j){Object.defineProperty(C,"default",{enumerable:!0,value:j})}:function(C,j){C.default=j}),a=X&&X.__exportStar||function(C,j){for(var B in C)B!=="default"&&!Object.prototype.hasOwnProperty.call(j,B)&&u(j,C,B)},f=X&&X.__importStar||function(C){if(C&&C.__esModule)return C;var j={};if(C!=null)for(var B in C)B!=="default"&&Object.prototype.hasOwnProperty.call(C,B)&&u(j,C,B);return d(j,C),j};Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaWithNodeType=t.helpers=t.EMPTY_DOCUMENT=t.MARKS=t.INLINES=t.BLOCKS=void 0;var s=Ee;Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return s.BLOCKS}});var i=Se;Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return i.INLINES}});var n=xe;Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return n.MARKS}}),a(pt,t),a(ht,t),a(mt,t);var o=Pe;Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return o.EMPTY_DOCUMENT}});var l=f(Le);t.helpers=l;var v=qe;Object.defineProperty(t,"getSchemaWithNodeType",{enumerable:!0,get:function(){return v.getSchemaWithNodeType}})})(fe);const bt=()=>{const[t,u]=W.useState(""),[d,a]=W.useState(!1);W.useEffect(()=>{f()},[d]);const f=()=>{Ce.getPeakMessage().then(s=>{s&&s.messageActive&&(u(s.message),a(!0))})};return d?e.jsx("p",{className:"peak-messaging",children:t}):null},Zr=()=>{const[t,u]=ie.useState(""),[d,a]=ie.useState(!0),[f,s]=ie.useState([]);W.useEffect(()=>{Ce.getAllArticles().then(v=>{s(v),a(!1)})},[]);const i=v=>{u(t===n(v)?"":n(v))},n=v=>{const C="à áâäæãåÄÄÄ
çÄÄÄÄèéêëÄÄÄÄÄǵḧîïÃīįìÅḿñÅǹÅôöòóÅøÅõá¹ÅÅÃÅÅ¡ÅÈÅ¥ÈûüùúūÇůűųáºáºÃ¿Ã½Å¾ÅºÅ¼Â·/_,:;",j="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnooooooooprrsssssttuuuuuuuuuwxyyzzz------",B=new RegExp(C.split("").join("|"),"g");return v.toString().toLowerCase().replace(/\s+/g,"-").replace(B,x=>j.charAt(C.indexOf(x))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},o=f||[],l={renderMark:{[fe.MARKS.BOLD]:v=>e.jsx("strong",{children:v}),[fe.MARKS.UNDERLINE]:v=>e.jsx("u",{children:v}),[fe.MARKS.ITALIC]:v=>e.jsx("i",{children:v})},renderNode:{[fe.BLOCKS.EMBEDDED_ASSET]:v=>{const{file:C,title:j}=v.data.target.fields;return e.jsx("img",{src:`${C.url}?fl=progressive&q=70`,alt:j,width:"100%"})}}};return e.jsxs("div",{className:"accordionContainer",children:[e.jsx(bt,{}),e.jsxs("div",{className:"accordion",children:[d&&e.jsx(dt,{}),o.map((v,C)=>e.jsx(Gr,{children:e.jsx(Je,{title:v.sectionName,clickAction:()=>{i(v.sectionName)},children:v.articles.map((j,B)=>e.jsx("span",{className:"sub-accordion",children:e.jsx(Je,{title:j.title,"aria-expanded":!1,role:"region","aria-labelledby":`article-${v.sectionName}-${B}`,children:e.jsx("div",{id:`article-${v.sectionName}-${B}`,children:Ue.documentToReactComponents(j.content,l)})})},B))})},C))]})]})},Jr=Z("helpPage")(Zr),en=({title:t,titleId:u,...d},a)=>
2W.createElement("svg",{height:36,viewBox:"0 0 36 36",width:36,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":u,...d},t?W.createElement("title",{id:u},t):null,W.createElement("path",{d:"m23.036 9c-.833 0-1.653.149-2.438.444l-.535.202-.098.562-.742 4.229-.206 1.173h1.192.463l-2.324 5.349-.252-2.541-.09-.901h-.906-1.346l.921-6.719.095-.7-.628-.324c-.979-.506-2.078-.774-3.178-.774-3.84 0-6.964 3.143-6.964 7.006 0 .79.13 1.566.387 2.307l.044.126.095.276.23.181 10.624 8.389.62.489.62-.489 10.624-8.389.229-.181.096-.276.044-.126c.257-.741.387-1.517.387-2.307 0-3.863-3.124-7.006-6.964-7.006zm0 1c3.288 0 5.964 2.694 5.964 6.006 0 .679-.111 1.344-.332 1.979l-.043.126-10.625 8.389-10.625-8.389-.043-.126c-.221-.635-.332-1.3-.332-1.979 0-3.312 2.676-6.006 5.964-6.006.967 0 1.894.235 2.719.662l-1.075 7.855h2.492l.632 6.368 4.464-10.275h-1.987l.74-4.23c.656-.246 1.36-.38 2.087-.38z",fillRule:"evenodd"})),tn=W.forwardRef(en),Et=({t})=>e.jsxs("div",{className:"address sidebar-section",children:[e.jsxs("h3",{children:[e.jsx(tn,{}),t("mail")]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Beauty Bay Ltd."}),e.jsx("br",{}),"Level 12",e.jsx("br",{}),"5 Exchange Quay",e.jsx("br",{}),"Manchester",e.jsx("br",{}),"M5 3EF",e.jsx("br",{}),"England"]})]});Et.propTypes={t:q.func.isRequired};const rn=Z("helpPage")(Et),nn=({title:t,titleId:u,...d},a)=>W.createElement("svg",{height:36,viewBox:"0 0 36 36",width:36,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":u,...d},t?W.createElement("title",{id:u},t):null,W.createElement("path",{d:"m24.9228852 6v8.3076284c1.5230652 0 2.7692095 1.2461443 2.7692095 2.7692095s-1.2461443 2.7692094-2.7692095 2.7692094v8.3076284l-11.0768379-5.5384189h-2.6072107c.0359997 3.0295152.9830694 5.8596472 2.6072107 8.3076284h-5.53703429c-1.62275675-2.4507504-2.5725956-5.2794978-2.60859532-8.3076284h-.16199875c-3.04613042 0-5.53841894-2.4922885-5.53841894-5.5384189s2.49228852-5.538419 5.53841894-5.538419h8.30762836zm6.50515 3.31418989.9830693-.98168476c2.2181368 2.24859807 3.5888955 5.33626667 3.5888955 8.74377887 0 3.2724639-1.2655835 6.2449471-3.3274674 8.4680305l-.2323514.2439025-.9816847-.9830693c1.9495234-1.9966001 3.1568988-4.7228868 3.1568988-7.7288637 0-2.9050072-1.1278077-5.550145-2.9636832-7.5279827l-.2236769-.23411141.9830693-.98168476zm-2.9396543 2.93965431.9844539-.984454c1.467681 1.4981424 2.3732125 3.5459728 2.3732125 5.8070323 0 2.1388846-.8125526 4.0856201-2.1398355 5.5567368l-.2029157.2170649-.9858385-.9858385c1.1976831-1.2447597 1.943985-2.9270544 1.943985-4.7879632 0-1.7719095-.6743281-3.3857347-1.7745369-4.6105244l-.1985248-.2120539.9844539-.984454z",fillRule:"evenodd"})),an=W.forwardRef(nn);var on=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i,_t=/(\[[^\[\]]*\])/g;function cn(t,u){typeof u!="object"?u={hash:!!u}:u.hash===void 0&&(u.hash=!0);for(var d=u.hash?{}:"",a=u.serializer||(u.hash?un:dn),f=t&&t.elements?t.elements:[],s=Object.create(null),i=0;i<f.length;++i){var n=f[i];if(!(!u.disabled&&n.disabled||!n.name)&&!(!sn.test(n.nodeName)||on.test(n.type))){var o=n.name,l=n.value;if((n.type==="checkbox"||n.type==="radio")&&!n.checked&&(l=void 0),u.empty){if(n.type==="checkbox"&&!n.checked&&(l=""),n.type==="radio"&&(!s[n.name]&&!n.checked?s[n.name]=!1:n.checked&&(s[n.name]=!0)),l==null&&n.type=="radio")continue}else if(!l)continue;if(n.type==="select-multiple"){l=[];for(var v=n.options,C=!1,j=0;j<v.length;++j){var B=v[j],x=u.empty&&!B.value,D=B.value||x;B.selected&&D&&(C=!0,u.hash&&o.slice(o.length-2)!=="[]"?d=a(d,o+"[]",B.value):d=a(d,o,B.value))}!C&&u.empty&&(d=a(d,o,""));continue}d=a(d,o,l)}}if(u.empty)for(var o in s)s[o]||(d=a(d,o,""));return d}function ln(t){var u=[],d=/^([^\[\]]*)/,a=new RegExp(_t),f=d.exec(t);for(f[1]&&u.push(f[1]);(f=a.exec(t))!==null;)u.push(f[1]);return u}function ve(t,u,d){if(u.length===0)return t=d,t;var a=u.shift(),f=a.match(/^\[(.+?)\]$/);if(a==="[]")return t=t||[],Array.isArray(t)?t.push(ve(null,u,d)):(t._values=t._values||[],t._values.push(ve(null,u,d))),t;if(!f)t[a]=ve(t[a],u,d);else{var s=f[1],i=+s;isNaN(i)?(t=t||{},t[s]=ve(t[s],u,d)):(t=t||[],t[i]=ve(t[i],u,d))}return t}function un(t,u,d){var a=u.match(_t);if(a){var f=ln(u);ve(t,f,d)}else{var s=t[u];s?(Array.isArray(s)||(t[u]=[s]),t[u].push(d)):t[u]=d}return t}function dn(t,u,d){return d=d.replace(/(\r)?\n/g,`\r 3`),d=encodeURIComponent(d),d=d.replace(/%20/g,"+"),t+(t?"&":"")+encodeURIComponent(u)+"="+d}var fn=cn;const pn=Oe(fn);var gt={exports:{}};(function(t,u){(function(d,a){t.exports=a(W,je)}
3)(X,function(d,a){return function(f){function s(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return f[n].call(o.exports,o,o.exports,s),o.l=!0,o.exports}var i={};return s.m=f,s.c=i,s.d=function(n,o,l){s.o(n,o)||Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:l})},s.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return s.d(o,"a",o),o},s.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},s.p="/",s(s.s=15)}({0:function(f,s){f.exports=d},1:function(f,s){f.exports=a},15:function(f,s,i){function n(x,D){var g={};for(var y in x)D.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y]);return g}Object.defineProperty(s,"__esModule",{value:!0});var o=i(0),l=i.n(o),v=i(1),C=i.n(v),j=i(9),B=function(x){var D=x.hasErrors,g=n(x,["hasErrors"]);return l.a.createElement("button",Object.assign({},g,{disabled:D}))};B.contextTypes={hasErrors:C.a.bool},s.default=Object(j.a)(B)},9:function(f,s,i){function n(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function o(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?g:y}function l(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}function v(g){var y,N;return N=y=function(I){function E(){return n(this,E),o(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return l(E,I),D(E,[{key:"shouldComponentUpdate",value:function(M,k,_){return _._errors!==this.context._errors}},{key:"render",value:function(){var M=!!Object.keys(this.context._errors).length;return j.a.createElement(g,Object.assign({},this.props,{hasErrors:M}))}}]),E}(C.Component),y.contextTypes={_errors:x.a.arrayOf(x.a.oneOfType([x.a.object,x.a.string]))},y.displayName="Button("+g.name+")",N}s.a=v;var C=i(0),j=i.n(C),B=i(1),x=i.n(B),D=function(){function g(y,N){for(var I=0;I<N.length;I++){var E=N[I];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,N,I){return N&&g(y.prototype,N),I&&g(y,I),y}}()}})})})(gt);var hn=gt.exports;const mn=Oe(hn);var vt={exports:{}},Me,at;function yn(){if(at)return Me;at=1;var t=200,u="__lodash_hash_undefined__",d=9007199254740991,a="[object Arguments]",f="[object Function]",s="[object GeneratorFunction]",i="[object Symbol]",n=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,v=typeof X=="object"&&X&&X.Object===Object&&X,C=typeof self=="object"&&self&&self.Object===Object&&self,j=v||C||Function("return this")();function B(r,p,S){switch(S.length){case 0:return r.call(p);case 1:return r.call(p,S[0]);case 2:return r.call(p,S[0],S[1]);case 3:return r.call(p,S[0],S[1],S[2])}return r.apply(p,S)}function x(r,p){var S=r?r.length:0;return!!S&&N(r,p,0)>-1}function D(r,p){for(var S=-1,w=r?r.length:0,V=Array(w);++S<w;)V[S]=p(r[S],S,r);return V}function g(r,p){for(var S=-1,w=p.length,V=r.length;++S<w;)r[V+S]=p[S];return r}function y(r,p,S,w){for(var V=r.length,ee=S+-1;++ee<V;)if(p(r[ee],ee,r))return ee;return-1}function N(r,p,S){if(p!==p)return y(r,I,S);for(var w=S-1,V=r.length;++w<V;)if(r[w]===p)return w;return-1}function I(r){return r!==r}function E(r,p){for(var S=-1,w=Array(r);++S<r;)w[S]=p(S);return w}function M(r,p){return r.has(p)}function k(r,p){return r==null?void 0:r[p]}function _(r){var p=!1;if(r!=null&&typeof r.toString!="function")try{p=!!(r+"")}catch{}return p}function h(r,p){return function(S){return r(p(S))}}var T=Array.prototype,R=Function.prototype,m=Object.prototype,A=j["__core-js_shared__"],O=function(){var r=
3/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),P=R.toString,K=m.hasOwnProperty,H=m.toString,he=RegExp("^"+P.call(K).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=j.Symbol,ye=h(Object.getPrototypeOf,Object),c=m.propertyIsEnumerable,L=T.splice,G=me?me.isConcatSpreadable:void 0,b=Object.getOwnPropertySymbols,te=Math.max,ne=Ye(j,"Map"),J=Ye(Object,"create");function Q(r){var p=-1,S=r?r.length:0;for(this.clear();++p<S;){var w=r[p];this.set(w[0],w[1])}}function ce(){this.__data__=J?J(null):{}}function ae(r){return this.has(r)&&delete this.__data__[r]}function oe(r){var p=this.__data__;if(J){var S=p[r];return S===u?void 0:S}return K.call(p,r)?p[r]:void 0}function U(r){var p=this.__data__;return J?p[r]!==void 0:K.call(p,r)}function re(r,p){var S=this.__data__;return S[r]=J&&p===void 0?u:p,this}Q.prototype.clear=ce,Q.prototype.delete=ae,Q.prototype.get=oe,Q.prototype.has=U,Q.prototype.set=re;function z(r){var p=-1,S=r?r.length:0;for(this.clear();++p<S;){var w=r[p];this.set(w[0],w[1])}}function ue(){this.__data__=[]}function pe(r){var p=this.__data__,S=Ne(p,r);if(S<0)return!1;var w=p.length-1;return S==w?p.pop():L.call(p,S,1),!0}function Gt(r){var p=this.__data__,S=Ne(p,r);return S<0?void 0:p[S][1]}function Ut(r){return Ne(this.__data__,r)>-1}function qt(r,p){var S=this.__data__,w=Ne(S,r);return w<0?S.push([r,p]):S[w][1]=p,this}z.prototype.clear=ue,z.prototype.delete=pe,z.prototype.get=Gt,z.prototype.has=Ut,z.prototype.set=qt;function _e(r){var p=-1,S=r?r.length:0;for(this.clear();++p<S;){var w=r[p];this.set(w[0],w[1])}}function $t(){this.__data__={hash:new Q,map:new(ne||z),string:new Q}}function Yt(r){return Ie(this,r).delete(r)}function Vt(r){return Ie(this,r).get(r)}function Wt(r){return Ie(this,r).has(r)}function Qt(r,p){return Ie(this,r).set(r,p),this}_e.prototype.clear=$t,_e.prototype.delete=Yt,_e.prototype.get=Vt,_e.prototype.has=Wt,_e.prototype.set=Qt;function Ae(r){var p=-1,S=r?r.length:0;for(this.__data__=new _e;++p<S;)this.add(r[p])}function zt(r){return this.__data__.set(r,u),this}function Xt(r){return this.__data__.has(r)}Ae.prototype.add=Ae.prototype.push=zt,Ae.prototype.has=Xt;function Zt(r,p){var S=we(r)||Ve(r)?E(r.length,String):[],w=S.length,V=!!w;for(var ee in r)V&&(ee=="length"||dr(ee,w))||S.push(ee);return S}function Ne(r,p){for(var S=r.length;S--;)if(Er(r[S][0],p))return S;return-1}function Jt(r,p,S,w){var V=-1,ee=x,se=!0,de=r.length,Re=[],Cr=p.length;if(!de)return Re;p.length>=t&&(ee=M,se=!1,p=new Ae(p));e:for(;++V<de;){var ge=r[V],Te=ge;if(ge=ge!==0?ge:0,se&&Te===Te){for(var Ze=Cr;Ze--;)if(p[Ze]===Te)continue e;Re.push(ge)}else ee(p,Te,w)||Re.push(ge)}return Re}function er(r,p,S,w,V){var ee=-1,se=r.length;for(S||(S=ur),V||(V=[]);++ee<se;){var de=r[ee];S(de)?g(V,de):V[V.length]=de}return V}function tr(r,p,S){var w=p(r);return we(r)?w:g(w,S(r))}function rr(r){if(!Fe(r)||pr(r))return!1;var p=Qe(r)||_(r)?he:o;return p.test(br(r))}function nr(r){if(!Fe(r))return mr(r);var p=hr(r),S=[];for(var w in r)w=="constructor"&&(p||!K.call(r,w))||S.push(w);return S}function ar(r,p){return r=Object(r),or(r,p,function(S,w){return w in r})}function or(r,p,S){for(var w=-1,V=p.length,ee={};++w<V;){var se=p[w],de=r[se];S(de,se)&&(ee[se]=de)}return ee}function sr(r,p){return p=te(p===void 0?r.length-1:p,0),function(){for(var S=arguments,w=-1,V=te(S.length-p,0),ee=Array(V);++w<V;)ee[w]=S[p+w];w=-1;for(var se=Array(p+1);++w<p;)se[w]=S[w];return se[p]=ee,B(r,this,se)}}function ir(r){return tr(r,Or,lr)}function Ie(r,p){var S=r.__data__;return fr(p)?S[typeof p=="string"?"string":"hash"]:S.map}function Ye(r,p){var S=k(r,p);return rr(S)?S:void 0}var cr=b?h(b,Object):Xe,lr=b?function(r){for(var p=[];r;)g(p,cr(r)),r=ye(r);return p}:Xe;function ur(r){return we(r)||Ve(r)||!!(G&&r&&r[G])}function dr(r,p){return p=p??d,!!p&&(typeof r=="number"||l.test(r))&&r>-1&&r%1==0&&r<p}function fr(r){var p=typeof r;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?r!=="__proto__":r===null}function pr(r){return!!O&&O in r}function hr(r){var p=r&&r.constructor,S=typeof p=="function"&&p.prototype||m;return r===S}function mr(r){var p=[];if(r!=null)for(var S in Object(r))p.push(S);return p}function yr(r){if(typeof r=="string"||vr(r))return r;var p=r+"";return p=="0"&&1/r==-1/0?"-0":p}function br(r){if(r!=null){try{return P.call(r)}catch{}try{return r+""}catch{}}return""}function Er(r,p){return r===p||r!==r&&p!==p}function Ve(r){return _r(r)&&K.call(r,"callee")&&(!c.call(r,"callee")||H.call(r)==a)}var we=Array.isArray;function We(r){return r!=null&&gr(r.length)&&!Qe(r)}function _r(r){return ze(r)&&We(r)}function Qe(r){var p=Fe(r)?H.call(r):"";return p==f||p==s}function gr(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=d}function Fe(r){var p=typeof r;return!!r&&(p=="object"||p=="function")}function ze(r){return!!r&&typeof r=="object"}
3function vr(r){return typeof r=="symbol"||ze(r)&&H.call(r)==i}function Or(r){return We(r)?Zt(r):nr(r)}var Sr=sr(function(r,p){return r==null?{}:(p=D(er(p),yr),ar(r,Jt(ir(r),p)))});function Xe(){return[]}return Me=Sr,Me}(function(t,u){(function(d,a){t.exports=a(W,je,yn())})(X,function(d,a,f){return function(s){function i(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return s[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var n={};return i.m=s,i.c=n,i.d=function(o,l,v){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:v})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="/",i(i.s=11)}([function(s,i){s.exports=d},function(s,i){s.exports=a},,,,,,function(s,i,n){function o(_,h){var T={};for(var R in _)h.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(_,R)&&(T[R]=_[R]);return T}function l(_,h,T){return h in _?Object.defineProperty(_,h,{value:T,enumerable:!0,configurable:!0,writable:!0}):_[h]=T,_}function v(_){if(Array.isArray(_)){for(var h=0,T=Array(_.length);h<_.length;h++)T[h]=_[h];return T}return Array.from(_)}function C(_,h){if(!(_ instanceof h))throw new TypeError("Cannot call a class as a function")}function j(_,h){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?_:h}function B(_,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);_.prototype=Object.create(h&&h.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(_,h):_.__proto__=h)}function x(_){var h,T,R;return T=h=function(m){function A(O,P){C(this,A);var K=j(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,O,P));return R.call(K),K.state={byName:{},byId:{}},K}return B(A,m),M(A,[{key:"getChildContext",value:function(){var O=this;return{_register:this._register,_unregister:this._unregister,_setProps:this._setProps,_handleChange:this._handleChange,_handleBlur:this._handleBlur,_getProps:this._getProps,_errors:Object.keys(this.state.byId).filter(function(P){return O.state.byId[P].error})}}},{key:"render",value:function(){return g.a.createElement(_,Object.assign({},this.props,{validate:this.validate,validateAll:this.validateAll,getValues:this.getValues,showError:this.showError,hideError:this.hideError}))}}]),A}(D.PureComponent),h.displayName="Form("+_.name+")",h.propTypes={},h.childContextTypes={_register:N.a.func.isRequired,_unregister:N.a.func.isRequired,_setProps:N.a.func.isRequired,_handleChange:N.a.func.isRequired,_handleBlur:N.a.func.isRequired,_getProps:N.a.func.isRequired,_errors:N.a.array},R=function(){var m=this;this._register=function(A,O){m.setState(function(P){return{byName:Object.assign({},P.byName,l({},A.props.name,[].concat(v(P.byName[A.props.name]||[]),[O]))),byId:Object.assign({},P.byId,l({},O,Object.assign({},A.props,{isCheckable:k(A),value:A.props.value||""},k(A)?{checked:!!A.props.checked}:{})))}},m._setErrors)},this._unregister=function(A,O){var P=[].concat(v(m.state.byName[A.props.name]));P.splice(P.indexOf(O),1);var K=P.length?Object.assign({},m.state.byName,l({},A.props.name,P)):E()(m.state.byName,A.props.name);m.setState({byName:K,byId:E()(m.state.byId,O)})},this._getProps=function(A){if(m.state.byId[A]){var O=m.state.byId[A];return O.validations,O.isCheckable,o(O,["validations","isCheckable"])}},this._setProps=function(A,O){m.setState(function(P){return{byId:Object.assign({},P.byId,l({},O,Object.assign({},P.byId[O],A)))}},m._setErrors)},this._handleChange=function(A,O){var P=m.state.byId[O].isCheckable;m.setState({byId:Object.assign({},m.state.byId,P?Object.assign({},m.state.byName[m.state.byId[O].name].reduce(function(K,H){return K[H]=Object.assign({},m.state.byId[H],{checked:!1}),K},{})):{},l({},O,Object.assign({},m.state.byId[O],{isChanged:!0,value:A.target.value},P&&{checked:A.target.checked})))},m._setErrors)},this._handleBlur=function(A,O){m.setState({byId:Object.assign({},m.state.byId,l({},O,Object.assign({},m.state.byId[O],{isUsed:!0,value:A.target.value})))},m._setErrors)},this._setErrors=function(){m.setState(function(A){return{byId:Object.keys(A.byId).reduce(function(O,P){var K=A.byId[P].validations,H=A.byId[P],he=Object.keys(A.byName).reduce(function(J,Q){return J[Q]=A.byName[Q].map(function(ce){return A.byId[ce]}),J},{}),me=H.value;O[P]=Object.assign({},A.byId[P]);var ye=!0,c=!1,L=void 0;try{for(var G,b=K[Symbol.iterator]();!(ye=(G=b.next()).done);ye=!0){var te=G.value,ne=te(me,H,he);if(ne){O[P].error=ne;break}delete O[P].error}}catch(J){c=!0,L=J}finally{try{!ye&&b.return&&b.return()}finally{if(c)throw L}}return O},{})}})},this.getValues=function(){return Object.keys(m.state.byName).reduce(function(A,O){return m.state.byName[O].length>1?A[O]=m.state.byName[O].map(function(P){return m.state.byId[P].value}):A[O]=m.state.byId[m.state.byName[O][0]].value,A},{})},this.validate=function(A){m.setState(function(O){return{byId:Object.assign({},O.byId,O.byName[A].reduce(function(P,K){return P[K]=Object.assign({},O.byId[K],{isChanged:!0,isUsed:!0}),P},{}))}},m._setErrors)},this.validateAll=function(){m.setState(function(A){return{byId:Object.assign({},A.byId,Object.keys(A.byName).reduce(function(O,P){return A.byName[P].reduce(function(K,H){return O[H]=Object.assign({},A.byId[H],{isChanged:!0,isUsed:!0}),K},{}),O},{}))}},m._setErrors)},this.showError=function(A,O){A&&setTimeout(function(){m.setState({byId:Object.assign({},m.state.byId,l({},A.id,Object.assign({},m.state.byId[A.id],{isChanged:!0,isUsed:!0,error:O}
3)))})},0)},this.hideError=function(A){m.setState(function(O){return{byId:Object.assign({},O.byId,l({},A.id,Object.assign({},E()(O.byId[A.id],"error"),{isChanged:!1,isUsed:!1})))}})}},T}i.a=x;var D=n(0),g=n.n(D),y=n(1),N=n.n(y),I=n(8),E=n.n(I),M=function(){function _(h,T){for(var R=0;R<T.length;R++){var m=T[R];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,T,R){return T&&_(h.prototype,T),R&&_(h,R),h}}(),k=function(_){return _.props.type==="radio"||_.props.type==="checkbox"}},function(s,i){s.exports=f},,,function(s,i,n){function o(I,E){var M={};for(var k in I)E.indexOf(k)>=0||Object.prototype.hasOwnProperty.call(I,k)&&(M[k]=I[k]);return M}function l(I,E){if(!(I instanceof E))throw new TypeError("Cannot call a class as a function")}function v(I,E){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?I:E}function C(I,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);I.prototype=Object.create(E&&E.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(I,E):I.__proto__=E)}Object.defineProperty(i,"__esModule",{value:!0});var j=n(0),B=n.n(j),x=n(1),D=n.n(x),g=n(7),y=function(){function I(E,M){for(var k=0;k<M.length;k++){var _=M[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}return function(E,M,k){return M&&I(E.prototype,M),k&&I(E,k),E}}(),N=function(I){function E(){return l(this,E),v(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return C(E,I),y(E,[{key:"render",value:function(){var M=this.props,k=(M.getValues,M.validate,M.validateAll,M.showError,M.hideError,o(M,["getValues","validate","validateAll","showError","hideError"]));return B.a.createElement("form",k)}}]),E}(j.Component);N.propTypes={getValues:D.a.func.isRequired,validate:D.a.func.isRequired,validateAll:D.a.func.isRequired,showError:D.a.func.isRequired,hideError:D.a.func.isRequired},i.default=Object(g.a)(N)}])})})(vt);var bn=vt.exports;const En=Oe(bn);var Ot={exports:{}},De={exports:{}},ot;function _n(){if(ot)return De.exports;ot=1;var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var u=new Uint8Array(16);De.exports=function(){return t(u),u}}else{var d=new Array(16);De.exports=function(){for(var f=0,s;f<16;f++)f&3||(s=Math.random()*4294967296),d[f]=s>>>((f&3)<<3)&255;return d}}return De.exports}var Ke,st;function gn(){if(st)return Ke;st=1;for(var t=[],u=0;u<256;++u)t[u]=(u+256).toString(16).substr(1);function d(a,f){var s=f||0,i=t;return[i[a[s++]],i[a[s++]],i[a[s++]],i[a[s++]],"-",i[a[s++]],i[a[s++]],"-",i[a[s++]],i[a[s++]],"-",i[a[s++]],i[a[s++]],"-",i[a[s++]],i[a[s++]],i[a[s++]],i[a[s++]],i[a[s++]],i[a[s++]]].join("")}return Ke=d,Ke}var He,it;function $e(){if(it)return He;it=1;var t=_n(),u=gn();function d(a,f,s){var i=f&&s||0;typeof a=="string"&&(f=a==="binary"?new Array(16):null,a=null),a=a||{};var n=a.random||(a.rng||t)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,f)for(var o=0;o<16;++o)f[i+o]=n[o];return f||u(n)}return He=d,He}(function(t,u){(function(d,a){t.exports=a(W,je,$e())})(X,function(d,a,f){return function(s){function i(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return s[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var n={};return i.m=s,i.c=n,i.d=function(o,l,v){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:v})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="/",i(i.s=12)}([function(s,i){s.exports=d},function(s,i){s.exports=a},function(s,i,n){function o(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function l(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?g:y}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}function C(g){var y,N;return N=y=function(I){function E(){return o(this,E),l(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return v(E,I),D(E,[{key:"render",value:function(){var M=this.context._getProps(this.id);return M?B.a.createElement(g,Object.assign({},M,{onChange:this.handleChange,onBlur:this.handleBlur})):null}}]),E}(x.a),y.displayName="Control("+g.name+")",N}i.a=C;var j=n(0),B=n.n(j),x=n(3),D=function(){function g(y,N){for(var I=0;I<N.length;I++){var E=N[I];
3E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,N,I){return N&&g(y.prototype,N),I&&g(y,I),y}}()},function(s,i,n){function o(_,h){var T={};for(var R in _)h.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(_,R)&&(T[R]=_[R]);return T}function l(_,h){if(!(_ instanceof h))throw new TypeError("Cannot call a class as a function")}function v(_,h){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?_:h}function C(_,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);_.prototype=Object.create(h&&h.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(_,h):_.__proto__=h)}var j=n(0),B=(n.n(j),n(1)),x=n.n(B),D=n(4),g=n.n(D),y=n(5),N=n.n(y),I=n(6),E=n.n(I),M=function(){function _(h,T){for(var R=0;R<T.length;R++){var m=T[R];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,T,R){return T&&_(h.prototype,T),R&&_(h,R),h}}(),k=function(_){function h(){var T,R,m,A;l(this,h);for(var O=arguments.length,P=Array(O),K=0;K<O;K++)P[K]=arguments[K];return R=m=v(this,(T=h.__proto__||Object.getPrototypeOf(h)).call.apply(T,[this].concat(P))),m.id=E()(),m.handleChange=function(H){H.persist(),m.context._handleChange(H,m.id),m.props.onChange&&m.props.onChange(H)},m.handleBlur=function(H){H.persist(),m.context._handleBlur(H,m.id),m.props.onBlur&&m.props.onBlur(H)},A=R,v(m,A)}return C(h,_),M(h,[{key:"componentDidMount",value:function(){this.context._register(this,this.id)}},{key:"componentWillUnmount",value:function(){this.context._unregister(this,this.id)}},{key:"componentWillReceiveProps",value:function(T){var R=T.validations,m=o(T,["validations"]),A=this.props,O=A.validations,P=o(A,["validations"]);N()(P,m)&&g()(O,R)||this.context._setProps(m,this.id)}},{key:"shouldComponentUpdate",value:function(T,R,m){return m!==this.context}},{key:"render",value:function(){return null}}]),h}(j.Component);k.contextTypes={_register:x.a.func.isRequired,_unregister:x.a.func.isRequired,_setProps:x.a.func.isRequired,_handleChange:x.a.func.isRequired,_handleBlur:x.a.func.isRequired,_getProps:x.a.func.isRequired},k.propTypes={validations:x.a.arrayOf(x.a.func),onChange:x.a.func,onBlur:x.a.func},k.defaultProps={validations:[]},i.a=k},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=n.length;if(o.length!==l)return!1;for(var v=0;v<l;v++)if(n[v]!==o[v])return!1;return!0}},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=Object.keys(n),v=Object.keys(o),C=l.length;if(v.length!==C)return!1;for(var j=0;j<C;j++){var B=l[j];if(n[B]!==o[B])return!1}return!0}},function(s,i){s.exports=f},,,,,,function(s,i,n){function o(D,g){var y={};for(var N in D)g.indexOf(N)>=0||Object.prototype.hasOwnProperty.call(D,N)&&(y[N]=D[N]);return y}Object.defineProperty(i,"__esModule",{value:!0});var l=n(0),v=n.n(l),C=n(1),j=n.n(C),B=n(2),x=function(D){var g=D.error,y=D.isChanged,N=D.isUsed,I=o(D,["error","isChanged","isUsed"]);return v.a.createElement("div",null,v.a.createElement("input",Object.assign({},I,y&&N&&g?{className:"is-invalid-input "+I.className}:{className:I.className})),y&&N&&g)};x.propTypes={error:j.a.oneOfType([j.a.node,j.a.string])},i.default=Object(B.a)(x)}])})})(Ot);var vn=Ot.exports;const $=Oe(vn);var St={exports:{}};(function(t,u){(function(d,a){t.exports=a(W,je,$e())})(X,function(d,a,f){return function(s){function i(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return s[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var n={};return i.m=s,i.c=n,i.d=function(o,l,v){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:v})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="/",i(i.s=13)}([function(s,i){s.exports=d},function(s,i){s.exports=a},function(s,i,n){function o(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function l(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?g:y}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}function C(g){var y,N;return N=y=function(I){function E(){return o(this,E),l(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return v(E,I),D(E,[{key:"render",value:function(){var M=this.context._getProps(this.id);return M?B.a.createElement(g,Object.assign({},M,{onChange:this.handleChange,onBlur:this.handleBlur})):null}}]),E}(x.a),y.displayName="Control("+g.name+")",N}i.a=C;var j=n(0),B=n.n(j),x=n(3),D=function(){function g(y,N){for(var I=0;I<N.length;I++){var E=N[I];
3E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,N,I){return N&&g(y.prototype,N),I&&g(y,I),y}}()},function(s,i,n){function o(_,h){var T={};for(var R in _)h.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(_,R)&&(T[R]=_[R]);return T}function l(_,h){if(!(_ instanceof h))throw new TypeError("Cannot call a class as a function")}function v(_,h){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?_:h}function C(_,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);_.prototype=Object.create(h&&h.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(_,h):_.__proto__=h)}var j=n(0),B=(n.n(j),n(1)),x=n.n(B),D=n(4),g=n.n(D),y=n(5),N=n.n(y),I=n(6),E=n.n(I),M=function(){function _(h,T){for(var R=0;R<T.length;R++){var m=T[R];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,T,R){return T&&_(h.prototype,T),R&&_(h,R),h}}(),k=function(_){function h(){var T,R,m,A;l(this,h);for(var O=arguments.length,P=Array(O),K=0;K<O;K++)P[K]=arguments[K];return R=m=v(this,(T=h.__proto__||Object.getPrototypeOf(h)).call.apply(T,[this].concat(P))),m.id=E()(),m.handleChange=function(H){H.persist(),m.context._handleChange(H,m.id),m.props.onChange&&m.props.onChange(H)},m.handleBlur=function(H){H.persist(),m.context._handleBlur(H,m.id),m.props.onBlur&&m.props.onBlur(H)},A=R,v(m,A)}return C(h,_),M(h,[{key:"componentDidMount",value:function(){this.context._register(this,this.id)}},{key:"componentWillUnmount",value:function(){this.context._unregister(this,this.id)}},{key:"componentWillReceiveProps",value:function(T){var R=T.validations,m=o(T,["validations"]),A=this.props,O=A.validations,P=o(A,["validations"]);N()(P,m)&&g()(O,R)||this.context._setProps(m,this.id)}},{key:"shouldComponentUpdate",value:function(T,R,m){return m!==this.context}},{key:"render",value:function(){return null}}]),h}(j.Component);k.contextTypes={_register:x.a.func.isRequired,_unregister:x.a.func.isRequired,_setProps:x.a.func.isRequired,_handleChange:x.a.func.isRequired,_handleBlur:x.a.func.isRequired,_getProps:x.a.func.isRequired},k.propTypes={validations:x.a.arrayOf(x.a.func),onChange:x.a.func,onBlur:x.a.func},k.defaultProps={validations:[]},i.a=k},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=n.length;if(o.length!==l)return!1;for(var v=0;v<l;v++)if(n[v]!==o[v])return!1;return!0}},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=Object.keys(n),v=Object.keys(o),C=l.length;if(v.length!==C)return!1;for(var j=0;j<C;j++){var B=l[j];if(n[B]!==o[B])return!1}return!0}},function(s,i){s.exports=f},,,,,,,function(s,i,n){function o(D,g){var y={};for(var N in D)g.indexOf(N)>=0||Object.prototype.hasOwnProperty.call(D,N)&&(y[N]=D[N]);return y}Object.defineProperty(i,"__esModule",{value:!0});var l=n(0),v=n.n(l),C=n(1),j=n.n(C),B=n(2),x=function(D){var g=D.error,y=D.isChanged,N=D.isUsed,I=o(D,["error","isChanged","isUsed"]);return v.a.createElement("div",null,v.a.createElement("select",I),y&&N&&g)};x.propTypes={error:j.a.oneOfType([j.a.node,j.a.string])},i.default=Object(B.a)(x)}])})})(St);var On=St.exports;const Sn=Oe(On),Ct=({t})=>e.jsxs("div",{className:"formSuccess",children:[e.jsx("p",{children:t("contactForm.formSuccess")}),e.jsx("div",{className:"button-container",children:e.jsx(be,{className:"button-secondary",url:"/",children:t("common:continueShopping")})})]});Ct.propTypes={t:q.func.isRequired};const Cn=Z(["helpPage","common"])(Ct),ct="_grecaptcha.element.id",lt="_grecaptcha.data-callback",ut="_grecaptcha.data-expired-callback",jn=t=>t.parentNode&&t.parentNode.removeChild(t);class ke extends ie.Component{componentDidMount(){const{locale:u,callback:d,expiredCallback:a}=this.props,f=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");s.id=ct,s.src=`https://www.google.com/recaptcha/api.js?hl=${u}`,s.type="text/javascript",s.async=!0,s.defer=!0,s.onerror=()=>{throw new URIError(`The script ${s.src} is not accessible.`)},f.appendChild(s),window[lt]=d,window[ut]=a}componentWillUnmount(){jn(document.getElementById(ct))}render(){const{className:u,sitekey:d,invisible:a,...f}=this.props,s={...Ur(f,["callback","expiredCallback","locale"]),className:Lr("g-recaptcha",u),"data-sitekey":d,"data-callback":lt,"data-expired-callback":ut,...a&&{"data-size":"invisible"}};return e.jsx("div",{...s})}}Be(ke,"propTypes",{sitekey:q.string.isRequired,callback:q.func.isRequired,expiredCallback:q.func.isRequired,className:q.string,invisible:q.bool,locale:q.string}),Be(ke,"defaultProps",{locale:"en",className:void 0,invisible:!1});var jt={exports:{}};(function(t,u){(function(d,a){t.exports=a(W,je,$e())})(X,function(d,a,f){return function(s){function i(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return s[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var n={};return i.m=s,i.c=n,i.d=function(o,l,v){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:v})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="/",i(i.s=14)}([function(s,i){s.exports=d},function(s,i){s.exports=a},function(s,i,n){function o(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function l(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?g:y}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}function C(g){var y,N;return N=y=function(I){function E(){return o(this,E),l(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return v(E,I),D(E,[{key:"render",value:function(){var M=this.context._getProps(this.id);return M?B.a.createElement(g,Object.assign({},M,{onChange:this.handleChange,onBlur:this.handleBlur})):null}}]),E}(x.a),y.displayName="Control("+g.name+")",N}i.a=C;var j=n(0),B=n.n(j),x=n(3),D=function(){function g(y,N){for(var I=0;I<N.length;I++){var E=N[I];
3E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,N,I){return N&&g(y.prototype,N),I&&g(y,I),y}}()},function(s,i,n){function o(_,h){var T={};for(var R in _)h.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(_,R)&&(T[R]=_[R]);return T}function l(_,h){if(!(_ instanceof h))throw new TypeError("Cannot call a class as a function")}function v(_,h){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?_:h}function C(_,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);_.prototype=Object.create(h&&h.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(_,h):_.__proto__=h)}var j=n(0),B=(n.n(j),n(1)),x=n.n(B),D=n(4),g=n.n(D),y=n(5),N=n.n(y),I=n(6),E=n.n(I),M=function(){function _(h,T){for(var R=0;R<T.length;R++){var m=T[R];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,T,R){return T&&_(h.prototype,T),R&&_(h,R),h}}(),k=function(_){function h(){var T,R,m,A;l(this,h);for(var O=arguments.length,P=Array(O),K=0;K<O;K++)P[K]=arguments[K];return R=m=v(this,(T=h.__proto__||Object.getPrototypeOf(h)).call.apply(T,[this].concat(P))),m.id=E()(),m.handleChange=function(H){H.persist(),m.context._handleChange(H,m.id),m.props.onChange&&m.props.onChange(H)},m.handleBlur=function(H){H.persist(),m.context._handleBlur(H,m.id),m.props.onBlur&&m.props.onBlur(H)},A=R,v(m,A)}return C(h,_),M(h,[{key:"componentDidMount",value:function(){this.context._register(this,this.id)}},{key:"componentWillUnmount",value:function(){this.context._unregister(this,this.id)}},{key:"componentWillReceiveProps",value:function(T){var R=T.validations,m=o(T,["validations"]),A=this.props,O=A.validations,P=o(A,["validations"]);N()(P,m)&&g()(O,R)||this.context._setProps(m,this.id)}},{key:"shouldComponentUpdate",value:function(T,R,m){return m!==this.context}},{key:"render",value:function(){return null}}]),h}(j.Component);k.contextTypes={_register:x.a.func.isRequired,_unregister:x.a.func.isRequired,_setProps:x.a.func.isRequired,_handleChange:x.a.func.isRequired,_handleBlur:x.a.func.isRequired,_getProps:x.a.func.isRequired},k.propTypes={validations:x.a.arrayOf(x.a.func),onChange:x.a.func,onBlur:x.a.func},k.defaultProps={validations:[]},i.a=k},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=n.length;if(o.length!==l)return!1;for(var v=0;v<l;v++)if(n[v]!==o[v])return!1;return!0}},function(s,i){s.exports=function(n,o){if(n===o)return!0;var l=Object.keys(n),v=Object.keys(o),C=l.length;if(v.length!==C)return!1;for(var j=0;j<C;j++){var B=l[j];if(n[B]!==o[B])return!1}return!0}},function(s,i){s.exports=f},,,,,,,,function(s,i,n){function o(D,g){var y={};for(var N in D)g.indexOf(N)>=0||Object.prototype.hasOwnProperty.call(D,N)&&(y[N]=D[N]);return y}Object.defineProperty(i,"__esModule",{value:!0});var l=n(0),v=n.n(l),C=n(1),j=n.n(C),B=n(2),x=function(D){var g=D.error,y=D.isChanged,N=D.isUsed,I=o(D,["error","isChanged","isUsed"]);return v.a.createElement("div",null,v.a.createElement("textarea",I),y&&N&&g)};x.propTypes={error:j.a.oneOfType([j.a.node,j.a.string])},i.default=Object(B.a)(x)}])})})(jt);var xn=jt.exports;const Y=Oe(xn),le=({label:t,pastOrderNumbers:u,showSelect:d,error:a,orderNumber:f,placeholder:s,onBlur:i,onChange:n})=>e.jsxs("div",{children:[e.jsx("label",{children:t}),u&&Array.isArray(u)&&u.length>0&&d?e.jsx("select",{className:a?"errorState":"",name:"orderNumber",value:f,onBlur:i,onChange:n,children:u.map((o,l)=>e.jsx("option",{value:o,children:o},l))}):e.jsx("input",{className:a?"errorState":"",name:"orderNumber",value:f,type:"text",placeholder:s,onBlur:i,onChange:n}),a?e.jsx("span",{className:"formErrorMessage",children:a}):""]}),F=(t,u)=>{if(!t||u.isCheckable&&!u.checked)return e.jsx("span",{className:"form-error is-visible",children:"Required"})},Ln=t=>{if(!/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t))return e.jsx("span",{className:"form-error is-visible",children:`${t} is not a valid email.`})},xt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.amendWhat"),":*"]}),e.jsx(Y,{name:"amendWhat",validations:[F]}),e.jsxs("label",{children:[t("contactForm.amendReason"),":*"]}),e.jsx(Y,{name:"amendReason",validations:[F]})]});xt.propTypes={t:q.func.isRequired};const An=Z(["helpPage","common"])(xt),Lt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.cancelReason"),":*"]}),e.jsx(Y,{name:"cancelReason",validations:[F]}),e.jsxs("label",{children:[t("contactForm.cancelDelivered"),":*"]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"cancelDelivered",id:"cancelDelivered-yes",value:"yes"}),e.jsx("label",{className:"label",htmlFor:"cancelDelivered-yes",children:t("common:yes")})]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"cancelDelivered",id:"cancelDelivered-no",value:"no"}),e.jsx("label",{className:"label",htmlFor:"cancelDelivered-no",children:t("common:no")})]}),e.jsxs("label",{children:[t("contactForm.cancelUsed"),":*"]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"usedItem",id:"usedItem-yes",value:"yes"}),e.jsx("label",{className:"label",htmlFor:"usedItem-yes",children:t("common:yes")})]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"usedItem",id:"usedItem-no",value:"no"}),e.jsx("label",{className:"label",htmlFor:"usedItem-no",children:t("common:no")})]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Lt.propTypes={t:q.func.isRequired};const Nn=Z(["helpPage","common"])(Lt),In=["CERA0001F - SA Smoothing Cleanser - 236ml","CERA0002F - AM Facial Moisturising Lotion SPF 25 UV Protection","CERA0003F - Hydrating Cleanser with Hyaluronic Acid for Normal to Dry Skin","CERA0004F - Moisturising Cream - 340g","CERA0005F - PM Facial Moisturising Lotion","CERA0006F - Moisturising Lotion - 236ml","CERA0007F - Foaming Cleanser - 236ml","CERA0008F - Eye Repair Cream","CERA0009F - Hydrating Cleanser with Hyaluronic Acid for Normal to Dry Skin","CERA0010F - SA Smoothing Cream - 340g","CERA0011
3F - Moisturising Lotion - 473ml","CERA0012F - Hydrating Cream-to-Foam Cleanser","CERA0013F - SA Smoothing Cream - 177g","CERA0014F - Hydrating Hyaluronic Acid Serum","CERA0015F - Moisturising Cream - 454g","CERA0017F - Moisturising Cream - 177ml","CERA0020F - SA Renewing Foot Cream","CERA0021F - SA Smoothing Cleanser - 473ml","CERA0022F - Smoothing Duo","CERA7002F - SA Smoothing Cleanser with Salicylic Acid 20ml","CERA7007F - Hydrating Cleanser 20ml - Hydrating Cleanser 20","CERA0016F - Foaming Cleanser - 473ml","CERA0018F - Moisturising Cream - 50ml","CERA0019F - Reparative Hand Cream","CERA0023F - Daily Essentials Trio","CERA0024F - Moisturising Duo","CERA0025F - Hydrating Micellar Cleansing Water","CERA0026F - Hydrating Foaming Oil Cleanser","CERA0027F - Smooth & Cleanse Set","CERA0028F - Daily Essentials Kit","CERA0029F - Hydration Set","CERA0030F - AM Facial Moisturising Lotion SPF50","CERA0031F - Blemish Control Cleanser with Salicylic Acid & Niacinamide for Blemish-Prone Skin","CERA0032F - Blemish Control Gel with AHA & BHA for Blemish-Prone Skin","CERA0033F - Resurfacing Retinol Serum with Ceramides & Niacinamide for Blemish-Prone Skin","CERA0034F - AM SPF50 & PM Facial Moisturising Lotion Duo","CERA0035F - Blemish Prone Skin Trio","CERA0036F - Hydrating Cleanser with Hyaluronic Acid for Normal to Dry Skin","CERA0037F - AM Facial Moisturising Lotion SPF30 with Ceramides for Normal to Dry Skin","CERA0038F - The Morning & Night Moisturising Kit","CERA0039F - Blemish Control Trio","CERA0040F - Post-Acne Mark Trio","CERA0041F - Advanced Repair Ointment - 50ml","CERA0042F - Advanced Repair Ointment - 88ml","CERA0043F - Oil Control Moisturising Gel-Cream"],At=({t,updateSelectedProduct:u})=>{const[d,a]=W.useState(""),f=s=>{const i=s.target.value;a(i),u(i)};return e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("contactForm.ceraVeProduct"),":"]}),e.jsxs(qr,{name:"ceraVeProduct",value:d,onChange:f,defaultValue:"",children:[e.jsx("option",{value:"",disabled:!0,children:"Select CeraVe Product"}),In.map((s,i)=>e.jsx("option",{value:s,children:s},i))]}),e.jsxs("label",{children:[t("contactForm.question"),":*"]}),e.jsx(Y,{name:"question",validations:[F]})]})};At.propTypes={t:q.func.isRequired,updateSelectedProduct:q.func.isRequired};const Rn=Z(["helpPage","common"])(At),Nt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.damagedName"),":*"]}),e.jsx(Y,{name:"damagedName",validations:[F]}),e.jsxs("label",{children:[t("contactForm.damagedDescription"),":*"]}),e.jsx(Y,{name:"damagedDescription",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Nt.propTypes={t:q.func.isRequired};const Tn=Z(["helpPage","common"])(Nt),It=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.deliveryIssueTracking"),":*"]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"deliveryIssueTracking",id:"deliveryIssueTracking-yes",value:"yes"}),e.jsx("label",{className:"label",htmlFor:"deliveryIssueTracking-yes",children:t("common:yes")})]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"deliveryIssueTracking",id:"deliveryIssueTracking-no",value:"no"}),e.jsx("label",{className:"label",htmlFor:"deliveryIssueTracking-no",children:t("common:no")})]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});It.propTypes={t:q.func.isRequired};const Bn=Z(["helpPage","common"])(It),Rt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.faultyName"),":*"]}),e.jsx(Y,{name:"faultyName",validations:[F]}),e.jsxs("label",{children:[t("contactForm.faultyDescription"),":*"]}),e.jsx(Y,{name:"faultyDescription",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Rt.propTypes={t:q.func.isRequired};const Dn=Z(["helpPage","common"])(Rt),Tt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.incorrectProducts"),":*"]}),e.jsx(Y,{name:"incorrectProducts",validations:[F]}),e.jsxs("label",{children:[t("contactForm.correctProducts"),":*"]}),e.jsx(Y,{name:"correctProducts",validations:[F]}),e.jsxs("label",{children:[t("contactForm.usedItem"),":*"]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"usedItem",id:"usedItem-yes",value:"yes"}),e.jsx("label",{className:"label",htmlFor:"usedItem-yes",children:t("common:yes")})]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"usedItem",id:"usedItem-no",value:"no"}),e.jsx("label",{className:"label",htmlFor:"usedItem-no",children:t("common:no")})]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});
3Tt.propTypes={t:q.func.isRequired};const Pn=Z(["helpPage","common"])(Tt),Bt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.missingItemMakeName"),":*"]}),e.jsx(Y,{name:"missingItemMakeName",validations:[F]}),e.jsxs("label",{children:[t("contactForm.anyDamage"),":*"]}),e.jsx(Y,{name:"anyDamage",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Bt.propTypes={t:q.func.isRequired};const wn=Z(["helpPage","common"])(Bt),Dt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Dt.propTypes={t:q.func.isRequired};const Fn=Z(["helpPage","common"])(Dt),Pt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("contactForm.paymentMethod"),":*"]}),e.jsx($,{type:"text",name:"paymentMethod",validations:[F]}),e.jsxs("label",{children:[t("contactForm.paymentsDate"),":*"]}),e.jsx($,{type:"date",name:"paymentsDate",validations:[F]}),e.jsxs("label",{children:[t("contactForm.amount"),":*"]}),e.jsx($,{type:"text",name:"amount",validations:[F]}),e.jsxs("label",{children:[t("contactForm.paymentsFourDigits"),":*"]}),e.jsx($,{type:"text",maxLength:4,name:"paymentsFourDigits",placeholder:"4444",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Pt.propTypes={t:q.func.isRequired};const Mn=Z(["helpPage","common"])(Pt),wt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("contactForm.productInformationMakeName"),":*"]}),e.jsx(Y,{name:"productMakeName",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});wt.propTypes={t:q.func.isRequired};const Kn=Z(["helpPage","common"])(wt),Ft=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("Amount"),":*"]}),e.jsx($,{type:"text",name:"amount",validations:[F]}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Ft.propTypes={t:q.func.isRequired};const Hn=Z(["helpPage","common"])(Ft),Mt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("common:haulNo"),":*"]}),e.jsx(le,{pastOrderNumbers:[],currentOrderNumber:"",placeholder:"e.g. ABI2-CDE1-F1G2",selected:null,onBlur:null,label:null,showSelect:!1}),e.jsxs("label",{children:[t("contactForm.postcode"),":*"]}),e.jsx($,{type:"text",name:"postcode",validations:[F]}),e.jsxs("label",{children:[t("contactForm.returnFullPartial"),":*"]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"full",id:"full",value:"yes"}),e.jsx("label",{className:"label",for:"full",children:t("contactForm:full")})]}),e.jsxs("div",{className:"radioInput-container",children:[e.jsx($,{className:"input",type:"radio",name:"partial",id:"partial",value:"no"}),e.jsx("label",{className:"label",for:"partial",children:t("contactForm:partial")})]}),e.jsxs("label",{children:[t("contactForm.returnItems"),":"]}),e.jsx(Y,{name:"returnItems"}),e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Mt.propTypes={t:q.func.isRequired};const kn=Z(["helpPage","common"])(Mt),Kt=({t})=>e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[t("contactForm.message"),":*"]}),e.jsx(Y,{name:"message",validations:[F]})]});Kt.propTypes={t:q.func.isRequired};const Gn=Z(["helpPage","common"])(Kt);
3class Ht extends ie.Component{constructor(d){super(d);Be(this,"updateCeraVeProduct",d=>{this.setState({ceraVeProduct:d})});this.state={recaptchaToken:"12345",recaptureValid:!1,isOrderQuery:!1,contactReason:"",formSubmitStatus:!1,formSubmitError:!1,isSubmitting:!1,ceraVeProduct:""},this.contactOptions=[{value:this.defaultOption,label:this.props.t("contactForm.select")},{label:this.props.t("contactForm.deliveryQuery"),orderVisible:!0,options:[{value:"deliveryIssue",label:this.props.t("contactForm.deliveryIssue"),message:"order_tracking"},{value:"incorrectItem",label:this.props.t("contactForm.incorrectItem")},{value:"missingItem",label:this.props.t("contactForm.missingItem")},{value:"damagedItem",label:this.props.t("contactForm.damagedItem")},{value:"faultyItem",label:this.props.t("contactForm.faultyItem")}]},{label:this.props.t("contactForm.haulQuery"),orderVisible:!0,options:[{value:"cancelMyHaul",label:this.props.t("contactForm.cancelMyHaul")},{value:"amendMyHaul",label:this.props.t("contactForm.changeMyHaul")},{value:"otherQuery",label:this.props.t("contactForm.otherHaulQuery"),message:"order_tracking"}]},{label:this.props.t("contactForm.returns"),orderVisible:!0,options:[{value:"returnMyHaul",label:this.props.t("contactForm.returnMyHaul"),message:"Returns"},{value:"refund",label:this.props.t("contactForm.refund")}]},{label:this.props.t("contactForm.other"),orderVisible:!0,options:[{value:"payments",label:this.props.t("contactForm.payments"),message:"payments"},{value:"productInformation",label:this.props.t("contactForm.productInformation")},{value:"cerave",label:this.props.t("contactForm.cerave")},{value:"websiteFeedback",label:this.props.t("contactForm.websiteFeedback")}]}]}verifyCallback(d){this.setState({recaptchaToken:d,recaptureValid:!0})}expiredCallback(){}getContactOptionFromValue(d){let a=!1;return this.contactOptions.some(f=>{if(f.options&&Array.isArray(f.options)){let s=!1;if(f.options.some(i=>(s=i.value===d,s&&(a=i),s)),s)return a.orderVisible=f.orderVisible,!0}else if(f.value===d)return a=f,!0;return!1}),a}contactFormUpdate(d){const a=d.target.value,f=this.getContactOptionFromValue(a);f?this.setState({isOrderQuery:f.orderVisible,contactReason:f.value,selectedForm:f.value}):this.setState({isOrderQuery:f})}handleFormSubmit(d){if(d.preventDefault(),this.state.isSubmitting)return;this.form.validateAll();const a=window.grecaptcha.getResponse();if(a){const f=document.getElementById("contact-us-form"),s=pn(f,{hash:!0}),i=Object.assign({},s,{recaptureToken:a,ceraVeProduct:this.state.ceraVeProduct});this.setState({isSubmitting:!0,formSubmitError:!1}),this.props.submitForm(i).then(n=>(n==null?void 0:n.success)===!0).catch(()=>!1).then(n=>{this.setState({isSubmitting:!1,formSubmitStatus:n,formSubmitError:!n}),n||window.grecaptcha.reset()})}}renderSelectedForm(){switch(this.state.selectedForm){case"deliveryIssue":return e.jsx(Bn,{});case"incorrectItem":return e.jsx(Pn,{});case"missingItem":return e.jsx(wn,{});case"faultyItem":return e.jsx(Dn,{});case"damagedItem":return e.jsx(Tn,{});case"cancelMyHaul":return e.jsx(Nn,{});case"amendMyHaul":return e.jsx(An,{});case"otherQuery":return e.jsx(Fn,{});case"returnMyHaul":return e.jsx(kn,{});case"refund":return e.jsx(Hn,{});case"payments":return e.jsx(Mn,{});case"productInformation":return e.jsx(Kn,{});case"cerave":return e.jsx(Rn,{updateSelectedProduct:this.updateCeraVeProduct});case"websiteFeedback":return e.jsx(Gn,{});default:return null}}render(){return e.jsxs(W.Fragment,{children:[e.jsx("h3",{className:"heading",children:this.props.t("contactForm.contactFormHeading")}),this.state.formSubmitStatus?e.jsx(Cn,{}):e.jsxs(En,{id:"contact-us-form",ref:d=>{this.form=d},onSubmit:d=>{this.handleFormSubmit(d)},children:[e.jsxs("label",{children:[this.props.t("contactForm.whyContact"),":*"]}),e.jsx(Sn,{name:"selectedOption",value:this.state.contactReason,onChange:d=>{this.contactFormUpdate(d)},validations:[F],children:this.contactOptions.map((d,a)=>d.disabled?null:d.options&&Array.isArray(d.options)?e.jsx("optgroup",{label:d.label,children:d.options.map((f,s)=>e.jsx("option",{value:f.value,children:f.label},`${f.label}-${s}`))},`${d.label}-${a}`):e.jsx("option",{value:d.value,defaultValue:this.state.selectedOption===this.defaultOption?d.value:null,children:d.label},a))}),this.state.selectedForm&&e.jsxs(e.Fragment,{children:[e.jsxs("label",{children:[this.props.t("contactForm.name"),":*"]}),e.jsx($,{name:"name",validations:[F]}),e.jsxs("label",{children:[this.props.t("contactForm.email"),":*"]}),e.jsx($,{type:"email",name:"email",validations:[F,Ln]})]}),this.renderSelectedForm(),this.state.selectedForm&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{sitekey:"6LcVKK4UAAAAABWPj9Bo6sFdhcm--NPcvFthQUcq",callback:this.verifyCallback,expiredCallback:this.expiredCallback,"data-theme":"light"}),e.jsx(bt,{}),this.state.formSubmitError&&e.jsx("p",{className:"formErrorMessage",role:"alert",children:this.props.t("contactForm.formError")}),e.jsx("div",{className:"button-container",children:e.jsx(mn,{type:"submit",className:"button-secondary submit-form",children:this.props.t("contactForm.submit")})})]}),e.jsx("div",{className:"button-container",children:e.jsxs("label",{children:[this.props.t("contactForm.privacyPolicyPartOne"),e.jsx("a",{className:"link-container",href:"https://www.beautybay.com/s/privacy-policy/",target:"_blank",children:this.props.t("contactForm.privacyPolicyPartTwo")}),this.props.t("contactForm.privayPolicyPartThree")]})})]})]})}}Ht.propTypes={t:q.func.isRequired,submitForm:q.func.isRequired,close:q.func};const Un=Z(["helpPage","common"])(Ht);class qn extends ie.Component{constructor(u){super(u),this.submitForm=this.submitForm.bind(this)}submitForm(u){return Mr(u).then(d=>{if(d)return{success:!0}})}render(){return e.jsx("div",{className:"contact-form-wrapper",children:e.jsx(Un,{submitForm:this.submitForm})})}}const $n=Z("helpPage")(qn),Yn=({orders:t,api:u})=>{const[d,a]=W.useState(!1),{t:f}=Ge("helpPage"),{countryCode:s,isMena:i}=Ar(),n=l=>{a(l)},o=()=>
3f(s==="KW"?"menaContactNoKW":s==="SA"?"menaContactNoSA":"menaContactNo");return e.jsx(W.Fragment,{children:e.jsxs("div",{className:"contact-us sidebar-section",children:[e.jsxs("h3",{children:[e.jsx(an,{}),f("contact")]}),e.jsx("p",{children:e.jsx("strong",{children:f("open")})}),i&&e.jsx("p",{children:e.jsx("strong",{children:o()})}),e.jsx(ft,{text:f("contactUsForm"),buttonType:"secondary",className:"contact-form-launcher",onClick:()=>n(!0)}),d&&e.jsxs(Nr,{isOpen:d,onRequestClose:()=>n(!1),style:{content:{maxWidth:"600px",margin:"0 auto"}},children:[e.jsx("button",{className:"close",onClick:()=>n(!1),"aria-label":f("accessibility.buttons.closeModal")}),e.jsx($n,{orders:t,close:n,api:u})]})]})})},Vn=Z("helpPage")(Yn),Wn=()=>e.jsxs("div",{className:"alert alert-message",children:[e.jsx("strong",{children:"Sorry"}),e.jsx("p",{children:"We are currently experiencing technical difficulties."}),e.jsx("p",{children:"Please try again later."})]}),Qn=()=>{const[t,u]=ie.useState(""),[d,a]=ie.useState(),[f,s]=ie.useState(!0);W.useEffect(()=>{i().then(o=>{Ce.getSingleArticle(o).then(l=>{u(l.title),a(l.content),s(!1)})})},[]);const i=()=>{const l=window.location.href.split("?")[0].replace(/\/$/,""),v=l.substr(l.lastIndexOf("/")+1);return Promise.resolve(v)},n={renderMark:{[fe.MARKS.BOLD]:o=>e.jsx("strong",{children:o}),[fe.MARKS.UNDERLINE]:o=>e.jsx("u",{children:o}),[fe.MARKS.ITALIC]:o=>e.jsx("i",{children:o})},renderNode:{[fe.BLOCKS.EMBEDDED_ASSET]:o=>{const{file:l,title:v}=o.data.target.fields;return e.jsx("img",{src:`${l.url}?fl=progressive&q=70`,alt:v,width:"100%"})}}};return e.jsxs("div",{className:"single-article",children:[f?e.jsx(dt,{}):null,e.jsx("h3",{children:t}),e.jsx("div",{className:"article",children:d&&Ue.documentToReactComponents(d,n)})]})},kt=({isMena:t})=>{const{t:u}=Ge("helpPage"),d=t?"https://www.facebook.com/BEAUTYBAYArabia":"https://www.facebook.com/BeautyBaycom",a=t?"https://www.instagram.com/beautybayarabia/?hl=en":"https://instagram.com/beautybaycom";return e.jsxs("div",{className:"social-connect sidebar-section",children:[e.jsx("h3",{children:u("contactForm.connect")}),e.jsxs("div",{className:"social-icons",children:[e.jsx(be,{url:"https://www.tiktok.com/@beautybay",children:e.jsx(Ir,{})}),e.jsx(be,{url:"https://twitter.com/intent/follow?source=followbutton&variant=1.0&screen_name=beautybay",children:e.jsx(Rr,{})}),e.jsx(be,{url:d,children:e.jsx(Tr,{})}),e.jsx(be,{url:"http://www.youtube.com/user/wwwbeautybaycom",children:e.jsx(Br,{})}),e.jsx(be,{url:a,children:e.jsx(Dr,{})}),e.jsx(be,{url:"https://pinterest.com/beautybay/",children:e.jsx(Pr,{})})]})]})};kt.propTypes={isMena:q.bool};const zn=({orders:t})=>{const{t:u}=Ge(["helpPage","common"]),[d,a]=ie.useState(""),[f,s]=ie.useState(!1),i=wr(),n=C=>{const j=u("haulNotListed");C.target.value===j?(a(""),s(!1)):a(C.target.value)},o=C=>{C.key==="Enter"&&l(d)},l=C=>{$r(C)||i(`/help/track/${C}`)},v=()=>{l(d)};return e.jsxs("div",{className:"trackOrder sidebar-section",children:[e.jsx("h3",{children:u("wheresMyHaul")}),e.jsxs("div",{className:"trackOrderInput",children:[e.jsx("label",{children:u("common:haulNo")}),e.jsx(le,{pastOrderNumbers:t,placeholder:" e.g. ABI2-CDE1-F1G2",onChange:n,onKeyPress:o,showSelect:f}),e.jsx("div",{className:"button-container",children:e.jsx(ft,{buttonType:"secondary",onClick:v,text:u("common:trackHaul")})})]})]})};class Xn extends ie.Component{constructor(u){super(u),this.state={formSuccess:!1,errorState:!1,orders:null,timezone:"GMT"},this.openContactForm.bind(this),this.setFormSuccess.bind(this)}componentDidMount(){Ce.getTimezone().then(u=>{this.setState({timezone:u})})}openContactForm(){}setFormSuccess(){this.setState({formSuccess:!0})}render(){const{t:u}=this.props;return e.jsx(Fr.Consumer,{children:({isMena:d})=>e.jsxs("div",{className:"help-page",children:[e.jsx(Hr,{data:{canonical:"https://www.beautybay.com/help/"}}),e.jsxs("main",{className:"help-page-container",children:[e.jsx("header",{children:e.jsx(Kr,{children:this.props.t("helpTitle")})}),e.jsx("div",{className:"help-content",children:this.state.errorState?e.jsx(Wn,{}):e.jsxs(e.Fragment,{children:[e.jsx("nav",{className:"left-col","aria-label":u("accessibility.navigation.helpTopics"),children:this.props.article?e.jsx(Qn,{}):e.jsx(Jr,{})}),e.jsxs("div",{className:"right-col",children:[e.jsx(zn,{orders:this.state.orders?this.state.orders.orderNumbers:[]}),e.jsx(Vn,{timezone:this.state.timezone,orders:this.state.orders?this.state.orders.orderNumbers:[],api:Ce}),!d&&e.jsx(rn,{}),e.jsx(kt,{isMena:d})]})]})})]})]})})}}const pa=Z("helpPage")(Xn);export{pa as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.