PageSourceSearch

https://www.w-initiative.com/_next/static/chunks/pages/skjemaer/[slug]-b31833003b647615d3a5.js

js w-initiative.com collected 2026-10-08 20:50:52 UTC 6,577 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[909],{8734:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return Z},default:function(){return E}});var r=n(8893),a=n(2918),o=n(9470),c=n(2809),s=n(219),l=n(809),i=n.n(l),u=n(7294),d=n(2766),m=n(8880),x=n(1932),p=n(4155),f=(0,x.createClient)("6086c3c20304f100014f7f12",{apiToken:p.env.FORMIUM_TOKEN}),g=n(2932),b=n(7384),h=n(5893),v=["type"],j=["label"],y=["label","value","name","id","checked","onChange"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=(0,u.memo)((function(e){var t=e.type,n=(0,s.Z)(e,v);switch(t){case"text":case"email":case"url":return(0,h.jsx)("input",w(w({type:t},n),{},{className:"block w-full text-xs border-0 bg-gray text-dark md:text-base h-9"}));default:return(0,h.jsx)("input",w({type:t},n))}})),O=(0,u.memo)((function(e){return(0,h.jsx)("textarea",w(w({className:"w-full text-xs border-0 bg-gray text-dark md:text-base"},e),{},{rows:5,placeholder:"Type your answer here"}))})),_=(0,u.memo)((function(e){var t=e.children,n=e.description,r=e.error,a=e.label,o=e.labelFor;return(0,h.jsxs)("div",{className:"mt-8 md:mt-10",children:[a&&(0,h.jsx)("label",{className:"block mb-1 text-xs font-bold text-dark md:text-base",htmlFor:o,children:a}),n&&(0,h.jsx)("div",{className:"text-xs text-dark md:text-base",children:n}),t,r&&(0,h.jsx)("div",{className:"block mt-2 text-xs md:text-sm text-dark-red",children:r})]})})),C=w(w({},m._f),{},{TextInput:N,FormControl:_,Textarea:O,Radio:function(e){var t=e.label,n=(0,s.Z)(e,j);return(0,h.jsxs)("label",{className:"inline-flex items-center text-xs text-dark md:text-base",children:[(0,h.jsx)("input",w({className:"border-0  bg-gray",type:"radio"},n)),(0,h.jsx)("span",{className:"ml-2",children:t})]})},SubmitButton:function(e){return(0,h.jsx)("button",w({className:"block w-1/2 p-2 mx-auto mt-6 text-xs rounded-full bg-dark text-cream md:w-3/5 md:text-base md:mt-10",type:"submit"},e))},Checkbox:function(e){var t=e.label,n=e.value,r=e.name,a=e.id,o=e.checked,c=e.onChange,l=(0,s.Z)(e,y);return(0,h.jsxs)("label",{className:"inline-flex items-center text-xs text-dark md:text-base",children:[(0,h.jsx)("input",w({className:"border-0 bg-gray",type:"checkbox",id:a,name:r,checked:o,value:n,onChange:c},l)),(0,h.jsx)("span",{className:"ml-2",children:t})]})},Header:function(e){var t=e.page;return(0,h.jsx)("header",{children:(0,h.jsx)("h1",{style:{display:"inline-flex",alignItems:"center"},children:t.title})})}});var P=function(e){var t=e.title,n=e.intro,r=e.form,a=e.nextPage,c=e.pageColor,s=void 0===c?"green":c,l=(0,u.useState)(!1),x=l[0],p=l[1],v=(0,d.$G)("common").t;return(0,u.useEffect)((function(){window.scroll({top:0,left:0,behavior:"smooth"})}),[x]),x?(0,h.jsxs)("div",{className:"container mx-auto",children:[(0,h.jsx)("div",{className:"px-6 my-24 md:my-32",children:(0,h.jsx)("h1",{className:"text-xl font-light text-center",children:v("applicationRecorded")})}),a&&(0,h.jsx)(g.Z,{nextPage:a})]}):r?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(b.Z,{title:t,intro:n,color:s}),(0,h.jsx)("div",{className:"container flex justify-center px-6 mx-auto my-16 md:my-24",children:(0,h.jsx)(m.jo,{data:r,components:C,onSubmit:function(){var e=(0,o.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.submitForm(null===r||void 0===r?void 0:r.slug,t);case 2:p(!0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})}),a&&(0,h.jsx)(g.Z,{nextPage:a})]}):(0,h.jsx)("p",{children:"Missing form"})},I=n(4399),S=n(1163);var Z=!0,E=function(e){var t=e.data,n=e.preview,o=e.slug,c=e.form,s=e.locale,l=(0,S.useRouter)();if(!l.isFallback&&!t)return(0,h.jsx)(a.default,{statusCode:404});var i=(0,r.$r)(function(e){var t=e.slug,n=e.locale;return(0,I.Z)('\n  "document":  *[_type == "form" && content.slug.current == "'.concat(t,'"][0]{\n    "slug": content.slug.current,\n    "uri": coalesce(parentUri + "/" + content.slug.current, "/" + select(\n      content.slug.current == "/" => "",\n      content.slug.current\n    )),\n    "content": content.').concat(n,' {\n      title,\n      intro\n    },\n    "formiumSlug": content.formiumSlug,\n    "headerImage": content.headerImage.asset->,\n    "pageColor": content.pageColor,\n    "nextPage": content.nextPage->{\n      "slug": content.slug.current,\n      "title": content.').concat(n,'.title\n    },\n    "seo": content.seo {\n      "title": @[').concat(n,'].title,\n      "description": @[').concat(n,'].description,\n      "openGraphImage": openGraphImage {\n        ...,\n        asset->\n      }\n    }\n  }\n'),{slug:t,locale:n})}({slug:o,locale:s}),{params:{slug:o},initialData:t,enabled:n||null!==l.query.preview}).data,u=(i=void 0===i?{}:i).document,d=(u=void 0===u?{}:u).content,m=(d=void 0===d?{}:d).title,x=void 0===m?"":m,p=d.intro,f=void 0===p?"":p,g=u.nextPage,b=void 0===g?{}:g;return c?(0,h.jsx)(P,{title:x,intro:f,form:c,nextPage:b}):(0,h.jsx)("p",{children:"Form is missing"})}},4399:function(e,t,n){"use strict";var r,a=n(2209),o=n(2870),c=n.n(o);t.Z=function(e,t){return c()(r||(r=(0,a.Z)(["\n  {\n    ",',\n    "siteConfig": *[_type == "siteConfig"][0] {\n      "title": content.title,\n      "addressInMenu": content.addressInMenu,\n      "phone": content.phone,\n      "email": content.email,\n      "content": content.',' {\n        mainNavigation[] {\n          _key,\n          title,\n          "pageColor": site->content.pageColor,\n          "uri": coalesce(site->parentUri + "/" + site->content.slug.current, "/" + select(\n            site->content.slug.current == "/" => "",\n            site->content.slug.current\n          ))\n        },\n        footerContent\n      },\n      "fallbackSeoImage": content.fallbackSeoImage{\n        ...,\n        asset->\n      }\n    }\n  }\n'])),e,t.locale)}},2722:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/skjemaer/[slug]",function(){return n(8734)}])}},function(e){e.O(0,[85,662,280,774,888,179],(function(){return t=2722,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.