PageSourceSearch

https://www.unoform.no/gui/dist/cmp-blocks-feedbackblock-feedbackblock.js

js unoform.no collected 2026-09-27 08:54:53 UTC 2,387 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkathena=globalThis.webpackChunkathena||[]).push([[2539],{4502:(e,t,a)=>{a.r(t),a.d(t,{Feedback:()=>r});var o=a(538);const s={name:"a-feedback-block",props:{labels:Array},data:()=>({showFormCompleted:!1,showFormErrors:!0,selected:"",enableV2:!1,feedback:{rating:0,text:"",url:"",v2Token:"",v3Token:""},placeholder:""}),methods:{setActive(e){this.selected=e,this.feedback.rating=this.selected,this.setPlaceholder(this.selected)},setPlaceholder(e){this.placeholder=this.labels[e-1]},handleRecaptchaV2Token:function(e){this.feedback.v2Token=e,this.submitForm()},handleRecaptchaV3Token:function(e){this.feedback.v3Token=e},submitForm(e){e.preventDefault(),this.feedback.url=window.location.href;let t={"x-recaptcha-token-v2":this.feedback.v2Token,"x-recaptcha-token-v3":this.feedback.v3Token};this.$http.post("/feedbackapi/feedback/",this.feedback,{headers:t}).then((()=>{this.showFormCompleted=!0}),(e=>{console.error("Error: "+e.status+" "+e.statusText),400!==e.status||(this.enableV2=!0)})).finally((()=>{this.showFormErrors||(this.isSent=!0)}))}}};const n=(0,a(1900).Z)(s,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("form",{staticClass:"feedbackblock__form",attrs:{action:"/"},on:{submit:e.submitForm}},[e._t("default",null,{setActive:e.setActive,selected:e.selected,feedback:e.feedback,placeholder:e.placeholder,labels:e.labels,handleRecaptchaV2Token:e.handleRecaptchaV2Token,handleRecaptchaV3Token:e.handleRecaptchaV3Token,enableV2:e.enableV2,showFormCompleted:e.showFormCompleted})],2)}),[],!1,null,null,null).exports,r=o.default.component(n.name,n)},1900:(e,t,a)=>{function o(e,t,a,o,s,n,r,c){var l,i="function"==typeof e?e.options:e;if(t&&(i.render=t,i.staticRenderFns=a,i._compiled=!0),o&&(i.functional=!0),n&&(i._scopeId="data-v-"+n),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},i._ssrRegister=l):s&&(l=c?function(){s.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(i.functional){i._injectStyles=l;var h=i.render;i.render=function(e,t){return l.call(t),h(e,t)}}else{var d=i.beforeCreate;i.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:i}}a.d(t,{Z:()=>o})}}]);

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.