@web-site-utilities/feedback 0.0.4 → 0.0.5
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/index.cjs.js +4 -4
- package/dist/index.es.js +60 -60
- package/dist/index.iife.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),lo=require("react-dom");var pt={},zr;function co(){if(zr)return pt;zr=1;var e=lo;return pt.createRoot=e.createRoot,pt.hydrateRoot=e.hydrateRoot,pt}var uo=co(),V=function(){return V=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},V.apply(this,arguments)};function _t(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var k="-ms-",it="-moz-",C="-webkit-",hn="comm",Ot="rule",pr="decl",fo="@import",pn="@keyframes",mo="@layer",gn=Math.abs,gr=String.fromCharCode,ir=Object.assign;function ho(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function bn(e){return e.trim()}function fe(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function St(e,t,r){return e.indexOf(t,r)}function B(e,t){return e.charCodeAt(t)|0}function ze(e,t,r){return e.slice(t,r)}function ie(e){return e.length}function yn(e){return e.length}function ot(e,t){return t.push(e),e}function po(e,t){return e.map(t).join("")}function Br(e,t){return e.filter(function(r){return!fe(r,t)})}var Nt=1,Be=1,vn=0,Z=0,F=0,Ve="";function $t(e,t,r,n,o,i,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Nt,column:Be,length:l,return:"",siblings:d}}function be(e,t){return ir($t("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Le(e){for(;e.root;)e=be(e.root,{children:[e]});ot(e,e.siblings)}function go(){return F}function bo(){return F=Z>0?B(Ve,--Z):0,Be--,F===10&&(Be=1,Nt--),F}function oe(){return F=Z<vn?B(Ve,Z++):0,Be++,F===10&&(Be=1,Nt++),F}function
|
|
2
|
-
`,Rt=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),Lt=Object.freeze([]),We=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=We),e.theme!==r.theme&&e.theme||t||r.theme}var wn=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 Hr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,gt=52,Vr=function(e){return String.fromCharCode(e+(e>25?39:97))};function cr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Vr(t%gt)+r;return(Vr(t%gt)+r).replace(Do,"$1-$2")}var Zt,xn=5381,Fe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Cn=function(e){return Fe(xn,e)};function Mo(e){return cr(Cn(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function Qt(e){return typeof e=="string"&&!0}var An=typeof Symbol=="function"&&Symbol.for,_n=An?Symbol.for("react.memo"):60115,Fo=An?Symbol.for("react.forward_ref"):60112,zo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},In={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo=((Zt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[_n]=In,Zt);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===_n?In:"$$typeof"in e?Uo[e.$$typeof]:zo;var t}var Wo=Object.defineProperty,Ho=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Vo=Object.getOwnPropertyDescriptor,Go=Object.getPrototypeOf,Yr=Object.prototype;function Rn(e,t,r){if(typeof t!="string"){if(Yr){var n=Go(t);n&&n!==Yr&&Rn(e,n,r)}var o=Ho(t);jr&&(o=o.concat(jr(t)));for(var i=Gr(e),l=Gr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in Bo||r&&r[u]||l&&u in l||i&&u in i)){var m=Vo(t,u);try{Wo(e,u,m)}catch{}}}}return e}function Ae(e){return typeof e=="function"}function yr(e){return typeof e=="object"&&"styledComponentId"in e}function Te(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function st(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ur(e,t,r){if(r===void 0&&(r=!1),!r&&!st(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ur(e[n],t[n]);else if(st(t))for(var n in t)e[n]=ur(e[n],t[n]);return e}function vr(e,t){Object.defineProperty(e,"toString",{value:t})}function _e(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 jo=(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,i=o;t>=i;)if((i<<=1)<0)throw _e(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var l=o;l<i;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 i=n;i<o;i++)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),i=o+n,l=o;l<i;l++)r+="".concat(this.tag.getRule(l)).concat(br);return r},e})(),xt=new Map,kt=new Map,Ct=1,bt=function(e){if(xt.has(e))return xt.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;return xt.set(e,t),kt.set(t,e),t},Yo=function(e,t){Ct=t+1,xt.set(e,t),kt.set(t,e)},qo="style[".concat(Ue,"][").concat(Tn,'="').concat(Mt,'"]'),Ko=new RegExp("^".concat(Ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xo=function(e,t,r){for(var n,o=r.split(","),i=0,l=o.length;i<l;i++)(n=o[i])&&e.registerName(t,n)},Zo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(br),o=[],i=0,l=n.length;i<l;i++){var d=n[i].trim();if(d){var u=d.match(Ko);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Yo(p,m),Xo(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kr=function(e){for(var t=document.querySelectorAll(qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ue)!==Sn&&(Zo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Qo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ue,"]")));return u[u.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ue,Sn),n.setAttribute(Tn,Mt);var l=Qo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,i),n},Jo=(function(){function e(t){this.element=kn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var l=n[o];if(l.ownerNode===r)return l}throw _e(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})(),ea=(function(){function e(t){this.element=kn(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})(),ta=(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=Rt,ra={isServer:!Rt,useCSSOMInjection:!Po},Pn=(function(){function e(t,r,n){t===void 0&&(t=We),r===void 0&&(r={});var o=this;this.options=V(V({},ra),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Rt&&Xr&&(Xr=!1,Kr(this)),vr(this,function(){return(function(i){for(var l=i.getTag(),d=l.length,u="",m=function(T){var w=(function(D){return kt.get(D)})(T);if(w===void 0)return"continue";var v=i.names.get(w),A=l.getGroup(T);if(v===void 0||!v.size||A.length===0)return"continue";var $="".concat(Ue,".g").concat(T,'[id="').concat(w,'"]'),G="";v!==void 0&&v.forEach(function(D){D.length>0&&(G+="".concat(D,","))}),u+="".concat(A).concat($,'{content:"').concat(G,'"}').concat(br)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return bt(t)},e.prototype.rehydrate=function(){!this.server&&Rt&&Kr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(V(V({},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 ta(o):n?new Jo(o):new ea(o)})(this.options),new jo(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(bt(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(bt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(bt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),na=/&/g,oa=/^\s*\/\/.*$/gm;function On(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=On(r.children,t)),r})}function aa(e){var t,r,n,o=We,i=o.options,l=i===void 0?We:i,d=o.plugins,u=d===void 0?Lt:d,m=function(w,v,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===Ot&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(na,r).replace(n,m))}),l.prefix&&p.push(Ro),p.push(Ao);var T=function(w,v,A,$){v===void 0&&(v=""),A===void 0&&(A=""),$===void 0&&($="&"),t=$,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var G=w.replace(oa,""),D=xo(A||v?"".concat(A," ").concat(v," { ").concat(G," }"):G);l.namespace&&(D=On(D,l.namespace));var P=[];return It(D,_o(p.concat(Io(function(_){return P.push(_)})))),P};return T.hash=u.length?u.reduce(function(w,v){return v.name||_e(15),Fe(w,v.name)},xn).toString():"",T}var ia=new Pn,dr=aa(),Nn=s.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:dr});Nn.Consumer;s.createContext(void 0);function Zr(){return s.useContext(Nn)}var sa=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=dr);var l=n.name+i.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,i(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,vr(this,function(){throw _e(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dr),this.name+t.hash},e})(),la=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;la(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var $n=function(e){return e==null||e===!1||e===""},Dn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!$n(i)&&(Array.isArray(i)&&i.isCss||Ae(i)?n.push("".concat(Qr(o),":"),i,";"):st(i)?n.push.apply(n,_t(_t(["".concat(o," {")],Dn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,(r=i)==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($n(e))return[];if(yr(e))return[".".concat(e.styledComponentId)];if(Ae(e)){if(!Ae(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return xe(o,t,r,n)}var i;return e instanceof sa?r?(e.inject(r,n),[e.getName(n)]):[e]:st(e)?Dn(e):Array.isArray(e)?Array.prototype.concat.apply(Lt,e.map(function(l){return xe(l,t,r,n)})):[e.toString()]}function ca(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ae(r)&&!yr(r))return!1}return!0}var ua=Cn(Mt),da=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ca(t),this.componentId=r,this.baseHash=Fe(ua,r),this.baseStyle=n,Pn.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 i=qr(xe(this.rules,t,r,n)),l=cr(Fe(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(i,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=Te(o,l),this.staticRulesId=l}else{for(var u=Fe(this.baseHash,n.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=qr(xe(T,t,r,n));u=Fe(u,w+p),m+=w}}if(m){var v=cr(u>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,n(m,".".concat(v),void 0,this.componentId)),o=Te(o,v)}}return o},e})(),Pt=s.createContext(void 0);Pt.Consumer;function fa(e){var t=s.useContext(Pt),r=s.useMemo(function(){return(function(n,o){if(!n)throw _e(14);if(Ae(n)){var i=n(o);return i}if(Array.isArray(n)||typeof n!="object")throw _e(8);return o?V(V({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(Pt.Provider,{value:r},e.children):null}var Jt={};function ma(e,t,r){var n=yr(e),o=e,i=!Qt(e),l=t.attrs,d=l===void 0?Lt:l,u=t.componentId,m=u===void 0?(function(b,R){var x=typeof b!="string"?"sc":Hr(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(Mo(Mt+x+Jt[x]));return R?"".concat(R,"-").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(Lo(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Hr(t.displayName),"-").concat(t.componentId):t.componentId||m,v=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var $=o.shouldForwardProp;if(t.shouldForwardProp){var G=t.shouldForwardProp;A=function(b,R){return $(b,R)&&G(b,R)}}else A=$}var D=new da(r,w,n?o.componentStyle:void 0);function P(b,R){return(function(x,y,he){var Ie=x.attrs,Ft=x.componentStyle,U=x.defaultProps,je=x.foldedComponentIds,Ye=x.styledComponentId,qe=x.target,zt=s.useContext(Pt),Bt=Zr(),Ke=x.shouldForwardProp||Bt.shouldForwardProp,Xe=Oo(y,zt,U)||We,J=(function(I,te,pe){for(var ge,re=V(V({},te),{className:void 0,theme:pe}),ke=0;ke<I.length;ke+=1){var ve=Ae(ge=I[ke])?ge(re):ge;for(var j in ve)re[j]=j==="className"?Te(re[j],ve[j]):j==="style"?V(V({},re[j]),ve[j]):ve[j]}return te.className&&(re.className=Te(re.className,te.className)),re})(Ie,y,Xe),ye=J.as||qe,O={};for(var ee in J)J[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&J.theme===Xe||(ee==="forwardedAs"?O.as=J.forwardedAs:Ke&&!Ke(ee,ye)||(O[ee]=J[ee]));var M=(function(I,te){var pe=Zr(),ge=I.generateAndInjectStyles(te,pe.styleSheet,pe.stylis);return ge})(Ft,J),Re=Te(je,Ye);return M&&(Re+=" "+M),J.className&&(Re+=" "+J.className),O[Qt(ye)&&!wn.has(ye)?"class":"className"]=Re,he&&(O.ref=he),s.createElement(ye,O)})(_,b,R)}P.displayName=T;var _=s.forwardRef(P);return _.attrs=v,_.componentStyle=D,_.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(b){this._foldedDefaultProps=n?(function(R){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var he=0,Ie=x;he<Ie.length;he++)ur(R,Ie[he],!0);return R})({},o.defaultProps,b):b}}),vr(_,function(){return".".concat(_.styledComponentId)}),i&&Rn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Jr(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 en=function(e){return Object.assign(e,{isCss:!0})};function ha(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ae(e)||st(e))return en(xe(Jr(Lt,_t([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xe(n):en(xe(Jr(n,t)))}function fr(e,t,r){if(r===void 0&&(r=We),!t)throw _e(1,t);var n=function(o){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];return e(t,r,ha.apply(void 0,_t([o],i,!1)))};return n.attrs=function(o){return fr(e,t,V(V({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fr(e,t,V(V({},r),o))},n}var Mn=function(e){return fr(ma,e)},S=Mn;wn.forEach(function(e){S[e]=Mn(e)});const Ce={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},pa={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Ce},Ln=s.createContext({...Ce,...pa}),ga=S.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),lo=require("react-dom");var pt={},zr;function co(){if(zr)return pt;zr=1;var e=lo;return pt.createRoot=e.createRoot,pt.hydrateRoot=e.hydrateRoot,pt}var uo=co(),V=function(){return V=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},V.apply(this,arguments)};function _t(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var k="-ms-",it="-moz-",C="-webkit-",hn="comm",Ot="rule",pr="decl",fo="@import",pn="@keyframes",mo="@layer",gn=Math.abs,gr=String.fromCharCode,ir=Object.assign;function ho(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function bn(e){return e.trim()}function fe(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function St(e,t,r){return e.indexOf(t,r)}function B(e,t){return e.charCodeAt(t)|0}function ze(e,t,r){return e.slice(t,r)}function ie(e){return e.length}function yn(e){return e.length}function ot(e,t){return t.push(e),e}function po(e,t){return e.map(t).join("")}function Br(e,t){return e.filter(function(r){return!fe(r,t)})}var Nt=1,Be=1,vn=0,Z=0,F=0,Ve="";function $t(e,t,r,n,o,i,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Nt,column:Be,length:l,return:"",siblings:d}}function be(e,t){return ir($t("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Le(e){for(;e.root;)e=be(e.root,{children:[e]});ot(e,e.siblings)}function go(){return F}function bo(){return F=Z>0?B(Ve,--Z):0,Be--,F===10&&(Be=1,Nt--),F}function oe(){return F=Z<vn?B(Ve,Z++):0,Be++,F===10&&(Be=1,Nt++),F}function xe(){return B(Ve,Z)}function Tt(){return Z}function Dt(e,t){return ze(Ve,e,t)}function sr(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 yo(e){return Nt=Be=1,vn=ie(Ve=e),Z=0,[]}function vo(e){return Ve="",e}function Xt(e){return bn(Dt(Z-1,lr(e===91?e+2:e===40?e+1:e)))}function Eo(e){for(;(F=xe())&&F<33;)oe();return sr(e)>2||sr(F)>3?"":" "}function So(e,t){for(;--t&&oe()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return Dt(e,Tt()+(t<6&&xe()==32&&oe()==32))}function lr(e){for(;oe();)switch(F){case e:return Z;case 34:case 39:e!==34&&e!==39&&lr(F);break;case 40:e===41&&lr(e);break;case 92:oe();break}return Z}function To(e,t){for(;oe()&&e+F!==57;)if(e+F===84&&xe()===47)break;return"/*"+Dt(t,Z-1)+"*"+gr(e===47?e:oe())}function wo(e){for(;!sr(xe());)oe();return Dt(e,Z)}function xo(e){return vo(wt("",null,null,null,[""],e=yo(e),0,[0],e))}function wt(e,t,r,n,o,i,l,d,u){for(var m=0,p=0,T=l,w=0,v=0,A=0,$=1,G=1,D=1,P=0,_="",b=o,R=i,x=n,y=_;G;)switch(A=P,P=oe()){case 40:if(A!=108&&B(y,T-1)==58){St(y+=g(Xt(P),"&","&\f"),"&\f",gn(m?d[m-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:y+=Xt(P);break;case 9:case 10:case 13:case 32:y+=Eo(A);break;case 92:y+=So(Tt()-1,7);continue;case 47:switch(xe()){case 42:case 47:ot(Co(To(oe(),Tt()),t,r,u),u);break;default:y+="/"}break;case 123*$:d[m++]=ie(y)*D;case 125*$:case 59:case 0:switch(P){case 0:case 125:G=0;case 59+p:D==-1&&(y=g(y,/\f/g,"")),v>0&&ie(y)-T&&ot(v>32?Wr(y+";",n,r,T-1,u):Wr(g(y," ","")+";",n,r,T-2,u),u);break;case 59:y+=";";default:if(ot(x=Ur(y,t,r,m,p,o,d,_,b=[],R=[],T,i),i),P===123)if(p===0)wt(y,t,x,x,b,i,T,d,R);else switch(w===99&&B(y,3)===110?100:w){case 100:case 108:case 109:case 115:wt(e,x,x,n&&ot(Ur(e,x,x,0,0,o,d,_,o,b=[],T,R),R),o,R,T,d,n?b:R);break;default:wt(y,x,x,x,[""],R,0,d,R)}}m=p=v=0,$=D=1,_=y="",T=l;break;case 58:T=1+ie(y),v=A;default:if($<1){if(P==123)--$;else if(P==125&&$++==0&&bo()==125)continue}switch(y+=gr(P),P*$){case 38:D=p>0?1:(y+="\f",-1);break;case 44:d[m++]=(ie(y)-1)*D,D=1;break;case 64:xe()===45&&(y+=Xt(oe())),w=xe(),p=T=ie(_=y+=wo(Tt())),P++;break;case 45:A===45&&ie(y)==2&&($=0)}}return i}function Ur(e,t,r,n,o,i,l,d,u,m,p,T){for(var w=o-1,v=o===0?i:[""],A=yn(v),$=0,G=0,D=0;$<n;++$)for(var P=0,_=ze(e,w+1,w=gn(G=l[$])),b=e;P<A;++P)(b=bn(G>0?v[P]+" "+_:g(_,/&\f/g,v[P])))&&(u[D++]=b);return $t(e,t,r,o===0?Ot:d,u,m,p,T)}function Co(e,t,r,n){return $t(e,t,r,hn,gr(go()),ze(e,2,-2),0,n)}function Wr(e,t,r,n,o){return $t(e,t,r,pr,ze(e,0,n),ze(e,n+1,-1),n,o)}function En(e,t,r){switch(ho(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 it+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+it+e+k+e+e;case 5936:switch(B(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,"")+(fe(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(!fe(e,/flex-|baseline/))return k+"grid-column-align"+ze(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,fe(n.props,/grid-\w+-end/)})?~St(e+(r=r[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~St(r,"span",0)?fe(r,/\d+/):+fe(r,/\d+/)-+fe(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return fe(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(ie(e)-1-t>6)switch(B(e,t+1)){case 109:if(B(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+it+(B(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~St(e,"stretch",0)?En(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,i,l,d,u,m){return k+o+":"+i+m+(l?k+o+"-span:"+(d?u:+u-+i)+m:"")+e});case 4949:if(B(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(B(e,B(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(B(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 It(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ao(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case fo:case pr:return e.return=e.return||e.value;case hn:return"";case pn:return e.return=e.value+"{"+It(e.children,n)+"}";case Ot:if(!ie(e.value=e.props.join(",")))return""}return ie(r=It(e.children,n))?e.return=e.value+"{"+r+"}":""}function _o(e){var t=yn(e);return function(r,n,o,i){for(var l="",d=0;d<t;d++)l+=e[d](r,n,o,i)||"";return l}}function Io(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ro(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=En(e.value,e.length,r);return;case pn:return It([be(e,{value:g(e.value,"@","@"+C)})],n);case Ot:if(e.length)return po(r=e.props,function(o){switch(fe(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Le(be(e,{props:[g(o,/:(read-\w+)/,":"+it+"$1")]})),Le(be(e,{props:[o]})),ir(e,{props:Br(r,n)});break;case"::placeholder":Le(be(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Le(be(e,{props:[g(o,/:(plac\w+)/,":"+it+"$1")]})),Le(be(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Le(be(e,{props:[o]})),ir(e,{props:Br(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},Ue=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Sn="active",Tn="data-styled-version",Mt="6.1.19",br=`/*!sc*/
|
|
2
|
+
`,Rt=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),Lt=Object.freeze([]),We=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=We),e.theme!==r.theme&&e.theme||t||r.theme}var wn=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 Hr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,gt=52,Vr=function(e){return String.fromCharCode(e+(e>25?39:97))};function cr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Vr(t%gt)+r;return(Vr(t%gt)+r).replace(Do,"$1-$2")}var Zt,xn=5381,Fe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Cn=function(e){return Fe(xn,e)};function Mo(e){return cr(Cn(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function Qt(e){return typeof e=="string"&&!0}var An=typeof Symbol=="function"&&Symbol.for,_n=An?Symbol.for("react.memo"):60115,Fo=An?Symbol.for("react.forward_ref"):60112,zo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},In={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo=((Zt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[_n]=In,Zt);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===_n?In:"$$typeof"in e?Uo[e.$$typeof]:zo;var t}var Wo=Object.defineProperty,Ho=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Vo=Object.getOwnPropertyDescriptor,Go=Object.getPrototypeOf,Yr=Object.prototype;function Rn(e,t,r){if(typeof t!="string"){if(Yr){var n=Go(t);n&&n!==Yr&&Rn(e,n,r)}var o=Ho(t);jr&&(o=o.concat(jr(t)));for(var i=Gr(e),l=Gr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in Bo||r&&r[u]||l&&u in l||i&&u in i)){var m=Vo(t,u);try{Wo(e,u,m)}catch{}}}}return e}function Ae(e){return typeof e=="function"}function yr(e){return typeof e=="object"&&"styledComponentId"in e}function we(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function st(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ur(e,t,r){if(r===void 0&&(r=!1),!r&&!st(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ur(e[n],t[n]);else if(st(t))for(var n in t)e[n]=ur(e[n],t[n]);return e}function vr(e,t){Object.defineProperty(e,"toString",{value:t})}function _e(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 jo=(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,i=o;t>=i;)if((i<<=1)<0)throw _e(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var l=o;l<i;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 i=n;i<o;i++)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),i=o+n,l=o;l<i;l++)r+="".concat(this.tag.getRule(l)).concat(br);return r},e})(),xt=new Map,kt=new Map,Ct=1,bt=function(e){if(xt.has(e))return xt.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;return xt.set(e,t),kt.set(t,e),t},Yo=function(e,t){Ct=t+1,xt.set(e,t),kt.set(t,e)},qo="style[".concat(Ue,"][").concat(Tn,'="').concat(Mt,'"]'),Ko=new RegExp("^".concat(Ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xo=function(e,t,r){for(var n,o=r.split(","),i=0,l=o.length;i<l;i++)(n=o[i])&&e.registerName(t,n)},Zo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(br),o=[],i=0,l=n.length;i<l;i++){var d=n[i].trim();if(d){var u=d.match(Ko);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Yo(p,m),Xo(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kr=function(e){for(var t=document.querySelectorAll(qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ue)!==Sn&&(Zo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Qo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ue,"]")));return u[u.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ue,Sn),n.setAttribute(Tn,Mt);var l=Qo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,i),n},Jo=(function(){function e(t){this.element=kn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var l=n[o];if(l.ownerNode===r)return l}throw _e(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})(),ea=(function(){function e(t){this.element=kn(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})(),ta=(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=Rt,ra={isServer:!Rt,useCSSOMInjection:!Po},Pn=(function(){function e(t,r,n){t===void 0&&(t=We),r===void 0&&(r={});var o=this;this.options=V(V({},ra),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Rt&&Xr&&(Xr=!1,Kr(this)),vr(this,function(){return(function(i){for(var l=i.getTag(),d=l.length,u="",m=function(T){var w=(function(D){return kt.get(D)})(T);if(w===void 0)return"continue";var v=i.names.get(w),A=l.getGroup(T);if(v===void 0||!v.size||A.length===0)return"continue";var $="".concat(Ue,".g").concat(T,'[id="').concat(w,'"]'),G="";v!==void 0&&v.forEach(function(D){D.length>0&&(G+="".concat(D,","))}),u+="".concat(A).concat($,'{content:"').concat(G,'"}').concat(br)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return bt(t)},e.prototype.rehydrate=function(){!this.server&&Rt&&Kr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(V(V({},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 ta(o):n?new Jo(o):new ea(o)})(this.options),new jo(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(bt(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(bt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(bt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),na=/&/g,oa=/^\s*\/\/.*$/gm;function On(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=On(r.children,t)),r})}function aa(e){var t,r,n,o=We,i=o.options,l=i===void 0?We:i,d=o.plugins,u=d===void 0?Lt:d,m=function(w,v,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===Ot&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(na,r).replace(n,m))}),l.prefix&&p.push(Ro),p.push(Ao);var T=function(w,v,A,$){v===void 0&&(v=""),A===void 0&&(A=""),$===void 0&&($="&"),t=$,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var G=w.replace(oa,""),D=xo(A||v?"".concat(A," ").concat(v," { ").concat(G," }"):G);l.namespace&&(D=On(D,l.namespace));var P=[];return It(D,_o(p.concat(Io(function(_){return P.push(_)})))),P};return T.hash=u.length?u.reduce(function(w,v){return v.name||_e(15),Fe(w,v.name)},xn).toString():"",T}var ia=new Pn,dr=aa(),Nn=s.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:dr});Nn.Consumer;s.createContext(void 0);function Zr(){return s.useContext(Nn)}var sa=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=dr);var l=n.name+i.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,i(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,vr(this,function(){throw _e(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dr),this.name+t.hash},e})(),la=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;la(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var $n=function(e){return e==null||e===!1||e===""},Dn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!$n(i)&&(Array.isArray(i)&&i.isCss||Ae(i)?n.push("".concat(Qr(o),":"),i,";"):st(i)?n.push.apply(n,_t(_t(["".concat(o," {")],Dn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ko||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ce(e,t,r,n){if($n(e))return[];if(yr(e))return[".".concat(e.styledComponentId)];if(Ae(e)){if(!Ae(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return Ce(o,t,r,n)}var i;return e instanceof sa?r?(e.inject(r,n),[e.getName(n)]):[e]:st(e)?Dn(e):Array.isArray(e)?Array.prototype.concat.apply(Lt,e.map(function(l){return Ce(l,t,r,n)})):[e.toString()]}function ca(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ae(r)&&!yr(r))return!1}return!0}var ua=Cn(Mt),da=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ca(t),this.componentId=r,this.baseHash=Fe(ua,r),this.baseStyle=n,Pn.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=we(o,this.staticRulesId);else{var i=qr(Ce(this.rules,t,r,n)),l=cr(Fe(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(i,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=we(o,l),this.staticRulesId=l}else{for(var u=Fe(this.baseHash,n.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=qr(Ce(T,t,r,n));u=Fe(u,w+p),m+=w}}if(m){var v=cr(u>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,n(m,".".concat(v),void 0,this.componentId)),o=we(o,v)}}return o},e})(),Pt=s.createContext(void 0);Pt.Consumer;function fa(e){var t=s.useContext(Pt),r=s.useMemo(function(){return(function(n,o){if(!n)throw _e(14);if(Ae(n)){var i=n(o);return i}if(Array.isArray(n)||typeof n!="object")throw _e(8);return o?V(V({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(Pt.Provider,{value:r},e.children):null}var Jt={};function ma(e,t,r){var n=yr(e),o=e,i=!Qt(e),l=t.attrs,d=l===void 0?Lt:l,u=t.componentId,m=u===void 0?(function(b,R){var x=typeof b!="string"?"sc":Hr(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(Mo(Mt+x+Jt[x]));return R?"".concat(R,"-").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(Lo(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Hr(t.displayName),"-").concat(t.componentId):t.componentId||m,v=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var $=o.shouldForwardProp;if(t.shouldForwardProp){var G=t.shouldForwardProp;A=function(b,R){return $(b,R)&&G(b,R)}}else A=$}var D=new da(r,w,n?o.componentStyle:void 0);function P(b,R){return(function(x,y,he){var Ie=x.attrs,Ft=x.componentStyle,U=x.defaultProps,je=x.foldedComponentIds,Ye=x.styledComponentId,qe=x.target,zt=s.useContext(Pt),Bt=Zr(),Ke=x.shouldForwardProp||Bt.shouldForwardProp,Xe=Oo(y,zt,U)||We,J=(function(I,te,pe){for(var ge,re=V(V({},te),{className:void 0,theme:pe}),ke=0;ke<I.length;ke+=1){var Ee=Ae(ge=I[ke])?ge(re):ge;for(var j in Ee)re[j]=j==="className"?we(re[j],Ee[j]):j==="style"?V(V({},re[j]),Ee[j]):Ee[j]}return te.className&&(re.className=we(re.className,te.className)),re})(Ie,y,Xe),ve=J.as||qe,O={};for(var ee in J)J[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&J.theme===Xe||(ee==="forwardedAs"?O.as=J.forwardedAs:Ke&&!Ke(ee,ve)||(O[ee]=J[ee]));var M=(function(I,te){var pe=Zr(),ge=I.generateAndInjectStyles(te,pe.styleSheet,pe.stylis);return ge})(Ft,J),Re=we(je,Ye);return M&&(Re+=" "+M),J.className&&(Re+=" "+J.className),O[Qt(ve)&&!wn.has(ve)?"class":"className"]=Re,he&&(O.ref=he),s.createElement(ve,O)})(_,b,R)}P.displayName=T;var _=s.forwardRef(P);return _.attrs=v,_.componentStyle=D,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=n?we(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=n?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=n?(function(R){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var he=0,Ie=x;he<Ie.length;he++)ur(R,Ie[he],!0);return R})({},o.defaultProps,b):b}}),vr(_,function(){return".".concat(_.styledComponentId)}),i&&Rn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Jr(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 en=function(e){return Object.assign(e,{isCss:!0})};function ha(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ae(e)||st(e))return en(Ce(Jr(Lt,_t([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Ce(n):en(Ce(Jr(n,t)))}function fr(e,t,r){if(r===void 0&&(r=We),!t)throw _e(1,t);var n=function(o){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];return e(t,r,ha.apply(void 0,_t([o],i,!1)))};return n.attrs=function(o){return fr(e,t,V(V({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fr(e,t,V(V({},r),o))},n}var Mn=function(e){return fr(ma,e)},S=Mn;wn.forEach(function(e){S[e]=Mn(e)});const ye={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},pa={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...ye},Ln=s.createContext({...ye,...pa}),ga=S.div`
|
|
3
3
|
font-family:
|
|
4
4
|
ui-sans-serif,
|
|
5
5
|
system-ui,
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
--depth: ${e=>e.$theme.depth};
|
|
51
51
|
--spacing: ${e=>e.$theme.spacing};
|
|
52
52
|
--all-fields-size: ${e=>e.$theme.allFieldsSize};
|
|
53
|
-
`,Er=e=>{const t=e.selectedVariant??"primary";return console.log("
|
|
53
|
+
`,Er=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??ye),s.createElement(fa,{theme:e.theme??ye,children:s.createElement(ga,{$theme:e.theme??ye,children:s.createElement(Ln.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??ye},children:e.children})})})},Fn=()=>s.useContext(Ln),me=e=>{const{getDefaultVariantOrSelected:t}=Fn(),r=t();return ye[e??r]},zn=e=>{const{getDefaultVariantOrSelected:t}=Fn(),r=t(),n=e?`${e}Content`:`${r}Content`;return ye[n]},ba=()=>{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 i;try{return t(fetch(`${e}${r}`,{method:"POST",body:JSON.stringify(n),signal:((i=o==null?void 0:o.abortController)==null?void 0:i.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(i){throw console.log(i),i}}}},tn={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)?"}}]}]},ya=(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:tn},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:tn}})}),va=e=>{const[t,r]=s.useState(),[n,o]=s.useState(!0),[i,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:i}},He=S.button(e=>{const t=me(),r=zn(),o=!e.$outlined?t:"#fff",i=e.$outlined?t:r,l=e.$outlined?i: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":i,"&: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"}}}),Ea=S.div`
|
|
54
54
|
visibility: ${e=>e.$isVisible&&e.$height?"visible":"hidden"};
|
|
55
55
|
opacity: ${e=>e.$isVisible?1:0};
|
|
56
56
|
display: flex;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
@media (max-width: 900px) {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
`,Ta=S.li(e=>{const t=me(e.colorVariant),r=zn(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"}}}),Un=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Sa,{children:[e.steps.map((t,r)=>s.createElement(Ta,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),wa={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"}},xa=S.div(e=>({...wa[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),se=e=>s.createElement(xa,{$variant:e.variant,$linear:e.linear,children:e.children}),Ca=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}},Wn=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]:Ca(m.type)},{dataField:p,...m}):{...m,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]),i=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:i}},Aa=ba(),_a=(e,t)=>Aa.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:Hn,setPrototypeOf:rn,isFrozen:Ia,getPrototypeOf:Ra,getOwnPropertyDescriptor:ka}=Object;let{freeze:q,seal:Q,create:Vn}=Object,{apply:mr,construct:hr}=typeof Reflect<"u"&&Reflect;q||(q=function(t){return t});Q||(Q=function(t){return t});mr||(mr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});hr||(hr=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 yt=K(Array.prototype.forEach),Pa=K(Array.prototype.lastIndexOf),nn=K(Array.prototype.pop),Je=K(Array.prototype.push),Oa=K(Array.prototype.splice),At=K(String.prototype.toLowerCase),er=K(String.prototype.toString),tr=K(String.prototype.match),et=K(String.prototype.replace),Na=K(String.prototype.indexOf),$a=K(String.prototype.trim),ne=K(Object.prototype.hasOwnProperty),Y=K(RegExp.prototype.test),tt=Da(TypeError);function K(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 mr(e,t,n)}}function Da(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At;rn&&rn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Ia(t)||(t[n]=i),o=i)}e[o]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)ne(e,t)||(e[t]=null);return e}function de(e){const t=Vn(null);for(const[r,n]of Hn(e))ne(e,r)&&(Array.isArray(n)?t[r]=Ma(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=de(n):t[r]=n);return t}function rt(e,t){for(;e!==null;){const n=ka(e,t);if(n){if(n.get)return K(n.get);if(typeof n.value=="function")return K(n.value)}e=Ra(e)}function r(){return null}return r}const on=q(["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"]),rr=q(["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"]),nr=q(["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"]),La=q(["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"]),or=q(["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"]),Fa=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),an=q(["#text"]),sn=q(["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"]),ar=q(["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"]),ln=q(["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"]),vt=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),za=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ba=Q(/<%[\w\W]*|[\w\W]*%>/gm),Ua=Q(/\$\{[\w\W]*/gm),Wa=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ha=Q(/^aria-[\-\w]+$/),Gn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Va=Q(/^(?:\w+script|data):/i),Ga=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jn=Q(/^html$/i),ja=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var cn=Object.freeze({__proto__:null,ARIA_ATTR:Ha,ATTR_WHITESPACE:Ga,CUSTOM_ELEMENT:ja,DATA_ATTR:Wa,DOCTYPE_NAME:jn,ERB_EXPR:Ba,IS_ALLOWED_URI:Gn,IS_SCRIPT_OR_DATA:Va,MUSTACHE_EXPR:za,TMPLIT_EXPR:Ua});const nt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ya=function(){return typeof window>"u"?null:window},qa=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 i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},un=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ya();const t=h=>Yn(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==nt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:v}=e,A=u.prototype,$=rt(A,"cloneNode"),G=rt(A,"remove"),D=rt(A,"nextSibling"),P=rt(A,"childNodes"),_=rt(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let b,R="";const{implementation:x,createNodeIterator:y,createDocumentFragment:he,getElementsByTagName:Ie}=r,{importNode:Ft}=n;let U=un();t.isSupported=typeof Hn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:je,ERB_EXPR:Ye,TMPLIT_EXPR:qe,DATA_ATTR:zt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Ke,ATTR_WHITESPACE:Xe,CUSTOM_ELEMENT:J}=cn;let{IS_ALLOWED_URI:ye}=cn,O=null;const ee=E({},[...on,...rr,...nr,...or,...an]);let M=null;const Re=E({},[...sn,...ar,...ln,...vt]);let I=Object.seal(Vn(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}})),te=null,pe=null,ge=!0,re=!0,ke=!1,ve=!0,j=!1,lt=!0,Ee=!1,Ut=!1,Wt=!1,Pe=!1,ct=!1,ut=!1,Sr=!0,Tr=!1;const eo="user-content-";let Ht=!0,Ze=!1,Oe={},Ne=null;const wr=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 xr=null;const Cr=E({},["audio","video","img","source","image","track"]);let Vt=null;const Ar=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let $e=le,Gt=!1,jt=null;const to=E({},[dt,ft,le],er);let mt=E({},["mi","mo","mn","ms","mtext"]),ht=E({},["annotation-xml"]);const ro=E({},["title","style","font","a","script"]);let Qe=null;const no=["application/xhtml+xml","text/html"],oo="text/html";let z=null,De=null;const ao=r.createElement("form"),_r=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(De&&De===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=no.indexOf(a.PARSER_MEDIA_TYPE)===-1?oo:a.PARSER_MEDIA_TYPE,z=Qe==="application/xhtml+xml"?er:At,O=ne(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,z):ee,M=ne(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,z):Re,jt=ne(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,er):to,Vt=ne(a,"ADD_URI_SAFE_ATTR")?E(de(Ar),a.ADD_URI_SAFE_ATTR,z):Ar,xr=ne(a,"ADD_DATA_URI_TAGS")?E(de(Cr),a.ADD_DATA_URI_TAGS,z):Cr,Ne=ne(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,z):wr,te=ne(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,z):de({}),pe=ne(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,z):de({}),Oe=ne(a,"USE_PROFILES")?a.USE_PROFILES:!1,ge=a.ALLOW_ARIA_ATTR!==!1,re=a.ALLOW_DATA_ATTR!==!1,ke=a.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=a.SAFE_FOR_TEMPLATES||!1,lt=a.SAFE_FOR_XML!==!1,Ee=a.WHOLE_DOCUMENT||!1,Pe=a.RETURN_DOM||!1,ct=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,Wt=a.FORCE_BODY||!1,Sr=a.SANITIZE_DOM!==!1,Tr=a.SANITIZE_NAMED_PROPS||!1,Ht=a.KEEP_CONTENT!==!1,Ze=a.IN_PLACE||!1,ye=a.ALLOWED_URI_REGEXP||Gn,$e=a.NAMESPACE||le,mt=a.MATHML_TEXT_INTEGRATION_POINTS||mt,ht=a.HTML_INTEGRATION_POINTS||ht,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(re=!1),ct&&(Pe=!0),Oe&&(O=E({},an),M=[],Oe.html===!0&&(E(O,on),E(M,sn)),Oe.svg===!0&&(E(O,rr),E(M,ar),E(M,vt)),Oe.svgFilters===!0&&(E(O,nr),E(M,ar),E(M,vt)),Oe.mathMl===!0&&(E(O,or),E(M,ln),E(M,vt))),a.ADD_TAGS&&(O===ee&&(O=de(O)),E(O,a.ADD_TAGS,z)),a.ADD_ATTR&&(M===Re&&(M=de(M)),E(M,a.ADD_ATTR,z)),a.ADD_URI_SAFE_ATTR&&E(Vt,a.ADD_URI_SAFE_ATTR,z),a.FORBID_CONTENTS&&(Ne===wr&&(Ne=de(Ne)),E(Ne,a.FORBID_CONTENTS,z)),Ht&&(O["#text"]=!0),Ee&&E(O,["html","head","body"]),O.table&&(E(O,["tbody"]),delete te.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=a.TRUSTED_TYPES_POLICY,R=b.createHTML("")}else b===void 0&&(b=qa(v,o)),b!==null&&typeof R=="string"&&(R=b.createHTML(""));q&&q(a),De=a}},Ir=E({},[...rr,...nr,...La]),Rr=E({},[...or,...Fa]),io=function(a){let c=_(a);(!c||!c.tagName)&&(c={namespaceURI:$e,tagName:"template"});const f=At(a.tagName),N=At(c.tagName);return jt[a.namespaceURI]?a.namespaceURI===ft?c.namespaceURI===le?f==="svg":c.namespaceURI===dt?f==="svg"&&(N==="annotation-xml"||mt[N]):!!Ir[f]:a.namespaceURI===dt?c.namespaceURI===le?f==="math":c.namespaceURI===ft?f==="math"&&ht[N]:!!Rr[f]:a.namespaceURI===le?c.namespaceURI===ft&&!ht[N]||c.namespaceURI===dt&&!mt[N]?!1:!Rr[f]&&(ro[f]||!Ir[f]):!!(Qe==="application/xhtml+xml"&&jt[a.namespaceURI]):!1},ae=function(a){Je(t.removed,{element:a});try{_(a).removeChild(a)}catch{G(a)}},Se=function(a,c){try{Je(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{Je(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is")if(Pe||ct)try{ae(c)}catch{}else try{c.setAttribute(a,"")}catch{}},kr=function(a){let c=null,f=null;if(Wt)a="<remove></remove>"+a;else{const L=tr(a,/^[\r\n\t ]+/);f=L&&L[0]}Qe==="application/xhtml+xml"&&$e===le&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const N=b?b.createHTML(a):a;if($e===le)try{c=new w().parseFromString(N,Qe)}catch{}if(!c||!c.documentElement){c=x.createDocument($e,"template",null);try{c.documentElement.innerHTML=Gt?R:N}catch{}}const H=c.body||c.documentElement;return a&&f&&H.insertBefore(r.createTextNode(f),H.childNodes[0]||null),$e===le?Ie.call(c,Ee?"html":"body")[0]:Ee?c.documentElement:H},Pr=function(a){return y.call(a.ownerDocument||a,a,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},qt=function(a){return a instanceof T&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof p)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Or=function(a){return typeof d=="function"&&a instanceof d};function ce(h,a,c){yt(h,f=>{f.call(t,a,c,De)})}const Nr=function(a){let c=null;if(ce(U.beforeSanitizeElements,a,null),qt(a))return ae(a),!0;const f=z(a.nodeName);if(ce(U.uponSanitizeElement,a,{tagName:f,allowedTags:O}),lt&&a.hasChildNodes()&&!Or(a.firstElementChild)&&Y(/<[/\w!]/g,a.innerHTML)&&Y(/<[/\w!]/g,a.textContent)||a.nodeType===nt.progressingInstruction||lt&&a.nodeType===nt.comment&&Y(/<[/\w]/g,a.data))return ae(a),!0;if(!O[f]||te[f]){if(!te[f]&&Dr(f)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(Ht&&!Ne[f]){const N=_(a)||a.parentNode,H=P(a)||a.childNodes;if(H&&N){const L=H.length;for(let X=L-1;X>=0;--X){const ue=$(H[X],!0);ue.__removalCount=(a.__removalCount||0)+1,N.insertBefore(ue,D(a))}}}return ae(a),!0}return a instanceof u&&!io(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&Y(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(j&&a.nodeType===nt.text&&(c=a.textContent,yt([je,Ye,qe],N=>{c=et(c,N," ")}),a.textContent!==c&&(Je(t.removed,{element:a.cloneNode()}),a.textContent=c)),ce(U.afterSanitizeElements,a,null),!1)},$r=function(a,c,f){if(Sr&&(c==="id"||c==="name")&&(f in r||f in ao))return!1;if(!(re&&!pe[c]&&Y(zt,c))){if(!(ge&&Y(Bt,c))){if(!M[c]||pe[c]){if(!(Dr(a)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&Y(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,a))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!Vt[c]){if(!Y(ye,et(f,Xe,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Na(f,"data:")===0&&xr[a])){if(!(ke&&!Y(Ke,et(f,Xe,"")))){if(f)return!1}}}}}}return!0},Dr=function(a){return a!=="annotation-xml"&&tr(a,J)},Mr=function(a){ce(U.beforeSanitizeAttributes,a,null);const{attributes:c}=a;if(!c||qt(a))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let N=c.length;for(;N--;){const H=c[N],{name:L,namespaceURI:X,value:ue}=H,Me=z(L),Kt=ue;let W=L==="value"?Kt:$a(Kt);if(f.attrName=Me,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,ce(U.uponSanitizeAttribute,a,f),W=f.attrValue,Tr&&(Me==="id"||Me==="name")&&(Se(L,a),W=eo+W),lt&&Y(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Se(L,a);continue}if(Me==="attributename"&&tr(W,"href")){Se(L,a);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Se(L,a);continue}if(!ve&&Y(/\/>/i,W)){Se(L,a);continue}j&&yt([je,Ye,qe],Fr=>{W=et(W,Fr," ")});const Lr=z(a.nodeName);if(!$r(Lr,Me,W)){Se(L,a);continue}if(b&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!X)switch(v.getAttributeType(Lr,Me)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Kt)try{X?a.setAttributeNS(X,L,W):a.setAttribute(L,W),qt(a)?ae(a):nn(t.removed)}catch{Se(L,a)}}ce(U.afterSanitizeAttributes,a,null)},so=function h(a){let c=null;const f=Pr(a);for(ce(U.beforeSanitizeShadowDOM,a,null);c=f.nextNode();)ce(U.uponSanitizeShadowNode,c,null),Nr(c),Mr(c),c.content instanceof i&&h(c.content);ce(U.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(h){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,N=null,H=null;if(Gt=!h,Gt&&(h="<!-->"),typeof h!="string"&&!Or(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw tt("dirty is not a string, aborting")}else throw tt("toString is not a function");if(!t.isSupported)return h;if(Ut||Yt(a),t.removed=[],typeof h=="string"&&(Ze=!1),Ze){if(h.nodeName){const ue=z(h.nodeName);if(!O[ue]||te[ue])throw tt("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=kr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===nt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Pe&&!j&&!Ee&&h.indexOf("<")===-1)return b&&ut?b.createHTML(h):h;if(c=kr(h),!c)return Pe?null:ut?R:""}c&&Wt&&ae(c.firstChild);const L=Pr(Ze?h:c);for(;N=L.nextNode();)Nr(N),Mr(N),N.content instanceof i&&so(N.content);if(Ze)return h;if(Pe){if(ct)for(H=he.call(c.ownerDocument);c.firstChild;)H.appendChild(c.firstChild);else H=c;return(M.shadowroot||M.shadowrootmode)&&(H=Ft.call(n,H,!0)),H}let X=Ee?c.outerHTML:c.innerHTML;return Ee&&O["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&Y(jn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
81
|
+
`,Ta=S.li(e=>{const t=me(e.colorVariant),r=zn(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"}}}),Un=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Sa,{children:[e.steps.map((t,r)=>s.createElement(Ta,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),wa={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"}},xa=S.div(e=>({...wa[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),se=e=>s.createElement(xa,{$variant:e.variant,$linear:e.linear,children:e.children}),Ca=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}},Wn=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]:Ca(m.type)},{dataField:p,...m}):{...m,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]),i=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:i}},Aa=ba(),_a=(e,t)=>Aa.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:Hn,setPrototypeOf:rn,isFrozen:Ia,getPrototypeOf:Ra,getOwnPropertyDescriptor:ka}=Object;let{freeze:q,seal:Q,create:Vn}=Object,{apply:mr,construct:hr}=typeof Reflect<"u"&&Reflect;q||(q=function(t){return t});Q||(Q=function(t){return t});mr||(mr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});hr||(hr=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 yt=K(Array.prototype.forEach),Pa=K(Array.prototype.lastIndexOf),nn=K(Array.prototype.pop),Je=K(Array.prototype.push),Oa=K(Array.prototype.splice),At=K(String.prototype.toLowerCase),er=K(String.prototype.toString),tr=K(String.prototype.match),et=K(String.prototype.replace),Na=K(String.prototype.indexOf),$a=K(String.prototype.trim),ne=K(Object.prototype.hasOwnProperty),Y=K(RegExp.prototype.test),tt=Da(TypeError);function K(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 mr(e,t,n)}}function Da(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At;rn&&rn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Ia(t)||(t[n]=i),o=i)}e[o]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)ne(e,t)||(e[t]=null);return e}function de(e){const t=Vn(null);for(const[r,n]of Hn(e))ne(e,r)&&(Array.isArray(n)?t[r]=Ma(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=de(n):t[r]=n);return t}function rt(e,t){for(;e!==null;){const n=ka(e,t);if(n){if(n.get)return K(n.get);if(typeof n.value=="function")return K(n.value)}e=Ra(e)}function r(){return null}return r}const on=q(["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"]),rr=q(["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"]),nr=q(["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"]),La=q(["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"]),or=q(["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"]),Fa=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),an=q(["#text"]),sn=q(["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"]),ar=q(["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"]),ln=q(["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"]),vt=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),za=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ba=Q(/<%[\w\W]*|[\w\W]*%>/gm),Ua=Q(/\$\{[\w\W]*/gm),Wa=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ha=Q(/^aria-[\-\w]+$/),Gn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Va=Q(/^(?:\w+script|data):/i),Ga=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jn=Q(/^html$/i),ja=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var cn=Object.freeze({__proto__:null,ARIA_ATTR:Ha,ATTR_WHITESPACE:Ga,CUSTOM_ELEMENT:ja,DATA_ATTR:Wa,DOCTYPE_NAME:jn,ERB_EXPR:Ba,IS_ALLOWED_URI:Gn,IS_SCRIPT_OR_DATA:Va,MUSTACHE_EXPR:za,TMPLIT_EXPR:Ua});const nt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ya=function(){return typeof window>"u"?null:window},qa=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 i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},un=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ya();const t=h=>Yn(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==nt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:v}=e,A=u.prototype,$=rt(A,"cloneNode"),G=rt(A,"remove"),D=rt(A,"nextSibling"),P=rt(A,"childNodes"),_=rt(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let b,R="";const{implementation:x,createNodeIterator:y,createDocumentFragment:he,getElementsByTagName:Ie}=r,{importNode:Ft}=n;let U=un();t.isSupported=typeof Hn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:je,ERB_EXPR:Ye,TMPLIT_EXPR:qe,DATA_ATTR:zt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Ke,ATTR_WHITESPACE:Xe,CUSTOM_ELEMENT:J}=cn;let{IS_ALLOWED_URI:ve}=cn,O=null;const ee=E({},[...on,...rr,...nr,...or,...an]);let M=null;const Re=E({},[...sn,...ar,...ln,...vt]);let I=Object.seal(Vn(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}})),te=null,pe=null,ge=!0,re=!0,ke=!1,Ee=!0,j=!1,lt=!0,Se=!1,Ut=!1,Wt=!1,Pe=!1,ct=!1,ut=!1,Sr=!0,Tr=!1;const eo="user-content-";let Ht=!0,Ze=!1,Oe={},Ne=null;const wr=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 xr=null;const Cr=E({},["audio","video","img","source","image","track"]);let Vt=null;const Ar=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let $e=le,Gt=!1,jt=null;const to=E({},[dt,ft,le],er);let mt=E({},["mi","mo","mn","ms","mtext"]),ht=E({},["annotation-xml"]);const ro=E({},["title","style","font","a","script"]);let Qe=null;const no=["application/xhtml+xml","text/html"],oo="text/html";let z=null,De=null;const ao=r.createElement("form"),_r=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(De&&De===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=no.indexOf(a.PARSER_MEDIA_TYPE)===-1?oo:a.PARSER_MEDIA_TYPE,z=Qe==="application/xhtml+xml"?er:At,O=ne(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,z):ee,M=ne(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,z):Re,jt=ne(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,er):to,Vt=ne(a,"ADD_URI_SAFE_ATTR")?E(de(Ar),a.ADD_URI_SAFE_ATTR,z):Ar,xr=ne(a,"ADD_DATA_URI_TAGS")?E(de(Cr),a.ADD_DATA_URI_TAGS,z):Cr,Ne=ne(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,z):wr,te=ne(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,z):de({}),pe=ne(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,z):de({}),Oe=ne(a,"USE_PROFILES")?a.USE_PROFILES:!1,ge=a.ALLOW_ARIA_ATTR!==!1,re=a.ALLOW_DATA_ATTR!==!1,ke=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=a.SAFE_FOR_TEMPLATES||!1,lt=a.SAFE_FOR_XML!==!1,Se=a.WHOLE_DOCUMENT||!1,Pe=a.RETURN_DOM||!1,ct=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,Wt=a.FORCE_BODY||!1,Sr=a.SANITIZE_DOM!==!1,Tr=a.SANITIZE_NAMED_PROPS||!1,Ht=a.KEEP_CONTENT!==!1,Ze=a.IN_PLACE||!1,ve=a.ALLOWED_URI_REGEXP||Gn,$e=a.NAMESPACE||le,mt=a.MATHML_TEXT_INTEGRATION_POINTS||mt,ht=a.HTML_INTEGRATION_POINTS||ht,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(re=!1),ct&&(Pe=!0),Oe&&(O=E({},an),M=[],Oe.html===!0&&(E(O,on),E(M,sn)),Oe.svg===!0&&(E(O,rr),E(M,ar),E(M,vt)),Oe.svgFilters===!0&&(E(O,nr),E(M,ar),E(M,vt)),Oe.mathMl===!0&&(E(O,or),E(M,ln),E(M,vt))),a.ADD_TAGS&&(O===ee&&(O=de(O)),E(O,a.ADD_TAGS,z)),a.ADD_ATTR&&(M===Re&&(M=de(M)),E(M,a.ADD_ATTR,z)),a.ADD_URI_SAFE_ATTR&&E(Vt,a.ADD_URI_SAFE_ATTR,z),a.FORBID_CONTENTS&&(Ne===wr&&(Ne=de(Ne)),E(Ne,a.FORBID_CONTENTS,z)),Ht&&(O["#text"]=!0),Se&&E(O,["html","head","body"]),O.table&&(E(O,["tbody"]),delete te.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=a.TRUSTED_TYPES_POLICY,R=b.createHTML("")}else b===void 0&&(b=qa(v,o)),b!==null&&typeof R=="string"&&(R=b.createHTML(""));q&&q(a),De=a}},Ir=E({},[...rr,...nr,...La]),Rr=E({},[...or,...Fa]),io=function(a){let c=_(a);(!c||!c.tagName)&&(c={namespaceURI:$e,tagName:"template"});const f=At(a.tagName),N=At(c.tagName);return jt[a.namespaceURI]?a.namespaceURI===ft?c.namespaceURI===le?f==="svg":c.namespaceURI===dt?f==="svg"&&(N==="annotation-xml"||mt[N]):!!Ir[f]:a.namespaceURI===dt?c.namespaceURI===le?f==="math":c.namespaceURI===ft?f==="math"&&ht[N]:!!Rr[f]:a.namespaceURI===le?c.namespaceURI===ft&&!ht[N]||c.namespaceURI===dt&&!mt[N]?!1:!Rr[f]&&(ro[f]||!Ir[f]):!!(Qe==="application/xhtml+xml"&&jt[a.namespaceURI]):!1},ae=function(a){Je(t.removed,{element:a});try{_(a).removeChild(a)}catch{G(a)}},Te=function(a,c){try{Je(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{Je(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is")if(Pe||ct)try{ae(c)}catch{}else try{c.setAttribute(a,"")}catch{}},kr=function(a){let c=null,f=null;if(Wt)a="<remove></remove>"+a;else{const L=tr(a,/^[\r\n\t ]+/);f=L&&L[0]}Qe==="application/xhtml+xml"&&$e===le&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const N=b?b.createHTML(a):a;if($e===le)try{c=new w().parseFromString(N,Qe)}catch{}if(!c||!c.documentElement){c=x.createDocument($e,"template",null);try{c.documentElement.innerHTML=Gt?R:N}catch{}}const H=c.body||c.documentElement;return a&&f&&H.insertBefore(r.createTextNode(f),H.childNodes[0]||null),$e===le?Ie.call(c,Se?"html":"body")[0]:Se?c.documentElement:H},Pr=function(a){return y.call(a.ownerDocument||a,a,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},qt=function(a){return a instanceof T&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof p)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Or=function(a){return typeof d=="function"&&a instanceof d};function ce(h,a,c){yt(h,f=>{f.call(t,a,c,De)})}const Nr=function(a){let c=null;if(ce(U.beforeSanitizeElements,a,null),qt(a))return ae(a),!0;const f=z(a.nodeName);if(ce(U.uponSanitizeElement,a,{tagName:f,allowedTags:O}),lt&&a.hasChildNodes()&&!Or(a.firstElementChild)&&Y(/<[/\w!]/g,a.innerHTML)&&Y(/<[/\w!]/g,a.textContent)||a.nodeType===nt.progressingInstruction||lt&&a.nodeType===nt.comment&&Y(/<[/\w]/g,a.data))return ae(a),!0;if(!O[f]||te[f]){if(!te[f]&&Dr(f)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(Ht&&!Ne[f]){const N=_(a)||a.parentNode,H=P(a)||a.childNodes;if(H&&N){const L=H.length;for(let X=L-1;X>=0;--X){const ue=$(H[X],!0);ue.__removalCount=(a.__removalCount||0)+1,N.insertBefore(ue,D(a))}}}return ae(a),!0}return a instanceof u&&!io(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&Y(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(j&&a.nodeType===nt.text&&(c=a.textContent,yt([je,Ye,qe],N=>{c=et(c,N," ")}),a.textContent!==c&&(Je(t.removed,{element:a.cloneNode()}),a.textContent=c)),ce(U.afterSanitizeElements,a,null),!1)},$r=function(a,c,f){if(Sr&&(c==="id"||c==="name")&&(f in r||f in ao))return!1;if(!(re&&!pe[c]&&Y(zt,c))){if(!(ge&&Y(Bt,c))){if(!M[c]||pe[c]){if(!(Dr(a)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&Y(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,a))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!Vt[c]){if(!Y(ve,et(f,Xe,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Na(f,"data:")===0&&xr[a])){if(!(ke&&!Y(Ke,et(f,Xe,"")))){if(f)return!1}}}}}}return!0},Dr=function(a){return a!=="annotation-xml"&&tr(a,J)},Mr=function(a){ce(U.beforeSanitizeAttributes,a,null);const{attributes:c}=a;if(!c||qt(a))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let N=c.length;for(;N--;){const H=c[N],{name:L,namespaceURI:X,value:ue}=H,Me=z(L),Kt=ue;let W=L==="value"?Kt:$a(Kt);if(f.attrName=Me,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,ce(U.uponSanitizeAttribute,a,f),W=f.attrValue,Tr&&(Me==="id"||Me==="name")&&(Te(L,a),W=eo+W),lt&&Y(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Te(L,a);continue}if(Me==="attributename"&&tr(W,"href")){Te(L,a);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Te(L,a);continue}if(!Ee&&Y(/\/>/i,W)){Te(L,a);continue}j&&yt([je,Ye,qe],Fr=>{W=et(W,Fr," ")});const Lr=z(a.nodeName);if(!$r(Lr,Me,W)){Te(L,a);continue}if(b&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!X)switch(v.getAttributeType(Lr,Me)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Kt)try{X?a.setAttributeNS(X,L,W):a.setAttribute(L,W),qt(a)?ae(a):nn(t.removed)}catch{Te(L,a)}}ce(U.afterSanitizeAttributes,a,null)},so=function h(a){let c=null;const f=Pr(a);for(ce(U.beforeSanitizeShadowDOM,a,null);c=f.nextNode();)ce(U.uponSanitizeShadowNode,c,null),Nr(c),Mr(c),c.content instanceof i&&h(c.content);ce(U.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(h){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,N=null,H=null;if(Gt=!h,Gt&&(h="<!-->"),typeof h!="string"&&!Or(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw tt("dirty is not a string, aborting")}else throw tt("toString is not a function");if(!t.isSupported)return h;if(Ut||Yt(a),t.removed=[],typeof h=="string"&&(Ze=!1),Ze){if(h.nodeName){const ue=z(h.nodeName);if(!O[ue]||te[ue])throw tt("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=kr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===nt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Pe&&!j&&!Se&&h.indexOf("<")===-1)return b&&ut?b.createHTML(h):h;if(c=kr(h),!c)return Pe?null:ut?R:""}c&&Wt&&ae(c.firstChild);const L=Pr(Ze?h:c);for(;N=L.nextNode();)Nr(N),Mr(N),N.content instanceof i&&so(N.content);if(Ze)return h;if(Pe){if(ct)for(H=he.call(c.ownerDocument);c.firstChild;)H.appendChild(c.firstChild);else H=c;return(M.shadowroot||M.shadowrootmode)&&(H=Ft.call(n,H,!0)),H}let X=Se?c.outerHTML:c.innerHTML;return Se&&O["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&Y(jn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
82
82
|
`+X),j&&yt([je,Ye,qe],ue=>{X=et(X,ue," ")}),b&&ut?b.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(h),Ut=!0},t.clearConfig=function(){De=null,Ut=!1},t.isValidAttribute=function(h,a,c){De||Yt({});const f=z(h),N=z(a);return $r(f,N,c)},t.addHook=function(h,a){typeof a=="function"&&Je(U[h],a)},t.removeHook=function(h,a){if(a!==void 0){const c=Pa(U[h],a);return c===-1?void 0:Oa(U[h],c,1)[0]}return nn(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=un()},t}var Ka=Yn();const Xa=e=>e==null,at=e=>!Xa(e),Za=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,dn=(e,t)=>t?Object.keys(t).map(o=>{const i=Za(e[o],t[o].validations);return i?{field:o,error:i}:null},{}).filter(at):[],qn=e=>{const[t,r]=s.useState(0),[n,o]=s.useState([]),i=s.useCallback(async()=>{try{await _a({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:Ka.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=dn(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?r(m=>m+1):i())},[e.state,e.validationsPerStep,t,i]),d=s.useCallback(()=>{t!==0&&(o([]),r(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=dn(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[n,e.state,t]),{step:t,errors:n,onContinue:l,onBack:d}},Qa=S.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Ge=({errors:e})=>{var t;return s.createElement(Qa,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},Ja=S.input(({theme:e,colorVariant:t,selected:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=me(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"}:{}}}}),ei=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),ti=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),r=o=>{e.onSelect(e.value.includes(o)?e.value.filter(i=>i!==o):[...e.value,o])},n=e.value.includes(t);return s.createElement(ei,{selected:n,children:[s.createElement(Ja,{id:t,type:"checkbox",selected:n,colorVariant:e.colorVariant,onChange:()=>r(t),name:e.name}),s.createElement(se,{children:e.label,linear:!0})]})},ri=S.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
flex-direction: column;
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import l, { useMemo as se, createElement as mo, useContext as ho, useState as Ue, useEffect as We, useRef as yn, useCallback as
|
|
1
|
+
import l, { useMemo as se, createElement as mo, useContext as ho, useState as Ue, useEffect as We, useRef as yn, useCallback as Ce, Fragment as po } from "react";
|
|
2
2
|
import go from "react-dom";
|
|
3
3
|
var vt = {}, Hr;
|
|
4
4
|
function bo() {
|
|
@@ -81,7 +81,7 @@ function xo() {
|
|
|
81
81
|
function oe() {
|
|
82
82
|
return F = Z < xn ? B(qe, Z++) : 0, Ve++, F === 10 && (Ve = 1, Mt++), F;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ae() {
|
|
85
85
|
return B(qe, Z);
|
|
86
86
|
}
|
|
87
87
|
function At() {
|
|
@@ -138,14 +138,14 @@ function er(e) {
|
|
|
138
138
|
return Tn(zt(Z - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
139
139
|
}
|
|
140
140
|
function _o(e) {
|
|
141
|
-
for (; (F =
|
|
141
|
+
for (; (F = Ae()) && F < 33; )
|
|
142
142
|
oe();
|
|
143
143
|
return dr(e) > 2 || dr(F) > 3 ? "" : " ";
|
|
144
144
|
}
|
|
145
145
|
function Io(e, t) {
|
|
146
146
|
for (; --t && oe() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
147
147
|
;
|
|
148
|
-
return zt(e, At() + (t < 6 &&
|
|
148
|
+
return zt(e, At() + (t < 6 && Ae() == 32 && oe() == 32));
|
|
149
149
|
}
|
|
150
150
|
function fr(e) {
|
|
151
151
|
for (; oe(); )
|
|
@@ -171,12 +171,12 @@ function fr(e) {
|
|
|
171
171
|
}
|
|
172
172
|
function Ro(e, t) {
|
|
173
173
|
for (; oe() && e + F !== 57; )
|
|
174
|
-
if (e + F === 84 &&
|
|
174
|
+
if (e + F === 84 && Ae() === 47)
|
|
175
175
|
break;
|
|
176
176
|
return "/*" + zt(t, Z - 1) + "*" + Er(e === 47 ? e : oe());
|
|
177
177
|
}
|
|
178
178
|
function ko(e) {
|
|
179
|
-
for (; !dr(
|
|
179
|
+
for (; !dr(Ae()); )
|
|
180
180
|
oe();
|
|
181
181
|
return zt(e, Z);
|
|
182
182
|
}
|
|
@@ -211,7 +211,7 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
211
211
|
continue;
|
|
212
212
|
// /
|
|
213
213
|
case 47:
|
|
214
|
-
switch (
|
|
214
|
+
switch (Ae()) {
|
|
215
215
|
case 42:
|
|
216
216
|
case 47:
|
|
217
217
|
lt(Po(Ro(oe(), At()), t, r, u), u);
|
|
@@ -280,7 +280,7 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
280
280
|
break;
|
|
281
281
|
// @
|
|
282
282
|
case 64:
|
|
283
|
-
|
|
283
|
+
Ae() === 45 && (y += er(oe())), w = Ae(), p = T = ie(_ = y += ko(At())), O++;
|
|
284
284
|
break;
|
|
285
285
|
// -
|
|
286
286
|
case 45:
|
|
@@ -656,7 +656,7 @@ function Ie(e) {
|
|
|
656
656
|
function Tr(e) {
|
|
657
657
|
return typeof e == "object" && "styledComponentId" in e;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function xe(e, t) {
|
|
660
660
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
661
661
|
}
|
|
662
662
|
function Qr(e, t) {
|
|
@@ -914,17 +914,17 @@ var zn = function(e) {
|
|
|
914
914
|
}
|
|
915
915
|
return n;
|
|
916
916
|
};
|
|
917
|
-
function
|
|
917
|
+
function _e(e, t, r, n) {
|
|
918
918
|
if (zn(e)) return [];
|
|
919
919
|
if (Tr(e)) return [".".concat(e.styledComponentId)];
|
|
920
920
|
if (Ie(e)) {
|
|
921
921
|
if (!Ie(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
922
922
|
var o = e(t);
|
|
923
|
-
return
|
|
923
|
+
return _e(o, t, r, n);
|
|
924
924
|
}
|
|
925
925
|
var i;
|
|
926
926
|
return e instanceof ha ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : dt(e) ? Bn(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ut, e.map(function(s) {
|
|
927
|
-
return
|
|
927
|
+
return _e(s, t, r, n);
|
|
928
928
|
})) : [e.toString()];
|
|
929
929
|
}
|
|
930
930
|
function ga(e) {
|
|
@@ -940,27 +940,27 @@ var ba = kn(Bt), ya = (function() {
|
|
|
940
940
|
}
|
|
941
941
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
942
942
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
943
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o =
|
|
943
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = xe(o, this.staticRulesId);
|
|
944
944
|
else {
|
|
945
|
-
var i = Qr(
|
|
945
|
+
var i = Qr(_e(this.rules, t, r, n)), s = mr(Be(this.baseHash, i) >>> 0);
|
|
946
946
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
947
947
|
var d = n(i, ".".concat(s), void 0, this.componentId);
|
|
948
948
|
r.insertRules(this.componentId, s, d);
|
|
949
949
|
}
|
|
950
|
-
o =
|
|
950
|
+
o = xe(o, s), this.staticRulesId = s;
|
|
951
951
|
}
|
|
952
952
|
else {
|
|
953
953
|
for (var u = Be(this.baseHash, n.hash), m = "", p = 0; p < this.rules.length; p++) {
|
|
954
954
|
var T = this.rules[p];
|
|
955
955
|
if (typeof T == "string") m += T;
|
|
956
956
|
else if (T) {
|
|
957
|
-
var w = Qr(
|
|
957
|
+
var w = Qr(_e(T, t, r, n));
|
|
958
958
|
u = Be(u, w + p), m += w;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
if (m) {
|
|
962
962
|
var v = mr(u >>> 0);
|
|
963
|
-
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, n(m, ".".concat(v), void 0, this.componentId)), o =
|
|
963
|
+
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, n(m, ".".concat(v), void 0, this.componentId)), o = xe(o, v);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
return o;
|
|
@@ -1005,22 +1005,22 @@ function Ea(e, t, r) {
|
|
|
1005
1005
|
return (function(x, y, pe) {
|
|
1006
1006
|
var ke = x.attrs, Wt = x.componentStyle, U = x.defaultProps, Xe = x.foldedComponentIds, Ze = x.styledComponentId, Qe = x.target, Ht = l.useContext(Dt), Vt = tn(), Je = x.shouldForwardProp || Vt.shouldForwardProp, et = zo(y, Ht, U) || je, J = (function(I, te, ge) {
|
|
1007
1007
|
for (var be, re = V(V({}, te), { className: void 0, theme: ge }), Pe = 0; Pe < I.length; Pe += 1) {
|
|
1008
|
-
var
|
|
1009
|
-
for (var j in
|
|
1008
|
+
var Se = Ie(be = I[Pe]) ? be(re) : be;
|
|
1009
|
+
for (var j in Se) re[j] = j === "className" ? xe(re[j], Se[j]) : j === "style" ? V(V({}, re[j]), Se[j]) : Se[j];
|
|
1010
1010
|
}
|
|
1011
|
-
return te.className && (re.className =
|
|
1012
|
-
})(ke, y, et),
|
|
1013
|
-
for (var ee in J) J[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && J.theme === et || (ee === "forwardedAs" ? P.as = J.forwardedAs : Je && !Je(ee,
|
|
1011
|
+
return te.className && (re.className = xe(re.className, te.className)), re;
|
|
1012
|
+
})(ke, y, et), Ee = J.as || Qe, P = {};
|
|
1013
|
+
for (var ee in J) J[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && J.theme === et || (ee === "forwardedAs" ? P.as = J.forwardedAs : Je && !Je(ee, Ee) || (P[ee] = J[ee]));
|
|
1014
1014
|
var L = (function(I, te) {
|
|
1015
1015
|
var ge = tn(), be = I.generateAndInjectStyles(te, ge.styleSheet, ge.stylis);
|
|
1016
1016
|
return be;
|
|
1017
|
-
})(Wt, J), Oe =
|
|
1018
|
-
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), P[rr(
|
|
1017
|
+
})(Wt, J), Oe = xe(Xe, Ze);
|
|
1018
|
+
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), P[rr(Ee) && !In.has(Ee) ? "class" : "className"] = Oe, pe && (P.ref = pe), mo(Ee, P);
|
|
1019
1019
|
})(_, b, R);
|
|
1020
1020
|
}
|
|
1021
1021
|
O.displayName = T;
|
|
1022
1022
|
var _ = l.forwardRef(O);
|
|
1023
|
-
return _.attrs = v, _.componentStyle = D, _.displayName = T, _.shouldForwardProp = A, _.foldedComponentIds = n ?
|
|
1023
|
+
return _.attrs = v, _.componentStyle = D, _.displayName = T, _.shouldForwardProp = A, _.foldedComponentIds = n ? xe(o.foldedComponentIds, o.styledComponentId) : "", _.styledComponentId = w, _.target = n ? o.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
|
|
1024
1024
|
return this._foldedDefaultProps;
|
|
1025
1025
|
}, set: function(b) {
|
|
1026
1026
|
this._foldedDefaultProps = n ? (function(R) {
|
|
@@ -1041,9 +1041,9 @@ var on = function(e) {
|
|
|
1041
1041
|
};
|
|
1042
1042
|
function Sa(e) {
|
|
1043
1043
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1044
|
-
if (Ie(e) || dt(e)) return on(
|
|
1044
|
+
if (Ie(e) || dt(e)) return on(_e(nn(Ut, Ot([e], t, !0))));
|
|
1045
1045
|
var n = e;
|
|
1046
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ?
|
|
1046
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? _e(n) : on(_e(nn(n, t)));
|
|
1047
1047
|
}
|
|
1048
1048
|
function gr(e, t, r) {
|
|
1049
1049
|
if (r === void 0 && (r = je), !t) throw Re(1, t);
|
|
@@ -1063,7 +1063,7 @@ var Un = function(e) {
|
|
|
1063
1063
|
In.forEach(function(e) {
|
|
1064
1064
|
S[e] = Un(e);
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const ve = {
|
|
1067
1067
|
// Main colors usually to be modified by the user
|
|
1068
1068
|
primary: "#422ad5",
|
|
1069
1069
|
// Primary brand color, The main color of your brand
|
|
@@ -1122,9 +1122,9 @@ const _e = {
|
|
|
1122
1122
|
}, Ta = {
|
|
1123
1123
|
selectedVariant: "primary",
|
|
1124
1124
|
getDefaultVariantOrSelected: () => "primary",
|
|
1125
|
-
...
|
|
1125
|
+
...ve
|
|
1126
1126
|
}, Wn = l.createContext({
|
|
1127
|
-
...
|
|
1127
|
+
...ve,
|
|
1128
1128
|
...Ta
|
|
1129
1129
|
}), wa = S.div`
|
|
1130
1130
|
font-family:
|
|
@@ -1179,15 +1179,15 @@ const _e = {
|
|
|
1179
1179
|
--all-fields-size: ${(e) => e.$theme.allFieldsSize};
|
|
1180
1180
|
`, xr = (e) => {
|
|
1181
1181
|
const t = e.selectedVariant ?? "primary";
|
|
1182
|
-
return console.log("
|
|
1183
|
-
theme: e.theme ??
|
|
1182
|
+
return console.log("ThemeProvider_theme", e.theme ?? ve), l.createElement(va, {
|
|
1183
|
+
theme: e.theme ?? ve,
|
|
1184
1184
|
children: l.createElement(wa, {
|
|
1185
|
-
$theme: e.theme ??
|
|
1185
|
+
$theme: e.theme ?? ve,
|
|
1186
1186
|
children: l.createElement(Wn.Provider, {
|
|
1187
1187
|
value: {
|
|
1188
1188
|
selectedVariant: t,
|
|
1189
1189
|
getDefaultVariantOrSelected: () => t,
|
|
1190
|
-
...e.theme ??
|
|
1190
|
+
...e.theme ?? ve
|
|
1191
1191
|
},
|
|
1192
1192
|
children: e.children
|
|
1193
1193
|
})
|
|
@@ -1195,10 +1195,10 @@ const _e = {
|
|
|
1195
1195
|
});
|
|
1196
1196
|
}, Hn = () => l.useContext(Wn), he = (e) => {
|
|
1197
1197
|
const { getDefaultVariantOrSelected: t } = Hn(), r = t();
|
|
1198
|
-
return
|
|
1198
|
+
return ve[e ?? r];
|
|
1199
1199
|
}, Vn = (e) => {
|
|
1200
1200
|
const { getDefaultVariantOrSelected: t } = Hn(), r = t(), n = e ? `${e}Content` : `${r}Content`;
|
|
1201
|
-
return
|
|
1201
|
+
return ve[n];
|
|
1202
1202
|
}, xa = () => {
|
|
1203
1203
|
const e = "http://localhost:4000/external", t = async (r) => {
|
|
1204
1204
|
const n = await r;
|
|
@@ -1671,7 +1671,7 @@ const _e = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
1673
1673
|
[e.form]
|
|
1674
|
-
), [r, n] = Ue(t.state), o =
|
|
1674
|
+
), [r, n] = Ue(t.state), o = Ce(
|
|
1675
1675
|
(s, d) => {
|
|
1676
1676
|
s !== null && n((u) => ({
|
|
1677
1677
|
...u,
|
|
@@ -1679,7 +1679,7 @@ const _e = {
|
|
|
1679
1679
|
}));
|
|
1680
1680
|
},
|
|
1681
1681
|
[n]
|
|
1682
|
-
), i =
|
|
1682
|
+
), i = Ce(
|
|
1683
1683
|
(s) => s ? r[s] : null,
|
|
1684
1684
|
[r]
|
|
1685
1685
|
);
|
|
@@ -1886,7 +1886,7 @@ function Qn() {
|
|
|
1886
1886
|
CUSTOM_ELEMENT: J
|
|
1887
1887
|
} = mn;
|
|
1888
1888
|
let {
|
|
1889
|
-
IS_ALLOWED_URI:
|
|
1889
|
+
IS_ALLOWED_URI: Ee
|
|
1890
1890
|
} = mn, P = null;
|
|
1891
1891
|
const ee = E({}, [...cn, ...ir, ...sr, ...lr, ...un]);
|
|
1892
1892
|
let L = null;
|
|
@@ -1910,7 +1910,7 @@ function Qn() {
|
|
|
1910
1910
|
enumerable: !0,
|
|
1911
1911
|
value: !1
|
|
1912
1912
|
}
|
|
1913
|
-
})), te = null, ge = null, be = !0, re = !0, Pe = !1,
|
|
1913
|
+
})), te = null, ge = null, be = !0, re = !0, Pe = !1, Se = !0, j = !1, ft = !0, Te = !1, Gt = !1, jt = !1, Ne = !1, mt = !1, ht = !1, Cr = !0, Ar = !1;
|
|
1914
1914
|
const oo = "user-content-";
|
|
1915
1915
|
let Yt = !0, tt = !1, $e = {}, De = null;
|
|
1916
1916
|
const _r = 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"]);
|
|
@@ -1931,7 +1931,7 @@ function Qn() {
|
|
|
1931
1931
|
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1932
1932
|
if (!(Me && Me === a)) {
|
|
1933
1933
|
if ((!a || typeof a != "object") && (a = {}), a = fe(a), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1934
|
-
so.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? lo : a.PARSER_MEDIA_TYPE, z = rt === "application/xhtml+xml" ? or : kt, P = ne(a, "ALLOWED_TAGS") ? E({}, a.ALLOWED_TAGS, z) : ee, L = ne(a, "ALLOWED_ATTR") ? E({}, a.ALLOWED_ATTR, z) : Oe, Xt = ne(a, "ALLOWED_NAMESPACES") ? E({}, a.ALLOWED_NAMESPACES, or) : ao, qt = ne(a, "ADD_URI_SAFE_ATTR") ? E(fe(kr), a.ADD_URI_SAFE_ATTR, z) : kr, Ir = ne(a, "ADD_DATA_URI_TAGS") ? E(fe(Rr), a.ADD_DATA_URI_TAGS, z) : Rr, De = ne(a, "FORBID_CONTENTS") ? E({}, a.FORBID_CONTENTS, z) : _r, te = ne(a, "FORBID_TAGS") ? E({}, a.FORBID_TAGS, z) : fe({}), ge = ne(a, "FORBID_ATTR") ? E({}, a.FORBID_ATTR, z) : fe({}), $e = ne(a, "USE_PROFILES") ? a.USE_PROFILES : !1, be = a.ALLOW_ARIA_ATTR !== !1, re = a.ALLOW_DATA_ATTR !== !1, Pe = a.ALLOW_UNKNOWN_PROTOCOLS || !1,
|
|
1934
|
+
so.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? lo : a.PARSER_MEDIA_TYPE, z = rt === "application/xhtml+xml" ? or : kt, P = ne(a, "ALLOWED_TAGS") ? E({}, a.ALLOWED_TAGS, z) : ee, L = ne(a, "ALLOWED_ATTR") ? E({}, a.ALLOWED_ATTR, z) : Oe, Xt = ne(a, "ALLOWED_NAMESPACES") ? E({}, a.ALLOWED_NAMESPACES, or) : ao, qt = ne(a, "ADD_URI_SAFE_ATTR") ? E(fe(kr), a.ADD_URI_SAFE_ATTR, z) : kr, Ir = ne(a, "ADD_DATA_URI_TAGS") ? E(fe(Rr), a.ADD_DATA_URI_TAGS, z) : Rr, De = ne(a, "FORBID_CONTENTS") ? E({}, a.FORBID_CONTENTS, z) : _r, te = ne(a, "FORBID_TAGS") ? E({}, a.FORBID_TAGS, z) : fe({}), ge = ne(a, "FORBID_ATTR") ? E({}, a.FORBID_ATTR, z) : fe({}), $e = ne(a, "USE_PROFILES") ? a.USE_PROFILES : !1, be = a.ALLOW_ARIA_ATTR !== !1, re = a.ALLOW_DATA_ATTR !== !1, Pe = a.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = a.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = a.SAFE_FOR_TEMPLATES || !1, ft = a.SAFE_FOR_XML !== !1, Te = a.WHOLE_DOCUMENT || !1, Ne = a.RETURN_DOM || !1, mt = a.RETURN_DOM_FRAGMENT || !1, ht = a.RETURN_TRUSTED_TYPE || !1, jt = a.FORCE_BODY || !1, Cr = a.SANITIZE_DOM !== !1, Ar = a.SANITIZE_NAMED_PROPS || !1, Yt = a.KEEP_CONTENT !== !1, tt = a.IN_PLACE || !1, Ee = a.ALLOWED_URI_REGEXP || Xn, Le = a.NAMESPACE || ce, bt = a.MATHML_TEXT_INTEGRATION_POINTS || bt, yt = a.HTML_INTEGRATION_POINTS || yt, I = a.CUSTOM_ELEMENT_HANDLING || {}, a.CUSTOM_ELEMENT_HANDLING && Or(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = a.CUSTOM_ELEMENT_HANDLING.tagNameCheck), a.CUSTOM_ELEMENT_HANDLING && Or(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), a.CUSTOM_ELEMENT_HANDLING && typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (re = !1), mt && (Ne = !0), $e && (P = E({}, un), L = [], $e.html === !0 && (E(P, cn), E(L, dn)), $e.svg === !0 && (E(P, ir), E(L, cr), E(L, wt)), $e.svgFilters === !0 && (E(P, sr), E(L, cr), E(L, wt)), $e.mathMl === !0 && (E(P, lr), E(L, fn), E(L, wt))), a.ADD_TAGS && (P === ee && (P = fe(P)), E(P, a.ADD_TAGS, z)), a.ADD_ATTR && (L === Oe && (L = fe(L)), E(L, a.ADD_ATTR, z)), a.ADD_URI_SAFE_ATTR && E(qt, a.ADD_URI_SAFE_ATTR, z), a.FORBID_CONTENTS && (De === _r && (De = fe(De)), E(De, a.FORBID_CONTENTS, z)), Yt && (P["#text"] = !0), Te && E(P, ["html", "head", "body"]), P.table && (E(P, ["tbody"]), delete te.tbody), a.TRUSTED_TYPES_POLICY) {
|
|
1935
1935
|
if (typeof a.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1936
1936
|
throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1937
1937
|
if (typeof a.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1958,7 +1958,7 @@ function Qn() {
|
|
|
1958
1958
|
} catch {
|
|
1959
1959
|
G(a);
|
|
1960
1960
|
}
|
|
1961
|
-
},
|
|
1961
|
+
}, we = function(a, c) {
|
|
1962
1962
|
try {
|
|
1963
1963
|
nt(t.removed, {
|
|
1964
1964
|
attribute: c.getAttributeNode(a),
|
|
@@ -2004,7 +2004,7 @@ function Qn() {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
2006
|
const H = c.body || c.documentElement;
|
|
2007
|
-
return a && f && H.insertBefore(r.createTextNode(f), H.childNodes[0] || null), Le === ce ? ke.call(c,
|
|
2007
|
+
return a && f && H.insertBefore(r.createTextNode(f), H.childNodes[0] || null), Le === ce ? ke.call(c, Te ? "html" : "body")[0] : Te ? c.documentElement : H;
|
|
2008
2008
|
}, Dr = function(a) {
|
|
2009
2009
|
return y.call(
|
|
2010
2010
|
a.ownerDocument || a,
|
|
@@ -2068,7 +2068,7 @@ function Qn() {
|
|
|
2068
2068
|
c === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, f) || I.tagNameCheck instanceof Function && I.tagNameCheck(f)))
|
|
2069
2069
|
) return !1;
|
|
2070
2070
|
} else if (!qt[c]) {
|
|
2071
|
-
if (!Y(
|
|
2071
|
+
if (!Y(Ee, ot(f, et, ""))) {
|
|
2072
2072
|
if (!((c === "src" || c === "xlink:href" || c === "href") && a !== "script" && Ba(f, "data:") === 0 && Ir[a])) {
|
|
2073
2073
|
if (!(Pe && !Y(Je, ot(f, et, "")))) {
|
|
2074
2074
|
if (f)
|
|
@@ -2104,22 +2104,22 @@ function Qn() {
|
|
|
2104
2104
|
value: de
|
|
2105
2105
|
} = H, Fe = z(M), Jt = de;
|
|
2106
2106
|
let W = M === "value" ? Jt : Ua(Jt);
|
|
2107
|
-
if (f.attrName = Fe, f.attrValue = W, f.keepAttr = !0, f.forceKeepAttr = void 0, ue(U.uponSanitizeAttribute, a, f), W = f.attrValue, Ar && (Fe === "id" || Fe === "name") && (
|
|
2108
|
-
|
|
2107
|
+
if (f.attrName = Fe, f.attrValue = W, f.keepAttr = !0, f.forceKeepAttr = void 0, ue(U.uponSanitizeAttribute, a, f), W = f.attrValue, Ar && (Fe === "id" || Fe === "name") && (we(M, a), W = oo + W), ft && Y(/((--!?|])>)|<\/(style|title|textarea)/i, W)) {
|
|
2108
|
+
we(M, a);
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
2111
|
if (Fe === "attributename" && ar(W, "href")) {
|
|
2112
|
-
|
|
2112
|
+
we(M, a);
|
|
2113
2113
|
continue;
|
|
2114
2114
|
}
|
|
2115
2115
|
if (f.forceKeepAttr)
|
|
2116
2116
|
continue;
|
|
2117
2117
|
if (!f.keepAttr) {
|
|
2118
|
-
|
|
2118
|
+
we(M, a);
|
|
2119
2119
|
continue;
|
|
2120
2120
|
}
|
|
2121
|
-
if (!
|
|
2122
|
-
|
|
2121
|
+
if (!Se && Y(/\/>/i, W)) {
|
|
2122
|
+
we(M, a);
|
|
2123
2123
|
continue;
|
|
2124
2124
|
}
|
|
2125
2125
|
j && Tt([Xe, Ze, Qe], (Wr) => {
|
|
@@ -2127,7 +2127,7 @@ function Qn() {
|
|
|
2127
2127
|
});
|
|
2128
2128
|
const Ur = z(a.nodeName);
|
|
2129
2129
|
if (!Fr(Ur, Fe, W)) {
|
|
2130
|
-
|
|
2130
|
+
we(M, a);
|
|
2131
2131
|
continue;
|
|
2132
2132
|
}
|
|
2133
2133
|
if (b && typeof v == "object" && typeof v.getAttributeType == "function" && !X)
|
|
@@ -2145,7 +2145,7 @@ function Qn() {
|
|
|
2145
2145
|
try {
|
|
2146
2146
|
X ? a.setAttributeNS(X, M, W) : a.setAttribute(M, W), Qt(a) ? ae(a) : ln(t.removed);
|
|
2147
2147
|
} catch {
|
|
2148
|
-
|
|
2148
|
+
we(M, a);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
ue(U.afterSanitizeAttributes, a, null);
|
|
@@ -2175,7 +2175,7 @@ function Qn() {
|
|
|
2175
2175
|
} else if (h instanceof d)
|
|
2176
2176
|
c = $r("<!---->"), f = c.ownerDocument.importNode(h, !0), f.nodeType === st.element && f.nodeName === "BODY" || f.nodeName === "HTML" ? c = f : c.appendChild(f);
|
|
2177
2177
|
else {
|
|
2178
|
-
if (!Ne && !j && !
|
|
2178
|
+
if (!Ne && !j && !Te && // eslint-disable-next-line unicorn/prefer-includes
|
|
2179
2179
|
h.indexOf("<") === -1)
|
|
2180
2180
|
return b && ht ? b.createHTML(h) : h;
|
|
2181
2181
|
if (c = $r(h), !c)
|
|
@@ -2195,8 +2195,8 @@ function Qn() {
|
|
|
2195
2195
|
H = c;
|
|
2196
2196
|
return (L.shadowroot || L.shadowrootmode) && (H = Wt.call(n, H, !0)), H;
|
|
2197
2197
|
}
|
|
2198
|
-
let X =
|
|
2199
|
-
return
|
|
2198
|
+
let X = Te ? c.outerHTML : c.innerHTML;
|
|
2199
|
+
return Te && P["!doctype"] && c.ownerDocument && c.ownerDocument.doctype && c.ownerDocument.doctype.name && Y(Zn, c.ownerDocument.doctype.name) && (X = "<!DOCTYPE " + c.ownerDocument.doctype.name + `>
|
|
2200
2200
|
` + X), j && Tt([Xe, Ze, Qe], (de) => {
|
|
2201
2201
|
X = ot(X, de, " ");
|
|
2202
2202
|
}), b && ht ? b.createHTML(X) : X;
|
|
@@ -2234,7 +2234,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2234
2234
|
},
|
|
2235
2235
|
{}
|
|
2236
2236
|
).filter(ct) : [], Jn = (e) => {
|
|
2237
|
-
const [t, r] = Ue(0), [n, o] = Ue([]), i =
|
|
2237
|
+
const [t, r] = Ue(0), [n, o] = Ue([]), i = Ce(async () => {
|
|
2238
2238
|
try {
|
|
2239
2239
|
await $a({
|
|
2240
2240
|
feedbackFormId: e.formId,
|
|
@@ -2267,10 +2267,10 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2267
2267
|
} catch (u) {
|
|
2268
2268
|
console.log(u);
|
|
2269
2269
|
}
|
|
2270
|
-
}, [e.state, e.formType]), s =
|
|
2270
|
+
}, [e.state, e.formType]), s = Ce(() => {
|
|
2271
2271
|
const u = pn(e.state, e.validationsPerStep[t]);
|
|
2272
2272
|
o(u), u.length || (t < e.stepsCount - 1 ? r((m) => m + 1) : i());
|
|
2273
|
-
}, [e.state, e.validationsPerStep, t, i]), d =
|
|
2273
|
+
}, [e.state, e.validationsPerStep, t, i]), d = Ce(() => {
|
|
2274
2274
|
t !== 0 && (o([]), r((u) => u - 1));
|
|
2275
2275
|
}, [t]);
|
|
2276
2276
|
return We(() => {
|
|
@@ -3014,12 +3014,12 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3014
3014
|
border: 0,
|
|
3015
3015
|
outline: 0
|
|
3016
3016
|
})), Gi = (e) => {
|
|
3017
|
-
const t = yn(null), r = Math.random().toString(36).substring(2, 16), n =
|
|
3017
|
+
const t = yn(null), r = Math.random().toString(36).substring(2, 16), n = Ce(
|
|
3018
3018
|
(i) => {
|
|
3019
3019
|
i.target === t.current && e.onClose(), i.preventDefault(), i.stopPropagation();
|
|
3020
3020
|
},
|
|
3021
3021
|
[e]
|
|
3022
|
-
), o =
|
|
3022
|
+
), o = Ce((i) => {
|
|
3023
3023
|
i.key === "Escape" && e.onClose(), i.preventDefault();
|
|
3024
3024
|
}, []);
|
|
3025
3025
|
return We(() => {
|
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([]),De=Object.freeze({});function Co(e,t,n){return n===void 0&&(n=De),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,Me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Bn=function(e){return Me(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($e,"][").concat(Mn,'="').concat(vt,'"]'),Wo=new RegExp("^".concat($e,'\\.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($e)!==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($e,"]")));return u[u.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute($e,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=De),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($e,".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=De,a=o.options,l=a===void 0?De: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),Me(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=Me(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(Me(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=Me(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=Me(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)||De,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 Ae=Ee(be=I[Be])?be(oe):be;for(var K in Ae)oe[K]=K==="className"?Se(oe[K],Ae[K]):K==="style"?H(H({},oe[K]),Ae[K]):Ae[K]}return re.className&&(oe.className=Se(oe.className,re.className)),oe})(Re,y,at),Ce=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,Ce)||(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(Ce)&&!Ln.has(Ce)?"class":"className"]=ze,pe&&(N.ref=pe),s.createElement(Ce,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=De),!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 xe={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",...xe},lr=s.createContext({...xe,...li}),ci=S.div`
|
|
1
|
+
var SiteUtilsFeedback=(function(ve,s,to){"use strict";var ct={},wn;function no(){if(wn)return ct;wn=1;var e=to;return ct.createRoot=e.createRoot,ct.hydrateRoot=e.hydrateRoot,ct}var ro=no(),H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function ut(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var k="-ms-",Ye="-moz-",C="-webkit-",xn="comm",dt="rule",zt="decl",oo="@import",Cn="@keyframes",io="@layer",An=Math.abs,Bt=String.fromCharCode,Ut=Object.assign;function ao(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 _n(e){return e.trim()}function le(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,n){return e.replace(t,n)}function ft(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function ke(e,t,n){return e.slice(t,n)}function ie(e){return e.length}function In(e){return e.length}function qe(e,t){return t.push(e),e}function so(e,t){return e.map(t).join("")}function kn(e,t){return e.filter(function(n){return!le(n,t)})}var mt=1,Pe=1,Pn=0,Z=0,L=0,Oe="";function ht(e,t,n,r,o,a,l,d){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:mt,column:Pe,length:l,return:"",siblings:d}}function he(e,t){return Ut(ht("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=he(e.root,{children:[e]});qe(e,e.siblings)}function lo(){return L}function co(){return L=Z>0?z(Oe,--Z):0,Pe--,L===10&&(Pe=1,mt--),L}function J(){return L=Z<Pn?z(Oe,Z++):0,Pe++,L===10&&(Pe=1,mt++),L}function Ee(){return z(Oe,Z)}function pt(){return Z}function gt(e,t){return ke(Oe,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 uo(e){return mt=Pe=1,Pn=ie(Oe=e),Z=0,[]}function fo(e){return Oe="",e}function Ht(e){return _n(gt(Z-1,Vt(e===91?e+2:e===40?e+1:e)))}function mo(e){for(;(L=Ee())&&L<33;)J();return Wt(e)>2||Wt(L)>3?"":" "}function ho(e,t){for(;--t&&J()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return gt(e,pt()+(t<6&&Ee()==32&&J()==32))}function Vt(e){for(;J();)switch(L){case e:return Z;case 34:case 39:e!==34&&e!==39&&Vt(L);break;case 40:e===41&&Vt(e);break;case 92:J();break}return Z}function po(e,t){for(;J()&&e+L!==57;)if(e+L===84&&Ee()===47)break;return"/*"+gt(t,Z-1)+"*"+Bt(e===47?e:J())}function go(e){for(;!Wt(Ee());)J();return gt(e,Z)}function bo(e){return fo(bt("",null,null,null,[""],e=uo(e),0,[0],e))}function bt(e,t,n,r,o,a,l,d,u){for(var m=0,p=0,T=l,w=0,E=0,A=0,D=1,q=1,M=1,O=0,_="",b=o,P=a,x=r,y=_;q;)switch(A=O,O=J()){case 40:if(A!=108&&z(y,T-1)==58){ft(y+=g(Ht(O),"&","&\f"),"&\f",An(m?d[m-1]:0))!=-1&&(M=-1);break}case 34:case 39:case 91:y+=Ht(O);break;case 9:case 10:case 13:case 32:y+=mo(A);break;case 92:y+=ho(pt()-1,7);continue;case 47:switch(Ee()){case 42:case 47:qe(yo(po(J(),pt()),t,n,u),u);break;default:y+="/"}break;case 123*D:d[m++]=ie(y)*M;case 125*D:case 59:case 0:switch(O){case 0:case 125:q=0;case 59+p:M==-1&&(y=g(y,/\f/g,"")),E>0&&ie(y)-T&&qe(E>32?Nn(y+";",r,n,T-1,u):Nn(g(y," ","")+";",r,n,T-2,u),u);break;case 59:y+=";";default:if(qe(x=On(y,t,n,m,p,o,d,_,b=[],P=[],T,a),a),O===123)if(p===0)bt(y,t,x,x,b,a,T,d,P);else switch(w===99&&z(y,3)===110?100:w){case 100:case 108:case 109:case 115:bt(e,x,x,r&&qe(On(e,x,x,0,0,o,d,_,o,b=[],T,P),P),o,P,T,d,r?b:P);break;default:bt(y,x,x,x,[""],P,0,d,P)}}m=p=E=0,D=M=1,_=y="",T=l;break;case 58:T=1+ie(y),E=A;default:if(D<1){if(O==123)--D;else if(O==125&&D++==0&&co()==125)continue}switch(y+=Bt(O),O*D){case 38:M=p>0?1:(y+="\f",-1);break;case 44:d[m++]=(ie(y)-1)*M,M=1;break;case 64:Ee()===45&&(y+=Ht(J())),w=Ee(),p=T=ie(_=y+=go(pt())),O++;break;case 45:A===45&&ie(y)==2&&(D=0)}}return a}function On(e,t,n,r,o,a,l,d,u,m,p,T){for(var w=o-1,E=o===0?a:[""],A=In(E),D=0,q=0,M=0;D<r;++D)for(var O=0,_=ke(e,w+1,w=An(q=l[D])),b=e;O<A;++O)(b=_n(q>0?E[O]+" "+_:g(_,/&\f/g,E[O])))&&(u[M++]=b);return ht(e,t,n,o===0?dt:d,u,m,p,T)}function yo(e,t,n,r){return ht(e,t,n,xn,Bt(lo()),ke(e,2,-2),0,r)}function Nn(e,t,n,r,o){return ht(e,t,n,zt,ke(e,0,r),ke(e,r+1,-1),r,o)}function $n(e,t,n){switch(ao(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 Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+Ye+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,"")+(le(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(!le(e,/flex-|baseline/))return k+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,le(r.props,/grid-\w+-end/)})?~ft(e+(n=n[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~ft(n,"span",0)?le(n,/\d+/):+le(n,/\d+/)-+le(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return le(r.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(ie(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"+Ye+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?$n(g(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,l,d,u,m){return k+o+":"+a+m+(l?k+o+"-span:"+(d?u:+u-+a)+m:"")+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 yt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function vo(e,t,n,r){switch(e.type){case io:if(e.children.length)break;case oo:case zt:return e.return=e.return||e.value;case xn:return"";case Cn:return e.return=e.value+"{"+yt(e.children,r)+"}";case dt:if(!ie(e.value=e.props.join(",")))return""}return ie(n=yt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Eo(e){var t=In(e);return function(n,r,o,a){for(var l="",d=0;d<t;d++)l+=e[d](n,r,o,a)||"";return l}}function So(e){return function(t){t.root||(t=t.return)&&e(t)}}function To(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zt:e.return=$n(e.value,e.length,n);return;case Cn:return yt([he(e,{value:g(e.value,"@","@"+C)})],r);case dt:if(e.length)return so(n=e.props,function(o){switch(le(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(he(e,{props:[g(o,/:(read-\w+)/,":"+Ye+"$1")]})),Ne(he(e,{props:[o]})),Ut(e,{props:kn(n,r)});break;case"::placeholder":Ne(he(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Ne(he(e,{props:[g(o,/:(plac\w+)/,":"+Ye+"$1")]})),Ne(he(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Ne(he(e,{props:[o]})),Ut(e,{props:kn(n,r)});break}return""})}}var wo={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},$e=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dn="active",Mn="data-styled-version",vt="6.1.19",Gt=`/*!sc*/
|
|
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([]),De=Object.freeze({});function Co(e,t,n){return n===void 0&&(n=De),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,Me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Bn=function(e){return Me(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 Se(e){return typeof e=="function"}function Kt(e){return typeof e=="object"&&"styledComponentId"in e}function Te(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 we(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 we(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($e,"][").concat(Mn,'="').concat(vt,'"]'),Wo=new RegExp("^".concat($e,'\\.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($e)!==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($e,"]")));return u[u.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute($e,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 we(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=De),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($e,".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=De,a=o.options,l=a===void 0?De: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||we(15),Me(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 we(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||Se(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 xe(e,t,n,r){if(rr(e))return[];if(Kt(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,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 xe(l,t,n,r)})):[e.toString()]}function ni(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Se(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=Me(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=Te(o,this.staticRulesId);else{var a=qn(xe(this.rules,t,n,r)),l=jt(Me(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=Te(o,l),this.staticRulesId=l}else{for(var u=Me(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(xe(T,t,n,r));u=Me(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=Te(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 we(14);if(Se(r)){var a=r(o);return a}if(Array.isArray(r)||typeof r!="object")throw we(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,ge){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)||De,te=(function(I,re,be){for(var ye,oe=H(H({},re),{className:void 0,theme:be}),Be=0;Be<I.length;Be+=1){var Ae=Se(ye=I[Be])?ye(oe):ye;for(var K in Ae)oe[K]=K==="className"?Te(oe[K],Ae[K]):K==="style"?H(H({},oe[K]),Ae[K]):Ae[K]}return re.className&&(oe.className=Te(oe.className,re.className)),oe})(Re,y,at),Ce=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,Ce)||(N[ne]=te[ne]));var F=(function(I,re){var be=tr(),ye=I.generateAndInjectStyles(re,be.styleSheet,be.stylis);return ye})(dn,te),ze=Te(nt,rt);return F&&(ze+=" "+F),te.className&&(ze+=" "+te.className),N[qt(Ce)&&!Ln.has(Ce)?"class":"className"]=ze,ge&&(N.ref=ge),s.createElement(Ce,N)})(_,b,P)}O.displayName=T;var _=s.forwardRef(O);return _.attrs=E,_.componentStyle=M,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=r?Te(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 ge=0,Re=x;ge<Re.length;ge++)Xt(P,Re[ge],!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(Se(e)||Ke(e))return ar(xe(ir(St,ut([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?xe(r):ar(xe(ir(r,t)))}function en(e,t,n){if(n===void 0&&(n=De),!t)throw we(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 pe={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",...pe},lr=s.createContext({...pe,...li}),ci=S.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
|
-
`,tn=e=>{const t=e.selectedVariant??"primary";return console.log("
|
|
53
|
+
`,tn=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??pe),s.createElement(ii,{theme:e.theme??pe,children:s.createElement(ci,{$theme:e.theme??pe,children:s.createElement(lr.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??pe},children:e.children})})})},cr=()=>s.useContext(lr),ce=e=>{const{getDefaultVariantOrSelected:t}=cr(),n=t();return pe[e??n]},ur=e=>{const{getDefaultVariantOrSelected:t}=cr(),n=t(),r=e?`${e}Content`:`${n}Content`;return pe[r]},ui=()=>{const e="http://localhost:4000/external",t=async n=>{const r=await n;if(!r.ok)switch(r.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await n).json()};return{post:async(n,r,o)=>{var a;try{return t(fetch(`${e}${n}`,{method:"POST",body:JSON.stringify(r),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(n,r)=>{var o;try{return t(fetch(`${e}${n}`,{method:"GET",signal:((o=r==null?void 0:r.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(r==null?void 0:r.headers)??{}}}))}catch(a){throw console.log(a),a}}}},dr={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)?"}}]}]},di=(e,t)=>new Promise(n=>{n({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:dr},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:dr}})}),fi=e=>{const[t,n]=s.useState(),[r,o]=s.useState(!0),[a,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(n).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:r,error:a}},Le=S.button(e=>{const t=ce(),n=ur(),o=!e.$outlined?t:"#fff",a=e.$outlined?t:n,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"}}}),mi=S.div`
|
|
54
54
|
visibility: ${e=>e.$isVisible&&e.$height?"visible":"hidden"};
|
|
55
55
|
opacity: ${e=>e.$isVisible?1:0};
|
|
56
56
|
display: flex;
|
|
@@ -78,7 +78,7 @@ 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:Ce}=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,Ae=!0,K=!1,Nt=!0,_e=!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,Ae=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,Nt=i.SAFE_FOR_XML!==!1,_e=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,Ce=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),_e&&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)}},Ie=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,_e?"html":"body")[0]:_e?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(Ce,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")&&(Ie(R,i),W=Ma+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Ie(R,i);continue}if(je==="attributename"&&an(W,"href")){Ie(R,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Ie(R,i);continue}if(!Ae&&j(/\/>/i,W)){Ie(R,i);continue}K&&It([nt,rt,ot],eo=>{W=Ze(W,eo," ")});const Jr=B(i.nodeName);if(!Xr(Jr,je,W)){Ie(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{Ie(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&&!_e&&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=_e?c.outerHTML:c.innerHTML;return _e&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xr,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
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:ge,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:Ce}=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,be=null,ye=!0,oe=!0,Be=!1,Ae=!0,K=!1,Nt=!0,_e=!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({}),be=ee(i,"FORBID_ATTR")?v({},i.FORBID_ATTR,B):ue({}),We=ee(i,"USE_PROFILES")?i.USE_PROFILES:!1,ye=i.ALLOW_ARIA_ATTR!==!1,oe=i.ALLOW_DATA_ATTR!==!1,Be=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,Nt=i.SAFE_FOR_XML!==!1,_e=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,Ce=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),_e&&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)}},Ie=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,_e?"html":"body")[0]:_e?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&&!be[c]&&j(fn,c))){if(!(ye&&j(mn,c))){if(!F[c]||be[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(Ce,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")&&(Ie(R,i),W=Ma+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Ie(R,i);continue}if(je==="attributename"&&an(W,"href")){Ie(R,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Ie(R,i);continue}if(!Ae&&j(/\/>/i,W)){Ie(R,i);continue}K&&It([nt,rt,ot],eo=>{W=Ze(W,eo," ")});const Jr=B(i.nodeName);if(!Xr(Jr,je,W)){Ie(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{Ie(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&&!_e&&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=ge.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=_e?c.outerHTML:c.innerHTML;return _e&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xr,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
82
82
|
`+X),K&&It([nt,rt,ot],me=>{X=Ze(X,me," ")}),b&&Dt?b.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En(h),hn=!0},t.clearConfig=function(){Ge=null,hn=!1},t.isValidAttribute=function(h,i,c){Ge||En({});const f=B(h),$=B(i);return Xr(f,$,c)},t.addHook=function(h,i){typeof i=="function"&&Xe(U[h],i)},t.removeHook=function(h,i){if(i!==void 0){const c=xi(U[h],i);return c===-1?void 0:Ci(U[h],c,1)[0]}return yr(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=Ar()},t}var Wi=_r();const Hi=e=>e==null,tt=e=>!Hi(e),Vi=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,Ir=(e,t)=>t?Object.keys(t).map(o=>{const a=Vi(e[o],t[o].validations);return a?{field:o,error:a}:null},{}).filter(tt):[],kr=e=>{const[t,n]=s.useState(0),[r,o]=s.useState([]),a=s.useCallback(async()=>{try{await Ei({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:Wi.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=Ir(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?n(m=>m+1):a())},[e.state,e.validationsPerStep,t,a]),d=s.useCallback(()=>{t!==0&&(o([]),n(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=Ir(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[r,e.state,t]),{step:t,errors:r,onContinue:l,onBack:d}},Gi=S.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Fe=({errors:e})=>{var t;return s.createElement(Gi,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},ji=S.input(({theme:e,colorVariant:t,selected:n})=>{const r=`calc(${e.sizeSelector} * 6);`,o=ce(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:r,border:`1px solid ${o}`,height:r,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",...n?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),Yi=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),qi=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),n=o=>{e.onSelect(e.value.includes(o)?e.value.filter(a=>a!==o):[...e.value,o])},r=e.value.includes(t);return s.createElement(Yi,{selected:r,children:[s.createElement(ji,{id:t,type:"checkbox",selected:r,colorVariant:e.colorVariant,onChange:()=>n(t),name:e.name}),s.createElement(ae,{children:e.label,linear:!0})]})},Ki=S.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
flex-direction: column;
|
|
@@ -145,4 +145,4 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
|
|
|
145
145
|
&:active {
|
|
146
146
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
147
147
|
}
|
|
148
|
-
`,Dr=e=>{const[t,n]=s.useState(!1),[r,o]=s.useState(null),a=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),l=m=>{o(p=>!p||p<m?m:p)},d=hr({form:e.popupForm.form,formId:e.formId,domainId:e.domainId}),u=kr({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(Pa,{children:e.popupForm.config.buttonText,onClick:()=>n(!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(Ia,{onClose:()=>n(!1),heading:e.popupForm.config.formTitle,isOpen:t,footer:s.createElement(ka,{children:[s.createElement(Le,{children:"Back",disabled:u.step===0,onClick:u.onBack}),s.createElement(mr,{steps:d.steps,currentStepIndex:u.step}),s.createElement(Le,{children:"Continue",onClick:u.onContinue})]}),children:d.steps.map((m,p)=>{var T;return s.createElement(fr,{key:p+`${(T=m.meta)==null?void 0:T.name}`,height:r,onSetMaxHeight:l,isVisible:p===u.step,children:m.fields.map(w=>s.createElement(Nr,{type:w.type,fieldProps:w,formClientId:a,dataField:w.dataField,onContinue:u.onContinue,errors:u.errors.filter(E=>E.field===w.dataField),getStateByKey:d.getStateByKey,setStateByKey:d.setStateByKey}))})})})]})},Mr=e=>{e.locale;let{data:t,loading:n,error:r}=fi(()=>di({formId:e.formId}));const o=s.useMemo(()=>t!=null&&t.inlineForm?s.createElement($r,{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(Dr,{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&&n?"Loading...":!t||r?r?r.message:"Unknown error":s.createElement(tn,{theme:t.attributes.theme,selectedVariant:t.attributes.variant,children:[o,a]})},Oa=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=ro.createRoot(e.container||document);typeof window<"u"&&t.render(s.createElement(Mr,{formId:e.formId}))},Lr=e=>e?e.formId?typeof window>"u"?null:s.createElement(Mr,{formId:e.formId}):(console.error("formId must be provided. Feedback module deactivated"),null):(console.error("options must be provided. Feedback module deactivated"),null),Na=e=>Lr(e),$a=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement($r,e)]}),Da=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(Dr,e)]});return
|
|
148
|
+
`,Dr=e=>{const[t,n]=s.useState(!1),[r,o]=s.useState(null),a=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),l=m=>{o(p=>!p||p<m?m:p)},d=hr({form:e.popupForm.form,formId:e.formId,domainId:e.domainId}),u=kr({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(Pa,{children:e.popupForm.config.buttonText,onClick:()=>n(!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(Ia,{onClose:()=>n(!1),heading:e.popupForm.config.formTitle,isOpen:t,footer:s.createElement(ka,{children:[s.createElement(Le,{children:"Back",disabled:u.step===0,onClick:u.onBack}),s.createElement(mr,{steps:d.steps,currentStepIndex:u.step}),s.createElement(Le,{children:"Continue",onClick:u.onContinue})]}),children:d.steps.map((m,p)=>{var T;return s.createElement(fr,{key:p+`${(T=m.meta)==null?void 0:T.name}`,height:r,onSetMaxHeight:l,isVisible:p===u.step,children:m.fields.map(w=>s.createElement(Nr,{type:w.type,fieldProps:w,formClientId:a,dataField:w.dataField,onContinue:u.onContinue,errors:u.errors.filter(E=>E.field===w.dataField),getStateByKey:d.getStateByKey,setStateByKey:d.setStateByKey}))})})})]})},Mr=e=>{e.locale;let{data:t,loading:n,error:r}=fi(()=>di({formId:e.formId}));const o=s.useMemo(()=>t!=null&&t.inlineForm?s.createElement($r,{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(Dr,{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&&n?"Loading...":!t||r?r?r.message:"Unknown error":s.createElement(tn,{theme:t.attributes.theme,selectedVariant:t.attributes.variant,children:[o,a]})},Oa=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=ro.createRoot(e.container||document);typeof window<"u"&&t.render(s.createElement(Mr,{formId:e.formId}))},Lr=e=>e?e.formId?typeof window>"u"?null:s.createElement(Mr,{formId:e.formId}):(console.error("formId must be provided. Feedback module deactivated"),null):(console.error("options must be provided. Feedback module deactivated"),null),Na=e=>Lr(e),$a=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement($r,e)]}),Da=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(Dr,e)]});return ve.FeedbackModule=Na,ve.PreviewInPlaceForm=$a,ve.PreviewPopupForm=Da,ve.initiateFeedbackModule=Oa,ve.renderFeedbackModule=Lr,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"}),ve})({},React,require$$0);
|