PageSourceSearch

https://es.privalia.com/gr/_next/static/chunks/7356.c2bb887867425794.js

js privalia.com collected 2026-09-24 09:09:03 UTC 7,392 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f0729dd-e252-4f94-bf75-24c50b074a82",e._sentryDebugIdIdentifier="sentry-dbid-5f0729dd-e252-4f94-bf75-24c50b074a82")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7356],{67356:(e,t,l)=>{l.r(t),l.d(t,{Filters:()=>H});var i=l(80263),r=l(70264),n=l(22662),a=l(35458),s=l(53239),o=l(44797),c=l(73545),u=l(87356),d=l(33302),f=l(80561),p=l(8759);let h=()=>{let{t:e}=(0,c.s9)(),{selectedDrawerFilter:t,changeActiveFilter:l}=b(),n=(0,u.G)(p.M_);return(0,i.jsx)(r.z6,{"aria-label":e("homefilter.text.title"),value:t,onValueChange:e=>{l(e)},children:null==n?void 0:n.values.map(e=>(0,i.jsx)(r.iH,{alignment:"right",grow:!0,"aria-label":e.title,id:e.value,label:e.title,value:e.value,variant:"brand"},"".concat(e.value,"-home-filter")))})};var v=l(79290),E=l(54365);let m=(0,s.createContext)({selectedDrawerFilter:v.vp.NONE,activeTemporalityFilterName:"",defaultFilterTitle:"",openDrawer:()=>null,changeActiveFilter:()=>null,clearFilter:()=>null}),b=()=>(0,s.useContext)(m),x=e=>{var t,l;let{children:b}=e,{querySearchParams:x}=(()=>{let{asPath:e}=(0,a.useRouter)();return{querySearchParams:(0,s.useMemo)(()=>{var t;return new URLSearchParams(null!=(t=e.split("?")[1])?t:"")},[e])}})(),{track:N}=(0,n.useTracking)(),{t:y}=(0,c.s9)(),_=(0,a.useRouter)(),O=null!=(t=(0,d.qn)(_.query,f.Lh.FILTER_VALUE))?t:v.vp.NONE,I=y((0,u.G)(p.qW)?"homefilter.text.title":"categoryfilter.text.title"),g=(0,u.G)(p.Rw),w=(0,u.G)(p.ib),T=null!=(l=(0,u.G)(p.nH))?l:"",L=(0,u.G)(p.ue),j=(0,u.G)((0,p.K_)(O,I)),[C,R]=(0,s.useState)(!1),[A,H]=(0,s.useState)(O),S=(0,s.useRef)(!0),P=()=>{R(!1)},F=e=>{H(e)},G=e=>{var t,l;if(!L||0===L.length)return;let i=null!=(t=null==e?void 0:e.value)?t:A,r=(null!=(l=null==e?void 0:e.index)?l:L.indexOf(i))+1;N(f.$I.USE_HOMEPAGE_ANCHOR,{...g,[f.Hy.FILTER]:i,[f.Hy.POSITION]:r})},D=e=>{if(!w)return;let t=new URLSearchParams(x);e===v.vp.NONE?(t.delete(f.Lh.FILTER_VALUE),t.delete(f.Lh.FILTER_TYPE)):(t.set(f.Lh.FILTER_VALUE,e),T&&t.set(f.Lh.FILTER_TYPE,T)),_.replace({pathname:"".concat(o.OY.HOME,"/").concat(w),query:t.toString()})};return(0,s.useEffect)(()=>{if(S.current){S.current=!1;return}O!==v.vp.NONE&&(D(v.vp.NONE),F(v.vp.NONE))},[w]),(0,i.jsxs)(m.Provider,{value:{activeTemporalityFilterName:j,defaultFilterTitle:I,selectedDrawerFilter:A,openDrawer:()=>{R(!0)},changeActiveFilter:F,clearFilter:()=>{D(v.vp.NONE),N(f.$I.CLICK,{...g,[f.Hy.CLICK_NAME]:f.Uj.RESET_ANCHOR,[f.Hy.FILTER]:(0,E.I)(O)}),F(v.vp.NONE)}},children:[(0,i.jsx)(r._s,{direction:"right",open:C,onClose:()=>{var e;H(O),P(),G({value:"cancel",index:null!=(e=null==L?void 0:L.indexOf(A))?e:-1})},onOpenChange:R,translations:{close:y("common.close"),resize:y("accessibility.bottomsheet.resize")},children:(0,i.jsxs)(r.zj,{size:"sm",children:[(0,i.jsx)(r.BE,{children:(0,i.jsx)(r.gk,{children:I})}),(0,i.jsx)(r.ys,{children:(0,i.jsx)(h,{})}),(0,i.jsx)(r.tb,{children:(0,i.jsx)(r.en,{layout:"row",children:(0,i.jsxs)(r.Zn,{children:[(0,i.jsx)(r.cp,{asChild:!0,children:(0,i.jsx)(r.$n,{variant:"secondary","aria-label":y("homefilter.button.cancel"),children:y("homefilter.button.cancel")})}),(0,i.jsx)(r.$n,{variant:"primary","aria-label":y("homefilter.button.validate"),onClick:()=>{P(),G(),D(A)},children:y("homefilter.button.validate")})]})})})]})}),b]})};var N=l(85742),y=l(33206);let _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeToReset:t=150,throttleMs:l=50,threshold:i=5}=e,[r,n]=(0,s.useState)("NONE"),a=(0,s.useRef)(0),o=(0,s.useRef)(0),c=(0,s.useRef)();return(0,s.useEffect)(()=>{a.current=window.scrollY;let e=()=>{let e=Date.now();if(!(e-o.current<l)){o.current=e;let l=window.scrollY,r=l-a.current;Math.abs(r)<i||(n(r>0?"DOWN":"UP"),a.current=l,clearTimeout(c.current),c.current=setTimeout(()=>n("NONE"),t))}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e),clearTimeout(c.current)}},[l,i,t]),{direction:r,isScrollingUp:"UP"===r,isScrollingDown:"DOWN"===r}};var O=l(12131),I=l(60241),g=l.n(I);let w=e=>{var t,l;let{onCloseTooltip:n}=e,{t:a}=(0,c.s9)(),s=(0,u.G)(p.M_);return(0,i.jsxs)(r.az,{paddingX:"md",paddingY:"lg",className:"w-10xl whitespace-normal",textAlign:"left",children:[(0,i.jsx)(r.az,{marginBottom:"md",children:(0,i.jsx)(r.o5,{variant:"body",
1size:"lg",weight:"medium",children:null==s||null==(t=s.informationTooltip)?void 0:t.title})}),(0,i.jsxs)(r.az,{display:"flex",align:"end",gap:"xl",children:[(0,i.jsx)(r.o5,{variant:"body",size:"sm",children:null==s||null==(l=s.informationTooltip)?void 0:l.description}),(0,i.jsx)("div",{children:(0,i.jsx)(r.$n,{"aria-label":a("homefilter.tooltip.close"),title:a("homefilter.tooltip.close"),size:"sm",isIcon:!0,leftIcon:(0,i.jsx)(g(),{}),onClick:n})})]})]})};var T=l(56994),L=l(2450),j=l(46648);let C=(0,L.keyframes)(["0%{opacity:0;visibility:visible;transform:translate(-50%,40px);}35%{opacity:1;transform:translate(-50%,-8px);}75%{transform:translate(-50%,1px);}100%{opacity:1;visibility:visible;transform:translate(-50%,0);}"]),R=L.default.div.withConfig({displayName:"styles__FixedCenteredWrapper",componentId:"groot__sc-a3d06700-0"})(["position:fixed;z-index:2;left:50%;bottom:",";"," transform:translate(-50%,0);width:max-content;transition:opacity 0.3s ease-out,transform 0.3s ease-out,visibility 0.3s;white-space:nowrap;",""],e=>{let{theme:t}=e;return t.space.s600},j.B.mobile(e=>{let{$isDownloadBannerClosed:t,theme:l}=e;return(0,L.css)(["",";"],!t&&(0,L.css)(["bottom:",";"],l.space.s1000))}),e=>{let{$isVisible:t}=e;return t?(0,L.css)(["animation:"," 0.7s;"],C):(0,L.css)(["opacity:0;visibility:hidden;"])}),A=()=>{var e;let{direction:t}=_(),{track:l}=(0,n.useTracking)(),{defaultFilterTitle:o,openDrawer:c,clearFilter:h}
1=b(),[E,m]=(0,y.A)(T.Hh.HAS_TEMPORALITY_FILTER_TOOLTIP_SHOWN,!1),[x,I]=(0,y.A)(T.Hh.HAS_CATEGORY_FILTER_TOOLTIP_SHOWN,!1),g=!!(0,O.GH)(O.wf.DOWNLOAD_BANNER_SEEN),{query:L}=(0,a.useRouter)(),j=null!=(e=(0,d.qn)(L,f.Lh.FILTER_VALUE))?e:null,C=(0,u.G)(p.qW),A=(0,u.G)(p.Rw),H=(0,u.G)(p.XS),S=(0,u.G)(p.M_),P=(0,u.G)(p.ue),F=(0,u.G)((0,p.K_)(j,o)),G=(0,s.useMemo)(()=>null==P?void 0:P.filter(e=>e!==v.vp.NONE),[P]),[D,U]=(0,s.useState)(!C||!!j),[k,z]=(0,s.useState)(!1),M=j?"active":"default",W=j?"clear":void 0,Y=!!(null==S?void 0:S.informationTooltip)&&k,$=()=>{z(!1),C?m(!0):I(!0)};return(0,s.useEffect)(()=>{!j&&C&&("UP"===t?(U(!0),D||l(f.$I.VIEW_PAGE,{...A,[f.Hy.HOMEPAGE_ANCHOR]:!0,[f.Hy.POSITION]:H})):"DOWN"===t&&U(!1))},[t,j,H,C]),(0,s.useEffect)(()=>{U(!!j||!C)},[j,C]),(0,s.useEffect)(()=>{z(C?!E:!x)},[C,E,x]),(0,i.jsx)(R,{$isVisible:D,$isDownloadBannerClosed:g,"data-testid":"filter-pill-wrapper",children:(0,i.jsx)(N.default,{"data-testid":"popover-button",content:(0,i.jsx)(w,{onCloseTooltip:$}),placement:"top",variant:"secondary",open:Y,disableClick:!0,offset:16,arrowColors:{top:"#fff",bottom:"#fff"},disablePortal:!0,children:(0,i.jsx)(r.ab,{label:F,"aria-label":F,leadingIcon:"filter",size:"large",state:M,status:"default",variant:"neutral",trailingIcon:W,onClick:()=>{c(),l(f.$I.CLICK,{...A,[f.Hy.CLICK_NAME]:f.Uj.OPEN_ANCHOR_MENU,[f.Hy.FILTER_DISPLAYED]:G}),$()},onClear:()=>{h()}})})})},H=()=>(0,i.jsx)(x,{children:(0,i.jsx)(A,{})})}}]);

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.