1"use strict";(self.webpackChunkozdesign=self.webpackChunkozdesign||[]).push([[1696],{38748:function(e,t,l){l.r(t),l.d(t,{default:function(){return Ce}});var n=l(54506),a=l(96540),i=l(27414),s=l(43048),r=l(44479),o=l(61105),m=l(56807),c=l(11646),u=l(6663),d=l(24794),p=l(20278),h=l(48950),E=l(37173),v=l(64564),g=l(74331),f=l(13962),y=l(5337),N=l(20733),b=l(75601),A=(l(90843),l(3322)),k=l.n(A),w=l(38263),F=l(30755),x=l(78384),S=l(91526),C=l(30247),_=l(71468),I=l(2486),D=l(61290),O=l(90550),P=l(5674),T=l(49263),M=l(98888),z=l(29108),B=l(69675),$=l(72325),H=l(14011),W=l(8591),L=l(23838),R=l(79995),q=l(34610),V=l(57278),U=l(60323),K=l(98683),G=l(45741),j=l(71524),Y=l(16570),Z=l(66396),X=l.n(Z),Q=l(91556),J=l(85745),ee=l(87006),te=l(62667),le=l(34429),ne=l(59237),ae=l(97696),ie=l(88316),se=l(45877);var re=e=>{let{product:t,homewareImage:l,selectedOptions:n,bundleItems:i}=e;const{removeSuppliersFromColour:s}=(0,Q.A)(),{0:m,1:c}=(0,a.useState)(null),{0:u,1:p}=(0,a.useState)(!1),h=(0,a.useMemo)((()=>(null==t?void 0:t.pageType)===X().HOMEWARE),[t]),E=(0,a.useMemo)((()=>null==t?void 0:t.pim),[t]),v=(0,a.useCallback)((e=>(0,se.hasValueByKey)(E,e)),[E]);(0,a.useEffect)((()=>{t&&(0,S.graphql)("https://shop.ozdesignfurniture.com.au/graphql",`\n {\n StockDetails(productId: ${null==t?void 0:t.id}) {\n isInStock\n qty\n dead\n leadTime\n backOrderTimeFrame\n }\n }\n `).then((e=>{let{data:{StockDetails:t}}=e;c(t)}))}),[t]);const g=(0,a.useMemo)((()=>a.createElement(ae.A,{stockDetails:m})),[m]),f=(0,a.useMemo)((()=>{if(v("additionalPdsDocument"))return null==E?void 0:E.additionalPdsDocument;if(Array.isArray(i)&&i.length>0){var e,t;const l=null===(e=i.find((e=>{var t;return null==e||null===(t=e.pim)||void 0===t?void 0:t.additionalPdsDocument})))||void 0===e||null===(t=e.pim)||void 0===t?void 0:t.additionalPdsDocument;if(l)return l}return""}),[i,null==E?void 0:E.additionalPdsDocument]),y=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("features",t,i)),[t,i]),N=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("mainStyles",t,i)),[t,i]),b=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("comfort",t,i)),[t,i]),A=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("numberRecliners",t,i)),[t,i]),k=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("upholsteryType",t,i)),[t,i]),w=(0,a.useMemo)((()=>{const e=(0,G.mergeFieldsFromBundleItems)("scatterQuantity",t,i,!1);if(!e)return"";return e.split(",").map((e=>parseInt(e.trim(),10))).filter((e=>!isNaN(e))).reduce(((e,t)=>e+t),0)}),[t,i]),F=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("internalStorage",t,i)),[t,i]),x=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("handcrafted",t,i)),[t,i]),C=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("onlineOnlyPurchase",t,i)),[t,i]),_=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("pattern",t,i)),[t,i]),I=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("shape",t,i)),[t,i]),D=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("extensionLeafStorage",t,i)),[t,i]),O=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("extensionNumber",t,i)),[t,i]),P=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("internalExternalExtensionStorage",t,i)),[t,i]),T=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("handle",t,i)),[t,i]),M=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("shelfType",t,i)),[t,i]),z=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("drawerNumber",t,i)),[t,i]),B=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("numberSeatsClosed",t,i)),[t,i]),$=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("inDoorNumber",t,i)),[t,i]),H=(0,a.useMemo)((()=>
1(0,G.mergeFieldsFromBundleItems)("australianTimber",t,i)),[t,i]),W=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("numberSeatsSingleExtension",t,i)),[t,i]),L=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("numberSeatsDoubleExtension",t,i)),[t,i]),R=(0,a.useMemo)((()=>(0,G.mergeFieldsFromBundleItems)("numberSeatsTripleExtension",t,i)),[t,i]),q=!((h?null==l||!l.cloudinaryImage:!f)||u);return a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row-reverse homeware-feature"},a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0"},q&&(h?a.createElement(d.Link,{"aria-label":"Homeware Image",to:l.link},a.createElement("div",{className:"desc-image-wrap"},a.createElement(ie.A,{src:`https://assets.ozdesign.com.au/image/upload/q_auto,f_auto,dpr_3.0,c_fit,w_auto/${l.cloudinaryImage}`,onError:()=>p(!0)}))):a.createElement(d.Link,{"aria-label":"Additional PDS Document",to:`${G.ASSETS_PREFIX}${encodeURIComponent(f)}`},a.createElement("div",{className:"desc-image-wrap"},a.createElement(ie.A,{alt:f,src:`${G.ASSETS_PREFIX}${encodeURIComponent(f)}.jpg`,onError:()=>p(!0)}))))),a.createElement(o.A,{xs:12,lg:7},a.createElement("ul",{className:"list-point mb-4"},y&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Features:"),a.createElement("span",null,y)),N&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Style:"),a.createElement("span",null,N)),b&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Comfort:"),a.createElement("span",null,b)),A&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Number of Recliners:"),a.createElement("span",null,A)),k&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Upholstery Type:"),a.createElement("span",null,k)),!(null==n||!n.upholstery)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Upholstery:"),a.createElement("span",null,s(null==n?void 0:n.upholstery))),w>0&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Scatter Cushions Included: "),a.createElement("span",null,w)),"Y"===F&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Internal Storage:"),a.createElement("span",null,"Yes")),"Y"===x&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Handcrafted:"),a.createElement("span",null,"Yes")),C&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Online only purchase:"),a.createElement("span",null,"Yes")),_&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Pattern:"),a.createElement("span",null,_)),I&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Shape:"),a.createElement("span",null,I)),D&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Extension Leaf Storage:"),a.createElement("span",null,D)),O&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Extension Number:"),a.createElement("span",null,O)),P&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Internal / External Extension Storage:"),a.createElement("span",null,P)),T&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Handle:"),a.createElement("span",null,T)),M&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Shelf Type:"),a.createElement("span",null,M)),z&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Drawer Number:"),a.createElement("span",null,z)),B&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Number of Seats:"),a.createElement("span",null,B)),W&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Number Seats Single Extension:"),a.createElement("span",null,W)),L&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Number Seats Double Extension:"),a.createElement("span",null,L)),R&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Number Seats Triple Extension:"),a.createElement("span",null,R)),H&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Australian timber:"),a.createElement("span",null,H)),!(null==n||!n.timberFinish)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Timber finish:"),a.createElement("span",null,s(null==n?void 0:n.timberFinish))),$&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"In door number:"),a.createElement("span",null,$)),a.createElement("li",null,a.createElement("span",{className:"text-level"},"Availability:"),a.createElement("span",null,g))),a.createElement("div",{className:"link-wrap"},f&&a.createElement(d.Link,{"aria-label":"Download product information guide",to:`${G.ASSETS_PREFIX}${encodeURIComponent(f)}`,className:"hover-link text-underline"},"Download product information guide".toUpperCase()),a.createElement(d.Link,{"aria-label":"Orders & Availability",to:"/orders-and-availability",className:"hover-link text-underline"},"ORDERS & AVAILABILITY"))))};var oe=e=>{var t,l;let{product:n,selectedOptions:i}=e;const{removeSuppliersFromColour:s}=(0,Q.A)(),m=(0,a.useMemo)((()=>null==n?void 0:n.pim),[n]),c=(0,a.useMemo)((()=>(null==n?void 0:n.pageType)===X().HOMEWARE),[n]),u=(0,a.useCallback)((e=>(0,se.hasValueByKey)(m,e)),[m]),{0:d,1:p}=(0,a.useState)();(0,a.useEffect)((()=>{(async()=>{const e=[`https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,h_568,w_568/Product/${null==n?void 0:n.sku}-29`];null!=i&&i.upholstery&&e.push((0,F.getLargeSwatchImageByName)(i.upholstery));for(const t of e){if(await(0,F.linkExists)(t))return p(t)}})()}),[null==n?void 0:n.sku,null==i?void 0:i.upholstery]);const h=((null==m?void 0:m.productType)||"Furniture")+" Material and Finis
1hes";return a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row"},!!d&&a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0"},a.createElement("div",{className:"desc-image-wrap has-replacement"},a.createElement(ie.A,{alt:h,src:d}))),a.createElement(o.A,{xs:12,lg:d?7:null},a.createElement("ul",{className:"list-point mb-4"},u("timberComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Timber:"),a.createElement("span",null,null==m?void 0:m.timberComposition)),u("fabricComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Fabric:"),a.createElement("span",null,null==m?void 0:m.fabricComposition)),u("leatherPuComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leather:"),a.createElement("span",null,null==m?void 0:m.leatherPuComposition)),u("stoneComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Stone composition:"),a.createElement("span",null,null==m?void 0:m.stoneComposition)),u("metalComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Metal Composition:"),a.createElement("span",null,null==m?void 0:m.metalComposition)),u("rattanWickerComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Rattan/Wicker Composition:"),a.createElement("span",null,null==m?void 0:m.rattanWickerComposition)),u("glassType")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Glass Type:"),a.createElement("span",null,null==m?void 0:m.glassType)),u("structuralComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Composition:"),a.createElement("span",null,null==m?void 0:m.structuralComposition)),u("seatSupportComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Support Composition:"),a.createElement("span",null,null==m?void 0:m.seatSupportComposition)),u("seatCushionComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Cushion Composition:"),a.createElement("span",null,null==m?void 0:m.seatCushionComposition)),u("backCushionComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Back Cushion Composition:"),a.createElement("span",null,null==m?void 0:m.backCushionComposition)),u("otherComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Other Composition:"),a.createElement("span",null,null==m?void 0:m.otherComposition)),c?a.createElement(a.Fragment,null,(u("stainPaint")||u("otherMaterialName"))&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Finish:"),a.createElement("span",null,null==m||null===(t=m.stainPaint)||void 0===t?void 0:t.split(",").map((e=>s(null==e?void 0:e.trim()))).join(", "),!(null==m||!m.otherMaterialName)&&", ",null==m||null===(l=m.otherMaterialName)||void 0===l?void 0:l.split(",").map((e=>s(null==e?void 0:e.trim()))).join(", ")))):a.createElement(a.Fragment,null,u("stainPaint")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg colour:"),a.createElement("span",null,s((null==i?void 0:i.legFinish)||(null==m?void 0:m.stainPaint))))),u("timberGrain")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Timber Grain:"),a.createElement("span",null,null==m?void 0:m.timberGrain)),u("texture")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},c?"Texture:":"Finish:"),a.createElement("span",null,null==m?void 0:m.texture)),u("armDetail")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Arm Detail:"),a.createElement("span",null,null==m?void 0:m.armDetail)),u("legFootComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg Composition:"),a.createElement("span",null,null==m?void 0:m.legFootComposition)),u("legFootDetail")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg Detail:"),a.createElement("span",null,null==m?void 0:m.legFootDetail)),u("mattressType")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Mattress Type:"),a.createElement("span",null,null==m?void 0:m.mattressType)),u("mechanismType")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Mechanism Type:"),a.createElement("span",null,null==m?void 0:m.mechanismType)),u("hangingType")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Hang Type:"),a.createElement("span",null,null==m?void 0:m.hangingType)),u("scatterCushionComposition")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Cushion Composition:"),a.createElement("span",null,null==m?void 0:m.scatterCushionComposition)))))},me=l(38362),ce=l(22205);var ue=e=>{let{product:t}=e;const l=(0,a.useMemo)((()=>null==t?void 0:t.pim),[t]);return a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row-reverse"},a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0"},a.createElement(ce.A,{product:t})),a.createElement(o.A,{xs:12,lg:7},a.createElement("ul",{className:"list-point mb-0"},!(null==t||!t.size_width)&&!(null==t||!t.size_depth)&&!(null==t||!t.size_height)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Product Dimensions"),a.createElement("span",null,null==t?void 0:t.size_width,"W, ",null==t?void 0:t.size_depth,"D, ",null==t?void 0:t.size_height,"H (cm)")),!(null==t||!t.weight)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Weight:"),a.createElement("span",null,null==t?void 0:t.weight," (kg)")),!!l&&a.createElement(a.Fragment,null,a.createElement(me.A,{show:(0,G.isValidDimension)(null==t?void 0:t.seatHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Height:"),a.createElement("span",null,null==t?void 0:t.seatHeight," (cm)"))),a.createElement(me.A,{show:!(null==l||!l.gasliftSeatHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Gaslift Seat Height:"),a.createElement("span",null,null==l?void 0:l.gasliftSeatHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.seatDepth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Depth:"),a.createElement("span",null,null==l?void 0:l.seatDepth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.seatCushionWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Cushion Width:"),a.createElement("span",null,null==l?void 0:l.seatCushionWidth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.legHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg Height:"),a.createElement("span",null,null==l?void 0:l.legHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.distanceBetweenLegs)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Width Between Legs: "),a.createElement("span",null,null==l?void 0:l.distanceBetweenLegs," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.underFrameHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Under Frame Height: "),a.createElement("span",null,null==l?void 0:l.underFrameHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.rearFrameHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Rear Frame Height: "),a.createElement("span",null,null==l?void 0:l.rearFrameHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.armWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Arm Width: "),a.createElement("span",null,null==l?void 0:l.armWidth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.armHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Arm Height: "),a.createElement("span",null,null==l?void 0:l.armHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.openSofaBedDepth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Open Sofa Bed Depth: "),a.createElement("span",null,null==l?void 0:l.openSofaBedDepth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.chaiseDepth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Chaise Depth: "),a.createElement("span",null,null==l?void 0:l.chaiseDepth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.legToLegDistance)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg to Leg Distance: "),a.createElement("span",null,null==l?void 0:l.legToLegDistance," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.legToTableEdgeDistanceWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg to End of Table: "),a.createElement("span",null,null==l?void 0:l.legToTableEdgeDistanceWidth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.legToTableEdgeDistanceDepth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg to Table Edge/Side: "),a.createElement("span",null,null==l?void 0:l.legToTableEdgeDistanceDepth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.topThickness)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Top Thickness: "),a.createElement("span",null,null==l?void 0:l.topThickness," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.internalShelfHe
1ights)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Internal Shelf Heights: "),a.createElement("span",null,null==l?void 0:l.internalShelfHeights," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.drawerDepth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Drawer Depth: "),a.createElement("span",null,null==l?void 0:l.drawerDepth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.drawerHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Drawer Height: "),a.createElement("span",null,null==l?void 0:l.drawerHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.drawerWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Drawer Width: "),a.createElement("span",null,null==l?void 0:l.drawerWidth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.cavityWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Cavity Width: "),a.createElement("span",null,null==l?void 0:l.cavityWidth," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.cavityHeight)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Cavity Height: "),a.createElement("span",null,null==l?void 0:l.cavityHeight," (cm)"))),a.createElement(me.A,{show:(0,G.isValidDimension)(null==l?void 0:l.fullExtendedWidth)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Full Extended Size: "),a.createElement("span",null,null==l?void 0:l.fullExtendedWidth," (cm)"))),a.createElement(me.A,{show:!(null==l||!l.mattressDimensions)},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Mattress Dimensions: "),a.createElement("span",null,null==l?void 0:l.mattressDimensions," (cm)")))))))};var de=e=>{var t;let{product:l}=e;const n=(0,a.useMemo)((()=>null==l?void 0:l.pim),[l]),i=(0,a.useMemo)((()=>1===(null==l?void 0:l.self_assembly)&&"Y"===(null==n?void 0:n.quickAssembly)?"Minimal Assembly required":1===(null==l?void 0:l.self_assembly)&&"N"===(null==n?void 0:n.quickAssembly)?"Full Assembly required":0===(null==l?void 0:l.self_assembly)&&"N"===(null==n?void 0:n.quickAssembly)?"No Assembly required":0===(null==l?void 0:l.self_assembly)&&"Y"===(null==n?void 0:n.quickAssembly)?"Minimal Assembly required":""),[n,l]),{0:s,1:m}=(0,a.useState)("/inspiration/blog/advice/tips-for-assembling-your-furniture/");return(0,a.useEffect)((()=>{if(null==l||!l.product_range)return;const e=`https://assets.ozdesign.com.au/Assembly/${null==l?void 0:l.product_range}`;fetch(e,{method:"HEAD"}).then((e=>e)).then((t=>{200===t.status&&m(e)})).catch((()=>{}))}),[null==l?void 0:l.product_range]),a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row"},a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0 d-none d-lg-block"},a.createElement("div",{className:"desc-image-wrap small-size"},a.createElement(ie.A,{alt:"Furniture Assembly and Care",src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,w_auto,h_220/Content/Product%20Pages/assembly.webp"}))),a.createElement(o.A,{xs:12,lg:7},a.createElement("ul",{className:"list-point mb-4"},a.createElement("p",null,"It is an exciting time when you purchase new furniture or homewares to finish your space. We cannot stress the importance of assembling and caring for your furniture in the correct way. Make sure you are as informed as possible to ensure the longevity of your products with the below.")),!!i&&a.createElement("ul",{className:"list-point mb-4"},a.createElement("li",null,a.createElement("span",{className:"text-level"},"Assembly Type: "),a.createElement("span",null,i))),a.createElement("p",{className:"checkout-blog"},a.createElement("a",{className:"text-underline",href:"/inspiration/blog/advice/tips-for-assembling-your-furniture/"},"Check out our blog for more tips & tricks on assembly.")),a.createElement("div",null,a.createElement(d.Link,{"aria-label":"Assembly Information",target:"_blank",to:s,className:"hover-link text-underline"},"ASSEMBLY INFORMATION")),(0,G.getGuardsmanCareLinks)(null==n?void 0:n.guardsmanMaterial).map((e=>{let{material:t,label:l,to:n}=e;return a.createElement("div",{key:`guardsman-${n}`},a.createElement(d.Link,{"aria-label":`${t} Care Information`,to:n,className:"hover-link text-underline"},l))})),!(null==n||!n.careInstructions)&&(null==n||null===(t=n.careInstructions)||void 0===t?void 0:t.split(",").map(((e,t)=>{const[l,n]=(0,G.getCareLink)(e);return l?a.createElement("div",{key:`care-${t}-${e.trim()}`},a.createElement(d.Link,{"aria-label":`${n} Information`,to:l,className:"hover-link text-underline"},null==n?void 0:n.toUpperCase()," INFORMATION")):null})))))};var pe=e=>{let{product:t}=e;const l=(0,a.useMemo)((()=>null==t?void 0:t.pim),[t]),n=(0,a.useCallback)((e=>(0,se.hasValueByKey)(l,e)),[l]);return a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row-reverse"},a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0 d-none d-lg-block"},a.createElement("div",{className:"desc-image-wrap small-size"},a.createElement(ie.A,{alt:"Furniture Warranty",src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,w_auto,h_220/Content/Product%20Pages/warranty.webp"}))),a.createElement(o.A,{xs:12,lg:7},a.createElement("ul",{className:"list-point mb-4"},n("mainFrameWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"General Warranty:"),a.createElement("span",null,null==l?void 0:l.mainFrameWarranty)),n("componentsWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Product Warranty:"),a.createElement("span",null,null==l?void 0:l.componentsWarranty)),n("seatCushionWarrantyPreviouslySeatFoamWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Seat Foam Warranty:"),a.createElement("span",null,null==l?void 0:l.seatCushionWarrantyPreviouslySeatFoamWarranty)),n("backCushionWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Back Cushion Warranty:"),a.createElement("span",null,null==l?void 0:l.backCushionWarranty)),n("materialWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Upholstery Warranty:"),a.createElement("span",null,null==l?void 0:l.materialWarranty)),n("detailWararntyLegHandleHinge")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Leg & Detail Warranty:"),a.createElement("span",null,null==l?void 0:l.detailWararntyLegHandleHinge)),n("mechanismWarranty")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Mechanism Warranty:"),a.createElement("span",null,null==l?void 0:l.mechanismWarranty))),a.createElement("div",null,a.createElement(d.Link,{"aria-label":"Additional warranty information",to:"/product-care/warranties-and-consumer-guarantees/",className:"hover-link text-underline"},"Additional warranty information".toUpperCase())),n("additionalWarrantyDocument")&&a.createElement("div",null,a.createElement(d.Link,{"aria-label":"Additional Warranty Information 2",to:null==l?void 0:l.additionalWarrantyDocument,className:"hover-link text-underline"},"ADDITIONAL WARRANTY INFORMATION 2"))))};var he=e=>{let{product:t}=e;const l=(0,a.useMemo)((()=>null==t?void 0:t.pim),[t]),i=(0,a.useCallback)((e=>(0,se.hasValueByKey)(l,e)),[l]),s=((null==l?void 0:l.productType)||"Furniture")+" Box and Delivery Information";return a.createElement(r.A,{className:"description align-items-center flex-column-reverse flex-lg-row"},a.createElement(o.A,{xs:12,lg:5,className:"mt-4 mt-lg-0 d-none d-lg-block"},a.createElement("div",{className:"desc-image-wrap small-size"},a.createElement(ie.A,{alt:s,src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,w_auto,h_220/Content/Product%20Pages/boxes.webp"}))),a.createElement(o.A,{xs:12,lg:7},a.createElement("ul",{className:"list-point mb-4"},i("packagingType")&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Packaging:"),a.createElement("span",null,null==l?void 0:l.packagingType)),(0,F.notZeroOrEmpty)(null==t?void 0:t.box_width)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box_height)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box_depth)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box_weight)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Box 1:"),a.createElement("span",null,t.box_width,"W x ",t.box_depth,"D x"," ",t.box_he
1ight,"H (cm) & ",t.box_weight,"kg")),(0,F.notZeroOrEmpty)(null==t?void 0:t.box2_width)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box2_height)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box2_depth)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box2_weight)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Box 2:"),a.createElement("span",null,t.box2_width,"W x ",t.box2_depth,"D x"," ",t.box2_height,"H (cm) & ",t.box2_weight,"kg")),(0,F.notZeroOrEmpty)(null==t?void 0:t.box3_width)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box3_height)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box3_depth)&&(0,F.notZeroOrEmpty)(null==t?void 0:t.box3_weight)&&a.createElement("li",null,a.createElement("span",{className:"text-level"},"Box 3:"),a.createElement("span",null,t.box3_width,"W x ",t.box3_depth,"D x"," ",t.box3_height,"H (cm) & ",t.box3_weight,"kg")),(0,n.A)(Array(3).keys()).filter((e=>i(`box${e+4}Width`)&&i(`box${e+4}Depth`)&&i(`box${e+4}Height`)&&i(`box${e+4}Weight`))).map((e=>a.createElement("li",{key:`box-${e}`},a.createElement("span",{className:"text-level"},"Box ",e+4,":"),a.createElement("span",null,l[`box${e+4}Width`],"W x"," ",l[`box${e+4}Depth`],"D x"," ",l[`box${e+4}Height`],"H (cm) &"," ",l[`box${e+4}Weight`],"kg"))))),a.createElement("div",null,a.createElement(d.Link,{"aria-label":"Delivery and collection information",to:"/delivery-and-collection",className:"hover-link text-underline"},"Delivery and collection information".toUpperCase()))))},Ee=l(92267),ve=l(62421),ge=l(69061),fe=l(73951),ye=l(8370),Ne=l(88238),be=l(45894),Ae=l(10671),ke=l(90128),we=l.n(ke);const Fe=new M.T({cloud:{cloudName:"oz-design-furniture"}}),xe=[{breakpoint:767,settings:{infinite:!1}}],Se=[{breakpoint:576,settings:{slidesToShow:5,infinite:!1}}];var Ce=e=>{var t,l,A,M,Z,me,ce,ke;let{pageContext:{product:Ce,storeConfig:_e,range:Ie,rangeKey:De,collectionName:Oe,urlKey:Pe,promotion:Te,blurb:Me,headlessConfig:ze,similarProducts:Be,relatedProducts:$e}}=e;const{removeSuppliersFromColour:He}=(0,Q.A)(),{ss:{readHomewares:{nodes:We}}}=(0,d.useStaticQuery)("1295928082");let Le=null;Array.isArray(We)&&(Le=We.find((()=>!0)));const Re=(0,_.wA)(),{getAddCartToast:qe}=(0,Ne.A)(),Ve=(0,_.d4)((e=>e.auth.token)),Ue=(0,_.d4)((e=>e.cart.token)),Ke=(0,_.d4)((e=>e.auth.user)),{0:Ge,1:je}=(0,a.useState)(1),{0:Ye,1:Ze}=(0,a.useState)(!1),{0:Xe,1:Qe}=(0,a.useState)(null),{0:Je,1:et}=(0,a.useState)(Ce),{0:tt,1:lt}=(0,a.useState)({type:"",size:"",config:"",upholstery:"",legFinish:"",timberFinish:"",otherFinish:"",legOptionName:""}),{0:nt,1:at}=(0,a.useState)(null),{0:it,1:st}=(0,a.useState)(null),{0:rt,1:ot}=(0,a.useState)(null),{0:mt,1:ct}=(0,a.useState)(null),{0:ut,1:dt}=(0,a.useState)(null),{0:pt,1:ht}=(0,a.useState)(!1),{0:Et,1:vt}=(0,a.useState)(null),{images:gt,setImages:ft,descriptionVideo:yt,hero:Nt}=(0,H.A)(Je,{homewareOrder:(null==Je?void 0:Je.pageType)===X().HOMEWARE}),{0:bt,1:At}=(0,a.useState)(!1),{0:kt,1:wt}=(0,a.useState)(!1),{0:Ft,1:xt}=(0,a.useState)(!1),{0:St,1:Ct}=(0,a.useState)(0),_t=(0,a.useRef)(),[,It]=(0,U.A)(De),Dt=(0,a.useMemo)((()=>null!=It&&It.length?It:[Ce]),[It,Ce]),[,Ot]=(0,K.A)(),Pt=(0,a.useMemo)((()=>(null==Je?void 0:Je.pageType)===X().HOMEWARE),[Je]),Tt=(0,a.useRef)(null),Mt=()=>{"undefined"!=typeof window&&window.scrollTo({behavior:"smooth",top:Tt.current.offsetTop-100})},zt=(0,a.useRef)(null),Bt=()=>{"undefined"!=typeof window&&window.scrollTo({behavior:"smooth",top:zt.current.offsetTop-100})};(0,a.useEffect)((()=>{var e,t,l;F.isBrowser&&(window.dataLayer=window.dataLayer||[],Je&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push({...(0,R.buildPageType)("product",Ke),ecommerce:{detail:{products:[{name:Je.name,price:null===(e=Je.price_range)||void 0===e||null===(t=e.minimum_price)||void 0===t||null===(l=t.final_price)||void 0===l?void 0:l.value,category:(Je.categories||[]).map((e=>e.name)).join(", "),sku:Je.sku}]}}})))}),[null==Je?void 0:Je.sku,Ke]),(0,a.useEffect)((()=>{Je&&(0,q.pushGA4Ecommerce)("view_item",{items:[(0,q.buildGA4Item)(Je)].filter(Boolean)})}),[null==Je?void 0:Je.sku]);const $t=(0,a.useCallback)(((e,t,l)=>e.filter((e=>{var a,i,s;return(!t.includes("type")||!l.type||e.pim.productType===l.type)&&(!t.includes("size")||!l.size||e.pim.productSize===l.size)&&(!t.includes("config")||!l.config||(0,F.getSafeArrayFromSplitComma)(null===(a=e.pim)||void 0===a?void 0:a.leftRight).includes(l.config))&&(!t.includes("upholstery")||!l.upholstery||[].concat((0,n.A)((0,F.get
1SafeArrayFromSplitComma)(null===(i=e.pim)||void 0===i?void 0:i.leatherName)),(0,n.A)((0,F.getSafeArrayFromSplitComma)(null===(s=e.pim)||void 0===s?void 0:s.fabricName))).includes(l.upholstery))&&(Pt||!t.includes("legFinish")||!l.legFinish||(0,F.getSafeArrayFromSplitComma)(e.pim.stainPaint).includes(l.legFinish))&&(!t.includes("timberFinish")||!l.timberFinish||(0,F.getSafeArrayFromSplitComma)(e.pim.timberName).includes(l.timberFinish))&&(!t.includes("otherFinish")||!l.otherFinish||(0,F.getSafeArrayFromSplitComma)(e.pim.otherMaterialName).includes(l.otherFinish))&&(!t.includes("legOptionName")||!l.legOptionName||(0,F.getSafeArrayFromSplitComma)(e.pim.legOptionName).includes(l.legOptionName))}))),[Pt]),Ht=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.productType)).map((e=>e.pim.productType));return Array.from(new Set(t))}),[]),Wt=(0,a.useMemo)((()=>Ht(Dt)),[Dt]),Lt=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.productSize)).map((e=>{const t="1"==e.isBundle;let l=e.size_width&&e.size_depth&&e.size_height?`${e.size_width}w x ${e.size_depth}d x ${e.size_height}h`:"";return t&&(l=e.bundleDimensions||""),{value:e.pim.productSize,dimension:l.replace("(","").replace(")","").trim()}}));return t.filter(((e,t,l)=>t===l.findIndex((t=>t.value===e.value&&t.dimension===e.dimension))))}),[]),Rt=(0,a.useMemo)((()=>Lt(Dt)),[Dt]),qt=(0,a.useCallback)((e=>{const t=null==e?void 0:e.reduce(((e,t)=>{var l;if(null!==(l=t.pim)&&void 0!==l&&l.leftRight)for(const n of t.pim.leftRight.split(",").map((e=>e.trim())).filter((e=>e)))e.add(n);return e}),new Set);return Array.from(t||[])}),[]),Vt=(0,a.useMemo)((()=>qt(Dt)),[Dt]),Ut=(0,a.useCallback)((e=>e.reduce(((e,t)=>{var l,n;const a=(null===(l=t.pim)||void 0===l?void 0:l.fabricName)||(null===(n=t.pim)||void 0===n?void 0:n.leatherName);if(a){const t=a.split(",").map((e=>e.trim())).filter((e=>e));for(const l of t)e.includes(l)||e.push(l)}return e}),[])),[]),Kt=(0,a.useMemo)((()=>Ut(Dt)),[Dt]),Gt=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.stainPaint)).reduce(((e,t)=>{const l=t.pim.stainPaint.split(",").map((e=>e.trim())).filter((e=>e));for(const n of l)e.includes(n)||e.push(n);return e}),[]);return Array.from(new Set(t))}),[]),jt=(0,a.useMemo)((()=>Gt(Dt)),[Dt]),Yt=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.timberName)).reduce(((e,t)=>{const l=t.pim.timberName.split(",").map((e=>e.trim())).filter((e=>e));for(const n of l)e.includes(n)||e.push(n);return e}),[]);return Array.from(new Set(t))}),[]),Zt=(0,a.useMemo)((()=>Yt(Dt)),[Dt]),Xt=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.otherMaterialName)).reduce(((e,t)=>{const l=t.pim.otherMaterialName.split(",").map((e=>e.trim())).filter((e=>e));for(const n of l)e.includes(n)||e.push(n);return e}),[]);return Array.from(new Set(t))}),[]),Qt=(0,a.useMemo)((()=>Xt(Dt)),[Dt]),Jt=(0,a.useCallback)((e=>{const t=e.filter((e=>e.pim.legOptionName)).reduce(((e,t)=>{const l=t.pim.legOptionName.split(",").map((e=>e.trim())).filter((e=>e));for(const n of l)e.includes(n)||e.push(n);return e}),[]);return Array.from(new Set(t))}),[]),el=(0,a.useMemo)((()=>Jt(Dt)),[Dt]),tl=(0,a.useMemo)((()=>{const e=tt;return{type:Ht(Dt),size:Lt($t(Dt,["type"],e)),config:qt($t(Dt,["type","size"],e)),upholstery:Ut($t(Dt,["type","size","config"],e)),legFinish:Gt($t(Dt,["type","size","config","upholstery"],e)),timberFinish:Yt($t(Dt,["type","size","config","upholstery","legFinish"],e)),otherFinish:Xt($t(Dt,["type","size","config","upholstery","legFinish","timberFinish"],e)),legOptionName:Jt($t(Dt,["type","size","config","upholstery","legFinish","otherFinish","timberFinish"],e))}}),[tt,Dt,$t,Ht,Lt,qt,Ut,Gt,Yt,Xt,Jt]),ll=(0,a.useCallback)(((e,t)=>!(tl[t]||[]).find((l=>"size"===t?l.value===e.value&&l.dimension===e.dimension:l===e))),[tl]);(0,a.useEffect)((()=>{const e=$t(Dt,["type","size","config","upholstery","legFinish","timberFinish","otherFinish","legOptionName"],tt);if(1===e.length)et(e[0]);else if(e.length>1){const t=e.find((e=>e.sku===Ce.sku));et(t||e[0])}else ft([]),et(null)}),[$t,Dt,tt,Ce]);const nl=(0,_.d4)((e=>e.wishlist.items)),al={dots:!1,arrows:!0,dotsClass:"slick-dots slick-thumb",speed:500,slidesToShow:1,asNavFor:mt,infinite:!1,responsive:xe},il={dots:!1,arrows:!0,dotsClass:"slick-dots slick-thumb",speed:500,slidesToShow:1,asNavFor:ut,infinite:!1,responsive:xe},sl={dots:!1,arrows:!0,asNavFor:it,ref:e=>ct(e),slidesToShow:9,spaceBetween:8,swipeToSlide:!0,focusOnSelect:!0,infinite:!1,responsive:Se},rl={dots:!1,arrows:!0,asNavFor:rt,ref:e=>dt(e),slidesToShow:9,spaceBetween:8,swipeToSlide:!0,focusOnSelect:!0,infinite:!1,responsive:Se},{0:ol,1:ml}=(0,a.useState)(!1),cl=()=>{ml(!ol)},{0:ul,1:dl}=(0,a.useState)(!1),pl=()=>{dl(!ul)};(0,a.useEffect)((()=>{Re((0,C.cl)())}),[Re,C.cl]);const hl=(0,a.useMemo)((()=>{const e=nl.find((e=>{var t;return(null===(t=e.product)||void 0===t?void 0:t.sku)===(null==Je?void 0:Je.sku)}));return e?e.id:null}),[nl,Je]);(0,a.useEffect)((()=>
1{if(!Je)return;const e=(0,G.isProductInStock)(Je);Ze(!e)}),[Je]);const El=(0,a.useCallback)((()=>{var e,t,l,n,a,i;if(!Je)return;((0,R.dataLayerPush)({event:Ye?"Pre-Order":"Purchase",id:null==Je?void 0:Je.sku,price:null==Je||null===(e=Je.price_range)||void 0===e||null===(t=e.minimum_price)||void 0===t||null===(l=t.final_price)||void 0===l?void 0:l.value,quantity:Ge}),"undefined"!=typeof window)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"addToCart",ecommerce:{add:{products:[{name:null==Je?void 0:Je.name,id:null==Je?void 0:Je.sku,price:null==Je||null===(n=Je.price_range)||void 0===n||null===(a=n.minimum_price)||void 0===a||null===(i=a.final_price)||void 0===i?void 0:i.value,quantity:Ge}]}}}));(0,q.pushGA4Ecommerce)("add_to_cart",{items:[(0,q.buildGA4Item)(Je,{quantity:Ge})].filter(Boolean)});const s=[];tt.config&&s.push(`Config: ${tt.config}`),tt.legFinish&&s.push(`Leg Finish: ${He(tt.legFinish)}`),tt.upholstery&&s.push(`Upholstery: ${He(tt.upholstery)}`),tt.timberFinish&&s.push(`Timber Finish: ${He(tt.timberFinish)}`),tt.otherFinish&&s.push(`Other Finish: ${He(tt.otherFinish)}`),tt.legOptionName&&s.push(`Leg Option: ${He(tt.legOptionName)}`);const r=null!=Je&&Je.options?Je:{...Je,options:null==Ce?void 0:Ce.options};(0,I.SO)(Ue,r,Ge,Ve,xl?s.join(", "):"").then((e=>{Re((0,D.D4)(e.items)),Re((0,D.Lt)(e.total_segments)),Re((0,D.nr)(e.upsellRules)),Re((0,D.jS)(e.shipping_addresses)),(0,O.toast)(qe(Je,e.upsellRules),{position:"top-right",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0}),Re(Ve?(0,ye.xt)():(0,D.je)())})).catch((e=>{console.error(e),O.toast.error("An error occurred while adding this product to cart. Please try again.",{position:"top-right",autoClose:3e3,closeOnClick:!0})}))}),[Ge,Je,I.SO,Ue,Ve,tt,Ye,qe]),vl=(0,a.useMemo)((()=>{var e,t;if(!Ot||0===Object.keys(Ot).length)return null;if(null==Je||null===(e=Je.pim)||void 0===e||!e.relatedGuardsmanSku)return null;const l=Je||Ce;return Ot[null==l||null===(t=l.pim)||void 0===t?void 0:t.relatedGuardsmanSku]||null}),[Je,Ot]),gl=(0,a.useCallback)((()=>{vl&&(0,I.SO)(Ue,vl,1,Ve).then((e=>{Re((0,D.D4)(e.items)),Re((0,D.Lt)(e.total_segments)),Re((0,D.nr)(e.upsellRules)),Re((0,D.jS)(e.shipping_addresses)),(0,O.toast)("Added",{position:"top-right",autoClose:3e3,closeOnClick:!0}),Re(Ve?(0,ye.xt)():(0,D.je)())})).catch((e=>{console.error(e),O.toast.error("An error occurred while adding this product to cart. Please try again.",{position:"top-right",autoClose:3e3,closeOnClick:!0})}))}),[Re,I.SO,D.D4,Ue,Ve,vl]),fl=(0,a.useCallback)((()=>{if(!F.isBrowser)return;if(!Je)return;const e=encodeURIComponent(`${window.location.origin}/wishlist?product_sku=${null==Je?void 0:Je.sku}`);Ve?((0,R.dataLayerPush)({event:"Add to Wishlist",id:Je.sku}),Re((0,C.N_)(null==Je?void 0:Je.sku))):(0,d.navigate)("/login?backURL="+e)}),[Je,Ve,Ke]),yl=(0,a.useCallback)((()=>{Ve?Re((0,C.xK)(hl)):(0,d.navigate)("/login")}),[Ve,hl]);(0,a.useEffect)((()=>{Je&&(0,S.graphql)("https://shop.ozdesignfurniture.com.au/graphql",`\n {\n StockDetails(productId: ${null==Je?void 0:Je.id}) {\n isInStock\n qty\n dead\n leadTime\n backOrderTimeFrame\n }\n }\n `).then((e=>{let{data:{StockDetails:t}}=e;at(t)}))}),[Je]);const Nl=(0,a.useMemo)((()=>"1"==(null==Je?void 0:Je.isBundle)),[Je]),bl=(0,a.useMemo)((()=>null!=Dt&&Dt.length?Dt.reduce(((e,t)=>(e[t.sku]=t,e)),{}):{}),[Dt]),Al=(0,a.useMemo)((()=>{if(!(null!=Dt&&Dt.length||Ot&&0!==Object.keys(Ot).length))return[];const e=null==Je?void 0:Je.bundleItems;return e?e.split(",").map((e=>null==e?void 0:e.trim())).filter((e=>e)).map((e=>{const t=e.split(":")[0];return bl[t]||Ot[t]})).filter((e=>e)):[]}),[Je,bl,Ot]),kl=(0,a.useMemo)((()=>(0,G.getSuggestionSkus)(Je)),[Je]),wl=(0,a.useMemo)((()=>a.createElement(ae.A,{stockDetails:nt,isBundle:Nl,bundleItems:Al})),[nt,Nl,Al]),Fl=(0,F.getIconConfig)(_e,Je),{isAustralianMade:xl}=Fl,Sl=(0,a.useMemo)((()=>nt?nt.isInStock&&nt.qty>0:(0,G.isProductInStock)(Je)),[nt,Je]);(0,a.useEffect)((()=>{var e,t,l,n,a;if(!Je)return;
1const i=(0,F.getSafeArrayFromSplitComma)((null===(e=Je.pim)||void 0===e?void 0:e.leatherName)||(null===(t=Je.pim)||void 0===t?void 0:t.fabricName)),s=(0,F.getSafeArrayFromSplitComma)(null===(l=Je.pim)||void 0===l?void 0:l.stainPaint),r=(0,F.getSafeArrayFromSplitComma)(Je.pim.timberName),o=(0,F.getSafeArrayFromSplitComma)(Je.pim.otherMaterialName),m=(0,F.getSafeArrayFromSplitComma)(null===(n=Je.pim)||void 0===n?void 0:n.legOptionName),c=(0,F.getSafeArrayFromSplitComma)(null===(a=Je.pim)||void 0===a?void 0:a.leftRight);if(lt({type:Je.pim.productType,size:Je.pim.productSize,config:c.length>0?c[0]:"",upholstery:i.length>0?i[0]:"",legFinish:Pt?"":s.length>0?s[0]:"",timberFinish:r.find((()=>!0))||"",otherFinish:o.find((()=>!0))||"",legOptionName:m.find((()=>!0))||""}),F.isBrowser){const e=new URL(window.location);e.pathname=(0,G.getProductCollectionPath)(Je),(0,V.i)(e)}}),[Je]);const Cl=(0,a.useMemo)((()=>null==Je?void 0:Je.pim),[Je]),_l=(0,a.useCallback)((e=>(0,se.hasValueByKey)(Cl,e)),[Cl]),Il=(0,a.useCallback)((function(e,t,l){void 0===l&&(l=!1);const n=Object.keys(tt).filter((e=>tt[e]));let a=$t(Dt,n,{...tt,[e]:t});if(!Array.isArray(a)||0===a.length)for(const i of n.filter((t=>t!==e)))if(a=$t(Dt,n.filter((e=>e!==i)),{...tt,[e]:t}),Array.isArray(a)&&a.length>0)break;if(!Array.isArray(a)||0===a.length){if(l){const l=$t(Dt,["type","size","config","upholstery","legFinish","timberFinish","otherFinish","legOptionName"],{size:"",config:"",upholstery:"",legFinish:"",timberFinish:"",otherFinish:"",legOptionName:"",[e]:t});return null==l?void 0:l.find((()=>!0))}return null}return 1===a.length?a[0]:a.find((e=>(0,G.isProductInStock)(e)))}),[$t,Dt,tt]),Dl=(0,a.useCallback)((function(e,t,l,a){void 0===a&&(a=!1),e.preventDefault(),Bt(),lt((e=>{if(e[t]===l)return e;const a={...e,[t]:l},i=Il(t,l),s=["type","size","config","upholstery","legFinish","timberFinish","otherFinish","legOptionName"],r=e=>{const l=s.indexOf(t);if(l>=0)for(let t=l+1;t<s.length;t++)e[s[t]]=""};if(i){var o,m,c,u,d,p,h,E,v;"size"!==t&&(null===(o=i.pim)||void 0===o||null===(m=o.productSize)||void 0===m?void 0:m.trim())!==e.size&&(a.size=""),(0,F.getSafeArrayFromSplitComma)(null===(c=i.pim)||void 0===c?void 0:c.leftRight).includes(e.config)||(a.config=""),"upholstery"===t||[].concat((0,n.A)((0,F.getSafeArrayFromSplitComma)(null===(u=i.pim)||void 0===u?void 0:u.leatherName)),(0,n.A)((0,F.getSafeArrayFromSplitComma)(null===(d=i.pim)||void 0===d?void 0:d.fabricName))).includes(e.upholstery)||(a.upholstery=""),"legFinish"===t||(0,F.getSafeArrayFromSplitComma)(null===(p=i.pim)||void 0===p?void 0:p.stainPaint).includes(e.legFinish)||(a.legFinish=""),"timberFinish"===t||(0,F.getSafeArrayFromSplitComma)(null===(h=i.pim)||void 0===h?void 0:h.timberName).includes(e.timberFinish)||(a.timberFinish=""),"otherFinish"===t||(0,F.getSafeArrayFromSplitComma)(null===(E=i.pim)||void 0===E?void 0:E.otherMaterialName).includes(e.otherFinish)||(a.otherFinish=""),"legOptionName"===t||(0,F.getSafeArrayFromSplitComma)(null===(v=i.pim)||void 0===v?void 0:v.legOptionName).includes(e.legOptionName)||(a.legOptionName="");const l=Object.keys(a).filter((e=>a[e]));0===$t(Dt,l,a).length&&r(a)}else["type","size","config"].includes(t)&&r(a),xl||["upholstery","legFinish","timberFinish","otherFinish"].includes(t)&&r(a);return a})),["upholstery","legFinish","timberFinish","otherFinish","legOptionName"].includes(t)&&xl&&ft((e=>{if(a)e=e.filter((e=>!e[t]));else{const n=e.find((e=>e[t]));if(n)n.url=(0,F.getLargeSwatchImageByName)(l),n.imageId=`Swatch/${l.replace("/"," ")}`;else{const n=e.findIndex((e=>{if((0,G.isVideoLink)(e))return!1;if(e[t])return!1;return e.url.split("-").pop()>100})),a={[t]:!0,url:(0,F.getLargeSwatchImageByName)(l),imageId:`Swatch/${l.replace("/"," ")}`};n<0?e.push(a):e.splice(n,0,a)}}const i=e.findIndex((e=>e[t]));return i>=0&&(it&&it.slickGoTo(i),rt&&rt.slickGoTo(i)),(0,n.A)(e)}))}),[xl,it,rt,Bt,Il,$t]),Ol=(0,a.useMemo)((()=>{if(!Je)return null;const e=Je.cloudinaryIndexes||[];return e.includes(95)?`https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,h_470,w_470/Product/${Je.sku}-95`:e.length>0?`https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,h_470,w_470/Product/${Je.sku}-${e[0]}`:null}),[null==Je?void 0:Je.sku]),Pl=(0,a.useCallback)((e=>{if(!e)return"";switch(e.trim().toLowerCase()){case"lhf":return"Left";case"rhf":return"Right"}}),[]);if(vl){let e=1,t=(vl.url_rewrites||[]).filter((t=>t.parameters.length>e));t.length&&t[0]}(0,a.useMemo)((()=>!!Je&&Je.price_range.minimum_price.regular_price.value>Je.price_range.minimum_price.final_price.value),[Je]),(0,a.useMemo)((()=>1===(null==Je?void 0:Je.self_assembly)&&"Y"===(null==Cl?void 0:Cl.quickAssembly)?"Minimal Assembly required":1===(null==Je?void 0:Je.self_assembly)&&"N"===(null==Cl?void 0:Cl.quickAssembly)?"Full Assembly required":0===(null==Je?void 0:Je.self_assembly)&&"N"===(null==Cl?void 0:Cl.quickAssembly)?"No Assembly required":0===(null==Je?void 0:Je.self_assembly)&&"Y"===(null==Cl?void 0:Cl.quickAssembly)?"Minimal Assembly required":""),[Cl,Je]);const Tl=tl.size||[],Ml=tl.config||[],zl=tl.upholstery||[],Bl=tl.legFinis
1h||[],$l=tl.timberFinish||[],Hl=tl.otherFinish||[],Wl=tl.legOptionName||[];(0,a.useEffect)((()=>{if(null!=Je&&Je.id&&Array.isArray(Je.saleRules)){const e=Je.saleRules.find((e=>e.image));e&&vt(e)}}),[Je]);const Ll=Dt.length>1,Rl=()=>{(0,R.dataLayerPush)({event:"View all variations",range:Ie}),(0,d.navigate)((0,x.O)(we()(null==Ie?void 0:Ie.toLowerCase()),{collection:1}))},ql=(0,a.useMemo)((()=>{var e;return Ce&&0!==(null==Ce||null===(e=Ce.cloudinaryIndexes)||void 0===e?void 0:e.length)?Fe.image(`Product/${Ce.sku}-${Ce.cloudinaryIndexes[0]}`).resize((0,z.hs)().width(600)).delivery((0,B.GP)("auto")).delivery((0,B.Q0)("auto")).toURL():""}),[Ce]),Vl=["type","size","config","upholstery","legFinish","timberFinish","otherFinish","legOptionName"],Ul=(0,a.useCallback)((function(e,t,l){void 0===l&&(l=!1);const a=Vl.filter((t=>t!==e));return $t(Dt,a,tt).some((l=>{var a,i,s,r,o,m,c;if(!(0,G.isProductInStock)(l))return!1;switch(e){case"type":return l.pim.productType===t;case"size":return l.pim.productSize===t;case"config":return(0,F.getSafeArrayFromSplitComma)(null===(a=l.pim)||void 0===a?void 0:a.leftRight).includes(t);case"upholstery":return[].concat((0,n.A)((0,F.getSafeArrayFromSplitComma)(null===(i=l.pim)||void 0===i?void 0:i.fabricName)),(0,n.A)((0,F.getSafeArrayFromSplitComma)(null===(s=l.pim)||void 0===s?void 0:s.leatherName))).includes(t);case"legFinish":return(0,F.getSafeArrayFromSplitComma)(null===(r=l.pim)||void 0===r?void 0:r.stainPaint).includes(t);case"timberFinish":return(0,F.getSafeArrayFromSplitComma)(null===(o=l.pim)||void 0===o?void 0:o.timberName).includes(t);case"otherFinish":return(0,F.getSafeArrayFromSplitComma)(null===(m=l.pim)||void 0===m?void 0:m.otherMaterialName).includes(t);case"legOptionName":return(0,F.getSafeArrayFromSplitComma)(null===(c=l.pim)||void 0===c?void 0:c.legOptionName).includes(t);default:return!1}}))?l?"https://assets.ozdesign.com.au/image/upload/q_auto,f_auto/v1662702427/Content/Product%20Pages/in-stock.webp":"https://assets.ozdesign.com.au/q_auto,f_auto/Content/Product%20Pages/IN-STOCK-GREY.webp":""}),[Dt,tt,$t]),Kl=(0,a.useCallback)((e=>{xt(!0),Ct(e)}),[]),Gl=(0,a.useCallback)((()=>{const e={type:Wt,size:Tl,config:Ml,upholstery:zl,legFinish:Bl,timberFinish:$l,otherFinish:Hl,legOptionName:Wl};return Object.keys(e).filter((t=>e[t].length>1))}),[tl,Wt]),{0:jl,1:Yl}=(0,a.useState)((()=>Gl()));(0,a.useEffect)((()=>{Yl(Gl())}),[Gl]);const Zl=(0,a.useCallback)((e=>()=>{Yl((t=>t.includes(e)?t.filter((t=>t!==e)):[].concat((0,n.A)(t),[e])))}),[]),Xl=(0,a.useMemo)((()=>{if(!Je)return null;const e=(0,G.getSafetyImage)(Je);return e?a.createElement(i.A.Item,{eventKey:"safety"},a.createElement(i.A.Header,null,"Product Safety"),a.createElement(i.A.Body,null,a.createElement(be.A,{safetyImageUrl:e}))):null}),[Je]),{0:Ql,1:Jl}=(0,a.useState)(!1),en=()=>{(0,R.dataLayerPush)({event:"Find a showroom on display",range:Ie,sku:null==Je?void 0:Je.sku}),Jl(!0)};return(0,a.useEffect)((()=>{F.isBrowser&&"#findshowroom"===window.location.hash&&Jl(!0)}),[]),a.createElement(m.A,null,a.createElement(a.Fragment,null,a.createElement(b.m,null,a.createElement("title",null,Je?Je.name:Oe),a.createElement("meta",{name:"title",content:Je?Je.name:Oe}),a.createElement("meta",{name:"description",content:(0,G.getProductMetaDescription)(Ce)}),a.createElement("meta",{name:"keywords",content:null==Ce?void 0:Ce.meta_keyword}),Nt&&a.createElement("link",{rel:"preload",as:"image",href:Nt.src,imageSrcSet:Nt.srcSet,imageSizes:Nt.sizes,fetchPriority:"high"})),a.createElement(te.A,{product:Ce,inCollectionProducts:$e,similarProducts:Be}),a.createElement(ee.A,{product:Je,seoData:{canonicalUrl:(0,F.getFullUrlByPath)(Pe),pageTitle:Oe,pageDescription:(0,G.getProductOgDescription)(Ce),pageImage:ql}}),a.createElement("div",{className:"product-page"},a.createElement("div",{className:"bg-grey bar-breadcrumb"},a.createElement(s.A,null,a.createElement(r.A,null,a.createElement(o.A,{lg:12},a.createElement(c.A,{current:{path:Pe,name:Oe}}))))),a.createElement("div",{id:"no-scroll-page",className:"section pb-0"},a.createElement(s.A,null,a.createElement(r.A,{className:"products"},a.createElement(o.A,{lg:6,className:"d-none d-lg-block"},a.createElement("div",{className:"sticky-position custom-mark location-collection",id:"sticky-wrapper"},a.createElement(P.A,{enabled:!0,top:120,bottomBoundary:"#sticky-wrapper"},a.createElement("div",{className:"position-relative product-images-slider"+(1==gt.length?" single-item":"")},a.createElement("div",{className:"heart-wrapper heart-wrapper-small"},a.createElement("a",{"aria-label":"Add to cart",href:"#",className:"quick-cart-btn no-top",onClick:e=>{e.preventDefault(),El()}},a.createElement(ie.A,{src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,w_50/Content/Product%20Pages/quick-add",loading:"lazy",width:"25",height:"25",alt:"quick-cart-static"})),a.createElement("a",{"aria-label":"Add to wishlist",href:"#",className:"color-black",onClick:e=>{e.preventDefault(),hl?yl():fl()}},hl?a.createElement(ie.A,{width:25,height:25,src:w.A}):a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50"},a.createElement("path",{className:"heart",stroke:"#000",strokeWidth:"5",fill:"none",d:"M4,19.1C4,12.6,9.7,7.6,16.3,7.6c3.5,0,6.5,1.6,8.7,3.7c2.2-2.1,5.2-3.7,8.7-3.7c6.7,0,12.4,5,12.4,11.5 c0,4.4-1.9,8.3-4.5,11.6c-2.6,3.3-6,6.1-9.4,8.4c-1.3,0.9-2.5,1.7-3.7,2.3c-1.1,0.6-2.4,1.1-3.5,1.1c-1.1,0-2.4-0.5-3.5-1.1 c-1.2-0.6-2.4-1.4-3.7-2.3c-3.3-2.3-6.7-5.1-9.4-8.4C5.9,27.4,4,23.5,4,19.1z"})))),a.createElement($.A,{variant:"desktop",images:gt,settings:al,thumbSettings:sl,sliderRef:e=>st(e),onSlideClick:Kl,heroIndex:null!==(t=null==Nt?void 0:Nt.index)&&void 0!==t?t:0}),a.createElement("div",{className:"material-links"},!!yt&&a.createElement("div",{onClick:()=>wt(!0)},a.createElement("svg",{className:"d-block phone",width:"19",height:"19"},a.createElement("use",{xlinkHref:`${p.A}#play`})),"Video"),a.createElement("div",{onClick:()=>{(0,R.dataLayerPush)({event:"View Specs",range:Ie}),cl()}},a.createElement("svg",{className:"d-block phone",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#fabric`})),a.createElement("span",{className:""+(ol?"d-none":"d-block")},"Specs"),a.createElement("span",{className:"d-none "+(ol?"d-block":"d-none")},"Back")),Ll&&a.createElement("div",{onClick:Rl},a.createElement("svg",{className:"d-block phone",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#dots`})),"Variations")),a.createElement("div",{className:"cover-detail "+(ol?"show":"hidden")},a.createElement("span",{className:"d-lg-none d-sm-block d-block mb-3",onClick:cl},a.createElement("svg",{className:"back",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#back`}))),a.createElement(k(),null,a.createElement("h2",null,"Specifications"),a.createElement("div",{className:"cover-content"},!(null==Je||!Je.size_width)&&!(null==Je||!Je.size_depth)&&!(null==Je||!Je.size_height)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Dimensions: (cm)"),a.createElement("p",null,null==Je?void 0:Je.size_width,"W,"," ",null==Je?void 0:Je.size_depth,"D, ",null==Je?void 0:Je.size_height,"H")),!(null==Je||!Je.weight)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Weight: (kg)"),a.createElement("p",null,null==Je?void 0:Je.weight)),!(null==tt||!tt.upholstery)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery: "),a.createElement("p",null,He(null==tt?void 0:tt.upholstery))),_l("comfort")&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Comfort: "),a.createElement("p",null,null==Cl?void 0:Cl.comfort)),_l("upholsteryT
1ype")&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery Type: "),a.createElement("p",null,null==Cl?void 0:Cl.upholsteryType)),(_l("fabricComposition")||_l("leatherPuComposition"))&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery Composition: "),a.createElement("p",null,[null==Cl?void 0:Cl.fabricComposition,null==Cl?void 0:Cl.leatherPuComposition].filter((e=>e)).join(", ")))),a.createElement("div",{className:"cover-btn-group"},a.createElement("button",{onClick:Mt},"See More Specs"),!(null==Cl||!Cl.additionalPdsDocument)&&a.createElement("a",{className:"download-btn",href:`${G.ASSETS_PREFIX}${encodeURIComponent(null==Cl?void 0:Cl.additionalPdsDocument)}`},"Download Collection PDS"))),a.createElement("div",{className:"cover-icon-list d-none"},a.createElement(ie.A,{src:h.A,alt:"Product Icon 1"}),a.createElement(ie.A,{src:E.A,alt:"Product Icon 2"}),a.createElement(ie.A,{src:v.A,alt:"Product Icon 3"}),a.createElement(ie.A,{src:g.A,alt:"Product Icon 4"}),a.createElement(ie.A,{src:f.A,alt:"Product Icon 5"}),a.createElement(ie.A,{src:y.A,alt:"Product Icon 6"}))),a.createElement("div",{className:"cover-image "+(ol?"show":"hidden")},a.createElement(ie.A,{src:(0,F.getLargeSwatchImageByName)(tt.upholstery)})),a.createElement("div",{className:"functional"},a.createElement(L.A,{config:{...Fl,inStock:Sl},product:Je}))),a.createElement("p",{className:"offcanvas-toggler",onClick:en},a.createElement("svg",{width:"20",height:"24"},a.createElement("use",{xlinkHref:`${p.A}#map`})),a.createElement("span",null,"Find a showroom with this on display"))))),a.createElement(o.A,{lg:6,className:"product-info"},a.createElement("div",{className:"group"},a.createElement("div",{className:"item"},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("p",{className:"font-30 font-perfectly product-title mb-3"},Oe)),a.createElement("h1",{className:"product-name-h1 mb-0"},Je?Je.name:Me),(0,G.shouldShowSKU)(Je)&&a.createElement("p",{className:"mb-2",id:"sf-sku"},"SKU: ",null==Je?void 0:Je.sku),!!Je&&a.createElement(W.A,{product:Je,isProductPage:!0}),Et?a.createElement(ie.A,{className:"my-2",src:Et.image,alt:Et.name}):a.createElement(a.Fragment,null,!(null==Te||null===(l=Te.extension_attributes)||void 0===l||!l.image_url)&&a.createElement(ie.A,{className:"my-2",src:null==Te||null===(A=Te.extension_attributes)||void 0===A?void 0:A.image_url,alt:null==Te?void 0:Te.name})))),a.createElement("div",{className:"position-relative product-images-slider custom-mark mb-4 d-block d-lg-none mt-3"+(1==gt.length?" single-item":""),ref:zt},a.createElement("div",{className:"heart-wrapper heart-wrapper-small"},a.createElement("a",{"aria-label":"Add to cart",href:"#",className:"quick-cart-btn no-top",onClick:e=>{e.preventDefault(),El()}},a.createElement(ie.A,{src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,w_50/Content/Product%20Pages/quick-add",loading:"lazy",width:"25",height:"25",alt:"quick-cart-static"})),a.createElement("a",{"aria-label":"Add to wishlist",href:"#",className:"color-black",onClick:e=>{e.preventDefault(),hl?yl():fl()}},hl?a.createElement(ie.A,{width:25,height:25,src:w.A}):a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50"},a.createElement("path",{className:"heart",stroke:"#000",strokeWidth:"5",fill:"none",d:"M4,19.1C4,12.6,9.7,7.6,16.3,7.6c3.5,0,6.5,1.6,8.7,3.7c2.2-2.1,5.2-3.7,8.7-3.7c6.7,0,12.4,5,12.4,11.5 c0,4.4-1.9,8.3-4.5,11.6c-2.6,3.3-6,6.1-9.4,8.4c-1.3,0.9-2.5,1.7-3.7,2.3c-1.1,0.6-2.4,1.1-3.5,1.1c-1.1,0-2.4-0.5-3.5-1.1 c-1.2-0.6-2.4-1.4-3.7-2.3c-3.3-2.3-6.7-5.1-9.4-8.4C5.9,27.4,4,23.5,4,19.1z"})))),a.createElement($.A,{variant:"mobile",images:gt,settings:il,thumbSettings:rl,sliderRef:e=>ot(e),onSlideClick:Kl,heroIndex:null!==(M=null==Nt?void 0:Nt.index)&&void 0!==M?M:0}),a.createElement("div",{className:"material-links"},!!yt&&a.createElement("div",{onClick:()=>wt(!0)},a.createElement("svg",{className:"d-block phone",width:"19",height:"19"},a.createElement("use",{xlinkHref:`${p.A}#play`})),"Video"),a.createElement("div",{onClick:cl},a.createElement("svg",{className:"d-block phone",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#${ol?"close":"fabric"}`})),a.createElement("span",{className:""+(ol?"d-none":"d-block")},"Specs"),a.createElement("span",{className:"d-none "+(ol?"d-block":"d-none")},"Close")),Ll&&a.createElement("div",{onClick:Rl},a.createElement("svg",{className:"d-block phone",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#dots`})),"Variations")),a.createElement("div",{className:"cover-detail "+(ol?"show":"hidden")},a.createElement("span",{className:"d-lg-none d-sm-block d-block mb-3",onClick:cl},a.createElement("svg",{className:"back",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#back`}))),a.createElement(k(),null,a.createElement("h2",null,"Specifications"),a.createElement("div",{className:"cover-content"},!(null==Je||!Je.size_width)&&!(null==Je||!Je.size_depth)&&!(null==Je||!Je.size_height)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Dimensions: (cm)"),a.createElement("p",null,null==Je?void 0:Je.size_width,"W, ",null==Je?void 0:Je.size_depth,"D, ",null==Je?void 0:Je.size_height,"H")),!(null==Je||!Je.weight)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Weight: (kg)"),a.createElement("p",null,null==Je?void 0:Je.weight)),!(null==tt||!tt.upholstery)&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery: "),a.createElement("p",null,He(null==tt?void 0:tt.upholstery))),_l("comfort")&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Comfort: "),a.createElement("p",null,null==Cl?void 0:Cl.comfort)),_l("upholsteryT
1ype")&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery Type: "),a.createElement("p",null,null==Cl?void 0:Cl.upholsteryType)),(_l("fabricComposition")||_l("leatherPuComposition"))&&a.createElement("div",{className:"cover-item"},a.createElement("h3",null,"Upholstery Composition: "),a.createElement("p",null,[null==Cl?void 0:Cl.fabricComposition,null==Cl?void 0:Cl.leatherPuComposition].filter((e=>e)).join(", ")))),a.createElement("div",{className:"cover-btn-group"},a.createElement("button",{onClick:Mt},"See More Specs"),!(null==Cl||!Cl.additionalPdsDocument)&&a.createElement("a",{className:"download-btn",href:`${G.ASSETS_PREFIX}${encodeURIComponent(null==Cl?void 0:Cl.additionalPdsDocument)}`},"Download Collection PDS"))),a.createElement("div",{className:"cover-icon-list d-none"},a.createElement(ie.A,{src:h.A,alt:"Product Icon 1"}),a.createElement(ie.A,{src:E.A,alt:"Product Icon 2"}),a.createElement(ie.A,{src:v.A,alt:"Product Icon 3"}),a.createElement(ie.A,{src:g.A,alt:"Product Icon 4"}),a.createElement(ie.A,{src:f.A,alt:"Product Icon 5"}),a.createElement(ie.A,{src:y.A,alt:"Product Icon 6"}))),a.createElement("div",{className:"cover-image "+(ol?"show":"hidden")},a.createElement(ie.A,{src:(0,F.getLargeSwatchImageByName)(tt.upholstery||tt.timberFinish||tt.otherFinish)})),a.createElement("div",{className:"functional"},a.createElement(L.A,{config:{...Fl,inStock:Sl},product:Je}))),a.createElement("p",{className:"offcanvas-toggler d-flex d-lg-none",onClick:en},a.createElement("svg",{className:"location",width:"20",height:"24"},a.createElement("use",{xlinkHref:`${p.A}#map`})),a.createElement("span",null,"Find a showroom with this on display")),a.createElement("div",null,a.createElement(i.A,{activeKey:jl,alwaysOpen:!0},Wt.length>1&&a.createElement(i.A.Item,{eventKey:"type"},a.createElement(i.A.Header,{onClick:Zl("type")},a.createElement("span",{className:"text-bold"},"TYPE:")," ",tt.type),a.createElement(i.A.Body,null,a.createElement("ul",{className:"list-options"},(0,J.sortFilterOptions)(Wt).map((e=>{const t=Ul("type",e,e===tt.type);return a.createElement("li",{key:`type-${e}`},a.createElement("div",{className:"position-relative inner"+(e===tt.type?" active":""),onClick:t=>{t.preventDefault(),e!==tt.type&&Dl(t,"type",e)}},a.createElement("p",null,e),!!t&&a.createElement(ie.A,{src:t,alt:"In Stock",width:40,height:40,className:"option-icon p-center"})))}))))),(Tl.length>0&&Rt.length>1||Tl.length>1)&&a.createElement(i.A.Item,{eventKey:"size"},a.createElement(i.A.Header,{onClick:Zl("size")},a.createElement("span",{className:"text-bold"},"SIZE:")," ",tt.size),a.createElement(i.A.Body,null,a.createElement("ul",{className:"list-options"},(0,J.sortFilterOptions)(Tl,(e=>e.value)).map((e=>{const t=Ul("size",e.value,e.value===tt.size);return a.createElement("li",{key:`size-${e.value}-${e.dimension}`},a.createElement("div",{className:`position-relative inner${e.value===tt.size?" active":""}${ll(e,"size")?" disable":""}`,onClick:t=>{t.preventDefault(),ll(e,"size")||Dl(t,"size",e.value)}},a.createElement("p",null,e.value,!!e.dimension&&a.createElement(a.Fragment,null,a.createElement("br",null),a.createElement("small",null,"(",e.dimension,")"))),!!t&&a.createElement(ie.A,{src:t,alt:"In Stock",width:40,height:40,className:"option-icon p-top"})))}))))),(Ml.length>0&&Vt.length>1||Ml.length>1)&&a.createElement(i.A.Item,{eventKey:"config"},a.createElement(i.A.Header,{onClick:Zl("config")},a.createElement("span",{className:"text-bold"},"CONFIGURATION:")," ",!!tt.config&&a.createElement(a.Fragment,null,Pl(tt.config))),a.createElement(i.A.Body,null,a.createElement("ul",{className:"list-options"},(0,J.sortFilterOptions)(Ml,(e=>Pl(e))).map((e=>a.createElement("li",{key:`config-${e}`},a.createElement("div",{className:`inner${e===tt.config?" active":""}${ll(e,"config")?" disable":""}`,onClick:t=>{t.preventDefault(),ll(e,"config")||Dl(t,"config",e)}},a.createElement("p",null,Pl(e))))))))),(zl.length>0&&Kt.length>1||zl.length>1)&&a.createElement(i.A.Item,{eventKey:"upholstery"},a.createElement(i.A.Header,{onClick:Zl("upholstery")},a.createElement("span",{className:"text-bold"},"UPHOLSTERY:")," ",He(tt.upholstery)),a.createElement(i.A.Body,null,a.createElement("div",{className:"uphol-wrapper"},a.createElement("ul",{className:"list-options custom-list-options"},(0,J.sortFilterOptions)(zl,He).map((e=>a.createElement("li",{key:`uphol-${e}`,className:ll(e,"upholstery")?"d-none":""},a.createElement("div",{className:"inner"+(e===tt.upholstery?" active":""),onClick:t=>{t.preventDefault(),ll(e,"upholstery")||Dl(t,"upholstery",e,e===tt.upholstery)}},a.createElement("p",null,a.createElement(ie.A,{className:"img",src:(0,F.get
1SmallSwatchImageByName)(e),alt:e}))))))),a.createElement("div",{className:"selected-tile"},(0,J.sortFilterOptions)(zl,He).map((e=>a.createElement(ie.A,{key:`uphol-swatch-${e}`,alt:e,className:"image"+(e===tt.upholstery?" active":""),src:(0,F.getSmallSwatchImageByName)(e)}))))))),(Bl.length>0&&jt.length>1||Bl.length>1)&&a.createElement(i.A.Item,{eventKey:"legFinish"},a.createElement(i.A.Header,{onClick:Zl("legFinish")},a.createElement("span",{className:"text-bold"},"FINISH:")," ",He(tt.legFinish)),a.createElement(i.A.Body,null,a.createElement("div",{className:"uphol-wrapper"},a.createElement("ul",{className:"list-options custom-list-options"},(0,J.sortFilterOptions)(Bl,He).map((e=>a.createElement("li",{key:`leg-finish-${e}`,className:ll(e,"legFinish")?"d-none":""},a.createElement("div",{className:"inner"+(e===tt.legFinish?" active":""),onClick:t=>{t.preventDefault(),ll(e,"legFinish")||Dl(t,"legFinish",e,e===tt.legFinish)}},a.createElement("p",null,a.createElement(ie.A,{className:"img",src:(0,F.getSmallSwatchImageByName)(e),alt:e}))))))),a.createElement("div",{className:"selected-tile"},(0,J.sortFilterOptions)(Bl,He).map((e=>a.createElement(ie.A,{key:`leg-swatch-${e}`,alt:e,className:"image"+(e===tt.legFinish?" active":""),src:(0,F.getSmallSwatchImageByName)(e)}))))))),($l.length>0&&Zt.length>1||$l.length>1)&&a.createElement(i.A.Item,{eventKey:"timberFinish"},a.createElement(i.A.Header,{onClick:Zl("timberFinish")},a.createElement("span",{className:"text-bold"},"TIMBER FINISH:")," ",He(tt.timberFinish)),a.createElement(i.A.Body,null,a.createElement("div",{className:"uphol-wrapper"},a.createElement("ul",{className:"list-options custom-list-options"},(0,J.sortFilterOptions)($l,He).map((e=>a.createElement("li",{key:`timber-finish-${e}`,className:ll(e,"timberFinish")?"d-none":""},a.createElement("div",{className:"inner"+(e===tt.timberFinish?" active":""),onClick:t=>{t.preventDefault(),ll(e,"timberFinish")||Dl(t,"timberFinish",e,e===tt.timberFinish)}},a.createElement("p",null,a.createElement(ie.A,{className:"img",src:(0,F.getSmallSwatchImageByName)(e),alt:e}))))))),a.createElement("div",{className:"selected-tile"},(0,J.sortFilterOptions)($l,He).map((e=>a.createElement(ie.A,{key:`timber-swatch-${e}`,alt:e,className:"image"+(e===tt.timberFinish?" active":""),src:(0,F.getSmallSwatchImageByName)(e)}))))))),(Hl.length>0&&Qt.length>1||Hl.length>1)&&a.createElement(i.A.Item,{eventKey:"otherFinish"},a.createElement(i.A.Header,{onClick:Zl("otherFinish")},a.createElement("span",{className:"text-bold"},"FINISH:")," ",He(tt.otherFinish)),a.createElement(i.A.Body,null,a.createElement("div",{className:"uphol-wrapper"},a.createElement("ul",{className:"list-options custom-list-options"},(0,J.sortFilterOptions)(Hl,He).map((e=>a.createElement("li",{key:`other-finish-${e}`},a.createElement("div",{className:`inner${e===tt.otherFinish?" active":""}${ll(e,"otherFinish")?" disable":""}`,onClick:t=>{t.preventDefault(),ll(e,"otherFinish")||Dl(t,"otherFinish",e)}},a.createElement("p",null,a.createElement(ie.A,{className:"img",src:(0,F.getSmallSwatchImageByName)(e),alt:e}))))))),a.createElement("div",{className:"selected-tile"},(0,J.sortFilterOptions)(Hl,He).map((e=>a.createElement(ie.A,{key:`other-swatch-${e}`,alt:e,className:"image"+(e===tt.otherFinish?" active":""),src:(0,F.getSmallSwatchImageByName)(e)}))))))),(Wl.length>0&&el.length>1||Wl.length>1)&&a.createElement(i.A.Item,{eventKey:"legOptionName"},a.createElement(i.A.Header,{onClick:Zl("legOptionName")},a.createElement("span",{className:"text-bold"},"LEG OPTION:")," ",He(tt.legOptionName)),a.createElement(i.A.Body,null,a.createElement("div",{className:"uphol-wrapper"},a.createElement("ul",{className:"list-options custom-list-options"},(0,J.sortFilterOptions)(Wl,He).map((e=>a.createElement("li",{key:`leg-option-name-${e}`},a.createElement("div",{className:`inner${e===tt.legOptionName?" active":""}${ll(e,"legOptionName")?" disable":""}`,onClick:t=>{t.preventDefault(),ll(e,"legOptionName")||Dl(t,"legOptionName",e)}},a.createElement("p",null,a.createElement(ie.A,{className:"img",src:(0,F.getSmallSwatchImageByName)(e),alt:e}))))))),a.createElement("div",{className:"selected-tile"},(0,J.sortFilterOptions)(Wl,He).map((e=>a.createElement(ie.A,{key:`legopt-swatch-${e}`,alt:e,className:"image"+(e===tt.legOptionName?" active":""),src:(0,F.get
1SmallSwatchImageByName)(e)}))))))))),a.createElement("div",{className:"add-to-cart"},a.createElement("div",{className:"stock-panel-inner"},wl),a.createElement("div",{className:"group"},a.createElement("div",{className:"item has-stock"},a.createElement("div",{className:"stock-panel"},a.createElement("div",{className:"quantity-group"},a.createElement("button",{onClick:()=>{Ge>0&&je(Ge-1)}},"-"),a.createElement("input",{type:"number",min:"0",max:"10",value:Ge,onChange:e=>{e.preventDefault();if(""===e.target.value||/^[0-9\b]+$/.test(e.target.value)){const t=Number(e.target.value);je(t)}}}),a.createElement("button",{onClick:()=>{je(Ge+1)}},"+")),a.createElement(N.A,{onClick:El,className:"btn",textColor:"#FFFFFF",bgColor:"#000"},Ye?G.PREORDER_TEXT:"ADD TO CART")))),a.createElement(le.A,{product:Je,qty:Ge}),a.createElement("div",{className:"group"},a.createElement("div",{className:"item"},a.createElement("p",{className:"offcanvas-toggler mt-0",onClick:en},a.createElement("svg",{width:"20",height:"24"},a.createElement("use",{xlinkHref:`${p.A}#map`})),a.createElement("span",null,"Find a showroom with this on display"))))),!!vl&&a.createElement("div",{className:"small-des"},a.createElement("div",{className:"top"},a.createElement("div",{className:"top-image"},a.createElement(ie.A,{className:"img",src:`https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,h_256,w_256/Product/${vl.sku}-1`,alt:`${vl.sku}-1`})),a.createElement("div",{className:"top-content"},a.createElement("p",{className:"h4"},vl.name),!!vl&&a.createElement(W.A,{product:vl,isProductPage:!0}),a.createElement("button",{className:"add-to-cart",onClick:()=>{gl()}},"ADD TO CART"),a.createElement("span",{className:"small-text"},"Must be purchased in same order as a qualifying product for warranty validity.")))),a.createElement(Y.A,{skus:kl}),a.createElement(j.A,{productPrice:null==Je||null===(Z=Je.price_range)||void 0===Z||null===(me=Z.minimum_price)||void 0===me||null===(ce=me.final_price)||void 0===ce?void 0:ce.value})))),a.createElement("div",{className:"variations "+(ul?"show":"hiden")},a.createElement(s.A,null,a.createElement("div",{className:"inner"},a.createElement("span",{className:"back",onClick:pl},a.createElement("svg",{className:"back",width:"20",height:"20"},a.createElement("use",{xlinkHref:`${p.A}#back`}))),a.createElement(r.A,{className:"mb-4"},Dt.map(((e,t)=>a.createElement(o.A,{lg:6,xs:12,key:`pim-${t}`},a.createElement("div",{className:"image"},a.createElement(ie.A,{className:"img",src:`https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,c_fit,h_568,w_568/Product/${e.sku}-1`,alt:e.name}),a.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),et(e),pl()}},e.name)))))))))),a.createElement("div",{className:"section p-0"},a.createElement(s.A,null,a.createElement(r.A,{className:"description"},a.createElement(o.A,{lg:7,xs:12,className:"mb-xs-2"},a.createElement("h3",{className:"font-perfectly mb-4 mt-lg-4"},Je?Je.name:Me),a.createElement("p",{dangerouslySetInnerHTML:{__html:Je?null==Je?void 0:Je.short_description.html:null==Ce?void 0:Ce.short_description.html}})),a.createElement(o.A,{lg:5,xs:12,className:"mb-4 mt-lg-4 description-media",key:`description-image-${null==Je?void 0:Je.sku}`},yt?a.createElement("div",{className:"position-relative"},a.createElement(ie.A,{onClick:()=>{var e,t;bt?(At(!1),null===(e=_t.current)||void 0===e||e.pause()):(At(!0),null===(t=_t.current)||void 0===t||t.play())},className:"icon-position-center",src:bt?ve.A:Ee.A,width:30,height:30}),a.createElement("video",{ref:_t,autoPlay:!1,loop:!0,muted:!0,playsInline:!0,className:"w-100 h-auto",poster:(0,G.createThumbnail)(yt)},a.createElement("source",{src:`${yt}#t=0.001`,type:"video/mp4"}))):a.createElement(a.Fragment,null,!!Ol&&a.createElement(ie.A,{src:Ol,alt:null==Ol||null===(ke=Ol.split("/"))||void 0===ke?void 0:ke.pop(),className:"img"})))))),a.createElement("div",{className:"section pt-0"},a.createElement(s.A,null,a.createElement(i.A,{defaultActiveKey:["0","safety"],alwaysOpen:!0,className:"big-accordion"},a.createElement(i.A.Item,{eventKey:"0",ref:Tt},a.createElement(i.A.Header,null,"Product Features"),a.createElement(i.A.Body,null,a.createElement(re,{product:Je,homewareImage:Le,selectedOptions:tt,bundleItems:Al}))),a.createElement(i.A.Item,{eventKey:"1"},a.createElement(i.A.Header,null,"Materials & Finish"),a.createElement(i.A.Body,null,Nl&&a.createElement(ne.A,{tabs:null==Al?void 0:Al.map((e=>({name:e.name,ele:a.createElement(oe,{product:e})})))}),!Nl&&a.createElement(oe,{product:Je,selectedOptions:tt}))),!Nl&&a.createElement(a.Fragment,null,!(null==Je||!Je.box_width)&&!(null==Je||!Je.box_depth)&&!(null==Je||!Je.box_height)&&a.createElement(i.A.Item,{eventKey:"2"},a.createElement(i.A.Header,null,"Dimensions & Weight"),a.createElement(i.A.Body,null,a.createElement(ue,{product:Je})))),Nl&&a.createElement(i.A.Item,{eventKey:"2"},a.createElement(i.A.Header,null,"Dimensions & Weight"),a.createElement(i.A.Body,null,a.createElement(ne.A,{tabs:null==Al?void 0:Al.map((e=>({name:e.name,ele:a.createElement(ue,{product:e})})))}))),a.createElement(i.A.Item,{eventKey:"3"},a.createElement(i.A.Header,null,"Assembly & Care"),a.createElement(i.A.Body,null,Nl&&a.createElement(ne.A,{tabs:null==Al?void 0:Al.map((e=>({name:e.name,ele:a.createElement(de,{product:e})})))}),!Nl&&a.createElement(de,{product:Je}))),a.createElement(i.A.Item,{eventKey:"4"},a.createElement(i.A.Header,null,"Warranty"),a.createElement(i.A.Body,null,Nl&&a.createElement(ne.A,{tabs:null==Al?void 0:Al.map((e=>({name:e.name,ele:a.createElement(pe,{product:e})})))}),!Nl&&a.createElement(pe,{product:Je}))),a.createElement(i.A.Item,{eventKey:"5"},a.createElement(i.A.Header,null,"Box & Delivery Information"),a.createElement(i.A.Body,null,Nl&&a.createElement(ne.A,{tabs:null==Al?void 0:Al.map((e=>({name:e.name,ele:a.createElement(he,{product:e})})))}),!Nl&&a.createElement(he,{product:Je}))),Xl))),!!Je&&a.createElement(u.A,{product:Je,config:null==ze?void 0:ze.product}),a.createElement(T.A,{show:pt,onClose:()=>ht(!1),swatch:tt.upholstery}),a.createElement("div",{className:"section"},a.createElement(s.A,null,a.createElement(r.A,null,a.createElement(o.A,{lg:6,xs:12},a.createElement(ie.A,{src:"https://assets.ozdesign.com.au/q_auto,f_auto,dpr_auto,w_570/Content/Product%20Pages/Guardsman-Footer.gif",alt:"Guardsman-Footer.gif",className:"img mb-xs-2"})),a.createElement(o.A,{lg:6,xs:12,className:"d-flex flex-direction justify-content-center"},a.createElement("p",{className:"mb-2 font-14 text-600"},"TAKE CARE"),a.createElement("p",{className:"h4 font-perfectly"},"Guardsman Protection and Accidental Damage Warranties"),a.createElement("p",null,"Take care & get the most out of your new furniture with Guardsmanâs protective and repair products and accidental damage warranties. Keep your products looking their best with Guardsman from the moment they arrive in your home."),a.createElement(d.Link,{"aria-label":"Find out more",to:"/furniture/product-care",className:"color-black hover-link text-underline"},"FIND OUT MORE"))))))),a.createElement(Ae.A,{key:`showroom-popup-${null==Je?void 0:Je.sku}`,product:Je,pimProducts:Dt,offCanvasShow:Ql,handleOffCanvasClose:()=>Jl(!1)}),a.createElement(fe.A,{show:Ft,startIndex:St,images:gt,onClose:()=>xt(!1)}),a.createElement(ge.A,{show:kt,video:yt,handleClose:()=>wt(!1)}))}}}]);
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.