PageSourceSearch

https://www.suomi.fi/assets/3971.13373f9dd6d107a8be36.chunk.js

js suomi.fi collected 2026-10-01 09:15:28 UTC 134,944 bytes, 18 lines download raw bytes

1(self.webpackChunksevi_ui=self.webpackChunksevi_ui||[]).push([[3971],{59921(e,t,n){var r={"./icons/face-happy.svg":14068,"./icons/face-neutral.svg":567,"./icons/face-sad.svg":81298,"./icons/lukko.svg":78476,"./icons/route-planner/reittihaku-tulokset-aloituspiste.svg":86008};function i(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=59921},35373(e,t,n){"use strict";n.d(t,{o:()=>p});var r=n(18420),i=n(96540),a=n(63679),o=n(98955);let l=e=>i.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),i.createElement("path",{d:"M24 24V0h-9.524c-.052.15-.152.397-.324.789l-.813 1.804c-.613 1.354-1.58 3.425-1.564 3.718.02.408.294.072.294.072.533-.76 2.86-5.25 3.446-5.157.406.064.64.335.508.737a15.8 15.8 0 0 1-.463.921L14.54 4.81c-.74 1.412-1.51 2.95-1.594 3.474-.028.18-.01.533.23.57.399.065 1.907-1.407 2.114-1.598.29-.265 1.428-1.362 1.86-1.554.215.034.442.233.404.473-.103.654-1.368 1.916-1.855 2.409-.664.667-2.19 2.313-3.591 3.835-.592.088-1.311.154-1.94.184.16-.421.413-.946.552-1.146.027-.036.139-.176.213-.269.13-.161.212-.264.255-.326.344-.491 1.392-2.488.257-3.281a1.038 1.038 0 0 0-.594-.205c-.272 0-.52.13-.68.358-.097.14-.19.282-.28.419-.203.308-.394.6-.625.849l-.288.292a5.521 5.521 0 0 0-.664.763c-.61.846-.895 1.166-1.145 1.45l-.025.027c-.266.3-.542.611-1.083 1.363l-1.52 2.17c-.161.21-.351.36-.592.548-.031.024-.063.05-.097.075-.204.125-1.3.568-3.304 1.299 1.529-1.317 3.852-3.681 3.93-4.175.193-1.222-1.174-4.717-1.63-6.072-.1-.309-.334-.81-.539-1.253l-.355-.834c.047-.287.254-.342.608-.29 1.528.242 1.79 2.174 2.333 3.311.172.36.388.662.724.714 1.283.204 2.254-2.365 3.085-4.727C9.13 2.45 9.533 1.235 9.93.34c.058-.13.111-.228.167-.339H0v17.825c1.794-.645 3.963-1.455 4.213-1.656.302-.238.576-.435.813-.749l1.523-2.174c.54-.749.797-1.034 1.069-1.342.278-.313.571-.648 1.184-1.496.216-.305.409-.5.601-.692l.297-.3c.38-.407.647-.886.965-1.339.108-.154.285-.113.436-.007.652.456-.074 1.976-.403 2.447-.07.098-.399.496-.468.596-.22.316-.886 1.677-.8 2.107.9.005 2.622-.127 3.51-.344.626-.155 2.327-.7 3.95-1.15 1.329-.368 2.86-.719 3.16-.59.31.134.483.554.259.877-.257.366-5.602 2.23-6.444 2.529 0 .175-.187.704 1.414.494 1.883-.249 6.471-.802 7.016-.42.339.238.432.622.198.923-.22.28-1.501.343-2.036.426-1.762.272-5.313 1.015-5.864 1.18.267.2.626.379 2.431.136.06-.008 1.097-.129 2.372-.285.982-.121 1.873-.231 2.252 0 .317.192.541.623.252.844-.426.326-2.886.644-5.03 1.046-1.202.225-2.223.243-2.69.328-.01.172-.012.28.206.444.575.402 1.509.404 2.551.612.559.112 2.235.307 2.674.632.385.283.183.607.108.712-.377.54-5.584-.392-6.444-.553-1.554-.29-3.243.331-4.805.438-2.072.143-5.703 1.286-8.47 2.278V24h24ZM10.978 4.218c.3-.99 1.274-2.778 2.052-4.218h-1.709s-.689 2.177-.77 2.521c-.035.148-.145.483-.213.83-.022.117-.55 1.699-.55 1.699-.133.403-.127.684.361.976.366-.32.579-1.07.83-1.808Z",fill:"#1A99C7",fillRule:"evenodd"}));var s=n(61727),c=n(97297),d=n(45564);let u=(0,a.Ay)(e=>{let{className:t,mousePointer:n,ariaLabel:a,color:s,fill:u,baseColor:p,highlightColor:h}=e,f=(0,r.T)(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return i.createElement(l,Object.assign({className:(0,o.A)(c.z,t,{[c.X]:!!n})},f,(0,d.r)(a),(0,d.f)(a)))})`
2  ${s.Zv}
3`,p=e=>i.createElement(u,Object.assign({},e));p.displayName="Icon"},67694(e,t,n){"use strict";n.d(t,{ms:()=>D,wb:()=>N,UZ:()=>k});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(21939),u=n(5837),p=n(89),h=n(16069),f=n(521),m=n(97653),g=n(96789),b=n(92569),v=n(53058),x=n(73089),y=n(20619),w=n(41849),I=n(58499),_=n(52799),S=n(91259),T=n(98602),C=n(59225),j="fi-dropdown",k={baseClassName:j,labelIsVisible:"".concat(j,"_label--visible"),inputWrapper:"".concat(j,"_input-wrapper"),button:"".concat(j,"_button"),popover:"".concat(j,"_popover"),itemList:"".concat(j,"_item-list"),item:"".concat(j,"_item"),statusTextHasContent:"".concat(j,"_statusText--has-content"),displayValue:"".concat(j,"_display-value"),open:"".concat(j,"--open"),disabled:"".concat(j,"--disabled"),error:"".concat(j,"--error"),italicize:"".concat(j,"--italicize"),fullWidth:"".concat(j,"--full-width")},O=o.createContext({onItemClick:function(){return null},selectedDropdownValue:null,id:"",focusedItemValue:null,noSelectedStyles:!1,onItemTabPress:function(){return null},onItemMouseOver:function(){return null}}),P=O.Provider,N=O.Consumer,E=function(e){function t(n){var r=e.call(this,n)||this;return r.state={selectedValue:"value"in r.props?r.props.value:"defaultValue"in r.props?r.props.defaultValue:void 0,selectedValueNode:t.getSelectedValueNode("value"in r.props?r.props.value:"defaultValue"in r.props?r.props.defaultValue:void 0,r.props.children),ariaExpanded:!1,showPopover:!1,focusedDescendantId:"value"in r.props&&r.props.value?r.props.value:"defaultValue"in r.props?r.props.defaultValue:r.getFirstItemValue(),preventListScrolling:!1,popoverPlacement:"bottom"},r.handleSpaceAndEnter=function(e,t){var n=r.state,i=n.focusedDescendantId,a=n.showPopover;if(a){if(a&&i){var o=e.find(function(e){return(null==e?void 0:e.props.value)===i});o&&!o.props.disabled&&r.handleItemSelection(o.props.value)}}
3else if(r.openPopover(),!i){var l=t();l&&r.setState({focusedDescendantId:l.props.value})}},r.handleKeyDown=function(e){r.setState({preventListScrolling:!1});var t=r.state,n=t.focusedDescendantId,i=t.ariaExpanded,a=t.showPopover,o=Array.isArray(r.props.children)?r.props.children:void 0!==r.props.children?[r.props.children]:void 0;if(o){var l=o.flat(),s=n?l.findIndex(function(e){return(null==e?void 0:e.props.value)===n}):null,c=function(){return l[null!==s?(s+1)%l.length:0]};switch(e.key){case"ArrowDown":if(e.preventDefault(),a){var d=c();d&&r.setState({focusedDescendantId:d.props.value})}else r.openPopover();break;case"ArrowUp":if(e.preventDefault(),a){var u=l[null!==s&&-1!==s?(s-1+l.length)%l.length:l.length-1];u&&r.setState({focusedDescendantId:u.props.value})}else r.openPopover();break;case" ":e.preventDefault(),r.setState({showPopover:!a,ariaExpanded:!i}),r.handleSpaceAndEnter(l,c);break;case"Enter":e.preventDefault(),r.handleSpaceAndEnter(l,c);break;case"Escape":a&&(e.stopPropagation(),r.focusToButtonAndClosePopover())}}},r.handleOnBlur=function(){var e=(0,I.TW)(r.buttonRef);e&&requestAnimationFrame(function(){var t,n,i=null===(t=r.popoverRef.current)||void 0===t?void 0:t.contains(e.activeElement);if(!i){r.props.onBlur&&r.props.onBlur();var a=null===(n=r.buttonRef.current)||void 0===n?void 0:n.contains(e.activeElement),o=i||a;o||r.setState({showPopover:o,ariaExpanded:o})}})},r.updatePopoverPlacement=function(e){e&&e!==r.state.popoverPlacement&&requestAnimationFrame(function(){r.componentIsMounted&&r.setState({popoverPlacement:e})})},r.buttonRef=o.createRef(),r.popoverRef=o.createRef(),r}return(0,a.C6)(t,e),t.getDerivedStateFromProps=function(e,n){var r=e.value;return"value"in e&&r!==n.selectedValue?{selectedValue:r,selectedValueNode:t.getSelectedValueNode(r,e.children)}:n.selectedValue&&e.children&&t.valueExistsInChildren(n.selectedValue,e.children)?{selectedValue:n.selectedValue,selectedValueNode:t.getSelectedValueNode(n.selectedValue,e.children)}:null},t.getSelectedValueNode=function(e,t){if(void 0!==e&&void 0!==t){if(!Array.isArray(t))return t.props.children;for(var n=t.flat(),r=0;r<n.length;r+=1){var i=n[r];if(i.props.value===e)return i.props.children}}},t.valueExistsInChildren=function(e,t){return Array.isArray(t)?t.flat().some(function(t){return t.props.value===e}):t.props.value===e},t.prototype.componentDidMount=function(){this.componentIsMounted=!0},t.prototype.componentWillUnmount=function(){this.componentIsMounted=!1},t.prototype.componentDidUpdate=function(e){void 0===this.props.value&&void 0!==e.value&&this.setState({selectedValue:void 0,selectedValueNode:void 0})},t.prototype.isOutsideClick=function(e){return!!this.buttonRef&&this.buttonRef.current.contains(e.target)},t.prototype.handleItemSelection=function(e){var n=this;this.props.onChange&&this.props.onChange(e),this.setState({selectedValue:e,selectedValueNode:t.getSelectedValueNode(e,this.props.children),focusedDescendantId:e,ariaExpanded:!1}),setTimeout(function(){var e;n.componentIsMounted&&(null===(e=n.buttonRef.current)||void 0===e||e.focus(),n.setState({showPopover:!1}))},10)},t.prototype.getFirstItemValue=function(){if(Array.isArray(this.props.children)){var e=this.props.children[0];return Array.isArray(e)?e[0].props.value:e.props.value}return this.props.children?this.props.children.props.value:null},t.prototype.getDisplayValue=function(){var e;return this.props.alwaysShowVisualPlaceholder?this.props.visualPlaceholder:null!==(e=this.state.selectedValueNode)&&void 0!==e?e:this.props.visualPlaceholder},t.prototype.focusToButtonAndClosePopover=function(){var e;this.setState({ariaExpanded:!1}),null===(e=this.buttonRef.current)||void 0===e||e.focus(),this.setState({showPopover:!1})},t.prototype.openPopover=function(){var e=this;this.setState({showPopover:!0,ariaExpanded:!0}),setTimeout(function(){var t;null===(t=e.popoverRef.current)||void 0===t||t.focus()},200)},t.prototype.render=function(){var e,t,n,r=this,i=this.props,l=i.id,s=i.name,p=i.disabled,v=i.children,y=i.labelText,w=i.labelMode,O=i.forwardedRef,N=i.optionalText,E=i["aria-labelledby"],A=i.hintText,z=i.status,D=i.statusText,B=i.visualPlaceholder,R=i.alwaysShowVisualPlaceholder,F=i.className;i.onChange,i.onBlur;var M=i.tooltipComponent,L=i.portal,V=i.popoverClassName,U=i.statusTextAriaLiveMode,H=i.fullWidth,W=i.style,q=(0,a.Tt)(i,["id","name","disabled","children","labelText","labelMode","forwardedRef","optionalText","aria-labelledby","hintText","status","statusText","visualPlaceholder","alwaysShowVisualPlaceholder","className","onChange","onBlur","tooltipComponent","portal","popoverClassName","statusTextAriaLiveMode","fullWidth","style"]),G=(0,x.yQ)(q)[1];if(1>o.Children.count(v))return(0,u.t)().warn("Dropdown '".concat(y,"' does not contain items")),null;var K=this.state,$=K.selectedValue,X=K.ariaExpanded,Q=K.showPopover,Z=K.focusedDescendantId,Y=K.preventListScrolling,J="".concat(l,"-label"),ee="".concat(l,"_button"),et="".concat(l,"-popover"),en=A?"".concat(l,"-hintText"):void 0,er=D?"".concat(l,"-statusText"):void 0,ei="".concat(l,"-displayValue"),ea=Z?"".concat(l,"-").concat(Z):"",eo=this.getDisplayValue();return o.createElement(f.BX,{className:c()(F,j,((e={})[k.disabled]=!!p,e[k.open]=!!Q,e[k.error]="error"===z,e[k.italicize]=B&&!R&&!$,e[k.fullWidth]=H,e)),id:l,style:W},o.createElement(b.J,{id:J,labelMode:w,optionalText:N,className:c()(((t={})[k.labelIsVisible]="hidden"!==w,t)),tooltipComponent:M,onClick:function(){var e;p||null===(e=r.buttonRef.current)||void 0===e||e.focus()}},y),o.createElement(T.X,{id:en},A),o.createElement(f.BX,{className:k.inputWrapper},o.createElement(h.I,(0,a.Cl)({"aria-haspopup":"listbox",tabIndex:p?-1:0,forwardedRef:(0,I.JV)(this.buttonRef,O||null),id:ee,className:k.button},(0,d.p)("aria-labelledby",[ei,E,J]),(0,d.p)("aria-describedby",[er,en]),{"aria-controls":et,"aria-expanded":X,onClick:function(){Q?r.focusToButtonAndClosePo
3pover():r.openPopover()},onKeyDown:this.handleKeyDown,onBlur:this.handleOnBlur,"data-floating-ui-placement":this.state.popoverPlacement},G),o.createElement(g.m,{className:k.displayValue,id:ei},eo),o.createElement(m._,{tabIndex:-1,type:"hidden",name:s,value:$||""})),o.createElement(C.E,{id:er,className:c()(((n={})[k.statusTextHasContent]=!!D,n)),status:z,disabled:p,ariaLiveMode:void 0===U?"assertive":U},D),Q&&o.createElement(_.A,{sourceRef:this.buttonRef,onClickOutside:function(e){r.isOutsideClick(e)||r.setState({showPopover:!1,ariaExpanded:!1})},matchWidth:!0,onKeyDown:this.handleKeyDown,portal:void 0===L||L,className:V},o.createElement(_.g,null,function(e){return r.updatePopoverPlacement(null==e?void 0:e.popoverPlacement),o.createElement(P,{value:{onItemClick:function(e){return r.handleItemSelection(e)},selectedDropdownValue:$,id:l,focusedItemValue:Z,noSelectedStyles:R,onItemTabPress:function(){return r.focusToButtonAndClosePopover()},onItemMouseOver:function(e){return r.setState({preventListScrolling:!0,focusedDescendantId:e})}}},o.createElement(S._,{id:et,ref:r.popoverRef,focusedDescendantId:ea,className:k.itemList,onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),r.focusToButtonAndClosePopover())},preventScrolling:Y,popoverPlacement:null==e?void 0:e.popoverPlacement},v||[]))}))))},t}(o.Component),A=(0,l.I4)(function(e){e.theme,e.globalMargins;var t=(0,a.Tt)(e,["theme","globalMargins"]);return o.createElement(E,(0,a.Cl)({},t))}).withConfig({componentId:"sc-15kwal2-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t=e.theme,n=e.globalMargins,i=(0,a.Tt)(e,["theme","globalMargins"]),o=(0,x.yQ)(i)[0],s=(0,I.m8)(n.dropdown,o);return(0,l.AH)(r||(r=(0,a.ue)(["\n  width: 290px;\n  ","\n  ","\n  ","\n  .fi-dropdown_item-list {\n    padding-top: 0;\n  }\n  &.fi-dropdown {\n    display: inline-block;\n\n    .fi-dropdown_label--visible {\n      margin-bottom: ",";\n    }\n\n    .fi-hint-text {\n      margin-bottom: ",";\n    }\n\n    .fi-status-text {\n      line-height: 1.1rem;\n      &.fi-dropdown_statusText--has-content {\n        margin-top: ",";\n      }\n    }\n\n    .fi-dropdown_button {\n      ","\n      position: relative;\n      display: inline-block;\n      word-break: break-word;\n      width: 100%;\n      overflow-wrap: break-word;\n      height: 40px;\n      padding: 7px 38px 7px 7px;\n      border-color: ",";\n      text-align: left;\n      line-height: 1.5;\n      background-color: ",";\n      box-shadow: ",";\n      cursor: pointer;\n      user-select: none;\n      white-space: nowrap;\n\n      /* stylelint-disable no-descending-specificity */\n      &:focus-visible {\n        outline: none;\n      }\n\n      &:before {\n        content: '';\n        position: absolute;\n        top: 50%;\n        right: 16px;\n        margin-top: -3px;\n        border-style: solid;\n        border-color: "," transparent transparent\n          transparent;\n        border-width: 6px 4px 0 4px;\n      }\n      &[aria-expanded='true']:before {\n        border-color: transparent transparent ","\n          transparent;\n        border-width: 0 4px 6px 4px;\n      }\n    }\n\n    .fi-dropdown_display-value {\n      width: 100%;\n      height: 100%;\n      display: inline-block;\n      line-height: 1.5;\n      overflow: hidden;\n    }\n\n    .fi-dropdown_popover {\n      ","\n      ","\n      margin-top: -1px;\n      padding: 0;\n      box-sizing: border-box;\n      font-size: 100%;\n      border: 0;\n      background-color: ",";\n      border-color: ",";\n      border-style: solid;\n      border-width: 0 1px 1px 1px;\n      border-radius: 0px 0px "," ",";\n      max-height: 265px;\n      overflow-y: auto;\n      overflow-x: hidden;\n\n      &:focus-within {\n        outline: 0;\n        box-shadow: none;\n      }\n    }\n\n    &--full-width {\n      width: 100%;\n    }\n\n    &--open {\n      .fi-dropdown_button {\n        border-bottom: 0;\n        border-bottom-left-radius: 0;\n        border-bottom-right-radius: 0;\n        padding-bottom: 8px;\n\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 1px solid ",";\n          border-top-left-radius: 0;\n          border-top-right-radius: 0;\n          border-bottom-left-radius: ",";\n          border-bottom-right-radius: ",";\n          border-top: 0;\n          padding-top: 8px;\n          box-shadow: none;\n        }\n      }\n    }\n\n    &--error {\n      .fi-dropdown_button {\n        border-color: ",";\n        border-width: 2px;\n\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 2px solid ",";\n        }\n      }\n    }\n\n    &--italicize {\n      .fi-dropdown_button {\n        font-style: italic;\n        color: ",";\n        opacity: 1;\n      }\n    }\n\n    &--disabled {\n      .fi-dropdown_input-wrapper {\n        cursor: n
3ot-allowed;\n        .fi-dropdown_button {\n          background-color: ",";\n          color: ",";\n          opacity: 1;\n          pointer-events: none;\n          &:before {\n            border-color: "," transparent transparent\n              transparent;\n          }\n        }\n      }\n    }\n\n    &:not(.fi-dropdown--open) {\n      .fi-dropdown_button {\n        &:focus {\n          ","\n          position: relative;\n\n          &:after {\n            ","\n          }\n        }\n      }\n    }\n  }\n"],["\n  width: 290px;\n  ","\n  ","\n  ","\n  .fi-dropdown_item-list {\n    padding-top: 0;\n  }\n  &.fi-dropdown {\n    display: inline-block;\n\n    .fi-dropdown_label--visible {\n      margin-bottom: ",";\n    }\n\n    .fi-hint-text {\n      margin-bottom: ",";\n    }\n\n    .fi-status-text {\n      line-height: 1.1rem;\n      &.fi-dropdown_statusText--has-content {\n        margin-top: ",";\n      }\n    }\n\n    .fi-dropdown_button {\n      ","\n      position: relative;\n      display: inline-block;\n      word-break: break-word;\n      width: 100%;\n      overflow-wrap: break-word;\n      height: 40px;\n      padding: 7px 38px 7px 7px;\n      border-color: ",";\n      text-align: left;\n      line-height: 1.5;\n      background-color: ",";\n      box-shadow: ",";\n      cursor: pointer;\n      user-select: none;\n      white-space: nowrap;\n\n      /* stylelint-disable no-descending-specificity */\n      &:focus-visible {\n        outline: none;\n      }\n\n      &:before {\n        content: '';\n        position: absolute;\n        top: 50%;\n        right: 16px;\n        margin-top: -3px;\n        border-style: solid;\n        border-color: "," transparent transparent\n          transparent;\n        border-width: 6px 4px 0 4px;\n      }\n      &[aria-expanded='true']:before {\n        border-color: transparent transparent ","\n          transparent;\n        border-width: 0 4px 6px 4px;\n      }\n    }\n\n    .fi-dropdown_display-value {\n      width: 100%;\n      height: 100%;\n      display: inline-block;\n      line-height: 1.5;\n      overflow: hidden;\n    }\n\n    .fi-dropdown_popover {\n      ","\n      ","\n      margin-top: -1px;\n      padding: 0;\n      box-sizing: border-box;\n      font-size: 100%;\n      border: 0;\n      background-color: ",";\n      border-color: ",";\n      border-style: solid;\n      border-width: 0 1px 1px 1px;\n      border-radius: 0px 0px "," ",";\n      max-height: 265px;\n      overflow-y: auto;\n      overflow-x: hidden;\n\n      &:focus-within {\n        outline: 0;\n        box-shadow: none;\n      }\n    }\n\n    &--full-width {\n      width: 100%;\n    }\n\n    &--open {\n      .fi-dropdown_button {\n        border-bottom: 0;\n        border-bottom-left-radius: 0;\n        border-bottom-right-radius: 0;\n        padding-bottom: 8px;\n\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 1px solid ",";\n          border-top-left-radius: 0;\n          border-top-right-radius: 0;\n          border-bottom-left-radius: ",";\n          border-bottom-right-radius: ",";\n          border-top: 0;\n          padding-top: 8px;\n          box-shadow: none;\n        }\n      }\n    }\n\n    &--error {\n      .fi-dropdown_button {\n        border-color: ",";\n        border-width: 2px;\n\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 2px solid ",";\n        }\n      }\n    }\n\n    &--italicize {\n      .fi-dropdown_button {\n        font-style: italic;\n        color: ",";\n        opacity: 1;\n      }\n    }\n\n    &--disabled {\n      .fi-dropdown_input-wrapper {\n        cursor: not-allowed;\n        .fi-dropdown_button {\n          background-color: ",";\n          color: ",";\n          opacity: 1;\n          pointer-events: none;\n          &:before {\n            border-color: "," transparent transparent\n              transparent;\n          }\n        }\n      }\n    }\n\n    &:not(.fi-dropdown--open) {\n      .fi-dropdown_button {\n        &:focus {\n          ","\n          position: relative;\n\n          &:after {\n            ","\n          }\n        }\n      }\n    }\n  }\n"])),(0,x.jE)(s),(0,x.jE)(o,!0),(0,v.Ww)(),t.spacing.xs,t.spacing.xs,t.spacing.xxs,(0,v.hF)(t),t.colors.depthDark3,t.colors.whiteBase,t.shadows.actionElementBoxShadow,t.colors.blackBase,t.colors.blackBase,(0,v.ND)(t),t.typography.actionElementInnerText,t.colors.whiteBase,t.colors.depthDark3,t.radiuses.basic,t.radiu
3ses.basic,t.colors.depthDark3,t.radiuses.basic,t.radiuses.basic,t.colors.alertBase,t.colors.alertBase,t.colors.depthDark2,t.colors.depthLight3,t.colors.depthBase,t.colors.depthBase,t.focuses.highContrastFocus,t.focuses.absoluteFocus)}),z=function(e,t){var n=e.id,r=(0,a.Tt)(e,["id"]);return o.createElement(w.ME,null,function(e){var i=e.margins;return o.createElement(y.iN,null,function(e){var l=e.suomifiTheme;return o.createElement(p.T,{id:n},function(e){return o.createElement(A,(0,a.Cl)({theme:l,globalMargins:i,id:e,forwardedRef:t},r))})})})},D=o.forwardRef(z);z.displayName="Dropdown"},67768(e,t,n){"use strict";n.d(t,{t:()=>v});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(74553),c=n(53058),d=n(67694),u=n(80325),p=n.n(u),h=n(20619),f=n(71687),m=n(58499),g={hasKeyboardFocus:"".concat(d.UZ.item,"--hasKeyboardFocus"),selected:"".concat(d.UZ.item,"--selected"),disabled:"".concat(d.UZ.item,"--disabled"),noSelectedStyles:"".concat(d.UZ.item,"--noSelectedStyles"),icon:"".concat(d.UZ.item,"_icon")},b=(0,l.I4)(function(e){var t,n=e.children,r=e.className;e.theme;var i=e.consumer,l=e.value,c=e.disabled,u=void 0!==c&&c,h=(0,a.Tt)(e,["children","className","theme","consumer","value","disabled"]),b=i.selectedDropdownValue===l,v=i.focusedItemValue===l,x="".concat(i.id,"-").concat(l),y=(0,o.useRef)(null);return(0,o.useLayoutEffect)(function(){var e,t;(null===(e=(0,m.TW)(y).activeElement)||void 0===e?void 0:e.id)!==x&&v&&(null===(t=y.current)||void 0===t||t.focus({preventScroll:!0}))},[i.focusedItemValue]),o.createElement(f.P,(0,a.Cl)({className:p()(r,d.UZ.item,((t={})[g.hasKeyboardFocus]=v,t[g.selected]=b,t[g.disabled]=u,t[g.noSelectedStyles]=i.noSelectedStyles,t)),tabIndex:v?0:-1,role:"option","aria-disabled":u,"aria-selected":b,id:x,onClick:function(){u||i.onItemClick(l)},forwardedRef:y,onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),i.onItemTabPress())},onMouseOver:function(){i.onItemMouseOver(l)}},h),n,b&&!i.noSelectedStyles&&o.createElement(s.i,{className:g.icon,"aria-hidden":!0}))}).withConfig({componentId:"sc-1pc651a-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  &.fi-dropdown_item {\n    ","\n    ","\n    cursor: pointer;\n    line-height: 1.5;\n    padding: ",";\n    border: 0;\n    position: relative;\n    &:focus {\n      outline: 0;\n    }\n    &:hover {\n      background-color: ",";\n      color: ",";\n    }\n\n    .fi-dropdown_item_icon {\n      position: absolute;\n      top: 14px;\n      right: 10px;\n      height: 12px;\n      width: 12px;\n    }\n\n    &--selected {\n      background-color: ",";\n      color: ",";\n    }\n\n    &--hasKeyboardFocus {\n      background-color: ",";\n      color: ",";\n    }\n\n    &--noSelectedStyles {\n      &.fi-dropdown_item--selected {\n        background-color: ",";\n        color: ",";\n\n        &.fi-dropdown_item--hasKeyboardFocus {\n          background-color: ",";\n          color: ",";\n        }\n      }\n    }\n\n    &--disabled {\n      color: ",";\n      cursor: not-allowed;\n\n      &:hover {\n        color: ",";\n      }\n    }\n\n    @media (forced-colors: active) {\n      &--hasKeyboardFocus,\n      &:hover {\n        background-color: Highlight;\n      }\n    }\n  }\n"],["\n  &.fi-dropdown_item {\n    ","\n    ","\n    cursor: pointer;\n    line-height: 1.5;\n    padding: ",";\n    border: 0;\n    position: relative;\n    &:focus {\n      outline: 0;\n    }\n    &:hover {\n      background-color: ",";\n      color: ",";\n    }\n\n    .fi-dropdown_item_icon {\n      position: absolute;\n      top: 14px;\n      right: 10px;\n      height: 12px;\n      width: 12px;\n    }\n\n    &--selected {\n      background-color: ",";\n      color: ",";\n    }\n\n    &--hasKeyboardFocus {\n      background-color: ",";\n      color: ",";\n    }\n\n    &--noSelectedStyles {\n      &.fi-dropdown_item--selected {\n        background-color: ",";\n        color: ",";\n\n        &.fi-dropdown_item--hasKeyboardFocus {\n          background-color: ",";\n          color: ",";\n        }\n      }\n    }\n\n    &--disabled {\n      color: ",";
3\n      cursor: not-allowed;\n\n      &:hover {\n        color: ",";\n      }\n    }\n\n    @media (forced-colors: active) {\n      &--hasKeyboardFocus,\n      &:hover {\n        background-color: Highlight;\n      }\n    }\n  }\n"])),(0,c.ND)(t),t.typography.actionElementInnerText,t.spacing.insetM,t.colors.highlightBase,t.colors.whiteBase,t.colors.depthSecondaryDark1,t.colors.blackBase,t.colors.highlightBase,t.colors.whiteBase,t.colors.whiteBase,t.colors.blackBase,t.colors.highlightBase,t.colors.whiteBase,t.colors.depthBase,t.colors.depthBase)}),v=function(e){return o.createElement(h.iN,null,function(t){var n=t.suomifiTheme;return o.createElement(d.wb,null,function(t){return o.createElement(b,(0,a.Cl)({theme:n,consumer:t},e))})})};v.displayName="DropdownItem"},1894(e,t,n){"use strict";n.d(t,{Z:()=>_});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(521),u=n(97653),p=n(89),h=n(20619),f=n(21939),m=n(92569),g=n(98602),b=n(59225),v=n(53058),x="fi-filter-input",y={error:"".concat(x,"--error"),disabled:"".concat(x,"--disabled"),labelAlignLeft:"".concat(x,"--label-align-left"),labelIsVisible:"".concat(x,"_label--visible"),wrapper:"".concat(x,"_wrapper"),functionalityContainer:"".concat(x,"_functionalityContainer"),inputElementContainer:"".concat(x,"_input-element-container"),inputElement:"".concat(x,"_input"),actionElementsContainer:"".concat(x,"_action-elements-container"),statusTextHasContent:"".concat(x,"_statusText--has-content")},w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.filterItems=function(e,t,n){return e.reduce(function(e,r){return t(r,n)&&e.push(r),e},[])},t}return(0,a.C6)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.onFilter&&e.value!==this.props.value||e.items!==this.props.items){var t=this.props.value?this.props.value.toString():"";this.props.onFilter(this.filterItems(this.props.items,this.props.filterFunc,t))}},t.prototype.render=function(){var e,t,n,r=this,i=this.props,l=i.className,s=i.inputContainerProps,p=i.inputElementContainerProps,h=i.visualPlaceholder,v=i.labelText,w=i.labelMode,I=i.hintText,_=i.optionalText,S=i.status,T=i.statusText,C=i.id,j=i.labelAlign,k=i["aria-describedby"],O=i.statusTextAriaLiveMode;i.items,i.onFilter,i.filterFunc;var P=i.forwardedRef,N=i.onChange,E=i.children,A=i.tooltipComponent,z=(0,a.Tt)(i,["className","inputContainerProps","inputElementContainerProps","visualPlaceholder","labelText","labelMode","hintText","optionalText","status","statusText","id","labelAlign","aria-describedby","statusTextAriaLiveMode","items","onFilter","filterFunc","forwardedRef","onChange","children","tooltipComponent"]),D="".concat(C,"-label"),B=I?"".concat(C,"-hintText"):void 0,R=T?"".concat(C,"-statusText"):void 0;return o.createElement(d.BX,(0,a.Cl)({},s,{className:c()(x,l,((e={})[y.disabled]=!!z.disabled,e[y.error]="error"===S,e[y.labelAlignLeft]="left"===j,e))}),o.createElement(d.BX,{className:c()(y.wrapper,{})},o.createElement(m.J,{id:D,labelMode:w,optionalText:_,className:c()(((t={})[y.labelIsVisible]="hidden"!==w,t)),tooltipComponent:A,htmlFor:C},v),o.createElement(g.X,{id:B},I),o.createElement(d.BX,{className:y.functionalityContainer},o.createElement(d.BX,(0,a.Cl)({className:y.inputElementContainer},p),o.createElement(u._,(0,a.Cl)({},z,{"aria-labelledby":D,"aria-invalid":"error"===S,id:C,className:y.inputElement,type:"text",forwardedRef:P,placeholder:h},(0,f.p)("aria-describedby",[R,B,k]),{autoComplete:"off","aria-autocomplete":"list",autoCapitalize:"none",spellCheck:"false",onChange:function(e){var t=r.props,n=t.items,i=t.onFilter,a=t.filterFunc,o=e.target.value;i(r.filterItems(n,a,o)),N&&N(o)},"aria-multiline":!1}))),o.Children.count(E)>0&&o.createElement(d.BX,{className:y.actionElementsContainer,onMouseDownCapture:function(e){e.preventDefault(),e.stopPropagation()}},E),o.createElement(b.E,{id:R,className:c()(((n={})[y.statusTextHasContent]=!!T,n)),status:S,disabled:z.disabled,ariaLiveMode:void 0===O?"assertive":O},T))))},t}(o.Component),I=(0,l.I4)(function(e){e.theme;var t=(0,a.Tt)(e,["theme"]);return o.createElement(w,(0,a.Cl)({},t))}).withConfig({componentId:"sc-c0uaap-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  ","\n\n  & .fi-filter-input_wrapper {\n    display: inline-block;\n    width: 100%;\n\n    & .fi-filter-input_label--visible {\n      margin-bottom: ",";\n    }\n\n    & .fi-hint-text {\n      margin-bottom: ",";\n    }\n  }\n\n  & .fi-filter-input_functionalityContainer {\n    line-height: 1.5;\n    position: relative;\n\n    & .fi-filter-input_action-elements-container {\n      position: absolute;\n      height: 40px;\n      right: 0;\n      top: 0;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n      & > * {\n        box-sizing: content-box;\n        display: flex;\n        padding: 0 8px;\n        flex: 0 0 auto;\n      }\n      & :not(:last-child) {\n        border-right: 1px solid ",";\n        padding-right: 8px;\n        height: 20px;\n      }\n    }\n\n    & .fi-filter-input_statusText--has-content {\n      margin-top: ",";\n    }\n  }\n\n  & .fi-filter-input_input-element-container {\n    ","\n\n    &:focus-within {\n      position: relative;\n\n      &::after {\n        ","\n      }\n    }\n  }\n\n  & .fi-filter-input_input {\n    ","\n    background-color: ",";\n    min-width: 40px;\n    width: 100%;\n    min-height: 40px;\n    padding-left: ",";\n    border-color: ",";\n\n    &::placeholder {\n      font-style: italic;\n      color: ",";\n      opacity: 1;\n    }\n  }\n\n  &.fi-filter-input--error {\n    & .fi-filter-input_input {\n      border-color: ",";\n      border-width: 2px;\n    }\n  }\n\n  &.fi-filter-input--disabled {\n    & .fi-filter-input_input {\n      color: ",";\n      background-color: ",";\n      border-color: ",";
3\n      cursor: not-allowed;\n    }\n  }\n\n  &.fi-filter-input--label-align-left {\n    & .fi-filter-input_wrapper {\n      display: flex;\n      flex-direction: row;\n      align-items: flex-start;\n\n      & .fi-label {\n        padding-right: ",";\n        padding-top: ",";\n        align-self: flex-start;\n\n        & .fi-label_label-span {\n          margin-bottom: 0;\n        }\n      }\n    }\n  }\n"],["\n  ","\n\n  & .fi-filter-input_wrapper {\n    display: inline-block;\n    width: 100%;\n\n    & .fi-filter-input_label--visible {\n      margin-bottom: ",";\n    }\n\n    & .fi-hint-text {\n      margin-bottom: ",";\n    }\n  }\n\n  & .fi-filter-input_functionalityContainer {\n    line-height: 1.5;\n    position: relative;\n\n    & .fi-filter-input_action-elements-container {\n      position: absolute;\n      height: 40px;\n      right: 0;\n      top: 0;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n      & > * {\n        box-sizing: content-box;\n        display: flex;\n        padding: 0 8px;\n        flex: 0 0 auto;\n      }\n      & :not(:last-child) {\n        border-right: 1px solid ",";\n        padding-right: 8px;\n        height: 20px;\n      }\n    }\n\n    & .fi-filter-input_statusText--has-content {\n      margin-top: ",";\n    }\n  }\n\n  & .fi-filter-input_input-element-container {\n    ","\n\n    &:focus-within {\n      position: relative;\n\n      &::after {\n        ","\n      }\n    }\n  }\n\n  & .fi-filter-input_input {\n    ","\n    background-color: ",";\n    min-width: 40px;\n    width: 100%;\n    min-height: 40px;\n    padding-left: ",";\n    border-color: ",";\n\n    &::placeholder {\n      font-style: italic;\n      color: ",";\n      opacity: 1;\n    }\n  }\n\n  &.fi-filter-input--error {\n    & .fi-filter-input_input {\n      border-color: ",";\n      border-width: 2px;\n    }\n  }\n\n  &.fi-filter-input--disabled {\n    & .fi-filter-input_input {\n      color: ",";\n      background-color: ",";\n      border-color: ",";\n      cursor: not-allowed;\n    }\n  }\n\n  &.fi-filter-input--label-align-left {\n    & .fi-filter-input_wrapper {\n      display: flex;\n      flex-direction: row;\n      align-items: flex-start;\n\n      & .fi-label {\n        padding-right: ",";\n        padding-top: ",";\n        align-self: flex-start;\n\n        & .fi-label_label-span {\n          margin-bottom: 0;\n        }\n      }\n    }\n  }\n"])),(0,v.gx)(t)("bodyText"),t.spacing.xs,t.spacing.xs,t.colors.depthBase,t.spacing.xxs,(0,v.ih)(t),t.focuses.absoluteFocus,(0,v.hF)(t),t.colors.whiteBase,t.spacing.insetL,t.colors.depthDark3,t.colors.depthDark2,t.colors.alertBase,t.colors.depthBase,t.colors.depthLight3,t.colors.depthLight1,t.spacing.insetL,t.spacing.insetM)}),_=(0,o.forwardRef)(function(e,t){var n=e.id,r=(0,a.Tt)(e,["id"]);return o.createElement(h.iN,null,function(e){var i=e.suomifiTheme;return o.createElement(p.T,{id:n},function(e){return o.createElement(I,(0,a.Cl)({theme:i,id:e,forwardedRef:t},r))})})});_.displayName="FilterInput"},98602(e,t,n){"use strict";n.d(t,{X:()=>b});var r,i,a=n(31635),o=n(96540),l=n(80325),s=n.n(l),c=n(63679),d=n(96789),u=n(20619),p=n(41849),h=n(73089),f=n(53058),m=n(58499),g=(0,c.I4)(function(e){var t=e.className;e.globalMargins,e.theme;var n=e.children,r=(0,a.Tt)(e,["className","globalMargins","theme","children"]),i=(0,h.yQ)(r)[1];return o.createElement(d.m,(0,a.Cl)({},i,{className:s()(t,"fi-hint-text",{}),style:(0,a.Cl)({},null==i?void 0:i.style)}),n)}).withConfig({componentId:"sc-ketar6-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t=e.theme,n=e.globalMargins,i=(0,a.Tt)(e,["theme","globalMargins"]),o=(0,h.yQ)(i)[0],l=(0,m.m8)(n.hintText,o);return(0,c.AH)(r||(r=(0,a.ue)(["\n  color: ",";\n  ",";\n  ","\n  ","\n\n  &.fi-hint-text {\n    display: block;\n  }\n"],["\n  color: ",";\n  ",";\n  ","\n  ","\n\n  &.fi-hint-text {\n    display: block;\n  }\n"])),t.colors.blackBase,(0,f.gx)(t)("bodyTextSmall"),(0,h.jE)(l),(0,h.jE)(o,!0))}),b=(0,o.forwardRef)(function(e,t){var n=e.children,r=(0,a.Tt)(e,["children"]);return n?o.createElement(p.ME,null,function(e){var i=e.margins;return o.createElement(u.iN,null,function(e){var l=e.suomifiTheme;return o.createElement(g,(0,a.Cl)({forwardedRef:t,theme:l,globalMargins:i},r),n)})}):null});b.displayName="HintText"},13369(e,t,n){"use strict";n.d(t,{j:()=>k}
3);var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(16069),u=n(20619),p=n(43119),h=n(18420),f=n(98955);let m=e=>o.createElement("svg",Object.assign({viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),o.createElement("path",{fill:"#222",d:"M5 2 1 8h8z",fillRule:"evenodd",className:"fi-icon-base-fill"}));var g=n(61727),b=n(97297),v=n(45564);let x=(0,l.Ay)(e=>{let{className:t,mousePointer:n,ariaLabel:r,color:i,fill:a,baseColor:l,highlightColor:s}=e,c=(0,h.T)(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return o.createElement(m,Object.assign({className:(0,f.A)(b.z,t,{[b.X]:!!n})},c,(0,v.r)(r),(0,v.f)(r)))})`
4  ${g.Zv}
5`,y=e=>o.createElement(x,Object.assign({},e));y.displayName="Icon";let w=e=>o.createElement("svg",Object.assign({viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),o.createElement("path",{fill:"#222",d:"m5 8 4-6H1z",fillRule:"evenodd",className:"fi-icon-base-fill"})),I=(0,l.Ay)(e=>{let{className:t,mousePointer:n,ariaLabel:r,color:i,fill:a,baseColor:l,highlightColor:s}=e,c=(0,h.T)(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return o.createElement(w,Object.assign({className:(0,f.A)(b.z,t,{[b.X]:!!n})},c,(0,v.r)(r),(0,v.f)(r)))})`
6  ${g.Zv}
7`,_=e=>o.createElement(I,Object.assign({},e));_.displayName="Icon";var S="fi-input-toggle-button",T={"aria-hidden":!0,className:"".concat(S,"_icon")},C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.label;e.theme;var r=e.open,i=e.forwardedRef,l=e.onClick,s=(0,a.Tt)(e,["className","label","theme","open","forwardedRef","onClick"]);return o.createElement(d.I,(0,a.Cl)({forwardedRef:i},s,{className:c()(S,t),onClick:l}),o.createElement(p.s,null,n),r?o.createElement(y,(0,a.Cl)({},T)):o.createElement(_,(0,a.Cl)({},T)))},t}(o.Component),j=(0,l.I4)(C).withConfig({componentId:"sc-yi9s9p-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n  pointer-events: all;\n  justify-content: center;\n  align-items: center;\n\n  &.fi-input-toggle-button {\n    display: flex;\n    height: 100%;\n    & .fi-input-toggle-button_icon {\n      pointer-events: none;\n      width: 10px;\n      height: 10px;\n      & .fi-icon-base-fill {\n        fill: ",";\n      }\n    }\n\n    &[disabled],\n    &:disabled {\n      cursor: not-allowed;\n      & .fi-input-toggle-button_icon {\n        & .fi-icon-base-fill {\n          fill: ",";\n        }\n      }\n    }\n  }\n"],["\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n  pointer-events: all;\n  justify-content: center;\n  align-items: center;\n\n  &.fi-input-toggle-button {\n    display: flex;\n    height: 100%;\n    & .fi-input-toggle-button_icon {\n      pointer-events: none;\n      width: 10px;\n      height: 10px;\n      & .fi-icon-base-fill {\n        fill: ",";\n      }\n    }\n\n    &[disabled],\n    &:disabled {\n      cursor: not-allowed;\n      & .fi-input-toggle-button_icon {\n        & .fi-icon-base-fill {\n          fill: ",";\n        }\n      }\n    }\n  }\n"])),t.colors.blackBase,t.colors.depthBase)}),k=(0,o.forwardRef)(function(e,t){return o.createElement(u.iN,null,function(n){var r=n.suomifiTheme;return o.createElement(j,(0,a.Cl)({theme:r,forwardedRef:t},e))})});k.displayName="InputToggleButton"},48835(e,t,n){"use strict";n.d(t,{B:()=>v});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(20619),u=n(521),p=n(71687),h=n(53058),f="fi-select-empty-item",m={content_wrapper:"".concat(f,"_content_wrapper")},g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t.prototype.render=function(){var e=this.props,t=e.className;e.theme;var n=e.children,r=(0,a.Tt)(e,["className","theme","children"]);return o.createElement(p.P,{className:c()(f,t,{}),tabIndex:-1,role:"option"},o.createElement(u.BX,(0,a.Cl)({className:m.content_wrapper},r),n))},t}(o.Component),b=(0,l.I4)(g).withConfig({componentId:"sc-67lhlj-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  ","\n  padding: ",';\n\n  &:focus {\n    outline: none;\n  }\n  & .fi-select-empty-item_content_wrapper {\n    display: inline-block;\n    width: 100%;\n  }\n\n  &.loading {\n    & .fi-select-empty-item_content_wrapper {\n      display: block; /* Fixes "extra padding" issue with loading spinner */\n    }\n  }\n'],["\n  ","\n  padding: ",';\n\n  &:focus {\n    outline: none;\n  }\n  & .fi-select-empty-item_content_wrapper {\n    display: inline-block;\n    width: 100%;\n  }\n\n  &.loading {\n    & .fi-select-empty-item_content_wrapper {\n      display: block; /* Fixes "extra padding" issue with loading spinner */\n    }\n  }\n'])),(0,h.gx)(t)("actionElementInnerText"),t.spacing.insetL)}),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t.prototype.render=function(){var e=this;return o.createElement(d.iN,null,function(t){var n=t.suomifiTheme;return o.createElement(b,(0,a.Cl)({theme:n},e.props))})},t}(o.Component)},29476(e,t,n){"use strict";n.d(t,{A:()=>v});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(20619),c=n(521),d=n(71687),u=n(53058),p=n(80325),h=n.n(p),f="fi-select-item-addition",m={hint_text:"".concat(f,"_hint-text"),item:"".concat(f,"_item"),hasKeyboardFocus:"".concat(f,"_item--hasKeyboardFocus")},g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.hintText,r=t.onClick,i=t.hasKeyboardFocus,l=t.i
7d;t.theme;var s=t.children,u=(0,a.Tt)(t,["hintText","onClick","hasKeyboardFocus","id","theme","children"]);return o.createElement(c.BX,(0,a.Cl)({},u),o.createElement(c.BX,{className:m.hint_text},n),o.createElement(d.P,{className:h()(m.item,((e={})[m.hasKeyboardFocus]=i,e)),tabIndex:-1,onMouseDown:function(e){e.preventDefault()},onClick:function(e){r&&r(e)},"aria-label":"".concat(n,". ").concat(s,"."),role:"option",id:l},s))},t}(o.Component),b=(0,l.I4)(g).withConfig({componentId:"sc-m1d1s3-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  & .fi-select-item-addition_hint-text {\n    padding: 8px 32px 8px 10px;\n    ","\n    background: ",";\n    color: ",";\n  }\n\n  & .fi-select-item-addition_item {\n    padding: 8px 32px 8px 10px;\n    cursor: pointer;\n    ","\n    font-weight: bold;\n    &:hover {\n      background-color: ",";\n      color: ",";\n    }\n    &--hasKeyboardFocus {\n      background-color: ",";\n      color: ",";\n    }\n  }\n"],["\n  & .fi-select-item-addition_hint-text {\n    padding: 8px 32px 8px 10px;\n    ","\n    background: ",";\n    color: ",";\n  }\n\n  & .fi-select-item-addition_item {\n    padding: 8px 32px 8px 10px;\n    cursor: pointer;\n    ","\n    font-weight: bold;\n    &:hover {\n      background-color: ",";\n      color: ",";\n    }\n    &--hasKeyboardFocus {\n      background-color: ",";\n      color: ",";\n    }\n  }\n"])),(0,u.gx)(t)("bodyTextSmall"),t.colors.depthLight3,t.colors.depthDark1,(0,u.gx)(t)("actionElementInnerText"),t.colors.highlightBase,t.colors.whiteBase,t.colors.highlightBase,t.colors.whiteBase)}),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t.prototype.render=function(){var e=this;return o.createElement(s.iN,null,function(t){var n=t.suomifiTheme;return o.createElement(b,(0,a.Cl)({theme:n},e.props))})},t}(o.Component)},91259(e,t,n){"use strict";n.d(t,{_:()=>g});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(20619),u=n(11391),p=n(58499),h=n(53058),f=function(e){function t(t){var n=e.call(this,t)||this;return n.scrollItemList=function(e){var t,r;if(null!==n.wrapperRef&&null!==n.wrapperRef.current){var i=(null===(t=document.getElementById(e))||void 0===t?void 0:t.offsetTop)||0,a=(null===(r=document.getElementById(e))||void 0===r?void 0:r.offsetHeight)||0;if(i<n.wrapperRef.current.scrollTop)n.wrapperRef.current.scrollTop=i-4;else{var o=i+a;o>n.wrapperRef.current.scrollTop+n.wrapperRef.current.offsetHeight&&(n.wrapperRef.current.scrollTop=o-n.wrapperRef.current.offsetHeight-4)}}},n.wrapperRef=(0,o.createRef)(),n}return(0,a.C6)(t,e),t.prototype.componentDidUpdate=function(e){this.props.focusedDescendantId!==e.focusedDescendantId&&this.props.focusedDescendantId&&!this.props.preventScrolling&&this.scrollItemList(this.props.focusedDescendantId)},t.prototype.componentDidMount=function(){this.props.focusedDescendantId&&!this.props.preventScrolling&&this.scrollItemList(this.props.focusedDescendantId)},t.prototype.render=function(){var e=this.props,t=e.className;e.theme;var n=e.forwardedRef,r=e.children,i=e.onBlur,l=e.onKeyDown,s=e.id,d=e.focusedDescendantId;e.preventScrolling;var h=e.popoverPlacement,f=(0,a.Tt)(e,["className","theme","forwardedRef","children","onBlur","onKeyDown","id","focusedDescendantId","preventScrolling","popoverPlacement"]);return o.createElement(u.M,(0,a.Cl)({id:s,tabIndex:0,forwardRef:(0,p.JV)(this.wrapperRef,n),className:c()("fi-select-item-list",t,{})},f,{role:"listbox",onBlur:i,onKeyDown:l,"aria-activedescendant":d,"data-floating-ui-placement":h}),r)},t}(o.Component),m=(0,l.I4)(f).withConfig({componentId:"sc-1x4qiwd-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t;return t=e.theme,(0,l.AH)(r||(r=(0,a.ue)(["\n  ","\n  list-style-type: none;\n  box-sizing: border-box;\n  max-height: 265px;\n  background-color: ",";\n  border-width: 0 1px 1px 1px;\n  border-style: solid;\n  border-color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n  margin: 0;\n  padding: 4px 0 0 0;\n\n  display: block;\n  width: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n  &:focus {\n    outline: none;\n  }\n\n  &[data-floating-ui-placement^='top'] {\n    border-width: 1px 1px 0 1px;\n    border-bottom-left-radius: 0;\n    border-bottom-right-radius: 0;\n    border-top-left-radius: ",";\n    border-top-right-radius: ",";\n    padding: 0 0 4px 0;\n  }\n"],["\n  ","\n  list-style-type: none;\n  box-sizing: border-box;\n  max-height: 265px;\n  background-color: ",";\n  border-width: 0 1px 1px 1px;\n  border-style: solid;\n  border-color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n  margin: 0;\n  padding: 4px 0 0 0;\n\n  display: block;\n  width: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n  &:focus {\n    outline: none;\n  }\n\n  &[data-floating-ui-placement^='top'] {\n    border-width: 1px 1px 0 1px;\n    border-bottom-left-radius: 0;\n    border-bottom-right-radius: 0;\n    border-top-left-radius: ",";\n    border-top-right-radius: ",";\n    padding: 0 0 4px 0;\n  }\n"])),(0,h.gx)(t)("bodyText"),t.colors.whiteBase,t.colors.depthDark3,t.radiuses.basic,t.radiu
7ses.basic,t.radiuses.basic,t.radiuses.basic)}),g=(0,o.forwardRef)(function(e,t){return o.createElement(d.iN,null,function(n){var r=n.suomifiTheme;return o.createElement(m,(0,a.Cl)({theme:r,forwardedRef:t},e))})})},38621(e,t,n){"use strict";n.d(t,{Z:()=>E});var r,i,a=n(31635),o=n(96540),l=n(63679),s=n(80325),c=n.n(s),d=n(521),u=n(58499),p=n(89),h=n(69541),f=n(52799),m=n(20619),g=n(41849),b=n(73089),v=n(1894),x=n(92790),y=n(43119),w=n(27721),I=n(91259),_=n(9732),S=n(48835),T=n(13369),C=n(53058),j=n(29476),k="fi-single-select",O={valueSelected:"".concat(k,"--value-selected"),clearButtonWrapper:"".concat(k,"_clear-button_wrapper"),open:"".concat(k,"--open"),error:"".concat(k,"--error"),fullWidth:"".concat(k,"--full-width")},P=function(e){function t(t){var n,r,i=this;return(i=e.call(this,t)||this).preventShowPopoverOnInputFocus=!1,i.state={filterInputValue:(null===(n=i.props.selectedItem)||void 0===n?void 0:n.labelText)?i.props.selectedItem.labelText:(null===(r=i.props.defaultSelectedItem)||void 0===r?void 0:r.labelText)||"",filteredItems:i.props.items,filterMode:!1,showPopover:!1,focusedDescendantId:null,selectedItem:i.props.selectedItem?i.props.selectedItem:i.props.defaultSelectedItem||null,initialItems:i.props.items,computedItems:i.props.items,popoverPlacement:"bottom"},i.filter=function(e,t){return e.labelText.toLowerCase().includes(t.toLowerCase())},i.handleBlur=function(){i.props.onBlur&&i.props.onBlur();var e=(0,u.TW)(i.popoverListRef);e&&requestAnimationFrame(function(){var t,n,r=null===(t=i.popoverListRef.current)||void 0===t?void 0:t.contains(e.activeElement),a=null===(n=i.toggleButtonRef.current)||void 0===n?void 0:n.contains(e.activeElement),o=e.activeElement===i.filterInputRef.current,l=r||o||a;l||i.setState(function(e){var t;return{filterInputValue:(null===(t=e.selectedItem)||void 0===t?void 0:t.labelText)||"",filterMode:!1,showPopover:l,focusedDescendantId:null}})})},i.handleOnChange=function(e){i.setState(function(t){var n;return{filterInputValue:t.filterMode||!t.selectedItem?e:e.replace(new RegExp("^".concat((0,u.qr)((null===(n=t.selectedItem)||void 0===n?void 0:n.labelText)||""))),""),showPopover:!0,filterMode:!0}})},i.focusToInputAndSelectText=function(){i.filterInputRef&&i.filterInputRef.current&&(i.filterInputRef.current.focus(),setTimeout(function(){var e;return null===(e=i.filterInputRef.current)||void 0===e?void 0:e.select()},100))},i.focusToInputAndCloseMenu=function(){i.focusToInputAndSelectText(),i.setState(function(e){var t;return{showPopover:!1,filterMode:!1,focusedDescendantId:null,filterInputValue:(null===(t=e.selectedItem)||void 0===t?void 0:t.labelText)||""}})},i.handleItemSelection=function(e){if(null===e||!e.disabled){var t=i.props,n=t.onItemSelect,r=t.onItemSelectionChange;if(t.selectedItem)i.setState(function(e){var t;return{filterInputValue:(null===(t=e.selectedItem)||void 0===t?void 0:t.labelText)||""}});else{var a=[];null===e||i.props.items.some(function(t){return t.uniqueItemId===e.uniqueItemId})||a.push(e),i.setState({selectedItem:e||null,filterInputValue:(null==e?void 0:e.labelText)||"",focusedDescendantId:null,computedItems:i.props.items.concat(a)})}n&&n((null==e?void 0:e.uniqueItemId)||null),r&&r(e),i.focusToInputAndCloseMenu()}},i.handleKeyDown=function(e){var t=i.state,n=t.filteredItems,r=t.focusedDescendantId,a=t.filterMode,o=t.filterInputValue,l=a?n:i.state.computedItems,s=r?l.findIndex(function(e){return e.uniqueItemId===r}):null;switch(e.key){case"ArrowDown":e.preventDefault(),i.state.showPopover||i.setState({showPopover:!0});var c=i.props.allowItemAddition&&(s===l.length-1||0===l.length)&&""!==o&&!i.inputValueInItems()?{uniqueItemId:o.toLowerCase(),labelText:o}:l[null!==s?(s+1)%l.length:0];c&&i.setState({focusedDescendantId:c.uniqueItemId});break;case"ArrowUp":e.preventDefault(),i.state.showPopover||i.setState({showPopover:!0});var d=i.props.allowItemAddition&&(null===s||0===s)&&""!==o&&!i.inputValueInItems()?{uniqueItemId:o.toLowerCase(),labelText:o}:l[null!==s&&-1!==s?(s-1+l.length)%l.length:l.length-1];d&&i.setState({focusedDescendantId:d.uniqueItemId});break;case"Enter":if(e.preventDefault(),r){var u=l.find(function(e){return e.uniqueItemId===r});if(u)i.handleItemSelection(u);else{var p={uniqueItemId:o.toLowerCase(),labelText:o};i.handleItemSelection(p)}}break;case"Escape":i.state.showPopover&&e.stopPropagation(),i.focusToInputAndCloseMenu()}},i.inputValueInItems=function(){return!!i.state.computedItems.find(function(e){return e.uniqueItemId===i.state.filterInputValue.toLowerCase()||e.labelText.toLowerCase()===i.state.filterInputValue.toLowerCase()})},i.updatePopoverPlacement=function(e){e&&e!==i.state.popoverPlacement&&requestAnimationFrame(function(){i.setState({popoverPlacement:e})})},i.popoverListRef=o.createRef(),i.props.forwardedRef?i.filterInputRef=i.props.forwardedRef:i.filterInputRef=o.createRef(),i.toggleButtonRef=o.createRef(),i.clearButtonRef=o.createRef(),i}return(0,a.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n,r=e.items,i=e.selectedItem,a="selectedItem"in e&&(null==i?void 0:i.uniqueItemId)!==(null===(n=t.selectedItem)||void 0===n?void 0:n.uniqueItemId);if(a||r!==t.initialItems){var o="selectedItem"in e?i:r.find(function(e){var n;return e.uniqueItemId===(null===(n=t.selectedItem)||void 0===n?void 0:n.uniqueItemId)}),l=t.filterInputValue;if(a)l=i?i.labelText||t.filterInputValue:"";else{var s=r.find(function(e){var n;return e.uniqueItemId===(null===(n=t.selectedItem)||void 0===n?void 0:n.uniqueItemId)});s&&(l=s.labelText&&!t.filterMode?s.labelText:t.filterInputValue)}
7return{selectedItem:o,filteredItems:r,filterInputValue:l,filterMode:t.filterMode,initialItems:r}}return null},t.prototype.componentDidUpdate=function(e){JSON.stringify(this.props.items)!==JSON.stringify(e.items)&&this.setState({computedItems:this.props.items}),void 0===this.props.selectedItem&&void 0!==e.selectedItem&&this.setState({selectedItem:null,filterInputValue:""})},t.prototype.isOutsideClick=function(e){return!!this.toggleButtonRef&&this.toggleButtonRef.current.contains(e.target)},t.prototype.render=function(){var e,t=this,n=this.state,r=n.filteredItems,i=n.filterMode,l=n.showPopover,s=n.focusedDescendantId,u=n.filterInputValue,p=n.selectedItem,m=n.computedItems,g=this.props,C=g.id,P=g.className;g.theme;var N=g.labelText,E=g.optionalText,A=g.hintText;g.onItemSelectionChange;var z=g.visualPlaceholder,D=g.noItemsText;g.defaultSelectedItem;var B=g.onChange,R=g.onChangeWithoutDebounce;g.onBlur;var F=g.debounce,M=g.loading,L=g.loadingText,V=g.status,U=g.statusText;g.selectedItem;var H=g.clearButtonLabel,W=g.ariaOptionsAvailableText,q=g.ariaOptionsAvailableTextFunction;g.onItemSelect;var G=g.disabled,K=g.allowItemAddition,$=g.itemAdditionHelpText,X=g.tooltipComponent;g.items,g.forwardedRef;var Q=g.listProps,Z=g.popoverClassName,Y=g.style,J=g.fullWidth,ee=(0,a.Tt)(g,["id","className","theme","labelText","optionalText","hintText","onItemSelectionChange","visualPlaceholder","noItemsText","defaultSelectedItem","onChange","onChangeWithoutDebounce","onBlur","debounce","loading","loadingText","status","statusText","selectedItem","clearButtonLabel","ariaOptionsAvailableText","ariaOptionsAvailableTextFunction","onItemSelect","disabled","allowItemAddition","itemAdditionHelpText","tooltipComponent","items","forwardedRef","listProps","popoverClassName","style","fullWidth"]),et=(0,b.yQ)(ee)[1],en=s?"".concat(C,"-").concat(s):"",er="".concat(C,"-popover"),ei=i?r:m;return o.createElement(d.BX,(0,a.Cl)({},et,{className:c()(k,P,((e={})[O.valueSelected]=!!p,e[O.open]=l,e[O.error]="error"===V,e[O.fullWidth]=J,e)),style:Y}),o.createElement(h.S,{waitFor:F},function(e){return o.createElement(v.Z,{inputElementContainerProps:{role:"combobox","aria-haspopup":"listbox","aria-owns":er,"aria-expanded":l},"aria-activedescendant":en,id:C,"aria-controls":er,labelText:N,optionalText:E,hintText:A,items:m,onFilter:function(e){t.state.filterMode&&t.setState(function(t){var n=t.focusedDescendantId;return e.some(function(e){return e.uniqueItemId===n})||(n=null),{filteredItems:e,focusedDescendantId:n}})},filterFunc:t.filter,forwardedRef:t.filterInputRef,onFocus:function(){t.preventShowPopoverOnInputFocus||t.setState({showPopover:!0}),t.preventShowPopoverOnInputFocus=!1},onClick:function(){t.focusToInputAndSelectText(),t.setState({showPopover:!0})},onKeyDown:t.handleKeyDown,onBlur:t.handleBlur,value:u,onChange:function(n){B&&e(B,n),R&&R(n),t.handleOnChange(n)},visualPlaceholder:p?"":z,status:V,statusText:U,disabled:G,tooltipComponent:X,"data-floating-ui-placement":t.state.popoverPlacement},!!p&&o.createElement(d.BX,{className:O.clearButtonWrapper},o.createElement(w.s,{forwardedRef:t.clearButtonRef,onClick:function(){return t.handleItemSelection(null)},onBlur:t.handleBlur,label:H,disabled:G})),o.createElement(T.j,{open:l,ref:t.toggleButtonRef,onClick:function(e){e.preventDefault(),t.setState(function(e){return{showPopover:!e.showPopover}}
7),t.preventShowPopoverOnInputFocus=!0,t.focusToInputAndSelectText()},"aria-hidden":!0,tabIndex:-1,disabled:G}))}),l&&o.createElement(f.A,{sourceRef:this.filterInputRef,matchWidth:!0,onKeyDown:this.handleKeyDown,onClickOutside:function(e){t.isOutsideClick(e)||t.setState({showPopover:!1})},className:Z},o.createElement(f.g,null,function(e){return t.updatePopoverPlacement(null==e?void 0:e.popoverPlacement),o.createElement(I._,(0,a.Cl)({id:er,ref:t.popoverListRef,focusedDescendantId:en,popoverPlacement:null==e?void 0:e.popoverPlacement},Q),o.createElement(o.Fragment,null,ei.length>0&&!M&&ei.map(function(e){var n,r=e.uniqueItemId===s;return o.createElement(_.e,(0,a.Cl)({hasKeyboardFocus:r,key:"".concat(e.uniqueItemId,"_").concat(e.uniqueItemId===(null==p?void 0:p.uniqueItemId)),id:"".concat(C,"-").concat(e.uniqueItemId),checked:e.uniqueItemId===(null==p?void 0:p.uniqueItemId),disabled:e.disabled,onClick:function(){t.handleItemSelection(e)},hightlightQuery:i?null===(n=t.filterInputRef.current)||void 0===n?void 0:n.value:""},e.listItemProps),e.labelText)}),0===ei.length&&!K&&!M&&o.createElement(S.B,null,D),M&&o.createElement(S.B,{className:"loading"},o.createElement(x.k,{status:"loading",variant:"small",textAlign:"right",text:L})),""!==u&&!t.inputValueInItems()&&K&&!M&&o.createElement(j.A,{hintText:$,hasKeyboardFocus:u===s,id:"".concat(C,"-").concat(u.toLowerCase()),onClick:function(){var e={labelText:u,uniqueItemId:u.toLowerCase()};t.handleItemSelection(e)}},u)))})),o.createElement(y.s,{"aria-live":"polite","aria-atomic":"true"},this.state.filterMode&&!M?q?q(ei.length):"".concat(ei.length," ").concat(W):""),o.createElement(y.s,{"aria-live":"polite","aria-atomic":"true",id:"".concat(C,"-loading-announce")},M?L:""))},t}(o.Component),N=(0,l.I4)(function(e){e.globalMargins;var t=(0,a.Tt)(e,["globalMargins"]);return o.createElement(P,(0,a.Cl)({},t))}).withConfig({componentId:"sc-t1n3a2-0"})(i||(i=(0,a.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t=e.theme,n=e.globalMargins,i=(0,a.Tt)(e,["theme","globalMargins"]),o=(0,b.yQ)(i)[0],s=(0,u.m8)(n.singleSelect,o);return(0,l.AH)(r||(r=(0,a.ue)(["\n  ","\n  ","\n  ","\n  ","\n  width: 290px;\n\n  &.fi-single-select {\n    & .fi-filter-input_input {\n      padding-right: 36px;\n    }\n\n    &--value-selected {\n      & .fi-filter-input_input {\n        padding-right: 73px;\n      }\n    }\n\n    &--full-width {\n      width: 100%;\n    }\n  }\n\n  &.fi-single-select--open {\n    & .fi-filter-input_input {\n      border-bottom: 0;\n      border-bottom-left-radius: 0;\n      border-bottom-right-radius: 0;\n\n      &[data-floating-ui-placement^='top'] {\n        border-top-left-radius: 0;\n        border-top-right-radius: 0;\n        border-bottom-left-radius: ",";\n        border-bottom-right-radius: ",";\n        border-top: 0;\n        border-bottom: 1px solid ",";\n      }\n    }\n\n    .fi-filter-input--error {\n      .fi-filter-input_input {\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 2px solid ",";\n        }\n      }\n    }\n  }\n"],["\n  ","\n  ","\n  ","\n  ","\n  width: 290px;\n\n  &.fi-single-select {\n    & .fi-filter-input_input {\n      padding-right: 36px;\n    }\n\n    &--value-selected {\n      & .fi-filter-input_input {\n        padding-right: 73px;\n      }\n    }\n\n    &--full-width {\n      width: 100%;\n    }\n  }\n\n  &.fi-single-select--open {\n    & .fi-filter-input_input {\n      border-bottom: 0;\n      border-bottom-left-radius: 0;\n      border-bottom-right-radius: 0;\n\n      &[data-floating-ui-placement^='top'] {\n        border-top-left-radius: 0;\n        border-top-right-radius: 0;\n        border-bottom-left-radius: ",";\n        border-bottom-right-radius: ",";\n        border-top: 0;\n        border-bottom: 1px solid ",";\n      }\n    }\n\n    .fi-filter-input--error {\n      .fi-filter-input_input {\n        &[data-floating-ui-placement^='top'] {\n          border-bottom: 2px solid ",";\n        }\n      }\n    }\n  }\n"])),(0,C.gx)(t)("bodyText"),(0,b.jE)(s),(0,b.jE)(o,!0),(0,C.Ww)(),t.radiuses.basic,t.radiuses.basic,t.colors.depthDark3,t.colors.alertBase)}),E=(0,o.forwardRef)(function(e,t){var n=e.id,r=(0,a.Tt)(e,["id"]);return o.createElement(g.ME,null,function(e){var i=e.margins;return o.createElement(m.iN,null,function(e){var l=e.suomifiTheme;return o.createElement(p.T,{id:n},function(e){return o.createElement(N,(0,a.Cl)({theme:l,id:e,globalMargins:i,forwardedRef:t},r))})})})});E.displayName="SingleSelect"},41761(e,t,n){"use strict";n.d(t,{T:()=>N});var r,i,a,o,l=n(31635),s=n(96540),c=n(63679),d=n(80325),u=n.n(d),p=n(21939),h=n(89),f=n(20619),m=n(41849),g=n(521),b=n(30596),v=(0,c.AH)(r||(r=(0,l.ue)(["\n  ","\n  ","\n  ","\n  ","\n  display: inline-block;\n  max-width: 100%;\n"],["\n  ","\n  ","\n  ","\n  ","\n  display: inline-block;\n  max-width: 100%;\n"])),b.R.normalize.html,b.R.normalize.textarea,(0,b.e)(["::-webkit-input-placeholder"]),b.R.common),x=(0,c.I4)(function(e){var t=e.forwardedRef,n=(0,l.Tt)(e,["forwardedRef"]);return s.createElement("textarea",(0,l.Cl)({},n,{ref:t}))}).withConfig({componentId:"sc-vdx405-0"})(i||(i=(0,l.ue)(["\n  ","\n"],["\n  ","\n"])),v),y=n(58499),w=n(92569),I=n(98602),_=n(59225),S=n(53058),T=n(73089),C=n(43119),j="fi-textarea",k={fullWidth:"".concat(j,"--full-width"),textareaContainer:"".concat(j,"_textarea-element-container"),textarea:"".concat(j,"_textarea"),resizeHorizontal:"".concat(j,"_textarea-resize--horizontal"),resizeBoth:"".concat(j,"_textarea-resize--both"),resizeNone:"".concat(j,"_textarea-resize--none"),disabled:"".concat(j,"--disabled"),error:"".concat(j,"--error"),statusTextHasContent:"".concat(j,"_statusText--has-content"),bottomWrapper:"".concat(j,"_bottom-wrapper"),characterCounter:"".concat(j,"_
7character-counter"),characterCounterError:"".concat(j,"_character-counter--error")},O=function(e){var t,n,r,i,a=e.id,o=e.className,c=e.disabled,d=void 0!==c&&c,h=e.children,f=e.onClick,m=e.onChange,b=e.labelMode,v=e.labelText,S=e.hintText,O=e.status,P=e.statusText,N=e.visualPlaceholder,E=e.resize,A=e.optionalText,z=e["aria-describedby"],D=e.fullWidth,B=e.style,R=e.forwardedRef,F=e.statusTextAriaLiveMode,M=e.tooltipComponent,L=e.characterLimit,V=e.ariaCharactersRemainingText,U=e.ariaCharactersExceededText,H=(0,l.Tt)(e,["id","className","disabled","children","onClick","onChange","labelMode","labelText","hintText","status","statusText","visualPlaceholder","resize","optionalText","aria-describedby","fullWidth","style","forwardedRef","statusTextAriaLiveMode","tooltipComponent","characterLimit","ariaCharactersRemainingText","ariaCharactersExceededText"]),W=(0,T.yQ)(H)[1],q=(0,s.useState)(0),G=q[0],K=q[1],$=(0,s.useState)(""),X=$[0],Q=$[1],Z=(0,s.useState)(null),Y=Z[0],J=Z[1],ee=(0,s.useState)(!1),et=ee[0],en=ee[1];(0,s.useEffect)(function(){return en(!0),function(){en(!1)}},[]);var er=(0,s.useRef)(null),ei=d?{}:{onMouseDown:f},ea=P?"".concat(a,"-statusText"):void 0,eo=S?"".concat(a,"-hintText"):void 0;return(0,s.useEffect)(function(){var e,t;void 0!==L&&(null===(e=er.current)||void 0===e?void 0:e.value.length)&&K(null===(t=er.current)||void 0===t?void 0:t.value.length)},[]),s.createElement(g.BX,{className:u()(j,o,((t={})[k.disabled]=!!d,t[k.error]="error"===O&&!d,t[k.fullWidth]=D,t)),style:B},s.createElement(w.J,{htmlFor:a,labelMode:b,optionalText:A,tooltipComponent:M},v),s.createElement(I.X,{id:eo},S),s.createElement(g.BX,{className:k.textareaContainer},s.createElement(x,(0,l.Cl)({id:a,className:u()(k.textarea,((n={})[k.resizeBoth]="both"===E,n[k.resizeHorizontal]="horizontal"===E,n[k.resizeNone]="none"===E,n)),disabled:d,defaultValue:h,forwardedRef:(0,y.JV)(er,R||null),placeholder:N,"aria-invalid":"error"===O},(0,p.p)("aria-describedby",[ea,eo,z]),{onChange:function(e){if(Y&&clearTimeout(Y),void 0!==L&&V&&U){var t=e.target.value.length;K(t),J(setTimeout(function(){et&&Q(t<=L?V(L-t):U(t-L))},1500))}m&&m(e)}},W,ei))),s.createElement(g.BX,{className:k.bottomWrapper},s.createElement(_.E,{id:ea,className:u()(((r={})[k.statusTextHasContent]=!!P,r)),status:O,disabled:d,ariaLiveMode:void 0===F?"assertive":F},L&&s.createElement(C.s,null,X),P),L&&s.createElement(g.BX,{className:u()(k.characterCounter,((i={})[k.characterCounterError]=G>L,i))},"".concat(G,"/").concat(L))))},P=(0,c.I4)(function(e){e.theme,e.globalMargins;var t=(0,l.Tt)(e,["theme","globalMargins"]);return s.createElement(O,(0,l.Cl)({},t))}).withConfig({componentId:"sc-fz1c6p-0"})(o||(o=(0,l.ue)(["\n  ","\n"],["\n  ","\n"])),function(e){var t=e.theme,n=e.globalMargins,r=(0,l.Tt)(e,["theme","globalMargins"]),i=(0,T.yQ)(r)[0],o=(0,y.m8)(n.textarea,i);return(0,c.AH)(a||(a=(0,l.ue)(["\n  ","\n  ","\n  ","\n  ",";\n  ","\n  color: ",";\n  width: 290px;\n\n  &.fi-textarea {\n    display: flex;\n    flex-direction: column;\n\n    & .fi-textarea_bottom-wrapper {\n      display: flex;\n      justify-content: space-between;\n    }\n\n    & .fi-textarea_character-counter {\n      ",";\n      color: ",";\n      font-size: 14px;\n      line-height: 20px;\n      flex: none;\n      margin-top: ",";\n\n      &.fi-textarea_character-counter--error {\n        color: ",";\n        ",";\n        font-size: 14px;\n        line-height: 20px;\n      }\n    }\n\n    & .fi-textarea_statusText--has-content {\n      margin-top: ",";\n    }\n\n    & .fi-textarea_textarea-element-container {\n      &:focus-within {\n        "," /* For high contrast mode */\n        position: relative;\n\n        &::after {\n          ","\n        }\n      }\n    }\n\n    & .fi-label {\n      margin-bottom: ",";\n    }\n\n    & .fi-hint-text {\n      margin-bottom: ",";\n    }\n\n    & .fi-textarea_textarea {\n      display: block;\n      resize: vertical;\n      border-radius: 2px;\n      border: 1px solid ",";\n      box-shadow: ",";\n      padding: 8px 14px 13px 10px;\n      ",";\n      width: 100%;\n      background-color: ",";\n\n      &:focus {\n        outline: none;\n      }\n\n      &::placeholder {\n        font-style: italic;\n        color: ",";\n        opacity: 1;\n      }\n\n      &-resize--horizontal {\n        resize: horizontal;\n      }\n\n      &-resize--both {\n        resize: both;\n      }\n\n      &-resize--none {\n        resize: none;\n      }\n    }\n\n    & .fi-status-text {\n      display: block;\n      line-height: 18px;\n    }\n\n    &.fi-textarea--disabled {\n      color: ",";
7\n      cursor: not-allowed;\n\n      & .fi-textarea_textarea {\n        background-color: ",";\n      }\n    }\n\n    &.fi-textarea--error {\n      & .fi-textarea_textarea {\n        border: 2px solid ",";\n      }\n    }\n  }\n\n  &.fi-textarea--full-width {\n    width: 100%;\n  }\n"],["\n  ","\n  ","\n  ","\n  ",";\n  ","\n  color: ",";\n  width: 290px;\n\n  &.fi-textarea {\n    display: flex;\n    flex-direction: column;\n\n    & .fi-textarea_bottom-wrapper {\n      display: flex;\n      justify-content: space-between;\n    }\n\n    & .fi-textarea_character-counter {\n      ",";\n      color: ",";\n      font-size: 14px;\n      line-height: 20px;\n      flex: none;\n      margin-top: ",";\n\n      &.fi-textarea_character-counter--error {\n        color: ",";\n        ",";\n        font-size: 14px;\n        line-height: 20px;\n      }\n    }\n\n    & .fi-textarea_statusText--has-content {\n      margin-top: ",";\n    }\n\n    & .fi-textarea_textarea-element-container {\n      &:focus-within {\n        "," /* For high contrast mode */\n        position: relative;\n\n        &::after {\n          ","\n        }\n      }\n    }\n\n    & .fi-label {\n      margin-bottom: ",";\n    }\n\n    & .fi-hint-text {\n      margin-bottom: ",";\n    }\n\n    & .fi-textarea_textarea {\n      display: block;\n      resize: vertical;\n      border-radius: 2px;\n      border: 1px solid ",";\n      box-shadow: ",";\n      padding: 8px 14px 13px 10px;\n      ",";\n      width: 100%;\n      background-color: ",";\n\n      &:focus {\n        outline: none;\n      }\n\n      &::placeholder {\n        font-style: italic;\n        color: ",";\n        opacity: 1;\n      }\n\n      &-resize--horizontal {\n        resize: horizontal;\n      }\n\n      &-resize--both {\n        resize: both;\n      }\n\n      &-resize--none {\n        resize: none;\n      }\n    }\n\n    & .fi-status-text {\n      display: block;\n      line-height: 18px;\n    }\n\n    &.fi-textarea--disabled {\n      color: ",";\n      cursor: not-allowed;\n\n      & .fi-textarea_textarea {\n        background-color: ",";\n      }\n    }\n\n    &.fi-textarea--error {\n      & .fi-textarea_textarea {\n        border: 2px solid ",";\n      }\n    }\n  }\n\n  &.fi-textarea--full-width {\n    width: 100%;\n  }\n"])),(0,S.ND)(t),(0,S.gx)(t)("bodyText"),(0,T.jE)(o),(0,T.jE)(i,!0),(0,S.Ww)(),t.colors.blackBase,(0,S.gx)(t)("bodyTextSmall"),t.colors.blackBase,t.spacing.xxs,t.colors.alertBase,(0,S.gx)(t)("bodySemiBoldSmall"),t.spacing.xxs,t.focuses.highContrastFocus,t.focuses.absoluteFocus,t.spacing.xs,t.spacing.xs,t.colors.depthDark3,t.shadows.actionElementBoxShadow,t.typography.bodyTextSmall,t.colors.whiteBase,t.colors.depthDark2,t.colors.depthBase,t.colors.depthLight3,t.colors.alertBase)}),N=(0,s.forwardRef)(function(e,t){var n=e.id,r=(0,l.Tt)(e,["id"]);return s.createElement(m.ME,null,function(e){var i=e.margins;return s.createElement(f.iN,null,function(e){var a=e.suomifiTheme;return s.createElement(h.T,{id:n},function(e){return s.createElement(P,(0,l.Cl)({theme:a,id:e,globalMargins:i,forwardedRef:t},r))})})})});N.displayName="Textarea"},14068(e){e.exports={id:"icons-face-happy-usage",viewBox:"0 0 24 24",url:"/assets/icons-sprite.60b5bc42fae393a194e04aa3ee5329dd.svg#icons-face-happy",toString:function(){return this.url}}},567(e){e.exports={id:"icons-face-neutral-usage",viewBox:"0 0 24 24",url:"/assets/icons-sprite.60b5bc42fae393a194e04aa3ee5329dd.svg#icons-face-neutral",toString:function(){return this.url}}},81298(e){e.exports={id:"icons-face-sad-usage",viewBox:"0 0 24 24",url:"/assets/icons-sprite.60b5bc42fae393a194e04aa3ee5329dd.svg#icons-face-sad",toString:function(){return this.url}}},78476(e){e.exports={id:"icons-lukko-usage",viewBox:"0 0 20 24",url:"/assets/icons-sprite.60b5bc42fae393a194e04aa3ee5329dd.svg#icons-lukko",toString:function(){return this.url}}},86008(e){e.exports={id:"icons-route-planner-reittihaku-tulokset-aloituspiste-usage",viewBox:"0 0 24 24",url:"/assets/icons-sprite.60b5bc42fae393a194e04aa3ee5329dd.svg#icons-route-planner-reittihaku-tulokset-aloituspiste",toString:function(){return this.url}}},64864(e,t,n){"use strict";n.d(t,{x:()=>o});var r=n(74848),i=n(96540),a=n(33805);let o=(0,i.forwardRef)((e,t)=>{var n,o;let{children:l,className:s}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children","className"]),[d,u]=(0,i.useState)(0),p=(0,i.useCallback)(()=>{u(-1)},[]);return(0,r.jsx)(a.D,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({className:`focus-styled-heading ${s||""}`},c),o=o={ref:t,tabIndex:d,onBlur:p,children:l},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
7)(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))});o.displayName="FocusableHeading"},50159(e,t,n){"use strict";n.d(t,{Qe:()=>T,T_:()=>y,ab:()=>x});var r=n(74848),i=n(96540),a=n(15828),o=n(41751),l=n(94364),s=n(26994),c=n(75214),d=n(34455),u=n(6259),p=n(59168),h=n(17727),f=n(17761),m=n(30318),g=n(1945),b=n(51726);let v={};function x(e){if(e in v)return(0,s.Pl)(v[e]);{let t={type:"illustrative",icon:e};return v[e]=t,t}}let y={type:"signLanguage"},w=(0,i.memo)(e=>{switch(e.icon.type){case"illustrative":return(0,r.jsx)(g.N,{icon:e.icon.icon,width:70,highlightColor:e.colors.highlightColor,baseColor:e.colors.baseColor});case"signLanguage":return(0,r.jsx)(l.x,{width:70,padding:10});default:(0,s.xb)(e.icon)}}),I={baseColor:a.P.colors.blackBase,highlightColor:a.P.colors.accentBase},_={"developer-service":{baseColor:a.P.colors.brandBase,highlightColor:m.II.developerTurquoise},service:I,shortcut:I,shortcut_citizen:I,shortcut_company:{baseColor:a.P.colors.blackBase,highlightColor:a.P.colors.accentSecondary}},S=(0,i.memo)(e=>{var t;let n=null===(t=e.allowCompact)||void 0===t||t,a=(0,i.useMemo)(()=>_[e.variant],[e.variant]),l=(0,p.A)({"link-box":!0,"link-box-service":function(e){switch(e){case"shortcut":case"shortcut_citizen":case"shortcut_company":return!1;case"service":case"developer-service":return!0}}(e.variant),"link-box-shortcut":function(e){switch(e){case"shortcut":case"shortcut_citizen":case"shortcut_company":return!0;case"service":case"developer-service":return!1}}(e.variant),"link-box-developer-service":"developer-service"===e.variant,"allow-compact":n,"disallow-compact":!n}),s=(0,i.useMemo)(()=>(0,r.jsxs)(r.Fragment,{children:[null!=e.icon?(0,r.jsx)("div",{className:"link-box-icon",children:(0,r.jsx)(w,{icon:e.icon,colors:a})}):null,(0,r.jsxs)("div",{className:"link-box-content",children:[(0,r.jsx)(o.Q,{variant:"h3",className:"link-box-title","aria-hidden":!0,children:e.title}),(0,r.jsxs)(b.b,{children:[e.linkLabel,e.validLink&&e.externalLink?(0,r.jsx)(u.C,{className:"external-link-icon"}):null]})]})]}),[e.icon,e.linkLabel,e.validLink,e.externalLink,e.title,a]);return(0,r.jsxs)("div",{className:"link-box-container",children:[(0,r.jsx)(o.Q,{variant:"h3",className:"visually-hidden",children:e.title}),(0,r.jsx)(c.N_,{className:l,href:e.linkUrl,hideExternalLinkIcon:!0,children:s})]})});function T(e){let t=(0,i.useContext)(d.BR),n=(0,f.rd)(),a=("function"==typeof e.linkTarget?e.linkTarget:(0,h.m2)(e.linkTarget,n))(t),o=(0,c.lU)(a,t),l=(0,c.i9)(a,t);return(0,r.jsx)(S,{variant:e.variant,allowCompact:e.allowCompact,icon:e.icon,title:e.title,linkLabel:e.linkLabel,linkUrl:a,validLink:o,externalLink:l})}},18780(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(74848);n(96540);let i=n(59921),a=new Map;for(let e of i.keys()){let t=i(e);a.set(t.id,e)}function o(e){let{icon:t,className:n="default-icon"}=e;return(0,r.jsx)("span",{className:"icon","aria-hidden":"true",children:(0,r.jsx)("svg",{role:"presentation",className:n,focusable:"false",viewBox:t.viewBox,children:(0,r.jsx)("use",{xlinkHref:t.url})})})}function l({icon:e,className:t}){let n=function(e){let t=a.get(`${e}-usage`);return t?i(t):null}(e);return null==n?(console.error("Icon not found with symbolId: "+e),null):(0,r.jsx)(o,{icon:n,className:null!=t?t:"default-icon"})}},46344(e,t,n){"use strict";n.d(t,{n:()=>h});var r=n(74848),i=n(96540),a=n(94668),o=n(41751),l=n(75214),s=n(46942),c=n.n(s),d=n(26994),u=n(51726);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}let h=(0,i.memo)(e=>{var t,n,i,s,h,f,m,g,b;let v={"data-track-content":"","data-content-name":e.title,"data-content-piece":"spotlight/"+e.title,"data-content-target":e.baseUrl+e.href},x=e.imgFetchPriority?{fetchpriority:e.imgFetchPriority}:{};return(0,r.jsx)("li",{children:(0,r.jsxs)("div",(m=p({className:"spotlight"},v),g=g={children:[(0,r.jsx)(o.Q,{variant:"h3",as:"h2",className:"visually-hidden",children:e.title}),(0,r.jsxs)(l.N_,{href:e.href,openInNewWindow:e.openInNewWindow,hideExternalLinkIcon:!0,children:[(0,r.jsxs)("div",{className:"spotlight-image",children:[(0,r.jsx)("img",p({src:null!==(s=null===(t=e.image)||void 0===t?void 0:t.src)&&void 0!==s?s:void 0,width:null!==(h=null===(n=e.image)||void 0===n?void 0:n.width)&&void 0!==h?h:void 0,height:null!==(f=null===(i=e.image)||void 0===i?void 0:i.height)&&void 0!==f?f:void 0,alt:"","aria-hidden":!0},x)),null!=e.imageText?(0,r.jsx)("div",{className:c()("spotlight-image-text",null==(b=e.imageTextType)?""
7:"SIHARD"===b.type?"sihard-"+b.sihardType:(0,d.xb)(b.type)),"aria-hidden":!0,children:e.imageText}):null]}),(0,r.jsxs)("div",{className:"spotlight-item-text",children:[(0,r.jsx)(o.Q,{variant:"h3",as:"h2","aria-hidden":!0,children:e.title}),(0,r.jsxs)(u.b,{children:[(0,r.jsx)("span",{className:"spotlight-link-text",children:e.linkLabel}),e.externalLink?(0,r.jsx)(a.t,{className:"external-link-icon"}):null]})]})]})]},Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(g)).forEach(function(e){Object.defineProperty(m,e,Object.getOwnPropertyDescriptor(g,e))}),m))})})},20868(e,t,n){"use strict";n.d(t,{$:()=>L});var r=n(74848),i=n(96540),a=n(72477),o=n(9464),l=n(5303),s=n(73131),c=n(41761),d=n(70002),u=n(41751),p=n(34455),h=n(83046),f=n(74471),m=n(18780),g=n(77369);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){b(e,t,n[t])})}return e}function x(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}class y{serialize(e,t){return this.lookupSerializer(t).serialize(e)}deserialize(e,t){return this.lookupSerializer(t).deserialize(e)}registerSerializer(e,t){this.serializers[e]=t}registerEnumSerializer(e,t){this.registerSerializer(e,I({serialize:e=>t[e],deserialize:e=>t[e]}))}registerClassSerializer(e,t){this.registerSerializer(e,I({serialize:e=>Object.fromEntries(Object.entries(t).map(([t,n])=>[t,this.serialize(e[t],n)])),deserialize:e=>Object.fromEntries(Object.entries(t).map(([t,n])=>[t,this.deserialize(e[t],n)]))}))}registerIdentitySerializer(e){this.registerSerializer(e,w)}registerDiscriminatedUnionSerializer(e,t,n){let r=this;this.registerSerializer(e,I({serialize(e){let i=e[t];return x(v({},r.lookupSerializer(n[i]).serialize(e)),{[t]:i})},deserialize(e){let i=e[t];return x(v({},r.lookupSerializer(n[i]).deserialize(e)),{[t]:i})}}))}lookupSerializer(e){var t,n;if(!e)throw Error("no type given");if(e.endsWith("[]")){let n=e.substring(0,e.length-2);return t=this.lookupSerializer(n),I({serialize:e=>e.map(e=>t.serialize(e)),deserialize:e=>e.map(e=>t.deserialize(e))})}let r=/^Record<string,\s*(.+)>$/.exec(e);if(r){return n=this.lookupSerializer(r[1]),I({serialize:e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,n.serialize(t)])),deserialize:e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,n.deserialize(t)]))})}let i=this.serializers[e];if(i)return i;throw Error(`could not find serializer for type '${e}'`)}constructor(){b(this,"baseUrl",""),b(this,"serializers",{}),this.registerIdentitySerializer("any"),this.registerIdentitySerializer("string"),this.registerIdentitySerializer("number"),this.registerIdentitySerializer("boolean")}}let w={serialize:e=>e,deserialize:e=>e};function I(e){return{serialize:t=>null===t?null:void 0===t?void 0:e.serialize(t),deserialize:t=>null===t?null:void 0===t?void 0:e.deserialize(t)}}class _{url(e){return this.buildUrl(e.uriTemplate,e.pathVariables)+function(e){let t=[],n=(e,n)=>{null!=n&&t.push(`${e}=${encodeURIComponent(n)}`)};for(let[t,r]of Object.entries(e||{})){let e=encodeURIComponent(t);if(Array.isArray(r))for(let t of r)n(e,t);else n(e,r)}return t.length>0?"?"+t.join("&"):""}(e.requestParams)}serialize(e,t){return this.config.serialize(e,t)}deserialize(e,t){return this.config.deserialize(e,t)}buildUrl(e,t){return this.config.baseUrl+e.replace(/{([^}]+)}/g,(e,n)=>t[n])}constructor(e){b(this,"config",void 0),this.config=e}}class S extends _{buildRequestInit(e){let t=null!=e.requestBody,n="application/json";return{method:e.method,headers:t?{Accept:n,"Content-Type":n}:{Accept:n},credentials:"same-origin",body:t?JSON.stringify(e.requestBody):null}}request(e){let t=this.buildRequestInit(e);return fetch(this.url(e),t).then(t=>{let n=e.responseType;return t.ok?t.text().then(e=>n?this.config.deserialize(e?JSON.parse(e):null,n):e):Promise.reject(t)})}constructor(e){super(e)}}var T=n(93443);let C=new class extends y{constructor(){super(),this.registerIdentitySerializer("ApplicationType"),this.registerIdentitySerializer("DocumentState"),this.registerIdentitySerializer("FeedbackDeviceType"),this.registerIdentitySerializer("FeedbackLevel"),this.registerIdentitySerializer("Language"),this.registerIdentitySerializer("RedirectContentType"),this.registerIdentitySerializer("StaticFeedbackTargetType"),this.registerIdentitySerializer("TargetGroup"),this.registerClassSerializer("CreateFeedbackDTO",{deviceType:"FeedbackDeviceType",level:"FeedbackLevel",target:"FeedbackTargetDTO"}),this.registerClassSerializer("FeedbackDTO",{id:"UUID"}),this.registerClassSerializer("RedirectContentDTO",{sources:"RedirectSourceDTO[]",target:"RedirectEntityDetailsDTO"}),this.registerClassSerializer("RedirectEntityDetailsDTO",{lang:"Language",modified:"LocalDateTime",name:"string",sihaEntity:"SihaEntityTarget",state:"DocumentState",type:"RedirectContentType"}),this.registerClassSerializer("RedirectPathsDTO",{sourceApplication:"ApplicationType",sourceUrl:"string",targetApplication:"ApplicationType",targetUrl:"string"}),this.registerClassSerializer("RedirectPathsListDTO",{redirectPaths:"RedirectPathsDTO[]",version:"string"}),this.registerClassSerializer("UpdateFeedbackLevelDTO",{id:"UUID",level:"FeedbackLevel"}),this.registerClassSerializer("UpdateFeedbackTextDTO",{feedback:"string",id:"UUID"}),this.registerClassSerializer("AnnouncementFeedbackTarget",{id:"number"}),this.registerClassSerializer("InstructionFeedbackTarget",{id:"number"}),this.registerClassSerializer("LandingPageFeedbackTarget",{id:"number"}),this.registerClassSerializer("PublicationFeedbackTarget",{id:"string"}),this.registerClassSerializer("RedirectContentSourceDTO",{details:"RedirectEntityDetailsDTO",sources:"RedirectSourceDTO[]"}),this.registerClassSerializer("RedirectUrlSourceDTO",{url:"string"}),this.registerClassSerializer("ServiceCatalogFeedbackTarget",{id:"number"}),this.registerClassSerializer("ServiceFeedbackTarget",{id:"number"}),this.registerClassSerializer("SihaAnnouncementTarget",{announcementId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaBasicContentTarget",{contentMetadataId:"UUID",versionNumber:"number"}),this.registerClassSerializer("SihaContentModuleTarget",{contentMetadataId:"UUID",versionNumber:"number"}),this.registerClassSerializer("SihaDeveloperServiceTarget",{developerServiceId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaEventTarget",{eventId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaInstructionGroupTarget",{instructionGroupId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaInstructionTarget",{instructionId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaLandingPageTarget",{landingPageId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaProcessChartTarget",{processChartId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaServiceCatalogTarget",{serviceCatalogId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaServiceGuideTarget",{contentMetadataId:"UUID",versionNumber:"number"}),this.registerClassSerializer("SihaSihardChecklistPartTarget",{sihardChecklistPartId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSihardPagePartTarget",{sihardPagePartId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSihardPageTarget",{sihardPageId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSihardSectionTarget",{sihardSectionTargetId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSihardTarget",{sihardId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSihardTermTarget",{sihardTermId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaSpotlightTarget",{spotlightId:"number"}),this.registerClassSerializer("SihaSubtopicTarget",{subtopicId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaThemeTarget",{themeId:"number",versionNumber:"number"}),this.registerClassSerializer("SihaTopicGroupTarget",{targetGroup:"TargetGroup",versionNumber:"number"}),this.registerClassSerializer("SihaTopicTarget",{topicId:"number",versionNumber:"number"}),this.registerClassSerializer("SihardCheckListFeedbackTarget",{id:"number"}),this.registerClassSerializer("SihardPageFeedbackTarget",{id:"number"}),this.registerClassSerializer("SihardTerminologyFeedbackTarget",{id:"number"}),this.registerClassSerializer("StaticFeedbackTarget",{language:"Language",targetType:"StaticFeedbackTargetType"}),this.registerClassSerializer("SubtopicFeedbackTarget",{id:"number"}),this.registerClassSerializer("TargetGroupPageFeedbackTarget",{id:"number"}),this.registerDiscriminatedUnionSerializer("FeedbackTargetDTO","type",{ANNOUNCEMENT:"AnnouncementFeedbackTarget",INSTRUCTION:"InstructionFeedbackTarget",LANDING_PAGE:"LandingPageFeedbackTarget",PUBLICATION:"PublicationFeedbackTarget",SERVICE:"ServiceFeedbackTarget",SERVICE_CATALOG:"ServiceCatalogFeedbackTarget",SIHARD_CHECKLIST:"SihardCheckListFeedbackTarget",SIHARD_PAGE:"SihardPageFeedbackTarget",SIHARD_TERMINOLOGY:"SihardTerminologyFeedbackTarget",STATIC:"StaticFeedbackTarget",SUBTOPIC:"SubtopicFeedbackTarget",TARGET_GROUP_PAGE:"TargetGroupPageFeedbackTarget"}),this.registerDiscriminatedUnionSerializer("RedirectSourceDTO","type",{ENTITY:"RedirectContentSourceDTO",URL:"RedirectUrlSourceDTO"}),this.registerDiscriminatedUnionSerializer("SihaEntityTarget","type",{Announcement:"SihaAnnouncementTarget",Basic:"SihaBasicContentTarget",ContentModule:"SihaContentModuleTarget",DeveloperService:"SihaDeveloperServiceTarget",Event:"SihaEventTarget",Instruction:"SihaInstructionTarget",InstructionGroup:"SihaInstructionGroupTarget",LandingPage:"SihaLandingPageTarget",ProcessChart:"SihaProcessChartTarget",ServiceCatalog:"SihaServiceCatalogTarget",ServiceGuide:"SihaServiceGuideTarget",Sihard:"SihaSihardTarget",SihardChecklistPart:"SihaSihardChecklistPartTarget",SihardPage:"SihaSihardPageTarget",SihardPagePart:"SihaSihardPagePartTarget",SihardSection:"SihaSihardSectionTarget",SihardTerm:"SihaSihardTermTarget",Spotlight:"SihaSpotlightTarget",Subtopic:"SihaSubtopicTarget",Theme:"SihaThemeTarget",Topic:"SihaTopicTarget",TopicGroup:"SihaTopicGroupTarget"})}};C.baseUrl=(0,T.$_)(),C.registerIdentitySerializer("LocalDate"),C.registerIdentitySerializer("LocalDateTime"),C.registerIdentitySerializer("UUID");let j=new class extends S{buildRequestInit(e){return(0,T.OV)(this.url(e),!0,super.buildRequestInit(e))}url(e){return(0,T.Ot)(super.url(e))}}(C),k=new class{create(e){return this.context.request({uriTemplate:"/api/public/sevifeedback",method:"POST",requestBody:this.context.serialize(e,"CreateFeedbackDTO"),responseType:"FeedbackDTO"})}updateLevel(e){return this.context.request({uriTemplate:"/api/public/sevifeedback/level",method:"PUT",requestBody:this.context.serialize(e,"UpdateFeedbackLevelDTO")})}updateText(e){return this.context.request({uriTemplate:"/api/public/sevifeedback/text",method:"PUT",requestBody:this.context.serialize(e,"UpdateFeedbackTextDTO")})}constructor(e){b(this,"context",void 0),this.context=e}}(j);var O=n(26994),P=n(97809),N=n(64864),E=n(42465);function A(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function z(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){A(a,r,i,o,l,"next",e)}function l(e){A(a,r,i,o,l,"throw",e)}o(void 0)})}}let D=0,B="form",R=void 0,F=void 0,M={suomifi:"inline_feedback_form_thanks_paragraph",developer:"developer_inline_feedback_form_thanks_paragraph"};function L({target:e}){let{translate:t}=(0,i.useContext)(p.ic),{applicationType:n}=(0,i.useContext)(p.wp),[a,o]=(0,h.i)(!1),[l]=(0,i.useState)(D++),s="inline_feedback_form_error_state",c="inline_feedback_form_too_many_requests_state",[d,u]=(0,i.useState)(null),[m,b]=(0,i.useState)(R),[v,x]=(0,i.useState)(!1),[y,w]=(0,i.useState)(null),[I,_]=(0,i.useState)(B),[S,T]=(0,i.useState)(""),[C,j]=(0,i.useState)(!1),[P,N]=(0,i.useState)(F),A="STATIC"===e.type?null:e.id,M="STATIC"!==e.type?null:e.targetType;(0,i.useEffect)(()=>{u(null),b(R),x(!1),w(null),_(B),T(""),j(!1),N(F)},[e.type,A,M]);let L=(0,g.vu)(),V=(0,p.lm)(),H=(0,i.useCallback)(t=>{z(function*(){u((yield k.create({level:t,target:e,deviceType:(0,E.p)(V)})).id)})()},[e,V]),W=(0,i.useCallback)(e=>{z(function*(){yield k.updateLevel({id:(0,O.Pl)(d),level:e})})()},[d]),q=(0,i.useCallback)(e=>{z(function*(){yield k.updateText({id:(0,O.Pl)(d),feedback:e})})()},[d]),G=(0,i.useCallback)(e=>e===y,[y]),K=(0,i.useCallback)(e=>G(e)?"default":"secondary",[G]),$=(0,i.useCallback)(e=>{b(void 0);try{null==y?(H(e),x(!0)):W(e),L((0,g.d$)(e)),w(e)}catch(e){throw"status"in e&&429===e.status?b(c):b(s),e}},[y,L,H,W]),X=(0,i.useCallback)(()=>{b(void 0);try{q((0,f.i)(S)?(0,f.a)(S):S),_("thanks")}catch(e){throw"status"in e&&429===e.status?b(c):b(s),e}},[q,S]),Q=(0,i.useCallback)(e=>{T(e.target.value)},[]);return(0,i.useEffect)(()=>{"thanks"===I&&a.current&&o()},[I,o,a]),(0,i.useEffect)(()=>{j((0,f.i)(S||"")),N(S.length>1e3?"inline_feedback_form_length_exceeded_error_state":void 0)},[S]),(0,r.jsx)(U,{translate:t,formState:I,formId:l,isOptionSelected:G,getButtonVariant:K,onOptionButtonClicked:$,
7successState:v,feedbackLevel:y,onTextAreaChanged:Q,textAreaErrorState:P,sanitizeWarning:C,errorState:m,onSendClicked:X,textAreaContent:S,headerRef:a,applicationType:n})}let V={POSITIVE:{text:"inline_feedback_form_option_positive",icon:"icons-face-happy"},NEUTRAL:{text:"inline_feedback_form_option_neutral",icon:"icons-face-neutral"},NEGATIVE:{text:"inline_feedback_form_option_negative",icon:"icons-face-sad"}},U=(0,i.memo)(e=>{let{translate:t,formState:n,formId:i,isOptionSelected:p,getButtonVariant:h,onOptionButtonClicked:f,successState:g,feedbackLevel:b,onTextAreaChanged:v,textAreaErrorState:x,sanitizeWarning:y,errorState:w,onSendClicked:I,textAreaContent:_,headerRef:S,applicationType:T}=e,C=`inlinefeedback-group-${i}`;return(0,r.jsxs)(a.e,{className:"siha-feedback-form-container",children:["form"===n&&(0,r.jsxs)(a.e,{className:"active-form-container",children:[(0,r.jsx)(u.Q,{className:"text-centered",id:C,variant:"h3",children:t("inline_feedback_form_form_heading")}),(0,r.jsx)(a.e,{className:"emoticon-button-container",role:"group","aria-labelledby":C,children:Object.keys(V).map(e=>{let n=p(e),i=V[e].icon;return(0,r.jsx)(o.$,{className:"emoticon-button",variant:h(e),onClick:()=>void f(e),"aria-pressed":n,children:(0,r.jsxs)("div",{className:"emoticon-button-label-wrapper",children:[(0,r.jsx)("div",{children:t(V[e].text)}),(0,r.jsx)("div",{className:n?"label-pressed":"label-unpressed","aria-hidden":!0,children:(0,r.jsx)(m.A,{icon:i})})]})},e)})}),(0,r.jsx)(l.f,{className:"text-center italic margin-top-xs",children:g&&(0,r.jsx)(s.E,{className:"status-text","aria-atomic":!0,"aria-live":"polite",role:"status",children:t("inline_feedback_form_option_submit_success")})}),b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.T,{className:"margin-top-m",fullWidth:!0,hintText:t("inline_feedback_form_textarea_hint_text"),labelText:t("inline_feedback_form_textarea_label_text"),onChange:v,characterLimit:1e3,ariaCharactersRemainingText:e=>t("inline_feedback_form_length_characters_remaining_aria",{count:e}),ariaCharactersExceededText:e=>t("inline_feedback_form_length_characters_over_limit_aria",{count:e}),status:void 0!==x?"error":"default",statusText:void 0!==x?t(x,{limit:1e3}):void 0}),y&&(0,r.jsx)(d.M,{className:"margin-top-m",status:"warning",children:t("inline_feedback_form_sanitize_warning")})]}),void 0!==w&&(0,r.jsx)(d.M,{className:"margin-top-m",status:"error",children:t(w)}),b&&(0,r.jsx)(a.e,{children:(0,r.jsx)(P.M$,{children:e=>(0,r.jsx)(o.$,{className:"margin-top-m",fullWidth:e,onClick:()=>void I(),"aria-disabled":!_||void 0!==x,children:t("inline_feedback_form_send_button")})})})]}),"thanks"===n&&(0,r.jsxs)(a.e,{className:"thanks-form-container",children:[(0,r.jsx)(N.x,{variant:"h3",ref:S,children:t("inline_feedback_form_thanks_heading")}),(0,r.jsx)(l.f,{className:"text-centered margin-top-m",children:(0,r.jsx)(s.E,{children:t(M[T])})})]})]})})},74471(e,t,n){"use strict";n.d(t,{a:()=>d,i:()=>u});let r=/(\+\d{1,3})?(([- ]?\d){8,12})\d/gi,i=/(0[1-9]|[12][0-9]|3[01])(0[1-9]|1[0-2])[0-9]{2}[-+A][0-9]{3}[0-9A-FHJ-NPR-Y]/gi,a=/[-a-z0-9_!%+/.]{1,64}@[-a-z0-9]{2,250}/gi,o=/(0?[1-9]|[12][0-9]|3[01])([./-])(0?[1-9]|1[0-2])\2(19|20|21){0,1}[0-9]{2}/gi,l=/(19|20|21)[0-9]{2}([./-])(0[1-9]|1[0-2])\2(0[1-9]|[12][0-9]|3[01])/gi,s=[i,r,a,l,o],c=e=>{switch(e){case i:return"XXXXXX_YYYZ";case r:return"0NN NNN NNNN";case a:return"X.X@XXX";case l:case o:return"PP.MM.YYYY";default:throw Error(`Unexpected sanitizing pattern: ${e}`)}},d=e=>{let t=e.substring(0,2048);return s.reduce((e,t)=>e.replace(t,c(t)),t)},u=e=>s.some(t=>e.match(t))},47093(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(74848),i=n(96540),a=n(34455),o=n(38621);function l({labelText:e,hintText:t,visualPlaceholder:n,noItemsText:l,items:s,selectedItem:c,onChange:d,getItemId:u,getItemLabel:p,onQueryChange:h,createItemFromQuery:f,optional:m=!1,disabled:g=!1,loading:b=!1,id:v,className:x,validators:y=[],onValidationStatusChange:w=()=>{},testId:I,inputRef:_,validateBeforeTouched:S=!1,status:T,statusText:C,fullWidth:j}){let{translate:k}=(0,i.useContext)(a.ic),[O,P]=(0,i.useState)(S),N=y.find(e=>e.condition),E=N?N.status:T,A=N?N.message:C;(0,i.useEffect)(()=>{P(S)},[S]);let z=(0,i.useCallback)(()=>{P(!0)},[]),D=(0,i.useCallback)(e=>{if(null==e)d(null);else{let t=s.find(t=>u(t)===e.uniqueItemId);null!=t?d(t):null!=f&&d(f(e.labelText))}},[d,s,u]);function B(e){return{uniqueItemId:u(e),labelText:p(e)}}(0,i.useEffect)(()=>{w((null==N?void 0:N.status)!=="error")},[w,N]);let R=null!=f?{allowItemAddition:!0,itemAdditionHelpText:k("single_select_add_new_item")}:{noItemsText:null!=l?l:k("single_select_no_items")};return(0,r.jsx)(o.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({labelText:e,hintText:t,visualPlaceholder:n,items:s.map(B),selectedItem:null!=c?B(c):null,onItemSelectionChange:D,onBlur:z,clearButtonLabel:k("single_select_clear_button"),ariaOptionsAvailableText:k("single_select_options_available_sr",{count:s.length}),optionalText:m?k("input_optional"):void 0,onChange:h,status:O?E:void 0,statusText:O?A:void 0,disabled:g,loading:b,loadingText:k("select_loading_text"),id:v,className:x,"data-testid":I,ref:_,fullWidth:j},R))}},68598(e,t,n){"use strict";n.d(t,{W:()=>m});var r=n(74848),i=n(34455),a=n(96540),o=n(46344),l=n(9464),s=n(76477),c=n(17518),d=n(75214),u=n(17727),p=n(17761);let h={suomifi:{showMoreClassName:"frontpage-spotlights-show-more-button",showMoreVariant:"inverted"},developer:{showMoreClassName:"",showMoreVariant:"secondary"}},f=(0,a.memo)(e=>{let{translate:t,applicationType:n,spotlights:d,showExpander:f,showMore:m,toggleShowMore:g,baseUrl:b,showMoreButtonVisible:v}=e,x=(0,a.useContext)(i.BR),y=(0,p.rd)(),{showMoreClassName:w,showMoreVariant:I}=h[n],_=d.length<=2?"spotlights-centered ":"",S=2*!e.isPhone;return(0,r.jsxs)("div",{className:"frontpage-spotlights",children:[(0,r.jsx)("ul",{className:_+"row row-cols-1 row-cols-lg-3 gy-5",children:d.map((e,n)=>(0,r.jsx)(o.n,{imgFetchPriority:n<=S?"high":void 0,title:e.header,image:e.image,imageText:e.imageTextType?t("frontpage_spotlight_image_text"):null,imageTextType:e.imageTextType,linkLabel:e.link.text,href:(0,u.gd)(e.link.target,x,y),externalLink:"ExternalLinkTarget"===e.link.target.type,openInNewWindow:e.link.newWindow,baseUrl:b},e.order))}),f&&v&&(0,r.jsx)("div",{className:"row centered margin-top-l",children:(0,r.jsx)("div",{className:"col-12",children:(0,r.jsx)(l.$,{variant:I,iconRight:m?(0,r.jsx)(s.o,{}):(0,r.jsx)(c.r,{}),className:w,"aria-label":t(m?"frontpage_show_less_spotlights_screenreader":"frontpage_show_more_spotlights_screenreader"),onClick:g,children:t(m?"frontpage_show_less_spotlights":"frontpage_show_more_spotlights")})})}),m&&(0,r.jsx)("div",{className:"visually-hidden",role:"alert",children:t("frontpage_more_spotlights_visible_screenreader")})]})});function m(e){let t=(0,a.useContext)(i.BR),{translate:n}=(0,a.useContext)(i.ic),o=(0,a.useContext)(i.wp),l=e.spotlights.spotlights,s=!e.showAllSpotlights,[c,u]=a.useState(!1),p=(0,a.useMemo)(()=>l.length>3&&c||e.showAllSpotlights?l:l.slice(0,3),[l,c,e.showAllSpotlights]),h=(0,a.useCallback)(()=>u(!c),[c]),m=(0,d.xj)(o),g=(0,a.useMemo)(()=>p.map(e=>{var t,n,{link:r}=e;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["link"])),n=n={link:{text:r.linkText,target:r.target,newWindow:r.newWindow}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
7)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t}),[p]);return(0,r.jsx)(f,{translate:n,applicationType:o.applicationType,spotlights:g,showExpander:l.length>3,showMore:c,toggleShowMore:h,baseUrl:m,showMoreButtonVisible:s,isPhone:t.getScreenSize().isPhone})}},1945(e,t,n){"use strict";n.d(t,{N:()=>f});var r=n(74848),i=n(96540),a=n(60207),o=n(1299),l=n(56805),s=n(46942),c=n.n(s);function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let p=e=>{let{className:t,mousePointer:n,ariaLabel:i,color:a,fill:o,baseColor:l,highlightColor:s}=e,p=u(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return(0,r.jsx)("svg",d({viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",focusable:"false",className:c()("fi-icon",t)},p))},h=(0,l.LG)({Authorisation:()=>n.e(371).then(n.bind(n,70371)).then(e=>e.IconAuthorisation),BehalfOfACompany:()=>n.e(4088).then(n.bind(n,74088)).then(e=>e.IconBehalfOfACompany),BehalfOfAPerson:()=>n.e(5646).then(n.bind(n,95646)).then(e=>e.IconBehalfOfAPerson),Book:()=>n.e(5186).then(n.bind(n,85186)).then(e=>e.IconBook),Briefcase:()=>n.e(4697).then(n.bind(n,84697)).then(e=>e.IconBriefcase),BuildingAdministrative:()=>n.e(6827).then(n.bind(n,16827)).then(e=>e.IconBuildingAdministrative),Buildings:()=>n.e(3375).then(n.bind(n,33375)).then(e=>e.IconBuildings),Catalog:()=>n.e(1236).then(n.bind(n,1236)).then(e=>e.IconCatalog),ChartAnalytics:()=>n.e(2783).then(n.bind(n,92783)).then(e=>e.IconChartAnalytics),ChartPie:()=>n.e(9977).then(n.bind(n,89977)).then(e=>e.IconChartPie),ChartScreen:()=>n.e(8529).then(n.bind(n,98529)).then(e=>e.IconChartScreen),ChartStatistic:()=>n.e(4243).then(n.bind(n,4243)).then(e=>e.IconChartStatistic),ChatBubbles:()=>n.e(5253).then(n.bind(n,45253)).then(e=>e.IconChatBubbles),Child:()=>n.e(2835).then(n.bind(n,52835)).then(e=>e.IconChild),Cogwheel:()=>n.e(5470).then(n.bind(n,65470)).then(e=>e.IconCogwheel),Collaboration:()=>n.e(3255).then(n.bind(n,63255)).then(e=>e.IconCollaboration),Contract:()=>n.e(6594).then(n.bind(n,36594)).then(e=>e.IconContract),Conversation:()=>n.e(5712).then(n.bind(n,25712)).then(e=>e.IconConversation),Court:()=>n.e(5354).then(n.bind(n,55354)).then(e=>e.IconCourt),CreditCards:()=>n.e(8506).then(n.bind(n,48506)).then(e=>e.IconCreditCards),Database:()=>n.e(9106).then(n.bind(n,19106)).then(e=>e.IconDatabase),Mobile:()=>n.e(8633).then(n.bind(n,18633)).then(e=>e.IconMobile),Display:()=>n.e(5342).then(n.bind(n,25342)).then(e=>e.IconDisplay),Doctor:()=>n.e(799).then(n.bind(n,30799)).then(e=>e.IconDoctor),Environment:()=>n.e(646).then(n.bind(n,646)).then(e=>e.IconEnvironment),Exchange:()=>n.e(1546).then(n.bind(n,11546)).then(e=>e.IconExchange),Failure:()=>n.e(9245).then(n.bind(n,29245)).then(e=>e.IconFailure),Family:()=>n.e(1355).then(n.bind(n,51355)).then(e=>e.IconFamily),Faq:()=>n.e(7213).then(n.bind(n,27213)).then(e=>e.IconFaq),Feedback:()=>n.e(3977).then(n.bind(n,3977)).then(e=>e.IconFeedback),FileCabinet:()=>n.e(7413).then(n.bind(n,17413)).then(e=>e.IconFileCabinet),Finance:()=>n.e(1644).then(n.bind(n,11644)).then(e=>e.IconFinance),Folder:()=>n.e(9055).then(n.bind(n,19055)).then(e=>e.IconFolder),Global:()=>n.e(8840).then(n.bind(n,8840)).then(e=>e.IconGlobal),Group:()=>n.e(8383).then(n.bind(n,88383)).then(e=>e.IconGroup),Growth:()=>n.e(5462).then(n.bind(n,85462)).then(e=>e.IconGrowth),HandCoins:()=>n.e(7491).then(n.bind(n,7491)).then(e=>e.IconHandCoins),HandPlate:()=>n.e(1124).then(n.bind(n,1124)).then(e=>e.IconHandPlate),Helpdesk:()=>n.e(2247).then(n.bind(n,42247)).then(e=>e.IconHelpdesk),Home:()=>n.e(4061).then(n.bind(n,4061)).then(e=>e.IconHome),House:()=>n.e(5359).then(n.bind(n,5359)).then(e=>
7e.IconHouse),IdBadge:()=>n.e(5411).then(n.bind(n,55411)).then(e=>e.IconIdBadge),LaptopContent:()=>n.e(3422).then(n.bind(n,43422)).then(e=>e.IconLaptopContent),Laptop:()=>n.e(6345).then(n.bind(n,26345)).then(e=>e.IconLaptop),Leap:()=>n.e(8243).then(n.bind(n,68243)).then(e=>e.IconLeap),Location:()=>n.e(6617).then(n.bind(n,66617)).then(e=>e.IconLocation),MagicWand:()=>n.e(3216).then(n.bind(n,3216)).then(e=>e.IconMagicWand),Mailbox:()=>n.e(5647).then(n.bind(n,38028)).then(e=>e.IconMailbox),ManButtons:()=>n.e(4026).then(n.bind(n,14026)).then(e=>e.IconManButtons),ManGlasses:()=>n.e(1763).then(n.bind(n,81763)).then(e=>e.IconManGlasses),ManLaptop:()=>n.e(2040).then(n.bind(n,12040)).then(e=>e.IconManLaptop),MessageSent:()=>n.e(9727).then(n.bind(n,19727)).then(e=>e.IconMessageSent),Messages:()=>n.e(2283).then(n.bind(n,42283)).then(e=>e.IconMessages),Meter:()=>n.e(7628).then(n.bind(n,37628)).then(e=>e.IconMeter),MigrationFinland:()=>n.e(9331).then(n.bind(n,19331)).then(e=>e.IconMigrationFinland),Money:()=>n.e(7971).then(n.bind(n,77971)).then(e=>e.IconMoney),MoneyBag:()=>n.e(5050).then(n.bind(n,85050)).then(e=>e.IconMoneyBag),Organisation:()=>n.e(3348).then(n.bind(n,63348)).then(e=>e.IconOrganisation),MobileText:()=>n.e(9978).then(n.bind(n,19978)).then(e=>e.IconMobileText),PiggyBank:()=>n.e(9924).then(n.bind(n,99924)).then(e=>e.IconPiggyBank),Pillar:()=>n.e(5489).then(n.bind(n,35489)).then(e=>e.IconPillar),PlaneFlying:()=>n.e(2690).then(n.bind(n,2690)).then(e=>e.IconPlaneFlying),Presentation:()=>n.e(8550).then(n.bind(n,68550)).then(e=>e.IconPresentation),Puzzle:()=>n.e(5571).then(n.bind(n,5571)).then(e=>e.IconPuzzle),Register:()=>n.e(8724).then(n.bind(n,98724)).then(e=>e.IconRegister),Rocket:()=>n.e(5719).then(n.bind(n,75719)).then(e=>e.IconRocket),ScaleBalance:()=>n.e(7316).then(n.bind(n,87316)).then(e=>e.IconScaleBalance),Scale:()=>n.e(1212).then(n.bind(n,61212)).then(e=>e.IconScale),Server:()=>n.e(3710).then(n.bind(n,23710)).then(e=>e.IconServer),Shelter:()=>n.e(9365).then(n.bind(n,89365)).then(e=>e.IconShelter),Shop:()=>n.e(4403).then(n.bind(n,14403)).then(e=>e.IconShop),Smartwatch:()=>n.e(7169).then(n.bind(n,57169)).then(e=>e.IconSmartwatch),SocialSecurity:()=>n.e(1797).then(n.bind(n,61797)).then(e=>e.IconSocialSecurity),Star:()=>n.e(5663).then(n.bind(n,75663)).then(e=>e.IconStar),StarFilled:()=>n.e(1827).then(n.bind(n,71827)).then(e=>e.IconStarFilled),Steering:()=>n.e(5067).then(n.bind(n,55067)).then(e=>e.IconSteering),Success:()=>n.e(9677).then(n.bind(n,69677)).then(e=>e.IconSuccess),Support:()=>n.e(8964).then(n.bind(n,68964)).then(e=>e.IconSupport),Swim:()=>n.e(1977).then(n.bind(n,41977)).then(e=>e.IconSwim),TabletText:()=>n.e(3280).then(n.bind(n,23280)).then(e=>e.IconTabletText),Tablet:()=>n.e(3619).then(n.bind(n,43619)).then(e=>e.IconTablet),Team:()=>n.e(8081).then(n.bind(n,88081)).then(e=>e.IconTeam),Touch:()=>n.e(2352).then(n.bind(n,2352)).then(e=>e.IconTouch),Train:()=>n.e(2804).then(n.bind(n,32804)).then(e=>e.IconTrain),UserBadge:()=>n.e(9821).then(n.bind(n,59821)).then(e=>e.IconUserBadge),UserProfile:()=>n.e(1340).then(n.bind(n,21340)).then(e=>e.IconUserProfile),WebDevelopment:()=>n.e(8168).then(n.bind(n,88168)).then(e=>e.IconWebDevelopment),WebService:()=>n.e(5034).then(n.bind(n,45034)).then(e=>e.IconWebService),WomanButtons:()=>n.e(9448).then(n.bind(n,29448)).then(e=>e.IconWomanButtons),WomanNecklace:()=>n.e(1737).then(n.bind(n,61737)).then(e=>e.IconWomanNecklace)},e=>(0,o.v)((0,a.O)(e,p))),f=(0,i.memo)(e=>{var t,n;let{icon:i,width:a}=e,o=u(e,["icon","width"]),l=h[i];return(0,r.jsx)(l,(t=d({},o),n=n={$width:a},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})},1299(e,t,n){"use strict";n.d(t,{I:()=>d,v:()=>s});var r=n(74848),i=n(96540),a=n(63679);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let s=e=>(0,a.Ay)(e)`
8      ${e=>null!=e.$width?`width: ${e.$width}px;`:"width: auto;"}
9      height: auto;
10`,c=(0,a.Ay)(e=>{let{Icon:t}=e,n=l(e,["Icon"]);return(0,r.jsx)(t,o({},n))})`
11  ${e=>null!=e.$width?`width: ${e.$width}px;`:"width: auto;"}
12  height: auto;
13`,d=(0,i.memo)(e=>{var t,n,{Icon:i,width:a}=e,s=l(e,["Icon","width"]);return(0,r.jsx)(c,(t=o({},s),n=n={Icon:i,$width:a},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
13)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})},94364(e,t,n){"use strict";n.d(t,{x:()=>l});var r=n(74848);n(96540);var i=n(63679),a=n(35373);let o=(0,i.Ay)(a.o)`
14  width: ${e=>e.$width}px;
15  height: auto;
16  padding: ${e=>e.$padding}px;
17`;function l(e){var t,n;let{width:i,padding:a}=e,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["width","padding"]);return(0,r.jsx)(o,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},l),n=n={$width:i,$padding:null!=a?a:0},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}},6259(e,t,n){"use strict";n.d(t,{C:()=>i});var r=n(94668);let i=(0,n(1254).b)(r.t,0)},23971(e,t,n){"use strict";n.d(t,{LandingPage:()=>el,LandingPageLoader:()=>$});var r=n(74848),i=n(44838),a=n(63497),o=n(96540),l=n(72477),s=n(5303),c=n(9541),d=n(41751),u=n(77369),p=n(47767),h=n(20868),f=n(34455),m=n(51759),g=n(75214),b=n(58072),v=n(50159);let x={src:n(58427),width:804,height:175},y={fi:x,sv:{src:n(56806),width:952,height:175},en:{src:n(62389),width:940,height:175},se:x,smn:x,sms:x},w=()=>{let{lang:e,translate:t}=(0,o.useContext)(f.ic);return(0,r.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({className:"landing-page-jod-custom-section-logo",alt:t("osaamispolku_logo_alt_text")},y[e]))};var I=n(68598),_=n(9464),S=n(67694),T=n(67768),C=n(96647),j=n(14531),k=n(29619),O=n(17264),P=n(47093),N=n(31377),E=n(98437),A=n(19428);function z(e){var t,n;let{lang:i,translate:a,historyPush:u}=(0,o.useContext)(f.BR),p=(0,o.useState)(null),h=(0,o.useState)(null),m=(0,o.useState)([]),g=(0,o.useState)(null),b=(0,o.useState)(null),v=(0,o.useState)(""),x=null===(t=e.serviceCatalog.search)||void 0===t?void 0:t.filterGroups.some(e=>"SERVICE_LANGUAGE"===e.type&&e.languages.some(e=>e.code===i)),y=(0,o.useState)(x?i:null),w=(0,o.useMemo)(()=>({pageNumber:0,organizations:p[0]?[p[0]]:[],municipalities:h[0]?[h[0]]:[],chargeTypes:m[0],channelTypes:g[0]?[g[0]]:[],thematicFilters:b[0]?[b[0]]:[],search:v[0],languages:y[0]?[y[0]]:[]}),[p,h,m,g,b,v,y]),I=(0,o.useCallback)(()=>u((0,j.GY)({landingPageSlug:e.landingPageSlug,params:w})),[u,e.landingPageSlug,w]);return(0,r.jsxs)("div",{className:"landing-page-hero-service-catalog",children:[e.serviceCatalog.search&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.J,{}),(0,r.jsxs)("div",{className:"service-catalog-search",children:[(0,r.jsx)(d.Q,{variant:"h3",children:null===(n=e.serviceCatalog.search)||void 0===n?void 0:n.title}),(0,r.jsxs)("form",{className:"landing-page-filters",onSubmit:e=>{e.preventDefault(),I()},children:[e.serviceCatalog.search.filterGroups.map((t,n)=>(0,r.jsx)(l.e,{variant:"section",className:"landing-page-filter",children:(0,r.jsx)(D,{filterGroup:t,organization:p,municipality:h,chargeTypes:m,channelType:g,thematicFilter:b,search:v,language:y,serviceCatalogSlug:e.serviceCatalog.slug})},n)),(0,r.jsx)(l.e,{className:"landing-page-filter-search-button",children:(0,r.jsx)(_.$,{type:"submit",children:a("landing_page_service_catalog_search_button_text")})})]})]}),(0,r.jsx)(s.f,{className:"centered",color:"whiteBase",mt:"xl",mb:"s",children:a("landing_page_service_catalog_search_help_text")})]}),(0,r.jsx)("ul",{className:"service-catalog-link",children:(0,r.jsx)(c.i,{children:(0,r.jsx)(C.q,{to:(0,j.GY)({landingPageSlug:e.landingPageSlug}),children:a("landing_page_service_catalog_link_text")})})})]})}function D(e){let{filterGroup:t,organization:n,municipality:i,chargeTypes:a,channelType:o,thematicFilter:l,search:s,language:c,serviceCatalogSlug:d}=e;switch(t.type){case"CHARGE_TYPE":return(0,r.jsx)(B,{state:a[0],setState:a[1]});case"CHANNEL_TYPE":return(0,r.jsx)(R,{filterGroup:t,state:o[0],setState:o[1]});case"MUNICIPALITY":return(0,r.jsx)(F,{state:i[0],setState:i[1]});case"ORGANIZATION":return(0,r.jsx)(M,{filterGroup:t,state:n[0],setState:n[1]});case"SEARCH_TERM":return(0,r.jsx)(L,{state:s[0],setState:s[1],serviceCatalogSlug:d});case"SERVICE_LANGUAGE":return(0,r.jsx)(V,{filterGroup:t,state:c[0],setState:c[1]});case"THEMATIC":return(0,r.jsx)(U,{filterGroup:t,state:l[0],setState:l[1]})}}function B({state:e,setState:t}){let{translate:n}=(0,o.useContext)(f.ic);return(0,r.jsxs)(S.ms,{labelText:n("service_catalog_filter_group_charge_type"),onChange:e=>{"All"===e?t([]):t([e])},children:[(0,r.jsx)(T.t,{value:"FreeOfCharge",children:n("service_catalog_filter_group_charge_type_FreeOfCharge")},"FreeOfCharge"),(0,r.jsx)(T.t,{value:"Chargeable",children:n("service_catalog_filter_group_charge_type_Chargeable")},"Chargeable"),(0,r.jsx)(T.t,{value:"All",children:n("service_catalog_filter_group_charge_type_All")},"All")]})}function R({filterGroup:e,state:t,setState:n}){let{translate:i}=(0,o.useContext)(f.ic);return(0,r.jsx)(P.Z,{labelText:i("service_catalog_filter_group_channel_type"),items:e.filters,selectedItem:t,onChange:n,getItemId:e=>e,getItemLabel:e=>i(O.lg[e])})}function F({state:e,setState:t}){var n,i;let{translate:a,lang:l}=(0,o.useContext)(f.ic),s=(0,E.d4)(e=>e.municipalities);return(0,r.jsx)(P.Z,{labelText:a("municipality_selector_title"),items:(null===(n=s.item)||void 0===n?void 0:n.municipalities)||[],selectedItem:e?null===(i=s.item)||void 0===i?void 0:i.municipalities.find(t=>
17t.id===e):null,onChange:e=>t(e?e.id:null),getItemId:e=>e.id,getItemLabel:e=>(0,N.w)(e,l)})}function M({filterGroup:e,state:t,setState:n}){let{translate:i}=(0,o.useContext)(f.ic);return(0,r.jsx)(P.Z,{labelText:i("landing_page_organization_selector_label"),items:e.organizations,selectedItem:t?e.organizations.find(e=>e.id===t):null,onChange:e=>n(e?e.id:null),getItemId:e=>e.id,getItemLabel:e=>e.name})}function L({serviceCatalogSlug:e,state:t,setState:n}){let{translate:i,lang:l}=(0,o.useContext)(f.ic),s=(0,o.useCallback)(t=>a.gM.findServiceCatalogServiceSuggestions(e,l,t).then(A.ws),[e,l]);return(0,r.jsx)("div",{className:"search-filter-form",children:(0,r.jsx)(A.Gd,{name:"landing-page-service-catalog-search-box",labelText:i("landing_page_service_catalog_search_filter_label"),onChange:n,value:null!=t?t:"",fetchSuggestions:s,suggestionHintText:i("search_autosuggest_list_label")})})}function V({filterGroup:e,state:t,setState:n}){let{translate:i}=(0,o.useContext)(f.ic);return(0,r.jsx)(P.Z,{labelText:i("service_catalog_filter_group_service_language"),items:e.languages,selectedItem:t?e.languages.find(e=>e.code===t):null,onChange:e=>n(e?e.code:null),getItemId:e=>e.code,getItemLabel:e=>e.name})}function U({filterGroup:e,state:t,setState:n}){return(0,r.jsx)(P.Z,{labelText:e.label,items:e.filters,selectedItem:t?e.filters.find(e=>e.value===t):null,onChange:e=>n(e?e.value:null),getItemId:e=>e.value,getItemLabel:e=>e.label})}var H=n(74590),W=n(59261),q=n(59168),G=n(1945);let K=(0,i.QH)({mapProps:({state:e,route:t,lang:n})=>({slug:t.viewParams.namedRouteParams.landingPageSlug,landingPage:e.landingPage,lang:n}),fetchRouteData:(e,t)=>e((0,a.fj)(t.slug,t.lang)),loading:{waitFor:["landingPage"]},mapInitialization:({landingPage:e})=>({meta:{title:e.metaTitle,description:e.description,releaseStatus:e.releaseStatus,fallbackLanguage:e.fallbackLanguage},breadcrumb:{namedLabels:{landingPageBreadcrumb:e.title}},i18n:(0,i.hU)({namedRouteParams:{landingPageSlug:e.languageURLs}})})}),$=(0,i.ep)(K,()=>(0,r.jsx)(p.sv,{}));function X(e){return(0,r.jsx)("div",{id:"landing-page-hero-area",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("div",{className:"landing-page-hero-breadcrumbs",children:(0,r.jsx)(H.B,{})}),(0,r.jsx)(W.B,{}),(0,r.jsxs)("div",{className:"landing-page-hero-main",children:[(0,r.jsx)(d.Q,{variant:"h1hero",className:"centered",children:e.title}),(0,r.jsx)(l.e,{className:"centered hero-ingress",children:e.leadParagraph})]}),e.serviceCatalog&&(0,r.jsx)(z,{serviceCatalog:e.serviceCatalog,landingPageSlug:e.landingPageSlug})]})})}function Q(){return(0,r.jsx)("div",{className:"landing-page-eu-logo-area",children:(0,r.jsx)("div",{className:"landing-page-eu-logo centered",children:(0,r.jsx)(m.U,{})})})}function Z(e){return(0,r.jsx)("div",{id:"landing-page-feedback-area",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(h.$,{target:e.feedbackTarget})})})}function Y({section:e}){switch(e.type){case"ICON_HIGHLIGHT":return(0,r.jsx)(J,{section:e});case"TEXT_HIGHLIGHT":return(0,r.jsx)(ee,{section:e});case"SPOTLIGHT":return(0,r.jsx)(et,{section:e});case"LINK":return(0,r.jsx)(en,{section:e});case"COVER_IMAGE":return(0,r.jsx)(er,{section:e});case"CUSTOM":if("Osaamispolku"===e.customSectionType)return(0,r.jsx)(ei,{});return null}}function J({section:e}){return(0,r.jsx)("div",{className:"landing-page-icon-highlights-section",children:e.rows.map((e,t)=>(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)(l.e,{className:"icon-highlights-row",children:[(0,r.jsx)(d.Q,{variant:"h2",className:"centered",children:e.title}),(0,r.jsx)(s.f,{mt:"m",className:"centered",children:e.text}),(0,r.jsx)("div",{className:"icons",children:e.items.map((e,n)=>(0,r.jsxs)("div",{className:"icon-highlight",children:[(0,r.jsx)(G.N,{icon:e.icon,className:"white-background"}),(0,r.jsx)(d.Q,{variant:"h4",as:"h3",mt:"s",className:"centered",children:e.title})]},`${t}-${n}`))})]})},t))})}function ee({section:e}){return(0,r.jsx)("div",{className:"landing-page-text-highlights-section",children:(0,r.jsx)("div",{className:"container",children:e.items.map((e,t)=>(0,r.jsxs)(l.e,{className:"text-highlight",children:[e.icon&&(0,r.jsx)(G.N,{icon:e.icon,mb:"xxl",className:"text-highlight-icon white-background"}),(0,r.jsx)(d.Q,{variant:"h2",mb:"l",className:"centered",children:e.title}),(0,r.jsx)(l.e,{variant:"div",className:"text-highlight-content",children:(0,r.jsx)(b.I,{content:e.text})})]},t))})})}function et({section:e}){return(0,r.jsx)("div",{className:"landing-page-spotlights-section",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsxs)(l.e,{className:"spotlights-header-area",mb:"xl",children:[(0,r.jsx)(d.Q,{variant:"h2",className:"centered",children:e.title}),(0,r.jsx)(s.f,{className:"centered",mt:"m",children:e.text})]}),(0,r.jsx)(I.W,{spotlights:{spotlights:e.spotlights},showAllSpotlights:!0})]})})}function en({section:e}){let t=(0,q.A)({"link-box-area":!0,singular:e.items.length<2});return(0,r.jsx)("div",{className:"landing-page-link-highlights-section",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(d.Q,{variant:"h2",mb:"xxl",className:"centered",children:e.title}),(0,r.jsx)("div",{className:t,children:e.items.map((e,t)=>(0,r.jsx)(v.Qe,{variant:"shortcut",allowCompact:!0,icon:(0,v.ab)(e.icon),title:e.title,linkLabel:e.linkText,linkTarget:e.link},t))})]})})}function er({section:e}){var t;let n=(0,f.lm)();return(0,r.jsx)("div",{className:"image-section",children:(0,r.jsx)("img",{alt:"",role:"presentation",src:null===(t=e.image)||void 0===t?void 0:t.src,className:n.isMobile?"mobile-image":""})})}function ei(){let{translate:e}=(0,o.useContext)(f.ic);return(0,r.jsx)("div",{className:"landing-page-jod-custom-section",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("div",{className:"landing-page-jod-custom-section-logo",children:(0,r.jsx)(w,{})}),(0,r.jsx)(d.Q,{mt:"xl",mb:"m",variant:"h2",children:e("landing_page_jod_custom_section_heading")}),(0,r.jsx)(s.f,{mb:"xl",className:"landing-page-jod-custom-section-text centered",children:e("landing_page_jod_custom_section_text")}),(0,r.jsx)(c.i,{children:(0,r.jsx)(g.N_,{href:e("landing_page_jod_custom_section_link_url"),hideExternalLinkIcon:!0,children:e("landing_page_jod_custom_section_link_text")})})]})})}function ea(e){let{landingPage:t}=e,n=(0,o.useMemo)(()=>({type:"LANDING_PAGE",id:t.languageContentId}),[t.languageContentId]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(X,{title:t.title,leadParagraph:t.leadParagraph,serviceCatalog:t.serviceCatalog,landingPageSlug:t.slug}),e.landingPage.sections.map((e,t)=>(0,r.jsx)(Y,{section:e},t)),(0,r.jsx)(Z,{feedbackTarget:n}),t.euFunded&&(0,r.jsx)(Q,{})]})}let eo=(0,i.QH)({mapProps:({state:e})=>({landingPage:e.landingPage}),fetchRouteData:()=>Promise.resolve(),loading:{waitFor:["landingPage"]},mapInitialization:({landingPage:e})=>
17({meta:{title:e.metaTitle,description:e.description,releaseStatus:e.releaseStatus,fallbackLanguage:e.fallbackLanguage},matomo:(0,u.NQ)("Palveluhakemiton laskeutumissivu",e)})}),el=(0,i.ep)(eo,e=>(0,r.jsx)(ea,{landingPage:e.landingPage}))},97624(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(74848);n(96540);let i=e=>(0,r.jsx)("div",{id:e.organization.id,className:"related-services-list-item-organizations",children:e.organization.name})},91887(e,t,n){"use strict";n.d(t,{T:()=>o});var r=n(74848),i=n(96540);function a(e){let{explanation:t,level:n,label:o}=e,[s,c]=(0,i.useState)(!1),d=(0,i.useCallback)(()=>c(!s),[s,c]);return t.description.startsWith("weight(FunctionScoreQuery")?(0,r.jsx)(a,{explanation:t.details[0],level:n,label:""},0):("max of:"===t.description||"sum of:"===t.description||t.description.indexOf("product of:")>-1||t.description.indexOf("result of:")>-1||t.description.indexOf("from:")>-1)&&0>t.description.indexOf("idf, computed as")&&0>t.description.indexOf("tfNorm, computed as")?(0,r.jsxs)("div",{className:0===n?"":"search-score-indent",children:[(0,r.jsxs)("button",{className:"search-score-expander",onClick:d,children:[(0,r.jsx)("span",{className:"search-score-expander-button",children:s?"-":"+"}),t.value,": ",(0,r.jsx)(l,{explanation:t})]}),s&&t.details.map((e,t)=>(0,r.jsx)(a,{explanation:e,level:n+1,label:(o?o+"-":"")+(t+1)},t))]},o):(0,r.jsx)("div",{className:"search-score-indent",children:(0,r.jsxs)("span",{className:"search-score-plain",children:[t.value,": ",(0,r.jsx)(l,{explanation:t}),(0,r.jsx)("br",{})]})},o)}function o({explanation:e}){return e?(0,r.jsx)("div",{className:"search-score",children:(0,r.jsx)(a,{explanation:e,level:0})}):null}function l({explanation:e}){let t,n=e.description,i=n.replace("[PerFieldSimilarity], result of:","");return(i.startsWith("ConstantScore(indexTypeName:")||i.startsWith("indexTypeName:("))&&(i="tyypin vastaavuus"),i.startsWith("ConstantScore(")&&i.indexOf(".raw_lowercase:")>15&&(i="otsikon vastaavuus: "+i.substring(14,i.indexOf(".raw_lowercase"))),i.startsWith("Matched boosting query score(")&&(i="boost"),"queryNorm"===i&&(i+=" (hakukohtainen vakio, ei vaikutusta)"),(i.indexOf("municipalities.code")>-1||i.indexOf("municipality.code")>-1)&&(i="aluetieto: "+i.substring(7,i.indexOf(" "))),i.indexOf("idf, computed as")>-1&&(i="IDF: ",e.details.forEach((e,t)=>{i+=e.description+":"+e.value+(0===t?", ":"")})),i.indexOf("tfNorm, computed as")>-1&&(i="TF"),i.startsWith("weight(Synonym(")&&(i=i.substring(15,i.indexOf(" "))+" (tai synonyymi)"),"max of:"===n?t="Parhaat pisteet":"sum of:"===n?t="Yhteenlasketut pisteet":"product of:"===n?t="Painotetut pisteet":n.indexOf("score(")>-1&&n.indexOf("), product of")&&e.details.find(e=>e.description.indexOf("idf, computed as")>-1)&&e.details.find(e=>e.description.indexOf("tfNorm, computed as")>-1)&&(t="TF x IDF x boost"),t&&(i=t),(0,r.jsx)("span",{children:i})}},17264(e,t,n){"use strict";n.d(t,{lg:()=>C,qd:()=>N,vU:()=>E});var r,i=n(74848),a=n(90),o=n(44757),l=n(90973),s=n(17239),c=n(66401),d=n(96540),u=n(91887),p=n(96647),h=n(14531),f=n(88149),m=n(27013),g=n(26994),b=n(34455),v=n(61856),x=n(41751),y=n(97624),w=n(25391),I=n(9541),_=n(43933);let{useContext:S}=r||(r=n.t(d,2)),T=(e,t)=>{let n=(0,f.b)(t),r=(0,f.a)(t);return e.serviceChannels.filter(e=>n(e)||r(e))},C={PrintableForm:"search_result_content_type_form",openptvservicechannel_printableform:"search_result_content_type_form",ServiceLocation:"search_result_content_type_office",openptvservicechannel_servicelocation:"search_result_content_type_office",EChannel:"search_result_content_type_echannel",Phone:"search_result_content_type_phone",WebPage:"search_result_content_type_webpage"},j=({service:e,municipalityIds:t,serviceNameElementId:n})=>{let{translate:r}=S(b.ic),o=T(e,t);if((0,c.A)(o))return null;let l=(0,a.A)(o,e=>e.serviceChannelType),s=(0,v.A)("service-channel-item-channels-label-"),d=(0,g.Hv)()(["EChannel","PrintableForm","Phone","ServiceLocation","WebPage"]);return(0,i.jsx)("div",{className:"row serviceguide-list serviceguide-main-container-list flex-box",children:(0,i.jsxs)("div",{className:"col-12 col-lg-6",children:[(0,i.jsxs)("div",{className:"related-services-list-service-channels-header",id:s,children:[r("service_channels"),":"]}),(0,i.jsx)(_.d,{ariaLabelledBy:s,children:d.map((t,n)=>{let a=C[t],o=(0,v.A)("service-list-item-channels-");return l[t]?(0,i.jsx)(I.i,{children:(0,i.jsxs)(p.q,{to:(0,h.Xl)({serviceId:e.id,slug:e.slug,serviceChannel:t}),id:o,children:[r(a)," (",l[t]," ",r("pcs"),")"]})},n):null})})]})})},k=(0,w.q3)({waitFor:["metadata"],indicator:w.C1.SHOW_NEVER,LoadedComponent:({metadata:e,service:t})=>(0,i.jsx)("div",{className:"row metadata-list",children:(0,i.jsxs)("div",{className:"col-12 col-lg-6",children:[(0,i.jsx)("div",{className:"metadata-list-header",children:"Luokittelutietojen vastaavuudet:"}),(0,i.jsxs)("ul",{children:[(0,i.jsx)(O,{contentMetadata:e.serviceClasses,serviceMetadata:t.meta.serviceClasses,labelKey:"service_list_service_classes",fintoConcepts:e.fintoConcepts}),(0,i.jsx)(O,{contentMetadata:e.ontologyTerms,serviceMetadata:t.meta.ontologyTerms,labelKey:"service_list_ontology_terms",fintoConcepts:e.fintoConcepts}),(0,i.jsx)(O,{contentMetadata:e.lifeSituations,serviceMetadata:t.meta.lifeSituations,labelKey:"service_list_life_situations",fintoConcepts:e.fintoConcepts}),(0,i.jsx)(O,{contentMetadata:e.targetGroups,serviceMetadata:t.meta.targetGroups,labelKey:"service_list_target_groups",fintoConcepts:e.fintoConcepts}),(0,i.jsx)(O,{contentMetadata:e.industryClassifications,serviceMetadata:t.meta.industryClassifications,labelKey:"service_list_industrial_classes",fintoConcepts:e.fintoConcepts})]})]})})}),O=({contentMetadata:e,serviceMetadata:t,labelKey:n,fintoConcepts:r})=>{let{translate:a}=S(b.ic),l=t?(0,s.A)(e,t.concepts.map(e=>e.uri)):[],c=(0,o.A)((0,s.A)(e,t.contextConcepts.map(e=>e.uri)),l);return(0,i.jsxs)("div",{children:[l.length>0?(0,i.jsxs)("li",{children:[a(n),": ",l.length," kpl",(0,i.jsx)("ul",{className:"metadata-item-list",children:l.map((e,t)=>(0,i.jsx)("li",{children:P(e,r)},t))})]},n):null,c.length>0?(0,i.jsxs)("li",{children:[a(n),a("service_list_metadata_contexts"),": ",c.length," kpl",(0,i.jsx)("ul",{className:"metadata-item-list",children:c.map((e,t)=>(0,i.jsx)("li",{children:P(e,r)},t))})]}):null]})},P=(e,t)=>(0,g.Pl)((0,l.A)(t,t=>t.id===e)).label,N=e=>{let{service:t,municipalityIds:n,explanation:r=null,metadata:a,showMetadataMatches:o}=e;return(0,i.jsx)(E,{service:t,municipalityIds:n,explanation:r,metadata:o?(0,i.jsx)(k,{metadata:a,service:t}):null})},E=({service:e,municipalityIds:t,explanation:n=null,metadata:r,navRef:a,overridePills:o})=>{let{translate:l}=S(b.ic),s=(0,v.A)("service-list-item-service-name-");return(0,i.jsxs)("li",{className:"related-services-list-item",children:[(0,i.jsx)(y.A,{organization:e.responsibleOrganization}),(0,i.jsx)(x.Q,{variant:"h3",id:s,children:(0,i.jsxs)(p.q,{className:"link-inherit-font-style",to:(0,h.Xl)({serviceId:e.id,slug:e.slug}),navRef:a,children:[e.serviceNames.name,(0,i.jsx)("span",{className:"visually-hidden",children:e.responsibleOrganization.name})]})}),(0,i.jsx)("div",{className:"related-services-list-item-service-types",children:null!=o?o.map(e=>(0,i.jsx)("div",{className:"pill-list-item",children:e},e)):(0,m.q7)(e,l).map(e=>(0,i.jsx)("div",{className:"pill-list-item",children:e},e))}),(0,i.jsx)("div",{className:"related-services-list-item-text",children:e.serviceDescriptions.summary}),(0,i.jsx)(j,{service:e,municipalityIds:t,serviceNameElementId:s}),(0,i.jsx)(u.T,{explanation:n}),r]})}},51759(e,t,n){"use strict";n.d(t,{U:()=>s});var r=n(74848),i=n(96540),a=n(34455);let o={src:n(95302),width:865,height:221},l={fi:o,sv:{src:n(60294),width:925,height:221},en:{src:n(41884),width:922,height:221},se:o,smn:o,sms:o},s=()=>{let{lang:e,translate:t}=(0,i.useContext)(a.ic);return(0,r.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({className:"sihard-eu-funded-logo",alt:t("funded_by_eu_logo_alt_text")},l[e]))}},83046(e,t,n){"use strict";n.d(t,{i:()=>i});var r=n(96540);let i=(e=!0)=>{let t=(0,r.useRef)(null),[n,i]=(0,r.useState)(!1),a=(0,r.useCallback)(()=>{!t.current||e&&n||(t.current.focus(),i(!0))},[n,e]);return[t,a,(0,r.useCallback)(()=>i(!1),[])]}}
17,42465(e,t,n){"use strict";function r(e){return e.isPhone?"PHONE":e.isMobile?"TABLET":"DESKTOP"}n.d(t,{p:()=>r})},27013(e,t,n){"use strict";n.d(t,{It:()=>s,LZ:()=>c,Ss:()=>l,it:()=>h,q7:()=>m,tp:()=>f});var r=n(94092),i=n(74722),a=n(85548),o=n(26994);let l=e=>{let t=e;return t.startsWith("http://")?t=t.substr(7,t.length-7):t.startsWith("https://")&&(t=t.substr(8,t.length-8)),t.endsWith("/")&&(t=t.substr(0,t.length-1)),t},s=e=>{let t=(0,r.A)(e.webPages,e=>!!e.url);return t.length>0?t[0].url:void 0},c=(e,t)=>d(e,t.areaType,t.areas),d=(e,t,n,r)=>{switch(t){case"Nationwide":return e("search_result_content_type_service_nationwide");case"NationwideExceptAlandIslands":return e("search_result_content_type_service_nationwide_except_aland_islands");case"LimitedType":{let t=(0,i.A)(n,({municipalities:e})=>e),r=Array.from(new Set((0,a.Bq)(t).map(({name:e})=>e)));if(r.length)return e("search_result_content_type_service_municipality",{count:r.length,single_municipality:r[0]});return e("search_result_content_type_service_regional")}default:return r?e(r):""}},u=(e,t)=>d(e,t.areaType,t.areas,"search_result_content_type_service"),p=e=>{switch(e.fundingType){case"PubliclyFunded":return"service_funding_type_publicly_funded";case"MarketFunded":return"service_funding_type_market_funded";default:return(0,o.xb)(e.fundingType)}},h=e=>{switch(e){case"Service":return"search_result_content_type_service";case"PermitOrObligation":return"search_result_content_type_permission_and_obligation";case"ProfessionalQualification":return"search_result_content_type_professionalqualifications";default:return(0,o.xb)(e)}};function f(e){switch(e){case"EChannel":return"service_channel_echannel";case"Phone":return"service_channel_phone";case"PrintableForm":return"service_channel_printable_form";case"ServiceLocation":return"service_channel_service_location";case"WebPage":return"service_channel_webpage";default:return(0,o.xb)(e)}}let m=(e,t)=>
17[t(h(e.type)),u(t,e),t(p(e))]},88149(e,t,n){"use strict";n.d(t,{a:()=>l,b:()=>o});var r=n(66401),i=n(19477),a=n(85548);let o=e=>t=>{let n=t.addresses;return(0,r.A)(e)||(0,i.A)(n,t=>(0,i.A)(e,e=>("Street"===t.subType||"Single"===t.subType)&&t.streetAddress&&t.streetAddress.municipality&&e===t.streetAddress.municipality.code))},l=e=>t=>(0,r.A)(e)||c(t.areaType)||s(t.areas,e),s=(e,t)=>(0,a.Bq)((0,a.HZ)(e).map(e=>e.municipalities)).some(e=>(0,a.HZ)(t).some(t=>t===e.code)),c=e=>"Nationwide"===e||"NationwideExceptAlandIslands"===e},41884(e,t,n){"use strict";e.exports=n.p+"assets/en.7790b91d4ece2438851c.svg"},95302(e,t,n){"use strict";e.exports=n.p+"assets/fi.51f58e7639892e5388f8.svg"},60294(e,t,n){"use strict";e.exports=n.p+"assets/sv.072ada734989958eba57.svg"},62389(e,t,n){"use strict";e.exports=n.p+"assets/Osaamispolku_en_logo_rgb.e2ace6e3c5246aac1ac6.svg"},58427(e,t,n){"use strict";e.exports=n.p+"assets/Osaamispolku_fi_logo_rgb.ce94d36970d43c09fd38.svg"},56806(e,t,n){"use strict";e.exports=n.p+"assets/Osaamispolku_se_logo_rgb.6237ee9bf8ef072c82b5.svg"},58043(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8300),i=n(83149),a=n(87809),o=n(45572),l=n(52789),s=n(64099);let c=function(e,t,n,c){var d=-1,u=i.A,p=!0,h=e.length,f=[],m=t.length;if(!h)return f;n&&(t=(0,o.A)(t,(0,l.A)(n))),c?(u=a.A,p=!1):t.length>=200&&(u=s.A,p=!1,t=new r.A(t));e:for(;++d<h;){var g=e[d],b=null==n?g:n(g);if(g=c||0!==g?g:0,p&&b==b){for(var v=m;v--;)if(t[v]===b)continue e;f.push(g)}else u(t,b,c)||f.push(g)}return f}},26369(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(8300),i=n(83149),a=n(87809),o=n(45572),l=n(52789),s=n(64099),c=Math.min;let d=function(e,t,n){for(var d=n?a.A:i.A,u=e[0].length,p=e.length,h=p,f=Array(p),m=1/0,g=[];h--;){var b=e[h];h&&t&&(b=(0,o.A)(b,(0,l.A)(t))),m=c(b.length,m),f[h]=!n&&(t||u>=120&&b.length>=120)?new r.A(h&&b):void 0}b=e[0];var v=-1,x=f[0];e:for(;++v<u&&g.length<m;){var y=b[v],w=t?t(y):y;if(y=n||0!==y?y:0,!(x?(0,s.A)(x,w):d(g,w,n))){for(h=p;--h;){var I=f[h];if(!(I?(0,s.A)(I,w):d(e[h],w,n)))continue e}x&&x.push(w),g.push(y)}}return g}},76501(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(53533);let i=function(e){return(0,r.A)(e)?e:[]}},90(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(52528),i=n(13184),a=Object.prototype.hasOwnProperty;let o=(0,i.A)(function(e,t,n){a.call(e,n)?++e[n]:(0,r.A)(e,n,1)})},44757(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58043),i=n(87671),a=n(24326),o=n(53533);let l=(0,a.A)(function(e,t){return(0,o.A)(e)?(0,r.A)(e,(0,i.A)(t,1,o.A,!0)):[]})},17239(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(45572),i=n(26369),a=n(24326),o=n(76501);let l=(0,a.A)(function(e){var t=(0,r.A)(e,o.A);return t.length&&t[0]===e[0]?(0,i.A)(t):[]})},19477(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(63736),i=n(52141),a=n(9501);let o=function(e,t){var n;return(0,a.A)(e,function(e,r,i){return!(n=t(e,r,i))}),!!n};var l=n(92049),s=n(6832);let c=function(e,t,n){var a=(0,l.A)(e)?r.A:o;return n&&(0,s.A)(e,t,n)&&(t=void 0),a(e,(0,i.A)(t,3))}}}]);
18//# sourceMappingURL=3971.13373f9dd6d107a8be36.chunk.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.