UNPKG

scrivito-pisasales-questionnaire-builder

Version:
353 lines 93.7 kB
import * as H from "scrivito"; import { Widget as W2, load as N2, registerComponent as j2, uiContext as O2, provideEditingConfig as Y2 } from "scrivito"; import { g as p } from "./idGenerator-CnyWSta9.js"; import { aT as k2, c as S, j as _, a0 as R2, C as R, k as Z2, T as x, P as J, E as d, aS as L, aU as z2, aV as D, a as f, H as q2, D as P, M as K, g as X2, L as l2, A as B, V as Q, Q as h, d as C2, h as $2, n as J2, r as K2, m as Z, s as e0, F as t0, o as i0, p as n0, q as a0, e as o0, G as c2, aP as s0, z as d2, y as u2, aN as p2, aO as f2, B as r0, aW as l0, aX as C0, ab as P2, aM as e2, a7 as t2, aY as B2, aZ as c0, a_ as d0, a$ as u0, a6 as U, aQ as p0, O as k, aE as A2, ay as g2, aw as h2, aJ as m2, ax as f0, at as A0, a8 as g0, az as h0, au as m0, a9 as I0, aA as T0, av as E0, aI as _0, aH as M0, aa as w0, aG as I2, aD as V0, ag as b0, af as H0, aF as S0, aC as y0, aB as v0, J as T2, X as E2, R as _2, ao as j, aj as L0, am as x0, an as D0, al as M2, ai as N0, ak as w2, ah as O0, a1 as k0, aq as V2, ap as R0, ar as Z0, as as q0, K as P0, a4 as B0, N as Q0, Y as U0, a2 as G0, Z as F0, U as W0, a3 as j0, W as Y0, b0 as z0, b1 as X0, aL as $0, f as J0, u as Y, b2, t as z, S as H2, b as S2, b3 as K0, v as y2, w as e3, I as t3 } from "./scrivitoConfig-WST4rsmc.js"; import { i as i3 } from "./isPisaDate-k2iL6dCC.js"; import { i as n3, h as a3, g as i2, a as n2, P as o3 } from "./PisaDataClassContext-B5rbhbtF.js"; import { g as s3, e as a2, c as v2, a as L2 } from "./extractQuestionsAndOptions-C6y_aX6L.js"; import { jsxs as X, jsx as m, Fragment as r3 } from "react/jsx-runtime"; import { useState as Q2 } from "react"; import { s as q } from "./DocumentDataClass-D1mg6YjJ.js"; import { a as l3, d as C3 } from "./AnswersDataClass-IG1cx70G.js"; import { i as c3 } from "./isSelectAlignmentEnabled-CKryiF0r.js"; function M(e) { let t = e.container(); for (; t instanceof W2; ) { if (t.objClass() === k2) return t; t = t.container(); } return null; } function o2(e) { return e.get(S); } function d3(e, t) { const i = o2(e); return _(i) ? !0 : t === "option" ? u3(i, e) : p3(i, e); } const u3 = (e, t) => { const i = t.container(); return i ? !i.widgets().some( (c) => o2(c) === e && c.id() !== t.id() ) : !0; }, p3 = (e, t) => { const i = M(t); if (!i) return !0; const c = i.get(R2); return _(c) ? !0 : !c.flatMap((o) => o.get(R)).some( (o) => o2(o) === e && o.id() !== t.id() ); }, U2 = [ S, (e, { widget: t }) => { const i = t.objClass() === Z2; if (!d3(t, i ? "option" : "question")) return `Specify a unique Identifier. There is at least one other ${i ? "option" : "question"} with the same Identfier.`; if (e && !/^[A-Z0-9_]+$/.test(e)) return "Specifiy a valid identifier! Follow the CRM Schema (A-Z0-9_)"; if (e.length > 32) return "Maximum identifier character length of 32 exceeded!"; } ], f3 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20150%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='crm-questionaire-select-option'%3e%3cg%20id='Group'%20opacity='0.25'%3e%3cpath%20id='Vector'%20d='M124.8%2051H26C24.3431%2051%2023%2052.3431%2023%2054V69.92C23%2071.5769%2024.3431%2072.92%2026%2072.92H124.8C126.457%2072.92%20127.8%2071.5769%20127.8%2069.92V54C127.8%2052.3431%20126.457%2051%20124.8%2051Z'%20fill='%23AAAAAA'%20fill-opacity='0.75'/%3e%3c/g%3e%3cpath%20id='Rectangle%201'%20d='M16%2015C16%2012.7909%2017.7909%2011%2020%2011H131C132.657%2011%20134%2012.3431%20134%2014V86C134%2087.6569%20132.657%2089%20131%2089H19C17.3431%2089%2016%2087.6569%2016%2086V15Z'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='5%205'/%3e%3cg%20id='Badge'%3e%3cg%20clip-path='url(%23clip0_82_66)'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='%232B8C42'/%3e%3cpath%20id='CRM'%20d='M31.79%2028.65C31.07%2028.65%2030.4483%2028.4933%2029.925%2028.18C29.405%2027.8667%2029.0033%2027.4283%2028.72%2026.865C28.44%2026.3017%2028.3%2025.6467%2028.3%2024.9C28.3%2024.1533%2028.44%2023.4983%2028.72%2022.935C29.0033%2022.3717%2029.405%2021.9333%2029.925%2021.62C30.4483%2021.3067%2031.07%2021.15%2031.79%2021.15C32.6167%2021.15%2033.31%2021.355%2033.87%2021.765C34.4333%2022.175%2034.83%2022.73%2035.06%2023.43L33.69%2023.81C33.5567%2023.3733%2033.3317%2023.035%2033.015%2022.795C32.6983%2022.5517%2032.29%2022.43%2031.79%2022.43C31.3333%2022.43%2030.9517%2022.5317%2030.645%2022.735C30.3417%2022.9383%2030.1133%2023.225%2029.96%2023.595C29.8067%2023.965%2029.73%2024.4%2029.73%2024.9C29.73%2025.4%2029.8067%2025.835%2029.96%2026.205C30.1133%2026.575%2030.3417%2026.8617%2030.645%2027.065C30.9517%2027.2683%2031.3333%2027.37%2031.79%2027.37C32.29%2027.37%2032.6983%2027.2483%2033.015%2027.005C33.3317%2026.7617%2033.5567%2026.4233%2033.69%2025.99L35.06%2026.37C34.83%2027.07%2034.4333%2027.625%2033.87%2028.035C33.31%2028.445%2032.6167%2028.65%2031.79%2028.65ZM36.1609%2028.5V21.3H39.2009C39.2709%2021.3%2039.3643%2021.3033%2039.4809%2021.31C39.6009%2021.3133%2039.7076%2021.3233%2039.8009%2021.34C40.2309%2021.4067%2040.5826%2021.5483%2040.8559%2021.765C41.1326%2021.9817%2041.3359%2022.255%2041.4659%2022.585C41.5959%2022.9117%2041.6609%2023.2767%2041.6609%2023.68C41.6609%2024.2833%2041.5109%2024.8%2041.2109%2025.23C40.9109%2025.6567%2040.4409%2025.92%2039.8009%2026.02L39.2009%2026.06H37.5209V28.5H36.1609ZM40.2209%2028.5L38.8009%2025.57L40.2009%2025.3L41.7609%2028.5H40.2209ZM37.5209%2024.79H39.1409C39.2109%2024.79%2039.2876%2024.7867%2039.3709%2024.78C39.4543%2024.7733%2039.5309%2024.76%2039.6009%2024.74C39.7843%2024.69%2039.9259%2024.6067%2040.0259%2024.49C40.1259%2024.37%2040.1943%2024.2383%2040.2309%2024.095C40.2709%2023.9483%2040.2909%2023.81%2040.2909%2023.68C40.2909%2023.55%2040.2709%2023.4133%2040.2309%2023.27C40.1943%2023.1233%2040.1259%2022.9917%2040.0259%2022.875C39.9259%2022.755%2039.7843%2022.67%2039.6009%2022.62C39.5309%2022.6%2039.4543%2022.5867%2039.3709%2022.58C39.2876%2022.5733%2039.2109%2022.57%2039.1409%2022.57H37.5209V24.79ZM42.8602%2028.5V21.3H44.0802L46.4602%2026.08L48.8402%2021.3H50.0602V28.5H48.7902V24.2L46.7002%2028.5H46.2202L44.1302%2024.2V28.5H42.8602Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Ebene_1'%20clip-path='url(%23clip1_82_66)'%3e%3cg%20id='Group_2'%20opacity='0.25'%3e%3cpath%20id='Vector_2'%20d='M114.624%2036H36.376C35.0638%2036%2034%2037.0417%2034%2038.3266V50.6734C34%2051.9583%2035.0638%2053%2036.376%2053H114.624C115.936%2053%20117%2051.9583%20117%2050.6734V38.3266C117%2037.0417%20115.936%2036%20114.624%2036Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3c/g%3e%3cg%20id='Group_3'%20opacity='0.75'%3e%3cpath%20id='Vector_3'%20d='M114.624%2037.5511C115.06%2037.5511%20115.416%2037.9001%20115.416%2038.3266V50.6734C115.416%2051.0999%20115.06%2051.4489%20114.624%2051.4489H36.376C35.9404%2051.4489%2035.584%2051.0999%2035.584%2050.6734V38.3266C35.584%2037.9001%2035.9404%2037.5511%2036.376%2037.5511H114.624ZM114.624%2036H36.376C35.0613%2036%2034%2037.0392%2034%2038.3266V50.6734C34%2051.9608%2035.0613%2053%2036.376%2053H114.624C115.939%2053%20117%2051.9608%20117%2050.6734V38.3266C117%2037.0392%20115.939%2036%20114.624%2036Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3c/g%3e%3cpath%20id='Vector_4'%20d='M41.6426%2048.5639C41.1357%2048.5639%2040.6764%2048.4786%2040.2725%2048.3002C39.8686%2048.1218%2039.528%2047.8736%2039.2667%2047.5479C39.0053%2047.2222%2038.839%2046.8344%2038.7677%2046.3768L40.1141%2046.1829C40.2091%2046.5707%2040.4071%2046.8654%2040.7001%2047.0748C41.0011%2047.2842%2041.3337%2047.385%2041.7139%2047.385C41.9277%2047.385%2042.1336%2047.354%2042.3316%2047.2842C42.5296%2047.2144%2042.6959%2047.1214%2042.8227%2046.9973C42.9494%2046.8732%2043.0127%2046.7103%2043.0127%2046.5242C43.0127%2046.4544%2043.0048%2046.3923%2042.9811%2046.3303C42.9573%2046.2682%2042.9256%2046.2062%2042.8781%2046.1519C42.8306%2046.0976%2042.7593%2046.0433%2042.6722%2045.9968C42.5851%2045.9503%2042.4742%2045.9037%2042.3396%2045.865L40.5655%2045.3531C40.4309%2045.3143%2040.2804%2045.26%2040.0982%2045.198C39.924%2045.1282%2039.7498%2045.0351%2039.5914%2044.9033C39.433%2044.7714%2039.2904%2044.6086%2039.1795%2044.3992C39.0687%2044.1898%2039.0132%2043.9261%2039.0132%2043.6081C39.0132%2043.1583%2039.132%2042.786%2039.3617%2042.4836C39.5914%2042.1889%2039.9002%2041.964%2040.2883%2041.8166C40.6764%2041.6693%2041.1041%2041.5995%2041.5713%2041.5995C42.0465%2041.5995%2042.4663%2041.6848%2042.8385%2041.8399C43.2107%2041.995%2043.5196%2042.2121%2043.773%2042.4991C44.0265%2042.786%2044.2007%2043.1428%2044.3116%2043.5616L42.9177%2043.7943C42.8702%2043.5771%2042.7751%2043.391%2042.6405%2043.2436C42.5059%2043.0963%2042.3396%2042.9799%2042.1495%2042.9024C41.9594%2042.8248%2041.7614%2042.786%2041.5555%2042.7783C41.3496%2042.7783%2041.1595%2042.8016%2040.9853%2042.8558C40.8031%2042.9179%2040.6605%2043.0032%2040.5497%2043.1195C40.4388%2043.2359%2040.3833%2043.3677%2040.3833%2043.5306C40.3833%2043.6779%2040.4309%2043.7943%2040.518%2043.8873C40.613%2043.9804%2040.7239%2044.0502%2040.8665%2044.1045C41.009%2044.1588%2041.1516%2044.2053%2041.2941%2044.2441L42.4821%2044.562C42.6563%2044.6086%2042.8543%2044.6706%2043.0682%2044.7482C43.282%2044.8257%2043.4879%2044.9266%2043.6859%2045.0661C43.8839%2045.2057%2044.0502%2045.3764%2044.177%2045.6013C44.3037%2045.8184%2044.367%2046.0976%2044.367%2046.4389C44.367%2046.7956%2044.2878%2047.1136%2044.1374%2047.385C43.9869%2047.6565%2043.773%2047.8736%2043.5196%2048.052C43.2583%2048.2304%2042.9652%2048.3622%2042.6405%2048.4475C42.3158%2048.5328%2041.9752%2048.5794%2041.6268%2048.5794L41.6426%2048.5639Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_5'%20d='M47.8201%2048.5639C47.2974%2048.5639%2046.8301%2048.4553%2046.4341%2048.2304C46.0381%2048.0055%2045.7214%2047.703%2045.4917%2047.3152C45.262%2046.9275%2045.1511%2046.4776%2045.1511%2045.9735C45.1511%2045.4229%2045.262%2044.9498%2045.4838%2044.5388C45.7055%2044.1355%2046.0144%2043.8175%2046.4025%2043.5926C46.7905%2043.3677%2047.242%2043.2514%2047.7488%2043.2514C48.2874%2043.2514%2048.7467%2043.3755%2049.119%2043.6236C49.4991%2043.8718%2049.7763%2044.2208%2049.9585%2044.6706C50.1406%2045.1204%2050.204%2045.6478%2050.1485%2046.2605H48.8735V45.7952C48.8735%2045.2833%2048.7943%2044.9188%2048.6279%2044.6939C48.4616%2044.469%2048.1923%2044.3526%2047.8122%2044.3526C47.3687%2044.3526%2047.0519%2044.4845%2046.838%2044.7482C46.6321%2045.0119%2046.5292%2045.3996%2046.5292%2045.9115C46.5292%2046.3768%2046.6321%2046.7413%2046.838%2046.9973C47.044%2047.2532%2047.3528%2047.385%2047.7568%2047.385C48.0102%2047.385%2048.224%2047.3307%2048.4062%2047.2222C48.5883%2047.1136%2048.723%2046.9585%2048.818%2046.7491L50.1089%2047.1136C49.9189%2047.5712%2049.61%2047.9279%2049.1902%2048.1838C48.7705%2048.4398%2048.3191%2048.5639%2047.8201%2048.5639ZM46.1173%2046.2682V45.3298H49.5229V46.2682H46.1173Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_6'%20d='M51.3048%2048.4243V41.5839H52.5957V48.4243H51.3048Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_7'%20d='M56.4131%2048.5639C55.8904%2048.5639%2055.4231%2048.4553%2055.0272%2048.2304C54.6312%2048.0055%2054.3144%2047.703%2054.0847%2047.3152C53.855%2046.9275%2053.7441%2046.4776%2053.7441%2045.9735C53.7441%2045.4229%2053.855%2044.9498%2054.0768%2044.5388C54.2985%2044.1355%2054.6074%2043.8175%2054.9955%2043.5926C55.3835%2043.3677%2055.835%2043.2514%2056.3418%2043.2514C56.8804%2043.2514%2057.3398%2043.3755%2057.712%2043.6236C58.0921%2043.8718%2058.3693%2044.2208%2058.5515%2044.6706C58.7336%2045.1204%2058.797%2045.6478%2058.7416%2046.2605H57.4665V45.7952C57.4665%2045.2833%2057.3873%2044.9188%2057.221%2044.6939C57.0546%2044.469%2056.7854%2044.3526%2056.4052%2044.3526C55.9617%2044.3526%2055.6449%2044.4845%2055.4311%2044.7482C55.2252%2045.0119%2055.1222%2045.3996%2055.1222%2045.9115C55.1222%2046.3768%2055.2252%2046.7413%2055.4311%2046.9973C55.637%2047.2532%2055.9459%2047.385%2056.3498%2047.385C56.6032%2047.385%2056.817%2047.3307%2056.9992%2047.2222C57.1814%2047.1136%2057.316%2046.9585%2057.411%2046.7491L58.702%2047.1136C58.5119%2047.5712%2058.203%2047.9279%2057.7833%2048.1838C57.3635%2048.4398%2056.9121%2048.5639%2056.4131%2048.5639ZM54.7104%2046.2682V45.3298H58.1159V46.2682H54.7104Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_8'%20d='M62.0679%2048.5639C61.5373%2048.5639%2061.0779%2048.4475%2060.6978%2048.2149C60.3176%2047.9822%2060.0246%2047.6642%2059.8266%2047.2687C59.6207%2046.8654%2059.5256%2046.4156%2059.5256%2045.9115C59.5256%2045.4074%2059.6286%2044.9498%2059.8424%2044.5465C60.0563%2044.1432%2060.3493%2043.833%2060.7295%2043.6004C61.1096%2043.3677%2061.569%2043.2591%2062.0917%2043.2591C62.6936%2043.2591%2063.2084%2043.4065%2063.6123%2043.7089C64.0241%2044.0114%2064.2855%2044.4147%2064.3963%2044.9343L63.1054%2045.2678C63.0262%2045.0041%2062.8995%2044.8025%2062.7094%2044.6551C62.5193%2044.5078%2062.3055%2044.438%2062.0679%2044.438C61.7986%2044.438%2061.569%2044.5%2061.3947%2044.6318C61.2205%2044.7637%2061.0938%2044.9343%2061.0066%2045.1592C60.9274%2045.3841%2060.8799%2045.6323%2060.8799%2045.9115C60.8799%2046.3458%2060.975%2046.7026%2061.1809%2046.974C61.3789%2047.2454%2061.6719%2047.385%2062.06%2047.385C62.353%2047.385%2062.5748%2047.323%2062.7253%2047.1912C62.8757%2047.0593%2062.9945%2046.8732%2063.0658%2046.6328L64.3884%2046.9042C64.2459%2047.4393%2063.9687%2047.8504%2063.5648%2048.1373C63.1608%2048.4243%2062.6619%2048.5716%2062.06%2048.5716L62.0679%2048.5639Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_9'%20d='M64.7765%2044.3759V43.3987H68.4275V44.3759H64.7765ZM68.4275%2048.4243C68.0711%2048.4863%2067.7227%2048.5173%2067.3821%2048.5096C67.0416%2048.5018%2066.7406%2048.4398%2066.4713%2048.3312C66.2021%2048.2226%2066.0041%2048.0443%2065.8615%2047.7961C65.7348%2047.5634%2065.6714%2047.3308%2065.6635%2047.0981C65.6635%2046.8577%2065.6556%2046.594%2065.6556%2046.2915V42.0027H66.9465V46.2217C66.9465%2046.4156%2066.9465%2046.594%2066.9465%2046.7491C66.9465%2046.9042%2066.9861%2047.0283%2067.0416%2047.1214C67.1524%2047.2997%2067.3346%2047.3928%2067.588%2047.4083C67.8415%2047.4238%2068.1187%2047.4083%2068.4196%2047.3695V48.4243H68.4275Z'%20fill='%23AAAAAA'%20fill-opacity='0.65'/%3e%3cpath%20id='Vector_10'%20d='M102.356%2042.693L105.508%2045.7797C105.881%2046.1442%20106.49%2046.1442%20106.871%2045.7797L110.213%2042.5068'%20stroke='%23AAAAAA'%20stroke-opacity='0.65'%20stroke-width='1.76'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20id='Option'%3e%3cpath%20id='Vector_11'%20d='M67.2443%2066V62.94C67.2443%2062.792%2067.2363%2062.604%2067.2203%2062.376C67.2043%2062.144%2067.1543%2061.912%2067.0703%2061.68C66.9863%2061.448%2066.8483%2061.254%2066.6563%2061.098C66.4683%2060.942%2066.2003%2060.864%2065.8523%2060.864C65.7123%2060.864%2065.5623%2060.886%2065.4023%2060.93C65.2423%2060.974%2065.0923%2061.06%2064.9523%2061.188C64.8123%2061.312%2064.6963%2061.496%2064.6043%2061.74C64.5163%2061.984%2064.4723%2062.308%2064.4723%2062.712L63.5363%2062.268C63.5363%2061.756%2063.6403%2061.276%2063.8483%2060.828C64.0563%2060.38%2064.3683%2060.018%2064.7843%2059.742C65.2043%2059.466%2065.7323%2059.328%2066.3683%2059.328C66.8763%2059.328%2067.2903%2059.414%2067.6103%2059.586C67.9303%2059.758%2068.1783%2059.976%2068.3543%2060.24C68.5343%2060.504%2068.6623%2060.78%2068.7383%2061.068C68.8143%2061.352%2068.8603%2061.612%2068.8763%2061.848C68.8923%2062.084%2068.9003%2062.256%2068.9003%2062.364V66H67.2443ZM62.8163%2066V59.52H64.2683V61.668H64.4723V66H62.8163Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_12'%20d='M58.2208%2066.18C57.5688%2066.18%2056.9968%2066.034%2056.5048%2065.742C56.0128%2065.45%2055.6288%2065.048%2055.3528%2064.536C55.0808%2064.02%2054.9448%2063.428%2054.9448%2062.76C54.9448%2062.084%2055.0848%2061.49%2055.3648%2060.978C55.6448%2060.462%2056.0308%2060.06%2056.5228%2059.772C57.0148%2059.484%2057.5808%2059.34%2058.2208%2059.34C58.8728%2059.34%2059.4448%2059.486%2059.9368%2059.778C60.4328%2060.07%2060.8188%2060.474%2061.0948%2060.99C61.3708%2061.502%2061.5088%2062.092%2061.5088%2062.76C61.5088%2063.432%2061.3688%2064.026%2061.0888%2064.542C60.8128%2065.054%2060.4268%2065.456%2059.9308%2065.748C59.4388%2066.036%2058.8688%2066.18%2058.2208%2066.18ZM58.2208%2064.656C58.7448%2064.656%2059.1348%2064.48%2059.3908%2064.128C59.6508%2063.772%2059.7808%2063.316%2059.7808%2062.76C59.7808%2062.184%2059.6488%2061.724%2059.3848%2061.38C59.1248%2061.036%2058.7368%2060.864%2058.2208%2060.864C57.8648%2060.864%2057.5728%2060.944%2057.3448%2061.104C57.1168%2061.264%2056.9468%2061.486%2056.8348%2061.77C56.7268%2062.054%2056.6728%2062.384%2056.6728%2062.76C56.6728%2063.34%2056.8028%2063.802%2057.0628%2064.146C57.3268%2064.486%2057.7128%2064.656%2058.2208%2064.656Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_13'%20d='M51.874%2058.62V57.18H53.506V58.62H51.874ZM51.874%2066V59.52H53.506V66H51.874Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_14'%20d='M50.31%2066C49.862%2066.084%2049.422%2066.12%2048.99%2066.108C48.562%2066.1%2048.178%2066.026%2047.838%2065.886C47.502%2065.742%2047.246%2065.512%2047.07%2065.196C46.91%2064.9%2046.826%2064.6%2046.818%2064.296C46.81%2063.988%2046.806%2063.64%2046.806%2063.252V57.72H48.438V63.156C48.438%2063.408%2048.44%2063.636%2048.444%2063.84C48.452%2064.04%2048.494%2064.2%2048.57%2064.32C48.714%2064.548%2048.944%2064.672%2049.26%2064.692C49.576%2064.712%2049.926%2064.696%2050.31%2064.644V66ZM45.702%2060.78V59.52H50.31V60.78H45.702Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_15'%20d='M42.1138%2066.18C41.4698%2066.18%2040.9318%2066.03%2040.4998%2065.73C40.0678%2065.43%2039.7418%2065.022%2039.5218%2064.506C39.3058%2063.99%2039.1978%2063.408%2039.1978%2062.76C39.1978%2062.112%2039.3058%2061.53%2039.5218%2061.014C39.7378%2060.498%2040.0558%2060.09%2040.4758%2059.79C40.8958%2059.49%2041.4138%2059.34%2042.0298%2059.34C42.6498%2059.34%2043.1898%2059.488%2043.6498%2059.784C44.1098%2060.08%2044.4658%2060.486%2044.7178%2061.002C44.9738%2061.514%2045.1018%2062.1%2045.1018%2062.76C45.1018%2063.408%2044.9758%2063.99%2044.7238%2064.506C44.4758%2065.022%2044.1278%2065.43%2043.6798%2065.73C43.2318%2066.03%2042.7098%2066.18%2042.1138%2066.18ZM38.9218%2068.88V59.52H40.3618V63.96H40.5658V68.88H38.9218ZM41.8498%2064.728C42.2018%2064.728%2042.4898%2064.64%2042.7138%2064.464C42.9378%2064.288%2043.1038%2064.052%2043.2118%2063.756C43.3198%2063.456%2043.3738%2063.124%2043.3738%2062.76C43.3738%2062.4%2043.3178%2062.072%2043.2058%2061.776C43.0938%2061.476%2042.9198%2061.238%2042.6838%2061.062C42.4518%2060.882%2042.1538%2060.792%2041.7898%2060.792C41.4498%2060.792%2041.1738%2060.874%2040.9618%2061.038C40.7538%2061.202%2040.6018%2061.432%2040.5058%2061.728C40.4098%2062.024%2040.3618%2062.368%2040.3618%2062.76C40.3618%2063.152%2040.4098%2063.496%2040.5058%2063.792C40.6018%2064.088%2040.7578%2064.318%2040.9738%2064.482C41.1938%2064.646%2041.4858%2064.728%2041.8498%2064.728Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_16'%20d='M33.548%2066.18C32.684%2066.18%2031.938%2065.992%2031.31%2065.616C30.686%2065.24%2030.204%2064.714%2029.864%2064.038C29.528%2063.362%2029.36%2062.576%2029.36%2061.68C29.36%2060.784%2029.528%2059.998%2029.864%2059.322C30.204%2058.646%2030.686%2058.12%2031.31%2057.744C31.938%2057.368%2032.684%2057.18%2033.548%2057.18C34.412%2057.18%2035.156%2057.368%2035.78%2057.744C36.408%2058.12%2036.89%2058.646%2037.226%2059.322C37.566%2059.998%2037.736%2060.784%2037.736%2061.68C37.736%2062.576%2037.566%2063.362%2037.226%2064.038C36.89%2064.714%2036.408%2065.24%2035.78%2065.616C35.156%2065.992%2034.412%2066.18%2033.548%2066.18ZM33.548%2064.644C34.096%2064.652%2034.552%2064.534%2034.916%2064.29C35.28%2064.046%2035.552%2063.7%2035.732%2063.252C35.916%2062.804%2036.008%2062.28%2036.008%2061.68C36.008%2061.08%2035.916%2060.56%2035.732%2060.12C35.552%2059.68%2035.28%2059.338%2034.916%2059.094C34.552%2058.85%2034.096%2058.724%2033.548%2058.716C33%2058.708%2032.544%2058.826%2032.18%2059.07C31.816%2059.314%2031.542%2059.66%2031.358%2060.108C31.178%2060.556%2031.088%2061.08%2031.088%2061.68C31.088%2062.28%2031.178%2062.8%2031.358%2063.24C31.542%2063.68%2031.816%2064.022%2032.18%2064.266C32.544%2064.51%2033%2064.636%2033.548%2064.644Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3cg%20id='Group_4'%20opacity='0.75'%3e%3cpath%20id='Vector_17'%20d='M124.8%2053C125.35%2053%20125.8%2053.45%20125.8%2054V69.92C125.8%2070.47%20125.35%2070.92%20124.8%2070.92H26C25.45%2070.92%2025%2070.47%2025%2069.92V54C25%2053.45%2025.45%2053%2026%2053H124.8ZM124.8%2051H26C24.34%2051%2023%2052.34%2023%2054V69.92C23%2071.58%2024.34%2072.92%2026%2072.92H124.8C126.46%2072.92%20127.8%2071.58%20127.8%2069.92V54C127.8%2052.34%20126.46%2051%20124.8%2051Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_82_66'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_82_66'%3e%3crect%20width='83'%20height='17'%20fill='white'%20transform='translate(34%2036)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"; H.provideEditingConfig(Z2, { initialize: (e) => { e.get(d) || e.update({ externalId: p() }); }, initializeCopy: (e) => { const t = M(e); t && t.get(D) || e.update({ externalId: p(), answerOptionId: null }); }, thumbnail: f3, title: "Questionnaire Answer Option", titleForContent: (e) => e.get(z2) ? "Questionnaire Answer Option Condition" : "Questionnaire Answer Option", attributes: { text: { title: "Answer" }, identifier: { title: "Identifier" }, position: { title: "Position" }, content: { title: "Condition Content" }, externalId: { title: "External ID" }, answerOptionId: { title: "Answer Option ID (GID)" } }, initialContent: { answerOptionId: null, externalId: () => p(), text: "", identifier: "", type: null, position: null, isCondition: !1 }, properties: (e) => { const t = [x, S, [J, { enabled: !1 }], [d, { enabled: !1 }], [L, { enabled: !1 }]]; return e.get(R).length > 0 && t.push(R), t; }, validations: [ U2, [ x, (e) => { if (_(e)) return "Answer can not be empty."; } ] ] }); const A3 = [ x, (e) => e ? null : "Title can not be empty." ], g3 = [ f, (e) => e ? null : "Specify the Input type." ], G = { text: { title: "Question Title" }, mandatory: { title: "Mandatory" }, identifier: { title: "Identifier" }, help: { title: "Help Text" }, defaultValue: { title: "Default Value" }, position: { title: "Position" }, externalId: { title: "External ID" }, questionId: { title: "Question ID (GID)" }, validationText: { title: "Validation Message", description: "This message appears when the input is invalid." } }, F = { questionId: null, externalId: null, position: null, text: "Question title", mandatory: !1, help: "", defaultValue: "", identifier: "", alignment: "left" }, s2 = [ x, q2, P, S, K, [J, { enabled: !1 }] ], W = [ A3, g3, U2 ], h3 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20150%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='crm-questionaire-checkbox'%3e%3cpath%20id='Rectangle%201'%20d='M16%2015C16%2012.7909%2017.7909%2011%2020%2011H131C132.657%2011%20134%2012.3431%20134%2014V86C134%2087.6569%20132.657%2089%20131%2089H19C17.3431%2089%2016%2087.6569%2016%2086V15Z'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='5%205'/%3e%3cg%20id='Badge'%3e%3cg%20clip-path='url(%23clip0_82_103)'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='%232B8C42'/%3e%3cpath%20id='CRM'%20d='M31.79%2028.65C31.07%2028.65%2030.4483%2028.4933%2029.925%2028.18C29.405%2027.8667%2029.0033%2027.4283%2028.72%2026.865C28.44%2026.3017%2028.3%2025.6467%2028.3%2024.9C28.3%2024.1533%2028.44%2023.4983%2028.72%2022.935C29.0033%2022.3717%2029.405%2021.9333%2029.925%2021.62C30.4483%2021.3067%2031.07%2021.15%2031.79%2021.15C32.6167%2021.15%2033.31%2021.355%2033.87%2021.765C34.4333%2022.175%2034.83%2022.73%2035.06%2023.43L33.69%2023.81C33.5567%2023.3733%2033.3317%2023.035%2033.015%2022.795C32.6983%2022.5517%2032.29%2022.43%2031.79%2022.43C31.3333%2022.43%2030.9517%2022.5317%2030.645%2022.735C30.3417%2022.9383%2030.1133%2023.225%2029.96%2023.595C29.8067%2023.965%2029.73%2024.4%2029.73%2024.9C29.73%2025.4%2029.8067%2025.835%2029.96%2026.205C30.1133%2026.575%2030.3417%2026.8617%2030.645%2027.065C30.9517%2027.2683%2031.3333%2027.37%2031.79%2027.37C32.29%2027.37%2032.6983%2027.2483%2033.015%2027.005C33.3317%2026.7617%2033.5567%2026.4233%2033.69%2025.99L35.06%2026.37C34.83%2027.07%2034.4333%2027.625%2033.87%2028.035C33.31%2028.445%2032.6167%2028.65%2031.79%2028.65ZM36.1609%2028.5V21.3H39.2009C39.2709%2021.3%2039.3643%2021.3033%2039.4809%2021.31C39.6009%2021.3133%2039.7076%2021.3233%2039.8009%2021.34C40.2309%2021.4067%2040.5826%2021.5483%2040.8559%2021.765C41.1326%2021.9817%2041.3359%2022.255%2041.4659%2022.585C41.5959%2022.9117%2041.6609%2023.2767%2041.6609%2023.68C41.6609%2024.2833%2041.5109%2024.8%2041.2109%2025.23C40.9109%2025.6567%2040.4409%2025.92%2039.8009%2026.02L39.2009%2026.06H37.5209V28.5H36.1609ZM40.2209%2028.5L38.8009%2025.57L40.2009%2025.3L41.7609%2028.5H40.2209ZM37.5209%2024.79H39.1409C39.2109%2024.79%2039.2876%2024.7867%2039.3709%2024.78C39.4543%2024.7733%2039.5309%2024.76%2039.6009%2024.74C39.7843%2024.69%2039.9259%2024.6067%2040.0259%2024.49C40.1259%2024.37%2040.1943%2024.2383%2040.2309%2024.095C40.2709%2023.9483%2040.2909%2023.81%2040.2909%2023.68C40.2909%2023.55%2040.2709%2023.4133%2040.2309%2023.27C40.1943%2023.1233%2040.1259%2022.9917%2040.0259%2022.875C39.9259%2022.755%2039.7843%2022.67%2039.6009%2022.62C39.5309%2022.6%2039.4543%2022.5867%2039.3709%2022.58C39.2876%2022.5733%2039.2109%2022.57%2039.1409%2022.57H37.5209V24.79ZM42.8602%2028.5V21.3H44.0802L46.4602%2026.08L48.8402%2021.3H50.0602V28.5H48.7902V24.2L46.7002%2028.5H46.2202L44.1302%2024.2V28.5H42.8602Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Group%2054'%3e%3cg%20id='Group'%20opacity='0.75'%3e%3cpath%20id='Vector'%20d='M47.94%2065.5C48.49%2065.5%2048.94%2065.95%2048.94%2066.5V77.44C48.94%2077.99%2048.49%2078.44%2047.94%2078.44H37C36.45%2078.44%2036%2077.99%2036%2077.44V66.5C36%2065.95%2036.45%2065.5%2037%2065.5H47.94ZM47.94%2063.5H37C35.34%2063.5%2034%2064.84%2034%2066.5V77.44C34%2079.1%2035.34%2080.44%2037%2080.44H47.94C49.6%2080.44%2050.94%2079.1%2050.94%2077.44V66.5C50.94%2064.84%2049.6%2063.5%2047.94%2063.5Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3cpath%20id='Vector_2'%20d='M50.82%2062L43.66%2074.26L37.99%2070'%20stroke='%23AAAAAA'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Checkbox'%20d='M60.548%2076.68C59.684%2076.68%2058.938%2076.492%2058.31%2076.116C57.686%2075.74%2057.204%2075.214%2056.864%2074.538C56.528%2073.862%2056.36%2073.076%2056.36%2072.18C56.36%2071.284%2056.528%2070.498%2056.864%2069.822C57.204%2069.146%2057.686%2068.62%2058.31%2068.244C58.938%2067.868%2059.684%2067.68%2060.548%2067.68C61.54%2067.68%2062.372%2067.926%2063.044%2068.418C63.72%2068.91%2064.196%2069.576%2064.472%2070.416L62.828%2070.872C62.668%2070.348%2062.398%2069.942%2062.018%2069.654C61.638%2069.362%2061.148%2069.216%2060.548%2069.216C60%2069.216%2059.542%2069.338%2059.174%2069.582C58.81%2069.826%2058.536%2070.17%2058.352%2070.614C58.168%2071.058%2058.076%2071.58%2058.076%2072.18C58.076%2072.78%2058.168%2073.302%2058.352%2073.746C58.536%2074.19%2058.81%2074.534%2059.174%2074.778C59.542%2075.022%2060%2075.144%2060.548%2075.144C61.148%2075.144%2061.638%2074.998%2062.018%2074.706C62.398%2074.414%2062.668%2074.008%2062.828%2073.488L64.472%2073.944C64.196%2074.784%2063.72%2075.45%2063.044%2075.942C62.372%2076.434%2061.54%2076.68%2060.548%2076.68ZM70.2091%2076.5V73.44C70.2091%2073.292%2070.2011%2073.104%2070.1851%2072.876C70.1691%2072.644%2070.1191%2072.412%2070.0351%2072.18C69.9511%2071.948%2069.8131%2071.754%2069.6211%2071.598C69.4331%2071.442%2069.1651%2071.364%2068.8171%2071.364C68.6771%2071.364%2068.5271%2071.386%2068.3671%2071.43C68.2071%2071.474%2068.0571%2071.56%2067.9171%2071.688C67.7771%2071.812%2067.6611%2071.996%2067.5691%2072.24C67.4811%2072.484%2067.4371%2072.808%2067.4371%2073.212L66.5011%2072.768C66.5011%2072.256%2066.6051%2071.776%2066.8131%2071.328C67.0211%2070.88%2067.3331%2070.518%2067.7491%2070.242C68.1691%2069.966%2068.6971%2069.828%2069.3331%2069.828C69.8411%2069.828%2070.2551%2069.914%2070.5751%2070.086C70.8951%2070.258%2071.1431%2070.476%2071.3191%2070.74C71.4991%2071.004%2071.6271%2071.28%2071.7031%2071.568C71.7791%2071.852%2071.8251%2072.112%2071.8411%2072.348C71.8571%2072.584%2071.8651%2072.756%2071.8651%2072.864V76.5H70.2091ZM65.7811%2076.5V67.86H67.2331V72.3H67.4371V76.5H65.7811ZM76.434%2076.68C75.77%2076.68%2075.184%2076.538%2074.676%2076.254C74.172%2075.966%2073.776%2075.572%2073.488%2075.072C73.204%2074.568%2073.062%2073.992%2073.062%2073.344C73.062%2072.636%2073.202%2072.02%2073.482%2071.496C73.762%2070.972%2074.148%2070.566%2074.64%2070.278C75.132%2069.986%2075.698%2069.84%2076.338%2069.84C77.018%2069.84%2077.596%2070%2078.072%2070.32C78.548%2070.64%2078.9%2071.09%2079.128%2071.67C79.356%2072.25%2079.436%2072.932%2079.368%2073.716H77.754V73.116C77.754%2072.456%2077.648%2071.982%2077.436%2071.694C77.228%2071.402%2076.886%2071.256%2076.41%2071.256C75.854%2071.256%2075.444%2071.426%2075.18%2071.766C74.92%2072.102%2074.79%2072.6%2074.79%2073.26C74.79%2073.864%2074.92%2074.332%2075.18%2074.664C75.444%2074.992%2075.83%2075.156%2076.338%2075.156C76.658%2075.156%2076.932%2075.086%2077.16%2074.946C77.388%2074.806%2077.562%2074.604%2077.682%2074.34L79.314%2074.808C79.07%2075.4%2078.684%2075.86%2078.156%2076.188C77.632%2076.516%2077.058%2076.68%2076.434%2076.68ZM74.286%2073.716V72.504H78.582V73.716H74.286ZM83.5788%2076.68C82.9068%2076.68%2082.3308%2076.53%2081.8508%2076.23C81.3708%2075.93%2081.0028%2075.522%2080.7468%2075.006C80.4908%2074.49%2080.3628%2073.908%2080.3628%2073.26C80.3628%2072.604%2080.4948%2072.018%2080.7588%2071.502C81.0268%2070.986%2081.4028%2070.58%2081.8868%2070.284C82.3708%2069.988%2082.9428%2069.84%2083.6028%2069.84C84.3668%2069.84%2085.0068%2070.034%2085.5228%2070.422C86.0428%2070.806%2086.3748%2071.332%2086.5188%2072L84.8868%2072.432C84.7908%2072.096%2084.6228%2071.834%2084.3828%2071.646C84.1468%2071.458%2083.8788%2071.364%2083.5788%2071.364C83.2348%2071.364%2082.9528%2071.448%2082.7328%2071.616C82.5128%2071.78%2082.3508%2072.006%2082.2468%2072.294C82.1428%2072.578%2082.0908%2072.9%2082.0908%2073.26C82.0908%2073.824%2082.2148%2074.282%2082.4628%2074.634C82.7148%2074.982%2083.0868%2075.156%2083.5788%2075.156C83.9468%2075.156%2084.2268%2075.072%2084.4188%2074.904C84.6108%2074.736%2084.7548%2074.496%2084.8508%2074.184L86.5188%2074.532C86.3348%2075.22%2085.9868%2075.75%2085.4748%2076.122C84.9628%2076.494%2084.3308%2076.68%2083.5788%2076.68ZM87.7069%2076.5L87.7189%2067.86H89.3749V73.14L91.5709%2070.02H93.5869L91.2469%2073.26L93.7429%2076.5H91.6189L89.3749%2073.38V76.5H87.7069ZM97.52%2076.68C96.876%2076.68%2096.338%2076.53%2095.906%2076.23C95.474%2075.93%2095.148%2075.522%2094.928%2075.006C94.712%2074.49%2094.604%2073.908%2094.604%2073.26C94.604%2072.612%2094.712%2072.03%2094.928%2071.514C95.144%2070.998%2095.462%2070.59%2095.882%2070.29C96.302%2069.99%2096.82%2069.84%2097.436%2069.84C98.056%2069.84%2098.596%2069.988%2099.056%2070.284C99.516%2070.58%2099.872%2070.986%20100.124%2071.502C100.38%2072.014%20100.508%2072.6%20100.508%2073.26C100.508%2073.908%20100.382%2074.49%20100.13%2075.006C99.882%2075.522%2099.534%2075.93%2099.086%2076.23C98.638%2076.53%2098.116%2076.68%2097.52%2076.68ZM94.328%2076.5V67.86H95.972V72.06H95.768V76.5H94.328ZM97.256%2075.228C97.608%2075.228%2097.896%2075.14%2098.12%2074.964C98.344%2074.788%2098.51%2074.552%2098.618%2074.256C98.726%2073.956%2098.78%2073.624%2098.78%2073.26C98.78%2072.9%2098.724%2072.572%2098.612%2072.276C98.5%2071.976%2098.326%2071.738%2098.09%2071.562C97.858%2071.382%2097.56%2071.292%2097.196%2071.292C96.856%2071.292%2096.58%2071.374%2096.368%2071.538C96.16%2071.702%2096.008%2071.932%2095.912%2072.228C95.816%2072.524%2095.768%2072.868%2095.768%2073.26C95.768%2073.652%2095.816%2073.996%2095.912%2074.292C96.008%2074.588%2096.164%2074.818%2096.38%2074.982C96.6%2075.146%2096.892%2075.228%2097.256%2075.228ZM104.744%2076.68C104.092%2076.68%20103.52%2076.534%20103.028%2076.242C102.536%2075.95%20102.152%2075.548%20101.876%2075.036C101.604%2074.52%20101.468%2073.928%20101.468%2073.26C101.468%2072.584%20101.608%2071.99%20101.888%2071.478C102.168%2070.962%20102.554%2070.56%20103.046%2070.272C103.538%2069.984%20104.104%2069.84%20104.744%2069.84C105.396%2069.84%20105.968%2069.986%20106.46%2070.278C106.956%2070.57%20107.342%2070.974%20107.618%2071.49C107.894%2072.002%20108.032%2072.592%20108.032%2073.26C108.032%2073.932%20107.892%2074.526%20107.612%2075.042C107.336%2075.554%20106.95%2075.956%20106.454%2076.248C105.962%2076.536%20105.392%2076.68%20104.744%2076.68ZM104.744%2075.156C105.268%2075.156%20105.658%2074.98%20105.914%2074.628C106.174%2074.272%20106.304%2073.816%20106.304%2073.26C106.304%2072.684%20106.172%2072.224%20105.908%2071.88C105.648%2071.536%20105.26%2071.364%20104.744%2071.364C104.388%2071.364%20104.096%2071.444%20103.868%2071.604C103.64%2071.764%20103.47%2071.986%20103.358%2072.27C103.25%2072.554%20103.196%2072.884%20103.196%2073.26C103.196%2073.84%20103.326%2074.302%20103.586%2074.646C103.85%2074.986%20104.236%2075.156%20104.744%2075.156ZM108.397%2076.5L110.713%2073.224L108.445%2070.02H110.365L111.661%2071.94L112.933%2070.02H114.853L112.585%2073.224L114.913%2076.5H112.993L111.661%2074.508L110.317%2076.5H108.397Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_82_103'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", N = (e) => M(e) ? "" : "Needs to be inside a Questionnaire."; H.provideEditingConfig(X2, { initialize: (e) => { if (!e.get(d)) { const t = p(); e.update({ externalId: t }); } }, initializeCopy: (e) => { const t = M(e); if (t && t.get(D)) return; const i = p(); e.update({ externalId: i, questionId: null }); }, thumbnail: h3, title: "Questionnaire Checkbox Question", attributes: { ...G, type: { title: "Input Type", values: [ { value: l2, title: "Default" }, { value: C2, title: "Tri-State" } ] }, alignment: { title: "Alignment" } }, properties: (e) => [ ...s2, f, B, Q, [d, { enabled: !1 }], [h, { enabled: !1 }] ], initialContent: { ...F, type: l2, validationText: "Please tick the box" }, validations: [ ...W, N, [ P, (e, { widget: t }) => { const i = t.get(f); if (!e) return null; const c = i === C2 ? ["true", "false", "unset"] : ["true", "false"]; return c.includes(e) ? null : `Specify a valid default value. Allowed values: ${c.join(", ")}`; } ] ] }); const m3 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20150%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='crm-upload'%3e%3cpath%20id='Rectangle%201'%20d='M16%2015C16%2012.7909%2017.7909%2011%2020%2011H131C132.657%2011%20134%2012.3431%20134%2014V86C134%2087.6569%20132.657%2089%20131%2089H19C17.3431%2089%2016%2087.6569%2016%2086V15Z'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='5%205'/%3e%3cg%20id='Badge'%3e%3cg%20clip-path='url(%23clip0_96_40)'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='%232B8C42'/%3e%3cpath%20id='CRM'%20d='M31.79%2028.65C31.07%2028.65%2030.4483%2028.4933%2029.925%2028.18C29.405%2027.8667%2029.0033%2027.4283%2028.72%2026.865C28.44%2026.3017%2028.3%2025.6467%2028.3%2024.9C28.3%2024.1533%2028.44%2023.4983%2028.72%2022.935C29.0033%2022.3717%2029.405%2021.9333%2029.925%2021.62C30.4483%2021.3067%2031.07%2021.15%2031.79%2021.15C32.6167%2021.15%2033.31%2021.355%2033.87%2021.765C34.4333%2022.175%2034.83%2022.73%2035.06%2023.43L33.69%2023.81C33.5567%2023.3733%2033.3317%2023.035%2033.015%2022.795C32.6983%2022.5517%2032.29%2022.43%2031.79%2022.43C31.3333%2022.43%2030.9517%2022.5317%2030.645%2022.735C30.3417%2022.9383%2030.1133%2023.225%2029.96%2023.595C29.8067%2023.965%2029.73%2024.4%2029.73%2024.9C29.73%2025.4%2029.8067%2025.835%2029.96%2026.205C30.1133%2026.575%2030.3417%2026.8617%2030.645%2027.065C30.9517%2027.2683%2031.3333%2027.37%2031.79%2027.37C32.29%2027.37%2032.6983%2027.2483%2033.015%2027.005C33.3317%2026.7617%2033.5567%2026.4233%2033.69%2025.99L35.06%2026.37C34.83%2027.07%2034.4333%2027.625%2033.87%2028.035C33.31%2028.445%2032.6167%2028.65%2031.79%2028.65ZM36.1609%2028.5V21.3H39.2009C39.2709%2021.3%2039.3643%2021.3033%2039.4809%2021.31C39.6009%2021.3133%2039.7076%2021.3233%2039.8009%2021.34C40.2309%2021.4067%2040.5826%2021.5483%2040.8559%2021.765C41.1326%2021.9817%2041.3359%2022.255%2041.4659%2022.585C41.5959%2022.9117%2041.6609%2023.2767%2041.6609%2023.68C41.6609%2024.2833%2041.5109%2024.8%2041.2109%2025.23C40.9109%2025.6567%2040.4409%2025.92%2039.8009%2026.02L39.2009%2026.06H37.5209V28.5H36.1609ZM40.2209%2028.5L38.8009%2025.57L40.2009%2025.3L41.7609%2028.5H40.2209ZM37.5209%2024.79H39.1409C39.2109%2024.79%2039.2876%2024.7867%2039.3709%2024.78C39.4543%2024.7733%2039.5309%2024.76%2039.6009%2024.74C39.7843%2024.69%2039.9259%2024.6067%2040.0259%2024.49C40.1259%2024.37%2040.1943%2024.2383%2040.2309%2024.095C40.2709%2023.9483%2040.2909%2023.81%2040.2909%2023.68C40.2909%2023.55%2040.2709%2023.4133%2040.2309%2023.27C40.1943%2023.1233%2040.1259%2022.9917%2040.0259%2022.875C39.9259%2022.755%2039.7843%2022.67%2039.6009%2022.62C39.5309%2022.6%2039.4543%2022.5867%2039.3709%2022.58C39.2876%2022.5733%2039.2109%2022.57%2039.1409%2022.57H37.5209V24.79ZM42.8602%2028.5V21.3H44.0802L46.4602%2026.08L48.8402%2021.3H50.0602V28.5H48.7902V24.2L46.7002%2028.5H46.2202L44.1302%2024.2V28.5H42.8602Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cg%20id='icon%20upload'%3e%3cpath%20id='Vector'%20d='M57%2062.25V66.75C57%2067.9435%2057.4741%2069.0881%2058.318%2069.932C59.1619%2070.7759%2060.3065%2071.25%2061.5%2071.25H88.5C89.6935%2071.25%2090.8381%2070.7759%2091.682%2069.932C92.5259%2069.0881%2093%2067.9435%2093%2066.75V62.25'%20stroke='%23AAAAAA'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M63.75%2044.25L75%2033L86.25%2044.25'%20stroke='%23AAAAAA'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M74.9999%2033V60'%20stroke='%23AAAAAA'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_96_40'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"; H.provideEditingConfig($2, { initialize: (e) => { e.get(d) || e.update({ externalId: p() }); }, initializeCopy: (e) => { const t = M(e); t && t.get(D) || e.update({ externalId: p(), questionId: null }); }, thumbnail: m3, title: "Questionnaire File Upload Question", attributes: { ...G, type: { title: "Upload Type", values: [ { value: Z, title: "Single file" }, { value: e0, title: "Multiple files" } ] }, selectButtonText: { title: "Select Button text" }, fileAccept: { title: "Allowed file types", description: "Comma-separated list of extensions and/or MIME patterns to restrict the file picker. Examples: '.png,.jpg,.pdf' or 'image/*,.pdf'. Leave empty to allow all types." }, fileTooLargeTextSingle: { title: "Message for oversized file (Maximum 8 MB)", description: "Shown when the selected file exceeds the maximum size." }, fileTooLargeTextMulti: { title: "Message for oversized files (Maximum 8 MB)", description: "Shown when one or more selected files exceed the maximum size; the failed filenames will be listed after this text. Example: 'The following files exceed 8 MB and were skipped: sample. mp3, image. png'" }, fileTypeRejectTextSingle: { title: "Message for disallowed type", description: "Shown when the selected file type isn't allowed by 'Allowed file types'. Example: 'Selected file type is not allowed.'" }, fileTypeRejectTextMulti: { title: "Message for disallowed types", description: "Shown when one or more selected files are not allowed by 'Allowed file types'; the failed filenames will be listed after this text. Example: 'The following files are not allowed and were skipped:'" }, alignment: { title: "Alignment" } }, initialContent: { ...F, type: Z, selectButtonText: "Choose file", validationText: "Please select a file", fileAccept: "", fileTooLargeTextMulti: "The following files exceed 8 MB and were skipped:", fileTooLargeTextSingle: "Selected file exceeds 8 MB and was skipped.", fileTypeRejectTextMulti: "The following files are not allowed and were skipped:", fileTypeRejectTextSingle: "Selected file type is not allowed." }, properties: (e) => [ x, q2, S, K, [J, { enabled: !1 }], f, J2, K2, T3(e), I3(e), B, Q, [d, { enabled: !1 }], [h, { enabled: !1 }] ], validations: [ ...W, N ] }); const I3 = ((e) => e.get(f) === Z ? t0 : i0), T3 = ((e) => e.get(f) === Z ? n0 : a0), E3 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20150%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='crm-questionaire-input'%3e%3cpath%20id='Rectangle%201'%20d='M16%2015C16%2012.7909%2017.7909%2011%2020%2011H131C132.657%2011%20134%2012.3431%20134%2014V86C134%2087.6569%20132.657%2089%20131%2089H19C17.3431%2089%2016%2087.6569%2016%2086V15Z'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='5%205'/%3e%3cg%20id='Badge'%3e%3cg%20clip-path='url(%23clip0_82_55)'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='%232B8C42'/%3e%3cpath%20id='CRM'%20d='M31.79%2028.65C31.07%2028.65%2030.4483%2028.4933%2029.925%2028.18C29.405%2027.8667%2029.0033%2027.4283%2028.72%2026.865C28.44%2026.3017%2028.3%2025.6467%2028.3%2024.9C28.3%2024.1533%2028.44%2023.4983%2028.72%2022.935C29.0033%2022.3717%2029.405%2021.9333%2029.925%2021.62C30.4483%2021.3067%2031.07%2021.15%2031.79%2021.15C32.6167%2021.15%2033.31%2021.355%2033.87%2021.765C34.4333%2022.175%2034.83%2022.73%2035.06%2023.43L33.69%2023.81C33.5567%2023.3733%2033.3317%2023.035%2033.015%2022.795C32.6983%2022.5517%2032.29%2022.43%2031.79%2022.43C31.3333%2022.43%2030.9517%2022.5317%2030.645%2022.735C30.3417%2022.9383%2030.1133%2023.225%2029.96%2023.595C29.8067%2023.965%2029.73%2024.4%2029.73%2024.9C29.73%2025.4%2029.8067%2025.835%2029.96%2026.205C30.1133%2026.575%2030.3417%2026.8617%2030.645%2027.065C30.9517%2027.2683%2031.3333%2027.37%2031.79%2027.37C32.29%2027.37%2032.6983%2027.2483%2033.015%2027.005C33.3317%2026.7617%2033.5567%2026.4233%2033.69%2025.99L35.06%2026.37C34.83%2027.07%2034.4333%2027.625%2033.87%2028.035C33.31%2028.445%2032.6167%2028.65%2031.79%2028.65ZM36.1609%2028.5V21.3H39.2009C39.2709%2021.3%2039.3643%2021.3033%2039.4809%2021.31C39.6009%2021.3133%2039.7076%2021.3233%2039.8009%2021.34C40.2309%2021.4067%2040.5826%2021.5483%2040.8559%2021.765C41.1326%2021.9817%2041.3359%2022.255%2041.4659%2022.585C41.5959%2022.9117%2041.6609%2023.2767%2041.6609%2023.68C41.6609%2024.2833%2041.5109%2024.8%2041.2109%2025.23C40.9109%2025.6567%2040.4409%2025.92%2039.8009%2026.02L39.2009%2026.06H37.5209V28.5H36.1609ZM40.2209%2028.5L38.8009%2025.57L40.2009%2025.3L41.7609%2028.5H40.2209ZM37.5209%2024.79H39.1409C39.2109%2024.79%2039.2876%2024.7867%2039.3709%2024.78C39.4543%2024.7733%2039.5309%2024.76%2039.6009%2024.74C39.7843%2024.69%2039.9259%2024.6067%2040.0259%2024.49C40.1259%2024.37%2040.1943%2024.2383%2040.2309%2024.095C40.2709%2023.9483%2040.2909%2023.81%2040.2909%2023.68C40.2909%2023.55%2040.2709%2023.4133%2040.2309%2023.27C40.1943%2023.1233%2040.1259%2022.9917%2040.0259%2022.875C39.9259%2022.755%2039.7843%2022.67%2039.6009%2022.62C39.5309%2022.6%2039.4543%2022.5867%2039.3709%2022.58C39.2876%2022.5733%2039.2109%2022.57%2039.1409%2022.57H37.5209V24.79ZM42.8602%2028.5V21.3H44.0802L46.4602%2026.08L48.8402%2021.3H50.0602V28.5H48.7902V24.2L46.7002%2028.5H46.2202L44.1302%2024.2V28.5H42.8602Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Ebene_1'%20clip-path='url(%23clip1_82_55)'%3e%3cg%20id='Group'%20opacity='0.25'%3e%3cpath%20id='Vector'%20d='M124.8%2058H26C24.3431%2058%2023%2059.3431%2023%2061V76.92C23%2078.5769%2024.3431%2079.92%2026%2079.92H124.8C126.457%2079.92%20127.8%2078.5769%20127.8%2076.92V61C127.8%2059.3431%20126.457%2058%20124.8%2058Z'%20fill='%23AAAAAA'%20fill-opacity='0.75'/%3e%3c/g%3e%3cg%20id='Group_2'%20opacity='0.75'%3e%3cpath%20id='Vector_2'%20d='M124.8%2060C125.35%2060%20125.8%2060.45%20125.8%2061V76.92C125.8%2077.47%20125.35%2077.92%20124.8%2077.92H26C25.45%2077.92%2025%2077.47%2025%2076.92V61C25%2060.45%2025.45%2060%2026%2060H124.8ZM124.8%2058H26C24.34%2058%2023%2059.34%2023%2061V76.92C23%2078.58%2024.34%2079.92%2026%2079.92H124.8C126.46%2079.92%20127.8%2078.58%20127.8%2076.92V61C127.8%2059.34%20126.46%2058%20124.8%2058Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M31.39%2074.01V66.89H28.67V65.37H35.75V66.89H33.03V74.01H31.4H31.39Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_4'%20d='M38.76%2074.19C38.1%2074.19%2037.51%2074.05%2037.01%2073.76C36.51%2073.47%2036.11%2073.08%2035.82%2072.58C35.53%2072.08%2035.39%2071.5%2035.39%2070.85C35.39%2070.14%2035.53%2069.53%2035.81%2069C36.09%2068.48%2036.48%2068.07%2036.97%2067.78C37.46%2067.49%2038.03%2067.34%2038.67%2067.34C39.35%2067.34%2039.93%2067.5%2040.4%2067.82C40.88%2068.14%2041.23%2068.59%2041.46%2069.17C41.69%2069.75%2041.77%2070.43%2041.7%2071.22H40.09V70.62C40.09%2069.96%2039.99%2069.49%2039.78%2069.2C39.57%2068.91%2039.23%2068.76%2038.75%2068.76C38.19%2068.76%2037.79%2068.93%2037.52%2069.27C37.26%2069.61%2037.13%2070.11%2037.13%2070.77C37.13%2071.37%2037.26%2071.84%2037.52%2072.17C37.78%2072.5%2038.17%2072.67%2038.68%2072.67C39%2072.67%2039.27%2072.6%2039.5%2072.46C39.73%2072.32%2039.9%2072.12%2040.02%2071.85L41.65%2072.32C41.41%2072.91%2041.02%2073.37%2040.49%2073.7C39.96%2074.03%2039.39%2074.19%2038.76%2074.19ZM36.61%2071.23V70.02H40.91V71.23H36.61Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_5'%20d='M42.08%2074.01L44.4%2070.73L42.13%2067.53H44.05L45.35%2069.45L46.62%2067.53H48.54L46.27%2070.73L48.6%2074.01H46.68L45.35%2072.02L44.01%2074.01H42.09H42.08Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_6'%20d='M48.84%2068.79V67.53H53.45V68.79H48.84ZM53.45%2074.01C53%2074.09%2052.56%2074.13%2052.13%2074.12C51.7%2074.11%2051.32%2074.03%2050.98%2073.89C50.64%2073.75%2050.39%2073.52%2050.21%2073.2C50.05%2072.9%2049.97%2072.6%2049.96%2072.3C49.96%2071.99%2049.95%2071.65%2049.95%2071.26V65.73H51.58V71.17C51.58%2071.42%2051.58%2071.65%2051.58%2071.85C51.58%2072.05%2051.63%2072.21%2051.7%2072.33C51.84%2072.56%2052.07%2072.68%2052.39%2072.7C52.71%2072.72%2053.06%2072.7%2053.44%2072.65V74.01H53.45Z'%20fill='%23AAAAAA'/%3e%3cpath%20id='Vector_7'%20d='M57.83%2062.29V75.31'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_82_55'%3e%3crect%20x='23'%20y='18'%20width='33'%20height='13'%20rx='6.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_82_55'%3e%3crect%20width='104.8'%20height='21.92'%20fill='white'%20transform='translate(23%2058)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"; H.provideEditingConfig(o0, { initialize: (e) => { if (!e.get(d)) { const t = p(); e.update({ externalId: t }); } }, initializeCopy: (e) => { const t = M(e); if (t && t.get(D)) return; const i = p(); e.update({ externalId: i, questionId: null }); }, thumbnail: E3, title: "Questionnaire Input Field Question", attributes: { ...G, externalId: { title: "External ID" }, questionId: { title: "Question ID (GID)" }, placeholder: { title: "Placeholder" }, type: { title: "Input type", values: [ { value: c2, title: "Single-line (String)" }, { value: s0, title: "Multi-line (String)" }, { value: d2, title: "Integer (Number)" }, { value: u2, title: "Float (Number)" }, { value: p2, title: "Date only (Date)" }, { value: f2, title: "Date & Time (Date)" } ] }, alignment: { title: "Alignment" } }, initialContent: { ...F, type: c2, validationText: "Please fill out this field" }, properties: (e) => [ ...s2, r0, f, B, Q, [d, { enabled: !1 }], [h, { enabled: !1 }] ], validations: [ ...W, N, [ P, (e, { widget: t }) => { const i = t.get(f); if (!e) return null; if (i == p2 || i == f2) return i3(e) || n3(e) ? null : "Specify a valid date in UTC format (YYYY-MM-DDTHH:MM:SSZ) or ISO 8601 compact format (YYYYMMDDHHMMSS). Example: 2024-02-17T15:30:00Z or 20240217153000."; if (i === d2) return /^-?\d+$/.test(e) ? null : "Specify a valid integer value. Must be a whole number (e.g., -10, 0, 42)."; if (i == u2) return /^-?\d+(\.\d+)?$/.test(e) ? null : "Specify a valid floating-point value. Must be a number with optional decimal places (e.g., -10.5, 0.0, 42.99)."; } ] ] }); const _3 = { steps: [new l0({ isSingleStep: !0, content: [ new C0({}) ] })], externalId: () => p(), questionnaireId: null, title: "Scrivito Questionnaire", inputType: P2, isBeingCopied: !1, singleSubmitButtonAlignment: "text-center", forwardButtonText: "Forward", backwardButtonText: "Backward", submitButtonText: "Submit", // submitting stuff submittingMessage: "Submitting...", submittedMessage: "Your message has been successfully sent. Thank you for your r