1"use strict";(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[1818],{81818(t,e,a){var n=a(53751),u=a(20641),c=(a(62953),a(90033));const l={class:"quantity-selector"},r={class:"quantity-selector__number"},s=["value","disabled"],i={__name:"QuantitySelector",props:{quantity:Number,disabled:Boolean},emits:["increment-quantity","decrement-quantity"],setup(t,e){let a=e.emit;const n=a;function i(){n("increment-quantity")}function o(){n("decrement-quantity")}return(e,a)=>((0,u.uX)(),(0,u.CE)("div",l,[(0,u.Lk)("span",{class:"quantity-selector__button quantity-selector__button--minus",onClick:o},[...a[0]||(a[0]=[(0,u.Lk)("svg",null,[(0,u.Lk)("use",{"xlink:href":"#symbol-minus"})],-1)])]),(0,u.Lk)("span",r,(0,c.v_)(t.quantity),1),(0,u.Lk)("span",{class:"quantity-selector__button quantity-selector__button--plus",onClick:i},[...a[1]||(a[1]=[(0,u.Lk)("svg",null,[(0,u.Lk)("use",{"xlink:href":"#symbol-plus"})],-1)])]),(0,u.Lk)("input",{type:"hidden",name:"quantity",value:t.quantity,disabled:t.disabled},null,8,s)]))}},o={class:"total-credits-amount"},d={class:"total-credits"},v={class:"total-amount"},m={__name:"TotalCreditsAmount",props:{credits:Number,creditsText:String,amount:String,currency:String},setup(t){const e=t,a=(0,u.EW)((()=>"".concat(e.credits," ").concat(e.creditsText))),n=(0,u.EW)((()=>new Intl.NumberFormat(navigator.language,{style:"currency",currency:e.currency}).format(parseFloat(e.amount))));return(t,e)=>((0,u.uX)(),(0,u.CE)("div",o,[(0,u.Lk)("span",d,(0,c.v_)(a.value),1),e[0]||(e[0]=(0,u.Lk)("span",null," - ",-1)),(0,u.Lk)("span",v,(0,c.v_)(n.value),1)]))}};var y=a(50953);const p={__name:"QuantitySelectorApp",setup(t){const e=(0,y.KR)({amount:0,credits:0,creditsText:"CREDITS",currency:"EUR"}),a=(0,y.KR)(1),c=(0,y.KR)(!0),l=(0,y.KR)("#common-form-quantity-selector");document.querySelector("#pack-quantity-selector-app").addEventListener("toggle-app",(t=>{let a=t.detail;e.value.amount=a.price.amount,e.value.credits=a.price.credits,e.value.currency=a.price.currency,e.value.creditsText=a.price.creditsText,c.value=a.disabled,l.value=a.target}),!1),(0,u.wB)(c,(t=>{!0===t&&(a.value=1)}
1)),!0===c.value&&(a.value=1);const r=(0,u.EW)((()=>(e.value.amount*a.value).toFixed(2))),s=(0,u.EW)((()=>e.value.credits*a.value));function o(){a.value++,a.value>=10&&(a.value=10)}function d(){a.value--,a.value<=1&&(a.value=1)}return(t,v)=>((0,u.uX)(),(0,u.Wv)(u.Im,{to:l.value},[(0,u.bo)((0,u.bF)(m,{amount:r.value,credits:s.value,"credits-text":e.value.creditsText,currency:e.value.currency},null,8,["amount","credits","credits-text","currency"]),[[n.aG,!c.value]]),(0,u.bo)((0,u.bF)(i,{quantity:a.value,disabled:c.value,onIncrementQuantity:o,onDecrementQuantity:d},null,8,["quantity","disabled"]),[[n.aG,!c.value]])],8,["to"]))}};(0,n.Ef)(p).mount("#".concat("pack-quantity-selector-app"))}}]);
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.