PageSourceSearch

https://0vision.se/_nuxt/C3Pcc9PF.js

js 0vision.se collected 2026-10-09 04:39:54 UTC 10,373 bytes, 1 lines download raw bytes

1import{u as $,_ as z}from"./DkpovBrm.js";import{j as E,y as Y,r as J,a as k,G as l,J as d,L as t,M as c,F as C,a3 as S,a1 as M,a2 as F,u as a,O as h,N,z as O,I as L,q as P,P as Z,Q as G,D as H}from"./RAqWWVVn.js";import{d as Q,b as K,M as W,_ as X}from"./Ca2eL4Js.js";import{u as ee}from"./C5U9BwEw.js";import{S as te}from"./B-_lGJAi.js";import"./Coodlc8r.js";import"./OXJXYgxy.js";import"./CEA26BjM.js";const A=b=>(Z("data-v-cfa9e7ed"),b=b(),G(),b),se={class:"form-div rounded-2xl p-5 relative"},oe={class:"text-2xl text-center mb-1"},ae={key:0},re={class:"questions-text pt-3 pb-3"},ie={class:"text-white-new text-base bio_text mb-2"},le=["placeholder","required","onUpdate:modelValue"],de=["dir"],ne={key:1},ce={class:"questions-paragraph pt-3 pb-3"},ue={class:"text-white-new text-base bio_text mb-2"},he=["placeholder","required","onUpdate:modelValue"],fe=["dir"],_e={key:2},me={class:"questions-choices pt-3 pb-3"},pe={class:"text-lg"},ve={key:0},we={class:"text-white-new text-base bio_text mb-2"},be={key:0},xe={role:"button",class:"flex w-full items-center rounded-lg p-0 transition-all hover:bg-slate-100 focus:bg-slate-100 active:bg-slate-100"},ye=["for"],ge={class:"inline-flex items-center"},qe=["for"],ke=["name","id","value","checked","onChange"],Ce=A(()=>t("span",{class:"absolute bg-slate-800 w-3 h-3 rounded-full opacity-0 peer-checked:opacity-100 transition-opacity duration-200 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"},null,-1)),Se={class:"ml-2 cursor-pointer text-sm",for:"react-horizontal"},Ae=["dir"],Re={key:1},Me={role:"button",class:"flex w-full items-center rounded-lg p-0 transition-all hover:bg-slate-100 focus:bg-slate-100 active:bg-slate-100"},Fe=["for"],Ne={class:"inline-flex items-center"},Oe=["for"],Ue=["id","value","onChange","checked"],Ve=A(()=>t("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[t("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),Ie={class:"cursor-pointer ml-2 text-sm",for:"check-vertical-list-group"},Te=["dir"],je={key:3},Be={class:"questions-rating pt-3 pb-3"},De={class:"text-lg"},$e={key:0},ze={class:"text-white-new text-base bio_text mb-2"},Ee=["dir"],Ye={class:"pt-5 pb-5 w-full text-center"},Je=["dir"],Le={key:1,role:"status",class:"inline"},Pe=A(()=>t("svg",{"aria-hidden":"true",class:"w-6 h-6 inline text-gray-200 animate-spin dark:text-white-600 fill-black-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),t("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"black"})],-1)),Ze={class:"sr-only"},Ge={key:0,class:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-50"},He={class:"bg-white p-6 rounded-lg shadow-lg max-w-sm text-center"},Qe=["dir"],Ke=["dir"],We=E({__name:"Form",props:{module:{},subdomainName:{},moduleIndex:{}},setup(b){const{uiText:g,uiDir:_,uiSpaced:p}=$(),f=b;Y(()=>{f.module.questions.forEach(o=>{o.answer||(o.answer=null)})});const m=J({});function q(o,i){var s;if(i in m)return m[i];const n=((s=o.data)==null?void 0:s.choices)??[];if(Array.isArray(o.answer))return o.answer.map(r=>n.indexOf(r)).filter(r=>r>=0);const e=o.answer==null||o.answer===""?-1:n.indexOf(o.answer);return e>=0?e:void 0}function R(o,i,n){const e=q(o,i);return Array.isArray(e)?e.includes(n):e===n}function U(o,i,n){m[i]=n,o.answer=o.data.choices[n]}function V(o,i,n){const e=q(o,i),s=Array.isArray(e)?[...e]:[],r=s.indexOf(n);r===-1?s.push(n):s.splice(r,1),m[i]=s,o.answer=s.map(u=>o.data.choices[u])}function I(){f.module.questions.forEach((o,i)=>{var s;if(o.type!=="choices"||!(i in m))return;const n=((s=o.data)==null?void 0:s.choices)??[],e=m[i];o.answer=Array.isArray(e)?e.map(r=>n[r]):n[e]})}const{current:T}=Q();function j(){if(I(),T.value===null)return f.module;const o=W(f.module,f.moduleIndex);return o?{...H(f.module),...o,questions:(o.questions??[]).map((i,n)=>{var u;const e=f.module.questions[n];let s=(e==null?void 0:e.answer)??null;const r=e?q(e,n):void 0;if(i.type==="choices"&&r!==void 0){const y=((u=i.data)==null?void 0:u.choices)??[];s=Array.isArray(r)?r.map(D=>y[D]):y[r]}return{...i,answer:s}})}:f.module}let v=k(!1),x=k(!1),w=k(!1);async function B(){x.value=!0,v.value=!0,w.value=!1;let o=!0;if(f.module.questions.forEach(s=>{s.data.required&&(s.answer===null||s.answer===""||Array.isArray(s.answer)&&s.answer.length===0)&&(o=!1)}),!o){x.value=!1;return}const{data:i,error:n}=await ee(K("q-profile/contact-form/store"),{body:JSON.stringify({domain:f.subdomainName,info:j()}),method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},"$jHwrhlY6YJ");if(x.value=!1,i.value.success){for(var e in f.module.questions)f.module.questions[e].answer="";for(const s of Object.keys(m))delete m[s];v.value=!1,w.value=!0}}return(o,i)=>{const n=z;
1return l(),d("div",se,[t("div",oe,c(f.module.title),1),(l(!0),d(C,null,S(f.module.questions,(e,s)=>(l(),d("div",{key:e},[e.type==="text"?(l(),d("div",ae,[t("div",re,[t("div",ie,c(e.data.description),1),M(t("input",{type:"text",placeholder:e.data.question+(e.data.required?"*":""),class:"form-input w-full rounded-2xl px-4 py-3",required:e.data.required,"onUpdate:modelValue":r=>e.answer=r},null,8,le),[[F,e.answer]]),a(v)&&e.data.required&&!e.answer?(l(),d("div",{key:0,class:"text-red-500 text-sm mt-2",dir:a(_)("fieldRequired")},c(a(p)("fieldRequired")),9,de)):h("",!0)])])):h("",!0),e.type==="paragraph"?(l(),d("div",ne,[t("div",ce,[t("div",ue,c(e.data.description),1),M(t("textarea",{placeholder:e.data.question+(e.data.required?"*":""),class:"form-input w-full rounded-2xl px-4 py-3",required:e.data.required,"onUpdate:modelValue":r=>e.answer=r},null,8,he),[[F,e.answer]]),a(v)&&e.data.required&&!e.answer?(l(),d("div",{key:0,class:"text-red-500 text-sm mt-2",dir:a(_)("fieldRequired")},c(a(p)("fieldRequired")),9,fe)):h("",!0)])])):h("",!0),e.type==="choices"?(l(),d("div",_e,[t("div",me,[t("div",pe,[N(c(e.data.question)+" ",1),e.data.required?(l(),d("span",ve,"*")):h("",!0)]),t("div",we,c(e.data.description),1)]),e.data.choices_type==="single"?(l(),d("div",be,[(l(!0),d(C,null,S(e.data.choices,(r,u)=>(l(),d("div",{class:"w-full",key:u},[t("div",xe,[t("label",{for:"choices-"+u+s,class:"flex w-full cursor-pointer items-center px-3 py-2"},[t("div",ge,[t("label",{class:"relative flex items-center cursor-pointer",for:"choices-"+u+s},[t("input",{name:"choices-"+s,type:"radio",class:"peer h-5 w-5 cursor-pointer appearance-none rounded-full border border-slate-300 checked:border-slate-400 transition-all",id:"choices-"+u+s,value:r,checked:R(e,s,u),onChange:y=>U(e,s,u)},null,40,ke),Ce],8,qe),t("label",Se,c(r),1)])],8,ye)])]))),128)),a(v)&&e.data.required&&!e.answer?(l(),d("div",{key:0,class:"text-red-500 text-sm mt-2",dir:a(_)("fieldRequired")},c(a(p)("fieldRequired")),9,Ae)):h("",!0)])):h("",!0),e.data.choices_type==="multiple"?(l(),d("div",Re,[(l(!0),d(C,null,S(e.data.choices,(r,u)=>(l(),d("div",{class:"w-full",key:u},[t("div",Me,[t("label",{for:"choices-"+u+s,class:"flex w-full cursor-pointer items-center px-3 py-2"},[t("div",Ne,[t("label",{class:"flex items-center cursor-pointer relative",for:"choices-"+u+s},[t("input",{type:"checkbox",class:"peer h-5 w-5 cursor-pointer transition-all appearance-none rounded shadow hover:shadow-md border border-slate-300 checked:bg-slate-800 checked:border-slate-800",id:"choices-"+u+s,value:r,onChange:y=>V(e,s,u),checked:R(e,s,u)},null,40,Ue),Ve],8,Oe),t("label",Ie,c(r),1)])],8,Fe)])]))),128)),a(v)&&e.data.required&&!e.answer?(l(),d("div",{key:0,class:"text-red-500 text-sm mt-2",dir:a(_)("fieldRequired")},c(a(p)("fieldRequired")),9,Te)):h("",!0)])):h("",!0)])):h("",!0),e.type==="rating"?(l(),d("div",je,[t("div",Be,[t("div",De,[N(c(e.data.question)+" ",1),e.data.required?(l(),d("span",$e,"*")):h("",!0)]),t("div",ze,c(e.data.description),1),O(n,null,{default:L(()=>[O(a(te),{class:"form-rating","show-rating":!1,"star-size":35,increment:1,"round-start-rating":!0,"rounded-corners":!0,"border-width":2,rating:0,"active-color":"#000",required:e.data.required,"max-rating":e.data.stars_number,"onUpdate:rating":r=>e.answer=r},null,8,["required","max-rating","rating","onUpdate:rating"])]),_:2},1024)]),a(v)&&e.data.required&&!e.answer?(l(),d("div",{key:0,class:"text-red-500 text-sm mt-2",dir:a(_)("fieldRequired")},c(a(p)("fieldRequired")),9,Ee)):h("",!0)])):h("",!0)]))),128)),t("div",Ye,[t("button",{onClick:i[0]||(i[0]=e=>B()),class:"btn-form w-full rounded-full p-2"},[a(x)?h("",!0):(l(),d("span",{key:0,dir:a(_)("submit")},c(a(g)("submit")),9,Je)),a(x)?(l(),d("span",Le,[Pe,t("span",Ze,c(a(g)("loading")),1)])):h("",!0)]),a(w)?(l(),d("div",Ge,[t("div",He,[t("h3",{class:"text-xl font-semibold mb-4 text-[black]",dir:a(_)("thankYou")},c(a(g)("thankYou")),9,Qe),t("p",{class:"text-[black]",dir:a(_)("messageSent")},c(a(p)("messageSent")),9,Ke),t("button",{onClick:i[1]||(i[1]=e=>P(w)?w.value=!1:w=!1),class:"mt-4 bg-indigo-600 text-white py-2 px-4 roun
1ded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},c(a(p)("close")),1)])])):h("",!0)])])}}}),lt=X(We,[["__scopeId","data-v-cfa9e7ed"]]);export{lt 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.