PageSourceSearch

https://www.muse.site/_nuxt/ClxHOsxM.js

js muse.site collected 2026-09-25 03:28:57 UTC 5,762 bytes, 20 lines download raw bytes

1import{_ as F,a as x,b as w}from"./nyuQc4nu.js";import{a0 as C,D,e as M,u as U,y as $,h as O,m as h,X as V,l as v,w as L,c as d,j as e,b as j,a as o,t as i,i as S,F as K,r as B,n as X,v as m,E as G,Y,a9 as H,d as z,C as q,o as u,_ as J}from"./CZ1wxRoR.js";import{g as Q}from"./CNeYJO5u.js";import{u as W}from"./DVtFEFYS.js";var _=(n=>(n.TOO_EXPENSIVE="TOO_EXPENSIVE",n.MISSING_FEATURES="MISSING_FEATURES",n.TOO_COMPLEX="TOO_COMPLEX",n.NOT_READY="NOT_READY",n.USING_COMPETITOR="USING_COMPETITOR",n.POOR_SUPPORT="POOR_SUPPORT",n.OTHER="OTHER",n))(_||{}),g=(n=>(n.TRIAL_FEEDBACK="TRIAL_FEEDBACK",n.SATISFACTION_SURVEY="SATISFACTION_SURVEY",n))(g||{});const Z=Q`
2    mutation SubmitTenantFeedback(
3        $token: String!
4        $type: FeedbackType!
5        $rating: Int
6        $reasons: [ChurnReason!]
7        $comment: String
8    ) {
9        submitTenantFeedback(
10            token: $token
11            type: $type
12            rating: $rating
13            reasons: $reasons
14            comment: $comment
15        ) {
16            success
17            message
18        }
19    }
20`,ee=C("feedbackStore",{state:()=>({submitting:!1,submitted:!1,error:null,tokenError:null,response:null}),actions:{async submitFeedback(n,s,f){this.submitting=!0,this.error=null,this.tokenError=null;try{const{client:t}=D(),a=await t.mutate({mutation:Z,variables:{token:n,type:g.TRIAL_FEEDBACK,reasons:s,comment:f||void 0}});return this.response=a.data.submitTenantFeedback,this.submitted=!0,this.response}catch(t){const a=t instanceof Error?t.message:"Failed to submit feedback";throw a.includes("TOKEN_EXPIRED")||a.includes("expired")?this.tokenError="TOKEN_EXPIRED":a.includes("TOKEN_USED")||a.includes("already used")?this.tokenError="TOKEN_USED":a.includes("TOKEN_INVALID")||a.includes("invalid")?this.tokenError="TOKEN_INVALID":this.error=a,console.error("[Feedback] Submit failed:",t),t}finally{this.submitting=!1}},reset(){this.submitting=!1,this.submitted=!1,this.error=null,this.tokenError=null,this.response=null}}}),se={key:1,class:"fb-success"},te={class:"fb-success__title"},oe={class:"fb-success__msg"},ne={href:"https://www.muse.site",class:"fb-success__link"},ae={key:3,class:"fb-form"},re={class:"fb-form__header"},ie={class:"fb-form__title"},le={class:"fb-form__subtitle"},ce={class:"fb-form__label"},ue={class:"fb-reasons"},_e=["onClick","onMousedown"],de={class:"fb-reason__emoji","aria-hidden":"true"},be={class:"fb-reason__label"},me={for:"fb-comment",class:"fb-form__label fb-form__label--mt"},fe=["placeholder"],ke={key:0,class:"fb-error",role:"alert"},pe=["disabled"],Ee={key:0,class:"fb-submit__spinner"},he=M({__name:"FeedbackPage",setup(n){const{t:s}=U(),f=$(),t=ee(),a=O(()=>f.query.token||""),l=h([]),b=h(""),k=h(null),I=O(()=>[{value:_.TOO_EXPENSIVE,emoji:"💰",label:s("feedback.reasons.too_expensive")},{value:_.MISSING_FEATURES,emoji:"🧩",label:s("feedback.reasons.missing_features")},{value:_.TOO_COMPLEX,emoji:"🤯",label:s("feedback.reasons.too_complex")},{value:_.NOT_READY,emoji:"⏳",label:s("feedback.reasons.not_ready")},{value:_.USING_COMPETITOR,emoji:"🔄",label:s("feedback.reasons.using_competitor")},{value:_.POOR_SUPPORT,emoji:"😕",label:s("feedback.reasons.poor_support")},{value:_.OTHER,emoji:"💬",label:s("feedback.reasons.other")}]);function y(p){const r=l.value.indexOf(p);r>-1?l.value.splice(r,1):l.value.push(p)}async function N(){if(!(!a.value||l.value.length===0))try{await t.submitFeedback(a.value,l.value,b.value||void 0)}catch{}}return V(()=>{t.reset()}),W({title:s("feedback.seo.title"),meta:[{name:"description",content:s("feedback.seo.description")},{name:"robots",content:"noindex, nofollow"}]}),(p,r)=>{const T=x,R=w,A=F;return u(),v(A,null,{default:L(()=>[e(t).tokenError?(u(),v(T,{key:0,"error-type":e(t).tokenError,"i18n-prefix":"feedback.error"},null,8,["error-type"])):e(t).submitted?(u(),d("div",se,[j(R,{size:72,color:"#7c3aed"}),o("h2",te,i(e(s)("feedback.success.title")),1),o("p",oe,i(e(s)("feedback.success.message")),1),o("a",ne,i(e(s)("feedback.success.back_home")),1)])):e(a)?(u(),d("div",ae,[o("div",re,[o("h1",ie,i(e(s)("feedback.heading")),1),o("p",le,i(e(s)("feedback.subheading")),1)]),o("form",{onSubmit:q(N,["prevent"])},[o("p",ce,i(e(s)("feedback.reasons_label")),1),o("div",ue,[(u(!0),d(K,null,B(e(I),(c,P)=>(u(),d("button",{key:c.value,type:"button",class:m(["fb-reason",{"fb-reason--selected":e(l).includes(c.value)}]),style:X({animationDelay:`${.05*P}s`}),onClick:E=>y(c.value),onMousedown:E=>k.value=c.value,onMouseup:r[0]||(r[0]=E=>k.value=null),onMouseleave:r[1]||(r[1]=E=>k.value=null)},[o("span",de,i(c.emoji),1),o("span",be,i(c.label),1),o("span",{class:m(["fb-reason__check",{"fb-reason__check--visible":e(l).includes(c.value)}])},r[3]||(r[3]=[o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[o("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)],46,_e))),128))]),o("div",{class:m(["fb-comment-wrap",{"fb-comment-wrap--visible":e(l).length>0}])},[o("label",me,i(e(s)("feedback.comment_label")),1),G(o("textarea",{id:"fb-comment","onUpdate:modelValue":r[2]||(r[2]=c=>H(b)?b.value=c:null),class:"fb-textarea",placeholder:e(s)("feedback.comment_placeholder"),rows:"3"},null,8,fe),[[Y,e(b)]])],2),e(t).error?(u(),d("div",ke,i(e(t).error),1)):S("",!0),o("button",{type:"submit",class:m(["fb-submit",{"fb-submit--loading":e(t).submitting}]),disabled:e(t).submitting||e(l).length===0},[e(t).submitting?(u(),d("span",Ee)):S("",!0),z(" "+i(e(t).submitting?e(s)("feedback.submitting"):e(s)("feedback.submit")),1)],10,pe)],32)])):(u(),v(T,{key:2,"error-type":"TOKEN_INVALID","i18n-prefix":"feedback.error"}))]),_:1})}}}),ge=J(he,[["__scopeId","data-v-3804b517"]]);export{ge 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.