PageSourceSearch

https://eduwo.ch/_next/static/chunks/pages/review_lead-ae46a27c0f7cce81.js

js eduwo.ch collected 2026-10-02 04:10:58 UTC 7,064 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5321],{2222:(e,a,t)=>{"use strict";t.d(a,{q:()=>n});var l=t(62523),s=t(97867),r=t(11772),i=t(52692);let n=e=>{let{skip:a=!1,url:t,deps:n,onFinally:c,onTry:d,loadingValue:o=!1,onUnMount:u}=e,[m,_]=(0,s.useState)(void 0),[h,v]=(0,s.useState)(void 0),[p,g]=(0,s.useState)(null!=o&&o),{lang:x}=(0,i.A)(),b=l.A.CancelToken.source(),f=async(e,a,t)=>{try{g(!0);let l=await (0,r.G)({...e,cancelToken:null==a?void 0:a.token,params:{...e.params,locale:x}});t?t(l):_(l),d&&d(l)}catch(e){v(e)}finally{c&&c(),g(!1)}},j=(0,s.useCallback)((e,a)=>f(e,b,a),[]),w=(0,s.useCallback)(()=>{_(void 0)},[]);return(0,s.useEffect)(()=>{if(!a)return f(e,b),()=>{_(void 0),u&&u(b)}},[a,t,...n||[]]),{data:m,error:h,loading:p,reload:()=>f(e,b),updateData:j,resetData:w,handleSetData:e=>{_(e)},handleSetLoading:(0,s.useCallback)(e=>g(e),[])}}},3806:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(55427),s=t(97867),r=t(52692);let i=e=>{let{initialValue:a=0,onClick:t,className:i,translationNamespace:n="review-lead"}=e,{t:c}=(0,r.A)(n),[d,o]=(0,s.useState)(a||0);return(0,s.useEffect)(()=>{null!=a&&o(a)},[a]),(0,l.jsx)("div",{className:"RatingCircles ".concat(i||""),children:(0,l.jsx)("div",{className:"RatingCircles__container",children:Array.from({length:10},(e,a)=>{let s=a+1,r=d===s,i="#6c757d",n=(e=>1===e?"#dc3545":10===e?"#28a745":"transparent")(s);return(0,l.jsxs)("div",{className:"RatingCircles__item",children:[(0,l.jsx)("div",{className:"RatingCircles__circle ".concat(r?"RatingCircles__circle--selected":""),style:{backgroundColor:r?i:"transparent",borderColor:i,color:r?"#ffffff":i},onClick:()=>(e=>{o(e),t&&t(e)})(s),children:s}),(0,l.jsxs)("span",{className:"RatingCircles__label",style:{color:n},children:[1===s&&c("rating-bad"),10===s&&c("rating-excellent")]})]},s)})})})}},23750:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>f});var l=t(55427),s=t(34879),r=t(92257),i=t(97867),n=t(20548),c=t(3806),d=t(39496),o=t(2222),u=t(52692),m=t(3540),_=t(99238),h=t(38095),v=t(27152),p=t(11772),g=t(81622);let x=()=>{let e=(0,m.useRouter)(),a=e.query,t=a.rating,s=a.track_code,x=a.type,b=a.to_email,{t:f,lang:j}=(0,u.A)("review-lead"),w=(e=>{let a={desc:_.Yj().required("Please enter your desc")},t=_.Ik().shape({...a});return(0,h.Wx)({initialValues:{desc:"",rating:0},validateOnBlur:!1,validateOnChange:!1,validationSchema:t,validateOnMount:!1,onSubmit:(a,t)=>{e.onSubmit(a,t)}})})({initialValues:{desc:"",rating:null!=t?t:0},onSubmit:async()=>{var a;await (0,p.G)({url:"/frontend/ratings/".concat("school"===x?"wizard_school":"wizard","_rating?rating=").concat(t,"&track_code=").concat(s),method:"post",data:{rating:null!=(a=w.values.rating)?a:t,message:w.values.desc,to_email:b},baseURL:"https://prod.backend.eduwo.ch/api/v3"}),await e.push("/".concat(j))}}),{}=(0,o.q)({url:"/frontend/ratings/".concat("school"===x?"wizard_school":"wizard","_rating?rating=").concat(t,"&track_code=").concat(s),method:"post",data:{rating:Number(t),message:w.values.desc,to_email:b},baseURL:"https://prod.backend.eduwo.ch/api/v3"});(0,i.useEffect)(()=>{t&&w.setFieldValue("rating",Number(t))},[]);let N=f("school"===x?"review-lead-school-desc":"review-lead-user-desc"),S=async e=>{e.preventDefault();let{name:a,value:t}=e.target;if(!t)return void await w.setFieldValue(a,t);await w.setFieldValue(a,t),w.setErrors({...w.errors,[a]:""}),await w.validateField(a)},{width:k}=(0,r.A)();return(0,l.jsx)("div",{className:"column_centered_baseline register-content RatingLeadContent",children:(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault()},className:k>v.A.tablet?"full_width":"register-form ",children:[(0,l.jsx)("h1",{className:"h4 mb_40",children:f("thank-you-for-your-review")}),(0,l.jsxs)("p",{className:"h6 fw_400",children:[" ",f("how-likely-to-recommend-us")]}),(0,l.jsx)(c.A,{initialValue:t?Number(t):0,onClick:e=>w.setFieldValue("rating",null!=e?e:Number(e))}),(0,l.jsx)("p",{className:"mt_10 fw_200",children:N}),(0,l.jsx)(d.A,{name:"desc",placeholder:f("common:Kommentar"),value:w.values.desc,onChange:e=>S(e),className:"mt_30 ".concat(k>v.A.tablet?"col60":"col80"," ").concat(!w.values.desc&&w.submitCount>0?"inactive":"")}),(0,l.jsx)(n.default,{onClick:()=>w.handleSubmit(),type:"primary",actionType:"submit",className:"mt_30",label:w.isSubmitting?(0,l.jsx)(g.A,{type:"small"}):f("common:sumbit-button-rating")})]})})},b=()=>{let{width:e}=(0,r.A)();return(0,l.jsxs)("div",{className:"container flex",children:[e>v.A.tablet&&(0,l.jsx)(s.A,{imageSrc:"/assets/images/laptop-image.png"}),(0,l.jsx)(x,{})]})},f=()=>(0,l.jsx)(b,{})},34879:(e,a,t)=>{"use strict";t.d(a,{A:()=>u});
1var l=t(55427),s=t(33722),r=t(14782),i=t.n(r),n=t(77829),c=t.n(n);t(97867);var d=t(3540),o=t(52692);let u=e=>{let{imageAlt:a,imageSrc:t,contents:r}=e,n=(0,d.useRouter)(),{t:u,lang:m}=(0,o.A)("register"),_=new Date().getFullYear();return(0,l.jsxs)("div",{className:"Side-nav WizardSideNav flex_column_space_between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c(),{href:"/",children:(0,l.jsx)("div",{className:"WizardSideNav__logo",children:(0,l.jsx)(s.rSU,{"aria-label":"Eduwo logo",className:"WizardSideNav__logo--image"})})}),(0,l.jsx)("div",{className:"Side-nav__image",children:(0,l.jsx)(i(),{alt:null!=a?a:"raphael tobler",src:null!=t?t:"/assets/images/Raphael-Tobler.jpg",fill:!0,sizes:"(max-width: 768px) 100vw,(max-width: 1200px) 50vw, 33vw"})})]}),(0,l.jsx)("div",{className:"Side-nav__content",children:r&&r.map((e,a)=>(0,l.jsxs)("div",{className:"Side-nav__content--item mb_30",children:[(0,l.jsx)("h6",{className:"btn-label mb_10 fw_600",children:e.title}),(0,l.jsx)("p",{className:"btn-label fw_300",children:e.content})]},a))}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{onClick:()=>n.push("/".concat(m,"/impressum")),className:"WizardSideNav__footer--date flex_align_center mb_10 pointer",children:[(0,l.jsx)("p",{className:"btn-label mr_10 c_f0000 fw_300",children:u("common:Datenschutz")}),(0,l.jsx)(s.pTT,{})]}),(0,l.jsxs)("div",{onClick:()=>n.push("/".concat(m,"/impressum")),className:"WizardSideNav__footer--date flex_align_center pointer",children:[(0,l.jsx)("p",{className:"btn-label mr_10 c_f0000 fw_300",children:u("common:AGB")}),(0,l.jsx)(s.pTT,{})]}),(0,l.jsx)("div",{className:"WizardSideNav__footer--copyrights mt_30 mb_50",children:(0,l.jsxs)("span",{className:"btn-label c_f0000 fw_300",children:["\xa9 eduwo ",_]})})]})]})}},39496:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var l=t(55427),s=t(97867);let r=e=>{let{className:a,onBlur:t,onChange:r,handleSetValue:i,children:n,...c}=e,[d,o]=(0,s.useState)(""),u=["TextArea",a].join(" ");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("textarea",{style:{whiteSpace:"pre-wrap"},onBlur:e=>t&&t(e),className:u,...c,value:e.value||d,onChange:e=>(e=>{i?i&&i(e.target.value):o(e.target.value),r&&r(e)})(e),children:n}),e.error&&(0,l.jsx)("p",{className:"small_paragraph error-msg",children:e.error})]})}},56233:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/review_lead",function(){return t(23750)}])}},e=>{e.O(0,[1472,636,6593,8792],()=>e(e.s=56233)),_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.