PageSourceSearch

https://www.sleepingduck.com/_next/static/chunks/pages/sdbed/swatches-9448d8e614d75aca.js

js sleepingduck.com collected 2026-09-29 06:12:00 UTC 36,137 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4378],{32971:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n,a,r=i(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var l=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",preserveAspectRatio:"xMinYMin slice"},e),n||(n=r.createElement("path",{d:"M.485 1.546A.75.75 0 111.545.485L13.52 12.458a.75.75 0 01-1.061 1.06L.485 1.547z"})),a||(a=r.createElement("path",{d:"M.485 12.458a.75.75 0 101.06 1.06L13.52 1.547A.75.75 0 0012.458.485L.485 12.458z"})))}},91284:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sdbed/swatches",function(){return i(565)}])},565:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return eZ},default:function(){return e_}});var n,a,r,s,l=i(35944),o=i(67294),A=i(2962),p=i(63409),d=i(41250),h=i(87234),c=i(6853),g=i(43174),u=i(87651),m=i(16829),f=i(19884),x=i(67235),E=i(71879),S=i(47858),b=i(58080),v=i(84883);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var B=i(99808),y=i(19370),C=i(31374),T=i(67223),_=i(10702);let Z=(0,m.Z)(x.Z,{target:"e1sced30"})("font-weight:",E.rS.fontWeights.body,";",(0,f.aE)("lg"),"{padding-top:78px;padding-bottom:0;}h2,h3,h5,h6,p,li{letter-spacing:",(0,S.ne)(30),";}h4{",(0,f.B2)("md"),"{font-size:",E.rS.fontSizes[3],";}}.button{letter-spacing:",(0,S.ne)(60),";}p{margin-top:",E.Dh[3],";}h2{font-size:",E.CH[4],";",(0,f.aE)("lg"),"{font-size:",E.CH[5],";}}h4{",(0,f.aE)("lg"),"{font-size:",E.CH[4],";}}.hide-mobile{",(0,f.B2)("lg"),"{display:none;}}.hide-desktop{",(0,f.aE)("lg"),"{display:none;}}"),I=(0,m.Z)("div",{target:"e1sced31"})(b.Ee,";",v.jn,";h3{font-size:21px;line-height:28px;margin-bottom:19px;",(0,f.aE)("md"),"{font-size:32px;line-height:36px;margin-bottom:34px;}}.intro{margin-bottom:57px;",(0,f.aE)("lg"),"{margin-bottom:72px;}}form{padding-top:47px;padding-bottom:44px;",(0,f.aE)("lg"),"{padding-top:143px;padding-bottom:206px;display:flex;gap:42px;> div:first-of-type{flex-basis:63%;}> div:last-of-type{max-width:492px;flex-basis:37%;}}}"),H=(0,m.Z)("div",{target:"e1sced32"})("position:relative;background:black;min-height:446px;padding-bottom:48px;",(0,f.aE)("lg"),"{min-height:1326px;}.content{",b.Ee,";",v.jn,";height:100%;text-align:left;color:white;position:relative;z-index:100;padding-top:61px;",(0,f.aE)("lg"),"{padding-top:145px;}h2{color:white;font-size:37px;line-height:40px;font-weight:",E.rS.fontWeights.medium,";",(0,f.aE)("md"),"{font-size:54px;line-height:60px;}",(0,f.aE)("lg"),"{font-size:108px;line-height:127px;max-width:1152px;}}p{font-size:16px;line-height:25px;font-weight:",E.rS.fontWeights.medium,";margin-top:6px;",(0,f.aE)("md"),"{font-size:20px;line-height:24px;}",(0,f.aE)("lg"),"{font-size:32px;line-height:39px;margin-top:34px;}}}"),O=(0,m.Z)(C.xI,{target:"e1sced33"})("display:block;position:absolute;top:0;left:0;width:100%;"),N=(0,m.Z)(y.CoverImg,{target:"e1sced34"})("width:75%;max-width:914px;margin-top:15px;",(0,f.aE)("lg"),"{margin-top:94px;}"),k=(0,m.Z)("div",{target:"e1sced35"})("position:relative;background-color:white;padding:25px 31px 42px;min-height:200px;",(0,f.aE)("lg"),"{position:sticky;top:143px;}.error-msg{color:",(0,E.$_)("error"),";}"),U=(0,m.Z)("div",{target:"e1sced36"})("position:relative;height:auto;padding:14px 28px 28px;background-color:white;",(0,f.aE)("lg"),"{padding:28px 0 0;border-top:1px solid #ddd;}div& h3{margin-bottom:13px;font-size:21px;line-height:23px;padding-top:29px;border-top:1px solid #ddd;",(0,f.aE)("md"),"{border-top:0;padding-top:0;margin-bottom:22px;font-size:32px;line-height:35px;}}.title{position:relative;}.inputs{display:flex;flex-wrap:wrap;justify-content:space-between;max-height:0;transition:max-height 0.2s;overflow:hidden;&.reveal{max-height:650px;}h4{margin-top:44px;margin-bottom:13px;font-size:15px;line-height:20px;",(0,f.aE)("md"),"{margin-top:20px;margin-bottom:20px;font-size:20px;line-height:22px;}}}.input{display:inline-block;width:100%;margin-bottom:13px;",(0,f.aE)("lg"),"{&:nth-last-of-type(2),&:last-of-type{width:48%;}}}.select{position:relative;select{color:#888;&.touched{color:black;}}}input,select,.autocomplete-input::part(input){width:100%;font-size:14px;line-height:20px;padding:0 15px 0;
1height:38px;border:0;box-shadow:inset 0 0 0 1px #000;appearance:none;outline:0;font-weight:",E.rS.fontWeights.medium,";caret-color:black;:focus,:focus-within,:focus-visible{box-shadow:inset 0 0 0 2px ",(0,E.$_)("primary"),";}&.error{box-shadow:inset 0 0 0 2px ",(0,E.$_)("error"),";}&.disabled{color:#888;}}.error-msg{color:",(0,E.$_)("error"),";}"),L=(0,m.Z)("div",{target:"e1sced37"})("position:absolute;display:flex;align-items:center;justify-content:center;top:0;right:0;height:100%;padding:0.5rem;pointer-events:none;path{fill:#141414;}"),z=(0,m.Z)("div",{target:"e1sced38"})("border-top:1px solid #ddd;padding-top:37px;padding-bottom:55px;",(0,f.aE)("md"),"{padding-top:50px;padding-bottom:60px;}&:last-of-type{",(0,f.aE)("md"),"{border-bottom:1px solid #ddd;}}.swatches{display:flex;flex-wrap:wrap;gap:19px;",(0,f.aE)("lg"),"{gap:29px 30px;}}"),W=(0,m.Z)("div",{target:"e1sced39"})("display:inline-block;text-align:center;width:85px;cursor:pointer;",(0,f.aE)("lg"),"{width:150px;}&:first-of-type{margin-left:0;}&:last-of-type{margin-right:0;}img{display:block;border-radius:100px;height:85px;overflow:hidden;",(0,f.aE)("lg"),"{height:150px;}}&.active{img{border:2px solid white;box-shadow:0 0 0 2px black;}p{font-weight:",E.rS.fontWeights.semiBold,";}}p{margin-top:13px;font-size:14px;line-height:16px;",(0,f.aE)("md"),"{font-size:16px;line-height:17px;}}"),Q=(0,m.Z)("div",{target:"e1sced310"})("display:flex;gap:16px;margin-top:14px;margin-bottom:21px;",(0,f.aE)("lg"),"{padding:0 20px;gap:16px 25px;}"),F=(0,m.Z)(W,{target:"e1sced311"})("width:53px;position:relative;",(0,f.aE)("lg"),"{width:78px;}.remove-button{position:absolute;top:0px;right:0px;height:20px;width:20px;background-color:",E.rS.colors.greyC5,";border-radius:50%;padding:5px;display:flex;}img{width:100%;height:53px;",(0,f.aE)("lg"),"{height:78px;margin-bottom:4px;}}p{font-size:13px;line-height:14px;",(0,f.aE)("md"),"{font-size:14px;line-height:15px;}}"),M=(0,m.Z)("div",{target:"e1sced312"})("padding:9px 17px;margin-top:18px;margin-bottom:21px;background:#f6f6f6;font-size:14px;line-height:15px;",(0,f.aE)("lg"),"{margin-top:22px;margin-bottom:20px;padding:12px 17px;}span{position:relative;top:-1px;display:inline-block;width:calc(100% - 40px);",(0,f.aE)("md"),"{top:2px;}}"),R=(0,m.Z)(function(e){return o.createElement("svg",w({width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=o.createElement("path",{d:"M8.58673 3.4344C8.34346 3.4344 8.13955 3.51668 7.97498 3.68125C7.81042 3.84581 7.72814 4.04972 7.72814 4.29299C7.72814 4.53626 7.81042 4.74017 7.97498 4.90473C8.13955 5.06929 8.34346 5.15158 8.58673 5.15158C8.82999 5.15158 9.03391 5.06929 9.19847 4.90473C9.36303 4.74017 9.44531 4.53626 9.44531 4.29299C9.44531 4.04972 9.36303 3.84581 9.19847 3.68125C9.03391 3.51668 8.82999 3.4344 8.58673 3.4344ZM9.44531 6.86875H7.72814L7.72814 12.0203H9.44531V6.86875Z",fill:"black"})),s||(s=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.50024 15.8838C12.4905 15.8838 15.7252 12.6164 15.7252 8.58586C15.7252 4.5553 12.4905 1.28788 8.50024 1.28788C4.50999 1.28788 1.27524 4.5553 1.27524 8.58586C1.27524 12.6164 4.50999 15.8838 8.50024 15.8838ZM8.50024 17.1717C13.1947 17.1717 17.0002 13.3277 17.0002 8.58586C17.0002 3.84402 13.1947 0 8.50024 0C3.80582 0 0.000244141 3.84402 0.000244141 8.58586C0.000244141 13.3277 3.80582 17.1717 8.50024 17.1717Z",fill:"black"})))},{target:"e1sced313"})("position:relative;display:inline-block;vertical-align:top;width:17px;height:17px;margin-right:6px;",(0,f.aE)("lg"),"{width:20px;height:20px;margin-right:9px;}"),G=(0,m.Z)("div",{target:"e1sced314"})("padding:100px 18px 151px;text-align:center;",(0,f.aE)("lg"),"{padding:187px 0 293px;}h2{font-size:21px;line-height:25px;font-weight:",E.rS.fontWeights.bold,";",(0,f.aE)("md"),"{font-size:34px;line-height:41px;}}p{margin-top:20px;font-size:14px;line-height:20px;",(0,f.aE)("md"),"{margin-top:48px;font-size:16px;line-height:20px;}}"),P=(0,m.Z)(function(e){return o.createElement("svg",D({width:110,height:110,viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("g",{clipPath:"url(#clip0_2688_21347)"},o.createElement("path",{d:"M54.9843 0C24.633 0 0 24.633 0 54.9843C0 85.3356 24.633 109.969 54.9843 109.969C85.3356 109.969 109.969 85.3356 109.969 54.9843C109.969 24.633 85.367 0 54.9843 0ZM62.5564 88.5404H38.9603L42.4479 69.0917C41.2225 69.2174 39.9343 69.3116 38.6461 69.3116C29.7544 69.3116 21.9623 65.7926 18.5061 60.7341L18.7261 59.6658L26.6124 51.7795H27.6807C29.6601 54.5444 35.2528 57.058 39.7144 57.058C42.6364 57.058 45.15 55.7698 45.15 53.4447C45.15 50.994 42.3222 50.3028 38.4262 49.0774C32.2365 47.1608 25.3242 42.6364 25.3242 34.5301C25.3242 24.413 33.8389 17.6892 46.3125 17.6892C54.136 17.6892 61.7081 20.894 64.5359 25.1043L64.3159 26.1725L56.3668 33.9017H55.3613C53.6647 31.8281 49.7058 29.2202 45.0243 29.2202C42.3536 29.2202 40.5941 30.3828 40.5941 32.5193C40.5941 34.8129 43.4219 36.0383 46.0297 37.0437C49.1088 38.2062 51.7795 38.7404 55.0157 38.7404H71.2282C85.1785 38.7404 92.6564 47.098 92.6564 59.3516C92.6564 76.4439 80.874 88.5404 62.5564 88.5404Z",fill:"black"}),o.createElement("path",{d:"M67.5207 50.9939H60.8597L56.2725 76.2553H63.8446C71.2596 76.2553 77.0094 70.5055 77.0094 60.9539C77.0094 54.6072 73.0191 50.9939 67.5207 50.9939Z",fill:"black"}))),a||(a=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_2688_21347"},o.createElement("rect",{width:110,height:110,fill:"white"})))))},{target:"e1sced315"})("position:relative;display:block;width:77px;height:77px;margin:0 auto 18px;",(0,f.aE)("lg"),"{width:110px;height:110px;margin-bottom:34px;}"),X=(0,m.Z)("div",{target:"e1sced316"})("padding:0 25px 0;",(0,f.aE)("lg"),"{padding:0;}h3.selections{font-size:21px;line-height:23px;",(0,f.aE)("lg"),"{font-size:32px;line-height:35px;margin-bottom:14px;}}.error-msg{color:",(0,E.$_)("error"),";margin-top:5px;font-size:13px;}"),j=(0,m.Z)(B.zx,{target:"e1sced317"})("width:100%;background-color:#000000;color:white;text-transform:uppercase;font-size:13px;line-height:15px;font-weight:",E.rS.fontWeights.semiBold,";padding:10px 0;transition:background-color 0.2s;",(0,f.aE)("lg"),"{line-height:23px;}&:disabled{opacity:1;background-color:#8d8b8b;cursor:auto;}&:focus{box-shadow:none;}"),Y=(0,m.Z)("h2",{target:"e1sced318"})("font-size:21px;line-height:24px;text-align:center;",(0,f.aE)("md"),"{font-size:32px;line-height:35px;}"),V=(0,m.Z)(T.l,{target:"e1sced319"})("margin-bottom:0;padding-bottom:60px;",(0,f.aE)("lg"),"{margin-bottom:0;padding-bottom:150px;}"),q=(0,m.Z)(_.i,{target:"e1sced320"})("div&{.cta{padding:8px 28px 0;box-shadow:-5px 20px 3px -3px #b9a9a9,5px 20px 3px -3px #b9a9a9;}.content{background:white;transition:padding-top 400ms ease-in;}&.active{.inner{",e=>{let{full:t}=e;return t?"top: -320px;":"top: -237px;"},"}}&.reveal{.inner{top:-237px;}.content{padding-top:40px;}}}");var J={src:"/_next/static/media/[email protected]",height:2652,width:3840,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAGAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGNB//EABUQAQEAAAAAAAAAAAAAAAAAAAAB/9oACAEBAAEFAo//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AX//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AX//xAA
1VEAEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAQAGPwKP/8QAFRABAQAAAAAAAAAAAAAAAAAAAAH/2gAIAQEAAT8ho//aAAwDAQACAAMAAAAQ8//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABYQAQEBAAAAAAAAAAAAAAAAAAEAQf/aAAgBAQABPxBEcN//2Q==",blurWidth:8,blurHeight:6},K={src:"/_next/static/media/[email protected]",height:892,width:750,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAcDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGOB//EABUQAQEAAAAAAAAAAAAAAAAAAAEx/9oACAEBAAEFAqf/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AX//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AX//xAAVEAEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAQAGPwKP/8QAFRABAQAAAAAAAAAAAAAAAAAAAQD/2gAIAQEAAT8hGH//2gAMAwEAAgADAAAAEPP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAXEAADAQAAAAAAAAAAAAAAAAAAAREx/9oACAEBAAE/EIUKrGf/2Q==",blurWidth:7,blurHeight:8},$={src:"/_next/static/media/sample-swatches.882dea86.png",height:1032,width:1737,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAUVBMVEUgICCPh3kpJylxYUJDQy4nKSkhISEcHB8ZGh9cTz14dGrOs3N1XjdFLhm/omWXfU6fhFMpJyVBOSkvJSXryoFoX0gsHBOKfGpqaWAkJCMZGRr/N0/nAAAAFHRSTlMC++akE6fktGL4/fb0/tlRpYAfG9TcMykAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAzSURBVHicBcEHAoAgDACxY7YogjIc/P+hJqAhWlGQtZk7TSF85jn24ejxTXkUD3r5dlZ+IpcBq1RIEU0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:5};let ee=(e,t,i)=>{if(e.find(e=>e.sku===i.sku)){t(e.filter(e=>e.sku!==i.sku));return}e.length>=4||t([...e,i])},et={swatches:[],firstName:"",lastName:"",email:"",phone:"","address-1":"","address-2":"",city:"",state:"",postcode:"",skus:""},ei="PENDING",en="SUBMITTED",ea="ERROR",er=e=>{let{body:t}=e,i=t.map(e=>{let{items:t}=e;return t})[0],n=e=>[...new Set(["baker","bedbase","boyd","haussman","palais","seaspray","albert","boheme","elle","jagger"].filter(t=>e.includes(t)))],a=i.map(e=>{if(e.in_stock){let t={tag:e.tag,name:e.name,img:e.image,families:n(e.families),sku:e.sku};return e.mixed_families?{...t,mixedFamilies:n(e.mixed_families)}:t}return!1}).filter(Boolean),r=e=>a.map(t=>t.families.includes(e)&&{...t,tag:"".concat(e,"-").concat(t.tag)}).filter(Boolean).sort((t,i)=>{var n,a;return(null===(n=t.mixedFamilies)||void 0===n?void 0:n.includes(e))?1:(null===(a=i.mixedFamilies)||void 0===a?void 0:a.includes(e))?-1:0});return[{key:"baker",name:"Baker range",swatches:r("baker")},{key:"boyd",name:"Boyd range",swatches:r("boyd")},{key:"bedbase",name:"Bed Base range",swatches:r("bedbase")},{key:"haussman",name:"Haussman range",swatches:r("haussman")},{key:"palais",name:"Palais range",swatches:r("palais")},{key:"seaspray",name:"Seaspray range",swatches:r("seaspray")},{key:"albert",name:"Albert range",swatches:r("albert")},{key:"boheme",name:"Boheme range",swatches:r("boheme")},{key:"elle",name:"Elle range",swatches:r("elle")},{key:"jagger",name:"Jagger range",swatches:r("jagger")}]};var es=i(87536),el=i(54813),eo=i(45209),eA=i(94777);let ep={"SDBED-SWATCH-T-AASH":"ash","SDBED-SWATCH-T-OAK":"oak","SDBED-SWATCH-T-WAN":"walnut","SDBED-SWATCH-T-CBOAK":"carbon_oak","SDBED-SWATCH-U-CHC":"charcoal","SDBED-SWATCH-U-FGR":"frosted_green","SDBED-SWATCH-U-IVY":"ivory","SDBED-SWATCH-U-GRY":"light_grey","SDBED-SWATCH-U-SAN":"sandstone","SDBED-SWATCH-U-GRT":"granite","SDBED-SWATCH-U-NVY":"navy","SDBED-SWATCH-U-JDE":"jade","SDBED-SWATCH-U-NAT":"natural","SDBED-SWATCH-U-SEA":"seamist","SDBED-SWATCH-U-SHL":"shell","SDBED-SWATCH-U-WNV":"washed_navy","SDBED-SWATCH-U-CLNDL-PAL":"calendula","SDBED-SWATCH-U-CHMPN-PAL":"champagne","SDBED-SWATCH-U-MDNT-PAL":"midnight","SDBED-SWATCH-U-FRSTG-PAL":"forest_green","SDBED-SWATCH-U-SMK-PAL":"smoke","SDBED-SWATCH-U-PN-HAUS":"pine","SDBED-SWATCH-U-CRML-HAUS":"caramel","SDBED-SWATCH-U-PTTY-HAUS":"putty","SDBED-SWATCH-U-DVE-HAUS":"dove","SDBED-SWATCH-U-PWTR-HAUS":"pewter","SDBED-SWATCH-U-MSTRD-SEA":"mustard","SDBED-SWATCH-U-WLLW-SEA":"gray_willow","SDBED-SWATCH-U-MOCH-SEA":"mocha","SDBED-SWATCH-U-SLT-SEA":"slate","SDBED-SWATCH-U-MIST-SEA":"mist","SDBED-SWATCH-U-BGE-SEA":"beige","SDBED-SWATCH-U-YOCR-BOYD":"yellow_ochre","SDBED-SWATCH-U-FNLG-BOYD":"fennel_green","SDBED-SWATCH-U-DSKBL-BOYD":"dusk_blue","SDBED-SWATCH-U-TDDY-BOYD":"teddy","SDBED-SWATCH-U-ONXG-BOYD":"onyx_grey","SDBED-SWATCH-U-MDGRY-BOYD":"mid_grey","SDBED-SWATCH-U-PLGRY-BOYD":"pale_grey","SDBED-SWATCH-U-LNN-BOYD":"linen","SDBED-SWATCH-U-CRM-ELLE":"cream","SDBED-SWATCH-U-TOF-ELLE":"toffee","SDBED-SWATCH-U-FOS-ELLE":"fossil","SDBED-SWATCH-U-MUSR-ELLE":"mushroom","SDBED-SWATCH-U-MOS-ALBT":"moss","SDBED-SWATCH-U-CLY-ALBT":"clay","SDBED-SWATCH-U-INK-ALBT":"ink","SDBED-SWATCH-U-STL-ALBT":"steel","SDBED-SWATCH-U-CLD-ALBT":"cloud","SDBED-SWATCH-U-OTM-ALBT":"oatmeal","SDBED-SWATCH-U-OLV-JAG":"olive","SDBED-SWATCH-U-RST-JAG":"rust","SDBED-SWATCH-U-FRN-JAG":"fern","SDBED-SWATCH-U-GNGR-JAG":"ginger","SDBED-SWATCH-U-PBL-JAG":"pebble","SDBED-SWATCH-U-PLR-JAG":"polar","SDBED-SWATCH-U-LGY":"grey_luna"},ed=e=>ep[e];
1class eh extends Error{constructor(e){super(e),this.name="SwatchOrderPayloadError"}}let ec=e=>{let t=[],i=[];for(let{sku:n}of e){let e=ed(n);if(!e){i.push(n);continue}t.push({colour:e})}if(i.length)throw new eh("Unknown swatch SKU(s): ".concat(i.join(", ")));return t},eg=e=>{let{firstName:t,lastName:i,email:n,phone:a,"address-1":r,"address-2":s,city:l,state:o,postcode:A,swatches:p}=e;return{customer:(0,eA.VJ)({firstName:t,lastName:i,email:n,phone:a}),address:(0,eA.VJ)({street:r,...s?{street2:s}:{},suburb:l,state:o,postcode:A,country:"au"}),swatches:ec(p)}};var eu=i(18339),em=i(25859),ef=i(56224),ex=i(37022),eE=i(5559),eS=i(7535),eb=i(93747);let ev=e=>{var t,i,n,a,r,s,o,A,p,d,h,c,g,u,m,f,x;let{register:E,control:S,errors:b,reset:v,getValues:D,lang:w}=e;return(0,l.BX)(l.HY,{children:[(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{...E("firstName",{required:"This value is required",minLength:{value:2,message:"Minimum of two characters required"}}),placeholder:"First Name*",tabIndex:1}),(null===(t=b.firstName)||void 0===t?void 0:t.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(i=b.firstName)||void 0===i?void 0:i.message})]}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{...E("lastName",{required:"This value is required",minLength:{value:2,message:"Minimum of two characters required"}}),placeholder:"Last Name*",tabIndex:2}),(null===(n=b.lastName)||void 0===n?void 0:n.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(a=b.lastName)||void 0===a?void 0:a.message})]}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{...E("email",{required:"This value is required",validate:e=>!!(0,eS.v)(e)||"This value is invalid"}),placeholder:"Email*",tabIndex:3}),(null===(r=b.email)||void 0===r?void 0:r.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(s=b.email)||void 0===s?void 0:s.message})]}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{...E("phone",{required:"This value is required",onChange:e=>{let t=new eE.R("AU").input(e.target.value);e.target.value=t},validate:e=>!!(0,ef.y)(e,"AU")&&"MOBILE"===(0,ex.R)(e,"AU")||"This number needs to be 10 digits and must be a valid mobile phone number."}),placeholder:"Phone Number*",tabIndex:4}),(null===(o=b.phone)||void 0===o?void 0:o.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(A=b.phone)||void 0===A?void 0:A.message})]}),(0,l.tZ)("h4",{children:"Address"}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)(eb.k,{name:"address-1",required:"This value is required",control:S,lang:w,onSelectPlace:(e,t)=>{Object.keys(t).length&&v({...D(),"address-1":t.street,city:t.suburb,state:t.stateShort,postcode:t.postcode})},placeholder:"Address 1*",tabIndex:5}),(null===(p=b["address-1"])||void 0===p?void 0:p.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(d=b["address-1"])||void 0===d?void 0:d.message})]}),(0,l.tZ)("div",{className:"input",children:(0,l.tZ)("input",{...E("address-2",{value:""}),placeholder:"Address 2",tabIndex:6})}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{...E("city",{required:"This value is required"}),placeholder:"City*",tabIndex:7}),(null===(h=b.city)||void 0===h?void 0:h.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(c=b.city)||void 0===c?void 0:c.message})]}),(0,l.BX)("div",{className:"input",children:[(0,l.BX)("div",{className:"select",children:[(0,l.BX)("select",{id:"state",...E("state",{required:"This value is required"}),tabIndex:8,className:D().state?"touched":"",children:[(0,l.tZ)("option",{value:"",disabled:!0,children:"Select state"}),(0,l.tZ)("option",{value:"VIC",children:"Victoria"}),(0,l.tZ)("option",{value:"NSW",children:"New South Wales"}),(0,l.tZ)("option",{value:"QLD",children:"Queensland"}),(0,l.tZ)("option",{value:"SA",children:"South Australia"}),(0,l.tZ)("option",{value:"NT",children:"Northern Territory"}),(0,l.tZ)("option",{value:"TAS",children:"Tasmania"}),(0,l.tZ)("option",{value:"ACT",children:"Australian Capital Territory"}),(0,l.tZ)("option",{value:"WA",children:"Western Australia"})]}),(0,l.tZ)(L,{children:(0,l.tZ)(em.T,{isToggled:!1})})]}),(null===(g=b.state)||void 0===g?void 0:g.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(u=b.state)||void 0===u?void 0:u.message})]}),(0,l.BX)("div",{className:"input",children:[(0,l.tZ)("input",{type:"number",id:"postcode",...E("postcode",{required:"This value is required",minLength:{value:4,message:"Check your postcode"}}),className:(null===(m=b.postcode)||void 0===m?void 0:m.message)?"error":"",tabIndex:9,placeholder:"Postcode"}),(null===(f=b.postcode)||void 0===f?void 0:f.message)&&(0,l.tZ)("span",{className:"error-msg",children:null===(x=b.postcode)||void 0===x?void 0:x.message})]})]})};var eD=i(32971);let ew=e=>{let{swatchWatch:t,control:i,familiesSwatches:n}=e;return(0,l.BX)(X,{children:[(0,l.tZ)("h3",{className:"selections",children:"Your sample selections:"}),0===t.length&&(0,l.BX)(M,{children:[(0,l.tZ)(R,{}),"You have no swatches selected."]}),t.length>=4&&(0,l.BX)(M,{children:[(0,l.tZ)(R,{}),(0,l.tZ)("span",{children:"You have reached your maximum of 4 swatches."})]}),t.length>0&&t.length<=4&&(0,l.tZ)(es.Qr,{name:"swatches",control:i,render:e=>{let{field:{value:i,onChange:a}}=e;return(0,l.tZ)(Q,{children:t.map(e=>{let t=n.reduce((t,i)=>{let{swatches:n}=i;return{...t,...n.find(t=>t.tag===e.tag)}},{});return(0,l.BX)(F,{children:[(0,l.tZ)(y.FillImg,{src:t.img.url,alt:t.name,width:78,height:78,sizes:"(min-width: 1024px) 78px, 53px"}),(0,l.tZ)("p",{children:t.name}),(0,l.tZ)("div",{className:"remove-button",onClick:()=>ee(i,a,e),children:(0,l.tZ)(eD.r,{})})]},"sticky-".concat(t.tag))})})}})]})},eB=e=>{let{formSubmissionState:t,setFormSubmissionState:i,lang:n,familiesSwatches:a}=e,r=(0,o.useRef)(null),[s,A]=(0,o.useState)(null),p=(0,el.ZY)((0,f.i3)("xl"),!1),[d,h]=(0,o.useState)(!1),{watch:c,register:g,handleSubmit:u,control:m,formState:x,clearErrors:E,reset:S,getValues:b}=(0,es.cI)({defaultValues:et}),{errors:v}=x,D=c("swatches"),w=async e=>{try{i(ei);let t=eg(e);if(!(await (0,eo.f)(t)).ok){i(ea);return}document.body.scrollTop=0,document.documentElement.scrollTop=0,i(en)}catch(e){i(ea)}};return(0,o.useEffect)(()=>{var e,t;A(null!==(t=null===(e=r.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:null)},[x]),(0,l.tZ)(I,{children:(0,l.BX)("form",{onSubmit:u(w,e=>{let{"address-1":t,city:i,email:n,firstName:a,lastName:r,phone:s}=e;t&&i&&n&&a&&r&&s&&E(),h(!0)}),id:"swatches",children:[(0,l.tZ)(es.Qr,{name:"swatches",control:m,render:e=>{let{field:{value:t,onChange:i}}=e;return(0,l.BX)("div",{children:[(0,l.tZ)("h3",{className:"intro",children:"Select your samples below:"}),a.map(e=>(0,l.BX)(z,{children:[(0,l.tZ)("h3",{children:e.name}),(0,l.tZ)("div",{className:"swatches",children:e.swatches.map(e=>(0,l.BX)(W,{className:t.find(t=>t.sku===e.sku)?"active":"",onClick:()=>ee(t,i,e),children:[(0,l.tZ)(y.ContainImg,{className:"img",src:e.img.url,alt:e.name,width:e.img.dimensions.width,height:e.img.dimensions.height,sizes:" (min-width: 1024px) 150px, 75px "}),(0,l.tZ)("p",{children:e.name})]},e.tag))})]},e.key))]})}}
1),!p&&(0,l.tZ)("div",{children:(0,l.BX)(k,{children:[t===ei&&(0,l.tZ)(eu.N,{fillContainer:!0}),(!t||t===ea)&&(0,l.BX)(l.HY,{children:[(0,l.tZ)(ew,{swatchWatch:D,control:m,familiesSwatches:a}),(0,l.BX)(U,{children:[(0,l.BX)("div",{className:"title",onClick:()=>h(!d),children:[(0,l.tZ)("h3",{children:"Shipping Information:"}),(0,l.tZ)(L,{children:(0,l.tZ)(em.T,{isToggled:d})})]}),(0,l.tZ)("div",{className:"".concat(d?"reveal":""," inputs"),children:(0,l.tZ)(ev,{register:g,control:m,errors:v,reset:S,getValues:b,lang:n})})]}),(0,l.tZ)(j,{disabled:!(D.length>0),gtmClass:"order-swatches",type:"submit",variant:"plain",tabIndex:10,children:"Order Swatches"}),t===ea&&(0,l.tZ)("p",{className:"error-msg",children:"Something has gone wrong, please try again."})]})]})}),p&&(0,l.BX)(q,{full:D.length>=4,active:D.length>0,stickyHeight:0===D.length?80:100,offsetOpenMenu:D.length>=4?-157:-140,collapsedContent:(0,l.BX)(l.HY,{children:[t===ei&&(0,l.tZ)(eu.N,{fillContainer:!0}),(0,l.tZ)(j,{disabled:!(D.length>0),gtmClass:"order-swatches",type:"submit",variant:"plain",form:"swatches",tabIndex:10,children:"Order Swatches"}),t===ea&&(0,l.tZ)("p",{className:"error-msg",children:"Something has gone wrong, please try again."})]}),openMenu:d,setOpenMenu:()=>h(!d),resetContentHeight:s,ref:r,children:[(0,l.tZ)(ew,{swatchWatch:D,control:m,familiesSwatches:a}),(0,l.BX)(U,{children:[(0,l.tZ)("h3",{children:"Shipping Information"}),(0,l.tZ)(ev,{register:g,control:m,errors:v,reset:S,getValues:b,lang:n})]})]}),t===ea&&(0,l.tZ)("p",{className:"error-msg",children:"Something has gone wrong, please try again."})]})})};var ey=i(38273),eC=i(53252);let eT=e=>{let{children:t}=e;return(0,l.tZ)("div",{children:t})};var e_=e=>{let{lang:t,familiesSwatches:i}=e,[n,a]=(0,o.useState)(null);return(0,l.BX)(Z,{children:[(0,l.tZ)(A.PB,{title:"SD Bed Free Swatches | Sleeping Duck",description:"See our range of free swatches for the SD Indestruct Bed",canonical:(0,d.V)({lang:t,path:"/sdbed/swatches/"})}),n===en?(0,l.tZ)(I,{children:(0,l.BX)(G,{children:[(0,l.tZ)(P,{}),(0,l.BX)("h2",{children:["Your swatches order",(0,l.tZ)("br",{}),"has been submitted"]}),(0,l.tZ)("p",{children:"You will receive a confirmation email for your swatches order shortly."})]})}):(0,l.BX)(l.HY,{children:[(0,l.BX)(H,{children:[(0,l.BX)("div",{className:"content",children:[(0,l.tZ)("h2",{children:"Order your Indestruct Bed sample finishes"}),(0,l.tZ)("p",{children:"Free samples to help you assess the look in the setting of your bedroom."}),(0,l.tZ)(N,{className:"sample-swatches",src:$,width:914,height:543,alt:"Four sample swatches - Charcoal, Washed Navy, American Walnut and European Ash"})]}),(0,l.tZ)(O,{sources:{default:K,lg:J},alt:"SDBed CSpine Frame"})]}),(0,l.tZ)(eB,{formSubmissionState:n,setFormSubmissionState:a,lang:t,familiesSwatches:i})]}),(0,l.tZ)(V,{title:(0,l.tZ)(Y,{children:"Choose your style"}),offset:0,Reveal:eT})]})};(0,h.k7)([u.H,p.K.A,(0,c.ty)("SD Indestruct Bed: Free Swatches"),(0,g.x)({header:{sdbed:!0}}),async e=>{let{previewData:t}=e,{data:i}=await (0,ey._)({previewData:t}).getByUID("swatch_order_config","swatch-page-config",{graphQuery:eC.V8});return{props:{familiesSwatches:er(i)}}}]);var eZ=!0},30075:function(e,t,i){"use strict";i.d(t,{C:function(){return c},f:function(){return g}});var n=i(82729),a=i(19884),r=i(84883),s=i(41657),l=i(16829),o=i(41449),A=i(50105),p=i(70917);function d(){let e=(0,n._)(["\n          h1 {\n            ","\n          }\n          "," {\n            ","\n\n            h1 {\n              padding: 0;\n            }\n          }\n        "]);return d=function(){return e},e}let h=(0,p.iv)("border-radius:8px;background-color:#161617;padding:24px;margin:32px 0;&:first-of-type{margin-top:20px;}",(0,a.aE)("md"),"{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;flex-basis:calc(50% - 16px);min-height:271px;&:first-of-type{margin-top:0;}}",(0,a.aE)("lg"),"{padding:24px 56px;}",(0,a.aE)("xl"),"{flex-basis:calc(33% - 18px);}&:last-of-type{margin-bottom:0;}"),c=(0,l.Z)("div",{target:"e7xno8j0"})("text-align:center;padding-top:102px;max-width:1472px;margin-left:auto;margin-right:auto;overflow-x:clip;overflow-y:visible;h1,h2,h3,h4,h5,h6,p{color:#fff;}",(0,a.aE)("lg"),"{padding-top:88px;}",e=>{let{carousel:t,theme:i}=e;return t?(0,p.iv)(d(),(0,r.z7)(i),(0,a.aE)("md"),(0,r.z7)(i)):(0,r.z7)(i)},"  h1{line-height:1.3;margin:0;",(0,a.aE)("lg"),"{font-size:80px;}}.cards{",(0,a.aE)("md"),"{margin-top:64px;display:flex;flex-wrap:wrap;gap:32px;justify-content:center;}}.card{",h,";}.headline{margin:10px 0 8px;line-height:27px;strong{font-weight:",s.rS.fontWeights.bold,";}}p{font-weight:",s.rS.fontWeights.semiBold,";line-height:20px;}strong{",(0,a.aE)("md"),"{font-size:20px;}}"),g=(0,l.Z)(o.l,{target:"e7xno8j1"})(A.v," ",e=>{let{theme:t}=e;return(0,r.z7)(t)},"  margin:40px 0 0;.embla__viewport{height:293px;overflow:visible;}.embla__slide{flex:0 0 280px;height:100%;margin-right:32px;}div.card{",h,";height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 24px;margin:0;width:100%;&:first-of-type{margin-top:0;}}")},7535:function(e,t,i){"use strict";i.d(t,{d:function(){return d},v:function(){return a}});var n=i(56224);let a=e=>/^(([^<>()[\]\\.,;:\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(e),r=e=>{let{customer:t,lang:i}=e,{firstname:r,lastname:s,email:l,phone:o}=t,A=[];if("string"!=typeof r||""===r?A.push({type:"FIELD_MISSING",field:"firstname"}):r.length<2&&A.push({type:"FIELD_TOO_SHORT",field:"firstname"}),"string"!=typeof s||""===s?A.push({type:"FIELD_MISSING",field:"lastname"}):s.length<2&&A.push({type:"FIELD_TOO_SHORT",field:"lastname"}),"string"!=typeof l||""===l?A.push({type:"FIELD_MISSING",field:"email"}):a(l)||A.push({type:"FIELD_INVALID",field:"email"}),"string"!=typeof o||""===o)A.push({type:"FIELD_MISSING",field:"phone"});else if(o.length<2)A.push({type:"FIELD_TOO_SHORT",field:"phone"});else try{(0,n.y)(o,i.toUpperCase())||A.push({type:"FIELD_INVALID",field:"phone"})}catch(e){A.push({type:"FIELD_INVALID",field:"phone"})}return A},s=e=>0===r(e).length,l=e=>{let{address:t}=e;if(!t.shipping)return[{type:"FIELD_MISSING",field:"address-shipping"}];let{shipping:{street:i,postcode:n,state:a,country:r,suburb:s}}=t,l=[];return"string"!=typeof i||""===i?l.push({type:"FIELD_MISSING",field:"shipping-street"}):i.length<2&&l.push({type:"FIELD_TOO_SHORT",field:"shipping-street"}),"string"!=typeof n||""===n?l.push({type:"FIELD_MISSING",field:"shipping-postcode"}):n.length<2&&l.push({type:"FIELD_TOO_SHORT",field:"shipping-postcode"}),"string"!=typeof a||""===a?l.push({type:"FIELD_MISSING",field:"shipping-state"}):a.length<2&&l.push({type:"FIELD_TOO_SHORT",field:"shipping-state"}),"string"!=typeof r||""===r?l.push({type:"FIELD_MISSING",field:"shipping-country"}):2!==r.length&&l.push({type:"FIELD_INVALID",field:"shipping-country"}),"string"!=typeof s||""===s?l.push({type:"FIELD_MISSING",field:"shipping-suburb"}):s.length<2?l.push({type:"FIELD_TOO_SHORT",field:"shipping-suburb"}):"none"===s&&l.push({type:"FIELD_INVALID",field:"shipping-suburb"}),l},o=e=>0===l(e).length,A=e=>{let{shipping:t,cartItems:i}=e;if("object"!=typeof t||"object"!=typeof t.groups)return[{type:"MISSING_SHIPPING_METHOD_GROUPS"}];let{groups:n={}}=t,a=Object.keys(n).reduce((e,t)=>
1[...e,...t.split(",")],[]).filter(e=>e.length),r=i.filter(e=>{let{product:t}=e;return -1===a.indexOf(t)}),s=["bed_indestruct_frame","bed_indestruct_frame_v2","bed_platform","bed_side_pack","bed_headboard","bed_leg_pack","bed_end","us_bed_end","us_bed_indestruct_frame","us_bed_leg_pack","us_bed_platform","us_bed_side_pack","us_bed_headboard","auto_sheet_hub","auto_sheet_lift_module","auto_sheet_platform"],l=a.filter(e=>!s.includes(e)&&!i.find(t=>t.product===e));return r.length||l.length?[{type:"INVALID_SHIPPING_METHOD_PRODUCTS"}]:[]},p=e=>0===A(e).length,d=(e,t)=>{let{lang:i,router:n,readyToValidate:a,state:r}=t,{cartItems:l,customer:A,shipping:d,address:h}=r;return a?Object.keys(l).length?(!["shipping","payment"].includes(e)||s({customer:A,lang:i}))&&o({address:h,lang:i})?!!("payment"!==e||p({shipping:d,cartItems:l}))||(n.push("/checkout/shipping"),!1):(n.push("/checkout/details"),!1):(n.push("/cart"),!1):null}},87651:function(e,t,i){"use strict";i.d(t,{H:function(){return n}});let n=async e=>{let{locale:t}=e;return"default"===t||"us"===t?{notFound:!0}:{}}},63409:function(e,t,i){"use strict";i.d(t,{K:function(){return n}});var n={};i.r(n),i.d(n,{A:function(){return l},F:function(){return s}});var a=i(25275),r=i(40753);let s=async()=>({paths:[...r.q7].map(e=>({params:{family:e},locale:a.X9})),fallback:!1}),l=async e=>{let{params:t,locale:i}=e;return{props:{lang:i||(null==t?void 0:t.lang)||a.X9,family:(null==t?void 0:t.family)||null}}}},87234:function(e,t,i){"use strict";i.d(t,{R3:function(){return l},k7:function(){return n}});let n=e=>async t=>{let i={props:{},ctx:{}},n=[],a=async e=>{if(i.notFound)return;let a=await e({props:i.props,ctx:i.ctx,...t});a.notFound&&(i={notFound:!0,props:{},ctx:{}}),a.cleanup&&(n.push(a.cleanup),delete a.cleanup),i={...i,...a,props:{...i.props,..."props"in a&&a.props},ctx:{...i.ctx,..."ctx"in a&&a.ctx}}};for(let t of e)await a(t);for(let e of n.reverse())await a(e);return delete i.ctx,i},a=e=>{if(0===e.length)return[];let t=e[0].map(e=>[e]);for(let i of e.slice(1))t=t.map(e=>{let[...t]=e;return i.map(e=>[...t,e])}).flat();return t},r=e=>{let t={params:{}};return Object.assign(t,...e),t.params={},Object.assign(t.params,...e.map(e=>{let{params:t}=e;return t})),t},s=e=>{let t={paths:[],fallback:!0};Object.assign(t,...e);let i=a(e.map(e=>e.paths)).map(e=>r(e));return t.paths=i,t},l=e=>async()=>s(await Promise.all(e.map(e=>e({}))))},44740:function(e,t,i){"use strict";i.d(t,{C:function(){return o},t:function(){return s}});let n=e=>e.replace(/\W+/g,"-").replace(/^-*/,"").replace(/-*$/,"").toLowerCase(),a=e=>{let t=(e||"").split(/[^a-zA-Z0-9_]/g).filter(e=>!!e),i={};for(let e of t)i[e]=!0;return i},r=e=>{var t;let{faq_uid:i,faq_question:r,faq_answer:s,tags:l}=e;return i||(null==r?void 0:null===(t=r[0])||void 0===t?void 0:t.text)?{id:i?n(i):n(r[0].text),q:r,a:s,tags:a(l)}:null},s=e=>{var t,i;if(!e||!(null===(t=e.items)||void 0===t?void 0:t.length))return null;let{slice_type:s,primary:{faq_section_uid:l,section_title:o,tags:A},items:p}=e;return{type:s,id:l?n(l):n(null===(i=o[0])||void 0===i?void 0:i.text),title:o,tags:a(A),faqs:p.map(r).filter(Boolean).filter(e=>!e.tags.hidden)}},l=e=>{let t=new Set,i=e=>{if(t.has(e))throw Error("Duplicate FAQ id: ".concat(e));t.add(e)};for(let t of e)for(let e of(i(t.id),t.faqs))i(e.id)},o=e=>{let t=e.map(s).filter(Boolean).filter(e=>!e.tags.hidden);return l(t),t}},14311:function(e,t,i){"use strict";i.d(t,{MN:function(){return d},NF:function(){return o},Uj:function(){return A},vw:function(){return p}});var n=i(16829),a=i(47858),r=i(71879),s=i(19884),l=i(98293);let o=(0,n.Z)("div",{target:"epee2t0"})("margin-top:",r.Dh[2],";"),A=(0,n.Z)("span",{target:"epee2t1"})(a.KG,";display:block;font-size:",r.rS.fontSizes[0],";text-align:center;",(0,s.aE)("md"),"{font-size:",r.rS.fontSizes[1],";}"),p=(0,n.Z)(l.r,{target:"epee2t2"})("margin:0px 10px;svg{width:80px;}"),d=(0,n.Z)("div",{target:"epee2t3"})("display:flex;flex-direction:row;justify-content:center;align-items:baseline;padding-top:20px;column-gap:16px;")}},function(e){e.O(0,[5737,5675,708,4780,9460,5251,4385,6224,5783,753,5863,3852,1912,382,4726,6414,5705,3747,7223,6496,2888,9774,179],function(){return e(e.s=91284)}),_N_E=e.O()}]);

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.