1import{_ as C}from"./CdnImage.cde68b02.js";import{_ as L}from"./Button.7d18ad96.js";import{V as w,a4 as B,j as E,A as N,o as x,c as f,a as s,b as c,l as u,d as a,y as P,w as I}from"./entry.4fe30dff.js";import{u as F}from"./useTryPrettyLitter.3e45aada.js";const R={class:"p-6 px-4 py-4 bg-grey-200"},T=s("span",{class:"text-primary-800 text-lg block text-center font-sansbold mb-1"},"Our Best Offer Yet",-1),j=s("h2",{class:"text-center text-grey-800 text-4xl mb-2"}," Get A FREE Bag When You Bundle ",-1),G=s("p",{class:"text-grey-500 text-base text-center mb-4"},[a(" Get a FREE bag with your first"),s("br"),a(" 3-month supply of PrettyLitter. ")],-1),M={class:"relative max-w-[327px] mx-auto"},U={class:"text-grey-500 text-base text-center"},V=s("br",null,null,-1),A={key:0},D={class:"px-6 text-center"},O=s("p",{class:"text-[#7F7569] text-xs text-center mt-4"}," *Discount applies to first month only ",-1),Y={__name:"TrialMultiMonthUpsell",setup(S){const t=w(),{addItemBySku:h,doCheckout:g,setDiscount:_,isCheckoutLoading:n,resetCart:y,nextStep:p,gs3MonthIAMSTest:d}=B("getStarted3Month"),{doTryPrettyLitterCheckout:b}=F(),l=E().public,i=N(()=>{var o,e;return t!=null&&t.discountURL?(o=t==null?void 0:t.discountURL)==null?void 0:o.toLowerCase():t!=null&&t.discount?(e=t==null?void 0:t.discount)==null?void 0:e.toLowerCase():"BIGDEAL"}),m=async(o=!1)=>{if(n.value)return;n.value=!0;let e=null;const r={};o?(y(),l.store.toLowerCase()==="ca"?_("BUNDLE"):_("BUNDLE24"),e="PL6-1m3",h({sku:e,isSubscription:!0,frequency:o?12:4,...r}),d.value==="variation_1"?p():await g()):d.value==="variation_1"?p(!0):await b(null,i==null?void 0:i.value,!0),setTimeout(()=>{n.value=!1},2e3)};return(o,e)=>{const r=C,v=L;return x(),f("div",R,[T,j,G,s("div",M,[c(r,{class:"object-cover object-bottom h-[216px] w-[327px] mb-4 mx-auto",src:"homepage_2025/trialoffer_modal.jpg",alt:"try pretty litter"}),c(r,{class:"absolute h-[92px] w-[92px] top-1 right-4",src:u(l).store.toLowerCase()==="ca"?"graphics/starburst_save_30.svg":"graphics/starburst_save_24_secondary.svg",fetchFormat:"f_svg",alt:"save 24"},null,8,["src"])]),s("p",U,[a(" Get 3 bags of litter delivered to your"),V,a(" doorstep every 12 weeks "),u(l).store.toLowerCase()==="ca"?(x(),f("span",A," + FREE SHIPPING")):P("",!0)]),s("div",D,[c(v,{size:"large",class:"mt-4",type:"loading",loadingState:u(n),onClick:e[0]||(e[0]=k=>m(!0))},{default:I(()=>[a("Yes Please")]),_:1},8,["loadingState"])]),s("button",{class:"underline block mt-4 mx-auto text-[#7F7569] text-sm","data-testid":"multi-upsell-no-thanks",onClick:e[1]||(e[1]=k=>m(!1))}," No thanks "),O])}}},W=Y;export{W as _};
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.