1/*! For license information please see 4174.f76cfa7afd90fe9b19dd.js.LICENSE.txt */ 2"use strict";(self.webpackChunk_vkmedia_services_frontrobot=self.webpackChunk_vkmedia_services_frontrobot||[]).push([[4174],{94174(t,n,r){r.r(n),r.d(n,{CargoSelfService:()=>P,default:()=>A});var e=r(77810),o=r(30465),i=r(8483),a=r(30146),u=r(69179),c=r(74047),l=r(82028),s=r(67600),f=r(70233),d=r(80518),h=r(90086),v=r(36726),p=r(22942),x=r(82197),j=r(7092),g=r(30133),w=r(44570),y=r(64922),b=function(t){var n=t.customerServiceUrl;return(0,y.jsxs)(f.FlexVerticalCentered,{children:[(0,y.jsx)(v._,{}),(0,y.jsx)(x.Text,{text:"Bli prenumerant och få:"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(d.Heading,{level:2,textCenter:!0,text:"Rabatt på dina annonser!"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(s.ButtonSolid,{width:j.ButtonWidth.Wrap,onClick:function(){return window.location.href=w.i},children:"Prenumerera nu"}),(0,y.jsx)(v._,{}),(0,y.jsx)(x.Text,{text:"Eller välj att:"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(l.ButtonOutline,{width:j.ButtonWidth.Wrap,onClick:function(){return window.location.href=(0,g.loginUrl)(window.location.href)},children:"Boka till ordinarie pris"}),(0,y.jsx)(p.Q,{}),(0,y.jsx)(l.ButtonOutline,{height:j.ButtonHeight.Small,width:j.ButtonWidth.Wrap,onClick:function(){window.location.href=n},children:"Tillbaka till kundservice"})]})},m=function(t){var n=t.customerServiceUrl;return(0,y.jsxs)(f.FlexVerticalCentered,{children:[(0,y.jsx)(v._,{}),(0,y.jsx)(x.Text,{text:"Till dig som är prenumerant:"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(d.Heading,{level:2,textCenter:!0,text:"Logga in och få rabatt!"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(s.ButtonSolid,{width:j.ButtonWidth.Wrap,onClick:function(){return window.location.href=(0,g.loginUrl)(window.location.href)},children:"Logga in"}),(0,y.jsx)(v._,{}),(0,y.jsx)(x.Text,{text:"Eller välj att:"}),(0,y.jsx)(h.MarginBase,{}),(0,y.jsx)(l.ButtonOutline,{width:j.ButtonWidth.Wrap,onClick:function(){return window.location.href=(0,g.loginUrl)(window.location.href)},children:"Boka till ordinarie pris"}),(0,y.jsx)(p.Q,{}),(0,y.jsx)(l.ButtonOutline,{width:j.ButtonWidth.Wrap,onClick:function(){return window.location.href=(0,g.loginUrl)(window.location.href)},children:"Bli prenumerant"}),(0,y.jsx)(p.Q,{}),(0,y.jsx)(l.ButtonOutline,{height:j.ButtonHeight.Small,width:j.ButtonWidth.Wrap,onClick:function(){window.location.href=n},children:"Tillbaka till kundservice"})]})};function B(){var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,e,o,i){var c=e&&e.prototype instanceof u?e:u,l=Object.create(c.prototype);return S(l,"_invoke",function(r,e,o){var i,u,c,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(n,r){return i=n,u=0,c=t,d.n=r,a}};function h(r,e){for(u=r,c=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,i=s[n],h=d.p,v=i[2];r>3?(o=v===e)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(u=0,d.v=e,d.n=i[1]):h<v&&(o=r<3||i[0]>e||e>v)&&(i[4]=r,i[5]=e,d.n=v,u=0))}if(o||r>1)return a;throw f=!0,e}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,v),u=s,c=v;(n=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(d.n=-1),h(u,c)):d.n=c:d.v=c);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((n=(f=d.n<0)?c:r.call(e,d))!==a)break}catch(n){i=t,u=1,c=n}finally{l=1}}return{value:n,done:f}}}(r,o,i),!0),l}var a={};function u(){}function c(){}function l(){}n=Object.getPrototypeOf;var s=[][e]?n(n([][e]())):(S(n={},e,function(){return this}),n),f=l.prototype=u.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,S(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,S(f,"constructor",l),S(l,"constructor",c),c.displayName="GeneratorFunction",S(l,o,"GeneratorFunction"),S(f),S(f,o,"Generator"),S(f,e,function(){return this}),S(f,"toString",function(){return"[object Generator]"}),(B=function(){return{w:i,m:d}})()}function S(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}S=function(t,n,r,e){function i(n,r){S(t,n,function(t){return this._invoke(n,r,t)})}n?o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r:(i("next",0),i("throw",1),i("return",2))},S(t,n,r,e)}function k(t,n,r,e,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?n(c):Promise.resolve(c).then(e,o)}function _(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;
2!(c=(e=i.call(r)).done)&&(u.push(e.value),u.length!==n);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return O(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}var C=function(t){return t[t.NotAuthenticated=401]="NotAuthenticated",t[t.NotAuthorized=403]="NotAuthorized",t[t.Success=200]="Success",t[t.Error=500]="Error",t[t.Pending=0]="Pending",t}(C||{}),T="https://kundservice.".concat(a._P,".se/annonsera/"),W=function(){var t=_(e.useState(C.Pending),2),n=t[0],r=t[1],a=_(e.useState(),2),u=a[0],c=a[1];return e.useEffect(function(){var t=function(){var t,n=(t=B().m(function t(){var n,e,a;return B().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,fetch("".concat(i.H8,"/cargo-discount"),{credentials:"include"});case 1:return n=t.v,t.n=2,n.json();case 2:e=t.v,c(e),r(n.status),t.n=4;break;case 3:t.p=3,(a=t.v)instanceof o.h?r(a.status):r(C.Error);case 4:return t.a(2)}},t,null,[[0,3]])}),function(){var n=this,r=arguments;return new Promise(function(e,o){var i=t.apply(n,r);function a(t){k(i,e,o,a,u,"next",t)}function u(t){k(i,e,o,a,u,"throw",t)}a(void 0)})});return function(){return n.apply(this,arguments)}}();t()},[]),{status:n,data:u}},P=function(){var t=W(),n=t.status,r=t.data;return n===C.Pending?(0,y.jsx)(c.w,{}):n===C.NotAuthenticated?(0,y.jsx)(m,{customerServiceUrl:T}):n===C.Success?(0,y.jsx)(u.t,{location:r.redirectUrl}):(0,y.jsx)(b,{customerServiceUrl:T})};const A=P},36726(t,n,r){n._=void 0;var e=r(77810),o=r(66443),i=r(17984);n._=function(){return e.createElement(i.Margin,{size:o.Spacing.Large2x})},n._.displayName="MarginLarge2x"}}]);
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.