@bonfida/sns-widget
Version:
SNS Widget for 3rd-party apps for quick domain search and register
2 lines (1 loc) • 22.1 kB
JavaScript
"use client";"use strict";const h=require("react/jsx-runtime"),T=require("react"),X=e=>{const r=ee(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:s=>{const n=s.split("-");return n[0]===""&&n.length!==1&&n.shift(),H(n,r)||Y(s)},getConflictingClassGroupIds:(s,n)=>{const a=o[s]||[];return n&&t[s]?[...a,...t[s]]:a}}},H=(e,r)=>{var a;if(e.length===0)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),s=t?H(e.slice(1),t):void 0;if(s)return s;if(r.validators.length===0)return;const n=e.join("-");return(a=r.validators.find(({validator:i})=>i(n)))==null?void 0:a.classGroupId},D=/^\[(.+)\]$/,Y=e=>{if(D.test(e)){const r=D.exec(e)[1],o=r==null?void 0:r.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},ee=e=>{const{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return oe(Object.entries(e.classGroups),o).forEach(([s,n])=>{_(n,t,s,r)}),t},_=(e,r,o,t)=>{e.forEach(s=>{if(typeof s!="string"){if(typeof s=="function")return re(s)?void _(s(t),r,o,t):void r.validators.push({validator:s,classGroupId:o});Object.entries(s).forEach(([n,a])=>{_(a,A(r,n),o,t)})}else(s===""?r:A(r,s)).classGroupId=o})},A=(e,r)=>{let o=e;return r.split("-").forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t)}),o},re=e=>e.isThemeGetter,oe=(e,r)=>r?e.map(([o,t])=>[o,t.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,a])=>[r+n,a])):s)]):e,te=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const s=(n,a)=>{o.set(n,a),r++,r>e&&(r=0,t=o,o=new Map)};return{get(n){let a=o.get(n);return a!==void 0?a:(a=t.get(n))!==void 0?(s(n,a),a):void 0},set(n,a){o.has(n)?o.set(n,a):s(n,a)}}},ne=e=>{const{separator:r,experimentalParseClassName:o}=e,t=r.length===1,s=r[0],n=r.length,a=i=>{const y=[];let b,v=0,w=0;for(let m=0;m<i.length;m++){let u=i[m];if(v===0){if(u===s&&(t||i.slice(m,m+n)===r)){y.push(i.slice(w,m)),w=m+n;continue}if(u==="/"){b=m;continue}}u==="["?v++:u==="]"&&v--}const k=y.length===0?i:i.substring(w),z=k.startsWith("!");return{modifiers:y,hasImportantModifier:z,baseClassName:z?k.substring(1):k,maybePostfixModifierPosition:b&&b>w?b-w:void 0}};return o?i=>o({className:i,parseClassName:a}):a},se=e=>{if(e.length<=1)return e;const r=[];let o=[];return e.forEach(t=>{t[0]==="["?(r.push(...o.sort(),t),o=[]):o.push(t)}),r.push(...o.sort()),r},le=/\s+/;function ae(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=J(e))&&(t&&(t+=" "),t+=r);return t}const J=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=J(e[t]))&&(o&&(o+=" "),o+=r);return o};function ie(e,...r){let o,t,s,n=function(i){const y=r.reduce((b,v)=>v(b),e());return o=(b=>({cache:te(b.cacheSize),parseClassName:ne(b),...X(b)}))(y),t=o.cache.get,s=o.cache.set,n=a,a(i)};function a(i){const y=t(i);if(y)return y;const b=((v,w)=>{const{parseClassName:k,getClassGroupId:z,getConflictingClassGroupIds:m}=w,u=[],x=v.trim().split(le);let p="";for(let g=x.length-1;g>=0;g-=1){const G=x[g],{modifiers:E,hasImportantModifier:R,baseClassName:W,maybePostfixModifierPosition:O}=k(G);let P=!!O,j=z(P?W.substring(0,O):W);if(!j){if(!P){p=G+(p.length>0?" "+p:p);continue}if(j=z(W),!j){p=G+(p.length>0?" "+p:p);continue}P=!1}const d=se(E).join(":"),V=R?d+"!":d,I=V+j;if(u.includes(I))continue;u.push(I);const M=m(j,P);for(let f=0;f<M.length;++f){const U=M[f];u.push(V+U)}p=G+(p.length>0?" "+p:p)}return p})(i,o);return s(i,b),b}return function(){return n(ae.apply(null,arguments))}}const c=e=>{const r=o=>o[e]||[];return r.isThemeGetter=!0,r},K=/^\[(?:([a-z-]+):)?(.+)\]$/i,de=/^\d+\/\d+$/,ce=new Set(["px","full","screen"]),pe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ue=/\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$/,be=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,me=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>L(e)||ce.has(e)||de.test(e),N=e=>$(e,"length",ze),L=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>$(e,"number",L),q=e=>!!e&&Number.isInteger(Number(e)),fe=e=>e.endsWith("%")&&L(e.slice(0,-1)),l=e=>K.test(e),S=e=>pe.test(e),he=new Set(["length","size","percentage"]),xe=e=>$(e,he,Q),ye=e=>$(e,"position",Q),ve=new Set(["image","url"]),we=e=>$(e,ve,Ce),ke=e=>$(e,"",je),B=()=>!0,$=(e,r,o)=>{const t=K.exec(e);return!!t&&(t[1]?typeof r=="string"?t[1]===r:r.has(t[1]):o(t[2]))},ze=e=>ue.test(e)&&!be.test(e),Q=()=>!1,je=e=>me.test(e),Ce=e=>ge.test(e),F=ie(()=>{const e=c("colors"),r=c("spacing"),o=c("blur"),t=c("brightness"),s=c("borderColor"),n=c("borderRadius"),a=c("borderSpacing"),i=c("borderWidth"),y=c("contrast"),b=c("grayscale"),v=c("hueRotate"),w=c("invert"),k=c("gap"),z=c("gradientColorStops"),m=c("gradientColorStopPositions"),u=c("inset"),x=c("margin"),p=c("opacity"),g=c("padding"),G=c("saturate"),E=c("scale"),R=c("sepia"),W=c("skew"),O=c("space"),P=c("translate"),j=()=>["auto",l,r],d=()=>[l,r],V=()=>["",C,N],I=()=>["auto",L,l],M=()=>["","0",l],f=()=>[L,l];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[C,N],blur:["none","",S,l],brightness:f(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:d(),borderWidth:V(),contrast:f(),grayscale:M(),hueRotate:f(),invert:M(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[fe,N],inset:j(),margin:j(),opacity:f(),padding:d(),saturate:f(),scale:f(),sepia:M(),skew:f(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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"],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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",l]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",q,l]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",q,l]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",q,l]},l]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[q,l]},l]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",S,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[B]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",L,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,N]}],"underline-offset":[{"underline-offset":["auto",C,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ye]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},we]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[C,l]}],"outline-w":[{outline:[C,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[C,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,ke]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[w]}],saturate:[{saturate:[G]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[q,l]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,N,Z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}}),Me=e=>h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 64",...e,children:[h.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",d:"m28 4 .015 13.1M52.46 46.01l-11.137-6.555M4.099 46.01l11.137-6.555"}),h.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M28.009 32.01 15 24.49l13.009-7.518L41 24.52l-12.991 7.49Z"}),h.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2",d:"m28.02 46.969-13.003-7.463L15 24.49l13.02 7.52V46.97Z"}),h.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2",d:"m28 46.969 13.003-7.43V24.521L28 32.01v14.958Z"}),h.jsx("path",{stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"3",d:"M52 46.01V18.032L28 4.042 4 18.032V46.01L28 60l24-13.99Z"}),h.jsx("path",{stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"3",d:"M4.04 18.056 28 32.047l24.04-13.99"}),h.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"3",d:"M28 32.046V60"})]}),Ne=T.lazy(()=>Promise.resolve().then(()=>require("./widget-CZvKowqA.cjs")));exports.EntryPoint=({rootWrapperClassNames:e,rootWrapperStyles:r,isDark:o,...t})=>{const[s,n]=T.useState(!1);return h.jsxs("div",{className:F("sns-widget-root sns-bw",e,o&&"dark"),style:r,children:[h.jsx("button",{onClick:()=>n(!s),className:"flex size-[50px] items-center justify-center overflow-hidden rounded-full bg-background-primary p-2 text-text-primary shadow-xl dark:border dark:border-interactive-border",type:"button","aria-label":s?"Close SNS widget":"Open SNS widget","aria-haspopup":"true",tabIndex:0,children:h.jsx(Me,{className:"h-full w-full"})}),s&&h.jsx(T.Suspense,{children:h.jsx(Ne,{...t})})]})},exports.twMerge=F;