PageSourceSearch

https://localazy.com/_nuxt/uo4yDHiO.js

js localazy.com collected 2026-09-24 19:10:05 UTC 3,927 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a213-1198-7112-a66d-f01402de601a")}catch(e){}}();import{Ht as e,On as t,Zn as n,_ as r,b as i,ct as a,g as o,k as s,mt as c,qt as l,tr as u,v as d,vn as f,y as p}from"./B4b-2GOK.js";import{n as m}from"./D9PSDI-Y.js";import{t as h}from"./4sEi9xIk.js";import{i as g,r as _}from"./DQZLXONi.js";var v=class{static resolveSelectedPrice(e){let t=e.plan?.prices.find(t=>e.priceId?t.id===e.priceId:t.interval===e.interval);if(!t)throw Error(`No matching price found for the selected plan and interval`);return t}static resolvePlanPriceRaw(e){let t=e.discount??0,n=(e.price.unitAmount-t)/100;return e.perMonth===!0&&e.price.interval===`year`&&(n/=12),n}static resolvePlanPrice(e){let t=this.resolvePlanPriceRaw(e);return this.getFormattedPrice({price:t,options:e.formatOptions})}static resolveSavings(e){if(e.price.interval!==`year`)return this.getFormattedPrice({price:0,options:e.formatOptions});let t=e.price.unitAmount/100/12,n=e.priceMonthly.unitAmount/100;e.formatOptions?.maximumFractionDigits===0&&(t=Math.ceil(t),n=Math.ceil(n));let r=(n-t)*12;return this.getFormattedPrice({price:r,options:e.formatOptions})}static getFormattedPrice(e){let{price:t}=e;e.options?.maximumFractionDigits===0&&(t=Math.ceil(t));let n=e.options??{minimumFractionDigits:t===Math.round(t)?0:2};return g(t,n)}};function y(e){return e?`/compare-plans`:`/compare-plans?billing=monthly`}function b(){let{t:e}=m();return(t,n)=>n?.source?e(`components.PlanKeySelector.x_source_keys`,{count:_(t)}):e(`components.PlanKeySelector.x_keys`,{count:_(t)})}var x={class:`md:hidden`},S={class:`hidden md:inline`},C={class:`md:hidden`},w={class:`hidden md:inline`},T={key:0,class:`text-secondary`},E=Object.assign(s({__name:`PlanKeySelector`,props:{modelValue:{default:null},isAnnualBilling:{type:Boolean},planData:{},size:{default:`lg`},hidePrice:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(s,{emit:g}){let{t:_}=m(),y=b(),E=s,D=g,O=f(0),k=o(()=>E.planData.priceOptions||[]),A=o(()=>k.value.reduce((e,t)=>{let n=N(t);return n&&e.push({label:y(t.value),sourceLabel:y(t.value,{source:!0}),value:t.value,payPrice:n,priceOption:t}),e},[])),j=o({get(){let e=A.value[O.value];if(!e)throw Error(`Missing PlanKeyVariant`);return e},set(e){O.value=A.value.findIndex(t=>t.value===e.value),D(`update:modelValue`,e.priceOption)}});e(k,()=>{let e=k.value[O.value];e&&D(`update:modelValue`,e)},{deep:!0}),a(()=>{let e=k.value[O.value];e&&D(`update:modelValue`,e)});function M(e){return v.resolvePlanPrice({price:e,perMonth:!0,formatOptions:{maximumFractionDigits:0}})}function N(e){if(E.planData.plan)return v.resolveSelectedPrice({plan:E.planData.plan,interval:E.isAnnualBilling?`year`:`month`,priceId:e.priceId})}return(e,a)=>(c(),d(h,{modelValue:j.value,"onUpdate:modelValue":a[0]||=e=>j.value=e,class:n([`text-secondary-darken-2`,s.size===`sm`?`text-sm`:`text-base`]),"no-details":``,"hide-selected-icon":``,size:s.size,items:A.value,"dropdown-content-classes":`text-base z-40 rounded-sm bg-white shadow-sm font-sans cursor-default overflow-hidden`},{label:l(()=>[r(`span`,x,u(j.value.sourceLabel),1),r(`span`,S,u(j.value.label),1)]),"item-content":l(({item:e,active:a})=>[r(`div`,{class:n([`flex w-full justify-between gap-x-4`,s.size===`sm`?`text-sm`:`text-base`])},[r(`span`,{class:n([`whitespace-nowrap`,{"text-primary":a,"text-secondary-darken-2":!a}])},[r(`span`,C,u(e.sourceLabel),1),r(`span`,w,u(e.label),1)],2),s.hidePrice?p(``,!0):(c(),i(`span`,T,u(t(_)(`components.PlanKeySelector.per_month`,{price:M(e.payPrice)})),1))],2)]),_:1},8,[`modelValue`,`class`,`size`,`items`]))}}),{__name:`PlanKeySelector`});export{v as i,b as n,y as r,E as t};
2//# chunkId=01a0a213-1198-7112-a66d-f01402de601a

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.