1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7584],{49646:function(t,e,n){"use strict";n.d(e,{Z:function(){return _}});var i=n(4637),a=n(59496),o=n(93205);function r(t){var e=t.className;return(0,i.jsx)("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",focusable:"false","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM4 14h2v4h4v2H4v-6Zm14 0h2v6h-6v-2h4v-4Z"})})}var c=n(72006),l=n(4405),s=n(87995),u=n(10521),d=n(52543),h=n.n(d),x=function(t,e,n){return Math.min(Math.max(t,e),n)},f={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":!0,focusable:!1},m=function(){return(0,i.jsx)("svg",(0,l.Z)((0,c.Z)({},f),{children:(0,i.jsx)("path",{d:"M5 12h14"})}))},p=function(){return(0,i.jsx)("svg",(0,l.Z)((0,c.Z)({},f),{children:(0,i.jsx)("path",{d:"M12 5v14M5 12h14"})}))},g=function(){return(0,i.jsx)("svg",(0,l.Z)((0,c.Z)({},f),{children:(0,i.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})}))},v=function(t){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)};function w(t){var e=t.src,n=t.alt,o=t.onClose,r=t.restoreFocusRef,c=(0,a.useState)(1),l=c[0],d=c[1],f=(0,a.useState)({x:0,y:0}),w=f[0],_=f[1],y=(0,a.useState)(!0),b=y[0],j=y[1],N=(0,a.useRef)(null),C=(0,a.useRef)(null),Z=(0,a.useRef)(null),S=(0,a.useRef)(null),P=(0,a.useRef)(1),I=(0,a.useRef)({pinchDistance:0,pinchScale:1,panStart:null}),k=(0,a.useCallback)(function(t,e){var n=S.current,i=Z.current;if(!n||!i)return t;var a=Math.max(0,(n.offsetWidth*e-i.clientWidth)/2),o=Math.max(0,(n.offsetHeight*e-i.clientHeight)/2);return{x:x(t.x,-a,a),y:x(t.y,-o,o)}},[]),L=(0,a.useCallback)(function(t){var e="function"==typeof t?t(P.current):t,n=x(e,1,4);P.current=n,d(n),_(function(t){return 1===n?{x:0,y:0}:k(t,n)})},[k]);(0,u.a)({containerRef:N,initialFocusRef:C,restoreFocusRef:r}),(0,a.useEffect)(function(){var t=function(t){"Escape"===t.key&&o()},e=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}},[o]);var M=function(t){if(j(!1),2===t.touches.length){I.current.pinchDistance=v(t.touches),I.current.pinchScale=P.current,I.current.panStart=null;return}1===t.touches.length&&P.current>1&&(I.current.panStart={x:t.touches[0].clientX-w.x,y:t.touches[0].clientY-w.y})},H=function(t){if(2===t.touches.length&&I.current.pinchDistance){var e=v(t.touches)/I.current.pinchDistance;L(I.current.pinchScale*e);return}1===t.touches.length&&I.current.panStart&&_(k({x:t.touches[0].clientX-I.current.panStart.x,y:t.touches[0].clientY-I.current.panStart.y},P.current))},E=function(){I.current.pinchDistance=0,I.current.panStart=null},q=function(t){j(!0),L(function(e){return e+t})},F=function(t){t.target===t.currentTarget&&(P.current>1?(j(!0),L(1)):o())},z=(0,i.jsxs)("div",{ref:N,tabIndex:-1,className:h().overlay,role:"dialog","aria-modal":"true","aria-label":n||"Imagen completa",children:[(0,i.jsxs)("div",{className:h().toolbar,children:[(0,i.jsx)("button",{type:"button",className:h().toolbarButton,onClick:function(){return q(-.5)},disabled:l<=1,"aria-label":"Alejar",children:(0,i.jsx)(m,{})}),(0,i.jsx)("button",{type:"button",className:h().toolbarButton,onClick:function(){return q(.5)},disabled:l>=4,"aria-label":"Acercar",children:(0,i.jsx)(p,{})}),(0,i.jsx)("button",{ref:C,type:"button",className:"".concat(h().toolbarButton," ").concat(h().toolbarClose),onClick:o,"aria-label":"Cerrar",children:(0,i.jsx)(g,{})})]}),(0,i.jsx)("div",{ref:Z,className:h().stage,onClick:F,onTouchStart:M,onTouchMove:H,onTouchEnd:E,children:(0,i.jsx)("img",{ref:S,className:"".concat(h().image," ").concat(b?h().animated:""),src:e,alt:n||"Imagen completa",decoding:"async",draggable:!1,style:{transform:"translate(".concat(w.x,"px, ").concat(w.y,"px) scale(").concat(l,")"),cursor:l>
11?"grab":"zoom-in"}})})]});return(0,s.createPortal)(z,document.body)}function _(t){var e,n,c,l,s=t.src,u=t.alt,d=t.className,x=t.fillHeight,f=t.children,m=(0,a.useState)(!1),p=m[0],g=m[1],v=(e="(max-width: 767px)",c=(n=(0,a.useState)(!1))[0],l=n[1],(0,a.useEffect)(function(){var t=window.matchMedia(e);t.matches!==c&&l(t.matches);var n=function(){return l(t.matches)};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}},[c,e]),c),_=(0,a.useRef)(null);return((0,a.useEffect)(function(){v||g(!1)},[v]),s&&v)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"".concat(h().wrapper," ").concat(void 0!==x&&x?h().fillHeight:""," ").concat(d||""),onClick:function(){return g(!0)},children:[f,(0,i.jsx)("button",{ref:_,type:"button",className:h().expand,"aria-label":"Ver imagen completa",onClick:function(t){t.stopPropagation(),g(!0)},children:(0,i.jsx)(r,{})})]}),p?(0,i.jsx)(w,{src:(0,o.oG)({src:s}),alt:u,onClose:function(){return g(!1)},restoreFocusRef:_}):null]}):f}},74601:function(t,e,n){"use strict";var i=n(72006),a=n(4405),o=n(4637),r=n(88521),c=n(17251),l=n.n(c),s=n(60208),u=n.n(s),d=n(61016),h=n.n(d),x=n(93205),f=function(t){var e,n=t.src,c=t.focalPoint,
1s=void 0===c?null:c,d=t.alt,f=t.className,m=t.width,p=t.height,g=t.sizes,v=t.quality,w=t.objectFit,_=void 0===w?"cover":w,y=t.priority,b=void 0!==y&&y,j=t.isHero,N=void 0!==j&&j,C=t.layout,Z=t.feed,S=void 0!==Z&&Z;if(!n)return null;var P=n.includes(r.mediaUrl)&&(0,x.dE)(n),I=x.eY&&x.Oq?x.xY:x.O,k=null==s?void 0:null===(e=s.thumbor)||void 0===e?void 0:e.objectPosition,L=k&&null!=k.x&&null!=k.y?"".concat(k.x,"% ").concat(k.y,"%"):void 0,M=9/16,H=function(t){return S?Math.round(t/M):m&&p&&!(100===m&&100===p)?Math.round(t*p/m):0},E=function(){if(!P)return n;var t=m?100==m?768:m:768;return I({src:n,width:t,height:H(t),quality:v||60,focalPoint:s,isHero:N,feed:S})};return m&&p?(0,o.jsxs)(o.Fragment,{children:[b&&(0,o.jsx)(h(),{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:E(),fetchpriority:"high",imagesizes:g,imagesrcset:P?S?"".concat(I({src:n,width:405,height:H(405),quality:v||60,focalPoint:s,feed:S})," 405w,\n ").concat(I({src:n,width:628,height:H(628),quality:v||60,focalPoint:s,feed:S})," 628w,\n ").concat(I({src:n,width:720,height:H(720),quality:v||60,focalPoint:s,feed:S})," 720w,\n ").concat(I({src:n,width:800,height:H(800),quality:v||60,focalPoint:s,feed:S})," 800w"):"".concat(I({src:n,width:384,height:H(384),quality:v||60,focalPoint:s,isHero:N})," 384w,\n ").concat(I({src:n,width:768,height:H(768),quality:v||60,focalPoint:s,isHero:N})," 768w,\n ").concat(I({src:n,width:1024,height:H(1024),quality:v||60,focalPoint:s,isHero:N})," 1024w,\n ").concat(I({src:n,width:1500,height:H(1500),quality:v||60,focalPoint:s,isHero:N})," 1500w"):null})}),(0,o.jsx)(l(),{src:n,loader:function(t){return P?I((0,a.Z)((0,i.Z)({},t),{height:H(t.width),focalPoint:s,isHero:N,feed:S})):null},unoptimized:!P,alt:d,className:f,quality:v||"60",priority:b,fetchpriority:b?"high":"low",decoding:b?"sync":"async",width:m,height:S?Math.round(m/M):p,sizes:S?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":g||"(max-width: 768px) 100vw, (max-width: 991px) 70vw, 50vw",style:(0,i.Z)({objectFit:_},L&&{objectPosition:L})})]}):(0,o.jsxs)(o.Fragment,{children:[b&&(0,o.jsx)(h(),{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:E(),fetchpriority:"high",imagesrcset:S?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":g||"(max-width: 576px) 100vw,(max-width: 768px) 100vw,(max-width: 991px) 80vw,(max-width: 1200px) 50vw"})}),(0,o.jsx)(u(),{src:n,loader:function(t){return P?I((0,a.Z)((0,i.Z)({},t),{focalPoint:s,isHero:N,feed:S})):null},unoptimized:!P,alt:d,className:f,quality:v||"60",layout:C||"fill",objectFit:S?"cover":_,objectPosition:L,priority:b,fetchpriority:b?"high":"low",decoding:b?"sync":"async",sizes:S?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":g||"(max-width: 576px) 100vw,(max-width: 768px) 100vw,(max-width: 991px) 80vw,(max-width: 1200px) 50vw"})]})};e.Z=f},28182:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(4637),a=n(59496),o=n(89624),r=n.n(o),c=n(74601),l=n(49646),s=n(26181),u=n(76556);function d(t){var e=t.variant,n=t.featuredImage,o=t.epigrafe,d=t.title,h=t.photographer,x=t.copete,f=t.fontSize,m=t.focalPoint,p=(0,a.useState)(!1),g=p[0],v=p[1];return"note"===(void 0===e?"note":e)?(0,i.jsxs)("section",{className:r().noteImageContainer,children:[x&&(0,i.jsx)(u.Z,{fontSize:f,copete:x}),(0,i.jsxs)("figure",{children:[n?(0,i.jsx)(l.Z,{src:n,alt:o?"".concat(o):"".concat(d),fillHeight:!0,children:(0,i.jsx)(c.Z,{src:n,alt:o?"".concat(o):"".concat(d),quality:75,sizes:"(max-width: 1149px) 944px, (max-width: 1439px) 1098px, (max-width: 1441px) 1280px, 1442px",width:1280,height:720,focalPoint:m,priority:!0})}):(0,i.jsx)(c.Z,{src:s.Z.logo,className:r().imageDefault,alt:o?"".concat(o):"".concat(d),layout:"fill",quality:75,objectFit:"contain",priority:!0,focalPoint:m}),o||h?(0,i.jsx)("figcaption",{className:"".concat(r().figcaption," ").concat(g?r().showMore:""),role:"button",tabIndex:0,"aria-expanded":g,"aria-label":g?"Ocultar ep\xedgrafe completo":"Mostrar ep\xedgrafe completo",onClick:function(){return v(function(t){return!t})},children:(0,i.jsxs)("div",{className:r().container,children:[o&&(0,i.jsx)("span",{className:r().epigrafe,children:o}),o&&h?(0,i.jsx)("span",{children:"|"}):null,h&&(0,i.jsx)("span",{className:r().photographer,children:"PH: ".concat(h)})]})}):null]})]}):null}},7584:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Z},expRegex:function(){return C}});var i=n(4637),a=n(59496),o=n(46302),r=n(28182),c=n(70509),l=n(6575),s=n(88521),u=n(49536),d=n(23654),h=n.n(d),x=n(77637),f=n(51981),m=0;function p(t){var e=t.attribs,n=t.children,a=(0,x.Z)(t,["attribs","children"]);if(e){if("script"==a.type){if(!e.id||e.id&&!document.querySelector("#".concat(e.id))){var o=document.createElement("script");o.src=e.src,o.async=!0,document.body.appendChild(o)}return}if("tag"==a.type&&"p"==a.name||"img"==a.name||"figure"==a.name)return++m<3?(0,i.jsx)("p",{children:(0,f.du)(n,{replace:p})}):(0,i.jsx)(i.Fragment,{});else return null}}var g=n(65388),v=n.n(g),w=n(76556),_=n(87995);function y(t){var e=t.element;if(!e||e&&!(0,a.isValidElement)(e))return null;try{return(0,_.createPortal)(e,document.body)}catch(n){return null}}var b=n(60208),j=n.n(b),N=n(26181),C=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\/|wat
1ch\?v=|\&v=|\?v=|live\/)([^#\&\?]*).*/;function Z(t){var e,n,d,x,g=t.title,_=t.audio_note,b=t.content,Z=t.content_premium,S=t.coverImage,P=t.epigrafe,I=t.photographer,k=t.copete,L=t.link_note,M=t.video_note,H=t.focal_point,E=function(t){t.preventDefault(),window.getSelection().removeAllRanges()},q=(0,a.useState)(!1),F=q[0],z=q[1],R=(0,a.useState)(!1),B=R[0],D=R[1],W=(0,a.useState)(!1),T=W[0],V=W[1],X=(0,a.useRef)(null),Y=(0,u.rV)(),O=Y.settings,A=Y.getSetting,G=null!==(n=null!=Z?Z:b)&&void 0!==n?n:null,U=null!==(d=null==_?void 0:_.value)&&void 0!==d?d:_;return(0,a.useEffect)(function(){!O.loading&&O.settings&&z(!!A("copy",s.allow_copy_note))},[O]),(0,a.useEffect)(function(){V(!0)},[]),M&&(x=null==M?void 0:M.match(C),x?M="https://www.youtube.com/embed/".concat(x[2],"/?autoplay=1&enablejsapi=1"):G.match(/\bhttps?:\/\/\S+/gi).forEach(function(t){C.test(t)&&(M=t.replace(/['"]+/g,""))})),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.df,{threshold:0,style:{marginTop:"0vh",position:"absolute"},onChange:function(t){t&&D(!t)}}),(0,i.jsxs)("section",{className:"".concat(B?h().premiumBlur:""," ").concat(h().premiumContainer),children:[M&&C.test(M)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("iframe",{src:M,style:{border:"none",overflow:"hidden",top:0,left:0},className:h().videoCover,allowFullScreen:!0,allow:"autoplay; encrypted-media",title:"Youtube video player"}),k&&(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)(w.Z,{format:"video",copete:k})})]}):S?(0,i.jsx)(r.Z,{variant:"note",epigrafe:P,photographer:null!=I?I:null,featuredImage:S,title:g,focalPoint:void 0===H?null:H,copete:null!=k?k:null}):(0,i.jsx)(j(),{src:N.Z.logo,alt:P?"".concat(P):"".concat(g),width:800,height:450,className:"mg-0-auto full-width obj-fit-cover image",quality:"75",objectFit:"contain"}),(0,i.jsx)("div",{className:h().wrapper,children:(0,i.jsxs)("div",{className:"".concat(h().noteContainer),children:[(0,i.jsx)("div",{className:h().socialMediaSidebar,children:(0,i.jsx)(l.Z,{title:g,link_url:"https://pilardetodos.com.ar"+L})}),(0,i.jsxs)("div",{onCopy:E,ref:X,className:" ".concat(v().NoteContent," ").concat(h().noteText," ").concat(F?"noselect":""),children:[U&&(0,i.jsx)("div",{className:h().audio,children:(0,i.jsx)("audio",{src:U,controls:!0,controlsList:"nodownload",children:(0,i.jsx)("source",{src:U})})}),G&&(m=0,(0,f.ZP)(G,{replace:p,withStartIndices:!0,withEndIndices:!0}))]})]})})]}),(0,i.jsx)(o.df,{threshold:0,style:{marginTop:"0vh",position:"absolute",bottom:B?"0 vh":"0vh"},onChange:function(t){t&&D(t)},children:T&&(0,i.jsx)(y,{element:(0,i.jsx)(c.Z,{noteType:"premium",classes:h().paywallBanner})})})]})}},6575:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(4637),a=n(75517),o=n(16536),r=n.n(o);function c(t){var e=t.title,n=t.link_url;return(0,i.jsx)("div",{className:"".concat(r().stickySocial),children:(0,i.jsx)(a.ZP,{title:e,link_url:n,direction:"col",size:28})})}},52543:function(t){t.exports={"grid-with-ads":"ImageLightbox_grid-with-ads__MuR7E",note:"ImageLightbox_note____Eau",maxWidthContainer:"ImageLightbox_maxWidthContainer__D2tc8",adPlaceholder:"ImageLightbox_adPlaceholder__z5ifT",advertisement:"ImageLightbox_advertisement__DFv2x",wrapper:"ImageLightbox_wrapper__LW30U",fillHeight:"ImageLightbox_fillHeight__9MhlO",expand:"ImageLightbox_expand__HEzWv",overlay:"ImageLightbox_overlay__bz392",toolbar:"ImageLightbox_toolbar__iJOia",toolbarClose:"ImageLightbox_toolbarClose__s_CZr",toolbarButton:"ImageLightbox_toolbarButton__eZCrd",stage:"ImageLightbox_stage__7Wvnq",image:"ImageLightbox_image__DcpS9",animated:"ImageLightbox_animated__mXl4g"}},65388:function(t){t.exports={"grid-with-ads":"note_grid-with-ads__BItHo",note:"note_note__tL9_b",maxWidthContainer:"note_maxWidthContainer__HF2fV",adPlaceholder:"note_adPlaceholder__y7Iev",advertisement:"note_advertisement___CnsO",MainNote:"note_MainNote__cy9jW",NoteBody:"note_NoteBody__rg9mh",first:"note_first__Dxxm0",carousel:"note_carousel__PxXmi",NoteContent:"note_NoteContent__XG7Sw"}}}]);
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.