PageSourceSearch

https://cdn.power-wrestling.de/_next/static/chunks/9035.55d00b85efc509ee.js

js power-wrestling.de collected 2026-10-02 03:02:34 UTC 4,437 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9035],{29035:(e,s,a)=>{a.r(s),a.d(s,{default:()=>d});var t=a(95155),r=a(88645),l=a(12115),n=a(34786),i=a(49499);let o=(0,l.forwardRef)((e,s)=>{let{type:a="text",name:r,label:l,placeholder:n,error:i,value:o,checked:d,autoComplete:c=!0,icon:m,className:u,onChange:x}=e;return(0,t.jsxs)("div",{className:u,children:["radio"===a?(0,t.jsxs)("label",{className:"flex items-center cursor-pointer ".concat(u),children:[(0,t.jsx)("input",{ref:s,type:"radio",name:r,value:o,onChange:x,className:"h-4 w-4 text-primary border-gray-300 focus:ring-primary"}),l&&(0,t.jsx)("span",{className:"ml-3 block text-dark dark:text-white",children:o})]}):"checkbox"===a?(0,t.jsxs)("div",{className:"relative flex items-start ".concat(u),children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{id:r,ref:s,type:"checkbox",name:r,checked:d,onChange:x,className:"h-4 w-4 text-primary border-gray-300 focus:ring-primary rounded"})}),l&&(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsx)("label",{htmlFor:r,className:"text-darkGray",children:l})})]}):(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)("label",{htmlFor:r,className:"mb-1 block text-sm font-medium text-gray-700",children:l}),(0,t.jsxs)("div",{className:"relative rounded-md shadow-sm",children:[m&&(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"}),(0,t.jsx)("input",{ref:s,type:a,name:r,id:r,placeholder:n,autoComplete:c?"on":"off",onChange:x,className:"\n                  block w-full pr-10 \n                  ".concat(m&&"pl-10","\n                  ").concat(i?"border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 focus:ring-primary focus:border-primary","\n                focus:outline-none sm:text-sm rounded-md\n              "),"aria-invalid":"true","aria-describedby":"email-error"}),i&&(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"})]})]}),i&&(0,t.jsx)("p",{className:"mt-0.5 text-xs text-red-600",children:i})]})});o.displayName="InputView";let d=e=>{let{poll_id:s}=e,{poll:a,hasVoted:d,answerId:c,setAnswerId:m,vote:u}=(e=>{let{visitor:s}=(0,i.Z2)(),[a,t]=(0,l.useState)(!1),[r,o]=(0,l.useState)(),[d,c]=(0,l.useState)(),m=async()=>{await (0,n.gU)(e).then(e=>{c(e||void 0),t((null==e?void 0:e.my_answer)!==null)}).catch(e=>console.log(e))},u=async()=>{r&&await (0,n.Cj)(e,r).then(e=>{t(!0),c(e||void 0)}).catch(e=>console.log(e))};return(0,l.useEffect)(()=>{e&&s&&m()},[e,s]),{poll:d,hasVoted:a,answerId:r,setAnswerId:o,vote:u}})(s);return(0,t.jsxs)("div",{className:"border ",children:[(0,t.jsx)("p",{className:"p-4 text-xl font-medium text-black dark:text-white bg-gradient-to-r from-secondary to-primary",children:(0,r.p)("pages:article.poll")}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("p",{className:"mb-4 font-semibold",children:null==a?void 0:a.question}),d||(null==a?void 0:a.is_closed)?null==a?void 0:a.answers.map(e=>{let s=((e,s)=>Number.isFinite(e)&&Number.isFinite(s)?s<=0||e<=0?0:Math.min(100,Math.round(e/s*100)):0)(e.answer_voting,a.total_voting);return(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("label",{children:e.answer}),(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"w-4/5",children:(0,t.jsx)("div",{className:"w-full h-6 bg-gray-500 dark:bg-opacity-100 dark:bg-white bg-opacity-20 rounded",children:(0,t.jsx)("div",{style:{width:"".concat(s,"%")},className:"\n                    h-full bg-gradient-to-r from-gray-300 to-primary\n                    ".concat(100===s?"rounded":"rounded-l","\n                  ")})})}),(0,t.jsxs)("p",{className:"w-1/5 text-right",children:[s,"%"]})]})]},e.id)}):null==a?void 0:a.answers.map(e=>(0,t.jsx)(o,{type:"radio",name:null==a?void 0:a.question,label:e.answer,value:e.answer,onChange:()=>m(e.id),className:"mb-2"},e.id)),d||(null==a?void 0:a.is_closed)?(0,t.jsxs)("p",{className:"text-xs text-gray-700",children:[null==a?void 0:a.total_voting," ",(null==a?void 0:a.total_voting)!==1?(0,r.p)("pages:article.votes").toLowerCase():(0,r.p)("pages:article.vote").toLowerCase()]}):(0,t.jsx)("button",{onClick:u,disabled:void 0===c,className:"w-full mt-4 font-semibold bg-primary rounded-lg register-switch-btn focu
1s:outline-none text-white py-2 hover:opacity-75",children:(0,r.p)("pages:article.vote")})]})]})}}}]);

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.