PageSourceSearch

https://statics.dalealbo.cl/_next/static/chunks/5251.0222a9ce64f6a53c.js

js dalealbo.cl collected 2026-10-02 05:01:55 UTC 3,149 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="63b541e5-64b3-4241-bc91-1e3cfe2031bf",e._sentryDebugIdIdentifier="sentry-dbid-63b541e5-64b3-4241-bc91-1e3cfe2031bf")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5251],{15251:function(e,t,n){n.r(t),n.d(t,{ArticlePollOptions:function(){return d}});var o=n(27573),a=n(7653),i=n(25230),l=n(98687),r=n(46778),s=n(71848),c=n(29228);function d(e){let{poll:t}=e,{totalVotes:n,options:d,path:p,questionId:u}=t,{fanSite:{poll:f}}=(0,i.u)(),[b,m]=(0,a.useState)(n),[g,x]=(0,a.useState)(!1),[w,h]=(0,a.useState)(d);(0,a.useEffect)(()=>{let e=(0,c.F)(new Date(t.endDate).toISOString(),new Date(Date.now()).toISOString(),"days");x(!!localStorage.getItem("pollVote-".concat(p))||e<0)},[]);let S=(0,a.useCallback)(async e=>{if(!g)try{await (0,l.A)({siteCode:r.V.siteCode,path:p,question:u,answer:e});let t=await (0,s.$)({siteCode:r.V.siteCode,path:p});h(t.options),m(t.totalVotes),x(!0),localStorage.setItem("pollVote-".concat(p),"true")}catch(e){console.error("@ArticlePollOptions => ",e)}},[g]);return(0,o.jsxs)(o.Fragment,{children:[w.map(e=>(0,o.jsxs)("button",{className:"".concat(g?"bg-articlePollOptionVoteBgFanSite cursor-default":"bg-pollOptionBtnFanSite"," \n            overflow-hidden rounded-[24px] w-full mb-[10px] last:mb-0 relative flex items-center h-[40px] text-white font-primaryFanSite tracking-normal text-articlePollEmbedOptionMobileFanSite md:text-articlePollEmbedOptionFanSite"),onClick:()=>S(e.optionId),children:[(0,o.jsx)("span",{className:"".concat(g?"text-left":"text-center"," basis-0 flex-grow-[1] pl-[15px] z-[1]"),children:e.optionValue}),(0,o.jsxs)("span",{className:"".concat(g?"":"hidden"," text-right basis-0 flex-grow-[1] pr-[15px] z-[1]"),children:[e.optionPercentInteger,"%"]}),(0,o.jsx)("span",{className:"bg-articlePollOptionVoteFanSite absolute rounded-[24px] top-0 left-0 h-[40px] transition-[width] duration-300 font-primaryFanSite tracking-normal",style:{width:g?"".concat(e.optionPercentInteger,"%"):0}})]},e.optionId)),(0,o.jsx)("p",{className:"w-full text-right mt-[20px] md:mt-[35px] text-articlePollTextFanSite text-articlePollEmbedVotesMobileFanSite md:text-articlePollEmbedVotesFanSite font-primaryFanSite",children:f.votes(b)})]})}},98687:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(56450),a=n(16686);let i=async e=>{let{siteCode:t,path:n,answer:i,question:l}=e;await o.O.post({url:"/sites/".concat(t,"/polls/vote"),version:(0,a.vp)(t),body:{},params:{path:n,answer:i,question:l}})}},29228:function(e,t,n){n.d(t,{F:function(){return r}});var o=n(95330),a=n(46778);let i=(e,t)=>{let n=new Date(e),o=new Date(n.toLocaleString("en-US",{timeZone:t})),a=n.getTime()-o.getTime();return n.getTime()+a},l=()=>o.P[a.V.siteCode],r=(e,t,n)=>{let o=l(),a=i(e,o.timezone),r=i(t,o.timezone);switch(n){case"hours":return Math.floor((a-r)/36e5);case"days":return Math.floor((a-r)/864e5);default:throw Error('Invalid range specified. Use "hours" or "days".')}}}}]);

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.