PageSourceSearch

https://cubeofartuppsala.se/build/assets/ReviewCreate-C4B0KaiH.js

js cubeofartuppsala.se collected 2026-10-08 17:54:08 UTC 2,333 bytes, 1 lines download raw bytes

1import{T as s}from"./Translate-xI79nJqx.js";import{_ as g}from"./LavaHead-COdo65sV.js";import{_ as v}from"./LavaLocaleLink-CisLotrY.js";import{_ as w}from"./Logo-BEwMhn60.js";import{T as y,f as b,o as r,g as i,a as m,b as e,w as k,t as l,u as t,F as C,r as T,Q as u,n as V}from"./app-EDzeK_jU.js";import{_ as $}from"./LavaInput-DtK2YoO1.js";import{T as f}from"./Toast-PM7v9XSn.js";import"./LavaLink-D8997Rq3.js";import"./FormError-iK01p1sh.js";import"./index-DX441AK6.js";const j={class:"py-8 lg:py-16 text-white min-h-screen bg-gradient-to-b from-primary to-gray-900"},B={class:"container mx-auto"},q={class:"flex justify-center"},E={class:"pt-8 lg:pt-24 text-center"},F={class:"text-xl md:text-4xl font-normal"},L={class:"flex justify-center mt-8 lg:mt-16"},N=["onClick"],O={key:0},S={key:1},z={class:"max-w-2xl mx-auto"},D={class:"mt-8 lg:mt-12"},Q={class:"text-center text-sm md:text-base"},X={__name:"ReviewCreate",props:{review:{required:!0,type:Object},page:{required:!0,type:Object}},setup(n){const c=n,a=y({rating:c.review.data.rating,comment:null}),_=b(()=>u().props.app.locale),h=[1,2,3,4,5];function x(){const d=route("review.update",{id:c.review.data.id,locale:u().props.app.locale});a.patch(d,{onSuccess:()=>{f.success(s("thanks_for_leaving_an_review"))},onError:()=>{f.error(s("something_went_wrong"))}})}return(d,p)=>(r(),i("div",j,[m(g,{"meta-title":n.page.meta[_.value].title,"meta-description":n.page.meta[_.value].description,"meta-image":n.page.meta.media},null,8,["meta-title","meta-description","meta-image"]),e("div",B,[e("div",q,[m(v,{name:"home.show"},{default:k(()=>[m(w,{class:"w-full max-w-[500px]"})]),_:1})]),e("div",E,[e("h1",F,l(t(s)("thanks_for_taking_your_time")),1)]),e("div",L,[(r(),i(C,null,T(h,o=>e("button",{onClick:R=>t(a).rating=o,class:V([[t(a).rating>=o?"text-yellow-400":"text-neon-blue"],"text-4xl"])},[t(a).rating>=o?(r(),i("span",O,"★")):(r(),i("span",S,"☆"))],10,N)),64))]),e("div",z,[e("div",D,[e("p",Q,l(t(s)("tips_for_improvements")),1),m($,{name:"comment",modelValue:t(a).comment,"onUpdate:modelValue":p[0]||(p[0]=o=>t(a).comment=o),class:"mt-2",type:"textarea","dark-theme":"",placeholder:t(s)("review_comment_placeholder")},null,8,["modelValue","placeholder"])]),e("button",{onClick:x,class:"btn btn-neon-blue w-full mt-6"},l(t(s)("send")),1)])])]))}};export{X 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.