event-services
Version:
Collection of hooks, components, generics (buttons, containers, styles, tools) for creating web applications for guest management for any type of events: weddings, parties, graduations that require guest confirmation and display useful information to gues
28 lines (24 loc) • 14.5 kB
JavaScript
var yr=require("./index2.css");const Pe=require("react");var X={exports:{}},A={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Oe;function ur(){if(Oe)return A;Oe=1;var c=Pe,f=Symbol.for("react.element"),h=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,E=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function C(m,d,w){var g,R={},P=null,W=null;w!==void 0&&(P=""+w),d.key!==void 0&&(P=""+d.key),d.ref!==void 0&&(W=d.ref);for(g in d)b.call(d,g)&&!O.hasOwnProperty(g)&&(R[g]=d[g]);if(m&&m.defaultProps)for(g in d=m.defaultProps,d)R[g]===void 0&&(R[g]=d[g]);return{$$typeof:f,type:m,key:P,ref:W,props:R,_owner:E.current}}return A.Fragment=h,A.jsx=C,A.jsxs=C,A}var I={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ce;function lr(){return Ce||(Ce=1,process.env.NODE_ENV!=="production"&&function(){var c=Pe,f=Symbol.for("react.element"),h=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),m=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Q=Symbol.iterator,Se="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[Se];return typeof r=="function"?r:null}var x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];we("error",e,t)}}function we(e,r,t){{var n=x.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var xe=!1,ke=!1,$e=!1,Fe=!1,De=!1,ee;ee=Symbol.for("react.module.reference");function Ae(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===O||De||e===E||e===w||e===g||Fe||e===W||xe||ke||$e||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===R||e.$$typeof===C||e.$$typeof===m||e.$$typeof===d||e.$$typeof===ee||e.getModuleId!==void 0))}function Ie(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function re(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 b:return"Fragment";case h:return"Portal";case O:return"Profiler";case E:return"StrictMode";case w:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return re(r)+".Consumer";case C:var t=e;return re(t._context)+".Provider";case d:return Ie(e,e.render,"ForwardRef");case R:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case P:{var i=e,s=i._payload,o=i._init;try{return _(o(s))}catch{return null}}}return null}var S=Object.assign,F=0,te,ne,ae,oe,ie,se,ue;function le(){}le.__reactDisabledLog=!0;function We(){{if(F===0){te=console.log,ne=console.info,ae=console.warn,oe=console.error,ie=console.group,se=console.groupCollapsed,ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ne(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:oe}),group:S({},e,{value:ie}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ue})})}F<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=x.ReactCurrentDispatcher,B;function N(e,r,t){{if(B===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
`+B+e}}var q=!1,Y;{var Ye=typeof WeakMap=="function"?WeakMap:Map;Y=new Ye}function ce(e,r){if(!e||q)return"";{var t=Y.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=U.current,U.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(T){n=T}Reflect.construct(e,[],o)}else{try{o.call()}catch(T){n=T}e.call(o.prototype)}}else{try{throw Error()}catch(T){n=T}e()}}catch(T){if(T&&n&&typeof T.stack=="string"){for(var a=T.stack.split(`
`),p=n.stack.split(`
`),u=a.length-1,l=p.length-1;u>=1&&l>=0&&a[u]!==p[l];)l--;for(;u>=1&&l>=0;u--,l--)if(a[u]!==p[l]){if(u!==1||l!==1)do if(u--,l--,l<0||a[u]!==p[l]){var y=`
`+a[u].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&Y.set(e,y),y}while(u>=1&&l>=0);break}}}finally{q=!1,U.current=s,Ne(),Error.prepareStackTrace=i}var $=e?e.displayName||e.name:"",Te=$?N($):"";return typeof e=="function"&&Y.set(e,Te),Te}function Le(e,r,t){return ce(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return ce(e,Ve(e));if(typeof e=="string")return N(e);switch(e){case w:return N("Suspense");case g:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Le(e.render);case R:return L(e.type,r,t);case P:{var n=e,i=n._payload,s=n._init;try{return L(s(i),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,fe={},de=x.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Me(e,r,t,n,i){{var s=Function.call.bind(V);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){a=u}a&&!(a instanceof Error)&&(M(i),v("%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).",n||"React class",t,o,typeof a),M(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,M(i),v("Failed %s type: %s",t,a.message),M(null))}}}var Ue=Array.isArray;function J(e){return Ue(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function qe(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(qe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),ve(e)}var D=x.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},be,ge,G;G={};function Ge(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ze(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ke(e,r){if(typeof e.ref=="string"&&D.current&&r&&D.current.stateNode!==r){var t=_(D.current.type);G[t]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',_(D.current.type),e.ref),G[t]=!0)}}function He(e,r){{var t=function(){be||(be=!0,v("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Xe(e,r){{var t=function(){ge||(ge=!0,v("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ze=function(e,r,t,n,i,s,o){var a={$$typeof:f,type:e,key:r,ref:t,props:o,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Qe(e,r,t,n,i){{var s,o={},a=null,p=null;t!==void 0&&(pe(t),a=""+t),ze(r)&&(pe(r.key),a=""+r.key),Ge(r)&&(p=r.ref,Ke(r,i));for(s in r)V.call(r,s)&&!Je.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var u=e.defaultProps;for(s in u)o[s]===void 0&&(o[s]=u[s])}if(a||p){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&He(o,l),p&&Xe(o,l)}return Ze(e,a,p,i,n,D.current,o)}}var z=x.ReactCurrentOwner,ye=x.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var K;K=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function he(){{if(z.current){var e=_(z.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function er(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var me={};function rr(e){{var r=he();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function Ee(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=rr(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),k(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),k(null)}}function Re(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Ee(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var i=je(e);if(typeof i=="function"&&i!==e.entries)for(var s=i.call(e),o;!(o=s.next()).done;)H(o.value)&&Ee(o.value,r)}}}function tr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=_(r);Me(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var i=_(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function nr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}function _e(e,r,t,n,i,s){{var o=Ae(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=er(i);p?a+=p:a+=he();var u;e===null?u="null":J(e)?u="array":e!==void 0&&e.$$typeof===f?(u="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var l=Qe(e,r,t,i,s);if(l==null)return l;if(o){var y=r.children;if(y!==void 0)if(n)if(J(y)){for(var $=0;$<y.length;$++)Re(y[$],e);Object.freeze&&Object.freeze(y)}else v("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 Re(y,e)}return e===b?nr(l):tr(l),l}}function ar(e,r,t){return _e(e,r,t,!0)}function or(e,r,t){return _e(e,r,t,!1)}var ir=or,sr=ar;I.Fragment=b,I.jsx=ir,I.jsxs=sr}()),I}process.env.NODE_ENV==="production"?X.exports=ur():X.exports=lr();var j=X.exports;const Z=(c,f)=>{let h=[];return Object.keys(c).map(b=>{f[b]&&h.push(c[b])}),h.join(" ")},cr={round:"round"},fr=({clasName:c="",disabled:f=!1,text:h,onClick:b,href:E,target:O="_blank",...C})=>{const m=Z(cr,C);return E&&O?j.jsx("a",{className:`btn ${m} ${c}`,href:E,target:O,children:h}):j.jsx("button",{className:`btn ${m} ${c}`,disabled:f,onClick:()=>{b&&b()},children:h})};const dr={borderRadius:"border-radius",bordered:"bordered"},vr=({source:c,footerText:f,className:h="",...b})=>{const E=Z(dr,b);return j.jsx("figure",{className:"figure-container","data-footer":f,children:j.jsx("img",{className:`${E} ${h}`,src:c})})};const pr=({text:c,className:f=""})=>j.jsx("h1",{className:`title ${f}`,children:c});const br=({text:c,className:f=""})=>j.jsx("h5",{className:`subtitle ${f}`,children:c}),gr={Title:pr,Subtitle:br};exports.Button=fr;exports.FigureImg=vr;exports.Typography=gr;exports.jsxRuntimeExports=j;exports.mapPropsToClasses=Z;