@web-site-utilities/feedback 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/components/Checkbox.d.ts +1 -1
- package/dist/common/components/QuestionMatrix.d.ts +1 -1
- package/dist/common/components/Radio.d.ts +2 -2
- package/dist/common/components/Rating.d.ts +1 -1
- package/dist/common/components/Select.d.ts +1 -2
- package/dist/common/components/Textarea.d.ts +1 -2
- package/dist/fields/Field/Field.d.ts +2 -41
- package/dist/form/index.d.ts +46 -3
- package/dist/index.cjs.js +22 -22
- package/dist/index.d.ts +47 -2
- package/dist/index.es.js +993 -896
- package/dist/index.iife.js +22 -22
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var SiteUtilsFeedback=(function(
|
|
2
|
-
`,Et=typeof window<"u"&&typeof document<"u",xo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),St=Object.freeze([]),$e=Object.freeze({});function Co(e,t,n){return n===void 0&&(n=$e),e.theme!==n.theme&&e.theme||t||n.theme}var Ln=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ao=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_o=/(^-|-$)/g;function Fn(e){return e.replace(Ao,"-").replace(_o,"")}var Io=/(a)(d)/gi,Tt=52,Rn=function(e){return String.fromCharCode(e+(e>25?39:97))};function jt(e){var t,n="";for(t=Math.abs(e);t>Tt;t=t/Tt|0)n=Rn(t%Tt)+n;return(Rn(t%Tt)+n).replace(Io,"$1-$2")}var Yt,zn=5381,De=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Bn=function(e){return De(zn,e)};function ko(e){return jt(Bn(e)>>>0)}function Po(e){return e.displayName||e.name||"Component"}function qt(e){return typeof e=="string"&&!0}var Un=typeof Symbol=="function"&&Symbol.for,Wn=Un?Symbol.for("react.memo"):60115,Oo=Un?Symbol.for("react.forward_ref"):60112,No={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Do=((Yt={})[Oo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yt[Wn]=Hn,Yt);function Vn(e){return("type"in(t=e)&&t.type.$$typeof)===Wn?Hn:"$$typeof"in e?Do[e.$$typeof]:No;var t}var Mo=Object.defineProperty,Lo=Object.getOwnPropertyNames,Gn=Object.getOwnPropertySymbols,Fo=Object.getOwnPropertyDescriptor,Ro=Object.getPrototypeOf,jn=Object.prototype;function Yn(e,t,n){if(typeof t!="string"){if(jn){var r=Ro(t);r&&r!==jn&&Yn(e,r,n)}var o=Lo(t);Gn&&(o=o.concat(Gn(t)));for(var a=Vn(e),l=Vn(t),d=0;d<o.length;++d){var u=o[d];if(!(u in $o||n&&n[u]||l&&u in l||a&&u in a)){var m=Fo(t,u);try{Mo(e,u,m)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function Kt(e){return typeof e=="object"&&"styledComponentId"in e}function Se(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ke(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xt(e,t,n){if(n===void 0&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Xt(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=Xt(e[r],t[r]);return e}function Zt(e,t){Object.defineProperty(e,"toString",{value:t})}function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var zo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw Te(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=o;l<a;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,n.length);l<u;l++)this.tag.insertRule(d,n[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,l=o;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(Gt);return n},e})(),wt=new Map,xt=new Map,Ct=1,At=function(e){if(wt.has(e))return wt.get(e);for(;xt.has(Ct);)Ct++;var t=Ct++;return wt.set(e,t),xt.set(t,e),t},Bo=function(e,t){Ct=t+1,wt.set(e,t),xt.set(t,e)},Uo="style[".concat(Ne,"][").concat(Mn,'="').concat(vt,'"]'),Wo=new RegExp("^".concat(Ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ho=function(e,t,n){for(var r,o=n.split(","),a=0,l=o.length;a<l;a++)(r=o[a])&&e.registerName(t,r)},Vo=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Gt),o=[],a=0,l=r.length;a<l;a++){var d=r[a].trim();if(d){var u=d.match(Wo);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Bo(p,m),Ho(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kn=function(e){for(var t=document.querySelectorAll(Uo),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ne)!==Dn&&(Vo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Go(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ne,"]")));return u[u.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(Ne,Dn),r.setAttribute(Mn,vt);var l=Go();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},jo=(function(){function e(t){this.element=Xn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var l=r[o];if(l.ownerNode===n)return l}throw Te(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Yo=(function(){function e(t){this.element=Xn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),qo=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Zn=Et,Ko={isServer:!Et,useCSSOMInjection:!xo},Qn=(function(){function e(t,n,r){t===void 0&&(t=$e),n===void 0&&(n={});var o=this;this.options=H(H({},Ko),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Et&&Zn&&(Zn=!1,Kn(this)),Zt(this,function(){return(function(a){for(var l=a.getTag(),d=l.length,u="",m=function(T){var w=(function(M){return xt.get(M)})(T);if(w===void 0)return"continue";var E=a.names.get(w),A=l.getGroup(T);if(E===void 0||!E.size||A.length===0)return"continue";var D="".concat(Ne,".g").concat(T,'[id="').concat(w,'"]'),q="";E!==void 0&&E.forEach(function(M){M.length>0&&(q+="".concat(M,","))}),u+="".concat(A).concat(D,'{content:"').concat(q,'"}').concat(Gt)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return At(t)},e.prototype.rehydrate=function(){!this.server&&Et&&Kn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(H(H({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new qo(o):r?new jo(o):new Yo(o)})(this.options),new zo(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(At(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(At(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(At(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xo=/&/g,Zo=/^\s*\/\/.*$/gm;function Jn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Jn(n.children,t)),n})}function Qo(e){var t,n,r,o=$e,a=o.options,l=a===void 0?$e:a,d=o.plugins,u=d===void 0?St:d,m=function(w,E,A){return A.startsWith(n)&&A.endsWith(n)&&A.replaceAll(n,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===dt&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(Xo,n).replace(r,m))}),l.prefix&&p.push(To),p.push(vo);var T=function(w,E,A,D){E===void 0&&(E=""),A===void 0&&(A=""),D===void 0&&(D="&"),t=D,n=E,r=new RegExp("\\".concat(n,"\\b"),"g");var q=w.replace(Zo,""),M=bo(A||E?"".concat(A," ").concat(E," { ").concat(q," }"):q);l.namespace&&(M=Jn(M,l.namespace));var O=[];return yt(M,Eo(p.concat(So(function(_){return O.push(_)})))),O};return T.hash=u.length?u.reduce(function(w,E){return E.name||Te(15),De(w,E.name)},zn).toString():"",T}var Jo=new Qn,Qt=Qo(),er=s.createContext({shouldForwardProp:void 0,styleSheet:Jo,stylis:Qt});er.Consumer,s.createContext(void 0);function tr(){return s.useContext(er)}var ei=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=Qt);var l=r.name+a.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Zt(this,function(){throw Te(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Qt),this.name+t.hash},e})(),ti=function(e){return e>="A"&&e<="Z"};function nr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ti(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var rr=function(e){return e==null||e===!1||e===""},or=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!rr(a)&&(Array.isArray(a)&&a.isCss||Ee(a)?r.push("".concat(nr(o),":"),a,";"):Ke(a)?r.push.apply(r,ut(ut(["".concat(o," {")],or(a),!1),["}"],!1)):r.push("".concat(nr(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function we(e,t,n,r){if(rr(e))return[];if(Kt(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return we(o,t,n,r)}var a;return e instanceof ei?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?or(e):Array.isArray(e)?Array.prototype.concat.apply(St,e.map(function(l){return we(l,t,n,r)})):[e.toString()]}function ni(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ee(n)&&!Kt(n))return!1}return!0}var ri=Bn(vt),oi=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&ni(t),this.componentId=n,this.baseHash=De(ri,n),this.baseStyle=r,Qn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=Se(o,this.staticRulesId);else{var a=qn(we(this.rules,t,n,r)),l=jt(De(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var d=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,d)}o=Se(o,l),this.staticRulesId=l}else{for(var u=De(this.baseHash,r.hash),m="",p=0;p<this.rules.length;p++){var T=this.rules[p];if(typeof T=="string")m+=T;else if(T){var w=qn(we(T,t,n,r));u=De(u,w+p),m+=w}}if(m){var E=jt(u>>>0);n.hasNameForId(this.componentId,E)||n.insertRules(this.componentId,E,r(m,".".concat(E),void 0,this.componentId)),o=Se(o,E)}}return o},e})(),_t=s.createContext(void 0);_t.Consumer;function ii(e){var t=s.useContext(_t),n=s.useMemo(function(){return(function(r,o){if(!r)throw Te(14);if(Ee(r)){var a=r(o);return a}if(Array.isArray(r)||typeof r!="object")throw Te(8);return o?H(H({},o),r):r})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(_t.Provider,{value:n},e.children):null}var Jt={};function ai(e,t,n){var r=Kt(e),o=e,a=!qt(e),l=t.attrs,d=l===void 0?St:l,u=t.componentId,m=u===void 0?(function(b,P){var x=typeof b!="string"?"sc":Fn(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(ko(vt+x+Jt[x]));return P?"".concat(P,"-").concat(y):y})(t.displayName,t.parentComponentId):u,p=t.displayName,T=p===void 0?(function(b){return qt(b)?"styled.".concat(b):"Styled(".concat(Po(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Fn(t.displayName),"-").concat(t.componentId):t.componentId||m,E=r&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(r&&o.shouldForwardProp){var D=o.shouldForwardProp;if(t.shouldForwardProp){var q=t.shouldForwardProp;A=function(b,P){return D(b,P)&&q(b,P)}}else A=D}var M=new oi(n,w,r?o.componentStyle:void 0);function O(b,P){return(function(x,y,pe){var Re=x.attrs,dn=x.componentStyle,U=x.defaultProps,nt=x.foldedComponentIds,rt=x.styledComponentId,ot=x.target,fn=s.useContext(_t),mn=tr(),it=x.shouldForwardProp||mn.shouldForwardProp,at=Co(y,fn,U)||$e,te=(function(I,re,ge){for(var be,oe=H(H({},re),{className:void 0,theme:ge}),Be=0;Be<I.length;Be+=1){var Ce=Ee(be=I[Be])?be(oe):be;for(var K in Ce)oe[K]=K==="className"?Se(oe[K],Ce[K]):K==="style"?H(H({},oe[K]),Ce[K]):Ce[K]}return re.className&&(oe.className=Se(oe.className,re.className)),oe})(Re,y,at),xe=te.as||ot,N={};for(var ne in te)te[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&te.theme===at||(ne==="forwardedAs"?N.as=te.forwardedAs:it&&!it(ne,xe)||(N[ne]=te[ne]));var F=(function(I,re){var ge=tr(),be=I.generateAndInjectStyles(re,ge.styleSheet,ge.stylis);return be})(dn,te),ze=Se(nt,rt);return F&&(ze+=" "+F),te.className&&(ze+=" "+te.className),N[qt(xe)&&!Ln.has(xe)?"class":"className"]=ze,pe&&(N.ref=pe),s.createElement(xe,N)})(_,b,P)}O.displayName=T;var _=s.forwardRef(O);return _.attrs=E,_.componentStyle=M,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=r?Se(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=r?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?(function(P){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var pe=0,Re=x;pe<Re.length;pe++)Xt(P,Re[pe],!0);return P})({},o.defaultProps,b):b}}),Zt(_,function(){return".".concat(_.styledComponentId)}),a&&Yn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function ir(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ar=function(e){return Object.assign(e,{isCss:!0})};function si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ee(e)||Ke(e))return ar(we(ir(St,ut([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?we(r):ar(we(ir(r,t)))}function en(e,t,n){if(n===void 0&&(n=$e),!t)throw Te(1,t);var r=function(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,si.apply(void 0,ut([o],a,!1)))};return r.attrs=function(o){return en(e,t,H(H({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return en(e,t,H(H({},n),o))},r}var sr=function(e){return en(ai,e)},S=sr;Ln.forEach(function(e){S[e]=sr(e)});const Me={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},li={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Me},lr=s.createContext({...Me,...li}),ci=S.div`
|
|
1
|
+
var SiteUtilsFeedback=(function(pe,s,so){"use strict";var ut={},Tr;function lo(){if(Tr)return ut;Tr=1;var e=so;return ut.createRoot=e.createRoot,ut.hydrateRoot=e.hydrateRoot,ut}var co=lo(),W=function(){return W=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},W.apply(this,arguments)};function dt(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var k="-ms-",qe="-moz-",C="-webkit-",wr="comm",mt="rule",Bt="decl",uo="@import",xr="@keyframes",mo="@layer",Cr=Math.abs,Ut=String.fromCharCode,Vt=Object.assign;function fo(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Ar(e){return e.trim()}function ce(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function ft(e,t,r){return e.indexOf(t,r)}function z(e,t){return e.charCodeAt(t)|0}function Pe(e,t,r){return e.slice(t,r)}function ae(e){return e.length}function _r(e){return e.length}function Ke(e,t){return t.push(e),e}function ho(e,t){return e.map(t).join("")}function Ir(e,t){return e.filter(function(r){return!ce(r,t)})}var ht=1,Oe=1,kr=0,Z=0,L=0,Ne="";function pt(e,t,r,n,o,a,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ht,column:Oe,length:l,return:"",siblings:d}}function ge(e,t){return Vt(pt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $e(e){for(;e.root;)e=ge(e.root,{children:[e]});Ke(e,e.siblings)}function po(){return L}function go(){return L=Z>0?z(Ne,--Z):0,Oe--,L===10&&(Oe=1,ht--),L}function J(){return L=Z<kr?z(Ne,Z++):0,Oe++,L===10&&(Oe=1,ht++),L}function Ee(){return z(Ne,Z)}function gt(){return Z}function bt(e,t){return Pe(Ne,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bo(e){return ht=Oe=1,kr=ae(Ne=e),Z=0,[]}function yo(e){return Ne="",e}function Ht(e){return Ar(bt(Z-1,Gt(e===91?e+2:e===40?e+1:e)))}function vo(e){for(;(L=Ee())&&L<33;)J();return Wt(e)>2||Wt(L)>3?"":" "}function Eo(e,t){for(;--t&&J()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return bt(e,gt()+(t<6&&Ee()==32&&J()==32))}function Gt(e){for(;J();)switch(L){case e:return Z;case 34:case 39:e!==34&&e!==39&&Gt(L);break;case 40:e===41&&Gt(e);break;case 92:J();break}return Z}function So(e,t){for(;J()&&e+L!==57;)if(e+L===84&&Ee()===47)break;return"/*"+bt(t,Z-1)+"*"+Ut(e===47?e:J())}function To(e){for(;!Wt(Ee());)J();return bt(e,Z)}function wo(e){return yo(yt("",null,null,null,[""],e=bo(e),0,[0],e))}function yt(e,t,r,n,o,a,l,d,u){for(var f=0,p=0,T=l,w=0,S=0,A=0,D=1,q=1,M=1,O=0,_="",y=o,P=a,x=n,v=_;q;)switch(A=O,O=J()){case 40:if(A!=108&&z(v,T-1)==58){ft(v+=g(Ht(O),"&","&\f"),"&\f",Cr(f?d[f-1]:0))!=-1&&(M=-1);break}case 34:case 39:case 91:v+=Ht(O);break;case 9:case 10:case 13:case 32:v+=vo(A);break;case 92:v+=Eo(gt()-1,7);continue;case 47:switch(Ee()){case 42:case 47:Ke(xo(So(J(),gt()),t,r,u),u);break;default:v+="/"}break;case 123*D:d[f++]=ae(v)*M;case 125*D:case 59:case 0:switch(O){case 0:case 125:q=0;case 59+p:M==-1&&(v=g(v,/\f/g,"")),S>0&&ae(v)-T&&Ke(S>32?Or(v+";",n,r,T-1,u):Or(g(v," ","")+";",n,r,T-2,u),u);break;case 59:v+=";";default:if(Ke(x=Pr(v,t,r,f,p,o,d,_,y=[],P=[],T,a),a),O===123)if(p===0)yt(v,t,x,x,y,a,T,d,P);else switch(w===99&&z(v,3)===110?100:w){case 100:case 108:case 109:case 115:yt(e,x,x,n&&Ke(Pr(e,x,x,0,0,o,d,_,o,y=[],T,P),P),o,P,T,d,n?y:P);break;default:yt(v,x,x,x,[""],P,0,d,P)}}f=p=S=0,D=M=1,_=v="",T=l;break;case 58:T=1+ae(v),S=A;default:if(D<1){if(O==123)--D;else if(O==125&&D++==0&&go()==125)continue}switch(v+=Ut(O),O*D){case 38:M=p>0?1:(v+="\f",-1);break;case 44:d[f++]=(ae(v)-1)*M,M=1;break;case 64:Ee()===45&&(v+=Ht(J())),w=Ee(),p=T=ae(_=v+=To(gt())),O++;break;case 45:A===45&&ae(v)==2&&(D=0)}}return a}function Pr(e,t,r,n,o,a,l,d,u,f,p,T){for(var w=o-1,S=o===0?a:[""],A=_r(S),D=0,q=0,M=0;D<n;++D)for(var O=0,_=Pe(e,w+1,w=Cr(q=l[D])),y=e;O<A;++O)(y=Ar(q>0?S[O]+" "+_:g(_,/&\f/g,S[O])))&&(u[M++]=y);return pt(e,t,r,o===0?mt:d,u,f,p,T)}function xo(e,t,r,n){return pt(e,t,r,wr,Ut(po()),Pe(e,2,-2),0,n)}function Or(e,t,r,n,o){return pt(e,t,r,Bt,Pe(e,0,n),Pe(e,n+1,-1),n,o)}function Nr(e,t,r){switch(fo(e,t)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+qe+e+k+e+e;case 5936:switch(z(e,t+11)){case 114:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+k+e+e;case 6165:return C+e+k+"flex-"+e+e;case 5187:return C+e+g(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return C+e+k+"flex-item-"+g(e,/flex-|-self/g,"")+(ce(e,/flex-|baseline/)?"":k+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return C+e+k+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+k+g(e,"shrink","negative")+e;case 5292:return C+e+k+g(e,"basis","preferred-size")+e;case 6060:return C+"box-"+g(e,"-grow","")+C+e+k+g(e,"grow","positive")+e;case 4554:return C+g(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!ce(e,/flex-|baseline/))return k+"grid-column-align"+Pe(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,ce(n.props,/grid-\w+-end/)})?~ft(e+(r=r[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~ft(r,"span",0)?ce(r,/\d+/):+ce(r,/\d+/)-+ce(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return ce(n.props,/grid-\w+-start/)})?e:k+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ae(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+qe+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?Nr(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,l,d,u,f){return k+o+":"+a+f+(l?k+o+"-span:"+(d?u:+u-+a)+f:"")+e});case 4949:if(z(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(z(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+e;case 100:return g(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function vt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Co(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case uo:case Bt:return e.return=e.return||e.value;case wr:return"";case xr:return e.return=e.value+"{"+vt(e.children,n)+"}";case mt:if(!ae(e.value=e.props.join(",")))return""}return ae(r=vt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ao(e){var t=_r(e);return function(r,n,o,a){for(var l="",d=0;d<t;d++)l+=e[d](r,n,o,a)||"";return l}}function _o(e){return function(t){t.root||(t=t.return)&&e(t)}}function Io(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bt:e.return=Nr(e.value,e.length,r);return;case xr:return vt([ge(e,{value:g(e.value,"@","@"+C)})],n);case mt:if(e.length)return ho(r=e.props,function(o){switch(ce(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$e(ge(e,{props:[g(o,/:(read-\w+)/,":"+qe+"$1")]})),$e(ge(e,{props:[o]})),Vt(e,{props:Ir(r,n)});break;case"::placeholder":$e(ge(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),$e(ge(e,{props:[g(o,/:(plac\w+)/,":"+qe+"$1")]})),$e(ge(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),$e(ge(e,{props:[o]})),Vt(e,{props:Ir(r,n)});break}return""})}}var ko={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},De=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$r="active",Dr="data-styled-version",Et="6.1.19",jt=`/*!sc*/
|
|
2
|
+
`,St=typeof window<"u"&&typeof document<"u",Po=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),Tt=Object.freeze([]),Me=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=Me),e.theme!==r.theme&&e.theme||t||r.theme}var Mr=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),No=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$o=/(^-|-$)/g;function Lr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,wt=52,Fr=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yt(e){var t,r="";for(t=Math.abs(e);t>wt;t=t/wt|0)r=Fr(t%wt)+r;return(Fr(t%wt)+r).replace(Do,"$1-$2")}var qt,Rr=5381,Le=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},zr=function(e){return Le(Rr,e)};function Mo(e){return Yt(zr(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function Kt(e){return typeof e=="string"&&!0}var Br=typeof Symbol=="function"&&Symbol.for,Ur=Br?Symbol.for("react.memo"):60115,Fo=Br?Symbol.for("react.forward_ref"):60112,Ro={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bo=((qt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qt[Ur]=Vr,qt);function Wr(e){return("type"in(t=e)&&t.type.$$typeof)===Ur?Vr:"$$typeof"in e?Bo[e.$$typeof]:Ro;var t}var Uo=Object.defineProperty,Vo=Object.getOwnPropertyNames,Hr=Object.getOwnPropertySymbols,Wo=Object.getOwnPropertyDescriptor,Ho=Object.getPrototypeOf,Gr=Object.prototype;function jr(e,t,r){if(typeof t!="string"){if(Gr){var n=Ho(t);n&&n!==Gr&&jr(e,n,r)}var o=Vo(t);Hr&&(o=o.concat(Hr(t)));for(var a=Wr(e),l=Wr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in zo||r&&r[u]||l&&u in l||a&&u in a)){var f=Wo(t,u);try{Uo(e,u,f)}catch{}}}}return e}function Se(e){return typeof e=="function"}function Xt(e){return typeof e=="object"&&"styledComponentId"in e}function Te(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Yr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Xe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Zt(e,t,r){if(r===void 0&&(r=!1),!r&&!Xe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Zt(e[n],t[n]);else if(Xe(t))for(var n in t)e[n]=Zt(e[n],t[n]);return e}function Qt(e,t){Object.defineProperty(e,"toString",{value:t})}function we(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Go=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw we(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var l=o;l<a;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,r.length);l<u;l++)this.tag.insertRule(d,r[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,l=o;l<a;l++)r+="".concat(this.tag.getRule(l)).concat(jt);return r},e})(),xt=new Map,Ct=new Map,At=1,_t=function(e){if(xt.has(e))return xt.get(e);for(;Ct.has(At);)At++;var t=At++;return xt.set(e,t),Ct.set(t,e),t},jo=function(e,t){At=t+1,xt.set(e,t),Ct.set(t,e)},Yo="style[".concat(De,"][").concat(Dr,'="').concat(Et,'"]'),qo=new RegExp("^".concat(De,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ko=function(e,t,r){for(var n,o=r.split(","),a=0,l=o.length;a<l;a++)(n=o[a])&&e.registerName(t,n)},Xo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(jt),o=[],a=0,l=n.length;a<l;a++){var d=n[a].trim();if(d){var u=d.match(qo);if(u){var f=0|parseInt(u[1],10),p=u[2];f!==0&&(jo(p,f),Ko(e,p,u[3]),e.getTag().insertRules(f,o)),o.length=0}else o.push(d)}}},qr=function(e){for(var t=document.querySelectorAll(Yo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(De)!==$r&&(Xo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Zo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Kr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(De,"]")));return u[u.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(De,$r),n.setAttribute(Dr,Et);var l=Zo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,a),n},Qo=(function(){function e(t){this.element=Kr(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var l=n[o];if(l.ownerNode===r)return l}throw we(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),Jo=(function(){function e(t){this.element=Kr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),ei=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Xr=St,ti={isServer:!St,useCSSOMInjection:!Po},Zr=(function(){function e(t,r,n){t===void 0&&(t=Me),r===void 0&&(r={});var o=this;this.options=W(W({},ti),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&St&&Xr&&(Xr=!1,qr(this)),Qt(this,function(){return(function(a){for(var l=a.getTag(),d=l.length,u="",f=function(T){var w=(function(M){return Ct.get(M)})(T);if(w===void 0)return"continue";var S=a.names.get(w),A=l.getGroup(T);if(S===void 0||!S.size||A.length===0)return"continue";var D="".concat(De,".g").concat(T,'[id="').concat(w,'"]'),q="";S!==void 0&&S.forEach(function(M){M.length>0&&(q+="".concat(M,","))}),u+="".concat(A).concat(D,'{content:"').concat(q,'"}').concat(jt)},p=0;p<d;p++)f(p);return u})(o)})}return e.registerId=function(t){return _t(t)},e.prototype.rehydrate=function(){!this.server&&St&&qr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(W(W({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new ei(o):n?new Qo(o):new Jo(o)})(this.options),new Go(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(_t(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(_t(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(_t(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),ri=/&/g,ni=/^\s*\/\/.*$/gm;function Qr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Qr(r.children,t)),r})}function oi(e){var t,r,n,o=Me,a=o.options,l=a===void 0?Me:a,d=o.plugins,u=d===void 0?Tt:d,f=function(w,S,A){return A.startsWith(r)&&A.endsWith(r)&&A.replaceAll(r,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===mt&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(ri,r).replace(n,f))}),l.prefix&&p.push(Io),p.push(Co);var T=function(w,S,A,D){S===void 0&&(S=""),A===void 0&&(A=""),D===void 0&&(D="&"),t=D,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var q=w.replace(ni,""),M=wo(A||S?"".concat(A," ").concat(S," { ").concat(q," }"):q);l.namespace&&(M=Qr(M,l.namespace));var O=[];return vt(M,Ao(p.concat(_o(function(_){return O.push(_)})))),O};return T.hash=u.length?u.reduce(function(w,S){return S.name||we(15),Le(w,S.name)},Rr).toString():"",T}var ii=new Zr,Jt=oi(),Jr=s.createContext({shouldForwardProp:void 0,styleSheet:ii,stylis:Jt});Jr.Consumer,s.createContext(void 0);function en(){return s.useContext(Jr)}var ai=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Jt);var l=n.name+a.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,a(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Qt(this,function(){throw we(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Jt),this.name+t.hash},e})(),si=function(e){return e>="A"&&e<="Z"};function tn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;si(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var rn=function(e){return e==null||e===!1||e===""},nn=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!rn(a)&&(Array.isArray(a)&&a.isCss||Se(a)?n.push("".concat(tn(o),":"),a,";"):Xe(a)?n.push.apply(n,dt(dt(["".concat(o," {")],nn(a),!1),["}"],!1)):n.push("".concat(tn(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ko||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xe(e,t,r,n){if(rn(e))return[];if(Xt(e))return[".".concat(e.styledComponentId)];if(Se(e)){if(!Se(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return xe(o,t,r,n)}var a;return e instanceof ai?r?(e.inject(r,n),[e.getName(n)]):[e]:Xe(e)?nn(e):Array.isArray(e)?Array.prototype.concat.apply(Tt,e.map(function(l){return xe(l,t,r,n)})):[e.toString()]}function li(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Se(r)&&!Xt(r))return!1}return!0}var ci=zr(Et),ui=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&li(t),this.componentId=r,this.baseHash=Le(ci,r),this.baseStyle=n,Zr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Te(o,this.staticRulesId);else{var a=Yr(xe(this.rules,t,r,n)),l=Yt(Le(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(a,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=Te(o,l),this.staticRulesId=l}else{for(var u=Le(this.baseHash,n.hash),f="",p=0;p<this.rules.length;p++){var T=this.rules[p];if(typeof T=="string")f+=T;else if(T){var w=Yr(xe(T,t,r,n));u=Le(u,w+p),f+=w}}if(f){var S=Yt(u>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(f,".".concat(S),void 0,this.componentId)),o=Te(o,S)}}return o},e})(),It=s.createContext(void 0);It.Consumer;function di(e){var t=s.useContext(It),r=s.useMemo(function(){return(function(n,o){if(!n)throw we(14);if(Se(n)){var a=n(o);return a}if(Array.isArray(n)||typeof n!="object")throw we(8);return o?W(W({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(It.Provider,{value:r},e.children):null}var er={};function mi(e,t,r){var n=Xt(e),o=e,a=!Kt(e),l=t.attrs,d=l===void 0?Tt:l,u=t.componentId,f=u===void 0?(function(y,P){var x=typeof y!="string"?"sc":Lr(y);er[x]=(er[x]||0)+1;var v="".concat(x,"-").concat(Mo(Et+x+er[x]));return P?"".concat(P,"-").concat(v):v})(t.displayName,t.parentComponentId):u,p=t.displayName,T=p===void 0?(function(y){return Kt(y)?"styled.".concat(y):"Styled(".concat(Lo(y),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Lr(t.displayName),"-").concat(t.componentId):t.componentId||f,S=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var D=o.shouldForwardProp;if(t.shouldForwardProp){var q=t.shouldForwardProp;A=function(y,P){return D(y,P)&&q(y,P)}}else A=D}var M=new ui(r,w,n?o.componentStyle:void 0);function O(y,P){return(function(x,v,be){var ze=x.attrs,ur=x.componentStyle,U=x.defaultProps,nt=x.foldedComponentIds,ot=x.styledComponentId,it=x.target,dr=s.useContext(It),mr=en(),at=x.shouldForwardProp||mr.shouldForwardProp,st=Oo(v,dr,U)||Me,re=(function(I,oe,ye){for(var ve,ie=W(W({},oe),{className:void 0,theme:ye}),Ue=0;Ue<I.length;Ue+=1){var _e=Se(ve=I[Ue])?ve(ie):ve;for(var K in _e)ie[K]=K==="className"?Te(ie[K],_e[K]):K==="style"?W(W({},ie[K]),_e[K]):_e[K]}return oe.className&&(ie.className=Te(ie.className,oe.className)),ie})(ze,v,st),Ae=re.as||it,N={};for(var ne in re)re[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&re.theme===st||(ne==="forwardedAs"?N.as=re.forwardedAs:at&&!at(ne,Ae)||(N[ne]=re[ne]));var F=(function(I,oe){var ye=en(),ve=I.generateAndInjectStyles(oe,ye.styleSheet,ye.stylis);return ve})(ur,re),Be=Te(nt,ot);return F&&(Be+=" "+F),re.className&&(Be+=" "+re.className),N[Kt(Ae)&&!Mr.has(Ae)?"class":"className"]=Be,be&&(N.ref=be),s.createElement(Ae,N)})(_,y,P)}O.displayName=T;var _=s.forwardRef(O);return _.attrs=S,_.componentStyle=M,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=n?Te(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=n?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=n?(function(P){for(var x=[],v=1;v<arguments.length;v++)x[v-1]=arguments[v];for(var be=0,ze=x;be<ze.length;be++)Zt(P,ze[be],!0);return P})({},o.defaultProps,y):y}}),Qt(_,function(){return".".concat(_.styledComponentId)}),a&&jr(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function on(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var an=function(e){return Object.assign(e,{isCss:!0})};function fi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Se(e)||Xe(e))return an(xe(on(Tt,dt([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xe(n):an(xe(on(n,t)))}function tr(e,t,r){if(r===void 0&&(r=Me),!t)throw we(1,t);var n=function(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,r,fi.apply(void 0,dt([o],a,!1)))};return n.attrs=function(o){return tr(e,t,W(W({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return tr(e,t,W(W({},r),o))},n}var sn=function(e){return tr(mi,e)},b=sn;Mr.forEach(function(e){b[e]=sn(e)});const Fe={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},hi={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Fe},ln=s.createContext({...Fe,...hi}),pi=b.div`
|
|
3
3
|
font-family:
|
|
4
4
|
ui-sans-serif,
|
|
5
5
|
system-ui,
|
|
@@ -50,7 +50,7 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
50
50
|
--depth: ${e=>e.$theme.depth};
|
|
51
51
|
--spacing: ${e=>e.$theme.spacing};
|
|
52
52
|
--all-fields-size: ${e=>e.$theme.allFieldsSize};
|
|
53
|
-
`,
|
|
53
|
+
`,ue=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??Fe),s.createElement(di,{theme:e.theme??Fe,children:s.createElement(pi,{$theme:e.theme??Fe,children:s.createElement(ln.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??Fe},children:e.children})})})},cn=()=>s.useContext(ln),se=e=>{const{getDefaultVariantOrSelected:t,...r}=cn(),n=t();return r[e??n]},un=e=>{const{getDefaultVariantOrSelected:t,...r}=cn(),n=t(),o=e?`${e}Content`:`${n}Content`;return r[o]},gi=()=>{const e="http://localhost:4000/external",t=async r=>{const n=await r;if(!n.ok)switch(n.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await r).json()};return{post:async(r,n,o)=>{var a;try{return t(fetch(`${e}${r}`,{method:"POST",body:JSON.stringify(n),signal:((a=o==null?void 0:o.abortController)==null?void 0:a.signal)??null,headers:{"Content-Type":"application/json",...(o==null?void 0:o.headers)??{}}}))}catch(l){throw console.log(l),l}},get:async(r,n)=>{var o;try{return t(fetch(`${e}${r}`,{method:"GET",signal:((o=n==null?void 0:n.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}}))}catch(a){throw console.log(a),a}}}},dn={meta:{name:"asd"},steps:[{title:"Overall altitude",meta:{name:"overall"},fields:[{type:"matrix",meta:{name:"asd",fieldKey:"recommendationChance"},validations:{required:!0},label:{default:"How likely are you to recommend this company to a friend or colleague?"},max:10},{type:"radio-group",meta:{name:"asd",fieldKey:"satisfactionLevel"},label:{default:"Overall, how satisfied or dissatisfied are you with our company?"},validations:{required:!0},options:[{label:"Very satisfied",id:"1"},{label:"Somewhat satisfied",id:"2"},{label:"Neither satisfied nor dissatisfied",id:"3"},{label:"Somewhat dissatisfied",id:"4"},{label:"Very dissatisfied",id:"5"}]},{type:"rating",icon:"star2",max:5,meta:{name:"asd",fieldKey:"satisfactionRating"},label:{default:"What is your general satisfaction?"},validations:{required:!0}}]},{meta:{name:"products"},title:"Product questions",fields:[{type:"checkbox-group",meta:{name:"asd",fieldKey:"productDescribeWords"},label:{default:"Which of the following words best describes your experience with our products?"},validations:{required:!0},options:[{label:"Reliable",id:"1"},{label:"High quality",id:"2"},{label:"Useful",id:"3"},{label:"Unique",id:"4"},{label:"Value for money",id:"5"},{label:"Overpriced",id:"6"},{label:"Ineffective",id:"7"},{label:"Poor quality",id:"8"},{label:"Unreliable",id:"9"}]},{type:"radio-group",meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"How well products meet your expectations?"},validations:{required:!0},options:[{label:"Extremely well",id:"1"},{label:"Well",id:"2"},{label:"Somewhat well",id:"3"},{label:"Not well",id:"4"},{label:"Not at all well",id:"5"}]},{type:"matrix",meta:{name:"asd",fieldKey:"productQuality"},label:{default:"How would you rate the quality of our products?"},validations:{required:!0},max:10,minText:"Poor quality",maxText:"Good quality"}]},{meta:{name:"final-questions"},title:"Final questions",fields:[{type:"range-slide",defaultValue:77,meta:{name:"asd",fieldKey:"productsImpressionLevel"},label:{default:"What is your overall impression level of our products?"}},{type:"rating",icon:"heart",max:5,meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"Do you like our service and products?"},validations:{required:!0}},{type:"select",meta:{name:"asd",fieldKey:"fromWhereDidYouHearAboutUs"},label:{default:"From where did you hear about us?"},validations:{required:!0},options:[{label:"Facebook",id:"1"},{label:"Instagram",id:"2"},{label:"Google search",id:"3"},{label:"AD",id:"4"},{label:"Other",id:"5"}]},{type:"textarea",meta:{name:"asd",fieldKey:"lastComments"},validations:{required:!1},label:{values:[{conditions:[{fieldName:"satisfactionRating",lessThan:4}],value:"How can we improve our service? (optional)"}],default:"What you would like to tell us about your experience with this company? (optional)?"}}]}]},bi=(e,t)=>new Promise(r=>{r({id:"",domainId:"",attributes:{theme:{},useSystemTheme:!0,variant:"primary"},popupForm:{meta:{name:"popupForm"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!",buttonText:"Feedback"},styles:{left:null,top:0,bottom:-20,right:0},form:dn},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:dn}})}),yi=e=>{const[t,r]=s.useState(),[n,o]=s.useState(!0),[a,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(r).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:n,error:a}},Re=b.button(e=>{const t=se(),r=un(),o=!e.$outlined?t:"#fff",a=e.$outlined?t:r,l=e.$outlined?a:o,d=`calc(${e.theme.sizeField} * 10)`;return{borderRadius:e.theme.radiusField,borderColor:e.disabled?"#cfcfcf":l,borderStyle:e.$dashed?"dashed":"solid",cursor:"pointer",boxShadow:"inset 0 0 20px 20px transparent",height:d,fontWeight:"600",opacity:e.disabled?.5:1,paddingInline:"1.2rem",transition:"all 0.2s ease-in-out",background:e.disabled?"#cfcfcf":o,borderWidth:e.theme.borderWidth,userSelect:e.disabled?"none":void 0,color:e.disabled?"#888888":a,"&:active":{transform:e.disabled?void 0:"scale(0.97)"},"&:hover":{opacity:e.disabled?void 0:.8,cursor:e.disabled?"auto":"pointer",boxShadow:e.disabled?void 0:"inset 0 0 20px 20px #00000017"},"@media (max-width: 900px)":{paddingInline:"0.5rem"},"@media (max-width: 700px)":{paddingInline:"0.7rem"},"@media (max-width: 400px)":{paddingInline:"0.7rem"}}}),vi=b.div`
|
|
54
54
|
visibility: ${e=>e.$isVisible&&e.$height?"visible":"hidden"};
|
|
55
55
|
opacity: ${e=>e.$isVisible?1:0};
|
|
56
56
|
display: flex;
|
|
@@ -69,7 +69,7 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
69
69
|
height: ${e=>e.$isVisible?"auto":"0"};
|
|
70
70
|
width: ${e=>e.$isVisible?"auto":"0"};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,mn=e=>{const t=s.useRef(null);return s.useEffect(()=>{t.current&&e.onSetMaxHeight(t.current.clientHeight)},[t]),s.createElement(vi,{ref:t,$height:e.height,$isVisible:e.isVisible,children:e.children})},Ei=b.ul`
|
|
73
73
|
counter-reset: step;
|
|
74
74
|
grid-auto-columns: 1fr;
|
|
75
75
|
grid-auto-flow: column;
|
|
@@ -78,8 +78,8 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
78
78
|
@media (max-width: 900px) {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
`,pi=S.li(e=>{const t=ce(e.colorVariant),n=ur(e.colorVariant),r=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?n:"var(--color-base-content)";return{textAlign:"center","--step-bg":r,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),mr=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(hi,{children:[e.steps.map((t,n)=>s.createElement(pi,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=n,children:t.title}))]})),gi={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},bi=S.div(e=>({...gi[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),ae=e=>s.createElement(bi,{$variant:e.variant,$linear:e.linear,children:e.children}),yi=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},hr=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(m=>{const p=m.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:m.type,validations:m.validations},l.state={...l.state,[p]:yi(m.type)},{dataField:p,...m}):{...m,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[n,r]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&r(u=>({...u,[l]:d}))},[r]),a=s.useCallback(l=>l?n[l]:null,[n]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:n,setStateByKey:o,getStateByKey:a}},vi=ui(),Ei=(e,t)=>vi.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:pr,setPrototypeOf:gr,isFrozen:Si,getPrototypeOf:Ti,getOwnPropertyDescriptor:wi}=Object;let{freeze:G,seal:Q,create:br}=Object,{apply:nn,construct:rn}=typeof Reflect<"u"&&Reflect;G||(G=function(t){return t}),Q||(Q=function(t){return t}),nn||(nn=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return t.apply(n,o)}),rn||(rn=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const It=Y(Array.prototype.forEach),xi=Y(Array.prototype.lastIndexOf),yr=Y(Array.prototype.pop),Xe=Y(Array.prototype.push),Ci=Y(Array.prototype.splice),kt=Y(String.prototype.toLowerCase),on=Y(String.prototype.toString),an=Y(String.prototype.match),Ze=Y(String.prototype.replace),Ai=Y(String.prototype.indexOf),_i=Y(String.prototype.trim),ee=Y(Object.prototype.hasOwnProperty),j=Y(RegExp.prototype.test),Qe=Ii(TypeError);function Y(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return nn(e,t,r)}}function Ii(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rn(e,n)}}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;gr&&gr(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const a=n(o);a!==o&&(Si(t)||(t[r]=a),o=a)}e[o]=!0}return e}function ki(e){for(let t=0;t<e.length;t++)ee(e,t)||(e[t]=null);return e}function ue(e){const t=br(null);for(const[n,r]of pr(e))ee(e,n)&&(Array.isArray(r)?t[n]=ki(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=ue(r):t[n]=r);return t}function Je(e,t){for(;e!==null;){const r=wi(e,t);if(r){if(r.get)return Y(r.get);if(typeof r.value=="function")return Y(r.value)}e=Ti(e)}function n(){return null}return n}const vr=G(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sn=G(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ln=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pi=G(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),cn=G(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Oi=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Er=G(["#text"]),Sr=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),un=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tr=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ni=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$i=Q(/<%[\w\W]*|[\w\W]*%>/gm),Di=Q(/\$\{[\w\W]*/gm),Mi=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Li=Q(/^aria-[\-\w]+$/),wr=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fi=Q(/^(?:\w+script|data):/i),Ri=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xr=Q(/^html$/i),zi=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cr=Object.freeze({__proto__:null,ARIA_ATTR:Li,ATTR_WHITESPACE:Ri,CUSTOM_ELEMENT:zi,DATA_ATTR:Mi,DOCTYPE_NAME:xr,ERB_EXPR:$i,IS_ALLOWED_URI:wr,IS_SCRIPT_OR_DATA:Fi,MUSTACHE_EXPR:Ni,TMPLIT_EXPR:Di});const et={element:1,text:3,progressingInstruction:7,comment:8,document:9},Bi=function(){return typeof window>"u"?null:window},Ui=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ar=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _r(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bi();const t=h=>_r(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==et.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:E}=e,A=u.prototype,D=Je(A,"cloneNode"),q=Je(A,"remove"),M=Je(A,"nextSibling"),O=Je(A,"childNodes"),_=Je(A,"parentNode");if(typeof l=="function"){const h=n.createElement("template");h.content&&h.content.ownerDocument&&(n=h.content.ownerDocument)}let b,P="";const{implementation:x,createNodeIterator:y,createDocumentFragment:pe,getElementsByTagName:Re}=n,{importNode:dn}=r;let U=Ar();t.isSupported=typeof pr=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nt,ERB_EXPR:rt,TMPLIT_EXPR:ot,DATA_ATTR:fn,ARIA_ATTR:mn,IS_SCRIPT_OR_DATA:it,ATTR_WHITESPACE:at,CUSTOM_ELEMENT:te}=Cr;let{IS_ALLOWED_URI:xe}=Cr,N=null;const ne=v({},[...vr,...sn,...ln,...cn,...Er]);let F=null;const ze=v({},[...Sr,...un,...Tr,...Pt]);let I=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,ge=null,be=!0,oe=!0,Be=!1,Ce=!0,K=!1,Nt=!0,Ae=!1,hn=!1,pn=!1,Ue=!1,$t=!1,Dt=!1,Fr=!0,Rr=!1;const Ma="user-content-";let gn=!0,st=!1,We={},He=null;const zr=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Br=null;const Ur=v({},["audio","video","img","source","image","track"]);let bn=null;const Wr=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Ve=de,yn=!1,vn=null;const La=v({},[Mt,Lt,de],on);let Ft=v({},["mi","mo","mn","ms","mtext"]),Rt=v({},["annotation-xml"]);const Fa=v({},["title","style","font","a","script"]);let lt=null;const Ra=["application/xhtml+xml","text/html"],za="text/html";let B=null,Ge=null;const Ba=n.createElement("form"),Hr=function(i){return i instanceof RegExp||i instanceof Function},En=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===i)){if((!i||typeof i!="object")&&(i={}),i=ue(i),lt=Ra.indexOf(i.PARSER_MEDIA_TYPE)===-1?za:i.PARSER_MEDIA_TYPE,B=lt==="application/xhtml+xml"?on:kt,N=ee(i,"ALLOWED_TAGS")?v({},i.ALLOWED_TAGS,B):ne,F=ee(i,"ALLOWED_ATTR")?v({},i.ALLOWED_ATTR,B):ze,vn=ee(i,"ALLOWED_NAMESPACES")?v({},i.ALLOWED_NAMESPACES,on):La,bn=ee(i,"ADD_URI_SAFE_ATTR")?v(ue(Wr),i.ADD_URI_SAFE_ATTR,B):Wr,Br=ee(i,"ADD_DATA_URI_TAGS")?v(ue(Ur),i.ADD_DATA_URI_TAGS,B):Ur,He=ee(i,"FORBID_CONTENTS")?v({},i.FORBID_CONTENTS,B):zr,re=ee(i,"FORBID_TAGS")?v({},i.FORBID_TAGS,B):ue({}),ge=ee(i,"FORBID_ATTR")?v({},i.FORBID_ATTR,B):ue({}),We=ee(i,"USE_PROFILES")?i.USE_PROFILES:!1,be=i.ALLOW_ARIA_ATTR!==!1,oe=i.ALLOW_DATA_ATTR!==!1,Be=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,Nt=i.SAFE_FOR_XML!==!1,Ae=i.WHOLE_DOCUMENT||!1,Ue=i.RETURN_DOM||!1,$t=i.RETURN_DOM_FRAGMENT||!1,Dt=i.RETURN_TRUSTED_TYPE||!1,pn=i.FORCE_BODY||!1,Fr=i.SANITIZE_DOM!==!1,Rr=i.SANITIZE_NAMED_PROPS||!1,gn=i.KEEP_CONTENT!==!1,st=i.IN_PLACE||!1,xe=i.ALLOWED_URI_REGEXP||wr,Ve=i.NAMESPACE||de,Ft=i.MATHML_TEXT_INTEGRATION_POINTS||Ft,Rt=i.HTML_INTEGRATION_POINTS||Rt,I=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Hr(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Hr(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(oe=!1),$t&&(Ue=!0),We&&(N=v({},Er),F=[],We.html===!0&&(v(N,vr),v(F,Sr)),We.svg===!0&&(v(N,sn),v(F,un),v(F,Pt)),We.svgFilters===!0&&(v(N,ln),v(F,un),v(F,Pt)),We.mathMl===!0&&(v(N,cn),v(F,Tr),v(F,Pt))),i.ADD_TAGS&&(N===ne&&(N=ue(N)),v(N,i.ADD_TAGS,B)),i.ADD_ATTR&&(F===ze&&(F=ue(F)),v(F,i.ADD_ATTR,B)),i.ADD_URI_SAFE_ATTR&&v(bn,i.ADD_URI_SAFE_ATTR,B),i.FORBID_CONTENTS&&(He===zr&&(He=ue(He)),v(He,i.FORBID_CONTENTS,B)),gn&&(N["#text"]=!0),Ae&&v(N,["html","head","body"]),N.table&&(v(N,["tbody"]),delete re.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=i.TRUSTED_TYPES_POLICY,P=b.createHTML("")}else b===void 0&&(b=Ui(E,o)),b!==null&&typeof P=="string"&&(P=b.createHTML(""));G&&G(i),Ge=i}},Vr=v({},[...sn,...ln,...Pi]),Gr=v({},[...cn,...Oi]),Ua=function(i){let c=_(i);(!c||!c.tagName)&&(c={namespaceURI:Ve,tagName:"template"});const f=kt(i.tagName),$=kt(c.tagName);return vn[i.namespaceURI]?i.namespaceURI===Lt?c.namespaceURI===de?f==="svg":c.namespaceURI===Mt?f==="svg"&&($==="annotation-xml"||Ft[$]):!!Vr[f]:i.namespaceURI===Mt?c.namespaceURI===de?f==="math":c.namespaceURI===Lt?f==="math"&&Rt[$]:!!Gr[f]:i.namespaceURI===de?c.namespaceURI===Lt&&!Rt[$]||c.namespaceURI===Mt&&!Ft[$]?!1:!Gr[f]&&(Fa[f]||!Vr[f]):!!(lt==="application/xhtml+xml"&&vn[i.namespaceURI]):!1},se=function(i){Xe(t.removed,{element:i});try{_(i).removeChild(i)}catch{q(i)}},_e=function(i,c){try{Xe(t.removed,{attribute:c.getAttributeNode(i),from:c})}catch{Xe(t.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(Ue||$t)try{se(c)}catch{}else try{c.setAttribute(i,"")}catch{}},jr=function(i){let c=null,f=null;if(pn)i="<remove></remove>"+i;else{const R=an(i,/^[\r\n\t ]+/);f=R&&R[0]}lt==="application/xhtml+xml"&&Ve===de&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const $=b?b.createHTML(i):i;if(Ve===de)try{c=new w().parseFromString($,lt)}catch{}if(!c||!c.documentElement){c=x.createDocument(Ve,"template",null);try{c.documentElement.innerHTML=yn?P:$}catch{}}const V=c.body||c.documentElement;return i&&f&&V.insertBefore(n.createTextNode(f),V.childNodes[0]||null),Ve===de?Re.call(c,Ae?"html":"body")[0]:Ae?c.documentElement:V},Yr=function(i){return y.call(i.ownerDocument||i,i,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Sn=function(i){return i instanceof T&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},qr=function(i){return typeof d=="function"&&i instanceof d};function fe(h,i,c){It(h,f=>{f.call(t,i,c,Ge)})}const Kr=function(i){let c=null;if(fe(U.beforeSanitizeElements,i,null),Sn(i))return se(i),!0;const f=B(i.nodeName);if(fe(U.uponSanitizeElement,i,{tagName:f,allowedTags:N}),Nt&&i.hasChildNodes()&&!qr(i.firstElementChild)&&j(/<[/\w!]/g,i.innerHTML)&&j(/<[/\w!]/g,i.textContent)||i.nodeType===et.progressingInstruction||Nt&&i.nodeType===et.comment&&j(/<[/\w]/g,i.data))return se(i),!0;if(!N[f]||re[f]){if(!re[f]&&Zr(f)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(gn&&!He[f]){const $=_(i)||i.parentNode,V=O(i)||i.childNodes;if(V&&$){const R=V.length;for(let X=R-1;X>=0;--X){const me=D(V[X],!0);me.__removalCount=(i.__removalCount||0)+1,$.insertBefore(me,M(i))}}}return se(i),!0}return i instanceof u&&!Ua(i)||(f==="noscript"||f==="noembed"||f==="noframes")&&j(/<\/no(script|embed|frames)/i,i.innerHTML)?(se(i),!0):(K&&i.nodeType===et.text&&(c=i.textContent,It([nt,rt,ot],$=>{c=Ze(c,$," ")}),i.textContent!==c&&(Xe(t.removed,{element:i.cloneNode()}),i.textContent=c)),fe(U.afterSanitizeElements,i,null),!1)},Xr=function(i,c,f){if(Fr&&(c==="id"||c==="name")&&(f in n||f in Ba))return!1;if(!(oe&&!ge[c]&&j(fn,c))){if(!(be&&j(mn,c))){if(!F[c]||ge[c]){if(!(Zr(i)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,i))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!bn[c]){if(!j(xe,Ze(f,at,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&Ai(f,"data:")===0&&Br[i])){if(!(Be&&!j(it,Ze(f,at,"")))){if(f)return!1}}}}}}return!0},Zr=function(i){return i!=="annotation-xml"&&an(i,te)},Qr=function(i){fe(U.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||Sn(i))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let $=c.length;for(;$--;){const V=c[$],{name:R,namespaceURI:X,value:me}=V,je=B(R),Tn=me;let W=R==="value"?Tn:_i(Tn);if(f.attrName=je,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,fe(U.uponSanitizeAttribute,i,f),W=f.attrValue,Rr&&(je==="id"||je==="name")&&(_e(R,i),W=Ma+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){_e(R,i);continue}if(je==="attributename"&&an(W,"href")){_e(R,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){_e(R,i);continue}if(!Ce&&j(/\/>/i,W)){_e(R,i);continue}K&&It([nt,rt,ot],eo=>{W=Ze(W,eo," ")});const Jr=B(i.nodeName);if(!Xr(Jr,je,W)){_e(R,i);continue}if(b&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!X)switch(E.getAttributeType(Jr,je)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Tn)try{X?i.setAttributeNS(X,R,W):i.setAttribute(R,W),Sn(i)?se(i):yr(t.removed)}catch{_e(R,i)}}fe(U.afterSanitizeAttributes,i,null)},Wa=function h(i){let c=null;const f=Yr(i);for(fe(U.beforeSanitizeShadowDOM,i,null);c=f.nextNode();)fe(U.uponSanitizeShadowNode,c,null),Kr(c),Qr(c),c.content instanceof a&&h(c.content);fe(U.afterSanitizeShadowDOM,i,null)};return t.sanitize=function(h){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,$=null,V=null;if(yn=!h,yn&&(h="<!-->"),typeof h!="string"&&!qr(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!t.isSupported)return h;if(hn||En(i),t.removed=[],typeof h=="string"&&(st=!1),st){if(h.nodeName){const me=B(h.nodeName);if(!N[me]||re[me])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=jr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===et.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Ue&&!K&&!Ae&&h.indexOf("<")===-1)return b&&Dt?b.createHTML(h):h;if(c=jr(h),!c)return Ue?null:Dt?P:""}c&&pn&&se(c.firstChild);const R=Yr(st?h:c);for(;$=R.nextNode();)Kr($),Qr($),$.content instanceof a&&Wa($.content);if(st)return h;if(Ue){if($t)for(V=pe.call(c.ownerDocument);c.firstChild;)V.appendChild(c.firstChild);else V=c;return(F.shadowroot||F.shadowrootmode)&&(V=dn.call(r,V,!0)),V}let X=Ae?c.outerHTML:c.innerHTML;return Ae&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xr,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
82
|
-
`+X),K&&
|
|
81
|
+
`,Si=b.li(e=>{const t=se(e.colorVariant),r=un(e.colorVariant),n=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?r:"var(--color-base-content)";return{textAlign:"center","--step-bg":n,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),fn=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Ei,{children:[e.steps.map((t,r)=>s.createElement(Si,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),Ti={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},wi=b.div(e=>({...Ti[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),ee=e=>s.createElement(wi,{$variant:e.variant,$linear:e.linear,children:e.children}),xi=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},hn=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(f=>{const p=f.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:f.type,validations:f.validations},l.state={...l.state,[p]:xi(f.type)},{dataField:p,...f}):{...f,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[r,n]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&n(u=>({...u,[l]:d}))},[n]),a=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:a}},Ci=gi(),Ai=(e,t)=>Ci.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:pn,setPrototypeOf:gn,isFrozen:_i,getPrototypeOf:Ii,getOwnPropertyDescriptor:ki}=Object;let{freeze:G,seal:Q,create:bn}=Object,{apply:rr,construct:nr}=typeof Reflect<"u"&&Reflect;G||(G=function(t){return t}),Q||(Q=function(t){return t}),rr||(rr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return t.apply(r,o)}),nr||(nr=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const kt=Y(Array.prototype.forEach),Pi=Y(Array.prototype.lastIndexOf),yn=Y(Array.prototype.pop),Ze=Y(Array.prototype.push),Oi=Y(Array.prototype.splice),Pt=Y(String.prototype.toLowerCase),or=Y(String.prototype.toString),ir=Y(String.prototype.match),Qe=Y(String.prototype.replace),Ni=Y(String.prototype.indexOf),$i=Y(String.prototype.trim),te=Y(Object.prototype.hasOwnProperty),j=Y(RegExp.prototype.test),Je=Di(TypeError);function Y(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return rr(e,t,n)}}function Di(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pt;gn&&gn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const a=r(o);a!==o&&(_i(t)||(t[n]=a),o=a)}e[o]=!0}return e}function Mi(e){for(let t=0;t<e.length;t++)te(e,t)||(e[t]=null);return e}function de(e){const t=bn(null);for(const[r,n]of pn(e))te(e,r)&&(Array.isArray(n)?t[r]=Mi(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=de(n):t[r]=n);return t}function et(e,t){for(;e!==null;){const n=ki(e,t);if(n){if(n.get)return Y(n.get);if(typeof n.value=="function")return Y(n.value)}e=Ii(e)}function r(){return null}return r}const vn=G(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ar=G(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sr=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Li=G(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lr=G(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fi=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),En=G(["#text"]),Sn=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cr=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tn=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ot=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ri=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zi=Q(/<%[\w\W]*|[\w\W]*%>/gm),Bi=Q(/\$\{[\w\W]*/gm),Ui=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vi=Q(/^aria-[\-\w]+$/),wn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wi=Q(/^(?:\w+script|data):/i),Hi=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xn=Q(/^html$/i),Gi=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cn=Object.freeze({__proto__:null,ARIA_ATTR:Vi,ATTR_WHITESPACE:Hi,CUSTOM_ELEMENT:Gi,DATA_ATTR:Ui,DOCTYPE_NAME:xn,ERB_EXPR:zi,IS_ALLOWED_URI:wn,IS_SCRIPT_OR_DATA:Wi,MUSTACHE_EXPR:Ri,TMPLIT_EXPR:Bi});const tt={element:1,text:3,progressingInstruction:7,comment:8,document:9},ji=function(){return typeof window>"u"?null:window},Yi=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},An=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ji();const t=h=>_n(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==tt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:f,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:S}=e,A=u.prototype,D=et(A,"cloneNode"),q=et(A,"remove"),M=et(A,"nextSibling"),O=et(A,"childNodes"),_=et(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let y,P="";const{implementation:x,createNodeIterator:v,createDocumentFragment:be,getElementsByTagName:ze}=r,{importNode:ur}=n;let U=An();t.isSupported=typeof pn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nt,ERB_EXPR:ot,TMPLIT_EXPR:it,DATA_ATTR:dr,ARIA_ATTR:mr,IS_SCRIPT_OR_DATA:at,ATTR_WHITESPACE:st,CUSTOM_ELEMENT:re}=Cn;let{IS_ALLOWED_URI:Ae}=Cn,N=null;const ne=E({},[...vn,...ar,...sr,...lr,...En]);let F=null;const Be=E({},[...Sn,...cr,...Tn,...Ot]);let I=Object.seal(bn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,ye=null,ve=!0,ie=!0,Ue=!1,_e=!0,K=!1,$t=!0,Ie=!1,fr=!1,hr=!1,Ve=!1,Dt=!1,Mt=!1,Wn=!0,Hn=!1;const za="user-content-";let pr=!0,lt=!1,We={},He=null;const Gn=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jn=null;const Yn=E({},["audio","video","img","source","image","track"]);let gr=null;const qn=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",Ft="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ge=me,br=!1,yr=null;const Ba=E({},[Lt,Ft,me],or);let Rt=E({},["mi","mo","mn","ms","mtext"]),zt=E({},["annotation-xml"]);const Ua=E({},["title","style","font","a","script"]);let ct=null;const Va=["application/xhtml+xml","text/html"],Wa="text/html";let B=null,je=null;const Ha=r.createElement("form"),Kn=function(i){return i instanceof RegExp||i instanceof Function},vr=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(je&&je===i)){if((!i||typeof i!="object")&&(i={}),i=de(i),ct=Va.indexOf(i.PARSER_MEDIA_TYPE)===-1?Wa:i.PARSER_MEDIA_TYPE,B=ct==="application/xhtml+xml"?or:Pt,N=te(i,"ALLOWED_TAGS")?E({},i.ALLOWED_TAGS,B):ne,F=te(i,"ALLOWED_ATTR")?E({},i.ALLOWED_ATTR,B):Be,yr=te(i,"ALLOWED_NAMESPACES")?E({},i.ALLOWED_NAMESPACES,or):Ba,gr=te(i,"ADD_URI_SAFE_ATTR")?E(de(qn),i.ADD_URI_SAFE_ATTR,B):qn,jn=te(i,"ADD_DATA_URI_TAGS")?E(de(Yn),i.ADD_DATA_URI_TAGS,B):Yn,He=te(i,"FORBID_CONTENTS")?E({},i.FORBID_CONTENTS,B):Gn,oe=te(i,"FORBID_TAGS")?E({},i.FORBID_TAGS,B):de({}),ye=te(i,"FORBID_ATTR")?E({},i.FORBID_ATTR,B):de({}),We=te(i,"USE_PROFILES")?i.USE_PROFILES:!1,ve=i.ALLOW_ARIA_ATTR!==!1,ie=i.ALLOW_DATA_ATTR!==!1,Ue=i.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,$t=i.SAFE_FOR_XML!==!1,Ie=i.WHOLE_DOCUMENT||!1,Ve=i.RETURN_DOM||!1,Dt=i.RETURN_DOM_FRAGMENT||!1,Mt=i.RETURN_TRUSTED_TYPE||!1,hr=i.FORCE_BODY||!1,Wn=i.SANITIZE_DOM!==!1,Hn=i.SANITIZE_NAMED_PROPS||!1,pr=i.KEEP_CONTENT!==!1,lt=i.IN_PLACE||!1,Ae=i.ALLOWED_URI_REGEXP||wn,Ge=i.NAMESPACE||me,Rt=i.MATHML_TEXT_INTEGRATION_POINTS||Rt,zt=i.HTML_INTEGRATION_POINTS||zt,I=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Kn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Kn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(ie=!1),Dt&&(Ve=!0),We&&(N=E({},En),F=[],We.html===!0&&(E(N,vn),E(F,Sn)),We.svg===!0&&(E(N,ar),E(F,cr),E(F,Ot)),We.svgFilters===!0&&(E(N,sr),E(F,cr),E(F,Ot)),We.mathMl===!0&&(E(N,lr),E(F,Tn),E(F,Ot))),i.ADD_TAGS&&(N===ne&&(N=de(N)),E(N,i.ADD_TAGS,B)),i.ADD_ATTR&&(F===Be&&(F=de(F)),E(F,i.ADD_ATTR,B)),i.ADD_URI_SAFE_ATTR&&E(gr,i.ADD_URI_SAFE_ATTR,B),i.FORBID_CONTENTS&&(He===Gn&&(He=de(He)),E(He,i.FORBID_CONTENTS,B)),pr&&(N["#text"]=!0),Ie&&E(N,["html","head","body"]),N.table&&(E(N,["tbody"]),delete oe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Je('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=i.TRUSTED_TYPES_POLICY,P=y.createHTML("")}else y===void 0&&(y=Yi(S,o)),y!==null&&typeof P=="string"&&(P=y.createHTML(""));G&&G(i),je=i}},Xn=E({},[...ar,...sr,...Li]),Zn=E({},[...lr,...Fi]),Ga=function(i){let c=_(i);(!c||!c.tagName)&&(c={namespaceURI:Ge,tagName:"template"});const m=Pt(i.tagName),$=Pt(c.tagName);return yr[i.namespaceURI]?i.namespaceURI===Ft?c.namespaceURI===me?m==="svg":c.namespaceURI===Lt?m==="svg"&&($==="annotation-xml"||Rt[$]):!!Xn[m]:i.namespaceURI===Lt?c.namespaceURI===me?m==="math":c.namespaceURI===Ft?m==="math"&&zt[$]:!!Zn[m]:i.namespaceURI===me?c.namespaceURI===Ft&&!zt[$]||c.namespaceURI===Lt&&!Rt[$]?!1:!Zn[m]&&(Ua[m]||!Xn[m]):!!(ct==="application/xhtml+xml"&&yr[i.namespaceURI]):!1},le=function(i){Ze(t.removed,{element:i});try{_(i).removeChild(i)}catch{q(i)}},ke=function(i,c){try{Ze(t.removed,{attribute:c.getAttributeNode(i),from:c})}catch{Ze(t.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(Ve||Dt)try{le(c)}catch{}else try{c.setAttribute(i,"")}catch{}},Qn=function(i){let c=null,m=null;if(hr)i="<remove></remove>"+i;else{const R=ir(i,/^[\r\n\t ]+/);m=R&&R[0]}ct==="application/xhtml+xml"&&Ge===me&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const $=y?y.createHTML(i):i;if(Ge===me)try{c=new w().parseFromString($,ct)}catch{}if(!c||!c.documentElement){c=x.createDocument(Ge,"template",null);try{c.documentElement.innerHTML=br?P:$}catch{}}const H=c.body||c.documentElement;return i&&m&&H.insertBefore(r.createTextNode(m),H.childNodes[0]||null),Ge===me?ze.call(c,Ie?"html":"body")[0]:Ie?c.documentElement:H},Jn=function(i){return v.call(i.ownerDocument||i,i,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Er=function(i){return i instanceof T&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},eo=function(i){return typeof d=="function"&&i instanceof d};function fe(h,i,c){kt(h,m=>{m.call(t,i,c,je)})}const to=function(i){let c=null;if(fe(U.beforeSanitizeElements,i,null),Er(i))return le(i),!0;const m=B(i.nodeName);if(fe(U.uponSanitizeElement,i,{tagName:m,allowedTags:N}),$t&&i.hasChildNodes()&&!eo(i.firstElementChild)&&j(/<[/\w!]/g,i.innerHTML)&&j(/<[/\w!]/g,i.textContent)||i.nodeType===tt.progressingInstruction||$t&&i.nodeType===tt.comment&&j(/<[/\w]/g,i.data))return le(i),!0;if(!N[m]||oe[m]){if(!oe[m]&&no(m)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,m)||I.tagNameCheck instanceof Function&&I.tagNameCheck(m)))return!1;if(pr&&!He[m]){const $=_(i)||i.parentNode,H=O(i)||i.childNodes;if(H&&$){const R=H.length;for(let X=R-1;X>=0;--X){const he=D(H[X],!0);he.__removalCount=(i.__removalCount||0)+1,$.insertBefore(he,M(i))}}}return le(i),!0}return i instanceof u&&!Ga(i)||(m==="noscript"||m==="noembed"||m==="noframes")&&j(/<\/no(script|embed|frames)/i,i.innerHTML)?(le(i),!0):(K&&i.nodeType===tt.text&&(c=i.textContent,kt([nt,ot,it],$=>{c=Qe(c,$," ")}),i.textContent!==c&&(Ze(t.removed,{element:i.cloneNode()}),i.textContent=c)),fe(U.afterSanitizeElements,i,null),!1)},ro=function(i,c,m){if(Wn&&(c==="id"||c==="name")&&(m in r||m in Ha))return!1;if(!(ie&&!ye[c]&&j(dr,c))){if(!(ve&&j(mr,c))){if(!F[c]||ye[c]){if(!(no(i)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,i))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,m)||I.tagNameCheck instanceof Function&&I.tagNameCheck(m))))return!1}else if(!gr[c]){if(!j(Ae,Qe(m,st,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&Ni(m,"data:")===0&&jn[i])){if(!(Ue&&!j(at,Qe(m,st,"")))){if(m)return!1}}}}}}return!0},no=function(i){return i!=="annotation-xml"&&ir(i,re)},oo=function(i){fe(U.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||Er(i))return;const m={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let $=c.length;for(;$--;){const H=c[$],{name:R,namespaceURI:X,value:he}=H,Ye=B(R),Sr=he;let V=R==="value"?Sr:$i(Sr);if(m.attrName=Ye,m.attrValue=V,m.keepAttr=!0,m.forceKeepAttr=void 0,fe(U.uponSanitizeAttribute,i,m),V=m.attrValue,Hn&&(Ye==="id"||Ye==="name")&&(ke(R,i),V=za+V),$t&&j(/((--!?|])>)|<\/(style|title|textarea)/i,V)){ke(R,i);continue}if(Ye==="attributename"&&ir(V,"href")){ke(R,i);continue}if(m.forceKeepAttr)continue;if(!m.keepAttr){ke(R,i);continue}if(!_e&&j(/\/>/i,V)){ke(R,i);continue}K&&kt([nt,ot,it],ao=>{V=Qe(V,ao," ")});const io=B(i.nodeName);if(!ro(io,Ye,V)){ke(R,i);continue}if(y&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!X)switch(S.getAttributeType(io,Ye)){case"TrustedHTML":{V=y.createHTML(V);break}case"TrustedScriptURL":{V=y.createScriptURL(V);break}}if(V!==Sr)try{X?i.setAttributeNS(X,R,V):i.setAttribute(R,V),Er(i)?le(i):yn(t.removed)}catch{ke(R,i)}}fe(U.afterSanitizeAttributes,i,null)},ja=function h(i){let c=null;const m=Jn(i);for(fe(U.beforeSanitizeShadowDOM,i,null);c=m.nextNode();)fe(U.uponSanitizeShadowNode,c,null),to(c),oo(c),c.content instanceof a&&h(c.content);fe(U.afterSanitizeShadowDOM,i,null)};return t.sanitize=function(h){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,m=null,$=null,H=null;if(br=!h,br&&(h="<!-->"),typeof h!="string"&&!eo(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw Je("dirty is not a string, aborting")}else throw Je("toString is not a function");if(!t.isSupported)return h;if(fr||vr(i),t.removed=[],typeof h=="string"&&(lt=!1),lt){if(h.nodeName){const he=B(h.nodeName);if(!N[he]||oe[he])throw Je("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=Qn("<!---->"),m=c.ownerDocument.importNode(h,!0),m.nodeType===tt.element&&m.nodeName==="BODY"||m.nodeName==="HTML"?c=m:c.appendChild(m);else{if(!Ve&&!K&&!Ie&&h.indexOf("<")===-1)return y&&Mt?y.createHTML(h):h;if(c=Qn(h),!c)return Ve?null:Mt?P:""}c&&hr&&le(c.firstChild);const R=Jn(lt?h:c);for(;$=R.nextNode();)to($),oo($),$.content instanceof a&&ja($.content);if(lt)return h;if(Ve){if(Dt)for(H=be.call(c.ownerDocument);c.firstChild;)H.appendChild(c.firstChild);else H=c;return(F.shadowroot||F.shadowrootmode)&&(H=ur.call(n,H,!0)),H}let X=Ie?c.outerHTML:c.innerHTML;return Ie&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
82
|
+
`+X),K&&kt([nt,ot,it],he=>{X=Qe(X,he," ")}),y&&Mt?y.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vr(h),fr=!0},t.clearConfig=function(){je=null,fr=!1},t.isValidAttribute=function(h,i,c){je||vr({});const m=B(h),$=B(i);return ro(m,$,c)},t.addHook=function(h,i){typeof i=="function"&&Ze(U[h],i)},t.removeHook=function(h,i){if(i!==void 0){const c=Pi(U[h],i);return c===-1?void 0:Oi(U[h],c,1)[0]}return yn(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=An()},t}var qi=_n();const Ki=e=>e==null,rt=e=>!Ki(e),Xi=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,In=(e,t)=>t?Object.keys(t).map(o=>{const a=Xi(e[o],t[o].validations);return a?{field:o,error:a}:null},{}).filter(rt):[],kn=e=>{const[t,r]=s.useState(0),[n,o]=s.useState([]),a=s.useCallback(async()=>{try{await Ai({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:qi.sanitize(document.getElementsByTagName("html")[0]??""),domainId:e.domainId,data:e.state,formType:e.formType,viewport:{first:document.body.clientWidth,second:document.body.clientHeight},browser:{productSub:navigator.productSub,vendor:navigator.vendor,pdfViewerEnabled:navigator.pdfViewerEnabled,maxTouchPoints:navigator.maxTouchPoints,hardwareConcurrency:navigator.hardwareConcurrency,cookieEnabled:navigator.cookieEnabled,appVersion:navigator.appVersion,platform:navigator.platform,userAgent:navigator.userAgent,language:navigator.language,onLine:navigator.onLine,webdriver:navigator.webdriver,deviceMemory:navigator.deviceMemory}})}catch(u){console.log(u)}},[e.state,e.formType]),l=s.useCallback(()=>{const u=In(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?r(f=>f+1):a())},[e.state,e.validationsPerStep,t,a]),d=s.useCallback(()=>{t!==0&&(o([]),r(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const f=In(e.state,e.validationsPerStep[t]);if(f.length!==u.length)return f}return u})},[n,e.state,t]),{step:t,errors:n,onContinue:l,onBack:d}},Zi=b.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Ce=({errors:e})=>{var t;return s.createElement(Zi,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},Qi=b.input(({theme:e,colorVariant:t,selected:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=se(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:n,border:`1px solid ${o}`,height:n,flexShrink:"0",padding:".25rem",transition:"background-color .2s,box-shadow .2s",display:"inline-block",position:"relative","&::before":{content:'""',opacity:"0",clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%)",width:"100%",height:"100%",boxShadow:"0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",backgroundColor:`${o}`,fontSize:"1rem",lineHeight:".75",transition:"clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",display:"block",rotate:"45deg",...r?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),Ji=b.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),ea=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),r=o=>{e.onSelect(e.value.includes(o)?e.value.filter(a=>a!==o):[...e.value,o])},n=e.value.includes(t);return s.createElement(Ji,{selected:n,children:[s.createElement(Qi,{id:t,type:"checkbox",selected:n,colorVariant:e.colorVariant,onChange:()=>r(t),name:e.name}),s.createElement(ee,{children:e.label,linear:!0})]})},ta=b.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
flex-direction: column;
|
|
85
85
|
width: var(--all-fields-size);
|
|
@@ -87,14 +87,14 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
87
87
|
@media (max-width: 900px) {
|
|
88
88
|
width: 100%;
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,ra=b.div`
|
|
91
91
|
display: flex;
|
|
92
92
|
gap: calc(var(--spacing) * 10);
|
|
93
93
|
@media (max-width: 900px) {
|
|
94
94
|
gap: var(--spacing);
|
|
95
95
|
flex-direction: column;
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,Pn=e=>{const t=e.label.replace(/\s/g,"-").toLowerCase(),r=e.elementsPerCol||4,n=s.useMemo(()=>e.options.reduce((o,a,l)=>{var u;return(l%r===0||l===0)&&o.push([]),(u=o[o.length-1])==null||u.push(a),o},[]),[r,e.options]);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ra,{children:n.map((o,a)=>s.createElement(ta,{key:a,children:o.map(l=>s.createElement(ea,{onSelect:e.onChange,colorVariant:e.colorVariant,value:e.value,id:e.formClientId,name:t,label:l.label}))}))}),s.createElement(Ce,{errors:e.errors})]})},na=b(Re)(()=>({"&:not(:last-of-type):not(:first-of-type)":{borderRadius:"0",marginRight:"-1px",marginLeft:"-1px"},"&:first-of-type":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},"&:last-of-type":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},"@media (max-width: 900px)":{}})),oa=e=>s.createElement(na,{onClick:e.onChange,$outlined:!e.selected,children:e.label}),On=b("span")(({min:e,variant:t})=>{const r=t||se();return{position:"absolute",left:e?"0":void 0,right:e?void 0:"0",bottom:"-2px",opacity:"0.5",fontWeight:"300",transform:"translateY(100%)",textTransform:"uppercase",color:r}}),ia=b.div(e=>({verticalAlign:"middle",display:"inline-flex",position:"relative",marginBottom:e.withText?"calc(var(--spacing) * 6)":"0"})),Nn=e=>s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ia,{withText:e.maxText||e.minText,children:[e.maxText?s.createElement(On,{min:!1,children:e.maxText}):null,e.minText?s.createElement(On,{min:!0,children:e.minText}):null,Array(e.max).fill(1).map((t,r)=>s.createElement(oa,{onChange:()=>e.onChange(r+1),selected:r+1===e.value,key:`${r}`,label:`${r+1}`}))]}),s.createElement(Ce,{errors:e.errors})]}),aa=b.input(({theme:e,selected:t,colorVariant:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=se(r);return{width:n,height:n,color:e.neutral,margin:"0",cursor:"pointer",appearance:"none",verticalAlign:"middle",borderRadius:"3.40282e38px",border:`1px solid ${o}`,flexShrink:"0",padding:t?".25rem":"0.4rem",transition:".2s ease-in-out",display:"inline-block",position:"relative",boxSizing:"border-box","&::before":{content:'""',borderRadius:"3.40282e38px",background:t?o:"transparent",width:"100%",height:"100%",display:"block"}}}),sa=b.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),la=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[e.id]),r=o=>{e.onSelect(o)},n=e.value===t;return s.createElement(sa,{selected:n,htmlFor:t,children:[s.createElement(aa,{id:t,type:"radio",variant:e.colorVariant,selected:n,onChange:()=>r(t),name:e.name}),s.createElement(ee,{children:e.label,linear:!0})]})},ca=b.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: var(--all-fields-size);
|
|
@@ -102,47 +102,47 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
102
102
|
@media (max-width: 900px) {
|
|
103
103
|
width: 100%;
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`,ua=b.div`
|
|
106
106
|
display: flex;
|
|
107
107
|
gap: calc(var(--spacing) * 10);
|
|
108
108
|
@media (max-width: 900px) {
|
|
109
109
|
gap: var(--spacing);
|
|
110
110
|
flex-direction: column;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
`,$n=e=>{const t=e.elementsPerCol||4,r=s.useMemo(()=>e.options.reduce((n,o,a)=>{var d;return(a%t===0||a===0)&&n.push([]),(d=n[n.length-1])==null||d.push(o),n},[]),[t,e.options]);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ua,{children:r.map(n=>s.createElement(ca,{children:n.map(o=>s.createElement(la,{colorVariant:e.colorVariant,onSelect:e.onChange,value:e.value,id:e.formClientId,name:`${o.id}-${e.formClientId}`,label:o.label}))}))}),s.createElement(Ce,{errors:e.errors})]})},da=b.input(e=>{const t=se(e.colorVariant);return{cursor:"text",border:`var(--border-width)solid ${t}`,appearance:"none",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",whiteSpace:"nowrap",width:"clamp(3rem,30rem,100%)",height:"calc(var(--size-field, .25rem) * 10)",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,borderStartStartRadius:"var(--join-ss,var(--radius-field))",borderStartEndRadius:"var(--join-se,var(--radius-field))",borderEndEndRadius:"var(--join-ee,var(--radius-field))",borderEndStartRadius:"var(--join-es,var(--radius-field))",alignItems:"center",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),ma=b.input(e=>{const r=se(e.colorVariant);return{cursor:"pointer",flex:"1",verticalAlign:"middle","--radius-selector-max":"calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector))",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",backgroundColor:"#0000",border:"none",overflow:"hidden",appearance:"none",webkitAppearance:"none",margin:"0","--range-thumb":"var(--color-base-100)","--range-thumb-size":"calc(var(--size-selector,.25rem)*6)","--range-progress":r,"--range-fill":"1","--range-p":".25rem","--range-bg":r,font:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",letterSpacing:"inherit",color:"inherit",opacity:"1","&::-webkit-slider-runnable-track":{backgroundColor:"var(--range-bg)",borderRadius:"var(--radius-selector)",width:"100%",height:"calc(var(--range-thumb-size)*.5)","--range-bg":"color-mix(in oklab,currentColor 10%,#0000)"},"&::-webkit-slider-thumb":{boxSizing:"border-box",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",width:"var(--range-thumb-size)",border:"var(--range-p)solid",appearance:"none",webkitAppearance:"none",color:"var(--range-progress)",boxShadow:"0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 0 1px 1px currentColor, 0 0 0 2rem var(--range-thumb) inset, calc((var(--range-dir, 1) * -100rem) - (var(--range-dir, 1) * var(--range-thumb-size) / 2)) 0 0 calc(100rem * var(--range-fill))",backgroundColor:r,position:"relative",top:"50%",transform:"translateY(-50%)"}}}),fa=b.div`
|
|
113
113
|
width: clamp(3rem, 30rem, 100%);
|
|
114
|
-
`,
|
|
114
|
+
`,ha=b(da)`
|
|
115
115
|
width: calc(var(--size-field) * 15);
|
|
116
|
-
`,
|
|
116
|
+
`,pa=b.div`
|
|
117
117
|
display: flex;
|
|
118
118
|
align-items: center;
|
|
119
119
|
gap: calc(var(--spacing) * 2);
|
|
120
|
-
`,
|
|
120
|
+
`,ga=e=>{var o;const t=e.min||0,r=e.max||100,n=a=>{const l=Number.parseInt(a.target.value);Number.isNaN(l)?console.error("RangeSlide must be a number"):e.onChange(l)};return s.useEffect(()=>{e.onChange(e.value||e.initialValue||0)},[]),s.createElement(fa,{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(pa,{children:[s.createElement(ma,{type:"range",min:t,max:r,useThemeColors:e.colorVariant,value:e.value,onChange:n}),s.createElement(ha,{type:"number",value:((o=e.value)==null?void 0:o.toString())??"",max:r,min:t,colorVariant:e.colorVariant,onChange:a=>e.onChange(+a.target.value)})]}),s.createElement(Ce,{errors:e.errors})]})},ba={heart:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>'),star:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>'),star2:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>')},Dn={small:"1rem",medium:"1.5rem",large:"2rem"},ya=b.input(e=>{const t=ba[e.icon??"star2"],r=se(e.colorVariant);return{maskImage:`url(data:image/svg+xml,${t})`,backgroundColor:r,appearance:"none",transform:e.selected?"scale(1.1)":"scale(1)",transition:"transform 0.3s",border:"none",opacity:e.selected?"1":.2,verticalAlign:"middle",display:"inline-block",WebkitMaskPosition:"50%",maskPosition:"50%",cursor:"pointer",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",borderRadius:"0",width:Dn[e.size??"medium"],height:Dn[e.size??"medium"]}}),va=b.div(()=>({verticalAlign:"middle",position:"relative"})),Mn=({value:e,max:t,errors:r,label:n,onChange:o})=>s.createElement(va,{value:1,max:5,children:[s.createElement(ee,{variant:"section",children:n}),Array(t).fill(1).map((a,l)=>s.createElement(ya,{selected:l<e,name:`rating-${l+1}`,key:`${l}`,onChange:()=>{o(l+1)},type:"radio"})),s.createElement(Ce,{errors:r})]}),Ea=b.div`
|
|
121
121
|
width: 100%;
|
|
122
|
-
`,
|
|
122
|
+
`,Sa=b.textarea(e=>{const t=se(e.colorVariant);return{border:"var(--border-width)solid #0000",appearance:"none",borderRadius:"var(--radius-field)",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",maxWidth:"100%",minWidth:"3rem",minHeight:"5rem",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,flexShrink:"1",paddingBlock:".5rem",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),Ln=e=>{const t=r=>e.onChange(r.target.value);return s.createElement(Ea,{children:[s.createElement(ee,{variant:"section",children:e.label}),s.createElement(Sa,{value:e.value??"",useThemeColors:e.colorVariant,rows:e.rows??3,onChange:t}),s.createElement(Ce,{errors:e.errors})]})},Ta=b.div`
|
|
123
123
|
width: 100%;
|
|
124
|
-
`,
|
|
124
|
+
`,Nt=e=>e!=null,wa=(e,t)=>(n=>{if(!n)return e.default;const o=n.find(a=>a.conditions.every(l=>{const d=t(l.fieldName);if(!Nt(d))return!1;const u=[];return Nt(l.eq)?l.eq===d?u.push(!0):u.push(!1):Nt(l.lessThan)?l.lessThan>d?u.push(!0):u.push(!1):Nt(l.moreThan)&&(l.moreThan<d?u.push(!0):u.push(!1)),u.every(Boolean)}));return(o==null?void 0:o.value)??e.default})(e.values),Fn=e=>{const t=()=>{const r=a=>e.setStateByKey(e.dataField,a),n=wa(e.fieldProps.label,e.getStateByKey),o={formClientId:e.formClientId,label:n,errors:e.errors,onChange:r,value:e.getStateByKey(e.dataField),key:`${e.type}-${e.fieldProps.label}-${e.fieldProps.meta.name}`};switch(e.type){case"matrix":{const a=e.fieldProps;return s.createElement(Nn,{...a,...o,max:10})}case"radio-group":{const a=e.fieldProps;return s.createElement($n,{...a,...o})}case"checkbox-group":{const a=e.fieldProps;return s.createElement(Pn,{...a,...o})}case"range-slide":{const a=e.fieldProps;return s.createElement(ga,{...a,...o})}case"rating":{const a=e.fieldProps;return s.createElement(Mn,{...a,...o})}case"textarea":{const a=e.fieldProps;return s.createElement(Ln,{...a,...o})}default:return null}};return s.createElement(Ta,{children:t()})},xa=b.div({position:"relative",fontSize:"var(--font-size)"}),Ca=b.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
align-items: center;
|
|
127
127
|
justify-content: space-between;
|
|
128
128
|
margin-top: calc(var(--spacing) * 10);
|
|
129
|
-
|
|
129
|
+
`,Rn=e=>{const t=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),[r,n]=s.useState(null),o=d=>{n(u=>!u||u<d?d:u)},a=hn({form:e.inlineForm.form,formId:e.formId,domainId:e.domainId}),l=kn({domainId:e.domainId,formType:"inlineForm",stepsCount:a.steps.length,validationsPerStep:a.validationsPerStep,formId:e.formId,state:a.state});return s.createElement(xa,{children:[e.inlineForm.config.formTitle&&s.createElement(ee,{variant:"title",children:e.inlineForm.config.formTitle}),a.steps.map((d,u)=>{var f;return s.createElement(mn,{key:u+`${(f=d.meta)==null?void 0:f.name}`,height:r,onSetMaxHeight:o,isVisible:u===l.step,children:d.fields.map(p=>s.createElement(Fn,{type:p.type,fieldProps:p,dataField:p.dataField,formClientId:t,onContinue:l.onContinue,errors:l.errors.filter(T=>T.field===p.dataField),getStateByKey:a.getStateByKey,setStateByKey:a.setStateByKey}))})}),s.createElement(Ca,{children:[s.createElement(Re,{children:"Back",disabled:l.step===0,onClick:l.onBack}),s.createElement(fn,{steps:a.steps,currentStepIndex:l.step}),s.createElement(Re,{children:"Continue",onClick:l.onContinue})]})]})},Aa=b.div(e=>({backgroundColor:"var(--color-base-100)",borderTopLeftRadius:"var(--modal-tl,var(--radius-box))",borderTopRightRadius:"var(--modal-tr,var(--radius-box))",borderBottomLeftRadius:"var(--modal-bl,var(--radius-box))",borderBottomRightRadius:"var(--modal-br,var(--radius-box))",opacity:e.$visible?"1":"0",overscrollBehavior:"contain",gridRowStart:"1",gridColumnStart:"1",width:"91.6667%",maxWidth:"1080px",margin:"auto",maxHeight:"100vh",padding:"1.5rem",transition:"translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out",overflowY:"auto",scale:"95%",boxShadow:"0 25px 50px -12px #00000040","@media (max-width: 900px)":{maxWidth:"initial",width:"auto"}})),_a=b.div(()=>({})),Ia=b.dialog(({$visible:e})=>({pointerEvents:e?"auto":"none",visibility:e?"visible":"hidden",width:"100%",maxWidth:"none",height:"100%",maxHeight:"none",color:"inherit",transition:"visibility .3s allow-discrete,background-color .3s ease-out,opacity .1s ease-out",overscrollBehavior:"contain",zIndex:"99",scrollbarGutter:"auto",backgroundColor:e?"#0006":"#0000",placeItems:"center",margin:"0",padding:"0",display:"grid",position:"fixed",overflow:"clip",top:0,border:0,outline:0})),ka=e=>{const t=s.useRef(null),r=Math.random().toString(36).substring(2,16),n=s.useCallback(a=>{a.target===t.current&&e.onClose(),a.preventDefault(),a.stopPropagation()},[e]),o=s.useCallback(a=>{a.key==="Escape"&&e.onClose(),a.preventDefault()},[]);return s.useEffect(()=>{t.current&&e.isOpen?t.current.show():t.current&&!e.isOpen&&t.current.close()},[t,e.isOpen]),s.useEffect(()=>(document.addEventListener("keyup",o),()=>{document.removeEventListener("keyup",o)}),[]),s.createElement(Ia,{$visible:e.isOpen,onClick:n,ref:t,id:r,children:s.createElement(Aa,{$visible:e.isOpen,children:[s.createElement(ee,{children:e.heading,variant:"title"}),e.children,s.createElement(_a,{children:e.footer})]})})},Pa=b.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
align-items: center;
|
|
132
132
|
justify-content: space-between;
|
|
133
133
|
margin-top: calc(var(--spacing) * 10);
|
|
134
|
-
`,
|
|
134
|
+
`,Oa=b(Re)`
|
|
135
135
|
position: fixed;
|
|
136
136
|
width: fit-content;
|
|
137
137
|
height: fit-content;
|
|
138
138
|
transform: rotate(-90deg) translateY(calc(100% - 15px));
|
|
139
139
|
padding: 10px 20px 30px 20px;
|
|
140
140
|
margin: auto;
|
|
141
|
-
left: ${e=>
|
|
142
|
-
right: ${e=>
|
|
143
|
-
top: ${e=>
|
|
144
|
-
bottom: ${e=>
|
|
141
|
+
left: ${e=>rt(e.$left)?`${e.$left}px`:null};
|
|
142
|
+
right: ${e=>rt(e.$right)?`${e.$right}px`:null};
|
|
143
|
+
top: ${e=>rt(e.$top)?`${e.$top}px`:null};
|
|
144
|
+
bottom: ${e=>rt(e.$bottom)?`${e.$bottom}px`:null};
|
|
145
145
|
&:active {
|
|
146
146
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,zn=e=>{const[t,r]=s.useState(!1),[n,o]=s.useState(null),a=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),l=f=>{o(p=>!p||p<f?f:p)},d=hn({form:e.popupForm.form,formId:e.formId,domainId:e.domainId}),u=kn({domainId:e.domainId,formType:"inlineForm",stepsCount:d.steps.length,validationsPerStep:d.validationsPerStep,formId:e.formId,state:d.state});return s.createElement(s.Fragment,{children:[s.createElement(Oa,{children:e.popupForm.config.buttonText,onClick:()=>r(!0),$left:e.popupForm.styles.left??null,$right:e.popupForm.styles.right??null,$top:e.popupForm.styles.top??null,$bottom:e.popupForm.styles.bottom??null}),s.createElement(ka,{onClose:()=>r(!1),heading:e.popupForm.config.formTitle,isOpen:t,footer:s.createElement(Pa,{children:[s.createElement(Re,{children:"Back",disabled:u.step===0,onClick:u.onBack}),s.createElement(fn,{steps:d.steps,currentStepIndex:u.step}),s.createElement(Re,{children:"Continue",onClick:u.onContinue})]}),children:d.steps.map((f,p)=>{var T;return s.createElement(mn,{key:p+`${(T=f.meta)==null?void 0:T.name}`,height:n,onSetMaxHeight:l,isVisible:p===u.step,children:f.fields.map(w=>s.createElement(Fn,{type:w.type,fieldProps:w,formClientId:a,dataField:w.dataField,onContinue:u.onContinue,errors:u.errors.filter(S=>S.field===w.dataField),getStateByKey:d.getStateByKey,setStateByKey:d.setStateByKey}))})})})]})},Bn=e=>{e.locale;let{data:t,loading:r,error:n}=yi(()=>bi({formId:e.formId}));const o=s.useMemo(()=>t!=null&&t.inlineForm?s.createElement(Rn,{key:`inline-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,inlineForm:t.inlineForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]),a=s.useMemo(()=>t!=null&&t.popupForm?s.createElement(zn,{key:`popup-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,popupForm:t.popupForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]);return!t&&r?"Loading...":!t||n?n?n.message:"Unknown error":s.createElement(ue,{theme:t.attributes.theme,selectedVariant:t.attributes.variant,children:[o,a]})},Un=b.option(()=>({borderRadius:"var(--radius-field)",whiteSpace:"normal",paddingBlock:".375rem",paddingInline:".75rem",transitionProperty:"color,background-color",transitionDuration:".2s",transitionTimingFunction:"cubic-bezier(0,0,.2,1)"})),Na=b.select(e=>({border:`var(--border-width)solid ${se(e.colorVariant)}`,backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",height:"calc(var(--size-field,.25rem)*10)",touchAction:"manipulation",whiteSpace:"nowrap",textOverflow:"ellipsis",borderStartStartRadius:"var(--radius-field)",borderStartEndRadius:"var(--radius-field)",borderEndEndRadius:"var(--radius-field)",borderEndStartRadius:"var(--radius-field)",flexShrink:"1",alignItems:"center",gap:".375rem",paddingInline:".75rem 1.75rem",fontSize:".875rem",display:"inline-flex",position:"relative",overflow:"hidden"})),$a=e=>{const t=r=>e.onChange(r.target.value);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(Na,{colorVariant:e.colorVariant,value:e.value??null,defaultChecked:!1,defaultValue:null,onChange:t,children:[s.createElement(Un,{value:"",selected:!e.value,children:"Select an option",key:""}),e.options.map(r=>s.createElement(Un,{value:r.id,selected:r.id===e.value,children:r.label,key:r.id}))]}),s.createElement(Ce,{errors:e.errors})]})},Da=e=>{if(!e){console.error("options must be provided. Feedback module deactivated");return}if(!e.formId){console.error("formId must be provided. Feedback module deactivated");return}const t=co.createRoot(e.container||document);typeof window<"u"&&t.render(s.createElement(Bn,{formId:e.formId}))},Vn=e=>e?e.formId?typeof window>"u"?null:s.createElement(Bn,{formId:e.formId}):(console.error("formId must be provided. Feedback module deactivated"),null):(console.error("options must be provided. Feedback module deactivated"),null),Ma=e=>Vn(e),La=e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(Rn,e)]}),Fa=e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(zn,e)]}),Ra={Checkbox:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement(Pn,e.cmpProps)]}),QuestionMatrix:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement(Nn,e.cmpProps)]}),Radio:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement($n,e.cmpProps)]}),Rating:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement(Mn,e.cmpProps)]}),Select:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement($a,e.cmpProps)]}),Textarea:e=>s.createElement(ue,{theme:e.formTheme,selectedVariant:e.formVariant,children:[s.createElement(Ln,e.cmpProps)]})};return pe.FeedbackModule=Ma,pe.PreviewInPlaceForm=La,pe.PreviewPopupForm=Fa,pe.SurveyFormComponents=Ra,pe.initiateFeedbackModule=Da,pe.renderFeedbackModule=Vn,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"}),pe})({},React,require$$0);
|