PageSourceSearch

https://www.laligabares.com/_next/static/chunks/236.f2cf3ce4b7695c3a.js

js laligabares.com collected 2026-10-01 03:15:25 UTC 4,012 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[236],{50236:(e,n,s)=>{s.r(n),s.d(n,{default:()=>R});var t=s(37876),i=s(95802),o=s(2996),c=s(61540),l=s(55867),r=s(56235),a=s(7812),d=s(14232);let f=(e,n)=>{switch(n.type){case"INIT":return{...e,isLoading:!0,isError:!1};case"SUCCESS":return{...e,isLoading:!1,isError:!1,data:n.payload};case"FAILURE":return{...e,data:null,isLoading:!1,isError:!0,error:n.payload};default:throw Error()}},p=(e,n,{initialData:s}={})=>{let[t,i]=(0,d.useReducer)(f,{queryKey:s?e:null,isLoading:!1,isError:!1,error:null,data:s}),{data:o,isLoading:c,isError:l,error:r}=t,a=(0,d.useRef)(n);return(0,d.useEffect)(()=>{a.current=n}),(0,d.useEffect)(()=>{let n=!1,s=async()=>{i({type:"INIT"});try{let s=await a.current(e);n||i({type:"SUCCESS",payload:s,queryKey:e})}catch(e){n||i({type:"FAILURE",payload:e})}};return e!==t.queryKey&&s(),()=>{n=!0}},[e,t.queryKey]),{data:o,isLoading:c,isError:l,error:r}};var u=s(98066),g=s(3312),h=s(95044),y=s(88992),x=s(34846),m=s(91843),A=s(91879),C=s(34634),j=s(26295),w=s(84976);let _=w.Ay.div.withConfig({componentId:"sc-c1ede7fd-0"})(["display:flex;flex-direction:column;flex:1;min-height:400px;","{width:671px;}",""],({theme:e})=>e.breakpoints.up("lg"),({theme:e})=>e.getOverrides?.("PageSettingsConsents")),I=(0,w.Ay)(A.A).withConfig({componentId:"sc-c1ede7fd-1"})(["display:flex;flex-direction:column;flex:1;"]),b=w.Ay.div.withConfig({componentId:"sc-c1ede7fd-2"})(["display:flex;flex-direction:column;gap:",";"],({theme:e})=>e.spacing?.[40]),E=w.Ay.span.withConfig({componentId:"sc-c1ede7fd-3"})(["",""],({theme:e})=>e.getCSS?.(e.typography?.title[50])),S=w.Ay.div.withConfig({componentId:"sc-c1ede7fd-4"})(["display:flex;justify-content:space-between;gap:",";align-items:center;"],({theme:e})=>e.spacing?.[40]),k=w.Ay.div.withConfig({componentId:"sc-c1ede7fd-5"})(["flex-grow:1;display:flex;align-items:center;justify-content:center;color:var(--color-loading);"]),N=(0,w.Ay)(j.A).withConfig({componentId:"sc-c1ede7fd-6"})(["&&{margin-top:0;height:24px;}"]),v=(0,w.Ay)(C.A).withConfig({componentId:"sc-c1ede7fd-7"})(["&&{display:inline-block;}"]),L="MkPageSettingsConsents",$=({consents:e,fanConsents:n})=>{let s=(0,u.A)(),{t:c}=(0,x.Bd)("pages",{keyPrefix:"settings"}),{t:l}=(0,x.Bd)("pages",{keyPrefix:"settings.components.sections.consents"}),r=(0,y.mN)({defaultValues:{consents:n}}),{watch:d,setValue:f,getValues:p,setError:A}=r,{mutate:C,isLoading:j}=(0,a.A)(s.fan.consents.update,{onError:(e,n)=>{n&&(0,g.A)(n,A)}}),w=d("consents"),_=e?.length>0&&e.length===w.length;return(0,t.jsxs)(I,{form:r,className:`${L}__form`,onSubmit:n=>C(function(e,n){let s=new Set(e.map(e=>e.id)),t={consents:[],noConsents:[]};for(let e of n)s.has(e.id)?t.consents.push(e.id):t.noConsents.push(e.id);return t}(n.consents,e)),children:[e?.length>0&&(0,t.jsx)(b,{children:(0,t.jsxs)(S,{className:`${L}__blockRow`,children:[(0,t.jsx)(E,{dir:"auto",className:`${L}__blockLabel`,children:l("acceptAll")}),(0,t.jsx)(N,{isSelected:_,onChange:()=>{var n;f("consents",(n=e,_?[]:n))}})]})},"acceptAll"),e?.map(e=>{let{id:n,area:s,name:i}=e;return(0,t.jsxs)(b,{children:[(0,t.jsxs)(S,{className:`${L}__blockRow`,children:[(0,t.jsx)(E,{dir:"auto",className:`${L}__blockLabel`,children:s}),(0,t.jsx)(N,{isSelected:w.some(e=>e.id===n),onChange:()=>f("consents",function(e,n){let s=e.findIndex(e=>e.id===n.id);if(-1!==s){let n=e.slice();return n.splice(s,1),n}return[...e,n]}(p("consents"),e)),children:(0,t.jsx)(h.s,{children:s})})]}),(0,t.jsx)(v,{icon:null,children:(0,t.jsx)(o.A,{dir:"auto",html:i})})]},n)}),(0,t.jsx)(m.A,{children:(0,t.jsx)(i.A,{className:`${L}__saveButton`,label:c("save"),disabled:j})})]})},R=()=>{let{locale:e}=(0,l.A)(),n=(0,u.A)(),{data:s,isLoading:i}=p(`consents, ${e}`,n.consents.get),{data:o,isLoading:a}=p("fanConsents",n.fan.consents.get),{isPageLoaded:d}=(0,r.A)(),f=d&&(i||a);return(0,t.jsxs)(_,{className:L,children:[f&&(0,t.jsx)(k,{children:(0,t.jsx)(c.A,{})}),!f&&s&&(0,t.jsx)($,{consents:s,fanConsents:o??[]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.