PageSourceSearch

https://www.jobs.ch/public/scripts/modern/chunk-src_common_lib_Rou…etail_components_Company-f9bd10.6aa1751f.js

js jobs.ch collected 2026-09-24 18:36:12 UTC 41,543 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk_jobcloud_b2c_frontend=globalThis.webpackChunk_jobcloud_b2c_frontend||[]).push([["src_common_lib_Routing_hooks_useQuery_ts-src_common_modules_company-detail_components_Company-f9bd10"],{20255(e,t,r){r.d(t,{z:()=>o});var n=r(41711),a=r(54147);const o=()=>(0,n.useContext)(a.di)},59946(e,t,r){r.d(t,{Ay:()=>s,pE:()=>l,xz:()=>c});var n=r(41711),a=r(59846),o=r(85245),i=r(20255);const s=()=>{const[e]=(0,a.ok)();return(0,n.useMemo)((()=>(0,o.K)(e)),[e])},l=e=>{const[t]=(0,a.ok)();return(0,n.useMemo)((()=>t.get(e)),[e,t])},c=e=>new URLSearchParams((0,i.z)().search).get(e)},84724(e,t,r){r.d(t,{A:()=>u});var n=r(6799),a=r(94956),o=r(53151),i=r(22465),s=r(96777),l=r(59033),c=r(31736),m=r(92636),d=r(40395),p=r(80849),g=r(52695);const u=e=>{const t=(0,n.c)(25),{company:r}=e,u=(0,a.A)(),y=(0,s.A)(),h=(0,o.A)();let b;t[0]!==r.id||t[1]!==u?(b=()=>(0,d.X)(u,"start",r.id),t[0]=r.id,t[1]=u,t[2]=b):b=t[2];const x=b,_=(0,i.Q)();let f,v,w,j,A,S,k,C,T,P,L;return t[3]===Symbol.for("react.memo_cache_sentinel")?(f={base:"s16"},v={base:"s32",sm:"s0"},w=(0,g.jsx)(l._V,{alt:"",height:"[120px]",src:c,width:"[120px]"}),t[3]=f,t[4]=v,t[5]=w):(f=t[3],v=t[4],w=t[5]),t[6]===Symbol.for("react.memo_cache_sentinel")?(j=(0,g.jsxs)(l.so,{alignItems:"center",mb:"s8",pb:"s8",pt:"s8",children:[(0,g.jsx)(p.A,{color:"yellow.300",iconSize:"lg"}),(0,g.jsx)(p.A,{color:"yellow.300",iconSize:"lg"}),(0,g.jsx)(p.A,{color:"yellow.300",iconSize:"lg"}),(0,g.jsx)(p.A,{color:"yellow.300",iconSize:"lg"}),(0,g.jsx)(p.A,{color:"yellow.300",iconSize:"lg"})]}),t[6]=j):j=t[6],t[7]!==y?(A=y("company.review_banner.title.review_this_company"),t[7]=y,t[8]=A):A=t[8],t[9]!==A?(S=(0,g.jsx)(l.H2,{mb:"s24",textAlign:"center",textStyle:"display4",children:A}),t[9]=A,t[10]=S):S=t[10],t[11]!==r.slug||t[12]!==h||t[13]!==_||t[14]!==x?(k=e=>{h({route:_,params:{slug:r.slug}},{event:e,eventData:{event_component_type:"company_review",event_value:m._x.createReview}}),x()},t[11]=r.slug,t[12]=h,t[13]=_,t[14]=x,t[15]=k):k=t[15],t[16]===Symbol.for("react.memo_cache_sentinel")?(C={base:"100%",sm:"auto"},t[16]=C):C=t[16],t[17]!==y?(T=y("company.review_banner.button"),t[17]=y,t[18]=T):T=t[18],t[19]!==T||t[20]!==k?(P=(0,g.jsx)(l.$n,{buttonSize:"md",buttonType:"outlined","data-cy":"company-review-cta-button",onClick:k,width:C,children:T}),t[19]=T,t[20]=k,t[21]=P):P=t[21],t[22]!==P||t[23]!==S?(L=(0,g.jsx)(l.xA,{borderRadius:"r8","data-cy":"company-review-banner",gridTemplateColumns:"[minmax(0,1fr)]",overflow:"hidden",children:(0,g.jsxs)(l.so,{alignItems:"center",flexDirection:"column",gridColumn:"[1 / 2]",gridRow:"[1 / 2]",pb:f,pt:v,children:[w,j,S,P]})}),t[22]=P,t[23]=S,t[24]=L):L=t[24],L}},38499(e,t,r){r.d(t,{A:()=>v,V:()=>x});r(78944),r(18910);var n=r(6799),a=r(71646),o=r(41711),i=r(18960),s=r(71961),l=r(19875),c=r(96777),m=r(59033),d=r(67369),p=r(54036),g=r(30787),u=r(21044),y=r(80849),h=r(52695);const b=(e,t,r,n)=>(0,h.jsxs)(m.Li,{alignItems:"start",display:"grid",gap:"s8",gridTemplateColumns:"[auto minmax(0,1fr) auto]",children:[(0,h.jsx)(e,{}),(0,h.jsx)(m.L9,{children:r(`company_review.detail_review.${t}`)}),(0,h.jsxs)(m.so,{alignItems:"center",gap:"s2",pl:"s8",children:[(0,h.jsx)(m.L9,{children:(0,s.Z)(n,1)}),(0,h.jsx)(y.A,{color:"yellow.300",mt:"ns4"})]})]},t),x=e=>{const t=(0,n.c)(9),{ratings:r,relation:a}=e,o=(0,c.A)();if(!r)return null;let i;t[0]!==r.applicant?(i=r.applicant&&Array.from(Object.entries(r.applicant)),t[0]=r.applicant,t[1]=i):i=t[1];const s=i;let l;t[2]!==r.employee?(l=r.employee&&Array.from(Object.entries(r.employee)),t[2]=r.employee,t[3]=l):l=t[3];const d="applicant"===a?s:l;let g,u;return t[4]!==d||t[5]!==o?(g=!!d&&d.map((e=>{const[t,r]=e,n=p.T[t];return b(n,t,o,r)})),t[4]=d,t[5]=o,t[6]=g):g=t[6],t[7]!==g?(u=(0,h.jsx)(m.Ul,{"data-cy":"review-ratings",display:"grid",gridGap:"s16",gridTemplateColumns:"[auto]",children:g}),t[7]=g,t[8]=u):u=t[8],u},_=e=>{const t=(0,n.c)(5),{ratings:r}=e,a=(0,c.A)();if(!r)return null;let o,i;return t[0]!==r||t[1]!==a?(o=p.X.employee.map((e=>{const t=p.T[e],n=r[e];return b(t,e,a,n)})),t[0]=r,t[1]=a,t[2]=o):o=t[2],t[3]!==o?(i=(0,h.jsx)(m.Ul,{display:"grid",gridGap:"s16",gridTemplateColumns:"[auto]",children:o}),t[3]=o,t[4]=i):i=t[4],i},f=e=>{const t=(0,n.c)(5),{ratingPercentages:r}=e,i=(0,c.A)();let s,l;return t[0]!==r||t[1]!==i?(s=u.Xn.map((e=>(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(m.L9,{"data-cy":"stars-total",whiteSpace:"nowrap",children:i("company.review.total_stars",{smart_count:Number(e)})}),(0,h.jsxs)("svg",{height:"8px",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("rect",{fill:(0,a.S)("colors.gray.200"),height:"8px",rx:"4",ry:"4",width:"100%"}),(0,h.jsx)("rect",{fill:(0,a.S)("colors.yellow.300"),height:"8px",rx:"4",ry:"4",width:`${r[e]}%`})]}),(0,h.jsxs)(m.L9,{"data-cy":"rating-percentage",textAlign:"right",children:[r[e],"%"]})]},e))),t[0]=r,t[1]=i,t[2]=s):s=t[2],t[3]!==s?(l=(0,h.jsx)(m.xA,{alignItems:"center",gridGap:"s8",gridTemplateColumns:"[auto 1fr auto]",pb:"s24",children:s}),t[3]=s,t[4]=l):l=t[4],l},v=({company:e})=>{const t=(0,c.A)(),r=(0,l.V)(e.referenceId);if(!r)return null;const{average:n,total:a,ratingPercentages:o,detailedRatings:{employee:p={}}}=r;return a<g.PD?null:(0,h.jsxs)(m.i,{"data-cy":"company-overall-ratings",maxWidth:{base:"100%",sm:"[340px]",md:"100%"},children:[(0,h.jsx)(m.H2,{pb:{base:"s24",md:"s32"},textStyle:"title3",children:t("company.review.overall_ratings")}),(0,h.jsxs)(m.so,{alignItems:"center",gap:"s4",pb:"s8",children:[(0,h.jsx)(m.L9,{textStyle:"title4",children:(0,s.Z)(n,1)}),(0,h.jsx)(d.A,{mb:"s2",rating:n})]}),(0,h.jsx)(m.N_,{color:"gray.900",display:"inline-block",eventData:{event_c
1omponent_type:"company_rating"},mb:"s16",to:{route:i.JZ.COMPANY_REVIEWS,params:{slug:e.slug}},children:t("company.review.total_reviews",{count:a})}),(0,h.jsx)(f,{ratingPercentages:o}),(0,h.jsx)(_,{ratings:p})]})}},40395(e,t,r){r.d(t,{X:()=>s});var n=r(69424),a=r(21494),o=r(54228);const i=e=>({company_id:e?.id||e?.datapoolId||null,company_name:e?.name||null,company_rating:e?.ratings.average||null,company_ratings_count:e?.ratings?.total||null,company_industry:e?.industry||null,company_jobs_count:e?.jobCount||null,company_location:e?.locationCity||null}),s=async(e,t,r)=>{const{track:s}=e.get("core.tealium"),{trackingCollector:l}=e.get("core.trackingCollector"),{queryKey:c}=(0,n.ty)(r),m=e.get("query.client").getQueryData(c);let d=()=>({company_id:null,company_name:null,company_rating:null,company_ratings_count:null,company_industry:null,company_jobs_count:null,company_location:null});if(m&&m.id===r)d=()=>i(m);else{const t=await e.get("core.fetch").fetch(`public/company/${r}`);if(t.ok){const e=(0,a.A)(t.result);d=()=>i(e)}}s({event_name:"start"===t?"company_review_start":"company_review_sent",...l([d],o.r.Tealium)})}},21044(e,t,r){r.d(t,{Xk:()=>o,Xn:()=>a,jL:()=>n});const n=["date--desc","rating--desc","rating--asc"],a=["5","4","3","2","1"],o={reviews:3,reviewTextLength:300,portraitTextLength:300}},22465(e,t,r){r.d(t,{Q:()=>o});var n=r(18960),a=r(49242);const o=()=>(0,a.A)("interview-review")?n.JZ.COMPANY_SELECT_REVIEW_TYPE:n.JZ.COMPANY_CREATE_REVIEW},9271(e,t,r){r.d(t,{A:()=>Y});r(78944),r(18910);var n=r(6799),a=r(59033),o=r(80849),i=r(52695);const s=()=>{const e=(0,n.c)(11);let t,r,s,l,c,m,d,p,g,u,y;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={md:"[2fr 
110fr]"},e[0]=t):t=e[0],e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsxs)(a.so,{children:[(0,i.jsx)(a.gd,{loadingBlockType:"p1",mb:"s16",mr:"s8",mt:"s8",my:"s0",width:{base:"[10%]",md:"[30%]"}}),(0,i.jsx)(o.A,{mb:"s4",mt:"ns8"})]}),e[1]=r):r=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)(a.gd,{display:{base:"none",md:"block"},loadingBlockType:"p1",mb:"s16",mt:"s8",my:"s0",width:"[75%]"}),e[2]=s):s=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsxs)(a.i,{children:[r,s,(0,i.jsx)(a.gd,{display:{base:"none",md:"block"},loadingBlockType:"p1",mb:"s16",mt:"s8",my:"s0",width:"[75%]"})]}),e[3]=l):l=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)(a.gd,{loadingBlockType:"h2",my:"s24",width:{base:"[75%]",sm:"[40%]"}}),e[4]=c):c=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,i.jsx)(a.gd,{loadingBlockType:"h3",width:{base:"[55%]",sm:"[30%]"}}),d=(0,i.jsx)(a.gd,{loadingBlockType:"p1",my:"s16",width:"[80%]"}),e[5]=m,e[6]=d):(m=e[5],d=e[6]),e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,i.jsx)(a.gd,{loadingBlockType:"h3",width:{base:"[55%]",sm:"[30%]"}}),g=(0,i.jsx)(a.gd,{loadingBlockType:"p1",my:"s8",width:"[80%]"}),u=(0,i.jsx)(a.gd,{loadingBlockType:"p1",my:"s24",width:"[80%]"}),e[7]=p,e[8]=g,e[9]=u):(p=e[7],g=e[8],u=e[9]),e[10]===Symbol.for("react.memo_cache_sentinel")?(y=(0,i.jsxs)(a.xA,{gridTemplateColumns:t,mt:"s32",children:[l,(0,i.jsxs)(a.i,{children:[c,m,d,p,g,u,(0,i.jsx)(a.gd,{loadingBlockType:"p2",my:"s8",width:{base:"[45%]",sm:"[30%]"}})]})]}),e[10]=y):y=e[10],y};r(97512);var l=r(88402),c=r(41711);const m={};var d=r(49975),p=r(8179),g=r(94956),u=r(33845),y=r(18824);function h(e){if(e&&"object"==typeof e){const{review:n}=e;n&&(t=n.id,r=!0,m[t]=r)}var t,r}var b=r(96777),x=r(51572),_=r.n(x);const f=({isExpanded:e=!1,children:t="",textLength:r=80,inline:n,closable:o=!0,isDangerouslyText:s=!1})=>{const l=(0,b.A)(),[m,d]=(0,c.useState)(!0),p=t,g=(y=r,(u=t).length>y?u.substring(0,y).trim()+"...":u);var u,y;(0,c.useEffect)((()=>{!e&&d(!1)}),[e]);const h=(0,c.useCallback)((()=>t.length<=r||"string"!=typeof t?null:m?o&&(0,i.jsx)(a.so,{justifyContent:"center",children:(0,i.jsx)(a.$n,{buttonType:"blended",onClick:()=>d(!m),width:{base:"100%",md:"auto"},children:n?l("common.account_profile.show_less"):(0,i.jsx)(a.so,{alignItems:"center",display:"inline-flex",children:(0,i.jsx)(a.L9,{pr:"s8",children:l("common.account_profile.show_less")})})})}):(0,i.jsx)(a.so,{justifyContent:"center",children:(0,i.jsx)(a.$n,{buttonType:"blended","data-cy":"teased-content-button",onClick:()=>d(!m),width:{base:"100%",md:"auto"},children:n?l("accessibility.action.more").toLowerCase():(0,i.jsx)(a.so,{alignItems:"center",display:"inline-flex",children:(0,i.jsx)(a.L9,{pr:"s8",children:l("common.account_profile.show_more")})})})})),[t,o,m,n,l,r]);return(0,i.jsxs)(a.i,{"data-cy":"teased-text",children:[s&&(0,i.jsx)(a.i,{dangerouslySetInnerHTML:{__html:_().sanitize(m?p:g)},mb:"s16",my:"s8",whiteSpace:"pre-wrap"}),!s&&(0,i.jsx)(a.P,{mt:"s8",whiteSpace:"pre-wrap",children:m?p:g}),h()]})};var v=r(21044);const w=e=>{const t=(0,n.c)(18),{title:r,review:o,reviewTextLength:s,positiveFeedback:l,negativeFeedback:c}=e,m=(0,b.A)();let d,p,g,u,y;return t[0]!==r?(d=r&&(0,i.jsx)(a.H3,{fontWeight:"bold",hyphens:"auto",mb:{base:"s16",sm:"s24"},overflowWrap:"break-word",textStyle:"body1",wordWrap:"break-word",children:r}),t[0]=r,t[1]=d):d=t[1],t[2]!==l||t[3]!==s||t[4]!==m?(p=l&&(0,i.jsxs)(a.i,{children:[(0,i.jsx)(a.H4,{fontWeight:"bold",mb:"s8",textStyle:"body2",children:m("company.review.positive_feedback_title")}),(0,i.jsx)(a.i,{mb:{base:"s16",md:"s24"},overflowWrap:"break-word",wordBreak:"break-word",children:(0,i.jsx)(f,{closable:!1,inline:!0,textLength:s||v.Xk.reviewTextLength,children:l})})]}),t[2]=l,t[3]=s,t[4]=m,t[5]=p):p=t[5],t[6]!==c||t[7]!==s||t[8]!==m?(g=c&&(0,i.jsxs)(a.i,{children:[(0,i.jsx)(a.H4,{fontWeight:"bold",mb:"s8",textStyle:"body2",children:m("company.review.negative_feedback_title")}),(0,i.jsx)(a.i,{mb:{base:"s16",md:"s24"},overflowWrap:"break-word",wordBreak:"break-word",children:(0,i.jsx)(f,{closable:!1,inline:!0,textLength:s||v.Xk.reviewTextLength,children:c})})]}),t[6]=c,t[7]=s,t[8]=m,t[9]=g):g=t[9],t[10]!==o||t[11]!==s?(u=o&&(0,i.jsx)(a.i,{mb:{base:"s16",md:"s24"},overflowWrap:"break-word",wordBreak:"break-word",children:(0,i.jsx)(f,{closable:!1,inline:!0,textLength:s||v.Xk.reviewTextLength,children:o})}),t[10]=o,t[11]=s,t[12]=u):u=t[12],t[13]!==d||t[14]!==p||t[15]!==g||t[16]!==u?(y=(0,i.jsxs)(i.Fragment,{children:[d,p,g,u]}),t[13]=d,t[14]=p,t[15]=g,t[16]=u,t[17]=y):y=t[17],y};var j=r(38849),A=r(53221),S=r(75857),k=r(18960);const C=()=>{const e=(0,n.c)(19),t=(0,b.A)();let r,o,s,l,c;if(e[0]!==t){let n,o,s,l,c;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)(a.P,{}),o=(0,i.jsx)("b",{}),s=(0,i.jsx)("br",{}),l=(0,i.jsx)(a.Ul,{listStyleType:"initial",mb:"s8",mt:"s8",pl:"s24"}),c=(0,i.jsx)(a.Li,{}),e[2]=n,e[3]=o,e[4]=s,e[5]=l,e[6]=c):(n=e[2],o=e[3],s=e[4],l=e[5],c=e[6]),r=(0,A.A)({mixedString:t("company_review_comment_form.t
1ips.list"),components:{p:n,b:o,br:s,ul:l,li:c}}),e[0]=t,e[1]=r}else r=e[1];if(e[7]!==r?(o=(0,i.jsx)(a.i,{children:r}),e[7]=r,e[8]=o):o=e[8],e[9]!==t){let r,n,o;e[11]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(a.P,{}),e[11]=r):r=e[11],e[12]===Symbol.for("react.memo_cache_sentinel")?(n={event_component_type:"company_review_tips"},e[12]=n):n=e[12],e[13]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)(a.e9,{eventData:n,target:"_blank",to:{route:k.JZ.COMPANY_CREATE_REVIEW_GUIDELINES},underline:"full",visited:"none"}),e[13]=o):o=e[13],s=(0,A.A)({mixedString:t("company_review_comment_form.tips.more_info"),components:{p:r,guidelineslink:o}}),e[9]=t,e[10]=s}else s=e[10];return e[14]!==s?(l=(0,i.jsx)(a.i,{children:s}),e[14]=s,e[15]=l):l=e[15],e[16]!==o||e[17]!==l?(c=(0,i.jsxs)(i.Fragment,{children:[o,l]}),e[16]=o,e[17]=l,e[18]=c):c=e[18],c};var T=r(29451),P=r(24509),L=r(34776),$=r(73986);const F=50,I=2e3,R=e=>{const t=(0,n.c)(82),{onCancel:r,onSubmit:o}=e,s=(0,b.A)();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={shouldFocusError:!1},t[0]=l):l=t[0];const{control:c,formState:m,handleSubmit:d}=(0,j.mN)(l),{isSubmitting:p}=m;let g;t[1]!==o?(g=async e=>{const{comment:t,email:r}=e;return await o("hr_responsible",t,r)},t[1]=o,t[2]=g):g=t[2];const u=g;let y;t[3]!==d||t[4]!==u?(y=d(u),t[3]=d,t[4]=u,t[5]=y):y=t[5];const h=!p;let x,_,f,v,w,R,M,q,E,O,V,W,B,D,z,H,N,J,X,G,K,Q,U,Y,Z;if(t[6]!==s?(x=s("company_review_comment_form.tips.title"),t[6]=s,t[7]=x):x=t[7],t[8]!==x?(_=(0,i.jsx)(a.P,{fontWeight:"bold",pb:"s8",children:x}),t[8]=x,t[9]=_):_=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)(C,{}),t[10]=f):f=t[10],t[11]!==_?(v=(0,i.jsxs)(a.i,{pb:"s12",children:[_,f]}),t[11]=_,t[12]=v):v=t[12],t[13]!==s?(w=s("company_review_comment_form.form.textarea.placeholder.comment"),t[13]=s,t[14]=w):w=t[14],t[15]!==s?(R=s("api_messages.form.text_length.error_min",{min:F}),t[15]=s,t[16]=R):R=t[16],t[17]!==s?(M=(0,S.Gz)(I,s),t[17]=s,t[18]=M):M=t[18],t[19]!==s?(q=s("api_messages.form.text_length.error_min",{min:F}),t[19]=s,t[20]=q):q=t[20],t[21]!==q?(E={value:F,message:q},t[21]=q,t[22]=E):E=t[22],t[23]!==R||t[24]!==M||t[25]!==E?(O={required:R,validate:M,minLength:E},t[23]=R,t[24]=M,t[25]=E,t[26]=O):O=t[26],t[27]!==c||t[28]!==w||t[29]!==O?(V=(0,i.jsx)(P.A,{"aria-describedby":"review-comment-description",control:c,"data-cy":"comment-form-text",maxLength:I,minLength:F,name:"comment",placeholder:w,required:!0,rows:8,rules:O}),t[27]=c,t[28]=w,t[29]=O,t[30]=V):V=t[30],t[31]!==s?(W=s("company_review_comment_form.form.field.placeholder.email"),t[31]=s,t[32]=W):W=t[32],t[33]!==s?(B=s("api_messages.form.error.email_empty"),t[33]=s,t[34]=B):B=t[34],t[35]!==B?(D={required:B},t[35]=B,t[36]=D):D=t[36],t[37]!==c||t[38]!==W||t[39]!==D?(z=(0,i.jsx)(T.A,{"aria-describedby":"review-company-email-description",control:c,"data-cy":"comment-email",hasNoLabel:!0,name:"email",placeholder:W,rules:D}),t[37]=c,t[38]=W,t[39]=D,t[40]=z):z=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(H=(0,i.jsx)($.A,{color:"purple.800",iconSize:"sm"}),t[41]=H):H=t[41],t[42]!==s?(N=s("company_review_comment_form.form.email.anonymity_hint"),t[42]=s,t[43]=N):N=t[43],t[44]!==N?(J=(0,i.jsxs)(a.xA,{bg:"purple.200",borderRadius:"r8",gap:"s8",gridTemplateColumns:"[auto minmax(0,1fr)]",mt:"s12",p:"s12",children:[H,(0,i.jsx)(a.P,{color:"purple.800",children:N})]}),t[44]=N,t[45]=J):J=t[45],t[46]!==s){let e,r,n,o;t[48]===Symbol.for("react.memo_cache_sentinel")?(e={event_component_type:"company_review_form"},t[48]=e):e=t[48],t[49]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(a.N_,{eventData:e,target:"_blank",to:{route:k.JZ.INFO_TERMS},underline:"full",visited:"none"}),t[49]=r):r=t[49],t[50]===Symbol.for("react.memo_cache_sentinel")?(n={event_component_type:"company_review_form"},t[50]=n):n=t[50],t[51]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)(a.N_,{eventData:n,target:"_blank",to:{route:k.JZ.INFO_PRIVACY},underline:"full",visited:"none"}),t[51]=o):o=t[51],X=(0,A.A)({mixedString:s("gdpr.form.terms_disclaimer"),components:{agblink:r,dsblink:o}}),t[46]=s,t[47]=X}else X=t[47];t[52]!==X?(G=(0,i.jsx)(a.P,{py:"s12",textStyle:"caption1",children:X}),t[52]=X,t[53]=G):G=t[53],t[54]===Symbol.for("react.memo_cache_sentinel")?(K={base:"[minmax(0,1fr)]",md:"[auto auto]"},Q={md:"end"},t[54]=K,t[55]=Q):(K=t[54],Q=t[55]),t[56]===Symbol.for("react.memo_cache_sentinel")?(U={base:"100%",md:"auto"},t[56]=U):U=t[56],t[57]!==s?(Y=s("company_review_comment_form.button.cancel"),t[57]=s,t[58]=Y):Y=t[58],t[59]!==r||t[60]!==Y?(Z=(0,i.jsx)(a.$n,{buttonType:"outlined",onClick:r,width:U,children:Y}),t[59]=r,t[60]=Y,t[61]=Z):Z=t[61];const ee=p?"pending":"default";let te,re,ne,ae,oe,ie;return t[62]===Symbol.for("react.memo_cache_sentinel")?(te={base:"100%",md:"auto"},t[62]=te):te=t[62],t[63]!==s?(re=s("company_review_comment_form.button.comment"),t[63]=s,t[64]=re):re=t[64],t[65]!==ee||t[66]!==re?(ne=(0,i.jsx)(a.mz,{buttonState:ee,"data-cy":"comment-submit",type:"submit",width:te,children:re}
1),t[65]=ee,t[66]=re,t[67]=ne):ne=t[67],t[68]!==Z||t[69]!==ne?(ae=(0,i.jsxs)(a.xA,{gridColumnGap:"s24",gridRowGap:"s16",gridTemplateColumns:K,justifyContent:Q,children:[Z,ne]}),t[68]=Z,t[69]=ne,t[70]=ae):ae=t[70],t[71]!==V||t[72]!==z||t[73]!==J||t[74]!==G||t[75]!==ae||t[76]!==v?(oe=(0,i.jsxs)(a.xA,{gridRowGap:"s12",gridTemplateColumns:"[minmax(0,1fr)]",children:[v,V,z,J,G,ae]}),t[71]=V,t[72]=z,t[73]=J,t[74]=G,t[75]=ae,t[76]=v,t[77]=oe):oe=t[77],t[78]!==oe||t[79]!==y||t[80]!==h?(ie=(0,i.jsx)(L.A,{bg:"gray.100",borderRadius:"r8",mt:"s8",onSubmit:y,p:"s24",scrollToError:h,children:oe}),t[78]=oe,t[79]=y,t[80]=h,t[81]=ie):ie=t[81],ie};var M=r(91443);const q=e=>{const t=(0,n.c)(16);let r,o,s,l,c;t[0]!==e?(({currentLocale:r,originalLanguage:o,setTranslationKey:l,translationKey:c,...s}=e),t[0]=e,t[1]=r,t[2]=o,t[3]=s,t[4]=l,t[5]=c):(r=t[1],o=t[2],s=t[3],l=t[4],c=t[5]);const m=(0,b.A)();let d,p,g;return t[6]===Symbol.for("react.memo_cache_sentinel")?(d={md:"ns8"},t[6]=d):d=t[6],t[7]!==r||t[8]!==o||t[9]!==l||t[10]!==m||t[11]!==c?(p=c&&c!==o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.so,{alignItems:"center",display:"inline-flex",children:[(0,i.jsx)(M.A,{color:"gray.700",iconSize:"xxs",mr:"s2"}),(0,i.jsx)(a.P,{color:"gray.700",textStyle:"caption1",children:m("company_review_info.translation.translated_from",{language:m(`languages.${o}`)})})]}),(0,i.jsx)(a.VS,{"data-cy":"show-original",onClick:()=>l(null),textStyle:"caption1",underline:"full",width:"[fit-content]",children:m("company_review_info.translation.show_original")})]}):(0,i.jsx)(a.VS,{"data-cy":"translate",onClick:()=>l(r),textStyle:"caption1",underline:"full",width:"[fit-content]",children:m("company_review_info.translation.translate_to",{language:m(`languages.${r}`)})}),t[7]=r,t[8]=o,t[9]=l,t[10]=m,t[11]=c,t[12]=p):p=t[12],t[13]!==s||t[14]!==p?(g=(0,i.jsx)(a.xA,{"data-cy":"company-review-translations",gap:"s8",gridTemplateColumns:"[auto minmax(0,1fr)]",mt:d,...s,children:p}),t[13]=s,t[14]=p,t[15]=g):g=t[15],g};var E=r(96055);const O=({comment:{body:e,createdAt:t,originalLanguage:r,translations:n={}},last:o})=>{const s=(0,d.A)(),l=!!r&&s!==r&&!!n[s],[m,p]=(0,c.useState)(l?s:null);return(0,i.jsxs)(a.i,{"data-cy":"company-review-comment",...o?{}:{borderBottom:"[1px solid]",borderBottomColor:"gray.200",pb:"s24",mb:"s24"},children:[(0,i.jsxs)(a.so,{flexDirection:"column",children:[!!t&&(0,i.jsx)(a.P,{"data-cy":"created-at",mb:"s24",children:(0,i.jsx)(E.A,{format:"date_timeline",children:t})}),(0,i.jsx)(a.P,{whiteSpace:"pre-wrap",children:l&&m&&n&&n[m]?.body?n[m].body:e})]}),l&&(0,i.jsx)(q,{currentLocale:s,mt:"s24",originalLanguage:r,setTranslationKey:p,translationKey:m})]})};var V=r(25585);const W=e=>{const t=(0,n.c)(18),{comments:r}=e,o=(0,b.A)();if(!r.length)return null;let s,c,m,d,p,g,u,y,h;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.AH)({"& + div":{borderWidth:"0",pb:"s0"},"& svg":{color:"purple.700"}}),t[0]=s):s=t[0],t[1]!==o?(c=o("company.review.employer_comment"),t[1]=o,t[2]=c):c=t[2],t[3]!==c?(m=(0,i.jsx)(a.P,{color:"purple.700",fontWeight:"bold",children:c}),t[3]=c,t[4]=m):m=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(d={base:"s16",md:"s24"},t[5]=d):d=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(p={base:"s16",sm:"s24"},t[6]=p):p=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(g={base:"s16",sm:"s24"},t[7]=g):g=t[7],t[8]!==r){let e;t[10]!==r.length?(e=(e,t)=>(0,i.jsx)(O,{comment:e,last:t===r.length-1},e.id),t[10]=r.length,t[11]=e):e=t[11],u=r.map(e),t[8]=r,t[9]=u}else u=t[9];return t[12]!==u?(y=(0,i.jsx)(a.i,{bg:"gray.100",borderRadius:"r8",mb:p,mt:"s8",p:g,children:u}),t[12]=u,t[13]=y):y=t[13],t[14]!==s||t[15]!==m||t[16]!==y?(h=(0,i.jsx)(V.A,{className:s,"data-cy":"review-comment",label:m,mt:d,width:"[fit-content]",children:y}),t[14]=s,t[15]=m,t[16]=y,t[17]=h):h=t[17],h};var B=r(71961),D=r(38499),z=r(67369);const H=e=>{const t=(0,n.c)(22),{rating:r,contractType:o,createdAt:s,relation:c,reviewDetails:m}=e,d=(0,b.A)();let p,g,u,y,h,x,_,f,v;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={base:"'rating'\n               'ratingdetail'\n               'misc'",md:"'rating misc'\n               'ratingdetail ratingdetail'"},g={base:"[auto]",md:"[auto minmax(0,1fr)]"},t[0]=p,t[1]=g):(p=t[0],g=t[1]),t[2]!==r||t[3]!==c||t[4]!==m?(u=!!c&&!!m&&(0,i.jsx)(V.A,{className:(0,l.AH)({"& + div":{gridArea:"ratingdetail",borderWidth:"0",pb:"s0"}}
1),"data-cy":"review-ratings-accordion",gridArea:"rating",label:(0,i.jsxs)(a.L9,{alignItems:"center",display:"inline-grid",gridTemplateColumns:"[auto auto]",children:[(0,i.jsx)(a.P,{mb:"s0",mr:"s4",children:(0,B.Z)(r,1)}),(0,i.jsx)(z.A,{mb:"s4",rating:r})]}),mr:"s32",width:"[fit-content]",children:(0,i.jsx)(a.i,{display:"inline-block",pt:"s8",children:(0,i.jsx)(D.V,{ratings:m,relation:c})})}),t[2]=r,t[3]=c,t[4]=m,t[5]=u):u=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(y={base:"s8",md:"s0"},t[6]=y):y=t[6],t[7]!==c||t[8]!==d?(h=!!c&&(0,i.jsx)(a.vw,{"data-cy":"relation",tagColor:"gray",children:d(`company_review_relation.${c}`)}),t[7]=c,t[8]=d,t[9]=h):h=t[9],t[10]!==o||t[11]!==d?(x=!!o&&(0,i.jsx)(a.vw,{tagColor:"gray",children:d(`company_review_employment.${o}`)}),t[10]=o,t[11]=d,t[12]=x):x=t[12],t[13]!==s?(_=!!s&&(0,i.jsx)(a.P,{"data-cy":"created-at",textStyle:"body2",children:(0,i.jsx)(E.A,{format:"date_timeline",children:s})}),t[13]=s,t[14]=_):_=t[14],t[15]!==h||t[16]!==x||t[17]!==_?(f=(0,i.jsxs)(a.so,{alignItems:"center",columnGap:"s16",flexWrap:"wrap",gridArea:"misc",pt:y,rowGap:"s8",children:[h,x,_]}),t[15]=h,t[16]=x,t[17]=_,t[18]=f):f=t[18],t[19]!==u||t[20]!==f?(v=(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.xA,{gridTemplateAreas:p,gridTemplateColumns:g,children:[u,f]})}),t[19]=u,t[20]=f,t[21]=v):v=t[21],v};var N=r(20864),J=r(27521);const X=()=>{const e=(0,n.c)(4),t=(0,b.A)();let r,o;return e[0]!==t?(r=t("company_review_comment_form.submission.label"),e[0]=t,e[1]=r):r=e[1],e[2]!==r?(o=(0,i.jsx)(a.wn,{bg:"gray.100",borderRadius:"r8","data-cy":"company-review-reply-success",pt:"s24",children:(0,i.jsx)(N.A,{alt:"",imageSrc:J,children:(0,i.jsx)(a.so,{alignItems:"center",flexDirection:"column",m:"[0 auto]",maxWidth:"[640px]",children:(0,i.jsx)(a.P,{mb:"s24",children:r})})})}),e[2]=r,e[3]=o):o=e[3],o};var G=r(26411);const K=(e,t,r,n,a)=>e&&t&&r[t]?.[n]?r[t]?.[n]:a,Q=({review:{id:e,body:t,createdAt:r,contractType:o,negativeFeedback:s,originalLanguage:x,positiveFeedback:_,rating:f,reviewDetails:v,relation:j,translations:A={},title:S},isOwnReview:k,isLast:C,company:T,comments:P})=>{const L=(0,b.A)(),$=(0,d.A)(),F=!k&&!!x&&$!==x&&!!A[$],[I,M]=(0,c.useState)(F?$:null),{mutateAsync:E}=(()=>{const e=(0,n.c)(5),t=(0,g.A)();let r;e[0]!==t?(r=t.get("core.redux"),e[0]=t,e[1]=r):r=e[1];const{dispatch:a}=r;let o;return e[2]!==t||e[3]!==a?(o={mutationFn:async e=>{const{reviewId:r,relation:n,comment:o,email:i,companyId:s}=e,l={reviewer_type:"hr_responsible"===n?"hr_responsable":n,comment:o.trim(),email:i},c=await t.wire(y.N).createCompanyReviewComment(s,r,l);return c||a((0,u.tj)("CreateCompanyRatingCommentFailure",{timeout:u.Q9})),c},onSuccess:h},e[2]=t,e[3]=a,e[4]=o):o=e[4],(0,p.n)(o)})(),O=(0,c.useRef)(null),B=m[e]||!1;const D=(0,c.useRef)(null),z=()=>{O.current?.toggleOpen(),D.current&&D.current.scrollIntoView({behavior:"smooth"})},N=K(F,I,A,"title",S);return(0,i.jsxs)(a.i,{"data-cy":"company-reviews-item",...!C&&{borderBottom:"b300",pb:{base:"s16",sm:"s24",md:"s32"}},mb:{base:"s16",sm:"s24",md:"s32"},ref:D,children:[!!N&&(0,i.jsxs)(a.xA,{alignItems:"center",gap:"s8",gridTemplateColumns:"[auto minmax(0,1fr)]",pb:{base:"s8",md:"s12"},children:[(0,i.jsx)(G.A,{}),(0,i.jsx)(a.H3,{hyphens:"auto",overflowWrap:"break-word",textStyle:"title4",wordWrap:"break-word",children:N})]}),(0,i.jsx)(H,{contractType:o||"",createdAt:r,rating:f,relation:j,reviewDetails:v}),(0,i.jsx)(a.i,{pt:{base:"s16",md:"s24"},children:(0,i.jsx)(w,{negativeFeedback:K(F,I,A,"negativeFeedback",s),positiveFeedback:K(F,I,A,"positiveFeedback",_),review:K(F,I,A,"body",t),reviewTextLength:500})}),F&&(0,i.jsx)(q,{currentLocale:$,originalLanguage:x,setTranslationKey:M,translationKey:I}),!!P.length&&!B&&(0,i.jsx)(W,{comments:P.filter((e=>"approved"===e.lifecycle))}),!k&&!P.length&&!B&&(!!t||!!_||!!s)&&(0,i.jsx)(V.A,{className:(0,l.AH)({"& + div":{borderWidth:"0",pb:"s0"},"& svg":{color:"purple.700"}}),"data-cy":"comment-review-accordion",label:(0,i.jsx)(a.P,{color:"purple.700",fontWeight:"bold",children:L("company_review.comment_review")}),mt:{base:"s16",md:"s24"},ref:O,width:"[fit-content]",children:(0,i.jsx)(R,{onCancel:z,onSubmit:async(t,r,n)=>{await E({reviewId:e,relation:t,comment:r,email:n,companyId:T?.id||T?.datapoolId}),z()}})}),B&&(0,i.jsx)(X,{})]})},U=()=>{const e=(0,n.c)(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(i.Fragment,{children:[...Array(10).keys()].map(Z)}),e[0]=t):t=e[0],t},Y=({company:e,isOwnReview:t=!1,ownReviews:r,reviews:n})=>{const a=t&&r?r:n;return e?(0,i.jsx)(i.Fragment,{children:a?.map(((r,n)=>(0,i.jsx)(Q,{comments:r.comments||[],company:e,isLast:n===a.length-1,isOwnReview:t,review:r},r.id)))}):(0,i.jsx)(U,{})};function Z(e){return(0,i.jsx)(s,{},`review-loading-${e}`)}},69424(e,t,r){r.d(t,{P7:()=>
1g,bW:()=>y,gF:()=>d,q0:()=>h,ty:()=>u});r(84775),r(82822);var n=r(62939),a=r(2390),o=r(59846),i=r(94956),s=r(74124),l=r(18474),c=r(21494),m=r(31379);const d="public/company",p=e=>async t=>{if(!e)return;const r=(0,l.A)(await t.get("core.fetch").fetch(`${d}/${e}`)),n=t.get("core.redux").getState();return!r.ok&&n.featureFlags.includes("company-fetch-sentry-logging")&&s.v.error(new Error("Fetch company details has failed"),{tags:{"error.code":r.statusCode},extras:{"API response":JSON.stringify(r.result,null,2),CompanyId:e}}),r.ok?(0,c.A)(r.result):void 0},g=e=>[d,e],u=e=>({queryFn:p(e),queryKey:g(e)}),y=e=>{const t=(0,i.A)();return(0,n.I)({queryFn:async()=>p(e)(t),queryKey:g(e),enabled:!!e})},h=()=>{const e=(0,a.jE)(),{slug:t}=(0,o.g)(),r=(0,m.Ec)(t||""),{queryKey:n}=u(r||"");return e.getQueryData(n)}},31379(e,t,r){r.d(t,{Ec:()=>i,Lj:()=>o,VC:()=>s,fz:()=>l});r(78944),r(45853);var n=r(69523),a=r(53121);const o=e=>"number"==typeof e?`${e}`:e,i=e=>(0,n.Hh)(e)||(0,n.$J)(e),s=(e,t)=>{if(!e.currentTarget.dataset.fallback){e.currentTarget.dataset.fallback="true",e.currentTarget.src=a,e.currentTarget.alt=t("company.fallback_image.alt");const r=e.currentTarget?.closest("picture");if(r){const e=r.getElementsByTagName("source");Array.from(e).forEach((e=>e.srcset=""))}}},l=(e,t)=>t(`benefit.${e.type}`,{_:e.title})},93918(e,t,r){r.d(t,{A:()=>m});var n=r(61211);const a=(e,t)=>t.total&&t.average?[{"@context":"http://schema.org/","@type":"EmployerAggregateRating",itemReviewed:{"@type":"Organization",name:e.name,sameAs:e.webPageUrl},ratingValue:(0,n.lq)(t.average).toString(),bestRating:n.O3,worstRating:n.rJ,ratingCount:t.total.toString()}]:[];r(46978),r(78944),r(97512),r(18910);const o=({body:e,negativeFeedback:t,positiveFeedback:r,t:n})=>{const a=[];return e&&e.length&&a.push(e),r&&r.length&&a.push(`${n("company.review.positive_feedback_title")}: ${r}`),t&&t.length&&a.push(`${n("company.review.negative_feedback_title")}: ${t}`),a.join(" - ")},i=e=>t=>t?e(`company_review_relation.${t}`):"anonymous",s=(e,t,r,a,s)=>t.map((t=>{const l=[];t.rating&&l.push({"@type":"Rating",bestRating:n.O3,ratingValue:(0,n.lq)(t.rating).toString(),worstRating:n.rJ});const c=!!r&&!!r[t.id]&&r[t.id].filter((e=>"approved"===e.lifecycle)).map((({body:e,commentRelation:t,createdAt:r,translations:n})=>({"@type":"Comment",author:{"@type":"Person",name:i(s)(t)},comment:n&&n[a]?n[a]?.body:e,datePublished:r})))||[],{body:m,negativeFeedback:d,positiveFeedback:p,title:g}=t.translations&&t.translations[a]?t.translations[a]||{}:t;return{"@type":"Review",itemReviewed:e.name,author:{"@type":"Person",name:i(s)(t.relation)},reviewBody:o({body:m,negativeFeedback:d,positiveFeedback:p,t:s}),datePublished:t.createdAt,name:g,reviewRating:l,...c.length?{comment:c,commentCount:c.length}:{}}})),l={country:"CH"},c=e=>(t,r,a)=>({"@context":"http://schema.org/","@type":"Organization",name:t.name,...t.webPageUrl?{url:t.webPageUrl}:{},...t.portraitDescription?{description:t.portraitDescription.replace(/(?:\r\n|\r|\n)/g,"")}:{},...t.contactAddress?{address:{"@type":"PostalAddress",addressLocality:t.contactAddress.city,postalCode:t.contactAddress.zipCode,streetAddress:t.contactAddress.street,addressCountry:l.country}}:{},...t.logoImage?{logo:t.logoImage.src}:{},...t.profileImage?{logo:t.profileImage.src}:{},...t.portrait?.employees.count?{numberOfEmployees:{"@type":"QuantitativeValue",minValue:t.portrait.employees.minValue,maxValue:t.portrait.employees.maxValue,unitText:"employees"}}:{},...t.industry?{hasOfferCatalog:{"@type":"OfferCatalog",name:t.industry?e(`industries.${t.industry}`):" "}}:{},...r.total&&r.average?{aggregateRating:{type:"AggregateRating",itemReviewed:t.name,ratingValue:(0,n.lq)(r.average).toString(),bestRating:n.O3,worstRating:n.rJ,reviewCount:r.total.toString()}}:{},...a&&a.length?{review:a}:{}}),m=({company:e,comments:t,locale:r,reviews:n,reviewMeta:o,t:i})=>e&&n&&o?[c(i)(e,o,s(e,n,t,r,i)),...a(e,o)]:[]},61211(e,t,r){r.d(t,{O3:()=>n,lq:()=>o,rJ:()=>a});const n="5",a="1",o=e=>Math.max(Number(a),e)},11567(e,t,r){r.d(t,{A:()=>i});r(82822),r(78944),r(97512),r(18910),r(58968);var n=r(51572),a=r.n(n);const o={"@context":"http://schema.org/"},i=(e,t="application/ld+json")=>{if(!e.length)return{type:t,content:""};const r=e=>Object.keys(e).reduce(((t,n)=>{const o=e[n];return"string"==typeof o?{...t,[n]:a().sanitize(o)}:"object"!=typeof o||Array.isArray(o)?{...t,[n]:o}:{...t,[n]:r(o)}}),{});return{type:t,content:JSON.stringify(e.filter((e=>!!e)).map((e=>({...o,...r(e)}))))}}},25585(e,t,r){r.d(t,{A:()=>m});var n=r(41711),a=r(96777),o=r(59033),i=r(83143),s=r(79452),l=r(52695);const c=(0,n.forwardRef)((({label:e,children:t,bright:r=!1,initialOpen:c=!1,isInList:m=!1,noncollapsible:d=!1,...p},g)=>
1{const u=(0,a.A)(),[y,h]=(0,n.useState)(c),b=(0,n.useCallback)((()=>{h(!y)}),[y]);return(0,n.useImperativeHandle)(g,(()=>({toggleOpen:b})),[b]),d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.L9,{display:"inline-block",...p,py:"s16",textStyle:"body2",children:e}),(0,l.jsx)(o.i,{children:t})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.VS,{alignItems:"center",display:"flex",justifyContent:"space-between",linkColor:"dark",onClick:b,py:"s12",title:u(y?"accessibility.action.collapse":"accessibility.action.expand"),underline:"none",width:"100%",...y?{}:{border:r?"b00":"b300"},...m?{_hover:{bg:"grayAlphaDark.200"},borderWidth:"[0 0 1px 0]",px:"s16"}:{borderWidth:"[0]",px:"s0"},...p,children:[e,!d&&(y?(0,l.jsx)(s.A,{flexShrink:"0",ml:"s8"}):(0,l.jsx)(i.A,{flexShrink:"0",ml:"s8"}))]}),(0,l.jsx)(o.i,{display:d||y?"[block]":"[none]",...y?{borderBottom:r?"b00":"b300",pb:"s12"}:{},children:t})]})})),m=c;c.displayName="Accordion"},20864(e,t,r){r.d(t,{A:()=>o});var n=r(59033),a=r(52695);const o=({alt:e,imageSrc:t,imageDataCy:r,imageHeight:o="[128px]",imageWidth:i="[128px]",mb:s={base:"s8",sm:"s16"},children:l,...c})=>(0,a.jsxs)(n.i,{"data-cy":"empty-result",textAlign:"center",...c,children:[(0,a.jsx)(n._V,{alt:e,"aria-hidden":"true","data-cy":r,decoding:"async",height:o,loading:"lazy",mb:s,mx:"auto",src:t,width:i}),l]})},34776(e,t,r){r.d(t,{A:()=>i});var n=r(76873),a=r(41711),o=r(52695);const i=({children:e,scrollToError:t=!1,...r})=>{const i=(0,a.useRef)(null);return(0,a.useEffect)((()=>{if(t){const e=i.current?.querySelector("[data-scroll-anchor]");e&&(e.scrollIntoView?.({behavior:"smooth"}),e.querySelector("[data-form-field], input, button, textarea, select")?.focus({preventScroll:!0}))}}),[t]),(0,o.jsx)(n.I4.form,{noValidate:!0,ref:i,...r,children:e})}},1856(e,t,r){r.d(t,{A:()=>i});var n=r(59033),a=r(14117),o=r(52695);const i=({children:e,disabled:t,hasError:r,float:i=!1,inputColor:s="default",isFocus:l,isInlineLabel:c=!1,required:m,...d})=>(0,o.jsxs)(n.JU,{color:t?"colorPalette.labelDisabled":r?"colorPalette.inputError":l?"colorPalette.labelFocus":"colorPalette.labelMain",colorPalette:`input.${s}`,pointerEvents:"none",transitionDuration:"d125",...c?{left:"s16",maxWidth:"[calc(100% - 32px)]",position:"absolute",top:"ns4",transformOrigin:"left top",transitionProperty:"transform",transitionTimingFunction:"ease-in-out",willChange:"transform",zIndex:"z1",...i?{transform:"translateY(4px) scale(.8) "}:{transform:"translateY(16px)"}}:{},...d,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[e,m&&(0,o.jsx)(a.A,{inputColor:s})]})},14117(e,t,r){r.d(t,{A:()=>o});var n=r(59033),a=r(52695);const o=({inputColor:e="default"})=>(0,a.jsx)(n.L9,{color:"colorPalette.errorMain",colorPalette:`input.${e}`,children:"*"})},41131(e,t,r){r.d(t,{A:()=>m});var n=r(76873),a=r(41711),o=r(59033),i=r(1856),s=r(80924),l=r(52695);const c=(0,a.forwardRef)((({autoFocus:e=!1,disabled:t=!1,showErrorAsLabel:r=!1,emptyAction:c,error:m,id:d,initialValue:p,inputColor:g="default",inputIcon:u,isBorderHidden:y=!1,isInlineLabel:h=!1,label:b,name:x,onBlur:_,onChange:f,onFocus:v,parseError:w,required:j,secondaryAction:A,value:S,...k},C)=>{const[T,P]=(0,a.useState)(e),[L,$]=(0,a.useState)(!!p),F=d||x||!!b&&b.replace(/\s+/g,"_"),I=void 0!==m;return(0,l.jsxs)(o.i,{...I?{"data-scroll-anchor":F}:{},...h?{position:"relative"}:{},children:[!!b&&!h&&(0,l.jsxs)(l.Fragment,{children:[!!u&&(0,l.jsx)(o.L9,{color:I?"colorPalette.errorMain":T?"colorPalette.inputMain":"colorPalette.labelMain",colorPalette:`input.${g}`,children:I?(0,l.jsx)(s.A,{}):(0,l.jsx)(l.Fragment,{children:u})}),(0,l.jsx)(i.A,{"aria-hidden":"true",id:`input-label-${F}`,mb:"s8",...t?{disabled:t}:{},hasError:I,htmlFor:F||b,inputColor:g,isFocus:T,required:j,...u?{left:"s48"}:{},children:m&&r?(0,l.jsx)(o.L9,{"data-cy":`${F}-error`,id:`${F}-error`,children:w?w(m):m}):b})]}),(0,l.jsxs)(o.i,{position:"relative",children:[(0,l.jsx)(n.I4.input,{autoFocus:e,...t?{disabled:t}:{},...m?{"aria-describedby":`${F}-error`}:{"aria-labelledby":`input-label-${F}`},...j?{"aria-required":!0,required:!0}:{}
1,appearance:"none",bg:t?"gray.100":y&&h?"[transparent]":"white",border:"[1px solid]",borderRadius:"r8",boxShadow:y?{}:I&&T?"[inset 0 0 0 1px {colors.colorPalette.inputError}]":T?"[inset 0 0 0 1px {colors.colorPalette.borderFocus}]":{},color:t?"gray.500":"colorPalette.inputMain",colorPalette:`input.${g}`,height:"[48px]",style:{borderColor:y?"transparent":t?"var(--colors-gray-100)":I?"var(--colors-color-palette-input-error)":T?"var(--colors-color-palette-border-focus)":"var(--colors-color-palette-border-main)"},transitionDuration:"d125",transitionProperty:"bg,borderColor,color",transitionTimingFunction:"ease-in-out",willChange:"bg,borderColor,color",...F?{id:F}:{},name:x,onBlur:e=>{$(!!e.target.value),P(!1),_?.(e)},onChange:e=>{$(!!e.target.value),f?.(e)},onFocus:e=>{P(!0),v?.(e)},outline:"none",pl:u?"s48":"s16",pr:A||c?"[50px]":"s16",...b&&h?{pt:"s16"}:{},...C?{ref:C}:{},value:S,width:"100%",...k}),!t&&!!S&&!!A&&A]}),!!b&&!!h&&(0,l.jsxs)(l.Fragment,{children:[!!u&&(0,l.jsx)(o.L9,{color:I?"colorPalette.errorMain":T?"colorPalette.inputMain":"colorPalette.labelMain",colorPalette:`input.${g}`,left:"s8",position:"absolute",top:"s12",children:I?(0,l.jsx)(s.A,{}):(0,l.jsx)(l.Fragment,{children:u})}),(0,l.jsx)(i.A,{"aria-hidden":"true",id:`input-label-${F}`,...t?{disabled:t}:{},float:!!S||T||L,hasError:I,htmlFor:F||b,inputColor:g,isFocus:T,isInlineLabel:h,required:j,...u?{left:"s48"}:{},children:m&&r?(0,l.jsx)(o.L9,{"data-cy":`${F}-error`,id:`${F}-error`,children:w?w(m):m}):b})]}),!t&&!S&&!!c&&c,!!m&&!r&&(0,l.jsx)(o.P,{color:"colorPalette.errorMain",colorPalette:`input.${g}`,"data-cy":`${F}-error`,id:`${F}-error`,pl:"s16",textStyle:"caption1",children:w?w(m):m})]})}));c.displayName="TextField";const m=c},53352(e,t,r){r.d(t,{Y:()=>u,r:()=>h});var n=r(36429),a=r(97145),o=r(4541),i=r(20511),s=r(99240),l=r(27844),c=r(16081),m=r(60746),d=r(90701);const p={de:s.A,en:l.A,fr:c.A},g={date_api:"yyyy-MM-dd HH:mm:ss",date_iso:"yyyy-MM-dd'T'HH:mm:ssXXX",date_medium:"dd MMMM",date_short:"dd MMM",date_time:"dd MMMM yyyy, HH:mm",date_timeline:"MMMM yyyy",default:"dd MMMM yyyy"},u=(e,t,r="default",a=!1)=>{const s=(e=>"string"==typeof e?(0,i.A)(e):e)(e);return(0,o.A)(s)&&void 0!==s?a?(0,n.A)(s,g[r],{locale:p[t]}):(0,m.A)(s,"Europe/Zurich",g[r],{locale:p[t]}):""},y={fr:"fr-CH",de:"de-CH",en:"en-GB"},h=(e,t)=>{const r=new Date(Date.now()),n=new Date(e);return(0,d.BB)((0,a.A)(n,r,{locale:y[t]}))}},90701(e,t,r){r.d(t,{$f:()=>l,BB:()=>i,NH:()=>c,Sd:()=>m,Yv:()=>o,dV:()=>d,ip:()=>s});r(78944),r(97512),r(18910),r(50750);const n="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż",a=new RegExp(n.split("").join("|"),"g"),o=(e="")=>e.toString().toLowerCase().replace(/\s+/g,"-").replace(a,(e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz".charAt(n.indexOf(e)))).replace(/&/g,"-and-").replace(/[^\w-"]+/g,"-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")||"-",i=e=>e&&e.length?e.charAt(0).toUpperCase()+e.slice(1):"",s=e=>e&&e.length?e.replace(/\w\S*/g,(e=>i(e))):"",l=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=({key:e,level:t=0,string:r,expression:n})=>{const a=l(n);if(a){const o=r.search(new RegExp(a,"i"));if(r&&~o)return[{id:`${e}-${n}-${t}-0`,string:r.substring(0,o),marked:!1},{id:`${e}-${n}-${t}-1`,string:r.substring(o,o+n.length),marked:!0},...c({key:e,level:t+1,string:r.substring(o+n.length),expression:n})].filter((e=>!!e.string))}return[{id:`${e}-${n}-${t}-0`,string:r,marked:!1}]},m=({exact:e=!1,suggestions:t,tolerance:r=2,value:n})=>{if(!n)return[];const a=n.toLowerCase(),o=new RegExp(`${e?"^":""}${l(a)}${e?"$":""}`);return t.some((e=>o.test(e)))?[]:t.filter((e=>p(e,a)<=r))},d=(e="")=>e.replace(/\s+/g,""),p=(e="",t="")=>{const r=Array(t.length+1).fill(null).map((()=>Array(e.length+1).fill(null)));for(let t=0;t<=e.length;t+=1)r[0][t]=t;for(let e=0;e<=t.length;e+=1)r[e][0]=e;for(let n=1;n<=t.length;n+=1)for(let a=1;a<=e.length;a+=1){const o=e[a-1]===t[n-1]?0:1;r[n][a]=Math.min(r[n][a-1]+1,r[n-1][a]+1,r[n-1][a-1]+o)}return r[t.length][e.length]}},80924(e,t,r){r.d(t,{A:()=>
1o});var n=r(59033),a=r(52695);const o=e=>(0,a.jsx)(n.In,{...e,children:(0,a.jsx)("path",{d:"M12 21q-.825 0-1.412-.587A1.93 1.93 0 0 1 10 19q0-.825.588-1.413A1.93 1.93 0 0 1 12 17q.825 0 1.413.587Q14 18.175 14 19c0 .825-.196 1.021-.587 1.413A1.93 1.93 0 0 1 12 21m0-6q-.825 0-1.412-.588A1.92 1.92 0 0 1 10 13V5q0-.825.588-1.413A1.93 1.93 0 0 1 12 3q.825 0 1.413.587Q14 4.175 14 5v8q0 .825-.587 1.412A1.93 1.93 0 0 1 12 15"})})},26411(e,t,r){r.d(t,{A:()=>o});var n=r(59033),a=r(52695);const o=e=>(0,a.jsx)(n.In,{...e,children:(0,a.jsx)("path",{d:"M5.85 17.1q1.275-.975 2.85-1.538A9.7 9.7 0 0 1 12 15q1.725 0 3.3.562t2.85 1.538a7.7 7.7 0 0 0 1.363-2.325A7.9 7.9 0 0 0 20 12q0-3.325-2.337-5.663T12 4c-3.325 0-4.104.779-5.662 2.337Q4 8.675 4 12q0 1.474.488 2.775A7.7 7.7 0 0 0 5.85 17.1M12 13q-1.475 0-2.488-1.012C8.499 10.976 8.5 10.483 8.5 9.5q0-1.475 1.012-2.488C10.524 5.999 11.017 6 12 6q1.475 0 2.488 1.012C15.501 8.024 15.5 8.517 15.5 9.5q0 1.475-1.012 2.488C13.476 13.001 12.983 13 12 13m0 9a9.7 9.7 0 0 1-3.9-.788 10.1 10.1 0 0 1-3.175-2.137q-1.35-1.35-2.137-3.175A9.7 9.7 0 0 1 2 12a9.7 9.7 0 0 1 .788-3.9 10.1 10.1 0 0 1 2.137-3.175q1.35-1.35 3.175-2.138A9.7 9.7 0 0 1 12 2a9.7 9.7 0 0 1 3.9.787 10.1 10.1 0 0 1 3.175 2.138q1.35 1.35 2.137 3.175A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-.788 3.9 10.1 10.1 0 0 1-2.137 3.175q-1.35 1.35-3.175 2.137A9.7 9.7 0 0 1 12 22m0-2q1.325 0 2.5-.387 1.175-.389 2.15-1.113a7.5 7.5 0 0 0-2.15-1.113A8 8 0 0 0 12 17q-1.325 0-2.5.387-1.175.389-2.15 1.113.975.724 2.15 1.113A8 8 0 0 0 12 20m0-9q.65 0 1.075-.425T13.5 9.5t-.425-1.075T12 8t-1.075.425T10.5 9.5t.425 1.075T12 11"})})},53121(e,t,r){e.exports=r.p+"images/21ffc8865c09207ac020.svg"},27521(e,t,r){e.exports=r.p+"images/86501659f83f6c2498a9.svg"},31736(e,t,r){e.exports=r.p+"images/5a231277af1cd1371d89.svg"}}]);
2//# sourceMappingURL=chunk-src_common_lib_Routing_hooks_useQuery_ts-src_common_modules_company-detail_components_Company-f9bd10.6aa1751f.js.map

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.