PageSourceSearch

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

js localazy.com collected 2026-09-24 19:10:01 UTC 6,893 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-112c-7eb0-b9fe-657510e8ba1e")}catch(e){}}();import{n as e}from"./CpQnl5hh.js";import{t}from"./DpyyZxCE2.js";function n(e,t={},n=`en-US`,r=`USD`){return new Intl.NumberFormat(n,{style:`currency`,currency:r,...t}).format(e)}function r(e,t,n=`en-GB`){return new Intl.NumberFormat(n,t).format(e)}var i=class{static getFeaturesForPlan(e,t={}){let{pricingPlanFeatures:n,directusPricingPlans:r,planName:i,stripeProduct:a,isAnnual:o,activeSubscription:s,activeSubscriptionPayPrice:c}=e,l=this.getBaseFeaturesForPlan(n,i);return l.push(this.getSourceKeyFeature(i,a,s,o,c)),t.skipCreditFeatures||(l=[...l,...this.getCreditFeaturesIfExists(a,o)]),l=[...l,...this.getIncludedPlanIfExists(r,i)],l}static getAllFeaturesForPlan(e,t,n,r,i=!1,a={}){let o=t.find(e=>e.stripe_name===n),s=this.getBaseFeaturesForPlan(e,n);for(;o?.includes_plan;)s=[...s,...this.getBaseFeaturesForPlan(e,o.includes_plan.stripe_name)],o=t.find(e=>e.stripe_name===o?.includes_plan?.stripe_name);return s.push(this.getSourceKeyFeature(n,r,void 0,i)),a.skipCreditFeatures||(s=[...s,...this.getCreditFeaturesIfExists(r,i)]),s}static getBaseFeaturesForPlan(e,n){return e.filter(e=>e.pricing_plan?.stripe_name===n).map(e=>({name:e.feature?.name??``,alternativeName:e.feature?.alternative_name??e.feature?.name??``,isReleased:e.feature?.is_released??!1,isBeta:e.feature?.is_beta??!1,isPopular:e.feature?.is_popular??!1,sort:e.sort,comparisonSort:e.comparison_sort,showInPreview:e.show_in_preview,showInPlanPage:e.show_in_plan_page,description:e.feature?.longer_description??``,alternativeDescription:e.feature?.alternative_description??``,value:e.feature?.value??``,featureSection:{name:e.feature_section?.name??t.t(`planDataFeaturesService.other`),comparisonName:e.feature_section?.comparison_name??e.feature_section?.name??t.t(`planDataFeaturesService.other`),sort:e.feature_section?.sort??2**53-1},link:e.feature?.docs_link??``}))}static getSourceKeyFeature(e,n,i,a=!1,o){let s=e===`enterprise`;return{name:t.t(`planDataFeaturesService.source_keys`),alternativeName:t.t(`planDataFeaturesService.source_keys_alternative_name`),isReleased:!0,isBeta:!1,isPopular:!1,isSourceKeys:!0,amount:s?-1:this.getSourceKeyCount(n),sort:0,comparisonSort:0,showInPreview:!0,showInPlanPage:!0,description:t.t(`planDataFeaturesService.source_key_feature_description`),alternativeDescription:t.t(`planDataFeaturesService.source_key_feature_alternative_description`),value:s?t.t(`planDataFeaturesService.custom_source_keys`):t.tc(`planDataFeaturesService.x_source_keys`,this.getSourceKeyCount(n,i),{count:r(this.getSourceKeyCount(n,i))}),featureSection:{name:t.t(`planDataFeaturesService.source_key_feature_section`),comparisonName:t.t(`planDataFeaturesService.source_key_feature_section`),sort:1},link:`https://localazy.com/faq/pricing/what-are-source-keys`,priceOptions:s?void 0:this.getSourceKeyItems({stripeProduct:n,activeSubscriptionPayPrice:o,isAnnual:a})}}static getSourceKeyItems(e){let{stripeProduct:t,activeSubscriptionPayPrice:n,isAnnual:r}=e,i=this.findApiProperty(n,`phrases`),a=i?+(i.split(`:`)[1]??``)+200:200,o=[];return t&&t.prices.filter(e=>r?e.interval===`year`:e.interval===`month`).forEach(e=>{let t=this.findApiProperty(e,`phrases`);if(t){let n=+(t.split(`:`)[1]??``)+200;
1o.push({value:n,priceId:e.id,unitAmount:e.unitAmount,disabled:n<a})}}),o.toSorted((e,t)=>e.value-t.value)}static getSourceKeyCount(e,t){if(e){let n=t&&(t?.productIds||[]).includes(e.id)?t.bundleItems.find(e=>e.includes(`phrases`)):this.findApiProperty(e,`phrases`);if(n)return+(n.split(`:`)[1]??``)+200}return 200}static getCreditFeaturesIfExists(e,r=!1){let i=[],a=this.findApiProperty(e,`virtualContributor`);if(a&&r){let e=+(a.split(`:`)[1]??``);i.push({name:t.t(`planDataFeaturesService.translation_credits`),alternativeName:t.t(`planDataFeaturesService.translation_credits`),isReleased:!0,isBeta:!1,isPopular:!1,credits:e*10,sort:1,comparisonSort:1,showInPreview:!0,showInPlanPage:!0,description:t.t(`planDataFeaturesService.translation_credits_description`),alternativeDescription:t.t(`planDataFeaturesService.translation_credits_alternative_description`),value:t.t(`planDataFeaturesService.translation_credits_per_year`,{count:n(e*10)}),featureSection:{name:t.t(`planDataFeaturesService.translation_credits_feature_section`),comparisonName:t.t(`planDataFeaturesService.translation_credits_feature_section`),sort:2**53-1},link:`https://localazy.com/docs/general/virtual-translator`})}return i}static getIncludedPlanIfExists(e,n){let r=[],i=e.find(e=>e.stripe_name===n);return i?.includes_plan&&r.push({name:t.t(`planDataFeaturesService.included_plan_name`,{planName:i.includes_plan.name}),alternativeName:t.t(`planDataFeaturesService.included_plan_name`,{planName:i.includes_plan.name}),includesAllInPlan:i.includes_plan.name,isReleased:!0,isBeta:!1,isPopular:!1,showInPlanPage:!1,sort:2**53-1,comparisonSort:0,showInPreview:!0,featureSection:{name:t.t(`planDataFeaturesService.other`),comparisonName:t.t(`planDataFeaturesService.other`),sort:2**53-1}}),r}static findApiProperty(e,t){return e?e.metadata.api_property?.split(`,`).find(e=>e.includes(t))??``:``}static findApiPropertyValue(e,t){let n=this.findApiProperty(e,t);return n?n.split(`:`)[1]??``:``}static findPhrasesApiPropertyValue(e){return+this.findApiPropertyValue(e,`phrases`)}static findPhrasesApiPropertyValueTotal(e){return this.findPhrasesApiPropertyValue(e)+200}},a=class{static getAllPlans(t,n){let{directusPlans:r,pricingPlans:a,pricingPlanFeatures:o,isAnnual:s,activeSubscription:c,activeSubscriptionPayPrice:l,includeFree:u}=t;return r.filter(e=>e.stripe_name!==`free`||u).flatMap(t=>{let u=e.findStripeProduct(a,t.stripe_name);return!u&&t.stripe_name!==`free`?[]:[{plan:u,name:t.stripe_name,title:t.name,features:i.getFeaturesForPlan({pricingPlanFeatures:o,directusPricingPlans:r,planName:t.stripe_name,stripeProduct:u,isAnnual:s,activeSubscription:c,activeSubscriptionPayPrice:l},n).filter(e=>e.showInPreview),showPrice:t.show_price??!1,docsLink:t.docs_link,hasTrial:t.has_trial??!1,priceOptions:i.getSourceKeyItems({stripeProduct:u,activeSubscriptionPayPrice:l,isAnnual:s})}]})}static getAllPlansWithAllFeatures(t,n,r,a=!1){return t.filter(e=>e.stripe_name!==`free`).flatMap(o=>{let s=e.findStripeProduct(n,o.stripe_name);return s?[{plan:s,name:o.stripe_name,title:o.name,features:i.getAllFeaturesForPlan(r,t,o.stripe_name,s,a).filter(e=>e.showInPlanPage),showPrice:o.show_price??!1,docsLink:o.docs_link,hasTrial:o.has_trial??!1,priceOptions:i.getSourceKeyItems({stripeProduct:s,activeSubscriptionPayPrice:void 0,isAnnual:a})}]:[]})}};export{n as i,i as n,r,a as t};
2//# chunkId=01a0a213-112c-7eb0-b9fe-657510e8ba1e

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.