1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9537],{13436:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/xmas-2024/invitation",function(){return e(7729)}])},7729:function(t,n,e){"use strict";e.r(n),e.d(n,{default:function(){return Z}});var i=e(52322),r=e(71024),o=e(54558),a=e(41786),c=e(75620),l=e(47092),d=e(36912),s=e(16332),u=e(35582),f=e(58601),y=e(46095),h=e(60496),x=e(5632),g=e(2784),v=e(30195),p=e(82570),m=e(76880),j=e(24426),b=e(4680),w=e(62521),Z=function(){var t;let n=(0,x.useRouter)();(0,d.w)(n.query.id,v.z.string());let e=n.query.id,{data:{gift:Z}}=(0,m.k)({queryKey:["xmas-gift-public",e],queryFn:()=>(0,j.Dk)(e)}),{data:{giftBoxes:C}}=(0,p.yP)(),k=null!==(t=C.find(t=>t.type===Z.boxType))&&void 0!==t?t:C[0];(0,f.h)(k,"giftBox not found");let[E,_]=(0,g.useState)(!1);return((0,g.useEffect)(()=>{window.location.href="tarotbora://web/app/xmas-2024/invitation?id=".concat(e)},[]),E)?(0,i.jsx)(w.Z,{gift:Z,onNext:()=>{(0,s.Y)("tarotbora://web/app/xmas-2024/invitation?id=".concat(e))}}):(0,i.jsxs)(b.V,{children:[(0,i.jsx)(r.ZP,{center:!0,style:{padding:24,textAlign:"center"},children:(0,i.jsx)(o.m,{children:(0,i.jsx)(l.Z,{typography:"t3",fontWeight:"bold",children:(0,y.t)("".concat((0,h.dd)(Z.senderName,"ì´/ê°")," í¬ë¦¬ì¤ë§ì¤ ì 물과\nì¹´ë를 ë³´ëì´ \uD83C\uDF84"))})})}),(0,i.jsx)(r.ZP,{style:{padding:24,flex:1},center:!0,children:(0,i.jsx)("img",{src:k.imageUrl,alt:"ì 물 ìì",width:300,height:300})}),(0,i.jsx)(a.Z,{size:100}),(0,i.jsx)(c.Z,{backgroundColor:u.colors.christmasSecondary,onClick:()=>{_(!0)},children:"ì´ê¸°"})]})}},69470:function(t,n,e){"use strict";var i=e(52322),r=e(89231),o=e(2784),a=e(80146),c=e(71024),l=e(54244);n.Z=function(){let{open:t}=(0,r.I)(),{width:n}=(0,l.Z)();return{confetti:(0,o.useCallback)(function(){let{zIndex:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(t=>{let{isOpen:r,close:o}=t;return!1===r?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(c.ZP,{center:!0,style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:e},children:(0,i.jsx)(a.Z,{force:1.2,height:"80vh",onComplete:o,particleCount:120,width:n})})})},[t,n])}}},75620:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(52322),r=e(70712);e(2784);var o=e(88814);e(71024);var a=function(t){let{children:n,disabled:e,backgroundColor:a,...c}=t;return(0,i.jsx)(r.k.Center,{style:{position:"fixed",bottom:"max(calc(env(safe-area-inset-bottom)), 16px)",paddingLeft:16,paddingRight:16,zIndex:100,left:0,right:0},children:(0,i.jsx)("button",{style:{width:"100%",borderRadius:14,overflow:"hidden",border:0,fontSize:18,maxWidth:600},type:"button",...c,onClick:!0===e?void 0:c.onClick,children:(0,i.jsx)(r.k.Center,{style:{padding:"18px 4px",background:!0===e?o.Z.grey300:null!=a?a:o.Z.primary,color:o.Z.white,fontWeight:"bold"},children:n})})})}},62521:function(t,n,e){"use strict";var i=e(52322),r=e(71024),o=e(54558),a=e(28047),c=e(69470),l=e(86052),d=e(42046),s=e(47092),u=e(58601),f=e(2784),y=e(82570),h=e(84934),x=e(4680),g=e(41786),v=e(25356);n.Z=function(t){var n,e,p;let{gift:m,onNext:j}=t,{confetti:b}=(0,c.Z)(),{data:{categories:w}}=(0,y.IO)(),{data:{giftBoxes:Z,letters:C}}=(0,y.yP)(),k=null!==(n=Z.find(t=>t.type===m.boxType))&&void 0!==n?n:Z[0],E=null!==(e=C.find(t=>t.type===m.letterType))&&void 0!==e?e:C[0],_=w.find(t=>t.id===m.categoryId),z=(0,l.w)(["ë©ë¦¬ í¬ë¦¬ì¤ë§ì¤!\nâ","ì ë¬¼ë¡ ë°ì ì´ì¸ë¥¼\nì½ì´ë³´ì"],1500);return(0,u.h)(_,"category not found"),(0,u.h)(k,"giftBox not found"),(0,u.h)(E,"letter not found"),(0,f.useEffect)(()=>{b({zIndex:1e3})},[]),(0,i.jsxs)(x.V,{children:[(0,i.jsx)(r.ZP,{center:!0,style:{padding:24,textAlign:"center"},children:(0,i.jsx)(o.m,{children:(0,i.jsx)(s.Z,{typography:"t3",fontWeight:"bold",children:z})},z)}),(0,i.jsxs)(r.ZP,{style:{flex:1,marginTop:-30},center:!0,children:[(0,i.jsx)(r.rE,{initial:{opacity:0,y:20,rotate:0,scale:.9},animate:{opacity:1,y:0,rotate:-5,scale:.9},transition:{...a.bB.common},style:{marginLeft:30,zIndex:1},children:(0,i.jsx)(v.Q,{imageUrl:E.imageUrl,name:m.senderName,value:null!==(p=m.message)&&void 0!==p?p:"ë©ë¦¬ í¬ë¦¬ì¤ë§ì¤! \uD83E\uDD36\uD83C\uDF84 "})}),(0,i.jsx)(h.j,{style:{zIndex:2,marginLeft:30,marginTop:-40},initial:{opacity:0,y:20,rotate:0}
1,animate:{opacity:1,y:0,rotate:10},transition:{...a.bB.common},category:_})]}),(0,i.jsx)(g.Z,{size:80}),(0,i.jsx)(r.rE,{initial:{opacity:0,y:100},animate:{opacity:1,y:0},transition:{...a.bB.common,delay:2},style:{position:"fixed",bottom:0,left:0,right:0,padding:24,flexDirection:"row",gap:10},children:(0,i.jsx)(d.Z,{type:"green",containerStyle:{flex:1},onClick:()=>{j()},children:"ë¤ì"})}),(0,i.jsx)(g.Z,{size:"safeAreaBottom"})]})}},36912:function(t,n,e){"use strict";function i(t,n){if(!1===n.safeParse(t).success)throw Error("Assertion failed")}e.d(n,{w:function(){return i}})},64817:function(t,n,e){"use strict";function i(t,n){let e=setTimeout(()=>{document.hidden||n()},t),i=()=>{document.hidden||(clearTimeout(e),document.removeEventListener("visibilitychange",i))};document.addEventListener("visibilitychange",i)}e.d(n,{c:function(){return i}})},16332:function(t,n,e){"use strict";e.d(n,{Y:function(){return o}});var i=e(28047),r=e(64817);function o(t){window.location.href=t,(0,r.c)(1200,()=>{window.location.href=(0,i.s)()?i.$r:i.ju})}},70712:function(t,n,e){"use strict";e.d(n,{k:function(){return y}});var i,r,o=e(35346),a=e(2784);e(82668);var c=e(98290);function l(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return(0,c.O)(n)}e(12719),e(73463);var d=e(12146),s=["as","direction","justify","align"];function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex-start",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";if("object"===(0,o.Ac)(t)){var a=t.align,c=t.direction,d=t.justify;return l(i||(i=(0,o.AI)(["\n align-items: ",";\n display: flex;\n flex-direction: ",";\n justify-content: ",";\n "])),void 0===a?"stretch":a,void 0===c?"row":c,void 0===d?"flex-start":d)}return l(r||(r=(0,o.AI)(["\n align-items: ",";\n display: flex;\n flex-direction: ",";\n justify-content: ",";\n "])),t,e,n)}u.center=function(t){return u({justify:"center",align:"center",direction:t})};var f=function(t){return(0,a.forwardRef)(function(n,e){var i,r,a,c=n.as,l=n.direction,f=void 0===l?null!==(i=null==t?void 0:t.direction)&&void 0!==i?i:"row":l,y=n.justify,h=void 0===y?null!==(r=null==t?void 0:t.justify)&&void 0!==r?r:"flex-start":y,x=n.align,g=void 0===x?null!==(a=null==t?void 0:t.align)&&void 0!==a?a:"stretch":x,v=(0,o.Kd)(n,s);return(0,d.tZ)(void 0===c?"div":c,(0,o.Zj)({ref:e,css:u({direction:f,align:g,justify:h})},v))})},y=f();y.Center=f({align:"center",justify:"center"}),y.CenterVertical=f({align:"center"}),y.CenterHorizontal=f({justify:"center"})}},function(t){t.O(0,[6901,4418,5753,7777,496,6900,2639,8945,4842,5356,2888,9774,179],function(){return t(t.s=13436)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.