PageSourceSearch

https://www.piaget.com/pia/dist/assets/ProductPrice-B50Aqfv7.js

js piaget.com collected 2026-10-02 04:06:13 UTC 4,227 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`103.33.4`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`902c2201-4851-45e3-9d75-c4f48e08af01`,e._sentryDebugIdIdentifier=`sentry-dbid-902c2201-4851-45e3-9d75-c4f48e08af01`)}catch{}})();import{J as e,W as t,_ as n,at as r,k as i,l as a,m as o,u as s,w as c}from"./vue.esm-browser.prod-5A6jiYlW.js";import{l}from"./phx-styleguides-core.esm-C3EIoLTz.js";import"./phx-styleguides-pia.esm-DY3aoq0A.js";import{t as u}from"./get-BC1773bt.js";import{n as d,r as f}from"./vuex.esm-bundler-ByPgnJkN.js";import{n as p}from"./vue-i18n-NSiEyt3c.js";import{PhxsgButton as m}from"./index-COEBWgqN.js";import{t as h}from"./_plugin-vue_export-helper-Dw3DjCdy.js";var g={props:{reference:{type:String,required:!0},showBanner:{type:Boolean,default:!1},productTile:{type:Boolean,default:!1},name:{type:String,default:``},newPage:{type:Boolean,default:!1,required:!1},tracking:{type:Object,default:null},dataCy:{type:String,default:`wishlist-button`},defaultInWishlistIcon:{type:String,default:`heart-full`},internalReference:{type:String,default:``}},data(){return{defaultIcon:`heart`}},computed:{...f(`wishlist`,[`isInWishlist`]),icon(){return this.isInWishlist(this.reference)?this.defaultInWishlistIcon:this.defaultIcon},ariaLabel(){return this.isInWishlist(this.reference)?this.$t(`Accessibility.removeFromWishlist`,{name:this.name}):this.$t(`Accessibility.AddToWishlist`,{name:this.name})},trackingDatalayer(){return JSON.stringify(window.tracking.getWishlistTracking(this.tracking))}},methods:{...d(`wishlist`,[`toggleProduct`])}};o();var _={components:{PhxsgButton:m,PhxIcon:l},mixins:[g],props:{defaultInWishlistIcon:{type:String,default:`heart-full`},algoliaInsights:{type:Object,default:null},newSg:{type:Boolean,default:!1}},computed:{icon(){return this.isInWishlist(this.reference)?this.defaultInWishlistIcon:this.defaultIcon}}},v=[`aria-label`,`title`,`data-tracking`,`data-cy`,`data-algolia-insights`],y={class:`btn__icon btn__icon--start`};function b(t,n,o,l,u,d){let f=r(`PhxsgButton`),p=r(`phx-icon`);return o.newSg?(a(),c(f,{key:0,"icon-id":`phxsg-${d.icon}`,label:t.ariaLabel,"icon-only":``,size:`lg`,"data-tracking":t.trackingDatalayer,"data-cy":t.dataCy,"data-algolia-insights":o.algoliaInsights?JSON.stringify(o.algoliaInsights):null,onClick:n[0]||=e(e=>t.toggleProduct({reference:t.reference,showBanner:t.showBanner}),[`prevent`])},null,8,[`icon-id`,`label`,`data-tracking`,`data-cy`,`data-algolia-insights`])):(a(),s(`button`,{key:1,type:`button`,class:`btn btn--tertiary btn--circle btn--sm btn--icon-only`,"aria-label":t.ariaLabel,title:t.ariaLabel,"data-tracking":t.trackingDatalayer,"data-cy":t.dataCy,"data-algolia-insights":o.algoliaInsights?JSON.stringify(o.algoliaInsights):null,onClick:n[1]||=e(e=>t.toggleProduct({reference:t.reference,showBanner:t.showBanner}),[`prevent`])},[i(`span`,y,[(a(),c(p,{key:d.icon,icon:d.icon,class:`icon--xs`},null,8,[`icon`]))])],8,v))}var x=h(_,[[`render`,b]]),S=()=>{let{t:e}=p();return{localizedPrice:e=>u(e,window.Phoenix.currentCountry),localizedPriceDisplayValue:(t,n=!1,r=!1)=>{if(!t||t.priceOnDemand)return e(`Product.priceOnDemand`);let i=t.currency===`₽`?`text-system`:``,a=r?`<span data-price="currency" class="${i}" data-cy="price-currency">${t.currency}</span>`:t.currency,o=r?`<span data-price="value">${t.text}</span>`:t.text,s=t.shouldDisplayCurrencyFirst?`${a} ${o}`:`${o} ${a}`;return n?e(`Product.priceFrom`,{price:s}):s}}};o();var C=[`innerHTML`],w=t({__name:`ProductPrice`,props:{text:{default:``},value:{default:0},priceOnDemand:{type:Boolean,default:!0},currency:{default:``},shouldDisplayFromPrice:{type:Boolean,default:!1},shouldDisplayCurrencyFirst:{type:Boolean,default:!0},vatInformation:{default:``}},setup(e){let t=e,{localizedPriceDisplayValue:r}=S(),i=n(()=>r({text:t.text,priceOnDemand:t.priceOnDemand,currency:t.currency,shouldDisplayCurrencyFirst:t.shouldDisplayCurrencyFirst},t.shouldDisplayFromPrice,!0));return(e,t)=>(a(),s(`span`,{innerHTML:i.value},null,8,C))}});
1export{S as n,x as r,w as t};
2//# sourceMappingURL=ProductPrice-B50Aqfv7.js.map

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.