PageSourceSearch

https://fitmotivation.com/_nuxt/DMV868Yx.js

js fitmotivation.com collected 2026-10-04 20:52:02 UTC 4,566 bytes, 1 lines download raw bytes

1import{_ as D}from"./rht33hmR.js";import{F as I,a as x,E}from"./DlWWFASC.js";import{c as R,a as C}from"./CraT13Oa.js";import{L,_ as V,u as $,n as O,o as P,i as n,f as e,e as s,j as u,h as l,d as B,r as a,b as i,l as U,m as z}from"./DyKsjnBy.js";import{u as G}from"./Cp1O2d5O.js";import{u as M}from"./DEEgPfPc.js";function Q(){const{$api:S}=L();return{send:async(f,p,b,d)=>await S.request("/suggestion/send",{method:"POST",body:{suggestionType:b,email:f,message:p,turnstile_token:d}})}}const W={class:"container main-content pt-3"},Y={class:"offset-lg-3 col-lg-6 col-md-8 offset-md-2 col-sm-12 col-xs-12"},j={key:0},H={key:1},J={key:2,class:"alert alert-success d-flex align-items-center alert-dismissible",role:"alert"},K={key:0,class:"form-group mb-3"},X={class:"form-group"},Z={class:"mt-3 mb-2"},ee=["disabled"],te={__name:"index",setup(S){const g=$(),{$bs:f}=L(),{getPageMetaData:p,IDENTIFIERS:b}=G(),d=a(null),k=a(!1),N=a(!1),r=a("DEFAULT"),v=a(!1),c=a("");let y=a({}),h;const T=R().shape({email:C().required().email(),message:C().required()});function w(o){o.preventDefault(),g.push("/")}function A(o){h.hide(),w(o)}async function F(o){k.value=!0;const{data:t,error:_}=await z(()=>Q().send(o.email,o.message,r.value,c.value),"$iEF39GNQJ0");_.value?alert("An error occurred sending the suggestion.  Please contact [email protected]"):t.value&&t.value==="EMAIL SENT OK"&&(h=f.Modal.getOrCreateInstance(document.querySelector("#suggestionModal")),h.show())}const m=p(b.SUGGESTIONS);return O({title:m.title,description:m.description,ogTitle:m.title,ogDescription:m.description}),P(async()=>{v.value=M().isLoggedIn(),v.value&&(y={email:(await M().getProfile()).customer.email},d.value.resetForm({values:y}))}),g.currentRoute.query?.cancelled&&(r.value="CANCEL"),(o,t)=>{const _=D;return i(),n("div",W,[e("div",{class:"modal fade","data-bs-theme":"dark","ata-bs-backdrop":"false",id:"suggestionModal",tabindex:"-1",role:"dialog"},[e("div",{class:"modal-dialog",role:"document"},[e("div",{class:"modal-content bg-dark"},[t[1]||(t[1]=e("div",{class:"modal-header"},[e("h5",{class:"modal-title"},"Suggestion Sent")],-1)),t[2]||(t[2]=e("div",{class:"modal-body"}," Sent your suggestion to the Fitmotivation team. ",-1)),e("div",{class:"modal-footer"},[e("button",{type:"button",class:"btn btn-primary",onClick:A}," Ok ")])])])]),e("div",Y,[t[5]||(t[5]=e("h1",{class:"title"},"Have a Suggestion?",-1)),s(r)=="DEFAULT"?(i(),n("p",j," We would love to hear your suggestions for video content. Fitmotivation cannot accommodate all requests but will strive to produce the most frequently requested content. ")):u("",!0),s(r)=="CANCEL"?(i(),n("p",H," Your account has been cancelled. Thank you for your business. Please take a moment to tell us why you are cancelling and if there is a way we could improve our content and/or our service. ")):u("",!0),t[6]||(t[6]=e("h4",null,"Type your suggestion",-1)),s(N)?(i(),n("div",J,[...t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},[e("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})],-1),e("div",null,[e("h3",null,"Your suggestion has been submitted.")],-1),e("button",{type:"button",class:"btn-close","data-bs-dismiss":"alert","aria-label":"Close"},null,-1)])])):u("",!0),l(s(I),{ref_key:"form",ref:d,"validation-schema":s(T),onSubmit:F,"initial-values":s(y)},{default:B(()=>[s(v)?u("",!0):(i(),n("div",K,[t[4]||(t[4]=e("label",{for:"email"},"Email address",-1)),l(s(x),{type:"email",name:"email",placeholder:"Email address",class:"form-control mb-0 btn-border"}),l(s(E),{name:"email",class:"errors"})])),e("div",X,[l(s(x),{as:"textarea",name:"message",id:"message",rows:"15",placeholder:"Video content request or general suggestions?",class:"form-control mb-0 btn-border"}),l(s(E),{name:"message",class:"errors"})]),e("div",Z,[l(_,{modelValue:s(c),"onUpdate:modelValue":t[0]||(t[0]=q=>U(c)?c.value=q:null)},null,8,["modelValue"])]),s(r)=="CANCEL"?(i(),n("button",{key:1,class:"btn btn-md btn-primary mt-3",onClick:w},"Skip")):u("",!0),e("button",{type:"submit",class:"btn btn-success mt-3",disabled:s(k)}," Send ",8,ee)]),_:1},8,["validation-schema","initial-values"])])])}}},ue=V(te,[["__scopeId","data-v-652fc77e"]]);export{ue 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.