PageSourceSearch

https://www.workinfinland.com/_next/static/chunks/9930.da4b586c4af2778b.js

js workinfinland.com collected 2026-09-25 14:12:07 UTC 6,172 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9930],{9930:function(e,t,r){r.r(t),r.d(t,{default:function(){return s}});var n=r(2050),a=r(4246),o=r(7378),l=r(8039),i=r(128),d=r(349),c=r(1741);function s(e){var t=e.controlName,r=e.default,s=e.horizontal,m=e.labels,u=e.mandatory,f=e.multiple,h=e.title,p=e.type,g=(0,l.Gc)().control,E=(0,l.cl)().isSubmitting,b=(0,o.useMemo)(function(){return(m||"").split("\n").map(function(e){var t,r=(0,n.Z)(e.split(":"),2);return{label:r[0],value:r[1]}})},[m]),_=(0,o.useCallback)(function(e){return b.filter(function(t){return null==e?void 0:e.split(", ").includes(t.value)})},[b]),C=(0,o.useCallback)(function(e){return e.map(function(e){return e.value}).join(", ")},[]),v=(0,o.useCallback)(function(e,t){return!!e&&(e===t||-1!==e.indexOf(", "+t)||-1!==e.indexOf(t+", "))},[]),k=(0,o.useCallback)(function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return t.split(", ").filter(function(e){return e!==r}).join(", ");if(n)return r;var a=t?t.split(", "):[];return a.push(r),a.join(", ")},[]);return(0,a.jsx)(l.Qr,{control:g,name:t,defaultValue:r,rules:{required:{value:!0,message:"This field is required"}},render:function(e){var r=e.field,n=r.onChange,o=r.value,l=e.fieldState.error;return(0,a.jsxs)(c.Wi,{children:["checkbox"===p&&(0,a.jsxs)("fieldset",{"aria-required":u,"aria-invalid":!!l,style:{border:0,padding:0,margin:0},children:[(0,a.jsx)("legend",{className:"texts__caption",children:h&&(u?"".concat(h," *"):h)}),b.map(function(e,r){return(0,a.jsx)(i.XZ,{label:e.label,name:t,checked:v(o,e.value),onChange:function(t){return n(k(t,o,e.value))},error:!!l},r)})]}),"radio"===p&&(0,a.jsxs)("fieldset",{role:"radiogroup","aria-required":u,"aria-invalid":!!l,style:{border:0,padding:0,margin:0},children:[(0,a.jsx)("legend",{className:"texts__caption",children:h&&(u?"".concat(h," *"):h)}),b.map(function(e,r){return(0,a.jsx)(i.Y8,{label:e.label,name:t,checked:v(o,e.value),onChange:function(t){return n(k(t,o,e.value,!0))},error:!!l},r)})]}),"select"===p&&(0,a.jsx)(d.D,{label:u?"".concat(h," *"):h,name:t,items:b,selectedItems:_(o),onSelectedItemsChange:function(e){return n(C(e))},isMulti:f,className:s?"horizontal-class":"",autoFocus:!1,showFilterInput:!1,disabled:E,size:"large"}),!!l&&(0,a.jsx)("div",{className:"error",role:"alert",children:l.message})]})}})}},1741:function(e,t,r){r.d(t,{Au:function(){return p},C_:function(){return f},Wi:function(){return h},n5:function(){return m}});var n=r(7378),a=r(3406),o=r(8643),l=r(9792),i=r(6230),d=r(6600),c=r(4877);let s={formEditor:"formEditor",formEditorEmployers:"formEditor__employers",formEditorContent:"formEditor__content",formEditorMain:"formEditor__main",formEditorField:"formEditor__field",desktop:"desktop",formEditorAside:"formEditor__aside",formEditorButtons:"formEditor__buttons",formEditorHidden:"formEditor__hidden",formEditorError:"formEditor__error"},m=e=>{let{children:t,header:r,form:l}=e,i=(0,o.u)();return n.createElement("section",{className:(0,a.c)(s.formEditor,i&&s.formEditorEmployers)},r?n.createElement(u,{...r}):null,n.createElement(c.B,{as:"form",...l,topPadding:c.B.Padding.NONE,bottomPadding:c.B.Padding.SMALL,onSubmit:l?.onSubmit},n.createElement(c.B.Content,{flex:!0,className:s.formEditorContent},t)))},u=e=>{let{heading:t,leadText:r,instructions:a}=e,c=(0,o.u)(),{isModalOpen:s,openModal:m,closeModal:u}=(0,i.u)(),f=a?n.createElement("div",{onClick:m,style:{cursor:"pointer"}},n.createElement("p",{dangerouslySetInnerHTML:{__html:r}})):n.createElement("p",{dangerouslySetInnerHTML:{__html:r}});return n.createElement(n.Fragment,null,n.createElement(l.m,{heading:t,leadText:f,backgroundColor:c?"blue":"lightBlue"}),a?n.createElement(d.B,{isVisible:s,closeModal:u,heading:a.heading},n.createElement("p",{dangerouslySetInnerHTML:{__html:a.content}})):null)},f=e=>{let{heading:t,children:r}=e;return n.createElement("fieldset",{className:(0,a.c)(s.formEditorMain),"aria-label":t||"Fieldset"},t?n.createElement("h2",{className:"texts__component_title--bold"},t):null,r)},h=e=>{let{children:t}=e;return n.createElement("div",{className:s.formEditorField},t)},p=e=>{let{children:t}=e;return n.createElement("div",{className:(0,a.c)(s.formEditorButtons)},t)}},9792:function(e,t,r){r.d(t,{m:function(){return i}});var n=r(7378),a=r(3406),o=r(4877);let l={pageHeader:"page-header",pageHeaderBlue:"page-header--blue",pageHeaderLightBlue:"page-header--light-blue",pageHeaderHeading:"page-header__heading",desktop:"desktop",pageHeaderLeadText:"page-header__lead-text"};function i({heading:e,leadText:t,backgroundColor:r,children:i,className:d,...c}){let s="lightBlue"===r?l.pageHeaderLightBlue:l.pageHeaderBlue;return n.createElement(o.B,{"data-testid":"page-header",className:(0,a.c)(l.pageHeader,s,d),topPadding:o.B.Padding.SMALL,...c},n.createElement(o.B.Content,{itemScope:!0},n.createElement("h1",{className:(0,a.c)(a.t.pageHeading,l.pageHeaderHeading)},e)),t&&n.createElement(o.B.Content,{itemScope:!0},n.createElement("div",{className:(0,a.c)(a.t.textsComponentTitle,l.pageHeaderLeadText)},t)),i?n.createElement(o.B.Content,null,i):null)}},6600:function(e,t,r){r.d(t,{B:function(){return c}});var n=r(7378),a=r(3406),o=r(6230),l=r(2007),i=r(6479);let d={bottomSheet:"bottom-sheet",mobile:"mobile",desktop:"desktop",bottomSheetBackdrop:"bottom-sheet__backdrop",bottomSheetHeader:"bottom-sheet__header",bottomSheetCloseButton:"bottom-sheet__close-button",bottomSheetMain:"bottom-sheet__main",bottomSheetFooter:"bottom-sheet__footer"};function c({isVisible:e,closeModal:t,heading:r,children:c,closeLabel:s="Close"}){return e?n.createElement(o.M,{closeModal:t,className:d.bottomSheet,backdropClassName:d.bottomSheetBackdrop},n.createElement("header",{className:d.bottomSheetHeader},n.createElement("h2",{className:a.t.textsComponentTitleBold},r),n.createElement("button",{className:d.bottomSheetCloseButton,onClick:t,title:s},n.createElement(l.I,{icon:l.W.CLOSE,size:20}))),n.createElement("div",{className:d.bottomSheetMain},c),n.createElement("footer",{className:d.bottomSheetFooter},n.createElement(i.B.Secondary,{text:s,onClick:t}))):null}}}]);
2//# sourceMappingURL=9930.da4b586c4af2778b.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.