boottent-design 0.1.182 → 0.1.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +1 -1
- package/dist/provider.cjs.js +1 -1
- package/dist/provider.es.js +1 -1
- package/dist/toast-form-CAtNvqG5.cjs +1 -0
- package/dist/toast-form-W87kCvry.js +203 -0
- package/dist/types/components.d.ts +2 -1
- package/dist/types/hooks.d.ts +2 -1
- package/dist/types/types.d.ts +2 -1
- package/package.json +1 -1
- package/dist/toast-form-B5XOXdWm.js +0 -193
- package/dist/toast-form-wOEE31ER.cjs +0 -1
package/dist/components.cjs.js
CHANGED
|
@@ -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-DO2H40nY.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-wOEE31ER.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-DO2H40nY.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-CAtNvqG5.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(`
|
package/dist/components.es.js
CHANGED
|
@@ -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-
|
|
11
|
+
import { A as iS, D as rS, F as sS, M as oS, T as aS } from "./toast-form-W87kCvry.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/provider.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=require("./toast-form-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=require("./toast-form-CAtNvqG5.cjs"),p=require("./use-toast-CMqCb_5N.cjs"),n=require("react"),m=require("./portal-manager-CfN0m-a6.cjs");require("./index-BoeM4gLz.cjs");const C=require("react-dom"),E=()=>{const[r,u]=n.useState([]);n.useEffect(()=>{const e=m.portalManager.subscribe((s,d)=>{u(i=>{const f=i.find(a=>a.id===s.id);return d?f?i:[...i,{...s,isOpen:d}]:i.map(a=>a.id===s.id?{...a,isOpen:!1}:a)})});return()=>{e()}},[]);const t=n.useCallback(e=>{m.portalManager.setPortalOpen(e,!1)},[]);n.useEffect(()=>{const e=[];return r.forEach(s=>{if(!s.isOpen){const d=setTimeout(()=>{u(i=>i.filter(f=>f.id!==s.id))},300);e.push(d)}}),()=>{e.forEach(s=>clearTimeout(s))}},[r]);const o=n.useCallback(e=>{const s=e.props;p.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}),t(e.id)},[t]);return n.useEffect(()=>{r.forEach(e=>{e.type==="toast"&&e.isOpen&&o(e)})},[r,o]),c.jsxs(g,{children:[c.jsx(l.ToastForm,{}),r.map(e=>{var s;if(!e.isOpen)return null;switch(e.type){case"modal":return c.jsx(l.ModalForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)},description:(s=e.props.description)==null?void 0:s.toString()},e.id);case"alert":return c.jsx(l.AlertForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)}},e.id);case"dialog":return c.jsx(l.DialogForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)}},e.id);case"custom":return c.jsx(l.FreeForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)},contents:e.props.contents},e.id);case"toast":return null;default:return null}})]})},g=({children:r})=>{const[u,t]=n.useState(null);return n.useEffect(()=>{let o=document.getElementById("portal");o||(o=document.createElement("div"),o.id="portal",document.body.appendChild(o)),t(o)},[]),u?C.createPortal(r,u):null};exports.PortalProvider=E;
|
package/dist/provider.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as C, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { T as h, F as E, D as F, A as P, M as T } from "./toast-form-
|
|
2
|
+
import { T as h, F as E, D as F, A as P, M as T } from "./toast-form-W87kCvry.js";
|
|
3
3
|
import { t as b } from "./use-toast-C2k0XaPV.js";
|
|
4
4
|
import { useState as f, useEffect as a, useCallback as m } from "react";
|
|
5
5
|
import { p } from "./portal-manager-CHYJ8sxF.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),t=require("./index-DO2H40nY.cjs"),c=require("./index-BoeM4gLz.cjs"),u=require("react");require("./index-z9hRvvSX.cjs");const D=require("./index-DKCqkplO.cjs"),b=require("./use-toast-CMqCb_5N.cjs");function y(i){const n=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(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const A=y(u),N=({title:i="알림",description:n,confirmText:r="확인",onConfirm:s,size:l="sm",onClose:a,theme:o="primary"})=>e.jsx(t.AlertDialog,{open:!0,onOpenChange:m=>{!m&&a&&a()},children:e.jsxs(t.AlertDialogContent,{size:l,className:"gap-4",children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogDescription,{className:"text-sm",children:n})]}),e.jsx(t.AlertDialogFooter,{children:e.jsx(t.AlertDialogAction,{className:c.cn(t.buttonVariants({theme:o,size:"sm"}),"w-full font-normal"),onClick:()=>{s&&s()},children:r})})]})}),F=u.forwardRef(({id:i,title:n,description:r,onClose:s,content:l,className:a,open:o,onOpenChange:m,footer:d,...g},p)=>e.jsx(t.Dialog,{open:!0,onOpenChange:x=>{!x&&s&&s()},children:e.jsxs(t.DialogContent,{ref:p,className:c.cn("flex flex-col gap-0 px-0 py-0",a),...g,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:n}),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(c.Icon.Cancel,{size:"16"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}),r&&e.jsx(t.DialogDescription,{children:r}),l&&e.jsx(e.Fragment,{children:l}),d&&e.jsx(t.DialogFooter,{children:d})]})})),T=u.forwardRef(({open:i,onClose:n,className:r,contents:s,...l},a)=>e.jsx(t.Dialog,{open:!0,onOpenChange:o=>{!o&&n&&n()},children:e.jsx(t.DialogContent,{ref:a,className:c.cn("flex flex-col gap-0 px-0 py-0",r),...l,children:s&&e.jsx(e.Fragment,{children:s})})})),w=A.forwardRef(({title:i,description:n,subDescription:r,contents:s,onConfirm:l,confirmText:a="확인",onCancel:o,cancelText:m="취소",size:d="sm",className:g,onClose:p,theme:x="primary",...j},f)=>e.jsx(t.AlertDialog,{open:!0,onOpenChange:h=>{!h&&p&&p()},children:e.jsxs(t.AlertDialogContent,{size:d,className:g,...j,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(c.Icon.Cancel,{size:"14",fill:D.colors.grey[600]})})]}),n&&e.jsx(t.AlertDialogDescription,{className:"text-start text-sm text-grey-800",children:n}),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:()=>{o&&o()},className:c.cn("font-normal"),children:m}),e.jsx(t.AlertDialogAction,{className:c.cn(t.buttonVariants({theme:x,size:"sm"}),"font-normal"),onClick:()=>{l&&l()},children:a})]})]})}));function C(){const{toasts:i}=b.toaster(),n=i.reduce((r,s)=>{const l=s.position||"top-center";return r[l]||(r[l]=[]),r[l].push(s),r},{});return e.jsx(u.Fragment,{children:Object.entries(n).map(([r,s])=>e.jsxs(t.ToastProvider,{children:[e.jsx(t.ToastViewport,{position:r}),s.map(function(l){const{id:a,title:o,description:m,onAction:d,actionBtnText:g="확인",closeButton:p=!1,variant:x="black",...j}=l,f=x==="black"?"solid":"outline",h=d&&g;return e.jsx(t.Toast,{variant:x,...j,children:e.jsxs(t.Box,{className:c.cn("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4",{"items-end":o,"pr-7":p,"justify-center":!h}),children:[e.jsxs(t.Box,{className:"flex flex-col gap-1",children:[o&&o.trim().length>0&&e.jsx(t.ToastTitle,{children:o}),e.jsx(t.ToastDescription,{children:m})]}),h&&e.jsx(t.ToastAction,{altText:a||"toast action",onClick:d,className:c.cn(t.buttonVariants({variant:f,size:"sm",theme:"secondary"}),{"border-grey-600":x==="black"},"px-2 py-1 text-xs"),children:g}),p&&e.jsx(t.ToastClose,{children:e.jsx(c.Icon.Cancel,{size:"10",className:c.cn({"fill-grey-600 hover:fill-grey-800":x==="white","fill-grey-100 hover:fill-white":x==="black"})})})]})},a)})]},r))})}exports.AlertForm=N;exports.DialogForm=F;exports.FreeForm=T;exports.ModalForm=w;exports.ToastForm=C;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { A, a as F, b as C, c as k, d as y, e as j, f as v, g as N, D as z, h as B, i as O, j as R, k as V, l as H, m as I, F as M, n as w, T as _, o as q, p as P, B as T, q as $, r as E, s as G, t as J } from "./index-DERz-mZx.js";
|
|
3
|
+
import { c, I as b } from "./index-haM7BOE0.js";
|
|
4
|
+
import * as K from "react";
|
|
5
|
+
import L, { forwardRef as Q, Fragment as S } from "react";
|
|
6
|
+
import "./index-CEwEyzHV.js";
|
|
7
|
+
import { c as U } from "./index-BFsbj9HY.js";
|
|
8
|
+
import { a as W } from "./use-toast-C2k0XaPV.js";
|
|
9
|
+
const se = ({
|
|
10
|
+
title: d = "알림",
|
|
11
|
+
description: i,
|
|
12
|
+
confirmText: a = "확인",
|
|
13
|
+
onConfirm: t,
|
|
14
|
+
size: r = "sm",
|
|
15
|
+
onClose: o,
|
|
16
|
+
theme: s = "primary"
|
|
17
|
+
}) => /* @__PURE__ */ e(
|
|
18
|
+
A,
|
|
19
|
+
{
|
|
20
|
+
open: !0,
|
|
21
|
+
onOpenChange: (h) => {
|
|
22
|
+
!h && o && o();
|
|
23
|
+
},
|
|
24
|
+
children: /* @__PURE__ */ l(F, { size: r, className: "gap-4", children: [
|
|
25
|
+
/* @__PURE__ */ l(C, { children: [
|
|
26
|
+
/* @__PURE__ */ e(k, { children: d }),
|
|
27
|
+
/* @__PURE__ */ e(y, { className: "text-sm", children: i })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
|
|
30
|
+
v,
|
|
31
|
+
{
|
|
32
|
+
className: c(N({ theme: s, size: "sm" }), "w-full font-normal"),
|
|
33
|
+
onClick: () => {
|
|
34
|
+
t && t();
|
|
35
|
+
},
|
|
36
|
+
children: a
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
39
|
+
] })
|
|
40
|
+
}
|
|
41
|
+
), le = L.forwardRef(
|
|
42
|
+
({ id: d, title: i, description: a, onClose: t, content: r, className: o, open: s, onOpenChange: h, footer: m, ...f }, p) => /* @__PURE__ */ e(
|
|
43
|
+
z,
|
|
44
|
+
{
|
|
45
|
+
open: !0,
|
|
46
|
+
onOpenChange: (n) => {
|
|
47
|
+
!n && t && t();
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ l(B, { ref: p, className: c("flex flex-col gap-0 px-0 py-0", o), ...f, children: [
|
|
50
|
+
/* @__PURE__ */ l(O, { className: "sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white", children: [
|
|
51
|
+
/* @__PURE__ */ e(R, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: i }),
|
|
52
|
+
/* @__PURE__ */ l(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: [
|
|
53
|
+
/* @__PURE__ */ e(b.Cancel, { size: "16" }),
|
|
54
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
a && /* @__PURE__ */ e(H, { children: a }),
|
|
58
|
+
r && /* @__PURE__ */ e(D, { children: r }),
|
|
59
|
+
m && /* @__PURE__ */ e(I, { children: m })
|
|
60
|
+
] })
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
), ie = Q(
|
|
64
|
+
({ open: d, onClose: i, className: a, contents: t, ...r }, o) => /* @__PURE__ */ e(
|
|
65
|
+
z,
|
|
66
|
+
{
|
|
67
|
+
open: !0,
|
|
68
|
+
onOpenChange: (s) => {
|
|
69
|
+
!s && i && i();
|
|
70
|
+
},
|
|
71
|
+
children: /* @__PURE__ */ e(B, { ref: o, className: c("flex flex-col gap-0 px-0 py-0", a), ...r, children: t && /* @__PURE__ */ e(D, { children: t }) })
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
), oe = K.forwardRef(
|
|
75
|
+
({
|
|
76
|
+
title: d,
|
|
77
|
+
description: i,
|
|
78
|
+
subDescription: a,
|
|
79
|
+
contents: t,
|
|
80
|
+
onConfirm: r,
|
|
81
|
+
confirmText: o = "확인",
|
|
82
|
+
onCancel: s,
|
|
83
|
+
cancelText: h = "취소",
|
|
84
|
+
size: m = "sm",
|
|
85
|
+
className: f,
|
|
86
|
+
onClose: p,
|
|
87
|
+
theme: n = "primary",
|
|
88
|
+
...x
|
|
89
|
+
}, u) => /* @__PURE__ */ e(
|
|
90
|
+
A,
|
|
91
|
+
{
|
|
92
|
+
open: !0,
|
|
93
|
+
onOpenChange: (g) => {
|
|
94
|
+
!g && p && p();
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ l(F, { size: m, className: f, ...x, ref: u, children: [
|
|
97
|
+
/* @__PURE__ */ l(C, { children: [
|
|
98
|
+
/* @__PURE__ */ l(M.Row, { className: "items-start justify-between gap-2", children: [
|
|
99
|
+
/* @__PURE__ */ e(k, { children: d }),
|
|
100
|
+
/* @__PURE__ */ e(w, { className: "mt-0 h-auto w-auto border-none p-0", children: /* @__PURE__ */ e(b.Cancel, { size: "14", fill: U.grey[600] }) })
|
|
101
|
+
] }),
|
|
102
|
+
i && /* @__PURE__ */ e(y, { className: "text-start text-sm text-grey-800", children: i }),
|
|
103
|
+
a && /* @__PURE__ */ e(y, { className: "text-start text-xs text-grey-600", children: a })
|
|
104
|
+
] }),
|
|
105
|
+
t && /* @__PURE__ */ e(D, { children: t }),
|
|
106
|
+
/* @__PURE__ */ l(j, { className: "", children: [
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
w,
|
|
109
|
+
{
|
|
110
|
+
onClick: () => {
|
|
111
|
+
s && s();
|
|
112
|
+
},
|
|
113
|
+
className: c("font-normal"),
|
|
114
|
+
children: h
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
118
|
+
v,
|
|
119
|
+
{
|
|
120
|
+
className: c(N({ theme: n, size: "sm" }), "font-normal"),
|
|
121
|
+
onClick: () => {
|
|
122
|
+
r && r();
|
|
123
|
+
},
|
|
124
|
+
children: o
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] })
|
|
128
|
+
] })
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
function ne() {
|
|
133
|
+
const { toasts: d } = W(), i = d.reduce(
|
|
134
|
+
(a, t) => {
|
|
135
|
+
const r = t.position || "top-center";
|
|
136
|
+
return a[r] || (a[r] = []), a[r].push(t), a;
|
|
137
|
+
},
|
|
138
|
+
{}
|
|
139
|
+
);
|
|
140
|
+
return /* @__PURE__ */ e(S, { children: Object.entries(i).map(([a, t]) => /* @__PURE__ */ l(_, { children: [
|
|
141
|
+
/* @__PURE__ */ e(q, { position: a }),
|
|
142
|
+
t.map(function(r) {
|
|
143
|
+
const {
|
|
144
|
+
id: o,
|
|
145
|
+
title: s,
|
|
146
|
+
description: h,
|
|
147
|
+
onAction: m,
|
|
148
|
+
actionBtnText: f = "확인",
|
|
149
|
+
closeButton: p = !1,
|
|
150
|
+
variant: n = "black",
|
|
151
|
+
...x
|
|
152
|
+
} = r, u = n === "black" ? "solid" : "outline", g = m && f;
|
|
153
|
+
return /* @__PURE__ */ e(P, { variant: n, ...x, children: /* @__PURE__ */ l(
|
|
154
|
+
T,
|
|
155
|
+
{
|
|
156
|
+
className: c("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4", {
|
|
157
|
+
"items-end": s,
|
|
158
|
+
"pr-7": p,
|
|
159
|
+
"justify-center": !g
|
|
160
|
+
}),
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ l(T, { className: "flex flex-col gap-1", children: [
|
|
163
|
+
s && s.trim().length > 0 && /* @__PURE__ */ e($, { children: s }),
|
|
164
|
+
/* @__PURE__ */ e(E, { children: h })
|
|
165
|
+
] }),
|
|
166
|
+
g && /* @__PURE__ */ e(
|
|
167
|
+
G,
|
|
168
|
+
{
|
|
169
|
+
altText: o || "toast action",
|
|
170
|
+
onClick: m,
|
|
171
|
+
className: c(
|
|
172
|
+
N({ variant: u, size: "sm", theme: "secondary" }),
|
|
173
|
+
{
|
|
174
|
+
"border-grey-600": n === "black"
|
|
175
|
+
},
|
|
176
|
+
"px-2 py-1 text-xs"
|
|
177
|
+
),
|
|
178
|
+
children: f
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
p && /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(
|
|
182
|
+
b.Cancel,
|
|
183
|
+
{
|
|
184
|
+
size: "10",
|
|
185
|
+
className: c({
|
|
186
|
+
"fill-grey-600 hover:fill-grey-800": n === "white",
|
|
187
|
+
"fill-grey-100 hover:fill-white": n === "black"
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
) })
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
) }, o);
|
|
194
|
+
})
|
|
195
|
+
] }, a)) });
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
se as A,
|
|
199
|
+
le as D,
|
|
200
|
+
ie as F,
|
|
201
|
+
oe as M,
|
|
202
|
+
ne as T
|
|
203
|
+
};
|
|
@@ -390,8 +390,9 @@ declare interface ModalProps {
|
|
|
390
390
|
description?: string | default_2.ReactNode;
|
|
391
391
|
subDescription?: string | default_2.ReactNode;
|
|
392
392
|
size?: "sm" | "md" | "lg" | "fit";
|
|
393
|
-
confirmText?: string;
|
|
394
393
|
onConfirm?: () => void;
|
|
394
|
+
confirmText?: string;
|
|
395
|
+
onCancel?: () => void;
|
|
395
396
|
cancelText?: string;
|
|
396
397
|
onClose?: () => void;
|
|
397
398
|
contents?: default_2.ReactNode;
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -84,8 +84,9 @@ declare interface ModalProps {
|
|
|
84
84
|
description?: string | default_2.ReactNode;
|
|
85
85
|
subDescription?: string | default_2.ReactNode;
|
|
86
86
|
size?: "sm" | "md" | "lg" | "fit";
|
|
87
|
-
confirmText?: string;
|
|
88
87
|
onConfirm?: () => void;
|
|
88
|
+
confirmText?: string;
|
|
89
|
+
onCancel?: () => void;
|
|
89
90
|
cancelText?: string;
|
|
90
91
|
onClose?: () => void;
|
|
91
92
|
contents?: default_2.ReactNode;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -180,8 +180,9 @@ export declare interface ModalProps {
|
|
|
180
180
|
description?: string | default_2.ReactNode;
|
|
181
181
|
subDescription?: string | default_2.ReactNode;
|
|
182
182
|
size?: "sm" | "md" | "lg" | "fit";
|
|
183
|
-
confirmText?: string;
|
|
184
183
|
onConfirm?: () => void;
|
|
184
|
+
confirmText?: string;
|
|
185
|
+
onCancel?: () => void;
|
|
185
186
|
cancelText?: string;
|
|
186
187
|
onClose?: () => void;
|
|
187
188
|
contents?: default_2.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { A, a as F, b as C, c as j, d as u, e as k, f as v, g as D, D as z, h as B, i as O, j as R, k as V, l as H, m as I, F as M, n as w, T as _, o as q, p as P, B as T, q as $, r as E, s as G, t as J } from "./index-DERz-mZx.js";
|
|
3
|
-
import { c, I as N } from "./index-haM7BOE0.js";
|
|
4
|
-
import * as K from "react";
|
|
5
|
-
import L, { forwardRef as Q, Fragment as S } from "react";
|
|
6
|
-
import "./index-CEwEyzHV.js";
|
|
7
|
-
import { c as U } from "./index-BFsbj9HY.js";
|
|
8
|
-
import { a as W } from "./use-toast-C2k0XaPV.js";
|
|
9
|
-
const se = ({
|
|
10
|
-
title: d = "알림",
|
|
11
|
-
description: l,
|
|
12
|
-
confirmText: a = "확인",
|
|
13
|
-
onConfirm: t,
|
|
14
|
-
size: r = "sm",
|
|
15
|
-
onClose: i,
|
|
16
|
-
theme: n = "primary"
|
|
17
|
-
}) => /* @__PURE__ */ e(
|
|
18
|
-
A,
|
|
19
|
-
{
|
|
20
|
-
open: !0,
|
|
21
|
-
onOpenChange: (h) => {
|
|
22
|
-
!h && i && i();
|
|
23
|
-
},
|
|
24
|
-
children: /* @__PURE__ */ s(F, { size: r, className: "gap-4", children: [
|
|
25
|
-
/* @__PURE__ */ s(C, { children: [
|
|
26
|
-
/* @__PURE__ */ e(j, { children: d }),
|
|
27
|
-
/* @__PURE__ */ e(u, { className: "text-sm", children: l })
|
|
28
|
-
] }),
|
|
29
|
-
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
30
|
-
v,
|
|
31
|
-
{
|
|
32
|
-
className: c(D({ theme: n, size: "sm" }), "w-full font-normal"),
|
|
33
|
-
onClick: () => {
|
|
34
|
-
t && t();
|
|
35
|
-
},
|
|
36
|
-
children: a
|
|
37
|
-
}
|
|
38
|
-
) })
|
|
39
|
-
] })
|
|
40
|
-
}
|
|
41
|
-
), le = L.forwardRef(
|
|
42
|
-
({ id: d, title: l, description: a, onClose: t, content: r, className: i, open: n, onOpenChange: h, footer: m, ...p }, f) => /* @__PURE__ */ e(
|
|
43
|
-
z,
|
|
44
|
-
{
|
|
45
|
-
open: !0,
|
|
46
|
-
onOpenChange: (o) => {
|
|
47
|
-
!o && t && t();
|
|
48
|
-
},
|
|
49
|
-
children: /* @__PURE__ */ s(B, { ref: f, className: c("flex flex-col gap-0 px-0 py-0", i), ...p, children: [
|
|
50
|
-
/* @__PURE__ */ s(O, { className: "sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white", children: [
|
|
51
|
-
/* @__PURE__ */ e(R, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: l }),
|
|
52
|
-
/* @__PURE__ */ s(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: [
|
|
53
|
-
/* @__PURE__ */ e(N.Cancel, { size: "16" }),
|
|
54
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
55
|
-
] })
|
|
56
|
-
] }),
|
|
57
|
-
a && /* @__PURE__ */ e(H, { children: a }),
|
|
58
|
-
r && /* @__PURE__ */ e(y, { children: r }),
|
|
59
|
-
m && /* @__PURE__ */ e(I, { children: m })
|
|
60
|
-
] })
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
), ie = Q(
|
|
64
|
-
({ open: d, onClose: l, className: a, contents: t, ...r }, i) => /* @__PURE__ */ e(
|
|
65
|
-
z,
|
|
66
|
-
{
|
|
67
|
-
open: !0,
|
|
68
|
-
onOpenChange: (n) => {
|
|
69
|
-
!n && l && l();
|
|
70
|
-
},
|
|
71
|
-
children: /* @__PURE__ */ e(B, { ref: i, className: c("flex flex-col gap-0 px-0 py-0", a), ...r, children: t && /* @__PURE__ */ e(y, { children: t }) })
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
), ne = K.forwardRef(
|
|
75
|
-
({
|
|
76
|
-
title: d,
|
|
77
|
-
description: l,
|
|
78
|
-
subDescription: a,
|
|
79
|
-
contents: t,
|
|
80
|
-
onConfirm: r,
|
|
81
|
-
confirmText: i = "확인",
|
|
82
|
-
cancelText: n = "취소",
|
|
83
|
-
size: h = "sm",
|
|
84
|
-
className: m,
|
|
85
|
-
onClose: p,
|
|
86
|
-
theme: f = "primary",
|
|
87
|
-
...o
|
|
88
|
-
}, g) => /* @__PURE__ */ e(
|
|
89
|
-
A,
|
|
90
|
-
{
|
|
91
|
-
open: !0,
|
|
92
|
-
onOpenChange: (x) => {
|
|
93
|
-
!x && p && p();
|
|
94
|
-
},
|
|
95
|
-
children: /* @__PURE__ */ s(F, { size: h, className: m, ...o, ref: g, children: [
|
|
96
|
-
/* @__PURE__ */ s(C, { children: [
|
|
97
|
-
/* @__PURE__ */ s(M.Row, { className: "items-start justify-between gap-2", children: [
|
|
98
|
-
/* @__PURE__ */ e(j, { children: d }),
|
|
99
|
-
/* @__PURE__ */ e(w, { className: "mt-0 h-auto w-auto border-none p-0", children: /* @__PURE__ */ e(N.Cancel, { size: "14", fill: U.grey[600] }) })
|
|
100
|
-
] }),
|
|
101
|
-
l && /* @__PURE__ */ e(u, { className: "text-start text-sm text-grey-800", children: l }),
|
|
102
|
-
a && /* @__PURE__ */ e(u, { className: "text-start text-xs text-grey-600", children: a })
|
|
103
|
-
] }),
|
|
104
|
-
t && /* @__PURE__ */ e(y, { children: t }),
|
|
105
|
-
/* @__PURE__ */ s(k, { className: "", children: [
|
|
106
|
-
/* @__PURE__ */ e(w, { className: c("font-normal"), children: n }),
|
|
107
|
-
/* @__PURE__ */ e(
|
|
108
|
-
v,
|
|
109
|
-
{
|
|
110
|
-
className: c(D({ theme: f, size: "sm" }), "font-normal"),
|
|
111
|
-
onClick: () => {
|
|
112
|
-
r && r();
|
|
113
|
-
},
|
|
114
|
-
children: i
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] })
|
|
118
|
-
] })
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
);
|
|
122
|
-
function oe() {
|
|
123
|
-
const { toasts: d } = W(), l = d.reduce(
|
|
124
|
-
(a, t) => {
|
|
125
|
-
const r = t.position || "top-center";
|
|
126
|
-
return a[r] || (a[r] = []), a[r].push(t), a;
|
|
127
|
-
},
|
|
128
|
-
{}
|
|
129
|
-
);
|
|
130
|
-
return /* @__PURE__ */ e(S, { children: Object.entries(l).map(([a, t]) => /* @__PURE__ */ s(_, { children: [
|
|
131
|
-
/* @__PURE__ */ e(q, { position: a }),
|
|
132
|
-
t.map(function(r) {
|
|
133
|
-
const {
|
|
134
|
-
id: i,
|
|
135
|
-
title: n,
|
|
136
|
-
description: h,
|
|
137
|
-
onAction: m,
|
|
138
|
-
actionBtnText: p = "확인",
|
|
139
|
-
closeButton: f = !1,
|
|
140
|
-
variant: o = "black",
|
|
141
|
-
...g
|
|
142
|
-
} = r, x = o === "black" ? "solid" : "outline", b = m && p;
|
|
143
|
-
return /* @__PURE__ */ e(P, { variant: o, ...g, children: /* @__PURE__ */ s(
|
|
144
|
-
T,
|
|
145
|
-
{
|
|
146
|
-
className: c("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4", {
|
|
147
|
-
"items-end": n,
|
|
148
|
-
"pr-7": f,
|
|
149
|
-
"justify-center": !b
|
|
150
|
-
}),
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ s(T, { className: "flex flex-col gap-1", children: [
|
|
153
|
-
n && n.trim().length > 0 && /* @__PURE__ */ e($, { children: n }),
|
|
154
|
-
/* @__PURE__ */ e(E, { children: h })
|
|
155
|
-
] }),
|
|
156
|
-
b && /* @__PURE__ */ e(
|
|
157
|
-
G,
|
|
158
|
-
{
|
|
159
|
-
altText: i || "toast action",
|
|
160
|
-
onClick: m,
|
|
161
|
-
className: c(
|
|
162
|
-
D({ variant: x, size: "sm", theme: "secondary" }),
|
|
163
|
-
{
|
|
164
|
-
"border-grey-600": o === "black"
|
|
165
|
-
},
|
|
166
|
-
"px-2 py-1 text-xs"
|
|
167
|
-
),
|
|
168
|
-
children: p
|
|
169
|
-
}
|
|
170
|
-
),
|
|
171
|
-
f && /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(
|
|
172
|
-
N.Cancel,
|
|
173
|
-
{
|
|
174
|
-
size: "10",
|
|
175
|
-
className: c({
|
|
176
|
-
"fill-grey-600 hover:fill-grey-800": o === "white",
|
|
177
|
-
"fill-grey-100 hover:fill-white": o === "black"
|
|
178
|
-
})
|
|
179
|
-
}
|
|
180
|
-
) })
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
) }, i);
|
|
184
|
-
})
|
|
185
|
-
] }, a)) });
|
|
186
|
-
}
|
|
187
|
-
export {
|
|
188
|
-
se as A,
|
|
189
|
-
le as D,
|
|
190
|
-
ie as F,
|
|
191
|
-
ne as M,
|
|
192
|
-
oe as T
|
|
193
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),t=require("./index-DO2H40nY.cjs"),c=require("./index-BoeM4gLz.cjs"),h=require("react");require("./index-z9hRvvSX.cjs");const D=require("./index-DKCqkplO.cjs"),b=require("./use-toast-CMqCb_5N.cjs");function y(i){const n=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(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const A=y(h),N=({title:i="알림",description:n,confirmText:r="확인",onConfirm:s,size:l="sm",onClose:o,theme:a="primary"})=>e.jsx(t.AlertDialog,{open:!0,onOpenChange:m=>{!m&&o&&o()},children:e.jsxs(t.AlertDialogContent,{size:l,className:"gap-4",children:[e.jsxs(t.AlertDialogHeader,{children:[e.jsx(t.AlertDialogTitle,{children:i}),e.jsx(t.AlertDialogDescription,{className:"text-sm",children:n})]}),e.jsx(t.AlertDialogFooter,{children:e.jsx(t.AlertDialogAction,{className:c.cn(t.buttonVariants({theme:a,size:"sm"}),"w-full font-normal"),onClick:()=>{s&&s()},children:r})})]})}),F=h.forwardRef(({id:i,title:n,description:r,onClose:s,content:l,className:o,open:a,onOpenChange:m,footer:d,...p},g)=>e.jsx(t.Dialog,{open:!0,onOpenChange:x=>{!x&&s&&s()},children:e.jsxs(t.DialogContent,{ref:g,className:c.cn("flex flex-col gap-0 px-0 py-0",o),...p,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:n}),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(c.Icon.Cancel,{size:"16"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}),r&&e.jsx(t.DialogDescription,{children:r}),l&&e.jsx(e.Fragment,{children:l}),d&&e.jsx(t.DialogFooter,{children:d})]})})),T=h.forwardRef(({open:i,onClose:n,className:r,contents:s,...l},o)=>e.jsx(t.Dialog,{open:!0,onOpenChange:a=>{!a&&n&&n()},children:e.jsx(t.DialogContent,{ref:o,className:c.cn("flex flex-col gap-0 px-0 py-0",r),...l,children:s&&e.jsx(e.Fragment,{children:s})})})),w=A.forwardRef(({title:i,description:n,subDescription:r,contents:s,onConfirm:l,confirmText:o="확인",cancelText:a="취소",size:m="sm",className:d,onClose:p,theme:g="primary",...x},u)=>e.jsx(t.AlertDialog,{open:!0,onOpenChange:j=>{!j&&p&&p()},children:e.jsxs(t.AlertDialogContent,{size:m,className:d,...x,ref:u,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(c.Icon.Cancel,{size:"14",fill:D.colors.grey[600]})})]}),n&&e.jsx(t.AlertDialogDescription,{className:"text-start text-sm text-grey-800",children:n}),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,{className:c.cn("font-normal"),children:a}),e.jsx(t.AlertDialogAction,{className:c.cn(t.buttonVariants({theme:g,size:"sm"}),"font-normal"),onClick:()=>{l&&l()},children:o})]})]})}));function C(){const{toasts:i}=b.toaster(),n=i.reduce((r,s)=>{const l=s.position||"top-center";return r[l]||(r[l]=[]),r[l].push(s),r},{});return e.jsx(h.Fragment,{children:Object.entries(n).map(([r,s])=>e.jsxs(t.ToastProvider,{children:[e.jsx(t.ToastViewport,{position:r}),s.map(function(l){const{id:o,title:a,description:m,onAction:d,actionBtnText:p="확인",closeButton:g=!1,variant:x="black",...u}=l,j=x==="black"?"solid":"outline",f=d&&p;return e.jsx(t.Toast,{variant:x,...u,children:e.jsxs(t.Box,{className:c.cn("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4",{"items-end":a,"pr-7":g,"justify-center":!f}),children:[e.jsxs(t.Box,{className:"flex flex-col gap-1",children:[a&&a.trim().length>0&&e.jsx(t.ToastTitle,{children:a}),e.jsx(t.ToastDescription,{children:m})]}),f&&e.jsx(t.ToastAction,{altText:o||"toast action",onClick:d,className:c.cn(t.buttonVariants({variant:j,size:"sm",theme:"secondary"}),{"border-grey-600":x==="black"},"px-2 py-1 text-xs"),children:p}),g&&e.jsx(t.ToastClose,{children:e.jsx(c.Icon.Cancel,{size:"10",className:c.cn({"fill-grey-600 hover:fill-grey-800":x==="white","fill-grey-100 hover:fill-white":x==="black"})})})]})},o)})]},r))})}exports.AlertForm=N;exports.DialogForm=F;exports.FreeForm=T;exports.ModalForm=w;exports.ToastForm=C;
|