@petnow/ui 4.0.0 → 4.0.2
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.css +1 -1
- package/dist/index.es.js +5431 -7173
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +34 -67
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ui/button.d.ts +2 -2
- package/package.json +39 -27
- package/tailwind.css +4 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,90 +1,57 @@
|
|
|
1
|
-
(function(J,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ae):(J=typeof globalThis<"u"?globalThis:J||self,ae(J["@petnow/ui"]={},J.React,J.ReactDOM))})(this,function(J,ae,Jt){"use strict";function Qt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=Qt(ae),go=Qt(Jt);function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={exports:{}},_e={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var er;function yo(){if(er)return _e;er=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return _e.Fragment=t,_e.jsx=r,_e.jsxs=r,_e}var Ne={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var tr;function xo(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&function(){function e(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===q?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case W:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case z:return"SuspenseList";case H:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case v:return"Portal";case A:return u.displayName||"Context";case L:return(u._context.displayName||"Context")+".Consumer";case x:var C=u.render;return u=u.displayName,u||(u=C.displayName||C.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case I:return C=u.displayName||null,C!==null?C:e(u.type)||"Memo";case _:C=u._payload,u=u._init;try{return e(u(C))}catch{}}return null}function t(u){return""+u}function r(u){try{t(u);var C=!1}catch{C=!0}if(C){C=console;var S=C.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return S.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(u)}}function n(u){if(u===E)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===_)return"<...>";try{var C=e(u);return C?"<"+C+">":"<...>"}catch{return"<...>"}}function o(){var u=l.A;return u===null?null:u.getOwner()}function a(){return Error("react-stack-top-frame")}function s(u){if(y.call(u,"key")){var C=Object.getOwnPropertyDescriptor(u,"key").get;if(C&&C.isReactWarning)return!1}return u.key!==void 0}function i(u,C){function S(){F||(F=!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)",C))}S.isReactWarning=!0,Object.defineProperty(u,"key",{get:S,configurable:!0})}function f(){var u=e(this.type);return Q[u]||(Q[u]=!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.")),u=this.props.ref,u!==void 0?u:null}function d(u,C,S,T,V,D){var k=S.ref;return u={$$typeof:R,type:u,key:C,props:S,_owner:T},(k!==void 0?k:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:f}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function c(u,C,S,T,V,D){var k=C.children;if(k!==void 0)if(T)if(B(k)){for(T=0;T<k.length;T++)g(k[T]);Object.freeze&&Object.freeze(k)}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 g(k);if(y.call(C,"key")){k=e(u);var $=Object.keys(C).filter(function(Y){return Y!=="key"});T=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",b[k+T]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@petnow/ui`]={},e.React,e.ReactDOM))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e));t=d(t),n=d(n);function f(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=f(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function p(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f(e))&&(r&&(r+=` `),r+=t);return r}var m=`-`,h=e=>{let t=y(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(m);return n[0]===``&&n.length!==1&&n.shift(),g(n,t)||v(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},g=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?g(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(m);return t.validators.find(({validator:e})=>e(a))?.classGroupId},_=/^\[(.+)\]$/,v=e=>{if(_.test(e)){let t=_.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},y=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)b(n[e],r,e,t);return r},b=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:x(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(S(e)){b(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{b(i,x(t,e),n,r)})})},x=(e,t)=>{let n=e;return t.split(m).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},S=e=>e.isThemeGetter,C=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},w=`!`,T=`:`,E=1,D=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a;for(let o=0;o<e.length;o++){let s=e[o];if(n===0&&r===0){if(s===T){t.push(e.slice(i,o)),i=o+E;continue}if(s===`/`){a=o;continue}}s===`[`?n++:s===`]`?n--:s===`(`?r++:s===`)`&&r--}let o=t.length===0?e:e.substring(i),s=O(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:a&&a>i?a-i:void 0}};if(t){let e=t+T,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},O=e=>e.endsWith(w)?e.substring(0,e.length-1):e.startsWith(w)?e.substring(1):e,k=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{e[0]===`[`||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},A=e=>({cache:C(e.cacheSize),parseClassName:D(e),sortModifiers:k(e),...h(e)}),j=/\s+/,M=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(j),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=a(u).join(`:`),_=d?g+w:g,v=_+h;if(o.includes(v))continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c};function N(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=P(t))&&(r&&(r+=` `),r+=n);return r}var P=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=P(e[r]))&&(n&&(n+=` `),n+=t);return n};function F(e,...t){let n,r,i,a=o;function o(o){return n=A(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=M(e,n);return i(e,a),a}return function(){return a(N.apply(null,arguments))}}var I=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},L=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ee=/^\((?:(\w[\w-]*):)?(.+)\)$/i,te=/^\d+\/\d+$/,R=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,re=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ie=e=>te.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>R.test(e),oe=()=>!0,se=e=>z.test(e)&&!ne.test(e),ce=()=>!1,le=e=>re.test(e),ue=e=>B.test(e),de=e=>!W(e)&&!G(e),fe=e=>K(e,De,ce),W=e=>L.test(e),pe=e=>K(e,Oe,se),me=e=>K(e,ke,V),he=e=>K(e,Te,ce),ge=e=>K(e,Ee,ue),_e=e=>K(e,je,le),G=e=>ee.test(e),ve=e=>we(e,Oe),ye=e=>we(e,Ae),be=e=>we(e,Te),xe=e=>we(e,De),Se=e=>we(e,Ee),Ce=e=>we(e,je,!0),K=(e,t,n)=>{let r=L.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},we=(e,t,n=!1)=>{let r=ee.exec(e);return r?r[1]?t(r[1]):n:!1},Te=e=>e===`position`||e===`percentage`,Ee=e=>e===`image`||e===`url`,De=e=>e===`length`||e===`size`||e===`bg-size`,Oe=e=>e===`length`,ke=e=>e===`number`,Ae=e=>e===`family-name`,je=e=>e===`shadow`,Me=()=>{let e=I(`color`),t=I(`font`),n=I(`text`),r=I(`font-weight`),i=I(`tracking`),a=I(`leading`),o=I(`breakpoint`),s=I(`container`),c=I(`spacing`),l=I(`radius`),u=I(`shadow`),d=I(`inset-shadow`),f=I(`text-shadow`),p=I(`drop-shadow`),m=I(`blur`),h=I(`perspective`),g=I(`aspect`),_=I(`ease`),v=I(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[ie,`full`,`auto`,...w()],E=()=>[H,`none`,`subgrid`,G,W],D=()=>[`auto`,{span:[`full`,H,G,W]},H,G,W],O=()=>[H,`auto`,G,W],k=()=>[`auto`,`min`,`max`,`fr`,G,W],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[ie,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,G,W],F=()=>[...b(),be,he,{position:[G,W]}],L=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ee=()=>[`auto`,`cover`,`contain`,xe,fe,{size:[G,W]}],te=()=>[ae,ve,pe],R=()=>[``,`none`,`full`,l,G,W],z=()=>[``,V,ve,pe],ne=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],B=()=>[V,ae,be,he],se=()=>[``,`none`,m,G,W],ce=()=>[`none`,V,G,W],le=()=>[`none`,V,G,W],ue=()=>[V,G,W],K=()=>[ie,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[oe],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[de],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ie,W,G,g]}],container:[`container`],columns:[{columns:[V,W,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,G,W]}],basis:[{basis:[ie,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,ie,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,G,W]}],shrink:[{shrink:[``,V,G,W]}],order:[{order:[H,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,ve,pe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,G,me]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ae,W]}],"font-family":[{font:[ye,W,t]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[V,`none`,G,me]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ne(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,G,pe]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[V,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,G,W],radial:[``,G,W],conic:[H,G,W]},Se,ge]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ne(),`hidden`,`none`]}],"divide-style":[{divide:[...ne(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ne(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,G,W]}],"outline-w":[{outline:[``,V,ve,pe]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,Ce,_e]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ce,_e]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[V,pe]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ce,_e]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[V,G,W]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:se()}],brightness:[{brightness:[V,G,W]}],contrast:[{contrast:[V,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ce,_e]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,V,G,W]}],"hue-rotate":[{"hue-rotate":[V,G,W]}],invert:[{invert:[``,V,G,W]}],saturate:[{saturate:[V,G,W]}],sepia:[{sepia:[``,V,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[V,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[V,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":[`translate-none`],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[V,ve,pe,me]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Ne=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(Pe(e,`cacheSize`,t),Pe(e,`prefix`,n),Pe(e,`experimentalParseClassName`,r),Fe(e.theme,a.theme),Fe(e.classGroups,a.classGroups),Fe(e.conflictingClassGroups,a.conflictingClassGroups),Fe(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Pe(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Ie(e.theme,i.theme),Ie(e.classGroups,i.classGroups),Ie(e.conflictingClassGroups,i.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,i,`orderSensitiveModifiers`),e),Pe=(e,t,n)=>{n!==void 0&&(e[t]=n)},Fe=(e,t)=>{if(t)for(let n in t)Pe(e,n,t[n])},Ie=(e,t)=>{if(t)for(let n in t)Le(e,t,n)},Le=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Re=((e,...t)=>typeof e==`function`?F(Me,e,...t):F(()=>Ne(Me(),e),...t))({extend:{classGroups:{"font-style":[`text-display-96-bold`,`text-display-96-medium`,`text-display-72-bold`,`text-display-72-medium`,`text-display-60-bold`,`text-display-60-medium`,`text-headline-48-bold`,`text-headline-48-medium`,`text-headline-48-regular`,`text-headline-42-bold`,`text-headline-42-medium`,`text-headline-42-regular`,`text-headline-36-bold`,`text-headline-36-medium`,`text-headline-36-regular`,`text-title-28-bold`,`text-title-28-medium`,`text-title-28-regular`,`text-title-24-bold`,`text-title-24-medium`,`text-title-24-regular`,`text-title-20-bold`,`text-title-20-medium`,`text-title-20-regular`,`text-title-18-bold`,`text-title-18-medium`,`text-title-18-regular`,`text-title-16-bold`,`text-title-14-bold`,`text-body-16-medium`,`text-body-16-regular`,`text-body-14-medium`,`text-body-14-regular`,`text-body-12-bold`,`text-caption-12-bold`,`text-caption-12-medium`,`text-caption-12-regular`,`text-caption-11-medium`,`text-caption-10-bold`,{text:[`display-large`,`display-medium`,`title-large`,`title-medium`,`title-small`,`label-large`,`label-medium`,`label-small`,`body-large`,`body-medium`,`body-small`,`caption-large`,`caption-medium`,`caption-small`,`badge`]}]},conflictingClassGroups:{"font-style":[`font-size`,`font-weight`]}}});function q(...e){return Re(p(e))}var ze=l((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Be=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}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 f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
2
|
let props = %s;
|
|
19
3
|
<%s {...props} />
|
|
20
4
|
React keys must be passed directly to JSX without using spread:
|
|
21
5
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,T,k,$,k),b[k+T]=!0)}if(k=null,S!==void 0&&(r(S),k=""+S),s(C)&&(r(C.key),k=""+C.key),"key"in C){S={};for(var U in C)U!=="key"&&(S[U]=C[U])}else S=C;return k&&i(S,typeof u=="function"?u.displayName||u.name||"Unknown":u),d(u,k,S,o(),V,D)}function g(u){h(u)?u._store&&(u._store.validated=1):typeof u=="object"&&u!==null&&u.$$typeof===_&&(u._payload.status==="fulfilled"?h(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function h(u){return typeof u=="object"&&u!==null&&u.$$typeof===R}var w=ae,R=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),A=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),l=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,y=Object.prototype.hasOwnProperty,B=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(u){return u()}};var F,Q={},P=w.react_stack_bottom_frame.bind(w,a)(),oe=Z(n(a)),b={};Ne.Fragment=E,Ne.jsx=function(u,C,S){var T=1e4>l.recentlyCreatedOwnerStacks++;return c(u,C,S,!1,T?Error("react-stack-top-frame"):P,T?Z(n(u)):oe)},Ne.jsxs=function(u,C,S){var T=1e4>l.recentlyCreatedOwnerStacks++;return c(u,C,S,!0,T?Error("react-stack-top-frame"):P,T?Z(n(u)):oe)}}()),Ne}var rr;function wo(){return rr||(rr=1,process.env.NODE_ENV==="production"?$e.exports=yo():$e.exports=xo()),$e.exports}var p=wo();function nr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=nr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function or(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=nr(e))&&(n&&(n+=" "),n+=t);return n}const ft="-",Co=e=>{const t=So(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(ft);return i[0]===""&&i.length!==1&&i.shift(),ar(i,t)||Eo(s)},getConflictingClassGroupIds:(s,i)=>{const f=r[s]||[];return i&&n[s]?[...f,...n[s]]:f}}},ar=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?ar(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ft);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ir=/^\[(.+)\]$/,Eo=e=>{if(ir.test(e)){const t=ir.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},So=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)pt(r[o],n,o,t);return n},pt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:sr(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Ro(o)){pt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{pt(s,sr(t,a),r,n)})})},sr=(e,t)=>{let r=e;return t.split(ft).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ro=e=>e.isThemeGetter,To=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},mt="!",ht=":",ko=ht.length,_o=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,f=0,d;for(let R=0;R<o.length;R++){let v=o[R];if(s===0&&i===0){if(v===ht){a.push(o.slice(f,R)),f=R+ko;continue}if(v==="/"){d=R;continue}}v==="["?s++:v==="]"?s--:v==="("?i++:v===")"&&i--}const c=a.length===0?o:o.substring(f),g=No(c),h=g!==c,w=d&&d>f?d-f:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:w}};if(t){const o=t+ht,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},No=e=>e.endsWith(mt)?e.substring(0,e.length-1):e.startsWith(mt)?e.substring(1):e,Po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Oo=e=>({cache:To(e.cacheSize),parseClassName:_o(e),sortModifiers:Po(e),...Co(e)}),Mo=/\s+/,jo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Mo);let f="";for(let d=i.length-1;d>=0;d-=1){const c=i[d],{isExternal:g,modifiers:h,hasImportantModifier:w,baseClassName:R,maybePostfixModifierPosition:v}=r(c);if(g){f=c+(f.length>0?" "+f:f);continue}let E=!!v,j=n(E?R.substring(0,v):R);if(!j){if(!E){f=c+(f.length>0?" "+f:f);continue}if(j=n(R),!j){f=c+(f.length>0?" "+f:f);continue}E=!1}const W=a(h).join(":"),L=w?W+mt:W,A=L+j;if(s.includes(A))continue;s.push(A);const x=o(j,E);for(let X=0;X<x.length;++X){const z=x[X];s.push(L+z)}f=c+(f.length>0?" "+f:f)}return f};function Ao(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=lr(t))&&(n&&(n+=" "),n+=r);return n}const lr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=lr(e[n]))&&(r&&(r+=" "),r+=t);return r};function cr(e,...t){let r,n,o,a=s;function s(f){const d=t.reduce((c,g)=>g(c),e());return r=Oo(d),n=r.cache.get,o=r.cache.set,a=i,i(f)}function i(f){const d=n(f);if(d)return d;const c=jo(f,r);return o(f,c),c}return function(){return a(Ao.apply(null,arguments))}}const ne=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ur=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Io=/^\d+\/\d+$/,Lo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Do=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>Io.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>!!e&&Number.isInteger(Number(e)),vt=e=>e.endsWith("%")&&G(e.slice(0,-1)),ue=e=>Lo.test(e),Vo=()=>!0,$o=e=>Do.test(e)&&!Fo.test(e),fr=()=>!1,qo=e=>Wo.test(e),Bo=e=>zo.test(e),Uo=e=>!O(e)&&!M(e),Ho=e=>Ce(e,gr,fr),O=e=>ur.test(e),ve=e=>Ce(e,br,$o),gt=e=>Ce(e,Ko,G),pr=e=>Ce(e,hr,fr),Yo=e=>Ce(e,vr,Bo),qe=e=>Ce(e,yr,qo),M=e=>dr.test(e),Pe=e=>Ee(e,br),Go=e=>Ee(e,Jo),mr=e=>Ee(e,hr),Xo=e=>Ee(e,gr),Zo=e=>Ee(e,vr),Be=e=>Ee(e,yr,!0),Ce=(e,t,r)=>{const n=ur.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ee=(e,t,r=!1)=>{const n=dr.exec(e);return n?n[1]?t(n[1]):r:!1},hr=e=>e==="position"||e==="percentage",vr=e=>e==="image"||e==="url",gr=e=>e==="length"||e==="size"||e==="bg-size",br=e=>e==="length",Ko=e=>e==="number",Jo=e=>e==="family-name",yr=e=>e==="shadow",xr=()=>{const e=ne("color"),t=ne("font"),r=ne("text"),n=ne("font-weight"),o=ne("tracking"),a=ne("leading"),s=ne("breakpoint"),i=ne("container"),f=ne("spacing"),d=ne("radius"),c=ne("shadow"),g=ne("inset-shadow"),h=ne("text-shadow"),w=ne("drop-shadow"),R=ne("blur"),v=ne("perspective"),E=ne("aspect"),j=ne("ease"),W=ne("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...A(),M,O],X=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],I=()=>[M,O,f],_=()=>[we,"full","auto",...I()],H=()=>[pe,"none","subgrid",M,O],q=()=>["auto",{span:["full",pe,M,O]},pe,M,O],l=()=>[pe,"auto",M,O],y=()=>["auto","min","max","fr",M,O],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...I()],Q=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],P=()=>[e,M,O],oe=()=>[...A(),mr,pr,{position:[M,O]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],u=()=>["auto","cover","contain",Xo,Ho,{size:[M,O]}],C=()=>[vt,Pe,ve],S=()=>["","none","full",d,M,O],T=()=>["",G,Pe,ve],V=()=>["solid","dashed","dotted","double"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[G,vt,mr,pr],$=()=>["","none",R,M,O],U=()=>["none",G,M,O],Y=()=>["none",G,M,O],re=()=>[G,M,O],N=()=>[we,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ue],breakpoint:[ue],color:[Vo],container:[ue],"drop-shadow":[ue],ease:["in","out","in-out"],font:[Uo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ue],shadow:[ue],spacing:["px",G],text:[ue],"text-shadow":[ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,O,M,E]}],container:["container"],columns:[{columns:[G,O,M,i]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[pe,"auto",M,O]}],basis:[{basis:[we,"full","auto",i,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,we,"auto","initial","none",O]}],grow:[{grow:["",G,M,O]}],shrink:[{shrink:["",G,M,O]}],order:[{order:[pe,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":l()}],"col-end":[{"col-end":l()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":l()}],"row-end":[{"row-end":l()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":y()}],"auto-rows":[{"auto-rows":y()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[i,"screen",...Q()]}],"min-w":[{"min-w":[i,"screen","none",...Q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",r,Pe,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,gt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vt,O]}],"font-family":[{font:[Go,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,M,O]}],"line-clamp":[{"line-clamp":[G,"none",M,gt]}],leading:[{leading:[a,...I()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",M,ve]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[G,"auto",M,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:u()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pe,M,O],radial:["",M,O],conic:[pe,M,O]},Zo,Yo]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,M,O]}],"outline-w":[{outline:["",G,Pe,ve]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",c,Be,qe]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",g,Be,qe]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[G,ve]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",h,Be,qe]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[G,M,O]}],"mix-blend":[{"mix-blend":[...D(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":D()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:u()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:$()}],brightness:[{brightness:[G,M,O]}],contrast:[{contrast:[G,M,O]}],"drop-shadow":[{"drop-shadow":["","none",w,Be,qe]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",G,M,O]}],"hue-rotate":[{"hue-rotate":[G,M,O]}],invert:[{invert:["",G,M,O]}],saturate:[{saturate:[G,M,O]}],sepia:[{sepia:["",G,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[G,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[G,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,M,O]}],"backdrop-invert":[{"backdrop-invert":["",G,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[G,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[G,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",G,M,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",M,O]}],ease:[{ease:["linear","initial",j,M,O]}],delay:[{delay:[G,M,O]}],animate:[{animate:["none",W,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,M,O]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:N()}],"translate-x":[{"translate-x":N()}],"translate-y":[{"translate-y":N()}],"translate-z":[{"translate-z":N()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,O]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[G,Pe,ve,gt]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qo=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(Oe(e,"cacheSize",t),Oe(e,"prefix",r),Oe(e,"experimentalParseClassName",n),Ue(e.theme,a.theme),Ue(e.classGroups,a.classGroups),Ue(e.conflictingClassGroups,a.conflictingClassGroups),Ue(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Oe(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),He(e.theme,o.theme),He(e.classGroups,o.classGroups),He(e.conflictingClassGroups,o.conflictingClassGroups),He(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),wr(e,o,"orderSensitiveModifiers"),e),Oe=(e,t,r)=>{r!==void 0&&(e[t]=r)},Ue=(e,t)=>{if(t)for(const r in t)Oe(e,r,t[r])},He=(e,t)=>{if(t)for(const r in t)wr(e,t,r)},wr=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},ea=((e,...t)=>typeof e=="function"?cr(xr,e,...t):cr(()=>Qo(xr(),e),...t))({extend:{classGroups:{"font-style":["text-display-96-bold","text-display-96-medium","text-display-72-bold","text-display-72-medium","text-display-60-bold","text-display-60-medium","text-headline-48-bold","text-headline-48-medium","text-headline-48-regular","text-headline-42-bold","text-headline-42-medium","text-headline-42-regular","text-headline-36-bold","text-headline-36-medium","text-headline-36-regular","text-title-28-bold","text-title-28-medium","text-title-28-regular","text-title-24-bold","text-title-24-medium","text-title-24-regular","text-title-20-bold","text-title-20-medium","text-title-20-regular","text-title-18-bold","text-title-18-medium","text-title-18-regular","text-title-16-bold","text-title-14-bold","text-body-16-medium","text-body-16-regular","text-body-14-medium","text-body-14-regular","text-body-12-bold","text-caption-12-bold","text-caption-12-medium","text-caption-12-regular","text-caption-11-medium","text-caption-10-bold",{text:["display-large","display-medium","title-large","title-medium","title-small","label-large","label-medium","label-small","body-large","body-medium","body-small","caption-large","caption-medium","caption-small","badge"]}]},conflictingClassGroups:{"font-style":["font-size","font-weight"]}}});function K(...e){return ea(or(e))}const ta=({className:e,id:t,name:r,onChange:n,disabled:o,isChecked:a})=>p.jsx("input",{type:"radio",disabled:o,checked:a,id:t,name:r,className:K("petnowRadio size-[3.5vw]",e),onChange:n});var bt={},yt,Cr;function Er(){if(Cr)return yt;Cr=1;function e(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};o.get||o.set?Object.defineProperty(r,n,o):r[n]=t[n]}}return r.default=t,r}return yt=e,yt}var de={},xt,Sr;function Me(){if(Sr)return xt;Sr=1;function e(t){return t&&t.__esModule?t:{default:t}}return xt=e,xt}var Ye,Rr;function ra(){if(Rr)return Ye;Rr=1;function e(){return Ye=e=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},e.apply(this,arguments)}return Ye=e,Ye}var wt,Tr;function na(){if(Tr)return wt;Tr=1;function e(t,r){if(t==null)return{};var n={},o=Object.keys(t),a,s;for(s=0;s<o.length;s++)a=o[s],!(r.indexOf(a)>=0)&&(n[a]=t[a]);return n}return wt=e,wt}var Ct,kr;function oa(){if(kr)return Ct;kr=1;var e=na();function t(r,n){if(r==null)return{};var o=e(r,n),a,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(s=0;s<i.length;s++)a=i[s],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(o[a]=r[a])}return o}return Ct=t,Ct}var Et,_r;function aa(){if(_r)return Et;_r=1;function e(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}return Et=e,Et}var St,Nr;function ia(){if(Nr)return St;Nr=1;function e(r,n){for(var o=0;o<n.length;o++){var a=n[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function t(r,n,o){return n&&e(r.prototype,n),o&&e(r,o),r}return St=t,St}var je,Pr;function sa(){if(Pr)return je;Pr=1;function e(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(o){return typeof o}:e=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(r)}function t(r){return typeof Symbol=="function"&&e(Symbol.iterator)==="symbol"?je=t=function(o){return e(o)}:je=t=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":e(o)},t(r)}return je=t,je}var Rt,Or;function la(){if(Or)return Rt;Or=1;function e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return Rt=e,Rt}var Tt,Mr;function ca(){if(Mr)return Tt;Mr=1;var e=sa(),t=la();function r(n,o){return o&&(e(o)==="object"||typeof o=="function")?o:t(n)}return Tt=r,Tt}var Ge,jr;function ua(){if(jr)return Ge;jr=1;function e(t){return Ge=e=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},e(t)}return Ge=e,Ge}var Xe,Ar;function da(){if(Ar)return Xe;Ar=1;function e(t,r){return Xe=e=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},e(t,r)}return Xe=e,Xe}var kt,Ir;function fa(){if(Ir)return kt;Ir=1;var e=da();function t(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&e(r,n)}return kt=t,kt}var Ze={exports:{}},Ke={exports:{}},ee={};/** @license React v16.13.1
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var Lr;function pa(){if(Lr)return ee;Lr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function L(x){if(typeof x=="object"&&x!==null){var X=x.$$typeof;switch(X){case t:switch(x=x.type,x){case f:case d:case n:case a:case o:case g:return x;default:switch(x=x&&x.$$typeof,x){case i:case c:case R:case w:case s:return x;default:return X}}case r:return X}}}function A(x){return L(x)===d}return ee.AsyncMode=f,ee.ConcurrentMode=d,ee.ContextConsumer=i,ee.ContextProvider=s,ee.Element=t,ee.ForwardRef=c,ee.Fragment=n,ee.Lazy=R,ee.Memo=w,ee.Portal=r,ee.Profiler=a,ee.StrictMode=o,ee.Suspense=g,ee.isAsyncMode=function(x){return A(x)||L(x)===f},ee.isConcurrentMode=A,ee.isContextConsumer=function(x){return L(x)===i},ee.isContextProvider=function(x){return L(x)===s},ee.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},ee.isForwardRef=function(x){return L(x)===c},ee.isFragment=function(x){return L(x)===n},ee.isLazy=function(x){return L(x)===R},ee.isMemo=function(x){return L(x)===w},ee.isPortal=function(x){return L(x)===r},ee.isProfiler=function(x){return L(x)===a},ee.isStrictMode=function(x){return L(x)===o},ee.isSuspense=function(x){return L(x)===g},ee.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===d||x===a||x===o||x===g||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===R||x.$$typeof===w||x.$$typeof===s||x.$$typeof===i||x.$$typeof===c||x.$$typeof===E||x.$$typeof===j||x.$$typeof===W||x.$$typeof===v)},ee.typeOf=L,ee}var te={};/** @license React v16.13.1
|
|
30
|
-
* react-is.development.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var Dr;function ma(){return Dr||(Dr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function L(N){return typeof N=="string"||typeof N=="function"||N===n||N===d||N===a||N===o||N===g||N===h||typeof N=="object"&&N!==null&&(N.$$typeof===R||N.$$typeof===w||N.$$typeof===s||N.$$typeof===i||N.$$typeof===c||N.$$typeof===E||N.$$typeof===j||N.$$typeof===W||N.$$typeof===v)}function A(N){if(typeof N=="object"&&N!==null){var ie=N.$$typeof;switch(ie){case t:var ye=N.type;switch(ye){case f:case d:case n:case a:case o:case g:return ye;default:var xe=ye&&ye.$$typeof;switch(xe){case i:case c:case R:case w:case s:return xe;default:return ie}}case r:return ie}}}var x=f,X=d,z=i,I=s,_=t,H=c,q=n,l=R,y=w,B=r,Z=a,F=o,Q=g,P=!1;function oe(N){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(N)||A(N)===f}function b(N){return A(N)===d}function u(N){return A(N)===i}function C(N){return A(N)===s}function S(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function T(N){return A(N)===c}function V(N){return A(N)===n}function D(N){return A(N)===R}function k(N){return A(N)===w}function $(N){return A(N)===r}function U(N){return A(N)===a}function Y(N){return A(N)===o}function re(N){return A(N)===g}te.AsyncMode=x,te.ConcurrentMode=X,te.ContextConsumer=z,te.ContextProvider=I,te.Element=_,te.ForwardRef=H,te.Fragment=q,te.Lazy=l,te.Memo=y,te.Portal=B,te.Profiler=Z,te.StrictMode=F,te.Suspense=Q,te.isAsyncMode=oe,te.isConcurrentMode=b,te.isContextConsumer=u,te.isContextProvider=C,te.isElement=S,te.isForwardRef=T,te.isFragment=V,te.isLazy=D,te.isMemo=k,te.isPortal=$,te.isProfiler=U,te.isStrictMode=Y,te.isSuspense=re,te.isValidElementType=L,te.typeOf=A}()),te}var Fr;function Wr(){return Fr||(Fr=1,process.env.NODE_ENV==="production"?Ke.exports=pa():Ke.exports=ma()),Ke.exports}/*
|
|
37
|
-
object-assign
|
|
38
|
-
(c) Sindre Sorhus
|
|
39
|
-
@license MIT
|
|
40
|
-
*/var _t,zr;function ha(){if(zr)return _t;zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},i=0;i<10;i++)s["_"+String.fromCharCode(i)]=i;var f=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(f.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(c){d[c]=c}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return _t=o()?Object.assign:function(a,s){for(var i,f=n(a),d,c=1;c<arguments.length;c++){i=Object(arguments[c]);for(var g in i)t.call(i,g)&&(f[g]=i[g]);if(e){d=e(i);for(var h=0;h<d.length;h++)r.call(i,d[h])&&(f[d[h]]=i[d[h]])}}return f},_t}var Nt,Vr;function Pt(){if(Vr)return Nt;Vr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nt=e,Nt}var Ot,$r;function qr(){return $r||($r=1,Ot=Function.call.bind(Object.prototype.hasOwnProperty)),Ot}var Mt,Br;function va(){if(Br)return Mt;Br=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pt(),r={},n=qr();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(a,s,i,f,d){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var g;try{if(typeof a[c]!="function"){var h=Error((f||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}g=a[c](s,c,f,i,null,t)}catch(R){g=R}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var w=d?d():"";e("Failed "+i+" type: "+g.message+(w??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Mt=o,Mt}var jt,Ur;function ga(){if(Ur)return jt;Ur=1;var e=Wr(),t=ha(),r=Pt(),n=qr(),o=va(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var f="Warning: "+i;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return jt=function(i,f){var d=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function g(b){var u=b&&(d&&b[d]||b[c]);if(typeof u=="function")return u}var h="<<anonymous>>",w={array:j("array"),bigint:j("bigint"),bool:j("boolean"),func:j("function"),number:j("number"),object:j("object"),string:j("string"),symbol:j("symbol"),any:W(),arrayOf:L,element:A(),elementType:x(),instanceOf:X,node:H(),objectOf:I,oneOf:z,oneOfType:_,shape:l,exact:y};function R(b,u){return b===u?b!==0||1/b===1/u:b!==b&&u!==u}function v(b,u){this.message=b,this.data=u&&typeof u=="object"?u:{},this.stack=""}v.prototype=Error.prototype;function E(b){if(process.env.NODE_ENV!=="production")var u={},C=0;function S(V,D,k,$,U,Y,re){if($=$||h,Y=Y||k,re!==r){if(f){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=$+":"+k;!u[ie]&&C<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+$+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),u[ie]=!0,C++)}}return D[k]==null?V?D[k]===null?new v("The "+U+" `"+Y+"` is marked as required "+("in `"+$+"`, but its value is `null`.")):new v("The "+U+" `"+Y+"` is marked as required in "+("`"+$+"`, but its value is `undefined`.")):null:b(D,k,$,U,Y)}var T=S.bind(null,!1);return T.isRequired=S.bind(null,!0),T}function j(b){function u(C,S,T,V,D,k){var $=C[S],U=F($);if(U!==b){var Y=Q($);return new v("Invalid "+V+" `"+D+"` of type "+("`"+Y+"` supplied to `"+T+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return E(u)}function W(){return E(s)}function L(b){function u(C,S,T,V,D){if(typeof b!="function")return new v("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var k=C[S];if(!Array.isArray(k)){var $=F(k);return new v("Invalid "+V+" `"+D+"` of type "+("`"+$+"` supplied to `"+T+"`, expected an array."))}for(var U=0;U<k.length;U++){var Y=b(k,U,T,V,D+"["+U+"]",r);if(Y instanceof Error)return Y}return null}return E(u)}function A(){function b(u,C,S,T,V){var D=u[C];if(!i(D)){var k=F(D);return new v("Invalid "+T+" `"+V+"` of type "+("`"+k+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return E(b)}function x(){function b(u,C,S,T,V){var D=u[C];if(!e.isValidElementType(D)){var k=F(D);return new v("Invalid "+T+" `"+V+"` of type "+("`"+k+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return E(b)}function X(b){function u(C,S,T,V,D){if(!(C[S]instanceof b)){var k=b.name||h,$=oe(C[S]);return new v("Invalid "+V+" `"+D+"` of type "+("`"+$+"` supplied to `"+T+"`, expected ")+("instance of `"+k+"`."))}return null}return E(u)}function z(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function u(C,S,T,V,D){for(var k=C[S],$=0;$<b.length;$++)if(R(k,b[$]))return null;var U=JSON.stringify(b,function(re,N){var ie=Q(N);return ie==="symbol"?String(N):N});return new v("Invalid "+V+" `"+D+"` of value `"+String(k)+"` "+("supplied to `"+T+"`, expected one of "+U+"."))}return E(u)}function I(b){function u(C,S,T,V,D){if(typeof b!="function")return new v("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var k=C[S],$=F(k);if($!=="object")return new v("Invalid "+V+" `"+D+"` of type "+("`"+$+"` supplied to `"+T+"`, expected an object."));for(var U in k)if(n(k,U)){var Y=b(k,U,T,V,D+"."+U,r);if(Y instanceof Error)return Y}return null}return E(u)}function _(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var u=0;u<b.length;u++){var C=b[u];if(typeof C!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+P(C)+" at index "+u+"."),s}function S(T,V,D,k,$){for(var U=[],Y=0;Y<b.length;Y++){var re=b[Y],N=re(T,V,D,k,$,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&U.push(N.data.expectedType)}var ie=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new v("Invalid "+k+" `"+$+"` supplied to "+("`"+D+"`"+ie+"."))}return E(S)}function H(){function b(u,C,S,T,V){return B(u[C])?null:new v("Invalid "+T+" `"+V+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return E(b)}function q(b,u,C,S,T){return new v((b||"React class")+": "+u+" type `"+C+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function l(b){function u(C,S,T,V,D){var k=C[S],$=F(k);if($!=="object")return new v("Invalid "+V+" `"+D+"` of type `"+$+"` "+("supplied to `"+T+"`, expected `object`."));for(var U in b){var Y=b[U];if(typeof Y!="function")return q(T,V,D,U,Q(Y));var re=Y(k,U,T,V,D+"."+U,r);if(re)return re}return null}return E(u)}function y(b){function u(C,S,T,V,D){var k=C[S],$=F(k);if($!=="object")return new v("Invalid "+V+" `"+D+"` of type `"+$+"` "+("supplied to `"+T+"`, expected `object`."));var U=t({},C[S],b);for(var Y in U){var re=b[Y];if(n(b,Y)&&typeof re!="function")return q(T,V,D,Y,Q(re));if(!re)return new v("Invalid "+V+" `"+D+"` key `"+Y+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(C[S],null," ")+`
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(b),null," "));var N=re(k,Y,T,V,D+"."+Y,r);if(N)return N}return null}return E(u)}function B(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(B);if(b===null||i(b))return!0;var u=g(b);if(u){var C=u.call(b),S;if(u!==b.entries){for(;!(S=C.next()).done;)if(!B(S.value))return!1}else for(;!(S=C.next()).done;){var T=S.value;if(T&&!B(T[1]))return!1}}else return!1;return!0;default:return!1}}function Z(b,u){return b==="symbol"?!0:u?u["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&u instanceof Symbol:!1}function F(b){var u=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":Z(u,b)?"symbol":u}function Q(b){if(typeof b>"u"||b===null)return""+b;var u=F(b);if(u==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return u}function P(b){var u=Q(b);switch(u){case"array":case"object":return"an "+u;case"boolean":case"date":case"regexp":return"a "+u;default:return u}}function oe(b){return!b.constructor||!b.constructor.name?h:b.constructor.name}return w.checkPropTypes=o,w.resetWarningCache=o.resetWarningCache,w.PropTypes=w,w},jt}var At,Hr;function ba(){if(Hr)return At;Hr=1;var e=Pt();function t(){}function r(){}return r.resetWarningCache=t,At=function(){function n(s,i,f,d,c,g){if(g!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},At}var Yr;function ya(){if(Yr)return Ze.exports;if(Yr=1,process.env.NODE_ENV!=="production"){var e=Wr(),t=!0;Ze.exports=ga()(e.isElement,t)}else Ze.exports=ba()();return Ze.exports}var It,Gr;function Xr(){if(Gr)return It;Gr=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var r=function(o,a){var s=arguments.length;a=new Array(s>1?s-1:0);for(var i=1;i<s;i++)a[i-1]=arguments[i];var f=0,d="Warning: "+o.replace(/%s/g,function(){return a[f++]});typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}};t=function(n,o,a){var s=arguments.length;a=new Array(s>2?s-2:0);for(var i=2;i<s;i++)a[i-2]=arguments[i];if(o===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||r.apply(null,[o].concat(a))}}return It=t,It}var Lt={},Ae={},Zr;function xa(){if(Zr)return Ae;Zr=1;var e=Me();Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var t=e(ae),r=e(Xr()),n=function(s){var i=s.index,f=s.children,d=t.default.Children.count(f);process.env.NODE_ENV!=="production"&&(0,r.default)(i>=0&&i<=d,"react-swipeable-view: the new index: ".concat(i," is out of bounds: [0-").concat(d,"]."))},o=n;return Ae.default=o,Ae}var Je={},Ie={},Kr;function Jr(){if(Kr)return Ie;Kr=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=void 0;var e={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3};return Ie.default=e,Ie}var Qr;function wa(){if(Qr)return Je;Qr=1;var e=Me();Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=n;var t=e(ae),r=e(Jr());function n(o){var a=o.children,s=o.startIndex,i=o.startX,f=o.pageX,d=o.viewLength,c=o.resistance,g=t.default.Children.count(a)-1,h=s+(i-f)/d,w;return c?h<0?h=Math.exp(h*r.default.RESISTANCE_COEF)-1:h>g&&(h=g+1-Math.exp((g-h)*r.default.RESISTANCE_COEF)):h<0?(h=0,w=(h-s)*d+f):h>g&&(h=g,w=(h-s)*d+f),{index:h,startX:w}}return Je}var Le={},en;function Ca(){if(en)return Le;en=1;var e=Me();Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=void 0;var t=e(ae),r=function(a,s){var i=!1,f=function(R){return R?R.key:"empty"};if(a.children.length&&s.children.length){var d=t.default.Children.map(a.children,f),c=d[a.index];if(c!=null){var g=t.default.Children.map(s.children,f),h=g[s.index];c===h&&(i=!0)}}return i},n=r;return Le.default=n,Le}var De={},tn;function Ea(){if(tn)return De;tn=1,Object.defineProperty(De,"__esModule",{value:!0}),De.default=void 0;function e(r,n){var o=r%n;return o<0?o+n:o}var t=e;return De.default=t,De}var rn;function Sa(){return rn||(rn=1,function(e){var t=Me();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"checkIndexBounds",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"computeIndex",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getDisplaySameSlide",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return s.default}});var r=t(xa()),n=t(wa()),o=t(Jr()),a=t(Ca()),s=t(Ea())}(Lt)),Lt}var nn;function Ra(){if(nn)return de;nn=1;var e=Er(),t=Me();Object.defineProperty(de,"__esModule",{value:!0}),de.getDomTreeShapes=L,de.findNativeHandler=x,de.default=de.SwipeableViewsContext=void 0;var r=t(ra()),n=t(oa()),o=t(aa()),a=t(ia()),s=t(ca()),i=t(ua()),f=t(fa()),d=e(ae),c=t(ya()),g=t(Xr()),h=Sa();function w(_,H,q,l){return _.addEventListener(H,q,l),{remove:function(){_.removeEventListener(H,q,l)}}}var R={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},v={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(H){return"translate(".concat(-H,"%, 0)")},"x-reverse":function(H){return"translate(".concat(H,"%, 0)")},y:function(H){return"translate(0, ".concat(-H,"%)")},"y-reverse":function(H){return"translate(0, ".concat(H,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function E(_,H){var q=H.duration,l=H.easeFunction,y=H.delay;return"".concat(_," ").concat(q," ").concat(l," ").concat(y)}function j(_,H){var q=v.rotationMatrix[H];return{pageX:q.x[0]*_.pageX+q.x[1]*_.pageY,pageY:q.y[0]*_.pageX+q.y[1]*_.pageY}}function W(_){return _.touches=[{pageX:_.pageX,pageY:_.pageY}],_}function L(_,H){for(var q=[];_&&_!==H&&_!==document.body&&!_.hasAttribute("data-swipeable");){var l=window.getComputedStyle(_);l.getPropertyValue("position")==="absolute"||l.getPropertyValue("overflow-x")==="hidden"?q=[]:(_.clientWidth>0&&_.scrollWidth>_.clientWidth||_.clientHeight>0&&_.scrollHeight>_.clientHeight)&&q.push({element:_,scrollWidth:_.scrollWidth,scrollHeight:_.scrollHeight,clientWidth:_.clientWidth,clientHeight:_.clientHeight,scrollLeft:_.scrollLeft,scrollTop:_.scrollTop}),_=_.parentNode}return q}var A=null;function x(_){var H=_.domTreeShapes,q=_.pageX,l=_.startX,y=_.axis;return H.some(function(B){var Z=q>=l;(y==="x"||y==="y")&&(Z=!Z);var F=Math.round(B[v.scrollPosition[y]]),Q=F>0,P=F+B[v.clientLength[y]]<B[v.scrollLength[y]];return Z&&P||!Z&&Q?(A=B.element,!0):!1})}var X=d.createContext();de.SwipeableViewsContext=X,process.env.NODE_ENV!=="production"&&(X.displayName="SwipeableViewsContext");var z=function(_){(0,f.default)(H,_);function H(q){var l;return(0,o.default)(this,H),l=(0,s.default)(this,(0,i.default)(H).call(this,q)),l.rootNode=null,l.containerNode=null,l.ignoreNextScrollEvents=!1,l.viewLength=0,l.startX=0,l.lastX=0,l.vx=0,l.startY=0,l.isSwiping=void 0,l.started=!1,l.startIndex=0,l.transitionListener=null,l.touchMoveListener=null,l.activeSlide=null,l.indexCurrent=null,l.firstRenderTimeout=null,l.setRootNode=function(y){l.rootNode=y},l.setContainerNode=function(y){l.containerNode=y},l.setActiveSlide=function(y){l.activeSlide=y,l.updateHeight()},l.handleSwipeStart=function(y){var B=l.props.axis,Z=j(y.touches[0],B);l.viewLength=l.rootNode.getBoundingClientRect()[v.length[B]],l.startX=Z.pageX,l.lastX=Z.pageX,l.vx=0,l.startY=Z.pageY,l.isSwiping=void 0,l.started=!0;var F=window.getComputedStyle(l.containerNode),Q=F.getPropertyValue("-webkit-transform")||F.getPropertyValue("transform");if(Q&&Q!=="none"){var P=Q.split("(")[1].split(")")[0].split(","),oe=window.getComputedStyle(l.rootNode),b=j({pageX:parseInt(P[4],10),pageY:parseInt(P[5],10)},B);l.startIndex=-b.pageX/(l.viewLength-parseInt(oe.paddingLeft,10)-parseInt(oe.paddingRight,10))||0}},l.handleSwipeMove=function(y){if(!l.started){l.handleTouchStart(y);return}if(!(A!==null&&A!==l.rootNode)){var B=l.props,Z=B.axis,F=B.children,Q=B.ignoreNativeScroll,P=B.onSwitching,oe=B.resistance,b=j(y.touches[0],Z);if(l.isSwiping===void 0){var u=Math.abs(b.pageX-l.startX),C=Math.abs(b.pageY-l.startY),S=u>C&&u>h.constant.UNCERTAINTY_THRESHOLD;if(!oe&&(Z==="y"||Z==="y-reverse")&&(l.indexCurrent===0&&l.startX<b.pageX||l.indexCurrent===d.Children.count(l.props.children)-1&&l.startX>b.pageX)){l.isSwiping=!1;return}if(u>C&&y.preventDefault(),S===!0||C>h.constant.UNCERTAINTY_THRESHOLD){l.isSwiping=S,l.startX=b.pageX;return}}if(l.isSwiping===!0){y.preventDefault(),l.vx=l.vx*.5+(b.pageX-l.lastX)*.5,l.lastX=b.pageX;var T=(0,h.computeIndex)({children:F,resistance:oe,pageX:b.pageX,startIndex:l.startIndex,startX:l.startX,viewLength:l.viewLength}),V=T.index,D=T.startX;if(A===null&&!Q){var k=L(y.target,l.rootNode),$=x({domTreeShapes:k,startX:l.startX,pageX:b.pageX,axis:Z});if($)return}D?l.startX=D:A===null&&(A=l.rootNode),l.setIndexCurrent(V);var U=function(){P&&P(V,"move")};(l.state.displaySameSlide||!l.state.isDragging)&&l.setState({displaySameSlide:!1,isDragging:!0},U),U()}}},l.handleSwipeEnd=function(){if(A=null,!!l.started&&(l.started=!1,l.isSwiping===!0)){var y=l.state.indexLatest,B=l.indexCurrent,Z=y-B,F;Math.abs(l.vx)>l.props.threshold?l.vx>0?F=Math.floor(B):F=Math.ceil(B):Math.abs(Z)>l.props.hysteresis?F=Z>0?Math.floor(B):Math.ceil(B):F=y;var Q=d.Children.count(l.props.children)-1;F<0?F=0:F>Q&&(F=Q),l.setIndexCurrent(F),l.setState({indexLatest:F,isDragging:!1},function(){l.props.onSwitching&&l.props.onSwitching(F,"end"),l.props.onChangeIndex&&F!==y&&l.props.onChangeIndex(F,y,{reason:"swipe"}),B===y&&l.handleTransitionEnd()})}},l.handleTouchStart=function(y){l.props.onTouchStart&&l.props.onTouchStart(y),l.handleSwipeStart(y)},l.handleTouchEnd=function(y){l.props.onTouchEnd&&l.props.onTouchEnd(y),l.handleSwipeEnd(y)},l.handleMouseDown=function(y){l.props.onMouseDown&&l.props.onMouseDown(y),y.persist(),l.handleSwipeStart(W(y))},l.handleMouseUp=function(y){l.props.onMouseUp&&l.props.onMouseUp(y),l.handleSwipeEnd(W(y))},l.handleMouseLeave=function(y){l.props.onMouseLeave&&l.props.onMouseLeave(y),l.started&&l.handleSwipeEnd(W(y))},l.handleMouseMove=function(y){l.props.onMouseMove&&l.props.onMouseMove(y),l.started&&l.handleSwipeMove(W(y))},l.handleScroll=function(y){if(l.props.onScroll&&l.props.onScroll(y),y.target===l.rootNode){if(l.ignoreNextScrollEvents){l.ignoreNextScrollEvents=!1;return}var B=l.state.indexLatest,Z=Math.ceil(y.target.scrollLeft/y.target.clientWidth)+B;l.ignoreNextScrollEvents=!0,y.target.scrollLeft=0,l.props.onChangeIndex&&Z!==B&&l.props.onChangeIndex(Z,B,{reason:"focus"})}},l.updateHeight=function(){if(l.activeSlide!==null){var y=l.activeSlide.children[0];y!==void 0&&y.offsetHeight!==void 0&&l.state.heightLatest!==y.offsetHeight&&l.setState({heightLatest:y.offsetHeight})}},process.env.NODE_ENV!=="production"&&(0,h.checkIndexBounds)(q),l.state={indexLatest:q.index,isDragging:!1,renderOnlyActive:!q.disableLazyLoading,heightLatest:0,displaySameSlide:!0},l.setIndexCurrent(q.index),l}return(0,a.default)(H,[{key:"componentDidMount",value:function(){var l=this;this.transitionListener=w(this.containerNode,"transitionend",function(y){y.target===l.containerNode&&l.handleTransitionEnd()}),this.touchMoveListener=w(this.rootNode,"touchmove",function(y){l.props.disabled||l.handleSwipeMove(y)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){l.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"UNSAFE_componentWillReceiveProps",value:function(l){var y=l.index;typeof y=="number"&&y!==this.props.index&&(process.env.NODE_ENV!=="production"&&(0,h.checkIndexBounds)(l),this.setIndexCurrent(y),this.setState({displaySameSlide:(0,h.getDisplaySameSlide)(this.props,l),indexLatest:y}))}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"getSwipeableViewsContext",value:function(){var l=this;return{slideUpdateHeight:function(){l.updateHeight()}}}},{key:"setIndexCurrent",value:function(l){if(!this.props.animateTransitions&&this.indexCurrent!==l&&this.handleTransitionEnd(),this.indexCurrent=l,this.containerNode){var y=this.props.axis,B=v.transform[y](l*100);this.containerNode.style.WebkitTransform=B,this.containerNode.style.transform=B}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var l=this,y=this.props;y.action;var B=y.animateHeight,Z=y.animateTransitions,F=y.axis,Q=y.children,P=y.containerStyle,oe=y.disabled;y.disableLazyLoading;var b=y.enableMouseEvents;y.hysteresis,y.ignoreNativeScroll,y.index,y.onChangeIndex,y.onSwitching,y.onTransitionEnd,y.resistance;var u=y.slideStyle,C=y.slideClassName,S=y.springConfig,T=y.style;y.threshold;var V=(0,n.default)(y,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),D=this.state,k=D.displaySameSlide,$=D.heightLatest,U=D.indexLatest,Y=D.isDragging,re=D.renderOnlyActive,N=oe?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},ie=!oe&&b?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{};process.env.NODE_ENV!=="production"&&(0,g.default)(!B||!P||!P.height,`react-swipeable-view: You are setting animateHeight to true but you are
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),J=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=ze():t.exports=Be()}))(),Ve=({className:e,id:t,name:n,onChange:r,disabled:i,isChecked:a})=>(0,J.jsx)(`input`,{type:`radio`,disabled:i,checked:a,id:t,name:n,className:q(`petnowRadio size-[3.5vw]`,e),onChange:r}),He=l(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Ue=l(((e,t)=>{var n=He().default;function r(e,i){if(typeof WeakMap==`function`)var a=new WeakMap,o=new WeakMap;return(t.exports=r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(e===null||n(e)!=`object`&&typeof e!=`function`)return s;if(r=t?o:a){if(r.has(e))return r.get(e);r.set(e,s)}for(var c in e)c!==`default`&&{}.hasOwnProperty.call(e,c)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(i.get||i.set)?r(s,c,i):s[c]=e[c]);return s},t.exports.__esModule=!0,t.exports.default=t.exports)(e,i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),We=l(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Ge=l(((e,t)=>{function n(){return t.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Ke=l(((e,t)=>{function n(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),qe=l(((e,t)=>{var n=Ke();function r(e,t){if(e==null)return{};var r,i,a=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),Je=l(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Ye=l(((e,t)=>{var n=He().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),Xe=l(((e,t)=>{var n=He().default,r=Ye();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),Ze=l(((e,t)=>{var n=Xe();function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),Qe=l(((e,t)=>{function n(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),$e=l(((e,t)=>{var n=He().default,r=Qe();function i(e,t){if(t&&(n(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return r(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),et=l(((e,t)=>{function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),tt=l(((e,t)=>{function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),nt=l(((e,t)=>{var n=tt();function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&n(e,t)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),rt=l((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),it=l((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function I(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),L(e)||x(e)===l}function L(e){return x(e)===u}function ee(e){return x(e)===c}function te(e){return x(e)===s}function R(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function z(e){return x(e)===d}function ne(e){return x(e)===i}function re(e){return x(e)===h}function B(e){return x(e)===m}function ie(e){return x(e)===r}function V(e){return x(e)===o}function H(e){return x(e)===a}function ae(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=I,e.isConcurrentMode=L,e.isContextConsumer=ee,e.isContextProvider=te,e.isElement=R,e.isForwardRef=z,e.isFragment=ne,e.isLazy=re,e.isMemo=B,e.isPortal=ie,e.isProfiler=V,e.isStrictMode=H,e.isSuspense=ae,e.isValidElementType=b,e.typeOf=x})()})),at=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=rt():t.exports=it()})),ot=l(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),st=l(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),ct=l(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),lt=l(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=st(),i={},a=ct();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),ut=l(((e,t)=>{var n=at(),r=ot(),i=st(),a=ct(),o=lt(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}else if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(M(s)!==e){var c=N(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=M(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=F(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return N(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=M(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+P(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=M(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,N(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=M(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,N(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
|
|
7
|
+
Bad object: `+JSON.stringify(t[n],null,` `)+`
|
|
8
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function j(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function M(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:j(t,e)?`symbol`:t}function N(e){if(e==null)return``+e;var t=M(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function P(e){var t=N(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function F(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),dt=l(((e,t)=>{var n=st();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),ft=l(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=at();t.exports=ut()(n.isElement,!0)}else t.exports=dt()()})),pt=l(((e,t)=>{var n=process.env.NODE_ENV!==`production`,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,a=`Warning: `+e.replace(/%s/g,function(){return t[i++]});typeof console<`u`&&console.error(a);try{throw Error(a)}catch{}};r=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||i.apply(null,[t].concat(n))}}t.exports=r})),mt=l((e=>{var t=We();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(require(`react`)),r=t(pt());e.default=function(e){var t=e.index,i=e.children,a=n.default.Children.count(i);process.env.NODE_ENV!==`production`&&(0,r.default)(t>=0&&t<=a,`react-swipeable-view: the new index: ${t} is out of bounds: [0-${a}].`)}})),ht=l((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3}})),gt=l((e=>{var t=We();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var n=t(require(`react`)),r=t(ht());function i(e){var t=e.children,i=e.startIndex,a=e.startX,o=e.pageX,s=e.viewLength,c=e.resistance,l=n.default.Children.count(t)-1,u=i+(a-o)/s,d;return c?u<0?u=Math.exp(u*r.default.RESISTANCE_COEF)-1:u>l&&(u=l+1-Math.exp((l-u)*r.default.RESISTANCE_COEF)):u<0?(u=0,d=(u-i)*s+o):u>l&&(u=l,d=(u-i)*s+o),{index:u,startX:d}}})),_t=l((e=>{var t=We();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(require(`react`));e.default=function(e,t){var r=!1,i=function(e){return e?e.key:`empty`};if(e.children.length&&t.children.length){var a=n.default.Children.map(e.children,i)[e.index];a!=null&&a===n.default.Children.map(t.children,i)[t.index]&&(r=!0)}return r}})),vt=l((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;function t(e,t){var n=e%t;return n<0?n+t:n}e.default=t})),yt=l((e=>{var t=We();Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`checkIndexBounds`,{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,`computeIndex`,{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,`constant`,{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,`getDisplaySameSlide`,{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,`mod`,{enumerable:!0,get:function(){return o.default}});var n=t(mt()),r=t(gt()),i=t(ht()),a=t(_t()),o=t(vt())})),bt=l((e=>{var t=Ue(),n=We();Object.defineProperty(e,`__esModule`,{value:!0}),e.getDomTreeShapes=b,e.findNativeHandler=S,e.default=e.SwipeableViewsContext=void 0;var r=n(Ge()),i=n(qe()),a=n(Je()),o=n(Ze()),s=n($e()),c=n(et()),l=n(nt()),u=t(require(`react`)),d=n(ft()),f=n(pt()),p=yt();function m(e,t,n,r){return e.addEventListener(t,n,r),{remove:function(){e.removeEventListener(t,n,r)}}}var h={container:{direction:`ltr`,display:`flex`,willChange:`transform`},slide:{width:`100%`,WebkitFlexShrink:0,flexShrink:0,overflow:`auto`}},g={root:{x:{overflowX:`hidden`},"x-reverse":{overflowX:`hidden`},y:{overflowY:`hidden`},"y-reverse":{overflowY:`hidden`}},flexDirection:{x:`row`,"x-reverse":`row-reverse`,y:`column`,"y-reverse":`column-reverse`},transform:{x:function(e){return`translate(${-e}%, 0)`},"x-reverse":function(e){return`translate(${e}%, 0)`},y:function(e){return`translate(0, ${-e}%)`},"y-reverse":function(e){return`translate(0, ${e}%)`}},length:{x:`width`,"x-reverse":`width`,y:`height`,"y-reverse":`height`},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:`scrollLeft`,"x-reverse":`scrollLeft`,y:`scrollTop`,"y-reverse":`scrollTop`},scrollLength:{x:`scrollWidth`,"x-reverse":`scrollWidth`,y:`scrollHeight`,"y-reverse":`scrollHeight`},clientLength:{x:`clientWidth`,"x-reverse":`clientWidth`,y:`clientHeight`,"y-reverse":`clientHeight`}};function _(e,t){return`${e} ${t.duration} ${t.easeFunction} ${t.delay}`}function v(e,t){var n=g.rotationMatrix[t];return{pageX:n.x[0]*e.pageX+n.x[1]*e.pageY,pageY:n.y[0]*e.pageX+n.y[1]*e.pageY}}function y(e){return e.touches=[{pageX:e.pageX,pageY:e.pageY}],e}function b(e,t){for(var n=[];e&&e!==t&&e!==document.body&&!e.hasAttribute(`data-swipeable`);){var r=window.getComputedStyle(e);r.getPropertyValue(`position`)===`absolute`||r.getPropertyValue(`overflow-x`)===`hidden`?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push({element:e,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),e=e.parentNode}return n}var x=null;function S(e){var t=e.domTreeShapes,n=e.pageX,r=e.startX,i=e.axis;return t.some(function(e){var t=n>=r;(i===`x`||i===`y`)&&(t=!t);var a=Math.round(e[g.scrollPosition[i]]),o=a>0,s=a+e[g.clientLength[i]]<e[g.scrollLength[i]];return t&&s||!t&&o?(x=e.element,!0):!1})}var C=u.createContext();e.SwipeableViewsContext=C,process.env.NODE_ENV!==`production`&&(C.displayName=`SwipeableViewsContext`);var w=function(e){(0,l.default)(t,e);function t(e){var n;return(0,a.default)(this,t),n=(0,s.default)(this,(0,c.default)(t).call(this,e)),n.rootNode=null,n.containerNode=null,n.ignoreNextScrollEvents=!1,n.viewLength=0,n.startX=0,n.lastX=0,n.vx=0,n.startY=0,n.isSwiping=void 0,n.started=!1,n.startIndex=0,n.transitionListener=null,n.touchMoveListener=null,n.activeSlide=null,n.indexCurrent=null,n.firstRenderTimeout=null,n.setRootNode=function(e){n.rootNode=e},n.setContainerNode=function(e){n.containerNode=e},n.setActiveSlide=function(e){n.activeSlide=e,n.updateHeight()},n.handleSwipeStart=function(e){var t=n.props.axis,r=v(e.touches[0],t);n.viewLength=n.rootNode.getBoundingClientRect()[g.length[t]],n.startX=r.pageX,n.lastX=r.pageX,n.vx=0,n.startY=r.pageY,n.isSwiping=void 0,n.started=!0;var i=window.getComputedStyle(n.containerNode),a=i.getPropertyValue(`-webkit-transform`)||i.getPropertyValue(`transform`);if(a&&a!==`none`){var o=a.split(`(`)[1].split(`)`)[0].split(`,`),s=window.getComputedStyle(n.rootNode),c=v({pageX:parseInt(o[4],10),pageY:parseInt(o[5],10)},t);n.startIndex=-c.pageX/(n.viewLength-parseInt(s.paddingLeft,10)-parseInt(s.paddingRight,10))||0}},n.handleSwipeMove=function(e){if(!n.started){n.handleTouchStart(e);return}if(!(x!==null&&x!==n.rootNode)){var t=n.props,r=t.axis,i=t.children,a=t.ignoreNativeScroll,o=t.onSwitching,s=t.resistance,c=v(e.touches[0],r);if(n.isSwiping===void 0){var l=Math.abs(c.pageX-n.startX),d=Math.abs(c.pageY-n.startY),f=l>d&&l>p.constant.UNCERTAINTY_THRESHOLD;if(!s&&(r===`y`||r===`y-reverse`)&&(n.indexCurrent===0&&n.startX<c.pageX||n.indexCurrent===u.Children.count(n.props.children)-1&&n.startX>c.pageX)){n.isSwiping=!1;return}if(l>d&&e.preventDefault(),f===!0||d>p.constant.UNCERTAINTY_THRESHOLD){n.isSwiping=f,n.startX=c.pageX;return}}if(n.isSwiping===!0){e.preventDefault(),n.vx=n.vx*.5+(c.pageX-n.lastX)*.5,n.lastX=c.pageX;var m=(0,p.computeIndex)({children:i,resistance:s,pageX:c.pageX,startIndex:n.startIndex,startX:n.startX,viewLength:n.viewLength}),h=m.index,g=m.startX;if(!(x===null&&!a&&S({domTreeShapes:b(e.target,n.rootNode),startX:n.startX,pageX:c.pageX,axis:r}))){g?n.startX=g:x===null&&(x=n.rootNode),n.setIndexCurrent(h);var _=function(){o&&o(h,`move`)};(n.state.displaySameSlide||!n.state.isDragging)&&n.setState({displaySameSlide:!1,isDragging:!0},_),_()}}}},n.handleSwipeEnd=function(){if(x=null,n.started&&(n.started=!1,n.isSwiping===!0)){var e=n.state.indexLatest,t=n.indexCurrent,r=e-t,i=Math.abs(n.vx)>n.props.threshold?n.vx>0?Math.floor(t):Math.ceil(t):Math.abs(r)>n.props.hysteresis?r>0?Math.floor(t):Math.ceil(t):e,a=u.Children.count(n.props.children)-1;i<0?i=0:i>a&&(i=a),n.setIndexCurrent(i),n.setState({indexLatest:i,isDragging:!1},function(){n.props.onSwitching&&n.props.onSwitching(i,`end`),n.props.onChangeIndex&&i!==e&&n.props.onChangeIndex(i,e,{reason:`swipe`}),t===e&&n.handleTransitionEnd()})}},n.handleTouchStart=function(e){n.props.onTouchStart&&n.props.onTouchStart(e),n.handleSwipeStart(e)},n.handleTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),n.handleSwipeEnd(e)},n.handleMouseDown=function(e){n.props.onMouseDown&&n.props.onMouseDown(e),e.persist(),n.handleSwipeStart(y(e))},n.handleMouseUp=function(e){n.props.onMouseUp&&n.props.onMouseUp(e),n.handleSwipeEnd(y(e))},n.handleMouseLeave=function(e){n.props.onMouseLeave&&n.props.onMouseLeave(e),n.started&&n.handleSwipeEnd(y(e))},n.handleMouseMove=function(e){n.props.onMouseMove&&n.props.onMouseMove(e),n.started&&n.handleSwipeMove(y(e))},n.handleScroll=function(e){if(n.props.onScroll&&n.props.onScroll(e),e.target===n.rootNode){if(n.ignoreNextScrollEvents){n.ignoreNextScrollEvents=!1;return}var t=n.state.indexLatest,r=Math.ceil(e.target.scrollLeft/e.target.clientWidth)+t;n.ignoreNextScrollEvents=!0,e.target.scrollLeft=0,n.props.onChangeIndex&&r!==t&&n.props.onChangeIndex(r,t,{reason:`focus`})}},n.updateHeight=function(){if(n.activeSlide!==null){var e=n.activeSlide.children[0];e!==void 0&&e.offsetHeight!==void 0&&n.state.heightLatest!==e.offsetHeight&&n.setState({heightLatest:e.offsetHeight})}},process.env.NODE_ENV!==`production`&&(0,p.checkIndexBounds)(e),n.state={indexLatest:e.index,isDragging:!1,renderOnlyActive:!e.disableLazyLoading,heightLatest:0,displaySameSlide:!0},n.setIndexCurrent(e.index),n}return(0,o.default)(t,[{key:`componentDidMount`,value:function(){var e=this;this.transitionListener=m(this.containerNode,`transitionend`,function(t){t.target===e.containerNode&&e.handleTransitionEnd()}),this.touchMoveListener=m(this.rootNode,`touchmove`,function(t){e.props.disabled||e.handleSwipeMove(t)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){e.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=e.index;typeof t==`number`&&t!==this.props.index&&(process.env.NODE_ENV!==`production`&&(0,p.checkIndexBounds)(e),this.setIndexCurrent(t),this.setState({displaySameSlide:(0,p.getDisplaySameSlide)(this.props,e),indexLatest:t}))}},{key:`componentWillUnmount`,value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:`getSwipeableViewsContext`,value:function(){var e=this;return{slideUpdateHeight:function(){e.updateHeight()}}}},{key:`setIndexCurrent`,value:function(e){if(!this.props.animateTransitions&&this.indexCurrent!==e&&this.handleTransitionEnd(),this.indexCurrent=e,this.containerNode){var t=this.props.axis,n=g.transform[t](e*100);this.containerNode.style.WebkitTransform=n,this.containerNode.style.transform=n}}},{key:`handleTransitionEnd`,value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:`render`,value:function(){var e=this,t=this.props;t.action;var n=t.animateHeight,a=t.animateTransitions,o=t.axis,s=t.children,c=t.containerStyle,l=t.disabled;t.disableLazyLoading;var d=t.enableMouseEvents;t.hysteresis,t.ignoreNativeScroll,t.index,t.onChangeIndex,t.onSwitching,t.onTransitionEnd,t.resistance;var p=t.slideStyle,m=t.slideClassName,v=t.springConfig,y=t.style;t.threshold;var b=(0,i.default)(t,[`action`,`animateHeight`,`animateTransitions`,`axis`,`children`,`containerStyle`,`disabled`,`disableLazyLoading`,`enableMouseEvents`,`hysteresis`,`ignoreNativeScroll`,`index`,`onChangeIndex`,`onSwitching`,`onTransitionEnd`,`resistance`,`slideStyle`,`slideClassName`,`springConfig`,`style`,`threshold`]),x=this.state,S=x.displaySameSlide,w=x.heightLatest,T=x.indexLatest,E=x.isDragging,D=x.renderOnlyActive,O=l?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},k=!l&&d?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{};process.env.NODE_ENV!==`production`&&(0,f.default)(!n||!c||!c.height,`react-swipeable-view: You are setting animateHeight to true but you are
|
|
42
9
|
also providing a custom height.
|
|
43
10
|
The custom height has a higher priority than the animateHeight property.
|
|
44
|
-
So animateHeight is most likely having no effect at all.`);var
|
|
45
|
-
We are expecting a valid React Element`));var ho,vo=!0;return mo===U&&(vo=!1,B&&(ho=l.setActiveSlide,ye.overflowY="hidden")),d.createElement("div",{ref:ho,style:ye,className:C,"aria-hidden":vo,"data-swipeable":"true"},Kt)}))))}}]),H}(d.Component);z.displayName="ReactSwipableView",z.propTypes=process.env.NODE_ENV!=="production"?{action:c.default.func,animateHeight:c.default.bool,animateTransitions:c.default.bool,axis:c.default.oneOf(["x","x-reverse","y","y-reverse"]),children:c.default.node.isRequired,containerStyle:c.default.object,disabled:c.default.bool,disableLazyLoading:c.default.bool,enableMouseEvents:c.default.bool,hysteresis:c.default.number,ignoreNativeScroll:c.default.bool,index:c.default.number,onChangeIndex:c.default.func,onMouseDown:c.default.func,onMouseLeave:c.default.func,onMouseMove:c.default.func,onMouseUp:c.default.func,onScroll:c.default.func,onSwitching:c.default.func,onTouchEnd:c.default.func,onTouchMove:c.default.func,onTouchStart:c.default.func,onTransitionEnd:c.default.func,resistance:c.default.bool,slideClassName:c.default.string,slideStyle:c.default.object,springConfig:c.default.shape({delay:c.default.string,duration:c.default.string,easeFunction:c.default.string}),style:c.default.object,threshold:c.default.number}:{},z.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var I=z;return de.default=I,de}var on;function Ta(){return on||(on=1,function(e){var t=Er();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"SwipeableViewsContext",{enumerable:!0,get:function(){return r.SwipeableViewsContext}});var r=t(Ra())}(bt)),bt}var ka=Ta();const _a=bo(ka),Na=({className:e,tabList:t,isCuratedcontent:r,unswipeableContent:n,defaultIndex:o=0,onTabChange:a,disabled:s,allowScrollToSection:i=!0})=>{const[f,d]=ae.useState(o),c=ae.useRef(null),g=R=>{R.current&&window.scrollTo({top:R.current.offsetTop-50,behavior:"smooth"})},h=R=>{d(R),i&&g(c),a==null||a(R)},w=()=>{const v=100/t.length;return{width:`${v}%`,left:`${f*v}%`}};return p.jsxs("div",{ref:c,className:"w-full",children:[p.jsxs("div",{className:K(e==null?void 0:e.tab,`z-50 mb-[20px] flex w-full flex-col bg-white ${r&&"sticky top-[50px]"}`),children:[p.jsx("div",{className:"flex",children:t.map((R,v)=>p.jsx("div",{className:"flex flex-1 flex-col",children:p.jsx("button",{className:K(e==null?void 0:e.tabTitle,`cursor-pointer ${f===v?"text-petnow-grey-30 text-label-large":"text-petnow-grey-70 text-body-large disabled:opacity-40"}`),onClick:()=>h(v),disabled:s,children:R.displayName})},R.key))}),p.jsx("div",{className:K(e==null?void 0:e.underline,`relative h-[2px] w-full ${s?"bg-petnow-grey-70/40":"bg-petnow-grey-70"}`),children:p.jsx("div",{className:K(e==null?void 0:e.selectedUnderline,"bg-petnow-grey-30 absolute h-[2px] transition-all duration-200"),style:w()})})]}),n,p.jsx(_a,{index:f,onChangeIndex:R=>{d(R),a==null||a(R)},disabled:s,children:t.map(R=>p.jsx("div",{children:R.content},R.key))})]})},Pa=({className:e,id:t,onChange:r,disabled:n,isChecked:o})=>p.jsxs("label",{className:"relative flex h-min w-min cursor-pointer items-center rounded-full",htmlFor:t,children:[p.jsx("input",{type:"checkbox",disabled:n,className:K(e,"before:content[''] peer bg-petnow-grey-primary checked:border-petnow-orange-primary checked:bg-petnow-orange-primary checked:before:bg-petnow-orange-primary border-petnow-grey-primary relative size-6 cursor-pointer appearance-none rounded-xl border transition-all before:absolute before:top-2/4 before:left-2/4 before:block before:h-6 before:w-6 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity"),id:t,checked:o,onChange:a=>{r==null||r(a.target.checked)}}),p.jsx("span",{className:"text-petnow-grey-secondary pointer-events-none absolute top-2/4 left-2/4 -translate-x-2/4 -translate-y-2/4 transition peer-checked:text-white",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:p.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),Oa=({className:e,id:t,name:r,onChange:n,disabled:o,isChecked:a})=>p.jsxs("label",{htmlFor:t,className:"relative inline-flex cursor-pointer items-center",children:[p.jsx("input",{type:"checkbox",disabled:o,checked:a,id:t,name:r,className:"peer sr-only",onChange:n}),p.jsx("div",{className:K(e,"bg-petnow-grey-primary peer-checked:bg-petnow-orange-primary h-[32px] w-[52px] rounded-full duration-[250ms] peer-focus:outline-none after:absolute after:start-[2px] after:top-[3px] after:size-[26px] after:rounded-full after:bg-white after:shadow-[0_3px_8px_0_rgba(0,0,0,0.15)] after:transition-all after:duration-[250ms] after:content-[''] peer-checked:after:translate-x-[calc(100%-4px)] peer-checked:after:border-white",o&&"cursor-not-allowed opacity-50")})]}),an=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sn=or,se=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return sn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const c=r==null?void 0:r[d],g=a==null?void 0:a[d];if(c===null)return null;const h=an(c)||an(g);return o[d][h]}),i=r&&Object.entries(r).reduce((d,c)=>{let[g,h]=c;return h===void 0||(d[g]=h),d},{}),f=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,c)=>{let{class:g,className:h,...w}=c;return Object.entries(w).every(R=>{let[v,E]=R;return Array.isArray(E)?E.includes({...a,...i}[v]):{...a,...i}[v]===E})?[...d,g,h]:d},[]);return sn(e,s,f,r==null?void 0:r.class,r==null?void 0:r.className)},Ma=se("inline-flex items-center justify-center overflow-hidden",{variants:{type:{filled:"",outlined:"",tinted:""},color:{orange:"",blue:"",red:"",green:"",neutral:""},size:{large:"rounded-[4px] h-[28px] px-2 py-1 gap-1",small:"rounded-[2px] h-[17px] px-1 py-0.5 gap-1"}},compoundVariants:[{type:"filled",color:"orange",className:"bg-surface-base-accent-3-badge"},{type:"filled",color:"blue",className:"bg-surface-base-sub-3"},{type:"filled",color:"red",className:"bg-surface-base-critical-2"},{type:"filled",color:"green",className:"bg-surface-base-success-2"},{type:"filled",color:"neutral",className:"bg-surface-base-neutral-5"},{type:"tinted",color:"orange",className:"bg-surface-base-accent-1-badge"},{type:"tinted",color:"blue",className:"bg-surface-base-sub-1"},{type:"tinted",color:"red",className:"bg-surface-base-critical-1"},{type:"tinted",color:"green",className:"bg-surface-base-success-1"},{type:"tinted",color:"neutral",className:"bg-surface-base-neutral-2"},{type:"outlined",color:"orange",className:"border border-border-prominent-accent-badge"},{type:"outlined",color:"blue",className:"border border-border-prominent-sub"},{type:"outlined",color:"red",className:"border border-border-prominent-critical"},{type:"outlined",color:"green",className:"border border-border-prominent-success"},{type:"outlined",color:"neutral",className:"border border-border-base-neutral-5"}],defaultVariants:{type:"filled",color:"neutral",size:"large"}}),ja=se("",{variants:{type:{filled:"",outlined:"",tinted:""},color:{orange:"",blue:"",red:"",green:"",neutral:""},size:{large:"text-caption-12-medium",small:"text-caption-11-medium"}},compoundVariants:[{type:"filled",color:"orange",className:"text-text-prominent-neutral-1"},{type:"filled",color:"blue",className:"text-text-prominent-neutral-1"},{type:"filled",color:"red",className:"text-text-prominent-neutral-1"},{type:"filled",color:"green",className:"text-text-prominent-neutral-1"},{type:"filled",color:"neutral",className:"text-text-prominent-neutral-1"},{type:"tinted",color:"orange",className:"text-text-prominent-accent-1-badge"},{type:"tinted",color:"blue",className:"text-text-prominent-sub"},{type:"tinted",color:"red",className:"text-text-prominent-critical"},{type:"tinted",color:"green",className:"text-text-prominent-success"},{type:"tinted",color:"neutral",className:"text-text-base-neutral-3"},{type:"outlined",color:"orange",className:"text-text-prominent-accent-1-badge"},{type:"outlined",color:"blue",className:"text-text-prominent-sub"},{type:"outlined",color:"red",className:"text-text-prominent-critical"},{type:"outlined",color:"green",className:"text-text-prominent-success"},{type:"outlined",color:"neutral",className:"text-text-base-neutral-3"}],defaultVariants:{type:"filled",color:"neutral",size:"large"}}),Aa=se("shrink-0",{variants:{type:{filled:"",outlined:"",tinted:""},color:{orange:"",blue:"",red:"",green:"",neutral:""},size:{large:"size-[20px]",small:"hidden"}},compoundVariants:[{type:"filled",color:"orange",className:"text-icon-base-neutral-1"},{type:"filled",color:"blue",className:"text-icon-base-neutral-1"},{type:"filled",color:"red",className:"text-icon-base-neutral-1"},{type:"filled",color:"green",className:"text-icon-base-neutral-1"},{type:"filled",color:"neutral",className:"text-icon-base-neutral-1"},{type:"tinted",color:"orange",className:"text-icon-prominent-accent-1-badge"},{type:"tinted",color:"blue",className:"text-icon-prominent-sub"},{type:"tinted",color:"red",className:"text-icon-prominent-critical"},{type:"tinted",color:"green",className:"text-icon-prominent-success"},{type:"tinted",color:"neutral",className:"text-icon-base-neutral-3"},{type:"outlined",color:"orange",className:"text-icon-prominent-accent-1-badge"},{type:"outlined",color:"blue",className:"text-icon-prominent-sub"},{type:"outlined",color:"red",className:"text-icon-prominent-critical"},{type:"outlined",color:"green",className:"text-icon-prominent-success"},{type:"outlined",color:"neutral",className:"text-icon-base-neutral-3"}],defaultVariants:{type:"filled",color:"neutral",size:"large"}}),ln=m.forwardRef(({label:e,icon:t,type:r="filled",color:n="neutral",size:o="large",className:a,...s},i)=>p.jsxs("div",{ref:i,className:K(Ma({type:r,color:n,size:o}),a),...s,children:[t&&p.jsx(t,{className:Aa({type:r,color:n,size:o}),"aria-hidden":!0}),p.jsx("span",{className:ja({type:r,color:n,size:o}),children:e})]}));ln.displayName="Badge";const Ia=se("inline-flex items-center justify-center gap-1 rounded-full border px-[11px] py-[7px] transition-colors duration-200",{variants:{selected:{true:"bg-surface-base-accent-1 border-border-prominent-accent",false:"bg-surface-base-neutral-1 border-border-base-neutral-2"},disabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),La=se("text-body-14-medium",{variants:{selected:{true:"text-text-prominent-accent-1",false:"text-text-base-neutral-3"}},defaultVariants:{selected:!1}}),Da=se("size-[18px] shrink-0",{variants:{selected:{true:"text-icon-prominent-accent-1",false:"text-icon-base-neutral-3"}},defaultVariants:{selected:!1}}),Fa=({className:e,label:t,icon:r,selected:n=!1,disabled:o=!1,onPress:a,onClick:s,type:i="button",...f})=>{const d=c=>{s==null||s(c),c.defaultPrevented||a==null||a()};return p.jsxs("button",{type:i,className:K(Ia({selected:n,disabled:o}),e),onClick:d,disabled:o,...f,children:[r&&p.jsx(r,{className:Da({selected:n})}),p.jsx("span",{className:La({selected:n}),children:t})]})},Wa=se("flex flex-row items-center justify-center gap-1 shadow-none duration-200 transition-all",{variants:{hierarchy:{primary:"bg-surface-primary-accent hover:bg-surface-primary-accent-pressed text-text-prominent-neutral-1",secondary:"bg-surface-secondary-accent hover:bg-surface-secondary-accent-pressed text-text-prominent-accent-2",tertiary:"bg-background-base-neutral-1 hover:bg-surface-tertiary-accent-pressed border-border-prominent-accent border text-text-prominent-accent-1"},size:{large:"h-14 px-4 py-4 gap-1 text-title-18-medium rounded-[10px]",medium:"h-[46px] px-4 py-3 gap-1 text-body-16-medium rounded-[8px]",small:"h-10 px-3 py-2 gap-1 text-body-16-medium rounded-[6px]"}},defaultVariants:{hierarchy:"primary",size:"large"}}),za=se("shrink-0",{variants:{hierarchy:{primary:"text-icon-base-neutral-1",secondary:"text-icon-prominent-accent-2",tertiary:"text-icon-prominent-accent-1"},size:{large:"size-6",medium:"size-[22px]",small:"size-5"}},defaultVariants:{hierarchy:"primary",size:"large"}}),Fe=m.forwardRef(({label:e,icon:t,hierarchy:r="primary",size:n="large",disabled:o=!1,className:a,type:s="button",...i},f)=>{const d=p.jsxs(p.Fragment,{children:[t&&p.jsx(t,{className:za({hierarchy:r,size:n})}),e]}),c=K(Wa({hierarchy:r,size:n}),"opacity-100 disabled:opacity-40 disabled:pointer-events-none",a);return p.jsx("button",{ref:f,type:s,className:c,disabled:o,...i,children:d})});Fe.displayName="CTAButton";function cn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function un(...e){return t=>{let r=!1;const n=e.map(o=>{const a=cn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():cn(e[o],null)}}}}function ge(...e){return m.useCallback(un(...e),e)}function dn(e){const t=Va(e),r=m.forwardRef((n,o)=>{const{children:a,...s}=n,i=m.Children.toArray(a),f=i.find(qa);if(f){const d=f.props.children,c=i.map(g=>g===f?m.Children.count(d)>1?m.Children.only(null):m.isValidElement(d)?d.props.children:null:g);return p.jsx(t,{...s,ref:o,children:m.isValidElement(d)?m.cloneElement(d,void 0,c):null})}return p.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Va(e){const t=m.forwardRef((r,n)=>{const{children:o,...a}=r;if(m.isValidElement(o)){const s=Ua(o),i=Ba(a,o.props);return o.type!==m.Fragment&&(i.ref=n?un(n,s):s),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $a=Symbol("radix.slottable");function qa(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$a}function Ba(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const f=a(...i);return o(...i),f}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ua(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fe=Ha.reduce((e,t)=>{const r=dn(`Primitive.${t}`),n=m.forwardRef((o,a)=>{const{asChild:s,...i}=o,f=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ya(e,t){e&&go.flushSync(()=>e.dispatchEvent(t))}function Ga(e,t){const r=m.createContext(t),n=a=>{const{children:s,...i}=a,f=m.useMemo(()=>i,Object.values(i));return p.jsx(r.Provider,{value:f,children:s})};n.displayName=e+"Provider";function o(a){const s=m.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Xa(e,t=[]){let r=[];function n(a,s){const i=m.createContext(s),f=r.length;r=[...r,s];const d=g=>{var j;const{scope:h,children:w,...R}=g,v=((j=h==null?void 0:h[e])==null?void 0:j[f])||i,E=m.useMemo(()=>R,Object.values(R));return p.jsx(v.Provider,{value:E,children:w})};d.displayName=a+"Provider";function c(g,h){var v;const w=((v=h==null?void 0:h[e])==null?void 0:v[f])||i,R=m.useContext(w);if(R)return R;if(s!==void 0)return s;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[d,c]}const o=()=>{const a=r.map(s=>m.createContext(s));return function(i){const f=(i==null?void 0:i[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...i,[e]:f}}),[i,f])}};return o.scopeName=e,[n,Za(o,...t)]}function Za(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:f,scopeName:d})=>{const g=f(a)[`__scope${d}`];return{...i,...g}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function me(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var We=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Ka=m[" useInsertionEffect ".trim().toString()]||We;function Ja({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Qa({defaultProp:t,onChange:r}),i=e!==void 0,f=i?e:o;{const c=m.useRef(e!==void 0);m.useEffect(()=>{const g=c.current;g!==i&&console.warn(`${n} is changing from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,n])}const d=m.useCallback(c=>{var g;if(i){const h=ei(c)?c(e):c;h!==e&&((g=s.current)==null||g.call(s,h))}else a(c)},[i,e,a,s]);return[f,d]}function Qa({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),a=m.useRef(t);return Ka(()=>{a.current=t},[t]),m.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function ei(e){return typeof e=="function"}function ti(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Qe=e=>{const{present:t,children:r}=e,n=ri(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),a=ge(n.ref,ni(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:a}):null};Qe.displayName="Presence";function ri(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),a=m.useRef("none"),s=e?"mounted":"unmounted",[i,f]=ti(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const d=et(n.current);a.current=i==="mounted"?d:"none"},[i]),We(()=>{const d=n.current,c=o.current;if(c!==e){const h=a.current,w=et(d);e?f("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(c&&h!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),We(()=>{if(t){let d;const c=t.ownerDocument.defaultView??window,g=w=>{const v=et(n.current).includes(CSS.escape(w.animationName));if(w.target===t&&v&&(f("ANIMATION_END"),!o.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",d=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},h=w=>{w.target===t&&(a.current=et(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{c.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:m.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function et(e){return(e==null?void 0:e.animationName)||"none"}function ni(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var oi=m[" useId ".trim().toString()]||(()=>{}),ai=0;function Dt(e){const[t,r]=m.useState(oi());return We(()=>{r(n=>n??String(ai++))},[e]),e||(t?`radix-${t}`:"")}function ze(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function ii(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var si="DismissableLayer",Ft="dismissableLayer.update",li="dismissableLayer.pointerDownOutside",ci="dismissableLayer.focusOutside",fn,pn=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mn=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...f}=e,d=m.useContext(pn),[c,g]=m.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=m.useState({}),R=ge(t,z=>g(z)),v=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=v.indexOf(E),W=c?v.indexOf(c):-1,L=d.layersWithOutsidePointerEventsDisabled.size>0,A=W>=j,x=fi(z=>{const I=z.target,_=[...d.branches].some(H=>H.contains(I));!A||_||(o==null||o(z),s==null||s(z),z.defaultPrevented||i==null||i())},h),X=pi(z=>{const I=z.target;[...d.branches].some(H=>H.contains(I))||(a==null||a(z),s==null||s(z),z.defaultPrevented||i==null||i())},h);return ii(z=>{W===d.layers.size-1&&(n==null||n(z),!z.defaultPrevented&&i&&(z.preventDefault(),i()))},h),m.useEffect(()=>{if(c)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(fn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),hn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fn)}},[c,h,r,d]),m.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),hn())},[c,d]),m.useEffect(()=>{const z=()=>w({});return document.addEventListener(Ft,z),()=>document.removeEventListener(Ft,z)},[]),p.jsx(fe.div,{...f,ref:R,style:{pointerEvents:L?A?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,X.onFocusCapture),onBlurCapture:me(e.onBlurCapture,X.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,x.onPointerDownCapture)})});mn.displayName=si;var ui="DismissableLayerBranch",di=m.forwardRef((e,t)=>{const r=m.useContext(pn),n=m.useRef(null),o=ge(t,n);return m.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(fe.div,{...e,ref:o})});di.displayName=ui;function fi(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let f=function(){vn(li,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function pi(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e),n=m.useRef(!1);return m.useEffect(()=>{const o=a=>{a.target&&!n.current&&vn(ci,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hn(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function vn(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ya(o,a):o.dispatchEvent(a)}var Wt="focusScope.autoFocusOnMount",zt="focusScope.autoFocusOnUnmount",gn={bubbles:!1,cancelable:!0},mi="FocusScope",bn=m.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,f]=m.useState(null),d=ze(o),c=ze(a),g=m.useRef(null),h=ge(t,v=>f(v)),w=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let v=function(L){if(w.paused||!i)return;const A=L.target;i.contains(A)?g.current=A:he(g.current,{select:!0})},E=function(L){if(w.paused||!i)return;const A=L.relatedTarget;A!==null&&(i.contains(A)||he(g.current,{select:!0}))},j=function(L){if(document.activeElement===document.body)for(const x of L)x.removedNodes.length>0&&he(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",E);const W=new MutationObserver(j);return i&&W.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",E),W.disconnect()}}},[n,i,w.paused]),m.useEffect(()=>{if(i){wn.add(w);const v=document.activeElement;if(!i.contains(v)){const j=new CustomEvent(Wt,gn);i.addEventListener(Wt,d),i.dispatchEvent(j),j.defaultPrevented||(hi(xi(yn(i)),{select:!0}),document.activeElement===v&&he(i))}return()=>{i.removeEventListener(Wt,d),setTimeout(()=>{const j=new CustomEvent(zt,gn);i.addEventListener(zt,c),i.dispatchEvent(j),j.defaultPrevented||he(v??document.body,{select:!0}),i.removeEventListener(zt,c),wn.remove(w)},0)}}},[i,d,c,w]);const R=m.useCallback(v=>{if(!r&&!n||w.paused)return;const E=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,j=document.activeElement;if(E&&j){const W=v.currentTarget,[L,A]=vi(W);L&&A?!v.shiftKey&&j===A?(v.preventDefault(),r&&he(L,{select:!0})):v.shiftKey&&j===L&&(v.preventDefault(),r&&he(A,{select:!0})):j===W&&v.preventDefault()}},[r,n,w.paused]);return p.jsx(fe.div,{tabIndex:-1,...s,ref:h,onKeyDown:R})});bn.displayName=mi;function hi(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(he(n,{select:t}),document.activeElement!==r)return}function vi(e){const t=yn(e),r=xn(t,e),n=xn(t.reverse(),e);return[r,n]}function yn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xn(e,t){for(const r of e)if(!gi(r,{upTo:t}))return r}function gi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bi(e){return e instanceof HTMLInputElement&&"select"in e}function he(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bi(e)&&t&&e.select()}}var wn=yi();function yi(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cn(e,t),e.unshift(t)},remove(t){var r;e=Cn(e,t),(r=e[0])==null||r.resume()}}}function Cn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xi(e){return e.filter(t=>t.tagName!=="A")}var wi="Portal",En=m.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=m.useState(!1);We(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Jt.createPortal(p.jsx(fe.div,{...n,ref:t}),s):null});En.displayName=wi;var Vt=0;function Ci(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sn()),document.body.insertAdjacentElement("beforeend",e[1]??Sn()),Vt++,()=>{Vt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vt--}},[])}function Sn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ce=function(){return ce=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ce.apply(this,arguments)};function Rn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Ei(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var tt="right-scroll-bar-position",rt="width-before-scroll-bar",Si="with-scroll-bars-hidden",Ri="--removed-body-scroll-bar-size";function $t(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ti(e,t){var r=ae.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var ki=typeof window<"u"?m.useLayoutEffect:m.useEffect,Tn=new WeakMap;function _i(e,t){var r=Ti(null,function(n){return e.forEach(function(o){return $t(o,n)})});return ki(function(){var n=Tn.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||$t(i,null)}),a.forEach(function(i){o.has(i)||$t(i,s)})}Tn.set(r,e)},[e]),r}function Ni(e){return e}function Pi(e,t){t===void 0&&(t=Ni);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var f=function(){var c=s;s=[],c.forEach(a)},d=function(){return Promise.resolve().then(f)};d(),r={push:function(c){s.push(c),d()},filter:function(c){return s=s.filter(c),r}}}};return o}function Oi(e){e===void 0&&(e={});var t=Pi(null);return t.options=ce({async:!0,ssr:!1},e),t}var kn=function(e){var t=e.sideCar,r=Rn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return m.createElement(n,ce({},r))};kn.isSideCarExport=!0;function Mi(e,t){return e.useMedium(t),kn}var _n=Oi(),qt=function(){},nt=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:qt,onWheelCapture:qt,onTouchMoveCapture:qt}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,f=e.className,d=e.removeScrollBar,c=e.enabled,g=e.shards,h=e.sideCar,w=e.noRelative,R=e.noIsolation,v=e.inert,E=e.allowPinchZoom,j=e.as,W=j===void 0?"div":j,L=e.gapMode,A=Rn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,X=_i([r,t]),z=ce(ce({},A),o);return m.createElement(m.Fragment,null,c&&m.createElement(x,{sideCar:_n,removeScrollBar:d,shards:g,noRelative:w,noIsolation:R,inert:v,setCallbacks:a,allowPinchZoom:!!E,lockRef:r,gapMode:L}),s?m.cloneElement(m.Children.only(i),ce(ce({},z),{ref:X})):m.createElement(W,ce({},z,{className:f,ref:X}),i))});nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nt.classNames={fullWidth:rt,zeroRight:tt};var ji=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ai(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ji();return t&&e.setAttribute("nonce",t),e}function Ii(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Li(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Di=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ai())&&(Ii(t,r),Li(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fi=function(){var e=Di();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Nn=function(){var e=Fi(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Wi={left:0,top:0,right:0,gap:0},Bt=function(e){return parseInt(e||"",10)||0},zi=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bt(r),Bt(n),Bt(o)]},Vi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wi;var t=zi(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$i=Nn(),Se="data-scroll-locked",qi=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
46
|
-
|
|
47
|
-
overflow: hidden
|
|
48
|
-
padding-right:
|
|
11
|
+
So animateHeight is most likely having no effect at all.`);var A=(0,r.default)({},h.slide,p),j,M;if(E||!a||S)j=`all 0s ease 0s`,M=`all 0s ease 0s`;else if(j=_(`transform`,v),M=_(`-webkit-transform`,v),w!==0){var N=`, ${_(`height`,v)}`;j+=N,M+=N}var P={height:null,WebkitFlexDirection:g.flexDirection[o],flexDirection:g.flexDirection[o],WebkitTransition:M,transition:j};if(!D){var F=g.transform[o](this.indexCurrent*100);P.WebkitTransform=F,P.transform=F}return n&&(P.height=w),u.createElement(C.Provider,{value:this.getSwipeableViewsContext()},u.createElement(`div`,(0,r.default)({ref:this.setRootNode,style:(0,r.default)({},g.root[o],y)},b,O,k,{onScroll:this.handleScroll}),u.createElement(`div`,{ref:this.setContainerNode,style:(0,r.default)({},P,h.container,c),className:`react-swipeable-view-container`},u.Children.map(s,function(t,r){if(D&&r!==T)return null;process.env.NODE_ENV!==`production`&&(0,f.default)(u.isValidElement(t),`react-swipeable-view: one of the children provided is invalid: ${t}.
|
|
12
|
+
We are expecting a valid React Element`);var i,a=!0;return r===T&&(a=!1,n&&(i=e.setActiveSlide,A.overflowY=`hidden`)),u.createElement(`div`,{ref:i,style:A,className:m,"aria-hidden":a,"data-swipeable":`true`},t)}))))}}]),t}(u.Component);w.displayName=`ReactSwipableView`,w.propTypes=process.env.NODE_ENV===`production`?{}:{action:d.default.func,animateHeight:d.default.bool,animateTransitions:d.default.bool,axis:d.default.oneOf([`x`,`x-reverse`,`y`,`y-reverse`]),children:d.default.node.isRequired,containerStyle:d.default.object,disabled:d.default.bool,disableLazyLoading:d.default.bool,enableMouseEvents:d.default.bool,hysteresis:d.default.number,ignoreNativeScroll:d.default.bool,index:d.default.number,onChangeIndex:d.default.func,onMouseDown:d.default.func,onMouseLeave:d.default.func,onMouseMove:d.default.func,onMouseUp:d.default.func,onScroll:d.default.func,onSwitching:d.default.func,onTouchEnd:d.default.func,onTouchMove:d.default.func,onTouchStart:d.default.func,onTransitionEnd:d.default.func,resistance:d.default.bool,slideClassName:d.default.string,slideStyle:d.default.object,springConfig:d.default.shape({delay:d.default.string,duration:d.default.string,easeFunction:d.default.string}),style:d.default.object,threshold:d.default.number},w.defaultProps={animateHeight:!1,animateTransitions:!0,axis:`x`,disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:`0.35s`,easeFunction:`cubic-bezier(0.15, 0.3, 0.25, 1)`,delay:`0s`},resistance:!1},e.default=w})),xt=d(l((e=>{var t=Ue();Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,`SwipeableViewsContext`,{enumerable:!0,get:function(){return n.SwipeableViewsContext}});var n=t(bt())}))(),1),St=e=>typeof e==`function`?e:null,Ct=St(xt.default.default?.default)??St(xt.default.default)??St(xt.default),wt=({className:e,tabList:n,isCuratedcontent:r,unswipeableContent:i,defaultIndex:a=0,onTabChange:o,disabled:s,allowScrollToSection:c=!0})=>{let[l,u]=(0,t.useState)(a),d=(0,t.useRef)(null),f=e=>{e.current&&window.scrollTo({top:e.current.offsetTop-50,behavior:`smooth`})},p=e=>{u(e),c&&f(d),o?.(e)};return(0,J.jsxs)(`div`,{ref:d,className:`w-full`,children:[(0,J.jsxs)(`div`,{className:q(e?.tab,`z-50 mb-[20px] flex w-full flex-col bg-white ${r&&`sticky top-[50px]`}`),children:[(0,J.jsx)(`div`,{className:`flex`,children:n.map((t,n)=>(0,J.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,J.jsx)(`button`,{className:q(e?.tabTitle,`cursor-pointer ${l===n?`text-petnow-grey-30 text-label-large`:`text-petnow-grey-70 text-body-large disabled:opacity-40`}`),onClick:()=>p(n),disabled:s,children:t.displayName})},t.key))}),(0,J.jsx)(`div`,{className:q(e?.underline,`relative h-[2px] w-full ${s?`bg-petnow-grey-70/40`:`bg-petnow-grey-70`}`),children:(0,J.jsx)(`div`,{className:q(e?.selectedUnderline,`bg-petnow-grey-30 absolute h-[2px] transition-all duration-200`),style:(()=>{let e=100/n.length;return{width:`${e}%`,left:`${l*e}%`}})()})})]}),i,Ct?(0,J.jsx)(Ct,{index:l,onChangeIndex:e=>{u(e),o?.(e)},disabled:s,children:n.map(e=>(0,J.jsx)(`div`,{children:e.content},e.key))}):(0,J.jsx)(`div`,{children:n[l]?.content})]})},Tt=({className:e,id:t,onChange:n,disabled:r,isChecked:i})=>(0,J.jsxs)(`label`,{className:`relative flex h-min w-min cursor-pointer items-center rounded-full`,htmlFor:t,children:[(0,J.jsx)(`input`,{type:`checkbox`,disabled:r,className:q(e,`before:content[''] peer bg-petnow-grey-primary checked:border-petnow-orange-primary checked:bg-petnow-orange-primary checked:before:bg-petnow-orange-primary border-petnow-grey-primary relative size-6 cursor-pointer appearance-none rounded-xl border transition-all before:absolute before:top-2/4 before:left-2/4 before:block before:h-6 before:w-6 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity`),id:t,checked:i,onChange:e=>{n?.(e.target.checked)}}),(0,J.jsx)(`span`,{className:`text-petnow-grey-secondary pointer-events-none absolute top-2/4 left-2/4 -translate-x-2/4 -translate-y-2/4 transition peer-checked:text-white`,children:(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,className:`h-4 w-4`,viewBox:`0 0 20 20`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:`1`,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,d:`M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z`,clipRule:`evenodd`})})})]}),Et=({className:e,id:t,name:n,onChange:r,disabled:i,isChecked:a})=>(0,J.jsxs)(`label`,{htmlFor:t,className:`relative inline-flex cursor-pointer items-center`,children:[(0,J.jsx)(`input`,{type:`checkbox`,disabled:i,checked:a,id:t,name:n,className:`peer sr-only`,onChange:r}),(0,J.jsx)(`div`,{className:q(e,`bg-petnow-grey-primary peer-checked:bg-petnow-orange-primary h-[32px] w-[52px] rounded-full duration-[250ms] peer-focus:outline-none after:absolute after:start-[2px] after:top-[3px] after:size-[26px] after:rounded-full after:bg-white after:shadow-[0_3px_8px_0_rgba(0,0,0,0.15)] after:transition-all after:duration-[250ms] after:content-[''] peer-checked:after:translate-x-[calc(100%-4px)] peer-checked:after:border-white`,i&&`cursor-not-allowed opacity-50`)})]}),Dt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ot=p,Y=(e,t)=>n=>{if(t?.variants==null)return Ot(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Dt(t)||Dt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ot(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},kt=Y(`inline-flex items-center justify-center overflow-hidden`,{variants:{type:{filled:``,outlined:``,tinted:``},color:{orange:``,blue:``,red:``,green:``,neutral:``},size:{large:`rounded-[4px] h-[28px] px-2 py-1 gap-1`,small:`rounded-[2px] h-[17px] px-1 py-0.5 gap-1`}},compoundVariants:[{type:`filled`,color:`orange`,className:`bg-surface-base-accent-3-badge`},{type:`filled`,color:`blue`,className:`bg-surface-base-sub-3`},{type:`filled`,color:`red`,className:`bg-surface-base-critical-2`},{type:`filled`,color:`green`,className:`bg-surface-base-success-2`},{type:`filled`,color:`neutral`,className:`bg-surface-base-neutral-5`},{type:`tinted`,color:`orange`,className:`bg-surface-base-accent-1-badge`},{type:`tinted`,color:`blue`,className:`bg-surface-base-sub-1`},{type:`tinted`,color:`red`,className:`bg-surface-base-critical-1`},{type:`tinted`,color:`green`,className:`bg-surface-base-success-1`},{type:`tinted`,color:`neutral`,className:`bg-surface-base-neutral-2`},{type:`outlined`,color:`orange`,className:`border border-border-prominent-accent-badge`},{type:`outlined`,color:`blue`,className:`border border-border-prominent-sub`},{type:`outlined`,color:`red`,className:`border border-border-prominent-critical`},{type:`outlined`,color:`green`,className:`border border-border-prominent-success`},{type:`outlined`,color:`neutral`,className:`border border-border-base-neutral-5`}],defaultVariants:{type:`filled`,color:`neutral`,size:`large`}}),At=Y(``,{variants:{type:{filled:``,outlined:``,tinted:``},color:{orange:``,blue:``,red:``,green:``,neutral:``},size:{large:`text-caption-12-medium`,small:`text-caption-11-medium`}},compoundVariants:[{type:`filled`,color:`orange`,className:`text-text-prominent-neutral-1`},{type:`filled`,color:`blue`,className:`text-text-prominent-neutral-1`},{type:`filled`,color:`red`,className:`text-text-prominent-neutral-1`},{type:`filled`,color:`green`,className:`text-text-prominent-neutral-1`},{type:`filled`,color:`neutral`,className:`text-text-prominent-neutral-1`},{type:`tinted`,color:`orange`,className:`text-text-prominent-accent-1-badge`},{type:`tinted`,color:`blue`,className:`text-text-prominent-sub`},{type:`tinted`,color:`red`,className:`text-text-prominent-critical`},{type:`tinted`,color:`green`,className:`text-text-prominent-success`},{type:`tinted`,color:`neutral`,className:`text-text-base-neutral-3`},{type:`outlined`,color:`orange`,className:`text-text-prominent-accent-1-badge`},{type:`outlined`,color:`blue`,className:`text-text-prominent-sub`},{type:`outlined`,color:`red`,className:`text-text-prominent-critical`},{type:`outlined`,color:`green`,className:`text-text-prominent-success`},{type:`outlined`,color:`neutral`,className:`text-text-base-neutral-3`}],defaultVariants:{type:`filled`,color:`neutral`,size:`large`}}),jt=Y(`shrink-0`,{variants:{type:{filled:``,outlined:``,tinted:``},color:{orange:``,blue:``,red:``,green:``,neutral:``},size:{large:`size-[20px]`,small:`hidden`}},compoundVariants:[{type:`filled`,color:`orange`,className:`text-icon-base-neutral-1`},{type:`filled`,color:`blue`,className:`text-icon-base-neutral-1`},{type:`filled`,color:`red`,className:`text-icon-base-neutral-1`},{type:`filled`,color:`green`,className:`text-icon-base-neutral-1`},{type:`filled`,color:`neutral`,className:`text-icon-base-neutral-1`},{type:`tinted`,color:`orange`,className:`text-icon-prominent-accent-1-badge`},{type:`tinted`,color:`blue`,className:`text-icon-prominent-sub`},{type:`tinted`,color:`red`,className:`text-icon-prominent-critical`},{type:`tinted`,color:`green`,className:`text-icon-prominent-success`},{type:`tinted`,color:`neutral`,className:`text-icon-base-neutral-3`},{type:`outlined`,color:`orange`,className:`text-icon-prominent-accent-1-badge`},{type:`outlined`,color:`blue`,className:`text-icon-prominent-sub`},{type:`outlined`,color:`red`,className:`text-icon-prominent-critical`},{type:`outlined`,color:`green`,className:`text-icon-prominent-success`},{type:`outlined`,color:`neutral`,className:`text-icon-base-neutral-3`}],defaultVariants:{type:`filled`,color:`neutral`,size:`large`}}),Mt=t.forwardRef(({label:e,icon:t,type:n=`filled`,color:r=`neutral`,size:i=`large`,className:a,...o},s)=>(0,J.jsxs)(`div`,{ref:s,className:q(kt({type:n,color:r,size:i}),a),...o,children:[t&&(0,J.jsx)(t,{className:jt({type:n,color:r,size:i}),"aria-hidden":!0}),(0,J.jsx)(`span`,{className:At({type:n,color:r,size:i}),children:e})]}));Mt.displayName=`Badge`;var Nt=Y(`inline-flex items-center justify-center gap-1 rounded-full border px-[11px] py-[7px] transition-colors duration-200`,{variants:{selected:{true:`bg-surface-base-accent-1 border-border-prominent-accent`,false:`bg-surface-base-neutral-1 border-border-base-neutral-2`},disabled:{true:`opacity-40 pointer-events-none`,false:``}},defaultVariants:{selected:!1,disabled:!1}}),Pt=Y(`text-body-14-medium`,{variants:{selected:{true:`text-text-prominent-accent-1`,false:`text-text-base-neutral-3`}},defaultVariants:{selected:!1}}),Ft=Y(`size-[18px] shrink-0`,{variants:{selected:{true:`text-icon-prominent-accent-1`,false:`text-icon-base-neutral-3`}},defaultVariants:{selected:!1}}),It=({className:e,label:t,icon:n,selected:r=!1,disabled:i=!1,onPress:a,onClick:o,type:s=`button`,...c})=>(0,J.jsxs)(`button`,{type:s,className:q(Nt({selected:r,disabled:i}),e),onClick:e=>{o?.(e),e.defaultPrevented||a?.()},disabled:i,...c,children:[n&&(0,J.jsx)(n,{className:Ft({selected:r})}),(0,J.jsx)(`span`,{className:Pt({selected:r}),children:t})]}),Lt=Y(`flex flex-row items-center justify-center gap-1 shadow-none duration-200 transition-all`,{variants:{hierarchy:{primary:`bg-surface-primary-accent hover:bg-surface-primary-accent-pressed text-text-prominent-neutral-1`,secondary:`bg-surface-secondary-accent hover:bg-surface-secondary-accent-pressed text-text-prominent-accent-2`,tertiary:`bg-background-base-neutral-1 hover:bg-surface-tertiary-accent-pressed border-border-prominent-accent border text-text-prominent-accent-1`},size:{large:`h-14 px-4 py-4 gap-1 text-title-18-medium rounded-[10px]`,medium:`h-[46px] px-4 py-3 gap-1 text-body-16-medium rounded-[8px]`,small:`h-10 px-3 py-2 gap-1 text-body-16-medium rounded-[6px]`}},defaultVariants:{hierarchy:`primary`,size:`large`}}),Rt=Y(`shrink-0`,{variants:{hierarchy:{primary:`text-icon-base-neutral-1`,secondary:`text-icon-prominent-accent-2`,tertiary:`text-icon-prominent-accent-1`},size:{large:`size-6`,medium:`size-[22px]`,small:`size-5`}},defaultVariants:{hierarchy:`primary`,size:`large`}}),zt=t.forwardRef(({label:e,icon:t,hierarchy:n=`primary`,size:r=`large`,disabled:i=!1,className:a,type:o=`button`,...s},c)=>{let l=(0,J.jsxs)(J.Fragment,{children:[t&&(0,J.jsx)(t,{className:Rt({hierarchy:n,size:r})}),e]});return(0,J.jsx)(`button`,{ref:c,type:o,className:q(Lt({hierarchy:n,size:r}),`opacity-100 disabled:opacity-40 disabled:pointer-events-none`,a),disabled:i,...s,children:l})});zt.displayName=`CTAButton`;function Bt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Vt(...e){return t=>{let n=!1,r=e.map(e=>{let r=Bt(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Bt(e[t],null)}}}}function Ht(...e){return t.useCallback(Vt(...e),e)}function Ut(e){let n=Wt(e),r=t.forwardRef((e,r)=>{let{children:i,...a}=e,o=t.Children.toArray(i),s=o.find(Kt);if(s){let e=s.props.children,i=o.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return(0,J.jsx)(n,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,i):null})}return(0,J.jsx)(n,{...a,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}function Wt(e){let n=t.forwardRef((e,n)=>{let{children:r,...i}=e;if(t.isValidElement(r)){let e=Jt(r),a=qt(i,r.props);return r.type!==t.Fragment&&(a.ref=n?Vt(n,e):e),t.cloneElement(r,a)}return t.Children.count(r)>1?t.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Gt=Symbol(`radix.slottable`);function Kt(e){return t.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Gt}function qt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Jt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var X=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,n)=>{let r=Ut(`Primitive.${n}`),i=t.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,J.jsx)(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function Yt(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}function Xt(e,n){let r=t.createContext(n),i=e=>{let{children:n,...i}=e,a=t.useMemo(()=>i,Object.values(i));return(0,J.jsx)(r.Provider,{value:a,children:n})};i.displayName=e+`Provider`;function a(i){let a=t.useContext(r);if(a)return a;if(n!==void 0)return n;throw Error(`\`${i}\` must be used within \`${e}\``)}return[i,a]}function Zt(e,n=[]){let r=[];function i(n,i){let a=t.createContext(i),o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[e]?.[o]||a,l=t.useMemo(()=>s,Object.values(s));return(0,J.jsx)(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[e]?.[o]||a,l=t.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[i,Qt(a,...n)]}function Qt(...e){let n=e[0];if(e.length===1)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}typeof window<`u`&&window.document&&window.document.createElement;function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var $t=globalThis?.document?t.useLayoutEffect:()=>{},en=t.useInsertionEffect||$t;function tn({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){let[a,o,s]=nn({defaultProp:n,onChange:r}),c=e!==void 0,l=c?e:a;{let n=t.useRef(e!==void 0);t.useEffect(()=>{let e=n.current;e!==c&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=c},[c,i])}return[l,t.useCallback(t=>{if(c){let n=rn(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function nn({defaultProp:e,onChange:n}){let[r,i]=t.useState(e),a=t.useRef(r),o=t.useRef(n);return en(()=>{o.current=n},[n]),t.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,i,o]}function rn(e){return typeof e==`function`}function an(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}var on=e=>{let{present:n,children:r}=e,i=sn(n),a=typeof r==`function`?r({present:i.isPresent}):t.Children.only(r),o=Ht(i.ref,ln(a));return typeof r==`function`||i.isPresent?t.cloneElement(a,{ref:o}):null};on.displayName=`Presence`;function sn(e){let[n,r]=t.useState(),i=t.useRef(null),a=t.useRef(e),o=t.useRef(`none`),[s,c]=an(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return t.useEffect(()=>{let e=cn(i.current);o.current=s===`mounted`?e:`none`},[s]),$t(()=>{let t=i.current,n=a.current;if(n!==e){let r=o.current,i=cn(t);e?c(`MOUNT`):i===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}},[e,c]),$t(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let o=cn(i.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(c(`ANIMATION_END`),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(o.current=cn(i.current))};return n.addEventListener(`animationstart`,s),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,s),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}else c(`ANIMATION_END`)},[n,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:t.useCallback(e=>{i.current=e?getComputedStyle(e):null,r(e)},[])}}function cn(e){return e?.animationName||`none`}function ln(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var un=t.useId||(()=>void 0),dn=0;function fn(e){let[n,r]=t.useState(un());return $t(()=>{e||r(e=>e??String(dn++))},[e]),e||(n?`radix-${n}`:``)}function pn(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}function mn(e,n=globalThis?.document){let r=pn(e);t.useEffect(()=>{let e=e=>{e.key===`Escape`&&r(e)};return n.addEventListener(`keydown`,e,{capture:!0}),()=>n.removeEventListener(`keydown`,e,{capture:!0})},[r,n])}var hn=`DismissableLayer`,gn=`dismissableLayer.update`,_n=`dismissableLayer.pointerDownOutside`,vn=`dismissableLayer.focusOutside`,yn,bn=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xn=t.forwardRef((e,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=t.useContext(bn),[d,f]=t.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=t.useState({}),h=Ht(n,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=wn(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!x||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),C=Tn(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return mn(e=>{y===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),t.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(yn=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),En(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=yn)}},[d,p,r,u]),t.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),En())},[d,u]),t.useEffect(()=>{let e=()=>m({});return document.addEventListener(gn,e),()=>document.removeEventListener(gn,e)},[]),(0,J.jsx)(X.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,S.onPointerDownCapture)})});xn.displayName=hn;var Sn=`DismissableLayerBranch`,Cn=t.forwardRef((e,n)=>{let r=t.useContext(bn),i=t.useRef(null),a=Ht(n,i);return t.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,J.jsx)(X.div,{...e,ref:a})});Cn.displayName=Sn;function wn(e,n=globalThis?.document){let r=pn(e),i=t.useRef(!1),a=t.useRef(()=>{});return t.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){Dn(_n,r,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(n.removeEventListener(`click`,a.current),a.current=t,n.addEventListener(`click`,a.current,{once:!0})):t()}else n.removeEventListener(`click`,a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(t),n.removeEventListener(`pointerdown`,e),n.removeEventListener(`click`,a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function Tn(e,n=globalThis?.document){let r=pn(e),i=t.useRef(!1);return t.useEffect(()=>{let e=e=>{e.target&&!i.current&&Dn(vn,r,{originalEvent:e},{discrete:!1})};return n.addEventListener(`focusin`,e),()=>n.removeEventListener(`focusin`,e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function En(){let e=new CustomEvent(gn);document.dispatchEvent(e)}function Dn(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yt(i,a):i.dispatchEvent(a)}var On=`focusScope.autoFocusOnMount`,kn=`focusScope.autoFocusOnUnmount`,An={bubbles:!1,cancelable:!0},jn=`FocusScope`,Mn=t.forwardRef((e,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=t.useState(null),u=pn(a),d=pn(o),f=t.useRef(null),p=Ht(n,e=>l(e)),m=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:zn(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||zn(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&zn(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),t.useEffect(()=>{if(c){Bn.add(m);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(On,An);c.addEventListener(On,u),c.dispatchEvent(t),t.defaultPrevented||(Nn(Un(Fn(c)),{select:!0}),document.activeElement===e&&zn(c))}return()=>{c.removeEventListener(On,u),setTimeout(()=>{let t=new CustomEvent(kn,An);c.addEventListener(kn,d),c.dispatchEvent(t),t.defaultPrevented||zn(e??document.body,{select:!0}),c.removeEventListener(kn,d),Bn.remove(m)},0)}}},[c,u,d,m]);let h=t.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=Pn(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&zn(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&zn(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return(0,J.jsx)(X.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});Mn.displayName=jn;function Nn(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(zn(r,{select:t}),document.activeElement!==n)return}function Pn(e){let t=Fn(e);return[In(t,e),In(t.reverse(),e)]}function Fn(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function In(e,t){for(let n of e)if(!Ln(n,{upTo:t}))return n}function Ln(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Rn(e){return e instanceof HTMLInputElement&&`select`in e}function zn(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rn(e)&&t&&e.select()}}var Bn=Vn();function Vn(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Hn(e,t),e.unshift(t)},remove(t){e=Hn(e,t),e[0]?.resume()}}}function Hn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Un(e){return e.filter(e=>e.tagName!==`A`)}var Wn=`Portal`,Gn=t.forwardRef((e,r)=>{let{container:i,...a}=e,[o,s]=t.useState(!1);$t(()=>s(!0),[]);let c=i||o&&globalThis?.document?.body;return c?n.default.createPortal((0,J.jsx)(X.div,{...a,ref:r}),c):null});Gn.displayName=Wn;var Kn=0;function qn(){t.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Jn()),document.body.insertAdjacentElement(`beforeend`,e[1]??Jn()),Kn++,()=>{Kn===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Kn--}},[])}function Jn(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function Yn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Xn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Zn=`right-scroll-bar-position`,Qn=`width-before-scroll-bar`,$n=`with-scroll-bars-hidden`,er=`--removed-body-scroll-bar-size`;function tr(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function nr(e,n){var r=(0,t.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}var rr=typeof window<`u`?t.useLayoutEffect:t.useEffect,ir=new WeakMap;function ar(e,t){var n=nr(t||null,function(t){return e.forEach(function(e){return tr(e,t)})});return rr(function(){var t=ir.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||tr(e,null)}),i.forEach(function(e){r.has(e)||tr(e,a)})}ir.set(n,e)},[e]),n}function or(e){return e}function sr(e,t){t===void 0&&(t=or);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function cr(e){e===void 0&&(e={});var t=sr(null);return t.options=Q({async:!0,ssr:!1},e),t}var lr=function(e){var n=e.sideCar,r=Yn(e,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return t.createElement(i,Q({},r))};lr.isSideCarExport=!0;function ur(e,t){return e.useMedium(t),lr}var dr=cr(),fr=function(){},pr=t.forwardRef(function(e,n){var r=t.useRef(null),i=t.useState({onScrollCapture:fr,onWheelCapture:fr,onTouchMoveCapture:fr}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Yn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=ar([r,n]),w=Q(Q({},x),a);return t.createElement(t.Fragment,null,d&&t.createElement(S,{sideCar:dr,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:r,gapMode:b}),s?t.cloneElement(t.Children.only(c),Q(Q({},w),{ref:C})):t.createElement(y,Q({},w,{className:l,ref:C}),c))});pr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pr.classNames={fullWidth:Qn,zeroRight:Zn};var mr,hr=function(){if(mr)return mr;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function gr(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=hr();return t&&e.setAttribute(`nonce`,t),e}function _r(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vr(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var yr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gr())&&(_r(t,n),vr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},br=function(){var e=yr();return function(n,r){t.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},xr=function(){var e=br();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Sr={left:0,top:0,right:0,gap:0},Cr=function(e){return parseInt(e||``,10)||0},wr=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Cr(n),Cr(r),Cr(i)]},Tr=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Sr;var t=wr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Er=xr(),Dr=`data-scroll-locked`,Or=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
13
|
+
.${$n} {
|
|
14
|
+
overflow: hidden ${r};
|
|
15
|
+
padding-right: ${s}px ${r};
|
|
49
16
|
}
|
|
50
|
-
body[
|
|
51
|
-
overflow: hidden
|
|
17
|
+
body[${Dr}] {
|
|
18
|
+
overflow: hidden ${r};
|
|
52
19
|
overscroll-behavior: contain;
|
|
53
|
-
|
|
54
|
-
padding-left:
|
|
55
|
-
padding-top:
|
|
56
|
-
padding-right:
|
|
20
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
21
|
+
padding-left: ${i}px;
|
|
22
|
+
padding-top: ${a}px;
|
|
23
|
+
padding-right: ${o}px;
|
|
57
24
|
margin-left:0;
|
|
58
25
|
margin-top:0;
|
|
59
|
-
margin-right:
|
|
60
|
-
|
|
26
|
+
margin-right: ${s}px ${r};
|
|
27
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
61
28
|
}
|
|
62
29
|
|
|
63
|
-
|
|
64
|
-
right:
|
|
30
|
+
.${Zn} {
|
|
31
|
+
right: ${s}px ${r};
|
|
65
32
|
}
|
|
66
33
|
|
|
67
|
-
|
|
68
|
-
margin-right:
|
|
34
|
+
.${Qn} {
|
|
35
|
+
margin-right: ${s}px ${r};
|
|
69
36
|
}
|
|
70
37
|
|
|
71
|
-
|
|
72
|
-
right: 0
|
|
38
|
+
.${Zn} .${Zn} {
|
|
39
|
+
right: 0 ${r};
|
|
73
40
|
}
|
|
74
41
|
|
|
75
|
-
|
|
76
|
-
margin-right: 0
|
|
42
|
+
.${Qn} .${Qn} {
|
|
43
|
+
margin-right: 0 ${r};
|
|
77
44
|
}
|
|
78
45
|
|
|
79
|
-
body[
|
|
80
|
-
|
|
46
|
+
body[${Dr}] {
|
|
47
|
+
${er}: ${s}px;
|
|
81
48
|
}
|
|
82
|
-
`
|
|
83
|
-
.block-interactivity
|
|
84
|
-
.allow-interactivity
|
|
85
|
-
`
|
|
49
|
+
`},kr=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Ar=function(){t.useEffect(function(){return document.body.setAttribute(Dr,(kr()+1).toString()),function(){var e=kr()-1;e<=0?document.body.removeAttribute(Dr):document.body.setAttribute(Dr,e.toString())}},[])},jr=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;Ar();var o=t.useMemo(function(){return Tr(a)},[a]);return t.createElement(Er,{styles:Or(o,!n,a,r?``:`!important`)})},Mr=!1;if(typeof window<`u`)try{var Nr=Object.defineProperty({},`passive`,{get:function(){return Mr=!0,!0}});window.addEventListener(`test`,Nr,Nr),window.removeEventListener(`test`,Nr,Nr)}catch{Mr=!1}var Pr=Mr?{passive:!1}:!1,Fr=function(e){return e.tagName===`TEXTAREA`},Ir=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Fr(e)&&n[t]===`visible`)},Lr=function(e){return Ir(e,`overflowY`)},Rr=function(e){return Ir(e,`overflowX`)},zr=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Hr(e,r)){var i=Ur(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Br=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Vr=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Hr=function(e,t){return e===`v`?Lr(t):Rr(t)},Ur=function(e,t){return e===`v`?Br(t):Vr(t)},Wr=function(e,t){return e===`h`&&t===`rtl`?-1:1},Gr=function(e,t,n,r,i){var a=Wr(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ur(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Hr(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Kr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qr=function(e){return[e.deltaX,e.deltaY]},Jr=function(e){return e&&`current`in e?e.current:e},Yr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xr=function(e){return`
|
|
50
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
51
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
52
|
+
`},Zr=0,Qr=[];function $r(e){var n=t.useRef([]),r=t.useRef([0,0]),i=t.useRef(),a=t.useState(Zr++)[0],o=t.useState(xr)[0],s=t.useRef(e);t.useEffect(function(){s.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=Xn([e.lockRef.current],(e.shards||[]).map(Jr),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=t.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Kr(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=zr(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=zr(d,u)),!m)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var h=i.current||l;return Gr(h,t,e,h===`h`?o:c,!0)},[]),l=t.useCallback(function(e){var t=e;if(!(!Qr.length||Qr[Qr.length-1]!==o)){var r=`deltaY`in t?qr(t):Kr(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&Yr(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Jr).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?c(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=t.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:ei(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=t.useCallback(function(e){r.current=Kr(e),i.current=void 0},[]),f=t.useCallback(function(t){u(t.type,qr(t),t.target,c(t,e.lockRef.current))},[]),p=t.useCallback(function(t){u(t.type,Kr(t),t.target,c(t,e.lockRef.current))},[]);t.useEffect(function(){return Qr.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Pr),document.addEventListener(`touchmove`,l,Pr),document.addEventListener(`touchstart`,d,Pr),function(){Qr=Qr.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,Pr),document.removeEventListener(`touchmove`,l,Pr),document.removeEventListener(`touchstart`,d,Pr)}},[]);var m=e.removeScrollBar,h=e.inert;return t.createElement(t.Fragment,null,h?t.createElement(o,{styles:Xr(a)}):null,m?t.createElement(jr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ei(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ti=ur(dr,$r),ni=t.forwardRef(function(e,n){return t.createElement(pr,Q({},e,{ref:n,sideCar:ti}))});ni.classNames=pr.classNames;var ri=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ii=new WeakMap,ai=new WeakMap,oi={},si=0,ci=function(e){return e&&(e.host||ci(e.parentNode))},li=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ci(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ui=function(e,t,n,r){var i=li(t,Array.isArray(e)?e:[e]);oi[n]||(oi[n]=new WeakMap);var a=oi[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ii.get(e)||0)+1,l=(a.get(e)||0)+1;ii.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ai.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),si++,function(){o.forEach(function(e){var t=ii.get(e)-1,i=a.get(e)-1;ii.set(e,t),a.set(e,i),t||(ai.has(e)||e.removeAttribute(r),ai.delete(e)),i||e.removeAttribute(n)}),si--,si||(ii=new WeakMap,ii=new WeakMap,ai=new WeakMap,oi={})}},di=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ri(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ui(r,i,n,`aria-hidden`)):function(){return null}},fi=`Dialog`,[pi,mi]=Zt(fi),[hi,$]=pi(fi),gi=e=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=t.useRef(null),l=t.useRef(null),[u,d]=tn({prop:i,defaultProp:a??!1,onChange:o,caller:fi});return(0,J.jsx)(hi,{scope:n,triggerRef:c,contentRef:l,contentId:fn(),titleId:fn(),descriptionId:fn(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};gi.displayName=fi;var _i=`DialogTrigger`,vi=t.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=$(_i,n),a=Ht(t,i.triggerRef);return(0,J.jsx)(X.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ri(i.open),...r,ref:a,onClick:Z(e.onClick,i.onOpenToggle)})});vi.displayName=_i;var yi=`DialogPortal`,[bi,xi]=pi(yi,{forceMount:void 0}),Si=e=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=e,o=$(yi,n);return(0,J.jsx)(bi,{scope:n,forceMount:r,children:t.Children.map(i,e=>(0,J.jsx)(on,{present:r||o.open,children:(0,J.jsx)(Gn,{asChild:!0,container:a,children:e})}))})};Si.displayName=yi;var Ci=`DialogOverlay`,wi=t.forwardRef((e,t)=>{let n=xi(Ci,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$(Ci,e.__scopeDialog);return a.modal?(0,J.jsx)(on,{present:r||a.open,children:(0,J.jsx)(Ei,{...i,ref:t})}):null});wi.displayName=Ci;var Ti=Ut(`DialogOverlay.RemoveScroll`),Ei=t.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=$(Ci,n);return(0,J.jsx)(ni,{as:Ti,allowPinchZoom:!0,shards:[i.contentRef],children:(0,J.jsx)(X.div,{"data-state":Ri(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),Di=`DialogContent`,Oi=t.forwardRef((e,t)=>{let n=xi(Di,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$(Di,e.__scopeDialog);return(0,J.jsx)(on,{present:r||a.open,children:a.modal?(0,J.jsx)(ki,{...i,ref:t}):(0,J.jsx)(Ai,{...i,ref:t})})});Oi.displayName=Di;var ki=t.forwardRef((e,n)=>{let r=$(Di,e.__scopeDialog),i=t.useRef(null),a=Ht(n,r.contentRef,i);return t.useEffect(()=>{let e=i.current;if(e)return di(e)},[]),(0,J.jsx)(ji,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,e=>e.preventDefault())})}),Ai=t.forwardRef((e,n)=>{let r=$(Di,e.__scopeDialog),i=t.useRef(!1),a=t.useRef(!1);return(0,J.jsx)(ji,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})}),ji=t.forwardRef((e,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=$(Di,r),l=t.useRef(null),u=Ht(n,l);return qn(),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Mn,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,J.jsx)(xn,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ri(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Hi,{titleId:c.titleId}),(0,J.jsx)(Wi,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Mi=`DialogTitle`,Ni=t.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=$(Mi,n);return(0,J.jsx)(X.h2,{id:i.titleId,...r,ref:t})});Ni.displayName=Mi;var Pi=`DialogDescription`,Fi=t.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=$(Pi,n);return(0,J.jsx)(X.p,{id:i.descriptionId,...r,ref:t})});Fi.displayName=Pi;var Ii=`DialogClose`,Li=t.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=$(Ii,n);return(0,J.jsx)(X.button,{type:`button`,...r,ref:t,onClick:Z(e.onClick,()=>i.onOpenChange(!1))})});Li.displayName=Ii;function Ri(e){return e?`open`:`closed`}var zi=`DialogTitleWarning`,[Bi,Vi]=Xt(zi,{contentName:Di,titleName:Mi,docsSlug:`dialog`}),Hi=({titleId:e})=>{let n=Vi(zi),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
86
53
|
|
|
87
|
-
If you want to hide the \`${
|
|
54
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
88
55
|
|
|
89
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},bs="DialogDescriptionWarning",ys=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jn(bs).contentName}}.`;return m.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},xs=zn,ws=qn,Qn=Bn,eo=Un,to=Yn,ro=Xn;const Cs=xs,Es=ws,no=m.forwardRef(({className:e,...t},r)=>p.jsx(Qn,{ref:r,className:K("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 duration-200",e),...t}));no.displayName=Qn.displayName;const oo=m.forwardRef(({className:e,...t},r)=>p.jsxs(Es,{children:[p.jsx(no,{}),p.jsx(eo,{ref:r,className:K("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-background fixed top-1/2 left-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg p-6 shadow-lg duration-200 outline-none",e),...t})]}));oo.displayName=eo.displayName;const ao=m.forwardRef(({className:e,...t},r)=>p.jsx(to,{ref:r,className:K("text-lg font-semibold",e),...t}));ao.displayName=to.displayName;const io=m.forwardRef(({className:e,...t},r)=>p.jsx(ro,{ref:r,className:K("text-muted-foreground text-sm",e),...t}));io.displayName=ro.displayName;const Ss=({isOpen:e,setIsOpen:t,title:r,description:n,content:o,confirm:a,cancel:s,preventEasyClose:i=!1,className:f})=>{const d=h=>()=>{var w;(w=h==null?void 0:h.onClick)==null||w.call(h)},c=h=>()=>{var w;(w=h==null?void 0:h.onClick)==null||w.call(h),t(!1)},g=h=>{i&&!h||t(h)};return p.jsx(Cs,{open:e,onOpenChange:g,children:p.jsxs(oo,{onEscapeKeyDown:i?h=>h.preventDefault():void 0,onInteractOutside:i?h=>h.preventDefault():void 0,className:K("bg-surface-base-neutral-1 flex max-h-[440px] w-[300px] max-w-[300px] flex-col gap-4 overflow-hidden rounded-[16px] p-4",f),children:[p.jsxs("div",{className:"flex w-full flex-col gap-2",children:[r&&p.jsx(ao,{className:"text-title-18-bold text-text-prominent-neutral-4",children:r}),n&&p.jsx("div",{className:"overflow-y-auto",children:p.jsx(io,{className:"text-body-16-medium text-text-prominent-neutral-3",children:n})}),o&&p.jsx("div",{className:"overflow-y-auto",children:o})]}),(a||s)&&p.jsxs("div",{className:"flex w-full flex-col gap-2",children:[a&&p.jsx(Fe,{label:a.label,icon:a.icon,size:"medium",hierarchy:"primary",onClick:d(a)}),s&&p.jsx(Fe,{label:s.label,icon:s.icon,size:"medium",hierarchy:"tertiary",onClick:c(s)})]})]})})},Zt=e=>p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[p.jsx("circle",{cx:12,cy:12,r:10,fill:"!currentColor"}),p.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.53 13.47c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22L12 13.06l-3.47 3.47c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06L10.94 12 7.47 8.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L12 10.94l3.47-3.47c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.06 12z"})]}),so=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.753 19.659a1 1 0 0 1-1.412.094l-8-7a1 1 0 0 1 0-1.506l8-7a1 1 0 0 1 1.318 1.506L9.519 12l7.14 6.247a1 1 0 0 1 .094 1.412",fill:"currentColor"})}),lo=se("flex items-center rounded-[4px] bg-surface-base-neutral-2 border transition-colors duration-200",{variants:{size:{large:"gap-2 p-[15px] min-h-[56px]",small:"gap-3 p-[11px] min-h-[48px]"},hasError:{true:"border-border-prominent-error",false:"border-transparent"},disabled:{true:"opacity-50",false:""}},defaultVariants:{size:"large",disabled:!1,hasError:!1}}),Ve=se("",{variants:{size:{large:"text-body-16-regular",small:"text-caption-12-medium"},hasError:{true:"text-text-prominent-error",false:"text-text-base-neutral-2"}},defaultVariants:{size:"large",hasError:!1}}),co=m.forwardRef(({onChange:e,subtitle:t,isRequired:r=!1,assistiveText:n,errorText:o,disabled:a=!1,multiLine:s=!1,className:i,rightElement:f,showCounter:d=!1,value:c,maxLength:g,size:h="large",...w},R)=>{const v=!!o,E=m.useRef(null);m.useImperativeHandle(R,()=>E.current);const j=m.useCallback(()=>{var _;(_=E.current)==null||_.focus()},[]),L=(typeof c=="string"?c:"").length,A=w,x=w,X=h==="large"?"text-title-20-regular":"text-body-16-regular",z=h==="large"?"text-title-18-bold":"text-title-14-bold",I=h==="large"?"text-body-16-regular":"text-caption-12-medium";return p.jsxs("div",{className:K("flex flex-col gap-2",i),children:[t&&p.jsxs("span",{className:K(z,"text-text-base-neutral-5"),children:[t,r&&p.jsx("span",{className:"text-text-prominent-accent-1",children:"*"})]}),p.jsxs("div",{onClick:a?void 0:j,className:K("group overflow-hidden",lo({size:h,disabled:a,hasError:v}),!a&&!v&&"focus-within:border-border-base-neutral-4",s&&"h-[120px] items-start"),children:[s?p.jsx("textarea",{...x,onChange:e,ref:E,value:c,maxLength:g,disabled:a,className:K("text-text-base-neutral-5 placeholder:text-text-base-neutral-2 h-full min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none",X,"resize-none overflow-y-auto")}):p.jsx("input",{...A,onChange:e,ref:E,value:c,maxLength:g,disabled:a,className:K("text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none",X,"overflow-hidden text-ellipsis whitespace-nowrap")}),f&&p.jsx("div",{className:"shrink-0",children:f}),p.jsx("button",{type:"button",onClick:()=>e&&e({target:{value:""}}),tabIndex:-1,disabled:a,className:K("hidden shrink-0",{flex:v,"group-focus-within:flex":!a&&L>0}),children:p.jsx(Zt,{className:"text-icon-base-neutral-3 h-6 w-6 shrink-0 cursor-pointer"})})]}),(n||o||g&&d)&&p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[(n||o)&&p.jsx("span",{className:K(I,Ve({size:h,hasError:v})),children:o||n}),g&&d&&p.jsxs("span",{className:K("ml-auto",I,Ve({size:h,hasError:v})),children:[L,"/",g]})]})]})});co.displayName="TextFieldNormal";const Rs=se("flex items-center justify-between rounded-[4px] bg-surface-base-neutral-2 border transition-colors duration-200",{variants:{size:{large:"gap-2 p-[15px] min-h-[56px]",small:"gap-3 p-[11px] min-h-[48px]"},hasError:{true:"border-border-prominent-error",false:"border-transparent"},disabled:{true:"opacity-50",false:""}},defaultVariants:{size:"large"}}),Ts=({label:e,placeholder:t,value:r,isRequired:n=!1,disabled:o=!1,assistiveText:a,errorText:s,onPress:i,className:f,size:d="large"})=>{const c=!!s,g=d==="large"?"text-title-18-bold":"text-title-14-bold",h=d==="large"?"text-title-20-regular":"text-body-16-regular";return p.jsxs("div",{className:K("flex w-full flex-col gap-2",f),children:[e&&p.jsxs("div",{className:"flex items-start",children:[p.jsx("span",{className:K(g,"text-text-base-neutral-5"),children:e}),n&&p.jsx("span",{className:K(g,"text-text-prominent-accent-1"),children:"*"})]}),p.jsxs("button",{type:"button",className:Rs({size:d,hasError:c,disabled:o}),onClick:i,disabled:o,children:[p.jsx("span",{className:K(h,"flex-1",r?"text-text-base-neutral-5":"text-text-base-neutral-2"),style:{textAlign:"left",overflow:"hidden",textOverflow:"ellipsis"},children:r||t}),p.jsx(so,{className:"text-icon-base-neutral-3 rotate-270"})]}),(a||s)&&p.jsx("div",{className:"flex items-start gap-2",children:p.jsx("span",{className:Ve({size:d,hasError:c}),children:s||a})})]})},uo=m.forwardRef(({onChange:e,subtitle:t,isRequired:r=!1,assistiveText:n,errorText:o,disabled:a=!1,multiLine:s=!1,className:i,showCounter:f=!1,value:d,maxLength:c,size:g="large",fieldRightElement:h,buttonText:w,onButtonClick:R,buttonDisabled:v=!1,...E},j)=>{const W=!!o,L=m.useRef(null);m.useImperativeHandle(j,()=>L.current);const A=m.useCallback(()=>{var l;(l=L.current)==null||l.focus()},[]),X=(typeof d=="string"?d:"").length,z=E,I=E,_=g==="large"?"text-title-20-regular":"text-body-16-regular",H=g==="large"?"text-title-18-bold":"text-title-14-bold",q=g==="large"?"text-body-16-regular":"text-caption-12-medium";return p.jsxs("div",{className:K("flex flex-col gap-2",i),children:[t&&p.jsxs("span",{className:K(H,"text-text-base-neutral-5"),children:[t,r&&p.jsx("span",{className:"text-text-prominent-accent-1",children:"*"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{onClick:a?void 0:A,className:K("group flex-1 overflow-hidden",lo({size:g,disabled:a,hasError:W}),!a&&!W&&"focus-within:border-border-base-neutral-4",s&&"h-[120px] items-start"),children:[s?p.jsx("textarea",{...I,onChange:e,ref:L,value:d,maxLength:c,disabled:a,className:K("text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none",_,"resize-none overflow-y-auto")}):p.jsx("input",{...z,onChange:e,ref:L,value:d,maxLength:c,disabled:a,className:K("text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none",_,"overflow-hidden text-ellipsis whitespace-nowrap")}),h&&p.jsx("div",{className:"shrink-0",children:h}),p.jsx("button",{type:"button",onClick:()=>e&&e({target:{value:""}}),tabIndex:-1,disabled:a,className:K("hidden shrink-0",{flex:W,"group-focus-within:flex":!a&&X>0}),children:p.jsx(Zt,{className:"text-icon-base-neutral-3 h-6 w-6 shrink-0 cursor-pointer"})})]}),p.jsx("div",{className:"shrink-0",children:p.jsx(Fe,{label:w,onClick:R,size:"medium",hierarchy:"tertiary",disabled:v||a})})]}),(n||o||c&&f)&&p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[(n||o)&&p.jsx("span",{className:K(q,Ve({size:g,hasError:W})),children:o||n}),c&&f&&p.jsxs("span",{className:K("ml-auto",q,Ve({size:g,hasError:W})),children:[X,"/",c]})]})]})});uo.displayName="TextFieldWithButton";const ks=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.4142 12L19.7071 18.2929C20.0976 18.6834 20.0976 19.3166 19.7071 19.7071C19.3166 20.0976 18.6834 20.0976 18.2929 19.7071L12 13.4142L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.5858 12L4.29289 5.70711C3.90237 5.31659 3.90237 4.68342 4.29289 4.2929C4.68342 3.90237 5.31658 3.90237 5.70711 4.2929L12 10.5858L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289Z",fill:"currentColor"})}),_s=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6585 7.24741C20.0741 7.61109 20.1162 8.24285 19.7526 8.65849L12.7526 16.6585C12.5627 16.8755 12.2883 17 12 17C11.7116 17 11.4373 16.8755 11.2474 16.6585L4.24741 8.65849C3.88373 8.24285 3.92584 7.61109 4.34148 7.24741C4.75712 6.88372 5.38888 6.92584 5.75256 7.34148L12 14.4814L18.2474 7.34148C18.6111 6.92584 19.2429 6.88372 19.6585 7.24741Z",fill:"currentColor"})}),Ns=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.24744 4.34151C7.61112 3.92587 8.24288 3.88375 8.65852 4.24744L16.6585 11.2474C16.8755 11.4373 17 11.7117 17 12C17 12.2884 16.8755 12.5627 16.6585 12.7526L8.65852 19.7526C8.24288 20.1163 7.61112 20.0742 7.24744 19.6585C6.88375 19.2429 6.92587 18.6111 7.34151 18.2474L14.4814 12L7.34151 5.75259C6.92587 5.38891 6.88375 4.75715 7.24744 4.34151Z",fill:"currentColor"})}),Ps=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.34151 16.7526C3.92587 16.3889 3.88375 15.7571 4.24744 15.3415L11.2474 7.34151C11.4373 7.1245 11.7117 7.00002 12 7.00002C12.2884 7.00002 12.5627 7.1245 12.7526 7.34151L19.7526 15.3415C20.1163 15.7571 20.0742 16.3889 19.6585 16.7526C19.2429 17.1163 18.6111 17.0742 18.2474 16.6585L12 9.51861L5.75259 16.6585C5.38891 17.0742 4.75715 17.1163 4.34151 16.7526Z",fill:"currentColor"})}),Os=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88204 5.7652C6.35704 3.8826 8.07789 2.5 10.1093 2.5C12.5035 2.5 14.4664 4.42074 14.4664 6.81702C14.4664 9.2133 12.5035 11.134 10.1093 11.134C8.07658 11.134 6.35482 9.74965 5.88112 7.8652H2.55C1.9701 7.8652 1.5 7.3951 1.5 6.8152C1.5 6.2353 1.9701 5.7652 2.55 5.7652H5.88204ZM10.1093 4.6C8.85052 4.6 7.85208 5.60465 7.85208 6.81702C7.85208 8.02939 8.85052 9.03404 10.1093 9.03404C11.368 9.03404 12.3664 8.02939 12.3664 6.81702C12.3664 5.60465 11.368 4.6 10.1093 4.6ZM15.15 6.8152C15.15 6.2353 15.6201 5.7652 16.2 5.7652H21.4491C22.029 5.7652 22.4991 6.2353 22.4991 6.8152C22.4991 7.3951 22.029 7.8652 21.4491 7.8652H16.2C15.6201 7.8652 15.15 7.3951 15.15 6.8152ZM9.53356 17.083C9.53356 14.6867 11.4965 12.766 13.8907 12.766C15.9231 12.766 17.6446 14.1499 18.1186 16.0339H21.45C22.0299 16.0339 22.5 16.504 22.5 17.0839C22.5 17.6638 22.0299 18.1339 21.45 18.1339H18.1182C17.6435 20.0169 15.9224 21.4 13.8907 21.4C11.4965 21.4 9.53356 19.4793 9.53356 17.083ZM13.8907 14.866C12.632 14.866 11.6336 15.8706 11.6336 17.083C11.6336 18.2954 12.632 19.3 13.8907 19.3C15.1495 19.3 16.1479 18.2954 16.1479 17.083C16.1479 15.8706 15.1495 14.866 13.8907 14.866ZM1.5 17.0839C1.5 16.504 1.9701 16.0339 2.55 16.0339H7.8C8.3799 16.0339 8.85 16.504 8.85 17.0839C8.85 17.6638 8.3799 18.1339 7.8 18.1339H2.55C1.9701 18.1339 1.5 17.6638 1.5 17.0839Z",fill:"currentColor"})}),Ms=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.584 1.246a1 1 0 0 1 1.41.097l2.89 3.32a1 1 0 0 1-.164 1.465l-3.37 2.46a1 1 0 0 1-1.18-1.616l1.574-1.149A9 9 0 0 0 12 5.65a7.67 7.67 0 0 0-7.67 7.67A7.67 7.67 0 0 0 12 21a7.67 7.67 0 0 0 7.67-7.67 7.67 7.67 0 0 0-1.292-4.265 1 1 0 1 1 1.664-1.11 9.67 9.67 0 0 1 1.628 5.375A9.67 9.67 0 0 1 12 23c-5.343 0-9.67-4.328-9.67-9.68A9.67 9.67 0 0 1 12 3.65q.747.002 1.433.095l-.947-1.088a1 1 0 0 1 .098-1.411",fill:"currentColor"})}),js=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.3462 3C17.8984 3 18.3462 3.44772 18.3462 4L18.3462 17.4991L20.7757 14.9469C21.1565 14.5469 21.7895 14.5313 22.1895 14.9121C22.5895 15.2928 22.6051 15.9258 22.2243 16.3258L18.0705 20.6895C17.8817 20.8878 17.6199 21 17.3462 21C17.0724 21 16.8106 20.8878 16.6219 20.6895L12.468 16.3258C12.0872 15.9258 12.1028 15.2928 12.5028 14.9121C12.9029 14.5313 13.5358 14.5469 13.9166 14.9469L16.3462 17.4991L16.3462 4C16.3462 3.44772 16.7939 3 17.3462 3ZM6.65385 3C6.92761 3 7.1894 3.11223 7.37815 3.31052L11.532 7.67416C11.9128 8.07418 11.8972 8.70715 11.4972 9.08794C11.0972 9.46873 10.4642 9.45314 10.0834 9.05312L7.65385 6.50087L7.65385 20C7.65385 20.5523 7.20613 21 6.65385 21C6.10156 21 5.65385 20.5523 5.65385 20L5.65385 6.50087L3.22431 9.05312C2.84352 9.45314 2.21054 9.46873 1.81052 9.08794C1.4105 8.70715 1.39491 8.07418 1.7757 7.67416L5.92954 3.31052C6.1183 3.11223 6.38009 3 6.65385 3Z",fill:"currentColor"})}),As=e=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.4142 12L19.7071 18.2929C20.0976 18.6834 20.0976 19.3166 19.7071 19.7071C19.3166 20.0976 18.6834 20.0976 18.2929 19.7071L12 13.4142L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.5858 12L4.29289 5.70711C3.90237 5.31659 3.90237 4.68342 4.29289 4.2929C4.68342 3.90237 5.31658 3.90237 5.70711 4.2929L12 10.5858L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289Z",fill:"currentColor"})}),Is=e=>p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[p.jsx("path",{opacity:"0.399",d:"M19.23 8.14C18.99 7.89 18.66 7.75 18.32 7.75H5.67999C5.33999 7.75 4.99999 7.89 4.76999 8.14C4.53999 8.39 4.40999 8.73 4.42999 9.08L5.04999 19.34C5.15999 20.86 5.29999 22.76 8.78999 22.76H15.21C18.7 22.76 18.84 20.87 18.95 19.34L19.57 9.09C19.59 8.73 19.46 8.39 19.23 8.14Z",fill:"currentColor"}),p.jsx("path",{d:"M21.0699 5.23C19.4599 5.07 17.8499 4.95 16.2299 4.86V4.85L16.0099 3.55C15.8599 2.63 15.6399 1.25 13.2999 1.25H10.6799C8.34991 1.25 8.12991 2.57 7.96991 3.54L7.75991 4.82C6.82991 4.88 5.89991 4.94 4.96991 5.03L2.92991 5.23C2.50991 5.27 2.20991 5.64 2.24991 6.05C2.28991 6.46 2.64991 6.76 3.06991 6.72L5.10991 6.52C10.3499 6 15.6299 6.2 20.9299 6.73H21.0099C21.3899 6.73 21.7199 6.44 21.7599 6.05C21.775 5.85024 21.7112 5.65253 21.5822 5.49925C21.4532 5.34596 21.2693 5.24931 21.0699 5.23Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.57994 17C9.57994 16.8011 9.65896 16.6103 9.79961 16.4697C9.94026 16.329 10.131 16.25 10.3299 16.25H13.6599C13.8589 16.25 14.0496 16.329 14.1903 16.4697C14.3309 16.6103 14.4099 16.8011 14.4099 17C14.4099 17.1989 14.3309 17.3897 14.1903 17.5303C14.0496 17.671 13.8589 17.75 13.6599 17.75H10.3299C10.131 17.75 9.94026 17.671 9.79961 17.5303C9.65896 17.3897 9.57994 17.1989 9.57994 17ZM8.74994 13C8.74994 12.8011 8.82896 12.6103 8.96961 12.4697C9.11026 12.329 9.30103 12.25 9.49994 12.25H14.4999C14.6989 12.25 14.8896 12.329 15.0303 12.4697C15.1709 12.6103 15.2499 12.8011 15.2499 13C15.2499 13.1989 15.1709 13.3897 15.0303 13.5303C14.8896 13.671 14.6989 13.75 14.4999 13.75H9.49994C9.30103 13.75 9.11026 13.671 8.96961 13.5303C8.82896 13.3897 8.74994 13.1989 8.74994 13Z",fill:"currentColor"})]}),Ls=e=>p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[p.jsx("path",{opacity:"0.4",d:"M19 2H5C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6689 6.32707C14.9253 6.20088 15.2312 6.2314 15.4576 6.40576L18.4576 8.71576C18.7858 8.96847 18.847 9.43938 18.5943 9.76758C18.3416 10.0958 17.8707 10.157 17.5425 9.90425L15.75 8.52408V17C15.75 17.4142 15.4143 17.75 15 17.75C14.5858 17.75 14.25 17.4142 14.25 17V7.00001C14.25 6.71421 14.4125 6.45326 14.6689 6.32707Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00004 6.25001C9.41425 6.25001 9.75004 6.58579 9.75004 7.00001V17C9.75004 17.2858 9.58761 17.5468 9.33119 17.6729C9.07476 17.7991 8.76891 17.7686 8.54247 17.5943L5.54247 15.2843C5.21427 15.0315 5.15308 14.5606 5.40579 14.2324C5.6585 13.9042 6.12941 13.843 6.45761 14.0958L8.25004 15.4759V7.00001C8.25004 6.58579 8.58582 6.25001 9.00004 6.25001Z",fill:"currentColor"})]}),Ds=e=>p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[p.jsx("path",{d:"M11.9986 4.88802C11.3424 4.88802 10.7982 4.35925 10.7982 3.72162V2.16641C10.7982 1.52877 11.3424 1 11.9986 1C12.6547 1 13.1989 1.52877 13.1989 2.16641V3.72162C13.1989 4.35925 12.6547 4.88802 11.9986 4.88802ZM4.79709 8C4.49301 8 4.18892 7.89114 3.94886 7.65785L2.34842 6.10264C2.12519 5.88314 2 5.58698 2 5.27838C2 4.96978 2.12519 4.67362 2.34842 4.45412C2.81254 4.00311 3.58076 4.00311 4.04488 4.45412L5.64532 6.00933C6.10945 6.46034 6.10945 7.20684 5.64532 7.65785C5.40526 7.89114 5.10117 8 4.79709 8ZM19.2032 8C18.8991 8 18.5951 7.89114 18.355 7.65785C18.1318 7.43835 18.0066 7.14219 18.0066 6.83359C18.0066 6.52499 18.1318 6.22883 18.355 6.00933L19.9554 4.45412C20.4196 4.00311 21.1878 4.00311 21.6519 4.45412C22.116 4.90513 22.116 5.65163 21.6519 6.10264L20.0515 7.65785C19.8114 7.89114 19.5073 8 19.2032 8Z",fill:"currentColor"}),p.jsx("path",{d:"M22 21C22 21.5467 21.6837 22 21.3023 22H2.69767C2.31628 22 2 21.5467 2 21C2 20.4533 2.31628 20 2.69767 20H21.3023C21.6837 20 22 20.4533 22 21Z",fill:"currentColor"}),p.jsx("path",{opacity:"0.4",d:"M20 14.6721V20H4V14.6721C4 12.6374 4.84285 10.6859 6.34315 9.24711C7.84344 7.80831 9.87827 7 12 7C14.1217 7 16.1566 7.80831 17.6569 9.24711C19.1572 10.6859 20 12.6374 20 14.6721Z",fill:"currentColor"})]}),Fs=e=>p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[p.jsx("path",{opacity:"0.4",d:"M10.9608 2.0588L5.46078 4.1188C4.41078 4.5188 3.55078 5.7588 3.55078 6.8888V14.9888C3.55078 15.7988 4.08078 16.8688 4.73078 17.3488L10.2308 21.4588C11.2008 22.1888 12.7908 22.1888 13.7608 21.4588L19.2608 17.3488C19.9108 16.8588 20.4408 15.7988 20.4408 14.9888V6.8888C20.4408 5.7688 19.5808 4.5188 18.5308 4.1288L13.0308 2.0688C12.4708 1.8488 11.5308 1.8488 10.9608 2.0588Z",fill:"currentColor"}),p.jsx("path",{d:"M10.657 14.2309C10.467 14.2309 10.277 14.1609 10.127 14.0109L8.51702 12.4009C8.37754 12.2598 8.29932 12.0693 8.29932 11.8709C8.29932 11.6725 8.37754 11.482 8.51702 11.3409C8.80702 11.0509 9.28702 11.0509 9.57702 11.3409L10.657 12.4209L14.427 8.65091C14.717 8.36091 15.197 8.36091 15.487 8.65091C15.777 8.94091 15.777 9.42091 15.487 9.71091L11.187 14.0109C11.037 14.1609 10.847 14.2309 10.657 14.2309Z",fill:"currentColor"})]});J.Badge=ln,J.CTAButton=Fe,J.CancelFilledIcon=Zt,J.CancelIcon=ks,J.Checkbox=Pa,J.ChevronDownIcon=_s,J.ChevronLeftIcon=so,J.ChevronRightIcon=Ns,J.ChevronUpIcon=Ps,J.Chip=Fa,J.CloseIcon=As,J.DeleteIcon=Is,J.FilterIcon=Os,J.Popup=Ss,J.Radio=ta,J.RecentIcon=Ls,J.ReportIcon=Ds,J.RetryIcon=Ms,J.ShieldDoneIcon=Fs,J.SortingIcon=js,J.Tabs=Na,J.TextFieldNormal=co,J.TextFieldSelect=Ts,J.TextFieldWithButton=uo,J.Toggle=Oa,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
|
90
|
-
//# sourceMappingURL=index.umd.js.map
|
|
56
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return t.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ui=`DialogDescriptionWarning`,Wi=({contentRef:e,descriptionId:n})=>{let r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vi(Ui).contentName}}.`;return t.useEffect(()=>{let t=e.current?.getAttribute(`aria-describedby`);n&&t&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},Gi=gi,Ki=Si,qi=wi,Ji=Oi,Yi=Ni,Xi=Fi,Zi=Gi,Qi=Ki,$i=t.forwardRef(({className:e,...t},n)=>(0,J.jsx)(qi,{ref:n,className:q(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 duration-200`,e),...t}));$i.displayName=qi.displayName;var ea=t.forwardRef(({className:e,...t},n)=>(0,J.jsxs)(Qi,{children:[(0,J.jsx)($i,{}),(0,J.jsx)(Ji,{ref:n,className:q(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-background fixed top-1/2 left-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg p-6 shadow-lg duration-200 outline-none`,e),...t})]}));ea.displayName=Ji.displayName;var ta=t.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Yi,{ref:n,className:q(`text-lg font-semibold`,e),...t}));ta.displayName=Yi.displayName;var na=t.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Xi,{ref:n,className:q(`text-muted-foreground text-sm`,e),...t}));na.displayName=Xi.displayName;var ra=({isOpen:e,setIsOpen:t,title:n,description:r,content:i,confirm:a,cancel:o,preventEasyClose:s=!1,className:c})=>(0,J.jsx)(Zi,{open:e,onOpenChange:e=>{s&&!e||t(e)},children:(0,J.jsxs)(ea,{onEscapeKeyDown:s?e=>e.preventDefault():void 0,onInteractOutside:s?e=>e.preventDefault():void 0,className:q(`bg-surface-base-neutral-1 flex max-h-[440px] w-[300px] max-w-[300px] flex-col gap-4 overflow-hidden rounded-[16px] p-4`,c),children:[(0,J.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[n&&(0,J.jsx)(ta,{className:`text-title-18-bold text-text-prominent-neutral-4`,children:n}),r&&(0,J.jsx)(`div`,{className:`overflow-y-auto`,children:(0,J.jsx)(na,{className:`text-body-16-medium text-text-prominent-neutral-3`,children:r})}),i&&(0,J.jsx)(`div`,{className:`overflow-y-auto`,children:i})]}),(a||o)&&(0,J.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[a&&(0,J.jsx)(zt,{label:a.label,icon:a.icon,size:`medium`,hierarchy:`primary`,onClick:(e=>()=>{e?.onClick?.()})(a)}),o&&(0,J.jsx)(zt,{label:o.label,icon:o.icon,size:`medium`,hierarchy:`tertiary`,onClick:(e=>()=>{e?.onClick?.(),t(!1)})(o)})]})]})}),ia=e=>(0,J.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,J.jsx)(`circle`,{cx:12,cy:12,r:10,fill:`!currentColor`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.53 13.47c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22L12 13.06l-3.47 3.47c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06L10.94 12 7.47 8.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L12 10.94l3.47-3.47c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.06 12z`})]}),aa=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.753 19.659a1 1 0 0 1-1.412.094l-8-7a1 1 0 0 1 0-1.506l8-7a1 1 0 0 1 1.318 1.506L9.519 12l7.14 6.247a1 1 0 0 1 .094 1.412`,fill:`currentColor`})}),oa=Y(`flex items-center rounded-[4px] bg-surface-base-neutral-2 border transition-colors duration-200`,{variants:{size:{large:`gap-2 p-[15px] min-h-[56px]`,small:`gap-3 p-[11px] min-h-[48px]`},hasError:{true:`border-border-prominent-error`,false:`border-transparent`},disabled:{true:`opacity-50`,false:``}},defaultVariants:{size:`large`,disabled:!1,hasError:!1}}),sa=Y(``,{variants:{size:{large:`text-body-16-regular`,small:`text-caption-12-medium`},hasError:{true:`text-text-prominent-error`,false:`text-text-base-neutral-2`}},defaultVariants:{size:`large`,hasError:!1}}),ca=t.forwardRef(({onChange:e,subtitle:n,isRequired:r=!1,assistiveText:i,errorText:a,disabled:o=!1,multiLine:s=!1,className:c,rightElement:l,showCounter:u=!1,value:d,maxLength:f,size:p=`large`,...m},h)=>{let g=!!a,_=t.useRef(null);t.useImperativeHandle(h,()=>_.current);let v=t.useCallback(()=>{_.current?.focus()},[]),y=(typeof d==`string`?d:``).length,b=m,x=m,S=p===`large`?`text-title-20-regular`:`text-body-16-regular`,C=p===`large`?`text-title-18-bold`:`text-title-14-bold`,w=p===`large`?`text-body-16-regular`:`text-caption-12-medium`;return(0,J.jsxs)(`div`,{className:q(`flex flex-col gap-2`,c),children:[n&&(0,J.jsxs)(`span`,{className:q(C,`text-text-base-neutral-5`),children:[n,r&&(0,J.jsx)(`span`,{className:`text-text-prominent-accent-1`,children:`*`})]}),(0,J.jsxs)(`div`,{onClick:o?void 0:v,className:q(`group overflow-hidden`,oa({size:p,disabled:o,hasError:g}),!o&&!g&&`focus-within:border-border-base-neutral-4`,s&&`h-[120px] items-start`),children:[s?(0,J.jsx)(`textarea`,{...x,onChange:e,ref:_,value:d,maxLength:f,disabled:o,className:q(`text-text-base-neutral-5 placeholder:text-text-base-neutral-2 h-full min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none`,S,`resize-none overflow-y-auto`)}):(0,J.jsx)(`input`,{...b,onChange:e,ref:_,value:d,maxLength:f,disabled:o,className:q(`text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none`,S,`overflow-hidden text-ellipsis whitespace-nowrap`)}),l&&(0,J.jsx)(`div`,{className:`shrink-0`,children:l}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>e&&e({target:{value:``}}),tabIndex:-1,disabled:o,className:q(`hidden shrink-0`,{flex:g,"group-focus-within:flex":!o&&y>0}),children:(0,J.jsx)(ia,{className:`text-icon-base-neutral-3 h-6 w-6 shrink-0 cursor-pointer`})})]}),(i||a||f&&u)&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(i||a)&&(0,J.jsx)(`span`,{className:q(w,sa({size:p,hasError:g})),children:a||i}),f&&u&&(0,J.jsxs)(`span`,{className:q(`ml-auto`,w,sa({size:p,hasError:g})),children:[y,`/`,f]})]})]})});ca.displayName=`TextFieldNormal`;var la=Y(`flex items-center justify-between rounded-[4px] bg-surface-base-neutral-2 border transition-colors duration-200`,{variants:{size:{large:`gap-2 p-[15px] min-h-[56px]`,small:`gap-3 p-[11px] min-h-[48px]`},hasError:{true:`border-border-prominent-error`,false:`border-transparent`},disabled:{true:`opacity-50`,false:``}},defaultVariants:{size:`large`}}),ua=({label:e,placeholder:t,value:n,isRequired:r=!1,disabled:i=!1,assistiveText:a,errorText:o,onPress:s,className:c,size:l=`large`})=>{let u=!!o,d=l===`large`?`text-title-18-bold`:`text-title-14-bold`,f=l===`large`?`text-title-20-regular`:`text-body-16-regular`;return(0,J.jsxs)(`div`,{className:q(`flex w-full flex-col gap-2`,c),children:[e&&(0,J.jsxs)(`div`,{className:`flex items-start`,children:[(0,J.jsx)(`span`,{className:q(d,`text-text-base-neutral-5`),children:e}),r&&(0,J.jsx)(`span`,{className:q(d,`text-text-prominent-accent-1`),children:`*`})]}),(0,J.jsxs)(`button`,{type:`button`,className:la({size:l,hasError:u,disabled:i}),onClick:s,disabled:i,children:[(0,J.jsx)(`span`,{className:q(f,`flex-1`,n?`text-text-base-neutral-5`:`text-text-base-neutral-2`),style:{textAlign:`left`,overflow:`hidden`,textOverflow:`ellipsis`},children:n||t}),(0,J.jsx)(aa,{className:`text-icon-base-neutral-3 rotate-270`})]}),(a||o)&&(0,J.jsx)(`div`,{className:`flex items-start gap-2`,children:(0,J.jsx)(`span`,{className:sa({size:l,hasError:u}),children:o||a})})]})},da=t.forwardRef(({onChange:e,subtitle:n,isRequired:r=!1,assistiveText:i,errorText:a,disabled:o=!1,multiLine:s=!1,className:c,showCounter:l=!1,value:u,maxLength:d,size:f=`large`,fieldRightElement:p,buttonText:m,onButtonClick:h,buttonDisabled:g=!1,..._},v)=>{let y=!!a,b=t.useRef(null);t.useImperativeHandle(v,()=>b.current);let x=t.useCallback(()=>{b.current?.focus()},[]),S=(typeof u==`string`?u:``).length,C=_,w=_,T=f===`large`?`text-title-20-regular`:`text-body-16-regular`,E=f===`large`?`text-title-18-bold`:`text-title-14-bold`,D=f===`large`?`text-body-16-regular`:`text-caption-12-medium`;return(0,J.jsxs)(`div`,{className:q(`flex flex-col gap-2`,c),children:[n&&(0,J.jsxs)(`span`,{className:q(E,`text-text-base-neutral-5`),children:[n,r&&(0,J.jsx)(`span`,{className:`text-text-prominent-accent-1`,children:`*`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`div`,{onClick:o?void 0:x,className:q(`group flex-1 overflow-hidden`,oa({size:f,disabled:o,hasError:y}),!o&&!y&&`focus-within:border-border-base-neutral-4`,s&&`h-[120px] items-start`),children:[s?(0,J.jsx)(`textarea`,{...w,onChange:e,ref:b,value:u,maxLength:d,disabled:o,className:q(`text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none`,T,`resize-none overflow-y-auto`)}):(0,J.jsx)(`input`,{...C,onChange:e,ref:b,value:u,maxLength:d,disabled:o,className:q(`text-text-base-neutral-5 placeholder:text-text-base-neutral-2 min-h-[24px] min-w-0 flex-1 border-none bg-transparent py-0 outline-none`,T,`overflow-hidden text-ellipsis whitespace-nowrap`)}),p&&(0,J.jsx)(`div`,{className:`shrink-0`,children:p}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>e&&e({target:{value:``}}),tabIndex:-1,disabled:o,className:q(`hidden shrink-0`,{flex:y,"group-focus-within:flex":!o&&S>0}),children:(0,J.jsx)(ia,{className:`text-icon-base-neutral-3 h-6 w-6 shrink-0 cursor-pointer`})})]}),(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(zt,{label:m,onClick:h,size:`medium`,hierarchy:`tertiary`,disabled:g||o})})]}),(i||a||d&&l)&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(i||a)&&(0,J.jsx)(`span`,{className:q(D,sa({size:f,hasError:y})),children:a||i}),d&&l&&(0,J.jsxs)(`span`,{className:q(`ml-auto`,D,sa({size:f,hasError:y})),children:[S,`/`,d]})]})]})});da.displayName=`TextFieldWithButton`,e.Badge=Mt,e.CTAButton=zt,e.CancelFilledIcon=ia,e.CancelIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.4142 12L19.7071 18.2929C20.0976 18.6834 20.0976 19.3166 19.7071 19.7071C19.3166 20.0976 18.6834 20.0976 18.2929 19.7071L12 13.4142L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.5858 12L4.29289 5.70711C3.90237 5.31659 3.90237 4.68342 4.29289 4.2929C4.68342 3.90237 5.31658 3.90237 5.70711 4.2929L12 10.5858L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289Z`,fill:`currentColor`})}),e.Checkbox=Tt,e.ChevronDownIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.6585 7.24741C20.0741 7.61109 20.1162 8.24285 19.7526 8.65849L12.7526 16.6585C12.5627 16.8755 12.2883 17 12 17C11.7116 17 11.4373 16.8755 11.2474 16.6585L4.24741 8.65849C3.88373 8.24285 3.92584 7.61109 4.34148 7.24741C4.75712 6.88372 5.38888 6.92584 5.75256 7.34148L12 14.4814L18.2474 7.34148C18.6111 6.92584 19.2429 6.88372 19.6585 7.24741Z`,fill:`currentColor`})}),e.ChevronLeftIcon=aa,e.ChevronRightIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.24744 4.34151C7.61112 3.92587 8.24288 3.88375 8.65852 4.24744L16.6585 11.2474C16.8755 11.4373 17 11.7117 17 12C17 12.2884 16.8755 12.5627 16.6585 12.7526L8.65852 19.7526C8.24288 20.1163 7.61112 20.0742 7.24744 19.6585C6.88375 19.2429 6.92587 18.6111 7.34151 18.2474L14.4814 12L7.34151 5.75259C6.92587 5.38891 6.88375 4.75715 7.24744 4.34151Z`,fill:`currentColor`})}),e.ChevronUpIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.34151 16.7526C3.92587 16.3889 3.88375 15.7571 4.24744 15.3415L11.2474 7.34151C11.4373 7.1245 11.7117 7.00002 12 7.00002C12.2884 7.00002 12.5627 7.1245 12.7526 7.34151L19.7526 15.3415C20.1163 15.7571 20.0742 16.3889 19.6585 16.7526C19.2429 17.1163 18.6111 17.0742 18.2474 16.6585L12 9.51861L5.75259 16.6585C5.38891 17.0742 4.75715 17.1163 4.34151 16.7526Z`,fill:`currentColor`})}),e.Chip=It,e.CloseIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.4142 12L19.7071 18.2929C20.0976 18.6834 20.0976 19.3166 19.7071 19.7071C19.3166 20.0976 18.6834 20.0976 18.2929 19.7071L12 13.4142L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.5858 12L4.29289 5.70711C3.90237 5.31659 3.90237 4.68342 4.29289 4.2929C4.68342 3.90237 5.31658 3.90237 5.70711 4.2929L12 10.5858L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289Z`,fill:`currentColor`})}),e.DeleteIcon=e=>(0,J.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{opacity:`0.399`,d:`M19.23 8.14C18.99 7.89 18.66 7.75 18.32 7.75H5.67999C5.33999 7.75 4.99999 7.89 4.76999 8.14C4.53999 8.39 4.40999 8.73 4.42999 9.08L5.04999 19.34C5.15999 20.86 5.29999 22.76 8.78999 22.76H15.21C18.7 22.76 18.84 20.87 18.95 19.34L19.57 9.09C19.59 8.73 19.46 8.39 19.23 8.14Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{d:`M21.0699 5.23C19.4599 5.07 17.8499 4.95 16.2299 4.86V4.85L16.0099 3.55C15.8599 2.63 15.6399 1.25 13.2999 1.25H10.6799C8.34991 1.25 8.12991 2.57 7.96991 3.54L7.75991 4.82C6.82991 4.88 5.89991 4.94 4.96991 5.03L2.92991 5.23C2.50991 5.27 2.20991 5.64 2.24991 6.05C2.28991 6.46 2.64991 6.76 3.06991 6.72L5.10991 6.52C10.3499 6 15.6299 6.2 20.9299 6.73H21.0099C21.3899 6.73 21.7199 6.44 21.7599 6.05C21.775 5.85024 21.7112 5.65253 21.5822 5.49925C21.4532 5.34596 21.2693 5.24931 21.0699 5.23Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.57994 17C9.57994 16.8011 9.65896 16.6103 9.79961 16.4697C9.94026 16.329 10.131 16.25 10.3299 16.25H13.6599C13.8589 16.25 14.0496 16.329 14.1903 16.4697C14.3309 16.6103 14.4099 16.8011 14.4099 17C14.4099 17.1989 14.3309 17.3897 14.1903 17.5303C14.0496 17.671 13.8589 17.75 13.6599 17.75H10.3299C10.131 17.75 9.94026 17.671 9.79961 17.5303C9.65896 17.3897 9.57994 17.1989 9.57994 17ZM8.74994 13C8.74994 12.8011 8.82896 12.6103 8.96961 12.4697C9.11026 12.329 9.30103 12.25 9.49994 12.25H14.4999C14.6989 12.25 14.8896 12.329 15.0303 12.4697C15.1709 12.6103 15.2499 12.8011 15.2499 13C15.2499 13.1989 15.1709 13.3897 15.0303 13.5303C14.8896 13.671 14.6989 13.75 14.4999 13.75H9.49994C9.30103 13.75 9.11026 13.671 8.96961 13.5303C8.82896 13.3897 8.74994 13.1989 8.74994 13Z`,fill:`currentColor`})]}),e.FilterIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.88204 5.7652C6.35704 3.8826 8.07789 2.5 10.1093 2.5C12.5035 2.5 14.4664 4.42074 14.4664 6.81702C14.4664 9.2133 12.5035 11.134 10.1093 11.134C8.07658 11.134 6.35482 9.74965 5.88112 7.8652H2.55C1.9701 7.8652 1.5 7.3951 1.5 6.8152C1.5 6.2353 1.9701 5.7652 2.55 5.7652H5.88204ZM10.1093 4.6C8.85052 4.6 7.85208 5.60465 7.85208 6.81702C7.85208 8.02939 8.85052 9.03404 10.1093 9.03404C11.368 9.03404 12.3664 8.02939 12.3664 6.81702C12.3664 5.60465 11.368 4.6 10.1093 4.6ZM15.15 6.8152C15.15 6.2353 15.6201 5.7652 16.2 5.7652H21.4491C22.029 5.7652 22.4991 6.2353 22.4991 6.8152C22.4991 7.3951 22.029 7.8652 21.4491 7.8652H16.2C15.6201 7.8652 15.15 7.3951 15.15 6.8152ZM9.53356 17.083C9.53356 14.6867 11.4965 12.766 13.8907 12.766C15.9231 12.766 17.6446 14.1499 18.1186 16.0339H21.45C22.0299 16.0339 22.5 16.504 22.5 17.0839C22.5 17.6638 22.0299 18.1339 21.45 18.1339H18.1182C17.6435 20.0169 15.9224 21.4 13.8907 21.4C11.4965 21.4 9.53356 19.4793 9.53356 17.083ZM13.8907 14.866C12.632 14.866 11.6336 15.8706 11.6336 17.083C11.6336 18.2954 12.632 19.3 13.8907 19.3C15.1495 19.3 16.1479 18.2954 16.1479 17.083C16.1479 15.8706 15.1495 14.866 13.8907 14.866ZM1.5 17.0839C1.5 16.504 1.9701 16.0339 2.55 16.0339H7.8C8.3799 16.0339 8.85 16.504 8.85 17.0839C8.85 17.6638 8.3799 18.1339 7.8 18.1339H2.55C1.9701 18.1339 1.5 17.6638 1.5 17.0839Z`,fill:`currentColor`})}),e.Popup=ra,e.Radio=Ve,e.RecentIcon=e=>(0,J.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{opacity:`0.4`,d:`M19 2H5C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14.6689 6.32707C14.9253 6.20088 15.2312 6.2314 15.4576 6.40576L18.4576 8.71576C18.7858 8.96847 18.847 9.43938 18.5943 9.76758C18.3416 10.0958 17.8707 10.157 17.5425 9.90425L15.75 8.52408V17C15.75 17.4142 15.4143 17.75 15 17.75C14.5858 17.75 14.25 17.4142 14.25 17V7.00001C14.25 6.71421 14.4125 6.45326 14.6689 6.32707Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.00004 6.25001C9.41425 6.25001 9.75004 6.58579 9.75004 7.00001V17C9.75004 17.2858 9.58761 17.5468 9.33119 17.6729C9.07476 17.7991 8.76891 17.7686 8.54247 17.5943L5.54247 15.2843C5.21427 15.0315 5.15308 14.5606 5.40579 14.2324C5.6585 13.9042 6.12941 13.843 6.45761 14.0958L8.25004 15.4759V7.00001C8.25004 6.58579 8.58582 6.25001 9.00004 6.25001Z`,fill:`currentColor`})]}),e.ReportIcon=e=>(0,J.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{d:`M11.9986 4.88802C11.3424 4.88802 10.7982 4.35925 10.7982 3.72162V2.16641C10.7982 1.52877 11.3424 1 11.9986 1C12.6547 1 13.1989 1.52877 13.1989 2.16641V3.72162C13.1989 4.35925 12.6547 4.88802 11.9986 4.88802ZM4.79709 8C4.49301 8 4.18892 7.89114 3.94886 7.65785L2.34842 6.10264C2.12519 5.88314 2 5.58698 2 5.27838C2 4.96978 2.12519 4.67362 2.34842 4.45412C2.81254 4.00311 3.58076 4.00311 4.04488 4.45412L5.64532 6.00933C6.10945 6.46034 6.10945 7.20684 5.64532 7.65785C5.40526 7.89114 5.10117 8 4.79709 8ZM19.2032 8C18.8991 8 18.5951 7.89114 18.355 7.65785C18.1318 7.43835 18.0066 7.14219 18.0066 6.83359C18.0066 6.52499 18.1318 6.22883 18.355 6.00933L19.9554 4.45412C20.4196 4.00311 21.1878 4.00311 21.6519 4.45412C22.116 4.90513 22.116 5.65163 21.6519 6.10264L20.0515 7.65785C19.8114 7.89114 19.5073 8 19.2032 8Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{d:`M22 21C22 21.5467 21.6837 22 21.3023 22H2.69767C2.31628 22 2 21.5467 2 21C2 20.4533 2.31628 20 2.69767 20H21.3023C21.6837 20 22 20.4533 22 21Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{opacity:`0.4`,d:`M20 14.6721V20H4V14.6721C4 12.6374 4.84285 10.6859 6.34315 9.24711C7.84344 7.80831 9.87827 7 12 7C14.1217 7 16.1566 7.80831 17.6569 9.24711C19.1572 10.6859 20 12.6374 20 14.6721Z`,fill:`currentColor`})]}),e.RetryIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.584 1.246a1 1 0 0 1 1.41.097l2.89 3.32a1 1 0 0 1-.164 1.465l-3.37 2.46a1 1 0 0 1-1.18-1.616l1.574-1.149A9 9 0 0 0 12 5.65a7.67 7.67 0 0 0-7.67 7.67A7.67 7.67 0 0 0 12 21a7.67 7.67 0 0 0 7.67-7.67 7.67 7.67 0 0 0-1.292-4.265 1 1 0 1 1 1.664-1.11 9.67 9.67 0 0 1 1.628 5.375A9.67 9.67 0 0 1 12 23c-5.343 0-9.67-4.328-9.67-9.68A9.67 9.67 0 0 1 12 3.65q.747.002 1.433.095l-.947-1.088a1 1 0 0 1 .098-1.411`,fill:`currentColor`})}),e.ShieldDoneIcon=e=>(0,J.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{opacity:`0.4`,d:`M10.9608 2.0588L5.46078 4.1188C4.41078 4.5188 3.55078 5.7588 3.55078 6.8888V14.9888C3.55078 15.7988 4.08078 16.8688 4.73078 17.3488L10.2308 21.4588C11.2008 22.1888 12.7908 22.1888 13.7608 21.4588L19.2608 17.3488C19.9108 16.8588 20.4408 15.7988 20.4408 14.9888V6.8888C20.4408 5.7688 19.5808 4.5188 18.5308 4.1288L13.0308 2.0688C12.4708 1.8488 11.5308 1.8488 10.9608 2.0588Z`,fill:`currentColor`}),(0,J.jsx)(`path`,{d:`M10.657 14.2309C10.467 14.2309 10.277 14.1609 10.127 14.0109L8.51702 12.4009C8.37754 12.2598 8.29932 12.0693 8.29932 11.8709C8.29932 11.6725 8.37754 11.482 8.51702 11.3409C8.80702 11.0509 9.28702 11.0509 9.57702 11.3409L10.657 12.4209L14.427 8.65091C14.717 8.36091 15.197 8.36091 15.487 8.65091C15.777 8.94091 15.777 9.42091 15.487 9.71091L11.187 14.0109C11.037 14.1609 10.847 14.2309 10.657 14.2309Z`,fill:`currentColor`})]}),e.SortingIcon=e=>(0,J.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.3462 3C17.8984 3 18.3462 3.44772 18.3462 4L18.3462 17.4991L20.7757 14.9469C21.1565 14.5469 21.7895 14.5313 22.1895 14.9121C22.5895 15.2928 22.6051 15.9258 22.2243 16.3258L18.0705 20.6895C17.8817 20.8878 17.6199 21 17.3462 21C17.0724 21 16.8106 20.8878 16.6219 20.6895L12.468 16.3258C12.0872 15.9258 12.1028 15.2928 12.5028 14.9121C12.9029 14.5313 13.5358 14.5469 13.9166 14.9469L16.3462 17.4991L16.3462 4C16.3462 3.44772 16.7939 3 17.3462 3ZM6.65385 3C6.92761 3 7.1894 3.11223 7.37815 3.31052L11.532 7.67416C11.9128 8.07418 11.8972 8.70715 11.4972 9.08794C11.0972 9.46873 10.4642 9.45314 10.0834 9.05312L7.65385 6.50087L7.65385 20C7.65385 20.5523 7.20613 21 6.65385 21C6.10156 21 5.65385 20.5523 5.65385 20L5.65385 6.50087L3.22431 9.05312C2.84352 9.45314 2.21054 9.46873 1.81052 9.08794C1.4105 8.70715 1.39491 8.07418 1.7757 7.67416L5.92954 3.31052C6.1183 3.11223 6.38009 3 6.65385 3Z`,fill:`currentColor`})}),e.Tabs=wt,e.TextFieldNormal=ca,e.TextFieldSelect=ua,e.TextFieldWithButton=da,e.Toggle=Et});
|
|
57
|
+
//# sourceMappingURL=index.umd.js.map
|