1import{aL as g,_ as U,y as N,aM as _,z as B,x as L,u as M,H as z,c as s,I as V,o as n,A as F,l as f,b as o,t as d,G as x}from"./c7hq37oz.js";import{c as l}from"./je1q5omb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e3538648-3c5a-49e7-9597-245bbd9aa0ba",e._sentryDebugIdIdentifier="sentry-dbid-e3538648-3c5a-49e7-9597-245bbd9aa0ba")}catch{}})();function Z(e,r,t,T){for(var i=-1,u=e==null?0:e.length;++i<u;)t=r(t,e[i],i,e);return t}function j(e){return function(r){return e==null?void 0:e[r]}}var W={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}
1,H=j(W),G=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,J="\\u0300-\\u036f",K="\\ufe20-\\ufe2f",Y="\\u20d0-\\u20ff",q=J+K+Y,Q="["+q+"]",X=RegExp(Q,"g");function $(e){return e=g(e),e&&e.replace(G,H).replace(X,"")}var ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function re(e){return e.match(ee)||[]}var ue=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function te(e){return ue.test(e)}var y="\\ud800-\\udfff",ie="\\u0300-\\u036f",ae="\\ufe20-\\ufe2f",se="\\u20d0-\\u20ff",ne=ie+ae+se,P="\\u2700-\\u27bf",C="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",oe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",de="\\u2000-\\u206f",le=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="A-Z\\xc0-\\xd6\\xd8-\\xde",fe="\\ufe0e\\ufe0f",w=ce+oe+de+le,S="['â]",m="["+w+"]",xe="["+ne+"]",R="\\d+",me="["+P+"]",A="["+C+"]",D="[^"+y+w+R+P+C+v+"]",he="\\ud83c[\\udffb-\\udfff]",pe="(?:"+xe+"|"+he+")",be="[^"+y+"]",I="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+v+"]",ge="\\u200d",h="(?:"+A+"|"+D+")",ye="(?:"+c+"|"+D+")",p="(?:"+S+"(?:d|ll|m|re|s|t|ve))?",b="(?:"+S+"(?:D|LL|M|RE|S|T|VE))?",O=pe+"?",k="["+fe+"]?",Pe="(?:"+ge+"(?:"+[be,I,E].join("|")+")"+k+O+")*",Ce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",we=k+O+Pe,Se="(?:"+[me,I,E].join("|")+")"+we,Re=RegExp([c+"?"+A+"+"+p+"(?="+[m,c,"$"].join("|")+")",ye+"+"+b+"(?="+[m,c+h,"$"].join("|")+")",c+"?"+h+"+"+p,c+"+"+b,ve,Ce,R,Se].join("|"),"g");function Ae(e){return e.match(Re)||[]}function De(e,r,t){return e=g(e),r=r,r===void 0?te(e)?Ae(e):re(e):e.match(r)||[]}var Ie="['â]",Ee=RegExp(Ie,"g");function Oe(e){return function(r){return Z(De($(r).replace(Ee,"")),e,"")}}var Fe=Oe(function(e,r,t){return e+(t?" ":"")+r.toUpperCase()});const ke={name:"PriceTag",props:{prices:{type:Object,required:!0},amount:{type:Number,default:1},taxClass:{type:Number,default:5},forceClubPrice:{type:Boolean,default:!1},hideTax:{type:Boolean,default:!1},hideComparison:{type:Boolean,default:!1},allowDiscount:{type:Boolean,default:!0},showDefaultCurrency:{type:Boolean,default:!1},invert:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},noColor:{type:Boolean,default:!1},showComparisonText:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},emits:["update:price"],data(){return{eurCurrencyFormat:{symbol:"â¬",pattern:"# !",negativePattern:"-# !",precision:2},editingPrice:!1,newPrice:null}},computed:{...N(M,L,B),decimal(){return["fi","se"].includes((this.configStore||{}).languageCode)?",":"."},separator(){return["fi","se"].includes((this.configStore||{}).languageCode)?"":","},simplePrices(){return this.prices.active?this.prices:_(this.prices,this.configStore.taxAreaId,this.allowDiscount)},currentPrice(){return["discount","outdoor","outlet"].includes(this.simplePrices.active)&&this.simplePrices.discount!=null?this.simplePrices.discount:this.useClubPrice?this.simplePrices.club:this.simplePrices.normal||this.simplePrices.regular},current(){let e=l((this.currentPrice*1e3).toFixed(0),this.configStore.currencyFormat).multiply(this.amount).multiply(this.configStore.currencyRate).divide("1000").format(!0);return this.formatPrice(e)},currentDefaultCurrencyValue(){let e=l(this.currentPrice,this.eurCurrencyFormat).multiply(this.amount).format(!0);return this.formatPrice(e)},comparison(){if(this.simplePrices.active==="discount"||this.useClubPrice){let e=l((this.simplePrices.regular*1e3).toFixed(0),this.configStore.currencyFormat).multiply(this.amount).multiply(this.configStore.currencyRate).divide("1000").format(!0);return this.formatPrice(e)}else return!1},original(){if(this.comparison){let e=l((this.simplePrices.original*1e3).toFixed(0),this.configStore.currencyFormat).multiply(this.amount).multiply(this.configStore.currencyRate).divide("1000").format(!0);return this.formatPrice(e)}else return!1},useClubPrice(){return this.simplePrices.active==="club"&&this.authStore.user.isAuthenticated||this.forceClubPrice&&this.simplePrices.club},taxPercent(){const e=this.baseStore.taxRates.find(r=>r.taxAreaId===this.configStore.taxAreaId&&r.taxClassId===this.taxClass);return e?e.percentage:"??"},showDefaultCurrencyValue(){return this.showDefaultCurrency&&this.configStore.currencyCode!=="eur"},isDeliveryToFinland(){return this.configStore.deliveryCountryCode==="fi"},hideComparisionClubPrice(){return this.forceClubPrice&&this.currentPrice>=this.simplePrices.regular}},methods:{startEditingPrice(){this.editable&&(this.editingPrice=!0,this.newPrice=this.currentPrice)},saveNewPrice(){this.editingPrice=!1,this.$emit("update:price",this.newPrice)},formatPrice(e){return e.replace(/([.,]00)(?!\d)/,"")}}},Te={key:0,class:"extra"},Ue={key:0,class:"comparison"},Ne={key:0},_e={class:"line-through"},Be={key:1,class:"tax"},Le={key:2,class:"in-euros"};function Me(e,r,t,T,i,u){return i.editingPrice?z((n(),s("input",{key:0,"onUpdate:modelValue":r[0]||(r[0]=a=>i.newPrice=a),type:"number",class:"price-input","data-test":"price-input",onBlur:r[1]||(r[1]=(...a)=>u.saveNewPrice&&u.saveNewPrice(...a)),onKeydown:r[2]||(r[2]=F((...a)=>u.saveNewPrice&&u.saveNewPrice(...a),["enter"]))},null,544)),[[V,i.newPrice]]):(n(),s("div",{key:1,class:x(["PriceTag",{"-discount":u.simplePrices.active==="discount","-club":u.useClubPrice,"-outdoor":u.simplePrices.active==="outdoor","-outlet":u.simplePrices.active==="outlet","-invert":t.invert,"-inline":t.inline,"-hide":e.configStore.status!=="DONE"}]),onClick:r[3]||(r[3]=(...a)=>u.startEditingPrice&&u.startEditingPrice(...a))},[f("div",{class:x(["price",{"price-color":!t.noColor}])},d(u.current),3),!t.hideTax&&u.taxPercent!="??"||!t.hideComparison&&u.comparison||u.showDefaultCurrencyValue&&u.currentDefaultCurrencyValue?(n(),s("div",Te,[u.comparison&&!t.hideComparison&&!u.hideComparisionClubPrice?(n(),s("div",Ue,[t.showComparisonText&&u.isDeliveryToFinland?(n(),s("span",Ne,d(e.$t("Lowest price for 30 days")+" "),1)):o("",!0),f("span",_e,d(u.comparison),1)])):o("",!0),t.hideTax?o("",!0):(n(),s("div",Be,d(e.$t("Incl. VAT",{amount:u.taxPercent})),1)),u.showDefaultCurrencyValue?(n(),s("div",Le,d(u.currentDefaultCurrencyValue),1)):o("",!0)])):o("",!0)],2))}const Ze=U(ke,[["render",Me],["__scopeId","data-v-5fb50145"]]);export{Ze as P,Fe as u};
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.