1(()=>{"use strict";var e,t={75333:(e,t,n)=>{var o=n(70538),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"SBKCompetitionStartPage"}},[n("button",{attrs:{type:"button"},on:{click:e.sendPost}},[e._v("Skapa nyhet")]),e._v(" "),n("ul",{staticClass:"newsitems"},e._l(e.newsList,(function(t){return n("li",[e._v(e._s(t))])})),0)])};i._withStripped=!0;var a=n(92137),r=n(87757),s=n.n(r);n(9669),n(70668),n(32046),n(33539);const c={name:"CompetitionStartPage",components:{},props:{content:Object,apiBaseUrl:String},data:function(){return{title:"",newsList:[],onLine:navigator.onLine}},watch:{onLine:function(e){var t=this;if(e&&this.isIOSDevice){if(window.MessageChannel){var n=new MessageChannel;n.port1.onmessage=function(e){t.onMessageSuccess(e)}}else navigator.serviceWorker.onmessage=function(e){t.onMessageSuccess(e)};navigator.serviceWorker.ready.then((function(e){try{e.active.postMessage({text:"sync",port:n&&n.port2},[n&&n.port2])}catch(t){e.active.postMessage({text:"sync"})}}))}}},methods:{addNewsToList:function(e){this.newsList=e},sendPost:function(){return(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("Send post..."),fetch("https://reqres.in/api/users",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},mode:"cors",body:JSON.stringify({name:"morpheus",job:"leader"})}).then((function(e){console.log("Sended data",e)})).catch((function(e){console.log("Error while sending data",e)}));case 2:case"end":return e.stop()}}),e)})))()},isIosDevice:function(){return!!navigator.platform&&/iPad|iPhone|MacIntel|iPod/.test(navigator.platform)&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},created:function(){var e=this;return(0,a.Z)(s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e,new BroadcastChannel("newsData").addEventListener("message",(function(e){n.addNewsToList(JSON.parse(e.data))}));case 3:case"end":return t.stop()}}),t)})))()},metaInfo:function(){return{title:this.title,meta:[{vmid:"description",name:"description",content:this.description}]}}};navigator.serviceWorker.onmessage=function(e){"sync"===e.data.text&&e.waitUntil(syncData().then((function(t){if("empty"!==t)return e.source?e.source.postMessage("doNotification"):e.data.port&&e.data.port.postMessage("doNotification"),t})))};const d=c;var p=(0,n(51900).Z)(d,i,[],!1,null,null,null);p.options.__file="sbk_competition/templates/pages/sbkcompetition/CompetitionStartPage.vue";const l=p.exports;var u=n(32685),h={prod:{aiConnectionString:"InstrumentationKey=ba8652e3-b849-4c55-8bc4-c13342e1d0e0;IngestionEndpoint=https://northeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=dd115195-4456-4ea1-87b3-e19003e6d4c8"},test:{aiConnectionString:"InstrumentationKey=eb9ed4e9-740d-4f95-869f-b35fdc237f5a;IngestionEndpoint=https://northeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=0dbd0710-5d9b-49a0-ab2a-5eb45c20634b"},dev:{aiConnectionString:"InstrumentationKey=eb9ed4e9-740d-4f95-869f-b35fdc237f5a;IngestionEndpoint=https://northeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=0dbd0710-5d9b-49a0-ab2a-5eb45c20634b"}};function f(e){return e in h?h[e]:h.dev}const g={install:function(e,t){var n=f(t.environment),o=new u.R({config:{connectionString:n.aiConnectionString}});o.loadAppInsights(),window.addEventListener("offline",(function(){o.config.disableTelemetry=!0,console.log("Telemetry disabled due to offline status")})),window.addEventListener("online",(function(){o.config.disableTelemetry=!1,console.log("Telemetry re-enabled")})),e.prototype.$appInsights=o}};var v,m,b;o.ZP.config.productionTip=!1;var w={methods:{hashChangeHandler:function(){this.$router.push(window.location.hash.substring(1,window.location.hash.length))},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode}},mounted:function(){this.isIE11()&&window.addEventListener("hashchange",this.hashChangeHandler)},destroyed:function(){this.isIE11()&&window.removeEventListener("hashchange",this.hashChangeHandler)}},y=document.getElementById("SBKCompetitionPageContainer"),S=null!==(v=null==y?void 0:y.dataset.content)&&void 0!==v?v:{},C=null!==(m=null==y?void 0:y.dataset.apibaseurl)&&void 0!==m?m:"",P=null!==(b=null==y?void 0:y.dataset.environment)&&void 0!==b?b:"";o.ZP.prototype.$apiBaseUrl=C,null!=y&&(o.ZP.use(g,{environment:P}),window.competitionPageApp=new o.ZP({el:"#SBKCompetitionPage",template:'<CompetitionStartPage :content="content" :apiBaseUrl="apiBaseUrl" ref="CompetitionStartPage" />',components:{CompetitionStartPage:l},data:function(){return{content:JSON.parse(S),apiBaseUrl:C}},methods:{},mixins:[w]}))},54648:()=>{}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,o),a.exports}o.m=t,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},e=[],o.O=(t,n,i,a)=>
1{if(!n){var r=1/0;for(d=0;d<e.length;d++){for(var[n,i,a]=e[d],s=!0,c=0;c<n.length;c++)(!1&a||r>=a)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(s=!1,a<r&&(r=a));s&&(e.splice(d--,1),t=i())}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,i,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=498,(()=>{var e={498:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,a,[r,s,c]=n,d=0;for(i in s)o.o(s,i)&&(o.m[i]=s[i]);for(c&&c(o),t&&t(n);d<r.length;d++)a=r[d],o.o(e,a)&&e[a]&&e[a][0](),e[r[d]]=0;o.O()},n=self.webpackChunkSBK_Frontend=self.webpackChunkSBK_Frontend||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.O(void 0,[216],(()=>o(75333)));var i=o.O(void 0,[216],(()=>o(54648)));i=o.O(i)})();
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.