PageSourceSearch

https://toreboda.se/webapp-resource/4.17e5c29718bfae2e601370e7/360…/1729761454063/webapp-assets.js

js toreboda.se collected 2026-09-24 22:46:04 UTC 15,602 bytes, 3 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'feedback-collector|1.0.1',bundle: {}});
2AppRegistry.registerModule({applicationId:'feedback-collector|1.0.1',path:'/main',module:function(define){'use strict';/*! For license information please see main.js.LICENSE.txt */
3define(["react","react-dom","requester","router"],(function(e,t,r,n){return function(){var o={679:function(e,t,r){"use strict";var n=r(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return n.isMemo(e)?i:c[e.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=i;var p=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var i=l(r);d&&(i=i.concat(d(r)));for(var c=s(t),y=s(r),m=0;m<i.length;++m){var g=i[m];if(!(a[g]||n&&n[g]||y&&y[g]||c&&c[g])){var b=u(r,g);try{p(t,g,b)}catch(e){}}}}return t}},103:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case p:case u:case m:case y:case s:return e;default:return t}}case o:return t}}}function x(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=p,t.ContextProvider=s,t.Element=n,t.ForwardRef=u,t.Fragment=a,t.Lazy=m,t.Memo=y,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===p},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===u},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===y},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===p||e.$$typeof===u||e.$$typeof===b||e.$$typeof===v||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},296:function(e,t,r){"use strict";e.exports=r(103)},703:function(e,t,r){"use strict";var n=r(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},697:function(e,t,r){e.exports=r(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},650:function(t){"use strict";
3t.exports=e},729:function(e){"use strict";e.exports=t},806:function(e){"use strict";e.exports=r},684:function(e){"use strict";e.exports=n}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){"use strict";i.r(c),i.d(c,{default:function(){return P}});var e=i(650),t=i.n(e),r=i(729),n=i.n(r),o=i(697),a=i.n(o),s=i(684),p=i.n(s),l=i(806),d=i.n(l),u=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(t){var r,n;function o(){var e;return(e=t.call(this)||this).handleExpired=e.handleExpired.bind(h(e)),e.handleErrored=e.handleErrored.bind(h(e)),e.handleChange=e.handleChange.bind(h(e)),e.handleRecaptchaRef=e.handleRecaptchaRef.bind(h(e)),e}n=t,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,y(r,n);var a=o.prototype;return a.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},a.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},a.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},a.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var t=this.props,r=(t.sitekey,t.onChange,t.theme,t.type,t.tabindex,t.onExpired,t.onErrored,t.size,t.stoken,t.grecaptcha,t.badge,t.hl,t.isolated,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,u));return e.createElement("div",f({},r,{ref:this.handleRecaptchaRef}))},o}(e.Component);m.displayName="ReCAPTCHA",m.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"]),isolated:a().bool}
3,m.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var g=i(679),b=i.n(g);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}var _={},w=0,x="onloadcallback";function S(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var k,O,E=(k=function(){var e=S(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+x+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+x+"&render=explicit"},O=(O={callbackName:x,globalName:"grecaptcha",attributes:S().nonce?{nonce:S().nonce}:{}})||{},function(t){var r=t.displayName||t.name||"Component",n=function(r){var n,o;function a(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}o=r,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var i=a.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+w++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL=k(),this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=_[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[O.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=O,o=n.globalName,a=n.callbackName,i=n.scriptId;if(o&&void 0!==window[o]&&(_[t]={loaded:!0,observers:{}}),_[t]){var c=_[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var s={};s[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},_[t]={loaded:!1,observers:s};var p=document.createElement("script");for(var l in p.src=t,p.async=!0,O.attributes)p.setAttribute(l,O.attributes[l]);i&&(p.id=i);var d=function(e){if(_[t]){var r=_[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),p.onload=function(){var e=_[t];e&&(e.loaded=!0,d((function(t){return!a&&(t(e),!0)})))},p.onerror=function(){var e=_[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(p)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===O.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=_[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===O.removeOnUnmount&&delete _[e])},i.render=function(){var r=O.globalName,n=this.props,o=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["asyncScriptOnLoad","forwardedRef"]);return r&&"undefined"!=typeof window&&(a[r]=void 0!==window[r]?window[r]:void 0),a.ref=o,(0,e.createElement)(t,a)},a}(e.Component),o=(0,e.forwardRef)((function(t,r){return(0,e.createElement)(n,v({},t,{forwardedRef:r}))}));return o.displayName="AsyncScriptLoader("+r+")",o.propTypes={asyncScriptOnLoad:a().func},b()(o,t)})(m),R=E;const C=r=>{let{texts:n}=r;const[o,a]=(0,e.useState)(""),[i,c]=(0,e.useState)(n.message),[s,l]=(0,e.useState)(!1),[u,f]=(0,e.useState)(null),[h,y]=(0,e.useState)(""),m=(0,e.useRef)(null),[g,b]=(0,e.useState)(!1),v=e=>{f(e),c("true"===e?n.yesPlaceholder:n.noPlaceholder)};return t().createElement("div",{className:"ws-feedback-collector"},s?t().createElement("div",{className:"ws-feedback-collector__container ws-feedback-collector__container--replied"},t().createElement("p",{className:"ws-feedback-collector__feedback"},n.thankyouText)):t().createElement(t().Fragment,null,t().createElement("p",{className:"ws-feedback-collector__title"},i),null===u?t().createElement("div",{className:"ws-feedback-collector__container"},t().createElement("p",{className:"ws-feedback-collector__container__text"},n.text),t().createElement("button",{className:"ws-feedback-collector__container__option","data-like":"true",onClick:()=>v("true")},t().createElement("svg",{width:"24",height:"24",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"xMinYMin"},t().createElement("use",{xlinkHref:"#thumbs-up"})),n.yesOptionText),t().createElement("div",{className:"ws-feedback-collector__container__seperator"}),t().createElement("button",{className:"ws-feedback-collector__container__option","data-like":"false",onClick:()=>v("false")},t().createElement("svg",{width:"24",height:"24",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"xMinYMin"},t().createElement("use",{xlinkHref:"#thumbs-down"})),n.noOptionText)):t().createElement("div",{className:"ws-feedback-collector__form "+("true"===u||"false"===u?"ws-feedback-collector__form--open":"")},t().createElement("textarea",{className:"ws-feedback-collector__textarea",placeholder:"Frivilligt. Ange en e-postadress om du önskar återkoppling.",rows:5,onChange:e=>{a(e.target.value)}}),t().createElement(R,{sitekey:"6LdH6mQqAAAAAB42_6kVA6KfZk-xxZlWwSYFCQwl",onChange:e=>{e?(b(!0),y("")):b(!1)},ref:m}),t().createElement("p",null,h),t().createElement("div",{className:"ws-feedback-collector__submit-wrapper"},t().createElement("input",{type:"button",className:"ws-feedback-collector__submit",value:"Skicka ditt svar till oss!",onClick:()=>{const e=m.current?.getValue();g&&e?d().doPost({url:p().getStandaloneUrl("/verify-captcha"),data:{token:e},contentType:"application/json"}).then((e=>{e.success?(m.current.reset(),d().doPost({url:p().getStandaloneUrl("/vote"),data:{like:"true"===u,useragent:navigator.userAgent,clienthref:window.location.href,message:o}}).then((e=>{l(!0)})).fail((e=>
3{console.log(e),y("Något gick fel, försök igen senare.")}))):y("Verifiering av captchan misslyckades, försök igen senare.")})).fail((e=>{console.error("Captcha verification error",e),y("Något gick fel, försök igen senare.")})):y("Du måste fylla i det här")}})))))};C.propTypes={texts:a().object};var L=C,P=(t,r)=>{n().hydrate(e.createElement(L,t),r)}}(),c}()}));}});

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.