1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1162],{99949:function(e,t,n){"use strict";var r=n(88877);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,l){if(l!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},41448:function(e,t,n){e.exports=n(99949)()},88877:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},51162:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var r=n(57437);n(2996);var o=n(38510),i=n(2265),l=n(54887),a=n(41448),s=function(e){return Object.entries(e).map(([e,t])=>t?`${e}=${t}`:e).join("&")},c=function(e){return e.split("&").reduce((e,t)=>{let[n,r]=t.split("=");return n&&(e[n]=r),e},{})},u=function(e){let t=c(e);return delete t.gid,delete t.pid,s(t)},d=function(){return window.location.hash.substring(1)},p=function(){return`${window.location.pathname}${window.location.search}`},f=e=>{let t=c(e);return!!t.gid&&!!t.pid};let m=(0,i.createContext)({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},close:()=>{},isRefRegistered:()=>!1});class h{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},y=(e,t)=>{var n;let{width:r,height:o,original:i,originalSrcset:l,thumbnail:a,cropped:s,content:c,id:u}=e,d=v(e,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return Object.assign(Object.assign(Object.assign({w:r?Number(r):void 0,h:o?Number(o):void 0,src:i,srcset:l,msrc:a,element:null!==(n=null==t?void 0:t.current)&&void 0!==n?n:void 0,thumbCropped:s,content:c},void 0!==c?{type:"html"}:{}),void 0!==u?{pid:u}:{}),d)};class g extends Error{constructor(e=""){super(),this.message=` 2 ${e} 3 4 No \`sourceId\` provided. 5 You should add \`sourceId\` prop to Item component during using \`dataSource\` prop at Gallery component. 6 Also you should add \`sourceId\` property to each item of \`dataSource\` array at Gallery component. 7 Example: 8 <Gallery dataSource={[{sourceId: 1, src: 'a.jpg'}]}> 9 <Item sourceId={1}>{({ ref }) => <div ref={ref}></div>}</Item> 10 </Gallery> 11`}}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},w=(e,t,n,r,o)=>{let i=Array.from(t.current).reduce((e,[t,{sourceId:n}])=>{if(void 0===n)throw new g("sourceId is missed on Item component");return e.set(n,t),e},new Map),{slides:l,index:a}=e.reduce((e,t,o)=>{let{sourceId:l}=t,a=b(t,["sourceId"]);if(void 0===l)throw new g("sourceId is missed in dataSource item");let s=i.has(l)?i.get(l):void 0;return(n===s||void 0!==a.id&&String(a.id)===r)&&(e.index=o),e.slides.push(y(a,s)),e},{slides:[],index:o||null});return{slides:l,index:a}};class x extends Error{constructor(e=""){super(),this.message=` 12 ${e} 13 No valid \`ref\` provided. 14 You should use \`ref\` from render prop of Item component. 15 Example: 16 <Item>{({ ref }) => <div ref={ref}></div>}</Item> 17`}}var O=e=>e[0].current instanceof Element,j=e=>{if(O(e))return e;throw new x},I=(e,t,n,r)=>{let o=Array.from(e.current);if("number"==typeof r&&(void 0===o[r]||!O(o[r])))throw new x(`Failed to open at index ${r}`);let{slides:i,index:l}=o.map(j).sort(([{current:e}],[{current:t}])=>e===t?0:2&e.compareDocumentPosition(t)?1:-1).reduce((e,r,o)=>{let[i,l]=r;return(t===i||void 0!==l.id&&String(l.id)===n)&&(e.index=o),e.slides.push(y(l,i)),e},{slides:[],index:r||null});return{slides:i,index:l}};let S=null,E=({children:e,dataSource:t,options:n,plugins:r,uiElements:a,id:v,onBeforeOpen:y,onOpen:g,withCaption:b,withDownloadButton:x})=>{let[O,j]=(0,i.useState)(null),E=(0,i.useRef)(new Map),C=(0,i.useRef)(null),k=(0,i.useCallback)((e,i,c,m)=>{if(S)return;let{slides:O,index:C}=t?w(t,E,e,i,c):I(E,e,i,c),k=m&&void 0!==m.clientX&&void 0!==m.clientY?{x:m.clientX,y:m.clientY}:null,_=new o.Z(Object.assign({dataSource:O,index:null!==C?C:i?parseInt(i,10)-1:0,initialPointerPos:k},n||{}));S=_,_.on("contentActivate",({content:e})=>{e.data.content?j((0,l.createPortal)(e.data.content,e.element)):j(null)}),_.on("close",()=>{j(null)}),x&&_.on("uiRegister",()=>{var e;null===(e=_.ui)||void 0===e||e.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4
17-3.6L10 16l6 6.1 6-6.1ZM23 23H9v2h14Z" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(e,t)=>{e.setAttribute("download",""),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),_.on("change",()=>{var n;(null===(n=t.currSlide)||void 0===n?void 0:n.data.src)&&(e.href=t.currSlide.data.src)})}})}),b&&_.on("uiRegister",()=>{var e;null===(e=_.ui)||void 0===e||e.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(e,t)=>{e.style.position="absolute",e.style.bottom="15px",e.style.left="0",e.style.right="0",e.style.padding="0 20px",e.style.color="var(--pswp-icon-color)",e.style.textAlign="center",e.style.fontSize="14px",e.style.lineHeight="1.5",e.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",_.on("change",()=>{if(!t.currSlide)return;let{caption:n,alt:r}=t.currSlide.data;e.innerHTML=n||r||""})}})}),Array.isArray(a)&&a.forEach(e=>{_.on("uiRegister",()=>{var t;null===(t=_.ui)||void 0===t||t.registerElement(e)})}),"function"==typeof r&&r(new h(_)),"function"==typeof y&&y(_);let P=()=>({gallery:{galleryUID:v}});_.on("beforeOpen",()=>{var e;if(void 0===v)return;if(!f(d())){window.history.pushState(P(),document.title);return}if(null===(e=window.history.state)||void 0===e?void 0:e.gallery)return;let t=p(),n=d(),r=u(n),o=`${t}${r?`#${r}`:""}`,i=`${t}#${n}`;window.history.replaceState(window.history.state,document.title,o),window.history.pushState(P(),document.title,i)}),_.on("change",()=>{var e;if(void 0===v)return;let t=(null===(e=_.currSlide)||void 0===e?void 0:e.data.pid)||_.currIndex+1,n=p(),r=u(d()),o=s({gid:v,pid:t}),i=`${n}#${r}&${o}`;window.history.replaceState(P(),document.title,i)});let T=()=>{void 0!==v&&null!==S&&S.close()};window.addEventListener("popstate",T),_.on("destroy",()=>{void 0!==v&&(window.removeEventListener("popstate",T),f(d())&&window.history.back()),S=null}),_.init(),"function"==typeof g&&g(_)},[n,r,a,v,y,g,b,x]);(0,i.useEffect)(()=>()=>{S&&S.close()},[]);let _=(0,i.useCallback)(()=>{if(void 0===v||null!==S)return;let e=d();if(e.length<5)return;let{pid:t,gid:n}=c(e);if(t&&n){if(0===E.current.size){C.current=t;return}t&&n===String(v)&&k(null,t)}},[k,v]);(0,i.useEffect)(()=>(_(),window.addEventListener("popstate",_),()=>{window.removeEventListener("popstate",_)}),[_]);let P=(0,i.useCallback)(e=>{E.current.delete(e)},[]),T=(0,i.useCallback)((e,t)=>{if(E.current.set(e,t),null===C.current)return;let{id:n}=t;if(n===C.current){k(e),C.current=null;return}if(!n){let e=parseInt(C.current,10)-1,t=Array.from(E.current.keys())[e];t&&(k(t),C.current=null)}},[k]),N=(0,i.useCallback)(e=>E.current.has(e),[]),$=(0,i.useCallback)(e=>{k(null,null,e)},[k]),R=(0,i.useCallback)(()=>{S&&S.close()},[]),A=(0,i.useMemo)(()=>({remove:P,set:T,handleClick:k,open:$,close:R,isRefRegistered:N}),[P,T,k,$,R,N]);return i.createElement(m.Provider,{value:A},e,O)};E.propTypes={children:a.any,options:a.object,plugins:a.func,uiElements:a.array,id:a.oneOfType([a.string,a.number]),onBeforeOpen:a.func,onOpen:a.func,withCaption:a.bool,withDownloadButton:a.bool,dataSource:a.array};let C=()=>(0,i.useContext)(m);var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let _=e=>{var{children:t}=e,n=k(e,["children"]);let r=(0,i.useRef)(null),{remove:o,set:l,handleClick:a,close:s,isRefRegistered:c}=C(),u=(0,i.useCallback)(e=>{r.current=e,l(r,n)},[l,...Object.values(n)]),d=(0,i.useCallback)(e=>{if(!c(r))throw new x;a(r,null,null,e)},[a,c]),p=(0,i.useMemo)(()=>({ref:u,open:d,close:s}),[u,d,s]);return(0,i.useEffect)(()=>()=>{null===r.current&&o(r)},[o]),t(p)};_.propTypes={children:a.func.isRequired,original:a.string,originalSrcset:a.string,thumbnail:a.string,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),alt:a.string,caption:a.string,content:a.element,html:a.string,id:a.oneOfType([a.number,a.string]),cropped:a.bool,sourceId:a.oneOfType([a.number,a.string])},n(7216);var P=e=>{var t,n,o;let i={cursor:"pointer",objectFit:"cover",width:"200px",maxHeight:"200px"},l="",a="#000";return e&&Object.entries(e).map(e=>{let[t,n]=e;t.toLowerCase().includes("headline")&&("headertag"===n.type?n.value:"fontcolor"===n.type?a=n.value:l+="".concat(n.value," "))}),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mainsection",children:[(0,r.jsx)("div",{className:"flex flex-wrap justify-content-center",children:(null==e?void 0:e.Headline)&&(0,r.jsx)("div",{className:"w-full",dangerouslySetInnerHTML:{__html:'<div class=" '.concat(l||"mb-[20px] mt-[20px] text-large-text font-semibold md:text-[32px] mx-auto text-center",'" style=" color: ').concat(a,"\" id='Headline' >").concat((null==e?void 0:null===(t=e.Headline)||void 0===t?void 0:t.value)||"Premium Brands","</div>")}})}),(null==e?void 0:null===(o=e.dynamic)||void 0===o?void 0:null===(n=o.value)||void 0===n?void 0:n.length)>0&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"mx-auto mb-[40px] flex justify-center items-center text-center logo-slider",children:(0,r.jsx)("div",{className:"",children:(0,r.jsx)("div",{className:"max-w-[950px] mx-auto grid grid-cols-2 md:grid-cols-4 gap-4 gallery",children:(0,r.jsx)(E,{children:e.dynamic.value.map((e,t)=>e.Image?(0,r.jsx)(_,{original:e.Image,thumbnail:e.Image,alt:e.Image_alt,width:"1024",height:"768",children:t=>{let{ref:n,open:o}=t;return(0,r.jsx)("div",{children:(0,r.jsx)("img",{className:"h-full max-w-auto",style:i,src:e.Image,alt:e.Image_alt,title:e.Image_alt,ref:n,onClick:o})})}}):(0,r.jsx)(r.Fragment,{}))})})})})})]})})}},2996:function(){},7216:function(){}}]);
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.