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]="1e29ba81-71a4-42c3-974d-6059fe85677b",e._sentryDebugIdIdentifier="sentry-dbid-1e29ba81-71a4-42c3-974d-6059fe85677b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1640],{5555:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/survey/embed/[surveyId]",function(){return r(72747)}])},72747:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return g}});var n=r(24476),s=r(64660),u=r(53162),i=r(23952),o=r(64536),a=r(75312),d=r(49341),l=r(3980),v=r(596),y=r(93577),c=r(52806),b=r(40841),f=r(25925),g=!0;t.default=()=>{let{t:e}=(0,f.Z)("common"),t=(0,o.p)(),r=(0,u.useRouter)(),g="string"==typeof r.query.surveyId?r.query.surveyId:void 0,{token:p,fingerprint:_,isReady:m}=(0,b.lt)(),{survey:w,loading:I,surveyError:h,error:x,refetch:E}=(0,b.F9)(g,p),[S,{loading:j}]=(0,i.D)(c.bI),k=(0,s.useMemo)(()=>({badge:e("survey.badge"),endsAt:e("survey.endsAt"),vote:e("survey.vote"),submit:e("survey.submit"),next:e("survey.nextStep"),back:e("survey.backStep"),totalVotes:e("survey.totalVotes"),step:e("survey.step"),maxSelectionsHint:e("survey.maxSelectionsHint"),optionalHint:e("survey.optionalHint")}),[e]),H=async r=>{let{optionIndex:n,answers:s,isFinal:u}=r;if(!(null==w?void 0:w.objectId)||!p)return!1;try{var i,o;let{data:r}=await S({variables:{surveyId:w.objectId,viewerToken:p,viewerFingerprint:_,optionIndex:n,answers:s,isFinal:u,voteSource:"EMBED"}});if((null==r?void 0:null===(i=r.publicVoteSurvey)||void 0===i?void 0:i.status)!=="OK")return t({description:(null==r?void 0:null===(o=r.publicVoteSurvey)||void 0===o?void 0:o.error)||e("survey.voteError"),status:"error",duration:4e3,isClosable:!0}),!1;return(u||"SINGLE_STEP"===w.mode)&&await E(),!0}catch(r){return t({description:r.message||e("survey.voteError"),status:"error",duration:4e3,isClosable:!0}),!1}};return!m||I?(0,n.jsx)(a.K,{minH:"100vh",align:"center",justify:"center",bg:"gray.50",children:(0,n.jsx)(d.$,{})}):x||h||!w||"ACTIVE"!==w.status?(0,n.jsx)(a.K,{minH:"100vh",align:"center",justify:"center",bg:"gray.50",px:4,children:(0,n.jsx)(l.x,{color:"gray.600",children:e("survey.embedUnavailable")})}):(0,n.jsx)(v.x,{minH:"100vh",bg:"gray.50",p:{base:3,md:6},children:(0,n.jsx)(y.wl,{survey:w,labels:k,isVoting:j,onVote:H})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=5555)}),_N_E=e.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.