PageSourceSearch

https://motionrc.com/_nuxt/CxTX9y4s.js

js motionrc.com collected 2026-09-24 11:52:46 UTC 3,308 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dr6Ziw8C.js","./BLbCACQC.js","./CKrlm23X.js","./entry.ZYx_Rulb.css"])))=>i.map(i=>d[i]);
2import{bj as U,b2 as v,bk as A,b1 as F,c2 as x,bQ as $,c3 as R,bm as P,b7 as T,b4 as q,bd as r,b5 as a,b6 as m,be as z,b9 as l,bp as D,bx as L,bg as j,bb as G,bh as Q}from"./CKrlm23X.js";import{_ as W}from"./DKFE1PGY.js";import{_ as Y}from"./BuyIH9p_.js";import{_ as H}from"./DIBxh0OJ.js";import{u as J}from"./DCz9CSQ4.js";import{c as K}from"./xBa1iftD.js";import{e as X}from"./BM50F3hh.js";import{M as Z}from"./Dd17k5is.js";const ee=()=>{const{$sdk:t}=U(),o=v(!1),s=A("notify-email-stock-success",()=>!1);return{sendEmailNotification:async c=>{o.value=!0;try{await t().odoo.mutation({mutationName:Z.AddStockEmailNotification},c),s.value=!0}catch{}finally{o.value=!1}},loading:o,success:s}},te=G(()=>Q(()=>import("./Dr6Ziw8C.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(t=>t.default||t)),ae={class:"p-6 bg-[#F9F9F9] border border-[#ccc] rounded"},oe={class:"pl-[22px] text-center !text-[24px] !normal-case tracking-normal font-normal !font-[Calibre-Regular] mb-6"},de=F({__name:"ProductNotifyProductStockModal",props:x({productId:{type:Number,required:!1},productName:{type:String,required:!1}},{isOpen:{type:Boolean},isOpenModifiers:{}}),emits:x(["close"],["update:isOpen"]),setup(t,{emit:o}){const s=t,{sendEmailNotification:p,loading:c,success:f}=ee(),{show:y,hide:g}=$(),u=R(t,"isOpen"),h=o,b=()=>{u.value=!1,h("close")},{defineField:w,handleSubmit:N,errors:k}=J({validationSchema:K({email:X()}),validateOnMount:!1,initialValues:{email:""}}),[n]=w("email"),i=v(!1),E=P(()=>i.value&&k.value.email),V=()=>{i.value=!0},M=N(async _=>{_.email&&(await p({email:n.value,productId:Number(s.productId)}),f.value&&(y({description:"✓ Notification registered!",type:"success"}),setTimeout(()=>{b()},3e3))),n.value="",i.value=!1},()=>{i.value=!0});return(_,e)=>{const S=W,B=Y,C=H,I=j,O=te;return q(),T(O,{modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=d=>u.value=d),"modal-classes":"!max-w-[520px]",onClose:b},{title:r(()=>e[2]||(e[2]=[a("h2",{class:"pl-[22px] text-center text-[32px] xl:text-[42px] !normal-case tracking-normal font-normal font-[Calibre-Regular] !mb-2"}," Be the first to know! ",-1),a("p",{class:"pl-[22px] text-center text-[16px] leading-[1.25] font-[Calibre-Regular] !mb-4"}," Enter your email address below and we will send you a message as soon as this product becomes available again. ",-1)])),content:r(()=>[a("div",ae,[a("h2",oe,z(s.productName),1),m(B,{name:"email",error:l(E),class:"mb-3"},{default:r(()=>[m(S,{modelValue:l(n),"onUpdate:modelValue":e[0]||(e[0]=d=>D(n)?n.value=d:null),name:"email","input-class":"w-full",type:"email",placeholder:"Enter your email address",onBlur:V,onInput:l(g)},null,8,["modelValue","onInput"])]),_:1},8,["error"]),m(C),m(I,{loading:l(c),variant:"secondary",class:"w-full mb-3 !min-h-[37px] md:!min-h-[42px]",label:"Submit",onClick:L(l(M),["stop","prevent"])},null,8,["loading","onClick"])])]),footer:r(()=>e[3]||(e[3]=[a("div",{class:"text-center"},[a("p",{class:"text-[14px] text-[#808080] leading-[1.25]"}," You’ll receive an email when this product arrives in stock. We won’t share your email address with anybody else. ")],-1)])),_:1},8,["modelValue"])}}});export{de as default};

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.