@sudobility/marketing-components 1.1.0 → 2.0.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.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +726 -1077
- package/dist/index.umd.js +3 -3
- package/dist/internal-link-clusters.d.ts +1 -1
- package/dist/internal-link-clusters.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/feature-grid.d.ts +0 -52
- package/dist/feature-grid.d.ts.map +0 -1
- package/dist/funnel-chart.d.ts +0 -33
- package/dist/funnel-chart.d.ts.map +0 -1
- package/dist/survey-builder.d.ts +0 -33
- package/dist/survey-builder.d.ts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(C,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("@sudobility/components"),require("@sudobility/design")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components","@sudobility/design"],A):(C=typeof globalThis<"u"?globalThis:C||self,A(C.Components={},C.React,C.components,C.design))})(this,(function(C,A,R,M){"use strict";function Ke(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=Ke(A);var K={exports:{}},J={};var Ee;function Ze(){if(Ee)return J;Ee=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var i in a)i!=="key"&&(o[i]=a[i])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:l,ref:a!==void 0?a:null,props:o}}return J.Fragment=r,J.jsx=t,J.jsxs=t,J}var G={};var Re;function Qe(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===oe?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case w:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case H:return"Suspense";case z:return"SuspenseList";case D:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case E:return"Portal";case I:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case O:var x=s.render;return s=s.displayName,s||(s=x.displayName||x.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Y:return x=s.displayName||null,x!==null?x:e(s.type)||"Memo";case T:x=s._payload,s=s._init;try{return e(s(x))}catch{}}return null}function r(s){return""+s}function t(s){try{r(s);var x=!1}catch{x=!0}if(x){x=console;var S=x.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return S.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),r(s)}}function n(s){if(s===w)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===T)return"<...>";try{var x=e(s);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function a(){var s=ye.A;return s===null?null:s.getOwner()}function o(){return Error("react-stack-top-frame")}function l(s){if(Ye.call(s,"key")){var x=Object.getOwnPropertyDescriptor(s,"key").get;if(x&&x.isReactWarning)return!1}return s.key!==void 0}function i(s,x){function S(){Be||(Be=!0,console.error("%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://react.dev/link/special-props)",x))}S.isReactWarning=!0,Object.defineProperty(s,"key",{get:S,configurable:!0})}function c(){var s=e(this.type);return Je[s]||(Je[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function f(s,x,S,P,le,we){var N=S.ref;return s={$$typeof:y,type:s,key:x,props:S,_owner:P},(N!==void 0?N:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:c}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function m(s,x,S,P,le,we){var N=x.children;if(N!==void 0)if(P)if(Fr(N)){for(P=0;P<N.length;P++)d(N[P]);Object.freeze&&Object.freeze(N)}else console.error("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 d(N);if(Ye.call(x,"key")){N=e(s);var B=Object.keys(x).filter(function(Ir){return Ir!=="key"});P=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",Xe[N+P]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,N,S,Y,S),tt[S+N]=!0)}if(S=null,j!==void 0&&(t(j),S=""+j),l(v)&&(t(v.key),S=""+v.key),"key"in v){j={};for(var Ce in v)Ce!=="key"&&(j[Ce]=v[Ce])}else j=v;return S&&i(j,typeof u=="function"?u.displayName||u.name||"Unknown":u),d(u,S,j,a(),le,Ee)}function f(u){p(u)?u._store&&(u._store.validated=1):typeof u=="object"&&u!==null&&u.$$typeof===L&&(u._payload.status==="fulfilled"?p(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function p(u){return typeof u=="object"&&u!==null&&u.$$typeof===x}var b=F,x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),ke=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ke=Object.prototype.hasOwnProperty,Xr=Array.isArray,we=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(u){return u()}};var Xe,Ze={},Qe=b.react_stack_bottom_frame.bind(b,o)(),et=we(n(o)),tt={};G.Fragment=y,G.jsx=function(u,v,j){var N=1e4>ke.recentlyCreatedOwnerStacks++;return m(u,v,j,!1,N?Error("react-stack-top-frame"):Qe,N?we(n(u)):et)},G.jsxs=function(u,v,j){var N=1e4>ke.recentlyCreatedOwnerStacks++;return m(u,v,j,!0,N?Error("react-stack-top-frame"):Qe,N?we(n(u)):et)}})()),G}var Ne;function ot(){return Ne||(Ne=1,process.env.NODE_ENV==="production"?X.exports=nt():X.exports=at()),X.exports}var h=ot();const lt=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"CrmDashboard",children:r||"CrmDashboard Component"}),it=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UctaUbanner",children:r||"UctaUbanner Component"});function Se(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=Se(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function st(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=Se(e))&&(n&&(n+=" "),n+=r);return n}const Pe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Le=st,ie=(e,r)=>t=>{var n;if(r?.variants==null)return Le(e,t?.class,t?.className);const{variants:a,defaultVariants:o}=r,l=Object.keys(a).map(d=>{const m=t?.[d],f=o?.[d];if(m===null)return null;const p=Pe(m)||Pe(f);return a[d][p]}),i=t&&Object.entries(t).reduce((d,m)=>{let[f,p]=m;return p===void 0||(d[f]=p),d},{}),s=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:f,className:p,...b}=m;return Object.entries(b).every(x=>{let[C,y]=x;return Array.isArray(y)?y.includes({...o,...i}[C]):{...o,...i}[C]===y})?[...d,f,p]:d},[]);return Le(e,l,s,t?.class,t?.className)},ut=ie("grid gap-8",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{columns:3,spacing:"md"}}),ct=ie("group transition-all duration-300",{variants:{variant:{default:"text-center",left:"text-left",hoverable:"text-center hover:transform hover:scale-105 cursor-pointer",card:"bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",minimal:"text-center space-y-4"},animation:{none:"",hover:"hover:transform hover:scale-105",float:"hover:-translate-y-2"}},defaultVariants:{variant:"default",animation:"hover"}}),dt=ie("flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",{variants:{size:{sm:"w-16 h-16",md:"w-20 h-20",lg:"w-24 h-24"},style:{gradient:"bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",solid:"bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",outline:"border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",colorful:"group-hover:scale-110"},position:{center:"mx-auto",left:"",right:"ml-auto"}},defaultVariants:{size:"md",style:"gradient",position:"center"}}),ft={success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},mt=({className:e,features:r,columns:t=3,spacing:n="md",cardVariant:a="default",cardAnimation:o="hover",iconSize:l="md",iconStyle:i="gradient",iconPosition:s="center",titleClass:d,descriptionClass:m,animate:f=!0,animationDelay:p=0,staggerDelay:b=100,onFeatureClick:x,defaultLinkText:C="Learn more"})=>{const y=(g,w)=>{if(i==="colorful"&&g.gradient)return{background:`linear-gradient(135deg, ${g.gradient.from}, ${g.gradient.to})`};if(i==="colorful"){const T=[{from:"#3B82F6",to:"#1D4ED8"},{from:"#10B981",to:"#059669"},{from:"#8B5CF6",to:"#7C3AED"},{from:"#F59E0B",to:"#D97706"},{from:"#EF4444",to:"#DC2626"},{from:"#06B6D4",to:"#0891B2"}],_=T[w%T.length];return{background:`linear-gradient(135deg, ${_.from}, ${_.to})`}}},k=(g,w)=>{const T=h.jsxs("div",{className:E.cn(ct({variant:a,animation:o})),onClick:()=>x?.(g),role:x?"button":void 0,tabIndex:x?0:void 0,children:[g.badge&&h.jsx("div",{className:"mb-4",children:h.jsx("span",{className:E.cn("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",ft[g.badge.variant||"default"]),children:g.badge.text})}),h.jsx("div",{className:E.cn(dt({size:l,style:i,position:s})),style:y(g,w),children:h.jsx("div",{className:E.cn("flex items-center justify-center",i==="colorful"?"text-white":"text-blue-600 dark:text-blue-400"),children:g.icon})}),h.jsx("h3",{className:E.cn("text-xl font-bold text-gray-900 dark:text-white mb-4",d),children:g.title}),h.jsx("div",{className:E.cn("text-gray-600 dark:text-gray-300 leading-relaxed",m),children:g.description}),g.link&&h.jsx("div",{className:"mt-6",children:h.jsxs("a",{href:g.link.href,className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",children:[g.link.text||C,h.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]});return h.jsx("div",{children:T},g.id||w)};return h.jsx("div",{className:E.cn(ut({columns:t,spacing:n}),e),children:r.map(k)})},se=(e,r,t,n)=>({icon:e,title:r,description:t,...n}),ht=e=>[se(h.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e?.passwordlessTitle||"Passwordless Security",e?.passwordlessDescription||"Authenticate using your Web3 wallet - no passwords to remember or lose."),se(h.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),e?.encryptionTitle||"End-to-End Encryption",e?.encryptionDescription||"Your emails are encrypted and only you can read them.")];function gt({title:e,titleId:r,...t},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},t),e?c.createElement("title",{id:r},e):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const pt=c.forwardRef(gt),bt=({title:e,description:r,icon:t=pt,iconVariant:n="success",size:a="md",className:o})=>{const l={primary:"bg-blue-400 text-blue-900",success:"bg-green-400 text-emerald-900",warning:"bg-yellow-400 text-yellow-900",info:"bg-cyan-400 text-cyan-900",gradient:"bg-gradient-to-br from-blue-400 to-purple-500 text-white"},s={sm:{container:"gap-2",icon:"p-1.5",iconSize:"h-4 w-4",title:M.textVariants.body.md(),description:M.textVariants.body.sm()},md:{container:"gap-3",icon:"p-2",iconSize:"h-5 w-5",title:M.textVariants.body.strong.md(),description:M.textVariants.body.md()},lg:{container:"gap-4",icon:"p-3",iconSize:"h-6 w-6",title:M.textVariants.heading.h4(),description:M.textVariants.body.md()}}[a];return h.jsxs("div",{className:E.cn("flex items-start",s.container,o),children:[h.jsx("div",{className:E.cn("rounded-full flex-shrink-0",s.icon,l[n]),children:h.jsx(t,{className:s.iconSize})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:s.title,children:e}),r&&h.jsx("p",{className:E.cn(s.description,"mt-1 text-gray-600 dark:text-gray-300"),children:r})]})]})},xt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfeatureUspotlight",children:r||"UfeatureUspotlight Component"}),yt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfunnelUchart",children:r||"UfunnelUchart Component"}),vt=({badgeIcon:e,badgeText:r,badgeColor:t="blue",title:n,subtitle:a,description:o,primaryButton:l,secondaryButton:i,className:s,children:d})=>{const f={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[t];return h.jsx("section",{className:E.cn("py-20",s),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[h.jsxs("div",{className:E.cn("inline-flex items-center border px-6 py-3 rounded-full mb-6",f),children:[e&&h.jsx("span",{className:"mr-3",children:e}),h.jsx("span",{className:"font-semibold",children:r})]}),h.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof n=="string"?h.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):n,a&&h.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:a})]}),h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:o}),(l||i)&&h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[l&&(l.href?h.jsx("a",{href:l.href,className:E.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",l.className),children:l.text}):h.jsx("button",{onClick:l.onClick,className:E.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",l.className),children:l.text})),i&&(i.href?h.jsx("a",{href:i.href,className:E.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",i.className),children:i.text}):h.jsx("button",{onClick:i.onClick,className:E.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",i.className),children:i.text}))]}),d]})})};function P(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function U(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ue({pathname:e="/",search:r="",hash:t=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function ce(e){let r={};if(e){let t=e.indexOf("#");t>=0&&(r.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(r.search=e.substring(n),e=e.substring(0,n)),e&&(r.pathname=e)}return r}function Te(e,r,t="/"){return kt(e,r,t,!1)}function kt(e,r,t,n){let a=typeof r=="string"?ce(r):r,o=D(a.pathname||"/",t);if(o==null)return null;let l=_e(e);wt(l);let i=null;for(let s=0;i==null&&s<l.length;++s){let d=Ut(o);i=Tt(l[s],d,n)}return i}function _e(e,r=[],t=[],n="",a=!1){let o=(l,i,s=a,d)=>{let m={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&s)return;P(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let f=$([n,m.relativePath]),p=t.concat(m);l.children&&l.children.length>0&&(P(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),_e(l.children,r,p,f,s)),!(l.path==null&&!l.index)&&r.push({path:f,score:Pt(f,l.index),routesMeta:p})};return e.forEach((l,i)=>{if(l.path===""||!l.path?.includes("?"))o(l,i);else for(let s of Ue(l.path))o(l,i,!0,s)}),r}function Ue(e){let r=e.split("/");if(r.length===0)return[];let[t,...n]=r,a=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=Ue(n.join("/")),i=[];return i.push(...l.map(s=>s===""?o:[o,s].join("/"))),a&&i.push(...l),i.map(s=>e.startsWith("/")&&s===""?"/":s)}function wt(e){e.sort((r,t)=>r.score!==t.score?t.score-r.score:Lt(r.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var Et=/^:[\w-]+$/,Ct=3,Rt=2,jt=1,Nt=10,St=-2,$e=e=>e==="*";function Pt(e,r){let t=e.split("/"),n=t.length;return t.some($e)&&(n+=St),r&&(n+=Rt),t.filter(a=>!$e(a)).reduce((a,o)=>a+(Et.test(o)?Ct:o===""?jt:Nt),n)}function Lt(e,r){return e.length===r.length&&e.slice(0,-1).every((n,a)=>n===r[a])?e[e.length-1]-r[r.length-1]:0}function Tt(e,r,t=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let i=0;i<n.length;++i){let s=n[i],d=i===n.length-1,m=o==="/"?r:r.slice(o.length)||"/",f=Z({path:s.relativePath,caseSensitive:s.caseSensitive,end:d},m),p=s.route;if(!f&&d&&t&&!n[n.length-1].route.index&&(f=Z({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},m)),!f)return null;Object.assign(a,f.params),l.push({params:a,pathname:$([o,f.pathname]),pathnameBase:Dt($([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=$([o,f.pathnameBase]))}return l}function Z(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=_t(e.path,e.caseSensitive,e.end),a=r.match(t);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((d,{paramName:m,isOptional:f},p)=>{if(m==="*"){let x=i[p]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=i[p];return f&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:l,pattern:e}}function _t(e,r=!1,t=!0){U(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,s)=>(n.push({paramName:i,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),n]}function Ut(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return U(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}function D(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let t=r.endsWith("/")?r.length-1:r.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var $t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=e=>$t.test(e);function At(e,r="/"){let{pathname:t,search:n="",hash:a=""}=typeof e=="string"?ce(e):e,o;if(t)if(Ot(t))o=t;else{if(t.includes("//")){let l=t;t=t.replace(/\/\/+/g,"/"),U(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`)}t.startsWith("/")?o=Oe(t.substring(1),"/"):o=Oe(t,r)}else o=r;return{pathname:o,search:It(n),hash:Mt(a)}}function Oe(e,r){let t=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function de(e,r,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ft(e){return e.filter((r,t)=>t===0||r.route.path&&r.route.path.length>0)}function Ae(e){let r=Ft(e);return r.map((t,n)=>n===r.length-1?t.pathname:t.pathnameBase)}function Fe(e,r,t,n=!1){let a;typeof e=="string"?a=ce(e):(a={...e},P(!a.pathname||!a.pathname.includes("?"),de("?","pathname","search",a)),P(!a.pathname||!a.pathname.includes("#"),de("#","pathname","hash",a)),P(!a.search||!a.search.includes("#"),de("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,i;if(l==null)i=t;else{let f=r.length-1;if(!n&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}i=f>=0?r[f]:"/"}let s=At(a,i),d=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&t.endsWith("/");return!s.pathname.endsWith("/")&&(d||m)&&(s.pathname+="/"),s}var $=e=>e.join("/").replace(/\/\/+/g,"/"),Dt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),It=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var De=["POST","PUT","PATCH","DELETE"];new Set(De);var Vt=["GET",...De];new Set(Vt);var z=c.createContext(null);z.displayName="DataRouter";var Q=c.createContext(null);Q.displayName="DataRouterState",c.createContext(!1);var Ie=c.createContext({isTransitioning:!1});Ie.displayName="ViewTransition";var zt=c.createContext(new Map);zt.displayName="Fetchers";var Bt=c.createContext(null);Bt.displayName="Await";var O=c.createContext(null);O.displayName="Navigation";var fe=c.createContext(null);fe.displayName="Location";var A=c.createContext({outlet:null,matches:[],isDataRoute:!1});A.displayName="Route";var me=c.createContext(null);me.displayName="RouteError";function Ht(e,{relative:r}={}){P(ee(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=c.useContext(O),{hash:a,pathname:o,search:l}=q(e,{relative:r}),i=o;return t!=="/"&&(i=o==="/"?t:$([t,o])),n.createHref({pathname:i,search:l,hash:a})}function ee(){return c.useContext(fe)!=null}function W(){return P(ee(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(fe).location}var Me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function We(e){c.useContext(O).static||c.useLayoutEffect(e)}function Yt(){let{isDataRoute:e}=c.useContext(A);return e?or():Jt()}function Jt(){P(ee(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(z),{basename:r,navigator:t}=c.useContext(O),{matches:n}=c.useContext(A),{pathname:a}=W(),o=JSON.stringify(Ae(n)),l=c.useRef(!1);return We(()=>{l.current=!0}),c.useCallback((s,d={})=>{if(U(l.current,Me),!l.current)return;if(typeof s=="number"){t.go(s);return}let m=Fe(s,JSON.parse(o),a,d.relative==="path");e==null&&r!=="/"&&(m.pathname=m.pathname==="/"?r:$([r,m.pathname])),(d.replace?t.replace:t.push)(m,d.state,d)},[r,t,o,a,e])}c.createContext(null);function q(e,{relative:r}={}){let{matches:t}=c.useContext(A),{pathname:n}=W(),a=JSON.stringify(Ae(t));return c.useMemo(()=>Fe(e,JSON.parse(a),n,r==="path"),[e,a,n,r])}function Gt(e,r,t,n,a){P(ee(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=c.useContext(O),{matches:l}=c.useContext(A),i=l[l.length-1],s=i?i.params:{},d=i?i.pathname:"/",m=i?i.pathnameBase:"/",f=i&&i.route;{let g=f&&f.path||"";ze(d,!f||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
6
|
+
<%s key={someKey} {...props} />`,P,N,B,N),Xe[N+P]=!0)}if(N=null,S!==void 0&&(t(S),N=""+S),l(x)&&(t(x.key),N=""+x.key),"key"in x){S={};for(var ke in x)ke!=="key"&&(S[ke]=x[ke])}else S=x;return N&&i(S,typeof s=="function"?s.displayName||s.name||"Unknown":s),f(s,N,S,a(),le,we)}function d(s){p(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===T&&(s._payload.status==="fulfilled"?p(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function p(s){return typeof s=="object"&&s!==null&&s.$$typeof===y}var g=A,y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),I=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),ye=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ye=Object.prototype.hasOwnProperty,Fr=Array.isArray,ve=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(s){return s()}};var Be,Je={},Ge=g.react_stack_bottom_frame.bind(g,o)(),qe=ve(n(o)),Xe={};G.Fragment=w,G.jsx=function(s,x,S){var P=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!1,P?Error("react-stack-top-frame"):Ge,P?ve(n(s)):qe)},G.jsxs=function(s,x,S){var P=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!0,P?Error("react-stack-top-frame"):Ge,P?ve(n(s)):qe)}})()),G}var Ce;function et(){return Ce||(Ce=1,process.env.NODE_ENV==="production"?K.exports=Ze():K.exports=Qe()),K.exports}var h=et();const tt=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"CrmDashboard",children:r||"CrmDashboard Component"}),rt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UctaUbanner",children:r||"UctaUbanner Component"});function nt({title:e,titleId:r,...t},n){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},t),e?u.createElement("title",{id:r},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const at=u.forwardRef(nt),ot=({title:e,description:r,icon:t=at,iconVariant:n="success",size:a="md",className:o})=>{const l={primary:"bg-blue-400 text-blue-900",success:"bg-green-400 text-emerald-900",warning:"bg-yellow-400 text-yellow-900",info:"bg-cyan-400 text-cyan-900",gradient:"bg-gradient-to-br from-blue-400 to-purple-500 text-white"},c={sm:{container:"gap-2",icon:"p-1.5",iconSize:"h-4 w-4",title:M.textVariants.body.md(),description:M.textVariants.body.sm()},md:{container:"gap-3",icon:"p-2",iconSize:"h-5 w-5",title:M.textVariants.body.strong.md(),description:M.textVariants.body.md()},lg:{container:"gap-4",icon:"p-3",iconSize:"h-6 w-6",title:M.textVariants.heading.h4(),description:M.textVariants.body.md()}}[a];return h.jsxs("div",{className:R.cn("flex items-start",c.container,o),children:[h.jsx("div",{className:R.cn("rounded-full flex-shrink-0",c.icon,l[n]),children:h.jsx(t,{className:c.iconSize})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:c.title,children:e}),r&&h.jsx("p",{className:R.cn(c.description,"mt-1 text-gray-600 dark:text-gray-300"),children:r})]})]})},lt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfeatureUspotlight",children:r||"UfeatureUspotlight Component"}),it=({badgeIcon:e,badgeText:r,badgeColor:t="blue",title:n,subtitle:a,description:o,primaryButton:l,secondaryButton:i,className:c,children:f})=>{const d={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[t];return h.jsx("section",{className:R.cn("py-20",c),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[h.jsxs("div",{className:R.cn("inline-flex items-center border px-6 py-3 rounded-full mb-6",d),children:[e&&h.jsx("span",{className:"mr-3",children:e}),h.jsx("span",{className:"font-semibold",children:r})]}),h.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof n=="string"?h.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):n,a&&h.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:a})]}),h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:o}),(l||i)&&h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[l&&(l.href?h.jsx("a",{href:l.href,className:R.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",l.className),children:l.text}):h.jsx("button",{onClick:l.onClick,className:R.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",l.className),children:l.text})),i&&(i.href?h.jsx("a",{href:i.href,className:R.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",i.className),children:i.text}):h.jsx("button",{onClick:i.onClick,className:R.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",i.className),children:i.text}))]}),f]})})};function j(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function _(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ie({pathname:e="/",search:r="",hash:t=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function se(e){let r={};if(e){let t=e.indexOf("#");t>=0&&(r.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(r.search=e.substring(n),e=e.substring(0,n)),e&&(r.pathname=e)}return r}function Se(e,r,t="/"){return st(e,r,t,!1)}function st(e,r,t,n){let a=typeof r=="string"?se(r):r,o=F(a.pathname||"/",t);if(o==null)return null;let l=Pe(e);ut(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let f=vt(o);i=xt(l[c],f,n)}return i}function Pe(e,r=[],t=[],n="",a=!1){let o=(l,i,c=a,f)=>{let m={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&c)return;j(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let d=L([n,m.relativePath]),p=t.concat(m);l.children&&l.children.length>0&&(j(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Pe(l.children,r,p,d,c)),!(l.path==null&&!l.index)&&r.push({path:d,score:gt(d,l.index),routesMeta:p})};return e.forEach((l,i)=>{if(l.path===""||!l.path?.includes("?"))o(l,i);else for(let c of Ne(l.path))o(l,i,!0,c)}),r}function Ne(e){let r=e.split("/");if(r.length===0)return[];let[t,...n]=r,a=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=Ne(n.join("/")),i=[];return i.push(...l.map(c=>c===""?o:[o,c].join("/"))),a&&i.push(...l),i.map(c=>e.startsWith("/")&&c===""?"/":c)}function ut(e){e.sort((r,t)=>r.score!==t.score?t.score-r.score:bt(r.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var ct=/^:[\w-]+$/,dt=3,ft=2,mt=1,ht=10,pt=-2,je=e=>e==="*";function gt(e,r){let t=e.split("/"),n=t.length;return t.some(je)&&(n+=pt),r&&(n+=ft),t.filter(a=>!je(a)).reduce((a,o)=>a+(ct.test(o)?dt:o===""?mt:ht),n)}function bt(e,r){return e.length===r.length&&e.slice(0,-1).every((n,a)=>n===r[a])?e[e.length-1]-r[r.length-1]:0}function xt(e,r,t=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let i=0;i<n.length;++i){let c=n[i],f=i===n.length-1,m=o==="/"?r:r.slice(o.length)||"/",d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},m),p=c.route;if(!d&&f&&t&&!n[n.length-1].route.index&&(d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:L([o,d.pathname]),pathnameBase:Ct(L([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=L([o,d.pathnameBase]))}return l}function Z(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=yt(e.path,e.caseSensitive,e.end),a=r.match(t);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((f,{paramName:m,isOptional:d},p)=>{if(m==="*"){let y=i[p]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=i[p];return d&&!g?f[m]=void 0:f[m]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function yt(e,r=!1,t=!0){_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,c)=>(n.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),n]}function vt(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}function F(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let t=r.endsWith("/")?r.length-1:r.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var wt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=e=>wt.test(e);function Et(e,r="/"){let{pathname:t,search:n="",hash:a=""}=typeof e=="string"?se(e):e,o;if(t)if(kt(t))o=t;else{if(t.includes("//")){let l=t;t=t.replace(/\/\/+/g,"/"),_(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`)}t.startsWith("/")?o=Te(t.substring(1),"/"):o=Te(t,r)}else o=r;return{pathname:o,search:St(n),hash:Pt(a)}}function Te(e,r){let t=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ue(e,r,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Rt(e){return e.filter((r,t)=>t===0||r.route.path&&r.route.path.length>0)}function _e(e){let r=Rt(e);return r.map((t,n)=>n===r.length-1?t.pathname:t.pathnameBase)}function Le(e,r,t,n=!1){let a;typeof e=="string"?a=se(e):(a={...e},j(!a.pathname||!a.pathname.includes("?"),ue("?","pathname","search",a)),j(!a.pathname||!a.pathname.includes("#"),ue("#","pathname","hash",a)),j(!a.search||!a.search.includes("#"),ue("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,i;if(l==null)i=t;else{let d=r.length-1;if(!n&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}i=d>=0?r[d]:"/"}let c=Et(a,i),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(f||m)&&(c.pathname+="/"),c}var L=e=>e.join("/").replace(/\/\/+/g,"/"),Ct=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),St=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Nt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ue=["POST","PUT","PATCH","DELETE"];new Set(Ue);var jt=["GET",...Ue];new Set(jt);var V=u.createContext(null);V.displayName="DataRouter";var Q=u.createContext(null);Q.displayName="DataRouterState",u.createContext(!1);var $e=u.createContext({isTransitioning:!1});$e.displayName="ViewTransition";var Tt=u.createContext(new Map);Tt.displayName="Fetchers";var _t=u.createContext(null);_t.displayName="Await";var U=u.createContext(null);U.displayName="Navigation";var ce=u.createContext(null);ce.displayName="Location";var $=u.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName="Route";var de=u.createContext(null);de.displayName="RouteError";function Lt(e,{relative:r}={}){j(ee(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=u.useContext(U),{hash:a,pathname:o,search:l}=q(e,{relative:r}),i=o;return t!=="/"&&(i=o==="/"?t:L([t,o])),n.createHref({pathname:i,search:l,hash:a})}function ee(){return u.useContext(ce)!=null}function W(){return j(ee(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(ce).location}var Oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ae(e){u.useContext(U).static||u.useLayoutEffect(e)}function Ut(){let{isDataRoute:e}=u.useContext($);return e?Bt():$t()}function $t(){j(ee(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(V),{basename:r,navigator:t}=u.useContext(U),{matches:n}=u.useContext($),{pathname:a}=W(),o=JSON.stringify(_e(n)),l=u.useRef(!1);return Ae(()=>{l.current=!0}),u.useCallback((c,f={})=>{if(_(l.current,Oe),!l.current)return;if(typeof c=="number"){t.go(c);return}let m=Le(c,JSON.parse(o),a,f.relative==="path");e==null&&r!=="/"&&(m.pathname=m.pathname==="/"?r:L([r,m.pathname])),(f.replace?t.replace:t.push)(m,f.state,f)},[r,t,o,a,e])}u.createContext(null);function q(e,{relative:r}={}){let{matches:t}=u.useContext($),{pathname:n}=W(),a=JSON.stringify(_e(t));return u.useMemo(()=>Le(e,JSON.parse(a),n,r==="path"),[e,a,n,r])}function Ot(e,r,t,n,a){j(ee(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=u.useContext(U),{matches:l}=u.useContext($),i=l[l.length-1],c=i?i.params:{},f=i?i.pathname:"/",m=i?i.pathnameBase:"/",d=i&&i.route;{let b=d&&d.path||"";Ie(f,!d||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
7
7
|
|
|
8
|
-
Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let p=W(),b;b=p;let x=b.pathname||"/",C=x;if(m!=="/"){let g=m.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(g.length).join("/")}let y=Te(e,{pathname:C});return U(f||y!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),U(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Qt(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:$([m,o.encodeLocation?o.encodeLocation(g.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?m:$([m,o.encodeLocation?o.encodeLocation(g.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),l,t,n,a)}function qt(){let e=ar(),r=Wt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:o},"ErrorBoundary")," or"," ",c.createElement("code",{style:o},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},r),t?c.createElement("pre",{style:a},t):null,l)}var Kt=c.createElement(qt,null),Xt=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?c.createElement(A.Provider,{value:this.props.routeContext},c.createElement(me.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Zt({routeContext:e,match:r,children:t}){let n=c.useContext(z);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),c.createElement(A.Provider,{value:e},t)}function Qt(e,r=[],t=null,n=null,a=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(r.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,l=t?.errors;if(l!=null){let m=o.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);P(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let i=!1,s=-1;if(t)for(let m=0;m<o.length;m++){let f=o[m];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=m),f.route.id){let{loaderData:p,errors:b}=t,x=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!b||b[f.route.id]===void 0);if(f.route.lazy||x){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}let d=t&&n?(m,f)=>{n(m,{location:t.location,params:t.matches?.[0]?.params??{},errorInfo:f})}:void 0;return o.reduceRight((m,f,p)=>{let b,x=!1,C=null,y=null;t&&(b=l&&f.route.id?l[f.route.id]:void 0,C=f.route.errorElement||Kt,i&&(s<0&&p===0?(ze("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,y=null):s===p&&(x=!0,y=f.route.hydrateFallbackElement||null)));let k=r.concat(o.slice(0,p+1)),g=()=>{let w;return b?w=C:x?w=y:f.route.Component?w=c.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=m,c.createElement(Zt,{match:f,routeContext:{outlet:m,matches:k,isDataRoute:t!=null},children:w})};return t&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?c.createElement(Xt,{location:t.location,revalidation:t.revalidation,component:C,error:b,children:g(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:d}):g()},null)}function he(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function er(e){let r=c.useContext(z);return P(r,he(e)),r}function tr(e){let r=c.useContext(Q);return P(r,he(e)),r}function rr(e){let r=c.useContext(A);return P(r,he(e)),r}function ge(e){let r=rr(e),t=r.matches[r.matches.length-1];return P(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function nr(){return ge("useRouteId")}function ar(){let e=c.useContext(me),r=tr("useRouteError"),t=ge("useRouteError");return e!==void 0?e:r.errors?.[t]}function or(){let{router:e}=er("useNavigate"),r=ge("useNavigate"),t=c.useRef(!1);return We(()=>{t.current=!0}),c.useCallback(async(a,o={})=>{U(t.current,Me),t.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:r,...o}))},[e,r])}var Ve={};function ze(e,r,t){!r&&!Ve[e]&&(Ve[e]=!0,U(!1,t))}c.memo(lr);function lr({routes:e,future:r,state:t,unstable_onError:n}){return Gt(e,void 0,t,n,r)}var te="get",re="application/x-www-form-urlencoded";function ne(e){return e!=null&&typeof e.tagName=="string"}function ir(e){return ne(e)&&e.tagName.toLowerCase()==="button"}function sr(e){return ne(e)&&e.tagName.toLowerCase()==="form"}function ur(e){return ne(e)&&e.tagName.toLowerCase()==="input"}function cr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dr(e,r){return e.button===0&&(!r||r==="_self")&&!cr(e)}var ae=null;function fr(){if(ae===null)try{new FormData(document.createElement("form"),0),ae=!1}catch{ae=!0}return ae}var mr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pe(e){return e!=null&&!mr.has(e)?(U(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${re}"`),null):e}function hr(e,r){let t,n,a,o,l;if(sr(e)){let i=e.getAttribute("action");n=i?D(i,r):null,t=e.getAttribute("method")||te,a=pe(e.getAttribute("enctype"))||re,o=new FormData(e)}else if(ir(e)||ur(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?D(s,r):null,t=e.getAttribute("formmethod")||i.getAttribute("method")||te,a=pe(e.getAttribute("formenctype"))||pe(i.getAttribute("enctype"))||re,o=new FormData(i,e),!fr()){let{name:d,type:m,value:f}=e;if(m==="image"){let p=d?`${d}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else d&&o.append(d,f)}}else{if(ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=te,n=null,a=re,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:t.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function be(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function gr(e,r,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${t}`:r&&D(n.pathname,r)==="/"?n.pathname=`${r.replace(/\/$/,"")}/_root.${t}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${t}`,n}async function pr(e,r){if(e.id in r)return r[e.id];try{let t=await import(e.module);return r[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function br(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xr(e,r,t){let n=await Promise.all(e.map(async a=>{let o=r.routes[a.route.id];if(o){let l=await pr(o,t);return l.links?l.links():[]}return[]}));return wr(n.flat(1).filter(br).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Be(e,r,t,n,a,o){let l=(s,d)=>t[d]?s.route.id!==t[d].route.id:!0,i=(s,d)=>t[d].pathname!==s.pathname||t[d].route.path?.endsWith("*")&&t[d].params["*"]!==s.params["*"];return o==="assets"?r.filter((s,d)=>l(s,d)||i(s,d)):o==="data"?r.filter((s,d)=>{let m=n.routes[s.route.id];if(!m||!m.hasLoader)return!1;if(l(s,d)||i(s,d))return!0;if(s.route.shouldRevalidate){let f=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function yr(e,r,{includeHydrateFallback:t}={}){return vr(e.map(n=>{let a=r.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function vr(e){return[...new Set(e)]}function kr(e){let r={},t=Object.keys(e).sort();for(let n of t)r[n]=e[n];return r}function wr(e,r){let t=new Set;return new Set(r),e.reduce((n,a)=>{let o=JSON.stringify(kr(a));return t.has(o)||(t.add(o),n.push({key:o,link:a})),n},[])}function He(){let e=c.useContext(z);return be(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Er(){let e=c.useContext(Q);return be(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var xe=c.createContext(void 0);xe.displayName="FrameworkContext";function Ye(){let e=c.useContext(xe);return be(e,"You must render this element inside a <HydratedRouter> element"),e}function Cr(e,r){let t=c.useContext(xe),[n,a]=c.useState(!1),[o,l]=c.useState(!1),{onFocus:i,onBlur:s,onMouseEnter:d,onMouseLeave:m,onTouchStart:f}=r,p=c.useRef(null);c.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let C=k=>{k.forEach(g=>{l(g.isIntersecting)})},y=new IntersectionObserver(C,{threshold:.5});return p.current&&y.observe(p.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(n){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[n]);let b=()=>{a(!0)},x=()=>{a(!1),l(!1)};return t?e!=="intent"?[o,p,{}]:[o,p,{onFocus:K(i,b),onBlur:K(s,x),onMouseEnter:K(d,b),onMouseLeave:K(m,x),onTouchStart:K(f,b)}]:[!1,p,{}]}function K(e,r){return t=>{e&&e(t),t.defaultPrevented||r(t)}}function Rr({page:e,...r}){let{router:t}=He(),n=c.useMemo(()=>Te(t.routes,e,t.basename),[t.routes,e,t.basename]);return n?c.createElement(Nr,{page:e,matches:n,...r}):null}function jr(e){let{manifest:r,routeModules:t}=Ye(),[n,a]=c.useState([]);return c.useEffect(()=>{let o=!1;return xr(e,r,t).then(l=>{o||a(l)}),()=>{o=!0}},[e,r,t]),n}function Nr({page:e,matches:r,...t}){let n=W(),{manifest:a,routeModules:o}=Ye(),{basename:l}=He(),{loaderData:i,matches:s}=Er(),d=c.useMemo(()=>Be(e,r,s,a,n,"data"),[e,r,s,a,n]),m=c.useMemo(()=>Be(e,r,s,a,n,"assets"),[e,r,s,a,n]),f=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let x=new Set,C=!1;if(r.forEach(k=>{let g=a.routes[k.route.id];!g||!g.hasLoader||(!d.some(w=>w.route.id===k.route.id)&&k.route.id in i&&o[k.route.id]?.shouldRevalidate||g.hasClientLoader?C=!0:x.add(k.route.id))}),x.size===0)return[];let y=gr(e,l,"data");return C&&x.size>0&&y.searchParams.set("_routes",r.filter(k=>x.has(k.route.id)).map(k=>k.route.id).join(",")),[y.pathname+y.search]},[l,i,n,a,d,r,e,o]),p=c.useMemo(()=>yr(m,a),[m,a]),b=jr(m);return c.createElement(c.Fragment,null,f.map(x=>c.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...t})),p.map(x=>c.createElement("link",{key:x,rel:"modulepreload",href:x,...t})),b.map(({key:x,link:C})=>c.createElement("link",{key:x,nonce:t.nonce,...C})))}function Sr(...e){return r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&(t.current=r)})}}var Je=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Je&&(window.__reactRouterVersion="7.9.6")}catch{}var Ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ye=c.forwardRef(function({onClick:r,discover:t="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,state:i,target:s,to:d,preventScrollReset:m,viewTransition:f,...p},b){let{basename:x}=c.useContext(O),C=typeof d=="string"&&Ge.test(d),y,k=!1;if(typeof d=="string"&&C&&(y=d,Je))try{let L=new URL(window.location.href),I=d.startsWith("//")?new URL(L.protocol+d):new URL(d),oe=D(I.pathname,x);I.origin===L.origin&&oe!=null?d=oe+I.search+I.hash:k=!0}catch{U(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=Ht(d,{relative:a}),[w,T,_]=Cr(n,p),B=_r(d,{replace:l,state:i,target:s,preventScrollReset:m,relative:a,viewTransition:f});function V(L){r&&r(L),L.defaultPrevented||B(L)}let H=c.createElement("a",{...p,..._,href:y||g,onClick:k||o?r:V,ref:Sr(b,T),target:s,"data-discover":!C&&t==="render"?"true":void 0});return w&&!C?c.createElement(c.Fragment,null,H,c.createElement(Rr,{page:g})):H});ye.displayName="Link";var Pr=c.forwardRef(function({"aria-current":r="page",caseSensitive:t=!1,className:n="",end:a=!1,style:o,to:l,viewTransition:i,children:s,...d},m){let f=q(l,{relative:d.relative}),p=W(),b=c.useContext(Q),{navigator:x,basename:C}=c.useContext(O),y=b!=null&&Fr(f)&&i===!0,k=x.encodeLocation?x.encodeLocation(f).pathname:f.pathname,g=p.pathname,w=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;t||(g=g.toLowerCase(),w=w?w.toLowerCase():null,k=k.toLowerCase()),w&&C&&(w=D(w,C)||w);const T=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let _=g===k||!a&&g.startsWith(k)&&g.charAt(T)==="/",B=w!=null&&(w===k||!a&&w.startsWith(k)&&w.charAt(k.length)==="/"),V={isActive:_,isPending:B,isTransitioning:y},H=_?r:void 0,L;typeof n=="function"?L=n(V):L=[n,_?"active":null,B?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let I=typeof o=="function"?o(V):o;return c.createElement(ye,{...d,"aria-current":H,className:L,ref:m,style:I,to:l,viewTransition:i},typeof s=="function"?s(V):s)});Pr.displayName="NavLink";var Lr=c.forwardRef(({discover:e="render",fetcherKey:r,navigate:t,reloadDocument:n,replace:a,state:o,method:l=te,action:i,onSubmit:s,relative:d,preventScrollReset:m,viewTransition:f,...p},b)=>{let x=Or(),C=Ar(i,{relative:d}),y=l.toLowerCase()==="get"?"get":"post",k=typeof i=="string"&&Ge.test(i),g=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let T=w.nativeEvent.submitter,_=T?.getAttribute("formmethod")||l;x(T||w.currentTarget,{fetcherKey:r,method:_,navigate:t,replace:a,state:o,relative:d,preventScrollReset:m,viewTransition:f})};return c.createElement("form",{ref:b,method:y,action:C,onSubmit:n?s:g,...p,"data-discover":!k&&e==="render"?"true":void 0})});Lr.displayName="Form";function Tr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qe(e){let r=c.useContext(z);return P(r,Tr(e)),r}function _r(e,{target:r,replace:t,state:n,preventScrollReset:a,relative:o,viewTransition:l}={}){let i=Yt(),s=W(),d=q(e,{relative:o});return c.useCallback(m=>{if(dr(m,r)){m.preventDefault();let f=t!==void 0?t:ue(s)===ue(d);i(e,{replace:f,state:n,preventScrollReset:a,relative:o,viewTransition:l})}},[s,i,d,t,n,r,e,a,o,l])}var Ur=0,$r=()=>`__${String(++Ur)}__`;function Or(){let{router:e}=qe("useSubmit"),{basename:r}=c.useContext(O),t=nr();return c.useCallback(async(n,a={})=>{let{action:o,method:l,encType:i,formData:s,body:d}=hr(n,r);if(a.navigate===!1){let m=a.fetcherKey||$r();await e.fetch(m,t,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:d,formMethod:a.method||l,formEncType:a.encType||i,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:d,formMethod:a.method||l,formEncType:a.encType||i,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,r,t])}function Ar(e,{relative:r}={}){let{basename:t}=c.useContext(O),n=c.useContext(A);P(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...q(e||".",{relative:r})},l=W();if(e==null){o.search=l.search;let i=new URLSearchParams(o.search),s=i.getAll("index");if(s.some(m=>m==="")){i.delete("index"),s.filter(f=>f).forEach(f=>i.append("index",f));let m=i.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(o.pathname=o.pathname==="/"?t:$([t,o.pathname])),ue(o)}function Fr(e,{relative:r}={}){let t=c.useContext(Ie);P(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=qe("useViewTransitionState"),a=q(e,{relative:r});if(!t.isTransitioning)return!1;let o=D(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=D(t.nextLocation.pathname,n)||t.nextLocation.pathname;return Z(a.pathname,l)!=null||Z(a.pathname,o)!=null}const Dr={primary:"text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",secondary:"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",subtle:"text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"},ve=({to:e,children:r,className:t,variant:n="primary"})=>h.jsx(ye,{to:e,className:E.cn(Dr[n],t),"aria-label":typeof r=="string"?`Navigate to ${r}`:void 0,children:r}),Ir={gettingStarted:{documentation:"/document#getting-started",connect:"/connect",features:"/document#email-management"},benefits:{users:"/web3-users",projects:"/web3-projects",security:"/document#technical-details",nameService:"/document#name-service-subscription"},technical:{documentation:"/document",apiDocs:"/document#api-documentation",smartContracts:"/document#smart-contracts",security:"/document#technical-details"},integration:{projects:"/web3-projects",delegation:"/document#email-delegation",nameService:"/document#name-service-subscription",troubleshooting:"/document#troubleshooting"}},Mr=({cluster:e,context:r="",className:t})=>{const n=Ir[e],a={gettingStarted:{documentation:"Learn how it works",connect:"Get started now",features:"Explore features"},benefits:{users:"Benefits for users",projects:"For Web3 projects",security:"Security details",nameService:"ENS/SNS domains"},technical:{documentation:"Full documentation",apiDocs:"API reference",smartContracts:"Smart contract integration",security:"Technical security"},integration:{projects:"Integration examples",delegation:"Email delegation",nameService:"Domain setup",troubleshooting:"Troubleshooting guide"}};return h.jsx("span",{className:E.cn("text-sm text-gray-600 dark:text-gray-400",t),children:Object.entries(n).map(([o,l],i)=>h.jsxs(F.Fragment,{children:[h.jsx(ve,{to:l,variant:"primary",children:a[e][o]}),i<Object.keys(n).length-1&&" • "]},o))})},Wr=({title:e="Related:",links:r,className:t})=>h.jsxs("div",{className:E.cn("mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",t),children:[h.jsx("span",{className:"text-sm font-medium text-blue-900 dark:text-blue-200 mr-2",children:e}),r.map((n,a)=>h.jsxs(F.Fragment,{children:[h.jsx(ve,{to:n.url,variant:n.variant||"primary",children:n.text}),a<r.length-1&&" • "]},a))]}),Vr=(e,r)=>({homepage:[{text:"How it works",url:"/document#getting-started"},{text:"User benefits",url:"/web3-users"},{text:"For projects",url:"/web3-projects"}],documentation:[{text:"Get started",url:"/connect"},{text:"User guide",url:"/web3-users"},{text:"API docs",url:"/document#api-documentation"}],users:[{text:"Start now",url:"/connect"},{text:"Documentation",url:"/document"},{text:"For projects",url:"/web3-projects"}],projects:[{text:"API integration",url:"/document#api-documentation"},{text:"Smart contracts",url:"/document#smart-contracts"},{text:"User benefits",url:"/web3-users"}]})[e]||[],zr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UlandingUbuilder",children:r||"UlandingUbuilder Component"}),Br=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UnpsUsurvey",children:r||"UnpsUsurvey Component"}),Hr=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SalesReport",children:r||"SalesReport Component"}),Yr=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SubscriberList",children:r||"SubscriberList Component"}),Jr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UsurveyUbuilder",children:r||"UsurveyUbuilder Component"}),Gr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UtestimonialUslider",children:r||"UtestimonialUslider Component"}),qr=({title:e,description:r,useCases:t,columns:n=3,className:a})=>{const o={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},l={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return h.jsx("section",{className:E.cn(M.ui.section.gradient,a),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||r)&&h.jsxs("div",{className:"text-center mb-12",children:[e&&h.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),r&&h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:r})]}),h.jsx("div",{className:E.cn("grid gap-8",l[n]),children:t.map((i,s)=>{const d=i.color?o[i.color]:o.blue;return h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[h.jsx("div",{className:E.cn("flex-shrink-0 mb-4",d),children:i.icon}),h.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:i.title}),h.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:i.description}),i.examples&&i.examples.length>0&&h.jsxs("div",{children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),h.jsx("ul",{className:"space-y-1",children:i.examples.map((m,f)=>h.jsxs("li",{className:"flex items-start",children:[h.jsx("div",{className:E.cn("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",i.color?`bg-${i.color}-500`:"bg-blue-500")}),h.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},f))})]})]},s)})})]})})},Kr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UwelcomeUscreen",children:r||"UwelcomeUscreen Component"});R.CrmDashboard=lt,R.FeatureGrid=mt,R.FeatureListItem=bt,R.HeroBannerWithBadge=vt,R.InternalLink=ve,R.RelatedLinks=Wr,R.SalesReport=Hr,R.SubscriberList=Yr,R.TopicClusterLinks=Mr,R.UctaUbanner=it,R.UfeatureUspotlight=xt,R.UfunnelUchart=yt,R.UlandingUbuilder=zr,R.UnpsUsurvey=Br,R.UseCaseGrid=qr,R.UsurveyUbuilder=Jr,R.UtestimonialUslider=Gr,R.UwelcomeUscreen=Kr,R.createFeature=se,R.createSecurityFeatures=ht,R.generateContextualLinks=Vr,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
8
|
+
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let p=W(),g;g=p;let y=g.pathname||"/",E=y;if(m!=="/"){let b=m.replace(/^\//,"").split("/");E="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=Se(e,{pathname:E});return _(d||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),_(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Mt(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:L([m,o.encodeLocation?o.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:L([m,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),l,t,n,a)}function At(){let e=Yt(),r=Nt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:o},"ErrorBoundary")," or"," ",u.createElement("code",{style:o},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},r),t?u.createElement("pre",{style:a},t):null,l)}var Ft=u.createElement(At,null),It=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?u.createElement($.Provider,{value:this.props.routeContext},u.createElement(de.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Dt({routeContext:e,match:r,children:t}){let n=u.useContext(V);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),u.createElement($.Provider,{value:e},t)}function Mt(e,r=[],t=null,n=null,a=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(r.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,l=t?.errors;if(l!=null){let m=o.findIndex(d=>d.route.id&&l?.[d.route.id]!==void 0);j(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let i=!1,c=-1;if(t)for(let m=0;m<o.length;m++){let d=o[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=m),d.route.id){let{loaderData:p,errors:g}=t,y=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||y){i=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let f=t&&n?(m,d)=>{n(m,{location:t.location,params:t.matches?.[0]?.params??{},errorInfo:d})}:void 0;return o.reduceRight((m,d,p)=>{let g,y=!1,E=null,w=null;t&&(g=l&&d.route.id?l[d.route.id]:void 0,E=d.route.errorElement||Ft,i&&(c<0&&p===0?(Ie("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):c===p&&(y=!0,w=d.route.hydrateFallbackElement||null)));let v=r.concat(o.slice(0,p+1)),b=()=>{let k;return g?k=E:y?k=w:d.route.Component?k=u.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=m,u.createElement(Dt,{match:d,routeContext:{outlet:m,matches:v,isDataRoute:t!=null},children:k})};return t&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?u.createElement(It,{location:t.location,revalidation:t.revalidation,component:E,error:g,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:f}):b()},null)}function fe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wt(e){let r=u.useContext(V);return j(r,fe(e)),r}function zt(e){let r=u.useContext(Q);return j(r,fe(e)),r}function Vt(e){let r=u.useContext($);return j(r,fe(e)),r}function me(e){let r=Vt(e),t=r.matches[r.matches.length-1];return j(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Ht(){return me("useRouteId")}function Yt(){let e=u.useContext(de),r=zt("useRouteError"),t=me("useRouteError");return e!==void 0?e:r.errors?.[t]}function Bt(){let{router:e}=Wt("useNavigate"),r=me("useNavigate"),t=u.useRef(!1);return Ae(()=>{t.current=!0}),u.useCallback(async(a,o={})=>{_(t.current,Oe),t.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:r,...o}))},[e,r])}var Fe={};function Ie(e,r,t){!r&&!Fe[e]&&(Fe[e]=!0,_(!1,t))}u.memo(Jt);function Jt({routes:e,future:r,state:t,unstable_onError:n}){return Ot(e,void 0,t,n,r)}var te="get",re="application/x-www-form-urlencoded";function ne(e){return e!=null&&typeof e.tagName=="string"}function Gt(e){return ne(e)&&e.tagName.toLowerCase()==="button"}function qt(e){return ne(e)&&e.tagName.toLowerCase()==="form"}function Xt(e){return ne(e)&&e.tagName.toLowerCase()==="input"}function Kt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zt(e,r){return e.button===0&&(!r||r==="_self")&&!Kt(e)}var ae=null;function Qt(){if(ae===null)try{new FormData(document.createElement("form"),0),ae=!1}catch{ae=!0}return ae}var er=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function he(e){return e!=null&&!er.has(e)?(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${re}"`),null):e}function tr(e,r){let t,n,a,o,l;if(qt(e)){let i=e.getAttribute("action");n=i?F(i,r):null,t=e.getAttribute("method")||te,a=he(e.getAttribute("enctype"))||re,o=new FormData(e)}else if(Gt(e)||Xt(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(n=c?F(c,r):null,t=e.getAttribute("formmethod")||i.getAttribute("method")||te,a=he(e.getAttribute("formenctype"))||he(i.getAttribute("enctype"))||re,o=new FormData(i,e),!Qt()){let{name:f,type:m,value:d}=e;if(m==="image"){let p=f?`${f}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else f&&o.append(f,d)}}else{if(ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=te,n=null,a=re,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:t.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pe(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function rr(e,r,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${t}`:r&&F(n.pathname,r)==="/"?n.pathname=`${r.replace(/\/$/,"")}/_root.${t}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${t}`,n}async function nr(e,r){if(e.id in r)return r[e.id];try{let t=await import(e.module);return r[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ar(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function or(e,r,t){let n=await Promise.all(e.map(async a=>{let o=r.routes[a.route.id];if(o){let l=await nr(o,t);return l.links?l.links():[]}return[]}));return ur(n.flat(1).filter(ar).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function De(e,r,t,n,a,o){let l=(c,f)=>t[f]?c.route.id!==t[f].route.id:!0,i=(c,f)=>t[f].pathname!==c.pathname||t[f].route.path?.endsWith("*")&&t[f].params["*"]!==c.params["*"];return o==="assets"?r.filter((c,f)=>l(c,f)||i(c,f)):o==="data"?r.filter((c,f)=>{let m=n.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(l(c,f)||i(c,f))return!0;if(c.route.shouldRevalidate){let d=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function lr(e,r,{includeHydrateFallback:t}={}){return ir(e.map(n=>{let a=r.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function ir(e){return[...new Set(e)]}function sr(e){let r={},t=Object.keys(e).sort();for(let n of t)r[n]=e[n];return r}function ur(e,r){let t=new Set;return new Set(r),e.reduce((n,a)=>{let o=JSON.stringify(sr(a));return t.has(o)||(t.add(o),n.push({key:o,link:a})),n},[])}function Me(){let e=u.useContext(V);return pe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cr(){let e=u.useContext(Q);return pe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ge=u.createContext(void 0);ge.displayName="FrameworkContext";function We(){let e=u.useContext(ge);return pe(e,"You must render this element inside a <HydratedRouter> element"),e}function dr(e,r){let t=u.useContext(ge),[n,a]=u.useState(!1),[o,l]=u.useState(!1),{onFocus:i,onBlur:c,onMouseEnter:f,onMouseLeave:m,onTouchStart:d}=r,p=u.useRef(null);u.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=v=>{v.forEach(b=>{l(b.isIntersecting)})},w=new IntersectionObserver(E,{threshold:.5});return p.current&&w.observe(p.current),()=>{w.disconnect()}}},[e]),u.useEffect(()=>{if(n){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[n]);let g=()=>{a(!0)},y=()=>{a(!1),l(!1)};return t?e!=="intent"?[o,p,{}]:[o,p,{onFocus:X(i,g),onBlur:X(c,y),onMouseEnter:X(f,g),onMouseLeave:X(m,y),onTouchStart:X(d,g)}]:[!1,p,{}]}function X(e,r){return t=>{e&&e(t),t.defaultPrevented||r(t)}}function fr({page:e,...r}){let{router:t}=Me(),n=u.useMemo(()=>Se(t.routes,e,t.basename),[t.routes,e,t.basename]);return n?u.createElement(hr,{page:e,matches:n,...r}):null}function mr(e){let{manifest:r,routeModules:t}=We(),[n,a]=u.useState([]);return u.useEffect(()=>{let o=!1;return or(e,r,t).then(l=>{o||a(l)}),()=>{o=!0}},[e,r,t]),n}function hr({page:e,matches:r,...t}){let n=W(),{manifest:a,routeModules:o}=We(),{basename:l}=Me(),{loaderData:i,matches:c}=cr(),f=u.useMemo(()=>De(e,r,c,a,n,"data"),[e,r,c,a,n]),m=u.useMemo(()=>De(e,r,c,a,n,"assets"),[e,r,c,a,n]),d=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,E=!1;if(r.forEach(v=>{let b=a.routes[v.route.id];!b||!b.hasLoader||(!f.some(k=>k.route.id===v.route.id)&&v.route.id in i&&o[v.route.id]?.shouldRevalidate||b.hasClientLoader?E=!0:y.add(v.route.id))}),y.size===0)return[];let w=rr(e,l,"data");return E&&y.size>0&&w.searchParams.set("_routes",r.filter(v=>y.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[l,i,n,a,f,r,e,o]),p=u.useMemo(()=>lr(m,a),[m,a]),g=mr(m);return u.createElement(u.Fragment,null,d.map(y=>u.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...t})),p.map(y=>u.createElement("link",{key:y,rel:"modulepreload",href:y,...t})),g.map(({key:y,link:E})=>u.createElement("link",{key:y,nonce:t.nonce,...E})))}function pr(...e){return r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&(t.current=r)})}}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ze&&(window.__reactRouterVersion="7.9.6")}catch{}var Ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=u.forwardRef(function({onClick:r,discover:t="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,state:i,target:c,to:f,preventScrollReset:m,viewTransition:d,...p},g){let{basename:y}=u.useContext(U),E=typeof f=="string"&&Ve.test(f),w,v=!1;if(typeof f=="string"&&E&&(w=f,ze))try{let T=new URL(window.location.href),D=f.startsWith("//")?new URL(T.protocol+f):new URL(f),oe=F(D.pathname,y);D.origin===T.origin&&oe!=null?f=oe+D.search+D.hash:v=!0}catch{_(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=Lt(f,{relative:a}),[k,I,O]=dr(n,p),H=yr(f,{replace:l,state:i,target:c,preventScrollReset:m,relative:a,viewTransition:d});function z(T){r&&r(T),T.defaultPrevented||H(T)}let Y=u.createElement("a",{...p,...O,href:w||b,onClick:v||o?r:z,ref:pr(g,I),target:c,"data-discover":!E&&t==="render"?"true":void 0});return k&&!E?u.createElement(u.Fragment,null,Y,u.createElement(fr,{page:b})):Y});be.displayName="Link";var gr=u.forwardRef(function({"aria-current":r="page",caseSensitive:t=!1,className:n="",end:a=!1,style:o,to:l,viewTransition:i,children:c,...f},m){let d=q(l,{relative:f.relative}),p=W(),g=u.useContext(Q),{navigator:y,basename:E}=u.useContext(U),w=g!=null&&Rr(d)&&i===!0,v=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,b=p.pathname,k=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;t||(b=b.toLowerCase(),k=k?k.toLowerCase():null,v=v.toLowerCase()),k&&E&&(k=F(k,E)||k);const I=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=b===v||!a&&b.startsWith(v)&&b.charAt(I)==="/",H=k!=null&&(k===v||!a&&k.startsWith(v)&&k.charAt(v.length)==="/"),z={isActive:O,isPending:H,isTransitioning:w},Y=O?r:void 0,T;typeof n=="function"?T=n(z):T=[n,O?"active":null,H?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let D=typeof o=="function"?o(z):o;return u.createElement(be,{...f,"aria-current":Y,className:T,ref:m,style:D,to:l,viewTransition:i},typeof c=="function"?c(z):c)});gr.displayName="NavLink";var br=u.forwardRef(({discover:e="render",fetcherKey:r,navigate:t,reloadDocument:n,replace:a,state:o,method:l=te,action:i,onSubmit:c,relative:f,preventScrollReset:m,viewTransition:d,...p},g)=>{let y=kr(),E=Er(i,{relative:f}),w=l.toLowerCase()==="get"?"get":"post",v=typeof i=="string"&&Ve.test(i),b=k=>{if(c&&c(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,O=I?.getAttribute("formmethod")||l;y(I||k.currentTarget,{fetcherKey:r,method:O,navigate:t,replace:a,state:o,relative:f,preventScrollReset:m,viewTransition:d})};return u.createElement("form",{ref:g,method:w,action:E,onSubmit:n?c:b,...p,"data-discover":!v&&e==="render"?"true":void 0})});br.displayName="Form";function xr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function He(e){let r=u.useContext(V);return j(r,xr(e)),r}function yr(e,{target:r,replace:t,state:n,preventScrollReset:a,relative:o,viewTransition:l}={}){let i=Ut(),c=W(),f=q(e,{relative:o});return u.useCallback(m=>{if(Zt(m,r)){m.preventDefault();let d=t!==void 0?t:ie(c)===ie(f);i(e,{replace:d,state:n,preventScrollReset:a,relative:o,viewTransition:l})}},[c,i,f,t,n,r,e,a,o,l])}var vr=0,wr=()=>`__${String(++vr)}__`;function kr(){let{router:e}=He("useSubmit"),{basename:r}=u.useContext(U),t=Ht();return u.useCallback(async(n,a={})=>{let{action:o,method:l,encType:i,formData:c,body:f}=tr(n,r);if(a.navigate===!1){let m=a.fetcherKey||wr();await e.fetch(m,t,a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,r,t])}function Er(e,{relative:r}={}){let{basename:t}=u.useContext(U),n=u.useContext($);j(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...q(e||".",{relative:r})},l=W();if(e==null){o.search=l.search;let i=new URLSearchParams(o.search),c=i.getAll("index");if(c.some(m=>m==="")){i.delete("index"),c.filter(d=>d).forEach(d=>i.append("index",d));let m=i.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(o.pathname=o.pathname==="/"?t:L([t,o.pathname])),ie(o)}function Rr(e,{relative:r}={}){let t=u.useContext($e);j(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=He("useViewTransitionState"),a=q(e,{relative:r});if(!t.isTransitioning)return!1;let o=F(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=F(t.nextLocation.pathname,n)||t.nextLocation.pathname;return Z(a.pathname,l)!=null||Z(a.pathname,o)!=null}const Cr={primary:"text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",secondary:"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",subtle:"text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"},xe=({to:e,children:r,className:t,variant:n="primary"})=>h.jsx(be,{to:e,className:R.cn(Cr[n],t),"aria-label":typeof r=="string"?`Navigate to ${r}`:void 0,children:r}),Sr={gettingStarted:{documentation:"/document#getting-started",connect:"/connect",features:"/document#email-management"},benefits:{users:"/web3-users",projects:"/web3-projects",security:"/document#technical-details",nameService:"/document#name-service-subscription"},technical:{documentation:"/document",apiDocs:"/document#api-documentation",smartContracts:"/document#smart-contracts",security:"/document#technical-details"},integration:{projects:"/web3-projects",delegation:"/document#email-delegation",nameService:"/document#name-service-subscription",troubleshooting:"/document#troubleshooting"}},Pr=({cluster:e,context:r="",className:t})=>{const n=Sr[e],a={gettingStarted:{documentation:"Learn how it works",connect:"Get started now",features:"Explore features"},benefits:{users:"Benefits for users",projects:"For Web3 projects",security:"Security details",nameService:"ENS/SNS domains"},technical:{documentation:"Full documentation",apiDocs:"API reference",smartContracts:"Smart contract integration",security:"Technical security"},integration:{projects:"Integration examples",delegation:"Email delegation",nameService:"Domain setup",troubleshooting:"Troubleshooting guide"}};return h.jsx("span",{className:R.cn("text-sm text-gray-600 dark:text-gray-400",t),children:Object.entries(n).map(([o,l],i)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:l,variant:"primary",children:a[e][o]}),i<Object.keys(n).length-1&&" • "]},o))})},Nr=({title:e="Related:",links:r,className:t})=>h.jsxs("div",{className:R.cn("mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",t),children:[h.jsx("span",{className:"text-sm font-medium text-blue-900 dark:text-blue-200 mr-2",children:e}),r.map((n,a)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:n.url,variant:n.variant||"primary",children:n.text}),a<r.length-1&&" • "]},a))]}),jr=(e,r)=>({homepage:[{text:"How it works",url:"/document#getting-started"},{text:"User benefits",url:"/web3-users"},{text:"For projects",url:"/web3-projects"}],documentation:[{text:"Get started",url:"/connect"},{text:"User guide",url:"/web3-users"},{text:"API docs",url:"/document#api-documentation"}],users:[{text:"Start now",url:"/connect"},{text:"Documentation",url:"/document"},{text:"For projects",url:"/web3-projects"}],projects:[{text:"API integration",url:"/document#api-documentation"},{text:"Smart contracts",url:"/document#smart-contracts"},{text:"User benefits",url:"/web3-users"}]})[e]||[],Tr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UlandingUbuilder",children:r||"UlandingUbuilder Component"}),_r=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UnpsUsurvey",children:r||"UnpsUsurvey Component"}),Lr=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SalesReport",children:r||"SalesReport Component"}),Ur=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SubscriberList",children:r||"SubscriberList Component"}),$r=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UtestimonialUslider",children:r||"UtestimonialUslider Component"}),Or=({title:e,description:r,useCases:t,columns:n=3,className:a})=>{const o={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},l={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return h.jsx("section",{className:R.cn(M.ui.section.gradient,a),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||r)&&h.jsxs("div",{className:"text-center mb-12",children:[e&&h.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),r&&h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:r})]}),h.jsx("div",{className:R.cn("grid gap-8",l[n]),children:t.map((i,c)=>{const f=i.color?o[i.color]:o.blue;return h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[h.jsx("div",{className:R.cn("flex-shrink-0 mb-4",f),children:i.icon}),h.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:i.title}),h.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:i.description}),i.examples&&i.examples.length>0&&h.jsxs("div",{children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),h.jsx("ul",{className:"space-y-1",children:i.examples.map((m,d)=>h.jsxs("li",{className:"flex items-start",children:[h.jsx("div",{className:R.cn("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",i.color?`bg-${i.color}-500`:"bg-blue-500")}),h.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},d))})]})]},c)})})]})})},Ar=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UwelcomeUscreen",children:r||"UwelcomeUscreen Component"});C.CrmDashboard=tt,C.FeatureListItem=ot,C.HeroBannerWithBadge=it,C.InternalLink=xe,C.RelatedLinks=Nr,C.SalesReport=Lr,C.SubscriberList=Ur,C.TopicClusterLinks=Pr,C.UctaUbanner=rt,C.UfeatureUspotlight=lt,C.UlandingUbuilder=Tr,C.UnpsUsurvey=_r,C.UseCaseGrid=Or,C.UtestimonialUslider=$r,C.UwelcomeUscreen=Ar,C.generateContextualLinks=jr,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -60,5 +60,5 @@ declare const generateContextualLinks: (pageType: string, _userStatus?: string)
|
|
|
60
60
|
text: string;
|
|
61
61
|
url: string;
|
|
62
62
|
}[];
|
|
63
|
-
export { TopicClusterLinks, RelatedLinks, generateContextualLinks
|
|
63
|
+
export { TopicClusterLinks, RelatedLinks, generateContextualLinks };
|
|
64
64
|
//# sourceMappingURL=internal-link-clusters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-link-clusters.d.ts","sourceRoot":"","sources":["../src/internal-link-clusters.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC9C;AAWD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAepD,CAAC;AAGF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,OAAO,mBAAmB,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiDvD,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;KAC9C,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuB7C,CAAC;AAGF,QAAA,MAAM,uBAAuB,GAAI,UAAU,MAAM,EAAE,cAAc,MAAM;;;;;;;;;;;;GAyBtE,CAAC;AAEF,OAAO,
|
|
1
|
+
{"version":3,"file":"internal-link-clusters.d.ts","sourceRoot":"","sources":["../src/internal-link-clusters.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC9C;AAWD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAepD,CAAC;AAGF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,OAAO,mBAAmB,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiDvD,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;KAC9C,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuB7C,CAAC;AAGF,QAAA,MAAM,uBAAuB,GAAI,UAAU,MAAM,EAAE,cAAc,MAAM;;;;;;;;;;;;GAyBtE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
package/package.json
CHANGED
package/dist/feature-grid.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const gridVariants: (props?: ({
|
|
4
|
-
columns?: 1 | 2 | 3 | 4 | null | undefined;
|
|
5
|
-
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface Feature {
|
|
8
|
-
id?: string;
|
|
9
|
-
icon: React.ReactNode;
|
|
10
|
-
title: string;
|
|
11
|
-
description: string | React.ReactNode;
|
|
12
|
-
link?: {
|
|
13
|
-
href: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
};
|
|
16
|
-
badge?: {
|
|
17
|
-
text: string;
|
|
18
|
-
variant?: 'success' | 'info' | 'warning' | 'default';
|
|
19
|
-
};
|
|
20
|
-
gradient?: {
|
|
21
|
-
from: string;
|
|
22
|
-
to: string;
|
|
23
|
-
};
|
|
24
|
-
learnMoreUrl?: string;
|
|
25
|
-
benefits?: string[];
|
|
26
|
-
}
|
|
27
|
-
export interface FeatureGridProps extends VariantProps<typeof gridVariants> {
|
|
28
|
-
className?: string;
|
|
29
|
-
features: Feature[];
|
|
30
|
-
cardVariant?: 'default' | 'left' | 'hoverable' | 'card' | 'minimal';
|
|
31
|
-
cardAnimation?: 'none' | 'hover' | 'float';
|
|
32
|
-
iconSize?: 'sm' | 'md' | 'lg';
|
|
33
|
-
iconStyle?: 'gradient' | 'solid' | 'outline' | 'colorful';
|
|
34
|
-
iconPosition?: 'center' | 'left' | 'right';
|
|
35
|
-
titleClass?: string;
|
|
36
|
-
descriptionClass?: string;
|
|
37
|
-
animate?: boolean;
|
|
38
|
-
animationDelay?: number;
|
|
39
|
-
staggerDelay?: number;
|
|
40
|
-
onFeatureClick?: (feature: Feature) => void;
|
|
41
|
-
defaultLinkText?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const FeatureGrid: React.FC<FeatureGridProps>;
|
|
44
|
-
export declare const createFeature: (icon: React.ReactNode, title: string, description: string | React.ReactNode, options?: Partial<Feature>) => Feature;
|
|
45
|
-
export declare const createSecurityFeatures: (labels?: {
|
|
46
|
-
passwordlessTitle?: string;
|
|
47
|
-
passwordlessDescription?: string;
|
|
48
|
-
encryptionTitle?: string;
|
|
49
|
-
encryptionDescription?: string;
|
|
50
|
-
}) => Feature[];
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=feature-grid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature-grid.d.ts","sourceRoot":"","sources":["../src/feature-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,YAAY;;;8EAkBhB,CAAC;AAuDH,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;KACtD,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IAEF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY,CAAC,OAAO,YAAY,CAAC;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;IAGpB,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;IACpE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAG3C,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IAC1D,YAAY,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAG3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAG5C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAWD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsJlD,CAAC;AAGF,eAAO,MAAM,aAAa,GACxB,MAAM,KAAK,CAAC,SAAS,EACrB,OAAO,MAAM,EACb,aAAa,MAAM,GAAG,KAAK,CAAC,SAAS,EACrC,UAAU,OAAO,CAAC,OAAO,CAAC,KACzB,OAKD,CAAC;AAIH,eAAO,MAAM,sBAAsB,GAAI,SAAS;IAC9C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,KAAG,OAAO,EAqCV,CAAC"}
|
package/dist/funnel-chart.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UfunnelUchart Component
|
|
3
|
-
*
|
|
4
|
-
* A reusable UfunnelUchart component with full dark mode support.
|
|
5
|
-
* Optimized for accessibility and AI-assisted development.
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <UfunnelUchart className="custom-class" />
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This component supports:
|
|
15
|
-
* - Light and dark themes automatically
|
|
16
|
-
* - Responsive design
|
|
17
|
-
* - Accessibility features
|
|
18
|
-
* - TypeScript type safety
|
|
19
|
-
*
|
|
20
|
-
* @see {@link https://docs.example.com/components/funnel-chart}
|
|
21
|
-
*/
|
|
22
|
-
export interface UfunnelUchartProps {
|
|
23
|
-
/** Additional CSS classes */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Component children */
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
/** Disabled state */
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/** Callback when component is interacted with */
|
|
30
|
-
onClick?: () => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const UfunnelUchart: ({ className, children, disabled, onClick, }: UfunnelUchartProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=funnel-chart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-chart.d.ts","sourceRoot":"","sources":["../src/funnel-chart.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,6CAK3B,kBAAkB,4CAmBpB,CAAC"}
|
package/dist/survey-builder.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UsurveyUbuilder Component
|
|
3
|
-
*
|
|
4
|
-
* A reusable UsurveyUbuilder component with full dark mode support.
|
|
5
|
-
* Optimized for accessibility and AI-assisted development.
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <UsurveyUbuilder className="custom-class" />
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This component supports:
|
|
15
|
-
* - Light and dark themes automatically
|
|
16
|
-
* - Responsive design
|
|
17
|
-
* - Accessibility features
|
|
18
|
-
* - TypeScript type safety
|
|
19
|
-
*
|
|
20
|
-
* @see {@link https://docs.example.com/components/survey-builder}
|
|
21
|
-
*/
|
|
22
|
-
export interface UsurveyUbuilderProps {
|
|
23
|
-
/** Additional CSS classes */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Component children */
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
/** Disabled state */
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/** Callback when component is interacted with */
|
|
30
|
-
onClick?: () => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const UsurveyUbuilder: ({ className, children, disabled, onClick, }: UsurveyUbuilderProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=survey-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"survey-builder.d.ts","sourceRoot":"","sources":["../src/survey-builder.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,6CAK7B,oBAAoB,4CAmBtB,CAAC"}
|