@web-site-utilities/feedback 0.0.2 → 0.0.3
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/form/index.d.ts +15 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.d.ts +16 -2
- package/dist/index.es.js +295 -287
- package/dist/index.iife.js +11 -11
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var SiteUtilsFeedback=(function(ye,s,
|
|
2
|
-
`,Et=typeof window<"u"&&typeof document<"u",wo=!!(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 xo(e,t,n){return n===void 0&&(n=De),e.theme!==n.theme&&e.theme||t||n.theme}var Mn=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"]),Co=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ao=/(^-|-$)/g;function Ln(e){return e.replace(Co,"-").replace(Ao,"")}var _o=/(a)(d)/gi,Tt=52,Fn=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=Fn(t%Tt)+n;return(Fn(t%Tt)+n).replace(_o,"$1-$2")}var Yt,Rn=5381,Me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},zn=function(e){return Me(Rn,e)};function Io(e){return jt(zn(e)>>>0)}function ko(e){return e.displayName||e.name||"Component"}function qt(e){return typeof e=="string"&&!0}var Bn=typeof Symbol=="function"&&Symbol.for,Un=Bn?Symbol.for("react.memo"):60115,Po=Bn?Symbol.for("react.forward_ref"):60112,Oo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},No={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$o=((Yt={})[Po]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yt[Un]=Wn,Yt);function Hn(e){return("type"in(t=e)&&t.type.$$typeof)===Un?Wn:"$$typeof"in e?$o[e.$$typeof]:Oo;var t}var Do=Object.defineProperty,Mo=Object.getOwnPropertyNames,Vn=Object.getOwnPropertySymbols,Lo=Object.getOwnPropertyDescriptor,Fo=Object.getPrototypeOf,Gn=Object.prototype;function jn(e,t,n){if(typeof t!="string"){if(Gn){var r=Fo(t);r&&r!==Gn&&jn(e,r,n)}var o=Mo(t);Vn&&(o=o.concat(Vn(t)));for(var a=Hn(e),l=Hn(t),d=0;d<o.length;++d){var u=o[d];if(!(u in No||n&&n[u]||l&&u in l||a&&u in a)){var m=Lo(t,u);try{Do(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 Yn(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 Ro=(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},zo=function(e,t){Ct=t+1,wt.set(e,t),xt.set(t,e)},Bo="style[".concat($e,"][").concat(Dn,'="').concat(vt,'"]'),Uo=new RegExp("^".concat($e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wo=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)},Ho=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(Uo);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(zo(p,m),Wo(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},qn=function(e){for(var t=document.querySelectorAll(Bo),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute($e)!==$n&&(Ho(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Kn=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,$n),r.setAttribute(Dn,vt);var l=Vo();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},Go=(function(){function e(t){this.element=Kn(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})(),jo=(function(){function e(t){this.element=Kn(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})(),Yo=(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})(),Xn=Et,qo={isServer:!Et,useCSSOMInjection:!wo},Zn=(function(){function e(t,n,r){t===void 0&&(t=De),n===void 0&&(n={});var o=this;this.options=H(H({},qo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Et&&Xn&&(Xn=!1,qn(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&&qn(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 Yo(o):r?new Go(o):new jo(o)})(this.options),new Ro(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})(),Ko=/&/g,Xo=/^\s*\/\/.*$/gm;function Qn(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=Qn(n.children,t)),n})}function Zo(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(Ko,n).replace(r,m))}),l.prefix&&p.push(So),p.push(yo);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(Xo,""),M=go(A||E?"".concat(A," ").concat(E," { ").concat(q," }"):q);l.namespace&&(M=Qn(M,l.namespace));var O=[];return yt(M,vo(p.concat(Eo(function(_){return O.push(_)})))),O};return T.hash=u.length?u.reduce(function(w,E){return E.name||Te(15),Me(w,E.name)},Rn).toString():"",T}var Qo=new Zn,Qt=Zo(),Jn=s.createContext({shouldForwardProp:void 0,styleSheet:Qo,stylis:Qt});Jn.Consumer,s.createContext(void 0);function er(){return s.useContext(Jn)}var Jo=(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})(),ei=function(e){return e>="A"&&e<="Z"};function tr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ei(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var nr=function(e){return e==null||e===!1||e===""},rr=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!nr(a)&&(Array.isArray(a)&&a.isCss||Ee(a)?r.push("".concat(tr(o),":"),a,";"):Ke(a)?r.push.apply(r,ut(ut(["".concat(o," {")],rr(a),!1),["}"],!1)):r.push("".concat(tr(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in To||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function we(e,t,n,r){if(nr(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 Jo?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?rr(e):Array.isArray(e)?Array.prototype.concat.apply(St,e.map(function(l){return we(l,t,n,r)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ee(n)&&!Kt(n))return!1}return!0}var ni=zn(vt),ri=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&ti(t),this.componentId=n,this.baseHash=Me(ni,n),this.baseStyle=r,Zn.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=Yn(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=Yn(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 oi(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 ii(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":Ln(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(Io(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(ko(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Ln(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 ri(n,w,r?o.componentStyle:void 0);function O(b,P){return(function(x,y,pe){var Re=x.attrs,un=x.componentStyle,U=x.defaultProps,nt=x.foldedComponentIds,rt=x.styledComponentId,ot=x.target,dn=s.useContext(_t),fn=er(),it=x.shouldForwardProp||fn.shouldForwardProp,at=xo(y,dn,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=er(),be=I.generateAndInjectStyles(re,ge.styleSheet,ge.stylis);return be})(un,te),ze=Se(nt,rt);return F&&(ze+=" "+F),te.className&&(ze+=" "+te.className),N[qt(Ce)&&!Mn.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&&jn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function or(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 ir=function(e){return Object.assign(e,{isCss:!0})};function ai(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ee(e)||Ke(e))return ir(we(or(St,ut([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?we(r):ir(we(or(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,ai.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 ar=function(e){return en(ii,e)},S=ar;Mn.forEach(function(e){S[e]=ar(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},si={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...xe},sr=s.createContext({...xe,...si}),li=S.div`
|
|
1
|
+
var SiteUtilsFeedback=(function(ye,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 ve(){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=ve())&&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&&ve()==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&&ve()===47)break;return"/*"+gt(t,Z-1)+"*"+Bt(e===47?e:J())}function go(e){for(;!Wt(ve());)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(ve()){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:ve()===45&&(y+=Ht(J())),w=ve(),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 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`
|
|
3
3
|
font-family:
|
|
4
4
|
ui-sans-serif,
|
|
5
5
|
system-ui,
|
|
@@ -50,7 +50,7 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
50
50
|
--depth: ${e=>e.$theme.depth};
|
|
51
51
|
--spacing: ${e=>e.$theme.spacing};
|
|
52
52
|
--all-fields-size: ${e=>e.$theme.allFieldsSize};
|
|
53
|
-
`,
|
|
53
|
+
`,tn=e=>{const t=e.selectedVariant??"primary";return s.createElement(ii,{theme:e.theme??xe,children:s.createElement(ci,{$theme:e.theme??xe,children:s.createElement(lr.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??xe},children:e.children})})})},cr=()=>s.useContext(lr),ce=e=>{const{getDefaultVariantOrSelected:t}=cr(),n=t();return xe[e??n]},ur=e=>{const{getDefaultVariantOrSelected:t}=cr(),n=t(),r=e?`${e}Content`:`${n}Content`;return xe[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;
|
|
@@ -69,7 +69,7 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
69
69
|
height: ${e=>e.$isVisible?"auto":"0"};
|
|
70
70
|
width: ${e=>e.$isVisible?"auto":"0"};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,fr=e=>{const t=s.useRef(null);return s.useEffect(()=>{t.current&&e.onSetMaxHeight(t.current.clientHeight)},[t]),s.createElement(mi,{ref:t,$height:e.height,$isVisible:e.isVisible,children:e.children})},hi=S.ul`
|
|
73
73
|
counter-reset: step;
|
|
74
74
|
grid-auto-columns: 1fr;
|
|
75
75
|
grid-auto-flow: column;
|
|
@@ -78,8 +78,8 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
78
78
|
@media (max-width: 900px) {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
`,pi=S.li(e=>{const t=ce(e.colorVariant),n=cr(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"}}}),fr=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}},mr=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:hr,setPrototypeOf:pr,isFrozen:Si,getPrototypeOf:Ti,getOwnPropertyDescriptor:wi}=Object;let{freeze:G,seal:Q,create:gr}=Object,{apply:tn,construct:nn}=typeof Reflect<"u"&&Reflect;G||(G=function(t){return t}),Q||(Q=function(t){return t}),tn||(tn=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)}),nn||(nn=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),br=Y(Array.prototype.pop),Xe=Y(Array.prototype.push),Ci=Y(Array.prototype.splice),kt=Y(String.prototype.toLowerCase),rn=Y(String.prototype.toString),on=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 tn(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 nn(e,n)}}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;pr&&pr(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=gr(null);for(const[n,r]of hr(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 yr=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"]),an=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"]),sn=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"]),ln=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"]),vr=G(["#text"]),Er=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"]),cn=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"]),Sr=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]+$/),Tr=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),wr=Q(/^html$/i),zi=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var xr=Object.freeze({__proto__:null,ARIA_ATTR:Li,ATTR_WHITESPACE:Ri,CUSTOM_ELEMENT:zi,DATA_ATTR:Mi,DOCTYPE_NAME:wr,ERB_EXPR:$i,IS_ALLOWED_URI:Tr,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}},Cr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ar(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bi();const t=h=>Ar(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:un}=r;let U=Cr();t.isSupported=typeof hr=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nt,ERB_EXPR:rt,TMPLIT_EXPR:ot,DATA_ATTR:dn,ARIA_ATTR:fn,IS_SCRIPT_OR_DATA:it,ATTR_WHITESPACE:at,CUSTOM_ELEMENT:te}=xr;let{IS_ALLOWED_URI:Ce}=xr,N=null;const ne=v({},[...yr,...an,...sn,...ln,...vr]);let F=null;const ze=v({},[...Er,...cn,...Sr,...Pt]);let I=Object.seal(gr(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,mn=!1,hn=!1,Ue=!1,$t=!1,Dt=!1,Lr=!0,Fr=!1;const Ma="user-content-";let pn=!0,st=!1,We={},He=null;const Rr=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 zr=null;const Br=v({},["audio","video","img","source","image","track"]);let gn=null;const Ur=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,bn=!1,yn=null;const La=v({},[Mt,Lt,de],rn);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"),Wr=function(i){return i instanceof RegExp||i instanceof Function},vn=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"?rn:kt,N=ee(i,"ALLOWED_TAGS")?v({},i.ALLOWED_TAGS,B):ne,F=ee(i,"ALLOWED_ATTR")?v({},i.ALLOWED_ATTR,B):ze,yn=ee(i,"ALLOWED_NAMESPACES")?v({},i.ALLOWED_NAMESPACES,rn):La,gn=ee(i,"ADD_URI_SAFE_ATTR")?v(ue(Ur),i.ADD_URI_SAFE_ATTR,B):Ur,zr=ee(i,"ADD_DATA_URI_TAGS")?v(ue(Br),i.ADD_DATA_URI_TAGS,B):Br,He=ee(i,"FORBID_CONTENTS")?v({},i.FORBID_CONTENTS,B):Rr,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,hn=i.FORCE_BODY||!1,Lr=i.SANITIZE_DOM!==!1,Fr=i.SANITIZE_NAMED_PROPS||!1,pn=i.KEEP_CONTENT!==!1,st=i.IN_PLACE||!1,Ce=i.ALLOWED_URI_REGEXP||Tr,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&&Wr(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Wr(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({},vr),F=[],We.html===!0&&(v(N,yr),v(F,Er)),We.svg===!0&&(v(N,an),v(F,cn),v(F,Pt)),We.svgFilters===!0&&(v(N,sn),v(F,cn),v(F,Pt)),We.mathMl===!0&&(v(N,ln),v(F,Sr),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(gn,i.ADD_URI_SAFE_ATTR,B),i.FORBID_CONTENTS&&(He===Rr&&(He=ue(He)),v(He,i.FORBID_CONTENTS,B)),pn&&(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}},Hr=v({},[...an,...sn,...Pi]),Vr=v({},[...ln,...Oi]),Ua=function(i){let c=_(i);(!c||!c.tagName)&&(c={namespaceURI:Ve,tagName:"template"});const f=kt(i.tagName),$=kt(c.tagName);return yn[i.namespaceURI]?i.namespaceURI===Lt?c.namespaceURI===de?f==="svg":c.namespaceURI===Mt?f==="svg"&&($==="annotation-xml"||Ft[$]):!!Hr[f]:i.namespaceURI===Mt?c.namespaceURI===de?f==="math":c.namespaceURI===Lt?f==="math"&&Rt[$]:!!Vr[f]:i.namespaceURI===de?c.namespaceURI===Lt&&!Rt[$]||c.namespaceURI===Mt&&!Ft[$]?!1:!Vr[f]&&(Fa[f]||!Hr[f]):!!(lt==="application/xhtml+xml"&&yn[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{}},Gr=function(i){let c=null,f=null;if(hn)i="<remove></remove>"+i;else{const R=on(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=bn?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},jr=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)},En=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")},Yr=function(i){return typeof d=="function"&&i instanceof d};function fe(h,i,c){It(h,f=>{f.call(t,i,c,Ge)})}const qr=function(i){let c=null;if(fe(U.beforeSanitizeElements,i,null),En(i))return se(i),!0;const f=B(i.nodeName);if(fe(U.uponSanitizeElement,i,{tagName:f,allowedTags:N}),Nt&&i.hasChildNodes()&&!Yr(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]&&Xr(f)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(pn&&!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)},Kr=function(i,c,f){if(Lr&&(c==="id"||c==="name")&&(f in n||f in Ba))return!1;if(!(oe&&!ge[c]&&j(dn,c))){if(!(be&&j(fn,c))){if(!F[c]||ge[c]){if(!(Xr(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(!gn[c]){if(!j(Ce,Ze(f,at,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&Ai(f,"data:")===0&&zr[i])){if(!(Be&&!j(it,Ze(f,at,"")))){if(f)return!1}}}}}}return!0},Xr=function(i){return i!=="annotation-xml"&&on(i,te)},Zr=function(i){fe(U.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||En(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),Sn=me;let W=R==="value"?Sn:_i(Sn);if(f.attrName=je,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,fe(U.uponSanitizeAttribute,i,f),W=f.attrValue,Fr&&(je==="id"||je==="name")&&(Ie(R,i),W=Ma+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Ie(R,i);continue}if(je==="attributename"&&on(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],Jr=>{W=Ze(W,Jr," ")});const Qr=B(i.nodeName);if(!Kr(Qr,je,W)){Ie(R,i);continue}if(b&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!X)switch(E.getAttributeType(Qr,je)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Sn)try{X?i.setAttributeNS(X,R,W):i.setAttribute(R,W),En(i)?se(i):br(t.removed)}catch{Ie(R,i)}}fe(U.afterSanitizeAttributes,i,null)},Wa=function h(i){let c=null;const f=jr(i);for(fe(U.beforeSanitizeShadowDOM,i,null);c=f.nextNode();)fe(U.uponSanitizeShadowNode,c,null),qr(c),Zr(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(bn=!h,bn&&(h="<!-->"),typeof h!="string"&&!Yr(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(mn||vn(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=Gr("<!---->"),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=Gr(h),!c)return Ue?null:Dt?P:""}c&&hn&&se(c.firstChild);const R=jr(st?h:c);for(;$=R.nextNode();)qr($),Zr($),$.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=un.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(wr,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
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]:{};
|
|
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+`>
|
|
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;
|
|
85
85
|
width: var(--all-fields-size);
|
|
@@ -94,7 +94,7 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
94
94
|
gap: var(--spacing);
|
|
95
95
|
flex-direction: column;
|
|
96
96
|
}
|
|
97
|
-
`,Zi=e=>{const t=e.label.replace(/\s/g,"-").toLowerCase(),n=e.elementsPerCol||4,r=s.useMemo(()=>e.options.reduce((o,a,l)=>{var u;return(l%n===0||l===0)&&o.push([]),(u=o[o.length-1])==null||u.push(a),o},[]),[n,e.options]);return s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(Xi,{children:r.map((o,a)=>s.createElement(Ki,{key:a,children:o.map(l=>s.createElement(qi,{onSelect:e.onChange,colorVariant:e.colorVariant,value:e.value,id:e.formClientId,name:t,label:l.label}))}))}),s.createElement(Fe,{errors:e.errors})]})},Qi=S(Le)(()=>({"&:not(:last-of-type):not(:first-of-type)":{borderRadius:"0",marginRight:"-1px",marginLeft:"-1px"},"&:first-of-type":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},"&:last-of-type":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},"@media (max-width: 900px)":{}})),Ji=e=>s.createElement(Qi,{onClick:e.onChange,$outlined:!e.selected,children:e.label}),
|
|
97
|
+
`,Zi=e=>{const t=e.label.replace(/\s/g,"-").toLowerCase(),n=e.elementsPerCol||4,r=s.useMemo(()=>e.options.reduce((o,a,l)=>{var u;return(l%n===0||l===0)&&o.push([]),(u=o[o.length-1])==null||u.push(a),o},[]),[n,e.options]);return s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(Xi,{children:r.map((o,a)=>s.createElement(Ki,{key:a,children:o.map(l=>s.createElement(qi,{onSelect:e.onChange,colorVariant:e.colorVariant,value:e.value,id:e.formClientId,name:t,label:l.label}))}))}),s.createElement(Fe,{errors:e.errors})]})},Qi=S(Le)(()=>({"&:not(:last-of-type):not(:first-of-type)":{borderRadius:"0",marginRight:"-1px",marginLeft:"-1px"},"&:first-of-type":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},"&:last-of-type":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},"@media (max-width: 900px)":{}})),Ji=e=>s.createElement(Qi,{onClick:e.onChange,$outlined:!e.selected,children:e.label}),Pr=S("span")(({min:e,variant:t})=>{const n=t||ce();return{position:"absolute",left:e?"0":void 0,right:e?void 0:"0",bottom:"-2px",opacity:"0.5",fontWeight:"300",transform:"translateY(100%)",textTransform:"uppercase",color:n}}),ea=S.div(e=>({verticalAlign:"middle",display:"inline-flex",position:"relative",marginBottom:e.withText?"calc(var(--spacing) * 6)":"0"})),ta=e=>s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(ea,{withText:e.maxText||e.minText,children:[e.maxText?s.createElement(Pr,{min:!1,children:e.maxText}):null,e.minText?s.createElement(Pr,{min:!0,children:e.minText}):null,Array(e.max).fill(1).map((t,n)=>s.createElement(Ji,{onChange:()=>e.onChange(n+1),selected:n+1===e.value,key:`${n}`,label:`${n+1}`}))]}),s.createElement(Fe,{errors:e.errors})]}),na=S.input(({theme:e,selected:t,colorVariant:n})=>{const r=`calc(${e.sizeSelector} * 6);`,o=ce(n);return{width:r,height:r,color:e.neutral,margin:"0",cursor:"pointer",appearance:"none",verticalAlign:"middle",borderRadius:"3.40282e38px",border:`1px solid ${o}`,flexShrink:"0",padding:t?".25rem":"0.4rem",transition:".2s ease-in-out",display:"inline-block",position:"relative",boxSizing:"border-box","&::before":{content:'""',borderRadius:"3.40282e38px",background:t?o:"transparent",width:"100%",height:"100%",display:"block"}}}),ra=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),oa=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[e.id]),n=o=>{e.onSelect(o)},r=e.value===t;return s.createElement(ra,{selected:r,htmlFor:t,children:[s.createElement(na,{id:t,type:"radio",variant:e.colorVariant,selected:r,onChange:()=>n(t),name:e.name}),s.createElement(ae,{children:e.label,linear:!0})]})},ia=S.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: var(--all-fields-size);
|
|
@@ -117,16 +117,16 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
117
117
|
display: flex;
|
|
118
118
|
align-items: center;
|
|
119
119
|
gap: calc(var(--spacing) * 2);
|
|
120
|
-
`,ma=e=>{var o;const t=e.min||0,n=e.max||100,r=a=>{const l=Number.parseInt(a.target.value);Number.isNaN(l)?console.error("RangeSlide must be a number"):e.onChange(l)};return s.useEffect(()=>{e.onChange(e.value||e.initialValue||0)},[]),s.createElement(ua,{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(fa,{children:[s.createElement(ca,{type:"range",min:t,max:n,useThemeColors:e.colorVariant,value:e.value,onChange:r}),s.createElement(da,{type:"number",value:((o=e.value)==null?void 0:o.toString())??"",max:n,min:t,colorVariant:e.colorVariant,onChange:a=>e.onChange(+a.target.value)})]}),s.createElement(Fe,{errors:e.errors})]})},ha={heart:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>'),star:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>'),star2:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>')},
|
|
120
|
+
`,ma=e=>{var o;const t=e.min||0,n=e.max||100,r=a=>{const l=Number.parseInt(a.target.value);Number.isNaN(l)?console.error("RangeSlide must be a number"):e.onChange(l)};return s.useEffect(()=>{e.onChange(e.value||e.initialValue||0)},[]),s.createElement(ua,{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(fa,{children:[s.createElement(ca,{type:"range",min:t,max:n,useThemeColors:e.colorVariant,value:e.value,onChange:r}),s.createElement(da,{type:"number",value:((o=e.value)==null?void 0:o.toString())??"",max:n,min:t,colorVariant:e.colorVariant,onChange:a=>e.onChange(+a.target.value)})]}),s.createElement(Fe,{errors:e.errors})]})},ha={heart:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>'),star:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>'),star2:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>')},Or={small:"1rem",medium:"1.5rem",large:"2rem"},pa=S.input(e=>{const t=ha[e.icon??"star2"],n=ce(e.colorVariant);return{maskImage:`url(data:image/svg+xml,${t})`,backgroundColor:n,appearance:"none",transform:e.selected?"scale(1.1)":"scale(1)",transition:"transform 0.3s",border:"none",opacity:e.selected?"1":.2,verticalAlign:"middle",display:"inline-block",WebkitMaskPosition:"50%",maskPosition:"50%",cursor:"pointer",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",borderRadius:"0",width:Or[e.size??"medium"],height:Or[e.size??"medium"]}}),ga=S.div(()=>({verticalAlign:"middle",position:"relative"})),ba=({value:e,max:t,errors:n,label:r,onChange:o})=>s.createElement(ga,{value:1,max:5,children:[s.createElement(ae,{variant:"section",children:r}),Array(t).fill(1).map((a,l)=>s.createElement(pa,{selected:l<e,name:`rating-${l+1}`,key:`${l}`,onChange:()=>{o(l+1)},type:"radio"})),s.createElement(Fe,{errors:n})]}),ya=S.div`
|
|
121
121
|
width: 100%;
|
|
122
122
|
`,va=S.textarea(e=>{const t=ce(e.colorVariant);return{border:"var(--border-width)solid #0000",appearance:"none",borderRadius:"var(--radius-field)",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",maxWidth:"100%",minWidth:"3rem",minHeight:"5rem",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,flexShrink:"1",paddingBlock:".5rem",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),Ea=e=>{const t=n=>e.onChange(n.target.value);return s.createElement(ya,{children:[s.createElement(ae,{variant:"section",children:e.label}),s.createElement(va,{value:e.value??"",useThemeColors:e.colorVariant,rows:e.rows??3,onChange:t}),s.createElement(Fe,{errors:e.errors})]})},Sa=S.div`
|
|
123
123
|
width: 100%;
|
|
124
|
-
`,Ot=e=>e!=null,Ta=(e,t)=>(r=>{if(!r)return e.default;const o=r.find(a=>a.conditions.every(l=>{const d=t(l.fieldName);if(!Ot(d))return!1;const u=[];return Ot(l.eq)?l.eq===d?u.push(!0):u.push(!1):Ot(l.lessThan)?l.lessThan>d?u.push(!0):u.push(!1):Ot(l.moreThan)&&(l.moreThan<d?u.push(!0):u.push(!1)),u.every(Boolean)}));return(o==null?void 0:o.value)??e.default})(e.values),
|
|
124
|
+
`,Ot=e=>e!=null,Ta=(e,t)=>(r=>{if(!r)return e.default;const o=r.find(a=>a.conditions.every(l=>{const d=t(l.fieldName);if(!Ot(d))return!1;const u=[];return Ot(l.eq)?l.eq===d?u.push(!0):u.push(!1):Ot(l.lessThan)?l.lessThan>d?u.push(!0):u.push(!1):Ot(l.moreThan)&&(l.moreThan<d?u.push(!0):u.push(!1)),u.every(Boolean)}));return(o==null?void 0:o.value)??e.default})(e.values),Nr=e=>{const t=()=>{const n=a=>e.setStateByKey(e.dataField,a),r=Ta(e.fieldProps.label,e.getStateByKey),o={formClientId:e.formClientId,label:r,errors:e.errors,onChange:n,value:e.getStateByKey(e.dataField),key:`${e.type}-${e.fieldProps.label}-${e.fieldProps.meta.name}`};switch(e.type){case"matrix":{const a=e.fieldProps;return s.createElement(ta,{...a,...o,max:10})}case"radio-group":{const a=e.fieldProps;return s.createElement(sa,{...a,...o})}case"checkbox-group":{const a=e.fieldProps;return s.createElement(Zi,{...a,...o})}case"range-slide":{const a=e.fieldProps;return s.createElement(ma,{...a,...o})}case"rating":{const a=e.fieldProps;return s.createElement(ba,{...a,...o})}case"textarea":{const a=e.fieldProps;return s.createElement(Ea,{...a,...o})}default:return null}};return s.createElement(Sa,{children:t()})},wa=S.div({position:"relative",fontSize:"var(--font-size)"}),xa=S.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
align-items: center;
|
|
127
127
|
justify-content: space-between;
|
|
128
128
|
margin-top: calc(var(--spacing) * 10);
|
|
129
|
-
|
|
129
|
+
`,$r=e=>{const t=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),[n,r]=s.useState(null),o=d=>{r(u=>!u||u<d?d:u)},a=hr({form:e.inlineForm.form,formId:e.formId,domainId:e.domainId}),l=kr({domainId:e.domainId,formType:"inlineForm",stepsCount:a.steps.length,validationsPerStep:a.validationsPerStep,formId:e.formId,state:a.state});return s.createElement(wa,{children:[e.inlineForm.config.formTitle&&s.createElement(ae,{variant:"title",children:e.inlineForm.config.formTitle}),a.steps.map((d,u)=>{var m;return s.createElement(fr,{key:u+`${(m=d.meta)==null?void 0:m.name}`,height:n,onSetMaxHeight:o,isVisible:u===l.step,children:d.fields.map(p=>s.createElement(Nr,{type:p.type,fieldProps:p,dataField:p.dataField,formClientId:t,onContinue:l.onContinue,errors:l.errors.filter(T=>T.field===p.dataField),getStateByKey:a.getStateByKey,setStateByKey:a.setStateByKey}))})}),s.createElement(xa,{children:[s.createElement(Le,{children:"Back",disabled:l.step===0,onClick:l.onBack}),s.createElement(mr,{steps:a.steps,currentStepIndex:l.step}),s.createElement(Le,{children:"Continue",onClick:l.onContinue})]})]})},Ca=S.div(e=>({backgroundColor:"var(--color-base-100)",borderTopLeftRadius:"var(--modal-tl,var(--radius-box))",borderTopRightRadius:"var(--modal-tr,var(--radius-box))",borderBottomLeftRadius:"var(--modal-bl,var(--radius-box))",borderBottomRightRadius:"var(--modal-br,var(--radius-box))",opacity:e.$visible?"1":"0",overscrollBehavior:"contain",gridRowStart:"1",gridColumnStart:"1",width:"91.6667%",maxWidth:"1080px",margin:"auto",maxHeight:"100vh",padding:"1.5rem",transition:"translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out",overflowY:"auto",scale:"95%",boxShadow:"0 25px 50px -12px #00000040","@media (max-width: 900px)":{maxWidth:"initial",width:"auto"}})),Aa=S.div(()=>({})),_a=S.dialog(({$visible:e})=>({pointerEvents:e?"auto":"none",visibility:e?"visible":"hidden",width:"100%",maxWidth:"none",height:"100%",maxHeight:"none",color:"inherit",transition:"visibility .3s allow-discrete,background-color .3s ease-out,opacity .1s ease-out",overscrollBehavior:"contain",zIndex:"99",scrollbarGutter:"auto",backgroundColor:e?"#0006":"#0000",placeItems:"center",margin:"0",padding:"0",display:"grid",position:"fixed",overflow:"clip",top:0,border:0,outline:0})),Ia=e=>{const t=s.useRef(null),n=Math.random().toString(36).substring(2,16),r=s.useCallback(a=>{a.target===t.current&&e.onClose(),a.preventDefault(),a.stopPropagation()},[e]),o=s.useCallback(a=>{a.key==="Escape"&&e.onClose(),a.preventDefault()},[]);return s.useEffect(()=>{t.current&&e.isOpen?t.current.show():t.current&&!e.isOpen&&t.current.close()},[t,e.isOpen]),s.useEffect(()=>(document.addEventListener("keyup",o),()=>{document.removeEventListener("keyup",o)}),[]),s.createElement(_a,{$visible:e.isOpen,onClick:r,ref:t,id:n,children:s.createElement(Ca,{$visible:e.isOpen,children:[s.createElement(ae,{children:e.heading,variant:"title"}),e.children,s.createElement(Aa,{children:e.footer})]})})},ka=S.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
align-items: center;
|
|
132
132
|
justify-content: space-between;
|
|
@@ -145,4 +145,4 @@ var SiteUtilsFeedback=(function(ye,s,eo){"use strict";var ct={},Tn;function to()
|
|
|
145
145
|
&:active {
|
|
146
146
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
147
147
|
}
|
|
148
|
-
|
|
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 ye.FeedbackModule=Na,ye.PreviewInPlaceForm=$a,ye.PreviewPopupForm=Da,ye.initiateFeedbackModule=Oa,ye.renderFeedbackModule=Lr,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"}),ye})({},React,require$$0);
|