@metricshift/react 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(P,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(P=typeof globalThis<"u"?globalThis:P||self,x(P.MetricShiftReact={},P.React))})(this,function(P,x){"use strict";var ke={exports:{}},re={};/**
1
+ (function(S,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(S=typeof globalThis<"u"?globalThis:S||self,x(S.MetricShiftReact={},S.React))})(this,function(S,x){"use strict";var Vr=Object.defineProperty;var Hr=(S,x,Y)=>x in S?Vr(S,x,{enumerable:!0,configurable:!0,writable:!0,value:Y}):S[x]=Y;var N=(S,x,Y)=>Hr(S,typeof x!="symbol"?x+"":x,Y);var Y={exports:{}},re={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Fe;function Xe(){if(Fe)return re;Fe=1;var p=x,S=Symbol.for("react.element"),T=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,b=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function j(y,h,_){var g,k={},O=null,M=null;_!==void 0&&(O=""+_),h.key!==void 0&&(O=""+h.key),h.ref!==void 0&&(M=h.ref);for(g in h)c.call(h,g)&&!o.hasOwnProperty(g)&&(k[g]=h[g]);if(y&&y.defaultProps)for(g in h=y.defaultProps,h)k[g]===void 0&&(k[g]=h[g]);return{$$typeof:S,type:y,key:O,ref:M,props:k,_owner:b.current}}return re.Fragment=T,re.jsx=j,re.jsxs=j,re}var ne={};/**
9
+ */var je;function Xe(){if(je)return re;je=1;var n=x,s=Symbol.for("react.element"),u=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t={key:!0,ref:!0,__self:!0,__source:!0};function l(c,p,g){var b,j={},C=null,$=null;g!==void 0&&(C=""+g),p.key!==void 0&&(C=""+p.key),p.ref!==void 0&&($=p.ref);for(b in p)a.call(p,b)&&!t.hasOwnProperty(b)&&(j[b]=p[b]);if(c&&c.defaultProps)for(b in p=c.defaultProps,p)j[b]===void 0&&(j[b]=p[b]);return{$$typeof:s,type:c,key:C,ref:$,props:j,_owner:f.current}}return re.Fragment=u,re.jsx=l,re.jsxs=l,re}var te={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,32 +14,22 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ie;function Qe(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var p=x,S=Symbol.for("react.element"),T=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),y=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),N=Symbol.iterator,W="@@iterator";function K(e){if(e===null||typeof e!="object")return null;var t=N&&e[N]||e[W];return typeof t=="function"?t:null}var A=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];ae("error",e,r)}}function ae(e,t,r){{var a=A.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",r=r.concat([u]));var d=r.map(function(l){return String(l)});d.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,d)}}var i=!1,w=!1,ue=!1,fe=!1,de=!1,oe;oe=Symbol.for("react.module.reference");function pe(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===o||de||e===b||e===_||e===g||fe||e===M||i||w||ue||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===k||e.$$typeof===j||e.$$typeof===y||e.$$typeof===h||e.$$typeof===oe||e.getModuleId!==void 0))}function be(e,t,r){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?r+"("+u+")":r}function he(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case T:return"Portal";case o:return"Profiler";case b:return"StrictMode";case _:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return he(t)+".Consumer";case j:var r=e;return he(r._context)+".Provider";case h:return be(e,e.render,"ForwardRef");case k:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case O:{var u=e,d=u._payload,l=u._init;try{return I(l(d))}catch{return null}}}return null}var D=Object.assign,U=0,ge,ve,ie,xe,G,ye,$;function X(){}X.__reactDisabledLog=!0;function V(){{if(U===0){ge=console.log,ve=console.info,ie=console.warn,xe=console.error,G=console.group,ye=console.groupCollapsed,$=console.groupEnd;var e={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function se(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:ge}),info:D({},e,{value:ve}),warn:D({},e,{value:ie}),error:D({},e,{value:xe}),group:D({},e,{value:G}),groupCollapsed:D({},e,{value:ye}),groupEnd:D({},e,{value:$})})}U<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=A.ReactCurrentDispatcher,B;function L(e,t,r){{if(B===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);B=a&&a[1]||""}return`
18
- `+B+e}}var le=!1,ce;{var je=typeof WeakMap=="function"?WeakMap:Map;ce=new je}function me(e,t){if(!e||le)return"";{var r=ce.get(e);if(r!==void 0)return r}var a;le=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=Y.current,Y.current=null,V();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
19
- `),R=a.stack.split(`
20
- `),v=s.length-1,m=R.length-1;v>=1&&m>=0&&s[v]!==R[m];)m--;for(;v>=1&&m>=0;v--,m--)if(s[v]!==R[m]){if(v!==1||m!==1)do if(v--,m--,m<0||s[v]!==R[m]){var F=`
21
- `+s[v].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&ce.set(e,F),F}while(v>=1&&m>=0);break}}}finally{le=!1,Y.current=d,se(),Error.prepareStackTrace=u}var te=e?e.displayName||e.name:"",J=te?L(te):"";return typeof e=="function"&&ce.set(e,J),J}function _e(e,t,r){return me(e,!1)}function we(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Q(e,t,r){if(e==null)return"";if(typeof e=="function")return me(e,we(e));if(typeof e=="string")return L(e);switch(e){case _:return L("Suspense");case g:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return _e(e.render);case k:return Q(e.type,t,r);case O:{var a=e,u=a._payload,d=a._init;try{return Q(d(u),t,r)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Se={},Ee=A.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,r=Q(e.type,e._source,t?t.type:null);Ee.setExtraStackFrame(r)}else Ee.setExtraStackFrame(null)}function We(e,t,r,a,u){{var d=Function.call.bind(H);for(var l in e)if(d(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var R=Error((a||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}s=e[l](t,l,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){s=v}s&&!(s instanceof Error)&&(Z(u),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,l,typeof s),Z(null)),s instanceof Error&&!(s.message in Se)&&(Se[s.message]=!0,Z(u),f("Failed %s type: %s",r,s.message),Z(null))}}}var E=Array.isArray;function z(e){return E(e)}function q(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function nt(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ye(e){if(nt(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",q(e)),ze(e)}var Be=A.ReactCurrentOwner,at={key:!0,ref:!0,__self:!0,__source:!0},Le,Ne;function ot(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function it(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function st(e,t){typeof e.ref=="string"&&Be.current}function lt(e,t){{var r=function(){Le||(Le=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function ct(e,t){{var r=function(){Ne||(Ne=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var ut=function(e,t,r,a,u,d,l){var s={$$typeof:S,type:e,key:t,ref:r,props:l,_owner:d};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ft(e,t,r,a,u){{var d,l={},s=null,R=null;r!==void 0&&(Ye(r),s=""+r),it(t)&&(Ye(t.key),s=""+t.key),ot(t)&&(R=t.ref,st(t,u));for(d in t)H.call(t,d)&&!at.hasOwnProperty(d)&&(l[d]=t[d]);if(e&&e.defaultProps){var v=e.defaultProps;for(d in v)l[d]===void 0&&(l[d]=v[d])}if(s||R){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&lt(l,m),R&&ct(l,m)}return ut(e,s,R,u,a,Be.current,l)}}var Ce=A.ReactCurrentOwner,Ue=A.ReactDebugCurrentFrame;function ee(e){if(e){var t=e._owner,r=Q(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(r)}else Ue.setExtraStackFrame(null)}var Te;Te=!1;function Pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function Ve(){{if(Ce.current){var e=I(Ce.current.type);if(e)return`
17
+ */var _e;function Qe(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&function(){var n=x,s=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),D=Symbol.iterator,ne="@@iterator";function U(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[ne];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),d=1;d<r;d++)o[d-1]=arguments[d];G("error",e,o)}}function G(e,r,o){{var d=k.ReactDebugCurrentFrame,v=d.getStackAddendum();v!==""&&(r+="%s",o=o.concat([v]));var m=o.map(function(y){return String(y)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var V=!1,z=!1,I=!1,K=!1,X=!1,E;E=Symbol.for("react.module.reference");function B(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===t||X||e===f||e===g||e===b||K||e===$||V||z||I||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===j||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===E||e.getModuleId!==void 0))}function W(e,r,o){var d=e.displayName;if(d)return d;var v=r.displayName||r.name||"";return v!==""?o+"("+v+")":o}function Q(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case u:return"Portal";case t:return"Profiler";case f:return"StrictMode";case g:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return Q(r)+".Consumer";case l:var o=e;return Q(o._context)+".Provider";case p:return W(e,e.render,"ForwardRef");case j:var d=e.displayName||null;return d!==null?d:M(e.type)||"Memo";case C:{var v=e,m=v._payload,y=v._init;try{return M(y(m))}catch{return null}}}return null}var A=Object.assign,H=0,oe,ie,se,le,L,P,Me;function Ae(){}Ae.__reactDisabledLog=!0;function br(){{if(H===0){oe=console.log,ie=console.info,se=console.warn,le=console.error,L=console.group,P=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function mr(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:oe}),info:A({},e,{value:ie}),warn:A({},e,{value:se}),error:A({},e,{value:le}),group:A({},e,{value:L}),groupCollapsed:A({},e,{value:P}),groupEnd:A({},e,{value:Me})})}H<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=k.ReactCurrentDispatcher,ye;function ce(e,r,o){{if(ye===void 0)try{throw Error()}catch(v){var d=v.stack.trim().match(/\n( *(at )?)/);ye=d&&d[1]||""}return`
18
+ `+ye+e}}var xe=!1,ue;{var Sr=typeof WeakMap=="function"?WeakMap:Map;ue=new Sr}function $e(e,r){if(!e||xe)return"";{var o=ue.get(e);if(o!==void 0)return o}var d;xe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ge.current,ge.current=null,br();try{if(r){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(F){d=F}Reflect.construct(e,[],y)}else{try{y.call()}catch(F){d=F}e.call(y.prototype)}}else{try{throw Error()}catch(F){d=F}e()}}catch(F){if(F&&d&&typeof F.stack=="string"){for(var h=F.stack.split(`
19
+ `),R=d.stack.split(`
20
+ `),_=h.length-1,T=R.length-1;_>=1&&T>=0&&h[_]!==R[T];)T--;for(;_>=1&&T>=0;_--,T--)if(h[_]!==R[T]){if(_!==1||T!==1)do if(_--,T--,T<0||h[_]!==R[T]){var O=`
21
+ `+h[_].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&ue.set(e,O),O}while(_>=1&&T>=0);break}}}finally{xe=!1,ge.current=m,mr(),Error.prepareStackTrace=v}var ee=e?e.displayName||e.name:"",J=ee?ce(ee):"";return typeof e=="function"&&ue.set(e,J),J}function Er(e,r,o){return $e(e,!1)}function jr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function fe(e,r,o){if(e==null)return"";if(typeof e=="function")return $e(e,jr(e));if(typeof e=="string")return ce(e);switch(e){case g:return ce("Suspense");case b:return ce("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Er(e.render);case j:return fe(e.type,r,o);case C:{var d=e,v=d._payload,m=d._init;try{return fe(m(v),r,o)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,De={},We=k.ReactDebugCurrentFrame;function de(e){if(e){var r=e._owner,o=fe(e.type,e._source,r?r.type:null);We.setExtraStackFrame(o)}else We.setExtraStackFrame(null)}function _r(e,r,o,d,v){{var m=Function.call.bind(ae);for(var y in e)if(m(e,y)){var h=void 0;try{if(typeof e[y]!="function"){var R=Error((d||"React class")+": "+o+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}h=e[y](r,y,d,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){h=_}h&&!(h instanceof Error)&&(de(v),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",o,y,typeof h),de(null)),h instanceof Error&&!(h.message in De)&&(De[h.message]=!0,de(v),w("Failed %s type: %s",o,h.message),de(null))}}}var wr=Array.isArray;function ve(e){return wr(e)}function Tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kr(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function ze(e){if(kr(e))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tr(e)),Le(e)}var Ye=k.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},qe,Be;function Rr(e){if(ae.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Pr(e){if(ae.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Fr(e,r){typeof e.ref=="string"&&Ye.current}function Or(e,r){{var o=function(){qe||(qe=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ir(e,r){{var o=function(){Be||(Be=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Mr=function(e,r,o,d,v,m,y){var h={$$typeof:s,type:e,key:r,ref:o,props:y,_owner:m};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Ar(e,r,o,d,v){{var m,y={},h=null,R=null;o!==void 0&&(ze(o),h=""+o),Pr(r)&&(ze(r.key),h=""+r.key),Rr(r)&&(R=r.ref,Fr(r,v));for(m in r)ae.call(r,m)&&!Cr.hasOwnProperty(m)&&(y[m]=r[m]);if(e&&e.defaultProps){var _=e.defaultProps;for(m in _)y[m]===void 0&&(y[m]=_[m])}if(h||R){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&Or(y,T),R&&Ir(y,T)}return Mr(e,h,R,v,d,Ye.current,y)}}var be=k.ReactCurrentOwner,Ne=k.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,o=fe(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(o)}else Ne.setExtraStackFrame(null)}var me;me=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ue(){{if(be.current){var e=M(be.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function dt(e){return""}var He={};function pt(e){{var t=Ve();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
23
+ Check the render method of \``+e+"`."}return""}}function $r(e){return""}var Ve={};function Dr(e){{var r=Ue();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
24
24
 
25
- Check the top-level render call using <`+r+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=pt(t);if(He[r])return;He[r]=!0;var a="";e&&e._owner&&e._owner!==Ce.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),ee(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),ee(null)}}function Ke(e,t){{if(typeof e!="object")return;if(z(e))for(var r=0;r<e.length;r++){var a=e[r];Pe(a)&&Je(a,t)}else if(Pe(e))e._store&&(e._store.validated=!0);else if(e){var u=K(e);if(typeof u=="function"&&u!==e.entries)for(var d=u.call(e),l;!(l=d.next()).done;)Pe(l.value)&&Je(l.value,t)}}}function bt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===k))r=t.propTypes;else return;if(r){var a=I(t);We(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!Te){Te=!0;var u=I(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ht(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){ee(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),ee(null);break}}e.ref!==null&&(ee(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),ee(null))}}var Ge={};function $e(e,t,r,a,u,d){{var l=pe(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=dt();R?s+=R:s+=Ve();var v;e===null?v="null":z(e)?v="array":e!==void 0&&e.$$typeof===S?(v="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,s)}var m=ft(e,t,r,u,d);if(m==null)return m;if(l){var F=t.children;if(F!==void 0)if(a)if(z(F)){for(var te=0;te<F.length;te++)Ke(F[te],e);Object.freeze&&Object.freeze(F)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ke(F,e)}if(H.call(t,"key")){var J=I(e),C=Object.keys(t).filter(function(St){return St!=="key"}),Oe=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[J+Oe]){var mt=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+o+">.")}return r}}function He(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Dr(r);if(Ve[o])return;Ve[o]=!0;var d="";e&&e._owner&&e._owner!==be.current&&(d=" It was passed a child from "+M(e._owner.type)+"."),Z(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,d),Z(null)}}function Je(e,r){{if(typeof e!="object")return;if(ve(e))for(var o=0;o<e.length;o++){var d=e[o];Se(d)&&He(d,r)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var v=U(e);if(typeof v=="function"&&v!==e.entries)for(var m=v.call(e),y;!(y=m.next()).done;)Se(y.value)&&He(y.value,r)}}}function Wr(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===j))o=r.propTypes;else return;if(o){var d=M(r);_r(o,e.props,"prop",d,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var v=M(r);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lr(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var d=r[o];if(d!=="children"&&d!=="key"){Z(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),Z(null);break}}e.ref!==null&&(Z(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var Ge={};function Ke(e,r,o,d,v,m){{var y=B(e);if(!y){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=$r();R?h+=R:h+=Ue();var _;e===null?_="null":ve(e)?_="array":e!==void 0&&e.$$typeof===s?(_="<"+(M(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,h)}var T=Ar(e,r,o,v,m);if(T==null)return T;if(y){var O=r.children;if(O!==void 0)if(d)if(ve(O)){for(var ee=0;ee<O.length;ee++)Je(O[ee],e);Object.freeze&&Object.freeze(O)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Je(O,e)}if(ae.call(r,"key")){var J=M(e),F=Object.keys(r).filter(function(Ur){return Ur!=="key"}),Ee=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[J+Ee]){var Nr=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Oe,J,mt,J),Ge[J+Oe]=!0}}return e===c?ht(m):bt(m),m}}function gt(e,t,r){return $e(e,t,r,!0)}function vt(e,t,r){return $e(e,t,r,!1)}var xt=vt,yt=gt;ne.Fragment=c,ne.jsx=xt,ne.jsxs=yt}()),ne}process.env.NODE_ENV==="production"?ke.exports=Xe():ke.exports=Qe();var n=ke.exports;const Me=({isOpen:p,onClose:S,onSubmit:T})=>{const[c,b]=x.useState({text:"",rating:void 0,feedbackType:"general",userEmail:"",userName:""}),[o,j]=x.useState(!1),[y,h]=x.useState("idle"),[_,g]=x.useState(""),[k,O]=x.useState(!1),M=x.useRef(null),N=x.useRef(null);x.useEffect(()=>(p?(O(!0),document.body.style.overflow="hidden",setTimeout(()=>{var i;(i=N.current)==null||i.focus()},150)):document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[p]),x.useEffect(()=>{const i=w=>{w.key==="Escape"&&p&&!o&&W()};return p&&document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[p,o]);const W=()=>{O(!1),setTimeout(()=>{S(),setTimeout(()=>{b({text:"",rating:void 0,feedbackType:"general",userEmail:"",userName:""}),h("idle"),g("")},100)},200)},K=async i=>{if(i.preventDefault(),!c.text.trim()){g("Please enter your feedback");return}j(!0),g("");try{await T(c),h("success"),setTimeout(()=>{W()},2e3)}catch(w){h("error"),g(w instanceof Error?w.message:"Failed to submit feedback")}finally{j(!1)}};if(!p)return null;const A=i=>{i.target===i.currentTarget&&!o&&W()},f={position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e4,padding:"16px",opacity:k?1:0,transition:"opacity 0.2s ease-in-out"},ae={backgroundColor:"white",borderRadius:"12px",padding:"24px",maxWidth:"500px",width:"100%",maxHeight:"90vh",overflowY:"auto",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",transform:k?"scale(1)":"scale(0.95)",opacity:k?1:0,transition:"all 0.2s ease-in-out"};return n.jsx("div",{onClick:A,style:f,role:"dialog","aria-modal":"true","aria-labelledby":"feedback-modal-title",children:n.jsxs("div",{ref:M,style:ae,onClick:i=>i.stopPropagation(),children:[n.jsxs("div",{style:{marginBottom:"24px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsx("h2",{id:"feedback-modal-title",style:{fontSize:"20px",fontWeight:"600",margin:0,color:"#111827"},children:"Send Feedback"}),n.jsx("button",{onClick:W,disabled:o,"aria-label":"Close feedback form",style:{background:"none",border:"none",fontSize:"24px",cursor:o?"not-allowed":"pointer",color:"#6b7280",padding:"0",lineHeight:"1",opacity:o?.5:1,transition:"color 0.2s"},onMouseEnter:i=>!o&&(i.currentTarget.style.color="#111827"),onMouseLeave:i=>!o&&(i.currentTarget.style.color="#6b7280"),children:"×"})]}),y==="success"&&n.jsxs("div",{style:{backgroundColor:"#d1fae5",border:"1px solid #6ee7b7",borderRadius:"8px",padding:"12px",marginBottom:"16px",color:"#065f46",display:"flex",alignItems:"center",gap:"8px",animation:"slideIn 0.3s ease-out"},role:"status","aria-live":"polite",children:[n.jsx("span",{style:{fontSize:"18px"},children:"✓"}),n.jsx("span",{children:"Thank you! Your feedback has been submitted."})]}),_&&n.jsxs("div",{style:{backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"8px",padding:"12px",marginBottom:"16px",color:"#991b1b",display:"flex",alignItems:"center",gap:"8px"},role:"alert","aria-live":"assertive",children:[n.jsx("span",{style:{fontSize:"18px"},children:"⚠"}),n.jsx("span",{children:_})]}),n.jsxs("form",{onSubmit:K,children:[n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsx("label",{htmlFor:"feedback-type",style:{display:"block",marginBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151"},children:"Type"}),n.jsxs("select",{id:"feedback-type",value:c.feedbackType,onChange:i=>b({...c,feedbackType:i.target.value}),disabled:o,style:{width:"100%",padding:"8px 12px",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"14px",backgroundColor:"white",cursor:o?"not-allowed":"pointer",opacity:o?.6:1},children:[n.jsx("option",{value:"general",children:"General Feedback"}),n.jsx("option",{value:"bug",children:"Bug Report"}),n.jsx("option",{value:"feature_request",children:"Feature Request"}),n.jsx("option",{value:"question",children:"Question"}),n.jsx("option",{value:"praise",children:"Praise"})]})]}),n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsx("label",{style:{display:"block",marginBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151"},children:"Rating (optional)"}),n.jsx("div",{style:{display:"flex",gap:"8px"},role:"group","aria-label":"Rating",children:[1,2,3,4,5].map(i=>n.jsx("button",{type:"button",onClick:()=>b({...c,rating:i}),disabled:o,"aria-label":`Rate ${i} stars`,"aria-pressed":c.rating===i,style:{background:"none",border:"none",fontSize:"28px",cursor:o?"not-allowed":"pointer",padding:"0",color:c.rating&&c.rating>=i?"#fbbf24":"#d1d5db",transition:"all 0.2s",opacity:o?.6:1,transform:"scale(1)"},onMouseEnter:w=>!o&&(w.currentTarget.style.transform="scale(1.2)"),onMouseLeave:w=>!o&&(w.currentTarget.style.transform="scale(1)"),children:"★"},i))})]}),n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsxs("label",{htmlFor:"feedback-text",style:{display:"block",marginBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151"},children:["Your Feedback ",n.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),n.jsx("textarea",{id:"feedback-text",ref:N,value:c.text,onChange:i=>b({...c,text:i.target.value}),placeholder:"Tell us what you think...",required:!0,disabled:o,rows:4,"aria-required":"true",style:{width:"100%",padding:"8px 12px",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"14px",resize:"vertical",fontFamily:"inherit",opacity:o?.6:1,cursor:o?"not-allowed":"text"}})]}),n.jsxs("div",{style:{marginBottom:"16px"},children:[n.jsx("label",{htmlFor:"feedback-name",style:{display:"block",marginBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151"},children:"Name (optional)"}),n.jsx("input",{id:"feedback-name",type:"text",value:c.userName,onChange:i=>b({...c,userName:i.target.value}),placeholder:"Your name",disabled:o,style:{width:"100%",padding:"8px 12px",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"14px",opacity:o?.6:1}})]}),n.jsxs("div",{style:{marginBottom:"24px"},children:[n.jsx("label",{htmlFor:"feedback-email",style:{display:"block",marginBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151"},children:"Email (optional)"}),n.jsx("input",{id:"feedback-email",type:"email",value:c.userEmail,onChange:i=>b({...c,userEmail:i.target.value}),placeholder:"your@email.com",disabled:o,style:{width:"100%",padding:"8px 12px",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"14px",opacity:o?.6:1}})]}),n.jsxs("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[n.jsx("button",{type:"button",onClick:W,disabled:o,style:{padding:"10px 20px",border:"1px solid #d1d5db",borderRadius:"6px",backgroundColor:"white",color:"#374151",fontSize:"14px",fontWeight:"500",cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transition:"all 0.2s"},onMouseEnter:i=>!o&&(i.currentTarget.style.backgroundColor="#f9fafb"),onMouseLeave:i=>!o&&(i.currentTarget.style.backgroundColor="white"),children:"Cancel"}),n.jsxs("button",{type:"submit",disabled:o||y==="success",style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:y==="success"?"#10b981":"#3b82f6",color:"white",fontSize:"14px",fontWeight:"500",cursor:o||y==="success"?"not-allowed":"pointer",opacity:o?.7:1,transition:"all 0.2s",display:"flex",alignItems:"center",gap:"8px"},children:[o&&n.jsx("span",{style:{display:"inline-block",width:"14px",height:"14px",border:"2px solid #ffffff",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 0.6s linear infinite"}}),n.jsx("span",{children:o?"Sending...":y==="success"?"✓ Sent!":"Send Feedback"})]})]})]}),n.jsx("style",{children:`
31
- @keyframes spin {
30
+ <%s key={someKey} {...props} />`,Ee,J,Nr,J),Ge[J+Ee]=!0}}return e===a?Lr(T):Wr(T),T}}function zr(e,r,o){return Ke(e,r,o,!0)}function Yr(e,r,o){return Ke(e,r,o,!1)}var qr=Yr,Br=zr;te.Fragment=a,te.jsx=qr,te.jsxs=Br}()),te}process.env.NODE_ENV==="production"?Y.exports=Xe():Y.exports=Qe();var i=Y.exports;const Ze=({label:n,fieldId:s,required:u,children:a})=>i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[i.jsxs("label",{htmlFor:s,style:{fontSize:"13px",fontWeight:500,color:"#374151"},children:[n,u&&i.jsx("span",{style:{color:"#ef4444",marginLeft:"3px"},children:"*"})]}),a]}),we=({field:n,value:s,onChange:u,disabled:a,multiline:f})=>{const t={width:"100%",padding:"8px 10px",border:"1px solid #e5e7eb",borderRadius:"8px",fontSize:"14px",fontFamily:"inherit",outline:"none",opacity:a?.6:1,boxSizing:"border-box",transition:"border-color 0.15s"};return f?i.jsx("textarea",{id:n.id,value:s,placeholder:n.placeholder,required:n.required,disabled:a,rows:4,onChange:l=>u(l.target.value),style:{...t,resize:"vertical",minHeight:"88px"},onFocus:l=>l.target.style.borderColor="#3b82f6",onBlur:l=>l.target.style.borderColor="#e5e7eb"}):i.jsx("input",{id:n.id,type:n.id.includes("email")?"email":"text",value:s,placeholder:n.placeholder,required:n.required,disabled:a,onChange:l=>u(l.target.value),style:t,onFocus:l=>l.target.style.borderColor="#3b82f6",onBlur:l=>l.target.style.borderColor="#e5e7eb"})},er=({field:n,value:s,onChange:u,disabled:a,primaryColor:f="#fbbf24"})=>i.jsx("div",{role:"group","aria-label":n.label,style:{display:"flex",gap:"6px"},children:[1,2,3,4,5].map(t=>i.jsx("button",{type:"button",disabled:a,"aria-label":`Rate ${t} stars`,"aria-pressed":s===t,onClick:()=>u(t),style:{background:"none",border:"none",fontSize:"26px",cursor:a?"not-allowed":"pointer",padding:"0",color:s!==null&&s>=t?f:"#d1d5db",transition:"transform 0.15s, color 0.15s",opacity:a?.6:1},onMouseEnter:l=>{a||(l.currentTarget.style.transform="scale(1.2)")},onMouseLeave:l=>{a||(l.currentTarget.style.transform="scale(1)")},children:"★"},t))}),rr=({field:n,value:s,onChange:u,disabled:a})=>i.jsxs("div",{children:[i.jsx("div",{style:{display:"flex",gap:"4px",flexWrap:"wrap"},children:Array.from({length:11},(f,t)=>{const l=s===t,c=t>=9?"#16a34a":t>=7?"#d97706":"#dc2626";return i.jsx("button",{type:"button",disabled:a,"aria-label":`Score ${t}`,"aria-pressed":l,onClick:()=>u(t),style:{width:"40px",height:"40px",borderRadius:"8px",border:`1.5px solid ${l?c:"#e5e7eb"}`,backgroundColor:l?c:"#ffffff",color:l?"#ffffff":"#374151",fontSize:"13px",fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.6:1,transition:"all 0.15s",flexShrink:0},onMouseEnter:p=>{!a&&!l&&(p.currentTarget.style.borderColor=c,p.currentTarget.style.backgroundColor=`${c}10`)},onMouseLeave:p=>{!a&&!l&&(p.currentTarget.style.borderColor="#e5e7eb",p.currentTarget.style.backgroundColor="#ffffff")},children:t},t)})}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"6px",fontSize:"11px",color:"#9ca3af"},children:[i.jsx("span",{children:n.lowLabel??"Not likely"}),i.jsx("span",{children:n.highLabel??"Very likely"})]})]}),tr=["😞","😕","😐","😊","😄"],nr=({field:n,value:s,onChange:u,disabled:a})=>{const f=n.emojiScale??tr;return i.jsx("div",{style:{display:"flex",gap:"8px",justifyContent:"center"},children:f.map((t,l)=>{const c=l+1,p=s===c;return i.jsx("button",{type:"button",disabled:a,"aria-label":`Score ${c}`,"aria-pressed":p,onClick:()=>u(c),style:{background:"none",border:`1.5px solid ${p?"#6b7280":"transparent"}`,borderRadius:"12px",padding:"6px 8px",fontSize:"28px",cursor:a?"not-allowed":"pointer",opacity:a?.6:p?1:.5,transform:p?"scale(1.2)":"scale(1)",transition:"all 0.15s"},onMouseEnter:g=>{a||(g.currentTarget.style.opacity="1")},onMouseLeave:g=>{a||(g.currentTarget.style.opacity=p?"1":"0.5")},children:t},c)})})},or=({field:n,value:s,onChange:u,disabled:a})=>i.jsxs("select",{id:n.id,value:s,disabled:a,required:n.required,onChange:f=>u(f.target.value),style:{width:"100%",padding:"8px 10px",border:"1px solid #e5e7eb",borderRadius:"8px",fontSize:"14px",fontFamily:"inherit",backgroundColor:"#ffffff",cursor:a?"not-allowed":"pointer",opacity:a?.6:1,outline:"none"},children:[i.jsx("option",{value:"",children:"Select an option…"}),(n.options??[]).map(f=>i.jsx("option",{value:f,children:f},f))]}),ar=({field:n,value:s,onChange:u,disabled:a})=>{const f=t=>{const l=s.includes(t)?s.filter(c=>c!==t):[...s,t];u(l)};return i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:(n.options??[]).map(t=>i.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",color:"#374151",cursor:a?"not-allowed":"pointer",opacity:a?.6:1},children:[i.jsx("input",{type:"checkbox",checked:s.includes(t),disabled:a,onChange:()=>f(t),style:{width:"15px",height:"15px",cursor:"inherit"}}),t]},t))})},ir=({value:n,onChange:s,disabled:u,primaryColor:a="#3b82f6"})=>i.jsx("div",{style:{display:"flex",gap:"10px"},children:[{label:"Yes",val:!0},{label:"No",val:!1}].map(({label:f,val:t})=>{const l=n===t;return i.jsx("button",{type:"button",disabled:u,onClick:()=>s(t),style:{padding:"8px 24px",borderRadius:"8px",border:`1.5px solid ${l?a:"#e5e7eb"}`,backgroundColor:l?a:"#ffffff",color:l?"#ffffff":"#374151",fontSize:"14px",fontWeight:500,cursor:u?"not-allowed":"pointer",opacity:u?.6:1,transition:"all 0.15s"},children:f},f)})}),Te=({fields:n,values:s,onChange:u,disabled:a=!1,primaryColor:f})=>i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:n.map(t=>{const l=s[t.id];return i.jsxs(Ze,{label:t.label,fieldId:t.id,required:t.required,children:[t.type==="textarea"&&i.jsx(we,{field:t,value:l??"",onChange:c=>u(t.id,c),disabled:a,multiline:!0}),t.type==="text"&&i.jsx(we,{field:t,value:l??"",onChange:c=>u(t.id,c),disabled:a}),t.type==="rating"&&i.jsx(er,{field:t,value:l??null,onChange:c=>u(t.id,c),disabled:a,primaryColor:f}),t.type==="nps"&&i.jsx(rr,{field:t,value:l??null,onChange:c=>u(t.id,c),disabled:a,primaryColor:f}),t.type==="csat"&&i.jsx(nr,{field:t,value:l??null,onChange:c=>u(t.id,c),disabled:a}),t.type==="select"&&i.jsx(or,{field:t,value:l??"",onChange:c=>u(t.id,c),disabled:a}),t.type==="multiselect"&&i.jsx(ar,{field:t,value:l??[],onChange:c=>u(t.id,c),disabled:a}),t.type==="boolean"&&i.jsx(ir,{field:t,value:l===void 0?null:l,onChange:c=>u(t.id,c),disabled:a,primaryColor:f})]},t.id)})});function ke(n){const[s,u]=x.useState({});return{values:s,handleChange:(l,c)=>{u(p=>({...p,[l]:c}))},validate:()=>{for(const l of n){if(!l.required)continue;const c=s[l.id];if(c==null||c===""||Array.isArray(c)&&c.length===0)return`"${l.label}" is required`}return null},reset:()=>u({})}}const sr=[{id:"nps_score",type:"nps",label:"How likely are you to recommend us to a friend or colleague?",required:!0,lowLabel:"Not likely",highLabel:"Very likely"},{id:"nps_reason",type:"textarea",label:"What is the main reason for your score?",placeholder:"Tell us more…",required:!1}],lr=[{id:"csat_score",type:"csat",label:"How satisfied are you with your experience today?",required:!0,emojiScale:["😞","😕","😐","😊","😄"]},{id:"csat_comment",type:"textarea",label:"Any other thoughts?",placeholder:"Optional — share anything on your mind.",required:!1}],pe=[{id:"feedback_type",type:"select",label:"Type",required:!1,options:["General feedback","Bug report","Feature request","Question","Praise"]},{id:"rating",type:"rating",label:"Rating (optional)",required:!1},{id:"text",type:"textarea",label:"Your feedback",placeholder:"Tell us what you think…",required:!0},{id:"user_name",type:"text",label:"Name (optional)",placeholder:"Your name",required:!1},{id:"user_email",type:"text",label:"Email (optional)",placeholder:"you@example.com",required:!1}],Ce=({isOpen:n,onClose:s,onSubmit:u,projectId:a,fields:f=pe,appearance:t={},widgetType:l="general"})=>{const[c,p]=x.useState(!1),[g,b]=x.useState(!1),[j,C]=x.useState("idle"),[$,D]=x.useState(""),ne=x.useRef(null),U=x.useRef(null),{values:k,handleChange:w,validate:G,reset:V}=ke(f),z=t.primaryColor??"#111827";x.useEffect(()=>(n?(p(!0),document.body.style.overflow="hidden",setTimeout(()=>{var E;return(E=U.current)==null?void 0:E.focus()},150)):document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[n]),x.useEffect(()=>{const E=B=>{B.key==="Escape"&&n&&!g&&I()};return n&&document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[n,g]);const I=()=>{p(!1),setTimeout(()=>{s(),setTimeout(()=>{V(),C("idle"),D("")},100)},200)},K=async E=>{E.preventDefault();const B=G();if(B){D(B);return}b(!0),D("");try{const W={project_id:a,fields:k,widget_type:l,source:"sdk",page_url:window.location.href,page_title:document.title,user_agent:navigator.userAgent,user_email:typeof k.user_email=="string"?k.user_email:void 0,user_name:typeof k.user_name=="string"?k.user_name:void 0,user_identifier:typeof k.user_email=="string"&&k.user_email||typeof k.user_name=="string"&&k.user_name||"anonymous"};await u(W),C("success"),setTimeout(()=>I(),2e3)}catch(W){C("error"),D(W instanceof Error?W.message:"Failed to submit feedback")}finally{b(!1)}},X=E=>{E.target===E.currentTarget&&!g&&I()};return n?i.jsx("div",{onClick:X,role:"dialog","aria-modal":"true","aria-labelledby":"ms-modal-title",style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e4,padding:"16px",opacity:c?1:0,transition:"opacity 0.2s ease-in-out"},children:i.jsxs("div",{ref:ne,onClick:E=>E.stopPropagation(),style:{backgroundColor:"#ffffff",borderRadius:"16px",padding:"24px",maxWidth:"480px",width:"100%",maxHeight:"90vh",overflowY:"auto",boxShadow:"0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04)",transform:c?"scale(1)":"scale(0.95)",opacity:c?1:0,transition:"all 0.2s ease-in-out"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"8px"},children:[i.jsxs("div",{ref:U,tabIndex:-1,children:[i.jsx("h2",{id:"ms-modal-title",style:{fontSize:"18px",fontWeight:600,margin:0,color:"#111827"},children:t.welcomeTitle??"Share your feedback"}),t.welcomeSubtitle&&i.jsx("p",{style:{fontSize:"13px",color:"#6b7280",marginTop:"4px"},children:t.welcomeSubtitle})]}),i.jsx("button",{onClick:I,disabled:g,"aria-label":"Close feedback form",style:{background:"none",border:"none",fontSize:"22px",cursor:g?"not-allowed":"pointer",color:"#9ca3af",lineHeight:1,padding:"0 0 0 12px",opacity:g?.5:1,transition:"color 0.15s",flexShrink:0},onMouseEnter:E=>{g||(E.currentTarget.style.color="#111827")},onMouseLeave:E=>{g||(E.currentTarget.style.color="#9ca3af")},children:"×"})]}),j==="success"&&i.jsxs("div",{role:"status","aria-live":"polite",style:{backgroundColor:"#d1fae5",border:"1px solid #6ee7b7",borderRadius:"8px",padding:"12px",marginBottom:"16px",color:"#065f46",fontSize:"14px",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("span",{children:"✓"}),i.jsx("span",{children:t.successMessage??"Thank you! Your feedback has been submitted."})]}),$&&i.jsxs("div",{role:"alert","aria-live":"assertive",style:{backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"8px",padding:"12px",marginBottom:"16px",color:"#991b1b",fontSize:"14px",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("span",{children:"⚠"}),i.jsx("span",{children:$})]}),i.jsxs("form",{onSubmit:K,style:{display:"flex",flexDirection:"column",gap:"0"},children:[i.jsx(Te,{fields:f,values:k,onChange:w,disabled:g||j==="success",primaryColor:z}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"24px"},children:[t.showBranding!==!1&&i.jsx("span",{style:{fontSize:"11px",color:"#d1d5db"},children:"Powered by MetricShift"}),i.jsxs("div",{style:{display:"flex",gap:"10px",marginLeft:"auto"},children:[i.jsx("button",{type:"button",onClick:I,disabled:g,style:{padding:"9px 18px",border:"1px solid #e5e7eb",borderRadius:"9999px",backgroundColor:"#ffffff",color:"#374151",fontSize:"14px",fontWeight:500,cursor:g?"not-allowed":"pointer",opacity:g?.5:1,transition:"background-color 0.15s"},onMouseEnter:E=>{g||(E.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:E=>{g||(E.currentTarget.style.backgroundColor="#ffffff")},children:"Cancel"}),i.jsxs("button",{type:"submit",disabled:g||j==="success",style:{padding:"9px 18px",border:"none",borderRadius:"9999px",backgroundColor:j==="success"?"#10b981":z,color:"#ffffff",fontSize:"14px",fontWeight:500,cursor:g||j==="success"?"not-allowed":"pointer",opacity:g?.7:1,transition:"opacity 0.15s",display:"flex",alignItems:"center",gap:"8px"},children:[g&&i.jsx("span",{style:{display:"inline-block",width:"13px",height:"13px",border:"2px solid #ffffff",borderTopColor:"transparent",borderRadius:"50%",animation:"ms-spin 0.6s linear infinite"}}),g?"Sending…":j==="success"?"✓ Sent!":"Submit"]})]})]})]}),i.jsx("style",{children:`
31
+ @keyframes ms-spin {
32
32
  to { transform: rotate(360deg); }
33
33
  }
34
- @keyframes slideIn {
35
- from {
36
- opacity: 0;
37
- transform: translateY(-10px);
38
- }
39
- to {
40
- opacity: 1;
41
- transform: translateY(0);
42
- }
43
- }
44
- `})]})})};async function Ae(p,S,T){const c={"Content-Type":"application/json"};T&&(c.Authorization=`Bearer ${T}`);try{const b=await fetch(`${p}/api/feedback`,{method:"POST",headers:c,body:JSON.stringify(S)});if(!b.ok){const o=await b.json().catch(()=>({}));throw new Error(o.message||`HTTP ${b.status}: ${b.statusText}`)}return await b.json()}catch(b){throw b instanceof Error?b:new Error("Failed to submit feedback")}}const Ze=(p,S=.12)=>{const T=/^#([0-9a-fA-F]{6})$/.exec(p);if(!T)return p;const c=parseInt(T[1],16),b=Math.max(0,Math.min(255,Math.round((c>>16&255)*(1-S)))),o=Math.max(0,Math.min(255,Math.round((c>>8&255)*(1-S)))),j=Math.max(0,Math.min(255,Math.round((c&255)*(1-S)))),y=h=>h.toString(16).padStart(2,"0");return`#${y(b)}${y(o)}${y(j)}`},qe=({projectId:p,apiKey:S,apiUrl:T="https://metricshift-sdk-be-production.up.railway.app",buttonText:c="Feedback",subtitleText:b,showIcon:o=!1,avatarSrc:j,avatarAlt:y,avatarSize:h=40,position:_="bottom-right",size:g="medium",buttonColor:k,buttonHoverColor:O,buttonTextColor:M,customStyles:N,customClassName:W="",variant:K="outline",accentColor:A,disabled:f=!1,autoOpen:ae=!1,onOpen:i,onClose:w,onSuccess:ue,onError:fe})=>{const[de,oe]=x.useState(ae),[pe,be]=x.useState(!1),[he,I]=x.useState(!1),D=()=>{f||(oe(!0),i==null||i())},U=()=>{oe(!1),w==null||w()},ge=async E=>{try{const z={...E,project_id:p,page_url:window.location.href,page_title:document.title,user_agent:navigator.userAgent,user_identifier:E.userEmail||"anonymous",user_email:E.userEmail,user_name:E.userName,feedback_type:E.feedbackType},q=await Ae(T,z,S);ue&&(q!=null&&q.id)&&ue(q.id)}catch(z){throw fe&&z instanceof Error&&fe(z),z}},ve={small:{padding:"6px 14px",fontSize:"13px",iconSize:"14px"},medium:{padding:"10px 18px",fontSize:"15px",iconSize:"18px"},large:{padding:"14px 24px",fontSize:"17px",iconSize:"22px"}},ie=!!j,xe=()=>{if(_==="inline")return{position:"relative"};const E={position:"fixed",zIndex:9999};return _.includes("bottom")?E.bottom="20px":E.top="20px",_.includes("right")?E.right="20px":E.left="20px",E},G=ve[g],ye=xe(),$=A??k??"#111827",X=_!=="inline"?"0 12px 30px rgba(15, 23, 42, 0.12)":"none";let V="#ffffff",se="#f3f4f6",Y=M||$,B="rgba(15, 23, 42, 0.08)",L=1;K==="solid"?(V=k||$,se=O||Ze(V,.12),Y=M||"#ffffff",B="transparent",L=0):K==="ghost"&&(V="transparent",se="#f3f4f6",Y=M||$,B="transparent",L=0);const le={"--ms-feedback-bg":V,"--ms-feedback-color":Y,"--ms-feedback-border":B,"--ms-feedback-radius":"9999px","--ms-feedback-shadow":X},je=ie?{small:"8px 14px",medium:"12px 18px",large:"16px 24px"}[g]:G.padding,me={...le,padding:je,backgroundColor:pe&&!f?se:V,color:Y,border:L?`1px solid ${B}`:"1px solid transparent",borderRadius:"9999px",fontSize:G.fontSize,fontWeight:600,cursor:f?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",boxShadow:he?`${X}, 0 0 0 3px rgba(59,130,246,0.45)`:X,transition:"all 0.2s ease",opacity:f?.6:1,transform:pe&&!f?"translateY(-2px)":"translateY(0)",outline:"none",position:"relative",...N},_e={fontSize:G.iconSize,lineHeight:1,display:"flex",alignItems:"center"},we={display:"flex",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2},Q={fontWeight:600,fontSize:"inherit"},H={marginTop:"2px",fontWeight:400,fontSize:"12px",opacity:.9},Se={...ye,display:"inline-flex",alignItems:"center",justifyContent:"center"},Ee={position:"absolute",top:0,left:"50%",transform:"translate(-50%, -75%)",width:h,height:h,borderRadius:"9999px",overflow:"hidden",boxShadow:"0 8px 22px rgba(15,23,42,0.22)",border:"2px solid #ffffff",backgroundColor:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,pointerEvents:"none"},Z={width:"100%",height:"100%",objectFit:"cover"};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:Se,children:[ie&&n.jsx("div",{style:Ee,"aria-hidden":y?void 0:!0,children:j&&n.jsx("img",{src:j,alt:y||"",style:Z})}),n.jsxs("button",{onClick:D,onMouseEnter:()=>!f&&be(!0),onMouseLeave:()=>!f&&be(!1),onFocus:()=>I(!0),onBlur:()=>I(!1),disabled:f,className:`ms-feedback-button ${W}`.trim(),style:me,"aria-label":"Open feedback form","aria-pressed":de,"aria-disabled":f,role:"button",tabIndex:f?-1:0,onKeyDown:E=>{!f&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),D())},children:[o&&n.jsx("span",{style:_e,"aria-hidden":"true",children:"💬"}),n.jsxs("div",{style:we,children:[n.jsx("span",{style:Q,children:c}),b&&n.jsx("span",{style:H,children:b})]})]})]}),n.jsx(Me,{isOpen:de,onClose:U,onSubmit:ge})]})},De=x.createContext(null),et=()=>{const p=x.useContext(De);if(!p)throw new Error("useMetricShift must be used within MetricShiftProvider");return p},tt=({config:p,children:S})=>n.jsx(De.Provider,{value:p,children:S});let Re=null;const rt={init:p=>{Re={apiUrl:"http://localhost:3000",...p},console.log("✅ MetricShift SDK initialized",{projectId:p.projectId,apiUrl:Re.apiUrl})},getConfig:()=>Re};P.FeedbackButton=qe,P.FeedbackModal=Me,P.MetricShift=rt,P.MetricShiftProvider=tt,P.submitFeedback=Ae,P.useMetricShift=et,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
34
+ `})]})}):null};class cr{constructor(){N(this,"listeners",new Set)}on(s){return this.listeners.add(s),()=>this.listeners.delete(s)}emit(s){this.listeners.forEach(u=>u(s))}clear(){this.listeners.clear()}}const q=new cr,ur="msw_";function Re(n,s){return`${ur}${n}_${s}`}function fr(n){try{return localStorage.getItem(Re(n,"shown"))==="1"}catch{return!1}}function dr(n){try{localStorage.setItem(Re(n,"shown"),"1")}catch{}}class Pe{constructor(s,u,a={}){N(this,"projectId");N(this,"trigger");N(this,"session");N(this,"cleanupFns",[]);N(this,"fired",!1);this.projectId=s,this.trigger=u,this.session=a}start(){if(!(this.session.showOnce&&fr(this.projectId)))switch(this.trigger.type){case"auto":this.fire();break;case"delay":{const s=this.trigger.delay??3e3,u=setTimeout(()=>this.fire(),s);this.cleanupFns.push(()=>clearTimeout(u));break}}}fireManual(s){this.fire(s)}fire(s){this.fired||(this.fired=!0,this.session.showOnce&&dr(this.projectId),q.emit({type:"open",payload:{flowId:s}}))}reset(){this.fired=!1}destroy(){this.cleanupFns.forEach(s=>s()),this.cleanupFns=[]}}const Fe=x.createContext(null),Oe=()=>{const n=x.useContext(Fe);if(!n)throw new Error("useMetricShift must be used within MetricShiftProvider");return n};let he=null;const Ie={init:n=>{he={apiUrl:"https://metricshift-sdk-be-production.up.railway.app",...n},console.log("✅ MetricShift SDK initialised",{projectId:n.projectId,apiUrl:he.apiUrl})},open:n=>{q.emit({type:"open",payload:{flowId:n}})},close:()=>{q.emit({type:"close"})},trigger:n=>{q.emit({type:"trigger",payload:{eventName:n}})},getConfig:()=>he},pr=({config:n,children:s})=>{const[u,a]=x.useState(!1),f=x.useRef(null),t=n.widget??{},l=t.trigger??{type:"manual"},c=t.session??{};x.useEffect(()=>{Ie.init(n)},[]),x.useEffect(()=>q.on(j=>{var C;j.type==="open"&&a(!0),j.type==="close"&&(a(!1),(C=f.current)==null||C.reset())}),[]),x.useEffect(()=>{const b=new Pe(n.projectId,l,c);return f.current=b,b.start(),()=>b.destroy()},[n.projectId]);const p=b=>{q.emit({type:"open",payload:{flowId:b}})},g=()=>{q.emit({type:"close"})};return i.jsx(Fe.Provider,{value:{config:n,isOpen:u,openWidget:p,closeWidget:g},children:s})};async function hr(n,s,u){const a={"Content-Type":"application/json"};u&&(a.Authorization=`Bearer ${u}`);try{const f=await fetch(`${n}/api/feedback`,{method:"POST",headers:a,body:JSON.stringify(s)});if(!f.ok){const t=await f.json().catch(()=>({}));throw new Error(t.message||`HTTP ${f.status}: ${f.statusText}`)}return await f.json()}catch(f){throw f instanceof Error?f:new Error("Failed to submit feedback")}}const gr=(n,s=.12)=>{const u=/^#([0-9a-fA-F]{6})$/.exec(n);if(!u)return n;const a=parseInt(u[1],16),f=Math.max(0,Math.round((a>>16&255)*(1-s))),t=Math.max(0,Math.round((a>>8&255)*(1-s))),l=Math.max(0,Math.round((a&255)*(1-s))),c=p=>p.toString(16).padStart(2,"0");return`#${c(f)}${c(t)}${c(l)}`},yr=({projectId:n,apiKey:s,apiUrl:u="https://metricshift-sdk-be-production.up.railway.app",fields:a=pe,widgetType:f="general",appearance:t={},onOpen:l,onClose:c,onSuccess:p,onError:g})=>{let b=!1,j=()=>{},C=()=>{};try{const L=Oe();b=L.isOpen,j=L.openWidget,C=L.closeWidget}catch{const[L,P]=x.useState(!1);b=L,j=()=>P(!0),C=()=>P(!1)}const[$,D]=x.useState(!1),[ne,U]=x.useState(!1),{buttonText:k="Feedback",subtitleText:w,variant:G="outline",primaryColor:V="#111827",position:z="bottom-right",avatarSrc:I,avatarAlt:K,avatarSize:X=40}=t,E=V,B=gr(V);let W="#ffffff",Q="#f3f4f6",M=V,A="rgba(15,23,42,0.08)";G==="solid"?(W=E,Q=B,M="#ffffff",A="transparent"):G==="ghost"&&(W="transparent",Q="#f3f4f6",A="transparent");const H=z==="inline"?{position:"relative"}:{position:"fixed",zIndex:9999,...z.includes("bottom")?{bottom:"20px"}:{top:"20px"},...z.includes("right")?{right:"20px"}:{left:"20px"}},oe=z!=="inline"?"0 12px 30px rgba(15,23,42,0.12)":"none",ie=()=>{j(),l==null||l()},se=()=>{C(),c==null||c()},le=async L=>{try{const P=await hr(u,L,s);p&&(P!=null&&P.id)&&p(P.id)}catch(P){throw g&&P instanceof Error&&g(P),P}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{...H,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[I&&i.jsx("div",{"aria-hidden":!K,style:{position:"absolute",top:0,left:"50%",transform:"translate(-50%, -75%)",width:X,height:X,borderRadius:"9999px",overflow:"hidden",boxShadow:"0 8px 22px rgba(15,23,42,0.22)",border:"2px solid #ffffff",backgroundColor:"#e5e7eb",pointerEvents:"none",zIndex:1},children:i.jsx("img",{src:I,alt:K??"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),i.jsx("button",{type:"button",onClick:ie,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),onFocus:()=>U(!0),onBlur:()=>U(!1),"aria-label":"Open feedback form","aria-pressed":b,className:"ms-feedback-button",style:{padding:I?"12px 18px":"10px 18px",backgroundColor:$?Q:W,color:M,border:`1px solid ${A}`,borderRadius:"9999px",fontSize:"15px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",boxShadow:ne?`${oe}, 0 0 0 3px rgba(59,130,246,0.45)`:oe,transition:"all 0.2s ease",transform:$?"translateY(-2px)":"translateY(0)",outline:"none"},children:i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2},children:[i.jsx("span",{style:{fontWeight:600,fontSize:"15px"},children:k}),w&&i.jsx("span",{style:{marginTop:"2px",fontWeight:400,fontSize:"12px",opacity:.9},children:w})]})})]}),i.jsx(Ce,{isOpen:b,onClose:se,onSubmit:le,projectId:n,fields:a,appearance:t,widgetType:f})]})},xr="msw_";class vr{constructor(s){N(this,"projectId");this.projectId=s}key(s){return`${xr}${this.projectId}_${s}`}hasShownBefore(){try{return localStorage.getItem(this.key("shown"))==="1"}catch{return!1}}markShown(){try{localStorage.setItem(this.key("shown"),"1")}catch{}}clearShown(){try{localStorage.removeItem(this.key("shown"))}catch{}}}S.CSAT_PRESET=lr,S.FeedbackButton=yr,S.FeedbackModal=Ce,S.FormRenderer=Te,S.GENERAL_PRESET=pe,S.MetricShift=Ie,S.MetricShiftProvider=pr,S.NPS_PRESET=sr,S.SessionManager=vr,S.TriggerEngine=Pe,S.eventBus=q,S.useFormState=ke,S.useMetricShift=Oe,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
45
35
  //# sourceMappingURL=index.umd.js.map