@srimandir/common 2.34.0 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common.js +212 -197
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.ts +8 -0
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/common.umd.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(C,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],w):(C=typeof globalThis<"u"?globalThis:C||self,w(C.SrimandirCommon={},C.ReactJSXRuntime,C.React))})(this,(function(C,w,oe){"use strict";const G={overlay:"_overlay_15iql_3",sheet:"_sheet_15iql_14",handle:"_handle_15iql_66",closeBtn:"_closeBtn_15iql_75",closeBtnOutside:"_closeBtnOutside_15iql_100",header:"_header_15iql_116",body:"_body_15iql_25",footer:"_footer_15iql_128"},te=(...e)=>e.filter(Boolean).join(" "),Ue=()=>w.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:w.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),$e=({isOpen:e,onClose:r,children:t,header:o,footer:a,showCloseButton:d=!0,closeButtonOutside:l=!1,showDragHandle:u=!1,closeOnBackdropClick:b=!0,closeOnEscape:m=!0,lockBodyScroll:g=!0,ariaLabel:y,className:M="",overlayClassName:L="","data-testid":j})=>(oe.useEffect(()=>{if(!e)return;const h=N=>{N.key==="Escape"&&r("escape")};m&&document.addEventListener("keydown",h);const z=document.body.style.overflow;return g&&(document.body.style.overflow="hidden"),()=>{m&&document.removeEventListener("keydown",h),g&&(document.body.style.overflow=z)}},[e,r,m,g]),e?w.jsx("div",{className:te(G.overlay,L),role:"presentation",onClick:h=>{b&&h.target===h.currentTarget&&r("backdrop")},children:w.jsxs("div",{className:te(G.sheet,M),role:"dialog","aria-modal":"true","aria-label":y,"data-testid":j,children:[u&&w.jsx("div",{className:G.handle,"aria-hidden":"true"}),d&&w.jsx("button",{type:"button",className:te(G.closeBtn,l&&G.closeBtnOutside),onClick:()=>r("close_button"),"aria-label":"Close",children:w.jsx(Ue,{})}),o&&w.jsx("div",{className:G.header,children:o}),w.jsx("div",{className:G.body,children:t}),a&&w.jsx("div",{className:G.footer,children:a})]})}):null);function pe(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=pe(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function De(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=pe(e))&&(o&&(o+=" "),o+=r);return o}const qe=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},Ke=(e,r)=>({classGroupId:e,validator:r}),ue=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),K="-",be=[],He="arbitrary..",Je=e=>{const r=Xe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ye(l);const u=l.split(K),b=u[0]===""&&u.length>1?1:0;return fe(u,b,r)},getConflictingClassGroupIds:(l,u)=>{if(u){const b=o[l],m=t[l];return b?m?qe(m,b):b:m||be}return t[l]||be}}},fe=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const a=e[r],d=t.nextPart.get(a);if(d){const m=fe(e,r+1,d);if(m)return m}const l=t.validators;if(l===null)return;const u=r===0?e.join(K):e.slice(r).join(K),b=l.length;for(let m=0;m<b;m++){const g=l[m];if(g.validator(u))return g.classGroupId}},Ye=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?He+o:void 0})(),Xe=e=>{const{theme:r,classGroups:t}=e;return Ze(t,r)},Ze=(e,r)=>{const t=ue();for(const o in e){const a=e[o];re(a,t,o,r)}return t},re=(e,r,t,o)=>{const a=e.length;for(let d=0;d<a;d++){const l=e[d];Qe(l,r,t,o)}},Qe=(e,r,t,o)=>{if(typeof e=="string"){eo(e,r,t);return}if(typeof e=="function"){oo(e,r,t,o);return}to(e,r,t,o)},eo=(e,r,t)=>{const o=e===""?r:ge(r,e);o.classGroupId=t},oo=(e,r,t,o)=>{if(ro(e)){re(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(Ke(t,e))},to=(e,r,t,o)=>{const a=Object.entries(e),d=a.length;for(let l=0;l<d;l++){const[u,b]=a[l];re(b,ge(r,u),t,o)}},ge=(e,r)=>{let t=e;const o=r.split(K),a=o.length;for(let d=0;d<a;d++){const l=o[d];let u=t.nextPart.get(l);u||(u=ue(),t.nextPart.set(l,u)),t=u}return t},ro=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const a=(d,l)=>{t[d]=l,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(d){let l=t[d];if(l!==void 0)return l;if((l=o[d])!==void 0)return a(d,l),l},set(d,l){d in t?t[d]=l:a(d,l)}}},ne="!",he=":",so=[],xe=(e,r,t,o,a)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:a}),ao=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=a=>{const d=[];let l=0,u=0,b=0,m;const g=a.length;for(let h=0;h<g;h++){const z=a[h];if(l===0&&u===0){if(z===he){d.push(a.slice(b,h)),b=h+1;continue}if(z==="/"){m=h;continue}}z==="["?l++:z==="]"?l--:z==="("?u++:z===")"&&u--}const y=d.length===0?a:a.slice(b);let M=y,L=!1;y.endsWith(ne)?(M=y.slice(0,-1),L=!0):y.startsWith(ne)&&(M=y.slice(1),L=!0);const j=m&&m>b?m-b:void 0;return xe(d,L,M,j)};if(r){const a=r+he,d=o;o=l=>l.startsWith(a)?d(l.slice(a.length)):xe(so,!1,l,void 0,!0)}if(t){const a=o;o=d=>t({className:d,parseClassName:a})}return o},io=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let a=[];for(let d=0;d<t.length;d++){const l=t[d],u=l[0]==="[",b=r.has(l);u||b?(a.length>0&&(a.sort(),o.push(...a),a=[]),o.push(l)):a.push(l)}return a.length>0&&(a.sort(),o.push(...a)),o}},lo=e=>({cache:no(e.cacheSize),parseClassName:ao(e),sortModifiers:io(e),postfixLookupClassGroupIds:co(e),...Je(e)}),co=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)r[t[o]]=!0;return r},mo=/\s+/,po=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:d,postfixLookupClassGroupIds:l}=r,u=[],b=e.trim().split(mo);let m="";for(let g=b.length-1;g>=0;g-=1){const y=b[g],{isExternal:M,modifiers:L,hasImportantModifier:j,baseClassName:h,maybePostfixModifierPosition:z}=t(y);if(M){m=y+(m.length>0?" "+m:m);continue}let N=!!z,A;if(N){const E=h.substring(0,z);A=o(E);const i=A&&l[A]?o(h):void 0;i&&i!==A&&(A=i,N=!1)}else A=o(h);if(!A){if(!N){m=y+(m.length>0?" "+m:m);continue}if(A=o(h),!A){m=y+(m.length>0?" "+m:m);continue}N=!1}const q=L.length===0?"":L.length===1?L[0]:d(L).join(":"),V=j?q+ne:q,W=V+A;if(u.indexOf(W)>-1)continue;u.push(W);const U=a(A,N);for(let E=0;E<U.length;++E){const i=U[E];u.push(V+i)}m=y+(m.length>0?" "+m:m)}return m},uo=(...e)=>{let r=0,t,o,a="";for(;r<e.length;)(t=e[r++])&&(o=ye(t))&&(a&&(a+=" "),a+=o);return a},ye=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ye(e[o]))&&(t&&(t+=" "),t+=r);return t},bo=(e,...r)=>{let t,o,a,d;const l=b=>{const m=r.reduce((g,y)=>y(g),e());return t=lo(m),o=t.cache.get,a=t.cache.set,d=u,u(b)},u=b=>{const m=o(b);if(m)return m;const g=po(b,t);return a(b,g),g};return d=l,(...b)=>d(uo(...b))},fo=[],f=e=>{const r=t=>t[e]||fo;return r.isThemeGetter=!0,r.themeKey=e,r},we=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ke=/^\((?:(\w[\w-]*):)?(.+)\)$/i,go=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xo=/\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$/,yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,wo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>go.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),T=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith("%")&&p(e.slice(0,-1)),P=e=>ho.test(e),ve=()=>!0,vo=e=>xo.test(e)&&!yo.test(e),ae=()=>!1,Co=e=>wo.test(e),zo=e=>ko.test(e),Ao=e=>!n(e)&&!s(e),So=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Lo=e=>R(e,Ie,ae),n=e=>we.test(e),B=e=>R(e,Te,vo),Ce=e=>R(e,_o,p),Io=e=>R(e,Me,ve),To=e=>R(e,Pe,ae),ze=e=>R(e,Se,ae),Po=e=>R(e,Le,zo),H=e=>R(e,Ne,Co),s=e=>ke.test(e),D=e=>O(e,Te),Mo=e=>O(e,Pe),Ae=e=>O(e,Se),No=e=>O(e,Ie),Eo=e=>O(e,Le),J=e=>O(e,Ne,!0),Go=e=>O(e,Me,!0),R=(e,r,t)=>{const o=we.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},O=(e,r,t=!1)=>{const o=ke.exec(e);return o?o[1]?r(o[1]):t:!1},Se=e=>e==="position"||e==="percentage",Le=e=>e==="image"||e==="url",Ie=e=>e==="length"||e==="size"||e==="bg-size",Te=e=>e==="length",_o=e=>e==="number",Pe=e=>e==="family-name",Me=e=>e==="number"||e==="weight",Ne=e=>e==="shadow",Ro=bo(()=>{const e=f("color"),r=f("font"),t=f("text"),o=f("font-weight"),a=f("tracking"),d=f("leading"),l=f("breakpoint"),u=f("container"),b=f("spacing"),m=f("radius"),g=f("shadow"),y=f("inset-shadow"),M=f("text-shadow"),L=f("drop-shadow"),j=f("blur"),h=f("perspective"),z=f("aspect"),N=f("ease"),A=f("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...V(),s,n],U=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],i=()=>[s,n,b],S=()=>[_,"full","auto",...i()],_e=()=>[T,"none","subgrid",s,n],Re=()=>["auto",{span:["full",T,s,n]},T,s,n],Y=()=>[T,"auto",s,n],Be=()=>["auto","min","max","fr",s,n],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...i()],F=()=>[_,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],le=()=>[u,_,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ce=()=>[_,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],c=()=>[e,s,n],Oe=()=>[...V(),Ae,ze,{position:[s,n]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",No,Lo,{size:[s,n]}],de=()=>[se,D,B],k=()=>["","none","full",m,s,n],v=()=>["",p,D,B],X=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],x=()=>[p,se,Ae,ze],We=()=>["","none",j,s,n],Z=()=>["none",p,s,n],Q=()=>["none",p,s,n],me=()=>[p,s,n],ee=()=>[_,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[ve],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[Ao],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",p],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_,n,s,z]}],container:["container"],"container-type":[{"@container":["","normal","size",s,n]}],"container-named":[So],columns:[{columns:[p,"auto",n,s,u]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:W()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[T,"auto",s,n]}],basis:[{basis:[_,"full","auto",u,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,_,"auto","initial","none",n]}],grow:[{grow:["",p,s,n]}],shrink:[{shrink:["",p,s,n]}],order:[{order:[T,"first","last","none",s,n]}],"grid-cols":[{"grid-cols":_e()}],"col-start-end":[{col:Re()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":_e()}],"row-start-end":[{row:Re()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Be()}],"auto-rows":[{"auto-rows":Be()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...F()]}],"min-w":[{"min-w":[u,"screen","none",...F()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",t,D,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Go,Io]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",se,n]}],"font-family":[{font:[Mo,To,r]}],"font-features":[{"font-features":[n]}],"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:[a,s,n]}],"line-clamp":[{"line-clamp":[p,"none",s,Ce]}],leading:[{leading:["none",d,...i()]}],"list-image":[{"list-image":["none",s,n]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,n]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",s,B]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",s,n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[T,s,n]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,n]}],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",s,n]}],"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:je()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T,s,n],radial:["",s,n],conic:["",T,s,n]},Eo,Po]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:v()}],"border-w-x":[{"border-x":v()}],"border-w-y":[{"border-y":v()}],"border-w-s":[{"border-s":v()}],"border-w-e":[{"border-e":v()}],"border-w-bs":[{"border-bs":v()}],"border-w-be":[{"border-be":v()}],"border-w-t":[{"border-t":v()}],"border-w-r":[{"border-r":v()}],"border-w-b":[{"border-b":v()}],"border-w-l":[{"border-l":v()}],"divide-x":[{"divide-x":v()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":v()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,s,n]}],"outline-w":[{outline:["",p,D,B]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","inner","none",g,J,H]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",y,J,H]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:v()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,B]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":v()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",M,J,H]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,s,n]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"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":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":x()}],"mask-image-linear-to-pos":[{"mask-linear-to":x()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":x()}],"mask-image-t-to-pos":[{"mask-t-to":x()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":x()}],"mask-image-r-to-pos":[{"mask-r-to":x()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":x()}],"mask-image-b-to-pos":[{"mask-b-to":x()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":x()}],"mask-image-l-to-pos":[{"mask-l-to":x()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":x()}],"mask-image-x-to-pos":[{"mask-x-to":x()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":x()}],"mask-image-y-to-pos":[{"mask-y-to":x()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[s,n]}],"mask-image-radial-from-pos":[{"mask-radial-from":x()}],"mask-image-radial-to-pos":[{"mask-radial-to":x()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":x()}],"mask-image-conic-to-pos":[{"mask-conic-to":x()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,n]}],filter:[{filter:["","none",s,n]}],blur:[{blur:We()}],brightness:[{brightness:[p,s,n]}],contrast:[{contrast:[p,s,n]}],"drop-shadow":[{"drop-shadow":["","none",L,J,H]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,s,n]}],"hue-rotate":[{"hue-rotate":[p,s,n]}],invert:[{invert:["",p,s,n]}],saturate:[{saturate:[p,s,n]}],sepia:[{sepia:["",p,s,n]}],"backdrop-filter":[{"backdrop-filter":["","none",s,n]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[p,s,n]}],"backdrop-contrast":[{"backdrop-contrast":[p,s,n]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,s,n]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,s,n]}],"backdrop-invert":[{"backdrop-invert":["",p,s,n]}],"backdrop-opacity":[{"backdrop-opacity":[p,s,n]}],"backdrop-saturate":[{"backdrop-saturate":[p,s,n]}],"backdrop-sepia":[{"backdrop-sepia":["",p,s,n]}],"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",s,n]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",s,n]}],ease:[{ease:["linear","initial",N,s,n]}],delay:[{delay:[p,s,n]}],animate:[{animate:["none",A,s,n]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,s,n]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[s,n,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[T,s,n]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"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",s,n]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"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-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":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",s,n]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,D,B,Ce]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","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-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Bo(...e){return Ro(De(e))}const Ee={"+1":{pattern:/^[2-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, cannot start with 0 or 1"},"+44":{pattern:/^\d{10}$/,minLength:10,maxLength:10,description:"10 digits"},"+61":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+971":{pattern:/^\d{8,9}$/,minLength:8,maxLength:9,description:"8-9 digits"},"+65":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+49":{pattern:/^\d{10,11}$/,minLength:10,maxLength:11,description:"10-11 digits"},"+91":{pattern:/^[6-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, must start with 6-9"},"+974":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+60":{pattern:/^\d{9,10}$/,minLength:9,maxLength:10,description:"9-10 digits"},"+27":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+64":{pattern:/^\d{8,10}$/,minLength:8,maxLength:10,description:"8-10 digits"},"+230":{pattern:/^\d{7,8}$/,minLength:7,maxLength:8,description:"7-8 digits"}},Ge={pattern:/^\d{6,15}$/,maxLength:15,description:"6-15 digits"},Oo=(e,r)=>{if(!e)return{isValid:!0,error:""};const t=Ee[r]||Ge;return t.pattern.test(e)?{isValid:!0,error:""}:{isValid:!1,error:`Please enter a valid phone number (${t.description})`}},jo=e=>(Ee[e]||Ge).maxLength,Fo=[{name:"United States",code:"+1",iso:"US"},{name:"United Kingdom",code:"+44",iso:"GB"},{name:"Australia",code:"+61",iso:"AU"},{name:"Canada",code:"+1",iso:"CA"},{name:"United Arab Emirates",code:"+971",iso:"AE"},{name:"Singapore",code:"+65",iso:"SG"},{name:"New Zealand",code:"+64",iso:"NZ"},{name:"Mauritius",code:"+230",iso:"MU"},{name:"Netherlands",code:"+31",iso:"NL"},{name:"Malaysia",code:"+60",iso:"MY"},{name:"Germany",code:"+49",iso:"DE"},{name:"South Africa",code:"+27",iso:"ZA"},{name:"Qatar",code:"+974",iso:"QA"},{name:"Ireland",code:"+353",iso:"IE"},{name:"Oman",code:"+968",iso:"OM"},{name:"Saudi Arabia",code:"+966",iso:"SA"},{name:"Hong Kong",code:"+852",iso:"HK"},{name:"France",code:"+33",iso:"FR"},{name:"Switzerland",code:"+41",iso:"CH"},{name:"Bahrain",code:"+973",iso:"BH"},{name:"Trinidad and Tobago",code:"+1-868",iso:"TT"},{name:"Kuwait",code:"+965",iso:"KW"},{name:"Belgium",code:"+32",iso:"BE"},{name:"Japan",code:"+81",iso:"JP"},{name:"Italy",code:"+39",iso:"IT"},{name:"Spain",code:"+34",iso:"ES"},{name:"Norway",code:"+47",iso:"NO"},{name:"Sweden",code:"+46",iso:"SE"},{name:"Portugal",code:"+351",iso:"PT"},{name:"Poland",code:"+48",iso:"PL"},{name:"Denmark",code:"+45",iso:"DK"},{name:"Nepal",code:"+977",iso:"NP"},{name:"Bangladesh",code:"+880",iso:"BD"},{name:"Kenya",code:"+254",iso:"KE"},{name:"Mexico",code:"+52",iso:"MX"},{name:"Czechia",code:"+420",iso:"CZ"},{name:"Indonesia",code:"+62",iso:"ID"},{name:"Taiwan",code:"+886",iso:"TW"},{name:"Fiji",code:"+679",iso:"FJ"},{name:"Guyana",code:"+592",iso:"GY"},{name:"Finland",code:"+358",iso:"FI"},{name:"Nigeria",code:"+234",iso:"NG"},{name:"Jamaica",code:"+1-876",iso:"JM"},{name:"Sri Lanka",code:"+94",iso:"LK"},{name:"Thailand",code:"+66",iso:"TH"},{name:"Hungary",code:"+36",iso:"HU"},{name:"Tanzania",code:"+255",iso:"TZ"},{name:"Sint Maarten",code:"+1-721",iso:"SX"},{name:"Philippines",code:"+63",iso:"PH"},{name:"Estonia",code:"+372",iso:"EE"},{name:"Ukraine",code:"+380",iso:"UA"},{name:"Austria",code:"+43",iso:"AT"},{name:"Réunion",code:"+262",iso:"RE"},{name:"India",code:"+91",iso:"IN"}],Vo=e=>{if(!e||e.length!==2)return"🏳️";const r=e.toUpperCase().split("").map(t=>127397+t.charCodeAt(0));return String.fromCodePoint(...r)};function Wo(e,r){const t=oe.createContext(null),o=({locale:d,children:l})=>{const b={locale:d,t:m=>e[d]?.[m]||(r?e[r]?.[m]:void 0)||""};return w.jsx(t.Provider,{value:b,children:l})};function a(){return oe.useContext(t)}return{I18nProvider:o,useI18n:a}}C.BottomSheet=$e,C.DEFAULT_COUNTRIES=Fo,C.cn=Bo,C.createI18n=Wo,C.getFlagEmoji=Vo,C.getMaxLengthForCountry=jo,C.validatePhoneByCountryCode=Oo,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(A,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],w):(A=typeof globalThis<"u"?globalThis:A||self,w(A.SrimandirCommon={},A.ReactJSXRuntime,A.React))})(this,(function(A,w,oe){"use strict";const G={overlay:"_overlay_15iql_3",sheet:"_sheet_15iql_14",handle:"_handle_15iql_66",closeBtn:"_closeBtn_15iql_75",closeBtnOutside:"_closeBtnOutside_15iql_100",header:"_header_15iql_116",body:"_body_15iql_25",footer:"_footer_15iql_128"},te=(...e)=>e.filter(Boolean).join(" "),Ue=()=>w.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:w.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),$e=({isOpen:e,onClose:r,children:t,header:o,footer:a,onScroll:d,showCloseButton:l=!0,closeButtonOutside:u=!1,showDragHandle:b=!1,closeOnBackdropClick:m=!0,closeOnEscape:g=!0,lockBodyScroll:h=!0,ariaLabel:N,className:I="",overlayClassName:j="","data-testid":k})=>(oe.useEffect(()=>{if(!e)return;const x=v=>{v.key==="Escape"&&r("escape")};g&&document.addEventListener("keydown",x);const S=document.body.style.overflow;return h&&(document.body.style.overflow="hidden"),()=>{g&&document.removeEventListener("keydown",x),h&&(document.body.style.overflow=S)}},[e,r,g,h]),e?w.jsx("div",{className:te(G.overlay,j),role:"presentation",onClick:x=>{m&&x.target===x.currentTarget&&r("backdrop")},children:w.jsxs("div",{className:te(G.sheet,I),role:"dialog","aria-modal":"true","aria-label":N,"data-testid":k,children:[b&&w.jsx("div",{className:G.handle,"aria-hidden":"true"}),l&&w.jsx("button",{type:"button",className:te(G.closeBtn,u&&G.closeBtnOutside),onClick:()=>r("close_button"),"aria-label":"Close",children:w.jsx(Ue,{})}),o&&w.jsx("div",{className:G.header,children:o}),w.jsx("div",{className:G.body,onScroll:d?x=>{const S=x.currentTarget;d({scrollTop:S.scrollTop,scrollHeight:S.scrollHeight,clientHeight:S.clientHeight})}:void 0,children:t}),a&&w.jsx("div",{className:G.footer,children:a})]})}):null);function pe(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=pe(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function De(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=pe(e))&&(o&&(o+=" "),o+=r);return o}const He=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},qe=(e,r)=>({classGroupId:e,validator:r}),ue=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),q="-",be=[],Ke="arbitrary..",Je=e=>{const r=Xe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ye(l);const u=l.split(q),b=u[0]===""&&u.length>1?1:0;return fe(u,b,r)},getConflictingClassGroupIds:(l,u)=>{if(u){const b=o[l],m=t[l];return b?m?He(m,b):b:m||be}return t[l]||be}}},fe=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const a=e[r],d=t.nextPart.get(a);if(d){const m=fe(e,r+1,d);if(m)return m}const l=t.validators;if(l===null)return;const u=r===0?e.join(q):e.slice(r).join(q),b=l.length;for(let m=0;m<b;m++){const g=l[m];if(g.validator(u))return g.classGroupId}},Ye=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?Ke+o:void 0})(),Xe=e=>{const{theme:r,classGroups:t}=e;return Ze(t,r)},Ze=(e,r)=>{const t=ue();for(const o in e){const a=e[o];re(a,t,o,r)}return t},re=(e,r,t,o)=>{const a=e.length;for(let d=0;d<a;d++){const l=e[d];Qe(l,r,t,o)}},Qe=(e,r,t,o)=>{if(typeof e=="string"){eo(e,r,t);return}if(typeof e=="function"){oo(e,r,t,o);return}to(e,r,t,o)},eo=(e,r,t)=>{const o=e===""?r:ge(r,e);o.classGroupId=t},oo=(e,r,t,o)=>{if(ro(e)){re(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(qe(t,e))},to=(e,r,t,o)=>{const a=Object.entries(e),d=a.length;for(let l=0;l<d;l++){const[u,b]=a[l];re(b,ge(r,u),t,o)}},ge=(e,r)=>{let t=e;const o=r.split(q),a=o.length;for(let d=0;d<a;d++){const l=o[d];let u=t.nextPart.get(l);u||(u=ue(),t.nextPart.set(l,u)),t=u}return t},ro=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const a=(d,l)=>{t[d]=l,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(d){let l=t[d];if(l!==void 0)return l;if((l=o[d])!==void 0)return a(d,l),l},set(d,l){d in t?t[d]=l:a(d,l)}}},ne="!",he=":",so=[],xe=(e,r,t,o,a)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:a}),ao=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=a=>{const d=[];let l=0,u=0,b=0,m;const g=a.length;for(let k=0;k<g;k++){const x=a[k];if(l===0&&u===0){if(x===he){d.push(a.slice(b,k)),b=k+1;continue}if(x==="/"){m=k;continue}}x==="["?l++:x==="]"?l--:x==="("?u++:x===")"&&u--}const h=d.length===0?a:a.slice(b);let N=h,I=!1;h.endsWith(ne)?(N=h.slice(0,-1),I=!0):h.startsWith(ne)&&(N=h.slice(1),I=!0);const j=m&&m>b?m-b:void 0;return xe(d,I,N,j)};if(r){const a=r+he,d=o;o=l=>l.startsWith(a)?d(l.slice(a.length)):xe(so,!1,l,void 0,!0)}if(t){const a=o;o=d=>t({className:d,parseClassName:a})}return o},io=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let a=[];for(let d=0;d<t.length;d++){const l=t[d],u=l[0]==="[",b=r.has(l);u||b?(a.length>0&&(a.sort(),o.push(...a),a=[]),o.push(l)):a.push(l)}return a.length>0&&(a.sort(),o.push(...a)),o}},lo=e=>({cache:no(e.cacheSize),parseClassName:ao(e),sortModifiers:io(e),postfixLookupClassGroupIds:co(e),...Je(e)}),co=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)r[t[o]]=!0;return r},mo=/\s+/,po=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:d,postfixLookupClassGroupIds:l}=r,u=[],b=e.trim().split(mo);let m="";for(let g=b.length-1;g>=0;g-=1){const h=b[g],{isExternal:N,modifiers:I,hasImportantModifier:j,baseClassName:k,maybePostfixModifierPosition:x}=t(h);if(N){m=h+(m.length>0?" "+m:m);continue}let S=!!x,v;if(S){const E=k.substring(0,x);v=o(E);const i=v&&l[v]?o(k):void 0;i&&i!==v&&(v=i,S=!1)}else v=o(k);if(!v){if(!S){m=h+(m.length>0?" "+m:m);continue}if(v=o(k),!v){m=h+(m.length>0?" "+m:m);continue}S=!1}const H=I.length===0?"":I.length===1?I[0]:d(I).join(":"),V=j?H+ne:H,W=V+v;if(u.indexOf(W)>-1)continue;u.push(W);const U=a(v,S);for(let E=0;E<U.length;++E){const i=U[E];u.push(V+i)}m=h+(m.length>0?" "+m:m)}return m},uo=(...e)=>{let r=0,t,o,a="";for(;r<e.length;)(t=e[r++])&&(o=ye(t))&&(a&&(a+=" "),a+=o);return a},ye=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ye(e[o]))&&(t&&(t+=" "),t+=r);return t},bo=(e,...r)=>{let t,o,a,d;const l=b=>{const m=r.reduce((g,h)=>h(g),e());return t=lo(m),o=t.cache.get,a=t.cache.set,d=u,u(b)},u=b=>{const m=o(b);if(m)return m;const g=po(b,t);return a(b,g),g};return d=l,(...b)=>d(uo(...b))},fo=[],f=e=>{const r=t=>t[e]||fo;return r.isThemeGetter=!0,r.themeKey=e,r},we=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ke=/^\((?:(\w[\w-]*):)?(.+)\)$/i,go=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xo=/\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$/,yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,wo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>go.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),P=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith("%")&&p(e.slice(0,-1)),M=e=>ho.test(e),ve=()=>!0,vo=e=>xo.test(e)&&!yo.test(e),ae=()=>!1,Co=e=>wo.test(e),zo=e=>ko.test(e),Ao=e=>!n(e)&&!s(e),So=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Lo=e=>R(e,Ie,ae),n=e=>we.test(e),B=e=>R(e,Te,vo),Ce=e=>R(e,_o,p),Io=e=>R(e,Me,ve),To=e=>R(e,Pe,ae),ze=e=>R(e,Se,ae),Po=e=>R(e,Le,zo),K=e=>R(e,Ne,Co),s=e=>ke.test(e),D=e=>O(e,Te),Mo=e=>O(e,Pe),Ae=e=>O(e,Se),No=e=>O(e,Ie),Eo=e=>O(e,Le),J=e=>O(e,Ne,!0),Go=e=>O(e,Me,!0),R=(e,r,t)=>{const o=we.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},O=(e,r,t=!1)=>{const o=ke.exec(e);return o?o[1]?r(o[1]):t:!1},Se=e=>e==="position"||e==="percentage",Le=e=>e==="image"||e==="url",Ie=e=>e==="length"||e==="size"||e==="bg-size",Te=e=>e==="length",_o=e=>e==="number",Pe=e=>e==="family-name",Me=e=>e==="number"||e==="weight",Ne=e=>e==="shadow",Ro=bo(()=>{const e=f("color"),r=f("font"),t=f("text"),o=f("font-weight"),a=f("tracking"),d=f("leading"),l=f("breakpoint"),u=f("container"),b=f("spacing"),m=f("radius"),g=f("shadow"),h=f("inset-shadow"),N=f("text-shadow"),I=f("drop-shadow"),j=f("blur"),k=f("perspective"),x=f("aspect"),S=f("ease"),v=f("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...V(),s,n],U=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],i=()=>[s,n,b],L=()=>[_,"full","auto",...i()],_e=()=>[P,"none","subgrid",s,n],Re=()=>["auto",{span:["full",P,s,n]},P,s,n],Y=()=>[P,"auto",s,n],Be=()=>["auto","min","max","fr",s,n],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...i()],F=()=>[_,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],le=()=>[u,_,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ce=()=>[_,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],c=()=>[e,s,n],Oe=()=>[...V(),Ae,ze,{position:[s,n]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",No,Lo,{size:[s,n]}],de=()=>[se,D,B],C=()=>["","none","full",m,s,n],z=()=>["",p,D,B],X=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[p,se,Ae,ze],We=()=>["","none",j,s,n],Z=()=>["none",p,s,n],Q=()=>["none",p,s,n],me=()=>[p,s,n],ee=()=>[_,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[ve],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[Ao],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",p],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_,n,s,x]}],container:["container"],"container-type":[{"@container":["","normal","size",s,n]}],"container-named":[So],columns:[{columns:[p,"auto",n,s,u]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:W()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[P,"auto",s,n]}],basis:[{basis:[_,"full","auto",u,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,_,"auto","initial","none",n]}],grow:[{grow:["",p,s,n]}],shrink:[{shrink:["",p,s,n]}],order:[{order:[P,"first","last","none",s,n]}],"grid-cols":[{"grid-cols":_e()}],"col-start-end":[{col:Re()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":_e()}],"row-start-end":[{row:Re()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Be()}],"auto-rows":[{"auto-rows":Be()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...F()]}],"min-w":[{"min-w":[u,"screen","none",...F()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",t,D,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Go,Io]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",se,n]}],"font-family":[{font:[Mo,To,r]}],"font-features":[{"font-features":[n]}],"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:[a,s,n]}],"line-clamp":[{"line-clamp":[p,"none",s,Ce]}],leading:[{leading:["none",d,...i()]}],"list-image":[{"list-image":["none",s,n]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,n]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",s,B]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",s,n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[P,s,n]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,n]}],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",s,n]}],"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:je()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P,s,n],radial:["",s,n],conic:["",P,s,n]},Eo,Po]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"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-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,s,n]}],"outline-w":[{outline:["",p,D,B]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","inner","none",g,J,K]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",h,J,K]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,B]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",N,J,K]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,s,n]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"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":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[s,n]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,n]}],filter:[{filter:["","none",s,n]}],blur:[{blur:We()}],brightness:[{brightness:[p,s,n]}],contrast:[{contrast:[p,s,n]}],"drop-shadow":[{"drop-shadow":["","none",I,J,K]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,s,n]}],"hue-rotate":[{"hue-rotate":[p,s,n]}],invert:[{invert:["",p,s,n]}],saturate:[{saturate:[p,s,n]}],sepia:[{sepia:["",p,s,n]}],"backdrop-filter":[{"backdrop-filter":["","none",s,n]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[p,s,n]}],"backdrop-contrast":[{"backdrop-contrast":[p,s,n]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,s,n]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,s,n]}],"backdrop-invert":[{"backdrop-invert":["",p,s,n]}],"backdrop-opacity":[{"backdrop-opacity":[p,s,n]}],"backdrop-saturate":[{"backdrop-saturate":[p,s,n]}],"backdrop-sepia":[{"backdrop-sepia":["",p,s,n]}],"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",s,n]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",s,n]}],ease:[{ease:["linear","initial",S,s,n]}],delay:[{delay:[p,s,n]}],animate:[{animate:["none",v,s,n]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,s,n]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[s,n,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[P,s,n]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"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",s,n]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"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-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":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",s,n]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,D,B,Ce]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","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-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Bo(...e){return Ro(De(e))}const Ee={"+1":{pattern:/^[2-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, cannot start with 0 or 1"},"+44":{pattern:/^\d{10}$/,minLength:10,maxLength:10,description:"10 digits"},"+61":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+971":{pattern:/^\d{8,9}$/,minLength:8,maxLength:9,description:"8-9 digits"},"+65":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+49":{pattern:/^\d{10,11}$/,minLength:10,maxLength:11,description:"10-11 digits"},"+91":{pattern:/^[6-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, must start with 6-9"},"+974":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+60":{pattern:/^\d{9,10}$/,minLength:9,maxLength:10,description:"9-10 digits"},"+27":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+64":{pattern:/^\d{8,10}$/,minLength:8,maxLength:10,description:"8-10 digits"},"+230":{pattern:/^\d{7,8}$/,minLength:7,maxLength:8,description:"7-8 digits"}},Ge={pattern:/^\d{6,15}$/,maxLength:15,description:"6-15 digits"},Oo=(e,r)=>{if(!e)return{isValid:!0,error:""};const t=Ee[r]||Ge;return t.pattern.test(e)?{isValid:!0,error:""}:{isValid:!1,error:`Please enter a valid phone number (${t.description})`}},jo=e=>(Ee[e]||Ge).maxLength,Fo=[{name:"United States",code:"+1",iso:"US"},{name:"United Kingdom",code:"+44",iso:"GB"},{name:"Australia",code:"+61",iso:"AU"},{name:"Canada",code:"+1",iso:"CA"},{name:"United Arab Emirates",code:"+971",iso:"AE"},{name:"Singapore",code:"+65",iso:"SG"},{name:"New Zealand",code:"+64",iso:"NZ"},{name:"Mauritius",code:"+230",iso:"MU"},{name:"Netherlands",code:"+31",iso:"NL"},{name:"Malaysia",code:"+60",iso:"MY"},{name:"Germany",code:"+49",iso:"DE"},{name:"South Africa",code:"+27",iso:"ZA"},{name:"Qatar",code:"+974",iso:"QA"},{name:"Ireland",code:"+353",iso:"IE"},{name:"Oman",code:"+968",iso:"OM"},{name:"Saudi Arabia",code:"+966",iso:"SA"},{name:"Hong Kong",code:"+852",iso:"HK"},{name:"France",code:"+33",iso:"FR"},{name:"Switzerland",code:"+41",iso:"CH"},{name:"Bahrain",code:"+973",iso:"BH"},{name:"Trinidad and Tobago",code:"+1-868",iso:"TT"},{name:"Kuwait",code:"+965",iso:"KW"},{name:"Belgium",code:"+32",iso:"BE"},{name:"Japan",code:"+81",iso:"JP"},{name:"Italy",code:"+39",iso:"IT"},{name:"Spain",code:"+34",iso:"ES"},{name:"Norway",code:"+47",iso:"NO"},{name:"Sweden",code:"+46",iso:"SE"},{name:"Portugal",code:"+351",iso:"PT"},{name:"Poland",code:"+48",iso:"PL"},{name:"Denmark",code:"+45",iso:"DK"},{name:"Nepal",code:"+977",iso:"NP"},{name:"Bangladesh",code:"+880",iso:"BD"},{name:"Kenya",code:"+254",iso:"KE"},{name:"Mexico",code:"+52",iso:"MX"},{name:"Czechia",code:"+420",iso:"CZ"},{name:"Indonesia",code:"+62",iso:"ID"},{name:"Taiwan",code:"+886",iso:"TW"},{name:"Fiji",code:"+679",iso:"FJ"},{name:"Guyana",code:"+592",iso:"GY"},{name:"Finland",code:"+358",iso:"FI"},{name:"Nigeria",code:"+234",iso:"NG"},{name:"Jamaica",code:"+1-876",iso:"JM"},{name:"Sri Lanka",code:"+94",iso:"LK"},{name:"Thailand",code:"+66",iso:"TH"},{name:"Hungary",code:"+36",iso:"HU"},{name:"Tanzania",code:"+255",iso:"TZ"},{name:"Sint Maarten",code:"+1-721",iso:"SX"},{name:"Philippines",code:"+63",iso:"PH"},{name:"Estonia",code:"+372",iso:"EE"},{name:"Ukraine",code:"+380",iso:"UA"},{name:"Austria",code:"+43",iso:"AT"},{name:"Réunion",code:"+262",iso:"RE"},{name:"India",code:"+91",iso:"IN"}],Vo=e=>{if(!e||e.length!==2)return"🏳️";const r=e.toUpperCase().split("").map(t=>127397+t.charCodeAt(0));return String.fromCodePoint(...r)};function Wo(e,r){const t=oe.createContext(null),o=({locale:d,children:l})=>{const b={locale:d,t:m=>e[d]?.[m]||(r?e[r]?.[m]:void 0)||""};return w.jsx(t.Provider,{value:b,children:l})};function a(){return oe.useContext(t)}return{I18nProvider:o,useI18n:a}}A.BottomSheet=$e,A.DEFAULT_COUNTRIES=Fo,A.cn=Bo,A.createI18n=Wo,A.getFlagEmoji=Vo,A.getMaxLengthForCountry=jo,A.validatePhoneByCountryCode=Oo,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=common.umd.cjs.map
|