PageSourceSearch

https://www.pressloft.com/app/build/assets/PricingGrid-Dpxx5_QB.js

js pressloft.com collected 2026-10-02 03:31:25 UTC 12,201 bytes, 1 lines download raw bytes

1import{$ as n}from"./jquery-C6dykQkE.js";import{P as l}from"./PricingGridImageCapSlider-QRFlEcJW.js";import{n as i}from"./_plugin-vue2_normalizer-p4i_2SC9.js";const c={props:{item:{type:Object,required:!0},accountType:{type:String,default:"brands"},client:{default:null},promoCode:{type:String,default:""},currency:{type:Object,required:!0},contractTerm:{type:String,required:!0},contractTermDiscount:{type:Number,required:!0},selectedImageCap:{type:Number,required:!0},translations:{type:Object,required:!0}},methods:{handleCtaLinkClick(){if(!this.maxImageCapExceeded){if(this.ctaButtonLink.startsWith("https")){window.open(this.ctaButtonLink,"_blank");return}window.location.href=this.ctaButtonLink}}},computed:{featuresHeading(){return this.item.features_heading.replace("[SPAN]",'<span class="text-coverage-100">').replace("[/SPAN]","</span>")+":"},minImageCapNotReached(){return this.item.min_image_cap>this.selectedImageCap&&!this.item.custom_pricing},maxImageCapExceeded(){return this.item.max_image_cap<this.selectedImageCap&&!this.item.custom_pricing},multiClientDiscountAvailable(){return this.accountType=="agency"&&typeof this.item.multi_client_discount_label=="string"},imageCapPrices(){return this.item.image_cap_prices.reduce((a,t)=>(a[t.cap]={basePrice:t.base_monthly_price,discountPrice:t.discount_prices},a),{})},basePrice(){return parseFloat(this.imageCapPrices[this.selectedImageCap].basePrice.price)},discountedPrice(){return parseFloat(this.imageCapPrices[this.selectedImageCap].discountPrice[this.contractTerm].price)},baseDisplayPrice(){return this.imageCapPrices[this.selectedImageCap].basePrice.display_price},discountedDisplayPrice(){return this.imageCapPrices[this.selectedImageCap].discountPrice[this.contractTerm].display_price},onLegacyPlan(){return this.client===null||this.client.atype==2&&this.client.current_plan===null},currentPlan(){return this.client===null||this.onLegacyPlan?!1:this.client.membership_option===this.item.code&&this.client.atype<3},isDowngrade(){return this.client===null||this.onLegacyPlan||this.client.atype>2||this.item.custom_pricing==1?!1:this.discountedPrice<this.client.billing_monthly_total},ctaAvailable(){if(this.maxImageCapExceeded||this.minImageCapNotReached)return!1;if(this.client===null)return!0;const a=this.isDowngrade,t=this.client.account_term,e=parseInt(this.client.atype),s=this.selectedImageCap,r=parseInt(this.client.image_loft_
1cap);return!(this.currentPlan&&s==r||a&&t=="a"&&e===2)},ctaButtonText(){if(this.maxImageCapExceeded)return this.translations.labels.imageCapExceeded;if(this.minImageCapNotReached)return this.translations.labels.notEnoughImages;if(this.client===null||this.item.custom_pricing)return this.item.pre_login_cta_button_text;const a=parseInt(this.client.atype),t=this.isDowngrade,e=this.selectedImageCap,s=parseInt(this.client.image_loft_cap);if(this.currentPlan&&e==s)return this.translations.buttons.currentPlan;if(t)return this.translations.buttons.downgrade;if(a==2)return this.translations.buttons.upgrade;if(a>=3)return this.translations.buttons.purchase},ctaButtonLink(){if(this.client!==null&&!this.item.custom_pricing){let t=`/app/admin/membership/confirm?ccid=${this.client.ccid}&package=${this.item.code}&contract_term=${this.contractTerm}&numimages=${this.selectedImageCap}`;return this.promoCode!==""&&(t+=`&code=${this.promoCode}`),t}let a=this.item.pre_login_cta_button_link.replace("[PACKAGE]",this.item.code).replace("[CONTRACT_TERM]",this.contractTerm);return this.accountType==="agency"&&(a+="&minClients=2&numClients=5&agency=y&atype=p"),a}}};var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"relative bg-white shadow rounded-lg border border-grey-25 flex flex-col justify-between hover:border-coverage-100 hover:shadow-lg transition-all"},[t.currentPlan?e("div",{staticClass:"absolute w-full text-center -top-3.5 left-0 z-10"},[e("div",{staticClass:"tag tag-alert bg-coverage-gradient rounded-full"},[e("span",{staticClass:"text-xs"},[t._v(t._s(t.translations.labels.currentPlan))])])]):t._e(),e("div",[e("div",{staticClass:"relative flex items-center justify-center h-40 p-6 bg-grey-gradient rounded-t-lg"},[e("div",{staticClass:"text-center"},[e("i",{class:`fa-regular fa-${t.item.fa_icon} fa-lg text-coverage-100`}),e("h3",{staticClass:"mt-2 text-lg font-semibold text-grey-90"},[t._v(t._s(t.item.name))]),e("p",{staticClass:"text-xs text-grey-70 mt-2"},[t._v(t._s(t.item.description))])]),t.multiClientDiscountAvailable?e("div",{staticClass:"absolute -bottom-3 text-center w-full"},[e("div",{staticClass:"tag tag-s tag-coverage !font-semibold"},[t._v(t._s(t.item.multi_client_discount_label))])]):t._e()]),e("div",{staticClass:"flex flex-col justify-between border-b border-grey-25 text-center px-4 pb-4 h-32"},[e("div",{staticClass:"h-full flex justify-center items-center"},[!t.maxImageCapExceeded&&!t.minImageCapNotReached?[t.item.custom_pricing?e("p",{staticClass:"text-grey-90"},[t._v(t._s(t.translations.labels.customPricing))]):e("p",{staticClass:"relative",class:{"mt-2":t.multiClientDiscountAvailable}},[t.discountedPrice<t.basePrice?e("span",{staticClass:"text-right text-xl text-grey-30 line-through mr-2 2xl:text-2xl",domProps:{innerHTML:t._s(t.baseDisplayPrice)}}):t._e(),e("span",{staticClass:"text-grey-90 font-medium text-2xl inline-block 2xl:text-3xl",domProps:{innerHTML:t._s(t.discountedDisplayPrice)}}),e("span",{staticClass:"text-sm text-grey-50 font-normal"},[t._v("/ mth")])])]:t.maxImageCapExceeded?e("div",[e("p",{staticClass:"text-grey-70 text-xs"},[t._v(t._s(t.translations.labels.imageLimitExceeded))]),e("p",{staticClass:"text-grey-70 text-xs"},[t._v(t._s(t.translations.labels.planAllowsNImages.replace("[PLAN]",t.item.name).replace("[AMOUNT]",t.item.max_image_cap)))])]):e("div",[e("p",{staticClass:"text-grey-70 text-xs"},[t._v(t._s(t.translations.labels.pleaseSelectMoreImages.replace("[MIN]",t.item.min_image_cap)))])])],2),e("button",{staticClass:"tw-btn tw-btn-p tw-btn-sm tw-btn-coverage w-full",attrs:{disabled:!t.ctaAvailable},on:{click:t.handleCtaLinkClick}}
1,[t._v(t._s(t.ctaButtonText)+" "),t.maxImageCapExceeded?t._e():e("i",{class:`fa-regular fa-${t.item.pre_login_cta_button_icon}`})])]),e("div",{staticClass:"p-6"},[e("h4",{staticClass:"text-sm font-medium text-grey-90",domProps:{innerHTML:t._s(t.featuresHeading)}}),e("ul",t._l(t.item.features,function(s){return e("li",{staticClass:"text-grey-90 text-xs mt-2 flex"},[e("i",{staticClass:"fa-regular fa-check text-accent-100 mr-2 relative top-1"}),t._v(" "),e("span",[t._v(t._s(s.translation))])])}),0)])]),t.item.book_demo_url!==null&&t.client===null?e("div",{staticClass:"text-center pb-6"},[e("a",{staticClass:"text-sm text-coverage-100 hover:text-coverage-110 hover:underline",attrs:{href:t.item.book_demo_url,target:"_blank"}},[t._v(t._s(t.translations.labels.bookADemo))])]):t._e()])},p=[],m=i(c,o,p,!1,null,null);const u=m.exports,d={components:{PricingGridPlanItem:u,PricingGridImageCapSlider:l},props:{propData:{type:Object,required:!0}},data(){return{translations:this.propData.translations,accountType:this.propData.accountType,contractTerm:this.propData.contractTerm,memberships:this.propData.memberships,selectedImageCap:this.propData.imageCapScale[this.propData.initialScaleStep],client:typeof this.propData.client<"u"?this.propData.client:null}},computed:{contractTermDiscount(){return this.contractTerm=="a"?.2:0},overCapGetInTouchLabel(){return this.translations.labels.increaseOverCapContactUs.replace("[CAP]",this.selectedImageCap).replace("[SPAN]",'<span class="get-in-touch cursor-pointer text-coverage-100 hover:underline">').replace("[/SPAN]","</span>")}},methods:{setContractTerm(a){this.contractTerm=a},handleCapUpdated(a){this.selectedImageCap=a}},mounted(){n(document).on("click",".get-in-touch",function(){window.Intercom("showNewMessage")})}};var g=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"flex flex-col-reverse lg:block"},[t.client===null?e("div",{staticClass:"my-6 text-center lg:text-right lg:mt-6 lg:my-0"},[e("ul",{staticClass:"tabs tabs-coverage"},[e("a",{attrs:{href:"/app/pricing"}},[e("li",{class:{active:t.accountType=="brand"}},[e("span",[t._v(t._s(t.translations.labels.brand))])])]),e("a",{attrs:{href:"/app/pricing/agencies"}},[e("li",{class:{active:t.accountType=="agency"}},[e("span",[t._v(t._s(t.translations.labels.agency))])])])])]):t._e(),t.client===null?e("h1",{staticClass:"mt-8 text-center text-grey-90 font-medium text-xl lg:text-3xl lg:mt-0"},[t._v(t._s(t.translations.title))]):t._e()]),e("p",{staticClass:"text-center text-grey-90 text-sm lg:text-lg lg:mt-4"},[t._v(t._s(t.translations.labels.howManyImages))]),e("div",{staticClass:"mx-auto px-8 lg:px-0 lg:w-[1000px] mt-8"},[e("PricingGridImageCapSlider",{attrs:{step:t.propData.initialScaleStep,scale:t.propData.imageCapScale,locale:t.propData.territory.locale},on:{"cap-updated":t.handleCapUpdated}})],1),t.selectedImageCap>=2e3?e("div",{staticClass:"text-left mt-12 md:text-center"},[e("p",{staticClass:"alert alert-coverage w-fit mx-auto"},[e("i",{staticClass:"far fa-info-circle"}),t._v(" "),e("span",{domProps:{innerHTML:t._s(t.overCapGetInTouchLabel)}})])]):t._e(),e("div",{staticClass:"mt-12"},[t.client===null?e("h2",{staticClass:"text-grey-90 lg:text-2xl text-center font-semibold"},[t._v(t._s(t.translations.labels.yourPrPlanOptions))]):t._e(),e("div",{staticClass:"mx-auto max-w-7xl lg:mt-6"},[t.client===null||t.client.atype>2||t.client.legacy_membership_count>0&&t.client.account_term==="m"?e("div",{staticClass:"lg:grid lg:grid-cols-3"},[e("p",{staticClass:"mt-4 mb-6 text-center text-sm text-grey-80 lg:text-base lg:justify-between lg:tw-hidden"},[t._v(t._s(t.translations.labels.tailoredForNImages.replace("[COUNT]",this.selectedImageCap.toLocaleString(t.propData.territory.locale))))]),e("ul",{staticClass:"w-full text-center lg:text-left tabs tabs-coverage lg:mb-0"},[e("a",{attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.setContractTerm("a")}}},[e("li",{class:{active:t.contractTerm=="a"}},[e("span",[t._v(t._s(t.translations.labels.annual)+" "),e("div",{staticClass:"tag tag-s tag-coverage !font-semibold ml-1"},[t._v(t._s(t.translations.labels["20PercentOff"]))])])])]),e("a",{attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.setContractTerm("m")}}},[e("li",{class:{active:t.contractTerm=="m"}},[e("span",[t._v(t._s(t.translations.labels.monthly))])])])]),e("p",{staticClass:"tw-hidden text-center text-sm text-grey-80 lg:text-base lg:block"},[t._v(t._s(t.translations.labels.tailoredForNImages.replace("[COUNT]",this.selectedImageCap.toLocaleStr
1ing(t.propData.territory.locale))))]),e("div",{staticClass:"block py-6 relative lg:py-0"},[e("transition",{attrs:{name:"slide-up"}},[t.contractTerm=="a"?e("p",{staticClass:"absolute w-full text-center right-0 text-grey-80 text-xs lg:text-base lg:w-auto"},[t._v(t._s(t.translations.labels.contractTermInfo.a))]):t._e()]),e("transition",{attrs:{name:"slide-up"}},[t.contractTerm=="m"?e("p",{staticClass:"absolute w-full text-center right-0 text-grey-80 text-xs lg:text-base lg:w-auto"},[t._v(t._s(t.translations.labels.contractTermInfo.m))]):t._e()])],1)]):t._e(),e("div",{staticClass:"grid gap-8 mt-6 px-6 md:grid-cols-2 xl:grid-cols-4 md:px-0"},t._l(t.memberships,function(s){return e("PricingGridPlanItem",{key:s.code,attrs:{item:s,"account-type":t.accountType,client:t.client!==null?t.client:null,ccid:t.client!==null?parseInt(t.client.ccid):0,"current-plan":t.client!==null?t.client.membership_option:"","promo-code":t.propData.promoCode,currency:t.propData.currency,"selected-image-cap":parseInt(t.selectedImageCap),"contract-term":t.contractTerm,"contract-term-discount":t.contractTermDiscount,translations:t.translations.plan}})}),1)]),e("div",{staticClass:"text-xs text-grey-80 text-center py-6"},[t.client!==null&&t.client.atype>=4?e("p",{staticClass:"mb-2"},[t._v(t._s(t.translations.labels.canAddAddonsLater))]):t._e(),t.contractTerm=="a"?e("p",{staticClass:"mb-2"},[t._v(t._s(t.translations.labels.pricesShownAreMonthly))]):t._e(),t.propData.territory.tax_name.length?e("p",[t._v(t._s(t.translations.labels.pricesExcludeTax))]):t._e()])])])},_=[],h=i(d,g,_,!1,null,null);const b=h.exports;export{b as P};

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.