1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4516,397],{4567:function(e,i,l){l(94746),i.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNjY2NjcgMS4zMzMyNUwxIDUuOTk5OTJNMSA1Ljk5OTkyTDUuNjY2NjcgMTAuNjY2Nk0xIDUuOTk5OTJMMTMgNS45OTk5MiIgc3Ryb2tlPSIjMEIxQjM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="},397:function(e,i,l){l.r(i),l.d(i,{DATA_TEST_IDS:function(){return I},default:function(){return g}});var s=l(57437),t=l(36760),n=l.n(t),a=l(40521),c=l(2265),d=l(83166),o=l(20869),u=l(46413),r=l(4567);l(94746);var m=l(29174);let b={open:{x:0,opacity:1},closed:{x:"100%"}},I={CLOSE_BTN:"d2cSliding-close-btn",BACK_TO:"d2cSliding-back-to-btn"};var g=e=>{let{onCloseSliding:i,handleCloseColourListing:l,isOpenColourListing:t,isOpen:g,children:x,buttonSelectItemProps:N,title:j,className:h}=e,p=(0,c.useRef)(null),v=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=document.body;g&&!e?i.classList.add("panel-active"):i.classList.remove("panel-active")},M=()=>{i(),v()},Z=e=>{p.current.contains(e.target)||M()};return(0,c.useEffect)(()=>{v()},[g]),(0,c.useEffect)(()=>()=>{v(!0)},[]),(0,s.jsx)("div",{role:"dialog",onClick:Z,onKeyDown:Z,className:n()({"sliding-panel--overlay":g},h),children:(0,s.jsx)(a.E.div,{className:"sliding-panel sliding-panel--d2c bg-white",ref:p,variants:b,initial:"closed",transition:{type:"easeOut"},animate:g?"open":"closed",children:(0,s.jsxs)("div",{className:"overflow-x-hidden flex flex-col h-full sliding-panel--d2c__inner",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-4 pr-4",children:[!t&&(0,s.jsx)("div",{className:"sliding-panel--d2c__title",children:j}),t&&(0,s.jsxs)("button",{"data-testid":I.BACK_TO,title:"back-to-button",className:"cursor-pointer flex items-center",onMouseDown:l,children:[(0,s.jsx)(o.Z,{path:r.Z,className:"back-to__icon"}),(0,s.jsx)("span",{className:"ml-2 text-base font-medium text-dulux-blue",children:m.Z.BACK})]}),(0,s.jsx)("button",{"data-testid":I.CLOSE_BTN,title:"".concat(null==j?void 0:j.toLowerCase(),"-close-button"),className:"cursor-pointer ml-auto",onMouseDown:M,children:(0,s.jsx)(o.Z,{path:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgNkwxOCAxOE02IDE4TDE4IDZMNiAxOFoiIHN0cm9rZT0iIzBCMUIzNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",size:1,colour:"#0B1B34"})})]}),t&&(0,s.jsx)("div",{className:"text-left mb-4 pr-4",children:(0,s.jsx)(u.Z,{size:4,children:j})}),x,N&&(0,s.jsx)("div",{className:"pr-4",children:(0,s.jsx)(d.Z,{className:"flex-shrink-0 mt-5",size:"large",width:"full",type:"submit",disabled:N.disabled,onClick:N.onClick,children:N.title})})]})})})}}}]);
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.