vendor: 4,397 bytes, lines 1-2
1/*! For license information please see 190.476ad0880d1f83990702.js.LICENSE.txt */ 2"use strict";(self.webpackChunkpeterjustesen=self.webpackChunkpeterjustesen||[]).push([[190],{190:function(t,e,r){r.r(e),r.d(e,{default:function(){return x}});var n=r(425),o={role:"listbox",id:"currency-listbox",class:"pj-currency-selector__listbox"},i=["onClick","aria-selected"],c={key:0,class:"pj-currency-selector__selected"},u=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},[(0,n.Lk)("path",{stroke:"#212C62","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.333 4 6 11.333 2.667 8"})],-1)],a={role:"listbox",id:"currency-listbox",class:"pj-currency-selector__listbox"},s=["onClick","aria-selected"],l={key:0,class:"pj-currency-selector__selected"},f=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},[(0,n.Lk)("path",{stroke:"#212C62","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.333 4 6 11.333 2.667 8"})],-1)];var h=r(761),p=r(39),y=r(968),d=r(89),v=r(292);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(){m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,c=Object.create(i.prototype),u=new F(n||[]);return o(c,"_invoke",{value:O(t,r,u)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function w(){}function b(){}function k(){}var x={};s(x,c,(function(){return this}));var L=Object.getPrototypeOf,_=L&&L(L(T([])));_&&_!==r&&n.call(_,c)&&(x=_);var E=k.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,c,u){var a=f(t[o],t,i);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"==g(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(a.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var a=S(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var c=i.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(g(e)+" is not iterable")}return b.prototype=k,o(E,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:b,configurable:!0}),b.displayName=s(k,a,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s(t,a,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),s(j.prototype,u,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var c=new j(l(t,r,n,o),i);return e.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},C(E),s(E,a,"Generator"),s(E,c,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(a&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function w(t,e,r,n,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void r(t)}u.done?e(a):Promise.resolve(a).then(n,o)}var b={name:"CurrencySelector",components:{DropdownButton:(0,n.$V)((function(){return r.e(608).then(r.bind(r,846))})),Notification:h.A},props:{buttonLabel:{type:String,required:!1},modifier:{type:String,default:""}},setup:function(){var t=(0,p.s)(),e=(0,d.j)().isMobile,r=(0,n.EW)((function(){return t.currency})),o=(0,n.EW)((function(){return t.currencies})),i=(0,y.s)({url:"/currency/update-selected-currency",disableFetchOnMount:!0}),c=i.error,u=i.sendRequest,a=function(){var t,e=(t=m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,u({method:"POST",body:e});case 5:window&&window.location.reload(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),(0,v.v)("Unable to update selected currency",t.t0);case 11:case"end":return t.stop()}}),t,null,[[2,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){w(i,n,o,c,u,"next",t)}function u(t){w(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(t){return e.apply(this,arguments)}}();return{currencies:o,isMobile:e,error:c,selectedCurrency:r,selectCurrency:a}}},k=b;var x=(0,r(262).A)(k,[["render",function(t,e,r,h,p,y){var d,v=(0,n.g2)("Notification"),g=(0,n.g2)("DropdownButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,n.C4)(["pj-currency-selector",t.modifier])},[t.error?((0,n.uX)(),(0,n.Wv)(v,{key:0,message:"Unable to change the currency"})):(0,n.Q3)("v-if",!0),(0,n.bF)(g,{modifier:"pj-currency-selector__button",buttonText:null!==(d=t.buttonLabel)&&void 0!==d?d:t.selectedCurrency,alignDropdownLeft:!0,ariaControl
2s:"currency-listbox"},(0,n.eX)({dropdownContent:(0,n.k6)((function(){return[(0,n.Lk)("div",o,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.currencies,(function(e){var r=e.code,o=e.name;return(0,n.uX)(),(0,n.CE)("button",{key:r,onClick:function(e){return t.selectCurrency(r)},class:"pj-currency-selector__option","aria-selected":r===t.selectedCurrency},[(0,n.Lk)("strong",null,(0,n.v_)(r),1),(0,n.eW)(" Â "+(0,n.v_)(o)+" ",1),r===t.selectedCurrency?((0,n.uX)(),(0,n.CE)("span",c,u)):(0,n.Q3)("v-if",!0)],8,i)})),128))])]})),_:2},[t.isMobile?{name:"customDropdown",fn:(0,n.k6)((function(){return[(0,n.Lk)("div",a,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.currencies,(function(e){var r=e.code,o=e.name;return(0,n.uX)(),(0,n.CE)("button",{key:r,onClick:function(e){return t.selectCurrency(r)},class:"pj-currency-selector__option","aria-selected":r===t.selectedCurrency},[(0,n.Lk)("strong",null,(0,n.v_)(r),1),(0,n.eW)(" Â "+(0,n.v_)(o)+" ",1),r===t.selectedCurrency?((0,n.uX)(),(0,n.CE)("span",l,f)):(0,n.Q3)("v-if",!0)],8,s)})),128))])]})),key:"0"}:void 0]),1032,["buttonText"])],2)}]])}}]);
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.