boottent-design 0.1.185 → 0.1.187

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),Te=require("./index-z9hRvvSX.cjs"),y=require("./index-BydYbLSq.cjs"),T=require("./index-BoeM4gLz.cjs"),O=require("react"),ie=require("./index-BlJPH0fR.cjs"),yu=require("./index-DKCqkplO.cjs"),bu=require("./use-metadata-CZiZDN9j.cjs"),yn=require("./toast-form-D-mN24Yl.cjs");function wu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=wu(O),xu=(e,t)=>e.length===0?f.jsx("span",{children:t}):e.length===1?f.jsx("span",{children:e[0].label}):f.jsxs("span",{children:[e[0].label," ","외"," ",e.length-1,"개"]}),Su=({children:e})=>f.jsx("div",{className:"purple-wrapper py-2",children:e}),En=({children:e})=>f.jsx("div",{className:"h1-wrapper py-2",children:e}),Cn=({children:e})=>f.jsx("div",{className:"h2-wrapper py-2",children:e}),Tn=({children:e})=>f.jsx("div",{className:"h3-wrapper py-2",children:e}),_u=({children:e})=>f.jsx(O.Fragment,{children:e}),Be=()=>!0,Eu=e=>{var t,n;return e.type==="paragraph"&&((n=(t=e.paragraph)==null?void 0:t.rich_text)==null?void 0:n.every(i=>i.annotations.color==="purple"))},si={default:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}},curriculum:{heading_1:{priority:4,condition:Be,wrapper:En},heading_2:{priority:3,condition:Be,wrapper:Cn},paragraph:{priority:2,condition:Eu,wrapper:Su,className:"text-main-600 text-lg md:text-xl font-medium"},heading_3:{priority:1,condition:Be,wrapper:Tn}},article:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}},event:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}}},Cu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-2 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"ml-1 text-base md:text-lg text-grey-800",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Tu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-blue-800 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-blue-700 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-4 text-sm text-grey-800 md:text-base lg:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-blue-500 pl-4 text-sm italic text-grey-600 md:text-base",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-sm text-grey-800 md:text-base",code:"mb-4 rounded-md bg-grey-800 p-4 font-mono text-sm text-white",image:"w-full rounded-lg object-cover",divider:"my-6 border-t border-border",table:"w-full border-collapse border border-blue-200",tableRow:"border-b border-blue-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Ru={container:"flex flex-col w-full",heading1:"mb-4 text-2xl font-bold text-grey-900 md:text-3xl lg:text-4xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-2 text-base leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-main-50 p-4 text-grey-600",list:"pl-5 space-y-1",listItem:"ml-1 text-base md:text-lg",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden mb-2",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Nu={container:"flex flex-col gap-0",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-medium text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-4 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-base md:text-lg text-grey-700 marker:text-main-600",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden w-full",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},br=e=>{switch(e){case"curriculum":return Tu;case"article":return Ru;case"event":return Nu;default:return Cu}},Mu={default:"",gray:"text-grey-500",brown:"text-yellow-900",orange:"text-orange-500",yellow:"text-yellow-500",green:"text-green-500",blue:"text-blue-500",purple:"text-purple-500",pink:"text-pink-500",red:"text-red-500"},ms={default:"",gray:"bg-grey-100",brown:"bg-yellow-100",orange:"bg-orange-100",yellow:"bg-yellow-100",green:"bg-green-100",blue:"bg-blue-100",purple:"bg-purple-100",pink:"bg-pink-100",red:"bg-red-100"},Pu=(e,t="default")=>{const n={id:"root",type:"root",children:[],parent:{},has_children:!0},i={root:n};e.forEach(a=>{a.children=[],i[a.id]=a});const r={};e.forEach(a=>{var c;const l=(c=a.parent)==null?void 0:c.block_id;l&&(r[l]||(r[l]=[]),r[l].push(a))});const s=new Set,o=[{block:n,priority:0}];return e.forEach(a=>{var p;if(s.has(a.id))return;const l=Jo(a,t),c=(p=a.parent)==null?void 0:p.block_id,u=c?i[c]:null;if(l>0){for(;o.length>1&&o[o.length-1].priority<=l;)o.pop();const g={...a,children:[]};o[o.length-1].block.children.push(g),o.push({block:g,priority:l}),s.add(a.id)}else if(c&&u)u.children.push(a),s.add(a.id);else{const g={...a,children:[]};o[o.length-1].block.children.push(g),s.add(a.id);const d=r[a.id];d&&d.length>0&&(g.children=d,d.forEach(h=>s.add(h.id)))}}),n.children||[]},Qo=["bulleted_list_item","numbered_list_item"],Jo=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return n!=null&&n.condition(e)?n.priority:0},Au=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return n!=null&&n.condition(e)?n.wrapper:_u},ea=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return!!(n!=null&&n.priority&&n.condition(e))};function wr(e){const t=[];let n=[],i=null;const r=()=>{!i||n.length===0||(i==="block"?n.forEach(s=>t.push({type:"block",block:s})):i==="bulleted_list"?t.push({type:"bulleted_list",blocks:n}):i==="numbered_list"&&t.push({type:"numbered_list",blocks:n}),n=[],i=null)};for(const s of e){const o=s.type==="bulleted_list_item",a=s.type==="numbered_list_item",l=o?"bulleted_list":a?"numbered_list":"block";i===l?n.push(s):(r(),i=l,n=[s])}return r(),t}const Ou=e=>e.includes("youtu.be")?"https://www.youtube.com/embed/"+e.split("/").pop():e.includes("youtube.com/watch")?"https://www.youtube.com/embed/"+e.split("v=")[1].split("&")[0]:e;function Du(e,t,n){const[i,r]=y.normalizeDates(n==null?void 0:n.in,e,t),s=vs(i,r),o=Math.abs(y.differenceInCalendarDays(i,r));i.setDate(i.getDate()-s*o);const a=+(vs(i,r)===-s),l=s*(o-a);return l===0?0:l}function vs(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Iu(e,t){const n=()=>y.constructFrom(t==null?void 0:t.in,NaN),r=ku(e);let s;if(r.date){const c=Vu(r.date,2);s=Bu(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let a=0,l;if(r.time&&(a=$u(r.time),isNaN(a)))return n();if(r.timezone){if(l=Uu(r.timezone),isNaN(l))return n()}else{const c=new Date(o+a),u=y.toDate(0,t==null?void 0:t.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return y.toDate(o+a+l,t==null?void 0:t.in)}const Rn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fu=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lu=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ju=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ku(e){const t={},n=e.split(Rn.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],Rn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Rn.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const r=Rn.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function Vu(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:e.slice((i[1]||i[2]).length)}}function Bu(e,t){if(t===null)return new Date(NaN);const n=e.match(Fu);if(!n)return new Date(NaN);const i=!!n[4],r=Qt(n[1]),s=Qt(n[2])-1,o=Qt(n[3]),a=Qt(n[4]),l=Qt(n[5])-1;if(i)return Ku(t,a,l)?Gu(t,a,l):new Date(NaN);{const c=new Date(0);return!Hu(t,s,o)||!Wu(t,r)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(r,o)),c)}}function Qt(e){return e?parseInt(e):1}function $u(e){const t=e.match(Lu);if(!t)return NaN;const n=mi(t[1]),i=mi(t[2]),r=mi(t[3]);return qu(n,i,r)?n*y.millisecondsInHour+i*y.millisecondsInMinute+r*1e3:NaN}function mi(e){return e&&parseFloat(e.replace(",","."))||0}function Uu(e){if(e==="Z")return 0;const t=e.match(ju);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return Yu(i,r)?n*(i*y.millisecondsInHour+r*y.millisecondsInMinute):NaN}function Gu(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const r=i.getUTCDay()||7,s=(t-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+s),i}const zu=[31,null,31,30,31,30,31,31,30,31,30,31];function ta(e){return e%400===0||e%4===0&&e%100!==0}function Hu(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zu[t]||(ta(e)?29:28))}function Wu(e,t){return t>=1&&t<=(ta(e)?366:365)}function Ku(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function qu(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Yu(e,t){return t>=0&&t<=59}const Hn=({src:e,alt:t,object:n="cover",lazy:i=!0,size:r="auto",className:s,...o})=>{const a={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},l={full:"w-full",fit:"w-fit",auto:"w-auto"};let c="",u={};return typeof r=="string"?c=l[r]:typeof r=="number"&&(u={width:`${r}px`}),f.jsx("img",{src:e,alt:t?`${t} 이미지`:"이미지",loading:i?"lazy":"eager",className:T.cn(a[n],c,s),style:u,...o})};function Xu({adProduct:e,logo:t,title:n,batchName:i="",adTitle:r,startDate:s,tuition:o,nbCardRequired:a,isLoading:l=!1,regEndDate:c,className:u}){if(l)return f.jsx(ia,{className:u});const p=`${Zu(s)} · ${Qu(o,a)}`;return f.jsx(na,{logo:t,title:`${n} ${i}`,adTitle:r,footerText:p,regEndDate:c,className:u,adProduct:e})}function na({adProduct:e,logo:t,title:n,adTitle:i,footerText:r,regEndDate:s,className:o}){return f.jsxs(y.FlexBox.Col,{className:T.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",o),children:[f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},children:e===Te.adProducts.dDay.value&&s?ed(s):Te.adProducts.event.value.toUpperCase()}),f.jsx(Hn,{src:t,alt:`${n} 로고`,className:"h-4 object-contain"}),f.jsxs(y.FlexBox.Col,{className:"w-full gap-2",children:[f.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:n,children:n}),f.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:i}),f.jsx(y.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:r})]})]})}function ia({className:e}){return f.jsxs(ie.Skeleton,{type:"background",className:T.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",e),children:[f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},className:T.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),f.jsx(ie.Skeleton,{className:"h-4 w-1/2"}),f.jsxs(y.FlexBox.Col,{className:"gap-2",children:[f.jsx(y.Box,{className:"h-10 w-full",children:f.jsx(ie.Skeleton,{className:"h-5 w-4/5"})}),f.jsx(ie.Skeleton,{className:"h-14 w-full"})]}),f.jsx(ie.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const Zu=e=>{if(!e)return"";const n=e.split(" ")[0].split("-"),i=Number(n[1]),r=`${i}/${Number(n.slice(2).join("."))}`;switch(n[2]){case"98":return`${i}월중 개강`;case"99":return`${i}월중(예상) 개강`;default:return`${r} 개강`}},Qu=(e,t)=>{const n=t?"(내배카💳)":"";return e===0||e===void 0?`무료 ${n}`:`유료 ${n}`},Ju=e=>{const n=e.split(" ")[0].split("-"),i=Number(n[0]),r=Number(n[1]);let s=n[2];const o=new Date(i,r,0).getDate();return(isNaN(Number(s))||Number(s)>o)&&(s=o.toString()),`${i}-${String(r).padStart(2,"0")}-${String(s).padStart(2,"0")}`},ed=e=>{const t=Du(Iu(Ju(e)),new Date);return t<=0?"마감임박":`D-${t}`},td={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var D={},Ui={exports:{}};(function(e,t){(function(n,i){var r="1.0.39",s="",o="?",a="function",l="undefined",c="object",u="string",p="major",g="model",d="name",h="type",m="vendor",v="version",b="architecture",x="console",w="mobile",S="tablet",_="smarttv",C="wearable",k="embedded",F=500,Y="Amazon",Z="Apple",le="ASUS",fe="BlackBerry",pe="Browser",ve="Chrome",de="Edge",we="Firefox",Q="Google",se="Huawei",ge="LG",ce="Microsoft",Ve="Motorola",Oe="Opera",E="Samsung",A="Sharp",H="Sony",q="Xiaomi",J="Zebra",Ae="Facebook",he="Chromium OS",xe="Mac OS",Se=" Browser",Fe=function(V,G){var j={};for(var X in V)G[X]&&G[X].length%2===0?j[X]=G[X].concat(V[X]):j[X]=V[X];return j},nt=function(V){for(var G={},j=0;j<V.length;j++)G[V[j].toUpperCase()]=V[j];return G},Ct=function(V,G){return typeof V===u?He(G).indexOf(He(V))!==-1:!1},He=function(V){return V.toLowerCase()},It=function(V){return typeof V===u?V.replace(/[^\d\.]/g,s).split(".")[0]:i},We=function(V,G){if(typeof V===u)return V=V.replace(/^\s\s*/,s),typeof G===l?V:V.substring(0,F)},Ke=function(V,G){for(var j=0,X,M,I,P,R,ee;j<G.length&&!R;){var Ye=G[j],Lt=G[j+1];for(X=M=0;X<Ye.length&&!R&&Ye[X];)if(R=Ye[X++].exec(V),R)for(I=0;I<Lt.length;I++)ee=R[++M],P=Lt[I],typeof P===c&&P.length>0?P.length===2?typeof P[1]==a?this[P[0]]=P[1].call(this,ee):this[P[0]]=P[1]:P.length===3?typeof P[1]===a&&!(P[1].exec&&P[1].test)?this[P[0]]=ee?P[1].call(this,ee,P[2]):i:this[P[0]]=ee?ee.replace(P[1],P[2]):i:P.length===4&&(this[P[0]]=ee?P[3].call(this,ee.replace(P[1],P[2])):i):this[P]=ee||i;j+=2}},De=function(V,G){for(var j in G)if(typeof G[j]===c&&G[j].length>0){for(var X=0;X<G[j].length;X++)if(Ct(G[j][X],V))return j===o?i:j}else if(Ct(G[j],V))return j===o?i:j;return G.hasOwnProperty("*")?G["*"]:V},Ft={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},it={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,v],[/opios[\/ ]+([\w\.]+)/i],[v,[d,Oe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[d,Oe+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[d,Oe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[d,"UC"+pe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[d,"Smart Lenovo "+pe]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+pe],v],[/\bfocus\/([\w\.]+)/i],[v,[d,we+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[d,Oe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[d,Oe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[d,"MIUI "+pe]],[/fxios\/([-\w\.]+)/i],[v,[d,we]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360"+Se]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+Se],v],[/samsungbrowser\/([\w\.]+)/i],[v,[d,E+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,Ae],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[d,ve+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,ve+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[d,"Android "+pe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[v,De,Ft]],[/(webkit|khtml)\/([\w\.]+)/i],[d,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],v],[/(wolvic)\/([\w\.]+)/i],[d,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[d,we+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,He]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,s,He]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,He]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[m,E],[h,S]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[g,[m,E],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[m,Z],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[m,Z],[h,S]],[/(macintosh);/i],[g,[m,Z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[m,A],[h,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[g,[m,se],[h,S]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[m,se],[h,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[g,/_/g," "],[m,q],[h,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[g,/_/g," "],[m,q],[h,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[m,"OPPO"],[h,w]],[/\b(opd2\d{3}a?) bui/i],[g,[m,"OPPO"],[h,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[m,"Vivo"],[h,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[m,"Realme"],[h,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[m,Ve],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[m,Ve],[h,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[m,ge],[h,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[m,ge],[h,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[g,[m,"Lenovo"],[h,S]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[g,/_/g," "],[m,"Nokia"],[h,w]],[/(pixel c)\b/i],[g,[m,Q],[h,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[m,Q],[h,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[m,H],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[m,H],[h,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[m,"OnePlus"],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[m,Y],[h,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[m,Y],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[g,m,[h,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[m,fe],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[m,le],[h,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[m,le],[h,w]],[/(nexus 9)/i],[g,[m,"HTC"],[h,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[g,/_/g," "],[h,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[g,[m,"TCL"],[h,S]],[/(itel) ((\w+))/i],[[m,He],g,[h,De,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[m,"Acer"],[h,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[m,"Meizu"],[h,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[m,"Ulefone"],[h,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[g,[m,"Nothing"],[h,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,g,[h,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,g,[h,S]],[/(surface duo)/i],[g,[m,ce],[h,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[m,"Fairphone"],[h,w]],[/(u304aa)/i],[g,[m,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[g,[m,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[g,[m,"RCA"],[h,S]],[/\b(venue[\d ]{2,7}) b/i],[g,[m,"Dell"],[h,S]],[/\b(q(?:mv|ta)\w+) b/i],[g,[m,"Verizon"],[h,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[m,"Barnes & Noble"],[h,S]],[/\b(tm\d{3}\w+) b/i],[g,[m,"NuVision"],[h,S]],[/\b(k88) b/i],[g,[m,"ZTE"],[h,S]],[/\b(nx\d{3}j) b/i],[g,[m,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[g,[m,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[g,[m,"Swiss"],[h,S]],[/\b((zeki)?tb.*\b) b/i],[g,[m,"Zeki"],[h,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],g,[h,S]],[/\b(ns-?\w{0,9}) b/i],[g,[m,"Insignia"],[h,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[m,"NextBook"],[h,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],g,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],g,[h,w]],[/\b(ph-1) /i],[g,[m,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[m,"Envizen"],[h,S]],[/\b(trio[-\w\. ]+) b/i],[g,[m,"MachSpeed"],[h,S]],[/\btu_(1491) b/i],[g,[m,"Rotor"],[h,S]],[/(shield[\w ]+) b/i],[g,[m,"Nvidia"],[h,S]],[/(sprint) (\w+)/i],[m,g,[h,w]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[m,ce],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[m,J],[h,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[m,J],[h,w]],[/smart-tv.+(samsung)/i],[m,[h,_]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[m,E],[h,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,ge],[h,_]],[/(apple) ?tv/i],[m,[g,Z+" TV"],[h,_]],[/crkey/i],[[g,ve+"cast"],[m,Q],[h,_]],[/droid.+aft(\w+)( bui|\))/i],[g,[m,Y],[h,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[m,A],[h,_]],[/(bravia[\w ]+)( bui|\))/i],[g,[m,H],[h,_]],[/(mitv-\w{5}) bui/i],[g,[m,q],[h,_]],[/Hbbtv.*(technisat) (.*);/i],[m,g,[h,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,We],[g,We],[h,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,g,[h,x]],[/droid.+; (shield) bui/i],[g,[m,"Nvidia"],[h,x]],[/(playstation [345portablevi]+)/i],[g,[m,H],[h,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[m,ce],[h,x]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[g,[m,E],[h,C]],[/((pebble))app/i],[m,g,[h,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[m,Z],[h,C]],[/droid.+; (glass) \d/i],[g,[m,Q],[h,C]],[/droid.+; (wt63?0{2,3})\)/i],[g,[m,J],[h,C]],[/(quest( \d| pro)?)/i],[g,[m,Ae],[h,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,k]],[/(aeobc)\b/i],[g,[m,Y],[h,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[g,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[h,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/(android[-\w\. ]{0,9});.+buil/i],[g,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[d,de+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[v,De,it]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,De,it],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,xe],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,v],[/\(bb(10);/i],[v,[d,fe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[d,we+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[d,ve+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,he],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,v],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,v]]},N=function(V,G){if(typeof V===c&&(G=V,V=i),!(this instanceof N))return new N(V,G).getResult();var j=typeof n!==l&&n.navigator?n.navigator:i,X=V||(j&&j.userAgent?j.userAgent:s),M=j&&j.userAgentData?j.userAgentData:i,I=G?Fe(W,G):W,P=j&&j.userAgent==X;return this.getBrowser=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.browser),R[p]=It(R[v]),P&&j&&j.brave&&typeof j.brave.isBrave==a&&(R[d]="Brave"),R},this.getCPU=function(){var R={};return R[b]=i,Ke.call(R,X,I.cpu),R},this.getDevice=function(){var R={};return R[m]=i,R[g]=i,R[h]=i,Ke.call(R,X,I.device),P&&!R[h]&&M&&M.mobile&&(R[h]=w),P&&R[g]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(R[g]="iPad",R[h]=S),R},this.getEngine=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.engine),R},this.getOS=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.os),P&&!R[d]&&M&&M.platform&&M.platform!="Unknown"&&(R[d]=M.platform.replace(/chrome os/i,he).replace(/macos/i,xe)),R},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return X},this.setUA=function(R){return X=typeof R===u&&R.length>F?We(R,F):R,this},this.setUA(X),this};N.VERSION=r,N.BROWSER=nt([d,v,p]),N.CPU=nt([b]),N.DEVICE=nt([g,m,h,x,w,_,S,C,k]),N.ENGINE=N.OS=nt([d,v]),e.exports&&(t=e.exports=N),t.UAParser=N;var L=typeof n!==l&&(n.jQuery||n.Zepto);if(L&&!L.ua){var K=new N;L.ua=K.getResult(),L.ua.get=function(){return K.getUA()},L.ua.set=function(V){K.setUA(V);var G=K.getResult();for(var j in G)L.ua[j]=G[j]}}})(typeof window=="object"?window:y.commonjsGlobal)})(Ui,Ui.exports);var nd=Ui.exports;Object.defineProperty(D,"__esModule",{value:!0});function id(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Ne=O,re=id(Ne),ra=nd,wt=new ra,Me=wt.getBrowser(),rd=wt.getCPU(),ke=wt.getDevice(),xr=wt.getEngine(),xt=wt.getOS(),bn=wt.getUA(),sa=function(t){return wt.setUA(t)},wn=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new ra(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(r){return n.setUA(r)}}},oa=Object.freeze({ClientUAInstance:wt,browser:Me,cpu:rd,device:ke,engine:xr,os:xt,ua:bn,setUa:sa,parseUserAgent:wn});function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(i){cd(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sn=function(t){return typeof t}:sn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function od(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ad(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ld(e,t,n){return t&&ad(e.prototype,t),e}function cd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(){return Gi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gi.apply(this,arguments)}function ud(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hi(e,t)}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zi(e)}function Hi(e,t){return Hi=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},Hi(e,t)}function dd(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,s;for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function ze(e,t){if(e==null)return{};var n=dd(e,t),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)i=s[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Vn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gd(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vn(e)}function fd(e,t){return pd(e)||hd(e,t)||md(e,t)||vd()}function pd(e){if(Array.isArray(e))return e}function hd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,s=!1,o,a;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));r=!0);}catch(l){s=!0,a=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(s)throw a}}return i}}function md(e,t){if(e){if(typeof e=="string")return bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bs(e,t)}}function bs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function vd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),Te=require("./index-z9hRvvSX.cjs"),y=require("./index-BydYbLSq.cjs"),T=require("./index-BoeM4gLz.cjs"),O=require("react"),ie=require("./index-BlJPH0fR.cjs"),yu=require("./index-DKCqkplO.cjs"),bu=require("./use-metadata-CZiZDN9j.cjs"),yn=require("./toast-form-BIjrgH73.cjs");function wu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=wu(O),xu=(e,t)=>e.length===0?f.jsx("span",{children:t}):e.length===1?f.jsx("span",{children:e[0].label}):f.jsxs("span",{children:[e[0].label," ","외"," ",e.length-1,"개"]}),Su=({children:e})=>f.jsx("div",{className:"purple-wrapper py-2",children:e}),En=({children:e})=>f.jsx("div",{className:"h1-wrapper py-2",children:e}),Cn=({children:e})=>f.jsx("div",{className:"h2-wrapper py-2",children:e}),Tn=({children:e})=>f.jsx("div",{className:"h3-wrapper py-2",children:e}),_u=({children:e})=>f.jsx(O.Fragment,{children:e}),Be=()=>!0,Eu=e=>{var t,n;return e.type==="paragraph"&&((n=(t=e.paragraph)==null?void 0:t.rich_text)==null?void 0:n.every(i=>i.annotations.color==="purple"))},si={default:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}},curriculum:{heading_1:{priority:4,condition:Be,wrapper:En},heading_2:{priority:3,condition:Be,wrapper:Cn},paragraph:{priority:2,condition:Eu,wrapper:Su,className:"text-main-600 text-lg md:text-xl font-medium"},heading_3:{priority:1,condition:Be,wrapper:Tn}},article:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}},event:{heading_1:{priority:3,condition:Be,wrapper:En},heading_2:{priority:2,condition:Be,wrapper:Cn},heading_3:{priority:1,condition:Be,wrapper:Tn}}},Cu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-2 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"ml-1 text-base md:text-lg text-grey-800",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Tu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-blue-800 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-blue-700 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-4 text-sm text-grey-800 md:text-base lg:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-blue-500 pl-4 text-sm italic text-grey-600 md:text-base",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-sm text-grey-800 md:text-base",code:"mb-4 rounded-md bg-grey-800 p-4 font-mono text-sm text-white",image:"w-full rounded-lg object-cover",divider:"my-6 border-t border-border",table:"w-full border-collapse border border-blue-200",tableRow:"border-b border-blue-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Ru={container:"flex flex-col w-full",heading1:"mb-4 text-2xl font-bold text-grey-900 md:text-3xl lg:text-4xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-2 text-base leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-main-50 p-4 text-grey-600",list:"pl-5 space-y-1",listItem:"ml-1 text-base md:text-lg",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden mb-2",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Nu={container:"flex flex-col gap-0",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-medium text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-4 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-base md:text-lg text-grey-700 marker:text-main-600",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden w-full",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},br=e=>{switch(e){case"curriculum":return Tu;case"article":return Ru;case"event":return Nu;default:return Cu}},Mu={default:"",gray:"text-grey-500",brown:"text-yellow-900",orange:"text-orange-500",yellow:"text-yellow-500",green:"text-green-500",blue:"text-blue-500",purple:"text-purple-500",pink:"text-pink-500",red:"text-red-500"},ms={default:"",gray:"bg-grey-100",brown:"bg-yellow-100",orange:"bg-orange-100",yellow:"bg-yellow-100",green:"bg-green-100",blue:"bg-blue-100",purple:"bg-purple-100",pink:"bg-pink-100",red:"bg-red-100"},Pu=(e,t="default")=>{const n={id:"root",type:"root",children:[],parent:{},has_children:!0},i={root:n};e.forEach(a=>{a.children=[],i[a.id]=a});const r={};e.forEach(a=>{var c;const l=(c=a.parent)==null?void 0:c.block_id;l&&(r[l]||(r[l]=[]),r[l].push(a))});const s=new Set,o=[{block:n,priority:0}];return e.forEach(a=>{var p;if(s.has(a.id))return;const l=Jo(a,t),c=(p=a.parent)==null?void 0:p.block_id,u=c?i[c]:null;if(l>0){for(;o.length>1&&o[o.length-1].priority<=l;)o.pop();const g={...a,children:[]};o[o.length-1].block.children.push(g),o.push({block:g,priority:l}),s.add(a.id)}else if(c&&u)u.children.push(a),s.add(a.id);else{const g={...a,children:[]};o[o.length-1].block.children.push(g),s.add(a.id);const d=r[a.id];d&&d.length>0&&(g.children=d,d.forEach(h=>s.add(h.id)))}}),n.children||[]},Qo=["bulleted_list_item","numbered_list_item"],Jo=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return n!=null&&n.condition(e)?n.priority:0},Au=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return n!=null&&n.condition(e)?n.wrapper:_u},ea=(e,t="default")=>{var i;const n=(i=si[t])==null?void 0:i[e.type];return!!(n!=null&&n.priority&&n.condition(e))};function wr(e){const t=[];let n=[],i=null;const r=()=>{!i||n.length===0||(i==="block"?n.forEach(s=>t.push({type:"block",block:s})):i==="bulleted_list"?t.push({type:"bulleted_list",blocks:n}):i==="numbered_list"&&t.push({type:"numbered_list",blocks:n}),n=[],i=null)};for(const s of e){const o=s.type==="bulleted_list_item",a=s.type==="numbered_list_item",l=o?"bulleted_list":a?"numbered_list":"block";i===l?n.push(s):(r(),i=l,n=[s])}return r(),t}const Ou=e=>e.includes("youtu.be")?"https://www.youtube.com/embed/"+e.split("/").pop():e.includes("youtube.com/watch")?"https://www.youtube.com/embed/"+e.split("v=")[1].split("&")[0]:e;function Du(e,t,n){const[i,r]=y.normalizeDates(n==null?void 0:n.in,e,t),s=vs(i,r),o=Math.abs(y.differenceInCalendarDays(i,r));i.setDate(i.getDate()-s*o);const a=+(vs(i,r)===-s),l=s*(o-a);return l===0?0:l}function vs(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Iu(e,t){const n=()=>y.constructFrom(t==null?void 0:t.in,NaN),r=ku(e);let s;if(r.date){const c=Vu(r.date,2);s=Bu(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let a=0,l;if(r.time&&(a=$u(r.time),isNaN(a)))return n();if(r.timezone){if(l=Uu(r.timezone),isNaN(l))return n()}else{const c=new Date(o+a),u=y.toDate(0,t==null?void 0:t.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return y.toDate(o+a+l,t==null?void 0:t.in)}const Rn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fu=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lu=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ju=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ku(e){const t={},n=e.split(Rn.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],Rn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Rn.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const r=Rn.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function Vu(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:e.slice((i[1]||i[2]).length)}}function Bu(e,t){if(t===null)return new Date(NaN);const n=e.match(Fu);if(!n)return new Date(NaN);const i=!!n[4],r=Qt(n[1]),s=Qt(n[2])-1,o=Qt(n[3]),a=Qt(n[4]),l=Qt(n[5])-1;if(i)return Ku(t,a,l)?Gu(t,a,l):new Date(NaN);{const c=new Date(0);return!Hu(t,s,o)||!Wu(t,r)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(r,o)),c)}}function Qt(e){return e?parseInt(e):1}function $u(e){const t=e.match(Lu);if(!t)return NaN;const n=mi(t[1]),i=mi(t[2]),r=mi(t[3]);return qu(n,i,r)?n*y.millisecondsInHour+i*y.millisecondsInMinute+r*1e3:NaN}function mi(e){return e&&parseFloat(e.replace(",","."))||0}function Uu(e){if(e==="Z")return 0;const t=e.match(ju);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return Yu(i,r)?n*(i*y.millisecondsInHour+r*y.millisecondsInMinute):NaN}function Gu(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const r=i.getUTCDay()||7,s=(t-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+s),i}const zu=[31,null,31,30,31,30,31,31,30,31,30,31];function ta(e){return e%400===0||e%4===0&&e%100!==0}function Hu(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zu[t]||(ta(e)?29:28))}function Wu(e,t){return t>=1&&t<=(ta(e)?366:365)}function Ku(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function qu(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Yu(e,t){return t>=0&&t<=59}const Hn=({src:e,alt:t,object:n="cover",lazy:i=!0,size:r="auto",className:s,...o})=>{const a={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},l={full:"w-full",fit:"w-fit",auto:"w-auto"};let c="",u={};return typeof r=="string"?c=l[r]:typeof r=="number"&&(u={width:`${r}px`}),f.jsx("img",{src:e,alt:t?`${t} 이미지`:"이미지",loading:i?"lazy":"eager",className:T.cn(a[n],c,s),style:u,...o})};function Xu({adProduct:e,logo:t,title:n,batchName:i="",adTitle:r,startDate:s,tuition:o,nbCardRequired:a,isLoading:l=!1,regEndDate:c,className:u}){if(l)return f.jsx(ia,{className:u});const p=`${Zu(s)} · ${Qu(o,a)}`;return f.jsx(na,{logo:t,title:`${n} ${i}`,adTitle:r,footerText:p,regEndDate:c,className:u,adProduct:e})}function na({adProduct:e,logo:t,title:n,adTitle:i,footerText:r,regEndDate:s,className:o}){return f.jsxs(y.FlexBox.Col,{className:T.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",o),children:[f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},children:e===Te.adProducts.dDay.value&&s?ed(s):Te.adProducts.event.value.toUpperCase()}),f.jsx(Hn,{src:t,alt:`${n} 로고`,className:"h-4 object-contain"}),f.jsxs(y.FlexBox.Col,{className:"w-full gap-2",children:[f.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:n,children:n}),f.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:i}),f.jsx(y.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:r})]})]})}function ia({className:e}){return f.jsxs(ie.Skeleton,{type:"background",className:T.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",e),children:[f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},className:T.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),f.jsx(ie.Skeleton,{className:"h-4 w-1/2"}),f.jsxs(y.FlexBox.Col,{className:"gap-2",children:[f.jsx(y.Box,{className:"h-10 w-full",children:f.jsx(ie.Skeleton,{className:"h-5 w-4/5"})}),f.jsx(ie.Skeleton,{className:"h-14 w-full"})]}),f.jsx(ie.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const Zu=e=>{if(!e)return"";const n=e.split(" ")[0].split("-"),i=Number(n[1]),r=`${i}/${Number(n.slice(2).join("."))}`;switch(n[2]){case"98":return`${i}월중 개강`;case"99":return`${i}월중(예상) 개강`;default:return`${r} 개강`}},Qu=(e,t)=>{const n=t?"(내배카💳)":"";return e===0||e===void 0?`무료 ${n}`:`유료 ${n}`},Ju=e=>{const n=e.split(" ")[0].split("-"),i=Number(n[0]),r=Number(n[1]);let s=n[2];const o=new Date(i,r,0).getDate();return(isNaN(Number(s))||Number(s)>o)&&(s=o.toString()),`${i}-${String(r).padStart(2,"0")}-${String(s).padStart(2,"0")}`},ed=e=>{const t=Du(Iu(Ju(e)),new Date);return t<=0?"마감임박":`D-${t}`},td={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var D={},Ui={exports:{}};(function(e,t){(function(n,i){var r="1.0.39",s="",o="?",a="function",l="undefined",c="object",u="string",p="major",g="model",d="name",h="type",m="vendor",v="version",b="architecture",x="console",w="mobile",S="tablet",_="smarttv",C="wearable",k="embedded",F=500,Y="Amazon",Z="Apple",le="ASUS",fe="BlackBerry",pe="Browser",ve="Chrome",de="Edge",we="Firefox",Q="Google",se="Huawei",ge="LG",ce="Microsoft",Ve="Motorola",Oe="Opera",E="Samsung",A="Sharp",H="Sony",q="Xiaomi",J="Zebra",Ae="Facebook",he="Chromium OS",xe="Mac OS",Se=" Browser",Fe=function(V,G){var j={};for(var X in V)G[X]&&G[X].length%2===0?j[X]=G[X].concat(V[X]):j[X]=V[X];return j},nt=function(V){for(var G={},j=0;j<V.length;j++)G[V[j].toUpperCase()]=V[j];return G},Ct=function(V,G){return typeof V===u?He(G).indexOf(He(V))!==-1:!1},He=function(V){return V.toLowerCase()},It=function(V){return typeof V===u?V.replace(/[^\d\.]/g,s).split(".")[0]:i},We=function(V,G){if(typeof V===u)return V=V.replace(/^\s\s*/,s),typeof G===l?V:V.substring(0,F)},Ke=function(V,G){for(var j=0,X,M,I,P,R,ee;j<G.length&&!R;){var Ye=G[j],Lt=G[j+1];for(X=M=0;X<Ye.length&&!R&&Ye[X];)if(R=Ye[X++].exec(V),R)for(I=0;I<Lt.length;I++)ee=R[++M],P=Lt[I],typeof P===c&&P.length>0?P.length===2?typeof P[1]==a?this[P[0]]=P[1].call(this,ee):this[P[0]]=P[1]:P.length===3?typeof P[1]===a&&!(P[1].exec&&P[1].test)?this[P[0]]=ee?P[1].call(this,ee,P[2]):i:this[P[0]]=ee?ee.replace(P[1],P[2]):i:P.length===4&&(this[P[0]]=ee?P[3].call(this,ee.replace(P[1],P[2])):i):this[P]=ee||i;j+=2}},De=function(V,G){for(var j in G)if(typeof G[j]===c&&G[j].length>0){for(var X=0;X<G[j].length;X++)if(Ct(G[j][X],V))return j===o?i:j}else if(Ct(G[j],V))return j===o?i:j;return G.hasOwnProperty("*")?G["*"]:V},Ft={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},it={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,v],[/opios[\/ ]+([\w\.]+)/i],[v,[d,Oe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[d,Oe+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[d,Oe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[d,"UC"+pe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[d,"Smart Lenovo "+pe]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+pe],v],[/\bfocus\/([\w\.]+)/i],[v,[d,we+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[d,Oe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[d,Oe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[d,"MIUI "+pe]],[/fxios\/([-\w\.]+)/i],[v,[d,we]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360"+Se]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+Se],v],[/samsungbrowser\/([\w\.]+)/i],[v,[d,E+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,Ae],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[d,ve+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,ve+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[d,"Android "+pe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[v,De,Ft]],[/(webkit|khtml)\/([\w\.]+)/i],[d,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],v],[/(wolvic)\/([\w\.]+)/i],[d,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[d,we+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,He]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,s,He]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,He]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[m,E],[h,S]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[g,[m,E],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[m,Z],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[m,Z],[h,S]],[/(macintosh);/i],[g,[m,Z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[m,A],[h,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[g,[m,se],[h,S]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[m,se],[h,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[g,/_/g," "],[m,q],[h,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[g,/_/g," "],[m,q],[h,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[m,"OPPO"],[h,w]],[/\b(opd2\d{3}a?) bui/i],[g,[m,"OPPO"],[h,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[m,"Vivo"],[h,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[m,"Realme"],[h,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[m,Ve],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[m,Ve],[h,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[m,ge],[h,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[m,ge],[h,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[g,[m,"Lenovo"],[h,S]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[g,/_/g," "],[m,"Nokia"],[h,w]],[/(pixel c)\b/i],[g,[m,Q],[h,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[m,Q],[h,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[m,H],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[m,H],[h,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[m,"OnePlus"],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[m,Y],[h,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[m,Y],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[g,m,[h,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[m,fe],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[m,le],[h,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[m,le],[h,w]],[/(nexus 9)/i],[g,[m,"HTC"],[h,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[g,/_/g," "],[h,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[g,[m,"TCL"],[h,S]],[/(itel) ((\w+))/i],[[m,He],g,[h,De,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[m,"Acer"],[h,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[m,"Meizu"],[h,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[m,"Ulefone"],[h,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[g,[m,"Nothing"],[h,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,g,[h,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,g,[h,S]],[/(surface duo)/i],[g,[m,ce],[h,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[m,"Fairphone"],[h,w]],[/(u304aa)/i],[g,[m,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[g,[m,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[g,[m,"RCA"],[h,S]],[/\b(venue[\d ]{2,7}) b/i],[g,[m,"Dell"],[h,S]],[/\b(q(?:mv|ta)\w+) b/i],[g,[m,"Verizon"],[h,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[m,"Barnes & Noble"],[h,S]],[/\b(tm\d{3}\w+) b/i],[g,[m,"NuVision"],[h,S]],[/\b(k88) b/i],[g,[m,"ZTE"],[h,S]],[/\b(nx\d{3}j) b/i],[g,[m,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[g,[m,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[g,[m,"Swiss"],[h,S]],[/\b((zeki)?tb.*\b) b/i],[g,[m,"Zeki"],[h,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],g,[h,S]],[/\b(ns-?\w{0,9}) b/i],[g,[m,"Insignia"],[h,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[m,"NextBook"],[h,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],g,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],g,[h,w]],[/\b(ph-1) /i],[g,[m,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[m,"Envizen"],[h,S]],[/\b(trio[-\w\. ]+) b/i],[g,[m,"MachSpeed"],[h,S]],[/\btu_(1491) b/i],[g,[m,"Rotor"],[h,S]],[/(shield[\w ]+) b/i],[g,[m,"Nvidia"],[h,S]],[/(sprint) (\w+)/i],[m,g,[h,w]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[m,ce],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[m,J],[h,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[m,J],[h,w]],[/smart-tv.+(samsung)/i],[m,[h,_]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[m,E],[h,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,ge],[h,_]],[/(apple) ?tv/i],[m,[g,Z+" TV"],[h,_]],[/crkey/i],[[g,ve+"cast"],[m,Q],[h,_]],[/droid.+aft(\w+)( bui|\))/i],[g,[m,Y],[h,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[m,A],[h,_]],[/(bravia[\w ]+)( bui|\))/i],[g,[m,H],[h,_]],[/(mitv-\w{5}) bui/i],[g,[m,q],[h,_]],[/Hbbtv.*(technisat) (.*);/i],[m,g,[h,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,We],[g,We],[h,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,g,[h,x]],[/droid.+; (shield) bui/i],[g,[m,"Nvidia"],[h,x]],[/(playstation [345portablevi]+)/i],[g,[m,H],[h,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[m,ce],[h,x]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[g,[m,E],[h,C]],[/((pebble))app/i],[m,g,[h,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[m,Z],[h,C]],[/droid.+; (glass) \d/i],[g,[m,Q],[h,C]],[/droid.+; (wt63?0{2,3})\)/i],[g,[m,J],[h,C]],[/(quest( \d| pro)?)/i],[g,[m,Ae],[h,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,k]],[/(aeobc)\b/i],[g,[m,Y],[h,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[g,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[h,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/(android[-\w\. ]{0,9});.+buil/i],[g,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[d,de+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[v,De,it]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,De,it],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,xe],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,v],[/\(bb(10);/i],[v,[d,fe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[d,we+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[d,ve+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,he],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,v],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,v]]},N=function(V,G){if(typeof V===c&&(G=V,V=i),!(this instanceof N))return new N(V,G).getResult();var j=typeof n!==l&&n.navigator?n.navigator:i,X=V||(j&&j.userAgent?j.userAgent:s),M=j&&j.userAgentData?j.userAgentData:i,I=G?Fe(W,G):W,P=j&&j.userAgent==X;return this.getBrowser=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.browser),R[p]=It(R[v]),P&&j&&j.brave&&typeof j.brave.isBrave==a&&(R[d]="Brave"),R},this.getCPU=function(){var R={};return R[b]=i,Ke.call(R,X,I.cpu),R},this.getDevice=function(){var R={};return R[m]=i,R[g]=i,R[h]=i,Ke.call(R,X,I.device),P&&!R[h]&&M&&M.mobile&&(R[h]=w),P&&R[g]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(R[g]="iPad",R[h]=S),R},this.getEngine=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.engine),R},this.getOS=function(){var R={};return R[d]=i,R[v]=i,Ke.call(R,X,I.os),P&&!R[d]&&M&&M.platform&&M.platform!="Unknown"&&(R[d]=M.platform.replace(/chrome os/i,he).replace(/macos/i,xe)),R},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return X},this.setUA=function(R){return X=typeof R===u&&R.length>F?We(R,F):R,this},this.setUA(X),this};N.VERSION=r,N.BROWSER=nt([d,v,p]),N.CPU=nt([b]),N.DEVICE=nt([g,m,h,x,w,_,S,C,k]),N.ENGINE=N.OS=nt([d,v]),e.exports&&(t=e.exports=N),t.UAParser=N;var L=typeof n!==l&&(n.jQuery||n.Zepto);if(L&&!L.ua){var K=new N;L.ua=K.getResult(),L.ua.get=function(){return K.getUA()},L.ua.set=function(V){K.setUA(V);var G=K.getResult();for(var j in G)L.ua[j]=G[j]}}})(typeof window=="object"?window:y.commonjsGlobal)})(Ui,Ui.exports);var nd=Ui.exports;Object.defineProperty(D,"__esModule",{value:!0});function id(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Ne=O,re=id(Ne),ra=nd,wt=new ra,Me=wt.getBrowser(),rd=wt.getCPU(),ke=wt.getDevice(),xr=wt.getEngine(),xt=wt.getOS(),bn=wt.getUA(),sa=function(t){return wt.setUA(t)},wn=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new ra(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(r){return n.setUA(r)}}},oa=Object.freeze({ClientUAInstance:wt,browser:Me,cpu:rd,device:ke,engine:xr,os:xt,ua:bn,setUa:sa,parseUserAgent:wn});function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(i){cd(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sn=function(t){return typeof t}:sn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function od(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ad(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ld(e,t,n){return t&&ad(e.prototype,t),e}function cd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(){return Gi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gi.apply(this,arguments)}function ud(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hi(e,t)}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zi(e)}function Hi(e,t){return Hi=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},Hi(e,t)}function dd(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,s;for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function ze(e,t){if(e==null)return{};var n=dd(e,t),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)i=s[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Vn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gd(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vn(e)}function fd(e,t){return pd(e)||hd(e,t)||md(e,t)||vd()}function pd(e){if(Array.isArray(e))return e}function hd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,s=!1,o,a;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));r=!0);}catch(l){s=!0,a=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(s)throw a}}return i}}function md(e,t){if(e){if(typeof e=="string")return bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bs(e,t)}}function bs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function vd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ce={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Ie={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Yt={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},yd={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},bd=function(t){switch(t){case Ce.Mobile:return{isMobile:!0};case Ce.Tablet:return{isTablet:!0};case Ce.SmartTv:return{isSmartTV:!0};case Ce.Console:return{isConsole:!0};case Ce.Wearable:return{isWearable:!0};case Ce.Browser:return{isBrowser:!0};case Ce.Embedded:return{isEmbedded:!0};default:return yd}},wd=function(t){return sa(t)},z=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},Sr=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},_r=function(t){var n=Sr();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},xd=function(t,n,i,r,s){return{isBrowser:t,browserMajorVersion:z(n.major),browserFullVersion:z(n.version),browserName:z(n.name),engineName:z(i.name),engineVersion:z(i.version),osName:z(r.name),osVersion:z(r.version),userAgent:z(s)}},ws=function(t,n,i,r){return sd({},t,{vendor:z(n.vendor),model:z(n.model),os:z(i.name),osVersion:z(i.version),ua:z(r)})},Sd=function(t,n,i,r){return{isSmartTV:t,engineName:z(n.name),engineVersion:z(n.version),osName:z(i.name),osVersion:z(i.version),userAgent:z(r)}},_d=function(t,n,i,r){return{isConsole:t,engineName:z(n.name),engineVersion:z(n.version),osName:z(i.name),osVersion:z(i.version),userAgent:z(r)}},Ed=function(t,n,i,r){return{isWearable:t,engineName:z(n.name),engineVersion:z(n.version),osName:z(i.name),osVersion:z(i.version),userAgent:z(r)}},Cd=function(t,n,i,r,s){return{isEmbedded:t,vendor:z(n.vendor),model:z(n.model),engineName:z(i.name),engineVersion:z(i.version),osName:z(r.name),osVersion:z(r.version),userAgent:z(s)}};function Td(e){var t=e?wn(e):oa,n=t.device,i=t.browser,r=t.engine,s=t.os,o=t.ua,a=bd(n.type),l=a.isBrowser,c=a.isMobile,u=a.isTablet,p=a.isSmartTV,g=a.isConsole,d=a.isWearable,h=a.isEmbedded;if(l)return xd(l,i,r,s,o);if(p)return Sd(p,r,s,o);if(g)return _d(g,r,s,o);if(c||u)return ws(a,n,s,o);if(d)return Ed(d,r,s,o);if(h)return Cd(h,n,r,s,o)}var aa=function(t){var n=t.type;return n===Ce.Mobile},la=function(t){var n=t.type;return n===Ce.Tablet},ca=function(t){var n=t.type;return n===Ce.Mobile||n===Ce.Tablet},ua=function(t){var n=t.type;return n===Ce.SmartTv},Wn=function(t){var n=t.type;return n===Ce.Browser},da=function(t){var n=t.type;return n===Ce.Wearable},ga=function(t){var n=t.type;return n===Ce.Console},fa=function(t){var n=t.type;return n===Ce.Embedded},pa=function(t){var n=t.vendor;return z(n)},ha=function(t){var n=t.model;return z(n)},ma=function(t){var n=t.type;return z(n,"browser")},va=function(t){var n=t.name;return n===Yt.Android},ya=function(t){var n=t.name;return n===Yt.Windows},ba=function(t){var n=t.name;return n===Yt.MAC_OS},wa=function(t){var n=t.name;return n===Yt.WindowsPhone},xa=function(t){var n=t.name;return n===Yt.IOS},Sa=function(t){var n=t.version;return z(n)},_a=function(t){var n=t.name;return z(n)},Ea=function(t){var n=t.name;return n===Ie.Chrome},Ca=function(t){var n=t.name;return n===Ie.Firefox},Ta=function(t){var n=t.name;return n===Ie.Chromium},Kn=function(t){var n=t.name;return n===Ie.Edge},Ra=function(t){var n=t.name;return n===Ie.Yandex},Na=function(t){var n=t.name;return n===Ie.Safari||n===Ie.MobileSafari},Ma=function(t){var n=t.name;return n===Ie.MobileSafari},Pa=function(t){var n=t.name;return n===Ie.Opera},Aa=function(t){var n=t.name;return n===Ie.InternetExplorer||n===Ie.Ie},Oa=function(t){var n=t.name;return n===Ie.MIUI},Da=function(t){var n=t.name;return n===Ie.SamsungBrowser},Ia=function(t){var n=t.version;return z(n)},Fa=function(t){var n=t.major;return z(n)},La=function(t){var n=t.name;return z(n)},ja=function(t){var n=t.name;return z(n)},ka=function(t){var n=t.version;return z(n)},Va=function(){var t=Sr(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},zt=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},Ba=function(){var t=Sr();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Ze=function(){return _r("iPad")},$a=function(){return _r("iPhone")},Ua=function(){return _r("iPod")},Ga=function(t){return z(t)};function za(e){var t=e||oa,n=t.device,i=t.browser,r=t.os,s=t.engine,o=t.ua;return{isSmartTV:ua(n),isConsole:ga(n),isWearable:da(n),isEmbedded:fa(n),isMobileSafari:Ma(i)||Ze(),isChromium:Ta(i),isMobile:ca(n)||Ze(),isMobileOnly:aa(n),isTablet:la(n)||Ze(),isBrowser:Wn(n),isDesktop:Wn(n),isAndroid:va(r),isWinPhone:wa(r),isIOS:xa(r)||Ze(),isChrome:Ea(i),isFirefox:Ca(i),isSafari:Na(i),isOpera:Pa(i),isIE:Aa(i),osVersion:Sa(r),osName:_a(r),fullBrowserVersion:Ia(i),browserVersion:Fa(i),browserName:La(i),mobileVendor:pa(n),mobileModel:ha(n),engineName:ja(s),engineVersion:ka(s),getUA:Ga(o),isEdge:Kn(i)||zt(o),isYandex:Ra(i),deviceType:ma(n),isIOS13:Ba(),isIPad13:Ze(),isIPhone13:$a(),isIPod13:Ua(),isElectron:Va(),isEdgeChromium:zt(o),isLegacyEdge:Kn(i)&&!zt(o),isWindows:ya(r),isMacOs:ba(r),isMIUI:Oa(i),isSamsungBrowser:Da(i)}}var Ha=ua(ke),Wa=ga(ke),Ka=da(ke),Rd=fa(ke),Nd=Ma(Me)||Ze(),Md=Ta(Me),oi=ca(ke)||Ze(),qa=aa(ke),Ya=la(ke)||Ze(),Xa=Wn(ke),Pd=Wn(ke),Za=va(xt),Qa=wa(xt),Ja=xa(xt)||Ze(),Ad=Ea(Me),Od=Ca(Me),Dd=Na(Me),Id=Pa(Me),el=Aa(Me),Fd=Sa(xt),Ld=_a(xt),jd=Ia(Me),kd=Fa(Me),Vd=La(Me),Bd=pa(ke),$d=ha(ke),Ud=ja(xr),Gd=ka(xr),zd=Ga(bn),Hd=Kn(Me)||zt(bn),Wd=Ra(Me),Kd=ma(ke),qd=Ba(),Yd=Ze(),Xd=$a(),Zd=Ua(),Qd=Va(),Jd=zt(bn),eg=Kn(Me)&&!zt(bn),tg=ya(xt),ng=ba(xt),ig=Oa(Me),rg=Da(Me),sg=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=wn(t),i=n.device,r=n.browser,s=n.os,o=n.engine,a=n.ua;return za({device:i,browser:r,os:s,engine:o,ua:a})},og=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Za?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},ag=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Xa?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},lg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return el?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},cg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Ja?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},ug=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return oi?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},dg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Ya?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},gg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Qa?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},fg=function(t){var n=t.renderWithFragment,i=t.children;t.viewClassName,t.style;var r=ze(t,["renderWithFragment","children","viewClassName","style"]);return qa?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},pg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Ha?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},hg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Wa?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},mg=function(t){var n=t.renderWithFragment,i=t.children,r=ze(t,["renderWithFragment","children"]);return Ka?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",r,i):null},vg=function(t){var n=t.renderWithFragment,i=t.children;t.viewClassName,t.style;var r=t.condition,s=ze(t,["renderWithFragment","children","viewClassName","style","condition"]);return r?n?re.createElement(Ne.Fragment,null,i):re.createElement("div",s,i):null};function yg(e){return function(t){ud(n,t);function n(i){var r;return od(this,n),r=gd(this,zi(n).call(this,i)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(Vn(r)),r.onOrientationChange=r.onOrientationChange.bind(Vn(r)),r.onPageLoad=r.onPageLoad.bind(Vn(r)),r.state={isLandscape:!1,isPortrait:!1},r}return ld(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":sn(window))!==void 0&&oi&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return re.createElement(e,Gi({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(re.Component)}function bg(){var e=Ne.useState(function(){var s=window.innerWidth>window.innerHeight?90:0;return{isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"}}),t=fd(e,2),n=t[0],i=t[1],r=Ne.useCallback(function(){var s=window.innerWidth>window.innerHeight?90:0,o={isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"};n.orientation!==o.orientation&&i(o)},[n.orientation]);return Ne.useEffect(function(){return(typeof window>"u"?"undefined":sn(window))!==void 0&&oi&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),n}function tl(e){var t=e||window.navigator.userAgent;return wn(t)}function wg(e){var t=e||window.navigator.userAgent,n=tl(t),i=za(n);return[i,n]}D.AndroidView=og;D.BrowserTypes=Ie;D.BrowserView=ag;D.ConsoleView=hg;D.CustomView=vg;D.IEView=lg;D.IOSView=cg;D.MobileOnlyView=fg;D.MobileView=ug;D.OsTypes=Yt;D.SmartTVView=pg;D.TabletView=dg;D.WearableView=mg;D.WinPhoneView=gg;D.browserName=Vd;D.browserVersion=kd;D.deviceDetect=Td;D.deviceType=Kd;D.engineName=Ud;D.engineVersion=Gd;D.fullBrowserVersion=jd;D.getSelectorsByUserAgent=sg;D.getUA=zd;D.isAndroid=Za;D.isBrowser=Xa;D.isChrome=Ad;D.isChromium=Md;D.isConsole=Wa;D.isDesktop=Pd;D.isEdge=Hd;D.isEdgeChromium=Jd;D.isElectron=Qd;D.isEmbedded=Rd;D.isFirefox=Od;D.isIE=el;D.isIOS=Ja;D.isIOS13=qd;D.isIPad13=Yd;D.isIPhone13=Xd;D.isIPod13=Zd;D.isLegacyEdge=eg;D.isMIUI=ig;D.isMacOs=ng;var tn=D.isMobile=oi;D.isMobileOnly=qa;D.isMobileSafari=Nd;D.isOpera=Id;D.isSafari=Dd;D.isSamsungBrowser=rg;D.isSmartTV=Ha;D.isTablet=Ya;D.isWearable=Ka;D.isWinPhone=Qa;D.isWindows=tg;D.isYandex=Wd;D.mobileModel=$d;D.mobileVendor=Bd;D.osName=Ld;D.osVersion=Fd;D.parseUserAgent=wn;D.setUserAgent=wd;D.useDeviceData=tl;D.useDeviceSelectors=wg;D.useMobileOrientation=bg;D.withOrientationChange=yg;function xg({adKey:e,filename:t,title:n,backgroundColor:i,hideButton:r=!1,buttonColors:s,linkType:o="homepage",isLoading:a=!1,className:l}){var d;const c=e&&t,u=`https://cdn.sayun.studio/boottent/images/banners/${e}/${t}`,p={background:s?s.button:Te.defaultBannerColor.button,color:s?s.buttonText:Te.defaultBannerColor.buttonText,border:s?s.button:Te.defaultBannerColor.button},g=a?ie.Skeleton:y.Box;return f.jsx(g,{style:{backgroundColor:a?void 0:i},type:a?"background":void 0,className:T.cn("relative h-40 w-full overflow-hidden md:h-[200px]",a?"bg-white":"border-y border-y-grey-200",l),children:a?f.jsx(nl,{}):f.jsx(f.Fragment,{children:f.jsxs(y.FlexBox.Row,{className:"absolute inset-0 mx-auto h-full w-full max-w-screen-xl px-0 pb-6 pt-0 md:h-auto md:px-6 md:pb-0 md:pt-10 lg:px-10 lg:pt-6",children:[c?f.jsx("div",{className:"mx-auto flex h-full w-full items-center md:items-start",children:f.jsx("img",{loading:"lazy",src:u,alt:`${n} 이미지`,className:"h-auto max-h-[136px] w-full object-contain md:max-h-40 lg:max-h-[176px]"})}):f.jsx(y.Box,{className:"h-full w-full bg-grey-100 text-muted",children:n}),!r&&f.jsx(y.Box,{className:"absolute inset-0 mx-auto max-w-screen-xl px-4 md:px-6 lg:px-10",children:f.jsx(y.Button,{style:p,theme:"etc",variant:"solid",size:tn?"sm":"md",className:"absolute bottom-4 right-4 h-9 w-24 md:bottom-6 md:right-6 md:h-11 md:w-32 lg:bottom-4 lg:right-10",children:((d=td[o])==null?void 0:d.label)+" →"||"홈페이지 →"})})]})})})}function nl(){return f.jsxs(y.FlexBox.Col,{className:"relative mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-10 lg:px-10",children:[f.jsx(ie.Skeleton,{type:"text",className:"h-6 w-4/5 rounded-xl md:h-10"}),f.jsx(ie.Skeleton,{type:"text",className:"h-10 w-1/2 rounded-xl md:h-16 lg:w-3/5"}),f.jsx(ie.Skeleton,{type:"text",className:"absolute bottom-4 right-4 aspect-[3/1] w-[120px] shrink-0 md:right-6 md:w-[140px] lg:right-10"})]})}const Sg=({logo:e,title:t,subtitle:n,thumbnail:i,batchTitle:r,batchName:s="",brandName:o,tag:a,isLoading:l=!1,className:c})=>{const u=l?ie.Skeleton:y.Box;return f.jsxs(u,{title:t,type:"background",className:T.cn("xs:h-full relative z-10 box-border h-[154px] w-full max-w-[720px] cursor-pointer overflow-hidden rounded-xl bg-white p-4 md:h-[174px] md:max-w-[592px] md:p-5 lg:h-[174px] lg:p-6 xl:h-[174px]",l?"":"border border-grey-200",c),children:[f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.premiumCard.background,color:Te.adProducts.premiumCard.color},className:T.cn(l&&"h-7 w-28 animate-pulse"),children:l?"":a}),l?f.jsx(Eg,{}):f.jsx(_g,{logo:e,brandName:o,batchTitle:r,batchName:s,subtitle:n,thumbnail:i})]})},_g=({logo:e,brandName:t,batchTitle:n,batchName:i,subtitle:r,thumbnail:s})=>f.jsxs(y.FlexBox.Col,{className:"h-full justify-start gap-2",children:[f.jsx(Hn,{src:e,alt:`${t} 로고`,className:"h-4 object-contain"}),f.jsxs(y.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[f.jsxs(y.FlexBox.Col,{className:"flex h-full grow flex-col justify-between gap-2 pb-2",children:[f.jsxs("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:h-12 md:text-base",title:`${t} ${n} ${i}`,children:[n," ",i]}),f.jsx("h4",{className:"line-clamp-2 max-h-[56px] w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:text-[15px] md:text-grey-800",title:r,children:r})]}),f.jsx(Hn,{src:s,alt:`${n} 썸네일`,className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl border border-grey-200 object-cover md:h-[96px] md:w-[96px]"})]})]}),Eg=()=>f.jsxs(y.FlexBox.Col,{className:"h-full justify-center gap-2",children:[f.jsx(ie.Skeleton,{className:"h-4 w-1/2"}),f.jsxs(y.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[f.jsxs(y.FlexBox.Col,{className:"flex h-full w-full flex-col justify-between gap-2 pb-2",children:[f.jsx(ie.Skeleton,{className:"h-5 w-4/5 lg:h-12"}),f.jsx(ie.Skeleton,{className:"h-5 w-4/5"})]}),f.jsx(ie.Skeleton,{className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl md:h-[96px] md:w-[96px]"})]})]}),Cg=({tags:e,coverImage:t,brandName:n,title:i,batchName:r="",titleTagType:s,adTitle:o,changedAspect:a="aspect-[8/5]",isLoading:l=!1,className:c})=>l?f.jsx(Tg,{changedAspect:a,className:c,titleTagType:s}):f.jsxs(y.FlexBox.Col,{className:T.cn("shadow-base h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl border border-grey-700 bg-white transition-all",c),children:[f.jsxs(y.Box,{style:{background:"linear-gradient(0deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${a} w-full flex-col items-center justify-center overflow-hidden`,children:[f.jsx(Hn,{src:t,alt:`${n} ${i} ${r} 이미지`,className:"h-full w-full object-cover"}),s&&f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.titleTag.background,color:Te.adProducts.titleTag.color},children:s}),o&&f.jsxs(f.Fragment,{children:[f.jsx(y.Box,{className:"absolute left-4 top-4 z-10 w-36 whitespace-pre-wrap break-keep text-[18px] font-semibold text-white md:left-5 md:top-7",children:o}),f.jsx(y.Box,{className:"absolute inset-0 opacity-50",style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"}})]})]}),f.jsxs(y.FlexBox.Col,{className:"w-full justify-between gap-2 p-4 text-grey-800 md:p-5 lg:p-6",children:[f.jsxs("h4",{className:"flex flex-col gap-2",title:`${n} ${i} ${r}`,children:[f.jsx("p",{className:"text-sm",children:n}),f.jsx("p",{className:"truncate3 break-keep text-base font-semibold",children:`${i} ${r}`})]}),e&&f.jsx("ul",{className:"flex w-full max-w-full flex-wrap gap-1",children:e.map((u,p)=>{var d;const g=Object.values(Te.campCategoryColors).find(h=>h.tags.some(m=>m.value===u));return g&&f.jsx("li",{children:f.jsx(y.Tag,{size:"sm",style:{background:g.background,color:g.color},children:(d=g.tags.find(h=>h.value===u))==null?void 0:d.text})},p)})})]})]}),Tg=({changedAspect:e,className:t,titleTagType:n})=>f.jsxs(ie.Skeleton,{type:"background",className:T.cn("relative h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl bg-grey-50 transition-all",t),children:[n&&f.jsx(y.Tag,{variant:"ad",style:{background:Te.adProducts.titleTag.background,color:Te.adProducts.titleTag.color},className:T.cn("h-7 w-28 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),f.jsx(y.Box,{style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${e} w-full`,children:f.jsx(ie.Skeleton,{className:"h-full w-full",type:"background"})}),f.jsxs(y.FlexBox.Col,{className:"w-full justify-between gap-2 p-4",children:[f.jsxs(y.FlexBox.Col,{className:"relative w-full gap-2",children:[f.jsx(ie.Skeleton,{className:"h-5 w-1/2",type:"text"}),f.jsx(ie.Skeleton,{className:"h-12 w-full",type:"text"})]}),f.jsxs(y.FlexBox.Row,{className:"w-full gap-1",children:[f.jsx(ie.Skeleton,{className:"h-5 w-1/4",type:"text"}),f.jsx(ie.Skeleton,{className:"h-5 w-2/5",type:"text"}),f.jsx(ie.Skeleton,{className:"h-5 w-1/4",type:"text"})]})]})]});function Rg(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Ng(e,t){if(e==null)return{};var n,i,r=Rg(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Mg(e){if(Array.isArray(e))return Wi(e)}function Pg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ag(e,t){if(e){if(typeof e=="string")return Wi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wi(e,t):void 0}}function Og(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ki(e){return Mg(e)||Pg(e)||Ag(e)||Og()}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function Dg(e,t){if(dn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(dn(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ig(e){var t=Dg(e,"string");return dn(t)=="symbol"?t:t+""}function il(e,t,n){return(t=Ig(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qi.apply(null,arguments)}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(n),!0).forEach(function(i){il(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Fg(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var vi={};function Lg(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return vi[t]||(vi[t]=Fg(e)),vi[t]}function jg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=e.filter(function(s){return s!=="token"}),r=Lg(i);return r.reduce(function(s,o){return kt(kt({},s),n[o])},t)}function Ss(e){return e.join(" ")}function kg(e,t){var n=0;return function(i){return n+=1,i.map(function(r,s){return rl({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(s)})})}}function rl(e){var t=e.node,n=e.stylesheet,i=e.style,r=i===void 0?{}:i,s=e.useInlineStyles,o=e.key,a=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var p=kg(n,s),g;if(!s)g=kt(kt({},a),{},{className:Ss(a.className)});else{var d=Object.keys(n).reduce(function(b,x){return x.split(".").forEach(function(w){b.includes(w)||b.push(w)}),b},[]),h=a.className&&a.className.includes("token")?["token"]:[],m=a.className&&h.concat(a.className.filter(function(b){return!d.includes(b)}));g=kt(kt({},a),{},{className:Ss(m)||void 0,style:jg(a.className,Object.assign({},a.style,r),n)})}var v=p(t.children);return O.createElement(c,qi({key:o},g),v)}}const Vg=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var Bg=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_s(Object(n),!0).forEach(function(i){il(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var $g=/\n/g;function Ug(e){return e.match($g)}function Gg(e){var t=e.lines,n=e.startingLineNumber,i=e.style;return t.map(function(r,s){var o=s+n;return O.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(o):i},"".concat(o,`
4
4
  `))})}function zg(e){var t=e.codeString,n=e.codeStyle,i=e.containerStyle,r=i===void 0?{float:"left",paddingRight:"10px"}:i,s=e.numberStyle,o=s===void 0?{}:s,a=e.startingLineNumber;return O.createElement("code",{style:Object.assign({},n,r)},Gg({lines:t.replace(/\n$/,"").split(`
@@ -8,7 +8,7 @@ import ge, { useState as ur, useRef as wn, useLayoutEffect as Va, useMemo as In,
8
8
  import { S as ce, A as mn } from "./index-Dym26GHI.js";
9
9
  import { c as jd } from "./index-BFsbj9HY.js";
10
10
  import { u as zd } from "./use-metadata-BrY8rtWx.js";
11
- import { A as iS, D as rS, F as sS, M as oS, T as aS } from "./toast-form-tgb0rBlD.js";
11
+ import { A as iS, D as rS, F as sS, M as oS, T as aS } from "./toast-form-ICBCLWgN.js";
12
12
  const Ox = (e, t) => e.length === 0 ? /* @__PURE__ */ m("span", { children: t }) : e.length === 1 ? /* @__PURE__ */ m("span", { children: e[0].label }) : /* @__PURE__ */ E("span", { children: [
13
13
  e[0].label,
14
14
  " ",
package/dist/hooks.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./use-metadata-CZiZDN9j.cjs");require("react/jsx-runtime");const l=require("react"),e=require("./use-toastmodal-BiqEXQyI.cjs");require("./index-BoeM4gLz.cjs");const d=()=>{const[n,s]=l.useState([]);return l.useEffect(()=>{const t=(r,c)=>{s(c?a=>a.includes(r.id)?a:[...a,r.id]:a=>a.filter(u=>u!==r.id))},o=e.portalManager.subscribe(t);return s(e.portalManager.getOpenPortals()),()=>{o()}},[]),{modal:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("modal",{...t,onClose:o})},toast:t=>{let o;return typeof t=="string"?o={description:t}:o=t,e.portalManager.showPortal("toast",o)},alert:t=>{let o;return typeof t=="string"?o={description:t,onClose:()=>{}}:o={...t,onClose:t.onClose||(()=>{})},e.portalManager.showPortal("alert",o)},dialog:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("dialog",{...t,onClose:o})},custom:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("custom",{...t,onClose:o})},getIsOpen:t=>e.portalManager.getIsPortalOpen(t),closePortal:t=>{e.portalManager.closePortal(t)},closeAllPortals:()=>{e.portalManager.closeAllPortals()},openPortals:n}};exports.useMetadata=i.useMetadata;exports.modalReducer=e.modalReducer;exports.toast=e.toast;exports.toastModal=e.toastModal;exports.toastReducer=e.toastReducer;exports.useToast=e.useToast;exports.useToastModal=e.useToastModal;exports.usePortal=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./use-metadata-CZiZDN9j.cjs");require("react/jsx-runtime");const l=require("react"),e=require("./use-toastmodal-BiqEXQyI.cjs");require("./index-BoeM4gLz.cjs");const i=()=>{const[n,r]=l.useState([]);return l.useEffect(()=>{const t=(s,c)=>{r(c?a=>a.includes(s.id)?a:[...a,s.id]:a=>a.filter(u=>u!==s.id))},o=e.portalManager.subscribe(t);return r(e.portalManager.getOpenPortals()),()=>{o()}},[]),{confirm:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("modal",{...t,onClose:o})},alert:t=>{let o;return typeof t=="string"?o={description:t,onClose:()=>{}}:o={...t,onClose:t.onClose||(()=>{})},e.portalManager.showPortal("alert",o)},dialog:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("dialog",{...t,onClose:o})},custom:t=>{const{onClose:o=()=>{}}=t;return e.portalManager.showPortal("custom",{...t,onClose:o})},getIsOpen:t=>e.portalManager.getIsPortalOpen(t),closePortal:t=>{e.portalManager.closePortal(t)},closeAllPortals:()=>{e.portalManager.closeAllPortals()},openPortals:n}};exports.useMetadata=d.useMetadata;exports.modalReducer=e.modalReducer;exports.toast=e.toast;exports.toastModal=e.toastModal;exports.toastReducer=e.toastReducer;exports.useToast=e.useToast;exports.useToastModal=e.useToastModal;exports.usePortal=i;
package/dist/hooks.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { u as R } from "./use-metadata-BrY8rtWx.js";
1
+ import { u as p } from "./use-metadata-BrY8rtWx.js";
2
2
  import "react/jsx-runtime";
3
3
  import { useState as u, useEffect as i } from "react";
4
4
  import { p as s } from "./use-toastmodal-BhR-ysRN.js";
5
- import { m as p, a as E, b as S, t as j, u as k, c as q } from "./use-toastmodal-BhR-ysRN.js";
5
+ import { m as T, a as y, b as E, t as S, u as j, c as k } from "./use-toastmodal-BhR-ysRN.js";
6
6
  import "./index-haM7BOE0.js";
7
- const A = () => {
7
+ const x = () => {
8
8
  const [a, r] = u([]);
9
9
  return i(() => {
10
10
  const t = (l, n) => {
@@ -13,13 +13,10 @@ const A = () => {
13
13
  return r(s.getOpenPortals()), () => {
14
14
  o();
15
15
  };
16
- }, []), { modal: (t) => {
16
+ }, []), { confirm: (t) => {
17
17
  const { onClose: o = () => {
18
18
  } } = t;
19
19
  return s.showPortal("modal", { ...t, onClose: o });
20
- }, toast: (t) => {
21
- let o;
22
- return typeof t == "string" ? o = { description: t } : o = t, s.showPortal("toast", o);
23
20
  }, alert: (t) => {
24
21
  let o;
25
22
  return typeof t == "string" ? o = { description: t, onClose: () => {
@@ -40,12 +37,12 @@ const A = () => {
40
37
  }, openPortals: a };
41
38
  };
42
39
  export {
43
- p as modalReducer,
44
- E as toast,
45
- S as toastModal,
46
- j as toastReducer,
47
- R as useMetadata,
48
- A as usePortal,
49
- k as useToast,
50
- q as useToastModal
40
+ T as modalReducer,
41
+ y as toast,
42
+ E as toastModal,
43
+ S as toastReducer,
44
+ p as useMetadata,
45
+ x as usePortal,
46
+ j as useToast,
47
+ k as useToastModal
51
48
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("./use-toastmodal-BiqEXQyI.cjs"),r=require("./index-BydYbLSq.cjs"),E=require("./index-BoeM4gLz.cjs"),m=require("./toast-form-D-mN24Yl.cjs"),l=require("react"),P=require("react-dom");require("./index-z9hRvvSX.cjs");function v(){const{modals:n,dismiss:a}=x.useToastModal(),i=n.some(t=>t.open);return o.jsxs(r.ToastModalProvider,{children:[n.map(function({id:t,title:e,description:s,content:d,onConfirm:c,confirmText:f="확인",onCancel:u,cancelText:C="취소",size:T,contents:j,variant:M,width:h,closeType:p,...g}){return o.jsxs(r.ToastModal,{width:h,...g,className:"flex flex-col gap-4",children:[o.jsx(r.ToastModalTitle,{children:e}),o.jsxs("div",{className:"flex flex-col gap-2",children:[s&&o.jsx(r.ToastModalDescription,{className:"text-sm text-foreground",children:s}),d&&o.jsx(r.ToastModalDescription,{children:d})]}),j&&o.jsx(r.ToastModalContents,{children:j}),o.jsxs("div",{className:E.cn("flex items-center justify-between gap-2",p&&"justify-end"),children:[!p&&o.jsx(r.ToastModalClose,{className:"w-1/2",size:T,variant:"outline",children:C}),o.jsx(r.ToastModalAction,{className:p?"":"w-1/2",altText:"confirm",size:T,variant:M,onClick:c,children:f})]})]},t)}),o.jsx(r.ToastModalViewport,{isOpen:i?"open":"close",onClick:()=>n.forEach(t=>!t.closeType&&a(t.id))})]})}const b=()=>{const[n,a]=l.useState([]);l.useEffect(()=>{const e=x.portalManager.subscribe((s,d)=>{a(c=>{const f=c.find(u=>u.id===s.id);return d?f?c:[...c,{...s,isOpen:d}]:c.map(u=>u.id===s.id?{...u,isOpen:!1}:u)})});return()=>{e()}},[]);const i=l.useCallback(e=>{x.portalManager.setPortalOpen(e,!1)},[]);l.useEffect(()=>{const e=[];return n.forEach(s=>{if(!s.isOpen){const d=setTimeout(()=>{a(c=>c.filter(f=>f.id!==s.id))},300);e.push(d)}}),()=>{e.forEach(s=>clearTimeout(s))}},[n]);const t=l.useCallback(e=>{const s=e.props;x.toast({title:s.title,description:s.description,onAction:s.onAction,actionBtnText:s.actionBtnText,closeButton:s.closeButton,variant:s.variant,position:s.position,size:s.size,className:s.className}),i(e.id)},[i]);return l.useEffect(()=>{n.forEach(e=>{e.type==="toast"&&e.isOpen&&t(e)})},[n,t]),o.jsxs(q,{children:[o.jsx(m.ToastForm,{}),n.map(e=>{var s;if(!e.isOpen)return null;switch(e.type){case"modal":return o.jsx(m.ModalForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),i(e.id)},description:(s=e.props.description)==null?void 0:s.toString()},e.id);case"alert":return o.jsx(m.AlertForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),i(e.id)}},e.id);case"dialog":return o.jsx(m.DialogForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),i(e.id)}},e.id);case"custom":return o.jsx(m.FreeForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),i(e.id)},contents:e.props.contents},e.id);case"toast":return null;default:return null}})]})},q=({children:n})=>{const[a,i]=l.useState(null);return l.useEffect(()=>{let t=document.getElementById("portal");t||(t=document.createElement("div"),t.id="portal",document.body.appendChild(t)),i(t)},[]),a?P.createPortal(n,a):null};function F(){const{toasts:n}=x.useToast();return o.jsxs(r.ToastProvider,{children:[n.map(function({id:a,title:i,description:t,onAction:e,...s}){return o.jsx(m.ToastForm,{...s})}),o.jsx(r.ToastViewport,{})]})}exports.ModalManager=v;exports.PortalProvider=b;exports.ToastManager=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),f=require("./use-toastmodal-BiqEXQyI.cjs"),t=require("./index-BydYbLSq.cjs"),g=require("./index-BoeM4gLz.cjs"),m=require("./toast-form-BIjrgH73.cjs"),d=require("react");require("./index-z9hRvvSX.cjs");const P=require("react-dom");function E(){const{modals:n,dismiss:r}=f.useToastModal(),a=n.some(e=>e.open);return s.jsxs(t.ToastModalProvider,{children:[n.map(function({id:e,title:o,description:l,content:i,onConfirm:u,confirmText:c="확인",onCancel:F,cancelText:M="취소",size:p,contents:j,variant:C,width:T,closeType:x,...h}){return s.jsxs(t.ToastModal,{width:T,...h,className:"flex flex-col gap-4",children:[s.jsx(t.ToastModalTitle,{children:o}),s.jsxs("div",{className:"flex flex-col gap-2",children:[l&&s.jsx(t.ToastModalDescription,{className:"text-sm text-foreground",children:l}),i&&s.jsx(t.ToastModalDescription,{children:i})]}),j&&s.jsx(t.ToastModalContents,{children:j}),s.jsxs("div",{className:g.cn("flex items-center justify-between gap-2",x&&"justify-end"),children:[!x&&s.jsx(t.ToastModalClose,{className:"w-1/2",size:p,variant:"outline",children:M}),s.jsx(t.ToastModalAction,{className:x?"":"w-1/2",altText:"confirm",size:p,variant:C,onClick:u,children:c})]})]},e)}),s.jsx(t.ToastModalViewport,{isOpen:a?"open":"close",onClick:()=>n.forEach(e=>!e.closeType&&r(e.id))})]})}const v=()=>{const[n,r]=d.useState([]);d.useEffect(()=>{const e=f.portalManager.subscribe((o,l)=>{r(i=>{const u=i.find(c=>c.id===o.id);return l?u?i:[...i,{...o,isOpen:l}]:i.map(c=>c.id===o.id?{...c,isOpen:!1}:c)})});return()=>{e()}},[]);const a=d.useCallback(e=>{f.portalManager.setPortalOpen(e,!1)},[]);return d.useEffect(()=>{const e=[];return n.forEach(o=>{if(!o.isOpen){const l=setTimeout(()=>{r(i=>i.filter(u=>u.id!==o.id))},300);e.push(l)}}),()=>{e.forEach(o=>clearTimeout(o))}},[n]),s.jsx(b,{children:n.map(e=>{var o;if(!e.isOpen)return null;switch(e.type){case"modal":return s.jsx(m.ModalForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),a(e.id)},description:(o=e.props.description)==null?void 0:o.toString()},e.id);case"alert":return s.jsx(m.AlertForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),a(e.id)}},e.id);case"dialog":return s.jsx(m.DialogForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),a(e.id)}},e.id);case"custom":return s.jsx(m.FreeForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),a(e.id)},contents:e.props.contents},e.id);default:return null}})})},b=({children:n})=>{const[r,a]=d.useState(null);return d.useEffect(()=>{let e=document.getElementById("portal");e||(e=document.createElement("div"),e.id="portal",document.body.appendChild(e)),a(e)},[]),r?P.createPortal(n,r):null};function q(){const{toasts:n}=f.useToast();return s.jsxs(t.ToastProvider,{children:[n.map(function(r){return s.jsx(m.ToastForm,{...r})}),s.jsx(t.ToastViewport,{})]})}exports.ModalManager=E;exports.PortalProvider=v;exports.ToastManager=q;
@@ -1,189 +1,162 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { c as b, p as T, a as F, u as O } from "./use-toastmodal-BhR-ysRN.js";
3
- import { T as w, a as A, b as y, c as C, d as B, e as D, f as j, g as k, h as S, i as V } from "./index-D6lL3AG_.js";
4
- import { c as _ } from "./index-haM7BOE0.js";
5
- import { T as x, F as z, D as I, A as R, M as q } from "./toast-form-tgb0rBlD.js";
6
- import { useState as g, useEffect as m, useCallback as M } from "react";
7
- import G from "react-dom";
1
+ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
+ import { c as E, p as C, u as b } from "./use-toastmodal-BhR-ysRN.js";
3
+ import { T as v, a as F, b as w, c as h, d as N, e as O, f as D, g as j, h as y, i as k } from "./index-D6lL3AG_.js";
4
+ import { c as A } from "./index-haM7BOE0.js";
5
+ import { F as S, D as V, A as _, M as B, T as I } from "./toast-form-ICBCLWgN.js";
6
+ import { useState as T, useEffect as m, useCallback as R } from "react";
8
7
  import "./index-CEwEyzHV.js";
8
+ import q from "react-dom";
9
9
  function Z() {
10
- const { modals: n, dismiss: a } = b(), i = n.some((o) => o.open);
11
- return /* @__PURE__ */ d(w, { children: [
10
+ const { modals: n, dismiss: t } = E(), a = n.some((e) => e.open);
11
+ return /* @__PURE__ */ d(v, { children: [
12
12
  n.map(function({
13
- id: o,
14
- title: e,
15
- description: s,
16
- content: c,
17
- onConfirm: r,
18
- confirmText: u = "확인",
19
- onCancel: l,
20
- cancelText: v = "취소",
21
- size: p,
22
- contents: h,
23
- variant: E,
24
- width: P,
25
- closeType: f,
26
- ...N
13
+ id: e,
14
+ title: o,
15
+ description: i,
16
+ content: r,
17
+ onConfirm: c,
18
+ confirmText: l = "확인",
19
+ onCancel: H,
20
+ cancelText: M = "취소",
21
+ size: f,
22
+ contents: p,
23
+ variant: g,
24
+ width: x,
25
+ closeType: u,
26
+ ...P
27
27
  }) {
28
- return /* @__PURE__ */ d(A, { width: P, ...N, className: "flex flex-col gap-4", children: [
29
- /* @__PURE__ */ t(y, { children: e }),
28
+ return /* @__PURE__ */ d(F, { width: x, ...P, className: "flex flex-col gap-4", children: [
29
+ /* @__PURE__ */ s(w, { children: o }),
30
30
  /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
31
- s && /* @__PURE__ */ t(C, { className: "text-sm text-foreground", children: s }),
32
- c && /* @__PURE__ */ t(C, { children: c })
31
+ i && /* @__PURE__ */ s(h, { className: "text-sm text-foreground", children: i }),
32
+ r && /* @__PURE__ */ s(h, { children: r })
33
33
  ] }),
34
- h && /* @__PURE__ */ t(B, { children: h }),
35
- /* @__PURE__ */ d("div", { className: _("flex items-center justify-between gap-2", f && "justify-end"), children: [
36
- !f && /* @__PURE__ */ t(D, { className: "w-1/2", size: p, variant: "outline", children: v }),
37
- /* @__PURE__ */ t(
38
- j,
34
+ p && /* @__PURE__ */ s(N, { children: p }),
35
+ /* @__PURE__ */ d("div", { className: A("flex items-center justify-between gap-2", u && "justify-end"), children: [
36
+ !u && /* @__PURE__ */ s(O, { className: "w-1/2", size: f, variant: "outline", children: M }),
37
+ /* @__PURE__ */ s(
38
+ D,
39
39
  {
40
- className: f ? "" : "w-1/2",
40
+ className: u ? "" : "w-1/2",
41
41
  altText: "confirm",
42
- size: p,
43
- variant: E,
44
- onClick: r,
45
- children: u
42
+ size: f,
43
+ variant: g,
44
+ onClick: c,
45
+ children: l
46
46
  }
47
47
  )
48
48
  ] })
49
- ] }, o);
49
+ ] }, e);
50
50
  }),
51
- /* @__PURE__ */ t(
52
- k,
51
+ /* @__PURE__ */ s(
52
+ j,
53
53
  {
54
- isOpen: i ? "open" : "close",
55
- onClick: () => n.forEach((o) => !o.closeType && a(o.id))
54
+ isOpen: a ? "open" : "close",
55
+ onClick: () => n.forEach((e) => !e.closeType && t(e.id))
56
56
  }
57
57
  )
58
58
  ] });
59
59
  }
60
60
  const $ = () => {
61
- const [n, a] = g([]);
61
+ const [n, t] = T([]);
62
62
  m(() => {
63
- const e = T.subscribe((s, c) => {
64
- a((r) => {
65
- const u = r.find((l) => l.id === s.id);
66
- return c ? u ? r : [...r, { ...s, isOpen: c }] : r.map((l) => l.id === s.id ? { ...l, isOpen: !1 } : l);
63
+ const e = C.subscribe((o, i) => {
64
+ t((r) => {
65
+ const c = r.find((l) => l.id === o.id);
66
+ return i ? c ? r : [...r, { ...o, isOpen: i }] : r.map((l) => l.id === o.id ? { ...l, isOpen: !1 } : l);
67
67
  });
68
68
  });
69
69
  return () => {
70
70
  e();
71
71
  };
72
72
  }, []);
73
- const i = M((e) => {
74
- T.setPortalOpen(e, !1);
73
+ const a = R((e) => {
74
+ C.setPortalOpen(e, !1);
75
75
  }, []);
76
- m(() => {
76
+ return m(() => {
77
77
  const e = [];
78
- return n.forEach((s) => {
79
- if (!s.isOpen) {
80
- const c = setTimeout(() => {
81
- a((r) => r.filter((u) => u.id !== s.id));
78
+ return n.forEach((o) => {
79
+ if (!o.isOpen) {
80
+ const i = setTimeout(() => {
81
+ t((r) => r.filter((c) => c.id !== o.id));
82
82
  }, 300);
83
- e.push(c);
83
+ e.push(i);
84
84
  }
85
85
  }), () => {
86
- e.forEach((s) => clearTimeout(s));
86
+ e.forEach((o) => clearTimeout(o));
87
87
  };
88
- }, [n]);
89
- const o = M(
90
- (e) => {
91
- const s = e.props;
92
- F({
93
- title: s.title,
94
- description: s.description,
95
- onAction: s.onAction,
96
- actionBtnText: s.actionBtnText,
97
- closeButton: s.closeButton,
98
- variant: s.variant,
99
- position: s.position,
100
- size: s.size,
101
- className: s.className
102
- }), i(e.id);
103
- },
104
- [i]
105
- );
106
- return m(() => {
107
- n.forEach((e) => {
108
- e.type === "toast" && e.isOpen && o(e);
109
- });
110
- }, [n, o]), /* @__PURE__ */ d(H, { children: [
111
- /* @__PURE__ */ t(x, {}),
112
- n.map((e) => {
113
- var s;
114
- if (!e.isOpen) return null;
115
- switch (e.type) {
116
- case "modal":
117
- return /* @__PURE__ */ t(
118
- q,
119
- {
120
- ...e.props,
121
- onClose: () => {
122
- e.props.onClose && e.props.onClose(), i(e.id);
123
- },
124
- description: (s = e.props.description) == null ? void 0 : s.toString()
125
- },
126
- e.id
127
- );
128
- case "alert":
129
- return /* @__PURE__ */ t(
130
- R,
131
- {
132
- ...e.props,
133
- onClose: () => {
134
- e.props.onClose && e.props.onClose(), i(e.id);
135
- }
88
+ }, [n]), /* @__PURE__ */ s(G, { children: n.map((e) => {
89
+ var o;
90
+ if (!e.isOpen) return null;
91
+ switch (e.type) {
92
+ case "modal":
93
+ return /* @__PURE__ */ s(
94
+ B,
95
+ {
96
+ ...e.props,
97
+ onClose: () => {
98
+ e.props.onClose && e.props.onClose(), a(e.id);
136
99
  },
137
- e.id
138
- );
139
- case "dialog":
140
- return /* @__PURE__ */ t(
141
- I,
142
- {
143
- ...e.props,
144
- onClose: () => {
145
- e.props.onClose && e.props.onClose(), i(e.id);
146
- }
147
- },
148
- e.id
149
- );
150
- case "custom":
151
- return /* @__PURE__ */ t(
152
- z,
153
- {
154
- ...e.props,
155
- onClose: () => {
156
- e.props.onClose && e.props.onClose(), i(e.id);
157
- },
158
- contents: e.props.contents
100
+ description: (o = e.props.description) == null ? void 0 : o.toString()
101
+ },
102
+ e.id
103
+ );
104
+ case "alert":
105
+ return /* @__PURE__ */ s(
106
+ _,
107
+ {
108
+ ...e.props,
109
+ onClose: () => {
110
+ e.props.onClose && e.props.onClose(), a(e.id);
111
+ }
112
+ },
113
+ e.id
114
+ );
115
+ case "dialog":
116
+ return /* @__PURE__ */ s(
117
+ V,
118
+ {
119
+ ...e.props,
120
+ onClose: () => {
121
+ e.props.onClose && e.props.onClose(), a(e.id);
122
+ }
123
+ },
124
+ e.id
125
+ );
126
+ case "custom":
127
+ return /* @__PURE__ */ s(
128
+ S,
129
+ {
130
+ ...e.props,
131
+ onClose: () => {
132
+ e.props.onClose && e.props.onClose(), a(e.id);
159
133
  },
160
- e.id
161
- );
162
- case "toast":
163
- return null;
164
- default:
165
- return null;
166
- }
167
- })
168
- ] });
169
- }, H = ({ children: n }) => {
170
- const [a, i] = g(null);
134
+ contents: e.props.contents
135
+ },
136
+ e.id
137
+ );
138
+ default:
139
+ return null;
140
+ }
141
+ }) });
142
+ }, G = ({ children: n }) => {
143
+ const [t, a] = T(null);
171
144
  return m(() => {
172
- let o = document.getElementById("portal");
173
- o || (o = document.createElement("div"), o.id = "portal", document.body.appendChild(o)), i(o);
174
- }, []), a ? G.createPortal(n, a) : null;
145
+ let e = document.getElementById("portal");
146
+ e || (e = document.createElement("div"), e.id = "portal", document.body.appendChild(e)), a(e);
147
+ }, []), t ? q.createPortal(n, t) : null;
175
148
  };
176
- function ee() {
177
- const { toasts: n } = O();
178
- return /* @__PURE__ */ d(S, { children: [
179
- n.map(function({ id: a, title: i, description: o, onAction: e, ...s }) {
180
- return /* @__PURE__ */ t(x, { ...s });
149
+ function z() {
150
+ const { toasts: n } = b();
151
+ return /* @__PURE__ */ d(y, { children: [
152
+ n.map(function(t) {
153
+ return /* @__PURE__ */ s(I, { ...t });
181
154
  }),
182
- /* @__PURE__ */ t(V, {})
155
+ /* @__PURE__ */ s(k, {})
183
156
  ] });
184
157
  }
185
158
  export {
186
159
  Z as ModalManager,
187
160
  $ as PortalProvider,
188
- ee as ToastManager
161
+ z as ToastManager
189
162
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),t=require("./index-BydYbLSq.cjs"),n=require("./index-BoeM4gLz.cjs"),p=require("react");require("./index-z9hRvvSX.cjs");const y=require("./index-DKCqkplO.cjs");function b(i){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(l,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return l.default=i,Object.freeze(l)}const A=b(p),N=({title:i="알림",description:l,confirmText:r="확인",onConfirm:s,size:a="sm",onClose:o,theme:c="primary",children:x})=>e.jsxs(t.AlertDialog,{open:x?void 0:!0,onOpenChange:g=>{!g&&o&&o()},children:[x&&e.jsx(t.AlertDialogTrigger,{asChild:!0,children:x}),e.jsxs(t.AlertDialogContent,{size:a,className:"gap-4",children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogDescription,{className:"text-sm",children:l})]}),e.jsx(t.AlertDialogFooter,{children:e.jsx(t.AlertDialogAction,{className:n.cn(t.buttonVariants({theme:c,size:"sm"}),"w-full font-normal"),onClick:()=>{s&&s()},children:r})})]})]}),F=p.forwardRef(({id:i,title:l,description:r,onClose:s,content:a,className:o,open:c,onOpenChange:x,footer:g,children:d,...h},j)=>e.jsxs(t.Dialog,{open:d?void 0:!0,onOpenChange:m=>{!m&&s&&s()},children:[d&&e.jsx(t.DialogTrigger,{asChild:!0,children:d}),e.jsxs(t.DialogContent,{ref:j,className:n.cn("flex flex-col gap-0 px-0 py-0",o),...h,children:[e.jsxs(t.DialogHeader,{className:"sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white",children:[e.jsx(t.DialogTitle,{className:"flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]",children:l}),e.jsxs(t.DialogClose,{className:"absolute right-4 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground md:right-[30px] md:top-[25px]",children:[e.jsx(n.Icon.Cancel,{size:"16"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}),r&&e.jsx(t.DialogDescription,{children:r}),a&&e.jsx(e.Fragment,{children:a}),g&&e.jsx(t.DialogFooter,{children:g})]})]})),C=p.forwardRef(({open:i,onClose:l,className:r,contents:s,children:a,...o},c)=>e.jsxs(t.Dialog,{open:a?void 0:!0,onOpenChange:x=>{!x&&l&&l()},children:[a&&e.jsx(t.DialogTrigger,{asChild:!0,children:a}),e.jsx(t.DialogContent,{ref:c,className:n.cn("flex flex-col gap-0 px-0 py-0",r),...o,children:s&&e.jsx(e.Fragment,{children:s})})]})),T=A.forwardRef(({title:i,description:l,subDescription:r,contents:s,onConfirm:a,confirmText:o="확인",onCancel:c,cancelText:x="취소",size:g="sm",className:d,onClose:h,theme:j="primary",children:m,...u},f)=>e.jsxs(t.AlertDialog,{open:m?void 0:!0,onOpenChange:D=>{!D&&h&&h()},children:[m&&e.jsx(t.AlertDialogTrigger,{asChild:!0,children:m}),e.jsxs(t.AlertDialogContent,{size:g,className:d,...u,ref:f,children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsxs(t.FlexBox.Row,{className:"items-start justify-between gap-2",children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogCancel,{className:"mt-0 h-auto w-auto border-none p-0",children:e.jsx(n.Icon.Cancel,{size:"14",fill:y.colors.grey[600]})})]}),l&&e.jsx(t.AlertDialogDescription,{className:"text-start text-sm text-grey-800",children:l}),r&&e.jsx(t.AlertDialogDescription,{className:"text-start text-xs text-grey-600",children:r})]}),s&&e.jsx(e.Fragment,{children:s}),e.jsxs(t.AlertDialogFooter,{className:"",children:[e.jsx(t.AlertDialogCancel,{onClick:()=>{c&&c()},className:n.cn("font-normal"),children:x}),e.jsx(t.AlertDialogAction,{className:n.cn(t.buttonVariants({theme:j,size:"sm"}),"font-normal"),onClick:()=>{a&&a()},children:o})]})]})]}));function w(i){const{id:l,variant:r,title:s,closeButton:a,onAction:o,actionBtnText:c,description:x}=i,g=o&&c,d=r==="black"?"solid":"outline";return e.jsx(t.Toast,{variant:r,...i,children:e.jsxs(t.Box,{className:n.cn("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4",{"items-end":s,"pr-7":a,"justify-center":!g}),children:[e.jsxs(t.Box,{className:"flex flex-col gap-1",children:[s&&s.trim().length>0&&e.jsx(t.ToastTitle,{children:s}),e.jsx(t.ToastDescription,{children:x})]}),g&&e.jsx(t.ToastAction,{altText:l||"toast action",onClick:o,className:n.cn(t.buttonVariants({variant:d,size:"sm",theme:"secondary"}),{"border-grey-800 bg-grey-800 text-grey-50":r==="black","border-grey-50 bg-grey-50 text-grey-800":r==="white"},"px-2 py-1 text-xs"),children:c}),a&&e.jsx(t.ToastClose,{children:e.jsx(n.Icon.Cancel,{size:"10",className:n.cn({"fill-grey-600 hover:fill-grey-800":r==="white","fill-grey-100 hover:fill-white":r==="black"})})})]})},l)}exports.AlertForm=N;exports.DialogForm=F;exports.FreeForm=C;exports.ModalForm=T;exports.ToastForm=w;
@@ -7,11 +7,11 @@ import "./index-CEwEyzHV.js";
7
7
  import { c as W } from "./index-BFsbj9HY.js";
8
8
  const te = ({
9
9
  title: d = "알림",
10
- description: s,
11
- confirmText: t = "확인",
12
- onConfirm: a,
10
+ description: i,
11
+ confirmText: a = "확인",
12
+ onConfirm: t,
13
13
  size: l = "sm",
14
- onClose: i,
14
+ onClose: s,
15
15
  theme: o = "primary",
16
16
  children: n
17
17
  }) => /* @__PURE__ */ r(
@@ -19,47 +19,47 @@ const te = ({
19
19
  {
20
20
  open: n ? void 0 : !0,
21
21
  onOpenChange: (c) => {
22
- !c && i && i();
22
+ !c && s && s();
23
23
  },
24
24
  children: [
25
25
  n && /* @__PURE__ */ e(A, { asChild: !0, children: n }),
26
26
  /* @__PURE__ */ r(C, { size: l, className: "gap-4", children: [
27
27
  /* @__PURE__ */ r(T, { children: [
28
28
  /* @__PURE__ */ e(v, { children: d }),
29
- /* @__PURE__ */ e(x, { className: "text-sm", children: s })
29
+ /* @__PURE__ */ e(x, { className: "text-sm", children: i })
30
30
  ] }),
31
31
  /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(
32
32
  k,
33
33
  {
34
34
  className: m(y({ theme: o, size: "sm" }), "w-full font-normal"),
35
35
  onClick: () => {
36
- a && a();
36
+ t && t();
37
37
  },
38
- children: t
38
+ children: a
39
39
  }
40
40
  ) })
41
41
  ] })
42
42
  ]
43
43
  }
44
44
  ), re = S.forwardRef(
45
- ({ id: d, title: s, description: t, onClose: a, content: l, className: i, open: o, onOpenChange: n, footer: c, children: p, ...g }, f) => /* @__PURE__ */ r(
45
+ ({ id: d, title: i, description: a, onClose: t, content: l, className: s, open: o, onOpenChange: n, footer: c, children: p, ...h }, f) => /* @__PURE__ */ r(
46
46
  j,
47
47
  {
48
48
  open: p ? void 0 : !0,
49
- onOpenChange: (h) => {
50
- !h && a && a();
49
+ onOpenChange: (g) => {
50
+ !g && t && t();
51
51
  },
52
52
  children: [
53
53
  p && /* @__PURE__ */ e(z, { asChild: !0, children: p }),
54
- /* @__PURE__ */ r(B, { ref: f, className: m("flex flex-col gap-0 px-0 py-0", i), ...g, children: [
54
+ /* @__PURE__ */ r(B, { ref: f, className: m("flex flex-col gap-0 px-0 py-0", s), ...h, children: [
55
55
  /* @__PURE__ */ r(I, { className: "sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white", children: [
56
- /* @__PURE__ */ e(M, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: s }),
56
+ /* @__PURE__ */ e(M, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: i }),
57
57
  /* @__PURE__ */ r(V, { className: "absolute right-4 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground md:right-[30px] md:top-[25px]", children: [
58
58
  /* @__PURE__ */ e(D.Cancel, { size: "16" }),
59
59
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
60
60
  ] })
61
61
  ] }),
62
- t && /* @__PURE__ */ e(_, { children: t }),
62
+ a && /* @__PURE__ */ e(_, { children: a }),
63
63
  l && /* @__PURE__ */ e(u, { children: l }),
64
64
  c && /* @__PURE__ */ e(q, { children: c })
65
65
  ] })
@@ -67,54 +67,54 @@ const te = ({
67
67
  }
68
68
  )
69
69
  ), le = U(
70
- ({ open: d, onClose: s, className: t, contents: a, children: l, ...i }, o) => /* @__PURE__ */ r(
70
+ ({ open: d, onClose: i, className: a, contents: t, children: l, ...s }, o) => /* @__PURE__ */ r(
71
71
  j,
72
72
  {
73
73
  open: l ? void 0 : !0,
74
74
  onOpenChange: (n) => {
75
- !n && s && s();
75
+ !n && i && i();
76
76
  },
77
77
  children: [
78
78
  l && /* @__PURE__ */ e(z, { asChild: !0, children: l }),
79
- /* @__PURE__ */ e(B, { ref: o, className: m("flex flex-col gap-0 px-0 py-0", t), ...i, children: a && /* @__PURE__ */ e(u, { children: a }) })
79
+ /* @__PURE__ */ e(B, { ref: o, className: m("flex flex-col gap-0 px-0 py-0", a), ...s, children: t && /* @__PURE__ */ e(u, { children: t }) })
80
80
  ]
81
81
  }
82
82
  )
83
- ), se = Q.forwardRef(
83
+ ), ie = Q.forwardRef(
84
84
  ({
85
85
  title: d,
86
- description: s,
87
- subDescription: t,
88
- contents: a,
86
+ description: i,
87
+ subDescription: a,
88
+ contents: t,
89
89
  onConfirm: l,
90
- confirmText: i = "확인",
90
+ confirmText: s = "확인",
91
91
  onCancel: o,
92
92
  cancelText: n = "취소",
93
93
  size: c = "sm",
94
94
  className: p,
95
- onClose: g,
95
+ onClose: h,
96
96
  theme: f = "primary",
97
- children: h,
97
+ children: g,
98
98
  ...R
99
99
  }, O) => /* @__PURE__ */ r(
100
100
  w,
101
101
  {
102
- open: h ? void 0 : !0,
102
+ open: g ? void 0 : !0,
103
103
  onOpenChange: (H) => {
104
- !H && g && g();
104
+ !H && h && h();
105
105
  },
106
106
  children: [
107
- h && /* @__PURE__ */ e(A, { asChild: !0, children: h }),
107
+ g && /* @__PURE__ */ e(A, { asChild: !0, children: g }),
108
108
  /* @__PURE__ */ r(C, { size: c, className: p, ...R, ref: O, children: [
109
109
  /* @__PURE__ */ r(T, { children: [
110
110
  /* @__PURE__ */ r(E.Row, { className: "items-start justify-between gap-2", children: [
111
111
  /* @__PURE__ */ e(v, { children: d }),
112
112
  /* @__PURE__ */ e(N, { className: "mt-0 h-auto w-auto border-none p-0", children: /* @__PURE__ */ e(D.Cancel, { size: "14", fill: W.grey[600] }) })
113
113
  ] }),
114
- s && /* @__PURE__ */ e(x, { className: "text-start text-sm text-grey-800", children: s }),
115
- t && /* @__PURE__ */ e(x, { className: "text-start text-xs text-grey-600", children: t })
114
+ i && /* @__PURE__ */ e(x, { className: "text-start text-sm text-grey-800", children: i }),
115
+ a && /* @__PURE__ */ e(x, { className: "text-start text-xs text-grey-600", children: a })
116
116
  ] }),
117
- a && /* @__PURE__ */ e(u, { children: a }),
117
+ t && /* @__PURE__ */ e(u, { children: t }),
118
118
  /* @__PURE__ */ r(F, { className: "", children: [
119
119
  /* @__PURE__ */ e(
120
120
  N,
@@ -133,7 +133,7 @@ const te = ({
133
133
  onClick: () => {
134
134
  l && l();
135
135
  },
136
- children: i
136
+ children: s
137
137
  }
138
138
  )
139
139
  ] })
@@ -142,30 +142,31 @@ const te = ({
142
142
  }
143
143
  )
144
144
  );
145
- function ie(d) {
146
- const { id: s, variant: t, title: a, closeButton: l, onAction: i, actionBtnText: o, description: n } = d, c = i && o, p = t === "black" ? "solid" : "outline";
147
- return /* @__PURE__ */ e(G, { variant: t, ...d, children: /* @__PURE__ */ r(
145
+ function se(d) {
146
+ const { id: i, variant: a, title: t, closeButton: l, onAction: s, actionBtnText: o, description: n } = d, c = s && o, p = a === "black" ? "solid" : "outline";
147
+ return /* @__PURE__ */ e(G, { variant: a, ...d, children: /* @__PURE__ */ r(
148
148
  b,
149
149
  {
150
150
  className: m("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4", {
151
- "items-end": a,
151
+ "items-end": t,
152
152
  "pr-7": l,
153
153
  "justify-center": !c
154
154
  }),
155
155
  children: [
156
156
  /* @__PURE__ */ r(b, { className: "flex flex-col gap-1", children: [
157
- a && a.trim().length > 0 && /* @__PURE__ */ e(J, { children: a }),
157
+ t && t.trim().length > 0 && /* @__PURE__ */ e(J, { children: t }),
158
158
  /* @__PURE__ */ e(K, { children: n })
159
159
  ] }),
160
160
  c && /* @__PURE__ */ e(
161
161
  L,
162
162
  {
163
- altText: s || "toast action",
164
- onClick: i,
163
+ altText: i || "toast action",
164
+ onClick: s,
165
165
  className: m(
166
166
  y({ variant: p, size: "sm", theme: "secondary" }),
167
167
  {
168
- "border-grey-600": t === "black"
168
+ "border-grey-800 bg-grey-800 text-grey-50": a === "black",
169
+ "border-grey-50 bg-grey-50 text-grey-800": a === "white"
169
170
  },
170
171
  "px-2 py-1 text-xs"
171
172
  ),
@@ -177,19 +178,19 @@ function ie(d) {
177
178
  {
178
179
  size: "10",
179
180
  className: m({
180
- "fill-grey-600 hover:fill-grey-800": t === "white",
181
- "fill-grey-100 hover:fill-white": t === "black"
181
+ "fill-grey-600 hover:fill-grey-800": a === "white",
182
+ "fill-grey-100 hover:fill-white": a === "black"
182
183
  })
183
184
  }
184
185
  ) })
185
186
  ]
186
187
  }
187
- ) }, s);
188
+ ) }, i);
188
189
  }
189
190
  export {
190
191
  te as A,
191
192
  re as D,
192
193
  le as F,
193
- se as M,
194
- ie as T
194
+ ie as M,
195
+ se as T
195
196
  };
@@ -207,8 +207,7 @@ export declare function useMetadata(url: string | null): {
207
207
  };
208
208
 
209
209
  export declare const usePortal: () => {
210
- modal: (props: ModalProps) => string | null;
211
- toast: (props: ToasterProps | string) => string | null;
210
+ confirm: (props: ModalProps) => string | null;
212
211
  alert: (props: AlertProps | string) => string | null;
213
212
  dialog: (props: DialogProps) => string | null;
214
213
  custom: (props: FreeFormProps) => string | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "boottent-design",
3
3
  "private": false,
4
- "version": "0.1.185",
4
+ "version": "0.1.187",
5
5
  "description": "부트텐트 디자인시스템 라이브러리",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),t=require("./index-BydYbLSq.cjs"),o=require("./index-BoeM4gLz.cjs"),h=require("react");require("./index-z9hRvvSX.cjs");const y=require("./index-DKCqkplO.cjs");function A(i){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(l,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return l.default=i,Object.freeze(l)}const b=A(h),N=({title:i="알림",description:l,confirmText:r="확인",onConfirm:s,size:a="sm",onClose:n,theme:c="primary",children:x})=>e.jsxs(t.AlertDialog,{open:x?void 0:!0,onOpenChange:d=>{!d&&n&&n()},children:[x&&e.jsx(t.AlertDialogTrigger,{asChild:!0,children:x}),e.jsxs(t.AlertDialogContent,{size:a,className:"gap-4",children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogDescription,{className:"text-sm",children:l})]}),e.jsx(t.AlertDialogFooter,{children:e.jsx(t.AlertDialogAction,{className:o.cn(t.buttonVariants({theme:c,size:"sm"}),"w-full font-normal"),onClick:()=>{s&&s()},children:r})})]})]}),F=h.forwardRef(({id:i,title:l,description:r,onClose:s,content:a,className:n,open:c,onOpenChange:x,footer:d,children:g,...j},p)=>e.jsxs(t.Dialog,{open:g?void 0:!0,onOpenChange:m=>{!m&&s&&s()},children:[g&&e.jsx(t.DialogTrigger,{asChild:!0,children:g}),e.jsxs(t.DialogContent,{ref:p,className:o.cn("flex flex-col gap-0 px-0 py-0",n),...j,children:[e.jsxs(t.DialogHeader,{className:"sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white",children:[e.jsx(t.DialogTitle,{className:"flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]",children:l}),e.jsxs(t.DialogClose,{className:"absolute right-4 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground md:right-[30px] md:top-[25px]",children:[e.jsx(o.Icon.Cancel,{size:"16"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}),r&&e.jsx(t.DialogDescription,{children:r}),a&&e.jsx(e.Fragment,{children:a}),d&&e.jsx(t.DialogFooter,{children:d})]})]})),C=h.forwardRef(({open:i,onClose:l,className:r,contents:s,children:a,...n},c)=>e.jsxs(t.Dialog,{open:a?void 0:!0,onOpenChange:x=>{!x&&l&&l()},children:[a&&e.jsx(t.DialogTrigger,{asChild:!0,children:a}),e.jsx(t.DialogContent,{ref:c,className:o.cn("flex flex-col gap-0 px-0 py-0",r),...n,children:s&&e.jsx(e.Fragment,{children:s})})]})),T=b.forwardRef(({title:i,description:l,subDescription:r,contents:s,onConfirm:a,confirmText:n="확인",onCancel:c,cancelText:x="취소",size:d="sm",className:g,onClose:j,theme:p="primary",children:m,...u},f)=>e.jsxs(t.AlertDialog,{open:m?void 0:!0,onOpenChange:D=>{!D&&j&&j()},children:[m&&e.jsx(t.AlertDialogTrigger,{asChild:!0,children:m}),e.jsxs(t.AlertDialogContent,{size:d,className:g,...u,ref:f,children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsxs(t.FlexBox.Row,{className:"items-start justify-between gap-2",children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogCancel,{className:"mt-0 h-auto w-auto border-none p-0",children:e.jsx(o.Icon.Cancel,{size:"14",fill:y.colors.grey[600]})})]}),l&&e.jsx(t.AlertDialogDescription,{className:"text-start text-sm text-grey-800",children:l}),r&&e.jsx(t.AlertDialogDescription,{className:"text-start text-xs text-grey-600",children:r})]}),s&&e.jsx(e.Fragment,{children:s}),e.jsxs(t.AlertDialogFooter,{className:"",children:[e.jsx(t.AlertDialogCancel,{onClick:()=>{c&&c()},className:o.cn("font-normal"),children:x}),e.jsx(t.AlertDialogAction,{className:o.cn(t.buttonVariants({theme:p,size:"sm"}),"font-normal"),onClick:()=>{a&&a()},children:n})]})]})]}));function w(i){const{id:l,variant:r,title:s,closeButton:a,onAction:n,actionBtnText:c,description:x}=i,d=n&&c,g=r==="black"?"solid":"outline";return e.jsx(t.Toast,{variant:r,...i,children:e.jsxs(t.Box,{className:o.cn("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4",{"items-end":s,"pr-7":a,"justify-center":!d}),children:[e.jsxs(t.Box,{className:"flex flex-col gap-1",children:[s&&s.trim().length>0&&e.jsx(t.ToastTitle,{children:s}),e.jsx(t.ToastDescription,{children:x})]}),d&&e.jsx(t.ToastAction,{altText:l||"toast action",onClick:n,className:o.cn(t.buttonVariants({variant:g,size:"sm",theme:"secondary"}),{"border-grey-600":r==="black"},"px-2 py-1 text-xs"),children:c}),a&&e.jsx(t.ToastClose,{children:e.jsx(o.Icon.Cancel,{size:"10",className:o.cn({"fill-grey-600 hover:fill-grey-800":r==="white","fill-grey-100 hover:fill-white":r==="black"})})})]})},l)}exports.AlertForm=N;exports.DialogForm=F;exports.FreeForm=C;exports.ModalForm=T;exports.ToastForm=w;