1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[126],{20111:(t,e,n)=>{"use strict";function r(t,e){let n={},r=Object.keys(t);for(let o=0;o<r.length;o++){let a=r[o],i=t[a];n[a]=e(i,a,t)}return n}n.d(e,{L:()=>r})},35884:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(50613),o=n(37482),a=n(48741),i=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};function u(t,e){var n,u=(0,r.useContext)(a.A);(0,o.A)(u,"Unable to find TProvider context. Did you wrap your app in <TProvider />?");var c=u.languageFile;if(!t)return t;var l=null!=(n=null==c?void 0:c[t])?n:t;return e?function(t,e){for(var n=[t],o=function(t,e){n=n.flatMap(function(n,o){return"string"==typeof n?function(t,e,n,o){void 0===o&&(o="");var a="{".concat(e,"}"),u=RegExp(a,"g");if("string"==typeof n||"number"==typeof n)return t.replace(u,"".concat(n));var c=t.split(a);return c.reduce(function(t,e,a){return a===c.length-1?i(i([],t,!0),[e],!1):i(i([],t,!0),[e,(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{key:"".concat(o,"-").concat(a)}):n],!1)},[])}(n,t,e,"".concat(o)):n})},a=0,u=Object.entries(e||{});a<u.length;a++){var c=u[a];o(c[0],c[1])}return n}(l,e):l}},48741:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(50613).createContext)(void 0)},56690:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(26065),o=n(50613),a=n(48741);function i(t){return t&&"default"in t?t.default:t}var u=n(68415);function c(t){return JSON.stringify(t)}function l(t){return"string"==typeof t}function f(t,e,n){return n.indexOf(t)===e}function s(t){return -1===t.indexOf(",")?t:t.split(",")}var p=u(function(t){var e=void 0===t?{}:t,n=e.useFallbackLocale,r=e.fallbackLocale,o=[];if("undefined"!=typeof navigator){for(var a=navigator.languages||[],i=[],u=0;u<a.length;u++){var c=a[u];i=i.concat(s(c))}var p=navigator.language,d=p?s(p):p;o=o.concat(i,d)}return(void 0===n||n)&&o.push(void 0===r?"en-US":r),o.filter(l).map(function t(e){if(!e)return e;if("C"===e||"posix"===e||"POSIX"===e)return"en-US";if(-1!==e.indexOf(".")){var n=e.split(".")[0],r=void 0===n?"":n;return t(r)}if(-1!==e.indexOf("@")){var o=e.split("@")[0],r=void 0===o?"":o;return t(r)}if(-1===e.indexOf("-")||e.toLowerCase()!==e)return e;var a=e.split("-"),i=a[0],u=a[1];return"".concat(i,"-").concat((void 0===u?"":u).toUpperCase())}).filter(f)},c);function d(t){return t.includes("-")?t.split("-")[0]:"".concat(t,"-").concat(t.toUpperCase())}function v(t,e){for(var n=0;n<t.length;n++){var r=function(t,e){return e.find(function(e){return e===t||e===d(t)||d(e)===t})||null}(t[n],e);if(r)return r}return null}u(function(t){return p(t)[0]||null},c);var h="undefined"!=typeof document,_={attributeFilter:["lang"],attributes:!0};function g(t){var e=t.children,n=t.defaultLocale,u=t.languageFiles,c=function(t){var e,n,r,a,i,u=t.defaultLocale,c=t.propsLocale,l=t.supportedLocales,f=(n=(e=(0,o.useState)(h?document.documentElement.getAttribute("lang"):null))[0],r=e[1],a=(0,o.useCallback)(function(){r(h?document.documentElement.getAttribute("lang"):null)},[]),(0,o.useEffect)(a,[a]),i=h?document.documentElement:null,(0,o.useEffect)(()=>{if(!i||!("MutationObserver"in window))return;let t=new MutationObserver(a);return t.observe(i,_),()=>{t.disconnect()}},[i,_,a]),n);if(c){var s=v([c],l);if(s)return s}if(f){var d=v([f],l);if(d)return d}var g=v(p(),l);return g||u||null}({defaultLocale:n,propsLocale:t.locale,supportedLocales:u?Object.keys(u):[]}),l=u&&c&&u[c]?u[c]:void 0,f=(0,o.useState)(i(function(t){if(t instanceof Function){var e=t();if(e instanceof Promise)return;return e}return t}(l))),s=f[0],d=f[1];return(0,o.useEffect)(function(){(function(t){if(t instanceof Function){var e=t();return e instanceof Promise?e:Promise.resolve(e)}return Promise.resolve(t)})(l).then(i).then(d)},[l]),(0,r.jsx)(a.A.Provider,{value:{languageFile:s},children:e})}},68391:(t,e,n)=>{"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter(Boolean);return n.length<=1?n[0]||null:function(t){for(var e=0;e<n.length;e++){var r=n[e];"function"==typeof r?r(t):r&&(r.current=t)}}}n.d(e,{A:()=>r})},68415:(t,e,n)=>{var r="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,i="object"==typeof self&&self&&self.Object===Object&&self,u=a||i||Function("return this")(),c=Array.prototype,l=Function.prototype,f=Object.prototype,s=u["__core-js_shared__"],p=function(){var t=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");
1return t?"Symbol(src)_1."+t:""}(),d=l.toString,v=f.hasOwnProperty,h=f.toString,_=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=c.splice,y=A(u,"Map"),m=A(Object,"create");function b(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function x(t,e){for(var n,r,o=t.length;o--;){if(n=t[o][0],n===(r=e)||n!=n&&r!=r)return o}return -1}function w(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function A(t,e){var n,r,a,i=null==t?void 0:t[e];return!(!k(i)||(n=i,p&&p in n))&&("[object Function]"==(a=k(r=i)?h.call(r):"")||"[object GeneratorFunction]"==a||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(i)?_:o).test(function(t){if(null!=t){try{return d.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(i))?i:void 0}function E(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(E.Cache||j),n}function k(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}b.prototype.clear=function(){this.__data__=m?m(null):{}},b.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},b.prototype.get=function(t){var e=this.__data__;if(m){var n=e[t];return n===r?void 0:n}return v.call(e,t)?e[t]:void 0},b.prototype.has=function(t){var e=this.__data__;return m?void 0!==e[t]:v.call(e,t)},b.prototype.set=function(t,e){return this.__data__[t]=m&&void 0===e?r:e,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(t){var e=this.__data__,n=x(e,t);return!(n<0)&&(n==e.length-1?e.pop():g.call(e,n,1),!0)},O.prototype.get=function(t){var e=this.__data__,n=x(e,t);return n<0?void 0:e[n][1]},O.prototype.has=function(t){return x(this.__data__,t)>-1},O.prototype.set=function(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new b,map:new(y||O),string:new b}},j.prototype.delete=function(t){return w(this,t).delete(t)},j.prototype.get=function(t){return w(this,t).get(t)},j.prototype.has=function(t){return w(this,t).has(t)},j.prototype.set=function(t,e){return w(this,t).set(t,e),this}
1,E.Cache=j,t.exports=E},81389:t=>{t.exports={wrapper:"RaCalculator_wrapper__5aRGf"}},84742:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(26065),o=n(61647),a=n(71989),i=n(59923),u=n(56720),c=n(91065),l=n(69707),f=n(30298),s=n(20111),p=n(47634),d=n(50613),v=n(48817),h=n(60867),_=n(81389),g=n.n(_);function y({entryId:t,formId:e,isoLocale:n,onSubmitSuccess:_,strings:y,teamId:m,tocEntry:b}){let{locale:O}=(0,i.P)(),{translate:j}=(0,i.useTranslate)(),x=(0,v.A)("neste_campaign_cookie"),w=(0,p.usePathname)(),{campaign:A,medium:E,source:k,content:C}=(0,h.A)(x),L=(0,d.useMemo)(()=>({media_source:`${k} / ${E}`,media_campaign:A,media_content:C,source_url:c.Z5+(0,a.Lc)(w,O)}),[k,E,A,C,w,O]),P=(0,d.useMemo)(()=>({...y,tonnes:j("tonnes")}),[y,j]),F=(0,d.useMemo)(()=>(0,s.L)(P,t=>t&&"string"!=typeof t?(0,o.i)(t):t),[P]),S=_??l.V;return(0,r.jsx)("div",{className:g().wrapper,...(0,f.$)(b),children:(0,r.jsx)(u.A,{apiUrl:`${c.gV??""}/api/form`,defaultFormData:L,entryId:t,formId:e,locale:n,onSubmitSuccess:S,strings:F,teamId:m})})}}}]);
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.